text:
Handle multi-queries optimization

Hello,
I just saw this repository listed on HN.
I like the idea.
At first, I thought it was completely trivial to optimize index creations for a single query.
And then I thought that it still would be nice to test all possibilities when you have a query with 15 distinct fields used in WHERE part.
Clearly, this is not hard to optimize when you know your data well,
but still it is better if you can automatize exhaustive search,
in case you missed some unknown feature of your data.
And you can also save some time.
So the base step is still interesting.
And the more interesting step(s) in my opinion is to handle queries distributions.
For example I worked on MySQL queries with a common part regarding tables and joins mainly, for a filter list view screen,
but maybe between 30 and 70 or 100 possible filters.
Somehow, in most cases, the trick was to simplify the job by forcing that a small datetime range filtered out most of the data.
But we had customers that were not using the parametring that forced small datetime ranges, or only on "normal users" and not on "admin" users.
And thus query building logic that I did generated optimized "USE INDEX" for MySQL.
(I don't remember if I also had to do some dynamic STRAIGHT JOIN for this/these query.)
But the fact is that I also had a policy of adding all indexes without looking too much on database size constraints.
In my current work, exploitation database size is way larger since we do not bound the timerange of history.
And thus the size of indexes matters much more.
If you could handle the optimization of choosing indexes in a clever way:

for variations of the "same" query with objectives to minimize the size of indexes
for queries using the same tables
for queries using sets of tables that are not disjoint
for "connected components" of queries graph (an edge if sets of tables are not disjoint)

somehow with a continuum before and between these possibilities,
it would be nice.
Of course, think that the problem behind must be NP-complete.
But clearly, a good tool must help, because our approximate solutions by hand
are far from perfect most of the time unless the data has really distinct features and that you know them, or that you have a lot of luck.
Best regards,
Laurent Lyaudet

We're on a similar page wrt the directions this can go.
The current implementation is quite minimal in that it only recommends single column btree indexes. Straightforward next steps  for improvement could be to consider other index types for relevant data types (e.g. GIN with jsonb_path_ops for jsonb columns) or multi-column indexes.
To your point, we currently exhaustively test potential indexes. As we expand to consider multi-column or multi-query indexes the combinatorial explosion makes that infeasible. We've discussed some heuristic methods but for now want to keep everything easy to understand and deterministic
I'm going to close this since its not immediately actionable, but if you have concrete ideas that are narrower in scope please feel free to open issues for them

authors: LLyaudet olirice

license: PostgreSQL


text:
Add pgsodium extension to supabase/postgres ansible build scripts

What kind of change does this PR introduce?
It installs libsodium and pgsodium into the supbase/postgres ansible task chain.
What is the current behavior?
This is a new feature and not related to current behavior.
What is the new behavior?
CREATE EXTENSION pgsodium;
Additional context
This is just the base extension functions, changes to upstream supabase applications will depend on pgsodium (and libsodium).
Note that as installed here, pgsodium is not loaded at postgres boot and there is no root key.  All pgsodium functions are available but there is no key derivation or key ids in this mode.  Upstream applications can support key derivation by adding pgsodium to shared_preload_libraries and pgsodium.getkey_script=... to their postgresql.conf.

💯 thanks @michelp - could you also please update the readme with a link to your extension?

source: gharchive/pull-request

authors: kiwicopple michelp

repo: supabase/postgres

license_type: permissive

license_source: github-api


text:
fix: user permissions for extension schemas

What kind of change does this PR introduce?
Bug fix https://github.com/supabase/supabase/issues/12588
What is the new behavior?

schema created by postgis tiger extension is owned by supabase_admin. We now grant permissions to postgres so that users can further grant perms to other roles.
TODO: tables and functions in extensions schema should be accessible to postgres by default.

Additional context
Add any other context or screenshots.

Not sure if we should also run grants on tiger_data, seems to be an empty schema

Another schema called tiger_data is also created which houses all the census data for each state that the loader downloads from Census site and loads into the database. In the current model, each set of state tables is prefixed with the state code e.g ma_addr, ma_edges etc with constraints to enforce only that state data. Each of these tables inherits from the tables addr, faces, edges, etc located in the tiger schema.

Seems like some kinda of runtime cache https://postgis.net/docs/Extras.html. I will add it just in case.

authors: soedirgo sweatybridge


text:
chore: split Elixir tasks

What kind of change does this PR introduce?
Split Elixir tasks in CI to improve build times.

Some problems with Dialyzer when ran in test environment - https://github.com/supabase/supavisor/actions/runs/9711545084/job/26804706396?pr=375#step:10:31

we can ignore it via .dialyzer_ignore.exs

repo: supabase/supavisor


text:
chore: support bigquery as a sync destination

Test Plan
Tested locally against our bigquery/hubspot/salesforce

Can you add a BigQuery destinations documentation page?

authors: lucasmarshall tomkit

repo: supaglue-labs/supaglue

license: MIT


text:
feat: Add chat/send-message with slack and discord

Description
Adds new profile chat/send-message with slack and discord maps.

Motivation and Context

Types of changes

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

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I haven't repeated the code. (DRY)
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

@martinalbert What is the status here? Is this ready?

@jnv yes it is ready.

@janhalama thanks, I added your suggestions.

authors: jnv martinalbert

repo: superfaceai/station


text:
File size changes causes OS page cache invalidation

When running the repro program from @dangra in this comment, I'm seeing multi-second latency for read queries on the replica.
Update: The read in the repro program fetches every page in the database. With the current FUSE library, a change in the file size will invalidate the whole OS page cache which means that all pages must be refetched which is slow.

Update: It looks like the FUSE layer is invalidating the whole database file from cache when it applies an LTX file so a SELECT COUNT(*) query ends up having to re-read the entire file from litefs which is slow.
I'm still working on a small, reproducible script. LiteFS was missing the fuse.OpenKeepCache on Create() and Open() although this issue still persists after adding that flag in.

@tv42 Do you have any ideas off the top of your head why this might be occurring? I'm seeing InvalidateNode calls in the debug output like this:
74FD7445AF470FB062707E8A [r]: => InvalidateNode 0x2 Off:0 Size:4096
74FD7445AF470FB062707E8A [r]: => InvalidateNode 0x2 Off:497082368 Size:4096
74FD7445AF470FB062707E8A [r]: => InvalidateNode 0x2 Off:497086464 Size:4096

Node 0x2 is the database file. I'm also invalidating a different file (the shared memory, or SHM file) with the node id of 0x4:
74FD7445AF470FB062707E8A [r]: => InvalidateNode 0x4 Off:0 Size:-1

I wouldn't think that would affect the OS page cache of node 0x2 though.

Does the file change size? That currently triggers data invalidation:
		if (oldsize != attr->size) {
			truncate_pagecache(inode, attr->size);
			if (!fc->explicit_inval_data)
				inval = true;

That explicit_inval_data is set via FUSE_EXPLICIT_INVAL_DATA which the library does not yet have support for (it's protocol v7.30, we're still at 7.17).

@tv42 Ah, that would probably be it. It's a script that just inserts data so the database would keep growing and change size.
How difficult is it to support FUSE_EXPLICIT_INVAL_DATA? I was looking at fuse_kernel.h and it shows
FUSE_WRITEBACK_CACHE at 7.23 but I think bazil.org/fuse supports that, right? Is support for FUSE_EXPLICIT_INVAL_DATA something that could be added piecemeal or does everything need to be supported between 7.17 and 7.30?

I'll look into it.

Status update: I'm at FUSE protocol v7.19 now, FUSE_EXPLICIT_INVAL_DATA is in v7.30, many of the changes in between tell the kernel to send new kinds of messages toward userspace so I can't just pick and choose and "skip the queue". (I might be able to choose to not handle them, but I want to understand the consequences and decide that case by case.)
FUSE_WRITEBACK_CACHE is not supported at this time, we're in writethrough mode by default. In writeback, writes are sent to the FUSE server only lazily. See https://www.kernel.org/doc/Documentation/filesystems/fuse-io.rst

@tv42 I'll give a try this week. Thank you!

source: gharchive/issue

repo: superfly/litefs


text:
2.0: API - DO - Cluster provisioning fails on creation

Summary of Issue:
DO cluster creation fails when spinning up multiple masters and nodes
Steps to Reproduce:

Create a DO cluster that has (3)4gb masters and (3)4gb nodes

Expected Results:
We should be able to create a Digital Ocean cluster without issue.
Actual Results:
The masters and nodes create in Digital ocean just fine, however, the cluster task fails.
Dev Info: (fill out and add links to log files)

go version: 1.10
SG latest commit hash or release tag: d277a40a0a4441158b1011e14bb8e37aada16b74
Number of Masters and Nodes: 3 and 3
cloud provider: DO
sg.log

a9857ab9-ac7c-4d9a-bc8c-5419eeccf061.log
This may be related to #809
You get the restart button on the cluster task when it fails, after clicking it nothing looks to happen.

Enabling RBAC looks to solve this issue.

repo: supergiant/supergiant

license_source: bigquery


text:
🛑 other is down

In db00a46, other ($OTHER_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: other is back up in f694051 after 1 hour, 45 minutes.


text:
How to build Dedicated Server?

i need to build dedicated server, is there a option for that?

Select "Server" in the Super Unity window

authors: AldeRoberge firdiar

repo: superunitybuild/buildactions


text:
🛑 Shari Pash is down

In 1e7abca, Shari Pash (https://sharipash.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Shari Pash is back up in 62860c2 after 9 minutes.

repo: superwebpros/uptime


text:
CDK Integration

[x] Automated execution (possibly with waitcondition)
[x] Correct branch / version discovery
[x] Version discovery for Quick Start (set special github repo and version)
[x] remove SC stuff
[x] Delete CDK on stack deletion
[ ] Sync with QuickStarts team if the CDK integration is fine with them

Definition of done (v0.0.2)

[x] Automated integration test

as discussed internally we will close this draft and continue with the approach from #328

repo: superwerker/superwerker


text:
这个项目就是刷榜用的，完全用不了，大家别浪费时间了!

这个项目就是刷榜用的，我都尝试了两个小时，发现完全用不了，大家别浪费时间了 🖕

GitHub 观光团到此一游 🤥

好恶心啊 🤮

开源败类 🤣

败类

果然，这个刷星星刷的理直气壮的 😓

丢人现眼 🤣

哈哈，360公司果然盛产傻逼 🤮

authors: Huan2Wong Liu-Jianfeng Mirandante

repo: sureJiang/MSNotificationProtector


text:
Unnecessarily indents css classes on each run

Bug can be reproduced on this sample repo https://github.com/anildigital/surface_formatter_bug
$ mix surface.format
<TextInput
  class={
    "w-full h-12 max-w-full px-4 bg-xxx-100 hover:bg-xxx-120 text-base leading-normal
     text-color-yyy-100 box-border border border-solid border-kkk-100 rounded transition
     ease-in placeholder-hhh-100 placeholder-opacity-100 disabled:opacity-50
     disabled:cursor-not-allowed focus:border-mmmm-100 focus:outline-none
     no-scrollbar invalid:shadow-none invalid:border-ttt-100 #{@class}",

Then run again
$ mix surface.format
<TextInput
  class={
    "w-full h-12 max-w-full px-4 bg-xxx-100 hover:bg-xxx-120 text-base leading-normal
          text-color-yyy-100 box-border border border-solid border-kkk-100 rounded transition
          ease-in placeholder-hhh-100 placeholder-opacity-100 disabled:opacity-50
          disabled:cursor-not-allowed focus:border-mmmm-100 focus:outline-none
          no-scrollbar invalid:shadow-none invalid:border-ttt-100 #{@class}",

then run again
$ mix surface.format
<TextInput
  class={
    "w-full h-12 max-w-full px-4 bg-xxx-100 hover:bg-xxx-120 text-base leading-normal
                text-color-yyy-100 box-border border border-solid border-kkk-100 rounded transition
                ease-in placeholder-trunks-100 placeholder-opacity-100 disabled:opacity-50
                disabled:cursor-not-allowed focus:border-mmmm-100 focus:outline-none
                no-scrollbar invalid:shadow-none invalid:border-ttt-100 #{@class}",

@anildigital This behavior has been fixed as of version 0.5.2, published a few minutes ago. Let me know if you experience more problems!

Hey! II bumped surface_formatter to 0.5.2 and it still happens here.

@paulstatezny I will share an example

@paulstatezny This bug can be reproduced on this example https://github.com/anildigital/surface_formatter_bug

@anildigital I believe it should all be fixed now. Thanks again for reporting. Try out v0.5.3 and let me know if you're still experiencing the problem.

@paulstatezny Still getting the same issue even with 0.5.3.

@anildigital Thanks for your patience. I did some refactoring to clean up some tech debt to make isolating and exploring the problem easier. It should be fixed now in v0.5.4 (third time's a charm!), but can you post back to confirm or deny from your end?
Thanks for going back and forth with me!

@paulstatezny It seems to work, but there is an issue I guess, it indents using 'tab' char instead of 'space'

Now we are fully in the Twilight Zone. 😂
I'll take a look. Thanks @anildigital.

@anildigital I cloned https://github.com/anildigital/surface_formatter_bug, bumped to v0.5.4, and it's not modifying lib/surface_formatter_bug_web/live/text_input_new.ex.
$ mix surface.format lib/surface_formatter_bug_web/live/text_input_new.ex
$ git status
                                                                09:36:02
On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   mix.exs
	modified:   mix.lock

Is it possible the tab characters are from your editor? The formatter doesn't introduce tab characters and never has, so I don't see how it's possible those are coming from it.

@paulstatezny  Thanks a lot for the help.
You may be right about tabs. Not able to reproduce format adding tabs now.
But to test, I manually wrongly formatted classes and expected "surface formatter" to format those. But there is no change at all.  Is this expected?

or

@paulstatezny That is a very instructive paragraph regarding code semantics. Thanks for the documentation.


text:
[WIP] Resolver and Serialisation

The idea/solution i mentioned in #20

Implemented RPCRawResponse/Serialisation changes
Implemented the query resolver solution
Started tests for resolver/serialisation

Only handled the regular Query() function so far
It's pretty hacky in some places, was a quick put together as POC
TODO: Need to clean up the panics and find better solutions to them

Sorry for any spam 😅
I will see if i can work through these changes tomorrow and clear some bits up + add the go build tags for 18+

@Keitio what would we do with this panic here?
We wouldn't want to cancel the context/close the ws right? 🤔

Yeah, logging the error and then a continue would be more appropriate

F, I thought ready for review, would request another one, my bad...

Yeah I agree, it's quite large, but it's more of an optional/additional layer the dev can opt into to keep things a bit more simplified, for example, using .Query() and getting your individual item out of the result each time, gets boring fast, and then you write a wrapper to do it.... then every person does the same thing, it makes sense to have an option for that being handled
Things that you think shouldn't be exposed like that, can be sorted, it's just a WIP, on my personal code, i don't usually care too much about things not being exported 😅

Yep, no problems with that ! Was just stating my personal opinion on the current state of your branch just for you to get some (albeit very opinionated) feedback

Hey @iDevelopThings 👋 Thanks for opening this! Do you want to continue trying to merge this or can we close this PR? Will assign @timpratim if we do decide to continue. It would be good to resolve the merge conflicts to make it easier to review.

authors: Keitio iDevelopThings phughk


text:
docs: update  example code of Limitations

just adjust example code by webpack doc
for previous code
if you use webpack --env development command in webpack 5.3,
then env will be
{ WEBPACK_SERVE: true, development: true },  instead of development or production

Codecov Report

Merging #180 (1bb6dab) into develop (28cfdbd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #180   +/-   ##
========================================
  Coverage    99.14%   99.14%
========================================
  Files            6        6
  Lines          233      233
  Branches        64       64
========================================
  Hits           231      231
  Misses           2        2

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 28cfdbd...1bb6dab. Read the comment docs.

Thanks! Sorry for the late merge (busy with other things).

authors: Gavin-Gong bebraw codecov-io

repo: survivejs/webpack-merge

license: mit


text:
feat: compute idle power with core ratio

This patch is for adding an idle power based on ratio of the machine cores over the cores of the machine that is used for training the power model.
This PR can be merged independently but there is no core ratio set yet.
For local regressor core ratio, need the following Kepler PR to solve the TODO.

[ ] https://github.com/sustainable-computing-io/kepler/pull/1684

For sidecar estimator, need the following PR in kepler-model-server to have estimator provides machine spec and server API to put machine spec to weight response.

[ ] https://github.com/sustainable-computing-io/kepler-model-server/pull/405

Signed-off-by: Sunyanan Choochotkaew sunyanan.choochotkaew1@ibm.com

per Pang's instruction, this PR can be merged independently. Let's have this one first and wait for #1684

authors: rootfs sunya-ch

repo: sustainable-computing-io/kepler


text:
ConfigureAsset not working?

So I have a bot with the code:
Roblox.configureItem(2924369398,"bbb","aaa");
and it errors with
Unhandled rejection Error: Error configuring item, make sure not to sell unsellable items or anything else unusual.
yet all im editing is this model here: https://www.roblox.com/library/2924369398/aaa

It works fine for me and it looks like it did work.

authors: OutlookG suufi


text:
Define minimal iBase header

Based on functions called in minimal iGeom header (#2), define minimal iBase header file.
(Identify other ITAPS header files that may be necessary)

Superseded by other better formulated issues

repo: svalinn/DAGMC-Trelis


text:
False Positive for 'customElement: true'.

Before You File a Bug Report Please Confirm You Have Done The Following...

[X] I have tried restarting my IDE and the issue persists.
[X] I have updated to the latest version of the packages.

What version of ESLint are you using?
8.52.0
What version of eslint-plugin-svelte are you using?
2.34.0
What did you do?

Configuration
module.exports = {
	root: true,
	parser: '@typescript-eslint/parser',
	extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:svelte/recommended'],
	plugins: ['@typescript-eslint'],
	ignorePatterns: ['*.cjs'],
	overrides: [
		{
			files: ['*.svelte'],
			parser: 'svelte-eslint-parser',
			parserOptions: {
				parser: '@typescript-eslint/parser'
			}
		}
	],
	parserOptions: {
		sourceType: 'module',
		ecmaVersion: 2020,
		project: './tsconfig.json',
		extraFileExtensions: ['.svelte']
	},
	env: {
		browser: true,
		es2017: true,
		node: true
	},
	rules: {
		'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
		'@typescript-eslint/no-explicit-any': 'off',
		'no-prototype-builtins': 'off',
		// 'svelte/valid-compile':'off'
	},
	settings: {
		svelte: {
			compileOptions: {
				customElement: true
			}
		}
	}
};

<svelte:options tag="iron-remote-gui"/>

<script lang="ts">
    import {onMount} from 'svelte';
...
</script>
...

What did you expect to happen?
I expect eslint throw no error with run npx eslint src/**
What actually happened?
> npx eslint src/**

C:\Users\jou\code\IronRDP\web-client\iron-remote-gui\src\iron-remote-gui.svelte
  1:17  error  The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?(missing-custom-element-compile-options)  svelte/valid-compile

✖ 1 problem (1 error, 0 warnings)

Link to GitHub Repo with Minimal Reproducible Example
branch not published yet, will update when branch is pushed.
Additional comments
No response

This error is came from Svelte compiler, so I think this is not ESLint issue.
Can you try to compile your code with Svelte compilar and share the result?

I use vite build and it works well. Everything compiles.

here is my vite config
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
import dtsPlugin from "vite-plugin-dts";

// https://vitejs.dev/config/
export default defineConfig({
  build: {
    lib: {
      entry: './src/main.ts',
      name: 'IronRemoteGui',
      formats: ["umd", "es"],
    }
  },
  server: {
    fs: {
      strict: false
    }
  },
  plugins: [svelte({
    compilerOptions:{
      customElement:true
    }
  }), wasm(), topLevelAwait(), dtsPlugin()],
})

It should be fix in 2.34.1!

authors: baseballyama irvingoujAtDevolution

repo: sveltejs/eslint-plugin-svelte


text:
adapter-static: prevent generated files and directories from beginning with underscore (for github pages)

Describe the bug
I have a public repo: https://github.com/rocketlaunchr/petersir
It has github pages setup with a custom domain: petersir.com
My svelte config file looks like this:
import { optimizeImports } from 'carbon-preprocess-svelte';
import adapter from '@sveltejs/adapter-static';

/** @type {import('@sveltejs/kit').Config} */
const config = {
  preprocess: [optimizeImports()],
  kit: {
    adapter: adapter({
      fallback: '404.html'
    }),
    files: {
      assets: 'src/static'. /// <--------- used to copy favicon files to root directory after running build command.
    },
    trailingSlash: 'always'
  }
};

When I go to the site: https://petersir.com, the page is blank.
When I look in the console it shows 404 errors for the crucial JS files (despite definitely existing):

However, the browser fetches the favicon file which is located in the root directory
Reproduction
See above:
The repo is public: https://github.com/rocketlaunchr/petersir
Logs
GET https://petersir.com/ 404
petersir.com/:11          GET https://petersir.com/_app/assets/vendor-8149caf7.css net::ERR_ABORTED 404
petersir.com/:1          GET https://petersir.com/_app/start-2f6645ce.js net::ERR_ABORTED 404
petersir.com/:1          GET https://petersir.com/_app/chunks/vendor-92f0db20.js net::ERR_ABORTED 404
petersir.com/:1          GET https://petersir.com/_app/chunks/preload-helper-e4860ae8.js net::ERR_ABORTED 404
petersir.com/:1          GET https://petersir.com/_app/chunks/singletons-d1fb5791.js net::ERR_ABORTED 404

### System Info

```shell
System:
    OS: macOS 12.1
    CPU: (8) arm64 Apple M1
    Memory: 156.61 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.4.1 - /usr/local/bin/node
    npm: 8.5.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 99.0.4844.74
    Safari: 15.2

### Severity

blocking all usage of SvelteKit

### Additional Information

github pages seems to be set up correctly: for example, the favicon is being pulled properly.

Okay, I discovered the primary issue.
Github Pages produces 404 for directories starting with underscore. Therefore appDir should be set:
const config = {
  preprocess: [optimizeImports()],
  kit: {
    adapter: adapter({
      fallback: '404.html'
    }),
    files: {
      assets: 'src/static'
    },
    trailingSlash: 'always',
    appDir: 'app'  // <------------ Very important to change from _app to app.
  }
};

It would be good to add this to the adapter-static documentation too.
....

BUT how can I prevent sveltekit from generating files with _ eg __layout.svelte-a94bc638.js?

Problem fixed: You need to add a blank file called .nojekyll to configure github pages to not produce 404 files for _ files/folders.

@pjebs I added the .nojekyll and have the same issue still. Any other ideas?

@xpluscal What else did you do?

I am facing a similar issue. Folders and files prepended with an underscore are ignored. Currently i can't get my layout assets to output with a different filename, has anyone found a more permanent solution to this?

Having this issue as well. Adding the .nojekyll file hasn't changed anything for me.

Had this issue -- fixed after making the .nojekyll file manually on the gh-pages branch on Github.

authors: ashley-cai ozzythecoder pjebs stephen-digicert xpluscal

repo: sveltejs/kit


text:
Migration guide references non-existent type "Load" on "$types"

Describe the bug
https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693 in #5774 references Load on ./$types but this type doesn't exist, PageLoad exists on ./$types should it be that instead?
Reproduction
https://stackblitz.com/edit/node-fvjfyj?file=src/routes/+page.ts
Go to /src/routes/page.ts
You will see the error on the import
Module '"./$types"' has no exported member 'Load'.
Logs
Module '"./$types"' has no exported member 'Load'.

System Info
System:
    OS: Windows 10 10.0.22622
    CPU: (8) x64 AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
    Memory: 554.71 MB / 5.95 GB
  Binaries:
    Node: 17.3.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.450.0), Chromium (104.0.1293.54)
    Internet Explorer: 11.0.22621.1

Severity
annoyance
Additional Information
No response

Yes it should be PageLoad instead.
https://kit.svelte.dev/docs/types#generated-types

Thank you for noticing, @Addeuz is right, it should be PageLoad (or LayoutLoad) instead - updated the migration guide.

I just started a new SvelteKit project today, and it seems that the PageLoad type is not generated. This is all I get:
import type * as Kit from '@sveltejs/kit';

interface RouteParams extends Partial<Record<string, string>> { nid: string }

export type Errors = undefined;
export type PageData = null;
export type PageServerData = null;

Is this a regression?

Can't tell without a proper reproduction

authors: Addeuz JeremyMoeglich dummdidumm rudolfbyker


text:
error in tutorial/await-blocks

unexpected response in :
Request failed message  in https://learn.svelte.dev/tutorial/await-blocksunexpected response in

https://github.com/sveltejs/learn.svelte.dev/blob/main/content/tutorial/01-svelte/04-logic/06-await-blocks/app-a/src/routes/random-number/%2Bserver.js
This is intended. The endpoint fails 1/3 of the time so we can demonstrate {:catch}.

authors: Conduitry moonhuntercode


text:
Duplicated field don't duplicate themself when adding a new language on already existing content

Hello Kioshino, I know it is quite a specific request. But when adding a new language, my field with widget: "object"  &  i18n: "duplicate" don't duplicate themself on already existing content. For exemple here i created the spanish language after creating my homePage.
The problem is that the button addPageSection is greyed out because it is a duplicate field :

Will check!

Okay sorry, i was not specific enough in my demand. I use a list with Type Widgets.
With just a list it is working

Got it! I’ll test again and come up with a solution.

authors: AntoineBx kyoshino

repo: sveltia/sveltia-cms


text:
🛑 fullstackrocket.com is down

In a2f4982, fullstackrocket.com (https://www.fullstackrocket.com) was down:

HTTP code: 500
Response time: 2532 ms

Resolved: fullstackrocket.com is back up in 31108d4 after 8 minutes.

repo: svengau/upptime


text:
ParentContracts within SceneTests

Hey,
I have a Main scene in which an additional Environment scene is loaded inside the initialize function of a script. The Main scene has Main set as Contract name whereas the Environment scene references the Main scene as parent contract. This works well when playing the scene in play mode.
Now, I am writing a Scene test using the Zenject SceneTestFixture class that loads the Main scene. However, in that case I get the following Exception as soon as the Environment scene is loaded:

ZenjectException: SceneContext on object SceneContext of scene Environment requires at least one of contracts 'Main', but none of the loaded SceneContexts implements that contract.

I think this is a bug.

What does your scene test look like?  Are you calling LoadScenes("Main", "Environment") ?

The test class looks like this:
    [TestFixture]
    public class ProcessDataSceneIOTest : SceneTestFixture
    {
        private IEnumerator InitScene()
        {
            yield return LoadScene("Main Scene");

            Logging.Log(this, "Scene Loaded");

            yield return new WaitForSeconds(1);

            network.JoinRoom();

            yield return new WaitForSeconds(.1f);
        }

        [Inject]
        private INetworkManager network;

        [UnityTest]
        public IEnumerator TestScene()
        {
            yield return InitScene();

            //...
        }

The Environment scene is being loaded indirectly by network.JoinRoom() also using the Zenject SceneLoader. The call is
zenjectSceneLoader.LoadScene(environmentScenePath, LoadSceneMode.Additive);

My Main scene is pretty empty. It only contains a SceneContext with a bunch of ScriptableObjectInstallers:

The SceneContext of the Environment scene looks like this:

I'm on Unity 2018.3.12 and Zenject 8.0.0.
Thank you for maintaining this. You are doing a great job!

authors: hendrik-schulte svermeulen

repo: svermeulen/Extenject


text:
Error handling

You really shouldn't throw errors (https://github.com/svg/svgo/blob/master/lib/svgo/svg2js.js#L121) causing modules that consumes this module to break. Make use of callbacks (the right way) instead. What I mean by i right way is that returning errors and actual data inside the same param isn't good practice. Ideally you would return it the "node way" with the error param first and actual stuff after, e.g (err, data, ...).
Currently you are doing it like this and this. It would be nice if it were done like this instead:
sax.onerror = function (err) {
    this.error = null;

    callback(err);
    return
};

sax.onend = function () {
    callback(null, root);
};

Actually, without throwing, sax.onend will be executed just as sax.onerror, so callback would be executed twice, second time like normal. return in your example does nothing.

authors: GreLI kevva

repo: svg/svgo


text:
@Api description ignored in 1.5.1-M2

REST resource with annotation:
@Api(value = "/sample", description = "my sample resource")

is converted to json:
"tags": [
{
"name": "sample"
}
]

but based on petstore demo should be:
"tags": [
{
"name": "sample",
"description": "my sample resource"
}
]

Currently description is completly gone.
I'm using swagger-jaxrs 1.5.1-M2.

@m-radzikowski - due to a change in the spec, we had to rework how tags are generated. While /sample would indeed be converted to sample as a tag, it will not take its description due to possible conflicts.
The way to configure the description now is different. You can take a look at the sample to see how it works - https://github.com/swagger-api/swagger-core/blob/master/samples/java-jaxrs/src/main/java/com/wordnik/swagger/sample/Bootstrap.java#L35-L45.

It's sad it cannot be done by annotations any more. Isn't it doubling the "tags" - in @API annotations and by Swagger#tag()?
So isn't now description in @Api redundant? Or leaved only by backwards compatibility reasons? At lease javadoc should be updated.

When moving from 1.3 to 1.5, we left the annotations as-is besides adding a few new fields. This was done to be as backwards-compatible as possible.
To keep a similar behavior to previous versions, the @Api#value() is converted to a tag, but we indeed added @Api#tags(). This allows you to set multiple tags, and will override the value() if one is provided.
The description is indeed redundant now. Still WIP, but I'm updating the javadocs as you can see here - https://github.com/webron/swagger-core/blob/annotation_docs/modules/swagger-annotations/src/main/java/com/wordnik/swagger/annotations/Api.java#L60-L66.

Ok, that's the way we will probably do this. Thank you for the detailed info.

this seems utterly weird, why description of API endpoint is now forced to be placed bootstrap code, is not the whole point of @Api annotation (or any other annotation) to place relevant information near the class/interface?

@okigan - that's a fair question. The change is derived from the difference in Swagger 2.0's grouping method. With it, @Api can now affect multiple groups (aka, tags). In fact, there could be multiple @Apis with the same tags, and conflicting descriptions.
One way would be to apply the description to all the tags, allow the last-read to override whatever was found before, but that may very well lead to confusion when hitting unexpected results.

Looks like swagger already creates a default tag by @Api annotation, then consider following behavior: if only default tag is present show the default description, if custom tag is provided do not show default tag/description and display according to custom tag with tag's description.
Much easier transition path, and no ambiguity which description is applied.
default_tagA defaultA_description
   method A1
   method A2

default_tagB defaultB_description
   method B1
   method B2

custom_tag custom_description
   method A1
   method A2
   method B1
   method B2

There's still ambiguity. You can still have two @Apis with the same value() and a different description(). Also, documenting the suggested behavior in a way people would be able to follow is quite challenging.

authors: m-radzikowski okigan webron

repo: swagger-api/swagger-core


text:
Allow ModelConverter to be configured via BeanConfig

To avoid the use of static singletons and isolate global state.

Please give an example of how you suggest this is done?

val config = new BeanConfig();
    config.setTitle(API_TITLE);
    config.setVersion(VersionUtils.getApiVersion());
    config.setBasePath(API_BASE_PATH);
    config.setResourcePackage(getResourcePackages());
    config.addConverter(new MyConverter1());
    config.addConverter(new MyConverter1());
    config.setScan(true);

As an aside, it would be nice to have BeanConfig setters be chainable so you could do:
val config = new BeanConfig()
   .setTitle(API_TITLE)
   .setVersion(VersionUtils.getApiVersion())
   .setBasePath(API_BASE_PATH)
   .setResourcePackage(getResourcePackages())
   .addConverter(new MyConverter1())
   .addConverter(new MyConverter1())
   .setScan(true);

or the more traditional builder style:
val builder = BeanConfigBuilder.builder()
   .title(API_TITLE);
   .version(VersionUtils.getApiVersion());
   .basePath(API_BASE_PATH)
   .resourcePackage(getResourcePackages());
   .resource(new MyResource1())
   .resource(new MyResource2())
   .resources(new MyResource3(), new MyResource4())
   .resources(ImmutableList.of(new MyResource5()))
   .converter(new MyConverter1())
   .converter(new MyConverter1())
   .converters(new MyConverter3(), new MyConverter4())
   .converters(ImmutableList.of(new MyConverter5()))
   .scan(true);

val config = builder.build() // Triggers scan, etc.

Got it, yes, that makes a lot of sense.

authors: btiernay fehguy


text:
Run all tests instead of a single test group

I think this .only call is committed by accident

Thanks!

authors: bvleur theganyo

repo: swagger-api/swagger-node


text:
swagger-parser uses incorrect default for collectionFormat in query parameters

Summary
swagger-parser incorrectly assigns a collectionFormat of "multi" to query parameters with no explicitly defined collectionFormat when parsing a spec, even though the correct default is "csv".
Details
I was using swagger-codegen to generate a Java API library from an API specification file. swagger-codegen uses swagger-parser to parse the API specification file. The API specification that I am using defines a particular query parameter that looks something like this:
"testParam": {
  "name": "testParam",
  "in": "query",
  "type": "array",
  "items": {
    "type": "string"
  }
}

As you can see, the parameter is of type "array" but has no explicitly defined collectionFormat. The authors of the API specification relied on the default behaviour being "csv", as defined in the Swagger specification.
However, when swagger-parser parsed this API specification, it returned a parameter object with a collectionFormat of "multi", which caused problems with the generated Java API.
I believe this is an issue with swagger-core, so I have opened an issue there. However, @webron asked me to open an issue here as well.

Well, I have written some tests to see if the parser will do what is described.  Doesn't look like it is so, and the issue must be in swagger-core.

authors: fehguy michaelkourlas

repo: swagger-api/swagger-parser


text:
Issue following $ref in object properties

Description
As shown in swagger-codegen:
Generated type file ID contains the following:
  /**
   * Constructs a ID from a plain JavaScript object, optionally creating a new instance.
   * Copies all relevant properties from data to obj if supplied or a new instance if not.
   * @param {Object} data The plain JavaScript object bearing properties of interest.
   * @param {module:model/ID} obj Optional instance to populate.
   * @return {module:model/ID} The populated ID instance.
   */
  exports.constructFromObject = function(data, obj) {
    if (data) {
      obj = obj || new exports();

    }
    return obj;
  }

data is an integer input. obj is null. Hence, the result is exports() instead of simply data.
This is apparently caused by swagger-parser not properly following $ref.
Swagger declaration file content or url
definitions:

  # ===============================================================================
  # Fragments
  # ===============================================================================

  ID:
    description: An entity identifer
    type: integer
    format: int64
    readOnly: true

  # ===========================================================================
  # Users
  # ===========================================================================

  User:
    type: object
    required:
      - emailAddress
    properties:
      id:
        $ref: '#/definitions/ID'
      emailAddress:
        type: string
        format: email
        minLength: 6
        maxLength: 254

More details in this issue:
https://github.com/swagger-api/swagger-codegen/issues/4973

I think this is not an issue, please see the test referenced in #412.  Reopen if i'm missing something

@fehguy  - this issue persists. Please explain how the code above makes any sense... I see it even with v3.0.0 with useES6=false.


text:
Title: category button

Is your feature request related to a problem? Please describe.
you can add category button at top.
Describe the solution you'd like.
you can add category button at top.
Describe alternatives you've considered.
sorting button.
Add any other context or screenshots about the feature request here.
No response

@Vipullakum007 Thank you for providing your insight but it is not required as of now.


text:
Title: Planetary Motion Calculator

Is your feature request related to a problem? Please describe.
I want to add a calculator for measurement of various parameters of planetary motion, which I would like to add to this project.
It seemed a new idea to me in this project, please consider the issue.
Describe the solution you'd like.
This calculator calculates various parameters of planetary motion such as, lengths of semi-major, semi-minor axis, time period and areal velocity of planets using Kepler's laws. I've also added quite a bit of information regarding that and mentioned the source of information as well.
The tech-stack I used is HTML, CSS, JS.
I've ensured that my website is mobile-responsive as well.
The units of measurement will be corresponding to that given by user.
Describe alternatives you've considered.
NA
Add any other context or screenshots about the feature request here.

@Sara1428 Thank you for providing your insight but it is not required as of now


text:
Title: URL Bookmark

Is your feature request related to a problem? Please describe.
Creating a URL bookmark web application that saves URLs in the local storage.
Describe the solution you'd like.

To add a URL:

Enter the name you want to save the URL as.
Enter the URL.
Click on the (Save) button.
The URL will appear at the bottom of the page.

To visit a saved URL, click on the (Visit) button next to it.
To delete a saved URL, click on the (Delete) button next to it.

I am a GSSoC'22 participant. Please assign it to me.
Describe alternatives you've considered.

The URL can be saved with the original website name or any other name.
The URL can be entered with or without the protocol part. If it's not entered by the user, it will be considered as (https://).

Add any other context or screenshots about the feature request here.
I have uploaded it on GitHub which URL is given below:
(https://github.com/Salma-Hamed/URL-Bookmark).

@Salma-Hamed Good Luck 👍🏻

@swapnilsparsh please review and merge my PR

authors: Salma-Hamed swapnilsparsh


text:
Change question about starting a remote node

[x] I have read the Contributing file of the documentation.
[x] I have searched the issues (including closed ones) and believe that this is not a duplicate.
[x] I am willing to lend a hand to help implement this feature.

Feature Request
Feature Description
The question in the script asking if do you want to start a remote node sould be changed by:
Do you want to start a new local node instance? Y/n
It is, in fact, less confusing. The script only lets you to start a local node, and by asking if you want to start a remote node, it is not easy to imagine that you have to start the remote node by yourself.

Also, I think that '.availableCurrencies' file should be renamed without the dot at the beginning, because that means in Unix that a file is hidden (that's the only purpose of a dot), and there is not any reason why that file should be hidden.

repo: swapper-org/NodeChain


text:
[Feature]

Description
the side icons on the right of the website will make it interactive and catch the attention of the users and its responsive.

Screenshots
https://github.com/user-attachments/assets/6a876582-793d-41b3-a3f7-00b5a9bd4f6a
https://github.com/user-attachments/assets/a60dc30a-3cad-4a93-94fe-0844040cc172
@swaraj-das
pls assign me
Checklist

[X] I have checked the existing issues.
[X] I have read the Code Of Conduct
[X] The changes don't break the code
[X] Please attach the screenshots and video of the development work once it is done

@Theboycut05 This is not our project. Please recheck.

Ok @swaraj-das

assign this to me so that i can give my best .

i can resolve this for you .

repo: swaraj-das/Collect-your-GamingTools


text:
linking to wrong protocol, doh!

Hehe, in my haste with gamma protocol, I linked to the wrong one! It was linking to guicam's and not wlroots. This fixes that.

Oops, I probably should have caught that too -_-

authors: SethBarberee Timidger

repo: swaywm/wlroots-rs


text:
Direct scanout not working because clients choose incompatible modifier

Direct scan-out isn't working because clients will always choose modifier incompatible with scanout on my system. Tested with XWayland and native Vulkan clients.
Hardcoding supported modifiers in types/wlr_linux_dmabuf_v1.c linux_dmabuf_send_modifiers will make it work.
Should wlr_linux_dmabuf only advertise formats/modifiers supported by scanout?
RX 6700XT, 5.13.4-zen1-1-zen, mesa 21.1.5-1, vulkan-radeon 21.1.5-1, xorg-xwayland 21.1.2-1

Should wlr_linux_dmabuf only advertise formats/modifiers supported by scanout?

This won't cut it, because this will prevent non-fullscreen clients from using more optimized modifiers.
The plan is the following: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/8

authors: emersion nowrep

repo: swaywm/wlroots


text:
Cursors ✕ Output Transformations fixes

Transforms pointer events under Wayland backend (see #364)
Fixes broken 180 and flipped transformation under DRM backend (introduced in #188, probably never worked properly)
Fixes disappearing software cursors when applying a 90 or 270 transformation (regression introduced in #352)
Replaces mysterious switches with easy-to-understand calls to wlr_output_transformation_* helpers

Test plan: try all 8 transformations under Wayland and DRM. Open a view, check that the pointer doesn't jump when entering the view. Check (e.g. with a GTK app with buttons) that the view receives pointer events with the right position.
Currently the hardware cursor isn't transformed under the Wayland backend, waiting for #319 to do this.

This PR is ready for review.

LGTM :+1:

authors: SirCmpwn emersion


text:
In projects that mix js, ts, jsx, tsx, the build results of version 1.3.79 have file extensions .js, .jsx.

Describe the bug
I've put the minimal reproduction in this git repository: https://github.com/hi-otto/swc-bug-report
Input code
// a: a/index.jsx, b: b/index.js, c: c/index.ts, d: d/index.tsx
// index.ts
import a from '~/a';
import b from '~/b';
import c from '~/c';
import d from '~/d';

console.log(a, b, c, d);

Config
{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": true
    },
    "baseUrl": "./",
    "paths": {
      "~/*": [
        "./src/*"
      ]
    }
  }
}

Playground link (or link to the minimal reproduction)
https://github.com/hi-otto/swc-bug-report
SWC Info output
Operating System:
    Platform: darwin
    Arch: arm64
    Machine Type: arm64
    Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103
    CPU: (8 cores)
        Models: Apple M1

Binaries:
    Node: 18.16.0
    npm: 9.5.1
    Yarn: 1.22.15
    pnpm: N/A

Relevant Packages:
    @swc/core: 1.3.79
    @swc/helpers: N/A
    @swc/types: 0.1.5
    typescript: 5.2.2

SWC Config:
    output: N/A
    .swcrc path: N/A

Next.js info:
    output: N/A

Expected behavior
The output results of 1.3.78 and 1.3.79 are different, and I expect it to be like 1.3.78.
It should be import a from "./a"; instead of import a from "./a/index.jsx";
dist-1.3.78/index.js
import a from "./a";
import b from "./b";
import c from "./c";
import d from "./d";
console.log(a, b, c, d);

dist-1.3.79/index.js
import a from "./a/index.jsx";
import b from "./b/index.js";
import c from "./c";
import d from "./d";
console.log(a, b, c, d);

Actual behavior
No response
Version
1.3.79
Additional context
No response

https://github.com/kdy1/repro-swc-8184
You can make it resolve fully, but not remove .js.
Currently behavior is not ideal, though

When is this issue expected to be fixed? I also have a strong dependency on this.

@zhaomenghuan Feel free to send a PR

authors: hi-otto kdy1 zhaomenghuan

repo: swc-project/swc


text:
Use A4_LOG to configure the logger

UCI clients can get confused if you spew a lot of logs, so this commit turns it completely off unless enabled with A4_LOG.

Current dependencies on/for this PR:

master

PR #37   (this PR)

This comment was auto-generated by Graphite.


text:
Remove Windows from Esthri publish CI [WIP] [DEVINFRA-932]

Windows support is removed from Estrhi publishing CI

Not sure I'm following why ci.yaml is being limited to triggering on tag pushes when the purpose of "ci.yaml" is primarily to validate pull requests-- thinking about what "CI" means ("continuous integration") it follows that these are activities that should happen during the initial proposal and development of pull requests.

I left a note # TEMPORARY change used to test achubbic because I wasn't sure how to run action workflows without tag pushing. This will be removed once ticket is in approval state with tests passing.
Alternatively, how can I run a actions workflow for a given commit using on: pull-request?

Ship it

authors: achubbic-snav silverjam

repo: swift-nav/esthri


text:
Does KafkaProducerMessage suppose to copy bytes to ByteBuffer?

I see that KafkaProducerMessage is using ByteBuffer from nio:
public struct KafkaProducerMessage {
     public var topic: String
     public var partition: KafkaPartition
     public var key: ByteBuffer?
     public var value: ByteBuffer

While it might be convenient way to pass safe bytes, it seem that no any async things happens on the way:
// KafkaProducer
public func send(_ message: KafkaProducerMessage) throws -> KafkaProducerMessageID {
        let action = try self.stateMachine.withLockedValue { try $0.send() }
        switch action {
        case .send(let client, let newMessageID, let topicHandles):
            try client.produce(
...
// KafkaClient
func produce(
        message: KafkaProducerMessage,
        newMessageID: UInt,
        topicConfig: KafkaTopicConfiguration,
        topicHandles: RDKafkaTopicHandles
    ) throws {
        let keyBytes: [UInt8]?
        if var key = message.key {
            keyBytes = key.readBytes(length: key.readableBytes)
        } else {
            keyBytes = nil
        }

        let responseCode = try message.value.withUnsafeReadableBytes { valueBuffer in
            return try topicHandles.withTopicHandlePointer(topic: message.topic, topicConfig: topicConfig) { topicHandle in
                // Pass message over to librdkafka where it will be queued and sent to the Kafka Cluster.
                // Returns 0 on success, error code otherwise.
                return rd_kafka_produce(
                    topicHandle,
                    message.partition.rawValue,
                    RD_KAFKA_MSG_F_COPY,
                    UnsafeMutableRawPointer(mutating: valueBuffer.baseAddress),
                    valueBuffer.count,
                    keyBytes,
                    keyBytes?.count ?? 0,
                    UnsafeMutableRawPointer(bitPattern: newMessageID)
                )
            }
        }

So, if we use our own buffer (e.g. Flatbuffers ByteBuffer), we should copy it to nio ByteBuffer.
Could you advise if there is any way to avoid copying the buffer in nio that I'am missing?
Should it be replaced with ByteBufferView or with UnsafeRawBufferPointer if it is not supposed?

At the current stage, we plan on changing the public API of KafkaProduerMessage to the following:

Click to expand
KafkaProducerMessage
Swift
/// Message that is sent by the `KafkaProducer`
public struct KafkaProducerMessage {

    /// The topic to which the message will be sent.
    public var topic: String

    /// The partition to which the message will be sent.
    /// Defaults to ``KafkaPartition/unassigned``.
    /// This means the message will be automatically assigned a partition using the topic's partitioner function.
    public var partition: KafkaPartition

    /// The optional key associated with the message.
    /// If the ``KafkaPartition`` is ``KafkaPartition/unassigned``, the ``KafkaProducerMessage/key`` is used to ensure
    /// that two ``KafkaProducerMessage``s with the same key still get sent to same ``KafkaPartition``.
    public var key: KafkaProducerMessageKey?

    /// The value of the message to be sent.
    public var value: KafkaProducerMessageValue

    /// Create a new `KafkaProducerMessage`.
    ///
    /// - Parameters:
    ///
    ///     - topic: The topic the message will be sent to. Topics may be created by the `KafkaProducer` if non-existent.
    ///     - partition: The topic partition the message will be sent to. If not set explicitly, the partition will be assigned automatically.
    ///     - key: Used to guarantee that messages with the same key will be sent to the same partittion so that their order is preserved.
    ///     - value: The message's value.
    public init(
        topic: String,
        partition: KafkaPartition? = nil,
        key: KafkaProducerMessageKey? = nil,
        value: KafkaProducerMessageValue
    )
}

extension KafkaProducerMessage : Hashable {
}

extension KafkaProducerMessage : Sendable {
}

KafkaProducerMessageKey
Swift
/// Key of a ``KafkaProducerMessage``.
public struct KafkaProducerMessageKey {

    /// Create ``KafkaProducerMessageKey`` from `ByteBuffer`.
    public init(_ buffer: ByteBuffer)

    /// Create ``KafkaProducerMessageKey`` from `String`.
    public init(_ string: String)
}

extension KafkaProducerMessageKey : Hashable {
}

extension KafkaProducerMessageKey : Sendable {
}

KafkaProducerMessageValue
Swift
/// Value of a ``KafkaProducerMessage``.
public struct KafkaProducerMessageValue {

    /// Create ``KafkaProducerMessageValue`` from `ByteBuffer`.
    public init(_ buffer: ByteBuffer)

    /// Create ``KafkaProducerMessageValue`` from `String`.
    public init(_ string: String)
}

extension KafkaProducerMessageValue : Hashable {
}

extension KafkaProducerMessageValue : Sendable {
}

With this, we can easily add new types to  KafkaProducerMessageKey / KafkaProducerMessageValue to support your non-copying constraint. Ultimately we just have to pass a pointer and a buffer size to librdkafka so this should work 👍

I think this issue should be closed. With latest version not it is protocol that supports any type that implements corresponding protocol.
@felixschlegel thanks a lot!

authors: blindspotbounty felixschlegel

repo: swift-server/swift-kafka-gsoc


text:
maps

have u thought on work on a map editor?

I used Blender to build my maps, which is very convenient. It is basically a map editor on it's own. I'd be more keen on making a Blender plugin which would let you tag objects with Sketchbook specific properties.
Here's a picture of Gabe Newell to improve your day. 👌

Sorry for a late reply btw.

kk


text:
Discard changes to stdlib/public/Concurrency/Executor.swift

Accidentally removed a deprecation today, fixing right away.

@swift-ci please smoke test

repo: swiftlang/swift


text:
Concurrency: Suppress a -Wc++23-extensions warning

Fixes the following warning:
warning: label at end of compound statement is a C++23 extension [-Wc++23-extensions]

@swift-ci please smoke test


text:
AST: simplify debug flag computation

Use an algorithmic approach to string concatenation rather than building the space delimited string manually. This allows us to extend the flags embedding more easily in the future.

@swift-ci please test


text:
Fix disconnect issue (MAX_CLIENTS=6)

Add error handler to the XMPP 'login' client
Reject promises in both error handlers
Enable auto-reconnection

This fixes #34. I've been running it for a few weeks and haven't had any problems; previously, Homebridge would crash daily because of this issue.

Hi @patters,
I've been trying to resolve this on my own too and I have some questions regarding your implementation:

Why do you use reconnect: true? isn't that the user's responsibility to implement his own reconnection policy upon error (e.g throttling)
1.1. If already using reconnect, why is it omitted from loginWithIdentity?
Any reason not to filter the error reason before trying to reconnect? Especially in loginWithIdentity, where the client might receive errors not related to function but to the consumer (remember the xmppClient is being passed to the consumer for the session.)

Other than that, this one also fixes #33 (and around 9 issues from homebridge-harmonyhub as well.)

since this repo seems to be abandoned i created an updated package which includes some of the here available pull requests, hop over to @harmonyhub and give it a try.

Hi all, I tried to put the fix manually, will keep this thread update dif it is good for me . By the way, any possibility to update the package and homebridge-harmonyhub on npm also in order to have this directly through homebridge ?

Hi,
So @patters  fix didn't worked for me : homebridge was not crashed, but harmony plugin was not responding until I restarted homebridge server. I put @kobin fix in place, let's see tomorrow :)

thank you for your change. it will be part of the next released version.

authors: AirBorne04 kobim nicoduj patters swissmanu

repo: swissmanu/harmonyhubjs-client


text:
swoft能快速上手吗? 我看了半小时的文档,仍然没看到好的例子

swoft能快速上手吗? 我看了半小时的文档,仍然没看到好的例子

官方的 demo 已经写了足够多例子看 文档结合例子

只要看你用于什么吧,http-server吧,直接使用mvc 弄明白,再熟悉一下modal 中间件就行了..
router变成了注释之类的功能,很容易

authors: dcdebug sakuraovq yangqinjiang

repo: swoft-cloud/swoft


text:
[TUTORIAL] How to save ELG model to .onnx and further to TensorRT .engine

Hi all. I have spent quite some time reading and using this awesome code. Converting the model to .onnx and .engine wasn't too easy so I share how I did it.
Installation

Create a virtual env using python 3.7.12. Don't use python 3.8!
Install Python 3.7.12 tarball [according to this guide](https://opensource.com/article/20/4/install-python-linux
cd GazeML
Then, create virtual env to a folder .venv and activate it
python3.7 -m venv .venv
source .venv/bin/activate
You can deactivate it any time you want by running deactivate

Ok, time to install everything!
pip install --upgrade pip
pip install cython
pip install scipy
python3 setup.py install
pip install tensorflow==1.14

For me tensorflow==1.15 didn't work. You can also install tensorflow-gpu. Make sure it's the same version or check the support matrix on Tensorflow page. Note that most of tf1.x stuff is deprecated so it's hard to get support for that. I'm thinking of implementing this whole repo in pytorch or tf2 for that reason.
If python3 setup.py install hangs just install the dependencies by hand one by one.
Get the pre-trained weights: bash get_trained_weights.bash

Running the model
Before converting anything test the model:
cd src
python3 elg_demo.py

I got a ton of errors but the model worked nonetheless.
Saving the model as .onnx
Use this tool: tf2onnx
pip install -U tf2onnx

Then, we have to modify the code a bit before we can get started.
Save the saved-model in inference_generator()
Add these code lines before line 385 yield outputs:
            # Save saved-model
            tf.saved_model.simple_save(self._tensorflow_session, "tmp",
                 inputs=data_source.output_tensors, outputs=fetches)

When you run this code again (python3 elg_demo.py) it will create a folder tmp with the saved_model.pb in it. But don't run it yet because if you try to convert the code you will get this error:
ValueError: Input 0 of node hourglass/pre/BatchNorm/cond_1/AssignMovingAvg/Switch was passed float from hourglass/pre/BatchNorm/moving_mean:0 incompatible with expected float_ref.

The error is actually quite good: it tells where in the graph we got problems. BatchNorm is creating the problem. There are quite many answers on Google about this issue but I think the easiest way to fix it is to set training to False as BatchNorm behaves differently when training / when testing. Change at least these lines:

https://github.com/swook/GazeML/blob/master/src/models/elg.py#L181 -> is_training=False
https://github.com/swook/GazeML/blob/master/src/core/model.py#L327 -> self.use_batch_statistics: False,
https://github.com/swook/GazeML/blob/master/src/core/model.py#L381 -> self.use_batch_statistics: False,

and optionally:

https://github.com/swook/GazeML/blob/master/src/models/dpg.py#L224 -> is_training=False
if you're using dpg. If you don't know, just change it.

This is a bug in the code:  self.use_batch_statistics is set to True everywhere but it isn't set to False at any point. I could create a PR for this.
Now we have done all the changes.
You can convert that file to `.onnx. like so:
python3 -m tf2onnx.convert --saved-model ./tmp --output gazeml.onnx

For most of your needs that should be enough. You can add --opset <opset> for example --opset 10 if you want to target a specific opset. You can also add --target tensorrt or similar. Check the tf2onnx repo for more flags if you need them.
There's one more thing you should know.
Converting the model to TensorRT .engine
If you try to convert the model using tools like trtexec or similar you'll end up with a small problem. The model contains uint8 but it's not supported by TensorRT. You must remove the uint8's in the model like this:
here change uint8 to int64 and it will work.
Then you can convert:
trtexec --onnx gazeml.onnx --saveEngine gazeml.engine --buildOnly --verbose --best

or using onnx2trt:
onnx2trt gazeml.onnx -o gazeml.engine

That should be it. Thank you! I hope my weeks of grinding helps someone. Please ask me if there are any questions.

You can check the .onnx model graph by using this awesome tool: https://netron.app/

repo: swook/GazeML


text:
🛑 BestQA is down

In 1f83e67, BestQA ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA is back up in cd30232.

repo: swuecho/upptime


text:
🛑 BestQA_GO is down

In 19abbc5, BestQA_GO (https://www.bestqa.net/go/bestqa_dev/up) was down:

HTTP code: 500
Response time: 6496 ms

Resolved: BestQA_GO is back up in 07b0c95.


text:
merge several "yazi.toml" files

Please describe the problem you're trying to solve
I generate part of my config with nix https://nixos.org/. It has several advantages, one of which is for general toggle of a plugin.
For instance I have a nix setting yazi.enableOuchPlugin = true that enables the yazi plugin https://github.com/ndtoan96/ouch.yazi:
it puts the plugin files where expected (in ~/.config/yazi/plugins/ouch.yazi), makes "ouch" available to the plugin and enables the config advised in the plugin, i.e. the previewers and loaders.
The drawback is that generating ~/.config/yazi/yazi.toml via nix, the file becomes read-only and any change to the config becomes bothersome because it takes several seconds for nix to regenerate the config.
Would you be willing to contribute this feature?

[ ] Yes, I'll give it a shot

Describe the solution you'd like
What I try to when possible do is to get the best of both worlds by merging:

a configuration generated by nix
an imperative configuration I can quickly edit/save/restart the software

Now I dont know how to do this with yazi, I dont think it's possible ?
Outside of my specific nix usecase, maybe this feature could be used by plugins to embed their own configuration ?
The possible ways to do it I could think of:

add an "include" directive in yazi.toml
have a "config.d" folder like for ssh, where all files in this folder are loaded
have plugins embed their own yazi.toml that can be merged
have a lua API to load the different configuration files (keymap/yazi.toml etc)

is probably the easiest to develop and integrate

Additional context
https://github.com/sxyazi/yazi/issues/623 might be related

I think introducing config merging for a performance-first file manager is a bit overkill (it will require reading more files and doing more merges), and it could also cause more confusion - I've explained my thoughts in more detail in another issue here, https://github.com/sxyazi/yazi/issues/989#issuecomment-2197222094

is it possible via the API to add previewers / loaders ? I could live with that generating a script that changes my config afterwards.

Closing in favor of https://github.com/sxyazi/yazi/issues/2047

authors: sxyazi teto

repo: sxyazi/yazi


text:
"〜"を含む単語を一つの単語として分かち書きする

e.g. "ぐ〜りんぱ"

アニガサキ1期劇伴 "私と私～1～"

repo: sy-app/ll-now-extract-words


text:
Add New Option Excluding file type

「exts」オプションのように、特定のファイルタイプを除外するオプションを追加しました。

@Norio4
ありがとうございます。修正してv1.17.0としてリリースしました。

repo: syagawa/file-keeper


text:
I want compare

I want update new features.

I want to update the fork to the lastest version you have.

Don't open a PR for that. It is for contributions. Open an issue.
What you want to do is : git merge upstream/master
But you should learn Git beforehand because the merge will possibly conflict and you will have to solve it manually.

authors: Talpio lbcnz

repo: sylhare/Type-on-Strap


text:
Folder images didn't found by load_image_sequence

I have a folder with image inside that I put into my input folder.
There is no doc on where to put the input images but I found on the code this line.
https://github.com/sylym/comfy_vid2vid/blob/main/__init__.py#L124
Sad il have no folder found by the node

What should I do? how can I debug this ... I have very few python/comfy knowledge but i want to give a try to this plug in...

I got the same problem now, did you find a way ?

Where these folder must be located, why there is no tutorial ?

authors: SPotaufeux flynet levaleureux


text:
🛑 Hard Stack Pro is down

In 1e53da3, Hard Stack Pro (https://hardstackpro.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Hard Stack Pro is back up in 042430b after 50 minutes.

repo: symapex/upsite


text:
🛑 The Great Gardens is down

In 01e756d, The Great Gardens (https://thegreatgardens.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The Great Gardens is back up in d12984f after 31 minutes.


text:
🛑 Agati Well Repairs is down

In 653dd14, Agati Well Repairs (https://agatiwellrepairs.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Agati Well Repairs is back up in 905c236 after 10 minutes.


text:
🛑 Mr Drywall TX is down

In da9c306, Mr Drywall TX (https://mrdrywalltx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mr Drywall TX is back up in fff3138 after 19 minutes.


text:
🛑 Dragues Well Repair is down

In 3c14e21, Dragues Well Repair (https://dragueswellrepair.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dragues Well Repair is back up in 853a4cb after 1 hour, 26 minutes.


text:
🛑 Cleanwagon Ohio is down

In fdc6a6a, Cleanwagon Ohio (https://cleanwagonohio.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanwagon Ohio is back up in 1a03d67 after 33 minutes.


text:
🛑 Cleanary Sandiego is down

In c0154a8, Cleanary Sandiego (https://cleanarysandiego.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanary Sandiego is back up in 08f801c after 42 minutes.


text:
🛑 Cleanaroo is down

In 0ba78fc, Cleanaroo (https://cleanaroonv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanaroo is back up in 4cdbfdb after 10 minutes.


text:
🛑 Green View AZ is down

In 9799875, Green View AZ (https://greenviewaz.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Green View AZ is back up in e4a8334.


text:
🛑 Everlast Deck is down

In d9f82c2, Everlast Deck (https://everlastdeck.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Everlast Deck is back up in 77b03a8 after 1 hour, 44 minutes.


text:
🛑 Lawn Workx is down

In 0ad0b20, Lawn Workx (https://lawnworkx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lawn Workx is back up in e01b5e4.


text:
🛑 Get Fence Lab is down

In 8f529d9, Get Fence Lab (https://getfencelab.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Get Fence Lab is back up in 1a1328d after 51 minutes.


text:
🛑 My Drywall Guy is down

In 79d3581, My Drywall Guy (https://my-drywall-guy.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Drywall Guy is back up in d8a42cd after 19 minutes.


text:
🛑 Get Fence Lab is down

In 2f24efd, Get Fence Lab (https://getfencelab.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Get Fence Lab is back up in 60888b7 after 35 minutes.


text:
🛑 Wellspring Tampa is down

In cfb0a8d, Wellspring Tampa (https://wellspringtampa.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wellspring Tampa is back up in a720e27 after 20 minutes.


text:
🛑 Cedar Built Floors is down

In e2083b6, Cedar Built Floors (https://cedarbuiltfloors.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cedar Built Floors is back up in f13ec4d after 1 hour, 16 minutes.


text:
🛑 Meat Market Phoenix is down

In 2f550b6, Meat Market Phoenix (https://meatmarketphoenix.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Meat Market Phoenix is back up in 37c9a5a.


text:
🛑 Decor and Scape is down

In 4518cff, Decor and Scape (https://decorandscape.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Decor and Scape is back up in 1f96ea0 after 1 hour, 5 minutes.


text:
🛑 The AZ Clean Expert is down

In 5f2bcfa, The AZ Clean Expert (https://theazcleanexpert.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The AZ Clean Expert is back up in 3f63dfe after 41 minutes.


text:
🛑 Concrete Tree is down

In 52e3e5e, Concrete Tree (https://concretetree.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Tree is back up in 0d4fe24.


text:
Redo branch & pr for registry

Redo PR for ELECTRON-27.

lgtm

authors: lneir rbarros-daitan

repo: symphonyoss/SymphonyElectron


text:
Field position is being removed

Using hast-util-raw directly from this package or thru rehype-raw removes position fields when using a combination of proc.runSync(proc.parse(text))
Initial checklist

[x] I read the support docs
[x] I read the contributing guide
[x] I agree to follow the code of conduct
[x] I searched issues and couldn’t find anything (or linked relevant results below)

Affected packages and versions: v6+
Steps to reproduce

Use unified with remark-parse, remark-rehype and  hast-util-raw to create a processor.
Use the processor to create a tree with parse and pass it to runSync.

Here is a failing test case using the same data from the tests suite in the repo:
Link to code example:
When using unified with remark-parse, remark-rehype and hast-util-raw (and rehyper-raw) the position is removed as noted in the next test case. I added a first check to ensure position is present after the transform to rehype.
1..3
# tests 3
# pass  1
# fail  2

I used the data in the current test suite to create a failing case:
test('runSync position removed', function (t) {
  const text = [
    'Some title',
    '',
    '
Hello, world!',
    '',
    '*   This',
    '*   Is',
    '*   A',
    '*   List',
    '',
    'A mix of *markdown* and HTML.',
    '',
    '***',
    '',
    '![an image](https://example.com/favicon.ico "title")',
    '',
    '<svg><rect/></svg>',
    '',
    '
alfred
',
    '',
    '
Hello, world!',
    ''
  ].join('\n')

  const expected = {
    type: 'root',
    children: [
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'element',
            tagName: 'i',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'Some title',
                position: {
                  start: {line: 1, column: 4, offset: 3},
                  end: {line: 1, column: 14, offset: 13}
                }
              }
            ],
            position: {
              start: {line: 1, column: 1, offset: 0},
              end: {line: 1, column: 18, offset: 17}
            }
          }
        ],
        position: {
          start: {line: 1, column: 1, offset: 0},
          end: {line: 1, column: 18, offset: 17}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'text',
            value: 'Hello, world!\n',
            position: {
              start: {line: 3, column: 4, offset: 22},
              end: null
            }
          }
        ],
        position: {
          start: {line: 3, column: 1, offset: 19},
          end: {line: 5, column: 1, offset: 37}
        }
      },
      {
        type: 'element',
        tagName: 'ul',
        properties: {},
        children: [
          {type: 'text', value: '\n'},
          {
            type: 'element',
            tagName: 'li',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'This',
                position: {
                  start: {line: 5, column: 5, offset: 41},
                  end: {line: 5, column: 9, offset: 45}
                }
              }
            ],
            position: {
              start: {line: 5, column: 1, offset: 37},
              end: {line: 5, column: 9, offset: 45}
            }
          },
          {type: 'text', value: '\n'},
          {
            type: 'element',
            tagName: 'li',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'Is',
                position: {
                  start: {line: 6, column: 5, offset: 50},
                  end: {line: 6, column: 7, offset: 52}
                }
              }
            ],
            position: {
              start: {line: 6, column: 1, offset: 46},
              end: {line: 6, column: 7, offset: 52}
            }
          },
          {type: 'text', value: '\n'},
          {
            type: 'element',
            tagName: 'li',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'A',
                position: {
                  start: {line: 7, column: 5, offset: 57},
                  end: {line: 7, column: 6, offset: 58}
                }
              }
            ],
            position: {
              start: {line: 7, column: 1, offset: 53},
              end: {line: 7, column: 6, offset: 58}
            }
          },
          {type: 'text', value: '\n'},
          {
            type: 'element',
            tagName: 'li',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'List',
                position: {
                  start: {line: 8, column: 5, offset: 63},
                  end: {line: 8, column: 9, offset: 67}
                }
              }
            ],
            position: {
              start: {line: 8, column: 1, offset: 59},
              end: {line: 8, column: 9, offset: 67}
            }
          },
          {type: 'text', value: '\n'}
        ],
        position: {
          start: {line: 5, column: 1, offset: 37},
          end: {line: 8, column: 9, offset: 67}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'text',
            value: 'A mix of ',
            position: {
              start: {line: 10, column: 1, offset: 69},
              end: {line: 10, column: 10, offset: 78}
            }
          },
          {
            type: 'element',
            tagName: 'em',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'markdown',
                position: {
                  start: {line: 10, column: 11, offset: 79},
                  end: {line: 10, column: 19, offset: 87}
                }
              }
            ],
            position: {
              start: {line: 10, column: 10, offset: 78},
              end: {line: 10, column: 20, offset: 88}
            }
          },
          {
            type: 'text',
            value: ' and ',
            position: {
              start: {line: 10, column: 20, offset: 88},
              end: {line: 10, column: 25, offset: 93}
            }
          },
          {
            type: 'element',
            tagName: 'em',
            properties: {},
            children: [
              {
                type: 'text',
                value: 'HTML',
                position: {
                  start: {line: 10, column: 29, offset: 97},
                  end: {line: 10, column: 33, offset: 101}
                }
              }
            ],
            position: {
              start: {line: 10, column: 25, offset: 93},
              end: {line: 10, column: 38, offset: 106}
            }
          },
          {
            type: 'text',
            value: '.',
            position: {
              start: {line: 10, column: 38, offset: 106},
              end: {line: 10, column: 39, offset: 107}
            }
          }
        ],
        position: {
          start: {line: 10, column: 1, offset: 69},
          end: {line: 10, column: 39, offset: 107}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'hr',
        properties: {},
        children: [],
        position: {
          start: {line: 12, column: 1, offset: 109},
          end: {line: 12, column: 4, offset: 112}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'element',
            tagName: 'img',
            properties: {
              src: 'https://example.com/favicon.ico',
              alt: 'an image',
              title: 'title'
            },
            children: [],
            position: {
              start: {line: 14, column: 1, offset: 114},
              end: {line: 14, column: 53, offset: 166}
            }
          }
        ],
        position: {
          start: {line: 14, column: 1, offset: 114},
          end: {line: 14, column: 53, offset: 166}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'element',
            tagName: 'svg',
            properties: {},
            children: [
              {
                type: 'element',
                tagName: 'rect',
                properties: {},
                children: [],
                position: {
                  start: {line: 16, column: 6, offset: 173},
                  end: {line: 16, column: 13, offset: 180}
                }
              }
            ],
            position: {
              start: {line: 16, column: 1, offset: 168},
              end: {line: 16, column: 19, offset: 186}
            }
          }
        ],
        position: {
          start: {line: 16, column: 1, offset: 168},
          end: {line: 16, column: 19, offset: 186}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'div',
        properties: {id: 'foo', className: ['bar', 'baz']},
        children: [
          {
            type: 'element',
            tagName: 'img',
            properties: {src: 'a', alt: 'bar'},
            children: [],
            position: {
              start: {line: 18, column: 31, offset: 218},
              end: {line: 18, column: 52, offset: 239}
            }
          },
          {
            type: 'text',
            value: 'alfred',
            position: {
              start: {line: 18, column: 52, offset: 239},
              end: {line: 18, column: 58, offset: 245}
            }
          }
        ],
        position: {
          start: {line: 18, column: 1, offset: 188},
          end: {line: 18, column: 64, offset: 251}
        }
      },
      {type: 'text', value: '\n'},
      {
        type: 'element',
        tagName: 'p',
        properties: {},
        children: [
          {
            type: 'text',
            value: 'Hello, world!',
            position: {
              start: {line: 20, column: 4, offset: 256},
              end: {line: 20, column: 17, offset: 270}
            }
          }
        ],
        position: {
          start: {line: 20, column: 1, offset: 253},
          end: {line: 20, column: 17, offset: 270}
        }
      }
    ],
    data: {quirksMode: false},
    position: {
      start: {line: 1, column: 1, offset: 0},
      end: {line: 21, column: 1, offset: 270}
    }
  }

  const proc = unified()
    .use(remarkParse)
    .use(remarkRehype, {allowDangerousHtml: true})
    .use(function () {
      return transformer
      function transformer(/** @type {import('unist').Node} */ tree) {
        t.ok(tree.position, 'should have position')
        return tree
      }
    })
    .use(function () {
      // @ts-ignore hast is more specific than unist.
      return (tree, file) => raw(tree, file)
    })
    .use(function () {
      return transformer
      function transformer(/** @type {import('unist').Node} */ tree) {
        t.deepEqual(tree, expected, 'should equal the fixture tree')
      }
    })

  proc.runSync(proc.parse(text))

  t.end()
})

Expected behavior

The position fields should not be removed.
Actual behavior

The position fields are being removed

I am guessing this is because this utility expects a modern VFile (which uses .value), whereas remark/rehype/unified are still using the previous vfile (.contents). All of vfile/syntax-tree/micromark/wooorm has been updated, but unified/remark/rehype have not.
Here is a minimal example that shows this utility working:
import parse5 from 'parse5'
import {VFile} from 'vfile'
import {fromParse5} from 'hast-util-from-parse5'
import {inspect} from 'unist-util-inspect'
import {raw} from './index.js'

const file = new VFile('
whatever
')
const p5ast = parse5.parse(String(file), {sourceCodeLocationInfo: true})
const tree = fromParse5(p5ast, file)

console.log('1', inspect(tree))

raw(tree, file)

console.log('2', inspect(tree))

Yields:
1 root[1] (1:1-1:18, 0-17)
│ data: {"quirksMode":true}
└─0 element[2]
    │ properties: {}
    ├─0 element[0]
    │     properties: {}
    └─1 element[1]
        │ properties: {}
        └─0 element
[1] (1:1-1:18, 0-17)
            │ properties: {}
            └─0 text "whatever" (1:5-1:13, 4-12)
root[1] (1:1-1:18, 0-17)
│ data: {"quirksMode":true}
└─0 element[2]
    │ properties: {}
    ├─0 element[0]
    │     properties: {}
    └─1 element[1]
        │ properties: {}
        └─0 element
[1] (1:1-1:18, 0-17)
            │ properties: {}
            └─0 text "whatever" (1:5-1:13, 4-12)

@wooorm thanks for your promptly reply.
However, my intention with this issue might be unrelated to having a vFile. In the integration test case there is no vFile involved, that's why I reproduced the exact same scenario failing.
In my case, I have tested this in https://github.com/elmasse/nextein project using just remark/rehype which uses not the v7 but a previous v6 of hast-util-raw causing the same issue.
On the other hand, I have inspected the vFile passed by my unified processor and makes no difference since is just an empty holder.
My problem arises when I tried to keep up to date with my dependencies and updating to rehype-raw@5.1.0 breaks and, as far as I can tell, it seems to be related to this module.
Let me know if I can provide more information. I could fork and create a test case in any of the repos.
Thanks
Max

So in rehype-raw@5 it worked, and in v5.1 it stopped?

On the other hand, I have inspected the vFile passed by my unified processor and makes no difference since is just an empty holder.

Do you mean the vfile you pass is empty? As in, you don’t pass the source contents/value of the file in at all?

So in rehype-raw@5 it worked, and in v5.1 it stopped?

It stopped in v5, I had to downgrade to v4 (which is what I was using before). Honestly I haven't tested v5 vs v5.1 since I did an update by npm ranges.

Do you mean the vfile you pass is empty? As in, you don’t pass the source contents/value of the file in at all?

As I stated in the test case, I use a plain string that I pass to processor.parse. I guess I could try to use to-vfile but in any case, since the parser generates the tree with position information, I don't quite understand why the raw will remove them.

since the parser generates the tree with position information, I don't quite understand why the raw will remove them.

The problem is that, yes, the parser has the source file so it can add positional info, but this plugin also needs the source file. The solution thus is to also pass the source to run: https://github.com/unifiedjs/unified#processorrunsyncnode-file.
I don’t see how this ever worked on v4 though? The difference between 4 and 5 was added types 🤔

could you confirm whether:
const doc = 'whatever'
process.runSync(process.parse(doc), doc)

Does the trick?

Yes, that works!
Awesome, thanks!
Closing this issue.

Great to hear! ✨

authors: elmasse wooorm

repo: syntax-tree/hast-util-raw


text:
Allow spaces inside marker even when it has no attributes

Currently, this util returns null given the following node...
{
  type: 'html',
  value: '<!-- foo -->'
}

Whoops, I missed your PR! 😬 Thanks for fixing this, I can’t believe it wasn’t handled properly! 🎉
I’ll release this in a minute!

thanks for releasing! 🎉

repo: syntax-tree/mdast-comment-marker


text:
Creating a AUTOINCREMENT column

Hi,
How can I create a column AUTOINCREMENT?

An id column with autoincrement is automatically created when you use the schema constructor. I forgot to put that in the docs

authors: synw tems

repo: synw/sqlcool


text:
make build interrupt causes errors for go targets

Interrupting the go binary build causes errors
e.g:
[INFO] Go: Get github.com/u-root/cpu/cmds/cpu
^Cmake: *** Deleting file '/home/sylv/Repo/9elements/system-transparency/cache/go/src/github.com/u-root/u-root/.git/config'
make: *** Deleting file '/home/sylv/Repo/9elements/system-transparency/cache/go/src/github.com/go-debos/debos/.git/config'
make: *** [modules/go.mk:96: /home/sylv/Repo/9elements/system-transparency/cache/go/src/github.com/u-root/u-root/.git/config] Interrupt
make: *** [modules/go.mk:118: cpu] Interrupt
make: *** [modules/go.mk:68: /home/sylv/Repo/9elements/system-transparency/cache/go/src/github.com/go-debos/debos/.git/config] Interrupt

[sylv ~/Repo/9elements/system-transparency]$ make toolchain
[INFO] Go: Get github.com/go-debos/debos
# cd /home/sylv/Repo/9elements/system-transparency/cache/go/src/github.com/go-debos/debos; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> master

#111 fixes this issue.

repo: system-transparency/system-transparency


text:
feat(web) - replaced old "status bar" at the top of the diagram with toasts

https://github.com/systeminit/si/assets/8495209/d545441b-e4ae-44fd-bb29-9883e7b83b84

bors merge

repo: systeminit/si


text:
Relative loading

I am not exactly sure if i really hit a bug but i can't seem to find anything about it and i am lost now :S
var Builder = require('systemjs-builder');

var builder = new Builder();
builder.config({baseURL: 'web/', paths: {'*': '*.js'}, transpiler: 'babel'});
builder.build('test', 'web/js/build.js')
.then(function() {
    console.log('SUCCESS');
})
.catch(function(err) {
    console.log('ERR', err);
});

in my web directory i have:
test.js:
import './test2';

Then when executing:
hans-guenther:dingo mop$ iojs build.js
ERR [Error: ENOENT: no such file or directory, open '/Users/mop/projects/xxx/web/test2'
	Error loading file:///Users/mop/projects/xxx/web/test2 from file:///Users/mop/projects/xxx/web/test.js
	Error loading file:///Users/mop/projects/xxx/web/test2]

It can't find the real file because it doesn't append '.js'. This only happens when building. I have the same setup working properly in the webbrowser :S
This only happens when doing relative requires. When doing:
import 'test2';

Everything is working fine.

It sounds like you're running SystemJS 0.16 in the browser against builder 0.11? See the release notes on SystemJS 0.17 (which corresponds to builder 0.11) for more info on the js extensions issue - https://github.com/systemjs/systemjs/releases/tag/0.17.0.

yep. that's it

repo: systemjs/builder


text:
hashids

closes #54

Great solution, thanks very much for the PR @henry40408! This will be included in the 1.2.0 release

repo: szabodanika/microbin


text:
App crash on the simulator

Hello，when i try to build and run the repo on the simulator(Genymotion, Nexus 5, API 23, Android 6.0). The app can get the camera image, but then quickly quit. I wonder if it's because the simulator or the code itself?
The error is like:
dequeueBuffer: createGraphicBuffer failed
can't dequeue multiple buffers without setting the buffer count
at android.hardware.camera2.legacy.SurfaceTextureRenderer.checkEglError(SurfaceTextureRenderer.java:487)
at android.hardware.camera2.legacy.SurfaceTextureRenderer.swapBuffers(SurfaceTextureRenderer.java:480)
at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:681)
at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:103)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

@szaza

Closed. Use a real mobile phone can solve this. I search the error , and it may be the Camera2API and x86 simulator. So if you want to run it on the simulator, you need to change the code to CameraV1API.

license: WTFPL


text:
Does not work with latest version of bannerlord

The asset packages have been changed in the 1.4.2 version and opening them in Tpac just causes a crash, this has been confirmed by multiple people.

Fixed in 0.2.0

authors: szszss thelonewarrior

repo: szszss/TpacTool


text:
Show and Filter by Tags

Problem: "tags" attribute is just a free-form string, not much different than e.g. "notes"; organization of meaningful tags is difficult, often different synonymous tags are used for the same concept, making them less useful
Idea: Add button to show list of tags, and how often each tag is used. Click on tag to show passwords with that tag (just add the tag to the search box and filter?). This way, it's easier to see rarely used / misspelled / redundant tags, and easier to merge those tags (although that last step is still manual)

done

repo: t-kuester/pwdmgr


text:
Callgraph always stored/loaded from the same file

When I use PerfCacheSave <somename> it always stores the callgraph in the same file ~/.cache/nvim/perfanno/callgraph.1.json, regardless of the name I use. PerfCacheLoad <somename> always loads the same file. The index in ~/.cache/nvim/perfanno/index.json has all entries pointing to the same file.
I verified this by adding vim.notify('Callgraph saved in: ' .. vim.fn.fnamemodify(file, ':p')) at the end of M.store_callgraph and vim.notify('Loaded callgraph from file: ' .. index[name].file) in M.load_callgraph.

Thanks for reporting this, this should be fixed now!

authors: jedrzejboczar t-troebst


text:
Can't load save with 2024.3.0

I get an error when I attempt to load an existing save with this mod installed and the latest version of the game. The save loads successfully when I uninstall this mod. Attached is the player log from such an attempt.
Player.log

Does the error still occur with this version of the mod?
better_mouse_mod.zip

Good


text:
feat: adding create-jd-app and create-t3svelte-app to other recommendations in docs

Is your feature request related to a problem? Please describe.
I recently came upon create-jd-app that is the solid-js version of create-t3-app and create-t3svelte-app. I was surprised to see that it wasn't in the create-t3-app docs.
Describe the solution you'd like to see
Add create-jd-app and create-t3svelte-app to the other section in recommendations.
Describe alternate solutions
N/A
Additional information
I can make a PR if this issue goes through.

The other recommendations section isn't for switching out the core part, i.e. the framework underneath - Next.js.
This would probably be better off in conjunction with #948.

Agreed with Julius, the recommendations page is for things we recommend to use alongside the stack. I'm definitely in favor of linking to Astro for example, and am not against linking to any of these other projects (although I haven't tried any of them myself), but it should go on a different page.

Moved to #948

authors: Svadrut c-ehrlich juliusmarminge


text:
Expose filter feature

Add to configuration, send filter subscribe messages if set and http port.

This is still a WIP.

This branches out of https://github.com/t4lz/mirrord/pull/4 and so it contains all the changes from there, so I recommend only looking at this PR after we've merged https://github.com/t4lz/mirrord/pull/4 and I rebased this PR on it.


text:
Add schedule arg to composer::selfupdate

Otherwise, it runs every time and it's kind of slow

Hey, thanks :)


text:
Document

Example usage: https://github.com/w3c/csswg-drafts/blob/1bc829f76d5082b2c0d5819ee5877d583a96f82e/css-color-4/Overview.bs#L1846-L1848
It doesn't seem to be documented currently.

I was just wondering this myself. For posterity, I would like to share a related definition found in this project’s Bikeshed.tmLanguage:

A <pre class='prod'>, which contains grammar things that look a lot like autolinks.

authors: jonathantneal xfq

repo: tabatkins/bikeshed


text:
Staples smoke test returns zeros for all rows

About You:
Name: Guian Gumpac
Company: OpenSearch
Your question:
Hi, when running the staples smoke test I get all zeros for all rows even though the query is valid.
Output:
Run query successful! Check output file
",Actual does not match expected.,Actual does not match expected.,49.0,"
      SELECT `Staples`.`Discount` AS `Ship Priority`
FROM `staples` `Staples`
GROUP BY `Ship Priority`
    ","0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0","""0""
""0.01""
""0.02""
""0.03""
""0.04""
""0.05""
""0.06""
""0.07""
""0.08""
""0.09""
""0.1""
""0.11""
""0.12""
""0.13""
""0.15""
""0.21""
""0.24""
""0.27""
""0.3""
""0.36""
""0.39"""

I've ran this query straight to the server and it returns the expected results. I've also ran it through dbVisualizer and also get the expected results. So far, I know that the server and the JDBC are not the cause. Has anyone seen this or would anyone know what the issue/resolution is?
For more context, our team has ran TDVT and made a submission in April 2022 with staples tests successfully running. I've tried the connector from that submission but still get the results above.
Tableau Desktop version: 2022.3

More context. Tableau Desktop returns expected results with the same query being run by TDVT.
Custom query:

Result:

Internal tracking: W-13581065

Hi @GumpacG - are you continuing to see this issue? If so, could you share your logs with me?

authors: GumpacG lukewrites

repo: tableau/connector-plugin-sdk


text:
Appending other images as custom subimages to another image

Images that were added using Collage.AddSurface() can only have one subimage. Implementing something like this could get rid of that limitation.

sprite_create_from_surface and sprite_add_from_surface and .AddSprite is what I would really recommend. But if you prefer I add in a way, I could add a method to the sprite data struct

That's good enough, thanks for the heads up. You could close this issue now if you'd like.

authors: LocalInsomniac tabularelf

repo: tabularelf/Collage


text:
Add missing colors

Fix #85

Should I merge them or will you?

You can go ahead and merge if you'd like. Will cut a new version when back at my computer.

authors: johno klzns

repo: tachyons-css/generator


text:
Fix the leaderboard being wider than the screen when loading

When the ranking is loading and skeletons are shown the rankings were way too wide, so wide the ranking would go off the right edge of the page and the recent updates column would be wrapped below. It seems that removing flex-basis: auto from Content fixes it. I believe the 100% width on on the Skeleton in Leaderboard.tsx is what was causing issues with the flex basis.
The bug:

The fix:

https://github.com/tadoku/tadoku/blob/f5fb8b39e3b37b75d9d3868be91486ac00496587/frontend/web/src/app/ranking/components/Leaderboard.tsx#L222-L225
Those lines are also causing the nickname skeleton to not be vertically aligned with the other skeletons. Not sure if I should address that in this or not.

repo: tadoku/tadoku


text:
Add Cargo.lock

Hello! I'd like to package this with nix. In order to do so, I'd need a Cargo.lock file to be committed. Would yall be willing to pull in a Cargo.lock? It also seems like this is suggested for rust binaries.

Thanks for the PR!
It is somewhat intentional that we are not currently committing lockfile.

cargo automatically publishes Cargo.lock when there is binary in a crate.
The cargo documentation you mention does not mention this so it seems a bit outdated.

cargo install ignores Cargo.lock by default and uses the latest dependencies.
If we commit Cargo.lock and don't update it on a regular basis, our CI cannot guarantee that crate is working properly with the latest dependencies at the time of release. (Given that many people are installing binary crates without using --locked, that can actually be a problem.)

Tools for automatically updating Rust's dependencies are not good. Dependabot for Rust projects that include lockfile is not configurable enough and is noisy.

That said, I'm open to accepting this if non-cargo package managers require it.

if non-cargo package managers require it.

Hmm, I thought the package manager could use cargo install --locked --target-dir ..., but that probably won't work if they want to apply their own patches.

Ah, I didn't realize that crates.io hosted a version of the repo as a tarball that contains a Cargo.lock. I can just point nix at that, so I'll close this. Thanks for the quick and detailed response!

authors: DieracDelta taiki-e

repo: taiki-e/cargo-llvm-cov