Slow to load Library

Hardware/Software: I'm running the beta 3 image on my Raspberry Pi on the latest commit.
Issue: The server is quick to load the homepage, but going to the library clocks for over 30 seconds with 26 recipes. Is it reading every recipe I have in the folder before loading the page? I assume it is to get the names to display. Is there any way to change this set up to speed up the reaction time? Possibly an SQLite db with a basic name -> json mapping? That could also allow for a checkbox in the UI of which recipes the devices can see.

I just created 30 dummy recipes on my pi 0w and don't see this, the load is instant.  Try clearing your browser cache.  Also could be something with your network, but i don't know how you're setup

Let me play around with it, because I'm seeing it with different devices. It actually looks like anything past the homepage takes over 30 seconds to view.

So I've tried this with many devices and still seeing the issue. I will note that I am connecting to the pi from my main network (so <IP_ADDRESS>:8080), I don't think that would cause this lag, but wanted to note it. I also watched my CPU and RAM on the Pi while clicking through and saw little to no fluctuation. After getting past the homepage, every other page loads instantly. It's just leaving the homepage is where the issue is at. Something else to note is that I have 7 devices showing on my homepage (2 Pico C, 1 Still, 4 Ferms), and none of the are currently logging.

Wonder if that has to do with the socketio stuff as if anything that is what is different about from index page and rest of the pages. Are any of the devices sending session data?

Not yet, I haven't shifted to the offline server yet (that will be happening on my next brew). So right now the server is just housing my recipes and configured for all of my devices once I switch.

So right now is just aliases for the device with no traffic? Hrm, interesting.
Let us know if you find anything, so far I haven't seen that in the various setups I've configured with.

Might be worth getting a zip of your picobrew_pico so we can try to run on our Pi's - there may be other files causing issues (Mac related)?

Interesting find: It works with no issues in Safari 13.1.2, but has issues in Chrome 86.0.4221.4.

Interesting find: It works with no issues in Safari 13.1.2, but has issues in Chrome 86.0.4221.4.

I'm on 84.0.4147.125 - (latest for win x64, or at least that's what the about section says) and I don't see it.  The only browser issue I've run into is tabulator not working with Internet explorer

Well that makes things more interesting. That same version on my Mac and 84.0.4147.111 on Android is having issues

did you clear your cache/history?

I've done all my testing in incognito/private tabs to get around all the cache issues. I'll try actually clearing everything and see how that turns out.

Still seeing the issue after clearing cookies and cache from "All Time" and quitting/reopening the app.

Haven't messed around too much with it, but maybe try opening a developer tools page ("Settings->More Tools"), and look at the timeline in the network tab, might give a hint

Ohh good call, didn't think about that.
It sits here for a bit:

And then eventually gets here:

Can you send me a zip of your folders or at a minimum your recipes?

The only thing not "stock" is my config.yaml and these recipes. Everything else is from the latest image and commit.
pico.zip

