Fix package.json exports

We just updated to typedoc 0.27.x, which now relies on shiki (technically, a fork called @gerrit0/mini-shiki). However, when we run Jest tests on our code, we're now getting errors like Cannot find module '@shikijs/vscode-textmate'. After debugging quite a bit, it's happening because this package's exports are set to import so there is no way for the Jest resolver (which is CommonJS by default) to find the entry point for the module.
This does not happen with other Shiki packages, like @shikijs/engine-oniguruma, which define a default export instead of import, meaning that both CommonJS and ESM resolvers can find the entry point correctly.
This change follow that same pattern to make this package work correctly in a larger variety of situations - it converts the import key to default so that the Jest resolver can find it correctly.

Same problem happen here when using Shiki with next.js ts config.

@antfu Would you be able to review this and merge it if it looks good to you? Thanks for all your work on this project!


Relay embeds

This PR introduces embed relay functionality. The decision has been made to relay embeds as plaintext by extracting its 'description', rather than relaying the whole thing uniformly. This is because Discord API only allows one embed per message - to maintain 1 to 1 relationship between relayed messages the content must be embedded within the original embed.

Github defaulted to the wrong repo. Sorry for the ping.


Entire strip lights up weirdly when using SPI / GPIO 10

I used this package with PWM on GPIO 18 during the development.
In production I need it to run without root permission, which is why I switched over to SPI on GPIO 10.
Now I get this weird behaviour where suddenly the entire led strip lights up but in kind of a gradient:

The strip is connected to GND, 5V, and GPIO10 / MOSI / Pin 19.
Example usage of the Strip:
#strip = Adafruit_NeoPixel(led_count, led_pin, led_freq_hz, led_dma, led_invert, led_brightness, led_channel)
strip = Adafruit_NeoPixel(110, 10, 800000, 10, False, 255, 0)
# PWM would have GPIO 18 as led_pin
# strip = Adafruit_NeoPixel(110, 18, 800000, 10, False, 255, 0)
strip.begin()
strip.setPixelColor(0, Color(255, 255, 255))
strip.show()

I also implemented a draw-like mode where I can set the color for every specific led. Around every other color-setting-request this error occurs. I also set the entire strip on the same color to check if lies within the power supply, but if the error does not occur the entire strip lights up as it should.
I didn't find a documentation on how to use this library with SPI and what the differences in usage are compared to PWM.

