Wait free extensible hash map

Anyone interested in data structures may be interested in the following http://samos-conference.com/Resources_Samos_Websites/Proceedings_Repository_SAMOS/2013/Files/2013-IC-20.pdf.  I haven't look at it in detail but sounds interesting...wonder if it can be used to supplement ConcurrentHashMap?

It looks like NonBlockingHashMap from Cliff Click has been added to JCTools among other non-blocking collections. I'm not sure if it's wait-free, but it looks promising. Maybe it's worth checking this thing out. WDYT?

I think we can close this


Make KEEPALIVE respect if resume is enabled

This means we can sent keepalive to Java and properly handle the frames it sends back.
Depends on https://github.com/ReactiveSocket/reactivesocket-cpp/pull/242

I've updated this to infer if the client supports resumability based on if it sets the flag or not.

travis failed. Can you fix it/resubmit?

Tests pass locally but master seems broken?


Update AFrame & THREE usage

rework using BufferGeomery instead of Geometry
Update A-Frame to latest in example

Hope this update happens! Just came here to use this component, was sad to see it wasn't available.
How big are the changes needed?

Fixed in v1.0.0


Train/Decode speed comparation with CRF

Hello, your work is very great but I have a question about the speed comparation.
From your code published, when we use the CRF, in the seqlab.py file, the CRF layer only be used to calculate the loss in the  neg_log_liklihood_loss function, but in the forward function, there is nothing with CRF layer.  Did I miss something somewhere ? Hope hear your reply, thank you very much.

Hi, thanks for the kind words about the paper.
The current version does not support CRF baseline. This is because I forgot to add the baseline code before uploading. I will modify it as soon as possible.


Implement 3D data for LSTM RNN -- request

I'm new to this, and I'm not sure where is the appropriate place to make a dev requests. If I am in the wrong place, can someone please redirect me?
I am not an experienced Tensorflow dev or I would try to build this myself, but I think it is a really interesting idea and I would love for another dev to build it.
The idea is for an LSTM RNN to accept 3D data -- such as video frames. I'm interested in papers such as this, where LSTM RNN's are used for object tracking. Also this paper.
Is there a way to do this already in Tensorflow?
I know I can flatten data, but that kind of defeats the point. I want a 3D network. In other words, please look at the attached picture for what I am envisioning.

Each frame is a full layer (in a horizontal direction). The second layer has inputs from both the second frame and the outputs from the first frame.

@ebrevdo Could you take a look at this please?

Perhaps you want each frame convolved with some trainable kernel. See the cell types in tf.contrib.rnn and tf.contrib.grid_rnn.  perhaps something there already does what you want.

Grid LSTM RNNs support n-dimensional inputs in theory, but since the Tensorflow implementation uses the RNNCell object, the network requires a list of inputs, as opposed to say a 3D volume.

I posted this to SO, it may be way I'm looking for. In which case we can close this issue.

Closed per @KendallWeihe as this does sound like more of a design discussion, rather than a bug.


Add Kodiaq 2019 fingerprint

Add Kodiaq 2019 fingerprint

Thanks for the FP data! Since this is the first 2019 Kodiaq we're adding data for, please expand the supported model year range to "2018-19" in the README as well.

What's your dongle ID?

Hi, adeebshihadeh,
My dongle_id is f8a8f3e52154e16a
Hi, jyoung8607,
I try to add the model to README.md, but it's a conflicting file https://github.com/commaai/openpilot/commit/8c44cb24349734204eef0df90c990bb0a7acb1d9
Hi, grekiki,
Thanks for your review, adeebshihadeh has already changed the file.

Hi, jyoung8607,
I try to add the model to README.md, but it's a conflicting file 8c44cb2

Škoda Octavia, right underneath it, was touched to expand its model-year support range after you initially checked out your branch, so the diff doesn't quite match anymore. I think github will give you a UI you can use to fix the conflict, or you can rebase this branch on commaai/master on your side, or apply your changes to a fresh branch based on commaai/master.
If you have trouble with it and need help, I can resubmit this on your behalf, but for those that are willing and able to make their contributions directly, I certainly encourage that.

I created a new pull request https://github.com/commaai/openpilot/pull/22039.
So close this, thank you.

Well that's an interesting solution I suppose :)


build: enable windows in TravisCI

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #49   +/-   ##
=======================================
  Coverage   93.65%   93.65%
=======================================
  Files          12       12
  Lines         473      473
=======================================
  Hits          443      443
  Misses         22       22
  Partials        8        8

Continue to review full report at Codecov.

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


Drag and drop is not work in IE.

I have done . Rename, new folder , new tag , rename. But i am not able to do drag and drop.

Please help on this issue...


Linkify log URLs

This splits log messages by spaces and uses anchor tags to display clickable links before stitching them back together.
Should do some due diligence to solve any potential security issues arising from pre-fetching before merging.

Okay, this does two things now:

Adds basic linkification to logs
Adds a /test/ directory to the gui which contains pages only for the purposes of testing UI components without relying on actual data or context from real pages. This will give a good place to develop many variants of a single component and focus on front-end functionality and styling, as well as serve as a place to reference how components might be used.

As mentioned elsewhere, it would be nice if we could effectively remove /test/ from the repository right when the app is being bundled as these pages should not be concluded in the production app. They should however be part of the git repository so that anybody on the team can use and share test pages.

Parsing improved but still an inefficient algorithm

Also I'm not sure what precisely what you mean by retesting each element @brandonbloom, assuming you're referring to the Svelte component re-computing the linkified message I'm not sure when/why this happens but if it's an issue then I might suggest this parsing should be moved to the backend somehow such that the Svelte component doesn't need to run significant logic for every message multiple times.


How to: reference with @

I find it's a pleasing experience to write pseudo code with this package.
However, I find myself stuck with how to reference an algorithm using<EMAIL_ADDRESS>tried below to label my algorithm but it doesn't work with error: cannot reference sequence. I label my algorithm with @algo1[Algorithm]as below:
#algo(
  title: [                    // note that title and parameters
    #set text(size: 15pt)     // can be content
    #emph(smallcaps("Curiosity driven exploration for molecule generation"))
  ],
  parameters: ([#math.italic("n")],),
  comment-prefix: [#sym.triangle.stroked.r ],
  comment-styles: (fill: rgb(100%, 0%, 0%)),
  indent-size: 15pt,
  indent-guides: 1pt + gray,
  row-gutter: 5pt,
  column-gutter: 5pt,
  inset: 5pt,
  stroke: 2pt + black,
  fill: none,
)[
"content of algorithm"
] <algo1>

I'm a beginner of typst, this is what I learned to achieve reference. I'm not sure if it also works with returns of #algo. Otherwise is there any other workaround to refer an algorithm as we do in Latex? I just need at least a basic way to refer my own algorithms.

You are correct, algo returns "plain content", so you cannot directly attach a label. You can get around this by manually wrapping it in a figure:
#let my-algo(...) = {
  #figure(algo(...), kind: "algorithm")
}

#my-algo(...)[...] <algo1>

In the future, I will do a complete rewrite of the package, and one of the changes I'll make is have algo output a figure to bring it in line with similar packages. Currently, I'm waiting for some critical features to land in Typst so I can implement all my planned improvements at once.


[WFLY-15503] Remove duplicate if/else block (weld)

Fixes https://issues.redhat.com/browse/WFLY-15503

@manovotn extremely embarrassing. Fixed.


OMPRESS-565 : add BufferPool support in zstd

Add BufferPool as a configuration of ZstdCompressorInputStream

Coverage increased (+0.003%) to 87.355% when pulling bad3f68a7c6f7e0759ccbb0fc93c83d5860178ed on PeterAlfredLee:COMPRESS-564 into fdeacdb6d9eefb24f5ff29cdb4561aebc8d5b9ae on apache:master.

See also #163

Thanks @PeterAlfredLee!
This LGTM for the use case where callers are using the ZstdCompressorInputStream constructor directly.
How might we support the CompressorStreamFactory.createCompressorInputStream(InputStream) use case?

See also #163

I can't see much differences between 1.4.8-1 and 1.4.8-3 of zstd-jni. Besides that, 1.4.8-4 is on the way(released 2 days ago).
I think we can leave the pom as it is.

How might we support the CompressorStreamFactory.createCompressorInputStream(InputStream) use case?

-1. We do not support detailed configurations in CompressorStreamFactory. It's a simple input stream factory with compressor type detectors. I think we should keep it simple enough.

How might we support the CompressorStreamFactory.createCompressorInputStream(InputStream) use case?

-1. We do not support detailed configurations in CompressorStreamFactory. It's a simple input stream factory with compressor type detectors. I think we should keep it simple enough.

Fair enough.  I can do the stream format check beforehand; I use CompressorStreamFactory as a fallback.


WHY
github.event.ref is empty on push
FURTHER NOTES
see https://stackoverflow.com/questions/62779643/how-to-extract-branch-name-on-delete-event-github-actions

green! should fix #37


Cannot run example on local

When I followed the README instruction, I got some errors and couldn't run.
npm install produces these errors
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/vue
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@lang/object-visualizer
npm ERR<EMAIL_ADDRESS>from the root project

but nom install --force worked.
after that, I ran nom run dev, but it didnt load the page at all.
How can I run this repo on local?
Thanks
Env

node v18.10.0
npm 9.5.1

Hi @Gumichocopengin8, I have run this project months ago. I think a lower version such as Node v14 should be set in your machine and you'd better follow the steps described in the README of dev branch.

Thank you. it works with node v16


Packages with a / in the name don't work.

If I have a package named company/my-package, tsd does not like it:
$ ./node_modules/.bin/tsd reinstall

-> running reinstall
path not in index, attempt-adding: company/my-package.d.ts

-> an error occured!

Cannot read property 'commit' of null
TypeError: Cannot read property 'commit' of null
    at ContentLoader.loadContent (/Users/brad/company/my-package/node_modules/tsd/build/tsd/logic/ContentLoader.js:44:63)
    at /Users/brad/company/my-package/node_modules/tsd/build/tsd/logic/Installer.js:75:39
    at tryCatch1 (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/util.js:63:19)
    at Promise$_callHandler [as _callHandler] (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/promise.js:695:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/promise.js:711:18)
    at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/promise.js:868:14)
    at Promise$_settlePromises [as _settlePromises] (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/promise.js:1006:14)
    at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/async.js:74:12)
    at Async$consumeFunctionBuffer (/Users/brad/company/my-package/node_modules/tsd/node_modules/bluebird/js/main/async.js:37:14)
    at process._tickCallback (node.js:355:11)

