cequel/record/finders.rb:93: duplicated argument name

Hello,
I have recently tried cequel 1.5.0. First please take a look at my Cequel models:
class Account
  include Cequel::Record
  key :name, :text
  column :description, :text
  has_many :api_keys
end

class ApiKey
  include Cequel::Record
  belongs_to :account
  key :id, :timeuuid, auto: true
  column :secret, :text
end

After running rake cequel:migrateI recived following error:
SyntaxError: /Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/finders.rb:93: duplicated argument name
          def find_by_name_and_name(name, name)
                                              ^
/Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/finders.rb:90:in `def_finder'
/Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/finders.rb:75:in `def_key_finders'
/Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/finders.rb:61:in `key'
/Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/dirty.rb:22:in `key'
/Users/ernest.bursa/.rvm/gems/jruby-1.7.17@meta_store/bundler/gems/cequel-6935b245fef4/lib/cequel/record/timestamps.rb:36:in `key'

After small research I found that this error is rised due to #key_columns:
key_columns => [#<Cequel::Schema::PartitionKey: name text>, #<Cequel::Schema::ClusteringColumn: name text>]

method_suffix => "name_and_name

I have no expirence with Cequel and its internals, I would be very grateful if you could share any idea how to solve that issue.

So, this is "standard" behavior in rspec-preloader, which we use in our development workflow. It reloads any files that change. And, the consequence, we we get this error and can't use rspec-preloader.

That is unfortunate. I consider it a bug that loading the file more than once produces invalid finder methods. I'd merge a PR that fixed this bug.

@pezra Do you have thoughts on where I need to focus to fix this?

@pezra Following up no this.
This gem is QUITE a mess in a docker-based development environment. Rspec tests don't seem to respect a YML file and expect <IP_ADDRESS> which is NOT the IP of a Cassandra server in a test environment in Docker.  This is making solving this problem exceedingly challenging.
So much so that I am considering abandoning Cassandra all together for something more production worthy in a ruby context.  I truly worry that this repo/gem has not been updated in so long, that we'll be stuck waiting on updates related to Rails 5, docker, Rspec, and others.
I do have my patch creating finders. But, the fixes cascade through the migrations and other areas of the system.. and i'm not pleased that my development on this feels like whack-a-mole.
Some suggestions would be greatly appreciated, so I can deliver a pull request that has a shot at actually being merged.

I have been neglecting this project for the last few weeks because i was
overwhelmed at work. I think that has mostly settled down so hopefully I
will be able to merge some of the pending PRs real soon now.
Regarding your quality concerns, this is a volunteer project. We welcome
all improvements. There are many areas in which the code could be better
and there is no better person to make those improvments than you. I will
support you where i can.
Many people, including me, use cequel in production and it works rather
well but that does not mean that it is right for you. It is also worth
noting that cequel is not the only option for using Cassandra in ruby. If
you decide that cequel is not right for you please explore those other
options. However, if there is a viable alterative to Cassandra for your
problem you should seriously consider it. NoSQL databases are hard to use
well. Cassandra is no exception. If a relational database could possibly
work you will probably happier with it.

I understand that and appreciate where you are coming from. I think for me,
the core concern is that a code base is abandoned. If I spend a lot of time
hacking it to make it work, was it the right tool in the first place?
I spent more than a week on trying to make it work in our environment
(docker + rspec-preloader) and didn’t get there… so I gave up for now..
I’ll likely come back to it in a bit.. once my head heals from beating it
against the wall.. :-)
I appreciate the hard work and effort it requires to maintain an open
source project. I did not mean to diminish that.
On Fri, Sep 2, 2016 at 11:16 PM, Peter Williams<EMAIL_ADDRESS>wrote:

I have been neglecting this project for the last few weeks because i was
overwhelmed at work. I think that has mostly settled down so hopefully I
will be able to merge some of the pending PRs real soon now.
Regarding your quality concerns, this is a volunteer project. We welcome
all improvements. There are many areas in which the code could be better
and there is no better person to make those improvments than you. I will
support you where i can.
Many people, including me, use cequel in production and it works rather
well but that does not mean that it is right for you. It is also worth
noting that cequel is not the only option for using Cassandra in ruby. If
you decide that cequel is not right for you please explore those other
options. However, if there is a viable alterative to Cassandra for your
problem you should seriously consider it. NoSQL databases are hard to use
well. Cassandra is no exception. If a relational database could possibly
work you will probably happier with it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cequel/cequel/issues/206#issuecomment-244523415, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAQE5b9iwhc8NDx9rWGFv0RvegkRn36gks5qmOacgaJpZM4DLkEh
.


When the activity configuration is changed.

Fixes issue #107

Is it still needed if #107 is fixed?

Is it still needed if #107 is fixed?

#107 might b fixed, but its cousins need fixing too.


Update Token-Transition-Workshop.md

@jstathas, thanks for updating this page! With Indico timetable links, though, it is a good idea to strip off the date component at the end (#20211014 in this case).


Migration support with the CC operator

Some hardware based TEE solutions may break the migration features (e.g., VM migration features). So will CC operator be aware of this which can be reported by the low level? Then users who deploy the confidential containers can know this. If the users need a flexible and scalable deployment,  they can choose the node with the TEE solution which can support the migration.

I don't think we should worry much about this as, AFAIU, kata-containers has never ever supported live migration.
We can be overly cautious and plan ahead, but I don't think we need to do that right now. :-)

@fidencio Sure. So should we close this ?

Yep, I think we can.
If you want, really really want, to have migration supported we can start a thread on the kata-containers side, but for now we can close this one.

Yep, I think we can. If you want, really really want, to have migration supported we can start a thread on the kata-containers side, but for now we can close this one.

Got it.


System.ArgumentNullException when awaiting Device.ReadCharacteristic

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[x] iOS
[?] Android
[] tvOS
[] macOS
[] .NET Standard
UWP IS NOT SUPPORTED DURING THE BETA PERIOD - ONLY PRs ARE WELCOME FOR NOW

Version of OS(s) listed above with issue
11.4
Version of Library
6.2.2
Expected Behaviour
There is currently a crash when awaiting Device.ReadCharacteristic which I did not expect ;)
Actual Behavior
Source:
        protected async Task readMacAddress()
        {
            IGattCharacteristic waka;
            await (Device.ReadCharacteristic(BleService.DeviceInformation, BleCharacteristic.MacAddress).Subscribe(
                onNext: Result =>
                {
                    MacAddress = BitConverter.ToString(Result.Data).Replace("-", string.Empty);
                },
                onError: Error =>
                {
                    throw new BleException("Cannot Retrive MAC Address, Error Reading MAC Address");
                },
                onCompleted: () =>
                {
                    return;

            }) as IObservable<CharacteristicGattResult>);
        }

Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
  at System.Reactive.Linq.Observable.GetAwaiter[TSource] (System.IObservable`1[T] source) [0x00003] in <370f6a6bb34048878534065376a195cb>:0
  at Lynkd.Models.Peripherals.RPHPeripheral+<readMacAddress>d__13.MoveNext () [0x00012] in /Users/ericbowman/Documents/Development/Mobile/LYNKD/Lynkd/Models/Peripherals/RPHPeripheral.cs:25
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113
  at Lynkd.Models.Peripherals.RPHGunbox+<InitializeAsync>d__1.MoveNext () [0x00020] in /Users/ericbowman/Documents/Development/Mobile/LYNKD/Lynkd/Models/Peripherals/RPHGunbox.cs:12
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
  at UIKit.UIKitSynchronizationContext+<>c__DisplayClass1_0.<Post>b__0 () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/UIKit/UIKitSynchronizationContext.cs:24
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/Foundation/NSAction.cs:125
  at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/UIKit/UIApplication.cs:79
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/<IP_ADDRESS>/src/Xamarin.iOS/UIKit/UIApplication.cs:63
  at Lynkd.iOS.Application.Main (System.String[] args) [0x00001] in /Users/ericbowman/Documents/Development/Mobile/LYNKD/Lynkd.iOS/Main.cs:17

You are not using RX properly at all!!  You can’t subscribe and await like this.  Just await on device.readcharacteristic directly.

Could you give me a little bit more direction than that? I am brand new to RX and I am learning. A sample snippet, or a link to a blog post?

Come on.... seriously I'm not google or a teacher.  There are samples & unit tests in this repository for how to use this library and there are a ton of websites on reactive programming.
http://reactivex.io/

For anyone else who comes across this; I was overcomplicating the situation. As aritchie commented, I was not using RX correctly and you can await the ReadCharacteristic call directly. The correct code is as follows:
        protected async Task readMacAddress()         {             var macResult = await Device.ReadCharacteristic(BleService.DeviceInformation, BleCharacteristic.MacAddress);             MacAddress = BitConverter.ToString(macResult.Data).Replace("-", string.Empty);         }
