Poor Test accuracy on custom dataset

i trained a model on a custom numberplates dataset for 80000 epochs. the train accuracy was almost 95% and training loss was around 0.4-0.6 but at test time the predict output is missing some characters but predicting rest of numberplate correctly

@basit123456 Maybe you should check your label file or the dict json file

There are 4 kind of number plates, for 3 plates the predictions are correct for 1 model predicts the numbers correct but miss some of the characters i checked the labels the true labels are correct. here are some examples of predictions
Predict 197fd4b4-9214-4b90-b6ea-410265979612.jpg image with gt label: wdh11312 **** predict label: wh11312
Predict f5478a6f-262c-4155-b505-185253e5c8e9.jpg image with gt label: ddt52767 **** predict label: d52967
Predict b3d6e31a-f3e5-4594-af09-5851b9007570.jpg image with gt label: xax41690 **** predict label: x41690
Predict 917342a3-be9a-4c0e-a2fe-159eda7755f9.jpg image with gt label: jzl53922 **** predict label: j53913
Predict 4d72847e-7d19-4faa-80d2-0c5357298ec7.jpg image with gt label: qis06820 **** predict label: qs06820

@basit123456 Since I don't know about your dataset I can not figure out what's happening here. But I have used this model on captcha recognition mission which is similar to your mission in my opinion and there is no such problem


Calculate Recommendations

Implemented the majority of the body of the body that calculates the recommendation system. This method pulls all users, events, and interactions from datastore and trains a Spark ALS model to calculate predicted ratings. Other multipliers are then applied, such as the closeness between an event and a user's interests (based on the survey and interaction history), or geographic proximity (not yet implemented).
This also called for a lot of refactoring in other classes because I realized a floating-point rating system might be better, and it might be more efficient to split the recordInteraction() method into 2.

It's strange that the tests are failing here, because they run fine locally (both on master and on this branch)


Search concept

Basically just a overhaul of the already good looking search function.

the concept wasn't made by me!
If you'd like to see this feature implemented, add a 👍 reaction to this post.

Is this a suggestion for PowerToys Run?
If that is the case, the tracker is https://github.com/microsoft/PowerToys/issues/8913


Add copy button to duplicate display with same config

Demo: https://youtu.be/FxUOrkBzVzs
1

2

3

ping

This seems like a very useful addition. Havent tested it, but high level review lgtm.
+1

@wkentaro thanks for the pr, this is a great feature!
I didn't, however, get a new display name (copy of ...) and so I opened a pull request for that: https://github.com/wkentaro/rviz/pull/1
Also I'd like to ask you to consider changing the use of the term "copy" with "duplicate". Since you're not exactly copying it in the sense of copy and then paste zero to many times. You're really duplicating an item exactly one time.
So if you choose to do "duplicate" instead of "copy", then I'd recommend changing the new display name to be "duplicate of X", change the button to "duplicate" rather than "copy" and consider changing the hotkey of ctrl-c to ctrl-d (or something like that).
Thanks again.

I didn't, however, get a new display name (copy of ...) and so I opened a pull request for that: wkentaro#1

I rethought about the name of copied display, and changed it to be same as the original one.
Which one do you prefer?

Also I'd like to ask you to consider changing the use of the term "copy" with "duplicate". Since you're not exactly copying it in the sense of copy and then paste zero to many times. You're really duplicating an item exactly one time.
So if you choose to do "duplicate" instead of "copy", then I'd recommend changing the new display name to be "duplicate of X", change the button to "duplicate" rather than "copy" and consider changing the hotkey of ctrl-c to ctrl-d (or something like that).

It's reasonable, I use "duplicate" term.

@wjwwood I have updated the commit.

@wkentaro looks good thanks. I'm testing it out now.
As for the new name, I think having something different is a good idea, but I think a suffix or prefix that is too long might not be best, e.g. "duplicate of X" or "X duplicate" or even "X dupe". I thought about suffixing numbers, e.g. "X (1)", then "X (2)", but the logic to get this right is tricky (and to avoid overmatching something the user created). Something simple could be to use the mathematical prime symbol to indicate a duplicate: https://en.wikipedia.org/wiki/Prime_(symbol) That would be easy to implement as you just add a single quote to the end of the name.
Anyone else have thoughts?

I woudn't mind having the duplicates with the exact same name. That is what rviz does already when adding new displays. It defaults to the same name no matter if it exists already or not.
But I am not strongly attached to that and all your suggestions seem fine to me, with a preference for a short suffix. I actually think the X (1) thing would be nicest, but I see that it is not trivial to implement like the others. For all options one would need a recursive check for the suffixed-name's existence though.

Yeah, there's more issues with the changing of names (as @wkentaro may have discovered and finally decided not to do that). For example, nothing stops you from duplicating foo as foo', then duplicating it again. Now you have foo, foo', and another foo'. Also you can duplicate multiple items so you could duplicate foo so you also have foo', select both and duplicate again. Now you have foo, foo', foo', and foo''.
I'm thinking of going back to just duplicating it and not changing the name.
I also have a change locally that will ensure the duplicated item(s) are selected after duplication.

@wkentaro I opened https://github.com/wkentaro/rviz/pull/2 against this pr.
I might do the merge myself later today.

@wkentaro I merged this manually with a few changes about what is selected after duplicating and deleting displays. Thanks again!


tests: Use read_test_image_file

Fixes a ResourceWarning from the unclosed file at test_upload.py:1954.

Looks great, marked to auto merge.


Edit header title by adding view html

I have a header title with a dropdown html code which is very long.
I would like to put the html code inside a view and then load it as "title" of the column.
Something like for editColumns():

            ->editColumn('customColumn', function(User $user) {
                return view('my-view', compact('user'));
            })

Thanks

You need to use raw columns too: ->rawColumns(['customColumn', ...]). See https://yajrabox.com/docs/laravel-datatables/master/raw-columns for ref.

I understand how to add html inline using rawColumns.
But I would like to use separated "view" file for column


Introduction changes

I found this document super useful when first coming to this repo, but one of the paragraphs wasn't quite finished so I had a go at completing it - it probably needs more work though. This PR also includes a fix for the accidental inclusion of initialState.bars inside an an extra array in the example code.

lgtm :)


chore: rephrase resources/element-templates README

rephrase
clarify local vs global element templates
change documentation link

Follow-up to https://github.com/camunda/camunda-modeler/pull/3559.

I would like to rephrase the documentation as a follow-up.


Simple pull request

Hey,
I forked the repo and built out a simple gh-pages branch so users can use
net inst statastan, from("https://wbuchanan.github.io/statastan")

That could potentially be useful for others who may want to work with the most current version of Stata Stan.  There isn't a way to submit the pull request for the new branch, but I just took the README and moved the example files into the main directory to make it easier for the .pkg file to locate and move the files.

That is great - I was just starting to think about that. Now let me see if we can merge in your changes or recreate them... I'm not much of a githead so if you've got any ideas do let me know!

You should be able to do something like:
git branch gh-pages
git push -u origin gh-pages

To create and add the gh-pages branch.  Then I should be able to submit a pull request (although it is entirely possible that it might require a bit of manual merging).

@wbuchanan  You should be able to submit a pull request from your end.  You need to clone our repo, make the branch, then create a pull request from your branch with a statastan branch as a target.
Here's an example of an external pull request for Stan:
https://github.com/stan-dev/stan/pull/1762

@bob-carpenter my concern was more that there wasn't a gh-pages branch that I could submit the pull request against, but I just submitted it using the master branch as the base.

OK, that makes sense.  Robert, you probably want to
check out and then mimic what we're doing in the rest
of Stan by trying to follow the Git flow process.  It's
described in the Stan manual and also linked from the
stan-dev/stan wiki.
On Feb 19, 2016, at 5:18 PM, William Buchanan<EMAIL_ADDRESS>wrote:

@bob-carpenter my concern was more that there wasn't a gh-pages branch that I could submit the pull request against, but I just submitted it using the master branch as the base.
—
Reply to this email directly or view it on GitHub.

Here's a good description
On Fri, Feb 19, 2016 at 5:21 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

OK, that makes sense. Robert, you probably want to
check out and then mimic what we're doing in the rest
of Stan by trying to follow the Git flow process. It's
described in the Stan manual and also linked from the
stan-dev/stan wiki.
On Feb 19, 2016, at 5:18 PM, William Buchanan<EMAIL_ADDRESS>wrote:

@bob-carpenter my concern was more that there wasn't a gh-pages branch
that I could submit the pull request against, but I just submitted it using
the master branch as the base.
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/statastan/issues/9#issuecomment-186432854.

oops, here it is:
http://nvie.com/posts/a-successful-git-branching-model/
I think it's the same as the one linked to from the stan wiki
On Fri, Feb 19, 2016 at 5:27 PM, Jonah Sol Gabry<EMAIL_ADDRESS>wrote:

Here's a good description
On Fri, Feb 19, 2016 at 5:21 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

OK, that makes sense. Robert, you probably want to
check out and then mimic what we're doing in the rest
of Stan by trying to follow the Git flow process. It's
described in the Stan manual and also linked from the
stan-dev/stan wiki.
On Feb 19, 2016, at 5:18 PM, William Buchanan<EMAIL_ADDRESS>wrote:

@bob-carpenter my concern was more that there wasn't a gh-pages branch
that I could submit the pull request against, but I just submitted it using
the master branch as the base.
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/statastan/issues/9#issuecomment-186432854.

Thanks, I shall digest this. Need to git skill up.

I like this condensed "cheat sheet"
https://education.github.com/git-cheat-sheet-education.pdf
as it has everything you'll need regularly without a lot of other git
commands that are confusing and typically not needed.


⚠ Bofrost.com has degraded performance

In f8fe9f7, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 1052 ms

Resolved: Bofrost.com performance has improved in ad8b503 after 9 minutes.


Lazily initialize CUDA devices (take 2)