This library has not provided the Adafruit_NeoPixel class for quite some time (since Aug 2018).
Either way issues with SPI and other underlying plumbing is outside the scope of these bindings, you'd need to ask here: https://github.com/jgarff/rpi_ws281x
(SPI seems to have a lot of bugs and there's nothing I can do to fix those)


Local tests

There are a couple options:

Port the tests to tape
Keep the QUnit suite and use phantomjs to get the test results.

Option 1 is probably best, but we'll need to bundle the test scripts for browsers so we can still run them on Sauce Labs, too.
Check out tape-run

I vote 1.

I've ported the QUnit tests to tape.
Things of note:

I had to install lodash as a dependency in order to build (#51)
tape-run requires phantomjs to be installed globally
browserify has a conflict with grunt-browserify, so I was unable to install it in the package.json to follow tape-run's convention. There is, however, a tape script that can be run if you have browserify installed globally: npm run tape

I'm not familiar enough with Sauce Labs to know how to integrate it with tape-run.

Cool!

My feelings wouldn't be the least bit hurt if we ditched Grunt in favor of npm scripts. =)
Do we have Travis-CI set up?

Implemented with #63 by @JosephClay. Thank you mate,
Closing this issue.


[fud2] op graph generation and testing

This PR implements a method for constructing randomly generated test cases for use in benchmarking and fuzzing planners.
It also adds to the initial planners' test suite.

This doesn't do all that needs to be done related to generating graphs, and testing, but it is certainly still something. I think it's probably worth merging in this state instead of it just growing stale here though. It is certainly it's own atomic addition at this point.
This tests correctness against single, simple type of graph, a graph composed of connected layers of states. As it only tests correctness it makes no claims on completeness, e.g. a planner which always returns "no path found" will pass these tests.
This PR also does no bench marking (which I guess was part of the point of this pr, oops).


runtime: windows 10 amd64 1.22.0 goroutine output "exit status 0x40010004"

Go version
go 1.22.0
Output of go env in your module/workspace:
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=*.corp.example.com
set GONOSUMDB=*.corp.example.com
set GOOS=windows
set GOPRIVATE=*.corp.example.com
set GOPROXY=https://goproxy.io,direct
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOVCS=
set GOVERSION=go1.22.0
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config

What did you do?
package main

import (
	"fmt"
	"time"
)

func main() {

	done := make(chan error, 1)
	go func() {
		time.Sleep(time.Second * 6)
		done <- fmt.Errorf("go err")
	}()
	select {
	case err := <-done:
		fmt.Println("error", err)
	case <-time.After(5 * time.Second):
		fmt.Println("timeout")
	}
	fmt.Println("end")
}

go run main.go
What did you see happen?
output:
exit status 0x40010004
What did you expect to see?
output:
timeout
end

Related Issues and Documentation

exit status 0xdeaddead #54067 (closed)
Can differed calls run after runtime.Goexit() in a given goroutine ? thanks  #43952 (closed)
go run #50336 (closed)
test001 #53494 (closed)
go command #62170 (closed)
test #61922 (closed)
go env #35453 (closed)
A goroutine problem? #32513 (closed)
buildmode #57437 (closed)
im going to go #53597 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

I think it's something in your environment killing the processes, not something the Go project can help with.


[macOS] Xcode 12.2 and 12.3 will be removed from Big Sur on June, 28

Breaking changes
Xcode 12.2 and 12.3 will be removed from macOS 11 Big Sur on June, 28
Target date
Deployment will start on June, 28 and will take 2 days
The motivation for the changes
Big Sur is mostly requested for building with the latest Xcode 12.5, that provides new Swift 5.4 features and other fixes. So we'd like to keep Xcode 11.7 for old emulators and 2 latest stable Xcode versions.
Possible impact
Your project CI will be broken if it depends on Xcode 12.2 or 12.3
Virtual environments affected

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

Mitigation ways
Migrate your project to Xcode 12.4 or higher if you are using macOS 11, or use macOS 10.15 image where these Xcode versions will still live.

The image without Xcodes 12.2 & 12.3 deployed.


⚠ Bofrost.at has degraded performance

In 7593175, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 979 ms

Resolved: Bofrost.at performance has improved in 5c1985a after 308 days, 10 hours, 58 minutes.


[IGNORE, testing] Modify setup to test

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


How to use calcite JDBC driver in springboot application

I' m new to use druid, but cannot found docs that How to use druid sql injava or springboot.
thanks

I found a way to using avatica-core. that is integrate avatica-core with mybatis , then we can query as same as mysql


Export keys from inside docker container

I'm looking for instructions on how to export the generated keys from inside the docker container. Was there a wiki page that showed this and was later removed ?

Hi,
This wiki is a bit outdated. The page you are referring to is probably that one: https://github.com/jedisct1/dnscrypt-proxy/wiki/Manually-updating-your-DNSCrypt-server


KAFKA-1429: Yet another deadlock in controller shutdown

Author: pengwei<EMAIL_ADDRESS>Reviewers: NA

I try to fix this issue, can anyone review this fix is OK?

Controller session expire and holding the controllerLock lock and try to wait the autoRebalanceScheduler thread to shutdown, but
the autoRebalanceScheduler is running for the parttion rebalance and this thread want the controllerLock

@junrao  @nehanarkhede   Can you review the fix for this bug?  I think this bug is a serious issue, it will cause the controller not working. Thanks~

@pengwei-li : Sorry for the late response. It seems that the same issue has been fixed in https://issues.apache.org/jira/browse/KAFKA-4360? If so, could you close this PR?

@junrao  yes , this bug also fixed by Kafka-4360,  close this PR is OK

@pengwei-li : Thanks. It seems that only you can close this PR.

close this PR because KAFKA-4360 also fix this bug


mbed OS 5.4

Update to the latest mbed OS release. Will be squashed as it does not contain any relevant changes besides lib update.

Squashed !


[6.0.0-rc.3] Wrong registering fields for Immutable Form on second initialization after change route

When i go to profile route second time, i have next error in console.
DevTools => http://joxi.ru/12Mg4eh4NkJ1rJ
Console => http://joxi.ru/8AnaWzHqdyvB2O
Seems like state is undefined.
This is form reducer:
import { reducer as formReducer } from 'redux-form/immutable';

const initialState = {
  values: {}
};

export default formReducer.plugin({
  profile: (state = initialState, action) => {
    const reducer = {
      'GET_PROFILE_SUCCESS': (state, values) => state.mergeDeep({values})
    }[action.type];
    return reducer ? reducer(state, action.payload) : state;
  };
});

This is because your initialState is not an immutable Map. Should be something like this:
import { Map } from 'immutable'

const initialState = Map({
  values: {}
})

@erikras Thanks, this has helped 👍


Teleport command and nether portal permissions

I want to allow teleporting to the nether by using a nether portal as you would in vanilla, but disallow teleporting to the nether via command. I've tried setting the multiverse.access.world_nether permission to false, but it completely blocks the player from entering the nether via portal or teleport command, when I just want to disable the latter. I've also tried setting multiverse.teleport.self.w to false, and while this works for the nether, it disables teleports for all worlds, and I want users to be able to use the teleport command for creative.
In summary of what I'm trying to do:
While in Survival:
Teleport command to nether: false
Portal to nether: true
Teleport command to creative: true
While in nether:
Teleport command to survival: false
Portal to survival: true
Teleport command to creative: false
While in creative:
Teleport command to survival: true
Teleport command to nether: false

Sadly, we have not implemented per world teleport perms, hope it will be implement soon:tm:

Combine with #1292


Add basic support for CSS grid prefixing

This PR implements very basic style prefixing for CSS grid. This is the first step to solving https://github.com/rofrischmann/inline-style-prefixer/issues/173.
First, here's what I added:

Prefixing for display: grid | inline-grid
Prefixing / expansion for grid-column | grid-column-start | grid-column-end | grid-row | grid-row-start | grid-row-end
Prefixing for align-self and justify-self
Prefixing for grid-template-columns | grid-template-rows

Here's what I did not add (beyond the properties not listed above, obviously):

Support for span values
repeat conversion (e.g., repeat(2, 1fr) -> (1fr)[2])
Auto-placement support
Support for negative values in grid-column and grid-row (see caveats at https://css-tricks.com/css-grid-in-ie-css-grid-and-the-new-autoprefixer/)

This provides basic support for IE10/11 and early versions of Edge. The rest is difficult to add given the limited ability of this program to set styles on child elements (a general limitation of style composability imposed by React). I think it's possible to convert the repeat syntax and add basic span support, but that looks like it may be reaching beyond the scope of this program.
Ah! One last note: I noticed that the grid values in propertyMap.js may be generating invalid styles. Should I try to trim that down?

@garrettberg @ljharb @lencioni @calinoracation Hey there! Would you take a look whenever you have a chance? 🙏

@lencioni Hey Joe, thanks for the comments! I went ahead and addressed them.

@rofrischmann Hey Robin! I'm trying to add basic support for CSS grid. Would you please take a look when you have a chance?

Sure! Ill check it once I wake up tomorrow! Is it ready yet? Wanna get it merged and releasd asap :p

It's ready! It doesn't fully cover the grid spec, but it adds enough basic compatibility that you can make things work on IE10/11. I might try to add more advanced features in other PRs.

@rofrischmann Hey there, would you please take a look when you have time? I think this is ready to go.

About the propertyMap.js, did you remove that? After all,  it should just add prefixes to some values, so it won't break anything. But, it might be unnecessary as well.

@rofrischmann I think we can probably take it out. I took a look at the older IE spec and some MDN data and came up with this:
gridTemplateColumns - `-ms-grid-columns` is used instead
gridTemplateRows - `-ms-grid-rows` is used instead
gridTemplateAreas - not supported in IE
gridTemplate - not supported in IE
gridAutoColumns - `-ms-grid-columns` is used instead
gridAutoRows - `-ms-grid-rows` is used instead
gridAutoFlow - not supported in IE
grid - not supported in IE
gridRowStart - `-ms-grid-row` is used instead (not a 1-1 match)
gridColumnStart - `-ms-grid-column` is used instead (not a 1-1 match)
gridRowEnd - `-ms-grid-row-span` is used instead (not a 1-1 match)
gridRow - not a 1-1 match, implemented in the PR
gridColumn - not a 1-1 match, implemented in the PR
gridColumnEnd - `-ms-grid-column-span` is used instead (not a 1-1 match)
gridColumnGap - not supported in IE
gridRowGap - not supported in IE
gridArea - not supported in IE
gridGap - not supported in IE

:shipit:

Sorry for the delay. I had some unpredictable incidents in my family that required my full attention.
I'll try to merge and release this one asap. Probably on monday or tuesday.

Weeeh, its out at 5.1.0 :P

Thank you so much! 🙏


Question: Does low-bit config reduce TPU HBM memory usage when training?

Hello,
Firstly, I'd like to express my appreciation for your work on this repository. I noticed that it supports low-bit (4 or 8 bits) formats during training, which is quite intriguing.
I have a query regarding TPU compatibility, particularly before TPUv4. As TPUs typically don't support low-bit formats like 4 or 8 bits until TPUv4 (which supports int8), I'm curious about how this implementation works. My current understanding is that the code might be converting 4 or 8-bit formats into bfloat16 or float16 formats. If this is the case, would it imply that the memory usage reduction typically expected from lower bit formats might not be realized?
Could you please clarify if my understanding is correct? Thanks for your time and effort in developing and maintaining this repository.

hello and thanks
ill store parameters as float16,bfloat16 or float32 and do operations in bits like 8 6 4, and you can still train your model in this way and make it much more accurate than bitsandbytes or peft fine-tuning
if I have to give you a simple blueprint of how does those works let me describe that in this way
 # hidden_state an array with the shape of (N-Dims)
# q_proj query proj a Neuron in Flax
# q_flax.QDotGeneral built-in FJFormer (Computation backend for EasyDel)

if config.bits is not None:
    _dot_general_cls = q_config.fully_quantized(
        fwd_bits=self.config.bits,
        bwd_bits=self.config.bits
    )
else:
    _dot_general_cls = None

dot_general_cls = q_flax.QDotGeneral(_dot_general_cls)

q_proj = nn.Dense(..., dot_general=dot_general_cls)
# now this layer will take any array and do the matmul or dot operation in given bits for example in 6,8 or 4
# instead of using jax.lax.dot_general we use fjformer QDotGeneral like this
#
# from fjformer.bits import q_flax, config as q_config
#
# dot_general = q_flax.QDotGeneral(q_config.fully_quantized(
#     bwd_bits=4,
#     fwd_bits=4
# ))

hidden_state = q_proj(hidden_state)
# hidden_state is still in bfloat16 or float16 or float32 but operations are computed in given bits

Run and find Out
so let see how will the code work or compute with running the code
import chex

from fjformer.bits import config, q_flax as q
from flax import linen as nn
from typing import Optional
import jax

class MLP(nn.Module):
    qnt_config: Optional[config.DotGeneral] = None

    @nn.compact
    def __call__(self, inputs: chex.Array):
        dot_general = q.QDotGeneral(self.qnt_config) # in case of passing None the jax.lax.dot_general will be used
        x = nn.Dense(dot_general=dot_general, features=inputs.shape[-1] * 4)(inputs)
        x = nn.silu(x)
        x = nn.Dense(dot_general=dot_general, features=inputs.shape[-1])(x)
        return x + inputs

def init_and_eval(name, inputs, mlp_block, init_seed=0, eval_seed=0):
    params = mlp_block.init(jax.random.PRNGKey(init_seed), inputs)
    out = mlp_block.apply(params, inputs, rngs={'params': jax.random.key(eval_seed)})
    print(f"{name}:\n", out)

def main():
    int8_config = config.fully_quantized(fwd_bits=8, bwd_bits=8)

    mlp_fp16 = MLP(qnt_config=None)
    mlp_int8 = MLP(qnt_config=int8_config)

    input_ = jax.random.normal(jax.random.key(0), (1, 600, 4))

    init_and_eval('mlp_fp16', input_, mlp_fp16)
    init_and_eval('mlp_int8', input_, mlp_int8)

if __name__ == "__main__":
    main()

and the output must be like this
Float16 Computation
mlp_fp16:
 [[[ 0.6609616  -0.11108614 -0.0223496  -0.81255555]
  [-0.25502944  0.51054865 -1.0421164   0.79341686]
  [ 0.7009573  -0.5298119  -0.57316536  1.602029  ]
  ...
  [-0.08386192 -0.34028694  0.05781332 -0.06801909]
  [ 0.6388167   2.3675287  -1.3287199  -2.387364  ]
  [-0.42537162  0.5458796   0.40854657  1.6986433 ]]]

INT 8 Computation
mlp_int8:
 [[[ 0.6650832  -0.11005261 -0.01998997 -0.8111123 ]
  [-0.26523077  0.5025017  -1.0404696   0.79337656]
  [ 0.6945003  -0.5313612  -0.5694739   1.6055017 ]
  ...
  [-0.08491541 -0.34102592  0.05706861 -0.06926808]
  [ 0.64493084  2.3578165  -1.3139739  -2.3902466 ]
  [-0.4261561   0.5440683   0.401039    1.68537   ]]]

Hello,
Firstly, I'd like to express my appreciation for your work on this repository. I noticed that it supports low-bit (4 or 8 bits) formats during training, which is quite intriguing.
I have a query regarding TPU compatibility, particularly before TPUv4. As TPUs typically don't support low-bit formats like 4 or 8 bits until TPUv4 (which supports int8), I'm curious about how this implementation works. My current understanding is that the code might be converting 4 or 8-bit formats into bfloat16 or float16 formats. If this is the case, would it imply that the memory usage reduction typically expected from lower bit formats might not be realized?
Could you please clarify if my understanding is correct? Thanks for your time and effort in developing and maintaining this repository.

if you still have any other questions I'll be happy to answer them and help you
and yes in some cases training process is ~1.9 times faster and maybe 3 times faster but I don't know where I'm doing this wrong right now in the case of using platform-specific attentions built-in FJFormer such as
tpu_flash_attention, ring_attention_standard, ring_flash_attention_gpu, tpu_flash_attention, or gpu_flash_attention it's not working well and will store much more memory in the backward process
and other memory footprint issues like this happen in  TPU-V3 and TPU-V5e but not of GPUs or TPU-V4 it kinda depends on the case you are using the model too.


Implement nested boundaries

This is a feature I've been putting off for a while because I wasn't sure how to approach it. Still not quite sure, but I needed a reminder somewhere so I don't forget it.

Closing as I decided to leave this unimplemented. The complexity it adds doesn't appear to be worth it.
IETF RFC 7578, Appendix A claims:

the method of using a nested "multipart/mixed" from [RFC2388] is no longer recommended for creators and is not required for receivers as there are no known implementations of senders.

(Emphasis mine.)
Prototype implementation is archived on the nested-archive branch for posterity.


Can find the simple shortcut for copy / export curl, python, body header

I always used mitmproxy to validate the request's from mobile request, and the easy step that I always did is some keyboard shortcut inside the flow details to export the curl, as python, header, body.
After search to much I did not found anything else to this simples task that was there before, does anyone know how to show this options again?
Before was just that easy: Shift + C

If you need more help, please reopen this issue :)


Ability to assign different color to lowest HP NPC

Currently it displays all NPC HPs in the same color it would be very nice if you could display a different color (preferably user chosen) for the lowest HP it can find when you right click so it’s much easier to distinguish which NPC has the lowest hp every time

Seems a pretty niche option. unless you want to write a merge i won't spend time making this. Soon i will have an option that hides all the 100% monster. This should help.

Thank you for the quick response


Reflect and set route in Header and Catalog

Use a route parsing package

Use etaque/elm-route-parser
First tried Bogdanp/elm-route, but stumbled across a compiler bug

New module Route.elm
Defines the shop's routes.
Page.elm
Models current route. Provides action for changing the route.
Header.elm
Menu entry "All issues"
Catalog.elm
Reflect route (mark current issue, click on an issue to make it the current one)

@ThomasWeiser Thanks for adding routing. Clicking on "All" button does not show all issues. Is that expected?


Can not translate sidebar menu

Hi Guys,
I just only change the main labels ex:  " dashboard, system"  to my localize, but i can not apply with other menu item ex: access managerment.
Could you please tell me how to translate them.
Best regards,

Yes , bvipul
I saw. I can set localize status to show them.
But with my main issue i've fixed by change main app layout.
I switched the sidebar-dynamic to sidebar template to show sidebar menu then i can translate all of these labels.
And of course i  accept to use the 'not dynamic sidebar menu'.
Thanks for your reply Bvipul.


Cannot save provisioned dashboard

Hi,
is there a way to edit the provisioned dashboard? i would like to define threshholds for the graphs, but i getting this:

i added allowUiUpdates to the dashboard.yml but it does not really work :(

To save the dashboard, you have to copy out the JSON and paste it into https://github.com/geerlingguy/internet-pi/blob/master/internet-monitoring/grafana/provisioning/dashboards/internet-connection.json — note that will cause this repo to be effectively 'forked', so you will need to track your changes to that file separately (or in your own fork).

I ran into this as well, and it seems like a significant limitation (as well as a cause for a lot of forks). Here's a pull request that allows dashboard-saving: https://github.com/geerlingguy/internet-pi/pull/541


Error in retrieving the contents.

Hi,. I'm not able to retrieve the contents of Google docs.. whenever I press the "retrieve content" button, it just closes the app suddenly!..
Where am I supposed to put the my API key!.

same problem here

Need additional info -- which sample are you referring to? Any additional debug output from logs? Stacktrace?


Config.js syntax error

When I run npm start it says that config.js has a syntax error.    And also please guide me to get magic mirror id for assistant.py

validate your config.js. This is not related to this module.


1.0.0-RC5 cannot be added to .Net Framework 4.5.2 project

It's worth noting that 1.0.0-RC1 installs successfully.
Repro steps

Open VS2017
Create new MVC Project using .NET Framework 4.5.2

Use MVC Template:

Install Dapper via Install-Package Dapper (works fine)

Install Dapper.Compose via install-package Dapper.Compose -pre
(fails with error  install-package : Could not install package 'Dapper.Compose 1.0.0-RC5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any  assembly references or content files that are compatible with that framework. For more information, contact the package author.)

Workaround
Use Install-Package Dapper.Compose -pre -Version 1.0.0-RC1

Thank you for your time,
Chris

I switched to target .NET standard 1.3 in later RCs (same as Dapper), which only supports .NET 4.6 or higher and .NET core. It'd be great to target lower versions too, but I hate wrestling with build systems or writing build scripts, which seems like it would be necessary from what I see in Dapper's repo. If you have a suggestion for how to do this easily I'm all ears! I'll mark this as an enhancement until I get to it or someone else contributes this.

I had the same issue, so I installed v1.0.0-RC1, but the Load extension method is missing in this version.

I've changed the latest release to target multiple .NEt frameworks and multiple .NET standards, including .NET 4.5.2.


Update Org-Mode icon

Hello!
I've recently submitted a simplified version of the Org icon to simple-icons in https://github.com/simple-icons/simple-icons/pull/4889 after revamping the website (https://orgmode.org) last year. I think that file-icons could also benefit from the simplified version.

This simpler version of the Org mode icon is ~1/3 the size of the icon currently used here, and visually separates the mane from the rest of the head.

Hey there, sorry for the torturous wait. This project's in an unofficial freeze at the moment while I figure out what the hell I'm doing with the project's pipeline. Merging new icons into the dev branch is a pain-in-the-arse, so I've been trying to avoid it when possible… 😀
As for the updated icon, I've cleaned up some redundant geometry and pushed the change to your branch. It also fixes an error that stops Adobe Illustrator from opening the file correctly (an arc-drawing command used a … 0 01 as coordinates, and Illustrator's SVG importer chokes on 01 (which is actually 0 1, not a zero-padded decimal 1).

This simpler version of the Org mode icon is ~1/3 the size of the icon currently used here

Just for the record, all of this repository's SVGs are saved with unrealistic levels of precision, because it's easier to optimise unnecessary detail than it is to add it once it's been lost. Tools like svgo and font generators will typically eliminate the exorbitant precision, anyway.

Cool! I thought I did a pretty good job reducing the number of control points, but I see you found a bit more that could be tweaked.
Thanks for taking a look at this :smiley:

I thought I did a pretty good job reducing the number of control points, but I see you found a bit more that could be tweaked.

You did. But almost every SVG I come across contains redundant geometry in some form or another: duplicate control points, unnecessary Bézier handles, unclosed paths, etc…
I don't expect contributors to be as neurotic as I am when it comes to this level of optimisation, however, hence the warning in the readme file. 😜


Major Rework

Hi,
this is a major rework of the CWT files.
Some caveats:

My goal is NOT to complete all CWTs. I just fix errors that I find when developing my own mod

Deprecated things are generally not removed
Completeness even for newly implemented effects/triggers may not be guarantueed
It should in general be an improvement but not the final version

I am using IntelliJ and the Paradox Language Support plugin by @DragonKnightOfBreeze

Changes may reflect specifics/bugs in that plugins CWT parser

I try to verify some things in VSCode and already found some bugs in the IntelliJ Plugin but not everything
https://github.com/DragonKnightOfBreeze/Paradox-Language-Support/issues/86
https://github.com/DragonKnightOfBreeze/Paradox-Language-Support/issues/85
https://github.com/DragonKnightOfBreeze/Paradox-Language-Support/issues/84

Verification with your VSCode plugin is still needed

This pull request should also implement everything from: #10
Regards,
Chris
EDIT: Rewrote Pull Request description to clarify some caveats with my changes.

@kaiser-chris Up to you! Larger requests means you don't have to try and get my or @CaesarVincens attention as frequently :)
Do ping me if something is ready and I haven't merged it in a while.

Ok then I will close this pull request for now and recreate it after I am 'finished'

There's a draft mode you could put it in so that others can still see it exists

Done

Many thanks for putting all this work in! I had started a bit on Vic3 back in '22, but never got much done. I'll see about putting my stuff up online in case any of it helps you.

Many thanks for putting all this work in! I had started a bit on Vic3 back in '22, but never got much done. I'll see about putting my stuff up online in case any of it helps you.

Now that I look back at it, I may have already merged in all my work. Well, a good chance to check again.

@tboby After a long hiatus this should be good to merge.
All caveats in the original description still apply but in general it should be an improvement.

Note that there are some useful options for pls, like ## file_extensions = xxx and ## color_type = xxx, you can find their usages in https://github.com/DragonKnightOfBreeze/cwtools-stellaris-config

@DragonKnightOfBreeze thank you I will look into that.

@DragonKnightOfBreeze @tboby does one of you know how to express references to defines?
I don't know whether other games use them like vic3 but there are defines with a Namespace and a Variable (configured in folder 'defines').
These are then referenced with the define:<Namespace>|<Variable Name>. This is done in a few vanilla locations but one notable location is in pop_types.
Below I have example code that at least allows me to link to a Namespace but I do not know how to configure the part after the pipe ( | ).
Is this a problem with the IntelliJ Plugin or a missing feature in cwt?
common/defines/00_graphics.txt (excerpt)
... (more code before)
NRoutes = {
	DIRTROAD_BRIDGES = { "dirtroad_bridge_01" }
	RAILROAD_1_BRIDGES = { "railroad_bridge_01" "railroad_bridge_02" }
	BRIDGE_SIZES = {
		"_small_mesh"
		"_medium_mesh"
		"_large_mesh"
		}
	ROUTE_ENTITIES_CUTOFF = 250				# zoom at which we hide all route entities
}

NPortrait = {
	GRACEFUL_AGING_START = 25	# After this age, added life expectancy will make a character look younger than they are; the effect grows the further past this point one goes
	GRACEFUL_AGING_END = 70		# This is the apparent age at which life expectancy stops slowing down visual aging (each year onwards ages you visually 1 year)
	MAX_AGE = 100.0				# At this age portraits will use the special age gene at full strength
	PORTRAIT_MALE_ADULT_AGE = 18	# The boy -> male portrait change happens at this age
	PORTRAIT_FEMALE_ADULT_AGE = 18	# The girl -> female portrait change happens at this age
}

NProvinceHighlight = {
	TEXTURE_WIDTH = 2048
	TEXTURE_HEIGHT = 1024
	# Province highlights use poisson disc sampling to create a gradient
	# Poisson disc allows for a wider sample are with fewer samples
	KERNEL_SCALE = 8	# Size of the sample area, in world space
	SAMPLE_COUNT = 16	# How many samples to use (max 16)
}
... (more code after)

common/pop_types/capitalists.txt (excerpt)
... (more code before)
	portrait_age = {
		integer_range = {
			min = define:NPortrait|GRACEFUL_AGING_START
			max = define:NPortrait|GRACEFUL_AGING_END
		}
	}
... (more code after)

common/defines.cwt
types = {
    type[define] = {
        path = "game/common/defines"
    }
}

define = {

}

links.cwt (Excerpt)
... (more code before)
	define = {
		desc = " Reference the value of a numeric define: define:Namespace|Name"
		from_data = yes
		data_source = <define>
		prefix = define:
		output_scope = value
		type = value
	}
... (more code after)

IDE Screenshots:

Seems like there should be a new data type $define_reference_expression to write related cwt configs,
and PLS should provide support for this and related features in future versions.
Just like database object expression which is newly supported by PLS.

Be better to make an issue for PLS in GitHub :)
It should be not very hard to implement support for this, but it still takes some time :(

@kaiser-chris okay


Does 'useFileTransport' work correctly?

I've used the 'useFileTransport' setting, but i receive empty mails permanently. What do you mean about this? (When i turning off the 'useFileTransport', my mailgun account is working fine)

Mailgun is not called when you set useFileTransport => true. Check the runtime/mail instead.

it looks like you misunderstand me. When i use 'useFileTransport' i see empty mails in the runtime directory (0 bytes, 0 lines). When i'm turning off the  'useFileTransport', my mailgun account is working fine.

Now I see... I think we need to implement this method https://github.com/yarcode/yii2-mailgun-mailer/blob/master/src/Message.php#L268

fixed in 1.1.3


Make wrap() work with integer types

I think wrap() in the helper functions fails in some corner cases when used with integer types.
Should it work with integer types? It's templated in such a way that you can certainly invoke it with ints, but it may not be intended for that. In any case, I have a fix, but I'm pushing some failing integer wrap tests first to see the CI fail.
If wrap() isn't meant to work with integer types, then should probably at least document it in the functions docstring,
or preferably use some clever template magic to make it not compile when Type is deduced to an integer type.
See the commit messages for more detail!

Coverage remained the same at 100.0% when pulling 78d6b998395c923f8891733d9757b941277ec55c on mortenfyhn:fix-wrap into 25c04553488bb86470592a1cdccac56979bf59bb on PX4:master.

Aight, I got this: https://godbolt.org/z/3YbzvE
I'm not super experienced with godbolt so I'm not sure I'm getting the comparison I need. Please let me know!
From what I can tell, my version invoked with floats runs 7 instructions more than the original, so it'll be a bit slower but not extremely much so. Do you agree? I still feel that maybe creating some specializations could be a good idea.

I made an example with wrap_pi: https://godbolt.org/z/svKsWf
The _new version has dmul instead of fmul, which will cause issues.
So this will need a specialization for integral types. Also, for integral types I don't think we'd want to do an 'invert and multiply' anyways, converting to floating point and back seems the wrong pattern because you will have imprecision at high values, which is fine for floats but for ints will be unexpected. Better to use the % operator for integers (and powers of 2 for the range when possible, for performance reasons).

By the way: I just found out about the -Wdouble-promotion compiler warning, which seems to warn about exactly this issue. Maybe adding it to the build would be a good idea? If double promotion is unwanted for the entire repository, that is.

I've split it into two functions now, with some funky business to make sure the right function is invoked for the right data types. I'm using <type_traits>, but that might not be acceptable in this repo?

Unfortunately PX4 doesn't have a lot of the more modern C++ stdlibs available on Nuttx, and <type_traits> is one of them (along with std::array, std::initializer_list etc, all of which should be fine in an embedded system). I think your best bet is to make the default call into an integer-optimized version, and have specializations for float and double, otherwise there are too many integer formats to specialize for.

Got it, sorry for the delay here.
I've reworked it now. I put the shared floating point implementation into a sub-namespace "detail" to avoid duplicating it. Is that in line with the style you prefer here?

Thanks for the merge!


DetectIdentifier obtain complete variable name

Add logic to enable detection of complete variable name (ex. contact.firstname)

Thank you for the PR. I only proposed a change in the signature.


Questions about training  process

Hi,
Thanks for your generous opening source of this briliant project!
I have two questions for the project:

Does pretrained model use uncertainty or not during training? Is this pretrained model the one which could reproduce 59.5 point-wise mean-IoU in the Table I of paper?

When I train the model on my self, I found that there is a serious overfitting problem.
The pictures below are my training loss and valid loss curve.
I want to ask why this problem occurs?
Do you also have this problem during training?

I am looking forward to your reply!

Hello @iris0329

No the pretrained model is not trained with the uncertainty. The uncertainty is applied after training following A General Framework for Uncertainty Estimation in Deep Learning

Could you give me more information about your training? I never encountered this type of issues, no.

Thanks for your prompt reply!

So that means, if I apply uncertainty on this pretrained model, I could get 59.5 point-wise mean-IoU in the Table I of paper?

The batch size is set to 32 and I used 8 blocks of TITAN X (Pascal) GPU. All the other Settings are the default Settings.
It looks very confusing

I retrained it, and it can be seen that there is a tendency of overfitting at EPOCH 55.
Thanks.

Yes, which was evaluated on the test set.

Does that tendency continues if it trains after 55 epochs?

Best,

Thank you
The answer is yes. Now It's nearly 100 epoch, you could see from the validation and training loss figure that overfitting is becoming serious

Ok I will check this as soon as possible!

Hello @iris0329! Sorry for the delay on this question. I had to go back to my logs to check how the submission training (and the other experiments went) to check our behaviour.
I mislead you earlier and we had a similar issue with an apparent overfitting. Also our baseline comparison (rangenet++) also shows this apparent sign when we trained it from scratch.
Again, sorry for the delay and misleading answers before, I didn't have in my mind a clear idea of our val_loss plots!

Sorry, I thought about this problem before, but forgot to update it here.
I think it is a problem caused by Cross-Entropy Loss.
Think about the Matrix_A before argmax function, its size is (h, w, class_num). After applying the argmax function on this Matrix_A, we got a new Matrixd_B and its size is (h, w, 1).
The increment IoU means that the Matrix_B becomes more accurate. However, the Cross-Entropy Loss is computed based on Matrix_A.
For example,

There are two pixels and ground truth is [2, 0]. At the beginning, Matrix_A is [[0.1, 0.2, 0.7], [0.1, 0.2, 0.7]], after applying the argmax function, we got the prediction [2, 2], 50% accuracy rate.

With the training process continuing,  the Matrix_A becomes to [[0.2, 0.3, 0.5], [0.5, 0.3, 0.2]] after applying the argmax function, the prediction is [2, 0], the loss will increase but the accuracy is higher.

So it seems, as the training progressed, there was a tendency for the predictions to average out across all categories. But I still don't know how to solve it. If anyone has a suggestion about it, I would be very grateful.


Add involution MCMC with automated Jacobian calculation

This pull request adds a version of involution MCMC (i.e. fully programmable reversible jump MCMC) that automates computation of the Jacobian determinant correction, unlike the Gen's involution MCMC, which does not automate the computation of the Jacobian correction (automated computation of the Jacobian correction was a feature early on but was removed to reduce maintenance burden and system complexity).
Very briefly, involution MCMC requires the user to specify a family of proposal distributions (represented as a generative whose first argument is a trace of the model), and a (deterministic) function that is an involution from tuples (t, u) to tuples (t', u'), where t and t' are choice maps produced by the model generative function, and u and u' are choice maps produced by the proposal generative function. This involution is composed from: (i) an involution on the discrete choices e.g. (t_{disc}, u_{disc}) to (t'_{disc}, u'_{disc}), and (ii) a family of bijections on the continuous choices, that is indexed by (t_{disc}, u_{disc}). It is this bijection whose Jacobian determinant is used to correct the MH acceptance probability.
Typically, the Jacobian is extremely sparse. This implementation automatically exploits this sparsity, to avoid filling in most entries in the Jacobian in most cases, and to reduce the complexity of the determinant calculation. Automatically computing the Jacobian determinant, and doing in an efficient way, is made possible by providing a DSL for users to specify the involution. The DSL makes reads and writes and copies involving the random choices in t, t', u, and u' explicit, so that the structure can be exploited. For example, copying the value of a random choice is equivalent to a read followed by a write, but using the copy language construct instead of a read followed by a write improves efficiency because an entire row / column of the Jacobian need not be computed.
Note that this feature is not yet documented. I will add documentation to this PR, hopefully soon, and before merging. I am also writing up math notes that describe how the implementation exploits sparsity structure to reduce the complexity of the Jacobian calculation and the Jacobian determinant calculation.
The PR includes four examples:

examples/coal/coal.jl -- An adaptation of the example from Green's original reversible jump MCMC paper.

examples/involution_mh_minimal_example.jl -- A minimal example.

examples/gp_structure/involution_mh.jl -- Gaussian process structure learning using a flat address space for the random choices that determine the covariance function

examples/gp_structure/involution_mh_tree.jl -- Gaussian process structure learning using a tree-structured address space for the random choices that determine the covariance function

@marcoct Would a check for whether an argument is a Float/Array of Floats be enough to determine which choices are continuous? Or do you think that would fail in some cases? I am wondering if @copy, @read, @write would be enough.

A convenience feature that might e useful to have eventually: checking whether an address exists in the proposal / model trace. You should always be able to figure out the same information by doing some computation on the choices that must exist, so this isn't urgent.

What's your thought on multivariate choices (e.g., sample a multivariate normal and multiply it by 2)?

@alex-lew I think that should be supported. I made a separate issue for it: https://github.com/probcomp/Gen/issues/230

@marcoct Would a check for whether an argument is a Float/Array of Floats be enough to determine which choices are continuous? Or do you think that would fail in some cases? I am wondering if @copy, @read, @write would be enough.

We could do that for read and write (there is already no distinction for copy), but I'm hesitant to tie the definition of discrete/continuous to particular Julia types, because it (i) seems like it could be brittle -- what if we want to expand support, and (ii) the choice may not be forced and obvious to users e.g. some users might assume that 'Real' is the type that we should use for this, (iii) it makes the implementation a little more complex. I guess I also like drawing the user's attention to the distinction between the two types of random choices, since they play distinct roles in the definition of the involution.
But we should discuss this more.  Want to open an issue for it?

@alex-lew Re automaticaliy detecting discrete / continuous, I don't want to couple this discrete / continuous distinction too tightly with specific Julia types. I would be more in favor of assembling a more independent way for choice maps to indicate whether a value is discrete or continuous.

A convenience feature that might be useful to have eventually: checking whether an address exists in the proposal / model trace. You should always be able to figure out the same information by doing some computation on the choices that must exist, so this isn't urgent.

@alex-lew That's very interesting. I like it. I'll add it to an issue.

@alex-lew @bzinberg Thanks for the great and detailed code reviews! I really appreciate it. I believe the only unresolved item is what to do about the proposal return value.

I thought more about it and it's important that we can read from the proposal return value in order to get implementations that have the right asymptotic scaling in some cases: In general we want to be able to rely on using precomputed values that are stored in the model trace (e.g. in the return value or other "auxiliary state"). If we don't have access to these values, then we will have to recompute them from scratch in the involution. Currently the proposal retval is the vehicle that allows this information to be accessible (because the proposal can read from the trace arbitrarily).

I think that in this case (and Gen overall) it is better to err on the side of leaving "escape hatches" that let the user do things, instead of making the system very restrictive. I'll add a clear warning that you should only rely on the proposal_retval if you know what you are doing (but with a more precise characterization of what that means).

Looks great!  Thanks @marcoct for your detailed responses to the code review, and thanks @alex-lew for your thorough review as well.

I think that in this case (and Gen overall) it is better to err on the side of leaving "escape hatches" that let the user do things that the system is unable to track or account for, instead of making the system very restrictive. I'll add a clear warning that you should only rely on the proposal_retval in the involution if you know what you are doing (but with a more precise characterization of what that means).

I think that's right.  Given your reasoning about why we need the ability to reuse computation from the proposal, I'm good with adding a "don't use this unless you know what you're doing" warning as suggested in https://github.com/probcomp/Gen/pull/216#issuecomment-608485573.  And then I think we're ready to merge!

* Do we want to implement the doc changes ("don't use proposal retval unless...") before merging?

Done

* Very minor, but I wonder if `@involution` is the right syntax, for two reasons: (a) involution functions that aren't "top-level" are not involutions in any sense, (b) even the top-level function is now an involution from implicit arguments to return value, not the actual things that are listed as arguments,  and (b) "involution" is a somewhat technical term. Maybe there is a way to emphasize that these "involutions" are essentially (the deterministic part) of proposal implementations? But I'm not sure what word would be better than `@involution`, so maybe that's something we can revisit later.

@alex-lew  Yeah, I agree about the issue. I'm not sure what the right word is. Since this feature, or something similar to it (without update), can be used in settings where it's not an involution (and where the previous model is different than the new model), perhaps the right name will emerge in that more general setting. I want to say @bijection could be better name for some more generalized version. My only reservation about that is that there is additional structure we are assuming here -- the fact that the input and output are tuples of choice maps (t, u) instead of just flat choice maps. If we generalize the DSL to read from a single choice map and write to a single choice map (with a special choice map implementation that is a pair choice map -- that distinguishes between two address namespaces e.g. :model and :proposal --- this is how I implemented this feature originally actually) then I think bijection could be an appropriate name.
Since we don't have a solution right now, I'll merge it as is and we can revisit as we understand the braoder design space better.


Properly validate RequestPriority parameter

Fixes #9992
Status
ready
Description
Make sure the RequestPriority spec parameter is properly validated, regardless of which state the workflow is.
For clarity: it must be of the integer type and be in the range of [0, 1e6]
Is it backward compatible (if not, which system it affects?)
Yes (well, we need to chase those requests with float value, otherwise an ACDC might fail to be created...)
Related PRs
none
External dependencies / deployment changes
none

Tests went fine!

@todor-ivanov sorry for bugging you again here. I didn't manage to reproduce the string type on my VM, neither via script, nor via Gui. So I made the change to simply check for the data type. Can you please have another look? Thanks

Thanks!


audio input

when do you think you will implement audio input?
thanx

To be honest, it's hard to say, but definitely as soon as possible!

Done!
Check out the v0.2.0 release!


[NixPkgs Search] Error when searching

Extension
https://www.raycast.com/aiotter/nixpkgs-search
Description
I am getting an error when attempting any search:
Could not perform search. Error: No such index [latest-40-nixos-unstable]
Reinstalling and installing the extension does not resolve the issue.
Steps To Reproduce

Type anything in the search box
See error message

Current Behaviour
Search returns an error.
Expected Behaviour
Search should not return an error.

duplicate of #7623

Closing as duplicate.


After trained the model, how to generate sql based on question and table info?

+1

+1

+1

+1

+1


chore: Moved to GitHub actions

Moving out of Circleci in favour of GitHub actions for the CI process

:tada: This PR is included in version 11.6.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Nano 33 BLE Integration

the Nano 33 BLE should be supported by the lab.

closed. Work is documented in issue #1023


Break undo if data snapshot is not changed.

Ⅰ. Describe what this PR did

Add DataCompareUtils
Add some test case.
Do not execute undo if the before data snapshot is equivalent to the after data snapshot.

Ⅱ. Does this pull request fix one issue?
Part of #1049

Codecov Report

Merging #1051 into develop will increase coverage by 0.35%.
The diff coverage is 84.84%.

@@              Coverage Diff              @@
##             develop    #1051      +/-   ##
=============================================
+ Coverage       38.5%   38.85%   +0.35%
- Complexity      1076     1110      +34
=============================================
  Files            220      221       +1
  Lines           8774     8838      +64
  Branches        1108     1132      +24
=============================================
+ Hits            3378     3434      +56
- Misses          4966     4967       +1
- Partials         430      437       +7

Impacted Files
Coverage Δ
Complexity Δ

...ain/java/io/seata/common/util/CollectionUtils.java
62.5% <100%> (+62.5%)
5 <5> (+5)
:arrow_up:

...seata/rm/datasource/undo/AbstractUndoExecutor.java
82.85% <25%> (-5.03%)
8 <4> (ø)

...rc/main/java/io/seata/common/util/StringUtils.java
12.5% <66.66%> (+4.92%)
10 <4> (+4)
:arrow_up:

.../java/io/seata/rm/datasource/DataCompareUtils.java
90.19% <90.19%> (ø)
24 <24> (?)

...o/seata/rm/datasource/sql/struct/TableRecords.java
38.59% <0%> (+1.75%)
9% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


Fix resizing issue with Add New Project wizard options dialog

Fix resizing issue with Add New Project wizard options dialog
This work item was migrated from CodePlex
CodePlex work item ID: '6861'
Assigned to: 'tfabraham'
Vote count: '0'

[UnknownUser@6/13/2010]
Resolved with changeset 47154.

[UnknownUser@2/21/2013]

[UnknownUser@5/16/2013]


feat: use custom tokio runtime to allow to customize number threads

Related issue (if exists)

Summary

Sometimes we want to run Rspack in a single thread for better debugging experience.

🤖 Generated by Copilot at 6b54d42
This pull request adds support for using the tokio runtime in the node_binding crate. It updates the utils module to spawn promises from futures using the runtime, and adds a new tokio_runtime module to initialize and access the runtime.

Walkthrough

🤖 Generated by Copilot at 6b54d42

Add a global tokio runtime for async tasks in Node.js (link, link)
Use the global tokio runtime to execute futures in Node.js promises (link, link)

Interesting, this is breaking Windows?

Interesting, this is breaking Windows?

Yes. I need to investigate it.

@hyf0 is this still needed?

Nope


Fix broken links, provide additional clarity

Suggested updates:
In step 1

I noticed that the Your products link is broken (at least for some users). It should point here: https://admin.microsoft.com/AdminPortal/Home#/subscriptions
Also mentions "to check ... how many active users", but it's difficult to get that information from Your products. I suggest either that we tell them to go to Users > Active users: https://admin.microsoft.com/AdminPortal/Home#/users

In step 2

Users > Active users is mentioned twice, but the link is broken (at least for some users). It should point here: https://admin.microsoft.com/AdminPortal/Home#/users

#sign-off

@microsoft-github-policy-service agree company="Microsoft"


segfault w/o account definition

Hi,
i just installed gcli in Debian and first thing i noticed is that e.g. gcli repos in an directory where it detects that it is in an github-repo a segfault occurs. Same if i try it anywhere with either gcli -t github/gitea/gitlab repos.
After adding a fitting config-entry it doesn't occur anymore but i think it would be beneficial to throw a warning message instead of the segfault in case of a missing [default?] account.
cb@asterix ~ % gcli version
gcli 2.0.0 (x86_64-pc-linux-gnu)
Using libcurl/8.4.0 GnuTLS/3.8.1 zlib/1.3 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.58.0 librtmp/2.3 OpenLDAP/2.5.13
Using vendored pdjson library
Report bugs at https://gitlab.com/herrhotzenplotz/gcli/.
Copyright 2021, 2022, 2023 Nico Sonack<EMAIL_ADDRESS>and contributors.
cb@asterix ~ % dpkg -l gcli |grep '^ii'
ii  gcli           2.0.0-1      amd64        Git Forge CLI

https://tracker.debian.org/pkg/gcli

This interesting, I think I've seen similar segfaults before - so this one might be related.
However you are absolutely right that it should print a warning message instead of segfaulting :-)

@crpb I pushed a fix into a branch fix/gh-118. Can you please check whether it fixes your issue and if so please tell me if I can merge it.

@herrhotzenplotz first i couldn't build it but i got a little help from @jwilk to make it work with this change in src/github/issues.c
 #include <templates/github/issues.h>

+#define __unused __attribute__((unused))
+

and after another look at the current 55dd6d626923240ffacacff9aada53dc84ea5c2e it also worked by applying the fix.
Anyhow, I couldn't reproduce the segfault anymore with the local build. Thank you.
@GyrosGeier you might wanna put in a patch for now for us Debianists?


[Event Request] Codeunit 90 Purch.-Post - OnUpdatePostingNosOnInvoice

Hi, would it be possible to get an event OnUpdatePostingNosOnInvoice in codeunit 90, procedure UpdatePostingNos, like this :
if Invoice and ("Posting No." = '') then begin
                OnUpdatePostingNosOnInvoice(PurchHeader, IsHandled);
                if IsHandled then exit;

                if ("No. Series" <> '') or
                   ("Document Type" in ["Document Type"::Order, "Document Type"::"Return Order"])
                then begin
                    if "Document Type" in ["Document Type"::"Return Order"] then
                        ResetPostingNoSeriesFromSetup("Posting No. Series", PurchSetup."Posted Credit Memo Nos.")
                    else
                        ResetPostingNoSeriesFromSetup("Posting No. Series", PurchSetup."Posted Invoice Nos.");
                    TestField("Posting No. Series");
                end;
                if ("No. Series" <> "Posting No. Series") or
                   ("Document Type" in ["Document Type"::Order, "Document Type"::"Return Order"])
                then begin
                    if not PreviewMode then begin
                        IsHandled := false;
                        OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(PurchHeader, IsHandled);
                        if not IsHandled then
                            "Posting No." := NoSeriesMgt.GetNextNo("Posting No. Series", "Posting Date", true);
                        ModifyHeader := true;
                    end else
                        "Posting No." := PostingPreviewNoTok;
                end;

                // Check for posting conflicts.
                if not PreviewMode then
                    if "Document Type" in ["Document Type"::Order, "Document Type"::Invoice] then begin
                        if PurchInvHeader.Get("Posting No.") then
                            Error(PurchInvHeaderConflictErr, "Posting No.");
                    end else
                        if PurchCrMemoHeader.Get("Posting No.") then
                            Error(PurchCrMemoHeaderConflictErr, "Posting No.");
            end;

    [IntegrationEvent(false, false)]
    local procedure OnUpdatePostingNosOnInvoice(var PurchHeader: Record "Purchase Header"; IsHandled : Boolean)
    begin
    end;

?
Thanks

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


[Bug]: python flink runner is not compatible with Azure blob file system in Java

What happened?

Python flink_runner starts beam flink job-server with these parameters:

  def java_arguments(
      self, job_port, artifact_port, expansion_port, artifacts_dir):
    return [
        '--flink-master',
        self._master_url,
        '--artifacts-dir',
        artifacts_dir,
        '--job-port',
        job_port,
        '--artifact-port',
        artifact_port,
        '--expansion-port',
        expansion_port
    ]

When artifacts_dir above is path to a container in Azure blob storage (e.g. "azfs://storage-account/container), the AzureBlobStoreFileSystem attempts to create BlobServiceClient and fails with:

I1206 02:34:29.021346<PHONE_NUMBER>59008 subprocess_server.py:126] Caused by: java.lang.IllegalArgumentException: Invalid URL format. URL: null
I1206 02:34:29.021379<PHONE_NUMBER>59008 subprocess_server.py:126] 	at com.azure.storage.blob.BlobUrlParts.parse(BlobUrlParts.java:349)
I1206 02:34:29.021412<PHONE_NUMBER>59008 subprocess_server.py:126] 	at com.azure.storage.blob.implementation.util.BuilderHelper.httpsValidation(BuilderHelper.java:170)
I1206 02:34:29.021589<PHONE_NUMBER>59008 subprocess_server.py:126] 	at com.azure.storage.blob.implementation.util.BuilderHelper.buildPipeline(BuilderHelper.java:106)
I1206 02:34:29.024176<PHONE_NUMBER>59008 subprocess_server.py:126] 	at com.azure.storage.blob.BlobServiceClientBuilder.buildAsyncClient(BlobServiceClientBuilder.java:113)
I1206 02:34:29.024224<PHONE_NUMBER>59008 subprocess_server.py:126] 	at com.azure.storage.blob.BlobServiceClientBuilder.buildClient(BlobServiceClientBuilder.java:89)
I1206 02:34:29.024258<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:167)
I1206 02:34:29.024288<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.sdk.io.azure.blobstore.AzureBlobStoreFileSystem.create(AzureBlobStoreFileSystem.java:271)
I1206 02:34:29.024316<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.sdk.io.azure.blobstore.AzureBlobStoreFileSystem.create(AzureBlobStoreFileSystem.java:68)
I1206 02:34:29.024344<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.sdk.io.FileSystems.create(FileSystems.java:243)
I1206 02:34:29.024372<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.sdk.io.FileSystems.create(FileSystems.java:230)
I1206 02:34:29.024399<PHONE_NUMBER>59008 subprocess_server.py:126] 	at org.apache.beam.runners.fnexecution.artifact.ArtifactStagingService$ArtifactDestination.fromFile(ArtifactStagingService.java:140)

