[SingleBox Deploy] Error when boot up Kubernetes

I tried to deploy PAI singlebox on Ubuntu 16.04 followed the deploy guide. But I met the error when boot up Kubernetes. Command "python paictl.py cluster k8s-bootup -p ~/pai-config" raised this error message:
error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/exec/cb76d4833f33123a1c5c8402a03bea85fd139caa0318fd8aed0ce6bd7bc33e74/json: read unix @->/var/run/docker.sock: read: connection reset by peer
Could you help to solve this? Thanks.

Hi @TobeyQin ,
I want to check whether your docker is properly installed.
Please run the command below in dev-box:
docker info docker ps

Hi @TobeyQin ,
For short, currently dev-box should be outside of PAI cluster nodes. So you may need to run dev-box on another machine.
There is a workaround, you could run paictl without dev-box.
 Thanks. I will try to run paictl without dev-box.

@fanyangCS , sure, I create the PR #1298 .


Fix typo (initalization -> initialization)

initalization -> initialization

This is a typo in a third party dep and should be filed to jquery/jquery-ui
thanks!


feat: allow browser language detection

Resolves #350
This PR allows i18next to detect the language set in the user's browser and translate the page.
Translation happens seamlessly now.

Ah I just realized that #350 isn't about spanish not activating, it's about some translations missing in spanish. This is currently a manual process, so not all of the keys in english have spanish counterparts. It falls back to english, so you see english in those cases. This is not a configuration issue.

While working on this, I noticed translation doesn't happen automatically with the browser language setting - this is on Chrome(Brave, Chromium). Modifying the i18NextLng key in localStorage manually causes the page to get translated to the value set. Hence, I added the detection config to update this key according to browser language setting.

Based on what I'm seeing in the README for that project, it will use the navigator but only after checking the other sources. It looks like it saves a LS key based on the initial detected language from navigator, then uses that going forward. So if you change your browser language settings, it will still use the old one based on the key that was saved.
I think it would be wise to retain this behavior in the future, if we want to add a language selector. Perhaps you should just empty out the cache: [] option instead, to not save it to the cache, but to keep the configuration to check for a LS key: https://github.com/i18next/i18next-browser-languageDetector/blob/9efebe6ca0271c3797bc09b84babf1ba2d9b4dbb/src/index.js#L20

Based on what I'm seeing in the README for that project, it will use the navigator but only after checking the other sources. It looks like it saves a LS key based on the initial detected language from navigator, then uses that going forward. So if you change your browser language settings, it will still use the old one based on the key that was saved.
I think it would be wise to retain this behavior in the future, if we want to add a language selector. Perhaps you should just empty out the caches: [] option instead, to not save it to the cache, but to keep the configuration to check for a LS key: https://github.com/i18next/i18next-browser-languageDetector/blob/9efebe6ca0271c3797bc09b84babf1ba2d9b4dbb/src/index.js#L20

This makes sense, took me a while to get the logic! Thanks for pointing this out.


Update trackable association to optional

Currently, this gem does not make it explicitly clear whether the trackable association should be required or not. When upgrading a Rails application and start enabling new defaults one by one, the Rails.application.config.active_record.belongs_to_required_by_default = true completely breaks without this change. It's difficult to know when a codebase suddenly decides to start enabling new configurations. For example, you can be on Rails 7 and have this set to false or have it not enabled if your config/application.rb still has framework defaults set to say Rails 5.0.

One example of a gem that sets polymorphic associations to optional

Overall, by the gem not having this specified, the intent is questionable and I'd say it's a BREAKING CHANGE when upgrading your application/enabling different configurations. This PR makes the intent clear and the changes more backwards compatible. I understand it can also break people that want it required. However, the gem should express explicit intent.

@ur5us / @pokonski curious on your thoughts for this...

@smridge I’m in 2 minds about this change. I totally get your point about changing config.active_record.belongs_to_required_by_default = false|true potentially having a huge impact as you described. In the upgrade scenario, I can see how your proposed change to make trackable, optional: true could also result in breaking behavior for some apps that rely on belongs_to_required_by_default = true to cause validation errors if trackable hasn’t been set.
As the current behavior to rely on app wide settings has been in place for a while accepting this PR would warrant a major version release IMO. However, I don’t think that’d be a good default in the first place. I’d be keen to learn more about your use case though as not setting trackable seems to go against the intention of this gem. Moreover, I think it’d definitely be worthwhile to document that behavior in more detail and describe how to get around it, e.g. use an initializer to re-open the class and redefine the belongs_to parameters.
Long term, I think that https://github.com/public-activity/public_activity/pull/154 would be a better solution overall, I just haven’t had the time to rebase that longstanding PR yet. Thoughts welcome.

I definitely agree it's a BREAKING CHANGE either way. Right now, it's a BREAKING CHANGE depending on your app configuration and not the gem setup. I do strongly feel the gem should provide explicit intent, optional: true or optional: false - which one is it? I did see other issues and likes related to this when it came to having default scopes such as https://github.com/public-activity/public_activity/issues/248 . With polymorphic associations, not all models will have the same scopes. In the case of the opened issue, let's say foo model has soft deleting but bar does not. Have fun working with that. Therefore, my vote is to say trackable is optional: true since it's rather impossible for the gem to know how your default scopes are working. Perhaps that is a reason why the ahoy gem made visitable (can be compared to trackable) optional here.
Separately, for my specific use case, I was not able to override/monkey patch for the life of me. Here are the things I tried:
attempt one
# lib/public_activity/orm/active_record/activity.rb

module PublicActivity
  module ORM
    module ActiveRecord
      class Activity < ::ActiveRecord::Base
        belongs_to :trackable, polymorphic: true, optional: true
      end
    end
  end
end

attempt two
# app/models/activity.rb (model already in app)

class Activity < PublicActivity::Activity
  belongs_to :trackable, polymorphic: true, optional: true
  ...
end

attempt three
# config/initializers/public_activity.rb

PublicActivity::Activity.class_eval do
  belongs_to :trackable, polymorphic: true, optional: true
end

I also tried a require: false on installing the gem and no dice there, many things broke. I'm pretty sure I shotgun debugged a few other ways, but those are the ones I can recall.

@smridge

I do strongly feel the gem should provide explicit intent, optional: true or optional: false - which one is it?

Neither. The 3rd option is “depending on your app configuration” which is a valid option IMO.

With polymorphic associations, not all models will have the same scopes. In the case of the opened issue, let's say foo model has soft deleting but bar does not. Have fun working with that.

What you want to happen in this case will be application specific.

Therefore, my vote is to say trackable is optional: true since it's rather impossible for the gem to know how your default scopes are working.

Point taken.

Perhaps that is a reason why the ahoy gem made visitable (can be compared to trackable) optional here.

I haven’t looked into their history for making this choice so I’m not qualified to comment, yet.

Separately, for my specific use case, I was not able to override/monkey patch for the life of me.

https://github.com/public-activity/public_activity/issues/248 mentions a working solution similar to yours.
Personally, I use the 3rd variant in one of the apps I maintain. Here’s the code copied verbatim from said app:
# frozen_string_literal: true

PublicActivity::Activity.class_eval do
  belongs_to :owner,
             -> { unscope(where: :active) },
             polymorphic: true,
             optional: true

  def parameter_for(*args)
    parameters
      .with_indifferent_access
      .fetch(*args)
      .then { |value| value.is_a?(Array) ? value[1] : value }
  end

  def updated_attributes elements = %w[updated_at]
    parameters.without(*elements)
  end
end

Do you use the spring gem by any chance?


Add rake task to run dependabot scan

Fixes: #25

@thegeorgeous will be cleaning up service class on next PR


C stubs in subdirectories do not work

Suppose you have the following tree:
foo
 |-- jbuild
 |-- stubs
       |-- bar.c
 |-- <more stuff>

and that the jbuild file defines a library with C stubs via (c_names (stubs/bar)).  The file bar.c is compiled with ocamlc and produces foo/bar.o, rather than foo/stubs/bar.o.  This causes jbuilder to fail since the expected output is not produced.
Should jbuilder move the .o file to the subdirectory to allow using C stubs in subdirectories ?

The following one-line patch seems to do the trick (not 100% sure about Path semantics, though). Opinions ?
diff --git a/src/gen_rules.ml b/src/gen_rules.ml
index 3ee7cc4..742faa5 100644
--- a/src/gen_rules.ml
+++ b/src/gen_rules.ml
@@ -129,7 +129,7 @@ module Gen(P : Params) = struct
        Build.run ~context:ctx
          (* We have to execute the rule in the library directory as the .o is produced in
             the current directory *)
