Can you give example format data in here? im very confused about that

Sory ,i got an error when retrieving data, "undefined lat lng", Can you give example about format data in here? im very confused about that, thank you for your response

My Data:
[
{ "status": 1, "t": "180927072508000", "course": 0, "lat": 53.22376666666667, "lng": 50.745841666666664 },
{ "status": 1, "t": "180927072508000", "course": 0, "lat": 53.22376666666667, "lng": 50.745841666666664 },
{ "status": 1, "t": "180927072523000", "course": 114, "lat": 53.223728333333334, "lng": 50.74598666666667 },
{ "status": 1, "t": "180927072529000", "course": 138, "lat": 53.223705, "lng": 50.746021666666664 },
{ "status": 1, "t": "180927072538000", "course": 149, "lat": 53.22365166666667, "lng": 50.746075 },
]
My Code:

can you help me? thanks

Hello,
The data object should be what your server gives you, or if you are parsing the server data to model it as you please, that works too.
The error you are getting, makes me think of two possible issues:

When you are calling the <AirplaneMarker {...}/> function component, you are not sending an object with a property called data.
The example found in the documentation, defines a function component AirplaneMarker with one argument, which is an object with a property data.
Calling AirplaneMarker should look like this:

 <AirplaneMarker data={dataObject} />

where dataObject, looking at your data array, would be like
const dataObject = { "status": 1, "t": "180927072508000", "course": 0, "lat": 53.22376666666667, "lng": 50.745841666666664 }

Your data is an array, so you should draw the AirplaneMarker for every entry in your array, one entry representing one position of the maker. Something like this:

const myData = [
{ "status": 1, "t": "180927072508000", "course": 0, "lat": 53.22376666666667, "lng": 50.745841666666664 },
{ "status": 1, "t": "180927072508000", "course": 0, "lat": 53.22376666666667, "lng": 50.745841666666664 },
{ "status": 1, "t": "180927072523000", "course": 114, "lat": 53.223728333333334, "lng": 50.74598666666667 },
{ "status": 1, "t": "180927072529000", "course": 138, "lat": 53.223705, "lng": 50.746021666666664 },
{ "status": 1, "t": "180927072538000", "course": 149, "lat": 53.22365166666667, "lng": 50.746075 },
]

return myData.map(entry => <AirplaneMarker  data={entry} />)

Sory sir, why the icon comes out so much?

Oh, i know..can this possible with the json data? i want to build application with tracking history marker with json data, similar this library https://github.com/arg0navt/leaflet-react-track-player

Sory sir, why the icon comes out so much?

Because you are drawing all the entries in your array at once, sorry, my previous example was misleading.
Maybe this example here can help https://github.com/alexandra-c/leaflet-tracking-marker/issues/2#issuecomment-926351315

Oh, i know..can this possible with the json data? i want to build application with tracking history marker with json data, similar this library https://github.com/arg0navt/leaflet-react-track-player

Can be done with json data, but you may need to do something like this
  useEffect(() => {
    //get the first value in your array

    // read the next value from your array at a regular interval:
    const interval = setInterval(() => {
      //get the next value
    }, 500);

  }, []);

and with some cursor, to know where you are at in your array.
You can try writing this in CodeSandbox, so maybe I can be more helpful. :)

Ok thank your for your response, i will try

Sory, i have question again, when im setInterval with postRequest, i have an error "TypeError: Cannot read properties of undefined (reading 'lat')", thank for your response, can you give me example demo data, im very confused thank you
my data:
const dataStory = [
{"id": 1, "status": 1, "t": "180927072508000", "course": 0, "lat": -5.699698, "lng": 122.842375 },
{"id": 2, "status": 1, "t": "180927072508000", "course": 0, "lat":  -5.694667, "lng": 122.855194 },
{"id": 3,"status": 1, "t": "180927072523000", "course": 114, "lat": -5.691121, "lng": 122.865055 },
{"id": 4, "status": 1, "t": "180927072529000", "course": 138, "lat":  -5.698012, "lng": 122.883377 }
]
my code:
const [currentTrack, setCurrentTrack] = useState({});
const postRequest = () => {
setCurrentTrack(dataStory[currentTrack.id + 1])
console.log('test', currentTrack)
}
useEffect(() => {
setCurrentTrack(dataStory[0])
    console.log('currentTrack', currentTrack)

    const interval = setInterval(() => {
      postRequest();
      console.log('currentTrack', currentTrack)
    }, 5000);
    return () => {
      clearInterval(interval);
    };
}, [])

  return <AirplaneMarker data={currentTrack} />

thank you bro..i will try

thank you bro...your code is awesome..this code is solved

Sure, no problem. Happy I could help 😊

Sory, i have one question, how to make ship stop in last index marker not interval again..i i have code with ref clearInterval, can you help again? thank you..
const history = useRef(null);
history.current = setInterval(() => {
                             if (cursor === dataTrack.length - 1) {
                                   cursor = 0;
                                   setCurrentTrack(dataTrack[cursor]);
                                   clearInterval(history.current);
                                      // return;
                                    }
                                    cursor += 1;
                                    setCurrentTrack(dataTrack[cursor]);
                                  }, 3000);
                      return () => {
                                    clearInterval(history.current);
      `

};`

can you help?

Just remove the if (cursor === dataTrack.length - 1) {...} part

Sory sir, i have one question how to change basic speed duration with useState, example if "normal" speed duration 1000 and if "3x" speed duration 500? can some code to solved this, i have try, but have bug, i will share my code, thank you before
function ShipMarker({ data, speed }) {
  // console.log('test current track', currentTrack)
  const { lat, lng } = data
  // console.log('test data marker', data)
  const [prevPos, setPrevPos] = useState([lat, lng])

  useEffect(() => {
    // console.log('prev', prevPos[1]);
    if (prevPos[1] !== lng && prevPos[0] !== lat) setPrevPos([lat, lng])
  }, [lat, lng, prevPos])

  return <LeafletTrackingMarker icon={newicon}
  position={[lat, lng]} previousPosition={prevPos} duration={speed} />
}

function Map() {
     const [speed, setSpeed] = useState<number>(1000);

     return (
          <ShipMarker speed={speed} data={currentTrack ?? {}} />
    )

}


Add start and end date and time to card subtitle

Changed card to calendar component so this is no longer relevant.


⚠ Samsung has degraded performance

In 9525ebb, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2503 ms

Resolved: Samsung performance has improved in 3df421c.


#1570 Add examples support

Support ApiResponse examples.
Transforms @Example.value() (i.e. @ExampleProperty[]) into a List that then will be transformed into a Map<String, Object> that then will be used to populate the examples map in io.swagger.models.Response

Regarding the "Document empty method body" issues, what'd be the preferred way to solve it?
I could add a comment to the body, but I'm wondering why it doesn't complain for ResponseHeaderTestController... I guess it's due to it being an old class.

Created a new PR here with the latest code from master plus fixed all the codacy issues.


Create hvnh.txt

Add Banking Academy http://hvnh.edu.vn/

@lufutu Pull request merged. Thank you!


feat: add Boot class and refactor index.php/spark/CodeIgniter::initialize()

Description
Closes #7824

move Kint loading to Autoloader

CodeIgniter::initializeKint() registers an autoloader. So it is better to be in Autoloader.
Config caching cannot load Kint files. See https://forum.codeigniter.com/showthread.php?tid=88992&pid=414620#pid414620

add Boot class, then index.php, spark, and Test/bootstrap.php use it
add Config\Optimize::$configCacheEnabled
add Config\Optimize::$locatorCacheEnabled
deprecate system/bootstrap.php

Checklist:

[x] Securely signed commits
[x] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

I found that spark does not show back trace in production environment.
Is this intentional?
development:
(develop *$=)$ ./spark

CodeIgniter v4.4.5 Command Line Tool - Server Time: 2024-02-19 10:33:30 UTC+00:00

[ParseError]
syntax error, unexpected token "protected", expecting "," or ";"
at SYSTEMPATH/Commands/ListCommands.php:38

Backtrace:
  1    SYSTEMPATH/Autoloader/Autoloader.php:253
       CodeIgniter\Autoloader\Autoloader()->includeFile('/Users/kenji/work/codeigniter/official/CodeIgniter4/vendor/composer/../../system/Commands/ListCommands.php')

  2    [internal function]
       CodeIgniter\Autoloader\Autoloader()->loadClassmap('CodeIgniter\\Commands\\ListCommands')

  3    SYSTEMPATH/CLI/Commands.php:105
       class_exists('CodeIgniter\\Commands\\ListCommands')

  4    SYSTEMPATH/CLI/Commands.php:46
       CodeIgniter\CLI\Commands()->discoverCommands()

  5    SYSTEMPATH/Config/Services.php:174
       CodeIgniter\CLI\Commands()->__construct()

  6    SYSTEMPATH/Config/BaseService.php:258
       CodeIgniter\Config\Services::commands(false)

  7    SYSTEMPATH/Config/BaseService.php:199
       CodeIgniter\Config\BaseService::__callStatic('commands', [...])

  8    SYSTEMPATH/Config/Services.php:171
       CodeIgniter\Config\BaseService::getSharedInstance('commands')

  9    SYSTEMPATH/Config/BaseService.php:258
       CodeIgniter\Config\Services::commands()

 10    SYSTEMPATH/CLI/Console.php:41
       CodeIgniter\Config\BaseService::__callStatic('commands', [])

 11    ROOTPATH/spark:102
       CodeIgniter\CLI\Console()->run()

production:
(develop *$=)$ ./spark

CodeIgniter v4.4.5 Command Line Tool - Server Time: 2024-02-19 10:33:42 UTC+00:00

[ParseError]
syntax error, unexpected token "protected", expecting "," or ";"
at SYSTEMPATH/Commands/ListCommands.php:38

(develop *$=)$

Added two config items to enable Caching features easily.

Config\Optimize::$configCacheEnabled
Config\Optimize::$locatorCacheEnabled

There were 2 failures:

1) CodeIgniter\I18n\TimeLegacyTest::testGetAge
Failed asserting that 4 is identical to 5.