The null reference exception occurs because the endpoint to blob service is not configured. It is expected to be passed via "blob_service_endpoint" option. Neither the option is passed from flink_runner.py nor it is inferred from the "azfs://storage-account/container-name" file path in AzureBlobStoreFileSystem.java.
Issue Priority
Priority: 1
Issue Component
Component: beam-community

@chamikaramj didn't we just see another report of this? We can dupe this and give the best advice for users to have access to Azure blob store in the artifact staging for portable runners.

Is this a bug or a feature request ? I'm not sure if we ever supported using arbitrary file-systems as the "artifacts-dir".

Please treat it either way. We didn't find a way to use python beam with
flink on azure and other clouds is not an option for other reasons
On Tue, Dec 13, 2022, 5:57 PM Chamikara Jayalath @.***>
wrote:

Is this a bug or a feature request ? I'm not sure if we ever supported
using arbitrary file-systems as the "artifacts-dir".
—
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/issues/24537#issuecomment-1350193934, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A2QA5NNLDLWHVWST5MSVU4DWNELRDANCNFSM6AAAAAASU7Y6C4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Port 201004

Port:

Main 34230/34229
Testnet 44230/44229
Regtest 45340/45339
Signet: 54230/54229

2020-10-04T13:22:33Z Leaving InitialBlockDownload (latching to false)
2020-10-04T13:22:34Z Loading addresses from DNS seed seed.btc.petertodd.org
2020-10-04T13:22:34Z Loading addresses from DNS seed seed.bitcoin.jonasschnelli.ch
2020-10-04T13:22:34Z Loading addresses from DNS seed seed.bitcoin.wiz.biz
2020-10-04T13:22:35Z Loading addresses from DNS seed seed.bitcoin.sipa.be
2020-10-04T13:22:36Z Loading addresses from DNS seed dnsseed.bluematt.me
2020-10-04T13:22:36Z Loading addresses from DNS seed dnsseed.emzy.de
2020-10-04T13:22:37Z Loading addresses from DNS seed seed.bitcoin.sprovoost.nl
2020-10-04T13:22:38Z Loading addresses from DNS seed seed.bitcoinstats.com
2020-10-04T13:22:38Z 277 addresses found from DNS seeds
2020-10-04T13:22:38Z dnsseed thread exit