Previously, cutorch would initialize every CUDA device and enable P2P
access between all pairs. This slows down start-up, especially with 8
devices. Now, THCudaInit does not initialize any devices and P2P access
is enabled lazily. Setting the random number generator seed also does
not initialize the device until random numbers are actually used.
I've updated the Storage copy code to delegate the Tensor copy code. This
fixes the issues with p2p not being enabled and adds proper inter-GPU
synchronization (see #612)

thanks!


select and ref.listen did not listen to changes as expected

I have a User with two attributes of name and id. When the id is modified, it cannot be monitored
I expect to be able to listen for changes normally
Below is my code:
class User {
  String? name;
  String? id;

  ...

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is User &&
          runtimeType == other.runtimeType &&
          name == other.name &&
          id == other.id;

  @override
  int get hashCode => name.hashCode ^ id.hashCode;
}

    ref.listenManual<String?>(userProvider.select((value) => value.id),
        (previous, next) {
      debugPrint('user listen');
      if (previous != next) {
        debugPrint('user change');
      }
    });

i use this function to change id
             if (ref.watch(userProvider).id == '123') {
               ref.watch(userProvider).id = '124';
            } else {
              ref.watch(userProvider).id = '123';
             }

To avoid the provider not recognizing the user's changes, I rewrote ==, but still can not listen to the changes

class UserNotifier extends StateNotifier<User> {
  UserNotifier() : super(User());

  Future<void> refresh() async {
    state = await Api.fetchUser() ?? User();
  }

  void setUser(User user) {
    state = user;
  }

  void changeId(String id){
    state.id = id;
  }
}

Should I use setUser instead of changeId?
Let the state point to the new reference without modifying the property directly?

You cannot simply mutate the object. You need to invoke state= somehow.
Hence why the state is supposed to be immutable. So doing ref.watch(userProvider).id = '124'; is not enough to notify listeners.
You need to clone your User class with a different ID


Add a Batfish demo site for testing components

This PR adds a demo/ directory with a Batfish demo site.

We'll use this to test components in context. This will require add the component manually to the demo site. This isn't an ideal workflow right now, but we can revisit.
The demo app will get built by Travis to assert that the latest dr-ui build doesn't have errors on npm run build.

Fixes #168

@colleenmcginnis It may be a good time to merge this in as well!

It's all backend and will not affect the package.
It would help us catch errors like https://github.com/mapbox/dr-ui/pull/186 (re:  https://travis-ci.com/mapbox/dr-ui/builds/127821556#L342).
To test components, we won't have to install dr-ui locally in another repo/site.

I have an idea 💡 ! Going to make the Catalog site run Batfish in #137!


Fix game starting SteamVR in replay and/or when switching FPFC

Fix game automatically starting SteamVR when FPFC is switched on or off.
Done by checking if SteamVR is running before initializing OpenXR, if SteamVR is not running, dont initialize OpenXR. This way we even preserve the functionality for people who want to start the game in FPFC and then switch to SteamVR, since in that case user can just start SteamVR anytime along the way manually and it will be bound on next check

Converting to a draft since not done yet. Aparently some people can fuck around and change the steam dir, so now I gotta write a finder

So I guess that fixes it, also gives the option to dynamically bind to SteamVR as long as fpfc flag is active, however thats kinda whacky so ¯_(ツ)_/¯

This should no longer be necessary since SiraUtil will not try to initialize the XR loader on startup unless Ignore is set to true.


Include git-version and git-date

So as to give accurate --git-version information and unstable-${date} nix version information, please include in the github.json the output of git describe --tags --always and the date of the last commit in YYYY-MM-DD format. This way, my overrides can have the exact same content as if/when they are merged into nixpkgs.
Note that git describe --tags --always can be slightly tricky to emulate without downloading an entire checkout, but I have some code in Scheme to do about the same if you know the tag you're based off of and then use some gitlab URL to get the count of commits... ugly, but works on gitlab (and something similar works on github). Still cheaper than cloning an unshallow checkout.

nix-thunk aims to make it inconsequential whether a thunk is packed or unpacked from the perspective of nix derivations. If the json file included meta information like this, then we'd need a way to get that same information from an unpacked (checked out) thunk such that the person asking wouldn't know the difference.

nix-thunk aims to make it inconsequential whether a thunk is packed or unpacked from the perspective of nix derivations. If the json file included meta information like this, then we'd need a way to get that same information from an unpacked (checked out) thunk such that the person asking wouldn't know the difference.

It is 100% consequential what the name and version of the thunk are, and if nix-thunk cannot extract that information from the github.json, from git, or some other way, nix-thunk has failed me.
The programs I am using do include user-readable version information with branch / tag-relative number of commits as critical debugging / deployment tools. If I can't have that, then my users' debug logs are much less useful.
Right now, my packages use the following information:

The output of git describe --tags --always (the revision hash in github.json is a barely passable substitute) to include in my debugging output.
The output of git log -1 --pretty=%ad --date=short to use as the date of my nix package foo-unstable-$date, so my packages can have the proper name.

My nix recipes know how to use that information to include suitable reflection information in logs so reported bugs are reproducible (reproducibility, have you heard of this idea?). Admittedly, extracting the fallback behavior of --always via the rev field of github.json provides some semblance of reproducibility, but it won't be binary-identical to packages built from nixpkgs, thus opening the door to various cans of worms.
If this information were available, my overrides could be 100% identical to those pushed to cachix, in addition to having good names intelligible to users and informing them about how old the code and on what branch, etc.

It is 100% consequential what the name and version of the thunk are, and if nix-thunk cannot extract that information from the github.json, from git, or some other way, nix-thunk has failed me.
The programs I am using do include user-readable version information with branch / tag-relative number of commits as critical debugging / deployment tools. If I can't have that, then my users' debug logs are much less useful.
Right now, my packages use the following information:

The output of git describe --tags --always (the revision hash in github.json is a barely passable substitute) to include in my debugging output.
The output of git log -1 --pretty=%ad --date=short to use as the date of my nix package foo-unstable-$date, so my packages can have the proper name.

My nix recipes know how to use that information to include suitable reflection information in logs so reported bugs are reproducible (reproducibility, have you heard of this idea?). Admittedly, extracting the fallback behavior of --always via the rev field of github.json provides some semblance of reproducibility, but it won't be binary-identical to packages built from nixpkgs, thus opening the door to various cans of worms.
If this information were available, my overrides could be 100% identical to those pushed to cachix, in addition to having good names intelligible to users and informing them about how old the code and on what branch, etc.

Good points! I'm not suggesting your idea is bad. In fact I have wanted this too! My only point is that nix-thunk would need to provide this at the Nix level in such a way that you can't detect the difference between packed or unpacked. In the case of unpacked, it's also reasonable to assume that the source tree might be dirty in which has the git hash isn't fully reproducible. We'd need the hash of the source tree...but nix already gives us that.

Good points! I'm not suggesting your idea is bad. In fact I have wanted this too! My only point is that nix-thunk would need to provide this at the Nix level in such a way that you can't detect the difference between packed or unpacked. In the case of unpacked, it's also reasonable to assume that the source tree might be dirty in which has the git hash isn't fully reproducible. We'd need the hash of the source tree...but nix already gives us that.


Best way of managing multiple depth caches?

Hi.
I intend on using this package for holding depth cache for about 700 symbols, but I'm getting this everytime:
binance.exceptions.BinanceAPIException: APIError(code=-1003): Too much request weight used; current limit is 1200 request weight per 1 MINUTE. Please use the websocket for live updates to avoid polling the API.

I know that, on implementation, the DCM gets an initial order book and then it's supposed to update using websocket partial updates. I have no idea why I'm getting this exception, since I shouldn't be exceeding my quotas.
Is there a clever way of managing multiple depth caches?

Hello!
I have created another library: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
I have successfully created and tested all active 1256 DepthCaches from binance.com spot today.


Add the ability to clear down violations beyond a certain date range

As a systems developer
I want violation history to be cleared down over time
To remove noise and to reduce performance impact on reporting

Completed.


Inconsistent Struct Body Opening Brace Placement After Where Clause

When the body of a struct is empty or it only contains comments, the opening brace of the struct body is placed on the same line as the where clause. If the struct body is not empty, the opening brace is placed on a newline.
No configuration values are needed, and I was using rustfmt 1.5.1-nightly (841b4542 2022-08-17) when I came across this.
Input
struct EmptyBody<T>
    where T: Eq {
}

struct LineComment<T>
    where T: Eq {
    // body
}

struct LineComment<T>
    where T: Eq {
    /* block comment */
}

struct HasBody<T>
    where T: Eq {
    x: T
}

Output
struct EmptyBody<T>
where
    T: Eq, {}

struct LineComment<T>
where
    T: Eq, {
    // body
}

struct LineComment<T>
where
    T: Eq, {/* block comment */}

struct HasBody<T>
where
    T: Eq,
{
    x: T,
}

@rustbot claim

I may need some clues on where to start but that's ok tho' c:

You'll likely want to start at format_struct, and follow the code down through format_struct_struct
https://github.com/rust-lang/rustfmt/blob/949da529d7a0b348376f67e77676a8722ad21899/src/items.rs#L982-L997
https://github.com/rust-lang/rustfmt/blob/949da529d7a0b348376f67e77676a8722ad21899/src/items.rs#L1265-L1301
If I had to guess what the issue is it's that we set the brace_pos argument of format_generics on line 1292 to BracePos::ForceSameLine when the struct fields are empty.

@ytmimi Hey! hope you're doing great!
While testing I noticed that there are some idempotence tests that were written with the wrong format. Should I also correct those? (I'm still working on some edge cases but it'll be good to know c:)
https://github.com/rust-lang/rustfmt/blob/38659ec6ad5f341cf8eb3139725bf695872c6de7/tests/target/configs/type_punctuation_density/compressed.rs#L8-L13


[Bug] Footer in firefox is not in the right place

Describe the bug
The footer in all pages is not in the right place. See screenshot:

To Reproduce
Use firefox to open agenta

Hello !
I want to solve this issue but i was not able to recreate it.
Is the problem in the home page https://agenta.ai/ ?
Because the footer seems to be right in place
I would really appreciate it if you could help me locate the issue and recreate it !!
Thank you

Can I be assigned to this @mmabrouk . I also need the link to the pages


Suggestion for File-List Styling

for My Eye-muscles

@marcchataigner, do you have some idea how to make file lists easier to read?
Indeed we could flip columns around similar as a linux terminal does:
$ ll
total 640
drwxr-xr-x  13 daniel daniel   4096 Dec  7 15:49 ./
drwxr-xr-x  12 daniel daniel   4096 Dec  7 12:52 ../
drwxr-xr-x   7 daniel daniel   4096 Dec  7 12:22 app/
-rw-r--r--   1 daniel daniel    595 Nov 10 10:36 appveyor.yml
drwxr-xr-x   2 daniel daniel   4096 Nov 16 13:55 assets/
-rw-r--r--   1 daniel daniel    259 Dec  7 11:27 .babelrc
drwxr-xr-x   3 daniel daniel   4096 Dec  5 08:37 build/
-rw-r--r--   1 daniel daniel   1376 Oct  3 05:17 CONTRIBUTING.md
drwxr-xr-x   3 daniel daniel   4096 Nov 10 10:36 dev/
drwxrwxr-x   5 daniel daniel   4096 Dec  7 15:50 dist/
drwxr-xr-x   8 daniel daniel   4096 Dec  7 13:10 .git/
-rw-r--r--   1 daniel daniel    119 Nov 17 23:37 .gitignore
-rw-r--r--   1 daniel daniel    571 Dec  7 11:27 index.html
-rw-r--r--   1 daniel daniel   3434 Dec  7 11:27 index.js
drwxr-xr-x   2 daniel daniel   4096 Nov 10 10:36 lib/
-rw-r--r--   1 daniel daniel   1068 Oct  3 05:17 LICENSE
drwxr-xr-x 980 daniel daniel  36864 Dec  7 15:48 node_modules/
-rw-r--r--   1 daniel daniel   4339 Dec  7 11:27 package.json
-rw-r--r--   1 daniel daniel 510490 Dec  7 13:11 package-lock.json
-rw-r--r--   1 daniel daniel   1039 Dec  7 12:22 preload.js
-rw-r--r--   1 daniel daniel   1972 Dec  7 11:27 README.md
drwxr-xr-x   3 daniel daniel   4096 Dec  7 13:18 static/
drwxr-xr-x   4 daniel daniel   4096 Nov 10 10:36 tests/
-rw-r--r--   1 daniel daniel    466 Nov 10 10:36 .travis.yml
drwxr-xr-x   3 daniel daniel   4096 Dec  7 11:27 unit-tests/
-rw-r--r--   1 daniel daniel    827 Dec  7 11:27 webpack.config.js

In this list, what would be the key element you want the user to focus on? (based on the main action you want him/her to do)

want the user to focus on?

It is from use cases.
Maybe required two or more style. (maybe in over 4.x)
However, in this thread's main-theme told for the version 3.1.
It is mean is want the "default".

If the aim is to only display information, without proposing any action to the user, I agree with the 2 lines.
If the aim is to enable the user to filter, or select lines (items) before downloading, then maybe a single line with clear columns might work better. If the user wants to filter by file_name, date, size for instance.
what do you think ?

Unfortunately, I think in the version 3.1, maybe cannot implementation filter-ui. 😭
I have other high priority issues by this project. 😓

I think it's not so clear yet. But I don't think we need to hurry.

I think so.
however, column-switching (or double row) is will can between within 30min. very very light task.
Our can decision like a feather touch. :)

