Issue on crawl with login

I have an issue when I want to use my username&password to crawl a private profile which I have followed.
I get this error:
Message:                                                                          username or password is wrong
however I've changed my password and tried again didn't work. I've disabled my two-factor authentication and still doesn't work!
Any idea about it?

@gharary I guess you are trying to run  "crawl_profile_with_login.py" am I right? If yes its because
Settings.login_username = 'my_insta_account'
Settings.login_password = 'my_passwort_xxx'
maybe you didn't change this one and you changed below which is in "settings.py" :
login_username = ''
login_password = ''
@timmoh that's what I'm talking about in that issue which I opened it makes confusion even for us which developed some parts! my suggestion is to delete "crawl_profile_with_login.py" and make the user enter login username & password in settings.py and only run "crawl_profile.py" hope I made my point.


How can sanic keep handle request even if connection is closed ?

Is your feature request related to a problem? Please describe.
I have some post request handler, sometimes i saw the request handler is cancelled even if the handler fucntion was executed on half way.
for example: save some data to dbs, but the rest of code is not executed because of cancellation, this is undesirable because it causes data unconsistency in db
Describe the solution you'd like
What can i do to prevent request handler fucntion be cancelled ? i have read the related issue, but i didn`t find any solutions
sanic version: 18.12.0
python: 3.7

Hello, @Elune0syh !
Just for clarification, you have some workflow inside a handler and would like to have everything ran, even though the connection could be closed at any time and no response generated whatsoever?

I was thinking that there might be something inside the call that is causing the async call to timeout, personally.


Azure CI pipelines with huggingface model caching

Supersedes #72.
Still a WIP; marked as ready to enable CI for this PR.

Closing this PR as we'll be moving to GitHub Actions for our CI anyway.


WP Stateless Gravity Forms Addon Fatal Error

I activated your new Gravity Forms addon, but immediately got this new fatal error:
PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, stdClass given in /public/wp-content/plugins/wp-stateless-gravity-forms-addon/class-gravity-forms.php:93
I looked at line 93 using strpos and edited line 92 from this:
if (empty($v)) continue;
to:
if (empty($v) || !is_string($v)) continue;
I tested this out and Gravity Forms worked again like normal.
Not sure if this would be the correct fix or not, but please check into this fatal error. Thanks.

Hello @gravitycerts
Can you please provide us information about your environment?
You can find this information on the WP-Stateless Settings page, tab Status.
Media -> Stateless Settings -> Status tab.

Hello @gravitycerts ,
Thank you for your feedback. we included the fix into our new release.


Expand Data Decoding strategies to raw Data and Decodable

Hello all,
In #204, @zachrwolfe brought up the idea of allowing raw Data access to the returned data response from the Twitter API and also adding support for Decodable. Unfortunately, due to my other commitments, I let the PR slip through and it was closed. But, I think it is actually a great time to start discussing possible changes to the Swifter API to expand and take advantage of a lot of the new features that Swift has since then introduced.

Currently, Swifter works by having its own JSON wrapper that it returns to the client with; and does not allow the client to access the raw Data that is immediately returned by the Twitter API. In Swift 4, the language now includes the protocol Codable, which allows the client to create type-safe encoders/decoders for their data and supports JSONDecoding out-of-the-box. However, since Swifter is, at the end of the day, a API client wrapper, I was against having a data model to decode all of the JSON data within Swifter as:

The apps/clients may have their own model, and it still means that the model (whether JSON or a Decodable-struct within Swifter) is duplicated and needs to be copied to the end-result
Twitter's API could change, and since Codable is a type-safe model, any changes to the JSON declaration by Twitter would theoretically break all clients using Swifter without the client realizing (as it would just start throwing decodable errors).

Goals

Add support for accessing the raw Data
Add support for third-party decoding
Maintain existing API without breaking changes (if possible)
Don't duplicate codepaths.

Possible Solutions

In #204, @zachrwolfe introduced the idea of replacing successHandler with a rawSuccess handler that leaves it up to the end-user to handle the data. I think this is a fine solution but breaks goal 3 above, as we would be replacing every API in Swifter with a new handler.

Pros: Makes it very easy to decode into whatever type the user needs
Cons: Breaks existing API

Add data property in JSON type to allow the app-client to then decode into whatever data model they need.

Pros: Doesn't break existing API, merely an additive change
Cons: Not efficient (converting to JSON → then converting back into Data)

To be added...

Notes
There are still a lot to think about how we can shape this API while maintaining the goals for this proposal. I'll update the post as discussions happen.

In #204 I explained that for my fork, I wrote a transpiler that read in an idiosyncratic specification of the Twitter API and output Swift code. I admit this was totally overkill, haha, but I don't think code generation in a more restricted form should be ruled out. Specifically, a better API could be designed that surfaces the raw data (for example, replacing successHandler with rawSuccess, or a more functional Promise-based approach as I settled on for my aforementioned private fork, to give just two possibilities), then we could use Sourcery or some other code generator to generate the old API in terms of the new one. The old API could be deprecated with a suggestion to use the new methods, or it could stay as-is.
At first blush this would seem to break goal 4, but I think the increase in the size of hand-written code as a result of adding the meta-program would likely be minimal. Worth considering I think, anyway. :)

This seems incredibly complicated.
Simplicity should be the key.
  What's the actual goal here?  Is there a much, much simpler solution guys?

@smhk I don’t appreciate your tone. If you’re aware of a simpler solution that can achieve the goals stated by @meteochu above, please share.

+1 in possible solution #2, even though it is a bit backwards.


The capital importance of this project

Hello @illiliti
I found this project only after a few days experimenting with UDEV alternatives, which took me to BusyBox's MDEV, which in turn lead me to a libudev alternative to use along with MDEV.. and here I am.
I have just cloned the repo, and will build this piece of software today.
Just wanted to express how important this is: UDEV is now compromised because of the user-hostile people and model behind it's development (and it's now forced dependency on SystemD), EUDEV is dead... and libudev needs one or the other, so this project needs to live on so MDEV can be a libudev alternative in the future.
Thanks for trying, thanks for fighting these SystemD/UDEV anti-user corporations.
This is not an issue and can be closed. Just wanted you to know that I know.

https://github.com/eudev-project/eudev eudev is alive

@l29ah So, does that mean that eudev is going to be developer further into the future now???? :O

@l29ah pretty much dead https://bugs.gentoo.org/913702


Why not support IE9

Because IE9 does not support FileReader API according to this. This components depends on FileReader API to read files.

Terriable, Do you have some suggestions about this? we need support IE 9.

As you know, there are two ways in which vue-croppa can read files.

One is by using FileReader API to read the file the user chooses.
Another one is by directly using the <img> element passed through "initial" slot.

Now that IE 9 doesn't support FileReader, my suggestion is
Method 1: Use a FileReader polyfill. I found these: moxie, FileReader, dropfile. I haven't tried any of them though. If they can help make FileReader api syntax work as native, then you can just go with the (1) approach.
Methad 2: If the polyfill doesn't work or you don't want to use them, then you have to use the (2) approach. You need to somehow get the data url or remote url of the file, apply it to the initial slot <img> element. And don't forget to call refresh() after that.
<croppa v-model="myCroppa" @file-choose="onFileChoose">
  <img :src="imageUrl" slot="initial">
</croppa>

methods: {
  onFileChoose(file) {
    var url = somehowGetTheUrlFromFile(file);
    this.imageUrl = url;
    this.myCroppa.refresh(); // don't forget to call refresh() after changing initial image
  }
}

Try this: FileToDataURI (A cross-browser solution to read a local file and provide the base64 encoded content)

Awesome! Very thanks!

More framework needs Flash Support.


fix(build): use alternate plugin for bintray deployment

PR summary
This PR fixes our bintray deployment issues by using an alternate maven plugin for deployment.
Fixes: n/a
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[x] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

:tada: This PR is included in version 0.2.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


User roles in /user REST API for current user

Right now current user roles are not returned in the /users REST API. As a consequence clew is using   hacks (specific for concrete deployment) to get information if user is an admin or developer. To correct this situation and create generic solution we should add roles element into UserSerializer. roles element should be filled only for current_user
/cc @dharezlak

@dharezlak required changes deployed into development.


Provide accessibility

At least for: play, pause and mute  we can start with the basic aria-label
Thanks to @bernardocamilo

For the SVGS https://www.sitepoint.com/tips-accessible-svg/

An real example https://www.paypal-engineering.com/2014/09/05/introducing-an-accessible-html5-video-player/

Has there been any progress on this issue?  The WAVE extension, http://wave.webaim.org/extension/, for the Google Chrome browser reports three accessibility errors.  The play/pause, full screen, and another button does not have descriptive text.

@dovematrix unfortunately, I don't think so 😞

Just submitted a PR to at least appease WAVE with some simple aria-labels


Bugfix: builds disabled by CODEGEN=OFF should not be installed

I believe it makes sense to disable the install step when the build has been disabled by gRPC_BUILD_CODEGEN=OFF.
at least it fixes my build on Android.
Resolves #16856.

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.
After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

User @JonasVautherin isn't covered by a CLA. They will need to complete the form at https://identity.linuxfoundation.org/projects/cncf

Regards,
CLA GitHub bot

CLA should be signed.

Am I missing a step for the CI to trigger the build?

CMakeLists.txt is generated file, the template must be updated instead.
https://github.com/grpc/grpc/blob/master/CONTRIBUTING.md#generated-project-files

@jtattermusch: I don't seem to be able to read the full log on the "Kokoro" build (I only see 37 lines, and cannot scroll down). Would there be a way for me to get that log? It seems like all the other tests pass.

The full error log is here: https://source.cloud.google.com/results/invocations/9b29ac52-d6fc-44d0-b300-db026bbcdf1a/log (you should be able to see).
It seems to be an infrastructure failure not related to this PR.

Known failures:
https://github.com/grpc/grpc/issues/13379


Sparse bit vector

If you'll permit me to ask a question.
If I understand it correctly, RsVec is not sparse; it's going to be on the order of the amount of bits to be stored plus some overhead to support rank and select. This makes it good as base for balanced parentheses.
To support tags in trees I also find myself in need of a sparse bit vector that supports rank and select. This is because each different tag has its own bitvec the same length as the BP bitvec, where a bit if set is the tag is in used for that node index. So typically only a few bits will be set compared to the bits unset. Do you know of a good Rust implementation of a sparse bitvec that supports these features?

I know that RsDict does compression, so this might qualify. sucds also has SArray for sparse bit vectors.

Thank you! I was also curious whether I could use a wavelet matrix for this purpose. I don't really understand the purpose of wavelet matrixes yet, but effectively for each parentheses in the parentheses in the BP array, I associate a tag from an alphabet of tag ids. I then need the following operations to be fast:

give me the tag id at index i
rank and select for tag ids

It looks like it can store this information rather compactly, so perhaps it's in fact the right data structure for this purpose?

Wavelet matrices do give you rank/select for arbitrary alphabets in O(s) and can reconstruct any letter of the input text in O(s) as well, where s is the bit-length of your alphabet.
The required space is exactly the same as the input sequence (the wavelet matrix just rearranges the input bits), plus o(n) extra space as required by the bitvectors.
If you don't keep the input sequence, then the space overhead is manageable: essentially O(n) with a factor below 2.
Whether rank/select on your tag alphabet is fast, you'd need to test in practice. The theoretical runtime is fast, but say you have a 16-bit alphabet, it requires 16 rank queries, which is a lot when compared to memory lookups, especially because you are almost guaranteed to have 16 cache misses for that.
The sixteen cache misses can be cut in half when the underlying bit vector supports queries over 10 and 11 patterns, which is why I want that feature in the future.

The alphabet size in this case is on the order of how many different xml tags there are in an XML file, * 2 (separate symbols for open/ close versions of the tag). A couple of hundred tags is already quite a decent amount.
What do you mean by "you can reconstruct a letter"? Is that the get() indexing operation? As I was hoping it could do this in constant time.
I can experiment and compare it with an array of sparse bit arrays for rank/select supplemented by a main vector storing the tags for get().

reconstruct a letter

The Wavelet matrix technically encodes the input sequence (for example a string, or a sequence of numeric values from a fixed range). It doesn't store the sequence explicitly but can reconstruct any letter of the sequence in O(s), so you don't need to store the sequence in addition to the wavelet matrix. It does not reconstruct letters in constant time, however.

As an update to this; I have now implemented the "associate tags with tree" functionality both with WaveletMatrix as well as with Sarray. But I haven't compared performance yet (though it strikes me that the sarray version may be faster), and constructing an actual tree from XML awaits my fm-index work where I'm currently overwhelmed. :)

Using a wavelet tree as a sparse bit-vector is probably possible using the approach you described, but I'd be very surprised if the performance was even close to a bit-vector implementation, let alone a sparse-bit-vector implementation.
If you need both libs and need to convert between the vectors, it might be a good idea to add a feature to vers that can convert them efficiently.


Improve TypeScript hinting for props with know string literals

🚀 Feature Proposal
It's possible to get better TypeScript hinting for props like category and appearance on the Text component by using a this trick:
https://github.com/microsoft/TypeScript/issues/29729#issuecomment-505826972
It basically comes down to using a union type
type Category = ('h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6') | (string & {})

const category1: Category = "h1" // works
const category2: Category = "whatever" // also works

Motivation
Implementing this small change would enable developers to have better intellisense support in their editors.

@hrastnik thanks for the proposal. It looks like we have it working properly already, don’t we?
I don’t experience any intellisense issues when using WebStorm / VS Code

I don't get recommendations for "h1" "h2" etc. Is there something wrong in my config?

@hrastnik thanks for the proposal. It looks like we have it working properly already, don’t we?
I don’t experience any intellisense issues when using WebStorm / VS Code

I haven't tested it, but the code already contains these typings. I'm guessing @hrastnik is using v4, I remember back then those typings were missing but I didn't miss them enough to open an issue 😅

The code contains the typings in the form
type Category = "h1" | string
In TS, this is equivalent to type string so no hint is provided.
Check the linked thread from the issue.

@hrastnik hm, yep. It doesn't seem to work in VS Code, sorry for the wrong info :) I guess WebStorm does some internal magic on this.

Your solution works pretty well, thanks for pointing!
Would you like to open a PR on this? It would be nice to do the same for the properties of other components.

Hey! Great find! I guess WebStorm is using a different TS engine? I stopped using it a very long time ago 😅


Inlcude Ubuntu 20.04 in GPU Support Linux Setup

URL(s) with the issue:
GPU Setup -- Linux setup
Description of issue (what needs changing):
Clear description
The documentation for adding GPU support has descriptions for ubuntu 18.04 and 16.04 but not ubuntu 20.04. It's been a while since ubuntu 20.04 has been released and I think adding the instructions for ubuntu 20.04 will be helpful. I followed the article Installing TensorFlow GPU in Ubuntu 20.04 to set up GPU support on my system. Adding something along the lines would be great.
Submit a pull request?
Are you planning to also submit a pull request to fix the issue?
I'm willing to work on this.

@Harsh188 Are you planning to submit a PR to update the docs? Thanks!

@jvishnuvardhan Yep. I'll do this shortly. I'm not sure how this will change with TF 2.4 since CUDA 11 will be supported. I've been having trouble myself trying to get TF to use my RTX 3080.

On the official Nvidia CUDA toolkit 10.1 archive, there is no support for ubuntu 20.04 which makes me think that it's not recommended to install CUDA 10.1 for Ubuntu 20.04. However, certain articles exist that show you how to do it. I followed one of these articles hoping that it would work but when I ran tf.config.list_physical_devices('GPU') it resulted in an error.
I was recommended to use tf-nightly, which works with CUDA 11.1 and is supported on ubuntu 20.04. I'm not too sure when TF 2.4 will be released and if we should bother including a GPU installation doc support for ubuntu 20.04 since this issue will be resolved with TF 2.4.
@mihaimaruseac  could you comment on this topic?

TF 2.4 is in the release phase now, we already cut the branch

In that case, I think it's best to wait.


Move lookupApi into apiManager

Don't export kube-api-parse from kube-api (cir-deps)

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>part of splitting apart ban-cir-deps

Not sure if this is related to something in this chain of PRs:
https://user-images.githubusercontent.com/40840436/128207314-3987e00f-aa33-43c7-958e-1c280bc35d13.mov
Clicking on a definition sometimes brings up the details page, when it should bring up the list of CRD instances?

@jim-docker Do you mean that it is strange that the drawer opens when you click the row near the name of the CRD but opens the list of resources if you click the name?
I think that has always been the situation.

@jim-docker Do you mean that it is strange that the drawer opens when you click the row near the name of the CRD but opens the list of resources if you click the name?
I think that has always been the situation.

Ah, I see, I was clicking just below the word "Prometheus", such that it wasn't highlighted (wasn't white instead of blue), hence the details came up

Yes I agree, that it is a bit of a bad design and should probably open the list of resources when clicking that entire cell (and not just the text), but that is for a different PR.


jest.mock hoisting seems not working

Below code snippet with mock not working:
import EventEmitter from 'events'
import ProgressPrinter from '@/src/validators/progressPrinter'
import { PARSE_EVENTS } from '@/src/types/events'

describe('ProgressPinter', () => {
  it('normal case', done => {
    const mockStart = jest.fn(function() {
      return this
    })
    const mockSucceed = jest.fn()

    const texts: string[] = []

    const mockOra = jest.fn(() => {
      console.log('sdfdsfdsfs')
      return {
        start: mockStart,
        set text(text: string) {
          texts.push(text)
        },
        succeed: mockSucceed
      }
    })

    jest.mock('ora', () => {
      return jest.fn().mockImplementation(mockOra)
    })
    const emitter = new EventEmitter()
    new ProgressPrinter(emitter, 'testType').start()

    setTimeout(() => {
      expect(mockOra).toBeCalledWith('Parsing testType 0%')
      expect(mockStart).toBeCalled()
      expect(mockSucceed).toBeCalled()
      expect(texts).toEqual([
        'Parsing testType 50.0% => src/locales/zh-CN.ts',
        'Parsing testType 100.0% => src/locales/en-US.ts'
      ])

      done()
    }, 500)
  })
})

but following works:
const mockStart = jest.fn(function() {
  return this
})
const mockSucceed = jest.fn()

const texts: string[] = []

const mockOra = jest.fn(() => {
  console.log('sdfdsfdsfs')
  return {
    start: mockStart,
    set text(text: string) {
      texts.push(text)
    },
    succeed: mockSucceed
  }
})

jest.mock('ora', () => {
  return jest.fn().mockImplementation(mockOra)
})
import EventEmitter from 'events'
import ProgressPrinter from '@/src/validators/progressPrinter'
import { PARSE_EVENTS } from '@/src/types/events'

describe('ProgressPinter', () => {
  it('normal case', done => {
    const emitter = new EventEmitter()
    new ProgressPrinter(emitter, 'testType').start()

    setTimeout(() => {
      emitter.emit(PARSE_EVENTS.START, ['/src/locales/zh-CN.ts', '/src/locales/en-US.ts'])
    }, 10)

    setTimeout(() => {
      emitter.emit(PARSE_EVENTS.PARSED, '/src/locales/zh-CN.ts')
    }, 50)

    setTimeout(() => {
      emitter.emit(PARSE_EVENTS.PARSED, '/src/locales/en-US.ts')
    }, 100)

    setTimeout(() => {
      // expect(mockOra).toBeCalledWith('Parsing testType 0%')
      expect(mockStart).toBeCalled()
      expect(mockSucceed).toBeCalled()
      expect(texts).toEqual([
        'Parsing testType 50.0% => src/locales/zh-CN.ts',
        'Parsing testType 100.0% => src/locales/en-US.ts'
      ])

      done()
    }, 500)
  })
})

Expected behavior
The first case should work as hoisting feature is mentioned.
versions
"jest": "^24.9.0",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3"
Even the doc jestmock-hoisting seems out-dated, i haven't seen configuration about skipBabel anywhere, and no idea where to put it

hi @leftstick , I think jest.mock hoisting works. In your first example, you put
jest.mock('ora', () => {       return jest.fn().mockImplementation(mockOra)     })
inside describe. I think this is the reason why hoisting doesn't work comparing to the 2nd example.
I think to answer this, you need to put a question on Jest repository because as far as I know, the 2nd example is the correct way of how jest.mock is hoisted.
In general, the purpose of jest.mock is to mock modules before it is actually imported to be used by tests. I think therefore it needs to be put outside any jest functions.

Hi @ahnpnl, thanks for your help.
The thing I preferred the first one is, I need different mock of ora in each case. If that is not possible to achieve, i will try to find something workaround. Thanks again


Update netty dependency

From 4.1.6.Final to 4.1.10.Final

@mauricio Anybody home?

Closing, since it has been a while and this is no longer the newest version of netty.


Add table aws_resource_explorer

References
Add any related links that will help us understand the resource, including vendor documentation, related GitHub issues, and Go SDK documentation.
supported resources
Related Go Library Method: (https://docs.aws.amazon.com/sdk-for-go/api/service/resourceexplorer2/
)
Note: I think this table can be used as an index table for simple resource search. So, when signing using a name, faster queries are possible to query faster than before.

Welcome to Steampipe @wesky93 👍 and thanks for raising the request 👍 .
If anyone would like to attempt to develop this table, the API mentioned by @wesky93  is an excellent place to start.
Please let us know in case there are questions 👍 .

Looking a bit more at the service and Resource Explorer API, here are some initial thoughts:
There appear to be a few different resource types from the get and list methods:

Index (has an ARN, supports tags)
Supported resource type (no individual ARN, but contains info on resource type + service)
View (has an ARN, supports tags)

There’s also a Search method, and you need to give a view ARN as part of the request.
Someone had created an issue in the TF AWS provider as well with some initial resource and data source ideas - https://github.com/turbot/steampipe-plugin-aws/issues/1386
Looking at the list/get methods above, the proposed tables are:

aws_resource_explorer_index
aws_resource_explorer_search (good example queries will be important so users know how to use the query string param)
aws_resource_explorer_supported_resource_type
aws_resource_explorer_view

The service in the AWS CLI and Go SDK docs is called Resource Explorer 2. I'm not sure what happened to Resource Explorer 1, but I think it's better to drop the 2 in the table names, since there is no Resource Explorer 1 service.

search is the most useful API in this. The others really just seem to be related to enabling the service. If a view isn't passed as a qual to the search function, I'd use GetDefaultView to populate that.
How would their query syntax get translated into SQL?
Do we create WHERE clauses like where service='ec2' and regions='us-west-2' and map that to service:EC2 region:us-west-2 in their language? or does the where clause pass the resource explorer query straight through?

@jchrisfarris Thanks for sharing the GetDefaultView API, I agree that it'd be helpful to use that if no view ARN is passed in for the aws_resource_explorer_search table.
For the query syntax, I think we'd start with having a query column that we'd pass directly in, like the github_search_code table (and other github_search_* tables) handle it.
This usually works well for inputs with specific query languages because:

If a user creates their own queries today for use with the API/SDK/CLI, they can re-use them here (and vice versa)
There's usually sufficient documentation from the provider on how to form a query
We don't need to create our own column -> query string handling, which can be complex depending on the query language


Front end dev

[x]  Does the code work?
[x]  Are functions, methods, and variables adequately named?
[ ]  Any test on the new component?
[ ]  Is it well tested? All components could be rendered and pass the test.
[ ]  Is the code clear and easy to understand?
[x]  Does it meet the team guidelines and style guides?
[x]  Is there any duplicated code?
[x]  Is documentation on functions, methods, classes, contexts, and behaviours adequate?
[ ]  Is the code as modular as possible?
[ ]  Are there better or simpler solutions?
[x]  Is there any performance issue?

Merged current working progress
Next TODO

[ ] REWRITE Personal Information Component
[ ] UPDATE Personal Information CSS
[ ] QR-Code Scanning Problem

This pr mainly focus on css updates


[css] Add new CSS color functions

CSS Color Modules 4 added many new color functions. This spec already Candidate Recommendation Draft and was implemented in Safari 15 without any flags. We already have a few articles about the most interesting of them oklch() and lch().
We need the same color preview box as we have for other colors like red.
Functions:

oklch() and oklab()
lch() and lab()

Help is welcome. Implementation would be in https://github.com/microsoft/vscode-css-languageservice

https://github.com/microsoft/vscode-css-languageservice/blob/main/src/languageFacts/colors.ts#L409 seems like a place to start around. I can take a look at it over the next week if that's okay with you?

I'd love to help out with this, or even assist on a smaller part of it if someone more experienced picks it up

Was just looking for a solution to preview oklch() colors. @GauravB159 Your PR looks promising! Is it stalled currently?

Hey guys, please pick this up again? I love these functions, but everlacking support for new things makes them hard to work with. I always thought browser implementations were slow, but I should've expected this...

+1 to have this. Would be so fantastic 🙏

@ryanleichty I'm not sure, I haven't looked at this in a while but I don't think I received a response on my PR for it. I can have a look again to make sure it's working.

Thanks for submitting the PR @GauravB159 !  This is going to be a great addition when it passes all the tests!

Please keep up the great work.
Thank you all

Thanks for submitting the PR @GauravB159 ! This is going to be a great addition when it passes all the tests!

Any update on that? oklch/lch still don't have previews

Thanks for submitting the PR @GauravB159 ! This is going to be a great addition when it passes all the tests!

Any update on that? oklch/lch still don't have previews @jrmoynihan

I'm not a maintainer or the author of the PR, so nothing from me.  Looks like it still isn't merged.  Maybe more review to do?

+1 for the implementation of this into VSCode, I'm using oklch on a new project after reading the excellent evil martians article

Almost two years and we're still lacking support for oklch. What can be done to get this integrated?

+1 for the implementation of this into VSCode, I'm using oklch on a new project after reading the excellent evil martians article

This article is indeed fantastic and excites you about CSS colour capabilities. Really hope VSCode can add support for oklch, or at least an extension might surface.

@aeschli Any updates on the pull request? I'd be happy to pick up the work on any final tweeks needed.


Idea: Prune all unnecessary functions

Many functions in a solidity project can be deployed but have no actual use onchain.
For instance, a library file may have 100 functions, but only 1 is actually used by the contracts.
What if this tool could prune all functions that have no actual way to run the logic onchain? Removing those would save effort when reviewing.
Here is one way to do it
@property
def auditable_functions(self) -> List["Function"]:
    """
    list(Function): List of functions+modifiers+libraries+constructors used by the contract. Similar to all_functions_called,
        but adds in used library fns and doesn't include unused fns/dead code.
    Essentially, this is the full list of functions that are useable by external actors or the contract itself, and should be audited.
    """
    if self._auditable_functions is None:
        # find all entry points + internal/private calls and modifiers used by them

        all_entry_functions = [f for f in self.functions_entry_points if f.is_implemented]
        all_entries_and_internal_calls = [ic for f in all_entry_functions for ic in f.all_internal_calls() if not isinstance(ic, SolidityFunction) and ic.is_implemented] + all_entry_functions # don't include SolidityFunction's in this
        all_entries_and_internal_calls = list(set(all_entries_and_internal_calls))

        add_modifiers = [m for fn in all_entries_and_internal_calls for m in fn.modifiers if not isinstance(m, Contract) and not m.is_shadowed] + all_entries_and_internal_calls # save constructors for later
        conclusive_contract_calls = list(set(add_modifiers)) # conclusive set of all entries/int&priv calls and modifiers used

        # find library functions used by these entries/int&private-calls/modifiers, and the int&private-calls/modifiers they use
        library_calls = [f.all_library_calls() for f in conclusive_contract_calls]
        library_calls = [item for sublist in library_calls for item in sublist] # blame montyly for making this a list of tuples lol
        # List[Tuple[Contract, Function]] == List[LibraryCall]
        library_calls = [lib[1] for lib in library_calls if isinstance(lib, tuple)] # unwrapping the Function from the library tuple
        library_calls = list(set(library_calls))

        add_library_internal_calls = [ic for f in library_calls for ic in f.all_internal_calls() if not isinstance(ic, SolidityFunction) and ic.is_implemented] + library_calls # don't include SolidityFunction's in this
        add_library_internal_calls = list(set(add_library_internal_calls))

        add_library_modifiers = [m for fn in add_library_internal_calls for m in fn.modifiers if not isinstance(m, Contract) and not m.is_shadowed] + add_library_internal_calls
        conclusive_library_calls = list(set(add_library_modifiers)) # conclusive set of all library entries/int&priv calls and modifiers used

        # add list of all conclusive calls + turn into set to remove duplicates
        set_all_calls = set(conclusive_contract_calls + conclusive_library_calls + self.constructors)

        self._auditable_functions = [c for c in set_all_calls if isinstance(c, Function) and not isinstance(c.entry_point, type(None)) and c.is_implemented]

    return self._auditable_functions

@property
def auditable_contracts(self) -> List[Contract]:
    """
    list(Contract): List of contracts that are leafs and not interfaces, abstract or libraries.
        What remains are deployable, fully-derived, fully-implemented, and thus auditable contracts.
    """
    inheritances = [x.inheritance for x in self.contracts]
    inheritance = [item for sublist in inheritances for item in sublist]
    return [c for c in self.contracts if c not in inheritance and not c.is_interface and not c.is_abstract and not c.is_library]

Even better if you could export the files after this pruning and still have them be compilable

Yes, it's a good idea to add exporting capability like such. I wanted to also generate some basic report for each contract scanned, like - "What are the main entry points?" and "What other functions and variables those entry points taint?".  Including a cleaner source code, without the dead-code functions, could go into it.
As for excluding unused library functions, it's already partially achieved under the hood!
library_functions.webm
First, if detectors successfully ran there will be a "dead-code" detector/check available from slither. It's an Informational level detector. Notice that "jump-to-line" will work fine on such finding, it will focus the library function in the source code view, however - the same functions won't be displayed in the list of functions (search results). That's because betterscan only includes target contract functions that are declared in target contract or it's immediate inheritance.
https://github.com/shortdoom/betterscan-v1/blob/ef5cb7c08f5de908a2e15c051d13fa9c8dd95ded/core/analyze.py#L395-L429
So, if needed we have the full original source code, with unused functions, but those never get included into the search results / function list display (as they have no effects on anything). Those also won't be included in sessionData.json in files/out directory (from which UI reads).


Set default ha connections to 4

Cloudflared uses a default of 4 ha connections, the controller should do
the same.

It is believed that this setting is partly the cause for #40, increasing to 4 by default will help increase fault tolerance.


get_creditline is confusing

trustline_data.get_creditline is confusing (at least to me). It doesn't come with a docstring and it's neither called get_creditline_received nor get_creditline_given.
Same is also probably true for get_interest_rate and the setter functions.

get_creditline(user, counterparty) is the creditline given from user to conuterparty and you can get the received creditline with just switching the argument. I decided that for such low level functions I didnt want to have both. Do you think that is solved by documenting that?
If you think that is not clear, we can rename it into get_creditline_given(user, counterparty) and maybe also add get_creditline_received(user, counter_party) = get_creditline_given(counter_party, user), but again, I dont know if we need that in that low abstraction.

I'm fine with having a docstring only.


Continue provisioning cluster after fixing bug

Hi @ccamacho
Currently, if user has  any issues during the deployment, she/he need to fix something and retry again. Current behavior of kubeinit is destroying whole cluster and restart from scratch everything. It's great if kubeinit has an option to allow user to continue to provisioning cluster after fixing bugs.

@lapd-viosoft thanks a lot for the feedback, I moved all these issues as cards in a kanban project https://github.com/Kubeinit/kubeinit/projects/1 if you will like to contribute, please feel free to push any PR you will like to have included in the code. When I have some free time I'll try to implement some of them.


fix(kafka.js): support epsagon events

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


SAK-31415 Turn on soft site deletion by default

NOTE: add label for merging this into the 11 version

Could you fix kernel test failure here?
https://s3.amazonaws.com/archive.travis-ci.org/jobs/139991464/log.txt

I have updated the aliases test when deleting sites, but now it seems some tests on "RoleAccessTest" are throwing errors too, although I don't see connection. Any help?

It seems that test still broken
https://s3.amazonaws.com/archive.travis-ci.org/jobs/140007818/log.txt

I know, it seems site removal is used on some apparently unrelated tests. I'll have a think about it.

Updated failing tests

Tests updated for good, removed the "disabled" comment, renamed method and deleted a previous useless test.


Need to be able to create nomcom office hours sessions

Describe the issue
At IETF-118, the nomcom group wanted to add office hours sessions to the agenda. This is allowed by the system once sessions exist but there is not a convenient way to create the sessions to be scheduled. As a workaround, @flynnliz was able to create the sessions for the IETF group then adjust the group in the admin, but this shouldn't be needed. The nomcom group needs to either be visible on the existing sreq UI or a simple way to create sessions directly for the nomcom group is needed.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

(Note that usually nomcom office hours only take place during November meetings, so this isn't highly urgent and probably doesn't need to be fixed until IETF 121 [but earlier would be great too])


Building the project fails on Ubuntu 18.10

Compiling NBAndroid-V2 on Ubuntu 18.10 fails because it can't find jfxrt.jar. I don't know if this is a system issue or if the project can do anything about it like sourcing it from a repository for example.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Gradle-Android-support-core: Compilation failure: Compilation failure:
[ERROR] <path>/NBANDROID-V2/nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/apk/ApkUtils.java:[63,17] FileChannelImpl is internal proprietary API and may be removed in a future release
[ERROR] <path>/NBANDROID-V2/nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/apk/ApkUtils.java:[63,17] FileChannelImpl is internal proprietary API and may be removed in a future release
[ERROR] <path>/NBANDROID-V2/nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/sdk/ui/PanelDownloadToBrokenSDK.java:[9,21] error: package com.sun.javafx does not exist
[ERROR] <path>/NBANDROID-V2/nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/sdk/ui/SDKVisualPanel2Download.java:[21,21] error: package com.sun.javafx does not exist
[ERROR] <path>/NBANDROID-V2/nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/apk/ApkUtils.java:[63,17] FileChannelImpl is internal proprietary API and may be removed in a future release

System information:
Ubuntu 18.10 64bit
OpenJDK 1.8.0_191
OpenJFX openjfx/cosmic,now 11+26-4 amd64
Maven 3.5.4

With javafx I do not have much experience, but a more rational solution is to remove those imports.
Because of one class it's dependent on javafx, it's not a very reasonable solution ..

It works now, thank you.


Rename ~/Views/Shared to ~/Views/_Shared

So ~/Views/Shared is a special folder.  It doesn't really go with the other ~/Views/SomeController folders.  With this in mind, what do we think of renaming it to ~/Views/_Shared?  The _Name convention is popular for non-conventional views (e.g. _Layout), and it would push the folder alphabetically to the top of the listing.
Alternatively, we could make feature folders the default project structure as I think this will encourage better development practices by encouraging the developer to think about vertical slices of functionality centered around features.

We are maintaining the existing folder name conventions from MVC 5 for compatibility reasons.


Locale errors

Add missing dependencies for client-side i18n and also add necessary props for translations when using two locales on the same page in a client component.

Check out a preview of your pull request here: https://alphasite-appservice-dev-0.azurewebsites.net

Check out a preview of your pull request here: https://alphasite-appservice-dev-0.azurewebsites.net


breaks on new highline

$ aws-creds shell me
/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2157:in `method_missing': undefined method `this' for #<Gem::Specification:0x3ff4d600fef0 highline-1.7.8> (NoMethodError)
	from /.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1056:in `find_active_stub_by_path'
	from /.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:63:in `require'
	from /.rvm/gems/ruby-2.2.3/gems/highline-1.7.8/lib/highline.rb:15:in `<top (required)>'
	from /.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:119:in `require'
	from /.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:119:in `require'
	from /.rvm/gems/ruby-2.2.3/gems/aws-keychain-util-0.0.12/bin/aws-creds:8:in `<top (required)>'
	from /.rvm/gems/ruby-2.2.3/bin/aws-creds:23:in `load'
	from /.rvm/gems/ruby-2.2.3/bin/aws-creds:23:in `<main>'
	from /.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
	from /.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'