working as expected.


use Uint8ClampedArray in canvas ImageData

I was having a problem with data field in ImageData class because its defined as Array<number> instead of Uint8ClampedArray. With Array<number> I can't use various methods defined on the typed array.
Error example
imageData.data.set(buffer);
               ^^^ property `set`. Property not found in
imageData.data.set(buffer);
^^^^^^^^^^^^^^^^^^^^^^^^^^ Array

reference: https://developer.mozilla.org/en-US/docs/Web/API/ImageData

@jansedivy Thanks Jan!
@facebook-github-bot import

Thanks for importing. If you are an FB employee go to Phabricator to review.


Profile set incorrectly when displaying a reply to a post in a user's feed

<EMAIL_ADDRESS>It's showing the user who's url we're loading's profile instead of the original poster.
And when other people who aren't me reply to a post, it doesn't show any identity all to say who  those comments are from

It's showing the user who's url we're loading's profile instead of the original poster.

[ ] has correct profile on root post


added solhint tool for solidity

Added 'solhint' as another linter for Solidity

Nice! Thanks @fullkomnun. 📈


Hackerrank problems

Add Hackerrank problems with the solution code in respective languages.

Can I add general problems which are of beginner levels (not on data-structures and algorithms)

Can I add general problems which are of beginner levels (not on data-structures and algorithms)