@AtuyL , yes just make two lines if it's easy. Details and more improvements can be discussed with the next release.

@dkastl san
Okey. Thank you :)


PLEASE read the below carefully.

First let us say that we'd also love it if Highlight.js could highlight whichever language you're about to request support for!  And there is a chance you can help make that happen! But first...
...PLEASE READ THE FOLLOWING...
Highlight.js does not have a fundamental plan for implementing new languages
- i.e., the core team doesn't usually develop new languages. The core team
instead focuses on parser development, bugs, and supporting the existing
languages. They also currently does not have time to review, merge and
maintain any additional languages (fixing bugs, dealing with issues, etc).

Instead, the project works by encouraging 3rd party language grammars from
contributors willing to help develop and maintain them. We're also happy to
host those 3rd party language grammars at the ``highlightjs`` GitHub
organization - no matter how obscure or weird. Or you're wlecome to host it
yourself - we're still happy to link to it.

This means that *there's no point in requesting a new language without also
providing a 3rd party implementation* (we'll simply close "Please support
language Xyz" issues with a link to this explanation). If you'd like to see
a particular language available but cannot implement it, the best way to
make it happen is to find another developer interested in doing so.

For more info on actually developing a language see our :doc:`language-guide`,
and for information on how to properly package your 3rd party language module
see :doc:`language-contribution`.

If you are interested in contributing a 3rd party language grammar you can start with:

https://highlightjs.readthedocs.io/en/latest/language-contribution.html

You actually don't need to create this issue at all unless you have a specific question about the 3rd party language grammar creation process - which we'd be glad to answer.

x="-65.8699👏😁

First let us say that we'd also love it if Highlight.js could highlight whichever language you're about to request support for!  And there is a chance you can help make that happen! But first...
...PLEASE READ THE FOLLOWING...
Highlight.js does not have a fundamental plan for implementing new languages
- i.e., the core team doesn't usually develop new languages. The core team
instead focuses on parser development, bugs, and supporting the existing
languages. They also currently does not have time to review, merge and
maintain any additional languages (fixing bugs, dealing with issues, etc).

Instead, the project works by encouraging 3rd party language grammars from
contributors willing to help develop and maintain them. We're also happy to
host those 3rd party language grammars at the ``highlightjs`` GitHub
organization - no matter how obscure or weird. Or you're wlecome to host it
yourself - we're still happy to link to it.

This means that *there's no point in requesting a new language without also
providing a 3rd party implementation* (we'll simply close "Please support
language Xyz" issues with a link to this explanation). If you'd like to see
a particular language available but cannot implement it, the best way to
make it happen is to find another developer interested in doing so.

For more info on actually developing a language see our :doc:`language-guide`,
and for information on how to properly package your 3rd party language module
see :doc:`language-contribution`.

If you are interested in contributing a 3rd party language grammar you can start with:

https://highlightjs.readthedocs.io/en/latest/language-contribution.html

You actually don't need to create this issue at all unless you have a specific question about the 3rd party language grammar creation process - which we'd be glad to answer.


removing guava as a mandatory dependency

@rmannibucau I'm all for removing dependencies, but this PR is failing.  Do you want to look at the test?

Oh right, seems some of my commits - at least 2 - haven't been pushed not sure why. Will fix the tests and update the branch.

closing because included in https://github.com/swagger-api/swagger-core/pull/1642


make the version number a uint32

This will allow us to set it to the IETF draft version numbers as listed in https://github.com/quicwg/base-drafts/wiki/QUIC-Versions. Those numbers would overflow a int32.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1185   +/-   ##
=======================================
  Coverage   91.09%   91.09%
=======================================
  Files         114      114
  Lines        7711     7711
=======================================
  Hits         7024     7024
  Misses        460      460
  Partials      227      227

Impacted Files
Coverage Δ

internal/protocol/version.go
98.28% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[Event Request] table 252 "General Posting Setup" PurchPrepmtAccount

Can you please provide same functionality for PurchPrepmtAccount as for sales in T252 General Posting Setup
// -NewCode
// procedure GetPurchPrepmtAccount(): Code[20]
// var
//     GLAccount: Record "G/L Account";
// begin
procedure GetPurchPrepmtAccount() AccountNo: Code[20]
var
    GLAccount: Record "G/L Account";
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeGetPurchPrepmtAccount(AccountNo, IsHandled);
    if IsHandled then
        exit(AccountNo);
    // +NewCode
    if "Purch. Prepayments Account" <> '' then begin
        GLAccount.Get("Purch. Prepayments Account");
        GLAccount.CheckGenProdPostingGroup();
    end else
        PostingSetupMgt.LogGenPostingSetupFieldError(Rec, FieldNo("Purch. Prepayments Account"));

    exit("Purch. Prepayments Account");
end;

// -NewCode
[IntegrationEvent(true, false)]
local procedure OnBeforeGetPurchPrepmtAccount(var AccountNo: Code[20]; var IsHandled: Boolean)
begin
end;
// +NewCode

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 43974.


CSS fix for issue for night mode contrast

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[ ] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[ ] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[ ] Closes currently open issue (replace XXXX with an issue no): Closes #XXXX

Description

@benmcmahon100 since I believe it was you who originally created night mode, would you be interested in QA'ing this?


Update Cocoapods version

Hi,
Thanks for this tutorial (and a few other repo's and blogs Holly wrote), it helped me enormously embedding a Cordova webview to an existing native app!
Sorry to post this question on this repo but I don't know of a better place to ask.
On Cocoapods the latest podspec is for version 3.9.1, but I'd love to use cordova-ios-4.x, so I wondered: who is pushing those podspecs out to Cocoapods and is there a plan to push 4.x as well?
Otherwise I'll host it as a private pod, no harm done, but I rather not.
Cheers,
Eddy

Hi Eddy!
Yes, this is a valid point. When I originally worked on this cordova-ios-4.x was not available. But now that it is and with the features it offers, we really need to get this updated.
I will get on it and post updates on status here. Glad to hear you're using it and please continue to provide any new feedback!
Also, just FYI, I added info to the PhoneGap Docs on how to use this with Swift  here in case you're interested in checking that out.
Cheers!
Holly

Yes I saw your Swift video as well - your timing is just perfect for me :)
Thanks in advance for your efforts on updating the podspec!

Hi Eddy, Awesome! I hope to see you at PhoneGap Day EU and hear about all the latest cool stuff you're working on :)
I wanted to post a status update on this.  I've created and tested a new CocoaPod spec for Cordova iOS 4.0.1 and also updated all of the plugin podspecs while I was at it. They all now depend on this latest Cordova version and the latest plugin branch for each.
Since we were not the original authors of the Cordova.podspec, however, I can't publish it yet. I think I found the person (Ernesto Rivera) and emailed him to see if he could add me on as a contributor. Until then I can't push any of the updates but hopefully I will hear back soon. I will update this as soon as I do.
Cheers!
Holly

Hey Holly, thank you so much for doing this (I guess) tedious update!
I hope you'll hear back from him soon.
And I'm sure looking forward chatting with you at PGDay EU, I'll bore you to death with the app I'm using this for ;)

Hi Eddy!
Good news, I was able to get access to the repo for the Cordova spec and pushed a new update for 4.0.1 today. Now that I am listed as an owner I can push updates in the future as well which is nice. I also pushed all of the new plugin specs that point to this latest version for the Cordova dependency and set them to the latest tag of the plugin available. Lastly, I updated and pushed a new version of this project to the CocoaPods repo which includes all of these new plugins and dependencies in the sample template project so it will use the latest. I tested it out with Obj-C and Swift directly from the repo tonight and it's all working for me well. Please file an issue if you find any problems.
Also, you probably already know this but if you're using these pods in a project you already had defined them in you'll need to run a $ pod update to get all the latest. Here's what you should see showing the latest versions of everything.
hschinsk-osx:c5 hschinsk$ pod update
Downloading dependencies
Using Cordova (4.0.1)
Using CordovaPlugin-console (0.2.10)
Using cordova-plugin-camera (2.1.0)
Using cordova-plugin-contacts (2.0.1)
Using cordova-plugin-device (1.1.1)
Using cordova-plugin-device-motion (1.2.0)
Using cordova-plugin-device-orientation (1.0.2)
Using cordova-plugin-file (4.1.1)
Installing cordova-plugin-file-transfer 1.5.0 (was 1.3.0)
Using cordova-plugin-geolocation (2.1.0)
Using cordova-plugin-globalization (1.0.2)
Using cordova-plugin-inappbrowser (1.3.0)
Installing cordova-plugin-media-capture 1.2.0 (was 1.0.1)
Using cordova-plugin-network-information (1.2.0)
Using cordova-plugin-splashscreen (2.1.0)
Using cordova-plugin-statusbar (2.1.1)
Using cordova-plugin-vibration (2.1.0)
Installing phonegap-ios-template 0.1.7 (was 0.1.4)
Generating Pods project
Integrating client project
Sending stats
Sending stats
Pod installation complete! There are 18 dependencies from the Podfile and 18 total pods installed.

Hope this helps and I look forward to chatting soon!
Holly

You rock @hollyschinsky!!

W000t! Look at that shiny new version! Thank you so much, it works perfectly for me :)
:heart_eyes:

Thanks !


Fixed CICD

Closes #91

[ ] lint.yml (manual trigger)
[ ] Node.JS 18
[ ] changing directory is only called once
[ ] dependencies: test -> build -> deploy

Resolved issues


update the Vagrant box version used in functional tests to 0.15

Changes needed for Ubuntu installation

@jlongever @brianparry @zyoung51 @tannoa2 @dalebremner

+1

test this please


Test file extension *.module.css

Background
@nickschot asked:

I can't find it easily, but are file suffixes also support? I'm involved in some projects that use my-component.module.css to denote css-modules

Screenshots
After renaming the *.css files in an app to *.module.css:

After renaming the *.css files in a v2 addon to *.module.css:

I found the investigation to have been fruitful. I'll create a separate pull request to document how users can use the file extension *.module.css.


[W4.5c][W10-A1]Joshua Lee Kai Sheng

Completed LO-Exceptions

@jlks96
Some comments added. Please ack & close the PR after reading comments.

Acknowledged. Thanks


Set up repo structure for all materials

Draft up structure for the repository to create support all the materials needed for the training.
Requirements for the repo:

Project to track all the tasks that need to be done
folder structure for necesssary activities, including;

web scraping use case to demonstrate as a use case
lecture/class materials to share with users
documentation that goes along with it for users to find later

Site structure mocked up


http-server dockerized

Hi @thornjad
I have dockerized http-server, you can find image here and repository here. You can add this to docs if you want.
Thank you for the awesome repo.

Sure, that looks useful. Would you want to add the Dockerfile to http-server itself?

Sure, I will create PR after I create a documentation about how to build and push docker image for a new version.

@thornjad any feedback on this?


NAMD stmv run hangs on Cray XC30 (Cori) with gni-crayxc-persistent-smp build

This bug was reported by Ted Packwood on the Charm mailing list. Still not sure if this is a bug in Charm++ or NAMD.
Machine: Cori, Cray XC30
Loaded Modulelist:
nbhat4@cori09:~/software/charm> module list
Currently Loaded Modulefiles:
  1) modules/<IP_ADDRESS>
  2) nsg/1.2.0
  3) gcc/8.3.0
  4) craype-haswell
  5) craype-hugepages8M
  6) craype-network-aries
  7) craype/2.5.18
  8) cray-mpich/7.7.6
  9) python/2.7-anaconda-4.4
 10) gdb/8.3
 11) altd/2.0
 12) cray-libsci/19.02.1
 13) udreg/2.3.2-<IP_ADDRESS>_4.31__g8175d3d.ari
 14) ugni/<IP_ADDRESS>-<IP_ADDRESS>_7.35__ge78e5b0.ari
 15) pmi/5.0.14
 16) dmapp/7.1.1-<IP_ADDRESS>_5.29__g25e5077.ari
 17) gni-headers/<IP_ADDRESS>-<IP_ADDRESS>_7.46__g3b1768f.ari
 18) xpmem/2.2.17-<IP_ADDRESS>_3.28__g7acee3a.ari
 19) job/2.2.4-<IP_ADDRESS>_3.36__g36b56f4.ari
 20) dvs/2.11_2.2.140-<IP_ADDRESS>_13.5__gdf9ebba2
 21) alps/6.6.50-<IP_ADDRESS>_3.44__g962f7108.ari
 22) rca/2.2.20-<IP_ADDRESS>_4.42__g8e3fb5b.ari
 23) atp/2.1.3
 24) PrgEnv-gnu/6.0.5
 25) cray-fftw/<IP_ADDRESS>
 26) darshan/3.1.7

