Problem in using didChangeAppLifecycleState

I am creating a app that will show me the current states of the app like resume pause and others
Expected results: i want to see app state like app is running in background and foreground idle and other also and it will be change when the app state change
Actual results:

Code sample
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance!.addObserver(this);
    debugPrint("Test 1");
  }

  @override
  void dispose() {
    super.dispose();
    WidgetsBinding.instance!.removeObserver(this);
  }

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    super.didChangeAppLifecycleState(state);
    debugPrint("App Lifecycle State : $state");
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Flutter Demo Home Page'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            Text(
              'Just shwo some text',
            ),
          ],
        ),
      ),
    );
  }
}

Logs
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at w[s://<IP_ADDRESS>:60779]()/9XlaNsddmxY=/ws
I/flutter (21004): Test 1
E/ion     (21004): ioctl c0044901 failed with code -1: Invalid argument
I/m.example.test(21004): ProcessProfilingInfo new_methods=997 is saved saved_to_disk=1 resolve_classes_delay=8000
I/GED     (21004): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 29, oppidx_max 29, oppidx_min 0
2
V/PhoneWindow(21004): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@fd323ab, this = DecorView@3067a08[MainActivity]
I/flutter (21004): App Lifecycle State : AppLifecycleState.resumed
I/flutter (21004): App Lifecycle State : AppLifecycleState.paused

λ flutter analyze
Analyzing testy...
No issues found! (ran in 101.3s)

'fltter' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\User>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.2)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.66.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

• No issues found!

#after some use case the didChangeAppLifecycleState stop working some time it's work three time five time and sometime never calls other also work very show i am using poco m2 mobile in win10 64bit IDE vs code

Hi @KK-Karan-Kumar, Thanks for filing the issue. If I understand it right, You don't get notified of app state change if the app is idle for sometime is that correct?   Can you please share how long was the app idle and was it in foreground or background when you left it idle?

@maheshmnj around 1 sec when app once go in background didChangeAppLifecycleState stop working then i start app it's doesn't show the status

Thanks for the update @KK-Karan-Kumar, However, I am unable to reproduce the issue. I do see the app state when I move it to the background or even lock and unlock the screen with a few minutes of idle time,  Verfified on Xiaomi k20 pro (Android 11). Would it be possible for you to check if this issue occurs on another devices or emulators too?

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 2.10.5 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (12 hours ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 2021.1)
    • 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.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:55555                    • android-arm64  • Android 11 (API 30)
    • iPhone 12 Pro (mobile) • 535317A4-921C-488F-B234-C2CC6D4AE5A1 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 100.0.4896.88

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Customizable subset name for workfiles.

add host name to get_subset_name library method.
get subset name from library method in AE, Harmony, Maya, Nuke and Photoshop.

All of these instances probably should be created before Collect Avalon Entities is executed (they should be created in precollecting part in future) which is not possible right now because of asset_id for get_subset_name.
I think asset_id was added to get_subset_name to be able use asset data for filtering of subset name templates (not yet implemented).
So question is if we can change subset name in different collector after precollection or get rid of idea filtering subset name template by asset data or move asset document collection to precollecting part (may be slow).

All of these instances probably should be created before Collect Avalon Entities is executed (they should be created in precollecting part in future) which is not possible right now because of asset_id for get_subset_name.
I think asset_id was added to get_subset_name to be able use asset data for filtering of subset name templates (not yet implemented).
So question is if we can change subset name in different collector after precollection or get rid of idea filtering subset name template by asset data or move asset document collection to precollecting part (may be slow).

I'm impartial to this, so it'll be a decision between you and @mkolar


How can I import the d3dbsp file to unity?

I can't figure out how to import the unzipped d3dbsp file from for ex.: iw_03.iwd to unity.
Can you explain me please?
Thanks

It's been a while but you should be able to open the .iwd with a zip file reader and extract the files. You can then just place them in the project folder and Unity will import them automatically.


Refresh token missing on google_sign_in package

Hey all, is there any way to retrieve refresh token from the flutter package: google_sign_in because it is not there in the credential. I also tried firebase authentication but the refresh token for user is also empty.

@BoonJunTan
There's similar open issue describing your case, https://github.com/flutter/flutter/issues/15796
Please follow-up there for updates and for any questions.
Closing this as duplicate.


Remove analysis mode functionality and documentation

Since we are splitting into 2 different extensions, this repo will only include protection mode functionality, so we need to remove analysis mode functionality

Once we have done some initial testing (#382), please open a PR, @katehausladen. To bring the new version to the main branch. And we should also do a new release at some point (probably, once we have the testing framework up and running).

Also, @katehausladen, it would be good if you can update the readme and any other documentation (Wiki?) to remove descriptions of the analysis mode.

I updated the readme and architecture files and opened a PR. The Wiki doesn't need to be changed.


known_hosts cleanup

Is it possible if, on vagrant up or vagrant destroy, this plugin could remove the applicable IP address from ~/.ssh/known_hosts file.

@simesy I think it's a good idea to clean up known_hosts file upon vagrant halt or destroy. I have added some functionality here. The fix only works with *nix systems as there is no definitive path (at least I'm not sure) for ssh known_hosts file on windows!


Example with openAI client and locally deployed LLM returns "Failed to deserialize the JSON body into the target type: tool_choice: data did not match any variant of untagged enum ToolTypeDeserializer"

[X] This is actually a bug report.
[X] I am not getting good LLM Results
[x] I have tried asking for help in the community on discord or discussions and have not received a response.
[X] I have tried searching the documentation and have not found an answer.

What Model are you using?

[ ] gpt-3.5-turbo
[ ] gpt-4-turbo
[ ] gpt-4
[X] Other -> "Llama-3.1-70B-Instruct" locally deployed with TGI

Describe the bug
I am trying the very first example of Instructor library but with a locally deployed model endpoint. I get the following error:  InstructorRetryException: Failed to deserialize the JSON body into the target type: tool_choice: data did not match any variant of untagged enum ToolTypeDeserializer at line 1 column 161
To Reproduce
python 3.10
instructor 1.6.3
import openai
import instructor
from pydantic import BaseModel

class User(BaseModel):
    name: str
    age: int

instructor_client = instructor.from_openai(openai.OpenAI(
                                base_url="http://<IP_ADDRESS>:8080/v1",
                                api_key="unused",
))

user = instructor_client.chat.completions.create(
    model="Llama-3.1-70B-Instruct",
    messages=[
        {"role": "user", "content": "Create a user"},
    ],
    response_model=User,
)

print(user.name)
print(user.age)

Expected behavior
I would expect the user to be a valid BaseModel json schema but the instructor_client.chat.completions.create() call is not working.
Other details

My local model endpoint works perfectly when calling it using the openAI client like this:

client = openai.OpenAI(
            base_url="http://<IP_ADDRESS>:8080/v1",
            api_key="unused"
            )
response = self.client.chat.completions.create(
               model="Llama-3.1-70B-Instruct",
               messages=[{"role": "user", "content": "Create a user"}])

print(response.choices[0].message.content)

If the problem is related with my locally deployed model, can someone show me how to use instructor library with a locally deployed model? The final objective for it to work is to apply it when using deepeval framework.

did you manage to solve this issue?


Cloud Optimize times out

Workload and Collections created as directed (~1,000 hosts) but 'Analyze Run', runs for 15-20 minutes and spits out a FAILED message. No other errors or failure messages.

@EricCapponi thanks for raising, I think this issue has been patched in the backend on a later release. Are you able to test again and advise if the issue is still occurring? Thanks


autodetect swagger base path

autodetect swagger base path by finding swagger.{yml,json}

generate client and server commands detect swagger.{json,yml}


go get error

Throws an exception when I execute go get github.com/alexflint/gallium
Go build github.com/alexflint/gallium: invalid flag in #cgo LDFLAGS<EMAIL_ADDRESS>
I can't find the specific reason now, I don't know where to start.
go version: go version go1.10.3 darwin/amd64

Did you install git-lfs before running go get?

Yes, these commands are executed successfully, no problem
Alex Flint<EMAIL_ADDRESS>于2018年9月16日周日 上午7:32写道：

Did you install git-lfs before running go get?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alexflint/gallium/issues/63#issuecomment-421653901,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZhZeMmR-9hzkfBdsXdaSjnZZL5zn_tYks5ubY4cgaJpZM4WoqSa
.

Same here
$ go version
go version go1.10 darwin/amd64
$ git lfs install
Git LFS initialized.
$ go get -v github.com/alexflint/gallium
github.com/alexflint/gallium
go build github.com/alexflint/gallium: invalid flag in #cgo LDFLAGS<EMAIL_ADDRESS>

Just revert back to go1.9 and go get works fine

Seems like this is a result of a security-related patch in go 1.10 that whitelisted specific cgo comple/link flags: https://github.com/golang/go/issues/23749


populateDefaults not working on extensions

It seems, extending SiteConfig with a file and having a populate defaults breaks the build because SiteConfig is setup before File?

I've run in to this type of problem before and finally tried to get to the bottom of it. populateDefaults() shouldn't get called while the database tables are getting built, but it does. I think I've tracked down the cause but not sure the best approach for a fix.
Background
The singleton() function from Core.php is used during the build process to create a singleton instance for each class that needs a table in the database and uses Injector::get($className) to do so.
The DataObject class allows a second argument $isSingleton in its constructor which is used to limit the amount of initialisation done on a new instance. Notably if this is set to true it prevents populateDefaults() being called.
The problem is that singleton($className) results in an object being created with no arguments passed to the constructor. This means $isSingleton is assumed to be false, which leads to populateDefaults() being called and an SQL error thrown if required tables aren't built yet.
Solution...?
Think we need to fix something about how we approach singletons but I don't know if this is something that should be addressed in the Injector, build process, or if it's a broader architectural concern. @silverstripe/core-team any thoughts?

