fix: translucent disabled button-icon hover styles

While working on dark mode button-icons, I noticed that the translucent ones were incorrectly showing the hover style while disabled (and hovered). Coincidentally, the visual diff tests for this scenario weren't set up correctly and it was capturing the wrong element.
This fixes both of those things, and introduces the diagonal "dark mode" background to make the translucent visual diff better.

Re-generating the goldens based on an expected visual-diff run:
https://s3.ca-central-1.amazonaws.com/visualdiff.gaudi.d2l/screenshots/BrightspaceUI/core/button-icon/2020-10-28-<IP_ADDRESS>9-44d8f1dfa6b2eba9c123d6a5bfb7b2f50857d4aa-report.html


How to load the checkpoint of "colbert-ir/colbertv2.0"

Thanks for the fantastic project! How can I load the checkpoint manually?
I tried
# Initialize the ColBERT model
checkpoint = 'colbert-ir/colbertv2.0'
config = ColBERTConfig.load_from_checkpoint(checkpoint)

# config = ColBERTConfig(doc_maxlen=doc_maxlen, nbits=nbits, kmeans_niters=4, model_name='bert-base-uncased')
colbert = Checkpoint('colbert-ir/colbertv2.0', config)

but it doesn't work

You have to download it manually as explained in the README.


Performance problems on larger cubes

          really funny to see the very same curl is much faster on the mobx...

curl 'https://visualization-tool-pmkndd76v-ixt1.vercel.app/api/graphql' -X POST -H 'content-type: application/json' --data-raw '{"query":"query DataCubeObservations($iri: String!, $sourceType: String!, $sourceUrl: String!, $locale: String!, $dimensions: [String!], $filters: Filters, $latest: Boolean, $limit: Int) {\n  dataCubeByIri(\n    iri: $iri\n    sourceType: $sourceType\n    sourceUrl: $sourceUrl\n    locale: $locale\n    latest: $latest\n  ) {\n    iri\n    title\n    description\n    dimensions(sourceType: $sourceType, sourceUrl: $sourceUrl) {\n      ...dimensionMetadata\n      __typename\n    }\n    measures(sourceType: $sourceType, sourceUrl: $sourceUrl) {\n      ...dimensionMetadata\n      __typename\n    }\n    observations(\n      sourceType: $sourceType\n      sourceUrl: $sourceUrl\n      dimensions: $dimensions\n      filters: $filters\n      limit: $limit\n    ) {\n      data\n      sparqlEditorUrl\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment dimensionMetadata on Dimension {\n  iri\n  label\n  description\n  isNumerical\n  isKeyDimension\n  dataType\n  order\n  values(sourceType: $sourceType, sourceUrl: $sourceUrl, filters: $filters)\n  unit\n  related {\n    iri\n    type\n    __typename\n  }\n  ...hierarchyMetadata\n  ... on TemporalDimension {\n    timeUnit\n    timeFormat\n    __typename\n  }\n  ... on NumericalMeasure {\n    isCurrency\n    currencyExponent\n    resolution\n    isDecimal\n    __typename\n  }\n}\n\nfragment hierarchyMetadata on Dimension {\n  hierarchy(sourceType: $sourceType, sourceUrl: $sourceUrl) {\n    ...hierarchyValueFields\n    children {\n      ...hierarchyValueFields\n      children {\n        ...hierarchyValueFields\n        children {\n          ...hierarchyValueFields\n          children {\n            ...hierarchyValueFields\n            children {\n              ...hierarchyValueFields\n              __typename\n            }\n            __typename\n          }\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment hierarchyValueFields on HierarchyValue {\n  value\n  dimensionIri\n  depth\n  label\n  hasValue\n  position\n  identifier\n}\n","operationName":"DataCubeObservations","variables":{"iri":"https://environment.ld.admin.ch/foen/nfi/C-96/cube/1","sourceType":"sparql","sourceUrl":"https://int.lindas.admin.ch/query","locale":"en","dimensions":null,"filters":{"https://environment.ld.admin.ch/foen/nfi/unitOfReference":{"type":"multi","values":{"https://environment.ld.admin.ch/foen/nfi/UnitOfReference/Ktbsl/13":true,"https://ld.admin.ch/canton/7":true,"https://ld.admin.ch/canton/6":true,"https://ld.admin.ch/canton/14":true,"https://ld.admin.ch/canton/15":true,"https://ld.admin.ch/canton/16":true,"https://ld.admin.ch/canton/10":true,"https://ld.admin.ch/canton/26":true,"https://ld.admin.ch/canton/8":true,"https://ld.admin.ch/canton/4":true,"https://ld.admin.ch/canton/24":true,"https://ld.admin.ch/canton/20":true,"https://ld.admin.ch/canton/21":true,"https://ld.admin.ch/canton/23":true,"https://ld.admin.ch/canton/22":true,"https://ld.admin.ch/canton/18":true,"https://ld.admin.ch/canton/25":true,"https://ld.admin.ch/canton/11":true,"https://ld.admin.ch/canton/19":true,"https://ld.admin.ch/canton/3":true,"https://ld.admin.ch/canton/5":true,"https://ld.admin.ch/canton/2":true,"https://ld.admin.ch/canton/17":true,"https://ld.admin.ch/canton/9":true,"https://ld.admin.ch/canton/1":true}},"https://environment.ld.admin.ch/foen/nfi/lbhndh":{"type":"single","value":"https://environment.ld.admin.ch/foen/nfi/ClassificationUnit/Lbhndh/Total"},"https://environment.ld.admin.ch/foen/nfi/evaluationType":{"type":"single","value":"https://environment.ld.admin.ch/foen/nfi/EvaluationType/1"},"https://environment.ld.admin.ch/foen/nfi/unitOfEvaluation":{"type":"single","value":"https://environment.ld.admin.ch/foen/nfi/UnitOfEvaluation/Zgwald"},"https://environment.ld.admin.ch/foen/nfi/grid":{"type":"single","value":"https://environment.ld.admin.ch/foen/nfi/Grid/N4"},"https://environment.ld.admin.ch/foen/nfi/inventory":{"type":"single","value":"https://environment.ld.admin.ch/foen/nfi/Inventory/450"}}}}' --output /tmp/out.out
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  128k  100  124k  100  4061  13597    433  0:00:09  0:00:09 --:--:-- 31304

just 9 secs   :eyes: - maybe this brings you some new ideas for how to takle the speed issues...
Originally posted by @Rdataflow in https://github.com/visualize-admin/visualization-tool/issues/937#issuecomment-1406448836
Veronique a aussi remarqué des problèmes lors de la recherche. "Ca peut varier en fonction des jours.".


Reference of source document

It seems that NONE of the languages have sources to the data.json 3-gram model.
Is it possible to provide document sources for each language such that we can review the material,
and possibly generate 2-grams and 4-grams (or 2/3 or 3/4 or 2/3/4-gram combos) models?

Franc is built from udhr, which has this.
You’ll have to read the source code of this franc and the other projects, but I made sure everything does one thing well, to allow for these things!

Here are two questions:

Some problems regarding using UDHR is that the biases within UDHR's linguistic characteristics would skew the data one way or another. Has it been fully researched about it?
Are there any other datasets that covers as many languages as possible? Would like to try, test and compare as I really would like to apply this to vocabulary and short texts which require bigger datasets of Ngrams.

This is a software project, not a research project. If you want to use it, use it, if you don’t, don’t.
UDHR is used because it allows for detecting the most languages possible, the readme describes what’s good and not so good about that. Supporting many languages is a goal of franc
There are many data sets out there, none that support so many languages as UDHR.

@wooorm Maybe it is the choice of words, but I when I say "researched" I meant "optimized" as in if using the UDHR is the best route in having the highest accuracy.

There are many data sets out there, none that support so many languages as UDHR.

Do you know of any examples that have at least 75 or 100 languages? Maybe 400 languages is a bit too "extreme" but I would like to know if you have already encountered such data sets for people to share.

When I say "researched" I meant "optimized" as in if using the UDHR is the best route in having the highest accuracy.

UDHR definitely does not give the highest accuracy, but it does support the most languages

Do you know of any examples that have at least 75 or 100 languages

I don’t. You could look into the Bible. There have been several issues over the years with conversations going into similar directions as this, e.g., https://github.com/wooorm/franc/issues/76 and https://github.com/wooorm/franc/issues/75. You can read through the closed issues to find out more.

BTW, I think the non-ngram (CLD2) approach is often better than ngrams.

@wooorm yes so does CLD2 used codepoint filtering for detecting languages? Might need some primer on how it works. Because codepoint filtering is something that I would like to see data on.

I don't know; I maintain this project and give it away for free 🤷♂

Okay, thanks for the help.

BTW I think we can possibly improvise with any collection of fictional and religious books, when we are provided a tool to remove proper nouns from such works to leave in common word structures. See: The Bible

https://www.babbel.com/en/magazine/most-translated-books/
https://ingcointernational.com/the-20-most-translated-texts-in-history/


Update unit tests for allocate net gen

While talking about @grgmiller 's PR #2235, @cmgosnell and I decided to take a crack at testing the allocation behavior.
There's a few assertions that fail due to some bugs in our "allocating stuff that is missing in various places" code - I decided that fixing those bugs is out of scope of "get the tests working again."
TODO:

[x] we didn't convert the other xfail test yet
[x] we could probably come up with a cleaner looking way to provide input data
[ ] we could probably assert other things about the allocation beyond "the sums match"

@cmgosnell I got the urge to clean these up a bit more. Take a look! We should probably do some more complicated asserts, and maybe test the other top-level function (aggregate_gen_fuel_by_generator), but I think the pattern is now easier to follow.

I might suggest setting the threshold lower than 5% or 7%. In theory, the allocated totals should exactly match the input totals, although in practice perhaps rounding errors might create slight differences. Maybe a stricter 1% (or 0.5%?) threshold would catch situations where the allocation is off while allowing some small tolerance for rounding? Or should we test that they exactly match?


Translation to Serbian

I'll be happy to contribute this way.
sr_RS
https://github.com/voyager/VERGE