The only thing not "stock" is my config.yaml and these recipes.  I have a non-reproducible issue :(

If you know python, you could add a bunch of prints in app/main/routes_frontend.py around line 266 @main.route('/pico_recipes') def _pico_recipes():
That would probably help you narrow it down a little

I've dabbled in Python and actually used it in college, but I main C# at my day job. I'll play around in the code and see if I can come up with anything.

Just to verify I'm not crazy: AS SOON as I click Library it kicks off _pico_recipes(), correct? If so, it took 45 seconds to hit my first print before global pico_recipes.

Yes.. were you monkeying with any of the nginx or setup for the pi?

I have not, the only things I've change were config entries in firstboot (before starting the image) and then the config.yaml

Hey, guys.
I am having an issue as well. looks like it affect chromium  (new edge and chrome) IE I can navigate from menu item to menu item instantly .  Chrome/edge just sits there forever and eventually loads the page.
If I restart my docker container, edge and chrome are fast for about 2 mins. then back to super slow.
I do have over 200 recipes in there though

@msav72 is it from the homepage to any other, or just to Library?

It is slow from the home page to the either of the sessions. I get waiting for down at the bottom for about 45 secs to 2 mins
I would Use IE but IE does not show the new recipes data or any of the picofirms and pico still on the home page.

Do a git pull - I just updated tabulator to 4.7.2 (from 4.7.1) - not sure if it'll resolve anything though, but its worth a shot.  Going to the about page will take a little time to load since there's background work if you're on a PI to get AP/host info, however if you went from the home page to the Import page on Pico, that'd give a good indication that the issue lies in Tabulator.  Even without issues, I notice a slight lag (couple ms) when expanding any cards - if you open developer tools you'll see warnings:
Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive.

I still see the issue after getting the latest and even restarting the pi. I did see an instance where right after the homepage loaded again, from doing an "Update/Restart Server", I flipped to the about screen to verify I was running the latest and it was really quick. Then I went back and tested it and found the slowness back.

I still have the issue with:
Chrome: 84.0.4147.135
Server: 24b73a0

I just re-imaged and saw the fast transitions. Added my recipes, still see the speed. Add 1 Pico C and 1 Still in config, still see speed. Add the rest of my devices (2 Pico, 4 Ferms, 1 Still), sloooow. Flip config back, fast.
My thought on re-imaging was that there was a library that I updated that the site didn't like. But it looks like there is something with my config entries. Everything is in quotes, see redacted below:
aliases:
Zymatic:
#ProductID : Nickname
ZSeries:
#ProductID : Nickname
PicoBrew:
#ProductID : Nickname
"fe84" : "Pico"
"e7ff" : "Pico2"
PicoFerm:
#ProductID : Nickname
"5c62" : "Ferm1"
"6088" : "Ferm2"
"6049" : "Ferm3"
"2c19" : "Ferm4"
PicoStill:
#ProductID : Nickname
"30f8" : "Still"

k - so this is repeatable - I have 7 devices up.. page loads between recipes/sessions is fine, its just navigating from the main page - i think something w/ socketio is causing the issue.. i'll take a look when i get a chance

do a git pull.. should be good

I'm still seeing the issue on 28037b9, even tried rebooting the pi

Can you try force refreshing/a new private page? It was a change in the js/html,  so it might still be cached

That was it! Works in incognito!


SimpleDefect class does not meet MSONable requirement

Test code:from pydefect.input_maker.defect import SimpleDefect

sd = SimpleDefect(in_atom="A",out_atom="B",charge_list=[0,1,2])
sd_dict = sd.as_dict()
SimpleDefect.from_dict(sd_dict)

Result:---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
Cell In[3], line 5
      3 sd = SimpleDefect(in_atom="A",out_atom="B",charge_list=[0,1,2])
      4 sd_dict = sd.as_dict()
----> 5 SimpleDefect.from_dict(sd_dict)

File ~/packages_dev/vasp_workflows/.venv/lib/python3.9/site-packages/pydefect/input_maker/defect.py:18, in Defect.from_dict(cls, d)
     16 @classmethod
     17 def from_dict(cls, d):
---> 18     return cls(name=d["name"], charges=tuple(d["charges"]))

KeyError: 'name'

Reason

SimpleDefect inherit from_dict() from parent Defect class, which is not compatible since SimpleDefect has a different __init__() method.

Possible fix plan (tested)class SimpleDefect_MSONable(SimpleDefect):
    @classmethod
    def from_dict(cls, d):
        _d = {k:v for k,v in d.items() if not "@" in k}
        return cls(**_d)

Thank you for your post. I fixed the issue, which is valid from ver 0.9.5.


"connection refused" trying to access my sabisu web portal

Hi guys.
Just installed Sabisu (gem) and configured my config file as:
{
"SABISU_ENV": "production",
"PORT": 3000,
"CLOUDANT_USER": "my_user",
"CLOUDANT_PASSWORD": "my_password",
"CLOUDANT_URL": "user.cloudant.com",
"CLOUDANT_CURRENTDB": "sensu_current",
"CLOUDANT_HISTORYDB": "sensu_history",
"API_URL": "sensu_api_server",
"API_SSL": false,
"API_USER": "guest",
"API_PASSWORD": "guest",
"API_PORT": 4567,
"NOAUTH": true,
"SSL_ONLY": false,
"CUSTOM_FIELDS": [
{
"name": "datacenter",
"path": "client.datacenter",
"facet": true,
"type": "str",
"index": true
}
]
}
Configured a vhost in my httpd server to run this and started the service: $ sabisu -c config.json
I'm getting 503 connection refused errors. Could this be related to a SSL issue?
Thanks!

@marianogg9 did you figure this out? appears i'm having the same issue...the UI renders for sabisu, but it won't render any json data and displays a 503 status. thanks.


local: require 'spin' in the PATH

👋  folks,
I was just playing with hippo + spin for the first time and for a few reasons spin wasn't in the PATH of my installer shell. I was a little confused as to why things weren't loading before I opened up the Nomad UI and saw the failures 😅.
This change requires spin to be present and documents the requirement.

Thanks, I think this probably does make sense.

Thanks! - Just noticed this repo requires signed commits - I'll sign this tomorrow, haven't needed GPG in a bit and need to configure this laptop to use my yubikey keys 😅

signed! (and i finally got around to fixing gpg on my laptop, so double win)

Thanks a lot for your contribution, @endocrimes!


align fuzzing deps

Signed-off-by: Ilan<EMAIL_ADDRESS>@pjbgf as discussed in https://github.com/fluxcd/flux2/issues/2552

@ilanpillemer you will need to sign-off the commit to pass the DCO check.

Can you please also squash all the commits and name it based on this PR's title?

closing this in favour of #644


VS COde integration - newbie question - meta data is not reflected in the generated html

Thanks for the tool.
I am trying to use this in VSCode for a sample md file
I specified the metadata for the md file like
--- Java:
 colorFreezeLevel: 2  initialExpandLevel: 1
--- # Java
`## Jakarta EE
I was expecting the colorFreeze & initialExpand not to be shown as a node and only to be considered for drawing the mindmap. However the metadata too is shown in the mindmap.
Can someone help me to resolve this?

There should be an empty row after the second ---, and all options should be under markmap.
---
markmap:
  colorFreeLevel: 2
  initialExpandLevel: 1
---
                  <!-- empty line -->
content here


Make the display of PR number in tree view configurable

Closes #4463
Also updates the description node to always show the PR number, rather than just in the tooltip.

Thanks a lot for adding this :)


Remove outdated reference to members tab

Someone in the Rancher users slack couldn't find the place to add members to a project because this doc was outdated https://rancher.com/docs/rancher/v2.6/en/project-admin/project-members/#adding-members-to-an-existing-project
In the new UI you get there through the context menu.

Resolved


[bug] Coordinate-focused crystal not attuning

Mod Version (e.g. Fabric 0.3.4):
1.2.10-1.21-fabric
What you expect to happen:
When using a coordinate-focused crystal while facing a side of the block, the position of that block should be registered in the crystal, probably indicated in the tooltip. Then, when placed on a casting lectern with a valid spell, that spell would happen
What actually happens:
When using a coordinate-focused crystal while facing a block, the crystal doesn't move, its tooltip doesn't update (which the player-focused crystal do), and when placed on a casting lectern the spell doesn't happen, despite the spell working when cast with a player-focused crystal

Thank you for the report, this is fixed in an upcoming release.


No modules available in the WebUI

I have installed a new camera on a RPI4 / bookworm and everything went fine.
I then downloaded and installed all available modules according to the installation description which seemed to have worked as well.
Now after this all no modules are visible in the WebUI. They are, however, present in the /allsky-modules folder.
Any help to this?
This is the log-file:
uw@meteotux:~/allsky-modules $ sudo cat moduleinstalldebug.log

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (23.0.1+dfsg-1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: packaging in /home/uw/allsky/venv/lib/python3.11/site-packages (23.2)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: gitpython in /home/uw/allsky/venv/lib/python3.11/site-packages (3.1.41)
Requirement already satisfied: gitdb<5,>=4.0.1 in /home/uw/allsky/venv/lib/python3.11/site-packages (from gitpython) (4.0.11)
Requirement already satisfied: smmap<6,>=3.0.1 in /home/uw/allsky/venv/lib/python3.11/site-packages (from gitdb<5,>=4.0.1->gitpython) (5.0.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: whiptail-dialogs in /home/uw/allsky/venv/lib/python3.11/site-packages (0.4.0)
Requirement already satisfied: domdf-python-tools>=1.7.0 in /home/uw/allsky/venv/lib/python3.11/site-packages (from whiptail-dialogs) (3.8.0.post2)
Requirement already satisfied: typing-extensions>=4.1.1 in /home/uw/allsky/venv/lib/python3.11/site-packages (from whiptail-dialogs) (4.9.0)
Requirement already satisfied: natsort>=7.0.1 in /home/uw/allsky/venv/lib/python3.11/site-packages (from domdf-python-tools>=1.7.0->whiptail-dialogs) (8.4.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: smbus in /home/uw/allsky/venv/lib/python3.11/site-packages (1.1.post2)

This behaviour has been described before: @ #80

can you please have a look in /var/log/lighttpd/error.log and see if there are any errors reported

I did a complete re-install including the OS - unfortunately I did not save the error.log.


Support implicit arrow returns

Only thing I noticed was that () => (

, 1) is broken (https://github.com/babel-plugins/babel-plugin-incremental-dom/issues/23), but everything else here looks good so this can be merged and the sequence expression issue can be fixed separately.


call to consteval function 'glz::get_name<&ProjectSettings::identity>' is not a constant expression

Hello,
When using clang on windows I get the following error
call to consteval function 'glz::get_name<&ProjectSettings::identity>' is not a constant expression

Usage:
struct ProjectSettings
{
    std::string identity = "";
    std::string name = "";
    std::string version = "0.1.0";
    std::string description = "";
    std::string author = "";
    std::string assetPath = "";
};

    ProjectSettings projectSettings{};
    auto ec = glz::read_file_json(projectSettings, "assets/demoApp.json", std::string{});

Thanks for reporting this. I don't currently have a good way of testing clang on windows. I have a few questions:
Notice the #if defined(_MSC_VER), should this be defined for clang?
What versions of clang for windows are you using?

Thanks for reporting this. I don't currently have a good way of testing clang on windows. I have a few questions:
Notice the #if defined(_MSC_VER), should this be defined for clang?
What versions of clang for windows are you using?

Hey,
I tried playing around with it yesterday, and I think I found the problem.
I thought at first maybe my clang install was busted as _MSC_VER was being defined, but  __clang__ is also defined, and after some googling I found that its due to clang trying to stay compatible with MSVC compiled code.
My Clang Version for reference.

I believe the appropriate fix is to have:
#if defined(_MSC_VER) && !defined(__clang__)
This is linked to PR #701

Thanks for solving this. I merged your pull request.


Account for $0.00 region prices in Cypress tests (WIP / Do not merge)

Description 📝
Updating tests to account for $0.00. I'm doing this as a means to 1) identify flows that are impacted by $0.00 region pricing and 2) to add coverage so we're good going forward.
I'll open a Jira ticket for this and any issues that get discovered.
Changes  🔄
List any change relevant to the reviewer.

...
...

Preview 📷
Include a screenshot or screen recording of the change
:bulb: Use <video src="" /> tag when including recordings in table.

Before
After

📷
📷

How to test 🧪
Prerequisites
(How to setup test environment)

...
...

Reproduction steps
(How to reproduce the issue, if applicable)

...
...

Verification steps
(How to verify changes)

...
...

As an Author I have considered 🤔
Check all that apply

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[ ] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Commit message and pull request title format standards

Note: Remove this section before opening the pull request
Make sure your PR title and commit message on squash and merge are as shown below

<commit type>: [JIRA-ticket-number] - <description>
Commit Types:

feat: New feature for the user (not a part of the code, or ci, ...).
fix: Bugfix for the user (not a fix to build something, ...).
change: Modifying an existing visual UI instance. Such as a component or a feature.
refactor: Restructuring existing code without changing its external behavior or visual UI. Typically to improve readability, maintainability, and performance.
test: New tests or changes to existing tests. Does not change the production code.
upcoming: A new feature that is in progress, not visible to users yet, and usually behind a feature flag.

Example: feat: [M3-1234] - Allow user to view their login history

Turns out this isn't too useful -- the backup test additions got moved to #10161, and I'll handle the billing additions later (they're a lower priority since I don't think there was ever any serious risk of that not working since $0 invoices/invoice items isn't a new concept like $0 regions is)


Update values.yaml

Changed tag from non-existing 'latest' to 'master'

How about asking Tatiana to release a new version after my pull request for postgres fix is merged? Ideally it should be a version number rather than master/latest. values.yaml for other components contain version numbers e.g.
https://github.com/PanDAWMS/panda-k8s/blob/main/helm/panda/values.yaml

I've seen how you are doing it for the other components, I agree

Just for my understanding, are you doing versioning via git tags?

Yes. At
https://github.com/PanDAWMS/panda-bigmon-core/releases
Create a new release -> Choose a tag -> + Create a tag -> Publish release


python{2,3}.pkgs.gobject3 with GTK3 - not found?

Issue description
Matplotlib with the GTK3 backend doesn't seem to be working. However, I am not actually sure how this feature is intended to be used.
Steps to reproduce
# matplotlib.nix
with import <nixpkgs> {};
# (python3.withPackages (pkgs: with pkgs; [ (matplotlib.override { enableGtk3 = true; }) ])).env
(python2.withPackages (pkgs: with pkgs; [ (matplotlib.override { enableGtk3 = true; }) ])).env

$ nix-shell matplotlib.nix
[nix-shell:~/tmp]$ MPLBACKEND=GTK3Cairo python
Python 2.7.14 (default, Sep 16 2017, 17:49:51)
[GCC 6.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib import pyplot as plt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 6, in <module>
    from . import backend_gtk3
  File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/backend_gtk3.py", line 21, in <module>
    "Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
ImportError: Gtk3 backend requires the GObject introspection bindings for Gtk 3 to be installed.
>>>

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

system: "x86_64-linux"
host os: Linux 4.13.0-38-generic, Ubuntu, 16.04.4 LTS (Xenial Xerus)
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.0
channels(gil2a4): "nixpkgs-18.03pre126020.931a0b8be80"
channels(root): ""
nixpkgs: /etc/nixpkgs

^ have also run on the latest 18.03

Actually,
$ nix-shell -p 'python3.pkgs.matplotlib.override { enableGtk3 = true; }'

Seems to work. Why doesn't my first method?

Duplicate of https://github.com/NixOS/nixpkgs/issues/39637?
GObject bindings require some environments variables to be set (at least GI_TYPELIB_PATH). In normal case, gobjectIntrospecion’s setup hook would populate it, and then wrapGAppsHook would wrap the executable files. With python libraries, there is no executable to be wrapped, but in some cases the variables might get into the shell. I am not exactly sure about nix-shell semantics, but something like the following might work:
# matplotlib.nix
with import <nixpkgs> {};

let
  matplotlib = python3.pkgs.matplotlib.override { enableGtk3 = true; };
in stdenv.mkDerivation rec {
  name = "my-statistics-tools";

  buildInputs = [
    python
    matplotlib # probably needs to be separate for environment variables to propagate correctly
  ];

  shellHook = ''
    MPLBACKEND=GTK3Cairo exec python
  '';
}

It segfaults for me, though.

@jtojnar You tagged this issue as the duplicate by accident :)

Right, I meant https://github.com/NixOS/nixpkgs/issues/25351

@jtojnar I have a similar issue of python segfaulting when I try to import Gtk from gi.repository.
My script:
#!/usr/bin/env nix-shell
#!nix-shell -p python36Packages.pygobject3 -p gobjectIntrospection -p gtk3 -i python3

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

Results in Segmentation fault every time.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/python-matplotlib-gtk-backend-not-working/17419/5


Update joinrows.adoc

Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

[x] I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004
[ ] In any other case, please file an Apache Individual Contributor License Agreement.

you updated the doc of the Join Rows (cartesian)... I think you wanted to add this comment to the Merge Join documentation.


Security Feature

Any updates on this?

Not yet but soon I hope, I'll try to get something before the hackathon for everyone to enjoy

For the time being, I just disable the client side delete as it seems way too scary to have it in place.
Cloudinary.delete = function () {     throw new Meteor.Error("Clients may not delete images.")   };

For the time being, is it possible to just completely disable delete from the client? I was able to pop open console and do
Cloudinary.delete('my_image')
and poof it was gone, seems a bit too easy for a person to mess with my media library. My strategy was to do this:
delete Meteor.default_server.method_handlers['c.delete_by_public_id'];
but I feel a determined attacker could still find a way to pop open the console and start deleting images. Any thoughts on this?

I see 2 paths you could take. You can overwrite and rewrite the delete function on your app and hard code a password/auth-function for the delete function to pass or you can create a auth function for this package and create a merge request. ^_^

@Lepozepo
Is there a specific way to override a package method? I've looked around and came up empty. Whenever I try to do it I get this error:
Error: A method named 'c.delete_by_public_id' is already defined

There might be a way to overwrite meteor methods but I'm not sure if that's something you should do. What are you trying to accomplish?

@Lepozepo I was just working off of your previous reply: 'You can overwrite and rewrite the delete function on your app'. I was going to do a role check or something similar to the following:
if (! Meteor.userId()) {
throw new Meteor.Error("not-authorized");
}

@Lepozepo Using: Meteor.default_server.method_handlers["c.delete_by_public_id"] seems to bypass the error. I'm going to test it out.

Ah, I see what you mean, lol, sorry. Damn, I guess with the current implementation it is a pain to add security to the delete function. Let me see if I can patch it quickly right now, it's going to break everyone's delete though >_<.

I have an idea for a dirty fix while I get time to make a better implementation that won't break people.

@Lepozepo Good news. Overriding it works like that. Here's is how I did it in my methods.js file:
var Future;
Future = Npm.require("fibers/future");
Meteor.default_server.method_handlers["c.delete_by_public_id"] = function(public_id) {
if (!this.userId && !Roles.userIsInRole(this.userId, ['admin'])) {
  throw new Meteor.Error(403, "Access denied");
}

var future;
this.unblock();
if (check) {
  check(public_id, String);
}
future = new Future();
Cloudinary.api.delete_resources([public_id], function(result) {
  return future["return"](result);
});
return future.wait();

}

Sweet! I'm going to push an update in a minute though so you won't have to do that ^_^

	"c.delete_by_public_id": (public_id,auth_function) ->
		@unblock()
		if auth_function and not auth_function(public_id)
			throw new Meteor.Error "Unauthorized","Delete not allowed"

		if check
			check public_id, String

		future = new Future()

		Cloudinary.api.delete_resources [public_id], (result) ->
			future.return result

		return future.wait()

@Lepozepo Sounds good. I'll update once it's up. Thanks for the fast responses! :) +1

@Lepozepo Could you add some details about "auth_function"?

Nvm, that doesn't work. There would have to be a function that builds the delete function together with the auth function for it to work :/.

Got it, but it only works with a global authorization function for now.
	"c.delete_by_public_id": (public_id) ->
		@unblock()
		if Cloudinary.rules.delete
			auth_function = _.bind Cloudinary.rules.delete,this
			if not auth_function()
				throw new Meteor.Error "Unauthorized", "Delete not allowed"

		if check
			check public_id, String

		future = new Future()

		Cloudinary.api.delete_resources [public_id], (result) ->
			future.return result

		return future.wait()

So what you'll do is set an authorization function on the server side under Cloudinary.rules.delete and tap into the Meteor method through there. Does that make sense?

Fixed with 502c83a2bdc50024ba7b25e1268f2c00bce7910a

@Lepozepo Makes sense. I'll give it a go. Thanks again!

No problem ^_^ I had a bit of time on my hands tonight :D.
On October 5, 2015 at 9:56:51 PM, ats<EMAIL_ADDRESS>wrote:
@Lepozepo Makes sense. I'll give it a go. Thanks again!
—
Reply to this email directly or view it on GitHub.

@Lepozepo, thanks for this plugin! - really helpful :)
Is there a way I can pass data to the auth_function ? As it doesn't take any arguments. Reason I need to pass data is because I need to perform more checks other than just confirming that if a user is logged on. Eg. if the user owns the image that is going to be deleted or if they are deleting someone else's image for example.
Thanks
Dan

Mmm, I could append the information passed to the method to the context of the authorization function. This would definitely make things easier. I'll do some open source in a couple of minutes and see if I can tackle this quickly right now.

Thanks @Lepozepo !

Hey @Lepozepo, any luck ?

 Is that possible? How do I do that?

Nevermind, I forgot I'm already using methods...

Actually forget that, please tell me :)

I didn't manage to find a way with the current setup as there's no way to link the cloudinary signature with a specific file. As it stands the only check you can perform is if a user is logged in and if that user has permission to delete in general. but this means they can delete any file i.e. its either all or nothing so to speak, nothing in between.

@danielparas If I'm not mistaken, it's possible to set the filename when uploading a file. So you could prefix the filename with the user's id. It's not possible to check when deleting, if a user's id matches the filename prefix?

@fabyeah - did not manage to find a way to perform this check. If you find a way let me know :) thats is why I requested a small adjustment to the rules functions

Can you maybe just not make the delete method available on the client? I understand that upload should be available from client to save server resources, but deleting doesn't really have any impact on performance, does it? As the cloudinary config is also only server side, a client wouldn't be able to make just any delete requests anymore, because he doesn't have the API Key and API Secret?

Hey guys! Damn, sorry I never mentioned this @danielparas but I did make the public_id available on the delete rule function. You should be able to use this to properly check for ownership now (it's been up for a while too, lol). @fabyeah the delete function is really just a convenience function but you have to make sure to protect it with a rule. If you are deleting from the server only without a client facing interface I can see how a client side function isn't necessary. Does this answer your question?


Corrupted dart SDK download links to nonexistent GitHub issue template

I had a corrupted dart SDK download, the the tool prompted me to file an issue with a template:
Downloading Dart SDK from Flutter engine c9dda84396f287720d82249b0a1571e0ad9b6a82...
** Resuming transfer from byte position 99758080
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  111M  100  111M    0     0  45.9M      0  0:00:02  0:00:02 --:--:-- 45.9M
file #7:  bad zipfile offset (local header sig):  1792432

It appears that the downloaded file is corrupt; please try again.
If this problem persists, please report the problem at:
  https://github.com/flutter/flutter/issues/new?template=ACTIVATION.md

However, it just opened a new issue with no template since ACTIVATION doesn't exist anymore, it's 1_activation.
https://github.com/flutter/flutter/blob/master/.github/ISSUE_TEMPLATE/1_activation.md
https://github.com/flutter/flutter/blob/ca788d8941abc469ee6cac70daff3dfd67d9e47e/bin/internal/update_dart_sdk.sh#L131

Fixed in https://github.com/flutter/flutter/pull/93528


Two days to a demo: ERROR: Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0) CUDNN_STATUS_EXECUTION_FAILED, device 0

Hi, I'm trying to follow the Two Days to a Demo tutorial on my desktop (i7-4770k+RTX 2070) on Ubuntu 18.04 with the docker image. Running nvidia-smi inside of docker shows:

NVIDIA-SMI 418.56
Driver Version: 418.56
CUDA Version: 10.1

...and my GPU shows up.
When I try to create a new image classification model, however, I get the following error:
ERROR: Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0) CUDNN_STATUS_EXECUTION_FAILED, device 0
Creating layer 'loss1/fc' of type 'InnerProduct'
Layer's types are Ftype:FLOAT Btype:FLOAT Fmath:FLOAT Bmath:FLOAT
Created Layer loss1/fc (62)
loss1/fc <- loss1/conv
loss1/fc -> loss1/fc
Setting up loss1/fc
TRAIN Top shape for layer 62 'loss1/fc' 32 1024 (32768)
Creating layer 'loss1/relu_fc' of type 'ReLU'
Layer's types are Ftype:FLOAT Btype:FLOAT Fmath:FLOAT Bmath:FLOAT
Created Layer loss1/relu_fc (63)
loss1/relu_fc <- loss1/fc
loss1/relu_fc -> loss1/fc (in-place)
Setting up loss1/relu_fc
TRAIN Top shape for layer 63 'loss1/relu_fc' 32 1024 (32768)
Creating layer 'loss1/drop_fc' of type 'Dropout'
Layer's types are Ftype:FLOAT Btype:FLOAT Fmath:FLOAT Bmath:FLOAT
Created Layer loss1/drop_fc (64)
loss1/drop_fc <- loss1/fc
loss1/drop_fc -> loss1/fc (in-place)
Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0)  CUDNN_STATUS_EXECUTION_FAILED, device 0

Is there something I'm missing?

Fell back to Ubuntu 16.04 with driver version 418.40.04 and it's still showing the same error.

Building caffe + DIGITS natively on my host machine seems to have "worked," but training times are slow. Is there no Tensor core support?


[Question] Testing in local environment

hi,
First of all, congratulations for the work.
However, I have a small problem when I want to test in my local environment. cf screenshot.

I can connect to the MonoTorrent Tracker when I set directly the IP <IP_ADDRESS> from qBittorrent and my ClientEngine. If I use IPAddress.Any, it doesnot work at all.
But If you see on the screen, my ClientEngine with the IP/Port <IP_ADDRESS>:301 cannot communicate with my qBittorrent Client with the IP/Port <IP_ADDRESS>:8381.
Not sure from where can come the problem. Any idea ? If I use opentrackr.org instead of my local server it's working.
Thanks

I suspect you're hitting a known limitation of how HttpListener is intended to work nowadays.
Does the information here match your experience? https://github.com/alanmcgovern/monotorrent/issues/299#issuecomment-638645652

hum not sure, I will test to build the TrackerApp as is and deploy it to heroku to test.
I will make you a feedback.
Thanks for your answer.

in fact your comment and the search of @justscribe helped me, but my listener handles the request as expected, as you can see on my screenshot, my qBittorrent client status is Working.
My question is more generic to test in a local environment, my 2 clients did not connect to each other. I don't know why.
I finally found a configuration that works.

Custom Tracker in Worker Service with MonoLibrary (dotnet core 3.1.4 with @justscribe remarks in #299 (comment))
Seed with a Transmission Client
Leech with a qBittorrent Client

Thanks again for this great library and quick answer.

Some clients will block incoming connections, or refuse to create an outgoing connection, if the IP address matches their own IP address.
As such, you may find it 'impossible' to force two clients on the same network to connect to each other if they report the same IP address to the tracker.
UTorrent has a setting which a allows local connections. MonoTorrent doesn't rely on the IPAddress, it also uses the peerid.
Other clients may vary :)


"target" ignored when specified in custom angular builder

Bug report

What is the current behavior?
When specifying target="electron-renderer" as part of a customsed Angular 7 build this is ignored and errors are thrown on fs or path imports
If the current behavior is a bug, please provide the steps to reproduce.

checkout https://github.com/Roaders/angular-electron-chrome/tree/custom-webpack
run npm run build to get errors
run npm run webpack to run a working equivalent webpack build

What is the expected behavior?
It should resepct the target="electron-renderer" and successfully compile an application that import node functionality such as fs and path
I have verified that the config pass to webpack in both example builds has the same value for "target"
Other relevant information:
Angular CLI: 7.1.4
Node: 10.14.1
OS: win32 x64
Angular: 7.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package                           Version
@angular-devkit/architect         0.11.4
@angular-devkit/build-angular     0.11.4
@angular-devkit/build-optimizer   0.11.4
@angular-devkit/build-webpack     0.11.4
@angular-devkit/core              7.1.4
@angular-devkit/schematics        7.1.4
@ngtools/webpack                  7.1.4
@schematics/angular               7.1.4
@schematics/update                0.11.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.28.3

Sorry for delay, I think you should open an issue in angular repo, in webpack@5 we have node and electron-renderer globals, you can found list of them in lib/node/NodeTargetPlugin.js and lib/electron/ElectronTargetPlugin.js and you can use fs and path are exists, also I can't reproduce it using webpack@5, anyway feel free to feedback


removed requests_oauth2 dependency from composer DAG

Hi @shourya116 this looks good to me. Could you please raise a separate PR to change the DAG such that the delete step is always done at the end?


EXCEL VBA

Hello,
I looked around the languages that highlight.js supported and I could not find Excel VBA.
Do you have any plan to add VBA ? or Am I misunderstanding?

hi @hiromi3, languages are contributed by community members, the core team generally just maintain the core code - so we wouldn't plan to add support for it ourselves. However, if you or anyone in the community would like to contribute it and maintain it, we wouldn't hesitate to take it.

Hi marcoscaceres,
Thank you for your quick reply.
Ok, I will use VBScript for VBA code.


[Feature Request] Private option.

Currently, the template does not work very well with private repositories:

There is Private :: Do Not Upload that should apply to the package to avoid accidental uploads to the public PyPI.

To prevent a package from being uploaded to PyPI, use the special "Private :: Do Not Upload" classifier. PyPI will always reject packages with classifiers beginning with "Private ::".

Ref: https://pypi.org/classifiers/

Some badges in the README will be invalid for private repositories.

@msclock Any comments on this? I would like to implement it as the next pull request.

I'm ok with it. Actually, I think this essentially cuts off the way to upload packages.

Remove from milestion v0.1.0 since it is not a required feature for thr first release.


[SPARK-7567] [SQL] Migrating Parquet data source to FSBasedRelation

This PR migrates Parquet data source to the newly introduced FSBasedRelation. FSBasedParquetRelation is created to replace ParquetRelation2. Major differences are:

Partition discovery code has been factored out to FSBasedRelation

AppendingParquetOutputFormat is not used now. Instead, an anonymous subclass of ParquetOutputFormat is used to handle appending and writing dynamic partitions

When scanning partitioned tables, FSBasedParquetRelation.buildScan only builds an RDD[Row] for a single selected partition

FSBasedParquetRelation doesn't rely on Catalyst expressions for filter push down, thus it doesn't extend CatalystScan anymore
After migrating JSONRelation (which extends CatalystScan), we can remove CatalystScan.

Merged build triggered.

Merged build started.

Test build #32523 has started for   PR 6090 at commit f4482ca.

Test build #32523 has finished for   PR 6090 at commit f4482ca.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32523/
Test FAILed.

Test build #802 has started for   PR 6090 at commit f4482ca.

Test build #802 has finished for   PR 6090 at commit f4482ca.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build triggered.

Merged build started.

Test build #32549 has started for   PR 6090 at commit e40bb7b.

Test build #32549 has finished for   PR 6090 at commit e40bb7b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32549/
Test PASSed.

Merged build triggered.

Merged build started.

Rebased to #6118.

Merged build triggered.

Merged build started.

Test build #32620 has started for   PR 6090 at commit 3d770f4.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32618/
Test FAILed.

Test build #803 has started for   PR 6090 at commit 3d770f4.

Merged build triggered.

Merged build started.

Test build #32626 has started for   PR 6090 at commit 6063f87.

Test build #32620 has finished for   PR 6090 at commit 3d770f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32620/
Test PASSed.

I'm going to go ahead and merge this so we can start testing.  Yin's concerns about using other output committers can be addressed in a followup (we should consider adding tests that use DirectOutputCommitter)

Test build #803 has finished for   PR 6090 at commit 3d770f4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #32626 has finished for   PR 6090 at commit 6063f87.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32626/
Test PASSed.

Merged build finished. Test PASSed.


implement api key and secret authentication

Currently machine cookies are used to allow access to SlipStream resources from the orchestrators/machines in a deployment.  Investigate whether we should change this implementation or improve the existing one.  For example, the existing one could be enhanced to provide further checks on the cookie.  A different implementation would be to use revocable api/secret keys, which would be valid only for the lifetime of a given deployment.

The decision was to start with an implementation of api/secret keys to replace machine cookies and to provide general, revocable API access to the service.  The essential features of the implementation are:

Users can generate on demand new api/secret key pairs.  These can be used through the API to authenticate with the server.
Authentication follows the standard CIMI workflow with the SessionTemplate and Session resources, allowing the client to obtain a time-limited token.
The api/secret key pairs can be revoked by the user at any time.  After this, no new access tokens can be generated with the revoked api/secret key pair.
At creation time, the user attributes (groups, roles, etc.) will be transferred into the api/secret key and included in generated tokens thereafter. The user may optionally limit which attributes are included in the api/secret key.
At creation time, the user may provide an expiration time for the api/secret key.  If provided, the api/secret key cannot be renewed after that time.

The details of the proposal and discussion can be found in another ticket.

The attached PR implements all of the above features, except allowing the user to limit the roles for the API key and secret.  Testing with a live SlipStream instance still needs to be carried out.

The roles stored when creating an API key credential also stores the current session role. This should be stripped so that future sessions do not have multiple session roles.

The latest changes fix the problem with the duplicated session roles.

Reimplementation of the machine cookies is covered in a separate ticket. #1151


Failed to parse date field when using test_rule.py (but test seems to run successfully)

I have a simple test rule running:
$ python -m "elastalert.test_rule" --config config.yaml example_rules/example_new_term.yaml
Successfully loaded Example new term rule
WARNING:elasticsearch:GET https://master1:9200/myindex*/_search?ignore_unavailable=true&size=1 [status:400 request:0.122s]
Error running your filter:
RequestError(400, u'search_phase_execution_exception', {u'status': 400, u'error': {u'failed_shards': [{u'node': u'4_DR3SjuQEisL9HQ7K1Rpw', u'index': u'myindex_index_2018.07.11', u'reason': {u'caused_by': {u'reason': u'Parse failure at index [0] of [2018-07-11T15:01:04.886403Z]', u'type': u'illegal_argument_exce
ption'}, u'reason': u'failed to parse date field [2018-07-11T15:01:04.886403Z] with format [epoch_millis]', u'type': u'parse_exception'}, u'shard': 0}], u'root
_cause': [{u'reason': u'failed to parse date field [2018-07-11T15:01:04.886403Z] with format [epoch_millis]', u'type': u'parse_exception'}], u'grouped': True,
u'reason': u'all shards failed', u'phase': u'query', u'type': u'search_phase_execution_exception'}})
INFO:elastalert:Found no values for host
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
To send them but remain verbose, use --verbose instead.
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 15:01 GMT to 2018-07-11 16:01 GMT: 0 / 0 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 16:01 GMT to 2018-07-11 17:01 GMT: 1648 / 1648 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 17:01 GMT to 2018-07-11 18:01 GMT: 7997 / 7997 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 18:01 GMT to 2018-07-11 19:01 GMT: 2078 / 2078 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 19:01 GMT to 2018-07-11 20:01 GMT: 1168 / 1168 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 20:01 GMT to 2018-07-11 21:01 GMT: 866 / 866 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 21:01 GMT to 2018-07-11 22:01 GMT: 1102 / 1102 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 22:01 GMT to 2018-07-11 23:01 GMT: 2203 / 2203 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 23:01 GMT to 2018-07-12 00:01 GMT: 2131 / 2131 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-12 00:01 GMT to 2018-07-12 01:01 GMT: 1675 / 1675 hits
....
elastalert_status - {'hits': 341922, 'matches': 1067, '@timestamp': datetime.datetime(2018, 7, 12, 15, 8, 31, 970500, tzinfo=tzutc()), 'rule_name': 'Example ne
w term rule', 'starttime': datetime.datetime(2018, 7, 11, 15, 1, 56, 409366, tzinfo=tzutc()), 'endtime': datetime.datetime(2018, 7, 12, 15, 1, 56, 409366, tzin
fo=tzutc()), 'time_taken':<PHONE_NUMBER>475708}
It does seem that the test rule runs successfully, and triggers the alerts as expected. However, every time I run it (and I've tried a few variants), they all trigger an ERROR to start with parsing a timestamp.
The timestamp field in the data is 'timestamp' and the format is unix_ms.
I'm not sure where/why it's finding a timestamp of [2018-07-11T15:01:04.886403Z] - this doesn't make much sense to me.
Could somebody offer me a bit of guidance in troubleshooting steps? Or if anybody knows offhand what may be triggering this - even better.
Thanks,
Ollie

It does seem specific to test_rule.py:
[user@node elastalert]$ python -m elastalert.elastalert --debug --start 2018-07-11T12:00:00 --end 2018-07-12T13:00:00 --rule example_rules/example_n
ew_term.yaml --config config.yaml
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
To send them but remain verbose, use --verbose instead.
INFO:elastalert:Found no values for event
INFO:elastalert:Starting up
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 12:00 GMT to 2018-07-11 13:00 GMT: 0 / 0 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 13:00 GMT to 2018-07-11 14:00 GMT: 0 / 0 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 14:00 GMT to 2018-07-11 15:00 GMT: 0 / 0 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 15:00 GMT to 2018-07-11 16:00 GMT: 0 / 0 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 16:00 GMT to 2018-07-11 17:00 GMT: 1043 / 1043 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 17:00 GMT to 2018-07-11 18:00 GMT: 8421 / 8421 hits
INFO:elastalert:Queried rule Example new term rule from 2018-07-11 18:00 GMT to 2018-07-11 19:00 GMT: 2194 / 2194 hits
Seems to run fine...

Yeah, test_rule.py is full of bugs unfortunately. Thanks for reporting.


README enhancements

New courtesy section
Emojis
blockquotes highlights

Accidentally opened a pull request to base-repo main branch instead of my forked one. Please ignore.
Closing the PR.

Accidentally opened a pull request to base-repo main branch instead of my forked one. Please ignore.
Closing the PR.


ReactJS Official Documentation cannot be accessed by a vast majority in Nigeria.

Summary
Whenever I try to visit the react website for my studies as a self paced frontend developer, I always get an error message saying "react.dev took too long to respond". I kept on trying for many months until I decided to contact several people telling them to visit the react.dev website. I was surprised to see the same report. Below is a screenshot of the error message. Please could you do something to help Nigerians like me solve this issue?

I'd be really grateful.
Page
https://react.dev/
Details
No response

Hi. while waiting for an answer from someone on the react team, you can download a vpn to access the docs. Also facing the same issue in Nigeria.

Thanks for reporting, fwiw we're not blocking it. I think some countries/ISPs have blocked the IP we're hosted on. Trying to see what we can go to move where we're deployed to fix.

I have been have this experience for quite a while now. Hope this is resolved on time. From Nigeria

This has been a problem for a while. Can we set up a mirror or something in the meantime?

The Official React Documentation could be accessed through the installation of the VPN server. But I still had to report the problem. So pending the time this would be solved, you could as well install the VPN server.
Thanks.

This has been fixed, and I'll post a writeup in https://github.com/reactjs/react.dev/issues/6732.

It has indeed been fixed. So, happy
On Mon, Jun 17, 2024, 6:49 PM Ricky @.***> wrote:

This has been fixed, and I'll post a writeup in #6732
https://github.com/reactjs/react.dev/issues/6732.
—
Reply to this email directly, view it on GitHub
https://github.com/reactjs/react.dev/issues/6861#issuecomment-2173988917,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXFQYFQVW2KHYVKUZRMBDEDZH4OTHAVCNFSM6AAAAABHT3SN2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTHE4DQOJRG4
.
You are receiving this because you commented.Message ID: <reactjs/react.
@.***>

👍
Eeman reacted via Gmail
https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app
On Mon, Jun 17, 2024, 6:54 PM Eeman Digital Concept <
@.***> wrote:

It has indeed been fixed. So, happy
On Mon, Jun 17, 2024, 6:49 PM Ricky @.***> wrote:

This has been fixed, and I'll post a writeup in #6732
https://github.com/reactjs/react.dev/issues/6732.
—
Reply to this email directly, view it on GitHub
https://github.com/reactjs/react.dev/issues/6861#issuecomment-2173988917,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXFQYFQVW2KHYVKUZRMBDEDZH4OTHAVCNFSM6AAAAABHT3SN2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTHE4DQOJRG4
.
You are receiving this because you commented.Message ID: <reactjs/react.
@.***>


Adds collection manager gRPC API implementation

Description
Adds a gRPC Server implementation to CLI commands.
Goals of this PR

Reorganize the cli pkg slightly for better-defined separation.
Add limited client CLI functionality to a gRPC API with code reusability and minimum bloat in mind.
Add a "Manager" type for composable top-level UOR workflows for library usability.

Decisions:

Using a UNIX domain socket instead of TCP because the server and client would need to be on the same system to access the same files; I went with the faster, light option.
To reuse as much existing logic as possible, the server writes and reads files from a shared accessible location with the client and does client or server streaming.

TODOs

Create a concrete log implementation for gathering diagnostics to send back to the gRPC client as a response. (Follow on PR)
Adds logging interceptor to log gRPC requests/responses with logrus #100
Add the ability to configure the server with a stored configuration file (especially insecure registries) #96
Add the ability to stream files to and from the gRPC client to gRPC over TCP.

Fixes #73
Blocked by #89
Type of change

[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update

How Has This Been Tested?
Testing with the sample client
uor-client-go serve /tmp/test.sock
sample-client push test localhost:5001/test:latest -s  /tmp/test.sock
sample-client pull localhost:5001/test:latest -s  /tmp/test.sock

Unit tests with client stubs exist.
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] Requires updates to the Getting Started Guide

@jpower432 This is beyond exciting. Amazing work!
Approving to move this forward.
A quick comment. If mixed content (sourced from registries being exposed differently [one with plain HTTP and another with SSL), the socket appears that it can only handle one specific configuration. Would this be a feature that would be included in a future enhancement?

@sabre1041 Good question. I have an issue as an enhancement to use a configuration file for this. The goal is for it to work similarly to a git config, including the remapping of collections. https://github.com/uor-framework/uor-client-go/issues/96

Temporarily moving to draft to address possible issues with the way authentication to the registry is handled.

Thoughts for general consideration:

If the gRPC host performs authentication / authorization, then any gRPC client with access to the gRPC host inherits the permissions of the host.
If an adversary can connect to the gRPC host to use the inherited permissions, then that is an issue
This adversarial connection could happen when the gRPC host and client are separate computers on a network, e.g. from a 3rd computer on the network
This adversarial connection could happen when the gRPC host and client are on the same computer, e.g. a compromised process
The less that the client needs to be trusted, the better
The gRPC client authenticating itself for everything minimizes attack surface

Thoughts for general consideration:

If the gRPC host performs authentication / authorization, then any gRPC client with access to the gRPC host inherits the permissions of the host.
...trunc...
The gRPC client authenticating itself for everything minimizes attack surface

This kind of behavior is precisely what API Gateways are built to handle and they speak grpc natively.
I'm inclined to suggest that a WASM plugin for this gRPC API implementation would reduce the overhead and risk of coding auth into the endpoint, and allow progress on other features while leveraging auth offload to the gateway. WASM is supported in envoy and other non-envoy proxies so the implementation should be supportable widely enough to be vendor / tech agnostic and even possible to operate in a wasm runtime without requiring a proxy/gateway if desired.

@d10n @usrbinkat Thanks for the great comments. Just to get some context @d10n is this in response to the auth strategy changes, or were the comments for the original implementation? The modified strategy sends the authentication information with each request instead of being pulled from the config location specified when starting up the server.

@jpower432 Not commenting on the new changes 👍


refactor(robot-server): Make SQLAlchemy access async

Overview
robot-server's database access currently blocks the async event loop. It should not.
Acceptance criteria

All database I/O is async via https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html, which is already installed and usable on the robot.
This may open us up to new concurrency hazards, like time-of-check-to-time-of-use problems. Each of these hazards should at least be marked with a # FIXME comment. But actually fixing them is better, obviously.

Implementation notes
https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html looks like it's worth a careful read. For example, if we're using the SQLAlchemy ORM by the time we get to this ticket, there will be nuances around forcing SQLAlchemy to do database access at the expected await points.
Work timing notes
This will be easier when our persistence is feature-complete (or close enough), and we have acceptance tests in place.

Closing until/unless #10365 aka RSS-346 returns promising results.


Resource class and PHP 7

In PHP 7 Resource is reserved keyword
And in razorpay-PHP there is Resource class and guess it needs update

Thanks for reporting this. Closing this for now, as it is a duplicate of #37. Will post an update on that issue shortly.


std.zip should be usable in @safe

greensunny12 reported this on 2018-01-03T04:36:32Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=18184
Description
Or we finally start to deprecate it.

github-bugzilla commented on 2018-03-27T19:18:34Z
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a67d667d8b4234be99dc9ffde901dc88825153fb
Work On Issue 18184 - std.zip should be usable in @safe

https://github.com/dlang/phobos/commit/4ad1477bab05511c79508d49af9e74a6fd3b3147
Merge pull request #6254 from JackStouffer/issue18184

Work On Issue 18184 - std.zip should be usable in @safe
merged-on-behalf-of: Jack Stouffer<EMAIL_ADDRESS>


New docs

What is the purpose of this pull request?
Changing the way the project is documented using ReadTheDocs.
How is this achieved?
Through ReadTheDocs.
Which issue number does this fix?
No issue number associated.
Note: Branch will stay open for more changes to docs in the future.

Hey there! Before continuing with this pull request, please make sure you have read through the README and CONTRIBUTING files, and have added your changes to the demo site at index.html.


fix: load DAB drafts correctly

Signed-off-by: Tim Schmidt<EMAIL_ADDRESS>Description:
Load DAB drafts correctly
Related issue(s):
Fixes #1286
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Node update not loading correctly yet


1.20.2 not working

I just downlaoded this mod for 1.20.2 and its not working.
I use a youtube URL and when i put it in its says, please wait a moment... than its Downloading complete and no sound, it says its playing the Song but i have no song playing.
also when i take the disc and put it in again its gonna download the music again

Can I ask what operating system you are on?

Sure, i have windows 10
And minecraft i use fabric 1.20.2

Sorry, I should've initially asked, is it any Youtube link that does this for you? If it is a specific link, could I have that?

i testet it with many different youtube links, and non are working for me.

also on Server, the disc wont save the url on the disc at all ^^, maybe thats the problem?

i helped a friend out with installing fabric, and we also testet the mod on his minecraft, and it worked for him, and we found out what my problem is.
the file it downloads is  its name wit .raw and also .webm "name.raw.webm" but when i rename it to "name.raw" and i place the disc, it will again download the file with .webm but since i have renamed the one before to .raw , it will play this music.
so the problem is with the ending
also there is a server site issue, i make a new ticket for this.


UMC Tokenscribe Application

Add Tokenscribe Application which is part of UMC.
Grant Application Checklist

[x] The application-template.md has been copied, renamed ( "project_name.md") and updated.
[x] A BTC address for the payment of the milestones is provided inside the application.
[x] The software of the project will be released under the Apache license version 2.0 as specified in the terms and conditions.
[x] The total funding amount of the project is below CHF 30k at the time of submission.
[x] The initial PR contains only one commit (squash if needed before submitting your PR).

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

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

Thanks for the application. You should take a look at the following application #171. Additionally you might also want to take a look at the psp process and integrate this into your application. Just to clarify the ink! Smart contract will basically implement the “Interface Specification” without any UI. 0.6 seems rather expensive for this. Could you update the price?

Hi @Noc2
Thank you for your great suggestions!
As mentioned in your comments, #171  still creates one contract to handle all subscriptions for all dapps, it will be in the same situation as ERC1337, but this project is aimed to provide a new way of token subscription to secure the assets of users.
Yes, the PSP process is what we need, and to submit PSP PR is listed as one of our deliveries in the new commit.
For sure, as the BTC price goes high, I have changed the cost of this application in the new commit. The costs of writing a demo contract to adopt the "Interface Specification" and an example contract to show how to use token subscriptions for dapps would be covered.

Thanks for the application. You should take a look at the following application #171. Additionally you might also want to take a look at the psp process and integrate this into your application. Just to clarify the ink! Smart contract will basically implement the “Interface Specification” without any UI. 0.6 seems rather expensive for this. Could you update the price?

Hi @Noc2
Thank you for your great suggestions!
As mentioned in your comments, #171  still creates one contract to handle all subscriptions for all dapps, it will be in the same situation as ERC1337, but this project is aimed to provide a new way of token subscription to secure the assets of users.
Yes, the PSP process is what we need, and to submit PSP PR is listed as one of our deliveries in the new commit.
For sure, as the BTC price goes high, I have changed the cost of this application in the new commit. The costs of writing a demo contract to adopt the "Interface Specification" and an example contract to show how to use token subscriptions for dapps would be covered.

Looks good. I will shared it with the rest of the team.

Thank you for your time.

Looks good. I will shared it with the rest of the team.

Thank you for your time.

Hey @warma2008. Are you still interested in this project? It doesn't look like anything has moved in your repositories since you applied and your websites are empty/down. It is also delayed by 2 months. Unless you can show you're actively working on it, we will terminate the grant in the coming days.

This grant is being terminated due to inactivity. Feel free to apply again if you're still interested.


Server key did not validate when hashed known host entry is present

I did:
rm ~/.ssh/known_hosts
docker run --detach --publish 10022:22 nlesc/xenon-ssh
ssh-copy-id xenon@localhost -p 10022
ssh xenon@localhost -p 10022 hostname

In my ~/.ssh/known_hoststhere is now a hashed entry forlocalhost:10022`.
When I try to create a scheduler with
Scheduler scheduler = Scheduler.create("ssh", "localhost:10022", new DefaultCredential("xenon"));

Xenon throws a org.apache.sshd.common.SshException: Server key did not validate exception.

Found bug in SSHD client, it hashes the hostname only, ignoring the port.
The bug can be workaround by creating a copy of KnownHostEntry.isHostMatch() and changing it to
        if (super.isHostMatch(host, port)) {
            return true;
        }

        KnownHostHashValue hash = getHashedEntry();
        if (port == 22) {
            return (hash != null) && hash.isHostMatch(host);
        } else {
            return (hash != null) && hash.isHostMatch("[" + host + "]:" + port);
        }

Create issue at source see https://issues.apache.org/jira/browse/SSHD-852

Fix has been merged https://github.com/apache/mina-sshd/commit/326725da23bc83593b3a6ce8a367a321f6bb81fd, waiting for new release >v2.1.0 of mina sshd so we can upgrade the dependency.

Great!

Now using Mina sshd 2.2.0, so it is fixed.


Divide all values on y-axis always by 1000 to get in 'k' form

Hi,
1)When the values of points on y-axis are in the order of 10^3, how to make the data divide by 3 if we know data on that axis is going to be of that order always and we want to see in form of divided by 1000; eg: 25000 as 25k, 13500 as 13.5k, and so on.