Build charm: (v6.10.0-rc2)
./build charm++ gni-crayxc persistent smp --build-shared -j16 -g -O0

Build NAMD: (c1eb46b3d79d0fd2ae6cb968a185a0f309743460)
./config CRAY-XC-gnu --charm-base /global/homes/n/nbhat4/software/charm --charm-arch gni-crayxc-persistent-smp --with-fftw3 --charm-opts -save

Run Job with STMV input (https://www.ks.uiuc.edu/Research/namd/utilities/stmv.tar.gz)
Allocate Job with salloc --qos=interactive -C haswell --time=60 --nodes=2 --ntasks-per-node=1 --cpus-per-task=2
Run Job with srun -n 2 -c 2 --ntasks-per-node 1 ./namd2 +p2 ../stmv/stmv.namd

The hang shows up in the initial stages of the run:

nbhat4@nid00177:~/software/namd/CRAY-XC-gnu-with_tcl> srun -n 2 -c 2 --ntasks-per-node 1 ./namd2 +p2 ../stmv/stmv.namd
Charm++> Running on Gemini (GNI) with 2 processes
Charm++> static SMSG
Charm++> SMSG memory: 9.9KB
Charm++> memory pool init block size: 8MB, total memory pool limit 0MB (0 means no limit)
Charm++> memory pool registered memory limit: 200000MB, send limit: 100000MB
Charm++> only comm thread send/recv messages
Charm++> Cray TLB page size: 8192K
Charm++> Running in SMP mode: 2 processes, 2 worker threads (PEs) + 1 comm threads per process, 4 PEs total
Charm++> The comm. thread both sends and receives messages
Charm++> Using recursive bisection (scheme 3) for topology aware partitions
Converse/Charm++ Commit ID: v6.10.0-rc2-0-gcfec53c0a
CharmLB> Load balancer assumes all CPUs are same.
Charm++> Running on 2 hosts (2 sockets x 16 cores x 2 PUs = 64-way SMP)
Info: NAMD 2.13 for CRAY-XC-ugni-smp
Info:
Info: Please visit http://www.ks.uiuc.edu/Research/namd/
Info: for updates, documentation, and support information.
Info:
Info: Please cite Phillips et al., J. Comp. Chem. 26:1781-1802 (2005)
Info: in all publications reporting results obtained with NAMD.
Info:
Info: Based on Charm++/Converse 61000 for gni-crayxc-persistent-smp-ted-build-gnu
Info: Built Thu Oct 17 08:22:54 PDT 2019 by nbhat4 on cori09
Info: Running on 4 processors, 2 nodes, 2 physical nodes.
Info: CPU topology information available.
Info: Charm++/Converse parallel runtime startup completed at 0.00566167 s
CkLoopLib is used in SMP with simple dynamic scheduling (converse-level notification)
Info: 1358.43 MB of memory in use based on /proc/self/stat
Info: Configuration file is ../stmv/stmv.namd
Info: Changed directory to ../stmv
TCL: Suspending until startup complete.
Info: SIMULATION PARAMETERS:
Info: TIMESTEP               1
Info: NUMBER OF STEPS        500
Info: STEPS PER CYCLE        20
Info: PERIODIC CELL BASIS 1  216.832 0 0
Info: PERIODIC CELL BASIS 2  0 216.832 0
Info: PERIODIC CELL BASIS 3  0 0 216.832
Info: PERIODIC CELL CENTER   0 0 0
Info: LOAD BALANCER  Centralized
Info: LOAD BALANCING STRATEGY  New Load Balancers -- DEFAULT
Info: LDB PERIOD             4000 steps
Info: FIRST LDB TIMESTEP     100
Info: LAST LDB TIMESTEP     -1
Info: LDB BACKGROUND SCALING 1
Info: HOM BACKGROUND SCALING 1
Info: PME BACKGROUND SCALING 1
Info: MIN ATOMS PER PATCH    40
Info: INITIAL TEMPERATURE    298
Info: CENTER OF MASS MOVING INITIALLY?    Done.
Info: Writing FFTW data to FFTW_NAMD_2.13_CRAY-XC-ugni-smp_FFTW3.txt
Info: FULL ELECTROSTATIC EVALUATION FREQUENCY      4
Info: USING VERLET I (r-RESPA) MTS SCHEME.
Info: C1 SPLITTING OF LONG RANGE ELECTROSTATICS
Info: PLACING ATOMS IN PATCHES BY HYDROGEN GROUPS
Info: RANDOM NUMBER SEED<PHONE_NUMBER>
Info: USE HYDROGEN BONDS?    NO
Info: COORDINATE PDB         stmv.pdb
Info: STRUCTURE FILE         stmv.psf
Info: PARAMETER file: CHARMM format!
Info: PARAMETERS             par_all27_prot_na.inp
Info: USING ARITHMETIC MEAN TO COMBINE L-J SIGMA PARAMETERS
Info: SUMMARY OF PARAMETERS:
Info: 250 BONDS
Info: 622 ANGLES
Info: 1049 DIHEDRAL
Info: 73 IMPROPER
Info: 0 CROSSTERM
Info: 130 VDW
Info: 0 VDW_PAIRS
Info: 0 NBTHOLE_PAIRS
Info: TIME FOR READING PSF FILE: 9.92055
Info: Reading pdb file stmv.pdb
Info: TIME FOR READING PDB FILE: 2.51474
Info:
Info: ****************************
Info: STRUCTURE SUMMARY:
Info: 1066628 ATOMS
Info: 769956 BONDS
Info: 605872 ANGLES
Info: 450875 DIHEDRALS
Info: 24578 IMPROPERS
Info: 0 CROSSTERMS
Info: 0 EXCLUSIONS
Info: 3199884 DEGREES OF FREEDOM
Info: 389067 HYDROGEN GROUPS
Info: 4 ATOMS IN LARGEST HYDROGEN GROUP
Info: 389067 MIGRATION GROUPS
Info: 4 ATOMS IN LARGEST MIGRATION GROUP
Info: TOTAL MASS = 6.69877e+06 amu
Info: TOTAL CHARGE = 0.000168104 e
Info: MASS DENSITY = 1.09115 g/cm^3
Info: ATOM DENSITY = 0.104627 atoms/A^3
Info: *****************************
Info:
Info: Entering startup at 12.5534 s, 1647.2 MB of memory in use
Info: Startup phase 0 took 0.00266009 s, 1647.2 MB of memory in use
Info: ADDED 1810196 IMPLICIT EXCLUSIONS
Info: Startup phase 1 took 0.737189 s, 1890.5 MB of memory in use
Info: NONBONDED TABLE R-SQUARED SPACING: 0.0625
Info: NONBONDED TABLE SIZE: 769 POINTS
Info: ABSOLUTE IMPRECISION IN FAST TABLE FORCE: 2.64698e-23 AT 11.9138
Info: RELATIVE IMPRECISION IN FAST TABLE FORCE: 1.40436e-16 AT 11.9138
Info: INCONSISTENCY IN FAST TABLE ENERGY VS FORCE: 0.000325096 AT 11.9556
Info: ABSOLUTE IMPRECISION IN SCOR TABLE FORCE: 4.10282e-22 AT 11.9138
Info: RELATIVE IMPRECISION IN SCOR TABLE FORCE: 3.56912e-15 AT 11.9138
Info: INCONSISTENCY IN SCOR TABLE ENERGY VS FORCE: 0.000324844 AT 11.9556
Info: ABSOLUTE IMPRECISION IN VDWA TABLE ENERGY: 9.86076e-32 AT 11.8295
Info: RELATIVE IMPRECISION IN VDWA TABLE ENERGY: 6.75473e-14 AT 11.9138
Info: ABSOLUTE IMPRECISION IN VDWA TABLE FORCE: 4.62223e-32 AT 11.9138
Info: RELATIVE IMPRECISION IN VDWA TABLE FORCE: 2.12237e-15 AT 11.9138
Info: INCONSISTENCY IN VDWA TABLE ENERGY VS FORCE: 0.0040507 AT 0.251946
Info: ABSOLUTE IMPRECISION IN VDWB TABLE ENERGY: 4.1359e-25 AT 11.8295
Info: RELATIVE IMPRECISION IN VDWB TABLE ENERGY: 7.56853e-15 AT 11.9138
Info: ABSOLUTE IMPRECISION IN VDWB TABLE FORCE: 3.87741e-26 AT 11.9138
Info: RELATIVE IMPRECISION IN VDWB TABLE FORCE: 5.97409e-16 AT 11.9138
Info: INCONSISTENCY IN VDWB TABLE ENERGY VS FORCE: 0.00150189 AT 0.251946
Info: Startup phase 2 took 0.00114155 s, 1890.5 MB of memory in use
Info: Startup phase 3 took 7.0946e-05 s, 1890.5 MB of memory in use
Info: Startup phase 4 took 0.00373355 s, 1890.5 MB of memory in use
Info: Startup phase 5 took 7.0967e-05 s, 1890.5 MB of memory in use
Info: PATCH GRID IS 13 (PERIODIC) BY 13 (PERIODIC) BY 13 (PERIODIC)
Info: PATCH GRID IS 1-AWAY BY 1-AWAY BY 1-AWAY
Info: REMOVING COM VELOCITY 0.00772212 0.00305349 -0.00947445
Info: LARGEST PATCH (1044) HAS 541 ATOMS
Info: TORUS A SIZE 2 USING 0 1
Info: TORUS B SIZE 1 USING 0
Info: TORUS C SIZE 1 USING 0
Info: TORUS MINIMAL MESH SIZE IS 2 BY 1 BY 1
Info: Placed 100% of base nodes on same physical node as patch
Info: Startup phase 6 took 0.322141 s, 2037.91 MB of memory in use
Info: PME using 4 and 4 processors for FFT and reciprocal sum.
Info: PME GRID LOCATIONS: 0 1 2 3
Info: PME TRANS LOCATIONS: 0 1 2 3
Info: PME USING 2 GRID NODES AND 2 TRANS NODES
Info: Optimizing 4 FFT steps.  1... 2... 3... 4...   Done.
Info: Startup phase 7 took 0.956112 s, 2057.57 MB of memory in use
Info: Startup phase 8 took 0.000101115 s, 2057.57 MB of memory in use
Info: Startup phase 9 took 0.0112508 s, 2057.57 MB of memory in use
Info: Startup phase 10 took 6.8524e-05 s, 2057.57 MB of memory in use
Info: Startup phase 11 took 0.0183849 s, 2057.57 MB of memory in use
LDB: Central LB being created...
Info: Startup phase 12 took 0.00486397 s, 2057.57 MB of memory in use
Info: CREATING 43960 COMPUTE OBJECTS
Info: Startup phase 13 took 0.0542812 s, 2121.57 MB of memory in use
Info: Building spanning tree ... send: 1 recv: 0 with branch factor 4
Info: useSync: 0 useProxySync: 0
Info: Startup phase 14 took 0.00106864 s, 2121.57 MB of memory in use
Info: Startup phase 15 took 0.0013279 s, 2134.57 MB of memory in use
Info: Finished startup at 14.6679 s, 2134.57 MB of memory in use

ETITLE:      TS           BOND          ANGLE          DIHED          IMPRP               ELECT            VDW       BOUNDARY           MISC        KINETIC               TOTAL           TEMP      POTENTIAL         TOTAL3        TEMPAVG            PRESSURE      GPRESSURE         VOLUME       PRESSAVG      GPRESSAVG

ENERGY:       0<PHONE_NUMBER><PHONE_NUMBER>     81957.9556      4995.4407       -4503168.0872<PHONE_NUMBER>         0.0000         0.0000<PHONE_NUMBER>       -2448891.3793       298.2162  -3397037.0464  -2440252.1543       298.2162           1829.3220       188.2545  10194598.5131      1829.3220       188.2545

Note that CRAY-XC-gnu doesn't exist by default in current version of NAMD, but it's fairly trivial for uses to add that architecture by copying and slightly modifying existing files.

Worth learning more about how he built that architecture file as it might
differ in some subtle but important way from our attempts to reproduce it.
On Thu, Oct 17, 2019 at 3:26 PM Ronak Buch<EMAIL_ADDRESS>wrote:

Note that CRAY-XC-gnu doesn't exist by default in current version of
NAMD, but it's fairly trivial for uses to add that architecture by copying
and slightly modifying existing files.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/UIUC-PPL/charm/issues/2561?email_source=notifications&email_token=AB3HFHZRZJDM6LSA2AREY5DQPDC5LA5CNFSM4JB6Y3R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBRNFOA#issuecomment-543347384,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3HFH6TWB2QNNDOHOGHX3DQPDC5LANCNFSM4JB6Y3RQ
.

My money is on a bug in gcc, so you could try changing the gcc module or building NAMD with -g -O0 to see if it goes away.
What does CRAY-XC-gnu.arch contain?
Does the hang occur with both processes on the same host?
Does mpi-crayxc work?

My money is on a bug in gcc, so you could try changing the gcc module or building NAMD with -g -O0 to see if it goes away.
What does CRAY-XC-gnu.arch contain?
Does the hang occur with both processes on the same host?
Does mpi-crayxc work?

It hangs with both gcc 8.3.0 and 9.1.0. It does not hang when NAMD is compiled with - O0 or - O1 with either of those two compilers, only - O2 and higher.

The default gcc on Cori seems to be 8.2.0. Where did you find 9.1.0?

The default gcc on Cori seems to be 8.2.0. Where did you find 9.1.0?

Testing with 9.1.0 was done by Ted Packwood at Cray, presumably on some XC he has access to, not Cori.

My money is on a bug in gcc, so you could try changing the gcc module or building NAMD with -g -O0 to see if it goes away.

Yeah, I tried that (and so did Ted). The bug goes away with -g -O0.
I also tried the intel compilers and the bug didn't show up even then.

What does CRAY-XC-gnu.arch contain?

Contents of CRAY-XC-gnu.arch:
NAMD_ARCH = CRAY-XC
CHARMARCH = gni-crayxc-persistent-smp
CXX = CC -std=c++11 -DNOHOSTNAME -DNO_GETPWUID
CXXOPTS = -O3 $(CRAY_UGNI_INCLUDE_OPTS)
CC = cc
COPTS = -O3 $(CRAY_UGNI_INCLUDE_OPTS)

#
# ensure that required modules are loaded
#
$(info $(NAMD_PLATFORM))

loaded_modules := $(subst :, ,$(LOADEDMODULES))

module := $(filter rca/%,$(loaded_modules))
ifeq (,$(module))
  $(error module rca is not loaded)
else
  $(info found module $(module))
endif

module := $(filter PrgEnv-gnu/%,$(loaded_modules))
ifeq (,$(module))
  $(error module PrgEnv-gnu is not loaded)
else
  $(info found module $(module))
endif

Does the hang occur with both processes on the same host?

I think it doesn't hang that often but hangs once in a while.

Does mpi-crayxc work?

Yes, when compiled with gnu, it hangs under the same conditions. I'm trying mpi-crayxc with Intel compilers now.

Adding the following to CRAY-XC-gnu.arch makes the hang go away for me:
CXXTHREADOPTS = -O0
So I'd guess the compiler and the user-level threads are conflicting somehow.

Yeah, that's likely.
I tried mpi-crayxc with Intel compilers and there wasn't a hang.

Switching from uFcontext to uJcontext or pthread (which should be bullet-proof) doesn't help, nor does switching to gcc 8.2.0.

Switching to gcc 7.3.0 for the threaded files fixes the problem.

Since evidence is pointing to this likely being a bug or incompatibility in gcc, we're not going to block the Charm++ release on this being fixed.

We've had other reports of gcc 8 not working.

It hangs even on a single process. It hangs with stmv but not apoa1.
If I comment out langevin and langevinPiston then stmv works too.
After some debugging, I see this is the problem I've seen before where Random::gaussian() is miscompiled such that the underlying integer generator isn't being advanced and just returns the same numbers, so it gets stuck in a while loop.

Should we close this issue and move discussion to NAMD's issue tracker?

Go ahead and close it. I'll try to find a workaround.


How to implements L1 and L2 regularization?

one of them is here: https://github.com/torch/optim/blob/master/sgd.lua#L11
you can take a hint on how to implement the other.

But this is for L2 regularization, how to do L1 regularization?

As far as I know, FOBOS is one of implementation technique for training L1 regularized model with gradient descent.


Pin gevent to version 1.2

This is to address https://github.com/jgehrcke/gipc/issues/38

Let's unbreak master again.


Serialization of 0-length strings does not work.

My guess: empty string '' is being coerced into a falsy value...
Steps to reproduce: (replay in Todo.taskpaper)
> outline = new birch.Outline.createTaskPaperOutline(''); "1: [#{outline.serialize()}]"
> outline.reloadSerialization('foo');                     "2: [#{outline.serialize()}]"
> outline.reloadSerialization('');                        "3: [#{outline.serialize()}]"

Expected results:

'1: []'
'2: [foo]'
'3: []'

Actual results:

Uncaught TypeError: Cannot read property 'bodyString' of undefined
'2: [foo]'
'3: [foo]'

This will be fixed in the 3.6 release ... it actually is fixed in the 3.5 release, but it's been a while since I pushed code to brich-outline from my internal repository. Though the result is still a little odd... it will be [newemptyitem] instead of [] because even an empty document will have an empty item.


SSL - LetsEncrypt the Console Proxy

ISSUE TYPE

Feature Idea

COMPONENT NAME

Console Proxy VM

CLOUDSTACK VERSION

4.11.1+
CONFIGURATION

LetsEncrypt the Console Proxy
Many new applications are now integrating letsencrypt. This could replace the old retired realhostip.com DNS resolver . Noone would need to muck around with certs again on the console proxy.
SUMMARY

New Global Option For Letsencrypt enable on console proxy. Letsencrypt domain name option for letsencrypt ssl auto renew

@davidjumani @weizhouapache can you advice how this would impact novnc? it seems not relevant to the type of console but i am not sure.

@davidjumani @weizhouapache can you advice how this would impact novnc? it seems not relevant to the type of console but i am not sure.

@DaanHoogland it provides a default certificate (like old realhostip.com) to systemvms. It is an enhancement . ajax/novnc console will not be impacted.

This is btw possible by using nginx proxy which is used for SSL termination. I've detailed how to do this here - https://markmail.org/message/ukueqxzrrv7g3nte

@rohityadavcloud this will not work for systemvms deployed to public network, which is advanced setup and 99%, why whould I spend another IP for reverse proxy? honestly dont know why its not possible to deploy systemvms to "private" public network and use reverse proxy... afaik its not possible to create another public network assigned only for systemvm from lets say cloudbr2 bridge...

The email thread I've shared in fact saves you an IP address; you can deploy parts of the pod IP range in a private RFC1918 range (not public IP) and have the mgmt server and console proxy (maybe ssvm too) be LB'd by something like nginx in my example to do SSL termination.

But Systemvms will have always ( in advanced mode ) IPs assigned from the Public network and private IPs from the Management network, its not possible to change this behavior. One can only assign a dedicated range for Systemvms from Public and Management network, but thats all..
I dont understand from Your email, in mentioned email list how to do it exactly.
Thanks

My email/suggestion was to use RFC1918 networks for both public and management networks, of course this won't work for your use-case. You can use the traditional approach to setup/upload certificates (until something like this feature is fully automated).


Where to place vendor css/js?

Label: Question
What is the proper location to place vendor CSS or JS so that it is ignored by things like css linters? I added semantic.css and now when I build prod it fails.

Usually you install modules with npm so node_modules is a good location. You can try semantic-ui-css.


winget install "PotPlayer" hash..error

Brief description of your issue
There has been a recent data center fire in Korea.
So, a Korean company called daum, kakao had its servers shut down for a day.
Korea lacks IT consumer support. Anyway..
Error like image occurs.
[Installer hashes do not match. This setting cannot be overridden when running as an administrator.]
And Korean daum company did not know about winget program at all. :(
They only repeated that it was managed by ms?.
I said no.
Although he (they) said he was registering.
Didn't believe my words.
:)
Anyway..
I am speaking with google translator. The cliff of language.. Please understand.
Steps to reproduce

Hash error as shown in image.
Expected behavior
winget install "PotPlayer" --id "Daum.PotPlayer" -s "winget" --accept-package-agreements
I'm installing just fine like this.
Actual behavior
C:\Windows\system32>winget install "PotPlayer" --id "Daum.PotPlayer" -s "winget" --accept-package-agreements
Found PotPlayer [Daum.PotPlayer] version 220914
The license for this application has been granted to the user by its owner.
Microsoft is not responsible for and does not license third-party packages.
Downloading https://t1.daumcdn.net/potplayer/PotPlayer/Version/Latest/PotPlayerSetup64.exe
██████████████████████████████  ██████████████████████████████  32.6 MB / 32.6 MB
Installer hash does not match. You cannot ignore this setting when running as an administrator.
Environment
Microsoft Windows [Version 10.0.19045.2251]
(c) Microsoft Corporation. All rights reserved.

winget -v = v1.3.2691

Windows10 home kr insider

Other programs install just fine.
Recently the `vlc` program had the same error but it was fixed.

Try here:
https://www.filehorse.com/download-daum-potplayer-64/74284/

I also know the basic download path.
thank you.
I get it via command.
That is the strength of winget.


Write the HTML

Basic code quiz HTML
Start container
Questions Container
End container
High Score container
Text fields for Hints (jokes)
Link to 'retake' test will link to rick roll

Will need a form to enter Github username


FE-1127 Feature/forecast details improvements

Why?
Station Details - Forecast Details improvements
How?

Updated WeatherMeasurementCardView component which reflects the measurement view in the daily card in the forecast details screen, to have the new UI and added it respective in a new daily card in the forecast details screen
Created two new colors for the charts chart_primary_line, chart_secondary_line which we use for the chart lines in the forecast and history charts.

Testing

Ensure that the new screen looks OK based on the proposed changes.
Make sure the chart coloring updates are reflected in the History screen as well.

Good catch @pantelisss , fixed!


Add a configuration for embedded apps under build settings

See https://github.com/rogerthat-platform/rogerthat-android-client/issues/333.
Also https://github.com/rogerthat-platform/rogerthat-backend/issues/416 is related.
Should we update it completely or just add the support for this property under build settings in build.yaml files?

Also, need more info of the embedded apps list, is it a predefined list (e.g. rogerthat-payment...etc) or just any value can be added to it?

You can wait a bit with this, we're making https://github.com/rogerthat-platform/rogerthat-backend/issues/433 atm which will make these embedded apps obsolete I think.

Yeah I think so. When we implement https://github.com/rogerthat-platform/rogerthat-backend/issues/444 this feature (apps baked into the .apk) can be totally removed.


Added Program for Number of Provinces in CPP

Resolved Issue #161
Please merge this branch.

pull request merged, now please close the issue, you can also contribute to other repo's-https://github.com/avinash201199/Hacktoberfest-Guide
Note- only 2 pr per day on a single repo is accepted.
follow for more such repo to contribue :)


