[Gestures] PanResponder blocking child Touchable on 6s and 6s plus

I'm trying to fix an issue in a library (https://github.com/dancormier/react-native-swipeout/issues/38) that appears to be broken on the 6s and 6s plus. The pan responder doesn't appear to allow touchable children to be pressed.
The library works on older devices with the same version of iOS, which makes me think that this has something to do with the new 3d touch hardware.
As noted in the other issue also, the library works in the emulator, but not the actual devices.

+1 – We're also experiencing this problem on new 3d touch phones.
The nested touchable highlights don't react visually to touch, and aren't clickable, but tapping quickly a few times often ends up working.

Could it be related to this iOS9 bug?
https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-9.1/#//apple_ref/doc/uid/TP40016570-CH1-DontLinkElementID_25 — "touch pressure changes cause touchesMoved: to be called"

Is this affecting anyone else? Or is PanResponder not really used often?
I'm worried that our app has become pretty much unusable for anyone with a new iPhone. Would love to find some sort of solution to this.

+1 we are seeing the same thing here! @a2 @nicklockwood  ideas?

We had a same problem, fortunately only on few places so we could easily fix it by checking if dy/ dx is not 0 before granting a PanResponder in onMoveShouldSetPanResponder.

@meznaric 👏 thanks! That seems to fix the problem for us.

Same issue here - but with Navigator. A button close to the edge of the screen stops working. I've tried setting 'gestures: null' the routes sceneConfig, but this actually stops taps from working at all (only force touch works).

I tried the Navigator and react-native-swipeout and everything seemed to work as expected, can any of you guys provide a sample or more detailed repro steps?

My issue is actually different. A button which is normally easy to tap has its tappable area shifted off to its left edge. Kust got an iPhone 6s now and will post more info soon.

I think our flashcards are broken(not tappable) on 6s because of this. This is just a higher level guess will debug today.

I solved my problem: I had a TouchableOpacity with a nested wrapper view, and both the touchable and nested view had been set to position: absolute. I'm not sure yet why this would work on iPhone6 and not 6s - but will debug further and see if I can isolate a test case.
For now, here's a gist with the broken and fixed component:
https://gist.github.com/jsierles/6ea15850dab3c65dceeb
More details:
logging in Touchable.js touchableHandleResponderMove, the touchState for the broken component, when doing a single tap, always looks like this:
2015-10-09 18:29:53.204 [info][tid:com.facebook.React.JavaScript] 'RESPONDER_ACTIVE_PRESS_IN'
2015-10-09 18:29:53.222 [info][tid:com.facebook.React.JavaScript] 'RESPONDER_ACTIVE_PRESS_OUT'

The fixed component only sets RESPONDER_ACTIVE_PRESS_IN.

I haven't had time to fully debug, but here's an example TouchableOpacity element that works on the iPhone6 but not 6s. You have to use a real device, not the simulator, to reproduce. Tapping on the large square fails ~80% of the time.
https://github.com/jsierles/RNiPhone6sTest
I fixed this by removing the redundant 'position: absolute' on the child view.
Maybe this can help get to the bottom of the issue.

I just tried to debug this on 6s(had to buy a new one).
This is definitely a problem with position: absolute in child views. I have a setup like this:
<TouchableWithoutFeedback>
    <View>
        <View style={position: absolute}  />
        <View style={position: absolute}  />
    </View>
</TouchableWithoutFeedback>

Changing it to this fixes it:
<TouchableWithoutFeedback>
    <View>
        <View  />
        <View style={position: absolute}  />
    </View>
</TouchableWithoutFeedback>

Note: touchesMove is always called on 6s while it's not always called for iphone < 6.
cc @tadeuzagallo above setup should help debug. It works on simulator, you need a 6s to reproduce it.

My issue was resolved by @meznaric's comment

+1
Don't have any absolute positioned elements, but still seeing this problem

i just find a not beautiful but convenient way to solve this problem,
just use onPressIn not onPress in Touchable.*

@meznaric's https://github.com/facebook/react-native/issues/3082#issuecomment-144689910 fixed the issue in my case.
I have side drawer with TouchableOpacity buttons and this PanResponder rule fixed the problem on iPhone 6s:
onMoveShouldSetPanResponderCapture: (evt, gestureState) => {
    return Math.abs(gestureState.dx) > 5;
},

@neciu it also solved it for me

onMoveShouldSetPanResponderCapture: (evt, gestureState) => {
     return gestureState.dx != 0 && gestureState.dy != 0 ;
},

Worked for me, the solution above with > 5 seemed to make the dragging action not sensitive enough.

Worked--thanks everyone!

Ran into this issue on a Note 5 running Android 5.1. Doesn't occur in the emulator but kills all Touchables when running on actual device.
@meznaric and neciu solution fixed it right up. Thanks!

I'm having a related issue where a Touchable inside a scrollview doesn't receive onPress if any pressure is applied on a 6s screen.
Using React Native version 0.30.0, I wasn't able to get this project working in 0.31.0-rc.1 so not sure if a fix has been merged for that version yet.
The only way to make the button respond is to touch it as lightly and quickly as possible. Otherwise it fails to receive press, even with a relatively normal pressure and velocity.
Should I open a new issue?

@mosesoak We had a similar problem to yours using RN 0.31 and 0.32. Our solution was to use onPressOut with delayPressOut. This allows us a small window of time to determine whether or not to go through with the onPress action. It's super hacky and we're not too happy with it, but it works for now.

Okay I'll check with the team to see if they can use that workaround – thanks!

I was only partly able to resolve this issue in my project by implementing the proposed fix onMoveShouldSetPanResponder. Instead I was able to get my touchable to work by setting a hitSlop to it!
Like this
hitSlop={{top: 12, left: 36, bottom: 0, right: 0}}

I also resolved this myself by ensuring that whenever I used hitSlop I added properties for each direction (top, bottom, left and right), even if the value is just 0
When I missed a property, I encountered this issue.

I had a similar issue where I had a absolutely positioned view within my pan responder (intended to be a backdrop), it seemed that occasionally the view wouldn't get unmounted correctly and blocked touchables.
<View style={styles.container} {...this._panResponder.panHandlers}>
                        <Animated.View style={[styles.backdrop, {position:this.state.isVisible?'absolute':'relative'}]}/>
</View/>

rather than
<View style={styles.container} {...this._panResponder.panHandlers}>
                     {this.state.isVisible &&   <Animated.View style={[styles.backdrop, {'absolute']}/>}
</View/>

I had a similar issue where I had a absolutely positioned view within my pan responder (intended to be a backdrop), it seemed that occasionally the view wouldn't get unmounted correctly and blocked touchables.
I had to change something like this
<View style={styles.container} {...this._panResponder.panHandlers}>
                     {this.state.isVisible &&   <Animated.View style={[styles.backdrop, {'absolute']}/>}
</View/>

To
<View style={styles.container} {...this._panResponder.panHandlers}>
                        <Animated.View style={[styles.backdrop, {position:this.state.isVisible?'absolute':'relative'}]}/>
</View/>

I replicated this with both my own pan responder and react-native-drawer-layout which had the same approach (an absolute full screen backdrop)

Why was this issue closed? I think that's a bug and it still needs to be taken care of..!

Ok so if anyone needs more info on how temporarily fix this see this thread:
http://stackoverflow.com/questions/41983107/how-to-make-a-touchableopacity-or-touchablehighlight-clickable-on-devices-that-s/42069488#42069488

@meznaric,Good suggestion!

In my suitation, i need to set on both function:
onStartShouldSetPanResponderCapture: (evt, gestureState) => {
        console.log("onStartShouldSetPanResponderCapture", gestureState.dx,
          gestureState.dy);
        return gestureState.dx != 0 && gestureState.dy != 0;
      },
onMoveShouldSetPanResponderCapture: (evt, gestureState) => {
        console.log("onMoveShouldSetPanResponderCapture", gestureState.dx,
          gestureState.dy);
        return gestureState.dx != 0 && gestureState.dy != 0;
      },

@phanngoc thx~

This is still an issue and the proposed solution doesn't always work. Could it be re-opened? It doesn't seem like it should be expected behaviour...

Agreed, I'm seeing it as well.

Re-opening because this seems like a real issue.
Does it also happen on an iPhone 7?
A fix would be appreciated for this, if anybody can figure it out!

@ericvicenti yes this happens on iPhone 7 as well!

This is also present on Android as well with child TouchableHighlight, TouchableOpacity and TouchableNativeFeedback. Tested on real Meizu M3S and Nexus 6 emulator.

Just an FYI – you can test whether this issue is happening in the simulator by clicking and holding on the touchable, moving your mouse away, then moving it back over the touchable. If the touchable appears pressed again (i.e. TouchableOpacity goes transparent or TouchableHighlight goes highlighted), you will not have the 3D Touch issue. If it doesn't, you will have this bug.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/gestures-panresponder-blocking-child-touchable-on-6s-and-6s-plus

@meznaric Your hack worked like a charm 🥇

@meznaric thank you 💚Not sure why this issue is closed.


Resolve global log errors

These are spamming the crap out of the log
MESSAGE	Notice: Trying to get property of non-object in locale_language_url_rewrite_url() (line 429 of /var/www/dev.dosomething.org/html/includes/locale.inc).
LOCATION	http://dev.dosomething.org:8888/us/user/1700226
REFERRER	http://dev.dosomething.org:8888/us
LOCATION	http://dev.dosomething.org:8888/us/user/1700226
REFERRER	http://dev.dosomething.org:8888/us
MESSAGE	Notice: Undefined index: country in dosomething_global_get_countries() (line 414 of /var/www/dev.dosomething.org/lib/modules/dosomething/dosomething_global/dosomething_global.module).
(This ^ is happening for multiple indexes, "en-global, pr-br, etc")

We're still receiving a bunch of Notice: Trying to get property of non-object in locale_language_url_rewrite_url() (line 429 of /var/www/www.dosomething.org/releases/20151208192456/html/includes/locale.inc). on every page.

this ones been around for a while, was planning on looking into it

I'm currently exceeding my backtrace limit, workin on fixing that.
so far all of the calls to this function that I can see right now are coming from core.

The common theme I'm noticing is this:
24	0.2469	5816728	url( )	../common.inc:4240
25	0.2469	5817992	drupal_alter( )	../common.inc:2243
26	0.2469	5818392	locale_url_outbound_alter( )	../module.inc:1140
27	0.2469	5818392	locale_language_url_rewrite_url( )
So I'm guessing we have a bad "url" call somewhere.
This error happens when I..

Click campaign from home page, click DS logo to go back to homepage
Click campaign and refresh

But not for static content or anything else from what I can tell.
I'll keep investigating.

@deadlybutter  Was this fixed?

I didnt see it when I loaded Thor, are you?

nevermind i apparently didnt click around enough, found it again

Duplicate issue... resolved with: #6522


style: hide NProgress spinner

Description
By default, NProgress has a spinner attached to the top right of the page which can be distracting when people look at the header menu button on mobile. https://github.com/kawalcovid19/wargabantuwarga.com/pull/500#issuecomment-889072610

This PR removes the spinner so that only the progress bar is visible.

Much better experience! Thank you @resir014

@zainfathoni Need help with the coverage. -0.06% and I don't know how to properly test _app.tsx

@zainfathoni Need help with the coverage. -0.06% and I don't know how to properly test _app.tsx

Sure, I'll work on it later tonight. 😉

I have written the tests for _app.tsx, however, it's too much hassle to pursue covering this line, unless we want to implement our own router.events API, which I think would be a waste of time. 😅
Therefore, I'm merging this PR forcefully now.


tools/create-openbsd-vmm-worker.sh: shut off pagination in ddb

@mptre - this theoretically obviates set $lines, but I know that not everybody uses my script :)

@mptre - this theoretically obviates set $lines, but I know that not everybody uses my script :)

