Questions for CategoricalCELoss

Hi guys,
I would like to ask you some questions. I am trying to train a UNet model with a ResNet encoder (exactly like the one that you provide in the jupyter notebook example) to semantically segment my images. My images have 2 or more classes (I want to use the same model more just once -- solve different problems).
 I don't need that, so I commented that out. Will this affect any connected functionality?
Furthermore, I would to use categorical_crossentropy_loss. Should I try to one-hot-encode my labels? Is there something that I need to do to make your example work properly with this loss function? How can I call this function using your sm.losses?
Thank you for your help. I think that they are relatively easy questions and that you will answer them right away. Have a nice day!

I don't need that, so I commented that out. Will this affect any connected functionality?
In datasets where there are some pixels left unlabeled, adding a background class serves as a sort of catch-all for objects in the image that you don't care about. For example, all objects within the scene that were not the three classes that were specified all get grouped into a single class. If every single pixel in your dataset is labelled, then having a background class isn't necessary.
Should I try to one-hot-encode my labels?
Yes. You need to one-hot-encode them to work with Keras regardless of the loss function you use. To make things easy, you should have your masks in the format of (H, W, C), where C is the number of channels and is equal to one, and where each index within the channel is some value from 0 to N, the number of classes you are concerned about. Once in this format, you can save use keras.utils.to_categorical to create a one-hot-encoded mask for training.
To use the loss function, you can do something like:
my_loss_function = sm.losses.Categorical_Cross_Entropy(class_weights = my_class_weights)
...
model.compile(loss = my_loss_function, optimization = keras.optimizers.Adam(), metrics = ['accuracy'])

Hope that helps!

Let's assume that I have three classes. Background, class A and class B. Basically, I need to identify every pixel that belongs to class A and class B and the rest will be classified as background. What kind of weights should I use for class A and B? Is this a custom implementation of the Keras cross_entropy_loss with weights?
Furthermore, what kind of metrics and callbacks do you suggest that I should use for this case? How will the choice of metrics affect the training of the model? Do you use Learning Reduce on Plateu callback?
Thanks for your advice.

Weights as in class weights: you could try to calculate the frequency of each class based on the amount of pixels for each class per image within the training dataset and then pass that ratio to the loss function you're using. This is useful in situations where the classes are imbalanced. So if the vast majority of pixels in each image belong to background, then it will have a lower weight to it than the other classes.
You can use sm.losses which is custom and it allows you to pass in a list representing the class weights. There are also other useful losses like focal and dice.
Metrics will only tell you how good your model is doing during training and validation, it doesn't necessarily affect the results of the model itself. If you change the loss function though, the model itself will be altered. But if you're working on a multi-class classification, any of the categorical loss functions are your best bet.
Callbacks are useful, I used both Model Checkpoint and ReduceLR, it's really up to you. Try training and get a feel for when overfitting occurs and then set up ReduceLR based on that. Try different optimizers as well. SGD is standard but I find Adam converges more quickly.
The metrics provided by this repo will give you the scores globally (averaged across each class), but you can find or create your own metrics that only look at each class or simply just zero-out the pixels for the classes you don't care about.

Yes. You need to one-hot-encode them to work with Keras regardless of the loss function you use. To make things easy, you should have your masks in the format of (H, W, C), where C is the number of channels and is equal to one, and where each index within the channel is some value from 0 to N, the number of classes you are concerned about. Once in this format, you can use keras.utils.to_categorical to create a one-hot-encoded mask for training.

Hi again. I used your segmentation suite quite a lot and it's working properly. Do I really need to do a one-hot-encoding? It seems that your example contains a functionality that already converts the input masks to a H,W,C format and then training runs properly.

Hi again. I used your segmentation suite quite a lot and it's working properly. Do I really need to do a one-hot-encoding? It seems that your example contains a functionality that already converts the input masks to a H,W,C format and then training runs properly.

If your masks are already in the format H, W, C, where C is equal to the number of classes you're training, and each one is composed of 0's and 1's signifying where that class is present within the channel, then you don't need to one-hot-encode them, because they're already in the correct format.
Depending on how you create masks originally, to_categorical() can be used to put them in one-hot-encoded form if they aren't already.
If what you're doing is working, then they are already in the correct format.

class_weights should be a list or numpy array ?


Typescript usage

Is there any plan to provide Typescript project support to this project?

PRs are welcome!

Fixed in #16

Merged. Thanks @karlos1337


Refactor Syncable_ledger and add comments

I cleaned up some weird stuff and confusing names, and added a bunch of doc
comments on stuff that was confusing. I also changed it so the pipe of sync
query responses includes the associated queries. This prevents peers from
answering questions we didn't ask, and lets me remove data from the responses
that is contained in the associated queries.
Checklist:

[ ] Tests were added for the new behavior
[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

Oops, that's from a bad merge, I didn't mean to change it.
On Tue, Mar 19, 2019, 9:43 AM John Wu<EMAIL_ADDRESS>wrote:

@johnwu93 commented on this pull request.
In src/lib/syncable_ledger/syncable_ledger.ml
https://github.com/CodaProtocol/coda/pull/1924#discussion_r266988204:

   expect_content t addr exp_hash ;

 Linear_pipe.write_without_pushback_if_open t.queries

 Linear_pipe.write_without_pushback t.queries

Yes, please change back to write_without_pushback_if_open
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CodaProtocol/coda/pull/1924#discussion_r266988204,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADwTWIaSmItO49cLh6txXt_-Nt-Fvoaks5vYROogaJpZM4b7Eh-
.

fixed the pipe thing, removed a now-unused type parameter and merged in changes from master


Popup Displays Underneath Open Sheet Instead of On Top

Hello, I've been using your excellent library, and it works very well. However, I've encountered an issue: when I am in a sheet and try to display a Popup, it opens underneath the currently open sheet, whereas I would like it to appear on top. I hope you can find a solution to this problem.

hey @elriando,
We are aware of this problem, but unfortunately I doubt I will be able to provide a solution without refactoring the whole library (which I plan to do, but once I have finished gathering all the feedback on features that might be good to include in the 'final' product).
Here you can find an explanation of why this is impossible with the current architecture - https://github.com/Mijick/PopupView/issues/77#issuecomment-1998549280.
As a workaround, I would suggest replacing the sheet with our BottomPopup, which provides roughly the same functionality as Apple's native sheet.
Sorry again, but when I was designing this library, I assumed it would completely replace the Apple's sheets, alerts, etc. and that's why it works like this 😉
Have a great evening and feel free to ask if you have any further questions!


autoimports checks for merged parent if symbol parent is not found

This adds a check to importFixes/autoimports that finds the parent if symbol.parent does not exist.
When merging symbols that are exported through export lists and then augmented in module augmentations (for example, interfaces), the merged symbol does not have a parent. The augmentations work correctly with the merged symbols not having parents. Since the parent is not needed for typechecking and seems to only be needed in this case of autoimports, we will save memory by continuing to not set .parent. (we can revisit this if we see .parent is needed elsewhere in the future).
Fixes #58907
Closes #58965 (more info in comment)
(the aliased case mentioned here still crashes but because of a different autoimports bug, so opened up a new issue: #59583)

closed by https://github.com/microsoft/TypeScript/pull/59609


Query watcher re-emitting old value after caches are cleared

I'm facing some weird behavior, which I'm not even sure if it's a bug or intended behavior. If the second, I'm curious what's the reasoning.
I have two different queries, and (probably related) each of them contains objects of the same types: QueryOne fetches [A] and [B], and QueryTwo also fetches [A] and [B]. What I'm doing then is I:

watch QueryOne
clear caches (HTTP cache and normalized cache)
watch QueryTwo

On the third step, when watching QueryTwo, the first watcher for QueryOne emits again, with the previous data. This is pretty, because it happens even when there are no common items between both queries. In particular it happens when all the returned lists in both queries are empty.
Is this simply lack of optimization, or a bug? Previously I expected that QueryOne might emit again if QueryTwo actually updates some object returned by QueryOne, but with empty lists I'm not so sure. Might it be because both queries return the same root, under which [A] and [B] are then nested?
Sorry for unclear example, but as usual this happens with our production schema which I'm not sure I can share :\
This is with Apollo 1.2.3

Each query watchers internally builds set that called dependentKeys (com.apollographql.apollo.api.Response#dependentKeys). These are keys that will trigger any query watcher when some other query touched them
The behaviour you see is totally legit as seems like in your example QueryOne  and QueryTwo  have intersection of dependentKeys. Means when you trigger second query it will first fetch data from server, put to cache, and that will trigger QueryOne watcher to refetch (when query writes to cache it notifies what cache keys were modified to trigger watchers to referesh)

I expected something like this. So is this also what's happening when both queries return empty lists? Since in that case none of the returned objects (in both queries) even have an ID for the normalized cache, so I'd expect the first query to actually never emit again. Unless the top-level common object (also without an ID) triggers this new emission as well. Only if this happens, we'd be emitting unnecessarily all the time :/

https://github.com/apollographql/apollo-android/blob/master/apollo-runtime/src/main/java/com/apollographql/apollo/internal/RealApolloQueryWatcher.java#L40
Yeah and this behaviour was added after fixing this issue  https://github.com/apollographql/apollo-android/issues/822


SMS add response to user replies

@gsvr ReViEw PlEaSe

@NicolaasDieBaas First pass done.

@gsvr plz review.  You'll note that that one fixture is still in there... utils.subscription_unsubscribe_all does a GET request with a subscription url using msisdn as parameter

@gsvr would like to discuss how opting-out via sms needs to look like after all the recent work done on opt-out functionality for ussd/voice public...

:+1:


fix Rakefile

What problem does this fix?  It breaks tests on Travis CI: NameError: uninitialized constant RSpec.

@mainej I don't know why the CI failed, but my local master branch, whoes rake command failed with the  follow:
mic@mbp: ~/vm/LicenseFinder$ git last
commit fefa5da91ba95160d962a254c7a38cb3b8458176
Author: Jacob Maine<EMAIL_ADDRESS>Date:   Tue Jul 28 21:36:28 2015 -0700

    document potentially dead code

mic@mbp: ~/vm/LicenseFinder$ rake
rake aborted!
LoadError: cannot load such file -- rspec/core/rake_task
/Users/mic/vm/LicenseFinder/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

mic@mbp: ~/vm/LicenseFinder$ git br
  fix-rakefile
* master

And I can't find the file path: require 'rspec/core/rake_task', so remove it to check package managers.

Weird. I can't merge this, because it breaks CI and doesn't work locally on my machine.  But I can try to help... What's your load path?  You can find it if you put puts $LOAD_PATH near the top of your Rakefile.

mic@ubuntu:~/vm/LicenseFinder$ git remote -v
origin	https://github.com/PCF-License/LicenseFinder.git (fetch)
origin	https://github.com/PCF-License/LicenseFinder.git (push)
mic@ubuntu:~/vm/LicenseFinder$ rake
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/x86_64-linux
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/vendor_ruby/2.2.0
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/vendor_ruby/2.2.0/x86_64-linux
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/vendor_ruby
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/x86_64-linux
checking dev dependency for Maven ... missing `mvn`
checking dev dependency for NPM ... missing `npm`
checking dev dependency for Pip ... OK
checking dev dependency for Gradle ... missing `gradle`
checking dev dependency for Bower ... missing `bower`
checking dev dependency for Rebar ... missing `rebar`
checking dev dependency for Go ... missing `godep`

Looks like gems aren't being put on your loadpath.  Will you try replacing require 'rspec/core/rake_task', and running with bundle exec rake?  If that works, you can configure RVM so it doesn't need you to run bundle exec before everything.

I am sorry for mistaking require

No problem - I hope that fixed things!


Name a connection

Sorry for yet another question, maybe you should open a matrix.org room 😅.
Is it possible to explicitely name a connection, instead of the autogenerated name that depends on the returned struct?
As an example:
This Rust code
pub type EntityConnection = Connection<usize, Option<Entity>, EntityConnectionFields, EmptyFields>

#[derive(SimpleObject, Debug)]
pub struct EntityConnectionFields {
    pub total_count: i32
}

pub type SomethingElseConnection = Connection<usize, Option<Entity>, SomethingElseConnection, EmptyFields>

#[derive(SimpleObject, Debug)]
pub struct SomethingElseConnectionFields {
    pub total_count: i32
}

will result in
type EntityConnection {
	pageInfo: PageInfo!
	edges: [EntityEdge]
	totalCount: Int!
}

type EntityEdge {
	node: Entity!
	cursor: String!
}

This means, that rust connections with the same return type and the same fields on the connection, result in the same SDL connection, which is named after the returned rust type. This results in a problem, if have differently named fields on the ...ConnectionFields struct.
This Rust code
pub type EntityConnection = Connection<usize, Option<Entity>, EntityConnectionFields, EmptyFields>

#[derive(SimpleObject, Debug)]
pub struct EntityConnectionFields {
    pub total_count: i32
}

pub type SomethingElseConnection = Connection<usize, Option<Entity>, SomethingElseConnection, EmptyFields>

#[derive(SimpleObject, Debug)]
pub struct SomethingElseConnectionFields {
    pub average: i32
}

will result in
type EntityConnection {
	pageInfo: PageInfo!
	edges: [EntityEdge]
	totalCount: Int!
}

type EntityEdge {
	node: Entity!
	cursor: String!
}

Meaning that the field average is silently ignored and does not appear in the SDL.

Use MergedObject to change the name of the object. This is the easiest way I can think of temporarily.

How should i use it? What should i merge?
And... in my case Entity is a interface and that doesn't work according to the book.

Is your Entity an interface? Now that MergedObject and ConnectionType are not supported, let me think about it.

Yes, Entity is an interface.

@Weasy666 I added a connection::query_with function to help you solve this problem.

@Weasy666 I added a connection::query_with function to help you solve this problem.
https://github.com/async-graphql/async-graphql/blob/2e6d40ab241aef3d182c4a10b0ba43de8882e9b3/src/types/connection/mod.rs#L195

I am facing a similar issue, but I only care about the edge. I tried creating a SimpleObject type but it doesn't work because I use a custom cursor:
#[derive(SimpleObject)]
pub struct InterceptEntryEdgeFiltered {
    cursor: Cursor,
    node: InterceptEntry,
    matches_filter: bool,
}

the trait bound `api::resolvers::cursor::Cursor: async_graphql::Type` is not satisfied
the trait `async_graphql::Type` is not implemented for `api::resolvers::cursor::Cursor`

Is there a way to have to implement the Type trait for my Cursor?
Thanks :)

Cursor

All fields of the GraphQL object must implement the Type trait, so the Scalar macro may be able to help you.

It is interesting because I didnt need to implement it before when I was using the default edge. So it was somehow autogenerated?

It is interesting because I didnt need to implement it before when I was using the default edge. So it was somehow autogenerated?

In fact, the default Edge already implements it.
https://github.com/async-graphql/async-graphql/blob/bd68b412f55099a339afb4f0c566e403fd28f2a7/src/types/connection/edge.rs#L43

Do you want to define a new edge just because you want to extend new fields? If this is the case, you can do something like this:
https://github.com/async-graphql/async-graphql/blob/bd68b412f55099a339afb4f0c566e403fd28f2a7/tests/connection.rs#L5

I want to create a new edge because I already have one with the default name and I need another one with more fields for another context but I cant control the name using this method.


[jetchat] Opening application with keyboard opened

When opening the application with keyboard opens something is off.

I can't reproduce, which API level/device is this?

I used Xiaomi mi a3. Searched the application via search bar and opened it with keyboard opened. If needed, I can provide a small video.

No thanks, I played a bit more with it and found weirdness as well. Turns out there's no recomposition when the keyboard is hidden. Tracked in https://issuetracker.google.com/175864912
Thanks!

Looks fixed to me in toolkit. Please reopen if you find it again.


Uncaught TypeError: Cannot read property 'toggle' of undefined

I just installed Atom and followed the instructions on https://github.com/JunoLab/atom-julia-client/tree/master/manual. I have julia v0.4.0-rc2 running on my Windows 10.
The error message is "Uncaught TypeError: Cannot read property 'toggle' of undefined" when I run the Julia Client: Toggle Console command from Atom.
Atom Version: 1.0.15
System: Microsoft Windows 10 Home
Thrown From: julia-client package, v0.1.2
Stack Trace
Uncaught TypeError: Cannot read property 'toggle' of undefined
At /C:/Users/Serge/.atom/packages/julia-client/lib/ui/console.coffee:71

TypeError: Cannot read property 'toggle' of undefined
  at Object.module.exports.toggle (C:\Users\Serge\.atom\packages\julia-client\lib\ui\console.coffee:36:16)
  at C:\Users\Serge\.atom\packages\julia-client\lib\julia-client.coffee:83:58
  at Object.module.exports.JuliaClient.withInk (C:\Users\Serge\.atom\packages\julia-client\lib\julia-client.coffee:106:7)
  at atom-workspace.subs.add.atom.commands.add.julia-client:toggle-console (C:\Users\Serge\.atom\packages\julia-client\lib\julia-client.coffee:83:42)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\src\command-registry.js:245:29)
  at C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\src\command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\node_modules\command-palette\lib\command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:338:21)
  at space-pen-li.<anonymous> (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:139:19)
  at HTMLOListElement.jQuery.event.dispatch (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
  at HTMLOListElement.elemData.handle (C:\Users\Serge\AppData\Local\atom\app-1.0.15\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands
     -1:12.7.0 core:delete (atom-text-editor#julia-client.juliaPath.editor.mini.is-focused)
  3x -1:03.9.0 core:backspace (atom-text-editor#julia-client.juliaPath.editor.mini.is-focused)
     -1:01.1.0 editor:consolidate-selections (atom-text-editor#julia-client.juliaPath.editor.mini.is-focused)
     -1:01.1.0 core:cancel (atom-text-editor#julia-client.juliaPath.editor.mini.is-focused)
     -0:52.1.0 command-palette:toggle (atom-text-editor#julia-client.juliaArguments.editor.mini.is-focused)
  9x -0:49.2.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:43.9.0 julia-client:toggle-console (atom-text-editor#julia-client.juliaArguments.editor.mini)
     -0:12.3.0 command-palette:toggle (div.settings-view.pane-item)
  5x -0:09.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:04.1.0 julia-client:toggle-console (div.settings-view.pane-item)

Config
{
  "core": {
    "projectHome": "C:\\\\Users\\Serge"
  },
  "julia-client": {
    "juliaPath": "C:\\\\Users\\\\Serge\\\\AppData\\\\Local\\\\Julia-0.4.0-rc2\\\\bin\\\\julia.exe"
  }
}

Installed Packages
# User
ink, v0.1.1
julia-client, v0.1.2
language-julia, v0.4.1

# Dev
No dev packages

I got this error too after doing all the installs and trying to run the REPL, but everything worked great after restarting Atom. As basic as it sounds, I figured I'd bring it up because I'll be the first to admit it's easy to forget restarting things after making changes the computer needs to digest before working properly.

I think I've seen this before, but can't reproduce it. Tentatively labeling as bug.

Has anyone seen something like this lately?
I'm think I haven't had this error for some time, but am not totally sure.

Also haven't seen it for a while. I vote we close for now and re-open if (when) necessary

Agreed.


null result of load() call destroys arrays

If load() call returns null, this null is destructive for arrays (at least).
function test():
    var classes = []
    var S = load( "res://...." ) # Here load() returns null
    classes.push_back( S ) # At this point "classes" changes from "[]" to "null". I.e. literally null
    return classes # Here it returns "null" instead of "[ null ]".

But if the same code runs without load() then it works as expected. And array is not destroyed.
function test():
    var classes = []
    var S = null
    classes.push_back( S ) # At this point "classes" is totally fine. It goes from "[]" to "[ null ]"
    return classes # returns "[ null ]". I.e. normal behavior.

Godot version is 3.2.2 built from source. OS is Windows 10.

Minimal reproduction project: test_array_load_null.zip
Running both methods, I get the following output:
Broken: [[Object:null]]
Working: [Null]

Well @Calinou's project doesn't confirm the bug, namely:
    classes.push_back( S ) # At this point "classes" changes from "[]" to "null". I.e. literally null
    return classes # Here it returns "null" instead of "[ null ]".

[[Object:null]] is an Array containing a null Object, which is expected from the code. The classes variable is therefore still an Array.

Maybe this is related? https://github.com/godotengine/godot/issues/39465

Hello!
I'm sorry I didn't examine the problem thoroughly enough. I've made step-by-step screenshots. It looks like what debugger shows contradicts to what print() states about objects. Please see below line-by-line screenshots. I hope it explains better than the original statement.

Figure 1. "classes" variable is an empty array.

Figure 2. "classes" is still empty array. One of the load() results is shown as T=null, L=Object:7947.

Figure 3. Just after adding T=null to "classes" array turns it to null in the debugger window.

Figure 4. The same exact function but with print() statements after each line.

Figure 5. print() output of the same variable the debugger thinks is null. It shows that the array is still an array. And there are no null objects at all.
However, after return


Traceback errors when attempting to use RAT

Traceback (most recent call last):
File "C:\ATIO\output\FunnyFile.py", line 11, in
import cv2
ModuleNotFoundError: No module named 'cv2'
[process exited with code 1 (0x00000001)]
This error shows up whenever i try to run the .py file, it also doesn't put it in an EXE file when I select yes when creating it.

Because you are missing the cv2 module. To install it open your cmd and write: pip install opencv-python


[Fair] Remove ‘posts’ from overview?

While investigating https://github.com/artsy/eigen/issues/256, I came across code that wasn’t working and thus wasn’t showing any of the following content on screen:

These posts appear to simply be the “Insider’s Picks”. I that correct and so should we simply remove all of the related ‘posts’ code?

Related to #432?

So currently there are Fair Highlights and Insider's Picks (below the basic fair click through list). Fair highlights seem similar to posts, have they been changed to this? I can't seem to find a fair that has posts in its metadata (e.g. when I search for Art Basel 2013 up till 2015, there are no posts, same for The Armoury Show).
This is for the api v1/profile/slug/posts - you get a 404.
If 'Posts' are no longer a thing, should we remove that section? (as self.fairPostsVC is different to self.editorialVC).

Yeah, reading #432 and that that route returns a 404 seems to be a good enough indication. Let’s remove it :+1:

Will do.

@alloy @mennenia not sure if this is helpful but if you visit any fair on m.artsy, you'll see the "read highlights form the fair" section. Not sure if we can use the same "route"  to the data but that's what we should be showing in eigen as well.


make all the cards of same size

the cards on shop page were previously of unequeal size which has now been fixed!
before:

after:

@777advait  resolve the conflicts.. pull the new code

@Anushkabh please close this PR i'll create a new one


I just use dataset Yang 91 as the training dataset.

Hi @pzz2011 the loss looks normal, since the training is just started. You can wait for a couple of epochs and see the drop.

thanks.


ChartPointsLineTrackerLayer not working?

Hi Ivan,
I've added a tracker so that I can display more info as a user drags or taps the points.
I followed the example and added a ChartPointsLineTrackerLayer to my chart. I also enabled user interaction on the chart.
However, nothing happens when I drag or tap on the chart points.
Is there something else I need to do?
BTW : am running in simulator
Thanks
Scott

Have you tried debugging the view hierarchy to see if the tracker view is on top of the chart? Maybe try starting with the provided example and transform it step by step into your current chart to see what causes the issue. If you can narrow it down and come back with more infos I can help further.

Would you be able to advance with this? If you have more questions feel free to comment. In case this is a bug it would be good to know the reason.

Hi. I've same issue here with a little difference. Tapping works perfectly. But dragging fails. It's important to mention that I've used the chart in a UITableViewCell.


Refactor dataFetch to use axios with async/await

Description
Refactors data fetching logic to use axios instead of the native fetch
This PR fixes #
#8671
Signed commits

[x] Yes, I signed my commits.

@Lauquik thank you. I wonder if we shouldn't be headed straight to RTK Query....

Confirmed. Please see issue comments. Let's get you up and running on another issue, @Lauquik. 👍


Update the README.md file to describe the repo.

I still can't merge this PR. It says "Review required: At least 1 approving review is required by reviewers with write access."

Oops, I think it's ready now?


rkt: Implement FetchImages and RemoveImages API through API service.

Take the image service part from https://github.com/coreos/rkt/pull/2963 , which can be used in CRI depite pod level or container level interface.
cc @lucab @euank @tmrts @alban @iaguis @s-urbaniak
Ref https://github.com/kubernetes/kubernetes/pull/30513

OK, also added implementation on the two APIs.

Manually tested with the updated client example, this works now.
$ sudo ./client_example
Fetched image ID: sha512-86aa5fa7158bf69d9b1078f2c557b971315bf4304f3036c4518ebd26c7205cdf

@sgotti OK, I updated the PR, using one string (field Names) as the distribution string. But probably requires distribution string parsing logic.

@yifan-gu you can just keep passing the docker:// pseudo URL since it's a recognised user friendly string (see #3101). In future the kubelet could also convert the k8s string format to the related distribution URI.
BTW @euank @yifan-gu  do you see a possible path for suggesting the use of distribution point concept also for k8s (to handle multiple distribution types). I can't recall the issue but I remember something about also handling Appc images. As explained in #2953 I think that more than "multiple image types" the real concept will be "multiple distribution types". Probably k8s doesn't need to use Direct distribution points not only indirect ones (Docker, Appc and in future, when defined a possible OCI distribution) and the distribution string exposed to the user could be an user friendly string like done by rkt. So just one string without the need to declare any other field in the Jason descriptors.

@sgotti We can do that today, I once discussed with @euank about similar idea, something like:
Image: foo -> docker://foo
Image: aci://coreos.com/foo -> coreos.com/foo
One benefit is we can do that without changing k8s API. cc @philips

That will be great!

Image: aci://coreos.com/foo -> coreos.com/foo

Not to be pedant 😄  but, as explained in #2953 we are talking about distribution and not image types , so I won't use aci but appc.
Addionally this is related to https://github.com/appc/spec/pull/586#issuecomment-241778126 where I put my thoughts on a URN vs a URL (appc: vs appc://)

@sgotti Yes I got you, it was just an example :)

@yifan-gu 👍 I was too much pedantic. sorry 😅

@yifan-gu bumping to next release, though I do remember we discussed OOB to drop this in favor of CRI?! Feel free to close if that is the case.

closing for now, we can reopen if we finally decide to go down this path.


Be able to re-raise specific user exceptions

Suggestion
Instead of re-raising every exception found during visiting as a VisitorError, what about whitelisting specific exceptions and let it go up the stack?
For example, say I want to whitelist MyException and not let it be re-raised as a VisitorError. Maybe I would do something like this:
...   # Define transformer or something
parser = lark.Lark(
    grammar,
    ...,  # All the other options
    whitelist_exceptions=[MyException],
)

try:
    parser.parse(doc)
except MyException:
    ...  # Do the stuff

Describe alternatives you've considered
Subclassing Transformer or Visitor and implementing it. But that seems a bit hacky.
Additional context
This way, I can let "real" LarkErrors that signify a mistake in my Transformer flow normally yet let the exceptions I want to raise in my Transformer flow out uncaught.

The main reason for raising a VisitError is that when using the internal transformer (Lark(..., transformer=...)), the parser needs to know if the error happened inside the transformer or elsewhere.
But you can just catch VisitError outside, an re-raise it as you like..
See this example:
from lark import Lark, Transformer
from lark.visitors import VisitError

tree = Lark('start: "a"').parse('a')

class T(Transformer):
	def start(self, x):
		raise KeyError("Original Exception")

t = T()
try:
	print( t.transform(tree))
except VisitError as e:
	raise e.orig_exc

raise e.orig_exc

What's e.orig_exc? Is it built-in Python's Exception? Does it return VisitError if there wasn't any other exceptions?

Nevermind

Hey, that's not in the documentation.


SI-2866-device-last-seen-b

Generation is failing. Can you look at why?

Looks like mocks or something?


DefaultSelector fallback to less efficient methods

Test the selector before making it the default selector. This is due to issue reported by myself at https://github.com/kennethreitz/requests/issues/3906

Hello again! :sparkles:
So I think this is generally useful, but we should write tests for it if we can. We also need to consider whether this should be merged or coordinated with @SethMichaelLarson's patch in #1128.

I'll attempt to write tests for it, but suggestion would be appreciated. The change made will be executed during import, thus if there is any error in it, it would cause exception during import. Any reference on how to test such condition?
As for manual test, I can confirm that at least the EpollSelector falling-back to 'PollSelector' part works on my router.

@programatix Yeah, that's the trickier bit, and it's why I want to wait to see what @SethMichaelLarson has to say here. At the very least we need to factor this out into a function, but his patch has already done that so we may be able to make this a bit easier for you by merging these in an order that lets you piggy-back on his work.

Codecov Report

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

@@          Coverage Diff           @@
##           master   #1131   +/-   ##
======================================
  Coverage     100%    100%
======================================
  Files          21      21
  Lines        1926    1926
======================================
  Hits         1926    1926

Impacted Files
Coverage Δ

urllib3/util/selectors.py
100% <ø> (ø)
:white_check_mark:

Continue to review full report at Codecov.

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


Next/Done Buttons Not working

Buttons for intro not working. Unable to get passed Location page.

We tracked this down it will get fixed in the next build tonight.

Fixed in v49


Rework wait queue system

There's something wrong with the current architecture, basically what'll happen is that a thread can apparently be woken without going through the wait queue system, which will cause weird behavior in terms of thread state.

Nope, completely messed this up. The warnings were coming from the polling code which called wq::insert multiple times, which resulted in the task state being set to SLEEPING_INTERRUPTIBLE multiple times.
So it turns out nothing was particularly wrong with the wait queue implementation, except for the fact insert() shouldn't set the thread state.
Commit 08309329ad3fce8766e7c67fa92811a4c6adf408 adds a sleep function to the scheduler and removes the thread state code from insert().


[🐞] Can't useStyle$ where the styles are a variable

Which component is affected?
Qwik Runtime
Describe the bug
I would like a component to apply global styles using a string value at runtime.
Something like this:
export const StyleView = component$((props) => {   useStyles$(props.styles);   return null; });
However, this throws the error [vite] Internal server error: Qrl($) scope is not a function, but it's capturing local identifiers: styles   Plugin: vite-plugin-qwik
Other suggestions for achieving my goal would also be appreciated.
Reproduction
https://stackblitz.com/edit/qwik-starter-vtrpex?file=src/routes/styleTest/index.tsx
Steps to reproduce
Navigate to the /styleTest route in the StackBlitz.
System Info
System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @builder.io/qwik: ^0.100.0 => 0.100.0
    @builder.io/qwik-city: ^0.100.0 => 0.100.0
    undici: 5.21.0 => 5.21.0
    vite: 4.2.1 => 4.2.1

Additional Information
No response

Solved via constructable Stylesheet, like so:
 useVisibleTask$(() => {
    const sheet = new CSSStyleSheet();
    sheet.replaceSync(styles);
    document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];
  });


Blur View,when moving out

Hi,
is it possible to blur the view, when moving it out?
Thanks,
Urkman

why this is closed without any notice?


Added support for Windows

Added support for Windows, fixes https://github.com/hargoniX/keepassxc-proxy-client/issues/2
Please do a quickcheck that it still works with Linux flawlessly.

Changes made.

How can I support you to integrate this pull request?

I'm not quite sure about the licensing question or what to do it I'm afraid...the only thing i know for sure is that our licenses are indeed incompatible.

I've rewritten the code. You should now be able to integrate it.


Ability for user to define a custom scheduling algorithm

We need to give user the flexibility to control where to place tasks with custom algorithms

We provided the facility for the user to define their own task scheduling algorithms.

It is completed.


Pressing ESC while in code mode should clear the text and exit code mode

Without code mode, you get this bit of functionality from chat: If you start typing a message and you give up on it, you can press ESC to instantly clear the textarea.
This doesn't happen while in code mode.
I propose that pressing ESC while in code mode with the editor in focus would exit code mode and clear the text area.

should it clear tho?? I understand this is how the current input works, but maybe make it exit, and then when you hit esc again the chat resumes business as usual and clears it. some people may assume esc just escapes the mode.

Well, you can already escape the mode by hitting CTRL+K again.

fixed in <IP_ADDRESS>


🎉 1.1.2

ℹ About this release

Version: 1.1.2
Type: patch
Last Release: 1.1.1 (3/31/2022, 2:55:16 PM) [?]
Commits to merge: 11 [?]

📦 Development Dependencies

Update @amanda-mitchell/semantic-release-npm-multiple from ^3.1.0 to ^3.2.0
Update @types/node from ^17.0.21 to ^17.0.23
Update @typescript-eslint/eslint-plugin from ^5.14.0 to ^5.17.0
Update @typescript-eslint/parser from ^5.14.0 to ^5.17.0
Update eslint from ^8.11.0 to ^8.13.0
Update mochawesome from ^7.1.1 to ^7.1.3
Update typedoc from ^0.22.13 to ^0.22.15
Update typescript from ^4.6.2 to ^4.6.3

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

v1.1.2
GitHub release
v1.1.2

Your semantic-release bot :package::rocket:


Updated styling for full screen reports

made page scrollable
adjusted padding
Old:

New:

@h-kataria Pls review


Prevents duplicated person from being added

A person is considered the same if he/she has either the same Email, TeleHandle or Phone
Resolves #159

Codecov Report

Merging #215 (9a14083) into master (90c987a) will decrease coverage by 0.49%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##             master     #215      +/-   ##
============================================
- Coverage     77.76%   77.26%   -0.50%
- Complexity      700      708       +8
============================================
  Files            97       97
  Lines          2190     2226      +36
  Branches        272      281       +9
============================================
+ Hits           1703     1720      +17
- Misses          388      406      +18
- Partials         99      100       +1

Impacted Files
Coverage Δ

src/main/java/seedu/address/model/Conthacks.java
93.47% <ø> (ø)

src/main/java/seedu/address/model/person/Name.java
45.00% <0.00%> (-36.82%)
:arrow_down:

...rc/main/java/seedu/address/model/person/Email.java
61.53% <25.00%> (-18.47%)
:arrow_down:

...in/java/seedu/address/model/person/TeleHandle.java
61.53% <25.00%> (-18.47%)
:arrow_down:

...c/main/java/seedu/address/model/person/Person.java
96.77% <87.50%> (+3.79%)
:arrow_up:

...ddress/logic/commands/person/AddPersonCommand.java
100.00% <100.00%> (ø)

...dress/logic/commands/person/EditPersonCommand.java
97.40% <100.00%> (+0.10%)
:arrow_up:

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...seedu/address/model/modulelesson/ModuleLesson.java
77.19% <0.00%> (+0.10%)
:arrow_up:

Continue to review full report at Codecov.

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


[3.x] Fix crash when casting from null

The following script crashes Godot 3.4 beta5:
onready var node := get_node_or_null("the-node-does-not-exist") as Control

It does not crash in previous betas (or after removing the "as Control" part).
The crash MRP: TestAs.zip

_get_obj().rc was not checked for null, so it would crash due to null pointer dereference.

Thanks!


Fix #1394, Remove shell file subtype and clarify scope

Describe the contribution
Fix #1394 - removes CFE_FS_SubType_ES_SHELL and clarifies the scope of CFE_FS_SubType_Enum_t to just include the cFE defined file types
Testing performed
Build and run unit tests, passed
Expected behavior changes
None, wasn't used since shell command was removed from CFE/ES.
System(s) tested on

Hardware: Intel I5/Docker
OS: Ubuntu 18.04
Versions: Bundle main + this commit

Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

CCB:2021-05-26 APPROVED


Game updated 13.15, into the game pop-up

me too

same i think it need to be update

me too

Same here, cant be used at the moment

We all have that problem i think

да у меня тоже это есть

Please check out the new release.


How to switch bgm smoothly

add more api

Hi:
Current version allow developers to control the Music separately
so you may use an animation to fade out current music
and then fade in another music with another animation
ParallelAnimation could combine two animations together
e.g.
    var bgm = FXGL.loopBGM("maou_game_theme01.mp3");
    bgm.getAudio().setVolume(0);
    new Transition() {
      {
        setCycleDuration(Duration.seconds(1));
      }

      protected void interpolate(double frac) {
        bgm.getAudio().setVolume(FXGL.getSettings().getGlobalMusicVolume() * frac);
      }
    }.play();

cheers

that was cool man , tks a lot! : )


ISPN-11390 Non-components cannot export metrics

https://issues.redhat.com/browse/ISPN-11390
https://issues.redhat.com/browse/ISPN-11388
https://issues.redhat.com/browse/ISPN-11389
https://issues.redhat.com/browse/ISPN-11403
Some places need manual attention because automatic registration of metrics does not work there. See the 2 mbeans in AbstractProtocolServer

Tests results don't look good

Yes, and many on those failures are on master also. This gets me double-worried.

Tests should be fine now @danberindei , @gustavonalle . Some still fail, but I don't see any connection


Add peek method on Receiver

I would be interested in having a "peek" method for Receiver, which would, if there is a message available allow a function to be called with a const reference to that message. This could allow a thread to do some work or thinking regarding a message before definitively removing it from the channel.
For instance, with a zero sized bounded channel, it could allow the sender to block until the message has been acted upon.

I'm afraid this is impossible to implement on top of the current implementation. In order to borrow a message from the channel without receiving it, we would have to lock the channel first so that nobody else steals it while we're reading it.
In crossbeam-channel, only the zero-capacity flavor is implemented using one big mutex in front of the underlying data structure. But even in that case we have ugly complications. For example, in zero-capacity channels senders can either "offer" or "promise" a message. If a message is promised, then the sender will supply it only if some receiver actually comes and requests it. If we want to support requesting a reference to the message without commiting to it, the protocol will become incredibly complicated. :) And even then, that'd work with zero-capacity channels only. To make the operation work with other flavors we'd have to completely redesign the data structures and hurt performance.
May I ask why you need this operation? Do you need it for zero-capacity channels only? I'm trying to understand more about your problem. Perhaps we can find some other way around it. Or maybe build a slightly different synchronization primitive for your use case.

I've been thinking about designing a raft implementation in which messages are passed via channels, where the channels would serve as the API.  There are two semantics for sending a message that could be implemented, one would return immediately, and then the message would be sent when its able.  The other would return only when the message has been committed.  The latter would be impossible to implement purely via a "send" channel, and I was thinking that if the raft thread (which agrees on consensus) were to peek at the message, then send it, and only accept it once it has been committed, then the user of my API could specify which approach they wanted by deciding which kind of channel they used.
Without a "peek" feature, I would simply avoid exposing a channel to do sending, and implement a couple of methods for that, which might use private channels under the hood.  But I am intrigued by the idea of making channels be the only means of communication.
Another approach would be simply to have no synchronous send available, and tell users that they have to wait until they receive the committed message on the receive channel in order to act.  I think this is usually a better design, but it could complicate client code in some cases.  And it would seem a bit sad to hard-code into my API this restriction.
Now that I think about it, all I really need for this use case would be for the zero-sized channel to be handled, and really all I would need would be to delay the continuation of the sender until the receive was "finished", where "finished" is defined by the user of the Receiver.  One could do this either by calling a function, or by returning some kind of a guard type, which "finishes" the recv when it is dropped.

Could you perhaps make it a rule that two messages must be sent into the channel instead of just one? So the first one is the actual message you want to send and the second one is just a blank finish message.
The sender would first send the actual message and then a finish message after it.
The receiver would receive the first message, do some work to process it, and finally receive the finish message.

That does seem like a pretty simple approach, albeit very user-visible.  It would cause a lag however, if there are multiple threads sending messages, since we couldn't read the second message from the channel (lest we read the "finish" message) until the first message was committed.  Of course, now I see that my own approach has precisely the same flaw.  It's just easier to see flaws in other people's suggestions!  :)
I think I'm convinced that this idea won't work for my use case, and so am closing the issue.  Thank you @stjepang for your helpful discussion!

I've also had the need for peek method, but understand it is not possible to return a reference. But would it be possible to clone the message?
Something like this?
impl Receiver<T> {
    /// Peek a message.
    ///
    /// The next call to `peek`, `recv` and `try_recv` all return the same value.
    pub fn peek(&mut self) -> Option<T> where T: Clone {
        // ...
    }
}

@Thomasdezeeuw
While we're calling peek to clone an element, another thread might concurrently execute a recv operation and take ownership of that element. That means the recv operations must wait for peek to finish first.
So peek would first lock the tail of the queue, clone the last element, and then unlock the tail. It's a little bit complicated solution (and not a particularly fast one), but I think we could implement that. I'm still not sure it's worth it, though.

We you say "lock the tail of the queue", does that mean locking receiving from the channel, locking sending to the channel, or both?
In my use case I only have a single receiver (mpsc), so only locking the receivers won't be a problem for me.

That would mean internally locking the receiving end of the channel while the call to .clone() is executing.
By the way, could you perhaps describe what's your use case for the peek method?

My use case is very simple, using the actor model I use crossbeam channels for message passing. Currently when an actor receives a message it removes it from the queue, but I want to be able to peek messages to ensure handling. So an actor can peek (clone) a message from the queue and in case it crashes the actor can be restarted and the message won't be lost.


Setting ego vehicle speed in manual control mode to a custom value

How can i set ego vehicle speed in FollowLeadingVehicle scenario for manual_control autopilot mode on?
Desktop (please complete the following information):

OS: Windows
CARLA Version: CARLA 0.9.5
Python version :3.7
Scenario Runner Version :0.9.5

You cannot change the speed of the autopilot. As far as I know, this max. speed is inferred from the underlying map. I'll move this to the CARLA channel, as you might get more help there.

I found a similar issue in Carla channel where manual_control speed setting customization has been sorted. It says:
The autopilot in manual_control.py is run on server-side, the code is in WheeledVehicleAIController.cpp. It has option for editing SpeedLimit.
Would it be the same for scenario runner? Will the manual_control in Scenario runner use the same cpp file?
I'm working on using the Build version in order to do this.

You can use the measurement vehicle control


Develop SWATShare component which can be launched using the Hydroshare app URL convention

The goal is to harmonize the URL and parameters for launching SWAT and launching other apps (ie the SWAT parameter editor app). It was decided that the default app resource in HydroShare will include the following parameters: usr, src, res_id.

This feature has been implemented.

Three parameters

res_id : resource id
src : "hs" (HydroShare)
usr : username (currently, not using it)

ex) https://mygeohub.org/groups/water-hub/swatshare?res_id=a36f1cc4c0c64a1fabd33b882dc9b34e&src=hs

@lanzh Should this be closed?

@yirugi It looks like you are assigned this issue. @pkdash tagged it as "Close me!" Can you please take a look at see if this issue should be closed?

Hi @goodalljl , yes, this can be closed.
Thanks!

Thanks, @yirugi !


latinname and fromdomain Validators

Hey there,
I was messing around with your library the other day and I realized that those following validators could be a nice addition to it:
    const checkName = function(value, element) {
        const space = "\u0020";
        const delimiters = "[" + space + "'\-]";
        const letters = "[\u0061-\u007a\u00df-\u00f6\u00f8-\u00ff]";
        const regex = new RegExp("^[^" + space + "0-9]" + letters + "+(?:"+ delimiters + letters + "+)*$", "i");
        return this.optional(element) || regex.test(value);
    };
    $.validator.addMethod("latinname", checkName, "Please provide a valid name.");

    const checkDomain = function(value, element, param) {
        const domain = param.toLowerCase();
        const regex = new RegExp("^.*@" + domain + "$");
        return this.optional(element) || regex.test(value);
    };
    $.validator.addMethod("fromdomain", checkDomain,
        $.validator.format("Email address should be from the following domain: {0}."))
    );

The latin name validator could be reworked a little to better handle capital letters.

thx for your suggestion. I dont think those validators are common enough to be bundled with the lib.
but having those codes here in the issue available for everyone will also benefit such people who need it.
I would close the issue now, but feel free to add further comments in case I missed something.


Negative tests for CBMC flags

This PR introduces a suite of negative tests. In future, we should see an alarm (a failed CI job) if any of these tests fail, which would indicate that CBMC was run with flags that were too permissive.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I have addressed all the comments from the c-common PR and am talking to @eidelmanjonathan this afternoon regarding enabling CI on this repo.

@markrtuttle The EXPECTED flag actually works as expected. You can see a CI run here:https://github.com/awslabs/aws-c-common/pull/685.
I could move these to a subdirectory (cbmc_check_flags) within proofs, I think that's a good idea.

A name like "negative_tests" would be more accurate.

Thanks, I will go with that then.

As per our last discussion, I have moved all the negative tests to a separate subdirectory (negative_tests/) that's directly under template-for-repository/.
I have also addressed all your comments, @feliperodri and @markrtuttle. Please take another look.


DBZ-7140 Debezium-ddl-parser crashes on parsing MySQL DDL statement (specific UNION)

https://issues.redhat.com/browse/DBZ-7140

Applied to main (=2.5) and branch 2.4.


Build fails - android

Checklist

[X] I have looked into the Readme and have not found a suitable solution or answer.
[X] I have searched the issues and have not found a suitable solution or answer.
[X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
[X] I agree to the terms within the Auth0 Code of Conduct.

Description
Android Studio Iguana | 2023.2.1
Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Launching lib/main.dart on M2002J9G in debug mode...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

ERROR:D8: com.android.tools.r8.kotlin.H
ERROR:D8: com.android.tools.r8.kotlin.H
ERROR:D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform okio-jvm-3.5.0.jar (com.squareup.okio:okio-jvm:3.5.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for DexingWithClasspathTransform: /home/khomin/.gradle/caches/transforms-3/8914d7d6c67f8e8693e10ecd69364333/transformed/jetified-okio-jvm-3.5.0.jar.
         > Error while dexing.
   > Failed to transform kotlin-stdlib-1.9.0.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /home/khomin/.gradle/caches/transforms-3/8f02b104beefc3f04668ea04ea792135/transformed/jetified-kotlin-stdlib-1.9.0.jar.
         > Error while dexing.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
│ [!] The shrinker may have failed to optimize the Java bytecode.            │
│ To disable the shrinker, pass the `--no-shrink` flag to this command.      │
│ To learn more, see: https://developer.android.com/studio/build/shrink-code │
└────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

Reproduction
git clone https://github.com/auth0-samples/auth0-flutter-samples.git
cd ./auth0-flutter-samples/sample
change .env, auth0Domain, auth0Scheme in gradle
flutter run --debug
Additional context
Flutter 3.19.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision bae5e49bc2 (6 weeks ago) • 2024-02-13 17:46:18 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

Platform
Android
Platform version(s)
12

I'm facing the same issue

Me too

anyone find a solution !

i'm not sure, but I think the error went away by changing target sdk version

I managed to make it work somehow i can share the project for the ones that need a working auth0 flutter app, i kept a snapshot just in case


Support passing parameters to functions in select statement

Check if this is possible and add ability if not.
I think right now the function itself has to reference the fields which may be a bit clumsy.

Already possible


As a frontdesk worker, I can quickly retrieve the contacts of the patient

...  so that I can make calls to the patient to update them on important issues.

#24 resolves this.


hdl.mem: mask initial value to shape. [0.5 backport]

https://github.com/amaranth-lang/amaranth/actions/runs/10578336416/job/29308228098?pr=1496#step:6:1214


docker install issue on windows

Trying to get a docker to singularity image made. I get an error that seems to be problematic for docker where tar is unable to function correctly due to overlay. Tried switching to overlay2 with no success. Docker suggests using bsdtar instead of tar but I am unable to get this functioning.

Hi, you can get the latest fmriprep singularity image from here: https://www.dropbox.com/s/mfmzqtpx88bg9o4/poldracklab_fmriprep_1.2.5-2018-12-04-2ef6b23ede2a.img?dl=0
Other than that, we'll need a better description of everything you've tried and settings because it is not clear at all from your post.

Thanks for sending that over.
So I am using the current version of docker on a windows 10 64-bit machine.
Following the instructions on the fMRIprep webpage I run this code (using my computer's directories):
docker run --privileged -t --rm
-v /var/run/docker.sock:/var/run/docker.sock
-v C:\to\my\output\image:/output
singularityware/docker2singularity
poldracklab/fmriprep:1.2.5
It appears to download fine and then starts a sandbox (step 1) on step 2 it fails with multiple versions of this error code:
tar: etc: Directory renamed before its status could be extracted
and then says:
tar: Exiting with failure status due to previous errors
googling these errors led me to this page:
https://github.com/docker/hub-feedback/issues/727
[https://avatars3.githubusercontent.com/u/1364012?s=400&v=4]https://github.com/docker/hub-feedback/issues/727
Automated build fails on 'tar' with: "Directory renamed before its status could be extracted" · Issue #727 · docker/hub-feedback · GitHubhttps://github.com/docker/hub-feedback/issues/727
github.com
Join GitHub today. GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
At different points, they suggest trying to use AUFS instead of overlay or overlay2 instead of overlay both options did not work for me. They also suggest using bsdtar instead of tar but I think this must be implemented in the actual code so I was unable to test this.
Please let me know if you need more specific information. It's also quite possible I just messed up something easy along the way!
Thanks again,
Travis

From: Oscar Esteban<EMAIL_ADDRESS>Sent: Friday, December 21, 2018 4:57:12 PM
To: poldracklab/fmriprep
Cc: Travis D. Masterson; Author
Subject: Re: [poldracklab/fmriprep] docker install issue on windows (#1461)
Hi, you can get the latest fmriprep singularity image from here: https://www.dropbox.com/s/mfmzqtpx88bg9o4/poldracklab_fmriprep_1.2.5-2018-12-04-2ef6b23ede2a.img?dl=0https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fmfmzqtpx88bg9o4%2Fpoldracklab_fmriprep_1.2.5-2018-12-04-2ef6b23ede2a.img%3Fdl%3D0&data=02|01|travis.d.masterson%40dartmouth.edu|f35d8a7debbd43164cb608d6678f4381|995b093648d640e5a31ebf689ec9446f|0|0|636810262347824084&sdata=R9tlpdkYMPq1owjnqQW0i9768HzxT1LieBir2ZhNMf8%3D&reserved=0
Other than that, we'll need a better description of everything you've tried and settings because it is not clear at all from your post.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpoldracklab%2Ffmriprep%2Fissues%2F1461%23issuecomment-449508215&data=02|01|travis.d.masterson%40dartmouth.edu|f35d8a7debbd43164cb608d6678f4381|995b093648d640e5a31ebf689ec9446f|0|0|636810262347834089&sdata=247vysf9F4pg2YY66E8ONcVIfxOR0Dcax7WKBlfXPGA%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAqcdxncGH-EnvA-bFG-LWVpGRWS-ZHEhks5u7Vk4gaJpZM4Ze7hU&data=02|01|travis.d.masterson%40dartmouth.edu|f35d8a7debbd43164cb608d6678f4381|995b093648d640e5a31ebf689ec9446f|0|0|636810262347834089&sdata=1WHlwj2NfnzUFpfadaiAAv0tAJ8UV2JFguT%2FofDriWE%3D&reserved=0.


asynchronous tasks one after another

Hello!
I implemented a charging point and a CSMS based on the examples and comments I found, and now, I want to implement a full charging scenario for smart charging.

The CSMS:

The script:

So my problem is that after I receive the answer from the CSMS for the authorization, I want the coroutine to be terminated and go to the next step which is the start transaction. When the start transaction receives an answer to go to the remote start of charging and goes like this. But what happens is that is stuck there and waiting. Do you have any idea what should I do?
Thanks!

I want the coroutine to be terminated

Which one?

after I receive the answer from the CSMS for the authorization, [...] and go to the next step which is the start transaction.

Seems like you might need the @after() decorator.

Maybe I wasn't very clear. Sorry about that.

I meant this part here, the asyncio.gather should collect an answer from the csms. Here is what CSMS does:

And here is what the charging point sees:

After I receive this answer, I want to store it and run another coroutinee for the remote start and stop, but the asyncio.gather is stuck there after the answer.

Thanks for clarifying. It seems that you're question is more related to asyncio, than this library. I suggest to take a look at the documentation of asyncio.gather() and asyncio.wait().
The docs of  asyncio.gather() state:

If all awaitables are completed successfully, the result is an aggregate list of returned values. The order of result values corresponds to the order of awaitables in aws.

asyncio.wait() seems what you need. Quoting the docs:

Run awaitable objects in the aws iterable concurrently and block until the condition specified by return_when.

The use of wait never receives something:

It also didn't work with other conditions, only gather receives the answer fromt he CSMS.
Thanks again!


kubernetes.pods.running reporting incorrectly

Output of the info page

==============
Agent (v6.4.2)
==============

  Status date: 2018-08-24 00:05:55.602398 UTC
  Pid: 352
  Python Version: 2.7.15
  Logs:
  Check Runners: 2
  Log Level: WARNING

    kubernetes_apiserver
    --------------------
      Total Runs: 53293
      Metric Samples: 0, Total: 0
      Events: 0, Total: 0
      Service Checks: 0, Total: 0
      Average Execution Time : 4ms

(a ton of unrelated and possibly sensitive stuff removed)

Additional environment details (Operating System, Cloud provider, etc):
GKE - kubernetes 1.10
Steps to reproduce the issue:
Have a k8s cluster monitored by datadog where at least one pod is in a failed state (or anything that's not running)
Describe the results you received:
The metric appears to count pods in all statuses, including failed
Describe the results you expected:
Simple fix: the metric is correctly filtered to only pods where status.phase == Running
Enhancement: the metric is replaced by kubernetes.pods.count with status.phase added as a tag, allowing accurate reporting of pods in e.g. Failed state. This would enable more useful metrics and reporting.
Note that a similar metric is exposed in kubernetes_state when its configured, but that shouldn't excuse the inaccuracy of the other one.
Additional information you deem important (e.g. issue happens only occasionally):

I'd also like to add that we consistently see inaccurate measurements for the pods running metrics
the numbers are off by 100% during scaling periods and can take up to 10 minutes to stabilize. Turning off interpolation in the metric graphs shows a sawtooth measurement.

ping! any updates on this?

We face this issue too. kubernetes.pods.running shows only a single pod most of the time. Sometime it changes to a floating-point number (up to 1.4)  even when there are definitely several pods running.

We are seeing this issue in multiple namespaces, although it appears that pods.schedulable is accurate and usually contains the number of pods we expect to see in pods.running

had a same problem, fixed it by adding default_zero(), so it won't show as no data, but will be 0
documentation can be found --> https://docs.datadoghq.com/dashboards/functions/interpolation/

Is this because the default aggregation in datadog is 'avg by', which will show you the average amount of pods/deployment or node? If you change the aggregation to 'sum by', you'll get a number much higher than the 1-2

Correct @allandialpad  the sum by aggregator should be used to show kubernetes.pods.running.

I don't think this issue is resolved by changing to sum by. I use something like: max(last_5m):default_zero(sum:kubernetes.pods.running{kube_job:some-job}) < 1
in a monitor but I also notice that datadog sometimes completely misses when short kubernetes jobs run, or for long jobs sometimes returns 0 even though I can verify the job is actually running in kubernetes.

@ahmed-mez this issue is not resolved by setting sum by, as I noted above.

I can confirm that during a period in which we terminate some pods and then we create new ones (not with replicas, simply scheduling pending pods on a node which now has free resources) we see 3 times the amount of real pods.

I also face the same issue. Live pods running are 4 but this metric reports 14. It spikes up during deployments but doesn't report correctly once old pods are terminated.

Same issue, same behavior. K8s  1.25,  DD Agent v7.40.0


Feature/register file types

Initial work for https://github.com/ZenHarbinger/torgo/issues/23
Still needs macOS support.
Linux support may be spotty but I don't think there's anything else to be done.

Was accidentally to be merged into 'master'.


libFlurry.a with bitcode enabled?

Is it possible to have the library bitcode enabled for Xcode 7?

any chance for this ?

Hi!
I am really interested into this Issue too.

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
robsonfelix, @edisonlee55, @ZouZou, @fedecaccia, @freepisces, @zigagrcar, @kenorb, @ryancody, @micli, @abhishekbhalani, @sweatyc, @longyangxi, @tutumagi, @andrewb-ms, @chukwuemekanweke, @ToroCheng, @minutd97, @orangeagain, @block-tx-hash, @peturgq


Principles for CSS

Use Desing Tokens/Variables for everything
Desing tokens naming: system - theme - domain - group - component - element - category - concept- property - variant - state - scale - mode Naming design tokens
CSS class: <ns>-<component>-<scale>-<category>-<state>-<theme>

For accessibility all animation and transitions should be in the media query prefers-reduced-motion: no-preference
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

With a postcss plugin we can make our own media queries with custom props, that can make this a bit more user friendly with something like
@media (--with-animation) {
ref: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media
I do think i prefer to flip this however. I known it can remove animations that could have stayed around, but it does make sure we never forget.
@media (prefers-reduced-motion: reduce) {
    *,
    *::after,
    *::before {
        animation-duration: 0ms !important;
        animation-delay: 0ms !important;
        transition: none !important;
    }
}

Perhaps it can be useful, with regards to tailwind, to also supply classes tailwind-style.
I know it looks scary for seasoned css-devs, but use with some care and it's fantastic for tailwinders.
<button class="btn btn-primary" ...
<a class="btn btn-ghost" ...

I assume most of our apps do not need js based animations. It might not be necessary for the design system to supply this, might be more of a reset thing that each application should supply itself.
And for sure, it's better to do it on a case by case basis if we are actually able to do that properly. However that makes it quite easy to make a mistake, so I prefer to just turn it off.

Yeah, 100%, Its totally fine in our case. I dont think we ever will use JS based animations or advanced animations at any point. The reset will do just fine and protect us from doing mistakes, like you said.


RevEng: Use ScaffoldingTypeMapper

Updated PR after going through rebase hell. The real commit is this PR is much smaller. (thanks to nice design of ScaffoldingTypeMapper by @ajcvickers ).
It is not accurate in terms of scaffolded code yet. But this defines a layer what ScaffoldingTypeMapper is supposed to do & how it will work.

Provider implements IScaffoldingHelper.GetTypeScaffoldingInfo function. It takes ColumnModel so provider should have access to all the metadata about column before making judgement on what to scaffold about type mapping of the column.
The function returns TypeScaffoldingInfo which has difference facets (3 for now, explained below) which associate with fluent api calls to scaffold.

TypeScaffoldingInfo contains

IsInferred - indicates if the type mapping can be inferred i.e. no HasColumnType call needed.
ScaffoldUnicode - indicates that it has non-default Unicode and we need to call IsUnicode
ScaffoldMaxLengh - indicates that it has non-default length and we need to call HasMaxLength


Bad character text in Arabic diacritics for IOS

Currently I've working on a project, till iOS 12 it was stable starting from iOS 13 I noticed that bad characters are displayed replacing the diacritics, any help for the how to display in properly it would be appreciated, kindly find a sample code, and the screenshot for the result
@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RichText(
              softWrap: true,
              textDirection: TextDirection.rtl,
              text: TextSpan(
                  style: TextStyle(
                    color: Colors.black,
                    fontWeight: FontWeight.w500,
                    fontSize: 20.0,
                  ),
                  children: [
                    TextSpan(
                        text: "\u{08f0}"
                    ),
                  ]
              ),
            ),
          ],
        ),
      ),
    );
  }

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0, on Mac OS X 10.15.4 19E287, locale en-GB)
    • Flutter version 1.18.0 at /Users/taha/Code/flutter_dev
    • Framework revision 8f7327f83a (6 days ago), 2020-04-06 22:11:01 -0400
    • Engine revision 49891e0653
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 1210d27678)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (5 available)
    • SM M305F   • 32003c30dc19668f                     • android-arm64  •
      Android 10 (API 29)
    • iPhone 11  • 41EB2A85-7EB4-4FD2-8978-FBBE2A681D74 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)
    • macOS      • macOS                                • darwin-x64     • Mac
      OS X 10.15.4 19E287
    • Chrome     • chrome                               • web-javascript •
      Google Chrome 81.0.4044.92
    • Web Server • web-server                           • web-javascript •
      Flutter Tools
• No issues found!

@TahaTesser still stuck in the same problem, I've updated the code and the screenshot to exactly the unicode that cannot be rendered

@TahaTesser  @iapicca
Any updates please since the app I'm working on is submitted to the play store on Android, but on iOS is pending on the problem

The issue seems to be in all Arabic_Extended-A characters.
Theses Arabic_Extended-A characters are rendered fine by native IOS but can't be rendered using flutter!

The issue is the font, try using HARMATTAN or SCHEHERAZADE or Unifont, these three fonts support Arabic Extended-A Unicode Blocks

Hi @hesham91fci
does @AlexEsso solution solve the issue for you?
Thank you

@AlexEsso Thanks a million, you really saved our project 😃 😃
@iapicca Yes I'll close the issue as resolved


Add Isolatable interface

Add Isolatable<T> abstraction
This change adds the interface and several implementations to allow SnapshotValue objects to be isolatable as long as they are running in the same JVM in which they were created.
This change goes on further to integration the usage of this new interface into the artifact transform code which to show how it can make it possible to run several of those transforms in parallel.

:x: DO NOT MERGE!

Thanks for the feedback @adammurdoch. I'll get started on both these changes right away.

Okay. I think I've addressed all the comments from @adammurdoch and @oehme.
I'm not crazy about needing to introduce ValueSnapshotStrategy and IsolatableValueSnapshotStrategy, but I think it was the right call at this point in the development of the code.
Please take another look at your earliest convenience.


BasicMathLib Events

In BasicMathLib.sol, each function is declared as constant but can possibly emit an event. Wouldn't emitting an event modify state - making this not a constant function?
Just wondering :)

