Add an indicator to show that resources have been loaded over IPFS

Install IPFS Companion extension.
Visit a website that loads some resources over IPFS (like https://www.ctrl.blog).

Expected: There should be an indicator to show that some resources on the current page have been loaded over IPFS. The page is loaded over HTTPS but some static assets are served from an DNSLink enabled subdomain.
Actual: There is no visual indicator.
Notes: I'd normally suggest fixing up the pageAction icon, but browser support for pageAction isn't all that great compared to browserAction. Maybe just change the color of the browserAction icon? Attaching a green version for this purpose.

Revisiting this one with the idea that we can probably accomplish this without removing the "number of peers" indicator. The below sketch:

Replaces the filled "off" state icon with a stroke version for greater contrast between "off" and "on"
Offers a few versions of an "on, but not loading resources via IPFS" state (aka "partially on") for discussion
Reserves the use of the full-color IPFS cube for an "on, and loading resources via IPFS" state

@lidel, any thoughts?

I like the stroke version for "off" and aqua stroke for "on, but current tab had no resources loaded from IPFS", but at the same time worry that this aqua stroke would be shown for the most of the time as people browse regular internet without IPFS resources, effectively replacing the cube as default companion icon.
I think we could use  "aqua stroke" as indicator for "redirect to local gateway disabled globally/for this host" state, but we are lacking good way of distinguishing between "online, redirect enabled" vs "online, redirect enabled, and we loaded some stuff from local node".
Here's an idea: use regular cube, but change the meaning of the badge count, and make it "the number of resources loaded from IPFS for the current tab".
Presence of a number on the badge makes good indicator of "this page has IPFS stuff on it" and follows what other extensions do, for example adblockers use badge to show "number of blocked ads on the current page". It also declutters UI on non-IPFS pages.
Would that work?

@lidel I'd be a bit concerned about changing the meaning of that number after a few years of it meaning something else -- users would assume their number of available peers had gone way down with no reason, unless they read the release notes.
I'd suggest running a survey to learn more from users, but unfortunately at the moment we're sort of inundating users with surveys ... we could hold off for a while on this if we wanted to go that route.
Is it necessarily a bad thing if the stroke icon is a somewhat-default until more IPFS-resourced sites exist in the wild?

Tough one :thinking: Note that we need to remove peer count anyway, as constant updates are expensive (#721, https://github.com/ipfs-shipyard/ipfs-companion/issues/721#issuecomment-494602685).
What if we:

use browserAction.setTitle API and  make it clear in the tooltip what the number on icon badge  means (eg. "This page loaded  resources from IPFS"). Right now the tooltip says "IPFS Companion".
Repeat the count in the main menu somewhere, so users can learn the difference between "peer count" and "number of resources loaded from IPFS on the current page"

ps. I realized we may have a problem with stroke version for "off" in dark modes. Current "off" works pretty well in both light and dark contexts:

ps2. we could also display https://github.com/ipfs/ipfs-companion/releases/latest after each update

Oh, that is a HUGE bummer about removing peer count -- thanks for alerting me to those discussions, I hadn't been tracking that conversation. Sample set of one, but I've leaned pretty heavily on the peer count icon ...
I can't find the specific issue where this was brought up vis-a-vis Desktop, but there was discussion about bringing peer count into the Desktop cube menu (the dropdown, not the cube itself). Do we want to wake that back up again as at least a reasonably convenient way of offering that indicator when we strip it out of Companion?
+1 to opening the GH latest-release page on upgrade; had been wanting that anyway. I'll open a separate issue for that. (Note this means we'll have to be pretty intentional about how we write release notes -- probably a TLDR at the top of what's user-impacting, followed by our usual changelog.)
Agree with your recommendations above with the tooltip and repeating the count in the main menu. The count would fit nicely into the "Current Tab" menu header (particularly since there's nothing interactive in it, just informative).
Regarding dark mode: can we detect and change icon accordingly, or is that too much trouble?

Sample set of one, but I've leaned pretty heavily on the peer count icon ...

I thought the same, but then I mostly rely on the color of the icon (is the node on/off) – unsure if knowing how many peers you have is that crucial. If we introduce have HALF-ON icon to represent "node is on, but has no peers", we could remove peer count without functional regression.

There was earlier discussion about bringing peer count into the Desktop cube menu [..] Do we want to wake that back up [..] when we strip it out of Companion?

Should be enough to have "peer count" in companion browser action menu.
(some companion users do not run desktop, they run standalone go-ipfs, so I'd evaluate this separately from desktop)

Regarding dark mode: can we detect and change icon accordingly, or is that too much trouble?

Sadly no, no universal way to solve dark mode dynamically:
only Firefox provides basic light/dark theme support (via theme_icons API), no support in Chromium.
That is the main reason why we were stuck with current "off" icon for so long – its "good enough" in both light and dark.

@lidel, thanks for the clarification re light/dark mode -- let's keep the existing off state icon, then.
I'm struggling with how to convey one extra state for "on but no peers" without introducing too much visual complexity. We could throw an alert triangle ⚠ over the cube icon in the "on" states where it applies (since there will never be a number badge in that case) and add appropriate hover text, but now I'm wondering if I'm just overthinking this and we don't need it at all?
With that in mind, I believe the below illustration covers all the points mentioned above: four states (off, on+no redirects, on+redirects, on+redirects+loading stuff), plus more granular hover text for the cube icon and an indicator in the menu (next to "Current Tab") for how many resources, if any, are loaded.

Hover text for the cube icon would change accordingly based on the state, something like:

Off: IPFS is not running
On, redirects disabled: IPFS is running (redirects disabled)
On, redirects enabled: IPFS is running (redirects enabled)
On, redirects enabled, loading via IPFS: IPFS is running (redirects enabled) and loading resources

Question: What happens to the badge when a tab is loading more than 999 resources? "1.2k"?
Related: https://github.com/ipfs-shipyard/ipfs-desktop/pull/1599 would display peer count in Desktop tray/cube menu, both as a hover on the cube icon (for those who have it) and in the menu itself. Understood this doesn't help folks who aren't running Desktop, but it's a value add for those who are.

I think that is a very good summary, thank you @jessicaschilling !
I'd like us to have the indicator you mentioned, but would avoid  ⚠  because (1) it will flash every time node starts/restarts (2) some users run node  with --offline on purpose, so it may be too prominent.
What if we set the badge value to err, ! or … instead? That way we don't need to invent anything new:

Question: What happens to the badge when a tab is loading more than 999 resources? "1.2k"?

AFAIK badge is "4 characters or less", so 1000 would display just fine.

@lidel Great idea on just inserting a badge value. I might go for -- to avoid conflict between ! and 1... err isn't actually an error for --offline folks and ... isn't true for them either since it's not an in-process state, it'll never actually fetch a number 😊
I'm afraid implementation is getting a little out of my depth for this one. Happy to work together with you and/or @rafaelramalho19 if we want to prioritize this ... I might suggest we ship this prior to any bumps in user numbers due to pinning services etc, because this work is going to change an existing visual pattern. Thoughts?

-- sgtm!

(edit: What about changing the color of the badge? Too prominent?)

We can experiment with it, as long we get similar results in all browsers.
Caveats are, as always, API limitations:

Both Chromium and Firefox support setBadgeBackgroundColor
Only Firefox supports setBadgeTextColor (did not look into details, but assume Chrome makes arbitrary decision to ensure proper contrast)

I might suggest we ship this prior to any bumps in user numbers due to pinning services etc, because this work is going to change an existing visual pattern. Thoughts?

Agreed. I'd like to pick this up after #811 (hoping to finish that PR this/next week).
Q: where can I find SVG asset for ? ipfs-css?

Yep,   is just stroke_cube in ipfs-css aqua #69c4cd.
Re setBadgeTextColor only being available in FF -- thanks for bringing this up, because it's been bugging me that the badge text in FF is black. Can you please specify white while you're at it? :pray:
Adding a -- badge (in this case, in ipfs-css yellow #f39021) looks like below. (Note that this badge could also appear on top of the stroke_cube indicator for "on, redirects disabled"). For the hover text, we'd want to append "but has no peers" to whatever hover text already applied, so:

On, redirects disabled, peers warning: IPFS is running (redirects disabled) but has no peers
On, redirects enabled, peers warning: IPFS is running (redirects enabled) but has no peers

Anything else I can get you to make implementation easier next week? 😊

I think that's all I need for now, thank you! Will see if anything comes up during implementation :+1:


Webpack 2: Director router is not working after compilation process

Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
It seems that some parts of director router constructor function are removed causing an unexpected error.
NOTE: This issue was not present in version 1.14.1.
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/marcalexiei/director-webpack-issue
Instructions in the readme.
What is the expected behavior?
No errors are generated and router init is a function.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Chrome 55.0.2883.95
Safari 10.0.3
Node 6.3.1
Webpack 2.2.1
MacOS 10.12.3

Please submit support requests and questions to StackOverflow using the tag [webpack]. StackOverflow is better suited for this kind of support. The issue tracker is for bug reports and feature discussions. See also our CONTRIBUTING guidelines.

For anybody looking for this issue, the StackOverflow question and answer are in http://stackoverflow.com/questions/41981735/webpack-2-director-router-is-not-working-after-compilation-process


Podman Support and Shellcheck

I really like your project but I'm using Podman, a drop-in replacement for docker. I changed the scripts in ./bin/ to still use docker by default but enable podman support by setting $CONTAINER_ENGINE=podman.
Secondly I ran Shellcheck, a linter for shell scripts, and fixed all warnings which were mostly just SC2086.
So all in all this does not change anything that is already in production but just adds the option to use Podman.

I did not notice this pull request; but I don't see that your fixes are correct.  It looks like it defaults to podman and you have to set something to make it work with docker.  And the base repo the pull is from changes.  If you still care I would try a version that defaulted to docker.


Provide a quit command

Typing .q, .quit or Ctrl+D should exit the CLI tool.

Question: If a command is being executed when Ctrl+D is entered, the CLI should quit only once the transaction has completed? Or should it cease execution at the point of interruption? If cease execution, how do we achieve that?

Perhaps we should block while a command is running? Doesn't make sense to have two commands running…

.q has been taken as a short command for running queries. Renaming to .exit and .e


postprocessor of agent

Rasa Core version: 0.10.1
Python version:  3.6
Operating system (windows, osx, ...): Linux
Issue:
As I first mentioned in https://github.com/RasaHQ/rasa_core/issues/258, while we can have preprocessor, more advanced users/programmers may need to postprocess NLU-parsed data for Database-aided checking, context-based modification, etc. An simple example is to check NLU results with a drug database, and then correct NLU results (for missing ones and misinterpreted entities) before they are sent to tracker and a decision of action is made.
To implement this functionality, it is relatively simple. We need to add an argument message_postprocessor=None in Agent.handle_message, handle_channel and _create_processor; and MessageProcessor.__init__. Most important, 2 lines need to be added in MessageProcessor._handle_message_with_tracker:
        parse_data = self._parse_message(message)
        if self.message_postprocessor is not None:  # added
            parse_data = self.message_postprocessor(parse_data, tracker) # added

The postprocessor is like:
def postprocess(parse_data, tracker):
    # type: (Dict, DialogueStateTracker) -> Dict

I already had a python module for MessageProcessorWithPost(MessageProcessor) and AgentWithPost(Agent) in order to postprocess NLU-parsed data, without modifying Rasa-core source code. It works well. If devs are interested, I can send it to you or make a PR by myself.

Thanks for the suggestion, just wondering why you wouldn't handle this kind of stuff in a custom action?

Yes that's how we would also handle this. I don't like the idea of hard coding things like this

For me, the problem is in processor.py that it preprocess msg, do NLU and directly predict and exucute the next action. I don't see a straightforward and clean way to work around this problem by implementing custom actions.
    def handle_message(self, message):
        # type: (UserMessage) -> Optional[List[Text]]
        # ......
        if self.message_preprocessor is not None:
            message.text = self.message_preprocessor(message.text)
        tracker = self._get_tracker(message.sender_id)
        self._handle_message_with_tracker(message, tracker)
        self._predict_and_execute_next_action(message, tracker)

@souvikg10 Thanks for your advice. In this case, you will use "postprocessing action" systematically for all intents received, and then inject the modified parsed results into core so that it make a decision for the right action, am I right? Can you elaborate a little more how you can develop a pipeline like "rasa-NLU --> postprocessing action --> rasa-core
@akelad, Thank you for your comments. What i suggested, it's to open a postprocessor door to developpers, just like preprocessor. But I also kind of agree that postprocessor is doing work more like actions.

Well for us,
Let's take the example i gave above
our story looks like
* transfer_money{amount_of_money:"20"}
- set_currency
- slot{"currency":"euros"}
- utter_confirm_amount
* affirm
- make_transfer

Now as you know with ner_duckling, it sends back an entity - "amount-of-money" with value - 20 and then some additional info like currency 'euros' for example.
With rasa core automatic slot filling from entity, it will set the money to the value 20 but that is not enough to make a transfer so we add a custom action set_currency that runs separately which basically parses the tracker object and looks for the entity amount-of-money and tries to parse the additional info to look for currency.
we then return SlotSet("currency":"euros"}, where currency is text slot which enables the check if this particular slot is filled, it will call the next action - utter_confirm_action which has a template
you want to send {amount-of-money} {currency} ?
and the story goes on. So really we did some post processing outside the rasa stack because it is really linked to particular use-case, you should handle everything specific outside of rasa stack.

What you are saying is really linked to intent classification so i think you can add it as part of the config pipeline in Rasa NLU, that takes intent prediction results as input, do post processing and returns the value to Rasa core. A typical post-processor for an agent (a rasa core agent) would be after action prediction.

@souvikg10 thx for your patience. I realized that "post-processor for an agent" is ambiguous to you. What I want, is a NLU-postprocessor, but cannot be implemented in rasa-NLU alone or any other NLU software. Because I want to use Rasa core tracker to improve intent/entities prediction. So it is not inside NLU, but really one intermediate step between NLU and rasa-core action decision making.

Then leads back to the same point, that you can add an action upfront that does postprocessing after every intent detected in your stories.

intent

post_processing_step - return a dispatcher.utter_message("/your_improved_intent")

improved_intent

your_action

That's what we do. You can make sure this step will occur with Memoization policy
Alternatively,
You can also add code in processor.py to include another step in the series of actions before saving the object in the tracker, however bear in mind this can change your solution architecturally and in my mind, it is not a good design pattern.
Imo, a chatbot here is a state machine, your states are decided based on what the user is saying. So really a postprocessing as you call it,  is a consequence(an action) of what the machine understood from the user and what it should do to reply back to the user to go to a different state. In order to do that it needs to do some processing(maybe call a Database, maybe look back at the tracker to determine an appropriate understanding of the conversation, maybe add a slot). Even your NLU post processing is a consequence of what the machine understood from the user. every consequence is an action.
You have both ways to improve your action prediction, by writing code in processor.py or by adding the step as part of the story. I prefer the second way as in the pattern of how rasa core is built , this makes more sense to me

@souvikg10 I see more clearly your thinking now. Because I have a requirement of postprocessing for all my intents, so I wondered if it is better to implement this step directly into processor.py, which made sense to me but much less to you. But your aguments are quite convincing, thank you.
In your design, the story gets quite complicated, no? All 1st NLU processed intents are followed by postprocessing action, which will give verified intents. Verified intents can then be predicted by rasa-core for real actions. Am I right? postprocess action will also eliminate Intent-get-info from tracker. The order is
* Intent-get-info
- postprocess
* verified-intent-get-info
- action-get-info

But real stories should be all "raw intent + postprocess" pairs, plus stories like below:
# story 1
* verified-intent-hello
- action-hello
* verified-intent-get-info
- action-get-info
* verified-intent-bye
- action-bye

It depends on your problem indeed, but imagine a multi domain chatbot where postprocessing makes sense in one while it doesn’t in another. A generalistic postprocessing step wouldn’t help all cases. Even preprocessers can help to a general extent like spell checker or language detector but it wouldn’t really help if you add a pre processing step where you initialise the tracker with a particular slot because it helps in predicting a next action.
It really depends on your use case and scalability of your use case. Would you always need this post processing to improve your NLU prediction?
There isn’t a question of real or fake stories. It really is what a bot needs to do given it understands what the user is saying. Even if that means improving your understanding better it is still something the bot is doing.

I totally agree with your last comment. My intention is to provide a solution for this "postprocessing" problem. It seems your solution is better for more general uses, and with no requirement to changing rasa-core code.
My question now is "if I use custom actions for postprocessing as you propose, how can I design stories". In my solution, i don't need add any postprocessing action in my story; so the story file remains the same as what i had before implementing postprocessing. In your solution, you need to modify sotries. Can you show me any Rasa doc/exampe concerning this or a toy example you created? Thank you.

you just need to add a custom action in the stories. I am not sure if it helps, i am still working on this project
https://github.com/souvikg10/rasa-core-experiment/blob/master/data/Demo-Bot/story/story.md
here i have a story when a user orders something, each time i check if the item is available or not.
then in the custom action, i check if the item is there and then i return a slot
you can even force a new action based on the corrected intent, this don't require any stories
https://rasa.com/docs/core/api/events/#force-a-followup-action

Thx, what I don't quite understand is how to implement the following situation you previously mentioned if an intent could be changed:
* intent
- post_processing_step - return a ``` dispatcher.utter_message("/your_improved_intent")
* improved_intent
- your_action

In the 2nd line, the chatbot utters a magic command to user, right? But this kind of magic command ("/intent") only works when it's a user message, right?

Indeed, i just noticed the issue, also remembered that before we did this outside of rasa core using botkit by adding new intents to rasa core.
I guess you can send a UserUttered event from your custom action
https://rasa.com/docs/core/api/events/#user-sent-message

Em ... then we come back to the very first problem. UserUttered will create a side effect, as this turn will be saved into the tracker, which will pollute my deep learning (LSTM, etc.) decision making for actions. I know I also have a choice to delete/mutate the tracker... In this case, I can set story like below. For all intents I want to postprocess with (1 to N), I create all pairs. And "real story" do not contain any " raw intent" from 1 to N.
# story 1
* intent_1
- post_processing_step ( UserUttered: "/verified_intent1" if not corrected)
# story N
* intent_N
- post_processing_step ( UserUttered: "/verified_intentK" if corrected)

# real story 1
* verified_intent1
- action1
* verified_intent2
- action2
* verified_byebye
- utter_byebye

@souvikg10 if you want, we can chat in gitter (where I left you a msg) or somewhere else in order not to spam here ;) After our discussion, I will edit this post and close it.

Yes sure

@fakesecret What do you mean by intent correction? Can you make an example? Do you trigger an intent based on some found words (not entitities)?

@ctrado18 Hello, I want a post-processing step to correct NLU results, which include entities and intent. While entity correction is more straightforword, such as slot checking and database mapping, etc., intent correction is a little more tricky. However, you can imagine some methods using manually-crafted rules, machine learning or some sophisticated ways (re-run, modified bag-of-words, re-ranking).
An example I showed above is
User: Give me info of You&Me restaurant. (NLU: entity: restaurant: You&Me; intent: get_info.restau)
Chatbot: Here is the info for this restaurant.
User: Compare You&Me and EatMe. (NLU: no entity; intent: compare.films)
 -- [postprocessor]: You&Me mapped as restaurant by slot; EatMe mapped as restaurant by database; intent corrected as compare.restau
Chatbot: here is the restaurant comparison results: blabla

For the 2nd request, the intent was first interpreted as compare.films, which was incorrect, without any entity extracted. My postprocessor found "You&Me" was a restaurant because of the previous conservation, and "EatMe" was also one based on database mapping; Re-evaulation of compare.films found that it was less probable given 2 entities of "restaurant", and the postprocessor re-ranked intents and suggested compare.restau, which turns to be correct. Following these corrected entities and intent, chatbot at last gave a comparison between these 2 restaurants.


Add calibration system

This PR adds a simple calibration system, which uses the DC-DC supply as a reference to calibrate Tycho's voltage measurements. This supply is used because the TPS55288 voltage reference is specified for +/- 1% accuracy, which makes it the most accurate reference available on the board.
To calibrate, the Target-C cable is first disconnected from the EUT, such that there is no load on Tycho's Target-C port. Then the DC-DC converter is connected to Tycho's Target-C port, set to a reference voltage, and measured as normal. This measurement is performed separately for the low (<= 6.6 V) and high (>= 6.6V) voltage ranges, i.e. with or without R65 switched in via Q18. For each range, a scale factor is calculated to correct the measured value to the expected value.
The two resulting scale factors represent the combined effects of inaccuracies in:

The GreatFET 3.3V regulator output voltage, which is the reference for the ADC.
The R63/R64(/R65) voltage divider ratios, which depend on the precise values of those resistors.

As such they are specific to a given Tycho/GreatFET pair, and should be re-calibrated if either is changed.
Use make calibrate to run the calibration. Running make test will fail if a valid calibration is not found.

Merging with fixes after feedback from @mossmann.


addActivity() undefined method

Hi!
Im using stream-laravel 2.2 for larval 5.4 and I keep getting:
local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method GetStream\StreamLaravel\StreamLaravelManager::addActivity() in /Users/homeboi/code/tree/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221

According to docs https://getstream.io/docs/php/#adding-activities, this is the workflow?
        $data = [
            'actor' => Auth::user()->id,
            'verb' => 'favourited',
            'object' => 'user',
        ];
        \FeedManager::addActivity($data);

Models are added to feeds when saved (and removed when deleted) automatically. If you want to add activities manually you need to use the API client (which you can retrieve from the Feedmanager).
FeedManager::getClient->addActivity($data);

The error persist. This is the whole function
    public function favouriteGame(Game $game)
    {
        Auth::user()->favourites()->attach($game->slug);

        $data = [
            'actor' => Auth::user()->id,
            'verb' => 'favourited',
            'object' => 'user',
        ];
        \FeedManager::getClient()->addActivity($data);

        return back()->with('success', 'You favorited game '. $game->title);
    }

It now throws error Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method GetStream\Stream\Client::addActivity()

Im using stream-laravel 2.2 for larval 5.4 and I keep getting:

You might have mistyped something there. Did you mean you're using the Larvel 🐛  framework?
https://github.com/fideloper/larvel
😂
All jokes aside...
What I think you want to do here is to add a Activity to a user's feed. For that you need to get the user's feed with
$feed = FeedManager::getUserFeed(Auth::user()->id);

From this point on, you can start adding activities to that feed.
$feed->addActivity($data);

Does this make sense to you?
I'm closing this issue for now. In case your issue isn't resolved yet, just tell me and I will reopen it and continue to help get it resolved.


Still unable to crop large Bitmap

Still facing issues cropping large Bitmap,, it crashes and gives just line picture.

@Whbcc Do you use ImageCropView.setImageFilePath() method?

@Whbcc Did you read my comment?
I think you use setImageBitmap() method.
If App use hardwareAccelerated option in AndroidManifest, ImageView can't upload too large bitmap than texture size.
You may see this error message.
Bitmap too large to be uploaded into a texture (2316x4632, max=4096x4096)
So, I add code that is throw exception when bitmap is lager than texture size.
If you need to use large bitmap, you should use setImageFilePath() method please.
Hope This Helps.
Thank you.

I do rollback throw exception code.

Hi helloYako , been offline for a while.. Can you reOpen the thread becuase am yet to solve the issues.
Thanks

@Whbcc
this support only rectangular line.
I don't limit file size.
Do you have any problem?

Yeah, i noticed the crashes are due to file size. above 10MB>>> mainly native camera images..

@Whbcc
What is your device and android version?
When I try to use 16MB file, I don't have problem.
Can I know crash log?

I am getting an odd error, when I load a large image: it gives me this:

02-27 11:30:05.751  10302-10353/com.yyyyyy.xxxxxxxxxxxxxxxxxxx D/mali_winsys﹕ new_window_surface returns 0x3000,  [1440x2560]-format:1
02-27 11:30:05.891  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@1bc147a9 time:41524341
02-27 11:30:05.891  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@2a483940 time:41524341
02-27 11:30:06.141  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx V/ActivityThread﹕ updateVisibility : ActivityRecord{268c6ea6 token=android.os.BinderProxy@2a483940 {com.yyyyyy.xxxxxxxxxxxxxxxxxxx/com.yyyyyy.xxxxxxxxxxxxxxxxxxx.SignupActivityTwo}} show : false
02-27 11:30:06.901  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN
02-27 11:30:07.561  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc partial concurrent mark sweep GC freed 22(848B) AllocSpace objects, 1(20KB) LOS objects, 7% free, 197MB/213MB, paused 273us total 8.961ms
02-27 11:30:07.581  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc concurrent mark sweep GC freed 9(12KB) AllocSpace objects, 0(0B) LOS objects, 7% free, 197MB/213MB, paused 252us total 16.781ms
02-27 11:30:07.581  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Forcing collection of SoftReferences for 60MB allocation
02-27 11:30:07.601  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc concurrent mark sweep GC freed 11(352B) AllocSpace objects, 0(0B) LOS objects, 7% free, 197MB/213MB, paused 269us total 16.406ms
02-27 11:30:07.601  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx E/art﹕ Throwing OutOfMemoryError "Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 58MB until OOM"
02-27 11:30:07.611  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc partial concurrent mark sweep GC freed 6(192B) AllocSpace objects, 0(0B) LOS objects, 7% free, 197MB/213MB, paused 308us total 10.831ms
02-27 11:30:07.631  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 7% free, 197MB/213MB, paused 330us total 20.599ms
02-27 11:30:07.641  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Forcing collection of SoftReferences for 60MB allocation
02-27 11:30:07.651  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx I/art﹕ Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 7% free, 197MB/213MB, paused 253us total 18.833ms
02-27 11:30:07.661  10302-10302/com.yyyyyy.xxxxxxxxxxxxxxxxxxx E/art﹕ Throwing OutOfMemoryError "Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 58MB until OOM"

If it is a small image this is not an issue. How can I crop large images?
Thanks,
Tmpg

@Whbcc
Can you send me image?
<EMAIL_ADDRESS>

Here is the image I am getting an error on:
https://drive.google.com/file/d/0Bwa-JXbjFUDuYThVQTdtRlRVWWc/view?usp=docslist_api
Let me know what is going on?
Thanks
Tmpg

@tmpg
I have tested image that you give me.
But I can crop.
load
https://drive.google.com/file/d/0B2-S-qsCc8MnTDByWGc4NDVMZkk/view?usp=sharing
save
https://drive.google.com/file/d/0B2-S-qsCc8MnZHpyYi1rYlNHaE0/view?usp=sharing
result
https://drive.google.com/file/d/0B2-S-qsCc8MnSFdHVlRYR0U3R1E/view?usp=sharing
I don't occur problem

cropperActivity.txt
I am still getting the issue. Is there anything in my activity you see is wrong? =[
Many thanks,
Tmpg

@tmpg
Do you occur issue in sample app?
https://github.com/naver/android-imagecropview/blob/master/apk/app-release.apk?raw=true

Hey I tried it and I get this error:

02-29 02:10:18.471  31735-31735/com.naver.android.helloyako.imagecropsample E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.naver.android.helloyako.imagecropsample, PID: 31735
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=99, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1416 flg=0x1 }} to activity {com.naver.android.helloyako.imagecropsample/com.naver.android.helloyako.imagecropsample.MainActivity}: java.lang.NullPointerException: uriString
at android.app.ActivityThread.deliverResults(ActivityThread.java:4730)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4773)
at android.app.ActivityThread.access$1500(ActivityThread.java:205)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6895)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.(Uri.java:471)
at android.net.Uri$StringUri.(Uri.java:461)
at android.net.Uri.parse(Uri.java:433)
at com.naver.android.helloyako.imagecropsample.MainActivity.onActivityResult(MainActivity.java:108)
at android.app.Activity.dispatchActivityResult(Activity.java:6758)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4726)
            at android.app.ActivityThread.handleSendResult(ActivityThread.java:4773)
            at android.app.ActivityThread.access$1500(ActivityThread.java:205)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:145)
            at android.app.ActivityThread.main(ActivityThread.java:6895)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
02-29 02:10:18.781   3529-31818/? E/android.os.Debug﹕ ro.product_ship = true
02-29 02:10:18.781   3529-31818/? E/android.os.Debug﹕ ro.debug_level = 0x4f4c
02-29 02:10:18.811    4403-4403/? E/PeopleStripeProcessMonitor﹕ getTopActivity : MultiWindowFacade.taskList = []

I have a Galaxy s6 with android ver 5.1.1 api 22.
Does it work at this version?
Thanks,
Tmpg

@tmpg
Maybe, you selected image from Recent.
please, change to Gallery, then select image.
https://drive.google.com/file/d/0B2-S-qsCc8MnUF9idFZRaUNtcXc/view?usp=sharing


Feature request: Specify precision/decimal count of variables

It would be neat to be able to customize how many decimals are shown for a variable, e.g. {x.1} to show 236.1.

Added in refactor. I'll close it once I have a release with it

See #30

Added in 2.0 update, awaiting release

Added in v2.0-beta.1

Modrinth
Cursedforge


Not able to start cluster in docker desktop. Pods are not coming up

[2022-06-26T06:58:30,286][INFO ][o.o.c.c.JoinHelper       ] [my-cluster-masters-0] failed to join {my-cluster-bootstrap-0}{XjYfnMojQVyS1nfzu8eq6Q}{UmdFhhnpT82d5jpg6KRWNA}{my-cluster-bootstrap-0}{<IP_ADDRESS>:9300}{m}{shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={my-cluster-masters-0}{AvA7jGY2QNGTLqPOpdxOPg}{EKD489jDRHSgnHSSPf8Cuw}{my-cluster-masters-0}{<IP_ADDRESS>:9300}{dm}{shard_indexing_pressure_enabled=true}, minimumTerm=1, optionalJoin=Optional.empty}
org.opensearch.transport.RemoteTransportException: [my-cluster-bootstrap-0][<IP_ADDRESS>:9300][internal:cluster/coordination/join]
Caused by: java.lang.IllegalStateException: failure when sending a validation request to node
at org.opensearch.cluster.coordination.Coordinator$2.onFailure(Coordinator.java:626) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:74) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.security.transport.SecurityInterceptor$RestoringTransportResponseHandler.handleException(SecurityInterceptor.java:318) ~[?:?]
at org.opensearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1370) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.transport.InboundHandler.lambda$handleException$3(InboundHandler.java:420) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:739) ~[opensearch-2.0.1.jar:2.0.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.opensearch.transport.RemoteTransportException: [my-cluster-masters-0][<IP_ADDRESS>:9300][internal:cluster/coordination/join/validate]
Caused by: org.opensearch.cluster.coordination.CoordinationStateRejectedException: join validation on cluster state with a different cluster uuid I1fR5DlPTi-vCu1jClFcmg than local cluster uuid xoWTSY6dSyyTsDh8zfPbcA, rejecting
at org.opensearch.cluster.coordination.JoinHelper.lambda$new$4(JoinHelper.java:208) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.security.ssl.transport.SecuritySSLRequestHandler.messageReceivedDecorate(SecuritySSLRequestHandler.java:193) ~[?:?]
at org.opensearch.security.transport.SecurityRequestHandler.messageReceivedDecorate(SecurityRequestHandler.java:283) ~[?:?]
at org.opensearch.security.ssl.transport.SecuritySSLRequestHandler.messageReceived(SecuritySSLRequestHandler.java:153) ~[?:?]
at org.opensearch.security.OpenSearchSecurityPlugin$7$1.messageReceived(OpenSearchSecurityPlugin.java:651) ~[?:?]
at org.opensearch.indexmanagement.rollup.interceptor.RollupInterceptor$interceptHandler$1.messageReceived(RollupInterceptor.kt:118) ~[?:?]
at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportRequestHandler.messageReceived(PerformanceAnalyzerTransportRequestHandler.java:43) ~[?:?]
at org.opensearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:103) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.transport.InboundHandler$RequestHandler.doRun(InboundHandler.java:453) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:798) ~[opensearch-2.0.1.jar:2.0.1]
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52) ~[opensearch-2.0.1.jar:2.0.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Hey @skhilar, can you please share your Yaml file?

apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
name: my-cluster
namespace: default
spec:
general:
version: 2.0.1
httpPort: 9200
vendor: opensearch
serviceName: my-cluster
dashboards:
version: 2.0.1
enable: true
replicas: 1
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"
confMgmt:
smartScaler: true
nodePools:
- component: masters
replicas: 1
diskSize: "2Gi"
NodeSelector:
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "500m"
roles:
- "master"
- "data"
- "ingest"
persistence:
pvc:
storageClass: hostpath
accessModes:
- ReadWriteOnce

Hi @skhilar. I see that you are using version 2.0.1 of opensearch. That is currently not yet supported by operator. Could you please try if it works with version 1.3.2?
One side note: Could you please use the markdown code blocks feature when posting logs or yamls to preserve formatting?

Hey @skhilar, let us know if you need any help

Hi @skhilar. You are trying to launch a single-node opensearch cluster (replicas: 1), that is currently not yet supported by the operator.

Closing this as no longer relevant. Single-node clusters are not supported by the operator.


IPython IFrame broken

nothing shows
http://sharing.beakernotebook.com/gist/anonymous/29a55567b35e5221bbc8

same here, and it started happening after the last upgrade - it used to work for me before.
Not just iPython, but even if I do an html cell with iframe - the iframe gets removed from the output. Is it possible to disable this behaviour?

http://nbviewer.ipython.org/gist/scottdraves/85fb74d6f50c711177fe


Scully process getting stuck after render the files

🐞 Bug report
Description
There is an intermittent issue when running the npx scully to render the page, after the message Generating took x seconds for x pages the process stays stuck, and to close it is necessary to send a signal to the terminal (e.g. ctrl+c).
That impacts in a very bad way the CI/CD process, then I found this fix https://github.com/scullyio/scully/pull/1334 that runs the process.exit(0) statement to prevent CI/CD stall, after some tests I have noticed that the serve process on port 1864 still open, looking at the Scully source code I have seen the file changed in the PR https://github.com/scullyio/scully/pull/1334 is not the root one, there is another javascript that waits for this execution being completed (https://github.com/scullyio/scully/blob/main/libs/scully/src/scully.ts#L163) to run the /killMe HTTP GET to close the server (https://github.com/scullyio/scully/blob/main/libs/scully/src/scully.ts#L166).
So, if you run two Scully projects in sequence, the second one will use the angular server from the first execution, causing bad rendered files.
🔬 Minimal Reproduction
Execution being stuck:
With the 1.1.1 version

After the message Generating took x seconds for x pages be presented, I have open another terminal tab and run this command sudo lsof -i :1864

Then I run the command kill -9 PID and the Scully execution finishes

With the beta version 1.1.1-BETA.140239 the process finishes but the server still open in the port 1864

So, if I run another Scully CLI using a different project the render pages will be based on this first project.
💻Your Environment
Angular Version:
Angular CLI: 11.2.4
Node: 12.22.1
OS: darwin x64

Angular: 11.2.14
... common, core
Ivy Workspace: <error>

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.1102.4
@angular-devkit/build-angular       0.1102.4
@angular-devkit/core                11.2.4
@angular-devkit/schematics          11.2.4
@angular/animations                 11.2.7
@angular/cdk                        11.2.4
@angular/cli                        11.2.4
@angular/compiler                   11.2.5
@angular/compiler-cli               11.2.5
@angular/forms                      11.2.7
@angular/language-service           11.2.5
@angular/platform-browser           11.2.7
@angular/platform-browser-dynamic   11.2.5
@angular/platform-server            11.2.5
@angular/router                     11.2.5
@schematics/angular                 11.2.4
@schematics/update                  0.1102.4
rxjs                                6.6.3
typescript                          4.1.3

Scully Version:
"@scullyio/scully": "1.1.1",

and the beta version that I have tested this PR https://github.com/scullyio/scully/blob/main/libs/scully/src/scully.ts#L166 changes
"@scullyio/scully": "1.1.1-BETA.140239",

🔥 Exception or Error
No exception, the process just does not finish.

closing as duplicate of #1348


 doesn't work properly

"vue": "^2.5.17",
"swiper": "^5.4.5",
"vue-awesome-swiper": "^4.1.1",
When I click router-link, url is changing, but doesn't redirect to the page. Only if I refresh.
data() {
      return {
        swiperOption: {
          slidesPerView: 4,
          spaceBetween: 50,
          loop: true,
          loopFillGroupWithBlank: true,
          navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
          },
          breakpoints: {
            1024: {
              slidesPerView: 4,
              spaceBetween: 40
            },
            768: {
              slidesPerView: 3,
              spaceBetween: 30
            },
            640: {
              slidesPerView: 2,
              spaceBetween: 20
            },
            10: {
              slidesPerView: 1,
              spaceBetween: 10
            }
          }
        },
        randomProducts: [],
      }
    },

Please, fork this sandbox and provided reproduction https://codesandbox.io/s/nuxt-vue-awesome-swiper-v223m?file=/components/Swiper.vue

Please, fork this sandbox and provided reproduction https://codesandbox.io/s/nuxt-vue-awesome-swiper-v223m?file=/components/Swiper.vue

Hello Andrew,
There is not much philosophy. I figured that is working without loop option.

Is it happening only for duplicated slides?

Hello Andrew. I have same problem.
Slides with nuxt-link\router-link doesn't work in duplicated elements (when swiper has enabled loop param)

Is it happening only for duplicated slides?

Hello Andrew.
I have the sampe problem.
Yes it happens only with loop


Koudoku does not work with API version newer than 2015-02-16 -- undefined method `cards' for Stripe::Customer

Getting this issue when trying to subscribe a user to a plan. This was using the latest version of the Stripe api. Rolling back to an older api version in the Stripe dashboard seems to have fixed things for me. Any idea what's causing this? Maybe a breaking change in the stripe api?

yes. There's a breaking change (https://stripe.com/docs/upgrades) where that attribute is no longer called card but source instead

Koudoku does not work with API versions newer than 2015-02-16

@spacewaffle How do you roll back to an older api version? Is that possible?

@razvanh I don't think it is possible to downgrade the API version.
I wrote Stripe support just for extra clarity.

@yas4891 I don't think it's possible either. Only way would be if you had an older account that you can use.
Is there any plan to update koudoku to work with the current api version?

@razvanh Feel free to submit a PR!

@razvanh login to stripe, head to account settings, api keys, and I get an option to change my api version at the top above where my keys are listed. My stripe account is a bit older though, and judging from what people have said, you may not see it if your account is newer.

@spacewaffle you can only UPGRADE there, no downgrades.
@razvanh just heard back from Stripe support: You need to email them and they can downgrade you manually

@yas4891 thank you.

I made a PR for adding support for this API Version, look it up #116

I have had my api version downgraded to 2015-02-16 and am still getting the encoding error.. is there a way to solve this?

@hannatime I just signed up for a brand new stripe account and it works fine with Koudoku set to the default Stripe.api_version of 2015-01-11. The Stripe API allow the client to request a specific API version. You don't need your account downgraded. See my comment in #134 for an explanation of why you're getting the encoding error and how to resolve it.
Hope this helps,
Brandon


Download

Brief summary
I just started using the app today and when I went to download episodes I saw that the download for the video and subtitles are separate so when I went to download English subtitles the app crashed, only the video download worked without subtitles... Is this a bug or am I doing something wrong? And is it possible to make the video and subtitle download one download not two separate ones?
Steps to reproduce
Open the app
Click on a show or movie
Click download icon
Click on subtitles
Click on English for example
App crashes
Vega version
2.5.6
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.

which provider?
and which show or movie ?

which provider?
and which show or movie ?

My demon series on kisskh

should be fixed now


Error when deserializing (f64, f64) type

I'm using Rust api for IC, and have a query method with the return type (f64, f64). This type is serialized correctly by candid, and the type info is saved correctly, but when using Decode macro on this type, I get an error:
Custom(Fail to decode argument 0 from float64 to record { float64; float64 }

Caused by:
    0: input: 4449444c00027272_000000000000f03f000000000000f03f
       wire_type: float64, expect_type: record { float64; float64 }

Debugging deeper into the Decode macro, I can see that the message header is read having
candid::binary_parser::Header
  args -> [
    { index: -14 },
    { index: -14 },
  ]

e.g. two floats. But processing further this gets boiled down to single float for some reason.
The reason I am sure this must work is because the methods with return type (u64, u64) work without any issue.

This looks like a confusion between an argument or result sequence of two floats, and a tuple of two floats.
Can you show which macros you use to endode/decode?

@nomeata This is how I decode the value:
Decode!(result.as_slice(), (f64, f64)).unwrap()

Try
Decode!(result.as_slice(), f64, f64).unwrap()

Yes, it does work this way. Thank you.
Can you explain, why in my code if I use u64 instead of f64 it works? I mean
#[query]
fn my_method() -> (u64, u64) {}
Decode!(result.as_slice(), (u64, u64)).unwrap()

This produces the correct result. What's the difference with f64?

That is odd, should behave the same. Are you absolutely sure, and didn't maybe forget to recompile or so? (Anyways, I'll leave this this to the rust library developers.)

Yes, I'm positive about it. I have at the same time methods returning f64 and u64 tuples.


Private Bucket/ACL works for images in post but not for Featured Images

Issue Summary
My ACL/Bucket is private and so is the blog
When I upload a picture using the settings on the right it uploads the image to spaces but does not load/display the image

However adding the exact same image to the main post works fine
Technical details:
Version 3.11.0
Environment production
Database sqlite3

Hi @eugeneniemand, it sounds like this is an issue with whatever storage adapter you're using and not Ghost core.
We can reopen if you can provide enough information to demonstrate a bug in core 🙂


New version: Meltytech.Shotcut version 23.07.29

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/115143&drop=dogfoodAlpha

@wingetbot run


Add downsampling metrics

When compact goes into its downsampling step, no app metrics are reported, which makes our dashboard look a bit bare for several hours (sometimes days if we have a backlog). Adding a couple of metrics means we can alert if no compactions or downsamples have happened in x period.
This is a little less clean than I'd like due to the two callers of downsampleBucket having slightly different contexts, however I think it's a reasonable compromise. Let me know what you think!
The metrics are labelled in the same way as compact metrics for ease of comparison.
Changes
Add thanos_compact_downsample_total and thanos_compact_downsample_failures_total downsampling metrics.
Verification
Tests are passing, will run with real workloads.

Thanks for reviewing, have updated to use MustRegister 👍

Merging in this form, we can improve that later once we actually need to reuse this component.

Thanks @mattrco !


STATE_CODE for Telangana should be TS instead of TG

Describe the bug
As the heading suggests, the abbreviation for Telangana is widely known as TS instead of TG. (TS signifying Telangana State). The redirects for state details has "/state/TG". It should be "state/TS" instead.
Thoughts?

Can I work on this ?

@sudevschiz Your call. I don't see how we can fix this on the API side. Loads of changes.

I think it's too late for this now


fix(button): support native attributes

Closing for now since we don't currently plan on supporting button values in form submission.


can not connect to my wsl on VS code.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.78.1
OS Version: Windows 10

Steps to Reproduce:
[2023-05-11 07:19:54.951] Resolving wsl+Ubuntu, resolveAttempt: 1
[2023-05-11 07:19:54.952] WSL feature installed: true
[2023-05-11 07:19:54.952] Run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2023-05-11 07:19:55.102] Starting VS Code Server inside WSL (wsl2)
[2023-05-11 07:19:55.102] Extension version: 0.78.4
[2023-05-11 07:19:55.102] Windows build: 19044. Multi distro support: available. WSL path support: enabled
[2023-05-11 07:19:55.102] L10N bundle: undefined
[2023-05-11 07:19:55.103] No shell environment set or found for current distro.
[2023-05-11 07:19:55.288] WSL daemon log file:
[2023-05-11 07:19:55.290] Probing if server is already installed: if [ -d ~/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-05-11 07:19:55.290] Run: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c if [ -d ~/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-05-11 07:19:55.641] Probing result: x86_64
[2023-05-11 07:19:55.642] No server install found in WSL, needs linux-x64
[2023-05-11 07:19:55.642] Getting server from client side
[2023-05-11 07:19:55.643] Downloading VS Code Server stable - 6a995c4f4cc2ced6e3237749973982e751cb0bf9 into C:\Temp\vscode-remote-wsl\6a995c4f4cc2ced6e3237749973982e751cb0bf9\vscode-server-stable-linux-x64.tar.gz.
[2023-05-11 07:19:55.783] Unable to download server on client side: Error: Request downloadRequest failed with message: self signed certificate in certificate chain. Will try to download on WSL side.
[2023-05-11 07:19:55.785] Run: C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 6a995c4f4cc2ced6e3237749973982e751cb0bf9 stable code-server .vscode-server --host=<IP_ADDRESS> --port=0 --connection-token=1028842132-2539211167-583621023-830619337 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-05-11 07:19:56.199] Setting up server environment: Looking for /home/obara/.vscode-server/server-env-setup. Found, executing...
[2023-05-11 07:19:56.199] WSL version: <IP_ADDRESS>-microsoft-standard-WSL2 Ubuntu
[2023-05-11 07:19:56.199] Updating VS Code Server to version 6a995c4f4cc2ced6e3237749973982e751cb0bf9
[2023-05-11 07:19:56.199] Removing previous installation...
[2023-05-11 07:19:56.199] Installing VS Code Server for x64 (6a995c4f4cc2ced6e3237749973982e751cb0bf9)
[2023-05-11 07:19:56.199] Downloading:
[2023-05-11 07:20:06.132] 100%
[2023-05-11 07:20:06.133] Failed
[2023-05-11 07:20:06.133] --2023-05-11 09:20:05--  https://update.code.visualstudio.com/commit:6a995c4f4cc2ced6e3237749973982e751cb0bf9/server-linux-x64/stable
[2023-05-11 07:20:06.133] Resolving update.code.visualstudio.com (update.code.visualstudio.com)...
[2023-05-11 07:20:16.028] failed: Temporary failure in name resolution.
[2023-05-11 07:20:16.028] wget: unable to resolve host address ‘update.code.visualstudio.com’
[2023-05-11 07:20:16.028] ERROR: Failed to download https://update.code.visualstudio.com/commit:6a995c4f4cc2ced6e3237749973982e751cb0bf9/server-linux-x64/stable to /home/obara/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9-1683789595.tar.gz
[2023-05-11 07:20:16.028] VS Code Server for WSL closed unexpectedly.
[2023-05-11 07:20:16.028] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-05-11 07:20:16.048] WSL Daemon exited with code 0
[2023-05-11 07:22:09.474] Download in background is enabled
Note: Although I am on a corporate network, I didn't have this issue before until today.
This line is in red:  Unable to download server on client side: Error: Request downloadRequest failed with message: self signed certificate in certificate chain. Will try to download on WSL side.

It look like your machine failed to download the vs code server at https://update.code.visualstudio.com/commit:6a995c4f4cc2ced6e3237749973982e751cb0bf9/server-linux-x64/stable
Please make sure you have connectivity. If you need proxy settings, please make sure these are configured correctly.


VCRuntime Package Updates with Inspec tests

Resolve download issues with prior versions and updates cookbook to follow the versioning Microsoft uses for VCruntimes.
Description
Using the windows_package resource with the prior framework would not properly install packages as the major version was split between two recipes. Microsoft versioning has maintained a major version of 14 since 2015.
Issues Resolved
Corrects #20 , #21
Check List

[X] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[X] New functionality includes testing.
[X] New functionality has been documented in the README if applicable
[X] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

That was fast!
Thanks Tim


Fix always visible sidebar

frontend: Allow setting up sidebar as null when no sidebar is needed
frontend: Refactor and add more cases to the sidebar stories

Thanks @joaquimrocha , it works for me. Good fix.


Inspector drawing fatal error

When using as this:
    [SerializeField, SerializedDictionary("ItemData & GUID", "MetaData (JSON) & count")]
    private SerializedDictionary<KeyValuePair<ItemData, string>, KeyValuePair<string, int>> inventoryContainer = new SerializedDictionary<KeyValuePair<ItemData, string>, KeyValuePair<string, int>>();
    public SerializedDictionary<KeyValuePair<ItemData, string>, KeyValuePair<string, int>> InventoryContainer { get { return inventoryContainer; } private set { inventoryContainer = value; } }

Console is spammed with error:
NullReferenceException: Object reference not set to an instance of an object
AYellowpaper.SerializedCollections.Editor.SerializedDictionaryInstanceDrawer.DrawGroupedElement (UnityEngine.Rect rect, System.Int32 spaceForProperty, UnityEditor.SerializedProperty property, AYellowpaper.SerializedCollections.Editor.DisplayType displayType) (at Assets/Plugins/SerializedCollections/Editor/Scripts/SerializedDictionaryInstanceDrawer.cs:657)
AYellowpaper.SerializedCollections.Editor.SerializedDictionaryInstanceDrawer.OnDrawElement (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at Assets/Plugins/SerializedCollections/Editor/Scripts/SerializedDictionaryInstanceDrawer.cs:644)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect, UnityEngine.Rect visibleRect) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect) (at <97436df440ca462884c5332c1d8ebbe7>:0)
AYellowpaper.SerializedCollections.Editor.SerializedDictionaryInstanceDrawer.DoList (UnityEngine.Rect position) (at Assets/Plugins/SerializedCollections/Editor/Scripts/SerializedDictionaryInstanceDrawer.cs:124)
AYellowpaper.SerializedCollections.Editor.SerializedDictionaryInstanceDrawer.OnGUI (UnityEngine.Rect position, UnityEngine.GUIContent label) (at Assets/Plugins/SerializedCollections/Editor/Scripts/SerializedDictionaryInstanceDrawer.cs:106)
AYellowpaper.SerializedCollections.Editor.SerializedDictionaryDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/SerializedCollections/Editor/Scripts/SerializedDictionaryDrawer.cs:55)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEditor.UIElements.PropertyField.<CreatePropertyIMGUIContainer>b__44_0 () (at <97436df440ca462884c5332c1d8ebbe7>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <9d7fc877145d4138982bf12cdd3484c6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Error occures even when clicking "+" symbol to add an entry, as well as trying to look at Inspector in runtime. No errors when empty. Functionality seems to be working though.
Similar usage syntax, but less complex, like this, is drawn fine:
    [SerializeField, SerializedDictionary("ID", "Value")]
    private SerializedDictionary<string, string> metaData = new SerializedDictionary<string, string>();

Managed to fix by creating separate Serializable classes
    [SerializeField, SerializedDictionary("ItemData & GUID", "MetaData (JSON) & count")]
    private SerializedDictionary<InventoryItemHead, InventoryItemBody> inventoryContainer;

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public class InventoryItemHead {
    public ItemData itemData;
    public string guid;

    public InventoryItemHead(ItemData itemData, string guid) {
        this.itemData = itemData;
        this.guid = guid;
    }
}

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public class InventoryItemBody {
    public string metaData;
    public int count;

    public InventoryItemBody(string metaData, int count) {
        this.metaData = metaData;
        this.count = count;
    }
}


Only show streaming providers using the providers list command

Some shows are available for purchase on Amazon Prime Video but not included with the Prime Membership. If I have to purchase a show from Amazon I want to use Sonarr for it but if it's already included with Prime I do not.
Examples:
The Office #73244
Reading Rainbow #77547
Mr Roger's Neighborhood #77750 (Season 7 is available with Prime but no others)
Arthur #74678 (Season 10 is available with Primew but no others)
Preferred behavior would be to flag purchasable shows as unavailable and included shows as available
Another option is to simply add purchasable show to the exclude list manually.

Hi,
Great question/feature request! I have checked this, but this concept already works with Excludarr versions 1 and higher. Amazon Prime Video is a streaming service listed in JustWatch (flatrate). However for movies and series you can buy, those are listed under the Amazon provider, which has the category buy in JustWatch.
Excludarr only filters on flatrate providers, so only movies and series that are really streaming on a provider are going to be excluded. I have checked this with all the series you listed in your issue with the en_US locale, this is the outcome:
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
              ╷                             ╷                ╷         ╷                                                                                ╷                    ╷       ╷
 Release Year │ Title                       │ Used Diskspace │ Seasons │ Episodes                                                                       │ Providers          │ Ended │ Full delete
╶─────────────┼─────────────────────────────┼────────────────┼─────────┼────────────────────────────────────────────────────────────────────────────────┼────────────────────┼───────┼────────────╴
 1996         │ Arthur                      │ 0.00GB         │         │ S10E01, S10E02, S10E03, S10E04, S10E05, S10E06, S10E07, S10E08, S10E09, S10E10 │ Amazon Prime Video │ Yes   │ No
 1983         │ Reading Rainbow             │ 0.00GB         │         │ S01E01, S01E02, S01E03, S01E04, S02E01, S02E02, S02E03, S02E04                 │ Amazon Prime Video │ Yes   │ No
 1968         │ Mister Rogers' Neighborhood │ 0.00GB         │         │ S07E01, S07E02, S07E03, S07E04, S07E05, S07E06, S07E07, S07E08, S07E09, S07E10 │ Amazon Prime Video │ Yes   │ No
╶─────────────┼─────────────────────────────┼────────────────┼─────────┼────────────────────────────────────────────────────────────────────────────────┼────────────────────┼───────┼────────────╴
              │        Total Used Diskspace │ 0.00GB         │         │                                                                                │                    │       │
              ╵                             ╵                ╵         ╵                                                                                ╵                    ╵       ╵
Are you sure you want to change the listed series to not-monitored? [y/n] (n):

The only thing I am realizing now is that the excludarr providers list commands also shows providers like Amazon which is a provider you need to buy from. When in the code I am filtering on flatrate (streaming providers only).
I am going to change that in version 1.1.0.

Hi. I'm running into this problem currently.
Locale en_US
Example:
Release Date │ Title                                                          │ Used Diskspace │ Streaming Providers
╶─────────────┼────────────────────────────────────────────────────────────────┼────────────────┼─────────────────────────────────────────╴
 2019-10-24   │ 21 Bridges                                                     │ 2.97GB         │ Amazon Prime Video
 2021-10-01   │ The Addams Family 2                                            │ 4.94GB         │ Amazon Prime Video
 2019-10-10   │ The Addams Family                                              │ 3.39GB         │ Amazon Prime Video
 2017-09-14   │ American Assassin                                              │ 4.37GB         │ Amazon Prime Video
 2017-08-18   │ American Made                                                  │ 6.56GB         │ Netflix, Amazon Prime Video
 2017-07-26   │ Atomic Blonde                                                  │ 6.02GB         │ Amazon Prime Video
 2017-06-28   │ Baby Driver                                                    │ 2.18GB         │ Amazon Prime Video
 2017-10-04   │ Blade Runner 2049                                              │ 5.65GB         │ Amazon Prime Video
 2018-08-01   │ The Children Act                                               │ 3.27GB         │ Amazon Prime Video
 2018-11-21   │ Creed II                                                       │ 5.46GB         │ Amazon Prime Video
 2020-11-25   │ The Croods: A New Age                                          │ 4.07GB         │ Amazon Prime Video


Added new POH overlay icons for Weiss and Troll Stronghold portals

before:

after:

Trollheim and Troll Stronghold are a different teleport

Trollheim and Troll Stronghold are a different teleport

Yes they are, previously the troll stronghold portal used the Trollheim teleport spell icon so I just added a new icon and another for weiss.

oh I see, yeah since there isn't a portal for Trollheim. Never mind me then


radius not called in bubble chart

Adding options={{             elements: {               point: {                 radius: () => {                   console.log("blaa");                 },               },             },
blaa doesn't get called. In other words this prevents customisation of the the individual points in the bubble chart.
What I'm trying to achieve is to scale up all the bubbles so they are not so small.

According to the Chart.js documentation this value should be a number and not a function, so what you are looking to do may not be possible with vanilla chart.js. There may be a plugin to accomplish this.

Hmm interesting. But hard coding radius to e.g. 2 has no effect on the size of the points. Either way I will most likely need a plugin. Still why is this option there if it doesn't work?

Looking deeper into the documentation I found that it is possible to adjust the radius per bubble.
See here.
Rather than setting a global radius, you either want to set it on each data set or on individual data points.

Yes you can adjust the radius per bouble but then you need to alter the value of the data labels so that the amount is still correct. I guess it works but messy


conda can not find enviroment.yml in linux

wenn I try to create conda environment using the environment.yml with the given skript:
conda create -n hotspots -f environment.yml
this error shows up in terminal:
Create conda environment using the environment.yml:
conda create -n hotspots -f environment.yml

This is a typo in the documentation.
Try:
conda env create -n hotspots -f environment.yml
Thanks for pointing this out, I will update the docs accordingly.


Liveries Requests

Please I want to request the following liveries in the future releases:
Middle East Airlines A320 current livery
Egypt Air A320 old livery ( livery of 2000)
Olympic Airways Boeing 737-200
Cyprus Airways A319 ( current livery)
Cyprus Airways A320 ( old livery)
Iraqi Airways Boeing 737-200
Egypt Air Boeing 737-200
Saudia Boeing 737-200
Gulf Air Boeing 737 -200
Tunis Air A320
Egypt Air Boeing 777-300ER
Turkish Airlines Boeing 777-300ER
Egypt Air Boeing 787-9
Egypt Air Boeing 737-800
Austrian Airlines A320 ( livery of 2000)
Turkish Airlines A330-300
Egypt Air A330-300
Emirates Boeing 777-300ER
Qatar airways Boeing 777-300ER
Middle East Airlines Dc-3
Pan Am Dc-3
TWA Dc-3
Swiss Air Dc-3
Air France Dc-3
Sabena Dc-3
Aer Lingus Dc-3
Klm Dc-3
Delta Dc-3
Thank you

Please I want to request the following liveries in future releases:
boeing 777-300ER (FC Barcelona livery)
Boeing 787-8 (Petra livery )
Boeing 787 ( Riyadh Air)
Airbus A320neo (spirit)
Boeing 737 MAX 8 (southwest Hawaii)
Airbus A330(DHL)
Thank you

The 777-300ER, and the A330 are not supported by the livery selector and as always probably not all of these will be added in the future but if you want to see some of them, you can always create and submit them yourself.

Sure thank you so much

I recommend you stop requesting and start doing!

I recommend you stop requesting and start doing!

I made my first livery MEA A320 . How can I code it into the game ? Thank you

I recommend you stop requesting and start doing!

Hello I made my first livery MEA A320 . How can I code it to use it in game ? Thank you

How you did it

How you did it

Just you get the templates from here and edit them with your livery https://github.com/kolos26/GEOFS-LiverySelector


Error when drawing circuits generated by StandardRB

Informations

Qiskit Experiments version: 0.4.0
Python version: 3.10
Operating system: Windows

What is the current behavior?
Running this script:
import qiskit
from qiskit_experiments.library import StandardRB
import qiskit_experiments
import numpy as np
print(qiskit.version.QiskitVersion())
print(qiskit_experiments.version.get_version_info())

lengths = np.arange(1, 600, 200)
exp1 = StandardRB([0], lengths, num_samples=4, seed=1010)
circuits=exp1.circuits()
circuits[0].draw()

results in an exception
{'qiskit-terra': '0.22.2', 'qiskit-aer': '0.11.1', 'qiskit-ignis': None, 'qiskit-ibmq-provider': '0.19.2', 'qiskit': None, 'qiskit-nature': None, 'qiskit-finance': None, 'qiskit-optimization': None, 'qiskit-machine-learning': None}
0.4.0

  ...

  File "C:\develop\env310\lib\site-packages\qiskit\visualization\circuit\_utils.py", line 556, in slide_from_left
    if node.op.condition:

AttributeError: 'Clifford' object has no attribute 'condition'

Steps to reproduce the problem
See the minimal example above
What is the expected behavior?
The circuit should be plotted
Suggested solutions

I have confirmed that this bug occurs with Qiskit Experiments 0.4.0 and Qiskit Terra 0.22.0 on my Mac. Using the current main of both Qiskit Experiments and Qiskit Terra, I get the output below. Is this the output you would have expected? If yes, then I would say this bug is fixed for the next release.
{'qiskit-terra': '0.23.0', 'qiskit-aer': '0.11.0', 'qiskit-ignis': None, 'qiskit-ibmq-provider': '0.19.2', 'qiskit': '0.38.0', 'qiskit-nature': None, 'qiskit-finance': None, 'qiskit-optimization': None, 'qiskit-machine-learning': None}
0.5.0.dev0+d28a4ab
       ░ ┌─────────────────┐ ░ »
   q: ─░─┤ Clifford-1Q(16) ├─░─»
       ░ └─────────────────┘ ░ »
meas: ═════════════════════════»
                               »
«      ┌──────────────────────────────────────────────────────┐ ░ ┌─┐
«   q: ┤ Clifford: Stabilizer = ['-Z'], Destabilizer = ['+Y'] ├─░─┤M├
«      └──────────────────────────────────────────────────────┘ ░ └╥┘
«meas: ════════════════════════════════════════════════════════════╩═
«

Doing a git bisect from main to 0.4.0 showed that the bug was “fixed” in #898.

This is a bug in Terra. Let's export it as a Terra issue. The following is a minimal code to fail.
from qiskit.circuit import QuantumCircuit
from qiskit.quantum_info.random import random_clifford

circ = QuantumCircuit(1)
circ.append(random_clifford(1), [0])
circ.append(random_clifford(1), [0]) # at least two Clifford objects must be appended
circ.draw()

This error can be avoided by changing Clifford object to Instruction object by random_clifford(1).to_instruction().
That is the reason why the main version of Qiskit Experiments does not fail while the 0.4.0 fails. As @conradhaupt mentioned above, #898 changes not to append Clifford objects to RB circuits, that happened to avoid the bug in Terra.

@itoko: Ah! That makes sense.


Accept superclasses in NEP-13/17 dispatching

Follow-up/alternative to #6706.
When dispatching NumPy functions, this causes dask.Array (and its subclasses) to accept any of its parent classes in __array_function__ and __array_ufunc__, as recommended in NEP-13. This makes it easier to subclass Array, since:

Subclasses that don't override __array_function__/__array_ufunc__ inherit an implementation that accepts both them and plain dask.Arrays (their parent class).
When subclasses that do override __array_function__/__array_ufunc__ call that method on super(), it won't always delegate to the other object simply because the method was overridden—it'll only delegate if the other implements the function and isn't a parent class.

cc @jthielen

[ ] Tests added / passed
[x] Passes black dask / flake8 dask

This looks good to me as an alternative to #6706 that also addresses __array_ufunc__ and binary operations. Though, if this does end up being preferred over #6706, some tests with a mock subclass would be useful here.

@jthielen I'll add tests here specifically for binops, ufuncs, and __array_function__ on a couple toy subclasses.
But I think @shoyer is right:

I think it would be a good idea for the broader dask development team to make an intentional decision about whether subclassing dask data structures is a supported feature or not. Implementation inheritance imposes a cost in complexity that may not be worth the trouble.

It's hard to say where to draw the line on testing support for inheritance though, so I'll focus just on the things this PR is meant to address.

Apologies for the delay in review here @gjoseph92. I'm hoping to take a look later in the week.
In the meantime, https://github.com/dask/dask/issues/6734 came up. Do you know if this affects it at all (at a glance, I think the answer is no)?

In the meantime, #6734 came up. Do you know if this affects it at all (at a glance, I think the answer is no)?

Thanks for the mention of that issue @TomAugspurger! I've added a comment about what I think is going on there. If it is what I think it is, then I don't believe it affects this PR.

@gjoseph92 checking in here, should we merge main into this branch and see the status of CI, or is this work stale?

Might as well merge main, I think this is still a valid change. I can tell you it's been running in production for over two years and never caused issues there :)

Ci is green after merging main. @TomAugspurger since you initially reviewed this PR, would you mind giving it a last check and if things look good we can merge it in?

Thanks @ncclementi @TomAugspurger, I never thought this would end up getting in!


Federation resolver type should be determined systematically rather than by the user

Rather than the user selecting the type of federation resolver, the API should parse the IP/CIDR and determine if it is IPv4 or IPv6 and enter it into the database accordingly.

Also, there needs to be better server-side validation. i.e. entering <IP_ADDRESS>/64 results in internal server error.


re-introduce InterruptBootstrap

This class was removed in https://github.com/riptano/cassandra-dtest/pull/1213, but I missed on review that InterruptBoostrap is used elsewhere.

waiting for a quick review by @ptnapoleon.

+1

Cheers, merging.


fix(repeat): bug when "if.bind", "repeat.for" and animations are used in a certain way

closes https://github.com/aurelia/animator-velocity/issues/21 and
https://github.com/aurelia/templating-resources/issues/298

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please, note, I didn't do according test change because existing tests container for repeat is set up in such way that it tests repeat from a jspm package instead of one from the source code. Reported in https://github.com/aurelia/templating-resources/issues/300 .

Thanks for the PR, I'll try to get as soon as possible to verify that the fix doesn't break the CSS Animator.

ok so I've checked the css animator with your fix and it works as well 👍
since @jdanyow already review the change in one of the mentioned issues I think we can safely merge this one @EisenbergEffect

@Alexey1 thanks again for the help

no problem


failed to get DomainInterfaceStats: invalid argument: 'tap2c714c60-c8' is not a known interface

libvirt version: 4.0.0
go-libvrit version: v0.0.0
code:
`
// Report network interface statistics. 网络
for _, iface := range libvirtSchema.Devices.Interfaces {
	if iface.Target.Device == "" {
		continue
	}

	isActive, err := l.DomainIsActive(*domain)
	if err != nil {
		log.Printf("E! [domain:%s] failed to get domain active state for interface: %s", domain.Name, err.Error())
		return err
	}

	var rRxBytes, rRxPackets, rRxErrs, rRxDrop, rTxBytes, rTxPackets, rTxErrs, rTxDrop int64

	if isActive == 1 {
		rRxBytes, rRxPackets, rRxErrs, rRxDrop, rTxBytes, rTxPackets, rTxErrs, rTxDrop, err = l.DomainInterfaceStats(*domain, iface.Target.Device)

		if err != nil {
			log.Printf("E! [domain:%s] failed to get DomainInterfaceStats: %s", domain.Name, err.Error())
			return err
		}`

log：
E! [domain:instance-00007f3c] failed to get DomainInterfaceStats: invalid argument: 'tap2c714c60-c8' is not a known interface
E! [domain:instance-00008e2a] failed to get DomainInterfaceStats: invalid argument: 'tap63df1d05-99' is not a known interface

Again, I don't see a go-libvirt problem here.


Amplify console build error: Packaging lambda failed function failed. Could not find npm executable in the PATH.

Describe the bug
I have configured hosting for my app in AWS Amplify Console, but backend build is failing. Don't see such issues when developing the app, everything works as expected when I push the changes from my local machine to the cloud via amplify cli (i.e. amplify push).
Error message: Packaging lambda failed function failed. Could not find npm executable in the PATH.
To Reproduce
In my setup it happens on any attempt to trigger the build in Amplify Console
Expected behavior
The build succeeds and the app gets deployed to the hosting environment.
Screenshots
Here is the screenshot of the log with the error message:

What is Configured?
My app is utilizing multiple resources and several Lambda functions among them.
One of the Lambda functions (S3UploadTrigger) is using Sharp library to resize and convert images on upload. When updating this function I always have to build it locally inside docker and manually upload the build to Lambda console. I am suspecting that this function might be causing this issue but it is not obvious.
Is there any way to find out which executable is missing in the PATH and how to set it?

This seems to be an issue with Amplify Console. I have transferred this issue to the Amplify Console repository.

This seems to be an issue with Amplify Console. I have transferred this issue to the Amplify Console repository.

Hello @Kirnos,
It looks likes its unable to find npm in the PATH. You can run which npm to see where its installed. If you are using our default build image, we install node 8, 10 and 12 and default to node 12 and use nvm as our version manager. npm should be installed in the build image via the node installations. Looks like the lambda function expects it to be at a specific path.

Hello @Kirnos,
It looks likes its unable to find npm in the PATH. You can run which npm to see where its installed. If you are using our default build image, we install node 8, 10 and 12 and default to node 12 and use nvm as our version manager. npm should be installed in the build image via the node installations. Looks like the lambda function expects it to be at a specific path.

Hello @abhi7cr,
Thanks for your response. I am using the default build image.
I added which npm to the script and it prints the following path /root/.nvm/versions/node/v12.19.0/bin/npm.
I have also inspected all my Lambda functions and see that each one has the file called amplify.state with the following content:
{   "pluginId": "amplify-nodejs-function-runtime-provider",   "functionRuntime": "nodejs",   "useLegacyBuild": true,   "defaultEditorFile": "src/index.js" }
I can't find any documentation describing this file. What is the useLegacyBuildparameter used for?
It seems that the issue is coming from the amplify-nodejs-function-runtime-provider module legacyBuild.ts file, here is the full path from the logs pointing to this plugin<EMAIL_ADDRESS>Also, I noted that some of my Lambdas use 10.x nodejs and some 12.x runtime. Should I modify all of them to have the same runtime?

Hello @abhi7cr,
Thanks for your response. I am using the default build image.
I added which npm to the script and it prints the following path /root/.nvm/versions/node/v12.19.0/bin/npm.
I have also inspected all my Lambda functions and see that each one has the file called amplify.state with the following content:
{   "pluginId": "amplify-nodejs-function-runtime-provider",   "functionRuntime": "nodejs",   "useLegacyBuild": true,   "defaultEditorFile": "src/index.js" }
I can't find any documentation describing this file. What is the useLegacyBuildparameter used for?
It seems that the issue is coming from the amplify-nodejs-function-runtime-provider module legacyBuild.ts file, here is the full path from the logs pointing to this plugin<EMAIL_ADDRESS>Also, I noted that some of my Lambdas use 10.x nodejs and some 12.x runtime. Should I modify all of them to have the same runtime?

@Kirnos Yes, can you modify the lambdas so that they all use 12.x ? I’m not sure about the useLegacyBuild property, I can check with my colleagues and get back to you.

@Kirnos Yes, can you modify the lambdas so that they all use 12.x ? I’m not sure about the useLegacyBuild property, I can check with my colleagues and get back to you.

@abhi7cr - I updated all Lambdas to use 12.x but it didn't fix the issue.
The only function in my backend that still requires 10.x is the autogenerated userPoolGroups lambda which is defined inside .../amplify/backend/auth/userPoolGroups/template.json and always defaults to 10.x even after I update the template.
I looked at the source code of the amplify function throwing the error and see that yarn is also supported there. https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-nodejs-function-runtime-provider/src/utils/legacyBuild.ts#L44
So I ran yarn package manager for each Lambda and now I have yarn.lock files in lambdas' src folders. The issue is still the same - it can't find npm executable in the PATH.
I am stuck at this point and as a next step I am going to create another environment off the current one and try removing lambdas/resources one by one to see which one is causing the issue.

@abhi7cr - I updated all Lambdas to use 12.x but it didn't fix the issue.
The only function in my backend that still requires 10.x is the autogenerated userPoolGroups lambda which is defined inside .../amplify/backend/auth/userPoolGroups/template.json and always defaults to 10.x even after I update the template.
I looked at the source code of the amplify function throwing the error and see that yarn is also supported there. https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-nodejs-function-runtime-provider/src/utils/legacyBuild.ts#L44
So I ran yarn package manager for each Lambda and now I have yarn.lock files in lambdas' src folders. The issue is still the same - it can't find npm executable in the PATH.
I am stuck at this point and as a next step I am going to create another environment off the current one and try removing lambdas/resources one by one to see which one is causing the issue.

Having the same error after adding 2 new lambdas via cli

Having the same error after adding 2 new lambdas via cli

I am having the same issue after fetching the project to a new computer.

I am having the same issue after fetching the project to a new computer.

could @igorimgn  and @Kirnos  share both of you app ids and region ? I will take a look at the logs on our side.

could @igorimgn  and @Kirnos  share both of you app ids and region ? I will take a look at the logs on our side.

Function runPackageManager in amplify-nodejs-function-runtime-provider/src/utils/legacyBuild.ts uses execa.sync with cwd option(code). If cwd is not a valid directory path, execa.sync throws error.
If you add console.log(cwd) in runPackageManager then you may found invalid cwd. That invalid cwd is originated from amplify configuration files(json, yml). In my case invalid lambda function name was in amplify/backend/amplify-meta.json

Function runPackageManager in amplify-nodejs-function-runtime-provider/src/utils/legacyBuild.ts uses execa.sync with cwd option(code). If cwd is not a valid directory path, execa.sync throws error.
If you add console.log(cwd) in runPackageManager then you may found invalid cwd. That invalid cwd is originated from amplify configuration files(json, yml). In my case invalid lambda function name was in amplify/backend/amplify-meta.json

Seeing the same issue. Locally building and pushing works fine, but cloud builds fail for the same reason:
Error: Packaging lambda failed function failed. Could not find npm executable in the PATH.

@ttolvane, could you share your appId and region ?

@abhi7cr Thanks for looking into this. I did file a support request thru AWS support with the details.
For me this got a bit annoying since I happened to deploy my backend to production using amplify cli due to model changes I needed to migrate in using couple of separate deployments. All that went as planned until I wanted to do the final push via Amplify console to get the front-end deployed due to braking changes. To my surprise this specific backend build issue then caused that to fail rendering the service unusable. To get around it quickly I just bluntly commented out amplifyPush from amplify.yml to get past the backend deployment part to the front-end deployed via Amplify console. Perhaps there is a better way to achieve the same, but it worked for the time critical deployment task at hand.

Any news about this bug?

Function runPackageManager in amplify-nodejs-function-runtime-provider/src/utils/legacyBuild.ts uses execa.sync with cwd option(code). If cwd is not a valid directory path, execa.sync throws error.
If you add console.log(cwd) in runPackageManager then you may found invalid cwd. That invalid cwd is originated from amplify configuration files(json, yml). In my case invalid lambda function name was in amplify/backend/amplify-meta.json

Thank you @zfanta, this solved for me.
The problem was that I created a function with the name in kebab case (e.g.: my-lambda-function) using amplify add function. When I pushed I ran amplify push from my PC then I got an error saying that the name was not valid. I then removed the function with the command amplify remove function and created a new one with a valid name.
Apparently, the CLI did not remove all references to the removed function. In fact, I had to remove manually the references from backend-config.json and from team-provider-info.json and then the build was successfull.
If it can be helpul the CLI version is 4.41.2.

I think my problem was also kebab naming. But there is also the issue that multiple changes to the same resource are not yet 100% smooth - there are undeleted references.
For example, when I add a lambda and then deploy it.  But if I add it again then thing get broken.
 Reset to a previous commit and then add the lambda with a different name and without kebab case. So probably there is some dead reference in the code.

Just came across this thread... project is kebab case..... I'm really hoping this isn't the death of my project... but I'm having the same problem

Resolved same errors in my project.
Issue was newly created functions were not added to git repo.

Had this same issue because I deleted a function and amplify didn't remove all the resources correctly. I fixed it by removing the remaining references from team-provider-info.json and backend-config.json.
You may run into this if you've got a command window open in a lambda src directory. This has happened to me multiple times now because of this.

For me it helped by removing a function I didn't use. No idea why but it resolved the issue.

Empty folder and function in the backend config and team provider info caused this for me

Empty folder and function in the backend config and team provider info caused this for me.
Had to edit several generated files - this is an annoying one.

I got this error after manually renaming a Function throughout the code. (Find and replace)
Running amplify status would still show the function name with the old name.
Running amplify init fixed the discrepancy, but I would still get the error.
I finally noticed I had forgotten to rename the function's contain folder !
Renamed that too and problem fixed.

This happened to me when jumping branches during development.

On one branch I had created some amplify resources: storage, api, and function.  They were synced to the cloud.
I committed changes to branch #1, checked out master, and then created another branch #2.
I then started to work on some new amplify resources in branch #2.

when trying to push new resources: "Packaging lambda failed function failed. Could not find npm executable in the PATH"
I believe since some of the amplify generated state files are not tracked by git they got out of sync.
To fix it I removed my changes in the new branch (backed them up locally), switched back to the first branch, and reverted some changes to the non-tracked amplify state files: amplify/backend/amplify-meta.json, amplify/team-provider-info.json
I'm not exactly sure what's the right way to move forward, but I thought I'd post a solution that at least got me back to a working state in case it's helpful to anyone.

It would be really useful to have the scriptName and CWD as part of the error message. This is driving me nuts. I don't have any unused references in my backend-config.json or team-provider-info.json.


Optional email verification on keyless signing

Description
Option to turn off the email verification check on the id token being returned by an oidc issuer. Another option may be to make some claim verifications configurable for private deployments.
Depending on how private odic issuers are configured, they may not have support for this claim. Additionally, in terms of just locally testing it adds some complexity to the configuration/setup.
Thread in slack.

FYI this happens in s/s: https://github.com/sigstore/sigstore/blob/main/pkg/oauthflow/flow.go#L122
We should still track this issue here, in the Cosign repo.
In Fulcio, we may want to be able to configure this per-issuer. Cosign would ideally do the same thing as Fulcio (maybe by downloading the Fulcio config?). We could just turn the check off in Cosign, though, which would be much simpler.


filters doesn't work on windows systems due to wrong path separator

I tried to use  a filter like:
var tsProject = ts.createProject({
    typescript: require('typescript'),
    sortOutput: true,
    noImplicitAny: true,
    noEmitOnError: true,
});

gulp.task('ts', function() {
    var tsResult = gulp.src(['content/*.ts'])
        .on('error', function(err) {
            console.error('Error', err.message);
        })
        .pipe(sourcemaps.init())
        .pipe(ts(tsProject), undefined, ts.reporter.longReporter());
    return merge(
       tsResult.js
           .pipe(ts.filter(tsProject, { referencedFrom: ['MainModule.ts'] }))
           .pipe(concat('MainModule.js'))
           .pipe(sourcemaps.write('./', { includeContent: false }))
           .pipe(gulp.dest('content/')),
       tsResult.js
           .pipe(ts.filter(tsProject, { referencedFrom: ['SubModule.ts'] }))
           .pipe(concat('SubModule.js'))
           .pipe(sourcemaps.write('./', { includeContent: false }))
           .pipe(gulp.dest('content/'))
   );
});

but get the following error:
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\windowModule.js. Make sure you don't rename a file before you pass it to ts.filter()
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\windowModule.js. Make sure you don't rename a file before you pass it to ts.filter()
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\MainModule.js. Make sure you don't rename a file before you pass it to ts.filter()
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\MainModule.js. Make sure you don't rename a file before you pass it to ts.filter()
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\SubModule.js. Make sure you don't rename a file before you pass it to ts.filter()
gulp-typescript: Could not find file C:\workspace\Apps\MyApp\Module\content\SubModule.js. Make sure you don't rename a file before you pass it to ts.filter()

I think the reason for this is that the files stored in this.project.output.files are stored with slashes and not with windows like backslahes.
I fixed the problem by adding a line to filter.js
    Filter.prototype.match = function (fileName) {
        var fileNameExtensionless = utils.splitExtension(fileName)[0];
        // replace backslash with slash
		fileNameExtensionless = fileNameExtensionless.replace(/\\/g, "\/");
        var outputFile = this.project.output.files[fileNameExtensionless];
        if (!outputFile) {
            console.log('gulp-typescript: Could not find file ' + fileName + '. Make sure you don\'t rename a file before you pass it to ts.filter()');
            return false;
        }

Could you please provide a release with this fix?
Thanks a lot.

Thanks for reporting, fixed. I'll release a new version soon.

Thanks.

The sames problem occurs while trying to use reporters under Windows.

@djflex68 Can you give more information about your issue?

Yes, my gulp task is looking like this :
var tsProject = ts.createProject({
    target: "ES5",
    module: "amd",
    noExternalResolve: true
});

var tsResult = gulp.src(
        ['./**/*.ts',
         '!./node_modules/**', '!./node-build-tasks/**'])
                       .pipe(sourcemaps.init())// This means sourcemaps will be generated
                       .pipe(ts(tsProject), {}, reporters('gulp-typescript'));

Which causes the same error as described by @mtestrot

@djflex68 That should also be fixed with the fix for the original issue. In version 2.7.7 or earlier replacing {} with undefined would fix your issue, in 2.7.8 both will work.