Error building assets from local bedrock clone

Here's what I do (following https://documentation.concretecms.org/tutorials/submitting-user-interface-pull-requests-for-concrete5-version-9 )
$ node --version
v16.13.0

$ npm --version
8.1.0

$ npm ci
[...omissis... no errors reported]

$ npm link path/to/local/bedrock
[...omissis... no errors reported]

$ npm run prod
[...omissis...]
These dependencies were not found:

* ckeditor4-vue in ./assets/blocks/accordion/accordion.js
* magnific-popup in ./assets/themes/dashboard/js/main.js
* nprogress in ./assets/themes/concrete/js/main.js
* vuedraggable in ./assets/blocks/accordion/accordion.js

To install them, you can run: npm install --save ckeditor4-vue magnific-popup nprogress vuedraggable
node:fs:1536
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, stat '[...]/build/node_modules/vue/dist/vue.min.js'

PS: what about updating the documentation at https://github.com/concrete5/concrete5/blob/develop/build/README.md ?

The message above is with Windows.
With Ubuntu 20.04, npm run prod still fails;
$ node --version
v16.13.0

$ npm --version
8.1.0

$ npm ci
[...omissis... no errors reported]

$ npm link path/to/local/bedrock
[...omissis... no errors reported]

$ npm run prod
[...omissis...]
These dependencies were not found:

* @pnotify/animate in<EMAIL_ADDRESS><EMAIL_ADDRESS>* @pnotify/core in<EMAIL_ADDRESS>* @pnotify/font-awesome5 in<EMAIL_ADDRESS>* @pnotify/font-awesome5-fix in<EMAIL_ADDRESS>* @pnotify/mobile in<EMAIL_ADDRESS>* ajax-bootstrap-select in<EMAIL_ADDRESS>* blueimp-file-upload in<EMAIL_ADDRESS>* bootstrap-select in<EMAIL_ADDRESS>* bootstrap-tourist in<EMAIL_ADDRESS>* ckeditor4-vue in ./assets/blocks/accordion/accordion.js
* ckeditor4/adapters/jquery in<EMAIL_ADDRESS>* dropzone in ./node_modules/babel-loader/lib??ref--37-0!./node_modules/@concretecms/bedrock/assets/account/js/frontend/components/Avatar/Cropper.js?vue&type=script&lang=js&
* dropzone/dist/dropzone in<EMAIL_ADDRESS><EMAIL_ADDRESS>* fullcalendar in<EMAIL_ADDRESS>* interactjs in ./node_modules/babel-loader/lib??ref--37-0!./node_modules/@concretecms/bedrock/assets/account/js/frontend/components/Avatar/Avatar.js?vue&type=script&lang=js&
* jquery-form in<EMAIL_ADDRESS><EMAIL_ADDRESS>* jquery-text-counter/textcounter in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/button in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/datepicker in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/dialog in<EMAIL_ADDRESS><EMAIL_ADDRESS>and 1 other
* jquery-ui/ui/widgets/draggable in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/droppable in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/slider in<EMAIL_ADDRESS>* jquery-ui/ui/widgets/sortable in<EMAIL_ADDRESS>* jquery.cookie in<EMAIL_ADDRESS>* jquery.fancytree/dist/modules/jquery.fancytree in<EMAIL_ADDRESS>* jquery.fancytree/dist/modules/jquery.fancytree.dnd in<EMAIL_ADDRESS>* jquery.fancytree/dist/modules/jquery.fancytree.glyph in<EMAIL_ADDRESS>* jquery.fancytree/dist/modules/jquery.fancytree.persist in<EMAIL_ADDRESS>* magnific-popup in ./assets/themes/dashboard/js/main.js<EMAIL_ADDRESS>* moment-timezone in<EMAIL_ADDRESS>./node_modules/babel-loader/lib??ref--37-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@concretecms/bedrock/assets/cms/components/BoardInstanceRule.vue?vue&type=script&lang=js&
* moment/min/locales in<EMAIL_ADDRESS>* nprogress in ./assets/themes/concrete/js/main.js<EMAIL_ADDRESS>and 1 other
* selectize in<EMAIL_ADDRESS>* spectrum-colorpicker in<EMAIL_ADDRESS>* tristate/jquery.tristate in<EMAIL_ADDRESS>* underscore in<EMAIL_ADDRESS><EMAIL_ADDRESS>and 9 others
* v-calendar/lib/components/calendar.umd in<EMAIL_ADDRESS>* v-calendar/lib/components/date-picker.umd in<EMAIL_ADDRESS>* vue-js-toggle-button in<EMAIL_ADDRESS>* vuedraggable in ./assets/blocks/accordion/accordion.js, ./node_modules/babel-loader/lib??ref--37-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@concretecms/bedrock/assets/cms/components/gallery/GalleryEdit.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save @pnotify/animate @pnotify/core @pnotify/font-awesome5 @pnotify/font-awesome5-fix @pnotify/mobile ajax-bootstrap-select blueimp-file-upload bootstrap-select bootstrap-tourist ckeditor4-vue ckeditor4/adapters/jquery dropzone dropzone/dist/dropzone fullcalendar interactjs jquery-form jquery-text-counter/textcounter jquery-ui/ui/widgets/button jquery-ui/ui/widgets/datepicker jquery-ui/ui/widgets/dialog jquery-ui/ui/widgets/draggable jquery-ui/ui/widgets/droppable jquery-ui/ui/widgets/slider jquery-ui/ui/widgets/sortable jquery.cookie jquery.fancytree/dist/modules/jquery.fancytree jquery.fancytree/dist/modules/jquery.fancytree.dnd jquery.fancytree/dist/modules/jquery.fancytree.glyph jquery.fancytree/dist/modules/jquery.fancytree.persist magnific-popup moment-timezone moment/min/locales nprogress selectize spectrum-colorpicker tristate/jquery.tristate underscore v-calendar/lib/components/calendar.umd v-calendar/lib/components/date-picker.umd vue-js-toggle-button vuedraggable
node:fs:1536
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, stat '[...]/build/node_modules/vue/dist/vue.min.js'

Ever since we switched to Bootstrap 5 I can't get npm link to work at all. In the meantime for local development I've just been doing manual symlinks, which is a pain, but I can get it to work. If you try this without using npm link and just trying to work with it directly do you have better luck?

Yep, it seems that npm link doesn't work anymore: I had to manually symlink bedrock.
Here's a full example that works:
cd "$HOME"
git clone https://github.com/concrete5/bedrock.git
cd bedrock
npm ci

cd "$HOME"
git clone https://github.com/concrete5/concrete5.git
cd concrete5/build
npm ci
rm -rf node_modules/\@concretecms/bedrock
ln -s "$HOME/bedrock" node_modules/\@concretecms/

npm run prod

Thanks, I've updated that document: https://documentation.concretecms.org/tutorials/submitting-user-interface-pull-requests-for-concrete5-version-9


Adding Movie via Web UI doesn't get imdb / tmdb ID

When I try adding a movie via the web ui it doesn't lookup imdb/tmdb, adding the same movie via CLI works fine.

After code review WebUI is calling api/movie_list using movie_name parameter, thus putting all the input text box inside  movie_name.
On the other hand CLI adding is doing some logic before adding the entry:
def movie_list_add(options):

        title, year = split_title_year(options.movie_title)
        console('Trying to lookup movie title: `{}`'.format(title))
        movie_lookup = lookup_movie(title=title, session=session, identifiers=options.identifiers)

and in addition CLI add is support identifier used to specify for example imdb_id or tmdb_id
IMHO the simplest way to support that would be to propose in the WebUi multiple input text boxes:

Movie Name (Mandatory)
Year (optionnal)
IMDB_ID  (optionnal)
TMDB_ID (optionnal)

For now i'm relying only on CLI pour adding new entries


Locale filter on collection results returning other locales

Bug Report
When toggling between locales in a given collection view, some locales choices return a mix of locale records
Steps to Reproduce

Create a simple collection with a single localized text field
Enable localization and add 3 locales A, B, and C (with fallbacks enabled if that matters)
Select locale A and create two records in the collection, then create translations to B for both, and a single translation to C for only one of them.
Now navigate the collection in admin and swap between locales A, B, and C. Choosing A shows the two properly filtered A versions. Choosing B shows the two properly filtered B versions. Choosing C shows the correct C version of the one record we added to C, but also shows the A version of the other record.

Other Details
Payload 1.6.17

Do you have fallback set to false?
https://payloadcms.com/docs/configuration/localization#enabling-in-the-payload-config

Do you have fallback set to false?
https://payloadcms.com/docs/configuration/localization#enabling-in-the-payload-config

fallback set to true, I've also tried setting it to false and this also results in weird behavior (albeit different behavior). I would expect fallback to be field level functionality (and that is indicated in the document). Further I would expect a document to require an explicit locale created for it (i.e. not all pages in the CMS has a translation available at all, for those that do fallbacks would be employed at the field level).

FWIW setting it to false also resulted in a record displaying for locale C, even though nothing had been saved on that record for that locale.

If kind of makes sense with fallbacks enabled (though I still take issue with this for a variety of reasons), I don't think it makes sense with fallbacks disabled. Among a number of reasons this is problematic is there is now no way to reliably tell from the admin or the API if a translation has been written for a given record.
In both cases (faillbacks true or false) I would expect an explicit creation/save event to have to occur in order to indicate a translation exists for a given locale.

Just to really hit this home, it's hard for me to imagine that this is intended functionality. Here's the english view of posts:

And now when I select a different locale (in this case Arabic):

@jmikrut I'm back here trying to deal with this issue again, though in a slightly different form, it still has the same root issue. If this is in fact intended behavior, what is the mechanism by which you can find out if a translation exists for a given document?
For example, I'm on viewing a document in English on the frontend and I want to display a list of available translations to my end user.

I'm afraid you're going to tell me I have to roll my own solution here, but the implication to that is every single find throughout my system is going to have to add a where clause for this custom field that indicates a translation exists and that smells like a core issue to me, this feels as basic as supplying draft functionality to the local API (which you do). My suggestion is that when you specify locale in a find query, it returns no results if someone hasn't actively added a translation for that document (however you want to define that, perhaps a first "save" with a localized field in a different language?)


Access control for certain custom fields