Aritchie, you could have been a lot nicer about your help. I'm sure you've been new to something and felt insecure about it before and I hope when you were in that situation others didn't treat you the way you just treated me. That said; I've really enjoyed using your library so thank you for writing and maintaining it.


why use normal attributes?

I am not sure I understand why there is a requirement that these are normal attributes which persist chef client runs. I think during the guard it should be node as opposed to normal as it should resolve to whatever attribute precedence level is highest. This leave it to the user to decide whether they want to use normal, default, etc. Many AWS envs have ephemeral instances that come up and down on their own this makes it harder to use this cookbook.

You're right @majormoses , let me go through the code once. It's been a while since I wrote this and ruby-chef DSL isn't my strong suit!

If you want some help I am more than willing to submit a PR I just wanted to make sure there was not some reason and that this is being actively being maintained before investing the effort.

@majormoses  Please do. There's no reason for how things are except probably my ineptitude !


Seems that I comes too late...

Sorry to talk about a non-issue problem here.
As described in #152, I finally find out how to fix that, you should scale the ImGui canvas (i.e. io.DisplayScale),  and keep fontScale to 1. Then we will get right DPI scaled interface.
PLUS, The OnRawEvent function, we should multiply context_->GetInput()->GetInputScale(). Or the program behaves trange on macos
Regards

Pull from master and test again. I merged my HDPI support PR code to rbfx. Now it should look much better.

Yeah, but seems the scene view and game view looks rough, I suspect you set a view port smaller than the actual visual area size. And the camera orbital control is not available any more : (
I think the solution described above makes more sense. ; )

I think the solution described above makes more sense. ; )

It is not as easy as it looks ;) Dear ImGui works at pixel coordinates. If you scale io.DisplaySize x 2 suddenly you have two times more space. You need your custom widgets to take twice as much space. If you were rendering a button with size {10, 10} now you need to render it with size {20, 20}. Besides this only increases canvas for rendering. Font looks small.  It is a hack though. These font settings apply globally and collapse as soon as second monitor comes into play. The biggest issue of all is all kinds of offsets and paddings and what not used by default Dear ImGui widgets. With io.DisplaySize x 2 all these paddings and offsets are too small. Some of them can be mitigated by upscaling values in style. Some others can not. So it really is only a half-way solution. Lucky us proper solution is in the works and rbfx is helping to find remaining issues and get it ready to merge into Dear ImGui :bowing_man:


Re-enable Lazy validation test.

Works for me locally.
Resolves rdar://problem/31897334.

@swift-ci Please smoke test and merge

@swift-ci Please smoke test

@swift-ci Please smoke test

It's still failing on some of the Apple-internal builders. Reverting.


Hooked JavaScript parseFloat() to grinder_logger.dll via proxy @ 0x001A000

Hey,
everytime i try running grinder on chrome i cant get the node running and it keeps crashing the browser before the fuzzing proccess.
any ideas?
[+G+] Starting at 2017-02-07 17:52:06
[+G+] Using the config file 'config.rb'...
[+G+] Bringing up Grinder node 'G1' with ruby 2.0.0 (64-bit)...
[+G+] Started the Grinder continue process 4808
[+S+] Starting at 2017-02-07 17:52:06
[+S+] Adding fuzzer 'SimpleExample' to the testcase server
[+S+] Testcase server running on <IP_ADDRESS>:8080
[+G+] Started the Grinder server process 3432
[+G+] Started the Grinder debugger process 3176
[+D+] Starting at 2017-02-07 17:52:09
[+D+] Using the symbol path 'SRVC:\symbols*http://msdl.microsoft.com/download/
symbols;SRVC:\symbols*http://chromium-browser-symsrv.commondatastorage.googlea
pis.com'.
[+D+] Running 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
[+D+] Attached debugger to new 32-bit process 4200.
[+D+] Debug message from process 4200: RecursiveDirectoryCreate( C:\Users\themrz
master\AppData\Local\Google\Chrome\User Data directory exists )
[+D+] Attached debugger to new 32-bit process 4368.
[+D+] Logger DLL loaded into process 4368 @ 0x73CF0000
[+D+] Logging process 4368 to log file 'C:\Users\themrzmaster\AppData\Local\Temp
\Low\logger_4368.xml'
[+D+] Logger DLL loaded into process 4200 @ 0x73CF0000
[+D+] Logging process 4200 to log file 'C:\Users\themrzmaster\AppData\Local\Temp
\Low\logger_4200.xml'
[+D+] chrome.dll DLL loaded into process 4200 at address 0x0F8B0000
[+D+] Resolved chrome.dll!v8::internal::Runtime_StringParseFloat @ 0x0FF42DA0
[+D+] Hooked JavaScript parseFloat() to grinder_logger.dll via proxy @ 0x001C000
0
[+D+] Attached debugger to new 32-bit process 2180.
[+D+] Attached debugger to new 32-bit process 4864.
[+D+] chrome_child.dll DLL loaded into process 4864 at address 0x0FA90000
[-D-] Unable to hook JavaScript parseFloat() in process 4864, grinder_logger.dll
not injected.
[+D+] chrome_child.dll DLL loaded into process 4864 at address 0x0FA90000
[-D-] Unable to hook JavaScript parseFloat() in process 4864, grinder_logger.dll
not injected.
[+D+] chrome_child.dll DLL loaded into process 4864 at address 0x0FA90000
[-D-] Unable to hook JavaScript parseFloat() in process 4864, grinder_logger.dll
not injected.
[+D+] Logger DLL loaded into process 4864 @ 0x73CF0000
[+D+] Logging process 4864 to log file 'C:\Users\themrzmaster\AppData\Local\Temp
\Low\logger_4864.xml'
[+D+] chrome_child.dll DLL loaded into process 4864 at address 0x0FA90000
[+D+] Resolved chrome_child.dll!v8::internal::Runtime_StringParseFloat @ 0x1014E
2A7
[+D+] Hooked JavaScript parseFloat() to grinder_logger.dll via proxy @ 0x001A000
0
[+D+] Attached debugger to new 32-bit process 6544.
[+D+] Attached debugger to new 32-bit process 1332.
[+D+] chrome_child.dll DLL loaded into process 6544 at address 0x02640000
[-D-] Unable to hook JavaScript parseFloat() in process 6544, grinder_logger.dll
not injected.
[+D+] chrome_child.dll DLL loaded into process 6544 at address 0x02640000
[-D-] Unable to hook JavaScript parseFloat() in process 6544, grinder_logger.dll
not injected.
[+D+] chrome_child.dll DLL loaded into process 6544 at address 0x02640000
[-D-] Unable to hook JavaScript parseFloat() in process 6544, grinder_logger.dll
not injected.

Hi @themrzmaster Do you solve this problem? Thanks


Issue with not being able to transform

This has to do with hot module reloading from webpack dev server and how it interacts with d3.


Create HTML version of the functions reference

Summary:
Convert the Stan functions reference from latex to HTML via Rmarkdown and Bookdown so that each function is its own HTML page.
Description:
This is a follow-on to https://github.com/stan-dev/stan/issues/2563 for the reference manual component.
The functions manual should have the same style and formatting as the reference manual, however it should be broken down into

one HTML page per function name so that Google searches can go directly to function
an index over this set of per-function pages for Stan docs

The conversion process should be documented and repeatable.  As part of this conversion, also generate code snippet for each function as a .js file for RStudio.  See https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets.
Current Version:
v2.18.0

https://github.com/stan-dev/stan/pull/2661


Latest patch release seems to contain a breaking change

sqlformat::format now requires a &FormatOptions<_> for its third argument, when it used to take an owned FormatOptions. This makes SQLx fail to compile with that version.
Please consider yanking v0.2.7.

cc https://github.com/launchbadge/sqlx/issues/3544

The version has been yanked. I'd like to avoid this in the future. Are there any suggestions for catching this early? I recall there being a cargo tool to semi-automate this, though I can't remember what it was called.

You're probably thinking of https://github.com/obi1kenobi/cargo-semver-checks

It looks like the breaking change is difficult to isolate and revert without reverting meaningful changes. As such, I'm moving forward releasing the new version as 0.3.0 instead so that it is properly acknowledged as breaking.


chore(traits): remove tracing

Release Note
chore(traits): remove tracing

Failure related to https://github.com/apache/camel-k/issues/5533


Interpolation setting "closest" not imported from glTF (Collada works)

Godot version
v3.5.1.stable.mono.official [6fed1ffa3]
System information
Ubuntu 22.04.2 LTS, GLES3, GeForce RTX 3090
Issue description
I've created a plane mesh with a texture applied to it in Blender, setting interpolation from the default (linear) to closest, to have the texture render without any undesired edge pixels.
When I export that mesh as glTF, Godot renders it as if interpolation was set to linear instead of closest. Exporting the exact same mesh as Collada, Godot renders it as desired. I've also looked at the exported glTF in a different viewer application and it renders as expected there, so I suspect an issue with Godot's glTF importer.
Here's the original texture:

Here's how it looks in Blender with interpolation set to linear:

Here's how it looks in Blender with interpolation set to closest:

Here's how it looks in Godot - on the left is the glTF (renders incorrectly), on the right the Collada (renders correctly):

Steps to reproduce
In Blender

Create a new plane mesh
In the material pane, create a new material
Set the new material's base colour to an image texture
Select the texture I've included above
Set interpolation to closest
Export the projects as glTF, limit to selected objects

In Godot

Create a new 3D scene
Drag and drop the glb file created from Blender into the scene

Minimal reproduction project
closest-interpolation.zip

FWIW, while experimenting, I also noticed that changing extrapolation from repeat (the default in Blender) to extend has no effect in Godot. Inspecting the material on the actually imported object, the texture flags do have repeat checked. If I uncheck it manually, it does not repeat, but the setting doesn't seem to be imported. Just mentioning it here since it seems related, but the issue that bothers me more is the closest interpolation setting not working as described above.

How it looks in Godot 4

So I think it works?

Yes, that's what it should look like! Unfortunately I'm stuck with 3.x for now, for GLES2 support. But I suppose a fix could be backported?


Android Activities are started incorrectly

When providing a single value via intent key, the android implementation seems to call Intent(String) constructor, which is equivalent to the following
Intent it = new Intent()
it.setAction(getParam('intent'))

This causes issues when trying to launch activities that are exposed by dependencies. Instead you should be simulating an Intent(Context, Class<?>) constructor, which does the following
Intent it = new Intent()
ComponentName cm = new ComponentName(this.cordova.getActivity().getPackageName, getParam('intent'))
it.setComponent(cm)

where intent is fully qualified class name for activity you want to open.

Hello!
Thanks for fix!


Flutter image picker - Help with getLostData()

Hi,
I have recently updated my image picker version and I have encountered a few changes problems.

Your readme says that

API 29+
No configuration required - the plugin should work out of the box.

API < 29
Add android:requestLegacyExternalStorage="true" as an attribute to the <application> tag in AndroidManifest.xml. The attribute is false by default on apps targeting Android Q.

Correct me if I'm wrong but aren't these the wrong way around?

The version I was on also did not talk about MainActivity being destroyed by android in the readme... Is this a problem that was present on older versions or has this been caused by something in the newer versions of the imagepicker.

I am having trouble implementing my version of retrieveLostData() mainly because I cant seem to be able to recreate the error. Is there a method I can use that will force the Main Activity to be destroyed so I can test my future builder logic?

Furthermore I use the provider package to manage my application state which I alter when picking images. I can't tell if i need to update state again when the main activity is destroyed or if the current data will persist (as it hasn't ever happened). I imagine the answer to number 3 will help answer this.

Please can you help debug this as I currently have code written that has never ran and I can't recreate a scenario that will cause retrieveLostData() to be called.

Hi @febg11

I agree, readme needs an update
Needs readme update
Can you please provide and a complete reproducible minimal code sample
this is not related to image_picker but  i will try based on 3.

Can you also please provide your flutter doctor -v your flutter run --verbose running your code sample and picking image
Thank you