/home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/I18n/TimeLegacyTest.php:406

2) CodeIgniter\I18n\TimeTest::testGetAge
Failed asserting that 4 is identical to 5.

/home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/I18n/TimeTest.php:413

https://github.com/codeigniter4/CodeIgniter4/actions/runs/8089204408/job/22104696449?pr=8558
    public function testGetAge(): void
    {
        $time = Time::parse('5 years ago');
        dd((string) $time);

        $this->assertSame(5, $time->getAge());
        $this->assertSame(5, $time->age);
    }

string (19) "2019-03-01 01:05:35"

Since the PR was too large, I divided it into three parts: #8603, #8604, #8605


The plugin flutter_bluetooth_basic uses a deprecated version of the Android embedding.

The plugin `flutter_bluetooth_basic` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.1, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-ID)
    • Flutter version 2.5.1 at /Users/user/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (5 days ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/user/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.11.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 3.2)
    • Android Studio at /Volumes/Macintosh HD/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.60.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] VS Code (version 1.33.1)
    • VS Code at /Volumes/Macintosh HD/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 94.0.4606.54
    ! Error: iPad Izzudin is not connected. Xcode will continue when iPad Izzudin is connected. (code -13)

• No issues found!

I have the same problem
The plugin flutter_bluetooth_basic uses a deprecated version of the Android
embedding.
To avoid unexpected runtime failures, or future build failures, try to see if
this plugin supports the Android V2 embedding. Otherwise, consider removing it
since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to
the V2 embedding: https://flutter.dev/go/android-plugin-migration.
flutter doctor -v
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.4 20F71 darwin-x64, locale
fr-TN)
• Flutter version 2.5.1 at /users/tts/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffb2ecea52 (7 days ago), 2021-09-17 15:26:33 -0400
• Engine revision b3af521a05
• Dart version 2.14.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tts/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.60.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] VS Code (version 1.57.0)
• VS Code at /Users/tts/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] Connected device (2 available)
• SM T515 (mobile) • R52N40NMXCP • android-arm    • Android 11 (API 30)
• Chrome (web)     • chrome      • web-javascript • Google Chrome
94.0.4606.61
• No issues found!

Same here. Might be preventing my phone from properly discovering my bluetooth printer...

@andrey-ushakov I am having the same issue too.


Shorthand http event syntax throws "Cannot read property 'toLowerCase' of undefined"

serverless-webpack 1.0.0-rc.2 at this line assumes a serverless.yml event format like this:
functions:
  myfunction:
    handler: handlers.myfunction
    events:
      - http:
          method: POST       # method and path are
          path: myfunction   # defined as separate keys

However using the http event string shorthand...
functions:
  myfunction:
    handler: handlers.myfunction
    events:
      - http: POST myfunction

...throws the error...
Cannot read property 'toLowerCase' of undefined
... serverless-webpack/lib/serve.js:45:40 ...

PR #45 looks fine except the broken/missing tests. If we could sole those it would be a great addition

Any update on this?

We'll drop the serve command in favor of serverless-offline. See #152 and #135

serve will be removed in the next v3.0.0 release in favor of serverless-offline (see #152 ). No efforts will be spent on the function anymore. So I'll close this issue.


Refactor setup.py

@phunterlau Could you combine setup.py and setup_pip.py with some conditional statement to switch the functionality? (set default to original setup.py functionality) Given recent issues we have received, it's better to make it less confusing.

setup_pip.py and setup.py were the same file with conditional statement, and later on I made a standalone setup_pip.py for the pip package for these three reasons after seeing many github installation issues:

pip uses setup.cfg and MANIFEST.in for complicated dependency while setup.py itself can't handle: we need to copy many source files and compile on-the-fly.
python setup.py install needs include_package_data=True for using setup.py path, while pip needs it being False for using MANIFEST.in, otherwise  the dependency can go crazy for some Linux machines, e.g. the .so lib would be copied to the root directory instead of site-package
There was a single setup.py for both installation, with if statement for checking if runs with pip or not, but that if statement stopped working when upgrade to pip 7.1.2. No clear solution for now.

I will refactor some pip installation and provide pre-compiled wheels, which can ultimately solve many issues of no compiler installed.

Ok sounds good. Thanks for the clarification!


Add task templates for tydiqa and xquad

This PR adds question-answering templates to the remaining datasets that are linked to a model on the Hub.
Notes:

I could not test the tydiqa implementation since I don't have enough disk space 😢 . But I am confident the template works :)
there exist other datasets like fquad and mlqa which are candidates for question-answering templates, but some work is needed to handle the ordering of nested column described in #2434

Just tested TydiQA and it works fine :)


feat(schema): GTM server side data transform for schema event_v2

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Summary
(describe what this merge request does)
Implementation highlights
(describe how the merge request does for feature changes, share the RFC link if it has)
Test checklist

[ ] add new test cases
[ ] all code changes are covered by unit tests
[ ] end-to-end tests

[ ] deploy web console with CloudFront + S3 + API gateway
[ ] deploy web console within VPC
[ ] deploy ingestion server

[ ] with MSK sink
[ ] with KDS sink
[ ] with S3 sink

[ ] deploy data processing
[ ] deploy data modeling

[ ] new Redshift Serverless
[ ] provisioned Redshift
[ ] Athena

[ ] deploy with reporting
[ ] streaming ingestion

[ ] with Redshift Serverless
[ ] with provisioned Redshift

Is it a breaking change

[ ] add parameters without default value in stack
[ ] introduce new service permission in stack
[ ] introduce new top level stack module

Miscellaneous

[ ] introduce new symbol link source file(s) to be shared among infra code, web console frontend, and web console backend

Is file src/data-pipeline/spark-etl/src/test/resources/gtm-server/etl_gtm_user_v2_props_incremental_v1/update_date=20240312/app_id=GMTServerLogin2/part-00000-8f5a4cb2-f6aa-4b4f-8c6a-08145a4e5b15.c000.snappy.parquet used in the test cases?

yes.

I push new commits, but this PR is not updated. will closed this PR and open a new one.


ip:port/service/url to service:port/url

Is there a way to use the following setup:
swarm_host_ip:port/service1/URI --> service1:port/URI
In my current setup I have:
`version: "3.3"
services:
proxy:
image: vfarcic/docker-flow-proxy
ports:
- 80:80
networks:
- proxy
environment:
- LISTENER_ADDRESS=swarm-listener
- MODE=swarm
deploy:
replicas: 2
swarm-listener:
image: vfarcic/docker-flow-swarm-listener
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove
deploy:
placement:
constraints: [node.role == manager]
service1:
image: service1
ports:
- 8180:8180
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
- com.df.notify=true
- com.df.distribute=true
- com.df.servicePath=/service1
- com.df.port=8180
networks:
- proxy
networks:
proxy:
external: true`
Test:
curl http://example.com/service1/admin/v1/accountgroups
Result:
No mapping found for HTTP request with URI [/service1/admin/v1/accountgroups]
Can the proxy hit URI [/admin/v1/accountgroups] instead of URI [/service1/admin/v1/accountgroups] ?
Is there a way to use the following setup:
swarm_host_ip:port/service1/URI --> service1:port/URI
In my current setup I have:
`version: "3.3"
services:
proxy:
image: vfarcic/docker-flow-proxy
ports:
- 80:80
networks:
- proxy
environment:
- LISTENER_ADDRESS=swarm-listener
- MODE=swarm
deploy:
replicas: 2
swarm-listener:
image: vfarcic/docker-flow-swarm-listener
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove
deploy:
placement:
constraints: [node.role == manager]
service1:
image: service1
ports:
- 8180:8180
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
- com.df.notify=true
- com.df.distribute=true
- com.df.servicePath=/service1
- com.df.port=8180
networks:
- proxy
networks:
proxy:
external: true`
Test:
curl http://example.com/service1/admin/v1/accountgroups
Result:
No mapping found for HTTP request with URI [/service1/admin/v1/accountgroups]
Can the proxy hit URI [/admin/v1/accountgroups] instead of URI [/service1/admin/v1/accountgroups] ?

You can add com.df.reqPathSearch=/service1 label. The proxy will replace matching parts of requests paths with the value of com.df.reqPathReplace or with an empty string if it's not present. Please try it out and let me know if it works as expected.
One thing you should be aware of is that, in case it is a front-end client, paths must be relative.

Thanks, com.df.reqPathSearch=/service1 label solved the problem.


Adding sprites

What technique should i use for adding a sprite image?

I found how to do it with pygame, is it possible to use pygame and opengl using your module?

It is technically possible to render to an pygame surface, copy that data into a texture and display it using OpenGL. That is the only way you could display anything from pygame in OpenGL.

@einarf would I have to make a variable that equals the sprite data, then load that variable using opengl? And if so how?

There is an example here using moderngl : https://github.com/moderngl/moderngl-window/blob/820b7d7c6d4faea3cff2637a150c91582096557b/examples/advanced/pygame2_simple.py#L55-L73
You would have to figure out on your own how to use plain opengl functions to write to your own texture and display it.

I did find this texture mapping
def OnInit( self ): """Load the image on initial load of the application""" self.imageID = self.loadImage ()
http://pyopengl.sourceforge.net/context/tutorials/nehe6.html


matrix-dl: init at (unstable-)2019-09-22

Motivation for this change
Things done

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

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

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

@GrahamcOfBorg build matrix-dl

@herrwiese thanks!

Thanks @Ma27 and @symphorien. I actually found it in setup.py :man_facepalming:  See #83686


start

Medium articles to start with: https://richard-t-bell90.medium.com/list/learn-golang-with-me-making-a-pomodoro-timer-9b5e9ef178e6

Similar project with UI: https://apps.fyne.io/apps/com.pomadorik.html
It has also the iconization


ClientModel: multipart investigation

