[BUG] When sending message

Hello, I'm having this error when trying to send messages to groups.
Failed to decrypt message with any known session... Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled     at SessionCipher.doDecryptWhisperMessage (/home/-/-/node_modules/libsignal/src/session_cipher.js:236:19)
I've tried to rescan the session and it follows.
I'm using useMultiFileAuthState('...') as stated in the documentation
would anyone know what could be causing this?

can you share with us how you initialize the socket?
https://github.com/WhiskeySockets/Baileys/blob/534b1ea778152fa77bee47da291e1f3f5c153091/Example/example.ts#L40

Of course, I'm using it that way:
`socketConfig = {
defaultQueryTimeoutMs: undefined,
printQRInTerminal: false,
browser: ['Dashboard WPP', '', '3.0'],
logger: pino({
level: 'silent',
}),
generateHighQualityLinkPreview: true,
}
const { state, saveCreds } = await useMultiFileAuthState('sessiondata/' + this.key + '/')
this.authState = { state: state, saveCreds: saveCreds, keys: makeCacheableSignalKeyStore(state.keys) }
this.socketConfig.auth = this.authState.state
this.instance.sock = makeWASocket(this.socketConfig)`

try to modify as in the example with respect to Auth in this way has not generated me error

You catch the error when you are trying to send the message. For example: await sock.sendMessage(id, { text: 'hola' });

In some whatsapp works perfectly, but in others when trying to send to groups this error occurs and ends up restarting the session:
Failed to decrypt message with any known session...
Session error:Error: Bad MAC Error: Bad MAC
    at Object.verifyMAC (/home/-/node_modules/libsignal/src/crypto.js:87:15)
    at SessionCipher.doDecryptWhisperMessage (/home/-/node_modules/libsignal/src/session_cipher.js:250:16)
    at async SessionCipher.decryptWithSessions (/home/-/node_modules/libsignal/src/session_cipher.js:147:29)
    at async Object.5511971032330.0 [as awaitable] (/home/-/node_modules/libsignal/src/session_cipher.js:171:28)
    at async _asyncQueueExecutor (/home/-/node_modules/libsignal/src/queue_job.js:20:29)
Failed to decrypt message with any known session...
Session error:Error: Bad MAC Error: Bad MAC
    at Object.verifyMAC (/home/-/node_modules/libsignal/src/crypto.js:87:15)
    at SessionCipher.doDecryptWhisperMessage (/home/-/node_modules/libsignal/src/session_cipher.js:250:16)
    at async SessionCipher.decryptWithSessions (/home/-/node_modules/libsignal/src/session_cipher.js:147:29)
    at async Object.5511971032330.0 [as awaitable] (/home/-/node_modules/libsignal/src/session_cipher.js:171:28)
    at async _asyncQueueExecutor (/home/-/node_modules/libsignal/src/queue_job.js:20:29)
Failed to decrypt message with any known session...
Session error:Error: Bad MAC Error: Bad MAC
    at Object.verifyMAC (/home/-/node_modules/libsignal/src/crypto.js:87:15)
    at SessionCipher.doDecryptWhisperMessage (/home/-/node_modules/libsignal/src/session_cipher.js:250:16)
    at async SessionCipher.decryptWithSessions (/home/-/node_modules/libsignal/src/session_cipher.js:147:29)
    at async Object.5511971032330.0 [as awaitable] (/home/-/node_modules/libsignal/src/session_cipher.js:171:28)
    at async _asyncQueueExecutor (/home/-/node_modules/libsignal/src/queue_job.js:20:29)
Failed to decrypt message with any known session...
Session error:Error: Bad MAC Error: Bad MAC
    at Object.verifyMAC (/home/-/node_modules/libsignal/src/crypto.js:87:15)
    at SessionCipher.doDecryptWhisperMessage (/home/-/node_modules/libsignal/src/session_cipher.js:250:16)
    at async SessionCipher.decryptWithSessions (/home/-/node_modules/libsignal/src/session_cipher.js:147:29)
    at async Object.5511971032330.0 [as awaitable] (/home/-/node_modules/libsignal/src/session_cipher.js:171:28)
    at async _asyncQueueExecutor (/home/-/node_modules/libsignal/src/queue_job.js:20:29)
Failed to decrypt message with any known session...

Another error occurring, I don't know if this error is causing the aforementioned one.
But some groups timed out, even whatsapp trying to fire being superadmin of the group
[svqlcyjduprwkm] ERRO AO ENVIAR MENSAGEM NO GRUPO -><EMAIL_ADDRESS>Error: Timed Out
    at /home/-/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:159:32
    at runNextTicks (node:internal/process/task_queues:61:5)
    at listOnTimeout (node:internal/timers:528:9)
    at processTimers (node:internal/timers:502:7) {
  data: {
    stack: 'Error\n' +
      '    at promiseTimeout (/home/-/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:154:19)\n' +
      '    at sendRawMessage (/home/-/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:54:42)\n' +
      '    at sendNode (/home/-/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:70:16)\n' +
      '    at /home/-/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:431:19\n' +
      '    at runMicrotasks (<anonymous>)\n' +
      '    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
      '    at async Object.transaction (/home/-/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:135:26)\n' +
      '    at async relayMessage (/home/-/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:276:9)\n' +
      '    at async Object.sendMessage (/home/-/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:637:17)\n' +
      '    at async /home/-/src/api/class/instance.js:986:20'
  },
  isBoom: true,
  isServer: false,
  output: {
    statusCode: 408,
    payload: {
      statusCode: 408,
      error: 'Request Time-out',
      message: 'Timed Out'
    },
    headers: {}
  }
}

I'm facing the same problem, any solution yet?