-         ~dir
+         ~dir:(Path.append dir (Path.parent (Path.of_string c_name)))
          (Dep ctx.ocamlc)
          [ As (Utils.g ())
          ; Dyn (fun (c_flags, libs) ->

OK, the problem is any other include path passed on c_flags now needs to be adjusted.  I guess it is more complicated than this.

Actually this should already work, except that ocamlc foo/bar.c -o foo/bar.o does not produce foo/bar.o but bar.o (tested with 4.05.0).  I thought this had been fixed in 4.04, so am not sure what is going on exactly...

Hmm, I guess if it works it's by chance really. It is expected that the C files are be in the same directory as the library stanza. If we allow the C files to be in other directories, it's going to make the upcoming feature to generate rules dynamically much more difficult to implement.
In the meantime, we should strengthen the parsing to forbid / in c_names. If you want to keep C files in sub-directories, the current method is to setup a rule to copy them:
(rule (copy# stubs/bar.c bar.c))

Thanks @diml, sounds reasonable.  Really interested about upcoming feature to generate rules dynamically.  Is there a public discussion of it anywhere ?

Reopening in order to track the suggestion to eliminate / in c_names

Also, following up to @diml's suggestion, it may be useful to have a (copy# (glob ...)) form that copies things to the current directory.

@nojb there is no public discussion yet. We implemented a prototype with an intern in the branch dynamic-rules-via-scheme. We are able to correctly do things like this:
(executable ((name foo)))

(rule (with-stdout-to rules.jbuild (run ./foo.exe)))

(include rules.jbuild)

Does (include_subdirs unqualified) work for c sources? seems like it should (for symmetry)

It does, yes. I believe this can be closed.


blender: 2.79b -> 2.80

Just transferring stuff from my overlays.

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @goibhniu

We should be able to merge #52818 (maybe out of date now) right?

Should be fine since it matches the required version [1].
[1] https://developer.blender.org/diffusion/B/browse/master/build_files/build_environment/cmake/versions.cmake$116

@eadwu shouldn't we just fetchfromgit and use tags instead? For me it seems like the best way, also because the mirrors are VERY slow compared to git :)

so i merged this pr into my nixpkgs and got this...

Hash hasn't been calculated.

that was quick!

Well still haven't been able to download the file, although I have reached the 1.0 MiB mark. Through the git source it builds fine with opencollada 1.6.68. Derivation output was /nix/store/fkvwfjsbgs5wqicy3v1i3xqjmbr1wmv0-blender-2.80.

@eadwu I got it yesterday, I have put it on my server, feel free to grab it! http://srtutti.zurlius.dk:8394/blender-2.80.tar.gz

@eadwu  had to put it inside a container, as I was unsure if SimpleHTTPServer is safe. So if your download was interrupted, then restart it :)

Downloaded it beforehand and it matched the hash so it's fine to me. Anyway with the source provided by @eyJhb it also compiles fine with opencollada 1.6.68, /nix/store/sbyd66xd3ygqb9awr6j55k2nhmaf3bnx-blender-2.80.

@eadwu is there any reason we are not cloning from Git?

Not sure, but I don't like changing the source unless it's missing for 2 or more days.

Some changes from my blender-2.80 Nix expression that you may want to copy:
diff --git a/pkgs/applications/misc/blender/default.nix b/pkgs/applications/misc/blender/default.nix
index 353cf620ee7..6d9aa7a4384 100644
--- a/pkgs/applications/misc/blender/default.nix
+++ b/pkgs/applications/misc/blender/default.nix
@@ -46,10 +57,7 @@ stdenv.mkDerivation rec {
       "-DWITH_INSTALL_PORTABLE=OFF"
       "-DWITH_FFTW3=ON"
       #"-DWITH_SDL=ON"
-      "-DWITH_GAMEENGINE=ON"
       "-DWITH_OPENCOLORIO=ON"
-      "-DWITH_SYSTEM_OPENJPEG=ON"
-      "-DWITH_PLAYER=ON"
       "-DWITH_OPENSUBDIV=ON"
       "-DPYTHON_LIBRARY=${python.libPrefix}m"
       "-DPYTHON_LIBPATH=${python}/lib"

Also I did still need the wrapProgram to set the PYTHONPATH to numpy but that was a couple of months ago.

Verified the hash since I can actually download the source now. Added back the wrapper since blender --python-expr 'import numpy' doesn't work without it.

Is there anything left blocking this?

Don't think so.


Not a real issue, documentation suggestion.  Please use Mendable and let AI work your documentation.

Not a rep for Mendable, just tired of having to read, reread, and reread again documentation to get a basic thing working.
Please get Mendable and hook it up to y'alls documentation.  It has been great when reading Langchain docs.

https://www.mendable.ai/

I haven't used Mendable but anything that helps make the Firebase docs more concise would be great.


Inactive sources

Added an inline alert to show inactive sources

As a user when I'm in the cost management application, I want to know when a source that is supposed to be connected to Cost has an issue, so that I can go and remedy the issue before it leads to data loss or instability of reporting.

https://issues.redhat.com/browse/COST-463
Multiple errors

Single error

Codecov Report

Merging #1647 into master will decrease coverage by 1.49%.
The diff coverage is 16.48%.

@@            Coverage Diff             @@
##           master    #1647      +/-   ##
==========================================
- Coverage   78.86%   77.36%   -1.50%
==========================================
  Files         240      242       +2
  Lines        4008     4105      +97
  Branches      721      742      +21
==========================================
+ Hits         3161     3176      +15
- Misses        748      830      +82
  Partials       99       99

Impacted Files
Coverage Δ

src/api/providers.ts
76.92% <ø> (ø)

...onents/sources/InactiveSources/InactiveSources.tsx
14.60% <14.60%> (ø)

src/app.tsx
57.50% <100.00%> (+0.53%)
:arrow_up:

src/utils/pathname.ts
14.28% <0.00%> (ø)

Continue to review full report at Codecov.

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


Toolbar buttons for some block styles are not highlighted on active

Notes: This is related to issue #761
Describe the bug

There are two parts to this issue:

When selecting a block of text in the editor and toggle it to Quoteblock, Bulleted list or Numbered list using toolbar buttons, the buttons are not highlighted. However, the text was converted properly to the chosen text style.
When clicking away from an existing quoteblock, bulleted list or numbered list, then select or click on them again to focus, the toolbar button is not highlighted either.

To Reproduce
Steps to reproduce the behavior. For example:

Create a new post
Make sure that the editor is set to Rich Text.
Enter four lines, with each line separated by an Enter key: Heading 2, Quote block, Bulleted list, Numbered list.
Select the “Heading 2” text and click the Heading 2 button in the toolbar. The text turns into heading 2 and the button is darkened.
Select the “Quoteblock” and click the Quote block button in the toolbar. The text turns into a quoteblock but the button is not highlighted.
Click away from the “Quoteblock” text and click on it again. The button is not highlighted either.
Do the same thing for “Bulleted list” and “Numbered list” and you should see the same issue.

Repeat the process above, but change step 1 to edit an existing post. The issue still remains.
Expected behavior

When selecting a piece of text and click Quoteblock, Bulleted list or Numbered list button, the button should be highlighted to signal to users that the text has really been converted from paragraph to the above styles.
Similarly, when focusing an existing quoteblock, bulleted list or numbered list, the button should also be highlighted so users understand that if they click the button again, they will turn the text back to a paragraph.
Screenshots

Applicable Versions:

Netlify CMS version: Netlify CMS 2.10, Netlify CMS app 2.14
Git provider: GitHub,
OS: MacOS Catalina
Browser version: Chrome 90

Node.JS version: 12.6

CMS configuration

backend:
  name: git-gateway
  branch: master # Branch to update (optional; defaults to master)
media_folder: "assets/uploads"
collections:
  - name: "blog"
    label: "Blog"
    folder: "_posts/"
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    editor:
      preview: false
    fields:
      - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Slug", name: "slug", widget: "string" }
      - {
          label: "Category",
          name: "category",
          widget: "select",
          options: ["software development", "programming"],
        }
      - { label: "Publish Date", name: "date", widget: "datetime" }
      - { label: "Body", name: "body", widget: "markdown" }

Additional context

Here's what I found when examining the toolbar buttons with React Developer tools:
The component that renders the toolbar button and handles click event for changing text styles is called <StyledToolbarButton />.
It also has a prop isActive that takes a boolean value. If this value is true, the button takes a color rgb(30, 37, 50) aka highlighted. Otherwise, the value is by default false and the button's color is inherited.

This prop's value is changed when we focus on a piece of text in the editor by either clicking or selecting. As you can see, when I focus on the Heading 2 text, the isActive prop in the Heading button component changes to true.
For reasons that I don't understand yet, in the Quoteblock, Bulleted list and Numbered list button components, this prop's value remains false even when the corresponding text style in the editor is focused.
Is my description clear enough @erquhart ?

Hi @bytrangle, thank you for the detailed reproduction, it's very clear


When you open the dropdown and don't select anything, you cannot click on anything behind it.

I have a button below the multiselect component. When I click on the dropdown where it shows all the dropdown options and don't select anything. The button is no longer clickable because somehow the dropdown div is overlapping it.

A code snippet would help, are you using an animated multiselect?

Sorry, I meant to say it was happening on simpleselect. Haven't tried on multiselect yet but I can also find out.
Here is my form:

Create New Element

        <form>
          <InputBox autoFocus field={elementName} label={'Element Name'} placeholder={'Enter a name for the new element.'} small={'Enter a name for the new element.'} />

<fieldset className="form-group">
      Element Types
      <SimpleSelect
        placeholder="Select Element Types"
        options={elementTypesList}
        value={elementType.value}
        onValueChange = {function(selectedElementType, callback){
          this.props.dispatch({type: 'redux-form/CHANGE', field: field, value: selectedElementType, touch: false, form: formName});
          callback();
        }.bind(this)}
      />
      {small}
    </fieldset>

          <fieldset className="form-group">
            Parent

                <button className="btn btn-primary" onClick={::this.toggleModal}>Select Parent Element...</button>

              <input type="text" className="form-control" placeholder="Select parent element..." disabled="true" value={parentElement.value ? parentElement.value.get('name') : 'System'} />

            Select a parent Element.
          </fieldset>
          <button className="btn btn-primary modal-button-full" onClick={handleSubmit(::this.submit)} disabled={submitting}>
            {submitting && } Create New Element
          </button>
        </form>

Here are some screenshots:
http://imgur.com/a/rssgo
When you click on the dropdow, dont select anything and click anywhere outside to make the dropdown go away, the dropdown-transition div is overlapping the form where you cannot click on anything.

Thanks for the detailed bug report.
The problem is caused because the ReactCSSTransitionGroup does not have an on transition end event will try to implement it with ReactTransitionGroup & see if it could solve the problem.
As a workaround for now you could add this to your css file:
.react-selectize:not(.open) .dropdown-transition {
pointer-events: none
}

fixed in release 0.3.10


Luxeon

Have all parts and chassis, down to coding. I do not have required knowledge to program. I know from reading the forum that I need to add "#define LEDSTRING" or do I put "#define LUXEON"
Also I think I need to set the pins?
Really I just need to know what to change and where in order for LSOS to work with Luxeon Led.

It you wire everything according to scheme in readme catalogue than you only need comment "#define ledstring" and in uncomment "#define luxeon" in config.h

Thanks for quick reply. So at the top of the config.h, put "#define LEDSTRING#
Nothing else?

#define LEDSTRING
TYPO

As i remmember everything works fine for me after that

Great! Thank you! One finally question. Do I need to have it fully wired to upload to it? I'm getting errors when uploading and need to narrow it down.  I just want to make sure that I can upload and then wire it.

I'm getting errors when uploading

Are you still having problems @Argathena?

Uploading is complete.  The Nano had a solder blob that landed on the atmega chip pins. I managed to desolder that blob, and cleaned the pins up. After that, it uploaded.
Currently waiting on a 470ohm resistor.  Then I need to work on the power for my luxeon tri rebel. I'm sure my answer is in the forums, but if you have any ideas for the power let me know.  (Do I need mosfets is my main question on power)

Yes, you will need MOSFETs.
On Mon, Oct 3, 2016 at 1:25 PM, Argathena<EMAIL_ADDRESS>wrote:

Uploading is complete. The Nano had a solder blob that landed on the
atmega chip pins. I managed to desolder that blob, and cleaned the pins up.
After that, it uploaded.
Currently waiting on a 470ohm resistor. Then I need to work on the power
for my luxeon tri rebel. I'm sure my answer is in the forums, but if you
have any ideas for the power let me know. (Do I need mosfets is my main
question on power)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neskweek/LightSaberOS/issues/23#issuecomment-251169041,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMKpzb3ECeJYIDpN-AC8H5YWf9pXlks5qwTqXgaJpZM4J6F0Q
.

Order DIYino Prime


Immutable Deployments within a stack

Updating one container in a stack, do we destroy the whole stack? Currently this is the way the code operates, Needs discussion.

I think that in the future, I would like to support separate configurable projects in a single silo server (say for example, a selection of "web" containers, and then a selection of "database" containers on the host) which could specify a docker-network over which to communicate.  But for the right now, supporting a single stack makes the system easier to understand, and considerably less complex


train code

I'd like to use this algorithm to train some other ticket classification task. Could you offer the train code?

Hi, thanks for your interest in our work. It has been a long time since we worked on this project and also since the training code was never meant for proper release, we unfortunately don't have access to the training code anymore and will be unable to provide you with it.
We would be happy to try and help you if you have questions on reimplementing the algorithm.


KAFKA-5380: Fix transient failure in KafkaConsumerTest, close consumers

In KafkaConsumer#testChangingRegexSubscription, keep metadata updated with both topics since heartbeat thread may remove unsubscribed topic  during its metadata update, causing the assertion that matches join requests to fail. Also close consumer in all tests since they leave behind heartbeat threads.

@hachikuji Can you take a look please? Thank you...

@hachikuji I think the issue is that MockClient uses Metadata#update() which takes the cluster provided for metadata response or the existing cluster from Metadata#fetch() and takes the subset of topics from the cluster that are active. The test (at least this failing one) creates metadata responses assuming a single thread. If the heartbeat thread happens to do the update before the subscribe to otherTopic, then otherTopic is removed from the metadata. Even if we install a cluster in MockClient, we will still need to avoid Metadata.update() to leave the topic in the metadata when the poll is from the heartbeat thread. The fix in this PR does a Metadata#update() from the main thread before poll() to ensure that there is always an update with otherTopic before the poll that expects it. Not sure if any of that makes sense :-)

One thing we should consider is whether there is value in the Heartbeat thread running in unit tests like this. Does it help us catch bugs or does it simply make tests more fragile?

@ijuma Yes, I had looked at turning off heartbeat yesterday for this test, but found that implementation changes were needed for that. Will see what @hachikuji says.

@rajinisivaram Thanks. Your update is exactly what I had in mind. Left a couple minor comments.

By the way, with these changes, I have a feeling we can replace all uses of prepareMetadataUpdate to override the cluster directly. We can do that separately though.

@ijuma I'm not sure how often we see this failure, but do you think this is worth merging into 0.11.0? The bug fix also seems nice to have and low-risk.

Yes, please merge it to 0.11.0 as well.

@hachikuji @ijuma Thank you for the reviews. Merging to trunk and 0.11.0.


[#530] Usage message customization (2)

Issue #530
Changes based on stechios changes and your suggestions.
Does this comply with your suggestions? Just say what you think.
First ever pull request, so I don't know what I am doing github-wise.
I assume that every new Help(...) inside of Help needs to be replaced by the factory?
For me all of this usage customization only has a value when Help.detailedSynopsis is split into multiple methods. This affects synopsis Help.synopsis(int). So I suggest making the switch between custom, abbreviated and detailed synopsis in Help.sections. Plus some code reuse to implement Help.synopsis(int) if the interface should not break. I think it fits this issue, or should i open a new issue for that?
My agenda: I like to see some parameters in usage instead of commandSpec.qualifiedName() and want to replace qualifiedName() with a subcommand-loop. e.g. we do 'thingy 119 update foo=13' and expect as subcommand help synopsis: thingy  update.

Did not build.
What to do about the Java 1.5 compatibility?

For me all of this usage customization only has a value when Help.detailedSynopsis is split into multiple methods. This affects synopsis Help.synopsis(int). So I suggest making the switch between custom, abbreviated and detailed synopsis in Help.sections. Plus some code reuse to implement Help.synopsis(int) if the interface should not break. I think it fits this issue, or should i open a new issue for that?

Yes, I think it may make sense to open a separate ticket for that. Essentially you want the detailedSynopsis method separated into the logic that generates the command name and the logic that generates the option and positional parameter details, correct?
The work for this ticket will certainly enable that, I don't think we're very far away. Will you be able to add some unit tests?

Do you think you will be able to work on this pull request further? I can do a separate 3.9 release for this if we can polish this a bit. Otherwise it will have to wait until 4.0 or later.

Codecov Report

Merging #567 into master will increase coverage by <.01%.
The diff coverage is 86.84%.

@@             Coverage Diff              @@
##             master     #567      +/-   ##
============================================
+ Coverage     89.14%   89.15%   +<.01%
- Complexity      286      294       +8
============================================
  Files             4        4
  Lines          3971     3993      +22
  Branches        978      980       +2
============================================
+ Hits           3540     3560      +20
- Misses          212      213       +1
- Partials        219      220       +1

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/picocli/CommandLine.java
89.19% <86.84%> (+0.01%)
169 <10> (+8)
:arrow_up:

Continue to review full report at Codecov.

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

Merged. Thank you for the pull request! I may make some further changes.
You mentioned you wanted to make some changes to the API to enable customizing the detailedSynopsis. Would you mind creating an issue for that?

First, thank you for your excellent support.

Would you mind creating an issue for that?
Yes, maybe today or tomorrow.


build: bump versions

Bump Python dependency versions - fixes https://github.com/pentatonicfunk/action-gist-repo-sync/issues/1
Tested with a successful run via my fork which can be found here

release published: https://github.com/pentatonicfunk/action-gist-repo-sync/releases/tag/v1.8


Add local storage to memorize inputs in webform

You don't want the webform to lose all your inputs every time you close your stuff. Just in case.

trigger the cookie saving when generate is clicked
read the cookie and restore the fields with the values
check if you can skip the generate button altogether by calling the thing regularly (there's a debouncer function right?)
add a cookier warning banner on the site, since that's mandatory I think? Or maybe not? I think it is mandatory.

the thing is called Local Storage: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API

done!


[UI] Add drag&drop support for adding a source field into conditional mapping formula

Support drag&drop a source field from Source document tree into conditional mapping formula.

merged


Staging environment

We have now 2 testnets - "TestNet" and "Staging". Would be good to be able to specify via NODE_ENV=staging

done


chrome-infra-packages.appspot.com is not accessible in China

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Downloading Web SDK...                                             32.7s
Downloading CanvasKit...                                          129.5s
Downloading CanvasKit...                                          131.1s

https://chrome-infra-packages.appspot.com/dl/flutter/web/canvaskit_bundle/+/1e8cK_8LOs0dz4lqd20LwTUYNqfu_4YL-dFG5yK1xXQC. Ensure
you have network connectivity and then try again.
SocketException: Connection failed (OS Error: Network is unreachable, errno = 101), address = chrome-infra-packages.appspot.com,
port = 443

I start upgrade flutter today and suddenly found flutter can not download assets from chrome-infra-packages.appspot.com,
this is blocked by GFW in China. please make an alterative url to download this.

I think that we should move this artifact to the same cloud storage bucket that we use for the rest of the engine artifacts so that the tool can leverage the existing mirror override system.

I use proxy but still failed to download. May I ask how you did it?

I use proxy but still failed to download. May I ask how you did it?

Did you manage to get a solution?

I got the same problem when I try to use the beta channel to build web APP.

@yjbanov

hi, set proxy for ide or sysytem? i try global proxy on mac or in vscode, not work

I think that we should move this artifact to the same cloud storage bucket that we use for the rest of the engine artifacts so that the tool can leverage the existing mirror override system.

hi, set proxy for ide or sysytem? i try global proxy on mac or in vscode, not work

@yjbanov - when was this regression introduced? What's the impact if we don't cherry pick into the upcoming stable? This is the week before the release, so we want to be very cautious w/ what we choose to cherry pick. Note that this could also be considered for a batch or fixes after the release week.

@devoncarew This was introduced recently. If it is not hotfixed, Web users in China will not be able to upgrade.

Understood - thanks.

fvm flutter run -d chrome
Downloading Web SDK...                                             78.2s
Downloading CanvasKit...                                           75.2s
Downloading CanvasKit...                                           75.6s
Failed to download https://chrome-infra-packages.appspot.com/dl/flutter/web/canvaskit_bundle/+/1e8cK_8LOs0dz4lqd20LwTUYNqfu_4YL-dFG5yK1xXQC. Ensure you have network connectivity and then try again.
SocketException: OS Error: Operation timed out, errno = 60, address = chrome-infra-packages.appspot.com, port = 50558

When using the latest stable version and beta version in the China environment, the download CanvasKit timeout problem occurs. I have tried to modify the host and use the proxy. The problem is the same. Open the link directly to download normally.
fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.8.0-3.3.pre, on macOS 11.5.2 20G95 darwin-x64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.63.0)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

Seems we're still affected on the stable. Cherry-pick might not merge in a good state, or it's not resolving the issue. cc @yjbanov @godofredoc

The problem is the bucket used by chrome-infra packages is not being mirrored. We'll need a patch in the tool to provide an alternative download URL for canvas kit and a strategy to copy the those files to gs://flutter_infra_release to get them mirrored. @yjbanov let's discuss the options

/cc @christopherfujino

The problem is the bucket used by chrome-infra packages is not being mirrored.

cc @chenglu I think we've already made a reverse proxy.

According to https://github.com/flutter/flutter/pull/94178#discussion_r756540694, CIPD has been forwarded and we do test with success at that time.

Taking a look at this now

Discussed with @moxiaov587 offline, that he didn't provide the full log. He didn't set the mirror on his working env which didn't change the CIPD's destination. Sorry for our disturbance, and this issue should be safe to close.

(Failed to run with no mirror, and succeed to run with the mirror.)

@AlexV525 thanks!


Figure out why cache hit ratio deteriorates rapidly after cache is filled up

Normally hovering around 75%, it lowers to 25% once the cache is full.

After analyzing cache patterns, #142 was created.


Refs #15053 -- Clarified debug message when skipping templates to avoid recursion.

@blueyed Thanks :+1: I added a test.

@felixxm Thanks!


Disable Analytics section for Release 1

Analytics can be brought back after some rethought

Disabled analytics section in home.html


OS X Full Screen

Full Screen won't work correctly:

Can't see the bottom of the app - Dock is over it always
Can't see the top bar - can't press the resize button
Overall, can't exit Full Screen Mode!

I have the exact same issue and it is driving me insane. I've tried uninstalling and reinstalling the app, no luck.

+1
Makes it unusable right now.
I did go into fullscreen at home in 1920x1080 and opened Messenger somewhere else, where it started as fullscreen app for 1920x1080. Unable to see the bottom. Unable to resize it in any way.
The app shouldn't start in the last used View-container!

Thanks for reporting.
Please try to use the beta, see https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/458
I will investigate that problem for the future beta releases


[js-api-parser] don't add members as types

This PR uses the id of the token to determine whether it should be added as a member or a type.

before:

after:

Would this cause breaking changes to show up everywhere?

Would this cause breaking changes to show up everywhere?

@praveenkuttappan @chidozieononiwu?

Would this cause breaking changes to show up everywhere?

@praveenkuttappan @chidozieononiwu?

Yes, unless we update the parser version and get all existing reviews updated. Can you please update JS parser version in following two locations.
https://github.com/Azure/azure-sdk-tools/blob/main/tools/apiview/parsers/js-api-parser/package.json#L3
https://github.com/Azure/azure-sdk-tools/blob/main/src/dotnet/APIView/APIViewWeb/Languages/JavaScriptLanguageService.cs#L14
This will upgrade all existing reviews using latest parser.

@praveenkuttappan updated version number.  Looking good now?


Triton 3.0.0 does not work

Hello,
I've been playing around with the collab examples on both AMD and NVDA sides and noticed that when using Triton's latest (main branch) it seems to break down at Unsloth's init step in the init.py:

https://github.com/unslothai/unsloth/blob/27fa021a7bb959a53667dd4e7cdb9598c207aa0d/unsloth/__init__.py#L70C33-L70C45

I noticed that Triton's latest package structure changed a little compared to the old releases, the /common package (which is assumed in Unsloth's src code) no longer exists. I dug a little more and found the last version that had the old package structure was around the 2.1.0 release... (and any other versions around this one).
New Triton structure:

https://github.com/triton-lang/triton/tree/main/python/triton

Old Triton structure:

https://github.com/triton-lang/triton/tree/v2.1.0/python/triton

I was wondering, if there are any plans to support latest version of Triton moving forward?

Oh someone did report this a while back, but I forgot about it whoops - will relook into this!

Thanks! I'll check back later on

I think I fixed it!

Nice! I'll test it out later this week :)

Hi @danielhanchen, sorry for the delay, just was able to test it out now, it seems like with triton 3.0.0 (installing from src from their main branch) BitsandBytes is failing now.... did you guys encounter this issue as well?

Oh that seems like bitsandbytes themselves have not updated their package to work with Triton 3

Seems like it yeah. What dependency versions are you using to test triton 3.0.0 in Unsloth?

Oh I used torch 2.5 and the latest xformers - tbh I haven't tested bitsandbytes

I see..... so bitsandbytes works with upstream triton (from cached pypi server) but I'm seeing an error in xformers (0.0.26.post1) in one of their kernels when they try to jit()

Hmmm I'll try investigate this

Were you able to see a jit() failure in the 0.0.26 version of xformers? What about in the newest release of xformers?

The latest version of xformers should work (BUTT Unsloth needs < 0.0.27 lol) - I first need to fix that first!

Haha, yeah I saw that in the src code, did you get a chance to change the version requirements?

Working on it!

Changed the requirements! Xformers > 0.0.27, Torch 2.4/2.5 and Python 3.12 all work now!

so unsloth can works with amd now?

@lastrei Maybe - we're tracking AMD support in https://github.com/unslothai/unsloth/issues/37

I'll close this issue for now! Triton 3 definitely functions with Torch 2.4 :)

Hey, sorry I've been a bit busy lately, closing the ticket is fine. I haven't found time to test it yet.... I'll circle back if there are any issues in the future :)


How to execute a local command on the ssh-client?

			{
				"label": "Diff source file with another project",
				"command": "${execPath}",
				"args": [
					"--diff",
					"${file}",
					"${workspaceFolder}${pathSeparator}..${pathSeparator}..${pathSeparator}${input:project}${pathSeparator}src${pathSeparator}${relativeFile}"
				],
				"isBackground": true,
				"group": "none",
				"problemMatcher": []
			},

This command works fine on a local workspace but can't on a remote one; as any commands (totally fine for others) are executed in the remote environment. Is there an option to define "execute this one locally"?

This sounds like a feature request for vscode itself :thinking:, does it fail because you are using ${execPath}? maybe replace it with codium

This sounds like a feature request for vscode itself

that's possible

does it fail because you are using ${execPath}?

Yes.

maybe replace it with codium

That does only work as long as there's no "native" windows client uses the workspace; and the linux/windows separation strangely does only work if both the command and the args are wrapped by that - but I'll drop the "windows with NAS access to the workspace" soon, and codium works both for remote-workspaces (even with a windows client) and local linux clients.
Thank you for taking the time to answer - I consider this answered now.


Updated the version number in README

Description of the change
I have updated the README file to match the version number in the example usage with the actual version number of the module
Type of change

[ ] Bug fix (non-breaking change that fixes an issue);
[ ] New feature (non-breaking change that adds functionality);
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected);
[x] Documentation (a documentation or example fix not affecting the infrastructure managed by this module);

Checklists
Development

[x] All necessary variables have been defined, with defaults if applicable;
[x] The code is formatted properly;

Code review

[x] The module version is bumped accordingly;
[x] Spacelift tests are passing;
[ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached;
[ ] This pull request is no longer marked as "draft";
[x] Reviewers have been assigned;
[ ] Changes have been reviewed by at least one other engineer;

I'm closing this pull request because I will update one other part of the module and I plan to release another version with that update


Connect to Redix via ipv6?

Hi, I'm deploying my app to a production environment which employs a managed Redis that uses ipv6 as the connection url. Redix supports ipv6 via passing socket_opts: [:inet6] to Redix.start_link/2. However, it looks like Verk doesn't allow passing extra options to Redix, using Redix.start_link/2 with just a url and no additional options.
Is there any way to start Redix with ipv6 in Verk? Thanks.
Here's a related Redix issue discussing ipv6:
https://github.com/whatyouhide/redix/issues/222

Hmm yeah we might need to add an option to configure Redix more directly :thinking:


revert: temporarily setup new apps with old pluralization

Description of changes

Updates to our pluralization have resulted in customer issues  as described in https://github.com/aws-amplify/amplify-cli/issues/8350.
This pull request switches the cli to use the old pluralization scheme by default for new apps until any underlying problems can be addressed.
Issue #, if available
https://github.com/aws-amplify/amplify-cli/issues/8350

Description of how you validated changes

Ran all unit tests
Pushed new api with two models. One called wish and one called wishes. No errors.

Cloud e2e: https://app.circleci.com/pipelines/github/aws-amplify/amplify-cli/3119/workflows/dc448064-0287-4ff5-8158-c107889951b2
Checklist

[x] PR description included
[x] yarn test passes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Note that when a project is affected by https://github.com/aws-amplify/amplify-cli/issues/8350, updating CLI 6.3.0 and amplify codeine modelsis not enough to solve the issue.amplify push` does not helps neither because, as seen from the cli, nothing changed.
I delete the API and re-created it on a demo project, but how can I a live project be updated ?


Fixed the keyboard bug

Fixed the bug in which the user was able to move the chicken through keyboard even after the game was over.

Thanks for the PR

You're welcome.
On Sun, 16 Aug 2020, 20:43 Shuvam Manna<EMAIL_ADDRESS>wrote:

Thanks for the PR
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GeekBoySupreme/crossy-road/pull/1#issuecomment-674538700,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM5AV3H7O5HTLCFJDZHKZBLSA7ZTFANCNFSM4P24NXYA
.


[Snyk] Fix for 4 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

⚠ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

676/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.1
Cross-site Request Forgery (CSRF) SNYK-JS-AXIOS-6032459
Yes
Proof of Concept

586/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-AXIOS-6124857
Yes
Proof of Concept

589/1000  Why? Has a fix available, CVSS 7.5
Prototype Pollution SNYK-JS-AXIOS-6144788
Yes
No Known Exploit

479/1000  Why? Has a fix available, CVSS 5.3
Improper Authorization SNYK-JS-NEXTAUTH-6069933
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: openai
    The new version differs by 16 commits.

3ec43ee Merge pull request #220 from openai/v4
31ddda8 v4.0.0
37de535 v4.0.0-beta.12
68ac889 v4.0.0-beta.11
05ff44f v4.0.0-beta.10
28276d6 v4.0.0-beta.9
61cd8e1 v4.0.0-beta.8
347a227 v4.0.0-beta.7
96e5b7f v4.0.0-beta.6
07b3504 v4.0.0-beta.5
be1e275 v4.0.0-beta.4
f35bbc5 v4.0.0-beta.3
492cc2e v4.0.0-beta.2
e8b3cd3 v4.0.0-beta.1
9d818a1 v4.0.0-beta.0
206f871 cleanup

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Request Forgery (CSRF)
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Prototype Pollution

deployed to v1.0.825.dev


This is not an exploit.

This is not an exploit, this is not even a bug. Stop trying to pretend it is. This would never work in the real world.

It's just phishing using a image it's not that deep, also pretty ironic when you have a repository called "discord-zeroclick-exploit" and all it does is put a dormant maybe malicious file into the users memory and maybe triggering there anti virus.


Code workflow

@microsoft-github-policy-service agree [company="{your company}"]

@microsoft-github-policy-service agree


GSSAPI Error

./lukscrow --luks-device /dev/sda6 --ldap-url "ldap://dc.domain.local" --computers-base-dn computers --unlock-key ********
Using Kerberos credential cache /tmp/tmpe1rn7bjx
Traceback (most recent call last):
  File "/root/lukscrow/./lukscrow", line 222, in <module>
    main()
  File "/root/lukscrow/./lukscrow", line 196, in main
    con = connect_ad(args.ldap_url)
  File "/root/lukscrow/./lukscrow", line 71, in connect_ad
    con.sasl_interactive_bind_s('', auth_tokens)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 476, in sasl_interactive_bind_s
    return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls),sasl_flags)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 340, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/compat.py", line 46, in reraise
    raise exc_value
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
    result = func(*args,**kwargs)
ldap.LOCAL_ERROR: {'result': -2, 'desc': 'Local error', 'ctrls': [], 'info': 'SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server not found in Kerberos database)'}

# KRB5_TRACE=/dev/stderr ldapsearch -Y GSSAPI -H ldap://dc.domain.local -s base ""
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
	additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server not found in Kerberos database)
854: Getting credentials<EMAIL_ADDRESS>-> ldap/<IP_ADDRESS>@ using ccache FILE:/tmp/krb5cc_143201001_9q7SvZ
[12648]<PHONE_NUMBER>.390855: Retrieving<EMAIL_ADDRESS>-> ldap/<IP_ADDRESS>@ from FILE:/tmp/krb5cc_143201001_9q7SvZ with result: -1765328243/Matching credential not found (filename: /tmp/krb5cc_143201001_9q7SvZ)
[12648]<PHONE_NUMBER>.390856: Retrying<EMAIL_ADDRESS>-><EMAIL_ADDRESS>with result: -1765328243/Matching credential not found (filename: /tmp/krb5cc_143201001_9q7SvZ)
[12648]<PHONE_NUMBER>.390857: Server has referral realm; starting with<EMAIL_ADDRESS>[12648]<PHONE_NUMBER>.390858: Retrieving<EMAIL_ADDRESS>-><EMAIL_ADDRESS>from FILE:/tmp/krb5cc_143201001_9q7SvZ with result: 0/Success
[12648]<PHONE_NUMBER>.390859: Starting with TGT for client realm<EMAIL_ADDRESS>-><EMAIL_ADDRESS>[12648]<PHONE_NUMBER>.390860: Requesting tickets for<EMAIL_ADDRESS>referrals on
[12648]<PHONE_NUMBER>.390861: Generated subkey for TGS request: aes256-cts/B928
[12648]<PHONE_NUMBER>.390862: etypes requested in TGS request: aes256-cts, aes128-cts, aes256-sha2, aes128-sha2, des3-cbc-sha1, rc4-hmac, camellia128-cts, camellia256-cts
[12648]<PHONE_NUMBER>.390864: Encoding request body and padata into FAST request
[12648]<PHONE_NUMBER>.390865: Sending request (1623 bytes) to DOMAIN.LOCAL
[12648]<PHONE_NUMBER>.390866: Initiating TCP connection to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390867: Sending TCP request to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390868: Received answer (319 bytes) from stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390869: Terminating TCP connection to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390870: Response was from master KDC
[12648]<PHONE_NUMBER>.390871: Decoding FAST response
[12648]<PHONE_NUMBER>.390872: TGS request result: -1765328377/Server not found in Kerberos database
[12648]<PHONE_NUMBER>.390873: Requesting tickets for<EMAIL_ADDRESS>referrals off
[12648]<PHONE_NUMBER>.390874: Generated subkey for TGS request: aes256-cts/BC7C
[12648]<PHONE_NUMBER>.390875: etypes requested in TGS request: aes256-cts, aes128-cts, aes256-sha2, aes128-sha2, des3-cbc-sha1, rc4-hmac, camellia128-cts, camellia256-cts
[12648]<PHONE_NUMBER>.390877: Encoding request body and padata into FAST request
[12648]<PHONE_NUMBER>.390878: Sending request (1623 bytes) to DOMAIN.LOCAL
[12648]<PHONE_NUMBER>.390879: Initiating TCP connection to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390880: Sending TCP request to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390881: Received answer (319 bytes) from stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390882: Terminating TCP connection to stream <IP_ADDRESS>:88
[12648]<PHONE_NUMBER>.390883: Response was from master KDC
[12648]<PHONE_NUMBER>.390884: Decoding FAST response
[12648]<PHONE_NUMBER>.390885: TGS request result: -1765328377/Server not found in Kerberos database

# KRB5_TRACE=/dev/stderr ./lukscrow --luks-device /dev/sda6 --ldap-url "ldap://dc.domain.local" --computers-base-dn computers --unlock-key ********
[15063]<PHONE_NUMBER>.177400: Getting initial credentials for<EMAIL_ADDRESS>[15063]<PHONE_NUMBER>.177401: Looked up etypes in keytab: rc4-hmac, aes128-cts, aes256-cts
[15063]<PHONE_NUMBER>.177403: Sending unauthenticated request
[15063]<PHONE_NUMBER>.177404: Sending request (189 bytes) to DOMAIN.LOCAL
[15063]<PHONE_NUMBER>.177405: Sending initial UDP request to dgram <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177406: Received answer (205 bytes) from dgram <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177407: Response was from master KDC
[15063]<PHONE_NUMBER>.177408: Received error from KDC: -1765328359/Additional pre-authentication required
[15063]<PHONE_NUMBER>.177411: Preauthenticating using KDC method data
[15063]<PHONE_NUMBER>.177412: Processing preauth types: PA-PK-AS-REQ (16), PA-PK-AS-REP_OLD (15), PA-ETYPE-INFO2 (19), PA-ENC-TIMESTAMP (2)
[15063]<PHONE_NUMBER>.177413: Selected etype info: etype aes256-cts, salt "DOMAIN.LOCALhostubuntu20.domain.local", params ""
[15063]<PHONE_NUMBER>.177414: Retrieving<EMAIL_ADDRESS>from FILE:/etc/krb5.keytab (vno 0, enctype aes256-cts) with result: 0/Success
[15063]<PHONE_NUMBER>.177415: AS key obtained for encrypted timestamp: aes256-cts/9559
[15063]<PHONE_NUMBER>.177417: Encrypted timestamp (for<PHONE_NUMBER>.186428): plain 301AA011180F32303231303231303037313830305AA105020302D83C, encrypted 470B8F0101F03EDFC8AC90D89DF5EB6D5A53C69FEF00001454E829D1B2B667B2E429FA9519C02D485968818C1C77E3100D747C5E609B0154
[15063]<PHONE_NUMBER>.177418: Preauth module encrypted_timestamp (2) (real) returned: 0/Success
[15063]<PHONE_NUMBER>.177419: Produced preauth for next request: PA-ENC-TIMESTAMP (2)
[15063]<PHONE_NUMBER>.177420: Sending request (269 bytes) to DOMAIN.LOCAL
[15063]<PHONE_NUMBER>.177421: Sending initial UDP request to dgram <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177422: Received answer (96 bytes) from dgram <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177423: Response was from master KDC
[15063]<PHONE_NUMBER>.177424: Received error from KDC: -1765328332/Response too big for UDP, retry with TCP
[15063]<PHONE_NUMBER>.177425: Request or response is too big for UDP; retrying with TCP
[15063]<PHONE_NUMBER>.177426: Sending request (269 bytes) to DOMAIN.LOCAL (tcp only)
[15063]<PHONE_NUMBER>.177427: Initiating TCP connection to stream <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177428: Sending TCP request to stream <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177429: Received answer (1510 bytes) from stream <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177430: Terminating TCP connection to stream <IP_ADDRESS>:88
[15063]<PHONE_NUMBER>.177431: Response was from master KDC
[15063]<PHONE_NUMBER>.177432: Processing preauth types: PA-ETYPE-INFO2 (19)
[15063]<PHONE_NUMBER>.177433: Selected etype info: etype aes256-cts, salt "DOMAIN.LOCALhostubuntu20.domain.local", params ""
[15063]<PHONE_NUMBER>.177434: Produced preauth for next request: (empty)
[15063]<PHONE_NUMBER>.177435: AS key determined by preauth: aes256-cts/9559
[15063]<PHONE_NUMBER>.177436: Decrypted AS reply; session key is: aes256-cts/38BB
[15063]<PHONE_NUMBER>.177437: FAST negotiation: unavailable
[15063]<PHONE_NUMBER>.177438: Initializing FILE:/tmp/tmpfqfk2yi9 with default princ<EMAIL_ADDRESS>[15063]<PHONE_NUMBER>.177439: Storing<EMAIL_ADDRESS>-><EMAIL_ADDRESS>in FILE:/tmp/tmpfqfk2yi9
[15063]<PHONE_NUMBER>.177440: Storing config in FILE:/tmp/tmpfqfk2yi9 for<EMAIL_ADDRESS>pa_type: 2
[15063]<PHONE_NUMBER>.177441: Storing<EMAIL_ADDRESS>-> krb5_ccache_conf_data/pa_type/krbtgt\/DOMAIN.LOCAL\@DOMAIN.LOCAL@X-CACHECONF: in FILE:/tmp/tmpfqfk2yi9
Using Kerberos credential cache /tmp/tmpfqfk2yi9
[15017]<PHONE_NUMBER>.217226: ccselect module realm chose cache FILE:/tmp/tmpfqfk2yi9 with client principal<EMAIL_ADDRESS>for server principal<EMAIL_ADDRESS>[15017]<PHONE_NUMBER>.217227: Getting credentials<EMAIL_ADDRESS>-> ldap/<IP_ADDRESS>@ using ccache FILE:/tmp/tmpfqfk2yi9
[15017]<PHONE_NUMBER>.217228: Retrieving<EMAIL_ADDRESS>-> ldap/<IP_ADDRESS>@ from FILE:/tmp/tmpfqfk2yi9 with result: -1765328243/Matching credential not found (filename: /tmp/tmpfqfk2yi9)
[15017]<PHONE_NUMBER>.217229: Retrying<EMAIL_ADDRESS>-><EMAIL_ADDRESS>with result: -1765328243/Matching credential not found (filename: /tmp/tmpfqfk2yi9)
[15017]<PHONE_NUMBER>.217230: Server has referral realm; starting with<EMAIL_ADDRESS>[15017]<PHONE_NUMBER>.217231: Retrieving<EMAIL_ADDRESS>-><EMAIL_ADDRESS>from FILE:/tmp/tmpfqfk2yi9 with result: 0/Success
[15017]<PHONE_NUMBER>.217232: Starting with TGT for client realm<EMAIL_ADDRESS>-><EMAIL_ADDRESS>[15017]<PHONE_NUMBER>.217233: Requesting tickets for<EMAIL_ADDRESS>referrals on
[15017]<PHONE_NUMBER>.217234: Generated subkey for TGS request: aes256-cts/3C4C
[15017]<PHONE_NUMBER>.217235: etypes requested in TGS request: aes256-cts, aes128-cts, aes256-sha2, aes128-sha2, des3-cbc-sha1, rc4-hmac, camellia128-cts, camellia256-cts
[15017]<PHONE_NUMBER>.217237: Encoding request body and padata into FAST request
[15017]<PHONE_NUMBER>.217238: Sending request (1653 bytes) to DOMAIN.LOCAL
[15017]<PHONE_NUMBER>.217239: Initiating TCP connection to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217240: Sending TCP request to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217241: Received answer (319 bytes) from stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217242: Terminating TCP connection to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217243: Response was from master KDC
[15017]<PHONE_NUMBER>.217244: Decoding FAST response
[15017]<PHONE_NUMBER>.217245: TGS request result: -1765328377/Server not found in Kerberos database
[15017]<PHONE_NUMBER>.217246: Requesting tickets for<EMAIL_ADDRESS>referrals off
[15017]<PHONE_NUMBER>.217247: Generated subkey for TGS request: aes256-cts/D031
[15017]<PHONE_NUMBER>.217248: etypes requested in TGS request: aes256-cts, aes128-cts, aes256-sha2, aes128-sha2, des3-cbc-sha1, rc4-hmac, camellia128-cts, camellia256-cts
[15017]<PHONE_NUMBER>.217250: Encoding request body and padata into FAST request
[15017]<PHONE_NUMBER>.217251: Sending request (1653 bytes) to DOMAIN.LOCAL
[15017]<PHONE_NUMBER>.217252: Initiating TCP connection to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217253: Sending TCP request to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217254: Received answer (319 bytes) from stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217255: Terminating TCP connection to stream <IP_ADDRESS>:88
[15017]<PHONE_NUMBER>.217256: Response was from master KDC
[15017]<PHONE_NUMBER>.217257: Decoding FAST response
[15017]<PHONE_NUMBER>.217258: TGS request result: -1765328377/Server not found in Kerberos database
Traceback (most recent call last):
  File "/root/lukscrow/./lukscrow", line 222, in <module>
    main()
  File "/root/lukscrow/./lukscrow", line 196, in main
    con = connect_ad(args.ldap_url)
  File "/root/lukscrow/./lukscrow", line 71, in connect_ad
    con.sasl_interactive_bind_s('', auth_tokens)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 476, in sasl_interactive_bind_s
    return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls),sasl_flags)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 340, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/compat.py", line 46, in reraise
    raise exc_value
  File "/root/.pyenv/versions/3.9.1/envs/lukscrow-env/lib/python3.9/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
    result = func(*args,**kwargs)