My code has quite a lot going on but the simplest example would be the example code provided but the flutter team... here.

  Future<void> retrieveLostData() async {
    final LostData response = await _picker.getLostData();
    if (response.isEmpty) {
      return;
    }
    if (response.file != null) {
      if (response.type == RetrieveType.video) {
        isVideo = true;
        await _playVideo(response.file);
      } else {
        isVideo = false;
        setState(() {
          _imageFile = response.file;
        });
      }
    } else {
      _retrieveDataError = response.exception.code;
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: !kIsWeb && defaultTargetPlatform == TargetPlatform.android
            ? FutureBuilder<void>(
                future: retrieveLostData(),
                builder: (BuildContext context, AsyncSnapshot<void> snapshot) {
...
...
...

This isnt a bug per say I am just struggling to find.a method to get what is called retrieveLostData() in the example to be called by the future builder where the response.file is not null.
The read me states:
"Android system -- although very rarely -- sometimes kills the MainActivity after the image_picker finishes. When this happens, we lost the data selected from the image_picker. You can use retrieveLostData to retrieve the lost data in this situation. For example:"
...
"There's no way to detect when this happens, so calling this method at the right place is essential. We recommend to wire this into some kind of start up check. Please refer to the example app to see how we used it."
I am just looking for a method that will force the MainActivity to be killed so I can actually debug what comes back in response.file. Being able to debug it will help al lot as its kind of broken my current process flow (which is fine).
I don't really think my flutter run output will help as its would running the image picker example app just fine... I need a method to effectively force an error.
Thanks for replying so quickly :)
Side note
it also says this is very rare... How often does this actually occur as I dont think I have had it happen to me yet.

Any update on this? its been quite a while

For 3 @febg11
Add some debugprint in retrieveLostData Function after
 if (response.file != null) {
you can enable dont keep activites in dev options and then push your app to background ,after selecting any image , as soon as you push it to background , the debug connection would be terminated , now run your app again , it should log the debugprint in the console
hope it helps


According to: Composer installation guide

According to: Composer installation guide: https://github.com/huebs/composer-asset-plugin/blob/master/Resources/doc/index.md#installation

Thanks!


net/http: can't handle Onion domains

What version of Go are you using (go version)?
go1.13.8 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/melroy/.cache/go-build"
GOENV="/home/melroy/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/melroy/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.13/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/melroy/Documents/drone/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build611413724=/tmp/go-build -gno-record-gcc-switches"

What did you do?
While using the Go net/http package, try to connect to an valid onion address.
In my case I'm using Drone a CI tool in Docker written in Golang. Drone tries via Oauth2 to connect to the Git server (eg. Gitea), but the POST request on http://mydomain.onion/login/oauth/access_token for Gitea fails: no suitable address found. See code lines below for more details what Drone is doing.
Usage example: Code line of HTTP package usage in Drone.
Usage example 2: Call to Oauth2 package
--> Code line of HTTP usage in Oauth2 package of Drone
What did you expect to see?
I would expect that Golang is able to connect to onion domains by using the http package, WITHOUT errors.
What did you see instead?
dial tcp: address xxxx.onion: no suitable address found

Output of Drone:
ERRO[0026] oauth: cannot exchange code: secret: Post "http://xxx.onion/login/oauth/access_token": dial tcp: address xxxx.onion: no suitable address found
DEBU[0026] cannot authenticate user: Post "http://yyy.onion/login/oauth/access_token": dial tcp: address yyy.onion: no suitable address found
DEBU[0026]                                               fields.time="2020-10-29T21:49:40Z" latency=1.611572ms method=GET remote="<IP_ADDRESS>:40842" request="/login?code=secret%3D&state=secret" request-id=secret

More reports
I'm not the only one suffering from this problem. Maybe not fully related, but somebody that tries to use go get by using a onion domain to fetch packages: https://www.reddit.com/r/techsupport/comments/981frd/need_help_with_golang_and_tor/
It could be touching the same code base in Go?
Thanks.
Regards,
Melroy van den Berg

CC @odeke-em, @bradfitz, @empijei.

Thank you for filing this issue/question @danger89 and welcome to the Go project!
Thank you for the tag @dmitshur.
Technically, given that .onion addresses aren't actual DNS names, they require you to connect to Tor first and then the Tor protocol will handle the tunnelling and direction to the appropriate resource -- thus DNS requests are ALWAYS going to fail if you don't have an appropriate reverse proxy. If you have your Tor compatible proxy running, you can create a reverse proxy in Go code by https://golang.org/pkg/net/http/httputil/#NewSingleHostReverseProxy or just set in your environment HTTP_PROXY as per https://golang.org/pkg/net/http/#RoundTripper.
From Go's stand point, and from pretty much every language and browser, without Tor-enabled support, resolving such domains won't work. Here is a reference to Facebook describing the problem and them announcing their .onion site https://www.facebook.com/notes/protect-the-graph/making-connections-to-facebook-more-secure/1526085754298237/

I use the web browser (Tor), so it should work without HTTP proxy? I'm using a browser that supports onion domains.
Gitea is running fine without any HTTP proxy on tor onion domain,using the Tor browser.

I agree with Odeke. We don't plan to support Tor natively in the standard library.

@odeke-em You know that Tor runs a SOCK5 proxy by default, on port 9050, so that is available..? In fact Tor by default won't provide you any HTTP proxy.
I hope you know that.

Apparently it doesn't ;( proxyconnect tcp: dial tcp: lookup socks5h on <ip>: no such host

Using HTTPTunnelPort 8118 in Torrc and HTTP_PROXY=https://<IP_ADDRESS>:8118 will result in: proxyconnect tcp: dial tcp <ip:port>: connect: connection refused. since I Tor only provides CONNECT proxy not a GET proxy.


Allow paths with whitespaces for samples in SFZ loader

The following SFZ line example (1):
<region> loop_mode=loop_continuous loop_start=3510 loop_end=3984 sample=samples/Mizmar A-Sha3bi-1.wav
Was incorrectly interpreted as:
<region> loop_mode=loop_continuous loop_start=3510 loop_end=3984 sample=samples/Mizmar
This patch allows referencing samples with whitespaces in their paths (like 1).

I'm happy to accept this but there are two versions of this sfz loader floating around now and its kind of annoying. They need to be merged.


Update TUTORIAL name

We shouldn't refer to ERC-20 directly, as it is not a Casper standard. Updating the tutorial title to something more general.

The file was deleted from a previous commit.


Can Slidebars become compatible with parallax.js

I'm really loving Slidebars. I am always on the hunt for the most flexible and easy to use off canvas plugins and this is one of the best I've found to date.
So in that light, I have been plugging in the popular plugins to see if anything will break and everything is working nicely so far (MasterSlider, Isotope etc).
One issue I have found is Slidebars isn't compatible with parallax.js : http://pixelcog.github.io/parallax.js/
I think it is due to parallax.js statement here:

What parallax.js will do is create a fixed-position element for each parallax image at the start of the document’s body. This mirror element will sit behind the other elements and match the position and dimensions of its target object.

Please please please do you think there is a chance Slidebars could become compatible with parallax.js?
Or does it break/conflict with Slidebars core framework?

Hey mate, just bumping this. Interested in your response. So hoping this could work with parallax.
Cheers.
=)

I'm experiencing the same issue. Also created a new issue that is related to this. Really looking forward for a reply/fix. Will let you know when I find a proper solution.

Just a heads up for anyone following.
I have been working on seperate parallax project (not using slide bars) and opted for this parallax approach coz it's smoother in safari: https://ianlunn.co.uk/plugins/jquery-parallax/
I am yet to try it with SlideBars but would be worth a try (I will report answer after I have tested).
=)

I can confirm that the before mentioned parallax alternative does not play well with SlideBars.
Adam (adchsm) if you have time I would be happy to set you up an example for you so you can perhaps see if it can be tweaked so that we have a working parallax solution that plays nicely with SlideBars.
Thoughts?

I am also trying to make this work with parallax. Any ideas?

I was able to get it to work. If I recall correctly it had something to do with transitions. I will post my solution in the next couple of days for those who are still interested. :)


sortedlist needs an insort_left-like method

Although sortedlist provides methods to obtain the appropriate index to introduce a new element in pre-order and post-order (a.k.a. bisect_left and bisect_right), it is impossible to use those methods to introduce a new element in the desired ordered position, because the 'add' method only supports post-order. To achieve this, at this time you need to access to protected attributes and methods, which is not very convenient.

@tomas-teijeiro Have you tried the SortedContainers module? It has a SortedList with bisect_left and insert methods. You could use those to implement your add_left method.


Warn on unused disables

When there is a // tslint:disable-line foo-rule comment, we should verify that foo-rule has a failure on that line. Similar for disable-next-line.
For // tslint:disable we should verify that at least one rule has a failure in the disabled range.
Depends on #2369, since if we're doing this, we can't allow rules to do anything "smart" with the disable intervals.

dupe of #1330


Update gitignore, remove untracked files, and format files

I noticed that the .import folder was committed, so I deleted it and made sure the gitignore was good. I removed all untracked files in the gitignore. I also ran a formatting script which removed trailing space characters, since they do nothing.

Thanks so much!
Happy to accept the pull request!
Some notes:
No idea how the .import folder got added to the repo, must have been early in development
Can you point me to your or possibly another formatting script? Would make things easier in the future.
Concerning the export_presets.cfg - I know it is usually in the .gitignore, but why is that? I couldn't find any absolute paths or OS specific things
Anyways, thanks for your time!

The formatting script is this one, except that I manually fix markdown files by adding backslashes: https://github.com/godotengine/godot-demo-projects/blob/master/file_format.sh
export_presets.cfg is OK to be committed as of Godot 3.2 (it contains no sensitive information as of 3.2), but is still sometimes not desired (in case different contributors want to export to a different path). I noticed that for this repo it didn't contain particularly important information (everything seemed to be at the default settings), and it was already in the gitignore, so I just removed the file rather than removing the ignore.


Adjust alignment for comments

Could you support an option to align comments?
Sample:

\begin{algorithm}
	\caption{Merge Sort}
	\begin{algorithmic}
	    \Procedure{Merge-Sort}{$A,p,q,r$}
			\If{$p\ge r$} \Comment{zero or one element?}
				\State \Return\Comment{early return}
			\EndIf
			\State $q \gets \lfloor(p+r)/2\rfloor$
			\State \Call{Merge-Sort}{$A,p,q$}
			\State \Call{Merge-Sort}{$A,q+1,r$}
			\State \Call{Merge}{$A,p,q,r$}
	    \EndProcedure
	\end{algorithmic}
\end{algorithm}

Hi, well, the comment now indeed looks bad. How about let them align to the right side like below:

If you are okay with this, I can try to implement.

@ytliu74
Awesome!
If the comment is on a separate line, it would be better to display it as before.

Hi @rosshjb, you can refer to this pull request https://github.com/ytliu74/obsidian-pseudocode/pull/18 for a possible solution. But it's not perfect. But you can use it as a workaround, thanks.

Example here:

Hi @rosshjb, you can refer to this pull request #18 for a possible solution. But it's not perfect. But you can use it as a workaround, thanks.

This change seem to break the layout...

This fix worked for me
.ps-comment {
        float: right;
}

Or, to make it even more consistent with LaTeX package documentation (https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf):

Change it like that:
.ps-root {
        font-family: KaTeX_Main, "Times New Roman", Times, serif;
        font-weight: 400;
        font-variant: normal;
        font-style: normal;
        text-transform: none;
}

.ps-comment {
        font-family: KaTeX_Main, "Times New Roman", Times, serif;
        font-weight: 400;
        font-variant: normal;
        font-style: italic;
        text-transform: none;
        opacity: 70%;
        float: right;
}

Now it looks like this:

I just hacked this file: ~/.obsidian/plugins/pseudocode-in-obs/styles.css

https://github.com/ytliu74/obsidian-pseudocode/pull/22
This could address the issue, but more clean up is possible.

Thanks so much for the support from @anton-dergunov. I've already merged the commit and it's included in the newest version.


[Bug] Unable to launch on the latest version

Before Reporting

[X] I found no existing issues matching my bug
[X] My issue is not caused by a plugin or theme

Describe the Bug
When I launch Discord (latest version) on my Mac (MacOS 14.4.1), BetterDiscord tries to start and instantly crashes, so Discord starts without BetterDiscord. It worked perfectly 2 days ago before Discord updated the app.
Expected Behavior
BetterDiscord doesn't start.
Steps To Reproduce

Launch Discord
BetterDiscord launches
BetterDiscord crashes
Discord works but without BetterDiscord (menus for BD are still available)

Operating System
MacOS
Discord Version
Stable
BetterDiscord Version
v1.3.0
Anything else?
I tried to uninstall and reinstall BetterDiscord several times, even deleted BD and downloaded it again and it still doesn't work.

Please confirm if using the "repair" feature from the BetterDiscord installer to disable your plugins fixes the issue.
Also, the best support is on the Discord Server rather than on the GitHub.

Yes, I even tried to reinstall with the said feature and it didn't change anything.

Please visit the support server for assistance.


Update to version 7.0.0 on tvOS not working

[REQUIRED] Step 1: Describe your environment

Xcode version: 12.1
Firebase SDK version: 7.0.0
Installation method: CocoaPods
Firebase Component: Analytics and Crashlytics

[REQUIRED] Step 2: Describe the problem
I'm trying to update both Firebase/Analytics and Firebase/Crashlytics from version 6.34.0 to version 7.0.0 on tvOS.
But when running pod install the following problem happens:

The pod install works well on the previous version (6.34.0) for tvOS.

We have never supported Analytics for tvOS. See #2011.

I'm going to close, but can reopen with more detail that makes this actionable for us.


Final release preparations

For the first release, there are still a few remaining things:

[x] Version bump to 1.0.0
[x] Finalizing README (I will change the introduction a bit)
[x] License
[ ] Github Release
[ ] Pipy?
[ ] Make the repo public (only metaspace2020 organization owners can do this).

@aeisenbarth Did you decide/talk to Theo about a license? Should we also set up a gh action to create releases (this could also automatically upload to pypi)?

Reopening, since github releases and pypi upload still need to be done.


Check supported extensions for rc.autostart generation

Had an issue after resolving merge conflicts in airframe config files. Git left the *.orig files lying around so they ended up in rc.autostart. It seemed someone already had the idea of checking the extensions but never got around to do it ;)? Works for "empty" extensions as it is now and should just work once we introduce an extension.

