text:
OK/KO messages: Provide successful or unsuccessful messages for all the actions

@iluxonchik
1. Establish success confirmation messages for all OK actions in all scenarios, so that the user is certain that the action has been performed.
Examples based on testing different scenarios:
-Editing a committee member
After successfully editing the number of members in a committee, there's no success message, which might confuse people since in the other sections (from previous testing scenarios) there are notification messages after executing any action.
-Removing acommitte
After successfully removing a committee, there's no success message, which might confuse people since, in the other sections (from previous testing scenarios), there are notification messages after executing any action.
2. Unify KO/ error messages - (it's also mentioned in the https://github.com/MinaFoundation/PGT_govbot/issues/7) Please review if we could unify the structure of error messages because it might confuse users, especially since some of these errors don't show too many details for users to understand what happened

from @iluxonchik to @remigiusz-antczak  (via Discord)
I'll reply generally here since it's mentioned in several places. I will do what's feasible to unify the error messages, but it's not always possible. There are time limits to how much I have to edit messages, and I can only reply to user interactions. Also, not all of the forms are the same, so it's not always possible to render the error message on top. On the bottom, it's almost always possible. There is the options of deleting them, but then I need to store references to them.
Just to clarify: is sending error messages on the bottom acceptable?

On Discord:

so error and success messages on bottom are okay?

@iluxonchik

yes!

@CristinaEche

Yes, thank you! Whatever we can do to improve it within possible options is highly appreciated 🙇


text:
Request sending regular transactions

Develop an entrypoint for control graphql (introduced in #12811) to allow requesting node to send transactions to the network.
Here is the sketch of its interface:
mutation ($input: RegularPaymentsInput!) {
  scheduleRegularPayments(input: $input){
    handle
  }
}

mutation ($handle: String!) {
  stopRegularPayments(handle: $handle){
    status
  }
}

Where handle in return value is an unique identifier of the payment sending process represented by type String. It is returned by scheduleRegularPayments and can be used in stopRegularPayments. Mutation stopRegularPayments returns status which is a boolean, taking one of values:

false, if the process is already finished or has never started
true if the process was successfully stopped

Input type RegularPaymentsInput is represented by the following Ocaml type:
{ from : Private_key.t list
; to_ : Account.key
; amount : Currency.Amount.t
; fee : Currency.Fee.t
; memo : string option
; tps : float
; duration : Time.Span.t
}

Upon receiving the scheduleRegularPayments, Mina node starts generating tps transactions per second. Each transaction is added to the transaction pool and broadcasted to the network. Transactions are generated from keys specified in from field of the input type in round-robin fashion. After duration of time passed, process ends. ALternatively, process ends upon receiving the stopRegularPayments call.

Closed by #12876

source: gharchive/issue

authors: georgeee psteckler

repo: MinaProtocol/mina

license_type: permissive

license_source: github-api


text:
In-memory Logger.t collection

Sometimes (for example) you want to collect logs but don't want to bother printing them unless something unusual happens. Logger.t currently doesn't support this, but I don't think it'd be too  hard to add an in-memory transport.

This now exists and is used for the integration tests. Closing.


text:
Some folks are seeing 10-20sec long async cycles

These are on nodes that are actively serving requests via GraphQL. Talk to @bkase to get more details

Need to get more information on under what circumstances this is happening.  Possibly related to #7718.
Are they using best chain query alot?

From mnguyen-io on Discord:
I'm not sure what other queries @Dan Sosedoff was seeing this issue with,
but he did mention to me that he was running this and seeing problems: query status { version }
Both nodes are archive nodes if that helps any```

And from @Dan Sosedoff:
yea sorry for late response - but we were just running the regular version check queries,
and they were pretty slow sometimes.```

@psteckler  to try to get logs when this happens

authors: aneesharaines bkase psteckler


text:
Export legacy poseidon params for mina-signer

Companion of https://github.com/o1-labs/snarkyjs/pull/660
Supports legacy signatures by generating legacy Poseidon parameters from OCaml

!ci-build-me

!ci-build-me

!ci-build-me

!ci-build-me

source: gharchive/pull-request


text:
Update hardcoded genesis timestamp in alerts to 3.0.0 genesis timestamp

Set the hard coded genesis timestamp in mainnet alerts to 1717545600, which is 2024 June 05 00:00 UTC.

!ci-build-me


text:
Remove hardfork build & test from nightly

Hardfork build process need to be revised and improved until next hardfork. Till we resolve all pressing issues, I'm removing hardfork packages jobs in nightly

!ci-build-me

!ci-nightly-me

!ci-build-me

Nightly: https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/2391


text:
Disable update-branch-protection CI job while we transition to the new branch world

Checklist:

[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

Merging without review. @bkase and I discussed this; we need it to ensure that our branch protections stick once we start merging things.

Merging without review. @bkase and I discussed this; we need it to ensure that our branch protections stick once we start merging things.


text:
关于最新版本一个很严肃的错误

这个问题好像是pre-commit-hook导致的，它每次都自动把我 import 的顺序给改了……

authors: KafCoppelia myzeling

license: MIT


text:
resource deployment request

I would like the feature to hide and show the node to be implemented.
this feature will allow you to be able to present information to third parties in a controlled manner.
Thank you!

hi @jcmljunior,
can you better explain your request?
Would you like a feature to hide and show a node in the map?

Hi @cedoor,
Yes!

I do not know if you know the MindMeister, it has the feature I'm talking about.
Sorry for bad English.
for better information, access: https://www.mindmeister.com/

Hi @jcmljunior,
sorry if I answer you late. I know MindMeister but i don't use it. I tried it but I do not understand what the feature is. Can you share a screen, please?

authors: cedoor jcmljunior

repo: Mindmapp/mindmapp

license: mit

license_source: bigquery


text:
Add Crowdin support

This PR is somewhat untested. The GitHub Actions Workflows in particular are based on these examples and this video, but untested. I'll try and get round to testing them on my fork & using my test Crowdin project, but CI is always a pain to test. EDIT: done.
This will do nothing without setting up a Crowdin project, enabling "Allow GitHub Actions to create and approve pull requests", creating & adding a Crowdin personal access token with access to the Crowdin project. This is described in the gist I mentioned on discord.
One potential pitfall is allowing two-way translation sync. This could potentially result in repo changes clobbering Crowdin changes, if something is changed on crowdin, but then we also change something else in the repo and upload the result.
Best practice is probably to upload only the source (en_us.json), so that the translations are only ever modified by Crowdin. I thought it might be nice to allow translators to use GitHub if they prefer it to Crowdin, however this may be opening up a can of worms...
This can be avoided with upload_translations: false on all workflows.
Fixes #145

Status
I've tested and iterated on this over on my fork, using a test project on Crowdin.
Everything now seems to be working as intended.
I've added some user-facing documentation to the README.
Note on pre/post processor apps
The processor apps I asked you to install the other day will need to be uninstalled. I encountered a number of issues with them during testing, for example they caused all built translation files to be use the same name (zh-CN.json) and also ignore the languages mapping we configure.
Frustratingly it seems to take around 12 hours for removing the apps to actually affect how the project builds translations, since they seem to be cached aggressively.
Uninstalling them is kinda unintuitive too. You need to go to each on the marketplace, then:

Click "Install"
Select your account
Click "Uninstall"
Select "Freecam"

Before merging
You'll want to setup a few things in the github repo settings:

Allow GitHub Actions to create Pull Requests.

This is done at the bottom of Settings -> Actions -> General.

Add CROWDIN_PROJECT_ID to the repo's secrets.

The project ID is 639232.

Add CROWDIN_PERSONAL_TOKEN to the repo's secrets.

This needs to be generated in your Crowdin account settings, under API -> New Token (see Creating a Personal Access Token).
Name the token something like "Freecam GH Actions"
It should be granted the "project" scope and everything nested under "project".
Use "Granular access" and "Grant access to selected projects": It should only have access to the freecam project.
You shouldn't need a backup copy; if the token is ever lost a new one can be generated.

After merging
Now we'll need to initialize the Crowdin project by uploading what we have in the git repo:

Go to the repo's Actions page.
Manually run the "Crowdin (Upload Sources)" workflow
Manually run the "Crowdin (Upload Translations)" workflow

You can manually run a workflow by first clicking on the workflow in the side-bar, then using the "Run workflow" dropdown:

Crowdin PRs
Every 12 hours (as configured in crowdin-download-translations.yaml), the download workflow will build & download translations from Crowdin, then it'll commit any changes to the i18n/main branch and update/open a PR if there are any differences with main.
The PR will look like this.
Note on Crowdin branches
We all know about git branches, but it's worth highlighting that Crowdin also has its own "branch" concept (configured via crowdin_branch_name). This is essentially a top-level directory at the root of the crowdin project, allowing us to keep seperate "branches" of our translations.
This could prove useful should we need to maintain different translations for different freecam/minecraft versions.
Currently, the CI jobs are configured to only run on main, but other branches such as 1.19 could also be listed in future.

repo: MinecraftFreecam/Freecam


text:
Error Server Failure for Directory Links

Issue Description:
Upon inserting a GitHub repository link and clicking the "download" button, an error message is shown and the repository is not downloaded.
I tried using different repository links from various public GitHub projects and the error still persisted.
DownGit seems to work fine though for just individual files, but not directory links from public GitHub repositories.

Upon further testing, it seems the issue is caused by the specific folder I was testing as it possibly contains too many files for DownGit to handle or compress into a .zip file in a reasonable amount of time.  Thus I just get a loading animation and the file does not download.
However, if I refresh the page or try to download a different directory directly afterwards, I then get the Server Error message as if DownGit is still working on my previous download or something.
After a few hours I'm able to try again downloading a smaller directory and DownGit then works as expected and allows me to save the download to my computer.

repo: MinhasKamal/DownGit


text:
Problem with the image charge

loading 1 page of images but some just keep loading and nothing updates in some galleries it loads the images without problem but in others the wheel keeps spinning.
normally it works without problem

Yes, it seems to be a network issue,
because too many images are loaded at the same time.
I will find the time to fix it.

Hi @Mokkita ,
I made some changes to the viewer mode in the dev branch.
https://raw.githubusercontent.com/MinoLiu/Let-s-panda/dev/src/main.js
I will test it for a while.
If there is no bug, I will publish the enhancement.

Okay let me try it and let you know if I find any problems.

The main reason is that the image is stuck in the network.
This issue still exists and reducing the "threading" could reduce the issue.
This patch will read the pictures in order, and add the timeout for 10s,
which will normally reduce the problems you mentioned.

authors: MinoLiu Mokkita

repo: MinoLiu/Let-s-panda


text:
Levenstrein isEqualTo causing false positive

Tracks such as "audiobook 2-10" gets matched to "audiobook 2-1",
since the criterion for isEqualTo() is met by the "2-1" already.
The isEqualTo implemented Find() does not find the best match,
but the earliest found acceptable.

This turns out to be a much trickier problem than I initially thought. These are some of the problems I've encountered:

I tried using the filenames as additional conditions, but turns out some of the filenames make much differences to the original method.: 1.mp3
I tried to revert back to exact matches only, but some audiobooks had trouble in the way they were stored.

Each chapter of an audiobook is broken into several chapters.
Chapters are separated by directories.
So there are files like audiobook/Chapter3/1.mp3 and audiobook/Chapter4/1.mp3

So I added upper directory names for files with short filename.

iTunes Location attribute stores values in URL encodings and is prefixed with https:// or file://

I also figured out the soft matching algorithm shouldn't be included in the search directly, as it will always get the "First Match".
I have to run the search once first for the "Exact Match" first, and then run a soft matching or smth for the leftover "Unmatched" tracks.


text:
how to configure cri-dockerd with calico

We pursued an implementation of cri-dockerd in kubespray https://github.com/kubernetes-sigs/kubespray/pull/8623 , an ansible based kubernetes deployment tool.
In the linked PR we discovered that the cri-dockerd does not use the configured CNI resulting in incorrect pod addressing.
Failed CI runs:

https://github.com/kubernetes-sigs/kubespray/pull/8623/checks?check_run_id=5547765685
https://github.com/kubernetes-sigs/kubespray/pull/8623/checks?check_run_id=5547629216

The configured pod CIDR for the CI is 10.233.64.0/18 but the pods get IP addresses like 172.17.0.6 and 172.17.0.7 which are allocated from the default docker network.
I tried forcing the use of calico with setting the cri-dockerd command line like this:
ExecStart=/usr/local/bin/cri-dockerd --container-runtime-endpoint fd:// --cni-bin-dir=/opt/cni/bin --cni-cache-dir=/var/lib/cni --cni-conf-dir=/etc/cni/net.d --network-plugin=calico --pod-cidr=10.233.64.0/18

But I get the following error when starting cri-dockerd:
Mar 15 09:57:08 localhost cri-dockerd[48989]: time="2022-03-15T09:57:08Z" level=info msg="Using CNI configuration file /etc/cni/net.d/10-calico.conflist"
Mar 15 09:57:08 localhost cri-dockerd[48989]: time="2022-03-15T09:57:08Z" level=fatal msg="didn't find compatible CNI plugin with given settings &{HairpinMode:none NonMasqueradeCIDR:10.0.0.0/8 PluginName:calico PluginBinDirString:/opt/cni/bin PluginBinDirs:[/opt/cni/bin] PluginConfDir:/etc/cni/net.d PluginCacheDir:/var/lib/cni MTU:0}: network plugin \"calico\" not found"
Mar 15 09:57:08 localhost systemd[1]: cri-dockerd.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 09:57:08 localhost systemd[1]: cri-dockerd.service: Failed with result 'exit-code'.
Mar 15 09:57:08 localhost systemd[1]: Failed to start CRI Interface for Docker Application Container Engine.
Mar 15 09:57:10 localhost systemd[1]: cri-dockerd.service: Scheduled restart job, restart counter is at 3.
Mar 15 09:57:10 localhost systemd[1]: Stopped CRI Interface for Docker Application Container Engine.
Mar 15 09:57:10 localhost systemd[1]: cri-dockerd.service: Start request repeated too quickly.
Mar 15 09:57:10 localhost systemd[1]: cri-dockerd.service: Failed with result 'exit-code'.
Mar 15 09:57:10 localhost systemd[1]: Failed to start CRI Interface for Docker Application Container Engine.

The test CNI configuration:
(venv) root@instance-1:~/kubespray# ls -l /opt/cni/bin/
total 163508
-rwxr-xr-x 1 root root  3990548 Mar 15 09:42 bandwidth
-rwsr-xr-x 1 root root 47026188 Mar 15 09:42 calico
-rwsr-xr-x 1 root root 47026188 Mar 15 09:42 calico-ipam
-rwxr-xr-x 1 root root  3357992 Mar 15 09:42 flannel
-rwxr-xr-x 1 root root  3402808 Mar 15 09:42 host-local
-rwsr-xr-x 1 root root 47026188 Mar 15 09:42 install
-rwxr-xr-x 1 root root  3472123 Mar 15 09:42 loopback
-rwxr-xr-x 1 root root  3924908 Mar 15 09:42 portmap
-rw-r--r-- 1 root root  4555575 Mar 15 09:42 tags.txt
-rwxr-xr-x 1 root root  3622648 Mar 15 09:42 tuning
(venv) root@instance-1:~/kubespray# ls -l /etc/cni/net.d/
total 12
-rw-r--r-- 1 root root  709 Mar 15 09:42 10-calico.conflist
-rw-r--r-- 1 root root  715 Mar 15 09:42 calico.conflist.template
-rw------- 1 root root 2824 Mar 15 09:42 calico-kubeconfig
(venv) root@instance-1:~/kubespray# cat /etc/cni/net.d/10-calico.conflist
{
  "name": "cni0",
  "cniVersion":"0.3.1",
  "plugins":[
    {
      "datastore_type": "kubernetes",
      "nodename": "localhost",
      "type": "calico",
      "log_level": "info",
      "log_file_path": "/var/log/calico/cni/cni.log",
      "ipam": {
        "type": "calico-ipam",
        "assign_ipv4": "true",
        "ipv4_pools": ["10.233.64.0/18"]
      },
      "policy": {
        "type": "k8s"
      },
      "kubernetes": {
        "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
      }
    },
    {
      "type":"portmap",
      "capabilities": {
        "portMappings": true
      }
    },
    {
      "type":"bandwidth",
      "capabilities": {
        "bandwidth": true
      }
    }
  ]
}

I think I fixed this, the --network-plugin=calico should be --network-plugin=cni instead of the specific plugin.
Please document this in the README.md at least.

@cristicalin - thank you for your help.

authors: cristicalin zentavr

repo: Mirantis/cri-dockerd


text:
Kappa Update Now Raises Event Issues

Context

Scheduling events in S3 and SNS both raise warnings in the console. The events still appear to get created and work, but now a warning pops up in the console.
Expected Behavior

Events should be scheduled and unscheduled without errors.
Actual Behavior

Kappa seems to be raising an error. The error differs for different different event sources.
Possible Fix

Revert Kappa to 0.6.0 to silence the warnings. This likely just hides the issue. Zappa 0.35.1 has that kappa version.
Steps to Reproduce

Recent Zappa
zappa schedule stage

Your Environment

Zappa version used: Tried on 0.36.0 -> 0.37.1
Operating System and Python version: OSX 2.7.13
Link to your project (optional):
Your zappa_settings.py:

Perhaps related issue in scheduling s3 events:
From zappa update output:
Created s3:ObjectCreated:* event schedule for phishkit_parser.kit_event.phishkit_handler!

Which for my case now causes the following Exception to be raised when triggered by an s3:ObjectCreated:* event:
need more than 1 value to unpack: ValueError
Traceback (most recent call last):
File "/var/task/handler.py", line 499, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 233, in lambda_handler
return handler.handler(event, context)
File "/var/task/handler.py", line 392, in handler
app_function = self.import_module_and_get_function(whole_function)
File "/var/task/handler.py", line 223, in import_module_and_get_function
module, function = whole_function.rsplit('.', 1)
ValueError: need more than 1 value to unpack

After adding logging just before this line 223 in handler.py, I get the following output:
whole function is: phishkit-parser-dev

When inspecting my s3 event configuration, the event name now triggered on my s3 bucket is the following:
arn:aws:lambda:us-east-1:<ACCOUNT_NUMBER>:function:phishkit-parser-dev

Manually editing the event name to the following:
phishkit-parser-dev:phishkit_parser.kit_event.phishkit_handler

or more generally:
{{project_name}}-{{stage_name}}:{{events_function_name}}

resolves the issue for me, and my event handler is correctly triggered on a new event invocation.
Relevant zappa settings:
"events": [{
      "function": "phishkit_parser.kit_event.phishkit_handler",
      "event_source": {
        "arn": "MY_BUCKET_ARN",
        "events": [
          "s3:ObjectCreated:*"
        ]
      }
    }]

Using Zappa version 0.37.1

phishkit

Bruhhhhh

guess I could have sanitized everything :1st_place_medal:

Possibly fixed in 0.37.2, let me know if not and I'll reopen.

Can confirm this issue is resolved for me with 0.37.2. Great work! 🎉

Good luck with your phishing!

White-hat parsing only!

authors: Miserlou bdecotes-pl mcrowson

repo: Miserlou/Zappa


text:
LAAL YEEY

LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY
LAAL YEEY

Cool pull request, Gordon!

authors: Netdex ecnivo

repo: MishaLarionov/pybot


text:
Current Leader Board - "Delete" option on cards should not show when only 1 card

When there is just one leader card on the Current Leader section of the Leader board section of the site
The three dots and "delete" option should not be displayed.

suggest changing "delete" to "hide" so users don't think they are removing data from the database

i will note that in the live version (sorry was looking at staging) the 3 dots no longer appear, but the option to delete can still be clicked on even though there is no UI element visible.

actually i don't see the 3 dot ui even when there are multipe cards, but the delete option is still there if you know where the ui element should be

@dalekunce @bgirardot Yeah there should be a three dot element. It seems to be working when running locally so we need to look into why it's not showing up on the deployed version.

Looks like this might just be a bug with paths for the image files. Fixing.

authors: DylanMoriarty bgirardot dalekunce smit1678


text:
Cache Corruption

Seems that there exists an edge case where if the cache exists but is corrupted in some way (failure to write due to disk full or incorrect permissions), logins will fail to work.
Possible solutions are perhaps to verify the integrity of the data.
If the username and password are given then confirm that these values match the cached values?
See this stack overflow for how to append a checksum to the end of a pickle file to verify integrity: https://stackoverflow.com/questions/1653897/if-pickling-was-interrupted-will-unpickling-necessarily-always-fail-python

This seems like it would be easy to implement but one issue I'm seeing is the fact the cache template also contains a UUID in addition to the ID and PASSWORD. So if I'm understanding this right, you would have to confirm the hash of ID, PASSWORD and UUID match, but since UUID is uniquely generated, I don't think that would work?
Perhaps another solution:
https://stackoverflow.com/questions/33938173/verifying-file-integrity-with-python

Good point, however I do wonder if instead of appending a checksum to the pickle file if we just verify the username/password match what is in the cache and if not delete and regenerate the cache file. This might solve the issue too, since I think the issue was just the cache file being unreadable or only partially written.

Noticed this post in the stack overflow link you posted:

Contra the other answers offered, I believe that we can make a strong argument about the recoverability of a pickle. That answer is: "Yes, an incomplete pickle always leads to an exception."
Why are we able to do this? Because the "pickle" format is in fact a small stack-based language. In a stack-based language you write code that pushes item after item on a stack, then invoke an operator that does something with the data you've accumulated. And it just so happens that a pickle has to end with the command ".", which says: "take the item now at the bottom of the stack and return it as the value of this pickle." If your pickle is chopped off early, it will not end with this command, and you will get an EOF error.

If that's true, then it seems like we should just be able to call pickle.load within a try: statement then catch the exceptions UnpicklingErrorand EOFError.

repo: MisterWil/abodepy


text:
user-agent skybellpy/0.6.1... <response [403]>  User is not authorized to access this resource with an explicit deny

I'm lost as to what to do.  I have the latest Skybellpy evidently, but it's been days now since skybell has worked in HA.  I keep reading that others are back to normal after the update 18 days ago.  I'd appreciate any help because I'm stuck.
after running skybellpy with the flags --debug & --device and username and pass the same as they've always been.
I get several "login successful" messages, but then this error.

I upgraded HASS yesterday (which is usually when I notice issues unless something I use regularly actively stops working) and also ran into this issue. I'm concerned that Skybell is still actively blocking users from accessing its "internal" API even with the changes requested.
Last time @KishCom in a seemingly unofficial capacity let us know what was up. I wonder if he would be willing to chime in again?

Looking at it a little closer, it looks like the login is actually working just fine, as well as a handful of other endpoints. The issue is the endpoint to get the device info https://cloud.myskybell.com/api/v3/devices/{device}/info is returning the 403.

I appreciate your efforts here man.  Thank you for responding.  Should I close this then?

Nope, no additional blocking or changes that might cause this AFAIK. I'll ask around about that endpoint in particular on Monday.

Looks like it's working again, so it must have just been a random server-side issue that lasted for about 24 hours. Thanks for the reply @KishCom, I really appreciate you being willing to do so. I'm going to go ahead and close this for now.

Trying to configure home assistant with my skybell today and im getting this error it seems that searching older issues its similar to this error in this issue? Either way is there a possible fix for this or is it skybell's API that is having issues? I would try the debug flag but i'm not exactly sure how to go about that.

Trying to configure home assistant with my skybell today and im getting this error it seems that searching older issues its similar to this error in this issue? Either way is there a possible fix for this or is it skybell's API that is having issues? I would try the debug flag but i'm not exactly sure how to go about that.

authors: Double-Shindo KishCom MisterWil ilikestohack

repo: MisterWil/skybellpy


text:
hook not working with emacs

i feel like i must be doing something wrong here, but i can't figure out what. i have a custom template i made that injects itself into an autothemer theme file. that part works perfectly, and emacs has no issues with the generated theme.
the problem is that the hook just... isn't working. here's its whole section in the config.toml file:
[[items]]
file = "~/.config/emacs/flavours-theme.el"
template = "emacs"
subtemplate = "custom"
start = ";; Start Flavours"
end = ";; End Flavours"
hook = "emacsclient -e '(my/load-theme)'"

i was having some minor problems with the emacs daemon having trouble starting yesterday, but it seems fine now. the thing that's tripping me up about this is that the same exact command works fine when i execute it manually in a terminal. and if i put a different command there - for example, to open a new terminal - it too does its job! i've also tried changing the shell to bash and even zsh - nothing.
i used to use pywal/wgptk, with a wrapper to execute a custom script afterwards. the same command was in there (i actually created the function for that purpose) and i had no problems with it, so i really don't get what's going wrong here.

There is probably some problem with multiple nesting levels of quotes. Single quotes don't work either for me, but escaped double quotes do:
hook = "emacsclient --eval \"(base16-set-theme)\""

(I had the same symptoms with base16-universal-manager, but there the solution was to completely remove the quotes.)

authors: auralluring elfehr


text:
🛑 Mailserver is down

In 0e17be5, Mailserver (https://outlook.office.com) was down:

HTTP code: 417
Response time: 149 ms

Resolved: Mailserver is back up in 9c1b4a2 after 38 minutes.


text:
Styles on Safari iOS are broken on some pages

Eg: https://phenomic.io/docs/setup/ from my iPhone: styles broken.
If I go to homepage, refresh, styles are ok. I navigate to this page, styles are still ok since client side browsing is enabled. Need to investigate.
I have homepage on 0.11 and setup page with 0.10.2. That's the weird part. Not sure how to make a full refresh on Safari iOS.

Maybe related to appcache or sw.

It's ok on my android phone with chrome. Maybe you can wait a little longer to leave time for appcache to be updated and than refresh the page

It's ok on my iPhone

I checked with Safari debugger

Did not parse stylesheet at 'https://phenomic.io/phenomic-client.fddce1fe23979242a9c5.css' because non CSS MIME types are not allowed in strict mode.

Continuing my investigation.

Ok, https://phenomic.io/phenomic-client.fddce1fe23979242a9c5.css is now a 404, and the html page has been cached (probably because of appcache). Refreshing and waiting (and refreshing) does not help.

Ok, https://phenomic.io/phenomic-client.fddce1fe23979242a9c5.css is now a 404

It is a 404. new url is https://phenomic.io/phenomic-client.6d29c921b25166eeede0.css
FYI, I turned off appcache, it's so annoying.

That's what I said.
Appcache is just broken. I can't find a fucking way to update the page. I guess I will have to have a js update or something.

Try to deploy a new version with appcache disabled. Appcache will goes away on second reload.

If I do that, I assume that appcache is so broken and will disable it by default with "offline": true.

It's fine to me. Disable it.

Appcache is shit. We need to handle #277, there is probably a similar thing to do for SW?

authors: MoOx magsout thangngoc89

repo: MoOx/phenomic


text:
Add Zenika home page in the Showcase

Hi, I wanted to suggest zenika.com for the Showcase as it's realized with Phenomic now!
After using a home made build process using React & pre-rendering we migrate to Phenomic and it works like a charm. Thanks for this great tool.
Unfortunately, the source is closed but we didn't do much complex things apart using the existing Redux and integrate i18next. If anyone need tips on i18next, I'll be happy to share.

Gorgeous! Nice work. Will be on the website probably tonight ;)

authors: MoOx Swiip


text:
@import should work with relative paths

Tested with gulp-cssnext, I noticed that @import rules don't work if the path is being relative to the .css file. Given the following structure
.
├── css
│   ├── import.css
│   └── sub-folder
│       ├── import-abs.css
│       └── import-rel.css
├── gulpfile.js
├── out
│   └── import-abs.css
└── package.json

With import-abs.css having
@import "css/import.css";

And import-rel.css having
@import "../import.css";

And the gulpfile.js having this
var gulp = require("gulp");
var cssnext = require("gulp-cssnext")

gulp.task("css:relative", function() {
  gulp.src("css/sub-folder/import-rel.css")
    .pipe(cssnext({
        compress : true
    }))
    .pipe(gulp.dest("./out"))
});

gulp.task("css:absolute", function() {
  gulp.src("css/sub-folder/import-abs.css")
    .pipe(cssnext({
        compress : true
    }))
    .pipe(gulp.dest("./out"))
});

Then, gulp css:relative returns
[11:59:29] Using gulpfile ~/Desktop/cssnext-import-bug/gulpfile.js
[11:59:29] Starting 'css:relative'...
[11:59:29] Finished 'css:relative' after 16 ms
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: undefined1:1: Failed to find ../import.css
    in [
        /Users/Damien/Desktop/cssnext-import-bug
    ]
    at resolveFilename (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss-import/index.js:133:11)
    at readAtImport (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss-import/index.js:82:26)
    at checkAtRule (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss-import/index.js:61:5)
    at /Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:374:30
    at /Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:110:26
    at Root.Container.each (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:88:20)
    at Root.Container.eachInside (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:109:21)
    at Root.Container.WithRules.constructor$0.eachAtRule (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:372:21)
    at parseStyles (/Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss-import/index.js:56:10)
    at /Users/Damien/Desktop/cssnext-import-bug/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss-import/index.js:45:5

And of course gulp css:absolute works like expected
[11:59:54] Using gulpfile ~/Desktop/cssnext-import-bug/gulpfile.js
[11:59:54] Starting 'css:absolute'...
[11:59:54] Finished 'css:absolute' after 14 ms

:tada:

The 'note' referred to above seems to have gone from the README. (I'm having trouble with grunt-cssnext, where it seems to change the paths in my css so they're wrong - not sure if the above pertains to my issue or not).

@davidmaxwaterman gulp-cssnext has been deprecated. Please checkout how to migrate http://cssnext.io/postcss/ (and for you problem, just skip postcss-url).

For the record, my issue was not about migration (I am just adopting postcss-cssnext into this project). My mistake was requir()ing 'cssnext' instead of 'postcss-cssnext' - once I corrected that, the paths remained unchanged through the postcss-cssnext 'processor'.

authors: MoOx davidmaxwaterman eramdam

repo: MoOx/postcss-cssnext


text:
Connects to #135. QC Data Monitor migration from ShinyApp.

Technical Notes:

In this initial version of the migration, the data source are static JSON files derived from the pipeline-generated .txt files.
The JSON data files are, for now, embedded in the app rather than making them publicly accessible via Google Drive or GCS bucket.
In the attempt to mirror ShinyApp's functionalities, there are further UI modifications given the feedback received upon reviews and testing.

Steps to test:

Sign into the data hub portal
In the sidebar, click on the QC Data Monitor button link and expect the PASS1B tissue submission "grid/heatmap" to be shown.
Click through the phase tabs (e.g. PASS1A/1C, Human) and expect to see respective grids representing the phases.
Now click on the Metabolomics button in the upper-right and expect to see the sample data table to be shown.
Verify the sorting, filtering, paging, and navigating functionalities against the data in the table.
Repeat the above step for other data tables (Proteomics, RNA-seq, etc.).
Now logout and sign in again as a registered external user.
Upon signing in, expect to see the QC Data Monitor button link disabled in the sidebar.

@cteng585 In the interest of time, I would appreciate it if you can review this PR today. Thank you.

All of the functionality that I tested worked. I did notice that there didn't appear to be a consistent way in which the search results were sorted when browsing through the omics tables (metabolomics, proteomics, etc), but I'm not sure how relevant this is. Also, logging out from the portal didn't work as expected, but I'm not sure if this is because it's a demo or if the auth service is actually broken.

I would also note that there isn't a color code for a sample that has both PASS1A and PASS1C in the phase column (this entry can be found in the Metabolomics tab if you search PASS1A-06|PASS1C-06.
Other than that, everything looks great.

@cteng585 Thanks for testing and reporting the issues you came across. The logout behavior is pertinent to the demo instance. For the other 2 observations, please create new GitHub issues for further investigation.

repo: MoTrPAC/motrpac-frontend


text:
First character in Event Description Field comes in Lower Case

Describe the bug
When entering a new event in MF with Caps Lock on, the first letter comes out in lower case.
Steps To Reproduce
Steps to reproduce the behavior:

Go to the bottom of MF main list view
Have your keyboard with Caps Lock on.
Single click on the last line to add a new event (I know it says to double click, but the same occurs with an existing config)
Begin typing the name of the config... for example BATTERY MASTER ON
Note that the first letter is in lower case for no apparent reason.

Expected behavior
Caps lock is on, so all letters should be entered as upper case.
Actual behavior
The first letter comes up as lower case wit the rest of the text in upper case.
Details

MobiFlight Version: 9.3.0
FlightSim: irrelevant
AddOn: irrelevant

Additional context
The issue happens only when entering the description without having double clicked first and with Caps lock on.

That's crazy! You're right, it only happens if you single click on the row first and have caps lock on. If you double click on the row the problem doesn't happen.

i don't recall that i am doing anything special - this must be default behavior of the control. I plan to replace it soon anyways. It's the last control that prevents me from having proper high dpi support.

i don't recall that i am doing anything special - this must be default behavior of the control. I plan to replace it soon anyways. It's the last control that prevents me from having proper high dpi support.

That was my thought too @DocMoebiuz but it turns out you were doing something special. I opened a PR to fix it, easy fix.

it's funny when i saw it - Obviously i had noticed this already and only had implemented the Shift case but not Caps Lock

authors: DocMoebiuz JaimeLeon2 neilenns

repo: MobiFlight/MobiFlight-Connector


text:
SonarQube integrations

Is there a possibility to integrate this tool with SonarQube ?

Hi, I found someone's solution https://github.com/nacho4d/XCLogParser2Sonar/tree/main
but it would be great if XCLogParser would add new reporter sonarqube that would generate output in sonarqube format: https://docs.sonarsource.com/sonarqube/9.9/analyzing-source-code/importing-external-issues/generic-issue-import-format/

repo: MobileNativeFoundation/XCLogParser


text:
Feature Request: Ability to configure what generated file types get pulled into the project

As a rules_ios user I've noticed that some generated files that are an implementation detail of rules_ios are being pulled into Xcode. I'd appreciate the ability to filter those out.
When generating a project, I noticed some performance issues while editing code in a big codebase with many rules_ios frameworks and filtering out unneeded file types has improved the experience for me.
As an example, run this from this repo's root:
cd examples/rules_ios
bazel run //:xcodeproj-incremental

and note how you can cmd+shift+o and find *_vfs.yaml or *.extended.modulemap files:

We could introduce a global setting here that allows consumers to configure this (say by specifying which generated files .extension types are allowed/not allowed to be processed). That could be a feature consumers are supposed to set in their rc files or a setting specified at the xcodeproj macro level? For example:
xcodeproj(
  ...
  allowed_generated_file_extensions = [".h", ".m"],
  # or
  exclude_generated_file_extensions = [".yaml", ".modulemap"],
)

Thoughts? cc @brentleyjones.

Alternatively we can simply not process any generated file here.

Perhaps a combination of both in which some generated files are automatically not processed and also ability to specify additional file types?

Perhaps a combination of both in which some generated files are automatically not processed and also ability to specify additional file types?

@dnkoutso one thing @brentleyjones and I are considering is to use .is_source and avoid over collecting here. The problem is that that would also stop collecting potentially desirable .h files (say generated headers consumers do want to see in Xcode).
So one idea I'm proposing is to not collect any generated file by default, but allow consumers to set a flag at the xcodeproj macro level that "allows generated headers". I think trying to handle file types more generically is probably a feature nobody wants atm since this code path is about headers processing, hence my suggestion to focus on headers collection configuration only.
But, open for suggestions here, I'm trying to keep this small so we don't try to cover more use cases than needed here until there's a real need. Does that make sense?

Perhaps a combination of both in which some generated files are automatically not processed and also ability to specify additional file types?

@dnkoutso We're considering to stop processing generated files and effectively stop over collecting here instead of trying to come up with a way to expose something configurable to users.
This is a lot simpler than what I suggested and we can ensure that generated source files continue to be collected somewhere else. We'll keep this issue updated.

For future reference, this branch illustrates my use case btw: https://github.com/MobileNativeFoundation/rules_xcodeproj/compare/thiago/generated-file-extensions
cd examples/rules_ios
bazel run //:xcodeproj-incremental

My intent is to continue to allow such a project to index *.pbobjc.m and *.pbobjc.h files since those are relevant to developers and they might want to cmd+shift+o these and inspect APIs and types. But, most other files rules_ios generates (including but not limited to some .h files) are implementation details and not necessary in Xcode.

I think #3017 addresses this.

I think #3017 addresses this.

It does, thank you!

authors: brentleyjones dnkoutso thiagohmcruz


text:
YAML support, major API changes, custom reporters

Allows the specification of createSystem arguments in the opt dictionary. This also changes the default specification of createSystem() arguments to be in standard openMM units where applicable. This will affect things such as the old example.py scripts, which used a default of 10(*unit.angstroms). The default in the new scripts is 1(*unit.nanometers).
In addition this PR includes some of the following fixes/cleanup/additions:

Makes the nIter argument in Simulation.run() explicit.
Exposes most arguments for system setup in SimulationFactory.
Updates the CombinationMove class with the afterMove, beforeMove etc functionality (it was left out after these were introduced).
Changes how the nstepsNC functions with nprop/prop_lambda. Before this caused the number of actual propagation steps to be greater than the nstepsNC. Now specifying the nstepsNC argument will specify the number of propagation steps used instead.
In addition this PR fixes a case where the 'nIter' in the opt dictionary isn't necessary carried forward to the run function, which isn't intuitive.
Cleans up various Class/method arguments.
Cleans up blues.utils and adds to it a spreadLambdaProtocol function which can help in creating a custom BLUES compatible lambda switching schedule (using OpenMM's tabulated functions).

Ready for review on this? Should we ask Nathan?

Let me sort out the build fails and I'll check to see if Nathan can review sometime after that.

@nathanmlim When you have a moment can you review this PR? It's not a super high priority, so no rush.

@sgill2 do you need more review on this?

@davidlmobley I'm working through this still, along with other changes.

@sgill2

Should we remove the old example script now that we've restructured the inputs/setup to use yaml? Plus you have other yaml examples included in the PR too.

Yes, the old example scripts and other extra yaml files laying around will be cleaned up before merging.

For my own understanding, could you elaborate on the use case differences between NetCDF and HDF5? For example, when would you use one over another?

The NetCDF reporter is still using the NetCDF3 data structure internally but this is what AMBER uses and the motivation for using the NetCDF reporter instead of the HDF5 reporter is for visualization compatibility. As of now, nothing supports visualizing the HDF5 file format from MDTraj. So using the HDF5 reporter will require an extra conversion step if you want to visualize the trajectories. I added functionality to the NetCDF reporter from parmed so that we can store additional information like the protocolWork and alchemicalLambda step.

I don't know why this didn't occur to me way earlier, but it'd be handy to have an explicit method to get the md and ncmc simulations attached to the BLUES Simulation. That way if someone wants to do something related to those things, like add another reporter, it'd be straightforward to access and change without knowing the object's attributes.

The SimulationFactory class accepts a list of reporters for adding to either the MD or NCMC simulation. Basically any modifications to either the Simulations or the Systems should take place on the XXXFactory objects. Once these have been passed to the Simulation class, we don't want to provide the ability to modify at this level as it can run the risk of the simulations falling out of sync.

This PR makes significant changes to the core API and feature additions:

BLUES will now support partial configuration from a YAML file

Supported settings: Input/output, system parameters, simulation parameters, freezing/restraining atoms, and configuring reporters
To be implemented in a future PR: Configuration/selection of a NCMC move type
Parsing and checking the YAML configuration is handled in the settings.py module
Settings class

Addition of SystemFactory class

Provides methods for generating the openmm.System and the alchemical System
Provides methods for freezing or restraining atoms in your system

Addition of SimulationFactory

Provides functions for generating the integrators for the MD or NCMC simulation from a parmed.Structure
Allows addition of a MonteCarloBarostate to your System, enabling NPT simulations
Provides a method for attaching reporters to the MD or NCMC simulation

Changes to the Simulation class

Name change to BLUESSimulation and remove monte carlo related methods.
Monte carlo related methods are now in a separate class MonteCarloSimulation
Many functions are renamed to be more clear with their purpose.
Removed some unused variables
Add method for evaluating the total simulation time/force evaluations from the given simulation settings

Addition of reporters.py module

Addition of ReporterConfig class, provides functionality for generating/configuring a some recommended/customized reporters for BLUES simulations:

BLUESHDF5Reporter subclass from mdtraj.HDF5Reporter

Custom features include:

specifying the indices of frames to be recorded,
protocolWork/alchemicalLambda from the NCMC simulation
simulation parameters
exporting your conda environment

BLUESStateDataReporter subclass from openmm.app.StateDataReporter

Custom features include:

title field to set the string prefix that is printed with each report line.
enable writing to a file or file-like object for streaming the data (logging.Logger) to the terminal window,
specifying the indices of frames to be recorded
currentIter/protocolWork/alchemicalLambda from the NCMC simulation

NetCDF4Reporter subclass from parmed.openmm.reporters.NetCDFReporter

Custom features includes:

Add ability to properly flush the data to disc on call to report()
specifying the indices of frames to be recorded
protocolWork/alchemicalLambda from the NCMC simulation

parmed.openmm.reporters.RestartReporter, enabling restarts from the rst7 file

Ooh, tests are passing!?!?
Should we ask @sukanyasasmal if she can review, in lieu of Sam? I believe Sam is already on board with a lot of the general concepts?

@dmobley @sukanyasasmal and if possible @sgill2: This is ready for a close review, https://github.com/MobleyLab/blues/pull/117
This point needs a very close look at the logic: https://github.com/MobleyLab/blues/blob/5e0ddeb4015a9f973c695e9f4b4b5b763874c2e2/blues/simulation.py#L829
It’s equivalent before was: https://github.com/MobleyLab/blues/blob/master/blues/simulation.py#L295
The logic on the master branch goes as follows.

Get the state of the MD/NCMC simulation before the move.
Set the NCMC simulation positions/velocities from the current MD state.
Store the MD state to md_state0 and Store the NCMC state (which now has positions/velocities from the MD state) to ncmc_state0
SimulateNCMC, do move, store NCMC state (post-move) to ncmc_state1
**5) Calculate the alchemical correction term from potential energies:
ncmc_state0 - md_state0 + alchemical_term - ncmc_state1 **

This is how I have it implemented on my PR (as to try to not change/break anything?). But it seems like we should be storing the state of the NCMC simulation (the variable ncmc_state0) before it has been synced from the MD simulation?

@davidlmobley Address @sukanyasasmal comments and added missing documentation. I'll add an empty review that approves the changes to merge these to master.

Merging.

authors: davidlmobley nathanmlim sgill2

repo: MobleyLab/blues


text:
Implemented BlockDataMock::getAsString(boolean)

Description
In my code I was using the getAsString(true) method of BlockData. So, implementing it here.
Checklist
The following items should be checked before the pull request can be merged.

[x] Code follows existing style.
[x] Unit tests added (if applicable).

Hi,
Because of the modifications I made in here, the following tests start to fail:
    AmethystClusterMockTest. getAsString()
    BedMockTest. getAsString()
    CampfireMockTest. getAsString()
    SlabMockTest. getAsString()
    SwitchMockTest. getAsString()
    WallSignMockTest. getAsString()

But as far as I can see, my implementation is more correct than before.
Could you please double check?
If you agree with me, I'll adjust the tests mentioned above to call getAsString(true) instead.

Could you please double check?

Best way for these issues (whenever the implementation seems too complex to just imitate) is to test how this works on a real instance. So simply just make a test plugin for a real paper instance (latest version) and then compare the real and the mock behavior. Alternatively you can of course just look at the paper source code, but I have a feeling that it's going to be complicated, as we're talking about serialization.

I fooled a bit around and got this:
https://github.com/AvarionMC/dump_materials/releases/latest/download/material_data.json
Fully automated material generator :-). I can integrate this into MockBukkit? Or you can copy it in your own repos (I can transfer ownership)?

I fooled a bit around and got this:

Good that you got a test plugin up and running, I don't see any need to have this in the mockbukkit repo, but it is still good to have as comparison for this pull request.

FYI:
java.lang.IllegalArgumentException: Could not parse data: minecraft:chest[waterlogged=true,bumba=ABC]
Caused by: com.mojang.brigadier.exceptions.CommandSyntaxException: Block minecraft:chest does not have property 'bumba' at position 33: ...gged=true,<--[HERE]

==> So this means that paper can't understand invalid properties. (Good that I coded them in already 😁)

FYI:
[20:51:12 INFO]: [MaterialLogger] Material: minecraft:diamond
[20:51:12 ERROR]: [MaterialLogger]  --> cannot create block data!
[20:51:12 INFO]: [MaterialLogger] Material: minecraft:diamond_axe
[20:51:12 ERROR]: [MaterialLogger]  --> cannot create block data!
[20:51:12 INFO]: [MaterialLogger] Material: minecraft:diamond_block
[20:51:12 INFO]: [MaterialLogger] false|minecraft:diamond_block
[20:51:12 INFO]: [MaterialLogger] true|minecraft:diamond_block
[20:51:12 INFO]: [MaterialLogger] Material: minecraft:diamond_boots
[20:51:12 ERROR]: [MaterialLogger]  --> cannot create block data!

So, from some materials, you can't create blocks.
However, that's where I'm stuck at atm:
	{
		MaterialData materialData = new MaterialData(Material.DIAMOND);
		endermanMock.setCarriedMaterial(materialData);

		assertEquals(materialData, endermanMock.getCarriedMaterial());
	}

Here a MaterialData is created. Which underneath creates: carriedBlock = BlockDataMock.mock(material.getItemType());
However, we can't create this... (see above: we can't create a diamond blockdata even in pure paper.)
But for example an enderman can drop enderpearls. But that's not a valid material to create a block from...
I'd like some guidance for this.
(and I'll push my changes for now so you can already verify what I changed).

So, from some materials, you can't create blocks.

That's true, there's a method Material#isBlock() which you can use to determine this in mockbukkit. I hope that helps

@Thorinwasher : This PR is ready (enough) for review :)

authors: Thorinwasher svaningelgem

repo: MockBukkit/MockBukkit


text:
"fa_build" appears to be not thread-safe

Given the same input models (with parameter "-s" and "-t"), the executable "fa_build" produces the files "forward.fam" and "backward.fam" that change every time the command is invocated.
The only way to make "fa_build" generate the same ".fam" files is to set the optional parameter '-n' to  1, i.e. set the number of thread to 1 (== no multi-threading).
Any other setting (li.e. leaving number of thread not specified or setting -n to a number > 1) appears to produce different ".fam" files.
Since in the training pipeline "fa_build" is used with the -n parameter unspecified, this implies that  the models generates by two invocations of "mmt create" on the same data differ.
This issue has been verified on both v0.13 and v0.14-alpha releases.

Hi @cattoni !
Can you and @nicolabertoldi work on this? It's low priority because this bug does not lower the quality significantly.
Davide

fastalign is actually thread-safe, in the sense it produces always and exactly the same alignments, although the binary models estimated during training differ.
No further investigation was done to understand why the binary models differ, because this difference does not impact on the performance.

authors: cattoni davidecaroselli nicolabertoldi

repo: ModernMT/MMT


text:
How can I disable sourcemaps?

Trying to build with babel in jspm, with sourcemaps disabled. In my config.js:
System.config({
  "transpiler": "babel",
  "babelOptions": {
    "sourceMaps": false
  }
});

But, es6-module-loader seems to be overwriting my options.

There was a previous discussion around this in https://github.com/systemjs/systemjs/issues/295.

The issue is that the options I provide in "babelOptions" are being overriden, which is unexpected (it looks like the options for the other transpilers do the same). I can understand having "default" options for certain things if an option is not specified, but I don't think it makes sense for options that are explicitly provided by the developer to be overridden.

As discussed in the thread you mentioned, System.sourceMaps = false would be a nice way to set the default behavior, but the options that are passed into "babelOptions/traceurOptions" should take priority.

Why would you want to disable source maps? For performance? Surely you need debugging though?

Added in 0.17.4.

authors: guybedford speigg


text:
[FEATURE] Max hitpoints option

Currently the options for token hitpoints are rolled or average
I would like to see the option for maximum hitpoints as well, my group are powergamers and I typically run with max hitpoints and modifying it for a group of mooks is a pain.

I wanted the same thing so hacked it into my install of token-mold. Line 308 of token-mold.js now reads:
r.evaluate({maximize: true}); /* max hit points -svs */
I would be happy to contribute with a pull-request for a proper implementation if that's useful.

I wanted the same thing so hacked it into my install of token-mold. Line 308 of token-mold.js now reads:
r.evaluate({maximize: true}); /* max hit points -svs */
I would be happy to contribute with a pull-request for a proper implementation if that's useful.

authors: mark-drury sargeant

repo: Moerill/token-mold


text:
resolves #58 check that Opal is not already defined on the global object

resolves #58

I think we should probably check if Opal is defined on the global object in the index.js:
https://github.com/Mogztter/asciidoctor-opal-node-runtime/blob/9bfa3f516220ee9894444a9cdb25d8a99f305271/src/index.js#L1-L7
That would also avoid a pesky warning message that does really apply in a Node context.

I gave it more thought and I think we should warn when we know that the Opal versions are incompatible (e.g., Opal 0.11 vs Opal 1+)

repo: Mogztter/asciidoctor-opal-node-runtime


text:
Add new features

Make support styling css in
....
support this way

Hi,
Hopefully this feature will be available

authors: MohamedRejeb the-best-is-best

repo: MohamedRejeb/Compose-Rich-Editor


text:
Command-line interface

A basic command line interface would be helpful. They would be very simple wrappers around get_basis_set and get_references
My current thought is a main command bse with subcommands:
bse get_basis cc-pvtz --elements=24 --format=nwchem (look up by Z)
bse get_basis 6-31G --elements H,C,O --format=nwchem (allow for element symbols)
bse get_references --format=bib
Some other thoughts:

Maybe don't need the dash options? There would be no overlap between them
(ie, bse get_basis 6-31G H,C,O nwchem).

I assume there would be a "help" option in case someone forgot the syntax?  If so, then I guess the dashes probably aren't needed.  (I tend to lean toward leaving them in since then it is clear what fields the user has to provide, but with a help option, that would also make it clear.)

authors: bennybp twindus


text:
fix: updated to add a tag message for the initial git tag

This PR fixes a bug wherein a message must be added if a user sets up git to GPG sign tags, doing so requires that every tag have a message. Without this, the installation will hang.

Didn't realize that was an issue. Thanks for the PR!

authors: Lnaden ethanholz

repo: MolSSI/cookiecutter-cms


text:
Vacunas

Se ha creado la rama y el archivo con la pantalla vacunas

@Nataliafm1 no hace falta que menciones la creación de la rama de git en el commit, sin la rama no podrías subir cambios ni hacer nada, está implicito.

TIME!! 🥲


text:
Allow use logback-access with logback-gelf

Hello,
I'm trying to use logback-gelf with logback-access [ jetty ] to send compressed gelf message to logstash server on UDP port.
I was looking a way to configure this but appears to be not possible.
Do you have in mind implement this in a short period?
Thanks

Hey, sorry for the extremely late reply on this. I haven't used logback-access before, but from what I've read, there's not reason it shouldn't work. logback-access uses appenders/encoders in exactly the same way as the normal logback.xml, so you should in theory by able to provide the exact same configuration a you would for normal application logging.
What went wrong when you tried it?

Hi @Moocar ,
Logback access only supports layouts that implement of IAccessEvent (ie ch.qos.logback.access.PatternLayout).
me.moocar.logbackgelf.GelfLayout and me.moocar.logbackgelf.GZIPEncoder implement ILoggingEvent, so they can't be used as logback-access layouts.
From logback manual: http://logback.qos.ch/access.html#configuration
Although similar, the format of logback-access.xml configuration file is slightly different than the configuration file format logback-classic. Appenders and Layouts are declared the exact same way. However, in the access module there is no notion of loggers and consequently logger elements are disallowed.
PatternLayout: http://logback.qos.ch/manual/layouts.html#AccessPatternLayout
Logback-access ships with an http-specific implementation of PatternLayout.
Regards

Hello @Moocar did you see my last comment?

Hello, i've adapted the GelfLayout to work with logback access-log.

authors: Moocar elendrim luisdalves

repo: Moocar/logback-gelf


text:
Profile feature

Integrate user data
Create profile page which can be reached from explore page and post detail pages

In correct target merging branch

repo: MorganCY/Quotely


text:
This ⸻ unicode ⸻ character ⸻ makes ⸻ weird ⸻ things ⸻ happen

https://github.com/redox-os/ion/issues/293

I'm investigating this.
My first step was to add a special case for this character when getting string widths.
That hasn't seemed to have solved the problem though, and in fact my terminal emulator itself (konsole) is acting wonky trying to display this!

repo: MovingtoMars/liner


text:
Send only a String value as a parameter

I have an API function which accepts only a string as a parameter. So I can't send parameters as [String: Any]? dictionary. Currently I am using Alamofire as below to  send only a string to the API.
        Alamofire.request(endPoint, method: .post, parameters: [:], encoding: param, headers: headers).response { response in

            print("Request: \(String(describing: response.request))")
            print("Response: \(String(describing: response.response))")
            print("Error: \(String(describing: response.error))")

            if let nonce = response.response?.allHeaderFields["nonce"] as? String {

                self.nonce = nonce
            }

            if let data = response.data, let utf8Text = String(data: data, encoding: .utf8) {

                let data = ("\(utf8Text)")
                completion(data)
            }
        }

I have to do this using Moya now. But I can't figure out how to do this. I've tried it like below
let endpointClosure = { (target: NetworkService) -> Endpoint<NetworkService> in
            return Endpoint<NetworkService>(url: "sampleUrl", sampleResponseClosure: {.networkResponse(200, target.sampleData)}, method: target.method, parameters: [:], parameterEncoding: param, httpHeaderFields: headers)
        }

But this is not working. Could I know how to pass only a string value using Moya.

Hi @uditha2233! Can you show some more of your code? For example your endPoint, param and headers parameters.
Other than that, a parameter should always be a key-value pair. Can you give us an example URL of what you are trying to achieve?

Hi @BasThomas The endpoint is the url of the API function and the param is just a string value.
param =  encriptedKey + "." + encriptedData. And the headers are like below
  let headers: HTTPHeaders = [
            "nonce": iv,
            "alg": "2"
        ]

I need to send this param string to the API. But I can't send this param as a key-value pair because the API function doesn't accept any key-value pairs. It needs only a single string value.
So my requirement is to send a value to the API without a key. Sorry for my bad English. But I hope you understand my question.

Hey @uditha2233, apologies for the inactivity here. If you're still using that design on your server, you'll probably want to implement an endpointClosure and add your string in there
Let us know if we can help in any other way 😄

Hi @AndrewSB , I have solved my issue. Thanks for your support. :)