ldap.LOCAL_ERROR: {'result': -2, 'desc': 'Local error', 'ctrls': [], 'info': 'SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server not found in Kerberos database)'}

Solved by configuring a reverse lookup zone containing pointer (PTR) records for your domain in Active Directory DNS.


Problem converting CentOS 8.5 with MATE to Rocky Linux

I had a server running CentOS8.5.2111 with MATE updated to 1.26.0-2 on it . The reposities were pointing to vault.centos.org and yum / dnf told me everything was up to date . In addition epel and the mate repositories were also enabled. So I felt pretty confident starting a conversion to Rocky Linux . All of previous server conversions have run without any problems. This time however it failed claiming that it could not convert mate 1.26.2 to mate 1.26.2 ( ? )  . The log file is attached .

The log file did not come through, can you upload it again please and verify that it posted in your message?

Copying and pasting since it selecting doesn't seem to work :
migrate2rocky - Begin logging at Fri 23 Sep 2022 02:30:32 PM EDT.
Removing dnf cache
Preparing to migrate CentOS Linux 8 to Rocky Linux 8.
Determining repository names for CentOS Linux 8......
Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8:
Getting system package names for CentOS Linux 8CentOS Linux 8  Rocky Linux 8
appstream       appstream
powertools      devel
baseos          baseos
extras          extras
powertools      powertools
..........
Getting list of installed system packages.
Found the following system packages which map from CentOS Linux 8 to Rocky Linux 8:
CentOS Linux 8        Rocky Linux 8
centos-logos-ipa      rocky-logos-ipa
centos-backgrounds    rocky-backgrounds
centos-gpg-keys       rocky-gpg-keys
centos-logos          rocky-logos
centos-indexhtml      rocky-indexhtml
centos-linux-release  rocky-release
centos-logos-httpd    rocky-logos-httpd
centos-linux-repos    rocky-repos
Getting a list of enabled modules for the system repositories.
We will replace the following CentOS Linux 8 packages with their Rocky Linux 8 equivalents
Packages to be Removed  Packages to be Installed
centos-backgrounds      rocky-backgrounds
centos-gpg-keys         rocky-gpg-keys
centos-logos            rocky-logos
centos-indexhtml        rocky-indexhtml
centos-linux-release    rocky-release
centos-logos-httpd      rocky-logos-httpd
centos-linux-repos      rocky-repos
In addition to the above the following system packages will be removed:
centos-linux-release
centos-linux-release
Excluding modules:
libselinux-python:2.8
Found the following modules to re-enable at completion:
container-tools:rhel8
httpd:2.4
javapackages-runtime:201801
llvm-toolset:rhel8
mysql:8.0
nginx:1.14
perl-DBD-MySQL:4.046
perl-DBD-SQLite:1.58
perl-DBI:1.641
perl-IO-Socket-SSL:2.066
perl-libwww-perl:6.34
perl:5.26
php:7.2
postgresql:10
python27:2.7
python36:3.6
satellite-5-client:1.0
virt:rhel
Running dnf update before we attempt the migration.
Last metadata expiration check: 0:00:31 ago on Fri Sep 23 14:31:27 2022.
Dependencies resolved.
Nothing to do.
Complete!
Added rockyappstream repo from https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/
Added rockybaseos repo from https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/
rockyappstream                                  9.8 MB/s |  11 MB     00:01
rockybaseos                                     9.1 MB/s | 7.9 MB     00:00
Last metadata expiration check: 0:00:01 ago on Fri Sep 23 14:32:04 2022.

