Importing MOT annotations fails: ValueError: Unknown internal frame id -1\n

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

I tried to import MOT 1.1 annotations into a task using the web UI and it failed with a popup message: "ValueError: Unknown internal frame id -1\n".
Expected Behaviour
The import should succeed
Current Behaviour
A popup message displays: "ValueError: Unknown internal frame id -1\n".
Steps to Reproduce (for bugs)

Create a new project and upload a video
Open the task
Click Actions -> upload annotations -> MOT 1.1
Select zip folder and click 'upload'

The content of my .zip folder contains:
mot/seqinfo.ini
mot/gt/gt.txt
mot/gt/labels.txt

Content of seqinfo.ini:
[Sequence]
name=Test
imDir=img
frameRate=10
seqLength=1454
imWidth=640
imHeight=480
imExt=.jpg

Content of labels.txt
person

First lines from gt.txt:
1, 1, 162, 367, 93, 110, 1, 1, 1
2, 1, 162, 364, 94, 114, 1, 1, 1
3, 1, 161, 359, 91, 119, 1, 1, 1
4, 1, 161, 357, 86, 120, 1, 1, 1

I also tried this with annotation data found on the https://motchallenge.net/data/MOT20/ and got the same error.
Possible Solution

To further debug the problem, I installed the development environment as described here: https://openvinotoolkit.github.io/cvat/docs/contributing/development-environment/
After stepping through the code I found the following lines that process the annotations (mot.py, recent develop branch):
36 for item in dataset:
37     frame_number = int(item.id) - 1 # NOTE: MOT frames start from 1
38     frame_number = task_data.abs_frame_id(frame_number)

The first item.id appeared to already be zero since the datumaro package already returns zero based item ids. By subtracting with 1 on line 37, you become -1 for the first item, which generates a ValueError in the function called at line 38, which is the error that was displayed in the UI.
Simple fix:
36 for item in dataset:
37     frame_number = int(item.id)
38     frame_number = task_data.abs_frame_id(frame_number)

Your Environment

Git hash commit (git log -1): 723b2a8327171d8c1a93577f90d0b96d5bbbaffa
Installed using steps in https://openvinotoolkit.github.io/cvat/docs/contributing/development-environment/
Ubuntu 20.04

Note that I reproduced the same behaviour on cvat.org and with the docker installed environment as explained here https://openvinotoolkit.github.io/cvat/docs/administration/basics/installation/#ubuntu-1804-x86_64amd64

@maartenvds , thanks for the report and your findings. Could you please help us and prepare a PR?

Fixed on Datumaro side; checked in CVAT.


OSError: -202