Did this ever get done ?
I didn't see anything in https://github.com/voyager/VERGE/tree/master/src/qt/locale

instructions for translation
You can use this steps:
1 - create a fork of the project
2 - when fork created, you go to src/qt/locale and create a file like bitcoin_gk.ts
3 - copy the original file in english into the bitcoin_gk.ts
4 - Translate the file in the tags
5 - commit
6 - make a pull request

@voyager  @sasasavic82  @crypto4ce  @eskagithub
If you ever find some time, please follow instructions above to help with translations !  Feel free to open a new issue when you are close if you need more assistance.  We will be happy to help !


Improve error message if calling cf install-plugin with a directory

I've been writing a CF plugin. I tried installing the plugin from a local directory and received a surprising error.
Command
cf install-plugin paas-cf-app-push -f

What occurred
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
mkdir /Users/michaelmokrysz/.cf/plugins/temp949400214/548287741: not a directory
FAILED

What you expected to occur
I expected the plugin to install successfully. As I now know from debugging the cf source, one installs binaries rather than directories, so it should have failed. In that case I'd expect a descriptive error message rather than the unclear one currently output.
CLI Version
cf version 6.32.0+0191c33d9.2017-09-26 (the latest at time of writing)
Platform & Shell Details
Mac OS X 10.11 iTerm

I'd be quite happy to submit a PR for this if you'd be likely to review and accept it?

I can reproduce it on Windows as well:
D:\Users\koperd\Downloads\bin>cf install-plugin t -f
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
mkdir D:\Users\koperd\.cf\plugins\temp038681339\214968862.exe: The system cannot find the path specified.
FAILED

We'd definitely review your PR!