Importing GPG key 0x6D745A60:
Userid     : "Release Engineering<EMAIL_ADDRESS>Fingerprint: 7051 C470 A929 F454 CEBE 37B7 15AF 5DAC 6D74 5A60
From       : /tmp/tmp.622xwdZ8d9/gpg/RPM-GPG-KEY-rockyofficial

================================================================================
Package                 Arch      Version              Repository         Size
================================================================================
Installing:
rocky-backgrounds       noarch    86.2-1.el8           rockyappstream    331 k
rocky-gpg-keys          noarch    8.6-4.el8            rockybaseos        12 k
rocky-indexhtml         noarch    8.0-0.el8            rockybaseos       266 k
rocky-logos             x86_64    86.2-1.el8           rockybaseos       328 k
rocky-logos-httpd       noarch    86.2-1.el8           rockybaseos        24 k
rocky-release           noarch    8.6-4.el8            rockybaseos        21 k
rocky-repos             noarch    8.6-4.el8            rockybaseos        14 k
Removing:
centos-backgrounds      noarch    85.8-2.el8           @appstream         23 M
centos-gpg-keys         noarch    1:8-3.el8            @baseos           3.3 k
centos-indexhtml        noarch    8.0-0.el8            @baseos           505 k
centos-linux-release    noarch    8.5-1.2111.el8       @baseos            26 k
centos-linux-repos      noarch    8-3.el8              @baseos            26 k
centos-logos            x86_64    85.8-2.el8           @baseos           716 k
centos-logos-httpd      noarch    85.8-2.el8           @baseos           197 k