Certain custom fields should only be visible to people in an authorizationGroup and counterparts (in case of People) and to people in an authorizationGroup and authors (in the case of Reports).
We could add an optional authorizationGroups parameter under customField, that specifies the list of uuids of authorization groups.
We will also need some visual indicator on these fields to convey that they are not visible to everyone.
Maybe, it is wiser to store the uuid of the autorization group in the json of the value itself to ensure future access control.

Depends on #3235 for person fields, in that PR i have changed field logic which can easily be used to implement access control for client side.

Sensitivity of fields must be dealt with on the server side. This means, for this story it requires a change in the back-end to ensure no data is exposed without required access. This part need some thoughts.


Reservation-Table

In this PR

I created a reservation table using local data.
Yusupov  Can you check it out.

##Approver!!!
Good job 👍
You can merge now


Cursor can return duplicated documents

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[ ] 2.8
[ ] 3.0
[ ] 3.1
[x] 3.2.5
[ ] self-compiled devel branch

Mode:

[x] Cluster
[ ] Single-Server

Storage-Engine:

[x] mmfiles
[ ] rocksdb

On this operating system:

[x] DCOS on

[ ] AWS
[ ] Azure
[x] own infrastructure

[ ] Linux

[ ] Debian .deb
[ ] Ubuntu .deb
[ ] SUSE   .rpm
[ ] RedHat .rpm
[ ] Fedora .rpm
[ ] Gentoo
[ ] docker - official docker library
[ ] other:

[ ] Windows, version:
[ ] MacOS, version:

this is an AQL-related issue:
[ ] I'm using graph features
I'm issuing AQL via:

[ ] web interface with this browser:     running on this OS:
[ ] arangosh
[x] this Driver: JS

Problem
A query looking more or less like this:
FOR doc IN collection
LET data = doc.data
FILTER !doc.force && data.c && data.t && doc.done
&& doc.start >=<PHONE_NUMBER>000
&& doc.done <=<PHONE_NUMBER>000 && doc.url =~ "www\.foo\.com" && doc.type IN ["bar"]
RETURN doc

Ended up producing duplicate documents when consuming the cursor. Realising a cursor is used and drained, I had the idea of testing a hack, which turned out to fix the problem: Simply sorting by doc._key. This only happens when I consume the query programmatically on my end, if I use the UI i'm unable to produce duplicates. The query in question returns 3k docs, but dupes happen with different variations of the query and different number of results.
The arangojs code, which is the driver we use, looks to have very little room for bugs in the cursor implementation, so thats why I post this issue here.
I don't have time to try to build a dataset and failing code sample right now, but I might be able to do so later. I'm posting it without more context in the hope that the team will get a hunch about what can cause this and be able to investigate based on that.
Also, this also only happens in our cluster setup, so maybe its related to shard communication ... I've been unable to replicate it locally with a single-instance docker environment.
Our cluster runs 3 dbservers + 2 coords

Update: Doing a sort only solves it up to a number of rows, surpassing 3k its back to giving dupes

Can you check if the problem still exists with 3.2.7?
I remember we fixed a bug in that release that may be related. The bugfix had to do with an internal cache for partial AQL results. The purpose of that cache was to avoid copying of data where possible, but the cache had a subtle bug. It could compare two different values equal, and then may have returned wrong data. That means it may have produced duplicate results, but it will not have produced more or less results than expected (number of results should not change due to the bug, just the contents of the results may have been wrong).
As I said, this bug was just fixed in 3.2.7, which was released today. If you could check if the problem still happens with that release, that would be a great help. Thanks!

This was just the type of answer I was hoping for. I will make an effort to set up a 3.2.7 system and replicate the data over and give it a test.

Thanks!

Looks like 3.2.7 solves it. I set up a secondary environment with 3.2.7 and the same data; Bug does not happen there. Tomorrow I will try to upgrade the real environment where it happens to 3.2.7 and finally verify that it fixes it completely.

@nervetattoo can you confirm this can be closed?

Yes! :D


Update pact configuration to avoid multiple runs

Previously the pact would run multiple times for a Publishing API this
seemed to be a result of additional configuration that may have lost
it's original intent.
To update this code I've tried to break this down to be less custom so
to have less challenges. The setup we use for this is a bit weird still
as it only seems to be configured for a single apps pact tests - luckily
this doesn't seem to be the case on any GOV.UK apps currently.

@theseanything I've updated this now.
It turns out that there isn't a released_version option we can run against so master is the best option we have. Instead of their being a tag of released_version they are actually tags of individual versions, and they themselves are broken 😞 - I've opened a PR here to remove them: https://github.com/alphagov/gds-api-adapters/pull/947


Added Static ID for initial data

Without the Static ID, Initial Data creates the data every time we run the application.
I have added a static GUID to make that obvious

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


[CI] Move the linting jobs from CircleCI to Gitlab

What does this PR do?
This PR moves all the tooling linting jobs from CircleCI to Gitlab.

Motivation
We aim to get rid of the CircleCI jobs in the near future.

Additional Notes
https://datadoghq.atlassian.net/browse/ACIX-403

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


can not open local file as input

$cat hello.c
#include <stdio.h>
int main(int argc, char** argv) {
    FILE *file = fopen(argv[1], "rb");
    if (!file) {
        printf("cannot open file\n");
        return 1;
    }
    while (!feof(file)) {
        char c = fgetc(file);
        if (c != EOF) {
            putchar(c);
        }
    }
    fclose (file);
    return 0;
}

$gcc  hello.c && ./a.out tests/hello_world_file.txt
ok

$/home/myth/.local/lib/python3.9/site-packages/wasienv-storage/sdks/14/wasi-sdk-14.0/bin/clang hello.c -o hello.wasm --sysroot=/home/myth/.local/lib/python3.9/site-packages/wasienv-storage/sdks/14/wasi-sdk-14.0/share/wasi-sysroot --target=wasm32-wasi

$wasmer hello.wasm  tests/hello_world_file.txt
wasmer: /lib64/libtinfo.so.5: no version information available (required by wasmer)
cannot open file

$wasmer -V
wasmer: /lib64/libtinfo.so.5: no version information available (required by wasmer)
wasmer 2.1.0

$cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

Yes; this is a design property of the current version of WASI. In order to access local files, one must provide preopened directory handles. The command-line syntax for doing this varies between engines; in wasmtime, for example, one can pass --dir=tests to allow the WASI program to access the tests directory.

tests/hello_world_file.txt

Thanks! wasmer and wasmtime both had --dir, but I still get same error message as:
# wasmer
$ wasmer run hello.wasm tests/hello_world_file.txt --dir tests/
cannot open file

# wasmtime
$ wasmtime run hello.wasm  tests/hello_world_file.txt --dir tests/
cannot open file

$wasmtime -V
wasmtime 0.32.0


Fix: Fixed the image read issue

Go through hehe.txt for details
https://github.com/vamshi6763/LEDs_using_finger_count/assets/74657563/4582382b-1b1c-4fb6-86c6-e36c1eed671b

Sorry, some misunderstanding happened, I thought that this was my friend's repo.


[event-hubs] fix eslint errors (round 1)

Round 1 addressing #10777
Replaces #13013
This leaves 5 errors and 15 warnings (excluding TSDoc) after this PR is merged.

4 'Promise executor functions should not be async' errors. Fixing this will take a lot of care and I would want these to be reviewed on their own so they don't get lost in the noise.
1 'N is already defined'.


feat(python): reading/writing transaction identifiers in python

Description
We'd like to read/write the delta transaction identifiers for stream processing. It seems that this is currently available to through rust but not python. This PR adds the following to the python API:

app_transactions field in CommitProperties, which is a list of the Transaction data class
DeltaTable.transaction_versions for accessing the latest transaction of a delta table, which returns a dictionary of app id -> transaction dict

Would like some feedback on the naming/API. I'm not sure which is the correct terminology to use - "app transaction" vs "transaction version" vs "transaction identifier"? The delta protocol refers to it as transaction identifiers.

transaction identifier would have been a better name if we are to start from scratch, but to keep it consistent with the rust core, it's better to keep using app transaction for now.


Add platform definition for BeagleBone and default to it on armv7l-linux.

This should be sufficient to use nix on ARMv7 (e.g. BeagleBone), but of course not NixOS.
Note: not completely tested due to other issues, but at least we now pass the right floating-point options to the gcc configure script. Without this, I had an error since gcc doesn't figure it out by itself.

Merged to staging (see 4b9729f9d9eea4feb751565370a3dd1d4197f88f).


Medium Term Updates

As usual, fully open to feedback and changes :)

Hmmm, with my last commit, build now failed because of an "apparently" dead YouTube link, even though the link works fine on my end. I assume it's a false positive but I tried to re-run the test and it just hangs. Anyone knows a magic trick?

For links, It's good because now links will be clickable on the Website.  But yes #290 is to embed the links in the text.

Added another commit and now the build passed. Would be good to know another way to fix false positives.

@gabrielcossette You can go to Travis and restart the build that failed.

@gabrielcossette You can go to Travis and restart the build that failed.

I tried to re-run it from GitHub interface but it didn't seem to work. I'll check with you next time, thanks!

To-do: Still need more varied references and to embed links

I say we merge this change and continue adding references in other PRs.


Content Enhancement : KNN

The below mentioned additions are required -

Math - We need to add a solved example to show the working of the algorithm. To be precise, a pen and paper example of the math behind the algorithm with help of images like we have used for other algorithms.

### KNN - K Nearest Neighbor
KNN algorithm is mainly used to classify and predicting the values in Machine Learning. We can use it for Supervised Machine Learning problems(Labeled) such that Classification and Regression.
KNN
K - constant value
NN - Nearest Neighbor
KNN is simply , Finding the K Nearest Neighbor of the data point and classifying the data points with maximum number of classes of the neighbors

We can find the value of K by finding the mean of the error in each records and plotting as graph
K is the value where the mean error rate is lesser
`error =[]
USED FOR CHOOSING K VALUE
for i in range(1, 40):
model = KNeighborsClassifier(n_neighbors=i)
model.fit(x_train, y_train)
pred_i = model.predict(x_test)
error.append(np.mean(pred_i != y_test))
plt.figure(figsize=(15, 15))
plt.plot(range(1, 40), error, color = "red", linestyle = "dashed", marker="o", markerfacecolor="blue", markersize=10)
plt.title('Error Rate K value')
plt.xlabel('K value')
plt.ylabel('Mean Error')
plt.show()`
Finding K -> Finding how many neighbors that we have to choose around the data point