I wonder if it's a rubygems issue.
https://github.com/rubygems/rubygems/issues/1420

Hi @bootstraponline, I know its been a while since you had this error, sorry for the delay. I have tried but failed to replicate the issue you are having. I see you are using RVM, can you confirm if a different ruby version say 'ruby 2.0.0p648' has this error too?
T.

I updated rubygems and moved to rbenv, haven't seen this error again. I think it was an issue with rubygems.


Add disk raw test

Lookign for some feedback as this boots the image but it doesnt seem to work as expected (also tested locally with the raw_disk)
Did we break the raw_disk already? Am I doing something weird?

umm, I migth have broken the raw_disk with the grub artifacts?
   Falling back to `cOS recovery'

 hd0,gpt4error: ../../grub-core/loader/i386/efi/linux.c:277:can't allocate kernel.
error: ../../grub-core/loader/i386/efi/linux.c:98:you need to load the kernel first.

Press any key to continue...

ahh seems like I forgot to increase the memory if the vm so grub fails to boot (not able to map the kernel maybe? mount the loop device?)

can this be reviewed and merged? @mudler @dragonchaser only the vbox-squashfs failed due to virtualbox crapping out, the rest went green without issues :)


Add features to admin dashboard about server info

[x] Show a list of all users and teams
[x] Server logs from ElasticSearch
[x] List and create coupon codes
[ ] Clear Redis, either completely flush or del by key
[ ] Show IP address, other server details
[x] Payment logs from Stripe
[ ] Show htop-style server status for resources?

⚠ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.

⚠ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.

⚠ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.

We now have the Metrics module.

We now have the Metrics module.


pkglist: check local timestamp against system time

This avoids a HTTP request when the file was retrieved before expiration of the TTL.
Before:
$ time aur pkglist --ttl 1800 >/dev/null

real	0m0.121s
user	0m0.028s
sys	0m0.020s

After:
$ time ./aur-pkglist --ttl 1800 >/dev/null

real	0m0.013s
user	0m0.014s
sys	0m0.000s

Issue #984

Strangely enough I really don't see this difference, it all seems to be in the run-to-run noise. Looking at the total it doesn't look like the change has any effect at all?
~/src/aurutils/lib master ❯ time ./aur-pkglist -ttl 1800 >/dev/null
user=0,05s system=0,02s cpu=52% total=0,132
~/src/aurutils/lib master ❯ time ./aur-pkglist -ttl 1800 >/dev/null
user=0,07s system=0,05s cpu=67% total=0,168

# Switching branches
~/src/aurutils/lib pkglist-local-ttl ❯ time ./aur-pkglist -ttl 1800 >/dev/null
user=0,05s system=0,01s cpu=46% total=0,142
~/src/aurutils/lib pkglist-local-ttl ❯ time ./aur-pkglist -ttl 1800 >/dev/null
user=0,07s system=0,01s cpu=49% total=0,152

Any idea what could cause this? Timezones (I'm in Europe/Stockholm (CEST) currently due to daylight saving time). Filesystem? Btrfs.

The difference is that the HTTP headers are only requested if the TTL expired:
$ time curl --head https://aur.archlinux.org/packages.gz
HTTP/2 200
server: nginx
date: Thu, 21 Apr 2022 07:35:20 GMT
content-type: application/gzip
content-length: 377263
last-modified: Thu, 21 Apr 2022 07:34:33 GMT
etag: "62610909-5c1af"
expires: Thu, 21 Apr 2022 07:40:20 GMT
cache-control: max-age=300
content-encoding: gzip
accept-ranges: bytes

real	0m0,119s
user	0m0,026s
sys	0m0,013s


Problem with WYSIWYG

I managed to make most of it work with the template (I'm using Laravel), but:
when a user tries to edit or add a new link using WYSIWYG the whole page turns dark and disabled.
I tried to solve this by myself but I can't find the file that deals with the box.
Thank you

Hi, @calypso333! Thank you for using our product. Please, can you tell me if you use the latest version of the dashboard? Regards, Dragos

I think it is, in the version I got it says 2017.

Hi, @calypso333! Sorry for the late response. Please, can you give me the link of your project to check what is the problem? Regards, Dragos


Error: Create Pages site failed

I encountered the following error when deploying GitHub pages.
Run actions/configure-pages@v2
  with:
    token: ***
    enablement: true
  env:
    INSTANCE: Writerside/blog
    ARTIFACT: webHelpBLOG[2](https://github.com/kangxiaoning/docs/actions/runs/6577030959/job/17868155477#step:5:2)-all.zip
    DOCKER_VERSION: 2.1.1479-p[3](https://github.com/kangxiaoning/docs/actions/runs/6577030959/job/17868155477#step:5:3)869
    ALGOLIA_ARTIFACT: algolia-indexes-BLOG.zip

Warning: Get Pages site failed
Error: Create Pages site failed
Error: AxiosError: Request failed with status code [4](https://github.com/kangxiaoning/docs/actions/runs/6577030959/job/17868155477#step:5:4)03

The following is my deploy.yml file content.
name: Build documentation

on:
  # If specified, the workflow will be triggered automatically once you push to the `main` branch.
  # Replace `main` with your branch’s name
  push:
    branches: ["main"]
  # Specify to run a workflow manually from the Actions tab on GitHub
  workflow_dispatch:

# Gives the workflow permissions to clone the repo and create a page deployment
permissions:
  id-token: write
  pages: write

env:
  # Name of module and id separated by a slash
  INSTANCE: Writerside/blog
  # Replace HI with the ID of the instance in capital letters
  ARTIFACT: webHelpBLOG2-all.zip
  # Writerside docker image version
  DOCKER_VERSION: 2.1.1479-p3869
  # Add the variable below to upload Algolia indexes
  # Replace HI with the ID of the instance in capital letters
  ALGOLIA_ARTIFACT: algolia-indexes-BLOG.zip

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Build Writerside docs using Docker
        uses: JetBrains/writerside-github-action@v4
        with:
          instance: ${{ env.INSTANCE }}
          artifact: ${{ env.ARTIFACT }}
          docker-version: ${{ env.DOCKER_VERSION }}

      - name: Upload documentation
        uses: actions/upload-artifact@v3
        with:
          name: docs
          path: |
            artifacts/${{ env.ARTIFACT }}
            artifacts/report.json
          retention-days: 7

      # Add the step below to upload Algolia indexes
      - name: Upload algolia-indexes
        uses: actions/upload-artifact@v3
        with:
          name: algolia-indexes
          path: artifacts/${{ env.ALGOLIA_ARTIFACT }}
          retention-days: 7

  # Add the job below and artifacts/report.json on Upload documentation step above if you want to fail the build when documentation contains errors
  test:
    # Requires build job results
    needs: build
    runs-on: ubuntu-latest

    steps:
      - name: Download artifacts
        uses: actions/download-artifact@v1
        with:
          name: docs
          path: artifacts

      - name: Test documentation
        uses: JetBrains/writerside-checker-action@v1
        with:
          instance: ${{ env.INSTANCE }}

  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    # Requires the build job results
    needs: test
    runs-on: ubuntu-latest
    steps:
      - name: Download artifact
        uses: actions/download-artifact@v3
        with:
          name: docs

      - name: Unzip artifact
        uses: montudor/action-zip@v1
        with:
          args: unzip -qq ${{ env.ARTIFACT }} -d dir

      - name: Setup Pages
        uses: actions/configure-pages@v2

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          path: dir

      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1

When I deploy the Writerside project to the repository named .github.io, it works well.

When I deploy the Writerside project to the repository named .github.io, it works well.


fix self link

cc/ @joshwget @cjellick

LGTM

Needs some more. You are only doing this in getCatalogs function (which is mapped to /v1-catalog/catalogs, but what about /v1-catalogs/catalog/my-catalog? That needs to return a proper self link too.
I suggest having a constructor function for  model.CatalogResource and _always* calling that instead of directly creating a new one via c := &model.CatalogResoure.

Closing in favor of https://github.com/rancher/catalog-service/pull/80, which is @amy's PR with one tiny tweak to the test.
Just looking to save you some time on having to edit it again @amy.


configuration files ready for --volumes-from config-container

appcelerator/amp-project#158

even without docker image for configuration files, PR still useful for rationalization of configuration file structure


Created Sorting Algos In Arrays Folder

📥 Pull Request
Title: Arrays - Sorting Algorithms
Description
Created a new file for sorting algorithms in arrays folder.
Fixes #989
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@ajay-dhangar kindly add gssoc and hacktoberfest labels .

@ajay-dhangar kindly add gssoc and hacktoberfest labels .

@ajay-dhangar you have merged this but kindly add gssoc and hacktoberfest labels and also assign this to me.


Need to migrate build system to non-root required

The best lead here for downloading all dependent packages is Mock. The problem is that Mock by default excludes system-installed packages, which are required for an install ISO.

Implemented repotrack to download packages and manually removed i686 packages after the fact.


Migrate Heroku application configuration to Pulumi

Description/Context

We are retiring SaltStack for all uses. The most critical one that it is still responsible for is managing application configuration for our Heroku applications. To replace that functionality we will start using the Heroku provider for Pulumi to control the application settings.
Plan/Design

Copy the current Pillar settings from SaltStack for each application and translate it to Python/Pulumi code using the heroku.app.ConfigAssociation resource. This code will be located in the already existing Pulumi projects for the respective applications which already manages the creation of the RDS databases and S3 buckets.
### Heroku Application Configurations Migrated
- [ ] xPRO
- [ ] MITx Online
- [ ] Bootcamps
- [ ] OCW Studio
- [ ] MIT Open
- [ ] Open Discussions
- [ ] MicroMasters

Current status from @Ardiea:
Outstanding questions / concerns / thought

Database + AWS creds seem to change every run / preview and old ones are not expired when that happens (yuck). Requires further investigation.
There is a different way to get the aws creds builtin to pulumi but I can’t seem to get it to work. 403 IAM permission issue that I can’t figure out. Tried the obvious things to get past it. Code to do it is commented out.
Haven’t figured out how to do consul lookups yet. Presumably possible. Zero thought given to the issue so far though. There are two needed for this app.
Few things marked TODO that can become stack references calls instead of statically populated.
About half the secrets could be obtained easy-mode the other half required async incantations to pull from vault. I think maybe for purity the easy-mode ones should be changed to async incantations. Complicated and requires figuring out json nuances with get_secret_output() function.
Need to carefully compare and contrast with vars in salt to make sure all is as it should be.
Need to document how to find the app_id from heroku. It is a “secret” in that heroku won’t nicely tell you what it is.


Make symcal work with lowercase latin letters

Status
READY
Description
The documentation describes mathcal and mathscr as synonyms, but the mathscr correctly maps the lowercase Latin letters, while mathcal only handles the uppercase letters. This PR changes the cal alphabet to be the same as scr.
Todo

[x] Tests added to cover new/fixed functionality
[x] Documentation added if necessary
[x] Code follows expl3 style guidelines

Minimal example demonstrating the new/fixed functionality
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIXTwoMath-Regular.otf}

\begin{document}
\[
    \symscr{ABCDabcd} \quad \symcal{ABCDabcd}
\]
\end{document}

Before

After

Sorry for the slow reply. I have no memory of why these were not defined identically to begin with! Many thanks for the initiative and the well organised pull request.


Adding realsense_ros_camera to documentation index for Kinetic and Indigo distro

I'd like realsense_ros_camera to be indexed and documented on ros.org.

It looks like the driver has been renamed in the new branch?
Related to that in general our naming convention is to not include 'ros' in the ROS package name as it's redundant. http://www.ros.org/reps/rep-0144.html http://wiki.ros.org/ROS/Patterns/Conventions

The realsense_camera and realsense_ros_camera are independent packages. The first one works with librealsense1 and the second one works with librealsense2. They are both located at the same repository but in different branches. The realsense_camera is located at the indigo-devel branch and the realsense_ros_camera is located at the development branch.

The first one works with librealsense1 and the second one works with librealsense2.

Maybe choose a different repository name then? The additional ros doesn't express the difference. Maybe realsense2_camera?

Ok, I'll rename the repository name and apply the change to this PR.

Please see the Travis log for errors. The new entry needs to be inserted before realsense_camera.


P20 31

NEEDS NEW CONFIG ADDING TO APPSETTINGS
(make sure not to add foward slash at the end of urls)
"ApplicationConfig": {
"EmailBaseUrl": "{envrionmentUrlOfFrontEnd}"
}
Dev
"EmailBaseUrl": "https://helpmystreet-dev.azurewebsites.net"
UAT
"EmailBaseUrl": "https://helpmystreet-uat.azurewebsites.net"
Live
"EmailBaseUrl": "https://www.helpmystreet.org"
https://helpmystreet.atlassian.net/jira/software/projects/P20/boards/10?selectedIssue=P20-31
Summary

Modified Send Email Function inside PostNewRequestForHelpHandler.cs
1.1 Added call to new User Service endpoint,
1.2 Replaced the sending logic

Modified the HelpRequestedEmail inside EmailBuilderClass according to requirements.

Added new overload function to IHttpClientWrapper to support sending jsonContent for a Get
Request

Added Unit Tests for PostNewRequestForHelpHandler_

@jawwadmukhtargmail there are some new app settings we need to roll through the environments here.


don't generate wrappers for native methods that are unmodified

We currently generate wrappers like the following for dart:html and friends:
    [dartx.beginPath](...args) {
      return this.beginPath.apply(this, args);
    }

We should be able to avoid this and just call beginPath(...) directly on the receiver.  This should improve readability, code size, and (probably) perf.
See related #27340 and #27677

We still generate these stubs (for dcalls), we don't generate calls to them anymore for typed member access (see _isSymbolizedMember).
We might be able to avoid the stub entirely. We'll need to track "native members" rather than "native types" so we know that some members are directly callable at runtime (the native type implements the member of that name, with a Dart compatible calling convention). That will let us trim the metadata and avoid the stub.


[api-minor] Add a new PageViewport-getter to access the original, un-scaled, viewport dimensions

While reviewing recent patches, I couldn't help but noticing that we now have a lot of call-sites that manually access the PageViewport.viewBox-property.
Rather than repeating that verbatim all over the code-base, this patch adds a lazily computed and cached getter for this data instead.

/botio test

/botio test


The "RestoreTask" task returned false but did not log an error

Build
https://dev.azure.com/dnceng/internal/_build/results?buildId=2474913
     2>/__w/1/s/.dotnet/sdk/9.0.100-preview.5.24307.3/NuGet.targets(170,5): error MSB4181: The "RestoreTask" task returned false but did not log an error. [/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Tools.proj]
##[error].dotnet/sdk/9.0.100-preview.5.24307.3/NuGet.targets(170,5): error MSB4181: (NETCORE_ENGINEERING_TELEMETRY=Restore) The "RestoreTask" task returned false but did not log an error.
     2>Done Building Project "/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Tools.proj" (Restore target(s)) -- FAILED.
     1>Done Building Project "/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Build.proj" (default targets) -- FAILED.

Build leg reported
No response
Pull Request
No response
Known issue core information
Fill out the known issue JSON section by following the step by step documentation on how to create a known issue
 {
    "ErrorMessage" : "The \"RestoreTask\" task returned false but did not log an error",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

@dotnet/dnceng

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[ ] Internal Infrastructure Improvements

Release Note Description
Additional information about the issue reported
No response

Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng/internal/_build/results?buildId=2474913
Error message validated: [The "RestoreTask" task returned false but did not log an error]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 6/17/2024 3:39:02 PM UTC

Report

Build
Definition
Step Name
Console log
Pull Request

2478475
dotnet-sdk
Build (alpine319WithNode)
Log

714457
dotnet/runtime
Build product
Log
dotnet/runtime#103725

714332
dotnet/runtime
Build product
Log
dotnet/runtime#103706

714061
dotnet/runtime
Build product
Log
dotnet/runtime#103635

714040
dotnet/runtime
Build product
Log
dotnet/runtime#103697

2478113
dotnet-runtime
Restore internal tools
Log

713553
dotnet/runtime
Build product
Log
dotnet/runtime#103673

2477778
dotnet-arcade
Build / Validate
Log

2477800
dotnet-sdk
Build (cblMariner20Fpm)
Log

713368
dotnet/runtime
Build product
Log
dotnet/runtime#103725

713219
dotnet/sdk
Build
Log
dotnet/sdk#41681

713072
dotnet/runtime
Build product
Log
dotnet/runtime#103708

712679
dotnet/sdk
Build
Log
dotnet/sdk#41198

2477353
dotnet-runtime
Restore internal tools
Log

712534
dotnet/runtime
Build product
Log
dotnet/runtime#100334

712515
dotnet/runtime
Build product
Log

712236
dotnet/sdk
Build
Log
dotnet/sdk#41664

711952
dotnet/runtime
Build product
Log
dotnet/runtime#103665

711960
dotnet/runtime
Build product
Log
dotnet/runtime#103655

711823
dotnet/runtime
Build product
Log
dotnet/runtime#103502

711705
dotnet/runtime
Build product
Log
dotnet/runtime#103648

711626
dotnet/sdk
Build
Log
dotnet/sdk#41656

711541
dotnet/runtime
Build product
Log
dotnet/runtime#103574

711447
dotnet/runtime
Build product
Log
dotnet/runtime#103632

711421
dotnet/runtime
Build product
Log
dotnet/runtime#103629

711360
dotnet/runtime
Build product
Log
dotnet/runtime#102670

2476395
dotnet-sdk
Build (ubuntu2204DebPkg)
Log

711227
dotnet/runtime
Build product
Log
dotnet/runtime#103619

711213
dotnet/runtime
Build product
Log
dotnet/runtime#103618

711142
dotnet/runtime
Build product
Log
dotnet/runtime#103612

710890
dotnet/runtime
Build product
Log
dotnet/runtime#103588

710827
dotnet/sdk
Build
Log
dotnet/sdk#41536

710815
dotnet/runtime
Build product
Log
dotnet/runtime#103590

710799
dotnet/runtime
Build
Log

710341
dotnet/runtime
Build product
Log
dotnet/runtime#101337

710259
dotnet/runtime
Build product
Log
dotnet/runtime#103574

709265
dotnet/runtime
Build product
Log

2474913
dotnet-runtime
Restore internal tools (browser_wasm)
Log

Build
Definition
Test
Pull Request

713618
dotnet/roslyn
Microsoft.CodeAnalysis.MSBuild.UnitTests.NetCoreTests.TestOpenSolution_NetCoreMultiTFMWithProjectReferenceToFSharp
dotnet/roslyn#74068

714164
dotnet/roslyn
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests_Microsoft.CodeAnalysis.Workspaces.UnitTests_71.WorkItemExecution
dotnet/roslyn#74075

713683
dotnet/roslyn
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests_54.WorkItemExecution
dotnet/roslyn#74069

712630
dotnet/roslyn
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests_73.WorkItemExecution
dotnet/roslyn#74060

Summary

24-Hour Hit Count
7-Day Hit Count
1-Month Count

9
42
42

Should we make this "BuildRetry": true,?

I opened https://github.com/dotnet/dnceng/issues/3139 in dnceng to track the other version of this problem

Thanks to @akoeplinger's fix in NuGet, we could resolve this by promoting a newer SDK (>= 9.0.100-preview.7.24357.2) via Arcade. @mmitche opinions? Might make sense to discuss this in Tactics tomorrow.


tedge cert command to create a certificate signing request

Is your feature request related to a problem? Please describe.

If the user wants to use a device certificate which is signed by a Certificate Authority (CA), then they have to use other tooling to generate the Certificate Signing Request (CSR) which is used by the CA to generate the device certificate (in most instances this is openssl). The reliance of additional tooling means that users have to have this tooling installed, and also know how to use it which can be daunting for the less experienced users.
Describe the solution you'd like

A new tedge cert command to generate a Certificate Signing Request file which the user can then use to generate the public device certificate (via their CA).
For example, the command could look something like:
# Create a new private key (if it does not already exist)
tedge cert create-csr --device-id mydevice001 > mydevice.csr

# Re-use the existing device-id from an already existing certificate
tedge cert create-csr > mydevice.csr

Where:

A private key will be created automatically if it does not already exist
If a public key already exists, then re-use the device-id from the CommonName field of the public certificate (similar to what the tedge cert renew command does)

Describe alternatives you've considered

Additional context

Resolved by #2783
Ticket introduces new command tedge cert create-csr that create a Certificate Signing Request under directory that can be set with tedge config set device.csr_path (by default it is /etc/tedge/device-certs/tedge.csr). User can also provide output path as command argument with --output-path.
More detailed description, how a CSR is created, can be found here.
System test was created and can be found here.

QA has thoroughly checked the feature and here are the results:

[x] Test for ticket exists in the test suite.
tests/RobotFramework/tests/tedge/certificate_signing_request.robot
[x] QA has tested the function and it's functioning according


Retrieve world coordinate in Image Extractor

Hello everybody,
I am looking at the Image Extractor Class (https://aihabitat.org/docs/habitat-sim/image-extractor.html).
I am wondering if there exists a way to hack this class so it can retrieve the world coordinate from which each image sample is taken.
Thank you very much!

You retrieve this from the agent position. See the ECCV tutorials for more info on how to control the agent. Just add that call when saving out the images.


Class methods in API reference missing information

Most of the classes and class methods in the X-track API miss descriptive information about what their functionality and arguments are. Just a few lines, as for instance is the case in the Cpymad API reference would be very helpful.

Added extensive docstrings to all methods of xtrack.Line

Situation is much better now


Compatible with Django 2.2 and fixes

fix #4

@bashhack Do you mind looking at this when you get a minute

ping

👋

Any progress with this pull-request?

I'm also interested in this pull request. Any chances it will be merged?

@karol-bujacek @hannonq just wanted to give you all and everyone else an update on the status of this project. The original author, @joesolly, was given admin access to the repo this past week with the intention that he become maintainer of the project. He created django-rq-wrapper while we were both employed at a company that went under last year. That company's defunct account was the sole owner on PyPI but we just got access to that this past week as well so hopefully a new release will be possible very soon. Thanks!

@jcarbaugh that's great to hear. I'll keep an eye on PyPI for a new release.

Version 3.1 uploaded to pypi, sorry for the delay and thanks for the contribution!

Nice! Only the flag --autoreload doesn't seem to work.
python manage.py rqworkers high default low --autoreload
2020-04-20 11:23:08 - INFO - Worker rq:worker:4d79f0bdd4ea4718975bf7a41372b872: started, version 1.3.0
2020-04-20 11:23:08 - INFO - *** Listening on high, default, low...
2020-04-20 11:23:08 - INFO - Warm shut down requested

Any ideas?
But starting multiple workers works again :)

@hannonq Can you please start a new issue for this and include more information like your version of django and python?

Sorry for the late reply. I've opened a new issue. Thanks :)


User Account?

How to use an User Account instead of a Bot User? (or is it possible / allowed)

I don't see why it's not possible, but, from here https://github.com/hammerandchisel/discord-api-docs/issues/69#issuecomment-223898291

self bots should not act like actual bots, i.e. they shouldn't respond to other people's commands, join servers on your behalf, etc...

Just saying

You shouldn't do it. It can crash in some instances too since there are some checks which don't take into consideration the bot being a self-bot.


Integration Testing for All Players

Description
Have integration testing work for both players, so that we can keep an eye on both's functionality.

might have to look into this regarding queryparams

Downloaded the build artifact and checked the integration tests.
Looks like both are still running on legacy player. Suspecting if there is another flag to be used to control the player(switching between legacy & OnePlayer)?

The logs are confusing, might need to fix this


CSV output empty

❯ mist list firmware --compatible --include-betas --output-type csv
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ Search only for latest (first) result will be 'false'...
  ├─ Include betas in search results will be 'true'...
  ├─ Only include compatible firmwares will be 'true'...
  ├─ macOS Firmware metadata cache path will be '/Users/Shared/Mist/firmwares.json'...
  ├─ Output type will be 'csv'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS Firmware versions...
  ├─ Caching macOS Firmware metadata to '/Users/Shared/Mist/firmwares.json'...
  └─ Found 10 macOS Firmware(s) available for download

Name,Version,Build,Size,URL,Date,Compatible,Signed,Beta

❯ mist --version
2.1 (latest: 2.1)

Seems to be happening in 2.0 too. Unsure what has changed recently to cause it but it used to work just fine.

Turned out to be a silly cosmetic bug - fixed in #170
I have also tidied up the Installers CSV output to better match Firmwares CSV output :+1:


Raspberry Pi 4 connection question

hello
This time I used the SICK TIM561-2050101 model.
ROS navigation is in progress.
I have a problem right now and I have a question.
I am trying to connect and use the SICK model to the Raspberry Pi 4, but the SICK model is not recognized by the Raspberry Pi.
I connected the Ethernet cable from SICK to the Raspberry Pi.
The LAN port is lit, but not checked.
I would appreciate it if you could tell me how to solve it.
Current Specifications

Raspberry Pi 4
Ubuntu 20.04
ROS foxy
SICK TIM561-2050101

The LAN port is connected, but the SICK model cannot be found.

Thanks for your feedback. Raspberry and ARM cpus are currently not officially supported by sick_scan_xd (ARM support is planned for next year). In general we recommend to setup a local static IPv4 network with Raspberry and lidar with the same subnet mask. If the lidar has ip-address <IP_ADDRESS> (the default), then your eth0-network should have ip-address 192.168.0.x and subnet mask <IP_ADDRESS>.
Network settings can be configured either by GUI (editing network connections depend on the OS) or by commandline, eg. ip addr add <IP_ADDRESS>/24 dev eth0. After that, ip a should display eth0 with state UP and ifconfig -a should print inet 192.168.0.x netmask <IP_ADDRESS>. Ping the lidar to check the ethernet connection, e.g. by ping <IP_ADDRESS>. If the lidar responds to ping, the device should be accessible by sick_scan_xd. Otherwise please check the firewall settings or disable a firewall.


Page indicatior not showing in ios 14 and xcode 12.0.1

The page indicator is not showing in ios 14.

yeah, same issue. Anyone can help to show the indicator dot?

same here indicator not showing in iOS 14

same issue

Here is the fix.


Adding handlers for configuration

This implements the following:

creates a connection instance which is available from anywhere
it does it based on a given configuration (defined as a singleton because the code flow does not change this - in the Rails app I mean)
returns authorization URL (based on config)

The configuration in the Rails app using the gem must be done with the following block:
KeycloakOauth.configure do |config|
  config.auth_url = 'url'
  config.realm = 'realm name'
  config.client_id = 'client name'
  config.client_secret = 'client secret'
end

My idea is to put this in an initialiser in the Rails app. Eventually we could even generate this initialiser from the gem so that the developer only has to add the real config.
I tested initialising this from the Rails app and it works.

I've added some documentation with a usage example. The readme needs some cleanup, but I propose to do that in a separate PR.


RuntimeError

Hi, congratulations on your outstanding work!
I tried to use the MVTec 3D dataset train the TransFusion modle, but I got a RuntimeError: Given groups=1, weight of size [64, 5, 3, 3], expected input[8, 6, 256, 256] to have 5 channels, but got 6 channels instead.
Then I changed UNet.py line 283:
 if self.groups[0] == 2:
            self.image_proj_rgb = nn.Conv2d(
                image_channels - 1, n_channels // 2, kernel_size=(3, 3), padding=(1, 1)
            )
            self.image_proj_d = nn.Conv2d(
                image_channels - 3, n_channels // 2, kernel_size=(3, 3), padding=(1, 1)
            )

to:
 if self.groups[0] == 2:
            self.image_proj_rgb = nn.Conv2d(
                image_channels, n_channels // 2, kernel_size=(3, 3), padding=(1, 1)
            )
            self.image_proj_d = nn.Conv2d(
                image_channels - 2, n_channels // 2, kernel_size=(3, 3), padding=(1, 1)
            )

it fixed the error during the training stage, but in the Evaluation stage it got the same error: RuntimeError: Given groups=1, weight of size [64, 6, 3, 3], expected input[8, 5, 256, 256] to have 6 channels, but got 5 channels instead
How can I fix this error? Looking forward to your reply! Thanks so much!
PS: it can run MVTec AD dataset successfully. I didn't try to run VisA.

Thank you for your quick reply, it can run successfully! Congratulations again!


[SCB-449] Fix typo in LICENSE files

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage remained the same at 87.605% when pulling a621747921cf00291a2863dd959c93889e6202d6 on yangbor:master into 8a77e34365e786462b74826c724d10f0e735d5fe on apache:master.


Chapter 14: Javascript Console example sometimes gives undefined results

Hello. Javascript Console examples gives undefined results after entering wrong values like below on the picture:

Is it possible to pass wrong values and make it keep working ?
Thanks!

please check the url below for this issue.
https://github.com/qmlbook/qmlbook/pull/224/commits/ecdaa87239ccafecf95eea0a3d9f35c9dcbddcd9

When returning data.result  in javascript the result gives true result in console, but it doesn't add the result to list model, it gives error: JSConsole.qml:62:28: QML ListModel: insert: value is not an object

Check out the source code I wrote below.
I hope this helps.
https://github.com/kbdyj1/jsConsole


Upgrading the luarocks rock breaks

First attempt:
$ luarocks install https://rocks.moonscript.org/manifests/hisham/luarocks-scm-4.rockspec
Using https://rocks.moonscript.org/manifests/hisham/luarocks-scm-4.rockspec... switching to 'build' mode

Error: Unknown protocol git

Second and any subsequent attempts fail because luarocks has now deleted itself.
(This second part is a more general problem: if an installation fails, surely any previously-installed version of a rock should be retained?)

The version I had installed was the commit that closed #323, so 92d63635, I think.


Drop deprecated service accounts and webhooks API

Drop deprecated service accounts and webhooks API.
Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Just started using Saleor and came across this commit where the webhook API is removed. I was planning on using webhooks to create things like email notifications of new orders and sending data to a third-party script in order to generate shipping labels. Is there another method available to achieve this as it seems strange that the extensible functionality of webhooks have been removed.
Cheers

@isati What we dropped is the deprecated Service Accounts API that was renamed to Apps API, and webhooks are now part of that API. To read more about apps and webhooks see this documentation page: https://docs.saleor.io/docs/developer/extending/apps


Improving file(folder?) tags

[ ] Add teaching tip or explanation in the docs about how to use Tags
[ ] A section for tags would be ideally allow users to click on a tag and pull up all items with that tag almost as if it were its own folder.

We absolutely need a colored icon for that section though xD

@mdtauk can you upload the icon you created for this?

At the moment its just a graphic, not sure if it needs to be converted to an ICO file

I belive PNG format should be fine.

I belive PNG format should be fine.

What sizes?

I think 24x24 would be enough but maybe @gave92 can confirm.

Thank you!

I might also suggest an update to the tag items in the context menu UI, since it's a tad clunky right now.

Just discovered Files. It looks great. Notion like tagging system would make it even better.

What about add moe than one tag to a file and search files with tag?

I opened separate issues to track these items, thank you for a great discussion!


[SPARK-5336][YARN]spark.executor.cores must not be less than spark.task.cpus

https://issues.apache.org/jira/browse/SPARK-5336

Test build #25826 has started for   PR 4123 at commit 3112af9.

This patch merges cleanly.

Test build #25826 has finished for   PR 4123 at commit 3112af9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25826/
Test PASSed.

We should warn about this in standalone mode and mesos coarse grained mode as well, right?

@sryza
In standalone and mesos mode it is a bit different. JIRA is here:https://issues.apache.org/jira/browse/SPARK-5337
Seems like @CodingCat has created a PR: https://github.com/apache/spark/pull/4129, we can discuss the details there.

Test build #25883 has started for   PR 4123 at commit d03d6fa.

This patch merges cleanly.

Test build #25887 has started for   PR 4123 at commit 9632d3a.

This patch merges cleanly.

Actually when cluster has not enough cores, the driver will also hang up. I made a trivial change here and hope it would not make much noise for this pr.

Test build #25883 has finished for   PR 4123 at commit d03d6fa.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25883/
Test PASSed.

Test build #25887 has finished for   PR 4123 at commit 9632d3a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25887/
Test PASSed.

Test build #25890 has started for   PR 4123 at commit 6c9676a.

This patch merges cleanly.

@tgravescs Updated as you said. Perhaps we should do the same change in ExecutorAllocationManager, but I am not familiar with that future, so let's leave it with guys who is in charge of that.

I agree, the text was that way in ExecutorAllocationManager so lets leave it for now.
This looks good.  Thanks @WangTaoTheTonic

Test build #25890 has finished for   PR 4123 at commit 6c9676a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25890/
Test PASSed.


Add fpcomplete repositories to whitelist.

These repositories contain releases of Stack, the tool used to
build Haskell packages.
This is a fixed up version of PR #7, which has been in waiting for
over a year now and is extremely important to Haskell
developers.
@BanzaiMan please take a look at this, we have been waiting forever.
/cc @Blaisorblade

FWIW, I've reviewed the original PR and its review comments, and confirm this PR satisfied them. Hence LGTM.

Also, thanks to @jhance for fixing this up!

Sorry for the delay. If you need additional APT sources, please use GCE with sudo: required.

The is ambiguous. Does this mean it is going to be merged, or the opposite?

It seems to mean it won't be merged, because he is saying to not use the container environment as a workaround instead of a solution.

Uh. Apparently this process is being shut down for lack of resources, see #173 (dropping https://github.com/travis-ci/apt-source-whitelist#source-approval-process) and
https://github.com/travis-ci/docs-travis-ci-com/pull/390.
At least now we know we're stuck with our workarounds. Thanks anyway @jhance for opening the new PR!

But there have been apt repos added to the whitelist since that issue was created (around a year ago)

OK, I'm not implying this is somehow "fair"—shutting the process down is more honest at least. I guess the process might have been some variant of "well, we do trust this package is trustworthy because " and this heuristic doesn't apply to stack somehow.
I do wonder about the security model Travis is using, if the concern is about breaches to the sandboxing—stack has no setuid binaries and is written in a memory-safe language. (This whole whitelist always sounded fishy to me).
But I'm also not a paying customer, so I don't consider myself entitled to anything. And Stack has a reasonable workaround, as opposed to other people suffering from this:
https://github.com/travis-ci/docs-travis-ci-com/commit/cadab12b5a2c8d54b06f89832506ed6bf10e4e72#commitcomment-13989218

This is disappointing. Haskell support is really lacking in Travis.
@BanzaiMan please take a look at the bottom on this page: https://docs.travis-ci.com/user/languages/haskell
These are supposed to be real life examples of projects using Travis' Haskell support. However, none of them actually use the specific Haskell features provided by Travis. They must rely on complicated custom builds to do things that are completely trivial with other platforms. Note the irony: stack itself, as a Haskell project, is advertised in your documentation.
I urge the Travis team to reconsider. Stack is not just some random software that we'd like to see whitelisted for our convenience. It is the opportunity for you to fix the sorry state of Haskell support in Travis by providing the most modern build tool for Haskell project.

@BanzaiMan I removed the non-trusty/precise repositories from this PR. (Let me know if I wasn't supposed to remove wily and xenial)

Great! Thanks @BanzaiMan !!!

http://i.imgur.com/7drHiqr.gif?noredirect

FTFY:


fix and speed up trim null bytes code

The previous code will runtime panic if we
happen to have a byte slice with only 0x00.
And it also resizes the byte slice in every
step hence quite slow.
Speed it up and make it correct by extracting
it out to a helper function. It shaves off 2 seconds
from our testing code.
Fixes #88

Needs rebase

/cc @veorq

It's a thing I report in my audit, it's actually more general than just the all-zero string. According to my analysis there's about 2^54 strings that'll trigger a panic, but that's still negligible even if you process billions of names.

The solution is incorrect and rebase is difficult right now so lets just redo this if you feel that it's a problem.

Forgot to return the trimmed bytes. @jaekwon how did this PR with 1 file turn into 73 files changed?


Multi-cluster services documentation, take II

What happened here: https://github.com/GoogleCloudPlatform/kubernetes/pull/12480

New file make_secrets.go using github.com import path
Pre-commit runs
Kubernetes path changed to k8s.io
Commit

LGTM. Please apply the label when tests pass.


Broken link

http://scaledagileframework.com/business-epic-kanban/  gives a 404.  In the new version it may be this link https://www.scaledagileframework.com/portfolio-kanban/

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

ID: 1c926cb3-ed15-3489-65f8-2a5c1fd129d4
Version Independent ID: 1b441906-10f0-2ec0-d1aa-d3686ff94146
Content: Scaled Agile Framework - Azure Boards
Content Source: docs/boards/plans/scaled-agile-framework.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@kevinpshan  Thank you for the feedback and fixed link.
The document has been updated and is pending review.


[Abandoned] Use well-defined EntryData return values in Airflow catalog connectors

This PR delivers the Airflow connector changes for https://github.com/elyra-ai/elyra/issues/2460.
Requires: https://github.com/elyra-ai/elyra/pull/2492 (identical changes are included in this PR)

What changes were proposed in this pull request?

Adopt the server-side connector API changes
Update connector tests

How was this pull request tested?

Added new automated tests for each connector

Airflow package connector

Add Airflow 1.10.15 built distribution to the catalog (instructions)
Create an Airflow pipeline
Add the DummyOperator to the pipeline (do not use SlackAPIPostOperator, BashOperator, EmailOperator, SimpleHttpOperator, SparkSqlOperator or SparkSubmitOperator)
Export the pipeline
Review the exported DAG: make sure there is a valid import statement for the operator

Run the pipeline

Airflow provider package connector

Add any Airflow 1.10.x compatible provider package to the catalog (instructions) that is installed in the Airflow cluster
Create an Airflow pipeline
Add an operator from the provider package  to the pipeline
Export the pipeline
Review the exported DAG: make sure there is a valid import statement for the operator

Run the pipeline

Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

The contents of this PR don't jive, especially given they comprise multiple recent pull requests and 78 files for something that should just be a few.  Can you please base your changes off master or apply your changes to an equivalently provisioned branch?

Instead of trying to manually resolve merge conflicts (not related to relevant code changes) is abandoned in favor of a new one.


No module named examples

When I run the examples, such as python zhusuan/examples/bayesian_neural_nets/python bayesian_nn.py, I will get the error "ImportError: No module named examples". Please help me. Thank you.

You can use code as follow to add path to your zhusuan dir:
import sys
sys.path.append('Your zhusuan path')

Hi @rzhangpku , since we have organized the examples as a package (python does not allow running modules in it as a script), you could use
python -m examples.bayesian_neural_nets.bayesian_nn

in the main directory.

And thank @lzkmylz for the solution, which will work also.

Anyone has a good idea about how to organize the example scripts into sub directories but still keep them runnable as a script? Contributions welcome.

@thjashin It works, thank you very much!

@lzkmylz Thank you for your solution!


search: Show user pills in search typeahead dropdown.

User pills are shown for relevant user searches in typeahead dropdown menu
Continuation of work done in #26360 and #27997
Fixes: zulip#23365

Screenshots and screen captures:

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[x] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Currently, individual search suggestion is formatted as description_html, search_string and a user_pill_context if it contained any user in last_part . This PR changes it to contain suggestion_parts and search_string. The suggestion_parts array now holds each operator as separate objects with its own description_html, is_person and user_pill_context. The user_pill_context is changed to an array and adds upon all the valid users in the search_query.

I also have a hard time telling with the first commit if it's intended to function correctly without the second one -- does it pass tests? Does it break the UI? It'd be nice if that preparatory refactor can be safe to merge independently of the second commit. More explanation of your technical strategy for this would also be helpful -- I feel like I'm guessing as to why you did things.

Both the commits are now individually mergeable. The PR is now more or less just refactoring changes to suggestion. The only logic currently which introduces new behaviour is in get_suggestion_parts. We iterate over search terms and look for any operators which may require user pills. If any, we store any previous non user pill search term inside a buffer. We build the suggestion_parts by pushing the buffer to Filter.search_description_as_html() as has been done up to now, to not break other operators, and push user_pill_context to an array.
We can just iterate over the user_pill_context now to render user pills.

Both the commits are now individually mergeable. The PR is now more or less just refactoring changes to suggestion. The only logic currently which introduces new behaviour is in get_suggestion_parts. We iterate over search terms and look for any operators which may require user pills. If any, we store any previous non user pill search term inside a buffer. We build the suggestion_parts by pushing the buffer to Filter.search_description_as_html() as has been done up to now, to not break other operators, and push user_pill_context to an array. We can just iterate over the user_pill_context now to render user pills.

Rebased it to main.

I'm not sure if it's a regression, but long names can spill out in a narrow window:

The way the pills on consecutive lines within the same query touch is not ideal, but definitely not a blocker for merging this. @karlstolley noting FYI in case it's helpful.

I'm not sure if it's a regression, but long names can spill out in a narrow window:

@alya I have checked and this bug is present on czo as well.

OK, @pratik-pc would you be up for filing an issue for that bug if you don't expect to fix it right away?

@timabbott Do you want to review again?

I think this needs to be coordinated with the pills work from @evykassirer.

I think we can close this in favor of #30426. I didn't realize there was already an open PR, and I did something that works well with the current pill work I'm doing.

OK. Thanks for the work here, @pratik-pc !


Replace jest with ava for testing

Even tho I love ava's simplicity. Ava is still not widely used for ts project. I am still experimenting and putting together a boilerplate for future use. Once ready, I will use Ava in this project.

fixed in #5


Workload template

Included a template collecting all workload properties into a single file. It shows the defaults and explains usage.

thanks for the contribution!


HHH-9634: Correctly search for sequences (by removing any backticks or quotes from...

... the sequence name) when used in conjunction with hibernate.globally_quoted_identifiers.
I ran across this using postgres 9.4 and trunk hibernate (and recent releases), in conjunction with Spring Data and JPA. When hibernate.globally_quoted_identifiers=true, the string passed in to DatabaseMetadata.isSequence() has backticks around it. The sequences Set in the class is initialised directly from the database, and does not take in to account the quoted identifiers setting.
This patch seemed like the smallest thing that would work (it fixes the immediate issue I was having). Line 201 may be unnecessary - I only saw backpacks being passed in - but added it 'just in case'.
Feel free to use/reject as you like.
Cheers,
Andrew

Thanks for the Pull Request. Did you sign the CLA?

@vladmihalcea this can be merged without needing the CLA.

This class no longer exists in Hibernate 5, and Hibernate 4 is no longer supported.

This class no longer exists in Hibernate 5, and Hibernate 4 is no longer supported.