Hey @kmryashasvi , Which type of questions you want add?

Hey @kmryashasvi , Which type of questions you want add?

Easy  level questions of individual "practice" sections of different languages.
message me on instagram @sqlyash to know more.
@Nivedita967

Easy  level questions of individual "practice" sections of different languages.
message me on instagram @sqlyash to know more.
@Nivedita967

@kmryashasvi Sure, go for it.

@kmryashasvi Sure, go for it.

@kmryashasvi Are you still working on it?

@kmryashasvi Are you still working on it?

@Nivedita967
I am in btech 1st year
I have my exams on 27th to 30th january
I will surely try to add something after that

@Nivedita967
I am in btech 1st year
I have my exams on 27th to 30th january
I will surely try to add something after that

No Problem @kmryashasvi

No Problem @kmryashasvi


Setting  source with string concatenation fails ('Requiring unknown module...')

I've seen this mentioned before: https://github.com/facebook/react-native/issues/282#issuecomment-96908438
I'm trying to include an image from within the project, the name of which is dependant on variables.
var imageName = `image!${var1}_of_${var2}`
contents = (
  <Image source={require(imageName)} style={styles.card} onPress={this._onPress} />
)

The above fails with the usual:

Requiring unknown module "image!somwething_for_somethingelse". If you are sure the module is there, try restarting the packager.