In my tsd.json I have:
{
  "version": "v4",
  "repo": "bradleyayers/DefinitelyTyped",
  "ref": "master",
  "path": "typings",
  "bundle": "typings/tsd.d.ts",
  "installed": {
    "company/my-package/my-package.d.ts": {
      "commit": "fda66b9a46152725dff5fa0efc0884b6a104744d"
    }
  }
}

Do we want to add support for these types of packages? In my case I've got a bunch of smaller projects that I want to share definition files between them. They're published on NPM under a scope @company, so for example I would do npm install @company/my-package.

@bradleyayers Yes, I think this is something that should be supported. I'm going to be looking into and proposing some updates soon, so I'll keep you posted as I work on this.


Question about Maybe

Hi! I have some questions about Slide 4 of Lecture 7. (1) Why is there a <T> in the method: static <T> Maybe<T> of (T thing), and (2) why is the method called “of” and (3) declared static? I tried to find online resources but I don’t really know what to search. (4) Also, I don’t really understand what a context is - is there an intuitive way of looking at it? Tanks in advance!

Hi, Prof Henry has already went through your questions pretty comprehensively in the lecture, so you may want to watch the lecture web-cast on Luminus for the full explanation.
In any case:

.of() is a factory method, which means that it is a way for the client to create the object without calling new ImList<Integer> for example. However, when generics are involved, the factory method cannot reference the <T> defined in the class, because the object hasn't even been created yet. So the  in the static <T> Maybe<T> of (T thing) is referring to a DIFFERENT generic. You can code out the lecture code and change the Ts there to U or any other alphabet and java will still compile it.

The method is called .of() simply by convention, which indicates that you want to create an object of (something). For example, consider List.of(1,2,3) means that we want to create a List containing 1,2,3.

Reason the .of() method is declared as static is precisely because it is a factory method, something like a constructor. The object hasn't been created yet, so in order to be able to access that method, it has to belong to the class Maybe directly, instead of an instance of Maybe, which is why we use static.

Can't really describe this words, but maybe you can try rewatching the lectures and try the practice exercises on codecrunch to get a feel of what a context is.

Hope this helps!


Groups not returned for secondary user stores in SCIM users endpoint

Describe the issue:
I've used the below request in IS 5.9, where the US1 is a domain name of the secondary user store.
curl --location --request GET 'https://localhost:9443/scim2/Users?domain=US1' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \

The above request returned the following response which doesn't include the groups of the member.
{
    "totalResults": 1,
    "startIndex": 1,
    "itemsPerPage": 1,
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "Resources": [
        {
            "meta": {
                "created": "2020-06-29T11:03:16.343Z",
                "location": "https://localhost:9443/scim2/Users/e4411eae-2d03-49f0-a370-84934e59a4ce",
                "lastModified": "2020-06-29T11:03:16.343Z",
                "resourceType": "User"
            },
            "id": "e4411eae-2d03-49f0-a370-84934e59a4ce",
            "userName": "US1/user1"
        }
    ]
}

However, to confirm whether the above user is having some roles, I made the request https://localhost:9443/scim2/Users/e4411eae-2d03-49f0-a370-84934e59a4ce and obtained the following response.
{
    "meta": {
        "created": "2020-06-29T11:03:16.343Z",
        "location": "https://localhost:9443/scim2/Users/e4411eae-2d03-49f0-a370-84934e59a4ce",
        "lastModified": "2020-06-29T11:03:16.343Z",
        "resourceType": "User"
    },
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:User",
        "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
    ],
    "roles": [
        {
            "type": "default",
            "value": "US1/role1,Internal/everyone"
        }
    ],
    "groups": [
        {
            "display": "US1/role1"
        }
    ],
    "id": "e4411eae-2d03-49f0-a370-84934e59a4ce",
    "userName": "US1/user1"
}

Whilst, it returns the groups as well for the users resides in the Primary user store as follows.
{
    "totalResults": 1,
    "startIndex": 1,
    "itemsPerPage": 1,
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "Resources": [
        {
            "emails": [
<EMAIL_ADDRESS>            ],
            "meta": {
                "created": "2020-06-26T03:19:14.717Z",
                "location": "https://localhost:9443/scim2/Users/9c26ca34-ae5a-4448-b70b-7f9ee6706002",
                "lastModified": "2020-06-29T15:49:53.358Z",
                "resourceType": "User"
            },
            "name": {
                "givenName": "Alex",
                "familyName": "Cru"
            },
            "groups": [
                {
                    "display": "TestRole1",
                    "value": "009acd9d-0ddc-4e99-965a-711796562e9e",
                    "$ref": "https://localhost:9443/scim2/Groups/009acd9d-0ddc-4e99-965a-711796562e9e"
                }
            ],
            "id": "9c26ca34-ae5a-4448-b70b-7f9ee6706002",
            "userName": "user2"
        }
    ]
}

Analyzing the code, at the line [1], the externalRoles variable contains the hashmap {"US1/user1":["US1/role1"]}, whilst the userName contains the value user1, which results in externalRoles.get(userName) being null. This should be fixed for JDBC and LDAP user-stores.
Expected behavior:
It should include the groups for secondary user stores as well.
[1] https://github.com/wso2-support/carbon4-kernel/blob/support-4.5.1/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserStoreManager.java#L6536

Fixed with https://github.com/wso2/carbon-kernel/pull/2714


Fix golangci-lint config warnings

What does this PR do?

Fix warnings in golangci-lint configuration file.
Motivation

Not have VSCode complain whenever I open the file.
Also those warnings are often about deprecated options so we should migrate to supported options to avoid future issues.
Additional Notes

There is still a warning about errcheck "ignore" being deprecated in favor of "exclude-functions", but it's not a drop-in replacement (requires listing every function to ignore one by one).
I asked on errcheck about it https://github.com/kisielk/errcheck/issues/250.
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


python312Packages.pyais: init at 2.6.5

Module for decoding and encoding AIS messages (AIVDM/AIVDO)
https://github.com/M0r13n/pyais
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 311680 run on x86_64-linux 1

4 packages built:

python311Packages.pyais
python311Packages.pyais.dist
python312Packages.pyais
python312Packages.pyais.dist


the code release time

Thanks for the great work! When will the code be released?

Thanks for the interest in our work! I am working on other things currently. We plan to publish our code soon (hopefully finished next month).


Remote Access/VPN: 'issues' typo correction

As reported in (issue) ticket #4756 (Typo), a typo exists in the phrasing "The VPN client then sends the certificate issues by Azure AD to the VPN [...]"
"issues by" is incorrect and confusing, it needs to be "issued by".
Thanks to @kuglidani for noticing and reporting the typo issue (pun intended).
Additional whitespace improvements:

added MarkDown indent marker compatibility spacing (> Applies to:)
added missing indent spacing for Procedure line numbers 6a + 6b

Closes #4756

#sign-off


Added seneca testing @1.x.x and 2.x.x

Coverage remained the same at 91.275% when pulling 30a73d909955627b45ad653ada1daa0d90e1533e on shanel262:cleanup into d275475a1b4b0b079d5212d9d6b89b711180bd72 on rjrodger:master.

Coverage remained the same at 91.275% when pulling 29a3f79977bb4d649c8fae25d8853393e4afad46 on shanel262:cleanup into d275475a1b4b0b079d5212d9d6b89b711180bd72 on rjrodger:master.

@shanel262 Fabulous work!


[NEW] Implement the new command EXZINTERCARD

Description of the feature
The new command ZINTERCARD was introduced in Redis 7.0. We can implement this command, too.
Additional information
https://redis.io/commands/zintercard/

Close with #13.


Problem with and Ember js object and Slip.js

Hi, very nice plugin btw.
I'm using it on an Ember JS application for Drag & Drop dynamic div elements that reflects an Ember js object.
I face the problem that when taking the first element on the list for putting it as the last element, then the element was duplicated. I found out that your function for "reorder":
list.addEventListener('slip:reorder', function(e) {
    // e.target list item reordered.
    if (reorderedOK) {
        e.target.parentNode.insertBefore(e.target, e.detail.insertBefore);
    } else {
        // element will fly back to original position
        e.preventDefault();
    }
});

when taking any element of the list to move it as last element, e.detail.insertBefore = null and it seems that insertBefore do not handle that situation properly, so I need it to implemented this way:
if (e.detail.insertBefore != null) {
     e.target.parentNode.insertBefore(e.target, e.detail.insertBefore);
} else {
     e.target.parentNode.insertBefore(e.target, e.target.nextSibling);
}

don't know if it's the best approach but I think you should take a look at what is happening when e.detail.insertBefore = null.
Best ;)

If I remember correctly I was assuming that insertBefore(…, null) is the same as appendChild(…)


sharing our html displays beyond members of erc-dharma on GitHub

@ajaniak : I have been discussing with Marine and Manu ways in which we can share our html displays with non project members (e.g., the participants of my EPHE seminar).
Marine proposed this:

https://htmlpreview.github.io/?https://github.com/m-schoettel/docs/blob/master/inscriptions/Kabhagavanan2020-08-30.html
Si on prend ce lien, on voit qu'il est fait de deux parties :

une première URL qui sert de "préfixe" et qui permet d'interpréter une ressource en html : https://htmlpreview.github.io/?
une deuxième URL qui est simplement l'adresse du fichier html sur le repo github :
https://github.com/m-schoettel/docs/blob/master/inscriptions/Kabhagavanan2020-08-30.html

Il suffit donc de préfixer les URL hébergeant tes éditions par https://htmlpreview.github.io/? pour obtenir le lien vers l'édition visualisée. Il faut aussi veiller à ce que le fichier css mentionné dans le html (ici <link rel="stylesheet" type="text/css" href="./../inscriptions/global.css"/>) soit bien accessible sur le repos git. J'espère que cela marchera bien, n'hésite pas à tester et à revenir vers moi pour davantage de précisions. Tu peux aussi trouver plus de détails sur le repository git du projet : https://github.com/htmlpreview/htmlpreview.github.com

