Onboarding  enabling reactions and apiclient enhancements

What's this PR do?
This PR updates the ApiClient class to fix the get() method and add post() and delete() methods. It also updates how these methods work with fetch() and javascript promises, by correctly returning the promise to the location that instantiated the class and called it, so that it may use the .then() method to continue the chain when the promise returns a response and allow it to proceed to the next desired functionality.
It also does a bit of code cleanup and adds the <ReactionsList /> and <Reaction /> components which work together to output reactions on Reportback Items. The ReactionList component uses the updates to the ApiClient to both create or delete reactions by the current user on a Reportback Item.
Random, but also trying out leaving in a couple useful console.log() calls (and coloring them) with the ApiClient so that during local development, we can see what activity is taking place when making API calls. These logs get pulled out during builds on Production!
How should this be reviewed?
Pull down code, and checkout out slide 3. Try reacting to a few of the presented RB items. Maybe also doublecheck the database to see if reactions are being created/deleted in the dosomething_kudos table as you interact with them.
Any background context you want to provide?
Slide 3 now with reactions:

NOTE: One thing to consider... since we're not using React to create the RB items in the Reportback gallery, but we are to create the RB items on Onboarding Slide 3, I could potentially see an issue where a new user signs up for a campaign, sees the onboarding experience and then "likes" a few photos in Slide 3, but since we're not using React for the gallery, we can't dynamically update RB items in there, if in both areas, the same RB item is presented. This could happen if there are only a few items for a campaign. I've had this happen while testing and for now I don't see an immediate solution. <-- @jessleenyc the "caveat"
Relevant tickets
Fixes #6879
Refs #6910
Checklist