That's a good catch, I believe you are correct on that, the scope of state changes only considered the context of storage and not event logs. Considering the EVM hasn't enforced constant functions then it would be allowed to do so improperly. I'm wondering why the compiler allows it though and if that should be addressed.


Combine 2q parallel XEB into two methods, one for benchemarking and the other for visualization

This way the notebook https://quantumai.google/cirq/noise/qcvv/parallel_xeb becomes
>>> res = cirq.experiments.parallel_two_qubit_xeb(sampler)
>>> res.plot_heatmap()

@eliottrosenberg this is now ready for review

@eliottrosenberg please try again. I ran it several times and didn't run into this issue, though it can happen because of the random nature of operations. I added a line to ensure results are accessed correctly.

@eliottrosenberg I added the histogram method and removed the print statements.

@eliottrosenberg I added the histogram method and removed the print statements.

Thanks, Nour!


Python 3.7.6 WORKING on Linux and Windows

Python 3.7.6 WORKING on Linux and Windows for release and debug.
Need to finish support for all previous python versions
PR #254
PR #264

Hi,
First, thank you for this amazing cmake build repo. I'm just starting into cmake and it's been quite the journey. Currntly I'm trying to cross compile python for Windows using llvm-mingw on FreeBSD.  I added (pillford) a toolchain file called mingw-cross.cmake:
# Set up the cross-compiler for llvm-mingw or vanilla gcc/mingw64