I tried to use this approach by moving global.css and an .html file from my (untracked) local version of https://github.com/erc-dharma/project-documentation/tree/master/stylesheets/output into a newly created folder https://github.com/erc-dharma/tfc-nusantara-epigraphy/tree/master/output which I did push to github. But clicking on the URL https://github.com/erc-dharma/tfc-nusantara-epigraphy/blob/master/output/WuruduKidul2020-10-01.html just shows the code — it doesn't display the html in my browser.
Manu has proposed some other tricks, like pushing the button "Open this file in GitHub Desktop", but they haven't worked for me either.
Can you propose a solution? Thanks!

Considering the solution from Marine, I am not sure not only it is not really clean, we don't have the hand of this tool and I already have the following error message so on a long run I wonder if it will be sustainable for your EPHE seminar : Error: Cannot load https://raw.githubusercontent.com/m-schoettel/docs/master/inscriptions/Kabhagavanan2020-08-30.html: 429 Too Many Requests
I wonder why you don't ask people to download the html and open it on their web navigator? It is the easiest solution for everyone, since indeed github purposes is not to display interpreted version of htmls but to show the codes itself. You can't ask a system to do what it isn't supposed to do.
If really, you want a cleaner way to show your htmls, I would recommend setting up a github website.

Thanks. If I send the html's to participants, as you suggest, then I  need to send along global.css and tell participants to store the two files in one folder, before opening the html in a browser, right?

No, you don't.
I have changed the css calling now the css is fetched from online once Manu shared the subject with me. From now on, the htmls can be stored anywhere without fear to break the link with the CSS.  However, on the downsides, it means that the one receiving it will need an internet connexion. And since gitHub can't handled directly the content-type css, but only text/plain, I add to use a translator to make it work and I am not sure how long it is work perfectly.
By the way, the previous system wasn't working at the folder level. That's why the css wasn't taken into account.
However, if several members of the project requires a cleaner way to display. I can set up github pages at the organization level so that one system can be used by everyone when needed. But since it will take time to set it up and maintain it, i would ask all of you to be sure you really need it before starting on this side project.

I am fine with Arlo's final stand. Let us keep this issue open, as a not-pressing one.

I realize I have forgotten to tell you that such a system will have among the downside a short memory cached. So any changes in the CSS pushed on github will always take at least to 2 hours to implement!

Thanks. We'll take that into account when we return to this issue, in due course.

Update: sending htmls seems not to be posing any trouble. So maybe this issue can be closed?


reorganize cython build; working on os x

@ajfriend -- this should work now on OS X at least.  Still having issues porting over the manylinux build.

It looks like CI (Appveyor) is failing, perhaps related to the files being moved in this PR? Is that expected?

Apologies I didn't see this until this morning! (I was on vacation last week, and only periodically checking #41)
I clone the PR, but I'm still getting an install issue when I run make init. @isaacbrodsky, could you check to see if you have the same issue?
Here is the output I'm seeing.

I got a very similar output when I tried running on OSX. I added LANGUAGES C to line 16 (project definition) in CMakeLists.txt. After that I reran make init and it seemed to build successfully, I was able to run h3.geo_to_h3(0, 0, 0) from IPython.

That worked for me. I made the following changes

changed the project definition in CMakeLists.txt to project(h3core-py VERSION "${version}" LANGUAGES C)
added env/bin/pip install dist/*.whl to the make init rule
changed the import at the top of tests/test.py to from h3 import h3

@kwmsmith @isaacbrodsky If the CI issues are easy, we should go ahead and fix. If not, I don't think we should block on it. I'd lean towards just merging this and trying to fix them in a future PR. If this version runs on our machines, then I can start merging in my changes to help move things along.
What do you all think?

What do you all think?

✅ -- sounds good to me.


Bug: tailwind plugins import issue

Terms

[X] I have read the guidelines for Contributing to Roots Projects
[X] This request is not a duplicate of an existing issue
[X] I have read the docs and followed them (if applicable)
[X] I have seached the Roots Discourse for answers and followed them (if applicable)
[X] This is not a personal support request that should be posted on the Roots Discourse community

Description
after update bud 6.12.0:
npm run dev

> dev
> bud dev

[fs] [tailwind.config.js] › ⚠  tailwind.config.js causes an exception when imported.
Since tailwind.config.js does not appear to be a bud configuration file, bud.js is not throwing. Original error follows:

BudError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

 ConfigError

✘ Error in bud.config.js

 BudError

✘ Cannot read properties of undefined (reading 'default')

☰ Stack trace
    at get config [as config] (node_modules/@roots/bud-tailwindcss/lib/extension/index.js:46:48)
    at BudTailwindCss.resolveThemeValue (node_modules/@roots/bud-tailwindcss/lib/extension/index.js:61:39)
    at WordPressThemeJSON.useTailwindColors (node_modules/@roots/bud-tailwindcss-theme-json/lib/extension.js:24:78)
    at default (bud.config.js:62:4)

ℹ See file /bud.config.js

Steps To Reproduce
bud.config.js does not work with tailwind plugin.
Expected Behavior
running
Actual Behavior
/** @type {import('tailwindcss').Config} config */
const config = {
  content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
  theme: {
    extend: {
      colors: {}, // Extend Tailwind's default colors
    },
  },
  plugins: [
      require('@tailwindcss/forms'),
      require('@tailwindcss/typography'),
  ],
};

export default config;

Relevant Log Output
No response
Versions
10.5.1

after back to tailwind.config.cjs and module.exports config, works.

@kukac7 this is because you have imported Tailwind plugins using require() which will not work for an ESM config file.
      require('@tailwindcss/forms'),
      require('@tailwindcss/typography'),

You will need to do something like this:
import tailwindFormsPlugin from '@tailwindcss/forms';
import tailwindTypographyPlugin from '@tailwindcss/typography';

/** @type {import('tailwindcss').Config} config */
const config = {
  content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
  theme: {
    extend: {
      colors: {}, // Extend Tailwind's default colors
    },
  },
  plugins: [
    tailwindFormsPlugin,
    tailwindTypographyPlugin,
  ],
};

export default config;

@kellymears can we get Bud docs updated? I don't mind submitting a PR to explain this if it helps.

@codepuncher you're right, thanks!


AWS Bdoc draft

This is a draft template for the team to fill out. It should not be published until the service is GA and platform-supported.


[Server] use get_conversation_template to make model template

we can use get_conversation_template method, then we don't need to specified chat_template,  when new models add,
we don't need to change our code, because the get_conversation_template method will first find the correct model adapter
,then use it's get_default_conv_template to get conv template. which is easy to use than before.
def get_conversation_template(model_path: str) -> Conversation:
    adapter = get_model_adapter(model_path)
    return adapter.get_default_conv_template(model_path)

A lots of model still not merge to FastChat yet, but some of them just have the same Conversation templeate of previous, I don't think this is a flexible change and get_conv_template(chat_template) should be better to developer.


RFID works but I like to do Walt Disney World Magicbands 2

Hi
Please could you help.
I wondered if you were able to add Walt Disney World Mgaicbands support to your Makecode Blocks? As I would like to use them whilst I am at home using a Micro:bit. But I cannot get the RC522 RFID Reader Module to read any Walt Disney World Magic Bands.
I have seen that others have managed to get the Mini RC522 RFID Reader Module to work on the Arduino. So I have tried the Mini RC522 RFID Reader Module with your Makecode Blocks, but cannot get it to work?
Is it possible for you to modify your Makecode Blocks to work with the Mini RC522 RFID Reader Module aswell?
Kind regards
Tim

Hello Tim,
sorry for the late reply. Can you give me some more information about the project with the Magicbands and the Arduino? Maybe a link or something else?
Were you able to successfully test your RFID Reader with a regular RFID tag?
Best regards
Jens


0.7.1 dev8

Poetry update

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5250832) 34.64% compared to head (f268307) 34.64%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   34.64%   34.64%
=======================================
  Files           3        3
  Lines         153      153
  Branches       19       19
=======================================
  Hits           53       53
  Misses         98       98
  Partials        2        2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Issues redirecting programmatically with push()

My setup:
import { HashRouter } from 'react-router-dom'
import createHistory from 'history/createBrowserHistory'
import { Route } from 'react-router'

import { ConnectedRouter, routerReducer, routerMiddleware, push } from 'react-router-redux'

// Create a history of your choosing (we're using a browser history in this case)
const history = createHistory()

// Build the middleware for intercepting and dispatching navigation actions
const middleware = routerMiddleware(history)

// Add the reducer to your store on the `router` key
// Also apply our middleware for navigating
const store = createStore(
  reducers,
  applyMiddleware(middleware)
)

const render = () => {
  ReactDOM.render(
    <AppContainer>
      <Provider store={store}>
      	<ConnectedRouter history={history}>
          <HashRouter>

                  <Route exact path="/" component={Feed} />
          	  <Route exact path="/add" component={AddStory} />

          </HashRouter>
	 </ConnectedRouter>
      </Provider>
    </AppContainer>,
    document.getElementById('root')
  );
};

I then at another part of my code attempt to redirect from a container component
const mapDispatchToProps = (dispatch, ownProps) => {
  console.log('ownProps', ownProps)

  return {
    submitStory: (story) => {
      dispatch(createStory({
      	title: story.match(/^(.+)\n?/)[1],
      	body: story
      }))
    },
    doAction: (action) => {
      switch(action) {
        case "STORY_ADDED":
          console.log('PUSHING');
          ownProps.history.push('/')
          dispatch(push('/'))
          break;
        default:
          return null
      }
    }
  }
}

There are several issues I'm encountering. One is if I attempt dispatch(ownProps.history.push('/') I get an error in the middleware about the action being undefined. This is easy to understand since ownProps.history.push('/') returns undefined; though it will redirect; but only once. If I try to use the push that comes from react-router-redux I get a proper action object returned, but no redirect with dispatch(push('/')).
As you can see I attempted to remedy the situation by calling ownProps.history.push('/') then dispatching with react-router-redux push so I have proper action object but this only works once as well. My component's shouldComponentUpdate method never triggers on the state update; even though a new state is clearly produced; adding a new story in the view I'm attempting to redirect to.
Any help would be greatly appreciated.

Read this for the second part: https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md
However, this is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!


Add simple in prompt

