Is it possible to check then delete in same query?

Hi! :)
Would it be good to check for records before deleting a nested related request?
My example
Schema: 1 Place may have 1 Coordinate (1:1)
My intentions in a mutation:
if coordinate is included in mutation to edit a place, it should update or create the existent record. If not, it should delete the existent (if it exists) record.
I was doing this with the following photon function:
ctx.photon.place.update parameter:
	...args, // just to keep issue simple, there are several args
	coordinate: coordinate // check if it is undefined
		? {
				upsert: { create: coordinate, update: coordinate }
			}
		: {
				delete: true
			}

However, it fails if there's no coordinate and a previous record didn't exist, which will then try to delete this non existent. (I kind of interpreted that on this error)
Reason: Error occurred during query execution:
InterpretationError("Error for binding \'6\': AssertionError(\"[Query Graph] Expected a valid parent ID to be present for a nested connect on a one-to-many relation.\")")

It would be easy to first get current place with "findOne" but it would require two queries. Is it a common problem for anyone else? Should there be a explicit "deleteIfExists" or could it be handled naturally on a simple "delete" request?
Thanks in advance, and sorry if I missed something.

I know the error says that's a one-to-many relationship, but there's no "[]" for arrays in either models on schema.
model Coordinate {
}

I think you should make separate queries for this. If the relation is required we simply can't do this as we database is doing that validation.

Oh, right. I didn't thought on this database side limitation. So, is it possible to inform us when that kind of situation happens on a error message?

Yes, I agree we need to improve that error message. The error message might already improve in the next release we are currently implementing the error spec: https://github.com/prisma/specs/tree/master/errors

i vote for deleteIfExists :)


Implement virtual memory

I added SFENCE.VMA the other day (it is just a NOP in IRVE) so that should be taken care of.
I saw your latest commit in your branch, looks like things are coming along! :)

This can be closed once #16 is done and more unit tests have been added for virtual memory


e2e tests log stdout and stderr

Changes

:gift: E2E tests show all logs

When a test fails, a combined log is dumped rather than just the command's standard error buffer, and when a test is configured to dump logs on success, the combined buffer is dumped.

/kind enhancement

/lgtm


Feature: Runtime parameters for devtron job

🔖 Feature description
Capability to support runtime parameters for devtron jobs
🎤 Pitch / Usecases
A job may execute same piece of code / function based on different input parameters, a user may need flexibility to provide those parameters on runtime.
🔄 Alternative
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

AB#9846

Fixed with https://github.com/devtron-labs/dashboard/pull/1777


Guardfile support for filename.scss

The latest version of sprockets (as bundled with Rails 4.2) dictates scss partials be named _filename.scss instead of _filename.css.scss as it was done previously. The current Guardfile regular expressions do not match this new naming pattern.
This PR modifies the default Guardfile so that changes to .scss files can be picked up by livereload.

The regexp got so complex, I've reworked the template (adding tests too): https://github.com/guard/guard-livereload/pull/146
For suggestions/improvements, just open a new PR with tests (which should be easy now).


Fix download link for Framer Studio.app :latest

Update to static download link and remove unsupported appcast per conversation with Koen Bok of Framer https://twitter.com/koenbok/status/690296760783278080

If there's any updated appcast at all, even if the links are to delta updates, we can use it - that file content changing gives us a basis to detect updates.

@adidalal the appcast appears to be very old, should it be left even if it isn't currently updated?
<pubDate>Wed, 25 Dec 2005 12:20:11 +0000</pubDate>

No, but if there is an up to date changelog page that can be used as well

Comment should be # devmate.com is the official download host per the appcast feed

Will https://rink.hockeyapp.net/apps/cf6ed17136c869e3604eb59fc900515f do for the changelog? I can't tell if the address is static

Looks like that identifier is per app, so it should be fine, yes. You should also put in an actual version and shasum, even though the download URL is unversioned.


Add Paul Steimel to Contributors list

Adding Paul Steimel to the list of contributors.

Hi  @redbaron372, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


If a fund specific slack channel is defined and the slack bot is not in the defined channel, do something to let the team know they need to invite the bot to the defined channel or have the bot autojoin the channel if possible

This could be an @channel alert in the channel or a pm to the fund lead or both?

@jheretic Ping

@jheretic double ping!


Full scale run creates too many lastz jobs

If the reference has many short chromosomes/scaffolds, it results in a tremendous amount of last jobs (hundreds of thousands).
The partitioning step must handle such cases.
For example, by merging such chromosomes/scaffolds into "buckets", processed as a single unit by run_lastz.py

Created branch https://github.com/hillerlab/make_lastz_chains/tree/fixed_partitioning where this issue is going to be fixed.


Add 'Audio dataset' doc page

fixes #1106
Please also review the new collection: https://huggingface.co/collections/datasets-examples/audio-dataset-66aca0b73e8f69e3d069e607

Note: I could not create a Parquet example with the 4 example files. A possible idea would be to showcase how to have two audio columns:
sentence,as_a_cat,as_a_dog
"I'm hungry", <1.wav>, <3.wav>
"How are you?", <2.wav>, <4.wav>

Not mandatory for this PR, it can be added later, maybe with detailed code (not necessarily from the datasets library, by the way, maybe with duckdb or polars)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

can you review it @huggingface/dataset-viewer please? thanks!!!


Implemented httpOnly cookie option and a signout endpoint

This prevents programmatic access to the session cookie from the browser.
Closes #846.

@jfresco shouldn't we disable the httpOnly option when under development? This would make it easier for forkers to debug stuff. Just sayin'

@gvilarino Doing that may make work something on dev but not on prod.

@gvilarino You can still see the cookies with Chrome Developer Tools or similar. In what cases would you want to get or set the cookie with client-side JavaScript for debugging purposes?

Ok, disregard my comment then. I'll trust your criterion.


Fix not installing when invocation image not present

On Debian at least, it turns out we are hitting https://github.com/Nvveen/Gotty/pull/1 - workaround is to pass isTerm = false to jsonmessage.DisplayJSONMessagesStream().
closes #596

@michelleN - rebased.


Getting started

Hi,
this  is nice to have a resin-node-red template to startup, but I think you could made it more explicit you have to setup env vars before you can do anyting in the Node-RED console, because it's not so obvious and you can actually see the interface and do some layout before you realize u can't save or run anything.

hey @TristanCP can you tell me more about your issue? all the env vars have default fallback values so you shouldn't be required to set them if you are good with sticking with the defaults descrivbed in the readme ( here is an example )

@TristanCP just saw your PR. Makes sense, thanks for the contribution!

Adding a default fallback for USERNAME and PASSWORD would be a good idea for a quick start, but maybe not safe since the service is exposed on the internet from start.


Add an option to “git bisect” extensions, finding the one that causes issues

More than once I had issues with extensions interfering with other extensions, recently it was Prisma's extension causing TS' language server to crash on each save.
Debugging these sort of issues is a pain, since you have to disable half of your extensions, see if it happens, then disable another half (or enable the other half and disable half of that), I hope you see my point, it's kind of hard to explain. It's kind of like applying git bisect, only on extensions.
The feature I was thinking of is something that would help automate this.
Anyhow, thanks everyone for you awesome work!

Oh, wow.


OCM-6391 | feat: Disable the use of the region flag in commands which do not utilize it

https://issues.redhat.com/browse/OCM-6391
We put the region flag in almost every overarching command (create, delete, list, etc) -- yet many of the subcommands do not use region. This can lead to confusion for users. As a solution, I have made a function in the same package following the same naming scheme as the function which adds the region flag. This way, we can disable using the region flag in any command we want with a single line.

maybe it's better to remove region flag in the overarching commands, and let the sub-command to add it if the flag required.
imho that makes more sense for the dev, to declare a flag when it's required.

maybe it's better to remove region flag in the overarching commands, and let the sub-command to add it if the flag required. imho that makes more sense for the dev, to declare a flag when it's required.

@marcolan018 I wanted to do this originally, but it seems adding it to the overarching command is the 'norm' and it is done everywhere even when all subcommands do not use it. I think maybe there should be a wider discussion with @ciaranRoche and @robpblake about this, I am fine with either solution, just not sure what is 'best' here in terms of design/architecture

@marcolan018 Thread on this here: https://redhat-internal.slack.com/archives/C04C3G5MDKN/p1711732133140609

maybe it's better to remove region flag in the overarching commands, and let the sub-command to add it if the flag required. imho that makes more sense for the dev, to declare a flag when it's required.

@marcolan018 I wanted to do this originally, but it seems adding it to the overarching command is the 'norm' and it is done everywhere even when all subcommands do not use it. I think maybe there should be a wider discussion with @ciaranRoche and @robpblake about this, I am fine with either solution, just not sure what is 'best' here in terms of design/architecture

I left a comment on the Slack thread. I agree with @marcolan018 in that I think its preferable to take the time to refactor this in such a way that commands that do support the --region flag add it to their flagset and it is completely omitted from the flagsets of commands that do not support it.
Your solution works, but I don't think its solving our underlying problem which is that we have global flags being added when its not appropriate. I would vote to take slightly more time to solve this now, once, rather than working around the issue but still having the incorrect underlying behaviour.
cheers,
Rob


Just the schema option from the CLI init is creating an invalid schema

Exact Steps:

prisma2 init
Blank Project
Sqlite
Select both photon and lift
Typescript
Just the schema