authors: AndrewSB BasThomas uditha2233

repo: Moya/Moya


text:
Extra headers are being included

Moya Version: 14.0
I am adding headers like this but in result I am getting something else.
*return ["Content-Type":"application/json",
                "SECRET-KEY":SECRET_KEY,
                "SECRET-TOKEN":SECRET_TOKEN]*

here is the output of header.
Moya_Logger: [10/04/2020, 10:56 PM] Request Headers: ["User-Agent": "Millennium/1.0 (com.Nomi.app; build:1; iOS 13.4.0) Alamofire/5.1.0", "Content-Type": "application/json", "SECRET-TOKEN": "9I6pAyoO1mcJrtUcAvbq3kQzA2Jx9JvbsJwqwEaZzJujxQ=", "Accept-Encoding": "br;q=1.0, gzip;q=0.9, deflate;q=0.8", "Accept-Language": "en-PK;q=1.0", "SECRET-KEY": "9I6pAyoO1mvbq3kQzA2Jx9Jr"]

Hey @nomimalik92, this is actually what was always sent in a request - in addition to your custom headers there are also session headers added by Alamofire. We just didn’t add these in the Logger plugin output in previous versions, but in version 14 we made it so you can actually see everything that we send.


text:
Add support for ACF - Local JSON

Would it be possible to add support for the Advanced Custom Fields, Local JSON option? ACF is highly used by theme developers and this (pro) option is a must have. It dramatically speeds up ACF and allows for version control over the custom fields.
https://www.advancedcustomfields.com/resources/local-json/
Normally you would just create a directory acf-json in your current theme, where all the fields are saved in JSON format (and updated by every change). This is in this case not very easy, because it should then be in the current 'build' theme...
Any suggestions?

