Generate rust code from IDL/TLB/COM dll?

Is there any way to interact with COM API without writing any code manually? In .NET I can just reference COM library and I can use it without writing any code. IIRC there is also a .dll generator for COM libraries made in C++ - Tlbimp.exe. Is such scenario supported with com-rs or do I always need to manually translate everything to Rust (com::interfaces! macro) before I'm able to call any method?
I think it's related but it's not TBL but TLB... https://github.com/microsoft/com-rs/issues/114

We're currently doing some work to figure out the future of this library and its role in the Windows Rust ecosystem along with windows-rs. This is something we would most likely eventually support, but it's unlikely to be something we could add anytime soon (due to lack of development and review bandwidth). Unfortunately, for now you'll have to write the interfaces manually.

The Windows crate is beginning to provide this capability. You can provide a .winmd (windows metadata) file that describes a component and the Windows crate will generate the necessary bindings. The Windows crate ships with .winmd files for the Windows API, but eventually you will also be able to declare new APIs directly in Rust. For existing components, there is a tool that will produce a .winmd file by parsing a C/C++ header file. Here for example is a test component that the Windows crate uses to test both Win32/COM and WinRT APIs:
https://github.com/microsoft/windows-rs/tree/master/tests/component

We're currently doing some work to figure out the future of this library and its role in the Windows Rust ecosystem along with windows-rs.

So it will be merged with windows-rs eventually or it will become unmaintained?

The Windows crate is beginning to provide this capability. You can provide a .winmd (windows metadata) file that describes a component and the Windows crate will generate the necessary bindings. The Windows crate ships with .winmd files for the Windows API, but eventually you will also be able to declare new APIs directly in Rust. For existing components, there is a tool that will produce a .winmd file by parsing a C/C++ header file. Here for example is a test component that the Windows crate uses to test both Win32/COM and WinRT APIs:
https://github.com/microsoft/windows-rs/tree/master/tests/component

I think generating from TLB would provide more value as not all COM libraries come with C/C++ headers. There are also COM libraries that were written in C#.

I think generating from TLB would provide more value as not all COM libraries come with C/C++ headers. There are also COM libraries that were written in C#.

The .winmd file is the canonical format we use for API metadata. If you can produce a conversion tool that generates a .winmd file from a .tlb that should work just fine, but that's not something we're planning to support. The .winmd format is also relatively easy to produce from C#.

I think generating from TLB would provide more value as not all COM libraries come with C/C++ headers. There are also COM libraries that were written in C#.

The .winmd file is the canonical format we use for API metadata. If you can produce a conversion tool that generates a .winmd file from a .tlb that should work just fine, but that's not something we're planning to support. The .winmd format is also relatively easy to produce from C#.

That's where the trouble begins. I mostly use C# when I need to interact with some COM library. I just add <COMReference> to my .csproj or click Add reference in VS or Rider and things magically work. It's extremely straightforward. Now if I wanted to do the same in Rust I don't know where to start. I don't know much about .winmd format and how can I produce .winmd format from existing .NET or native .DLL and how much it takes to setup a workspace that is able to generate Rust code from it because it's not documented anywhere or at least it's not obvious enough.
The github page for the generator also mentions it's exclusively to generate metadata for Windows API and not for any other third party libraries.

I'm still looking into this for https://github.com/microsoft/windows-rs

For what it's worth, huge shout-out already to win32metadata + windows-rs for already making it so approachable to turn some C(++) COM headers into sensible and usable Rust :)
Isn't it already possible to go from IDL -> .h -> .winmd -> Rust?

With some effort. I'm hoping to streamline the process to only require the Rust toolchain.

I tried: https://github.com/microsoft/windows-rs/blob/master/crates/tests/component/src/component.idl
It is true that rs can be generated from idl, but it has an intermediate process .idl>.winmd>.rs.
I am using a third-party idl which is very old and cannot be successfully converted to .winmd format, so this solution will not work.

Does someone has a simple example/code to generate a .winmd (or Rust code ideally) from an idl or tlb file?
I try to look at Rafael Rivera post, but for the moment I didn't success to generate an .winmd file (the process is very complicated...).
I'm looking for single commande line, or a sample github project, but I did not find anything until now.

https://github.com/microsoft/windows-rs/tree/master/crates/samples/components
cc @riverar

@wawha Hey there! I'd be interested in any feedback you have on the article. (I wrote it.)
Here's a sample/skeleton project that generates Rust bindings from Microsoft IDL (https://github.com/riverar/washington-rs). Specifically, the sample demonstrates taking IDL, generating metadata with WinmdGenerator, and using windows_bindgen to generate bindings for use in a Rust crate.

@kennykerr thank you. Unfortunately, I was not able to generate Rust code with the samples "components", because my COM idl was to complicated.
But using the project washington-rs from @riverar, I finally succeed to do it!
I missed that project at first look, because I do not see reference to IDL or COM object in the project description/readme.
Thank you both for your (quick) answer!

@riverar Hi! I have two .idl files: base.idl with types, and service.idl that includes base.idl and includes a interface with some methods.
I tried following your article + "washington" repo, but I'm running into a issue where only the types in base.idl are present in the generated Rust bindings. The generated .CS and C headers have the full contents, however.
My generate.proj looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.62.23-preview">
    <PropertyGroup Label="Globals">
       <OutputWinmd>../.windows/winmd/My.Project.winmd</OutputWinmd>
       <WinmdVersion><IP_ADDRESS></WinmdVersion>
       <Idl>./idl</Idl>
       <AdditionalIncludes>$(CompiledHeadersDir);$(Idl)</AdditionalIncludes>
   </PropertyGroup>
   <ItemGroup>
        <Idls Include="$(Idl)/service.idl;$(Idl)/base.idl" />
        <Headers Include="$(CompiledHeadersDir)/service.h;$(CompiledHeadersDir)/base.h" />
        <Partition Include="main.cpp">
            <TraverseFiles>@(Headers)</TraverseFiles>
            <Namespace>My.Project</Namespace>
            <ExcludeFromCrossarch>true</ExcludeFromCrossarch>
            <ShowEmitWinmdOutputDetails>true</ShowEmitWinmdOutputDetails>
        </Partition>
    </ItemGroup>
</Project>

service.idl looks a bit like this:
[
	uuid(e2c414aa-7c07-45a9-b09f-0b1a26ad1e55),
	version(1.0)
]
interface MyService {
	HRESULT MyMethod(
		handle_t hbind,
		[out] PCONTEXT* phContext
		);
};

Any ideas?

@NuSkooler Hey Bryan, will take a look at this now. Standby!

