Embedding sample request and response json in the generated PDF

Hi Rob,
Firstly, thank you very much for coming up with the swagger2markup. Life has never been so easy. The PDF generation is the top priority for my client and I was able to generate one in 15 mins using the swagger2markup.
The only feedback is that, it would be perfect if a sample request and response structure can be added for each path. Since, now if there is a complex json payload, it takes me through the links to the object structures and the client is lost.
Is there any way I could add the sample request and response payload please?
Thank you
Sowjanya

Hello,
Swagger2Markup can generate example requests/responses. But the feature is still incubating.
The config parameter is: swagger2markup.generatedExamplesEnabled=true.
But I would suggest that you should develop real-life tests for you API and that you record and save the HTTP requests and responses. The advantage is that the data in your examples makes more sense than generated dummy data.
Swagger2Markup has an extension which allows to import the recorded files (HTTP examples) into the generated AsciiDoc/Markdown documents.
See: http://swagger2markup.github.io/swagger2markup/1.3.1/#extension_import_files

Thanks for the quick reply Rob. I will check the above links.

Can I close the issue?


Feature Request. Add go standard module.

可以把go 标准库也加到module列表里吗？ 最好是放在列表的第一项。

好滴

v0.2.0 has been released, please try it. Thank you.

Something went wrong. Please check it .

Is go.root configured in settings.json?

Neither go.goroot configuration in setting.json or environment variable GOROOT work.

v0.2.1 may fix this, try it

There is another error occurred.
ENOENT: no such file or directory, scandir '/"/users/yifei/go-sdk/go1.17"/src'

could you run go env, and give me the console printing, i don't have macos...

Excellent job, thank you very much! By the way, I mentioned this plugin here.


__() function already defined conflict with other code

Laravel Version: 5.4.15
PHP Version: 7.1.0
Database Driver & Version: MySQL

Hi,
Does anyone know of a workaround for how to fix an issue where Laravel's __() function is conflicting with other third party code?
If I edit both libraries, the problem can be resolved, however I assume this to be a very bad workaround in practice.
I have never experienced such an issue and am running out of ideas for how it could be solved.

The Laravel version of the function is wrapper with ! function_exists('__') so that should not conflict but what about the other library?

The other library does not. Furthermore, the other library uses a string parameter and not an array, so both would have to be altered if Laravel's __() is first.

Please note, this problem was introduced in Laravel 5.4. In Laravel 5.3, this issue does not exist.
Wouldn't it make more sense to have a unique function name for this?

The library __() should be namespaced. This isn't a Laravel issue.


The link to your documentation is not working

http://docs.sourcemint.org/firephp.org/firephp/1/-docs/

https://github.com/firephp/firephp/blob/master/docs/Configuration/Traditional.md

I am rebooting FirePHP starting with a new Web Extension here: https://github.com/firephp/firephp-for-firefox-devtools
Once that works reliably enough I will get to reviewing the server libraries and docs.

See: https://github.com/firephp/firephp-core/issues/43


No devices found, only in UI

What happened?
Dear all,
with using Beta I managed to get further with using this plugin. However, I now run into following issue:
In UI I see:

Logfiles unfortunately says:

[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: EufyClient connected true
[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: PollingInterval: 30
[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: Refresh data from cloud and schedule next refresh.
[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: CameraMaxLivestreamDuration: 30
[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: Found 0 stations.
[3/30/2022, 2:51:09 PM] [EufySecurity-1.1.1-beta.38] DEBUG: Found 0 devices.

Device Type
Doorbell (Supported)
Plugin Version
beta (Best Effort)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v14 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output
No response

As found in Common issues I ignored the base and only kept doorbell - no change

Could you try the latest beta version ? We' ve introduce huge change just on the .38 with lot of bugs sorry. It may requires some beta version before having something stable.
Sorry!

Beta 40 …

Went to beta.40, result still same:

[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: EufyClient connected true
[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: PollingInterval: 30
[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: Refresh data from cloud and schedule next refresh.
[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: CameraMaxLivestreamDuration: 30
[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: Found 0 stations.
[3/31/2022, 8:41:42 AM] [EufySecurity-1.1.1-beta.40] DEBUG: Found 0 devices.

Also seeing same error as @karesake

So change is that I now don't see devices in UI either...

Please refresh your browser cache

Please refresh your browser cache

Same unfortunately

This happens with a browser that never accessed Homebridge UI

Beta 40 … no devices found

@karesake  Please use #375 was working before

Which eufy devices do you have on your setup ?

doorbeel and 2 outdoor cameras. Looking at the doorcam only. From what I see config isn't written at all, will try to set manually.

Some more insights:

[3/31/2022, 9:38:24 AM] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /init
[3/31/2022, 9:38:26 AM] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /auth
[3/31/2022, 9:38:26 AM] [Homebridge UI] [homebridge-eufy-security] [1.1.1-beta.40] INFO:  config: {"language":"en","persistentDir":"/var/lib/homebridge/eufysecurity","p2pConnectionSetup":0,"pollingIntervalMinutes":10,"eventDurationSeconds":10,"acceptInvitations":true,"username":"","password":"","country":"DE"}
[3/31/2022, 9:38:26 AM] [Homebridge UI] [homebridge-eufy-security] [1.1.1-beta.40] INFO:  country: DE
[3/31/2022, 9:38:28 AM] [Homebridge UI] [homebridge-eufy-security] [1.1.1-beta.40] INFO:  AuthResult.OK
[3/31/2022, 9:38:28 AM] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /refreshData
[3/31/2022, 9:38:32 AM] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /getStations
[3/31/2022, 9:38:32 AM] [Homebridge UI] [homebridge-eufy-security] [1.1.1-beta.40] ERROR: error: undefined
[3/31/2022, 9:38:32 AM] [Homebridge UI] [homebridge-eufy-security] [1.1.1-beta.40] INFO:  Push notification connection successfully established

I was digging around in logfile and maybe stumbled over something:

{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Retry to register/login for push notification in 50 seconds...","time":"2022-03-31T06:55:34.791Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Retry to register/login for push notification","time":"2022-03-31T06:56:24.792Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":20,"msg":"Create new push credentials...","time":"2022-03-31T06:56:24.793Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"registerFid - Error: RequestError: connect ECONNREFUSED <IP_ADDRESS>:443\n    at ClientRequest. (/usr/lib/node_modules/homebridge-eufy-security/node_modules/got/dist/source/core/index.js:962:111)\n    at Object.onceWrapper (node:events:646:26)\n    at ClientRequest.emit (node:events:538:35)\n    at ClientRequest.origin.emit (/usr/lib/node_modules/homebridge-eufy-security/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)\n    at TLSSocket.socketErrorListener (node:_http_client:442:9)\n    at TLSSocket.emit (node:events:526:28)\n    at emitErrorNT (node:internal/streams/destroy:157:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:122:3)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {\n  code: 'ECONNREFUSED',\n  timings: {\n    start:<PHONE_NUMBER>912,\n    socket:<PHONE_NUMBER>912,\n    lookup:<PHONE_NUMBER>913,\n    connect: undefined,\n    secureConnect: undefined,\n    upload: undefined,\n    response: undefined,\n    end: undefined,\n    error:<PHONE_NUMBER>914,\n    abort: undefined,\n    phases: {\n      wait: 0,\n      dns: 1,\n      tcp: undefined,\n      tls: undefined,\n      request: undefined,\n      firstByte: undefined,\n      download: undefined,\n      total: 2\n    }\n  }\n}","time":"2022-03-31T06:56:31.916Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"registerFid - Status return code not 200 { status: undefined, statusText: undefined, data: undefined }","time":"2022-03-31T06:56:31.917Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"registerFid - Generic Error: Error: FID registration failed with error: undefined\n    at PushNotificationService.registerFid (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:88:23)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at PushNotificationService.createPushCredentials (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:145:16)\n    at PushNotificationService._open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:528:32)\n    at PushNotificationService.open (/usr/lib/node_modules/homebridge-eufy-security/rity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Create push credentials Error: Error: FID registration failed with error: Error: FID registration failed with error: undefined\n    at PushNotificationService.registerFid (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:92:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at PushNotificationService.createPushCredentials (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:145:16)\n    at PushNotificationService._open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:528:32)\n    at PushNotificationService.open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:592:13)\n    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:603:21)","time":"2022-03-31T06:56:31.930Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Push notification connection closed","time":"2022-03-31T06:56:31.931Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Push notifications are disabled, because the registration failed!","time":"2022-03-31T06:56:31.933Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Retry to register/login for push notification in 120 seconds...","time":"2022-03-31T06:56:31.933Z","v":0}node_modules/eufy-security-client/src/push/service.ts:592:13)\n    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:603:21)","time":"2022-03-31T06:56:31.929Z","v":0}
{"name":"[EufySecrity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Create push credentials Error: Error: FID registration failed with error: Error: FID registration failed with error: undefined\n    at PushNotificationService.registerFid (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:92:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at PushNotificationService.createPushCredentials (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:145:16)\n    at PushNotificationService._open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:528:32)\n    at PushNotificationService.open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:592:13)\n    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:603:21)","time":"2022-03-31T06:56:31.930Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Push notification connection closed","time":"2022-03-31T06:56:31.931Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Push notifications are disabled, because the registration failed!","time":"2022-03-31T06:56:31.933Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Retry to register/login for push notification in 120 seconds...","time":"2022-03-31T06:56:31.933Z","v":0}urity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Create push credentials Error: Error: FID registration failed with error: Error: FID registration failed with error: undefined\n    at PushNotificationService.registerFid (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:92:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at PushNotificationService.createPushCredentials (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:145:16)\n    at PushNotificationService._open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:528:32)\n    at PushNotificationService.open (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:592:13)\n    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/src/push/service.ts:603:21)","time":"2022-03-31T06:56:31.930Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Push notification connection closed","time":"2022-03-31T06:56:31.931Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":50,"msg":"Push notifications are disabled, because the registration failed!","time":"2022-03-31T06:56:31.933Z","v":0}
{"name":"[EufySecurity-1.1.1-beta.40]","hostname":"debobpi001","pid":29569,"level":30,"msg":"Retry to register/login for push notification in 120 seconds...","time":"2022-03-31T06:56:31.933Z","v":0}

What got my attention is this ECONNREFUSED <IP_ADDRESS>:443

So I skipped entering the user data, restarted the HomeBridge and then created the config manually. This is how it works first.

So I skipped entering the user data, restarted the HomeBridge and then created the config manually. This is how it works first.

Did you create the config within config.json in the plugin itself or in main config file?

Now it is doing something! Needed a combination of manual config, then going in GUI again to answer captcha, multiple restarts, but I see the camera now!

Can you share your manual config?

Can you share your manual config?

  {
        "platform": "EufySecurity",
        "name": "EufySecurity",
        "username": "<mailaddress>",
        "password": "<password>",
        "country": "DE",
        "enableDetailedLogging": 1
    }

UI isnt working for me a hundred percent either, but devices I shared with this account are showing up.

Because I deleted my configuration my single device has now disappeared.  Should have taken a backup... 🙄

Update on my situation.  I realised I hadn't unbridged the plugin after recreating the config so I've done that and rebooted HomeBridge.  Now I have a single alarm system with camera and associated light and motion switches, but also a second camera.
The camera with associated alarm system shows the thumbnail but won't stream.  The second camera is simply "no response".
Settings UI still doesn't work.

@bezibaerchen please check the latest one if you want you can look at beta page on wiki if you want to know how to revert into an older beta release

@bezibaerchen please check the latest beta version if you want you can look at beta page on wiki if you want to know how to revert into an older beta release

I installed latest Beta. However I had to remove the sharing for one device. I will install new one and share over the weekend, will then give it another try.


CASMINST-6834 - CSI generates blank CAN dnsmasq configuration if system configured for CHN

Summary and Scope
If a system is configured for CHN then the dnsmasq.d/statics.conf file generated by csi config init contains CAN entries with a blank IP address.
# DHCP Entries for ncn-s001
dhcp-host=id:x3100c0s19b0n0,set:ncn-s001,5c:ed:8c:86:43:36,5c:ed:8c:21:6f:90,<IP_ADDRESS>,ncn-s001,20m # MTL
dhcp-host=id:x3100c0s19b0n0,set:ncn-s001,5c:ed:8c:86:43:36,5c:ed:8c:21:6f:90,<IP_ADDRESS>,ncn-s001,20m # Bond0 Mac0/Mac1
dhcp-host=id:x3100c0s19b0n0,set:ncn-s001,5c:ed:8c:86:43:36,5c:ed:8c:21:6f:90,<IP_ADDRESS>,ncn-s001,20m # HMN
dhcp-host=id:x3100c0s19b0n0,set:ncn-s001,5c:ed:8c:86:43:36,5c:ed:8c:21:6f:90,,ncn-s001,20m # CAN
dhcp-host=5c:ed:8c:3c:b6:76,<IP_ADDRESS>,ncn-s001-mgmt,20m #HMN
# Host Record Entries for ncn-s001
host-record=ncn-s001,ncn-s001.can,
host-record=ncn-s001,ncn-s001.hmn,<IP_ADDRESS>
host-record=ncn-s001,ncn-s001.nmn,<IP_ADDRESS>
host-record=ncn-s001,ncn-s001.mtl,<IP_ADDRESS>
host-record=x3100c0s19b0n0,ncn-s001.nmn,<IP_ADDRESS>
host-record=ncn-s001-mgmt,ncn-s001-mgmt.hmn,<IP_ADDRESS>
# Override root-path with ncn-s001's xname
dhcp-option-force=tag:ncn-s001,17,x3100c0s19b0n0

This has the side effect of DHCP handing out IP addresses from the poll rather than the assigned IP address.
Issues and Related PRs

Resolves CASMINST-6834

Testing
Tested on:

surtur
Local development environment

Test description:
Tested on surtur and verified generated configuration was as expected.
CAN case
# DHCP Entries for ncn-w005
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # MTL
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # Bond0 Mac0/Mac1
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # HMN
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # CAN
dhcp-host=5c:ba:2c:4a:19:76,<IP_ADDRESS>,ncn-w005-mgmt,20m #HMN
# Host Record Entries for ncn-w005
host-record=ncn-w005,ncn-w005.can,<IP_ADDRESS>
host-record=ncn-w005,ncn-w005.hmn,<IP_ADDRESS>
host-record=ncn-w005,ncn-w005.nmn,<IP_ADDRESS>
host-record=ncn-w005,ncn-w005.mtl,<IP_ADDRESS>
host-record=x3000c0s31b0n0,ncn-w005.nmn,<IP_ADDRESS>
host-record=ncn-w005-mgmt,ncn-w005-mgmt.hmn,<IP_ADDRESS>
# Override root-path with ncn-w005's xname
dhcp-option-force=tag:ncn-w005,17,x3000c0s31b0n0

CHN case
# DHCP Entries for ncn-w005
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # MTL
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # Bond0 Mac0/Mac1
dhcp-host=id:x3000c0s31b0n0,set:ncn-w005,bc:97:e1:e2:95:20,bc:97:e1:e2:95:21,<IP_ADDRESS>,ncn-w005,20m # HMN
dhcp-host=5c:ba:2c:4a:19:76,<IP_ADDRESS>,ncn-w005-mgmt,20m #HMN
# Host Record Entries for ncn-w005
host-record=ncn-w005,ncn-w005.hmn,<IP_ADDRESS>
host-record=ncn-w005,ncn-w005.nmn,<IP_ADDRESS>
host-record=ncn-w005,ncn-w005.mtl,<IP_ADDRESS>
host-record=x3000c0s31b0n0,ncn-w005.nmn,<IP_ADDRESS>
host-record=ncn-w005-mgmt,ncn-w005-mgmt.hmn,<IP_ADDRESS>
# Override root-path with ncn-w005's xname
dhcp-option-force=tag:ncn-w005,17,x3000c0s31b0n0

Risks and Mitigations
Pull Request Checklist

[X] Version number(s) incremented, if applicable
[X] Copyrights updated
[X] License file intact
[X] Target branch correct
[X] Testing is appropriate and complete, if applicable
[X] HPC Product Announcement prepared, if applicable

/backport release/1.5


feature: do not showing echom: before showing messages

Did you check the docs?

[X] I have read all the noice.nvim docs

Is your feature request related to a problem? Please describe.
it always show a frame of echom a:message instantly before showing the main messages.
I known that it the command echom is used to show the message later.
Describe the solution you'd like
supress the echom a:message info
Describe alternatives you've considered
no
Additional context
No response

not sure what you're asking here. You probably have a keyma triggering the message, that doesn't set silent=true?


Add option to not have prefix of issues on GitHub

I dislike all of these} names:

A setting where I didn't have to have the [XXX] would be great

/bounty $20

@tedspare I'm curious about this issue too, and I'm happy to provide PR, but quick question: is there any architectural need for this (adding [ID-42]) or it's just for convenience?

Hey @neoromantic, happy to review! It can be removed safely I believe. There's at least one RegEx check for [ABC-123] in the title, but this has no side effects IIRC.


Fix gamenetworkingsockets abseil C++ version

As suggested by @waruqi in #3710 .

Build still seems to fail


Add expansion of '~' to history path

The readline module cannot read/write histories from or to under '~' without expansion of '~'.

Unlike a unix shell, Python does not do any automatic path expansions.
os.path

I added expansion of '~' so that readline reads/writes histories from/to same path regardless of the current directory.

Sorry, I close this PR to change source branch from amane-katagiri:master to amane-katagiri:feature/history_path.


GitHub Pages not active

Hi @Malik-Y
Please turn on the GitHub Pages Service so that I can preview your web page through a web server.
The instructions to do so are in Brightspace under the Content Section entitled "GitHub". There is a video that walks everyone through the process.
Thank you.

Hello sir, sorry for the delay, I enabled everything, and I think everything should be fine now.

From: Neil Mispelaar @.>
Sent: Monday, February 20, 2023 9:49 AM
To: imd1005-web-development-winter-2023/assignment-02-Malik-Y @.>
Cc: Malik Yakubu @.>; Assign @.>
Subject: [imd1005-web-development-winter-2023/assignment-02-Malik-Y] GitHub Pages not active (Issue #2)
[External Email]
Hi @Malik-Yhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMalik-Y&data=05|01|malikyakubu%40cmail.carleton.ca|052476d0c5994d798ac408db1351a8ed|6ad91895de06485ebc51fce126cc8530|0|0|638125013664386377|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=%2BpGzFLQ7FrGbHreCXiYLAMK5Umwl0O9nIkN12MaOHxk%3D&reserved=0
Please turn on the GitHub Pages Service so that I can preview your web page through a web server.
The instructions to do so are in Brightspace under the Content Section entitled "GitHub". There is a video that walks everyone through the process.
Thank you.
—
Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fimd1005-web-development-winter-2023%2Fassignment-02-Malik-Y%2Fissues%2F2&data=05|01|malikyakubu%40cmail.carleton.ca|052476d0c5994d798ac408db1351a8ed|6ad91895de06485ebc51fce126cc8530|0|0|638125013664386377|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=XYzJXZqG8ozxwIzu78wZ7cBI%2F1iShw%2Fvmu3r0XkeJtU%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA6AEUI2VBX3FJFWGBZELP43WYN77JANCNFSM6AAAAAAVB672ZU&data=05|01|malikyakubu%40cmail.carleton.ca|052476d0c5994d798ac408db1351a8ed|6ad91895de06485ebc51fce126cc8530|0|0|638125013664386377|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=PguwMQWBoh%2F%2Fbg9kNfno53GebESfIWGC4oocp1ThB00%3D&reserved=0.
You are receiving this because you were assigned.Message ID: @.***>
This email contains links to content or websites. Always be cautious when opening external links or attachments.
Please visit https://carleton.ca/its/help-centre/report-phishing/ for information on reporting phishing messages.
When in doubt, the ITS Service Desk can provide assistance. https://carleton.ca/its/chat
-----End of Disclaimer-----

Awesome sauce.
Will have a look and let you know if I see any other issues.

Thanks @Malik-Y for addressing.
Can confirm that the site is up and running. Will close this Issue.
https://imd1005-web-development-winter-2023.github.io/assignment-02-Malik-Y/


Report over- and under-constrained projects from the Result

In Masterminds/glide#485, we discussed the importance of informing the user when they might want to take some corrective actions in their manifest. The original impetus came from coreos/rkt#2735, where they were discussing their desire to name all dependencies, transitive and not, in their manifest - and so, wanting something to compare between lock and manifest.
I laid out my view on how that approach might be harmful. @lucab seemed content with my suggestion in Masterminds/glide#485 that, rather than generating warnings when there is anything in the lock that's not in the manifest, we instead focus on just two cases:

Deps that enter the depgraph unconstrained, or with only a "preference" from e.g. godep, a la Masterminds/glide#479, #16 - so that the user can add a constraint to their manifest.
Constraints expressed in a [root] manifest on transitive dependencies, where another project with that direct dependency also expresses a constraint - so that the user can maybe drop that constraint from their manifest.

The former warning notifies the user when there's a dep flapping in the wind unconstrained, over which they might want to assert some control. The latter deals with the opposite - the user has expressed a constraint that may be redundant with what's already in the depgraph, and could consider dropping it.
There's differences in these cases. The former tends to arise from an oversight, laziness, or a new dep falling in the cracks with tooling. Corrective action is usually called for, so the warning is usually useful. Pretty straightforward.
With the latter, however, it's impossible for the solver to disambiguate between:

The user quite intentionally providing a further-narrowing constraint than constraints expressed by actual deps, perhaps because they've done some testing and KNOW that there's some versions they want to see excluded
The user unintentionally leaving a constraint around (maybe because tooling generated it, or because it was a good idea at one time...) that further narrows a constraint expressed in the depgraph. This might happen if:

Some overly-cautious tooling generated it
The constraint was the result of a conscious analysis at one time, but those issues have gone away
The constraint was put in b/c a transitive dep WAS unconstrained, but a newer version of its parent dep later added a constraint

All of this is even further complicated by the fact that, depending on which versions of deps ultimately get selected, the relationship of the root constraint to the depgraph's constraint (or lack thereof) may be different.
Given that the solver can't reasonably differentiate between these sorts of ambiguities, it suggests that wording around this class of "warning" should be comparably couched.
I don't think implementing this should require changes in the solving algorithm. Instead, we can probably do it with some extra methods on Result. The real result returned from a solve run still has access to the finished solver state, so it can interrogate its solver.selection property to find and report cases that fall into either of these scenarios. This is an especially big benefit, given that emitting warnings from within the solver requires a refactor to take some kind of injected logger, separate from the trace logger.

@davecheney and @kardianos - wanted to give you guys a quick heads-up that this discussion is happening. Not to troll, start a fight, reopen old wounds, or anything like that - please do feel free to ignore!
Just, I know that the basic topic of "should the manifest have direct and transitive deps, or just direct deps?" is an area we've had varying degrees of disagreements in the past. This gets a little more concrete about it, so I thought y'all might find it interesting.

This issue was moved to golang/dep#444


Use different subpaths within volume for recordings and templates

I noticed when archiving a recording, that the recording also ended up in the templates directory. This is because we use the same mounted volume for both recordings and templates, and by default it's the volume's root directory that is mounted. This fix specifies the SubPath property for each mount, which will mount different directories within the volume.

https://github.com/rh-jmc-team/container-jfr/pull/356
There are also changes in this container-jfr PR for the default paths for things as well as the introduction of a new path for configuration files. Would it make sense to hold this PR until that one or some version of it goes in, so that the paths can be kept consistent upstream vs as deployed by the operator?

I think it would probably be good to get this in ASAP. I didn't mention in my summary, but this is breaking template functionality after you archive a recording. You'll see "Request failed (Status 500) java.text.ParseException: Content is not allowed in prolog.", when going to the Events tab or creating a new recording and selecting the Events dropdown.

It fixes the prblem you mention!


fix: use server-side apply in crd e2e test

Description of the change:
Use server-side apply in crd e2e test when changing the subscription to point to a new channel to avoid transient object modified errors (409 errors).
This change can probably be ported to other tests that flake with this error.
Motivation for the change:
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /docs
[ ] Commit messages sensible and descriptive

The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests.

totaltestcount: 0
flaktestcount: 0
skippedtestcount: 0
flaktests: []
skippedtests: []

The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests.

totaltestcount: 0
flaktestcount: 0
skippedtestcount: 0
flaktests: []
skippedtests: []

/lgtm

/lgtm

/approve

/test e2e-aws-olm


[RCINT-3857] Make CallLogger only provide fromEntities and toEntities on new log or when user modifies them

Coverage increased (+0.04%) to 45.936% when pulling ee13d1398f6063d3902172e6fb6ba1aea8f9331b on u9520107:rcint-3857 into da87ca31c509b011d135f942382e407789d5a7da on ringcentral:master.


Compatibility with API 23 (Marshmallow)

I have used RichEditText successfully with Android 5.1 - however, I haven't found it to be compatible with marshmallow's "floating" action bar. Upon highlighting text, I see the FORMAT option, but clicking it does nothing.

Is there a fix for compatibility with marshmallow, perhaps by disabling the new "floating" aspect in my activity?

The action modes have not been working since Android 5.1. I have a note to that effect in the docs, though it only says "Android 5.1" and not "Android 5.1+".
I hope to give this library more love in early 2016, including some sort of stock toolbar and deprecate the action mode support entirely. In the meantime, you will have to roll your own, using applyEffect() and setOnSelectionChangedListener(), as described in the docs.


fixing ClassCastException  when running GenotypeGVCFs against GenomicsDB

fixing a site in ReferenceConfidenceVariantContextMerger where a String
was expected but an Integer was being provided in some circumstances
GenomicsDB creates variants with MIN_DP as an integer instead of a String which was causing a ClassCastException
should fix #1014, but I don't have access yet to the files that produced the error so I can't check

:+1: merge when tests pass


Missing docs for __meta_kubernetes_endpoints_label* labels

The commit https://github.com/prometheus/prometheus/commit/617c56f55a14b7f6ed4f0f4402c1e18aaf3b396c adds new labels for role: endpoints: __meta_kubernetes_endpoints_label_* and __meta_kubernetes_endpoints_labelpresent_*. But these labels aren't documented at https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config . This may prevent from the usage of these labels.
Side notes:

Why these labels weren't added to role: endpointslice?
Why __meta_kubernetes_endpoints_annotation* labels weren't added to role: endpoints and role: endpointslice to be consistent with other roles in kubernetes_sd_config?

@roidelapluie I see #10911 was merged and __meta_kubernetes_endpoints_label_<labelname> and __meta_kubernetes_endpoints_labelpresent_<labelname> are documented in https://prometheus.io/docs/prometheus/latest/configuration/configuration/#endpoints, so this issue should be ok to close, right? Or am I missing something?

any updates?

The documentation looks up-to-date to me. Feel free to reopen if it's not the case.


swiftshader: init at 2020-03-31

Motivation for this change
Although swiftshader is used as part of Chromium, it's not available as a
standalone package.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/) (Tested libvulkan.so.1)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

CC @Ralith

Hey I'm currently testing the build of this, it takes very long mostly because it compiles all of *!@^ LLVM. Do you think @expipiplus1 you can make it use Nixpkgs' version of LLVM?

Besides that build went out fine.

It would definitely be nice to try to strip out as much of third_party as possible, though the extent to which that's feasible with Google projects like this varies wildly.
Can someone who's had the time to build this paste a list of the output files, and the contents of the manifest .json it installs, if any?

Hey I'm currently testing the build of this, it takes very long mostly because it compiles all of *!@^ LLVM. Do you think @expipiplus1 you can make it use Nixpkgs' version of LLVM?

Yikes, I didn't realise!
After a quick search for LLVM in CMakeLists.txt it doesn't look as though it's trivial to use an external LLVM.

@Ralith Here is a list of everything in the build directory after building: https://gist.github.com/cc0eddaeb1c74195d12d3275d02febe2

Rather, I'm interested in the contents of the resulting nix package (and of vk_swiftshader_icd.json).

@Ralith ah sorry, here it is
result/
result/lib
result/lib/vk_swiftshader_icd.json
result/lib/libvulkan.so
result/lib/libEGL.so
result/lib/libGLESv2.so
result/lib/libvk_swiftshader.so
result/lib/libvulkan.so.1

result/lib/vk_swiftshader_icd.json
{
  "file_format_version": "1.0.0",
  "ICD": {
    "library_path": "./libvk_swiftshader.so",
    "api_version": "1.0.5"
  }
}

For this to play nicely in a larger environment, it'll need some changes:

The .json manifest should be installed in share/vulkan/icd.d
The vulkan ICD library should be named libvulkan_swiftshader.so or similar
The .json manifest's "library_path" field should reference the full absolute path to the vulkan ICD library

I expect something similar is necessary for the EGL library, but I'm not an expert on how glvnd works. See e.g. ${mesa.drivers}/share/glvnd/egl_vendor.d/50_mesa.json.
These changes should make it possible for swiftshader to exist as a first-class graphics device on a NixOS system alongside any actual hardware, and if upstreamed would likely be similarly useful to other distros. Otherwise, it will conflict with the regular graphics infrastructure.

@Ralith, I've changed things as you suggest, as well as copying what seems to be going on for glvnd.
I've also raised an issue on the swiftshader tracker about using an external LLVM: https://bugs.chromium.org/p/swiftshader/issues/detail?id=146

Hi all, I'm the lead of SwiftShader. Thanks for your interest in providing it as a package in NixOS!
As responded on https://bugs.chromium.org/p/swiftshader/issues/detail?id=146, we can't guarantee that building it with an external LLVM library will result in correct behavior.
The libvulkan.so.1 binary is just a renamed copy of libvk_swiftshader.so. The latter is to be used as an ICD, while the former can be used on systems that lack a Vulkan Loader or for which we wish to skip it. That should probably only be done for testing purposes, so it can be left out of the package.

Unfortunately building with an external LLVM package is not desirable. We make changes to our fork of LLVM when necessary. For example LLVM 7 had bugs in its coroutine support. We use that to implement control barriers. So using upstream LLVM 7 instead could produce subtle breakages (we did contribute the patch back to LLVM, but I'm not sure if that made it into the 7 release, and we can't guarantee that in the future). We also minimize the build size and alter the LLVM build config from the default, so using an external build instead may produce a larger library with additional dependencies that can cause issues which don't occur with our build.

As responded on https://bugs.chromium.org/p/swiftshader/issues/detail?id=146, we can't guarantee that building it with an external LLVM library will result in correct behavior.

I think given this, along with the fact that building with the in-tree LLVM was so easy we should keep it as the swiftshader team suggests.

The libvulkan.so.1 binary is just a renamed copy of libvk_swiftshader.so. The latter is to be used as an ICD, while the former can be used on systems that lack a Vulkan Loader or for which we wish to skip it. That should probably only be done for testing purposes, so it can be left out of the package.

Done.
@Ralith and @doronbehar, if you agree with the above, I suppose all that's left would be to test using swiftshader as a graphics device for NixOS, or perhaps that could wait for a separate PR.

think given this, along with the fact that building with the in-tree LLVM was so easy we should keep it as the swiftshader team suggests.

Agreed.

Changes look good; will try to test the vulkan aspects myself.

Running vulkaninfo against this ICD results in a weird crash:
VK_ICD_FILENAMES=/nix/store/fxnhndsv0accg8z0sy6mii0zzjab6dv1-swiftshader-2020-03-31/share/vulkan/icd.d/vk_swiftshader_icd.json /nix/store/7bppi7hhkhn1c7jsip2a33kmdr9kc0kj-vulkan-tools-<IP_ADDRESS>/bin/vulkaninfo
<snip>
GPU id : 0 (SwiftShader Device (LLVM 7.0.1)):
	Surface types: count = 1
		VK_KHR_xlib_surface
	Formats: count = 2
		SurfaceFormat[0]:
			format = FORMAT_B8G8R8A8_UNORM
			colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
		SurfaceFormat[1]:
			format = FORMAT_B8G8R8A8_SRGB
			colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
	Present Modes: count = 2
		PRESENT_MODE_FIFO_KHR
		PRESENT_MODE_MAILBOX_KHR
	VkSurfaceCapabilitiesKHR:
	-------------------------
		minImageCount       = 1
		maxImageCount       = 0
		currentExtent:
			width  = 256
			height = 256
		minImageExtent:
			width  = 256
			height = 256
		maxImageExtent:
			width  = 256
			height = 256
		maxImageArrayLayers = 1
		supportedTransforms:
			SURFACE_TRANSFORM_IDENTITY_BIT_KHR
		currentTransform:
			SURFACE_TRANSFORM_IDENTITY_BIT_KHR
		supportedCompositeAlpha:
			COMPOSITE_ALPHA_OPAQUE_BIT_KHR
		supportedUsageFlags:
			IMAGE_USAGE_TRANSFER_SRC_BIT
			IMAGE_USAGE_TRANSFER_DST_BIT
			IMAGE_USAGE_SAMPLED_BIT
			IMAGE_USAGE_COLOR_ATTACHMENT_BIT
	VkSurfaceCapabilities2EXT:
	--------------------------
		supportedSurfaceCounters:
zsh: segmentation fault  VK_ICD_FILENAMES=

Running in gdb produces instead:
/build/SwiftShader-5cf1e9a/src/Vulkan/libVulkan.cpp:2937 vkGetPhysicalDeviceProperties2 TRACE_ASSERT: pProperties->pNext sType =<PHONE_NUMBER>
Program received signal SIGABRT, Aborted.
0x00007ffff78ec15a in raise () from /nix/store/9rabxvqbv0vgjmydiv59wkz768b5fmbc-glibc-2.30/lib/libc.so.6
(gdb) bt
#0  0x00007ffff78ec15a in raise () from /nix/store/9rabxvqbv0vgjmydiv59wkz768b5fmbc-glibc-2.30/lib/libc.so.6
#1  0x00007ffff78d6548 in abort () from /nix/store/9rabxvqbv0vgjmydiv59wkz768b5fmbc-glibc-2.30/lib/libc.so.6
#2  0x00007ffff691e0d2 in ?? () from /nix/store/fxnhndsv0accg8z0sy6mii0zzjab6dv1-swiftshader-2020-03-31/lib/libvk_swiftshader.so
#3  0x00007ffff693728b in vkGetPhysicalDeviceProperties2 () from /nix/store/fxnhndsv0accg8z0sy6mii0zzjab6dv1-swiftshader-2020-03-31/lib/libvk_swiftshader.so
#4  0x0000000000457f45 in AppGpu::AppGpu(AppInstance&, unsigned int, VkPhysicalDevice_T*, pNextChainInfos) ()
#5  0x000000000040f067 in main ()

I get no segfault calling getPhysicalDeviceProperties with all possible types in the struct chain: https://gist.github.com/9a1e461a8b1a76a25af0cd0da99f2ae4; Perhaps vulkaninfo is doing something out of the ordinary (seems unlikely though)?. I do however get an error when the program terminates:
$ VK_ICD_FILENAMES=/home/j/src/nixpkgs2/result/share/vulkan/icd.d/vk_swiftshader_icd.json cabal exec info > properties
waitForProcess: illegal operation (Inappropriate ioctl for device)

FWIW hello triangle worked out of the box (with no ioctl error):

@Ralith This looks like a problem in (at least) vulkaninfo. running under gdb without the code that aborts when under a debugger (in log_trap) shows the crash takes place in vulkaninfo:
Thread 1 "vulkaninfo" received signal SIGSEGV, Segmentation fault.
0x000000000042d71f in chain_iterator_surface_capabilities2(Printer&, AppInstance&, AppGpu&, void*, VulkanVersion) ()
(gdb) bt
#0  0x000000000042d71f in chain_iterator_surface_capabilities2(Printer&, AppInstance&, AppGpu&, void*, VulkanVersion) ()
#1  0x0000000000433b38 in DumpSurfaceCapabilities(Printer&, AppInstance&, AppGpu&, AppSurface&) ()
#2  0x000000000043b723 in DumpSurface(Printer&, AppInstance&, AppGpu&, AppSurface&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ()
#3  0x000000000043f3c1 in DumpPresentableSurfaces(Printer&, AppInstance&, std::vector<std::unique_ptr<AppGpu, std::default_delete<AppGpu> >, std::allocator<std::unique_ptr<AppGpu, std::default_delete<AppGpu> > > > const&, std::vector<std::unique_ptr<AppSurface, std::default_delete<AppSurface> >, std::allocator<std::unique_ptr<AppSurface, std::default_delete<AppSurface> > > > const&) ()
#4  0x000000000040f899 in main ()

That looks like a different crash than the one I observed. Note the presence of libvk_swiftshader.so in my backtrace. Oddly the crash doesn't seem to occur when I install swiftshader to my user profile so both it and my intel GPU are visible; only when I set VK_ICD_FILENAMES in the environment to force only swiftshader to be visible do things go awry. vkcube works fine regardless.
I think these are swiftshader bugs and probably don't need to block the merge of the package, particularly as actual graphics applications seem to work fine, and installation for graceful discovery by regular vulkan apps seems to work great.

That looks like a different crash than the one I observed. Note the presence of libvk_swiftshader.so in my backtrace. Oddly the crash doesn't seem to occur when I install swiftshader to my user profile so both it and my intel GPU are visible; only when I set VK_ICD_FILENAMES in the environment to force only swiftshader to be visible do things go awry. vkcube works fine regardless.

Yeah, because I removed an abort() in swiftshader (which was only present when running under a debugger.

I think these are swiftshader bugs and probably don't need to block the merge of the package, particularly as actual graphics applications seem to work fine, and installation for graceful discovery by regular vulkan apps seems to work great.

Agree

Is it possible to get this merged, please?

update to 2020-04-17

Is it possible to get this merged, please?

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/143

PIng

2020-04-17 -> 2020-06-17

hi, sorry for the delay. there are so many PRs and not enough people to review/merge everything.
while trying to build this I got this error though:
hash mismatch in fixed-output derivation '/nix/store/rjm7jr4lk3aq3daxvizhcglpc49mgnyw-SwiftShader-763957e':
  wanted: sha256:0mp77cp85mbs83wpwqhn3myzdfdid8jdq2mxf65cchb643amdsr3
  got:    sha256:0sdh48swx0qyq2nfkv1nggs14am0qc7z239qrxb69p2ddqm76g1s
cannot build derivation '/nix/store/jpw1yrmdwig3vg04vkin0lrb8c36yk5y-swiftshader-2020-06-17.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/fh8280hdfrcxxxpwxal3higzpbarvdar-env.drv': 1 dependencies couldn't be built

could you maybe squash the commits into one also?
cheers and thanks for contributing

hi, sorry for the delay. there are so many PRs and not enough people to review/merge everything.

No problem at all, I completely understand. Please don't take my pings as impatience!

while trying to build this I got this error though:
...
could you maybe squash the commits into one also?

Done!

cheers and thanks for contributing

:)

Thanks!
On Fri, Jun 19, 2020 at 5:24 AM Lassulus<EMAIL_ADDRESS>wrote:

Merged #83874 https://github.com/NixOS/nixpkgs/pull/83874 into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/83874#event-3460114014, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGRJXEF3WZH62KISTMMEQTRXKAV7ANCNFSM4LXRIGJQ
.


Process classic SFML events  under IMGUI ?

Hi, thx for your nice work.
I just wonder if you have an example showing how you can still capture events that does not concern ImGUI and that concerns the classic SFML stuff "under" ImGUI (the rest of my application ;-) that relies on sf::Event::KeyReleased or sf::Keyboard::isKeyPressed).
Does IMGUI sends back some events telling if he got the focus during last frame ? So that I do not use mouse event or keyboard events for the rest of my application ?
I read about io.WantCaptureKeyboard and io.WantCaptureMouse but it is not very clear to me how and when I should use them. And they do not seem to give info about the fact that ImGUI has focus or not, but just if ImGUI has "consumed" some keyb or mouse events for himself.

Hello.
Can you please tell me what you want to do exactly? It's not clear from your question. Why do you not want to use mouse/keyboard events from SFML?

If you want to not process your normal input events when ImGui grabs it (e.g. when you're in a text box typing something), you need to check ImGui::GetIO().WantCaptureKeyboard/Mouse. And if it's true then you don't check your game/app input.

I was infact also wondering how I can tell with those 2 flags that ImGui has the focus. But it seems that I missed IsWindowFocused() and IsWindowHovered(). Now I got it.
Thanks for your answer.


[10.x] Update Str::snake() to use improved regex

Fix: https://github.com/laravel/framework/issues/46399
This PR updates the Str::snake() function in Laravel to use a more robust regular expression that can handle more complex input strings. The updated implementation includes support for numbers and capitalization, and it has been tested against a variety of inputs to ensure correctness.
In addition to the updated implementation, this pull request also includes new unit tests that cover the various use cases of Str::snake(), including inputs with numbers, capitalization, and custom delimiters. These tests ensure that the updated implementation produces the expected output and is compatible with the existing codebase.
By updating Str::snake() with this improved regex, we can provide more reliable and consistent string formatting across the Laravel framework. This change also lays the groundwork for future improvements and enhancements to the string manipulation functions in Laravel.

It's a breaking change to modify the behavior of this function on a patch release. If you need a different style of snake casing I suggest writing your own method.


error: undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32

Summary
Unable to build by 3.2 Building with Nix guide. Please find logs below.
Logs
Master branch ‹4ecb6ed›
<master> $ nix-shell --run "cargo run --release"
error: undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32
(use '--show-trace' to show detailed location information)
<master> $ nix-shell --run "cargo run --release" --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'substrate-nix-shell' at ~/robonomics/shell.nix:9:3:
while evaluating 'chooseDevOutputs' at /nix/store/lyfx0kyjcyvrisvczfkmhfvm40pr1z8q-source/lib/attrsets.nix:474:22, called from undefined position:
undefined variable 'wasm-gc' at~/robonomics/shell.nix:11:32

tag v0.15 branch ‹7d2e6f1›
$ nix-shell --run "cargo run --release" --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'substrate-nix-shell' at ~/robonomics/shell.nix:9:3:
while evaluating 'chooseDevOutputs' at /nix/store/lyfx0kyjcyvrisvczfkmhfvm40pr1z8q-source/lib/attrsets.nix:474:22, called from undefined position:
undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32

@khssnv thank you for report


Unable to save model after calling model.learn

Describe the bug
I am unable to save the model per 1000 steps by calling model.learn(total_timesteps=10*100).
Code example
import gym
import tensorflow as tf
from stable_baselines.common.policies import FeedForwardPolicy
from stable_baselines import PPO1
import os
import sys
import inspect

arch_str = "32,16"
if arch_str == "":
    arch = []
else:
    arch = [int(layer_width) for layer_width in arch_str.split(",")]
print("Architecture is: %s" % str(arch))

training_sess = None
class MyMlpPolicy(FeedForwardPolicy):

    def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, **_kwargs):
        super(MyMlpPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse, net_arch=[{"pi":arch, "vf":arch}],
                                        feature_extraction="mlp", **_kwargs)
        global training_sess
        training_sess = sess

env = gym.make('CartPole-v0')
gamma=0.99
model = PPO1(MyMlpPolicy, env, verbose=1, schedule='constant', timesteps_per_actorbatch=8192, optim_batchsize=2048, gamma=gamma)

for i in range(0, 10):
    model.learn(total_timesteps=(10*100))
    # want to save model per 10000 steps
    model.save("model-{}".format(i))

Traceback (most recent call last):
  File "test.py", line 32, in <module>
    model.save("model1")
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/stable_baselines/ppo1/pposgd_simple.py", line 360, in save
    self._save_to_file(save_path, data=data, params=params_to_save, cloudpickle=cloudpickle)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/stable_baselines/common/base_class.py", line 532, in _save_to_file
    BaseRLModel._save_to_file_zip(save_path, data, params)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/stable_baselines/common/base_class.py", line 490, in _save_to_file_zip
    serialized_data = data_to_json(data)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/stable_baselines/common/save_util.py", line 52, in data_to_json
    cloudpickle.dumps(data_item)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 1125, in dumps
    cp.dump(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 482, in dump
    return Pickler.dump(self, obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 408, in dump
    self.save(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 489, in save
    self.save_global(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 877, in save_global
    self.save_dynamic_class(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 686, in save_dynamic_class
    save(clsdict)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 556, in save_function
    return self.save_function_tuple(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 758, in save_function_tuple
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 774, in save_list
    self._batch_appends(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 798, in _batch_appends
    save(x)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 744, in save_tuple
    save(element)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/site-packages/cloudpickle/cloudpickle.py", line 890, in save_instancemethod
    self.save_reduce(types.MethodType, (obj.__func__, obj.__self__), obj=obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 603, in save_reduce
    save(args)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 729, in save_tuple
    save(element)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 520, in save
    self.save_reduce(obj=obj, *rv)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 627, in save_reduce
    save(state)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 774, in save_list
    self._batch_appends(obj)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 798, in _batch_appends
    save(x)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 744, in save_tuple
    save(element)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 475, in save
    f(self, obj) # Call unbound method with explicit self
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 814, in save_dict
    self._batch_setitems(obj.items())
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 840, in _batch_setitems
    save(v)
  File "/Users/stephen/anaconda3/envs/py3.5/lib/python3.5/pickle.py", line 495, in save
    rv = reduce(self.proto)
TypeError: can't pickle _thread.lock objects

System Info
Describe the characteristic of your environment:

Describe how the library was installed pip
Python version. Python 3.5.6 :: Anaconda, Inc.
Tensorflow version. tensorflow  1.8.0
Versions of any other relevant libraries. gym 0.15.3

Additional context
Add any other context about the problem here.

Issue lies here:
training_sess = None
class MyMlpPolicy(FeedForwardPolicy):

    def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, **_kwargs):
        super(MyMlpPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse, net_arch=[{"pi":arch, "vf":arch}],
                                        feature_extraction="mlp", **_kwargs)
        global training_sess
        # If you store session like this, agent attempts to pickle it
        training_sess = sess

You can save tensorflow.Sessions (sess object). If you comment out the trainin_sess = sess part, then it saves correctly.
Also: Saving model that way is not optimal and leads to re-initialization of many things. Try using callbacks instead.


Add newer tagged versions of RAJA that will compile on Fedora 37

Regrettably, my previous pull request (#951) left out another necessary change.  The native gcc on Fedora 37 is gcc-12.3.1, and when it compiles RAJA 2022.03.0, there are numerous error messages stemming from the avx512_int32.hpp header file like these two:
  >> 424     /home/lidouser/current/lido/lido_libs/linux_fedora_37/2023_07_07_09_50_46/linux-fedora37-skylake_avx512/gcc-12.3.1/raja-2022.03.0
             -htujoqw3uo3ah3sawse7meqqw5bs65wc/include/RAJA/policy/tensor/arch/avx512/avx512_int32.hpp:213:33: error: cannot convert a value o
             f type 'RAJA::expt::Register<int, RAJA::expt::avx512_register>::register_type' to vector type '__m256i' which has different size
     425       213 |                                 _mm512_i64scatter_epi32(ptr,
     426           |
     427     /home/epperly2/current/lido/lido_libs/linux_fedora_37/2023_07_07_09_50_46/linux-fedora37-skylake_avx512/gcc-12.3.1/raja-2022.03.0
             -htujoqw3uo3ah3sawse7meqqw5bs65wc/include/RAJA/policy/tensor/arch/avx512/avx512_int32.hpp: In member function 'const RAJA::expt::
             Register<int, RAJA::expt::avx512_register>::self_type& RAJA::expt::Register<int, RAJA::expt::avx512_register>::store_strided_n(el
             ement_type*, camp::idx_t, camp::idx_t) const':
  >> 428     /home/epperly2/current/lido/lido_libs/linux_fedora_37/2023_07_07_09_50_46/linux-fedora37-skylake_avx512/gcc-12.3.1/raja-2022.03.0
             -htujoqw3uo3ah3sawse7meqqw5bs65wc/include/RAJA/policy/tensor/arch/avx512/avx512_int32.hpp:228:33: error: cannot convert a value o
             f type 'RAJA::expt::Register<int, RAJA::expt::avx512_register>::register_type' to vector type '__m256i' which has different size
     429       228 |                                 _mm512_mask_i64scatter_epi32(ptr,
     430           |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

This pair of errors shows up when compiling several source flies.
Adding version 2022.10.5 resolves this issue on Fedora 37.

Codecov Report

Merging #959 (f1c98ec) into develop (1abf3f9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #959   +/-   ##
========================================
  Coverage    89.47%   89.47%
========================================
  Files          141      141
  Lines        10771    10771
========================================
  Hits          9637     9637
  Misses        1134     1134

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


Release 16.3?

I love this library! Currently, my Gemfile points at
gem 'ice_cube', github: 'seejohnrun/ice_cube', ref: 'd0a6b6a'

because I make use of the (currently unreleased) [FEATURE] Added support for parsing RDATE from iCal format.
I imagine you were originally sitting on the 16.3 release with the assumption that you'd bundle some more features in there before pushing 16.3 out the door. Given that it doesn't look like that's gunna happen though, here's one vote for simply pushing a 16.3 release as is.
Apparently, in order to pull gem 'ice_cube', github: 'seejohnrun/ice_cube', ref: 'd0a6b6a' into a container, I also need to install git in the container, which is mildly annoying.

all set - thanks @thefliik


Can I debug ll file (llvm asm)?

OS: 10.0.18363.535
VSCode version:  1.45.1
Extension version: 1.5.0
Toolchain version: clang 0.0.0
Build target: x86_64-pc-windows-msvc19.25.28614
Python version: Python 3.8.3
I'm looking a way to debug ll file (llvm asm) and this extension has ll in it's name.
Is it possible? How?
The exe generated from ll using clang -g, and code-lldb just run ignoring breakpoints.
Thanks

Not as far as I know.   "ll" merely signifies that lldb is a part of the llvm toolchain.
That said, it seems that this used to be possible.

OK, thanks.

@vadimxcn
I found that lldb can stop at breakpoint if source code extension is cpp regardless of its contents.
Can I request removal of file extension restriction?

You mean, you'd like to set breakpoints in arbitrary files?   That's a VSCode restriction.   You can bypass it with "debug.allowBreakpointsEverywhere": true

You mean, you'd like to set breakpoints in arbitrary files? That's a VSCode restriction. You can bypass it with "debug.allowBreakpointsEverywhere": true

I know that settings.
I can debug cpp with #line preprocessor in the past.
What I did today is changing !DIFile (point to source file) in ll.
If the file extension is cpp, it stopped at breakpoint
But for example txt, it can't stop.

That setting works for me (just checked).

If you can't set a breakpoint in the first place, that's the VSCode restriction I mentioned, which can be bypassed using allowBreakpointsEverywhere.  Or, you could switch the file type to C or C++ via the "Change Language Mode" vscode command.
If you can set a breakpoint, but it turns gray as soon as you start debugging, something is likely wrong with the source file path in the debug info.   This page might help.

That setting works for me (just checked).

Sorry, I don't know how to help you.   There are no file extension restrictions imposed anywhere in Codelldb.
This looks to me like a problem with debug info, but I am not sure what...  I wonder if there is a corresponding DICompileUnit?   If you generated  .ll files with clang, try doing a global search-replace on the file name - it more show up in more than one place.
Otherwise... try a different debugger.   For example the one in MS C++ extension.

OK, thanks.


feature request: linux build.

feature request: linux build.

Yes, thanks!  Didn't think that trough :-)


Indicator Counters Never Change, Never Go Away

See attached screeshot.
I'm not sure if this a pump.io bug or simply an identi.ca data migration issue.
My "Messages" and "Notices" dashboard has been locked at 1 and 12 since the migration to pump.io No matter what I do these numbers never go away; most interactions lead to "Error fetching notice."
Thank you for your consideration.

Dupe.


steam: un-decimate

A bunch of issues were found with the decimated steam, particularly around the use of the new inlcudeClosures. Adding gamemode or gamescope to steam's extraPackages would break in odd ways for instance and those appear to be common patterns.
https://github.com/NixOS/nixpkgs/issues/350598
https://github.com/NixOS/nixpkgs/pull/308097
We definitely want to use something like includeClosures in the future but let's revert back to just listing all deps in order to not have a broken steam for 24.11.
https://github.com/NixOS/nixpkgs/pull/351928 aims to fix the issues experienced here but is a breaking change and a bit too close for comfort w.r.t. staging cycles.
Game specific libraries are disabled by default now though because pressure-vessel should be able to take care of those before 24.11 releases. (Though you never know with Valve-time...) The flag to restore the game specific libraries is retained just in case.
This partially reverts a3ccb7f562a93826ad0112adf20dc7f697b7713e

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] Fits CONTRIBUTING.md.

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

these branch names keep getting better and better

Sad to see the initial work broke too much but hopefully the rewrite will fix those issues, do you need additional testing on this?
I can assist with checking that SteamVR is working properly later tonight.

Maybe we should just scope https://github.com/NixOS/nixpkgs/pull/351928 to Steam for 24.11, and let other fhsenvs be built the old way? That way I can iterate on it faster. I really don't want to go back to this.

New plan: https://github.com/NixOS/nixpkgs/issues/352370


fix: brand typo

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Merged. Thank you @0xflotus!


Bullet #2 incorrect

This bullet seems to be incorrect/outdated (due to UX changes possibly?):
"2. In the Microsoft 365 security page, click More resources, and then select Cloud App Security."
Thanks,
Chris

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

ID: 8d3a8799-0915-2446-b772-cf5e3c80a238
Version Independent ID: 31f10a22-3c95-5ebe-622d-7431c5cb76f1
Content: Deploy Cloud App Security
Content Source: CloudAppSecurityDocs/getting-started-with-cloud-app-security.md
Service: cloud-app-security
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thanks for your comment. We'll investigate and get back to you.


rework the additional templates documentation to include additionalTemplateGlobals

Hey, I just made a Pull Request!
I updated the documentation for writingTemplates to include additionalTemplateGlobals as discussed in #25445.
The commit look a bit weird because I signed afterward, but I hope they still check out.
:heavy_check_mark: Checklist

[ ] ~A changeset describing the change and affected packages. (more info)~
[x] Added or updated documentation
[ ] ~Tests for new functionality and regression tests for bug fixes~
[ ] ~Screenshots attached (for UI changes)~
[x] All your commits have a Signed-off-by line in the message. (more info)

the commits are all whack
i am going to create a new pr


[WFRP4e] Pay command is not localized

Describe the bug
When using this module with WFRP in French, the pay command is not recognized, thus no money is taken from the buyer.
To Reproduce
Steps to reproduce the behavior:

Install French WFRP module
As a player, click on "Buy item" on a merchant NPC
See error ("Invalid syntax")

Expected behavior
Clicking the "pay" button should remove the specified amount of money from the player.
Screenshots

Additional context
It looks like this module uses hard coded values for coins ("gc", "ss", "bp") whereas the WFRP module uses the localized names for coins when parsing the command.

Replacing line 63 from Wfrp4eCurrencyCalculator.ts by something like this may work:
        let gc = game.i18n.localize("MARKET.Abbrev.GC").toLowerCase();
        let ss = game.i18n.localize("MARKET.Abbrev.SS").toLowerCase();
        let bp = game.i18n.localize("MARKET.Abbrev.BP").toLowerCase();
        let money = game.wfrp4e.market.payCommand(priceAmount.gc + gc + priceAmount.ss + ss + priceAmount.bp + bp, buyer, { 'suppressMessage': true });

At least, it does when I try it locally (by editing 'bundle.js').


Logging message on CAN bus to SD card through file system

Summary
Implement the functionality of logging messages on the CAN bus to SD card through the file system.
Changelist
Add io_io_canLogging with an additional queue inside
Refactor hw_can for a more flexible receive callback function.
Testing Done
No test is being done. Waiting to test on the board.
Resolved Issues
Implementation new feature
Checklist
Please change [ ] to [x] when you are ready.

[ x ] I have read and followed the code conventions detailed in README.md (This will save time for both you and the reviewer!).
[ x ] If this pull request is longer then 500 lines, I have provided explicit justification in the summary above explaining why I cannot break this up into multiple pull requests (Small PR's are faster and less painful for everyone involved!).

No rush on my comments btw since this is mostly a proof-of-concept for Quadruna, but just wanted to get you a review earlier rather than later.


fix: return correct html depending if outer element is root Vue app

Feels a little hackish, but resolves #173. I just tried things until all the tests passed. TDD at it's finest!
@bastarder might want to give this a review - can you think of any other cases we missed?

import { mount } from '@vue/test-utils'

describe('A.vue', () => {
  test('create', async () => {
    const ComponentA = {
      name: 'ComponentA',
      template: `

          <slot></slot>

      `,
    }

    const ComponentB = {
      name: 'ComponentB',
      template: `

          <slot></slot>

      `,
    }
    const wrapper = mount({
      components: {
        ComponentA,
        ComponentB,
      },
      template: `
        <ComponentA>
          <ComponentB>

1

          </ComponentB>
          <ComponentB>

2

          </ComponentB>
          <ComponentB>

3

          </ComponentB>
        </ComponentA>
      `,
    })
    const com2 = wrapper.findAllComponents(ComponentB)
    console.log(com2[0].find('.content').text())  // 1
    console.log(com2[0].vm.$el.querySelector('.content').innerHTML) // 1
    console.log(com2[0].vm.$el.querySelector('.content').innerText)  // undefined
  })
})

I think you can see this example,
why innerText is undefined?

@bastarder I am not sure, seems it's incorrect. Thanks for the extra tests - will try it out in the next day or two and find out 👍
Or you can investigate if you get time before me :D

@bastarder I added your test case: https://github.com/vuejs/vue-test-utils-next/pull/174/commits/fc045f7e83fe2f2a499c26ae6e6a28f2e1d6e3ff#diff-3e22d2badc1a61e2e80330efea26ef91R227
Turns out the problem is not VTU here, but innerText. It's not implemented in jsdom, see here. You may use textContent instead, that will work instead. See the test case I linked above.

@bastarder I added your test case: fc045f7#diff-3e22d2badc1a61e2e80330efea26ef91R227
Turns out the problem is not VTU here, but innerText. It's not implemented in jsdom, see here. You may use textContent instead, that will work instead. See the test case I linked above.

thk！ i will use textContent instead

Great, I will release this when we fix #180. Please wait a bit.


weaveWaitEntrypoint is appended multiple times

file: https://github.com/weaveworks/weave/blob/v1.0.1/proxy/create_container_interceptor.go
function: setWeaveWaitEntrypoint
line 92: container.Entrypoint = append(weaveWaitEntrypoint, container.Entrypoint...)
I haven't had any experiences with golang,
but I believe this line allows the /w/w entrypoint to be inserted at the front for multiple times.
I am using dokku-alt with weave & weave proxy,
I could see the entrypoint of container launching with dokku becomes /w/w /w/w /w/w /w/w /bin/bash.
It's probably because in setWeaveWaitEntrypoint,
it's trying to insert /w/w to the container's entrypoint from docker inspect,
however the container has already included /w/w before.

How did get into this state? Do you have steps to reproduce this, ideally not involving dokku?
Seems to me that for this to happen the proxy would somehow have to end up talking to itself. But that would just be an infinite recursion.

I could try to reproduce this for you but it's now being produced by dokku-alt.
Just FYI the node.js container I'm running is basically dead in this situation (returning 502)

Is there a simple way to reproduce this with dokku-alt?

I have managed to reproduce it via committing containers. Will have to verify this is what dokku is doing.

https://github.com/dokku-alt/dokku-alt/blob/master/plugins/dokku_common
yes dokku-alt is committing containers in their building steps.
@rade @paulbellamy thanks so much for the responses! :+1:

Fixed by #980.
@oldlam thanks for reporting this. The fix will be part of 1.0.2, but we are not going to release that imminently. I have however pushed new images, so it would be good if you tested the fix by installing weave following the snapshot instructions.

@rade I just installed the snapshot and tested that it's working well with dokku-alt now, thanks for the fix! :+1: :smile:


Pip install error

Trying to pip install w/ Python 3.10 in a virtual environment is failing. I installed earthkit-meteo and tried it again but it doesn't work. Pip is running with the latest version (23.3.1).
pip install ai-models-graphcast
Collecting ai-models-graphcast
Using cached ai-models-graphcast-0.0.4.tar.gz (12 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting ai-models>=0.2.3 (from ai-models-graphcast)
Using cached ai-models-0.2.15.tar.gz (20 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: earthkit-meteo in c:\graphcast.venv\lib\site-packages (from ai-models-graphcast) (0.0.1)
Collecting dm-tree (from ai-models-graphcast)
Using cached dm_tree-0.1.8-cp310-cp310-win_amd64.whl (101 kB)
Collecting entrypoints (from ai-models>=0.2.3->ai-models-graphcast)
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting climetlab<=0.18.6,>=0.17.1 (from ai-models>=0.2.3->ai-models-graphcast)
Using cached climetlab-0.18.6.tar.gz (195 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting multiurl (from ai-models>=0.2.3->ai-models-graphcast)
Using cached multiurl-<IP_ADDRESS>.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of ai-models to determine which version is compatible with other requirements. This could take a while.
Collecting ai-models>=0.2.3 (from ai-models-graphcast)
Using cached ai-models-0.2.14.tar.gz (20 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting climetlab>=0.17.1 (from ai-models>=0.2.3->ai-models-graphcast)
Using cached climetlab-0.19.0.tar.gz (177 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting ai-models>=0.2.3 (from ai-models-graphcast)
Using cached ai-models-0.2.13.tar.gz (20 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.11.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.10.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.9.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.8.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.7.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: pip is still looking at multiple versions of ai-models to determine which version is compatible with other requirements. This could take a while.
Using cached ai-models-0.2.6.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.5.tar.gz (19 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached ai-models-0.2.3.tar.gz (18 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting ai-models-graphcast
Using cached ai-models-graphcast-0.0.3.tar.gz (11 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Using cached ai-models-graphcast-0.0.2.tar.gz (11 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
ai-models-graphcast depends on earthkit-meteo@ git+https://github.com/ecmwf/earthkit-meteo.git@48deab9#egg=earthkit-meteo

This has been addressed with recent releases of earthkit.data.


Provide a switch to report examples with non-explicitly defined properties

This is a request to provide a switch to allow the reporting of non-explicitly defined properties in an example in a Swagger definition when additionalProperties: false is not present.
For example, in the attached sample API, lines 79-81 contain the fields documentType, documentStatus and documentDetails in an example - these fields are not explicitly defined in the API. When this file is validated with openapi-enforcer then the fields are correctly reported as invalid because the additionalProperties: false is defined on line 107.
However, most of our APIs do not define the additionalProperties keyword and we would like to be able to report when the examples become out of synch with the explicitly defined properties. Hence, if additionalProperties: false is removed from line 107 then it would be great if openapi-enforcer could provide a warning that the example fields might be out of synch with the schema. Is this possible?
Note that this request is similar to this recent comment on additionalProperties behaviour.

Attached file - swagger.txt

Hello @phillim1 and thanks for the issue. I think you're right that it is important to add this as a warning.
Looking at the current code I could make it so that a warning is always shown for examples that have additional properties, but there are a few potential hurdles:

The only way to allow you to turn this on or off without it being a significant amount of work updating the library is to create a global configuration option. I might do that.
There will be cases when using a discriminator or allOf will cause the warning to appear even when all properties are defined via the additional schemas.

As an example, take these components:
components:
  schemas:
    Cat:
      allOf:
      - "$ref": "#/components/schemas/Pet"
      - type: object
        properties:
          birthDate:
            type: string
            format: date
          huntingSkill:
            type: string
    Pet:
      type: object
      required:
      - petType
      discriminator:
        propertyName: petType
        mapping:
          dog: Dog
          cat: "#/components/schemas/Cat"
      properties:
        petType:
          type: string
      example:
        petType: cat
        birthDate: '2000-01-01'
        huntingSkill: stealth

The example is on the Pet schema, but the warning would produce something like this:
One or more warnings exist in the OpenApi definition
  at: components > schemas > Cat > allOf > 0 > example
    Invalid value
      at: birthDate
        Property is an additional property
      at: huntingSkill
        Property is an additional property
      Did not validate against all schemas
        at: 1 > petType
          Property is an additional property

Also, I'd like to mention that version 2 of this library is making a lot of progress. I can add this functionality to that library without too much work and there is also significantly more control over managing errors and warnings global and on a case-by-case basis. I'm looking forward to having that complete as it will also bring browser support, TypeScript types, and more. 🎉
After having explained the two hurdles, what thoughts do you have?

I wanted to provide a second example where I put the example in the Cat instead of the Pet.
components:
  schemas:
    Cat:
      allOf:
      - "$ref": "#/components/schemas/Pet"
      - type: object
        properties:
          birthDate:
            type: string
            format: date
          huntingSkill:
            type: string
        example:
          petType: cat
          birthDate: '2000-01-01'
          huntingSkill: stealth
    Pet:
      type: object
      required:
      - petType
      discriminator:
        propertyName: petType
        mapping:
          dog: Dog
          cat: "#/components/schemas/Cat"
      properties:
        petType:
          type: string

Warning:
One or more warnings exist in the OpenApi definition
  at: components > schemas > Cat > allOf > 1 > example
    Invalid value
      at: petType
        Property is an additional property

Thanks for the speedy response and analysis.
Despite the allOf/discriminator issue, it would still be useful to us to have the global option (maybe flagged as an 'experimental' option) to find examples that are out of sync with the explicitly defined properties regardless of additionalProperties settings.
Typically our APIs use example at field level, however, we are beginning to define more examples in newer APIs for use with mock servers, so reporting out of sync examples is valuable to us even if there are false positives.
If v2 allows specific message overrides based on message context then that would be great since we could set any messages issued as a result of discriminator/allOf from WARN to INFO.
In v2 the line numbers and location relating to an issue would also be useful to us.
Another (probably hopeful!) possibility for v2 would be to provide a diff tool for 2 APIs - at the moment we use this tool - https://github.com/Azure/openapi-diff - but we would like to switch partly because it doesn't support OAS3.

I will add the global option to toggle the warning for additionalProperties.
As for location, line numbers, and position, those are implemented and working in v2, so that is good news.
I'll take a look at the diff tool, but is there anything specifically that you're looking for it to do? Do you care about comparing structures or the order of defined items? Also, it's possible that the diff tool may be outside the scope of the enforcer, but it wouldn't be hard to build a package on the side that did that.

We use the diff tool in our API build pipelines to compare the modified version of the API with the currently deployed version of the API and if the diff tool issues Errors then the build fails.
The diff tool produces a report with Errors, e.g. adding a required parameter, and Warnings, e.g. adding an optional field. The list of possible issues are on this page. Note that the message severity depends on the context of the issue e.g. whether versions have changed, whether the field is in a request or response etc.
When we believe the tool has not functioned correctly, we allow Errors to be overridden using a file specific to an API that specifies which messages (with context) can be overridden.
Hence our diff requirements derive from the capabilities offered by the diff tool.

This feature has been published to NPM as version 1.17.0. There isn't really anything you need to change to make this work, it will simply show up as a warning now.
To turn it off refer to this page in the docs: https://openapi-enforcer.com/api/#enforcer-config


Lean crc executable

The downloaded crc executable (v1.2) is<PHONE_NUMBER> bytes! I suspect it has quite a few artifacts inside needed for (and only for crc setup).
Please extend Makefile and add build instructions how to create a lean crc executable without these artifacts (obsolete after crc setup).

The default make target will create what you call a 'lean' executable. You need to use make embed_bundle to generate an executable similar to the one you download.

Not sure about the question if you mean this for development or general distribution?

@gbraad The reply by @cfergeau was totally sufficient (for me). I have intentionally not asked for distribution of a lean crc executable as I see potential for confusion & complication. I just want to be able to build a lean crc executable by (and for) myself.
Maybe the second part of my issue still stands. It would be great if you could add the information given by @cfergeau to developing.adoc (or some other appropriate document), i.e. semantics of make vs. make embed_bundle.

right, we haven't focussed on those parts of the documentation as the process to involve in the development is not that easy. mostly due to the bits not 'easily available' for the cluster image generation.
but we will certainly work on this.
however, the distribution is discussible. we are in dealing with installers in the future to setup the system integration, and in that case the oversized binaries is an unwanted side-effect.
be aware, that make cross is likely a better option to ensure changes word across the board.


Is master branch still needed?

During a fresh checkout, I noticed that master is still around.

See here: https://github.com/github/renaming
Because GitHub has not implemented all of the backwards compatibility features yet, users who use a branch to actions/setup-java@master would break if the branch was deleted right out.

Got it, thanks!


Standalone Tensorflow Projector

Sorry to double open this issue but did not get any answer from StackExchange forum :
http://stackoverflow.com/questions/41643365/standalone-tensorflow-projector
Tensorflow Projector is a great way to visualize a mutli dimensional dataset and I was wondering if you are planning to open source the version running on the web (ie outside tensorboard), so we would be able to visualize any dataset from a simple TSV file (and not only word embedding or other learnt representation from TF)
Thanks

Hi @lhausermann, I published a small script to use the embedding projector only for visualization of your data. https://gist.github.com/Baschdl/e965ba3499bb6e905f92befa7f77bbf2
You must only load the data and define the input variables accordingly.

@Baschdl I guess @lhausermann wants the one like http://projector.tensorflow.org/ but allows you to upload your own data.

@dandelionmane, could you comment on the stackoverflow issue please http://stackoverflow.com/questions/41643365/standalone-tensorflow-projector
however, I am going to close the issue here since it is more of a stackoverflow question I think. Thanks everybody.

I commented on StackOverflow that it has only been released as a TensorBoard plugin.
@dsmilkov would be the person to talk to about releasing a standalone version.

Going to re-open and let @dsmilkov decide if this should be closed or not.

We didn't open source the standalone version, however it's pretty easy to use the existing standalone version with your own data. Just fork https://github.com/tensorflow/embedding-projector-standalone/ and edit the oss_demo_projector_config.json to point to your datasets.

what is the format of the tensors.bytes that the standalone projector seems to use?

@harveyslash The .bytes files are binary files filled with a bunch of 32 bit floating point numbers. You can use a numpy array with dtype=numpy.float32 and tofile to generate them:
vectors = numpy.zeros(vector_shape, dtype=numpy.float32)
vectors.tofile('my_tensors.bytes')

Here's a complete example of exporting spaCy Vocab vectors for use in the standalone projector.
https://github.com/explosion/spaCy/blob/master/examples/vectors_tensorboard_standalone.py


Add optional "groups" attribute to @Valid

At the moment, when using @Valid annotation, there is no way to specify which groups must be validated.  Inspired by the Springs @Validated annotation, my suggestion is to add an optional attribute to @Valid annotation, "groups", where we can define which groups should be validated.

You mean that it lets us define which will be validated? E.g.
class User {
  @Valid(group = Basic.class)
  private Account account;
}
class Account {
  @NotEmpty(group = Basic.class)
  private String name;

  @NotEmpty(group = Advanced.class)
  private String details;
}

It would then validate the account field using the Basic group? That also sounds useful, but as mentioned in in #268, it would also be great if we could specify the groups that must be active for @Valid to be applied at all.
class User {
  @NotEmpty
  private String name;
  @Valid(group = MustValidateAccount.class)
  private Account account;
}
class Account {
  @NotEmpty
  private String name;

  @NotEmpty
  private String details;
}

This would only validate the account field when the user instance is validated with the MustValidateAccount group. For the first use case, I would prefer the name targetGroup instead of group.


Google Font API Key

Hi,
Can you give us a generic one, annoying to have to create a google font project for this to be used :D
Thank you

There is a comment regarding this (inline in the code) - There is a request limit for the font queries of 10000/day and I'm not willing to take a risk of waking up one morning just to notice that there is a $100 bill from google 😀
The font data is included in the package so in order to use google web fonts one does not need the key - it's just for updating the listing. I haven't had the time to take a look into the font loading and I disabled it in the most recent release. Now that I have the base for custom settings view, I can finally start working on otter things 👌

This was patched in the latest v0.7.0 release, in the commit 0b559c20a347f1ae11274e78fdba85259d848022.


Delegation Fee cannot start with 1

The delegation fee field under /wallet/earn is restricted to at least 2, but the code doesn't allow you to enter 1 as the first digit, which prevents values like 10% from being directly entered.

This is fixed with the recent update.