Issues :-(
Links

[L43] https://webchat.oftc.net/?channels=fish SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed


DOC/FIX - message property is mandatory

I tried to use the code as is and got a promise rejection

Thanks!


Aliases incorrectly attach themselves to directories

When I try to open a file in my ~/Dropbox directory, (anywhere under it, really) dmenu-extended opens the dropbox program. When I try to open a video in my ~/Videos directory, dmenu-extended opens the program called Videos (via the desktop file which calls it Videos in GNOME but is really Totem). Removing these aliases from the lookup table fixes it temporarily, but then the problem reappears each time the cache is rebuilt.

Hi there,
I'm so sorry it has taken me so long to respond to this issue.
Would you be so kind as to try the latest version of dmenu-extended and see if this has fixed the problem you were having?

Closing due to inactivity.


Improve Error message for "Can't satisfy requested version tag"

It's about  SR-441 issue
It happens when requested version tag can't be found.
The error message doesn't provide enough information about what happened exactly and how to fix it.
Before:
error: The dependency graph could not be satisfied (/Hello/LibADep)
Now:
error: The dependency graph could not be satisfied. The package (/Hello/LibADep) with version tag in range (1.0.0..<1.0.1) is not found. Found tags ([0.1.0])

Post the refractor this needs to be merged, I can do it, or you can. I am happy to do it since I caused the problem.

I will do it with happiness :), same as for other RP to.


Centos2alma-1.4.0 - ERROR global name 'dnf' is not defined

Hi, I am running Centos2alma-1.4.0 on Product version: Plesk Obsidian <IP_ADDRESS>  OS version: CentOS 7.9.2009 x86_64
When performing Centos2alma it stops with errors:
From  /var/log/leapp/leapp-report.txt
File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/repofileutils.py", line 54, in get_repodirs
with dnf.base.Base() as base:
NameError: global name 'dnf' is not defined
From  /var/log/plesk/centos2alma.log
INFO - Actor system_facts unexpectedly terminated with exit code: 1 - Please check the above details
ERROR - Command ['/usr/bin/leapp', 'preupgrade'] failed with return code 1
ERROR - Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1.
DEBUG - Going to write json '/usr/local/psa/var/centos2alma/actions.json' with new data
DEBUG - Sent error report
DEBUG - Trying to send status of conversion by report-update utility '/var/cache/parallels_installer/report-update'
ERROR - centos2alma process has failed. Error: Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1.
INFO - Going to free lockfile '/usr/local/psa/var/centos2alma/centos2alma.lock'...
~

The dnf python2 module should be installed along with the leapp packages because it is required for leapp. Can you check if the python2-dnf package is installed?
If the package is installed, do you have any custom settings in the path variables ($PATH, $PYTHONPATH, etc)?


WrapContent not work.

Match_Parent Htextview ok but WrapContent it show wrong.

in my case, 1 digit to 2 digits number will cut, even using match_parent.
I use fall animator.

sorry， the library not support wrap_content up to now

I mean I used match_parent, but when number from 1 digit to 2 digits, like 9 -> 12, the 1 is cut.

有什么好的方法可以在使用wrapcontent的时候保证字不飞出去屏幕吗

fixed: https://github.com/hanks-zyh/HTextView/commit/15ccfa93388e935e3f24ffe3cbadc7330427e6b6


Added duration length equality function

added a function for testing equality of duration length between
interval objects. Strict Equality still defined as equivalent start and
end for two MayaInterval objects
could use some of the TypeDecoration in the library by @moin18 which i don't know much about.
Addresses #73
Signed-off-by: Evan.Mattiza<EMAIL_ADDRESS>

add to whitelist

I think we don't need this function. All it does is to check the duration property of the MayaInterval objects. If someone want to do it, it is cleaner to do it explicitly as interval1.duration == interval2.d.

I don't think this is needed.


[DEVOPS-943] release.nix: pass buildNum to installer

Fixes the issue where Linux Daedalus was not showing the build number in the title bar.
This PR targets base branch release/0.11.0, if there will be another RC. If there will not be another RC, then I will shift this to release/0.11.1.

@rvl there will be another RC due to this one: https://github.com/input-output-hk/daedalus/pull/1003


Avoid adding duplicate shader for KHR_techniques_webgl

I ran into an issue where two programs used the same vertex shader, and that shader object would get added twice to extras.KHR_techniques_webgl.shaders. This caused problems when writing resources later on.
@ggetz could you review?

I noticed it in a few places so I updated addToArray to check for duplicates (optionally).

Thanks for the update @lilleyse!


listNotifications can miss or "duplicate" notifications due to local clock drift

Describe the bug
My system clock is a few seconds behind real-time. When I check my notifications, often one or more notifications I've already seen are re-included and highlighted as unread.
Even if my system clock were 100% accurate, there's still a race condition window here.
To Reproduce
Set your system clock to something a few minutes into the past, receive a new notification, and see what happens (click onto and away from the notifications tab, multiple times)
Expected behavior
On repeated visits to the notification tab, a previously-seen notification should never be highlighted as unseen.
Additional context
The last-seen timestamp sent to the server via app.bsky.notification.updateSeen is ultimately based on the local clock of the client
https://github.com/bluesky-social/social-app/blob/44b3929240736ead1740efa791e9f4aaf792f2f4/src/state/models/feeds/notifications.ts#L349
whereas the server uses its own clock to determine notification unseen-ness when returning notifications via app.bsky.notification.listNotifications.
I'm not sure what the best fix for this would be - perhaps the listNotifications query ought to return the server's timestamp (or maybe an opaque cursor-like string) in its response (in which case, perhaps this issue ought to be moved to the atproto repo)
Edit: not 100% sure about the above description, I'm testing now and getting some weird results (I set my clock backwards, and now my notifications seem to have stopped updating entirely...), I'll update once I figure out what's actually going on
Edit: Ok, the weirdness was just because I confused my browser's cache with the time changes, if I clear my cache after the clock change, everything behaves roughly as described above. (tested in both Firefox and Chromium now)

It just occurred to me that each notification event already has its own indexedAt timestamp, so the timestamp of the most recently received notification could be used to set updateSeen

There might be some other sanity checks needed, but generally having client use "greater of indexedAt or local system time, up to some sane time limit in the future" for updateSeen seems like a good resolution for this specific issue.

@estrattonbailey bryan's suggestion sounds right to me, can you hit that?


refactor: Change internal local imports to be relative

I noticed that the code has a lot of absolute imports for mawpy. This can be problematic if at some point the package name change for some reason. See
https://github.com/uw-ssec/MAWpy/blob/f5cda5d88f4150a8a5684ecc07a9b31d62703903/src/mawpy/steps/incremental_clustering.py#L19-L24
I highly recommend to protect this and reduce repetition in the code, let's do relative imports.
For example in the incremental_clustering.py code like above, the mawpy import can simply change to
 from ..constants import (USER_ID, STAY_DUR, ORIG_LAT, STAY_LAT, STAY_LONG, STAY_UNC, ORIG_LONG, ORIG_UNC, STAY,
                              UNIX_START_T, IC_COLUMNS)
 from ..distance import distance
 from ..utilities.common import get_combined_stay, get_stay_groups
 from ..utilities.cluster import Cluster
 from ..utilities.preprocessing import get_preprocessed_dataframe, get_list_of_chunks_by_column, execute_parallel

This is one example, but changes within the whole codebase need to happen for this. 😄

Understood the brevity point. I have a quick question.
For relative imports, since it does not use an absolute path, this becomes fragile when files are moved around from one directory to another, right?

A text from PEP8:
Absolute imports are recommended, as they are usually more readable and tend to be better behaved (or at least give better error messages) if the import system is incorrectly configured (such as when a directory inside a package ends up on sys.path):
import mypkg.sibling
from mypkg import sibling
from mypkg.sibling import example

However, explicit relative imports are an acceptable alternative to absolute imports, especially when dealing with complex package layouts where using absolute imports would be unnecessarily verbose:
from . import sibling
from .sibling import example

Standard library code should avoid complex package layouts and always use absolute imports.
My comment on this:
I doubt that this package will change naming anytime soon, so feel free to use absolute import. I personally like the relative one to decrease the verbosity and it's easier to change package names, and also make it clear that the section of relative import means that this is the local package.

I've merged https://github.com/uw-ssec/MAWpy/pull/83 and that uses relative imports, whatever you decide, please ensure that it's consistent in the codebase 😄


CALM member addition

@vanbroup could you review this please?

Thanks for the PR, I will review hopefully next week, else the week after.


download links via the context menus not work

upgrade to iceweasel 132.0.2
download links via the context menus function disappears
But the kit itself functions fine

Hello @kai456789,
Hum, I didn't know the existence of iceweasel, so I look up a bit... It seems to be a Firefox version.
I didn't found how to insall it on macOS or PopOS (ubuntu) so it will be difficult to debug.
On your side, you can go on about:debugging#/runtime/this-firefox > Examinate on my extension. A window should open and you can click on the Console tab.
Reload a Web page on you browser to check if any errors comes up.

Hello @kai456789,
Hum, I didn't know the existence of iceweasel, so I look up a bit... It seems to be a Firefox version.
I didn't found how to insall it on macOS or PopOS (ubuntu) so it will be difficult to debug.
On your side, you can go on about:debugging#/runtime/this-firefox > Examinate on my extension. A window should open and you can click on the Console tab.
Reload a Web page on you browser to check if any errors comes up.

The next day, after restarting the computer, the issue disappeared.


Could I run it in mobile device?

Great repo. Could I run it in mobile device?

I’ve never developed a mobile application before using Unity so I don’t know if this project would work without modifications.
To make it work on mobile the Mediapipe libraries would need to be built for iOS, Android…

Thank for your great work.
I will publish the application here.
https://vtubershop.booth.pm/items/4275972

Thank for your great work.
I will publish the application here.
https://vtubershop.booth.pm/items/4275972


Audit Selects / Reads

pgAudit supports auditing reads / selects. Is this possible with supa audit?

supa_audit only audits record changes. User activity like selects is not monitored
pgAudit would be the recommended tool for that


Suggestion: Challenge - ES6: Use * to Import Everything from a File - ideas for improving the challenge