I think @jonom might have the right idea; Although we haven't been very careful in how we apply singleton construction to dataobjects.
We do have the Object::singleton() method, which COULD be overridden in DataObject to force supply the true value to the DataObject constructor's $isSingleton parameter. Then we could just make the schema update mechanism use $dataClass::singleton() instead.
On the other hand, it still feels over-engineered, but it will solve the problem in this case.

@Firesphere also if you have a custom populateDefaults, you may want to include some basic DB smoke testing to return; if certain required schema isn't available.

Wouldn't it be a more elegant solution, to really move the population to the "creating default records" part, after the actual build of the database?

populateDefault() is a mechanism for all dataobject instances created on the fly; It's not something you can pre-generate once and never have to set again.

I must admit, it's almost 11PM for me, the idea just came to mind ;)
We'll leave it for now :) Let's talk about it next month :) I think there's quite some improvement to be made if it's well thought-out (is that a useable word in English?)

I think we also need a better database is ready check for code that does bootstrapping, and could also run during dev/build.

Agreed - Security::database_is_ready( ) only checks that a handful of tables are ready, the ones that are required for checking privileges. This worked for https://github.com/silverstripe/silverstripe-blog/pull/140/files because we were only interested in Member but I don't think we have an equivalent check that all tables are built and ready?
DatabaseAdmin::autoBuild() seems to provide an implementation of this functionality although it relies on file modification times... might be nicer if we could check the db directly instead.
If we had this method I suppose the $isSingleton argument could be made redundant at least as it pertains to populateDefaults() as we could check that the database is ready instead of checking whether $isSingleton is true, and populate defaults regardless whether it's a singleton or not?

Just another random thought, I haven't looked into it. But isn't it an option to have the defaultRecords check if the database exists, and if not, put the to-create default records at the end of a queue?
A bit like Chris his demoed async PHP methods, although it would require a HUGE rewrite I guess, it would queue the actions, and if the action throws an error, requeue it to retry at a later point.
I know it's not ideal. But I'm unsure if there even is a perfect solution to this. Especially if some module has dependencies back and forward dependencies, it would become an endless queue.
I also agree with @jonom, the autoBuild should rely on the actual difference between the database and the declared records, not the modification-time. Although I think that should be a different issue.

requireDefaultRecords() is already run only after the database is fully built - this is the only time it happens I believe. The problem is that populateDefaults() (i.e. populate default values) is getting called needlessly while the tables are being built.

Well, I would personally go for a pragmatic resolution. One that works and takes the least time ;)
It's not something that's out of the ordinary. In this case, I think just running it after the database build would suffice just fine.
Just a thought. It shouldn't be overly complex for developers to use I'd say.

I think the problem is that, at times, SiteConfig::current_site_config(); is getting called before the DB is ready.
In the past we've just hoped that this is never invoked, but it still happens from time to time.

@Firesphere can you provide example of code that causes the break? Does the table building process get partway through before erroring or not even start up? If it's the former I think the cause is probably populateDefaults() getting called on SiteConfig while it's tables are being built but if it's the former @tractorcow could be on to something.

As far as I can see, Werner's Folder-Per-Page breaks on my NewsModule. At least the previous version did.
Here's the commit which originally broke the build.
https://github.com/Firesphere/silverstripe-newsmodule/commit/7374e77d1126174785be0b36756de2c864f585b9

@Firesphere are you on SS3.2? My module didn't run on 3.2, thanks to travis i noticed this and hopefully fixed it.
While running tests on it I also had to de-install your news module, cause they didn't run because of this populateDefault issue...

Yes, 3.2 but also 3.1 has this issue. It's the Populate Defaults that causes it. See the commit mentioned above for a temporary fix.

I wonder if we could shiv a "treat db as incomplete" param to the command line args of sake dev/build. :P

I just ran into this for a project of mine as well. The dev/build runs through the page creation until it hits a model that uses SiteConfig within it's populateDefaults() and errors at that point, preventing it from continuing.

This might still break if you add an extension that adds a column to SiteConfig; The table will exist, but attempts to query it will probably fail.

@tractorcow, great point - and that is actually how I originally ran into this issue, but my workaround worked when re-building the database for this project, so siteconfig didn't exist then.

I've run in to this problem again today. @tractorcow what do you think of this solution? https://github.com/jonom/silverstripe-framework/commit/bc8d5be536cfa2a883feb3b02598e62fcfe4f9fa

I think the idea is in the right direction, but we probably need a more robust "table can be queried" check.
The problem is expense. I would go so far as to say that we should probably just allow errors to blow the site up when NOT performing a dev/build. However, actually do this check when tableBuildInProgress() is true, as we can't realistically query the whole DB schema every request.
It also feels risky to assume that the schema is invalid just because tableBuildInProgress() is set. Sometimes (e.g. when checking if the member is allowed to dev/build) we need to query these tables.
Security::db_is_ready was a prior attempt at this. I'd look at replacing this functionality at the same time into a consistent API.
Maybe it would be on DataObject::schema_ready(), which you could call on various dataobjects?

@tractorcow I agree with everything you're saying, I just don't have the resources to come up with a more robust solution at the moment. However, the root of this particular issue is a bug in singleton production and I think I may have a fix for that, which in turn solves this issue. I can never seem to get all tests to run locally so I've opened a PR to let them run: https://github.com/silverstripe/silverstripe-framework/pull/5151

Oh, I realise this... and I'm in the same situation, or I'd have love to address this myself.
I think your fix is fine, and I've left a comment on it.

This is still broken in 3.6 so I opened a new PR at https://github.com/silverstripe/silverstripe-framework/pull/7850

@dhensby should this be re-opened as a separate fix is needed for 4?

maybe - is it actually the same issue, though?

I think so: (emphasis mine)

extending SiteConfig with a file and having a populate defaults breaks the build because SiteConfig is setup before File?

The issue is that populateDefaults() is being executed on singletons during the 'Creating database tables' step of the build. populateDefaults() should be called during a build, but not until the 'Creating database records' step, when the tables have been built and we're working with real/non-singleton/prototype (I don't know the right term) objects. So it shouldn't matter if SiteConfig is setup before File, it's only an issue because populateDefaults() is running when it shouldn't.

Simpler solution:
when in a DatabaseSchema::schemaUpdate() code block, set a ready flag on the database to false. If you absolutely need to invoke DB queries during populadeDefaults(), you should query this prior to execution.
Putting this temp state within the callback for schemaUpdate() ensures a db is only forced to ready=false during known "unready" states, without having to actually query the DB schema to see if it's dirty.

We deprecate Security::database_is_ready() and request users use DB::get_conn()->isReady() instead.

Let's not go creating new DB APIs just to replace them in 5.x ;)

well that depends what you want in 5.

Is this fixed or any work around? I have a DataExtension on SiteConfig but doesn't seem to populate the defaults.
I have tried private static $defaults = [...] and populateDefaults() nothing works.

The underlying issue is a duplicate of #1575.

you can use onAfterWrite:
eg:
public function onAfterWrite()
{
parent::onAfterWrite();
if(!$this->owner->Country) {
$this->owner->Country = 'gb';
$this->owner->write();
}
}


User activation page layout

User activation page layout is not inline with the layout of site as in the next picture

Changed in orther to be inline.


Build fails on certain MSBuild commands from folder with spaces - "Only one project can be specified"

What You Are Seeing?
Calling certain MSBuild commands that receive a project sends a switch with no escaped spaces or special characters, causing MSBuild to fail.
What is Expected?
Successful building! :)
What version of Cake are you using?
0.15.2
Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on?  Windows? Linux? Mac?
Windows
Are you running on a CI Server?  If so, which one?
Nope, local.
How Did You Get This To Happen? (Steps to Reproduce)

Created a build script to build a series of C# Solutions and Projects.
Script executes correctly
Try to compile on a machine where the solutions' path includes a space, and compilation fails on the project, with the MSBuild message "Only one project can be specified"

Code excerpt at https://gist.github.com/josemaia/b5ceede38cc3e72e0a61f610b52c9e36
The failure is on l. 44 (see Output log).
When investigating the issue, I detected a series of StackOverflow and similar questions where this happens via the command line, however, I could not manipulate the way Cake sends its parameters to MSBuild. See: http://stackoverflow.com/questions/16979137/msbuild-error-msb1008-only-one-project-can-be-specified-in-teamcity or http://stackoverflow.com/questions/3779701/msbuild-error-msb1008-only-one-project-can-be-specified.
Output Log
https://gist.github.com/josemaia/d2d27396c313aac0bc9c1d56b68fae24

@josemaia Have you tried to quote the PackageLocation property? It looks like this at the moment: /p:PackageLocation=E:\um teste\DEV\build-package\Release

As shown in the code sample, I am doing this to add the property to the MSBuild object:
    .WithProperty("PackageLocation", new string[]{packagesDir.ToString()  })

Is there any way I could ensure this is quoted? I attempted to insert ' and " in several places, but it did not work as desired.

Try .WithProperty("PackageLocation", new string[]{packagesDir.ToString().Quote()  })

Looks like the .Quote() method did it!
I was unaware it existed, thank you.


2 way Data Binding not working when using ng-fullcalendar twice in an application

Hi There,
In my current application, I can select 2 calendars ( two different components ).
When I fire (select) event in one calendar it's firing in another calendar two .
<ng-fullcalendar #ucCalendar [id]="getCalendarID()" [ngClass]="getCalendarClass()" (select)="onSelectFunction($event, $event.detail)" [options]="calendarOptions" (eventClick)="eventClick($event.detail, $event)" (dayClick)="dayClick($event.detail)" (contextmenu)="onContextMenu($event, $event.detail)"         (clickButton)="clickButtonEvent($event.detail)" (dayRender)="dayRenderFunction($event.detail, $event)" (eventRender)="eventRenderFunction($event.detail, $event)" (clickButton)="clickButton($event.detail)" (eventAfterRender)="oneventAfterRender($event.detail, $event)"         (eventResize)="eventResize($event.detail)" (eventDrop)="onEventDropOrResize($event)" (eventDragStart)="oneventDragStart($event.detail)" (eventDragStop)="oneventDragStop($event.detail)" (drop)="onEventDrop($event.detail)" (eventMouseover)="onEventMouseOver($event)"         (eventMouseout)="onEventMouseout($event)" (viewRender)="onViewRender($event)">     </ng-fullcalendar>
Can any one tell me why it happens?
Thanks