@NuSkooler In this case, because of missing inherited IUnknown, WinmdGenerator is treating the methods as flat C functions. And because there is no function-to-library mapping, it ultimately gets dropped.
-interface MyService {
+interface MyService: IUnknown {
	HRESULT MyMethod(
		handle_t hbind,
		[out] PCONTEXT* phContext
		);
};

@riverar Thanks for jumping on this so quick!
I'm not a COM expert by any means, so I might be misunderstanding something here: The MyService interface in question is a RPC service. In C, this is exposed with RpcServerRegisterIf2 and connected to via RpcBindingFromStringBinding from a remote process. Does this make any difference?
When I add IUnknown to the service interface, many errors about types are generated.

@nuskooler Oh, RPC. Hmm. Let me wrap my head around this context and get back to you.

@NuSkooler Here's an RPC example:
base.idl:
import "wtypesbase.idl";

[
	uuid(6e3125bb-9df7-4c8c-976c-0b5626bc8194),
	version(1.0)
]
interface IBase {
	HRESULT BaseMethod();
};

libmappings.rsp (put next to the .proj file):
--with-librarypath
BaseMethod=base_client.dll

winmd output:
// ...
[DllImport("base_client.dll", ExactSpelling = true, PreserveSig = false)]
public unsafe static extern HRESULT BaseMethod([In][Out] void* IDL_handle);

As shown above, you still have the responsibility of compiling the MIDL-generated client stubs (e.g. base_c.c) into a DLL you can call into. I chose base_client.dll as an example.


Model parameters being marked as orphan when using KFAC optimizer

I was trying to use KFAC optimizer to train the FermiNet, a well-designed PINN for solving atoms and molecules. But when I was trying to add the parity constrain to it, I noticed that some of the parameters was labeled as 'orphan', though the calculation was proceeding normally.
I wonder what 'orphan' means,  and is this a normal circumstance? Could these parameters labelled as 'orphan' being updated while trainning normally? I mean even though it finally yielded a correct results, there still was a lot of normally-labelled parameters which ensured the model is trainable.
The following picture contains all my changes to FermiNet.  I've only modified the networks.py file.

Thank you for your assistance !

I haven't seen the optimizer generate logs with "orphans" in a long time. AFAIK the automatic scanner will register any unrecognized parameter as "generic".
With that out of the way, these situations come up when a parameter is used in the graph in a way that doesn't conform to one of several recognized patterns. In that case, the parameter uses a curvature approximation that is usually very crude: either "naive diagonal" or "naive full". kfac_jax currently doesn't support non-generic registrations inside of vmaps, so that probably explains what you are seeing.

Most likely what is happening is that your changes (which I do not understand since I haven't worked on the FermiNet for a very long while) are breaking one of the repeated dense patterns that are used for recognizing and assigning a curvature approximation to those parameters.
Could you post an actual diff with the FermiNet code to be a bit more clear what are you changing?


[Feature request] Hot key change theme dark/light

Description of the new feature / enhancement
An hotkey for change/switch window theme dark/light
Scenario when this would be used?
Hotkey for change theme without goto Setting > Personalization > Color > Choose Color
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/1331


SikuliX: Add version 2.0.5

This PR adds support for installing SikuliX, a really cool UI-based robotic process automation tool. SikuliX makes it really easy to automate just about anything on a computer. My thought is that it would get more usage if it was easier to install. As of today, all you need to do is download a JAR file and run it with Java, but who has time for that? I have wanted to do scoop install sikulix for years. Hopefully my dream will come true soon...

[x] I have read the Contributing Guide.

/verify

/verify

No rush, but I am pretty sure this PR is ready to go...I am looking forward to being able to install SikuliX with just scoop install sikulix 🤓
If this PR is still lacking something, I will endeavor to address any issues 🧐

@ftk or anyone, is there anything else I can do on this? It would be really fun to be able to scoop install sikulix...any help would be appreciated 😃


add support MIUI 8 Music Player

SLS works fine with MIUI7, but in MIUI8 it only detect player, scrobbling doesn't work/

http://app.mi.com/details?id=com.miui.player&ref=search - fresh version
com.miui.player.apk.zip

and there is APK from Global Stable ROM V<IP_ADDRESS>.LHMMIDG (MIUI8)
Music_V<IP_ADDRESS>.LHMMIDG (MIUI8).zip

@jimdi Which one is it in the music folder music or music2 ?

sorry, i dunno. just extract APK from ROM
you can use file from https://github.com/tgwizard/sls/issues/321#issuecomment-260596886
this one works fine and contains version 2.7.11-78-160

It seems to be working.
Have you removed your music app and Simple Last.fm Scrobbler from battery saving list?

Yep, no restrictions for SLS, background working allowed

Have you tested other music apps?

http://app.mi.com/details?id=com.miui.player&ref=search - fresh version, 直接下载 means Download [com.miui.player.apk.zip](https://github.com/tgwizard/sls/files/591564/com.miui.player.apk.zip)
This version is working.

11-15 06:30:45.235 10061-10061/com.adam.aslfms E/SLSPlayStatusReceiver: Action received was: com.miui.player.metachanged
11-15 06:30:45.237 10061-10061/com.adam.aslfms D/MusicAPI: MIUI Music Player:com.miui.player
11-15 06:30:45.237 10061-10061/com.adam.aslfms D/BuiltInMusicAppReceiver: Will read data from intent
11-15 06:30:45.238 10061-10061/com.adam.aslfms D/ScrobblingService: State: PAUSE
11-15 06:30:45.239 10061-10061/com.adam.aslfms D/ScrobblingService: Won't queue track, not played long enough: 107 vs 142100
11-15 06:30:45.239 10061-10061/com.adam.aslfms D/ScrobblingService: Track [mTrack=Electric Groove, mArtist=Lazerhawk, mAlbum=Redline, mDuration=290, mMbId=, mMusicAPI=MusicAPI [clashWithScrobbleDroid=1, enabled=1, id=2, msg=null, name=MIUI Music Player, pkg=com.miui.player], mQueued=false, mRating=, mRowId=-1, mSource=P, mTimePlayed=107, mTracknr=, mUnknownDuration=false, mWhen=1479209443, mWhenToCountTimeFrom=-1]
11-15 06:30:45.801 10061-10948/com.adam.aslfms D/NPNotifier: Response code: 200
11-15 06:30:45.801 10061-10948/com.adam.aslfms D/NPNotifier: {"nowplaying":{"track":{"#text":"Electric Groove","corrected":"0"},"artist":{"#text":"Lazerhawk","corrected":"0"},"album":{"#text":"Redline","corrected":"0"},"albumArtist":{"#text":"","corrected":"0"},"ignoredMessage":{"#text":"","code":"0"}}}
11-15 06:30:45.802 10061-10948/com.adam.aslfms I/NPNotifier: Now Playing success: Libre.fm
11-15 06:31:56.876 10061-10061/com.adam.aslfms E/SLSPlayStatusReceiver: Action received was: com.miui.player.playstatechanged
11-15 06:31:56.878 10061-10061/com.adam.aslfms D/MusicAPI: MIUI Music Player:com.miui.player
11-15 06:31:56.878 10061-10061/com.adam.aslfms D/BuiltInMusicAppReceiver: Will read data from intent
11-15 06:31:56.880 10061-10061/com.adam.aslfms D/ScrobblingService: State: RESUME
11-15 06:31:56.882 10061-10061/com.adam.aslfms D/ScrobblingService: Won't queue track, not played long enough: 107 vs 142100
11-15 06:31:56.882 10061-10061/com.adam.aslfms D/ScrobblingService: Track [mTrack=Electric Groove, mArtist=Lazerhawk, mAlbum=Redline, mDuration=290, mMbId=, mMusicAPI=MusicAPI [clashWithScrobbleDroid=1, enabled=1, id=2, msg=null, name=MIUI Music Player, pkg=com.miui.player], mQueued=false, mRating=, mRowId=-1, mSource=P, mTimePlayed=107, mTracknr=, mUnknownDuration=false, mWhen=1479209443, mWhenToCountTimeFrom=943566]

thx, i'm trying look closer to battery saving app settings and check app settings again

@jimdi Is it working?

yep, i'm lowered the scrobble point to 50% and lock app in memory and it start working. thx!


Deprecation of dependencies format

In QeApp, the follow deprecation is raised when install the package:
"""
DEPRECATION: aiidalab-eln 0.1.2 has a non-standard dependency specifier aiida-core<3",>=1.1.0. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of aiidalab-eln or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
""

pip 24.1 started enforcing this, so aiidalab-eln==0.1.2 is no longer installable.
This was fixed in #85 and released in 0.1.3

I apparently don't have permissions on this repo so cannot close this issue myself.

I close it. Thanks @danielhollas !


Add share buttons in embed

related - https://github.com/CartoDB/deep-insights.js/issues/395

Already added.


Question: has anybody used ReactOnRails with Rails 5?

I've upgraded our Rails application from 4.2.7 to <IP_ADDRESS> (which uses ReactOnRails 6.1.0) and, after some testing, I couldn't find any particular problems.
The README says that every Rails app which is 3+ is supported, so it should be all fine.
Just double checking whether somebody already tried it or, even better, it's using it in a production environment.

It has been working great for me, including ActionCable!
Will be deploying to a small scale heroku app soon.

https://github.com/shakacode/react-webpack-rails-tutorial is an example.


feat: backmerge 21/03/2024

first step of https://github.com/scaffold-eth/se-2-challenges/issues/157

Did you manage to reproduce the Vercel problems in the base-challenge-template branch? Maybe I'm doing something wrong 😥

I didn't even test base-challenge-template, because

as I remember problem appears only for prod branch  - main in most of the cases
it seems https://github.com/scaffold-eth/scaffold-eth-2/pull/757/files which is caused the problem also in this pr
if Shiv said that we need backmerge I believe he is right 💯 😄


Official actions VM crashed globally

Description
Github actions failed to run scripts at UNIX Time<PHONE_NUMBER> globally
Area for Triage:

https://github.com/actions/virtual-environments/actions/runs/917918967
Question, Bug, or Feature?:

Bug
Virtual environments affected
ALL

[x] Ubuntu 16.04
[x] Ubuntu 18.04
[x] Ubuntu 20.04
[x] macOS 10.15
[x] macOS 11
[x] Windows Server 2016 R2
[x] Windows Server 2019

Image version

Expected behavior
Actions run normally
Actual behavior
Exited with code 1.
Repro steps

Run workflow
KABOOM

https://www.githubstatus.com/


Added School

Hi I have added my school domain data in lib/edu

@pchand89 This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


Building with AOT

Hi,
I am trying to compile my app with AOT with the latest version (0.9.9), but I'm getting this error :

Property 'inputTextChange' is private and only accessible within class 'TagInputForm'.

Hi @jvielrco,
try 0.9.10?

It's working. Thank you very much for your quick fix, it's greatly appreciated! :)


Default relationship type for assocations

So I've been thinking that we could do better in the realm of default relationship types for associations.  @subvertallchris and I have talked a lot in the past about sometimes having the desire to not specify a relationship type for an association, but still wanted those relationship types mean something when looking at the web console.  At the moment I believe we just use the association name.  We also don't really advertise much in the docs that you can leave out the relationship type.
So, with that said, what about something like this?
  class Post
    has_many :out, :comments  # has_comment
    has_many :in, :comments    # has_post
    has_one :in, :author             # has_author
    has_one :out, :author           # has_post
  end

I'm still pondering this, but one thing that occurred to me: I think the reason I thought of this in the first place is because I keep seeing people come up with poor relationship names on SO.

The gem now requires you to name your associations, so I'm closing this.


Fix Navbar links

Open Readme when user clicks on Documentation
Open Github when user clicks on Self-Host


Is this suitable to use within an android library / sdk?

I'm wondering if this project is suitable for the internals of an sdk / android lib.
i get to this part in the instructions:

Finally, add the definition to the manifest (with the name that you chose for your custom application):

<application
android:name="{packageName}.ExampleApplication"
...>

and draw a blank

Yes it will work fine inside of a library or sdk, so long as you are ok with adding it as a dependency of your library.
If you are setting up the provider entry in the manifest you can simple do it inside the library manifest and it will get merged in by the build system when you compile the app.

that's as i thought, thanks for your help / advice.


Fix 'TypeError: Path must be a string'

This fixes an issue reported here - stylelint/stylelint/#2775.
Credit goes to @silverwind for pointing me in the right direction:

I think this maybe because of this line:
https://github.com/ai/browserslist/commit/9d3e5de995a5f560452c6f9457f41e25b5634924#diff-168726dbe96b3ce427e7fedce31bb0bcR81

The issue was that in the refactoring, an if condition checking that opts.path existed was missed. And path module does not take kindly to being asked to resolve undefined values.
I used npm link to test this with stylelint and all test cases which were failing before are now okay.
No tests are failing in browserslist either:
Test Suites: 18 passed, 18 total
Tests:       120 passed, 120 total
Snapshots:   0 total
Time:        22.577s
Ran all test suites.
----------|----------|----------|----------|----------|----------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
All files |    99.71 |    93.72 |      100 |     99.7 |                |
 index.js |    99.71 |    93.72 |      100 |     99.7 |             83 |
----------|----------|----------|----------|----------|----------------|
Jest: Coverage for statements (99.71%) does not meet global threshold (100%)
error Command failed with exit code 1.

If someone could give me some hint on where the test case needs to be added, I can. However, it might be more important to push out this fix as it completely breaks stylelint.
cc @davidtheclark Looks like we aren't the only ones breaking stylelint inadvertently.

Duplicate of #159. 🤦♂

You can close this then :P

Ha ha.. Well there are subtle differences. If opts.path evaluates to false, getStat will return undefined in my case and false in yours. Not sure if it is relevant though..

I guess @ai will know better.

Agreed. However, if we are trying to replicate the behavior from before the changes in 9d3e5de, it should return undefined.

Yup. Anyway #161 seems like a better solution and has a test. I closed my PR in favor of that.


useSelectState should not omit children

🐛 Bug Report
After updating React Aria/Stately TypeScript was complaining that I'm passing children to useSelectState. The props are defined as this (notice the Omit<SelectProps<T>, 'children'> part):
interface SelectStateOptions<T> extends Omit<SelectProps<T>, 'children'>, CollectionStateBase<T> {
}

However when I look at the official example https://react-spectrum.adobe.com/react-aria/useSelect.html and the through the source code I see that children are passed to useSelectState then useSingleSelectListState then useListState and then useCollection which uses children.
🤔 Expected Behavior
useSelectState({ children }) should be fine.
😯 Current Behavior
useSelectState({ children }) errors in TypeScript.

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software
Version(s)

react-spectrum

Browser

Operating System

🧢 Your Company/Team

🕷 Tracking Issue (optional)

You're right. My bad. It looks like the underlying type changed from AriaSelectOptions (that had children in the past, but not anymore...?) to SelectStateOptions which does support children from CollectionStateBase like you said.
But for some reason it is not exported and can't be used directly.

But according to the source code it should be exported.

Yep, we should definitely export it from react-stately, oversight on our part.


Dockerfile arm binary drone-email error

Hi
I need the email notification for arm servers.
I have built the correct docker with build and the dockerfile: Dockerfile.armhf
but when I run the container I got the error:
standard_init_linux.go:228: exec user process caused: exec format error
when I ran: docker run -it ...
I got:
/ # /bin/drone-email
/bin/drone-email: line 1: syntax error: unexpected ")"

I have tried to change the Golang version, but with no luck
can you help how can I have it supported arm/v7 and v8?

Hi
I have managed to compile it for arm with small change on the
FROM golang:1.14-alpine as builder
to
FROM golang:1.1**5**-alpine as builder
and the build command:
docker buildx build --file Dockerfile.armhf --platform linux/arm64/v7,linux/arm64 -t drone-email:latest . --push

That's odd, but if the 1.15 base image solves this problem that would make a nice PR :smiley:

Fixed by your own PR, thanks!


More stuff

Add temp() static and instance methods (https://github.com/dongryphon/phylo/issues/4)
Add save() and asyncSave() to drive Writers (https://github.com/dongryphon/phylo/issues/3)
Split walk/asyncWalk handler into before/after method pair

@israelroldan thoughts?


How to know when an Anchor is loaded?

Hey,
I modified the HandDraggable script for being able to use Anchors. I don't need SpatialMapping if I don't make raycast with the environment, right?
My anchor is used on a specific object which is hidden to the final user (available via Speech Recognition). This object is used to place my final object. So at the beginning of the application, I wish it had the anchor position:
anchorManager.AttachAnchor(gameObject, SavedAnchorFriendlyName);

foreach(Transform seq in sequences)
{
    seq.position = transform.position;
    seq.rotation = transform.rotation;
}

But it hasn't due to the asynchronous anchors loading. The method Anchor_OnTrackingChanged from class WorldAnchorManager is private. How can I know the anchor is loaded?
Obviously I could check its transform in an update with hasChanged property.

See https://github.com/Microsoft/HoloToolkit-Unity/issues/737

I believe that the anchor should update its transform automatically.

Going to close this.  It's probably been archived by google by now.


How can I access the data pointed to by a pointer returned from a DLL using Koffi?

This is my Node.js calling code. In this code, bits is a pointer that is declared and assigned within the DLL. How can I access the raw data pointed to by this pointer in Node.js?
I have reviewed the documentation but couldn’t find a way to access it.
// 定义所需类型
const PInt = koffi.pointer('PInt', 'int32');
const PByte = koffi.pointer('PByte', 'uint8_t*');

// 加载 DLL
const dllPath = './static/NodeDLL.dll';
const nodeDLL = koffi.load(dllPath);

// 定义 GetBmpBits 函数
const GetBmpBits = nodeDLL.func('bool GetBmpBits(_Inout_ PInt AWidth,_Inout_ PInt AHeight,_Inout_ PByte ABits,_Inout_ PInt ASize)');

const width = new Int32Array(1);
const height = new Int32Array(1);
const size = new Int32Array(1);
let bits = new Uint8Array(1);     // This is a pointer.

width[0] = 1920;
height[0] = 1080;

const success = GetBmpBits(width, height, bits, size);
if (success) {
    //how to get the bitmap bits?
} else {
    console.error("Failed to get bitmap bits.");
}

Sorry, my English expression might be unclear.
Thank you for providing the library, It helps me a lot.

I successfully accessed the data within the pointer. The main issue in the code above is in let bits = new Uint8Array(4);.
I suspect this object caused the pointer to become invalid. Changing it to let bits = [null] solved the problem. Although the returned object appears empty, it is still a valid pointer. Using koffi.decode(bits[0], koffi.array('uint8', bitLength)) effectively retrieves the values.
Is it possible to add an object in JavaScript to simulate a pointer?


[Improve][Connector-V2] Improve the paimon source

Purpose of this pull request

Support filter read for paimon Source. Link #6343, We can also use the sql of this feature to realize the column projection feature later.
Support factory for paimon source. Link #6695.
Support hadoop ha for paimon source
Support hivecatalog for paimon source
Support read timestamp(n) for paimon source

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

Read from hdfs with hadoop ha:

Modify the paimon document to refer to the mysql.md format

Ok

link #6343


[Bug][Seatunnel-web][DB2] DB2 Datasource fails due to improper use of database and schema names.

Corrected all db2 related issues mentioned in the corresponding issue

Purpose of this pull request

Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs

After fix, able to select the schema for the schema list

Executed db2 as source job successfully


question: vanity URLs for ServiceDNSRecords

per the documentation for ServiceDNSRecords the system will create the following dns records
<service>.<namespace>.<federation>.svc.<federation-domain>
<service>.<namespace>.<federation>.svc.<region>.<federation-domain>
<service>.<namespace>.<federation>.svc.<availability-zone>.<region>.<federation-domain>

where is the federation value taken from?
I get that this naming scheme was devised to prevent name collisions.
However, people will not want to expose their apps with those names.
Application endpoints will be available to the end users via vanity url of the form: <myapp>.<company-domain>.
It looks like it is possible to create vanity URL DNS record with IngressDNSRecords.
Is there a plan to support vanity URLs for ServiceDNSRecords?

where is the federation value taken from?

federation is a logical concept where part of the app could be distributed across clusters (like deployment & services). In most of the scenarios federation name need not be called out explicitly, but for cross cluster service discovery, the discoverer need to know which federation the service belong to as there could be multiple federations hosted by the system.
federation is taken from DomainRef field of ServiceDNSRecord here. The Each federation is associated with a DNS domain (or DNS Zone). Domain type is a mapping of federation name to federation domain.

Is there a plan to support vanity URLs for ServiceDNSRecords?

yes, it is supported by DNSPrefix field in ServiceDNSRecord. right now it just creates a additional DNS record at global level. we will extend it to create vanity URL's at region & zone level also.


Add {series: true} to stop issue with deploying to multiple servers.

There must be a race condition when deploying in parallel. I didn't find the root cause / race condition, but this at least solves the issue of deploying to multiple servers.
Fixes #122 & #281 & #232.

where do you add servers: true?

You don't have to add anything. I added {series: true} in the deployment pipeline to make deployment occur in series rather than in parallel. Look at the commit if you're interested in the locations.

The npm package hasn't yet been updated.

@madushan1000 Could you please update the NPM package? Thanks!

Thanks @madushan1000 & @clayne11 working great!


The request extract function should be documented to return "any" and not string.

In
[[Mithril Documentation|http://mithril.js.org/request.html]] documents options.extract to be
options.extract	string = Function(xhr, options)

This is confusing as what to be returned is a JSON definition and not exactly a string as the example usage suggests,
m.request({
    method: "GET",
    url: "/api/v1/users",
    extract: function(xhr) {return {status: xhr.status, body: xhr.responseText}}
})
.then(function(response) {
    console.log(response.status, response.body)
})

Expected
Change the output to any and not string
options.extract	any = Function(xhr, options)
Description Expected
A hook to specify how the XMLHttpRequest response should be read. Useful for reading response headers and cookies. Defaults to a function that returns a JSON object that maps the properties in the xhr and options parameters (e.g. { status: xhr.status }).

Closed per #1729.


Redux Action is being called before init

Description
Not fully sure if it is a bug or just me being totally new to Redux and Redux-Saga but my component won't update properly.
Steps to reproduce
Check my Stack Overflow Issue: https://stackoverflow.com/questions/60350954/react-redux-action-is-being-called-before-init
For a demo see my repository
Expected behavior
Component should update
Versions

React-Boilerplate: 4.0
Node/NPM: 11.15
Browser: Cross-Browser

found the solution, I accidentally mutated the state instead of the draftState 😅Would it make sense to update the handlebars template and remove the comment?
//internals/generators/containers/reducers.hbs.js

...

/* eslint-disable default-case, no-param-reassign */
const {{ camelCase name }}Reducer = (state = initialState, action) =>
  produce(state, (/* draft */) => {              // <-- this comment
    switch (action.type) {
      case DEFAULT_ACTION:
        break;
    }
  });


[RPG GAME]FunctionAgent Version

1.添加通过FunctionAgent实现的版本
TODO：

文生图工具暂时为模拟本地固定路径图片
FunctionAgent目前触发不稳定，以及有自生成现象，基本只有第一轮能正常触发文生图

描述待升级

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

Comparison is base (64a4664) 69.68% compared to head (8aa739b) 69.62%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #236      +/-   ##
===========================================
- Coverage    69.68%   69.62%   -0.07%
===========================================
  Files           62       62
  Lines         3088     3098      +10
===========================================
+ Hits          2152     2157       +5
- Misses         936      941       +5

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

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: shiyutang:x: SouthpikaYou have signed the CLA already but the status is still pending? Let us recheck it.


How should I insert array into column in postgresql?

For code
query.AsInsert(new {
    id = "1",
    name = "some",
    ids = new [] { "1", "2", "3" }
})

I get
INSERT INTO "entities"
("id", "name", "ids")
VALUES
($1, $2, $3,$4,$5) -- yes, just without spaces

and
Npgsql.PostgresException (0x80004005): 42601: INSERT has more expressions than target columns

Currently SqlKata doesn't handle non-primitive types on insert/update operations,
adding the ability for RawExpressions can help in this case.
A side question, how are you getting the compiled SQL, since SqlKata doesn't generate symbols like these ones: $1, $2 etc ....

That was a log from Npgsql

Could you please post the log generated from the QueryFactory class https://sqlkata.com/docs/execution/logging?

Of course:
INSERT INTO "tablename" ("id", "name", "ids") VALUES ('1784d656-ce06-4114-b7c3-c86b899ff5de', 'some', '8d8b8ef4-7ba0-49cb-835f-2f40ba56d626','5194ccb5-00b7-4137-9c97-de07bc706d03','15e99f59-cd7c-4ca4-81e8-61ed0b7b0d44')

@mifopen could you please submit a PR with a failed unit test, or post the steps to reproduce the issue, like the create table statement, insert table statement etc... + the Postgres version you are using.
Thanks

as per pgdoc
You can insert it as a string enclosed by {} so this should work.
var query = new Query("Table").AsInsert(new {
    Id = "1",
    Values = "{1,2,3}"
});


[Fix bug 1260695] Enable te locale on mozillians.org

@akatsoulas r?

Coverage remained the same at 92.437% when pulling 38f0d2c014415218ff34ac0955c07f57b2935928 on johngian:enable-te-l10n into cc0b42711d85d59e9440091ff4fd49b06015e25c on mozilla:master.

r+


Find controller lp

Addresses the issue #154 .

Thanks, these commits will be rebased upon merging.

How would this change better be described in the changelog? (A draft can be found in a4f4cc330ca8fbad6061ee610d003667da595a39).
Why was the quadratic cost completely removed? Can it not be available whenever cvxopt is available, as commented here: https://github.com/tulip-control/tulip-control/issues/154#issuecomment-257048844? The dependencies will remain the same (cvxopt absent from install_requires in setup.py, and present in requirements.txt, as an optional dependency). If the 2-norm option can be kept, then should I simply copy the old code to the case ord == 2?
Why was the function renamed to get_input_helper_LP? It includes the case ord == 2, so it is not only linear programming (even though it raises an error for ord == 2). I support keeping the name get_input_helper (if renamed, following PEP8 it would be get_input_helper_lp).
The newly introduced keyword ord for the function get_input_helper precedes the existing keyword closed_loop. It will break existing callers. Is this ordering of keyword intentional? Does it based on relative importance of keyword arguments? (The latter is a good reason for placing it earlier.)
PEP8 recommends (here too) to avoid abbreviations or corrupted spelling, when feasible. The name ord is short, but order is not too long, and self-documenting (to some degree). I would recommend using order, unless there is some specific reason for choosing ord (for example, uniformity with numpy's API?)
There are two collections of commits above. Rebasing the later ones (with some conflict resolution) yields a patch clean of whitespace changes, which appears to differ from the rebase of the older ones only by 43e1e9b75b31afcec8fc989c2b1cf3c70854e72d, which I copied. I kept cvxopt, until item about ord == 2 is resolved. It would help to confirm whether 52ba38a89fb128e29a4bd7e9eef002db50f8f345 is the intended result.
Main messages from pep8 tulip/abstract/find_controller.py:

E231 missing whitespace after ','
E101 indentation contains mixed spaces and tabs
W191 indentation contains tabs
E265 block comment should start with '# '
E111 indentation is not a multiple of four

Fine to put back the QP inside ord == 2.  I would suggest one change for consistency though. I prefer R^TR and Q^TQ to be used in the QP to make it consistent with the other norms, i.e., ||Rx||_ord. This changes the meaning of R in earlier versions.
I agree with keeping the function name get_input_helper.
I think R, r, Q and ord are all related to the cost function so it makes sense to have them together in the signature of get_input_helper. I suggest we make that change in the signature of get_input as well.
ord is used for uniformity with numpy's API. I prefer to keep it. Otherwise, something like norm_type would be more informative.

I applied these changes as of 5e75e6dddfa3b2234f86cc472ab08e246109166a.
Placed ord after R, r, Q in args, autopep8, and some misc modifications to find_controller.
From what I understand (correct me if wrong) by a comparison, the QP:
old: x^T R x
new: |R x|^2 = (R x)^T (R x) = x^T (R^T R) x

So, to use the old code with the new input, I "symmetrize" the matrices Q and R, by using Q2 = Q^T Q and R2 = R^T R in place of Q, R as input to the old code. The addition of mid_weight is left untouched, and the same for all norms. Also, 0.5 r is used, because cvxopt multiplies the quadratic term x^T P x with 0.5 and the docstring says |Rx|_{ord} + |Qu|_{ord} + r'x + mid_weight * |xc - x(0)|_{ord}.
Also, based on this comment, should we assert closed_loop is False?
The example continuous_with_simulation.py says: "WARNING:tulip.abstract.discretization:	 too small: si \ Pre(sj), so not reached it". Noted in case we should change something (probably not).
Also, except for the example, there are no tests for the new code. I think that when the implementation is completed (closed_loop = True) and the issues mentioned here addressed, then tests can be added.
Note: This PR includes the simulation code from #146.
Besides the minor questions above, I consider this PR ready for merging.

Regarding tests, they are the subject of #166.

QP interpretation is right. I was not aware of cvxopts 1/2 factor but it makes sense.
I decided that it would make more sense to address closed_loop = True case separately. The current version is not any different than what closed_loop has been implementing up to now (modulo solver change but it should not affect feasibility). The code should still work as before so maybe no need to add an assertion. On the other hand, I think the latest changes in abstraction 0c8f8b8651b9d6e66be509ca3981893f2696eab7 might have introduced additional inconsistencies because I see closed_loop = True case failing more often. Again it is independent of this PRs goal. A warning about a potential bug might be useful though.
For the warning in the example continuous_with_simulation.py, see this issue of polytope. If you try to run it 7-8 times, it should go through.

If you have any thoughts on how to avoid "WARNING:tulip.abstract.discretization: too small: si \ Pre(sj), so not reached it" without updating polytope and enforcing a change in polytope version, let me know. Otherwise discretization fails sometimes for this example and maybe we should include a warning somewhere in the example docstrings until polytope is fixed

I was trying to refer to the error message: raise Exception("iterative_hull: " Exception: iterative_hull: could not find starting simplex in my two previous comments not the warning coming from discretization....

Thanks for the clarification, the example printed the warning a couple of times during abstraction, but it completed. I did not encounter this Exception in the example, but I will think about it.

Merged as 411aa2d9aeb886b1d74ca135f245ac268fa03d0e. A warning is now logged if closed_loop = True is given to get_input.
I agree for the implementation for the case closed_loop = True to be addressed outside the scope of this PR.
For posterity, the 1/2 factor in QP in cvxopt is mentioned here.
Given that the exception was not observed here, let's investigate it further in the relevant issue of polytope. I think that it is fine to make modifications there, given also that the next polytope release will be cut soon.

This PR makes tulip deployable in absence of cvxopt. This has been a long awaited objective, in particular:

it completes the modifications outlined here: https://github.com/tulip-control/tulip-control/issues/48#issuecomment-41227876
cvxopt was made optional in #122, but still required for find_controller. Now it is entirely optional, unless a quadratic cost is desired when designing a controller for the continuous state.


Add controller manager configuration (for alpha)

The controller manager currently runs all controllers.  Ideally it would be possible to control whether each controller is started.  Flags is a quick-n-dirty solution to this, and probably preferable if controllers are likely to live in separate repos post-alpha.  A more maintainable solution might be storing configuration as ConfigMap (or whatever the current best practice is for Kube components).

We should be using feature gates for this type of configuration.

I think this is satisfied by #105.


getPlayers returning many duplicates

Hi, firstly thank you for this really useful library.
I've been using it successfully for a while now but I think the group that I'm monitoring has become too large.
We have over 2,500 members and recently getPlayers started to return nearly 8,000 players. In this case there are only 420 unique users and each is duplicated 19 times.
The groupID is 3146600.
Is this a known issue?
many thanks

This is due to a bug caused by a recent ROBLOX change. I patched this yesterday in cb96147 but forgot to publish it to npm. I've done it now and you should be able to use npm install now to update to the latest version 3.0.6 which should fix the issue.

This problem is reflected in v2 as well and in order to maintain compatibility with roblox-js-server that has also been patched in v2.3.7

Thanks for the fix, confirmed working.


Error when calling $trim("") with empty string

there seems to be an existing similar issue with trimming whitespaces as well.
eg: $trim("   ")


Document nginx routing

This is mainly just a reminder to myself to do this.
People constantly asking about nginx/apache routing etc. So I will stick up my config on the wiki.

https://github.com/thelounge/lounge/wiki/Reverse-Proxies
Anything missing?

I just tried this, and I only get "Cannot GET /irc/".
Did I miss something?

I don't know how Caddy does the routing, but perhaps the ending / is breaking it?

I don't know how Caddy does the routing, but perhaps the ending / is breaking it?

I don't know it either, but I know nginx does two different things depending on how the proxy_pass is written:
location /irc/ {
	# Passes the whole /irc/ along to localhost
	proxy_pass http://localhost:9000;
}

location /irc/ {
	# Maps /irc/ => / on the backend server
	proxy_pass http://localhost:9000/; # notice the leading / meaning the root path to proxy to
}

We require the latter, which works fine as we use only paths relative to the index.html file on the client so it just works without us having any knowledge of the proxy setup. So you'll want to achieve the same setup with Caddy, or use a real webserver.

so caddy needs
proxy /irc http://<IP_ADDRESS>:9000 {
    proxy_header X-Forwarded-For {remote}
    without /irc
    websocket
}

which isn't the cleanest way, and might make asset management etc more difficult in the future. Most software I proxy for let me set the path, or detect it from proxy_header X-Script-Name /<path>
but the above works for Caddy, so maybe you can include it in the documentation.

We should also add location routes for js|css|img|audio|themes as it's all static content, and there's no need to pass on the request onto node.

The nginx guide said, that the lounge had to bind to <IP_ADDRESS>. But for me it only worked when leaving undefined instead of <IP_ADDRESS>. Otherwise the guide works fine and should be included in the official documentation.

I think this is done then, apart from the issue with what exactly to use as the host?

@konstin, I will be adding this in the official documentation in a few days. Note that "official documentation" means "supported and maintained", which is not a responsibility to take lightly.
Also, note that this is an open source project being entirely managed during volunteers' free time, and as a consequence, "expecting" as a user has a different meaning than professional services. Also, I would argue that this is not essential information to install and run the project, even though it's a nice to have.

I'm maintaining two open source website myself, so I totally get your point with responsibility and expectations. I didn't mean "expect" in the way of being an obligation towards the user but rather from an UX point of view, as it is quite surprising to find this in the github wiki. And though most users are likely fine with the standard nodejs setup, installing it besides other services without switching to a different port requires a reverse proxy, so having this in the official documentation is imho something worthwhile, even it if that configuration isn't a hundred percent up-to-date and tested.

Alright, all good then :)
And yeah, I'll definitely include this in the docs, thanks for your input.


App reloading on Navigator.push using AuthenticationBloc

Hello, I have followed this authentication tutorial using blocs: https://bloclibrary.dev/#/flutterlogintutorial, and everything worked perfectly. Except that I hade to change in på main.dart from just return the page I want to go to if I login successfully to pushing to the widget page with this:
WidgetsBinding.instance.addPostFrameCallback((_) {
    print("Authenticated");
    Navigator.of(context).push(
        MaterialPageRoute(
             builder: (context) => TodaysPage(),
         ),
     );
});
// return TodaysPage();

I did this because the app didn't change view to the TodaysPage view after signing in. Only after "refreshing" the simulator from VS Code debugging tool. So I know that the bloc states changes fine.
And this solution has worked perfectly for a month give or take. And I use this way of navigating in my app a lot. I first used Navigator.pushNamed(...) but then the authentication blocs context wouldn't carry over so I couldn't log out if I changed routes after logging in. However that is not my problem right now.
When I started up my simulator today and ran the app the app behaved very strange. This is what happens when I log in (SORRY FOR BIG IMAGE):

It seems to me like the navigator pushes over and over.
My code works fine (except that I have to refresh every time I log in) if I go with the return statement instead of Navigator.of(context).push.....
If I look at my debug console I see this:

And this is the code for handling the authentication state:
if (authState is AuthenticationAuthenticated) {
    print("Authenticated");
    WidgetsBinding.instance.addPostFrameCallback((_) {
        Navigator.of(context).push(
            MaterialPageRoute(
                builder: (context) => TodaysPage(),
            ),
        );
    });
    // return TodaysPage();
}
if (authState is AuthenticationUnauthenticated) {
     print("LoginPage loading");
     return LoginPage(userRepository: userRepository);
}
if (authState is AuthenticationLoading) {
     return CircularProgressIndicator();
}

print("SplashPage");
return SplashPage();

I have tried other ways of using the Navigator but they all give the same result..
This bug is super frustrating since it was working last week when I worked on the app.. And I was almost done with it and was going to show it to my client..

flutter doctor -v gives this:
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale sv-SE)
    • Flutter version 1.12.13+hotfix.8 at /Users/andreas/Library/flutter
    • Framework revision 0b8abb4724 (6 weeks ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/andreas/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/andreas/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.0

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 43.0.3
    • Dart plugin version 193.6015.53

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

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • 84A08DAE-713B-4A10-94C7-51CCCCF3FF1C • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

• No issues found!

Questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community


[Table] Phase 1 Feature - Query Entities

Read through:

https://docs.microsoft.com/en-us/rest/api/storageservices/query-entities
Azurite V3 Table wiki

Implement following parts:

[ ] Implement TableHandler::queryEntities()
[ ] Implement TableHandler::queryEntitiesWithPartitionAndRowKey()
[ ] Implement LokiTableMetadataStore::queryTableEntities()
[ ] Implement LokiTableMetadataStore::queryTableEntitiesWithPartitionAndRowKey()
[ ] Add test cases

Take Create Table implementation as example:

TableHandler::create()
LokiTableMetadataStore::createTable()
Create Table test cases

Hi @XiaoningLiu  @isabella0428 ,
sorry, don't want to come across as impatient ::innocent:: we are waiting on the queryEntitiesWithPartitionAndRowKey handler for our insert or merge and upsert handlers test cases.
It looks like it has not been implemented here.
I already had to implement on the Loki metadata handler to complete the upsert, would not be much more to add the externally facing API and tests.
Are you OK for @CodeUnicornMartha and myself to implement?
Thanks,
Edwin

Already implemented.


implement team contacts

The submodule updates are for this - https://github.com/OpsLevel/opslevel-go/pull/55


SQL

When I do :
query = atws.Query('Account')
query.WHERE('id', query.GreaterThan, 0)
query.Bracket('AND')
query.OR('Status',      query.Equals,   at.picklist['Ticket']['Status']['Complete'])
query.OR('IssueType',   query.Equals,   at.picklist['Ticket']['IssueType']['Non Work Issues'])
query.CloseBracket()
I have this error :
Traceback (most recent call last):
File "test2.py", line 36, in
query.Bracket('AND')
AttributeError: 'Query' object has no attribute 'Bracket'
Someone can help ?

python-atws/atws/query.py was refactored some time ago in commit 7761fb3ac128ddb8c7c2dcad972b6a43f07e7b4b and since then, the documentation has been wrong.  I've fixed up the documentation.

So it's query.open_bracket('AND') ?

The documentation did change I think you just need to refresh.
Regardless, yes that is the correct method to call open_bracket('AND')

Ok, yes I needed to delete cache in the browser.


SAMURAI mode: False

Hello author，
demo.txt.txt
thank you very much for your great work.
When I tried your inference script demo.py, I encounter a warning saying "SAMURAI mode: False". Does that mean the inference is using the original sam2 not samurai? If it is, how to solve it ?

Hi, i had the the same question.
Not sure if this is correct, but i solved it by changing the paths in the determine_model_cfg function in demo.py (line 24-38).
Basically changing sam2.1 --> samurai
def determine_model_cfg(model_path):
    if "large" in model_path:
        return "configs/samurai/sam2.1_hiera_l.yaml"
    elif "base_plus" in model_path:
        return "configs/samurai/sam2.1_hiera_b+.yaml"
    elif "small" in model_path:
        return "configs/samurai/sam2.1_hiera_s.yaml"
    elif "tiny" in model_path:
        return "configs/samurai/sam2.1_hiera_t.yaml"
    else:
        raise ValueError("Unknown model size in path!")

Mapping-based Approach:
• Used a dictionary ( config_mapping ) to store model types and their corresponding configuration paths. This simplifies adding or modifying mappings later.
Loop:
• Iterates through the mapping to check if the key (e.g.,
"large" ) exists in the model_path . This is more concise and reduces redundant code.
Improved Error Handling:
• Includes the problematic model_path in the ValueError for better debugging.

Fixed in https://github.com/yangchris11/samurai/pull/11, closing the issue.

Hi, i had the the same question. Not sure if this is correct, but i solved it by changing the paths in the determine_model_cfg function in demo.py (line 24-38). Basically changing sam2.1 --> samurai
def determine_model_cfg(model_path):
    if "large" in model_path:
        return "configs/samurai/sam2.1_hiera_l.yaml"
    elif "base_plus" in model_path:
        return "configs/samurai/sam2.1_hiera_b+.yaml"
    elif "small" in model_path:
        return "configs/samurai/sam2.1_hiera_s.yaml"
    elif "tiny" in model_path:
        return "configs/samurai/sam2.1_hiera_t.yaml"
    else:
        raise ValueError("Unknown model size in path!")

OK, thank you I' ll try it


Performance optimized interleaved mode JetStream server

Optimized TPU duty cycle (largest gap < 4ms)
Optimized TTFT: dispatch prefill tasks ASAP w/o unnecessary blocking in CPU, keep backpressure to enforce insert ASAP, return first token ASAP.
Optimized TPOT: properly enforce generate and detokenize task in sequential w/o unnecessary blocking in CPU.
Optimized output token throughput: properly prioritize prefill and balancing TTFT and decode in high throughput situation.
Tested with llama2-70b JetStream MaxText server on v5e-8 VM

Optimized TPU duty cycle (largest gap < 4ms)
Optimized TTFT: dispatch prefill tasks ASAP w/o unnecessary blocking in CPU, keep backpressure to enforce insert ASAP, return first token ASAP.
Optimized TPOT: properly enforce generate and detokenize task in sequential w/o unnecessary blocking in CPU.
Optimized output token throughput: properly prioritize prefill and balancing TTFT and decode in high throughput situation.
Tested with llama2-70b JetStream MaxText server on v5e-8 VM

Optimized TTFT and Optimized output token throughput are conflicted with each. Can we expose some parameter to tuning the two part?

Optimized TPU duty cycle (largest gap < 4ms)
Optimized TTFT: dispatch prefill tasks ASAP w/o unnecessary blocking in CPU, keep backpressure to enforce insert ASAP, return first token ASAP.
Optimized TPOT: properly enforce generate and detokenize task in sequential w/o unnecessary blocking in CPU.
Optimized output token throughput: properly prioritize prefill and balancing TTFT and decode in high throughput situation.
Tested with llama2-70b JetStream MaxText server on v5e-8 VM

Optimized TTFT and Optimized output token throughput are conflicted with each. Can we expose some parameter to tuning the two part?

Currently, prioritize prefills in interleaved mode, and apply correct JAX blocking for copy to host async to reduce wasted wait time. 1 more optimization to do is to ensure the result returns immediately when the return channel has the result (from orchestrator).


bugfix: fix postion of undefined lambda param

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y  #870

2. What is the scope of this PR (e.g. component or file name):
sema/src/resolver/node.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2300

Relevant Lines:
2619

💛  - Coveralls


aws-cli: install examples in dedicated package to optimize storage use

This pull request is inspired by the desire to improve storage requirements of aws tools in embedded devices.
Separating examples in a dedicated package saves a lot of storage space that is not required for automated operation of aws tools.

/run

Hi Marcus,
thanks for the PR - did change a bit and created a new, that will be backported to all supported branches.
https://github.com/aws4embeddedlinux/meta-aws/pull/3515
Please see here

Perfect! Thanks for pointing out the documentation. I'm sorry I missed it! It coudn't be in a more obvious place, and still I didn't see it. Sorry for that.
I'll go over it next time if I have something else I think I can contribute with. Keep up the good work!


Where to find the "data_lidc.hdf5"?

Hi, thank you for sharing your code and great work! Just wonder where can we download the file "data_lidc.hdf5", only find the "data_lidc.pickle" but not .hdf5 on Stefan Knegt's gihub page. Is there and way we can convert the .pickle to .hdf5? Thank you!

Thank you for getting back to me so fast!

Hi, thanks for your excellent work. Could you please share the processed "data_lidc.hdf5"? Thanks a lot!

@LarsDoorenbos By the way, where can I find the derivation process？ Looking forward to your answer~

We now uploaded the .hdf5 file to here.
For your second question, which derivation process do you mean?

Hi, thanks for your reply @LarsDoorenbos . I want to know the derivation process for eq.7.

The categorical diffusion formulation comes from this paper, and our eqs. 6 & 7 come from eq. 13 there.

Thanks for your quick reply! Have a good day!

@LarsDoorenbos Hi, it is me again. When I train on my dataset, the result is not nice. So could you please release your trained model? Thanks a lot!

I put one of our models from LIDCv1 along with the parameter file needed for evaluating GED16 here


[New chain]: OORT DevNet (Testnet)

Summary
I would like to add Safe v1.4.1 for OORT DevNet (Testnet)
Chain ID
9700
Chain detail URL
https://chainlist.org/chain/9700
RPC URL
https://dev-rpc.oortech.com/
Blockscout Client URL
No response
Etherscan Client URL
No response
Etherscan Client API URL
No response
Version
1.4.1
Address (Master copy)
0x94ae01259d7e84D612070ca004D242F0d5213819
Deployment Tx hash (Master copy)
0x5e76713eb17702bc836ff1bce58454835a0f33ca0870ce6c8a1d11d2830ae65c
Block explorer URL (Master copy)
https://dev-scan.oortech.com/tx/0x5e76713eb17702bc836ff1bce58454835a0f33ca0870ce6c8a1d11d2830ae65c
Address (Master copy L2)
0x24372682Db02aA5d5bA54168B49F3b54c1128154
Deployment Tx hash (Master copy L2)
0x230f0de46efcefa107ce91890b2b5edf1de2b97859b287102c0a94215d020609
Block explorer URL (Master copy L2)
https://dev-scan.oortech.com/tx/0x230f0de46efcefa107ce91890b2b5edf1de2b97859b287102c0a94215d020609
Address (Proxy factory)
0x786Cf8CA0B88CD745aD2e3824Af7B17174dAe092
Deployment Tx hash (Proxy factory)
0x1e9abcaf6110c647cd69586d8db8ad68f80dbc668623433c146ff630fdf8861d
Block explorer URL (Proxy factory)
https://dev-scan.oortech.com/tx/0x1e9abcaf6110c647cd69586d8db8ad68f80dbc668623433c146ff630fdf8861d

@falvaradorodriguez hey any thoughts on why it keeps getting back not valid 1.4.1? when in fact the contract returns 1.4.1 as VERSION()

Hi,
Are you sure that the compiled version of your contracts is this?
It would be best if you used exactly the same commit.

Additionally, you need to add the addresses to this repository (https://github.com/safe-global/safe-deployments?tab=readme-ov-file#adding-additional-deployments) first.
Thanks

to fix your trouble check this solution click
maybe this will solve your problem.


cache sourcemaps for faster watchify

For my (has many dependencies) project it reduce ~3sec watchify

That doesn't work. Not only isn't it actually caching anything, but you can't "cache" source maps because they depend on the previous one. The slow part is the concatenation of source maps. I have a fast implementation that I'm still testing around https://github.com/substack/browser-pack/tree/sm-fast

I agree.  This doesn't work.

Not agree.
Call sourcemap.addFile summary on each dependency took time ~3.2sec, but sourcemap.comment only ~1.2sec
Also, before I try https://github.com/substack/browser-pack/tree/sm-fast and it's not help me with performance.
I learn very deep this sutiation and debug how it works in combine-source-map and source-map libraries. Noticed, that it's mostly reused existing sourcemap. Maybe can leak in this place https://github.com/mozilla/source-map/blob/master/lib/source-map/mapping-list.js#L58-L64, but node-inspector not show it.
Anyway please measure sourcemap.addFile and make sure, that it's big performance problem place.

sourcemap.addFile calls are very expensive - nobody denies that. For sourcemap.comment() to generate a correctly concatenated sourcemap, it must first be fed each source content (with its source map, if available). So you can't just not call sourcemap.addFile. What my sm-fast branch does, is that is uses my inline-sourcemap-concat, which is a lot like combine-source-map, but it's optimized for linear source map concatenation (that's exactly what being done in browser-pack).

May cannot call sourcemap.addFile, because sourcemap object placed outside of scope https://github.com/substack/browser-pack/pull/65/files#diff-168726dbe96b3ce427e7fedce31bb0bcR14 and save earlier generated privated hashes about sourcemaps. Other problem, that sourcemap object can leaked. Anyway, in https://github.com/substack/browser-pack/tree/sm-fast not used sourcemap.addFile, but I afraid, that similar API https://github.com/substack/browser-pack/blob/sm-fast/index.js#L62-L64 can have this problem too.

https://github.com/substack/browser-pack/tree/sm-fast was created 18 May.
When it will merged in master branch?


[protobuf-c] fix feature tools

@FrankXie05  can you also add the https://github.com/microsoft/vcpkg/labels/info%3Areviewed label

Thank you!


How to use it as default plugin for code block?

Hi
First, thanks for making this plugin available.
My question is, can we make gitbook use ace plugin as it's default behavior? in another word, I want to avoid writing tags like {%ace edit=true, lang='ruby'%} and instead use the normal markdown ```ruby  tag and make gitbook understand it and use ace plugin instead of highlight?

Don't think it is possible with gitbook 3.x, however, I might rewrite the plugin for gitbook 4.0+ and I will see if it is possible once their api are completed.


App Center Support for Xamarin Forms UWP - AppCenter.Crashes Not Working

Even though I have added Analytics and Crashes nuggets in my .NETStandard project and all 3 head projects (Android, iOS, UWP) and then in App.xaml.cs OnStart() of my .NETStandard project, added below as you suggested by replacing my app secret appropriately:
AppCenter.Start("ios={Your App Secret};android={Your App Secret};uwp={Your App Secret}", typeof(Analytics), typeof(Crashes));
The Crashes are not reported on UWP at all but they are reported on Android and IOS.

@dinobu There are certain limitations for UWP crashes. Please make sure that the following criteria is met for UWP crashes to be reported in App Center portal.

@dinobu There are certain limitations for UWP crashes. Please make sure that the following criteria is met for UWP crashes to be reported in App Center portal.

I am aware of that document, it is also confusing as per ticket I created there.  Thanks

Hi @dinobu, we addressed your issue in another thread.

@dinobu Is this resolved on your side?


ambiguous status value

{
  "code": 200,
  "status": 20000,
  "data": {
    "title": "Firecrawl",
    "url": "https://firecrawl.dev/",
    "content": <content scraped >,
    "links": {
      "Smart Crawl!": "https://www.firecrawl.dev/smart-crawl",
      "Skip to content": "https://www.firecrawl.dev/#skip",
      "🔥": "https://www.firecrawl.dev/",
      "Playground": "https://www.firecrawl.dev/playground",
      "Docs": "https://docs.firecrawl.dev/",
      "Pricing": "https://www.firecrawl.dev/pricing",
      "Blog": "https://www.firecrawl.dev/blog",
      "Get Started": "https://www.firecrawl.dev/signin",
      "Try it out": "https://www.firecrawl.dev/signin/signup",
      "Talk to us": "https://calendly.com/d/cj83-ngq-knk/meet-firecrawl",
      "Mendable": "https://mendable.ai/",
      "Check out our repo": "https://github.com/mendableai/firecrawl",
      "@GregKamradt": "https://twitter.com/GregKamradt/status/1780300642197840307",
      "@suprgeek": "https://twitter.com/suprgeek/status/1780338213351035254",
      "@jerryjliu0": "https://twitter.com/jerryjliu0/status/1781122933349572772",
      "@thepericulum": "https://twitter.com/thepericulum/status/1781397799487078874",
      "@latentsauce": "https://twitter.com/latentsauce/status/1781738253927735331",
      "@AlexReibman": "https://twitter.com/AlexReibman/status/1780299595484131836",
      "@michael_chomsky": "https://www.firecrawl.dev/#",
      "@palebluepaul": "https://twitter.com/palebluepaul",
      "scrape": "https://docs.firecrawl.dev/api-reference/endpoint/scrape",
      "crawl": "https://docs.firecrawl.dev/api-reference/endpoint/crawl",
      "Status": "https://firecrawl.betteruptime.com/",
      "Terms of ServiceTerms of Service": "https://www.firecrawl.dev/terms-of-service",
      "Privacy PolicyPrivacy Policy": "https://www.firecrawl.dev/privacy-policy",
      "Twitter": "https://twitter.com/mendableai",
      "GitHub": "https://github.com/mendableai",
      "Discord": "https://discord.gg/gSmWdAkdwd",
      "Brand Kit": "https://www.firecrawl.dev/#0"
    }
  }
}

is the value assigned to the status key correct ? 2000 seems to be vague

It's correct, that's a internal status code. If you're looking for the standard http code, the code is what you need.


Ci/adding nanos+

Speculos 'bug' due to new version of Werkzeug breaks the tests. Waiting for the new version.


Feature: Cover Overspending from Future

Trello Link (if applicable):
Explanation of Feature:
TODO
(PR in the works, do not merge yet. Just ready for review and help)

@Wolfsblvt and @joshmadewell, any news on this?

I think @Wolfsblvt got busy in real life so this just hasn't been revisited. I've considered picking the feature up myself because I would definitely use it but I've also been busy :P

Any traction on this? Would be really nice. I do this manually every month.

@jeffdoolittle Still same as before, I might actually pick this feature up and finish it as I do the same thing!

Its going to be a pretty hot weekend, I think I will try working on this.

Looking to get clarification on how this feature should work. If my groceries category is overspent,  should the money be pulled from the next months groceries or can the money be pulled from any category in the future?

My guess is that it should come from the groceries category from the furthest budgeted month in the future

Closing this for now as it's gone dormant. Feel free to re-open if you get back to it!


Only the first image contains a workflow.

Only the first image contains a workflow.
All other Images give me: "Unable to find workflow in..." in Comfyui.
Thanks for your work!

same here

Weird. I don't know how that happened. I now just copied the workflows into the github as JSON files.


search_nn does not take "best" parameter into consideration

@require_axis
def search_nn(self, point, best=None):
    """
    Search the nearest node of the given point

    point must be a location, not a node. The nearest node to the point is
    returned. If a location of an actual node is used, the Node with this
    location will be retuend (not its neighbor) """

    return next(iter(self.search_knn(point, 1)), None)

The code for search_nn should probably pass "best" on to its call to search_knn

Closing due to inactivity. If this is still relevant, please reopen.


Update ms-cloud-germany-transition.md

corrected some errors.

at the end of the migration; The tenant is now a fully global Office 365 organization. (deleted not in is now not a fully global )
from Germany-specific products to global products (added to global products)
Existing Microsoft Cloud Deutschland customers (replaced Existing Microsoft Cloud Germany (Microsoft Cloud Deutschland) customers    reason: term Microsoft Cloud Deutschland customers was already used at the beginning of the article )
customers can now begin to migrate .... services (replaces customers by services in: customers can now begin to migrate their Office 365, Dynamics 365 Customer Engagement, and Power Platform customers.)
Office for the web (replaces in MCI service plan 23. Word Online, Excel Online, PowerPoint, OneNote, and Visio Online)
6 Yammer Enterprise (replaces Yammed online in 29.)
Information Protection for Office 365 (replaces 11. Information Rights Management)
services 30. - 39. added

corrected some errors.

at the end of the migration; The tenant is now a fully global Office 365 organization. (deleted not in is now not a fully global )
from Germany-specific products to global products (added to global products)
Existing Microsoft Cloud Deutschland customers (replaced Existing Microsoft Cloud Germany (Microsoft Cloud Deutschland) customers    reason: term Microsoft Cloud Deutschland customers was already used at the beginning of the article )
customers can now begin to migrate .... services (replaces customers by services in: customers can now begin to migrate their Office 365, Dynamics 365 Customer Engagement, and Power Platform customers.)
Office for the web (replaces in MCI service plan 23. Word Online, Excel Online, PowerPoint, OneNote, and Visio Online)
6 Yammer Enterprise (replaces Yammed online in 29.)
Information Protection for Office 365 (replaces 11. Information Rights Management)
services 30. - 39. added


Fivetran Connection does not show API Key and Secret slots

HI,
I configured the Airflow connection to Fivetran as specified in the docs. I am getting Fivetran conenction type, but the API Secret and API key slots are missing. Attaching the screenshot of the same. Please advise next steps to resolve the issue.

When i give Fivetran API key and API Secret into the Login and Password slots, it gives me below error:
Response: b'{"code":"Forbidden","message":"Access denied. Required permission: ACCOUNT_READ"}', Status Code: 403

Hey @akhildevvr, Can you please try by placing your "Fivetran API Key" in Login and "Fivetran API Secret" in the Password field of the above form? But yes I agree the form  rendering should be fixed
https://github.com/astronomer/airflow-provider-fivetran-async#configuration

Can you navigate to Admin > Providers and check the version of the Fivetran provider? The UI stuff was added in version 1.1.1. If you are using an older version, it will not format the secret page properly.
Version 1.1.1: https://github.com/astronomer/airflow-provider-fivetran-async/blob/1.1.1/fivetran_provider_async/hooks.py#L47
Note in the previous version 1.1.0, there is no get_ui_field_behaviour in this file: https://github.com/astronomer/airflow-provider-fivetran-async/blob/1.1.0/fivetran_provider_async/hooks.py


Performance: find an alternative to PostgreSQL's need for the Parameters helper

The Parameters class is being used to convert SQL into PostgreSQL specific format, but this is being flagged as significant overhead during profiling. It gets highlighted both during CPU and during memory profiling.
A better solution should be investigated, or ideally have us generate the right syntax to begin with.

A better solution should be investigated, or ideally have us generate the right syntax to begin with.

I mean, we really tried to do this about a year ago, but frankly it turned out to be a real mess, and ultimately I just got fed up with it.

A better solution should be investigated, or ideally have us generate the right syntax to begin with.

I mean, we really tried to do this about a year ago, but frankly it turned out to be a real mess, and ultimately I just got fed up with it.

What I'm saying is that it might not be worth fixing.

What I'm saying is that it might not be worth fixing.

(Though one thing worth trying might be to cache the translated strings in a WeakHashMap.)

(Though one thing worth trying might be to cache the translated strings in a WeakHashMap.)

I'd prefer we customize the ORM's strategy for generating the SQL - let's generate it using the right syntax rather than patching it after? Especially as in that way it would end up into the existing caches.

I'd prefer we customize the ORM's strategy for generating the SQL - let's generate it using the right syntax rather than patching it after? Especially as in that way it would end up into the existing caches.

I'd prefer we customize the ORM's strategy for generating the SQL

There soooo many places that this touches, and so many classes we would need to extend and override things that sometimes aren't public that this is just a mighty pain. Trust me, I tried.

I'd prefer we customize the ORM's strategy for generating the SQL

There soooo many places that this touches, and so many classes we would need to extend and override things that sometimes aren't public that this is just a mighty pain. Trust me, I tried.

There soooo many places that this touches, and so many classes we would need to extend and override things that sometimes aren't public that this is just a mighty pain. Trust me, I tried.

I agree
But what about processing the sql as soon as it is generated?
For example overriding AbstractEntityPersister#generateUpdateString to something like:
	@Override
	public String generateUpdateString(boolean[] includeProperty, int j, boolean useRowId) {
		String sql = super.generateUpdateString( includeProperty, j, useRowId );
		return sql != null
				? Parameters.process( sql )
				: null;
	}

There soooo many places that this touches, and so many classes we would need to extend and override things that sometimes aren't public that this is just a mighty pain. Trust me, I tried.

I agree
But what about processing the sql as soon as it is generated?
For example overriding AbstractEntityPersister#generateUpdateString to something like:
	@Override
	public String generateUpdateString(boolean[] includeProperty, int j, boolean useRowId) {
		String sql = super.generateUpdateString( includeProperty, j, useRowId );
		return sql != null
				? Parameters.process( sql )
				: null;
	}

Well, that's probably better, but it's still a lot of places, once you take into account all the variations of loaders and batch loaders, and off the top of my head I don't think it would help with queries (though perhaps there is an alternative solution for queries).

Well, that's probably better, but it's still a lot of places, once you take into account all the variations of loaders and batch loaders, and off the top of my head I don't think it would help with queries (though perhaps there is an alternative solution for queries).

Something is wrong. I will send a new one when I've fixed it

Something is wrong. I will send a new one when I've fixed it

Sorry, I closed the issue instead of the PR

Sorry, I closed the issue instead of the PR

I have a working branch that seems to improve the performance. I will update the PR soon

I have a working branch that seems to improve the performance. I will update the PR soon


[FLINK-3330] [ml] Fix SparseVector support in GradientDescent

The GradientDescent implementation did not work with sparse input data
because it requires the gradient to be dense. This patch makes sure that
the gradient sum is always dense.

Travis passed. Will merge the PR then.


removed logging for faster tests and lesser file errors

Should reduce the probability of "Too many files open" errors, and will probably improve the test speed a bit. There is also no necessity of logs, since they won't be output anyway.
tasks:

[ ] test coverage
[ ] gather feedback for my changes

informations:

q
a

Fixed tickets
none

BC breaks
none

Documentation PR
none

@dantleech @chirimoya @wachterjohannes What do you think? Any reason to keep the logs in the tests?

https://github.com/lennerd/sulu/commit/3f42514b47ba296e625b10fa028da0fa42770ac0#diff-6ab176cd4508342720a2190f68cd1356R19 :see_no_evil: :wink:

Ah, I thought you stopped working on it, because it should work out of the box :smile:

No I'm working on a fix for the testing. :smile:

Ok, but this way we can more clearly compare how the logging affects the speed of the tests :smiley:

Thats right. And maybe having different PRs for different issues is even better.

Already done ... https://github.com/sulu-io/sulu/pull/1703


options.block not working

 if (options.block) {
    return '/* ' + sourceMapBody + ' */';
  }

This will generate code like.
/* # sourceMappingURL=
```
but the code below only working.
```
/*# sourceMappingURL=
```

I confirmed the issue. Thanks for reporting!

Fixed in https://github.com/shinnn/inline-source-map-comment/commit/a5089ead78f50a96670541481d8f96c7d7576f24 and released v1.0.5.


[GUVNOR-2273] disable git and ssh daemons during tests to avoid port …

…conflicts
@Rikkola this should fix the failing tests when running with -T. Let's wait for the CI to pass to be sure.

Good work. Thank you @psiroky

+1

master: 3210ee348653c7161bb771ff24e14dc555cbcb16


fixes Issue #20, Issue #22, Issue #26 and Issue #29. It replaces PR #21 and PR #23 and contains alignments to the v2.2 specification

corrects the NS_QDT name according to the zugferd22 specification
extends elements.py:DateTimeElement to allow the adjustment of the inner DateTimes namespace
updates references.py:ReferencedDocument to use NS_QDT for its DateTimeElement
corrects profiles in reference.py for various attributes according to the zugferd22 schemata
adds test zugferd_2p2_EN16931_ElektronischeAdresse2.xml as a variation of the official zugferd22 sample EN16931_ElektronischeAdresse.xml adding a FormattedIssueDateTime to the BuyerOrderReferencedDocument
moves SellerOrderReferencedDocument from trade.py to references.py
fixes DateTimeField namespace of AdvancePayment.received_date

Thanks a lot, and sorry for the long turnaround!


KAFKA-3359 Parallel log-recovery of un-flushed segments on startup

Did not find any tests for the method. Will be adding them

@vamsi-subhash Thanks for the contribution.
Can you please open a jira to describe/track this work and update the PR to include it in the title? This PR also adds a few new configurations which warrants, at a minimum, a discussion in the Kafka dev mailing list. From there a small KIP may be suggested too.

Hi Grant,
Here is the JIRA https://issues.apache.org/jira/browse/KAFKA-3359
The JIRA has the details. I have replied to the kafka-dev mailing list on the pull request mail thread with details. Please review and let me know of the comments. Thanks.

@granthenke
Reg. the tests, The jenkins build timed-out while running the tests and the tests passed till then.
I didn't get any replies on the mailing list yet. Can you once look at the JIRA and comment?

Hello,
It seems like this PR stalled. I'll close it out for now, but if you or anyone else want to resume this work, please feel free to re-open it (or start a new one)!
Thanks,
John


[5.6] Adding fromSub and fromRaw methods to query Builder

Added

fromSub and fromRaw methods to Query Builder so the user can create a subquery on "from", instead of only being able to use table names.

Example
$builder->fromSub(function ($query) {
    $query->select(new Raw('max(last_seen_at) as last_seen_at'))->from('user_sessions')->where('foo', '=', '1');
}, 'sessions')->where('bar', '<', '10');

This creates the following sql:
select * from (select max(last_seen_at) as last_seen_at from "user_sessions" where "foo" = ?) as "sessions" where "bar" < ?

How to add an alias to the derived table when using fromRaw()?
1.) Union Query
$postLikes = DB::table($table, 'n')
    ->select('n.*', 'reference_id AS post_id', DB::raw('NULL AS comment'))
    ->where('type', AppNotification::LIKE_POST_NOTIFICATION);

$postComments = DB::table($table, 'n')
    ->select('n.*', 'pc.post_id', 'pc.comment')
    ->join('post_comments AS pc', 'n.reference_id', '=', 'pc.id')
    ->where('type', AppNotification::COMMENT_ON_POST_NOTIFICATION);

$postCommentReplies = DB::table($table, 'n')
    ->select('n.*', 'pc.post_id', 'pcr.reply')
    ->join('post_comment_replies AS pcr', 'n.reference_id', '=', 'pcr.id')
    ->join('post_comments AS pc', 'pcr.post_comment_id', '=', 'pc.id')
    ->where('type', AppNotification::REPLY_ON_POST_NOTIFICATION);

$unionOfAllTables = $postLikes->union($postComments)->union($postCommentReplies);

Output
# Outputs:
----------
(select `n`.*, `reference_id` as `post_id`, NULL AS comment from `app_notifications` as `n` where `type` = ?)
union
(select `n`.*, `pc`.`post_id`, `pc`.`comment` from `app_notifications` as `n` inner join `post_comments` as `pc` on `n`.`reference_id` = `pc`.`id` where `type` = ?)
union
(select `n`.*, `pc`.`post_id`, `pcr`.`reply` from `app_notifications` as `n` inner join `post_comment_replies` as `pcr` on `n`.`reference_id` = `pcr`.`id` inner join `post_comments` as `pc` on `pcr`.`post_comment_id` = `pc`.`id` where `type` = ?)

2. Using fromRaw() with the above union query
$data = DB::query()->fromRaw($unionOfAllTables->toSql(), $unionOfAllTables->getBindings())->get();

Output
select * from (
  (select `n`.*, `reference_id` as `post_id`, NULL AS comment from `app_notifications` as `n` where `type` = ?)
  union
  (select `n`.*, `pc`.`post_id`, `pc`.`comment` from `app_notifications` as `n` inner join `post_comments` as `pc` on `n`.`reference_id` = `pc`.`id` where `type` = ?)
  union
  (select `n`.*, `pc`.`post_id`, `pcr`.`reply` from `app_notifications` as `n` inner join `post_comment_replies` as `pcr` on `n`.`reference_id` = `pcr`.`id` inner join `post_comments` as `pc` on `pcr`.`post_comment_id` = `pc`.`id` where `type` = ?)
) // <--- Notice the error here as it's missing the alias for the derived table

both those methods are not documented ...

Please add to documentation


Update quotes of dynamic domains

Lots of people are experiencing errors from there not being double quotes around the erb. This should help reduce the number of errors people experience.

Merged, thanks!

No, thank you!


Code Outline Interface enlarging fails

System information

OS: Windows 10
TypeScript Hero version: 1.8.0
VSCode version: 1.19.0

Description
When expanding an interface in the Code Outline Tool the information scan does fail:

Steps to reproduce

Declare an Interface

expand Interface in Code Outline

Shown error:

Got the exact same error. Same OS, same TypeScript Hero version but in VSCode 1.20.0-insider.

Same on macOS 10.13.4, VSCode 1.21.1


Request for numerical values from the experiments

Hi,
Thank you for sharing your amazing work!
I was wondering if it would be possible for you to provide the specific numerical values from your experiments?

I have the same request.
Could you present the quantitative results in a table format, similar to other papers evaluated using GPT-4?


Adding subscriptions does not work

There are several errors in this example:

storage accounts can only have all lower case and exceeds the max 24 character length
subscription name exceeds the max length of 24
topic name exceeds the max length of 24

Once you clear all that up, it fails with the following error:
error: Error creating/updating EventGrid System Topic Event Subscription "exampleSub2eeb002" (System Topic "subTopic"): eventgrid.SystemTopicEventSubscriptionsClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="ParentResourceNotFound" Message="Can not perform requested operation on nested resource. Parent resource 'subTopic' not found."
I tried adding DependsOn to everything, still it fails.
File: themes/default/content/docs/reference/pkg/azure/eventgrid/systemtopiceventsubscription.md

@chriscogburn Could you please provide the code you're trying to use that's failing? I don't see subTopic anywhere in the example, so it'd be helpful to see the complete code you're trying to use.

I had to modify all the names of the example code or it wouldn't run due to the length of the names being exceeded. Here is what I ended up with.
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleAccount = new Azure.Storage.Account("exampleaccount", new Azure.Storage.AccountArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
            Tags =
            {
                { "environment", "staging" },
            },
        });
        var exampleQueue = new Azure.Storage.Queue("exampleQueue", new Azure.Storage.QueueArgs
        {
            StorageAccountName = exampleAccount.Name,
        });
        var exampleSystemTopic = new Azure.EventGrid.SystemTopic("exampleTopic", new Azure.EventGrid.SystemTopicArgs
        {
            Location = "Global",
            ResourceGroupName = exampleResourceGroup.Name,
            SourceArmResourceId = exampleResourceGroup.Id,
            TopicType = "Microsoft.Resources.ResourceGroups",
        });
        var exampleSystemTopicEventSubscription = new Azure.EventGrid.SystemTopicEventSubscription("exampleSub", new Azure.EventGrid.SystemTopicEventSubscriptionArgs
        {
            SystemTopic = "subTopic",
            ResourceGroupName = exampleResourceGroup.Name,
            StorageQueueEndpoint = new Azure.EventGrid.Inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgs
            {
                StorageAccountId = exampleAccount.Id,
                QueueName = exampleQueue.Name,
            },
        });


cron jobs are not able to connect to the database

Both fetch_and_import_drug_tariff, fetch_and_import_ncso_concessions and run_pipeline_e2e_tests are failing (example) with
OperationalError: could not connect to server: Connection refused
	Is the server running on host "<IP_ADDRESS>" and accepting
	TCP/IP connections on port 5432?

Yet we are seeing reports in slack that they finished.

Ah! These are from largeweb-test which I created when upgrading the server.


XMonad.Actions.Search: Added search engines

Description
I added the search engines for the AUR, Flora, nCatLab, ProtonDB, RosettaCode, Sourcehut, Steam, and the Void Linux Packages. I also reorganized the list alphabetically and added the entry for wiktionary which wasn't mentioned.
Those changes were motivated by

The accessibility of diverse search engines, not only limited to standard one (as it was already the case with IMDb being on the list), and with a bias toward mathematics, coding and games.
The appearance of other packages databases (here, the Arch and Void ones).
The mention of the undocumented wiktionary function.

Checklist

[x] I've read CONTRIBUTING.md

[x] I've considered how to best test these changes (property, unit,
manually, ...) and concluded: it builds, it passes the tests and it works.

[x] I updated the CHANGES.md file

Compile with warnings is complaining about your new search engine definitions missing type signatures, and in addition complains that voidpackages is defined but not used.

I'm really sorry, it should be fixed now :/

I should also note that git can behave oddly if the first line of the commit message is longer than 50 characters or the second line is nonempty (since it gets combined with the first and usually pushes it over that limit). This is usually only cosmetic, though. See for example the result of listing branches verbosely.

Thanks!


Error: Invalid for_each argument

Description
I can build everything from scratch, but when I try to change something, I get this error:
Error: Invalid for_each argument
on .terraform/modules/ecs/modules/service/main.tf line 525, in module "container_definition":
  for_each = { for k, v in var.container_definitions : k => v if local.create_task_definition }
local.create_task_definition is true
var.container_definitions will be known only after apply
The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full set of keys that will identify the instances of this resource.

When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place apply-time results only in the map values.

Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on, and then apply a second time to fully converge.

[X] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]:

Terraform version:
1.4.6 (Using Terraform Cloud)

Provider version(s):
provider registry.terraform.io/hashicorp/aws v4.65.0

do you have some reproduction code that demonstrates this? Are you using a depends_on in your module definition?

It's internal code, I'd have to mock something up. I do depend on a couple other modules, so I added depends_on = [module.efs, module.alb, module.alb_sg] but I still get the same error.
If I teardown and rebuild from scratch, it works fine. If I make some changes it works fine. But then sometimes is fails with that error and I have to rebuild from scratch to get it working again.
There's some discussions about this (https://github.com/hashicorp/terraform/issues/30838) and it seems like Terraform is working as intended. It seems like the module may need to declare a local variable, then use the result of that in the for_each to resolve the issue: https://github.com/hashicorp/terraform/issues/30838#issuecomment-1097920499

You should remove the explicit depends_on - Hashicorp advises against this for numerous reasons, one of which is the error you are reporting

closing out for now - please feel free to respond here with a reproduction and we can take another look


(online) library with mangadex login

found that not being able to login and see your library is pretty lacking, with the only way of saving manga is by downloading
would be a nice feature

AFAIK MangaDEX API is not opened for public auth doc
But i think i will implement login feature as MangaDEX will open ability to create public clients

And about saving manga(w/o download) - many people asking for this already, so when find time, gonna do it


Replaced usage of deprecated function get_fields_with_model with new …

Replaced usage of deprecated function get_fields_with_model with new local function, which does the same thing.

I don't think so. @agjohnson review again?

Thanks for the @josejrobles, looks good to me! 🎉


String Index Out of Bounds

The error is occurring because of the incorrect regex used for splitting the input into the required format. If you print the "productions" dictionary, you would see that the production rules are incorrectly stored.
So for fixing this error you may either use a correct regex or you may just use the inbuilt split function of python.
Here is what you can do, you can remove the whitespaces and the newline using replace function:
line=line.replace(" ", "").replace("\n", "")
And then split the input at "->" using
l=line.split("->")

It works!

This is only a part of the actual fix. If you only use
line=line.replace(" ", "").replace("\n", "")
l=line.split("->"
you will not be able to parse grammars containing '|' which means OR correctly, which renders the test grammars and string in the code unusable.
You could actually do something like this:
line=line.replace(" ", "").replace("\n", "")
l = line.split("->")
lhs = l[0]
rhs = set((l[1]).split("|"))
place this between the line for and flag if in main.

It works!

how does the pseudo code look like?

It works!

how does it look like when added. im having trouble getting rid of the error


[Bug] The API implementation TIRPagedKVCache mismatched with PagedAttentionKVCacheObj

🐛 Bug
The implementaion in mlc-llm:python/mlc_chat/nn/kv_cache.py:TIRPagedKVCache is mismatch with relax(tvm):src/runtime/relax_vm/paged_kv_cache.cc:PagedAttentionKVCacheObj
For example

The
https://github.com/mlc-ai/mlc-llm/blob/24490ba11cccb0c450f3d73b97d6a49dffb21edd/python/mlc_chat/nn/kv_cache.py#L171C10-L171C10
is mismatched with
https://github.com/mlc-ai/relax/blob/a7818f0942a88a1e9c2c29dc0249d6ea7fd2a1e3/src/runtime/relax_vm/paged_kv_cache.cc#L1088
The
https://github.com/mlc-ai/mlc-llm/blob/24490ba11cccb0c450f3d73b97d6a49dffb21edd/python/mlc_chat/nn/kv_cache.py#L401
is mismatched with
https://github.com/mlc-ai/relax/blob/a7818f0942a88a1e9c2c29dc0249d6ea7fd2a1e3/src/runtime/relax_vm/paged_kv_cache.cc#L907

To Reproduce
mlc-llm git hash: 24490ba11cccb0c450f3d73b97d6a49dffb21edd
relax(tvm) git hash: a7818f0942a88a1e9c2c29dc0249d6ea7fd2a1e3
from mlc_chat.serve import Engine
from mlc_chat.serve.config import KVCacheConfig, GenerationConfig
from mlc_chat.serve.engine import ModelInfo

engine = Engine(
    ModelInfo(
        model="dist/Llama-2-7b-chat-hf-q4f16_1-MLC",
        model_lib_path="dist/libs/Llama-2-7b-chat-hf-q4f16_1-rocm.so",
        device="rocm:0"
    ),
    KVCacheConfig())

engine.generate(
    prompts=["How many points did you list out?"],
    generation_config=GenerationConfig(temperature=0.0, top_p=0.6)
)

Hi @lhcalibur, apologize for this late reply. I think the latest codebase may have got rid of that issue. So would appreciate it if you would like to try out again. I am going to close this issue given it is quite outdated, but you are welcome to open new issues at any time for any problems you encounter.


Schema Registry: fail fast on missing configuation

Referring to com.snowplowanalytics.iglu.server/util/ServerConfig.scala - if the database configuration details cannot be found, the problem will not be found until database init is done. We should fail before then.

@oguzhanunlu please, create a ticket. Generally, all common failures should have a human-readable message. Stacktraces should be shown to user in extreme cases (and where they really make sense, e.g. for debugging).

Thanks @chuwy, #351 created.