Also, if the data value plotted on y-axis is too long, the space alloted for y-axis does not increase after a certain limit making it look messy the way shown in above snapshot. The snapshot is taken by modifying dummy data on px-vis-timeseries demo page.

please read this guide: https://www.predix-ui.com/#/develop/vis/configure-axis on how to configure the format of those values
please increase the left margin appropriately (the chart won't automatically adjust the margin)

Thank you so much, it did help.


License statement

Currently there is no license statement. Could you please add a LICENSE file that contains the license text?
Thanks.

Hello @fabaff . Thanks for pointing out! Does MIT suit?
https://github.com/glebarez/padre/commit/a6fd6139d7be46baf71a605e6890340aeb7ed5ef

Thank you.


Improve API for third party compilers.

In order to implement CUDA, I had to override some functionality in Catalyst.
        with Patcher(
            (catalyst.pennylane_extensions.QFunc, "extract_backend_info", cudaq_backend_info),
            (qml.QNode, "__call__", QFunc.__call__),
        ):

I think third party compilers might have to do something similar if they follow a similar approach to CUDA-quantum's implementation.

I'm not sure this actually concerns Catalyst, but is something to look at for PennyLane's compiler API.


mixin function curring

Hi,
I'd like to use mixin function in a pipe, but it's not possible. I would expect that it behaves the same way as divide function does. Does it have any reason why is used curry instead of op? I think that curry should be used only for commutative functions.
I know that I can use converge, but it's not ideal from my point of view.

Great idea! R.mixin({x: 0, y: 0}) handles the common case for me—specifying default values in a pipeline—but cannot easily be used in a pipeline to override values. R.mixin(R.__, {x: 7, y: 2}) would be useful.
+1

:herb:  PR, @honzabrecka?

@buzzdecafe pointed out to me that you could also simply do R.flip(R.mixin) if necessary.

Doesn't that same argument apply to the functions to which we do give the op treatment?
Perhaps you're proposing R.flip(R.mixin) as a stopgap measure, rather than a reason not to make the proposed change.

Great, I'll prepare PR tomorrow.

@davidchambers Yes, that was simply a way that the current code could still be used relatively easily for Honza's case.  Our brief IM conversation:

Mike: can't you just flip(mixin)?
Scott: you could. But any objection to op? You can also flip divide or subtract, but that's not always so useful
Mike: no, no objection

Cool. Thank you for clarifying your position, @CrossEye. :)