Boost cannot find data file

I'm very interested in your project, but it fails while running.
Boost cannot find data file, such as cs_snap_unique.shp, cs_snap_unique.csv.
Not sure if this is intentional. Hope to provide more detailed guidance.

I will upload sample data sets shortly (e.g., cs_snap_unique.shp, cs_snap_unique.csv). However, those datasets can be safely removed due to limited functionality regarding this version.

Thank you very much for your immediate reply.
I will continue to follow your project and look forward to a more detailed wiki.
My recent work on matching, repositioning and pricing in ride‐hailing.

Error parsing parsed_routes.pkl
Traceback (most recent call last):
  File "/mnt/d/git/DROP_Simulator/code/train_loops.py", line 35, in <module>
    simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
  File "/mnt/d/git/DROP_Simulator/code/simulator/simulator_cnn.py", line 172, in init
    self.hex_routes=pickle.load(f)
_pickle.UnpicklingError: invalid load key, 'v'.

When I regenerated this data file via routes_interpolate.py, I found that all_routes.pkl does not exist.
Disturbed again!

"all_routes.pkl" is not included in our simulator. You may try use ALL_HEX_ROUTE_FILE = '../data/parsed_routes.pkl' HEX_ROUTE_FILE = '../data/hex_routes.pkl'  # the route between necessary pair of hex zone interchangeably to make it run.
You may start with "main_cnn.py".