API change check
APIView has identified API level changes in this PR and created following API reviews.
System.ClientModel


Fix most doc TODOs.

I've removed the TODO for the authoring guide. I don't think we can
usefully write an authoring guide that isn't Android specific beyond
what's already documented.
There are still TODOs to get the javadoc hosted somewhere, but I
haven't sorted that process out yet.

/gcbrun


[UI] Topic search not working properly with pagination

Setup:
version in c961344
Description:

Go to Topics page
move to page 2
enter something into topic search field
-> request sent with page=2 parameter which will force BE to search on the second page, which will lead to wrong results

Expected behaviour:
When something new was entered into search field pagination should be reset

Hello, can you please assign this issue to me?

Hey, sure, go ahead :)On 8 Oct 2022, at 18:13, Richard Michalik @.***> wrote:
Hello, can you please assign this issue to me?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>


Work on a new driver for Scaleway platform

Would a contribution for a new machine driver for Scaleway be interesting?
Is someone else already working on that feature?

@matm There is a docker-machine plugin for
Scaleway https://github.com/scaleway/docker-machine-driver-scaleway
I don't know the current status of that plugin.

Indeed. Thank you @StefanScherer. Just asked them if they plan to merge this driver upstream.

@StefanScherer Just wondering: is there a policy preventing the inclusion of this driver's code into Docker Machine's official repository?

@matm Maintaining all the drivers makes it difficult for upstream maintainers in docker/machine repo. Accepting new drivers slowed downin the past  and so the driver plugin mechanism was born. That decouples maintaining drivers from the core.

For reference https://github.com/docker/machine/pull/1389#issuecomment-126818120

Yes, I perfectly get it. So current drivers (aws, softlayer etc.) are planned to move out of the core, right? This comment is one year old now. Is it supposed to happen soon?
Anyway, thanks for your time.


we 动态变量问题

DEMO 地址：http://dotwe.org/weex/848ea999acfabfab8fe2dbb256456ce7

hi  没看明白， 可以具体描述下问题么？  你这是个问题， 还是提的bug

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.


fix --context typo in readme

What type of PR is this?
/kind documentation
What this PR does / why we need it:
fixes typo
Which issue(s) this PR fixes:

Fixes #98
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

/lgtm
/approve


Only export gallery items that contain an URL.

The gallery.json file contains many gallery items without an URL. Make sure that export.py checks for gallery items without URL and doesn't export them.

Done.


feat(mps-sync-plugin): MPS sync plugin inital commit

TODO

[X] If modelix-core is bumped to 5.0.0 <, then we have to fix https://issues.modelix.org/issue/MODELIX-822.

:tada: This PR is included in version 0.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support DAPR_GRPC_ENDPOINT for workflows

Extending https://github.com/dapr/python-sdk/issues/577 to workflows

/assign

This was closed in https://github.com/dapr/python-sdk/pull/610


Tweaks to render white "no data" bars in a more visually pleasing way

Fiddly but trivial hacks to make the "no data" white bars look better.  They don't always line up perfectly - but it's never more than a pixel out.
Works with web-eda main branch.
I'm not sure it needs two reviews.  Just one would do.
Fixed version:

Before it looked like this:

Here's a case I found in India ICEMR Behavior Cross-sectional. Does this style still look nice in this case? It may be a unique case with so much missing data and such large bins.

One thought, related to @chowington's observation. What if, instead of a white box, we used the T-bar seen in the bird's eye overview plot? Maybe that has a different meaning.


Add html5 plugin

Consider https://github.com/othree/html5.vim for HTML5 support.

:+1:

Any reasons not to?


delete ipam record when gc lsp

What type of this PR

Bug fixes

restart cluster, and restore ipam when kube-ovn-controller initIPAM, but lately gc all lsps. Rebuild all the pod with static ip, will result in ip address conflict.
Which issue(s) this PR fixes:
Fixes #(issue-number)

测试了下， https://github.com/kubeovn/kube-ovn/pull/1448 合入之后，应该已经避免了基于 ip crd恢复ipam导致的冲突问题。


Design for multiprocess support

This is an implementation of #819
This issue is to extend the lwaftr to support multiple instances of the lwaftr. These are defined in the schema specified in the PR #821. The lwaftr should be able to do three distinct additional things:

When provided with a configuration with multiple instances, start those instances.
Be able to spawn new additional instances whilst running in reconfigurable mode and destroy instances.
Configure instance specific attributes without interrupting other instances.

These changes will also will need to update the translation layer so that multiple instances are provided in the ietf-softwire as well as be able to configure it from there also.
The state retrival parts will also need updating for the lwaftr as certain counters are now not just instance specific but are now agregate counters of all instances.
Plan
I propose implementing this by upon the setup of the lwaftr it will spawn additional follower instances (lwaftr dataplanes) which will then talk to the one individual leader which will configure all of them. Each follower will be given the configuration which only includes its own configuration instance definition in the instance list.
The spawning of new instances will be performed by the leader using much the same process they were spawned upon initiation and removing instances will be performed by the stop_app functionality in the leader to follower API.
I'm thinking to make this easier to review a branch of the lwaftr will be made as a staging ground to merge PRs into as support is building up. That will PRs to be broken into smaller pieces e.g.

Add support for starting multiple instances
Add spawning new and destroying instances via the leader
Update translation layer
Update lwaftr's state code

WDYT (@wingo)?

Good ideas!
Just thinking aloud -- I wonder who should be the one spawning the various worker processes, the leader or the setup function?  Right now it's the setup function, but I don't know if that will be able to continue to be the case, given that the setup function doesn't keep track of the current state.  It's pretty much just a pure function.
I think we should change the type of the setup function that's passed to the leader.
Right now the setup function takes a configuration and returns an app graph.  We should change it to return a table mapping ID to app graph.  In that way we allow for multiple workers and can manage queue assignment etc in the setup function.  The leader would be responsible for spawning workers or killing them as needed.  WDYT?

I agree, I think that sounds like the right thing to do.

Fixed by #911, #939, #955 and #961


Add Jim to codeowners and update link to docs

cc @JimSuplizio

LGTM - Thanks for doing this Wes.


Overrides of kernel param ignored