Transaction Summary
Install  7 Packages
Remove   7 Packages
Total download size: 996 k
Downloading Packages:
(1/7): rocky-gpg-keys-8.6-4.el8.noarch.rpm      189 kB/s |  12 kB     00:00
(2/7): rocky-backgrounds-86.2-1.el8.noarch.rpm  2.7 MB/s | 331 kB     00:00
(3/7): rocky-indexhtml-8.0-0.el8.noarch.rpm     1.6 MB/s | 266 kB     00:00
(4/7): rocky-logos-httpd-86.2-1.el8.noarch.rpm  269 kB/s |  24 kB     00:00
(5/7): rocky-release-8.6-4.el8.noarch.rpm       239 kB/s |  21 kB     00:00
(6/7): rocky-repos-8.6-4.el8.noarch.rpm         159 kB/s |  14 kB     00:00
(7/7): rocky-logos-86.2-1.el8.x86_64.rpm        1.1 MB/s | 328 kB     00:00
Total                                           2.8 MB/s | 996 kB     00:00
rockyappstream                                  1.6 MB/s | 1.6 kB     00:00
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.

Installed:
rocky-backgrounds-86.2-1.el8.noarch      rocky-gpg-keys-8.6-4.el8.noarch
rocky-indexhtml-8.0-0.el8.noarch         rocky-logos-86.2-1.el8.x86_64
rocky-logos-httpd-86.2-1.el8.noarch      rocky-release-8.6-4.el8.noarch
rocky-repos-8.6-4.el8.noarch
Removed:
centos-backgrounds-85.8-2.el8.noarch
centos-gpg-keys-1:8-3.el8.noarch
centos-indexhtml-8.0-0.el8.noarch
centos-linux-release-8.5-1.2111.el8.noarch
centos-linux-repos-8-3.el8.noarch
centos-logos-85.8-2.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch
Complete!
Last metadata expiration check: 0:00:33 ago on Fri Sep 23 14:32:04 2022.