Automatic commit: Move 'cp-ocn-neo-subscribe' from QA to Production

OCN subscription tutorial

Does this tutorial go with an existing group/mission? Is it referenced somewhere?

This is a standalone tutorial written to address a break in the onboarding experience for OCN users. No associations to any missions.


Add a split button position in the navigation example

https://getbootstrap.com/docs/5.3/examples/#navbars
https://getbootstrap.com/docs/5.3/components/dropdowns/#split-button
The variety of navigation bar examples provided is nice, but one form is missing, a dropdown menu with split buttons.
In addition, the drop-down menu of the split button, trigger is not a way to increase the hover.

I'd love to work on this. Kindly assign this to me.

Hey there, thank you for raising this issue and for your suggestion to include a split button dropdown in the navigation bar examples. It seems like a valuable addition to showcase more of Bootstrap's functionality.
Here's a simple way to include a split button dropdown in the navbar using Bootstrap's existing components:

Action

Toggle Dropdown

Action

This component could be a useful addition to the navbar examples, demonstrating how to use split button dropdowns in different contexts.
As for the hover trigger for dropdowns, it's worth noting that Bootstrap v5.x has moved away from hover-triggered dropdowns in favor of click events, as this creates a more accessible experience for keyboard and screen reader users. If a hover-triggered dropdown is necessary for your project, it would require custom JavaScript or jQuery, which is beyond the scope of Bootstrap's default behavior.
Thank you again for your suggestion. It's always great to see community members engaged and helping to improve Bootstrap!