I installed your firmware v1.15 and also  the official Micropython firmware for ESP32 v1.14 (then I run import upip
upip.install("micropython-mdns") but in both cases i got the same error:
Traceback (most recent call last):
File "", line 35, in
File "uasyncio/core.py", line 1, in run_until_complete
File "uasyncio/core.py", line 1, in run_until_complete
File "uasyncio/core.py", line 1, in run_until_complete
File "/lib/mdns_client/client.py", line 182, in getaddrinfo
File "/lib/mdns_client/client.py", line 195, in mdns_getaddr
OSError: -202
CODE:
import network
import uasyncio
from mdns_client import Client
from machine import freq
freq(240000000)

ssid="MySsiD"
password="MyPassword"

wlan = network.WLAN(network.STA_IF)
wlan.active(True)

print("Intendando conectar a la red:", ssid)
wlan.connect(ssid, password)
while wlan.isconnected() == False:
    pass

ip, mask, gate, dns = wlan.ifconfig()
print("Conexion exitosa a la red", ssid)
print("Ip optenida:", ip)
print("Mascara de subred:", mask)
print("Puerta de enlace:", gate)
print("DNS:", dns)
print("\n")
gc.collect()

loop = uasyncio.get_event_loop()
client = Client(wlan.ifconfig()[0])

print(loop.run_until_complete(client.getaddrinfo("the-other-device.local", 80)))

Hey @jgomez109
Did you fix it and can share what the issue was?

Hey @jgomez109
Did you fix it and can share what the issue was?

Hi. Sorry, by mistake I closed the issue. I still have it.

Hey @jgomez109
So checking the source code the issue is that the specific device is not found on your network. The error message gets thrown to be compatible with the getaddrinfo on the ESP32.
See the code here: https://github.com/cbrand/micropython-mdns/blob/main/src/mdns_client/client.py#L195
If I try with the code to detect a local device on my network it seems to work as expected.

Hey @jgomez109
So checking the source code the issue is that the specific device is not found on your network. The error message gets thrown to be compatible with the getaddrinfo on the ESP32.
See the code here: https://github.com/cbrand/micropython-mdns/blob/main/src/mdns_client/client.py#L195
If I try with the code to detect a local device on my network it seems to work as expected.

It so rare because I have connected my device to the network  before (with the same code) and I used my device to serving a webpage to local users (Accessing by device IP). So now I wanted to serve the page through mDNS but I can not understand how is not found the device  on my network. Can you give me some advice or hint to solve it?

Hm without knowing how your network exactly looks like it is kind of hard to give any kind of advice here.
Normally why things don't work is that you either have the devices in different network segments which makes mdns not work as it doesn't work over network boundaries or that a firewall blocks it.
What you can do to verify if this works is to check if you can resolve on a laptop in the same network the MDNS address. On Linux this should resolve mdns calls to if you do ping.
As a longer aside:
If you only want to use mdns for discovering another device in the network I would strongly advise you to not use the library here. MicroPython has itself MDNS included by now which is why I need to publish an own firmware for micropython in the first place to disable it and have access to the UDP Port for MDNS traffic.
So if you're only interested in resolving on your ESP mdns addresses use usocket.getaddrinfo instead. If the domain is postfixed with .local it will do the MDNS query. For this you require to patch the "normal" MicroPython version on your ESP as the firmware which I publish has this feature disabled.
I guarantee that the embedded variant is much faster and more robust than the one in this library. You should only use this library if you require Service Discovery or Service Announcement in your MicroPython project.

Thank you so much for your answer.  Blessings!

You are welcome. Good luck!


Azure Open AI Behind APIM (Custom Auth)?

Issue
The best practice for using Azure Open AI in any "organization" is to use it behind an API Mgnt Gateway. MS limits the number of instances an organization can and you don't want to expose the master API keys out to the end users, plus you get other benefits from the APIM layer.
APIM will still just pass thru the base information Azure Open AI needs, its just that we would need to authenticate slightly differently, but the "chat/endpoints" payloads would be the same.
Where would the best entry point be to setup this kind of custom authentication.
In our use case we use app registrations to authenticate with APIM and also have some custom headers we need to set for logging on the APIM before it passes it thru to Azure Open AI,
Version and model info
No response

Thank you for filing this issue.
aider uses LiteLLM to communication with LLM endpoints. I am not sure how to pass additional header fields for authentication currently.
Maybe related:
#1590
https://github.com/BerriAI/litellm/issues/4833

@fry69 It looks like LiteLLM already supports the auth method I would need to use, and per the linked issue headers are being passed over correctly.
https://docs.litellm.ai/docs/providers/azure
I would need to implement the "Azure AD Token Refresh" example they have, the azure sdk supports app registrations
Ref: https://learn.microsoft.com/en-us/python/api/overview/azure/identity-readme?view=azure-python (Service principal with secret)
And per the issue they are jus doing this:
extra_headers={
"Authorization": "my-bad-key",
"Ocp-Apim-Subscription-Key": "hello-world-testing",
},
So I guess my question is how where do I configure these pieces

So I guess my question is how where do I configure these pieces

No clue. Does anything in here look suitable to pass these headers?
-> https://aider.chat/docs/config/adv-model-settings.html

The send_completion method takes in extra headers.  I dont see where LiteLLM is being configured in the code because I would just make my changes in that configuration method for myself since I assume thats the "easiest" because the code obviously isnt setup to handle the use case, but LiteLLM appears to support it.

You can create a model settings yaml file, and include something like:
  extra_headers:
    anthropic-beta: prompt-caching-2024-07-31

See the https://aider.chat/docs/config/adv-model-settings.html page. I've updated it with more examples.

@paul-gauthier I still need to override the auth so it uses an client/secret that I linked above that LiteLLM supports.

Set azure_ad_token = accessToken from step 3 or set os.environ['AZURE_AD_TOKEN']

Have you tried setting that environment variable?

Setting the Azure_AD_Token in a .env file is working, and the call is hitting the APIM instance, the "auth" is also working (ideally would rather set a clientid/secret and have it do the auth).
Im getting an error with the extra headers though, it doesnt seem to working as APIM is telling me its not set:

accepts_images: true
cache_control: false
caches_by_default: false
edit_format: diff
examples_as_sys_msg: false
extra_headers:
mkl-User-Name: TestUser
lazy: true
max_tokens: null
name: gpt-4o
reminder: sys
send_undo_reply: false
streaming: true
use_repo_map: true
use_system_prompt: true
use_temperature: true
weak_model_name: gpt-4o-mini

BadRequestError: litellm.BadRequestError: AzureException - Error code: 400 - {'statusCode': 400, 'message':
'mkl-User-Name is a required header'}

My bad needed the name to be azure/gpt-4o or whatever the model is you pass in to match. Its now atleast pass the auth and the request is not hitting the APIM and being sent to AzureOpenAI, now to figure out way Im getting a 500 error "Expression evaluation failed. The message body is not a valid JSON. Unexpected character encountered while parsing value: d. Path '', line 0, position 0."

litellm support identity (client_id, tenant_id, secret  ), but not able to pass the value to it with current  Aider configuration or parameters


CP-SAT, UNKNOWN status with complete solution hint

Version: v9.5.2237
Language: Python
Solver: CP-SAT
Operating system Windows 10.
I am using the solution hint as warm start. It is complete and feasible. But looks like it doesn't work porperly.
If solver stopped by time limit in presolve, CP-SAT can't provide solution from hints.
Is it expected behavior?
There is a log:
Starting CP-SAT solver v9.5.2237
Parameters: max_time_in_seconds: 20 log_search_progress: true relative_gap_limit: 0.1 num_workers: 4
Initial optimization model '': (model_fingerprint: 0xe2fafecb911a9924)
#Variables: 506216 (#bools:284 #ints:8045 in floating point objective)

497729 Booleans in [0,1]
72 in [0,5]
72 in [0,27]
6 in [0,73]
219 in [0,100]
7899 in [0,186]
219 in [0,211]
#kEmpty: 16666
#kLinear1: 33665
#kLinear2: 21457
#kLinear3: 9550
#kLinearN: 20993 (#terms: 1537132)

Starting presolve at 0.38s
The solution hint is complete and is feasible.
[Scaling] Floating point objective has 8329 terms with magnitude in [3.45972, 1000] average = 20.8423
[Scaling] Objective coefficient relative error: 1.11022e-16
[Scaling] Objective worst-case absolute error: 1.65983e-11
[Scaling] Objective scaling factor: 21.1
[ExtractEncodingFromLinear] #potential_supersets=20468 #potential_subsets=302 #at_most_one_encodings=100 #exactly_one_encodings=129 #unique_terms=812 #multiple_terms=643 #literals=1764 time=0.0585241s
[Probing] deterministic_time: 1.00014 (limit: 1) wall_time: 1.07314 (Aborted 2039/485224)
[Probing]  - new fixed Boolean: 4006 (26028/507246)
[Probing]  - new integer bounds: 300
[Probing]  - new binary clause: 4655
[Probing] implications and bool_or (work_done=472846).
[SAT presolve] num removable Booleans: 27401 / 506863
[SAT presolve] num trivial clauses: 0
[SAT presolve] [0s] clauses:32178 literals:80000 vars:32009 one_side_vars:15265 simple_definition:16614 singleton_clauses:0
[SAT presolve] [0.00969226s] clauses:32178 literals:80000 vars:32009 one_side_vars:15265 simple_definition:16614 singleton_clauses:0
[SAT presolve] [0.0385407s] clauses:32178 literals:80000 vars:32009 one_side_vars:15265 simple_definition:16614 singleton_clauses:0
[MaxClique] Merged 44851(1010583 literals) into 37016(1040059 literals) at_most_ones.
[DetectDuplicateConstraints] #duplicates=73 #without_enforcements=190 time=0.0677236s
[DetectDominatedLinearConstraints] #relevant_constraints=292 #work_done=56110 #num_inclusions=0 #num_redundant=0 time=0.0150344s
[DetectOverlappingColumns] #processed_columns=114 #work_done=23669 #nz_reduction=0 time=0.0607821s
[ProcessSetPPC] #relevant_constraints=44865 #num_inclusions=25028 work=8251173 time=0.523842s
[Symmetry] Graph for symmetry has 570049 nodes and 1088257 arcs.
[Symmetry] Symmetry computation done. time: 1.77478 dtime: 0.853725
[Symmetry] #generators: 56, average support size: 5667.46
[Symmetry] 102841 orbits with sizes: 30,30,30,30,30,30,30,30,30,18,...
[Symmetry] Num fixable by binary propagation in orbit: 14 / 30
[Symmetry] Num fixable by intersecting at_most_one with orbits: 27 largest_orbit: 30
[Symmetry] Found orbitope of size 139 x 15
[Probing] deterministic_time: 1.00049 (limit: 1) wall_time: 1.16046 (Aborted 2234/472888)
[Probing]  - new fixed Boolean: 1106 (34965/506747)
[Probing]  - new integer bounds: 57
[Probing]  - new binary clause: 4946
[Probing] implications and bool_or (work_done=490560).
[SAT presolve] num removable Booleans: 36640 / 506864
[SAT presolve] num trivial clauses: 0
[SAT presolve] [0s] clauses:17756 literals:46886 vars:17701 one_side_vars:5360 simple_definition:12284 singleton_clauses:0
[SAT presolve] [0.00598683s] clauses:17756 literals:46886 vars:17701 one_side_vars:5360 simple_definition:12284 singleton_clauses:0
[SAT presolve] [0.0309566s] clauses:17756 literals:46886 vars:17701 one_side_vars:5360 simple_definition:12284 singleton_clauses:0
[DetectDuplicateConstraints] #duplicates=0 #without_enforcements=190 time=0.0519132s
[DetectDominatedLinearConstraints] #relevant_constraints=272 #work_done=56780 #num_inclusions=30 #num_redundant=0 time=0.018217s
[DetectOverlappingColumns] #processed_columns=109 #work_done=8161 #nz_reduction=0 time=0.045209s
[ProcessSetPPC] #relevant_constraints=13983 #num_inclusions=0 work=3072617 time=0.28856s
[Symmetry] Graph for symmetry has 568225 nodes and 1064124 arcs.
[Symmetry] Symmetry computation done. time: 1.7259 dtime: 0.840827
[Symmetry] #generators: 41, average support size: 7551.8
[Symmetry] 101451 orbits with sizes: 18,18,18,18,14,14,14,14,14,14,...
[Symmetry] Num fixable by binary propagation in orbit: 9 / 18
[Symmetry] Num fixable by intersecting at_most_one with orbits: 27 largest_orbit: 18
[Symmetry] Found orbitope of size 106 x 6
Presolve summary:

1388 affine relations were detected.
rule 'TODO dual: add implied bound' was applied 2 times.
rule 'TODO dual: make encoding equiv?' was applied 500 times.
rule 'TODO dual: only one blocking constraint?' was applied 3699958 times.
rule 'TODO dual: only one blocking enforced constraint?' was applied 2 times.
rule 'TODO dual: only one unspecified blocking constraint?' was applied 25448 times.
rule 'TODO dual: tighten at most one' was applied 3 times.
rule 'TODO duplicate: identical constraint with different enforcements' was applied 380 times.
rule 'TODO linear2: contains a Boolean.' was applied 39434 times.
rule 'TODO variables: only used in linear1.' was applied 331 times.
rule 'affine: new relation' was applied 1388 times.
rule 'at_most_one: removed literals' was applied 1683 times.
rule 'at_most_one: satisfied' was applied 192 times.
rule 'at_most_one: size one' was applied 50 times.
rule 'at_most_one: transformed into max clique.' was applied 1 time.
rule 'at_most_one: x and not(x)' was applied 3509 times.
rule 'bool_and: non-reified.' was applied 20 times.
rule 'bool_and: x => x' was applied 38 times.
rule 'bool_or: always true' was applied 3 times.
rule 'bool_or: fixed literals' was applied 38 times.
rule 'bool_or: implications' was applied 19251 times.
rule 'bool_or: only one literal' was applied 4 times.
rule 'deductions: 3399 stored' was applied 1 time.
rule 'dual: enforced equivalence' was applied 3 times.
rule 'dual: reduced domain' was applied 261 times.
rule 'duplicate: merged rhs of linear constraint' was applied 73 times.
rule 'duplicate: removed constraint' was applied 73 times.
rule 'encoding: extracted from linear' was applied 229 times.
rule 'encoding: reduced target domain' was applied 229 times.
rule 'enforcement: false literal' was applied 4123 times.
rule 'enforcement: true literal' was applied 80 times.
rule 'exactly_one: removed literals' was applied 3022 times.
rule 'exactly_one: satisfied' was applied 16 times.
rule 'exactly_one: simplified objective' was applied 32 times.
rule 'exactly_one: singleton' was applied 210 times.
rule 'exactly_one: size one' was applied 75 times.
rule 'exactly_one: size two' was applied 143 times.
rule 'linear + amo: trivial linear constraint' was applied 1 time.
rule 'linear1: is boolean implication' was applied 4 times.
rule 'linear1: without enforcement' was applied 3555 times.
rule 'linear: always true' was applied 32574 times.
rule 'linear: divide by GCD' was applied 8214 times.
rule 'linear: empty' was applied 7583 times.
rule 'linear: extracted enforcement literal' was applied 501 times.
rule 'linear: fixed or dup variables' was applied 26740 times.
rule 'linear: negative at most one' was applied 13274 times.
rule 'linear: negative clause' was applied 12080 times.
rule 'linear: negative equal one' was applied 6913 times.
rule 'linear: positive at most one' was applied 189 times.
rule 'linear: positive clause' was applied 7209 times.
rule 'linear: positive equal one' was applied 282 times.
rule 'linear: reduce rhs with DP' was applied 6 times.
rule 'linear: reduced variable domains' was applied 11660 times.
rule 'linear: reduced variable domains in derived constraint' was applied 79 times.
rule 'linear: remapped using affine relations' was applied 1182 times.
rule 'linear: simplified rhs' was applied 39828 times.
rule 'linear: simplify using approximate gcd' was applied 600 times.
rule 'linear: singleton column' was applied 73 times.
rule 'linear: tightened into equality' was applied 1 time.
rule 'linear: variable substitution 0' was applied 31 times.
rule 'linear: variable substitution 2' was applied 19 times.
rule 'objective: variable not used elsewhere' was applied 128 times.
rule 'presolve: 35205 unused variables removed.' was applied 1 time.
rule 'presolve: iteration' was applied 2 times.
rule 'probing: simplified clauses.' was applied 51 times.
rule 'setppc: bool_or in at_most_one.' was applied 1066 times.
rule 'setppc: fixed variables' was applied 2783 times.
rule 'setppc: removed dominated constraints' was applied 11826 times.
rule 'symmetry: fixed to false' was applied 105 times.
rule 'symmetry: fixed to false in general orbit' was applied 27 times.
rule 'variables with 2 values: create encoding literal' was applied 2 times.
rule 'variables with 2 values: new affine relation' was applied 2 times.
rule 'variables: add encoding constraint' was applied 1457 times.
rule 'variables: canonicalize domain' was applied 1 time.
rule 'variables: detect half reified value encoding' was applied 223 times.
rule 'variables: only used in encoding' was applied 1 time.

Presolved optimization model '': (model_fingerprint: 0x7cbf853ee58764a4)
#Variables: 470007 (#bools:7843 #ints:365 in objective)

469533 Booleans in [0,1]
14 in [0][2][5][8][15,16]
1 in [0][2][5][8,9][15,16]
1 in [0][2][5][11][15]
6 in [0][2][5][11][15][18]
10 in [0][2][5][11][15,16]
3 in [0][2][5][11][15,16][18]
12 in [0][2][5][15,16]
1 in [0][2][5][16][18]
8 in [0][2][7][9][12][15][17]
1 in [0][2][7][15]
9 in [0][2][9][12][15][17]
3 in [0][2][15]
1 in [0][2,3][17]
4 in [0][2,4][11][14]
4 in [0][2,4][11][14][16]
9 in [0][2,4][11][14][16,17]
9 in [0][2,4][11][14][17]
1 in [0][2,4][11][14][17,18]
1 in [0][2,4][16,17]
3 in [0][2,4][17]
1 in [0][3,5][10][13][15,16]
5 in [0][4][6,8][10,11]
2 in [0][4][6,8][11]
8 in [0][4][6,11]
3 in [0][4][17]
13 in [0][4,5][9][13,15]
8 in [0][4,5][9,13]
7 in [0][4,5][10][13][15,16]
5 in [0][4,5][13][15,16]
1 in [0][4,5][13,15]
6 in [0][5][9][11,13]
14 in [0][5][9][13,15]
1 in [0][5][9,13]
3 in [0][5][11][15]
2 in [0][5][13][15,16]
3 in [0][5][13,15]
1 in [0][5][14,15]
3 in [0][5][18]
5 in [0][7][9][12][15][17]
4 in [0][8][15]
5 in [0][9][12][15][17]
8 in [0,1][4][11][14]
10 in [0,1][4][11][14][16]
3 in [0,1][4][11][14][16,17]
6 in [0,1][4][11][14][17]
1 in [0,1][4][16,17]
69 in [0,3]
5 in [0,4]
24 in [0,5]
2 in [0,12]
1 in [0,16]
1 in [0,17]
18 in [0,19]
10 in [0,24]
13 in [0,27]
7 in [0,63]
2 in [0,66]
5 in [0,67]
1 in [0,133]
1 in [0,134]
23 in [0,139]
1 in [0,142]
2 in [0,145]
6 in [0,148]
15 in [0,152]
1 in [0,173]
4 in [0,183]
1 in [0,184]
1 in [0,186]
2 in [0,188]
2 in [0,189]
2 in [0,191]
1 in [0,192]
1 in [0,194]
4 in [0,195]
1 in [0,197]
2 in [0,198]
1 in [0,201]
1 in [0,202]
1 in [0,204]
1 in [0,207]
1 in [0,208]
7 in [1,4]
2 in [1,5]
2 in [2,5]
1 constants in {0}
#kAtMostOne: 6515 (#literals: 478780)
#kBoolAnd: 17262 (#enforced: 17262) (#literals: 17262)
#kBoolOr: 502 (#literals: 12378)
#kExactlyOne: 6823 (#literals: 472315)
#kLinear1: 3248 (#enforced: 3248)
#kLinear2: 136
#kLinearN: 135 (#terms: 15356)
Stopped after presolve.
PresolvedNumVariables: 470007
PresolvedNumConstraints: 34621
PresolvedNumTerms: 1020092

CpSolverResponse summary:
status: UNKNOWN
objective: 0
best_bound: 0
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
restarts: 0
lp_iterations: 0
walltime: 21.096
usertime: 21.096
deterministic_time: 2.0007
gap_integral: 0

Can you try with 9.6?

Actually, presolve takes more time than the time limit. So technically, no solution has been found.

Actually, presolve takes more time than the time limit. So technically, no solution has been found.

Yes, but in log was:
"The solution hint is complete and is feasible."
So, in that point we already have a solution, isn't it?

Yes, but I do not consider this a bug.
Le mar. 18 avr. 2023, 18:47, AlexeyTrefilov @.***> a
écrit :

Actually, presolve takes more time than the time limit. So technically, no
solution has been found.
Yes, but in log was:
"The solution hint is complete and is feasible."
So, in that point we already have a solution, isn't it?
—
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/3750#issuecomment-1513490177,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3NKCJRLPPOERHVU4LLXB3ARZANCNFSM6AAAAAAXCO7EAA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

A feature request. But not a priority.
You can work around easily.
Le mar. 18 avr. 2023, 19:33, AlexeyTrefilov @.***> a
écrit :

Ok, what is it?)
—
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/3750#issuecomment-1513556223,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3MUR54B7ADLTF4OHM3XB3F6LANCNFSM6AAAAAAXCO7EAA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Bug: Unable to update username at the frontend because no password is posted