Leaving Shell
Ensuring repos are enabled before the package swap
Enabling modules

Rocky Linux 8 - AppStream                       3.4 MB/s |  11 MB     00:03
Rocky Linux 8 - BaseOS                          2.8 MB/s | 7.9 MB     00:02
Rocky Linux 8 - Devel WARNING! FOR BUILDROOT AN 1.3 MB/s | 4.4 MB     00:03
Rocky Linux 8 - Extras                           16 kB/s |  12 kB     00:00
Rocky Linux 8 - PowerTools                      1.2 MB/s | 2.7 MB     00:02
Dependencies resolved.
Nothing to do.
Complete!
Disabling excluded modules
Last metadata expiration check: 0:00:04 ago on Fri Sep 23 14:32:58 2022.
Only module name is required. Ignoring unneeded information in argument: 'libselinux-python:2.8'
Dependencies resolved.
Package           Architecture     Version             Repository         Size
Disabling modules:
libselinux-python
Transaction Summary
Complete!
Syncing packages
Last metadata expiration check: 0:00:07 ago on Fri Sep 23 14:32:58 2022.
Error during distro-sync.
Error:
Problem: package mate-desktop-configs-1.26.0-2.el8.noarch requires mate-desktop = 1.26.0-2.el8, but none of the providers can be in
stalled

mate-desktop-1.26.0-2.el8.x86_64 does not belong to a distupgrade repository
problem with installed package mate-desktop-configs-1.26.0-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit
to prevent possible damage.

I've removed MATE and rolled back the 6 or so Rocky packages ( logos, backgrounds, release, ... ) with dnf --allowerasing swap ... ...  so that the RPM list is identical to what it was before the migrate attempt ( sans MATE and lightdm ) . dnf upgrade tells me there is nothing to upgrade so I will try another migrate2rocky later today. And then install MATE and lightdm again.
peter