@46bit Were you still planning to submit a PR or shall I schedule this story for my team to take a look? (No guarantees we'll get to it soon though).

@dkoper Thanks for the reminder, I'm working on a patch. 👍

With the GA of the v7 CLI, we're no longer actively developing against the v6 line.  With an interest the overall hygiene of the CLI project we're closing this  issue.
If this issue is still occurring in v7 please feel free to comment and re-open. Thank you!


running locally on windows 10 gives errors

OS: Windows 10
Node: v8.9.4
yarn: v1.7.0
bugs
in terminal:
GraphQL Error Field "path" must not have a selection since type "String" has no subfields.
file: C:/Users/natha/documents/cs/reactjs.org/src/pages/docs/error-decoder.html.js
   1 |
   2 |   query ErrorPageMarkdown($slug: String!) {
   3 |     markdownRemark(fields: {slug: {eq: $slug}}) {
   4 |       html
   5 |       fields {
>  6 |         path {
     |              ^
   7 |           id
   8 |         }
   9 |       }
  10 |       frontmatter {
  11 |         title
  12 |       }
  13 |     }
  14 |     errorCodesJson {
  15 |       internal {
  16 |         contentDigest

in browser:
TypeError: Cannot read property 'code' of undefined
new Home
C:/Users/natha/documents/cs/reactjs.org/src/pages/index.js:27
  24 |
  25 | const {data} = props;
  26 |
> 27 | const code = data.code.edges.reduce((map, {node}) => {
  28 |   map[node.id] = JSON.parse(node.internal.contentDigest);
  29 |
  30 |   return map;

Steps to reproduce:
git clone https://github.com/reactjs/reactjs.org.git
cd reactjs.org
yarn
yarn dev
open http://localhost:8000 in chrome

edit: don't know if related, but in #1065 I see changes to error-decoder.html.js of fields { path { id } }
edit2:
I am assuming everything in the readme works for windows as it doesn't say otherwise.
Also, when it says "Node: install version 8.4 or greater" in the readme, does that mean 8.x.x? Inside the package.json, I see:
"engines": {
    "node": "^8.4.0",
    "yarn": "^1.3.2"
  },

what does that mean for my globally installed node and yarn programs? And should the readme be updated to reflect the contents of the package.json?

Hi!
I reproduced your steps and got no errors on console.
I used the following:

OS: Windows 10
Node 8.11.3
Yarn 1.9.2

Also, to see those "engines" on package.json means that, If you have a version lower than Node 8.4.0 or Yarn 1.3.2, it won't work properly or, at some case, won't work at all if you don't have those or major versions installed.
I attach an image of the console output after running the command yarn dev

Maybe updating to the newest versions of Node and Yarn and re-reproducing the scenario will make it work.

Also haviing the same issue here but on windows 8 pro
OS: Windows 8 pro
Node: 8.11.3
Yarn:  1.9.2
->yarn versions

->yarn dev

-> IN Browser

I had something like this a few times. Removing .cache directory in the project root, removing node_modules and re-running Yarn solved it.

Having the same issue as above.
OS: Windows 10
Node: v8.11.2
Yarn: 1.10.1

Deleting .cache and node-modules did not work.
Did a clean git clone from master and then I first had the first error in this issue. After cleaning I got the second again.

Now Netlify builds have the same issue.
I have no idea what it means.

Got the same issue as @killynathan on Linux (Ubuntu 18.04).
I've had Node 8.10.0, tried removing .cache and node_modules and the same thing happened.
Then installed NVM, used node lts/carbon (8.12.0), removed .cache and node_modules and it started to work.

Whoa, fun. @th7nder the Node 8.10.0 comment was a helpful one. I am able to semi-reliably reproduce the issue now once I'm using that. I'll take a look at this and report back.

Also @th7nder the issue I solved is slightly different than the issue you ran into. If you run into that again, please open a new issue! Thank you!


Can't use SplineComponent.h (and most other headers) in a project which uses the RMC

VS spits out a ton of errors upon trying to compile when having #include Components/SplineComponent.h :
https://hastebin.com/vavaqebogu.tex

@Koderz

I haven't been able to reproduce this locally. What engine version are you using?

4.14.0, Windows 64-bit, no other plugins

I still can't recreate that.   What other includes do you have and what is the folder structure of your project?

I have split the cpp and headers into /Public and /Private folders, maybe that is a factor?
Otherwise, no other includes.

That shouldn't affect anything. The only time I've seen something like that happen (wasn't with the RMC) but it's if you mimic a folder within UE4. so for example if you have a Core folder which the engine has its own I've seen UBT trip up on some things in that case but that was over a year ago.  Not really sure why you're gettin that as none of my attempts to recreate it have failed to compile

I haven't heard from you in a while so I'm going to go ahead and close this. If this is still an issue, feel free to reopen it.


Removed duplicate button on open Source page

There is  a duplicate button in Open Source page ,
which is removed.
Files Changed : open-source.js.
Closes : #503
Sreenshot of made changes:

Thank you so much @adityakode for becoming a contributor of the project!


customize design comment popup

Also, I suggest you make changes to the style.css file
for the .reservation-div on line 208:

Change the position to fixed
GIve it a height of maybe 90%

Also for .movie-Image line 247:

reduce the size of the image in the reservation popup


Meson does not run with the expected Python executable

One of the problems of Meson's handling of Python is that find_program, which is also used by Meson Python module, will find whatever Python executable is available, which is not necessarily the one we are using. Because of this, Meson might actually build native modules for a different Python version than we are using, and also there may be some mismatch in the paths returned by Meson and the ones we were expecting.
Currently, our heuristics should be able to work around the path mismatch issue, but that is not a long-term solution. That said, Meson building native modules for a different version is very much an issue and should be fixed.
We need to make Meson use the current Python interpreter.

Thanks. I haven't seen this happen yet, but I can imagine it does. So yes, using the current interpreter should be right. For direct invocations of meson I can imagine that a global meson install can work outside of the Python environment it's installed in. But for mesonpy it should always be the current interpreter if we're not cross-compiling.

I think the main problem is that even if Meson is working inside a Python environment, it can still pick a Python outside (depends on the PATH environment variable IIRC).


TouchableNativeFeedback's ripples aren't affected by borderRadius on Android 9

This is a bit of a problem when creating buttons with borderRadius and TouchableNativeFeedback, and the ripples extend out. I'm not an expert but I suppose setNativeBackground needs to get the corner radius when making the mask for the RippleDrawable and setBorderRadius may need to remake the background drawable somehow.

Attached the following images to represent graphically what is proposed

Images were taken from Michael Evans Blog - Android Ripples With Rounded Corners

It's supposed to be implemented in https://github.com/facebook/react-native/pull/6515 but I can't make it work :/

I realize that PR got reverted

FWIW, as of 0.30, the ripple effect works with respect to the borderRadius of its parent , but it requires its borderless effect to be set to true.
Eg:
<View style={{borderRadius: 24, backgroundColor: '#F66', width: 48,height: 48}}>     <TouchableNativeFeedback background={TouchableNativeFeedback.Ripple('#AAF', true)}> [snip]     </TouchableNativeFeedback> </View>
If this is the intented effect, it should probably be made explicit, and added to the documentation. It it's a side effect (no pun intented), #6515 still makes sense.

@reyesr OMG thank you so much for this!  👍

@reyesr IT WORKS!!! Thank you so much buddy!! :raised_hands:

Looks like this is resolved. Feel free to open a new issue if you're still having troubles with it

Re-opening since this issue has re-surfaced on Android P.

Just to illustrate from Android P:

@reyesr thank you..yet it worked for me after I added a View inside TochableNativeFeedback with the same parent style .. like:
<View style={{ borderRadius: 20, backgroundColor: '#2f2', width: 80, height: 80 }}>
<TouchableNativeFeedback background={TouchableNativeFeedback.Ripple('#AAF', true)}>
<View style={{ borderRadius: 20, backgroundColor: '#2f2', width: 80, height: 80 }}>
 test button

0.55 + Android Pie = The ripple is not affected by the borderRadius.
Tried all the variations (View from outside, View from inside, both).

This issue was never resolved, the solution given in a comment above was a hack.

Any updates on the issue?

<View style={{ borderRadius: 5, overflow: 'hidden' }}>
  <TouchableNativeFeedback
        onPress={() => {}}
        background={TouchableNativeFeedback.Ripple('red')}
      >
        {'CLICK CLICK'}
      </TouchableNativeFeedback>
</View>

You guys should try to wrap your TouchableNativeFeedback in a view with a ``border-radius` and an hidden overflow.

@balthazar , wrapping the touchable hides the effect of borderless ripple, as desired in Floating Action Buttons components.

@aMarCruz I'm not talking about borderless ripples here, as my example shows.

Thanks @RichardLindhout
If anyone is still experiencing this on the latest release please submit a new issue

@rickhanlonii That's a workaround which we can't use if oveflow: hidden is not desirable. The behavior is still different between Android versions and buggy.

@satya164 do you think we should keep this open so contributors need to read though the whole thread from 2016 to understand what the current status is or should we file a new issue with the current state of the bug and no superfluous/outdated information?

@rickhanlonii someone can open a new issue, but this issue lists some workarounds which are useful to people coming from google, which is better than a new empty issue imo, given that this thread isn't quite short.

It's 2019 and I can't create a touchable element with border radius which works on both platforms without using dirty hacks.

I poked around with this a bit. One solution is to change the mask on the ripple drawable to be a ShapeDrawable with a corner radius. So instead of:
https://github.com/facebook/react-native/blob/cbf1b39c662eeede356214ba276a105604b75bb2/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java#L78-L86
ColorDrawable is just a rectangle, but it can be replaced with a ShapeDrawable that uses a RoundRectShape. So you could do:
private static Drawable getRippleMask() {
    // Border radii
    float[] outerRadii = new float[] { 12f, 12f, 12f, 12f, 12f, 12f, 12f, 12f };

    RoundRectShape r = new RoundRectShape(outerRadii, null, null);

    ShapeDrawable shapeDrawable = new ShapeDrawable(r);
    shapeDrawable.getPaint().setColor(Color.WHITE);

    return shapeDrawable;
  }

  public static Drawable createDrawableFromJSDescription(Context context, ReadableMap drawableDescriptionDict) {
  // Later on
  return new RippleDrawable(colorStateList, null, mask);
}

This works!

However it needs to:

Account for border-width (the mask should only apply to the edge of the border)
Account for the actual border radius

So I think I might have a fix for this! I just need to figure out how to pass the border and corner radius fields ReactDrawableHelper.

I sent out a possible fix for this here:
https://github.com/facebook/react-native/pull/25342

Fixed in https://github.com/facebook/react-native/commit/14b455f69a30d128db384749347f41b03b9a6000

Unfortunately, the commit that was supposed to fix this issue introduced a major regression and we had to roll it back.
I am reopening this issue as it's still the case. Hopefully, prior work by @nhunzaker can be helpful to work on a fix once again.

My fix to this was to add overflow:'hidden' and the needed borderRadius to the parent view containing the TouchableNativeFeedback and then add useForeground={true} to the TouchableNativeFeedback :)

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

I was first :-P

@RichardLindhout Hahahaha, nice one :D

FWIW, as of 0.30, the ripple effect works with respect to the borderRadius of its parent , but it requires its borderless argument to be set to true.
Eg:
<View style={{borderRadius: 24, backgroundColor: '#F66', width: 48,height: 48}}> <TouchableNativeFeedback background={TouchableNativeFeedback.Ripple('#AAF', true)}> [snip] </TouchableNativeFeedback> </View>
If this is the intented effect, it should probably be made explicit, and added to the documentation. It it's a side effect (no pun intented), #6515 still makes sense.

This causes the ripple to completely ignore the size of the button:

My fix to this was to add overflow:'hidden' and the needed borderRadius to the parent view containing the TouchableNativeFeedback and then add useForeground={true} to the TouchableNativeFeedback :)

This was also the working solution for me. But what if I want the ripples in the background and not in the foreground??

FWIW, as of 0.30, the ripple effect works with respect to the borderRadius of its parent , but it requires its borderless argument to be set to true.
Eg:
<View style={{borderRadius: 24, backgroundColor: '#F66', width: 48,height: 48}}> <TouchableNativeFeedback background={TouchableNativeFeedback.Ripple('#AAF', true)}> [snip] </TouchableNativeFeedback> </View>
If this is the intented effect, it should probably be made explicit, and added to the documentation. It it's a side effect (no pun intented), #6515 still makes sense.

This causes the ripple to completely ignore the size of the button:

My fix to this was to add overflow:'hidden' and the needed borderRadius to the parent view containing the TouchableNativeFeedback and then add useForeground={true} to the TouchableNativeFeedback :)

This was also the working solution for me. But what if I want the ripples in the background and not in the foreground??

Hi,
I don't know if do you have still a problem, but this is how I'm using it ( "react-native": "0.62.2",):
    buttonShape: {
        borderRadius: 50,
        overflow: 'hidden',
    },
    button: {
        backgroundColor:  'green',
        height: 80,
        width: 80,
    },

[...]

            <View style={styles.buttonShape}>
                <TouchableFeedback>
                    <View style={styles.button}>
                        <Text>
                            Floating btn
                        </Text>
                    </View>
                </TouchableFeedback>
            </View>

Same problem in Pressable =\

I tried every possible ways and this problem still persist. Are there any solutions for 0.63.2 yet?

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

This still works but it's in the hidden comments now..

The <Pressable> doesn't have a useForeground prop, how are we supposed to show ripple effects with buttons that have backgrounds (such as a LinearGradient) in a Pressable?

Is there any update and better solution to this? I've already tried each solution like wrapping the TouchableNativeFeedback in View, setForeground to true, overflow hidden, etc but none of them works. I run it on my phone on Android Pie.

Is there any update and better solution to this? I've already tried each solution like wrapping the TouchableNativeFeedback in View, setForeground to true, overflow hidden, etc but none of them works. I run it on my phone on Android Pie.

Is there any update and better solution to this? I've already tried each solution like wrapping the TouchableNativeFeedback in View, setForeground to true, overflow hidden, etc but none of them works. I run it on my phone on Android Pie.

Have you explicitly set the borderless={false} + adding a view around it with overflow:'hidden' and the same borderRadius as the ripple?

Is there any update and better solution to this? I've already tried each solution like wrapping the TouchableNativeFeedback in View, setForeground to true, overflow hidden, etc but none of them works. I run it on my phone on Android Pie.

Have you explicitly set the borderless={false} + adding a view around it with overflow:'hidden' and the same borderRadius as the ripple?

Have you explicitly set the borderless={false} + adding a view around it with overflow:'hidden' and the same borderRadius as the ripple?

I did. But in this case, the ripple doesn't appear at all. There's no feedback when pressing the button.
This is the code:
    <View
      style={{ backgroundColor, borderRadius: 16, overflow: "hidden" }}
    >
      <TouchableNativeFeedback
        onPress={onPress}
        background={TouchableNativeFeedback.Ripple(rippleColor, false, 16)}
      >
        {children}
      </TouchableNativeFeedback>
    </View>

Have you explicitly set the borderless={false} + adding a view around it with overflow:'hidden' and the same borderRadius as the ripple?

I did. But in this case, the ripple doesn't appear at all. There's no feedback when pressing the button.
This is the code:
    <View
      style={{ backgroundColor, borderRadius: 16, overflow: "hidden" }}
    >
      <TouchableNativeFeedback
        onPress={onPress}
        background={TouchableNativeFeedback.Ripple(rippleColor, false, 16)}
      >
        {children}
      </TouchableNativeFeedback>
    </View>

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

This did work for me

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

This did work for me

Ok I found some code in the hidden comments from when I did have problems with this.

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

This did work for me
I think in your example it should be something like
<View
      style={{borderRadius: 16, overflow: "hidden" }}
    >
      <TouchableNativeFeedback
        onPress={onPress}
        style={{borderRadius: 16 }}
         useForeground={true}
         borderless={false}
        background={TouchableNativeFeedback.Ripple(rippleColor, false, 16)}
      >
        {children}
      </TouchableNativeFeedback>
    </View>

Maybe also consider using the Pressable component instead of the TouchableNativeFeedback

TouchableNativeFeedback doesn't recognize borderless={false} as a prop. It's the 2nd argument of Ripple.
Seems like I'm gonna try using Pressable instead. Thanks!

Ok I found some code in the hidden comments from when I did have problems with this.

For me it works when I set in TouchableRipple.js the useForeground true + borderless false
  disabled={disabled}
          useForeground={true}
          background={
            background != null
              ? background
              : TouchableNativeFeedback.Ripple(calculatedRippleColor, false)
          }

Also on e.g. the FAB its needs an overflow: 'hidden' style. Works for me on both iOS and Android!
  touchable: {
    borderRadius: 28,
    overflow: 'hidden',
  },

I'm running the latest Android (9 Pie)

This did work for me
I think in your example it should be something like
<View
      style={{borderRadius: 16, overflow: "hidden" }}
    >
      <TouchableNativeFeedback
        onPress={onPress}
        style={{borderRadius: 16 }}
         useForeground={true}
         borderless={false}
        background={TouchableNativeFeedback.Ripple(rippleColor, false, 16)}
      >
        {children}
      </TouchableNativeFeedback>
    </View>

Maybe also consider using the Pressable component instead of the TouchableNativeFeedback

TouchableNativeFeedback doesn't recognize borderless={false} as a prop. It's the 2nd argument of Ripple.
Seems like I'm gonna try using Pressable instead. Thanks!

Just a heads up. Instead of wrapping the Touchable inside View, I tried wrapping the View inside the Touchable. This works for me!
    <TouchableNativeFeedback
      onPress={onPress}
      style={{borderRadius: 16 }}
      background={TouchableNativeFeedback.Ripple(rippleColor, false)}
      useForeground={true}
    >
      <View
        style={[
          styles.buttonContainer,
          { backgroundColor, overflow: "hidden" },
        ]}
      >
        {children}
      </View>
    </TouchableNativeFeedback>

Just a heads up. Instead of wrapping the Touchable inside View, I tried wrapping the View inside the Touchable. This works for me!
    <TouchableNativeFeedback
      onPress={onPress}
      style={{borderRadius: 16 }}
      background={TouchableNativeFeedback.Ripple(rippleColor, false)}
      useForeground={true}
    >
      <View
        style={[
          styles.buttonContainer,
          { backgroundColor, overflow: "hidden" },
        ]}
      >
        {children}
      </View>
    </TouchableNativeFeedback>

@panjiahnh's suggestion worked for me. Here's my full Button.js component if anyone is interested. It's using TouchableOpacity on iOS and TouchableNativeFeedback on Android.
import React from 'react';
import PropTypes from 'prop-types';
import {
  StyleSheet,
  TouchableOpacity,
  TouchableNativeFeedback,
  Platform,
  Text,
  View,
  ViewPropTypes,
} from 'react-native';
import { colors, fonts } from '../../config/styles';

const Button = (props) => {
  const { style, type, children, disabled, onPress } = props;
  const isPrimary = type === 'primary';
  const isSecondary = type === 'secondary';
  const isTransparent = type === 'transparent';

  const buttonText = (
    <Text style={[styles.buttonText, !isPrimary && styles.buttonTextDark]}>{children}</Text>
  );

  if (Platform.OS === 'ios') {
    return (
      <TouchableOpacity
        style={[
          styles.button,
          isPrimary && styles.buttonPrimary,
          isSecondary && styles.buttonSecondary,
          style,
          disabled && styles.buttonDisabled,
        ]}
        onPress={onPress}
        disabled={disabled}
      >
        {buttonText}
      </TouchableOpacity>
    );
  }

  return (
    <TouchableNativeFeedback
      onPress={onPress}
      disabled={disabled}
      background={
        Platform.Version >= 21
          ? TouchableNativeFeedback.Ripple(
              isPrimary || isSecondary ? colors.whiteBg : colors.blueBg,
              false
            )
          : TouchableNativeFeedback.SelectableBackground(5)
      }
      useForeground={isTransparent}
    >
      <View
        style={[
          styles.button,
          isPrimary && styles.buttonPrimary,
          isSecondary && styles.buttonSecondary,
          isTransparent && { overflow: 'hidden' },
          style,
          disabled && styles.buttonDisabled,
        ]}
      >
        {buttonText}
      </View>
    </TouchableNativeFeedback>
  );
};

Button.propTypes = {
  onPress: PropTypes.func,
  style: ViewPropTypes.style,
  type: PropTypes.oneOf(['primary', 'secondary', 'transparent']),
  children: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
  disabled: PropTypes.bool,
};

Button.defaultProps = {
  onPress: (f) => f,
  style: {},
  type: 'primary',
  children: '',
  disabled: false,
};

const styles = StyleSheet.create({
  button: {
    borderRadius: 27,
    height: 45,
    paddingHorizontal: 30,
    justifyContent: 'center',
    alignItems: 'center',
  },
  buttonPrimary: {
    backgroundColor: colors.blueBg,
  },
  buttonSecondary: {
    backgroundColor: colors.greenBg,
  },
  buttonText: {
    color: '#FFF',
    fontSize: 16,
    fontFamily: fonts.regular,
    letterSpacing: 1.15,
    textAlign: 'center',
  },
  buttonTextDark: {
    color: colors.darkBlueText,
  },
  buttonDisabled: {
    opacity: 0.3,
  },
});

export default Button;

@vasilestefirta
using overflow: 'hidden' hides elevation effect on android in my case. I didn't test, but maybe it hides shadows on iOS too.

Closing as @panjiahnh suggestion works. Feel free to open a new issue if this is still happening.

Closing as @panjiahnh suggestion works. Feel free to open a new issue if this is still happening.

@safaiyeh Are you read my comment?  @panjiahnh suggestion is just a workaround and doesn't fix the problem correctly. please reopen this issue.

This solution works for the transparent button, but it does not work for the colored buttons. It looks like it does since the effect is white, but if you try changing it to black or a color, you see the square surrounding the button still.

I have tried these solutions, and the ripple effect is working, but the touchable is responding to presses outside of the border radius.
The red area is where it should respond to presses, and the black area is where it is actually responding to presses.

So, I tried a solution and it works as expected. The ripple effect works behind the background and it doesn't require useForeground={true}
<View style={{ borderRadius: 30, overflow: "hidden"}}>
    <TouchableNativeFeedback
          background={TouchableNativeFeedback.Ripple("#1D4ED8", false)}
          onPress={() => {}}
    >
          <View style={{ padding: 8, borderRadius: 30 }}>
              <Ionicons name="call-outline" size={24} color={"white"} />
          </View>
    </TouchableNativeFeedback>
</View>

Try this out and let me know if it works for you 👯.
P.S. Change the Ripple color to suit your needs.


silently continue when account status change fails

Proposed changes

Revert back a change that was made to silently continue when the lease status changes to inactive and the lease event lambda was failing trying to change it.

Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactor (changes to code, which do not change application behavior)

Checklist

[ ] I have filled out this PR template
[ ] I have read the CONTRIBUTING doc
[ ] I have added automated tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (README.md, inline comments, etc.)
[ ] I have updated the CHANGELOG.md under a ## next release, with a short summary of my changes

Relevant Links

Further comments

I see that this is an exact revert of https://github.com/Optum/dce/commit/6fc6d1ec760c5a8a23c27aa2886bfa6ece063114#diff-b470999e9ff9fca0d3d8e19932d813bcL118.
Whats the reason for reverting this back?

We caused an issue because lease deletion was also switching the account status.  We were always failing here because the account status was already set correctly.  I switched it back so the process would silently continue.


Grudger wins instead of the copycat

in this step copycat was supposed to win but it didn't:

The description is a bit inaccurate there: It's unlikely that the Grudgers win, but it is possible. As Nicky's description says, the two can tie when all the others are out of the game. In that scenario they behave exactly the same and always get the same scores.
The setup here always leads to 25 Cooperative and 1 Grudger peep and everything after that is randomly decided. Since it starts out 25:1 it should rarely happen that the Grudgers actually win. (For me it actually didn't seem to be possible until I made the random bits more random.)

Fixed by @audreyt https://github.com/ncase/trust/pull/28.

I've noticed similar things happening all over the place when the randomness is involved. E.g., when you tweak the level of miscommunication, between 8% and 10%, it's possible for either copycats, copykitten, or cheaters to win.


The requirements on kubectl is not very clear

The requirement on kubectl is not clear:
Kubectl with a minimum version of 1.18.1 or kubelogin
Maybe we can modify this requirement to "Kubectl with a minimum version of 1.18.1 or kubectl of lower versions with kubelogin plugin installed"

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

ID: 22a4b366-3eac-83f8-05bb-1302ce5c9235
Version Independent ID: 73a9c88b-784d-2f96-becc-14e8d751834f
Content: Use Azure AD in Azure Kubernetes Service - Azure Kubernetes Service
Content Source: articles/aks/managed-aad.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: thomasge

@DreamRivulet Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.We will update you accordingly.

@mlearned Can you please check and add your comments on this doc update request as applicable

I guess it's a question of definitions, but perhaps we should also remove the clause that says "which is consistent with the Kubernetes support policy for kubectl". As far as I am concerned, it is not consistent with that definition. But I can see there's an argument to be made that it is consistent.

I want to point out here that this causes issues for many other software, for example: https://github.com/kubeapps/kubeapps/issues/2042
Also, I think it's best that we also link to the previous issue: https://github.com/MicrosoftDocs/azure-docs/issues/61959

Thank you @DreamRivulet for the feedback.
The article has been updated to address your feedback.
#please-close


[Useless QoL] Add detection for using custom afk commands to display status in header

Adding a menu where you say which afk command you use so it knows what to listen for, and what bot to check.
Whilst checking the bot(s) of choice it will see if it's in another channel to also label you as afk there.
Depending on which bots you use, you might want to have a system to show colors or text for different bots, such as supibot having a blue icon, and pajbot instances (however these might be able to get hooked together in the client) have a green icon.
Examples
cmd: $afk
bot: supibot
#pajlada: nitrousgranola: $afk
would show an afk icon or text in #pajlada near the top, as well as in #nymn, since they share the same bot, and remove it on both headers when typing in either channel.

cmd: !afk
bots: pajbot, botnextdoor, snusbot (once the afk system is released for pb2)
#pajlada: nitrousgranola: !afk
would show an afk icon in each channel, provided that the user has specified that these bots are linked in their afk system.

this could be resolved with multiple commands and sending them to each bot's channel or whispers (beware the minimal whisper / message delay)

There is an API for checking AFK status in Supibot. That might help :)

This issue is out of scope of the Chatterino project.


Dependency jars are shipped with source

Originally reported on Google Code with ID 683

What steps will reproduce the problem?

Download source for project

What is the expected output? What do you see instead?
Currently, dependencies are shipped with Umple in the lib/ directory. Most if not all
of these could be replaced with usage of Apache Ivy and through Maven Repository.
e.g. http://mvnrepository.com/artifact/net.sf.jopt-simple/jopt-simple
This issue would be to remove the dependency jars except the bootstrapped jars from
the repository and add Ivy into the build chain.
More information:
This topic has been discussed many times. One such explanation is here:
https://code.google.com/p/umple/wiki/UCOSPLogKevinBrightwell#27_February_2015
https://code.google.com/p/umple/wiki/UCOSPLogKevinBrightwell#Proposed_bite-sized_chunks

Reported by @Nava2 on 2015-03-03 01:16:54

This was solved a long time ago.


Issues with migration

I noticed with the latest version that apparently we need to reset the migration, rather than the table being expanded with the new fields.
Could you do this for the next release(s) so I (and others) don't have to reset my entire database?
I also noticed that the application doesn't work correctly since there is no created_at field in the episodes table, which you use with the query to get recent items.
I manually fixed these in my database but a more elegant solution should be made!
Great work on this so far!

Aye, thank you! My fault with the migrations :| I had planned that before anyone made an update of flox, the database needs to be exported in the settings. After the update it can simply imported again. I will change that in next releases :)
But what do you mean with application doesn't work correctly? I don't use the created_at field in episodes nor items. I order them by id.

I run flox locally on flox.app. When I use 'last seen' as the sorting type the URL used to fetch the items is: http://www.flox.app/api/items/tv/created_at
In this case created_at is also the way eloquent tries to sort. However, the tv table doesn't have a created_at field!

You are right, sorry. I push an migration for created_at field.
I currently looking for a better method to update flox easier without git fetch or something.


Define Requirements for Smart Chatbot

Document the requirements and specifications for the smart chatbot, including user stories, features, and integration with Azure Open AI services.

Smart Chatbot Requirements
User Stories

As a user, I want to interact with the chatbot to get quick responses to my queries.
As an admin, I want to monitor the chatbot's performance and improve its responses.

Features

Natural Language Processing (NLP) for understanding user queries.
Contextual responses based on user history.
Integration with external APIs for fetching real-time data.

Integration with Azure Open AI Services

Utilize Azure Open AI for advanced NLP capabilities.
Leverage Azure's machine learning models to improve chatbot accuracy.
Ensure secure and scalable deployment using Azure services.

What do I need to install dependencies? I don't find requirements.txt. Please specify them and make a requirements.txt.

Add how to run this application into README.


Crashing upon saving

Hi there :-)
Sorry to bother you with this but I stumbled upon this flake wrapper and was wondering if you've been able to get LycheeSlicer running successfully in NixOS using your flake.
I've just about tried everything and the only thing that works out for me is to use the flathub version but that one is stuck at 6.x.x for a while now and besides that I'd rather use my home-manger/nixos config to install all packages.
I was very happy to see a fellow 3D print nerd working on this and immediately decided to try your wrapper out.  Sadly while it does install correctly it suffers the same issue as all other methods I've tried and that is that you simply can't save a .lys file without it immediately crashing.
I've seem pretty much every Linux user outside of the debian spinnoff  folks suffer from this issue and was really curious if you've managed to get it to work correctly.
In the spirit of sharing an contribution, here was my attempt at a wrapper that I used earlier. It also adds a "launcher" for your desktop manager of choice. Perhaps this is useful to add to your wrapper as well since I noticed  you didn't have any yet.
Really curious to hear from you :-) thanks a lot in advance!
{ lib, stdenv, pkgs, appimageTools, gsettings-desktop-schemas, gtk3, fetchurl, makeDesktopItem, ...}:

let
  version = "7.0.1";
  pname = "lychee-slicer";
  appImage = fetchurl {
    url = "https://mango-lychee.nyc3.cdn.digitaloceanspaces.com/LycheeSlicer-${version}.AppImage";
    sha256 = "sha256-p55PUT1z4mDCc5e7ZY+Ty1jffbkBcJ1e8OMn5s7Y7hw=";
  };
  desktopItem = makeDesktopItem {
    name = pname;
    exec = pname;
    icon = pname;
    desktopName = "Lychee Slicer";
    genericName = "3D Slicer";
    comment = "Prepare 3D models for SLA 3D printing";
    categories = [ "Graphics" "3DGraphics" ];
  };
in
appimageTools.wrapType2 {
  inherit pname version;
  src = appImage;

  profile = ''
    export LC_ALL=C.UTF-8
    export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS"
  '';

  extraPkgs = pkgs: with pkgs; [
    gsettings-desktop-schemas
    glib
    gtk3
    gnome.adwaita-icon-theme
  ] ++ (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs);

  extraInstallCommands = ''
    mkdir -p $out/share/applications
    mkdir -p $out/share/icons/hicolor/256x256/apps
    cp ${desktopItem}/share/applications/${pname}.desktop $out/share/applications/
    ln -s $out/bin/${pname} $out/share/icons/hicolor/256x256/apps/${pname}
  '';
}

Okay i tested with Ubuntu 24.04.1 LTS and installed the deb package. Same issue. There seems to be something wrong with Lychee itself.

Hi @T-Thurow  :-) thanks for taking the time to check on your side as well!
Yeah my Arch used to suffer the same issue as well. The entire Linux 3D print community already complained to Mango3D for them to look into this issue yet they refuse to do anything about it. I've personally complained about this in their Discord and provided some logs but to no avail.
It seems they like selling us the software yet want nothing to do with Linux after the sale. Pretty bad stuff. I cancelled my subscription with them because of this issue. The only way to successfully run it without crashes seems to be to use the (pretty outdated) Flatpak build on Flathub.
I've given up hope that Mango will fix things from their end so now it's time to work around them I guess. Either a VM or to see if a WINE based approach would work. Far from ideal though. Thanks for your replies and as soon as I find a proper method to run the software without the crashes I'll drop you a line here.
Have a good one!

@xblackbytesx this reaction of Mango3d is disappointing to the say the least.
But your flathub approach gave me an idea.
I tried rebuilding the flatpak with Lychee 7.1.1 (skipped 7.1.2 since it introduces bugs. At least the people on discord complain about that version).
I got 7.1.1 to work with the rebuilded flatpak without the save file bug.
I will commit a pull request to the flatpak repo tomorrow.

@T-Thurow Haha yeah I had the same plan a few weeks ago to do exactly that. However I noticed there already was a PR open to upgrade to the 7.x.x tag but it seems nobody is actively merging those in and/or looking at the PR's. But I am curious how you managed to build and install the Flatpak locally. If you don't mind sharing that I'd love to have that as a workaround as well.

@xblackbytesx The process is explained in the nix FlatPak documentation under development.
Aside from that i had to install appstream for building.  I just used it in a shell with nix-shell -p appstream.
Then to build and install locally i used
flatpak-builder --force-clean --user --install-deps-from=flathub --install _flatpak io.mango3d.LycheeSlicer.yml

inside the cloned repo.
By updating the url, sha256 and size in io.mango3d.LycheeSlicer.yml you can set which Lychee version should be used for building.


Request for code source for BERT+Hard Prompt / soft prompt

Hello,
I am carrying out few experiments on extreme multilabel classification. It would be really helpful if you could provide me a source code or detailed idea about HTC is carried out as flat classification task.
Thankyou

These two baselines can be easily implemented with our codes. Modify how the template forms and the desired output labels in lines 111-138 of train.py as well as the loss function in line 210 of models/prompt.py. Then input --graph "" as an extra argument for training to remove the graph encoder. After removing everything about hierarchy in HTC, the problem is then flat classification. The idea of applying prompt methods to multi-label classification is similar to simple multi-class classification except we do a multi-label prediction at the [MASK] spot.

Your prompt response and assistance were greatly appreciated, and I'm very thankful for your help!


Question/Guidance : how to close QuickView on Button Submit Action.

Need help in understanding how to close QuickView programmatically on submitting actions. Tried to use the quickViewNavigator.pop method though it is the only view opened in stack...  Still Quickview popup does not close until we click on the x mark?
 this.quickViewNavigator.pop();
Replace is working fine... but what I was expecting is that the pop method should close the current Quickview on calling pop method, is the assumption correct... If so it is not happening and seems a bug.
 this.quickViewNavigator.replace(SUBMITMESSAGE_REGISTRY_ID);
SPFx version - 1.14.0-beta.4
"@microsoft/sp-adaptive-card-extension-base": "1.14.0-beta.4",
Any help/insight is appreciated...!!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9e3f292b-a765-b991-94ed-2334a65e809f
Version Independent ID: ca97f687-37d4-828d-1c15-c3f4b01f1446
Content: Advanced Quick View Functionality
Content Source: docs/spfx/viva/get-started/advanced-quick-view-functionality.md
Product: sharepoint
Technology: sharepoint-framework
GitHub Login: @VesaJuvonen
Microsoft Alias: vesaj

Hi @siddharth-vaghasia , did you look at the following documentation? https://docs.microsoft.com/en-us/javascript/api/sp-adaptive-card-extension-base/quickviewnavigator?view=sp-typescript-latest#@microsoft-sp-adaptive-card-extension-base-quickviewnavigator-close-member(1)

@lucabandMSFT - thanks for the reply, and yes this worked...I think we should add this method to the actual usage documentation URL at... https://github.com/SharePoint/sp-dev-docs/blob/master/docs/spfx/viva/get-started/advanced-quick-view-functionality.md#viewnavigator
I am going to create PR for the same...
appreciate your help...


Index3d crash fix

The fix is in that commit: 7cfd04049280b4504106e150ad2370ec365b31a9
The other one (91ea9e3fc4668d5a3673f20bc2d9efa10dcefcb2) are assert and small improvements added while debugging.

/format


The icon is not correct in Rename dialog

Storage Explorer Version: 1.11.2
Build: 20191213.1
Branch: hotfix/1.11.2
Platform/OS: Windows 10/ Linux Ubuntu 18.04/macOS High Sierra
Architecture: ia32/x64
Regression From: Previous release(1.11.1)
Steps to reproduce:

Expand one storage account -> Blob Containers.
Select one blob container and right click it -> Click 'Rename'.
Check the icon in the prompt dialog.

Expect Experience:
Show  in dialog.

Actual Experience:
Show  in dialog.

More Info:

This issue also reproduces for one file share/ table.
This issue also reproduces for one file under file share.

This icon was intentionally changed.


PhantomJS 2.1.1 (Windows 8 0.0.0) ERROR during our tests run

We had our VSTS agents running gulp karma just fine for several months. Since we increased the number of tests PhamtomJS simply disconnects in the middle of our tests run.
we tried to increase karma timeouts without any results. this is the output:

Thank you in advance for some help

Please follow up with the concerned tool owners.


Windows 11 error: This app can't run on your PC

Getting following error Windows 11: Home edition

I am still on windows 10, so cant diagnose the issue rn. If anyone has a solution, please make a PR.

Maybe AV was blocking the executable. Also I tried the latest version on a VM win 11, and it worked. It just does not support custom scale, and I don't think I have the coding knowledge to make that work.


Fix for setting truncated  io.rancher.container.hostname_override when instance.name > 64 chars

When instance.name > 64, cant set hostname on the backend due to DNS segment length limit.
So truncate the instance.name value to be max 64 chars and use it to override the hostname.
An instance_name is of the format  [stack name][service name][instance number]. The fix is to retain the [instance_number] and truncate the part [stack name]_[service name] so that the full name is within 64 char limit.
https://github.com/rancher/rancher/issues/1934

@prachidamle You have some flake8 errors:
flake8 inst: /scratch/cattle.ssDzf/tests/integration/.tox/dist/CattleIntegrationTests-0.1.zip
flake8 runtests: PYTHONHASHSEED='2694103935'
flake8 runtests: commands[0] | flake8 cattletest
cattletest/core/test_svc_discovery.py:2342:80: E501 line too long (87 > 79 characters)
cattletest/core/test_svc_discovery.py:2343:80: E501 line too long (99 > 79 characters)
cattletest/core/test_svc_discovery.py:2345:80: E501 line too long (98 > 79 characters)
cattletest/core/test_svc_discovery.py:2365:80: E501 line too long (99 > 79 characters)
cattletest/core/test_svc_discovery.py:2369:1: E303 too many blank lines (3)

@ibuildthecloud Thanks, I fixed the flake8, build/test runs fine now. Can you review and pull if fine?


Enum serialization changes between 1.13.1 and 1.14.0 cause runtime issues

Could you please share a minimal repro of this issue so that we can take a closer look? A link to a GitHub repo would be great.


Improve input on Pythonista

If Pythonista is being used, the input will use console.password_alert for a slightly better experience.

Eh, I don't really want this to target Pythonista specifically, I want to make it a platform-agnostic thing. Thanks, though.


New Event Type

This pr adds support for the new event type.
This should resolved #62.

I wasn't sure how to handle the other translations - so I only added the friendly text for English.

And tested on my HA instance, looks good.


OutOfBoundsException thrown

Larastan Version: 0.7.0
--level used: 5

Description
Note: Using configuration file /phpstan.neon.
OutOfBoundsException thrown in phar://vendor/phpstan/phpstan/phpstan.phar/vendor/composer/InstalledVersions.php on line 1081 while loading bootstrap file /vendor/nunomaduro/larastan/bootstrap.php: Package "sentry/sentry" is not installed
Laravel code where the issue was found

Hi,
Please upgrade Composer to 2.0.9. I believe this will fix your error.


Some questions about nuScenes-H and streaming results

Great work towards real world applications, but I have some questions about nuScenes-H and streaming results when duplicating your work.

Many 3D detectors use history frames feature, i.e. BEVFormer. History BEV features are from 2Hz frames when training, while the frame rate is fastter in nuScenes-H. So directly applying BEVFormer into nuScenes-H results in a historical frame rate mismatch. The use of ready-made model weights will cause a loss of accuracy. Did you re-train BEVFormer on 12Hz or did you adjust the temporal interval to fit the official testing pipeline.
Using your code can not generate pkl data file to test the BEV-based method. It seems the prev and next token name does not correspond.
5 frames are interpolated between adjacent key frames, and the image data can be well matched, but the original point cloud annotation rate is 20Hz, which does not correspond.

In original paper, it states:
"Subsequently, the auto-clean is performed by an Intersection over Union (IoU) matching between the interpolated annotation and $Y_{query}$, which filters the redundant predictions in $Y_{query}$. And the left predictions are appended to the final annotations at time t."
I didn't find auto-clean operation in code, and the reproduced result is inconsistant with the paper,
The interpolated annotation is directly appended and doesn't compute intersection over Union (IoU) matching between the interpolated annotation and $Y_{query}$. Only vanish and emerging objects are taken into account. The evaluation result under this pseudo-label interpolated is not accurate. Can u explain how to reproduce the results in the paper?
    if curr_ann_rec['instance_token'] in next_inst_map:
        # If the annotated instance existed in the previous frame, interpolate center & orientation.
        next_ann_rec = next_inst_map[curr_ann_rec['instance_token']]
        # Interpolate center.
        new_translation = [np.interp(t, [t0, t1], [c0, c1]) for c0, c1 in zip(curr_ann_rec['translation'], next_ann_rec['translation'])]
        # Interpolate orientation.
        new_rotation = Quaternion.slerp(q0=Quaternion(curr_ann_rec['rotation']),
                                        q1=Quaternion(next_ann_rec['rotation']),
                                        amount=(t - t0) / (t1 - t0))
    else:
        if opts.ann_strategy == 'interp':
            continue
            elif opts.ann_strategy == 'advanced':
                selected_idx = []
                ...

                ...
                new_anns.append({
                    'token': curr_ann_rec['token'] + str(frame_idx),
                    'sample_token': new_sample_token,
                    'instance_token': curr_ann_rec['instance_token'],
                    'visibility_token': curr_ann_rec['visibility_token'],
                    'attribute_tokens': curr_ann_rec['attribute_tokens'],
                    'translation': new_translation,
                    'rotation': list(new_rotation),
                    'size': curr_ann_rec['size'],
                    'prev': new_prev,
                    'next': new_next,
                    'num_lidar_pts': curr_ann_rec['num_lidar_pts'],
                    'num_radar_pts': curr_ann_rec['num_radar_pts'],
                })


refactor: find styles when rapid-developing Angular

If you cd templates/angular, yarn, then yarn dev, the styles didn't load without this, because Angular by default doesn't follow symlinks

@faragly does this seem sensible to you?

@chadoh Unfortunately, I didn't start the project this way, preserveSymlinks: true in the architect.build.options object solve the problem.


Global option's value is empty when command is specified

Global option's value is always empty when command is specified in command line.
In command line, if sync is specified as command
./dispatcher --key="value" sync

I cannot get "value" via ctx.String("key")
but
./dispatcher --key="value"

it works.
Code like
    app.Flags = []cli.Flag{
        cli.StringFlag{Name: "key", Value: "foo"},
    }

    app.Commands = []cli.Command{
        {
            Name:    "sync",
            Aliases: []string{"s"},
            Usage:   "Sync",
            Action:  SyncAction,
        },
        {
            Name:    "another",
            Usage:   "Another",
            Action:  AnotherAction,
        },
    }

    app.Action = SyncAction

Any idea please?

Have you tried
key:=ctx.GlobalString("key")


Review new guide content

Contributions

[ ] I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/guides/dbt-ecosystem/dbt-python-snowpark/1-overview-dbt-python-snowpark
What part(s) of the page would you like to see updated?
@hope-wat wrote an awesome guide and @nghi-ly helped her get it onto the docs site. It would be nice to loop back and give the guide a thorough Docs review so we can provide a more predictable reading experience for our users, reducing their cognitive load.
For example, we might combine the content in "What you need to know" and "What you'll use during the lab" into a Prerequisites section to align with other similar guides.
Additional information
No response

It is but I don't see us having time to do this any time soon. Adding icebox label and closing.


Fix reference to html entities

See explanation in https://github.com/w3c/webvtt.js/issues/35

@dontcallmedom Thanks, will there be a new release?

2.2.0 now out - thanks for the ping :)


Feat Code QL Analysis

Fix https://github.com/appwrite/appwrite/issues/4372

When running the composer check it found 53 more errors. Can you please address those too? 🙏

Hi @Meldiron I tried to remove the error but i am not able to ... can you pleas give me some tips or reference?

Hi @Meldiron I resolved error till Level 6
For level 7 and 8 - I tried to fixed it but i couldn't fixed it !!

Thank you so much for the PR 🤩. We're adding the hacktoberfest-accepted label to ensure this PR counts towards your Hacktoberfest contributions count. With that said, please stay active on this PR to address any comments once you receive a review. Happy Hacktoberfest! 🎃

THANK YOU! All changes merged 🥳
Please reach out to me on our Discord server if you would like to claim your Appwrite swags! As a way of saying thank you, we would also love to invite you to join the Appwrite organization on GitHub. Please share your GitHub username with us on Discord.
You can accept the invite by visiting https://github.com/orgs/appwrite/invitation. By joining our team, you will officially be an Appwrite maintainer on GitHub.
You can change your membership visibility settings, so your new Appwrite team membership badge will show up on your personal GitHub profile.
Please feel free to look for more PRs you might be interested in helping with on our long list of Hacktoberfest friendly issues and help make Appwrite better :)


Describe code and data segment in ELF header seperately

@ChristianMoesl Awesome! Thanks a lot! There is just a segfault in the 32-bit build. Can you check?

@ckirsch I fixed it. I somehow thought, the ELF32 and ELF64 program headers are exactly the same. Turns out, they are not :)

@ChristianMoesl still failing with a segfault.

@ckirsch Well that was kind of painful to debug. There is a crazy assumption in the x86-translater. The translator only modifies the existing ELF header in memory, as opposed to just create one on it's own. That was probably not a good idea.
Took me hours to debug, because I though there is something wrong in the x86-translation process itself. (Since there are  now padding bytes between the code and the data segment in binary).

@ChristianMoesl My apologies. I forgot that there is this x86 translator which is unfortunately a bit of a hack. It also just occurred to me that there are dependencies in modeler but I will take care of them. I will also polish your code, probably tomorrow, and maybe inline the encode_elf_program_header procedure for better readability, despite code duplication.

@ckirsch  Perfect, thanks! Didn't mean to be rude. 😅


CREATE FULLTEXT CATALOG statement cannot be used inside a user transaction

Which version and edition of Flyway are you using?
Flyway Community Edition 5.2.4 by Boxfuse
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
MS SQL Server Express 14.0.3015
Which operating system are you using?
Windows 10
What did you do?
create script file with content
CREATE FULLTEXT CATALOG comments_catalog;
run command
flyway migrate
What did you expect to see?
Script executed without errors.
What did you see instead?
ERROR:
Migration V11__CommentsIndex.sql failed
-----------------------------------------
SQL State  : S0000
Error Code : 574
Message    : CREATE FULLTEXT CATALOG statement cannot be used inside a user transaction.
Location   : ...\sql\V11__CommentsIndex.sql (...\sql\V11__CommentsIndex.sql)
Line       : 1
Statement  :
CREATE FULLTEXT CATALOG comments_catalog;

Thanks for reporting. Fixed.


MD Toolbar height weird

Please check my site:
https://pages.corifeus.tk/
When you size the browser width with a toolbar, it is correct, instead about the middle width it becomes too small.
Like toolbar:
width  ~1920 - toolbar height = X
width ~889 toolbar height = 0.8 * X
width ~785 toolbar height = X
It should be the same, except maybe when width < 600.
Widest, height correct:

Middle, height it too narrow:

Narrow, height is correct:

critical error:
@media (max-width: 960px) and (orientation: landscape) {
 .mat-toolbar {
     min-height: 48px;
 }
}

// Set the default height for the toolbar.
@include mat-toolbar-height($mat-toolbar-height-desktop);

You can see from #2157 that those numbers are coming from the Material spec for app bars.

Default heights:
Mobile Landscape: 48dp
Mobile Portrait: 56dp
Tablet/Desktop: 64dp

ciao, chrome debian is not mobile landscape. still it changes the toolbar height.

sent you 3 screenshots. they all desktop landscape. still it shrinks like it is a mobile landscape.

sorry i sent  you mobile screenshot, i send you a new 3 shots. same bug. sorry.

Still it is the first one is once like this height, then smaller, then the first again, werid!!!
CIAO!
Full HD, toolbar as expected:

Resize browser, about middle , it is wrong, too small:

I bit smaller resize, now the toolbar height is correct:

Ahh it looks like this might have been fixed by #3312, which will be included in the next release.

cool, thanks so much.


chore(master): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2023-02-05)
Features

improve (322783c)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/igar1991/swarm-search/releases/tag/v1.0.0 :sunflower:


Out-RsRestCatalogItem - pbix not refreshed

bug
running powershell script to connect and download latest pbix file using Out-RsRestCatalogItem
the report(s) in question are updated daily
export works fine - however, the data in the pbix file seem to be only updated as of the last upload
the data in the pbix file is expected to be refreshed as of the last successful refresh on the Power BI Report Server
not sure what previous behavior was
am hoping that the pbix file is updated along w/ the backend ssas that is running.  the intent is to download the latest pbix file, export to csv.

It is the behavior of the server, the pbix file (same than rdl) reflects the initial upload state


Thank you

Thank you so much for working on ybe issues soon it back up and running I will be donating again 🙂

Thank you so much for working on ybe issues soon it back up and running I will be donating again 🙂

On**


Unregister components

Hi! I'm using MDL with Backbone.
Can anybody help me to unregister all components that associated with bacbone view before removing this view?
P.S. i use componentsHandler.upgradeDom(); after rendering view. Is that right?

Yes I do believe you can back-up all and download to a secure location, to keep all your information safe, after you complete this action then uninstall what is needed, keep file on flash drive, or sd card when needed reinstall

@chrisarno76 , you mistake with theme?

I think the downgrade event is disabled, see: https://github.com/google/material-design-lite/blob/master/src/mdlComponentHandler.js#L352
The custom event mdl-componentdowngraded is not triggered. Maybe you can call componentHandler.downgradeElements method to unregister? BTW none of the MDL components have an attached unregister method, as far as I can see - so there should be no need to unregister (?).

@leifoolsen
To call componentHandler.downgradeElements i need the list of components to downgrade and i don't know how to get them.
For example i have Backbone view, that render some table with checkboxes. After rendering this view i use componentsHandler.upgradeDom(); to register all checheckboxes in table.
All registered components will be pused to array "createdComponents_".
Then i remove this Backbone view and render it again. But after rerender in createdComponents_ array will be added all checkbox components again and old components (that was removed from DOM) stay in this array. So createdComponents_ become bigger and bigger. And i think that listeners for removed checkboxes (in my example) not removed too.

Try something like this:
var elements = document.querySelctorAll('#my-container ["data-upgraded"]);
componentHandler.downgradeElements(elements);

Note: I have not tested the CSS query - so it may not be syntactically correct.

@leifoolsen
But you shold pass MDL component object to componentHandler.downgradeElements(), but not DOM element

Downgrade either a given node, an array of nodes, or a NodeList.
 /**
   * @param {!Node|!Array<!Node>|!NodeList} nodes The list of nodes.
   */
  function downgradeNodesInternal(nodes) {
....

@leifoolsen
Jh, sorry, i make some changes in material.js and forget about it =)
Now all works good, thank you!

Please use StackOverflow for support and integration assistance. This tracker is only for problems with the code provided by Material Design Lite.
Thank you.


Add visual test for CAAS

https://jira.corp.adobe.com/browse/MWPW-138941

add one common method take screenshot for two urls and compare them result
add tests for caas team

@amauch-adobe @skumar09 any suggestion?

@skumar09 @amauch-adobe I updated reporter in visual.config.js according to santosh's guide, we should be good now


Seconds support for w2utils.isTime

Cool. There is a set of unit tests in /qa folder. It does not cover everything, but isTime is there. Please check if it still works and add unit tests for seconds.


Incorrect output on latest Windows 11 dev build

Description
Running neofetch on the latest dev insider build of Windows 11 returns the OS as Windows (Unknown) x86_64 and defaults to the Windows 7 ASCII Art.
Does this issue still occur in the master branch? (Required if issue)
Yes
Neofetch version
7.1.0
Screenshot

Config file
Default, no changes made.
Verbose log
Uploaded to ControlC

It seems Windows 11's logo isn't in neofetch yet. I tried neofetch --ascii_distro Windows11 and got the same thing. (I'm on neofetch 7.1.0-2 on Arch)

It seems Windows 11's logo isn't in neofetch yet. I tried neofetch --ascii_distro Windows11 and got the same thing. (I'm on neofetch 7.1.0-2 on Arch)

yep no logo and no recognition of the few ppl who installed neofetch onto Win11 Using Scoop

On closer inspection, it seems to be because neofetch tries to use WMIC, when that has been long deprecated and deleted from Windows.


Prep for broader release

I'm updating the README and docker-compose.yml to provide general instructions for use.  One of the changes will be to rename the mysql bind mount from "glpc-mysql-data" to just "mysql-data" which may impact any existing dev instances you have, so I'm formulating this as a PR rather than a direct commit.

I have no existing dev instances, so I'm going to go ahead and merge the pull request and close.


Consider using Yarn?

https://yarnpkg.com/
It's a project from Google, Facebook and co to  provide a much more reliable experience for JS package resolution and reproducibility. In particular it seems to handle dependency locking in a more sensible way (e.g. updating its lock file when you update and add deps rather than waiting for you to do it manually).
Furthermore it claims to be much faster and have caching that actually works properly.
Yes... new week, new JS project; this seems worth checking out, though.

Yeah this is being used in another project at RH. I've heard good things about it but haven't checked it out in depth.

I gave it a quick test out yesterday. Seems to work well. To migrate you just type yarn and it seems to be able to figure everything out.

Cool - and thanks for opening an Issue for this so we don't lose track of it.  We should do that more often for stuff like this.

Just to update. Yarn works without hitch and is much quicker to resolve deps (10s vs 40s on my machine) - it produces a dependency lock file which can (and should) be added to the repo to ensure everyone is using the same deps and transitives.
Yarn uses the same backend as node, and is pretty much a drop-in replacement, but it behaves better.
It also works properly in offline environments without needing proxy hacks https://yarnpkg.com/blog/2016/11/24/offline-mirror/ which should be useful for prod.
I don't think there's any rush to move over, but just providing some additional information as I've gained a bit more experience using it.

Just wanted to comment on here and say that I've had a positive experience with Yarn and recommend switching over (obviously not sure what the priorities are). Then again I never had night terrors with NPM either, except for the offline proxy hassle, transitional errors, and crappy shrinkwrapping- all of which Yarn seem to solve. It also works well with angular-cli, which is great for getting AOT and lazy loading to play well together. Would be happy to help if it's decided to go that route.

Done! :)


Nobody wants to declare war

Nobody wants to declare war. At the start of the game, each faction has 1 enemy faction. In a few days they will all reconcile and there will never be any more wars. All lords refuse to support the start of the war (maximum 3% support). Checked on two saves.
Used mods: RBM, Improved Garrisons, De Re Military.
Game version 1.1.3
Mod version <IP_ADDRESS>-2

[+] The mod is present in the callstack;
[+] The issue only happens with the mod activated;
[ ] You tested it with the least amount of other mods as possible.

I have the same problem. In 3 years of in-game time I've only gotten some ocasional wars between the Northern Empire/West Empirer and Strugia, the other factions are just happily enjoying the peace.

same, I also use diplomacy and War and AI Tweaks (UPDATED)

+1 I use diplomacy and Improved Garrisons and Distinguished Service.

same here and i also use War and AI Tweaks

same here.. 1.1.5..

guys, has something changed in <IP_ADDRESS> (<IP_ADDRESS>-1)?
gonna install better time to check (https://www.nexusmods.com/mountandblade2bannerlord/mods/2849?tab=files)


Custom strategy persistent storage

This question is inspired by another question on how to prevent short below last long. While it was clear, it will not work after gekko restart since last strategy saved price is never stored persistently and after restart it may result to undesired short or in some cases to prevent any trades (depending on the strategy). Much better if gekko saves its state on exit and resumes on restart.
How can I implement a persistent storage for a custom strat to save such values? I mean not reinventing the wheel and reusing existing framework.
Things to consider:

there may be few instances of custom strategy running in few gekkos on different pairs;
it should persist when trading but probably should not when backtesting for obvious reasons.

PS. This probably may also be used when writing a strategy with portfolio management when you split the portfolio into some peaces and track each one. I did not thing about that yet, but it might be useful.

I am wondering, do you really want to only short (sell at the moment) after a certain price? That would lock you into the asset in case of a crash.

Anyway, there are two ways of solving this problem:
Option 1: use the warmup period to recalculate
When you start gekko it will first go through a warmup period where it will not ask the strat for advice (by executing the check method in your strat). Read the details for that in #515) You could move all logic to the update method of your strat (except for the logic that actually calls this.advice). That way when the strat comes out of warmup it should already have the state required.
Option 2: save state in file
(this is very hacky). You can create a very simple script that will on load pull state out of a json file (for example), and on every update of the state write it back. You can conditionally do this (only if this is NOT a backtest) by calling the following in your method:
var mode = var config = require('../core/util.js').getMode();
// mode is realtime when not backtesting

Let me know if you need help with either one.

I am closing this for now as I don't think it's a general issue (very specific), but feel free to keep replying anyway.

Locking into asset is an issue, but it depends on the strategy. In some cases it might still be useful to set a soft limit and keep asset for some time, selling it only if price crashes below. I assume that crashes are rare comparing to usual pumps and dumps, at least, if you trade cryptocurrencies, not BTC_USD pair that is more or less stable and slow.
Assume an example from yesterday: ETC/BTC was pumped. Since gekko is not an instant buy robot, it missed it using MACD and bought by an average pump price. Then price slowly goes down, MACD does not detect it. And it will finally sell ETC when price is far below last long. I want to prevent this behaviour since it is better (for me now) to keep it instead of dumping it. Or maybe sell it when current price approaches the last long going down. But of course I am not a trader, I am hobbyist, so it does not matter as far as I can implement own ideas. And the idea is to keep reference to the last long to do something (or maybe last few orders from orderbook to use in a strategy). Actually, it is not my only issue, it directly follows #502.
I thought about Option 2 but using a well-defined API to save persistent data and not thinking in terms of files or databases to use. I can write any script of course, but the idea was to provide such option out of the box using, for example, the same database provider as gekko uses, or at least a predefined (preconfigured) file name and options to deal with few instances.

Since gekko is not an instant buy robot, it missed it using MACD and bought by an average pump price. Then price slowly goes down, MACD does not detect it.

Note that MACD is only a very simple strat that comes with Gekko, it is highly recommended that you use your own strats with (potentially) different indicators. MACD only tries to detect trends, and will most likely perform poorly when:

Assume an example from yesterday: ETC/BTC was pumped.

There are also a few other ones that come with Gekko (check the methods directory).

I thought about Option 2 but using a well-defined API to save persistent data and not thinking in terms of files or databases to use.

So another thing is: Gekko is not supposed to crash, if it crashes a lot for you we should maybe focus on improving stability?
Regardless, I'm open to adding something to Gekko that is able to get/set state from an adapter (database). However I won't have time for this for quite a while.

To be clear: I do not expect from gekko to make me rich. At least not out of the box. So I am not a person who will ask how to use it since it doesn't have GUI.
I know that there are other strats, and at the moment I am playing with my own. As I said, I have no experience with trading, so wanted to use gekko as a playground framework. Some time ago I read this paper, and thought about implementing it from scratch. AFAIK it cannot be done with gekko now since it requires some portfolio management to keep tracks of few orders.
I did not say that it (the software) crashes for me, I said that I may want to restart it in case of changes in strategy and/or options since it cannot update config dynamically. It should not be every day event, but it is possible.
Finally, I did not expect from you to write anything I may want :)  I only posted it here as a feature request/idea to consider. I can stay with what exists and add anything I need. But I thought that it is better to discuss it with the author first, and implement or hack last, rather than duplicate efforts and spend time to tasks incompatible with the main development.

I said that I may want to restart it in case of changes in strategy and/or options since it cannot update config dynamically.

You're right, my bad.

I only posted it here as a feature request/idea to consider.

I'm glad you did! It's a very interesting idea and brings forward a problem I did not consider before (state in strats as opposed to dumb / pure strats). I'm sure eventually I'll run into this problem and have to really think on how to fix this properly as I haven't yet (when I do, I'll reopen this issue).
If you want to hack option 2 together and run into anything let me know!


Using supabaseClient for auth.update won't update useUser() object

I am trying to update a user password and metadata like so:
import { supabaseClient } from '@supabase/supabase-auth-helpers/nextjs';
.....
.....

const { user, error } = await supabaseClient.auth.update({
    ...(new_password && { password: new_password }),
    data: {
      name,
      family_name,
      phone_number,
    },
  });

I can confirm that the database gets updated, however the user object from useUser() won't get updated until I log out and log back in.
As a workaround I trigger a:
await supabaseClient.auth.refreshSession();

in order to update the user's info but I was expecting I would not need to.
Also, using supabase client from @supabase/supabase-js won't work as does not identify the user as logged in.
Please advise on what would be the right way to do a user update.
Cheers.

By default the user object is cached in the cookie. To force and update you need to call getUser().


Plant Doctor

It helps Gardners grow their plants and offers visual aids if needed.
https://chat.openai.com/g/g-Kk2PHw8oQ-plant-doctor

Addressed in PR#9


input_grayscale_image_pyramid?

Does CNN behave better on coloured images than on grayscale?

Yes, in many applications color is useful.  Although sometimes it obviously
doesn't matter.  So there isn't any reason why there couldn't be a
grayscale version of the input layer.

So the only practical reason to make input_grayscale_image_pyramid would be to safe performance?

Right.

Thank you very much for clarifying that


fixed a terrible run on sentence

fixed a run on sentence

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

fixed a run on sentence

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.


[WIP] Client advertisements and message publishing

Public-Facing Changes

WebSocket clients can advertise topics and publish messages to their advertised topics

Description
This supports the clientPublish capability, including advertising/unadvertising/publishing for ROS 1 and ROS 2.

There is still something wrong with ros2 publishing.
I tested it with https://github.com/foxglove/ws-protocol/pull/284 and ros2 topic echo /chatter repeatedly gives the following output:
1669316300.717228 [0]     recvUC: malformed packet received from vendor 1.16 state parse:data <52545053 02010110 011022a7 0df507c2 49c53cbc 09010800 ccbe7f63 cadb8bb7 @0x20 15051400 00001000 00000000 032c0000 00000000 13000000 07011c00 00000000> (note: maybe partially bswap'd) {{15,5,20},0,16,0,2c03,19}


[WIP] Command plugin to accept input with aliased keys

This PR adds an :alias command plugin that allows to use the alias for aliased attributes as input keys:
class User < ROM::Relations[:sql]
  schema(infer: true) do
    attribute :first_name, Types::String.meta(alias: name)
  end
end

class CreateUser < ROM::Commands::Create[:sql]
  result :one
  use :alias
end

result = rom.command(:user).create.call(name: 'Jane')
result[:first_name]  #=> 'Jane'

In my view, this can fix the current asymmetry between reading/writing data to/from the datastore. Now, when you configure an alias for an attribute, reading methods (like #first or #to_a), automatically perform the configured translation and return keys with the aliased names. However, when the user comes back to the engine with a command, that automation is lost and the "unwrapping" translation has to be handled manually. I see it as an abstraction leak, where the application level suddenly must be aware of canonical names (besides schema configuration, of course).
The good news are that it should be 100% backwards compatible, because commands using :alias plugin would still accept the canonical names as keys. So what do you think about activating this plugin by default? We could just check whether the schema has any alias at all and, if not, do not enter the tuple iteration for better performance.
In my limited knowledge of rom behaviour, I'm not sure if it is needed to test the plugin for different command scenarios. If so, please tell me.
Tests and documentation must be updated if #512 is merged.
Thanks.
Resources

Original discussion

@waiting-for-dev I'm sorry but I won't be able to work on finalizing this for 5.0.0 but we can pick it up quickly right after 5.0.0 is released.

No worries @solnic . In the meantime I'm using a custom plugin in my project. However, let me know anything I can do.

@waiting-for-dev 👋 would you like to wrap this up for 5.1.0 release?

@solnic for now I rebased to master and adapted it to work with alias now being an option and not part of the meta.
But I think we have to give it some thoughts before merging.
Related to #524 , maybe we can 100% hide original database field names in the schema layer. If we make #[] not recognize original names which has been aliased, I think the command plugin defined here should neither recognize them. For the same reason, I think this plugin should be activated by default or even not being a plugin but part of the core behavior.
What do you think?

 Command plugin to accept input with aliased keys

FYI we'll be releasing 5.2.0 with the primary goal to support ruby 2.7 and there's no time to finish this one for that release. I scheduled it to be included in 6.0.0 release instead.

I'm gonna close this because it needs more thinking/discussions. ie at the moment I think it should be a built-in behavior, we can apply mapping if there are aliased attributes automatically. I'll start an alias-related thread on the forum to discuss how to approach aliasing in 6.0.0.


downcast before saving batch

we've done this in a few places before uploading to Galileo, but we still write the batches to disk. This can really add up (f64 embeddings are huge).
Safely always downcast before writing to disk

Codecov Report

Merging #700 (e2b84b9) into main (deff792) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
- Coverage   89.50%   89.46%   -0.04%
==========================================
  Files         166      166
  Lines       13241    13241
==========================================
- Hits        11851    11846       -5
- Misses       1390     1395       +5

Impacted Files
Coverage Δ

...aquality/loggers/model_logger/base_model_logger.py
91.07% <100.00%> (+0.78%)
:arrow_up:

... and 7 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


ERROR on import..

Just the simple act of importing imputs generates this error..
any ideas?
 Traceback (most recent call last):
  File "test.py", line 27, in <module>
    from inputs import devices
  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3652, in <module>
    devices = DeviceManager()  # pylint: disable=invalid-name

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3188, in __init__
    self._post_init()

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3197, in _post_init
    self._find_devices()

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3346, in _find_devices
    self._find_by('id')

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3354, in _find_by
    self._parse_device_path(device_path)

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 3241, in _parse_device_path
    char_path_override))

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 2403, in __init__
    self._set_name()

  File "/home/koos/.local/lib/python3.6/site-packages/inputs.py", line 2417, in _set_name
    self.get_char_name()) as name_file:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/input/event28/device/name'

The issue is that certain devices where disconnected, but still remained in the /sys/class/input events.
I added a simple try-except clause around iterating devices and it fixed the problem... I will create a pull request.
thanks.


Add getmininginfo call

Let me know if I miss something. Not tested!

Fully tested and working! It's my first PR so let me know if I miss something. I'm mostly setup for testing changes now, next time I will probably do my coding and testing before pushing the PR. One thing that can be improved is adding a send_to_stats_node function in sendtobitcoinnode.sh not including wallets specifics for stats call.  But since it's affect all stats call, a separate PR would be better. Let me know what you think!

Updated to solve v0.8.0 conflicts. Tested and working.