set(CMAKE_SYSTEM_NAME Windows)
set(MINGW TRUE)
set(CMAKE_SYSTEM_PROCESSOR x86_64)

if(CYGWIN OR WIN32)
    set(UTIL_SEARCH_CMD where)
elseif(UNIX OR APPLE)
    set(UTIL_SEARCH_CMD which)
endif()

#~ 64 bit llvm arch NOTE: This may be unnecessary - I don't know if CMAKE_SYSTEM_PROCESSOR will work or not...
set(CROSS_ARCH x86_64)

#~ 32 bit llvm arch
#~ set(CROSS_ARCH i686)
#~ set(TOOLCHAIN_PREFIX arm-none-eabi-)
set(TOOLCHAIN_PREFIX ${CROSS_ARCH}-w64-mingw32-)

execute_process(
        COMMAND ${UTIL_SEARCH_CMD} ${TOOLCHAIN_PREFIX}gcc
        COMMAND_ECHO STDOUT
        OUTPUT_VARIABLE BINUTILS_PATH
        OUTPUT_STRIP_TRAILING_WHITESPACE
)

message(STATUS "Bin utils: ${BINUTILS_PATH}")
get_filename_component(MINGW_TOOLCHAIN_DIR ${BINUTILS_PATH} DIRECTORY)