Hey I am a beginner on open source and I have done web development and used bootstrap before so I will like to take on this issue if already not taken. This will be my first PR and will boost my confidence for open source.
So basically I have to create example of dropdown menu with split buttons. Sounds good !

Hey I have created  dropdown menu with split buttons example to put in navbar section. It runs completely fine on http://localhost:9001/docs/5.3/examples/navbar-dropdown-split/ . I created folder for it in examples folder. Everything I made working fine. I am not familier with Hugo and I want to display my created example at navbar section https://getbootstrap.com/docs/5.3/examples/#navbars .
I am trying to figure it out. If someone have solution for it then please share.

In the case of the split button, if it is in the navigation bar, the split button should be a link element, but in the current style, it cannot be seen in the navigation bar that it is a split state, and the effect of the split is not clear and the recognition is not high, especially in the form of navbars-offcanvas.


adapter.getViewByPosition(int position,int idRes) throw RuntimeExeption

getViewByPosition(int position,int idRes) throw RuntimeExeption and say thant i must bind recyclerView first but i already bind it!!!
BUT
if i use getViewByPosition(RecyclerView,int position,int idRes) all fine
i think that is bug with BaseQuickAdapter getRecyclerView() method...pls check this

pls make documented bindRecyclerView method for adapter!!!

