Using the Source Reader in Asynchronous Mode

As shown in MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/gg583871(v=vs.85).aspx SourceReader is able to asynchonous sample read. How can it be achieved in Sharpdx?

How to create and set async callback? There is no IMFSourceReaderCallback interface, only the SourceReaderCallback class but when class inherits it you cant override methods and base class requires native pointer (to what?).

Following docs in MSD all out parameters in ReadSample method of SourceReader should be null to use callback and async mode but out parameters can't be set null. Is this inconsistent mapping? In MediaFoundation .Net there is separate ReadSampleAsync method.

Both of problems seems like potetnial bugs.
Am I missing something?

I don't remember exactly why it was not mapped, buy many things from MF have not been mapped, typically callback interfaces. Also, I think that I have avoided implementing any async from DirectX methods, as it is easier to implement them in C# (unless the implementation is doing some special things when using Async native mode)


OCPBUGS-11861: Add log-level to ocp 4.10 manifests

This commit adds the log-level field to the metallb crd in the 4.10 ocp manifests.

/test operator-e2e

/lgtm
/approve

/label backport-risk-assessed

/label cherry-pick-approved


Pruning of subgraphs

This PR resolves issue #3665 and adds a command graphman prune <deployment> that removes all history from a deployment before a given block. By default, that block is 10,000 blocks before the current subgraph head. After pruning, the deployment can only be queried at block numbers at least as high as that block.
Here's what it looks like when pruning something:
prune QmRuorV4Ck1sVdpfpAAwfYXnf3cfSkbDwZvvzWud9SH8Dg[130]
    latest: 15461533
     final: 15461283
  earliest: 15451533

Analyzed 14 tables in 80s
            table              |  entities  |  versions  |  ratio
-------------------------------+------------+------------+--------
add_liquidity_event            |      41750 |      41750 | 100.0%
eth_purchase_event             |    1156610 |    1156610 | 100.0%
exchange                       |        626 |    2186833 |   0.0%
exchange_day_data              |      19353 |    2185127 |   0.9%
exchange_historical_data       |    2508807 |    2508807 | 100.0%
poi2$                          |          1 |    1412019 |   0.0%
remove_liquidity_event         |      25698 |      25698 | 100.0%
token_purchase_event           |    1285494 |    1285494 | 100.0%
transaction                    |    2473179 |    2473179 | 100.0%
uniswap                        |          1 |    1410157 |   0.0%
uniswap_day_data               |       1288 |    1407878 |   0.1%
uniswap_historical_data        |      19804 |    2184587 |   0.9%
user                           |      98807 |      98807 | 100.0%
user_exchange_data             |      19008 |    2441509 |   0.8%

Copy final entities (versions live between 15451533 and 15461283)
            table              |  versions  |    time
-------------------------------+------------+------------
exchange                       |        182 |        70s
exchange_day_data              |        130 |         5s
poi2$                          |        172 |         5s
uniswap                        |        172 |         3s
uniswap_day_data               |        171 |         3s
uniswap_historical_data        |        130 |         4s
user_exchange_data             |        184 |        11s
Finished copying final entity versions in 103s

Blocking writes and switching tables
            table              |  versions  |    time
-------------------------------+------------+------------
exchange                       |       3095 |         3s
exchange_day_data              |     103159 |        70s
poi2$                          |         10 |         0s
uniswap                        |         10 |         0s
uniswap_day_data               |       1410 |         1s
uniswap_historical_data        |     103159 |        67s
user_exchange_data             |     223731 |       154s
Enabling writes. Switching took 362s

Analyzed 7 tables in 5s
            table              |  entities  |  versions  |  ratio
-------------------------------+------------+------------+--------
exchange                       |       3086 |       3277 |  94.2%
exchange_day_data              |     102822 |     103289 |  99.5%
poi2$                          |          1 |        182 |   0.5%
uniswap                        |          1 |        182 |   0.5%
uniswap_day_data               |       1401 |       1581 |  88.6%
uniswap_historical_data        |     102933 |     103289 |  99.7%
user_exchange_data             |     223127 |     223915 |  99.6%

Finished pruning in 553s

Space savings from pruning can be dramatic, depending on the subgraph. A test database with ~ 60 subgraphs shrank by about 1/3, with the size of some subgraphs being reduced by 90%.

I'm not sure this is ready to review, but the CI seems to be failing on compilation issues to prost 🤔

That progress report looks nice!


Godot UI freezes while generating speech

Godot version
4.0.0 official binaries, .NET flavour.
System information
Manjaro (Arch) with KDE Plasma; GPU = NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
Issue description
When generating speech via DisplayServer.tts_speak, on my Linux box, there's roughly a two-second pause (irrespective of audio length) while the system libraries do their thing. During this time, the Godot UI is completely frozen.
As I would like to allow users to rapidly move from, say, menu button to menu button, I really need:

The TTS not to freeze the Godot UI
.stop() immediately stopping, even if it's during this two-second period.

I tried work-around (e.g. running this in a Thread.new()) but it seems to have no effect.
Steps to reproduce

Create a button that calls DisplayServer.tts_speak with a message (maybe longer is better for testing) on press
Update things in _process like a label with the current time
Add extra controls you can click on
Click the button and try to do anything. You can't.

Minimal reproduction project
Not necessary, as this is trivially reproducible.

I can confirm this issue also exits on windows 10 ( Godot v4.0.1  )

cc @bruvzg

Could this be #77754?  (I know it's probably not that for Windows, but for Linux).  time spd-say -L > /dev/null will give you a hint: if it takes about 2 seconds, that's your bug.  If not, then it's something else.


Can not create valid oracle regexp constraint using knex

Environment
Knex version: 0.20.13
Database + version: oracle 18, oracledb: 4.2.0
OS: macOs High Sierra
@atiertant
Bug
I'm trying to create the constraint with regexp using knex on the oracle database. Knex creates the constraint on the oracle column but it replaces "?" with placeholder like ":1", ":2". I tried to replace the question mark (according to documentation) with "?". It doesn't work for me on oracle db. Here is an example of oracle column constraint
knex.raw('ALTER TABLE atest ADD CONSTRAINT C_TEST CHECK (REGEXP_LIKE(COL_A, \'^((([A]{0,4})WW)|(W{0,2}))\\?([B]{5}WW)+((([C]{5})W\\?))$\'))');
Instead of mentioned regexp in the database I see:
^((([A]{0,4})WW)|(W{0,2})):1([B]{5}WW)+((([C]{5})W:2))$
I read the documentation and the suggested solution to escape the question \? mark doesn't work for me.

Ah you actually had made a bug report. There seems to be a bug in escaping for oracle https://runkit.com/embed/qlo6re5ixn4s


Update Kubernetes version to 1.22

https://github.com/dspace-group/simphera-reference-architecture-azure/blob/471c167d786b5adf85643e9516f68b4041b533b2/variables.tf#L132

closed by https://github.com/dspace-group/simphera-reference-architecture-azure/pull/44


Cannot update on Mac "while running on a read-only volume" ...

Get this error even with the new February 2021 version of visual studio code on my MacBook Pro with Big Sur on it. "Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. This might mean the application was put on quarantine by macOS. See this link for more information." "This link" goes to
https://github.com/microsoft/vscode/issues/7426#issuecomment-425093469 where it states:
"This is due to a well known Squirrel issue: Squirrel/Squirrel.Mac#182
Workaround: Move Code out of Downloads and into the Applications folder.
Workaround 2: If updates still don't work after moving Code to the Applications folder, you can fix it with xattr:
sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*
xattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app
Closing this issue since the fix for #57664 allows us to inform users of this situation, instead of failing silently."
BUT THIS DOES NOT FIX MY PROBLEM.  Any new ideas since this article is from 2018?

Same issue..

Can you provide steps or screen recording of what you did to hit this issue (i-e) where did you download the app and where was it moved to ?


Couple of bugs: annotation not displayed in the main window, scrolling to the left on the scrollbar outside the window brings you to the right of the scrollbar, and a crash

I'm just a normal MNE user, and as I like new features, I read through the PR on the main repo.  I have at the moment some large datasets (1500-2000 -raw.fif files), and I thought that this new browser could really be beneficial to my projects. And damn, it's impressive!! I can't wait to use it more 😄
A couple of bugs I had on my dataset (64 EEG, 1 EOG, 1 ECG).
raw = mne.io.read_raw('path...', preload=True)

with use_browser_backend('pyqtgraph'):
    raw.plot(block=False)

Making the main window smaller than a full screen (to accentuate the bug) and clicking+holding on the rectangle in the scrollbar, then moving it to the extreme left and then moving the mouse outside the main window cycles the rectangle selection to the right of the scrollbar.

I have some annotations that have been set programmatically on this dataset, and they do render in the scrollbar but not always in the main window.