Okay, thinking about how this could be done.. it is a tad bit tricky, but should be possible.. main thing would be to create it in the most "elegant" and re-usable way. Will try working on it when I have time. please, let me know if you have any ideas as well :)

I wasn't sure about the best option yet; the only idea I had at the moment was changing directories through: acf/settings/save_json and acf/settings/load_json, so it is inside the theme folder. And then in the build theme, just do it in main folder.
But that will be quite a hacky solution maybe..

@Maximilianos I 'fixed' this in my fork, but I was wondering about your ideal approach. If you agree with this method; I can create a pull request. In development mode, I change the location to the dev theme where they are saved in the acf-json folder. On build this acf-json folder is moved to the production theme and Advanced Custom Fields Pro can read it automatically.
The only thing I need to fix is to know the name of the dev theme. Do you have any suggestions how to get the folder name on the most reliable way?
module.exports = [     '\n\n\n',     '/**',     ' * DEVELOPMENT MODE ONLY',     ' *',     ' * Change ACF folder location for saving config files',     ' *',     ' * Run "gulp build" to generate the theme',     ' * for production before deploying!',     ' *',     ' */',     'add_filter(\'acf/settings/save_json\', function ($path) {',     '\treturn get_theme_root() . \'/' + devtheme_name + '/theme/acf-json\';',     '});',     '' ].join('\n');