[ ] Tested on staging.
[ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love.

@DFurnes @deadlybutter
cc: @jessleenyc

@jessleenyc to resolve the "caveat", we could maybe have a function that gets called when reacting on an RB item in the React onboarding version, that jumps out to find a corresponding item in the gallery, and if so, then change the attributes on it?

So im getting a bit lost on the ReactionList component.
We start using the dsKudos data in the settings object,
{
 "approved": ["heart"],
 "enabled": true,
 "terms": {"heart":"641"},
 "user":"1700226"}

We then go through each approved reaction (approved array) and check if its an available term (terms array) https://github.com/DoSomething/phoenix/pull/6951/files#diff-3d725c871d1c6f13bde530ede939aefeR38
and then we save in the new approved reactions array the value of the term (641)
after we gather this data we set the state with setInitialReactions. This goes through every approved reaction we made above & sets the reaction in the state, with the key being the term id
    Object.keys(this.approvedReactions).forEach((key) => {
       reactions[key] = {

But I get lost here, because right now key is always going to be the value of heart, 641? How do you identify different users reacting...
apparently reaction list is used per reportback item. WHOOPS.
this really threw me off because (AFAIK?) we're not doing multiple kudo terms, which led me to assume ReactionList was a container of all reactions like the name implies.

@jessleenyc to resolve the "caveat", we could maybe have a function that gets called when reacting on an RB item in the React onboarding version, that jumps out to find a corresponding item in the gallery, and if so, then change the attributes on it?

I think this is going to be an edge case (especially looking at current kudos engagement). It'd be nice to consider a React refactoring of the gallery later on to tackle some of the technical debt there, rather than layering on a hacky fix for something that shouldn't affect most users.

@deadlybutter yep yep. It's a little confusing but something we were doing in the Reportback.js for the view more gallery too. We need to reconcile between the approved reactions and the available reactions, because there may be like more available but we only want to show one for now.
As for the key, yeah, it won't conflict. Say there's a reaction with key 641, in the ReactionList there can only ever be 1 item with property name 641 that contains the totals and whether current user reacted, per reportback item.
Here's a visual that helps explain. I find pictures do a better job than words:

@weerd yeah, originally i was thinking the ReactionList component applied to all the reportbacks, in which case it would have conflicted

@deadlybutter indeed! But good to call it out so we could clarify here! 💃

That drawing is my favorite thing ever. 🎨

@DFurnes iPad Pro + Apple Pencil + ProCreate. I really want all my PR descriptions to be drawings from now on, haha!

🚢

@DFurnes @deadlybutter new commit addresses avoiding the potential for "n" re-renders. Since it's a Promise I can just chain another .then() method to update the state only after processing through the forEach() loop 💃 Seems to work fine!

Nevermind. Reverted back after IRL convo w/ @DFurnes!

@weerd why did you revert?

Talked it over with @DFurnes and it's really just not a good idea to have the state mutations happening separate from the actual setting of the state via React API; it could lead to issues and bugs. We talked it over and how I had it before should be fine, but eventually we should consider making changes in a cloned object and then passing that into the state via React API. Ideally, we'd also move to using something like Redux...


Remove AWS Polly experiment

What?
Remove Polly audio player and toggle
Why?
Experiment concluded - won't implement as is now. https://docs.google.com/document/d/1Ikg-12FfuvE7ph2p2IGaMBVPmaGfpHN12FyG-ceFOLs/edit#heading=h.j7wb5f6nu37i

they're gone, as is the toggle @jennpb


Question about the table5 in FSD v2

Hi @Abyssaledge, FSD v1 and FSD v2 are really nice works. But I'm little confused about the results in Table5 of the v2 version.
The results of VoxelNext on the validation set of nuScenes are 60.5mAP | 66.6NDS, but there are 63.5mAP and 68.7NDS in the table. Are there any differences in the experiment setting compared with the official results of VoxelNext?

For fair comparison, I report the best performance of VoxelNeXt, which is provided by the author @yukang2017 here: https://github.com/BraveGroup/FullySparseFusion/issues/1

Thank you for your gently reply. I think it could be better to illustrate that the results of VoxelNext are "VoxelNext[1]+ LargeKernel3D[2]" in the caption of Table 5 to avoid confusion.
[1] VoxelNeXt: Fully Sparse VoxelNet for 3D Object Detection and Tracking
[2] LargeKernel3D: Scaling up Kernels in 3D Sparse CNNs

Thanks for your attention and reminding me. I will update this information in the next version after checking with the author of VoxelNeXt.

OK, thank you for your timely reply and I'll close this issue.

Hi @LHY-HongyangLi ,
To be clear, the result I provided here is just the VoxelNeXt actually, not combined with LargeKernel3D.
“this follows "LargeKernel3D in the Table 1" for training settings”, means that I followed the training settings, LR, epochs, weight decays... but did not use LargeKernel3D for network.
The reason why it is better than the official VoxelNeXt paper is that I disabled the gt-sampling in the last training epochs in this 63.5mAP result.

@yukang2017,
Thank you for your clarification.


Codestyle not entirely followed

as stated here: https://github.com/pivpn/pivpn/pull/1633#issuecomment-1265248162
In some cases code structure is not entirely adhering to code style which might cause some issues like https://github.com/pivpn/pivpn/pull/1633
Code order should be:
Constants
Functions
Other Logic
the root check should be inside a function and called when adequate
main function should be created where applicable (most scripts)

:tada: This issue has been resolved in version 4.1.4-test.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 4.1.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Page freeze when loading big contract

I'm still getting page freezing/unresponsive when loading this contract:
http://localhost:5173/address/0x1111111254EEB25477B68fb85Ed929f73A960582/contract
I think there is still some processing blocking the UI rendering that could be moved to async?

or maybe the contract is so big that it is not working well with the highlighter component?
I don't remember if this is the same as another one we saw in the past and decided to live with.

closing as dup of #1190


Improve compile time (or at least don't regress it)

We can use this issue to track the current compile time (and memory usage) by posting the output of cargo rustc --features all -- -Z time-passes. Also don't forget to include rustc -V.

Here are some numbers (for https://github.com/contextfree/winrt-rust/commit/2e914f7273f15085975b45fd77c6d908723762db) (without the time required to compile dependencies) showing the effect of https://github.com/rust-lang/rust/pull/36524 between rustc 1.13.0-nightly (c772948b6 2016-09-20) and rustc 1.13.0-nightly (4f9812a59 2016-09-21):

time [secs]
rlib size [bytes]

Before (Debug)
351.46
263.572.720

Before (Release)
506.68
154.972.432

After (Debug)
285.87
187.843.258

After (Release)
305.48
119.689.216

See details in a gist.

I added the #[inline] attribute to more functions in https://github.com/contextfree/winrt-rust/commit/df557dd1a1c342ede680ff779110c1994d3ee966 and measured again, this time comparing rustc 1.13.0-nightly (4f9812a59 2016-09-21) and rustc 1.13.0-nightly (d0623cf7b 2016-09-26)

time [secs]
rlib size [bytes]

Before (Debug)
250.86
99.626.880

Before (Release)
259.66
97.387.268

After (Debug)
223.87
76.829.116

After (Release)
221.5
74.582.690

Adding more #[inline] improved everything but the item-bodies checking phase, and the latest compiler changes improved compile times further!
I have updated the gist to include the latest measurements.

I just did a new test run (with PR #48), and observed that the compile times slightly decreased, but the memory usage and output rlib size increased quite a bit (as always, see the gist for details):

time [secs]
rlib size [bytes]
max memory [MB]

2016-09-26 (Debug)
223.87
76.829.116
2396

2016-09-26 (Release)
221.5
74.582.690
2384

2017-12-20 (Debug)
214.25
117.216.458
4334

2017-12-20 (Release)
215.84
114.618.966
4325

This can have many reasons, because both rustc and winrt itself changed between those two measurements. Maybe worth investigating, but I don't have time for that.


feat: add bug templates to discussions

This PR adds templates for bugs for the following discussion sections:

API queries
Token/Console
Running a node
Wallets

Currently these all use the same template content (albeit they have to be separate files) - the content could be changed or updated per discussion.
Currently the following fields in the template are optional, the rest are required:

pubkey
screenshots videos

@JonRay15 @daunatv - to see an enhanced template (wallet specific in this case) please see the preview:

https://github.com/vegaprotocol/repoplayground/discussions/new?category=bugs


0.3.0 candidate

Breaking changes, I have envisioned this as the next minor version. It should implement most of the unpulled changes from main, though I haven't checked the last couple of commits. The two primary focuses were

Reduce wrappers around things that should be passed as kwargs to e.g. odc.stac.load.
Reduce complexity by trying to enforce single responsibility as much as possible.

These things are most evident in the loader.  I removed most of the named arguments from OdcLoader so they can be passed directly to load. I also created a new abstraction called a SearchLoader which allows separation of stac searching and loading the searched items.
I made similar changes to the writers, though I tried (and haven't yet thoroughly tested) to mimic the existing functionality of DsWriter so it's a little easier to use.
I added some minor functionality here and there, particularly automatic pathrow-based searching to the landsat searcher.
I fixed some bugs in the antimeridian fixes.
I added some tests.
I started paying more robust attention to no data values, based on #31. Sensitivity to this when writing should be checked, and more tests should be written for this piece.
This should serve as the base for development and use going forward.

I've merged in the main branch... but we should be a bit cautious, because it was a messy merge!
I'd love to get this merge into main, so we only have one branch to worry about @jessjaco :-)


Server configuration information

If I want to deploy to my own cloud server, what is the minimum CPU and memory I need to purchase?

I'd be interested to know too.. it doesn't appear as though my arcface-gpu container is using the gpu?


Enable building-by-building output

Feature Request
Remove this section if your issue is not a feature request. Make sure to add the Type: Enhancement label if it is.
Feature Description
Please describe the feature you'd like implemented.
Currently there isn't an easy way to extract building-by-building results using this codebase. This would have a lot of utility for analysis of where prediction is systematically bad.
Feature Request: Changes to API
If your feature request includes changes to the cw-eval API, describe that here. Note that any changes to required arguments or argument order in the API will only be made at a major version release. See the contributing guidelines for additional details.
Will add a get_iou_by_building() method to the EvalBase object so that it returns these numbers. This will also require storing building-by-building IoU. For the moment I'm only going to implement this for the ground truth - an extension later will be to save building-by-building IoU for the predictions.

Final steps
References to other issues/PRs
If you did not already include references above, list references to relevant PRs, issues, or other pages here.
Labels
Make sure to select a Type label for your issue. The repo maintainers will add other labels, milestones, and projects (if applicable).

Issue moved to CosmiQ/solaris #5 via ZenHub


[BUG] fork/exec invalid argument

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[x] zsh
[ ] fish

Problem / Steps to reproduce
When I run fzf via https://github.com/Aloxaf/fzf-tab, there is a strange bug with previewing:

I have tried setting SHELL to different commands, but the result is the same:

Unfortunately, fzf-tab's setup is rather complex, so I couldn't create a simple reproduction guide, but I thought perhaps you can shed some light on what is going wrong. As far as I understand, no matter the inputs, this fork/exec /bin/dash: invalid argument error should not happen?
PS: Obviously /bin/dash exists on my system:
p38 ❯ /bin/dash -c 'echo hi'
hi

p38 ❯ ll /bin/dash
.rwxr-xr-x 110k root 29 Sep  2019 /bin/dash

actually ive been getting that too and not to sure why i know it happens in the preview window when i use {} or {+} but not {q} however i use replace-query it also errors out but not if i type out the query
fzfcmp () {
    local term
    local FZF_DEFAULT_COMMAND
    FZF_DEFAULT_COMMAND="infocmp $TERM -1"
    term="$(
    infocmp "$TERM" -1 | tr '=' '\n' | \
       tr '\t' '' | \
      sed 's/,$//' | fzf \
      --preview='man terminfo | rg -C10 -e {q}' \
        --preview-window='right:80:wrap' --phony \
        --bind="f9:replace-query+preview:man terminfo | rg -C1 -e {q}" \
            )"

READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT} $(awk -F= '{print $1}' <<<"${term:-''}" \
    | sed 's/,$//') ${READLINE_LINE:$READLINE_POINT}"

    if test -n "$(rg -e 'echo' <<<"$READLINE_LINE")"; then
        READLINE_LINE=$READLINE_LINE; else
READLINE_LINE="echo -e \"$READLINE_LINE\""
    fi

  READLINE_POINT=$(( READLINE_POINT + ${#term} ))
unset term
}
bind -x '"\et": fzfcmp'

first preview gives the fork/exec error unless i use {q} and manually type query (tried with all other variations of place holder)

I don't use the project so I can't really answer your question. You might want to ask this on the issue tracker of fzf-tab.
https://github.com/Aloxaf/fzf-tab/issues/77 looks related.

I am getting this issue as well. The funny thing about it is I'm having the problem on Linux
but not on Mac. When I remove --null it goes away. Why is that?


prevent change month

Hi,
i need to have something like a monthChange(event) function. I want to prevent the user from changing the month without disable the buttons, similar to dayClick(event,...). Is this somehow possible in the current version?
Thanks & Best Regards,
Thomas

Hi,
it's not possible, there is the monthChanged but it does not allow to prevent month to change.
I'll add this today, working the same way as dayClick with an event.

Thank you very much!

Can you check 2.1.0 ? :)
Demo updated : month-click

Thanks, i will check today! :-)

Everything looks fine, thanks :-)


1.16.5 world seed?

will the mod be able to get 1.16.5 world seed?

It should be, unless you use Paper or spigot... also, why didn't you just try it?


chore(main): release 0.42.2

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

files: Replace the default value of query by an empty string (#527) (696821e)
Invitations: Improve the display of the invitations on the account page (#526) (059313f)

Miscellaneous

i18n: Add a script to translate messages using Deep (#528) (448ea5b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-frontend/releases/tag/0.42.2 :sunflower:


ENH: decim wavelet at lowest level

Since https://github.com/mne-tools/mne-python/pull/3031 is now merged, might as well systematically use the decimation function at the lowest possible level in all cases.

Coverage decreased (-0.009%) to 90.747% when pulling 3698d014972bb3273a6f954cfab274899ea31da7 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

Where did Travis go?

Lgtm
@Eric89GXL are you ok?

I merged the _cwt_fft and _cwt_convolve since they overlapped quasi completely.
@Eric89GXL However, I haven't managed to parametrize an optional return_generator. From what I understand, you can't use return once yield is in the function. IMO the code is simpler if we only use _cwt as a generator (it can be useful, e.g. compute power on the fly). Feel free to take over if you think there's an easy way around it.
Also, just wondering: why do we initialize the time freq decomposition with np.complex128? That's a bit of a killer for raw TF decomposition, where the signal can be very long.

IIRC the decompositions are complex, not real (they have magnitude and phase)

Coverage decreased (-9.4%) to 81.393% when pulling 206a525ec74025784ae047dd9efd75fb04787d75 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

IIRC the decompositions are complex, not real (they have magnitude and phase)

I meant, why 128, and not just np.complex.

ah ok, it's 64 bits for real and 64 for the imag, my bad.
Otherwise ready for review.

Coverage increased (+0.001%) to 90.757% when pulling 6401c03ec5b564341c270d6de78fe1796e43d2a9 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

LGTM, +1 for merge with or without my possible minor efficiency tweak

OK i'll fix it tomorrow.
On Friday, 18 March 2016, Eric Larson<EMAIL_ADDRESS>wrote:

LGTM, +1 for merge with or without my possible minor efficiency tweak
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/pull/3034#issuecomment-198615905

It's ok to merge on my side once Travis is ok

Coverage decreased (-13.0%) to 77.804% when pulling 9ef3ba8b7829bde0405d2ec2a508394302c622e2 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

not sure what's up with coverage.

I think coverage is right. See in test_tfr.py there is not call / test of the cwt function. Don't ask me why...
the solution is to have cwt_morlet to call cwt and not _cwt
ok?

Also the mode parameter is not tested :(

OK.. although it was'nt tested before and would have thrown the same
error...
On Sunday, 20 March 2016, Alexandre Gramfort<EMAIL_ADDRESS>wrote:

Also the mode parameter is not tested :(
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/pull/3034#issuecomment-198859132

would you like help here?

Give me a moment

The previous _cwt_fft and _cwt_convolve functions were not tested, and seemed to have been buggy:
git checkout 2b04873feb2879b940875b8a9ab574b463ccc878
import numpy as np
from mne.time_frequency.tfr import _cwt_fft, _cwt_convolve, morlet

Ws = morlet(512, [10, 20], n_cycles=2)
X = np.zeros((2, 500))

for mode in ['same', 'valid', 'full']:
    coefs = _cwt_fft(X, Ws, mode=mode)
    for coef in coefs:
        z = coef

    coefs = _cwt_convolve(X, Ws, mode=mode)
    for coef in coefs:
        z = coef

crashes for both _cwt_fft and _cwt_convolve if mode="full".
I have made a test, but don't manage to get the dimensionality of "full" with convolve.
Overall, I think cwt should be made private, since we have cwt_morlet. Plus, I don't see any current usecase is using mode != 'same'.
I think this issue should be cleaned in a different PR, it's not related to the decimation issue.

Coverage increased (+0.04%) to 90.798% when pulling 70a34d892e3cda9ccea1d22171828db1854ce8f4 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

then +1 for merge

Coverage increased (+0.05%) to 90.805% when pulling e247ce526d4647e6a5632e0fca38b47f1d01f0c7 on kingjr:wavelet_decim into 9229fd6c58025d436b4b8f40d93acb813e25efce on mne-tools:master.

@agramfort ping ;)

pong


Slowdown a point of the video

hello,
I'm looking for a way to slow down a point in the video but then x time later it returns to normal speed.
Imagine recording it at 50 fps or 100 fps per second while its playback is constant at 1/25, when the car is close then use those frames. Typical of after effects programs is a retime curve.
Slow down a point of the video and then continue normal

Just cut the video I guess


Custom covers get replaced with a generated cover

Steps to reproduce

Have a locally-stored series
Allow Komikku pull up the series metadata (online and locally), so you have the chapters listed
Add a custom cover (usually named cover.extension) after the chapters are listed by Komikku
Refresh the comic info (pull down). It'll use the custom cover temporarily
Check your storage. The custom cover has been replaced with a generated cover with exactly the same file size.

Expected behavior
The custom cover should always be used rather than one generated from the available chapters.
Actual behavior
Custom covers are often replaced with generated covers.
This behaviour has been consistent from Tachiyomi.
Crash logs
No response
Komikku version
1.12.1
Android version
14
Device
Redmi A3x
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version 1.12.1.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

you are talking about local source or online source with downloaded chapter?
Do you pick a phone's image or use a URL for custom cover ?

you are talking about local source or online source with downloaded chapter? Do you pick a phone's image or use a URL for custom cover ?

local source, with local image loaded from storage.

Sure, send SS please

Sure, send SS please

Uploading spinner.mp4…
Please let me know when you've seen it so i can take it down

https://github.com/user-attachments/assets/06bcb1e4-6f21-43a3-9716-14ba40a654c9


Cyphernode Kubernetes

How would I run CypherNode on a kubernetes cluster ?

Sorry about the long delay, this one got buried under all my other notifications.
Well, basically you'd need to decompose the services described in docker-compose-sample.yaml each into a separate k8s service.
But before even attempting such epic task, the question to answer here is what problem are you trying to address, @BytesTrust? I see little to no gains from running cyphernode as a (native) k8s app/service.
If it's to reuse existing infrastructure, I would suggest creating a new image that inside pulls the cited docker-compose file to be executed. Note that you would still have to deal with the disk management.
Long story short, not possible out-of-the-box. It needs substantial tweaking to turn the docker described networks and volumes into their k8s counterparts.


Can SQL queries be made against a GraphDB?

As  a multi-model database, does Cosmos DB support making SQL queries against graph databases created using Gremlin?  E.g. other multi-model graph databases such as Orient DB enable this sort of SQL Query:
SELECT IN() FROM Restaurant WHERE name='Dante'

It is unclear whether such operations supported in Cosmos DB.

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

ID: 8584b48f-a94a-04b9-b754-7e77974053c2
Version Independent ID: cab88f8b-b622-5568-64c3-ccae1922b206
Content: Introduction to Azure Cosmos DB Gremlin API
Content Source: articles/cosmos-db/graph-introduction.md
Service: cosmos-db
Sub-service: cosmosdb-graph
GitHub Login: @LuisBosquez
Microsoft Alias: lbosq

Thanks for the ask  . At this time we are reviewing it  and we will reply back as soon as we can .

@pontusvision As of today, Azure Cosmos DB supports Apache Tinkerpop's graph traversal language, known as Gremlin.
Support for SQL queries is available only with the SQL API.

@KalyanChanumolu-MSFT , Thanks for the reply; can you tell me whether it is possible to query data that was entered using Gremlin via SQL queries?  E.g. if a gremlin query as follows adds a node:
g.addV("person").property("name", "bob")

Can the data be accessed via SQL (perhaps using a query similar to the following one:
  SELECT name from person where name = 'bob'

Thanks!

@pontusvision No, as of today, you cannot query across API's using SQL.

@pontusvision Actually you can run SQL queries against the GraphDB. We haven't documented it currently, I will discuss it with our team on adding the content. Here is how you can do it:
After you create a Gremlin API account, in the overview tab, you can see 2 URLs as shown in the following image. The .Net SDK URL is what you would use to connect to the account and run the SQL queries.

The SQL queries don't directly work in Azure portal. You instead use the connection string and connect to the account from the Cosmos explorer: https://cosmos.azure.com/ You can then run SQL queries.
However, when you run SQL queries against a graph database, the results returned aren't in the same format as you would see with the graph endpoint. The results contain the flattened multi-value JSON structure. So there Graphson specification isn't followed.

@pontusvision some more information on this, though it's possible to use SQL queries on a Graph DB, because of the data formatting considerations we determining how to migrate existing customers to who are using SQL API with Gremlin. So it's recommended that you use different APIs for different use cases.

@pontusvision We will proceed to close this issue now.
If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


chore(clerk-js): Disable avatar shimmer for now

Type of change

[ ] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[x] other: chore

Packages affected

[x] @clerk/clerk-js
[ ] @clerk/clerk-react
[ ] @clerk/nextjs
[ ] @clerk/remix
[ ] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[ ] @clerk/backend
[ ] @clerk/clerk-sdk-node
[ ] @clerk/shared
[ ] @clerk/fastify
[ ] @clerk/chrome-extension
[ ] gatsby-plugin-clerk
[ ] build/tooling/chore

Description

[x] npm test runs as expected.
[x] npm run build runs as expected.

@desiprisg Could you add the reasoning of this change in the PR description?


Edit CSV file using table editor

since github has rendering-csv-and-tsv-data feature, but cannot render it when editing by clicking the pen icon.

it it very convenient for table editor cause the presentation is easier to edit than comma-separated

By the way, I doesn't know github if has roadmap to support it.
there is no public roadmap found for it : https://github.com/github/roadmap/projects/1?card_filter_query=csv
my test repo: https://github.com/zhang699/csv-repo/blob/master/test.csv

This would be interesting, but it needs a whole editor to add/delete columns and UI to configure CSV parsing; We can’t add it to Refined GitHub


Extension icons don't render in the remote WSL instance with VS Code Insiders (works with VS Code)

VSCode Version:Version: 1.46.0-insider (user setup)
Commit: da3bf754c3c0eabda1dc80ed9d627679ee560697
Date: 2020-05-19T10:07:59.927Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041
OS Version: local OS is Windows, remote connecting to WSL (Ubuntu 20)

Steps to Reproduce:

Open some folder under WSL (Ubuntu 20).
Install some extension in the remote WSL instance.

Bug: The extension icon doesn't render. It does with non-Insiders. See the screenshot:

Does this issue occur when all extensions are disabled?: N/A

Also, when I open the Extension page for an extension, the currently selected local extension icon gets rendered for the currently selected remote icon. See the screenshot:

I observed this with other action icons too.

I have asked @aeschli to try to repro because he has a WSL2 working setup and he was not able to do so.
@sean-mcmanus Can you please check again, maybe there was some kind of problem that got resolved in the meantime on Insiders?

That's what I get on Windows 19041, VSCode Insiders 1.46.- 595d2b96 (2020-06-03)

Yeah, it seems fixed now.


property of undefined after trying to add a row after deleting everything.

￼First I delete everything from the table by selecting all the checkboxes, I deleted everything using my own delete function which just clears out the array. Then I try adding an item which updates an array and re renders the component and I get the following error.
Uncaught TypeError: Cannot read property 'name' of undefined  (name is a dataField)
at TableBody.
at Array.map (native)
at TableBody.
at Array.ma (native)
at TableBody.render
However, after refreshing, then I'm able to start adding items again without the undefined error.

@fudgecakes, could you please show you code?  thanks, keep your code simple and minimal.

Sorry Im not able to show any code. Is there a way to customize the functionality of the delete button and add button? Also in V3.0.0 release, I will be able to add my own buttons to the action bar right?

Sorry Im not able to show any code

ok, because I cant reproduce this issue so I'll close it, but is welcome to open it anytime if you can provide more information

Is there a way to customize the functionality of the delete button and add button

Yes, you can do i on `v3.0.0., the newest beta version is https://github.com/AllenFang/react-bootstrap-table/releases/tag/v3.0.0-beta.9 and these is example you can check for customization delete button and add button

Also in V3.0.0 release, I will be able to add my own buttons to the action bar right?

Of cause you can do it on v3.0.0, check example


Support Installation of Kuadrant via an Operator

Use Case
As a cluster admin, I would like to install Kuadrant on to my OpenShift cluster so that I can provide my development teams with the tools needed to protect their services and APIs.
Options
Provide an Operator available via the Operator Hub that can install the Kuadrant components onto a cluster that already has Isito installed.
Questions:

how does gateway API get installed on the cluster (cluster admin could probably do this but it needs to be a clear pre-req) another option might be to have it installed by the operator installing Istio.

Demo

Show a cluster with Isito pre installed
Show installing the kuadrant operator via OLM
Show Kuadrant is configured on the cluster (Authorino is registered as an AuthProvider)
Show the kuadrant CRDS as available

Done

[ ] Kuadrant Operator that can install the kuadrant components (Limitador, Kuadrant Controller, Authorino)
[ ] Kuadrant CR that allows Kuadrant to know where the Istio installation is so that it can update the istio config with Authorino
[ ] Authorino set up in Istio as a Auth GRPC service
[ ] #109

@mikenairn could you give an overview of the current state of the operator?
I believe it will setup limitador and authorino and set up their CRDS via OLM dependencies, but currently has no Kuadrant CRD for any additional setup needed

@maleck13 Yes, currently just installs the dependency operators(authorino, limitador) via OLM and deploys the controller. It currently has no reconciliation loop of it's own (kuadrant CR).


libuv: expand the steaming pile of unsandboxable tests

Description of changes
I can't reproduce OfBorg's failure on my own hardware:
https://logs.nix.ci/?key=nixos/nixpkgs.209870&attempt_id=0d5c4dad-7738-4204-ad65-25f6ab51a5cf
LibUV tests are ultra-flaky.
Things done

Built on platform(s)

[x] aarch64-linux

[x] Fits CONTRIBUTING.md.

This is happening on my nixos x86_64 machine too, so I don't think it's restricted to aarch64.

...along with tcp_bind6_error_addrinuse_listen too

should target staging

Hmm for quite a few people it's breaking master though, so making them wait for the next staging cycle seems kinda mean.

fix'd up the commits

:thinking: I ran into this when doing a staging-22.11 PR (https://github.com/NixOS/nixpkgs/pull/214874), shall we do a backport?
https://logs.nix.ci/?key=nixos/nixpkgs.214874&attempt_id=f696d55a-bec8-4b8a-8988-84cf1fa2bd80

Funnily enough, this has nothing to do with flakiness. It's a kernel bug!
See https://utcc.utoronto.ca/~cks/space/blog/linux/KernelBindBugIn6016 (thanks vcunat for pointing this out).

Funnily enough, this has nothing to do with flakiness. It's a kernel bug!
See https://utcc.utoronto.ca/~cks/space/blog/linux/KernelBindBugIn6016 (thanks vcunat for pointing this out).

Hrm, that blogpost links to this bug which says "Yes, this worked in 6.0.15 and before."  None of my machines run 6.x kernels; they're all on 5.10.x and a few stragglers using 5.4.x.
So maybe there are multiple issues here, but at least one of them isn't the kernel bug above.

@amjoseph-nixpkgs What 5.15 (presumably) revision do your machines run? It seems that it affects recent 5.15 versions as well, see<EMAIL_ADDRESS>

Looks like you replied as I was editing away the stupidity of my first response :)

I just helped a user track down this issue, here's some data from the debugging, if it helps (I didn't come across this PR right away):

uname -r (on NixOS)
CPU
Test failure appears

5.15.91
Intel Core(TM) i5-6500 CPU @ 3.20GHz
Yes

5.15.0-60-generic
Intel Core(TM) i7-7500U CPU @ 2.70GHz
No

5.15.86
AMD Ryzen 7 3700X 8-Core Processor
No

Here's a repro script
```bash
sudo rmr /tmp/store
store="--store /tmp/store"
drv="github:NixOS/nixpkgs/3954218cf613eba8e0dcefa9abe337d26bc48fd0#libuv"
fetch all build deps
nix print-dev-env $store $drv --substitute >/dev/null
build drv
nix build --no-link --print-out-paths -L $store --no-substitute $drv
cleanup
sudo rmr /tmp/store
</details>

Hi @erikarvstedt, this was a kernel regression in 5.15 starting with 5.15.88, see the LKML thread I linked above<EMAIL_ADDRESS>


npm_package NoMethodError

Cookbook version
6.0.0
Chef-client version
16.2.73
Platform Details
Mac OS 10.14
Scenario:
When the cookbook compiles I get the following NoMethodError:
undefined method `npm_package' for cookbook: nodejs, recipe: npm_packages :Chef::Recipe
Steps to Reproduce:
Added nodejs cookbook as dependency in metadata.rb:
depends 'nodejs'
added include_recipe 'nodejs' to default.rb
Cookbook fails to compile with the error described in ###Scenario
Expected Result:
Successful cookbook compile
Actual Result:
Cookbook fails to compile with NoMethodError

thanks for the report of the problem.
This issue should be fixed in version 7.0.1 of nodejs.  Newer versions of check required changes to the custom resources. The provides statement was added.


ubuntu builds don't respect download-url

I believe this function should be considering the download-url but it appears to be ignoring that configuration?

I guess the person who submitted that change only cared about macOS and I didn't notice.
I've released v1.9.0 that respects this option on Linux and Windows runners.


Change slf4j-simple to a test runtime dependency

Add compile dependency on slf4j-api.
Change slf4j-simple to only a test runtime one.

This should resolve https://github.com/snowplow/snowplow-java-tracker/issues/188

Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://github.com/snowplow/snowplow/wiki/CLA to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.

Signed the CLA, thanks

Confirmed! @dnedev  has signed the Individual Contributor License Agreement. Thanks so much


Fix bug where generate(0) returns a single spec instance instead of empty array

Spec.generate(0) ought to return an empty array, but right now it returns the same as Spec.generate(). This PR fixes this behavior.

Coverage remained the same at 100.0% when pulling c649c38109a404bc86609205af761d428972f182 on generate-empty-array-fix into 5df3c09317cd7c90f990fb2a5e1d08bcde895a69 on master.


Touchbar buttons lacks state awareness

The touchbar icons seems to lack the state of the player; eg play/pause (is track playing) or if a track is liked.

Play/pause state works for me. If it still seems broken for you, please provide more details.
Like state never worked (it definitely should). @rmaes4 did some work to implement like state management on the touch bar but we never got to finish it.

Sorry I’ve been busy. Maybe I could take a look this weekend

@salomvary said:
Play/pause state works for me. If it still seems broken for you, please provide more details.

Yep, can confirm. It's just state (are we playing or are we paused) that doesn't.

I'm having this issue, or some cousin to it.

When the touchbar button is controlling Soundcleod, it doesn't change state when I press it, but it does toggle play/pause in Soundcleod
When iTunes is playing music, play/pause still toggles Soundcleod and doesn't affect iTunes
I think I had this issue with the regular play/pause button on my older Macbook.

Let me know if you would like any logs or videos or whatever that would help diagnose this.

I realize now that I didn't express myself very well. I was specifically referring to the MediaPlayPause,MediaPlayNext,MediaPlayPrevious global shortcuts and not the buttons provided by Soundcleod.

Perhaps the native mediakey support in chrome 73 can find its way back to electron as well: https://developers.google.com/web/updates/2019/02/chrome-73-media-updates
..too bad electron 5 (release in 3 weeks) is targeting chrome 72.


updateMouseCursor overrides SFML setMouseCursorVisible(false) call

I have an application which has a toggle for when I'm debugging & when I'm testing and I noticed a problem with the function:
void updateMouseCursor(sf::Window& window)

I have my mouse cursor set to hidden when testing (and all ImGui windows not set to be created) but this function kept overriding the value. I narrowed it down to the following line:
if (io.MouseDrawCursor || cursor == ImGuiMouseCursor_None) {
    window.setMouseCursorVisible(false);
} else {
    window.setMouseCursorVisible(true);

    sf::Cursor& c = s_mouseCursorLoaded[cursor] ? *s_mouseCursors[cursor] :
                                                    *s_mouseCursors[ImGuiMouseCursor_Arrow];
    window.setMouseCursor(c);
}

With the above logic if you have your ImGui IO set to not draw the cursor it takes the else branch. Do I need to set both of these values in ImGui and disregard the SFML RenderWindow function?
ImGui::SetMouseCursor(ImGuiMouseCursor_None); // used this to get round the issue
io.MouseDrawCursor = false; // this was the line that made me aware of the issue

Hello
Yeah, I see no other way of handling this, unfortunately. When you set io.MouseDrawCursor to true, we definitely need to disable the cursor. And when users then set io.MouseDrawCursor to false, there's no way to recover from that properly without requiring users to manually call window.setMouseCursorVisible(true); afterwards which doesn't seem ideal to me.

I tried experimenting with it but I couldn't find a great alternative either, I guess for now calling it manually is the only way. May be worth leaving a comment about it somewhere just in case someone else runs into it. But aside from that, I can't see a better way to handle it either


No proper license

There are legal systems (for example in the US and in the EU) where copyright sticks to authors and just declaring that something is in the public domain is not enough to facilitate safe re-use (without accidental copyright infringement), see https://en.wikipedia.org/wiki/Public_domain#Dedicating_works_to_the_public_domain. In my understanding, the only reliable way for donors to work around their copyright is to provide a suitable license. For example, minizinc-examples are issued under the MIT license and hence it is safe to re-use, modify, and redistribute them.

Good point, thanks.


Compatibility OmniLight turns everything green, only for XRCamera

Tested versions
reproducible in  4.2.1 and 4.3-dev6 at the least
System information
Windows 10, i5, Geforce 1070, as well as tested on quest3 (BUILD)
Issue description
do you guys know of a green-shifting error with omnilights in the compatability renderer, only caused with a xr camera?

error disappears in other renderers.
only with a xr camera, uses only a origin, a camera, and the given xrtools starter
tested in different scenes, tested in different project but with the same assets and
only with omnilights
anything in its affecting range is shifted green (albedo wise. acts like any color, alpha and darkness affect it)
only caused when it has a procedural skybox or fog (sky affect to 0 has no affect)
(custom color and clear color is fine, but fog breaks it if enabled)
i dont seem to notice any abnormal choices pertaining to rendering in settings
havent tested cross-devices (but builds have been tested on a quest 3, no difference)
seems to happen to all shaders in 3d-space atleast
light doesnt actually emit when error. 😕
disabled ambient and reflected light has no affect
disabling fog in the MATERIAL, does not stop the issue in its respective edgecase

PICTURE NOTE : the directional light is fine, i had it turned off to notice the omnilight easier in these pictures. it doesnt seem to affect the bug. also if it was off for the skybox-only it would've been pitch black. the omnilight is on in all these pictures

Steps to reproduce

use compatability renderer
use monolight in a scene.
have fog or procedural sky enabled
have xrcamera rendering

thats the best i got for ya :/
Minimal reproduction project (MRP)
how the hell do i fit this in 10Mb???
https://drive.google.com/file/d/1CKaiCyspeKlmJxetN3smaXchhZn4tPtQ/view?usp=sharing

Still no clue whats causing this, but was able to reproduce this without needing XR hardware:
StereoFogOmniBug.zip

This took a lot of puzzling but I found it:
For sky we are using uniform location 4 and optionally 5 for respectively out directional light buffer and our multiview buffer.
In our scene shader we've reserved uniform location 4: SCENE_EMPTY, // Unused, put here to avoid conflicts with SKY_DIRECTIONAL_LIGHT_UNIFORM_LOCATION.
But uniform location 5 is our omni light buffer.
Ergo, in multiview we're using the wrong buffer

opened the project on my end using 4.2, it was still green, checked again on 4.3, it was blue. downgraded to 4.1, it was green.
heres 4.1

how has this never been brought up in detail?? this is such a blatant visual error. wouldn't almost every quest3 dev run into this??
i noticed it doesnt cause a change on a albedo color of (0,0,255) like the grass, but when using a value of (255, 255, 0) it darkens the color?? what operation can cause this?? some kind of averaging?

this is light on

this is light off

back to 4.3
which seems to be different from yours, where it makes it glow.
also worthwhile noting that the grass still isnt affected
weirdly enough ive noticed something.
so apparently, the bug acts completely different depending if shadows are enabled, it seems to be an "additive" force only to anything with a blue hue. affects end result of albedo

@Fire551 basically it was just getting junk data for Omni lights, using multiview data from the sky shader instead. So the output will be very unpredictable but definitely completely wrong.
I'm pretty sure this bug goes all the way back to Godot 4.0.


running with v2.2

Hello, I am running AF v2.2 in a docker container:
Is your step-by-step compatible with v2.2?
Do I need to run step-by-step in my v2.2 container?
Thanks for making this available.

Yes, now it support for v2.2. You must run this step-by-step protocol in the same environment with AlphaFold (in docker container).

Thank you.


replace toast component with sonner from shadcn/ui

@AmoabaKelvin would luv to give it a try , not familiar with next.js but will try , could tell me where is the toast component used as well

Hello @RISHIKESHk07
Thank you very much for looking into this, currently, all the components we use are from shadcn/ui. There was some previous toast component they provided but that has been updated to another component, Sonner so we need to make all the necessary updates for our previous toasts
The toasts are found mostly in this file: https://github.com/AmoabaKelvin/ishortn.ink/blob/c0b03d5d6c7b0e048ea62e0aeb8b44070bfe0694/src/components/dashboard/link-overview/link-showcase.tsx
You can do a quick search of toast in your IDE in case there are other parts where it is located.

@RISHIKESHk07 I hope you are doing well!
Any progress on this?

Is there Default Unkey and clerk crendentials for .env  , should i make them again ? Do not have much idea my self

Sorry about that, @RISHIKESHk07
I needed to give you a link to the documents as well, so you can go through them and set them up.
Here you go: https://ishortn.mintlify.app/environment-variables


fix: branch name

Signed-off-by: Nandita Koppisetty<EMAIL_ADDRESS>Explain what this PR does.

Codecov Report

Merging #44 (2aa57b5) into main (48612fa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   81.62%   81.62%
=======================================
  Files          16       16
  Lines         675      675
  Branches       70       70
=======================================
  Hits          551      551
  Misses        106      106
  Partials       18       18

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Clue Item Checker

Check if an item you withdraw from your bank is required for any clue step - I imagine items must be manually added to the code(?).

Duplicate of #3105


[nemo-qml-plugin-systemsettings] Use NemoDBus::Interface rather than QDBusInterface. Contributes to JB#55291 OMP#JOLLA-506

QDBusInterface performs a blocking introspection on construction.
Avoid this by using NemoDBus::Interface instead.

Still WIP, do not merge.

Avoiding QDBusInterface is good, but why change all the other standard qt api that already works good? There should be a reason on using dbus wrappers but now all the classes are not even using any QDBusInterface.

What are you referring to?  I only changed the QDBusInterface to NemoDBus::Interface (and then, in the cases where we also needed to change QDBusConnection to NemoDBus::Connection because NemoDBus::Interface uses that one, I also updated e.g. signal connections from the QDBusConnection to NemoDBus::Connection -- which is just a simple wrapper anyway).  There are zero other changes in the PR.

Well, that wasn't entirely true - there was one case where I had converted a QDBusConnection to a NemoDBus::Connection which was unnecessary.  I've now reverted that change.

And added suppression of some spurious warnings from udisks2 dbus calls.

No longer WIP, this is now ready for review.  Manual testing steps:
- plug/unplug USB, see charger status change in status bar
- wait a few minutes, see battery percentage drop in status bar
- settings -> language -> change language -> device should reboot.
- location settings: set custom mode, enable/disable gps, backstepping each time.  Should change connman gps technology enablement status.
- nfc settings, get enabled/set enabled.
- user settings, enable / disable guest user, add or remove additional user (NOTE: I only checked the guest user..)
- storage - check memory card is found

@aroditelev review appreciated also

Avoiding QDBusInterface is good, but why change all the other standard qt api that already works good? There should be a reason on using dbus wrappers but now all the classes are not even using any QDBusInterface.

QDBusInterface performs a blocking introspection on construction. Avoid this by using NemoDBus::Interface instead.

If you just want QDBusInterface without the truly diabolical bits that's QDBusAbstractInterface.

QDBusInterface performs a blocking introspection on construction. Avoid this by using NemoDBus::Interface instead.

If you just want QDBusInterface without the truly diabolical bits that's QDBusAbstractInterface.

Is there any reason to prefer QDBusAbstractInterface over NemoDBus::Interface in this case?

This has a few of these blocking calls (which it had also before, it's not a new thing) so I wonder how much work it would be to refactor those to be asynchronous. But even without that this seems like a good improvement and I didn't see mistakes in the code (apart from that already existing typo that I commented about) so I think it looks good.

There are currently four blocking calls that I can see:
DiskUsageWorker::calculateApkdSize()
DeveloperModeSettings::usbModedGetConfig()
LocationSettings::gpsFlightMode() (and also setGpsFlightMode())
LanguageModel::setSystemLocale() (calls reboot)
The last one should stay synchronous.  In LocationSettings, gpsFlightMode()/setGpsFlightMode() specifically has a synchronous vs asynchronous mode selection, presumably asynchronous is used for UI applications and synchronous is used for e.g. MDM.  The first two are currently designed as synchronous property lookups, so potentially could return some cached value and emit change signal when ready, but probably simpler to leave as-is for now.

JP didn't find any regressions with the RPMs I attached to the bug.  Should I merge this one, or are there still some changes which should be made to the PR first?

@adenexter your opinion about this MR is needed, since you reopened it.

@pvuorela  please look again

Rebased


Use ServerAction to call URI in central server service

For instance, replace ChargingStationSetChargingProfile byServerAction.CHARGING_STATION_SET_CHARGING_PROFILE:
Current:
 return this.httpClient.post<ActionResponse>(${this.centralRestServerServiceSecuredURL}/ChargingStationSetChargingProfile, body,
Expected:
 return this.httpClient.post<ActionResponse>(${this.centralRestServerServiceSecuredURL}/${ServerAction.CHARGING_STATION_SET_CHARGING_PROFILE}, body,
Do it for all REST calls

Done in commit 0540a485753a2c220a9eaf3e338dc6da1627caf3


Add caching and fallback capabilities

For example, for the current 15 minute K-line, the data is changed, and can only be updated at the end of the current 15 minutes. How to change the newly added K-line without changing the original data set.

Hi @lei1996. Which indicator are you using? If I understand you correctly, you want to change the last value that you have passed to an indicator's update method. Am I right?

Hi @lei1996. Which indicator are you using? If I understand you correctly, you want to change the last value that you have passed to an indicator's update method. Am I right?

Yes, I used a combination of RSI and MACD indicators
I have solved this problem, that is, every time I generate a K-line, I new instance again
Although this will cause double counting

Happy that you found a workaround! I want to keep this library here to its fundamentals which is doing the calculations for technical indicators. Caching and fallback capabilities should be implemented in the applications that make use of these indicators, so you did everything right. 👍


in loose mode, hovering over a component should should the comment block on the actual component, especially if there isn't a comment block on the registrys entry

yeah?
right now the only hove block shown in loose mode is that which is on the registry entry -- which doesn't carry over to gjs/gts.
defining the comment on the actual component does carry over to gjs/gts.

This isn't something we're going to try and fix; it's a fundamental limitation of loose mode. See https://www.youtube.com/watch?v=MLpP8D3cY7M&list=PLelyiwKWHHApkoeXQjwKPHPAHgKXZyl3t&index=2&t=3098s for details.

Gotchya, so the solution is to move things to not loose mode.
perfect muahaha


JsonModel: Dict type keys are converted to strings

When dictionary fields are retrieved from redis the keys are converted to strings.
Example:
class DictTest(JsonModel):
    spotted: Optional[dict] = None

test_dict = {259: {'mastercard': [[302, 183, 408, 301]]}}
item = DictTest(spotted=test_dict)
item.save()

fetched = DictTest.get(item.pk)
print(fetched.spotted)
> {'259': {'mastercard': [[302, 183, 408, 301]]}}

That works, thanks.  Closing the issue.


fix: update type definition of @telemetry & @server.

Summary:
update type definition for @telemetry
Issue Reference(s):
Fixes #1655
Build & Testing:

[x] I ran cargo test successfully.
[x] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

[ ] I have added relevant unit & integration tests.
[ ] I have updated the documentation accordingly.
[x] I have performed a self-review of my code.
[x] PR follows the naming convention of <type>(<optional scope>): <title>

/claim #1655

Summary by CodeRabbit

Refactor

Updated the configuration for Apollo integration, including enhanced parameter settings for better customization.
Modified the batch directive's type and added input fields for setting various parameters.

Hey @tusharmath, I couldn't find the batch.maxSize field within the @server directive.


Add Ranking System to Algolia Search

That feels like it should work. @quadratz can you test this again review the PQ?

Not good. They throw an error if there is any line of code other than new Crawler(...), and the pageRank property is not available.
[Error] parsing_error
Crawler is not defined
raw object
{success: false, code: 400, message: "parsing_error", details: Array(1), lineNumber: null}
success: false
code: 400
message: "parsing_error"
details: (1) [Object]
0: Object
label: "config"
type: "format"
message: "Crawler is not defined"

Maybe we can inject searchRank="-1" attributes into every page of ref. I will look into them later.

Maybe we can inject searchRank="-1" attributes into every page of ref. I will look into them later.

Is this something you'd want to include in #1024?

Keeping the work in this PQ is better, I think.

Review please --> https://cm-grammy.netlify.app/

Awesome!

@quadratz IT HAS SECTIONS? DAMN that's so sweet, let's get that juicy junk merged right awaY!

@roj1512 we're ready to have this merged now 😅


Bug "I invited myself"

(Click for better quality)
This has already happened twice. I don't know what to attribute this bug to.
(I didn't invite anyone, I just refreshed the page)
When I updated again, it disappeared.

This happens when you reload microStudio right after having edited something ; you are displayed as being another editor of the file, as if you were editing it from another tab or from another browser. It should be fixed with my next commit.


[feature request] large scale embedding for sparse features

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux CentOS 7
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 1.4.0 release
Python version: python2.7
Bazel version (if compiling from source): 0.9.0
GCC/Compiler version (if compiling from source): gcc4.8.5
CUDA/cuDNN version: -
GPU model and memory: -
Exact command to reproduce: -

In my scene, training data is very large, we have 10e10 unique values(string) for embedding in one sparse column. In short, model structure is “input->embedding->NNs”. I set hash_bucket_size to 15e10 for low hash collision. sample code:
col0=tf.contrib.layers.sparse_column_with_hash_bucket("feature_id", hash_bucket_size=1.5e11)
cols=[tf.feature_column.embedding_column(categorical_column=col0, dimension=8)]

in above example, Tensorflow new a Variable with shape [1.5e11, 8]
Some problems:

memory waste, more than 0.5e11*8*4Bytes memory not used.
hash collision, though enlarging the hash_bucket_size, it might occurs conflict. I don't know how much it influence on model.

Is there any suggestions in Tensorflow in this case ?
In my opinion:
Define a new Variable for embedding, need not define the first demension. It will malloc memory for this Variable when the new value is embedding_lookup. It will solve the two problems mentioned above.
Thanks

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

@tensorflowbutler
updated, thanks

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

cc @ispirmustafa @roumposg, who may have more thoughts on this issue / feature request.
I question I'm wondering is whether hash-based embedding is appropriate for sparse features with number of unique values as large as 10e10.

(I am re-opening this issue because it might be a legitimate feature request.)

Hi @candyzone ,
I would use multiple hash keys to mitigate hash collisions. It will let model to differentiate collisions.
It's implemented as hash_keys argument of sparse_column_with_hash_bucket.

@caisq @ispirmustafa thanks, I see that API's usage, but it cannot solve my problem.
First is memory waste, we store embedding in Variable (a Tensor), only part of Variable is valid, the others wouldn't be lookup, this part of Variable is invalid, waste.
Second is Variable's first dimension(API's parameter hash_bucket_size) is fixed, so that it may cause hash collision and limit feature number in OnlineLearning case.
I think TensorFlow can provide a EmbeddingVariable (inherit from tf.Variable) that has an unknown first dimension and fixed other dimensions in Variable definition, it can implement using hash-base structure.

I have the similar requirements and it is also an essential problem in online learning.

Nagging Assignee @tatianashp: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @tatianashp: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

We currently don't have anybody working on this. It would be great if you could help us by working on this and submitting a PR. Let us know if you need further clarification. Thanks!

@yuefengz Here is my issue.

Reopen this issue since we get huge number of similar feature request in China. But we will still need to think about how to support it. Contribution is welcomed.

Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.

Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.

Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.

Please remove the assignee, as this issue is inviting external contributions. Otherwise, remove the contributions welcome label. Thank you.

Anyone starts working on this? Looks like this is a common requirements for online learning.

I have the similar requirements and it is also an essential problem in online learning.

me too

@candyzone TensorFlow use static computation graph, which means that TensorShape of inputs and outputs in each Op must be inferred at graph construction. So, I think it's not possible to dynamically grow embedding tensor's dim size in online learning case. (Correct me if I'm wrong..LOL)

@candyzone TensorFlow use static computation graph, which means that TensorShape of inputs and outputs in each Op must be inferred at graph construction. So, I think it's not possible to dynamically grow embedding tensor's dim size in online learning case. (Correct me if I'm wrong..LOL)

For dense layer, Variable's shape must be fixed, because the auto differential depend on the Variable‘s shape, gradient are dense Tensor.
But for sparse layer, gradients is list<pair<index, gradient>>, it allow us to make a SparseTensor that first dim is mutable, other dims is fixed. It seems that work well in Variable update.

In principle that's implementable, but the current tf Variable ops do not support this type of dynamic growth.
If you'd like to extend them to do so please write an RFC and we'll discuss there. I agree this is potentially very useful.

@candyzone,
Related PR  was closed. Could you please let us know if the issue still persists in the latest version. Thank you!

Closing as stale. Please reopen if you'd like to work on this further.

.


Extra repartitions in physical plan and strange optimizer behavior overall

Describe the bug
Hi everyone!
While developing my project on top of DataFusion I faced with unexpected physical plan after the optimizer was applied. I have a custom PartitionedAggregateExec node that has required_input_distribution set to Distribution::HashPartitioned on columns project_id and user_id This doesn't help, optimizer does RepartitionExec: partitioning=RoundRobinBatch. Moreover, I tried to add the Repartition node to the logical plan but it was erased by the optimizer.
Additionally, projection doesn't push down and sort disappears.
To Reproduce
My logical plan:
TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0]
  PartitionedAggregate: ...
    Filter: project_id = Int64(1) AND created_at >= TimestampNanosecond(1705419428144118000, None) AND created_at <= TimestampNanosecond(1706283428144118000, None) AND event = UInt16(13)
      Sort: project_id ASC NULLS LAST, user_id ASC NULLS LAST
        Repartition: Hash(project_id, user_id) partition_count=12
          Projection: project_id, user_id, created_at, event
            TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0]]

physical plan:
PartitionedAggregateExec, metrics=[]
  CoalesceBatchesExec: target_batch_size=8192, metrics=[]
    RepartitionExec: partitioning=Hash([project_id@0, user_id@1], 12), input_partitions=12, metrics=[]
      RepartitionExec: partitioning=RoundRobinBatch(12), input_partitions=1, metrics=[]
        CoalescePartitionsExec, metrics=[]
          ProjectionExec: expr=[project_id@0 as project_id, user_id@1 as user_id, created_at@2 as created_at, event@4 as event], metrics=[]
            CoalesceBatchesExec: target_batch_size=8192, metrics=[]
              FilterExec: project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, metrics=[]
                RepartitionExec: partitioning=RoundRobinBatch(12), input_partitions=1, metrics=[]
                  ParquetExec: file_groups={1 group: [[file.parquet]]}, projection=[project_id, user_id, created_at, event_id, event, str_0], predicate=project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, pruning_predicate=project_id_min@0 <= 1 AND 1 <= project_id_max@1 AND created_at_max@2 >=<PHONE_NUMBER>144118000 AND created_at_min@3 <=<PHONE_NUMBER>144118000 AND event_min@4 <= 13 AND 13 <= event_max@5, metrics=[num_predicate_creation_errors=0]

A lot of repartitions here, no projection on ParquetExec (see extra str_0 in ParquetExec), and the sort has disappeared.
Expected behavior
I expected something like that. Sorry, it might contain mistakes since I wrote it by hand:
PartitionedAggregateExec, metrics=[]
  CoalesceBatchesExec: target_batch_size=8192, metrics=[]
    SortExec:
      RepartitionExec: partitioning=Hash([project_id@0, user_id@1], 12), input_partitions=12, metrics=[]
        FilterExec: project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, metrics=[]
          ParquetExec: file_groups={1 group: [[file.parquet]]}, projection=[project_id, user_id, created_at, event_id, event], predicate=project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, pruning_predicate=project_id_min@0 <= 1 AND 1 <= project_id_max@1 AND created_at_max@2 >=<PHONE_NUMBER>144118000 AND created_at_min@3 <=<PHONE_NUMBER>144118000 AND event_min@4 <= 13 AND 13 <= event_max@5, metrics=[num_predicate_creation_errors=0]

E.g. read certain cols and filter from parquet -> partition by hash -> sort -> my node
Additional context
BTW, can I do explain verbose, from the Rust code?
Thanks!

The original plan you show has a TableScan at the top -- is this a projection? Or is it a view definition somehow?
My reading of the plan
TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0] <---- this says it needs all columns
  PartitionedAggregate: ...
    Filter: project_id = Int64(1) AND created_at >= TimestampNanosecond(1705419428144118000, None) AND created_at <= TimestampNanosecond(1706283428144118000, None) AND event = UInt16(13)
      Sort: project_id ASC NULLS LAST, user_id ASC NULLS LAST
        Repartition: Hash(project_id, user_id) partition_count=12
          Projection: project_id, user_id, created_at, event
            TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0]]

As for the repartitioning i think that is happening to try and run the filter in parallel It is somewhat messy but not obviously wrong to me
The optimizer is going to try and satisfy the requirements stated by the topmost ExecutionPlan in your tree. Thus I think figuring out what the top most plan node is and what it is requesting of its input is the best way to understand what DataFusion is doing in this case

The original plan you show has a TableScan at the top -- is this a projection? Or is it a view definition somehow?

No. str_0 is an extra column that I wanted to get rid of. My actual logical plan is:
logical plan: TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0, str_1, str_2, str_3, str_4, str_5, str_6, str_7, str_8, str_9, str_10, str_11, str_12, str_13, str_14, str_15, str_16, str_17, str_18, str_19, str_20, str_21, str_22, str_23, str_24, ts_0, str_25, str_26, str_27, str_28, d_0, d_1, d_2, d_3, i8_0, i8_1, d_4]
Pivot
  Sort: date_trunc(Utf8("day"), created_at) AS created_at ASC NULLS LAST, str_20 ASC NULLS LAST
    Unpivot
      PartitionedAggregate: , agg: Count { filter: None, groups: Some([(Alias(Alias { expr: ScalarFunction(ScalarFunction { func_def: BuiltIn(DateTrunc), args: [Literal(Utf8("day")), Column(Column { relation: None, name: "created_at" })] }), relation: None, name: "created_at" }), SortField { data_type: Timestamp(Nanosecond, None) }), (Column(Column { relation: None, name: "str_20" }), SortField { data_type: Utf8 })]), predicate: Column { relation: None, name: "event" }, partition_col: Column { relation: None, name: "user_id" }, distinct: false } as "0_0"
        Filter: project_id = Int64(1) AND created_at >= TimestampNanosecond(1705582297292025000, None) AND created_at <= TimestampNanosecond(1706446297292025000, None) AND event = UInt16(13)
          Sort: project_id ASC NULLS LAST, user_id ASC NULLS LAST
            Repartition: Hash(project_id, user_id) partition_count=12
              Projection: project_id, user_id, created_at, event, str_20 <--- explicit projection
                TableScan: ?table? projection=[project_id, user_id, created_at, event_id, event, str_0, str_1, str_2, str_3, str_4, str_5, str_6, str_7, str_8, str_9, str_10, str_11, str_12, str_13, str_14, str_15, str_16, str_17, str_18, str_19, str_20, str_21, str_22, str_23, str_24, ts_0, str_25, str_26, str_27, str_28, d_0, d_1, d_2, d_3, i8_0, i8_1, d_4]

You may see a lot of extra columns that I can't get rid of. Even with explicit projection that doesn't push down. I wanted only project_id, user_id, created_at, event, str_20 but I got everything. Also, the sort node is gone for some reason but the data is unsorted.

I am not sure what is going on here.
Could it be that the Pivot/Unpivot operations somehow are configured to preserve all the columns (and thus the optimizer wouldn't be able to remove their use). This would be if the output of Pivot::expressions() refered to all the columns. Maybe we should extend their display to show what expressions are being used
One thing that might help debug here, depending on how you are invoking the optimzer, is to look at how DataFusion uses this
https://github.com/apache/arrow-datafusion/blob/1097dc0345079e81ba217ef23fd408a5c13c3d6c/datafusion/core/src/physical_optimizer/output_requirements.rs#L91
When it is optimizing internally, it uses OutputRequirementExec to describe what properties are needed at the output

As far as I can tell, physical plan produced is correct in terms of partitioning requirements.
PartitionedAggregateExec, metrics=[]
  CoalesceBatchesExec: target_batch_size=8192, metrics=[]
    RepartitionExec: partitioning=Hash([project_id@0, user_id@1], 12), input_partitions=12, metrics=[]
      RepartitionExec: partitioning=RoundRobinBatch(12), input_partitions=1, metrics=[]
        CoalescePartitionsExec, metrics=[]
          ProjectionExec: expr=[project_id@0 as project_id, user_id@1 as user_id, created_at@2 as created_at, event@4 as event], metrics=[]
            CoalesceBatchesExec: target_batch_size=8192, metrics=[]
              FilterExec: project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, metrics=[]
                RepartitionExec: partitioning=RoundRobinBatch(12), input_partitions=1, metrics=[]
                  ParquetExec: file_groups={1 group: [[file.parquet]]}, projection=[project_id, user_id, created_at, event_id, event, str_0], predicate=project_id@0 = 1 AND created_at@2 >=<PHONE_NUMBER>144118000 AND created_at@2 <=<PHONE_NUMBER>144118000 AND event@4 = 13, pruning_predicate=project_id_min@0 <= 1 AND 1 <= project_id_max@1 AND created_at_max@2 >=<PHONE_NUMBER>144118000 AND created_at_min@3 <=<PHONE_NUMBER>144118000 AND event_min@4 <= 13 AND 13 <= event_max@5, metrics=[num_predicate_creation_errors=0]

where
RepartitionExec: partitioning=Hash([project_id@0, user_id@1], 12), input_partitions=12, metrics=[]
is added to satisfy partitioning requirement of the PartitionedAggregateExec. However, the plan is weird though. We should be able to generate better plan, where intermediate CoalescePartitionsExec removed.
Additionally we have an API required_input_ordering, this API should be implemented if an executor depends on any ordering. I PartitionedAggregateExec depends on any ordering (such as the order of its partition expressions), you have to specify this dependency with this API. This might be the root cause why Sort is removed from the PhysicalPlan.

@alamb Pivot and Unpivot do not affect projection. I disabled them and got the same result. I also added expression to PartitionedAggregateNode
    fn expressions(&self) -> Vec<Expr> {
        vec![Expr::Column(Column {
            relation: None,
            name: "project_id".to_string(),
        })]
    }

but it didn't help for some reason. Parquet keeps reading all the columns. I tried to remove everything except PartitionedAggregateNode to debug it but the result is the same. I'm trying to satisfy the requirements, but I did not find any other way to tell to optimizer about the fields that the node needs except fn expressions() -> Vec<Expr>
@mustafasrepo Thanks! Sort works now!


Enable real-time updates in a web application using Azure Functions and SignalR Service Exercise Deployment Fails

I am running into the following error when trying to deploy the application. Not sure what I am missing.
Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
 issuer - https://token.actions.githubusercontent.com
 subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production
Attempting Azure CLI login by using OIDC...
Error: AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production'. Please check your federated identity credential Subject, Audience and Issuer against the presented assertion. https://docs.microsoft.com/en-us/azure/active-directory/develop/workload-identity-federation Trace ID: 9[15](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:16)d52ba-4181-49ad-b614-c8321c3a4400 Correlation ID: e42f5e57-bac2-4c33-86e3-c330510e0d18 Timestamp: 2024-06-20 00:[16](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:17):43Z

Error: Interactive authentication is needed. Please run:
az login

Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.

I following the exercise instructions found here:
https://learn.microsoft.com/en-us/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr

@dfberry @craigshoemaker @johnpapa @phkelley can someone please look into this?

@sirajahmadzai Did you run az login before retrying?

@sirajahmadzai The training module has now been updated with the correct information for the managed identity.


feat: add strip_option(fallback = field_bool)

Description
Follow up from #150.

@idanarye this is ready for review


Updated create-fiwl-app workflow in README

You actually do not need to use the npm i create-fiwl-app -g for running npx create-fiwl-app.
It runs no matter what.

Hey Brayden, I understand your point but the thing is, you need to install create-fiwl-app. To do that we run the command npm i create-fiwl-app -g. Without installing, we cannot run npx create-fiwl-app. And if you notice, I have written and I quote: "To install the cli run the command below". Here cli is the create-fiwl-app.

Hey Brayden, I understand your point but the thing is, you need to install create-fiwl-app. To do that we run the command npm i create-fiwl-app -g. Without installing, we cannot run npx create-fiwl-app. And if you notice, I have written and I quote: "To install the cli run the command below". Here cli is the create-fiwl-app.

Sorry @antriksh123 , no you do not.
Using "npx" will always get the latest version of create-fiwl-app.
Again, you do not need to install create-fiwl-app to use the npx command.
Have you tried using npx all by itself? It is really quite simple.
Let me know if you have any other questions.

Sorry @antriksh123 , no you do not.
Using "npx" will always get the latest version of create-fiwl-app.
Again, you do not need to install create-fiwl-app to use the npx command.
Have you tried using npx all by itself? It is really quite simple.
Let me know if you have any other questions.

Oh ok! Merging this PR then.

Oh ok! Merging this PR then.

Sounds good. Thanks!

Sounds good. Thanks!


chore(python): add Python 3.12 compatibility

🚨Please review the guidelines for contributing to this repository.
Description
Run CI workflows against latest Python 3.12 beta (3.12b4 as of writing this PR), it gives an overall good idea of schemathesis compatibility with this Python version.
Checklist

[ ] Created tests which fail without the change (if possible)
[ ] All tests passing
[x] Added a changelog entry
[ ] Extended the README / documentation, if necessary

Thanks, @stegayet!

Currently blocked by https://github.com/aio-libs/aiohttp/issues/7229 (and probably other issues :sweat_smile:)

Also started working on bringing 3.12 compatibility for PyYAML in this PR: https://github.com/yaml/pyyaml/pull/739

Thank you @stegayet ! I'll make a new release over the weekend :)


Allow .env file to be ignored permanently

I have a use case where I'd like to no longer be prompted to source a particular .env.  The particular use case is a Django project template folder where the .env is not valid as it's a Django template w/ {{ project_name }} that is not yet rendered, but there might be other reasons someone wants to ignore a .env file.
Thoughts around implementation would be to add an ignore option to the "Are you sure you want to allow this?" prompt. If the individual chooses to ignore the file, write it to ~/.autoenv_ignored. I don't see a reason to include the hash in .autoenv_ignored, but can if desired. To unignore a .env file you'd have to manually edit .autoenv_ignored, or we'd have to create a function to unignore.
Thoughts on adding this and the implementation plan?  I can hack on the code a bit if this sounds like an acceptable plan.

This has been implemented by #226. I'll be making a v0.4.0 release that includes it in the coming days. Cheers!


anagram: implement exercise

This one I can't re-open because the branch was "force pushed or recreated" according to github. 🤔 Digging into this a bit, I found some steps here to try.

I've followed the first 3 steps from that gist/guide, and force pushed the commit with which I opened this PR in the first place. I think it should be possible to re-open this now.

@dreig In addition, could you resolve conflicts in config.json? If all tests will pass I'll merge this PR.

sorry, I haven't touched unison since #12in23, and I don't have the time to get back into it and update the PR anytime soon.
Feel free to close this PR and use the source code, if it's in any way useful. I don't care for attribution.

@dreig Ok. Thanks.

I transferred this to https://github.com/exercism/unison/pull/138.


CI: test py3.7 development states

the devel 'pandas' requires a different Python: 3.7.12 not in '>=3.8'


Could not find class 'com.software.shell.fab.ActionButtonOutlineProvider'

Hi when I start my app, I get a
"Could not find class 'com.software.shell.fab.ActionButtonOutlineProvider', referenced from method com.software.shell.fab.ActionButton.drawElevation" exeption, but the Action button works fine.
Maybe you can help me with this issue.
BR
Emeriko

Hi Emeriko,
Please provide the following information:

What Android SDK version are you running your application at?
What version of ActionButton library are you using?

The current implementation of the drawElevation() method does not have a call to ActionButtonOutlineProvider class:
	@TargetApi(Build.VERSION_CODES.LOLLIPOP)
	protected void drawElevation() {
		float halfSize = getSize() / 2;
		final int left = (int) (calculateCenterX() - halfSize);
		final int top = (int) (calculateCenterY() - halfSize);
		final int right = (int) (calculateCenterX() + halfSize);
		final int bottom = (int) (calculateCenterY() + halfSize);
		ViewOutlineProvider provider = new ViewOutlineProvider() {
			@Override
			public void getOutline(View view, Outline outline) {
				outline.setOval(left, top, right, bottom);
			}
		};
		setOutlineProvider(provider);
		LOGGER.trace("Drawn the Action Button elevation");
	}

and indeed there is no such class currently in trunk.

Hi i have updated the your library to 1.1.2.
I use minSdkVersion="15",  targetSdkVersion="21" and compileSDKVersion 21.
Error still occures.
BR
Emeriko

Hi,
As I said the current version of the ActionButton has no class ActionButtonOutlineProvider. If you see the message that there is a reference to this class then there is probably the issue with cached library etc.
Here is what I have when I launch the sample apk:
07-29 07:07:17.651     879-1033/system_process I/ActivityManager﹕ START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.software.shell.fabsample/.FABActivity} from pid 1010
07-29 07:07:17.651     879-1033/system_process W/WindowManager﹕ Failure taking screenshot for (230x383) to layer 21005
07-29 07:07:17.662      785-785/? D/dalvikvm﹕ GC_EXPLICIT freed 36K, 5% free 6423K/6723K, paused 1ms+0ms
07-29 07:07:17.672     879-1032/system_process I/ActivityManager﹕ Start proc com.software.shell.fabsample for activity com.software.shell.fabsample/.FABActivity: pid=1469 uid=10039 gids={}
07-29 07:07:17.682    1469-1469/? D/dalvikvm﹕ Not late-enabling CheckJNI (already on)
07-29 07:07:17.692      785-785/? D/dalvikvm﹕ GC_EXPLICIT freed <1K, 5% free 6423K/6723K, paused 1ms+7ms
07-29 07:07:17.712      785-785/? D/dalvikvm﹕ GC_EXPLICIT freed <1K, 5% free 6423K/6723K, paused 0ms+18ms
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample I/dalvikvm﹕ Could not find method android.view.View.<init>, referenced from method com.software.shell.fab.ActionButton.<init>
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ VFY: unable to resolve direct method 11122: Landroid/view/View;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;II)V
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample D/dalvikvm﹕ VFY: replacing opcode 0x70 at 0x0004
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample I/dalvikvm﹕ Could not find method com.software.shell.fab.ActionButton.getElevation, referenced from method com.software.shell.fab.ActionButton.hasElevation
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ VFY: unable to resolve virtual method 12041: Lcom/software/shell/fab/ActionButton;.getElevation ()F
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0006
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ Unable to resolve superclass of Lcom/software/shell/fab/ActionButton$1; (1369)
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ Link of class 'Lcom/software/shell/fab/ActionButton$1;' failed
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample E/dalvikvm﹕ Could not find class 'com.software.shell.fab.ActionButton$1', referenced from method com.software.shell.fab.ActionButton.drawElevation
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ VFY: unable to resolve new-instance 1461 (Lcom/software/shell/fab/ActionButton$1;) in Lcom/software/shell/fab/ActionButton;
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0020
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ Unable to resolve superclass of Lcom/software/shell/fab/ActionButton$1; (1369)
07-29 07:07:17.742    1469-1469/com.software.shell.fabsample W/dalvikvm﹕ Link of class 'Lcom/software/shell/fab/ActionButton$1;' failed
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample D/dalvikvm﹕ DexOpt: unable to opt direct call 0x2ed0 at 0x23 in Lcom/software/shell/fab/ActionButton;.drawElevation
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][TouchPoint]﹕ Touch point X-axis coordinate set to: 0.0
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][TouchPoint]﹕ Touch point Y-axis coordinate set to: 0.0
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Layer type initialized
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button initialized
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Initialized type: DEFAULT
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Initialized size: 56.0
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button attributes initialized
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button color changed to: -6579301
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button ripple effect color changed to: -11250604
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button color pressed changed to: -9868951
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button color changed to: -6579301
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button ripple effect color changed to: -11250604
07-29 07:07:17.752    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Button color pressed changed to: -9868951
07-29 07:07:17.762      879-938/system_process W/NetworkManagementSocketTagger﹕ setKernelCountSet(10039, 1) failed with errno -2
07-29 07:07:17.782    1469-1474/com.software.shell.fabsample D/dalvikvm﹕ GC_CONCURRENT freed 155K, 4% free 6705K/6919K, paused 0ms+0ms
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Stroke color changed to: -16777216
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Stroke color changed to: -16777216
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Show animation set
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Hide animation set
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Show animation set
07-29 07:07:17.782    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Hide animation set
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button onMeasure called
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow width = 28
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured width = 84
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow height = 44
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured height = 100
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ View size measured with: height = 0, width = 0
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button onMeasure called
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow width = 28
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured width = 84
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow height = 44
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured height = 100
07-29 07:07:17.862    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ View size measured with: height = 0, width = 0
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button onMeasure called
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow width = 28
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured width = 84
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow height = 44
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured height = 100
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ View size measured with: height = 100, width = 84
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button onMeasure called
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow width = 28
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured width = 84
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated shadow height = 44
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated stroke weight is: 0
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated measured height = 100
07-29 07:07:18.023    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ View size measured with: height = 100, width = 84
07-29 07:07:18.041    1469-1469/com.software.shell.fabsample D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Action Button onDraw called
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Paint reset
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ShadowResponsiveDrawer]﹕ Shadow responsive current radius updated to: 8.0
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ShadowResponsiveDrawer]﹕ Shadow responsive step drawn
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated center X = 42.0
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated center Y = 50.0
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Calculated circle circleRadius = 28.0
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ActionButton]﹕ Circle drawn
07-29 07:07:18.051    1469-1469/com.software.shell.fabsample V/[FAB][ViewInvalidator]﹕ View invalidator configuration reset
07-29 07:07:18.061     879-1033/system_process W/InputManagerService﹕ Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@b38b0150 (uid=10012 pid=1010)
07-29 07:07:18.071      879-920/system_process I/ActivityManager﹕ Displayed com.software.shell.fabsample/.FABActivity: +413ms
07-29 07:07:18.701      879-938/system_process W/NetworkManagementSocketTagger﹕ setKernelCountSet(10012, 0) failed with errno -2

Hi,
Any updates about this?

I have a similar problem. I get this error log:
Could not find class 'com.software.shell.fab.ActionButton$1', referenced from method com.software.shell.fab.ActionButton.drawElevation
I get this error message every time I start my app on a pre-lollipop phone. This error line is not printed on Lollipop devices.
The error also occurs in your log which you posted above (Line 16).
I am using the latest library 1.1.2 with minSdkVersion="18", targetSdkVersion="22" and compileSDKVersion 22.
Is there a way to get rid of this.
Best regards
Heiko

Yes, I am aware of it.
This happens because of the additional (4-th) constructor, which appeared in View class starting from Lollipop update. This will be fixed in the next releases
This, however, does not relate to the issue with ActionButtonOutlineProvider class, which is absent in the library indeed

Same issue here.


How can I slice the middle layer from the pretrained network?

I need to slice the middle layers of the pretrained network to build an encoder like this:
'''
pre_model = MobileNet(weights='imagenet', include_top = False, input_shape = input_shape)
encoder = Model(pre_model.get_layer(index = 12).input, pre_model.get_layer(index = 25).output)
feature = encoder(some_tensor)
feature = SE_block(feature)
'''
But I got the error: AttributeError: 'Model' object has no attribute 'name', I seach for the answer of the this bug, and some guy say the 'pre_model.get_layer(index = 12).input' is not a placeholder, but how can I fix it or how can I build another network act the same？

@cgcodeboy
Moving this issue to closed status as there has been no activity, in case you still face the error please create a new issue.


Reference "find more here" has no link associated to it

Page in the info_threefold_pub wiki: https://library.threefold.me/info/threefold#/manual_tfgrid3/threefold__grid3_components
In the "TF Grid DB" section there is : "On the grid, we build on top of the above concepts a more sophisticated logic to represent the following: (note, full types specifications can be found here)".  There in no link / clickable at the here.

still there are no link at here

https://library.threefold.me/info/manual/#/grid3_components

@rkhamis where can we find the tfchain section specifiation?

https://library.threefold.me/info/manual/#/grid3_components

https://library.threefold.me/info/threefold#/getstarted/manual__tfchain_home
added this to here link