Depending on the position on the X/Y axis (position of the rectangle on the scrollbar, I get either:

OR

UPDATE: This bug occurs when an annotated segment is not entirely comprised in the viewing window, i.e. when its edges are outside the viewing window. As soon as one of the edges enter the viewing window, the background color comes back on.

A crash, no idea what is triggering it exactly.

Traceback (most recent call last):
  File "C:\Users\Mathieu\Documents\pyvenv\mne_pyqtgraph_backend\lib\site-packages\pyqtgraph\graphicsItems\AxisItem.py", line 608, in paint
    specs = self.generateDrawSpecs(painter)
  File "C:\Users\Mathieu\Documents\pyvenv\mne_pyqtgraph_backend\lib\site-packages\pyqtgraph\graphicsItems\AxisItem.py", line 1057, in generateDrawSpecs
    if tickPositions[i][j] is None:
IndexError: list index out of range
Traceback (most recent call last):
  File "C:\Users\Mathieu\Documents\pyvenv\mne_pyqtgraph_backend\lib\site-packages\pyqtgraph\graphicsItems\AxisItem.py", line 608, in paint
    specs = self.generateDrawSpecs(painter)

I haven't counted but it is probably raised a couple of hundred times 😅
Video:
https://user-images.githubusercontent.com/73893616/139501033-f37d7521-b05c-491f-85f2-3dc0ab2560a5.mp4

@mscheltienne Thanks a lot for your detailed feedback, it is really helpful. I will look into those issues now.

@mscheltienne I think I fixed all the bugs you mentioned now. It was a lot facilitated by your screencast, thank you 👍🏻


[Bug] Maximum call stack size exceeded

When I pass in an large set  of 'training data' as input I get `Maximum call stack size exceeded
Here's my code
// load all .txt files from ../assets/
const files = fs.readdirSync('./assets/').filter(file => file.endsWith('.txt'));
const data = [];

// open all of the files and read them into a single string
for (let i = 0; i < files.length; i++) {
    const file = files[i];
    const fileContents = fs.readFileSync(`./assets/${file}`, 'utf-8');
    data.push(fileContents);
}

Calling the Data  with
let response = await generator(text + prompt + "\n\nResponse: ",
        {
            max_new_tokens: 1200,
            temperature: 0.5,
            top_k: 50,
            top_p: 0.3,
            repetition_penalty: 2.3,
            num_return_sequences: 1
        }
    )

Here's the response from the logs
RangeError: Maximum call stack size exceeded
    at Function.post_process (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/tokenizers.js:1236:30)
    at Function._call (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/tokenizers.js:1162:21)
    at Function.closure [as post_processor] (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/utils/core.js:62:28)
    at Function.encode (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/tokenizers.js:2115:35)
    at file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/tokenizers.js:1946:45
    at Array.map (<anonymous>)
    at Function._call (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/tokenizers.js:1946:31)
    at Function.closure [as tokenizer] (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/utils/core.js:62:28)
    at Function._call (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/pipelines.js:400:30)
    at closure (file:///home/sister/repos/bots/glaza/node_modules/@xenova/transformers/src/utils/core.js:62:28)

Running
Linux 6.3.4
Node 20.2.0

I'm sure there could be an error in my code, implementation or logic.. but if this is not wrong, I would be happy to help resolve the bug or any issues this may have exposed.

Fixed by https://github.com/xenova/transformers.js/commit/4d5ecb4e9290bf9eef912dce0ec2c8cd147059dd
I've also added a test case for extremely long strings: https://github.com/xenova/transformers.js/commit/cbf18777c14ae53d722b69e47c4dddd7e0647f20. Before these changes, this would fail. Now, it succeeds 👍

These changes are now available in v2.3.0<EMAIL_ADDRESS>🥳


HHH-16574, HHH-16693 Fix join creation on treated and generic joined paths

https://hibernate.atlassian.net/browse/HHH-16574
https://hibernate.atlassian.net/browse/HHH-16693

Closing this in favor of https://github.com/hibernate/hibernate-orm/pull/6704


Add --kubelet-object option to helm chart

Fixes #273

👍

Do we want a conditional around this? Enabled or disabled by default?

lgtm


Error: Uncaught (in promise): TypeError: r is not a constructor

Hello,
I just followed the docs and when using
ng build --prod I get the following error:

It works if I don't run in prod mode.
Here is my AppModule:
import { NgModule } from "@angular/core";
import { Router } from "@angular/router/";

import { NgIdleModule } from "@ng-idle/core";

import { AppComponent } from "app/app.component";
import { AppRoutingModule } from "app/app-routing.module";

import { CoreModule } from "app/core/core.module";
import { SharedModule } from "app/shared/shared.module";

// Import your library
import { SampleModule } from "@lotes/angular-library-name";

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NgIdleModule.forRoot(),
    CoreModule.forRoot(),
    SharedModule.forRoot(),
    AppRoutingModule,
    SampleModule
  ],
  bootstrap: [AppComponent],
  providers: [{ provide: "Window", useValue: window } ]
})
export class AppModule {
}

Here my app.component.html:
<sample-component>
  This component is part of the shared library and will now work as expected.
</sample-component>

Is there any issue with AOT? Why is it not working in prod mode?

I recreated the package and the problem was gone

I am getting this issue too:
https://github.com/dolanmiu/ng-color/issues/12


Add SDK variant to be reported when connecting to Ably

We need to be ably to see in our data how many users are using Flutter sdk, and right now this information is not being reported as Flutter plugin is just a wrapper around native libraries. I believe we are ably to specify variant via public interface on the native SDK level - lets add a flutter specifier there so we can at least start seeing number of Flutter users right now.
This is a short term fix, long term fix will be support for reporting multiple layers of versions https://github.com/ably/docs/pull/1034

@QuintinWillison I have created this issue as a follow up to our discussion yesterday. I am not sure what are the details of the implementation - can you please groom the issue?

The native implementations (ably-cocoa and ably-java) present in the form android-1.2.5 and cocoa.ios-1.2.3 (based on latest versions at the time of writing this). See: internal message with "sample of client agents, versions and variants" for further detail on that.
I think we could consider adding a new interface to the Cocoa and Java libraries that allows a prefix to be added. We'll need to consider whether this new interface should be somehow hidden or becomes part of the published API for these libraries (which itself may be as distinct from published and documented!).
The simplest form would be flutter so we would present flutter-android-1.2.5 and flutter-cocoa.ios-1.2.3 respectively, with perhaps the - separator hard-coded on the native library side. The problem here is that this wouldn't convey the version of the Flutter plugin.
We could upgrade that form to also include the Flutter plugin version but I would start to worry about that in terms of how it intersects with semantic versioning. Right now, for example, we're still in preview so the prefix - were it to match existing forms - would look like flutter-1.2.0-preview.1, meaning we would present flutter-1.2.0-preview.1-android-1.2.5 and flutter-1.2.0-preview.1-cocoa.ios-1.2.3 respectively.
I know @mattheworiordan had some concerns around cardinality in respect of unrelated downstream systems at the backend, so not sure if that upgraded form would be acceptable.
What do people think? @paddybyers? @SimonWoolf? @owenpearson? @kavalerov?
All of the above, of course, assumes that we continue to work this based on a single presented string. We have discussed elsewhere making it more User-Agent-like, which might present better structure than the simplistic extensions I present above, but then might hit the issues Matt is concerned about. Alternatively, of course, might there be scope for us to look at adding a new field / header at point of connection? I guess, we also need some focus on what we're actually trying to solve - which, as I understand it, is better visibility around which client library implementations are active "in the wild".

@QuintinWillison Have you had a read through the comments in the proposed spec change here? To summarise the initial idea was to send the core runtime version of an SDK as a custom header but @lmars made the suggestion to use a User-Agent style string (as you also suggested in the above comment). My current intention is to go with the idea in @paddybyers latest comment in that thread (just use the User-Agent header or X-Ably-User-Agent where that's not possible). I'm happy to update that PR accordingly today and try and get it through if that would help with this issue?

Ah, yes, thanks for that. I knew there had been a discussion elsewhere also.

I notice that we had already opened an issue for this: https://github.com/ably/ably-flutter/issues/71.

@jamienewcomb @QuintinWillison lets include this in the next release of ably-flutter, as we shouldn't release new stuff before we can actually see the outcome (in terms of adoption)

@QuintinWillison I think the native packages should extend support for customizing Ably-Agent header, right?
cc: @kavalerov

Yeah, I think it first has to be implemented in ably-java and ably-cocoa (also cc: @owenpearson )

Hi @tiholic - that's correct, yes. @owenpearson has created tickets for these in the native client library repositories:

https://github.com/ably/ably-cocoa/issues/1111
https://github.com/ably/ably-java/issues/665

This issue has ultimately been replaced by #100.


Failure to set changelog to “Bug fixes”

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

Fastlane failed to post a change log to TestFlight
Command executed

Complete output when running fastlane, including the stack trace and command used

I made an internal build (my QA team gets it via TestFlight) and got
[!] Could not set changelog: An attribute value has text that is too short. - Text for whatsNew is too short.
I had entered
[08:10:02]: Submit inputs using "END"
Bug fixes
END

Environment

### Stack

Key
Value

OS
10.14.6

Ruby
2.3.7

Bundler?
false

Git
git version 2.20.1 (Apple Git-117)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.14.6 (18G87)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

OpenSSL Version
LibreSSL 2.6.5

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
10.2

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.129.0 | ✅ Up-To-Date  |

### Loaded fastlane plugins:

**No plugins Loaded**

Loaded gems

| Gem                       | Version      |
| ------------------------- | ------------ |
| did_you_mean              | 1.0.0        |
| slack-notifier            | 2.3.2        |
| atomos                    | 0.1.3        |
| CFPropertyList            | 2.3.6        |
| claide                    | 1.0.2        |
| colored2                  | 3.1.2        |
| nanaimo                   | 0.2.6        |
| xcodeproj                 | 1.8.1        |
| rouge                     | 2.0.7        |
| xcpretty                  | 0.3.0        |
| terminal-notifier         | 2.0.0        |
| unicode-display_width     | 1.3.0        |
| terminal-table            | 1.8.0        |
| plist                     | 3.4.0        |
| addressable               | 2.5.2        |
| multipart-post            | 2.0.0        |
| word_wrap                 | 1.0.0        |
| public_suffix             | 2.0.5        |
| tty-screen                | 0.6.4        |
| tty-cursor                | 0.5.0        |
| tty-spinner               | 0.8.0        |
| babosa                    | 1.0.2        |
| colored                   | 1.2          |
| highline                  | 1.7.10       |
| commander-fastlane        | 4.4.6        |
| excon                     | 0.60.0       |
| faraday                   | 0.13.1       |
| unf_ext                   | <IP_ADDRESS>      |
| unf                       | 0.1.4        |
| domain_name               | 0.5.20170404 |
| http-cookie               | 1.0.3        |
| faraday-cookie_jar        | 0.0.6        |
| fastimage                 | 2.1.1        |
| gh_inspector              | 1.1.2        |
| json                      | <IP_ADDRESS>      |
| mini_magick               | 4.9.5        |
| multi_xml                 | 0.6.0        |
| rubyzip                   | 1.2.2        |
| security                  | 0.1.3        |
| xcpretty-travis-formatter | 1.0.0        |
| dotenv                    | 2.2.1        |
| bundler                   | 1.16.1       |
| faraday_middleware        | 0.12.2       |
| naturally                 | 2.1.0        |
| simctl                    | 1.6.3        |
| jwt                       | 2.1.0        |
| google-cloud-env          | 1.0.5        |
| google-cloud-core         | 1.2.7        |
| uber                      | 0.1.0        |
| declarative               | 0.0.10       |
| declarative-option        | 0.1.0        |
| representable             | 3.0.4        |
| retriable                 | 3.1.1        |
| mime-types-data           | 3.2016.0521  |
| mime-types                | 3.1          |
| multi_json                | 1.13.1       |
| signet                    | 0.11.0       |
| little-plugger            | 1.1.4        |
| logging                   | 2.2.2        |
| memoist                   | 0.16.0       |
| os                        | 0.9.6        |
| googleauth                | 0.6.2        |
| httpclient                | 2.8.3        |
| google-api-client         | 0.23.9       |
| digest-crc                | 0.4.1        |
| google-cloud-storage      | 1.15.0       |
| emoji_regex               | 0.1.1        |
| io-console                | 0.4.5        |
| libxml-ruby               | 2.9.0        |
| psych                     | <IP_ADDRESS>      |

This may actually be a bug on Apple’s side, I tried to do it manually and it failed.


SELinux rules

Hi again,
on all Red Hat servers the SELinux is disabled after running the playbook connections-setup-complete.yml, but I see tons of SELinux rules added during the installation. So why are these rules added, when SELinux is disabled everywhere?
On the other side SElinux is the best prevention for container escapes, so at a minimum SELinux should be activated latest after the installation.
Regards
Christoph

Adding a ticket to the internal backlog to prioritize and investigate.


[network] Refactor health checker to be network application

Closes #1556
See also #1516

HealthChecker now uses HealthCheckerNetworkSender and
HealthCheckerNetworkEvents APIs introduced in #1644, instead of
network-internal APIs to the PeerManager. As a result, HealthChecker
can reuse network RPC logic and no longer needs to be aware of
substreams.

HealthChecker Ping/Pong now contains a challenge nonce to ensure
recipients are actually reading the message.

Remove old Ping and Pong messages in network.proto.

(For now) NetworkBuilder always instantiates a HealthChecker
instance for new network instances.

@bors-libra r+

:pushpin: Commit d916826 has been approved by bothra90

:hourglass: Testing commit d91682669bb85c1971804135006aae8900621bc3 with merge d139a607e7fdea5023eeb261e8db24fb6c2ddb11...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra retry

:hourglass: Testing commit d91682669bb85c1971804135006aae8900621bc3 with merge 58d7aa8742addc424632d12ca84e1eaa35d881f4...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: bothra90
Pushing 58d7aa8742addc424632d12ca84e1eaa35d881f4 to master...


componentWillUnMount is not called when the router changes

I am using flux in my project.
I listen and register action in 'componentDidMount' method:
  componentDidMount(){
    //listen
    AddressStore.addInitListener(this._onInit.bind(this));
    AddressStore.addLoadListener(this._onLoad.bind(this));
    AddressStore.addGetListener(this._onGet.bind(this));

    //trigger action in ajax
    Services.Address.fetchInfo({
      init: AddressActions.init,
      load: AddressActions.load
    });
  }

and then remove listener in 'componentWillUnMount':
componentWillUnMount(){
    console.log('unmount');
    AddressStore.removeInitListener(this._onInit.bind(this));
    AddressStore.removeLoadListener(this._onLoad.bind(this));
    AddressStore.removeGetListener(this._onGet.bind(this));
  }

But if the url is changed, componentWillUnMount is not called.
Below are the router configrations:
let history = new HashHistory

let router = (
  <Router history={ history }>
    <Route path="/insurance" component={Pages.InsurancePage} />
    <Route path="/cosmetology" component={Pages.CosmetologyPage} />
    <Route path="/service-list" component={Pages.ServiceListPage} />
    <Route path="/pay" component={Pages.PayPage} />
    <Route path="/order-status" component={Pages.OrderStatusPage} />
    <Route path="/address-list" component={Pages.AddressListPage} />
    <Route path="/maintenance" component={Pages.MaintenancePage}>
      <Route path="car-exchange" component={Pages.CarExchangePage} />
    </Route>
    <Route path="/orders" component={Pages.OrdersPage}>
      <Route path="order-details" component={Pages.OrderDetailsPage} >
        <Route path="order-evaluation" component={Pages.orderevaluationPage} />
      </Route>
    </Route>
    <Route path="/packages" component={Pages.PackagesPage} />
    <Route path="/register" component={Pages.RegisterPage}>
      <Route path="register-done" component={Pages.RegisterDonePage} />
    </Route>
    <Route path="/sign" component={Pages.SignPage} />
    <Route path="/single-wash" component={Pages.SingleWashPage} />
    <Route path="/user-center" component={Pages.UserCenterPage}>
      <Route path="car-exchange" component={Pages.CarExchangePage} />
      <Route path="renewal-fee" component={Pages.RenewalFeePage} />
    </Route>
  </Router>
);

React.render(router, document.body);

@hon Did you resolve this problem? I'm having this happen also, without using Flux.

I'm pretty sure I'm seeing this too, any solutions would be appreciated...

the method is componentWillUnmount without capital M, that might be the problem

Sorry, in my case it was spelled correctly. But I resolved the problem, there was a React.render being used inside of a componentDidMount, which is not a good thing. Removing that fixed the issue, and componentWillUnmount fires now.

I am not seeing react-router unmount component when the route is a sub-route:
<Router history={history}>
    <Route path="path/:paramId" component={ComponentForRoute} />
</Router>

So even if I switch between path/1 and path/2, componentWillUnmount never gets called for the instance of ComponentForRoute. Any suggestions? Is this how react-router is suppose to work? If so, any suggestions on handling route changes?

Agreed, would love an answer to this! :+1:

should be taken to Stack Overflow, but @alexprice91 @garrettmaring https://github.com/reactjs/react-router/blob/master/docs/guides/ComponentLifecycle.md

Ahh thank you @ignu !

Updated link for those of us still struggling with 2.x/3.x: https://github.com/ReactTraining/react-router/blob/800991cd2044293718fccd3763b9d91c2f811296/docs/guides/ComponentLifecycle.md

i have almost the same trouble with React , the problem is that the top element is App and never get chance to leave or unmount, is there any builtin function that i can call to when I leave the app to another route? thank you for help


Beam Enrich: offset step names

withName applies to the next step not the preceding one.

Almost did the same mistake on BQ Loader.

Moved to: https://github.com/snowplow/beam-enrich/issues/25


Delete successful but data has not removed

Hello @nolanlawson @jlami
first of all this a copy of #79
getting success message on
  delete(id) {     this.baseDB.rel.find('post', id)     .then( post => {       console.log('to be deleted', post)       return this.baseDB.rel.del('post', { id: post.id, rev: post.rev })     })     .then(       success => {         console.log('deleted', success)  <== {deleted: true}       }     )     .catch(       err => console.log(err)     )   }
{deleted: true}
but data is still present in post array

Same issue here..

Yoo can delte with below code:
this.relDb.rel.find("posts", docId).then((doc) => {         this.relDb.rel.del("posts",, doc["posts"][0]).then(result => {           console.log(result)//{deleted: true} is wirtten          })
the problem is rel.find("posts", docId) return array result.  But rel.del is expected a document. So the delete result is returned as {deleted: true}  but the document not removed. If we give a document to rel.del method, the problem is solved.


Make code blocks scrollable using the keyboard

Allow the code blocks to be scrolled using the keyboard by including them in the tab order and giving them a visible focus state.

This allows the user to tab to the code blocks, then use the arrow keys to scroll left to right.
Fixes #1343

You can preview this change here:
Built with commit f7196203f8ce08d06425b25fa1ae3ee6d221fead
https://deploy-preview-1351--govuk-design-system-preview.netlify.app

Not a big issue, but this change does mean we lose the padding on the right-hand side of the code block:
Before

After

Not a big issue, but this change does mean we lose the padding on the right-hand side of the code block:

I believe I've addressed this in 7f769c0.


bazel build error

bazel build -c opt --config=sycl //tensorflow/tools/pip_package:build_pip_package
ERROR: /home/web/tensorflow/tensorflow/tools/proto_text/BUILD:33:1: Linking of rule '//tensorflow/tools/proto_text:gen_proto_text_functions' failed (Exit 1)
bazel-out/host/bin/tensorflow/tools/proto_text/libgen_proto_text_functions_lib.a(gen_proto_text_functions_lib.o): In function `std::string* tensorflow::internal::MakeCheckOpString<google::protobuf::FileDescriptor::Syntax, google::protobuf::FileDescriptor::Syntax>(google::protobuf::FileDescriptor::Syntax const&, google::protobuf::FileDescriptor::Syntax const&, char const*)':
gen_proto_text_functions_lib.cc:(.text._ZN10tensorflow8internal17MakeCheckOpStringIN6google8protobuf14FileDescriptor6SyntaxES5_EEPSsRKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIN6google8protobuf14FileDescriptor6SyntaxES5_EEPSsRKT_RKT0_PKc]+0x47): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::NewString()'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 624.927s, Critical Path: 259.30s
FAILED: Build did NOT complete successfully