Because overrides are merged before the main modules in the big config = l.mkMerge [ their values come first in the kernel command line, but actually the kernel will only retains the last value from the command line, as per
https://github.com/torvalds/linux/blob/fc033cf25e612e840e545f8d5ad2edd6ba613ed5/arch/x86/boot/cmdline.c#L21-L23
A fast fix is too move the main module on top of the config = l.mkMerge [ stack. Another, cleaner IMO, would be to handle overrides at the same location as default value.

Would be resolved by https://github.com/cynicsketch/nix-mineral/issues/31
I didn't do a good job of explaining how this would work, but the idea is that all defaults (the so-called "main module") would be inside config = l.mkMerge [ ... and then all set by some arbitrary value like
nix-mineral.defaults.all = true; = ```nix-mineral.defaults.sysctl = true; nix-mineral.defaults.boot-params = true; ..."


out of memory ERROR...

What is the lowest level GPU required by this tutorial?

✗ nvidia-smi
Sun Dec 30 19:35:43 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.78       Driver Version: 410.78       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 980M    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   28C    P8     7W /  N/A |   3834MiB /  4035MiB |      1%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1842      G   /usr/lib/xorg/Xorg                            15MiB |
|    0      1952      G   /usr/bin/gnome-shell                          48MiB |
|    0      2923      G   /usr/lib/xorg/Xorg                           170MiB |
|    0      3039      G   /usr/bin/gnome-shell                          51MiB |
|    0      3801      G   ...uest-channel-token=14688497433927674620   166MiB |
|    0     23367      C   /usr/bin/python                             3260MiB |
|    0     28276      G   ...-token=8CC4669488D477BE118BBC69F71B724E    72MiB |
+-----------------------------------------------------------------------------+

✗ python 01_Simple_Linear_Model.py
1.12.0-rc0
Size of:

Training-set:         55000
Validation-set:       5000
Test-set:             10000
2018-12-30 19:24:55.118940: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:993] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-12-30 19:24:55.119329: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: GeForce GTX 980M major: 5 minor: 2 memoryClockRate(GHz): 1.1265
pciBusID: 0000:01:00.0
totalMemory: 3.94GiB freeMemory: 59.12MiB
2018-12-30 19:24:55.119345: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
Traceback (most recent call last):
File "01_Simple_Linear_Model.py", line 303, in
session = tf.Session()
File "/home/jiapei/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1551, in init
super(Session, self).init(target, graph, config=config)
File "/home/jiapei/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 676, in init
self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
tensorflow.python.framework.errors_impl.InternalError: CUDA runtime implicit initialization on GPU:0 failed. Status: out of memory

Cheers
Pei

Hi @jiapei100
I guess @Hvass-Labs uses a GPU card with 8GB memory so I had the same issue before and I decreased the batch_size and rerun the whole notebook fixed my problem.
Hope this helps

@winstonma Thanks for answering.
Many of these tutorials were made on a laptop PC with 8 GB of RAM and no GPU. After Tutorial 16 or so, I started using a GTX 1070 with 8 GB of RAM.


fit_text() doesn't work if the TextFrame is in a cell

table_shape = slide.shapes.add_table(*table_dimensions)
table = table_shape.table
table.cell(0,0).text = "Lorem Ipsum"
table.cell(0,0).text_frame.fit_text()
gives the following error:
AttributeError: '_Cell' object has no attribute 'width'
It seems the TextFitter object calls the parent of the TextFrame, which is Cell, which triggers the bug.
Allowing to override font_size in fit_text would be a quick fix.

When I've worked with tables I've been able to resize the columns rather than individual cells. And their height is going to take into account the largest height requirement of all the cells in the row.

Yeah, .fit_text() is experimental, was only intended for shapes, and was really a best-effort hack from the start. It's not going to work on a table cell anyway because cell widths are not independent, i.e. setting the width of one cell is not going to set the width of the table column.
So I'm afraid you're on your own with this one. The official response is "don't call text_frame.fit_text() on a table cell".


Enable editing of OpenRouter stream timeout for slower connections

Pull Request Type

[x] ✨ feat
[ ] 🐛 fix
[ ] ♻ refactor
[ ] 💄 style
[ ] 🔨 chore
[ ] 📝 docs

Relevant Issues

resolves #1983
What is in this change?
Enabled the user to define the timeout value between response streams so as to not prematurely close the OpenRouter stream. The reason this exists is that OpenRouter models mostly do not return the finish_reason response reliably which leads to hanging responses unless we force close it.
On slower connections to 500ms may be too little for most connections.

Additional Information

Developer Validations

[x] I ran yarn lint from the root of the repo & committed changes
[x] Relevant documentation has been updated
[x] I have tested my code functionality
[x] Docker build succeeds locally

@timothycarambat How can I try this version?


Removes ES6 functionality to support IE11

No changes to actual functionality, only removes ES6 notations like const, let, =>, ..., in order to support IE11.

Hmmm, this strikes me as a bad idea. 5 dollar says there's ES6 in a dependency of one of these components. You can't rewrite those - how about using babel in your build chain instead?

Yeah, there are definitely es6 dependencies in other components. We added babel to accommodate those dependencies in the newest px-vis components for APM Analysis (though we still hit minor issues with some code not passing strict mode, which babel was enforcing). You are right, @mdwragg , this is not a good policy moving forward....thanks for weighing in.

@mdwragg Could you point me to where that would be a problem? I want to make sure I don't break anything.
But I don't see why moving to ES5 would be a problem, that's actually what babel does for you.

@kdinluks - there'll likely be ES6 inside a transitive dependency, you can't rewrite each dep as you don't have control over it.
Also, you're guessing what the unravelling of ES6 will look like in ES5 - that is risky!
Safest bet is to put babel into your build, assume the worst that a transitive dependency will contain ES5 and blow your code up at some point in the future.


Return the Sum of Two Numbers

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement: Create a function that takes two numbers as arguments and return their sum.
Problem Link: https://edabit.com/challenge/rZToTkR5eB9Zn4zLh

Before submitting a PR please Check some details.Check Edabit for problem task

[ ] fileName formet should be in camelcase
example- returnTheNextNumber.py
[ ]  Add label for Problem
[ ]  In file there should be problem statement and link to probelm
example -

'''
    Probem Task : This program will add two numbers
    Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
'''
*/
def main():
    return a + b

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

Can you assign me this issue?

[✔ ] Task Assigned

I would like to work on this.

Hey! can i work on this issue...


freeze exception: net/http/cgi: reject invalid header names

While working on CL 231419, I noticed we trim spaces around the names of the headers generated by CGI programs. This is not as serious as #34540 because the CGI program output is presumably trusted, but CGI is such a generic interface that I'd feel better if we didn't do anything potentially risky like that.
I'd like to request a freeze exception to land CL 232277 this week.
/cc @andybons @rsc

I think this is OK as it’s small and security related. Will wait for @rsc to confirm.

SGTM, thanks.


include should be a function

According to documentation (http://twig.sensiolabs.org/doc/advanced.html)

{{ }}: used to print the result of an expression evaluation;
{% %}: used to execute statements.

But {% include %} tag evaluates and prints code. So I belive that it should be a function
{{ include("path/to/template/file.twig") }}

I agree with both of you. It should be a function, but to keep BC, we cannot change it anymore. I was thinking about adding it as a function for Twig 2.0.


[Question]The task instance does not exist

The dolphinscheduler version 1.3.2
Problems encountered：
After a task is executed for a period of time, a task instance does not exist
Investigation：
Check the log. There is no error information in the API log during the time period when the error is found. There is an error of "read file error" in the logger log,
[pool-2-thread-3] error org.apache.dolphinscheduler . server.log.LoggerRequestProcessor - read file error
java.nio.file .NoSuchFileException: /opt/apps/dolphinscheduler/logs/13304/42892/256494.log
at sun.nio.fs . UnixException.translateToIOException ( UnixException.java:86 )
at sun.nio.fs . UnixException.rethrowAsIOException ( UnixException.java:102 )
at sun.nio.fs . UnixException.rethrowAsIOException ( UnixException.java:107 )
at sun.nio.fs .Un ixFileSystemProvider.newByteChannel (Un ixFileSystemProvider.java:214 )
Basically once a week or two
What can we do to solve this problem

you should check the worker server runtime log
if it is a cron task, you also can check the master server runtime log whether there is exception or warn messages

您应该检查辅助服务器运行时日志
（如果是 cron 任务），还可以检查主服务器运行时日志是否有异常或警告消息

We encountered this problem again. After checking the worker log and master log, we found no reason. Because there was an error in the log before, we couldn't find the log. We doubt whether it was caused by deleting the workflow instance. There is no way to verify it. However, because of deleting the workflow instance, the whole dolphin scheduler can't run, which is also inappropriate

@peizhuang-ws @CalvinKirs @dailidong The dev and new 1.3.5-release has fixed the NoSuchFileException. See #4271 #4599
As for why the log is lost, please check the log directory and check whether it is put in /tmp, whether to delete regularly by cron @peizhuang-ws

Close this issue since no updates for long time


drivers: timer : cortex_m_systick MAX_TICKS protection

when CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC set to 960M and CONFIG_SYS_CLOCK_TICKS_PER_SEC set to 100
the MAX_TICKS will be zero or even a negative value, which is not expected, at this time the COUNTER_MAX is
so need add a protection here
fixes: #36766
there used to be a workaround, not a fix,
either change the CONFIG_SYS_CLOCK_TICKS_PER_SEC=200 or
CONFIG_PM to set the CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC to 32678

test on mimxrt1170_evk without default sys_tick settings
*** Booting Zephyr OS build v4.0.0-2778-g1b70bfa14e28 ***
Running TESTSUITE tickless_concept
===================================================================
START - test_tickless_slice
elapsed slice 110, expected: <100, 110>
elapsed slice 100, expected: <100, 110>
elapsed slice 100, expected: <100, 110>
elapsed slice 100, expected: <100, 110>
 PASS - test_tickless_slice in 0.607 seconds
===================================================================
START - test_tickless_sysclock
time 640, 850
time 860, 1060
 PASS - test_tickless_sysclock in 0.426 seconds
===================================================================
TESTSUITE tickless_concept succeeded

------ TESTSUITE SUMMARY START ------

SUITE PASS - 100.00% [tickless_concept]: pass = 2, fail = 0, skip = 0, total = 2 duration = 1.033 seconds
 - PASS - [tickless_concept.test_tickless_slice] duration = 0.607 seconds
 - PASS - [tickless_concept.test_tickless_sysclock] duration = 0.426 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
PROJECT EXECUTION SUCCESSFUL

@hakehuang here's an old attempt at this that may be a useful reference: https://github.com/zephyrproject-rtos/zephyr/commit/5cbf8d838e399dacf14d879a6adff2f4cdf8611a https://github.com/zephyrproject-rtos/zephyr/pull/66601

@hakehuang here's an old attempt at this that may be a useful reference: 5cbf8d8 #66601

I guess the pr attempts to assert the setting in return we still need to increate the CONFIG_SYS_CLOCK_TICKS_PER_SEC to avoid this issue, and my attempt to still use the old setting, but downgrade the accuracy.

Heh, it was my doing, back in 2018 during the timer rewrites: see commit c535300539611751a56eef32b1ed1ea7a8bfcc57
I think it's just been carried along voodoo-style ever since.  It's harmless (except for the possibility of rollover at high clock rates), but I really don't think it's needed.  Might be worth spinning a version that simply removes that subtraction and check that nothing breaks.
Basically I think the root cause here is a bug I wrote six years ago. :)

Also, just to be clear, the configuration being managed here is pathological: the clock rates is so high and the tick rate so low that it's not possible to deliver interrupts that slowly from the paltry 24 bit SysTick counter.  Such a configuration basically has no control over timer interrupt frequency and would be much better served with a regular tick interrupt (which is what it's getting anyway) that avoids all the runtime complexity.


Better documentation of variants/usage

NB: I am a first-time user who checked out the repo less than an hour ago.
The current documentation leaves the reader quite in the dark regarding the different versions that a default build creates AFAICT. Currently, there are 10 different static libraries produced and only very few related bits are explained (e.g., that there exists a ThreadX implementation). What's more, the bit that explains how to "install" the library explains that one should link with -Lpath/to/libmemory.a -lmemory, i.e. libmemory.a. However, that apparently does only add the aligned_ functions(?) Therefore, when trying a typical example project that calls malloc_addblock() as explained in the actual Usage Section the user is greeted with undefined reference to malloc_addblock'` and ponders why.
Apart from expanding the documentation it might be a good idea to add a default implementation of malloc_addblock() that is either just a nop, or fprints a warning at runtime (if not disabled by some build option or so)?
PS: make help shows a tests target. I think that should be just test

Thanks, I'll work on this.
For variants: would you still expect that in the README, or is it fine to break that out into a separate document linked from the README?
I'll look into the linking part as well - I'm guessing this is a carryover from before I had the "add aligned_malloc/free but use the system malloc" variant.

Apart from expanding the documentation it might be a good idea to add a default implementation of malloc_addblock() that is either just a nop, or fprints a warning at runtime (if not disabled by some build option or so)?

All the implementations have a malloc_addblock implementation that is related to that version, is this suggestion in reference to the linking problem?
e.g.: https://github.com/embeddedartistry/libmemory/blob/master/src/malloc_freelist.c#L195

For variants: would you still expect that in the README, or is it fine to break that out into a separate document linked from the README?

As long as it is easily discoverable I don't really care if it is in another file. In general I personally prefer single-document READMEs because they are more easily searchable and references are easier to follow... but at some point it gets just too big. In the case of libmemory, as it currently is, I think leaving it as single page would be ok, but splitting it into README (features, status, overview, docs, contribution etc), BUILDING (fetching source, build configuration, building, testing), and USING (variants(?), integration/correct linking, usage) or similar would also work (for me anyway).

I'll look into the linking part as well - I'm guessing this is a carryover from before I had the "add aligned_malloc/free but use the system malloc" variant.

Yes, I would also think that this is a reminiscence of the past but it really threw me off.

Apart from expanding the documentation it might be a good idea to add a default implementation of malloc_addblock() that is either just a nop, or fprints a warning at runtime (if not disabled by some build option or so)?

All the implementations have a malloc_addblock implementation that is related to that version, is this suggestion in reference to the linking problem?
e.g.: https://github.com/embeddedartistry/libmemory/blob/master/src/malloc_freelist.c#L195

There is no malloc_addblock() in libmemory.a and thus one gets the missing reference error when following the current documentation, which talks a lot about that function but only of linking with libmemory.a. Of course in the case of libmemory.a in a hosted environment one does not strictly need that function and calling it makes not really sense - however, having an implementation anyway would make it possible to share the same code in the user application (and documentation examples, tests etc.) no matter which variant is linked eventually. One easy way to accomplish that would be to add something like:
diff --git a/src/posix_memalign.c b/src/posix_memalign.c
index 996a85e..fa30924 100644
--- a/src/posix_memalign.c
+++ b/src/posix_memalign.c
@@ -1,3 +1,4 @@
+#include <malloc.h>
 #include <aligned_malloc.h>
 #include <assert.h>
 #include <errno.h>
@@ -5,6 +6,10 @@

 #define IS_POWER_2(x) (!((x) & ((x)-1)))

+__attribute__((weak)) void malloc_addblock(__attribute__((unused)) void* addr, __attribute__((unused)) size_t size)
+{
+}
+
 int posix_memalign(void** __memptr, size_t __alignment, size_t __size)
 {
  int r = ENOMEM;

As I wrote initially, I would add a run-time warning there too to make sure the user understands what is going on (else this is easily missed I guess).

Ok, I see what you mean now. Thanks for the feedback!


An update should return the number of updated docs and not true - especially 0 in case when no doc is updated

The current behavior to return true on a dbCollection.updateis making some important tests of ours fail. To give an example:
const numUpdates = MpIndex.update({ _id: mpIndexDoc }, { $addToSet: { cardsIdArray: cardId } },             { tx: true, instant: true });         if (numUpdates === 0) {             throw new Error(Something is wrong - No doc was being updated - mpIndex _id: ${mpIndexDoc} / ${cardId});         }
Now we're receiving true instead of a number. It's important for us to identify where our functions are trying to update a doc with a value that already exists as that is a logical error.

Yes, good point. If you've got someone who can put a PR together, I'll happily merge it.


[WIP] Remove apt commands and iscsid initiation from Nutanix control plane kubeadmconfig

These were initially introduced through eks-anywhere#4111 and were intended to be a temporary fix until the nutanix imagebuilder changes were merged upstream in image-builder#1046.

/assign @abhinavmpandey08

@thunderboltsid we should be able to remove these lines since we are already installing it in the image now. https://github.com/kubernetes-sigs/image-builder/pull/1046

@thunderboltsid we should be able to remove these lines since we are already installing it in the image now. kubernetes-sigs/image-builder#1046

Yeah that sounds good. We will also need to bump up image-builder in build-tooling. We are currently tracking a commit here. Should probably bump it up to v0.1.14

/ok-to-test

/retest

/retest

/retest

/retest-required

/test eks-anywhere-cli-attribution-presubmit


Remove dox

Based on https://github.com/gtk-rs/gir/pull/1005.
Everything seems to be working as expected?

Everything seems to be working as expected?

Well, the CI fails :)
`#[doc(cfg)]` is experimental

and
 error[E0432]: unresolved import `ffi::winapi`
Error:  --> cairo/src/win32_surface.rs:5:9
  |
5 | pub use ffi::winapi;
  |         ^^^^^^^^^^^ no `winapi` in the root

Otherwise seems good to me once that is fixed.
Can you also submit an MR for that to gstreamer-rs?

I forgot to rebuild gir before the regen...

Please update gir another time before this to also get the other changes included

I created an issue about this situation: https://github.com/gtk-rs/gir/issues/1009
Closing until fixable...


Replace breakpoint image marker with drawn marker.

Eliminated the images for the gutter view. Replacement is procedure and look nominally the same as the old bitmap.
Taken from Noodlekit, and modified to replicate the default look.
I'm considering the best approach to customizing the look of the breakpoint marker. Right now the delegate API is dead simple. Another delegate call, e.g., breakPointColorForLine: would maintain this simplicity.
Being ambitious we might implement yet another delegate, e.g., breakPointImageForLine:view:rect: allowing the client to specify any image. I'm not sure of the use cases for multiple images in gutters.

I am not sure about the use cases for multiple images in gutters either.


Mirror changes from dotnet/coreclr

This PR contains mirrored changes from dotnet/coreclr
Please REBASE this PR when merging
cc @filipnavara

@jkotas I accidentally re-added src/System.Private.CoreLib/shared/Interop/Windows/NtDll/NtQueryInformationFile.cs in the second commit. Can you remove it please?

Yes, I have noticed that too. Removed. Thank you!


test(@toss/react): Add useIsMounted Test Code

Overview
I wrote some test code that is very simple, but needs to return true when the useIsMounted Hook is mounted. 🙏
PR Checklist

[x] I read and included theses actions below

I have read the Contributing Guide
I have written documents and tests, if needed.

@ChanhyukPark-Tech
Unfortunately, I tried several times to test the default value of "false" for "mounted" and failed. 🥲
Does anyone have any good ideas for testing initialization?
I didn't find it first, and consulted libraries like "usehooks-ts".
usehooks-ts/useIsMounted
usehooks-ts/useIsMounted.test
That hook also doesn't test for default values, it only tests for "mount" and "unmount" situations.
However, currently toss/react's useIsMounted is managed by useState, so testing for the unmounted case is also limited...😭 (I think it's too burdensome to change the useIsMounted. )
I think it's a shame that there is no test code for default values.
However, I think it's better to have test code for the "mount" situation than no test code at all.

@ChanhyukPark-Tech
Yes, that's right! Thank you for the review 🎉


Adding a poster

hello
please how we can add a poster please !
its possible ?

use the PosterImg function.
echo PosterImg("driveurl");

please can you explaint how i can use it ? i see
$backup = 'https://drive.google.com/file/d/'.$gid.'/preview';
$posterimg = PosterImg($backup);
but not working

@pathboot Can you show scripts?

Use the function PosterImg($url); to grab the poster image


Unfilled ws-replace holes are not removed

If a template has
This should be replaced
 and this hole is not filled by .ReplaceThis(...) when instantiating a template, the div node gets inserted with the ws-replace attribute and all content intact.
Expected: not calling .ReplaceThis(...) should behave like calling .ReplaceThis(Doc.Empty), not including the element.

hi!
calling .ReplaceThis(Doc.Empty) is throwing the following exception:

TypeError: $1 is null

Replacing it by an empty element (say: .ReplaceThis(div [] :> Doc)) works fine.
Please, find the (partial) stack trace at the end and let me know if you want me to submit a new ticket.
Alex

Docs$1.InsertDoc/< - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3792:4
Arrays.foldBack - ArrayModule.fs:174:15
Docs$1.InsertDoc - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3790:309
Docs$1.InsertDoc - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3793:52
Docs$1.LinkElement - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3753:3
Docs$1.CreateElemNode - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3682:3
Elt.New - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:5344:8
Doc.Element - http://localhost:50621/Scripts/WebSharper/WebSharper.UI.Next.js:3908:10
...


Make Skia context usage a critical section on iOS.

Proposed Changes
Since there are no reliable repros, it's a speculative fix for the crash on iOS.
It's based on an assumption that the case for the crash is caused by render command encoding in a separate thread being performed after (or in parallel) with the context disposal on the main thread which leads to incorrect state inside Skia.
Testing
Test: see if issues persists.
Issues Fixed
Fixes: https://github.com/JetBrains/compose-multiplatform/issues/3862
Note
Skia is supposed to handle internal resources based on reference counting and assumed scenario shouldn't lead to the crash, since the context should be indirectly retained by the moment encoding starts.
Revert if issue persists because that logic would be redundant.

how should we test this?


SDK v32.0.0

[x] The purpose of this PR is explained in this or a referenced issue.
[x] The PR does not update generated files.

These files are managed by the codegen framework at Azure/autorest.go.

[x] The PR targets the latest branch.
[x] Tests are included and/or updated for code changes.
[ ] Updates to CHANGELOG.md are included.
[x] Apache v2 license headers are included in each file.

Can one of the admins verify this patch?


feature request: provide package prebuilt with static musl

If server is linked with static musl library, we can run it in OS shipped with older version of glibc.
The current server fails to start under centos 7, with error:
./neocmakelsp-x86_64-unknown-linux-gnu: /lib64/libc.so.6: version `GLIBC_2.29' not found (required by ./neocmakelsp-x86_64-unknown-linux-gnu)

Regards.

Emm. I am not good at ci.. maybe you can help add one

PR #32 , only for linux. :)


upgrade macos sierra but error

You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
How to solve this problem？？？？？？？？？？？

brew update. You shouldn't be seeing this warning anymore.

Also, please follow our troubleshooting checklist. This issue is not at all actionable because we currently know nothing about what you were trying to do and what error you encountered.


Fixed request of access token

Requesting an access token from Trustpilot's API was not working in the current version. According to https://documentation-apidocumentation.trustpilot.com/authentication, a POST request must be used rather than a GET request, as is used in the current version. In addition, the Bearer token was not being properly added to the headers array for the request. This version fixes both these bugs.

I am sorry for delaying merging your pull request. For some reason I didn't received the pull request notification.
Thank you for the contribution.


Simplify front import

Close #780

Bounty claimed: https://opencollective.com/generator-jhipster/expenses/64793

@nonomoho : approved !


Sub models direct in class scope

Feature Request:
class MyModel(BaseModel):
    data: int = Schema(..., example=123)

    # optional Details object
    @sub_model(name='details', annotate=Optional, schema=Schema(…, example={}))
    class Details(BaseModel):
        param: str

T = TypeVar('T')

class MyModel2(BaseModel):
    data: int = Schema(..., example=123)

    # optional list of Error objects
    @sub_model(name='errors', annotate=Optional[List[T]], schema=Schema(…))
    class Error(BaseModel):
        code: str
        message: str

Approximate solution:
class SubModel:
    def __init__(self, name, annotation, schema):
        self.name, self.annotation, self.schema = name, annotation, schema

def sub_model(name, annotate, schema):
    def decorator(model):
        annotation = annotate[model]
        return SubModel(name, annotation, schema)
    return decorator

And then in BaseModel metaclass we can detect SubModel-s in __namespace___ and use sub_model.annotation as annotation, sub_model.schema as schema and sub_model.name as field name.

seems feasible, not sure how we'd deal with the interpreting what T is.

Is there a reason you wouldn't just prefer this syntax?
class MyModel2(BaseModel):
    class Error(BaseModel):
        code: str
        message: str

    data: int = Schema(..., example=123)
    errors: Optional[List[Error]] = Schema(...)

@dmontagu you open my eyes :)
There is no reason for me to prefer the syntax you specified
I think this feature request can be closed

Great, sorry I didn't realise that wasn't clear.
In future, you can closes issues yourself as the author.


feed state does not report to owner, changefeed state does not changed

What did you do?
one changefeed, sync upstream tidb data to the downstream tidb, with differnet SQL mode.
What did you expect to see?
changefeed should be come error state, and can be known by changefeed list.
What did you see instead?
feed state manager can detect the error, but changefeed state does not changed, and changefeed list didn't show the error information.
Versions of the cluster
Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):
(paste TiKV version here)

TiCDC version (execute cdc version):
v5.3.1

/assign @asddongmen

/severity Major

This bug only exists in TiCDC <= v5.4.0, so it is reasonable to change its severity to moderate.
/severity Moderate

I will fix it in the next couple of days.


Add mapping for aws_lb_listener_rule

I just discovered during tests of pike that it doesn't have mapping for listener rule, so I created one :)

Thanks a million for the contribution


Typo in diagnostic message for file exists

Bug Report
When enabling traceResolution, there is a small typo with the message when a file exists. The s is missing in exists.
🙁 Actual behavior

"======== Resolving module './a.js' from '/project/main.ts'. ========",
"Explicitly specified module resolution kind: 'Bundler'.",
"Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File name '/project/a.js' has a '.js' extension - stripping it.",
"File '/project/a.ts' exist - use it as a name resolution result.",
"======== Module name './a.js' was successfully resolved to '/project/a.ts'. ========",

🙂 Expected behavior

"======== Resolving module './a.js' from '/project/main.ts'. ========",
"Explicitly specified module resolution kind: 'Bundler'.",
"Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON.",
"File name '/project/a.js' has a '.js' extension - stripping it.",
"File '/project/a.ts' exists - use it as a name resolution result.",
"======== Module name './a.js' was successfully resolved to '/project/a.ts'. ========",

I have a branch to fix it but I saw that I should not submit PR for the only purpose of a typo. Not sure what I should or should not do then.

branch: https://github.com/PerfectMemory/TypeScript/tree/fix/diagnostic-messages-typo
diff: https://github.com/microsoft/TypeScript/compare/main...PerfectMemory:TypeScript:fix/diagnostic-messages-typo?expand=1

AFAIK the ban on typo fix PRs mainly applies to typos in code/documentation (such as comments).  A typo in an error message on the other hand feels to me like a bona fide bug.  TS team has the final say, of course.

OK, then I submitted my PR #52464

Made another PR because some lib files weren't meant to be updated.

Thanks @sroucheray!


Add Google Analytics 4 and Universal Analytics Ecommerce translation layer

Additional plugin utility functions to be paired up with the GA4-UA-ee capability https://deploy-preview-14--snowplow-axl-ecom.netlify.app/accelerators/ecommerce/tracking/ua_ga4_migration/

This looks good to me, adding @jethron to have a look through too.


Add RandomState::new without any features

Closes #51
I reused PI constants for that but I think it is fine.

The general problem with this is it really seems like you are getting a Random keys by using RandomState but you might not depending on what flags are set in the compile process.

I do however like the idea of "generate_withmethod. What do you think of this: https://github.com/tkaitchuck/aHash/tree/random-state Sorry the diff is a mess, (it was not forked from master). Basically its taking thegenerate_with` method you have there and making it public.

Great idea !


Typo in the description of "context" parameter: missing "will"

"The debug host context which be associated with the newly created synthetic object."
Should probably be something like:
"The debug host context which will be associated with the newly created synthetic object."

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

ID: 60c4c1ae-7f91-9fbf-8b24-2be529ed8618
Version Independent ID: 13ac00e4-6b6b-bd48-acc1-7d625b64cd7c
Content: IDataModelManager::CreateSyntheticObject (dbgmodel.h) - Windows drivers
Content Source: wdk-ddi-src/content/dbgmodel/nf-dbgmodel-idatamodelmanager-createsyntheticobject.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @DOMARS
Microsoft Alias: domars

@jazzdelightsme - That wording is fixed here and in IDataModelManager2.  I will close this issue when the changes are live. You are always welcome to send a PR for changes like this.

@jazzdelightsme - The topic updates are live, so closing this issue. Thanks for the issue and your interest in the DbgModel docs.


Hanging Compilation of Brianvanleeuwen's bot

Every once in a while, brian v gets this forever:
We are compiling one of your bots. You have to wait until we have finished compiling your bot before you may submit another one
It's probably either that his bot archive was too large and so couldn't be uploaded or something to do with his use of install.sh.

duplicate of https://github.com/HaliteChallenge/Halite/issues/174


Add box for Alpha Tests

@ShweataNHegde @flower1430 Please check my updates commented in https://github.com/petermr/petermr/discussions/71#discussioncomment-6637733 and the suggestion for the Alpha Tests box at https://semanticclimate.org/p/en/docs/

👷 Deploy Preview for semanticclimate processing.

Name
Link

🔨 Latest commit
3e09a74fef7e7f85d0660fe682c460cb99f3aa3c

🔍 Latest deploy log
https://app.netlify.com/sites/semanticclimate/deploys/64d9d3cd80e3600007d257e8


fix: Multiple API call in reconcile

This fix the multiple API call when running reconcile.

@genoud Also i noticed we are doing fielddefinition API calls per object, is it a good idea to use metadata list
conn.metadata.list( [{type: 'CustomField', folder: null}], '49.0')


vendor: update go-stack to fix sigpanic when debugging with delve

when I tried using delve to debug and the follow the code execution in prometheus I hit this bug
https://github.com/derekparker/delve/issues/975
which is the same one as described in the follow up issue
https://github.com/derekparker/delve/issues/852
both of these are fixed in the v1.5.4 go-stack release and after the upgrade delve can be used to debug prometheus.
Signed-off-by: Krasi Georgiev<EMAIL_ADDRESS>

Thanks 👍


LogbookFilter flush buffer will make tomcat add Transfer-Encoding: chunked header

LogbookFilter flush buffer will make tomcat add Transfer-Encoding: chunked header
Description
HttpServletResponseWrapper.flushBuffer() changes output header in Spring-Boot:  (v2.5.4) with Tomcat
It adds Transfer-Encoding: chunked, and not allow Tomcat to insert Content-Length=0 with empty body responses.
Motivation and Context
As I see there is no need in executing HttpServletResponseWrapper.flushBuffer() in LogbookFilter (actually any HttpFilter)
Logbook logging works without it.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

This would reintroduce a regression fixed by https://github.com/zalando/logbook/pull/617

See also https://github.com/zalando/logbook/issues/603#issuecomment-540724918

I suspected that there are cases when this flush is mandatory.
But there are cases where it is not.
Maybe it should be property to flush or not to flush for those who struggle from tomcat?

@dartilla would you volunteer to add such a property?
It could probably sit under logbook.write..., e.g. logbook.write.response.flush-before-write, or could even make sense to use servlet in the name, as it's specific for servlets. E.g. logbook.servlet.flush-response-before-write. With default = true.


Empty structs don't compile in glsl

As near as I can tell, OpTypeStruct is allowed to have zero members. Glsl does not allow empty structs though so the attached code will fail to compile when translated.
I can easily work around this by adding a dummy member to empty structs so this isn't a big issue.
EmptyStructError.txt

Empty structs are kinda painful to deal with in various cases. I'll have a look and see if this particular case can be worked around.


mvn release fails in maven-plugin mariadb4j-maven-plugin-test-basic integration test

mvn release:prepare fails in https://github.com/vorburger/MariaDB4j/tree/master/mariaDB4j-maven-plugin/src/it/mariadb4j-maven-plugin-test-basic due to:
    [INFO] --- maven-invoker-plugin:3.2.2:run (integration-test) @ mariaDB4j-maven-plugin ---
    [INFO] Building: mariadb4j-maven-plugin-test-basic/pom.xml
    [INFO] [INFO] Scanning for projects...
    [INFO] [INFO] Downloading from local.central: file:///home/vorburger/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-pom/2.4.1-SNAPSHOT/maven-metadata.xml
    [INFO] [INFO] Downloading from local.central: file:///home/vorburger/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-pom/2.4.1-SNAPSHOT/mariaDB4j-pom-2.4.1-SNAPSHOT.pom
    [INFO] [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [INFO] [FATAL] Non-resolvable parent POM for ch.vorburger.mariaDB4j:mariadb4j-maven-plugin-test-basic:2.4.1-SNAPSHOT: Could not find artifact ch.vorburger.mariaDB4j:mariaDB4j-pom:pom:2.4.1-SNAPSHOT in local.central (file:///home/vorburger/.m2/repository) and 'parent.relativePath' points at wrong local POM @ line 6, column 13
    [INFO]  @
    [INFO] [ERROR] The build could not read 1 project -> [Help 1]
    [INFO] [ERROR]
    [INFO] [ERROR]   The project ch.vorburger.mariaDB4j:mariadb4j-maven-plugin-test-basic:2.4.1-SNAPSHOT (/home/vorburger/dev/MariaDB4j/mariaDB4j-maven-plugin/target/it/mariadb4j-maven-plugin-test-basic/pom.xml) has 1 error
    [INFO] [ERROR]     Non-resolvable parent POM for ch.vorburger.mariaDB4j:mariadb4j-maven-plugin-test-basic:2.4.1-SNAPSHOT: Could not find artifact ch.vorburger.mariaDB4j:mariaDB4j-pom:pom:2.4.1-SNAPSHOT in local.central (file:///home/vorburger/.m2/repository) and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]
    [INFO] [ERROR]
    [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [INFO] [ERROR]
    [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [INFO] [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
    [INFO]   The build exited with code 1. See /home/vorburger/dev/MariaDB4j/mariaDB4j-maven-plugin/target/it/mariadb4j-maven-plugin-test-basic/build.log for details.
    [INFO]           mariadb4j-maven-plugin-test-basic/pom.xml ........ FAILED (0.8 s)

(...)

    [INFO] -------------------------------------------------
    [INFO] Build Summary:
    [INFO]   Passed: 2, Failed: 1, Errors: 0, Skipped: 0
    [INFO] -------------------------------------------------
    [ERROR] The following builds failed:
    [ERROR] *  mariadb4j-maven-plugin-test-basic/pom.xml
    [INFO] -------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary for mariaDB4j-pom 2.5.0:
    [INFO]
    [INFO] mariaDB4j-pom ...................................... SUCCESS [  1.527 s]
    [INFO] mariaDB4j-core ..................................... SUCCESS [  3.964 s]
    [INFO] mariaDB4j (all-in-one artifact) .................... SUCCESS [ 54.943 s]
    [INFO] mariaDB4j-springboot ............................... SUCCESS [  1.808 s]
    [INFO] mariaDB4j-app ...................................... SUCCESS [  7.602 s]
    [INFO] mariaDB4j-maven-plugin ............................. FAILURE [ 26.438 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------

This blocks the release of the next version in #334.

So the IT can't find the parent POM? Maven is somehow confusing / not appropriately replacing the version numbers.
I've noticed that both the https://github.com/vorburger/MariaDB4j/blob/master/mariaDB4j-maven-plugin/src/it/start-stop/pom.xml and https://github.com/vorburger/MariaDB4j/blob/master/mariaDB4j-maven-plugin/src/it/start-stop-skip/pom.xml use some "magic" <version>@project.version@</version> (and equivalent for groupId and artifactId), and I'm wondering if that might do the trick for this.
@robin-xyzt-ai given your interest in the Maven Plugin in #476, would you be willing to contrib. a PR for this?

#494 fixed this problem.


[drake_cmake_installed] CMake error when building in release mode

I've been structuring my research projects using the drake_cmake_installed pattern. About 1 and a half years ago, I started getting this error when I was running cmake in release mode:
amazon@amazon-system-product-name:~/ClionProjects/drake-external-examples/drake_cmake_installed/build$ cmake .. -DCMAKE_PREFIX_PATH=~/drake-build/install -DCMAKE_BUILD_TYPE=release
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3.6")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable version "3.8.10", minimum required is "3.6")
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.10")
CMake Error at /home/amazon/drake-build/install/lib/cmake/pybind11/pybind11Tools.cmake:204 (pybind11_strip):
  Unknown CMake command "pybind11_strip".
Call Stack (most recent call first):
  src/simple_bindings/CMakeLists.txt:35 (pybind11_add_module)

-- Configuring incomplete, errors occurred!
See also "/home/amazon/ClionProjects/drake-external-examples/drake_cmake_installed/build/CMakeFiles/CMakeOutput.log".
See also "/home/amazon/ClionProjects/drake-external-examples/drake_cmake_installed/build/CMakeFiles/CMakeError.log".

It seems that pybind11_strip should be part of the pybind cmake scripts, but it's not installed in the pybind bundled with drake? Our workaround has been simply commenting out the line in cmake that calls pybind11_strip... which is not ideal, and could be the reason why we're getting "weak symbol" warnings after the bindings are built.
@RussTedrake

Adding these lines from pybind11 to drake/tools/workspace/pybind11/pybind11-config.cmake (e.g. like this) can solve the problem, but I'm not sure if that's the correct way to do it.

Howdy Pang! I am unable to reproduce your error. On my system, using v1.10.0:
$ cmake -DCMAKE_PREFIX_PATH=~/.local/opt/drake/v1.10.0 ..
# No problems.
$ make -j
# No problems.

I believe this may be a system-level dependency issue (either in /usr or /usr/local).
Is there any way you could reproduce this in a Docker or Apptainer container?
(here is how I use Apptainer, for better or worse: repro/.../apptainer_stuff)

I'm able to reproduce the error in a docker container:
https://github.com/pangtao22/quasistatic_simulator/actions/runs/3570809861/jobs/6002118367
The cause is the -DCMAKE_BUILD_TYPE=Release flag in the cmake command, which is missing in your run @EricCousineau-TRI .
Thanks for looking into this!


Unable to create webhook for core type

Bug Report
What did you do?
I am trying to add a webhook for an existing core resource but unable to do so. Reproducible with the following steps:
operator-sdk create api --group "apps" --kind "Deployment" --version "v1" --resource=false --controller=true
operator-sdk create webhook --group "apps" --kind "Deployment" --version "v1" --defaulting --programmatic-validation

What did you see instead? Under which circumstances?
Got the following error:
Error: failed to create webhook with "go.kubebuilder.io/v2": operator-sdk create webhook requires an api with the group, kind and version provided
Usage:
  operator-sdk create webhook [flags]

Examples:
  # Create defaulting and validating webhooks for CRD of group ship, version v1beta1
  # and kind Frigate.
  operator-sdk create webhook --group ship --version v1beta1 --kind Frigate --defaulting --programmatic-validation

  # Create conversion webhook for CRD of group shio, version v1beta1 and kind Frigate.
  operator-sdk create webhook --group ship --version v1beta1 --kind Frigate --conversion

Flags:
      --conversion                if set, scaffold the conversion webhook
      --defaulting                if set, scaffold the defaulting webhook
      --group string              resource Group
  -h, --help                      help for webhook
      --kind string               resource Kind
      --programmatic-validation   if set, scaffold the validating webhook
      --resource string           resource Resource
      --version string            resource Version

Global Flags:
      --verbose   Enable verbose logging

FATA[0000] failed to create webhook with "go.kubebuilder.io/v2": operator-sdk create webhook requires an api with the group, kind and version provided

Environment
Openshift v4.6.13
Operator type:
/language go
Kubernetes cluster type:
$ operator-sdk version
operator-sdk version: "v1.4.0", commit: "67f9c8b888887d18cd38bb6fd85cf3cf5b94fd99", kubernetes version: "1.19.4", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)
go version go1.16 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0+3b01205", GitCommit:"3b012051f912a6e29337c4087fcfc8161651690b", GitTreeState:"clean", BuildDate:"2021-01-16T09:10:53Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

As we spoke about core/external types are not fully supported yet and you need to create the api with resource true as a workaround and do manually the ajusts. See: https://github.com/kubernetes-sigs/kubebuilder/issues/1999

create webhook does not support core types yet, as this comment says. There should be an error returned by create webhook for core types until some library/convenience function/scaffold is created to establish core type webhooks.
/kind feature

Created an issue in kubebuilder to return an error: https://github.com/kubernetes-sigs/kubebuilder/issues/2141

Hi @estroz,

create webhook does not support core types yet, as this comment says.

I do not agree that is true. See; https://book.kubebuilder.io/reference/webhook-for-core-types.html
The KB/SDK CLI tool is what does not supported that because it is not implemented.

Hi @ahmedwaleedmalik,
See; https://book.kubebuilder.io/reference/webhook-for-core-types.html
The KB/SDK CLI tool is what does not support that because it is not implemented with IHMO should be addressed as part of RFE: kubernetes-sigs/kubebuilder#1999.  However, I hope that this doc helps you with.


Feature/dsnd 1799

CI: Security warnings found!

CI: Security warnings found!

CI: Security warnings found!


What changes should I make to the "Optimized Battery Charging" setting?

What is the issue? (required)
This isn't a "bug" per se - or maybe a bug in the documentation - or maybe I've just been unable to find it??
What exactly did you do to produce the issue? (required)
I've not actually installed the app yet; this is a "pre-install" Question
Expected behavior (required)
I would like to know how to set my "Optimized Battery Charging" option to allow battery to operate effectively. I am guessing that it should be turned OFF/Disabled, but cannot find anything in the docs to confirm that.
Maybe this should be addressed in the README.md file???
Screenshots (optional)
"Optimized Battery Charging" - ENABLED --OR-- DISABLED ?

Error logs
N/A
Did battery fail to install? Use tail -n 1000 ~/.battery/*/log instead.
N/A
Additional context (optional)
Add any other context about the problem here.

I've been looking for that in the documentation, but haven't found anything.
At least in Aldente it is necessary to disable the "optimized loader" for the application to work properly.

Aw, c'mon... this should be a simple question for anyone associated with development of this project... It's been 3 weeks now, and all I hear is "crickets".

That is the underlying idea. We are limiting with this application, we don't need anything different.

That is the underlying idea. We are limiting with this application, we don't need anything different.

?? What does that mean... could you please put that in plain English?

@aschiletus

That is the underlying idea. We are limiting with this application, we don't need anything different.

?? What does that mean... could you please put that in plain English?

What changes should I make to the "Optimized Battery Charging" setting?
You should keep it off.

 It's going nowhere, but apparently no one has grasped that as yet.
Outta' here!

 It's going nowhere, but apparently no one has grasped that as yet.
Outta' here!

Sorry for my bad English. I think we misunderstood something. The purpose of this project is simple and it does it in the best way. There is no need for constant updates because its purpose is clear and simple.

There is no need to enable Optimized Battery Charging anymore, as this app can do better.


Eq 3, Where is pi computed?

First of all: a very interesting work!
I looked through the code and I can't find in the implementation the computation expressed in formula (3) in the paper, that is pi. Specifically, I expect to see a dot product between normalized prototypes and hidden features.
I'd expect them in this part, before cross entropy:
                student_proj, student_out = student(images)
                teacher_out = student_out.detach()

                # clustering, sup
                sup_logits = torch.cat([f[mask_lab] for f in (student_out / 0.1).chunk(2)], dim=0)
                sup_labels = torch.cat([class_labels[mask_lab] for _ in range(2)], dim=0)
                cls_loss = nn.CrossEntropyLoss()(sup_logits, sup_labels)

                # clustering, unsup
                cluster_loss = cluster_criterion(student_out, teacher_out, epoch)
                avg_probs = (student_out / 0.1).softmax(dim=1).mean(dim=0)
                me_max_loss = - torch.sum(torch.log(avg_probs**(-avg_probs))) + math.log(float(len(avg_probs)))
                cluster_loss += args.memax_weight * me_max_loss

Instead, it seems like the logits are directly computed from the base network:
    def forward(self, x):
        x_proj = self.mlp(x)
        x = nn.functional.normalize(x, dim=-1, p=2)
        # x = x.detach()
        logits = self.last_layer(x)
        return x_proj, logits

I'd very much appreciate a clarification.

Hi, the logits are exactly what you are looking for. The last_layer plays the role of prototypes.


feat: partial imports, off values as control value

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes
Closes #2838.

Remove transaction from the import task
Create control values for mulrivariate features from LD's off values
Generic error logging

How did you test this code?
Modified relevant unit tests.

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (b0ef013) 95.60% compared to head (d3a00a0) 95.61%.
Report is 6 commits behind head on main.

:exclamation: Current head d3a00a0 differs from pull request most recent head 961baee. Consider uploading reports for the commit 961baee to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2864   +/-   ##
=======================================
  Coverage   95.60%   95.61%
=======================================
  Files        1009     1009
  Lines       28904    28910    +6
=======================================
+ Hits        27634    27641    +7
+ Misses       1270     1269    -1

Files
Coverage Δ

api/integrations/launch_darkly/services.py
100.00% <100.00%> (ø)

...s/unit/integrations/launch_darkly/test_services.py
100.00% <100.00%> (ø)

api/integrations/launch_darkly/tasks.py
71.42% <0.00%> (+4.76%)
:arrow_up:

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


Handle use declarations better in DocBlockParser

Handle group use statements
Fix swapped key/value for alias map

Current coverage is 94.71% (diff: 100%)

Merging #166 into master will increase coverage by 0.06%

@@             master       #166   diff @@
==========================================
  Files            31         31
  Lines           411        416     +5
  Methods          67         67
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            389        394     +5
  Misses           22         22
  Partials          0          0

Diff Coverage
File Path

•••••••••• 100%
src/NodeVisitor/DocBlockParser.php

Powered by Codecov. Last update 5213940...f4accfb


ORC-117 ConvertTreeReaderFactory gets an index out of bounds

ConvertTreeReaderFactory gets an ArrayIndexOutOfBoundsException when columns are added and types changed.

LGTM, +1


Add doesNotContainSequence and doesNotContainSubsequence to AbstractCharSequenceAssert

Check List:

Unit tests : YES
Javadoc with a code example (on API only) : YES
PR meets the contributing guidelines

Ping

Ping


Client credential: unsupported client authentication method

When executing below code block:
require 'oauth2'
client = OAuth2::Client.new("my_client_id", "my_client_secret", :site => "my_site_url", :token_url => "oauth2/token")
client.client_credentials.get_token

it gives the below error:
OAuth2::Error (invalid_client: Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method))
    {
      "error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)",
      "error_hint":"The OAuth 2.0 Client supports client authentication method "client_secret_basic", but method "client_secret_post" was requested.
      You must configure the OAuth 2.0 client's "token_endpoint_auth_method" value to accept "client_secret_post".","status_code":401
    }

I checked the using 'net/http' library, and my client_id & client_secrets are valid and working.
The only problem I see is with the authentication method as said in hint of above message,
The OAuth 2.0 Client supports client authentication method "client_secret_basic", but method "client_secret_post" was requested. You must configure the OAuth 2.0 client's "token_endpoint_auth_method" value to accept "client_secret_post"

I checked through the code for -

How can I specify client_secret_basic as client authentication method OR
How can I specify token_endpoint_auth_method to accept "client_secret_post"

But I did not find anything for this. Is this something we need to add to gem?

@kumartushar I haven't looked into it yet, but have you tried this already?  Based on the error, I think this might work:
client = OAuth2::Client.new(
  "my_client_id",
  "my_client_secret",
  site: "my_site_url",
  token_url: "oauth2/token",
  token_endpoint_auth_method: "2\. client_secret_post"
)


Using different source

Hi!
More than an issue this is a question, is it possible to use a different audio source? like an external microphone??
Thanks!

The library is simply a wrapper around the SpeechRecognizer API provided on Android and from what I know I don't think it's possible.


Added optional flag for linking curses with readline.

On some Linux systems, -lcurses is required in addition to -lreadline. LINK_CURSES adds this (optionally) both to yosys and abc. This is a problem that has been recognized by ABC as well on their bitbucket page.
I'm not sure if this is the best way to go about adding it, but I think it's a good start.

This is a bug in the distributions readline package and should be fixed there. Each .so should contain its own runtime linker dependencies.

I'm not sure if this is the best way to go about adding it, but I think it's a good start.

It should be fixed by correcting the distributions readline package, not patching every user of it.

According to this RedHat post, the reason readline isn't linked against curses is not because it's a misconfigured package, but because readline can be linked with either termcap or curses at compile-time. Picking one in the .so would break binaries that require the other backend. Essentially, it's not a bug, it's a feature. :)
Regardless, does this mean that distributions with 'bugged' readline packages are completely unsupported by this project? I would really like to have support for this added, or at the very least, have some information about this known issue added to yosys.
The reason I chose to write this into the makefile is because my current build method is:

make config-gcc,
make,
edit the abc makefile to add lcurses,
edit the yosys makefile to add lcurses,
edit the yosys makefile to change ABCREV=default,
make,

which is repeated on every clean build, when it should be:

make config-gcc
make

Would it be possible to expose variables that could be set from the environment that would add lcurses to both abc and yosys builds?

because readline can be linked with either termcap or curses at compile-time [..], it's not a bug, it's a feature. :)

Interesting. Thanks for pointing that out to me.


Need Hierarchical Categories and Nodes

What are the steps to reproduce?
Just open any existing project, you know it
What happens?
Add new feature
What do you expect to happen?
Currently, Node-RED only allows flat structured categories, that restricts the possibilities of forming complicated category-category and category-node relations.
As development work accumulates and number of nodes increases, a flat structured design poses limits.
It would be nice to have sub-categories or great-sub-categories inside existing core categories or new categories. So that even if user doesn't recall a particular node's searchable phrase, as long as she/he recalls a super-category or great-super-category, they would be able to locate or target those categories.
Please tell us about your environment:
Mac OS and Linux Ubuntu

[ ] Node-RED version:
[ ] node.js version:
[ ] npm version:
[ ] Platform/OS:
[ ] Browser:

I think this would be a great addition, though it might be logistically difficult to implement as a default hierarchy.
A more flexible approach would be to allow for a user-configurable grouping, like a "Favorite Nodes" feature.  This would provide similar functionality as the original suggestion, but should be less disruptive to implement.
Such a feature might look like:

Tab on the nodes listing to switch between existing categorical/full view and new 'favorites' menu
User can right-click (or long touch) on any node in categorical view and 'Add to Favorites'.  A submenu can provide the ability to directly choose folder/subfolders. There are plenty of JS libraries to implement such menus -- and such right-click menus would be useful elsewhere in the UI as well.
User can edit favorites at any time to add/remove/move entries between preferred categories with arbitrary nesting of folders/categories.
User can place a single node in multiple folders under their 'Favorites' if desired.
Favorites list can be imported/exported

As per our contribution guidelines (that are shown in the issue template presented when opening a new issue), discussions around feature requests belong on the forum.
I'm closing this issue to ensure discussion is had in the right place.


issuing_jurisdiction check against stateOrProvinceName in DS certificate

I believe that the existing check which matches the issuing_jurisdiction property agains the stateOrProvinceName in the DS certificate is not supposed to run if the issuer certificate does not include the stateOrProvinceName in the subject field.
From the spec:
If device retrieval is used, if the mDL reader retrieved the “issuing_jurisdiction” data element, it shall
verify that the value of that element matches the stateOrProvinceName element in the subject field
within the DS certificate (see Annex B). This is only required if the stateOrProvinceName element is
present in the DS certificate.
If server retrieval is used, if the mDL reader retrieved the “issuing_jurisdiction” data element, it shall
verify that the value of that element matches the stateOrProvinceName element in the subject field
within the JWS signer certificate (see Annex B). This is only required if the stateOrProvinceName
element is present in the JWS signer certificate.

good catch, thanks for reporting us!


feat(phase-compile): disable ijar for scala3

Description
Disable ijar build on non-scala2 builds.
Full .class is required for scalac on scala3 to compile.
Motivation
This is a prerequisite for enabling scala3 support.

Thanks, @mantasak


Support character portraits in dialog

Should probs be part of Page. Static portraits are good enough for the moment.

#285 makes this a job of a custom Dialog View that anyone can implement.