example doesnt work in release mode on macos

i tried the example in the release mode on macos and it didn't recognise the command brew, I tried running brew --version in debug mode it works.

Related: https://github.com/Homebrew/brew/issues/15833
You can fix it by adding
final homeDir = Platform.environment['HOME'] ?? '';

pty.write(const Utf8Encoder().convert('export HOME=$homeDir' + carriageReturn));

after pty.start

will it be able to run ffmpeg or any other installed tools too this way?

From my test on my machine™ it will


Closures are not supported in Serializer

I'm getting this Exception after following the instructions pretty much 1:1. What could be causing this?

@AlexandreKilian Well, this happens to the normal behaviour for PHP. You cannot serialize closures, therefore it will throw an exception.
The serializer is capturing this because, otherwise, a Fatal Error is thrown.

@nilportugues i get that, but I didn't try to serialize any closures, just a basic doctrine entity

Hmm @AlexandreKilian this might be related to the circular references in Doctrine (their Proxy classes...).
There's already an issue for this: https://github.com/nilportugues/symfony-jsonapi/issues/3

Sorry to reopen an old issue.
I'm tring to serialize an Article entity which has a manyToOne relation with Author. When I fetch the Article with the doctrine find method, the autor entity isn't loaded yet because of lazy loading.
The error appears when I use serialize on the article.
Does this means I must use fetch: EAGER in my entities so that serializations work?
Thanks