migrate2rocky can't find mate-desktop, this is an epel package.  You would have installed it from epel and later disabled the epel repo for whatever reason.  Enable epel and try again.

Strike that.  It can find mate-desktop-configs which is also an epel package.  So you have somehow excluded mate-desktop from being updated, migrate2rocky is attempting to distro-sync and it needs to find mate-desktop in order to update mate-desktop-configs, but it can't so it errors out.
either remove the exclude for mate-desktop or add an exclude for mate-desktop-configs.  I recommend the former.

Hmm .  mate-desktop requires mate-desktop-configs but it did not get installed when I did the last dnf upgrade just before attempting the migrate. Nor did rpm -Va complain . Anyway - thanks for the help
peter

I went back through the dnf log files . As far as I can tell mate-desktop-configs was first introduced in 1.26.0-2 . My CentOS was upgraded to this version of MATE before the migrate attempt. Was it a case of me being one version "ahead" ?

It shouldn't have mattered.
The actual problem is this:
"mate-desktop-1.26.0-2.el8.x86_64 does not belong to a distupgrade repository"
That's saying that it can't find mate-desktop anywhere, but it does find mate-desktop-configs.
Did you leave anything out of the log?  Please attach the file /var/log/migrate2rocky.log so I can see the full log.


Typos in the Italian translation

This PR contains corrections to some small typos in the Italian translations.

some upper case words that needed not to be capitalized (italiano and Italiano)
some wrong verb tenses
other minor typos

Thanks a lot, @arialdomartini ! ❤

👍


Fix benchmarks & SWAR impl

Try fixing the SWAR implementations by re-using what is done at https://github.com/netty/netty/pull/10737
(including the micro-benchmarks)

For reference: you can use https://github.com/elastic/elasticsearch/blob/1b7f3a0eae0e1f936f3c23e9e61548e5594adcff/server/src/main/java/org/elasticsearch/common/util/ByteUtils.java#L22 to avoid using UNSAFE and perform reading in long batches, without relying on the unstable order field within the ByteBuffer.

Changed the ByteBuffer into local variable.
Results are kept as expected:
Benchmark                                         (filename)  Mode  Cnt    Score    Error  Units
FindingSemicolonBenchmark.linearScan   measurements-100K.txt  avgt   10  847,067 ± 14,452  us/op
FindingSemicolonBenchmark.swarLamport  measurements-100K.txt  avgt   10  833,276 ±  6,508  us/op
FindingSemicolonBenchmark.swarMycroft  measurements-100K.txt  avgt   10  751,737 ±  9,266  us/op
FindingSemicolonBenchmark.vectorAPI    measurements-100K.txt  avgt   10   40,798 ±  0,130  us/op

But using VarHandles added some overhead to the SWAR methods.
Results:
Benchmark                                         (filename)  Mode  Cnt    Score    Error  Units
FindingSemicolonBenchmark.linearScan   measurements-100K.txt  avgt   10  839,720 ±  4,026  us/op
FindingSemicolonBenchmark.swarLamport  measurements-100K.txt  avgt   10  955,048 ±  7,246  us/op
FindingSemicolonBenchmark.swarMycroft  measurements-100K.txt  avgt   10  859,489 ± 15,160  us/op
FindingSemicolonBenchmark.vectorAPI    measurements-100K.txt  avgt   10   41,702 ±  0,277  us/op

Diff:
diff --git a/src/main/java/com/morazow/benchmark/FindingSemicolonBenchmark.java b/src/main/java/com/morazow/benchmark/FindingSemicolonBenchmark.java
index fcf492a..142045c 100644
--- a/src/main/java/com/morazow/benchmark/FindingSemicolonBenchmark.java
+++ b/src/main/java/com/morazow/benchmark/FindingSemicolonBenchmark.java
@@ -72,6 +72,8 @@ public class FindingSemicolonBenchmark {
     }

     private static final long SEMICOLON_PATTERN = 0x3B3B3B3B3B3B3B3BL;