把recyclerView.setAdapter(mAdapter);改成mAdapter.bindToRecyclerView(recyclerView);就可以了

ok, but why is available method getViewByPosition(int position,int idRes) if this doent work?
and pls add to wiki info about that


No-new-users feature

I have the feeling, that it may make sense to have a setting that allows some kind of "freeze" of users.
I.e. a mode in which users are not created automatically, and login only works if an account exists already.
I see the conflict with the authorized_users option in motley-cue.conf, but...
People may be afraid of a system that generates new accounts, and might prefer a mode in which they create a new account config.  The only thing to set  the correct "gecos" field for /etc/passwd, which can (more or less) easily be done with:
echo -n "${SUB}@${ISS}" | python -c "import sys; import urllib.parse; print(urllib.parse.quote_plus(str(sys.stdin.readlines()[0])))"

So something like the read_only mode for the LDAP backend, but applied to any backend? It probably makes sense then to move this issue to the feudalAdapter.
I don't see a big conflict with authorized_users, logically they are two separate things. Even when an account was created manually by the admin, the user needs to be authorised to access the service, either through authorized_users, authorized_vos, or by authorising all users from an OP. Sure, I guess there is redundant configuration, but that's the price to pay for the admin to gain more control.


Feature/websockets

Adds basic websocket support to the API server. Listens on port 40075

Making this draft until I test support for allowing only local connections

Just tested and can confirm EnableApiRemoteCalls works as expected with websockets. Also fixed a bug where it would only accept local connections no matter what setting you used.

Nit: Can the changes be added to the HttpServer prefab instead of main? otherwise, LGTM!

Done


base64 to_file support