Rebased on master and added .hil extension. rc.autostart looks the same as on master now.

Did you diff it?

Yes


Hardcode to keep only 1 log

All of the logs that kops configures to rotate are sent to syslog so keeping only 1 log is sufficient.

Few comments:

This PR is against the release-1.10-appian branch. That's the alpha build, not the beta build which we're using now. We should make a PR against release-1.10-beta-appian.
This is another tactical fix to get some space back, but it requires rebuilding kops. It also doesn't touch the kube-apiserver-audit.log files - should we add that? Or more fundamentally, maybe we should just change pyinfraw code to save 1 audit log instead of 3 - that's faster than building kops and buys us 200 MBs relatively quickly.
Adam and I can come over to you after lunch so we can talk about a fix for this. We should consider a bigger root volume - whether that's via a kops configuration or whether that's updating the AMI Cloud is using.


not showing rating changes in educational round

i refreshed many times it is not showing the performance and rating changes

Thanks for reporting, but this is a problem with the Codeforces server again (see #55, #56).

If the server is not serving the correct responses, there is nothing the extension can do about it.

oohhk i got it now.. they are restricting robots using cloudflare to reduce traffic


Increase logo size and make it clickable everywhere

I cleaned up Houndci errors from this pull request: https://github.com/openfarmcc/OpenFarm/pull/866
I unsuccessfully tried to get rid of !important in _nav.scss, but at this point I haven't been able to trace down what those rules are overriding. So, we'll have to leave those in place for now.

Coverage remained the same at 99.352% when pulling 910b6f9c9980b81f59c9ab4a678c66f2f5da5226 on nicholasedwards:master into c325531cfc6125a94b38dd8f357405befe8cabc2 on openfarmcc:master.

Cleaned up a few Houndci errors, and got some more! Haha. You can learn something every day.
Gonna make one more try on this one ;)

Coverage remained the same at 99.352% when pulling cdc9e5c4eed173b1f3cd31886dfe2220a5d4566e on nicholasedwards:master into c325531cfc6125a94b38dd8f357405befe8cabc2 on openfarmcc:master.


Tooltips show up in the wrong place

We had a math-o.
Fixes #3563

@Hixie @vlidholt

Fixes https://github.com/flutter/flutter/issues/2020


Update asset_asset.js

ASSET_SHADER constant added.

You can add those too :)
ASSET_CSS: 'css',
ASSET_HTML: 'html'

@Maksims: ok, remove this merge request and i will make another one with complete addictions :)


article search api does not seem to work, when I try querying

The query is as below:-from nytimesarticle import articleAPI
api = articleAPI('4f716a9a9d8f455e908ec32b459a12ac')
articles = api.search(q="Obama",
fq={"headline": "Obama",
"source": ["Reuters",
"AP",
"The New York Times"]},
begin_date="20161001", # this can also be an int
facet_field=["source", "day_of_week"],
facet_filter=True)
////////////////////////////////////////////////////////////////////////////////////////
I get the following error:-

TypeError                                 Traceback (most recent call last)
 in ()
8                           begin_date="20161001", # this can also be an int
9                           facet_field=["source", "day_of_week"],
---> 10                           facet_filter=True)
Z:\Anaconda\lib\site-packages\nytimesarticle.py in search(self, response_format, key, **kwargs)
109
110         url = '%s%s?%sapi-key=%s' % (
--> 111             API_ROOT, response_format, self._options(**kwargs), key
112         )
113
Z:\Anaconda\lib\site-packages\nytimesarticle.py in _options(self, **kwargs)
82         for k, v in kwargs.items():
83             if k is 'fq' and isinstance(v, dict):
---> 84                 v = _format_fq(v)
85             elif isinstance(v, list):
86                 v = ','.join(v)
Z:\Anaconda\lib\site-packages\nytimesarticle.py in _format_fq(d)
67                     d[k] = ' '.join(map(lambda x: '"' + x + '"', v))
68                 else:
---> 69                     d[k] = '"' + v + '"'
70             values = []
71             for k,v in d.items():
TypeError: must be str, not bytes
can you please help me figure out if I am going wrong or if the API is broken ?

Try removing square brackets with the source filter.
"source":"The New York Times"
Looks like source filter with square brackets is causing a shard failure at the moment.

articles = api.search(q="Obama", fq={"headline": "Obama","source": "The New York Times"}, begin_date=20161001)
changed it to the above code removed the square brackets completely as you can see. Throws the same typeerror

There is a shard issue causing problems.  Until that is fixed, you might be able to find some working queries.
q=obama&fq=source%3A"The%20New%20York%20Times"%20AND%20headline%3A"Obama"&begin_date=20161001

Our search team says square bracket syntax is for range queries.  You can achieve the results you want with parentheses if you'd like the disjunction of multiple values for a field, i.e., you can do field:(A B) to mean field:A or field:B.


Could not resolve "crypto"

When using the adapter-cloudflare, the build fails with an error like this:
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "crypto"

    .svelte-kit/output/server/chunks/ratelimit.js:3:19:
      3 │ import crypto from "crypto";
        ╵                    ~~~~~~~~

  The package "crypto" wasn't found on the file system but is built into node. Are you trying to
  bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

error during build:
Error: Build failed with 1 error:
.svelte-kit/output/server/chunks/ratelimit.js:3:19: ERROR: Could not resolve "crypto"

I've looked around for solutions, for but I didn't find any, so I opened this issue.
It seems the only occurrence of crypto is 1 line for hashing, so maybe this could be solved differently, e.g. with a custom function?
https://github.com/ciscoheat/sveltekit-rate-limiter/blob/eb88637b4eab570746726c1797a447569f89d2b3/src/lib/server/index.ts#L155
Cloudflare recommends their Web-Crypto API (https://developers.cloudflare.com/workers/runtime-apis/web-crypto) for doing stuff crypto-related.

The Web Crypto API differs significantly from Node’s Crypto API. If you want to port JavaScript code that relies on Node’s Crypto API, you will need to adapt it to use Web Crypto primitives.

Possible solutions

Support Cloudflare adapter natively (by making appropriate fallback to Web Crypto API)
Expose the hashing function as an interface, so that we can replace the hashing function (like a plugin) with whatever we need that doesn't require the crypto module.

Personally, I'd prefer the 2nd option, unless you have a better proposal :)

Hi, I was waiting for this issue to appear. :) Adding it as an function would work, though I'd like to keep the current as the default however. I wonder if that could be done with a dynamic import?

+1 for keeping the default.
Haven't used dynamic import myself yet, but it sounds like it could be used for this case. We could conditionally import crypto when a custom function is undefined somewhere in a constructor or so.

I'll make some experimentation with that. I can't foresee that the hash function will be anything else than (string) => string, so adding it as an option should be enough.

I've released v0.4.0 now, which should handle this automatically in both cases now. A hashFunction option has been added as well for completeness. Can you check that it's working for you?
Just a note for v0.4, the cookie limiter's preflight method is now async, so you need to await for it.

Hm, unfortunately it still doesn't work:

export const rateLimiter = new RateLimiter({
  // A rate is defined as [number, unit]
  rates: {
    IP: [10, 'h'], // IP address limiter
    IPUA: [4, 'm'], // IP + User Agent limiter
    cookie: {
      name: 'limiterid',
      secret: env.RATELIMIT_SECRET_KEY ?? 'DEV',
      rate: [30, 'm'],
      preflight: true,
    },

  },
  hashFunction: async (v) => {
    return `hash`
  }
});