These also fail in the same manner:
<Image source={require(image!${var1}of${var2})}>
<Image source={require('image!' + {var1} + '_of_' + {var2})} >
This works, no problem:
<Image source={require('image!somwething_for_somethingelse')}>
I've also tried

Stop and re-build Xcode project
Restarting the packager

Right, there's an easy solution here, I don't think this is actually a bug.
source={{ uri: imageName }}

We intentionally don't support dynamically generated image names because it makes it very hard to manage assets over time, just like how you wouldn't want to do
var MyComponent = require('./' + libName + typeOfComponent);
or something like that.  Dynamic image name generation like this also won't work with the new dynamic asset managing system we're rolling out which let's you add and update assets on the fly with just cmd+R (no more need to add to Xcode and recompile).

Question regarding the suggestion of @gavinsmith:
I was not aware you can do this for static image resources.  Would very much be interested how i can bypass this stupid check

@matejkramny
The images need to be able to statically analyzed, so that the packager could resolve them and package in the app automatically. Hence dynamic strings with require syntax is not possible.
It's the same as bundling JavaScript with browserify or webpack. Your JavaScript filenames need to be statically analyzed and bundled.
If you want to use dynamic strings, you sure can. But you've to manually package up the assets. You can use the following syntax.
<Image source={{ uri: "image" + "name" }} />

@satya164 I am not talking about images here.
React-native is using node.js, so i'm organising my code a bit like i do on server apps.
directory tree:
.
├── commonStyles.js
├── img
│   └── logo.png
├── network.js
├── storage.js
└── views
    ├── index.js
    ├── loading.js
    ├── login.js
    ├── profile.js

views/index.js
[
  'loading',
  'login',
  'profile',
].forEach((file) => {
  exports[file] = require('./' + file);
});

but have instead got to do:
exports.loading = require('./loading');
exports.login = require('./login');
exports.profile = require('./profile');

I am doing this so that whenever I require('./views') i can reference any component without extra requires.

@matejkramny No, React Native doesn't use NodeJS.
If you've worked with client side apps and bundling JavaScript with webpack or browserify, that's how it works. The JavaScript files need to be statically analyzed in order to be bundled. You cannot use dynamic strings.

I see, got a bit confused as its got node_modules, require and all that.
Thanks for explaining

Hey guys, I'm trying to use the manual versions of this using source={{uri: "imagename"}} but it's not finding my files that in the same directory as the component rendering them.. How should my files be organized/ where should they be in order for this to work?

@naji247 You've to put the files under the res/drawable like you'd add images in Android - http://www.dummies.com/how-to/content/how-to-add-an-image-to-your-android-application.html

if (post.tonality < 5) {
Tonality =  require('./res/bad-org.png');
}else if (post.tonality > 5){
Tonality = require('./res/good-org.png');
}else{
Tonality = require('./res/center-org.png');
}
return (
<TouchableHighlight onPress={() => this.selectArticle(post.id, post)}>

        <View style={styles.bottom}>

           <Image
            style={styles.thumb}
            source={Tonality}
          />
        </View>

    </View>
  </TouchableHighlight>
);