+    private static final VarHandle LITTLE_ENDIAN_LONG = MethodHandles.byteArrayViewVarHandle(long[].class,
+            ByteOrder.LITTLE_ENDIAN);

     private static int findFirstByteLamport(long word) {
         long input = word ^ SEMICOLON_PATTERN;
@@ -83,10 +85,9 @@ public class FindingSemicolonBenchmark {
     @Benchmark
     public void swarLamport(Measurements measurements) {
         int numOfSemicolons = 0;
-        final ByteBuffer byteBuffer = ByteBuffer.wrap(measurements.bytes).order(ByteOrder.LITTLE_ENDIAN);
         int i = 0;
         while (i + Long.BYTES <= measurements.bytes.length) {
-            long word = byteBuffer.getLong(i);
+            long word = (long) LITTLE_ENDIAN_LONG.get(measurements.bytes, i);
             int index = findFirstByteLamport(word);
             if (index < Long.BYTES) {
                 i += index + 1;
@@ -114,10 +115,9 @@ public class FindingSemicolonBenchmark {
     @Benchmark
     public void swarMycroft(Measurements measurements) {
         int numOfSemicolons = 0;
-        final ByteBuffer byteBuffer = ByteBuffer.wrap(measurements.bytes).order(ByteOrder.LITTLE_ENDIAN);
         int i = 0;
         while (i + Long.BYTES <= measurements.bytes.length) {
-            long word = byteBuffer.getLong(i);
+            long word = (long) LITTLE_ENDIAN_LONG.get(measurements.bytes, i);
             int index = findFirstByteMycroft(word);
             if (index < Long.BYTES) {
                 i += index + 1;

Thanks for the feedback @franz1981, I have added your suggestion in this PR https://github.com/morazow/java-simd-benchmarks/pull/2

measurements.bytes is accessing bytes from measurements: you should save var bytes[] = measurements.bytes out of such loop.
Not only: ideally you want to use native endianess, if possible.
Another thing: make sure findfirstByteLamport to be inlined, by PrintInlining and searching if is inlined.
yet another: try using a "counter loop" ie use a for loop which is clearly using int variables and a finite number of iterations, in a very clear way.

Ohh great!
I think I misunderstood you, yes saving bytes to local variable makes sense.

try having random inputs, if possible, by:

I saw similar method in Richard Startin's blog, thought maybe too much for this benchmark. But I am going to check it again, using single predefined file skews the benchmark for sure.


Automate create composite primary keys

One important pre-requisite for migration to citus is for all the models which are inherited from TenantModel, we need to replace the primary key on id column to a composite primary key (tenant_id,id). As we did this for foreign keys in this #16  (specifically in this file), we could do automate dropping single primary keys and creating composite primary keys.

This would be really useful for me, I don't like having to rely on manually updating my migrations. A naive version of this I've tried is:


Feature: tests

add Karma, Mocha and Chai
added a useless test
added travis settings

Issue getting Chrome to start in Travis. Too tired to fix, continue here tomorrow:

https://stackoverflow.com/questions/19255976/how-to-make-travis-execute-angular-tests-on-chrome-please-set-env-variable-chr

Might as well add circleCI too. Tomorrow.

CircleCI will be implement in separate task


Add Window Utils.js

This is my first PR

sigh There goes another extension I was already working on...

sigh There goes another extension I was already working on...

That's ok! Once this extension is merged you can make a pull request to add your blocks :)

Why was this closed?

@NexusKitten I will be reuploading it, me and BlueDome collaborated on a new one, with his one, and a ton of additions I added, such as new blocks, an icon, a new color scheme, and more.


Change the license to Apache 2.0

We should switch the license to Apache to protect the software more in the future. Apache has indeed the added "software-patent-abusers-self-destruct" clause, and for the rest it is the same as MIT in every practical way.
This way, any new developments will be more protected, and the old forks and releases will always remain available under MIT.
Update the NOTICE and .zenodo.json files accordingly.

Kamino closed and cloned this issue to neurogym/neurogym


docs: Remove misleading rule sources

Summary
This makes the documentation say that this rule is the "same as" the eslint versions:

But it's not as it doesn't support the patterns option, so this is misleading. Maybe there should be something saying this is a more limited version of those? Not sure how to support that in the docs though, suggestions welcome.

Test Plan
No tests, just a documentation change.

It is the same rule though. They enforce the same concept. We generally don't implement options for rules without users providing use cases, and so far no one has provided one AFAIK.
This metadata is also used by the migrate command, so removing the rule sources would affect the UX of migrating from eslint.

How would the migrate command handle the patterns option in the originals? Does it error on unsupported options or just silently throw them away?


[Bug] copyToClipboard action does not work with multiline text

Summary
Allow for users to copy multi-line text.
Message from cinemawern on Discord:
For example: {{copyToClipboard('First Line\n Second Line?')}}
So it gets copied as multiline:
First Line
Second Line etc..

@hetunandu looks like a big miss in the action

Closing since it looks like it's related to #2862


From FP #1:  Radar hit rates

Kardel posted:
Thanks great, another issue tho, Is it normal that Radar guidance misses 90% of times?
Ive testing on both static and moving targets and it seems to allways miss, especially when too close or too far. Ive also found contraptions moving fast (not meaning SANICFAST, but you get it, like 80km/h) missing by so much. Any way it can be improved?
And yes, Im posting this here because I dont have any other ways of contacting you.

It is true that the guidance code of the missiles has trouble with fast-moving targets (~60 km/h and up), which comes down to how it calculates the point of impact. There is no real fix for this other than finding a completely different method of calculating the trajectory altogether.
Here's a bit of insight on what happens in the two scenarios you mentionned:

When a target is very close, the missile will have little time to build up speed, which is necessary to steer. If it's too slow, it can't turn quickly enough to hit the target and will miss.
When the target is too far on the other hand, the missile will have ran out of propellant and will use its remaining speed to keep itself moving towards the target. It will essentially glide through the air with its nose facing upward, but will lose a lot of speed in the process. If this gliding phase lasts for too long, the missile will be too slow to maneuver, and will start falling until it detonates on impact.

This is true for both moving and static targets, as they're the two "extremes" of the spectrum. Inbetween them, however, is a wide span of chances for your missile to reliably hit its target. Try hitting a static target at 200-300 meters on full propellant, and you should be able to reliably hit with every guided missile type.
Keep in mind that some missiles are best suited for long-range static targets (mostly SAMs), while others are designed for short-range fast-moving targets (AAMs). No missile is really suited for all scenarios, which is why you have to pick the right type for your requirements.

Nice, added to https://github.com/Bubbus/ACF-Missiles/wiki/Questions---Answers.  Going to put this somewhere prominent.


Gorm does not support MSSQL Server

What version of Go are you using (go version)?
1.11.4
Which database and its version are you using?
MSSQL Server and version is 2017 via docker
Error
mssql is not officially supported, running under compatibility mode.
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33]  mssql: Incorrect syntax near 'AUTO_INCREMENT'.
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33]  [0.06ms]  CREATE UNIQUE INDEX uix_days_name ON "days"("name")
[0 rows affected or returned ]
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33]  mssql: Incorrect syntax near 'AUTO_INCREMENT'.
2019/04/13 20:28:33 mssql: Incorrect syntax near 'AUTO_INCREMENT'.
Thank for your prompt response

Your issue may already be reported! Please search on the issue track before creating one.
What version of Go are you using (go version)?
1.11.4
Which database and its version are you using?
MSSQL Server and version is 2017 via docker
Error
mssql is not officially supported, running under compatibility mode.
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33] mssql: Incorrect syntax near 'AUTO_INCREMENT'.
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33] [0.06ms] CREATE UNIQUE INDEX uix_days_name ON "days"("name")
[0 rows affected or returned ]
(/home/smith/go/src/github.com/smithaitufe/games/backend/db/migration.go:48)
[2019-04-13 20:28:33] mssql: Incorrect syntax near 'AUTO_INCREMENT'.
2019/04/13 20:28:33 mssql: Incorrect syntax near 'AUTO_INCREMENT'.
Thank for your prompt response

same question

mssql is not officially supported, running under compatibility mode.

mssql is not officially supported, running under compatibility mode.

@TomLiu-GitHub Thanks, @smithaitufe  I solved this issue by exec go get github.com/jinzhu/gorm/dialects/mssql, you can try this, please close this issue if it worked on your environment.

haaaaaaa,After I set up the TCP connection, it worked well.


Allow newer versions of packageurl, allow python 3.11

The packageurl API that is consumed by this project is unchanged since 0.9, so we should tolerate newer versions, which allows ossindex-lib to be used together with cyclonedx.
This library also works fine with python3.11, so support that in poetry and tox.

Fixes https://github.com/sonatype-nexus-community/ossindex-python/issues/20


TypeError: colors.bgblack is not a function in liferay-theme-tasks/lib/upgrade/7.0/upgrade.js:482:30)

Steps to reproduce:

yo liferay-theme
choose version 7.0
gulp kickstart
choose Classic
gulp upgrade

I receive the following error:
[07:16:57] Error: something went wrong during the upgrade task, reverting changes.
[07:16:57] { TypeError: colors.bgblack is not a function
at logBuffer (/home/maartenl/theme70/karchan-theme/node_modules/liferay-theme-tasks/lib/upgrade/7.0/upgrade.js:482:30)
at Gulp. (/home/maartenl/theme70/karchan-theme/node_modules/liferay-theme-tasks/lib/upgrade/7.0/upgrade.js:174:3)
at module.exports (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/index.js:134:8)
at runNextSet (/home/maartenl/theme70/karchan-theme/node_modules/run-sequence/index.js:86:16)
at Gulp.onTaskEnd (/home/maartenl/theme70/karchan-theme/node_modules/run-sequence/index.js:75:5)
at Gulp.emit (events.js:187:15)
at Gulp.Orchestrator._emitTaskDone (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/index.js:264:8)
at /home/maartenl/theme70/karchan-theme/node_modules/orchestrator/index.js:275:23
at finish (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/lib/runTask.js:21:8)
at ChildProcess.cb (/home/maartenl/theme70/karchan-theme/node_modules/orchestrator/lib/runTask.js:29:3)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
(if I comment out the line in the upgrade.js file, the upgrade completes without problems, but I don't know what that breaks...)

Thanks for reporting, @maartenl, I think the colors dependency must have updated, which now brings bgBlack instead. We fixed this in 8.x.x but forgot to do it in 7.x.x. We'll look into this asap.

I'm using 8.1.1 but still getting the same exception.
Here is what I did
1. npm install --save-dev<EMAIL_ADDRESS>2. gulp upgrade
I tried the lower version 8.0.9 but still getting the same error.


resampling_when breaks when zooming in

import hvplot.pandas
import panel as pn
import pandas as pd

df = pd.DataFrame({
    "lon": [45.5531, 46.4731, 47.4731, 48.41234],
    "lat": [34.5531, 35.4731, 36.4731, 37.41234],
})

pn.serve((df.hvplot.points("lon", "lat", rasterize=True, resample_when=1000)))

WARNING:bokeh.core.validation.check:W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: figure(id='p1110', ...)
WARNING:param.dynamic_operation: Callable raised "ValueError("conflicting sizes for dimension 'lon': length 730 on the data but length 365 on coordinate 'lon'")".
Invoked as dynamic_operation(height=300, scale=1.0, width=365, x_range=(32.55793907008026, 49.477519405740225), y_range=(17.986703041165143, 30.624333539380807))
Traceback (most recent call last):
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/plotting/util.py", line 293, in get_plot_frame
    return map_obj[key]
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 1216, in __getitem__
    val = self._execute_callback(*tuple_key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 983, in _execute_callback
    retval = self.callback(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 552, in __call__
    return self.callable()
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/overlay.py", line 34, in dynamic_mul
    element = other[args]
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 1216, in __getitem__
    val = self._execute_callback(*tuple_key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 983, in _execute_callback
    retval = self.callback(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 552, in __call__
    return self.callable()
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/util/__init__.py", line 1038, in dynamic_operation
    key, obj = resolve(key, kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/util/__init__.py", line 1027, in resolve
    return key, map_obj[key]
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 1216, in __getitem__
    val = self._execute_callback(*tuple_key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 983, in _execute_callback
    retval = self.callback(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 552, in __call__
    return self.callable()
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 197, in dynamic_mul
    self_el = self.select(HoloMap, **key_map) if self.kdims else self[()]
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 1216, in __getitem__
    val = self._execute_callback(*tuple_key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 983, in _execute_callback
    retval = self.callback(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/spaces.py", line 581, in __call__
    ret = self.callable(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/util/__init__.py", line 1039, in dynamic_operation
    return apply(obj, *key, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/util/__init__.py", line 1031, in apply
    processed = self._process(element, key, kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/util/__init__.py", line 1013, in _process
    return self.p.operation.process_element(element, key, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/operation.py", line 194, in process_element
    return self._apply(element, key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/operation.py", line 141, in _apply
    ret = self._process(element, key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/operation/datashader.py", line 1542, in _process
    agg = rasterize._process(self, element, key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/operation/datashader.py", line 1522, in _process
    element = element.map(op, predicate)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/data/__init__.py", line 196, in pipelined_fn
    result = method_fn(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/data/__init__.py", line 1213, in map
    return super().map(*args, **kwargs)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/dimension.py", line 695, in map
    return map_fn(self) if applies else self
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/operation.py", line 214, in __call__
    return self._apply(element)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/core/operation.py", line 141, in _apply
    ret = self._process(element, key)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/holoviews/operation/datashader.py", line 374, in _process
    xarray = xr.DataArray(np.full((height, width), empty_val),
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/xarray/core/dataarray.py", line 443, in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/xarray/core/dataarray.py", line 188, in _infer_coords_and_dims
    _check_coords_dims(shape, new_coords, dims_tuple)
  File "/Users/ahuang/miniconda3/envs/hvplot/lib/python3.10/site-packages/xarray/core/dataarray.py", line 126, in _check_coords_dims
    raise ValueError(
ValueError: conflicting sizes for dimension 'lon': length 730 on the data but length 365 on coordinate 'lon'

I think this is caused by pixel_ratio.


Update play-test, routes-compiler to 2.8.8

Updates

com.typesafe.play:play-test
com.typesafe.play:routes-compiler

from 2.7.9 to 2.8.8.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.play" } ]

labels: library-update, semver-minor

Superseded by #431.


TypeError: Cannot read properties of undefined (reading 'load')

Hi,
I have configured aws-azure profiles on windows and while login to aws via cmd I am detting below errors:
TypeError: Cannot read properties of undefined (reading 'load')
at Object._parseRolesFromSamlResponse (C:\Users\pratiksha.shintre\AppData\Roaming\npm\node_modules\aws-azure-login\lib\login.js:663:40)
at Object.loginAsync (C:\Users\pratiksha.shintre\AppData\Roaming\npm\node_modules\aws-azure-login\lib\login.js:379:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I have tried all solutions available but still its not working.

I'm seeing the same error for all node versions 18 and up.

I'm seeing the same error for all node versions 18 and up.

Try moving over to the aws-azure-auth package as a replacement


[BUG] CI on TiDB master failed

It still works at
https://ci2.pingcap.net/blue/organizations/jenkins/tispark_ghpr_integration_test/detail/tispark_ghpr_integration_test/1212/pipeline/

First break took place at
https://ci2.pingcap.net/blue/organizations/jenkins/tispark_ghpr_integration_test/detail/tispark_ghpr_integration_test/1213/pipeline

closed by https://github.com/pingcap/tispark/pull/2598


[incubator/kafka] allow setting statefulset serviceaccount

What this PR does / why we need it:
When hosting custom kafka images where docker auth is required this will allow a service account to be used, which can have a custom image pull secret
Which issue this PR fixes
n/a
Special notes for your reviewer:
Many kafka users need to build their own kafka images to inject the cruise-control jars.
This allows them to do that, or just pull their own custom kafka images from a private repo.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X ] DCO signed
[X ] Chart Version bumped
[X ] Variables are documented in the README.md
[X ] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @benjigoldberg

@smcavallo thanks for another useful PR!
/ok-to-test

/assign @benjigoldberg
(I had to update the version in Chart.yaml - there was a conflict due to another merge to master of this chart)

/assign @benjigoldberg

/lgtm


fix(webpack/karma): add react/addons to externals

resolves #706

Current coverage is 70.88%

Merging #707 into master will not affect coverage as of a3fb10d

@@            master    #707   diff @@
======================================
  Files           12      12
  Stmts           79      79
  Branches         0       0
  Methods          0       0
======================================
  Hit             56      56
  Partial          0       0
  Missed          23      23

Review entire Coverage Diff as of a3fb10d

Powered by Codecov. Updated on successful CI builds.

Thanks!


Some Test suites accidentally reference the example.dart file

Two test suites are referencing "example.dart" which is the solution to the given problem. Nothing is leaked to the user, because the file is not included when users fetch the problem.
But we shouldn't include errors into our user's test suites, so we should remove it.
@exercism/dart or @fwip care to check me over?

Looks good. 👍