message(DEBUG "TOOLCHAIN PREFIX:  ${MINGW_TOOLCHAIN_DIR}/${TOOLCHAIN_PREFIX}")

set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}gcc)
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}g++)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
set(CMAKE_OBJCOPY ${MINGW_TOOLCHAIN_DIR}/${TOOLCHAIN_PREFIX}objcopy CACHE INTERNAL "objcopy tool")
set(CMAKE_OBJDUMP ${MINGW_TOOLCHAIN_DIR}/${TOOLCHAIN_PREFIX}objdump CACHE INTERNAL "objdump tool")
set(CMAKE_SIZE_UTIL ${MINGW_TOOLCHAIN_DIR}/${TOOLCHAIN_PREFIX}size CACHE INTERNAL "size tool")

set(CMAKE_FIND_ROOT_PATH ${BINUTILS_PATH})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
#set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

After cmake finishes, I initially get an error Must define SIZEOF_WCHAR_T. I patched Python-3.6.7/Include/unicodeobject.h with #define SIZEOF_WCHAR_T 2 ,  as noted here: http://trac.wxwidgets.org/ticket/12013
At this point the build runs for quite some time, but I end up with errors about a missing importlib.h. I've lost the build output at the moment but will get you a full build output if you need it. None the less, when I re-run the build I get a new error:
ninja: error: dependency cycle: ../Python-3.6.7/Python/importlib.h -> CMakeBuild/libpython/_freeze_importlib.exe -> CMakeBuild/libpython/CMakeFiles/_freeze_importlib.dir/__/__/Python-3.6.7/Python/frozen.c.obj -> ../Python-3.6.7/Python/importlib.h