ES6: Use * to Import Everything from a File
Issue
I believe it would be an improvement to this challenge if the user were tasked to do something with the imported object, using the dot notation mentioned in the description.
The challenge isn't showcasing any real use of import 'everything', when the import is only one function.
Suggestion
The import file would contain a set of string methods, one of them being capitalizeString.
The user would be tasked with importing everything and using one of the imported functions.
The string and function call would be included in the challenge seed:
"use strict";
stringMethods.capitalizeString("hello");

I would be interested in working on this.

Take the first pass at it.  Once the challenge and instructions are finalized, I will revise my PR for the testString.

Will do!

@RandellDawson I've hit a roadblock with allowing a dynamic object name in the test. I was wondering if you could help me figure it out.
The seed will be:
"use strict";
stringFunctions.capitalizeString("howdy!");

The straightforward solution will be:
"use strict";
import * as stringFunctions from "stringFunctions";
stringFunctions.capitalizeString("howdy!");

However, I'd like to make it so that the user can select a different object name and still have it work. For example, this solution would be accepted:
"use strict";
import * as aDifferentObjectName from "stringFunctions";
aDifferentObjectName .capitalizeString("howdy!");

Is this possible?

@alanpaulprice That should be possible with regex albeit a complicated one.
This arises a new problem - currently we're checking for the whole solution as a string and matching a certain pattern.
One way I can think of is by asking the user to assign that object to our provided variable.
Such as:
const ourStringObject = whateverImportedObjectName;

And then we can check if ourStringObject is passing all the tests correctly.

@ezioda004

That should be possible with regex albeit a complicated one.

Maybe we could use a capture group to compare the name of the object used to store the imported data vs the object that is having the .capitalizeString method called on it? I think I could write the test for that.

One way I can think of is by asking the user to assign that object to our provided variable.

Would the code solution to this approach be something like this?
"use strict";
import * as stringFunctions from "string_functions";
const ourStringObject = stringFunctions;

It'd work, but I think it'd be useful to have dot notation used to access a method on the imported object, just to make things explicit. Maybe they could import everything, then store a single method from that imported object in our given variable?
"use strict";
import * as stringFunctions from "string_functions";
const capitalizeString = stringFunctions.capitalizeString;

I guess the test for this approach would be to pass a string into the ourStringObject/capitalizeString function and see if it returned a capitalized string?
The only issue I can see with this approach is that this solution would pass:
"use strict";
const capitalizeString = str => str.toUpperCase();

I'm not sure if this is worth taking into account, or I'm just being picky. Either approach will work though! I'm happy to go with whichever you think is best.

@alanpaulprice

Maybe we could use a capture group to compare the name of the object used to store the imported data vs the object that is having the .capitalizeString method called on it? I think I could write the test for that.

Not sure if I fully understand that but the object that have capitalizeString method could very well be of different name, so how'd you compare that? With import * as <arbitary name>, the object name can be anything.

The only issue I can see with this approach is that this solution would pass:

Ok - then we should definitely have 2 tests. One which checks if the correct import syntax is used (similar to what we already have currently) and another test if const capitalizeString = stringFunctions.capitalizeString(); matches our expectations.
I think both of these tests are robust and should prevent hacky solutions.

Sounds like you have everything figured out?  Let me know, so I can update the other PR with changes for the import * challenge.

@ezioda004

Not sure if I fully understand that but the object that have capitalizeString method could very well be of different name, so how'd you compare that? With import * as , the object name can be anything.

The plan is to create a capture group from <arbitrary name>, then use that reference to compare the import to the call to the statement that follows. Sorry if I'm not explaining this well, it's a tricky one to put into words! I have it working in the regex below:
import\s+\*\s+as\s+([a-zA-Z0-9_$]+)\s+from\s*('|")\s*string_functions\s*\2\s*;?\s*(?:const|let|var)\s+capitalizeString\s*=\s*\1\.capitalizeString\(('|")[a-zA-Z0-9_$]+\3\)\s*;?
This works for the following solution:
"use strict";
import * as stringFunctions from "string_functions";
const capitalizeString = stringFunctions.capitalizeString("string");

A detail I'm currently stuck on is making sure their is either a semi colon (with optional whitespace), or a new line character seperating the import statement from the const capitalizeString = line.
// should pass
"use strict";
import * as stringFunctions from "string_functions";
const capitalizeString = stringFunctions.capitalizeString("string");

// should pass
"use strict";
import * as stringFunctions from "string_functions";const capitalizeString = stringFunctions.capitalizeString("string");

// shouldn't pass
"use strict";
import * as stringFunctions from "string_functions" const capitalizeString = stringFunctions.capitalizeString("string");

I'm working on this now,

another test if const capitalizeString = stringFunctions.capitalizeString(); matches our expectations.

Once the regex is sorted, we can tackle this 2nd test!

@alanpaulprice Thats way too much regex, isn't there a simpler method.

@Nirajn2311 It is a lot indeed!
We could just go with the idea propsed by @ezioda004. We could make it more robust by having the value that has to be stored in the variable be something random, not a capitalize string function:

Have a random value stored on a provided object.
Have the user import that object, then store the value in a given variable, accessing it via dot notation.
Test if the variable's value matches the one provided by the object.

Having it be random would make it impossible for someone to provide a cheap solution, like the example I provided at the bottom of this comment.

Closing as stale.


Delete old_compiler

Nearing parity with the current compiler version, so it's best to let go of the old right now.
So Long, and Thanks for All the Fish 🐟
bors r+

bors r-

Wanted to use the updated version of the commit message.
bors r+


How to handle multi user for the same installation? (Simultaneous query)

Currently, as designed, Xerus can only handle one user for one installation when querying for missing CIFs for a given chemical space.
With the development of the Streamlit beta interface, the possibility of one installation being used by many users will be possible.
In this scenario, Xerus cannot handle concurrent query for different chemical spaces, as it always save and tests the cifs using fixed names.
Change this to support multiquery use by multiple users simultaneously.
Ideas:

Instead of using a 'predefined' name for each provider as (mp_dump, cod_dump, aflow_dump, etc), we could use instead directly the chemical space name + provider as (Ho-B_mp_dump) etc and the same for queried_cifs folder.
If above, we have also to change the 'test_cif' to accept the final folder as final destination for final testing.

TODO:

[x] Change query static folder names ('xx_dump') to a name based on dataset name + chemical space + provider, ie from 'mp_dump' to 'DataSetName_ChemSpace_mp_dump' (or something smaller)
[x] Change testing cif to accept the final 'dump folder' also from static (queried_cifs) to the same as above
[ ] For the case of multiple user querying overlap space, before adding the CIFs, we should do a check to see if that structure already exist in the database OR we should 'clean up' the database of duplicates after querying (whatever is better, maybe the first option is best)
[ ] Write few tests (not to be used in CI, just to check the if everything works well), emulating multi user usage from with overlapping chemical spaces, identical chemical spaces and non overlappaing chemical spaces

Instead of checking the ID on insertion, I have changed to ensure that "id" (which is related to provider ID, not Mongo unique "_id"), to be unique.
Now, if the collection does not exist, it will be automatically created with the ID ("id") set to unique.
For already existing collections, mgiht have to do this manually.


(maint) add CHANGELOG.md to project with first couple entries

Description
This adds a CHANGELOG to the project that we could choose to use to document/communicate the changes included in each release.
I'm putting up this draft PR in order to help facilitate a team discussion during Engineering Forum on 10/20 about on how we'll handle versioning/tracking changes for this project. Using a CHANGELOG like this is one option, another option I think we could consider is to use Github releases with auto-generated release notes.
Test Plan

Take a look at the included CHANGELOG, compare/contrast it to the auto-generated Github release notes that were generated for our first release.

Closing this as we are going to use the automated release notes feature in Github instead of a CHANGELOG for now.


Error

I get all the way to the last step in the process of setting up the smartapp in the SmartThings app OK.  When I click "Done" I receive a message that "An unexpected error occurred" and the app won't complete the setup.
Using SmartThings on an Android device.
Any thoughts, suggestions?

Look at the IDE logs and perform the step that you'll receive the "An expected error occurred". Most probably you didn't publish your device types properly.


Please remove shell: true from your build manifests

This causes builds to run until they reach the time limit, which needlessly occupies build slots and consumes an excessive amount of resources on SourceHut.
Also note that dispatch.sr.ht is being deprecated:
https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/

Thanks!


Create net.txt

Support for [DOBA Business School]

@ivukovic First stage of verification passed, official domain is doba.hr as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@ivukovic Thank you for your patience while waiting for a review and processing your request. Pull request merged. Thank you!

@philipto  Thank you 👍


Proposal: Mirror an entire github organization into gitea organization

I'd like to suggest a new feature: mirroring a full Github organization (I say Github, as I know how it works, but I guess there are also organizations in Gitlab, Bitbuckets etc.)
This feature would let:

automatically create mirror repo into Gitea organization for each repo in Github organization
automatically remove mirror repo from Gitea organization when it’s suppressed from Github organization

This would help for migration when there are a lot of repos.
Cheers

There are some migration scripts out, which copies over issues, wiki and stuff. Think it fits best for that.

duplicate of #7212 I would say

closing as duplicate of #7212


Adds install_rules_typescript and bazelPackages package.json attribute to support npm based rules install

This adds install_rules_typescript() and the bazelPackages attribute but it turns out to be difficult to test locally since,
def install_rules_typescript():
    http_archive(
        name = "build_bazel_rules_typescript",
        url = "https://github.com/bazelbuild/rules_typescript/archive/%s.zip" % VERSION,
        strip_prefix = "rules_typescript-%s" % VERSION,
        # TODO: add sha256 so that caching works
        # 1. create the starklark package that we upload
        # 2. on-version.js or npm_package rule calc the sha and put it here
        # 3. only the npm package has this line. can't put a sha in the starlark package
        # sha256 = "",
    )
    rules_typescript_dependencies()

fetches the tagged rules_typescript of the current VERSION which for local testing is incorrect.

@alexeagle This is also difficult to downstream test without a tagged release since there are no published npm packages to fetch downstream


A better way to check if a codechef handle is invalid

At present 0 submissions is treated as an invalid handle - code

Hello raj454,
I wonder if the '0 submissions' way of checking the validity of a CodeChef handle incorporates the case where a user on Codechef is part of a team (of say 3 members) and even though he is involved in the contests/problems, he hasn't submitted anything from his own account. In such a case, the handle could still be valid as the user is working in a team with others, although he isn't making submissions from his account. A suggestion would be to see if the other members in the team the user is a part of have made any submissions or not. So for a person A part of a team XYZ with B and C has 0 submissions, but either of B or C have submissions, that should mean A is a valid handle.
Makes sense?

Hey @Tushar-Gupta
Your point altogether demands a separate issue ;)
So the current framework of submission retrieval does not include team submissions at all as they are not actually made from any user. So the problem you are pointing out is not actually a problem until this enhancement is not made in the code.
Why am I not considering team submissions at present ? -
Its a lot of work to be honest. Not just in terms of change of code but also in terms of performance of the crawling scripts as it will take a minimum of 3 requests extra per user which at this point would be  1467 * 3 extra requests per day. And that obviously is not that important really, is it? :)