Hi tiangolo, thanks a lot for this amazing template! There's a bug I found that prevents updating username at the frontend.
The following line of code in CRUDUser needs the presence of password in the post body. However, line 33 excludes the unset. The form data doesn't contain password since it's originated from updating user profile, leading to a runtime error.
https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/490c554e23343eec0736b06e59b2108fdd057fdc/{{cookiecutter.project_slug}}/backend/app/app/crud/crud_user.py#L27-L38

Closed as this has been noticed here: https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/249#issuecomment-686565378

The solution in the referenced issue didn't solve this issue for me. A more trivial solution is to to replace the following line in  backend > app > app > crud > crud_user.py
if update_data["password"]:

with
if update_data.get("password", False):

until this has been fixed in a future release.


Develop appdefcompat package

Requirements
A tool compares two versions of AppDef and check their compatibility. Schemas are compatible when all following conditions are met:

All QNames from ast1 exist in the new ast2
Fields set (except view keys)

order and type change denied
~size decrease denied~

size decrease allowed because it is still able to read old long values

removal denied
existing tables, keys, types etc:

append non-required only only, no insert
become required denied

new tables, keys, types etc - no checks

In Views:

Keys, Value: change denied
Key fields: any change denied

Tables:

parent/child relationships not changed from ast1 to ast2
inheritance is not changed (e.g. CDoc->WDoc, non-singleton->singleton etc)
unique field add denied

Projectors:

SYNC property not changed from ast1 to ast2
ON, STATE, INTENT - may change from ast1 to ast2!

Commands:

Args, UnloggedArgs change denied
Result change allowed

Workspaces:

new version can not become abstract
inheritance is not changed

Context

https://github.com/voedger/voedger/issues/167

Design
ref. README-compat.md

Development version

### TODO
- [x] Implement CompareTrees
- [x] IgnoreCompatibilityErrors
- [x] Implement CompatibilityError.ErrorType
- [x] Test new table, type, command, query, view - allowed
- [ ] Test table inheritance change denied
- [x] Test view: key parts are nonmodifiable, view value - same rules as for table fields
- [x] Test commands: Args and Result change denied, UnloggedArgs change allowed
- [x] Test workspaces: becoming abstract denied, inheritance change denied

Inheritance is not implemented yet in appdef. So I skipped tests for this feature and added proper TODO section.


Mysterious brackets being added

I have empty fields that are being translated as:
{},
Picture of the sheet:

If anyone else is experiencing this I'm currently solving this by using the Mutiline addon for VS.
And, also, thank you so much for this sheets addon, love it!

Glad to see people getting use out of the Nested Element functionality in ESD! One of ESD's current shortcomings is that Nested Elements doesn't handle empty cells very well. You can set your export to ignore empty cells to prevent empty object values from being exported, but that will also exclude the affected field from the export.

It is set to ignore empty cells.  I tried removing the checkmark, export, replace the checkmark, export.  Each instance produces these mysetious brackets.  Besides, there's plenty of empty cells where this does not happen.  Hence the title, "mysterious brackets" :)

I might also add, that I've exported the same sheets multiple times in the past without this bug appearing.

Ah, I didn't realize it was only a few specific empty fields. Does any other data seem affected? Also, would you be able to provide an example sheet and the settings used so I can try to replicate the issue?

I can share this document with you with viewing privleges if that helps?

That will help. With the sheet, I can try to reproduce the issue on my end and debug the export process. If you have data that you can't or don't want to share, you can change the values around and send a duplicate instead, if desired.

Send me the email you want me to share it to<EMAIL_ADDRESS>My settings:

Any updates on this, still haven't received an email from you yet ...

Sorry about that, my schedule has been crazy for the past two weekends and the work week. Just sent an email to you regarding this.

I've found the issue. Those empty objects are added because the affected section has hard set index values when searching through the "materials" array. The values in the last column are looking for the fourth array element, causing the export process to add empty elements until reaching the desired element index.
Moving those values over to the left will fix the issue.