Makes sense.


Imputing missing tensor values with the mean is unsuccessful

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux-4.14.106+-x86_64-with-debian-buster-sid
TensorFlow installed from (source or binary): pip install
TensorFlow version (use command below): 2.0.0
Python version: 3.6.6

Describe the current behavior
I am trying to impute the missing values in a tensor with the sample mean. As the size of my dataset is potentially quite large and the calculation of means require a full pass of the dataset, I am using tf.Transform to perform this computation.
As there is no native support for imputation on tf.Transform, I am implementing this by creating a SparseTensor, and specifying a default_value when converting to a dense tensor (as suggested in https://github.com/tensorflow/transform/issues/78#issuecomment-427919062).
However, this does not seem to be successful as the output tensor still contains nan.
Describe the expected behavior
I expect the missing values in the output tensor to be replaced by the mean of the non-null values.
Code to reproduce the issue
import tempfile
from glob import glob

import apache_beam as beam
import pandas as pd
import tensorflow as tf
import tensorflow_transform as tft
import tensorflow_transform.beam as tft_beam
from tensorflow_transform.tf_metadata import dataset_metadata, schema_utils

assert tf.__version__ == "2.0.0" and tft.__version__ == "0.15.0" and beam.__version__ == "2.16.0"

def create_raw_data(output_file):
    df = pd.DataFrame({"age": [35.2, 17.3, None, 25.0]})
    with tf.io.TFRecordWriter(output_file) as writer:
        for _, row in df.iterrows():
            features = tf.train.Features(
                feature={"age": tf.train.Feature(float_list=tf.train.FloatList(value=[row]))}
            )
            example_proto = tf.train.Example(features=features)
            writer.write(example_proto.SerializeToString())

def run_tftransform(input_file, output_file):
    def preprocessing_fn(inputs):
        def _impute(tensor, replacement):
            sparse = tf.sparse.SparseTensor(
                tensor.indices, tensor.values, [tensor.dense_shape[0], 1]
            )
            dense = tf.sparse.to_dense(sp_input=sparse, default_value=replacement)
            dense = tf.squeeze(dense, axis=1)
            return dense

        outputs = inputs.copy()
        mean_age = tft.mean(outputs["age"])
        outputs["age"] = _impute(outputs["age"], mean_age)  # mean is 25.833333333
        return outputs

    RAW_DATA_FEATURE_SPEC = {"age": tf.io.VarLenFeature(tf.float32)}
    RAW_DATA_METADATA = dataset_metadata.DatasetMetadata(
        schema_utils.schema_from_feature_spec(RAW_DATA_FEATURE_SPEC)
    )

    with beam.Pipeline() as pipeline:
        with tft_beam.Context(temp_dir=tempfile.mkdtemp()):
            raw_data_coder = tft.coders.ExampleProtoCoder(RAW_DATA_METADATA.schema)
            raw_train_data = (
                pipeline | beam.io.ReadFromTFRecord(input_file, coder=raw_data_coder)
            )
            (transformed_train_data, transformed_metadata), transform_fn = (
                (raw_train_data, RAW_DATA_METADATA)| tft_beam.AnalyzeAndTransformDataset(preprocessing_fn)
            )
            transformed_data_coder = tft.coders.ExampleProtoCoder(transformed_metadata.schema)
            _ = (
                transformed_train_data| beam.io.WriteToTFRecord(
                    output_file, coder=transformed_data_coder
                )
            )

if __name__ == "__main__":
    create_raw_data("raw_data.tfrecord")
    run_tftransform("raw_data.tfrecord", "transformed_data.tfrecord")

    TRANSFORMED_FEATURE_SPEC = {"age": tf.io.FixedLenFeature([], tf.float32)}
    raw_dataset = tf.data.TFRecordDataset(filenames=glob("transformed_data.tfrecord*"))
    parsed_dataset = raw_dataset.map(lambda x: tf.io.parse_single_example(x, TRANSFORMED_FEATURE_SPEC)).batch(4)

    print(next(iter(parsed_dataset.take(1))))

Expected output:
{'age': <tf.Tensor: id=533, shape=(4,), dtype=float32, numpy=array([35.2, 17.3,  25.8333, 25. ], dtype=float32)>}

Actual (incorrect) output which still contains nan values:
{'age': <tf.Tensor: id=533, shape=(4,), dtype=float32, numpy=array([35.2, 17.3,  nan, 25. ], dtype=float32)>}

Closing this issue as it is a Duplicate of TFT_152. Thanks!


Inventory generic object discovery and identification for all system

The path of where an entry would be, aka (where the bmc inventory item is) is different on some machines for some in general.
Need to come up with a better design to handle such for inventory testing.

Input from @gtmills


XSS Vulnerability in Auth Code

Currently the auth.js file contains XSS vulnerabilities which allow to inject code on the error callback via URL. e.g. /_callback?error=%3Cscript%3Ealert(1)%3C/script%3E. This is possible since the query parameters for error, errorDescription and errorUri are rendered into the html body without DOM sanitization.
// Relevant lines that retrieve the query parameters, line 202-217
if (errors[queryString.error] != null) {
    error = errors[queryString.error];
} else {
    error = queryString.error;
}
...

// Relevant lines in the auth.js file that generate the html, line 412

${error}
Error 401
${errorDescription}

${errorUri}

I would propose a fix by using https://github.com/cure53/DOMPurify to sanitize the DOM body:
const createDOMPurify = require('dompurify');
const { JSDOM } = require('jsdom');

const window = new JSDOM('').window;
const DOMPurify = createDOMPurify(window);
const sanitizedBody = DOMPurify.sanitize(body);

I consider this as a critical issue to fix in the sample code or at least highlight in the README as it might allow grabbing session cookies or stealing login information by rendering a login UI.

@pascalbayer thank you for pointing this security issue out. We have made the changes and merged it in.


[web] routing issue

how can I give action on web navigation for a single page web/portfolio??? I develop a full website but .i can't able to give action on my website.https://consoleit.io/#/ ...is the link. can u help me ??? check my website. I am totally unable to give action on navigation.

Hi @xyz24tanveer
I'm not sure if what you are describing is an issue with Flutter itself
or if you are asking for assistance within your code.
If you believe it's an issue with flutter,
please provide your updated  flutter doctor -v, your flutter run --verbose
and a minimal code sample to reproduce the problem.
If you need help with your app,
please be aware that this platform is not met for assistance on personal code.
Please see https://flutter.dev/community for resources for asking questions like this,
you may also get some help if you post it on Stack Overflow.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


chore(docs): Added play store badge to readme

Fixes #327
`Changes: Added playstore badge to the readme.

@mariobehling please review.

@iamareebjamal @mariobehling please review.


[Bug]: Add custom headers not working in iOS

Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
iOS
@rnmapbox/maps version
^10.0.0-beta.70
Standalone component to reproduce
Calling these methods dont work on iOS
MapboxGL.addCustomHeader(
  'authority',
  getValueForCurrentEnv('MAPBOX_AUTHORITY'),
);

MapboxGL.addCustomHeader(
  'Authorization',
  `Basic ${btoa(
    getValueForCurrentEnv('GEOSERVER_USER') +
      ':' +
      getValueForCurrentEnv('GEOSERVER_SECRET'),
  )}`,
);

Observed behavior and steps to reproduce
No response
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response

@wmonecke pls expand your bug report, what doesn't work means, and how can we reproduce the issue?

@mfazekas I am adding an API key to the custom headers as shown above but getting a 401 meaning that they are not set.
I think I am bit confused because of this documentation:
https://github.com/rnmapbox/maps/blob/main/docs/CustomHttpHeaders.md
Is the official way to add custom HTTP methods in Mapbox v10 to do it via a swizzle in iOS or should MapboxGL.addCustomHeader be working now?

Updated docs, hopefully it's clearer. For which request are you receiving 401? You can try to add breakpoints to onRequest and inDownload to check if headers are aded correctly. But looking at the code that should work just fine

Thank you for the prompt answer and doc update 🚀
I am receiving 401s for custom layers that need the API key set in the Mapbox header.
With the swizzle method, it worked fine and the layers loaded - with MapboxGL.addCustomHeader it doesn't.
Excuse my ignorance but I don't see Mapbox v10 exposing an onRequest or inDownload method. I checked MapboxGL or if this was a prop of MapboxGL.MapView. Where can I find these methods?


add a new domain for Shih Chien University

@p988744 First stage of verification passed, official domain is usc.edu.tw as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@p988744 Pull request merged. Thank you.


V-get helper doesn't work for the relationship

V-get helper doesn't work for the relationship, for example http://offirgolan.github.io/ember-cp-validations/docs/validators/belongs-to/index.html
{{v-get model 'details.firstName' 'message'}}
{{v-get model 'details.lastName' 'message'}}

it returns nothing

Try
{{v-get model.details 'firstName' 'message'}}
{{v-get model.details 'lastName' 'message'}}

@offirgolan yes, it's works
But why does it is not work for {{v-get model valuePath 'message'}} where valuePath='details.lastName' ?

Which version of Ember are you on?

This doesnt work for relationships indeed. The reason behind it is as follows
{{v-get model 'firstName' 'message'}}

converts to model.validations.attrs.firstName.message
but if you have a relationship
{{v-get model 'details.firstName' 'message'}}

that converts to model.validations.attrs.details.firstName.message
where really, it should be located in model.validations.attrs.details.attrs.firstName.message. The only solution is as I mentioned above (to have your model as model.details).

@offirgolan thanks for the explanation!

No problem! Glad to help :smile:

might be a good idea for this to be called out in the docs (if not already)


alsa-utils: 1.2.7 -> 1.2.8

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/alsa-utils/versions.
meta.description for alsa-utils is: "ALSA, the Advanced Linux Sound Architecture utils"
meta.homepage for alsa-utils is: "http://www.alsa-project.org/"
meta.changelog for alsa-utils is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.2.8 with grep in /nix/store/97k7jw883yskd4idl59ydhbvprk93mqh-alsa-utils-1.2.8
found 1.2.8 in filename of file in /nix/store/97k7jw883yskd4idl59ydhbvprk93mqh-alsa-utils-1.2.8

Rebuild report (if merged into master) (click to expand)

22 total rebuild path(s)

22 package rebuild(s)

First fifty rebuilds by attrpath
MMA
alsa-utils
deltachat-cursed
dwm-status
i3blocks-gaps
mikutter
mpdevil
opencpn
python310Packages.notify-py
python310Packages.py3status
python310Packages.safeeyes
python310Packages.toggl-cli
python39Packages.notify-py
python39Packages.py3status
python39Packages.safeeyes
python39Packages.toggl-cli
rakarrack
roon-bridge
roon-server
safeeyes
snis
solfege

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/97k7jw883yskd4idl59ydhbvprk93mqh-alsa-utils-1.2.8 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A alsa-utils https://github.com/r-ryantm/nixpkgs/archive/be2ab0cdd363f6711b1e3c392df6a13ca49341f6.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/97k7jw883yskd4idl59ydhbvprk93mqh-alsa-utils-1.2.8
ls -la /nix/store/97k7jw883yskd4idl59ydhbvprk93mqh-alsa-utils-1.2.8/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

21 packages built:

MMA
alsaUtils (alsa-utils)
deltachat-cursed
dwm-status
i3blocks-gaps
mikutter
mpdevil
opencpn
python310Packages.notify-py
python310Packages.py3status
safeeyes (python310Packages.safeeyes)
python310Packages.toggl-cli
python39Packages.notify-py
python39Packages.py3status
python39Packages.safeeyes
python39Packages.toggl-cli
rakarrack
roon-bridge
roon-server
snis
solfege

Maintainer pings
cc @AndersonTorres for testing.

https://www.alsa-project.org/wiki/Changes_v<IP_ADDRESS>_v1.2.8


"Multiple Levels": Clicking "Make a variable..." open Controller category in toolbox

Describe the bug
"Multiple Levels": Clicking "Make a variable..." open Controller category in toolbox
Steps to reproduce the behavior

Navigate to https://arcade.makecode.com/--skillmap
Multiple Levels---->Start
Click step6
Click "Make a variable..." in tutorial

Actual behavior
Clicking "Make a variable..." open Controller category in toolbox
Expect behavior
No need to make "Make a variable..." clickable.
Screenshot

Additional context
1.OS: Windows11
2.arcade version: 1.12.30
3.Microsoft MakeCode version: 8.5.41

@abchatra This bug still reproduced in the latest beta version:
arcade version: 1.13.53.
MakeCode version: 9.3.9


Error: ENOENT: no such file or directory<EMAIL_ADDRESS>

Hello,
I am suddenly getting an issue trying to add the postcss-cssnect plugin. throws the following error:
Module build failed: Error: ENOENT: no such file or directory, open '{system<EMAIL_ADDRESS>    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.<anonymous>

It works fine without this plugin. I have asked postcss-cssnext and was informed it could not be their plugin. Perhaps a recent update has created an issue?
Thanks

Did you find a solution ?

Hello @michael-ciniawsky, it seemed to be a mismatch in versions and I not only had to clear cache but also clear my directory and move files. So possibly just an issue with my system.
All good now. Thanks


chore(main): release 0.0.100

:robot: I have created a release beep boop
0.0.100 (2024-01-10)
Bug Fixes

Rely on tag name for releases (#155) (5efaef3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cedricziel/faro-shop/releases/tag/v0.0.100 :sunflower:


Inability to select the composer box by clicking slightly below the "Write something..." text within the box

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open a chat
Click on a message
Attempt to select the composer box by clicking just below the "Write something..." text within the box

Expected Result:
When clicking slightly below the "Write something..." text within the composer box, the box should be selectable and ready for input.
Actual Result:
The composer box is not selectable when clicking slightly below the "Write something..." text within the box
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.34-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/81298fec-4c3f-4c74-8843-98429eb633de
https://github.com/Expensify/App/assets/43996225/9d8e3d30-330d-4bdb-ac48-380ed3aec8fa
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687791507178979
View all open jobs on GitHub

Checking internally - https://expensify.slack.com/archives/C01SKUP7QR0/p1688463967049609 - this sounds like intentional design rather than a bug


PaDiM with wide_resnet50_2

Only resnet18 in
model:
name: padim
backbone: resnet18
layers:
- layer1
- layer2
- layer3
normalization_method: min_max # options: [none, min_max, cdf]
threshold:
image_default: 3
pixel_default: 3
adaptive: true
If I want to use wide_resnet50_2 as net, how can I write the config.yaml?

You need to set backbone: wide_resnet50_2

You need to set backbone: wide_resnet50_2

Do other parameters need to be changed?

You need to set backbone: wide_resnet50_2

Do other parameters in [model] need to be changed?

It depends on what you want, but if you just want to choose wide_resnet50_2 as the backbone and extract the first three layers, you don't need to change anything.

It depends on what you want, but if you just want to choose wide_resnet50_2 as the backbone and extract the first three layers, you don't need to change anything.

That's what I'm thinking at the moment, how nice of you


"This app is blocked" error

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.
Describe the bug
When trying to install the Draw.io Diagrams for Docs add-on, Google reports the app is blocked. This occurs in two different web browsers with two different accounts.
To Reproduce
Steps to reproduce the behavior:

From Google Docs, click Extensions > Add Ons > Get Add Ons
Search for draw.io
Click Install, then Continue
Select Google account to use with Draw.io Diagrams for Docs
Receive error This app is blocked This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.

Expected behavior
Add-on should authorize successfully and appear in the Add-ons menu in Google Docs.
Screenshots

draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 24.7.6

Desktop (please complete the following information):

OS: Windows 11 Pro 23H2
Browser: Microsoft Edge / Mozilla Firefox
Browser Version 127.0.2651.86 / 129.0

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

yes

Additional context
As stated above, this error also occurs in Firefox using a completely different Google account. Other add-ons have been installed in Docs with no problem. Originally thought this was a permission setting at my org but when I tried with my personal Google account in a different web browser I have received the same error. All ad blockers were disabled when testing.

Probably a repeat of https://github.com/jgraph/drawio/issues/4212. But, it's August, I'm on holiday, sorry :).

I've been able to replicate this,
os windows 10 Version 22H2 2024-KB5042352
Browser Mozilla FireFox
browser version 129.0.1
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
yes

please keep me posted

Hi,
I am also facing the same issue for google slides.

It doesn't look like there's anything we can do about this. Google have rejected the scopes and aren't allowing them back in.

Hi @davidjgraph ,
When trying to add a [draw.io]diagram into a slide within Google Slides via the designated [draw.io] addon for Google Slides, I'm being asked to "grant permissions" to the add-on. When clicking on "Ok", I'm requested to choose a Google account, I then click my email account (. After which the window says "This app is blocked").
I tried everything I could from Google support and they had no solution
Is this option not possible?

I hope you answer me.

@davidjgraph


Add YouTube + Slides Demo

I use this demo in my "All About Apps Script Talks". I'd like to add it to GitHub so the sample doesn't get lost in my Drive files.
I can additionally create a quickstart/article with this demo if needbe.

Besides the 2 Travis lint failures, PTAL.

You still appear to be using a for loop here.

I removed for-i loops.
I took optional comments as optional. I ended up using the forEach loop.
We're going to eventually use V8 for-of loops, which uses native JS loops –rather than creating a new function closure with the forEach function prototype. As such, forEach is not used in modern JS and I prefer not using them.
The diff will be a bit bigger if we convert every for loop to forEach rather than for-i/for-of.

@erickoledadevrel PTAL.


Missing Electron Cash v3.0 .dmg download for macOS

I'm on macOS 10.13.1 and am able to run the Linux build, but I'm curious to know if/when there will be a v3.0 .dmg available for download on the website for easier install.
I think it's a good idea to release the v3.0 .dmg from a usability point of view for users who are less comfortable installing from source.
Awesome work iterating quickly from v.2.9.4!

done


Erroneous error "Found non-empty schema(s)"

Which version and edition of Flyway are you using?
7.11.3 (latest)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Java app
Which database are you using? (Type & version)
Which operating system are you using?
PostgreSQL 13.3 on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
Running in a kubernetes cluster
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)

Create an empty database

Run app in kubernetes that connects to db

Have flyway create the schema from the migration scripts

App runs fine at this point; DB is in proper state, a flyway_schema_history table exists in the public schema

Delete the pod from kubernetes and have it be recreated

App fails to start claiming the DB is not empty:
 Exception in thread "main" org.flywaydb.core.api.FlywayException: Found non-empty schema(s) "custom" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.
     at org.flywaydb.core.Flyway$1.execute(Flyway.java:202)
     at org.flywaydb.core.Flyway$1.execute(Flyway.java:172)
     at org.flywaydb.core.Flyway.execute(Flyway.java:588)
     at org.flywaydb.core.Flyway.migrate(Flyway.java:172)
     at app.util.app.Factory.migrateRelationalDB(Factory.java:64)
     at app.Main.main(Main.java:40)

My app has a main function that calls Flyway somewhere in the beginning. The code that runs flyway is this:
Flyway.configure().initSql("").locations("/db/migration").dataSource(url, user, pass).load().migrate();

Since Flyway starts successfully the first time I see no error in configuration.
What did you expect to see?
Flyway should find it's own history table and realize there is nothing to do and not throw an error.
What did you see instead?
The error.

Could you provide a minimal reproduction project, including migration scripts

I found a workaround; If I move all my tables out of the custom schema and into the public schema then I no longer get the error.
I'll see if I can create a test project with the error. I doubt kubernetes is relevant. Maybe just start Postgres through docker.

That was a lot more painful than I had hoped. But I got it: https://github.com/codemonstur/flyway-bug.
Bug appears to happen when the schema name is the same as the username.

Thanks for sharing
This is actually an implementation detail of PostgreSQL - it defaults to the schema of the current user's name, and Flyway uses the current schema as its default
You can work around this by setting the schemas property on Flyway as you need, where the first item becomes the default schema i.e. something like .schemas("public", "username")

I don't want to explicitly list schema names in the code. If I add a schema in the migration scripts the code is likely to fail for not having it listed.
If I understand you correctly this is what happens:

In the first run I have an empty DB so Postgres makes the default schema 'public'
Flyway uses the default schema 'public'.
The migration scripts make a schema with the same name as the user
The second run Postgres makes the schema with my username the default
Flyway uses the default schema. This time it is 'username'
Flyway throws error because the history table is not in default schema

I'd say there are two bugs here then. Postgres has a bug because it changes the default schema based on content of the DB, and Flyway has a bug for not working around the Postgres bug and trusting the default schema.
Seems like the code that tries to find the history table should look first in the default schema, then in 'public' and finally in 'username'.

As this is the expected behavior for PostgreSQL, we won't be changing it unless there is further interest as more people are likely to depend on this behavior

Did some searching. It is possible to configure the default search path in the postgres conf: https://mkyong.com/database/postgresql-how-to-change-default-schema/.
That would work but I don't want to make changes to our postgres database. So instead I'm changing the default search path using some initialization SQL:
Flyway.configure().initSql("SET search_path = public").dataSource(url, user, pass).load().migrate();

This removes the $user setting from the search path and makes Flyway find the history table correctly. And I don't have to list all the schema names with a .schemas() call.


[FEATURE REQ] Allow to define consistencyLevel on azure-cosmos-spark

The azure-cosmos-spark lib doesn't allow us to define the consistency level on client side.
We can only disactivate Eventual consistency and we are forced to use default Account consistency level on server side.
spark.cosmos.read.forceEventualConsistency=false
The following lib for example allow us to define the consistency level:
https://github.com/Azure/azure-cosmosdb-spark
Will it be possible to provide the following option instead of "forceEventualConsistency":
spark.cosmos.read.consistencyLevel=[Eventual | Session | ... | Strong]

The consistency level of write operations is always decided based on the account consistency level. For reads/queries the consistency level can be reduced - Spark by default will use eventual simply because most batch job running in Spark would not need stronger consistency - but it is possible to fallback as you described above to the stronger account consistency level.
Can you explain in which scenario you would prefer another consistency level setting than eventual or the one of the account. The only possible combination I see would be on a strong/bounded staleness account to reduce consistency for reads/queries to Session - but that effectively is the same as eventual in Spark anyway because each Spark worker would have its own SessionContainer.

Closing dues to age, and reason for existing configuration options has been explained, and there are no other configuration options that could be added that would give practical benefit when used in Spark.


make sure we are testing EMPL=foobar PROFILE for existing employee foobar

Yes we are, e.g. here: https://github.com/smithfarm/dochazka-cli/blob/master/t/cmd_active/employee.t#L84


Modules reference AsModule as a general rule and, when referenced, in…

So, when developing a module (not in our solution) people will reference the AsModule package. So here, in our solution, the suggestion is that each module / theme references the AsModule project.
And, when Microsoft.AspNetCore.Modules.Abstractions is referenced, in place of it. This because now AsModule references it.
This as a general rule and to show people which packages they need to reference.
Best

Can you remove some things from the Directory props then? The way files are copied is now in the AsModule aspect.

I don't think so because here AsModule is referenced as a project.
When a project reference AsModule as a package, it inherits of the packages that AsModule references and on building the embedded AsModule.props is used.
To have the same in our solution which uses project references, we need to reference the AsModule project, and still import AsModule.props.
Note: When Aspect packages will be stable, maybe better, also in our solution, to reference them as packages. Then we could make some dir.props files simpler.

Conflicts solved.
I also removed an obsolete folder that was still there (with a file) after Microsoft.AspNetCore.Mvc.Modules.Abstractions has been renamed.


Load this model in tensorflowjs

I would like to save a deeplab tensorflowjs model locally, after loading it. For now its only possible for models loaded by "tf.loadLayersModel()" (https://js.tensorflow.org/api/latest/#loadLayersModel).
So one has to use keras instead of pure tensorflow.
I used this keras implementation to load my weights, which  i got from training of the official tensorflow deeplabv3+ implementation and saved it as a .H5 file.
I also could convert the H5. file to a tensorflowjs model using the tensorflowjs_converter released with tensorflowjs 1.0.0.
When i try to load the model in tfjs using "tf.loadLayersModel()" i get the error:
"Error: Unknown layer: BilinearUpsampling", because its a custom Layer defined in https://github.com/bonlime/keras-deeplab-v3-plus/blob/master/model.py, which isnt defined in tfjs.
Is there a way to load this model in tfjs, without rewriting this custom Layer in tensorflowjs?
Does anyone know a decent example how to rewrite a CustomLayer? I only can find very vague examples.

Hi,
Unfortunately, I don't have any experience with TFJS. Right now there is a 'bilinear' upsampling layer in Keras, but it lacks the option align_corners=True. Maybe if you will somehow manage to pass this parameter, you could get rid of custom layers.
If you manage to do it, you could make a pull request here. I wanted to get rid of this custom layer for a long time but don't have time to do it.
(also in README there is an example on how to load model with custom layers, but I don't know if it works for TFJS)

also check this https://github.com/tensorflow/tensorflow/issues/23041 it looks like a working option


Use of other external hubot scripts with timebased actions

Hey Guys,
i have installed this script in my hubot: https://github.com/jeffbyrnes/hubot-forecast
The normal "bot weather" command is working and my hubot got the forecast for me. But can you say if the time based actions / posting in other rooms work, too?
Thx a ton!
Greez
TheReal

@TheReal1604   Can you please clarify:   "But can you say if the time based actions / posting in other rooms work, too?"   -  Thanks.

Hey SingLi,
I tested some other external scripts, which do a time based action in a explicit configurable room. This scripts have the same issue, the manual command work, but the automatic time based actions not.
I have configured my hubot to listen all public rooms. Is there the problem? Also I tested the script "hubot-shy" - the hubot answers me with an OK" but not posting my text in the channel I told him. In addition, my installation is completely in docker containers.
The logs of the hubot container did not show any errors. (docker logs rocketchat_hubot_1)
Thx in advance.

This might be a case of the channel needing to be looked up.  The method I think expects our id's still instead of channel name.
Try getting the channel id like found in this gif:
https://cloud.githubusercontent.com/assets/51996/10064636/1a6125f8-6240-11e5-92cc-d3d8606117e4.gif
If passing that instead of the channel name works then my theory is correct.

I have changed the setting, so just waiting for some weather changes :-P.

Okay, seems the developer and i have to test it later.. it could be that he broke the script by refactoring the scripts.. hmpf.
Thx for your help!

@TheReal1604 ok, let me know how the test turns out.  I believe it takes the channel name.. But if not that could be your issue.

@TheReal1604 you never did report how your test went 😉
Going to go ahead and close this issue though since this is more an informational query.

@geekgonecrazy This issue was out of my scope right now, sry for that! The developer of this script doesn't react on my issues so.. I find other ways to do what I need. Thanks for closing it!


Config is throwing a fit.

Title. The mod is all over the report.
https://pastebin.com/eWgtHMCh

That error means you have added a duplicate key in the config.
You probably tried to add a section for a tree type already described or you added a weight for a biome when that biome already had a weight for the specific tree type

I regenerated the config. It still crashes.

Yep. I removed the MistLotrTweaks folder.

And if you only run mistlotrtweaks, lotr, unimixins and efr?

Same issue.

What java version are you running and can you send a crash report from a fresh instance with just lotr, unimixins, mistlotrtweaks and efr?

I'm figuring out what mod might be causing this. Hang on a bit.

Huh. It seems Item Physics is the cause.

Beehives are quite rare, as such they're easy to miss. Some biomes have a much higher chance of bees, lossarnach for instance
I'll take a look at item physics sometime this week

I don't know how you reached the conclusion that item physics is the issue as it doesn't crash with that error for me, nor does it crash at all so item physics is not the issue. As the feature is fully working for me I suspect you took a crash file from a different profile

Huh. You're right. Not sure why removing ItemPhysics fixed it. Adding it back no longer causes any crash. Weird.

let me know if you encounter this error again, I'll close the issue for now


Is this library Dead?

I cannot find any other library that can do what this library does; Its literally the only thing in the world that I can find that supports the features that I need.
Is this library Dead?

@duaneking I have a working copy over at Miista/Pose. It's at the point where it's ready to be merged.


Open-sourcing Video "Scripts"

Hello!
Have you ever considered open-sourcing the "script" for your videos? A file that generates all the animations used in your videos?
Thanks!

I'm not sure if it's intentional, but many of @3b1b 's "scripts" are in /eola for the Essence of Linear Algebra series and /old_projects for his other videos.

thanks @Pear0! I saw that but it just looks like the declaration of different "scenes" in the videos, as opposed to the some master file chaining all the scenes together. I will check those out if I can get this correctly installed!

I'm closing this issue, since it's very old and seems to be resolved.


match on create does not seem to be able to be created with the QueryBuilder

I could  be wrong but there does not seem to be a way to build an ON CREATE  query like this
MERGE (keanu:Person {name: 'Keanu Reeves'})
ON CREATE
  SET keanu.created = timestamp()
RETURN keanu.name, keanu.created

This example taken from the Neo4j Docs

Correct. This cannot be built by using only build-in operators, but it can be built by using raw.
For example:
.merge(...)
.raw(`ON CREATE SET keanu.created = timestamp()`)
.return([...]);

Good to know thats better then just using raw but would be good to be able to use native


Killed by watchdog timeout when running on real iOS device

We're running a version of 1.2.4 with some local bugfixes. Seeing all the work you've done since then we wanted to try going back to using the Nuget, 1.5.0, but having some issues.
When trying to run on a real iPhone, so as to be able to actually test it, the debugger never manages to connect, app is killed before then by some watchdog timeout (as revealed not in console but crashlog). Same when running without a debugger attached. BarcodeScanning.Native is the definite culprit.
Relevant would be that we have a (not yet running) scanner on the very first page that appears, our default shell tab. The login screen and splash animation appear on top of this, trading some startup slowness for quicker response later.
Why would the initialization be that much slower on the newer version?
Thanks again for the awesome lib!

Hello.
Hm, it looks like it wants to start the camera but as it gets transferred to login screen something hangs as the camera code has to run on main thread and as far as I know camera feed gets automatically stopped if preview is in the background. I haven't directly tested this scenario.
As the whole initialisation happens quite fast, especially on iOS, I would recommend that you set CameraEnabled to false as default and only set it to true when the login page gets closed.

CameraEnabled is false. I meant that the scanner view is loaded/in the component tree on a page straight on boot, not that it's running!
I suppose we'd have to move it out of XAML and throw it in manually later on instead? Or do you have any other ideas for how to solve it at lib level?


Cannot run azurite with Ubuntu 18.04LTS

Traditional packaging problem prevents running the latest version.
azurite -l tmp/
/usr/bin/env: ‘node\r’: No such file or directory

Temporary fix
sudo dos2unix /usr/local//lib/node_modules/azurite/bin/azurite


Console logging, "adaptive-bandwidth: current send amount is xxx" remove from console

Remove the logging from the oauth script and release a new version so that log is not present.

https://github.com/coilhq/web-monetization-projects/pull/536

Published a new version that removes the logging. Closing.


add rewrites to buildManifest & serve it separately

Current dependencies on/for this PR:

main

PR #3701   👈

This comment was auto-generated by Graphite.


feat: add new flag to generate completion script

Add a simple logic to generate a completion script.
The following is the "proof"
resolve #26

ChatGpt prompt:
╰─➤ go run cmd/chatgpt/main.go hello world 👋
Hello! How can I assist you today?

Set completion flag without input:
╰─➤ go run cmd/chatgpt/main.go --set-completions
flag needs an argument: --set-completions
exit status 1

Set completion flag with invalid arg
╰─➤ go run cmd/chatgpt/main.go --set-completions donno

Usage:
  --set-completions [bash|zsh|fish|powershell]

Flags:
  -h, --help   help for --set-completions

Invalid Arg: donno

Set completion flag with -h or --help
╰─➤ go run cmd/chatgpt/main.go --set-completions -h
To load completions:

Bash:

  $ source <(chatgpt completion bash)

  # To load completions for each session, execute once:
  # Linux:
  $ chatgpt completion bash > /etc/bash_completion.d/chatgpt
  # macOS:
  $ chatgpt completion bash > /usr/local/etc/bash_completion.d/chatgpt

Zsh:

  # If shell completion is not already enabled in your environment,
  # you will need to enable it.  You can execute the following once:

  $ echo "autoload -U compinit; compinit" >> ~/.zshrc

  # To load completions for each session, execute once:
  $ chatgpt completion zsh > "${fpath[1]}/_chatgpt"

  # You will need to start a new shell for this setup to take effect.

fish:

  $ chatgpt completion fish | source

  # To load completions for each session, execute once:
  $ chatgpt completion fish > ~/.config/fish/completions/chatgpt.fish

PowerShell:

  PS> chatgpt completion powershell | Out-String | Invoke-Expression

  # To load completions for every new session, run:
  PS> chatgpt completion powershell > chatgpt.ps1
  # and source this file from your PowerShell profile.

Usage:
  --set-completions [bash|zsh|fish|powershell]

Flags:
  -h, --help   help for --set-completions

Set completion flag with zsh, for example:
╰─➤ go run cmd/chatgpt/main.go --set-completions zsh
#compdef --set-completions
compdef _--set-completions --set-completions

# zsh completion for --set-completions                    -*- shell-script -*-

__--set-completions_debug()
{
    local file="$BASH_COMP_DEBUG_FILE"
    if [[ -n ${file} ]]; then
        echo "$*" >> "${file}"
    fi
}

_--set-completions()
{
    ...
}

# don't run the completion function when being source-ed or eval-ed
if [ "$funcstack[1]" = "_--set-completions" ]; then
    _--set-completions
fi

Thank you! This is great :).
The script that is being generated doesn't work for me for some reason. I may as well be misunderstanding the usage though. Here's my output:
 2024-02-22 17:27:57 ⌚  Guillermos-MacBook-Pro in ~/workspace/tmp/chatgpt-cli
± |feat/implement_autocompletion ✓| → . <(./bin/chatgpt --set-completions bash)
-bash: complete: --: invalid option
complete: usage: complete [-abcdefgjksuv] [-pr] [-DEI] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]

Thank you! This is great :).
The script that is being generated doesn't work for me for some reason. I may as well be misunderstanding the usage though. Here's my output:
 2024-02-22 17:27:57 ⌚  Guillermos-MacBook-Pro in ~/workspace/tmp/chatgpt-cli
± |feat/implement_autocompletion ✓| → . <(./bin/chatgpt --set-completions bash)
-bash: complete: --: invalid option
complete: usage: complete [-abcdefgjksuv] [-pr] [-DEI] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]

Ah thanks, I should have seen this from the output above 🤦🏻♂
The reason is due to #compdef --set-completions instead of chatgpt
I tested the new version. Now, it should work perfectly

Fixed output:
╰─➤ chatgpt --set-completions zsh
#compdef chatgpt
compdef _chatgpt chatgpt

# zsh completion for chatgpt                              -*- shell-script -*-

__chatgpt_debug()
{
    ...
}

_chatgpt()
{
    ...
}

# don't run the completion function when being source-ed or eval-ed
if [ "$funcstack[1]" = "_chatgpt" ]; then
    _chatgpt
fi

Regarding the output part
I added chatgpt to make it clearer
Usage:
  chatgpt --set-completions [bash|zsh|fish|powershell]

Flags:
  -h, --help   help for --set-completions

Invalid Arg: %s

Regarding the Usage part
I added chatgpt to make it clearer
╰─➤ chatgpt --set-completions z

Usage:
  chatgpt --set-completions [bash|zsh|fish|powershell]

Flags:
  -h, --help   help for --set-completions

Invalid Arg: z


import in referenced typescript project fail to load

Bug description

When working with composite projects, our tests failed because it seems that tsx is not taking the reference project's baseUrl or path into consideration.
Reproduction

Test project:
https://github.com/steabert/esbuild-kit-tsx-composite.git
To reproduce the issue:
yarn install
yarn fail

Running yarn bundle and yarn types shows the result with e.g. esbuild or tsc.
It seems this does not work with ts-node either, but I don't know how they handle composite typescript projects.
Environment
npx envinfo --system --npmPackages tsx --binaries
System:
  OS: Linux 5.4 Ubuntu 20.04.4 LTS (Focal Fossa)
  CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Memory: 23.58 GB / 31.21 GB
  Container: Yes
  Shell: 5.0.17 - /bin/bash
Binaries:
  Node: 16.14.2 - ~/.node/bin/node
  Yarn: 3.2.3 - ~/.npm-global/bin/yarn
  npm: 8.5.0 - ~/.node/bin/npm
npmPackages:
  tsx: 3.9.0 => 3.9.0

Can you contribute a fix?

[x] I’m interested in opening a pull request for this issue.

Also, looks similar to #76 maybe?

Yes, this is the same problem as reported in #76. unlike esbuild, tsx ignores tsconfig.json in referenced packages.

How does esbuild handle custom tsconfig.json paths via the tsconfig CLI flag for multiple projects?
e.g. If project A uses tsconfig.a.json and its dependency project B uses tsconfig.b.json, how is it configured?

I don't need to specify any configuration, esbuild seems to find the correct tsconfig associated with an imported module. However, I think it only does that when bundling. I forgot where I read that, I think it was in the comments on one of the esbuild issues, I'll try to find it again.

My own (naive?) way would be to walk up the directory tree of an imported file if there is no associated tsconfig, and if a new tsconfig.json file is found, check its include files and cache it for later use. That way, each included file would have an associated tsconfig file.

My question is more about API design than your specific use-case.
Understanding how esbuild's API handles custom tsconfig.json paths across multiple projects would help.

The esbuild author replied in my issue, but that seems to be also about how esbuild itself finds tsconfig files. That doesn't seem to be the info you're after, I'm afraid I haven't dealt with the esbuild API at all.

To be fair, you asked him a different question from the one I asked you.
I don't have time for this now, but if you're interested in helping, you can investigate by setting up a project with the structure I described here and trying to make it work with esbuild. Maybe @IlyaSemenov can help.
Based on what Evan said, I'm skeptical if esbuild is also following TS behavior correctly (not that tsx currently is either). For example, does it even allow for custom tsconfig.json paths? And does it check against tsconfig.json#files/includes/excludes?

We are also running into this problem. I might be able to help but I'm not sure what you mean by

you can investigate by setting up a project with the structure [...] and trying to make it work with esbuild.

How does esbuild handle custom tsconfig.json paths via the tsconfig CLI flag for multiple projects?
e.g. If project A uses tsconfig.a.json and its dependency project B uses tsconfig.b.json, how is it configured?

Like @steabert described, with esbuild it already works. Do you want to know whether it still works if we additionally specify tsconfigs manually, even though that's not required?

I'm skeptical that esbuild would successfully build. My understanding is that it only detects tsconfig.json, and not tsconfig.b.json.
To prove that this works, please create a repository containing a monorepo with two tsconfigs under custom names and add a build script to demonstrate that esbuild can successfully build it. If you'd like, you can reuse https://github.com/steabert/esbuild-kit-tsx-composite but rename the tsconfig.json of the dependency and test if it builds.
And if that doesn't build, please find out what configuration esbuild offers to specify a custom tsconfig.json name.

We should figure out how custom tsconfig paths are handled in nested projects: https://github.com/esbuild-kit/tsx/issues/96#issuecomment-1253726116

I am not following why the custom configs matter so much? It would suffice if nested projects worked at least with default configs. Supporting custom configs in nested projects could be the Phase 2 implemented by whoever cares about that use case.
Chances are esbuild doesn't support custom configs in nested projects at all, then what? That doesn't prevent it from working with default configs; and neither should it prevent tsx from supporting the same case.

I am not following why the custom configs matter so much? It would suffice if nested projects worked at least with default configs.

Why it matters: https://github.com/esbuild-kit/tsx/issues/76#issuecomment-1274526403
tsx has a lot of users and handles many use-cases. Custom tsconfig files are very common so I think the more appropriate question you should be answering is "why should we dismiss those use-cases without even doing an hour of research?".

Supporting custom configs in nested projects could be the Phase 2 implemented by whoever cares about that use case.

FYI, I don't benefit from this use-case but I'm happy to implement it in the future. With regards to your attitude, I'm wondering why you haven't implemented this yourself? As with anything open-source, you should also feel free to implement it yourself and use your own fork.

Chances are esbuild doesn't support custom configs in nested projects at all, then what? That doesn't prevent it from working with default configs; and neither should it prevent tsx from supporting the same case.

That's fine too. But no one has provided a definitive answer with research.
When I decide to take this on, I would like to think of the best solution possible and would investigate different use-cases and solutions. Since ya'll are asking how you can help, I provided one of the questions I would research.

I'm not sure how this thread will be productive if my answers to your "how can I help?" is met with "why is that important?".
If no one is going to provide insight into potential problems and how other projects handle it, it might be best to lock this thread until I'm ready to tackle it and do the research myself.

Thank you for the response. I apologize if I sounded rude. I know how open-source works, I authored and support a number of npm and python modules myself, and I am happy to provide users the right direction if they ask (or point them where they're wrong).
My point here was that making fully broken system half-broken would still be a good thing. I gathered that the current implementation blocker was that it wasn't clear how to configure esbuild to use different tsconfig's in different sub-projects. In my thinking that should not be a blocker even if that's not possible.
I did make the initial research back then when you asked the first time and it immediately appeared that the public esbuild API only allowed to customize the root/entrypoint tsconfig: https://esbuild.github.io/api/#tsconfig
I didn't share that finding as it appeared too obvious for me.
In light of that, I was merely asking if you could provide your initial high level thoughts of where the source could be extended to load paths from nested tsconfigs (considering the limitation of not being able to use custom-name tsconfig), outline the frames of the possible required architectural changes. I surely understand it's not always possible to answer that kind of questions, but sometimes it is.

Hello everyone 👋,
I also hit this issue. There is no way to specify custom tsconfig.<whatever>.json config files for external packages bundled with esbuild. It only looks for the regular tsconfig.json.
As far as I understand, just supporting the regular tsconfig.json files would solve my issue. For that, we should not pass an explicit  --tsconfig option when calling esbuild, as it will use this single tsconfig file and ignore all the others.
So paths defined in tsconfig.json can work but in a limited way (every tsconfig files need to be named tsconfig.json, including the root one).
Do you think we could add an option to enable this behavior? Maybe --resolve-tsconfigs or something like this?
I'm happy to make a PR if you can point me to the relevant files! 😄

If people are stuck on this, I had success with vite-node combined with vite-tsconfig-paths.
It also plays nice with vitest as it's reusing the same pipeline. 👍

I'm very sorry for this triple post, but I played some more with my TypeScript monorepo and I think I gained interesting insights for this issue.
Big picture

tldr; TypeScript project references are the way to hint about which tsconfig.json file to apply to parts of the dependency chain

First, the "one true way" of connecting TypeScript projects together is project references. This is the only mechanism that enables TypeScript to split the dependency chain between multiple TypeScript projects and use each project's tsconfig.json.
Custom tsconfig.json files are handled by this mechanism as well:
{
    "compilerOptions": {
        // The usual
    },
    "references": [
        { "path": "../api/tsconfig.build.json" },
        { "path": "../sdk/tsconfig.whatever.json" },
    ]
}

Without references, if you require a TypeScript file from an external package (through either monorepo workspaces or paths alias, I personally recommend avoiding paths alias as you break your package isolation), only the tsconfig.json file of the root package will be used, this is why external packages paths alias break, because the root package is not aware of their internals (and it should not be 😄).
How to have this implemented in tsx
Project references were discussed in esbuild repository, and the conclusion was that it's beyond the scope of esbuild, but could be implemented as a plugin!
A plugin exists: esbuild-plugin-ts-references but it's not working on paths alias, it's only rewriting the import statements to link directly to the references. But it shows that it's possible with esbuild API to walk through each package's tsconfig.json by following references and build some kind of map.
So the solution would be to write an esbuild plugin similar to esbuild-plugin-ts-references that can rewrite imports based on the file's local tsconfig.json gathered through references analysis. The main blocker is that tsx is using esbuild's Transform API and not the Build API, so it can't consume a plugin.
@privatenumber How hard of a requirement is it to use the Transform API vs the Build API? Reading esbuild doc it seems like Transform is just a small subset of Build?
Another solution would be to have tsx do the references analysis work outside of esbuild to build the map and then apply the rewrites somehow with the Transform API, but I'm not familiar with it enough to know if it's possible. 😅

I opened PRs to esm-loader and cjs-loader to support project references which should solve this issue.
@steabert @IlyaSemenov If you can give it a try it would be great! 👍

I was able to get this working using a custom exports field on all my monorepo package.json files, and then passing conditions to tsx:
  "exports": {
    ".": {
      "bundler": "./src/index.ts",
      "default": "./out/index.js"
    }
  }

Then
tsx --conditions=bundler ...

I had a similar issue in a monorepo where path aliases of imported workspaces were not being resolved using their own tsconfig.json. I think tsx should be able to detect the config file associated with each module, so I changed this behavior locally and here's my version of src/utils/tsconfig.ts:
import { getTsconfig, createPathsMatcher } from 'get-tsconfig';

const configCache = new Map<string, any>();

export function fileMatcher(filename: string) {
  return getTsconfig(filename, 'tsconfig.json', configCache)?.config;
};

export function tsconfigPathsMatcher(specifier: string, parentPath: string = process.cwd()) {
  const resolvedConfig = getTsconfig(parentPath, 'tsconfig.json', configCache);
  return resolvedConfig
    ? createPathsMatcher(resolvedConfig)!(specifier)
    : [];
};

export const allowJs = false;

export const loadTsconfig = (configPath?: string) => {};

The idea is that when fileMatcher or tsconfigPathsMatcher are called they use a reference file path to resolve the appropriate tsconfig.json. Note that I had to add an argument to tsconfigPathsMatcher and change its calls. This code suits my needs and I don't know tsx enough to provide a pull request. To continue on this approach one would have to:

Change the logic of the allowJs export to be dynamic.
Completely remove loadTsconfig.
Continue supporting tsx tsconfig option and define a logic to support both strategies.

Another approach could be to change the get-tsconfig package to handle project references. In monorepos we can have a root tsconfig that references every workspace tsconfigs. Given a root tsconfig and a specified file path get-tsconfig could generate a config that represents all the options applied to it. This way we could provide a single config in tsx options.

Why was my comment marked off-topic when I directly provided a solution to this issue and some of the related issue that were closed in favor of this one?
This issue was created 2 years ago and have been inactive for a year and a half.  This issue is not about esbuild, it's about tsx. If you don't agree that my contribution is the way to go then someone else certainly might.
You mentioned that the maintenance of these threads uses your time. Don't forget that very often these issues save time for users that are still looking for a solution.  I think your contribution is off-topic.

@guillaume-macquat

Why was my comment marked off-topic when I directly provided a solution to this issue and some of the related issue that were closed in favor of this one?

I understand your frustration, but your comment appeared to be more of a workaround than a step towards a concrete solution for tsx itself. It also didn't indicate any intent or effort to contribute to the codebase, which is a crucial aspect of this project's collaborative nature. For instance, you said:

This code suits my needs and I don't know tsx enough to provide a pull request.

In the future, I would recommend starting by asking how you can contribute these changes into tsx instead and I'd be happy to guide you.
I encourage you to read the Contribution Guide, which outlines how to contribute effectively and engage in discussions that help move the project forward.

Don't forget that very often these issues save time for users that are still looking for a solution.

I understand and appreciate that sharing workarounds can sometimes be helpful. However, this repository isn't intended as a forum for one-off solutions without contributing to the core code. The Issues tab is specifically for tracking concrete changes or improvements to tsx, and keeping the focus there ensures better organization and maintainability.
I also want to address the tone of your comment, which came off as confrontational. I value open discussions, but they need to remain respectful and productive. I'd recommend adopting a more collaborative tone to foster a positive conversation in any community.
With that said, I'll be hiding off-topic comments (including mine) and locking this thread, as this issue will be addressed in the upcoming major release.


Uploadonsave:false - not honoring the rule

I am running into the issue when I save my work, remote-sync still pushes my changes even if its specifically is ,disabled/ set to false, in the settings area and in the individual .remote-sync.json file.
Atom v0.201.0 (0.201.0), Remote-Sync v3.1.1
Steps taken to attempt to resolve with no success. Try a fresh install and the plugin, set settings to no checked for upload on save and reset atom.
Please advise.

Please check "uploadOnSave": false in .remote-sync.json, or you can update the package to the latest and try again.


EURO OFF-RAMP user experience improvements

[ ] When the user selects a token the modal "Select Tokens" should allow multiple selections of tokens.

https://www.figma.com/file/6DYR6QFkucGd1bsOILr7V0/Paloma-Bot?type=design&node-id=631-243560&mode=design&t=5XmeIv57HeHhhFoH-4

[ ] After one token is selected, the user cannot select the same one again (+ Add token button).

[ ] Font-sizes update. I think 10PX is way too small, so the minimum font size we will use is 12PX. Please check the updated font sizes here: https://www.figma.com/file/6DYR6QFkucGd1bsOILr7V0/Paloma-Bot?type=design&node-id=243-236963&mode=design&t=5XmeIv57HeHhhFoH-4

@jamie088 this is higher priority than search, but after getting the other bots back up

Yes

~5 hours remaining on this ticket


intensifying bouncing - how?

hello there, and please halp.
I have a box jumping on the plane, with these parameters:
box.linearDamping = -0.5;
box.angularDamping = -0.5;
world.addContactMaterial(new CANNON.ContactMaterial(floorMaterial, boxMaterial, 0, -1.02));

the problem with this is that any angular velocity the box initially had eventually cancels out, except rotation around floor normal. what I want is the box to spin faster and faster after each bounce in more 'random' direction. how would I do that?

Hi! How about using restitution > 1 and friction > 1 for the contact material?
Another (more controlled) approach could be to apply an impulse on the body on impact. This way it would be easier to control direction and magnitude of the new velocity/angularVelocity.

restitution > 1

oh thanks 😳 that was the intention, but somehow "-" sneaked in... now I need it to give just enough restitution to overcome the gravity.


create router-scroll-history and router-scroll-hash location types

@briangonzalez we can't do this because HashLocation doesn't use the browser's history api.


wss receive message

Hello, why i cant get some info of the server?
I used example wss code. I change only host and message to the server.
Code is below.
Can you help me, please? Thx.
Handshke:
HTTP/1.1 101 Switching Protocols
Date: Thu, 20 Apr 2017 10:22:55 GMT
Connection: upgrade
Set-Cookie: __cfduid=d629de44f81f99af48817847389ad88961492683775; expires=Fri, 20-Apr-18 10:22:55 GMT; path=/; domain=.dota2.net; HttpOnly
Upgrade: websocket
Sec-WebSocket-Accept: uU58GiRjm3C2txKg3JfRD6i28Ag=
Sec-WebSocket-Version: 13
Server: cloudflare-nginx
CF-RAY: 3527629c3ea70f57-FRA

Code:
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//

#include <beast/core/to_string.hpp>
#include <beast/websocket.hpp>
#include <beast/websocket/ssl.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <iostream>
#include <string>

int main()
{
    using boost::asio::connect;
    using socket = boost::asio::ip::tcp::socket;
    using resolver = boost::asio::ip::tcp::resolver;
    using io_service = boost::asio::io_service;
    namespace ssl = boost::asio::ssl;

    // Normal boost::asio setup
    std::string const host = "wsn.dota2.net";
    io_service ios;
    resolver r{ios};
    socket sock{ios};
    connect(sock, r.resolve(resolver::query{host, "https"}));

    // Perform SSL handshaking
    using stream_type = ssl::stream<socket&>;
    ssl::context ctx{ssl::context::sslv23};
    stream_type stream{sock, ctx};
    stream.set_verify_mode(ssl::verify_none);
    stream.handshake(ssl::stream_base::client);

    // Secure WebSocket connect and send message using Beast
    beast::websocket::stream<stream_type&> ws{stream};
    ws.handshake(host, "/wsn/");
    ws.write(boost::asio::buffer("history_go"));

    // Receive Secure WebSocket message, print and close using Beast
    beast::streambuf sb;
    beast::websocket::opcode op;
    ws.read(op, sb);
    ws.close(beast::websocket::close_code::normal);
    std::cout << to_string(sb.data()) << "\n";
	system("PAUSE");
}

I've been looking over https://market.dota2.net/docs/.
I can't read Russian, but I think you aren't sending the proper command. Don't you need to submit your API key to the dota2 server in order get subscriptions or information? The documentation isn't clear.

I tried send wsAuth, got it of the https://market.csgo.com/api/GetWSAuth/?key=[your_secret_key]
Result was same, no reaction of the server(
Ok, if i send uncorrect request, server must send me some response.
Why server not send me something?
Program simple stopped on line: ws.write(boost::asio::buffer("history_go"));
May be server not get my request?

I have no idea why that server is not responding to you.

Why program stopped on line ws.read(op, sb);?

@Lifeda92 websocket::stream::read() blocks until a message is received, or until an error occurs:
http://vinniefalco.github.io/beast/beast/ref/websocket__stream/read/overload1.html

I tried websocket-example (without ssl). Server sent me the info when i sent him request history_go or newitems_go. Why i cant get this info when i use ssl? I'm sure, that a server supporting ssl. What could be the problem?

I have no idea why the server at wsn.dota2.net does not send back messages over SSL connections. Perhaps you should contact the server operator and begin an inquiry?

Please, tell me, how can i add field: "Origin:wss://wsn.dota2.net/wsn/" on the header?
need:
GET /wsn/ HTTP/1.1
Host: wsn.dota2.net
Upgrade: websocket
Sec-WebSocket-Key: dhaNU/6uTkhmsnYsetBQAQ==
Sec-WebSocket-Version: 13
User-Agent: Beast/1.0.0-b34
Connection: upgrade
Origin: wss://wsn.dota2.net **(need add this)**

Use stream::set_option with a "decorator":
http://vinniefalco.github.io/beast/beast/ref/websocket__stream/set_option/overload3.html
See:
https://github.com/vinniefalco/Beast/issues/212

The problem was in the data type...
If change  ws.write(boost::asio::buffer("history_go")); on   ws.write(boost::asio::buffer(std::string("history_go"))); everything is works! Server send me info over ssl. Thanks for support.

Oh! I should have seen that. I wrote this small utility function to help with such things:
    template<std::size_t N>
    boost::asio::const_buffers_1
    make_buffer(const char (&s)[N])
    {
        return boost::asio::const_buffers_1{&s[0], N-1};
    }

Has this been resolved?

It looks like this has been resolved. If any other issues pop up, or this problem comes up again feel free to open a new issue, thanks!

The codes above don't work with boost 1.67 - they produce a lot of errors during compilation. :( It looks like beast had too many changes for a year. Is it possible to get an example with the same functionality for the current beast? Please...

Yes, all of the Beast examples for Boost version 1.67.0 are here:
https://github.com/boostorg/beast/tree/boost-1.67.0/example

Thank you very much! That websocket_client_async_ssl.cpp looks like a piece of art for me.  However I still can't comprehend how it works. :( websocket_client_sync_ssl.cpp is much easier.  Could you show me a way how to make the functionality of the next code inserted into sync version for async version?
    for (int i = 0; i < 10; ++i) {
        // Read a message into our buffer
        ws.read(b);
        // Print out our buffer
        std::cout << boost::beast::buffers(b.data()) << std::endl;
        b.consume(b.size());
   }

So I need just to read a buffer 10 times. Any hints?  A lot of thanks in advance.

All I can really suggest is to study asynchronous Boost.Asio, this is not really a beast-specific problem.

Dear Vinnie, excuse me but I am really baffled by a fact that the next code doesn't work.
boost::beast::multi_buffer b;
ws.read(b);
std::ostringstream so;
so << boost::beast::buffers(b.data()) << std::endl;
std::cout << so.str() << "\n";

The last line prints nothing. How is it possible? Indeed, I use std::string sb = buffers_to_string(b.data()) for the required conversion but why doesn't sstream work?

I have no idea, have you tried stepping into it with a debugger to find out what is happening?

Thank you.  I was just curious about the case.  It is interesting that std::cout << boost::beast::buffers(b.data()) << std::endl; works perfectly.  IMHO something is wrong either with stl or boost.

maybe your buffer contains a null at the beginning?

Thank you very much. It is rather something wrong with my application. Sorry for my a bit dumb question. I have begun to use beast and it is still not easy for me to handle it properly.

No problem, I'm glad to help


Test failures in scipy.special with numpy master

In recent pull requests, a couple tests in scipy.special are failing with numpy master.  One of the tests is effectively this:
>>> from scipy.special import iv
>>> v, z = (-120, 700.6)
>>> assert_allclose(iv(v, z), iv(v, z+0j), rtol=1e-11, atol=1e-305)

In scipy '1.1.0.dev0+04759f9', that assertion passes with numpy 1.13.1, but raises an AssertionError with numpy '1.14.0.dev0+54232da'.
Apparently there is a change in the behavior of np.allclose().  I have reported the issue here: https://github.com/numpy/numpy/issues/9734

Fixed in numpy/numpy#9741

Thanks Pauli.


shrink_lv role gets "Failed to list block device properties" error

See pasted below full bash -x output. It looks like a literal ( is being set in the entries var at line of 167 of shrink.sh...
# bash -x /usr/bin/shrink.sh --device=/dev/mapper/VolGroup00-dataVol

+ VOLUME_SIZE_ALIGNMENT=4096
+ main --device=/dev/mapper/VolGroup00-dataVol:900M
+ entries=()
+ local -a entries
+ local run_status=0
+ parse_flags --device=/dev/mapper/VolGroup00-dataVol:900M
+ for i in '"$@"'
+ case $i in
+ entries+='(/dev/mapper/VolGroup00-dataVol:900M)'
+ [[ 1 == 0 ]]
+ for entry in '"${entries[@]}"'
+ local device
+ local expected_size
+ parse_entry '(/dev/mapper/VolGroup00-dataVol:900M)'
+ IFS=:
+ read -ra strarr
+ [[ 2 != 2 ]]
+ device='(/dev/mapper/VolGroup00-dataVol'
+ expected_size='900M)'
+ status=0
+ [[ 0 -ne 0 ]]
++ get_device_name '(/dev/mapper/VolGroup00-dataVol'
++ [[ (/dev/mapper/VolGroup00-dataVol == \U\U\I\D\=* ]]
+++ /usr/bin/cut -d ' ' -f 1
++ dev_name='(/dev/mapper/VolGroup00-dataVol'
++ status=0
++ [[ status -ne 0 ]]
++ echo '(/dev/mapper/VolGroup00-dataVol'
++ return 0
+ device_name='(/dev/mapper/VolGroup00-dataVol'
+ status=0
+ [[ 0 -ne 0 ]]
+ process_entry '(/dev/mapper/VolGroup00-dataVol' '900M)' '(/dev/mapper/VolGroup00-dataVol'
+ is_lvm '(/dev/mapper/VolGroup00-dataVol' '(/dev/mapper/VolGroup00-dataVol'
++ /usr/bin/lsblk '(/dev/mapper/VolGroup00-dataVol' --noheadings -o TYPE
+ val='lsblk: (/dev/mapper/VolGroup00-dataVol: not a block device'
+ status=1
+ [[ status -ne 0 ]]
+ echo 'Failed to list block device properties for (/dev/mapper/VolGroup00-dataVol: lsblk: (/dev/mapper/VolGroup00-dataVol: not a block device'
Failed to list block device properties for (/dev/mapper/VolGroup00-dataVol: lsblk: (/dev/mapper/VolGroup00-dataVol: not a block device
+ return 1
+ status=1
+ [[ 1 -ne 0 ]]
+ return 1
+ status=1
+ [[ 1 -ne 0 ]]
+ run_status=1

Figured it out and I'm fixing it.


Models from UW3 training?

Is there a place where we can find the models that were trained in the published paper?  Or must we perform training ourselves if we wish to use calamari on modern text?

the "antiqua_modern" folder contains a voting ensemble trained on the UW3 dataset

Ah, thanks!  Because "Antiqua Modern" is the name of a font, I erroneously assumed the model in that directory was trained exclusively on that font.

the "antiqua_modern" folder contains a voting ensemble trained on the UW3 dataset

I could not download UW3 dataset on the Internet. Could you please upload on drive and share it for me?
Thank you.


0.3.0b8 json gen adjs

change resulted in a reduction of the time to write json files from about 100 minutes to... about 30 seconds

The files look good by spot check, and they have all the same file sizes as the earlier run that had redundant creation of the dataframe.  I will proceed with checking full temporal coverage, however I do see one issue just from examining the json files -- There are extra input flac files in some of the daily json files.  We need at most one file from the previous day to cover the beginning of a day, however series of dates include two files from the previous day, one that definitely does not have data for the day being processed.  I would guess it is caused by a fixed buffer definition for tapping into files that began the previous day, rather than finding the first file that has data for a day.   It probably does not affect processing, so we can choose to ignore it, but I do think we ought to be able to code for correct constraint of only files that contain data for a day.  For the record, the dates in 2020 with the extra files are 2/10 through 3/13, and 12/10 through 12/31.


Make $debounce service part of angular !?

I am simply watching some objects on my scope that are changed as part of several digest cycles. After digesting them (changing their values via databinding) has finished, I want to save them to databse, but only ONCE and that is the point of the $debounce service.
From asking this question on SO, http://stackoverflow.com/questions/16278216/angularjs-save-changes-after-digest-has-finished, I didn't see that this common use-case that will once arise for anyone doing something more complex, is clearly solved.
So I came with this:

/**
 * Service function that helps to avoid multiple calls of a function (typically save()) during angular digest cycle.
 * $apply will be called after original function returns;
 *
 * Use it like this:
 *
 *  $scope.$watch('order', function(newOrder){
 *     $scope.orderRules.apply(newOrder); // changing properties on order
 *   }, true);
 *
 *  $scope.$watch('order.valid', function(newOrder){
 *     $scope.save(newOrder); //will be called multiple times while digested by angular
 *   });
 *
 *  $scope.save = debounce(function(order){
 *     // POST your order here ...$http....
 *     // debounce() will make sure save() will be called only once
 *   });
 */
define(['app'], function (app) {
    app.factory('debounce', ['$timeout', function ($timeout) {
        return function(fn, timeout, apply){ // debounce fn
            timeout = angular.isUndefined(timeout) ? 0 : timeout;
            apply = angular.isUndefined(apply) ? true : apply; // !!default is true! most suitable to my experience
            var nthCall = 0;
            return function(){ // intercepting fn
                var that = this;
                var argz = arguments;
                nthCall++;
                var later = (function(version){
                    return function(){
                        if (version === nthCall){
                            return fn.apply(that, argz);
                        }
                    };
                })(nthCall);
                return $timeout(later, timeout, apply);
            };
        };
    }]);
});

Question 1 to you: Do you see the need for such service?
Question 2 to you: Is this the optimal solution?

+1


Byte literals in front of words with python 3

resource_string() from pkg_resources opens dictionary.txt as  'rb', which puts byte literals in front of all the words when using python 3.
>>> get_sentence()
"B'cras' b'mi' b'a' b'vulputate' b'arcu'."

This is still happening:
"B'pede' b'mi' b'a' b'lorem' b'a' b'cum'.", "B'amet' b'et' b'a' b'a'.", "B'enim' b'in' b'a' b'a' b'a'.", "B'nunc' b'in'.", "B'nunc' b'ut' b'id' b'nam' b'porta' b'lacinia' b'platea' b'a' b'consectetuer' b'dis' b'hac' b'a' b'a' b'a' b'quis' b'a' b'a'."

I think this is fixed in 1.0.6, but PyPi only has the 1.0.5 version...
https://pypi.python.org/pypi/loremipsum
For convenience, could a new version be pushed?
from loremipsum import generate_paragraph, get_sentences
sentences_list = get_sentences(5)
for s in sentences_list:
	print(type(s), repr(s))

output:
<class 'str'> "B'nibh' b'eu' b'a' b'dui' b'fringilla'."
<class 'str'> "B'eget' b'ac'."
<class 'str'> "B'pede' b'ad' b'a' b'justo' b'odio' b'porttitor' b'vel'."
<class 'str'> "B'eget' b'ad'."
<class 'str'> "B'urna' b'ac'."

Any chance we can get 1.0.6 pushed to PyPI, @monkeython?

+1

+1 @monkeython

+1 @monkeython

+1 @monkeython

+1 @monkeython

Does this library work with Python 3?

If your only issue is the byte literals, this will fix it:
_DICTIONARY = [bytes.decode(word) for word in _DICTIONARY]
(same place as the code monkeython mentioned in his code snippet.  For me, its not enough because I face the additional issue that generate_paragraph() now returns much more text than it used to.  :(

PyPi version still broken...

If you want to patch the version on pip by hand, these two lines in generator.py do it:
_SAMPLE = resource_string(__name__, 'default/sample.txt').decode('utf-8')
_DICTIONARY = resource_string(__name__, 'default/dictionary.txt').decode('utf-8').split()

If you'd like to install a patched version:
pip install -e git+https://github.com/testlabauto/loremipsum.git@b7bd71a6651207ef88993045cd755f20747f2a1e#egg=loremipsmum
If you'd like the patched version in requirements.txt, add the line:
-e git+https://github.com/testlabauto/loremipsum.git@b7bd71a6651207ef88993045cd755f20747f2a1e#egg=loremipsmum


populate is not working properly on some schema state

var userExtraDefinition = {
    booking_cycle : { type : mongoose.Schema.Types.ObjectId, ref : 'BookingCycle' }
};
var accountSchema = mongoose.Schema({
    user_extra : {
    	type : userExtraDefinition,
    	default : undefined
    },
});

In this schema, Account.populate( 'user_extra.booking_cycle' ) doesn't work
but below code is working(without default)
var userExtraDefinition = {
    booking_cycle : { type : mongoose.Schema.Types.ObjectId, ref : 'BookingCycle' }
};
var accountSchema = mongoose.Schema({
    user_extra : userExtraDefinition
});

Hi! This looks like a mongoose question rather than express. You may want to ask it over at the mongoose project: https://github.com/Automattic/mongoose

sorry, I was confused.


Increment version for dnsresolver releases

Increment package version after release of Azure.ResourceManager.DnsResolver

API change check
API changes are not detected in this pull request.


docs: attempt to fix Codecov badge on PyPi

Hmm... now it does not render in GitHub file preview... :grimacing:
I was trying to model after this project: https://github.com/oasis-open/cti-stix-elevator
They seem to get the badge both on GitHub page, and PyPi, but probably there's more to it...


Updating descriptions for HELM_KUBEASGROUPS & HELM_KUBEASUSER

It appears that these descriptions were transposed from the order that seems to have been intended when they were introduced in https://github.com/helm/helm/pull/8710; I'm correcting this here (and fixing a small typo).
Signed-off-by: Bridget Kromhout<EMAIL_ADDRESS>

Since this is XS, it does not need a second approval.
Thank you @bridgetkromhout

Added this to the 3.4.1 milestone for consideration. As it appears to be a typo fix that won't change functionality but may confuse end users, perhaps this is the sort of thing that can and should go out in that release.

🤦
Thanks for catching this @bridgetkromhout


KOGITO-5750 Public API: PMML Modules (Incubation)

https://issues.redhat.com/browse/KOGITO-5750
Blocked by:

[ ] #1546

Notes:

Please review commit https://github.com/kiegroup/kogito-runtimes/pull/1549/commits/5fe38d63de228823afb0ddfb6dcc6cac3bd18af2 only (will be rebased)
see #1546 for an architectural overview
The names of the classes and modules (e.g. Predictions vs PMML) are for demo purposes only, and can be changed

How to retest this PR or trigger a specific build:

Run all builds
Please add comment: Jenkins retest this

Run (or rerun) specific test(s)
Please add comment: Jenkins (re)run [runtimes|optaplanner|apps|examples] tests

Quarkus LTS checks
Please add comment: Jenkins run LTS

Run (or rerun) LTS specific test(s)
Please add comment: Jenkins (re)run [runtimes|optaplanner|apps|examples] LTS

Native checks
Please add comment: Jenkins run native

Run (or rerun) native specific test(s)
Please add comment: Jenkins (re)run [runtimes|optaplanner|apps|examples] native

Full Kogito testing (with cloud images and operator BDD testing)
Please add comment: Jenkins run BDD
This check should be used only if a big change is done as it takes time to run, need resources and one full BDD tests check can be done at a time ...

The (build) Optaplanner check has failed. Please check the logs.

The (build) Examples check has failed. Please check the logs.

The (build) Apps check has failed. Please check the logs.

The (build) Runtimes check has failed. Please check the logs.

The (build) Runtimes check has failed. Please check the logs.

The (build) Optaplanner check has failed. Please check the logs.

The (build) Examples check has failed. Please check the logs.

The (build) Apps check has failed. Please check the logs.

The (build) Optaplanner check has failed. Please check the logs.

The (build) Apps check has failed. Please check the logs.

The (build) Examples check has failed. Please check the logs.

The (build) Runtimes check has failed. Please check the logs.

The (build) Runtimes check has failed. Please check the logs.

The (build) Runtimes check has failed. Please check the logs.

The (build) Apps check has failed. Please check the logs.


How to access cm after initialisation - to set options/cursor position

Hi, sorry if this is a silly question - I'm not sure how to access the codemirror object when using this angular wrapper.
I need to do so, so I can update the settings/set cursor position after codemirror is initialised
Is it saved anywhere that I can access? Or is there something I should set where initialising so I can retrieve the object later?
Thanks!

Oh man - lifesaver, thank you
On Thu, Jan 19, 2023 at 9:25 PM ngthienlinh @.***>
wrote:

hi,
You can access codemirror object using ViewChild:
In your html:
<ngx-codemirror #code_mirror ...>
In your ts file:
@.***('code_mirror') private codeSrc;
ngAfterViewInit() {
setTimeout(() => {
let yourCM = this.codeSrc.codeMirror;
}, 500)
}`
Hope this can help.
—
Reply to this email directly, view it on GitHub
https://github.com/scttcper/ngx-codemirror/issues/318#issuecomment-1396972836,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6O5QITM5BCXVC2CNBRSXLWTE6E3ANCNFSM6AAAAAAT5JUJD4
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Robin


Correct format of .wollemi.json

What is the correct format of the .wollemi.json? The examples in the README are not valid JSONs and it's not clear how the config file should look like.

@sagikazarmark  I updated the README with more detail about configuration and fixed the examples with invalid json. Let me know if that helps clear up the confusion around configuration.

Perfect! Thanks a lot!


Basic opens of the affine parts...

In Proposition 5.1.3 in the Foundations, it says

basic opens of the affine parts of $X$

where $X$ is a scheme. As the datum of an affine cover of $X$ is truncated to a mere proposition in the definition of a scheme, "basic opens of the" seems superfluous, doesn't it?

Yes, it should just be an open affine cover - I guess we could only say more for special schemes.

pushed -> closing (feel free to reopen if you disagree with what I said..).


Can I create a scenario creationloop in feature

I want to develop a test tool for my project! Can I create a scenario creation loop in feature file?

The issue template, that you deleted, is there because this is not where you should ask questions. Pleas look here and choose the channel that you prefer: https://cucumber.io/support


RadioButtons control initiates unexpected calls to IValueConverter.ConvertBack

Describe the bug
RadioButtons control initiates unexpected additional calls to IValueConverter.ConvertBack with first param value (selected radio button index) equals '-1'.
Steps to reproduce the bug

Clone or download the test project and open MainPage.xaml.cs.
Set the breakpoint in ConvertBack function.
Debug the project and click on radio buttons. Some clicks cause ConvertBack() to be called twice. The first call is unexpected with 'value' param set to '-1'. The second call is always correct.

Expected behavior
No unexpected additional calls to IValueConverter.ConvertBack.
Version Info
NuGet package version:
Microsoft.UI.Xaml 2.3.200213001

Windows 10 version
Saw the problem?

November 2019 Update (18363)
Yes

Device form factor
Saw the problem?

Desktop
Yes

I had a quick look at this out of curiosity
When the initial binding is setup, we get a hit on the Convert method with the current index (0), which is expected (Radio 1 is selected by default).
When you change to the Radio 2 button, the first button Radio 1 is deselected within the C++ source code and there are no buttons selected, so a -1 value is sent to ConvertBack. Then the second Radio is selected (within the controls C++ source code) so a value  of 1 is sent to ConvertBack.
Then , if you click on Radio 1 again, we go through the same thing, -1 is sent to the ConvertBack when Radio 2 is deselected, and then 0 is sent to ConvertBack the Radio 1 is selected.
It seems like reasonable behaviour to me.

@Kinnara can you describe what you are trying to achieve ? If you do a two way binding, I would expect convertback to be called. Is the issue that when switching from one item to the next, RadioButtons.SelectedIndex goes temporarily to -1 ?

Is the issue that when switching from one item to the next, RadioButtons.SelectedIndex goes temporarily to -1 ?

Yes. Other selectors like ListBox or ListView (or even the original ListView-based RadioButtons, I beleive) don't have this intermediate step, and it would be reasonable for one to expect RadioButtons doesn't either. It certainly can be worked around in app code but it would be nice if RadioButtons can be changed to match other selectors in behavior. BTW the use of a converter is not really relevant and I should've simplified the test project to remove it (the issue was copied from another repo).

Got it. We should avoid going to -1 temporarily. It is likely because we do that when an item gets unchecked here. . @StephenLPeters do you foresee any issues if we remove the intermediate -1 ?
@Kinnara  Thanks for filing this issue. Would you like to contribute a fix ?

Sure, I'll try to find some time for it next week.

This issue is still there in WinUI3