yields error when building:
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "crypto"

    .svelte-kit/output/server/chunks/ratelimit.js:81:9:
      81 │   import("crypto").then((crypto2) => {
         ╵          ~~~~~~~~

  The package "crypto" wasn't found on the file system but is built into node. Are you trying to
  bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

error during build:
Error: Build failed with 1 error:
.svelte-kit/output/server/chunks/ratelimit.js:81:9: ERROR: Could not resolve "crypto"

You could actually reproduce it locally, without having a cloudflare account.
Just switch to adapter-cloudflare in svelte.config.js and run vite build, the error should pop up

Let's try again in 0.4.1 then!

:tada:
This works, and also deployed on cloudflare I'm able to trigger the limiter :)
Many thanks!
From my PoV you can close this issue, unless you want to keep it open for adding documentation or so.

I've added a bit about to the docs, so I'll close it. Thanks for helping out!


keep Gateway's AttachedRoutes field up to date

What this PR does / why we need it:
We need to update and keep up to date the Gateway's AttachedRoutes field, with the actual number of routes accepted by it.

Which issue this PR fixes:
Fixes #3120

Special notes for your reviewer:

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

I found that when we create more than 101 httproutes, the kong-ingress-controller cannot determine the attachedRoutes field correctly and the value keeps fluctuating.
It ends up making a huge amount of requests to kube-apiserver to update its fluctuating attachedRoutes continually.
Any idea in here?
@mlavacca

Hi, @gjkim42, thanks for reporting this issue! does this behavior happen consistently at 101? What I mean is, can you confirm it does not happen with 100 routes, but it does with 101? Furthermore, do you have logs with throttling from the API server? It shouldn't happen, as the local cache should be used to retrieve Routes and Gateways 🤔

I filed the bug and it has been addressed.
Please see https://github.com/Kong/kubernetes-ingress-controller/issues/4456#issuecomment-1667288469 here.

Cool, thanks!


model.close() Fails to Release Memory from ChatHandler Projector in Multimodal Models

Prerequisites
Before submitting, please confirm that:

[x] You are using the latest version of the code. No tagged versions exist as development is ongoing.
[x] You have carefully followed the instructions in the README.md.
[x] You have searched through open and closed issues using relevant keywords to ensure this is a new issue.
[x] You have reviewed the Discussions and are submitting a new bug report or enhancement.

Expected Behavior
When calling model.close(), the VRAM used by both the model and the associated projector model in a ChatHandler (for multimodal models) should be fully released.
Current Behavior
When using a multimodal model with a ChatHandler (e.g., moondream2), the model.close() method correctly releases the VRAM used by the main model but fails to release the VRAM used by the projector model within the ChatHandler. This results in residual memory usage and eventual exhaustion of VRAM, especially after multiple model loads and closures.
Steps to Reproduce

Load the model with a ChatHandler for a MultiModal model (MoonDream or minicpm-v):

chat_handler = MoondreamChatHandler({
    "clip_model_path": "/llm_models/minicpm-v/minicpmv-8b-projector_f16.gguf",
})
model = Llama(
    model_path="/llm_models/moondream2/moondream:1.8b-model-4.gguf",
    n_gpu_layers=-1,
    n_ctx=2048,
    chat_handler=chat_handler,
)

After performing inference, call model.close():

model.close()

Issue:

The model.close() call releases the VRAM used by the main model but does not release the VRAM occupied by the ChatHandler's projector model.
Memory continues to accumulate from the projection file, leading to eventual VRAM exhaustion.

Suggested Fix or Enhancement
The model.close() function should ensure that all resources, including those used by the ChatHandler's projector, are properly deallocated.

Workaround:
Explicitly close the ChatHandler too like this:
chat_handler._exit_stack.close()

Probably it would be a good idea to have that close too when the whole model is closed too, but leaving the suggestion here in case someone encounters the same issue.


Update package.json to include the repository

Hi there!
This change adds the repository property to your package.json file(s). Having this available provides a number of benefits to security tooling. For example, it allows for greater trust by checking for signed commits, contributors to a release and validating history with the project. It also allows for comparison between the source code and the published artifact in order to detect attacks on authors during the publication process.
We validate that we're making a PR against the correct repository by comparing the metadata for the published artifact on npmjs.com against the metadata in the package.json file in the repository.
This change is provided by a team at Microsoft -- we're happy to answer any questions you may have. (Members of this team include @s-tuli, @iarna, @v-rr, @v-jiepeng, @v-zhzhou and @v-gjy). If you would prefer that we not make these sorts of PRs to projects you maintain, please just say. If you'd like to learn more about what we're doing here, we've prepared a document talking about both this project and some of our other activities around supply chain security here: microsoft/Secure-Supply-Chain
This PR provides repository metadata for the following packages:

canvaskit-wasm

@googlebot I signed it!

Individual CLA has been signed. Please let me know if there is anything additional needed from me to land this Pull Request.

Is this the repo? I thought it was https://skia.googlesource.com/skia.git and as far as submitting patches it doesn't look like this is the place to do it according to the "how to contribute" document


Resets when using certain functions

When setting audio.currentTime to some arbitrary value it automatically resets to 0.
audio.duration of few songs are returned as infinity

Do you get the same behavior with the Live Preview: Show Preview (External Browser) command? Which audio library are you using?


New version: RAI v0.1.9

Registering package: RAI
Repository: https://github.com/RelationalAI/rai-sdk-julia
Created by: @NHDaly
Version: v0.1.9
Commit: a90aa12dd6acfb72ed2d962d164067a5fb8eaf99
Reviewed by: @NHDaly
Reference: https://github.com/RelationalAI/rai-sdk-julia/commit/a90aa12dd6acfb72ed2d962d164067a5fb8eaf99#commitcomment-120079947
Description: The RelationalAI Software Development Kit (SDK) for Julia.

@NHDaly somehow this got a merge conflict, if you want to register this version you'll have to retrigger registration again to resolve the conflict.
[noblock]

Thank you for the ping, @giordano!
[noblock]


MongoError: Authentication failed

name: 'MongoError',
message: 'Authentication failed.',
ok: 0,
errmsg: 'Authentication failed.',
code: 18,
codeName: 'AuthenticationFailed'
I got this error how to fix this?

i can resolve by create new user for my newdatabase


[R] Handle "unmatched" argument in joins

Describe the enhancement requested
New feature in dplyr 1.1: https://www.tidyverse.org/blog/2023/01/dplyr-1-1-0-joins/#unmatched-rows
I don't know that we can support this, but we should at least be aware of the argument and raise a helpful message if someone tries to use it.
Component(s)
R

I suspect it wouldn't be too hard to add support for this in C++ if someone wanted to.  Well, I will clarify, "would not be a large code change".  It will probably require some learning curve for anyone not familiar with the asof join node.

I don't think this is only for the asof join, I think it has meaning for most joins

Oops, yes, I meant "hash join node".  I think unmatched would not make sense in an asof join case ("closest" somewhat implies you will be throwing rows away).


REACH-188 Viewer

Hi @pboyer,
This pull request contains changes for moving all geometry related stuff to the ThreeViewer. The ThreeViewer is now able to handle all geometry processes including hiding/showing geometry, changing color on selection, switching between workspaces, etc. The ThreeViewer now belongs to the AppView/CustomizerAppView. Also I removed global scene object. Viewport is referenced only in ThreeViewer. All geometry is stored in typed arrays and is rendered as BufferGeometry. Also nodes do not know anything about geometry.
I apologize for making this pull request a little bit huge, but there wasn't any way to make it smaller, because all changes depend on each other. I'll do my best to describe all changes in details.

Hi @pboyer,
Also I'm going to extract duplicate code from NodeViews and Customizer widgets into some kind of base classes, but this will be a part of next PR, just to make code review more simple.

Hi @pbidenko,
So far, this is looking really great.  It hugely simplifies and separates the 3d view related code, which was not too carefully thought out the first time around.  This paves the way to introducing a different viewer that might be more efficient and lightweight than three.
There's a few errors here having to do with ownership.  The main one is that ThreeViewer is owned by AppView, so it should not have a reference to AppView or App.
Also, we should take care to avoid any duplicate code here.  There's a few obvious spots where that is happening, such as the Material stuff and draw function.  Some of these were my mistake and some are new ones.
Thanks!  Looking forward to an update!

Hi @pboyer,
I made changes according to your notes and resolved merge conflict. Please, take a look.

Hi @pbidenko!
I don't know if you tried it, but this is screaming fast (comparatively) and the code is far more concise.  You actually made the code base about 500 lines shorter.  Nicely done!


Bundles not loaded in 1.1.0

After I updated Antigen to 1.1.0, no bundles that I loaded in .zshrc were actually being loaded. I have this config there:
if [[ -f ~/.antigen/antigen.zsh ]]; then
  source ~/.antigen/antigen.zsh
fi

antigen use oh-my-zsh
antigen bundle heroku
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle unixorn/autoupdate-antigen.zshplugin
antigen bundle b4b4r07/enhancd
antigen bundle unixorn/git-extra-commands
antigen bundle rimraf/k
antigen bundle mafredri/zsh-async
antigen bundle sindresorhus/pure

antigen apply

An antigen list however reports no bundles being loaded, although each of those commands seems to exit with code 0. Reverting Antigen back to 1.0.4 fixes this problem.

ZSH version, OS, antigen cache-reset? zcache-payload exists?

ZSH: 5.2
OS: Max OSX 10.12 Sierra
antigen cache-reset
worked for me. But installed a fresh antigen. So maybe caching should be tweaked a bit. Or README.

@frgmt Glad it works now. I'm gonna take a look how to better handle upgrades.
@ilkka Does it work with antigen cache-reset?

No, sadly a cache reset it did not fix it for me.

What happens after antigen cache-reset is that in the first new shell I open afterwards, antigen list lists my bundles, but my prompt works only partially, with the normal sindresorhus/pure prompt mixed with the default zsh prompt:

In the second new shell I open, the behaviour is again the same: antigen list shows nothing, prompt is the default zsh prompt.

Removing all repos and antigen/.cache fixed things for me. I've still got one machine that exhibits this buggy behaviour if you want me to investigate more.

I had nearly the same problem. After a fresh install of antigen and playing with it, I updated my zshrc. But the next time I entered in my shell it couldn't load any specified bundle nor the selected theme. It was very annoying. I managed to fix the problem with a cache-reset, as it was recommended here.

@ilkka Just keeping a copy of .zcache-payload would be enough. May be gist it?

There ya go: https://gist.github.com/ilkka/7b03f3f8a89fde8969cb24a502e56cd2

Thank you. I'll take a look later today.

I have this problem, and it doesn’t go away with removing “~/.antigen” or “antigen reset”. Freshly cloned from master, zsh is  5.6.2 (x86_64-pc-linux-gnu).


Profiling of Bundle with PATCH is not aligning with example

== fsh-generated\resources\Parameters-ex-patchParameters.json ==
ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[0].name: Value is 'type' but must be 'operation'
ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[1].name: Value is 'path' but must be 'operation'
ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[2].name: Value is 'value' but must be 'operation'
== fsh-generated\resources\Bundle-ex-comprehensiveProvideDocumentBundleReplace.json ==
ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1]: This element does not match any known slice  defined in the profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle|4.2.2-current and slicing is CLOSED: Bundle.entry[1]: Does not match slice 'SubmissionSet' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet|4.2.2-current, Bundle.entry[1]: Does not match slice 'DocumentRefs' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference|4.2.2-current, Bundle.entry[1]: Does not match slice 'UpdateDocumentRefs' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters') and request.method.where(value = 'PATCH').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters|4.2.2-current, Bundle.entry[1]: Does not match slice 'Documents' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Binary') and (request.method memberOf 'http://hl7.org/fhir/ValueSet/http-verb|4.0.1')), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Binary|4.0.1, Bundle.entry[1]: Does not match slice 'FhirDocuments' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Bundle') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Bundle|4.0.1, Bundle.entry[1]: Does not match slice 'Folders' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder') and (request.method memberOf 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions')), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder|4.2.2-current, Bundle.entry[1]: Does not match slice 'Patient' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Patient') and (request.method memberOf 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions')), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[0].name: Value is 'type' but must be 'operation'
ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[1].name: Value is 'path' but must be 'operation'
ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[2].name: Value is 'value' but must be 'operation'

is the PatchParameters (documentReference.fsh) not defined right?

@oliveregger this ERROR will prevent us from publishing. I would rather remove the ability to use patch, than leave these errors in the build.


(Question/resource request) Structures for MEN1 Isoform1 and 2 from figure 5c

Hi,
I am just trying to replicate some of your results and was wondering where I can get the AlphaFold structures referenced in Figure 5c. To be specific these are O00255-2 and O00255-1. The same ones from the figure would be great, if not at least the configuration for the prediction itself would be much appreciated.

Thanks!
Jean

@jyaacoub
Sorry for the late response.
We used https://github.com/sokrypton/ColabFold for the structure predictions.
Here are the structures we used for the MEN1 isoforms: structures.zip

Thank you for this! very helpful.


Setting up own page transitions?????

I'm utterly frustrated by this plugin. It's fine if you just wanna use the defaults like Fade In & fade Out between page loads BUT what if you what to add your own transition, what if you want to use gsap or anime js with the Barba js? documentation for doing so is not included. I'd set up barba to using views to so that I could add my own transition between pages:
var Homepage = Barba.BaseView.extend({
namespace: 'homepage',
onEnter: function() {
// The new Container is ready and attached to the DOM.
ADD transition Here
},
onEnterCompleted: function() {
// The Transition has just finished.
},
onLeave: function() {
// A new Transition toward a new page has just started.
REMOVE TRANSITION DOESN"T WORK BEFORE GOING TO OTHER PAGE
},
onLeaveCompleted: function() {
// The Container has just been removed from the DOM.
}
});
// Don't forget to init the view!
Homepage.init();

Did you really check the documentation?
http://barbajs.org/transition.html

Hi, @FistMeNaruto thanks for your replying. I finally fixed the issue & now anime js is creating my page transition thankfully.

@shanewmurphy can you give an example of how do you make it work?


POST requests is not authentic

I have a two requests get and post
request = RestClient::Request.new(
  url: "http://localhost:3000/api/v1/accounts",
  method: :get
)

signed_request = ApiAuth.sign!(request, access_id, secret_key)

res = signed_request.execute

GET request have a good response and "authentic" is true
request = RestClient::Request.new(
  url: "http://localhost:3000/api/v1/accounts",
  method: :post
)

signed_request = ApiAuth.sign!(request, access_id, secret_key)

res = signed_request.execute

POST request has "authentic" false
How to fix post requests?

PUT and POST requests undergo an additional check to verify the request's body match an MD5 checksum. Since you're using RestClient, I think maybe you are running into #125. Do you think you'd be able to have a look and maybe submit a PR for that? It'd be very much appreciated as I don't use RestClient very much these days.


run go mod tidy

Huh, I think I don't like this, I will just rename examples to _examples, seems that should stop go mod from parsing that directory.

In this case we cannot run examples...

But any example can just be tried/used with go mod init example right, it just needs some extra commands.

I think users would expect they can run examples without additional commands.

Another suggestion is to separate repositories for examples

Ok, for now, it is just renamed with an underscore and it is not user-friendly, I will see later to move examples to their own repo.


Linter showing E501 error despite being ignored in config file

In my config file, I have:
  "linter-python-pep8":
    pep8DirToExecutable: "/Users/tom/miniconda3/envs/production/bin/"
    ignoreErrorCodes: "E501"

However, I'm still getting 'line too long' errors. What could be causing this?

Fixed by https://github.com/AtomLinter/linter-pep8/pull/20


python310Packages.bitbox02: 5.3.0 -> 6.0.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.bitbox02 is: "Firmware code of the BitBox02 hardware wallet"
meta.homepage for python310Packages.bitbox02 is: "https://github.com/digitalbitbox/bitbox02-firmware/"
meta.changelog for python310Packages.bitbox02 is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 6.0.0 with grep in /nix/store/jdcddc9b0bhzhvz2lnpkxq6rwcfjs4w3-python3.10-bitbox02-6.0.0

found 6.0.0 in filename of file in /nix/store/jdcddc9b0bhzhvz2lnpkxq6rwcfjs4w3-python3.10-bitbox02-6.0.0

Rebuild report (if merged into master) (click to expand)

10 total rebuild path(s)

5 package rebuild(s)

5 x86_64-linux rebuild(s)
5 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
hwi
python310Packages.bitbox02
python310Packages.hwi
python39Packages.bitbox02
python39Packages.hwi

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/jdcddc9b0bhzhvz2lnpkxq6rwcfjs4w3-python3.10-bitbox02-6.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.bitbox02 https://github.com/r-ryantm/nixpkgs/archive/39a1adedec043464338a8831b5175b81dbd229d8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/jdcddc9b0bhzhvz2lnpkxq6rwcfjs4w3-python3.10-bitbox02-6.0.0
ls -la /nix/store/jdcddc9b0bhzhvz2lnpkxq6rwcfjs4w3-python3.10-bitbox02-6.0.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages failed to build:

hwi (python39Packages.hwi)
python310Packages.hwi

2 packages built:

python310Packages.bitbox02
python39Packages.bitbox02

Maintainer pings
cc @SuperSandro2000 for testing.

Requires python3Packages.hwi to be updated to 2.1.0 (still on RC), so the package can be built successfully:
error: builder for '/nix/store/f6vj50a05d7a383l2s9yyhn2xh651xjw-python3.9-hwi-2.0.2.drv' failed with exit code 1;
       last 10 log lines:
       > /build/source/dist /build/source
       > Processing ./hwi-2.0.2-py3-none-any.whl
       > Requirement already satisfied: mnemonic<1,>=0 in /nix/store/wvkyxwdd82r9dkgw4mwz6glxzfkbs8z4-python3.9-mnemonic-0.20/lib/python3.9/site-packages (from hwi==2.0.2) (0.20)
       > Requirement already satisfied: ecdsa<1,>=0 in /nix/store/bwl8hs570r0jia0bnmqfn779k6h23c8s-python3.9-ecdsa-0.17.0/lib/python3.9/site-packages (from hwi==2.0.2) (0.17.0)
       > Requirement already satisfied: typing-extensions>=3.7 in /nix/store/7dlrj4c3cv1r9n7zhmillxikm25gd84j-python3.9-typing-extensions-4.0.1/lib/python3.9/site-packages (from hwi==2.0.2) (4.0.1)
       > Requirement already satisfied: hidapi<1,>=0 in /nix/store/768hd6az5if0q8bpmz07f7h6kwi5cjd1-python3.9-hidapi-0.11.0.post2/lib/python3.9/site-packages (from hwi==2.0.2) (0.11.0.post2)
       > Requirement already satisfied: libusb1>=1.7 in /nix/store/7yzy867j812a7p058m2cncbx0jd06nlk-python3.9-libusb1-3.0.0/lib/python3.9/site-packages (from hwi==2.0.2) (3.0.0)
       > Requirement already satisfied: pyaes<2.0,>=1.6 in /nix/store/snh4n8gfbmi6g23j5zak1jk696gvabd9-python3.9-pyaes-1.6.1/lib/python3.9/site-packages (from hwi==2.0.2) (1.6.1)
       > ERROR: Could not find a version that satisfies the requirement bitbox02<6.0.0,>=5.3.0 (from hwi) (from versions: none)
       > ERROR: No matching distribution found for bitbox02<6.0.0,>=5.3.0
       For full logs, run 'nix log /nix/store/f6vj50a05d7a383l2s9yyhn2xh651xjw-python3.9-hwi-2.0.2.drv'.
error: builder for '/nix/store/zc3cyqw09c5hvf7bhjh858rg071642am-python3.10-hwi-2.0.2.drv' failed with exit code 1;
       last 10 log lines:
       > /build/source/dist /build/source
       > Processing ./hwi-2.0.2-py3-none-any.whl
       > Requirement already satisfied: libusb1>=1.7 in /nix/store/drn67c971bv5yy3ihxg38z36a07rbbsn-python3.10-libusb1-3.0.0/lib/python3.10/site-packages (from hwi==2.0.2) (3.0.0)
       > Requirement already satisfied: mnemonic<1,>=0 in /nix/store/ginv1r2rgyxmzijiy4dxdwq4y8519qx1-python3.10-mnemonic-0.20/lib/python3.10/site-packages (from hwi==2.0.2) (0.20)
       > Requirement already satisfied: pyaes<2.0,>=1.6 in /nix/store/rkgmshc9mzr9n4v21b3mf1h5676hlylb-python3.10-pyaes-1.6.1/lib/python3.10/site-packages (from hwi==2.0.2) (1.6.1)
       > Requirement already satisfied: ecdsa<1,>=0 in /nix/store/dr08j1lhzpfniis0ws8xpiw71ylj66c6-python3.10-ecdsa-0.17.0/lib/python3.10/site-packages (from hwi==2.0.2) (0.17.0)
       > Requirement already satisfied: typing-extensions>=3.7 in /nix/store/9j7cpymmxrlca66kr4wyi0bsn1424p91-python3.10-typing-extensions-4.0.1/lib/python3.10/site-packages (from hwi==2.0.2) (4.0.1)
       > Requirement already satisfied: hidapi<1,>=0 in /nix/store/81iinx79k2w1lvrvk54nrkp0ps6zyykf-python3.10-hidapi-0.11.0.post2/lib/python3.10/site-packages (from hwi==2.0.2) (0.11.0.post2)
       > ERROR: Could not find a version that satisfies the requirement bitbox02<6.0.0,>=5.3.0 (from hwi) (from versions: none)
       > ERROR: No matching distribution found for bitbox02<6.0.0,>=5.3.0
       For full logs, run 'nix log /nix/store/zc3cyqw09c5hvf7bhjh858rg071642am-python3.10-hwi-2.0.2.drv'.

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

2 packages failed to build:

hwi (python39Packages.hwi)
python310Packages.hwi

2 packages built:

python310Packages.bitbox02
python39Packages.bitbox02


RFC - define query types

This is just an idea so haven't taken it very far.
The goal
To allow you to define the available keys and data types once and be enforced throughout the API
Example
By putting this type in your code:
declare module 'react-query' {
  export interface QueryTypes {
    'typed-todo': TodoItem
  }
}

useQuery is now typed and the return type is enforced.

Current issues
I have not yet figured out how to keep compatibility, the current approach will require the user to either define their types, or opt into the existing behavior by adding the following to their code.
declare module 'react-query' {
  export interface QueryTypes extends Record<string, any>
}

And also going through the entire public API to use the QueryTypes, we could use it to type the cache functions too

This is a cool idea. I don't use types a lot, so this would just need to be vetted by a bunch of people that we trust and a decision made. 👍

What is the best way to make that happen?
Jump into discord or could you tag a few people here?
Get Outlook for iOShttps://aka.ms/o0ukef

From: Tanner Linsley<EMAIL_ADDRESS>Sent: Tuesday, June 23, 2020 4:13:26 AM
To: tannerlinsley/react-query<EMAIL_ADDRESS>Cc: Jake Ginnivan<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [tannerlinsley/react-query] RFC - define query types (#597)
This is a cool idea. I don't use types a lot, so this would just need to be vetted by a bunch of people that we trust and a decision made. 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/tannerlinsley/react-query/pull/597#issuecomment-647745807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADOUIDUIDJK4LFXR7G4FGLRX63ONANCNFSM4ODLVIYQ.

Woah... I legit don't remember closing this. We should reopen it.

And yes, let's tag a few people here.

I think another way (if my TS knowledge is sufficient) is that you could maybe define your own query type for useQuery that extends the original useQueryType, but with a specific key? That way you could reference that query type in your code instead of the generic one. I realize that doesn't restrict people from using the open-ended useQuery though. Does that sound remotely right?


[proposal] Pod actively selects Reservation

What is your proposal:
Currently, the Koordinator only supports deciding whether to use reserved resources by checking whether the Owner of the Reservation matches the Pod, but there is another scenario that is expected to be supported when the Pod actively selects some Reservations.
Why is this needed:
Users expect better management of Reservations. A node can divide multiple Reservations, assuming that some label information of the node is also added to the Labels of the Reservation, then each Reservation can be used as a virtual node.
Is there a suggested solution, if so, please add it:
A Reservation-oriented Affinity protocol can be defined and declared in the Pod in the form of annotation. The definition is roughly as follows:
apiVersion: v1
kind: Pod
metadata:
  annotations:
    scheduling.koordinator.sh/reservation-affinity: |-
      {
        "affinity": {
          "requiredDuringSchedulingIgnoredDuringExecution": {
            "nodeSelectorTerms": [
              {
                "matchExpressions": [
                  {
                    "key": "reservation-type",
                    "operator": "In",
                    "values": [
                      "test"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "selector": {
          "koordinaator.sh/gpu-model": "NVIDIA A100"
        }
      }

/assign
/milestone v1.3


quay.io/kubernetes-service-catalog/service-catalog-s390x:v0.1.9 image is not working on s390x

Kubernetes version (use kubectl version): 1.9.6
Environment:
OS (e.g. from /etc/os-release): Ubuntu 16.04 and RHEL 7.3
Kernel (e.g. uname -a): s390x
Install tools: docker
I am trying to deploy Service Catalog v0.1.9 on kubernetes, but the catalog-catalog-apiserver and catalog-catalog-controller-manager PODS are not going up.
Using quay.io/kubernetes-service-catalog/service-catalog-s390x:v0.1.9 image in charts/catalog/values.yaml.
I also tried to build local docker image for scbuildimage, but still am not able to get the PODS up.
When I run kubectl describe pod catalog-catalog-apiserver -n catalog, I get:-
Liveness probe failed: Get :8443/healthz: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Readiness probe failed: Get :8443/healthz/healthz: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
With netstat -tulpn | grep 8443, no process is seen to be running.

@srajmane can you please post your catalog apiserver logs # kubectl logs  -c apiserver -n
Also look for the services. I recently worked on using S390x:v0.1.13 and got the server, controller up and running. I would suggest you move to latest version too


Array to string conversion in CIMAbstractResponse

The function getResultCode in the CIMAbstractResponse class (line 59) is doing an array to string conversion which now throws a fatal error in PHP 7.2.
$result should be evaluated before being casted to a string

There is a PR to play with here. It uses the much simpler json_decode of a json_encode to convert the parsed XML object to an array. This does change the structure of the resulting array slightly. It is failing all travis tests on 7.2 due to deprecated code in phpunit (3.9). I'm sure there will be a way to disable some cs code checks for PHP 7.2 only, or perhaps the travis config is not pointing phpcs at the correct directory to scan - not sure.

A fix has been in place since January 2017 (for version 3.0.0) that changes the way the XML is decoded to an array. That was probably merged in accidentally, but it does not seem to have raised any issues, so I'm going to close this issue.
If I've overlooked anything here, please reopen or raise a new issue if there are other subsequent side-effects. The JSON encode/decode technique used to convert the XML to an array does have its limits (e.g. not properly handling attributes), but the XML supplied by this gateway does not seem to hit it.


Update scala-xml to 2.1.0

Updates org.scala-lang.modules:scala-xml from 1.3.0 to 2.1.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang.modules", artifactId = "scala-xml" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequest = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang.modules", artifactId = "scala-xml" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Closed because the purpose of this repo is to set the version where it is. I will make a PR to add the scala steward config.