It is generating the following schema:
datasource db {
  provider = "sqlite"
  url      = "sqlite://"
}

generator photon {
  provider = "photonjs"
}

model User {
  id    String  @default(cuid()) @id @unique
  email String  @unique
  name  String?
  posts Post[]
}

model Post {
  id        String   @default(cuid()) @id @unique
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  published Boolean
  title     String
  content   String?
  author    User?
}

This schema has multiple problem:

SQLite uses the file protocol not the sqlite:// protocol
@id @unique are not allowed together in preview019

Incorrect schema is fixed now https://github.com/prisma/prisma2/issues/1294


update deployment guide with a few more details

Here are a few suggested changes to the deployment guide based on my experience with it yesterday. This is a really great tool, I'm excited to replace my cobbled together stac-fastapi-pgstac + titiler-pgstac deployment with this!
The main change I needed to get things running was to add the CDK_EOAPI_STAGE env var to deployment commands because it determines the name of the stack and it needs to be consistent across the steps.

🥳 thanks @hrodmn , really appreciated


TextField cannot be unfocused when mouse primary button is pressed

Steps to Reproduce

Execute flutter run on the code sample
Select text in the text field and keep the primary button pressed
Move cursor outside of the container to trigger the unfocusing callback

Expected results:

Actual results:
https://user-images.githubusercontent.com/13119003/140543911-03e576de-e19e-4d24-87bb-9c134dce9ed3.mp4