Value of k = less error rate
After choosing K value,
You may have a question like,
How will it find the k nearest points ?
Distance of the data points will be calculated in KNN using Minkowski distance.

Based on Minkowski Distance metric, We gonna classify the data points.
p=1, Manhattan Distance
p=2, Euclidean Distance
Manhattan Distance

This is the distance between real vectors using sum of their absolute difference.
Euclidean Distance

Euclidean distance is calculated as the square root of sum of the squared differences between a new point (x) & existing point y
Hamming Distance

It is used for categorical variables. If the value x and the value y are the same, the distance d will be equal to 0. Otherwise distance equal to 1
The above methods are used to find the distance and to finding the k closest neighbor of that particular data point.
With the classes of neighbors, We can classify the data point with maximum neighbor's class
Thank you!

Hey @sudharsansrini the content that you mentioned above looks really amazing and we could incorporate it in the main platform. I am pretty sure that writing this would have taken a good amount of time and i request you to make a PR for the same because otherwise it won't get counted as your contribution. Feel free to join our discord if you need any help with how to contribute and stuff like that.


Add Debian Bullseye codename

Otherwise install fails if it uses "11":
apt-get update -qq >/dev/null
E: The repository 'https://download-stage.docker.com/linux/debian 11 Release' does not have a Release file.

closing in favour of https://github.com/docker/docker-install/pull/241


Mitigate CI flakiness

Proposed Changes

Increase timeouts to reduce number of randomly failing CI jobs

SSH connection timeout, see these affected jobs:

https://github.com/techno-tim/k3s-ansible/runs/8176874625
https://github.com/techno-tim/k3s-ansible/runs/8194471058
https://github.com/techno-tim/k3s-ansible/runs/8201046374

Timeout while applying MetalLB custom resources + retry, see these affected jobs:

https://github.com/techno-tim/k3s-ansible/runs/8176701422
https://github.com/sleiner/k3s-ansible/runs/8168834497

While modifying the post role anyway, I deduplicated some logic in it (side bonus: this makes the Ansible logs much more compact) and fixed a typo :-)

Checklist

[x] Tested locally
[x] Ran site.yml playbook
[x] Ran reset.yml playbook
[x] Did not add any unnecessary changes
[x] 🚀

Awesome!  Thank you! Looks like the issue now is the molecule cache / destroy step which only seems to fail if there isn't a cache?

@timothystewart6

Looks like the issue now is the molecule cache / destroy step which only seems to fail if there isn't a cache?

I don't see that - can you explain?
The current last job fails with an error message I have not seen before:
failed: [control1] (item=controller) => {"ansible_loop_var": "item", "changed": false, "cmd": ["k3s", "kubectl", "wait", "deployment", "--namespace=metallb-system", "controller", "--for", "condition=Available=True", "--timeout=60s"], "delta": "0:00:01.804541", "end": "2022-09-06 10:07:00.859658", "item": {"condition": "--for condition=Available=True", "description": "controller", "name": "controller", "resource": "deployment"}, "msg": "non-zero return code", "rc": 1, "start": "2022-09-06 10:06:59.055117", "stderr": "error: the server doesn't have a resource type \"deployment\"", "stderr_lines": ["error: the server doesn't have a resource type \"deployment\""], "stdout": "", "stdout_lines": []}

I just retried the job in my fork and it succeeded for the same commit, so it appears that we have another flakiness. Unfortunately, I cannot reproduce it locally. I'll just retry the job a few times to check how often this becomes a problem.

After that rather mysterious failure, I have let the latest revision (1a4346f1b8cdada7575447d5f67038a87ebc2622) run 11 more times using these retrigger commits. These are the results:

✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
✅<PHONE_NUMBER>
❌<PHONE_NUMBER>: 503 during application of MetalLB CRs
✅<PHONE_NUMBER>

So my proposal is doubling the retry delay for the MetalLB CR application and otherwise going with the changes as they are currently. It is already a substantial improvement over the current state and if flakiness becomes a significant issue again, we will tackle it then. What do you think, @timothystewart6?

Thank you very much!


Implement missing BasicPlot examples

We have 14/95 currently. Question:

Worth doing them all? I think yes.. maybe? If we look at them as integration tests, then good to have that much coverage.
With so many we should split BasicPlots into several files to keep it maintainable. We could use: Area, Bar, Layer, Misc, etc. Based on the prefix's of the spec files they have.

f9393a105ae366f5d8bb32f0766cd72b25ff512c currently, 20/95

I would be happy to start out contributing to this repo by working on this issue, but I am so new to any of this plotting ecosystem that I do not understand the issue yet.
What are the BasicPlot examples? Where do I find them in order to fill in more plots to the file linked in the commit above? Are these intended to function as a unit test just in the sense that if these plots fail, something needs to be updated? (E.g. they are not unit tests, just some sort of regression test?)


0.18.4 Crashes on Initial Startup with LiteLoader installed