@satya164  but how to statically analyzed? There's no  res/drawable directort

Please dont tell me I have to do
switch (color) {
case 'yellow':
<Image source={require('./img/yellow.png')} />
case 'blue:
<Image source={require('./img/blue.png')} />
}
??
That'd be mental.

@nollydeng The folder drawable must be created under the already existing android/app/src/main/res. Add a file such as
android/app/src/main/res/drawable/myImage.png and reference it in code as
<Image source={{uri: "myImage"}} />

@aicioara But what about iOS?

@dasmikko I believe it should be similar, but I don't have an Apple device to test, so don't take my word for it

@dasmikko For iOS you need to include them as an asset, eg by placing them in your project much the same as you would a custom font or any other file. From that point on you can refer to the image by its exact filename (for iOS, including the extension, for Android, without).
Usage
So your image tag could be generically used as follows:
import { Platform, Image } from 'react-native

// ...

// render fn returns:
<Image source={{ uri: `filename${Platform.OS === 'ios' ? '.jpg' : ''}` }} />

For your convenience it might be worth making a quick wrapper around Image, call it something like ManuallyBundledImage (bad name, I know), and use that instead for the images you include manually.
Pixel density
iOS
iOS will automatically use @2x and @3x variants if you append that to their filenames:
// images to add to Xcode:
filename.jpg
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Android
For android, you can use variants for pixel densities by placing ldpi, mdpi, hdpi, xhdpi, etc variants in the proper folders as follows:
android/app/src/main/res/drawable/filename.jpg // default fallback image
android/app/src/main/res/drawable-ldpi/filename.jpg // different resolution
... // other dpi variants
android/app/src/main/res/drawable-xxxhdpi/filename.jpg // different resolution

Thats not really multiplatform solution. Is there any possible library or plugin which solves this for me?

same problem. how could I concat my variable to the image path... Is there any other solution?

Same issue as above. If React Native is designed this way, then how do you handle a situation where you do an API call and render a local image based on what you get back?

You must enumerate the local images, like
const IMAGES = {
  image1: require('../image1'), // statically analyzed
  image2: require('../image2'), // statically analyzed
}

getImage(num: number) { // dynamically invoked
  return IMAGES['image' + num];
}

@sahrens, thanks! This worked perfectly for me.
In my component, I imported my equivalent of your IMAGES and used it in my Image element:
<Image source={IMAGES[image.key]} />

@sahrens  what if we have unknown number of images,, it can be 100 or 1000, we cant known the # of images at build time...

@vvavepacket Not sure what you use case would look like, but you might find the require-all module useful

If you don't know how many there are, then they can't be local static assets installed with the APK. At the very least, you can codegen a file with all the requires. If you are loading images off the network, then just set the source uri property like normal.

For now I'm defining a thumbnails object in a constants file:
export const thumbnails = {
  'orange'  : require('../assets/thumb-orange.png'),
  'blue'    : require('../assets/thumb-blue.png'),
  'teal'    : require('../assets/thumb-teal.png')
}

Then I import that object into my component. During the render() call, I'm doing:
const thumbnail = thumbnails[this.props.color]
<Image source={thumbnail} />

The error message "Unknown named module" is totally misleading!!! For me this error message is a bug.
Please add this to docs at https://facebook.github.io/react-native/docs/image.html
An Explanation with example like the following one on stack overflow and @satya164 's good explanation about the static analysis for packaging requirement + best practise
https://stackoverflow.com/questions/38776713/react-native-image-component-requiring-unknown-module
It's not something you would expect to happen (I haven't seen 32 and 56 thumbs down very often). But you have a perfect reason for doing it like this. So please don't let the people in the dark - this issue has been opened mid 2015 and is still visited ;)

@RobIsHere Have you considered tackling this documentation issue yourself by submitting a PR? :-)

No. For me the best solution would be fixing the error message. "this error message is a bug". Probably someone who knows this code of Image source could do it in minutes. Docs is only plan B ;)

@sahrens I just wanted to give you a shout out and tell you that you are a gentleman and a scholar. Those who came here later in 2017 with this issue, that solution worked immediately for me.

Got a working solution, though not recommended for large images, works perfectly for (a lot of)small images.
Steps:

Convert the icon(s) to base64 string(s).
Create a JSON file with filename as the keys and the base64 strings as values.
(You can also store them to a local database)

e.g.
ImageData.json
{
"icon1": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQ.......==",
"icon2": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQ.......=="

}
3.Import the json file to the place where you require the images dynamically.
e.g.
const imageData = require("./images/ImageData.json")

4: Get/generate the key/filename at runtime. and get the image source.
e.g.
const imageSrc = imageData[keyname]

5: Generate a image dynamically at runtime.
e.g.
<Image style={{ width: 70, height: 70, resizeMode: Image.resizeMode.contain }} source={ uri: imageSrc } />

Done..
Extra..
Written a helper python script to automate the json file creation.
import base64
import os

directory = os.fsencode('.')

with open('ImagesData.json', 'wb') as jsonFile:
    jsonFile.write(bytes('{', 'utf-8'))

    written = False

    for file in os.listdir(directory):
        filename = os.fsdecode(file)

        if filename.endswith('.png'):
            with open(filename, "rb") as image_file:
                if written:
                    jsonFile.write(bytes(',\n','utf-8'))
                encoded_string = base64.b64encode(image_file.read())
                jsonFile.write(bytes(('"' +filename+ '":'), 'utf-8'))
                jsonFile.write(bytes('"data:image/png;base64,', 'utf-8') + encoded_string + bytes('"', 'utf-8'))
                written = True

    jsonFile.write(bytes('}', 'utf-8'))

Copy the script to the image folder and run the script (requires python 3.6).
A json file will the created with image name as key and base64 string as values.
Copy the file to project and use (You can delete the images after that).
Use the json file as mentioned above.

I got working solution for this it may be helpfull
Just put the images URI or file location in array like this
  Nav_items:[{sourcess:require('../icons/s.png'),names:'Home'},
            {sourcess:require('../icons/s.png'),names:'Deals'},{sourcess:require('../icons/s.png'),names:'fashion'},
            {**sourcess:require('../icons/s.png')**,names:'mobile & accessories'},
            {sourcess:require('../icons/s.png'),names:'kitchen and dining'},
            {sourcess:require('../icons/s.png'),names:'Home,tools & decor'},
            {sourcess:require('../icons/s.png'),names:'sports & fitness'},
            {sourcess:require('../icons/s.png'),names:'computer & software'}
            ,{sourcess:require('../icons/s.png'),names:'Baby & toys'},
            {sourcess:require('../icons/s.png'),names:'Perfumes & Beauty'},
            {sourcess:require('../icons/s.png'),names:'CAMERAS'},
            {sourcess:require('../icons/s.png'),names:'Track order'}
            ,{sourcess:require('../icons/s.png'),names:'my account'}
            ,{sourcess:'../icons/s.png',names:'new feed'}
        ,{sourcess:require('../icons/s.png'),names:'wishlist'}],

Then refer the image as like
<List dataArray={this.state.Nav_itemss}
            renderRow={(item) =>
              <ListItem>
                  <View style={{flexDirection:'row'}}>
                  **<Image style={{width:35,height:25}}
                  resizeMode="center"
                  source={item.sourcess}/>**
                <Text>{item.names}</Text>
                    </View>
              </ListItem>
            }>
          </List>

I am using a list to feed my navigation drawer item its working fine for me

@sahrens Good idea! Thank you!

I attempted to use require statements inside a JSON file but this fails. Converting the JSON to a .js file and formatting it as above is the workaround I've now used.
https://stackoverflow.com/questions/51370371/dynamic-local-images-in-expo


MAINT: Rename SpecificAssets to StaticAssets.

This better reflects the intended usage of accepting a fixed set of
predetermined assets.

Changes Unknown when pulling 1b9b3c1a290b55d6ee7dd1c3cd7f4d052cdcc384 on rename-specific-assets into ** on master**.


After Eviction, lvmigrate is missing Target Nodes Suggested

kubectl drain k8s-node1 --ignore-daemonsets=true
[root@k8s-master ~]# kubectl describe  lvmigrate evictor-pvc-1630a4a5-d83c-4562-8ad9-6e9498a05e3f
Name:         evictor-pvc-1630a4a5-d83c-4562-8ad9-6e9498a05e3f
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  hwameistor.io/v1alpha1
Kind:         LocalVolumeMigrate
Metadata:
  Creation Timestamp:  2023-12-20T05:59:22Z
  Finalizers:
    hwameistor.io/eviction-protect
  Generation:        1
  Resource Version:  318317
  UID:               82c782da-940f-498a-914d-7068023db0de
Spec:
  Abort:             false
  Migrate All Vols:  true
  Source Node:       k8s-node1
  Target Nodes Suggested:
  Volume Name:  pvc-1630a4a5-d83c-4562-8ad9-6e9498a05e3f
Events:         <none>

Events:
  Type     Reason            Age                  From                  Message
  ----     ------            ----                 ----                  -------
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 2 not right node. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  6m16s (x7 over 14m)  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 3 lvm is being migrated. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 3 lvm is being migrated. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  6m16s (x6 over 14m)  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 3 lvm is being migrated. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.
  Warning  FailedScheduling  14m                  hwameistor-scheduler  0/3 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/unschedulable: }, 1 node(s) were unschedulable, 3 lvm is being migrated. preemption: 0/3 nodes are available: 1 Preemption is not helpful for scheduling, 2 No preemption victims found for incoming pod.

[root@k8s-node1 ~]# drbdadm status
pvc-1630a4a5-d83c-4562-8ad9-6e9498a05e3f role:Secondary
  disk:UpToDate

lvmigrate missing Target Nodes Suggested is a reasonable situation. Eviction creates a lvmigrate with an empty value of  Target Nodes Suggested. Although the .Status.TargetNode is specified, the Target Nodes Suggested value still keep an empty value. Maybe this problem is why lvmigrate failed?

fixed ，this issue can be closed


Add LUT for cv_8u cv_8s cv_16u and cv_16s

Releated:

#44
#55

Currently only implemented for CV_8U, CV_8S, CV_16U and CV_16S, as for CV_32S, $2^{32}=4294967296$, it seems opencv can't create a Mat with such a large amount of columns, so need more efforts.

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

Project coverage is 88.65%. Comparing base (8deb960) to head (4fbbadb).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #57   +/-   ##
=======================================
  Coverage   88.64%   88.65%
