lru_cache in decorator section, context manager in functionnal programming

Hello,
I suggest adding an @lru_cache short description in the decorator section of the functional programming part as well as a context manager part.
The lru_cache is a great example of what a decorator can do (caching data to dramatically reduce computation).
Caching is a great concept to learn and master, which seems to fit in your project.
You also already use the functools module for the "reduce" part, so It won't be weird to introduce the lru_cache.
ref : https://docs.python.org/3/library/functools.html
https://realpython.com/lru-cache-python/
The context manager "with" is a common tool found in python code, and it should be useful to explain how to make your own.
ref : https://www.youtube.com/watch?v=cKPlPJyQrt4 (talk that tie together decorator, generator nicely).
On a side note, I also suggest reducing the range (line for num in (range(0, 10000)):) in 27, counting to 10 000 or 1000 wouldn't change the example in itself, but it would reduce the amount of space wasted in the page.

Hi @0pb! Thanks for reaching out!
Please, feel free to contribute to the functional programming part with a pull request, I will be glad to review it, and thanks for the ideas. Regarding the output, if you open the colab notebook where I was working for that part (there's a link provided in the directory) you will notice that the output is rendered horizontally and not vertically. I wanted to use a large number, hence the 10,000, in order to show the use of a decorator there.


Add token validation to additional blog methods?

Currently, the POST method in the blog endpoint requires authentication headers. However, based on the code for the DELETE and PUT methods, authentication is not required which seems a little counterintuitive when considering that creating a blog does.
Should the DELETE and PUT methods require authentication headers?

If the repository owner confirms that authentication is required, this issue should also serve to track the changes required for implementation.

yes, I missed that part. PUT and DELETE must require authentication headers as well !


fix(material/button): use token API for typography

Fixes that the buttons were going through the without-ripple mixins for their typography, instead of the token API. Note that the FAB isn't included here, because it doesn't support typography through tokens yet.

I tried to land this one, but it broke a ton of targets internally so I may have to park it for a while. The problem appears to be that the line height of the buttons is slightly different after this change.

Closing since it will be handled in a different PR.


Improve usability of search&replace dialogue

From<EMAIL_ADDRESS>on 2010-09-16T10:56:08Z
the search & replace dialogue is still not very usable.
I can complete my quick editing faster by copying teh code teporaily to Notepad++
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=377

From pierre.raybaut on 2010-10-26T04:57:47Z
Why not improving its usability but how?
Summary: Improve usability of search&replace dialogue

From<EMAIL_ADDRESS>on 2011-03-22T05:14:48Z
Hi, I have a few comments on that topic:
In the other editor which I have used mainly until discovering Sypder, Editra, the search&replace dialog opens a new windows. Technically, this should be feasible with Qt, too.
Also, that dialog remembers settings, e.g. "replace ALL occurences", and has a checkbox which allows to apply the replacement on all opened files or even all files in the current working directory. This is not really a re-factoring feature but comes very close.
Thanks a lot for consideration,
all the best,
Daniel

From pierre.raybaut on 2011-04-02T06:21:40Z
Hi,
Thanks for your suggestions.
I think that implementing a pop-up dialog would be a regression.
Regarding the "replace in all opened files" or "replace in whole directory", supporting refactoring features would be much more powerful and safe.
Refactoring support: https://code.google.com/p/spyderlib/issues/detail?id=415&q=refactoring
Status: Done


convert all f32 things to f64 things

@corruptedzulu I made a new branch off yours. I replaced all f64s with f32s.
Some tests are still failing as before, but this time no more type casting which may save CPU. Note the Mathf usage in place of Math. It is the same, but with all f32 operations instead of f64.
I guess Prettier somehow formatted files that the find/replacing I did didn't touch. Setting the "Hide whitespace changes" option in the "Files changed" tab (in the gear cog at top left of modified files) may make it a little easier to read.
Let's get your branch passing and merged first, then we can rebase and merge this one.

I sent in two additional commits for this to correct some issues. @trusktr can you review those commits and give a yea/nay on them? I'll then mark the whole PR as reviewed and merge it into the geometry branch


Invalid comparisons

This is perfectly ok according to the Scala compiler: if 1.0f < 0 then ... but does not compile to GLSL because they both need to be floats, i.e.: if 1.0f < 0.0 then ...
You get a compile error in the browser logs, but it would be nice to catch this at Scala compile time.

As usual, it's a bit complicated.
The spec calls these "vector relational functions": "<" | "<=" | ">" | ">=" | "==" | "!="
https://registry.khronos.org/OpenGL/specs/es/3.0/GLSL_ES_Specification_3.00.pdf
...and it's easy enough in theory, you just need to make sure the type on the left is the same as the type on the right. However in practice, as soon as you introduce a variable then at the point of comparison, you don't have the type immediately to hand.
I did try doing a "best effort" comparison, knowing the names of the types we care about we can just check, right? Well, no, because the Scala compile things comparing float and double is totally ok, and inlines known values and whole if statements before we can even check them. :smile:
So plan B might be to add it to the program validation step, which is only slightly better than the current behaviour.


Gear ~ unexpected ui of Play toolbar icon.

After pressing play toolbar icon, when we press other toolbar icons, the play action stops ,but the play svg on the play toolbar icon remains instead of switching to the pause svg.

You're right, it's related to https://github.com/llaske/sugarizer/pull/1506

Fixed in https://github.com/llaske/sugarizer/pull/1601


Error Cert/SSL

When I run this :
sudo -u root /lib64/nagios/plugins/check_kubernetes -kubeconfig /etc/icingatest/config -type deployment -namespace itsma1 -name *
I got this error message do you know why ? i run it in root but crt is blocked
Cannot configure kubernetes client: invalid configuration: [unable to read client-cert /opt/kubernetes/ssl/server.crt for kubelet due to open /opt/kubernetes/ssl/server.crt:

I would guess it's because you did not embed the certs into your kubeconfig. Instead in your kubeconfig is a reference to where the cert would be in the filesystem.

yes i understand but when i watch my kube/config i can see :
client-certificate: /opt/kubernetes/ssl/server.crt
client-key: /opt/kubernetes/ssl/server.key
The path is correct beacause its the same path on my master cluster. Maybe this is not the good cetif ?


several firmware magics

just a few file formats used by Android firmware/bootloader developers

I just noticed that there is a warning:
WARNING: Signature '0     string     __UTAG_HEAD__   Motorola UTAGS' is a self-overlapping signature!

what does cause this?  are '__' treated in a special way?

I fixed it by adding \x00 to the end

Is there a way to do multi-line matches? i.e. the bootloader which parses the bootlogo gets matched because it contains the magic string.
I can do sth. like !0 but t hat will only prevent printing that specific field, not the whole thing.

Yes, you can include additional validation to a signature using the {invalid} tag. A simple example would look something like this:
0   string    ABCD    Signature for ABCD file type,
>4 ulelong    x       file size: %d,
>4 ulelong    >1024   {invalid}  # ABCD files should never be larger than 1024 bytes

thx, I update the Nexus magic definitions so they don't match the string tables anymore


Redirect HTTP requests to HTTPS in the catalogue API

Resolves #2493, because that keeps biting me.
Already deployed, just needs a review:
$ curl --head http://api.wellcomecollection.org/catalogue/v1/works
HTTP/1.1 301 Moved Permanently
Date: Wed, 29 Aug 2018 14:59:57 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Server: nginx
Location: https://api.wellcomecollection.org/catalogue/v1/works
Strict-Transport-Security: max-age=31536000; includeSubDomains;

This uses the Redirect action in the lb_listener resource, which only appeared in the latest version (a week ago!).

Nice and simple. 👍


Implement Pre-aggregation in Pg Connector

We only support pre-aggregation in BigQuery now. We should implement it in Pg Connector, too.

legacy issue.


„Weblate“ locked (again), errors. (CONFLICT (content): Merge conflict in applications/luci-app-firewall/po/lt/firewall.po)

As I already mentioned in „Help translate the web interface via weblate“

P.S all languages are affected.

Yeah, I am pretty sure that it is related to commits made directly to language files by @systemcrash a few hours ago.
I haven't yet figure out which of the recent commits it was.
(Firewall, network and luci-base are somewhat intertwined)
Weblate is annoyingly picky about direct git changes to files that are included in its open PRs.
As best practice to avoid conflicts, I have learned to first merge the open Weblate PRs, and only then edit / merge other language file changes.

Fixed with b6e968b
This was a pretty peculiar failure.
No clear direct git commits touching firewall or statistics components, except weblate's own PR commits.
Looks like a race/concurrency problem, where somebody have just translated one or more strings and weblate has launched an periodic commit process and it simultaneously receives a trigger of upstream repository change (direct git commit to LuCI repo).
The first failed/conflicting strings are translated here:

When a few hours late @systemcrash makes edit via weblate interface, it then suddenly notices a conflict. Based on the edits needed, the conflict was related to weblate changes made by @dziugas1959 a few hours earlier via weblate itself.

So, weblate was in conflict with changes made via itself. :-(
First time that we have seen that, I think.

😅


HOSTEDCP-1372: Bumps k8s to v0.29

What this PR does / why we need it:
Bumps k8s to v0.29
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes HOSTEDCP-1372
Checklist

[x] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/hold
https://github.com/openshift/hypershift/pull/3359 needs to merge first

/test images
/test verify
/test unit
/test e2e-aws

/test images
/test verify

/unhold
/test images
/test verify
/test unit
/test e2e-aws

/test e2e-aws

/retest

/retest

/retest

/retest

/test e2e-aws

/retest


class-ify ShuffleRegionJoin, force setting seqdict

fixes #697

As per my comments on #697, I am +1. However, I'm going to hold off on merging this until we cut a 0.17.0 release, and to give @laserson and @tdanford more time to comment.

Yea we can discuss more on #697 for the time being…

updated this and the description to reflect that it is no longer removing the RegionJoin trait, but simply forcing ShuffleRegionJoin to be initialized with a seqDict and partitionSize.

this is ready to go, yea @fnothaft? (don't want to pester you while you are at a conference; should I enlist others to merge)?

I'm about to run to the airport but will have an hour or two there where I would be glad to merge this. Is this rebased on ToT? If not, I'll merge manually.

I've got the green "Merge pull request" button here so it is either at ToT or close enough. Update: it is in fact at ToT. (In general if it's close enough that it merges cleanly, do you still care about rebasing?)

Merged! Thanks @ryan-williams!

In general if it's close enough that it merges cleanly, do you still care about rebasing?

Yeah, we prefer everything to be rebased before merging in.  This is IMO a funky design decision in git... In any case, if a PR is small and is not rebased on ToT, we'll manually rebase and merge it.

Cool, makes sense.

This is IMO a funky design decision in git

The allowing of non-linear commit histories, you mean?

The allowing of non-linear commit histories, you mean?

Yeah. I mean, obviously this is personal preference but I can't fathom a reason that you'd want a non-linear commit history.
There are also funky design decisions in Github. E.g., the "is this rebased?" question would go away completely if Github exposed the option to only allow fast forward merges. But—god knows why—Github goes the opposite way and disallows fast forward merges via the merge button...
Anyways, this is frankly personal preference. I mostly love git and Github. ;)

Makes sense; I've slowly come to want to embrace branching/merging over squashing/rebasing, but it's been a process and taken work.
Github disallowing fast-forward merges, interesting… I guess it doesn't really make sense to merge something that hasn't really been branched (e.g. is an ancestor of HEAD)? Good to know…


Remove unneccessary AppsandFeaturesEntries * manifests/p/PDFsam/PDFsam/5.2.6/PDFsam.PDFsam.installer.yaml

Microsoft Reviewers: Open in CodeFlow

URL:
Invalid URI: The hostname could not be parsed.
(Automated message - build 899)


Added $AUTOINSTALL for usability in other scripts

Added an optional AUTOINSTALL parameter that makes it easier to integrate this script in other scripts for automation (user need not wait to press yes when asked.
Fixed outdated build command in the "Common Installation" section of README.md
Added URL within quotes for the one-command-installation so that it can be used in other shells like zsh which would throw the following error otherwise

$ bash <(curl -s https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1)

zsh: no matches found: https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1

Thanks for the contribution. Reviewed and merged.


Silence GHC during compilation and give a summary of relevant vs already compiled slices

GHC is giving output for every module it compiles. Since we have quite a few modules this is annoying. We want something like:
> fragnix Main.hs Greet.hs
Slicing... 75 relevant slices.
Compiling... 34 new compilation units.
Success! Executable is ./main

GHC is silenced by f10c0622a41ba3299b638e3e39939c0130eaf328


Add deploy to Docker button

Fixes #156

@gabru-md Please review

Why remove Heroku?  Is it not possible to give people to chose either one?

@cclauss Heroku is not removed at all

@S2606 You are correct.  I misread the diff. Thx.


Optional Filters and Parameter for the Link Suggestions

I use Obsidian for College and within the same Vaul i have all the different fields in top level groups. Usually i only want to find links within the same subject as topic names might be the same but mean different things within different courses or fields.
It would be greate if the displayed link suggestions offer the option to filter to only show links within the same top level group or even only in the current group
Alternativly it would be useful to switch the view around sometimes so instead of showing all the things within one note that could be linked elsewhere. I would like to see all the different instances that link to this note. That way i can also more easly controll the note i want linked if the found instance could fit multiples.
For Example the text: "Process" would be suggested for instances of the word " Process " in the group computer sience and " Buisness Process " in Economics. But i want to find all the instances of "Process" within computer sience and link to it. So i could switch the view and then filter only for instances within the same top group to quickly find this.

I work with different clients and separate domains by the top level folder structure. I would love a filter so linker suggestions only suggests notes in the same or sub folders.


[Python][R][Docs] Update the "Integrating PyArrow with R" documentation section to not use _import_from_c/_export_to_c

Currently, the "Integrating PyArrow with R" page (https://arrow.apache.org/docs/13.0/python/integration/python_r.html) has a section on using the C Data Interface to communicate data between R and Python. This section uses the low-level _import_from_c / _export_to_c methods, and we should see if we can and should update this to not use those methods directly.

I wanted to point to the existence of rpy2-arrow, which already implements the C Data Interface, but so looking at that page again, we actually already do use that for the main example. The additional section https://arrow.apache.org/docs/13.0/python/integration/python_r.html#r-to-python-communication-using-the-c-data-interface is then to "switch from using rpy2-arrow to using the plain C Data interface".
I am not sure how important this is that we point users towards such a solution, though. And if we want to keep this "advanced" low-level example that doesn't use rpy2-arrow, for such a section it might also be fine to use the lower-level methods instead of the PyCapsule protocol.
(although currently if an error happens in the R function, that's a memory leak?)


Missing Variable types for Tools-Maven/IntelliJ

Is your feature request related to a problem? Please describe.
We need to add variable types page for maven and intellilj to explain the selector and format for -Dargs
Additional context
Add any other context or screenshots about the feature request here.
Migrate this page: https://docs.aion.network/docs/variable-types

Fixed in aef981dec331272302c142a44ba04edd82ee322a


[DropDownMenu] TabIndex, Close on ESC, Emitting button label

First off, thanks for your hard work on this project, it's really incredible.
Keyboard behavior differs between DropDownMenu and IconMenu.
In IconMenu, we can tab to an IconMenu in the DOM. Then by hitting spacebar the menu opens and we are able to move through the indices there. Then, upon hitting ESC the menu closes and we are returned to the TabIndex of the menu icon in the page.
In DropDownMenu, we can't select the menu by tabbing through the page nor can we close the menu by hitting escape. In addition, we can't create a custom label for the DropDownMenu emitting button that is not one of the options in the menu. This common use case is shown in the Material Design spec here (second one down): https://www.google.com/design/spec/components/menus.html# . I worked around this by making the first MenuItem disabled as setting that and the default option.
I'd like to request that we make the behavior of DropDownMenu the same as IconMenu. What would be even better is if we could choose to turn off or change this behavior through the use of a prop. Since devs don't have access to open and close these menus programmatically, it would be yugely useful to provide an interface via props. It may be as simple as saying "<DropDownMenu closeOnEsc={ false } />". If not that, providing a way to programmatically open and close the menu using a ref would be useful.
DropDownMenu getting keyboard focus has been requested before here: https://github.com/callemall/material-ui/issues/714#issuecomment-190831238
"When tabbing through a form or page and the tab order shifts onto a Drop Down menu it should get focus"
This was said to be fixed here: https://github.com/callemall/material-ui/pull/846 but does not provide that functionality.
DropDownMenu is not selectable by tabbing and can't be closed by hitting ESC. It is not a feature to be able to use a dropdown with a custom label for the menu emitting button as specified in the Material Design spec.
http://www.material-ui.com/#/components/dropdown-menu
IconMenu is selectable by tabbing and can be closed by hitting ESC: http://www.material-ui.com/#/components/icon-menu
Thank you.

Sounds like you have this all figured out. Please submit a PR! :+1:

How does #3583 work in this context? It focusses on <SelectField /> but mainly uses <DropdownMenu /> to fix it.

It doesn't but I will be sure to refer to what you did working on this PR. Thanks.

@sburgess8 : Has this issue resolved for you by using the above PR suggestion? Do let us know.

Thanks for your interest. #3583 does not solve the issue of dropdown menus being accessible in the tab index of a page. This issue is preventing our adoption of this component. I have not compared the DropDownMenu vs IconMenu vis a vis tabbing since the most recent major refactor. I will include it on my todo list to investigate and hopefully work on a PR in the near future.

Cool. That would be awesome. Thanks!

I've taken a stab at implementing this (see the change list at my fork).
You can:

[x] Can navigate to, and see the focus state of SelectField / DropDownMenu.
[x] Can use space to open, esc to close menu, or enter to select an item.

Before I open a PR, there's a weird bug though in the context of SelectField. When the popover closes via the keyboard, I re-focus the DropDownMenu (see here) so you maintain the tab position. The item properly gets focused for a moment, but then this causes a blur event on the containing TextField, which does a setState, which for some reason causes the <body> to take focus (maybe the DOM element is being removed temporarily?). This line (TextField#L350) is the culprit - comment it out and the DropDownMenu retains focus properly.
Can anyone provide some feedback as to why the DropDownMenu is loosing focus when TextField does a setState?

Is there any progress on this? Not being able to select a form component with tab, is a no-go for me.


[Issue 5901] Added support to offload all partitions of a partitioned topic

Motivation
Fixes #5901
If there is a partitioned topic with too many partitions, users need to offload one by one.
Modifications
Add a method triggerPartitionedOffload with parameter PartitionedMessageIdImpl for offloading on a partitioned topic.

/pulsarbot run-failure-checks

@murong00 I moved to 2.7.0 since this also need more discussion about this PR, feel free to move it back if you want to onboard it in 2.6.0 release.

@murong00 I will close this issue first, feel free to reopen it if needed.


Update eredis to 1.0.8

@artemeff now referencing eredis 1.0.8 on Hex (looks like eredis was added to hex within the last 9 hours).  Also one commit as requested :smiley_cat:

Thanks!


Setting to disable ligatures

Check for existing issues

[X] Completed

Describe the feature
Currently the "!=" sequence in a source file gets rendered as "≠" in a buffer, as well as in the search dialog, etc. I would like to turn off that "feature". Noticed it in both C and Go source files. Is it just not documented, or is this actually hardwired behavior? Would prefer WYSIWYG.
If applicable, add mockups / screenshots to help present your vision of the feature

It is a feature in some fonts called 'ligatures'.

Right, thanks for confirming that. It is cool it can render them, but what I'm asking: is there a way to turn ligature rendering off? Most apps that I use involving monospaced fonts either default to not rendering them, or have a preference to turn it on or off. Defaulting to on is surprising.

We don't have a way to turn them off as of yet - you'll just need to swap to another font that doesn't have them in the meanwhile.  I'm currently using Jetbrains Mono NL in order to avoid the same thing.

Thanks, looks like Source Code Pro also works for this purpose. Just need the Find and other UI elements to be font-configurable to match i.e. this.

Assuming this merges today this should land in around 2 weeks. Thanks @as-cii for grinding on this 🙏🏽
Not only will this allow you to disable ligatures, but it will also let you set other open type features. @rsms has a create playground for open type features here for inter: https://rsms.me/inter/lab/
https://user-images.githubusercontent.com/1714999/225958457-0d8f981f-38e8-4e74-9444-7660cdbd42e1.mp4

@iamnbutler, is this new setting something like VSCode's editor.fontVariations, but instead of being string-based is object-based?
I'd like to use https://github.com/evilmartians/mono with Zed, but I need a way to set wdth and wght to make it usable, in addition to line-height (which is tracked here, I guess: https://github.com/zed-industries/community/issues/304).

A setting for this will be landing in v0.79.0.

The setting should now be released. To disable ligatures, use this setting:

{
  "buffer_font_features": {
    "calt": false
  }
}

https://docs.zed.dev/configuration/configuring-zed#font-features

@JosephTLyons, this feature doesn't seem to work with cvXY character variants.
Is this a bug or something that's just not supposed to work at all?
Here's a side-by-side comparison with VSCode (notice the %%% in the comment at the bottom):

I've also tried with Inter (notice the 444 in the comment at the bottom):

But other features work, like zero or ss01 (which enables the cv02 variant, the one for the 444 in the screenshot above):


Migrate internal packages from pkg/f1 to internal directory

This was somehow messed up, so we created a new branch and PR.


sdkVersion raises an error

If I put sdkVersion in my build.gradle like specified in the README, I get this error:
No such property: sdkVersion for class: org.gradle.api.internal.initialization.DefaultScriptHandler

Same here, when running on newer versions of Gradle: 4+

sdkVersion must be part of the javacard closure. This is fixed in https://github.com/fidesmo/gradle-javacard/pull/27

Closed by #27


PPO in Llama2-7B Padding_idx must be within num_embeddings

env
transformers              4.34.0.dev0
torch                     1.13.1+cu117
deepspeed zero3
{
"gradient_accumulation_steps": "auto",
"gradient_clipping": "auto",
"steps_per_print": 100,
"train_batch_size": "auto",
"train_micro_batch_size_per_gpu": "auto",
"wall_clock_breakdown": false,
"optimizer": {
    "type": "AdamW",
    "params": {
      "lr": "auto",
      "betas": "auto",
      "eps": "auto",
      "weight_decay": "auto"
    }
},
"bf16": {
  "enabled": "auto"
},
"zero_optimization": {
    "stage": 3,
    "offload_optimizer": {
      "device": "cpu",
      "pin_memory": true
    },
    "offload_param": {
      "device": "cpu",
      "pin_memory": true
    },
    "overlap_comm": true,
    "contiguous_gradients": true,
    "sub_group_size": 1e9,
    "reduce_bucket_size": "auto",
    "stage3_prefetch_bucket_size": "auto",
    "stage3_param_persistence_threshold": "auto",
    "stage3_max_live_parameters": 1e9,
    "stage3_max_reuse_distance": 1e9,
    "stage3_gather_16bit_weights_on_model_save": true
},
"scheduler": {
  "type": "WarmupDecayLR",
  "params": {
    "total_num_steps": "auto",
    "warmup_min_lr": "auto",
    "warmup_max_lr": "auto",
    "warmup_num_steps": "auto"
  }
}

}
error code
self.model, layer_norm_params = cast_layernorm_dtype(self.model, self.compute_dtype)   unwrapped_model: "AutoModelForCausalLMWithValueHead" = self.accelerator.unwrap_model(self.model)   response: torch.Tensor = unwrapped_model.generate(**batch, **generation_kwargs)
debug
batch:
input_ids: torch.Size([128, 512])
attention_mask: torch.Size([128, 512])
generation_kwargs:
do_sample: True
temperature: 0.95
top_p: 0.7
top_k: 50
num_beams: 1
max_new_tokens: 358
repetition_penalty: 1.0
length_penalty: 1.0
eos_token_id: [2]
pad_token_id: 40076
logits_processor: [<transformers.generation.logits_process.InfNanRemoveLogitsProcessor object at 0x7f1ecc55eca0>]
How can i fix this error😭

Sorry about the format, this is the error code
@torch.no_grad()
def get_inputs(
    self,
    batch: Dict[str, torch.Tensor],
    length_sampler: Optional[Callable] = None,
    **generation_kwargs
) -> Tuple[List[torch.Tensor], List[torch.Tensor]]:
    r"""
    Generates model's responses given queries.
    """
    if length_sampler is not None:
        generation_kwargs["max_new_tokens"] = length_sampler()

    self.model, layer_norm_params = cast_layernorm_dtype(self.model, self.compute_dtype)
    unwrapped_model: "AutoModelForCausalLMWithValueHead" = self.accelerator.unwrap_model(self.model)

    response: torch.Tensor = unwrapped_model.generate(**batch, **generation_kwargs)

I have a suggestion. Please upgrade the transformers version. The code is as follows：
!pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0
hope that may help you

I have a suggestion. Please upgrade the transformers version. The code is as follows： !pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 hope that may help you

Thanks for the advice, but it hasn't worked.😭

https://github.com/huggingface/transformers/issues/19296

I have a suggestion. Please upgrade the transformers version. The code is as follows： !pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 hope that may help you

Thanks for the advice, but it hasn't worked.😭

I got the same problem. How did you solve it?

I'm getting the same error in Databricks.
Traceback (most recent call last):
  File "/tmp/tmpuu_ymkfq/train.py", line 8, in <module>
    output = fn(*args, **kwargs)
  File "/root/.ipykernel/4038/command-3573823106507260-230899254", line 80, in fine_tune_llama
  File "/root/.ipykernel/4038/command-3573823106507260-230899254", line 43, in load_model
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-31a51b8b-c246-4f89-aeb6-282d1a3f21d4/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 566, in from_pretrained
    return model_class.from_pretrained(
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-31a51b8b-c246-4f89-aeb6-282d1a3f21d4/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3236, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-31a51b8b-c246-4f89-aeb6-282d1a3f21d4/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 961, in __init__
    self.model = LlamaModel(config)
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-31a51b8b-c246-4f89-aeb6-282d1a3f21d4/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 822, in __init__
    self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
  File "/databricks/python/lib/python3.10/site-packages/torch/nn/modules/sparse.py", line 133, in __init__
    assert padding_idx < self.num_embeddings, 'Padding_idx must be within num_embeddings'
AssertionError: Padding_idx must be within num_embeddings


Homekit Controller Future exception was never retrieved

Home Assistant release with the issue:
0.88.2
Last working Home Assistant release (if known): none
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
Homekit Controller
Description of problem:
I have four iDevice outlets that I setup using homekit controller. On restart, randomly two out of the four iDevice outlets will not show up and giving an error in the log.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
  enable:
    - homekit
  ignore:
    - yamaha
    - harmony
    - apple_tv

Traceback (if applicable):
2019-03-10 23:57:15 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/homekit_controller/__init__.py", line 361, in discovery_dispatch
    device = HKDevice(hass, host, port, model, hkid, config_num, config)
  File "/config/custom_components/homekit_controller/__init__.py", line 97, in __init__
    self.accessory_setup()
  File "/config/custom_components/homekit_controller/__init__.py", line 111, in accessory_setup
    data = self.pairing.list_accessories_and_characteristics()
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 274, in list_accessories_and_characteristics
    response = self.session.get('/accessories')
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 637, in get
    return self.sec_http.get(url)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 66, in get
    return self._handle_request(data)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 92, in _handle_request
    return self._read_response()
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 136, in _read_response
    data = self.sock.recv(exp_len)
ValueError: negative buffersize in recv

Additional information:

Do you get the same error without the custom component? Please remove the custom component and try again.

Could we please close #20600 as it is now a duplicate of this one (same user/devices/problem).

Do you get the same error without the custom component? Please remove the custom component and try again.

I removed the custom component and get the same error:
2019-03-11 15:09:18 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 367, in discovery_dispatch
    device = HKDevice(hass, host, port, model, hkid, config_num, config)
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 98, in __init__
    self.accessory_setup()
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 112, in accessory_setup
    data = self.pairing.list_accessories_and_characteristics()
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 274, in list_accessories_and_characteristics
    response = self.session.get('/accessories')
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 637, in get
    return self.sec_http.get(url)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 66, in get
    return self._handle_request(data)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 92, in _handle_request
    return self._read_response()
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 136, in _read_response
    data = self.sock.recv(exp_len)
ValueError: negative buffersize in recv
2019-03-11 15:09:18 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 367, in discovery_dispatch
    device = HKDevice(hass, host, port, model, hkid, config_num, config)
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 98, in __init__
    self.accessory_setup()
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 112, in accessory_setup
    data = self.pairing.list_accessories_and_characteristics()
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 274, in list_accessories_and_characteristics
    response = self.session.get('/accessories')
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 637, in get
    return self.sec_http.get(url)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 66, in get
    return self._handle_request(data)
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 92, in _handle_request
    return self._read_response()
  File "/usr/local/lib/python3.7/site-packages/homekit/http_impl/secure_http.py", line 136, in _read_response
    data = self.sock.recv(exp_len)
ValueError: negative buffersize in recv

Anyone have any idea what’s causing it or how to fix this?

Not really sure whats going on here so the best I have right now is a bunch of information gathering / diagnostic steps.

Is this the kind of device we are talking about?
You already confirmed this but I want to be explicit - am i right that there is no hub or bridge, each outlet has its own wifi connection and thus its own IP address.
Have you got any automations set up?
Do you use the other homekit component to expose the iDevices to proper Apple HomeKit?
Which Docker image are you using?
If you look in your configuration directory there should be a .homekit/pairing.json. Does it have a section for each device? Are all the Accessory IP's as you expect?
Are you comfortable editing JSON manually? If so can you backup .homekit/pairing.json and then try removing some of the idevices? Try running with just 2 in this file. Does it all work as expected with those 2? Can you try restarting a bunch of times and see if it consistently works / doesnt work. Then swap which 2 are active in your pairing file. Does the behaviour change? What if you run 3 of the 4?
Are you comfortable running a beta release direct from git? The next release bumps to homekit_python 0.13 and adds some concurrency fixes to HA. I don't think they will help as they are meant for bridges, but it doesn't hurt to try.

Is this the kind of device we are talking about?

Not exactly, but they essentially operate similarly. My devices

You already confirmed this but I want to be explicit - am i right that there is no hub or bridge, each outlet has its own wifi connection and thus its own IP address.

Yes, each of the four iDevices are connected to my router with a static IP.

Have you got any automations set up?

Yes, I have many automations setup in HA. Some of the automations are supposed to change the color of the iDevice lights.

Do you use the other homekit component to expose the iDevices to proper Apple HomeKit?

While I have the other homekit component enabled, the iDevices do not appear on Apple Homekit. Not sure why, as I did not explicitly exclude it. But in any case I do not need these devices to show up in Homekit so I did not investigate further.

Which Docker image are you using?

I am using Home Assistant

If you look in your configuration directory there should be a .homekit/pairing.json. Does it have a section for each device? Are all the Accessory IP's as you expect?

I removed two of the four iDevices as of now since I needed them working. Right now the file shows five entries. One of the iDevice switches has a duplicate entry. Also each of the entries are not similar. Two of the iDevices switches has a shortened entry.
I am willing to try your other steps and will update once done.

I deleted the pairing.json file and reset all four idevices outlets. Now I get this error when attempting to pair:
2019-03-16 22:34:35 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140157010171832] list index out of range
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/components/websocket_api/commands.py", line 148, in handle_call_service
    connection.context(msg))
  File "/usr/src/app/homeassistant/core.py", line 1133, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/app/homeassistant/core.py", line 1155, in _execute_service
    await handler.func(service_call)
  File "/usr/src/app/homeassistant/components/configurator/__init__.py", line 221, in async_handle_service_call
    call.data.get(ATTR_FIELDS, {}))
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/homekit_controller/__init__.py", line 136, in device_config_callback
    self.controller.perform_pairing(self.hkid, self.hkid, code)
  File "/usr/local/lib/python3.7/site-packages/homekit/controller.py", line 192, in perform_pairing
    pairing = perform_pair_setup(conn, pin, str(uuid.uuid4()))
  File "/usr/local/lib/python3.7/site-packages/homekit/protocol/__init__.py", line 91, in perform_pair_setup
    assert response_tlv[0][0] == TLV.kTLVType_State and response_tlv[0][1] == TLV.M2, 'perform_pair_setup: State not M2'
IndexError: list index out of range

Are you comfortable editing JSON manually? If so can you backup .homekit/pairing.json and then try removing some of the idevices? Try running with just 2 in this file. Does it all work as expected with those 2? Can you try restarting a bunch of times and see if it consistently works / doesnt work. Then swap which 2 are active in your pairing file. Does the behaviour change? What if you run 3 of the 4?

So I deleted the pairing.json file and repaired all the devices. With 4 devices paired, when HA is restarted between 1-3 devices are not reconnected and show the error message. The devices are random, every device did not connect at least once.
With three devices paired, usually 1-2 devices get disconnected on restarts. Also at random.
With two devices paired, usually 0-1 devices are affected.

Come to think of it, each iDevice has a switch and an outlet. So two entities show up for each iDevice. I am not sure if that makes it a bridge?

Are you comfortable running a beta release direct from git? The next release bumps to homekit_python 0.13 and adds some concurrency fixes to HA. I don't think they will help as they are meant for bridges, but it doesn't hurt to try.

Yes I am comfortable doing that. How can I install that? Thanks for your help.

Hey @nyknicks8 sorry for the delay. The latest stable release has homekit_python 0.13 and the concurrency changes I mentioned. Not entirely sure it will help, but worth a try.

@nyknicks8 any improvement with the latest code on your side?

Hi @nyknicks8 - Just opened #23562. This has fixed negative buffersize in recv for other kinds of device. Hoping it will help you, if you still get the error.

A fix for the reported exception has been released for a while now - going to assume this is fixed as not heard anything since.


Remove library prefix override for rdpei-server

This library was missed in commit
059374457d801351d02ac81badb4aabbfa7689e7, so it was the only one that
still had a lib prefix.

@freerdp-bot test


Show all databases options is not showing anymore

Description
I am connecting to RDS cluster which is of PostgreSQL and after the update, Show All Databases options is not there under the PostgreSQL tab
DBeaver Version
24.0.0
Operating System
No response
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

Hello @paramThakkar1505
You can find this setting on the main page now.

Okay got it. Thanks.


Refreshing Page onSelectTime

Hello, I'm developing a feature with this library. I have to bundle my react app and integrate in another runner app.
The SlotPicker works fine in localhost. The onSelectTime event works all fine but when I use webpack and integrated this component all the time I select a slot the page is refreshing. Refreshing the page means I lose my pick so... yhea this is happening every time I select a slot.
I tried event.preventDefault but without success. Your event is not supporting this. I also tried window.stop() but same problem.
note: The effect is 100% similar when you submit a form.
Some idea what can be the problem? Thank you in advance!

I really can't help you a lot here as I need to see what your code is doing. try not to place the component inside a form and see what you get. the slots that you select are actually buttons, they don't have type of submit so placing them in a form actually won't submit the form, but as you said in your case the page gets refreshed. try giving an id to the form and form attribute the button that submits the form.
example here: https://www.w3schools.com/tags/att_button_form.asp

Hi there, I solved the issue doing exactly the opposite that you are saying .
I didn't place SlotPicker inside a form but like I said its behaviour looks so. In order to use event.preventDefault function I wrapped the Component in a Form Container and voilá! It worked!
For some reason the SlotPicker actually was submitting something.
Solution below:
<form onSubmit={(e) => e.preventDefault()}>
  {props.required === 'Y' ?
      <small>* required</small> : <></>}
  <SlotPicker
      // Required, interval between two slots in minutes, 30 = 30 min
      interval={slotConfiguration.interval}
      // Required, when user selects a time slot, you will get the 'from' selected value
      onSelectTime={(e) => handleSlotPick(e)}
      // Optional, array of unavailable time slots
      unAvailableSlots={slotConfiguration.unAvailableSlots}
      // Optional, 8AM the start of the slots
      from={slotConfiguration.from}
      // Optional, 09:00PM the end of the slots
      to={slotConfiguration.to}
      // Optional, selected slot color
      selectedSlotColor='#F09999'
      // Optional, language of the displayed text, default is english (en)
      lang='en'
  />
</form>

Thank you!


Hanson

Closes #33 and Closes #24

Added calc_command.json support
Streamlined feature specification
Improved error handling

Adds hansen solubility calcs, preliminary dataset upload from magpie descriptors /mathematica data (for use in atomistic calculations).


Update/Add Xcode 14.3

Tool name
Xcode
Tool license
default
Add or update?

[X] Add
[ ] Update

Desired version
14.3
Approximate size
No response
Brief description of tool
The Xcode 14.3 have been released. It has updates in XCTests frameworks that fixes issues with testing async functions. (Deadlocks). It introduces a new way of waiting for expectations:
await fulfillment(of: [exp], timeout: 5)

Instead of:
wait(for: [exp], timeout: 5)

URL for tool's homepage
default
Provide a basic test case to validate the tool's functionality.
This test should compile.

import XCTest
class Tests: XCTestCase {
 func test_async_waiting() async {
    let exp = expectation(description: "Wait")
    exp.fulfill()
    await fulfillment(of: [exp], timeout: 5)
 }
}

### Platforms where you need the tool

- [ ] Azure DevOps
- [X] GitHub Actions

### Runner images where you need the tool

- [ ] Ubuntu 20.04
- [ ] Ubuntu 22.04
- [ ] macOS 11
- [X] macOS 12
- [ ] Windows Server 2019
- [ ] Windows Server 2022

### Can this tool be installed during the build?

```bash
No

Tool installation time in runtime
~30 min
Are you willing to submit a PR?
I  have no idea how to do it =)

Hello @kanstantsin-bucha. Clone of https://github.com/actions/runner-images/issues/7375 . Please keep an eye on our announcements about macOS 13.


Data breakpoints in OpenDebugAD7

This PR implements DataBreakpointInfo and SetDataBreakpoints for OpenDebugAD7's debug session as a part of the Debug Adapter Protocol (DAP).
Notes:

Refactors most of HandleEvaluateRequestAsync into a TryEvaluate function that DataBreakpointInfo can use for evaluating a variable to find it's address/size (gotten via IDebugProperty160.GetDataBreakpointInfo160).
Makes AD7Property.EnumChildren support filtering with the child's name (specified here with pszNameFilter)
Supports BPLT_DATA_STRING in AD7BreakpointRequest (returns the proper address/size).
The DataId passed to/from VS Code as part of both DAP functions is "{address},{size}"

Potential problems/things to improve:

If users have too many data breakpoints, then we receive an exception that GDB can't continue the debuggee process and we display a very mysterious error message: "Debugger was unable to continue the process."
If a variable size is too big to set a data breakpoint on, then we simply don't display the "Break When Value Changes" context menu item. It might be worthwhile in the future to say why it doesn't display.
Add test :)

Otherwise LGTM


Pulling repository docker.io/kiwenlau/hadoop failed

When pulling the repository, it appears the following errors:
`docker@ubuntu:~$ sudo docker pull kiwenlau/hadoop:1.0
[sudo] password for docker:
Pulling repository docker.io/kiwenlau/hadoop
Tag 1.0 not found in repository docker.io/kiwenlau/hadoop
`

Actually, I can run "sudo docker pull kiwenlau/hadoop:1.0" without problem.
I'm in Japan, maybe this is caused by the Great Fire Wall(GFW) of China?


Incorrect behaviour when trying to assign schema priveleges

System information:

Operating system (distribution) and version win 10 x64
DBeaver version 7.0.1 EA

Connection specification:

Database name and version Maria DB

Describe the problem you're observing:
Accordingly to comment:

I had another issue while trying to reproduce. If you do a new user then click % from the schema column then % from the tables column, then check all, uncheck all, then select a specific schema, % in tables and check all, it's applying to all schemas for some reason. This continues after restarting dbeaver so you should be able to reproduce this one consistently

Fixed.
This bug was caused by fix of #7784

verified.
related issue #8298


PFGeoPoint with integer value returns NULL

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
-[x] You've met the prerequisites.
-[x] You're running the latest version of Parse Server.
-[x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
This is a test to migrate an app, so there will be two Parse Servers interacting with the same DB.
Server/Client 1 (released app versions):
Parse Server hosted on Parse.com as of 2016-03-01
Parse iOS SDK 1.8.5
Server/Client 2:
Parse Server 1.12.0
Parse iOS SDK 1.12.0
Common DB (as the data base has already been migrated away from Parse.com):
mongoDB 3.0.9
Steps to reproduce

On Server/Client 2 save a PFGeoPoint object to a field of type PFGeoPoint with an integer value either for longitude or latitude, e.g.

"location": [
        16.7,
        48
    ]

The Parse hosted dashboard shows NULL as value for the location field.
When trying to retrieve the location object as PFGeoPoint in iOS with Server/Client 1 an error is thrown in iOS:
Could not cast value of type 'NSNull' (0x1a0bbb768) to 'PFGeoPoint' (0x1005f6ea8).
Change the integer value to a float by adding .0 to it and the Parse hosted dashboard will recognize the PFGeoPoint and the retrieval will succeed.

Logs/Trace
Error thrown in iOS SDK:
Could not cast value of type 'NSNull' (0x1a0bbb768) to 'PFGeoPoint' (0x1005f6ea8).
Comment
The probability of a longitude or latitude value being an integer number if practically nil. However, in a development environment it can be an integer while simulating a location.

This seems to be a bug in the Parse hosted Parse Server version, as no error is thrown when retrieving the location with self-hosted the above mentioned Server/Client 2. This should just be kept in mind for migrating apps. I suggest to close this issue.

Very interesting... The documented format is 2 floats, so this seems rooted in parse-server not enforcing that.  We should fix this, actually, and reject non-float values for geopoints.


[iOS] [Teams] Not getting call-back on action.showcard.

We are not getting callback on action.showcard. We are getting it for action.openURI and action.submit

PR 1458 will fix the issue.


NIFI-1420 Fixing minor bugs in GetSplunk

Adding a Time Zone property so the Managed time ranges use the provided time zone when formatting the date strings
Adding a Time Field Strategy property to choose between searching event time or index time
Making the next iteration use previousLastTime + 1 ms to avoid overlap
Fixing bug where GetSplunk incorrectly cleared state on a restart of NiFi

Reviewing...

Build and contrib check is good. Verified functionality with time zone on formatted date string, new time field strategy, state clearing issue, and start time to eliminate possible data duplication. +1


broken link on readme.md

The link to readme directory points to an nonexistent folder. It appears to be under test now.

Thanks for letting me know - now fixed!


modified corrected_area

Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible
What does the code in this PR do / what does it improve?
Modified CorrectedArea to enable partitioned TPC (AB and CD).
Can you briefly describe how it works?
Added partitions_event.py under plugins directory. Then it is called in event_processing.py and used in CorrectedArea
Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable:

[ ] Update the docstring(s)
[ ] Update the documentation
[ ] Tests to check the (new) code is working as desired.
[ ] Does it solve one of the open issues on github?

Notes on testing

Until the automated tests pass, please mark the PR as a draft.
On the XENONnT fork we test with database access, on private forks there is no database access for security considerations.

All italic comments can be removed from this template.

I am not sure what the output of straxen.URLConfig is... Please checkout here. The use is pretty straightforward if my understanding of this function is correct.

Hi Jianyu, thanks for the PR! If I understand the gist correctly, you want to add the functionality to allow a position dependent correction? Would it in that case perhaps make sense to make a map  out of it (@l-althueser ?). This would require less hard-coding and make it simpler to update and maintain?

I guess we need something in between. We want to have like a map but with per run time dependence. So we might need a file with arbitrary volume definitions that works well with per run numbers or such.

@JoranAngevaare This is more treating two partitions of the TPC differently in dealing with time dependent corrections. The note can be found here. A hard coded partitioning is needed for the moment.


build: update minimist to 1.2.6

Closes https://github.com/angular/angular-cli/issues/22872

@alan-agius4 When will the version be released to npm that includes the above fix ?


Cypress version 10.0.0 no longer supports cypress.json.

Describe the bug
Using "cypress": "^10.0" will throw the following error: Cypress version 10.0.0 no longer supports cypress.json.
To Reproduce
Steps to reproduce the behaviour:

Require "cypress": "^10.0"
Run npx cypress run --spec ./cypress/integration/path/to/some.spec.js

Expected behaviour
Using the current version of cypress should work with the module
Additional context
A current workaround to this is to have a dependency on "cypress": "^9.7.0

I think the proper solution is to replace the cypress.json with a file cypress.config.js:
const { defineConfig } = require('cypress')

module.exports = defineConfig({
  "baseUrl": "https://example.com/",
  "watchForFileChanges": false,
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "env": {
    "mobileViewportWidthBreakpoint": 768,
    "mobileViewportWidthBreakpointHyva": 1024
  }
});

Reference https://docs.cypress.io/guides/references/migration-guide#Configuration-File-Changes


The option to choose between shipping methods

Is there such option in Plata?
I've grepped through the code, and found a field "shipping_method" in the Order model, but I did not find where it is set.
The use case is simple: the user can choose between several shipping methods with different costs, and after that, the costs are added to the bill.

I was solving just that, you can found it here: https://github.com/Draciinfo/calendar-eshop/blob/master/calendareshop/shopping/forms.py
Go for shopping.views.py for view implementation.


Red negative buttons (EXPOSUREAPP-13864)

Ticket
delete: Testergebnisse (für mich/für andere)

delete: Sie planen eine Veranstaltung? Meine QR Codes
Delete one QR-Code:

Delete all QR-Codes:

delete: Papierkorb

delete: Schnelltestprofil
Currently no screenshot, but changed in code
critical/delete: App-Informationen > Fehlerberichte > Analyse stoppen

delete: Zertifikate j -> löschen

delete: Meine Check-Ins

delete: Tagebuch - Personen und Orte
Delete one location

Delete all locations

Delete one person

Delete all persons

deny: Kamerazugriff
This cannot be edited as this is a system dialog, but permission explanation dialog:

May we get a screenshot of this change, please?

May we get a screenshot of this change, please?

Sure @Ein-Tim I added screenshots: https://github.com/corona-warn-app/cwa-app-android/pull/5538#issue-1362809842

I don't see red text for "Delete Test" of a pending PCR test result.
(Also by the way, the confirmation dialog for deleting a PCR test waiting for a result says that it is deleting a result, even though there is not yet a result available.)


not listed as a web client

I am running the latest versions of raspbian and mopidy.  HTTP extensions is setup and Mopidy-Mopify installs,  will list as an available web client on http://localhost:6680/mopidy/ and runs fine.
I install Moped and it does not list as an available web client.
Here´s the output of sudo pip install Mopidy-Moped:
Downloading/unpacking Mopidy-Moped
Downloading Mopidy-Moped-0.6.4.tar.gz (388kB): 388kB downloaded
Running setup.py (path:/tmp/pip-build-0GyyuT/Mopidy-Moped/setup.py) egg_info for package Mopidy-Moped
warning: no previously-included files found matching '.bowerrc'
warning: no previously-included files found matching '*.tpl'
warning: no previously-included files found matching '*.json'
warning: no previously-included files found matching 'build.config.js'
warning: no previously-included files found matching 'Gruntfile.js'
warning: no previously-included files found matching 'ext.conf'
warning: no previously-included files matching '*' found under directory 'build'
warning: no previously-included files matching '*' found under directory 'dist'
warning: no previously-included files matching '*' found under directory 'karma'
warning: no previously-included files matching '*' found under directory 'node_modules'
warning: no previously-included files matching '*' found under directory 'screenshots'
warning: no previously-included files matching '*' found under directory 'src'
warning: no previously-included files matching '*' found under directory 'vendor'

Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from Mopidy-Moped)
Requirement already satisfied (use --upgrade to upgrade): Mopidy>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from Mopidy-Moped)
Installing collected packages: Mopidy-Moped
Running setup.py install for Mopidy-Moped
warning: no previously-included files found matching '.bowerrc'
warning: no previously-included files found matching '*.tpl'
warning: no previously-included files found matching '*.json'
warning: no previously-included files found matching 'build.config.js'
warning: no previously-included files found matching 'Gruntfile.js'
warning: no previously-included files found matching 'ext.conf'
warning: no previously-included files matching '*' found under directory 'build'
warning: no previously-included files matching '*' found under directory 'dist'
warning: no previously-included files matching '*' found under directory 'karma'
warning: no previously-included files matching '*' found under directory 'node_modules'
warning: no previously-included files matching '*' found under directory 'screenshots'
warning: no previously-included files matching '*' found under directory 'src'
warning: no previously-included files matching '*' found under directory 'vendor'

Successfully installed Mopidy-Moped
i´d reelay appreciate some help with this as I have used Moped before and it is the best Mopidy client!

installed via apt.mopidy.com and all working fine now!


V9: deleting groups throw exception

Steps to reproduce

Make a new group
Delete the group
Get an exception:

Exception Occurred: concrete/src/User/Group/Command/Traits/ExistingGroupTrait.php:17 Return value of Concrete\Core\User\Group\Command\DeleteGroupCommand::getGroupID() must be of the type int, null returned (0)

@wordish Could you please confirm if this fixes your issue?

Thanks @biplobice !


esmvaltool installation via conda at risk -> need new package in esmvalgroup asap

(base) valeriu@valeriu-PORTEGE-Z30-C:~/ESMValTool$ conda install -c esmvalgroup -c conda-forge esmvaltool
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::numba==0.44.1=py37h962f231_0
  - defaults/linux-64::seaborn==0.9.0=py37_0
  - defaults/linux-64::scikit-image==0.15.0=py37he6710b0_0
  - defaults/linux-64::anaconda==2019.07=py37_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.

that results in conflicts and inability to solve the environment. There have been a lot of issues related to conda lately and I managed to fix them (well most of them) within the realms of installing the tool from the git ball inside the conda env, but this is outside my reach since I don't have devel access to the esmvalgroup channel.
Some details:
installation attempted in the (base) conda channel;
$ conda -V
conda 4.7.11

working environment:
---
name: esmvaltool
channels:
  - conda-forge
  - esmvalgroup

dependencies:
  # Python packages that cannot be installed from PyPI:
  - esmpy
  - esmvalcore>=2.0.0b0,<2.1
  - iris>=2.2
  - matplotlib<3  # Can be installed from PyPI, but is a dependency of iris and should be pinned.
  - python-stratify
  - xarray>=0.12.0  # Can be installed from PyPI, but here to get a consistent set of depencies with iris.
  # Non-Python dependencies
  - graphviz
  - cdo
  - imagemagick
  - nco

  # Multi language support:
  - python>=3.6
  - libunwind  # Needed for Python3.7+
  - tiledb=1.6.0  # Needed by the new ncl=6.6.2; evolved to 1.6.2 but ncl 6.6.2 still needs libtiledb1.6.0.so
  - ncl
  - r-base
  - r-curl  # Dependency of lintr, but fails to compile because it cannot find libcurl installed from conda.
  - r-udunits2  # Fails to compile because it cannot find udunits2 installed from conda.

safe environment with latest deps:
---
name: esmvaltool-safe
channels:
  - conda-forge
  - esmvalgroup

dependencies:
  # Python packages that cannot be installed from PyPI:
  - esmpy=7.1.0=py37h24bf2e0_3
  # - esmvalcore>=2.0.0b0,<2.1 -> to be installed separately from source
  - iris=2.2.0=py37_1003
  - matplotlib=3.1.1=py37_1
  - python-stratify=0.1=py37h3010b51_1001
  - xarray=0.12.3=py_0
  # Non-Python dependencies
  - cdo=<IP_ADDRESS>=h7d1db5e_1  # the only mpi-agnostic v9.7 (<IP_ADDRESS>) for now
  - imagemagick=7.0.8_60=pl526h51306e4_0
  - nco=4.8.1=h0e20550_0

  # Multi language support: some strict versioning due to previous conflicts with cdo=1.9.7
  - python>=3.6
  - libunwind=1.3.1=hf484d3e_1000  # Needed for Python3.7+
  - tiledb=1.6.0=h69c774e_1  # Needed by the new ncl=6.6.2; evolved to 1.6.2 but ncl 6.6.2 still needs libtiledb1.6.0.so
  - ncl=6.6.2=had3379d_8  # agrees well with cdo=<IP_ADDRESS>
  - r-base=3.6.1=hba50c9b_4
  - r-curl=4.0=r36hcdcec82_0  # Dependency of lintr, but fails to compile because it cannot find libcurl installed from conda.
  - r-udunits2=0.13=r36hcdcec82_1003  # Fails to compile because it cannot find udunits2 installed from conda.

conda list conda
# packages in environment at /home/valeriu/anaconda3R:
#
# Name                    Version                   Build  Channel
anaconda                  2019.07                  py37_0
anaconda-client           1.7.2                    py37_0
anaconda-navigator        1.9.7                    py37_0
anaconda-project          0.8.3                      py_0
conda                     4.7.11                   py37_0
conda-build               3.18.8                   py37_0
conda-env                 2.6.0                         1
conda-package-handling    1.3.11                   py37_0
conda-verify              3.4.2                      py_1

This is HIGH PRIORITY
:beer:

OK I looked a bit closer into this issue and here's what I found out:

the esmvaltool package from esmvalcore is old and needs to be rebuilt - I opened #1268 where I include an updated meta file for the build (I have built it myself today, offline, and all works fine and the tool gets installed correctly);
I have tried installing the tool via conda install -c conda-forge -c esmvalgroup on a different machine and albeit conda again complaining about the conflicts listed above, it actually went ahead and initiated the environment solving and installing the package - so it's a hit and miss again with conda; but no such problems with the newly built package via conda install -y esmvaltool --use-local -c conda-forge -c esmvalgroup so I strongly suggest we rebuild the package and shove it on esmvalgroup asap;
installation of the old esmvaltool package (after reporting the conda issue in the previous comment) worked (well, not really, see below) if done not in (base) but in an empty environment; it didn't actually work because the R packages failed to install properly (since they are obsolete):

...
: note: in expansion of macro \'P4\'\n     P4 ("%s", "\\n") ;\n     ^~\nCHOLMOD/Check/cholmod_check.c:86:9: error: \'cholmod_common {aka struct cholmod_common_struct}\' has no member named \'print_function\'\n  (Common->print_function) (format, arg) ; \\\n         ^\nCHOLMOD/Check/cholmod_check.c:93:24: note: in expansion of macro \'PR\'\n #define P4(format,arg) PR(4,format,arg)\n                        ^~\nCHOLMOD/Check/cholmod_check.c:2205:5: note: in expansion of macro \'P4\'\n     P4 ("%s", "\\n") ;\n     ^~\nmake[1]: *** [/home/valeriu/anaconda3R/envs/env-empty/lib/R/etc/Makeconf:168: CHOLMOD/Check/cholmod_check.o] Error 1\nmake[1]: Leaving directory \'/tmp/Rtmp5gKei8/R.INSTALLaeb7da968fe/igraph/src\'\nERROR: compilation failed for package \xe2\x80\x98igraph\xe2\x80\x99\n* removing \xe2\x80\x98/home/valeriu/anaconda3R/envs/env-empty/lib/R/library/igraph\xe2\x80\x99\n2019-08-28 14:28:11 INFO : Failed to install packages: lintr \n

I know we are waiting for the soon to be stable v2 release but in the meantime users will be installing the tool via conda so let's update the package asap, shall we :beer:

oh and ncl don't work with the tool installed from the current package version in esmvalgroup either, so stuff's quite broken all round

@valeriupredoi I made a new release (v2.0.0b1) and conda package last week. Can you check if this issue is solved?

Great, will check today, good stuff :beer:
Dr Valeriu Predoi.
Computational scientist
NCAS-CMS
University of Reading
Department of Meteorology
Reading RG6 6BB
United Kingdom
On Wed, 11 Sep 2019, 09:34 Bouwe Andela<EMAIL_ADDRESS>wrote:

@valeriupredoi https://github.com/valeriupredoi I made a new release
(v2.0.0b1) and conda package last week. Can you check if this issue is
solved?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ESMValGroup/ESMValTool/issues/1266?email_source=notifications&email_token=AG5EFI3CVSVRRA2PY4442OLQJCUSXA5CNFSM4IQF25V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NXAMI#issuecomment-530280497,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG5EFI4WK456CXOWAAEPXVLQJCUSXANCNFSM4IQF25VQ
.

@bouweandela unfortunately it still don't work (simple call to install esmvaltool or specific on version none of the 2.0.0b1 neither py_0 nor py_1 -> incidentally why two packages with different sizes?)
But good news - the installation via git clone/pip install now works flawlessly on a Mac - ie the same steps as dev install on a linux64 machine; installing the R packages fails tho since the gcc compiler x86_64-apple-darwin13.4.0-clang is not able to compile them
How did you conda-build the noarch packages in esmvalgroup? Have you used the latest conda?
:beer:
Here is what I get on two different linux64 machines:
(base) valeriu@valeriu-PORTEGE-Z30-C:~$ conda install -c esmvalgroup esmvaltool
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::numba==0.44.1=py37h962f231_0
  - defaults/linux-64::seaborn==0.9.0=py37_0
  - defaults/linux-64::scikit-image==0.15.0=py37he6710b0_0
  - defaults/linux-64::anaconda==2019.07=py37_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining setuptools:  29%|███████████████████████▋

and that eventually failes (and takes forever and a half)

From your command it looks like you forgot to specify the conda-forge channel, try running
conda install -c esmvalgroup conda-forge esmvaltool

Version 1 of the package is with ESMValCore pinned to v<IP_ADDRESS>b1, version 0 will probably install the latest version of ESMValCore, which doesn't work with the v2.0.0b1 release of ESMValTool because the time preprocessors were renamed.

exactly the same output, man

Version 1 of the package is with ESMValCore pinned to v<IP_ADDRESS>b1, version 0 will probably install the latest version of ESMValCore, which doesn't work with the v2.0.0b1 release of ESMValTool because the time preprocessors were renamed.

yes, I noticed that, note that that is not the actual problem it's the dep conflicts from conda's new strict policy; try it too

and dont install from local, install from remote

I just installed it succesfully on my laptop using this command:
conda create -n test esmvaltool -c conda-forge -c esmvalgroup

Maybe your installation is failing because you're trying to install into an existing and incompatible environment.

Ok I will test this but it should work (have done it numerous times
before). The problem is installing in the (base) environment doesnt work
and our package should be installed using the traditional conda install -c
$CHANNEL(S) $PACKAGE
Dr Valeriu Predoi.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ESMValGroup/ESMValTool/issues/1266?email_source=notifications&email_token=AG5EFI5T3BYCTDNH6RL2ZIDQJ5SI3A5CNFSM4IQF25V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6YZQTY#issuecomment-531732559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG5EFI75TMQMB4KISVIWA5DQJ5SI3ANCNFSM4IQF25VQ
.

(base) valeriu@valeriu-PORTEGE-Z30-C:~/ESMValTool$ conda install -c esmvalgroup -c conda-forge esmvaltool
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::numba==0.44.1=py37h962f231_0
  - defaults/linux-64::seaborn==0.9.0=py37_0
  - defaults/linux-64::scikit-image==0.15.0=py37he6710b0_0
  - defaults/linux-64::anaconda==2019.07=py37_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / failed

the environment that I am trying to install to is (as usual) the base one - incompatibilities from numba because I suspect the Python<3.8 pinning is not done in the remote conda package - @bouweandela can you pls address that with the next release :beer:

currently installing straight from conda either via simple call (conda install) or by creating the env (conda create...) is not working

gonna close this because we'll test again with the new release (whenever that'll be available) :beer:


CUDA_ERROR_OUT_OF_MEMORY

When i run the following command to evaluate the pretrained model  python eval_rcnn.py --cfg_file cfgs/default.yaml --ckpt PointRCNN.pth --batch_size 1 --eval_mode rcnn --set RPN.LOC_XZ_FINE False  .
The Eroror:  Call to cuDevicePrimaryCtxRetain results in CUDA_ERROR_OUT_OF_MEMORY
Can you help me?

It simply looks like that you even don't have enough memory to load one single batch. :)
Are you running other gpu processes simultaneously to the PointRCNN?
Could you provide the console output of nvidia-smi command?


Changes in 5.2

New Action:
Veneration (Level 15): Increases efficiency of Synthesis actions by 50% for the next four steps. Cost 18CP.
Groundwork (Level 72): Increases progress (300%) at greater cost to durability (20 durability instead of 10). Efficiency decreases by half when durability is below durability cost. Cost 18CP.
Adjustment:
Inner Quiet: Control bonus can now exceed 3,000.
Innovation: Effect changed from "Increases efficiency of Synthesis and Touch actions by 20% for the next four steps" to "Increases efficiency of Touch actions by 50% for the next four steps."

#376 #377

Partially deployed. Still need support for Groundwork.

This should be complete now. Changes have been deployed to the beta site.


Upgrade node-sass to beta 7 to fix solaris builds

as per https://github.com/sass/node-sass/issues/858

node-sass is currently at 3.1.2 so doing that would actually downgrade it.
If you npm install gulp-sass again you would get 3.1.2 which should work on solaris

npm install gulp-sass --save-dev
npm WARN package.json<EMAIL_ADDRESS>'repositories' (plural) Not supported. Please pick one as the 'repository' field
-
><EMAIL_ADDRESS>install /root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js

Cannot download "https://github.com/sass/node-sass/releases/download/v3.1.2/sunos-x64-11_binding.node": HTTP error 404

><EMAIL_ADDRESS>postinstall /root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass
> node scripts/build.js

Building: /opt/local/bin/node node_modules/pangyp/bin/node-gyp rebuild --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
make: Entering directory `/root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass/build'
  CXX(target) Release/obj.target/libsass/src/libsass/ast.o
In file included from ../src/libsass/ast.hpp:34:0,
                 from ../src/libsass/ast.cpp:1:
../src/libsass/units.hpp:39:5: error: expected identifier before numeric constant
../src/libsass/units.hpp:39:5: error: expected '}' before numeric constant
../src/libsass/units.hpp:39:5: error: expected unqualified-id before numeric constant
../src/libsass/units.hpp:62:3: error: 'SassUnit' does not name a type
../src/libsass/units.hpp:63:30: error: 'SassUnit' was not declared in this scope
../src/libsass/units.hpp:63:30: note: suggested alternative:
../src/libsass/units.hpp:22:8: note:   'Sass::SassUnit'
../src/libsass/units.hpp:64:3: error: 'SassUnitType' does not name a type
../src/libsass/units.hpp:66:34: error: 'string' does not name a type
../src/libsass/units.hpp:66:40: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
../src/libsass/units.hpp:66:49: error: 'string' does not name a type
../src/libsass/units.hpp:66:55: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
../src/libsass/units.hpp:69:3: error: expected class-name before '{' token
../src/libsass/units.hpp:72:34: error: expected ')' before 'a'
../src/libsass/units.hpp:87:1: error: expected declaration before '}' token
make: *** [Release/obj.target/libsass/src/libsass/ast.o] Error 1
make: Leaving directory `/root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/lib/build.js:271:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "/opt/local/bin/node" "/root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/bin/node-gyp" "rebuild" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /root/LumeFX-App/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v0.10.32
gyp ERR! pangyp -v v2.2.1
gyp ERR! not ok
Build failed

npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install" "gulp-sass" "--save-dev"
npm ERR! cwd /root/LumeFX-App
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Got a 404 on the node-sass binaries... When I npm install node-sass it breaks.  When I npm install node-sass@beta it does not.

That means node-sass doesn't have the binaries for solaris uploaded for some reason.
gulp-sass installs node-sass and node-sass will try to fetch binary by version/os
You can check https://github.com/sass/node-sass-binaries/issues/32


Add an issue template for people to ask for onboarding

RELEASE NOTES BEGIN
Don't have time to set up Packit? Or, do you want to see what it would look like on your package?
Starting now, you can ask the Packit team to prepare a config file for you.
RELEASE NOTES END

You can see the rendered form at https://github.com/packit/packit-service/blob/15522f56ffcc7e9d7da3827b440efebffbfd3f93/.github/ISSUE_TEMPLATE/onboarding.yml

To me newly doesn't sound so well (and maybe I am wrong) but to me it sounds better like: Now, you can ask the Packit team to prepare a config file for you.

I think just replacing newly with now would do the trick :slightly_smiling_face: Or perhaps Starting now, you can ...

regate


Rule is not applied as expected

I am trying to use the following rule to replace the linker:
I tried
function(plugin){var n = plugin.replaceMonomer(org.helm.webeditor.HELM.BASE, 'P','sP');return n>0;}
and
function(plugin){var n = plugin.replaceMonomer(org.helm.webeditor.HELM.BASE, 'P','[sP]');return n>0;}
In both case, I have the following message: 'Rule applied, but nothing changed' while I expect the phosphate to be replaced by Phosporothioate .

@ClairePA helped me and it was because the syntax was wrong: BASE should be LINKER in the function


Errors when completing MDT - No start menu search due to copyprofile

Thank you so much for this script. It does everything I need it to for sure.
I do have one question though as every time I get done with deployment it gives me the results and it shows 26 errors. All seem to come from the script but I don't have a clue to know which one's it's referencing. I am doing a clean build of v1803 right now to see if it results in the same but it doesn't have any effects on the install just not sure why I get errors. I am also removing the edge pdf parameter as I pretty much disable edge any way. Would love to clean them up if possible. Here is a screenshot of the errors. Thanks again for your hard work!

I wanted to give an update. I updated my iso to v 1803 of windows 10 pro and now I only get 22 errors in the script but one issue I'm having is I can't search from the start menu on my new accounts. The built in administrator account is fine but any new accounts that are created, when I push the windows button and type calc for instance, calculator doesn't popup. I have to find it in the menu. Same for any app but with 1709 the script didn't effect this. Not sure why it would but something to be aware of I suppose with the newest build.

Well, after syspreping my image several times and creating a new wim a few times, as well as trying another script... I'm convinced it's nothing to do with your script. I still can't search from other newly created accounts but can from admin account. I think it's just going to take some troubleshooting to figure it out but I do rename the Edge folder in C:\windows\Systemapps to "old" at the end so edge doesn't run but I did that in 1703 too. Not sure what else could be causing it as Cortana is untouched.

My apologies for the late response.
Fantastic troubleshooting and analysis. I've always wondered exactly how the start menu search breaks and I can even use this at work as well. Thanks for that.
Are you having issues with the scrip otherwise?

The only issue I was having was the telling Edge not to be the default for PDF's StopEdgePDF so I took it out. After that I got rid of all errors I was having. I have yet to test this with v1803 again but i will be soon. I'm pretty sure the same issue with search will fix it on that version as well. Thanks again for your awesome work!

I do my best!


Log file output location?

Generic information

Vlc.DotNet.Core version :  3.0.0-develop306
Vlc.DotNet.Wpfversion :  3.0.0-develop306
Vlc.DotNet project used : WPF
libvlc version : v3.0.4 (nuget)
.net version : 4.0
Project language : C#
Project build architecture : AnyCPU
Operating system : (Windows ...) x64

Summary
Hopefully, this is just me not being able to find something easy...
When running Vlc.DotNet.Wpf, where does the Logs.log end up? I'm starting the player like this, and for the life of me, I can't find the output log file. I've tried running this under the VS debugger and directly via the .exe.
        // Set up the objects
        this.control = new VlcControl();
        this.ControlContainer.Content = this.control;
        var options = new string[]
        {
            "-vvv",
            "--extraintf=logger",
            "--logfile=Logs.log"
        };

Where should it be?
Thanks!

Where should it be?

Wherever you tell it be. Probably near the exe with your current relative path. Try using an absolute path.
Alternatively, try this myVlcMediaPlayer.Log += OnLogInternal;

I couldn't find anything in the the rel dirs, but I'll try with an absolute path to see how that goes. Thanks!

According to Vlc documentation file logging parameters are:
`
   File logger (file)
  --file-logging, --no-file-logging
                             Log to file
                             (default disabled)
      Log all VLC messages to a text file.
  --logfile=<string>         Log filename
      Specify the log filename.
  --logmode={text,html}      Log format
      Specify the logging format.
  --log-verbose={-1 (Default), 0 (Info), 1 (Error), 2 (Warning), 3 (Debug)}
                             Verbosity
      Select the logging verbosity or default to use the same verbosity
      given by --verbose.

`
I think you are missing to enable file logging (--file-logging), because default behaviour is not to do it.

According to Vlc documentation file logging parameters are:
`
   File logger (file)
  --file-logging, --no-file-logging
                             Log to file
                             (default disabled)
      Log all VLC messages to a text file.
  --logfile=<string>         Log filename
      Specify the log filename.
  --logmode={text,html}      Log format
      Specify the logging format.
  --log-verbose={-1 (Default), 0 (Info), 1 (Error), 2 (Warning), 3 (Debug)}
                             Verbosity
      Select the logging verbosity or default to use the same verbosity
      given by --verbose.

`
I think you are missing to enable file logging (--file-logging), because default behaviour is not to do it.

That did it, thanks!
@jeremyVignelles, I recommend updating the getting started page (https://github.com/ZeBobo5/Vlc.DotNet/wiki/Getting-started) to include this:
"--file-logging", "-vvv", "--extraintf=logger", "--logfile=Logs.log"
It currently shows:
"-vvv", "--extraintf=logger", "--logfile=Logs.log"

Please do it, the wiki is writeable by anyone

Please do it, the wiki is writeable by anyone

Thanks, done!


custom mappings prefix

custom mappings prefix

I looked through this and I like this change. I will have to update it to account for recently newly added mapping.


[BUG] CheckDeveloperProductName error when calling updateDeveloperProduct

when caling updateDeveloperProduct i get an error that i am not logged it

Hi there,
I have just tested and the function appears to be working as expected. Your error may be caused by authentication issues, such as not running setCookie, or not appropriately waiting for setCookie to complete. See our Tutorial on authentication for more information, and also our tutorial on Promises.
More support is also available in our Discord.


Add DeepSmart

Add DeepSmart

 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.“liuzhonghua” seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

The main two issues I see which need to be addressed are:

the periodic multicast discovery running every 30 seconds
the way devices are initialized when first added and when the driver starts up do not follow existing patterns where it is done on a device by device basis in the init/added lifecycle handlers. See the Hue (most relevant), Sonos, or Bose drivers for example on how this works.

The main two issues I see which need to be addressed are:

the periodic multicast discovery running every 30 seconds
the way devices are initialized when first added and when the driver starts up do not follow existing patterns where it is done on a device by device basis in the init/added lifecycle handlers. See the Hue (most relevant), Sonos, or Bose drivers for example on how this works.

1 periodic discovery is used to check whether the bridge is alive and the ip is same with previous ip
2 delete old wisers.init() function. bridge and devices are all initialized in lifecycle's init function

Hi @refuseRed
Please move your driver dir deepsmart from SmartThingsEdgeDrivers/drivers to SmartThingsEdgeDrivers/
Just like SmartThingsEdgeDrivers/drivers/Aqara

Hi @refuseRed
Please move your driver dir deepsmart from SmartThingsEdgeDrivers/drivers to SmartThingsEdgeDrivers/ Just like SmartThingsEdgeDrivers/drivers/Aqara

Ok, adjusted

Hi @refuseRed

Commits should be squashed down to a single commit prior to merging, as well as be rebased on top of the upstream branch

Add upstream repo

❯ git remote add upstream https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers.git

Rebase your branch with upstream

❯ git pull --rebase upstream main
From https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers
 * branch              main       -> FETCH_HEAD
Current branch dev is up to date.

Check commit info

❯ git log --oneline
9c002b5d (HEAD -> dev) optimization
0f6fed98 deepsmart Change to DeepSmart
7def2870 update
43dc63d1 update
3e5c48a9 update
6412b586 update
c6eb992c update
37e9f705 optimization
a92744c8 optimization
57d8862b optimization
3b3f9d2e optimization
7cf8fce6 optimization
1e3a5c38 optimization
485ada2e update
1c21ce9c optimization
242af490 Add DeepSmart Hub
90206d9f (upstream/main, main) Merge pull request #1362 from SmartThingsCommunity/bugfix/multi-garage <------ This is upstream base commit
---snip---

Squash your commit

❯ git rebase -i 90206d9f

 1 pick 242af490 Add DeepSmart Hub
  2 pick 1c21ce9c optimization
  3 pick 485ada2e update
  4 pick 1e3a5c38 optimization
  5 pick 7cf8fce6 optimization
  6 pick 3b3f9d2e optimization
  7 pick 57d8862b optimization
  8 pick a92744c8 optimization
  9 pick 37e9f705 optimization
 10 pick c6eb992c update
 11 pick 6412b586 update
 12 pick 3e5c48a9 update
 13 pick 43dc63d1 update
 14 pick 7def2870 update
 15 pick 0f6fed98 deepsmart Change to DeepSmart
 16 pick 9c002b5d optimization
 17
 18 # Rebase 90206d9f..9c002b5d onto 9c002b5d (16 commands)
 19 #
 ---snip---

Edit pick to 's' from line 2 to line 16, then save

1 # This is a combination of 16 commits.
  2 # This is the 1st commit message:
  3
  4 Add DeepSmart Hub
  5
  6 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS>  7
  8 # This is the commit message #2:
  9
 10 optimization
 11
 12 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS> 13
 14 # This is the commit message #3:
 15
 16 update
 17
 18 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS> 19
 20 # This is the commit message #4:
 21
 22 optimization
 23
 24 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS> 25
 26 # This is the commit message #5:
 27
 28 optimization
 29
 30 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS> 31
 32 # This is the commit message #6:
 33
 34 optimization
 35
 36 Signed-off-by: “liuzhonghua”<EMAIL_ADDRESS>

Squash commit info, then save.

Now you have squashed commit successfully.
❯ git log --oneline
38eaad6c (HEAD -> dev) Add DeepSmart Hub
90206d9f (upstream/main, main) Merge pull request #1362 from SmartThingsCommunity/bugfix/multi-garage

Looks like luacheck isn't passing. We would like to keep this passing, so please make the changes to address it. You can view the errors in CI, but here they are as well:
Checking drivers/DeepSmart/deepsmart/src/deepsmart/api.lua 1 warning

    drivers/DeepSmart/deepsmart/src/deepsmart/api.lua:185:5: (W511) unreachable code

Checking drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua 4 warnings

    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:2:7: (W211) unused variable socket
    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:8:7: (W211) unused variable utils
    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:63:34: (W113) accessing undefined variable wiser_index_code
    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:65:24: (W113) accessing undefined variable wiser_index_code

Checking drivers/DeepSmart/deepsmart/src/discovery.lua 1 warning

    drivers/DeepSmart/deepsmart/src/discovery.lua:25:26: (W614) trailing whitespace in a comment

Checking drivers/DeepSmart/deepsmart/src/init.lua 2 warnings

    drivers/DeepSmart/deepsmart/src/init.lua:4:7: (W211) unused variable dp2knx
    drivers/DeepSmart/deepsmart/src/init.lua:5:7: (W211) unused variable dpenum

Checking drivers/DeepSmart/deepsmart/src/lifecycles.lua 3 warnings

    drivers/DeepSmart/deepsmart/src/lifecycles.lua:1:7: (W211) unused variable commands
    drivers/DeepSmart/deepsmart/src/lifecycles.lua:13:46: (W614) trailing whitespace in a comment
    drivers/DeepSmart/deepsmart/src/lifecycles.lua:42:59: (W612) line contains trailing whitespace

You can run luacheck locally by installing with luarocks, and then using this command from the SmartThingsEdgeDrivers/ directory: luacheck --config .github/workflows/.luacheckrc drivers/**

Hi @refuseRed
There‘s still a warning needs to be solved.
❯ luacheck --config .github/workflows/.luacheckrc drivers/DeepSmart/*
Checking drivers/DeepSmart/deepsmart/src/commands.lua OK
Checking drivers/DeepSmart/deepsmart/src/config.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/api.lua 1 warning

    drivers/DeepSmart/deepsmart/src/deepsmart/api.lua:173:3: (W512) loop is executed at most once

Checking drivers/DeepSmart/deepsmart/src/deepsmart/devices.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/dp2knx.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/dpenum.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua OK
Checking drivers/DeepSmart/deepsmart/src/discovery.lua OK
Checking drivers/DeepSmart/deepsmart/src/init.lua OK
Checking drivers/DeepSmart/deepsmart/src/lifecycles.lua OK
Checking drivers/DeepSmart/deepsmart/src/ssdp.lua OK
Checking drivers/DeepSmart/deepsmart/src/utils.lua OK

Total: 1 warning / 0 errors in 12 files

@refuseRed
❯ luacheck --config .github/workflows/.luacheckrc drivers/DeepSmart/*
Checking drivers/DeepSmart/deepsmart/src/commands.lua OK
Checking drivers/DeepSmart/deepsmart/src/config.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/api.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/devices.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/dp2knx.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/dpenum.lua OK
Checking drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua 3 warnings

    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:40:14: (W311) value assigned to variable endpos is unused
    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:387:30: (W113) accessing undefined variable uuid
    drivers/DeepSmart/deepsmart/src/deepsmart/wisers.lua:389:17: (W211) unused variable dev

Checking drivers/DeepSmart/deepsmart/src/discovery.lua OK
Checking drivers/DeepSmart/deepsmart/src/init.lua OK
Checking drivers/DeepSmart/deepsmart/src/lifecycles.lua OK
Checking drivers/DeepSmart/deepsmart/src/ssdp.lua OK
Checking drivers/DeepSmart/deepsmart/src/utils.lua OK

Total: 3 warnings / 0 errors in 12 files

Update point:

Change the search sub device to gateway and add it successfully before searching again
2 device types resolved from uuid no longer using storage
When controlling, change arg to args
Change the search gateway to broadcast to prevent WiFi routers from not supporting multicast
Do not update devices when querying gateway devices fails
Do not delete devices during search (can only be deleted on the app)
Add device queries and initial settings during bridge initialization

Update point:

Change the search sub device to gateway and add it successfully before searching again
2 device types resolved from uuid no longer using storage
When controlling, change arg to args
Change the search gateway to broadcast to prevent WiFi routers from not supporting multicast
Do not update devices when querying gateway devices fails
Do not delete devices during search (can only be deleted on the app)
Add device queries and initial settings during bridge initialization

Update point:

Change the search sub device to gateway and add it successfully before searching again
device types resolved from uuid no longer using storage
When controlling, change arg to args
Change the search gateway to broadcast to prevent WiFi routers from not supporting multicast
Do not update devices when querying gateway devices fails
Do not delete devices during search (can only be deleted on the app)
Add device queries and initial settings during bridge initialization

Update point:

Change the search sub device to gateway and add it successfully before searching again
device types resolved from uuid no longer using storage
When controlling, change arg to args
Change the search gateway to broadcast to prevent WiFi routers from not supporting multicast
Do not update devices when querying gateway devices fails
Do not delete devices during search (can only be deleted on the app)
Add device queries and initial settings during bridge initialization

CC @cjswedes

@cjswedes again review

We've reviewed the self-test cases for the latest code.

We will be re-reviewing this code as soon as we can, thank you!

I will let @lelandblue merge when appropriate.

We have asked other departments to test ASAP.
Thank you so much.


Add scaffolding command to generate code for runtimes such: SpringBoot, Vert.x, Thorntail

I would like to propose the idea to have a scaffolding command able to generate within the current folder a maven project for the java runtimes such as Spring boot, Vert.x, Thorntail or Spring Boot for Camel, ...
The command is a HTTP Client calling a HTTP REST endpoint and passing as parameters information needed to generate a zipped file
Most of the parameters are generic and could be apply no matter if we generate a project for SpringBoot, Vert.x, ...
Parameter :
url : address of the REST Service generating the project
GroupId : maven group of the gav
ArtifactId  : maven artifact of the gav
Version : maven version of the gav
Java PackageName: name of the package = path of the folders containing the java classes
Dependencies: List of starters, modules, .... (web, security, jpa, ...)
BomVersion : Version of the BOM file containing the GAVs
Runtime version : Version of the framework to be used (it could also be equal to BOM version)
Template: template name to be used (= booster) to populate the project using the code

We could imagine to use an interface within the scaffold command and generate method but where the implementation of the content of the method is provided by the runtime golang package. That will need to import such go packages during odo build or dynamically via a golang plugin

If this requires some server-side components to work I would think that should not be in the scope of odo for now, but deferred.
Having a command that will work in some clusters but not on others depending on whether this HTTP rest endpoint is available is not desired.
If what you propose is that this HTTP rest endpoint is in a public well know URL, then we need to work and define how to make this URL stable enough throughout time and provide versioning semantics to allow for evolution.

public well know URL

That will be a public URL that of course we will make it stable enough, versioned to support to be used/called by odo or curl/httpie tool also like the f8 launcher

some clusters

The command to be used will be cluster's agnostic as it will call by example start.vertx.io, start.snowdrop.me, ...

is this issue still relevant?

is this issue still relevant?

yes

If you are interested, here is what @metacosm developed to support such a scaffolding feature - https://github.com/halkyonio/kreate/blob/master/pkg/kreate/cli/project/project.go#L26. Ideally the launcher should be the API that odo or another Dev CLI tool could call to scaffold for a runtime a project

/kind epic


sync instructions
change return to 1/0
add missing tests
closes #72

Signed-off-by: Sven Pfennig<EMAIL_ADDRESS>

Looks good to me