Used MultiMC. Minecraft verison 1.8.9, Forge <IP_ADDRESS>2, Liteloader 1.8.9-SNAPSHOT all installed. No other mods were installed other than ChatTriggers (although they are disabled, this error shows up even when it's the only one installed).
Unable to take a screenshot since Minecraft doesn't start at all.
Log: https://pastebin.com/BuYG78Jp

We currently don't support LiteLoader, though it looks like this issue might be solvable via relocation of our Mixins dependency (LiteLoader must ship with their own version or something?). We'll put this one on the backburner, but getting it solved for 1.0.0 might be nice.

No longer a problem after the switch from Mixins to ASM.


travis: Remove sudo:true

Find a simple way of installing SDL2 without sudo - https://github.com/ozkriff/zemeroth/blob/d36340e17/.travis.yml#L35

Experimenting in i249_travis_no_sudo branch.

Nah, it doesn't worth the trouble, especially considering what ggez is moving towards winit.

Closed by https://github.com/ozkriff/zemeroth/pull/426


Quick Clarification Question on C4 PPL

Hi, first of all, thanks for the amazing paper and repo --- I've learned a lot from it. The comprehensive results table has also been useful as a service to the community.
I just want to ask a very quick clarification question. The repo has two versions of C4 evaluation ("c4" and "c4-new"). For the C4 perplexities in the paper (e.g., Table 10), I'd like to confirm which version of C4 evaluation the numbers correspond to (i.e., "c4" or "c4-new")?
Thanks in advance for your time!

Thanks for your interest.
In the paper, the reported C4 perplexity is from c4.

Thanks for the quick confirmation!

Hi, sorry for following up the thread with an additional clarification questions:
For all W3A16 g128 entries in Table 1 and Table 10, would you mind specifying the number of bits per parameter when taking into account of overheads? Here are some calculation on my end, it'd be great if you could confirm (or correct) them:

RTN/GPTQ/AWQ (I assume they are the same): 3.148 bits/param (i.e., the overhead is 0.148 bits/param [1]
OmniQuant: 3.25 bits/param (i.e., the overhead is 0.25 bits/param) [2]

Thanks again for your time -- this is super useful.
[1] All of them store one FP16 scale and one 3-bit integer zero-point per group, hence the overhead (with group size 128) is (3. + 16.) / 128. ~= 0.148 bits/param.
[2] OmniQuant stores two FP16 numbers per group, hence the overhead (with group size 128) is 2 x 16bits / 128 = 0.25 bits/param

Sorry for the confusion. Actually, the number of bits of OmniQuant is same as RTN/GPTQ/AWQ. For W3A16 g128, OmniQuant stores one FP16 scaling factor and one 3-bit integer zero-point per group.
Specifically, you can refer https://github.com/OpenGVLab/OmniQuant/blob/834847adcee9575b89cd14ed2a3623c770743b4a/quantize/quantizer.py#L146
, which shows that zero-points are transfer into integer through round.
Additionally, the quantization models of OmniQuant can also deployed by existing AWQ/GPTQ kernels due to the entirely same architecture. For example, we also try to achieve really memory reduction with GPTQ kernel in our code.
https://github.com/OpenGVLab/OmniQuant/blob/834847adcee9575b89cd14ed2a3623c770743b4a/quantize/omniquant.py#L264

Ah I see, thanks for the clarifications!
One additional question (and likely a dumb question). I understand that OmniQuant shares the same amount of overhead as RTN/GPTQ/AWQ. But is the overhead calculation correct to you (i.e., ~=0.148 bits/param)? I noticed that the SqueezeLLM paper [1] listed these as 3.24/3.25 bits/param depending on the base model size, which is a bit confusing to me. Did I miss anything?
[1] https://arxiv.org/pdf/2306.07629.pdf

Yeah, ~=0.148 bits/param is the correct bits number for W3A16 g128 asymmetric uniform quantization.
I have also noticed the reported bits number at SqueezeLLM. In my view, SqueezeLLM paper reported the wrong bits number for GPTQ/AWQ.

Got it; a huge thanks again for taking the time to answer those questions!!


new step list package

These are files we went over together that compose an initial version of the step list component

package.json (created by running npm init -y in the new directory, then changing the package name
readme.md that describes the package, links to the screenshot we took, has sample HTML and lists CSS vars used
sass file with the CSS code Konstantin wrote modified to add the new namespaced classnames

The package.json file has a sass build script which uses the sass package
The index.css file is generated automatically by running the build script

Looks good.


Create a github org for ipaddress-gem

@bluemonk: what do you think about creating an open-source Organization named ipaddress-gem and transferring this gem to the org.
https://github.com/account/organizations/new
This will help us to setup Travis CI for testing.
In support of this I would also setup a google group for the maintainers of this gem.

see also: https://help.github.com/articles/transferring-a-repository/

@bluemonk
Org has been created.
https://github.com/ipaddress-gem
You have been invited as an owner.  I will add anyone else that should have write access or owner access.  Just let me know.
Can we transfer this repo to the org?  I'd love to get automated branch testing setup.


Figure out error responses

We need to implement various error results. See https://app-wallet-interface.netlify.com/#create-channel for some examples.

This is duplicate of newer issues.


Using language files

Hi,
I cant seam to get the locals to work, how should they be included?
Do i need to pass the language while initialising Sir Trevor?
Had a look but couldnt see much on how to include them, im implementing it in a system where the user would be able to select a language from a dropdown
Thanks

Hi. If you have a different locale installed you should be able to set SirTrevor.config.language = "fr" where fr should be replaced by your language string of choice. Only english is bundle in with SirTrevor core so you will need to include the languages you require as separate JS files or explicitly as part of a bundle.
Currently ST does not support dynamic switching of languages but you could destroy and reinitialise the sir trevor instance each time you change the SirTrevor.config.language value.
For instance, something like this should work
$("#language_selector").on("change", function(e){
  SirTrevor.config.language = e.currentTarget.value; // where this would be the selected language
  // You may want to save all your SirTrevor data here
  SirTrevor.onBeforeSubmit(false);
  // Destroy all instances here
  SirTrevor.runOnAllInstances("destroy");
  // Reinitialise SirTrevor here the same way you did before
});

Note that this is untested code but it should give you an idea of how to get this working.


Showing "projects" at the beginning of ToDo

Did you check if a similar feature request has already been reported?
Yes
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like

Showing Projects at the beginning of the ToDo, so I can tell which project the Todo belong to,
without going to the end of line
Alternatively Showing the Project as a Second line, so they are shown on the begining of line

Describe alternatives you've considered
Thank you @ransome1

Hi @nutnutwin . Is this a duplicate of https://github.com/ransome1/sleek/issues/135 ? Of not can it be merged with your idea somehow?

@ransome1
Sorry for the mistakes
I merged Sorting into #135, and kept this issue

Hi @nutnutwin , I understand your use case, as you propably have a big focus on projects on your work, right? But I don't think I support the idea of putting projects at the beginning of the todo line. In my opintion tags should always follow the content itself. Like other todo.txt apps do it as well. Or even the issue list here on Github. This is something learned by most users and part of an expectation driven approach to usability.
The issue with the new line for projects (and why not contexts would be my next question) is, that it would add significant row height to each todo with an assigned prject. I think this would affect the usabilty deeply as users now would have to scroll a lot more. There are some users with 500+ todos which would not appreciate this, I think.
What you're propably looking for is the second group criteria ;) It's on the roadmap, but I can't give you a timeline for this yet.
Is the "sort by Projects" setting a workaround for you?

@ransome1 thank you for understanding
I am happy the two critieria is being considered
Yes projects/tag on beginning is not good for everyone
If you dont mind I would close this issue?

@nutnutwin I don't mind :)

@ransome1 Thank you


allow environment variables to override UID 1000 in docker-entrypoint.sh

The entrypoint script docker-entrypoint.sh has various checks to drop privileges, which is a good thing from a best-practices security point of view.
However, the UID 1000 is hard-coded in that script (search 1000 in that script). While this may work in a majority of users' situations, there are cases in which it's desirable that processes and file permissions are for another use (e.g., 1001, etc.). This UID value would need to be specifiable at runtime, not container build-time.
This could be easily resolved by allowing an environment variable to be checked and used, if specified, in docker-entrypoint.sh. In places where you'd use the 1000 UID, use something like:
${PUID:-1000}

Then, via a docker-compose.yml file or a docker run command a user could easily specify something like --env PUID=1001.

Hi @MMakaria this is a valid suggestion and we appreciate if you can also create a PR for it.
However, it is unlikely that we will include this in the upcoming 1.13.0 release since we are already in the process.
We would review it after the release.
Thanks.

Hi @mmguero,
I'm working on updating the Docker files as part of https://github.com/opendistro-for-elasticsearch/opendistro-build/issues/696. I'm thinking that an easier solution is to not allowing running the entrypoint as root, and to use docker run --user=whatever to specify custom UIDs.
That achieves your purpose, using --user= rather than --env PUID=. Failing the script if run as root achieves the security best-practice goal.
I will also add build-time args to the Dockerfile so people can customize the default UID and GID.
Thoughts?

Yes, I think that would be a fine solution. Thank you!

Great!
Here's the first part of the change: https://github.com/opendistro-for-elasticsearch/opendistro-build/pull/709
Feedback appreciated.

Resolved with https://github.com/opendistro-for-elasticsearch/opendistro-build/pull/719


feat(store): UnorderedSet v2 caching implementation

Closes #587

I wanted to get rid of more clones, but unfortunately most of the binary operations (union, intersection etc) require access to contains which in turn means that all of them need Clone. So I don't think there is an easy way out of this unless we can somehow not use LookupMap.


feat: (IAC-1372) Update Default CERT_MANAGER_CHART_VERSION to 1.14.4

Changes
Update the default version of cert-manager to 1.14.4
cert-manager 1.14.4 is compatible with kubernetes versions 1.24 → 1.29, see supported
releases: https://cert-manager.io/docs/releases/
There are no breaking changes from the original default of 1.13.1 to 1.14.4, see the upgrade documentation here:

https://cert-manager.io/docs/releases/upgrading/upgrading-1.13-1.14/

Tests

Scenario
Task
Provider
K8s
V4_CFG_TLS_GENERATOR
CERT_MANAGER_CHART_VERSION
V4_CFG_TLS_MODE
V4_CFG_TLS_CERT/KEY/TRUSTED_CA_CERTS
order
cadence

1
OOTB + Logging/Monitoring
GCP
v1.27.12-gke.1115000
cert-manager
1.14.4
full-stack
user provided
*
fast:2020

2
OOTB + Logging/Monitoring
GCP
v1.27.12-gke.1115000
cert-manager
1.14.4
full-stack
generated
*
fast:2020

3
OOTB + Logging/Monitoring
AWS
v1.28.7-eks-b9c9ed7
cert-manager
1.14.4
front-door
user provided
*
fast:2020

4
OOTB + Logging/Monitoring
AWS
v1.28.7-eks-b9c9ed7
cert-manager
1.14.4
front-door
only provided TRUSTED_CA_CERTS, required for external RDS instance
*
fast:2020

5
OOTB + Logging/Monitoring
Azure
v1.29.2
cert-manager
1.14.4
full-stack
user provided
*
fast:2020

6
OOTB + Logging/Monitoring
Azure
v1.29.2
cert-manager
1.14.4
full-stack
generated
*
fast:2020

Commenting tests again for non-wrapped table.
Tests

Scenario
Task
Provider
K8s
V4_CFG_TLS_GENERATOR
CERT_MANAGER_CHART_VERSION
V4_CFG_TLS_MODE
V4_CFG_TLS_CERT/KEY/TRUSTED_CA_CERTS
order
cadence

1
OOTB + Logging/Monitoring
GCP
v1.27.12-gke.1115000
cert-manager
1.14.4
full-stack
user provided
*
fast:2020

2
OOTB + Logging/Monitoring
GCP
v1.27.12-gke.1115000
cert-manager
1.14.4
full-stack
generated
*
fast:2020

3
OOTB + Logging/Monitoring
AWS
v1.28.7-eks-b9c9ed7
cert-manager
1.14.4
front-door
user provided
*
fast:2020

4
OOTB + Logging/Monitoring
AWS
v1.28.7-eks-b9c9ed7
cert-manager
1.14.4
front-door
only provided TRUSTED_CA_CERTS, required for external RDS instance
*
fast:2020

5
OOTB + Logging/Monitoring
Azure
v1.29.2
cert-manager
1.14.4
full-stack
user provided
*
fast:2020

6
OOTB + Logging/Monitoring
Azure
v1.29.2
cert-manager
1.14.4
full-stack
generated
*
fast:2020


See the "linter enabled" checkbox on the side of playground, which to my knowledge is the equivalent to
{
  "javascript": {
    "linter": {
      "enabled": false
    }
  },
  "linter": {
    "enabled": false
  }
}

setting in a biome.json file.
Note that it is a linter error (not a formatter) because it can be manually disabled via an ignore lint comment.
I'm not sure if related, but this rule does not show up in the config: https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/configuration_schema.json#L720 so I'm also not able to explicitly disable it in biome.json (although again I would expect a global enabled=false to cover it already)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
As far as I am concerned, simply allowing me to disable this rule alongside the rest of linting is good enough for me.
That being said, I would also disagree with the logic of this rule for certain use cases
When writing a CJS file and importing from an ESM file, typescript requires this annotation:

The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("package-name")' call instead.

See a similar discussion in a previous issue: https://github.com/biomejs/biome/issues/2115
Where I actually moved over to this approach as a workaround initially.
This would require biome to have typescript knowledge of "this is CJS and target is ESM", which I'm not sure it is capable of today...
Code of Conduct

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

This is a syntax rule that cannot be disabled because it is considered as a syntax error. Have you some evidence that TypeScript allows this?

Have you some evidence that TypeScript allows this?

Yes this is a relatively new feature in Typescript, but it is officially supported.
Its tricky to replicate in TS Playground (because you can't explicitly flag your file as CJS) but I can point to the actual file where I am using this in my codebase: https://github.com/JacobLey/leyman/blob/194f88d69e4c1bc7d1dd5696736357765caa1b18/tools/common-proxy/src/common-proxy.cts#L1
Probably the best documentation right now is the conversations on the Typescript Github

https://github.com/microsoft/TypeScript/issues/53656 Import Attributes Feature Request (implemented and completed)
https://github.com/microsoft/TypeScript/issues/49721 Issue calling out this explicit use case, which was resolved in 5.3 release
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#stable-support-resolution-mode-in-import-types 5.3 release notes for "Stable Support resolution-mode in Import Types"


Iconsax Dependency can be avoided

Is your feature request related to a problem? Please describe.
Iconsax Dependency outdated
Describe the solution you'd like
Use a inbuilt icons only and leave upto users for better performance
Describe alternatives you've considered
Use a inbuilt icons only and leave upto users for better performance
Additional context

Hi @payam-zahedi,
What are your thoughts on this topic? I’ve been reviewing the code, and it seems feasible to eliminate this dependency by switching to the default Material Icons. However, I’ve noticed that not all the icons match exactly or maintain the same style.

@AntonioAEMartins @alangautham
Iconsax is a package I optimized by converting it to a font system, which I believe will not cause any performance issues. Additionally, you have the flexibility to use your own icons with the show method. If you are using a custom icon package and not utilizing Iconsax, Dart's tree-shaking will remove any unused code related to it.
Finally, I want to emphasize that our icons are part of our design system, thoughtfully designed by Sepideh to ensure consistency and alignment with our visual identity.


Add backoff procedure to universe RPC proof courier

This PR extracts the backoff procedure from the hashmail proof courier and makes use of it in the universe RPC proof courier.
Fixes https://github.com/lightninglabs/taproot-assets/issues/512

I haven't added an itest which covers this new use of the backoff procedure in the universe proof courier. Let me know if you guys have any ideas along those lines.

The latest commits address the review comments and add an itest to cover the changes introduced in this PR.


Naynjain/edk2fixes v2

This pull request includes:

Fixes for new_secvar helper
Split of the edk2-compat.c into:
edk2-compat.c
backend-common.c
edk2-compat-util.c
We can reconsider the naming. Please read through commit description for the details.

It includes physical presence changes.
It does not include hw-key-hash change. I will be sending it separately.

I have added the hw-key-hash changes as new commit to this branch. It does compile fine. I have it tested to read the device-tree property correctly.. I will test the function to compare with TPM property once we have the storage driver reading from TPM and adding to the secure variable.


A question about variable self.acc_sum in GHMC_loss

Hi, Buyu,
Thanks for your great work !
In line 22 of ghm_loss.py, the variable self.accu_sum in GHMC_loss class is initialized as a list filling with zeros. In line 47, you update it with the following code:
self.acc_sum[i] = mmt * self.acc_sum[i]
+ (1 - mmt) * num_in_bin
As self.acc_sum[i] is initialized as zero, mmt * self.acc_sum[i] has no meaning. Could you explain a little bit about your idea here?
Best Regards
Qin

I think I have understood your intention.
As the name 'acc_sum' indicates, you want to record the accumulated sum of all samples whose gradient lies within the bin. Thus, as batch iteration goes on, self.acc_sum would consider not only samples in the current batch, but also its previous value. The ratio is controlled by 'mmt'.
Thanks again !

@sjtuliuqin Yes, you got it. And for the theory of the "acc_sum", you can refer to the part "EMA" on page 4 in our paper https://arxiv.org/pdf/1811.05181.pdf. Thank you for your interest.


Only lint/test packages that have impacted tests

Linting/Testing is starting to take a bit of time. We should investigate only testing packages that have impacted tests.

https://codersmind.com/eslint-changed-files-upgrade-codestyle/

https://facebook.github.io/jest/docs/cli.html#lastcommit

Yeah these are good resources. I think the bulk of the time spent on tests is with the nightwatch tests. If we can identify a way to only run the nightwatch tests for components that have been updated, we'd see a big time reduction when it comes to tests.

<EMAIL_ADDRESS>added an --only-updated option to exec and run subcommands. This would look like lerna run --only-updated test which would run the npm test script in only packages that have been updated since the last tag was created.


fix: shard mu RLock and Lock conflict

Signed-off-by: jwcesign<EMAIL_ADDRESS>What problem does this PR solve?
This may stuck rp task or other shard get Lock staff.
Issue Number: close #95
What is changed and how it works?
shard CreateLogicPlan already get shard mu RLock.
How Has This Been Tested?

[x] existed test

Checklist:

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

During data iteration, a read lock has been added to the shard when a logical plan is created. The read lock is repeatedly added to the cloneMeasurementReaders. As a result, a write lock is added to the shard when the shard expires, causing a deadlock.


L2 regularizer

`for x, target in zip(data, labels):
            pred = self.__forward_prop__(x)
            deltas = pred - target

            self.__backward_prop__(deltas=deltas, eta=eta)`

Should we change in the online training deltas = red - target to be a call to loss and implement different loss methods with regularization and not?
Also I don't understand how Is computed the deltas, is a simple difference, it's not a mse, I know we are just evaluating one example at time, but I thought it should be like (red-target)^2

Yes, I left it somehow while debugging. We should add a call to loss derivative: using mse it's 1/2(pred-target) (omitting 1/2 since we're manually tuning hyperparameters). I'll fix it as soon as possible.


Several errors importing dumped data

Bug description
After a dumpdata on a DD v5.4 I tried to loaddata the result JSON file. First I getted this:
json.decoder.JSONDecodeError: Invalid control character at: line 1230684 column 6153 (char 74261006)
This was because inside the file there were \r\d charancters in some JSON descriptions fields (is this because a bug in dumpdata function?).
I solved that with:
sed -i 's/\r//g' dumpdata.json
sed -i ':a;N;$!ba;s/\n//g' dumpdata.json

But now I get the following error:
json.decoder.JSONDecodeError: Invalid \uXXXX escape: line 128749 column 40 (char 6667587)
Analizing that line:
# sed '128749!d' dumpdata.json
        "object_repr": "Ausencia e pol\u00etica e contrase\u00f1as robustas",

I see the error is at \u00e unicode character which is í in Spanish
To continue I modified the dumpdata file changing all \u00e strings to i (bad written in Spanish but...), I did it witd sed:
sed -i 's/\\u00e/i/g' dumpdata.json
No I tried to loaddata again with the following error now:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", line 155, in get_app_config
    return self.app_configs[app_label]
KeyError: 'defectDojo_engagement_survey'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/core/serializers/python.py", line 154, in _get_model
    return apps.get_model(model_identifier)
  File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", line 205, in get_model
    app_config = self.get_app_config(app_label)
  File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", line 162, in get_app_config
    raise LookupError(message)
LookupError: No installed app with label 'defectDojo_engagement_survey'.

Difficult to follow with the task from here.
Expected behavior
Load backup data on an actualized DD 8.0 deployment.
Deployment method (select with an X)

[ ] Kubernetes
[X] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: Linux dojo 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux (Ubuntu 20.04)
DefectDojo Commit Message: [2020-10-02 18:19:00 +0200] a89d7df4: renovate: only rebase when conflicted [ (HEAD -> master, origin/master, origin/HEAD)]

Screenshots

loading and dumping data is a built in function of the django framework. we have no control over it.
dumping from 1.5.4 and loading in 1.8.0 is not supported. you need to upgrade to 1.8.0 first and then dump -> load.
the message about engagementsurvey is because of changes in settings.dist.py that you may need to apply to your local copy of that file or settings.py

BTW it's much easier to use mysqldump to dump the data and load it in a new database. In that scenario you can dump from 1.5.4 and load into 1.8.0 and the migrations will upgrade the database format.

BTW it's much easier to use mysqldump to dump the data and load it in a new database. In that scenario you can dump from 1.5.4 and load into 1.8.0 and the migrations will upgrade the database format.

How can the migrations upgrade the database format in an 1.8.0 version?

Hi @LeonardoNve like @valentijnscholten mentioned dumpdata is a django function and not a dojo function, so there isn't anything we can do here. You shouldn't have to mess with migrations, as we provide the files, but how it works is a migration is created that diffs the DB and figures out what is missing / added. We then add code to handle data transfers or manipulations (when needed).


Containerize eureka server to make tests pass with Stork 2.x

Related to #466

Done!
I also rebase onto main


Red Screen immediately after react-native init project

I'm on the latest Xcode (6.2), node (v0.10.36), npm(2.7.3), watchman (3.0.0), and flow (0.1.6).
I run the react-native init testProject. I open the testProject.xcodeproj in Xcode and press the run button to run it on iPhone 6 iOS 8.2. I see the first intro screen, then if I click anywhere I immediately get a Red Screen saying:
SyntaxError: Unexpected token '<'

{
    "line": 1,
    "sourceURL":"http://localhost:8081/index.ios.bundle"
}

I've tried init'ing multiple projects, all the same effect. It looks like it isn't compiling the JSX correctly? I'm more than willing to help debug, just need to be pointed in the right direction.

Can you open http://localhost:8081/index.ios.bundle in your browser and past the result somewhere?

Looks like it is the nginx welcome screen?
<!DOCTYPE html>

<title>Welcome to nginx!</title>

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.

For online documentation and support please refer to
nginx.org.

Commercial support is available at
nginx.com.

Thank you for using nginx.

react-native doesn't do anything with nginx – perhaps you have something else running on that port? Not sure why that wouldn't give an error earlier though…

Let me hunt down what is using that port.

Ok, so I have a Vagrant project running that had opened 8081. When I turned it off, I could validate that I was appropriately getting the bundle file, but I would still get the error. I tried doing a "clean" before running again, same issue.
I had to delete the app from my simulator, run, and then it worked. :)
It appears that packager was failing silently to run. I didn't know I should see a command terminal pop open, so I had no idea.
So thoughts on how to avoiding in the future:

Have packager, if it can't open the port, do something other than silently fail. Would have clued me in much sooner.
Allow the user to configure what port to use.

Thanks for the quick response! I'm super excited to build something! :)
I'll leave this open for now and let you close it incase you wanted to make any other issues about the silently failing packager or configuring the ports. :)

Yup, it should just fail. Glad it's working for you now.

@amasad want me to re-name the title of the Issue to "Port Already In Use Fails Silently" and we can figure out how to fix that?

that'd be great!

@amasad Ok, so I found a snag, not sure how to best solve this.
React/React.xcodeproj/project.pbxproj on Line 448, it checks to see if packager is running or not by checking port 8081 (since people can run the packager on their own). So if you have something else running on 8081, it won't run the packager.
So the question is, how do we check to make sure whatever is running on 8081 is valid?
Some ideas:

On react-native-cli when calling init, it could check to see if 8081 is already in use and emit a warning. It wouldn't help if sometime down the road another app listens to 8081, but it could help a brand new user.
Put some notice in the Xcode console log that it is not launching packager because 8081 is in use. This would make users aware something is wrong if they are not running packager on their own.
Have the react-native somehow validate that it is listening to a proper packager instance (i.e. searching for a string from http://localhost:8081/index.ios.bundle)

I'm not sure which, if any, are the best approach. Any thoughts?

I like something like the 3rd option. We can have a status page exposed from the packager that gets curled in the same line you pointed to.
cc @frantic

@amasad I made a simple pull request with it. Feel free to give any feedback on it.

Ran into the same issue.  An a mac with McAfee installed and a process named cma was using 8081
Used the following to find it.
$ sudo lsof -n -i4TCP:8081 | grep LISTEN

then
$ kill -9 <cma process id>

@amasad maybe we should use a different port than 8081 as the default, it seems like it's being used by a lot of things. Maybe 9381

@vjeux good point, but it'd be great to have an answer for this regardless (I'm sure someone will run into a problem regardless of the number we choose.

@amasad @vjeux I'd agree. Given how the port is hard coded in several spots, it would mitigate collisions. We can still keep the checking in #308, just change the port.

I believe this has been fixed via b6503ba4317f26665e8ae287d1addbe03cd50373


Failed to get JSON resource

Hi zzo, Unfortunately, I encounter this issue when building Hugo server.
$ hugo server Building sites … ERROR 2020/03/28 01:39:01 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true": Get "https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true": dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ERROR 2020/03/28 01:39:22 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=1085870671291310081&omit_script=true": Get "https://api.twitter.com/1/statuses/oembed.json?id=1085870671291310081&omit_script=true": dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ERROR 2020/03/28 01:39:43 Failed to get JSON resource "https://vimeo.com/api/oembed.json?url=https://vimeo.com/48912912": Get "https://vimeo.com/api/oembed.json?url=https://vimeo.com/48912912": dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Built in 66789 ms Error: Error building site: logged 3 error(s)

check u internet connection

I don't know what https://api.instagram.com/oembed/ is.
I think you added it to your blog.
So that means, you have to solve it by yourself and this is not related to this project.

@zzossig I do facing the same issue here.
The issue is from rich-content.md post, there's an embed video from Vimeo {{< vimeo_simple 48912912 >}}
The GET API from Vimeo doesn't work in assets/lib/reveal/reveal.js and causing an error.
// Vimeo frames must include "?api=1"
_appendParamToIframeSource('src', 'player.vimeo.com/', 'api=1');
_appendParamToIframeSource('data-src', 'player.vimeo.com/', 'api=1');

// Vimeo postMessage API
toArray(element.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function (el) {
  if (!el.hasAttribute('data-ignore') && el.contentWindow && typeof el.contentWindow.postMessage === 'function') {
    el.contentWindow.postMessage('{"method":"pause"}', '*');
  }
});

Here's my terminal looks like:
ERROR 2020/07/01 23:27:19 "/home/icoldplayer/Documents/static/new-docs/content/en/posts/rich-content.md:1:1":
timed out initializing value. This is most likely a circular loop in a shortcode

ERROR 2020/07/01 23:27:26 Failed to get JSON resource "https://vimeo.com/api/oembed.json?url=https://vimeo.com/48912912":
Get https://vimeo.com/api/oembed.json?url=https://vimeo.com/48912912: dial tcp <IP_ADDRESS>:443: connect: connection refused

Just remove the shortcodes in the post or comment on the code above, and everything works perfectly. Thanks!

Ty!
I had the same problem with this site. I found problems running locally in 3 of 4 pc, with diferent versions of hugo..a fast solution for me was delete all rich-content.md. I had error with twitter and youtube too.


[store] Add response hints to label APIs

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
In Cortex, we shard blocks b/w store-gateways, hence we need to send the list of blockids to query and the list of ids that have been queried in the response to make sure all the relevant blocks are queried. This has already been done for the Series API.
I have not yet added request hints yet. I will add them in a subsequent PR.
Verification
tbh, I have not tested it yet. I am only relying on the unit tests. Any tips on how I can test it?

Fixes https://github.com/thanos-io/thanos/issues/2984

@bwplotka Nice catch, not sure what I was thinking there. Fixed it!


Video Cover

Can we get cover video for video? Or a cover I set? There is no problem at the beginning of the video, but I want the cover to appear when the video ends.

Can we get cover video for video? Or a cover I set? There is no problem at the beginning of the video, but I want the cover to appear when the video ends.

sure. you can checkout the next branch


days countdown limited to two digits

i've tried to put a countdown for 2 years deadline but have only sixty-one days on the countdown !!
        <div class="countdown"
             data-role="countdown"
             data-stop="2018-11-15T08:00:00"
             data-divider-color="fg-grayLight"
        </div>

display 61:22:06:00 instead of 761:22:06:00

I will add this request to the TODO for the next version

4 digits for days now in develop branch


[Do not merge] Generate metadata.json from metadata.rb if not exist before knife cookbook upload or knife upload or berkshelf upload

Description

Berkshelf generates metadata.json at the time of upload but knife cookbook upload / knife upload do not have similar behaviour.
This change generates the metadata.json if it does not exist at the time of knife upload and knife cookbook upload and since it has the metadata.json uploaded on Chef Server it gets downloaded at the time of knife download.
Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] All commits have been signed-off for the Developer Certificate of Origin.

berkshelf should already do this and has specs around it.
there's also a complicated case where you want to create the metadata.json file but need to be very careful to delete it so as not to pollute the users repository -- or else you need create a tempdir, copy all the files there, generate the metadata.json in that directory, then clean up the directory.
That is this bit:
https://github.com/berkshelf/berkshelf/blob/2f9b16496f9edafc3db72dad4304615238584f69/lib/berkshelf/uploader.rb#L63
And this horrible bit:
https://github.com/berkshelf/berkshelf/blob/2f9b16496f9edafc3db72dad4304615238584f69/lib/berkshelf/uploader.rb#L88-L95

berkshelf should already do this and has specs around it.
there's also a complicated case where you want to create the metadata.json file but need to be very careful to delete it so as not to pollute the users repository -- or else you need create a tempdir, copy all the files there, generate the metadata.json in that directory, then clean up the directory.
That is this bit:
https://github.com/berkshelf/berkshelf/blob/2f9b16496f9edafc3db72dad4304615238584f69/lib/berkshelf/uploader.rb#L63
And this horrible bit:
https://github.com/berkshelf/berkshelf/blob/2f9b16496f9edafc3db72dad4304615238584f69/lib/berkshelf/uploader.rb#L88-L95

Yes , I was talking about the manual testing of berkshelf upload commands with this change and not the spec coverage.
@lamont-granquist I am not clear with your comments so may be I need more clarification. Do I need any updates in this PR ?

Looks good, I'll need to hold this until after I get back from vacation in 2 weeks though.


Variance and mean could be calculated in a better way

Currently the mean is calculated in a very naive way, which has numerical problems. Also it is possible to calculate the variance (and higher moments) in a single pass over the data, instead of two passes (see Wikipedia). (I implemented such an algorithm in Rust in this crate.)

Indeed. Also related issue: #182.


ambiguity in the description of api/ipcmain.md

The description say:

"Communicate asynchronously from the main process to renderer processes."

In the ipcMain introduction this become:

"When used in the main
process, it handles asynchronous and synchronous messages sent from a renderer
process (web page)."
So to my sense two things are not clear the directions of the communication and the sync/async mode of them. And further there is the assumption it could be used somewhere else than in the main process......

@albu77
In the first description, it is stating that the main process can communicate asynchronously with renderer processes. This means that the main process can send messages to the renderer processes without having to wait for a response. The renderer processes can then receive and process the messages at their own pace.
In the second description, it is stating that when used in the main process, the IPC (Inter-Process Communication) module handles both asynchronous and synchronous messages sent from a renderer process (web page). This means that the main process can send and receive both types of messages to and from the renderer processes.
Asynchronous messages are sent without waiting for a response, while synchronous messages require a response before continuing.
It is also mentioned that the IPC module can be used somewhere else than in the main process in Electron. This means that the IPC module can be used for communication between different processes within the Electron application, not just between the main process and renderer processes.

Hope you got it @albu77
Thanks
Issue #292 closed

If this is still in error, the issue should be opened on electron/electron because that repository is where the documentation is stored. The website is just presenting the data that's in e/e


Backoffice: search members

Needs addition to db: full text search on NAW

Issue has been moved to https://geenpeil.atlassian.net/


fix(sensors): correctly mask capdac value

There was a bug in the capacitive sensor driver related to masking the offset capacitance value. An offset of high enough pF would overflow into the CHB configuration field, effectively changing the channel being read to an invalid value and causing all future readings to be exactly the same.
Before this fix, touching a capacitive sensor (or otherwise driving the capacitance high enough) would cause the sensor to latch onto a value indefinitely. After this fix, the sensor behaves properly.

or


cmd/compile/internal/base, cmd/compile/internal/noder: "importmap" verb of -importcfg file has no effect

What version of Go are you using (go version)?

$ go version
go version go1.20.5 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/michaelpo/Library/Caches/go-build"
GOENV="/Users/michaelpo/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/michaelpo/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/michaelpo/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.20.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.20.5/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="cc"
CXX="c++"
CGO_ENABLED="1"
GOMOD="/Users/michaelpo/code/gotest/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/pc/tv8rh9c925g6dx1wpcc3bpjh0000gn/T/go-build284202503=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I was trying to use "importmap" verb of -importcfg file when run the compiler, but it had no effect.
Looking into the code, I found out that the compiler never use "importmap" from importcfg.
It happens because of this condition which is always true when -importcfg provided.
Because of base.Flag.Cfg.PackageFile never equal to nil due to this line
What did you expect to see?
Actually I don't expect this to be fixed as I've started to use "packagefile" verb instead.
This functionality is dead at the moment (after removing -importmap flag) and -I flag is dead too (unless no -importmap flag provided).
Probably "importmap" verb and -I flag should be just removed to simplify the compiler interface and avoid further confusion.

cc @golang/compiler

ImportMap is used here: https://github.com/golang/go/blob/e827d41c0a2ea392c117a790cdfed0022e419424/src/cmd/compile/internal/noder/import.go#L140

Sorry I meant it doesn't work as -importmap flag, so these lines (which searching mapped imports in directories provided by -I) are never executed when -importcfg provided.

That's by design. If you use -importcfg, you need to provide a packagefile entry for each imported package. There's no fallback behavior.

Thanks, I got the idea. The only thing confusing me is that-I flag makes sense only when -importcfg is unset, because the compiler doesn't use base.Flag.Cfg.ImportDirs if base.Flag.Cfg.PackageFile is not nil.
Probably the compiler should return an error if both -I and -importcfg were provided.


Adding Manual Peer when acceptAnyConnection is true removes peer

Describe the bug
When acceptAnyConnection is true and that node is paired adding them to the peering.json removes them until the next restart of HORNET
To Reproduce

Ensure acceptAnyConnection is true
Ensure Peer is connected but not in peering.json
Add Peer to peering.json

Expected behavior
Peer will be in the manual list but not removed
This was observed on the fix-autopeering branch but is likely to occur on the main develop branch (V4.0 RC13). I will update with results of tests soon

Should be fixed with #579


css :first-letter pseudo element

css <tt>:first-letter</tt> pseudo element

This issue was imported from Google Moderator
Moderator votes: +7
Issue added by yukulélé on 2012-02-17
To vote this issue up or down, simply include +1 or -1 in your comment.

Duplicate of #990 so adding half the votes there


added Payment->bank() method for en_US provider

Hello? Anyone gave a look to this?

Going to remove this from 1.9.0 since it is still open

bumping this up

Since it was removed from 1.9 i dont see this happening anytime soon.
It can be part of 2.0 but this will be a new major which will remove all the locales from core. So please keep this in min


style: enable eslint rule one-var

PR seems to do more than just enable the one-var rule. Semicolons are gone? 🤔

Had a glitch there. Ready for review!

I don't think we should remove semicolons. That's pretty atypical.

@paldepind changed semicolons to always. Rebased.

Hold on. There's an error.

OK cool. I much prefer no semicolons but that should not hold up the rest of the rules in this PR.


Ephemeral Container securityContext still appearing as not-allowed in documentation

This is a Bug Report

Problem:
Setting securityContext for ephemeral containers is allowed as of Kubernetes 1.22, but it's still showing up as a "not allowed" field here: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#not-allowed
Proposed Solution:
This page looks to be autogenerated based on the API definition, but I'm not sure how it's detecting not allowed fields. If it's automatic we'll correct the metadata or if it's curated then just reclassify the field in docs.
Page to Update:
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#not-allowed

The fix is likely to happen within https://github.com/kubernetes-sigs/reference-docs/

https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/ is autogenerated.
I don't think https://github.com/kubernetes-sigs/reference-docs/tree/master/gen-resourcesdocs/config received field updates for v1.22

Track the update of the documentation as an issue in this repository.
/triage accepted

Looks like this is still happening, and also EphemeralContainers is showing up under the alpha heading even though its description says (correctly) that it's beta. This dropped off my radar, but I'll take a look at it in the next few days.
/remove-lifecycle stale

/priority critical-urgent

/remove-priority critical-urgent
/priority important-soon
/sig security
@verb you're welcome to make a case for raising it back to critical. What would be the motivation there?

Hi @sftim, I don't wish to make that case. I was just trying to assign a priority according to guidance here and here. The documentation is wrong for a core feature, which seems like a "fix it now" rather than "fix it in the next release" priority.
The priority isn't important to me, though. Happy for it to be whatever you think is best.

This repo uses continuous deployment (we don't wait for a release for fixes). Anyway, yes, it looks important.


newer features break older Rust support and by extension log crate's API

https://github.com/alexcrichton/cfg-if/commit/75e817fa2cdd9d3cb2c558fa91ba3dacdbfa8d73 appears to have broken the support for older Rust version such as 1.16.0 which the https://github.com/rust-lang-nursery/log crate says it will always support.

Due to this issue, this has broken log as noted here https://github.com/rust-lang-nursery/log/issues/358

Thanks for the report, but I do not support Rust 1.16.0 with this crate, so I'm going to close this.


kubernetes-ingress-lbs containers are not tied up to any specific plane (orchestration/compute).

Rancher Versions: Build from master
Currently , kubernetes-ingress-lbs containers are not tied up to any specific plane. In "required" plane isolation mode , they will end up landing in hosts that are part of etcd plane , which is not desirable.
We should have the kubernetes-ingress-lbs to be part of orchestration/compute plane.

Duplicate of https://github.com/rancher/rancher/issues/8013

I would say they have an anti-affinity for nopod=true, but leave it to the user to set other scheduling labels.
The power here is that the user can now control where they land, and setup DNS or external load balancing targets. This more closely mimics the behavior seen in cattle that is leveraged my most customers.

@cloudnautique Just for reference, we did away with nopods=true. The new flow is the containers have hard affinity to their respective planes via etcd=true orchestration=true and compute=true labels. With this, user can achieve any sort of overlap they desire, to "break the rules" in the name of restoring resiliency without paying for standby hosts.

Spoke with @alena1108 about making the ingress controller hae a configuration option to request to not schedule on the planes.

Closing in favor of #7909


Strict redirect uri validator app auth with path

What issue does this PR address?
#3974
Does this PR introduce a breaking change?
No
Please check if the PR fulfills these requirements

[✓ ] The commit follows our guidelines
[ ✓] Unit Tests for the changes have been added (for bug fixes / features)

Other information:
This PR is similar to this one but does not use RegEx. It allows for a path in the Loopback address, but does not validate that path.
I'd like to acknowledge VictorioBerra - the unit tests added in this PR are based on the unit tests he wrote in his PR.

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

Nice, thanks!

This is a great add.
But now with the SameSite cookie changes, everything needs to be HTTPS, even for loopback. Can we also allow https://<IP_ADDRESS>?
I realize it's only the http scheme that the RFC covers - but would it be less safe to also allow https?


🐛 Fixed error caused by accepting invitation with existing email

closes #12060

on invitation, if user uses an email which is already an existing user

it causes the DB to throw an error because the email would no longer
be unique. This was not handled
Added an extra check to query user model

If user exists, raise a Validation Error
else create user

[x] There's a clear use-case for this code change

[x] Commit message has a short title & references relevant issues

[x] The build will pass (run yarn test and yarn lint)

@naz did you get a check to see it again? I had requested review from you again. Thanks

Hey @imox2 :wave: I will check this once again when I free up from other priorities. It's in my queue

Thanks for well prepared fix @imox2! I'll get around the other PR tomorrow, I hope

@naz Thanks for the review and suggestions. This is my first PR ever, Yay!


speed optimizations

Before this it would take more than 3 seconds on my machine to read and write the whole NotoSans-Regular.ufo. Now it takes less than 2 seconds.
Read commits for details.

FYI the same NotoSans-Regular.ufo roundtripping would take 5.8 seconds using defcon+ufoLib :)


There is not export button

i don't find export button in mobile app view. PFA

i don't find export button in mobile app view. PFA

Hello! Could you please check that you changed CLIENT_ID and CLIENT_SECRET in WebViewController.swif? Also please check that your account has an active Pro or Enterprise plan. MetaPerson creator doesn't show the Export button when these values are incorrect or the associated account doesn't have the required plan.


Fix: typo in lua config

Fix for minor typo in lua config

See: https://github.com/neovim/nvim-lspconfig/pull/523
I just merged before docgen was finished. We don't ever edit CONFIG.md, it's auto-generated.

See: https://github.com/neovim/nvim-lspconfig/pull/523
I just merged before docgen was finished. We don't ever edit CONFIG.md, it's auto-generated.


[geom-arc] arcBounds doesn't take XL/CW flags into account

Since these 2 arc flags change the arc's position/extent, we need to update this function to take this into account...

After some further testing, it seems the issue is not with this function, but with "invalid" (or rather inconsistent), manually created arcs, where the order (and/or values) of the start/end angles do not correspond with the given large sweep/clockwise flags. All arcs created via @thi.ng/geom's arcFrom2Points() do not show any such problems...
New approach: Update Arc ctor to enforce correct start/end angles based on given flags. There're 4 possibilities/cases to consider...

Fixed in cc57a57dd79c2ae95b266c559d47f1ca07527e38


Thats because in the table tb_user the column reg_ip just allows varchar(25).

https://github.com/kokspflanze/GameBackend/releases/tag/0.7.2


Shooting Wheels

We need to detect the speed in RPMs of both motors

This is useful: http://www.chiefdelphi.com/forums/showthread.php?t=101022&highlight=rpm

This may also be: http://www.chiefdelphi.com/forums/showthread.php?t=101080&highlight=rpm

Jag Docs http://javadoc.waltonrobotics.org/edu/wpi/first/wpilibj/CANJaguar.html
note the "control mode" variable, which you can set to kSpeed, setPID(), and set() method. You will have to tell it how many encoder codes your encoder will report per revolution as well.

These thread shows teams having a hard time controlling the JAGs RPMs with the encoders connected to the JAGS
http://www.chiefdelphi.com/forums/showthread.php?t=100135&page=3&highlight=jags+can


Can't import a spritesheet in React (w/webpack)

Seemingly no matter what I do I cannot get a spritesheet to import in React.
I've tried doing:
  var littlemarioforwardwalk = PIXI.loader.resources[require("../../../../../public/mario_characters/littlemarioforwardwalk.json")].textures;
  let spritelittlemarioforwarlkwalk = new PIXI.Sprite(littlemarioforwardwalk[require("../../../../../public/mario_characters/littlemarioforwardwalk.png")]);

As my best guess at how to get it to work and that gives the error "cannot read property textures of undefined". I've tested that my paths are correct and that the files exist (they are and they do). What is wrong here?
I've tried several other ways of trying to get this to work (from the examples at kittykatattack and also from here) and nothing seems to work. Is there an update somewhere or a working example I can follow?
The full gist can be seen here: https://gist.github.com/patientplatypus/d7091a02d0965759534ecbc266334756

For me loading in React works fine. Im using React create app so static files are in public folder (public/img/mapping.json)
PIXI.loader.add('mapping', '/img/mapping.json').load(this.loadMapResources.bind(this))

Can you show a full example paramahamsa? You're adding a json file and some loadMapResources, but I don't see where you add the png data or get a picture out of it. Does putting it in PIXI.loader.add also put in the textures? How do you create the Sprite?

Not sure about full example, it needs time =) But you can debug what you get in PIXI.loader.resources on load callback. The array should contain loaded data. It could be anything like json files or images.
If its image you can address it as PIXI.loader.resources[resourceName].texture
if json as PIXI.loader.resources[resourceName].data
If PIXI.loader.resources array is void means it cant download resource (wrong path/permissions, etc)

I'm sorry I still don't understand - where are you importing the actual .png file in the example you posted above?

Also -

If its image you can address it as PIXI.loader.resources[resourceName].texture

First, according to the documentation, it is "textures" not "texture". Second,
See my post comment:
var littlemarioforwardwalk = PIXI.loader.resources[require("../../../../../public/mario_characters/littlemarioforwardwalk.json")].textures;
This gives the error "cannot read textures of undefined."
If I remove the require( I get the same error. I've verified that the file exists at the correct path. So what you are saying is not the correct solution.

ok, I hope this example will help you https://jsfiddle.net/y7bL22qr/1/

paramahamsa - thank you for the example, but the issue seems to be that I cannot import relative paths in pixijs and React. Please see the last edit of my above comment.

So its not a PIXI issue, looks like you need help with webpack or whatever tool you are using. The easiest way in this case to use react-create-app, you can put assets to public/assets folder (public will be in the root project folder) and access them as PIXI.loader.add('assetName', '/asssets/assetName.png')  without issues (at least with webpack in my case).

No, it is an issue with Pixi - if Pixi cannot find files to import with React and webpack then it should say so in the documentation. If it can, it would be nice if there were an example so I didn't have to guess. I don't know if I am doing something wrong, Pixi will not work with webpack, or my webpack is misconfigured.

if Pixi cannot find files to import with React and webpack then it should say so in the documentation

Can you elaborate on this? Pixi.js doesn't import anything (or have any way of 'finding files'), and neither does React.
When you import (or require()) a non-source file, like an image, and use webpack to build a bundle it you are techinically using webpack-file-loader. This loader finds the file, copies it to the output folder, and returns a relative URL to the copied file. In your source it just replaces the imported/required file path with the "correct" URL in the output folder. It is still up to you to ensure they get to the server in the same file/folder layout as your output folder, it is still up to you to load the file using some browser loading method (like XHR or Image).
For example, in your gist, this:
import littlemarioforwardwalkpng from '../../../../../public/mario_characters/littlemarioforwardwalk.png';

Maybe be transformed by webpack-file-loader into something like this:
var littlemarioforwardwalkpng = 'mario_characters/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.png';

If you are using hash names, which I often do so I can have my CDN just cache them forever, it make look similar to the above.
I only just now got to look at your answer, but I also saw this:
PIXI.loader
        .add('./b.json')
        .load(spriteLoaded());

The error you are having here is that you are calling the spriteLoaded function and passing the result of it as the parameter to .load(). This is probably not what you want. You probably want to pass the function iteself: .load(spriteLoaded). Looks like you've corrected this in your gist, by creating a new arrow function, which preserves the calling context, so you can call the spriteLoaded function with the correct this context.
In your original gist, it looks like you were trying to access the PIXI.loader.resources object with a URL that hadn't been loaded yet. The code you have here would probably work just fine, but you can't access a resource in that object until after it has loaded. Hence the need for the callback function to .load(cb), because loading those remote files is an asynchronous operation. If you don't call .add() and .load() then PIXI.loader.resources is just an empty object, since nothing has yet been loaded.
Here are a few examples, documentation pages, articles, and source files you may find useful when working with webpack, PixiJS, and spritesheets:
PixiJS
Examples

https://pixijs.github.io/examples/#/basics/spritesheet.js
https://pixijs.github.io/examples/#/demos/animatedsprite-demo.js

Documentation

http://pixijs.download/release/docs/PIXI.loaders.Loader.html

Webpack
Documentation

https://github.com/webpack-contrib/file-loader#usage

Articles

https://github.com/petehunt/webpack-howto#5-stylesheets-and-images
https://medium.com/@bogdan_plieshka/loading-static-and-dynamic-images-with-webpack-8a933e82cb1e

Hope this helps!


Improve use_auth_token docstring and deprecate use_auth_token download_and_prepare

Clarify in the docstrings what happens when use_auth_token is None and deprecate the use_auth_token param in download_and_prepare.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Fix AddOrUpdate for nullable identifiers

Note: many tests fail on my machine. Thus, I only verified those within DbSetMigrationsExtensions. Maybe my modification of MigrationsCustomer has some unwanted side effect regarding other tests?
Fixes #9

Hi @axelheer, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

cc @anpete


How do I save a wifi password/ssid to OSX keychain?

Can I use this code to save/edit/delete wifi entries to the OSX keychain?

Yes. You can store any value to the OS X keychain using this library.


What tool is needed to calculate the jar suffix name? . DLL can be implemented using your computing tools

This issue will be closed for now, do consider editing it, and putting more effort in your description (e.g. problem you are facing in detail, what you have tried, the expected output). Without enough details, it is unlikely that anyone will be able to tend to your issue


Verify status_code

Hi,
I'm playing around to implement parts of the sppclient in to our Django code.
But I got problems to verify what status code I get from each call with the sppclient
Is it possible to get hold of the status call after a query?
Example code snip:
session = client.SppSession("https://<IP_ADDRESS>, "sppadmin", "passw0rd")
session.login()
test = client.SppAPI(session, 'api/endeavour/log/job').get()
print(test.status_code)

Hello,
The client module returns only the json() component of the response object (it is using the 'requests' library). If anything other than the expected response code is returned to the client should raise the requests exception HTTPError, the exception should also have the status code.
If you only need the status code when there is a problem my suggestion would be to use a try/except for HTTPError when making calls to the client. The exception will have the response object on it and the status code will be on there. (Ex: e.response.status_code)
The other option could be adding status code to the return of the get, put, post, etc. methods in the client module but it should still return response.json() at it's base so that the structure of expected data doesn't change.

That is a great idea but that mean I only can get hold of status code 401 and not 500 that mean wrong URL.

This exception should get thrown for any error response code (4xx or 5xx) ... see below for example when trying to get wrong URL (404)
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import spplib.sdk.client as client
session = client.SppSession('https://<IP_ADDRESS>', 'x', 'x')
try:
...     resp = client.SppAPI(session, 'some/wrong/url').get()
... except Exception as e:
...     error = e
...
error
HTTPError('404 Client Error:  for url: https://<IP_ADDRESS>/some/wrong/url',)
error.response.status_code
404

This is what I get when I try with the wrong IP to the SPP Server.
(SPP_Restapi) chrisp@christian-x1:~/github/cristie/SPP_Restapi$ python spp_test.py
Traceback (most recent call last):
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/spplib/sdk/client.py", line 99, in raise_response_error
    pretty_print(r.json())
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "spp_test.py", line 8, in <module>
    session = client.SppSession("https://<IP_ADDRESS>", "x", "x")
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/spplib/sdk/client.py", line 148, in __init__
    self.login()
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/spplib/sdk/client.py", line 157, in login
    r = self.conn.post("%s/endeavour/session" % self.sess_url, auth=HTTPBasicAuth(self.username, self.password))
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/requests/sessions.py", line 581, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/requests/sessions.py", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/requests/hooks.py", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/spplib/sdk/client.py", line 101, in raise_response_error
    pretty_print(r)
  File "/c/Users/Christian.Petersson/github/cristie/SPP_Restapi/lib/python3.6/site-packages/spplib/sdk/client.py", line 107, in pretty_print
    return logging.info(json.dumps(data, sort_keys=True,indent=4, separators=(',', ': ')))
  File "/usr/lib/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/lib/python3.6/json/encoder.py", line 201, in encode
    chunks = list(chunks)
  File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'Response' is not JSON serializable

Code Snip:
import requests,json
import spplib.sdk.client as client
requests.packages.urllib3.disable_warnings()
session = client.SppSession("https://<IP_ADDRESS>", "x", "x")
try:
    test = client.SppAPI(session, 'api/endeavour/log/job').get()

except Exception as e:
    #status_code = e.response.status_code
    status_code = e
    print(status_code)

I can't duplicate issue above with latest client.py but can see why this might be happening ... please try with latest version of code...
In any case we can't expect a status code back from an invalid URL when creating the session but it should fail with some exception passed up from requests module (it may include a status code depending on what services (if any) are running on that endpoint)
Here's example of calling a couple invalid hosts to create session on my end:
`>>> try:
...     session = client.SppSession('https://<IP_ADDRESS>', 'x', 'x')
... except Exception as e:
...     error = e
...

error
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/endeavour/session (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5f83c17588>: Failed to establish a new connection: [Errno 111] Connection refused',))",),)
try:
...     session = client.SppSession('https://<IP_ADDRESS>1', 'x', 'x')
... except Exception as e:
...     error = e
...
error
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='<IP_ADDRESS>1', port=443): Max retries exceeded with url: /api/endeavour/session (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5f83c17d30>: Failed to establish a new connection: [Errno -2] Name or service not known',))",),)
dir(error)
['cause', 'class', 'context', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'setstate', 'sizeof', 'str', 'subclasshook', 'suppress_context', 'traceback', 'weakref', 'args', 'characters_written', 'errno', 'filename', 'filename2', 'request', 'response', 'strerror', 'with_traceback']
dir(error.response)
['bool', 'class', 'delattr', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook']
`


CounterExample-Navigation-TimeTravel is failing to build...

Hi,
CounterExample-Navigation-TimeTravel is failing to build at the moment with xcode 8.1, would be great to fix it...

👍  I am unable to build as well, getting a "CLEAN FAILED" error message with exit code 65 when running "carthage update" command
Screenshot: https://cl.ly/2T452t372E3S

@frranck @crobicha Thanks for making me aware. Will fix this soon! With this fairly large project it's often hard to keep up with frequent Swift updates on all example projects.
Will fix this; in the meantime you can also check out some other examples:
https://github.com/ReSwift/GitHubBrowserExample
https://github.com/ReSwift/CounterExample

@frranck @crobicha I know this is late; but fixed by #10.
This entire migration was pretty painful through having so many different projects!


chore(systemd): mv creds may fail

mv may fail if creds aren't there - take that into account.
Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

@puiterwijk why is clippy complaining here?

@runcom ah, that's probably a new lint (which does make sense). I'll send a PR to fix this in a minute.

See #191

should pass now then :)


Not able to create Microsoft.Health.Fhir.Liquid.Converter.Tool.exe executable from the code

Please guide as to how can we built the code into this exe. All the folders inside src has to be built or only this specific folder "Microsoft.Health.Fhir.Liquid.Converter.Tool".
Awaiting response !!!!!

Hi @manaschandanroy, if you want to build the solution, you can just set "Microsoft.Health.Fhir.Liquid.Converter.Tool" as the start project and build it directly by Visual Studio 2019. By the way, you can directly download the exe in GitHub releases.


Make sure the acker is loaded in configure_ack/2

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:


Contracts are being compiled with different result when building locally

Basically all smart contracts that are presented in this repo are producing builds that differs from those saved in the same repo. This makes contributing not very comfortable.

Steps to reproduce:

Clone repo
run yarn install
run yarn gen or yarn test

We could probably just add autogenerated things to .gitignore and stop committing those to the repo. I would guess nobody checks diffs between old and new auto-generated files because those are not really readable

Fixed in PR #199