I'm interested in getting this working. Is there a place I can see the commit to your fork @iMicknl? It doesn't seem to be public

@ginatrapani it was indeed a private fork. I just created a public fork and also did open a pull request.
(https://github.com/MozaikAgency/wp-theme-starter/pull/258)

@iMicknl ah, thank you so much! So appreciated!

It usually works very well. But I ran into problems when creating a new Field Group in ACF. Whenever I save, it creates a new JSON file and it's a mess. The workaround is to stop gulp while creating a new field group.

authors: Maximilianos ginatrapani iMicknl retani

repo: MozaikAgency/wp-theme-starter


text:
Events

Events were initially implemented but have been removed as we could use components and queries for the use cases we had in mind.
I just want to document the previous implementation here in case we want to revisit it in the future.
The way to define events was as for queries, using an static attribute on the system's class:
class TestSystem extends System {}

TestSystem.events = {
  eventNewName: "eventOriginalName"
};

The events attribute does a map from the event's name to the name we would like to use on the system (of course it could just be the same name).
To use the event we could just iterate on the this.events.* as we do with this.queries.*:
class TestSystem extends System {
  execute() {
    this.events.eventNewName.forEach(parameters => {
      // Do whatever you need with the parameters
    });
  }
}

In order to emit an event, you will emit them globally in the world:
world.emitEvent("eventOriginalName", parameters);

The advantage of using events this way is that the events are queued the same way queries' events are handled, so we make them predictable as they will get handled when the system will get executed, and won't interrupt the execution when the event is triggered as happens with event listeners or callbacks.

Hello @fernandojsg ,
For my use case at the moment, I am receiving a world-snapshot from the game server, and need to update the components of entities described in that Snapshot.
Having this event based system-invocation will make it much easier as I can do:
  // handle web socket message
  function handleWorldSnapshotFromServer(worldSnapshot) {
      this.world.emitEvent("worldSnapshotSync", worldSnapshot); // invoke a system to update components according to snapshot from server
  }

Is this an use-case that you guys have considered? If so, what is the best-practice for situations like this?

authors: fernandojsg ikendoit

repo: MozillaReality/ecsy


text:
BUG: CanvasWrapper's onDrop event assumes canvas is positioned in the top left of the document.

Right now the onDrop event handler assumes determines the position to place a node when the on drop event fires based on the clientX and clientY properties of the drop event, correcting for the Chart's offset.
This works when the canvas is in the top left hand corner of the document. However, when the Canvas is positioned to the right, or down, the clientX and clientY values do not correspond to the position of a users mouse when the drop event occurred.
Proposing making the following change to the onDrop method that gets passed to ComponentInner in Canvas.wrapper.tsx
onDrop={ (e) => {
  const data = JSON.parse(e.dataTransfer.getData(REACT_FLOW_CHART))
  let elementOffset;
  if (this.ref.current){
    elementOffset = {
      x: this.ref.current.offsetLeft,
      y: this.ref.current.offsetTop
    }
  }else{
    elementOffset = {x: 0, y: 0}
  }
  onCanvasDrop({ data, position: {
    x: e.clientX - (position.x + elementOffset.x),
    y: e.clientY - (position.y + elementOffset.y),
  }})
} }

this would get the actual offset of the HTML element on the page and include this when calculating where the node should drop.
Does anyone see any issues with this? Should I make a PR?

On further testing, offsetLeft and offsetTop probably aren't sufficient.
Would probably need to be something like:
let elementOffset;
  if (this.ref.current){
    let {x,y} = this.ref.getBoundingClientRect()
    elementOffset = { x, y }
  }else{
    elementOffset = {x: 0, y: 0}
  }

Is there a better place that this offset could be calculated and stored somewhere stateful? Does it make sense to add it to the resize observer?

This has been bugging me as well - would be great to get this sorted.

Looks like the offset is already being stored in state, and updated through the resize observer, just not being used when calculating the position property of the new node created on the onDrop event.
Made a PR that adds it in, since it seems pretty cut and dry and unlikely to affect anything else
https://github.com/MrBlenny/react-flow-chart/pull/34

authors: mayansalama phlickey

repo: MrBlenny/react-flow-chart


text:
Support for Gemini Lake anytime soon?

Title pretty much says it.
I'm having issues with dual booting Linux on a Dell 3100, and i can't find a fix to my problems. Nothing happens when i press CTRL+L on boot. Therefore i looked here for help, but it turns out that it doesn't support my processor.
Is there any solution to this? Is it possible for me to install on this model. If not, when do you expect support for Gemini Lake to be developed?
// Kasper

duplicate of #89

authors: Kasperfma MrChromebox

repo: MrChromebox/scripts

license: Unlicense


text:
is support on windows?

error[E0432]: unresolved import std::os::fd
--> E:\rust.cargo\registry\src\rsproxy.cn-0dccff568467c15b\foyer-storage-0.3.0\src\device\fs.rs:17:9
|
17 |     os::fd::{AsRawFd, BorrowedFd, RawFd},
|         ^^ could not find fd in os

Hi @hmfms , foyer is aimed to support both unix-like system and windows. But it is still under development now. So the support on Windows may not be fullfilled now.
Let me mark this issue as a bug, and I'll fix it later.

recently , I want test it on Windows , Do you have a schedule to solve it ?

recently , I want test it on Windows , Do you have a schedule to solve it ?

Sorry, @hmfms . I cannot give a fixed schedule for it now. Currently, I'm working on the in-memory cache component of foyer, which is also part of my task of my full-time job. Plus, I don't have a windows environment now.
I'll fix the issue after the in-memory cache is merged. (And it will happen soon for I've finish the PR, test and received approves, FYI #270 and related PRs). I'll setup a windows environment with my PVE to fix the bug on Windows.

And I think I need to setup a CI pipline on Windows and MacOS. Let me open an issue to track.

Hi, @hmfms . Now I'm investigating the build on Windows with my PVE. I've not been developed on a Windows machine for years and never write Rust on Windows. May I know what's your setup of your Rust environment and how I like to develop with foyer?

authors: MrCroxx hmfms

repo: MrCroxx/foyer


text:
Add latest_version

This should return the latest version of the Delta table.  Delta tables have version 0, version 1, version 2, etc.

I would like to work on this one. Want to get familiar with delta-rs's python bindings.

authors: MrPowers robertkossendey

repo: MrPowers/levi


text:
3 Monsters from Quest of the Infinite Staircase not importing

Describe the bug
The Monster import from Quests from the Infinite Staircase hangs up at "Warrior of Madarua". That monster, and the following: Worker Robot and Wolf-in-Sheep's-Clothing, and maybe others are not importing after that.
To Reproduce
Steps to reproduce the behavior:

Set up Monster Munching to munch the Quest from the Infinite Staircase.
Run
Always stops at Warrior-of-Madarua

Expected behavior
All monsters from the Quest from the Infinite Staircase are munched
Screenshots

Environment:

Browser: Chrome 126.0.6478.185
Foundry Version 12.330
5e System Version 3.3.1
Module Version 5.2.26

Additional context
Add any other context about the problem here.

A Character URL, if the problem is a character import.
Details of any errors in the browser console (press F12): See screenshot

These are working here. Please try:

disabling all other modules
disabling the webp conversation in your file location settings for DDB importer

Disabling the webp conversion did the trick.

authors: MrPrimate WisdomOfWombats

repo: MrPrimate/ddb-importer


text:
Clean up sorting in buildEntries

issue: #1

Thank you

That may have messed up the month sort logic but I can work with it

repo: MrRedBeard/SimpleTimeline


text:
Étape 3: Fermeture de la discussion

Étape 3: Fermeture de la discussion
Vous avez activé GitHub Pages!
Votre site est maintenant public. Jetez-y un oeil à l'adresse .
Maintenant que vous avez effectué les tâches, vous pouvez fermer l'Issue. Fermer une Issue informe les autres contributeurs que cette discussion ou tâche est terminée.
:keyboard: Activité

Cliquez sur le boutton Close issue ci-dessous

 Je vous répondrai quand vous aurez fermé cette issue.
Originally posted by @github-learning-lab in https://github.com/MrRedaL/github-slideshow/issues/1#issuecomment-770441400

bon travaille

repo: MrRedaL/github-slideshow


text:
RTL reverse the Numbers (BUG)

Hello,
Numbers are always left to right...that just how numbers like.
The Question is why in RTL the numbers flipped and shown in RTL? that bug is probably started somewhere between 1.5.3 and 2.3.1.
Im using jsPDF + jspdf-autotable to create a pdf file in RTL- (i add hebrew font as should and it works just fine).
In my old system i'm using jsPDF - V1.5.3 and everything works just fine.
Now i'm trying to create the same pdf export - the different is only that i use React and different version of jsPDF(the old system was vanilla js).
Using jsPDF - V2.3.1(can't work with V1.5.3 - has some errors when start react).
In my output numbers get flipped(the RTL for some reason flip them - this behaviour is not exists in my old system).
As you can see here: the first column is dates in august(should be "02/08 | 03/08 ......")

Here is my code - but again - the same code works fine with jsVanilla and old version 1.5.3.
    var doc = new jsPDF({'unit':'px',format:'a4'});     doc.setProperties({ title: 'example' });     doc.setFont("VarelaRound-Regular","normal");     doc.setFontSize(6);     doc.setR2L(true); doc.autoTable({         head: thead,         body: tableBody,         startY: 30,         headStyles: {font: "SecularOne-Regular",fontStyle:"normal",fontSize:fontSize + 1},         bodyStyles: {lineWidth:0.2},         styles: {textColor:[1,1,1],halign:'center',font: "VarelaRound-Regular",fontStyle:"normal",fontSize:fontSize,cellPadding:{top: 2, right: 1, bottom: 2, left: 1}}      });
Please help me:)
Maybe something has changed between the versions in the RTL code?

I think that's the bug that's supposed to be fixed in #3171.

authors: HackbrettXXX liorokach

repo: MrRio/jsPDF


text:
Add N-Queens problem solution

I want to add N-Queens Problem solution in LeetCode, using backtracking approach.

I wish to contribute. Kindly assign me this issue.

hey i solved it. can you please check it and do the process.
It's my first ever open source contribution

I want to contribute to this. Please assign it to me.

I would like to contribute. Please assign this question to me


text:
fix 中文编码格式为 UTF-8

在 VS Code 等编辑器使用 UTF-8 编码查看文件时会看到乱码。
$ git diff
diff --git a/inc/mp3_tag.h b/inc/mp3_tag.h
index 2545613..25bc49f 100644
--- a/inc/mp3_tag.h
+++ b/inc/mp3_tag.h
@@ -67,12 +67,12 @@ typedef struct
  */
 typedef struct
 {
-    uint8_t id[4];      /* ֡ID,ΪXing/Info */
-    uint8_t version[2]; /* <B0>汾<BA><C5> */
-    uint8_t delay[2];   /* <D1>ӳ<D9> */
-    uint8_t quality[2]; /* <D2><F4>Ƶ<D6><CA><C1><BF>,0~100,Խ<B4><F3><D6><CA><C1><BF>Խ<BA><C3> */
-    uint8_t fsize[4];   /* <CE>ļ<FE><D7>ܴ<F3>С */
-    uint8_t frames[4];  /* <CE>ļ<FE><D7><DC>֡<CA><FD>  */
+    uint8_t id[4];      /* 帧ID，为Xing/Info */
+    uint8_t version[2]; /* 版本号 */
+    uint8_t delay[2];   /* 延迟 */
+    uint8_t quality[2]; /* 音频质量，0~100，越大质量越好 */
+    uint8_t fsize[4];   /* 文件总大小 */
+    uint8_t frames[4];  /* 文件总帧数 */
 } MP3_FrameVBRI_t;

 /**

方便的话可以修改为英文注释

方便的话可以修改为英文注释

可以安排~


text:
Script updates

Some new scripts examples of use of GetOpts for more user control

Hi @sophiemiddleton,
You have proposed changes to files in these packages:

Scripts

which require these tests: build.
@Mu2e/fnalbuild-users, @Mu2e/write have access to CI actions on main.
:hourglass: The following tests have been triggered for e8577357beffcd31260da92242b8a28c5394b9d0: build  (Build queue is empty)
About FNALbuild. Code review on Mu2e/Offline.

:sunny: The build tests passed at e8577357beffcd31260da92242b8a28c5394b9d0.

Test
Result
Details

test with
:white_check_mark:
Command did not list any other PRs to include

merge
:white_check_mark:
Merged e8577357beffcd31260da92242b8a28c5394b9d0 at 49ea914b8e90e56763258e4a418429313821d34f

build (prof)
:white_check_mark:
Log file. Build time: 12 min 49 sec

ceSimReco
:white_check_mark:
Log file.

g4test_03MT
:white_check_mark:
Log file.

transportOnly
:white_check_mark:
Log file.

POT
:white_check_mark:
Log file.

g4study
:white_check_mark:
Log file.

cosmicSimReco
:white_check_mark:
Log file.

cosmicOffSpill
:white_check_mark:
Log file.

ceSteps
:white_check_mark:
Log file.

ceDigi
:white_check_mark:
Log file.

muDauSteps
:white_check_mark:
Log file.

ceMix
:white_check_mark:
Log file.

rootOverlaps
:white_check_mark:
Log file.

g4surfaceCheck
:white_check_mark:
Log file.

FIXME, TODO
:white_check_mark:
TODO (0) FIXME (0) in 0 files

clang-tidy
:white_check_mark:
0 errors 0 warnings

N.B. These results were obtained from a build of this Pull Request at e8577357beffcd31260da92242b8a28c5394b9d0 after being merged into the base branch at 49ea914b8e90e56763258e4a418429313821d34f.
For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

Old is just there because I'm still testing things, it will be removed once all the .cfg scripts are updated to use the new scripts. I just wanted review on these first before moving to the full transition, also I cant do that until we get the deg field study finished

Old is just there because I'm still testing things, it will be removed once all the .cfg scripts are updated to use the new scripts. I just wanted review on these first before moving to the full transition, also I cant do that until we get the deg field study finished

Thanks - I will approve it now. Be sure to remember to remove it when you are done.

authors: FNALbuild kutschke sophiemiddleton


text:
DatePicker on InteractiveServer render shows server's current day and not the user's when time zones differ

Things to check

[X] I have searched the existing issues for this bug
[X] To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type
Component
Component name
DatePicker
What happened?
Most servers have their time zone set to UTC. In InteractiveServer render mode, the date picker highlights the current day (today) as the server's current day, which can be different than the current day for the user.
Expected behavior
The highlighted "current day" (today) should match the user's timezone/day, not the server's in InteractiveServer render modes. If this not easily achievable via JS, perhaps a "Today" datetime property should be added so this can be set to user's datetime in code?
I believe the styling is set in the GetDayClasses() method where the following line use the injected TimeProvider for the current day...
   if (day == TimeProvider.GetLocalNow().Date)                 return b.AddClass("mud-current mud-button-outlined").AddClass($"mud-button-outlined-{Color.ToDescriptionString()} mud-{Color.ToDescriptionString()}-text").Build();
Apologies if I missed how to correct for this in the documentation.
Reproduction link
Unable to reproduce, as I believe TryMudBlazor is WebAssemby?
Reproduction steps

Create a DatePicker in an InterActive server application where the server has a different timezone than the user.
User runs the application when their current day differs from the server's current day.
The DatePicker will have the server's day outlined in the calendar.

Relevant log output
No response
Version (bug)
7.15
Version (working)
?
What browsers are you seeing the problem on?
Firefox, Chrome, Edge
On which operating systems are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

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

Couldn't you get the local time and set it using bind date?

I don't think it's easily achievable, considering the code is running on the server. Therefore, the time will obviously be relative to the server. You'd need to render the page on the client side. Another approach would be indeed to use JavaScript on component level, but I don't think I like that idea, so I'd rather go with the Today property.

Couldn't you get the local time and set it using the bind date?

If I'm not mistaken, we're talking about the highlighted "today" day, which you can't set externally via a parameter, as there is no parameter for that. The only way to do it would be to inject your own TimeProvider, but this wouldn't solve the problem, as the TimeProvider would still work on the server side.

Unable to reproduce, as I believe TryMudBlazor is WebAssembly?

Yes.

Ah, the Today, not the default open on day. Got it

IMHO, a gaping hole in Blazor Interactive Server is an internal MS API for accessing user's time (vs servers), requiring developers to use libraries or implement their own solutions.
That said, if you like, I can take a stab at doing a pull request on this? I'm nervous about contributing actual code, but adding this parameter seems fairly straight forward. Perhaps the property should be called "UserToday" or "ClientToday" to make it less ambiguous and prevent it being confused with the other date parameters?
Again, another option is to use some simple JS to set the components internal "today" reference point...
window.getBrowserDate = function () {     return new Date().toISOString(); };
protected override async Task OnInitializedAsync()     {         browserDate = await JSRuntime.InvokeAsync<string>("getBrowserDate");     }

authors: Anu6is ScarletKuro gabephudson

repo: MudBlazor/MudBlazor


text:
MudBlazor.InternalMudLocalizer failed

Things to check

[X] I have searched the existing issues for this bug
[X] To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type
Component
Component name
MudBlazor
What happened?
I created a new Blazor WebAssembly project.
I went through the install steps for Blazor.
When I have the text field below in the view, the error below happens. If I comment the text field out then the page loads.
<EditForm Model="_requestDto" OnValidSubmit="RefreshGrid" style="margin-top: 20px !important">
    <MudCard Elevation="0">
        <MudCardContent>
            <MudGrid Style="margin-top:10px">
                <MudItem xs="3" sm="3">
                    <MudText Typo="Typo.body1" Color="Color.Default">Search for a student</MudText>
                    <div class="d-flex align-items-flexend">
                        **<MudTextField Label="Name/Email" @bind-Value="_requestDto.FullNameSearch" Variant="Variant.Outlined" Style="width: 95% !important" />**
                    </div>
                </MudItem>
            </MudGrid>
        </MudCardContent>
    </MudCard>
</EditForm>

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: VTable setup of type MudBlazor.InternalMudLocalizer failed
System.TypeLoadException: VTable setup of type MudBlazor.InternalMudLocalizer failed
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSiteMain(ServiceCallSite callSite, RuntimeResolverContext argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Extensions.DependencyInjection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.Object, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].VisitCallSite(ServiceCallSite callSite, RuntimeResolverContext argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeServiceProviderEngine.<>c__DisplayClass4_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass9_0.<CreatePropertyInjector>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)
   at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType, IComponentRenderMode callerSpecifiedRenderMode, Nullable`1 parentComponentId)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl)
   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange`1 oldTree, ArrayRange`1 newTree)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Error: No element is currently associated with component 34
Error: No element is currently associated with component 34

Expected behavior
Should not throw error
Reproduction link
NA
Reproduction steps

...
Relevant log output
No response
Version (bug)
7.15.0
Version (working)
No response
What browsers are you seeing the problem on?
Chrome, Edge
On which operating systems are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

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

Hi. Please, post a reproduction project in zip or via git.

I found the problem (after several hours). In the Getting Started guide I didn't realise the significance of (or really understand) this:
"In the same file as above, the default Blazor template contains Bootstrap. This is no longer needed and can be removed."
Eventually worked out that there is a link to a bootstrap css file in index.html which you need to remove.
The instructions could do with being a bit clearer I think. There are some places which are quite light on detail, and in this case the problem caused by that css file was significant and difficult to find the root cause.

"In the same file as above, the default Blazor template contains Bootstrap. This is no longer needed and can be removed."

I still think it was something else. Removing bootstrap should be optional, and it shouldn't affect the DI considering the fact that Bootstrap is css/js only and has no C# code. I would say it's a coincidence and something else fixed the problem, or maybe the runtime had some a stroke and now it's gone? Hard to say without seeing a working reproduction.

"In the same file as above, the default Blazor template contains Bootstrap. This is no longer needed and can be removed."

I still think it was something else. Removing bootstrap should be optional, and it shouldn't affect the DI considering the fact that Bootstrap is css/js only and has no C# code. I would say it's a coincidence and something else fixed the problem, or maybe the runtime had some a stroke and now it's gone? Hard to say without seeing a working reproduction.

Honestly, it doesn't make much sense to me either. I had actually spent several hours on this and given up on it. I decided to look at options other than MudBlazor. I went away for a break then came back and decided to have one last look at the instructions when I noticed that line. I made that one change and everything has worked since then. I tried putting the line back and the error came back. Very weird...

I created a new Blazor WebAssembly project.
I went through the install steps for Blazor.

I was not able to reproduce the issue. I created a clean Blazor WASM standalone project (at least I assume it's standalone and not a BlazorApp), went through the installation steps for MudBlazor without removing Bootstrap, added the author's code, and it worked.
If no reproduction project is provided, I may need to close the issue.

I just got back to this. Tried adding that css link back in again but the problem didn't reoccur, so I don't have a repro project that I can provide.
Any thoughts on what else could be the cause?

@williambuchanan2 I have the same issue. Did you figure out what the problem was?

@williambuchanan2 I have the same issue. Did you figure out what the problem was?

Glad it's not just me it's happening to! I'm sure there are many more suffering in silence!
I never got to the bottom of it as such. After a whole day of messing around with it, I removed that css line and it started working and it seemed to be tied to that css, but when I came back to it a week later to try and create a reproducable example I couldn't get it to happen again.
The problem is this was a new project and it just happened and the error doesn't give you any clues, so very little to go on...

@williambuchanan2 I found out what the problem was. Apparently something got stuck in bin obj and there was a conflict. To fix this, you can delete bin obj, it helped me