Code sample

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _focusNode = FocusNode();
  final _controller = TextEditingController();

  @override
  void dispose() {
    _focusNode.dispose();
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Column(
            children: [
              MouseRegion(
                onExit: (_) {
                  print("exit");
                  _focusNode.unfocus();
                  _controller.selection = TextSelection.collapsed(offset: -1);
                },
                child: Container(
                  height: 200,
                  width: 200,
                  color: Colors.green.withOpacity(0.1),
                  child: Center(
                    child: TextField(
                      focusNode: _focusNode,
                      controller: _controller,
                      decoration: InputDecoration(border: OutlineInputBorder()),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Logs

[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-x64, locale en-GB)
    • Flutter version 2.5.3 at /Users/krasnov/sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/krasnov/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.10.0.beta.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

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

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.69

! Doctor found issues in 1 category.

Issue is reproducible on stable and master.
Appears to affect desktop platforms, tested in Chrome and macOS.

video
https://user-images.githubusercontent.com/88313112/140723855-4c3dbef3-271c-404b-b875-09f592aecdf1.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-arm, locale en-GB)
    • Flutter version 2.5.3 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.0, Build version 13A233
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

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

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 12 (API 31) (emulator)
    • Nexus’ IPhone (mobile)      • 00008020-001875E83A38002E            • ios            • iOS 15.0.2 19A404
    • iPhone 13 (mobile)          • 7515F01A-C1B6-456E-8559-8D2383D3719D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 11.6 20G165 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 95.0.4638.69

• No issues found!

[✓] Flutter (Channel master, 2.6.0-12.0.pre.624, on macOS 11.6 20G165 darwin-arm, locale en-GB)
    • Flutter version 2.6.0-12.0.pre.624 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0b0b21ecb5 (25 hours ago), 2021-11-07 01:37:35 -0700
    • Engine revision 5140e30cec
    • Dart version 2.15.0 (build 2.15.0-268.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

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

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 12 (API 31) (emulator)
    • Nexus’ IPhone (mobile)      • 00008020-001875E83A38002E            • ios            • iOS 15.0.2 19A404
    • iPhone 13 (mobile)          • 7515F01A-C1B6-456E-8559-8D2383D3719D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 11.6 20G165 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 95.0.4638.69

• No issues found!

CC @justinmc


fix lz4 compression

kafka java client doesnt support depedent blocks. without the fix in this PR, the kafka java client will throw an exception.
https://github.com/a0x8o/kafka/blob/54eff6af115ee647f60129f2ce6a044cb17215d0/clients/src/main/java/org/apache/kafka/common/record/KafkaLZ4BlockOutputStream.java#L344

We might want to document our compatibility here somewhere. The library is theoretically agnostic to client/server but in practice I imagine most people interact with "real" Kafka.

Looks like you have some build failures @pdeva

@pdeva https://github.com/tychedelia/kafka-protocol-rs/releases/tag/0.10.1


Realtime chart x axis not moving with data

Bug report
Realtime chart x axis not moving with data
Codepen
https://codepen.io/cemujax/pen/WWRQjW
Explanation

What is the behavior you expect?
X axis scale moving alongside with data

What is happening instead?
X axis scale jumping from time to time

What error message are you getting?
nope

Unfortunately, the x-axis is not animated at the moment along with the series.
It's not a bug, but it was never implemented.


Fix incorrect menu/link on webhook edit page

Fix #29699

Can you add some tests to avoid the next possible broken?

Can you add some tests to avoid the next possible broken?

Done.

Needs make fmt


fatal: coudn't find remote ref master

Having trouble pulling updates from master? (fatal: coudn't find remote ref master)
Try the following to fix your remote/upstream references:

git pull origin
git checkout -b main
git branch main -u origin/main
git remote set-head origin main
git branch --set-upstream-to=origin/main main
git branch -d master
git branch -d -r origin/master

Then, open your repo's branch settings on GitHub and change the default branch to main at:

https://github.com/  <YOUR_GITHUB_USERNAME_HERE>   /kbe/settings/branches

This should get you back to the usual workflow... Do this before adding new changes:

git pull # as usual, always run git pull before cutting your next feature branch
checkout -b my_new_feature_branch # to cut the new branch (cut from the fresh pull of origin/main)
commit, push, and send a PR when you're ready to share your changes #biz as usual

Congrats on completing this cleanup work!

Hi!
I'm a begginer.. I'm still having git pulling troubles with a new project, even after the explantion. Can you help me?
This bellow what I tried:
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test
$ git init
Initialized empty Git repository in C:/ws-eclipse/2023/test/.git/
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git remote add origin https://github.com/RaphaelSena/exceptions2-java.git
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git pull origin master
fatal: couldn't find remote ref master
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git pull origin
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 784 bytes | 49.00 KiB/s, done.
From https://github.com/RaphaelSena/exceptions2-java

[new branch]      main       -> origin/main
You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git checkout -b main
Switched to a new branch 'main'
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch main -u origin/main
fatal: No commit on branch 'main' yet.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> main

rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch main -u origin
fatal: No commit on branch 'main' yet.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch main -u main
fatal: No commit on branch 'main' yet.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git remote set-head origin main
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch --set-upstream-to=origin/main main
fatal: No commit on branch 'main' yet.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch --set-upstream-to=origin
fatal: No commit on branch 'main' yet.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch -d master
error: branch 'master' not found.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git branch -d -r origin master
error: remote-tracking branch 'origin' not found.
error: remote-tracking branch 'master' not found.
rapha@Nitro5 MINGW64 /c/ws-eclipse/2023/test (main)
$ git remote -v
origin  https://github.com/RaphaelSena/exceptions2-java.git (fetch)
origin  https://github.com/RaphaelSena/exceptions2-java.git (push)

git remote add origin 'url_of_your_github_project'
git push -u origin master
specify which branch to push then mention check branch git branch (for local)

Thankyou for the help. this helped me to resolve the issue.


Use @Data in DistributionServiceConfig.java

Current Implementation
DistributionServiceConfig class
Suggested Enhancement
Use @Data annotation. @Data is a convenient shortcut annotation that bundles the features of @ToString, @EqualsAndHashCode, @Getter / @Setter and @RequiredArgsConstructor
Expected Benefits

Reduce boilerplate code
Don't need to test setters and getters

Note: This probably needs a discussion, if Lombok should be used – like it currently already is in https://github.com/corona-warn-app/cwa-verification-server.
This would then need Lombok to be installed as a Java-Agent in a comitter's IDE and probably needs to be documented in the prerequisites as well.

Thanks for the suggestion. For the time being we are not going ahead with Lombok. However, we may consider it down the road and reopen this.


Handle undefined js returm value and add js string.includes polyfill

@blair1618.
Small fixes, can you review this quickly. Should not take a lot of time.

But why is < -EPSILON accepted? Thinking about it, width == 0 or dwdz == 0 are valid when the other is greater 0. only when both are <= 0  (or epsilon) the line can be ommited

Let's not support String.includes(), because it's an ES6 method that is not guaranteed to be supported on all browsers or environments. Rather than polyfilling a hodgepodge of ES6 features, we should simply limit ourselves to ES5 for our JS properties/filters. I will also file an issue for the Eraser Map style to replace this with simple indexOf() functionality, which is easy in this case (string includes() is really just some simple syntactic sugar).

I think this covers the functionality we need right now.
Conceptually, it would be nice to have all of these validity checks happen in one place like DrawRule::eval, instead of being sort of scattered.

Will follow-up with some re-organization later, merging for now.


unclear attributes on breath

Some attributes on <breath> don't seem to make sense.
@dur: I can't think of an example of notated music in which a breathing sign would have an actual notated duration. Albeit in may have a real duration (in perfomances) a @dur.ges is missing
@dots: no really, dots?
@startid: when connecting it to another event, e.g. a note, it is highly unlikely to be meant to be performed or printed on the note. But should it mean instead before or after the connected event? (Guidelines are no guide in this case)
@plist: same as on @startid
@tstamp2 and @endid: where is the point on having these for a single sign (with probably no duration after all)?
@place: this records if the breathing sign would be printed 'above' or 'below' the staff. In most cases (at least those I can think of) it is printed on the staff but by now it can't be placed via @loc, @oloc, and @ploc.

@rettinghaus: As a control event; that is, something that occurs at a particular time, but not directly within the stream of events (notes, rests, and chords), <breath> takes all the attributes of that class.  Giving it these attributes, however, was simply for convenience, a way to get started.  As you point out, some of them don't make sense.  Obviously, the duration-related attributes, like @dur, @dots, @tstamp2, @endid can be safely removed.  The intended use of @plist was to refer to all the events taken under one breath, probably the ones following the mark, but I can see that raises issues, so @plist could likely be removed as well.
Other attributes should stay.  For example, @startid is intended to connect a control event to an event logically, not necessarily visually.  In other words, linking a breath mark to a note says nothing about where to display the mark.  That's the job of @place, @ho, @vo, etc.  The Guidelines could be more clear about this with regard to CMN.
Adding @loc, @ploc, and @oloc is certainly do-able.


GSoC2024 Solution Dask Starter Problem

GSoC2024 Solution Dask Starter Problem
Here I present the solution I implemented for this Dask Starter Problem (GSoC2024).
Solution Description
As my solution, I implemented a function which adds to the new cluster client the functions to execute, with the number of samples introduced to the function and executes them. Then it gathers all the results and concatenates them into a single Pandas DataFrame
Results
After executing the notebook created, the times obtained where this:

Serial:

Time for Serial execution with num_samples = 5:  14.392019033432007
Time for Serial execution with num_samples = 100:<PHONE_NUMBER>6304932

Parallel:

Time for Serial execution with num_samples = 5:  10.859020471572876
Time for Serial execution with num_samples = 100:<PHONE_NUMBER>34003235

Future Improvements
With more time, I would evaluate each of the functions that are needed to be executed and see how much time each one consumes, because if one of them takes considerably more time than the others, the total time of parallel execution would be determined by this function, and maybe looking into the archive.py functions, another type of parallelization could be done to execute the slowest function itself and save execution time.
Issue number: #240

This was a starter problem for GSoC2024 and not meant to be merged.


Support connect timeout option

This PR adds the ability for client to override default for connect_timeout by sending something like this:
ews = Viewpoint::EWSClient.new @endpoint, @email, @pass, http_opts: { connect_timeout: 90 }
Currently, the only timeout one can override is the receive_timeout.

Thanks 👍


Update codecov action to handle different OS and Python versions

https://github.com/codecov/codecov-action/issues/80#issuecomment-645189406

how do we move this forward?


Add calibration example for expander semi-emp model in Matlab

Hi @RDickes @davideziviani
Thanks for sharing the great ORC model.
I was trying to run the expander model (ExpanderModel.m) using SemiEmp approach in Matlab. I also went through the mentioned paper (Lemort et al.).
I have a quesiton about the parameter identification process of the model.
If I am planning to use the provided expander model to simulate a diffrent scroll expander performance, how can I know the input parameters of the scroll expander is valid for simulation? Any suggestions for changing the parameters as there are more than ten parameters to be defined for different expander.
Thanks a lot.

Hi @davidT9  ! You are welcome, hope this models will be usefull for you.
Do you have any experimental or reference data for characterizing this new expander? If so, you can tune the parameters accordingly so as to fit you data. To do so, I personnaly use a derivative-free optimization algorithm (quite long to run, but it is stable) and I minimize the residuals committed onto the different model outputs. If you want to, I can add this calibration code in the library.
If you do not have data, you can keep the same parameters as proposed with just updating the built-in volumetric ratio and the machine swept volume. It would not be perfect, but it is still better than nothing.
Also, if you are using the ORCmKit for research purpose (and you are happy with it), could you make reference to it in your reports so we could get greater visibility? Thanks in advance!
Best regards,
Rémi

@RDickes : shall we add two examples of calibrating semi-emp model with Matlab and Python? I have added only examples for Pacejka equation

Hi @RDickes and @davideziviani
Thanks for your reply.
Sure, I will absolutely reference your model.
I only have only serval set experiment data (but only the speed, output and pressure value), not the expander details. So I think I would like to try the calibration code first to see whether I could get the identified parameter values for scroll expander.
It would be great if you could upload the calibration code in the library.
Thanks in advance.
T. D.

@davideziviani yep, we can add this. I must finish some work on my side in the next days, then I'll add a reference calibration code for the matlab version.

Sure thing. Same here, I am a bit overwhelmed but I have the code ready

Dear @RDickes and @davideziviani,
Thanks in advance for uploading the calibration code.

Hi David,
I'll upload the Matlab version by tomorrow! sorry for the delay..
Le 31/01/2017 à 15:32, davidT9 a écrit :

Dear @RDickes https://github.com/RDickes and @davideziviani
https://github.com/davideziviani,
Thanks in advance for uploading the calibration code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/orcmkit/ORCmKit/issues/7#issuecomment-276378303,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHOunuPGWkwuFcPuhLGREX3cYKeBKxHiks5rX0X3gaJpZM4LjLUW.

--
Rémi DICKES
PhD candidate/FRS-FNRS research fellow
University of Liège - Faculty of Applied Sciences
Energy System Research Unit
Campus du Sart Tilman, Quartier Polytech 1
Allée de la Découverte 17 - Bât. B49 (P33)
B–4000 LIEGE (BELGIUM)
<EMAIL_ADDRESS>+32 494.59.2253
+32 <IP_ADDRESS>

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus

Sure, I will check the Matlab calibration code once you uploaded.
Again, thanks @RDickes


Remove CE Polyfill variable

It's unused, and taking up space.

Closing per https://github.com/Polymer/lit-html/pull/876.


native-dialogs v0.1 package

No dashes in package names allowed I'm afraid.

Ok, I'll fix that )

Done

Thanks!


Lean documentations

It'd be nice to do a !docs and get at the Lean docs

Just a link to the most relevant page or a scrape of the info on said page sent to the discord as a message?

Just a link


Add misspelling of amazon.co.uk

Adds a potential misspelling of amazon.co.uk and some ad pages it redirects to.

Thanks Dan @DanNixon.
Merging.

Hi every one, as I was going to process the amazonco.uk and made a test in my tor browser I was redirected to mediadiscovery.net
reproduce:
open tor -> type `amazonco.uk` in address bar -> redirects to `mediadiscovery.net`

Questions:

do any of you have knowledge about mediadiscovery.net
can other reproduce this behavior?

If this is the case, shouldn't mediadiscovery.net also be added?


Column Values not Escaped

Examing all the files in:

https://github.com/Laravel-Backpack/CRUD/tree/master/src/resources/views/columns

None of them attempt to escape any HTML.
Thus, if a customer model function returns something like "David Lloyd<EMAIL_ADDRESS>the last bit is lost.
In fact I wrote a custom function that did the following:
function breakMe() {
  return "
";
}

And the view broke so badly that no laravel logs were even created (i.e. it took laravel out BEFORE the logger could log what, if anything, was wrong).
I assume this is not the expected behaviour.
To pick on https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/columns/model_function.blade.php, its code is:
{{-- custom return value --}}

	<?php
        echo $entry->{$column['function_name']}();
    ?>

I also verified that I could run Javascript (eep) like this:
 40     public function getUpperCaseEmail() {
 41         $email = $this->email;
 42
 43         return "";
 44     }

(and then have a column like so)
$this->crud->addColumn([
  'label' => 'break me',
  'type' => 'model_function',
  'function_name' => 'getUpperCaseEmail']
);

I think, at a minimum, the documentation probably SHOULD warn users that this is the case; I'd go further, though, and HTML escape the whole lot.

I can understand the frustration of finding this after much testing... but I really think it's the right way of doing it: after all, we are coders, we are supposed to work with "pure/raw" data, and show it as we want.
As a workaround, you can just create /resources/views/columns/model_function.blade.php in your project, and just fill it with something like this:
{{-- custom return value --}}

	{{ $entry->{$column['function_name']}(); }}
    ?>

I published the whole lot and escaped everything (which works fine for me).
My main concern is that:

It's not documented;
It's not necessarily secure by default.

Or to put this another way: I'd prefer to wonder why  appeared escaped (i.e. in the actual output) rather than discover by accident that things aren't escaped by default.
In fact, having a look through the view files in views/columns do validate and some of them do not.
One could argue that they should all at least be consistent :)

I would've had to over-write almost all of the column types if they escaped by default.  I think in any application anywhere, the developer is responsible for escaping inputs or at least displaying them safely... this would be a huge pain to have by default in my opinion.  I think a mention in the documentation could be useful though!

@jsiebach - you have a good point and some consistency would be useful too (as some of them DO and some of them DON'T) :)

You may even consider a pull request - if the developers weigh in and think this would be useful - that adds a parameter to all of the columns.  Something like "html" => "false" that would automatically escape things instead of just printing.

@jsiebach - that's a good idea; I have a few things to do at the moment but will put a suggestion up within 48 hours; I'm thinking:

Make such a parameter available (globally, locally, per controller?);
Standardise the way the escaping is done.

(Some of the escaping is done like:
<?php
$displayValue='some value'
?>
{{ $displayValue }}

...whilst others are:
<?php
echo $the_value; # which would be echo htmlspecialchars($the_value) at minimum to escape
?>

I'm tempted to go with the first so one can make all escaping "Blade's" problem :)

Hi guys,
Thanks for mentioning this, @lloy0076 , and thank you everyone for voicing your opinions. After all, a thing like this would affect us all.
I have to agree with @MarcosBL and @jsiebach on this one, because:

personally, I am using the fact that they're unescaped in a bunch of places - returning spans with a certain color, or bolded text, or link to an email, small things like that that make the Admin's life easier; so for me... "It's not a bug, it's a feature" :-)

I think that this kind of security matter should be treated before storing in the db, not when displaying; I don't know what your use case is, but I strongly recommend you use Requests to filter out any potentially dangerous scripts from getting to your db; always better to cut the problem at the root, I say; this would also solve the problem for anywhere else you show those values;

considering

what column types are unescaped (model_function, model_function_attribute, select, select_multiple) - they're either model functions (that require coding) or very very simple columns, usually string/varchar, that don't actually fit long scripts;
that filtering should have happened already before storing in the DB
that this is an admin panel, so we should trust our users to a certain degree

I think the risk is minimal.

But it must have been frustrating for you to find out by yourself and see it's not mentioned anywhere. I'm sorry for that, and I do agree it should be mentioned in the docs. I've just updated them - I don't want anyone else to share your pain. I'm not that good at writing public docs, sorry for that.
I'll close the issue because it's closed from my point of view. But please reply to convince me otherwise if you think I'm wrong. It's been known to happen :-)
Cheers!


AssetLoader::onProgress - additional event data

I have a suggestion to add a little convenience to PIXI.AssetLoader's onProgress event: It would be helpful to pass the index of asset that was just loaded (and possibly---for extra convenience---the length of the assetURLs array).

Request:
Modify AssetLoader::onProgress event object
     + nth (index of the asset in AssetLoader.assetURLs)+ of (AssetLoader.assetURLs.length) *unnecessary, but convenient*

Here is a diff of the changes needed:
--- AssetLoader.js	2015-02-11 09:33:14.000000000 -0600
+++ AssetLoader.js	2015-02-11 09:36:55.000000000 -0600
@@ -112,11 +112,12 @@
 PIXI.AssetLoader.prototype.load = function()
 {
     var scope = this;
-
-    function onLoad(evt) {
-        scope.onAssetLoaded(evt.data.content);
+
+    function setLoadHandler(loader, nth) {
+        loader.on('loaded', function(evt) {
+            scope.onAssetLoaded(evt.data.content, nth);
+        });
     }
-
     this.loadCount = this.assetURLs.length;

     for (var i=0; i < this.assetURLs.length; i++)
@@ -135,7 +136,7 @@

         var loader = new Constructor(fileName, this.crossorigin);

-        loader.on('loaded', onLoad);
+        setLoadHandler(loader, i );
         loader.load();
     }
 };
@@ -146,10 +147,14 @@
  * @method onAssetLoaded
  * @private
  */
-PIXI.AssetLoader.prototype.onAssetLoaded = function(loader)
+PIXI.AssetLoader.prototype.onAssetLoaded = function(loader, nth)
 {
     this.loadCount--;
-    this.emit('onProgress', { content: this, loader: loader });
+    this.emit('onProgress', { content : this
+                            , loader  : loader
+                            , nth     : nth
+                            , of      : this.assetURLs.length
+                            });
     if (this.onProgress) this.onProgress(loader);

     if (!this.loadCount)

... and here is an example usage (with bootstrap & jquery for ui elements):
function init()
{
    var self   = this;
    var assets = [
                 // ...
                 ];
    var loader = new PIXI.AssetLoader(assets);

    function onProgress( e )
    {
        var percent = Math.round(e.data.nth / e.data.of) * 100;
        var value = percent + "%";
        // 'pb_loader' is a bootstrap progress bar nested in a modal dialog
        $('#pb_loader').width(value).text(value);
    }
    function onComplete( e )
    {
        // 'myModal' is bootstrap modal dialog
        $('#myModal').modal('hide');
    }
    loader.on('onProgress', onProgress);
    loader.on('onComplete', onComplete);

    $("#myModal").modal('hide');
    loader.load();
}

If you want this in v2, feel free to send a PR to the maint branch (v2.x). As for v3 this information is already passed in to progress events. It sends the entire state of the loader (including the calculated progress), and the specific resource that just completed loading.

Awesome, thanks!
I look forward to v3...sounds like an even better change.

I'm adding this to the v2 maintenance branch, and realized that you can't use the index to know how much is loaded. The loads are async parallel, not serial so you could get indexes in random orders. Instead I'm sending back the number of loaded resources and the total number of resources that will be loaded.


How to generate molecules without reference ligand?

Hello, thank you for your excellent work! The demo you provided requires a ligand file. Could you please explain how to generate molecules without a reference ligand, as mentioned in your paper under "de novo ligand design"?

Thanks for reaching out and your interest in our work.
And I apologize for the late reply.
I updated the code and provide a google colab demo for generating ligand molecules without a reference ligand.
Hope the demo provides you a sufficient instruction.
https://drive.google.com/file/d/1Sg2mIeFut66KjAhZBgM-1nPqSmc9g7lC/view?usp=sharing


Fix compilation on Xcode 8.3 beta 4

Works around Swift compiler bug SR-4185.
Verified that it compiles and works in both Xcode 8.2 and 8.3 beta 4.

I can confirm this works with the Xcode 8.3 released today.

Thank you!

No problem! And thanks for the great library!


Missing documentation about how to get selected object

First of all, amazing work! Thanks :D
Vue Instant documentation has a "try typing a film" that when we select an item, it show the full object. But I've not found in documentation how to use @selected event or similiar to get this :/

Ivan in the example you can see the use of selected event
https://jsfiddle.net/santiblanko/dqo6vr57/
If you see, the @selected event call a method called selected.
It´s clear?

Yes, but how to get the full selected object on it?
Actualy I'm only can get the input value using :value binding.. I'm looking for something like this -> https://giphy.com/gifs/3og0IPjlSCDE9CUL9m/fullscreen
Suppose we have a response like that:
[
  {
    id: 1,
    name: "Foo",
    age: 20
  },
  {
    id: 2,
    name: "Bar",
    age: 10
  },
]

And I want  the "id" of response
<vue-instant v-model="search" [...]>
methods: {
  selected() {
    this.search.id // just to have an idea
  }
}

OK. Sorry for that. You need do this:
methods: {   input() {     // do the request   },   selected(param) {     console.log(param)   } }

Oh, sure.. :man_facepalming:
Works great, thanks again! :sweat_smile:


job should fail if there is an permission issue

Error from server (Forbidden): pods is forbidden:
User "system:serviceaccount:kube-tools:i-see-dead-pods" cannot list resource "pods" in API group "" at the cluster scope

To clarify, the command is not returning an error code but terminating with 0, this is hard to detect as there is no obvious error


Clean-Up NotToNot and Add Autocorrect Support

Clean-up the implementation and interface for NotToNot to use the
RuboCop mixin ConfigurableEnforcedStyle, allowing for the same
configuration semantics as most other RuboCop Cops.
Additionally, add autocorrect support for the NotToNot cop.
If you'd like, I can keep going on the rest of the Cops.

Nice one! :+1:

@baberthal Thanks for your contribution. Can you rebase this on top of master?

Also please add a CHANGELOG message.

Rebased on top of master, added a line to CHANGELOG.md. Does that work, or would you like me to go more in-depth in the CHANGELOG?
Thanks,
Morgan

At least for me, rubocop --only RSpec/NotToNot --auto-correct does not do anything. Can somebody confirm? It also does not list # Cop supports --auto-correct. when using rubocop --auto-gen-config.


Make the max-retry-time description clearer

The word "timeout" implies that nsd will give up after this time. It
doesn't give up but it does increase the retry time exponentially.

Thanks for the fix!  Merged it, there are likely also upcoming bug fixes to do with the retry timers; in upcoming releases.  But this fixes the description.


scipy 1.5.2  ImportError: cannot import name 'imresize'

ImportError                               Traceback (most recent call last)
 in
1 # Reshaping the training data
----> 2 from scipy.misc import imresize
3
4 #X_train_new = np.array([imresize(X_train[i],(200,200,3)) for i in range(0,len(X_train))]).astype('float32')
5 X_train_new = np.array([imresize(X_train[i],(200,200,3)) for i in range(0,100)]).astype('float32')
ImportError: cannot import name 'imresize'
Please let me know how to fix this issue, I have scipy 1.5.2

See https://github.com/raghakot/keras-vis/issues/221

That's because imresize has been removed from scipy since v1.3.0rc1,see #209

how to overcome this?


⬇ Merge release v5.2 to dev branch with typeorm syntax updates for feature flag

Context
This PR is to resolve #1875. Here we want to pull the typeORM v0.3.0 update related changes to dev branch to release v6.0 with feature flags.
Summary
Here I have made a new branch release/v6.0 from dev branch and pulled in release/v5.2 branch. Updated typeorm syntax for feature flag related code.
Key Changes

Updated typeORM syntax for feature flag related code in dev branch.
In typeORM v0.3.0 { primary: true } option to define a column as primary key is not supported for relational columns like @ManyToMany, @OneToMany. We need to define separate @PrimaryColumn and use @JoinColum with the relational column. This is done in this PR for feature flag related models.
In the typeORMLoader.ts file, we need to add any new entities/models that we create and also add any new migrations class.
Created a migration file for the model changes made.

In the typeORMLoader.ts file, we need to add any new entities/models that we create and also add any new migrations class.

That's really annoying. Why can't Typeorm keep track of and discover these things anymore? I know I'll forget to do this step a lot.

In the typeORMLoader.ts file, we need to add any new entities/models that we create and also add any new migrations class.

That's really annoying. Why can't Typeorm keep track of and discover these things anymore? I know I'll forget to do this step a lot.

Right, I was also feeling the same as it was done in the old PR for typeorm changes and I was going to look for a solution. Yes, indeed env.app.dirs.entities and env.app.dirs.migration works fine. Thanks :)

@bcb37 @VivekFitkariwala Made changes as requested to remove excess changes to the datasource typeLoader file related to annoying updates to the entities and migration on each new addition. We can update once its forced in typeorm v0.4.
Also, checked the migration scripts and resolved them to generate migration files in proper directory src/database/migrations. The change required to run the migration script is as below for the generate and create cli commands (we need to pass the migration file name as an argument name):
name=migration-name npm run migration:generate name=migration-name npm run migration:create
The other two migration scripts for run and revert should remain the same:
npm run migration:run npm run migration:revert

Once, this is approved, will add these changes in the slack and gitbook documentation.


document variable changes between data release and zarr

We need good documentation of the changes that have been made to variables between the raw CONUS404 output and the zarr stores on S3/Caldera (any variable whose name/values do not match what is in our raw output data release). I know that the workflow should be reproducible with these scripts, but I am aiming for a more human readable version of the changes.
I know some variables in the conus404_hourly.zarr file had some minor calculations. @pnorton-usgs - can you make a spreadsheet of any "calculated" variables with these details:

calculated variable name
human-readable description of calculation, including the names of any variables that it was derived from
link to code/function used to calculate for a more detailed look
I'd like to have that spreadsheet committed in the same preprocessing folder for reference and kept up-to-date if anything changes or new calculated variables are added.

For conus404_daily_xrtm.zarr - are these directly copied from raw instantaneous output (xrtm), or are there any derived variables?
For conus404_daily.zarr - are these just daily averages of the hourly data?
For conus404_monthly.zarr - are these just monthly averages of the daily file above?

@pnorton-usgs - I might not need you to do this anymore. I have a spreadsheet from Kyoko that might have this information, but I'd like to set up some time to go over it with you and make sure it meets this need.

Documentation add here: https://hytest-org.github.io/hytest/dataset_access/README.html
As well as on an internal sharepoint page


[WIP] MINOR: Improve failure message in Kafka cluster used in Connect integration tests (pre Gradle memory change)

DO NOT MERGE
Debugging build failures
See #8718

Closed without merging.


Intellisense not working in template when not using "script setup"

Hi,
I have noticed that Intellisense is not working in template under two conditions:

if the component doesn't have a  part but only

with script setup (even if empty):

without script setup:

if the component has a  part but props are defined then Intellisense stops working inside the template:

This is expected, Volar intellisense supports base on defineComponent, if you don't have, you can use experimentalImplicitWrapComponentOptionsWithDefineComponent option to tell Volar auto wrap component options by defineComponent.
tsconfig.json / jsconfig.json
{
  "compilerOptions": {
    // ...
  },
  "vueCompilerOptions": {
    "experimentalImplicitWrapComponentOptionsWithDefineComponent": true
  },
  "include": ["src/**/*.js", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
}

组件中，props不使用defineProps的形式还是会出现这个问题

The suggested solution by @johnsoncodehk is deprecated, and even though this is old I am still getting this issue.
The solution is to have both data option and a script with setup: https://github.com/vuejs/core/issues/9296#issuecomment-2074595734


Made overt references to anti-spam in the form

Obviously I can make more changes to this as needed before it is eventually pulled.

Content for the page.
Welcome to the Irish Tech Community, thank you for your interest in signing up for this community. We always welcome new members to our Slack. Due to the popularity of this Slack channel, it is within the communities best interest for it to be as Spam Free as possible. We have a guide that is widely available for New Members, we encourage members to check this before joining.
If you join the community you agree to the following:

You are joining this community to participate and not to Spam. Spam includes unsolicited DM's to members and promotion of any kind in the main channels.
For any promotion you are doing for yourself, your company or product must be placed in #selfpromo
You adhere to the Code of Conduct


Added setuptools script. Refactored CLI entry point.

Moved pypxe-server.py to be pypxe.server, and made modifications required for that to work. Added a setuptools install script. Added relevant .gitignore bits for that.
[root@icb:~] # cd PyPXE-icb
[root@icb:~/PyPXE-icb] # python setup.py install
running install
running bdist_egg
running egg_info
writing PyPXE.egg-info/PKG-INFO
writing top-level names to PyPXE.egg-info/top_level.txt
writing dependency_links to PyPXE.egg-info/dependency_links.txt
writing entry points to PyPXE.egg-info/entry_points.txt
reading manifest file 'PyPXE.egg-info/SOURCES.txt'
writing manifest file 'PyPXE.egg-info/SOURCES.txt'
installing library code to build/bdist.freebsd-10.1-RELEASE-amd64/egg
running install_lib
running build_py
creating build/bdist.freebsd-10.1-RELEASE-amd64/egg
creating build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
copying build/lib/pypxe/dhcp.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
creating build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd
copying build/lib/pypxe/nbd/nbd.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd
copying build/lib/pypxe/nbd/writes.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd
copying build/lib/pypxe/nbd/__init__.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd
copying build/lib/pypxe/__init__.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
copying build/lib/pypxe/tftp.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
copying build/lib/pypxe/http.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
copying build/lib/pypxe/server.py -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/dhcp.py to dhcp.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd/nbd.py to nbd.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd/writes.py to writes.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/nbd/__init__.py to __init__.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/__init__.py to __init__.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/tftp.py to tftp.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/http.py to http.pyc
byte-compiling build/bdist.freebsd-10.1-RELEASE-amd64/egg/pypxe/server.py to server.pyc
creating build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
copying PyPXE.egg-info/PKG-INFO -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
copying PyPXE.egg-info/SOURCES.txt -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
copying PyPXE.egg-info/dependency_links.txt -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
copying PyPXE.egg-info/entry_points.txt -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
copying PyPXE.egg-info/top_level.txt -> build/bdist.freebsd-10.1-RELEASE-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/PyPXE-1.6-py2.7.egg' and adding 'build/bdist.freebsd-10.1-RELEASE-amd64/egg' to it
removing 'build/bdist.freebsd-10.1-RELEASE-amd64/egg' (and everything under it)
Processing PyPXE-1.6-py2.7.egg
Removing /usr/local/lib/python2.7/site-packages/PyPXE-1.6-py2.7.egg
Copying PyPXE-1.6-py2.7.egg to /usr/local/lib/python2.7/site-packages
PyPXE 1.6 is already the active version in easy-install.pth
Installing pypxe script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/PyPXE-1.6-py2.7.egg
Processing dependencies for PyPXE==1.6
Finished processing dependencies for PyPXE==1.6
[root@icb:~/PyPXE-icb] # cd ~/pxe
[root@icb:~/pxe] # python -m pypxe.server
2015-05-19 20:51:48,495 [INFO] PyPXE Starting TFTP server...
2015-05-19 20:51:48,496 [INFO] PyPXE PyPXE successfully initialized and running!
^C
Shutting down PyPXE...

[root@icb:~/pxe] 1 # pypxe
2015-05-19 20:51:54,087 [INFO] PyPXE Starting TFTP server...
2015-05-19 20:51:54,087 [INFO] PyPXE PyPXE successfully initialized and running!
^C
Shutting down PyPXE...

[root@icb:~/pxe] 1 #

Is the argparse dependency for <3.2 standard? Because if not, we don't actually support 3.2 and we have a number of syntax incompatibilities stopping 3* from working.
Are
# python -m pypxe.server

and
# pypxe

Functionally identical?
Other than that I like this.

I copied the check for argparse from another setup.py. I can remove the reference to 3 if you want.
Yes, python -m pypxe.server and pypxe should work the same, with one caveat. If you're running from a checkout, python -m pypxe.server will use the local python path. pypxe will use the system path.
1z [root@icb:~/PyPXE-icb] # git diff
diff --git a/pypxe/server.py b/pypxe/server.py
index 2004583..5166664 100755
--- a/pypxe/server.py
+++ b/pypxe/server.py
@@ -165,7 +165,7 @@ def main():
         handler.setFormatter(formatter)
         sys_logger.addHandler(handler)
         sys_logger.setLevel(logging.INFO)
-
+        sys_logger.warn("I'm the local checkout!")
         # pass warning to user regarding starting HTTP server without iPXE
         if args.USE_HTTP and not args.USE_IPXE and not args.USE_DHCP:
             sys_logger.warning('HTTP selected but iPXE disabled. PXE ROM must support HTTP requests.')
1z [root@icb:~/PyPXE-icb] # python -m pypxe.server
2015-05-19 22:18:14,840 [WARNING] PyPXE I'm the local checkout!
2015-05-19 22:18:14,840 [INFO] PyPXE Starting TFTP server...
2015-05-19 22:18:14,841 [INFO] PyPXE PyPXE successfully initialized and running!
^C
Shutting down PyPXE...

1z [root@icb:~/PyPXE-icb] 1 # pypxe
2015-05-19 22:18:20,001 [INFO] PyPXE Starting TFTP server...
2015-05-19 22:18:20,001 [INFO] PyPXE PyPXE successfully initialized and running!
^C
Shutting down PyPXE...

1z [root@icb:~/PyPXE-icb] 1 #

I think we ought to add some kind of error when trying to install with python3 as otherwise you get slightly ambiguous errors when attempting to run anything.
That sounds good then.
@mmattioli comments?

Added an explicit check for running under Python 3 in setup.py and exit if true.

Is there anything I should change here? I have other additions I want to get started on, but I want to have this completed first.

Apologies, I'd forgotten about this. I'll merge it now.


chore: remove java faker

What this PR changes/adds
completely removes the javafaker dependency from the project as it is not needed.
Why it does that
cleanup. small dependency footprint.
Further notes
.
Checklist

[ ] added appropriate tests?
[ ] performed checkstyle check locally?
[ ] added/updated copyright headers?
[ ] documented public classes/methods?
[ ] added/updated relevant documentation?
[ ] added relevant details to the changelog? (skip with label no-changelog)
[ ] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

Codecov Report

Merging #31 (f24971f) into main (1aa9dd6) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head f24971f differs from pull request most recent head 7174969. Consider uploading reports for the commit 7174969 to get more accurate results

@@            Coverage Diff            @@
##               main      #31   +/-   ##
=========================================
  Coverage     90.95%   90.95%
  Complexity       91       91
=========================================
  Files            25       25
  Lines           398      398
  Branches         18       18
=========================================
  Hits            362      362
  Misses           31       31
  Partials          5        5

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Play Game Button

When the score as well as highscore is displayed at the end of flappy bird, doge and bowling.  The user is given a play game button that restarts the game.
For pong, sadly this isn't working correctly.  The game doesn't restart.
I have just been F5-ing it. For a fresh game.

https://github.com/dmadisetti/gameFrame/pull/7/commits/349acef3ad25c53fb6736c9a406ad7b38f1787ec


Cannot resolve some symbols

I've tried to create a project for Bazel itself and got the plug-in to sync successfully. However, some symbols coming from JARs in third_party, e.g. com.google.common.eventbus.EventBus cannot be resolved, so I get an error for example in j/c/g/devtools/build/lib/actions/Executor.java looking like this:
    EventBus getEventBus();
    Cannot resolve symbol 'EventBus'

Bazel -> Make Project works and Bazel -> Sync Project also works, it's just the IDE that can't find the things.
My project view looks like this:
directories:
  src
  third_party
  tools

targets:
  //src/...:all

test_sources:
  src/test/*
  src/tools/generate_workspace/src/test/*
  third_party/ijar/test/*

Any idea? Am I doing something wrong here?

Sorry for the delay in replying.
I haven't been able to reproduce this. For me, a guava19 library gets added to the project's external libraries during sync.
Can you reproduce with the latest version of IJwB?

Please reopen if this is still occurring in the latest version.


Find usage should not list the definition

Currently, find usage dialog will show the definition as well as references. Showing definition in usage is a not a big deal but a bit awkward. I'd like to see it fixed too :)

Fixed


Merge pull request #1 from FreddieV4/master

Updating my Repo from Master

If you're updating you're own repo, you shouldn't have to submit a Pull Request to this repo :)


Blacklist registration

Would you like to be able to open the context menu from the blacklist and add the target player to "PlayerTrack"?
I couldn't add the BL person to "PlayerTrack" unless I met him in the content or saw him again in the city, so it would be very helpful if possible.

Completed!


Revert "Update repos sub parameters"

Reverts Azure/azure-sdk-tools#1398
For some reason this seems to have cause the PR validations stop triggering
e.g https://github.com/Azure/azure-sdk-tools/pull/1307

/check-enforcer override


Simpler Role Picker

This is ready to review @keybase/react-hackers
Replace all instances of Role Picker with a new simpler role picker. This new role picker is just a normal component you place in your render function and pass in the appropriate props. It should be flexible enough to use in a variety of ways and anywhere you need to use a role picker. It's already replaced all existing instances of the old role picker. The old role picker is gone.
Callers will technically have to do a bit more work, but luckily this work is type protected. Compare this with the old solution which required careful untyped coordination across multiple screens.
Context
The old role picker relies on screen and passing data back from different screens to a parent screen from callbacks. This is really brittle, and is currently broken when you try to add someone to a team (and change their role) from the profile tab. (and it was broken in a bunch of other ways too)
Solution
Create A new component that replaces the existing role picker. It has no state and is not connected.
The new Role Picker exposes a helper that turns it into a floating item on top of anything (most commonly a button).

@MarcoPolo The example looks good! But I think there's quite some complexity to the old props that the example use doesn't cover.  e.g. these props:
  allowOwner?: boolean,
  allowAdmin?: boolean,
  ownerDisabledExp?: string,
  pluralizeRoleName?: boolean,
  showNotificationCheckbox?: boolean,
  sendNotificationChecked?: boolean,

It's these that made me tend to prefer using the controlled role picker to the uncontrolled one, because often you can't find out e.g. whether "allowOwner" should be true without interrogating state, and sometimes even dispatching to load team operations, and this seems like a lot to hand off to some totally unrelated component that is in general uninterested in team capabilities.  You could imagine bugs based on the different parent containers of the same uncontrolled rolepicker doing things to set up these props slightly differently to each other.
Anyway, mainly just encouraging us to think about the worst-case load on the parent connected component and whether it's manageable, and if not whether there are small changes we could make to make it be.

excellet points @cjb.
for the allowOwner/Admin we could probably have a pure function in constants/teams that takes State and returns a map of {[key: role]: (DisabledReason: string)} (which is what this new simple role picker takes).
for these props:
  showNotificationCheckbox?: boolean,
  sendNotificationChecked?: boolean,

I'd argue that this is actually a good reason that this component shouldn't be connected! These props have nothing to do with "what role do you want?". This should be handled by something else. (I think this is only used in the let-someone-in-who's-requested-to-join flow.)
I know in the past we've been fairly quick to adopt connected components, but I think they introduce a lot of complexity, code, and make the components a lot more powerful than they otherwise would be. Sometimes we need that extra power, but most of the time it's probably overkill.

@MarcoPolo Cool, sounds like a good plan.

Looking good! Some quick desktop styling comments from the "someone else's profile->...->Add to team..." menu

role row is squashed up against Add button

when you change from e.g. reader to writer, the buttons scoot over horizontally because reader is a horizontally-longer word -- perhaps put a minWidth on the "Make " button that covers the longest length?

I wonder whether we still need to show "Send chat notification" on these.  I think in the live app we'd just left the checkbox off most of the time and had it turned on with no way to turn it off.  @cecileboucheron, what do you think?

It'd be cool if, in the screenshot, the role modal was on top of the cancel/add buttons behind it, as it is in Zeplin.  Definitely doesn't need to be pixel-perfect or anything, but just somewhere on top of the buttons so you aren't looking at two different Cancels sounds better.

On "Teams->someteam->Add to people...", it looks like there's no default role selected.  Maybe we should just always default to writer?

Perhaps clicking outside the dropdown area should close the dropdown?  It doesn't (in the screenshot scenario) and I was kind of expecting it to though I can go either way.

(Oh, and we have a release coming up and I don't consider most of these to be blockers.. probably only the first bullet point is.)

Agreed with @cjb's feedback above. A bit more feedback from design:

Default to Writer when adding people or letting people in

We do still need the checkbox. Two changes: it should be checked by default, and the copy should be more clear, let's do "Announce them in #general|" in big teams and "Announce them in team chat" in small teams.
This red mention should just be grey (BodySmall) and not transparent + let's close the sentence with a ..

The x to close the modal window behind should stil work

It'd be cool if, in the screenshot, the role modal was on top of the cancel/add buttons behind it, as it is in Zeplin. Definitely doesn't need to be pixel-perfect or anything, but just somewhere on top of the buttons so you aren't looking at two different Cancels sounds better.

The role picker does live on top of the thing that spawned it. In the screen shot's case it lives on top on the dropdown button. In other cases it lives on top of the add button.

Mobile feedback:

the radio button doesn't work for me. It only works when clicking the label.
Cancel action should be moved to the top left in a header bar
Make blue button full-width

I think I addressed all the comments except for Cecile's

It should probably be using the modal window component on mobile now? The page would be sliding from the bottom on iOS and have a header bar, etc.

Since this isn't a modal or a screen (on purpose), this isn't feasible right now.

Mobile switch could use some left-spacing:

Other than that lgtm!


Used charge jumps between positive and negative values

Tracker so that I don't forget fixing this,

Fixed.


supported languages

Thanks for very good package.
What programming languages are supported besides HTML, Dart, and JS?

Hi, thanks.
The languages I talked about in the description of the repo are just a few among many. The complete list is right here: https://github.com/git-touch/highlight.dart/tree/master/highlight/lib/languages (I'll add it to the README of the Github repo).


Joined participants can't see files in added library, and auto complete doesn't work.

Describe what happened:
So there was several problems here:

in the joined session you can only see files that are under a filter named "Source Files" and "Header Files", and files will be hidden unless the filters are named exactly like this. (see step 8.)
Auto complete doesn't work in the joined session. (see step 9.)
"Go to all" code navigation doesn't work in joined session. (see step 10.)

What was your system configuration?
Product and Version [VS/VSCode]:Visual Studio Professional 2019, version 16.10.1
OS Version[macOS/Windows]: Windows
Live Share Extension Version: 1.0.4374.0
Target Platform or Language [e.g. Node.js]: C++
Steps to Reproduce / Scenario:
(NOTE: you will need to have CMake 3.8 or later installed)
(NOTE2: you need to allow private access for the firewall popup)
cmake_hello_world.zip

Unzip the attached file.
open command line and navigate to the build folder.
type the following to the command line: cmake ..
open the generated hello_world.sln file in visual studio.
Notice that you have two source files. main.cpp that is under "app->Source Files->main.cpp" and you have "myLib->c:->cmake_hello_world->mySubDir->myFile.cpp" (this folder structure might be different for you, depending on where you unzipped the file, but myFile.cpp should be visible in the project.)
Click live share.
Open another instance of visual studio and join the session you shared.
open Solution Explorer and notice that main.cpp file can be found under "app->Source Files->main.cpp", but myFile.cpp can't be found anywhere!!
Open main.cpp file in the original live share session, and type std::abs, notice that auto complete works. Open the same file in the joined live share session and typing std::abs, the auto complete doesn't work (it doesn't find the std:: functions).
In the joined session, press Ctrl+t to open "go to all" code navigation. Now type "main" in the popup, and notice that it doesn't find the main.cpp file.

No response? Nada?
I put a lot of effort in finding a way for you to replicate this issue.

Hey @PetriJJ , sorry for not responding to your issue. When we first saw it, we added it to our internal backlog (thanks to your very actionable repro instructions), but haven't had time to get to it yet. When we start working on it, we'll let you know.
We very much appreciate you making our jobs easier, and sorry again for dropping the ball on communication.

Hi @PetriJJ, we have released a fix in the latest Live Share extension. Apologize for taking so long and hopefully the fix works for you. Please let us know your feedback. Thankyou!


CDN rewriting vs absolute paths in css urls

Reproduction via mps system tests available at https://github.com/pagespeed/mod_pagespeed/tree/oschaaf-master-cdn-routing
Given the following configuration:
<VirtualHost <IP_ADDRESS>:8091>
  ModPagespeedMapOriginDomain <IP_ADDRESS>:8091 localhost:8091/abckey <IP_ADDRESS>:8091
  ModPagespeedMapRewriteDomain localhost:8091/abckey <IP_ADDRESS>:8091
  ModPagespeedEnableFilters rewrite_domains
  ModPagespeedDisableFilters inline_css
  ModPagespeedPreserveUrlRelativity off
  ModPagespeedRewriteDeadlinePerFlushMs -1

  ServerName localhost
  DocumentRoot "@@APACHE_DOC_ROOT@@"
</VirtualHost>

Original HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="cdn-routing.css"/>
</head>
<body></body>
</html>

Original CSS:
body  {
    background-image: url("/mod_pagespeed_test/test1.jpg");
}
body  {
    background-image: url("test2.jpg");
}

Rewritten CSS (whitespace added for readability):
curl http://localhost:8091/abckey/mod_pagespeed_test/A.cdn-routing.css.pagespeed.cf.umDpu0_wvN.css

body{
background-image:url(http://localhost:8091/mod_pagespeed_test/xtest1.jpg.pagespeed.ic.YsUBdV-i_6.jpg)}
body{
background-image:url(http://localhost:8091/abckey/mod_pagespeed_test/xtest2.jpg.pagespeed.ic.YsUBdV-i_6.jpg)}

Expected CSS:
body{
background-image:url(http://localhost:8091/abckey/mod_pagespeed_test/xtest1.jpg.pagespeed.ic.YsUBdV-i_6.jpg)}
body{
background-image:url(http://localhost:8091/abckey/mod_pagespeed_test/xtest2.jpg.pagespeed.ic.YsUBdV-i_6.jpg)}

Summarizing, I would have expected the optimized url for test1.jpg to also include /abckey/ into its path, similar to what happens for test2.jpg.

try
body  {     background-image: url("./mod_pagespeed_test/test1.jpg"); }

when someone changes the pagespeed .conf does it requires reload of apache? or any special command?

Yes, you need to restart apache to pick up pagespeed.conf changes.
However, .htaccess can be updated and changes picked up on-the-fly.
-Josh
On Mon, Aug 15, 2016 at 8:28 AM, Miguel Queiroz<EMAIL_ADDRESS>wrote:

when someone changes the pagespeed .conf does it requires reload of
apache? or any special command?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pagespeed/mod_pagespeed/issues/1361#issuecomment-239790253,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB2kPRJxaSOAgfu-ffOVJ0dvo5YcCxFcks5qgFt3gaJpZM4JSu12
.


fix(ios): fix an issue on iOS which required an artist to be provided…

According to the interface artist should not be required on a Track object. This PR updates this on iOS to make the interface uniform and in doing so closes https://github.com/doublesymmetry/react-native-track-player/issues/1469

Looks good to me.

@JDMathew pushed an update. Feel free to take it for a spin to verify it resolves your issue. You can test with the example project (make sure you run yarn add react-native-track-player@file:..).


Using JQuery functions

import { ClientFunction } from 'testcafe'; or const {ClientFunction} = require('testcafe');
When I try to use ClientFunction for JQuery in Cucumber-Testcafe frame-work, I get below error.
"ClientFunction cannot implicitly resolve the test run in context of which it should be executed. If you need to call ClientFunction from the Node.js API callback,
pass the test controller manually via ClientFunction's .with({ boundTestRun: t }) method first. Note that you cannot execute ClientFunction outside the test code."
I'm trying to call below JQuery, can you help me how to call it '.with({ boundTestRun: t })'
returnDefValue: ClientFunction(function (pageElem) {
    return document.querySelectorAll(pageElem)[0].value;
}),

After few more tries, I wrapped JQuery in Client function like this :
returnDefValue: function (pageElem, t) {
return ClientFunction(document.querySelectorAll("select[name='dropdown-emailGroupBy']")[0].value).with({ boundTestRun: t });
},
it gives me the response , "ReferenceError: document is not defined"
===
So I'm not able to use the JQuery function with Cucumber, that is usually supported by a Client Function wrapper in testcafe ..
e.g export const returnDefValue = ClientFunction(function (pageElem) {
// window.scrollBy(0, 1000);
return document.querySelectorAll(pageElem)[0].value
});

Is there anyway that I can fork the project you are working on? It looks like to need to add .with({ boundTestRun: t }) to your selector. Here's an example of when I'm using it https://github.com/rquellh/testcafe-cucumber/blob/master/features/support/pages/github-page.js.
Hope this helps.


Replace setuid binaries

@siosm is doing a blog post series at the moment on replacing setuid binaries with rootless alternatives.
https://tim.siosm.fr/blog/2023/12/19/ssh-over-unix-socket/
After testing, these could be implemented in this distro as a testing ground.

The article is interesting, but is something we would wait to pull in from upstream, much like Confined Users. Without it, as the article states, this would most likely be a security degradation:
As-is, this setup is basically a free local root for anything running under your current user that has access to your SSH private key.
To truly increase our security posture, we would instead need to remove sudo (and all other setuid binaries) and run our session under a fully unprivileged, confined user, but that’s for a future post.
As such the article is a proof of concept and would need to be combined with Confined Users to have any utility, so we will wait for that to come from upstream.


lots of thing broken when running from tty instead of gdm

Regression?
No
System Info and Version
 System/Version info
[sysinfo.log](https://github.com/user-attachments/files/16537956/sysinfo.log)

Description
Hyprland feels so much different when it's not being ran from gdm
How to reproduce
Run hyprland via tty or lemurs dm
Crash reports, logs, images, videos
ags dialog shows weird gray border (?)

window transparency made the whole window invisible
https://github.com/user-attachments/assets/a79cce01-4fa5-4be0-aa83-3653f590eb9e
scrolling feels somewhat slower / different

hyprland.log
forgot to attach logs

This might be due to the tty shell setting up your environment. Compare the environment variables maybe you find a theme setting in one and not the other?

This might be due to the tty shell setting up your environment. Compare the environment variables maybe you find a theme setting in one and not the other?

How can I do so?

You start Hyprland and use the printenv command on the terminal (once for tty and once for gdm).

Like this?
with-gdm.txt
with-tty.txt

Yes! However, I didn't find anything out of the ordinary, sadly :(


ACLP zcoords shouldn't move

when doing non-thermally driven expansion, e.g., fuel-performance based, the ACLP should not move.
Allow internal components to move freely within block and maintain constant block zcoords .
Possible solution:

set target component for ACLP to duct. Unless the duct is expanding (which should only happen for thermally driven expansion) the block zcoords shouldn't move then but will allow the internal components to move.

Resolved with https://github.com/albeanth/armi/commit/6e9890cd80120e88dfc52aa2b65251d360363eab and then (slightly) corrected with https://github.com/albeanth/armi/commit/c655a8f0b3cc2da0b14a73e086f1dd09aeed917e


Need for Contextual Validation of  Tag in JS Injection Mechanic

injectJavascriptIntoBody function incorrectly places the injected script when a </body> tag is found within a script string, rather than the closing tag of the HTML body.
Here is the current implementation as reference:
func (p *HttpProxy) injectJavascriptIntoBody(body []byte, script string, src_url string) []byte {
	js_nonce_re := regexp.MustCompile(`(?i)<script.*nonce=['"]([^'"]*)`)
	m_nonce := js_nonce_re.FindStringSubmatch(string(body))
	js_nonce := ""
	if m_nonce != nil {
		js_nonce = " nonce=\"" + m_nonce[1] + "\""
	}
	re := regexp.MustCompile(`(?i)(<\s*/body\s*>)`)
	var d_inject string
	if script != "" {
		d_inject = "<script" + js_nonce + ">" + script + "</script>\n${1}"
	} else if src_url != "" {
		d_inject = "<script" + js_nonce + " type=\"application/javascript\" src=\"" + src_url + "\"></script>\n${1}"
	} else {
		return body
	}
	ret := []byte(re.ReplaceAllString(string(body), d_inject))
	return ret
}

This function, with its current setup, can mistakenly inject into a </body> tag if it is found inside a string in the script. There are a couple of ways this could be solved.
A negative look-ahead would've been my first bet but since the Golang regexp stack is meant/enforced to always operate at O(n) and look-ahead categorically breaks the O(n) guarantee, lookaheads aren't in the vanilla regexp package and it would need to be replaced with regexp2 or some other alternative.
RegExes and HTML editing don't really go together, instead of RegExp it should be trying to parse the HTML and use whatever parser to safely add the script. I don't know any Go HTML parser, but luckily there's one HTML parser that every visitor supports: their own browser. Basically what I'm suggesting is to generate the scripts in JS and append them to end of body, all in JS. The JS itself could be injected into first occurance of  element start/close tag.
Other solutions exists as well, most are in essence modifying the RegExp pattern. Problem I found with current method, is that it injects/rewrites on each instance of </body> due to ReplaceAllString, even if matched  is not a HTML tag and is referenced to in the string of a script tag string

https://regex101.com/r/09nDMW/1

**Hi 👽 ! If you are interested in ⚙Advanced Phishing⚙ and the ✨Evilginx3✨ tool then I offer you Google Gmail and Custom Phishlets with a ✅Free Tutorial✅ which arrives if the 📈Telegram reaches 50 Subscribers📈
⏳ GOOGLE GMAIL PHISHLET 2024 WITH PROOF ⏳
->
⛔https://www.youtube.com/watch?v=nA47UknIE6A⛔
🔓 Ask your questions and a free tutorial from 50 subs on telegram !!!
->
📩https://t.me/Noremorse1011📩**


Copy /etc/localtime symlink and target instead of mounting

With ubuntu 24.04, attempting to install the tzdata package inside an enroot container leads to the following error:
mv: cannot move '/etc/localtime.dpkg-new' to '/etc/localtime': Device or resource busy

The package's postinst script only skips setting the timezone if /etc/localtime already exists as a symlink. So, in order to set the timezone inside the container to match the host os, we must copy both the symlink and the symlink's target into the container rootfs.
See https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/tzdata/tree/debian/tzdata.postinst?h=debian/2024a-1ubuntu1

Tested on ubuntu 20.04, 22.04 and 24.04, centos 7 and 8, and alpine 3.19.
Ubuntu has the annoying habit of canonicalizing the symlink when installing tzdata, so when the container starts up it'll be whatever was on your host (e.g. /usr/share/zoneinfo/US/Central), but then tzdata's postinst script (linked above) will rewrite that to /usr/share/zoneinfo/America/Chicago). And then if you restart the container this hook will set it back to US/Central. That feels a little janky but it seems to work.

HI, sorry to re-touch this issue, but it seems that this hook might introduce a race condition, when used with pyxis.
So a user is re-using the same container on  different nodes simultaneously, and previosusly, the mount was somewhat fine, cause it happens locally to the machine.
However, copying into the container has the nasty side effect that, given that the container is on a shared file system, another node might just have done the same…

To add some more context here:
I'm running a sbatch job using a common pre-setup container like
#!/bin/bash
#SBATCH --container-name ubuntu-2310
#SBATCH --array=0-100%10
(more #SBATCH directives)

python myscript.py

so Slurm will schedule executions on multiple nodes in parallel.
The specific error I'm experiencing is
slurmstepd-cXXX: error: pyxis: container start failed with error code: 1
slurmstepd-cXXX: error: pyxis: printing enroot log file:
slurmstepd-cXXX: error: pyxis:     cp: cannot create symbolic link '/<network_share>/.local/share/enroot/pyxis_2310/etc/localtime': File exists
slurmstepd-cXXX: error: pyxis:     [ERROR] /etc/enroot/hooks.d/10-localtime.sh exited with return code 1
slurmstepd-cXXX: error: pyxis: couldn't start container
slurmstepd-cXXX: error: spank: required plugin spank_pyxis.so: task_init() failed with rc=-1
slurmstepd-cXXX: error: Failed to invoke spank plugin stack

However, this error only randomly appears in about 1/3 of executions. Our guess would be that this happens because the lines of 10-localtime.sh are executed multiple times in parallel and interleaved, and depending on which order this happens in, some of them succeed, and some don't.

Whoops! If you're able to reliably reproduce it, can you try simply adding --force to the cp commands in the hook?

I'll let Jon comment on whether we recommend running the same container rootfs across multiple machines (I believe not), but that cp --force thing might unblock you for now?

Whoops! If you're able to reliably reproduce it, can you try simply adding --force to the cp commands in the hook?

We just tried your suggestion on one of our machines, and that machine was then the only one no longer experiencing errors, so we think that should do the trick :+1:

I'll let Jon comment on whether we recommend running the same container rootfs across multiple machines (I believe not), but that cp --force thing might unblock you for now?

I agree that this approach looks a bit suspicious, and I would not do it this way in any kind of serious production usage. In this case, we are talking about research work, though, and I like the convenience of having a manual change I make in a container immediately affect all future job executions.
In any case, I believe adding the --force flag should increase the resilience of the system without negative side effects here, so doing so probably makes sense even though it is only of relevance in this (maybe not fully supported) edge case? I can open a small PR for that if you want.

Yeah we don't usually recommend this since we don't test it.
Having said that we do flock the rootfs: https://github.com/NVIDIA/enroot/blob/2bd51434bbc427a1d8463e5682c89bac4b8fda51/src/runtime.sh#L243
So maybe your shared filesystem doesn't support it or is not properly configured

It's GPFS, and it does support locking.
I'll have a test and will report back

I fail to understand what's happening here.
I'm making a new issue


Add --only-pick-uid option for rescue mode

Addition completed in : 7d630a5da291cc488f313ecb237e3fa58776f32d
Test suite completed in : 201891ee6c408698664b608a91faa49cf36b1b84
All tests in test suite passed.
Closing issue.


jdk8u and jdk11u Adoptium mirror failing with merge conflicts

https://ci.adoptopenjdk.net/view/git-mirrors/job/git-mirrors/job/adoptium/

jdk11u fixed, conflict caused by deletion of .github/workflows/submit.yml

git-skara-aarch32-jdk8u mirror also failed

All resolved.


Enable sync-stack for Anomaly Detector

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-anomalydetector

Closing due to missing tests.


Generating coverage xml of a library that has examples produces line-rate=NaN

Describe the bug
Running with arguments --out Xml on a library containing an examples folder produces a section in the cobertura.xml:
        <package name="examples" line-rate="NaN" branch-rate="0" complexity="0">
            <classes></classes>
        </package>

This causes the overall line-rate to be NaN too.
Expected behavior
Coverage for the examples should just be 0 if there are no tests.

  I did recreate and test on a recreation project and confirm it but here's the actual code change PR https://github.com/xd009642/tarpaulin/pull/871

I will also do that release tonight for version 0.18.4

Thanks, It no longer generates NaN on my repo.


Extend ':=' operator any type with a KeyEncoder instance

In the cases where JSON keys have a richer type
than plain strings, it is handy to have the ':='
operator work seamlessly. As circe already has
'KeyEncoder' abstraction, the assignment operator
can work off the same abstraction. This is also
backwards compatible with the 'String' based
implementation.

Codecov Report

Merging #986 into master will decrease coverage by 35.85%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           master     #986       +/-   ##
===========================================
- Coverage   85.18%   49.32%   -35.86%
===========================================
  Files          75       75
  Lines        2362     2362
  Branches      159      159
===========================================
- Hits         2012     1165      -847
- Misses        350     1197      +847

Impacted Files
Coverage Δ

...hared/src/main/scala/io/circe/syntax/package.scala
33.33% <0%> (-66.67%)
:arrow_down:

...chmark/src/main/scala/io/circe/benchmark/Foo.scala
0% <0%> (-100%)
:arrow_down:

...o/circe/benchmark/GenericDerivationBenchmark.scala
0% <0%> (-100%)
:arrow_down:

...rc/main/scala/io/circe/benchmark/ExampleData.scala
0% <0%> (-100%)
:arrow_down:

...ed/src/main/scala/io/circe/disjunctionCodecs.scala
0% <0%> (-100%)
:arrow_down:

...scala/io/circe/benchmark/JsonObjectBenchmark.scala
0% <0%> (-100%)
:arrow_down:

...la/io/circe/benchmark/NumberParsingBenchmark.scala
0% <0%> (-100%)
:arrow_down:

...red/src/main/scala/io/circe/cursor/TopCursor.scala
5% <0%> (-95%)
:arrow_down:

...d/src/main/scala/io/circe/NonEmptySeqDecoder.scala
0% <0%> (-91.67%)
:arrow_down:

...in/scala/io/circe/benchmark/FoldingBenchmark.scala
0% <0%> (-89.66%)
:arrow_down:

... and 27 more

Continue to review full report at Codecov.

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

@tejinders This is great, thanks (especially for the tests)!