I have same error...
Error: Timed Out
at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:136:32 {
data: {
stack: 'Error\n' +
'    at promiseTimeout (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:131:19)\n' +
'    at waitForMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:114:53)\n' +
'    at query (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:136:22)\n' +
'    at groupQuery (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:12:55)\n' +
'    at groupMetadata (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:22:30)\n' +
'    at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:288:47\n' +
'    at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:291:23\n' +
'    at Object.transaction (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:32)\n' +
'    at relayMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:278:30)\n' +
'    at Object.sendMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:648:23)\n' +
'    at async SendWhatsAppMessage (/home/deploy/whats/backend/dist/services/WbotServices/SendWhatsAppMessage.js:58:29)\n' +
'    at async store (/home/deploy/whats/backend/dist/controllers/MessageController.js:54:9)'
},
isBoom: true,
isServer: false,
output: {
statusCode: 408,
payload: {
statusCode: 408,
error: 'Request Time-out',
message: 'Timed Out'
},
headers: {}
}
OBS: My project create in database 2 contacts, one contacts with "-" another Contacts whitout "-"
See:
whats=# select * from "Contacts" where name like 'Amap%';
id   |       name       |         number          |               profilePicUrl                |         createdAt          |         updatedAt          | email | isGroup | companyId
-------+------------------+-------------------------+--------------------------------------------+----------------------------+----------------------------+-------+---------+----------
1757 | Amapxxxxxxx | 5537###-xxx103 | https://xxxxxxx/nopicture.png | 2023-01-19 23:59:33.42+01  | 2023-01-19 23:59:33.42+01  |       | t       |         2
17495 | Amapxxxxxxx  | 5537###xxx103  | https://xxxxxxx/nopicture.png | 2023-07-31 18:20:41.528+02 | 2023-07-31 18:20:41.528+02 |       | t       |         2
In contact whitout "-" I dont send any messages and receive error But i read all messages.
In Contact have "-" I send messages but dont read any messages.

Same error

Is there a solution for this problem?

Hello, guys. I'm experiencing the same error. Has anyone been able to find a solution?
current-app-1  | Failed to decrypt message with any known session...
current-app-1  | Session error:Error: Bad MAC Error: Bad MAC
current-app-1  |     at Object.verifyMAC (/home/node/app/node_modules/super-libsignal/src/crypto.js:87:15)
current-app-1  |     at SessionCipher.doDecryptWhisperMessage (/home/node/app/node_modules/super-libsignal/src/session_cipher.js:250:16)
current-app-1  |     at async SessionCipher.decryptWithSessions (/home/node/app/node_modules/super-libsignal/src/session_cipher.js:147:29)
current-app-1  |     at async<PHONE_NUMBER>998:61.0 [as awaitable] (/home/node/app/node_modules/super-libsignal/src/session_cipher.js:171:28)
current-app-1  |     at async _asyncQueueExecutor (/home/node/app/node_modules/super-libsignal/src/queue_job.js:20:29)

I have same error... Error: Timed Out at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:136:32 { data: { stack: 'Error\n' + ' at promiseTimeout (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js:131:19)\n' + ' at waitForMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:114:53)\n' + ' at query (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:136:22)\n' + ' at groupQuery (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:12:55)\n' + ' at groupMetadata (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js:22:30)\n' + ' at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:288:47\n' + ' at /home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:291:23\n' + ' at Object.transaction (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:32)\n' + ' at relayMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:278:30)\n' + ' at Object.sendMessage (/home/deploy/whats/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:648:23)\n' + ' at async SendWhatsAppMessage (/home/deploy/whats/backend/dist/services/WbotServices/SendWhatsAppMessage.js:58:29)\n' + ' at async store (/home/deploy/whats/backend/dist/controllers/MessageController.js:54:9)' }, isBoom: true, isServer: false, output: { statusCode: 408, payload: { statusCode: 408, error: 'Request Time-out', message: 'Timed Out' }, headers: {} }
OBS: My project create in database 2 contacts, one contacts with "-" another Contacts whitout "-" See:
whats=# select * from "Contacts" where name like 'Amap%'; id | name | number | profilePicUrl | createdAt | updatedAt | email | isGroup | companyId -------+------------------+-------------------------+--------------------------------------------+----------------------------+----------------------------+-------+---------+---------- 1757 | Amapxxxxxxx | 5537###-xxx103 | https://xxxxxxx/nopicture.png | 2023-01-19 23:59:33.42+01 | 2023-01-19 23:59:33.42+01 | | t | 2 17495 | Amapxxxxxxx | 5537###xxx103 | https://xxxxxxx/nopicture.png | 2023-07-31 18:20:41.528+02 | 2023-07-31 18:20:41.528+02 | | t | 2
In contact whitout "-" I dont send any messages and receive error But i read all messages. In Contact have "-" I send messages but dont read any messages.

looks like a baileys bug, I've never gotten that error code except for the 500 error code

Using just like @davicolet configs and recurrently getting "Timed Out"
This property config defaultQueryTimeoutMs: undefined, was also recommended on Baileys Discord Group, but unfortnatly doesn't solve the problem.
Is it there any solution yet?

I have the same error here

Também estou com o mesmo problema, alguma solução?

Também estou com o mesmo problema.

+1

+1

+1

Bom dia, alguma solução?

A solução é fazer tratamento em grupos.
Não é bug do bayleis.
The solution is make processing in groups.
not bug of bayleis.

Com certeza é um bug do Baileys...
Esse erro fica aparecendo porque o Baileys não é capaz de lidar com algo e também não mostra como tratar isso... definitivamente não é um comportamento esperado em nenhum software.

A solução é fazer tratamento em grupos. Não é bug do bayleis.
The solution is make processing in groups. not bug of bayleis.

Qual foi a solução para você?

bad decryption errors are due to some mismanagement in our libsignal, will look into them all

@PurpShell Any update on this issue ? Is there any workaround for a temporary fix?

tive o mesmo erro so verifiquei o jid<EMAIL_ADDRESS>para<EMAIL_ADDRESS>i had the same error so i checked the jid<EMAIL_ADDRESS>to<EMAIL_ADDRESS>

👀

Wouldn't the reason be Meta managing server resources on a case-by-case basis? I have 3 bots with the exact same code and use case, one of them gives the error all day, the other occasionally and the other never.

Wouldn't the reason be Meta managing server resources on a case-by-case basis? I have 3 bots with the exact same code and use case, one of them gives the error all day, the other occasionally and the other never.

Same here, some connection every day i need to reconnect.. other i dont need to reconnect since January 2024.
Same code for all instances
Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled
at SessionCipher.doDecryptWhisperMessage (node_modules/libsignal/src/session_cipher.js:236:19)
at SessionCipher.decryptWithSessions (node_modules/libsignal/src/session_cipher.js:147:40)
at<PHONE_NUMBER>208.88 [as awaitable] (node_modules/libsignal/src/session_cipher.js:171:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _asyncQueueExecutor (node_modules/libsignal/src/queue_job.js:20:29)

My concern is whether these solutions we're trying, such as using successive reconnections, disconnecting, and logging in again, might be overloading the transmissions and thereby causing Meta's server—which is trying to impose limits—to trigger a flag and ban us.

Wouldn't the reason be Meta managing server resources on a case-by-case basis? I have 3 bots with the exact same code and use case, one of them gives the error all day, the other occasionally and the other never.

Same here, some connections every day i need to reconnect.. with others i dont need to reconnect since January 2024. Same code for all instances
Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled at SessionCipher.doDecryptWhisperMessage (node_modules/libsignal/src/session_cipher.js:236:19) at SessionCipher.decryptWithSessions (node_modules/libsignal/src/session_cipher.js:147:40) at<PHONE_NUMBER>208.88 [as awaitable] (node_modules/libsignal/src/session_cipher.js:171:39) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _asyncQueueExecutor (node_modules/libsignal/src/queue_job.js:20:29)

the exact same thing happens to me

Wouldn't the reason be Meta managing server resources on a case-by-case basis? I have 3 bots with the exact same code and use case, one of them gives the error all day, the other occasionally and the other never.

Same here, some connections every day i need to reconnect.. with others i dont need to reconnect since January 2024. Same code for all instances
Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled at SessionCipher.doDecryptWhisperMessage (node_modules/libsignal/src/session_cipher.js:236:19) at SessionCipher.decryptWithSessions (node_modules/libsignal/src/session_cipher.js:147:40) at<PHONE_NUMBER>208.88 [as awaitable] (node_modules/libsignal/src/session_cipher.js:171:39) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _asyncQueueExecutor (node_modules/libsignal/src/queue_job.js:20:29)

I'm experiencing the same issue.

Wouldn't the reason be Meta managing server resources on a case-by-case basis? I have 3 bots with the exact same code and use case, one of them gives the error all day, the other occasionally and the other never.

Same here, some connections every day i need to reconnect.. with others i dont need to reconnect since January 2024. Same code for all instances
Session error:MessageCounterError: Key used already or never filled MessageCounterError: Key used already or never filled at SessionCipher.doDecryptWhisperMessage (node_modules/libsignal/src/session_cipher.js:236:19) at SessionCipher.decryptWithSessions (node_modules/libsignal/src/session_cipher.js:147:40) at<PHONE_NUMBER>208.88 [as awaitable] (node_modules/libsignal/src/session_cipher.js:171:39) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _asyncQueueExecutor (node_modules/libsignal/src/queue_job.js:20:29)

I'm experiencing the same issue.

I'm having the same problem, but only when I try to run inside a container, forcing a MAC address in the container temporarily solved it for me. Example: docker run --mac-address 02:42:ac:11:00:11 ...

+1

+1


perf: reuse URL for each request

Minor improvement to throughput. Default app:
# main
Running 10s test @ http://<IP_ADDRESS>:8000
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   477.26us  223.62us  14.86ms   98.15%
    Req/Sec    10.57k   583.87    11.01k    98.02%
  Latency Distribution
     50%  457.00us
     75%  469.00us
     90%  490.00us
     99%  747.00us
  212537 requests in 10.10s, 102.16MB read
Requests/sec:  21041.02
Transfer/sec:     10.11MB

# This patch
wrk -d 10s --latency http://<IP_ADDRESS>:8000
Running 10s test @ http://<IP_ADDRESS>:8000
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   429.60us  215.02us  14.50ms   98.04%
    Req/Sec    11.76k   683.10    12.32k    96.53%
  Latency Distribution
     50%  409.00us
     75%  421.00us
     90%  442.00us
     99%  694.00us
  236346 requests in 10.10s, 113.60MB read
Requests/sec:  23399.90
Transfer/sec:     11.25MB

This will be optimized in Deno itself, so that the workaround is no longer necessary


Examples required for Role/permission in SP configuration

Documentation: Configuring a Service Provider [1].
Issue Identified: Under the section "Click here for details on how to configure roles and permissions", it has a description of roles and permission.
It is not clear what we should as roles and permissions. Shall we add some samples values with proper explanation?
[1] https://docs.wso2.com/display/IS540/Configuring+a+Service+Provider

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Unable to load optional values from env

Steps to reproduce:

Add an optional value to the schema. {test: Optional(String)}
Map it to some env variable in yaml. test: ${TEST_ENV}
Set the env, run the file and see that it's undefined.

DEBUG=tconf* TEST_ENV=123 node index.js
  tconf loading files from ./config/: default, NODE_ENV, ENV, local +0ms
  tconf:file parsing config config/default.yaml +0ms
  tconf:env unable to coerce value from env var "test" as type optional +0ms
  tconf:file config file config/NODE_ENV.yaml not found +2ms
  tconf inspecting environment variables +3ms
  tconf:file config file config/local.yaml not found +0ms
{ test: undefined }

Example: https://github.com/Loskir/tconf-test

Mapped variable also doesn't work
DEBUG=tconf* CONFIG_test=123 node index.js
  tconf loading files from ./config/: default, NODE_ENV, ENV, local +0ms
  tconf:file parsing config config/default.yaml +0ms
  tconf:file config file config/NODE_ENV.yaml not found +1ms
  tconf inspecting environment variables +3ms
  tconf:env processing env var "CONFIG_test" +0ms
  tconf:env retrieving type information from test +0ms
  tconf:env coercing value to optional +0ms
  tconf:env unable to coerce value from env var "CONFIG_test" as type optional +0ms
  tconf:file config file config/local.yaml not found +1ms
{}

Hi @Loskir. Yeah, looks like that's a gap. For now, you can use Partial instead of inline Optional values.  For example:
const ConfigSpec = Partial({
   test: Number
});

if you need to combine with required fields, you can use And like here.

Hi @Loskir. This has been fixed in release 2.2.2.. You should be able to map environment variables to Optional types now. Please let me know if you have run into any more problems.


Issue: timestamps not named consistently in prefix "modifyState"

Expected Behavior
the start timestamp key should be named timestamp_ms and the end timestamp should be named timestamp_ms_end to be consistent with addShift nomenclature
Current Behavior
start timestamp key is "start_time_stamp" and end timestamp is "end_time_stamp"
Relevant log output
No response
Steps to Reproduce
open pxmodifyState.go  in kafka to postgres and look at the code
Context (Environment)
none
Possible Solution
No response
Version
v0.9.x
Anything else?
No response

This change is breaking !


Using the Rust SDK router with the new Request<Json<T>> type fails when calling route.handle(req);

Using Spin from main
The following code:
#[http_component]
fn handle_route(req: http::Request<Json<MyType>>) -> Response {
    let mut router = Router::new();
    router.any("/api/*", not_found);
    router.handle(req)
}

produces the following error:
error[E0277]: the trait bound `spin_sdk::http::Request: From<http::Request<Json<MyType>>>` is not satisfied
  --> src/lib.rs:49:19
   |
49 |     router.handle(req)
   |            ------ ^^^ the trait `From<http::Request<Json<MyType>>>` is not implemented for `spin_sdk::http::Request`
   |            |
   |            required by a bound introduced by this call
   |
   = note: required for `http::Request<Json<MyType>>` to implement `Into<spin_sdk::http::Request>`
note: required by a bound in `Router::handle`
  --> /Users/mikkel/.cargo/git/checkouts/spin-91500438ac5656d2/a4da3b7/sdk/rust/src/http/router.rs:42:22
   |
42 |     pub fn handle<R: Into<Request>>(&self, request: R) -> Response {
   |                      ^^^^^^^^^^^^^ required by this bound in `Router::handle`

For more information about this error, try `rustc --explain E0277`.

A really convenient option here would also be different bodies per route:
/// A Spin HTTP component that internally routes requests.
#[http_component]
fn handle_route(req: Request) -> Response {
    let mut router = Router::new();
    router.get("/hello/:planet", hello_body);
    router.handle(req)
}

pub fn hello_body(_req: Request<Json<MyType>>, params: Params) -> Result<impl IntoResponse> {
    let planet = params.get("planet").expect("PLANET");

    Ok(Response::new(200, planet.to_string()))
}

@rylev - I'm still seeing this error with v2.0.0-rc.1 version of Spin and the SDK.

However, what @radu-matei suggested above works, by using the http::Request<Json<T>> type for a route and spin::http::Request

@mikkelhegn Sorry for this!
The problem
The reason for this is that the request handed to Router::handle must be convertible to a spin_sdk::http::Request in an infallible way, because we have no way with the Router::handle to handle errors in that conversion. More specifically in this case, the body of the request handed to Router::handle must be convertible to a Vec<u8> (the body type of spin_sdk::http::Request).
A http::Request<Json<T>> cannot be guaranteed to convert to spin_sdk::http::Request without an error because Json<T> is not guaranteed to be serializable to JSON without an error, and there's no way for us to really be able to statically enforce this. There is no type bound on T that we can set to say "T must be serializable to JSON without runtime error". T: Serialize does not guarantee that T is serializable as JSON (hence why serde_json::to_vec returns a Result<Vec<u8>, Error> and not just a Vec<u8>).
Possible solutions
Runtime panics
We could make it an implicit contract that aJson<T> must always be able to successfully serialize to JSON and panic if it does not. This makes things that feel like they should work just work, but naturally having an API that can panic makes me uncomfortable.
Change the signature of Router::handle
We make Router::handle take any type T where T: TryInto<Request>, T::Error: IntoResponse. This would let us handle errors when converting the request types. We could then implement TryInto<Request> for hyperium::Request<Json<T>> where T: Serialize and return an error when serializing T fails.
This is technically a breaking change from what we currently have, but a minor one that we might be able to sneak in before release.
All of this also makes me want to change Router::handle to take T which is bounded by TryIntoRequest trait that we fully control because relying on the std conversion traits is a compatibility hazard for the future. This is why we have custom traits for all other conversions.
I'll open a PR.


Add API key authorization

closes #15
TODO:

[x] implement api key table
[x] protect create / update / delete endpoints with auth dependency
[x] test authorized endpoint access
[x] Test api-key creation workflow
[x] Developer documentation

@cisaacstern - if you have a chance, it would be good to get a review of what I have done so far while I work on the final items.

Charles please give this a final review and then merge when you're happy.
A high-level explanation is in security.md. Basically, I feel that this is the minimum level of security we need to wire up trusted communication between a single authorized client--presumably our first bakery--and the API.
Here is the TODO at the end of security.md. These are security-related things that we should do in the future but are not needed immediately.

Implement admin interface for updating / deactivating keys
Implement key expiry policies
Link keys to specific users and / or bakeries (i.e. service account)
Add a "comment" field to the api keys table to remember ourselves what a particular
key was created for.


apt CI: Increase until-pass number to mitigate Camera test flakiness

See https://github.com/robotology/gz-sim-yarp-plugins/issues/75 . In general, it is better not to have red CI, otherwise they may hide valid regressions. So if some failure are know, better to suppress them rather then just keep a red CI.

Yes I agree, thanks @traversaro

Feel free to merge, thanks!

Feel free to merge, thanks!

Ok! Closes #75


.env file don't load in config

Environment
Node v16.15.0
npm 8.5.5
nitropack ^0.4.4
Reproduction
Reproducing this is simple, FYI, I'm using Nitro without Nuxt.
If you follow the documentation you would end up with something like this in nitro.config.ts:
import { defineNitroConfig } from 'nitropack'

export default defineNitroConfig({

  runtimeConfig: {
    supabase: {
      api_url: '',
      api_anon_key: ''
    }
  }
  // extends: [
  //   'config.dev.ts'
  // ]
})

And .envfile:
NITRO_SUPABASE_API_URL='xx'
NITRO_SUPABASE_API_ANON_KEY='yy'

Trying to read the values in a route with:
export default () => {
  const config = useRuntimeConfig()
  return config
}

you get empty values (the defaults).
{
  "app": {
    "baseURL": "/"
  },
  "nitro": {
    "routes": {}
  },
  "supabase": {
    "api_url": "",
    "api_anon_key": ""
  }
}

While the expected behavior is to find the values from the .env file:
{
  "app": {
    "baseURL": "/"
  },
  "nitro": {
    "routes": {}
  },
  "supabase": {
    "api_url": "xx",
    "api_anon_key": "yy"
  }
}

Describe the bug
I figured from reading the code, that Nitro suppose to get values from .env using unjs/c12 & dotenv while looping for values in the file that start with NITRO_ prefix, but it doesn't work (at least on my local)
I found a solution that works for me, which is importing dotenv at the start of nitro.config.ts, which solves this issue.
If this is the standard way to do so, then I assume an example of it in the documentation would be helpful (it took me a long time to figure it out myself)
If this is not the standard way, which is what I believe to be so, then importing dotenv in the beginning of the [src/options.ts](https://github.com/unjs/nitro/blob/b153cea1f2e0805088bdc512f490539cccec69c4/src/options.ts) could solve the issue.
Additional context
What solved it for me is adding import 'dotenv/config' at the top:
import 'dotenv/config'
import { defineNitroConfig } from 'nitropack'

export default defineNitroConfig({

  runtimeConfig: {
    supabase: {
      api_url: '',
      api_anon_key: ''
    }
  }
...

Logs
No response

Discussed in https://github.com/unjs/nitro/discussions/238


SignClient not compatible with 3.0 pre5

When adding the 3.0 pre5 sdk on an Azure Pipelines Agent, the SignClient cannot execute with an error that it cannot find any compatible framework.
You can invoke the tool using the following command: SignClient
Tool 'signclient' (version '1.1.7') was successfully installed.
##[error].\SignClient : It was not possible to find any compatible framework version

Needs an update to support https://github.com/dotnet/designs/blob/master/accepted/runtime-binding.md#rollforward

Fixed by https://github.com/dotnet/SignService/commit/b815d6ca4e3f265fa0db270d61dd23a2ce4cf019
Client version 1.1.21 is rolling out to NuGet now with the fix

thanks @onovotny


Change setup.py requirements

Yo guys,
Following the same code from this PR: vintasoftware/tapioca-instagram#4

Now on PyPI


[Debugger] Incorrect enum variable values in global variable scope

Description:
Enum variables are not visible in debug mode.
Steps to reproduce:

Consider the below code segment:

enum Language {
    EN = "English",
    TA = "Tamil",
    SI = "Sinhala"
}

public function main() {
    int x = 5;
}

Run the above program in debug mode by adding a breakpoint at the last line of main() method.
We could observe that the enum variables are not visible in debug mode

I guess this is related with https://github.com/ballerina-platform/ballerina-lang/issues/26139 as the enum values are considered as ballerina constant values during the runtime. Since this should be fixed with the runtime changes which fixes the mentioned issue.


Sample for bindable layout

using this plugin with BindableLayout is the same as ListView and CollectionView.
Inside your DataTemplate you have to specify a unique combination for: sharedTransitions:Transition.Name and sharedTransitions:Transition.Group
Maybe in the next release i will update the demo to include a BindableLayout :)


Refactor code that uses Commons Upload dependency

On the face of it this looks good but I see 0 test coverage on this class.
(And for some reason I do not see CodeCov in the checks on this PR so I had to run this locally to check test-coverage ).


Must I use pod "ImageSlideshow/Kingfisher" even if I already have Kingfisher

Must I use pod "ImageSlideshow/Kingfisher" even if I already have Kingfisher installed, or can I simply use pod 'ImageSlideshow', '~> 0.6' ?

Yes,you should use pod "ImageSlideshow/Kingfisher",It won't install again Kingfisher if you already have Kingfisher installed.

@feiin @zvonicek What do you mean it wont install it again if I already have Kingfisher. Whats the point of using pod ImageSlideshow/Kingfisher then?

ImageSlideshow/Kingfisher makes sure you have Kingfisher installed. If you already have it in your podfile, it'll simply use it, if not, it'll install it.
ImageSlideshow pod is useful when you don't need any 3rd party networking library or you want to create your own InputSource.

Thanks @zvonicek

But just remember to use it even if you have Kingfisher in your Podfile. The point is that it'll also include InputSource for Kingfisher.

@zvonicek Sorry I forgot to ask you, does the ImageSlideshow/Kingfisher have a swift3 branch?

Sure, you can use
pod 'ImageSlideshow/Kingfisher', :git => 'https://github.com/zvonicek/ImageSlideshow.git', :branch => 'swift-3'

Sorry I dont understand. Why should I use that pod if I already have
Kingfisher installed? - If it wont install it again
måndag 24 oktober 2016 skrev feiin<EMAIL_ADDRESS>
Yes,you should use pod "ImageSlideshow/Kingfisher",It won't install again
Kingfisher if you already have Kingfisher installed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zvonicek/ImageSlideshow/issues/78#issuecomment-255633753,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKFvY4We8SSUE6y7HeHmKYtnp_tWB0reks5q3BTXgaJpZM4KePBK
.

Read again my previous response to which you gave 👍
😉

@zvonicek No idea why that comment popped up now. I sent it through gmail a few days ago :O


Dashboard stops rendering graphs after 24h

Something quite peculiar is happening with dashboard / heapster. The graphs stop being rendered after roughly 24h. I have checked the logs of individual pods and I can't see anything unusual. Has anybody else seen this behaviour?

really weird one, but wasn't able to reproduce it


Allow for passing in of 2 new props on MonthlyNav component

It would be nice to have an onNextClick prop and an onPreviousClick prop.
This would be nice for making pagination-type calls for events and could probably just be called before calling onCurrentMonthChange.
It would also be nice to be able to pass in your own button component to better customize your nav.
I could PR both these changes If you would like.
Thanks

This goals along with my comment on your other issue :)
Instead of building up this library to have lots and lots of props to support everyone's individual use-cases. You are welcome to make your own MonthlyNav component in your codebase.
So here is the built in one in the library:
export const MonthlyNav = () => {
  let { currentMonth, onCurrentMonthChange } = useMonthlyCalendar();

  return (

      <button
        onClick={() => onCurrentMonthChange(subMonths(currentMonth, 1))}
        className="cursor-pointer"
      >
        Previous
      </button>

        {format(
          currentMonth,
          getYear(currentMonth) === getYear(new Date()) ? 'LLLL' : 'LLLL yyyy'
        )}

      <button
        onClick={() => onCurrentMonthChange(addMonths(currentMonth, 1))}
        className="cursor-pointer"
      >
        Next
      </button>

  );
};

You can import the "useMonthlyCalendar" hook from this library and make a component matching what you are asking for. Now just render that in place of the  from this library.
I'm going to close this, but feel free to reopen if you have questions.


theharvester: 4.0.0 -> 4.0.2

Motivation for this change
Update to latest upstream release 4.0.2
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

theharvester


Consolidate flushes to reduce overhead

This change batches calls to flush together where possible. flush is a relatively expensive call. By batching calls to flush together, we can sell out write latency (which isn't really a primary concern) to pick up some gains in overall throughput (which is a primary concern). Some benchmarks with a local client and server show a significant improvement with this change in place:
Before

Concurrent connections
Time to send 10,000 notifications

1
0.336 ± 0.003 seconds

4
0.231 ± 0.019 seconds

8
0.221 ± 0.013 seconds

After

Concurrent connections
Time to send 10,000 notifications

1
0.312 ± 0.002 seconds

4
0.160 ± 0.009 seconds

8
0.152 ± 0.013 seconds

This closes #655.

Yow. Combined with #658, this makes a huge difference in throughput for local benchmarks:
Pushy v0.13.6

Concurrent connections
Time to send 10,000 notifications

1
0.333 ± 0.002 seconds

4
0.251 ± 0.010 seconds

8
0.212 ± 0.018 seconds

After updating to Netty 4.1.32 and consolidating flushes

Concurrent connections
Time to send 10,000 notifications

1
0.257 ± 0.002 seconds

4
0.137 ± 0.007 seconds

8
0.116 ± 0.006 seconds

That's nearly double the throughput at higher concurrency levels.

Woohoo that’s awesome


Add v5 branch to js-parity workflow

Fixes #5978
Parity issues are created unless PR is tagged with Automation: No parity.
The workflow creates parity issues for JS, Java and Python.
Specific Changes
Add v5 branch to create-botbuilder-js-parity-issue.yml

Pull Request Test Coverage Report for Build 278562

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.03%) to 78.801%

Files with Coverage Reduction
New Missed Lines
%

/libraries/AdaptiveExpressions/BuiltinFunctions/GetNextViableTime.cs
1
93.94%

Totals

Change from base Build 277946:
0.03%

Covered Lines:
24790

Relevant Lines:
31459

💛  - Coveralls


Change Background color

There doesn't seem to be an option to change the Dialog's background color in either the Theming or Global Theming sections. Any way to do this?
Awesome library, btw.

@sheharyarn the next release will include support for this: https://github.com/afollestad/material-dialogs/issues/155

0.5.3 is now available.


wrap result of ::Hash::Binding::Collection#read if it is a Hash

The JSON-HAL specification allows a single Resource Object in the _embedded property.

4.1.2.  _embedded
The reserved "_embedded" property is OPTIONAL
It is an object whose property names are link relation types (as
defined by [RFC5988]) and values are either a Resource Object or an
array of Resource Objects.

Currently an Exceptions is thrown if the representer expects a collection instead of a property. This commit will fix it.

We can't merge this as it will water down our solid API, see https://github.com/apotonick/roar/pull/192#issuecomment-233546590.
We have to solve that in the HAL implementation in Roar, @svelep - this shouldn't affect Representable. In worst case, we have to introduce a new Collection with HAL.

Or, why don't we do it the way we do it in JSONAPI where we override from_hash and sort the optional collection/hash there?


ES6 class support

Hey @dop251, thanks for all your hard work on Goja. I'm especially grateful for the recent Promise API support.
Goja is really close to being ready to natively run what ESBuild outputs to ES6 via esbuild --target=es2015 <entry...>.
One thing that's missing is class support:
class A extends B {
  constructor() {
     super()
  }
}

I was actually surprised to see that class support came in ES6, but I had a look at the ES6 support table and it looks like it's there.
For my use-case, I'm trying to render Svelte code on the server-side, but the compiler generates classes:
var SvelteElement
if (typeof HTMLElement === "function") {
  SvelteElement = class extends HTMLElement {
    constructor() {
      super()
      this.attachShadow({ mode: "open" })
    }
    // ...
}

Thanks for all your hard work first of all! do we have an eta for the es6 support?

@dzonerzy
He says that,
I will be adding features in their dependency order and as quickly as time permits. Please do not ask for ETAs.


bug: "trigger" key not working when searching with incsearch on outside of visible area

Did you check docs and existing issues?

[X] I have read all the flash.nvim docs
[X] I have searched the existing issues of flash.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.9.1
Operating system/version
MacOS 13.4.1
Describe the bug
When searching with incsearch on for a pattern outside of the visible area, the trigger key is not working.
https://github.com/folke/flash.nvim/assets/16707112/e7832cbd-c732-41b8-b5e6-0dafdba2afd2
Steps To Reproduce

nvim -u repro.lua
search for a pattern inside the visible area. Press ; and the label. The jump is performed.
search for a pattern outside of the visible area. Press ;.  The ; is not registered as a trigger key.

Expected Behavior
Pressing ';' and label should jump to the pattern
Repro
local root = vim.fn.fnamemodify("./.repro", ":p")
for _, name in ipairs({ "config", "data", "state", "cache" }) do
    vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

local plugins = {
    "folke/flash.nvim",
    opts = {
        search = {
            trigger = ";"
        }
    }
}

require("lazy").setup(plugins, {
root = root .. "/plugins",
})

vim.cmd[[set termguicolors]]

can reproduce the issue. Using sj.nvim again in the meantime

please keep

please keep

please keep

Same issue with settings incremetal to true but not enable search mode. After that, dt or ct isn't work as usual.
opts = {
  search = {
    incremental = false,
  },
  mode = {
    search = {
      enabled = false,
    },
  },
}

please keep

please keep


Added encrypt tests

Added encrypt tests

Codecov Report
Base: 42.80% // Head: 55.23% // Increases project coverage by +12.42% :tada:

Coverage data is based on head (6a412b1) compared to base (4639892).
Patch coverage: 25.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #47       +/-   ##
===========================================
+ Coverage   42.80%   55.23%   +12.42%
===========================================
  Files          10       10
  Lines         584      592        +8
===========================================
+ Hits          250      327       +77
+ Misses        302      210       -92
- Partials       32       55       +23

Impacted Files
Coverage Δ

internal/encrypt/encrypt.go
59.48% <25.00%> (+38.63%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


blank page after build

so, when I perform all the tasks in the contributing.md file and successfully run grunt build, I fire brackets up with
brackets --port 3000 --proj-dir /workspace --supp-dir /workspace

and, with great excitement, I go to http://localhost:3000 ... I get ...
nothing

as in a blank page in the browser :(
what have I missed ?

I am trying to run in a docker container if that makes a difference .. do you have a working Dockerfile ?

Hmm yeah there is a problem with socket.io in container.  It's trying to
reach wrong URL. I will fix it tomorrow.
On Tue, 5 Jan 2016 at 23:57 jmls<EMAIL_ADDRESS>wrote:

I am trying to run in a docker container if that makes a difference .. do
you have a working Dockerfile ?
—
Reply to this email directly or view it on GitHub
https://github.com/rabchev/brackets-server/issues/13#issuecomment-169146609
.

I'm close to resolve the issue with socket.io, but unfortunately I couldn't finish it today. I will continue tomorrow.
Sorry!

The issue is fixed. You can get the Dockerfile and brief explanation in README.md file in /docker/dev directory. Let me know if you encounter other issues.


[SYSTEMML-1063] Mailing List Update on Home Page

Mailing list section redesigned to focus on dev list on home page. Added a hyperlink link to take user to all mailing lists in the community section. Also made a few minor changes to the home page. (1)  new illustration for get started section (2) added documentation button to get started section (3) changed twitter icon from blue to black (4) social links open new tabs instead of the same window

LGTM.


Limit the github installation token to current repo only

This is much more secure than the default of access to all repos where the app is installed.
Also hardcode permissions for each non-custom job
This provides granular control over the permissions needed to complete
each job while still exposing an input to use a custom scope for
custom jobs.

I self-certify!


How can i cancel refreshing event?

How can i cancel animation of refreshing and return header in start position?  I need it because if my task return me an error(no connection with in-net) i want to return header in current state and set the last update time. How can i make it?

You can use refreshComplete() to cancel / stop.

if i use refreshComplete() header will updated, i mean the counter of last update time will reset. i want to save previous updating time if i've got an error.

I think you can setup your custom header to do this

I think it will be better to introduce a overload method: refreshComplete(boolean success).

@liaohuqiu Yeah. It is better in that way.

As i understand, where is no way for me to extends PtrClassicFrameLayout and override refreshCompleate() ?

oh, Merci!


As a user I can see an overview of all tasks and people assigned

... so that I can quickly get a sense of the state of my project and tasks

Implemented in ef7e90e08272a4f86c63463681887f236f511cc2,
enhanced in #54


Allow users to supply their own piece sets

Currently only one piece set is available, and more must be added. It may also be a good idea to allow users to supply their own piece sets.

This enhancement was made in 1d217565c864599ac1a737770d32a315a9921a1e.

Well actually, allowing users to supply their own piece sets should also be implemented

Implemented in 917715af3cec14e8e1920ba3e83bc6532a4bd154, forgot to close lol


Add page routing to VueRouter

We need to see if vue-router can work out of the box, using the abstract history mode.
Changing contents of a page should work since that relies on node-ops, but there is probably need to change to whole different pages.

VueRouter works out of the box, without any changes! However that's only for "navigating" on a single page. To add support for multiple pages (different activities) it requires some extra work.

Related to #18 since it would use that internally

When you say 'multiple pages' what do you mean? I got the router using @tap="$router.push({ name:'recipe',params: {id: recipe.id} })" - following your router example. Works ok!

What I mean by pages is that it should allow for navigating to "brand new" instances of a Page, instead of removing all child elements of a single page, and repopulating it with the contents of the new page.
Similar to what ns-angular does https://docs.nativescript.org/angular/core-concepts/angular-navigation.html#pages
router-outlet which is the current behavior with VueRouter inside nativescript-vue
and page-router-outlet which is the  proposed feature!

How do we handle the special needs of mobile routing, like handling the back button? When I use a back button on my android emulator to 'go back' - my app crashes on the emulator. Wondering if we have to use a strategy like we do in Angular, using RouterExtensions? - an enhanced mobile-friendly router?

Would be cool if NS core exposed some sort of routing abstraction for external frameworks to take advantage of.

Update: Quite a bit of progress has been made today, mostly rewriting the older (hacky) implementation with a better solution.
Right now the <modal-page> component is a functional (stateless) component that registers the router hooks, and handles the back button event.
I am thinking of making this component do much less and extract the logic to the router-plugin.js.
The idea is that if the modal-page component is added to the root component, it simply toggles an option on the root instance, which makes the router use pages. This would serve as syntactic sugar, when you look at the component and see a <router-page> it tells what is going on...
This would be completely optional, and the option could be toggled manually, something like:
new Vue({
  pageRouting: true
}).$start()

The previous is now implemented, the code needs some cleaning up and refactoring, but for the most part it works on both android and iOS.
On iOS however, there is a bug: if you go back, and try to go to the same route again, nothing happens.
I am pretty sure this is because the back button is navigating back natively, and the routers state is still on the previous route.

@rigor789 Do you found any solutions for iOS back button bug? It's make me sad, because refactoring and testing app now is very difficult. Would be nice to disable this native option.

@koddr I haven't had time to look into it, but it is high up on my todo list!

@rigor789 Nice to listen 👍 keep watching and support project anyway.

@koddr I pushed some changes to the page routing, can you give it a shot? I tested it on iOS and Android and both seem to work as expected!

This should be fully functional in 0.3.0 along with custom transitions #68


Windows installation via conda-forge

Partially addresses https://github.com/ignitionrobotics/docs/issues/117
On Ubuntu, we have the distinction of using colcon for top-level compilation, and cmake and make manually for per-package compilation.
On Windows, those per-package steps up to cmake work,but make does not readily work. I think we'd need to call Visual Studio's compiler (cl?) directly. Instead of that, I currently put in the instructions for colcon for per-package as well, since we already know it works. If we figure out some standalone way later, we can change it.
Another reason for using colcon for per-package compilation on Windows is that we don't have binary builds for Windows. So users cannot optionally install, say, ign-* dependencies from binaries, and only compile the last ign- library from source. They would simply have to compile everything from source right now.
The plus side is that colcon will resolve all the dependencies automatically.
The downside is that the colcon workspace means that all the ign-* packages are coupled. So the READMEs for Windows won't look so clean like the Ubuntu sections. For Windows, we will have to refer to dependency ign-* packages and ask the user to install those first. At least that's what I believe; correct me if I'm wrong. Since ign-cmake is the lowest dependency, I've included all the setup for Conda and colcon workspace here, and will just refer to ign-cmake from other packages. That means they will not be very self-contained like Ubuntu ones.

On Windows, those per-package steps up to cmake work,but make does not readily work. I think we'd need to call Visual Studio's compiler (cl?)

CMake provides facilities to compile and install projects without caring for the specific build system used underneath, i.e. in place of make you can use:
cmake --build . --config Release

to compile the project, and instead of make install you can use (available only since CMake 3.15, see https://stackoverflow.com/a/56457739):
cmake --install . --config Release

The --config Release is only useful when you use a Multiple-Config generator (such as Visual Studio or Xcode, see https://cgold.readthedocs.io/en/latest/glossary/multi-config.html) and it will be ignored when using single-config generators such as make or Ninja (see https://cgold.readthedocs.io/en/latest/glossary/single-config.html).

Another reason for using colcon for per-package compilation on Windows is that we don't have binary builds for Windows. So users cannot optionally install, say, ign-* dependencies from binaries, and only compile the last ign- library from source. They would simply have to compile everything from source right now.

Something that you could consider is to install also the ignition dependencies of a given ignition project from conda-forge itself. Some of them already have OR's maintainers, and I think existing maintainers (cc @wolfv @Tobias-Fischer) would be happy to add more mantainers from OR to those packages. Once a new release to a ignition package is done, a PR is automatically generated by the conda-forge infrastructure (see for example https://github.com/conda-forge/libignition-cmake0-feedstock/pull/10), so releasing a new version in conda-forge in practice just means merging that PR, or not even doing that if you tell to the bot that it can auto-merge the release once the test are passing (see https://regro.github.io/cf-scripts/github_actions_infrastructure.html#automerging-prs).

By the way, thanks a lot @mabelzhang for doing this work in supporting Windows also in the docs, it is quite useful!

Cool! Thank you @traversaro for the tips! I tried out the cmake commands updated the tutorial accordingly.
I see the conda-forge/libignition-*-feedstock repos. I'll test out them out for subsequent packages (since ign-cmake doesn't have any dependencies).

Great to see this happening! As @traversaro mentioned I'm one of the maintainers of some ign packages on conda-forge. We'd be more than happy to add more maintainers and to merge any PRs that improve the feedstocks. Please open relevant PRs and we'll make sure to merge them timely 👍

Awesome thanks! conda-forge seems to make things amazingly easy.

I noticed that the tutorial has a Documentation and a Testing section... which in other libraries have been living in README instead of the tutorial. Currently, those sections are also present in the README, but are 7 months old. So I think these ones are more recent. Do we want to move these back to the README, or move Documentation and Testing in other Ignition libraries into their installation tutorials for consistency?

I noticed that the tutorial has a Documentation and a Testing section... which in other libraries have been living in README instead of the tutorial. Currently, those sections are also present in the README, but are 7 months old. So I think these ones are more recent. Do we want to move these back to the README, or move Documentation and Testing in other Ignition libraries into their installation tutorials for consistency?

Do we want to move these back to the README, or delete them in README and move Documentation and Testing in other Ignition libraries into their installation tutorials for consistency?

I moved the documentation and testing sections to the README d88bce53d207b2ba6b2fcc90bd750950771803d8

Do we want to move these back to the README, or delete them in README and move Documentation and Testing in other Ignition libraries into their installation tutorials for consistency?

I moved the documentation and testing sections to the README d88bce53d207b2ba6b2fcc90bd750950771803d8

I moved the documentation and testing sections to the README d88bce5

Reverted in 6da496c24ba7a7ad0a26e3f1cfa53da76fe84fc7 as we're now moving the documentation and testing sections to the install file as it has more context for the new user.

I moved the documentation and testing sections to the README d88bce5

Reverted in 6da496c24ba7a7ad0a26e3f1cfa53da76fe84fc7 as we're now moving the documentation and testing sections to the install file as it has more context for the new user.


Unlist Azure Artifact packages link in DevOps not showing documentation for unlisting

When you want to unlist a package in Azure Artifacts, you get prompted with a sidebar which shows you the details of what you're unlisting.
At the top of the sidebar, you get this notification:

If you click through to read more, you are brought through to the page this issue is associated with. This document is around deleting and recovering packages, and doesn't cover the details of unlisting packages. Exploring the rest of the documentation, there doesn't appear to be information around how the unlist function works.

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

ID: 31a8d31b-229b-7383-1cc0-f3d7c65eca84
Version Independent ID: 70ba7acf-adae-e1b7-a42d-3f1344c5293c
Content: Delete and recover packages - Azure Artifacts
Content Source: docs/artifacts/how-to/delete-and-recover-packages.md
Service: azure-devops-artifacts
GitHub Login: @ramiMSFT
Microsoft Alias: rabououn

@jamesmcroft -- James, thank you for your thorough feedback.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

@ramiMSFT -- Rami, please look into this issue.

Thanks for the feedback! Unlisting applies to NuGet packages. We have that information under the NuGet tab, but I will update the article to make it more clear.


[Bug]: Zenless zone zero launches to an endless gray screen

Affected Version
1.80.14
Bug Behavior
When I launch ZZZ through collapse launcher it doesn't launch properly, stuck on gray screen with no sound
Expected Behavior
It should have launched the game
Steps to reproduce

Open Collapse Launcher
Change the game to ZZZ
Press Start Game

Related Issues
No response
Screenshot(s)

DxDiag.txt
Additional Information
No response

Try to reinstall your graphics driver with DDU

Try to reinstall your graphics driver with DDU

Done sadly still the same problem, not sure if I specified but it only happens when launching through collapse launcher. It launches fine through hoyoplay

Turns out the Collapse Launcher made it's own directory for ZZZ instead of using the one from HoyoPlay so all I had to do is delete that and Locate the hoyo install location


Question of data for Accent

When i replicate ACCENT，during the first step to train the word embedding， i could not find some data paths just like “'../data1/JAVA/train/javadoc.original'” and others showing in the picture. As per my understanding of ACCENT，we just need repalce the training data to the Task-specific datasets，please tell me if my understanding is correct. And I don't know if you used all the data for training.So I kindly ask you to answer my questions. Thanks for your help！

The ACCENT method was originally used for code summarization tasks. For Clone-detection tasks and Vulnerability-detection tasks, from which data should code.original and javadoc.original be constructed?
According to the guidance provided by ACCENT, and taking Clone-detection as an example:

We need to train word embedding and encoder:
(1) The first step is to run vocab_embedding.py to train word embedding
If we use code.original_subtoken to train Word2Vec and save it as node_w2v_code_64, then where should node_w2v_summ_64 be obtained from? As far as I understand, the javadoc.original file is the label of each sample, which only contains 0 and 1. I don’t think it can be used for training.
(2) Run train.py
This step requires determining the src_vocab_size and target_vocab_size of the encoder and decoder in the Seq2Seq model. I found that these two values were set to 58731 and 48046 respectively in the Configuration.py file, which further deepened my confusion and made the subsequent steps impossible to proceed.

I have another question: Since ACCENT was originally designed for code-summarization tasks, when will Seq2seq continue to be used for classification tasks such as Clone-detection?
I look forward to your answer and thank you very much!


Remove use of helper classes that credentials_manager can't access

Addresses #4225

LGTM

Really sorry about that, I seem to have overlooked this. Thanks for the fix 👍


remove special chars

Removed

@qinxgit,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Demo isn't working

The demo link on huggingface isn't working with a runtime error.

Thanks for letting me know @X-Ryl669, I fixed an issue with the demo and it's back up now. Let me know if it still isn't working for you.


feat: add create table procedure

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?

Introduce DDL Manager
Implement a create table procedure

It will make PR very large if I remove the router's Create method 🥲
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
#1727

PTAL @fengjiachun @MichaelScofield

Can't find any tests, are they in the following PRs?

Yep, I will add tests in the following tests.

PTAL @MichaelScofield


[AutoPR apimanagement/resource-manager] add openid connect in authentication settings

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4233

This PR has been merged into https://github.com/Azure/azure-sdk-for-js/pull/191


fasd module requires fasd to be installed?

Hi there,
I checked the README and have a question about the following:

The Prezto Fasd configuration differs from the default. The default aliases have been disabled

Does this mean that I don't have to install the default fasd package from my distribution's repository?
I followed the steps and added fasd after the completion module. However, the shortcut j does not work.
 Therefore, Prezto requires fasd to be installed. Install it with brew install fasd.

@sorin-ionescu
Thanks. Can we add a small note to the README mentioning that fasd needs to be installed externally?

I could add it as an external module since it hasn't changed in years, but
if not, the README will be updated. There are other modules, for example,
completion, that can be installed via Homebrew but are integrated into
Prezto as external modules.
On Thursday, January 22, 2015, Robert Orzanna<EMAIL_ADDRESS>wrote:

@sorin-ionescu https://github.com/sorin-ionescu
Thanks. Can we add a small note to the README
https://github.com/sorin-ionescu/prezto/tree/master/modules/fasd
mentioning that fasd needs to be installed externally?
—
Reply to this email directly or view it on GitHub
https://github.com/sorin-ionescu/prezto/issues/780#issuecomment-70983893
.

I still don't fully understand the dynamics with that module:
❯ j
zsh: command not found: j

❯ cat .zpreztorc
#
# Sets Prezto options.
#
# Authors:
#   Sorin Ionescu<EMAIL_ADDRESS>#

#
# General
#

# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'

# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'

# Set the Zsh modules to load (man zshmodules).
# zstyle ':prezto:load' zmodule 'attr' 'stat'

# Set the Zsh functions to load (man zshcontrib).
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'

# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
  'environment' \
  'terminal' \
  'editor' \
  'history' \
  'directory' \
  'spectrum' \
  'utility' \
  'completion' \
  'fasd' \
  'git' \
  'prompt'

#
# Editor
#

# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'

# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'

#
# Git
#

# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
#zstyle ':prezto:module:git:status:ignore' submodules 'all'

#
# GNU Utility
#

# Set the command prefix on non-GNU systems.
# zstyle ':prezto:module:gnu-utility' prefix 'g'

#
# History Substring Search
#

# Set the query found color.
# zstyle ':prezto:module:history-substring-search:color' found ''

# Set the query not found color.
# zstyle ':prezto:module:history-substring-search:color' not-found ''

# Set the search globbing flags.
# zstyle ':prezto:module:history-substring-search' globbing-flags ''

#
# Pacman
#

# Set the Pacman frontend.
zstyle ':prezto:module:pacman' frontend 'pacaur'

#
# Prompt
#

# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
# pure theme from https://www.npmjs.com/package/pure-prompt
zstyle ':prezto:module:prompt' theme 'pure'

#
# Ruby
#

# Auto switch the Ruby version on directory change.
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'

#
# Screen
#

# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:screen:auto-start' local 'yes'

# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:screen:auto-start' remote 'yes'

#
# SSH
#

# Set the SSH identities to load into the agent.
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'

#
# Syntax Highlighting
#

# Set syntax highlighters.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
#   'main' \
#   'brackets' \
#   'pattern' \
#   'cursor' \
#   'root'
#
# Set syntax highlighting styles.
# zstyle ':prezto:module:syntax-highlighting' styles \
#   'builtin' 'bg=blue' \
#   'command' 'bg=blue' \
#   'function' 'bg=blue'

#
# Terminal
#

# Auto set the tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'

# Set the window title format.
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'

# Set the tab title format.
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'

#
# Tmux
#

# Auto start a session when Zsh is launched in a local terminal.
# zstyle ':prezto:module:tmux:auto-start' local 'yes'

# Auto start a session when Zsh is launched in a SSH connection.
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'

# Integrate with iTerm2.
# zstyle ':prezto:module:tmux:iterm' integrate 'yes'

❯ pkgGrep prezto
prezto-git r1459.d43bcb9-1

❯ pkgGrep fasd
fasd 1.0.1-1

Type which fasd? Is it in your path? If it's not in your path it won't detect it. After you install it, restart your shell.

This is the strange thing. It is on my path and installed correctly.
❯ which fasd
/usr/bin/fasd

❯ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/orschiro/Bin:/home/orschiro/Bin:/home/orschiro/Bin

My bad. I had a weird configuration in ~/.zshrc which prevented the installed fasd from being loaded. Now it's all fine. Just updating the README to hint users to install fasd might be nice.
Thanks for your help!

it would be nice if fasd were bundled with prezto

Can the instruction to install fasd separately at least be added to the module readme file? Right now the only way I've learned to install it was by discovering this exact issue page via google.

I second @mkatsevVR 's suggestion, I had the same experience. Furthermore, even after installing fasd it still didn't work for me. Additional missing step for those of us using MacPorts: must ensure that the fasd module is after the macports module, or it will think fasd is not installed because /opt/local/bin isn't on the PATH yet.
I'm happy to submit a PR with the README update if desired.


InputCheckboxMultiple changed wrapping from <label> to <div>

Hi @juergenweb
I have tried to update the module (2.2.13) but I noticed it started wrapping multiple checkboxes with a <div> instead of <label> as in previous versions. I haven't changed any of my setup, tested back with older version (2.2.3) and can confirm that it changed.
Maybe you implemented some option to choose which tag is used in multiple checkboxes and radios?
The appendLabelOnCheckboxes doesn't seem to have effect on this.
2.2.3 Old (Good):

2.2.13 New (Bad):

Hello @donatasben
I was on vacation, but I will check this as soon as possible. I can remember there was a problem with  tags in the past in the vertical alignment of multiple checkboxes. I guess this problem results from this change.
Best regards Jürgen

I have set the tag to "label" and I haved changed 2 other files too. I guess there was a copy and paste problem in the past, which was responsible for the div tag instead of the label tag.
I have tested it with all frameworks and with no framework on radio multiple and checkbox multiple:

I have added it to Github now, but I will bump up the version after I have finished the new Slider Captcha (it is ready now, but there are small CSS bugs that I have to correct, before upgrading to the next version.
If you do not want to wait until the next update please replace the following files with the one from Github:

Formelements/Textelements/Label.php
Formelements/Inputelements/Inputs/InputRadioMultiple.php
Formelements/Inputelements/Inputs/InputRadioCheckbox.php

I will closes this issue for now. If this update does not solve your problem or you discover a new problem, please open a new issue report.

Glad to hear that!!


Create a JSON changelog

For example:
[
  {
    "date":<PHONE_NUMBER>485,
    "title": "Did thing",
    "desc": "More info about thing"
  }
]

This may be handy if we add annotations to charts to help explain sudden changes to the data.
The FAQ has a few changes documented, which can be used to seed the changelog.

The P0 use case is logging things like changing the WPT browser from IE to Chrome. But it may also be noteworthy to log feature additions, eg library detection.


 I want better ones.
Make a folder in the repository root named promo_images and populate as follows:

Location
Image Count
Size
Type
Description

promo_images/Screenshots/Phone/
2-7
1280×720 or 720x1280
JPEG or 24-bit PNG (no alpha)
Screenshots of the application on a phone

promo_images/Screenshots/Tablet/
2-7
1280×720 or 720x1280
JPEG or 24-bit PNG (no alpha)
Screenshots of the application on a tablet (7 inch and 10 inch)

promo_images/Hi-res_Icon/
1
512x512
32-bit PNG (with alpha)
High resolution image of the icon

promo_images/Feature_Graphic/
1
1024x500
JPG or 24-bit PNG (no alpha)
Image for the banner on the Play Store

promo_images/Promo_Graphic/
1
180x120
JPG or 24-bit PNG (no alpha)
No idea where this is used (Optional)

When taking screenshots of images please ensure the images aren't subject to copyright. https://unsplash.com/ is a fantastic resource for free public domain images.

Hello do you still need help with this?

@jcampos187 Yes please! Let me know if you have any questions. App can be downloaded from the Play Store of F-droid. Or you can run the code in an emulator through Android Studio.
Thanks

This article talks about the Promo Graphic:
https://support.google.com/googleplay/android-developer/answer/1078870?hl=en
Maybe displayed on the market like in this article:
https://android-developers.googleblog.com/2011/10/android-market-featured-image.html

Couple of the images requested have been supplied. Thanks to @psyanite. Still need some good screenshots


[NuGet.org Bug]: Intermitient certificate failures

Impact
I'm unable to use NuGet.org
Describe the bug
when using NuGet.org I am signing using Azure Trusted Signing the certificate.
I extract the certificate using normal tools, and upload the CER file
The upload validation fails saying there isn't a certificate of the SHA256 found. Even though the certificate uploaded now has a valid name listed against it (which it wasn't previously)

I check the SHA256 and it matches using the algorithm mentioned (I would provide a screenshot
I am used the cli sign with ATS support, signtool, and jsign
Also NuGet package explorer lists it as a valid certificate

I wouldn't be shocked if there is some certificate issue that nuget.org doesn't like and its showing that generic error message?
This used to be a dotnetfoundation owned package (removed the ownership so I can test ATS for the foundation), and DNF has special rules around signing certificate lockouts so not sure if that has something to do with it?
the package name is Splat
Repro Steps

Sign a package with ATS
Extract the package using certificate extraction tools
Upload the CER files
Upload the NuGet package.

Expected Behavior
That when you upload the valid CER file, and have it listed that it
Screenshots
No response
Additional Context and logs
No response

Whats worse, I'm finding some packages successfully being uploaded passing validation with the same certificate, and some not.

Adding details from here;
https://github.com/NuGet/NuGetGallery/issues/10027#issuecomment-2324112239
Seems to happen only on packages that have ever been owned by the DotNetFoundation user
Packages never owned by that user (and have the certificate) are able to be published.

We'll check internally first.

This used to be a dotnetfoundation owned package (removed the ownership so I can test ATS for the foundation)

Could you please provide us with more context details? What does ATS stand for? When and why was the DNF owner removed? Did you remove the DNF owner or did the DNF owner remove themselves?

Hi @glennawatson,
We looked closer and don't see any issues that should be blocking this publish. Can you please resign the package (you can use the same version), upload the public certificate to one of the package owner accounts and then try publishing it again?

Hi @glennawatson,
We looked closer and don't see any issues that should be blocking this publish. Can you please resign the package (you can use the same version), upload the public certificate to one of the package owner accounts and then try publishing it again?

Yeah that's what I been doing.
Having a issue where some of Splat is passing vertification (with the same certificate using the ATS sign tool) and the other half is not.

This used to be a dotnetfoundation owned package (removed the ownership so I can test ATS for the foundation)

Could you please provide us with more context details? What does ATS stand for? When and why was the DNF owner removed? Did you remove the DNF owner or did the DNF owner remove themselves?

ATS = azure trusted signing.
Claire has been involved in the discussions with that team so has some back story so might be worth chatting to her.
In terms of the DNF user, at the moment if you want to use your own certificate you have to remove the DNF user. At the moment there are special rules around the DNF owner and certificates. We been talking as a board and looking at relaxing those. Project committee has agreed upon a relaxed criteria for a BYO certificates (from a valid authority only). As per @JonDouglas request we will be making that request somewhere hear for public debate.

@clairernovotny sent you an email with some of the certificate details and further details.

Closed since there's a work around.


Where did cost_per_kw in Charges Dashbard go?

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
In the 1.27.x versions there were a column in the "charges" dashboard that showed the price pr kWh for each charge. This is no longer available in 1.28.x :(
Expected Behavior
I hope the value could still be calculated in the dashboard in the futire.
Steps To Reproduce
No response
Relevant log output
Not relevant

Screenshots
Comparing 1.27.4. to <IP_ADDRESS> (grafana/dashboards/charges.json)

Additional data
No response
Type of installation
Docker
Version
1.28.2

Already comitted in https://github.com/teslamate-org/teslamate/commit/fdfdd63d6f5f47598890d9fc3a67d9e5c5dfbd40. Will be back in the next version.


Add sample for Traefik using Let's Encrypt and flexvol

Reason for Change:
Adding a new sample for Traefik on how to use a certificate generated by Let's Encrypt issuer, import it to KVeyVault so we can use it with flexvol
Issue Fixed:
NA
Notes for Reviewers:
I just added the deployment.yaml along with README file. Thought I should duplicate the rest of yaml files (i.e. service.yaml, ConfigMaps.yaml, etc...)

cc @mboersma


Update vpp version to be consistent with Сalico

Calico vpp state: https://github.com/projectcalico/vpp-dataplane/blob/master/vpplink/binapi/vpp_clone_current.sh#L87-L102
Signed-off-by: Artem Glazychev<EMAIL_ADDRESS>

@glazychev-art This build fails for me locally as well... does it succeed locally for you?

@edwarnicke
Yes, it does.
I found the problem: it is not enough memory on the github machine. Look:
...
              total        used        free      shared  buff/cache   available
Mem:           6947        5945         139           1         862         728
Swap:             0           0           0

              total        used        free      shared  buff/cache   available
Mem:           6947        6132         134           1         679         544
Swap:             0           0           0

              total        used        free      shared  buff/cache   available
Mem:           6947        6384         134           1         428         297
Swap:             0           0           0

              total        used        free      shared  buff/cache   available
Mem:           6947        6511         175           1         261         181
Swap:             0           0           0

              total        used        free      shared  buff/cache   available
Mem:           6947        6695         140           1         111          54
Swap:             0           0           0
...

It is free -m every 5 seconds.
To fix this, I've added swap again and set it = 4GB:
https://github.com/edwarnicke/govpp/pull/47/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133ddR43-R54


Problem- 0% Attemps

I have installed all the components.
When i run the command
python3 instagram.py -"username" "wordlist"
I have this script, but i have 0% Attemps like this:
[-] Wordlist: xxxx
[-] Username: xxxxxx
[-] Password: 123456789
[-] Complete: 0.0%
[-] Attempts: 0
[-] Browsers: 50
[-] Exists:
After hours the situation is like this.
How can i fix?

I have the same problem here

Hi, i got the same pb, You have just to update pip !

even after updating i see no change

@omnibread @ChSaigopal @eldorado12309 @meddmedd @Pure-L0G1C
I'm having the same problem if you have got any resolution please help
please help me with a resolution or new method


Task identification mechanism in APS

Dear Misha Laskin,
I am very grateful for open-sourcing the well-written code.
It is really helpful for my research!
However, I have one question about the implementation of fine-tuning APS.
https://github.com/rll-research/url_benchmark/blob/710c3eb04e60ef559525bc90136ee4e1acae4c97/finetune.py#L196-L197
As shown in the code block in finetune.py, the task vector (named meta) is updated periodically "after" initial seed frames.
However, in the original paper of APS, it is said that the task vector is searched using initial seed frames, and is "fixed" during fine-tuning phase.
Therefore, I understand that the code should be revised as follows (the inequality sign is reversed):
if self.global_step < (                         init_step // repeat) and self.global_step % every == 0:
I wonder whether I miss something,
and I hope you provide some explanation about my question.
Best,
Junsu Kim

Hi Kim, happy to answer the question. The APS was originally evaluated in Atari games, in which the downstream env steps are commonly 1e5. But in the URLB the downstream env steps are 2e6 because many included algos are finetuning based rather than identifying task and adapting to it style. In order to better utilize the downstream budget, we let the task vector adapt periodically.

Thanks for the reply, Hao liu.
My question is addressed after reading your answer, and now I understand why the design choice of task vector adaptation differs from that in the original paper.
Best,
Junsu Kim

@lhao499
By the way, I have one more question about the implementation of APS.
For the task identification, the task vector is inferenced as follows:
https://github.com/rll-research/url_benchmark/blob/710c3eb04e60ef559525bc90136ee4e1acae4c97/agent/aps.py#L246
However, from the docs about torch.linalg.lstsq (https://pytorch.org/docs/stable/generated/torch.linalg.lstsq.html)
I understand that the implementation computes:
min_{task} || reward * task - phi(s) ||_{F}
However, I understand that it should be
min_{task} || phi(s) * task - reward) ||_{F}
So, I think that the code should be modified as:
task = torch.linalg.lstsq(rep, reward)[0][: rep.size(1), :][0]
I greatly appreciate it if you let me know whether I miss something.
Thank you!

Hi @junsu-kim97 sorry about delayed response, the two equations you wrote are both correct in that task is a L2 normalized vector in APS. Task is normalized because of the use of VMF distribution as variational approximation. Hope this clarification helps.

Thanks for the reply! Your answer really helps me a lot.


Reverse proxy with nginx problems

I'm trying to get pub running under docker-compose with nginx
Every endpoint is giving me an HTTP 400 from nginx, but is ok direct to the pub HTTP port. Enabling http logging in pub shows that the https requests never arrive.
I don't know if there's something peculiar about reverse proxying for chi, or if my nginx config is wrong in some way.
curl -v https://my.domain/api/v1/instance
> GET /api/v1/instance HTTP/1.1
> Host: my.domain
> User-Agent: curl/7.71.1
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Server: nginx
< Date: Thu, 05 Jan 2023 01:40:49 GMT
< Content-Type: text/plain; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive

However, if I access the HTTP port directly, it's OK (better...)
docker-compose run --rm pub /bin/sh
curl -v http://pub:9999/api/v1/instance

> GET /api/v1/instance HTTP/1.1
> Host: pub:9999
> User-Agent: curl/7.87.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: application/json; charset=utf-8
< Date: Thu, 05 Jan 2023 01:45:52 GMT
< Content-Length: 28
<
* Connection #0 to host pub left intact
{"error":"record not found"}

I have nginx configured as follows:
error_log  stderr warn;
access_log  /dev/stdout main;

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    listen 443 ssl http2 default_server;
    listen [::]:443 ssl http2 default_server;
    ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
    ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;

    location / {
        proxy_http_version      1.1;
        proxy_set_header        Upgrade $http_upgrade;
        proxy_set_header        Connection "Upgrade";
        proxy_redirect          off;
        proxy_connect_timeout   90;
        proxy_send_timeout      90;
        proxy_read_timeout      90;
        proxy_set_header        Host $host;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;
        proxy_set_header        Proxy "";
        proxy_pass_header       Server;
        proxy_buffering on;
        tcp_nodelay on;
        proxy_pass http://pub:9999;
        proxy_set_header Host $http_host;
    }

}

Thanks for being so adventurous. From the first cut that looks pretty good. I’ll post my nginx conf as an example in the repo.
The only thing I can see is there are two “proxy_set_header” statements in there that might throw things off.

@ringtailsoftware please take a look at https://github.com/davecheney/pub/commit/c2485eda8df83487b9bb971c444b9c7f79645b7a, the included proxy.conf is my battle worn configuration that I've carried forward for over a decade now. It's probably overkill, but does work.

Working now, thanks.

Would you mind sharing your docker build?

Would you mind sharing your docker build?

This project is so simple I haven't used docker for it; i scp the code to my server and run go build there.


Set CODE_VERSION environment variable to 1.17.2 for tests

Note: This is not a long-term solution, as we'll eventually need to update the VS Code engine version that C# for VS Code targets.

@TheRealPiotrP : I'm going to go ahead and merge this. Please let me know if you have any concerns. We'll need to sort out the problem with our integration tests on VS Code 1.18 pretty soon. I've filed https://github.com/OmniSharp/omnisharp-vscode/issues/1862 to track this.


Problem: Running playbook on localhost

Issue
I'm deploying machines in Azure. If I run my playbooks from the CLI, it works fine. With -vvvv used on both CLI and in Semaphore I do see a discrepancy in which user is trying to connect. It looks as follows:
Running from CLI (working):
TASK [Create NIC] *****************************************************************
task path: /home/semaphore/azr/ansible/create-vm-test.yml:27
redirecting (type: modules) ansible.builtin.azure_rm_virtualmachine to azure.azcollection.azure_rm_virtualmachine
<<IP_ADDRESS>> ESTABLISH LOCAL CONNECTION FOR USER: semaphore
<<IP_ADDRESS>> EXEC /bin/sh -c 'echo ~naa && sleep 0'

Running from Semaphore (fails):
TASK [Create NIC] **************************************************************
task path: /home/semaphore/azr/ansible/create-vm-test.yml:27
redirecting (type: modules) ansible.builtin.azure_rm_networkinterface to azure.azcollection.azure_rm_networkinterface
<<IP_ADDRESS>> ESTABLISH LOCAL CONNECTION FOR USER: root

How can I make Semaphore run as the semaphore user (instead of root), as semaphore is the user's home dir in which the playbooks are located?
Impact
Ansible (task execution)
Installation method
Package
Database
MySQL
Browser
Firefox
Semaphore Version
2.10.35
Ansible Version
ansible [core 2.14.14]

Logs & errors
No response
Manual installation - system information
Linux semaphore 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 14:57:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Configuration
WebUI configuration:

Environment

Additional information
No response

@mlanner You can provide username if SSH access key and it will be used for connection to the server(s).


flinkcdc1.3 同步mysql造成了 mysql FLUSH TABLES WITH READ LOCK 锁全表问题

Describe the bug
A clear and concise description of what the bug is.
Environment :

Flink version :  1.12.1
Flink CDC version: 1.13
Database and version:  mysql   5.7

To Reproduce
Steps to reproduce the behavior:

Thes test data :
The test code :  FLUSH TABLES WITH READ LOCK
The error :

Additional Description
If applicable, add screenshots to help explain your problem.

debezium.snapshot.locking.mode= none


Handling Launchbox playlists

Structure of Flashpoint Launcher playlists and Launchbox are a little different. As we are using Launchbox configuration, playlists code needs to be changed to handle Launchbox playlists.

Done. Installed games playlists needs to be handled different way. Created new task for that.


Tool restrictions not working

I joined my server today to see people using the duplicator, which I have had restricted for over a year now.
Would you like my restrictions.txt again?
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned/used tool duplicator -=RESTRICTED=-
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned model models/props_vehicles/car003b_physics.mdl
"duplicator" is a restricted tool from your rank.

What version are you running?  Have you made sure you're up to date?

As soon as i noticed this i deleted my svn copy of urs and redownloaded it from github, i am on the latest version
Sent from my iPhone

On Mar 31, 2015, at 5:58 PM, Aaron<EMAIL_ADDRESS>wrote:
What version are you running? Have you made sure you're up to date?
—
Reply to this email directly or view it on GitHub.

Is there any type of auto download tool on your host?  There's no chance at all that your copy is outdated?  This problem should have been fixed a couple of weeks ago by the sounds of it.

Running into something similar.  I've got a fresh install of URS from Github, and I noticed no logging was appearing in console for tool use (everything else -- sents, sweps, etc -- were logging fine).  I added some debugging prints() to URS.CheckRestrictedTool() and confirmed that its not getting called when tools are used.  If I roll back to my previous version of URS (a month or so old), everything works fine.

I ended up reinstalling a second time and it works now

On Apr 9, 2015, at 1:45 PM, ascentechit<EMAIL_ADDRESS>wrote:
Running into something similar. I've got a fresh install of URS from Github, and I noticed no logging was appearing in console for tool use (everything else -- sents, sweps, etc -- were logging fine). I added some debugging prints() to URS.CheckRestrictedTool() and confirmed that its not getting called when tools are used. If I roll back to my previous version of URS (a month or so old), everything works fine.
—
Reply to this email directly or view it on GitHub.

I think I know what's going on for me.  Looks like the hook priority for URS was changed from -10 to 1.  I may have another addon hooked into CanTool that's (unfortunately) returning a true earlier in priority than URS, therefore preventing URS from running its hook.  I changed URS hook priority to -10 and its working as expected for me.

You must be using an outdated ULib addon then, otherwise that wouldn't work.  URS runs with a low priority so it can return true for limits.  Perhaps in the future, it would be worth making limits and restrictions in separate hooks.


CFYEO-28 : extract Garage Promotion Card Component

Reference CFYEO-28
FixedDealerPromotion in listings project and PreviewCard in DH were similar components so It has been decided to extract this component to the component-pkg.
In this PR you will find the GaragePromotionCard component which aims at replacing FixedDealerPromotion and PreviewCard. There is as well the related StoryBook page.

If you feel like pairing on this, give me a nudge. Sometimes it's way faster to look at the code in a synchronous call and call the shots together

If you feel like pairing on this, give me a nudge. Sometimes it's way faster to look at the code in a synchronous call and call the shots together

Marine and I talked for an hour and explored how to make this component nice and generic. Unfortunately we did not find a viable way. We decided to live with a somewhat not-so-generic component that contains more business logic as we usually like it to have (eg. the placeholders and the upload icon). it's just too hard to generalize it the way it behaves now.
extracting this will still be a win for sharing it between the two projects

Marine and I talked for an hour and explored how to make this component nice and generic. Unfortunately we did not find a viable way. We decided to live with a somewhat not-so-generic component that contains more business logic as we usually like it to have (eg. the placeholders and the upload icon). it's just too hard to generalize it the way it behaves now.
extracting this will still be a win for sharing it between the two projects


Atari results

Hi,
Thanks for your wonderful work. I cannot reproduce the performance reported in the paper for Atari.  For example, compared to Table 1,  my normalized score for Breakout is 147.738, for Seaquest is 1.875 (averaged over 3 seeds, I use the same seed as this script: https://github.com/kzl/decision-transformer/blob/master/atari/run.sh ) I wonder did you use the same seeds (123, 231, 312) as that script ? Or did I miss something?

A follow-up question. How to normalize the score?

@GilgameshD normalized score =100 * (score - random score)/(expert score - random score)

Hi, I did use those seeds but I’ve realized that there is some additional stochasticity that I have not been able to locate. Really sorry about that!

@TongZhangTHU
Another follow up question, where to find random score and expert score? I did find a table from here but not sure if everyone is using the same set of parameters.


please link to the maintained ueberzug repo

https://github.com/ueber-devel/ueberzug

Thanks, fixed :+1:

nice


Update Spring Boot version

The main branch is on the same state as the spring-3.0.x branch.

[ ] 1. the latest 3.0.x version of Spring boot is 3.0.10. Please consider upgrading to it (the pom.xml currently uses 3.0.4)
[ ] 2. The README.md states, the project would be based on Spring boot 2.7.x, which it isn't. Please update that accordingly.
[ ] 3. In the pom.xml you define a separate spring.boot.configuration-processor version. Please consider using the same  spring.boot.version version.
[ ] 4. Even the commercial support for Spring Boot 2.5.x ended more than two weeks ago, but it is still has it's own auto-configuration, that is officially supported. Spring Boot 3.1.x released almost 4 month ago now, but there still is no auto-configuration nor official support (the Spring Boot 3.0.x integration does work completely fine with Spring Boot 3.1.x too, though). Please consider adding a Spring Boot 3.1.x auto-configuration.

If you wish, I can also open a PR.

@XSpielinbox

As all spring dependencies are only "provided", does it affect the dependency resolution somehow?
"based on spring 2.7.x" means that this code is an clone of an clone of the spring 2.7.x integration from the spring project, but maybe this knowledge is not of any use.
will do
how does this differ from the spring boot 3.0.x integration? To maintain a 4th fork of this code should come with some kind of benefit..

1.) ok..
2.) Until spring 2.7 the spring integration code came from the spring project itself.. so i could use their 2.5, 2.6 and 2.7 code fragments to apply the changes.. they stopped providing their own code from 2.7 on (funny story).
4.) I don't make the rules.. and i do not use spring in my projects.. so i can only guess why they are releasing a new version if most parts don't really change.. i would prefer to have as few versions as possible .. but i will create an release for spring 3.1 because of 1) .. just some numbers (last month integration downloads from sonatype nexus repo):

2.5: 60
2.6: 450
2.7: 6.000
3.0: 50.000


fix translation for missing nucleotides, fixes #129

Coverage increased (+0.17%) to 95.23% when pulling 07d28cd0fc572ed4e9af2f89f3d60ab6da984e1b on fix_translation into 283fbcb70d225805652d583047909dde9aebdb73 on master.


Constructor should support decorators/annotations

If you align the closing constructor curly bracket the highlight will break:

If you place the bracket behind the last parameter everything works fine:

Duplicate of #8.


feat(trpc): add trpc lib and e2e test suite

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our
guidelines: https://github.com/goetzrobin/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

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

Which package are you modifying?

[ ] accordion
[ ] alert
[ ] alert-dialog
[ ] aspect-ratio
[ ] avatar
[ ] badge
[ ] button
[ ] calendar
[ ] card
[ ] checkbox
[ ] collapsible
[ ] combobox
[ ] command
[ ] context-menu
[ ] data-table
[ ] date-picker
[ ] dialog
[ ] dropdown-menu
[ ] hover-card
[ ] input
[ ] label
[ ] menubar
[ ] navigation-menu
[ ] popover
[ ] progress
[ ] radio-group
[ ] scroll-area
[ ] select
[ ] separator
[ ] sheet
[ ] skeleton
[ ] slider
[ ] switch
[ ] table
[ ] tabs
[ ] textarea
[ ] toast
[ ] toggle
[ ] tooltip
[x] trpc
[ ] typography

What is the current behavior?

Closes https://github.com/analogjs/analog/issues/808
What is the new behavior?

tRPC packages is migrated from analogjs/analog repo
E2E test suite is moved over, but disabled because the tests are for the notes app
GitHub Issue templates updated
Package name updated

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Thanks @brandonroberts!


Does not show up in Install Package list.

Try just JSCS and see if it comes up
You probably need to clear your package control cache or upgrade package control
Restart sublime

Try just JSCS and see if it comes up

Looks like my package control is messed up, could not list JSCS too.
Thanks,

@TheSavior close please


Specify output charset.

Add explicit UTF-8 charset (as a note surely is) in order to see emdash used in signatures correctly in the browser.

Thanks again, closing this as it went in in #305


Fix docstring of ElectronicDipoleMoment

Summary
As pointed out in this question on stack exchange, the docs of the ElectronicDipoleMoment had a mistake. This PR addresses that.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 87.222%

Files with Coverage Reduction
New Missed Lines
%

qiskit_nature/second_q/drivers/psi4d/psi4driver.py
2
83.05%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
9147

Relevant Lines:
10487

💛  - Coveralls


nopython mode fails to detect dead return point

This is a regression from issue #34.
>>> def f():
...     for i in range(10):
...         return 1
...
>>> g = jit(int_())(f)
>>> g()
1L
>>> g = jit(int_(), nopython=True)(f)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "numba\decorators.py", line 128, in wrapper
    disp.compile(sig)
  File "numba\dispatcher.py", line 108, in compile
    flags=flags, locals=locs)
  File "numba\compiler.py", line 94, in compile_extra
    return_type, flags, locals)
  File "numba\compiler.py", line 120, in compile_bytecode
    locals)
  File "numba\compiler.py", line 282, in type_inference_stage
    infer.build_constrain()
  File "numba\typeinfer.py", line 305, in build_constrain
    self.constrain_statement(inst)
  File "numba\typeinfer.py", line 410, in constrain_statement
    self.typeof_assign(inst)
  File "numba\typeinfer.py", line 437, in typeof_assign
    self.typeof_const(inst, inst.target, value.value)
  File "numba\typeinfer.py", line 455, in typeof_const
    self.typevars[target.name].lock(types.none)
  File "numba\typeinfer.py", line 79, in lock
    "'%s'" % (typ, expect, self.var))
numba.typeinfer.TypingError: No conversion from none to int32 for '$24'

This now works fine, because the return type is inferred as an optional value ("?int32").