Spyder 3 as an app on Mac

This is not so much an issue as a request for information. If I should sent it elsewhere please let me know.
I see that Spyder 3 is now available as a Mac app with a dmg download. I've previously installed and updated it with condo, but generally, on a Mac, I prefer to use a real app as you can switch to it, or kill (force quit) it, etc, using Mac tools. But with the Mac app the command line tools (like opening a new instance) seem more limited than the one in  ~/anaconda/bin.  Also, does the app store presences in the same place (i.e. .spyder-py3)? Can I use both the app and the version in ~/anaconda/bin?
In summary, what are the differences and pros/cons between the two versions?
Thanks
Geoff

But with the Mac app the command line tools (like opening a new instance) seem more limited than the one in ~/anaconda/bin

Well, you can't open two instances of an application in Mac, so we don't allow that for our app either :-)

does the app store presences in the same place (i.e. .spyder-py3)?

Yes, it does.

Can I use both the app and the version in ~/anaconda/bin?

Yep, you can do that without problems :-)

what are the differences and pros/cons between the two versions?

Our app is completely self contained, i.e. you can't update its contents nor change its Python version.

The app gives you an icon in Mac's dock and also a proper name in the menu bar.

You can do a right-click on several file types on Finder (e.g. Python files) and open them directly in the Spyder app.

Our app doesn't use optimized (i.e. mkl enabled) versions of Numpy, Pandas, etc. It's purpose is to facilitate installation, mostly for Python courses that use Spyder. Although you can also use it (as many people does :-) to start Spyder as a proper app, but using your anaconda installation to run computations. For that you need to change your Python interpreter to point to ~/anaconda/bin/python in
Tools > Preferences > Python interpreter

Since this is not a proper Spyder bug, I'm closing this issue, but feel free to post more comments here if you have any doubts. I'll respond to them :-)

Thanks, that's very  helpful :) Answers my questions, except for a couple that may be different.

When I start the app, then after switching the interpretor to ~/anaconda/bin using preferences (not in tools -> preferences btw)   it says I don't have the ipykernel installed, so it can't do anything, and it wants me to install it with conda or pip.  I will actually likely revert to use the unix version.

When I go back to the ~/anaconda/bin version it gives me an error on startup:
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
and the kernel dies and restarts in the ipython console.   It works fine after that. This might be related to having moved to OS Sierra at  about the same time as I upgraded Spyder, not sure.

I will actually likely revert to use the unix version

I don't understand what you mean by this.

[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0

This seems to be a simple warning :-)

By unix version I just meant the version of Spyder  in ~/anaconda/bin, which works fine after the hiccup on starting. Not good terminology I know!

it says I don't have the ipykernel installed

Please be sure that you have ipykernel installed in your Anaconda installation.

I will actually likely revert to use the unix version

Please select the default interpreter again and start the Anaconda Spyder instead of our app.

Actually, I have the same ipykernel error on startup when selecting the Anaconda python interpreter. However, I do have ipykernel installed...


Update #drawer .steps overflow-x to auto

Fixes #226

This PR was created accidentally to the wrong repo.


what is ref

in the run_pipeline.py scripts, and others, I don't know what is the ref mean, I need another video as a reference? I try not set the param, but i don't get the offset txt, I don't know if it is beacause I don't set the ref

Same question, I didn't even see this stupid file “$DATA_DIR/pywork/$REFERENCE/offsets.txt - audio-video offset values”

It just refers to video unique ID.


Rain gauge information from Wunderground

Thanks for the excellent plugin.  Is the rain gauge feature of PWS supported in the Wunderground plugin?  Otherwise, is it supported in OpenWeatherMap?

I cannot add new features to the wunderground service, because I cant access the api without owning a pws. I will add the rain gauge feature to owm in the next version: #111

I can give you access to mine... is there a way to pm?

I want to be able to use triggers or conditions to water or not water based on current and/or previous day(s) precipitation.
One thought:

accumulate days = 0 none only current, 1-7 save the precipitation for each day on the pi if the api does not give you access. When current precipitation > api returned precipitation assume a change in day. You could add current precipitation > api AND 23:40:00 has passed since last recorded day
Threshold = x mm or inches;
OnToOff = true; Default is off to on

Added rain information to OWM in latest beta. You can install the beta with:
npm install -g homebridge-weather-plus@beta

You can have two stations in the plugin (one for your PWS and one for OWM). See: https://github.com/naofireblade/homebridge-weather-plus#multiple-stations-configuration

Im trying to do the same thing.  When I add the OWM station, it never shows up in home app.  The WU station does.
{             "units": "us",             "interval": 5,             "stations": [                 {                     "nameNow": "WU Data",                     "service": "weatherunderground",                     "key": "REDACTED",                     "stationId": "REDACTED",                     "language": "en",                     "compatibility": "home",                     "conditionCategory": "simple",                     "now": true,                     "extraHumidity": false                 },                 {                     "nameForecast": "Open Weather",                     "service": "openweathermap",                     "key": "REDACTED",                     "locationCity": "REDACTED, US",                     "language": "en",                     "compatibility": "home",                     "conditionCategory": "simple",                     "now": false,                     "forcast": [                         0                     ],                     "extraHumidity": false                 }             ],             "platform": "WeatherPlus"         }
Any ideas?

I found my issues.  Still struggling trying to get rain so far today and rain forcasted.  Have forcasted rain from OWM but cant get rain so far anywhere.

I have verified that Rain and Rain Last Hour are both working correctly for current conditions with OWM service.
Checking the code for Weather Underground, I see that it does not support Rain in current conditions. Let me fix this.


[Snyk] Security upgrade babel-jest from 24.9.0 to 27.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

integration/package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

658/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-SEMVER-3247795
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: babel-jest
    The new version differs by 250 commits.