Thanks for your patient reply. Error parsing parsed_routes.pkl has been resolved by the method.
But unfortunately it says that another file is missing hex_diffusion.pkl.
  File "/mnt/d/DROP_Simulator/code/main_cnn.py", line 43, in <module>
    simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
  File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 194, in init
    self.hex_diffusions = self.get_hex_diffusions(HEX_DIFFUSION_PATH, row_col_coords)
  File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 130, in get_hex_diffusions
    with open(diff_file, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/hex_diffusion.pkl

Hi, I tried to find the original file to generate the diffusion matrix. I will upload the original dataset once I find it. As an alternative, you can tentatively use the code below to bypass the error:
hex_diffusion={i: [0.1 for _ in range(1347)] for i in range(1347)}
where 1347 is the total number of hexagon cells in this simulator.

I tried the solution you mentioned and still got the following error:
  File "/home/cuizhiwei/.vscode-server/extensions/ms-python.python-2022.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 247, in eval_in_context
    result = eval(_expression_to_evaluate(expression), globals)
  File "<string>", line 1, in <module>
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 2, the array at index 0 has size 54 and the array at index 1 has size 1

Hi, we have uploaded all large files to OneDrive, which can be accessed here.

Hello, sorry to bother you can you explain a little bit with details main files(which are more important), i have studies several times you good work, but still I have some confusion regarding your code.
thanks in advance!

Hi, I'm willing to help. Can you specify your confusion?

Thanks for your reply, actually I am new to research can you please explain
which files I should run for training and which for seeing the result, baby
steps please
Kind Regards
On Mon, 6 Feb 2023, 11:58 am Shuocheng Guo, @.***>
wrote:

Hi, I'm willing to help. Can you specify your confusion?
—
Reply to this email directly, view it on GitHub
https://github.com/sguo28/DROP_Simulator/issues/1#issuecomment-1418431245,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3WA7Z5KFPWRDNNHH26MDITWWBSFHANCNFSM5YWSU6PA
.
You are receiving this because you commented.Message ID:
@.***>

You can start with running main_cnn.py. As we're extending this version to an electrified one, more details will be provided. Please stay tuned!

Thanks for the update, do you have time to give me some instructions I
really need your help, if so I will be owe of you.
Thanks
On Mon, 6 Feb 2023, 12:50 pm Shuocheng Guo, @.***>
wrote:

You can start with running main_cnn.py. As we're extending this version
to an electrified one, more details will be provided. Please stay tuned!
—
Reply to this email directly, view it on GitHub
https://github.com/sguo28/DROP_Simulator/issues/1#issuecomment-1418469273,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3WA7Z7FD2J6DL5EOJND66TWWBYGRANCNFSM5YWSU6PA
.
You are receiving this because you commented.Message ID:
@.***>


[StaticDatePicker] When selecting a month, it switches to year selection

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
I am using the StaticDatePicker the following way:
	<StaticDatePicker
		orientation="portrait"
		openTo="month"
		views={['month', 'year']}
		value={date}
		onChange={setDate}
		onClose={onClose}
	/>

When I select a month, the date picker automatically changes to the year view. Since I have custom buttons that enable a user to switch between month and year, I'd like to prevent the automatic change from month to year when selecting a month. I think the previous version supported this, because we didn't have this automatic change of views.

Due to limited time, I cannot create a PR myself. However, I think the feature should be straightforward by introducing a new optional boolean (e.g. disableOpenNext) which is then used in the useViews hook to disable changing the view after a selection.
This commit is the gist of the change: https://github.com/rwieruch/material-ui/commit/337b24eb26fa5d72278fa95cd97bfce943ff2797 Essentially what's missing is updating all useViews usages + updating all components that use useViews to receive the optional disableOpenNext prop.


RLMCollectionChange move notifications

Goals
Use RLMCollectionChange notifications to update table and collection views with moved cell information.
Expected Results
RLMCollectionChange has a moves property with the old/new index paths. (Similar in use to NSFetchedResultsChangeMove).
Actual Results
When a row is inserted in the collection, all following rows are reported as modified. This results in having to tell the table/collection view to unnecessarily reload many rows (hundreds in this case).
Version of Realm and Tooling
ProductName:    Mac OS X
ProductVersion: 10.11.4
BuildVersion:   15E65

/Applications/Xcode.app/Contents/Developer
Xcode 7.3.1
Build version 7D1014

Realm (0.101.0)

I am feeling the pain on this one.
Using the changes on the notification to process UI updates ends up in unnecessary row reloads and its a noticeable performance hit.

The good news is, Realm internally already computes move operations.
The bad news is, move operations are converted to insertions and deletions at the very end of the change calculation algorithm: https://github.com/realm/realm-object-store/blob/28ac73d8881189ac0b6782a6a36f4893f326397f/src/impl/collection_change_builder.cpp#L35-L38
I vaguely recall this being done due to UITableView APIs not handling move operations very nicely, that they would crash in certain scenarios despite having perfectly valid results. As this never happens with insert/delete pairs, and that this feature would be used to power UITableView's 99% of the time, we opted to "flatten" moves to work around this issue.
I'm fuzzy on the details, so unfortunately I don't recall what those problematic cases were, or if we filed a radar, or what the status of that potential radar would be, so I apologize for that.
@tgoyne would certainly know more, but he's on vacation this week. If one of you were to ping him again next week, he'll hopefully be able to shed more light on the situation.

Moves currently are only calculated for unsorted queries (there's a lot of tracking of row moves done for sorted queries, but they're for the changes in the low-level row numbers, not the order within the sorted results).
The UITableView bug was an iOS 8 thing that was fixed in iOS 9.

@tgoyne Any update on this now that the table view bug has been fixed?
I use the realm collection notifications for a purpose that is not a table view, so having the moves converted to insertions and deletions forces me to perform an extra step to compute which items are actually new, and have not just been moved.

Hi @hhanesand, we agree that this is useful and important, but the functionality still needs to be built on our side, and that hasn't been done yet. We translate moves to insert/delete pairs for some Realm collections, but we'd need to expand that functionality to all types of Realm collections first, and then expand our APIs in order to expose those moves directly. We're not blocked on any external factors, but there's a decent investment of work that needs to happen to accomplish this.
Subscribe to this issue for any updates on the matter.

any news on this?

Subscribe to this issue for any updates on the matter.
No updates, no news.


Can't reuse prepared statements

This issue seems to be reported on stack overflow, google list, etc. but getting little reaction. I'm using 1.3.10 on ruby 2.0.0p481 that comes with Mavericks, and I still have the same problem.
The problem is that I can use a prepared statement only once. When trying to re-bind the statement with a new set of values, it generates the following error:
`bind_param': library routine called out of sequence
When same SQL statement is executed repeatedly, a statement is prepared once and executed with a fresh set of values. But after the statement is executed and before it is re-bound, it needs to be reset (and often cleared). The point is that it is faster to reset a used statement than "compiling and optimizing" the same SQL over and over again. Most of you probably know all this... but here's the link to the SQLite documentation of the relevant part:
https://www.sqlite.org/c3ref/stmt.html
I don't see reset and clear methods in SQLite3::Statement class, so these might be somehow missed from this implementation, or there is some other mechanism to reset/clear automatically when reused, but that mechanism is somehow not triggered. However, it is not even mentioned in the documentation... at least I couldn't find it.
I think these methods are missing from SQLite3::Statement class:
https://www.sqlite.org/c3ref/clear_bindings.html
https://www.sqlite.org/c3ref/reset.html
Very same problem is reported, for example, here:
http://stackoverflow.com/questions/4253011/why-is-my-simple-ruby-sqlite3-example-failing
Thanks for looking into this!

The Statement class does expose the reset method, its implemented in the C side of the SQLite3::Statement class and not the Ruby side:
https://github.com/sparklemotion/sqlite3-ruby/blob/master/ext/sqlite3/statement.c#L435
So you can reset a prepared statement and reuse it again using something like this:
stmt = db.prepare( "SECECT * FROM foo WHERE bar = ?;" )

stmt.bind_params( 1234 )
stmt.execute do | result |
    # ...
end
stmt.reset!

stmt.bind_params( 5432 )
stmt.execute do | result |
    # ...
end
stmt.reset!

Hope that helps! :)


server: lock around Start() setting listener / address

I've ran into race conditions when testing using this server. Preventing reads while Start is writing helps avoid these panics.

do you have an example? :)

@alovak Yea, I'll DM you as it's in a private repository.


[Todoist] Default due date for tasks

Extension
https://www.raycast.com/doist/todoist
Description
Please consider adding a default due date to tasks created with this extension. Yes, I can and do add today to all of the tasks I create (and I largely ONLY use this extension to create tasks because it is so awesome) but having default vaules like due date and even priority might help many people's flows. Thank you for considering!!
Who will benefit from this feature?
Anyone who forgets to check their "no due date" queues in Todoist.
Anything else?
No response

i think i would like to try to work on it. any guidance you can provide is great, and any feedback on the code will be necessary and appreciated!!

First, here's our guide about contributing to extensions: Contribute to an extension
This could be done by using both quicklinks and deeplinks. You can find an example on the Messages extension: send-message.tsx


basic auth implemented

Basic Auth Handler is implemented and I made service/authors API call use it. If you want to test it out, try running this curl command:
curl -H "Authorization:Basic $(echo -n CitrusNetwork:oranges | base64)" -v http://<IP_ADDRESS>:8000/service/authors/
Try changing either username or password and it won't work anymore. This needs to be applied to back end API calls which other nodes will be connecting to us with, and all of our API calls need to be refactored to have this header implemented.
Please note:
The username:password string must be base64 encoded

Codecov Report

Merging #103 (b13454d) into dev (b71257d) will decrease coverage by 0.96%.
The diff coverage is 7.14%.

@@            Coverage Diff             @@
##              dev     #103      +/-   ##
==========================================
- Coverage   58.87%   57.91%   -0.97%
==========================================
  Files          15       15
  Lines         980      998      +18
==========================================
+ Hits          577      578       +1
- Misses        403      420      +17

Impacted Files
Coverage Δ

citrus_network/citrus_home/views.py
38.65% <7.14%> (-1.79%)
:arrow_down:

citrus_network/citrus_home/admin.py
100.00% <0.00%> (ø)

citrus_network/citrus_home/models.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


nextflow module for pyhlo_wgs multievolve

Dockerhub Container: mskcc/phylowgs:v1.3-msk
command: python2 /usr/bin/multievolve.py --num-chains 4 --ssms [ssm_data.txt from create_phylo_inputs] --cnvs [cnv_data.txt from create_phylo_inputs]  --burnin-samples 2 --mcmc-samples 2
output: chains/trees.zip
Not sure about --burnin-samples 2 --mcmc-samples 2, we need 5 tress but the inital input had those in the 1000s, but it took forever to run


[Bug] - intermittencies with DB connections

We have some problems with our core api's
dd360-core-projects-prod-projectexistunderwritten
dd360-core-sales-expenses-prod-workprogram
dd360-core-sales-expenses-prod-getloaninformat
dd360-core-documents-prod-updaterequireddoc
dd360-core-projects-prod-updateprojectstatus
dd360-core-loans-prod-patchloan

This issue was resolved


Add publicAccess field to Application entity

See in title.
Related to https://github.com/terrestris/shogun/pull/849.

Superseeded by #661.


[CONTROLLER/TAGRECORDER] reverts deleted code

This PR is for:

Server

reverts deleted code
Checklist

[ ] Added unit test.

Backport to branches

main

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


bug: dashboard startuptime incorrect

Did you check docs and existing issues?

[X] I have read all the snacks.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of snacks.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
MacOS 12.7.5
Describe the bug
When opened with nvim from shell, the startup time shows 0ms.

When opened with lua Snacks.dashboard.open() in nvim cmd mode, it shows the correct time.

Also, is there a way to change the startup icon like other sections?
My snacks config
return {'folke/snacks.nvim',
	event = 'VimEnter',
	dependencies = 'nvim-tree/nvim-web-devicons',
	opts = {
		bigfile = { enabled = true, notify = true },
		dashboard = {
			enabled = true,
			sections = {
				{ section = 'header' },
				{ section = 'keys', gap = 1, padding = 1 },
				{ section = 'startup' },
				{ pane = 2, icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
				{ pane = 2, icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
			},
			preset = {
				keys = {
					{ icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
					{ icon = " ", key = "f", desc = "Telescope", action = ":Telescope" },
					{ icon = "󰒲 ", key = "L", desc = "Lazy", action = ":Lazy", enabled = package.loaded.lazy ~= nil },
					{ icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
					{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
				},
				header =
[[
 _______             ____   ____.__
 \      \   ____  ___\   \ /   /|__| _____
 /   |   \_/ __ \/  _ \   Y   / |  |/     \
/    |    \  ___(  <_> )     /  |  |  Y Y  \
\____|__  /\___  >____/ \___/   |__|__|_|  /
        \/     \/                        \/
]]
			},
		},
		notifier = { enabled = true },
		lazygit = { enabled = true, configure = true },
	},
	keys = {
		{ "<Leader>d", function() Snacks.lazygit() end },
	}
}

Steps To Reproduce

Config the snacks dashboard with a startup section
Enter nvim in shell

Expected Behavior
The startup time is 0ms
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})

You're lazy-loading snacks on VimEnter. Please use the suggested setup.
Things like bigfile simply can't work if you lazy-load on VimEnter.

Sorry bro, my bad. It works now.


[ENSWEB-5419] Enable supertrees for mice strains

Description
Mice supertrees are now available and thus we need to remove the hack we used to hide the supertrees option in configuration.
Views affected
Genetrees in general as there is a change in "Switch to supertree url" link in the supertree zmenu
Check it in sandbox:
Strain:
http://ves-hx-78.ebi.ac.uk:9000/Mus_musculus_129S1_SvImJ/Gene/Strain_Compara_Tree?g=MGP_129S1SvImJ_G0016104;r=1:65277845-65279914;t=MGP_129S1SvImJ_T0020282
Breed:
http://ves-hx-78.ebi.ac.uk:9000/Sus_scrofa_bamei/Gene/Strain_Compara_Tree?g=ENSSSCG00050037595;r=LUXV01057655.1:1521438-1532941
Merge conflicts
N/A
Related JIRA Issues (EBI developers only)
https://www.ebi.ac.uk/panda/jira/browse/ENSWEB-5419?filter=-1

Cool thanks. Carla have tested my sandbox and confirmed working. So I think it is safe to do so.
https://genomes-ebi.slack.com/archives/C0HTNH2GG/p1613044496027300?thread_ts=1612980604.023400&cid=C0HTNH2GG


"Uncaught TypeError: t.draggableLines.enableForLayer is not a function" (Leaflet.DraggableLines is broken in production)

When trying to edit the track path in editing mode, nothing happens and the following error is printed in the browser console:
Uncaught TypeError: t.draggableLines.enableForLayer is not a function
It seems something breaks with DraggableLines in production, possibly an issue with minification.

One hypothesis I have is that mixing the ES6/TS class-based inheritance you use in DraggableLinesHandler with Leaflet's custom-built class system somehow confuses the Babel transpiler or something.
I'm planning to test this by adding another simple subclass of Handler in my own code, and see if it shows the same behavior, and then possibly also trying to change DraggableLinesHandler to use Leaflet's L.Class.extend() instead of ES6 classes.


Adapt to Spring Cloud version Hoxton.SR8

Describe what this PR does / why we need it
Does this pull request fix one issue?
Fixes #1702

Describe how you did it
Describe how to verify it
Special notes for reviews

spring-cloud-alibaba-dependencies/pom.xml
spring-cloud-dependencies-parent version need to update.


Missing blocks in .exr

Hi,
another thing I discovered (starting to wonder if it's me 😛).
tev — The EXR Viewer
version 1.27dev (64 bit)
on
Linux nearth 6.10.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 x86_64 GNU/Linux
If I open this picture, I see some empty blocks. With GIMP it looks fine:

Best,
Felix

Hi, that's strange. That image loads correctly for me. Both on macOS (M1 max) and Linux (Ubuntu, NVIDIA RTX 4090, latest driver). I also never heard of anyone else having that particular problem with tev.
If you figure out what causes it (or find another hint), I'd be more than curious to hear about it!

The funny thing is, I tried it again, now it works...
But I remember I had similar issue yesterday too.
I'll close for now. Thanks for your quick help :)


[plot] Split Curve class item into separated classes

As is, histograms, scatters and curves are all defined in a single class.
The API would probably be clearer if they where separated objects in the OO API even if they share a common method to add them to the plot.

While I see the interest for the histogram, I really fail to see it for the scatter. To me a scatter is just a curve without line connecting the points.

In this single case, if you want to create generic widget to custom styles of your items it will be already useful to split concepts.
And I guess if you want other display like voronoi or what, this class can be very useful.
BTW PyQtGraph provides PlotCurveItem and ScatterPlotItem (http://www.pyqtgraph.org/documentation/graphicsItems/scatterplotitem.html)

t20100 has clarified a point that had been escaped to me. The scatter object handles a third coordinate and it is indeed a representation of 3-dimensional data.

closed by #762


ImageBlock title parsing defaults to incorrect behaviour when given a string

When providing a str as the title argument, the block created is incorrect and when submitted to Slack (e.g. via a views.open API call) will hit a JSON Schema error:
[ERROR] failed to match all allowed schemas [json-pointer:/view/blocks/N/title]
[ERROR] must be a valid enum value [json-pointer:/view/blocks/N/title/type]

This is easily visible in the shell by doing:
In [1]: from slack_sdk.models.blocks import ImageBlock
In [2]: img = ImageBlock(image_url="https://example.com/", alt_text="example", title="example")
In [3]: img.title
Out[3]: <slack_sdk.MarkdownTextObject: {'text': 'example', 'type': 'mrkdwn'}>

See how it's been parsed into mrkdwn?
Based on the doctstring of the ImageBlock.__init__, which says:

title: An optional title for the image in the form of a text object that can only be of type: plain_text.

and the official documentation which says:

An optional title for the image in the form of a text object that can only be of type: plain_text. Maximum length for the text in this field is 2000 characters.

The current behaviour seems to be incorrect.
I believe that the fix would be to do:
- self.title = TextObject.parse(title)
+ self.title = TextObject.parse(title, default_type=PlainTextObject.type)

which is already the behaviour in other places (e.g. InputBlock label & hint parsing, HeaderBlock, ...)

Hey @kezabelle! Thank you for surfacing this! I tested this with the following code and can confirm this causes an invalid_blocks error from the API:
img = ImageBlock(image_url="https://i.pinimg.com/originals/4a/31/63/4a31635b0653dac546d069447cf12261.jpg", alt_text="a pokey and pixelated cactus", title="Cactus art")
response = client.chat_postMessage(channel='#sandbox', text="Cactus", blocks=[img])

Both the docstring and documentation you linked to are correct, so this seems like a bug. The fix you suggested also corrects this behavior (I can send the above image successfully with this applied), so we'll be sure to include this in the next release.[^1]
[^1]: If you'd like to open a PR with this change, I'll happily review it! Otherwise, I or someone else can apply the change soon 😄
Really appreciate the detailed issue and your investigation into this! 🙌


Open document command for string literal passed to source function

Like in C++ for `#include "windows.h", I want to be able to right-click on the file name and open that file in the editor.

+1
On Fri, Aug 12, 2016 at 3:11 PM, Hugues Valois<EMAIL_ADDRESS>wrote:

Like in C++ for `#include "windows.h", I want to be able to right-click on
the file name and open that file in the editor.
[image: image]
https://cloud.githubusercontent.com/assets/1696845/17638477/100a1d68-609f-11e6-880b-cf55ef35e984.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/RTVS/issues/2169, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtUVHzFjVcgDlMOysGD3jKdis-Pk71tks5qfO-egaJpZM4JjgFQ
.


Cool language features

I'm opening an issue to start a discussion on some features we might want to implement in our language
Could you try to list 5 language features you may have encountered in any programming language which felt amazing/useful/interesting/ just cool in any way?
This can be any type of features, things common in many languages or specific to a language but still super cool to use. It can be control flow structures, standard library functions, operators, design patterns, types, or any kind of great programming language design which felt great for you as a user of the language (that is, as a developer using the language).
To make things more interesting, I think it would be cool if you could give explanations why the feature is useful or relevant and if possible give examples of what it enables.

I'll start off here:
I'm realising I'm certainly going to talk about Haskell and Rust a lot, because I find these languages have both very good design although they are completely different, they do share some features, and those shared features are very interesting.
Rust's enums / Haskell's data
This a feature common to Rust and Haskell, just named differently. The concept is simple : allow a user-defined type to have several variants and to associate different storage types for each variant of the type. This is the equivalent of the enum - union combo in C.
An example might be easier to understand:
enum UserInput {
    Click(i32, i32),
    Character(u8),
    Quit,
}

data UserInput
    = Click Int Int
    | Character Char
    | Quit

This examples simply defines three types of user input, which can be either a click, in which case we associate coordinates; any character on the keyboard, in which case we associate the typed character, or a special Quit input, which has no associated data.
This feature is often complemented by another feature of those languages: pattern matching, allowing consistent and comprehensive logical branching across all variants of the type:
fn print_user_input(input: &UserInput) {
    match input {
        Click(y, x) => println!("User click at coordinates (x: {x}, y: {y})");
        Character(c) => println!("User typed the character '{c}'");
        Quit => println!("User quit");
    }
}

printUserInput :: UserInput -> String
printUserInput (Click x y) = "User click at coordinates (x: " ++ show x ++ ", y: " ++ show y ++ ")"
printUserInput (Character c) = "User typed the character '" ++ show c ++ "'"
printUserInput Quit = "User Quit"

Type generics
Type generics is now a common feature in all modern languages: C++, Java, Rust, Haskell, Zig, Dart, and is often denoted by angle brackets <>.
The first example that comes to mind is to have parametric types, such as a List<T> for example. When combined with the previous features, this can create really powerful types, such as Rust's Option and Result, equivalent of Haskell's Maybe and Either:
enum Option<T> {
    Some(T),
    None,
}

enum Result<T, E> {
    Ok(T),
    Err(E),
}

data Maybe a = Nothing | Just a

data Either a b = Left a | Right b

This feature can be complemented by some way to define type constraints (for example a Num constraint) which is useful when writing functions with generic parameters. This feature is present both in Haskell and Rust, just named differently: Haskell classes and Rust traits, similar to OOP's interfaces.

Rust design: Errors as values
By design, Rust doesn't feature exceptions, nor nulls. This way, when you call a function that returns an object of type A, you know for sure that you will receive an A, no errors possible. The language simply doesn't allow errors to be hidden away. When you call a function that can fail to return a value, it will explicit in its return type, certainly an Option or a Result.
This what "Errors as values" means: errors are values stored in variables like any other non-error object.
This forces the caller to handle the error, in the same way they can't coerce an enum in any of its variants without checking if it is indeed the correct variant. Other language constructs such as the ? operator bring delicious syntactic sugar to make handling errors more concise while keeping all aforementioned advantages.

I gave quite a good amount of detail on each feature I describe, but don't feel forced to do as much. It's just that I love explain why good stuff is good


detect linux os and open via obsidan command on path

fixes https://github.com/epwalsh/obsidian.nvim/issues/4

This isn't working quite like expected just yet. Turns out obsidian doesn't actually use these command line options, it just opend that note that was last open.

now it should work universally on linux (assuming most distros have xdg-open) and obsidian was installed using a method that creates the correct .desktop file (needs to contain %u so that the application is registered to open obsidian urls)


Use scaled values in customer stakes

Scaled values are used in customer stakes calculations

Added extra parameter to taskUtils (notWeighted) in case the weighted/scaled values should not be used. (I recall discussion about using scaled values everywhere and adding a convenient on/off switch)

Fixed, great suggestions 👍


Specialized 'XAMusic' Objects not Returned by Filters

Similar to what was addressed in #8 , I am seeing more instances of XAMedia base objects being returned in the Music app, rather than their specialized XAMusic variants.
See example below.  If I try to filter a XAMusicUserPlaylistList, the resulting objects are of the XAMediaUserPlaylist base class.
Example:
PyXA.Music().user_playlists()
<<class 'PyXA.apps.Music.XAMusicUserPlaylistList'>length: 1171>

PyXA.Music().user_playlists().first
<PyXA.apps.Music.XAMusicUserPlaylist object at 0x106c9e260>

PyXA.Music().user_playlists().by_name("MY PLAYLIST")
<PyXA.apps.MediaApplicationBase.XAMediaUserPlaylist object at 0x106c2ff70>

PyXA.Music().user_playlists().by_property("name", "MY PLAYLIST")
<PyXA.apps.MediaApplicationBase.XAMediaUserPlaylist object at 0x106c9fca0>

Thanks for reporting, fixed in the upcoming release -- at least for Music. I'll need to see if this is a problem in other applications as well.


custom fields: edtf and iso date support

closes #385

Tested in an instance with the following config:

# Custom fields
from invenio_records_resources.services.custom_fields import EDTFDateStringCF, ISODateStringCF

RDM_CUSTOM_FIELDS = [
    EDTFDateStringCF(name="edtf"),
    ISODateStringCF(name="iso"),
]

RDM_CUSTOM_FIELDS_UI = [
    {
        "section": _("CERN Experiment"),
        "fields": [
            dict(
                field="edtf",  # this should be validated against the defined fields in `RDM_CUSTOM_FIELDS`
                ui_widget="Input",  # user defined widget in my-site
                props=dict(
                    label="EDTF Date",
                    placeholder="Type...",
                    icon="lab",
                    description="You should fill this...",
                )
            ),
            dict(
                field="iso",  # this should be validated against the defined fields in `RDM_CUSTOM_FIELDS`
                ui_widget="Input",  # user defined widget in my-site
                props=dict(
                    label="EDTF Date",
                    placeholder="Type...",
                    icon="lab",
                    description="You should fill this...",
                )
            ),
        ]
    }
]

Mapping result after services setup:
"custom_fields": {
    "properties": {
        "edtf": {
            "properties": {
                "date": {
                    "type": "date"
                },
                "date_range": {
                    "type": "date_range"
                }
            }
        },
        "iso": {
            "type": "date"
        }
    }
},


Instruments: resource class SOCKET

I have an instrument (that for an unknown doesn't communicate properly using LAN VXI), so I set it in SOCKET mode in the Instruments browser (instead of INSTR). I enter the port number, validate, all works fine. When I click ok, the port number is set to 0 (although I entered 5025). And in the main logger, I get "When creating VisaTCPIP connection had to remove unknown arguments set([u'port'])".
The communication still works ok, and the system uses the correct port number when communicating with the instrument. But the instrument browser does not display the correct one.

Closing as this is indeed an issue within ecpy itself. I will open a new ticket there.


Changed a URL to play the game

New URL is https://voltel.github.io/reviewing-a-pull-request/

Ok.


Authentication

I'm really hoping your SDK can help me with what I need to do, which is to list all files in a OneDrive folder with hrefs which will allow downloads.  I'm thinking I could use links like:
Download
This link works.  What I want to do is present a page listing all the files and "insert" the resid once I get it through your program.
Basically, I copied your code samples and went thru the app registration and when the code execution gets to this line:
client.auth_provider.authenticate(code, redirect_uri, client_secret)
I don't get an error (I used to get invalid_client and invalid_grant) but I got past that and don't see anything to indicate the Authentication failed or succeeded.
Once that line is executed, I try to run:
root_folder = client.item(drive='me', id='root').children.get()
and I get this error: "unauthenticated - Authentication failed"
I'm new to Microsoft App Registration and Authentication and may be misunderstanding some very simple concepts.
First, are the values of 'me' and 'root' correct?  I've tried with the GUID of the main folder and it still errors.
Another thing I notice is that when I run the site on localhost, I don't get a timeout on the authentication, which I do when I try to authenticate on the live site.  This makes me suspect that the Authentication is not working but I can't see where to get any kind of status.
I've set my redirect_uri to 'http://localhost:8080/'.  I wonder if this is correct since when I do the code paste operation it says localhost refuses to connect.
http://localhost:8080/?code=M.C105_SN1.2.a94a758a-2e19-0ba9-e2e5-1c5fce047015
My scopes are ['User.Read', 'offline_access', 'Files.Read.All', 'onedrive.readwrite', 'onedrive.readonly', 'onedrive.appfolder']
which may be too many but nothing's complaining at this point.
At any rate, I've spent at least two full days trying to get this to work.  I'm sure it's some dumb thing I'm missing but I can't find it.  I will deeply appreciate any help or guidance.  Frankly, I'd be open to some compensating you for your time.  I need to get this working.
Thanks, Doug

I finally figured it out after several painful days.  I'm always baffled by Microsoft's obtuse approach to certain things.  After a long while and multiple blind experiments, I realized that I had to register the app under my business account and expose the API properly.  However, I tried so many things that I'm not 100% certain that was it.
What made the final difference was using the GetAuthCodeServer version of your code sample and getting the redirect_uri and scopes just right:
redirect_uri = 'http://localhost:8080/'
scopes=['wl.signin', 'wl.offline_access', 'onedrive.readwrite']
I'm still not super-comfortable with this and exactly how I wound up getting it work - which is the problem with a multi-day mysterious issue.  At any rate, I'm now transversing my OneDrive file system like crazy.
Thanks for your good work here.
D