Hi @raj454raj . Instead of checking for number of submissions, why not use response status code to check whether a user exists or not. If the response code is 200, then only check for submissions. In this case if a URL has response status code 200, then whether submission count is 0 or not, user exists.

@shubh1m :
The status code is 200 for non-existing users too for the endpoint http://www.codechef.com/submissions . It returns an empty table instead of 404.

Instead of checking for submissions endpoint, why not check for https://www.codechef.com/users/. If the page redirects to Codechef homepage handle specified by user is invalid, else the handle is valid.

Yes, now that seems to be the only way out of this. Though I wanted to prevent that extra network request somehow, but will have to go with that.


Build failure with GHC 8.8.2

Here is the build log:
Configuring library for vcache-0.2.6..
Preprocessing library for vcache-0.2.6..
Building library for vcache-0.2.6..

on the commandline: warning:
    -auto-all is deprecated: Use -fprof-auto instead
[ 1 of 25] Compiling Database.VCache.Aligned ( hsrc_lib/Database/VCache/Aligned.hs, dist/build/Database/VCache/Aligned.o )
[ 2 of 25] Compiling Database.VCache.Hash ( hsrc_lib/Database/VCache/Hash.hs, dist/build/Database/VCache/Hash.o )
[ 3 of 25] Compiling Database.VCache.RWLock ( hsrc_lib/Database/VCache/RWLock.hs, dist/build/Database/VCache/RWLock.o )
[ 4 of 25] Compiling Database.VCache.Refct ( hsrc_lib/Database/VCache/Refct.hs, dist/build/Database/VCache/Refct.o )
[ 5 of 25] Compiling Database.VCache.Types ( hsrc_lib/Database/VCache/Types.hs, dist/build/Database/VCache/Types.o )

hsrc_lib/Database/VCache/Types.hs:569:5: error:
    ‘fail’ is not a (visible) method of class ‘Monad’
    |
569 |     fail msg = VPut (\ _ -> fail ("VCache.VPut.fail " ++ msg))
    |     ^^^^

hsrc_lib/Database/VCache/Types.hs:611:5: error:
    ‘fail’ is not a (visible) method of class ‘Monad’
    |
611 |     fail msg = VGet (\ _ -> return (VGetE msg))
    |     ^^^^

hsrc_lib/Database/VCache/Types.hs:623:16: error:
    The INLINE pragma for ‘fail’ lacks an accompanying binding
      (The INLINE pragma must be given where ‘fail’ is declared)
    |