Hi Synthoid, thank you so much for your time and effort figuring this out!
I'm afraid I don't quite understand the solution though.  Can you be more specific?
Do you mean that the values in column HT (in Recipes#5) are looking for the Recipes#4 columns?

Your key formatting was correct, but the way Nested Elements search through arrays caused the empty objects to be added to your output data. Specifically, [materials]{#4}id looks for the fourth element of the materials array to set the id field value for. If that array has less than 4 elements, empty elements are added until the target index is reached.
In this case, you were setting the first element's values, skipping the second and third indexes because they were empty cells, then setting the fourth element's values. Since the array had less than 4 elements, it had to add empty elements to reach the appropriate length so the specified index would be valid.
Moving the 4th indexed values to the left prevents this problem, because they are no longer looking at the 4th index specifically, so no empty objects should be added to the output JSON.
This is one of those fun, tricky parts about Nested Elements that makes them powerful, but also easy to format incorrectly.


removing Fable.jl

Hello,
I would like to remove this package from the General registries. It's not being used by anyone and has a simple enough name that it might conflict with other packages. It is also meant as a standalone piece of software, so removing it can not break anyone's code downstream.
I don't know if this is possible or not, but I thought I would try.
Thanks!

Packages are not removed.

it might conflict with other packages

Let's discuss a possible name transfer when this isn't just a hypothetical issue.


Introspection Request token mismatch

[5.2.0-RC1] CAS server version
[wildfly-10.1.0.Final, Windows 7] Container/environment type/version (Tomcat, Jetty, Java, Linux/Windows, etc)
Steps to duplicate the problem along with your CAS settings and properties

Include oidc dependency
Call Introspect endpoint /cas/oidc/introspect

Introspect endpoint /cas/oidc/introspect (class org.apereo.cas.oidc.web.controllers.OidcIntrospectionEndpointController)
expects request parameter "access_token", while in RFC for "https://tools.ietf.org/html/rfc7662#section-2.1" this parameter is named "token".

Is this implementation mismatch or am I not getting the specs right?

If the spec says so, then it's a mismatch. Please file a pull request at your earliest convenience to address the case.


PR not merging, days after passing checks

Scenario: liyishuai/RSSHub#211
Expectation: Merge pull request after successful checks.
Observation: PR remains open.

And merged after manually approving... Maybe worth documenting it somewhere?

Hello, thanks for opening the issue. Did you set up branch protection rules to require a approve before merging PRs to the branch?

No branch protection rules. liyishuai/RSSHub#210 and liyishuai/RSSHub#212 were merged without my interference.

When there is a huge number of changes, GitHub takes a while to calculate the mergability of the PR. Pull bot will wait a bit but will give up and retry after a few hours if GitHub takes too long. Hope it helps!


Static Files?

How to use static files? File in public/ don't seem to be noticed.

Checkout out #48 for some options for serving the static files. Basically, there are a couple of approaches, and I attempted to solve the issue here. I think that this is probably an adequate solution, but I wanted to get community feedback before mastering the changes.

This functionality can be enabled using the pass through-404s.


Add Arc shape control

What does the pull request do?
Adds a new Arc control to Avalonia.Controls.Shapes, which is needed for the ProgressRing control which I am also working on ( https://github.com/Splitwirez/Avalonia/tree/progress-ring , https://github.com/AvaloniaUI/Avalonia/pull/6003 ), and may also see some use elsewhere.

Renaming that branch...was not supposed to close this PR...woops...

https://github.com/Splitwirez/Avalonia/tree/arc-shape
So uh...how do we get this back on track?

@Splitwirez create new PR. I can't reopen this.

@Splitwirez create new PR. I can't reopen this.

https://github.com/AvaloniaUI/Avalonia/pull/6133


Form validation and component extraction ( mentor registration form)

Related Issue
follow up of PR #384
Description of Changes

Extracted day input and time zone input component from schedule step of mentor form
removed "tw-" prefix from classes

Isha you use tw....as other part in website is using. Actually a PR on footer optimization changed this config...

Isha can you use tw....as other part in website is using. Actually a PR on footer optimization changed this config. I updated
#403 see
for easy you can revert this commit in your PR: 56778be

Done👍

Now form validation left! ig

Now form validation left! ig

Ya.

Let's merge this! and you can create another pR for form Validation.

We can divide in mentor form regisration in three pR
Your pR count will also increased.

Division is ok as this is nice issue!


Are there binaries available of this fork?

I don't have a Go build system set up, I don't see where the goreleaser pipeline is running here.
Edit:
In case people need a binary quickly:
FROM golang as build-dive
RUN mkdir /src
RUN git clone https://github.com/jauderho/dive/ /src/dive
WORKDIR /src/dive
RUN make build
FROM scratch
COPY --from=build-dive /src/dive/dist/dive_linux_amd64/dive .

DOCKER_BUILDKIT=1 docker build . --output .

I do not have goreleaser running on this repo at this time. I do have prebuilt Docker images available via here: https://github.com/jauderho/dockerfiles/tree/main/dive


Disable DAD for sandbox IPv6 addresses

Disable DAD for sandbox programmed IPv6 addresses

After discussions in https://github.com/docker/docker/issues/18871, we decided to turn off  the DAD as default behavior. If in future use cases requiring DAD come out, we will allow user to turn it on.

Netlink Vendoring

bfd70f556483c008636b920dda142fdaa0d59ef9

Bring in the changes needed to pass flags to netlink.AddrAdd() and to pass some flags to netlink.LinkAdd() and some bugfixes

Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

LGTM

LGTM


Select input does not shows errors when ack({response_actions:'errors'}) given.

(Filling out the following with as much detail as you can provide will help us solve your issue sooner.)
Reproducible in:
The Slack SDK version
"slack/bolt": "^3.13.3"
Node.js runtime version
v18.17.0
OS info
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
Steps to reproduce:
(Share the commands to run, source code, and project settings)

Create a modal with Input Blocks with select and others doc link
call ack({response_action: 'errors', errors: { block_id: 'selecterror' }) when modal view submitted
No display errors found for select block.

I omitted some of my codes due to complexity, but guess it can be reproducible if small code snippets are added on below codes.
Leave me a question if you need more information.
Block snippets:
modal producing part:
  await client.views.open({
        trigger_id: body.trigger_id,
        view: {
          type: 'modal',
          callback_id: 'callbackid',
          title: {
            type: 'plain_text',
            text: 'Example',
          },
          blocks: this.generateExampleBlocks(),
          submit: {
            type: 'plain_text',
            text: 'Submit',
          },
        },
    });

  public generateExampleBlocks(): KnownBlock[] {
    let blocks: KnownBlock[] = [
      this.createExampleSelectBlock(),
      this.createPlainInputBlock(),
      this.createExampleDateTimeBlock(),
    ];
    return blocks;
  }

  protected createExampleDateTimeBlock(): InputBlock {
    return {
      type: 'input',
      block_id: 'datetimeblock',
      element: {
        type: 'datetimepicker',
        action_id: 'datetimeblockaction',
      },
      label: {
        type: 'plain_text',
        text: 'datetimeblock, itis',
      },
    };
  }

  createExampleSelectBlock(): KnownBlock {
    return {
      block_id: 'selectid',
      type: 'section',
      text: {
        type: 'mrkdwn',
        text: '*Example select.*',
      },
      accessory: {
        type: 'static_select',
        placeholder: {
          type: 'plain_text',
          text: 'Select a patch category',
          emoji: true,
        },
        options: [
          {
            text: {
              type: 'plain_text',
              text: 'lorem ipsum',
              emoji: true,
            },
          },
        ],
      },
    };
  }

  createPlainInputBlock(): KnownBlock {
    return {
      block_id: 'plaininputid',
      type: 'input',
      element: {
        type: 'plain_text_input',
        action_id: 'plaininputaction',
        placeholder: {
          type: 'plain_text',
          text: 'ex) x.x.x.x',
        },
      },
      label: {
        type: 'plain_text',
        text: 'Hello from plain text',
      },
    };
  }

ack errors part:
    await ack({
      response_action: 'errors',
      errors: {
        selectid: 'selecterror',
        plaininputid: 'plaininputerror',
        datetimeblock: 'datetimeblockerror',
      },
    });

Expected result:
I expected selecterror will be displayed in the select block, because I gave it as a result for ack errors.
Actual result:
No display errors found, awkward when compared while errors from plain inputs or datetime pickers are handled properly.
Also, external_select do not gives error, too. So, I suspects using type: 'section', not type: 'input' makes no display error while creating block.
If it is, I believe doc should provide a guide about showing errors for inputs with type: 'section',
Before submit:

returned ack for submit result:

ngrok's response for slack interactive call

Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Hi @spacebarley, thanks for writing in.

So, I suspects using type: 'section', not type: 'input' makes no display error while creating block.

As you already guessed, response_action: errors only works for input blocks. The select menu in your code is a section block. That's why the block is ignored when displaying input validation errors.
I hope this helps.

Hi @seratch, thank you for the comment.
So that would be the reason why modal displaying errors says block_id of the erroneous input block should be given as a key.
But this page shows input elements and menus at all, so it made me confuse for input block and section block with an accessory :sob:. Also it did not gave me any errors. Can't it be handled more friendly? e.g.: raise an error if non-input type block given, Or at least make some notes on the modal description.

In a nutshell, you can display validation errors for select menus, but it's only available when a select menu is in an "input" block.
I understand your confusion, and I will share your feedback with the document team. If you don't have any other questions on this topic, would you mind closing this issue now? Thanks again for using the platform and asking the question here.

Sure, my issue solved.
Thank you for your quick response.


add --color setting

Fixes #719
There is already code to recognize the CARGO_TERM_COLOR environment variable for setting color policy in GlobalConfig::new().  This PR makes it so that the --color=... flag takes precedence over the env var, but if the CLI flag is not set, then the env var still applies if it is set.
I'm not super happy with needing the if let block that comes with set_color_choice in order to not overwrite the env var - I'd definitely be willing to refactor the env var detection into a different function or make some other change.
I wasn't sure if tests were necessary/how to test this.  If you want tests, let me know and I can add them.

Tangential comment. Please disregard since it's only for future note.
The recommended SOTA color-related logic is to use the rust-cli/anstyle crates.

Added some tests in the tests/color_config.rs.  Right now it just tests for the presence/absense of the ANSI color sequence \u{1b}[ in stderr based on the flag/env var combination.  I didn't do anything with auto because I'm not sure how to emulate a tty with assert-cmd.  I also introduced the predicates crate as a direct dev dependency (it was already required by assert_cmd; I just put it in Cargo.lock) in order to test if the stderr contained the sequence vs. matching the whole input which wouldn't be static (because of timing, for one).

Added some tests in the tests/color_config.rs. Right now it just tests for the presence/absense of the ANSI color sequence \u{1b}[ in stderr based on the flag/env var combination. I didn't do anything with auto because I'm not sure how to emulate a tty with assert-cmd. I also introduced the predicates crate as a direct dev dependency (it was already required by assert_cmd; I just put it in Cargo.lock) in order to test if the stderr contained the sequence vs. matching the whole input which wouldn't be static (because of timing, for one).

Also, this explanation was great! It was very useful context that helped me understand the pull request much more easily. Thanks for putting it together!


HWC bootstrap application using Go v1.12.4 unsupported by Dynatrace OneAgent for monitoring

we noticed that the Go version used (1.12.4) to build the bootstrap application for the HWC is an unsupported version when we want to monitor the application with Dynatrace. Although Go is not the essential component in the business side application's package, it is detected and monitored by Dynatrace during the agent injection when deployments are happening. Would it be possible to bump that Go version up to 1.15+ which is the minimum version for OneAgent support?

Hi,
Right, I was referencing the buildpack itself. I believe a component of the buildpack was written in Go and that component is being detected when you use the hwc buildpack. In the sample hwc application I deploy, I have all the .NET packages updated via Visual Studio. I was not able to locate where in the app code it is referencing Go version 1.12.4. But I did see that the "hwc.exe" binary bundled with the HWC Buildpack v3.1.27 is built with Go v1.12.4 hence Dynatrace reports the Go version as outdated/unsupported.
Let me know if that helps.

Hi @TisVictress
I noticed this was moved to "Todo". Would you be able to provide an ETA on when it would be reviewed and completed? If you can't provide an ETA, would you be able to provide details on what the process looks like?
Thank you!

@TisVictress Thank you for the update. Great to hear that you can help us with getting the Go version for the hwc.exe binary updated.


Fix the position of the scale text

If a custom View draws a bitmap at a position other than 0,0 the scale text is incorrectly positioned:

updating MadgeCanvas to use left and top positions the text correctly:

Good find. Thanks!

I'll make a release this week.

Released as 1.1.4.


remove -v in ginkgo #18

fix #18
I fixed the script/test.sh to be disable verbose ginkgo to remove-v option

Thanks! I appreciate the effort.


Review: Volunteer Calendar and Forgot Password Pages

Review Branch
review-calendar-and-forgot-pass
Files to review

VolunteerCalendar.jsx
Forgot.jsx

Checklists

Architecture
Design
JS
React

Due date
2/5/2024 @ 10:30 am
For more information
The review process is documented at: http://courses.ics.hawaii.edu/ics414s21/morea/review/reading-idpm-review.html

VolunteerCalendar.jsx:

Design-01: Dropdown items can be refactored into smaller components that can be repeated for readability.
Design-05: Comments underneath the dropdown menus are not very descriptive and can be changed to fit better.
REACT-01: Can break the dropdowns into components.

Forgot.jsx:

Design-05: There are no comments in the file. It could potentially benefit from a comment describing what this page is for.

Forgot.jsx:

[ ] D-05: Add some comments explaining what the page is for and maybe how it'll accomplish it.

VolunteerCalender.jsx:

[ ] R-01: Could just create component for the dropdowns if components are what I think they are.
[ ] D-05: Add a comment explaining what this page is for.
[ ] Pretty good otherwise.

VolunteerCalendar.jsx

Design-05: Some comments necessary to explain the purpose of the page.
React-01: Making the dropdowns into a component would help on readability and saving time esp if we intend on using more

Forgot.jsx

Design-05: Just a comment to explain the page.

Looks good!

Forgot.jsx

Design-05: basic page explanations comments are needed.

VolunteerCalendar.jsx

Design-05: basic page explanations comments are needed.
React-01: dropdown as a component would help updating it and if it will be used on other parts of the site.

VolunteerCalendar.jsx

Design-05: Bare minimum should have comments explaining page and bonus for some of the code.
JS-08: Should have page explanation and/or function comments be compatible with jsdocs.
As others have stated, turning the dropdown into a component could be nice if it will be reused.

Forgot.jsx

Design-05: Same as for volunteercalender.jsx.
JS-08: Should have page explanation and/or function comments compatible with jsdocs.

VolunteerCalendar.jsx

Design-05: Include more comments explaining the page, specifically when defining the constants
Design-01: There's 2 instances of Dropdowns in which we can add organizations as needed. Maybe we could create a separate component for this

Forgot.jsx

Design-05: Include more comments explaining the page

2/5 Review Summary:
VolunteerCalendar.jsx:

Design-01: Dropdown items can be refactored into smaller components that can be repeated for readability.
Design-05: Comments underneath the dropdown menus are not very descriptive and can be changed to fit better. Add a comment explaining what this page is for.
REACT-01: Can break the dropdowns into components.
JS-08: Should have page explanation and/or function comments be compatible with jsdocs.

Forgot.jsx:

Design-05: There are no comments in the file. It could potentially benefit from a comment describing what this page is for.
JS-08: Should have page explanation and/or function comments compatible with jsdocs.


Sudden inability to write

VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:57:00.652Z)
OS Version: Linux x64 4.4.0-97-generic
Extensions:

Extension
Author (truncated)
Version

language-x86-64-assembly
13x
2.2.11

python
don
0.7.0

cpptools
ms-
0.14.0

My problem is that VS Code suddenly disabled me from typing, all of a sudden. And also there was a side-effect: VS Code became really hungry with RAM (~2 GiB; when VS Code was OK, it was consuming only ~200 MiB) and thus was starting really slowly.
The problem was solved by removing and reinstalling all extensions.
Steps to Reproduce:

Start VS Code and try to type.

Reproduces without extensions: No

I had the same issue earlier today (Debian 9, with the same VSCode version, and all of those plugins installed (as well as others)). I wasn't able to type in the editor (I was able to type in textboxes, like the find dialog, etc.) regardless of the workspace I was in, but I was able to delete code with backspace, and I was also able to paste code with the mouse & CTRL+V. I haven't updated any plugins since the last time it worked, with the exception of a single theme which I have disabled.
I tried restarting vscode, my computer, logging out, checking for updates, etc. but nothing seemed to work; But when I launched with --disable-extensions, I was able to type - so I started disabling plugins to figure out what was causing it suddenly - and apparently it was the vscode-cpptools.
I tried disabling, and re-enabling the extension but the issue persisted when I reenabled the cpptools. Finally I tried uninstalling, and reinstalling the vscode-cpptools and the issue went away. I'm not really sure what exactly caused the issue, because it showed up even when there were no C/C++ files in the active workspace. It certainly was strange...

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.


Xqiu 20170818 add reconciliation

This PR is for https://github.com/killbill/killbill-cybersource-plugin/issues/19
add optional reconciliation_id, if present, will pass to Cybersource and record it even if the transaction failed.
@pierre please review, thanks!

@pierre , comment added.

🎉 Well done @unieagle !


Expose parameters for make_filter_banks in PQMF and IPQMF

It would be useful to be able to tweak make_filter_banks parameters in PQMF and IPQMF creation. In particular, these are missing:
    n_iter=100,
    step_size=1e-2,
    decay=0.5,
    eps=1e-6,

I modified PQMF and IPQMF on the above pull request. Is this fine with you?

@takenori-y Looks great to me!


Oracle Database : Failed to connect with sqlplus using sys user from the virtual machine , and from windows

Hi
I have edited my dockerfile so that I can install java8 and maven when building the dockerfile , and now I'm facing an issue which is when trying to connect to sqlplus using the password that I got after running the image from the console , they didnt accept it , for both SYS or SYSTEM users , and even after running this command
docker exec oracle-ee ./setPassword.sh LetsDocker I still facing the @same issue ,
Knowing that after running this command it works but only for system user sqlplus system/LetsDocker@//localhost:1521/ORCLPDB1 for other users whenever I'm mentionning theirs name  sqlplus sys/LetsDocker@//localhost:1521/ORCLPDB1 it still tell me to put the username ,
And then when trying to connect from sqldeveloper of my host machine which is Windows in my case I cant , it still fail , knowing that I'm mentionning system as user , and LetsDocker as password and my virtual machine address as the host name , and 5500 and the port used ,
I have Windows 10;
if needed , here is my new dockerfile :
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2017 Oracle and/or its affiliates. All rights reserved.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle Database 12c Release 2
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# (1) linuxx64_12201_database.zip
#     Download Oracle Database 12c Release 12 Enterprise Edition or Standard Edition 2 for Linux x64
#     from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Put all downloaded files in the same directory as this Dockerfile
# Run:
#      $ docker build -t oracle/database:<IP_ADDRESS>-${EDITION} .

CMD exec $ORACLE_BASE/$RUN_FILE

I beleive That I'm missing somthing but couldnt define what is it exactly !
Thanks in advance

Hi @madiha95

and now I'm facing an issue which is when trying to connect to sqlplus using the password that I got after running the image from the console , they didnt accept it , for both SYS or SYSTEM users

What password are you trying to use?

and even after running this command
docker exec oracle-ee ./setPassword.sh LetsDocker I still facing the @same issue ,
Knowing that after running this command it works but only for system user sqlplus system/LetsDocker@//localhost:1521/ORCLPDB1 for other users whenever I'm mentionning theirs name sqlplus sys/LetsDocker@//localhost:1521/ORCLPDB1 it still tell me to put the username ,

There are no other users created. Whatever users you want to have you will have to create them first.

And then when trying to connect from sqldeveloper of my host machine which is Windows in my case I cant , it still fail , knowing that I'm mentionning system as user , and LetsDocker as password and my virtual machine address as the host name , and 5500 and the port used ,

The port to use is 1521 to connect via SQLDeveloper, not 5500

Hi Gerald,
I think I have the same problem. I'm trying to run the database on Windows 10 as a docker image. When I try to run the image and map a local folder to a Docker folder, I can not connect to sys when using the SQLDeveloper. I made these steps:

docker run --name oracle18xe -p 1521:1521 -p 5500:5500 -v E:\Docker\Datafiles\18.4.0-xe\oradata:/opt/oracle/oradata oracle/database:18.4.0-xe
docker exec oracle18xe ./setPassword.sh manager
Using SqlDeveloper to connect using sys/manager as sysdba (Connection localhost:1521/XE)
Result: ORA-01017: invalid username/password; logon denied
It is possible to connect with the unser system and pdbadmin (Connection localhost:1521/XEPDB1)

Then check this without mapping the folder:

docker run --name oracle18xe2 -p 1522:1521 -p 5501:5500 oracle/database:18.4.0-xe
docker exec oracle18xe2 ./setPassword.sh manager
Using SqlDeveloper to connect using sys/manager as sysdba (Connection localhost:1522/XE)
Result: Success

Could this be a special case when using Docker on Windows?
I asked Roel Hartman last Week on the Apex Connect and he advised me to map the folder, maybe he used this on a mac.
Do you have any idea how to solve the problem?
Regards
Oliver


ignoreElements should honor z-index

gemini.suite('popup ' , function (child) {
            child
                .setUrl('url/to/page')
                .before(function (actions, find) {
                    actions.setWindowSize(1200, 800);
                    actions.click(find('.show-popup'));
                    actions.waitForElementToShow('.popup', 2000);
                })
                .ignoreElements('.footer')
                .setCaptureElements('.popup')
                .capture('plain');
        });

Part of image before line .ignoreElements('.footer') was added:
https://www.dropbox.com/s/uycnpw1epvbxd9e/Скриншот 2015-12-08 20.01.40.png?dl=0
After:
https://www.dropbox.com/s/e0hexjvsegsjcxe/Скриншот 2015-12-08 20.02.21.png?dl=0
Expected result:
footer ignored, but not elements above.

in this case wd just paint over position of the footer on the screen, not on the page. If you test live page without possibility to change popup position or footer CSS, so you can try that hack like
.capture('popup', function(actions) {
    actions
        .executeJS(function(window) {
            window.$('.footer').css('opacity', 0);
        })
        .click('.show-popup')
        .waitForElementToShow('.popup', 2000);
});

ok, thanks!

I'd say it should be fixed - using such hacks in tests is outrageous. If anything - gemini should provide a method that does just that or fills element with set color (black is bad if popup has shadow).


Fixed problem when path to current file has spaces

Just needed quotes around paths passed to racer, tested on Windows 10 and Ubuntu.

I get it.  Thanks.


[ISSUE #2451] Support regsiter instance to consul

// Describe your PR here; eg. Fixes #2451

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #3366 (fa8aa7d) into master (d47e617) will decrease coverage by 0.31%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3366      +/-   ##
============================================
- Coverage     65.25%   64.93%   -0.32%
+ Complexity     5241     5230      -11
============================================
  Files           760      760
  Lines         21224    21219       -5
  Branches       1932     1931       -1
============================================
- Hits          13849    13778      -71
- Misses         6089     6148      +59
- Partials       1286     1293       +7

Impacted Files
Coverage Δ

...plugin/logging/rocketmq/LoggingRocketMQPlugin.java
22.72% <0.00%> (-72.73%)
:arrow_down:

...ogging/rocketmq/body/LoggingServerHttpRequest.java
0.00% <0.00%> (-20.00%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
69.10% <0.00%> (-14.64%)
:arrow_down:

...yu/sync/data/http/refresh/AbstractDataRefresh.java
70.00% <0.00%> (-13.34%)
:arrow_down:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
87.50% <0.00%> (-12.50%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
54.25% <0.00%> (-9.58%)
:arrow_down:

...ng/rocketmq/rocketmq/RocketMQLogCollectClient.java
70.00% <0.00%> (-6.00%)
:arrow_down:

.../logging/rocketmq/utils/LogCollectConfigUtils.java
71.11% <0.00%> (-4.45%)
:arrow_down:

...he/shenyu/plugin/grpc/client/ShenyuGrpcClient.java
8.00% <0.00%> (-4.00%)
:arrow_down:

... and 8 more

Continue to review full report at Codecov.

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


[Jetcaster] Handling no podcast selected and extracting state for home

Cherry picked changes from #1309 by @florina-muntenescu but fixing CLA issue.
Closes #1309

Going to merge this in as #1309 has been approved


Problems running example tests

Hi! I'm trying to setup this package for Slate tests, following the readme and example I ran into some issues. So I decided to run example tests and adjust my code but they failed with a hook issue:
 FAIL  src/tests/Editor.test.tsx
  Mac
    ✕ user types into an empty editor (72 ms)
    ✕ user types multiple paragraphs into the editor (11 ms)
    ✕ user types with an expanded selection across paragraphs (8 ms)
  Windows
    ✕ user types into an empty editor (10 ms)
    ✕ user types multiple paragraphs into the editor (7 ms)
    ✕ user types with an expanded selection across paragraphs (8 ms)

  ● Mac › user types into an empty editor

    Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
    1. You might have mismatching versions of React and the renderer (such as React DOM)
    2. You might be breaking the Rules of Hooks
    3. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

      49 |   initialValue = emptyEditor,
      50 | }) => {
    > 51 |   const [value, setValue] = useState<Descendant[]>(initialValue)
         |                                     ^
      52 |   const renderElement = useCallback((props) => <Element {...props} />, [])
      53 |   const renderLeaf = useCallback((props) => <Leaf {...props} />, [])
      54 |   const editor = useMemo(

      at resolveDispatcher (node_modules/react/cjs/react.development.js:1476:13)
      at useState (node_modules/react/cjs/react.development.js:1507:20)
      at RichTextExample (src/Editor.tsx:46:37)

According to React docs I checked react and react-dom versions - they both are 16.8.0, I tried to upgrade to recent 17.0.2 - still same error. The component is functional and hooks are called on top-level so that one should be fine. For different copies of React I also did suggested check and it also shows everything is fine.
npm ls react
<EMAIL_ADDRESS>>slate-test-utils/example
├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>deduped
│ └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>deduped

Not sure what is going on, maybe you have any ideas?

OK, I figured out the main setup was for yarn and running with npm doesn't handle react in the same way I guess

@maximvl You'll need to use yarn to run the repo otherwise it'll pull the latest versions of things and peer deps may be handled differently causing two versions of react. As for the patches, it's a bummer but that's part of the magic. I think I have that part documented though.
Going to close this out, if you have any other issues or want to see a feature let me know!

@mwood23 Hey, thanks for the reply. I wonder if there is a way around the patches? I see the main one is about jsdom's InputEvent. I also created an issue for jsdom to ask their opinion. As I don't have much experience with events, what do you think would be the proper way to make them work without patching?

To use the package you need the patches to stub the APIs with what we need for an editor. I'd be happy to contribute this to JSDOM and the hot keys package if they're interested in taking it. The reason I didn't is because testing is specific to a project's tooling and if it's using something like create react app, it's all built in. Even if it was merged today, it could be 6 months to a year for the packages to update to support it out of the box. I wanted to put out a package everyone could use today with their current setup without updating a bunch of deps. As for using it without the patches, I don't know how to do that since it's using the generated stuff from webidl files. Maybe the JSDOM team will have some information.
If you could link to the issue that'd be great so I can keep an eye on what they say.

@mwood23 Sure, here it is: https://github.com/jsdom/jsdom/issues/3330


Development of principles.py module

Examine the module and its classes. Enhance the classes by employing inheritance to condense the code. Ensure that all classes are categorized into either the FINISHED or TODO group.

Work on the submodule is in progress. Structure of some classes does not allow enhancement due to outdated way of implementation. Relevant issues will be distributed in order to prepare classes for further work.


Benchmark against google-gumbo based html5-parser

I came across this library html5-parser, which is based on Google's gumbo parser. Could this benchmark be added?

Ok, added to benchmark but I don't see any speed improvement. Maybe I'm doing something wrong.
https://github.com/rushter/selectolax/commit/9ce80ab8411b42a528a6401d63256672aa7ae314


Remove unnecessary cloning

Description
I'm on an anticloning spree today
closes: #XXXX

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (master)
[ ] Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
[ ] Wrote unit tests
[ ] Updated relevant documentation in the code
[ ] Added a relevant changelog entry to the Pending section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer

Let's only merge this after #45 as it might affect the benches there


Editor not displaying

What happens?
I'm getting this issue from both plain HTML with CDN and the React component:

What did you expect to happen?
The Editor to be displayed
How can we reproduce the issue?
<!doctype html>

API Reference

Swagger/OpenAPI Example
https://petstore3.swagger.io/api/v3/openapi.json

hey @paulmeller we are going to be adding a separate package so we dont bundle the editor with the standalone app! We will update this issue with our progress from this week ✨

What version did the split occur as I will need to lock the older release?
Thanks
Paul
On Tue, Apr 16, 2024 at 1:00 AM Marc Laventure @.***>
wrote:

hey @paulmeller https://github.com/paulmeller we are going to be adding
a separate package so we dont bundle the editor with the standalone app! We
will update this issue with our progress from this week ✨
—
Reply to this email directly, view it on GitHub
https://github.com/scalar/scalar/issues/1432#issuecomment-2058230160,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAADR2HGEDCQRZD3E6CIYD3Y5SV53AVCNFSM6AAAAABGGHCT5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYGIZTAMJWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Relevant PR #1490

There’s a new @scalar/api-reference-editor now: #1490


PluginHubPanel: Limit height of description to 2 lines, enable word wrap

This maintains the current behavior of only supporting html if the description starts with <html>

Supersedes/Closes #10713

The only minor style issue this has is that there is no ellipsis for long descriptions.

I spend a while looking for a way to do that, and there basically is not unless I implement my own renderer.


Rewrite of safari downloader

This is a rewrite of safari downloader that:

Only uses an event page, gets rid of the content page and popup
Opens chapters in parallel for faster downloading
Zips all chapters into one bundle (so the download directory stays cleaner)
Uses safari's internal api (I stumbled across this, it might be brittle)

Note that this code does not yet have error handling -- it only handles
the happy path. Some cases that should be handled are:

User invokes extension not on safari
User invokes extension on safari, but not on a book
Safari api changes (should report error to bug tracker)
All other errors ((should report error to bug tracker)

Thoughts?
p.s. If you're reviewing this, the first two commits are not interesting (they just delete some files and add dependencies).

Looks awesome! Let me test this pack before I merge it.

@chenditc should probably add some error handling to tell the user when something goes wrong :)

@ibash Finally got a chance to test out your rewrite, I think I would modify a few things on top of your rewrite:

I still believe a pop up is needed in order to give user more control and information. Like, which book is downloading, what is the progress.
Error handling. Like you said, user should know why we can't download the book.

A good rewrite anyway. I will merge this and add on it.


Cannot compile GLFW 3.1.1 on Ubuntu 6.06 Dapper

Hey there,
I'm trying to compile GLFW 3.1.1 on Ubuntu 6.06 but it is failing during the make stage. I have updated my repository, installed xorg-dev and libglu1-mesa-dev and run cmake successfully with  no errors. But despite all this going smoothly, when I call make immediately afterwards I am getting the following 2 errors:
root@ubuntu6:/home/GLFWBUILD/build# make
Scanning dependencies of target glfw
[  1%] Building C object src/CMakeFiles/glfw.dir/context.c.o
In file included from /home/GLFWBUILD/glfw-3.1.1/src/internal.h:85,
                 from /home/GLFWBUILD/glfw-3.1.1/src/context.c:28:
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:51:37: error: X11/extensions/XInput2.h: No such file or directory
In file included from /home/GLFWBUILD/glfw-3.1.1/src/internal.h:85,
                 from /home/GLFWBUILD/glfw-3.1.1/src/context.c:28:
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:233: error: syntax error before ‘RROutput’

I believe these errors might be unrelated because when I manually disabled _GLFW_HAS_XINPUT in glfw_config.h, the first error disappeared but the second one remained. Anyway I've included them both just in case they're related.  I've also included the full workflow (spaced apart for readability):
root@ubuntu6:/home/GLFWBUILD# ls
build  glfw-3.1.1

root@ubuntu6:/home/GLFWBUILD# cd build/
root@ubuntu6:/home/GLFWBUILD/build# cmake ../glfw-3.1.1/

-- The C compiler identification is GNU 4.0.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenGL: /usr/lib/libGL.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Doxygen: /usr/bin/doxygen (found version "1.4.6")
-- Using X11 for window creation
-- Using GLX for context creation
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for glXGetProcAddress
-- Looking for glXGetProcAddress - found
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressEXT
-- Looking for glXGetProcAddressEXT - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/GLFWBUILD/build

root@ubuntu6:/home/GLFWBUILD/build# ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  cmake_uninstall.cmake  docs  examples  Makefile  src  tests

root@ubuntu6:/home/GLFWBUILD/build# make
Scanning dependencies of target glfw
[  1%] Building C object src/CMakeFiles/glfw.dir/context.c.o
In file included from /home/GLFWBUILD/glfw-3.1.1/src/internal.h:85,
                 from /home/GLFWBUILD/glfw-3.1.1/src/context.c:28:
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:51:37: error: X11/extensions/XInput2.h: No such file or directory
In file included from /home/GLFWBUILD/glfw-3.1.1/src/internal.h:85,
                 from /home/GLFWBUILD/glfw-3.1.1/src/context.c:28:
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:233: error: syntax error before ‘RROutput’
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:233: warning: no semicolon at end of struct or union
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:234: warning: type defaults to ‘int’ in declaration of ‘crtc’
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:234: warning: data definition has no type or storage class
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:235: error: syntax error before ‘oldMode’
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:235: warning: type defaults to ‘int’ in declaration of ‘oldMode’
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:235: warning: data definition has no type or storage class
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:239: warning: built-in function ‘index’ declared as non-function
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:241: error: syntax error before ‘}’ token
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:241: warning: type defaults to ‘int’ in declaration of ‘_GLFWmonitorX11’
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:241: warning: data definition has no type or storage class
In file included from /home/GLFWBUILD/glfw-3.1.1/src/context.c:28:
/home/GLFWBUILD/glfw-3.1.1/src/internal.h:307: error: syntax error before ‘_GLFWmonitorX11’
/home/GLFWBUILD/glfw-3.1.1/src/internal.h:307: warning: no semicolon at end of struct or union
In file included from /home/GLFWBUILD/glfw-3.1.1/src/context.c:31:
/usr/include/string.h:304: error: ‘index’ redeclared as different kind of symbol
/home/GLFWBUILD/glfw-3.1.1/src/x11_platform.h:239: error: previous declaration of ‘index’ was here
make[2]: *** [src/CMakeFiles/glfw.dir/context.c.o] Error 1
make[1]: *** [src/CMakeFiles/glfw.dir/all] Error 2
make: *** [all] Error 2
root@ubuntu6:/home/GLFWBUILD/build#

Also just to show that I've installed the dependencies:
root@ubuntu6:/home/GLFWBUILD/build# apt-get update
Get:1 http://old-releases.ubuntu.com dapper Release.gpg [189B]
Get:2 http://old-releases.ubuntu.com dapper-updates Release.gpg [198B]
Get:3 http://old-releases.ubuntu.com dapper-security Release.gpg [198B]
Get:4 http://old-releases.ubuntu.com dapper-backports Release.gpg [198B]
Hit http://old-releases.ubuntu.com dapper Release
Hit http://old-releases.ubuntu.com dapper-updates Release
Hit http://old-releases.ubuntu.com dapper-security Release
Ign http://archive.ubuntu.com dapper Release.gpg
Hit http://old-releases.ubuntu.com dapper-backports Release
Hit http://old-releases.ubuntu.com dapper/main Packages
Hit http://old-releases.ubuntu.com dapper/restricted Packages
Hit http://old-releases.ubuntu.com dapper/main Sources
Hit http://old-releases.ubuntu.com dapper/restricted Sources
Hit http://old-releases.ubuntu.com dapper/universe Packages
Hit http://old-releases.ubuntu.com dapper/universe Sources
Hit http://old-releases.ubuntu.com dapper/multiverse Packages
Ign http://archive.ubuntu.com dapper Release
Hit http://old-releases.ubuntu.com dapper/multiverse Sources
Hit http://old-releases.ubuntu.com dapper-updates/main Packages
Hit http://old-releases.ubuntu.com dapper-updates/restricted Packages
Hit http://old-releases.ubuntu.com dapper-updates/main Sources
Hit http://old-releases.ubuntu.com dapper-updates/restricted Sources
Hit http://old-releases.ubuntu.com dapper-security/main Packages
Hit http://old-releases.ubuntu.com dapper-security/restricted Packages
Ign http://archive.ubuntu.com dapper/main Packages
Hit http://old-releases.ubuntu.com dapper-security/main Sources
Hit http://old-releases.ubuntu.com dapper-security/restricted Sources
Ign http://archive.ubuntu.com dapper/restricted Packages
Hit http://old-releases.ubuntu.com dapper-security/universe Packages
Hit http://old-releases.ubuntu.com dapper-security/universe Sources
Hit http://old-releases.ubuntu.com dapper-backports/main Packages
Hit http://old-releases.ubuntu.com dapper-backports/restricted Packages
Hit http://old-releases.ubuntu.com dapper-backports/universe Packages
Hit http://old-releases.ubuntu.com dapper-backports/multiverse Packages
Err http://archive.ubuntu.com dapper/main Packages
  404 Not Found [IP: <IP_ADDRESS> 80]
Err http://archive.ubuntu.com dapper/restricted Packages
  404 Not Found [IP: <IP_ADDRESS> 80]
Fetched 4B in 22s (0B/s)
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/Packages.gz 404 Not Found [IP: <IP_ADDRESS> 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/dapper/restricted/binary-i386/Packages.gz 404 Not Found [IP: <IP_ADDRESS> 80]
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
root@ubuntu6:/home/GLFWBUILD/build#

root@ubuntu6:/home/GLFWBUILD/build# apt-get install libglu1-mesa-dev
Reading package lists... Done
Building dependency tree... Done
libglu1-mesa-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.

root@ubuntu6:/home/GLFWBUILD/build# apt-get install xorg-dev
Reading package lists... Done
Building dependency tree... Done
xorg-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
root@ubuntu6:/home/GLFWBUILD/build#

Any ideas? I don't see why the make command would fail after cmake gives no errors. I'm really stuck on this and the only thing I can think of is that GLFW 3.1.1 cannot be compiled on something as old as Ubuntu 6.06 as it's missing necessary files or something. From the debugging I've done it seems to be missing something related to XInput and monitorX11. Here's a quick look at the code that's throwing the error in x11_platform.h:
#if defined(_GLFW_HAS_XINPUT)
    struct {
        GLboolean   available;
        int         majorOpcode;
        int         eventBase;
        int         errorBase;
        int         versionMajor;
        int         versionMinor;
    } xi;
#endif /*_GLFW_HAS_XINPUT*/

#if defined(_GLFW_HAS_XF86VM)
    struct {
        GLboolean   available;
        int         eventBase;
        int         errorBase;
    } vidmode;
#endif /*_GLFW_HAS_XF86VM*/

} _GLFWlibraryX11;

// X11-specific per-monitor data
//
typedef struct _GLFWmonitorX11
{
    RROutput        output;
    RRCrtc          crtc;
    RRMode          oldMode;

    // Index of corresponding Xinerama screen,
    // for EWMH full screen window placement
    int             index;

} _GLFWmonitorX11;

Does  RROutput not exist or something?
Anyway ANY help would be greatly appreciated! It's strange because I was able to get GLFW 2.7 compiling just fine, but now I  cannot with 3.1.1. Does 3.1.1 simply not support Ubuntu 6.06?
Cheers,
Ben.

Ubuntu 6.06's end of life date is June 1, 2011. The amount of effort that GLFW should put into supporting this system is none.

Does 3.1.1 simply not support Ubuntu 6.06?

Apparently not. Your system is so old it doesn't even provide the APIs required by GLFW. Upgrade your system.


Add ability to set climatisation

Add ability to set climatisation without ioBroker components.

Solved with PR #7


add trailing slash normalization

Netlify normalizes the trailing slash on server requests, but this PR normalizes them on client side routing
https://github.com/diem/docusaurus-components/pull/5

:exclamation: before this PR can be merged please make sure that you enable "Allow edits from maintainers".
This is needed for tooling to be able to update this PR in-place so that Github can properly recognize and mark it as merged once its merged into the upstream branch

:exclamation: before this PR can be merged please make sure that you enable "Allow edits from maintainers".
This is needed for tooling to be able to update this PR in-place so that Github can properly recognize and mark it as merged once its merged into the upstream branch

Old PR, feel free to re-open.


Make generate_and_send_coins send rewards to bech32 address.

Default generate() call sends rewards to P2SH(P2WPKH) output. Sending rewards to a native segwit address reduces weight of spending transaction and facilitates weight comparisons between native segwit v0 and v1 transactions.

I'm confused about the rationale here. Presumably we'd been making weight comparisons between transactions we create ourselves (see https://github.com/bitcoinops/taproot-workshop/pull/129 for example)

Sorry, the rational isn't correct.
In the chapter 2.2 update (#133) , I compare two transactions.

TX created with createrawtransaction with a OP_RETURN output (with a contract commitment).

TX generated with generate_and_send_coins to send to a segwit v1 output (pay-to-contract commitment)

For the weight comparison, I prefer (it isn't necessary) to minimize the weight of both transactions, by spending native segwit coinbase outputs in both cases.

for (ii), how are you adding the commitment to the transaction output if you're creating the tx with generate_and_send_coins()?

Hi @jnewbery - anything I can do to move this forward if desirable?

Sorry for the delay here. Using bech32 everywhere seems reasonable to me. Thanks!


New UI: RenderManager configuration

Prereqs:

https://github.com/OSVR/OSVR-Config/issues/6
https://github.com/OSVR/OSVR-Config/issues/5

Settings on this page:

Direct mode enabled/disabled
Vertical sync enabled
Render overfill factor
Window

title
fullscreen enabled
position (x and y)

Rotation (currently in degrees but maybe we should just have landscape/portrait
Time Warp

Enabled/disabled
Asynchronous yes/no
Max MS before VSync

Other "advanced" settings we may not show initially:

direct display index
direct high priority enabled
number of buffers
Vertical sync block rendering enabled

Discussion needed: what settings are "advanced" vs "simple"? Maybe have a "Show advanced settings" toggle that shows the advanced settings, hidden by default.

Going to call this done for now.


Auto-detect new projects in Jira and update Auto-link registration

Currently, you need to restart the Jira plugin to detect new projects on the Jira server and register them with Auto-link.  Ideally, this would be automated in some fashion, like via a webhook.  Alternatively polling on a time basis, and as a last resort running a manual "re-register" command.
See https://github.com/mattermost/mattermost-plugin-jira/pull/453

Looks like this was already worked on. Maybe this issue should be closed.

Good catch @AGMETEOR. Closing as fixed with https://github.com/mattermost/mattermost-plugin-jira/pull/453


cannot quite workout how to use graphql.request with signed-in user

I'm using nhost v2 with Vue3, and it's not quite clear how to use it properly.
After user logged-in I'm keeping nhost session and client in pinia store.
When (after login) there is nhost.graphql.request I see that it lacks authorization header, which obviously gives error (for tables where I've set permissions).
[{"extensions": {"path": "$","code": "validation-failed"},"message": "no mutations exist"}]
looking through methods I see there is setAccessToken, so I've set nhost.graphql.setAccessToken(nhost.auth.getSession().accessToken);
And it worked after that. But there is no token refreshing, so it is stopping working after 15 minutes (default expiration time),
[{"extensions": {"path": "$","code": "invalid-jwt"},"message": "Could not verify JWT: JWTExpired"}]
it's not clear when and how to refresh token and why SDK doesn't handle it?
What am I missing? I'm reading official docs and I've tried to update to latest SDK
(npm update @nhost/nhost-js "up to date")
could it be error on my side? (could I erase something when saving client/session in Pinia store?)

I'm not using Pinia but vue 3 composables, and same behaviour.
After a successful signIn(), calling nhost.graphql.request() is done without auth header and with "x-hasura-role":"public"
With nhost.graphql.setAccessToken, the request is sent with correct header and role.

Note that this it's esay to handle with onTokenChanged and onAuthStateChanged but idk if this is the correct beahvior or not as the SDK doc says

Security
The SDK manages refresh tokens automatically to respect the permission rules of your Nhost apps. Requests will be anonymous by default, and when you use the SDK to log a user in, the permissions for that user will be used for GraphQL, storage and cloud function calls.

I ran into this today. Spent hours on it. Would be nice if the official docs were in line with the code base.

@remoorejr Are you also using Vue or some other framework?

No framework at all.

I can confirm this bug:
Running the following code only works if I set select permissions for the public role even if the users is signed in:
import { NhostClient } from '@nhost/nhost-js'

const nhost = new NhostClient({
  backendUrl: 'https://....nhost.run'
});

(async () => {
  // Sign in user
  const signInResponse = await nhost.auth.signIn({
    email: '...',
    password: 'Password123...'
  })

  // Handle sign-in error
  if (signInResponse.error) {
    // throw signInResponse.error
    console.log(signInResponse.error)
    return
  }

  // Get todos
  const todos = await nhost.graphql.request(`
    query {
      todos {
        id
        created_at
        name
        is_completed
      }
    }
  `)

  console.log(JSON.stringify(todos.data, null, 2))
  console.log(todos.error)
})()

ugh, 1.0.10 version fixes it only partially - initial call works, but token is not refreshes (or refhreshed but not added to call), so I still got error 'Could not verify JWT: JWTExpired' after 15 minutes

Idem. And onTokenChanged seems not to be triggered.

Yay! It works!
btw, I noted that onTokenChanged fires about every 2 minutes, as that how it suppose to work?


Constraints not fully honored - Data Leak

NetBox version
v3.7.4
Topology Views version
v3.9.0
Steps to Reproduce
I've created numerous permission constraints for a user (25 permissions in all) to lock down what they can/cannot see. As an example, one of the permissions is viewing DCIM.Devices with a constraint of [{"site__group_id": "5"}, {"tenant_id": "8"}] which when applied restricts them to seeing only the devices for their assigned site or tenant status.
Expected Behavior
When the user goes to any given page in NetBox where the constraints are applied, they only see objects which they are authorized to view.... to include under the Topology Views.
Observed Behavior
When the user navigates to a page such as Devices > Devices, they only see the devices which they have been constrained to see as dictated by the assigned permission. This much works exactly as intended. However, when navigating to the Topology Views page, if the user enters a very broad filter such as "Show Logical Connections" without any additional filters checked/selected (e.g. without limiting to a site or tenant)... the expectation is that the user would only have objects rendered that they have access to view. Instead, they are shown EVERY object with a connection regardless of their assigned/constrained access. Making matters worse, when hovering over the objects, a pop-up window appears which exposes even further detailed information to which they should not have access to. On the up-shot... when they double click on an object to which they do not have access to, the details page for that object correctly tells them they do not have permission to view the object. But, they should have never been able to see the object and pop-up details in the first place. This is for all intents a security issue as visibility of devices and their connectivity far beyond what a user is authorized to have exposes data that would for most organizations be considered sensitive.
For what it's worth, I thought that this may have been related to another issue in NetBox core whereby some pages show quantities of objects for everything in the database rather than just the quantities for which a user has constrained privileges for (something that IMHO is also a security issue, all be it with less severity). I raised a bug report in core to address this issue first thinking that it may somehow be related to what is happening in Topology Views. (https://github.com/netbox-community/netbox/issues/16093) However, that bug report was immediately closed by Jeramy stating in short that it was an expected behavior... to fix it should be submitted as a feature request... and that the issue with Topology Views as described in this bug report is unrelated and should be addressed separately with the plugin project.

Hi,
thanks for your bug report. Sounds interesting. How exactly do you set permission constraints? I didn't know that this is possible. Is this a native NetBox feature?

I see this has been flagged by mattieserver as "Completed" and was apparently fixed with the release of version 4.0.0 this past week. However, after upgrading to NetBox 4.0.6 and Topology Views 4.0.0 this evening... the problem regrettably persists. So, unless there is some previous server cache that needs to be purged after the update... it's still broken. In my test, as was originally stated... In all the other sections of NetBox where constraints are set... all is good... they are properly honored, and visibility is appropriately restricted. But, as soon as I go to Topology and select the most basic filter of something like "show cables" or "Show logical connection" and click save... the user can see everything within NetBox as if they were an admin, and not just the objects that the user should be constrained to seeing. So, if I missed something during the upgrade... please do let me know. Otherwise... please keep plugging away at why this behavior is happening.

It is not released yet.
The changes are on the dev branch but not on any tagged version.

Ah... my bad. Knowing that... and since it was just two lines of code... I manually edited those two lines in those two files (bad I know... but, I wanted to see if it would work) ... and after restarting NetBox... all is good with the world! :)  Thank you mattieserver! #HappyDance


market.feature's short price limit test is failing (second one)

in order to replicate this, run this scenario "Scenario: Alice shorts BitUSD with price limit, price feed moves short executes, Bob is able to sell 10 USD paying fee in USD"
and place @current @pause tags above the scenario, then run it with this command:

cucumber -t @current
after it fails use console to examine the order -  there would be two orders: alice's short and bob's ask at 0.01 USD/XTS that used to match with old market engine.

I can't reproduce this.  I'm wondering if your framework's block waiting logic is exactly correct.  If it is racy that might be a problem.

I, [2015-03-18T11:31:22.733095 #81793]  INFO -- : [delegate] request: wallet_publish_price_feed delegate100 0.01 USD
I, [2015-03-18T11:31:30.840283 #81793]  INFO -- : [bob] request: wallet_market_submit_ask bob 20000.0 XTS 0.01 USD

Fixed.


Should we mark the latest build as broken?

Something seems to be wrong with the latest build (for Python 3.9), see
https://github.com/flatsurf/surface-dynamics/pull/43#issuecomment-1013564313

Looks like this has since been resolved.


Pan and zoom as workflow configuration

Pan and zoom UI was only hidden behind the experimental_tools project configuration array. It should be a workflow configuration since I don't think we want the UI enabled for everyone. I have a PR on PFE that makes it a workflow config option as well as make it public. Could we check for projects that have pan and zoom in its experimental_tools array and if true set all of its linked workflows' configuration with { pan_and_zoom: true }?

Sounds like a plan. Once of use will have to get a rake task data migration for this.

I think @mrniaboc will send out an email about the new features we're making public sometime early next week. It'd be nice if we can include pan and zoom with this, so let me know if the rake task can be run early next week. If not, it can be included with an email later.

pair on this thusday?

:sadpanda:

All workflows on projects that have the "pan and zoom" experimental tool enabled now have "pan_and_zoom: true" in their configurations.


Getting 403 error on auth

I've been using this library for a while now with no problems.
Today I started getting 403 errors in get_auth_id

Yep, can repro this. copy pasting the truthsocial.com/oauth/token request when first logging-in as truthsocial user in the website itself from the browser's inspector devtool as a cURL request and executing it in a terminal gives HTTP 403 status code and a HTML response saying

Sorry, you have been blocked

You are unable to access truthsocial.com

Seems like a cloudflare protection.

Looking at the request (json data+headers+url), all seems the same, nothing changed, somehow CF can detect a legitimate browser call vs a call from this library.

Confirmed, but a curl to the oauth/token endpoint still works fine, even with minimal headers. I suspect CF is detecting curl_cffi specifically, which may be in need of an update. Until then, there are 2 workarounds:

Hardcode the oauth token: take a valid token and put return "puttokenhere" right below def get_auth_id
Run it through a proxy by setting the http_proxy and https_proxy env variables.

Yep, in fact no need to hard-code anything! Actually the lib already takes in an optional parameter token when initializing... if not defined, uses the failing get_auth function, but if not, uses provided Authtoken... it can be used to (temporarily) circumvent this. Because it seems CF is really strict and uses unknown methods to detect this library/cURL. I logged out of TS website from my browser, did a curl call to /oauth/token with values from devtool, and still get the CF HTML response. Its interesting how CF detects this... I logged out, logged back in all in browser - and it never failed. But a cURL call with (seemingly) the same values always returns 403+HTML response.
Fortunately, I could run an Authed function with Truthbrush being passed an access-token from browser login call response.
api = Api(token="v5[redacted]")

vs the usual (username+password being passed)

Oh right, I forgot that I put that in there. :) Setting TRUTHSOCIAL_TOKEN in your environment will work as well.

Found the root cause, should work fine now.

This fixed it!  Thanks so much @lxcode !

Thank you for your efforts!
I'm still getting the following error, which I suspect is related (tried "truthbrush tags" as well as specific search queries):
ERROR    | truthbrush.api:get_auth_id:326 - Failed login request: HTTP Error 403:
I had truthbrush freshly installed using "pip3 install git+https://github.com/stanfordio/truthbrush.git"


Feat:Dark mode theme for website

Describe the feature
In the current world people like to use dark mode theme more, so introducing dark theme for website increases User Experience and increases more usable of our website.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Go Ahead @Prithwi32

@PatilHarshh could you please add level to this issue and close as pr done


[bug]mx.nd.stack couldn't stack scalars

Description
Hi, there.
I found a bug about mx.nd.stack, which couldn't stack scalars whose shape is ().
Environment info (Required)
Package used (Python/R/Scala/Julia):
Python
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
gcc
MXNet commit hash:
5d2a4510c2c226c6921a8a213d04461f68ca7173
Build config:
make -j 5 USE_OPENCV=1 USE_BLAS=openblas USE_MKLDNN=0
Error Message:
I tried to fix the bug, however I do not why attach_grad calls the function infershape.
Traceback (most recent call last):
  File "test_stack.py", line 6, in <module>
    a.attach_grad()
  File "/home/wkcn/proj/incubator-mxnet/python/mxnet/ndarray/ndarray.py", line 2163, in attach_grad
    grad = op.zeros_like(self)  # pylint: disable=undefined-variable
  File "<string>", line 42, in zeros_like
  File "/home/wkcn/proj/incubator-mxnet/python/mxnet/_ctypes/ndarray.py", line 92, in _imperative_invoke
    ctypes.byref(out_stypes)))
  File "/home/wkcn/proj/incubator-mxnet/python/mxnet/base.py", line 252, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [17:00:14] src/imperative/./imperative_utils.h:125: Check failed: infershape[attrs.op](attrs, &in_shape
s, &out_shapes)

Stack trace returned 10 entries:
[bt] (0) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(dmlc::StackTrace[abi:cxx11]()+0x173) [0x7f5c78f31f
33]
[bt] (1) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x39) [0
x7f5c78f32bb9]
[bt] (2) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(mxnet::imperative::SetShapeType(mxnet::Context con
st&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray
*, std::allocator<mxnet::NDArray*> > const&, mxnet::DispatchMode*)+0x1a79) [0x7f5c7b5a1e69]
[bt] (3) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(mxnet::Imperative::Invoke(mxnet::Context const&, n
nvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std
::allocator<mxnet::NDArray*> > const&)+0x674) [0x7f5c7b5a6d24]
[bt] (4) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(MXImperativeInvokeImpl(void*, int, void**, int*, v
oid***, int, char const**, char const**)+0x585) [0x7f5c7bc962f5]
[bt] (5) /home/wkcn/proj/incubator-mxnet/python/mxnet/../../lib/libmxnet.so(MXImperativeInvokeEx+0x67) [0x7f5c7bc98847]
[bt] (6) /usr/lib/libffi.so.6(ffi_call_unix64+0x4c) [0x7f5c87a676d0]
[bt] (7) /usr/lib/libffi.so.6(ffi_call+0x230) [0x7f5c87a670a0]
[bt] (8) /usr/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so(_ctypes_callproc+0x2a5) [0x7f5c87acd625]
[bt] (9) /usr/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so(+0x12fb0) [0x7f5c87acdfb0]

Minimum reproducible example
Test case 1:
import mxnet as mx
import random

a = mx.nd.array(random.randint(1, 100))
b = mx.nd.array(random.randint(1, 100))
a.attach_grad()
b.attach_grad()
ograd = mx.nd.random.uniform(0, 100, (2,))
#with mx.autograd.record():
c = mx.nd.stack(a, b)
#    c.backward(ograd)
print(c)
print(a.grad)

Test case 2:
import mxnet as mx

a = mx.nd.array(3)
b = mx.nd.zeros_like(a)

Steps to reproduce

Run the test case

@wkcn looks like this is related to #14227 ?

scalars are not currently supported. this should probably be fixed by the zero size tensor support work.

@abhinavs95 @anirudh2290 Thank you! It is an issue about zero dimension tensor, which is similar to #14227

@mxnet-label-bot update [Bug, operator]

@anirudh2290
This is sam as supporting 0 shape -
https://github.com/apache/incubator-mxnet/issues/14227
Can we close either of them or both in favor of 0-shape support.

duplication of #14227 and should be fixed by #14253 . Closing.


[Feature request] - Notes support

Being able to import and present hydrus notes for images could be useful depending on what the notes are used for.

Sounds useful, I will look into it once I have time to revisit the project.

Seconded!

Added in v1.8.0


Modulate brakes for idle creep at low speeds, stop and go, instead of bang bang control state machine

I've never really liked the long state machine for starting, stopping:
https://github.com/commaai/openpilot/blame/master/selfdrive/controls/lib/longcontrol.py#L31
Humans don't stop completely then press gas to go again when in creeping at low speeds, like a traffic jam, stopsign, traffic light behind cars. They modulate the brake pedal and allow engine idle creep advance the car. EVs even emulate this car behavior.
What if we interp brake based on lead distance in the stopping/stopped state v_ego < 2.0 so the vehicle creeps, then releases back to MPC per usual v_ego > 2.0?
I remember my Prius being especially jerky at v_ego < 2.0 as friction brakes would slam on past regen.

Notes to self, as I may try writing a PR later.
lead.dRel seems to be distance, in meters from front bumper to lead. So we'll need to write an interp function between 0-100% brakes based on dRel under 2 v_ego. The state machine then just switches to this interp function then back. Will need to test real world, and possibly on a few different cars.

vEgoStopping is actually 0.5 m/s on most cars. Usually the cars don't respond well to commands we're sending at these low speeds, which is why we have this state machine. Another problem is that wheel speed measurements become unreliable at low speeds. We actually talked about using the localizer at low speeds to improve stop/resume behavior.
Using the distance to the lead car sounds like a hack, and won't work with more e2e stuff.
I'm going to close this issue since it's not very actionable right now, but we're thinking about ways to improve low sped behavior.