how fix it?

Hi @web24dev
Thanks for the report..
can I get more information?
What is your OS, TF revision used and ComputeCpp version?
Thanks

@lukeiwanski
OS - Ubuntu 16.04.3 LTS
TF - 1.6.0
ComputeCpp-CE-0.6.0

can you try
dev/amd_gpu?

@lukeiwanski
web@ubuntu:~$ dev/amd_gpu
bash: dev/amd_gpu: No such file or director

git checkout dev/amd_gpu && ./configure

@lukeiwanski
web@ubuntu:~$ git checkout dev/amd_gpu && ./configure
fatal: Not a git repository (or any of the parent directories): .git
I ran the command  bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 –copt=-msse4.2 --config=sycl -k //tensorflow/tools/pip_package:build_pip_package and the place where the error occurred

Ok, I am struggling to understand that.
Did you checkout my repository? Or rather you are using the source release?
At this point I would suggest to checkout repository and switch to dev/amd_gpu branch

@lukeiwanski https://www.deepfakes.club/deepfakes-with-amd-graphics-card/
i use this instruction

Build Tensorflow with OpenCL support
Download and install Tensorflow.
cd ~/
git clone https://github.com/lukeiwanski/tensorflow.git
cd tensorflow
git checkout dev/amd_gpu

@lukeiwanski
INFO: From Compiling tensorflow/contrib/lite/toco/tflite/operator.cc:
In file included from ./tensorflow/contrib/lite/kernels/internal/common.h:42:0,
                 from ./tensorflow/contrib/lite/toco/runtime/types.h:18,
                 from ./tensorflow/contrib/lite/toco/model.h:26,
                 from ./tensorflow/contrib/lite/toco/tflite/operator.h:20,
                 from tensorflow/contrib/lite/toco/tflite/operator.cc:15:
external/arm_neon_2_x86_sse/NEON_2_SSE.h: In function 'void vst1q_lane_f32(float32_t*, float32x4_t, int)':
external/arm_neon_2_x86_sse/NEON_2_SSE.h:9673:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     *(ptr) =  *((float*)&ilane);
                               ^
external/arm_neon_2_x86_sse/NEON_2_SSE.h: In function 'float32_t vgetq_lane_f32(float32x4_t, int)':
external/arm_neon_2_x86_sse/NEON_2_SSE.h:11912:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *(float*)&ilane;
                      ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1880.888s, Critical Path: 277.79s
FAILED: Build did NOT complete successfully
(faceswap_env) web@ubuntu:~/tensorflow$

error again

that's more like it :)
for now can you run below?
bazel build -c opt --config=sycl //tensorflow/tools/pip_package:build_pip_package

@lukeiwanski yes, i'm start this command

@lukeiwanski
ERROR: /home/web/tensorflow/tensorflow/tools/proto_text/BUILD:33:1: Linking of rule '//tensorflow/tools/proto_text:gen_proto_text_functions' failed (Exit 1)
bazel-out/host/bin/tensorflow/tools/proto_text/libgen_proto_text_functions_lib.a(gen_proto_text_functions_lib.o): In function `std::string* tensorflow::internal::MakeCheckOpString<google::protobuf::FileDescriptor::Syntax, google::protobuf::FileDescriptor::Syntax>(google::protobuf::FileDescriptor::Syntax const&, google::protobuf::FileDescriptor::Syntax const&, char const*)':
gen_proto_text_functions_lib.cc:(.text._ZN10tensorflow8internal17MakeCheckOpStringIN6google8protobuf14FileDescriptor6SyntaxES5_EEPSsRKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIN6google8protobuf14FileDescriptor6SyntaxES5_EEPSsRKT_RKT0_PKc]+0x47): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::NewString()'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 413.292s, Critical Path: 229.71s
FAILED: Build did NOT complete successfully

Okay that's very odd.
Can you confirm that it compiles successfully  without SYCL?
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
SYCL should not interfere with CheckOpMessageBuilder as its purely Host side function..

what is the actually error?

@lukeiwanski she's not here

@lukeiwanski https://pastebin.com/wzubKG7d

Can you check efb79aac835751f96949572a9f6adc044a1c0202 with ?

@lukeiwanski
I'm just not very good at this. Need to update the git and run the command bazel build -c opt //tensorflow/tools/pip_package:build_pip_package again?

git pull && bazel build -c opt //tensorflow/tools/pip_package:build_pip_package yes :)
no problem happy to help!

@lukeiwanski
INFO: From Compiling tensorflow/stream_executor/stream.cc:
tensorflow/stream_executor/stream.cc: In function 'std::__cxx11::string perftools::gputools::{anonymous}::ToVlogString(perftools::gputools::dnn::DataType)':
tensorflow/stream_executor/stream.cc:184:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Target //tensorflow/tools/pip_package:build_pip_package up-to-date:
  bazel-bin/tensorflow/tools/pip_package/build_pip_package
INFO: Elapsed time: 594.020s, Critical Path: 76.94s
INFO: Build completed successfully, 1261 total actions

How do I understand everything went well and you can proceed to the next step in the instructions?

@lukeiwanski OK thank you very much. Waiting

Just wanted to say that on my usual Manjaro (arch) setup I had no problems compiling dev/amd_gpu with CPP 0.6.0

@mirh Did the same code run?

@mirh How long has it been?

This morning?

@lukeiwanski

Just wanted to say that on my usual Manjaro (arch) setup I had no problems compiling dev/amd_gpu with CPP 0.6.0

why?

My first guess would be that gcc7 is the culprit here

@mirh
What is your version of gcc?
I had a 4.8

7.1

@lukeiwanski Well?

@web24dev we are not able to reproduce the issue locally
Ubuntu 16.04.3 LTS
$ uname -a  Linux xxx 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
With GCC 5.4.0
Compiles fine using this command:
bazel build --config=sycl --verbose_failures //tensorflow/tools/pip_package:build_pip_package
I didn't catch what is you host compiler? Can you as well provide your ./config options used?

@lukeiwanski https://pastebin.com/HYXkzrJr
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.6' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.6)

it's very odd..  as you should see something along of these lines:
./configure
You have bazel 0.9.0 installed.
Please specify the location of python. [Default is /usr/bin/python]:

Found possible Python library paths:
  /usr/local/lib/python2.7/dist-packages
  /usr/lib/python2.7/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python2.7/dist-packages]

Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Apache Kafka Platform support? [y/N]: n
No Apache Kafka Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: y
OpenCL SYCL support will be enabled for TensorFlow.

Please specify which C++ compiler should be used as the host C++ compiler. [Default is /usr/bin/g++]:

Please specify which C compiler should be used as the hostC compiler. [Default is /usr/bin/gcc]:

Do you wish to build TensorFlow with ComputeCPP support? [Y/n]:
ComputeCPP support will be enabled for TensorFlow.

Please specify the location where ComputeCpp for SYCL 1.2 is installed. [Default is /usr/local/computecpp]:

Do you wish to build TensorFlow with double types in SYCL support? [Y/n]:
double types in SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with half types in SYCL support? [y/N]:
No half types in SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]:
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:

Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
	--config=mkl         	# Build with MKL support.
	--config=monolithic  	# Config for mostly static monolithic build.
Configuration finished

Can you try without exporting anything? as well without additional parameters sent to ./configure ( call it from root directory )

@lukeiwanski At me such was at the first configuration

Hi @web24dev, can I just check you've downloaded the correct version of ComputeCpp for your computer? The function that can't be found indicates that you're getting some ABI issue, so I'm double checking that you downloaded ComputeCpp for 16.04, not the 14.04 version (it will look like it works, but eventually you end up with weird compile errors with no real error message, and there's not a lot we can do about that right now).
(There's more information here: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html - we build for 14.04 with GCC 4.8, and for 16.04 with GCC 5.4)

@lukeiwanski the archive that I installed ComputeCpp-CE-0.6.0-Ubuntu.16.04-64bit
can I give you ssh access, and you look?

Thanks for the help, the reinstallation of g ++

At this stage, I am kind of out of ideas. As a last-ditch effort, could you try adding an option to your bazel command line? The option is --cxxopt, it would look like this:
bazel build --config=sycl --verbose_failures --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" //tensorflow/tools/pip_package:build_pip_package

Just in case this is somehow being set incorrectly, as I am still suspicious of the std::string * in the symbol mentioned previously.
Thanks a lot for keeping at this!

@DuncanMcBain

Are you saying that reinstalling g++ fixed this?
yes


Fails to compile on not-explicitly-listed architecture

See: https://github.com/mitre/hipcheck/blob/e0892bbffad9ffb1f49ae92a93cab86469e204b0/hipcheck/src/plugin/supported_arch.rs#L22
The current approach to the CURRENT_ARCH has two effects:

Hipcheck can only compile on one of the listed architectures.
Users can't force the inference of a specific operation system.

Ideally, we'd replace this compile-time check with a runtime check, and give the user a means via configuration to specify the architecture to use. If the user hasn't set one and we can't infer one, then error out at runtime.

I should say that the specific scenario I encountered where I couldn't compile was trying to build the Containerfile on an Apple Silicon Mac running macOS. This would in theory result in an aarch64-unknown-linux-gnu (I think), but that's not an option for the CURRENT_ARCH inference code today, so compilation fails.


feat(core): added custom optionLabel

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention

Bugs / Features

[x] Related issue(s) linked
[x] Tests for the changes have been added
[ ] Docs have been added / updated
[x] Changesets have been added https://refine.dev/docs/guides-concepts/contributing/#creating-a-changeset

What is the current behavior?
What is the new behavior?
fixes #4880
Notes for reviewers

‼ If provided changes meet the required changes than I should go further with docs. ‼

Hey @Conqxeror thanks for the PR with great description as always!
Let's do the implementation according to the comment here: https://github.com/refinedev/refine/issues/4880#issuecomment-1742600902
optionValue and optionLabel params are currently string only, let's make each of them a union of string or function. And invoke the given function with item as in your implementation.
It would be amazing to implement similar changes for similar hooks other than @refinedev/core's useSelect.
@refinedev/antd has following hooks which can be refactored in a similar way:

useSelect
useRadioGroup
useCheckboxGroup

Hey @Conqxeror thanks for the PR with great description as always!
Let's do the implementation according to the comment here: #4880 (comment)
optionValue and optionLabel params are currently string only, let's make each of them a union of string or function. And invoke the given function with item as in your implementation.
It would be amazing to implement similar changes for similar hooks other than @refinedev/core's useSelect.
@refinedev/antd has following hooks which can be refactored in a similar way:

useSelect
useRadioGroup
useCheckboxGroup

Thanks, @BatuhanW ! Your feedback is always appreciated. I'll update optionValue and optionLabel as per the comment in #4880 (comment). Also, extending these changes to @refinedev/antd's useSelect, useRadioGroup, and useCheckboxGroup sounds great.

Hello @BatuhanW I wanted to know if all the required changes are satisfied or not. If so then I can go further with the docs.
Review it whenever you are free, its okay if you take time.


schema content

Hello,
I was wondering how up to date this schema is? My AzureSentinel logs of this table hold a lot more properties than displayed here. Also some of the explanations for the properties here seem pretty non-explanatory at best? Either way, thanks for the documentation but it does seem like it needs to be updated (?).
~BV1

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

ID: b651a95f-7c34-a979-f97e-e4feedb47487
Version Independent ID: ff679d7a-0bc5-692f-8ef8-72e24d402f23
Content: Interpret the Azure Active Directory audit log schema in Azure Monitor
Content Source: articles/active-directory/reports-monitoring/reference-azure-monitor-audit-log-schema.md
Service: active-directory
Sub-service: report-monitor
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@BertV1 Thanks for the feedback !  I have assigned this issue to content author to investigate and update the document as appropriate.

The article is under investigation.
#please-close


formatNumber problem

let url = /account/list?name={0}&group={1}&version={2}
url = String.Format(url, “sss”, "", "");
logout is
url = account/list?name=sss&group=000&version=000
I do not want 000, I want 0
what should I do？
private static formatNumber(input: number, formatTemplate: string): string {
let count = formatTemplate.length;
let stringValue = input.toString();
if (count <= stringValue.length)
return stringValue;
let remainingCount = count - stringValue.length;
remainingCount += 1; //Das Array muss einen Eintrag mehr als die benötigten Nullen besitzen
return new Array(remainingCount).join('0') + stringValue;
}

This seems to be a bug. I let you know when this is fixed

ok,thank you

sorry,i want to the url like this
account/list?name=sss&group=&version=
empty string,not 0

It may be so
function parsePattern {
.........
     if (typeof (arg) === 'number') {
        if (!isNaN(arg)) {
            return String.formatNumber(arg, match);
        }
    }

}

If i would do that, i would loose the padding.
let result = String.Format('{0:000}', 5); // would be just 5
The problem was, that the method was using the braces for the length.
I fixed it, by checking if the pattern is a valid number.
There is a new test, and i deployed it to npm.
Your output should now look like that:
let url = /account/list?name={0}&group={1}&version={2}
"/account/list?name=sss&group=&version="

thank you for your report!


Problem running unzip from conda on clusters

Dear Falcon team,
I have an error while running unzip on our cluster , seel below.
Can you help me ?
falcon-unzip 1.1.4
falcon-kit 1.2.4
pypeflow 2.1.1
Traceback (most recent call last):
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/bin/fc_unzip.py", line 11, in <module>
    load_entry_point('falcon-unzip==1.1.4', 'console_scripts', 'fc_unzip.py')()
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_unzip/mains/start_unzip.py", line 3, in <module>
    from .. import unzip
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_unzip/unzip.py", line 7, in <module>
    from .tasks import unzip as tasks_unzip
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_unzip/tasks/unzip.py", line 5, in <module>
    from .. import io
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_unzip/io.py", line 21, in <module>
    from pysam.libcalignmentfile import AlignmentFile#, AlignmentHeader
  File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pysam/__init__.py", line 5, in <module>
    from pysam.libchtslib import *
ImportError: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

I think this relates to our openssl woes, a huge problem in Bioconda. Several Bioconda folks are currently working on it. (The problem is that openssl-1.0.2 and openssl-1.1.1 are not binary compatible.)
https://github.com/bioconda/bioconda-recipes/pull/13909
We'll soon rebuild pb-assembly to see whether this solves the problem. But I'll close this now because the same problem is reported elsewhere.


Enable-WriteCore-for-Azure.Health.Deidentification

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

/azp run

/azp run net - healthdataaiservices - ci

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Health.Deidentification


Migrate to new develocity API

Weird. The build scan stopped being shown as "published" in the summary in this completely unrelated build: https://github.com/mattprecious/stacker/actions/runs/8607271738
And the build scan URL stopped being printed in the logs altogether with this change.

Weird. The build scan stopped being shown as "published" in the summary in this completely unrelated build: https://github.com/mattprecious/stacker/actions/runs/8607271738
And the build scan URL stopped being printed in the logs altogether with this change.

Terms URL changed. No mention in the logs.


[SPARK-38206][SS] Ignore nullability on comparing the data type of join keys on stream-stream join

What changes were proposed in this pull request?
This PR proposes to change the assertion of data type against joining keys on stream-stream join to ignore nullability.
Why are the changes needed?
The existing requirement on checking data types of joining keys is too restricted, as it also requires the same nullability. In batch query (I checked with HashJoinExec), nullability is ignored when checking data types of joining keys.
Does this PR introduce any user-facing change?
Yes, end users will no longer encounter the assertion error on join keys with different nullability in both keys.
How was this patch tested?
New test added.

I've added test cases for inner & left-outer join. I guess it's redundant to have separate test cases for right-outer/full-outer/left-semi, but please let me know if we would like to have exhausive set of tests.

cc. @cloud-fan @viirya @xuanyuanking @c21

Thanks! Merging to master.

Sorry for late comment, just late +1 LGTM.


3.0.0 Release

Realign branches

Already built - merge via the GitHub UI went awry :-)

Does this mean 3.0 goes live, or is it still in preview?


Need web portal

I'm happy to build a web page that shows this tool, something basic with info. I think this is a project worth showing who built it and why, to have a more secure feeling.

We're trying to come up with a more permanent name right now - which will hopefully lead into branding and then website creation.
I'd invite ya to join our telegram group if you're not already - https://t.me/eoswalletgreymass
I'm going to close this issue out since it's external to the app itself, but we're aware of the need and definitely need a website for the app itself.


Findbugs to Spotbugs

Evaluate and switch (or run in parallel) SpotBugs (https://spotbugs.github.io/) which is "the spiritual successor of FindBugs, carrying on from the point where it left off with support of its community."

Completed in https://github.com/ArpNetworking/arpnetworking-parent-pom/pull/48


Put AE Sequence First in Table Listing

Make sure AE sequence is the first column when you're looking at the table listing

Resolved in 19f0efce4a981c85e332f676572215f92087f3f4.


Docker toolchain build artifacts are created under the root user on Linux

I'm seeing a weird issue on Linux (Ubuntu 20.04, running as my own user flaki) where subo build . would use the docker build method to build the Rust runnables, and while the runnables.wasm.zip bundle comes out perfectly fine (flaki:flaki user/group), the build artifacts end up in folders that are root:root-owned and cannot be deleted without using sudo.

As a result, subo clean fails also without a sudo:

Okay so this is because we are invoking the toolchain that, by default, runs as root and the mounted volume ends up written by root. It looks like we are missing something to the tune of docker run -u=$UID:$GID from the dockerBuildForLang invocation.
@jagger27 not sure what would be the Go-ism for pulling the currently executing UID/GID from the environment here (or maybe we want to sample the owner/group of the project directory and use those?), but otherwise would be happy to give this PR a Go (hehe).

Discussed this in chat. The error is Linux-specific, as Docker on Mac OS uses NFS mounts. There were previous attempts on fixing this, but we should explore if the docker run -u method is viable.
Me (and @jagger27) will do some testing, if going rootless doesn't break the toolchains than we will try to find a way to get this fixed.

Current draft PR (see above) fixes the issue and the breakage introduced in the Rust builder image, will need to make sure the rest of the images are working.


fix allowed area clamping math

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[BUG] Log Watcher validator fails

Describe the bug
When 'Log Watcher' validator is used in Full Migration it fails with the following error:
"'utf-8' codec can't decode byte 0xdf in position 5739: invalid continuation byte"
To Reproduce
Steps to reproduce the behavior:

In step "Deployment & Diagnostics" make sure "Log Watcher" is selected
Continue with migration
Deployment succeeds and all other validators pass but "Log Watcher" fails with the error:
"'utf-8' codec can't decode byte 0xdf in position 5739: invalid continuation byte"

Expected behavior

present log entry for further inspection
OR
present information that there were no errors found

Screenshots

Context

Please specify, app version: 3.1.0 (bigip-parser==1.0.12)

And Platform version of the system you want to migrate.
migration from 5250 v<IP_ADDRESS> to Velos Tenant cBIP v.15.1.4 (BIGIP-<IP_ADDRESS>-0.0.15.ALL-VELOS)

UCS file available on request

Filed internal Jira SOLUTIONS-4996.

I was unable to reproduce the error using version 3.3.2.
@ravsv650 please upgrade your Journeys to the newest version and try again.

For the future reference, if that issue happens again, please file another bug and collect internally files from destination system:

/var/log/ltm"
/var/log/apm"
/var/log/gtm"
/var/log/tmm"
/var/log/liveinstall.log
/var/log/asm"
/var/log/ts/bd.log
/var/log/ts/asm_config_server.log
/var/log/ts/pabnagd.log
/var/log/ts/db_upgrade.log
/var/log/daemon.log
/var/log/kern.log
/var/log/messages

as well as journeys logs (session and working directory) for debugging purpose.


Sms Messages Not Sent for Phone # Verfication

It appears from the webjob logs that it actually is entered as an email msg on the cue and then the web job errors in processing it repeatedly and eventually puts it on the poison queue.
Have to test in manual deploy on -mvp due to #348

Verified it is now working


APPCRASH on Windows 7

Version: win-eos-voter-0.4.1.exe
Behavior: Double-click, click Run, and it crashes immediately with the following information displayed:
Problem signature:
Problem Event Name:	APPCRASH
Application Name:	win-eos-voter-0.4.1.exe
Application Version:	<IP_ADDRESS>
Application Timestamp:	5a6fed7c
Fault Module Name:	System.dll
Fault Module Version:	<IP_ADDRESS>
Fault Module Timestamp:	5a6fed15
Exception Code:	c0000005
Exception Offset:	00001581
OS Version:	6.1.76<IP_ADDRESS>.256.1
Locale ID:	1033
Additional Information 1:	0a9e
Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
Additional Information 3:	0a9e
Additional Information 4:	0a9e372d3b4ad19135b953a78882e789
If you need additional information, please let me know. Thank you.

I installed an older version I had downloaded but never installed, 0.1.7, then the new installer worked. Must have been a fluke. Please disregard. Thanks.

Could a virus scanner be quarantining the executable?
We added win-32 support bundled in the EXE in one of the 0.3.x releases and it seems to be triggering all sorts of alerts from things like avast.

I don't have an anti-virus installed, so it's not that. I just use the 0.4 version since it works.

Closing this out as it seems resolved. Feel free to open a new issue if one of the newer versions does something similar.


[Feature request] Multi-tenancy for spending BTC (?)

I'd like to suggest a multi-tenancy feature while spending BTC, how does it work?
N (random number of) Alby or NOSTR accounts are linked to an Alby Account (AlbyA), the receiving process keeps the same. Only while spending BTC from this AlbyA it is need N or N-x signatures/permissions.
In my perfect world it could work somehow with NOSTR keys, so only one Alby account would be necessary, and all N permissions made from the NOSTR keys.
Context:
A Company, with N partners, want to integrate Lightning as payment method with Alby.
The Alby Account should allow receiving BTCs through LN as expected, but the send/spending process should be allowed only when all N or N-x partners allow the transaction.

Hi,
Unfortunately this is not possible with our lightning implementation or Alby Hub's current architecture.
I believe the simplest option would be to use onchain currently. And also it's such a hassle to get N signatures, onchain is probably ok.

It's a pity to hear, but ok...
Thanks for your time.


[QUESTION] Streaming from OpenAI token by token

Is this possible or planned?

It should be possible.
https://github.com/adamrushy/OpenAISwift/pull/40
In my pull request, I've added all parameters except for "stream" and "logit_bias".
The stream parameter makes it so that tokens are sent as server-sent events. This may require the use of another library such as https://github.com/inaka/EventSource.

Thanks for letting me know.
Regarding the implementation: See here (line 61) for another lib that does it, without external dependencies.

Why was this closed? No plans on implementing this?

Why was this closed? No plans on implementing this?


Add documentation on what sparkMaster parameter is

More details on how the sparkmaster is used, e.g. when should I use something apart from the default.
In messing around with spark, I've found you can't have multiple spark contexts in a single JVM, so does this have an impact on how my operators from this toolkit can be fused?
Somewhat related to the discussion in issue #2
SPLDOC allows pages and overviews for a namespace, so the documentation could be in a single location and referenced by each operator.

Resolved with commit<PHONE_NUMBER>5d7899b1678d0798cdf8fc960ea114


Type parameter defaults can't be used in conjunction with argument defaults

TypeScript Version:  2.8.0-dev.20180131
Search Terms: generic default, parameter default, argument default, incompatible, conflict
Code:
function identity<T = number>(x: T = 4) {
    return x;
}

Expected behavior: This code compiles and runs as expected; if T is changed, 4 is no longer compatible and x becomes a required argument; if x is changed, T is inferred from it as it would be if x were required. (Maybe stating the explicit default type on T is also unnecessary? But this seems like behavior that should be explicitly opted into...)
Actual behavior: Compile-time error; 4 is not assignable to T.
Playground Link: http://demo.polr.me/y

The type parameter can always be specified independently.. i.e. this function can be called as identity<string>() the result here is assumed to be a string, thought it will be 4.

If you are expecting only numeric values, use T extends number instead of T = number.
function identity<T extends number>(x: T = <T> 4) {
    return x;
}

As I noted, @mhegazy, the behavior I'd call intuitive is that if the type parameter is passed explicitly and the default argument isn't compatible with it, the argument becomes required. In any case, I'm not sure whether this is in bug or suggestion territory; feel free to treat it as either if you prefer.
It's worth noting that the real code I got this from is also intending the parameter to infer some verbose nested generics, so stating the generics' content explicitly, while possible, isn't common.


Revert "Update issue templates" PR

Reverts Loop3D/map2loop#75
after "feat" commit bumps version

now it's chore instead of feat to avoid version bump

Thanks, Rabii


[v0.16.0] Switch kubernetes.io/cluster/X tag value to "owned".

Changes
Having these values as "true" causes stack drift, as we later update them to be "owned". In order to ensure we don't needlessly roll pools we should update the CloudFormation so that "owned" is the expected value.

Codecov Report

Merging #1858 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1858   +/-   ##
=======================================
  Coverage   24.40%   24.40%
=======================================
  Files          98       98
  Lines        5117     5117
=======================================
  Hits         1249     1249
  Misses       3728     3728
  Partials      140      140

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 bdc0325...a0204a4. Read the comment docs.

/lgtm


audit tags / npm versions

make sure every npm version has a tag

npm versions: [ '0.0.2', '0.0.3', '0.0.4', '0.0.5' ]
tags: v0.0.2, v0.0.3
missing tags: v0.0.4, v0.0.5


chore: fmt

#163  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rphmeier and the rest of your teammates on  Graphite


GRPC connection fails in Flutter

it does not seem to be network related because the same code works on different machines and getting data from GRPC service running  at <IP_ADDRESS>
and if I try to connect with DIO the network connection happens, server complains about invalid request method, which indicates that connection was established but protocol is wrong
I/flutter (28839): Caught GRPC error: gRPC Error (14, Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = <IP_ADDRESS>, port = 34088)
I/flutter (28839): Caught DIO error: DioError [DioErrorType.DEFAULT]: HttpException: Invalid request method, uri = http://<IP_ADDRESS>:8443
===
relevant code below
try {
//
final channel = new ClientChannel('<IP_ADDRESS>',
port: 8433,
options: const ChannelOptions(
credentials: const ChannelCredentials.insecure()));
ServiceClient tmp = new ServiceClient( channel,options: CallOptions(timeout: Duration(seconds: 300)) );
final response = await tmp.list_transactions( TransactionsRequest.create());
print(' received client received: ${response}');
} catch (e) {
print('Caught GRPC error: $e');
}
  try {

    final response = await ImaniApi.dio.get('http://<IP_ADDRESS>:8443');
    print('transactions received client received: ${response}');
  } catch (e) {
    print('Caught DIO error: $e');
  }

kgignatyev$ flutter doctor -v
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Mac OS X 10.13.6 17G7024, locale en-US)
• Flutter version 1.7.8+hotfix.2 at /Users/kgignatyev/dev/mobile/flutter
• Framework revision 2e540931f7 (7 days ago), 2019-07-02 09:31:07 -0700
• Engine revision b1cb0d9e9b
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at /Users/kgignatyev/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• CocoaPods version 1.7.3
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 37.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 37.0.3
• Dart plugin version 191.7830
[✓] Connected device (2 available)
• SM G965U  • 444b37484d533098                     • android-arm64 • Android 9 (API 28)
• iPhone XR • EA4BBCB8-CAA9-47A3-850D-EAE9D7C1D456 • ios           • iOS 12.1 (simulator)
• No issues found!

Works after recent update. Although reporting wrong port on error messages is really annoying!!! https://github.com/dart-lang/sdk/issues/12693

I got the same error today in Android
flutter doctor -v
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
• Flutter version 2.0.1 at C:\src\flutter
• Framework revision c5a4b4029c (6 weeks ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\wulin\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• 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 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.55.2)
• VS Code at C:\Users\wulin\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.21.0
[√] Connected device (3 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
• Chrome (web)                • chrome        • web-javascript • Google Chrome 89.0.4389.128
• Edge (web)                  • edge          • web-javascript • Microsoft Edge 89.0.774.77
• No issues found!


Feature request - support for iframes with variable height

I would like to set the height of an iframe to be something other than the aspect ratio calculated from the width/height of the dimension array in the options. Is this possible?
Scenario: I have an iframe embed that renders a media player along with some text, so the height of the embed can vary. I want to use as much of the window as I can to render the iframe.
Here's what I'm doing to accomplish this at the moment (using jquery):
BigPicture({
	el: $(elem).get(0),
	iframeSrc: 'iframe.html',
	animationStart: function () {
		var wrap = $('#bp_sv'),
			iframe = $('>iframe', wrap);
		$(iframe).on('load', function () {
			var maxHeight = $(window).height() - 50,
				native = $(this).get(0)
				height = Math.min(native.contentWindow.document.body.scrollHeight + 30, maxHeight);
			$(wrap).css({
				height: height + 'px'
			});
		});
	}
});

A couple issues:

Resizing is a problem... even if I add code to resize, I'll be fighting with BP because it's also resizing. Perhaps BP could support a resize callback?
It would be better to apply the load callback to the iframe immediately when the its created so I don't miss the event
I'm accessing #bp_sv directly, which is not documented

I'm guessing the easiest thing to do would be to add a height option for an iframe, like:
iframeHeight: 'auto' | 'content' | callback

Then, the auto option would be the way it works now. The content option is more or less the code I have above (I'm sure it could be more robust), and a callback would allow the app to return a height.

Unfortunately I don't think you can access document properties like that on cross-origin frames, which is what most people will be using.
I can make the BigPicture function return the iframe and a function to update the dimensions, though, to make what you're doing a bit easier. For example that would make it possible to do something like this:
let bpInstance = BigPicture({
  el: $(elem).get(0),
  iframeSrc: 'iframe.html'
})

let frame = bpInstance.display.querySelector('iframe')

function resizeFrame() {
  // add resize logic here to calculate w, h
  bpInstance.opts.dimensions = [w, h]
  bpInstance.updateDimensions()
}

frame.addEventListener('load', resizeFrame)
window.addEventListener('resize', () => setTimeout(resizeFrame, 1))

You might want to also use the onClose callback and removeEventListener to clean up the listeners afterward but should work in theory.

Thanks... yea there are a few approaches that one could take. I took the liberty to modify the BP source and I got it working nicely by adding a few options. My iframes are local, so I'm not dealing with cross origin issues. I would be happy to share my changes with you, or do a PR... whatever works for you. I did some limited testing and I think my changes don't affect existing functionality, but another set of eyes on it would be great.

I'll take a look if you make a fork, but just fyi the main thing I want to avoid is adding weight to the lib.
I definitely agree this should be easier to do, but I don't necessarily want to add code to solve unusual use cases individually. The changes I suggested above give people more to work with in general for custom implementations while only adding 20-30 bytes. It's a compromise, and I know I'm being a stickler, but I want to keep this thing as light as possible. It would make sense in a more feature rich alternative, which I've wanted to do for years but keeps getting put on the back burner. Maybe soon.

Cool... I'll fork it. Maybe it will give you some ideas at least. When I was digging in, I could tell that you are being super lightweight-minded and I tried to honor that. If anything, maybe my changes will give you some ideas and you'll have a better way of implementing them.
In a nutshell, I gave the caller much more control over sizing the iframe. But I definitely did not look at the number of bytes that I added to the library! :)

You can do a pr, or just fork the repo and link after the changes are pushed. I'm flying out to my brother's wedding tomorrow so I probably won't get around to looking at it until at least after the weekend.

Thanks for the PR, sorry it took so long to get back around to this. I think it's just a bit too much to add given the scope of the library and the unlikeliness of others needing the same functionality, but I did expose the updateDimensions function to make this easier in the future.
https://github.com/henrygd/bigpicture#change-dimensions-of-embed--youtube--vimeo


After 4fdc0d5 devices aren't initialized (hyprctl devices is empty) after Hyprland's launch until some user input

Already reported ? *

[x] I have searched the existing open and closed issues.

Regression?
No
System Info and Version
 System/Version info
Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)

System Information:
System name: Linux
Node name: asus
Release: 6.10.10-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:17:51 +0000

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

======Config-Start======

Config File: /home/emeraud/.config/hypr/hyprland.conf: Read Succeeded
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/

# Please note not all available settings / options are set here.
# For a full list, see the wiki

# source = ~/.config/hypr/myColors.conf

################
### MONITORS ###
################

# https://wiki.hyprland.org/Configuring/Monitors/
monitor=,1920x1080,0x0,1

###################
### MY PROGRAMS ###
###################

# https://wiki.hyprland.org/Configuring/Keywords/

# Set programs that you use
$terminal = kitty
$fileManager = thunar
$menu = wofi --show drun

#################
### AUTOSTART ###
#################

# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:

# exec-once = $terminal
# exec-once = nm-applet &
exec-once = waybar		# Top bar
exec-once = hyprpaper	# Wallpapers

#############################
### ENVIRONMENT VARIABLES ###
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

env = XCURSOR_SIZE,12
env = HYPRCURSOR_SIZE,12
#####################
### LOOK AND FEEL ###
#####################

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# General
source=./hyprland/general.conf

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 5

    # Change transparency of focused and unfocused windows
    active_opacity = 0.9
    inactive_opacity = 0.9

    drop_shadow = true
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)

    # https://wiki.hyprland.org/Configuring/Variables/#blur
    blur {
        enabled = true
        size = 3
        passes = 1

        vibrancy = 0.1696
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
    enabled = true

    # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = true
	disable_splash_rendering = true
}

# Input
source=./hyprland/input.conf

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = false
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

###################
### KEYBINDINGS ###
###################
source=./hyprland/keybindings.conf

##############################
### WINDOWS AND WORKSPACES ###
##############################

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.

Config File: /home/emeraud/.config/hypr/hyprland/general.conf: Read Succeeded
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
    gaps_in = 2
    gaps_out = 5

    border_size = 2

    # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    # Set to true enable resizing windows by clicking and dragging on borders and gaps
    resize_on_border = false

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false

    layout = dwindle
}

Config File: /home/emeraud/.config/hypr/hyprland/input.conf: Read Succeeded
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us, fr
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

	numlock_by_default = true

    follow_mouse = 1

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.

    touchpad {
        natural_scroll = false
    }
}

# Default keyboard
# exec=hyprctl keyword input:kb_layout fr
exec=hyprctl switchxkblayout at-translated-set-2-keyboard 1m

Config File: /home/emeraud/.config/hypr/hyprland/keybindings.conf: Read Succeeded
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, A, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume 0 +5%
bindel = ,XF86AudioLowerVolume, exec, pactl set-sink-volume 0 -5%
bindel = ,XF86AudioMute, exec, pactl set-sink-mute 0 toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
======Config-End========

Description
I want to use the english (us) keyboard layout to do my keybindings and use the french one to type.
I can't set the default keyboard on startup. I know I can switch between keyboard layouts with a key but I don't want to do it on every startup.
How to reproduce
exec=hyprctl switchxkblayout at-translated-set-2-keyboard 1
Crash reports, logs, images, videos
No response

Done some debugging.
When numlock by default is false - switchxkblayout fails with "no device" until you press some mod key. Then it returns "ok" and layout is actually switched.
Same, when numlock by default is true, which is surprising, considering it should emit the same event that is emitted when you press some mod key (which I assume what you do with "save the file", e.g. Ctrl (mod) + S).
Testing hyprctl devices -j yields interesting results - there is, indeed, no devices after hyprland's launch, until you press some mod key. That, I think, is the root of the problem.
The script, to demonstrate it:
#!/usr/bin/env bash

# seconds
timeout=20
hyprctl notify 1 $((timeout*1000)) 0 '    Trying to switch layout to 2nd'

kbd=logitech-usb-keyboard

path="/tmp/devices-$(date "+%H:%M:%S")-${HYPRLAND_INSTANCE_SIGNATURE}"
mkdir -p "$path"

for i in $(seq 1 $((timeout*2))); do
    res="$(hyprctl switchxkblayout "$kbd" 1)"
    devices="$(hyprctl devices -j 2>&1)"

    echo "$devices" > "${path}/${i}.json"

    hyprctl notify 1 500 0 "    switch res: $res"
    if [[ "$res" == "ok" ]]; then
        break
    fi
    sleep 0.5s
done

sleep 0.6s
hyprctl dismissnotify

(run with exec-once)

Testing hyprctl devices -j yields interesting results - there is, indeed, no devices after hyprland's launch, until you press some mod key. That, I think, is the root of the problem.

I m using Waybar to display the current state of my keyboard with the "hyprland/language" module. The name is empty until I move my cursor or press any key. So as you said, I think there is no devices until any input is done, and not only some mod key in my case.

Done some more debugging.
Yeah, you're right.
Doesn't seem like this is even called before any key at all is pressed.
Snip from log

[ERR] rbo: glCheckFramebufferStatus failed
[LOG] [22:58:04.541921677] Executing systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS && hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS
[LOG] [22:58:04.553379220] Process Created with pid 156069
[LOG] [22:58:04.553489140] Executing systemctl --user start swaybg
[LOG] [22:58:04.563710569] Process Created with pid 156072

❗ Running the demo script, hands of keyboard
[LOG] [22:58:04.563763039] Executing /home/witch/pick-2nd-layout.sh

[LOG] [22:58:04.573608210] Process Created with pid 156075
...
[LOG] Shaders initialized successfully.
...
[LOG] Hyprland init finished.
[LOG] [22:58:04.583426562] Executing systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS && hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS
...
[LOG] Hyprland is ready, running the event loop!
...
[LOG] XWayland is ready
[LOG] [22:58:04.784532869] xfixes version: 6.0
[LOG] [22:58:04.784607869] xres version: 1.2
[LOG] [22:58:04.785144906] XCursor scanning theme default
...

❗ Super+Enter pressed to launch foot, and finally, devices appear
[LOG] [22:59:03.315793010] [AQ] libinput: New device Power Button: 0-1
[LOG] [22:59:03.315822629] New aquamarine keyboard with name Power Button
[LOG] [22:59:03.315852989] ApplyConfigToKeyboard for "power-button", hasconfig: 0
[LOG] [22:59:03.315896839] Attempting to create a keymap for layout us,ru with variant  (rules: , model: , options: caps:escape,grp:toggle)
[LOG] [22:59:03.319055206] Updating keyboard 621938ddc800's translation state from a provided keymap
...
[LOG] [22:59:03.324158974] [AQ] libinput: New device Logitech USB Keyboard: 1133-49960
[LOG] [22:59:03.324196204] New aquamarine keyboard with name Logitech USB Keyboard

And after that point we can switch layout.

probably same underlying issue as #7391

Reading the issue's description, seems like any typing would have fixed the symptoms, not just mouse, it if the cause was indeed the same.
It reads more like some bugged out focus than uninitialized device.
I'll try reverting 4fdc0d55e4b44bb5300679025d2378fb6de0cae4 from their initial description, still.

Reverting https://github.com/hyprwm/Hyprland/commit/4fdc0d55e4b44bb5300679025d2378fb6de0cae4 fixes it.
Waybar doesn't pick up right layout until manual switch, but activelayout event is emitted as it should, so idk why is that.
Details

(layout is switched from the script)

00:06:52.262654850 ~ activelayout>>logitech-usb-keyboard,Russian
(from other PR, ignore it) 00:06:52.264382215 ~ activelayoutv2>>logitech-usb-keyboard\,Russian
00:06:53.199555099 ~ openlayer>>wallpaper
00:06:53.624873563 ~ openlayer>>waybar

(My first interaction with with the keyboard)

00:06:57.329259094 ~ windowtitle>>589db3cd3910
00:06:57.331082281 ~ windowtitlev2>>589db3cd3910,foot
00:06:57.372812492 ~ activewindow>>foot,foot
00:06:57.375081652 ~ activewindowv2>>589db3cd3910
00:06:57.377191550 ~ openwindow>>589db3cd3910,1,foot,foot
00:06:57.540006298 ~ windowtitle>>589db3cd3910
00:06:57.542459360 ~ windowtitlev2>>589db3cd3910,~ - zsh
00:06:57.544350837 ~ activewindow>>foot,~ - zsh
00:06:57.546165172 ~ activewindowv2>>589db3cd3910
00:06:58.646250324 ~ activelayout>>logitech-usb-keyboard,English (US)
00:06:58.648355892 ~ activelayoutv2>>logitech-usb-keyboard\,English (US)
00:07:00.264435004 ~ windowtitle>>589db3cd3910
00:07:00.266140019 ~ windowtitlev2>>589db3cd3910,~ - LF

The event script
Details

#!/usr/bin/env bash

path="/tmp/devices-$(date "+%H:%M:%S")-${HYPRLAND_INSTANCE_SIGNATURE}"
mkdir -p "$path"
events="$path/events"
touch "$events"

socat - UNIX-CONNECT:"$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" |
    while read -r event; do
        echo "$(date "+%H:%M:%S.%N") ~ $event" >> "$events"
done

(run with exec-once)
Also, adding
layout="$(hyprctl devices -j | jq -r '.keyboards | .[] | select(.name == "logitech-usb-keyboard") | .active_keymap')"
hyprctl notify 1 5000 0 "    Layout is: $layout"

to the end of the first one, active_keymap is also changed.
So, it works as it should with this commit reverted, basically.

@Emeraudia As we established the cause, could you rename the issue to something like

After 4fdc0d5 devices aren't initialized (hyprctl devices is empty) after Hyprland's launch until some user input

so it's more visible? There are other people running into it e.g. https://github.com/nwg-piotr/nwg-panel/pull/318
Because I don't know how to fix it without breaking BSD, and it seems like something relatively minor compared to not having a working compositor the commit in question fixed for FreeBSD.
Maybe someone else has ideas, other than reverting it.

I didn't take a look at the source code so I don't know if it is possible to set a default layout number (set at 0 by default), the same way numlock is activated by default or not

It's totally possible to add something like hyprctl switchxkblayout logic after numlock (group is layout here).
Without any validation / index config etc it's basically
// 0, 0 as we don't want to consider mods as pressed,
// or have keys latched to modify next key during init / reload,
// locked to keep caps/num/etc state,
// 1 to set French, index from kb_layout.
updateModifiers(0, 0, modifiersState.locked, 1);

But that's not right solution, though. Devices should be available for hyprctl commands after start without you having to press some key or move a mouse. The initial problem would be solvable with your exec-once = hyprctl ... command, if devices behaved at start as they used to (and should).

I think we should make aq dispatch libinput once on launch as a proper fix

Like this?
patch

diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 232ba4a6..cef7894e 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -314,6 +314,16 @@ void CCompositor::initServer(std::string socketName, int socketFd) {

     initManagers(STAGE_LATE);

+    if (m_pAqBackend->hasSession()) {
+        // m_pAqBackend->session->dispatchLibinputEvents(); - private
+        m_pAqBackend->session->dispatchPendingEventsAsync(); // public, includes dispatchLibinputEvents
+
+        // this is just for me to see if it worked or not
+        Debug::log(LOG, "FIX 7855: dispatchPendingEventsAsync() on start");
+    } else {
+        Debug::log(LOG, "FIX 7855: no Aquamarine session");
+    }
+
     for (auto const& o : pendingOutputs) {
         onNewMonitor(o);
     }

Seems to fix it.
Log

❯ rg 'Executing /home/witch/events-pick-2nd-layout.sh|FIX|New aquamarine keyboard'
hyprland.log
849:[LOG] [02:11:49.014359566] New aquamarine keyboard with name Power Button
870:[LOG] [02:11:49.018794009] New aquamarine keyboard with name Power Button
896:[LOG] [02:11:49.023012784] New aquamarine keyboard with name Logitech USB Keyboard
916:[LOG] [02:11:49.027199269] New aquamarine keyboard with name Logitech USB Keyboard Consumer Control
942:[LOG] [02:11:49.031517203] New aquamarine keyboard with name Logitech USB Keyboard System Control
962:[LOG] [02:11:49.035710748] New aquamarine keyboard with name Eee PC WMI hotkeys
981:[LOG] FIX 7855: dispatchPendingEventsAsync() on start
1080:[LOG] [02:11:49.128613912] Executing /home/witch/events-pick-2nd-layout.sh

So devices are ready before exec-once.
Events are fired correctly
Details

02:11:49.264771949 ~ activelayout>>logitech-usb-keyboard,Russian
02:11:49.266594703 ~ activelayoutv2>>logitech-usb-keyboard\,Russian
02:11:49.537953761 ~ openlayer>>waybar
02:11:50.216375038 ~ openlayer>>wallpaper

(first keyboard interaction)
02:11:53.442506127 ~ windowtitle>>5aab8386a830
02:11:53.444300771 ~ windowtitlev2>>5aab8386a830,foot
02:11:53.486799308 ~ activewindow>>foot,foot
02:11:53.489036810 ~ activewindowv2>>5aab8386a830
02:11:53.491260402 ~ openwindow>>5aab8386a830,1,foot,foot

and layout is changed on the first try
❯ jq -r '.keyboards.[] | select(.main == true) | .active_keymap'< 1.json
Russian

(checked with typing too)

aquamarine itself should do it IMO

https://github.com/hyprwm/aquamarine/pull/86 pls test


Can't open camera first time

Hi
I'm using your library.I have one problem.First time i can't open camera in marshmallow.I clicked Allow but i can't open camera,Second time camera working perfect

Still now no solution? :-(

@Bekakk Make sure you can camera permission granted for marshmallow devices. This should work.

@KingsMentor Even I grant it first time it does not work.

if(!hasPermissions(getContext(), PERMISSIONS)) {
ActivityCompat.requestPermissions(getActivity(), PERMISSIONS, CAMERA_PERMISSION_REQUEST_CODE);
} else {
barcodeCapture = (BarcodeCapture) getChildFragmentManager().findFragmentById(barcode);
barcodeCapture.setRetrieval(this);
}

@freebumba27 . Thanks for pointing this out. The problem is the xml has already been inflated and if the permission has not been granted, the app wouldn't be able to use the camera.  Here is a quick fix:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root_blur_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include
        android:id="@+id/mainLayout"
        layout="@layout/toolbar" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/mainLayout"
        android:background="#000"
        android:gravity="center"
        android:orientation="vertical"
        android:paddingTop="50dp">

        <LinearLayout
            android:id="@+id/cam_layout"
            android:layout_width="300dp"
            android:layout_height="300dp"
            android:orientation="vertical"/>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="16dp"
            android:text="Align the QR Code/bar code within the frame to scan"
            android:textColor="#fff" />

    </LinearLayout>

</RelativeLayout>

Notice that the barcode  fragment in not in this xml.
I moved it to a seperated xml file : cam_layout.xml and inflate it only when the permission has been granted.
Achieved that with this snippet:
View camView = LayoutInflater.from(this).inflate(R.layout.cam_layout, null, false);
                ((LinearLayout) findViewById(R.id.cam_layout)).addView(camView);
                barcodeCapture = (BarcodeCapture) getSupportFragmentManager().findFragmentById(R.id.barcode);
                barcodeCapture.setRetrieval(this);

and here is cam_layout.xml
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/barcode"
    android:name="com.google.android.gms.samples.vision.barcodereader.BarcodeCapture"
    android:layout_width="300dp"
    android:layout_height="300dp"
    app:gvb_auto_focus="true"
    app:gvb_code_format="all_format"
    app:gvb_flash="false" />

A more usable update will be pushed but this should work for you.

@freebumba27 does this works for you ?

Yes it worked perfectly. I will suggest you to make the camera full screen. I have tested the app in S7 edge it's taking back area at the bottom of the screen. I think it's duo to resolution. If you can fix this part and update the dependency then this one of the best Lib based on MobileVison