Show the date when the script was last run

@apoorvaeternity
Traceback (most recent call last):
  File "dashboard_script.py", line 3, in <module>
    from datetime import datetime, timezone
ImportError: cannot import name timezone

@henrykironde Are you using Python2? Python3 has timezone in datetime and not Python2.

Yes I figured that, thanks

python manage.py crontab add
  adding cronjob: (a8f524aae7a3acf5108c4df982284a6b) -> ('0 0 * * 0', 'dashboard_script.dashboard_script.run')

python manage.py crontab run a8f524aae7a3acf5108c4df982284a6b

The methods in the dashboard_script/* are very long, but I think we shall clean them last.
For now, the error handling needs some revision.
For example:
    try:
        try:
            dataset_detail = json.load(open('dataset_details.json', 'r'))
        except FileNotFoundError:
            with open("dataset_details.json", 'w') as json_file:
                dataset_detail = dict()
                dataset_detail['dataset_details'] = {}
                json.dump(dataset_detail, json_file)

When we fail to find the file during open('dataset_details.json', 'r'), we catch that error.
What happens when we open the file well but we fail to read anything?
Before we try to open it again in except , open("dataset_details.json", 'w') as json_file: , I think we should close it. Otherwise it may be locked by a process.
And I do not think we need to write this file at this point. We are inserting and empty ['dataset_details'] = {} dictionary, we then read it again and try to update it and then we write it back.
To me this seems like double work.

What happens when we have the Json file, but it is corrupt?
To me, it seems that it will fail to load and throw an exception which will drive the program to the finally block. In the finally block, we are trying to open the same file after failing.
I may be wrong.
Additionally, I don't clearly understand why we are raising in this part
            try:
                workdir = mkdtemp(dir=file_location)
                download(dataset.name, path=workdir)
                md5 = getmd5(workdir, data_type='dir')
            except Exception:
                raise

I feel like that will stop the program from running.
With Create dirs
    if not os.path.exists(os.path.join(location, 'temp_files')):
        os.makedirs(os.path.join(location, 'temp_files'))
    if not os.path.exists(os.path.join(location, 'old')):
        os.makedirs(os.path.join(location, 'old'))
    if not os.path.exists(os.path.join(location, 'current')):
        os.makedirs(os.path.join(location, 'current'))
    if not os.path.exists(os.path.join(location, 'diffs')):
        os.makedirs(os.path.join(location, 'diffs'))

We could later reduce it to three lines
for dir_name in ['temp_files', 'diffs',...]
    if not os.path.exists(os.path.join(location, dir_name)):
        os.makedirs(os.path.join(location, dir_name))

We should avoid changing directories if possible.
Since we know the paths to the file location, we can construct paths by joining the file location to the relative paths we want to create.
file_location = os.path.dirname(os.path.realpath(__file__))
It is good practice to always normalize the paths, so that running on different platforms is smooth.
@apoorvaeternity overall, looks good but fails to continue whenever some error happens.
Sample run..
Installing fao_global_capture_product_unit_data: 100%|██████████████████████████| 7/7 [00:00<00:00, 15575.66rows/s]
Installing fao_global_capture_product_waterarea_groups: 100%|█████████████████| 29/29 [00:00<00:00, 23445.42rows/s]
Installing fao_global_capture_product_dsd_capture_data: 100%|███████████████████| 7/7 [00:00<00:00, 16203.16rows/s]
Installing fao_global_capture_product_species_group: 100%|██████████████| 12723/12723 [00:00<00:00, 13465.54rows/s]
Installing fao_global_capture_product_country_groups: 100%|█████████████████| 275/275 [00:00<00:00, 11019.40rows/s]
Installing fao_global_capture_product_ts_capture_data: 100%|██████████| 932279/932279 [00:28<00:00, 33193.13rows/s]
Downloading 5624799: 2.70kB [00:05, 526B/s]
Installing fish_parasite_hosts_host_characteristics: 100%|██████████████| 38008/38008 [00:03<00:00, 12297.36rows/s]
Downloading /.../flensburg-food-web/ECOL_92_174: 160B [00:02, 70.9B/s]
Installing flensburg_food_web_links: 100%|████████████████████████████████| 1577/1577 [00:00<00:00, 20151.04rows/s]
Installing flensburg_food_web_nodes: 100%|███████████████████████████████████| 180/180 [00:00<00:00, 8390.66rows/s]
Downloading 5631069: 230B [00:02, 92.1B/s]
Installing forest_biomass_china_biomass: 100%|█████████████████████████████| 1626/1626 [00:00<00:00, 5587.14rows/s]
Downloading forestfires.csv: 13.0B [00:00, 71.4B/s]
Installing forest_fires_portugal_data: 100%|████████████████████████████████| 517/517 [00:00<00:00, 28971.45rows/s]
Downloading REF_SPECIES.csv: 0.00B [00:00, ?B/s]Traceback (most recent call last):
  File "dashboard_script.py", line 78, in <module>
    run()
  File "dashboard_script.py", line 74, in run
    check_dataset(dataset)
  File "dashboard_script.py", line 58, in check_dataset
    json_file_details = json.load(dataset_details_read)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception ignored in: <bound method tqdm.__del__ of Downloading REF_SPECIES.csv: 0.00B [00:04, ?B/s]>
Traceback (most recent call last):
  File "...lib/python3.5/site-packages/tqdm/_tqdm.py", line 883, in __del__
    self.close()
  File "..lib/python3.5/site-packages/tqdm/_tqdm.py", line 1088, in close
    self._decr_instances(self)
  File ".../lib/python3.5/site-packages/tqdm/_tqdm.py", line 439, in _decr_instances
    cls._instances.remove(instance)
  File "/usr/lib/python3.5/_weakrefset.py", line 109, in remove
    self.data.remove(ref(item))
KeyError: <weakref at 0x7f9009dbbc28; to 'tqdm' at 0x7f90094aa438>
(my_env36) henr36:~/GitHub/retrieverdash/retrieverdash/dashboard_script$ retriever install sqlite forest-fires-portugal-data

Looks like it failed on forest-inventory-analysis and I do recommend adding forest inventory to the ignore list and vertnet( not the vertnet-*)

What happens when we have the Json file, but it is corrupt? I will handle JSONDecodeError.
Additionally, I don't clearly understand why we are raising in this part

            try:
                workdir = mkdtemp(dir=file_location)
                download(dataset.name, path=workdir)
                md5 = getmd5(workdir, data_type='dir')
            except Exception:
                raise

I feel like that will stop the program from running.

The error raised will get caught by the outer except block.

Let us keep the commits clean hence let's add this to clean up code commit.

I also run out of space and I was wondering where we went wrong. It looks like we have a lot of data. May be we should delete ~/.retriever/raw_data/[script-name] after every script installation.


Restrict direct publication of simulation runs to trusted users

[ ] dispatch API POST and PATCH /runs should only allow public=true for privileged users; other users should have to go through the dispatch app web GUI where they must review the outputs of their run before making it public
[ ] Make the dispatch app web GUI such a privileged user
[ ] Create tokens for model repositories to also be able to directly publish runs without having to manually them -- essentially, we would delegate review to trusted model repositories

[ ] dispatch API POST and PATCH /runs should only allow public=true for privileged users; other users should have to go through the dispatch app web GUI where they must review the outputs of their run before making it public
The intention was to have the published projects be a separate object that can not be created via a direct call from the API, but only after some sort of server-side validation occurs. Having a GUI based validation provides a user experience suggesting some sort of check, but could always be overridden by an API call

[ ] Make the dispatch app web GUI such a privileged user
This is not really possible. The only way to do this is a via a token that would be embedded in the source and not hidden

@jonrkarr can we close this is favor of #3067?

Closed in favor of #3067.


Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x38 in tid 9379, pid 9379

Hey, were you able to fix this?


Fixed technologies boxes and add logos

@rafaparadela could you review this PR please?
--> Home

[x] We add technology logo in panel-header

--> Sidebar

[x] We add technology logo in sidebar
[x] We add technology title in sidebar

DO NOT MERGE.
I'm trying to figure out the conflict with Ruby version on Heroku.

:+1: Gorgeous!

LGTM


Issues with rendering edges on macOS Safari 15

The bottom and right edges render weirdly on macOS Safari 15.2. I do not see this issue on Safari 14.1 though.

I tested them in Safari 15.4 and 15.3 and the animations were running without any issue. According to you, they seem to be working fine in 14.1 too and this issue comes up in just 15.2 which seems pretty weird. Until now, I couldn't reproduce this behavior. I'll just keep this issue open in case anyone can add some more information to it.

+1 to that. Safari Version 15.5 (176<IP_ADDRESS>.8), Mac OS Monterey 12.4
I went to the Issues section to report one myself. But here's a hint: due to the bad eyesight I have a default page zoom set to 125%. When page zoom is set to 100% (default for most people), everything looks OK. But I have 125% set as default for all websites with no exceptions, and so far - only LinkedIn looks ugly, mostly due to, not surprising surprise!, icons.

This is a WebKit bug.
I was able to reproduce this bug and found out that using an animated SVG in an <img> tag on a page zoom level other than
100% is the only cause (on WebKit based browsers). Using them inline seems completely fine and consistent across browsers.

Possibly related: https://github.com/n3r4zzurr0/svg-spinners/issues/11


Cmd-backslash doesn't work on a non-US keyboard layout

My Czech keyboard layout has the backslash (\) in the lower left corner of the keyboard:

This is different from U.S. English layout on the ISO keyboard which looks like this:

When I go to this project's homepage with my Czech keyboard, the backslash alone is registered:

But when I try Cmd-\, only Cmd alone is registered:

That means that Cmd-\ shortcuts are not working. Is there a way to fix this?

https://github.com/jaywcjlove/hotkeys/blob/98ce2d6fb6d8100b7f98470f92d095cc147ac141/src/var.js#L34-L37
@borekb May be a problem with escape characters.

Interestingly, on https://keycode.info/, I get the key code 220 (correct) but event.code is IntlBackslash instead of Backslash. Is this related?

@borekb This is right.

@jaywcjlove but what to do about it? Hotkeys.js receives the correct code but still doesn't work correctly; would it need to be reworked to take event.code into account?

@borekb I need to debug it.

Hi @jaywcjlove , I wrote a bit about it here, tried hotkeys also and to see if it worked
https://kevinsimper.medium.com/why-keyboard-shortcuts-and-accessibility-in-other-keyboard-languages-rarely-works-8638abc15e71


The price of PBS Family of Azure VMs is unknown.

[Enter feedback here]
PBS Family of Azure VMs is introduced in the FPGA support in Azure section, but the price is unknown. There is also no public information with details.

FPGA support in Azure

The PBS Family of Azure VMs contains Intel Arria 10 FPGAs. It will show as "Standard PBS Family vCPUs" when you check your Azure quota allocation.

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

ID: 25565324-f64d-a8db-bc1c-e50956e6e878
Version Independent ID: a6c9ffa3-c085-b4fc-7153-06adb8a50ce4
Content: Deploy ML models to FPGAs - Azure Machine Learning
Content Source: articles/machine-learning/how-to-deploy-fpga-web-service.md
Service: machine-learning
Sub-service: core
GitHub Login: @jpe316
Microsoft Alias: jordane

@damochiz
Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @damochiz, you can find pricing information on our pricing guide.
https://azure.microsoft.com/en-us/pricing/details/machine-learning/
If you scroll down and select the "FPGA" tab, you can see pricing for PB-Series FPGAs.

It's a good callout that we should provide a link to the pricing page in this article. I'm adding a link to, you should see the changes live in a few hours.

Since I've seen that you've given my comments a thumbs up with no further comments, I'll go ahead and #please-close this issue. If you feel that your documentation issue hasn't been resolved, feel free to open a new issue with additional information.
Thanks again for the report!


go_modules doesn't update vendor folder when vendoring is enabled

Package manager/ecosystem
go_modules
Manifest contents prior to update
github.com/buger/jsonparser v1.0.0
Updated dependency
github.com/buger/jsonparser v1.1.1
What you expected to see, versus what you actually saw
The go.mod and go.sum get updated in the MR, but the vendor folder isn't, causing the MR to fail because the modules.txt in the vendor folder doesn't match the go.mod/go.sum files.

Are you using the GH native version of dependabot or dependabot-preview? I don't believe vendoring currently works in preview, and I would suggest updating to the GH native version. If this happens in the native version, could you link to the pull request in question (or contact support if this is happening in a private repo)

@jurre I'm using https://gitlab.com/dependabot-gitlab/dependabot
When looking at the docs and at the source code it does have a vendor option

@jurre I'm using https://gitlab.com/dependabot-gitlab/dependabot
When looking at the docs and at the source code of dependabot-core it does have a vendor option

Ah, that is not a project that we maintain, so I'm afraid I can't help here. You should contact the author, if they run into things I'm happy to provide some guidance on how to deal with vendoring from a dependabot-core point of view.

@jurre That project includes dependabot-core directly, the only thing it does is making it interact with Gitlab.
It doesn't do anything to the working of the implementations of the package managers/ecosystems.

@jurre Sorry, my bad, it does look like it has some own config parsing logic... I'll open an issue over there.

@jurre Sorry, my bad, it does look like it has some own config parsing logic... I'll open an issue over there.
Also, hello fellow Stadjer :)

👋!
There needs to be some level of interop, dependabot-core by itself cannot open any pull requests, it needs to be orchestrated somehow, and that code will need to figure out when/how to deal with vendored code. I don't know the dependabot-gitlab codebase, so I can't point to exactly where the changes will need to be made. For the GitHub service, we check this, which returns true for Go modules, we can then figure out if vendoring is configured on the repo, and configure the dependabot-core classes to deal with it

Thanks for the extra information, I'll try to get this implemented correctly in dependabot-gitlab!
I think the main problem for now is not passing the vendor/tidy option.

Actually, while checking the code it looks like the current version of dependabot-core doesn't even use those options:
https://github.com/dependabot/dependabot-core/blob/main/go_modules/lib/dependabot/go_modules/file_updater.rb#L125
It checks the content of the repo to decide whether it should vendor or not, so I don't think it's a config option :thinking:
Well, I'll try to figure it out in the other project first and will report back.

It checks the content of the repo to decide whether it should vendor or not, so I don't think it's a config option

Yep that's what I was trying to get at in my previous version. For go modules we use the always_clone_for_package_manager check to configure the FileFetcher to clone the repo content.
The code in dependabot-gitlab will have to set up a place for the repo to be cloned into, and pass that location on to other parts of the update process.

Yep, think I have found the problem:
https://gitlab.com/dependabot-gitlab/dependabot/-/blob/master/app/services/dependabot/file_fetcher.rb
Looks like it currently does not have the ability to clone the repo. I hoped this would have been an easy fix :disappointed_relieved:

@jurre it looks like cloning is also required for bundler, but bundler isn't registered through register_always_clone, can you explain why that is?

@jurre it looks like cloning is also required for bundler, but bundler isn't registered through register_always_clone, can you explain why that is?

Bundler currently doesn't always clone, it only clones when vendoring is configured

Thanks :) I think we can replicate that behavior then.


elm-package always fails to get a specific 0.16 package

I have 0.16 installed on my machine, after cleaning ~/.elm and elm-stuff in my project I still have this message when trying to get the package mdgriffith/elm-style-animation-zero-sixteen (also same for mdgriffith/elm-style-animation-0.16):
$ elm-package install

Error: There are no versions of package 'mdgriffith/elm-style-animation-zero-sixteen' on your computer.

If I remove it from the elm-package and try to install again:
$ elm-package install mdgriffith/elm-style-animation-zero-sixteen 1.0.1
To install mdgriffith/elm-style-animation-zero-sixteen I would like to add the following
dependency to elm-package.json:

    "mdgriffith/elm-style-animation-zero-sixteen": "1.0.1 <= v < 2.0.0"

May I add that to elm-package.json for you? (y/n) y

Error: There are no versions of package 'mdgriffith/elm-style-animation-zero-sixteen' on your computer.

My elm-package.json:
{
    "version": "1.0.0",
    "summary": "helpful summary of your project, less than 80 characters",
    "repository": "https://github.com/user/project.git",
    "license": "BSD3",
    "source-directories": [
        "."

If I install it forcibly by cloning it to elm-stuff and changing the directory structure to match elm-stuff's I can use it to compile, but it still shows the Error: There are no versions of package 'mdgriffith/elm-style-animation-zero-sixteen' on your computer. error when running elm-package install.

@evancz this is important, means that any new package for 0.16 isn't being added to the right list and is not installable. Not too sure on the work involved to fix it

I am having similar problems with janiczek/elm-markov. Was thinking it's because of me butchering up the publishing process a few versions bach, but @eeue56 said he has a similar problem with elm-community/elm-string-extra.
What I've seen is that it downloads the package alright but into a wrong folder:
$ ls elm-stuff/packages/elm-community/elm-list-extra/
1.0.0/

$ ls elm-stuff/packages/janiczek/elm-markov/
Janiczek-elm-markov-23a5cde/

Hope this helps.

@Janiczek, open a new issue. I'd like to delete these two comments to keep this issue focused.

I believe @eeue56 and I found a workable solution for this. It involves using exact constraints like mdgriffith/elm-style-animation-zero-sixteen": "1.0.1 <= v < 1.0.1" which I think all products should be doing anyway.
@eeue56, can say more about this. If I have misunderstood, can we open an issue that explains it more clearly.

which I think all products should be doing anyway

Doesn't this defeat the whole purpose of enforced SemVer? Or am I misunderstanding?

@evancz done, #214

I gave @doppioslash the patched 0.16 which enabled these old packages to work, so this is closed as far as I'm concerned. Waiting for @rtfeldman so we can make npm binaries if needed, but so far nobody else has had this problem yet.
@JoeyEremondi (about semver) if in production the logic of something changes, then it's a patch release, but may break your site because your site relies on that logic. (this discussion probably should be elsewhere?)


New version: Miro.Miro version 0.8.68

Pull request has been created with komac v2.3.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Close with reason: Duplicate of #166326;


🐛 [firebase_messaging] Push notification doesn't work when configure FirebaseOptions at runtime

Bug report
Describe the bug
It seems that the FirebaseOptions which is configured by Firebase.initializeApp(name:, options:) isn't respected by firebase_messaging plugin.
Steps to reproduce
Steps to reproduce the behavior:

Build an app that can switch between environments (dev, staging, qa, production) at runtime.
Selected environment is saved in SharedPreferences (or NSDefault), and app is restart
When the app is launch, it will check for the selected environment and call

Firebase.initializeApp(
  name: <name>,
  options: FirebaseOptions(...),
);

The FCM token is invalid as it is not associated with the selected FirebaseOptions. It is associated with the configuration in google-services.json and GoogleServices-Info.plist. And these files are immutable at runtime.

Expected behavior
firebase_messaging should respect the configured FirebaseOptions.

Additional context
A quick look into the source code, I can see that this is because multiple Firebase apps isn't supported by the plugin yet: https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_messaging/firebase_messaging/lib/src/messaging.dart#L32.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
    • Flutter version 1.22.6 at xxxxxxxxx
    • Framework revision 9b2d32b605 (3 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_HOME = /usr/local/share/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[!] IntelliJ IDEA Ultimate Edition (version 2020.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

A workaround is to initialize the default firebase app at runtime. Maybe this helps someone.
To do that some changes to a plugin must be made locally.

adding firebase_core_platform_interface-4.0.0 to the project.

override dependency in pubspec.yaml

dependency_overrides:
  # Override dependency for all other plugins that use it
  firebase_core_platform_interface:
    path: <path_to_plugin>/firebase_core_platform_interface-4.0.0

in the firebase_core_platform_interface-4.0.0 plugin remove

    if (name == defaultFirebaseAppName) {
      throw noDefaultAppInitialization();
    }

in lib/src/method_channel_firebase.dart.
Now you can initialize firebase like this:
Firebase.initializeApp(
            name: '[DEFAULT]',
            options: FirebaseOptions(
             // your config
            ));

Ideally the developers would support this for the plugin, but this might help someone until then.
:exclamation: Note: This still does not allow to use multiple firebase configurations at the same time.

@timosturm thanks for the solution. But the plugin still doesn't allow to configure the default app:

I/flutter ( 6644): [E] TIME: 2021-04-23T13:03:36.262561 Error: [core/duplicate-app] A Firebase App named "[DEFAULT]" already exists at #0      MethodChannelFirebase.initializeApp

@timosturm thanks for the solution. But the plugin still doesn't allow to configure the default app:

I/flutter ( 6644): [E] TIME: 2021-04-23T13:03:36.262561 Error: [core/duplicate-app] A Firebase App named "[DEFAULT]" already exists at #0      MethodChannelFirebase.initializeApp

I forgot to mention, this only works if no google-services.json is provided at al. I.e. if the default firebase app was never initialized before.

@timosturm I tried with no google-services.json but it didn't seem to work:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDevDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
   Searched Location:

up
please badly needed this feature.

We have working ONE android app but we are converting to flutter
We have a MASTER firebase project where all of the clients credentials.
Our clients are companies or organization
then per client they have their own firebase project.
so when they login they will use their own project firebase credentials.
In android it is possible to not require .gson file as long you don't add the google services plugins.
classpath 'com.google.gms:google-services:4.3.10'
apply plugin: 'com.google.gms.google-services'

but it in flutter even if I don't add those plugins they still require.
please don't require it as long plugins are not added.
or expose FirebaseMessaging.InstanceFor(app)

@timosturm I tried with no google-services.json but it didn't seem to work:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDevDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
   Searched Location:

remove this lines
classpath 'com.google.gms:google-services:4.3.10'
apply plugin: 'com.google.gms.google-services'

@russellwheatley Yes, that is it. I searched in each package to confirm instanceFor had been implemented in the changelog and unfortunately that took me down the wrong path. I am trying to address the secondary instance on either the flutter app side or the cloud function side with no resolution so far. Looks like it is going to be messy/difficult as a result of the missing functionality it seems.


Two form rendered in the same page

I try to show a form for a collection in a aside panel which is rendered during the presence of another form. I declared the two form in two different templates like this:
<template name="componentEdit">
...
{{> quickForm id="componentEdit" collection="Components" doc=component }}
...
</template>
<template name="ctrlEdit">
     ....
     {{#autoForm  id="controllerEdit" collection="Controllers" doc=controller}}
          ...

<button type="submit">Submit</button>

         ....
     {{/autoForm}}
</template>

I declared also two different events for the different forms:
Template.componentEdit.events({
    'submit #componentEdit': function(e, template){
         .....
    }
});
Template.ctrlEdit.events({
  'submit #controllerEdit': function(e, template){
      ...
  }
});

The first form works correctly the second one doesn't trigger anything. Do you have any suggestion why the second form doesn't work?

I found that the error wasn't the two forms. I'm sorry if I posted but were two days I was trying to figure out why.


Vimux doesn't work on latest version of tmux on ubuntu

Vimux doesn't seem to work with the latest version of tmux-next: https://launchpad.net/~pi-rho/+archive/ubuntu/dev
(on the same ubuntu machine, the old version of tmux, 1.9, works with Vimux just fine)
The commands VimuxRun* don't run in a tmux pane. Happy to provide further details!

I can confirm this does not work on the latestest tmux
bubuzzzs-MBP:.vim bubuzzz$ tmux -V
tmux 2.3

when i type in vim
:call VimuxRunComman("ls")
nothing happens

I'm seeing the same thing:
✗ tmux -V
tmux 2.2

when I run
:call VimuxRunComman("ls")
I also see nothing run in the pane when it's open, or a pane opened if it's not.

I'm running tmux 2.3 and I don't have this problem. I'm using my fork, on which I implemented a new option for choosing the runner pane that uses the last tmux pane you were in. It's possible that my fork works and the main branch doesn't, I wouldn't know

@dkrieger could you link to your fork?

https://github.com/dkrieger/vimux

Running tmux 2.6 and on ubuntu 18.04 I have the same error even with the settings @dkrieger listed - any commands I try just return me to vim without opening a runner - very cool plugin though, will be excited if there is a linux fix

I don't think the changes in the fork have anything to do with this. In any event see #143 for the PR seeking to merge those features.
If anything this could be a duplicate of #167, but there isn't really enough information here to work with. I've been using Vimux across every version of Tmux from the 1.x erra to the current 3.x releases without this problem, so it isn't directly Tmux version related. I suspect some other confounding circumstances on the host machine, but there isn't enough information here to solve it.
If this is still and issue for you or anyone please comment here and we'll try to track it down. Otherwise with it known to be working for most people there really isn't anything we know to fix


Question: VSIX and ALPackage Archive

While automating the AL Build Process it is always a pita to get the necessary vsix and alpackages in all the needed versions.
Does Microsoft plan to build a download repository where we can get all versions of vsix and alpackages?
Is there an more easy way to get them as downloading the nav iso (download 900mb for the needed 9MB) or creating a docker container?

Thanks for the suggestion. We will consider it for our backlog.

You can download the extensions directly from the marketplace these days:
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-dynamics-smb/vsextensions/al/13.0.903630/vspackage


iOS VoiceOver reads the original selectbox as well

When using the one-finger swipe gesture (the "tab" gesture) on the generated select box, VoiceOver focuses on the hidden, opacity: 0 negative tabindex original select element. The user cannot interact with it, but it causes confusion. This only happens on iOS VoiceOver, not OSX VoiceOver or Windows NVDA. You can try it out at the Examples page: https://silviomoreto.github.io/bootstrap-select/examples/
Happens both on iPhone 5s and iPad Air

Is this still an issue?


Error in _init_weights function in modeling_bertabs.py

Hey there!
I am replicating the code and this paper for one of my personal projects. I am facing one issue when running :
config = BertAbsConfig(max_pos=args.block_size)
model = BertAbs.from_pretrained(
    'remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization',
    config=config
)

The error I am getting is :
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
/tmp/ipykernel_14334/239094548.py in <cell line: 4>()
      2
      3
----> 4 model = BertAbs.from_pretrained(
      5     './model',
      6     config=config

~/anaconda3/envs/pytorch_p38/lib/python3.8/site-packages/transformers/modeling_utils.py in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
   2377                 offload_index,
   2378                 error_msgs,
-> 2379             ) = cls._load_pretrained_model(
   2380                 model,
   2381                 state_dict,

~/anaconda3/envs/pytorch_p38/lib/python3.8/site-packages/transformers/modeling_utils.py in _load_pretrained_model(cls, model, state_dict, loaded_keys, resolved_archive_file, pretrained_model_name_or_path, ignore_mismatched_sizes, sharded_metadata, _fast_init, low_cpu_mem_usage, device_map, offload_folder, offload_state_dict, dtype, load_in_8bit)
   2523             )
   2524             for module in uninitialized_modules:
-> 2525                 model._init_weights(module)
   2526
   2527         # Make sure we are able to load base models as well as derived models (with heads)

~/anaconda3/envs/pytorch_p38/lib/python3.8/site-packages/transformers/modeling_utils.py in _init_weights(self, module)
   1103         Initialize the weights. This method should be overridden by derived class.
   1104         """
-> 1105         raise NotImplementedError(f"Make sure `_init_weights` is implemented for {self.__class__}")
   1106
   1107     def tie_weights(self):

NotImplementedError: Make sure `_init_weights` is implemented for <class 'modeling_bertabs.BertAbs'>

I am using the following versions:
pytorch : '1.10.0'
transformers : '4.25.1'
I believe this is more of a version issue, as this is very old implementation. Which library version was this code written?
Please let me know if there is any fresh implementation of summarization using BERT.

The blogpost was published on 24th March 2020 so probably Transformers 2.5.1 (https://pypi.org/project/transformers/#history).
There probably are more recent implementations using BERT or more recent LLMs


Cache aren't invalidated

We are trying to implement cache invalidation on a load balanced environment, but can't get it to work.
RabbitMQ has been installed and we can see that there are messages beings sent when we publish a page on one of the sites. The messages contain the correct Content- and Version-id and are being received by the consuming site but the cache isn't invalidated. I'm not sure where to begin troubleshoot, any help would be appreciated.

Okay, the cache invalidation should happen after the message is consumed by the framework.  Let me see If I can recreate

Can you try 1.0.0--pre-42, I had to manually raise the event locally when consuming the message.  Seems to work in the test I ran.

Installed 1.0.0--pre-42, and now the invalidation seems to work as it should. Thanks!


encoding/json: unexported embedded fields are marshalled, but cannot be unmarshalled

encoding/json will marshal field foo in
type S struct{ foo }
type foo int

But since foo is unexported, unmarshalling panics.
What version of Go are you using (go version)?
1.7.3
What operating system and processor architecture are you using (go env)?
linux amd64
What did you do?
https://play.golang.org/p/P4iGGhkOAB
What did you expect to see?
"{}"
The only field of S is unexported, so it shouldn't marshal.
What did you see instead?
{"foo":1}
and panic on unmarshal.

This is a regression from Go 1.5 (i.e., it started to panic in Go 1.6).

To be clear, the bug is in marshalling the unexported field, right?
My fix for the problem in my generalized field-selection package: https://code-review.googlesource.com/9485.

Right. According to Go rules, an exported field inside an embedded struct (whether that embedded struct is exported or not) is visible. In other words, this works:
t := &Top{}
t.Q = 18

So "Q" should indeed be a key in the marshaled object.

I'm trying to do my first contribution, therefore bear with me.
I've written this test, and I have an implementation that makes it pass (and doesn't break anything existing): does it model correctly what we want to achieve?
If I get to a field which happens to be not exported and not a struct, then it shouldn't be marshalled, but if the unexported field is actually a struct, then it's members might be marshalled if exported...
type MyStructContainingUnexportedStruct struct {
	unexportedStruct
	unexportedIntType
}

type unexportedStruct struct {
	ExportedInt
	unexportedIntType
}

type ExportedInt int

func TestUnexportedAnonymousStructWithExportedType(t *testing.T) {
	s := unexportedStruct{11, 13}
	a := MyStructContainingUnexportedStruct{s, 12}
	const want = `{"ExportedInt":11}`

	b, err := Marshal(a)
	if err != nil {
		t.Fatalf("Marshal: %v", err)
	}
	if got := string(b); got != want {
		t.Errorf("got %q, want %q", got, want)
	}
}

@thoeni That looks like the correct behavior to me.

@jba I'll read the instructions on how to contribute and I'll push my proposal for this fix then :-)
Thanks for clarifying it for me!


Support customTestFor with multiple (different) nodes

The tests defined in nixos.hosts.<hostname>.tests currently import the host's configuration on each machine defined in the test (using extraConfigurations).
This is unfortunate when trying to test servers for example, where it would be nice to have a second machine act as a client (without the configuration of the host under test).
It would be cool to have the possibility to specify additional nodes with an entirely custom configuration.
It would be even better, if there was a way to test multiple hosts in conjunction, e.g. if I have two machines defined in hosts/server/default.nix and hosts/client/default.nix I'd love to be able to test them together, referring to them by their hostname.

I tried to make progress on this front to no avail. Anyone interested in pairing on this?


Migration issue: PRs broken after upgrade to 1.17.0

Description
After upgrading from 1.12.6 to 1.17.0, I'm running into an issue where any mergable PRs result in server error 500s. Merged PRs and WIP PRs display normally.
Relevant log lines:
2022/08/17 10:58:16 ...vices/pull/update.go:109:IsUserAllowedToUpdate() [E] [62fcc9c8] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/08/17 10:58:16 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [62fcc9c8] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests

I followed to recommended upgrade procedure (and also removed any custom templates we had in use previously). The upgrade seems to have gone OK otherwise. gitea doctor also doesn't show anything wrong.
If possible, a "quick fix" as a workaround for this error would be appreciated as we're currently unable to perform any merges in gitea which is a showstopper.
Gitea Version
1.17.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.37.1
Operating System
CentOS Linux 7.9.2009
How are you running Gitea?
From binary downloaded from gitea.io
Database
MySQL

You have to manually insert some record into repo_unit table.

What do I need to insert, exactly?

should be fixed by #20839

We are running 1.17.1 already and the issue still persists.

You need to update the repos involved to enable the PullRequests unit

You need to update the repos involved to enable the PullRequests unit

I would have expected that to occur with the db migration, so there is a potential solution that doesn't involve having to manually have people of every fork go into their repo settings to make this happen and not get stuck on this when they try to make a PR further down the line.

You need to update the repos involved to enable the PullRequests unit

Why do the forks need to have "pull requests" enabled when we only want pull requests on the parent? This issue still persists for us with 1.17.1. The only work around is to enable pull requests on the forks.

We just ran into this issue on dev.tt-rss.org. Asking people to enable PRs for their fork so that filing a PR against master repo wouldn't crash gitea with a 500 error seems incredibly strange to me.
Another strange thing is that PR was rendered properly until I logged in to review it, which is when everything just broke.
Hoping for a proper fix.

We just ran into this issue on dev.tt-rss.org. Asking people to enable PRs for their fork so that filing a PR against master repo wouldn't crash gitea with a 500 error seems incredibly strange to me.
Another strange thing is that PR was rendered properly until I logged in to review it, which is when everything just broke.
Hoping for a proper fix.

Do you have any logs?

Sure, here's some container logs:
2022/11/12 19:34:46 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb26-16] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:34:59 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcb33] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:34:59 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb33] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:35:01 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcb35] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:35:01 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb35] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:35:15 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcb43] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:35:15 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb43] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:36:15 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcb7f] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:36:15 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb7f] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:36:28 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcb8c] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:36:28 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcb8c] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:37:27 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcbc7] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:37:27 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcbc7] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests
2022/11/12 19:37:57 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [636fcbe5] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/11/12 19:37:57 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [636fcbe5] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests

I thought the DB was broken somehow but then I found this issue and asked the contributor to enable PRs on his repo, he did, which stopped the crashes.

@cthu1hoo if I'm not mistaken, did you switch your install from gogs?

Same here, the install has always been native Gitea... If a fork doesn't allow PRs, you cannot view PRs submitted for the parent repository.

I'm not mistaken, did you switch your install from gogs?

yes, you're right. I did switch from gogs, a while ago.

I wonder if you were affected by #16961?

I encounter the same issue with Gitea 1.17.3:

A public repository has been created in July 2021 (Gitea 1.14.3 was being used). Pull requests on the repository are enabled.
Since, Gitea has been regularly updated: 1.17.3 is used since several weeks.
Yesterday, the repository mentioned in the first step was forked. Pull requests on this fork are disabled.
A pull request targeting the first repository has been created.
=>

The error (HTTP 500) occurs when a logged used display the page related to this pull request.
If not authenticated, the error doesn't occur.

The logs:
2022/12/18 23:46:57 ...vices/pull/update.go:112:IsUserAllowedToUpdate() [E] [639f9861-2] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/12/18 23:46:57 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [639f9861-2] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests

The database content (270 is the id of the repository created in July 2021, 785 is the fork):
giteadb=# select * from repo_unit where (repo_id=785 or repo_id=270) ;
 id  | repo_id | type |                                                                                config                                                                                | created_unix
------+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------
 1671 |     270 |    1 |                                                                                |<PHONE_NUMBER>
 1672 |     270 |    2 | {"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":true}                                                                              |<PHONE_NUMBER>
 1673 |     270 |    3 | {"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false} |<PHONE_NUMBER>
 1674 |     270 |    4 |                                                                                |<PHONE_NUMBER>
 1675 |     270 |    5 |                                                                                |<PHONE_NUMBER>
 1676 |     270 |    8 |                                                                                |<PHONE_NUMBER>
 4845 |     785 |    1 |                                                                                |<PHONE_NUMBER>
 4848 |     785 |    4 |                                                                                |<PHONE_NUMBER>

The gitea doctor --all command doesn't report any related warning/error.

Looks like something(unit 2, 3, 5, 8) missed for forked repository.


Bidder user sync configs

@SyntaxNode
Added bidder user sync configs.
I found some user syncers without userSync urls:
"adocean", adapters.SyncTypeRedirect
"adtarget", adapters.SyncTypeIframe
"adtelligent", adapters.SyncTypeIframe
"adxcg", urlTemplate, adapters.SyncTypeRedir
"audienceNetwork", adapters.SyncTypeRedirect
"bmtm", adapters.SyncTypeRedirect
"criteo", adapters.SyncTypeRedirect
"dmx", adapters.SyncTypeRedirect
"gamma", adapters.SyncTypeIframe
"invibes", adapters.SyncTypeIframe
"mediafuse", adapters.SyncTypeIframe
"rtbhouse", urlTemplate, adapters.SyncTypeRe
"rubicon", adapters.SyncTypeRedirect
"verizonmedia", adapters.SyncTypeRedirect
"viewdeos", adapters.SyncTypeIframe
"vrtcal", adapters.SyncTypeRedirect

Also there are some configs where userMacro is empty:
"amx"
"connectad"
"consumable"
"conversant"
"gumgum"
"ix"
"pubmatic"
Please double check next configs, not sure about url:
"adnxs"
"grid"
"lockerdome" -> don;'t know about what url should be in this case
"trustx"

Also there are some configs where userMacro is empty:
"amx"
"connectad"
"consumable"
"conversant"
"gumgum"
"ix"
"pubmatic"

The AMX adapter looks to have strange behavior. I've email them to work through it. The others append the uid to the end of the redirect url instead of using a macro. I'll add a note to the default redirect url mentioning this important behavior.. I think that's better than copying it to each of these adapters. What do you think of add a comment? Something like:
userSync:
  iframe:
    url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
    userMacro: ""
    # connectad appends to the user id to end of the redirect url and does not utilize a user macro.

or something like this with the user macro omitted:
userSync:
  iframe:
    url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
    # connectad appends to the user id to end of the redirect url and does not utilize a user macro.

Please double check next configs, not sure about url:
"adnxs"
"grid"
"lockerdome" -> don;'t know about what url should be in this case
"trustx"

I left comments for adnxs and lockerdome. The others look correct.

Also there are some configs where userMacro is empty:
"amx"
"connectad"
"consumable"
"conversant"
"gumgum"
"ix"
"pubmatic"

The AMX adapter looks to have strange behavior. I've email them to work through it. The others append the uid to the end of the redirect url instead of using a macro. I'll add a note to the default redirect url mentioning this important behavior. I think that's better than copying the redirect url template to each of these adapters, although it would prevent accidental breaking changes in the future. What do you think? We could also add a comment to these adapters too, something like:
userSync:
  iframe:
    url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
    userMacro: ""
    # connectad appends the user id to end of the redirect url and does not utilize a macro

or something like this with the user macro omitted:
userSync:
  iframe:
    url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
    # connectad appends the user id to end of the redirect url and does not utilize a macro

Sorry I closed it accidentally, changed it back to "Open"

userSync:
  iframe:
    url: "https://cdn.connectad.io/connectmyusers.php?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb={{.RedirectURL}}"
    userMacro: ""
    # connectad appends the user id to end of the redirect url and does not utilize a macro

^ Added a comment at the end of file for syncers with empty userMacro


Texture.fromCanvas() and mesh.Rope() leak of performance

Hi, Pixi.js is totally new to me ! And in order to try it, I wanted to develop à little rope generator with a gravity physics.
For the texture of my ropes, I proceded that way :

Use the PIXI.mesh.Rope() method following this example : Textured Mesh.
Create the texture of the rope with canvas. Based on a repeated rope pattern :

This is the end result  :

You can find a complete example of my code on this codepen.
But here is a simplified snippet :
import { Container, mesh, Texture } from 'pixi.js';
const ROPE_WIDTH = 30;
const ropeLength = 300;
const scene = new Container();
const points = [...]; // Array of new Point(x, y) distanced by ROPE_WIDTH
...
function buildRopeTexture(callback) {
  ...
  const canvas = document.createElement('canvas');
  const context = canvas.getContext('2d');
  const nbrOfRopePattern = ropeLength / ropePatternPic.height;
  let i;
  for (i = 0; i < nbrOfRopePattern; i++) {
    context.drawImage(ropePatternPic, i * ROPE_WIDTH, 0);
  }
  callback(Texture.fromCanvas(canvas));
  // callback(Texture.fromImage(canvas.toDataURL()); // Same leak
}
buildRopeTexture(texture => {
  scene.addChild(new mesh.Rope(texture, points));
});

And it works ! But with a really poor fps :(
With only 4 ropes rendering, the fps goes down a lot.
To find out what does not work well, I tried to :

Use Texture.fromImage('rope.png') instead of a canvas : I can build up to 25 ropes before it leaks. Its better, but my rope texture gets distorted depending on its length. So its not what I wanted.

Use only Graphics method to draw my ropes : After optimization, 90 ropes (approximately 1000 Points) can be build before leaks.

Conclusion, even if my update() method is greedy, using mesh.Rope with a canvas it make the peeormance go down...
When I see other Pixi.js examples, I really think my test could be work better. But I don't know how to improve it.
Is there something wrong in my process ? How can I improve it ?
Thank you in advance <3

Hi @Jeremboo , each time you are adding a rope, you are also increasing the times the whole scene is rendered too.
heres a fixed version of your pen: http://codepen.io/anon/pen/JERwGm
perf is much better! Thanks!

Hum...
Thank for your time.

set rope.autoUpdate = false or set rope.cacheAsBitmap = true, or both


Fix board configuration typos in TTGO T-Beam

Describe at a high level the solution you're providing
This addresses two fixes for the TTGO T-Beam,

The compiler flag was incorrect, which caused build issues and the board defaulted to a Heltec board.
The OLED SDA/SCL pins were backwards, which caused the OLED to not properly initialize.

Is this a patch, a minor version change, or a major version change
Patch
Is this related to an open issue?
No
Additional context
Issues which lead to my patch were observed using a LILYGO TTGO T-Beam in PlatformIO

Pushed a commit which addressed the sign-off check

This is great! Thank you


Hikvision - pyHik Errors - List index out of range

**Home Assistant release (hass --version): .35.3
**Python release (python3 --version): ?
**Component/platform: hikvision
**Description of problem: See related website for further details - getting (list index out of range) in HA log when adding binary sensor platform for hikvision camera on specific firmwares
**Expected: Binary Sensor data enters into HA
**Problem-relevant configuration.yaml entries and steps to reproduce:

Running Hikvision (LTS) camerea on firmware 5.3.4 or latest 5.4.0

**Traceback (if applicable): None
**Additional info: See related site below which seems to be what the hikvision platform sensor is based off of, for others reporting the same as of 16 days ago. Another camera on 5.4.4 (EU, newer firmware available) works fine and brings in all data. Unable to update past 5.4.0 on LTS camera as that is the latest available EN release.
https://github.com/mezz64/pyHik/issues/1

Support for re-branded hikvision cameras was included in pyHik 0.0.7 via dynamic parsing of the XML namespace.  The hass version you are running still points to pyHik 0.0.6.  Your LTS camera should work fine with the next stable (0.36) release of HASS.

Great to hear. I look forward to testing it out when .36 is released. Cheers!


O365-Outlook-Activities No Longer Functional

It appears as though all functionality from the O365-Outlook-Activities utility has been removed by Microsoft.
Is this tool still being developed or is it dead?

I can confirm that this script is not entirely useless as Microsoft have revokes access to the API it uses. You will just get 403's.

THANKS FOR ANSWERING MY QUESTION PRIOR TO CLOSING JONATHAN

@LukeHealy's response was accurate. Additionally, the README has been updated to reflect the fact that Microsoft has restricted access to the API. Have a nice day.


ATTACH remote database doesn't work anymore

What happens?
Is it possible that attaching databases no longer work in in the latest dev versions? When running ATTACH 'https://raw.githubusercontent.com/tobilg/aws-iam-data/main/data/db/iam.duckdb' as aws_iam (READ_ONLY);, I see the following error:
Error: IO Error: Extension https://extensions.duckdb.org/v1.1.0/wasm_eh/httpfs.duckdb_extension.wasm is not available.

Accessing other files via http seems to work though. When trying to access https://extensions.duckdb.org/v1.1.0/wasm_eh/httpfs.duckdb_extension.wasm I see a 403 error
v258 which is v1.0.0 works with ATTACH statements. I tried a lot of newer versions, without success...
To Reproduce
Try this in the Shell:
https://shell.duckdb.org/#queries=v0,ATTACH-'https%3A%2F%2Fraw.githubusercontent.com%2Ftobilg%2Faws iam data%2Fmain%2Fdata%2Fdb%2Fiam.duckdb'-as-aws_iam-(READ_ONLY)~,load-httpfs~
Browser/Environment:
Chrome latest
Device:
MacBookPro
DuckDB-Wasm Version:
1.28.1-dev287.0
DuckDB-Wasm Deployment:
shell.duckdb.org
Full Name:
Tobi M.
Affiliation:
None

I think this is now working, can you possibly give it a try?
(fix was making sure httpfs extensions was build and deployed in the right spot)

Thanks, I just checked via https://shell.duckdb.org/#queries=v0,ATTACH-'https%3A%2F%2Fraw.githubusercontent.com%2Ftobilg%2Faws iam data%2Fmain%2Fdata%2Fdb%2Fiam.duckdb'-as-aws_iam-(READ_ONLY)~ and it works now.


radon encoding

@DSchober  @rsalek @LuisFF @khaug @djacob65 ,@sneumann
Who has a definition for that class? what is its purpose?
Does it refer to 'Radon transformation'. Did you mean 'Radon transform frequency encoding' ?
http://msi-workgroups.sourceforge.net/chemical-analysis/reporting/rubtsovetal_supp.pdf mentions the Radon as a type of encoding but no further detail is provided.

Relates to MRI imaging as far as I can tell;
http://en.m.wikipedia.org/wiki/Radon_transform
Best Wishes,
Reza

On 2 Apr 2015, at 14:11, Philippe Rocca-Serra<EMAIL_ADDRESS>wrote:
@DSchober @rsalek @LuisFF @khaug @djacob65 ,@sneumann
Who has a definition for that class? what is its purpose?
Does it refer to 'Radon transformation'. Did you mean 'Radon transform frequency encoding' ?
http://msi-workgroups.sourceforge.net/chemical-analysis/reporting/rubtsovetal_supp.pdf mentions the Radon as a type of encoding but no further detail is provided.
—
Reply to this email directly or view it on GitHub.

Same as Fourier transform;
http://en.m.wikipedia.org/wiki/Fourier_transform
Best Wishes,
Reza

On 2 Apr 2015, at 14:11, Philippe Rocca-Serra<EMAIL_ADDRESS>wrote:
@DSchober @rsalek @LuisFF @khaug @djacob65 ,@sneumann
Who has a definition for that class? what is its purpose?
Does it refer to 'Radon transformation'. Did you mean 'Radon transform frequency encoding' ?
http://msi-workgroups.sourceforge.net/chemical-analysis/reporting/rubtsovetal_supp.pdf mentions the Radon as a type of encoding but no further detail is provided.
—
Reply to this email directly or view it on GitHub.

Hi Reza, I also found that it seemed first and mainly applied to NMR based imaging.
But this is only one side of the question: is it a process part of the frequency encoding or just one of the frequency to time domain transformation.
Currently, it is asserted under 'data encoding', possibly solely on the basis of the hierarch found in the pdf produced many years ago by MSI. In the absence of information, reference or pointer to documentation, I have to ask the group.
Also, if it is more specific to imaging application, should it be there?
thx

I would guess "frequency to time domain transformation."
Let's keep it incase of future application.

On 2 Apr 2015, at 16:12, Philippe Rocca-Serra<EMAIL_ADDRESS>wrote:
Hi Reza, I also found that it seemed first and mainly applied to NMR based imaging.
But this is only one side of the question: is it a process part of the frequency encoding or just one of the frequency to time domain transformation.
Currently, it is asserted under 'data encoding', possibly solely on the basis of the hierarch found in the pdf produced many years ago by MSI. In the absence of information, reference or pointer to documentation, I have to ask the group.
Also, if it is more specific to imaging application, should it be there?
thx
—
Reply to this email directly or view it on GitHub.

Have checked and moved this under purgatory. (Google does not come upo with any mention in NMR context.)


Allow languageId === vba

In my VSCode the cls and bas files uses editor.document.languageId === 'vba'.
https://github.com/threatcon/vba-formatter/blob/a4276dc5e4db0cb8a1880ca8bdc028cec2b3bb9a/extension.js#L41
I monkey-patched and it seems to be working as expected.

Hello @sharky98 I have also seen the above.
Uhm, I am struggling with a certain macro that uses open and "#" and close.
I tried adding, removing and changing the vbsparser and vbsbeautifier.
Do you perhaps know anything about Javascript on how to fix these problems?


Notifications are processed simultaneously.

Since notifications may have multiple subscribers it's better to process it simultaneously because each of them may take much time.

Same as #52


kube-vip

add kube-vip

Already present into community bundle

Oups it is not

Is this about the binary only or some manifests to deploy it? We do have this: https://packages.kairos.io/Kairos/utils/kube-vip/0.8.4/ (used here)

I assume we want a bundle that will allow a deployment like the one described here: https://kube-vip.io/docs/installation/daemonset/ correct? It should accept all configuration options through the kairos config like the rest of the bundles.


Make the release run on mac as well

I think it's too early, but it does not matter.
If I remember correctly, there is a limit on the amount of MacOS machine usage, be aware of that.

I think it's too early, but it does not matter.
If I remember correctly, there is a limit on the amount of MacOS machine usage, be aware of that.

Really? I didn't see that in the docs. I only see a limitation on concurrent mac os jobs.
Since I work have a mac i would like to have a released version on a mac.


Firmware version (ARM) is wrong

In device information dialog the (ARM) firmware version is wrong: (Digits are swapped)

correct is (from PV-Master / SolarGo-App and firmware file): 17.17.53
-> the ARM version is not 35, correct ist 53

a bit offtopic, but how you get new fw versions? mine is 14.14.10:

Open a ticket at Goodwe (and wait, wait, wait, wait ;-)) oder do it by yourself: https://www.photovoltaikforum.com/core/attachment/342066-bluetooth-firmware-update-string-storage-de-v002-pdf/

I have a new inverter last month. The firmware version is 19.19. 51.
Is this firmware more recent and better?

Open a ticket at Goodwe (and wait, wait, wait, wait ;-)) oder do it by yourself: https://www.photovoltaikforum.com/core/attachment/342066-bluetooth-firmware-update-string-storage-de-v002-pdf/

Hi @smileyman-1 , thank you for your work and for this document! Did you have the chance to update an hybrid inverter, such as series ET? I haven't found a way to use the SolarGo app to upgrade the firmware using the files in the Google drive. The app only suggest an automatic update, which is surprisingly stuck in ARM 7 in my case. Is there another way to perform this update?
As you suggested, I also open at ticket at Goodwe and I'm currently wainting, wainting, wainting...

Hi @nelsnels,
I only have one from the EM series and one from the SDT series.
With the SDT G2 I connect via Solar Go via WLAN and download the bin file from Google Drive beforehand. However, this must be renamed, otherwise the name is too long. I can select this file via 'Manual file selection' and flash it.
With the EM inverter, the whole thing only works via Bluetooth dongle. Unfortunately I do not have a Bluetooth dongle.

Closing the issue as obsolete/invalid.
There is actually no bug there, the value is taken as it is.
It's juts encoded in hex and accidentally 53 = 0x35 ;-)


[BUG] Lua Error

When I start to spam a macro, I get his popup that won't go away. Tried several different macros.
Message: Usage: local result = C_Item.IsEquippableItem(itemInfo)
Time: Thu Apr 18 11:41:06 2024
Count: 16
Stack: Usage: local result = C_Item.IsEquippableItem(itemInfo)
[string "=[C]"]: in function IsEquippableItem' [string "@Interface/SharedXML/Chat/ChatFrame.lua"]:1048: in function <Interface/SharedXML/Chat/ChatFrame.lua:982> [string "@Interface/SharedXML/Chat/ChatFrame.lua"]:1275: in function ?'
[string "@Interface/SharedXML/Chat/ChatFrame.lua"]:5388: in function <Interface/SharedXML/Chat/ChatFrame.lua:5354>
[string "=[C]"]: in function ChatEdit_ParseText' [string "@Interface/SharedXML/Chat/ChatFrame.lua"]:5065: in function <Interface/SharedXML/Chat/ChatFrame.lua:5064> [string "=[C]"]: in function ChatEdit_SendText'
[string "@Interface/SharedXML/Chat/ChatFrame.lua"]:3246: in function <Interface/SharedXML/Chat/ChatFrame.lua:3240>
[string "=[C]"]: in function RunMacroText' [string "@Interface/FrameXML/SecureTemplates.lua"]:468: in function handler'
[string "@Interface/FrameXML/SecureTemplates.lua"]:690: in function <Interface/FrameXML/SecureTemplates.lua:672>
[string "@Interface/FrameXML/SecureTemplates.lua"]:704: in function <Interface/FrameXML/SecureTemplates.lua:697>
...
[string "=[C]"]: in function ChatEdit_SendText' [string "@Interface/SharedXML/Chat/ChatFrame.lua"]:3246: in function <Interface/SharedXML/Chat/ChatFrame.lua:3240> [string "=[C]"]: in function UseAction'
[string "@Interface/FrameXML/SecureTemplates.lua"]:364: in function handler' [string "@Interface/FrameXML/SecureTemplates.lua"]:690: in function <Interface/FrameXML/SecureTemplates.lua:672> [string "@Interface/FrameXML/SecureTemplates.lua"]:704: in function <Interface/FrameXML/SecureTemplates.lua:697> [string "@Interface/FrameXML/SecureTemplates.lua"]:746: in function SecureActionButton_OnClick'
[string "@Interface/FrameXML/ActionButton.lua"]:100: in function TryUseActionButton' [string "@Interface/FrameXML/ActionButton.lua"]:135: in function ActionButtonDown'
[string "ACTIONBUTTON11"]:2: in function <[string "ACTIONBUTTON11"]:1>
Locals: (*temporary) = "Usage: local result = C_Item.IsEquippableItem(itemInfo)"

This isn’t a GSE bug but a WoW bug.  You have a line in your template that is trying to call a talent you don’t know.
The solution is to check that all the spells on a line are known.
For example for hunters this is super triggerable:
/castsequence [nomod,known:120679,nochanneling,combat]   reset=combat  Bloodshed, Dire Beast, Dire Beast; [nomod,nochanneling,combat,known:321530] Bloodshed it is possible to not know both Dire Beast and Bloodshed.
If you take out the second known so its just /castsequence [nomod,known:120679,nochanneling,combat]   reset=combat  Bloodshed, Dire Beast, Dire Beast; [nomod,nochanneling,combat] Bloodshed It will throw this error.


Rainbow option doesn't work

I choose Rainbow while charging but it doesn't do anything. Maybe because my controller is full? How can I get rainbow without charging?

You are posting in the old, no-longer-maintained DS4Windows repository (Jay2Kings).
Trying posting your issue here: https://github.com/Ryochan7/DS4Windows/issues


Syntax highlight

@vanillajonathan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@vanillajonathan Thanks for the updates to the code blocks! #sign-off


Documentation on installation and use of the repo.

Is there a wiki page or some documentation on how to use this repo?

What do you want to use this repo for? I started this primarily for https://github.com/nvim-treesitter/nvim-treesitter, but it is created according to https://github.com/tree-sitter/tree-sitter. If you are familiar with that then you shouldn't have anymore problems using this, if you aren't, then maybe https://tree-sitter.github.io/tree-sitter/ is a good place to start.

I would like to use this in emacs with tree-sitter-mode. But on Windows, that requires a .dll. I tried building this repo and only got some .rlib files -- can it produce a cmake.dll or similar?

since this essentially a C library, I think it's possible to compile the files in the src directory and produce a cmake.dll. I currently don't have a setup for Windows so I can't actually try.

What do you want to use this repo for? I started this primarily for https://github.com/nvim-treesitter/nvim-treesitter, but it is created according to https://github.com/tree-sitter/tree-sitter. If you are familiar with that then you shouldn't have anymore problems using this, if you aren't, then maybe https://tree-sitter.github.io/tree-sitter/ is a good place to start.

I'd like to use this to analyze cmake project and then try to translate it to bazel.
You are right that getting familiar with tree-sitter is a good start, however, a quick usage would be a great way to reduce the learning curve.
By the way, what is the latest cmake version supported by this project ?

I'd like to use this to analyze cmake project and then try to translate it to bazel.
You are right that getting familiar with tree-sitter is a good start, however, a quick usage would be a great way to reduce the learning curve.

What language are you using to do this? The instruction depends heavily on that, so if you can tell what you're using, maybe I can help.

By the way, what is the latest cmake version supported by this project ?

CMake 3.28 AFAICT, since there's no new syntax introduced.

I'd like to use this to analyze cmake project and then try to translate it to bazel.
You are right that getting familiar with tree-sitter is a good start, however, a quick usage would be a great way to reduce the learning curve.

What language are you using to do this? The instruction depends heavily on that, so if you can tell what you're using, maybe I can help.

By the way, what is the latest cmake version supported by this project ?

CMake 3.28 AFAICT, since there's no new syntax introduced.

I want to use python for the first edtition, and then C to get it speeded up.
I found there's a python binding of tree-sitter named tree_sitter, is that a good way to use tree-sitter in python?
Any guidance is helpful, thanks.

could you give the link to the Python binding? I haven't done anything like that so I'm not sure myself

could you give the link to the Python binding? I haven't done anything like that so I'm not sure myself

https://github.com/tree-sitter/py-tree-sitter

I failed to even import the library so I don't think I can help you with the Python version. Maybe you can try Rust since it's more straightforward


Signature for ETS6

Hello !
It's not a bug but more a question..
I've changed some information on different XML. And I've automated some procedures to save time...
The problem is that I cannot reimport my knxproj into ETS because of signature not valid:
In the past I was using this tool :
https://github.com/KARDUINO/SignKnxProd/blob/master/knxsign.cs
But seems not working on ETS 6.
Is your tool able to signe my knxproj file ?
Thanks a lot for your answer !

This Tool ist not for signing Projects.


Customization options

I like some things about this interface [mainly ease of voice stuff, esp VAD] (though after some digging seems it heavily related to some Japanese stuff, whatever though...)., but customization options are, limited.
There seems to be system prompt, not changeable in interface, it seems like it should be changeable via .env.local var NEXT_PUBLIC_SYSTEM_PROMPT , but somehow it seems to not have effect. Though even if it did there is a problem that in code there is some prompt crafting, which has 'Amica' hard-coded, so name change would likely be funky anyway. I'm not sure what is preventing variable loading from .env.local or maybe I'm doing something wrong... will keep working on it, but hard-coded name is not good.

Hm, something weird was happening still. I know about ui but i was testing it emty, and expeted one from var to be used, but it seems it "knew how to tow the line" :) anyway after more testing seems ui one has decent enough effect. Would be nice to be able to quickly switch between peronas/prompts though.

I just pushed up change that allows you to change name :)
Yes I agree. I started on a share / import pane but its still pretty minimal. I hope to make it so that you can design character and send someone a link and they can import it.

You mean sorta have all char info in base64 url pram or how?

I tried doing base64 originally but found it to be well, too long. I guess I should have seen that coming :D
Now, I have this connected to db via supabase- It's publicly accessible, but still require internet.
I think exporting and importing with some file format make a lot of sense, but I think maybe that best for new issues and I'll close this.


added missing "custom" section from the ocio config

Was causing a major break when using custom ocio conf packages in nuke

Hey @rontown, thanks for your input!
A few versions ago, we removed a certain feature. We did this because we now use the OCIO environment variable workflow. Once it's set and Nuke recognizes it during bootstrap, it completely overrides any options.
The custom option has to be linked with the cutstomOCIOConfigPath root knob. But since the OCIO workflow was overriding it, there was no need to keep those knob configs.
More info can be found here colorspace docs

explained here https://github.com/ynput/OpenPype/pull/5900#issuecomment-1814316046

Thanks for the feedback.
I guess it's not exactly clear in the docs, or you aren't testing it in the way which is used in production.
Currently when setting the an ocio custom path/config file on the ayon server this doesn't work when loading nuke, as nuke requires the "custom" field to be selected in order to use the env var ocio set from the server.
This is causing immediate and major breaks in nukes colour workflow.
Perhaps the team would require some additional experienced compositor testing/feedback on issues like these of which I'm happy to help.

Currently when setting the an ocio custom path/config file on the ayon server this doesn't work when loading nuke, as nuke requires the "custom" field to be selected in order to use the env var ocio set from the server.

Can you please share the OS and Nuke version that demonstrates the issue? I do not se it in Nuke 14 + Windows 10

Nuke 14.0v6 and Windows 10. If custom isn't selected in the nuke colour settings this will have the same effect in any Nuke version and OS.


[Feature] Add Overloaded FIllAsync() and TypeAsync() Methods That Take int, double, float, ect.

Right now, FillAsync() and TypeAsync() only accept string inputs. There are many times the data input needs to be an int, double, float, etc. and Playwright for .NET does not support this. Changing the input data to a string is not difficult, but then the page being tested often throws an error as it is expecting some form of number as input rather than a string.
I can't be the only one running into this problem.

We have this feature request upstream: https://github.com/microsoft/playwright/issues/16660
Internally inside the web, an input is always a string, so it would do ToString() internally anyways.


[QST]how can i solve 'Unmanaged memory use is high'  problem  for large  criteo  dataset

https://nvidia-merlin.github.io/Merlin/main/examples/scaling-criteo/01-Download-Convert.html#conversion-script-for-criteo-dataset-csv-to-parquet
According to the content given by the official website, I run the case, but I end up reporting an error.
2023-02-20 14:40:41,068 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,158 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,258 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,358 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,457 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,557 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,658 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,758 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
numpy.core._exceptions.MemoryError: Unable to allocate 1.46 GiB for an array with shape (195841983,) and data type object
2023-02-20 14:40:41,858 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:41,957 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:42,058 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:42,157 - distributed.worker_memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 238.41 GiB -- Worker memory limit: 251.34 GiB
2023-02-20 14:40:46,186 - distributed.nanny - WARNING - Worker process still alive after 3.999984169006348 seconds, killing
Exception in thread

The data is the second decompressed data file(/raid/data/criteo/crit_orig/day_1).How Do I Modify Parameters in LocalCUDACluster{} and nvt.Dataset() to Solve the Problem?

After the jit_unspill, rmm_maximum_pool_size, and rmm_pool_size parameters in LocalCUDACluster and the part_size parameter in nvt.Dataset() are added or modified, the problem persists.

@gukejun1 is that warning  WARNING - Unmanaged memory use is high. preventing you to convert csv to parquet? if yes, please reopen the ticket.

@rnyak Yes,i can't  . but  i solve it by adding  code  in   nvt.Dataset( part_size="512M" )


Run jasmine node with  --harmony flag for ES6 generator support

I am currently trying to use jasmine-node to run nodejs 0.11.x code with generator support. Unfortunately, I can't just simply run jasmine-node --color --autotest --harmony server/tests/GeneratorSpec.js
I was able to run manually using:
node --harmony /lib/jasmine-node/cli.js --color server/tests/GeneratorSpec.js
but when adding --autotest, it just throw the error: Unexpected token *]
How i can run jasmine with hamony flag.
Thanks!

+1

+1

+1

Where does the line baseArgv.splice(1, 0, '--harmony'); get added in autotest.js?

+1

+1

+1

Since there are people is still +1-ing this, i have a workaround.
First, node v7.3.0 already supports generators. So you don't have to keep doing this.
That being said, if your other harmony feature doesn't work out of the box (e.g. harmony_async_await), do the following (examples on windows - linux should be simple enough to do).

First find out where the jasmine command is coming from. On windows, where jasmine will do it.
Open up jasmine.cmd, look for the following:
"%~dp0\node.exe" "%~dp0\node_modules\jasmine\bin\jasmine.js" %* node "%~dp0\node_modules\jasmine\bin\jasmine.js" %*
and add your flags after the command to node.

E.g. node --harmony_async_await "%~dp0\node_modules\jasmine\bin\jasmine.js" %*

+1

Since people are still +1-ing this...
First, ES6 generators are definitely working out of the box as of the node 7.3.0. A workaround for those features which are not available*, such as harmony_async_await is as follows.
Begin by locating the jasmine command with
where jasmine or which jasmine
For windows, grab the following lines
"%~dp0\node.exe" "%~dp0\node_modules\jasmine\bin\jasmine.js" %*
node "%~dp0\node_modules\jasmine\bin\jasmine.js" %*
and make them look like:
"%~dp0\node.exe" --harmony_async_await "%~dp0\node_modules\jasmine\bin\jasmine.js" %*
node --harmony_async_await "%~dp0\node_modules\jasmine\bin\jasmine.js" %*
Linux instructions should be rather similar. Actually i think Linux people can simply alias node out into node with the flags. http://www.linfo.org/alias.html
*I'm not sure what the autotest.js the OP was talking about


HTTP Proxy

would be cool to have a http-proxy inside the VM just like https://github.com/codekitchen/dinghy#dns installing the container isnt an issue, the local dnsmasq stuff is a bit more tricky. would love to see this feature :)

What's the main use case? The docker-osx-dev setup.sh script adds dockerhost to the /etc/hosts file, so you should be able to test your apps by going to http://dockerhost:12345.

yeah for sure, but it would be cool to define subdomains in your docker-compose file and those will be resolved into the correct container, so you dont have to fiddle around with ports  (if you have running multiple web-apps on port 80 in your system)
so frontend.dockerhost resolves to the frontend-container
backend.dockerhost resolves to the backend-container
api.dockerhost resolves to the api-container
and so on

dinghy uses https://github.com/jwilder/nginx-proxy for that

Ah, interesting. Couldn't that also be done by updating the /etc/hosts file? That's what Docker does within containers for when you use the link flag.

xeah sure that will work too, tested it myself with a running nginx proxy. It works like a charm. But etc/hosts isnt very flexible. If we add a http hosts we must rerun provisioning. With dnsmasq it would work all the time without updating some config Files and reloading

Inside the Containers docker can mangle up /etc/hosts but please not on my hosts ;)

The hosts are defined in the docker-compose file. So very flexible

Yea, it's just a trade off between an extra dependency that you have to install/configure/manage, versus a known, simpler solution that already works and does 90% of what you want. Simplicity tends to be a better option, and having the script make a backup of /etc/hosts is not particularly hard (and probably a good idea anyway).

Mh its a One time Installation in your setup.sh

I think docker-osx-dev is living in the middle of being a re-usable component and being the docker development tool (the Tool).
To be the Tool, docker-osx-dev would need to include this functionality, just like dinghy and dash.
Unfortunately, @brikis98 is right and this takes a lot of additional effort and comes with more dependencies.
I feel docker-osx-dev is best at being a component in a project like the Tool.
Thoughts?

@dekz: I'm not against a PR that would add this. I would feel better about it if we had integration tests working though. See #97.


Change convention assets folder - Brunch 2.0.1

From what I saw it's possible to change the folder's name of the assets folder, is it possible to change where the folder is (Move it from app folder to the root folder) ?
If it's possible, what I need to set in the brunch-config file ?
Kind regards,
Jérémie

The first one is paths.watched, the second one is paths.public. Check out the docs: https://github.com/brunch/brunch/blob/master/docs/config.md

In paths.watched how I can say the entity "root" ? Like that ?
paths:
  watched: ['']

Not possible i'm afraid.


Keptn End to End Delivery tutorial the evaluation does not fail for 1.2 version

Step where Keptn should not release version 1.2 of the application to prod does not work as expected. SLO is satisfied and 1.2 version is deployed.
ubuntu $ kubectl -n fulltour-qa describe pod -l app=helloservice | grep Image:
    Image:          ghcr.io/podtato-head/podtatoserver:v0.1.2
ubuntu $ kubectl -n fulltour-production describe pod -l app=helloservice | grep Image:
    Image:          ghcr.io/podtato-head/podtatoserver:v0.1.2

Since Keptn V1 has reached EOL on December 22nd, 2023, this issue has been closed.


multiple hashtags

Hello,
I'm looking for a way  to be able for my stream to display images from more than one hashtag.
Thank you

Do you want the images to come from any of the tags, or does each image need to have all the tags?

any of the tags

You can use multiple feeds for that. See #12.

thank you so much!!!!


Correct return types for events$EventEmitter .on, .once, etc

Fixes https://github.com/facebook/flow/issues/2592

+1


Please add license file

Please consider adding a (MIT?) license file so that rights of use or modifications are defined.

done!


Throw in leapThroughEndOf

Bug description
https://app.circleci.com/pipelines/github/facebookincubator/velox/35045/workflows/6262247c-e19d-4270-af05-fcfbc5dc3660/jobs/230230
System information
NA
Relevant logs
No response

inline int64_t leapThroughEndOf(int64_t y) {
// Add a large offset to make the calculation for negative years correct.
y += 400000000;
if (y < 0) {
VELOX_DCHECK_GE(y, 0);
}
return y / 4 - y / 100 + y / 400;
}

this was added 6 days ago when the fuzzer was not working @Yuhta  can you help looking at this?


pg_connect crash when connecting to PostgreSQL

Describe the bug
PHP-FPM crash when connecting to PostgreSQL
PHP versions
8.3.1
To Reproduce
On MacOS sonoma 14.2.1
brew install postgresql@16 ( create test db )
brew services start postgresql@16
brew install<EMAIL_ADDRESS>brew services start php
brew install nginx ( configure simple server with fastcgi_pass <IP_ADDRESS>:9000 )
brew services start nginx
In console mode, pg_connect work perfectly. In fpm mode pg_connect crashes and nginx return 502.
I found similar issue https://github.com/Homebrew/homebrew-core/issues/155651 , and try to downgraded openssl to 3.1.4.
But when i install php [brew install<EMAIL_ADDRESS>openssl 3.2 installed force again and php use openssl 3.2.
How can i downgrade openssl to 3.1.4 in php ?

@ataklychev
This was patched on Homebrew's side to work with openssl 3.2.0, Please reinstall your postgresql@16 and libpq formulae.
brew update
brew reinstall libpq postgresql@16

@ataklychev
This was patched on Homebrew's side to work with openssl 3.2.0, Please reinstall your postgresql@16 and libpq formulae.
brew update
brew reinstall libpq postgresql@16

It did not help


Lists of dtypes (with type hints?) not iterable

Please refer to our FAQ and look at our known issues before opening a bug report.
Describe the bug
The modified verify_in_list functionality is failing for the tiling checks in toffy related to dtypes
To Reproduce

this will need to be addressed before we can move to the newest version of ark

I have addressed this in https://github.com/angelolab/ark-analysis/pull/592/commits/f9da24a21cec8f8c383788201af9b1af5a6f2d37. I will copy the contents over into a new PR for it.


Generated documentation + try.net

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would like for try.NET to be "GOTO" software for generating documentation and creating custom/extending pages of generated documentation with examples. You already have docs.microsoft.com, what if you open-sourced the software that is generating them (with ability to contribute on GitHub) and then merge it with try.NET so that the examples in that generated documentation would "come alive"? I think that this would be something everybody would want.
Yes we have doxygen and docfx. I tried doxygen, it doesn't look good or great... But if you would have OSS solution of docs.microsoft.com for everybody to generate docs from code + modifications by hand it would be game changer.
Describe alternatives you've considered
Combining docfx and try.NET somehow. Haven't tried to do that yet, but maybe it is possible.

Yes we have doxygen and docfx. I tried doxygen, it doesn't look good or great... But if you would have OSS solution of docs.microsoft.com

Iirc Microsoft is dog-fooding a (modified / extended) version of DocFX to build documentation published on docs.microsoft.com.
If any integration is supposed to happen, then imho the ideal way to go would be to have the interactive sample capabilities of try.NET be surfaced as an extension to DocFX's code snippet notation.

I have a related question to the issue. Since try,net uses markdown and Blazor. It's there support in github pages to host try.net generated markdown pages?
This way could be possible to generate documentation that mixes the API, static markdown pages with other information like interactive examples and make a fiddle for users.

@agarcialeon
Is the runtime footprint for Blazor already small enough to facilitate easy download for hosted documentation on the public internet, then? I recall hearing that it was still quite large. Multiple megabytes.


Relationships: Document filtering abilities

See https://github.com/keystonejs/keystone-5/pull/81 for context

[ ] The MongoDB JOIN/Pipeline code: https://github.com/keystonejs/keystone-5/issues/223
[x] The GraphQL API
[ ] Various examples
[x] AND/OR filtering: https://github.com/keystonejs/keystone-5/issues/224

@jesstelford could I get clarification on what it means to document the MongoDB JOIN/Pipeline. I think we've covered off most of the rest.

Yep, this one is done 👍


cookbook not able to install oracle jdk, hangs during download from oracle

==> default: [2015-11-04T17:39:50+00:00] INFO: Adding jdk to /usr/lib/jvm/jdk1.7.0_75_alt
==> default: [2015-11-04T17:39:50+00:00] INFO: Processing package[curl] action install (/tmp/vagrant-chef/2897aea8097e903c2ce281330b6646fe/cookbooks/java/providers/ark.rb line 72)

I haven't been able to successfully install the Oracle JDK for almost 2 weeks now.
Seeing this:
==> default: [2015-11-04T16:58:00+00:00] ERROR: java_ark[jdk] (svc::default line 26) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 600s:
==> default: Command exceeded allowed execution time, process terminated
==> default: ---- Begin output of  curl --create-dirs -L --retry 0 --retry-delay 2 --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz -o /var/chef/cache/jdk-7u67-linux-x64.tar.gz  ----

I have tried the latest version of the cookbook to no avail.
Any suggestions here?

bizzarely, i can download it outside of chef w/ the same curl no problem:
$ curl --create-dirs -L --retry 0 --retry-delay 2 --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz -o ./jdk-7u67-linux-x64.tar.gz  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   288  100   288    0     0    215      0  0:00:01  0:00:01 --:--:--  1846
100  135M  100  135M    0     0  3486k      0  0:00:39  0:00:39 --:--:-- 4548k
$ ll
total 278080
-rw-r--r--  1 stantonk  staff   136M Nov  4 11:49 jdk-7u67-linux-x64.tar.gz

Also works fine in a vanilla ubuntu VM doing the curl manually.
vagrant@vagrant-ubuntu-trusty-64:~$ curl --create-dirs -L --retry 0 --retry-delay 2 --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz -o ./jdk-7u67-linux-x64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   288  100   288    0     0    545      0 --:--:-- --:--:-- --:--:--   862
100  135M  100  135M    0     0  2577k      0  0:00:53  0:00:53 --:--:-- 2981k

Environment vars? same user? Proxy? I'd try putting the file on a local mirror so you don't have to rely on oracle as well

@erichelgeson env vars / user / proxy haven't changed since it worked. local mirror fixes issue of course. ¯_(ツ)_/¯

Ya, unsure... I've seen others have the issue but I'm unable to reproduce or their issue goes away after a few days. If you do find something please let us know. I just ran the whole test kitchen suite and downloaded it from oracle ~10x without issue.

@cswingler didn't you figure anything out on this?

@stantonk not really, it just sort of randomly doesn't work. My speculation is that Oracle eventually just blacklists you if you download things too many times in a period of time, but I've been able to download from Oracle reliably for the past two weeks.

I have to change the "connect_timeout" attribute to a minimum of 900 seconds for it to sometimes work...
I tried to create a vagrant box which already provisions the java installation (that's the biggest bottleneck when testing locally with kitchen), but even when the package is installed, the java steps takes a few minutes until it realizes it's already installed.
Might be that it's downloading the package all over again for some reason....

We have faced this issue yesterday where java recipe for oracle-java install was failing.
Seems like an issue from Oracle side . It started working after 8-10 hours.
We are changing the oracle-java install recipe to pull java binary from s3 .

This hasnt really been an issue (client side) lately so i'm going to close this. Oracle will always have outages so hosting your binaries on S3 or artifactory is the best.


Control widget on controller initialization

Hello!
Thank you for this great module.
I have a use-case where I need to control initial state of the accordion according to the hash in the URL. I have several panes and each pane has a unique ID. If URL contains this ID I want to expand this tab on view initialization.
After some fiddling, I've came up with this solution:
var paneId = $location.hash();
if (paneId) {
  $scope.$on('$viewContentLoaded', function () {
    var paneIndex = $('#' + paneId).closest('v-pane').index();
    if (paneIndex > 0) {
      var cancelWatch = $scope.$watch('accordion', function (accordion) {
        $timeout(function () {
          accordion.expand(paneIndex);
        }, 0);
        cancelWatch();
      });
    }
  });
}

I have to use $scope.$on('$viewContentLoaded') and $scope.$watch('accordion') because I can't access accordion on scope directly, looks like it takes time to initialize it. This works, but it's very cumbersome approach.
Do you see a better way to approach this problem? Maybe we could somehow improve the design of the directive to address this issue?
I think, if we could give unique names to panes, e.g. my-super-pane than we could tell component to initially expand a pane for us, e.g. <v-accordion expand="my-super-pane">.
What do you think? Thank you!

Hi!
Please download the latest release (1.4.0) and change your code to something like this:
Template:
<v-accordion id="my-accordion" control="myAccordion">
  <v-pane id="{{ pane.id }}" ng-repeat="pane in panes">
    <v-pane-header>
      {{ ::pane.header }}
    </v-pane-header>

    <v-pane-content>
      {{ ::pane.content }}
    </v-pane-content>
  </v-pane>
</v-accordion>

Controller:
$scope.$on('my-accordion:onReady', function () {
  myAccordion.toggle(yourSuperPaneId);
});

Basically now you can listen for yourAccordionId:onReady event and toggle the pane by it's id.
What do you think?

Oh, thank you Lukasz! This is much better than my current implementation for sure ))
However, I think that we shouldn't move this logic to controller itself. The more Angularish approach would be to implement it on a directive level in my opinion, e.g. add something like I've mentioned earlier: <v-accordion expand="my-super-pane-name">.


MSAA causing texture bleed on sharp edges

Godot version
3.5.1 stable
System information
Windows 10, GLES3, RTX 3080
Issue description
When using a fairly simple geometry mesh with pixel-art textures, where filtering for albedo texture is turned off, and high precision of presentation is important, turning on MSAA (at any level) causes a single pixel of bleed on the edges of faces. That pixel is borrowed from a different face, that is bordering it on the texture file. If the colour is starkly different, it leads to jarring edges.

This report is from Windows 10 machine with RTX 3080, but is also reproducible on Linux and SteamDeck.
Steps to reproduce

Import a simple model into the scene (cube is fine)
Add albedo texture, where some of the faces are bordered with other faces or fillers with jarringly different colour
Disable texture filtering
Enable MSAA
Observe edges of the cube

Minimal reproduction project
I have created a project that reproduces the issue:
https://github.com/czlowiekimadlo/Godot_texture_bug
Or:
Godot_msaa_texture_bug.zip
In the project, run it, or open the test scene and run it. Pressing any input bound to ui_accept will switch between MSAA modes 0 and 2. Observe the edges of the model in the middle of the screen.

Duplicate of https://github.com/godotengine/godot/issues/16337.