You cannot serialize a closure. It's a PHP issue.
You can definately create a piece of code, store it and run eval or bind it to something and make it run like https://github.com/jeremeamia/super_closure does.
Back to doctrine, disable EAGER and use the real thing. In the end, the serializer should not be aware of doctrine, eloquent or prophel or any custom solution. It only handles with objects.
The only way I can actually make that work is actually write a Doctrine driver for the serializer (it's on the roadmap!) or detect that's a closure and force it to run. Yet, if it requires arguments it will fail.

Thanks, I already understood the issue. What I was really wondering was how did you manage to avoid it.
In this line from the readme example, you don't seem to be doing anything special but still get to serialize the entities related to the post object(comments, user, etc.). In my case, if I don't use the EAGER fetch mode, the related entities would not be fetched and I would only have closures.

@franbenz maybe I should fix that in the docs. Thanks for pointing that out.
I'm willing to add fixes to the serializer used to make life easier to the users of this library, not that it doesn't do lots already, but there are some rough edge-cases to handle such as closure and cyclical references.

If you give me some guidelines, I could fix the docs and create a pull request.

When I said I understood the issue, I didn't mean that I solved it. Could you help me avoid it?

I'm sorry, I read the mail notification of this comment where you originally said "Back to doctrine, disable EAGER and use the real thing." That was what puzzled me. Just now I read the current and edited comment and saw it says enable. And it all makes sense now.

This issue could maybe be handled by giving the option of using alternate serializers... This Bundle here uses the Symfony Serializer by default, JMS as an alternative and gives the option to use another: https://github.com/steffenbrem/JsonApiBundle
It's not actively being developed at the moment and doesn't provide the full spec like this one, but maybe it could be used for inspiration since you can serialize closures with JMS


Instant search

Describe the feature you'd like
When you search for something in the search bar, the results would be shown instantly as you type, not just when you validate the search.
Describe the benefits this feature would bring to BookStack users
Faster search, more convenient and elegant,

Strongly related to #1235

I'm going to close this off since I feel it's very much covered by #1235.


readme: Guide for installing on fresh Windows Subsystem for Linux

@DustinWehr ping with regards to #389

I modified his instructions for what worked for me. There are some differences. I didn't add instructions creating a new user. Just for running with root.

Looks good! An issue for me with running as root is getting

[WARNING] Running as root is not recommended
with every use of kompile, which is worrisome. It led me to googling about WSL security, which took a lot longer than simply changing the permissions. Whether it actually helps or not, it was the shortest path to obtaining the minimal comfort I require.

@ehildenb Are you ok merging like this? I guess there are cleaner ways to install K on non-root user than what's in Dustin's guide. But this is a good enough starter.

Let's just add a notice at the beginning which says "These instructions are for root user, make sure to create a non-root user to run as if you care not to do that" or something.

@ehildenb I added a new point with links to guides how to create a new user. Adding that sentence at the beginning might get confusing.

@dwightguth fixed. Added the command to change user, like Dustin din.

As I said, the default WSL user is /not/ root and we should not be telling people that because it will just confuse them. Nor should we be telling them to chown the installation as that is not necessary.

@dwightguth The way I installed it today, from WSLTools utility, it is root. But if one uses the install wizard from windows store, it probably prompts to create a new user. So you suggest deleting the whole part about creating/changing user?
I'll change the other part.

We should definitely give people the official Microsoft-supported instructions for installing WSL.

done


[PE-D][Tester A] find age allows some invalid input

When I try to search find a/15-10, it should be an invalid command, because the first number should be smaller than or equal to the second number. However, the command will run and give you nothing as the output.

Labels: severity.Low type.FunctionalityBug
original: L-rrrr/ped#9

While this behaviour is expected, we agree that it is not correct. Either an error message should be shown or the range should still work as intended.


[cmake] Skip regex when CMAKE_STATIC_LIBRARY_PREFIX is empty.

In platforms like Windows, there's no prefix for static libraries.
Interpolating it in the regex will end up with a regex "^", which seems
not to be valid. Since the regex was removing the prefix, we can simply
skip the operation and the result will be the same.
Also do the same for CMAKE_STATIC_LIBRARY_SUFFIX, even if in that case,
Windows will have a value (but if it is empty, it will fail trying to
create the regex).

Same fix in libdispatch: apple/swift-corelibs-libdispatch#452
Same fix in foundation: apple/swift-corelibs-foundation#1971

@swift-ci please test and merge

@swift-ci please smoke test


Client entity generator

Fixes #7
We should plan adding pagination/sort on a different PR but bootstrap-vue should deeply help us on this.

Bounty claimed https://opencollective.com/generator-jhipster/expenses/5559


Xenakios/SWS: Set previous/next fade in/out shape for items

In these 4 actions the fade shapes do not fit with those in the Media Item Properties window.
For some of the expected curves only a linear fade is set.
Xenakios/SWS: Set previous fade in shape for items
Xenakios/SWS: Set next fade in shape for items
Xenakios/SWS: Set previous fade out shape for items
Xenakios/SWS: Set next fade out shape for items

Possibly a Reaper bug? Same with Reascript code (eel):
it=GetSelectedMediaItem(0,0);
s=GetMediaItemInfo_Value(it,"C_FADEINSHAPE");
s+=1;
s>6 ? s=0;
SetMediaItemInfo_Value(it,"C_FADEINSHAPE",s);
UpdateTimeline();

The stock action

Item: Cycle through fade-in shapes

works though.

Thanks veto.
Confirmed here too (with a Lua script).
Xenakios also uses API GetSetMediaItemInfo() so Ithink it can be safely assumed it's a Reaper (API) bug.
https://github.com/reaper-oss/sws/blob/master/Xenakios/MoreItemCommands.cpp#L673

@udzele As a workaround you can make a custom action that calls cycle forward 6 times, which essentially moves you backwards one.

That's a great workaround!
Thanks Tim!


refactor(store): use react-query for bns name requests

Try out this version of the Hiro Wallet - download extension builds.

Closes #1801
Updates react query
Creates query folder for ReactQuery hooks, file name convention *.query.ts

Looks good ! We should merge all our refactor PRs as quickly as possible. @kyranjamie @fbwoolf @andresgalante Do we need QA for each PRs or is it not better this time that we merge everything then do QA regression at the end ?

We can do a smoke test of the changes on each PR and then do a full regression on the final PR. In order to make this work we need to change the final PR to have a downloadable "stacks-wallet-chromium" file. It currently is not generated the same way as the individual branch PRs.


Update run.launch.py

Added the path for the panda_config.yaml file. This is required to run the pick_place_demo example.

Cherry-picked #607.


optimize handling of 'incomplete' plot-files

create internal lookup with real number of nonces for plot-files, were size and specified size from filename does not match, to prevent checker from checking empty buffer.

I am mining while generating some files. Looks like miner uses unfinished files...

XPlotter blocks file for monopoly access while plotting

Right now I am creating plot files in subdirectory and move them to disk root after completion.

Yes, thats what i would suggest @k06a , miner will also (try to) mine unfinished plotfiles, if they are within the specified plotFilePaths ... depending on plotter used this may lead to undefined behavior ...


Use of deprecated xlink prefixed attributes (e.g. xlinkHref instead of href)

With SVG 2, the xlink: namespace is not necessary and attributes using it are deprecated.
I expect Svg.Attributes should reflect this change by, for example, exposing href instead of xlinkHref.
Ditto for xlinkActuate, xlinkHref, xlinkRole, xlinkShow, xlinkTitle, xlinkType.
More details on MDN

I see the href case, but can someone show that xlink:arcrole is definitively now called arcrole?
The broader claim here is that xlink is not used at all, and I want to verify that before making the change.

Weighing in here too: I just tried removing a custom element in favor of pure Elm, and using dual href | xlink:href does not work in Elm at the moment, because href is a read-only property in Svg.use and assigning it crashes at runtime.
Regarding browsers:

Safari only supports xlink:href
Firefox only supports href
Chrome supports both

I haven't tested other browsers yet
As it stands now I guess my custom element implementation gets to live a little longer^^


In example_test.go selenium.StorePointerActions is undefined because it needs to be called with a receiver.

example_test.go > Line 129
selenium.StorePointerActions(... is undefined
should be: wd.StorePointerActions(
example_test.go > line 146
selenium.StoreKeyActions(... is undefined
should be: wd.StoreKeyActions(

hello,
I was going to bring up the same issue :)
I think there was an evolution but the test has not been updated

Hello, for information. marwan-at-work had created a merge on https://github.com/tebeka/selenium/pull/268/commits/611488e94696744110dec03a73bc9e4ddb4bfb88 with the corrected.
He works on printing an HTML page (https://github.com/tebeka/selenium/pull/268)


Not able to call setState() inside onLayoutChange

I am using react-grid-layout to implement ResponsiveReactGridLayout and in onLayoutChange() function I am trying to do this.setState, but somehow its giving error saying setState is not a function. I already defined constructor.
Grid.js
import React, { Component } from 'react';
import ResizableAndMovable from 'react-resizable-and-movable';
import {Responsive, WidthProvider,ReactGridLayout} from 'react-grid-layout';
import Charts from './charts.js';
const ResponsiveReactGridLayout = WidthProvider(Responsive);
class Grid extends Component {
constructor(props){
super(props);
this.state = {
status :false
};
}

onLayoutChange(layout) {
   console.log(layout);
    this.setState({status : true});
}

getCharts(){
    return (

        <Charts  {...this.props} id={'Chart 1'}/>

);
}

render(){
    return (

 Panel Header

            <ResponsiveReactGridLayout className="layout"
                 breakpoints={{lg: 1200, md: 996, sm: 768}}
                 cols={{lg: 5, md: 3, sm: 2}}
                 onLayoutChange={this.onLayoutChange}>

                {this.getCharts()}

            </ResponsiveReactGridLayout>

    )
}

}
export default (Grid);

This is not an RGL problem, you are not binding your handler.

Sorry I am really new to react, can you please elaborate on my source code?

<EMAIL_ADDRESS>
ns04stars<EMAIL_ADDRESS>November 7, 2016 at 7:22 PM
Sorry I am really new to react, can you please elaborate on my source
code?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/STRML/react-grid-layout/issues/402#issuecomment-259017196,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJFP4AuO9FbCFCOUro-XqYbPGrfZlajks5q787kgaJpZM4Kr7GV.
ns04stars<EMAIL_ADDRESS>November 7, 2016 at 7:18 PM
I am using react-grid-layout to implement ResponsiveReactGridLayout
and in onLayoutChange() function I am trying to do this.setState, but
somehow its giving error saying setState is not a function. I already
defined constructor.
Grid.js
import React, { Component } from 'react';
import ResizableAndMovable from 'react-resizable-and-movable';
import {Responsive, WidthProvider,ReactGridLayout} from
'react-grid-layout';
import Charts from './charts.js';
const ResponsiveReactGridLayout = WidthProvider(Responsive);
class Grid extends Component {
constructor(props){
super(props);
this.state = {
status :false
};
|}
onLayoutChange(layout) {
console.log(layout);
this.setState({status : true});
}
getCharts(){
return (

<Charts {...this.props} id={'Chart 1'}/>
);
}
render(){
return (

 Panel Header

{this.getCharts()}

)
}
|
}
export default (Grid);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/STRML/react-grid-layout/issues/402, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABJFP3u9q3Onvo1lFxbO0sEaTEk9bqjcks5q783XgaJpZM4Kr7GV.

thanks for quick reply and help


Disable auto-indexing on packagehub

Previously, packagehub automatically scheduled LSIF indexing for repos.

You can manually trigger indexing with a curl -X POST request, which I what I have been doing. In the long-term pkghub should become obsolete as gitserver supports cloning maven repos and the lsif backend auto-schedules LSIF indexing of packageInformation vertexes


onUserJoined listener not triggered on iOS

I'm trying to make a video call between my iPhone 8 and my Samsung Galaxy S6 Edge.
The Samsung detects when a user joined the channel but doest not on the iPhone. I don't know why?
Environment:
React Native 0.59.8
react-native-agora:  2.8.0-alpha-1

@tmjordan
Can you reproduce this issue on the quick start

i can't install it on iOS, many build errors. I will try later, i'm a little busy right now.
But it seems to work well on android

Could u please paste the build errors here ? that I could help u to fixed the issue. @tmjordan

It seems you did duplicate link in your iOS project. In the current sdk, you didn't need add RCTAgora.xcodeproj manually, the react-native link react-native-agora will automatically setup the sdk correct. So let's do remove RCTAgora.xcodeproj from your library xcode project first, then run link command, and try to rebuild it again.

I did nothing, but RCTAgora.xcodeproj was already there after linking the project using react-native link react-native-agora.
I tried to remove RCTAgora.xcodeproj, and link again (even if it says that the project is already linked). After doing that, now i have this error :

I want to say also, that there is a problem with RCTBridgeModule, but i fixed by following this workaround: https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found
I will try to test with a new project

@Matrixbirds I managed to make it to work, by creating a new project which uses autolinking with the last version
of react native. And the video call works very well, so my problem is probably related to my code i think, i'll check it again later.
I think we should update the quickstart project to make it simple to test and also update the readme according to the last version of the lib.


minor cleanup for build issues related to the manual

Signed-off-by: Mike Brown<EMAIL_ADDRESS>

Thanks!


Report: Local GITW Details

Show the GITW effectiveness details by team member. Bonus points for being able to show the whole quarter's details in an easy to consume manner.

I took a stab at this in Pull Request: https://github.com/pdarg/tmlpstats/pull/74

Pull request #124


Update automatic deployment for nightly

To do

Change MUP to MUPx
Check all configuration settings so that they are aligned with other production settings

Not so urgent now as I thought, nightly.apinf.io became green after last weekend. Some issues in travis-ci service probably.

Done, also Github register/login works now, as fixed env variables.


Use of undefined constant CRAFT_TESTS_PATH - codecept

Describe the bug
Upon installation of the plugin with tests and installing the dependencies ready for plugin testing I encountered an error relating to an undefined constant.
To reproduce
Steps to reproduce the behaviour:

Download the generated plugin in the attachments or use the online generator with the following settings:

magiclogin (1).zip
Move into the directory on the Command line that the plugin is installed in
Run php vendor/bin/codecept
See the error attached:

Expected behaviour
Codecept command should run with no errors in the output.
Screenshots
Attached as various steps above.
## To Fix
In order to fix this according to the craft documentation you can add the following into the _bootstrap.php file:
define('CRAFT_TESTS_PATH', __DIR__);

I'm happy to do this and submit a PR but wanted to log this issue to check it wasn't as designed.
Versions

Plugin version: 1.6.0
Craft version: 3.6.7

Submitting this via PR would be wonderful!


new-versions(0.1.2) | Added three new hooks: useHover, useClipboard, and useMediaQuery, along with organizing the codebase and adding test files for each hook.

Description

Added three new hooks:

useHover: Easily detect hover state on elements.
useClipboard: Simplify clipboard interactions.
useMediaQuery: checking if a specific media query matches the current viewport.

Organized the codebase for better maintainability.

Added test files for each hook to ensure functionality and reliability.

Released version 0.1.2.

Checklist

[x] New hooks implemented and tested.
[x] Codebase formatted and organized.
[x] Version updated to 0.1.2.

Related Issues

None

Test Log All
$ vitest test

 DEV  v2.1.8 /home/administrator/Desktop/hooks

 ✓ src/use-clip-board/use-clip-board.test.ts (2)
 ✓ src/use-hover/use-hover.test.ts (3)
 ✓ src/use-in-viewport/use-in-viewport.test.ts (6)
 ✓ src/use-local-storage/use-local-storage.test.ts (7)
 ✓ src/use-media-query/use-media-query.test.ts (3)
 ✓ src/use-queue/use-queue.test.ts (9)
 ✓ src/use-scroll/use-scroll.test.ts (8)
 ✓ src/use-singleton/use-singleton.test.ts (7)
 ✓ src/use-window-scroll/use-window-scroll.test.ts (5)
 ✓ src/utils/rescue.test.ts (3)

 Test Files  10 passed (10)
      Tests  53 passed (53)
   Start at  15:30:04
   Duration  9.79s (transform 392ms, setup 2.96s, collect 500ms, tests 833ms, environment 10.27s, prepare 1.68s)

 PASS  Waiting for file changes...

Thank you @NekoSakuraLucia I really appreciate you taking the time to add this changes :pray: .

Thank you @NekoSakuraLucia I really appreciate you taking the time to add this changes 🙏 .

It's okay, I just wanted to add it because I'm also using your package.


Replace Twig LineItem types with constants

1. Why is this change necessary?
Replace LineItem type strings with constants to avoid possible future breaks.
2. What does this change do, exactly?
Replaced Twig LineItem type strings in

src/Storefront/Resources/views/storefront/component/checkout/offcanvas-item.html.twig
src/Storefront/Resources/views/storefront/page/account/order-history/order-detail-list-item.html.twig
src/Storefront/Resources/views/storefront/page/account/order-history/order-item.html.twig
src/Storefront/Resources/views/storefront/page/checkout/checkout-aside-item.html.twig
src/Storefront/Resources/views/storefront/page/checkout/checkout-item.html.twig

with the equivalent constants located in src/Core/Checkout/Cart/LineItem/LineItem.php.
3. Describe each step to reproduce the issue or behaviour.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have written tests and verified that they fail without my change
[ ] I have squashed any insignificant commits
[x] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/NEXT-17683
Please use this issue to track the state of your pull request.

Hi @PheysX,
thanks for your contribution 💙


Educational Materials Section

https://catboost.ai/docs/concepts/tutorials.html

https://community.frontity.org/t/useful-resources-about-frontity/247

Add reference to frontity-example
https://community.frontity.org/t/simplify-the-examples-in-examples-in-the-main-frontity-repo/2389/9?u=juanma

Duplicated: https://github.com/frontity/docs/issues/143

Closed as there's already a Resources category in the Community Forum
https://community.frontity.org/c/community/resources/15


Use shared property for automounts

I found that the existing method wasn't working for me - I kept getting the "too many levels of symbolic links" error from the automounted directories. This is a proposal for an alternative method that seems to work for me.
See man podman-run, search for bind-propagation, for what it is doing. I think it is okay to make the container mounts visible on the host since they are alaready visible where mounted on the host. Is this a correct assumption?

Good work Andy, how did you find out about this! I thought this was awaiting a bug fix.

I don't understand the question about making mounts visible on the host as I don't see much detail in man podman-run. Where did you get details on this?

I got the idea from Google. The option is explained in man-podman-run as:
       Mounts propagation

       By default bind mounted volumes are private. That means any mounts done
       inside  container  will  not be visible on host and vice versa. One can
       change this behavior by specifying a volume mount propagation property.
       Making  a  volume shared mounts done under that volume inside container
       will be visible on host and vice versa. Making a volume  slave  enables
       only  one  way  mount propagation and that is mounts done on host under
       that volume will be visible inside container  but  not  the  other  way
       around. [1] ⟨#Footnote1⟩

       To  control  mount  propagation  property  of  a volume one can use the
       [r]shared, [r]slave, [r]private or the [r]unbindable propagation  flag.
       For  mount  propagation to work the source mount point (the mount point
       where source dir is mounted on) has to have the right propagation prop‐
       erties.  For  shared  volumes, the source mount point has to be shared.
       And for slave volumes, the source mount point has to be  either  shared
       or slave. [1] ⟨#Footnote1⟩

We didn't understand what the reference to the propagation of the source mount point means so read man mount:
   Shared subtree operations
       Since  Linux 2.6.15 it is possible to mark a mount and its submounts as
       shared, private, slave or unbindable.   A  shared  mount  provides  the
       ability  to  create mirrors of that mount such that mounts and unmounts
       within any of the mirrors propagate to the other mirror.  A slave mount
       receives  propagation  from  its master, but not vice versa.  A private
       mount carries no propagation abilities.  An unbindable mount is a  pri‐
       vate  mount  which  cannot  be  cloned  through  a bind operation.  The
       detailed semantics are documented in  Documentation/filesystems/shared‐
       subtree.txt file in the kernel source tree.

I take this to mean that with private (the default) an automount that appears on the host after the container started won't be visible to the container, whereas with shared (or slave) it will be. But I admit this is a reverse-engineering of a convenient explanation without fully understanding the mechanism.

@aawdls this looks all good. It works for me and I have  added the same options to the devcontainer.json.
Please can you try opening the devcontainer in vscode and it works for you then go ahead and merge.

Dev container works. I saw the initializeCommand to do the ls was still there so I have removed it, is that right?

Oh right yes that needed removing thanks!


Skip past bower_components to find project

Refining my notion of "what does a PureScript project look like".
I guess technically a folder could be called not_bower_components or just have that name without being such a thing...

Gotta admit that feels a bit hacky, but I think it's fine.


Add support for upload streaming

HttpClient::Stream and HttpClient::Request only support a fixed size body that is known when the request is triggered.
Interface might need to be enhanced to allow providing ongoing data packets to be transmitted after the initial request has been made.

Hi @gabiz
pull request for chunked upload feature at stellite::HttpClient.
to apply chunked upload

set true value for stellite::HttpRequest.is_chunked_upload
create http client (stellite::HttpClient)
call AppendChunkToUpload method

And I also apply server chunked upload but not tested.
but I think using this pull request is much helpful for your task

now stellite add unittest for stellite_http_client, and stellite_quic_proxy_server
now we able to check a quic protocol working either vaild or not.


refactor route reconcilation

This PR is a refactor of the route reconcilation with a change needed for https://issues.redhat.com/browse/HOSTEDCP-572
Private routes for oauth and kube-apiserver are now seperate and the resource name is suffixed with -private and the route has a new hypershift.openshift.io/private-route label.
When the HCP router is deployed in an endpointAccess: Private mode, it will only admit routes with the new label.  This prevents it from admitting the public routes with the wrong routerCanonicalHostname during a Private -> PublicAndPrivate transition.
The refactor combines all route reconciliation on a common path in the util package in separate ReconcilePublicRoute and ReconcilePrivateRoute functions.
Note: This leaves the kube-apiserver-internal orphaned on upgrade as the new route name is kube-apiserver-private and the host is api.$hcpName.hypershift.local, like the other private routes, rather than kubernetes.default.  The spec.host of this route has no function as the haproxy template we inject makes the kube-apiserver-private route the default backend.

/retest-required

/test e2e-aws

/retest-required

/retest-required

@sjenning overall this lgtm, however we had recently moved away from public/private to external/internal names for stuff. I see you reverted to public/private, any particular reason?

/test unit

/lgtm
/retest-required

OIDC provider cleanup is complete
/retest-required

/hold cancel
/retest-required


[HBASE-22606] : BucketCache improvement with additional tests

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
62
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ master Compile Tests _

+1
mvninstall
282
master passed

+1
compile
52
master passed

+1
checkstyle
75
master passed

+1
shadedjars
274
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
210
master passed

+1
javadoc
33
master passed

_ Patch Compile Tests _

+1
mvninstall
249
the patch passed

+1
compile
53
the patch passed

+1
javac
53
the patch passed

+1
checkstyle
73
hbase-server: The patch generated 0 new + 43 unchanged - 1 fixed = 43 total (was 44)

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
273
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
767
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
247
the patch passed

+1
javadoc
37
the patch passed

_ Other Tests _

+1
unit
8512
hbase-server in the patch passed.

+1
asflicense
23
The patch does not generate ASF License warnings.

11553

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 2178654b0d2b 4.4.0-131-generic #157~14.04.1-Ubuntu SMP Fri Jul 13 08:53:17 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / e14b5f0edc

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/1/testReport/

Max. process+thread count
4674 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

Please let me know if the changes look good @wchevreuil

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
46
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ master Compile Tests _

+1
mvninstall
301
master passed

+1
compile
61
master passed

+1
checkstyle
77
master passed

+1
shadedjars
281
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
233
master passed

+1
javadoc
34
master passed

_ Patch Compile Tests _

+1
mvninstall
254
the patch passed

+1
compile
57
the patch passed

+1
javac
57
the patch passed

+1
checkstyle
76
hbase-server: The patch generated 0 new + 43 unchanged - 1 fixed = 43 total (was 44)

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
278
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
802
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
250
the patch passed

+1
javadoc
37
the patch passed

_ Other Tests _

+1
unit
14232
hbase-server in the patch passed.

+1
asflicense
47
The patch does not generate ASF License warnings.

17421

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 45c966a7ab92 4.4.0-137-generic #163~14.04.1-Ubuntu SMP Mon Sep 24 17:14:57 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 5a9d877565

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/2/testReport/

Max. process+thread count
5019 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/2/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@wchevreuil Could you please review once? I would work on changes if you feel this doesn't look good.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
23
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ master Compile Tests _

+1
mvninstall
255
master passed

+1
compile
51
master passed

+1
checkstyle
68
master passed

+1
shadedjars
257
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
201
master passed

+1
javadoc
32
master passed

_ Patch Compile Tests _

+1
mvninstall
229
the patch passed

+1
compile
54
the patch passed

+1
javac
54
the patch passed

+1
checkstyle
64
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
255
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
787
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
183
the patch passed

+1
javadoc
34
the patch passed

_ Other Tests _

+1
unit
8751
hbase-server in the patch passed.

+1
asflicense
35
The patch does not generate ASF License warnings.

11593

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 08d18cdfd9d2 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 6d08ffcfc6

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/3/testReport/

Max. process+thread count
4514 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/3/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
173
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ master Compile Tests _

+1
mvninstall
249
master passed

+1
compile
51
master passed

+1
checkstyle
67
master passed

+1
shadedjars
266
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
198
master passed

+1
javadoc
34
master passed

_ Patch Compile Tests _

+1
mvninstall
236
the patch passed

+1
compile
51
the patch passed

+1
javac
51
the patch passed

+1
checkstyle
67
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
263
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
732
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
191
the patch passed

+1
javadoc
33
the patch passed

_ Other Tests _

-1
unit
16299
hbase-server in the patch failed.

+1
asflicense
24
The patch does not generate ASF License warnings.

19236

Reason
Tests

Failed junit tests
hadoop.hbase.master.TestMasterShutdown

hadoop.hbase.client.TestFromClientSideWithCoprocessor

hadoop.hbase.namespace.TestNamespaceAuditor

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/4/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 2853ec327c56 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 9aee88e03a

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/4/artifact/out/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/4/testReport/

Max. process+thread count
4749 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/4/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
5
https://github.com/apache/hbase/pull/324 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/6/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
5
https://github.com/apache/hbase/pull/324 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/7/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
5
https://github.com/apache/hbase/pull/324 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/8/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
5
https://github.com/apache/hbase/pull/324 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/324

JIRA Issue
HBASE-22606

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-324/9/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@wchevreuil the branch has all master commits, not sure why the build is giving -1 for patch


feat: added Qwen 2.5 Coder 32B (Open Router)

Tested, it works, it's better than other open-source models, the best so far in my opinion.

Tagging this openrouter support for capture in #276 post provider refactor.

There is support for dynamic model list in other PR for OpenRouter
No need to hardcode models when it will go in

Awesome, close this one when you merge the other one.

Was just merged

Awesome!!


tooltip shows UTC time

tooltip shows UTC time instead of local time

noticed the title prop a bit too late


make error - undefined: varlinkapi.New

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm following the installation doc to build podman from scratch for version 2.0.0-rc1 on fedora 32. An error happens while doing the make step: undefined: varlinkapi.New. I didn't see this when I make for previous versions.

Steps to reproduce the issue:

cd go/src/github.com/containers/
wget https://github.com/containers/libpod/archive/v2.0.0-rc1.tar.gz
tar -xzvf v2.0.0-rc1.tar.gz
cd libpod-2.0.0-rc1/
export GOPATH=~/go
make BUILDTAGS="selinux seccomp"

Describe the results you received:
[root@localhost libpod-2.0.0-rc1]# make BUILDTAGS="selinux seccomp"
make: Warning: File 'Makefile' has modification time 24498 s in the future
mkdir -p "/root/go/src/github.com/containers"
ln -sfn "/root/go/src/github.com/containers/libpod-2.0.0-rc1" "/root/go/src/github.com/containers/libpod"
ln -sfn "/root/go/src/github.com/containers/libpod-2.0.0-rc1/vendor/github.com/varlink" "/root/go/src/github.com/varlink"
touch .gopathok
# Only generate the varlink code on Linux (see issue #4814).
GO111MODULE=off go generate ./pkg/varlink/...
fatal: not a git repository (or any of the parent directories): .git
Podman is being compiled without the systemd build tag. Install libsystemd on 	Ubuntu or systemd-devel on rpm based distro for journald support.
GO111MODULE=on go build -mod=vendor  -gcflags 'all=-trimpath=/root/go/src/github.com/containers/libpod-2.0.0-rc1' -asmflags 'all=-trimpath=/root/go/src/github.com/containers/libpod-2.0.0-rc1' -ldflags '-X github.com/containers/libpod/libpod/define.gitCommit= -X github.com/containers/libpod/libpod/define.buildInfo=1589798152 -X github.com/containers/libpod/libpod/config._installPrefix=/usr/local -X github.com/containers/libpod/libpod/config._etcDir=/etc ' -tags "ABISupport selinux seccomp" -o bin/podman github.com/containers/libpod/cmd/podman
# github.com/containers/libpod/pkg/domain/infra/abi
pkg/domain/infra/abi/system.go:37:3: undefined: varlinkapi.New
make: *** [Makefile:184: bin/podman] Error 2

Describe the results you expected:
make successfully
Additional environment details (AWS, VirtualBox, physical, etc.):
# hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: d67f983da189a241a6bfe30d8774b0b2
           Boot ID: efcfae8632fa422dbdca04fc42bca9ef
    Virtualization: kvm
  Operating System: Fedora 32 (Server Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:32
            Kernel: Linux 5.6.6-300.fc32.x86_64
      Architecture: x86-64

hmm, rawhide rpmbuilds work fine with BUILDTAGS  https://koji.fedoraproject.org/koji/packageinfo?packageID=26289 , but that's because they don't run make for building. Looking...

@Edward5hen can you try make BUILDTAGS="varlink selinux seccomp". The varlink tag needs to be specified.
@baude @jwhonce @vrothberg do we expect this to succeed without the varlink tag?

make BUILDTAGS="selinux seccomp"

I believe we need varlink. make {binaries, podman, podman-remote} set the build tags automatically. I recommend use these targets for building.

The make BUILDTAGS="selinux seccomp" in the installation docs refers to building runc. Maybe there was a confusion around that?

I would 100% expect Podman to build successfully without Varlink - that's a tag we added ourselves to gate whether Varlink support was added to the build.

I would 100% expect Podman to build successfully without Varlink - that's a tag we added ourselves to gate whether Varlink support was added to the build.

# github.com/containers/libpod/pkg/domain/infra/abi ... I assume the varlink API isn't guarded by the build tag

I would 100% expect Podman to build successfully without Varlink - that's a tag we added ourselves to gate whether Varlink support was added to the build.

# github.com/containers/libpod/pkg/domain/infra/abi ... I assume the varlink API isn't guarded by the build tag

thanks, I'll look into this..

@Edward5hen can you try make BUILDTAGS="varlink selinux seccomp". The varlink tag needs to be specified.
@baude @jwhonce @vrothberg do we expect this to succeed without the varlink tag?

@lsm5 this issue is not seen if I add the tag varlink - make BUILDTAGS="varlink selinux seccomp"

Yes we need to be able to build without varlink.

FWIW, I cannot reproduce on latest master on F32.

yes, I see that too. I'll update my PR to only get rid of the go generate step when building without varlink and not specify varlink tag by default.


refine flake-parts interface (translators)

Currently the translator field accepts any string, and also there is no documentation for the translator options which differ between the individual translators.
I think in order to have nice documentation for the translators, they each need to have their own options like:
{
  perSystem.dream2nix.inputs.<name>.projects.<name>.translator = "package-lock";
  perSystem.dream2nix.inputs.<name>.projects.<name>.translatorArgs.package-lock.nodejs = 18;
}

While touching the translators, we should probably also:

move them to /src/module to follow the same schema like our other modules. Currently translators still reside in /src/subsystems/{subsystem}/translators
after doing the same with builders and discoverers, this will allow us to get rid of our legacy module loading mechanism defined in src/modules/subsystem-loading.nix

I started implementing this via https://github.com/nix-community/dream2nix/pull/425. So far I only moved the package-lock translator as an example


Updated blueprint for git ignore with VS Code

https://github.com/github/gitignore/blob/a0df192f5271ad4d35a36c163d768e2db656b9fe/Global/VisualStudioCode.gitignore
Updated the git ignore template for VS Code Editor to not ignore the work-space settings.
Was trying to workout why everyone was having different indentation at work until I realised the default git ignore for vscode is really wrong :(

I signed it!
On Fri, Dec 9, 2016 at 1:14 AM, googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/pull/3477#issuecomment-265797268,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2qjRD1nhcKNt14hZosEeE0PuhzmReRks5rGDr9gaJpZM4LIEJx
.

--
Kind Regards,
Phillip Haydon
www.philliphaydon.com

Hi @phillip-haydon,
We believe that VSCode settings are a personal thing and should not be committed to a team's repo. This will not be merged as it is easy to change if you're the only one using the repo and the more common case (git shared amongst multiple people) would not benefit from this.
Cheers.

@hansl You believe that... but VSCode believes different...
https://twitter.com/code/status/806905092137881600

Visual Studio Code @code 49m
@philliphaydon you cannot - the .vscode folder ideally should not be ignored.

By ignoring it as default you prevent team settings.

Can you add a flag to the cli to not generate a git ignore then?

I would also prefer to have this PR in since VSCode user as myself. Nobody will get hurt if there is .vscode folder in, I think.

Apparently you're right; the TypeScript team suggests to have the VSCode folder committed. (also found this with more info). Apparently for personal settings you should use your user config, not the project one. My bad.
I'll merge this.

Thanks a lot @hansl

Instead of whitelisting those 4 files and ignoring everything else, you may want to allow the whole folder, in case vscode adds more in the future. I think there are some extensions that keep workspace-specific files in that folder too. I'm not sure what you're expecting to exclude.

The same reasoning could be applied to other IDEs like WebStorm; currently the whole .idea folder is ignored.

@roblourens I was just following the git ignore GitHub template which I've used in the past. I'm unaware of any extensions that add files into the folder. But a lot modify the settings.json
@mgol I'm sure there are problems in this git ignore for other Editors. But I have no experience in those to recommend any changes.

I remain convinced that this is a personal/team matter.
Remember that you can force-commit settings for your repository and team if you want. But the CLI should take a more conservative approach and  should git-ignore them by default.
My $0.02

@mgol .idea is different because WebStorm puts everything (personal configurations and project configurations) into a single file. We would have to ignore parts of .idea/workspace.xml which is impossible with git.

@wardbell considering this is best practice from the VSCode team itself, I say it's safe to follow and tell people to ignore their whole vscode directory if it doesn't fit their need.


Switch to pyviz main channel for pyctdev on CI

The test failure appears to be unrelated to this change. (Maybe a notebook needs a longer timeout?)


Use extends ChiselEntity in multiple places in chisel.ts.

We already do <T extends ChiselEntity> in multiple places, this makes it slightly more coherent.

How can this be tested?

I don't think it can be tested :thinking:  Or at least can't think of a way to do it. We can't have check that all static methods have a template arg that extends ChiselEntity as there can be other methods that don't by design.
I this case, I think we just need to remember to do it :man_shrugging:


List.split

It would be great if there was an analogue to String.split on List. It would take a predicate and return an Iterable of Iterables or a List of Lists or some such.
For example here I have a bunch of lines and I want to separate them at each empty line so that each block of text is in its own list.

Sounds like either grouping or splitting, depending on the perspective (perhaps whether the matches are included or not).
String split is "easy" because we have the Pattern class to specify a match that can span multiple characters, and we have a Match class to represent the match. Also, the match doesn't include the parts between matches, but strings are random-access so that's not a a problem.
If we try to generalize that. it should work on lists, not iterables, and the match would represent a sequence of list elements.
(And that's where it becomes annoying that strings aren't just Uint16 lists, then it would really generalize :)
All in all, it sounds fairly specialized (or if generalized completely, perhaps to general to be easy to use). I'm not sure it's worth putting directly on the List class, but it should be simple to make a utility function that just splits in single elements:
Iterable<List<T>> split<T>(List<T> elements, bool test(T element),
                       { bool emptyParts = false }) sync {
  int start = 0;
  for (int i = 0; i < elements.length; i++) {
    var element = elements[i];
    if (test(element)) {
      if (start < i || emtyParts) {
        yield elements.sublist(start, i);
      }
      start = i + 1;
    }
  }
  if (start < elements.length || emptyParts) {
    yield elements.sublist(start);
  }
}

We now have splitAfter, splitBefore and splitBetween extension methods in package:collection.
That should be sufficient for most predicate-based attempts to split a list.
We don't currently plan to support anything requiring a "list pattern".

I'm currently working on a project that consists of porting a python library to dart, and I came across this urge to split a list based on a specific element and I saw that python has a native List.split.
I made this implementation below that solved my problem but it would be interesting if the class list was richer like in python, c# and java.

static List<List<T>> splitList<T>(List<T> list, dynamic splitBy) {
    var results = <List<T>>[];
    var result = <T>[];
    //var count = 0;
    for (var item in list) {
      if (item == splitBy) {
        results.add(result);
        result = [];
      } else {
        result.add(item);
      }
    }

    return results;
  }
  //Example:
  const int NULL_BYTE = 0;
  var bytes = [12, 24, 0, 50, 47, 0];
  print(Utils.splitList(bytes, NULL_BYTE));
  //Result [[12, 24], [50, 47]]

At this point you'd probably use an extension method (added to Dart in version 2.7, Dec 2019):
extension IterableSplit<T> on Iterable<T> {
  List<List<T>> split(Object? splitBy) {
    var results = <List<T>>[];
    var result = <T>[];
    for (var item in this) {
      if (splitBy == item) {
        results.add(result);
        result = [];
      } else {
        result.add(item);
      }
    }
    return results;
  }
}

void main() {
  const int nullByte = 0;
  var bytes = [12, 24, 0, 50, 47, 0];
  print(bytes.split(nullByte)); // '[[12, 24], [50, 47]]'.
}

The problem here can be solved by spliteBefore or splitAfter, if you don't mind having the empty line in one of the parts.
Splitting a list and removing some of the elements (just one here, but why not generalize?) brings us back to the "sublist pattern" problem, where you need to recognize which slices to include and which to exclude.
(For example, what would you do if text blocks are split by two empty lines?)
That sounds more like a design like:
extension Split<T> on Iterable<T> {
   /// Splits elements into lists.
   ///
   /// Starts a list at the start, and runs until [startSplit] returns true for an element.
   /// That becomes the first list emitted.
   /// Then skips elements until [endSplit] returns true, *starting with the same element again*.
   /// The first element where [endSplit] returns true is the first element of the next list,
   /// which the continues adding elements until [startSplit] returns true for a new element.
   Iterable<List<T>> splitAround(bool Function(T) startSplit, bool Function(T) endSplit) sync* {
     List<T>? list = [];
     bool first = true;
     for (var element in this) {
       if (list != null) {
         if (startSplit(element)) {
           if (list.isNotEmpty) yield list;
           list = null;
         } else {
           list.add(element);
           continue;
         }
       }
       if (endSplit(element)) {
         list = [element];
       }
     }
     if (list != null && list.isNotEmpty) yield list;
   }
}

This is a completely general "snip elements into non-overlapping sublist" function.
Even with that generality, I'm not sure it's actually needed often enough that it belongs in package:collection.

 List<List<T>> splitList<T>(List<T> inputList, dynamic splitBy) {
    var list = inputList.last == splitBy ? inputList : [...inputList, splitBy];
    var results = <List<T>>[];
    var result = <T>[];
    for (var item in list) {
      if (item == splitBy) {
        if (result.isNotEmpty) {
          results.add(result);
        }
        result = [];
      } else {
        result.add(item);
      }
    }
    return results;
  }

var data = [0, 0, 0, 10, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54, 45, 80, 76, 85, 83, 0, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54, 0, 0];

var dataParts =  splitAround(data, (v) => v == NULL_BYTE, (v) => v != NULL_BYTE);
print(dataParts);

//Result: [[10, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54, 45, 80, 76, 85, 83], [83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54]]

var dataParts = splitList(data, NULL_BYTE);
print(dataParts);
//Result: [[10, 83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54, 45, 80, 76, 85, 83], [83, 67, 82, 65, 77, 45, 83, 72, 65, 45, 50, 53, 54]]


fix: add release workflow

Fixes #156

IMHO you need to make a PR to change https://github.com/projectatomic/studio-extension/blob/main/.github/workflows/build-next.yaml#L61 first
so each build after CI won't use latest rolling tag but another one ci, dev, whatever option you feel is better


Dependencies not generated with nuget spec on project

The statement:
"Note: When creating a .nuspec from a project using nuget spec, dependencies that exist in that project are automatically included in the resulting .nuspec file."
Does not do any such thing.  Reviewing the generated .nuspec file after generating it based off the project file shows no dependencies when dependent packages are included in the built package.  Frankly the documentation for dependencies is poor.   Do we rely on PackageReferences, packages.config or only dependencies in .nuspec file?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 06a19d7d-253d-f17f-6421-624c9867473d
Version Independent ID: cc37eb17-f715-080c-7bfc-9eae868d50ba
Content: .nuspec File Reference for NuGet
Content Source: docs/reference/nuspec.md
Product: nuget
GitHub Login: @karann-msft
Microsoft Alias: karann

@jeffsdevinfo I suspect the text you quoted may have been written before PackageReference existed, so I wouldn't be surprised if dependencies are automatically added only for packages.config projects. Hopefully at some point I'll find time to check and add a comment to the docs.
I'm not sure what you mean by this:

Do we rely on PackageReferences, packages.config or only dependencies in .nuspec file?

Rely on for what purpose?
PackageReferences and packages.config are related to projects, while dependencies are related to a package. So, they don't have the same scope.
In case you're not already aware, if you're creating a .nuspec because you want to create a nuget package, if you're able to convert your project to SDK style projects, you can use dotnet pack, which will automatically generate the nuspec from project properties, including dependencies. Unless you have some advanced scenario that isn't supported by SDK project packing, or you're unable to migrate to SDK projects, then I suggest that using SDK projects to create your nupkgs is easier than creating nuspec files and packing yourself.

@zivkan - yes that text has been there for years (just search on the linked page to find it), and this has never worked properly. If you have a project that references 3 nuget packages and two other projects in the solution and you issue a nuget spec for that proj file, the resulting nuspec does not contain those 3 nuget packages as dependencies nor does it include the two other project outputs in the files element.

dependencies are related to a package

@zivkan - this is not true. A project's referenced assemblies and referenced projects (and other artifacts) are also dependencies. They will also usually be a nuget package's dependency in one way or another.
This is actually another example of the communication issues the NuGet team tends to create. Content Files vs contentFiles is a similar one.

Looks like a duplicate to #1135, which describes some different scenarios.

Updating docs, per #1135


main

This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Maven Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
  contents: read
  packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
  uses: actions/setup-java@v2
  with:
    java-version: '11'
    distribution: 'adopt'
    server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
    settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
  run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
  run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
  env:
    GITHUB_TOKEN: ${{ github.token }}

#qpy:webapp:Hello QPython
#qpy://<IP_ADDRESS>:8080/
"""
This is a sample for qpython webapp
"""
from bottle import Bottle, ServerAdapter
from bottle import run, debug, route, error, static_file, template
######### QPYTHON WEB SERVER ###############
class MyWSGIRefServer(ServerAdapter):
server = None
def run(self, handler):
from wsgiref.simple_server import make_server, WSGIRequestHandler
if self.quiet:
class QuietHandler(WSGIRequestHandler):
def log_request(*args, **kw): pass
self.options['handler_class'] = QuietHandler
self.server = make_server(self.host, self.port, handler, **self.options)
self.server.serve_forever()
def stop(self):
    import threading
    threading.Thread(target=self.server.shutdown).start()
    self.server.server_close()

######### BUILT-IN ROUTERS ###############
@route('/__exit', method=['GET','HEAD'])
def __exit():
global server
server.stop()
@route('/assets/filepath:path')
def server_static(filepath):
return static_file(filepath, root='/sdcard')
######### WEBAPP ROUTERS WRITE YOUR CODE BELOW###############
@route('/')
def home():
return template('Hello {{name}} !View code >> About QPython Web App',name='QPython')
######### WEBAPP ROUTERS ###############
app = Bottle()
app.route('/', method='GET')(home)
app.route('/__exit', method=['GET','HEAD'])(__exit)
app.route('/assets/filepath:path', method='GET')(server_static)
try:
server = MyWSGIRefServer(host="<IP_ADDRESS>", port="8080")
app.run(server=server,reloader=False)
except Exception as ex:
errs = "Exception: %s" % repr(ex)
print(errs)
#qpy:webapp:Hello QPython
#qpy://<IP_ADDRESS>:8080/
"""
This is a sample for qpython webapp
"""
from bottle import Bottle, ServerAdapter
from bottle import run, debug, route, error, static_file, template
######### QPYTHON WEB SERVER ###############
class MyWSGIRefServer(ServerAdapter):
server = None
def run(self, handler):
from wsgiref.simple_server import make_server, WSGIRequestHandler
if self.quiet:
class QuietHandler(WSGIRequestHandler):
def log_request(*args, **kw): pass
self.options['handler_class'] = QuietHandler
self.server = make_server(self.host, self.port, handler, **self.options)
self.server.serve_forever()
def stop(self):
    import threading
    threading.Thread(target=self.server.shutdown).start()
    self.server.server_close()

######### BUILT-IN ROUTERS ###############
@route('/__exit', method=['GET','HEAD'])
def __exit():
global server
server.stop()
@route('/assets/filepath:path')
def server_static(filepath):
return static_file(filepath, root='/sdcard')
######### WEBAPP ROUTERS WRITE YOUR CODE BELOW###############
@route('/')
def home():
return template('Hello {{name}} !View code >> About QPython Web App',name='QPython')
######### WEBAPP ROUTERS ###############
app = Bottle()
app.route('/', method='GET')(home)
app.route('/__exit', method=['GET','HEAD'])(__exit)
app.route('/assets/filepath:path', method='GET')(server_static)
try:
server = MyWSGIRefServer(host="<IP_ADDRESS>", port="8080")
app.run(server=server,reloader=False)
except Exception as ex:
errs = "Exception: %s" % repr(ex)
print(errs)
"""
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
"""
The MIT License (MIT)
Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER (AUTHORS BY LuCiFer[LittleHuMan]
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""[OTHER DEALINGS IN]
------Little-HuMantitle: Hello Worldintro: 'Follow this Hello World exercise to get started with {% data variables.product.product_name %}.'versions: fpt: '' ghes: '' ghae: '' ghec: ''type: quick_starttopics:versions:5.1 fpt: ''README.md ghes: ''main ghae: ''main ghec: ''maintype: python 2.7.15topics:script/cibuild - Pull requests - FundamentalsminiTocMaxHeadingLevel: 3---
lucifer## Introduction
{% data variables.product.product_name %} is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
This tutorial teaches you {% data variables.product.product_name %} essentials like repositories, branches, commits, and pull requests. You'll create your own Hello World repository and learn {% data variables.product.product_name %}'s pull request workflow, a popular way to create and review code.
In this quickstart guide, you will:
In this quickstart guide, you will: {% data variables.product.product_name %} is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

Create and use a repository* Start and manage a new branch@@ -142,4 +143,5 @@ Here's what you accomplished in this tutorial:
Take a look at your {% data variables.product.product_name %} profile and you'll see your work reflected on your contribution graph.
For more information about the power of branches and pull requests, see "GitHub flow." For more information about getting started with {% data variables.product.product_name %}, see the other guides in the getting started quickstart.For more information about the power of branches and pull requests, see "GitHub flow." For more information about getting started with {% data variables.product.product_name %}, see the other guides in the getting started quickstart.From 8d596411386721504b668fa0e7e76c253b49587d Mon Sep 17 00:00:00 2001 From: LittleHuman1<EMAIL_ADDRESS>Date: Sun, 26 Dec 2021 01:38:55 +0630 Subject: [PATCH] README.md pkg update pkg upgrade apt update apt upgrade pkg install python2 apt install git pkg install git -y pip2 install lolcat pip2 install requests pip2 install mechanize pkg install git git clone https://github.com/LittleHuMan/main.git cd LittleHuMan chmod +x * ls python2 main.py --- LittleHuMan | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 LittleHuMan diff --git a/LittleHuMan b/LittleHuMan new file mode 100644 index 0000000..ba32426 --- /dev/null +++ b/LittleHuMan @@ -0,0 +1,6 @@ +main +feature +main

[ ] ### +story
Cracker-Tool-4.7.zip
.txt +story-joe-edit.txt


About the environment.

Good job .
I have some questions about environment configuration.
May I know the detailed configuration of your environment and the version of Python you are using?
Thank you !

I will update this repository and add relevant materials around the end of June.

Hello. I will update this repository and add relevant materials around the end of June.

I'm looking forward to your updates for this job.
I will continue to follow your work.
Thank you!

I'm looking forward to your update !
Thank you !
Email<EMAIL_ADDRESS>


Folder images not loading on polaris

Started using polaris this week as a docker image and i`m loving it, also using the android app on my phone. Loved the way your program lists the directory tree so i can easily find the music i want to play.
Unfortunately, I am having a problem where the images cant load on my instance, it only stays as blank:

While checking the logs on my portainer, it seems that the aplication gets an internal error:
11:12:26 [ERROR] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-2.2.0/src/response.rs:57] Internal Server Error: Unspecified
11:12:26 [INFO] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.3.2/src/middleware/logger.rs:337] <IP_ADDRESS>:60083 "GET /api/thumbnail/YOUTUBE%2FDJ%20Hero%202%20Soundtrack%2F01%20-%20Just%20Dance%20vs.%20Ghosts%20'n'%20Stuff.mp3?pad=false&auth_token=1vWiUlAI8UtbOJnhY4bOtk15SsMZfjkLuNVMfGkZJwQDdtw1lX7sUlmFdGRbDjZ8WTK93Jnu2IqmC83LtEkbX9CUDPQ5TLpbY6CJYirvgjrdssoe6UUtW9c HTTP/1.1" 500 11 "http://<IP_ADDRESS>:1843/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" 0.136330
11:12:26 [INFO] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.3.2/src/middleware/logger.rs:337] <IP_ADDRESS>:60083 "GET /api/browse/YOUTUBE%2FDJ%20Hero%202%20Soundtrack HTTP/1.1" 200 23914 "http://<IP_ADDRESS>:1843/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" 0.010268
11:12:42 [INFO] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.3.2/src/middleware/logger.rs:337] <IP_ADDRESS>:60086 "GET /api/browse/YOUTUBE HTTP/1.1" 200 188 "http://<IP_ADDRESS>:1843/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" 0.083324
11:12:42 [INFO] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-3.3.2/src/middleware/logger.rs:337] <IP_ADDRESS>:60086 "GET /api/thumbnail/YOUTUBE%2FDJ%20Hero%202%20Soundtrack%2Ffolder.png?pad=false&auth_token=1vWiUlAI8UtbOJnhY4bOtk15SsMZfjkLuNVMfGkZJwQDdtw1lX7sUlmFdGRbDjZ8WTK93Jnu2IqmC83LtEkbX9CUDPQ5TLpbY6CJYirvgjrdssoe6UUtW9c HTTP/1.1" 500 11 "http://<IP_ADDRESS>:1843/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" 0.098614
11:12:42 [ERROR] [/root/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-2.2.0/src/response.rs:57] Internal Server Error: Unspecified
This it a print of the folder i'm trying to load the image:

I`m currently running Polaris via docker as root on a Ubuntu Server 20.04.
FYI, only images are having this issue, the music plays normally on webUI and on the android app

Thanks for the support, i applied a chmod 777 on the folder where i save the polaris cache and it worked marvelous:


accept()d socket needs to be set to O_NONBLOCK

I also copied the fail-handling logic from sys/unix/net.rs to actually close the socket on error, as described by the comment.
Closes #1450

I've commented on #1450, but I don't think this is the right solution as all OSs that do use the path should have the behaviour that inherits the non-blocking property of the listening socket. Android doesn't event follow the accept(2) path, but uses the accept4(2) with SOCK_NONBLOCK path.

I've commented on #1450, but I don't think this is the right solution as all OSs that do use the path should have the behaviour that inherits the non-blocking property of the listening socket. Android doesn't event follow the accept(2) path, but uses the accept4(2) with SOCK_NONBLOCK path.

I think I addressed your comments. My only concern is that my implementation might not be very idiomatic (let mut then mutating conditionally based on cfg!). Thoughts?

I think I addressed your comments. My only concern is that my implementation might not be very idiomatic (let mut then mutating conditionally based on cfg!). Thoughts?

After fixing my typo, tests pass on Android with your suggestions :)

After fixing my typo, tests pass on Android with your suggestions :)

Thanks @jshearer.

Thanks @jshearer.


[W5.11][T15-A1] Chan Jin Jia

[LO-2KLoC] Added Sort Command with updated tests

I am not sure what has caused the Travis CI build error -- details given is null

Remember that users might not find out about this new command if it is not documented properly
I re-ran Travis for your PR
Because you did not satisfactorily complete 1kLoC LO, you are required to 2 enhancement if you want to recover lost marks. You can work until the next tutorial to add in the additional enhancement. Do remember to update user guide, test, etc.

@madsonic Hi there, but I did complete my 1kLoC and tested it with you during tutorial! I implemented a command that allows the editing of contact details. Please advice!

good job!
Close this PR if you have no other questions


Missing script "esbuild"

From within VSC:
tizu69@pop-os:/media/tizu69/CodingProjects/code-clippy-vscode$ npm run esbuild
npm ERR! Missing script: "esbuild"
npm ERR!
npm ERR! Did you mean this?
npm ERR!     npm rebuild # Rebuild a package
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR!


chore: Fix Search Input Visibility in Dark Mode

Summary
This pull request addresses an issue with the search input box on the Noir documentation site when in dark mode. The text within the search box is illegible due to the white background color, which conflicts with the white text color.
Problem Description
In dark mode, the background color of the search input box remains white, while the text color is also white, rendering the text invisible to users. This creates a poor user experience as it prevents users from seeing what they are typing into the search box.
Solution
To fix this issue, the background color of the search input box has been changed to transparent, allowing for the text to be visible in both light and dark modes.
Visual Evidence of Issue
Desktop Dark Mode

Input State
Screenshot

Text Entered, Barely Visible

Mobile Dark Mode

Input State
Screenshot

Text Entered, Barely Visible

Visual Comparison

Mode
Before Change
After Change

Dark - Desktop

Light - Desktop

Dark - Mobile

Light - Mobile

Files Changed

docs/src/css/custom.css: Added styles to override the default background color of the #docsearch-input element.

Testing
The changes have been tested across various browsers and devices to ensure compatibility and that the search input box text is now clearly visible in both light and dark modes.

Please don't update the branch unless there's a merge conflict (which is very unlikely to happen on the docs). It just chews up CI time for no reason.

CC @noir-lang/developerrelations


[Bug] Exception in stackTrace

Describe the bug
When the workflow is running, and I look at the stack trace i get the following

However, the workflow does complete without any issue seen in the history tab.
Desktop (please complete the following information where relevant):

OS: [iOS]
Browser [chrome]
Temporal Web Version [1.31]

@feedmeapples can you recognize this error?

I'm still seeing it with 1.7.0 web whenever you click on the stack trace tab when the workflow is complete

thanks @darewreck54  - i have not attempted a repro yet but thanks for the update


Refactor additional files mount logic

Fixing issues in image-builder builds with additional files as input.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


next question from austria

Checklist

[X] I'm asking a question and not reporting a bug/feature request
[X] I've looked through the README
[X] I've read the guidelines for opening an issue
[X] I've searched the bugtracker for similar questions including closed ones

Question
I#M downloading the following playlist
'yt-dlp --download-archive ..\archive.txt  -i --geo-bypass -o "%%(title)s.%%(ext)s"  https://www.youtube.com/playlist?list=UUYQrOSpSj3qFaGHShcs4_zQ'.
In this playlist are some videos with different urls, but the same names ('MAMUZ Wissen - Experimentelle Archäologie erklärt!'), which were produced on different dates.
So yt-dlp tells me at the second download of such a 'duplicate' name. that it has already been donwloaded, and marks that in the 'archive.txt'.
Dear all - what to do now ??
Verbose log
No response

The download archive only contains the video IDs, so that's not the issue. The issue is that the file already exists. If you want to avoid identical titles being skipped as duplicates, include the ID in the output template (or just use the default one that already includes it: `-o "%%(title)s [%%(id)s].%%(ext)s".

I thought, yt-dlp would name the new file with 'name + (2)' or 'name + (3)' ....

I closed it unfortunately.

I thought, yt-dlp would name the new file with 'name + (2)' or 'name + (3)' ....

No

You said 'no', but wouldn't that be nice for the whole community?
Or am I the first one who asked for that possibility?

Just add a unique id to the filename with id or epoch


Add sensor for moving state

Just moved to using the home assistant Integration for my Idasen desk instead of https://github.com/j5lien/esphome-idasen-desk-controller. I miss the sensors that came with the other project, allowing me to monitor if the desk was being controlled by the physical lever, and then I could add an automation from that that would allow me to convert a double press to set a certain position. (e.g. double press up sets auto changes the desk to stand height etc.)
Is it possible to add a similar sensor to this? Either precise desk height or moving state.

Desk height is already available, it is part of the state of cover entity in HA.

Yeah I get that it's available as a percentage there, but it's not as exact as I could get from the other project - basically meaning if I just tap the manual lever, I can't tell with home assistant if it has been tapped or not. With either an exact height, or a "moving/not moving" state sensor.

Oh, I see! That is really interesting use case. I'll add it to the TODO list!
Thanks!

Thanks mate for the swift responses. It's handy to quickly select "sit" or "stand" height with the normal lever (although a little hacky).. Looking forward to it if you get round to it.

Desk height is already available

Would it be possible to expose it as absolute height (in centimeters or meters) through HA? Or is there a technical limitation for using percent?

Desk height is already available

Would it be possible to expose it as absolute height (in centimeters or meters) through HA? Or is there a technical limitation for using percent?

It is possible, but since you already have the percentage, what would be the use case for having it in meters?

Thanks, there's no specific use case, I just thought it would be more intuitive. Maybe I'm too used to the Linak control software (which displays centimeters) 😄

Hey. I've added support for the height in meters. It is currently approved and just missing the docs: https://github.com/home-assistant/core/pull/103324
I will most likely not be able to work on that on the next days. Anyone wants to help with that? :)


Fix documentation about BUILDKITE_PULL_REQUEST

The docs say that it has a value of true when building a pull request, but it actually contains the pull request number.

Ah, excellent find! Thanks @floatplane!! :dancers:


Add tests to source distribution

Include the tests, as well as the test data (like resources and SBOLTestSuite) in the source distribution. This is what MANIFEST.in is for.

See #173 for a possibly related issue

The tests themselves come free after we move them to the top level (#173). The data files used by the tests have to be added via MANIFEST.in.


Avatar/Profile Picture upload

Can't upload a profile picture or channel avatar.
The thumbnail is uploading to the temp map but not visible for crop.

Fixed with imagemagick

What fixed it?

Hello can you please help how did you setup picture upload? Even I did all setup for S3 it won't work. Shall i do extra setup or it should work with the login information provided on filesystems.php ?

@bildirio at the moment, Voten only supports the FTP driver. In case you insist on using S3,  you should edit PhotoTools.php trait.

I have configured my ftp though the avatar is not uploading!

Try the new release. It should work


updated integrations/providers/google

Added missed integrations. Updated formats.

I have more updates/changes to be made in https://github.com/langchain-ai/langchain/pull/12224

@baskaryan I've implemented your comments


uninitialized constant Typesense::Documents::ERB

Description
I successfully created a collection by name ads_new. I am able to retrieve collections and documents with
@typesense.collections.retrieve
@typesense.collections['ads_new']
When I try import / upsert documents, I get the following errors.
@typesense.collections['ads_new'].documents.import(ads, action: 'create')
@typesense.collections['ads_new'].documents.upsert(ads.first)
uninitialized constant Typesense::Documents::ERB
Complete error :
/usr/local/bundle/gems/typesense-2.0.0/lib/typesense/documents.rb:78:in `endpoint_path': uninitialized constant Typesense::Documents::ERB (NameError)
#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Documents::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}
Steps to reproduce

Expected Behavior
documents must be successfully inserted.
Actual Behavior
Unable to insert docuements.
Metadata
Server - 27.1, gem - 2.0.0
OS:

Hi @aravindanf22labs, could you provide the ruby version you are using?

ruby:3.1.2

@aravindanf22labs could you verify using v2.1.0.rc1?


Add a way to make text non-selectable

Description
There are occasions where text is not meant to be selected or searched for, such as watermarks (see below).
I don't know how easy this is to implement with PDF, but it would be a helpful addition to Typst's already-great featureset.
Use Case
Typst's documentation provides a good example:
#set page(background: rotate(24deg,
  text(18pt, fill: rgb("FFCBC4"))[
    *CONFIDENTIAL*
  ]
))

= Typst's secret plans
In the year 2023, we plan to take
over the world (of typesetting).

I think there are two ways for implementing this feature:
One is to add a flag in text element to indicate that when are exporting to pdf, we do not write the text but rather transform the glyph into an outline shape and write to the pdf. This way the text will be non selectable. A possible interface could be #text(selectable : false, aaa)
The second way is to utilize the ReplacementText feature (sec 14.9.4 PDF 1.7), it would be able to specify a different string when selected. For example, a possible interface would be #text(replacement: "bbb", aaa) and the result rendering would be aaa, but when select and copied out we will have bbb. The latex package called accsupp implemented this feature. In the second approach the non selectable text can be achieved by setting the replacement to be an empty string, such as #text(replacement: "", aaa)
I personally think the second approach would be a more general design, its only drawback being that it requires the pdf reader to support the replacement feature (though I assume most of popular pdf reader should already support). What do you think?

Thank you for your detailed answer! I'd also prefer the second approach.
For the future (from my understanding, this is not currently a feature), we'd also need a way to control whether text from a SVG should be selectable, so it would make sense to consider both aspects when making a design decision. There's an issue for this latter part already: #1239.

The second approach or something similar to that is definitely preferrable. Outlining the glyphs will make it look different from other text because text rendering is somewhat platform-specific.

Hi I just tried out the text replacement approach. Good news is that it actually works (and the current pdf-writer we are using support it), the sad news is that only seems to be working in acrobat reader, but not in chrome, apple preview, etc. The support of the feature is not what I expected to be.
This is a test example.
aaabbb.pdf
Essentially this is the normal pdf text block
``
stream
BT
/F1 14 Tf
108 734 Td
(aaa) Tj
ET
endstream

and this is the one with a ActualText block

stream
BT
/F1 14 Tf
108 734 Td
/Span <<
/ActualText (bbb)

BDC
(aaa) Tj
EMC
ET
endstream

If you open it with Adobe acrobat, it renders aaa but if you copy it out it will be bbb; while if you search aaa you find nothing, but if you search with bbb, you will find it. But I've tested with chrome and apple preview, in these two the feature is not supported (meaning you can still select the aaa and copied it out, and we can search aaa successfully but not bbb).

I also tried with the case of setting the replacement text to be a null empty string. It also works in acrobat but not in the other pdf readers .

So the situation kind of makes me frustrated. I also find [this link](https://github.com/ho-tex/accsupp/issues/2) about the accsupp latex package, which said that the accessibility features (including the ActualText we are talking) is not really supported by the many popular PDF readers.

In this case how should we proceed about supporting non selectable text? Seems that maybe the only way is to convert glyphs to shapes, but then that is not a good idea in terms of the rendering result

There is a third option. It is more difficult to implement than the other two but most secure and works like normal text.
An interface like the above mentioned would be required.
We would copy the embedded font that should be used with the text and then

embed it under a different name with a different glyph mapping (basically Caesar encryption)
since Caesar encryption is not really good, there is a more secure method: shuffle the glyphs like in method one but copy them randomly to the unused parts of the private use area of the font. For example, we now have the glyph a 5 or 10 times at different memory regions. Each time the glyph a is used randomly select one of the glpyhs that have an a.

The reader sees the same text like before in the same font but gets garbage values when copying the text and this does not depend on the PDF reader.
Downsides: also ligatures and font features should stay and would need to get patched too.
Maybe a simple method that has all font features disabled could get implemented.
Method 1 is used as protection with some books that are published as PDF files.
Probably when embedding the new font, some PDF objects from the original font that is already embedded can get reused to to not blow up the filesize too much.

Getting garbage values is a lot easier than that actually. You just need to not write a /ToUnicode mapping, which is separate from the font. But as far as I understood, the desired feature was to make text non-selectable, not make it selectable but garbage when copy-pasted.

I'm pretty sure you are wrong here, at least for ascii.
See the following:
\pdfcompresslevel=0
\pdfobjcompresslevel=0

\documentclass[a4paper]{article}
\begin{document}
abcdefghijklmnopqrstuvwxyz

1234567890
\end{document}

In the created binary we can find
%PDF-1.5
%ÐÔÅØ
3 0 obj
<<
/Length 141
>>
stream
BT
/F28 9.9626 Tf 139.746 706.129 Td [(ab)-28(cdefghijklmnop)-27(qrstuvwxyz)]TJ 0 -11.955 Td [(1234567890)]TJ 154.421 -603.736 Td [(1)]TJ
ET

When the PDF reader won't find any mapping it will just use the default encoding, thus, we get
ab, cdefghijklmnop, qrstuvwxyz,<PHONE_NUMBER>.

It depends on how you write the PDF. The PDFs Typst writes would be garbage by default because we use character id to glyph id identity encoding. If you write ASCII with PDFDocEncoding then it will work.
That aside, @reknih wrote on Discord:

A smart reader may not select a water mark if correctly tagged as a watermark artifact (PDF 1.7, <IP_ADDRESS>.2, also see note 2 in that section)

if you export to svg all text is already unselectable, so you can just convert to svg to pdf again, and boom unselectable text

I have a habit of putting a whole-page sized rotated "draft" watermark on things, and having the watermark text selectable is annoying because for some reason mouse selection prefers the watermark over the body text. This would be very useful.

I also think this would be an awesome feature. I want to make it more annoying for people trying to copy my homework!

I also think this would be an awesome feature. I want to make it more annoying for people trying to copy my homework!

do people still do this in the age of LLMs?
also they can screenshot it and ask an LLM.

You make a good point, but I left out some info to make myself sound less petty. I'm in class that makes it purposefully difficult to copy answers into an external document, so I have to screenshot and OCR them. I wanted to give the graders a taste of there own medicine because they are lazy and use autograding software. There are obviously better justifications for this issue like the watermark example.


Support for React Native v0.40

On RN v0.40, iOS native headers have been moved. Imports of RN Headers should be changed from:
#import "RCTBridge.h"
to
#import <React/RCTBridge.h>

<EMAIL_ADDRESS>


[os-telegraf] Support Unbound input plugin

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
It will be interesting to add option for the inputs.unbound plugin.
I don't think this one need any additional field.
I think we just need to specify the config file location in the config.
More info here : https://github.com/influxdata/telegraf/blob/release-1.17/plugins/inputs/unbound/README.md
Describe the solution you'd like
Add this plugin in the telegraf config GUI
Describe alternatives you've considered
Additional context

Did you test it if it works when adding manually? Mostly there are missing permissions like with pf input

I have tested with this config:
[[inputs.unbound]]

  ## The default location of the unbound-control binary can be overridden with:
  binary = "/usr/local/sbin/unbound-control"
  ## The default location of the unbound config file can be overridden with:
  config_file = "/var/unbound/unbound.conf"

  ## When set to true, thread metrics are tagged with the thread id.
  ##
  ## The default is false for backwards compatibility, and will be changed to
  ## true in a future version.  It is recommended to set to true on new
  ## deployments.
  thread_as_tag = true

I have just added the unbound group to the telegraf user: /usr/sbin/pw groupmod unbound -m telegraf, and everything work great.

OPNsense 21.7.1-amd64
os-telegraf 1.12.0

I do not know if this particular code made it to the 21.7.1 release, as stated here in the release notes; https://forum.opnsense.org/index.php?topic=24233.0

o plugins: os-telegraf 1.12.0[4]

https://github.com/opnsense/plugins/blob/stable/21.7/net-mgmt/telegraf/pkg-descr

Plugin Changelog
================

1.12.0

Allow to start telegraf with wheel group permissions
Add Unbound input

But enabling this feature, which adds this config in telegraf.conf;
[[inputs.unbound]]
   binary = "/usr/local/sbin/unbound-control"
   config_file = "/var/unbound/unbound.conf"
   thread_as_tag = true

gives me no metrics in InfluxDBv2.
Checking the log files for Telegraf, I have every 10s this error:
2021-08-04T21:20:50 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset]) |
2021-08-04T21:20:40 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset]) |
2021-08-04T21:20:30 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset]) |

telegraf is a part of the unbound group:
id telegraf
uid=884(telegraf) gid=884(telegraf) groups=884(telegraf),59(unbound),62(proxy)

You also need to enable wheel group

We could add a constraint for this where strictly required?

Ah, I looked for it - did not find it / understood what it meant in the release notes - but now I saw it on the very top under "Input".
@mimugmail ; check the permissions for directory and file /var/log/suricata/eve.json - it is rwx------; so adding telegraf to wheel group does not enable Suricata / "Intrusion Detection Alerts" (if this checkbox doesn't do more behind the scenes??).

I have two firewalls. Same hardware and same software as mentioned above.
One where I have added telegraf manually to the group wheel:
id telegraf
uid=884(telegraf) gid=884(telegraf) groups=884(telegraf),0(wheel),59(unbound),62(proxy)

I still get the same error;
2021-08-05T19:57:50 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset])

On the other firewall, checking "Wheel Group" does not seem to do anything:
id telegraf
uid=884(telegraf) gid=884(telegraf) groups=884(telegraf),59(unbound),62(proxy)

I have disabled and enabled the service with "Wheel Group" checked.
2021-08-05T19:59:40 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset])

Checking it only tells the process to start with wheel group permissions
and with it I hot metrics in my influx
Mr. Johnson @.***> schrieb am Do., 5. Aug. 2021, 22:01:

I have two firewalls. Same hardware and same software as mentioned above.
One where I have added telegraf manually to the group wheel:
id telegraf
uid=884(telegraf) gid=884(telegraf) groups=884(telegraf),0(wheel),59(unbound),62(proxy)
I still get the same error;
2021-08-05T19:57:50 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset])
On the other firewall, checking "Wheel Group" does not seem to do anything:
id telegraf
uid=884(telegraf) gid=884(telegraf) groups=884(telegraf),59(unbound),62(proxy)
I have disabled and enabled the service with "Wheel Group" checked.
2021-08-05T19:59:40 |   | E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [-c /var/unbound/unbound.conf stats_noreset])
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/opnsense/plugins/issues/2271#issuecomment-893759300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE355INRIYR4RZ4QOTJT22LT3LU3PANCNFSM4ZAQRW4A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Can you please show me
ps aux | grep telegr
telegraf 21482   4.1  0.7  5039828   53396  -  S    00:42      0:00.26 /usr/local/bin/telegraf --quiet --config=/usr/local/etc/telegraf.conf --config-directory=/usr/local/etc/telegraf.d

(I have not checked "Quiet Log" under General, however it is started with parameter --quiet?)
This firewall might need a reboot, or something.

Strange, it worked for period of time and now also not for me.
Need to have a look after vacation time

Hi,
I think I was able to create a workaround. Not the safest one...
in the  /usr/local/etc/rc.d/telegraf instead of running the daemon as telegraf user I changed to run with the root user.
I don't have any errors now and the data is being saved on Influx as I wanted.
Still not clear why the telegraf user can't run telegraf on daemon mode, but it's certainly related to it.


Reference types

Check whether https://rustwasm.github.io/docs/wasm-bindgen/reference/reference-types.html helps with performance.

Needs https://github.com/rustwasm/wasm-pack/pull/937 or https://github.com/rustwasm/wasm-pack/pull/888 or switching away from wasm-pack.

Needs https://github.com/rustwasm/wasm-pack/pull/937 or https://github.com/rustwasm/wasm-pack/pull/888 or switching away from wasm-pack.

Got it working with just wasm-bindgen-cli (see https://github.com/domoritz/arrow-wasm/tree/dom/reference-types) but the setup isn't fun and we need to validate the performance.

@domoritz my PR has since merged


Temperature unit always displays as F

Need to check why its not switching between imperial and metric.

Fixed by checking for "metric" and if not found then displaying in imperial.


Change recommended confirms for claimtrie commands

Change recommended confirms for claimtrie commands to be 1, instead of 6.
Used when calling getvalueforname command to lbryum server.
Trade off for more responsiveness, over security.

:shipit:
Go responsiveness!


ID-1538: restructure the FedX algebra interface hierarchy

This change restructures the FedX algebra interface hierarchy to share
common methods of all nodes.
The most top-level interface for any FedX specific algebra node is now a
FedXTupleExpr.
In addition, we have the new interface VariableExpr which can be used to
determine the free variables (e.g. during cost estimation).
Note that the logging severity for unknown nodes is reduced to DEBUG as
the fallback values are sufficient for most cases.

@jeenbroekstra one of the use-cases of this restructuring is to cleanly define extension points for the cost model computation and avoid warnings for unknown node types.
In addition the interface methods are not specified multiple times


Update EC xref on GO:0004579

Might already be covered by #17844...
but the EC:<IP_ADDRESS> xref on GO:0004579 should be updated to EC:<IP_ADDRESS>.
https://enzyme.expasy.org/EC/<IP_ADDRESS>

And added RHEA:22980

Thanks.