still an issue?

this issue deprecated.
<EMAIL_ADDRESS>released without Jquery,
try use<EMAIL_ADDRESS>with fulcalendar plugins


Updated Farthest on Circle tools

Updated the Farthest on Circle tool (in 10.4 toolbox of Maritime Decision Aid Tools for ArcMap) in the suitability folder to support input of bathymetry data. The user inputs their bathymetry data, and depth, and this is used as the cost raster for calculating the farthest on circle of the vessel. New Tool is called:
-Farthest on Circle with Depth Limits.

Updated the Farthest on Circle tool (in Maritime Decision Aid Tools toolbox) in the suitability folder to support input of bathymetry data. This was created for ArcGIS Pro.  The user inputs their bathymetry data, and depth, and this is used as the cost raster for calculating the farthest on circle of the vessel. New Tool is called:
-Farthest on Circle with Depth Limits.

@jfrygeo So this is a new tool that needs a new test written?

Correct, this a new tool with some enhanced functionality from the farthest on circle tool. The user inputs a Bathymetry file and a depth for the vessel and the output is a farthest on circle with impedance of depth.
Sent from my iPhone
On Oct 7, 2016, at 9:35 AM, Matt Funk <notifications<EMAIL_ADDRESS>wrote:
@jfrygeohttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jfrygeo&d=DQMCaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=LOFtvHGMxkJ_DWps2cZi-A&m=GqEwnNWvyy4Toun9rz1wvtMsJ9whSEyEvmHwsF3U-OI&s=LG9hhKW37Qw1aJmvG0ZClNQZTgkQvvoZQ1sMZnazgLM&e= So this is a new tool that needs a new test written?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_solutions-2Dgeoprocessing-2Dtoolbox_pull_462-23issuecomment-2D252284996&d=DQMCaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=LOFtvHGMxkJ_DWps2cZi-A&m=GqEwnNWvyy4Toun9rz1wvtMsJ9whSEyEvmHwsF3U-OI&s=SlBH1p361A78FEyKxWqWnj0Ybn3JSjYYJel1-0PWTOs&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AE1u-5FkSuXT8GFUMbSaNJais5f9ypxikBks5qxmaxgaJpZM4KKWmr&d=DQMCaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=LOFtvHGMxkJ_DWps2cZi-A&m=GqEwnNWvyy4Toun9rz1wvtMsJ9whSEyEvmHwsF3U-OI&s=w6x9wUPY7mNkyOGN3hqdBkzIuXhwzTl3DNEUjVhZ26M&e=.

@jfrygeo in future would it be possible to make the Range for Analysis in Nautical Miles and * Average Speed in Knots (kts) for Analysis* as Doubles instead of Strings?
Also consider shortening the names of the parameters (easier to fit in the dialog), Including the parameter direction,  eg. Output Hours or Transit Raster,  Analysis Range (nautical mi.), Average Speed (knots).


Add UI click sounds

Requires https://github.com/space-wizards/RobustToolbox/pull/4705
Final video pending but this is the idea:
https://github.com/space-wizards/space-station-14/assets/31366439/a08b2cc7-e490-4295-9bdc-85c36b36e597
Another draft:
https://github.com/space-wizards/space-station-14/assets/31366439/df1ae295-b165-434e-b555-ce0608c33e32
TODO:

[x] Fix all the ways to press UIs.
[x] Make SetXSound a cvar instead probably.

:cl:

add: Added sounds to UI clicking and hovering.

would be cool if you could upload your own custom sounds to be used locally for this, the closest example i can think of is having custom crit sounds in tf2

i feel like the hovering click noises should be muted a little, right now its a bit jarring

i feel like the hovering click noises should be muted a little, right now its a bit jarring

There's an audio slider and I decreased the default from the video posted to roughly half.

Might remove the context menu hover sounds as it might be too much audio spam.

Overall, I am not a huge fan of introducing these sounds into such a UI-heavy game, especially as the station around you is likely to be bathed in a cacophony of random noises already. Many, many games have sounds for UI interactions, but not all need it. I would find it distracting and unpleasant and it would do nothing to increase my engagement with anything.
To my mind the two most important considerations are:

Whatever sounds are selected, they must be short, gentle and subtle. In your videos, the first example sounds like a message notification from Discord or something, extremely confusing. The second example feels shrill to me.
There must be a way to disable or turn down these sounds in isolation. Some people, such as yours truly, have auditory filtering difficulties - basically, my brain struggles sometimes to immediately distinguish between audio sources and can't easily filter out specific sounds. Having to deal with UI sounds on top of all the other space station chaos, I might cry.

@arimah
The first example appears to be more a shitpost than anything else, aye. The second video contains the sounds currently in the PR.
The PR also already contains an audio slider! When/if this PR is merged, it'll be straight-forward to slide the interface volume slider wherever you please

Might remove the context menu hover sounds as it might be too much audio spam.

Idk about having inconsistencies like that, maybe make the sound slightly longer and make it only play one or two sounds at a time? That way there is no overlap

i dont super love the keyboard click sound but the hover sound is wonderful

click sound was changed, sounds better imo and good to merge i thinke

with engine update

wooo


Arbitrary Strings Not Properly Encodable

Environment

PureScript 0.12
Pulp 12.2.0
purescript-strongcheck 4.1.1

Hi Folks, I have ongoing work to deal with string encoding for the purpose of supporting cryptography in purescript, and I am attempting to isolate the cause of the problem I encounter.
I suspect currently that the cause of the problem is actually in the way that quickcheck generates strings via Arbitrary. That is to say, that generating randomly ordered CodeUnits (purescript Char), is not truly compliant with the way UTF-16 strings should be encoded. If we wanted to join randomly generated strings, these should be the (potenitially) multi code-unit strings, aka CodePoints.
I think the best solution would be to redefine arbitrary string such that it is generated from Code Points, not Code Units. None of which should fall in the  U+0000 to U+D7FF range.
I will be happy over the weekend to write the PR should I find time and there are no objections raised here. It will also be used to verify my theory by using it with existing text encoding work I've done.

Thank you for reaching out and I'm certainly interested to see this! Does the same issue affect QuickCheck as well? They're quite similar.
The primary thing I'd watch out for is performance. Code points are much less efficient than code units, and while correctness is usually preferable -- and especially so for a testing library! -- if performance drops off a cliff we'll have to figure out how to work around that.


[iOS] Mistral support

This PR concludes Mistral support on iOS (q3f16) with sliding window attention. Tested on iPhone 14 pro max. Uses full context (4K SW tokens) with 128 of chunk size, making it consume less than 4GB of memory.
Mistral iphone lib: https://github.com/mlc-ai/binary-mlc-llm-libs/blob/main/Mistral-7B-Instruct-v0.1-q3f16_1-iphone.tar
Mistral q3f16 weights: https://huggingface.co/mlc-ai/mlc-chat-Mistral-7B-Instruct-v0.1-q3f16_1

Did a quick test, seems we still have some memory and speed issues, so would be good to followup a bit.


React 16.x compatibility