I searched the interweb for "importlib.h" and found a generated file in the cpython git repo; then it all fell together. It seems Importlib.h is generated by an executable _freeze_importlib, that clearly can't run if I'm cross building. The error above seems to be telling me that this cross build won't work?
If I can get this to work, I can then add this python build system to the llvm-mingw build for windows to add python support to the debugger lldb. I will then have a complete C/C++ toolchain for windows (http://www.winlua.net)!


Chapter 2 with mistakes: Building a movie recommender with Naïve Bayes

Hi @haydenliu
Hi Dr. Yuxi
This is Orlando. One of your readers. First I want to thank you for be part of the redaction of the book Python Machine Learning By examples Built intelligence systems using Python, Tensor flow 2, PyTorch and sickit learn.
I just started the reading and it looks a very practical literature. However, I have had some problems running some of the scripts of  the example of movie recommender in chapter 2.  It seems like the data available in the report changed. I got an error related to the type of variable it seems the the problem is from the type of the variable of rating score.
Can you help us to update the data or modify the script?
Best regards,
Orlando

Hey Orlando,
Thanks for finding the book helpful. The latest edition is in
https://github.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition
Hope it helps.

Hi @haydenliu
Yes that´s the verstion that I have.  The problem seems from the data available in the repo

Once that I tun the function for unpack the .dat format I got the following error:

https://stackoverflow.com/questions/1841565/valueerror-invalid-literal-for-int-with-base-10
On Wed, Nov 30, 2022 at 9:34 PM Orlando B. @.***> wrote:

Once that I tun the function for unpack the .dat format I got the
following error:
[image: Captura de Pantalla 2022-11-30 a la(s) 11 33 48 p m]
https://user-images.githubusercontent.com/48104481/204973842-b0045ae2-3571-4a94-a78d-a8acef56b90a.png
—
Reply to this email directly, view it on GitHub
https://github.com/haydenliu/Python-Machine-Learning-By-Example-Second-Edition/issues/1#issuecomment-1333220701,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACJ7NVLBEKYPKGI7LEFT4ILWLA2HTANCNFSM6AAAAAASQMGYOU
.
You are receiving this because you were mentioned.Message ID:
<haydenliu/Python-Machine-Learning-By-Example-Second-Edition/issues/1/1333220701
@github.com>


[Request] Show pokemon moves in pokemon list!

Literally the only feature missing from an otherwise god-tier utility. Show what moves the Pokemon has in the Pokemon list!

please add tag "enhancement", i can't find where to add it.

You can't add it. It can only be added by people with admin access to the git.

#81

+1


Accessing method of wrapped component after composing

Hello,
I have a component called SearchMap that has a public method on it (I know, not ideal, but it is what it is). I want to be able to call that method from a parent component but I'm composing my component as such:
const enhance = compose(
    Config,
    connect(makeMapStateToProps, mapDispatchToProps, null, {withRef: true})
);

export default enhance(SearchMap);

When I add a ref to SearchMap in my parent I'm getting back Config which doesn't have the method I want to call on it obviously. How can I get back the SearchMap component in my parent so I can call the public method I'd like to call from it?
Thanks for any help offered, much appreciated.

Not possible to extract the public method into its own HOC? That way you can wrap upstream and both parent and SearchMap have access.

@alex-wilmer The problem is that SearchMap's public method has some things that are specific to SearchMap and the parent needs to execute it with knowledge of those items in SearchMap otherwise it would be pointless to have that method on SearchMap. Hopefully that makes sense :)

I ended up adding a getWrappedInstance() type method to my HOC that will get the proper instance for me depending on whether its wrapped or not. Problem solved :)
Not sure why I didn't think of that sooner, granted I hadn't looked at this until you posted since I did. Thanks for helping me think about it again, though!