=======================================
  Files          34       34
  Lines        4774     4777    +3
=======================================
+ Hits         4232     4235    +3
  Misses        542      542

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


Fix broken tests

A couple of our consensus genome tests were not running what was expected, the changes to the tests were much smaller than I thought they would be.

Hm is the notebook failure a "random" error?
Ah, no, but the notebook failure should have been addressed in this commit: https://github.com/chanzuckerberg/idseq-workflows/commit/293655d0465645b42cfe59fdb7a2e2b72eb4d93c


新しい言語のバージョンに対応

atcderの言語アップデートに伴い提出できなくなった言語について、修正しました。

Codecov Report

Merging #196 into master will decrease coverage by 3.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
- Coverage   89.33%   85.71%   -3.62%
==========================================
  Files          54       57       +3
  Lines        2738     3158     +420
==========================================
+ Hits         2446     2707     +261
- Misses        292      451     +159

Impacted Files
Coverage Δ

atcodertools/common/language.py
94.64% <100.00%> (-2.58%)
:arrow_down:

atcodertools/tools/envgen.py
43.47% <0.00%> (-38.01%)
:arrow_down:

atcodertools/fileutils/create_contest_file.py
71.42% <0.00%> (-28.58%)
:arrow_down:

atcodertools/tools/templates/__init__.py
83.33% <0.00%> (-16.67%)
:arrow_down:

atcodertools/executils/run_program.py
69.65% <0.00%> (-13.68%)
:arrow_down:

atcodertools/client/models/problem.py
93.75% <0.00%> (-6.25%)
:arrow_down:

...s/fmtprediction/models/format_prediction_result.py
94.73% <0.00%> (-5.27%)
:arrow_down:

atcodertools/tools/tester.py
83.40% <0.00%> (-2.23%)
:arrow_down:

atcodertools/client/models/problem_content.py
93.25% <0.00%> (-1.98%)
:arrow_down:

... and 16 more

Continue to review full report at Codecov.

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


Move Dask Client configuration to Component class and use multi-GPU in embed_images component

It doesn't really make sense to let the user configure the Dask client used by a component, since this is specific to the component implementation. I therefore moved it to the Component class with a default implementation of the Dask LocalCluster. Note that due to a bug the LocalCluster was not yet used as default. This therefore changes the default for all components, which were using the threaded scheduler before.
One downside to the current implementation is that we require the component developer to call super().__init__() in their __init__ method. This is best practice though and highlighted by IDEs.

No explicit tests ?
Do we need to update the docs ?

No explicit tests ?

Do you have a proposal for a useful test scenario?

Do we need to update the docs ?

I'll add something indeed.

@mrchtr with this change we are setting the LocalCluster as default for all components.

@mrchtr with this change we are setting the LocalCluster as default for all components.

Ah my bad, nvm


Removed class Crawler breaks @link tag in class PartitionManager

In PR 1741, the commit 3ef48d5 removed the class org.eclipse.dataspaceconnector.catalog.spi.Crawler. In the source file extensions/catalog/federated-catalog-spi/src/main/java/org/eclipse/dataspaceconnector/catalog/spi/PartitionManager.java, it is being referenced via {@link Crawler}. This breaks the regular build via gradlew publishToMavenLocal -Pskip.signing=true with the error message:

DataSpaceConnector/extensions/catalog/federated-catalog-spi/src/main/java/org/eclipse/dataspaceconnector/catalog/spi/PartitionManager.java:22: error: reference not found
* would be to dispatch {@link Crawler} objects to gather catalogs from other connectors.

Note: There is another reference to this class in the class CrawlerErrorHandler.

Was fixed by #1777


MTK phones with MT6855 chipset do not support handtrackinggpu

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
mediapipe v0.10.0 official Docker on Windows 11 WSL2
Mobile device if the issue happens on mobile device
Moto g73 5G, and other Android Phones with MTK MT6855 chipset, officially named "Dimensity 7020" "天玑7020"
Browser and version if the issue happens on browser
No response
Programming Language and version
Java
MediaPipe version
0.10.0
Bazel version
6.1.1
Solution
HandTracking, HandDetection
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Follow the official doc to build the handtrackinggpu app and install it to Moto g73 5G, grant the necessary permission, I put my hand in front of the phone screen. Now all I can see is a camera preview of the original hand, with no hand landmarks or frames of the hand on it.

Describe the expected behaviour
There should be hand landmarks on the phone screen.

Standalone code/steps you may have used to try to get what you need
1. Follow the installation doc from here: Installing using Docker (https://developers.google.com/mediapipe/framework/getting_started/install#installing_using_docker)

2. The build command is:
bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu

3. After the build is completed, install the handtrackinggpu.apk on an Android device (Moto g73 5G)

4. open the handtrackinggpu app on the phone and grant the necessary permission, then check the behavior

Other info / Complete Logs
I tested the app on 2 Android phones with the MT6855 chipset, both failed to show the hand landmarks.
I tested the app on Qcom and other MTK phones, they can show the hand landmarks.

Hi @kuaashish
After some more digging, I found out that the difference with a normal phone is::
https://github.com/google/mediapipe/blob/d3f98334bfe533a57ec2c2fa85294c21e25fe0af/mediapipe/calculators/tensor/tensors_to_detections_calculator.cc#L787
In the TensorsToDetectionsCalculator::ConvertToDetections() method,  all detection_scores are below 0.01 even when the hand is in front of the screen.
I have no idea about how to proceed to analyze this problem. What do you recommend?
Thank you！

Hello @jiuqiant,
Please look into this issue. Thank you!!

Hi,
This is most likely caused by an issue in Imagination's libGLES, which ships with MT6855 devices. It sounds like the glDispatchCompute calls in TensorsToDetectionsCalculator::ProcessGPU aren't being correctly waited for by the driver.
We think this is happening because Mediapipe relies on glFenceSync/glClientWaitSync to wait for the compute shader to finish. Our driver doesn't correctly handle synchronisation in this case. This is a known issue that will be fixed in the next version (23.2).
As a workaround, I would suggest either calling glFinish right after the second glDispatchCompute call, or making sure the glMapBufferRange path is used in Tensor::GetCpuReadView. If neither of those help, I would try calling glFinish after every glDispatchCompute call the library does, to narrow down which ones are affected by the issue.

MTK patch verified to work.
I think the issue can be closed.


Feature: Generated file name from instanceName

Describe the PR
Feature: Generated file name from instanceName

@Ferrany1, is this change related to any open issues?

@ubogdan no, do I need to create one?


Enhance Technical information related to tracks

Is it possible to enhance the display above by removing the (meaningless) VBR data and replacing it with something more useful e.g. showing bit depth and sample rate of the file alongside file type?
Seems the data is readily available to Material Skin:

Only samplesize seems to be missing. I've added this for 3.1.0


Serving DLLs fails

I am trying to use WebView with a Blazor WASM website, but it fails at serving DLLs giving a 404, all other resources load correctly. I would assume it's a problem with mimetypes?
Thank you

@Fredolx Could you provide a little more informatiton about your setup? Ideally a link to the repository or a way for us to reproduce it? If I am not mistaken, the DLLs need to be located next to your .exe file.

This isn't a problem with webview as far as I can tell, so I'm closing this issue. If it is indeed a webview bug, please reopen.


Problem on detecting changes.

Hi there,
I have this warning running the action.

I cloned your action internally to my organization; otherwise, I wasn't allowed to run it.
I don't get why it is still listing all the files added in the first commit and not picking the last commits.
Any ideas?

@sonomirco can you post here a relevant part of your workflow? Which event triggers it and the paths-filter step?


Formatter splits comments onto next line

Type: Bug
Issue Description
If your comment makes the line too long, it is formatted onto 2 separate lines. When you are using // for the comment, it just makes the text live code as it is not on the same line anymore.
Steps to Reproduce
Make line long enough to format, with comment at the end
Expected Behavior
Do not format comments
Actual Behavior
Splits comment creating errors in the code
Logs

C# log
Post the output from Output-->C# here
C# LSP Trace Logs
Post the output from Output-->C# LSP Trace Logs here.   How long does a line have to be to be considered too long?

Indeed I wouldn't expect roslyn to be splitting this.  Would you mind sharing a before/after snippet or gif of the behavior?

My current assumption is that this is occurring in a razor file (.razor or .cshtml). VS Code has a html.format.wrapLineLength setting for the html formatter which runs even in C# code "blocks".
@code {
    // This comment is in a razor file code section and is really long. In fact it is longer that the 120 character `html.format.wrapLineLength` setting that is the VS Code default.
    private bool collapseNavMenu = true;

    private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

    private void ToggleNavMenu()
    {
        collapseNavMenu = !collapseNavMenu;
    }
}

You are exactly right, is in a .razor file. Thanks for looking into it, I will work round it

Tagging @davidwengier in case there is anything that can be done from the Razor side to make this better.

Have definitely seen this before, and the wrapLineLength setting should work, but you'd have to change it for all Html files. There is no way I know of to call out just Html files produced from Razor documents. That said, the way this manifests in Visual Studio is that people report that Razor formatting is not working, as we detect it and reject the format operation as a whole. I suspect the wrapping of the comment is a better user experience, as at least people can see what is going on and correct it. If format on save is enabled though, perhaps not.
This will be fixed eventually with https://github.com/dotnet/razor/issues/7564

We could try talking the VS Code team into making the html formatting settings scoped as "language-overridable" instead of "resource".


Add to Homebrew

It'd be fantastic if this were added to Homebrew.

Hey Carl!
Thanks for the feature request. It's always nice if it's easier for users to install a tool. Unfortunately, as I don't use Homebrew myself, and I'm very busy with other projects (among other things), I don't have the time to figure out how it works and support it in the future. It's also not hard to install multi-git-status in its current form, I believe.
So I'm afraid I'm going to have to decline this feature request, but thank you for suggesting it!

Feel free to use this Formula if you want.
https://github.com/mikelorant/homebrew-custom/blob/master/Formula/multi-git-status.rb


5920: Expand password keyspace, refactor

I don't think we have any minimum requirements for user-selected passwords and I think a goal of this functionality was to improve the generation of new passwords without changing the requirements for existing ones in a way that might invalidate them. We can talk about also setting more stringent requirements for user-selected passwords but I think that would be its own issue.

okay, that makes sense.