removing unnecessary "ref" property that made this plugin incompatible with React 16.x (see issue #13 , #12 )
getting rid of "lodash" as a dependency

@corpix Any chance this could get merged in?

Thank you, I have cherry-picked your changes


Multi-datacenter deployment tutorial

Once expressive zone configs are live, we should write another "core feature" tutorials on multi-datacenter deployment.

The perf tuning tutorial covers this.


Patient snippets - birthPlace extension - fixes

Issues

comment should point to International extension not AU Base (https://github.com/robstwd/fhir-snippets/blob/main/snippets/FHIR-Patient-examples.code-snippets#L92)
remove from AU Core snippet as no longer MS
update placeholder for country to be AUS consistent with comment on spec ("ISO 3166 3 letter codes can be used in place of a human readable country name." - https://hl7.org/fhir/R4/datatypes-definitions.html#Address.country)

Fixed via b11c940437d734240fcc41dd8461a2c86bc0645a


Group discover/fmf options, improve wording a bit

Define related options closer together.
Use a better wording for some of the options.

When reading #2174 I've noticed several unclear option descriptions. The new descriptions should be hopefully a bit more clear. I've also grouped all relevant options together. However we still get two --dist-git options at the very beginning of the help:
  -h, --how METHOD                Use specified method to discover tests.
  --dist-git-source               Extract DistGit sources.
  --dist-git-type fedora|centos|redhatgitlab|rhel
                                  Use the provided DistGit handler instead of
                                  the auto detection.
  -u, --url REPOSITORY            URL of the git repository with fmf metadata.
  -r, --ref REVISION              Branch, tag or commit specifying the git
                                  revision.
  -p, --path ROOT                 Path to the metadata tree root.
  -t, --test NAMES                Select tests by name.

This is because they are inherited from the DiscoverStepData class and thus created first. @happz, any idea how we could nicely group these with the other --dist-git options? Define something like order for the fields?

When reading #2174 I've noticed several unclear option descriptions. The new descriptions should be hopefully a bit more clear. I've also grouped all relevant options together. However we still get two --dist-git options at the very beginning of the help:
  -h, --how METHOD                Use specified method to discover tests.
  --dist-git-source               Extract DistGit sources.
  --dist-git-type fedora|centos|redhatgitlab|rhel
                                  Use the provided DistGit handler instead of
                                  the auto detection.
  -u, --url REPOSITORY            URL of the git repository with fmf metadata.
  -r, --ref REVISION              Branch, tag or commit specifying the git
                                  revision.
  -p, --path ROOT                 Path to the metadata tree root.
  -t, --test NAMES                Select tests by name.

This is because they are inherited from the DiscoverStepData class and thus created first. @happz, any idea how we could nicely group these with the other --dist-git options? Define something like order for the fields?

Correct, that's because of the order of fields in data classes. I bet we could do something about it via field(), maybe some in_help_order parameter, or in_help_after='--the-first-dist-git-option', plus overriding how Click renders help for options:
    def format_options(self, ctx: Context, formatter: HelpFormatter) -> None:
        """Writes all the options into the formatter if they exist."""
        opts = []
        for param in self.get_params(ctx):
            rv = param.get_help_record(ctx)
            if rv is not None:
                opts.append(rv)

        if opts:
            with formatter.section(_("Options")):
                formatter.write_dl(opts)

Instead of basic get_params(), we could employ something smarter. No idea how to attach metadata like our ordering to options, but Click has been sane so far, I'd say there would be a way. Probably not a one-liner though, I wouldn't block this patch on this solution...

Or maybe adding option groups? field(..., help_group='dist-git') and somehow create those groups as needed, dynamically?

A help group sounds like a nice idea! Filed as #2215.


Update all non-major dependencies

This PR contains the following updates:

Package
Type
Update
Change

@actions/core (source)
dependencies
patch
1.10.0 -> 1.10.1

@crowdin/crowdin-api-client
dependencies
minor
1.24.0 -> 1.25.0

@types/node (source)
devDependencies
minor
18.17.3 -> 18.18.5

@typescript-eslint/parser
devDependencies
minor
6.3.0 -> 6.8.0

@vercel/ncc
devDependencies
minor
^0.36.1 -> ^0.38.0

axios (source)
dependencies
minor
1.4.0 -> 1.5.1

typescript (source)
devDependencies
minor
5.1.6 -> 5.2.2

Release Notes

actions/toolkit (@actions/core)
v1.10.1

Fix error message reference in oidc utils #1511

crowdin/crowdin-api-client-js (@crowdin/crowdin-api-client)
v1.25.0
Compare Source
What's Changed

feat: Add the javascript file export options by @balogun14 in https://github.com/crowdin/crowdin-api-client-js/pull/305
feat: Apply Pre-Translation API: add labels support by @KyleGrande in https://github.com/crowdin/crowdin-api-client-js/pull/306
feat: reports api rework by @yevheniyJ in https://github.com/crowdin/crowdin-api-client-js/pull/308
ci: automated releases by @andrii-bodnar in https://github.com/crowdin/crowdin-api-client-js/pull/293
fix: workflows triggering after automatic release by @andrii-bodnar in https://github.com/crowdin/crowdin-api-client-js/pull/294
build(deps-dev): bump lint-staged from 13.2.3 to 13.3.0 by @dependabot in https://github.com/crowdin/crowdin-api-client-js/pull/297
build(deps-dev): bump typedoc from 0.24.8 to 0.25.0 by @dependabot in https://github.com/crowdin/crowdin-api-client-js/pull/298
build(deps): bump axios from 1.4.0 to 1.5.0 by @dependabot in https://github.com/crowdin/crowdin-api-client-js/pull/299
build(deps-dev): bump typedoc from 0.25.0 to 0.25.1 by @dependabot in https://github.com/crowdin/crowdin-api-client-js/pull/301
build(deps): bump axios from 1.5.0 to 1.5.1 by @dependabot in https://github.com/crowdin/crowdin-api-client-js/pull/303

New Contributors

@balogun14 made their first contribution in https://github.com/crowdin/crowdin-api-client-js/pull/305
@KyleGrande made their first contribution in https://github.com/crowdin/crowdin-api-client-js/pull/306

Full Changelog: https://github.com/crowdin/crowdin-api-client-js/compare/1.24.0...1.25.0

typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v6.8.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.7.5 (2023-10-09)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.7.4 (2023-10-02)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.7.3 (2023-09-25)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.7.2 (2023-09-18)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.7.1 (2023-09-18)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.5
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.4
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.3
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.2
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.6.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.5.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.4.1 (2023-08-21)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.4.1
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.4.0
Compare Source
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.

vercel/ncc (@vercel/ncc)
v0.38.0
Compare Source
Features

Log minification error when --debug (#1102) (e2779f4)

v0.37.0
Compare Source
Features

add support for TypeScript 5.0's array extends in tsconfig (#1105) (f898f8e)

axios/axios (axios)
v1.5.1
Compare Source
Bug Fixes

adapters: improved adapters loading logic to have clear error messages; (#5919) (e410779)
formdata: fixed automatic addition of the Content-Type header for FormData in non-browser environments; (#5917) (bc9af51)
headers: allow content-encoding header to handle case-insensitive values (#5890) (#5892) (4c89f25)
types: removed duplicated code (9e62056)

Contributors to this release

 Dmitriy Mozgovoy
 David Dallas
 Sean Sattler
 Mustafa Ateş Uzun
 Przemyslaw Motacki
 Michael Di Prisco

v1.5.0
Compare Source
Bug Fixes

adapter: make adapter loading error more clear by using platform-specific adapters explicitly (#5837) (9a414bb)
dns: fixed cacheable-lookup integration; (#5836) (b3e327d)
headers: added support for setting header names that overlap with class methods; (#5831) (d8b4ca0)
headers: fixed common Content-Type header merging; (#5832) (8fda276)

Features

export getAdapter function (#5324) (ca73eb8)
export: export adapters without unsafe prefix (#5839) (1601f4a)

Contributors to this release

 Dmitriy Mozgovoy
 夜葬
 Jonathan Budiman
 Michael Di Prisco

Microsoft/TypeScript (typescript)
v5.2.2: TypeScript 5.2
Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the

fixed issues query for Typescript 5.2.0 (Beta).
fixed issues query for Typescript 5.2.1 (RC).
fixed issues query for Typescript 5.2.2 (Stable).

Downloads are available on:

NuGet package

Configuration
📅 Schedule: Branch creation - "on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


[BUG] generate_addon_csi.sh fails to complete on windows

Describe the bug
generate_addon_csi.sh fails due to an error integer expression expected which makes it go into an infinite loop.
To Reproduce
Steps to reproduce the behavior:

Use windows 11
Follow the docs for setting up harvester-hci
Script fails to complete, printing Getting secret of service account ... on ... repeatedly

Expected behavior
Script works as advertised in docs
Support bundle
N/A
Environment

Harvester ISO version: N/A
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): N/A

Additional context
Nothing notable

Hi @mortenn, thanks for reporting this issue.
Could you provide what version of harvester-csi-driver you use?
IIRC, we drop Windows support on the recent version.
Also, thanks for the PR, we will check it!

I wasn't using any version of the driver per se, I just downloaded and ran the script in git bash on windows

Hi @mortenn,
Thanks for your reply.
The PR looks good, but could I know more about your use case?
Did you run a Windows VM for the guest cluster and try to use the harvester csi driver to create PVC?

no, I was trying to configure the csi driver for use with a kubernetes cluster deployed from rancher, the windows pc is my desktop computer.

no, I was trying to configure the csi driver for use with a kubernetes cluster deployed from rancher, the windows pc is my desktop computer.

OK, because harvester CSI driver depends on the harvester cluster (means you need to create kubernetes cluster from harvester, you can refer to https://docs.harvesterhci.io/v1.2/rancher/index#deploying-rancher-server) then you can provision pvc on the harvester cluster.
So if you directly provision the Kubernetes cluster on your Windows PC, I am afraid that the harvester CSI driver might not work.
But your patch seems to make sense; already merged it. Thanks for fixing it!

The issue can be reproduced on:

Windows 11 Pro, Git For Windows 2.43, jq 1.7

The issue can not be reproduced via WSL on Windows 11 Pro with:

WSL version <IP_ADDRESS>
Ubuntu 22.04.3 , w/ Kernel <IP_ADDRESS>-microsoft-standard-WSL2
Either with Bash:

5.1.16 (bundled with Ubuntu 22.04.3)
compiled from tarball, 5.2.21 (to match the same version of Bash included in Git For Windows 2.43)

Reproduction reproduced yielding:
micha_427b7f2@WINDOWS-BOX MINGW64 ~/Code
$ ./generate_addon_csi_old_no_fix.sh test default RKE2
NOTE: if your are using RKE2/K3S, please follow this usage: ./generate_addon_csi_old_no_fix.sh <service_account_name> <namespace> rke2/k3s
Creating target directory to hold files in ./tmp/kube...done
Creating a service account in default namespace: test
W0123 13:28:48.215900   15996 helpers.go:704] --dry-run is deprecated and can be replaced with --dry-run=client.
serviceaccount/test created
Creating a rolebinding in default namespace: default-test
W0123 13:28:48.378881    8396 helpers.go:704] --dry-run is deprecated and can be replaced with --dry-run=client.
[rolebinding.rbac.authorization.k8s.io/default-test](http://rolebinding.rbac.authorization.k8s.io/default-test) created
WARNING: version difference between client (1.29) and server (1.25) exceeds the supported minor version skew of +/-1
: integer expression expectedix.sh: line 57: [: 25
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default
Getting secret of service account test on default

Additional Testing Artifacts (Windows 10 Pro updated to Windows 11 Pro):

This looks good :smile: :+1: !
Thanks again for the contribution @mortenn !
I'll go ahead and close this out


Updated browse to the Docker Hub link formatting

Proposed changes

https://docs.docker.com/engine/getstarted/step_three/ Link on this page was not rendered correctly. Updated it to use markdown link style instead of anchor tag
Unreleased project version (optional)

Related issues (optional)

Duplicate of #1347


fix: use appropriate readonly for Generable interface

TS interfaces do not actually support the get-syntax, and instead should define the property as readonly if there is only a getter expected. The usage of get/set is otherwise left as an implementation detail, not an type definition.
An alternative/additional change to #166
Problem
Currently, the @internal Generable type is being included in the published package. When building against it with tsc, we are getting errors such as:
node_modules/@circleci/circleci-config-sdk/dist/src/lib/Components/index.d.ts:18:5 - error TS1131: Property or signature expected.

18     get generableType(): GenerableType;
       ~~~

node_modules/@circleci/circleci-config-sdk/dist/src/lib/Components/index.d.ts:18:9 - error TS1005: ';' expected.

18     get generableType(): GenerableType;
           ~~~~~~~~~~~~~

node_modules/@circleci/circleci-config-sdk/dist/src/lib/Components/index.d.ts:18:24 - error TS1005: ';' expected.

18     get generableType(): GenerableType;
                          ~

node_modules/@circleci/circleci-config-sdk/dist/src/lib/Components/index.d.ts:19:1 - error TS1128: Declaration or statement expected.

19 }
   ~

Solution
Use the appropriate readonly property instead of the unexpected getter definition, which is not appropriate in an interface in TypeScript.
Diff in artifacts
Using npm run build, the diff in the generated package is the following:
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index 35b443e..1da2696 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -15,6 +15,6 @@ export interface Generable {
     /**
      * Type of generable object
      */
-    get generableType(): GenerableType;
+    readonly generableType: GenerableType;
 }
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index 7f6c01d..bfa662c 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -1 +1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAE9C;;OAEG;IACH,IAAI,aAAa,IAAI,aAAa,CAAC;CACpC"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAE9C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACvC"}
\ No newline at end of file

I would love to write a TS compilation test, but right now I have no idea why your settings allow the get generableType(): GenerableType; but our settings don't allow it. I'm open to any ideas here.


Adding support for focus and blur events

Hi,
First of all, thanks for your great work on this!
I added support for focus and blur events on the control. It watches the previous state of the .isFocused boolean to ensure the event is only fired when the focus state changes, rather than when the internal focus event is called.
I've got a use case where I want to clear the value on focus, then reset it on blur unless it has been changed, which makes selectize work more like the URL bar in a browser.
But I expect it will be useful for other cases as well, including more sophisticated interaction with other UI controls, etc.
Cheers,
Jed.

+1 I'm in need of this event as well

+1 Needing focus and blur as well.

Holy hell that took a long time to get to. Sorry it took so long, all. Thanks for the great work @JedWatson and @scarfacedeb!

Can we build dists from this?
I'd love to be able to get the standalone...

I've merged a bunch of commits and am making some changes – a release will be out soon


Difference HA component and this custom component

Hi Mike, Great you continue the work from cpolhout.
This morning i noticed that HA 2023.7.0b0 now has included LOQED in the release. What is the difference between both implementations? I noticed your name in the sources, but I do also see that the HA implementation is not reporting on battery levels.

Many thanks, good work


Megabuttons design revisions

JIRA

DANG-1027 again

Description
Followup PR to megabuttons parts 1, 2, and 3 integrating the feedback from this convo with Adam.

The disabled banner should have top left and right border radius on it so the edges don't stick out:

Besides the disabled banner this looks good to me. 👍

The disabled banner should have top left and right border radius on it so the edges don't stick out:

Oh, good catch!!


Provider support for discover page

@hmoco Can you provide descriptions for your PR's?

@hmoco I'm merging this but the optimizations such as the one chris suggested should be happening soon. I'll make sure we get back to this and fix. It's not functionally important but better code.


Improve Space a bit

Codecov Report

Merging #40 (24ff25e) into main (0bbefe3) will decrease coverage by 2.08%.
The diff coverage is 90.00%.

@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
- Coverage   94.22%   92.14%   -2.09%
==========================================
  Files          12       11       -1
  Lines         797      789       -8
==========================================
- Hits          751      727      -24
- Misses         46       62      +16

Impacted Files
Coverage Δ

src/Space.jl
89.39% <81.81%> (-2.41%)
:arrow_down:

src/AbstractTensor.jl
93.75% <100.00%> (ø)

src/Tensor.jl
97.19% <100.00%> (ø)

src/simd.jl
100.00% <100.00%> (ø)

src/einsum.jl
41.81% <0.00%> (-31.32%)
:arrow_down:

src/Tensorial.jl

Continue to review full report at Codecov.

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


fix: switch to non prod slack channel to reduce noise

:tickets: TICKET-000

Upstream PRs

Downstream PRs

Changes

Notes for Reviewers

Recordings/Screenshots

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.692%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
86

Relevant Lines:
96

💛  - Coveralls


Update README.md

updated readme.md with Gangadhar big data developer repo link.

Please refresh your code and try again - yours should be added under Sagar Tiwari.


How to load genesis app state in the graph store

Hi. We were testing the subgraph for Gitopia testnet (https://gitopia.com/)
Our testnet genesis has some initial application state and we wanted to load this in graphql store. We wrote a script to load that state in the postgresql database used by graph-node (sgd- tables). However, we are not getting these data in the qraphql queries, only the rows created by the new chain transactions are in the result.
Let us know if we need to do something else. Thanks.

hey @faza what is the size of the initial state?

hey @faza you can now use initialisation handlers https://github.com/graphprotocol/graph-node/issues/3221 to bootstrap subgraph state (please comment and re-open if this does not solve your problem)


Cannot read property 'getAccountId' of undefined in UserMedia.get()

i'm create new instance of Session from file, i can use it for follow user but when i get UserMedia it throw error as i defined in the title.

i solve it by add .bind() in .get() function


fix(timepicker): spinner doesn't fire change event

The binding for timepicker spinner works but is there a way to get it to fire a change event?

it should bind to ngModel
it is mutating Date object?

The Date object is mutated but I'm trying to inform another Component that the Date object has changed. Sadly, the ngOnChanges method only fires on reference change and not mutation. Hence, I want to trigger a EventEmitter from the "onChange" method of spinner.
I searched online and they said to implement my own DoCheck but the documentation is very limited.
I'm fairly new to Angular2, what's the right way to do what I mentioned above?

Has a workaround been identified for this, I need this ability as well.


save footer does not appear when updating description on role page

steps to reproduce:

head to role page
click on admin
add description
observe that the save footer does not appear

expected behaviour:

save footer should appear when a change is active

part of the suite of issues of the page

Turns out we never had description for roles; interesting, field will be removed.


what if we combine MotionBert and MotionAGFormer together?

anyone tried?

@diamondcm
I think architecture-wise if we add temporal-spatial transformer branch to the MotionAGFormer (or even temporal-spatial GCNFormer), the computational complexity will be huge. The model is already expensive to train and by adding more branches I assume it adds many parameters that we don't have enough data for it. But you can reduce the number of channels or divide the channels by four and pass C/4 to each branch and then concatenate instead. You're welcome to try!

@SoroushMehraban
definitely will! For lower loss maybe:)
Thanks.

@SoroushMehraban
Hi again!
Is there global model in AGFormer? I noticed one of motionbert model is global with output that is not aligned with root.
Thanks.

@diamondcm
Can you give me a link to the code you're referring to in MotionBERT?

https://github.com/Walter0807/MotionBERT/blob/main/docs/inference.md
@SoroushMehraban
Hi, here you can check the gif of demo is global position.
and the picture I posted is the list of models it contains. The demo uses MB_ft_h36m_global_lite. And the output is global position of joints directly.

@diamondcm
You can do the same thing by placing 'root_rel' to 'False' on config file of MotionAGFormer when training the model. I haven't done it but probably should have done it for demo.

@SoroushMehraban
Got it! Thanks.
BTW, do you plan to test global result and replace your demo with global result, coz it may look more similar to realistic with hip moving:)

@diamondcm
I have lots of experiments to perform these days. I don't think I can make it soon.

ok, good luck.
Thanks for reply:)

Hi @diamondcm, did you train a global model on H3.6M? If yes, could you share it? Thanks in advance!


Need examples of how to integrate the shares with Pods/Services/Deployment

Hi Team,
I was playing around with SmbShare and am able to configure the shares but there are no pods/services running to which we can attach and check. Can you add some examples as to how to integrate the smbshare with pods/services. Right now the share gets created but it is not running any pods.

@pnookala-px Please provide more information:

On what type of k8s cluster (minikube? openshift? crc? other?) are you trying to deploy?
Did you check the samba-operator log for errors/failures?
Do you see any pods or resources created in target namespace?

Did you follow the howto doc? In addition, there is more recent developer doc on how to deploy over crc. Please take a look and see if it helps.

We can mark it resolved, it was on opershift, once I installed the scc,
things started working.
regards,
Phani.
On Tue, May 2, 2023 at 2:47 PM Shachar Sharon @.***>
wrote:

@pnookala-px https://github.com/pnookala-px Please provide more
information:

On what type of k8s cluster (minikube? openshift? crc? other?) are
you trying to deploy?
Did you check the samba-operator log for errors/failures?
Do you see any pods or resources created in target namespace?

Did you follow the howto
https://github.com/samba-in-kubernetes/samba-operator/blob/master/docs/howto.md
doc? In addition, there is more recent developer doc
https://github.com/samba-in-kubernetes/samba-operator/blob/master/docs/howto-openshift-crc.md#create-samba-share
on how to deploy over crc https://crc.dev/crc/. Please take a look and
see if it helps.
—
Reply to this email directly, view it on GitHub
https://github.com/samba-in-kubernetes/samba-operator/issues/304#issuecomment-1531147960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6P6NH2YIEKAKOYFNTBXWB3XEDGMBANCNFSM6AAAAAAXSX6DH4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Let's leave this open as a reminder to add some openshift specific notes to the general howto, even if it is just a link between docs it will help make the openshift specific requirements easier to find.  Perhaps we could even do a general "requirements"/"prerequisites" doc?


Support content_for "block" named argument completion

This one is a bit harder because you need to change the parser and accept placeholder args in placeholder mode.
I'll leave that one for our team.
We want named argument completion:
{% content_for "block", █ %} -> `type`, `id`
{% content_for "block", ty█ %} -> `type`
{% content_for "block", i█ %}  -> `id`

Optional: complete context.* arguments. Ask @mbarak for details :D
{% content_for "block", context.█ %} -> `context.product`, ...

"context" attributes are also supported in {% content_for "blocks" %} (blocks plural as opposed to block singular in the description). This variant doesn't accept id and type arguments but does support "context" attributes/arguments (like the singular block variant).
The supported context arguments are:

context.<core_resource> ex: context.product
context.metaobject.<metaobject type> ex: context.metaobject.123-metaobject_type

See here for more details:
https://github.com/Shopify/shopify/blob/main/areas/core/shopify/components/online_store/app/liquid/tags/content_for/block_strategy.rb#L9-L17


I think FlashAttention 2 ROCM support is upstreamed?

https://github.com/Dao-AILab/flash-attention/pull/1010
ROCM branch seems to? no longer be necessary to use this.
Though you need to have FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE set.
And as far as I can tell - sadly - on my 7900 XTX your wheels from here are considerably faster than whatever this is. (3it/s vs 4it/s approximately)
Might be worth to look into what they're doing different, as the howiejay branch is p much dead it seems.

The howiejay branch uses native HIP kernels instead of Triton. Triton isn't very optimized for GFX11 yet so it's not going to be faster. You could try triton nightly or something see if it's any better.

Yeah I guess. AMD why do you do these things.

yeah rocm support is weak enough if this card wasn't so good for games I would've sold it

More bad news is it seems like proper CK flash support for navi31 is sill a ways off
https://github.com/pytorch/pytorch/pull/138947#discussion_r1884680252
Only been what over a year and that branch howiejay made in a weekend is still the best we have.


abount docplex

Hi everybody!
Currently I am writing cplex to python docplex conversion model and I have cplex side binding as follows:
forall (i in point: i == 0, j in point: j != 0, k in truck)
x[0][j][k] == 1 && f[j][k] >= 0 => sl[j][k] - sl[0][k] + f[j][k] > = 0;
I want to convert this binding to docplex, however I don't know how to write it. Can you help me?
Thanks.

Hello,
You're not mentioning the original format of the model you want to convert to docplex, seems like OPL?
To explain how to map the constraint syntax you posted to Docplex, let me proceed in steps:

First, the format of constraint is of the form <logical_condition> => <linear_constraint>, in other terms, when some logical condition is true (i.e. equal to 1), the constraint has to be satisfied (otherwise, it is free, maybe satisfied, maybe not, we don't know).
What's more in your case, the logical condition is built using constraints, so the general pattern here is:

if [ C1 and C2 are satisfied]  then C3 must be satisfied.
This can be mapped to docplex easily. The essential point here is that DOcplex provides a binary variable mirroring the "truth value" of a constraint, that is, equal to 1 if and only if the constraint is satisfied. Of course the constraints should not be added to the model, otherwise they would always be satisfied.
Let me illustrate with a small simple code:

from docplex.mp.model import Model
m = Model()
x = m.integer_var()
y = m.integer_var()
z = m.integer_var(lb=1, ub=10)
ctx3 = (x == 3)
cty5 = (y == 5)
ctz7 = (z == 7)
m.add(x == 3)
m.add(y == 5)
m.add((ctx3 & cty5) <= ctz7)
m.minimize(x + y)
s1 = m.solve()
s1.display()

Here I create two constraints ctx3 and cty5; note they are NOT added to the model, so we don't know in advance what their status will be .
The syntax:
m.add((ctx3 & cty5) <= ctz7)
illustrates several points:

a constraint can be used as an expression, it is converted into its binary status variable
the '&' operator computes the logical AND of the two status variables
this binary logical is in turn usable as a binary variable, equal to 1 when both statuses are 1
Then we state that the And is less than the status of the target constraint (y==7),
which means when the And is true, the status of (y==7) becomes true, hence y==7

Applied to your (simplified) case , this would look like:
m.add( ( (X == 1) & (F >= 0)) <= (S2 -S1 + F >=0))

Hi,
I understand what you mean, thank you very much for your support.
Best regards


Buffered alternate parallel and non-parallel executions

Is it RxJava2Extensions suitable for the following scenario ?
I have a stream of data coming from a DB query.
I need to process data in two step, the first step in parallel and the second one in non-parallel mode. Step1 and Step2 are exclusive.
Requirements:

start step1 immediately as data arrives without buffering
before pass data to step2 collect it in a buffer
during step2 (buffer after buffer) computation, step1 must be blocked

Pseudo code:
DATA.forEach.do{
parallelExecute { compute_step1(dataItem) }
buffer(1000)
nonParallelExecute { compute_step2(dataItem) }
outputResults // buffer after buffer
}

Why don't you use the available operators to switch between modes?
`
``
datasource
.to(ParallelFlowable::from)
.runOn(Schedulers.computation())
.doOnNext(v -> { })
.sequential()
.observeOn(Schedulers.single())
.buffer(1000)
doOnNext(list -> { })
.subscribe();

Wonderful !
Very impressive power !
I forgot to say that the first computation is IO intensive. It's better to use another type of scheduler ?
(I'm still studying rxjava.)

As you wish, the parallelism level is determined by the from parameter and not the Scheduler:
.to(f -> ParallelFlowable.from(f, 3))
.runOn(Schedulers.io())

... and in this way the first doOnNext lambda is not executed when the second one is ?

Stages will run in parallel, why do you have that requirement? RxJava is about executing in a flow and not blocking out things; backpressure is there to limit memory usage if that's the problem.

I need to alternate the two stages.
Stage one is read only
Stage two is when results are saved
I need to isolate them, the application is much more simple and robust this way.
What I need is something like a blocking-output-buffer for the doOnNext operator. When it's full it blocks the doOnNext  until the buffer is consumed

The individual items should be isolated from each other anyway.

What I need is something like a blocking-output-buffer for the doOnNext operator. When it's full it blocks the doOnNext until the buffer is consumed

This makes no sense in reactive.
Here is an alternative that works on a chunk of 1000 elements:
datasource
.window(1000)
.flatMap(w ->
    ParallelFlowable.from(w)
    .runOn(Schedulers.io())
    .doOnNext(item -> { })
    .sequential()
    .toList()
    .doOnNext(list -> { })
    , 1)
.subscribe();

Here processing the items parallel happens before collecting them into a list and once that happens, you can process the list and there won't be any parallel execution from the first doOnNext nor there won't be another window started before you have finished with the list.

OK that is a solution.
So it's not possible without buffering at start.
What's wrong with an operator that in loop do the following ?
do something with item,
collect item
emit items when the buffer is full

What's wrong with an operator that in loop do the following ?

That's the imperative thinking about processing data. In reactive, there is no explicit loop but flow of data, aggregation, element processing, etc.

ok... I'm still thinking in imperative mode.


added UBB - Faculty of Political, Administrative and Communication Sciences

fspac.ro - Faculty of Political, Administrative and Communication Sciences, Babes-Bolyai University, department of Saint George, RO.

@imodi79 First stage of verification passed, official domain is researchgate.net as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://www.researchgate.net/profile/Cristina_Hintea/publication/346472042_ADAPTIVE_AND_TURBULENT_GOVERNANCE_WAYS_OF_GOVERNING_THAT_FOSTER_RESILIENCE_THE_CASE_OF_THE_COVID-19_PANDEMIC/links/5fc3e37c92851c933f765db0/ADAPTIVE-AND-TURBULENT-GOVERNANCE-WAYS-OF-GOVERNING-THAT-FOSTER-RESILIENCE-THE-CASE-OF-THE-COVID-19-PANDEMIC.pdf

@imodi79 Thank you for your patience while waiting for a review and processing your request. Pull request merged.

thank you.
Tisztelettel és barátsággal,
Módi István.
http://www.voidart.ro/
https://mailtrack.io/l/6a14d3ddf03df34b92ae38643ada0b3f8e08313c?url=http%3A%2F%2Fwww.voidart.ro%2F&u=8817961&signature=2d1b9994e9204f69
On Wed, Mar 20, 2024 at 3:13 PM Philip Torchinsky @.***>
wrote:

@imodi79 https://github.com/imodi79 Thank you for your patience while
waiting for a review and processing your request. Pull request merged.
—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/20348#issuecomment-2009538806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BEZACSMM5MJGR6EZB5EKMJLYZGDOZAVCNFSM6AAAAABEUMG6XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBZGUZTQOBQGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


[cloud_functions] Support the v2 Android embedder plugins API

@amirh
The issue at https://github.com/flutter/flutter/issues/41865 has been closed and moved here. Future collaboration on this issue will be done here.

This is now supported


Functionality/Ease of use improvement

From a user's standpoint, I suggest the following:

A single class selection bar.
Automatic clearing of solver results when changing recipes/class.

I'm (slowly) working on a redesign of the site layout which should help
with these issues.
On Sun, Feb 15, 2015 at 10:14 AM Taurolyon<EMAIL_ADDRESS>wrote:

From a user's standpoint, I suggest the following:

A single class selection bar.
Automatic clearing of solver results when changing recipes/class.

—
Reply to this email directly or view it on GitHub
https://github.com/doxxx/ffxiv-craft-opt-web/issues/51.

I would really love to see FFXIV-Lodestone-API integration, like Crafting-As-A-Service, so I can easily import my character level data. Saves a lot of time, and it would allow using code to automatically fill out cross-class abilities based on levels selected. There you go: the time required just got cut in half.

Thanks, good idea.


Implement a REST API endpoint for creating an answer option for a question (exercise 13)

Comments about this task are on Slack


patch Chng data for these dates

| 20221012 |    20220818 |
| 20221013 |    20220819 |
| 20221014 |    20220820 |
| 20221015 |    20220821 |
| 20221016 |    20220822 |
| 20221017 |    20220824 |
| 20221018 |    20220825 |
| 20221019 |    20220826 |
| 20221020 |    20220827 |
| 20221022 |    20220829 |
| 20221025 |    20220901 |
Context
This issue is copied from old jira PO board.

change hc connection is closed and unable to grab data for patching


Error when I test in vrplib

Describe the bug
when I use a checkpoint test in a solomon dataset, I got a error(index out of bounds), and it seems happen in the step function in the env,the td["distances"] is (1, 21), but the action index is big than 20.
To Reproduce
import torch
import vrplib
from rl4co.models import AttentionModel
from einops import repeat
from rl4co.data.transforms import StateAugmentation as SymmetricStateAugmentation
import os

# device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
device = torch.device('cpu')
checkpoint_path = "./lightning_logs/version_0/checkpoints/epoch=29-step=5880.ckpt"
data_path = "./data/C101.txt"

test_model = AttentionModel.load_from_checkpoint(checkpoint_path, load_baseline= False)

policy, env = test_model.policy, test_model.env
policy.to(device)

instance = vrplib.read_instance(data_path, instance_format= "solomon")

coords = torch.tensor(instance["node_coord"]).float()
demands = torch.tensor(instance["demand"][1:]).float()
time_window = torch.tensor(instance["time_window"]).float()
serve_time = torch.tensor(instance["service_time"]).float()
capacity = torch.tensor(instance["capacity"])
x, y = coords[:, 0], coords[:, 1]
b_time, e_time = time_window[:, 0], time_window[:, 1]
x_min, y_min = x.min(), y.min()
x_max, y_max = x.max(), y.max()
s_time_min, s_time_max = serve_time.min(), serve_time.max()
x_scaled = (x - x_min) / (x_max - x_min)
y_scaled = (y - y_min) / (y_max - y_min)
b_scaled = (b_time - b_time.min()) / (b_time.max() - b_time.min())
e_scaled = (e_time - e_time.min()) / (e_time.max() - e_time.min())
new_coords = torch.stack([x_scaled, y_scaled], dim= 1)
new_time_window = torch.stack([b_scaled, e_scaled], dim= 1)
serve_time = (serve_time - s_time_min) / (s_time_max - s_time_min)
n = new_coords.shape[0]

batch_size = 1
td = env.reset(batch_size= (batch_size, )).to(device)
td["locs"] = repeat(new_coords, 'n d -> b n d', b= batch_size, d= 2)
td["time_windows"] = repeat(new_time_window, 'n d -> b n d', b= batch_size, d= 2)
td["durations"] = repeat(serve_time, 'n -> b n', b= batch_size)
td["demand"] = repeat(demands, 'n -> b n', b= batch_size) / capacity
td["visited"] = torch.zeros((batch_size, 1, n), dtype= torch.uint8)
action_mask = torch.ones(batch_size, n, dtype= torch.bool)
action_mask[:, 0] = False
td["action_mask"] = action_mask

# num_augment = 100

# augmentation = SymmetricStateAugmentation(env.name, num_augment= num_augment)
# td = augmentation(td)

os.environ['CUDA_LAUNCH_BLOCKING'] = "1"

with torch.no_grad():
    out = policy(td.clone(), decode_type= 'greedy', num_starts= 0, return_actions= True)

print(out)

Traceback (most recent call last):
  File "/home/lin/reinforce/test.py", line 58, in <module>
    out = policy(td.clone(), decode_type= 'greedy', num_starts= 0, return_actions= True)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/rl4co/models/zoo/common/autoregressive/policy.py", line 153, in forward
    log_p, actions, td_out = self.decoder(td, embeddings, env, **decoder_kwargs)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/rl4co/models/zoo/common/autoregressive/decoder.py", line 194, in forward
    td = env.step(td)["next"]
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/rl4co/envs/common/base.py", line 102, in step
    td = self._step(td)
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/rl4co/envs/routing/mocvrptw.py", line 199, in _step
    distance = gather_by_index(td["distances"], td["action"]).reshape([batch_size, 1])
  File "/root/anaconda3/envs/reinforce/lib/python3.10/site-packages/rl4co/utils/ops.py", line 75, in gather_by_index
    return src.gather(dim, idx).squeeze() if squeeze else src.gather(dim, idx)
RuntimeError: index 98 is out of bounds for dimension 1 with size 21

Reason
I had read the decoder.py and mocvrptw.py(my own env base on cvrptw.py), and found that the td["distances"] updates in the get_action_mask() in cvrptw.py.But in the step() in cvrptw.py ,it will go to the step() in cvrp.py and will run the get_action_mask() in cvrp.py.I think it causes the error.

Hi, here are some possible fixes:

We recently implemented loading from Solomon instances here, could you have a look at it first?

The error

RuntimeError: index 98 is out of bounds for dimension 1 with size 21

means that there is some problem in some size, most probably a variable in the td

get_action_mask() in cvrptw.py.But in the step() in cvrptw.py ,it will go to the step() in cvrp.py and will run the get_action_mask() in cvrp.py

Yes, the action mask in CVRPTW is a composition of the TW and the base CVRP masking procedure by design - if you want to remove some constraints, you may need to refactor the code

What modifications did you make for the mocvrptw?

PS: I just tried running the code (for the CVRPTW we have), updating instances worked:
from rl4co.utils.ops import gather_by_index, get_distance

current_loc = gather_by_index(td["locs"], td["current_node"]).reshape(
    [batch_size, 2]
)
dist = get_distance(current_loc, td["locs"].transpose(0, 1)).transpose(0, 1)
td["distances"] = dist

With the policy now working but obtaining:
AssertionError: Logits contain NaNs

which means that usually, the action_mask contains all "False" for some instance (i.e. nodes cannot be visited)

1.How can I use the extract_from_solomon().I try
"python":
batch_size = 1
instance = vrplib.read_instance(data_path, instance_format= "solomon")
policy, env = test_model.policy, test_model.env
env.extract_from_solomon(instance, batch_size)

but falied
2.I change the reward in cvrptw.py trying to make it a multi-objective problem.And the action_mask constraints doesn't need change.

Running this

batch_size = 1
instance = vrplib.read_instance(data_path, instance_format= "solomon")
policy, env = test_model.policy, test_model.env
td = env.extract_from_solomon(instance, batch_size)
print(td)

works fine for me:
TensorDict(
    fields={
        action_mask: Tensor(shape=torch.Size([1, 101]), device=cpu, dtype=torch.bool, is_shared=False),
        current_loc: Tensor(shape=torch.Size([1, 2]), device=cpu, dtype=torch.float32, is_shared=False),
        current_node: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.int64, is_shared=False),
        current_time: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.float32, is_shared=False),
        demand: Tensor(shape=torch.Size([1, 100]), device=cpu, dtype=torch.float32, is_shared=False),
        depot: Tensor(shape=torch.Size([1, 2]), device=cpu, dtype=torch.float32, is_shared=False),
        distances: Tensor(shape=torch.Size([1, 101]), device=cpu, dtype=torch.float32, is_shared=False),
        done: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.bool, is_shared=False),
        durations: Tensor(shape=torch.Size([1, 101]), device=cpu, dtype=torch.int64, is_shared=False),
        locs: Tensor(shape=torch.Size([1, 101, 2]), device=cpu, dtype=torch.float32, is_shared=False),
        terminated: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.bool, is_shared=False),
        time_windows: Tensor(shape=torch.Size([1, 101, 2]), device=cpu, dtype=torch.int64, is_shared=False),
        used_capacity: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.float32, is_shared=False),
        vehicle_capacity: Tensor(shape=torch.Size([1, 1]), device=cpu, dtype=torch.int64, is_shared=False),
        visited: Tensor(shape=torch.Size([1, 1, 101]), device=cpu, dtype=torch.uint8, is_shared=False)},
    batch_size=torch.Size([1]),
    device=None,
    is_shared=False)

However, when running the policy, there seems to be an infinite loop with this minimalistic code:
 %load_ext autoreload
%autoreload 2

import torch
import vrplib
from rl4co.models import AttentionModelPolicy
from rl4co.envs import CVRPTWEnv

device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
data_path = "./data/C101.txt"

env = CVRPTWEnv()
policy = AttentionModelPolicy(env).to(device)

# Use Solomon instance
vrplib.download_instance("C101", "data")
instance = vrplib.read_instance(data_path, instance_format= "solomon")
td = env.extract_from_solomon(instance, 1).to(device)

## Use randomly generated instance
# td = env.reset(batch_size=(2,)).to(device)

# Inference on policy
with torch.inference_mode():
    out = policy(td.clone(), decode_type= 'greedy', num_starts= 0, return_actions= True)

gets an infinite loop. If you uncomment and use the randomly generated instance, then it works fine. I guess it is a small masking problem?
2. I see!

I run the code without randomly generated instance and when go to the decoder,the log_p get
tensor([[0., -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf,          -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf,          -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf,          -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf, -inf,          -inf, -inf, -inf, -inf, -inf]], device='cuda:0')
It seems the model cannot generate true result with the input data extract from solomon

Yes, that happens because there is some error in the masking procedure - I think it's due to some mistakenly "unreachable" node, we will have a look at it :)

1.I have solved the problem,by modifying my initial code according to  the notebook you provide.I add the td["distances"] which means the distances between the depot and other nodes at the first step, as the initial td["distances"].The error(index out of bounds) doesn't occur.
td["distances"] = get_distance(td["locs"][:, 0, :], td["locs"][:, 1:, :].transpose(0, 1)).transpose(0, 1)
The complete data which need initialize as follow:
batch_size = 1
td = env.reset(batch_size= (batch_size, )).to(device)
td["locs"] = repeat(coords, 'n d -> b n d', b= batch_size, d= 2)
td["distances"] = get_distance(td["locs"][:, 0, :], td["locs"][:, 1:, :].transpose(0, 1)).transpose(0, 1)
td["time_windows"] = repeat(time_window, 'n d -> b n d', b= batch_size, d= 2)
td["durations"] = repeat(serve_time, 'n -> b n', b= batch_size)
td["demand"] = repeat(demands, 'n -> b n', b= batch_size) / capacity
td["visited"] = torch.zeros((batch_size, 1, n), dtype= torch.uint8)
action_mask = torch.ones(batch_size, n, dtype= torch.bool)
action_mask[:, 0] = False
td["action_mask"] = action_mask
print(td)

2.The extract_from_solomon() still work failed.

Regarding 2: are you using the latest version of the main branch?

It seems the model cannot generate true result with the input data extract from solomon

This is indeed an issue we have encountered: when verifying the optimal solutions provided by cvrplib using the check_solution_validity() function, our validity checks return invalid routes for many of the instances. This is due to how float point calculations are handled and can lead to small deviations in the calculated distances. These small calculations can lead to our validity checks asserting that a node cannot be reached in time (by a small margin, of course), even though it is part of the best route. If this is an issue for the optimal routes, it would surely be an issue during training the same instances. We do not have a solution to handle these small discrepancies yet, it is something we are still working on.
I'm sorry I can't be of more help right now!

I used the 0.3.1 at first and test the 0.4.0(it ought to be the latest version?) just now.

Regarding 2: are you using the latest version of the main branch?

The same problem occurs.

the running procedure gets an infinite loop.

Hi @huanxulin1, we found the bug and fixed it in 5e90b77. The reason is that in the previous cvrp environment get_action_mask() function, the vehicle_capacity is separately passed instead of using the variable inside the tensordict. This causes all nodes to be wrongly masked because of the capacity constraint.
Now you could use the following minimum code to check the running:
import torch
import vrplib
from rl4co.envs import CVRPTWEnv
from rl4co.models import AttentionModelPolicy

device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
data_path = "./data/C101.txt"

env = CVRPTWEnv()
policy = AttentionModelPolicy(env).to(device)

# Use Solomon instance
vrplib.download_instance("C101", "data")
instance = vrplib.read_instance(data_path, instance_format= "solomon")
td = env.extract_from_solomon(instance, 1).to(device)

# Inference on policy
with torch.inference_mode():
    out = policy(td.clone(), decode_type= 'greedy', num_starts= 0, return_actions= True)
    print(out)

Here is the output from my side with an untrained AM just for your reference:
{'reward': tensor([-4923.0938], device='cuda:2'), 'log_likelihood': tensor([-226.6587], device='cuda:2'), 'actions': tensor([[ 75,   0,  47,   0,   1,   0,  ..., 0,  87]], device='cuda:2')}

And about your another concern:

I run the code without randomly generated instance and when go to the decoder,the log_p get tensor([[0., -inf, -inf, ..., -inf]], device='cuda:0') It seems the model cannot generate true result with the input data extract from solomon

Don't worry, this is correct, in our design, the log_p would be -inf if the node is masked in this step. So the log_p you saw means that only the depot is available.


LANG-1317: Add findAnnotation and findMethodsWithAnnotation

In order to fix WW-4744 ,
findAnnotation will be an extension for Method.getAnnotation that also searches interfaces and super classes.
findMethodsWithAnnotation will be an extension for getMethodsWithAnnotation that also supports non public methods, super class and interface methods.
NOTES:
To keep changes simple, currently no cache provided. Let's do that when needed 😃

Coverage decreased (-0.002%) to 94.603% when pulling e49a3a2099759f5fee2423aff2b9fa762881c36b on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

Thanks for the pull request!
It is really unfortunate  that the existing method getMethodsWithAnnotation is not called getAccessibleMethodsWithAnnotation : (, because then the new method could be called getMethodsWithAnnotation.
I would not have been able to tell the difference between getMethodsWithAnnotation and findMethodsWithAnnotation without reading the javadoc.
I believe we need a more intention revealing method name or maybe  we should just add an overload of getMethodsWithAnnotation e.g. getMethodsWithAnnotation(Class cls, annotationCls, boolean ignoreAccessiblitiy).
What do you think?

@PascalSchumacher , thank you! I was overloaded by another job and forgot that I also can use method overloads. Yes, strongly I agree. Just I have some doubts about name ignoreAccessiblitiy because the new method is not only about accessibility, but also about traverse super classes and implemented interface and super interfaces while the annotation maybe is not present on the given class but is present on lower layers. Maybe we should also add another param named searchSupers for example.

You are right. The method signature I suggested omits the important super part. I agree it should be something like getMethodsWithAnnotation(Class cls, annotationCls, boolean searchSupers, boolean ignoreAccess). (I'm not a fan of boolean parameters (especially multiple ones), so if somebody has an idea for a good method name, that is welcome.)

Another bad thing is that getMethodsWithAnnotation(cls, annotationCls, false, false) will be a duplicate for getMethodsWithAnnotation(cls, annotationCls).
Another solution is to keep my current changes not modified but add following javadoc:
 *
 *
To lookup annotations on the given class level only choose {@code get*()} methods
 * and to lookup in the entire inheritance hierarchy of the given class and ignore
 * accessibility, choose {@code find*()} methods

 *
 * @since 2.5
 */
public class MethodUtils {

Well we have to keep getMethodsWithAnnotation(cls, annotationCls) for compatibility reasons.  In my opinion it is not problem if is equal to getMethodsWithAnnotation(cls, annotationCls, false, false). It can be refactored to call getMethodsWithAnnotation(cls, annotationCls, false, false) and then it is just some sugar for the most? common use case.

👌 I am working on a new commit. thanks!

Coverage decreased (-0.03%) to 94.571% when pulling 7390433b9dc9f53d2cf472421fe63d8240756492 on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

@PascalSchumacher , I made it better 😃 thanks a lot!
Please feel free to make any recommendation if you think I can make it better.

Coverage decreased (-0.03%) to 94.571%

😞 Do you know why? 👆

@yasserzamani I thinks because you added more conditional branches in the latest commit and that is why less LOC are covered

Coverage decreased (-0.03%) to 94.577% when pulling b79fe6f9e350edb3086c44220968ae3dfcc0d2cb on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

Thank you @Abrasha ,
I signed up with coveralls.io and see that all of this PR's changes are covered with unit tests: MethodUtils , ClassUtils.
Also these files show enhancement in coverage at COVERAGE CHANGED :thinking:

Concerning the coverage: I think it's because the coverage differs between java versions. The build used to determine coverage depends on the order in which the travis builds finish.

@yasserzamani Sorry for the delay, other open source projects and vacations interfered.
I'm not sure if the priority parameter of getAllSuperclassesAndInterfaces is necessary? Are you aware of any use-cases where it is necessary? Maybe we should keep things simple and remove it?
Otherwise the pull request is fine. :=) :+1:

Coverage increased (+0.07%) to 94.675% when pulling 90e252f571377cac39f5e2a3fc73749f589c24de on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

Sorry for the delay, other open source projects and vacations interfered.

You're welcome, I understand and as an open source fun contributor, I'm patient enough :)

I'm not sure if the priority parameter is necessary?

No, is not. I just thought I should make it more general with more options to prevent future needs for other user's PRs. Now, with thanks to your recommendations I remove it :)

Created https://issues.apache.org/jira/browse/LANG-1321 for the ClassUtils#getAllSuperclassesAndInterfaces addition.

If I'm not mistaken the list returned by getAllSuperclassesAndInterfaces can contain the same interface multiple times if it is implemented by more than one super class. To prevent this the result should be collected in LinkedHashSet first (similar to https://github.com/yasserzamani/commons-lang/blob/90e252f571377cac39f5e2a3fc73749f589c24de/src/main/java/org/apache/commons/lang3/ClassUtils.java#L448). What do you think?

@PascalSchumacher , sorry for my bad decisions. Again I thought I should keep it public to provide same functionality for someone who needs in future :)
Now, I removed it to MethodUtils as a private method. I also added @since tag and mentioned interfaces in @return java doc.
Thanks a lot!

Coverage increased (+0.09%) to 94.693% when pulling 6aee4203260f93cf4511779e8078952e90d6bb6f on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

Coverage increased (+0.09%) to 94.693% when pulling 6aee4203260f93cf4511779e8078952e90d6bb6f on yasserzamani:LANG-1317 into 4a300fee2ef1c03902d0fb25ceb02aa01d0fab46 on apache:master.

@yasserzamani Thanks!
No need to apologize. It is just that we try to be conservative with new additions (If we add a public method we have to support it for a long time and can not do any incompatible changes.). If the method is deemed generally useful it can always be moved and made public later on.

Merged. Thank you very much.


fix for TextEdit::set_text firing signals it shouldn't.

Removing some "changed" signals in "set" functions.
Includes revert of commit 384625aa31a3627c25246e06c1fbc3019866765c
fixes #18937

That's only a partial revert of 384625a though, what about the rest? (or were those removed already?)

@akien-mga sorry, I should have noted it in the PR. Reduz already removed the signal from the color_picker one in 005b69cf6e276209464cc8c36ebc7376679925b6


Let kotlin-dsl fail with reasonable message when required Kotlin compiler arguments have been removed

Fixes https://github.com/gradle/gradle/issues/24788

@bot-gradle test QFL

I've triggered the following builds for you:

QuickFeedbackLinux build

I've triggered the following builds for you:

QuickFeedbackLinux build

@bot-gradle test this

I've triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test this

@bot-gradle test and merge

I've triggered a build for you.


Fix for undefined method error

Minor fix for undefined method error when attempting to use an iTunes Connect user that doesn't have the correct role.
Repo Steps

Create an iTunes Connect user with "Developer" Role and set the Boarding env variables to use that user.
Attempt to register a new test flight user.
Observe following stack trace:

#<NoMethodError: undefined method `email' for #<Spaceship::Tunes::Member:0x007fba2965d0e8>>
/Users/dougsuriano/dev/boarding/app/services/boarding_service.rb:121:in `find_app_tester'
/Users/dougsuriano/dev/boarding/app/services/boarding_service.rb:42:in `add_tester'
/Users/dougsuriano/dev/boarding/app/controllers/invite_controller.rb:91:in `create_and_add_tester'
/Users/dougsuriano/dev/boarding/app/controllers/invite_controller.rb:74:in `submit'

I signed it!


"Uncaught Error" message

Describe your problem here.
After downloading a mod and attempting to play in story mode, I got a pop up message saying "Uncaught Error: [file_contents,assets/data/21/21.json]" Am I missing files or did I not download the files correctly? Thanks.

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

issue from chart file or chart not found thats all

issue from chart file or chart not found thats all

You need a correct difficulty name and song too to work or he is litterally need to edit weekname.json thing LOL

issue from chart file or chart not found thats all

You need a correct difficulty name and song too to work or he is litterally need to edit weekname.json thing LOL

agreed