Glad you got it working. I still think it would be better to bring your method higher up in the tree. That's more "the react way" of doing things.
If your entire app consisted of just SearchMap then your app might look like
App ->
  connect(mapState, mapDispatch)
  withHandlers({ method: props => args => props.dispatch(args) })
  SearchMap

and if you need to call that method higher up, then its trivial now to wrap withHandlers higher up in the tree so both your map and your Config can access it
App ->
  connect(mapState, mapDispatch)
  withHandlers({ method: props => args => props.dispatch(args) })
  Config ->
   SearchMap


cargo test generates untracked file

Describe the bug
When I run the cargo test command on my locale
datafusion/core/output.csv
datafusion/core/output.json
datafusion/core/output.parquet

files are generated.
I think, we should delete them after generation for cleanup. Or we should track them, to reduce surprise. These seems to originate from doctests of write_csv, write_json, write_parquet methods of DataFrame
To Reproduce
No response
Expected behavior
No response
Additional context
No response

take


Issue when create a role in the primary userstore [oracle19c]

Describe the issue:
while creating a new role via console, unable to list permissions in "Permissaion Section" of Role creation wizard, (its shows like loading permission)
Unable to list permissions in the "Permission section" of the role creation wizard, a new role is created through the console (Shown as loading permission)

How to reproduce:
Config deployment.toml
[server]
hostname = "localhost"
node_ip = "<IP_ADDRESS>"
base_path = "https://$ref{server.hostname}:${carbon.management.port}"

[super_admin]
username = "admin"
password = "admin"
create_admin_account = true

[user_store]
type = "database_unique_id"