I found that there is no base64 to_file support in python-wechaty-puppet, leading to examples here won't trigger the image saving action since img = await msg.to_file_box() makes img a base64-filebox.

https://github.com/wechaty/python-wechaty-getting-started/blob/1cb320513536c74178023be2bf511bd233628990/examples/advanced/message-file-bot.py#L48

It's great to see that you have your contribution to python-wechaty. This support is welcome.

You should update the version in VERSION file to deploy the wechaty-puppet-hostie to pypi repo. @MrZilinXiao

You should update the version in VERSION file to deploy the wechaty-puppet-hostie to pypi repo. @MrZilinXiao Waiting for your next bump of version.

Like pumping 0.0.15 to 0.0.16 like this?
Sorry for the inconvenience since it's my first time to submit PR to python-wechaty puppet.

@lijiarui the student @MrZilinXiao has become our wechaty contributor, please invite him.

@wj-Mcat Awesome, and welcome @MrZilinXiao !


fix: change host api for global for 4.8

API hostname changed for global region (Asia/EU/NA)
Context

Until this PR is merged you may use the following workaround:

Get tampermonkey extension for your browser https://www.tampermonkey.net/
Click this link
When prompted, install the script
Import wishes as usual https://paimon.moe/wish/import

closed, already implemented


Handle multi languages plugin

Text has been hard-coded inside the different components is changed to Multi-Language Plugin.
@bidoubiwa  @curquiza  Can you Check if this PR is correct.
Issue #85
This PR is for Hacktoberfest2021

Hello @abhijeet007rocks8
Are you still working on this? If yes, you should import getTrad and useGlobalContent in Collection.js for the code to work.


daemon doesn't work in remote machine

Hi,
I did the following:

I built Prajna with build.cmd R from the master branch source code;
I copied the client folder to two machines
I deleted the folder C:\Prajna on both machines
I turned off the Windows Firewall completely on both machines
I started client without any options (so it will work on default port 1082)

Then I simply want to call this from remote:
        private static void SayHello(Cluster cluster)
        {
            var dset = new DSet<int> { Name = Guid.NewGuid().ToString("D"), Cluster = cluster };
            var descriptions =
                dset
                .Distribute(Enumerable.Range(0, cluster.NumNodes))
                .Select(i =>
                {
                    var gpuId = Int32.Parse(ConfigurationManager.AppSettings["GpuId"]);
                    var machineName = System.Environment.MachineName;
                    var process = System.Diagnostics.Process.GetCurrentProcess();
                    var gpu = Gpu.Get(gpuId);
                    return $"Hello from {machineName} {gpu} taskId={i} processId={process.Id} threadId={Thread.CurrentThread.ManagedThreadId}";
                })
                .ToIEnumerable()
                .ToArray();
            foreach (var description in descriptions)
            {
                Console.WriteLine(description);
            }
        }

The test result is like this:
If I use the following cluster.lst, then it WORKS:
XiangCluster,1082
localhost,1082

Also, if I use real IP, it also works (I launch the application from the same machine):
XiangCluster,1082
<IP_ADDRESS>,1082

Then if I want to add a remote machine, like:
XiangCluster,1082
<IP_ADDRESS>,1082
<IP_ADDRESS>,1082

Then it DOESN'T WORK anymore.
I checked the log of daemon on <IP_ADDRESS>, I found something like:
============== New Log File =======================
160222_020627.133310,1,Info,PrajnaMachineId is 290efbd143477d11
160222_020627.173490,1,Info,Initialize network stack with initial buffers: 128 max buffers: 33554 buffer size: 128000 network threads: 2
160222_020627.215722,1,Info,Start PrajnaClient at port 1082 (1100-1150)...................... Mode x64, 1 MB
160222_020627.218012,1,Info,Minimum threads: 16, Minimum I/O completion threads: 4
160222_020627.218622,1,Info,Maximum threads: 32767, Maximum I/O completion threads: 1000
160222_020627.219319,1,Info,Available threads: 32767, Available I/O completion threads: 1000
160222_020627.220786,1,Info,Start Parameters [||]
160222_020627.228628,1,Info,All command parsed ==== true
160222_020627.261606,1,Info,Authentication parameters: pwd=empty keyfile= keyfilepwd=empty
160222_020709.983452,18,Info,GetDriveSpace, fail to retrieve remote storage information for machine <IP_ADDRESS>, with exception System.Management.ManagementException: Access denied
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementObjectSearcher.Initialize()
   at System.Management.ManagementObjectSearcher.Get()
   at Prajna.Core.RemoteConfig.GetDriveSpace(String machineName)
160222_020744.693316,16,Error,Prajna.Core.Task.ErrorInSeparateApp : (Close,Job) Failed to find Job Action object for Job a6dfc439-1db5-41f5-9843-569a50737867, error has happened before?

BTW, when I use the Prajna from the NuGet package, it works.

Update: I managed to created a domain joined network. I added a Windows Server 2012r2 as domain controller, and then I run the test again, but this time, I got another error:
Prajna init...
Prajna init done.
Cluster.NumNodes = 2

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Runtime.Remoting.RemotingException: ParseTaskCommandAtDaemon:Membership list of peer 0 is larger than 0, this P2P path hasn't been implemented yet
   --- End of inner exception stack trace ---
   at Prajna.Core.SingleJobActionGeneric`1.get_IsCancelledAndThrow()
   at <StartupCode$Prajna>.$Job.TrySyncMetaDataHost@2478.Invoke(SingleJobActionApp jobAction)
   at Microsoft.FSharp.Core.Operators.Using[T,TResult](T resource, FSharpFunc`2 action)
   at Prajna.Core.Job.ReadyMetaData()
   at Prajna.Core.Job.Ready()
   at Prajna.Core.Job.PrepareRemoteExecutionRosterOnce(JobDependencies curJob, Job srcJob)
   at Prajna.Core.Job.PrepareRemoteExecutionRoster(JobDependencies curJob, Job srcJob)
   at Prajna.Core.Job.PrepareMetaData()
   at Prajna.Core.Job.ReadyMetaData()
   at Prajna.Core.Job.Ready()
   at Prajna.Core.DSetAction.RetrieveMetaData()
   at Prajna.Core.DSetAction.BaseBeginAction(TaskLaunchMode nLaunchNewTaskMode)
   at Prajna.Core.DSetTaskRead.RetrieveMetaData()
   at Prajna.Core.DSetEnumerator`1.DoMoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at PrajnaTest.CS.PiEstimation.SayHello(Cluster cluster) in C:\Users\solom\Documents\Projects\AleaGPU\tools\PrajnaTest.CS\PiEstimation.cs:line 76
   at PrajnaTest.CS.PiEstimation.Main() in C:\Users\solom\Documents\Projects\AleaGPU\tools\PrajnaTest.CS\PiEstimation.cs:line 169

Any idea on how to let it work on two machines through network?

This issue is because of you changed the cluster list file without changing the cluster name, for more detail, please see here.


SDK does not work with .net framework

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Compile program using .NET Framework

Any log messages given by the failure

An application error occurred. Please contact the adminstrator with the following information:
The type initializer for 'Microsoft.CognitiveServices.Speech.Internal.carbon_csharpPINVOKE' threw an exception.
Stack Trace:
at Microsoft.CognitiveServices.Speech.Internal.carbon_csharpPINVOKE.SpeechFactory_FromSubscription(String jarg1, String jarg2)
at Microsoft.CognitiveServices.Speech.Internal.SpeechFactory.FromSubscription(String subscription, String region)
at Microsoft.CognitiveServices.Speech.SpeechFactory.FromSubscription(String subscriptionKey, String region)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Expected/desired behavior

Not throw the above error when using speech

OS and Version?

Windows 10.

Versions

Mention any other details that might be useful
We need to be able to use this SDK using .net framework because we have a lot of code that can't easily be ported to .net core
Thanks for you help

Thanks! We'll be in touch soon.

we support .net framework as described here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-csharp-dotnet-windows
make sure you also select x64 or x86 in the configuration manager ...
does this help already?
thx
Wolfgang

no reply for a long while, much more extensive support by the SDK since then ....


Add result.output

This PR adds result.output, which combines stdout and stderr, interleaved.
It turns out this takes almost no bytes, and it is a rather useful feature. What do you think?
I named it result.output, but please feel free to suggest other names.

"output" sounds good to me.


New package: CheqFacial v0.1.0

Registering package: CheqFacial
Repository: https://github.com/llskin/CheqFacial.jl
Created by: @llskin
Version: v0.1.0
Commit: 3990fea34844e1c228aa6e6ab9104c52f7d71e90
Git reference: HEAD
Description: JuLia Facial

Why is the README of this package almost entirely unrelated to the package's source code?

Why is the README of this package almost entirely unrelated to the package's source code?


Cannot import tensorflow.image since 2019-09-06

I am running Linux.
Executing the following works:
pip3 install tf-nightly-gpu-2.0-preview==2.0.0.dev20190903
python3 -c "import tensorflow.image"

There were no nightly builds on 4th and 5th. The following does not work:
pip3 install tf-nightly-gpu-2.0-preview==2.0.0.dev20190906
python3 -c "import tensorflow.image"

I get
ModuleNotFoundError: No module named 'tensorflow.image'

This still reproduces on the most recent nightly 2.0.0.dev20190918.

The following fixes the import problem: add
from tensorflow.python.util import module_wrapper as _module_wrapper

if not isinstance(_sys.modules[__name__], _module_wrapper.TFModuleWrapper):
  _sys.modules[__name__] = _module_wrapper.TFModuleWrapper(
      _sys.modules[__name__], "", public_apis=None, deprecation=False,
      has_lite=False)

before # WRAPPER_PLACEHOLDER in tensorflow_core/__init__.py.

I believe that this is a "featured" bug, but I will happily PR the fix if needed.

Just to check, does the following work?
import tensorflow as tf
print(tf.image)

That works:
<module 'tensorflow_core._api.v2.image' from '/usr/local/lib/python3.7/dist-packages/tensorflow_core/_api/v2/image/__init__.py'>

Perfect. That is the only supported way to use TF API, all the other ways can break as we progress our API. Unfortunately, Python allows you to do all kinds of imports, accessing private stuff, etc but this is also brittle.
Please use the import tensorflow as tf; tf.image approach

Closing this issue since its resolved.
Feel free to reopen if the issue still persists. Thanks!

Issue still persists
` ---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
3 import numpy as np
4
----> 5 import tensorflow.image.encode_jpeg
6 import tensorflow.image.decode_jpeg
7 import tensorflow.image.adjust_jpeg_quality
ModuleNotFoundError: No module named 'tensorflow.image'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Issue persists