623 |     {-# INLINE fail #-}
    |                ^^^^
cabal: Failed to build vcache-0.2.6

Thanks. I'm not actually maintaining this any longer, though. Perhaps we should just remove the package?

That means you should keep this open though right?


[Feature]: support cookies manipulation in BiDi

Feature description
Implement cookies manipulations via BiDi.
Blocked by:

[ ] Specification.
[ ] Mapper implementation.

Prototype getCookies: https://github.com/puppeteer/puppeteer/pull/11532

I believe this issue can be closed as implemented


ImportError: cannot import name 'slow_r50_detection' from 'pytorchvideo.models.hub

🐛 Bugs / Unexpected behaviors

when using
model_name = "slowfast_r50"
SLOWFAST50_MODEL = torch.hub.load("facebookresearch/pytorchvideo", model=model_name, pretrained=True)

I came across bug follows
/root/.cache/torch/hub/facebookresearch_pytorchvideo_master/hubconf.py in <module>()
      2
      3 dependencies = ["torch"]
----> 4 from pytorchvideo.models.hub import (  # noqa: F401, E402
      5     efficient_x3d_s,
      6     efficient_x3d_xs,
ImportError: cannot import name 'slow_r50_detection' from 'pytorchvideo.models.hub' (/usr/local/lib/python3.7/dist-packages/pytorchvideo/models/hub/__init__.py)

Instructions To Reproduce the Issue:

My code came from https://pytorchvideo.org/docs/tutorial_torchhub_inference.

My environment is google colab.

It Seems is a bug from official respository. Thanks

Second it, just met the same problem! (For now I just comment out the models that raise error :/ )

@TianhaoFu , @Meryl-Fang , could please provide more details on how you installed pytorchvideo and your testing environment?
When I ran the following notebook in Colab, I did not have issues - https://colab.research.google.com/github/facebookresearch/pytorchvideo/blob/master/tutorials/torchhub_inference_tutorial.ipynb

Same.
I just copy code from https://pytorchvideo.org/docs/tutorial_torchhub_inference cell by cell and got this error on model import from torch.hub

Got it, I was able to pinpoint it down. Looks like the pip build is out of date. I will update it today.
Alternatively, running !pip install "git+https://github.com/facebookresearch/pytorchvideo.git" should fix the problem temporarily.

Even though I reinstalled Pytorchvideo using pip install "git+https://github.com/facebookresearch/pytorchvideo.git" I am still encountering the same problem. My environment is a Jupytr notebook.

The error still persists on my local machine even if i install from git. There is no problem on google colab though.

Hi, I've updated the pip builds too to match the latest commits. All the installation methods  mentioned here should work now. I just verified it.
Please let me know if the issue persists!

Closing the issue since it has been resolved. But feel free to open it again if the problem still persists for you.
For all of you who installed version 0.1.1, I'd recommend uninstalling it and installing 0.1.2 or higher. Thanks!


S3 public Bucket name parameter issue

Serverless Error ----------------------------------------
PublicBucket - Bucket name must conform to pattern (?!^(\d{1,3}.){3}\d{1,3}$)(^(([a-z0-9]|[a-z0-9][a-z0-9-][a-z0-9]).)([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])$). Please check provider.
s3.PublicBucket and/or s3 events of function "EphemeraPopulateStaticSiteConfig".
Get Support --------------------------------------------
Docs:          docs.serverless.com
Bugs:          github.com/serverless/serverless/issues
Issues:        forum.serverless.com

I think that is connected to https://github.com/serverless/serverless/issues/8969 .
I got the same issue, but I was able to fix it by hardcoding bucket name instead of parameter replacement.
I will look if I could get PR as fix.

That would be great. Thanks!


Ion-slide-page and ng-repeat block each other

Hi all,
<ion-slides options="options" slider="slider">
   <ion-slide-page ng-repeat="user in users">
      <img src="anUrl.png" />
   </ion-slide-page>
</ion-slides>

 $scope.options = {
    autoplay: 1500
  };

Is not working.
But if I remove the ng-repeat, autoplay works suddenly!
My question: how to solve this? What am I doing wrong here?

Hello! While we appreciate you opening an issue with us i am going to close this issue and ask that you open a new one that has the issue template filled out please. Thanks for using Ionic!


run only threaded tests by default

The motivation for this is stated in #1564:

Right now, we try to run all tests when the environment variable TRIXI_TEST is not set. This takes quite a lot of time and makes it unusable in most cases. I think nobody really wants to do this.
It also means that Trixi.jl is basically ignored by Julia's PkgEval, e.g. it's in "Test log exceeded the size limit (36 packages)" in the latest run https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_date/2023-07/11/report.html due to an internal Julia error (in the development version) - otherwise, it would have exceeded the time limit.
I think it would be nice if we modified the settings such that only some cheap tests are executed when calling Pkg.runtests("Trixi") by default - maybe the threaded ones?

Closes #1564

@trixi-framework/principal-developers: Any veto?

For clarification - does this only affect local testing and Julia PkgEval? Does it not impact CI?

Yes, exactly. We set the environment variable TRIXI_TEST in all of our CI runs. I just modified the default value that will likely be used only in local tests and for Julia's PkgEval.

Mac MPI tests appear to be hanging again.

Yeah, sadly...

I'll merge this anyway. We need to check what's causing the stochastic macOS MPI failures...


Processing of message 'textDocument/completion' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'index')'

Describe the bug
Error occur and intellisense stops working
Error message:
[Error - 10:15:45] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/completion' failed with error: 'Node span: 0-1942, position: 1992 (Parameter 'position')'
Details:
System.ArgumentOutOfRangeException: Node span: 0-1942, position: 1992 (Parameter 'position')...
To Reproduce

Just write some AL code

Expected behavior
Screenshots

5. Versions:
v5.0.335750

@NabMike can you provide us with a small project that reproduces the issue?
Is the issue reproducing consistently? What happens if you do Ctrl + Shift + P and then 'Developer: Reload Window'?

For reference, this looks similar to #5929 and #5918

@qutreson It seams it only occurs in a larger project I am working on so I not able to share my project.
Reloading window sometimes helps for a short period and yes #5929 and #5918 looks where similar. Must be some of my written code making this problem so is it possible to debug the VS Code application to find what causes then problem?

We cannot provide you with what is necessary for debugging the AL extension. From the exception and the stack trace, we cannot provide you with more information on how to identify what is causing the issue. We will try to improve the exception thrown in this context to provide more information, but we cannot provide any ETA for that for now.


Add support for dynamic maps to the search map in addition to tiled

Uses the attribute isTiled: true/false

false to call ArcGISDynamicMapServiceLayer
true to call ArcGISTiledMapServiceLayer

Keeps tiled as default if not specified.

great enhancement!


Two fixes to improve autotest CI

This PR fixes two things:

Remove a remaining ".txt" extension that prevented the diffs to appear correctly.
Simplify the rules under which the autotest report jobs run.

For the autotest rules, the choice is to run the reports only if AUTOTEST variable is set to YES in CI. In practice, this is done in the settings of the scheduled pipeline. No other pipeline, even for master or next will commit to autotest without this variable set.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...

LGTM


Captive Portals

Awesome and cute idea. Too bad it'll treat captive portals as open networks. Still, awesome.

Yeah, it gets kinda jammed up with captive portals. Ah well

In theory, it should fail to vanquish a captive portal network, since it's not really open, just unsecured :)


Call getPartitions once in WholeStageTransformer

What changes were proposed in this pull request?
In WholeStageTransformer getPartitions is called twice - once in getSplitInfos and another in val allScanPartitions = basicScanExecTransformers.map(_.getPartitions). This results in a code loop that is executed for twice for the same sequence of partitions including https://github.com/oap-project/gluten/blob/f775d42b5c96709f7beacbd521baebf33337c0d6/gluten-core/src/main/scala/io/glutenproject/utils/InputPartitionsUtil.scala#L37. This PR makes a fix to call getPartitions only once and reuse it.
(Fixes: #4884)

CC @zhli1142015


install screen command

It would be nice to have screen command to have the long running operation

will be in release 0.9.8


Add PushBullet support to notify

What's the feature?
Assignment notification through PushBullet.
What problem is the feature intended to solve?
The new official dashboard does not support assignment notification yet. Notification through the OS was already implemented, but the community can take advantage of a PushBullet notification feature since we would be able to be notified on other devices, like in mobile.
Is this feature similar to an existing feature in another tool?
Yes. The assign command has a similar feature. I think that we just need to port it to the notify feature.
Is this a feature you're prepared to implement, with support from the urcli team?
Yes, but not immediately.

I've pushed version 4.2.0, which has pushbullet option for the notify command. If you clone the project you can test the command like so: babel-node src/index.js notify --push. There is no error handling, so only test if pushbullet actually works, not the robustness of the command itself.

Ok, @trolster. It seems to be working. When I started running it, it notified me on present assignments. I'll wait for a new assignment to check if it will work accordingly.

It is working fine. I got a new assignment and the PB notification appeared. :+1:

Yeah, I managed to get PushBullet working on my phone and I got notifications too. I'll publish v4.2.0 to npm. I don't want to announce on Slack though, since I don't want to get into the middle of the current discussion. Do you have any idea where we should announce?

Alright, I'm happy with the way it works so I've published v4.2.0. Would you mind finding a way to announce @gabraganca? I'm out of time for today.

Sure, @trolster .

Hey, Mikkel. I just read your message about no publishing on Slack, which I
think it is a little too late now.
Em 10 de fev de 2018 15:55, "Mikkel Trolle Larsen"<EMAIL_ADDRESS>escreveu:

Alright, I'm happy with the way it works so I've published v4.2.0. Would
you mind finding a way to announce @gabraganca
https://github.com/gabraganca? I'm out of time for today.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/trolster/urcli/issues/122#issuecomment-364676035, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACkz3it2FiR87x0gdKIsUAsz-flWRXbWks5tTdf7gaJpZM4SAClU
.

No worries!


I need help

Hi, I'm new to hacking Pikmin 2. I was told that I would need to hack the main.dol file in sys for some stuff. It doesn't let me hack it so I was linked this website. I read your readme. I do have a hard time understanding instructions and these instructions as well. What I want to do is make it where I can open the main.dol and I think I have to use something here. I was wondering if you could start me fresh with an easily explained way to download, what to do and where to put these files and how I can open the main.dol? Thanks.

The main.dol is a compiled executable, and cannot be "opened" with an editor like a .txt file. you may achieve limited success with hex editing, but our project builds an entirely new dol from the PowerPC assembly and decompiled C/C++ source sode files in the asm and src folders, respectively.
Respectfully, doing DOL edits while being new to the modding scene will likely be overwhelming, so I suggest getting advice from the nice folks in Hocotate Hacker and starting off with the vanilla DOL, and trying out a few of the research-2 gecko codes to see if they do anything interesting.
Best of luck in your modding endeavors.


Build failure with GHC 7.8

I was wondering who would win the award for first "only builds on 7.10" :)
[1 of 3] Compiling Data.BinaryList.Internal ( Data/BinaryList/Internal.hs, dist/build/Data/BinaryList/Internal.o )
[2 of 3] Compiling Data.BinaryList  ( Data/BinaryList.hs, dist/build/Data/BinaryList.o )

Data/BinaryList.hs:534:10:
    Not in scope: type constructor or class ‘Foldable’

Data/BinaryList.hs:546:10:
    Not in scope: type constructor or class ‘Traversable’
cabal: Error: some packages failed to install:
binary-list-<IP_ADDRESS> failed during the building phase. The exception was:
ExitFailure 1

Yeah, I wrote a warning in the package description about this. It will be fixed later today.
Thanks.

As promised, version <IP_ADDRESS> of binary-list is released and compatible with previous versions of GHC. Feel free to re-open if that is not the case.


css lost in vue3-typescript

Hi!
I use sfc-init build vue2 and javascript sfc and it's perfect,thank you!
But with vue3 and typescript sfc, the css block in  is ignored.
Can you resolve this?

Which version are you using? I noticed this bug recently while researching another one, and it is fixed in the most recent version. v4.0.4 - if you aren't using the scaffolding produced by that one, give it a try.
The bug that was being researched was #80, and there are two comments which indicate how to fix the issue, this one and another one just a little farther down in the thread.
If neither the latest version or the comments help, please provide a sample repo to reproduce. If they do, feel free to close this bug.

I installed 4.0.4 rollup.config.js and fixed the problem ,thank you!


State Change

How can i change the item of state list. I have a state which is a list and i want to update partiucaler item of that list. If I convert to mutablelist then change it and reert it to immutable list and then change state still it's throwing erro state should be immutable. etc.
It's not a bug just a question Only problem is lack of community support for this framework.

To pass the immutability check, you need to create a new list when you need to update some items in it. Converting a list to a mutable list, making some updates to it and then changing it back does not actually create a new list.
Unfortunately Kotlin does not provide any copy/deep-copy methods for lists in the standard library to do this easily, but you can use the map method to get a new list from an existing one.
val newList = existingList.map { existingElement ->
  if (shouldReplace(element)) {
    newElement
  } else {
    existingElement
  }
}

As noted, this is more of a question of kotlin patterns for modifying lists. The toMutableList() function does create a new list, so I'm not exactly sure what your issue is. If you can share the code you are using to modify the list that might help.
Here is a helper function we use to update a single item in a list. You could also use a similar approach if you have the item index.
/**
 * Returns a new read only list with the provided item updated.
 *
 * The first item in the pair should be an existing item in the list, and the second item will replace the first.
 */
fun <T> List<T>.copy(vararg pairs: Pair<T, T>): List<T> {
    val mutableList = toMutableList()
    pairs.forEach { (old, new) ->
        val index = mutableList.indexOf(old)
        if (index != -1) {
            mutableList[index] = new
        } else {
            throw IllegalStateException("Item does not exist in the list: $old")
        }
    }
    return mutableList
}


Add MediaEmbed

https://github.com/dereuromark/MediaEmbed
A stand-alone utility library that generates HTML embed tags for audio or video located on a given URL. It also parses and validates given media URLs.
It currently works with 150+ services, including the most important ones like

YouTube
Dailymotion
MyVideo
Vimeo

I can provide also a link to a demo sandbox-site if that is of interest.

The 3 fails are unrelated, other libraries.

Demo / Sandbox-Link for trying it out: https://sandbox.dereuromark.de/sandbox/media-embed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiIdRNFY18wQ

Whats the hold up here?

what's the rush?

If you read the contributing guidelines they say as follows:

Unfortunately, not every library, tool or framework can be considered for inclusion. The aim of Awesome PHP is to be a concise list of noteworthy and interesting software written in modern PHP. Therefore, suggested software should:

Be widely recommended regardless of personal opinion
Well known or discussed within the PHP community
Be unique in its approach or function
Fill a niche gap in the market

Self-promotion is frowned upon, so please consider seriously whether your project meets the criteria before opening a pull request, otherwise it may be closed without being reviewed.

Since it's a self-promoting PR - it breaks the rules.

If it does match other criteria and should rather than must, I would say that your feedback is rather breaking some rules :) It does provide a rather well defined benefit over just simply letting it rust there in the dark as never merged PR. So maybe help promoting instead of dismissing?

Also, I meant mainly constructive feedback, since there was none whatsoever. I didnt talk about merge in general at this point. Your feedback however is not constructive.

I was just wondering why the push for this :) Here's some constructive feedback.
This PR has a conflict so most likely it needs to be rebased on a latest version.
As for the library (again, just following the contribution guide)

it's 5.6+ instead of 7.0+
it is not PSR compliant
how is it different from already included https://github.com/oscarotero/Embed?


Fixed issue with adding to cart not working

@miq-bot add_label bug
@miq-bot add_label fine/yes
BZ https://bugzilla.redhat.com/show_bug.cgi?id=1527053

Screenshot demo of fix.