[database.identity_db]
#type = "h2"         # Infers the local H2 DB connection details for 'DEV' pattern. SHOULD BE CHANGED TO PRODUCTION READY DB FOR PRODUCTION
url = "jdbc:oracle:thin:@<IP_ADDRESS>:1521/ORCLPDB"
username = "beta6"
password = "ora19c"
driver = "oracle.jdbc.OracleDriver"
[database.identity_db.pool_options]
maxActive = "80"
minIdle ="5"
maxWait="60000"
testOnBorrow = true
validationQuery="SELECT 1 FROM DUAL"
validationInterval="30000"
defaultAutoCommit=false

[database.shared_db]
#type = "h2"         # Infers the local DB connection details. SHOULD BE CHANGED TO PRODUCTION READY DB FOR PRODUCTION
url = "jdbc:oracle:thin:@<IP_ADDRESS>:1521/ORCLPDB"
username = "beta6"
password = "ora19c"
driver = "oracle.jdbc.OracleDriver"
[database.shared_db.pool_options]
maxActive = "80"
minIdle ="5"
maxWait="60000"
testOnBorrow = true
validationQuery="SELECT 1 FROM DUAL"
validationInterval="30000"
defaultAutoCommit=false

[keystore.primary]
file_name = "wso2carbon.jks"
password = "wso2carbon"

[truststore]
file_name="client-truststore.jks"
password="wso2carbon"
type="JKS"

[account_recovery.endpoint.auth]
hash= "66cd9688a2ae068244ea01e70f0e230f5623b7fa4cdecb65070a09ec06452262"

[identity.auth_framework.endpoint]
app_password= "dashboard"

# The KeyStore which is used for encrypting/decrypting internal data. By default the primary keystore is used as the internal keystore.

#[keystore.internal]
#file_name = "$ref{keystore.primary.file_name}"
#type = "$ref{keystore.primary.type}"
#password = "$ref{keystore.primary.password}"
#alias = "$ref{keystore.primary.alias}"
#key_password = "$ref{keystore.primary.key_password}"

# The KeyStore which is used for tls communication. By default the primary keystore is used as the tls keystore.

#[keystore.tls]
#file_name = "$ref{keystore.primary.file_name}"
#type = "$ref{keystore.primary.type}"
#password = "$ref{keystore.primary.password}"
#alias = "$ref{keystore.primary.alias}"
#key_password = "$ref{keystore.primary.key_password}"

#Google reCAPTCHA settings.

#[recaptcha]
#enabled = "true"
#api_url = "https://www.google.com/recaptcha/api.js"
#verify_url = "https://www.google.com/recaptcha/api/siteverify"
#site_key = ""
#secret_key = ""

# SMTP email sender settings.
[output_adapter.email]
from_address=<EMAIL_ADDRESS>username= "iam511release"
password= "Wso2@1234"
hostname= "smtp.gmail.com"
port= 587

Login to Console > Manage
Add new Role
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: 5.11 Beta6 Snapshot
OS: Mac
Database: Oracle19c
Userstore:  JDBC

I wasn't able to reproduce this issue in 5.11.0-Beta6 SNAPSHOT with the Oracle 19c SE2 database. If this happens again, please reopen this issue.


Feat: Improving hover effect in about section and socials (icons)

Describe the feature
In light mode hover effect makes text white and is not visible
Add ScreenShots

Facebook is hovered and is not visible due to white colour

Record

[X] I agree to follow this project's Code of Conduct
[X] I have starred the repository
[X] I'm a gssoc-24-extd contributor
[X] I want to work on this issue

@tanishirai not needed


Remove replace directive from go.mod

Fixes #615
Changes

remove replace directive from go.mod since we are supposed to be using v0.28.x libs.

/assign @dprotaso

/lgtm
/approve


Typescript Error:Type error

Error:index.ts(46, 5): The expected type comes from property 'orderBy' which is declared here on type '{ where?: CaseWhereInput; orderBy?: CaseOrderByInput; skip?: number; after?: string; before?: string; first?: number; last?: number; }'

How to solve this problem?
Or did I do something wrong?

Hey @HowardTangHw what was your resolution?

HI,@jangerhofer
I used below code to fix it, but I'm not sure this is the right way.


ATWINC1500 : (wifi_winc1500_nm_bsp.c : nm_bsp_reset) The reset function is not logical and more

Hello,
I use the nRF5340 DK and the nRF Connect SDK.
The module used is ATWINC1500-XPRO.
The bug comes from the nm_bsp_reset function in the
drivers/wifi/winc1500/wifi_winc1500_nm_bsp.c.
void nm_bsp_reset(void)
{
	gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 0);
	gpio_pin_set_dt(&winc1500_config.reset_gpio, 0);
	nm_bsp_sleep(100);

	gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 1);
	nm_bsp_sleep(10);

	gpio_pin_set_dt(&winc1500_config.reset_gpio, 1);
	nm_bsp_sleep(10);
}

At the end of the reset function (nm_bsp_reset), the reset pin stays in the active state, low physical level.
This is not the expected behavior.
The problem is that the function gpio_pin_set_dt  is not used correctly.
It is a regression. This part of the code has changed 5 months ago.

The function is used in the physical sense and not in the logical sense which is not correct because the reset pin is active in the low state.
I am convinced that the WINC1500 driver has not been fully tested, as I cannot get the module to work.
The chip_id check fails.
Thanks,
Hichem

Is this still an issue?
@hichemMenta Did you set the reset-gpio to GPIO_ACTIVE_LOW in the device tree?

@hichemMenta How did you resolve? Codebase still seems the same.


Fix wasm module reuse

CC: @pepyakin
Seems that the original cause for #2022 is somewhere in wasm module re-use.
diff --git a/core/executor/src/native_executor.rs b/core/executor/src/native_executor.rs
index 0944cbdb..f0793af3 100644
--- a/core/executor/src/native_executor.rs
+++ b/core/executor/src/native_executor.rs
@@ -58,6 +58,7 @@ fn fetch_cached_runtime_version<'a, E: Externalities<Blake2Hasher>>(
                Some(code_hash) => code_hash,
                None => return Err(ErrorKind::InvalidCode(vec![]).into()),
        };
+       cache.borrow_mut().remove(&code_hash[..]);
        let maybe_runtime_preproc = cache.borrow_mut().entry(code_hash.into())
                .or_insert_with(|| {
                        let code = match ext.storage(well_known_keys::CODE) {

This change causes the issue to disappear.
See branch https://github.com/paritytech/substrate/tree/td-debugging it's forked off from the #1800 that introduced spin::Once, but contains all the fixes that allow to reproduce currently using deployed version of https://polkadot.js.org/apps
Note that last commit is the patch above, so revert if you want to reproduce the issue:

Send one transaction from any account
Send 1-2 more transactions form the same account, they will fail with InvalidTransaction

Potential culprit: #1345

Good,  waiting fix

Potential culprit: #1345

Before c4ca27f7121f37172ae0d2d92280a947ca77edd8 is ok,  Our branch from this commit fork is good, and there is a problem with a commit after this.
Although this code **cache.borrow_mut().remove(&code_hash[..]); ** is added, this problem is solved -- （in the wasm state, runtime-api cannot be called）, but the performance of the chain is fatal.

Note that this line is rather just a hint that the problem might be coming from the memory reusing mechanism. This line effectively disables it.
It is not a proper fix.

@pepyakin @tomusdrw is this something that can reasonably be fixed in the next 48 hours?

As far as I understand the issue is that lazy statics are not working in the runtime properly because of the memory snapshot that is taken after start. Current runtime does not use lazy statics anymore, so it is not that critical.

right. where were they used?

@gavofyork: To cache storage key prefixes it seems
https://github.com/paritytech/substrate/pull/2046/files#diff-96407ba21acc3f08629ab01006199ba8L484

Ok it seems that I've found the issue.
It is not related to the .bss "section" as I've imagined initially, but similar. It is related to the .data "section".
As a recap, we are trying to reuse the memory in the following manner: we initialize the wasm instance only once, i.e. copy . On each call, we remember the lowest address touched after the instantiation and assume that this address is the start of the volatile part of the memory. After the call is finished we (effectively) zero the memory starting from the remembered address.
This strategy worked until we used mutable statics. Mutable statics are placed into the .data "section" by the current rustc/LLD and are initialized at the instantiation time. Thus, they end up behind the volatile cut off line and not being zeroed. However, they are also wasn't restored to their original values.
I've pushed the proof of concept in the td-debugging2 branch at https://github.com/paritytech/substrate/commit/3d7b27f3421818e8d6de568e02fbc2947a06246b. It declares a mutable static variable and declares a function, which increments the variable and returns it.
The test expects to call this function twice and get the same result.
The runtime should be safe as long as the compiler doesn't put anything mutable that is not worth preserving. But this means we should keep an eye on the way that rustc/LLD produces binaries and that our wasm binaries don't use static mutables for important data. This also means we should be more careful with dependencies. This is possible, but very burdensome.
If you ask me, I'd go for more conservative optimizations, e.g. a pool of instances that is replenished from a background thread or CoW virtual memory tricks.

Ah and also the stack pointer and the stack itself are located behind the volatile cutoff address, however, the stack is temporary and the stack pointer is expected to always return to the same value.
well, in theory each wasm runtime panic could hog some stack space and eventualy every call will lead to the stack overflow on each usage of the stack.
However, I think if the runtime panics we already have a problem, I guess. And this is not a network wide, if you restart a node it will start with the fresh stack.
But definitely makes me anxious, since my analysis might be limited. So ^^ might be worth noting.

We certainly need to be more careful with dependencies. Unfortunately it's really difficult to diagnose which dependencies are actually going into wasm. Any hints for tools that could help there would be appreciated.
Otherwise, let's make sure we knock this on the head for 1.1.

@pepyakin I think we should use COW mappings.  Unix-like systems support this natively via mmap and MAP_PRIVATE.

True. However, I was more inclined to think that an instance pool is better to start with since it doesn't require any special features from the wasm VM and seems to be easier to implement in a portable manner. Especially if you consider that it is not yet clear which VM we will end up with.

I tested this commit (e748c33c8ef40bd51dc122b7f11fcf26b8354957) and it seems that this bug has been fixed.

This issue is about incorrect handling of mutable global variables which is caused by module caching mechanism. The issue is known to cause #2022 which is fixed by now by avoiding usage of  mutable global variables. To my knowledge, nothing has been done on this issue.
The easiest way to reproduce this issue would be to declare a mutable global variable with some initial value, on some runtime entrypoint assert that the value of the global variable is equal to the initial value, then change the global variable. On next call the value is expected to be equal to the initial value, however, due to this bug the value will stay since from the last call.