be16e47 v27.0.0
63102ec chore: update changelog for release
564694a docs(blog): Jest 27 blog post (#11131)
b68d91b feat(pretty-print): add option `printBasicPrototype` (#11441)
2226742 chore: minor simplify format results error (#11432)
78eb25d chore: remove needless assign (#11433)
696c455 chore: update lockfile after publish
e2eb9ae v27.0.0-next.11
3b253f8 Wait for closed resources to actually close before detecting open handles (#11429)
27bee72 fix: run GC before collecting open handles (#11278)
50451df feat: use fallback if prettier not found (#11400)
150dbd8 chore: update lockfile after publish
6f44529 v27.0.0-next.10
cbcec7d Upgrade fsevents in jest-haste-map (#11428)
9633a26 feat: support reporters written in ESM (#11427)
59f42d8 fix: do not cache modules that throw during evaluation (#11263)
57e32e9 Detect open handles with done callbacks (#11382)
a397607 Document and test dontThrow for custom inline snapshot matchers (#10995)
4fa3a0b feat: custom haste (#11107)
2047a36 chore: bump deps (#11419)
a4358d6 chore: run prettier on changelog
bdd6282 Move all default values into `jest-config` (#9924)
db643a1 Link to Jest config (#11106)
b16082c Fix locale issue #10014 (#11412)

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.05%) to 75.447%

Files with Coverage Reduction
New Missed Lines
%

codegen/config/binder.go
2
75.0%

codegen/object.go
2
61.9%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
6207

Relevant Lines:
8227

💛  - Coveralls


Creating web-component with vitejs

Is your feature request related to a problem? Please describe.
Hi i try creating a web-component from the generated sfc file:
i run in the following issues:
App.vue is not able to have params.
Component have no styles
Bundler doesnt provide the outputformat
Describe the solution you'd like
i would have something like in the vue-cli target webc ...
i must be possible to set inline styles for using the shadow-dom
Describe alternatives you've considered
create a own small script in the main.js
import { createApp } from 'vue'
import App from './App.vue';
import './index.scss';
const components = document.getElementsByTagName('my-app');
for(let i = 0; i < components.length;i++) {
  const element = components[i];
  const style = window.getComputedStyle(element);
  const inlineStyle = document.createElement('style');
  inlineStyle.textContent = style;
  element.attachShadow({mode: 'open'});

  element.shadowRoot.appendChild(inlineStyle);
  createApp(App).mount(element.shadowRoot);
}

Additional context
thanks for this wonderful web dev build tool we from the mercedes-benz.io seamless-web initiative really happy about it.
If help is needed here we are happy to support you actively

Is this about making a component library or making an app? Vite is designed for the latter and not the former.

calling createApp each time code finds my-app tag in real DOM...
you might want to find out about shadow dom and vue
https://stackoverflow.com/questions/46879782/how-to-get-vue-to-work-in-shadow-dom
Also you may want to check your shadowRoot.appendChild...
My code on web component creation for your reference. But frankly, difficult to see what you are trying to achieve and it looks not to be the right way... (please correct me if I am wrong on this).
const template = document.createElement('template')
template.innerHTML = `
<style>
canvas {
  background-color: var(--vcxwc-sign-pad-background-color, #ddd);
}
</style>
<canvas id="canvas"></canvas>
`
class SignPad extends HTMLElement {
  constructor() {
    super()
    const shadowRoot = this.attachShadow({mode: 'open'})
    shadowRoot.appendChild(template.content.cloneNode(true))

Hi @intrnl sorry for delay,
We try using multiple webcomponents in frontend as a vertical system. It could be a simple web-component and also a ui library but the ui library would be handled as a sfc in the webcomponent.
@ais-one thx for the hint

2.0 supports building custom entry as a lib. https://vitejs.dev/guide/build.html#library-mode

2.0 supports building custom entry as a lib. https://vitejs.dev/guide/build.html#library-mode

@yyx990803 not sure if i understood what does this helps to create a webcomponent with a shadow-dom can you explain please

@yyx990803 not sure if i understood what does this helps to create a webcomponent with a shadow-dom can you explain please

The library mode is not enough for building a web-component based project, think about this situation:
A project includes multiple pages and some custom elements, we want to dev or build the project, so we need to

mark some files as web-component entry point ( which is possible by set "build.rollupOptions.input" )
configure web-component entries to inject css into ShadowRoot ( like the vue-loader shadowMode which is IMPOSSIBLE now because the @vitejs/plugin-vue doesn't support it yet )

@DrMabuse23 Am I right?

I'm also interested in a way to build web-components with Shadow DOM support in Vite.

We are also thinking about switching from gridsome to vite for our tiptap docs. We provide many (50+) interactive demos (JS/Vue/React) which should not affected by the styling of the doc pages and vice versa. Shadow DOM would be a great way to encapsulate these demos.


Unity SDK fails when run on tvOS

The following error occurs when running the app:
UnauthorizedAccessException: Access to the path "/Parse.settings" is denied.
at System.IO.MonoIO.GetFileType (IntPtr handle, MonoIOError& error) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in :0
at Parse.PlatformHooks+SettingsWrapper.Save () [0x00000] in :0
at Parse.PlatformHooks+SettingsWrapper.get_Wrapper () [0x00000] in :0
at Parse.PlatformHooks.Initialize () [0x00000] in :0
at Parse.ParseClient.Initialize (System.String applicationId, System.String dotnetKey) [0x00000] in :0
at Parse.ParseInitializeBehaviour.Initialize () [0x00000] in :0
at Parse.ParseInitializeBehaviour.Awake () [0x00000] in :0
at Boo.Lang.GenericGeneratorEnumerator1[T].MoveNext () [0x00000] in <filename unknown>:0    at Boo.Lang.GenericGeneratorEnumerator1[T].MoveNext () [0x00000] in :0

Thanks for the report! Seeing as tvOS is still currently in beta, it's not currently one of our supported platforms, yet.
We will keep this issue open for when we do support tvOS, though.

Ran into the same thing ... would love to ship my Unity Apple Tv game with parse support! If you need more information that helps tackle this issue / new platform just say the word ;)

Yes please! Would be nice to be able to use a parse backend for tvOS applications that we plan on releasing near launch of AppleTV

I'll recreate an issue to check for current support of Apple TV (tvOS) support of the SDK.
I cannot find any explicit reference for implementing support in the past but I assume that the recent changes would allow it it work as on any other platform.
Until then I would ask anyone who encounters issue to re-evaluate them with the latest SDK and provide additional information, feel free to reopen this issue in case you did so.


⚠ Cioos National CKAN has degraded performance

In c0c46ae, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 7285 ms

Resolved: Cioos National CKAN performance has improved in 2989f2c after 5 minutes.


Adjust user-signed Transaction Handling according to new API

Is your feature request related to a problem? Please describe.
Handling is quite complicated, consumer has to manually cast types.
Describe the solution you'd like
Provide specific API signature as defined in API-doc.
Describe alternatives you've considered
Provide multiple "submitSigned.." -Methods for all kinds of inputs

blocked unti https://github.com/upb-uc4/api/issues/70 is resolved


Fix bugs in provenance implementation for materials.digest

Makes the following fixes:

Replaces the revision key with sha1 for git commits
uses the SPDX download locaton format for specifying the git URI

fixes https://github.com/tektoncd/chains/issues/309

/lgtm

/approve


UCP article not showing in TOC

File: datacenter/ucp/2.2/guides/admin/configure/external-auth/enable-ldap-config-file.md
This is not showing up in the TOC

This one is weird, because the topic shows up in the TOC, but when you click, the topic loads but the TOC breaks.

It seems we're missing a / at the end of the TOC entry 😂. I've put a PR with that change ^^

D'oh, thanks!

Fixed!


ext_authz: Format authorization request headers to add

This allows adding request headers for authorization requests using patterns that are parseable by headers parser, hence the resulting authorization request carries the formatted headers (inferred from stream_info of that request).
Risk Level: Low
Testing: Unit
Docs Changes: N/A
Release Notes: N/A
Fixes #9980
Signed-off-by: Dhi Aurrahman<EMAIL_ADDRESS>

cc. @snowp

@snowp, thanks for your review. Sorry, anything else I need to fix?


Could not find a declaration file for module 'whisper-node'.

Following the instructions in the Readme, I get:
╰─(base) ⠠⠵ ts-node src/process_scenes.ts --node                                                                                on master↑1|✚16…17
Error preparing scenes: src/lib/Bark.ts:5:32 - error TS7016: Could not find a declaration file for module 'whisper-node'. '/home/arthur/dev/ai/manga/node_modules/whisper-node/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/whisper-node` if it exists or add a new declaration (.d.ts) file containing `declare module 'whisper-node';`

5 import whisper            from 'whisper-node';
                                 ~~~~~~~~~~~~~~

I tried npm i --save-dev @types/whisper-node and got nothing more.
Any ideas?
Thanks.
PS: My tsconfig in case it's relevant:
{
  "compilerOptions": {

    "strict": true,
    "noImplicitAny": true,

    "target": "es6",
    "module": "commonjs",
    "moduleResolution": "node",
    "esModuleInterop": true,
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    },
  }
}

PS:  doing:
// @ts-ignore
import whisper            from 'whisper-node';

solves the problem temporarily, but I'd really like a "clean" way out.
then when I am able to run it I have another problem:
/ram/runner/bark-text-reader-2ksgcnjtjt6//example.wav
[whisper-node] Transcribing: /ram/runner/bark-text-reader-2ksgcnjtjt6//example.wav

[whisper-node] No 'modelName' or 'modelPath' provided. Trying default model: base.en

[whisper-node] Problem: TypeError: Cannot read properties of null (reading 'shift')
    at parseTranscript (/home/arthur/dev/ai/manga/node_modules/whisper-node/src/tsToArray.ts:12:9)
    at /home/arthur/dev/ai/manga/node_modules/whisper-node/src/index.ts:35:46
    at Generator.next (<anonymous>)
    at fulfilled (/home/arthur/dev/ai/manga/node_modules/whisper-node/dist/index.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
undefined

Not sure about the original error.
But with regards to the last problem, it seems it's related to the file path provided to whisper.
Here's the comment that pointed that out, also providing the fix.
https://github.com/ariym/whisper-node/issues/36#issuecomment-1930900113
Also noticed that in your case you have:
Transcribing: /ram/runner/bark-text-reader-2ksgcnjtjt6//example.wav
And //example.wav part with a double slash doesn't look right.

Hi, regarding the first error, the project does not provide type declaration files.
You can create your own declaration, somewhere in you project (for example src/typing/whisper-node.d.ts) with following content:
declare module 'whisper-node' {
    export type IShellOptions = {
        silent: boolean // true: won't print to console
        async: boolean
    }

    export type IOptions = {
        modelName?: string // name of model stored in node_modules/whisper-node/lib/whisper.cpp/models
        modelPath?: string // custom path for model
        whisperOptions?: IFlagTypes
        shellOptions?: IShellOptions
    }

    export type IFlagTypes = {
        gen_file_txt?: boolean
        gen_file_subtitle?: boolean
        gen_file_vtt?: boolean
        timestamp_size?: number
        word_timestamps?: boolean
        language?: string
    }

    export type ITranscriptLine = {
        start: string
        end: string
        speech: string
    }

    export function whisper(filePath: string, options?: IOptions): Promise<ITranscriptLine[]>
}

I could create a PR, exporting type declarations from original code, but I can't see any CI/CD related config in the project


Update Python Client - c3d7051

(This PR was generated by a GitHub action)

Haha, looks like it's stuck in a loop, merging this will cause another PR to get opened. 😅
Not a huge deal for now but I think we need to set a directory match for this. It should only need to generate this PR if a change is made to the dj/ directory.


IBMNotAuthorizedError: 'You are not authorized to upload programs.'  when  "import sys" or "import os"

Describe the bug
Message IBMNotAuthorizedError: 'You are not authorized to upload programs.' when uploading a runtime code containing one of the  statements here below.  Even though commented
import sys
import os
# import sys
# import os

Steps to reproduce
add "import os" or "import sys" to the python code and upload it. You'll get the error
----> 8 program_id = service.upload_program(
      9     data=program_data,
     10     metadata=program_json )
     11 print(provider.runtime.program(program_id))

File ~\.conda\envs\qiskit-0.39.x\lib\site-packages\qiskit_ibm_runtime\qiskit_runtime_service.py:1091, in QiskitRuntimeService.upload_program(self, data, metadata)
   1087         raise RuntimeDuplicateProgramError(
   1088             "Program with the same name already exists."
   1089         ) from None
   1090     if ex.status_code == 403:
-> 1091         raise IBMNotAuthorizedError(
   1092             "You are not authorized to upload programs."
   1093         ) from None
   1094     raise IBMRuntimeError(f"Failed to create program: {ex}") from None
   1095 return response["id"]

IBMNotAuthorizedError: 'You are not authorized to upload programs.'

Expected behavior
Suggested solutions
Additional Information

qiskit-ibm-runtime version: 0.8.0
Python version: 3.10.6
Operating system: WIN11

Just to clarify, you can upload programs when "import sys" and "import os" are removed?

Looks like @patdenim needs the custom-programs role to skip validation. @daka1510 How was the transition done for existing users? At least I did not get the custom-programs role automatically and had to request it.

@kt474 Yes, when the statement import sys or import os is removed then i can upload a program

@rathishcholarajan As i successfully upload custom programs if i remove any statement "import os" or "import sys"  from the python script, i guess i already have the custom-programs role assigned,  haven't i  !!


Fatal error: Uncaught Error: Call to undefined function Timmy\add_action()

Hey guys,
Love your work. I'm having trouble getting Timmy working on my installation.
I have installed Timmy and Timber both via Composer, the latest versions of both.
In function.php I have the autoloader set, however it seems Timmy is loaded before the wp functions are available?
Here's the full error:

( ! ) Fatal error: Uncaught Error: Call to undefined function Timmy\add_action() in /Users/nick/Sites/xx/vendor/mindkomm/timmy/lib/Timmy.php on line 19
( ! ) Error: Call to undefined function Timmy\add_action() in /Users/nick/Sites/xx/vendor/mindkomm/timmy/lib/Timmy.php on line 19
Call Stack
#	Time	Memory	Function	Location
1	0.0001	370528	{main}( )	.../index.php:0
2	0.0001	370816	require( '/Users/nick/Sites/xx/www/wp/wp-blog-header.php' )	.../index.php:5
3	0.0001	371168	require_once( '/Users/nick/Sites/xx/www/wp/wp-load.php' )	.../wp-blog-header.php:13
4	0.0002	371944	require_once( '/Users/nick/Sites/xx/www/wp-config.php' )	.../wp-load.php:42
5	0.0002	373712	require_once( '/Users/nick/Sites/xx/vendor/autoload.php' )	.../wp-config.php:7
6	0.0004	389808	ComposerAutoloaderInit89b2a1fa8ec074114b3ea6f13e74d114::getLoader( )	.../autoload.php:7
7	0.0015	579048	composerRequire89b2a1fa8ec074114b3ea6f13e74d114( )	.../autoload_real.php:56
8	0.0015	579720	require( '/Users/nick/Sites/xx/vendor/mindkomm/timmy/init.php' )	.../autoload_real.php:66
9	0.0021	667432	Timmy\Timmy->__construct( )	.../init.php:7
10	0.0028	780264	Timmy\Timmy->init( )	.../Timmy.php:13

Hey @njbarrett
It seems like PHP is trying to call the function add_action() in Timmy’s namespace (Timmy\add_action()) instead of the global namespace, where all the functions of WordPress are. Timmy waits for WordPress to be loaded and hooks into the after_setup_theme action. The easiest solution would of course be to prefix all global functions that Timmy calls with a \, but I’d like to understand what’s going on. I suspect the problem lies somewhere else.

What version of PHP are you using?
Where did you install Timber and Timmy? Did you install it inside the theme or the in the root of your WordPress installation.
Do you use the default WordPress installation/folder structure or a custom one (like Bedrock, for example)? From the call stack I see that your Composer libraries lie in vendor/, while WordPress is installed in www/wp/?

I'm having the same issue
Using PHP version 7.1
TImmy is installed in vendor folder in root directory
by using bedrock as a custom folder structure
with sage9 as a starter theme

Okay. I will install Bedrock and look at this more closely.

Alright. The problem was that Composer loaded init.php, which automatically initialized Timmy. Usually, when Timmy was installed in a theme, a developer would manually require vendor/autoload.php in functions.php and Timmy would initialize after WordPress was loaded. With Bedrock, Composer initializes earlier, when WordPress is not loaded yet. The workaround for this is to always initialize Timmy manually.
With the new version 0.12.1 you need to manually initialize Timmy in functions.php of your theme with:
new Timmy\Timmy();

You can add this right after you called new Timber\Timber();.
Thanks for raising this issue. I think this way Timmy will work in most "special" environments. Initializing Timmy automatically maybe was a good idea when I introduced it. I learnt a lot in the meantime and I think this change is the better way to do it 😊.
I’m closing this for now. In case it shouldn’t work, add your comments here.


Linux TLS security updates

Fixes #21743
Thanks @NavitaireSecurity! :rocket:
Internal Review Topics (link to section):

Nginx
Apache

Notes:

I'll try to harden this by going with TLSv1.3 (out since 2018, Can I use: TLSv1.3). I cross-link to the mozilla ssl tool, so devs can get a different (earlier, TLSv1.2) config there.
I think we need a WARNING for this pair of sections. IMO, MS shouldn't take on responsibility for accurate, one-size-fits-all security config of third-party products. I draft wording, so let's improve from there. Ask Barry for feedback?
⚠ Due to my lack of familiarity with Linux security scenarios, I can't really say if this is exactly right, even in the general sense. This is the best that I can piece together from Nginx and Apache docs. I haven't tested these updates. In the Apache case, their docs are out of date, too.
I don't see ciphers included in the output of the mozilla config tool. I read that there are vastly fewer ciphers now, and I guess they're available by default without configuration: (UPDATE: Confirmed! At least three of them are by-default, and no config is required to use them.)

TLS_AES_256_GCM_SHA384
TLS_CHACHA20_POLY1305_SHA256
TLS_AES_128_GCM_SHA256
TLS_AES_128_CCM_8_SHA256
TLS_AES_128_CCM_SHA256

I cannot - I don't know nginx or apache rules.

I'll re-work this PR based on backward compat (i.e., 1.2) tomorrow morning with the mozilla configuration tool set to "Intermediate" configuration.
... and I see now where those settings rolled in OCSP and the header ...

@shirhatti @blowdart @Tratcher ... Latest updates apply your feedback. Ready for :eyes:.


Why do NaN exist in metrics ？

Why do NaN exist in metrics ？Is it because you didn't make some judgment that zero can't be the denominator？I am looking forward to your reply

Similar code exists in the source code：“
if num_statements:
score = faithful_statements / num_statements
else:
score = np.nan ”


Fix UI unit tests

What does this PR do?

Motivation

This PR should close #10640
More

[x] Added/updated tests
[x] Added/updated documentation

Additional Notes

Fix for #10640

Hello @framebassman,
Thank you for your contribution.
Before moving forward, I'd like to have @gndz07 and @mdeliatf's opinions.
They are working as front-end developers at Traefik Labs and will have more relevant input than mine 😅

@nmengin btw I think that these chages could be delivered to v2.11 branch without any issues cause the diff is the same. What do you think?

cc @ldez to the previous comment

Hey @framebassman,

I think that these chages could be delivered to v2.11 branch

As it's only tests changes I guess you are right.
If you agree, I'd like to wait for more input from @gndz07 and @mdeliatf before changing the base branch.


Typst PDF building fails in a hard-to-identify way

When you build a PDF with the --typst option, but it fails to build (for example, because typst isn't installed) then the logs still make it seem like the PDF was built even though it wasn't. You still see something like:
🖨 Rendering typst pdf to _build/pdf/report.pdf

It would be easier to debug if we had either a more prominent error message, or an error message that helped the user diagnose what was wrong.
References
Some discussion about this here:

https://discordapp.com/channels/1083088970059096114/1177359316886503464/1220497756129591367

This is fixed with #1033.


Refactor states plotting

Pull Request doc
Purpose
Break the function plotting states on a figure into several functions. Each function has a single responsibility:

Plot borders
Color states
Create tooltips
Add legend

Closes #305
What the code is doing
Create functions that operate on region (states) on abokeh figure
Testing
Run tests and notebooks
Where to look
The postreise.plot.plot_states module. We just use the new functions in the other files.
Usage Example/Visuals
How the code can be used and/or images of any graphs, tables or other visuals (not always applicable).
Time estimate
15min

I have improved this PR by:

creating a postreise.plot.check module that encloses function that ensure that keyword arguments that are passed to a user facing function are valid
testing this function
using this function in the user facing functions building maps


Implement approveExchangeOnBehalf

Timeframe: By token launch

Replace approve with approveExchangeOnBehalf

Because of how the new ExchangerProxy works we can no longer use regular "approvals" in Kwenta's UI. We have to call approveExchangeOnBehalf on DelegateApprovals.

Trading rewards are now calculated off chain so not relevant anymore


Do we need to set kafka autocommit to false [Question]

In librdkafka, autocommit is set to true by default.
Shouldn't we set it to false?
https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md

We do:
https://github.com/quickwit-inc/quickwit/blob/main/quickwit-indexing/src/source/kafka_source.rs#L357
From our docs:

Note that the Kafka source manages commit offsets manually thanks to Quickwit’s index checkpoint mechanism and always disables auto-commit.

See also:

Manual Partition Assignment
Storing Offsets Outside Kafka

Each record comes with its own offset, so to manage your own offset you just need to do the following:
Configure enable.auto.commit=false
Use the offset provided with each ConsumerRecord to save your position.
On restart restore the position of the consumer using seek(TopicPartition, long).

https://kafka.apache.org/28/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html

Awesome!


[Feature Request]: Adding some description below logo in footer

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
description
Use Case
it looks nice
Benefits

Add ScreenShots
No response
Priority
Low
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

make sure it is responsive and maybe you can hide it on smaller devices


Outlive (incorrect version of DirectX)

Hi there again,
Tested another game of mine. It's a DirectX 7.0 game (no D3D7). Tested it in my Win2000 VM already, it sstarts without your DLL.
When i start with your DLL, the game it says "Incorrect version of DirectX". Would be cool if i could use your DLL, for the scaling feature :-)

Ah, that one is using a com objects instead of loading ddraw.dll directly so we have to trick the game to inject it via another dll (renamed ddraw.dll to dinput.dll)
cnc-ddraw.zip

Nice, works! Look amazing with OpenGL Upscale. I more and more like your work on this DLL. Thumbs up!


itoa::Integer trait bounds

The Integer trait should probably have some bounds making to more convenient to use in generic code. I suggest adding at least Sized, Clone and Copy. We could also add math ops traits, but if you need this you should probably be using the num crate. For the other traits implemented by integers, I don’t know. The std::fmt traits might make sense, but they are not no-std if we want support that later.

Can you give an example of generic code you would want to write where this would be helpful?

Base10 serialization with generic integers widths. You would write your generic serializing function on top of iota::Integer::write, but you might need the integer to be Sized or Copy to do what you want. If Integer was Sized, you wouldn’t need to add the bound yourself. I don’t see any harm in adding bounds, the trait is only supposed to be implemented by integers.


Cannot read properties of undefined (reading 'reduce') at aV._getPrivilegesWithDependencies

PHP Version: 8.2   | Shopware Version: <IP_ADDRESS>  | Affected area / extension: Platform(Default)

Expected behaviour:
View and edit/save user roles
Actual behaviour:
Can't view and save the user roles
How to reproduce:
Create a role and add privileges in Backend.
privileges:
https://pastebin.com/vYY9hHQf

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39166
[created from NEXT-39166, comment 505461]

[public]Thank you for your report. Unfortunately, we are not able to reproduce this issue with the given information so far. However, based on the privileges you've provided us, we can see, that you are using privileges, that do not exist by default, which leads us to the assumption, that there might be third party extensions installed, which add new privileges and maybe one of them could be the root cause for this issue.
[created from NEXT-39166, comment 505850]


Nav bar updated to use the same as index.html, file paths fixed

quick fix to file paths in the navigation bar in contributors.html and curriculum.html as well. The last file paths were broken, now we go up a level in the directory to access index.html.

@michaella23 accepted the formatting but kept the index.html file paths to keep the links to the home page working. While I think single line 's are easier to read, I defiantly get nesting the  and fully accept I'm probably in the minority there haha.

Thank you for working with me on this @Samcraig77 !


Termination and withdrawal events - make the phase complete

Overview
When making all the phases inactive, make sure

set the phase completed
check the days left in the accordion

How to check

Create any work
Add "Project Withdrawal" in any phase
Check if the work terminates
Check the phase accordions for the days left fields


Faces list contains indices for the raw parsed vertices, not interleaved (repeated) vertices

With the test object:
o Simple
v 1.0 2.0 3.0
v 3.0 5.0 6.0
v 7.0 8.0 9.0
vt 0.0 1.0
vt 1.0  0.0
vt 0.0 0.0
vn 0.0 0.0 1.0
f 2/3/1 1/2/1 3/1/1
f 2/1/1 1/3/1 3/2/1

The interleaved array of vertices is generated correctly:
[0.0, 0.0, 0.0, 0.0, 1.0, 3.0, 5.0, 6.0]
[1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 2.0, 3.0]
[0.0, 1.0, 0.0, 0.0, 1.0, 7.0, 8.0, 9.0]
[0.0, 1.0, 0.0, 0.0, 1.0, 3.0, 5.0, 6.0]
[0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 2.0, 3.0]
[1.0, 0.0, 0.0, 0.0, 1.0, 7.0, 8.0, 9.0]

The faces reported with scene.mesh_list[0].faces are:
[[1, 0, 2], [1, 0, 2]]

meaning that they don't index the interleaved array, because the second face should be [4, 3, 5]
Any ideas how to achieve interleaved indexing, without it I cannot render in OpenGL using glDrawElements by pushing the interleaved array into a VBO, and faces into an EBO (index buffer)

Just draw with glDrawArrays. The obj format is so obscure you can't really do index buffer in all cases. If you have an obj file with one object that could be fine.

Thanks for pointing that out, glDrawArrays works. Yet for the lack of a Python library that would make an index array from OBJ, I ended up implementing a simple OBJ parser myself. At least for a 1 object per file, that works fine indeed, and save about 15% of GPU memory

Yup. That should work ok for single object file. The problem with multi-object files is that a face can reference a vertex index in a previous object. The index is global for the entire file.
This library also create gltf-like version of the obj file when you use cache=True option. It creates a json file referring to locations in a data file. You can then just dump the bytes into a buffer and draw with glDrawArrays. Loading the object(s) will be near instant.


remove providerName check for XDeFi Wallet

Description
Fix to allow onboardJS to connect to XDeFi Wallet if clicked on the 'XDeFi Wallet' option, as currently it recognizes it as MM and doesn't allow the user to connect to it.
Tested it on the onboardJS react-demo-app
Checklist

[ ] The version field in package.json is incremented following semantic versioning
[x] The box that allows repo maintainers to update this PR is checked
[x] I tested locally to make sure this feature/fix works
[ ] This PR passes the Circle CI checks

Unable to find the box that allows repo maintainers to update this PR

@loxator Can you bump version to 1.36.0-0.1.1? Thanks! 👍🏾

Apologize for missing out on that, done now @taylorjdawson !


change wording in nb Explain-regression-local

Describe the bug
When running PFI, comment in nb says:
Note: PFIExplainer does not support local explanations
Should change to say:
Do not run this cell if using PFIExplainer
To Reproduce
Steps to reproduce the behavior:
Run notebook
Expected behavior
More detailed error.
Screenshots
If applicable, add screenshots to help explain your problem.

And add more comments to other cells that will not run successfully if using PFI

fixed with merged PR https://github.com/interpretml/interpret-community/pull/99


Oracle Datable Operator is not available on the Openshift 4.12 Marketplace

Oracle Database Operator for Kubernetes was part of ocp certified operators is available on OCP 4.10 but not on 4.12. I think the OLM needs to be re-certified for 4.12
Found some instructions here:
https://cloud.redhat.com/blog/red-hat-openshift-operator-certification

Hello,
We are looking into certifying Ora-Operator v1.0.0 on OpenShift.


Extract method / function should generate signature with return type

Only exception might be if an artificial return value us used (e.g. {x, y})

This is rather a style choice on our part. we opt out from explicit type annotations if the compiler can figure it out. i understand that users might have different style expectations here. so waiting to hear more user input on this.

If it is a style option then it should be controllable by a setting. We require explicit return types for everything but private stuff (but even there most devs do add return type annotations). So it is simply more work for those devs.
We could also infer this from the function already present in the project. If they mostly carry a  return type we should generate one.

If it is a style option then it should be controllable by a setting

I think this is a good idea and  we should do that.

Related is #18187.

I noticed this in the gif on the v2.5 release notes and came to open an issue. Glad to see you're all on top of this already! :)

What about if adding a return type is a separate refactoring? Then you could add the inferred return type to any function, and it wouldn't require additional configuration. You could even bind that to a keyboard shortcut.

We ended up implementing @azz's suggestion


docs(hub) update session plugin features (2.4.x)

~Note: this plugin does not have a app/_data/extensions/kong-inc/session/versions.yml file~ (edit: versions file was added)

Thanks @tlblessing and @dndx for the reviews. I've applied the suggestions to index.md, the version that this PR actually touched (the other is just a copy).


chore(main): release 0.0.8

:robot: I have created a release beep boop
0.0.8 (2024-02-06)
Other

update validator (48868d8)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/spectrocloud-labs/validator-plugin-azure/releases/tag/v0.0.8 :sunflower:


Bug: insights overview page not responsive to small screens

Describe the bug

This was a screenshot from chrome where the width was about 1000 px. Notice how the buttons on the right spill over and generally, as the screen gets smaller, the entire structure collapses.
Steps to reproduce

Go to https://insights.opensauced.pizza/hub/insights
Create a few insight pages
Make the screen smaller via the dev tools or with the window
Notice the buttons overlap to the right and the structure of the design falls apart

Browsers
Chrome, Firefox
Additional context (Is this in dev or production?)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

@jpmcb I am not able to reproduce the issue. It seems to be working fine on my device.
Is it that width or dimensions I have set are incorrect?

Kindly review the CONTIBUTING.md for information on how to assign yourself to the issue.
🍕

.take

@vedant-z - yeah this still looks to be a problem: 1000px wide seems to make it happen

But it seems it might have to do with the content of each page's title / data:

Here I made one titled "woof" (a very short title) and it does not cause the buttons to spill out or look weird

Closing as part of move to workspaces


Fix Broken Dockerfile and Optimize for Lightweight Build

The existing Dockerfile is currently broken and uses an Ubuntu base image, making it heavier than needed. This pull request:

Fixes the build errors.
Switches to a lightweight python:3.11-alpine base image to reduce image size.

Tested successfully with docker build and docker run.

Great! Thanks :)


maintain the file view after closing coverage

Nice. Thanks
@allcontributors[bot] please add @jsmey for bug


Increase testing

What's new

Correct codecov.yml
Increase testing

Self-checks

[ ] I have prototyped this new feature (if necessary) on Figma
[ ] I'm familiar with and follow this Typescript guideline
[ ] I added unit-tests for new components
[ ] I tried testing edge cases
[ ] I tested the behavior of the components that interact with the backend, with an e2e test

To keep the commits small, I'll continue with more testing on a subsequent PR


Card design on index page

Remove borders
added a carusel if more than two images
font adjustments

@gabicards I added your changes for the search params to my branch bcs of merging conflict


Create a shared scheme to be compatible with Carthage

Create a .xcodeproj with a shared scheme to allow Carthage as a dependency manager

great thanks!


towards v1.0.0

with the intention of moving towards a 1.0.0 stable release I'm opening this issue for anyone to voice their opinions on the behavior and api of the extension.
changes
some of the things I would like to change include:

renaming to showdown-katex: since this is a showdown extension that serves as a bridge to katex, I believe the name change makes it easier to understand what this project is
renaming would also mean that configuration would now be set using showdownKatex.config instead of katex.config. I also don't what to use the katex namespace.
since there is now a way to render things inline (meaning without triple backticks) it might make sense to deprecate them. There's also the option to make the backticks work as a shortcut to displayMode: true

some questions

good inline asciimath delimiters? the syntax I have until now is using single ~ surrounding the asciimath (~ y = mx + b ~). why not single backtick like MathJax? because this is markdown. backticks already mean something in markdown. In fact the single tilde seems just as readable as the single backtick for inline math
is it necessary to have default asciimath in displayMode delimiters? if triple backtick becomes forced displayMode this will not be needed

any input is welcome
@benoit-sbr

Hi again obedm503!
To me the inline rendering support is a big enhancement.
My typical usecase will involve markdown formatted files with the classic $ delimiters used in LaTeX. Do you think these would make good delimiters?

Hi obedm503!
What do you think of the above?
@obedm503


Show code snippet erros in html reports

This PR is realted with #2134
If an exception is found in the code snippet rendering instead to be too smart, or crash, or hide the error this code shows the error to the user like this:

The link opens the github issue form with some pre-filled information:

And github render that information like this:

Problems in this PR:

[ ] I don't know how to get the detekt version to autofill it. Any idea?
[ ] What if the issue is related with a plugin and not with detekt itself? We are saying to the users to report it here. Should we care about this? If we see a spam of issues related with plugins we can remove the link. What do you think?

Codecov Report

Merging #2209 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##             master    #2209     +/-   ##
===========================================
+ Coverage     81.19%   81.29%   +0.1%
  Complexity     2064     2064
===========================================
  Files           340      340
  Lines          5907     5930     +23
  Branches       1076     1075      -1
===========================================
+ Hits           4796     4821     +25
+ Misses          535      534      -1
+ Partials        576      575      -1

Impacted Files
Coverage Δ
Complexity Δ

...n/io/gitlab/arturbosch/detekt/cli/out/HtmlUtils.kt
100% <100%> (+7.14%)
0 <0> (ø)
:arrow_down:

...tlab/arturbosch/detekt/cli/out/HtmlOutputReport.kt
91.93% <100%> (ø)
17 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

whichDetekt() was exactly what I needed. Done, ready to review :).


Add distance in miles to vacancy listing

https://trello.com/c/GlCOMUH3/467-add-in-distance-calculation-function-to-live-site
Changes in this PR:
This PR adds distance to location information on vacancies search page
Screenshots of UI changes:
Before
After
Next steps:

[ ] Terraform deployment required?

[ ] New development configuration to be shared?

 Add in distance calculation function to live site


Add tooltips to all properties of the tile set editor

Fixes #56244

Do you rather want it to be physics_layer_0/polygon_0_one_way?
The tooltips are added through the EditorProperty::set_tooltip method. Maybe EditorInspectorDefaultPlugin::get_editor_for_property should by default add the property name as a tooltip?

Could you squash the two commits into one? See PR workflow.

Thanks!


fix 17289 regression don't show edit and download button when attachment is uploading

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/17289
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests

Go to a chat
Upload an attachment
When it's uploading, verify that both edit and download button are not shown on the context menu

https://github.com/Expensify/App/assets/117511920/cf6e23f9-2402-4403-a890-35754035d1d3

[ ] Verify that no errors appear in the JS console

Offline tests

QA Steps

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

Mobile Web - Chrome

Mobile Web - Safari

Desktop

iOS

Android

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.21-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

QA'd this one on staging, checking off the deploy list:
✅ - Web (Chrome): https://recordit.co/yK6h6d9nnS
✅ - Desktop: https://recordit.co/G2OcE4tnhJ
✅ - mWeb safari:

✅ - iOS native:

✅ - Android native: https://recordit.co/IkbRlbFjr5

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.21-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Carthage build folder ignored in Swift template by default

So I've noticed in the Swift template:
https://www.gitignore.io/api/swift
The Carthage/Build line is added by default. Ignored the builds folder is NOT recommended as when following the steps to install Carthage on their GitHub page it specifically describes how to embed the frameworks into the project by referencing them from inside the builds folder.

Yeah, This Swift file is a symlink to the Objective-C template.  Maybe I should unbundle them or remove the symlink.  The Objective-C template is maintained by GitHub at https://github.com/github/gitignore/blob/master/Objective-C.gitignore.  If you think there should be some changes I would submit a PR to their repo and when I do my next update, the changes will be merged in.

I've been using carthage for a few projects and ignoring the Carthage/Build directory is the correct process.  You don't want to include binaries in your repository which are exactly what are contained in the Carthage/Build folder.  If you download a new project, you should run cartage update  an then all of your links will be correct in your Swift project.


Parallel install: Improve concurrency model

Description
The currently implemented concurrency on the parallel installation works as follows:

It creates a batch of X parallel workers that each install 1 component (being X the configured concurrency).
Wait for all workers to finish.
Create again X workers with 1 component each.
Wait for all workers to finish again.
Repeat

This approach is not effective because:

Faster workers in each batch will be idle waiting for slower ones to finish (e.g. if 1 worker needs 3 min and the rest need 10 seconds, all workers except 1 will be doing nothing for 2min and 50 seconds).
Creating new worker instances over and over is unnecessary.
Arbitrary batches could cause hard to solve bugs.

Proposal
A more effective way would be using the worker pool concurrency model:

Put all components from the component list in a channel
Create X workers all having access to the shared channel and wait for them
Each worker picks a component from the channel and deploys it
When finished it picks up another component from the channel
When channel is empty it means all work is done and worker finishes

This would guarantee that workers are always doing work and the configured concurrency (X) is constantly kept. Additionally workers need to be created only once.
Reasons
Better concurrency giving much faster installation times.
Attachments
See this sample implementation in Go of the worker pool model:
https://gobyexample.com/worker-pools

Overall implementation changes so that this ticket is not applicable anymore


Local Environment Quality of Life Improvement

Motivation

Needed a way to quickly spin up Tom and Jerry nets
Solution

A script that does the above.
PR Checklist

[ ] Added Tests
[ ] Updated Documentation
[ ] Updated CHANGELOG.md for the appropriate package

Rebased & ready!


ebay-menu-button

https://github.com/eBay/ebayui-core/tree/master/src/components/ebay-menu-button
Original eBayUI API compatibility:

[x] DOM structure of the component is preserved
[ ] All original attributes are supported
[x] All original events are triggered

Documentation & tests:

[x] Readme
[x] Rendering tests (snapshots/manual)
[x] Interaction tests (clicking, etc)
[x] Storybook has examples with multiple use-cases

will be released in v4.x


Fix -d flag and switch to radio buttons

This PR:

fixes the -d flag to properly load the frames when started and activate the correct menu item
changes the menu to use radio buttons instead of checkboxes (since only one item is selected at a time)

cool, make sense, thank you so much


Make MySQL hostname persist

Each time I stop and then restart devilbox the MySQL hostname changes. Is there any way to have this set up so that I do not have to change my wp-config each time?

The mysql hostname should simply be <IP_ADDRESS>. This way it is reachable from within the PHP container as well as from the host (if you switch to a host-based LAMP stack). No need to change the config afterwards.

Ah. Thank you. I tried localhost, but didn't think to try <IP_ADDRESS> after I saw the hostname in the database info page.

Thanks for pointing that out. I made it more clear in the documentation: http://devilbox.readthedocs.io/en/documentation/getting-started/best-practice.html#php-project-hostname-settings


Closes #1

Updated validations.py python script
Fixed behaviour of validate_user function in validations.py
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

test merge


5.6.5 rule does not treat the CIS expectation regarding /etc/pam.d/{system-auth | password-auth} files

Describe the Issue
5.6.5 Ensure default user umask is 027 or more restrictive rule does not handle the pam section
Expected Behavior
CIS pass
Actual Behavior
CIS failure
Control(s) Affected
5.6.5
Environment (please complete the following information):

branch being used: [e.g. devel]

Additional Notes

Possible Solution
PR will follow

hi @ipruteanu-sie
As always thank you for the feedback and thank you for raising this, I have gone back through the requirements for this control again and it doesn't mention the pam.d files at all in either the current live version 1.0.0 for control 5.6.5 or the just released 2.0.0 for control <IP_ADDRESS> (this is the new ID for the same control)
I'm afraid again this looks like a scanner is not aligned with the written benchmark.
We are seeing more and more that scanners are not aligning with benchmarks especially for CIS.
FYI excerpt from benchmark v1.0.0
The default umask can be set to use the pam_umask module or in a System Wide Shell Configuration File. The user creating the directories or files has the discretion of changing the permissions via the chmod command, or choosing a different default umask by adding the umask command into a User Shell Configuration File, ( .bash_profile or .bashrc), in their home directory.

Setting the default umask:

pam_umask module:
will set the umask according to the system default in /etc/login.defs and user settings, solving the problem of different umask settings with different shells, display managers, remote sessions etc.
umask=<mask> value in the /etc/login.defs file is interpreted as Octal
Setting USERGROUPS_ENAB to yes in /etc/login.defs (default):
will enable setting of the umask group bits to be the same as owner bits. (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is the same as gid, and username is the same as the <primary group name>
userdel will remove the user's group if it contains no more members, and useradd will create by default a group with the name of the user
System Wide Shell Configuration File:
/etc/profile - used to set system wide environmental variables on users shells. The variables are sometimes the same ones that are in the .bash_profile, however this file is used to set an initial PATH or PS1 for all shell users of the system. is only executed for interactive login shells, or shells executed with the --login parameter.
/etc/profile.d - /etc/profile will execute the scripts within /etc/profile.d/*.sh. It is recommended to place your configuration in a shell script within /etc/profile.d to set your own system wide environmental variables.
/etc/bashrc - System wide version of .bashrc. In Fedora derived distributions, etc/bashrc also invokes /etc/profile.d/*.sh if non-login shell, but redirects output to /dev/null if non-interactive. Is only executed for interactive shells or if BASH_ENV is set to /etc/bashrc.
User Shell Configuration Files:

~/.bash_profile - Is executed to configure your shell before the initial command prompt. Is only read by login shells.
~/.bashrc - Is executed for interactive shells. only read by a shell that's both interactive and non-login

We try to follow what the benchmark actually states (unless we see a bug or made aware and then we add notes to the effect).
Many thanks
uk-bolly

hi @ipruteanu-sie
I will close this issue, please reopen if you have further questions.
many thanks
uk-bolly


Running the plugin says tests were skipped

The build is successful and I get a link to devicefarm and the test run. However, all the tests are skipped. Please can you advise the options available?
apply plugin: 'devicefarm'
devicefarm {
projectName "*******" // required: Must already exists.

devicePool "*********" // optional: Defaults to "Top Devices"

//useUnmeteredDevices() // optional if you wish to use your un-metered devices

authentication {
    accessKey "******"
    secretKey "*****"
}

// optional block, radios default to 'on' state, all parameters optional
devicestate {
    wifi "on"
    bluetooth "off"
    gps "off"
    nfc "on"
    latitude 47.6204 // default
    longitude -122.3491 // default
}
instrumentation {

}

}

Please can I have a reply on the above issue as I am still facing it.

That's unfortunately something you'll have to take up with AWS and the ADF Support in their Forum.


APPDUX-113: Show unauthorized page if non-Admin accesses Settings

Motivation
https://issues.redhat.com/browse/APPDUX-113
What
We removed the ability for non-Admins to get to the Settings page by disabling the settings cog in the masthead. This JIRA covers if a non-Admin attempts to get to the Settings page by typing the route in the URL, e.g. host/settings. We display a 'Permissions needed' screen with a button that allows them to go back to the home page.
Why
Prevent non-Admins from accessing the settings page. Note that this functionality is only for OpenShift 4, not OpenShift 3.
Verification Steps
If testing locally:

Run the code with yarn start:dev.
By default, you should have full Admin access because in demo mode, the openshift version is 3. Verify that you can click the Settings cog or use /settings to access the normal populated Settings page.
To force a dev user, aka non-admin rights, change the following lines to false:
masthead.js - ln 232
settings.js - ln 114
Verify that the Settings cog is not clickable and displays the descriptive tooltip.
Append your current host URL with /settings e.g. localhost:3006/settings.
Verify that the permissions needed screen is displayed vs the normal settings page.

If you have access to a cluster, you can test the code on a live server by pointing the solution explorer yml to the following docker image:
docker.io/mfrances17/dev-tutorial-web-app:latest
Checklist:

[x] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member

Progress

[x] Finished task

Additional Notes
Non-admin account logged in, Settings page accessed using /settings URL:

@tiffany as requested, changed button text to 'Go to home'... Also changed the same button text in the other empty state pages to be consistent - specifically, the congrats page and the error page.


Can't log in by scanning qr code

@binsee I have added QR code display in the latest example code，The QR code can be displayed on the console , but I still can't log in by scanning the code. The displayed QR code is invalid. Would you please check the latest code.
Originally posted by @atorber in https://github.com/wechaty/puppet-xp/issues/72#issuecomment-1032187295

It's weird.
I observed that the generated qrcode and the qrcode content displayed on the WeChat pc interface are the same, but the qrcode generated by the WeChat scan on the mobile phone cannot be logged in correctly.
An example is as follows:


exceptionHandleTemplate  didn't handle non-runtime exception

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

在TM通信时返回异常，但TC没有打印异常
![image](![F814EE34-63FE-476A-852B-09AF92EFB24D](https://user-images.githubusercontent.com/3788653/170807919-b6a48551-65d7-453f-a2e0-cc98ca0c4306.png))

Ⅱ. Describe what happened
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)

xxx
xxx
xxx

Ⅴ. Anything else we need to know?
Ⅵ. Environment:

JDK version :
Seata version:
OS :
Others:

it will throw StoreException in  LogStoreDataBaseDAO#insertGlobalTransactionDO, and will be packaged as TransactionException in AbstractTCInboundHandler#handle.


[Code health] Merge LOI and Submission mutations

LOIs can now only be added or editing in the context of the data collection flow, so there's no need for separate mutations. Ideally we'd want the entire sync to atomically pass or fail; merging these into one helps enforce this quality and simplifies the implementation.

Not sure this makes sense, closing to reduce noise.


You need to update your documentation to describe the new nodes_dn.yml file.

The documentation describing the yaml files required to get the security plugin running are out of date.  This PR made it necessary to add a nodes_dn.yml file into the security config directory, and you get an error complaining about its absence if you leave nodes_dn as a key in elasticsearch.yml as described in the documents.
There is a whole page dedicated to describing the .yml files required to make the plugin work, but nodes_dn.yml isn't mentioned

This is now updated in opensearch docs

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).
If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.
Thanks!


regent: Leak in deferred buffer created for CUDA formal parameters

I'm tracking down a leak with @syamajala in S3D, which we believe is coming from the code added to address #638. Valgrind is showing us backtraces that look like:
==2702930== 2,304 bytes in 96 blocks are definitely lost in loss record 265 of 288
==2702930==    at 0x483BEC3: operator new(unsigned long) (in /home/seshu/pkg/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2702930==    by 0x6E819CC: legion_deferred_buffer_char_1d_create (legion_c.cc:3178)
==2702930==    by 0x4FEDCAB: $__regent_task_10060_cuda (in /scratch2/seshu/legion_s3d/build/h2/libregent_tasks.so)
==2702930==    by 0x9A4238E: Realm::LocalTaskProcessor::execute_task(unsigned int, Realm::ByteArrayRef const&) (proc_impl.cc:1122)
==2702930==    by 0x9AAFA7E: Realm::Task::execute_on_processor(Realm::Processor) (tasks.cc:306)
==2702930==    by 0x9AB3C71: Realm::KernelThreadTaskScheduler::execute_task(Realm::Task*) (tasks.cc:1380)
==2702930==    by 0x9B0CA47: Realm::Cuda::GPUTaskScheduler<Realm::KernelThreadTaskScheduler>::execute_task(Realm::Task*) (cuda_module.cc:1855)
==2702930==    by 0x9AB2B9E: Realm::ThreadedTaskScheduler::scheduler_loop() (tasks.cc:1127)
==2702930==    by 0x9AB3006: Realm::ThreadedTaskScheduler::scheduler_loop_wlock() (tasks.cc:1231)
==2702930==    by 0x9ABA653: void Realm::Thread::thread_entry_wrapper<Realm::ThreadedTaskScheduler, &Realm::ThreadedTaskScheduler::scheduler_loop_wlock>(void*) (threads.inl:97)
==2702930==    by 0x9AC6FD1: Realm::KernelThread::pthread_entry(void*) (threads.cc:774)
==2702930==    by 0xAA78608: start_thread (pthread_create.c:477)

Based on initial discussion with @magnatelee we believe this is coming from the cudahelper.t code that creates deferred buffers to hold the formal parameters:
https://github.com/StanfordLegion/legion/blob/master/language/src/regent/cudahelper.t#L565-L594

This should be fixed by e17e1d1b. @elliottslaughter can you pull and try again?

The fix works. Thanks!


V3 - horizontal bar ticks callback doesn`t work, returns only index as value

Expected Behavior
ticks callback should return value as value and not index
Current Behavior
ticks callback return index as value
Steps to Reproduce
Here is a fiddle with issue:  [https://jsfiddle.net/w09m8jvx/]
Environment

Chart.js version: v3
Browser name and version: chrome

You need to use getLabelForValue
https://www.chartjs.org/docs/master/axes/labelling.html#creating-custom-tick-formats

Thanks very much, my bad, wasn`t aware of that :) Closing issue


Change license from AGPL to MIT

As we have discussed internally, we want to change the license from AGPL to MIT to make it easier to use the EDS. We need to make sure that everyone outside the company who has contributed to the EDS agree with this decision. This process has begun.

We need to get in touch with you @imp-dance – where can I find your email-address?

@vnys You can reach me at<EMAIL_ADDRESS>! 👍


Improve BinaryFbetaScoreEvaluator

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (ee79f36) to head (931d06c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #540   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          131       131
  Lines         3638      3643    +5
  Branches       182       182
=========================================
+ Hits          3638      3643    +5

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add ability to build nfs-provisioner for ARM

This PR adds the ability to build nfs-provisioner for ARMv7 based platforms.  The arm build uses an ubuntu base image rather than the fedora image for a few reasons:

the fedora image was unable to interact with it's package repositories properly in a qemu container (required for cross-building the container)
Ubuntu 19.04 has an updated nfs-ganesha that is newer than 2.7.1.  There is a comment in the x86_64 Dockerfile referencing some compatibility issues with versions previous to 2.7.1.  This removes the requirement to build nfs-ganesha from source which greatly reduces the time required to build the container.

An image built from this is available at https://hub.docker.com/r/cryptk/nfs-provisioner-arm if you would like to test it (or, ideally, you can use this PR to build your own!)

/assign @jsafrane

I have signed the CLA

/unassign @jsafrane
Found a bug with running it in an Ubuntu container... give me a bit to work out a solution

/assign @jsafrane
Sorry for the notification spam... Found an issue caused by a missing mtab file in the ubuntu images... should be resolved now.

@jsafrane I am willing to rebase this, but considering that I submitted it 90 days ago with zero feedback, I am curious if you guys are even interested in having support for building an ARM container in the project.  Can I get some clarification on if this is a feature that you actually want before I bother rebasing?  I would hate to rebase it, remove the stale label, and then just have the PR sit for another 90 days and rot out again.

@cryptk sorry for the long wait. @jsafrane doesn't really (have time to) actively review PRs here, please tag me if you rebase and I'll make sure to look at it.
This is certainly of interest. We already have nfs-client-provisioner and nfs-client-provisioner-arm so there is precedent.

Made some additional changes so that anything that builds this the "old way" will still get the same behavior... just x86_64 binaries/images/etc.  Getting a complete local arm docker container is as simple as running make container-arm (assuming you have a functional docker and go toolchain of course).

/remove-lifecycle stale

/assign @wongma7

@wongma7 the only thing that I can think of that would be needed after this would be to update the RELEASE.md file to add/update the instructions for building and pushing an ARM based container.  This may be as simple as changing the instructions to run make push-all rather than make push.  I figured I would leave handling how the image gets released to the owners since you will be the ones running the release process.
For what it's worth, I've been running this on a k3s install on a RPi4 for several months now with no issues!

/lgtm
/approve
Thanks.
Yes, in terms of releasing it there is some manual work involved. And it's complicated by the x64 image being in the quay.io/kubernetes_incubator registry which should be deprecated. The ARM one should be in quay.io/external_storage like everything else


Discussion: First class accommodations for multiple simultaneous instances of a single form

The Problem
It doesn't appear to me that there's a clear solution / best practice for having multiple instances of a single form on the page at a given point in time. One solution (which would take place in user land) is to simply dynamically add more reducers / places in state in a given application, for instance if I have been keeping my forms in state like:
{
  userProfileForm: FormReducer,
  changePasswordForm: FormReducer
}

and I wanted to have multiple user profile forms on the page simultaneously, I can dynamically add a reducer and end up with:
{
  userProfileForm1: FormReducer,
  userProfileForm2: FormReducer
}

I think I could work something out in my own app to do this.
With that said, it might be nice to accommodate this concern in RRF itself (or maybe there's a way to do this now, and I've just not noticed it!).
I'm filing this issue to host a discussion about what the community/maintainer(s) thing about this topic, and if it's determined that RRF would like to handle this (as opposed to deferring solutions to user land) I would happily follow up and do the work to implement this feature.

This should work naturally:
// with this store...
const store = createStore(combineForms({
  allForms: []
});

// and this in render()...
allForms.map((form, index) => {
  <Form model={`allForms[${index}]`}>
    <Control.text model=".foo" />
  </Form>

// somewhere else in render()...
<button onClick={() => dispatch(actions.push('allForms', {}))}
  Make new form
</button>

Is this what you mean?

This approach is one I hadn't considered. I'll give this a shot and report back with my findings here. In the mean time I will close this issue, and re-open for more discussion only if it's necessary. I really appreciate the quick response.
I'm not sure if there's a place in the docs that references this sort of usage, and I'd be happy to PR to the docs to add an entry under Recipes and Examples if you'd want something like that (again, assuming this solution pans out).

@joshacheson I was wondering if you were able to move past a simple proof of concept of the example defined here. A simple form seems to work in my case except for when field level validation is required.

I never ended up using global forms via react-redux-form. What we did instead was always use "local forms" (although not react-redux-forms's <LocalForm/>, but instead manually created stores which we pass to <Form/>, so in effect a "local form") and we "register" those forms to a namespace on a custom <FormsProvider/> at the top of our tree component tree. This way, we get the benefits of local forms (performance, mainly, by not dispatching to the global redux store all the time) but still have the ability to read from / write to form state all around the application. Our abstractions on top of react-redux-form go well beyond this (we've also abstracted its actions API entirely) but I digress!
If you're interest in a solution like the one I described I'd be happy to help / describe it in more depth.

@joshacheson I appreciate the detailed response. I think we're headed down a similar route, but could probably get away with the RRF LocalForm since we don't have a lot of form instances. I am a little curious about the abstraction of the actions API and what you dit there.


Initial commit: add class diagram

Just added a Redis package - and the class diagram (docs/sinks/redis-class-diagram) of the existing firehose code for reference.

A suggestion to simplify the structure - decouple RedisParser from RedisClient, this will enable RedisSink to first directly parse messages and then use client to push these to Redis. A similar approach is used in the case of BQ sink.

TODO:

modify and add Redis test suite
advance instrumentation
improve error handling


Remove ELO boosting

A boosted player is one who joins and does not contribute to the game in any meaningful way.

Created by eugene (Eugene Raether)

Even a player does not guess, as long as they are discussing the game then they are not necessarily boosting.  Therefore, the proposed solution is:
Every time a player sends a message on slack, they gain one contribution point.
Every time a player acts (guess, pass, clue), they gain ten contribution points.
All players who have at least ten contribution points at the end of the game are factored into the ELO.

Implemented by 8a7fdc89bc20d07d620d4abc80aa137ee2a09060


Fails to work with fetch

I have this issue when trying to use mimic with fetch and then parse response to json.
fetch('/google_auth')
    .then(response => {
      console.log('response', response);
      return response.json();
    })
    .then(json => console.log('json', json));

This is how my mock looks like.

This code eventually leads to error:
es6.promise.js?e8d6:110 Unhandled promise rejection SyntaxError: Unexpected string in JSON at position 54

I'm probably doing something stupid, but I can't figure out why it doesn't work

The JSON response is invalid so response.json() fails to parse it, you are missing a comma after google_id line. You can test it by pasting the json to https://jsonlint.com/

Ooh, you’re totally right. Sorry.  Thanks a lot

Hopefully in the near future I'll be able to add JSON validation to the editor which will give feedback on such things.
Happy to help!


feature request: allow importing by alias

Currently, opslevel resources that support importing require specifying the opslevel uid. But a few examples:
opslevel_repository:
terraform import opslevel_repository.example Z2lkOi8vb3BzbGV2ZWwvUmVwb3NpdG9yaWVzOjpHaXRodWIvMVQ0OTAz

opslevel_service:
terraform import opslevel_service.example Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS84Mg

opslevel_team:
terraform import opslevel_team.example Z2lkOi8vb3BzbGV2ZWwvVGVhbS8xODkxOB

In some case a combination of uids is required and it's unclear what the individual uids represent. Examples:
opslevel_service_repository:
terraform import opslevel_service_repository.example Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS84Mg:Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS82MDI0

(I presume Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS84Mg is a service id. But what does Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS82MDI0 represent? By trial and error it is NOT the repository id as you might expect.)
opslevel_service_tool:
terraform import opslevel_service_tool.example Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS84Mg:Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS82MDI0

(What does Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS82MDI0 represent?)

These opaque ids are typically only discoverable by inspecting the graphql API response for the respective object, or by looking into existing terraform state if available.
This is a feature request for first-class support for importing via aliases. Hypothetical examples:
terraform import opslevel_service.example my-great-service
terraform import opslevel_team.example team-platform
terraform import opslevel_service_repository.example my-great-service_github.com:my-org/my-great-service-repo

This keeps in the spirit with many other providers that are a joy to import:
s3 bucket (docs):
terraform import aws_s3_bucket.example my-bucket-name

kubernetes namespace (docs):
 terraform import kubernetes_namespace.example my-namespace

github repository (docs):
terraform import github_repository.example my-repo-name

postgresql schema (docs):
$ terraform import postgresql_schema.example my_database.my_schema

Context:
We are having to write code/scripts to lookup opslevel uids in order to generate terraform import {} blocks when trying to bring existing infrastructure into terraform or moving state between terraform stacks. The aliases for these resources are known but we cannot use them directly.

Thanks for the suggestions @jpo-tu - This is definitely on our minds - unfortunately not every resource in our API is able to be looked up by an alias so we'd end up in some world where some resources can be imported by alias and some cannot. We'd even get into a world where something like opslevel_service_repository would need 1 alias and 1 id 🤮
Fortunately for that resource we might beable to work around that by using the "repo key" which is what your example was my-great-service_github.com:my-org/my-great-service-repo - but we'd end up having to query and iterate through ALL a customers repos to find a match and for some of our customers this would create significant call API burden.
Additionally depending on what other changes are going on in your OpsLevel account - lookup by alias can actually target different resources between API calls (say someone was deleting an alias on something and then adding it to another thing). Aliases are not stable from one API call to another.
So the approach was taken to use the only thing we can safely lookup every resource type by in a stable way - id.
One thing you can do is use the opslevel CLI to dump out import statements opslevel export terraform -h.  One word of caution is this command is outdated for Terraform 1.X but we plan to fix it by Jan 31st 2025 to match Terraform 1.X syntax.  But it should be safe for the terraform import ... statements it dumps out.
I will also take this as a feature request to in the future have that export command write out terraform import blocks in addition to a bash script with terraform import ... commands.
For now I will put this request in our backlog but because of the above reasons it will not beable to be prioritized untill sometime in 2025.


YOLOX input images are RGB or BGR?

I am a bit confused whether YOLOX input images are RGB or BGR for training. Can you point me to the code? The TrainTransform class seems to indicate that the input images are converted to hsv which is a rearrangement of RGB?
Can you please clarify?

@nahidalam  Thank you for pointing out the bug in augment_hsv function.
cv2 is used in YOLOX, and cv2.imread return an BGR image by default.
I think this bug might not affect the performance of YOLOX and I will try to rerun my experiments of YOLOX after fixing it.

@FateScript so you are saying YOLOX is trained on BGR images? I was looking into OpenVino and they say that the original YOLOX expects RGB input. I guess they are wrong then.

Digging up this issue, because I noticed that for detecting objects that heavily correlated with colors (in my case brown cardboard boxes), switching channels order makes a huuge difference. Pointing this our for posterity 📦

I find this one thing funny:
https://github.com/Megvii-BaseDetection/YOLOX/blob/f00a798c8bf59f43ab557a2f3d566afa831c8887/yolox/data/data_augment.py#L142
By default, we read cv2 image, which is BGR, then pass it either to ValTransform or TrainTransform instance, where it uses swap=(2, 0, 1) to transform image from BGR to GRB :exclamation:
So answer is: it is neither RGB or BGR, it is GRB.


Add noaa-cdr notebooks

@gadomski any objection to me changing the searches to use the basic query= instead of CQL2 and filter? I find that a bit easier to write / read than CQL2.

@gadomski any objection to me changing the searches to use the basic query= instead of CQL2 and filter? I find that a bit easier to write / read than CQL2.

Yeah, no problem at all.


request to http://localhost:3000/posts return empty object

Hi,
I installed json-server following the instructions,
created a file db.json then put the code example into it
and finally run json-server --watch db.json but when i navigate to http://localhost:3000/posts
it only show me a empty object.
it's seems as the server doesn't load the resource
do you have any idea of how can i resolve it?
Thanks.

In the screenshot above I see that it's loading the new.json.

Hi @cesarin3134,
As noticed, it seems it's just the wrong file (new.json instead of db.json).
@momo-aux Thank you for your help :)

i was mistaken, i put the the wrong screenshot but the new file has the same code of db.json

Sorry, i put the wrong screenshot, the new.json file has the same content of db.json and it return a empty object too.

But your new.json is in the directive_example subfolder.
Try
json-server --watch directive_example/new.json
or start it from inside the directive_example/ folder.

@momo-aux you were right, it was a problem path,
i ran it from the right directory and it worked for me!
thanks a lot.  ;)

hi :) I have too this problem to React , Im trying change directory , but I havent effect. Please to give me little bit help


'os' is not defined when using MultiLoader

Hi, I've set up a simple pipeline to use webdataset in tf/jax as such (details omitted):
import os
import webdataset as wds
from webdataset import multi

def get_mm_wds_from_urls(urls):
    dataset = wds.WebDataset(urls, resampled=True).shuffle(1000).decode("rgb").to_tuple("jpg", "json")
    load = multi.MultiLoader(dataset, workers=16)
    return load

urls=<URLS>
load = get_mm_wds_from_urls(urls)
loader = iter(load)

When I try to iterate over the loader, I get the following error from each process:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/webdataset/multi.py", line 42, in reader
    os.environ["WORKER"] = str(index)
NameError: name 'os' is not defined

I have been able to resolve this by manually adding
import os

at the beginning of multi.py in webdataset, but I was wondering if there was a better solution.
Thanks!

Fixed.
(Generally, "multiloader" is a temporary workaround. I'm working on a better solution.)

@tmbdev thanks for making the fix, is there a release planned soon when this can be rolled out?

@tmbdev is there an update on the better solution?


Corrected second paragraph and an extra sentence

I am a native Spanish speaker with programming knowledge. I have changed the second paragraph mainly for grammar and deleted redundant "final". I have also changed a sentence under "Clasificación de los algoritmos" which was not understandable before.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

LGTM!


Refactor EnableStateChangeListener to a JsFunction

This allows us to postpone activating jsinteropexports for all apps
while at the same time preventing the compiler optimization (inlining)
that caused problems for dynamic menus

@manstis @ederign this seems to be the compromise to get rid of the compiler optimization (method inlining) when compiling the plugins, and also not force us to enable jsinteropexports everywhere right away.

@manstis I cleared all caches and tried with drools-wb and uberfire (with and without problems). All these cases work fine for me. /cc @ederign

Ah testDeleteGroup our old friend, jenkins retest this.

jenkins restest this.


remux only does one video loop

thanks for the quick solution before,
i run python3 coub.py -l -f but the remuxed videos seem to only loop once, check the attached example
https://streamable.com/wmwqfv
can you please set it to loop for the duration of the whole song?

Not sure if it's already fixed but I don't run in that problem.
I downloaded my likes with and without remux and the duration of the mp3s match the duration of the remuxed mp4s.
Maybe try and clone the current version and try again

This tool was intended to be used just for downloading coubs as they are stored for archiving purposes. On coub.com both the video and audio loops independently. I don't plan to add a feature for "fixing" it. If a coub has 10 seconds of video and 10 minutes of audio, looping the video in the container until the audio is finished would greatly increase the file size.


Install full tokio-util

Codecov Report

Merging #973 (73d156c) into main (e16d1c6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #973   +/-   ##
=======================================
  Coverage   84.13%   84.13%
=======================================
  Files         390      390
  Lines       41303    41303
=======================================
  Hits        34750    34750
  Misses       6553     6553

Continue to review full report at Codecov.

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


client.disconnect() have issues

source code - result have issues
index.js
import TMI from 'tmi.js'; // Using<EMAIL_ADDRESS>const client = new TMI.client({
    connection: {
        reconnect: false, secure: true
    },
    channels: ['$channelName']
})
....
client.disconnect() // This methods have issues !!

source code - fix
import TMI from 'tmi.js'; // Using<EMAIL_ADDRESS>const client = new TMI.client({
    connection: {
        reconnect: false, secure: true
    },
    channels: ['$channelName']
})
....
client.ws.disconnect() //  Fix issues on method calling !!!!!!!!!!
client.disconnect() // This methods have issues !!

Actual behaviour:
keep receive messages after call "client.disconnect()"
Expected behaviour:
I want do not receive messages
Error log:
(this issue is not error)

Server configuration

Operating system: Mac OSX 10.12.3
Node version (if applicable): v7.2.1
NPM version (if applicable): 3.10.10
tmi.js version: 1.1.2

Node Run
$ DEBUG=* babel-node index.js

The ws module doesn't have a .disconnect() method, it has .close(). (Ref) Calling client.ws.disconnect() is thus not possible. client.disconnect() calls this.ws.close() in client.prototype.disconnect. (Ref) Is client.disconnect() failing in a reproducible way or did it only happen once?
Channel names should start with "#" and not "$"

There was still a problem.
A message reception event continues to occur in the debug log even though disconnect has been called.

Does it continue as if nothing happened or is it just a burst of messages? Are there other events firing? What's the chat rate like? Is it many large channels?

Disconnect command is not instant because when you call it, the connection goes in a CLOSING state and then CLOSED.