(Turns out reviews don't create PR links, so adding here explicitly)
This is a fine version of https://github.com/ManageIQ/manageiq-ui-service/pull/1347


Delete option does not work

Bug report
Issue Description
I just did a clean install locally. When I try to delete anything in backoffice with the trash icon I get an error on console: Property or method "doAction" is not defined on the instance but referenced during render.
I tried twice to do a clean install and in both cases I get this error.
Preconditions

Windows 10 Pro 20H2 19042.1165
Laragon MYSQL 5.7, PHP 7.4.15 apache/httpd-2.4.35-win64-VC15

Bagisto version
1.3.2
Steps to reproduce

Doing a clean install with composer create-project bagisto/bagisto or downloading the .zip file in both cases gives the same error.
Then try to create a product and try to delete it.
Or go to languages and try to delete it
Also you can go to users and try to delete it

Expected result
The expected result would be the alert as in the demo application.
Actual result

Console Error:
found in
---> <DatagridFilters>
           <Root>
TypeError: doAction is not a function

Hi @mreduar,
I just check with the latest version and I am not able to reproduce that and the demo is still not updated.

I am able to reproduce this when I am using the dev or watch mode. In prod it's working fine. So in my opinion behavior should be the same in both modes.


ncurses: use secure url in comment

Merged in https://github.com/Homebrew/homebrew-dupes/commit/59cf827c458423ca568b368c464e19e5c5793a7e. Thanks @vszakats!


Example thumbnails in docs

Ideas for the documentation page:
The way I learned manim, was with lots of examples.
As this might be very useful for others as well, it would be lovely when the documentation of the classes and methods have easily accessible links to examples.
I looked into the documentation of matplotlib, and there they have under each explanation thumbnails of examples, where this or that class/method is used.
See for example here:
https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.boxplot.html#matplotlib.axes.Axes.boxplot
When you click on one of the example thumbnails, you will be directed to the corresponding example with code and the output image.
In the case of manim, we can have this as well.
What do you think about this?

Yes, I like what matplotlib does with examples in general. One thing I don't like is that they have so many examples that some of them are quite a bit better (more illustrative, clearer, better explained) than others. I presume that's just a byproduct of being such a huge library.
In any case, I'm in favor of this. HOWEVER, I suggest we start with something basic, and iterate from there. The system that matplotlib uses makes sense for them because they have dozens (hundreds?) of examples. I don't think it's worth to build this whole system for us at this stage.
Let's just focus on having a single examples page in the documentation with links to a few examples. When we have that, we can talk about how to connect it to the rest of the documentation and so on.

@kolibril13 you should look into this https://sphinx-gallery.github.io/stable/index.html for building the examples


api/v2: Check if cluster peer is nil -> release-0.16

When users start Alertmanager with --cluster.listen-address=, the
cluster will not be initialized, hence api.peer will be nil.
With this patch, api v2 skips populating the peers array in case
api.peer is nil.
Fixes https://github.com/prometheus/alertmanager/issues/1725

@mxinden I just ran into this issue when I was testing HEAD of the alertmanager master branch. Is there a reason why you didn't merge #1726 into the master branch as well?

Instead of merging this patch into the master branch, we decided to merge a breaking fix into master via https://github.com/prometheus/alertmanager/pull/1728. I have just checked out current master, build Alertmanager and ran it with --cluster.listen-address= which returns the following json on api/v2/status:
  "cluster": {
    "peers": null,
    "status": "disabled"
  },

It does not trigger a nil pointer exception in the Go http handler.
@knweiss if this issue still persists for you, would you mind creating a new Github issue? Thanks for the help!

@mxinden Sorry, I'm a little bit in a hurry and only have time for a quick reply: It no longer triggers the nil pointer exception but when I click "Status" in the web UI I get the following error:
Unexpected response from api: Problem with the value at json.cluster.peers: null Expecting a LIST

It comes from this line:
ui/app/src/Utils/Api.elm:            "Unexpected response from api: " ++ err_

(My  api/v2/status is the same as you mentioned above.)

@knweiss we changed peers to be optional along with the patch above:
type alias ClusterStatus =
    { name : Maybe String
    , status : Status
    , peers : Maybe (List PeerStatus)
}

https://github.com/prometheus/alertmanager/blob/f40ecee77326d169dec5092d28510c60a9593f0b/ui/app/src/Data/ClusterStatus.elm#L25
Can you make sure your browser is not using a cached version of the front-end?

@mxinden Branch release-0.16 (tag v0.16.1 ) worked fine but master branch (commit f40ecee77 as of today) did not. I still got the error line and could reproduce the problem by switching between both executables.
However, reloading without Firefox cache did the trick. Now the master branch executable renders the Status page, too! Thanks!
(I could be wrong but I also think I'm seeing the red "disabled" label for the first time in the v0.16.1 version. I'll keep an eye on caching effects from now on.)

@knweiss I think we should disable caching of our web assets to prevent confusions like this. I prepared https://github.com/prometheus/alertmanager/pull/1817. Let me know what you think.


Regarding the problems I encountered in use, my own simple solution

My installation method is to enter cmd from the windows address bar under D. I have installed stablediffusion in my win11 system, and my system environment should be fine.
The installation is normal, I enter python under cmd, enter python, but execute
from bark import SAMPLE_RATE, generate_audio, preload_models
from scipy.io.wavfile import write as write_wav
from IPython.display import Audio
preload_models()
Encountered the problem of downloading the model continuously, the downloaded model arrives (everyone's account computer is different)
C:\Users\Administrator.cache\huggingface\hub
There are many files with more than 2G in it
MD5: B3E42BCBAB23B688355CD44128C4CDD3
Should be the same file with a different name
Python prompts me that I do not have permission to transfer this file to model\text.pt
I manually changed the name and moved it to the model. This problem still occurs. I restarted the computer. I don’t know what I did. Finally, I downloaded different files and finally skipped the problem of continuously downloading the model.
Until now, I don't know how to set it up, but it works anyway.
Finally I know where my sound templates are
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\bark\assets\prompts
See where python is installed, you can guess, this will be useful later
how do i use it
Enter python on the command line
After the version number appears, there is >>> input below
from bark import SAMPLE_RATE, generate_audio, preload_models
from scipy.io.wavfile import write as write_wav
from IPython.display import Audio
preload_models()
The following situation will appear, remember to press Enter after preload_models() appears
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from bark import SAMPLE_RATE, generate_audio, preload_models
from scipy.io.wavfile import write as write_wav
from IPython.display import Audio
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'IPython'
preload_models()

enter
text_prompt = """
I have a silky smooth voice, and today I will tell you about
The exercise regimen of the common sloth.
"""
audio_array = generate_audio(text_prompt, history_prompt="v2/en_speaker_1")
write_wav("1.wav", SAMPLE_RATE, audio_array)
The audio will be generated to the Administrato account name is 1.wav
I don’t know much about python. I opened it and looked it up. I couldn’t figure it out, but there are many explanations for this thing. The time is only about 13 seconds. Generating Chinese is a foreigner accent
text_prompt = """
Fuck, it’s okay like this, but it can’t be automatically deposited, and there are many problems.
"""
audio_array = generate_audio(text_prompt, history_prompt="v2/zh_speaker_1")
write_wav("1.wav", SAMPLE_RATE, audio_array)
There is a v2 folder under bark\assets\prompts with 9 Chinese templates, which can be zh_speaker_0 to zh_speaker_9
You can also use history_prompt="zh_speaker_1") directly, because there are also 9 files under the prompts, and the MD5 is different after comparison. I know too little, so I can't infer how to play this bark. It is estimated that the developers know best and are flexible. Those who don’t understand the code can only rely on my guess. How to set it and dare not mess with it can’t solve the problem. The setting can only be changed from the code, which is too difficult.
For the generation of long audio, I can only make a Long-Form Dialog with Bark, enter python
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from IPython.display import Audio
import nltk # we'll use this to split into sentences
import numpy as np
from bark.generation import (
generate_text_semantic,
preload_models,
)
from bark.api import semantic_to_waveform
from bark import generate_audio, SAMPLE_RATE
preload_models()
speaker_lookup = {"Samantha": "v2/en_speaker_9", "John": "v2/en_speaker_2"}
Script generated by chat GPT
script = """
Samantha: Hey, have you heard about this new text-to-audio model called "Bark"?
John: No, I haven't. What's so special about it?
Samantha: Well, apparently it's the most realistic and natural-sounding text-to-audio model out there right now. People are saying it sounds just like a real person speaking.
John: Wow, that sounds amazing. How does it work?
Samantha: I think it uses advanced machine learning algorithms to analyze and understand the nuances of human speech, and then replicates those nuances in its own speech output.
John: That's pretty impressive. Do you think it could be used for things like audiobooks or podcasts?
Samantha: Definitely! In fact, I heard that some publishers are already starting to use Bark to create audiobooks. And I bet it would be great for podcasts too.
John: I can imagine. It would be like having your own personal voiceover artist.
Samantha: Exactly! I think Bark is going to be a game-changer in the world of text-to-audio technology."""
script = script.strip().split("\n")
script = [s.strip() for s in script if s]
script
Display the dialog after the script has been changed, enter after pressing Enter
pieces = []
silence = np.zeros(int(0.5*SAMPLE_RATE))
for line in script:
speaker, text = line. split(": ")
audio_array = generate_audio(text, history_prompt=speaker_lookup[speaker], )
pieces += [audio_array, silence.copy()]
To enter twice one of them appears...
but in the end
Audio(np. concatenate(pieces), rate=SAMPLE_RATE)
failure prompt
Audio(np. concatenate(pieces), rate=SAMPLE_RATE)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Audio' is not defined
This is stupid, it can’t be synthesized, but this one can still be generated, and the other two examples hang up at the beginning
try
write_wav("1.wav", SAMPLE_RATE, audio_array)
Still can only generate the last file for more than 10 seconds.

gonna close since this isn't really an issue


Fix documentation

Resolves #366.

[ ] Fix font size for the UML diagrams
[x] Undo/Redo should use sdel/rdel instead of delete
[x] User stories capitalisation of "Implementation of current Version" - "Version" changed to lower case
[x] Remove extra asterisks on Use case 11
[x] Find stalls sfind n/ listed as incorrect command
[ ] https://github.com/AY2223S1-CS2103-W14-2/tp/blob/master/docs/images/UiClassDiagram.png has unclear overlapping arrows
[x] Address and content need to be nonempty (also fix in UG)

Codecov Report

Merging #367 (dfa8b9d) into master (a5359c4) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #367   +/-   ##
=========================================
  Coverage     77.68%   77.68%
  Complexity      721      721
=========================================
  Files           101      101
  Lines          2120     2120
  Branches        244      244
=========================================
  Hits           1647     1647
  Misses          425      425
  Partials         48       48

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


Make sure all the libSkiaSharp.xcodeproj produces a dSYM

OPS Build status updates of commit a6a91e3:
:clock10: Preparing: average preparing time is 1 min(s) 50 sec(s)

OPS Build status updates of commit a6a91e3:
:clock10: Incremental building: average incremental building time is 22 sec(s)

OPS Build status updates of commit a6a91e3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

native-builds/libSkiaSharp_ios/libSkiaSharp.xcodeproj/project.pbxproj
:white_check_mark:Succeeded

native-builds/libSkiaSharp_osx/libSkiaSharp.xcodeproj/project.pbxproj
:white_check_mark:Succeeded

native-builds/libSkiaSharp_tvos/libSkiaSharp.xcodeproj/project.pbxproj
:white_check_mark:Succeeded

native-builds/libSkiaSharp_watchos/libSkiaSharp.xcodeproj/project.pbxproj
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.