ModuleNotFoundError                       Traceback (most recent call last)
 in ()
3 import numpy as np
4
----> 5 import tensorflow.image.encode_jpeg
6 import tensorflow.image.decode_jpeg
7 import tensorflow.image.adjust_jpeg_quality
ModuleNotFoundError: No module named 'tensorflow.image'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.

@vmarkovtsev,
Please use the imports as follows:
import tensorflow as tf
encode = tf.image.encode_jpeg
decode = tf.image.decode_jpeg
adjust_quality = tf.image.adjust_jpeg_quality

Thanks!


Build failed because of a typo in the Android plugin code.

Android build fails since version 1.1.0
The placement of the parameter name and type is incorrect.
https://github.com/istornz/flutter_gaimon/blob/937f0116c66fb2362305c4e62a05305c198eaa5c/android/src/main/kotlin/com/dimitridessus/gaimon/GaimonPlugin.kt#L122
It should be changed to:
fun vibrate(effect: VibrationEffect) {

Thanks !
Fixed 👍


Unable to query ip address fields unless strict="true"

Elasticsearch & ES-Hadoop 5.0.0-beta1, Spark 2.0.0
curl -XPUT localhost:9200/test -d '{"mappings":{"test":{"properties":{"ip_addr":{"type":"ip"}}}}}'
curl -XPUT localhost:9200/test/test/1 -d '{"ip_addr":"<IP_ADDRESS>"}'
curl -XPUT localhost:9200/test/test/2 -d '{"ip_addr":"<IP_ADDRESS>"}'

>>> df = sqlContext.read.format("org.elasticsearch.spark.sql").load("test/test")
>>> df.filter(df.ip_addr.isin(["<IP_ADDRESS>","<IP_ADDRESS>"])).show()

errors, because the following invalid query is generated:
{"query":{"bool":{"must":[{"match_all":{}}],"filter":[{"bool":{"should":[{"match":{"ip_addr":"<IP_ADDRESS> <IP_ADDRESS>"}}]}}]}}}

If the strict="true" option is passed the correct query if generated, but shouldn't this be automatic for ip address fields?

There are some cases where we use strict pushdown queries no matter what by basing those decisions on the Schema that is parsed for Spark. Right now, the only data types that we strictly push down no matter what are DateType and TimestampType, handled here.
The problem that we face for ip fields is that they are parsed as Strings in the serialization framework, and as such, quite a bit of data is lost about their mapping. I could see us allowing the Elasticsearch mapping as extra information to determine strictness of pushdown filters, especially because of the similarities to the pushdown keyword issue.


enable ci on go binding tests

Signed-off-by: Brent Baude<EMAIL_ADDRESS>

You need to rebase against current master. Sorry. #5282

ready for review and merge

LGTM

LGTM but it looks like we're fighting the CI again.

it passes all tests ... the rdo test is always failing and not required.


@conda-forge-admin,please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/google-cloud-talent-feedstock#8.


ModuleNotFoundError: No module named 'vmware.vapi.vsphere'

[X] I am using the latest SDK version
[ ] This API is compatible with my vCenter version (You can get the info from 'vcenter_version' in each sample)
[X] I have searched existing issues

Environment

sdk package version:

master

python version:

python 3.6.3

vSphere version:

Operating System/Shell (used to run SDK-based apps):
Centos 7.5

Steps or code snippet to reproduce
Actual behavior
pip3 install --upgrade --force-reinstall -r requirements.txt --extra-index-url file://$PWD/lib install successfully` :
Successfully installed Automat-0.7.0 PyHamcrest-1.9.0 asn1crypto-0.24.0 attrs-18.1.0 certifi-2018.8.24 cffi-1.11.5 chardet-3.0.4 constantly-15.1.0 cryptography-2.3.1 hyperlink-18.0.0 idna-2.7 incremental-17.5.0 lxml-4.2.4 nsx-policy-python-sdk-<IP_ADDRESS>.0.15184434 pyOpenSSL-18.0.0 pyVmomi-6.7.0 pyasn1-0.4.4 pyasn1-modules-0.2.2 pycparser-2.18 requests-2.19.1 service-identity-17.0.0 setuptools-40.2.0 simplejson-3.16.0 six-1.11.0 suds-jurko-0.6 tabulate-0.8.2 twisted-18.7.0 urllib3-1.23 vapi-client-bindings-2.5.0 vapi-common-client-2.9.0 vapi-runtime-2.9.0 vapi-vmc-client-2.9.0 vmc-app-python-sdk-<IP_ADDRESS>.0.15184434 vmc-client-bindings-1.2.0 werkzeug-0.14.1 zope.interface-4.5.0

Test as guide sample but get below error :
>>> import requests
>>> import urllib3
>>> from vmware.vapi.vsphere.client import create_vsphere_client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'vmware.vapi.vsphere'

Expected behavior

@WalterWo Seems vapi-client-binding didn't re-installed correctly. The right version should be 1.3.1.
Can you post the output of the pip install cmd?

same issue here with the vapi-client-bindings version 1.3.1
$ pip freeze | grep vapi
vapi-client-bindings==1.3.1
vapi-common-client==2.9.0
vapi-runtime==2.9.0
vapi-vmc-client==2.9.0

@khalilnawar do you still have the same issue? Can you post the complete output of the pip install cmd?

@WalterWo @khalilnawar I am closing this due to missing info. Feel free to reopen with needed info if you still see issues.

wget https://bootstrap.pypa.io/get-pip.py
python3.6 get-pip.py
python3.6 -m pip install --upgrade --force-reinstall -r requirements.txt --extra-index-url file:///

If you run into a problem like this:
Cannot uninstall 'certifi'.
It is a distutils installed project and thus we cannot accurately determine
which files belong to it which would lead to only a partial uninstall.
It happened to me when running the pip install command with an active conda 3.6.8 environment. You could all --ignore-installed like so to solve it:

$ git clone https://github.com/vmware/vsphere-automation-sdk-python.git
$ cd vsphere-automation-sdk-python
$ pip install --upgrade --force-reinstall --ignore-installed -r requirements.txt \
--extra-index-url file:///$PWD/lib

@tianhao64  sir i have already installed all the packages mentioned in the requirement.txt file but still i am getting the error "Module not found".Here is the complete

@Rajeev244
have you set the PYTHONPATH as mentioned here? - set PYTHONPATH

@anusha94 .Thanks for your response ,the issue got resolved .

@Rajeev244 how this issue got resolved?

@rahulyadav130 .Kindly set the path variable correctly and ten clone the repository.It should work.frankly speaking i did long back.Let me know if you still faces issue.

in case someone still has this issue - make sure your file is not called vmware.py , as it will conflict with the package name, causing the ModuleNotFoundError.
A silly mistake, but often overlooked, as it was in my case..


VSCode Extensions Profiles.

It's a pretty simple idea of profiles. What's the main idea of profiles?
The profiles will allow us to disable or/and enable specific extensions when we write in a specific language.
For example:
I open the Rust project (VSCode auto-selects or I select a profile for Rust), so, I don't need enabled extensions for C++ and JS, and these extensions are auto-disabled according to the Rust profile. And, of course, this profile auto-enables extensions, that we included for the Rust profile.

Hello @Jerrody,
I am a beginner to open source. I would like to learn by contributing to this repo. Can you please guide me in this repo like how to get started?

/duplicate of #40239
@avi5079 please see https://github.com/microsoft/vscode/wiki/How-to-Contribute


Buddy sweep

run main.py and set up the config in particular L46, examples:
# this will run locally
tensorboard = experiment_buddy.deploy("hostname", sweep_yaml="", entity='growspace')

# this will run on mila (no sweep, normal run remote)
tensorboard = experiment_buddy.deploy("", sweep_yaml="", entity='growspace')

# this will do a sweep on mila
tensorboard = experiment_buddy.deploy("mila", sweep_yaml="./sweep.yaml", entity='growspace')

(since we use buddy now, we don't use argparse anymore, everything should be configured in the config.py now)

ready to go


[Вік дитини] There is no possibility to manually type child age from 10 to 17

Environment: Windows 11, Google Chrome Version 108.0.5359.95 (Official Build) (64-bit).
Reproducible: always.

Steps to reproduce

Scroll down to 'Вік дитини' field.
Type child age in the 'Вік дитини' field from 10 to 17(e.g. 15).

Actual result
Each time when you type number 1 - it automatically transforms to 2 and then you enter the next number - 5, the whole number is 18. The only possible way to enter age from 10 to 17 is to paste the whole number.
https://user-images.githubusercontent.com/82941067/205491862-bcd871d3-0687-4861-85ea-9cfcb52191d6.mp4
Expected result
User should be able to type numbers from 10 to 17 since it is a valid combination.
User story and test case links
User story #274
Labels to be added
"Bug", Priority ("pri: ").

Fix confirmed


errors

Hi
I receive an error when adding xaf bootstrap to my web solution
An exception of type 'System.NotSupportedException' occurred in DevExpress.Xpo.v15.2.dll but was not handled in user code
regards.

Hi,
It's hard to say where problem is without stack trace and sample project, that demonstrates problem.
Do you have same troubles using default empty XAF project with XAF Bootstrap module?

Hi,
Thanks for your update,
bellow the error when removing all Navigation item and keep only Reports and defaults
"Exception occurs while assigning the 'ListView, ID:Analysis_ListView' view to WebWindow:
Specified method is not supported."

Unfortunately without any sample and stack trace we cannot say anything concrete. You can try to change list view editor in model for Analysis ListView back to default DevExpress table list editor, maybe it helps if problem in XAFBootstrap table editor.

Hi,
I solve the initial issue by recreating the solution. and it's working fine now. i need your help to change the font used to use RTL with ALmohand font.
regards.

I'm glad to hear that you solved a problem.
We do not using in practice RTL, so you have to implement it by your own.
It's a web solution, so, for example, you can change font by adding custom css in Default.aspx.


FTP needs some nice UI!

Mas @fransallen, sorry we didn't get to use this UI in first rebirthing of V7. I still appreciate all the effort, though!