Not working keepalive option in Podman container

I'm running Redis(v=6.0.10) in the container with official container image using Podman(v.2.5).
And I'm trying to connect Redis server to my Node application with ioredis .
The configuration in my app is like the below:
    private static readonly redisConfig: ioRedis.RedisOptions = {
      connectionName: "Server Application",
      host: process.env.DB_HOST,
      port: Number(process.env.REDIS_PORT),
      password: process.env.REDIS_PASSWORD,
      retryStrategy: (times) => {
        console.log("Redis connection is lost with somehow reason.");
        console.log("attempt: " + times);
        if (times > 5) {
          return undefined;
        }

        return Math.min(times * 500, 2000);
      },
      keepAlive:100,
    };

But it looks like keepAlive doesn't work.
When I tried CLIENT LIST command at redis-cli inside the Redis container:
id=13 addr=<MY_IP_ADDRESS>:54984 fd=10 name= age=772 idle=772 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20512 events=r cmd=client user=default
id=15 addr=<IP_ADDRESS>:56604 fd=9 name= age=12 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=26 qbuf-free=32742 argv-mem=10 obl=0 oll=0 omem=0 tot-mem=61466 events=r cmd=client user=default

The first one  is the client from my Node application. You can see the port is 54984.
Now, It is the result of sudo netstat -napo | grep 6379:
tcp        0      0 <IP_ADDRESS>:6379            <IP_ADDRESS>:*               LISTEN      306194/conmon        off (0.00/0/0)
tcp        0      0 <IP_ADDRESS>:54984          <MY_IP_ADDRESS>:6379      ESTABLISHED 307509/node          keepalive (7126.59/0/0)

You can see that keepalive time is set to  almost 7200 sec.
So I set tcp-keepalive, which is Redis configuration var, to "1" by myself.
Now then, ioredis reconnects the client...
Is there something wrong I did in ioredis config?

Thanks for reporting this.
The cause for that issue is most likely https://github.com/nodejs/node/issues/31663
There's another issue here with a reproduction: https://github.com/luin/ioredis/issues/1339
I'll close this for now.


where is the  CDB folder  for Mac?

I can't find any CDB folder in mac spss modeler

@wujiazhong do you know the default file path to CDB on Mac?

/Library/Application Support/IBM/SPSS/Statistics/24/CustomDialogs

I can‘t find that folder in my mac
BTW, the "Application support" for IBM software is an independent folder which named "IBM Application Support".
I also searching that folder, I can't find the CDB folder

----- Original message -----From: Jia Zhong Wu<EMAIL_ADDRESS>IBMPredictiveAnalytics/Weather_Underground_Import<EMAIL_ADDRESS>Wei WW He/China/IBM@IBMCNSubject: Re: [IBMPredictiveAnalytics/Weather_Underground_Import] where is the CDB folder for Mac? (#2)Date: Tue, Apr 12, 2016 9:32 AM
/Library/Application Support/IBM/SPSS/Statistics/24/CustomDialogs
—You are receiving this because you authored the thread.Reply to this email directly or view it on GitHub

cool! the CDB folder is there!  I copy the cfe file into it and restart modeler, it working! many thanks!

----- Original message -----From: Jia Zhong Wu<EMAIL_ADDRESS>IBMPredictiveAnalytics/Weather_Underground_Import<EMAIL_ADDRESS>Wei WW He/China/IBM@IBMCNSubject: Re: [IBMPredictiveAnalytics/Weather_Underground_Import] where is the CDB folder for Mac? (#2)Date: Tue, Apr 12, 2016 10:20 AM
Sorry, I made a mistake. It is in /User/XXX/Library/Application Support/IBM/SPSS/Modeler/18
—You are receiving this because you authored the thread.Reply to this email directly or view it on GitHub

Hi,Can I get some help from you?
I am mac modeler 18 ,R 3.2.2, and essential for R also was installed.
but my stream file worked out nothing bug some NAs , below are some logs
Could you guide me how to fix it？
He Wei (何威)
Big Data Analyst
BigData and Analytics
IBM Systems Lab Services (GCG)
Mobile: (86)<PHONE_NUMBER>9  Mail<EMAIL_ADDRESS>No.28 Hong Chuan East Road, Hi-Tech Zone District, Dalian, China (116044)
From:   Wei WW He/China/IBM
To:
<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Date:   2016-04-12 上午 11:06
Subject:        Re: [IBMPredictiveAnalytics/Weather_Underground_Import]
where is the  CDB folder  for Mac? (#2)
cool! the CDB folder is there!  I copy the cfe file into it and restart
modeler, it working! many thanks!
----- Original message -----
From: Jia Zhong Wu<EMAIL_ADDRESS>To: IBMPredictiveAnalytics/Weather_Underground_Import
<EMAIL_ADDRESS>Cc: Wei WW He/China/IBM@IBMCN
Subject: Re: [IBMPredictiveAnalytics/Weather_Underground_Import] where is
the CDB folder for Mac? (#2)
Date: Tue, Apr 12, 2016 10:20 AM
Sorry, I made a mistake. It is in /User/XXX/Library/Application
Support/IBM/SPSS/Modeler/18
―
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub


Bump pydantic from 1.10.2 to 1.10.3 (#5318)

Pull request opened by the merge tool on behalf of #5318

Merged in f9fd8ddb1379eedd4925255c980065d98a4fd3fd


Sourcery fails when using project in configuration file with a project that uses swift packages.

Sourcery output:
error: while reading .yml 'YoufoodzTests/.sourcery.yml'. 'The element XCSwiftPackageProductDependency is not supported'

If the swift packages are removed from the project, Sourcery runs fine
Sourcery version: 17.0

I have the same issue with xcode 11.4

We are using https://github.com/tuist/XcodeProj for parsing Xcode projects, so I suppose it's related to the issue in that project. We use quite old version, have you tried to bump to more up to date version?

cc @pepibumur

I tried updating XCodeProj to version 7.0.0 which has the fix needed to support SPM packages.  That has a dependency on PathKit 1.0.0.
The PathKit dependency conflicts with Stencil which has a dependency on PathKit 0.9.2.   Stencil has not done a release since September 2018, but there has been some recent commits including updating to using PathKit 1.0.0.  If Stencil is updated, it should be possible to update the version of xcodeproj used in this project.

I tried updating XCodeProj to version 7.0.0 which has the fix needed to support SPM packages. That has a dependency on PathKit 1.0.0.

Right, the version of XcodeProj used by Sourcery is very old and doesn't have that object type defined. My recommendation is to update to the latest version of XcodeProj

Stencil 0.14.0 was released today with the an update to the PathKit dependency.  Should be able to update XcodeProj now.

Any update here?

@junjielu
I found a workaround for us using shell:
# Until https://github.com/krzysztofzablocki/Sourcery/issues/816 is fixed, we use a workaround

# Remove any leftover temporary XcodeProjects
rm -rf AppTemplateSourcery.xcodeproj || true

# Copy the XcodeProject to a temporary XcodeProject
cp -r AppTemplate.xcodeproj AppTemplateSourcery.xcodeproj

# Remove the sections that sourcery cannot work with using sed
sed -i .bak '/^.*Begin XCSwiftPackageProductDependency section.*/,/^.*End XCSwiftPackageProductDependency section.*/d' AppTemplateSourcery.xcodeproj/project.pbxproj
sed -i .bak '/^.*Begin XCRemoteSwiftPackageReference section.*/,/^.*End XCRemoteSwiftPackageReference section.*/d' AppTemplateSourcery.xcodeproj/project.pbxproj

# Run sourcery. The project inside the .yml definition needs to point to the temporary XcodeProject
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryRelease.yml  &
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryDebug.yml    &
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryKit.yml      &

wait

# Cleanup after Workaround
rm -rf AppTemplateSourcery.xcodeproj || true

Note: I have not tested, if the marker "Begin XCSwiftPackageProductDependency section" and similar is vanilla Xcode or is a result of using https://github.com/yonaskolb/XcodeGen

@junjielu
I found a workaround for us using shell:
# Until https://github.com/krzysztofzablocki/Sourcery/issues/816 is fixed, we use a workaround

# Remove any leftover temporary XcodeProjects
rm -rf AppTemplateSourcery.xcodeproj || true

# Copy the XcodeProject to a temporary XcodeProject
cp -r AppTemplate.xcodeproj AppTemplateSourcery.xcodeproj

# Remove the sections that sourcery cannot work with using sed
sed -i .bak '/^.*Begin XCSwiftPackageProductDependency section.*/,/^.*End XCSwiftPackageProductDependency section.*/d' AppTemplateSourcery.xcodeproj/project.pbxproj
sed -i .bak '/^.*Begin XCRemoteSwiftPackageReference section.*/,/^.*End XCRemoteSwiftPackageReference section.*/d' AppTemplateSourcery.xcodeproj/project.pbxproj

# Run sourcery. The project inside the .yml definition needs to point to the temporary XcodeProject
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryRelease.yml  &
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryDebug.yml    &
bin/mint run krzysztofzablocki/Sourcery  sourcery              --config  Resources/CodeGeneration/sourceryKit.yml      &

wait

# Cleanup after Workaround
rm -rf AppTemplateSourcery.xcodeproj || true

Note: I have not tested, if the marker "Begin XCSwiftPackageProductDependency section" and similar is vanilla Xcode or is a result of using https://github.com/yonaskolb/XcodeGen


Config to require servers

Instead of having to manually install servers, include a config option where you can basically provide a list of language servers you need, so that lspinstall can automatically install them if they aren't already installed.

Good idea. You can already do that, by adding this to your lua config:
-- Install missing servers
local required_servers = { "lua", "tailwindcss", "bash" }
local installed_servers = require'lspinstall'.installed_servers()
for _, server in pairs(required_servers) do
  if not vim.tbl_contains(installed_servers, server) then
    require'lspinstall'.install_server(server)
  end
end

Will probably add this to the README :)

Strange, first time I wanted it I actually wrote a similar piece of code but it showed some errors. This seems to work though

Maybe also add a way to update them automatically?

auto update won't work, see https://github.com/kabouzeid/nvim-lspinstall/issues/8

Ah alright, I'll close the issue then

I'll leave it open until I added this to the README

also how  can I have custom configurations to extend the default  configurations you  provide?
Imagine I want to setup prettier/eslint using efm/diagnosticls how would I go about doing  that while still respecting the default configs that come from this?

I'm doing this in my personal config: https://github.com/kabouzeid/nvim-lspinstall/wiki
Relevant part:
-- lsp-install
local function setup_servers()
  require'lspinstall'.setup()

  -- get all installed servers
  local servers = require'lspinstall'.installed_servers()
  -- ... and add manually installed servers
  table.insert(servers, "clangd")
  table.insert(servers, "sourcekit")

  for _, server in pairs(servers) do
    local config = make_config()

    -- language specific config
    if server == "lua" then
      config.settings = lua_settings
    end
    if server == "sourcekit" then
      config.filetypes = {"swift", "objective-c", "objective-cpp"}; -- we don't want c and cpp!
    end
    if server == "clangd" then
      config.filetypes = {"c", "cpp"}; -- we don't want objective-c and objective-cpp!
    end

    require'lspconfig'[server].setup(config)
  end
end

Does this work for you?

Basically as usual, you can use config in require'lspconfig'[server].setup(config) to override any config options.
See: https://github.com/neovim/nvim-lspconfig#example-override-some-defaults

alright. so its just a matter of creating some object where the  key matches your language server name in the LspInstall
then  do a table deep extend. something like that.

What's the proper way of modifying the settings for tailwindcss. This is what I'm trying to get working, but so far no luck!?
local tailwindcss = function(config)
    local opts = {
        settings = {
            includeLanguages = { typescript = 'javascript', typescriptreact = 'javascript' },
            tailwindCSS = {
                experimental = {
                    classRegex = {
                        'tw`([^`]*)',
                        'tw="([^"]*)',
                        'tw={"([^"}]*)',
                        'tw\\.\\w+`([^`]*)',
                        'tw\\(.*?\\)`([^`]*)'
                    }
                }
            }
        }
    }
    for k, v in pairs(config) do opts[k] = v end
    return opts
end

return tailwindcss

@pedropmedina should work now, I fixed it 22 days ago.
https://github.com/kabouzeid/nvim-lspinstall/issues/45#issuecomment-826902941


Minor readme grammatical fixes

This is by no means criticism, but I was reading through README.md and just happened to notice some very minor grammatical errors. I'm not a native English speaker so feel free to correct me here ;).

Thanks, these all look and sound good to me :)


[Dev][Release] post-10-docs.sh doesn't work correctly for patch releases

Describe the bug, including details regarding any error messages, version, and platform.
During both the 16.1 and 18.1 releases, we found the dev/release/post-10-docs.sh didn't work correctly and had to be fixed manually. See:

16.1: https://github.com/apache/arrow-site/pull/555
18.1: https://github.com/apache/arrow-site/pull/565#issuecomment-2502917434

This should probably get fixed for the next release.
Component(s)
Developer Tools, Release

Looking at the current version of the script, it looks like the idea was to only publish a single documentation set for each major version series (i.e., replace the 18.0 docs with the 18.1 docs when 18.1 is released). If this is the case, other changes would be needed, such as to how we update the version switcher.
@jorisvandenbossche do you remember what the idea was behind your change in https://github.com/apache/arrow/commit/8963755f5174a5aae363a4828c0e1992febaa141? To fix the problem in this issue, I'm considering removing all the major/minor parts of the script.

do you remember what the idea was behind your change in 8963755? To fix the problem in this issue, I'm considering removing all the major/minor parts of the script.

That change was certainly not made to properly deal with "minor" releases (as in major.minor.patch, and at the time we only ever did major or patch releases), so the major / minor is maybe a confusing naming, but with the current set-up I think the script still needs to distinguish major+minor vs patch releases.
Right now, IIRC, the workflow goes like this:

The latest released ("stable") version of the docs lives at the root of https://arrow.apache.org/docs, and then previous versions e.g. at /docs/18.0/
When we make a new non-patch (major/minor) release -> at this point the current stable docs are copied to its versioned subdirectory, and then the docs of the new release are written over the old stable docs at the root of the /docs folder.
When we make a patch release, only the stable docs at the root need to be overwritten with the new docs, as we don't keep separate docs of patch releases of the same major/minor release (e.g. of 15.0.0, 15.0.1 and 15.0.2)

Now, I do think it would probably be an improvement/simplification to already make the versioned subdirectory at the time of making the release (e.g now for 18.1.0, already make the docs/18.1/ directory), and do when doing the release just copy the new docs to two places (versioned subdir and root), then we don't have to this "move current stable docs to subdir".

This is all with the presumption that we indeed don't want to keep the docs of every single version. I personally still think that is better, because 1) there is typically hardly a difference between those, 2) it reduces the size of the docs, and 3) I also wouldn't want to include those in the version dropdown anyway because it would just be unnecessary noise to the user of the docs.
(personally, with the way we currently make minor releases like 18.1.0 as just a bit extended patch release, I would even argue the same for those, and just keep one version of the docs for the entire 18.x release cycle)


Extend Utility pallet to support limited on-behalf-of calling

The utility pallet could add functionality which would allow an approved list of users to make limited calls on behalf of another user.
For example, as a user, I grant access to other account ids to be able to make calls to the staking module to control who I am nominating, but no other functionality.
Then I can pay those account ids to manage my nomination preferences on my behalf (off-chain).
General API:

A user can create a "permission group" for their account
A user can have multiple permission groups
This group will have a list of users who are whitelisted for this permission group
This group will have a list of dispatchable calls this group is allowed to make on behalf of the original user
This group may have some limit to the number of transactions per time period allowed for the group.
As a member in this group, I can relay extrinsics on behalf of the original user, but only for the transactions the group is whitelisted for.
Unlike a multi-sig, I do not need confirmation from anyone to make these calls, as I am already whitelisted as being able to make this calls for the group.

This has been solved by Proxy pallet


Design ideas

Parallax Scroll
intro: count down and at the last count there is an glitch before error is being shown. "initiate project I love Web"

Search up how to solve
Idea number 2:
fetch and await javascript + timer (time-out)
loading animation ~ svelte


the transform of grasp pose

hi, i am reading the paper and code about ggcnn
but i find something inconsistent with my thought
in kinova_closed_loop_grasp.py
https://github.com/dougsm/ggcnn_kinova_grasping/blob/master/ggcnn_kinova_grasping/scripts/kinova_closed_loop_grasp.py#L100

     # Construct the Pose in the frame of the camera.
      gp = geometry_msgs.msg.Pose()
      gp.position.x = d[0]
      gp.position.y = d[1]
      gp.position.z = d[2]
      q = tft.quaternion_from_euler(0, 0, -1 * d[3])
      gp.orientation.x = q[0]
      gp.orientation.y = q[1]
      gp.orientation.z = q[2]
      gp.orientation.w = q[3]

why the yaw angle is -1*d[3]? （i think φ should be counterclockwise rotation around z axis ,so it should be d[3],and  kinova_open_loop_grasp.py,，https://github.com/dougsm/ggcnn_kinova_grasping/blob/master/ggcnn_kinova_grasping/scripts/kinova_open_loop_grasp.py#L77also did not multiply -1 ）
   # Average pose in base frame.
    gp_base.position.x = av[0]
    gp_base.position.y = av[1]
    gp_base.position.z = av[2]
    GOAL_Z = av[2]
    ang = av[3] - np.pi/2  # We don't want to align, we want to grip.
    q = tft.quaternion_from_euler(np.pi, 0, ang)
    gp_base.orientation.x = q[0]
    gp_base.orientation.y = q[1]
    gp_base.orientation.z = q[2]
    gp_base.orientation.w = q[3]

i am quite confues with ang = av[3] - np.pi/2 ，the meaning to  minus -pi/2
here is fig in the paper

i think i made some conceptual mistaek,so i'll be gratefull if you do some explanation about my question
@dougsm

Hello,
Sorry that's poorly documented - I think both are just artefacts of the network implementation and its frame of reference.

Q1: The -1*d[3] is just inverting the rotation direction. In the training data, the angle is computed as the required rotation of the image, but in the frame of reference of the camera this rotation is reversed. That is, a clockwise rotation of the image corresponds to a counter-clockwise rotation of the camera and vice versa.
Q2: Similarly, the angle output from the network is actually aligned along the axis of the grasp, so in order to actually grasp the object we want the gripper to be perpendicular to this axis so subtract pi/2.

got it. i should figure out the dataset first
thank you

Actually, I just realised my answer to Q2 is wrong.
The reason is that the end effector frame, which isn't pictured but is the frame that the frame that is controlled, is actually 90 degrees out from the camera frame.  The robot end effector x-axis is aligned with the camera y-axis.


Add icon for phone nudge story

#185493881

Is it this icon? If so, it's already in the file and named "docWithMagnifiyingGlass"


useQuery not re requesting if variables changes while request is already sent

urql version & exchanges:
Steps to reproduce

have a query
update the query variables while the query is in flight

Expected behavior
The result is based on the first variable and not the second one
Actual behavior
The result should be a request with the new input variables
Example code
export const useCurrentUser = () => {
// This return first a undefined, then 100 ms later will send the user
  const firebaseUser = useFirebaseUser(userWithCorrectToken$);

  const [
    { data, error, fetching, extensions, operation },
    retry,
  ] = useQuery({
    query: myQuery,
    variables: {
      firebaseId: firebaseUser?.uid ?? 'anonymous',
    },
    requestPolicy: 'network-only',
  });

  console.log('useCurrentUser', {
    data,
    error,
    fetching,
    extensions,
    operation,
  });

  const user = data?.user?.[0];
  return { error, user, fetching, loading: fetching };
};

This error occurs in 1.11 but not in 1.10. This may be related to the change in this pr : https://github.com/FormidableLabs/urql/pull/1104
I will make a sandbox soon, I don't have time right now but will soon !

We do have tests covering this, so I'd need some more information or a reproduction around this behaviour you're seeing, since not much has changed around how we subscribe/unsubscribe and update during the hook's lifecycle.

I managed to reproduce it, it only to this in suspence mode, here is the sandbox : https://codesandbox.io/s/ecstatic-ritchie-lzxvl?file=/src/components/Todos.js

@beaussan just to speed this up, what are you expecting the sandbox to output if it was working correctly rather than what is happening?

The output should have the same id in Todo for $id and in the body id: $id.
This is to mockup a call to my auth api, witch is done in RxJS anyway.
The id in both places should be ZmlsbXM6Mw==, it is the correct one in the component body (Todos for ...), but not the query output. The call is made (you can look for index in the network tab), the first one for the first Id, and de second one for the next one, however, the second one isn't send back to the react component

I have updated the sandbox to better show the error

Ok, this was a tricky one! As it turns out suspense-on-update behaves very differently to suspense-on-mount since React (Concurrent) has some mechanisms that allow it to continue on with the suspended subtree as usual to delay showing a loading screen (I assume using useTransition)
The side-effect of this is that it doesn't erase any state for our suspended component if nothing has changed, which means that once we resume after suspending from the update we won't apply any of the state changes we've seen.
That's now fixed and it'll be published as 1.11.3.

Thank you for the quick fix !
I was migrating from Apollo to urql to get suspense, and this bug drive me crazy until I tried a earlier version !
Thank you for this project, and for your support !

That's just been published 🙌  https://github.com/FormidableLabs/urql/pull/1154

Thank you !! :tada:


Update the README and visualize unread notifications

Description
feature

mark unread notifications with a colored dot and add a fzf hotkey to mark them all as read, (#20 is abandoned as I couldn't figure out how to reload notifications without exiting fzf, for now).

changes

changed the README, as discussed in #19, to include more information about customizations of ENVIRONMENT VARIABLES

removed the hotkeys for preview scrolling

TODOs before committing

[x] make a new GIF (@LangLangBart)
[ ] Check grammar
[ ] Everything is described correctly

GIF

Docs and GIF look good to me! Just left one comment


Shouldn't require resolvers for links.

Am I correct in thinking that using the grapher schema directives in this package I should not have to write resolvers for the linked graphql types?
If i run this query:
query{
vehicleManufacturers{
  _id
  name
  VehicleModels{
    _id
    name
  }
}
}

Results:
{
  "data": {
    "vehicleManufacturers": [
      {
        "_id": "j3Es5PAkoABKofAtG",
        "name": "Toyota",
        "VehicleModels": null
      }
    ]
  }
}

And this query:
query{
 vehicleModels{
  _id
  name
  VehicleManufacturer{
    _id
    name
  }
}
}

Results:
{
  "errors": [
    {
      "message": "parentResult[fieldStorage].forEach is not a function",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "vehicleModels"
      ]
    }
  ],
  "data": {
    "vehicleModels": null
  }
}

This is what my files look like.
Schema.graphql:
type VehicleManufacturer @mongo(name:"VehicleManufacturers"){
	_id: String
	#Toyota, Nissan etc.
	name: String
	VehicleModels: [VehicleModel] @link(to:"VehicleManufacturer")
}
type VehicleModel @mongo(name:"VehicleModels"){
	_id: String
	#Hilux, Terrano etc.
	name: String
	VehicleManufacturer: [VehicleManufacturer] @link(field:"vehicleManufacturerId")
}

resolvers.js:
Query: {
	vehicleManufacturers(_, args, { db }, ast) {
		return db.VehicleManufacturers.astToQuery(ast).fetch();
	},
	vehicleModels(_, args, { db }, ast) {
		return db.VehicleModels.astToQuery(ast).fetch();
	}
},

Here is the terminal output of the error for posterity;
parentResult[fieldStorage].forEach is not a function

 GraphQL request (2:3)
 1: {
 2:   vehicleModels {
      ^
 3:     _id

  {
     "message": "parentResult[fieldStorage].forEach is not a function",
     "locations": [
         {
             "line": 2,
             "column": 3
         }
     ],
     "path": [
         "vehicleModels"
     ],
     "extensions": {
         "code": "INTERNAL_SERVER_ERROR",
         "exception": {
             "stacktrace": [
                 "TypeError: parentResult[fieldStorage].forEach is not a function",
                 "    at parent.results.forEach.parentResult (packages/cultofcoders:grapher/lib/query/hypernova/assembler.js:53:40)",
                 "    at Array.forEach (<anonymous>)",
                 "    at module.exportDefault (packages/cultofcoders:grapher/lib/query/hypernova/assembler.js:47:24)",
                 "    at storeHypernovaResults (packages/cultofcoders:grapher/lib/query/hypernova/storeHypernovaResults.js:36:9)",
                 "    at _.each.childCollectionNode (packages/cultofcoders:grapher/lib/query/hypernova/hypernova.js:9:9)",
                 "    at Array.forEach (<anonymous>)",
                 "    at Function._.each._.forEach (packages\\underscore.js:139:11)",
                 "    at hypernova (packages/cultofcoders:grapher/lib/query/hypernova/hypernova.js:6:7)",
                 "    at hypernovaInit (packages/cultofcoders:grapher/lib/query/hypernova/hypernova.js:25:5)",
                 "    at Query.fetch (packages/cultofcoders:grapher/lib/query/query.server.js:18:16)",
                 "    at vehicleModels (server/resolvers.js:33:44)",
                 "    at field.resolve (C:\\Users\\root\\Documents\\culttest\\node_modules\\graphql-extensions\\dist\\index.js:128:26)",
                 "    at resolveFieldValueOrError (C:\\Users\\root\\Documents\\culttest\\node_modules\\graphql\\execution\\execute.js:479:18)",
                 "    at resolveField (C:\\Users\\root\\Documents\\culttest\\node_modules\\graphql\\execution\\execute.js:446:16)",
                 "    at executeFields (C:\\Users\\root\\Documents\\culttest\\node_modules\\graphql\\execution\\execute.js:293:18)",
                 "    at executeOperation (C:\\Users\\root\\Documents\\culttest\\node_modules\\graphql\\execution\\execute.js:237:122)"
             ]
         }
     }
 }

This was fixed inside Grapher I remember. If not submit it there and show me how to reproduce it in a repo.


Deduplicate RPC domain types

Closes #918

[x] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[x] Wrote tests
[x] Added entry in .changelog/

Codecov Report

Merging #922 (5d3a24c) into master (c8b97aa) will decrease coverage by 0.0%.
The diff coverage is 100.0%.

:exclamation: Current head 5d3a24c differs from pull request most recent head 5783991. Consider uploading reports for the commit 5783991 to get more accurate results

@@           Coverage Diff            @@
##           master    #922     +/-   ##
========================================
- Coverage    70.7%   70.6%   -0.1%
========================================
  Files         203     203
  Lines       16230   16241     +11
========================================
+ Hits        11475   11477      +2
- Misses       4755    4764      +9

Impacted Files
Coverage Δ

rpc/src/event.rs
11.4% <ø> (-4.0%)
:arrow_down:

rpc/tests/kvstore_fixtures.rs
95.5% <100.0%> (+<0.1%)
:arrow_up:

tendermint/src/abci/responses.rs
69.5% <100.0%> (ø)

rpc/src/endpoint/blockchain.rs
40.0% <0.0%> (-60.0%)
:arrow_down:

tendermint/src/moniker.rs
70.0% <0.0%> (-30.0%)
:arrow_down:

rpc/src/endpoint/health.rs
20.0% <0.0%> (-30.0%)
:arrow_down:

rpc/src/endpoint/abci_query.rs
17.6% <0.0%> (-3.8%)
:arrow_down:

tendermint/src/config.rs
64.5% <0.0%> (-1.3%)
:arrow_down:

light-client/src/types.rs
30.3% <0.0%> (-0.6%)
:arrow_down:

rpc/src/method.rs
28.8% <0.0%> (-0.5%)
:arrow_down:

... and 5 more

Continue to review full report at Codecov.

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


AceEditorHalogen

Unique Recipe Name: AceEditorHalogen

Description of Problem
Port Halogen's Ace Editor example to Halogen Hooks.
There's a partial snippet in https://github.com/thomashoneyman/purescript-halogen-hooks/issues/48
One todo is adding ace to the package set.
https://pursuit.purescript.org/packages/purescript-ace/7.0.0

Sounds good to me!

Closing as this is now a duplicate of #138.

I'm reopening this until #162 gets merged.

Closed by #162


Support for Sonoff TRVZB

Hi,
Is it possible to integrate Sonoff TRVZB, which also supports valve positioning, see https://www.zigbee2mqtt.io/devices/TRVZB.html for reference.
I also own them, so I can test it.
Best wishes!

I can no longer maintain this custom component as I no longer have radiators. But as the Sonoff is Zigbee you can take the Eurotronics implementation as a basis.

Hi,
Is it possible to integrate Sonoff TRVZB, which also supports valve positioning, see https://www.zigbee2mqtt.io/devices/TRVZB.html for reference.
I also own them, so I can test it.
Best wishes!

Did you achieve any progress in this regard? After trying several existing HA integrations without success, I now found this repo which brought back my hope to get the Sonoff TRVs work properly.
I already implemented this Custom Integration and set the parameters as given in the examples, but without any effect on the TRVs behavior. Any help or advice is appreciated.


Sample songs?

Hi, I put this program on my Flipper but im too dumb to use it. Do you think you could include some example songs in the repo?
Thanks!

Check the first release, there is one example song in the archive

Thank you


feat: add date picker to stats and standings screens and other QOL updates

Have both teams' box scores shown in the box score pane
Add HR to box score
Show stats (team/player, hitting/pitching) as of date selected
Show standings as of date selected

Hey @AxBolduc, thanks for the PR, this looks awesome! Could you do a few Cargo things to start:

run cargo fmt and use its formatting
run cargo clippy --all-targets --workspace --all-features and fix all warnings and errors
run cargo test --all-targets --workspace --all-features and make sure everything passes

These should get CI to pass

Hey @andschneider any chance we can get this merged in?


No outlining span returned for multiline comment

Bug Report
🔎 Search Terms

getOutliningSpans
fold / folding

🕗 Version & Regression Information
4.5.0-dev.20211029
💻 Repro
For the code:
/*
x
*/

console.log(1)

Try folding the multiline comment
🐛  Repro
No outlining span returned
One is returned if you remove console.log(1)

Also @mjbvz  , I have a feature request to have an option to fold/unfold a selection of desired code. It can also fix a lot of such problems in future.

Works if you put a space before x


Docker: "layers from manifest don't match image configuration" when pulling ROCm image

What is the issue?
When trying to pull the rocm tagged versions of the ollama/ollama image from Docker Hub, the pull ultimately fails for me with the message layers from manifest don't match image configuration. Pulling the non-rocm versions of the image works fine, however.
So far, I have tried pulling the following tags using docker pull:

rocm (digest matches 0.3.5-rocm, assuming they are the same)
0.3.6-rocm
0.3.4-rocm

all of which yielded the same failing result.
Additional System Information:

OS: Fedora Linux 40 (Workstation) x64
Docker: Version 27.1.2, build d01f264

I do not have an ollama image already pulled: docker image ls | grep ollama yields no output.
I have also removed all containers using an ollama image.
OS
Linux
GPU
AMD
CPU
AMD
Ollama version
No response

Apparently a problem with pigz on Fedora: https://github.com/ollama/ollama/issues/6413
FWIW pulling 0.3.4-rocm on Mint (Ubuntu/Debian based) works fine.

Can confirm that running dnf remove pigz solves this. Thank you!


Full ontology build does not seem to be able to run all checks to completion

Currently, on the go-ontology-dev branch of the pipeline that runs periodic full builds and checks, the checks hang (15hrs anyways) on
robot explain -i ./merged.owl -M unsatisfiability --unsatisfiable all --explanation ./unsatisfiable_explanations_full.md

This used to be a fairly fast test, IIRC
Tagging @balhoff

Last good build was "Mar 17, 2023, 12:00 AM"

Found during https://github.com/geneontology/pipeline/issues/321

@kltm does the actual build perform these same actions? I'm not sure we should be trying to run robot reason over this exact collection of inputs: https://github.com/geneontology/pipeline/blob/5f1009621648fe08de0ad37261ed39f1a6b76a12/Jenkinsfile#L421-L445
For example in the real ontology imports we use wbbt-base.owl, not wbbt.owl.

@balhoff This is coming in on the 3-times-a-day full build and check we use as a canary. From https://github.com/geneontology/pipeline/blob/5f1009621648fe08de0ad37261ed39f1a6b76a12/Jenkinsfile#L402

I know, but I think it may be too sensitive. Just wondering what part of the build would fail if this exact step was not checked, since building of go-lego is checked in the step before.

@balhoff It's originating from sometime about a year ago. How else should unsatisfiable explanations be generated?

Talking to @balhoff , we're going to try and limit the messages generated/calculated with random:2.

We are now getting to an end! Thank you @balhoff


Motion Not Triggering

I just finished setting this up. I can see the snapshot is updated in my camera view, but I am not getting any motion triggers. I have motion setup on the ring app, but it is not triggering my homekit motion accessory. Any ideas?

The Ring api for getting new events is definitely less than ideal.  If you have any other setups that are polling for events, you will definitely run into conflicts.  That means if you have anything using the python library or another homebridge plugin like homebridge-platform-ring-video-doorbell, they will be competing to grab the events from Ring.  It's hard to track down these issues, so you just have to know what else you have set up.  Another thing you can do is pass cameraDingsPollingSeconds: 1, which will poll for events every second instead of the 5 second default.  Let me know if you figure out what is causing your issues as it may help others down the road.

I will disable the other ring python library I have setup and see if that does it.

Happens de same to me, no other ring library but sensor doesn’t fire up, I receive notifications from ring app but no from plugin sensor

I disabled and set to 1 second. Still not triggering. Is there any debugging I can turn on to look into it?

There isn't currently any debug flags that you can turn on to see additional details, but that's something I could add.  This particular issue is very hard to track down because the Ring api is very fragile.  If one other client is grabbing events, you will lose the ability so see them.  I'm going to look into auth sessions a little more and see if I can make it less fragile, but I can't make any promises.  If you really want to debug it locally, you can add a console.log('active dings', activeDings) in node_modules/homebridge-ring-alarm/api/api.js after the line that has poolForActiveDings$.next();.  This will log the array of dings fetched from the api every poll.  My guess is that you will see [] every time, even when there is an event, which means the API is being pinged somewhere else and the events are being cleared before you get a chance to see them. I'll let you know if I come up with any other ideas

Just for your info, there is a plug-in in homeassistant who works perfectly with.

@dgreif So i put the console.log code after the first time I saw poolforactivedings$.next() (line 76) and it would print out [] and the doorbell motion would say not responding. So I then moved it to the second time I saw the code (line 87) and it generated a reference error and caused the module to no longer function.
I had some IFTTT recipes that used ring. I went ahead and turned those off also, but I still cannot get it to function.

@divemasterjm do you have the homeassistant plugin running at the same time as the homebridge plugin?  If so, that might be what's conflicting.  Try turning that off and running just homebridge.

@dgreif So i had to put the console login under if (!activeDings || !activeDings.length) { and under activeDings.forEach(activeDing => { or else the module would become unresponsive. After putting those logs in place. Only the one under !activeDings is being called, the other log never gets called, confirming your assumption that it is always empty []. I am going to try a few more things now that I have your code open and let you know if I figure anything out.
I also turned off my IFTTT triggers just in case.

So I am in the fetchActiveDings() function
I am trying to print out the URL it is using but I am just getting this
https://api.ring.com/clients_api/dings/active?burst=false
I assume the clients_api will get replaced when the URL is actually called? Is there a way I can get the full URL so I can call it manually?

@problemss that actually is the full url.  Should be able to do a GET to that endpoint.  Also need to include the Authorization header and I think you need 'user-agent': 'android:com.ringapp:2.0.67(423)' from previous testing, but that one might be optional.

@problemss it's taken a lot of debugging and digging through other libraries, but I finally got to the root source of the issue on events not registering.  It all has to do with how we are authenticating and setting up a session with Ring.  I have most of the fix in place, but need to think through corner cases before I push it up.  I've got a busy weekend, but I should have an update out early next week.  Thanks for your patience, this was a tough one to track down!

@dgreif that is awesome! Thank you so much! I will be out of town next week for the 4th but am excited to try the fix out when I get back! I also greatly appreciate you spreading the knowledge in the other project as well.

guys. unfortunately for getting motion event we should create a session and use it.
without session no motion alert at all.
PS: dings/active?api_version=9&auth_token=zzbGBjWFcvCZKArwFQfH.

@odenisenko as long as we include the hardware_id header from the session motion events work great. We don’t have to include the session auth_token, oauth authorization header is a better approach for authentication. Are you experiencing something different?

@problemss I found some time to work on it this morning and I got all the session stuff finished up.  Give v3.4.0 a try!

@dgreif I am excited to try it out when I get home. I feel stupid for asking, but I assume it is just npm update home bridge-ring-alarm correct or so I have to manually replace it?

@problemss you have it right.  All you need to do is update the homebridge-ring-alarm npm module and restart homebridge

@dgreif works like a charm!!!! Thank you!!

I can also confirm the update fixed my issue with motion events not being captured. Thank you!

@problemss @johnsonjoshuaa thank you both for confirming that it's working!  I just released another update that should improve motion/ding alert times even more.  Give v3.5.1 a try when you get a chance.  It looks like Ring automatically captures a snapshot when there is an event, and HomeKit was sometimes requesting it after it was already updated.  When this happened, it could take up to 30 seconds before another snapshot would be taken.  This delayed the notification from Home by ~10-15 seconds, and then you would see a notification with no snapshot, which got replaced by a notification with a snapshot once a new one was available.  Now I am a little smarter about how I compare snapshot timestamps, so if a snapshot was taken within the last 10 seconds before Home requests it, we use it without waiting for a new one.  The end result (at least for me) is that motion alerts are delivered within ~3 seconds of when they occur, with snapshot in tow every time.

@dgreif Thank you for the update. I installed it and I did notice the screenshots, and notifications where much quicker. The screenshots are also usable now. I noticed prior to the update the screenshot would be delayed and not always catch what triggered the motion. After the update the 7 motion events I have triggered on all 3 devices have resulted in a usable screenshot. So from my perspective everything works great!

@johnsonjoshuaa I appreciate the feedback and testing.  Glad to hear it's working well! 🎉


Extract govuk::envvar to own module

In a bid to break up the monolithic govuk module.

:+1: merge when ready


Crash in tf.raw_ops.ResizeNearestNeighbor/ResizeNearestNeighborGrad/ResizeArea/ResizeBicubic/ResizeBilinear

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
TensorFlow Nightly
Custom code
Yes
OS platform and distribution
Linux Ubuntu 22.04.3 LTS (x86_64)
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
On specific input, these APIs will output "The session crashed because it took up all available RAM." The affected APIs are listed below:

tf.raw_ops.ResizeBilinear
tf.raw_ops.ResizeBicubic
tf.raw_ops.ResizeArea
tf.raw_ops.ResizeNearestNeighbor
tf.raw_ops.ResizeNearestNeighborGrad

Standalone code to reproduce the issue
https://colab.research.google.com/drive/1a6B_lYMfENTbO4ifQMLYe8Hq6CHcc6hP?usp=sharing

Relevant log output
Timestamp	Level	Message
Jun 6, 2024, 6:57:43 PM	WARNING	WARNING:root:kernel d0444564-3fb8-4d42-ac83-1338e6842d5a restarted
Jun 6, 2024, 6:57:43 PM	INFO	KernelRestarter: restarting kernel (1/5), keep random ports
Jun 6, 2024, 6:57:25 PM	WARNING	2024-06-06 10:57:25.421101: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of<PHONE_NUMBER>2 exceeds 10% of free system memory.
Jun 6, 2024, 6:57:21 PM	WARNING	2024-06-06 10:57:21.507228: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Jun 6, 2024, 6:57:17 PM	WARNING	To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Jun 6, 2024, 6:57:17 PM	WARNING	2024-06-06 10:57:17.995922: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
Jun 6, 2024, 6:56:13 PM	WARNING	WARNING:root:kernel d0444564-3fb8-4d42-ac83-1338e6842d5a restarted
Jun 6, 2024, 6:56:13 PM	INFO	KernelRestarter: restarting kernel (1/5), keep random ports
Jun 6, 2024, 6:55:56 PM	WARNING	2024-06-06 10:55:56.764126: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of<PHONE_NUMBER>44 exceeds 10% of free system memory.
Jun 6, 2024, 6:55:52 PM	WARNING	2024-06-06 10:55:52.277507: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

isn't this because the tensor is too big for the ram ? if you reduce the size to 20000, 20000 it should output without the resource exhaustion error.

Hi @x0w3n ,

I was able to reproduce the issue on Colab using TF v2.15 and TF-nightly ,Please find the gist here for reference.

Thank you!


[Question] Unity desktop with Crashlytics + Analytics

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.3.24f1
Firebase Unity SDK version: 8.7.0
Source you installed the SDK: .unitypackage
Problematic Firebase Component: Crashlytics
Other Firebase Components in use: Analytics
Additional SDKs you are using: non
Platform you are using the Unity editor on: Windows
Platform you are targeting: desktop
Scripting Runtime: Mono and IL2CPP

[REQUIRED] Please describe the question here:
Hi, I am trying to use Analytics and Crashlytics in my projects and I am having some problems with it. I just created a new project to make some testing and I get the same results, I don't see anything from the Firebase console. All the code I am using is the following one:
using Firebase;
using Firebase.Analytics;
using Firebase.Crashlytics;
using Firebase.Extensions;
using UnityEngine;
using UnityEngine.UI;

public class FirebaseManager : MonoBehaviour
{
    GameObject nullGameObject;
    FirebaseApp app;
    public Text text;

    void Start()
    {
        FirebaseApp.LogLevel = LogLevel.Debug;

        FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
        {
            var dependencyStatus = task.Result;
            if (dependencyStatus == DependencyStatus.Available)
            {
                // Create and hold a reference to your FirebaseApp,
                // where app is a Firebase.FirebaseApp property of your application class.
                // Crashlytics will use the DefaultInstance, as well;
                // this ensures that Crashlytics is initialized.
                app = FirebaseApp.DefaultInstance;

                // Set a flag here for indicating that your project is ready to use Firebase.
                //x = true;

                FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
                FirebaseAnalytics.LogEvent(FirebaseAnalytics.EventAppOpen);

                Debug.Log("Ready!");
                text.text = "Ready!";
            }
            else
            {
                Debug.LogError($"Could not resolve all Firebase dependencies: {dependencyStatus}");
                // Firebase Unity SDK is not safe to use here.
            }
        });
    }

    // Methods called by UI buttons

    public void Crash()
    {
        Debug.Log("Crash!");
        text.text = "Crash!";

        Crashlytics.LogException(new System.Exception("test"));
        throw new System.Exception("test exception please ignore");
    }

    public void NullCrash()
    {
        Debug.Log("Crash null!");
        text.text = "Crash null!";

        nullGameObject.transform.position = Vector3.zero;
    }

    public void Log()
    {
        Debug.Log("Log!");
        text.text = "Log!";

        FirebaseAnalytics.LogEvent(FirebaseAnalytics.EventLogin);

        FirebaseAnalytics.LogEvent(
            FirebaseAnalytics.EventLogin,
            new Parameter[] {
                new Parameter(FirebaseAnalytics.ParameterMethod, "hello"),
            }
        );
    }

}

As I undestand, with this code and enabling the Analytics and Crashlytics in the firebase project is enough to have it working. After that you only need to add the unity project to firebase as an android app and download the "google-services.json" + install the unity packages of Analytics and Crashlytics.
But in the console I get this output:

I supouse that the problem reside in that the app initializer crashlytics is not found, but i don't undestand why.
Am I missing any step or making something wrong? Do I have to make any extra step to have it working in desktop?
Also, can I test while running from the Unity editor without makeing a build?
Thank you in advance.

Hi @mmiro1,
Thanks for reporting this. It appears that neither Crashlytics nor Analytics are supported for desktop according to our documentation.
That being said, are these features that you want implemented in the future?

Hi @paulinon ,
Thanks for your answer. I didn't realize these products weren't supported for desktop. Regarding your question, it would be great to see them in the future. Is there any date or estimation for when it could be included?
Thank you again and sorry for the inconvenience.

Hi @mmiro1,
I'm unable to provide a timeline for this. However, you may check this thread for updates. I'll be marking this as a feature request for now.

+1 on having this feature. Currently have to use UGS, and would much rather have everything on firebase

Any Plan？

+1

I would find this really useful as well.

There is a serious lack of great analytics solutions for Unity standalone. UGS is expensive. Firebase Analytics seems like a no brainer, yet it does not support unity standalone builds or the editor.

Has there been any updates on this? Having analytics on the desktop app would be really useful...

+1


Error when installing ROCM 4.7 on Ubuntu 22.04.3. Not showing all GPUs.

This is a fresh Ubuntu install. I've upgraded my kernel to 6.2 in accordance to the Prerequisites on the website (https://rocm.docs.amd.com/en/latest/deploy/linux/prerequisites.html)
Showing uname -m && cat /etc/*release:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

My Kernel version is: Linux 6.2.0-060200-generic #202302191831 SMP PREEMPT_DYNAMIC Sun Feb 19 23:37:22 UTC 2023 x86_64
I'm trying to install according to https://rocm.docs.amd.com/en/latest/deploy/linux/installer/install.html
When I run sudo amdgpu-install --usecase=rocm, it fails stating
Error! Bad return status for module build on kernel: 6.2.0-060200-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.2.4-1652687.22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amdgpu-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)```

But when I run ```
apt-cache policy amdgpu amdgpu-dkms
amdgpu:
  Installed: (none)
  Candidate: 1:5.7.50700-1652687.22.04
  Version table:
     1:5.7.50700-1652687.22.04 600
        600 https://repo.radeon.com/amdgpu/5.7/ubuntu jammy/main amd64 Packages
amdgpu-dkms:
  Installed: 1:<IP_ADDRESS>700-1652687.22.04
  Candidate: 1:<IP_ADDRESS>700-1652687.22.04
  Version table:
 *** 1:<IP_ADDRESS>700-1652687.22.04 600
        600 https://repo.radeon.com/amdgpu/5.7/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

Running rocm-smi shows only 1 GPU while it should be showing 8. sudo lspci | grep -i "display" shows me all my GPUs.

@saksham36  is rocm4.7 typo?
You meant 5.7?
Attach the make.log. path of the log, you can see in  console output

Hi @saksham36, please check latest ROCm6.0.0 to see if your issue has been fixed.  Please close the ticket if issue is fixed.  Thanks.

Closing the ticket as no response from @saksham36.  Please re-open the ticket if the issue still exists with latest ROCm6.0.0.  Thanks.


[silx view] VARIABLE_errors not handled in NXdata plots.

I thought those error-bars were for the "horizontal" direction ?!
Nexus is faaaar too obfuscated for me :(

The _errors approach serves to associate uncertainties to any dataset irrespective of being used as signal, as axis or not used for a plot.

On Tue, 24 Mar 2020 05:51:34 -0700
V. Armando Solé<EMAIL_ADDRESS>wrote:

The _errors approach serves to associate uncertainties to any dataset irrespective of being used as signal, as axis or not used for a plot.

Does this mean I should use this way of storing data for BM29 ? as there is a strong correlation with silx view in order to visualize the data on this beamline ?

You should use it for everything. See uncertainties or errors under:
https://manual.nexusformat.org/datarules.html


[BUG] AssertionError on Install

Model
N/A?
Describe the bug
Unable to install in a fresh virtualenv.
Screenshots
pip install --no-cache-dir lama-cleaner
ERROR: Exception:
Traceback (most recent call last):
  File "/home/martin/Documents/projects/envs/env_lama_cleaner/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/martin/Documents/projects/envs/env_lama_cleaner/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/home/martin/Documents/projects/envs/env_lama_cleaner/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 389, in run
    to_install = resolver.get_installation_order(requirement_set)
  File "/home/martin/Documents/projects/envs/env_lama_cleaner/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 188, in get_installation_order
    weights = get_topological_weights(
  File "/home/martin/Documents/projects/envs/env_lama_cleaner/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 276, in get_topological_weights
    assert len(weights) == expected_node_count
AssertionError

System Info
Software version used

Ubuntu 22.04.2 LTS
lama-cleaner: "Downloading lama_cleaner-1.2.1-py3-none-any.whl (6.8 MB)"
pytorch:  "Downloading torch-2.0.1-cp310-cp310-manylinux1_x86_64.whl (619.9 MB)"
CUDA: "Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)"

Thank you!

I'm not sure how to resolve this dependency error, but I suggest you try this command.
pip install torch==1.13.1+cu117 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu117
pip install lama-cleaner


404 (Not Found) in production

Apologies if this was answered somewhere already:
I have a working development version of a datatable, which fails with  "Failed to load resource: the server responded with a status of 404 (Not Found)"  in production. Where should I look for the culprit?
Thanks for any possible help.

ok ... it is the relative url root which is missing in my case .. how do I set it up in coffeescript?

I hardcoded the root   in each   App.Base extension - please let me know if there is a better way.

@ivanamihalek am I right that you are having problem with coffee_routes gem?
if so, you can look at https://github.com/railsware/js-routes because coffee_routes is
NOTICE: CoffeeRoutes is now unmaintained, I recommend the excellent JsRoutes instead.

Thanks @ajahongir. I was hoping to avoid it because  it would force me to 1) mix coffeescript and javascript, and 2) use a rather clunky solution of reading the root url from env variable in the assets precompilation step. Can it (the root url) be made available somewhere in the ajax-datatables-rails setup?

@ivanamihalek  sorry too late answer. I thing in this case its easy to updating gem from coffee_routes to JsRoutes.
I recently have updated how-to project. so I moved to rails 5 and js-routes.

Thank you, @ajahongir I migrated my project to js-routes following your how-to example and it works nicely. Thanks!

sounds good. you can close issue if its solved.


graph/graphs/gen: check for all node id collisions

This incurs a greater cost for well-behaved code, but prevents subtle errors that would otherwise not be caught, for example  cycle(1,2,3,4,5,3) not being a single cycle.
Please take a look.
Closes #1614.

/cc @mattConn

Codecov Report

Merging #1619 (2d8bed3) into master (22615bc) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1619      +/-   ##
==========================================
- Coverage   73.04%   73.01%   -0.04%
==========================================
  Files         498      492       -6
  Lines       58815    58544     -271
==========================================
- Hits        42962    42746     -216
+ Misses      13425    13398      -27
+ Partials     2428     2400      -28

Impacted Files
Coverage Δ

graph/graphs/gen/gen.go
100.00% <100.00%> (+16.94%)
:arrow_up:

lapack/gonum/dlaqr1.go
40.62% <0.00%> (-15.63%)
:arrow_down:

graph/iterator/nodes_map.go

graph/iterator/map.go

mat/offset.go

graph/internal/set/same.go

...sp/fourier/internal/fftpack/array_bounds_checks.go

mat/index_bound_checks.go

Continue to review full report at Codecov.

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

Looks good to me.


Added blog post kpng-specialized-proxiers

Adds a blog post about the sig/network kpng project and how it can be used to create specialized proxiers to handle traffic use-cases not supported by K8s.
The post is intended for anyone and is kept short (no TL;DR). However for developers a more in-depth example is provided.
readable post
About the example
The example is currently hosted on https://github.com/Nordix/kpng-example
Is there a better place? I.e some place where K8s example are usually stored?
The example will be updated quite often to keep in pair with the kpng development.

@sftim I will. I assume it's here https://github.com/kubernetes/contributor-site/tree/master/content/en/blog ?
A reason for non-developers to know this is the possibility to actually handle a difficult traffic use-case with a service without modifying K8s.

Unless https://k8s.dev/ is for K8s developers? I mean developers of K8s itself. In that case my post is not for them, sig/network maintains the kube-proxy and not specialized proxiers which the post describes.

Unless https://k8s.dev/ is for K8s developers? I mean developers of K8s itself.

That is the target audience for https://k8s.dev/: people who want to contribute to Kubernetes.
I think writing an alternative proxy could count as a contribution, but equally you could use the information in this article to write your own proxy that you don't publish as a project contribution.
It sounds fine to leave this article on this blog.

/sig network

sounds nice to me :+1:

/hold
SIG Docs blog has not assigned a publication date yet (we should, though!)

@kubernetes/sig-network-misc how's this article looking? I'm looking for a reassurance that there's nothing in here where, once published, we'd want to yank the article or immediately update it.

I have updated after review, but I still wonder if there is a better place for the example. A place where k8s examples are collected maybe? Where/who can I ask?

But https://github.com/Nordix/kpng-example is perfectly fine for me, and if it's ok please publish.

Could that example live within https://github.com/kubernetes-sigs/kpng/tree/master/examples ? If not, I wonder if we could get a repo https://github.com/kubernetes-sigs/kpng-examples and make a branch / directory there for this example?

I'll check https://github.com/kubernetes-sigs/kpng/tree/master/examples. The only problem would be that I want to build the example out-of-tree. But perhaps it's ok if it can be copied. I'll be back...

The example is copied to https://github.com/kubernetes-sigs/kpng/tree/master/examples/pipe-exec, and the link in the post updated.

@uablrek, file name should be 2021-10-18-kpng-specialized-proxiers.md

@reylejano Done: rename, squash, rebase and force-push

/hold cancel
Publication date is set

/approve


Dev dns microsoft.network 2018 05 01

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-python

Perfect, thanks @vladrai taking a look

Automation for azure-sdk-for-ruby

Please address CI issues if any are reported

@vladrai please address the linter errors reported

Automation for azure-sdk-for-node

Automation for azure-sdk-for-java


Adding options to allow users to overwritte window, document and head

This is required when trying to enable stickyheaders on pages that have Iframes

The reason why we need this feature, is so that we can inject stickyTableHeaders inside a tinymce iframe. Would be great if this gets merged soon :)

@jmosbech  Was wondering whats the status of this PR? Will have to fork it and potentially spike a new plugin if this does not get merged.

Sorry about the delay. Looks good, I'll merge it ASAP.


Create codeql.yml

Description
Add an automatic code scanning tool to enhance the security protocols for our codebase.
Related Issues or Pull Requests
Issue #170
Proposed Changes
Add a new feature for DependaBot to scan our codebase for potential security risks and alert it accordingly
How to Test
We can test it by pushing any code changes to our codebase in the form of a commit
Checklist
Please make sure you've done the following before submitting this pull request:
Ran all existing tests to ensure they pass.
Added new tests to cover the changes (if applicable).
Reviewed the code for any potential issues or bugs.
Updated the documentation (if needed) to reflect the changes.
Squashed your commits into a single logical commit (if necessary).

@SID262000 Thank you very much for this contribution. Focusing on security is important!


UI: allow all URL schemas for custom console URLs

Allow all URL schemas for custom console URLs. This change removes a check that enforces the 'Console' button of a Harvester node to only redirect to URLs starting with http:// or https://. Otherwise it will prepend http:// to the configured URL. This breaks non-HTTP URL schemas like vnc:// or rtsx://, which are sometimes used to launch custom VNC viewers instead of using the built-in one.
fixes: https://github.com/harvester/harvester/issues/6042

Summary
PR Checklist

Is this a multi-tenancy feature/bug? No.
Do we need to backport changes to the old Rancher UI, such as RKE1? No.
Are backend engineers aware of UI changes? No backend change associated with this fix.

Related Issue #
https://github.com/harvester/harvester/issues/6042
Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

I think we should disable the console button if the consoleURL is invalid + we should validate the consoleURL field when editing the hosts from UI.
As mentioned in https://github.com/harvester/harvester/issues/6042#issuecomment-2195314002 the ^[a-z]+:\/\/  regex can be used

@mergify backport release-harvester-v1.4


fix: allow numeric enum values in yaml config

 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.


Migrate to MIT license (while it is still feasible)

This switches the license from LGPL v2.1 to the MIT license. Don't merge this until I confirm @UnlikePaladin is ok with this change, as this is built upon their code. Of course @PoolloverNathan also needs to be ok with this, because they have made contributions. This will be a draft until I get permission

I'm fine with this


OSSM-1321: Add permissions to update pods/finalizers required for appending validation messages

This change fixes errors logged by istiod when validationMessages option is enabled.

I thought we wouldn't update older operator...

This PR is only a chart update, so that the 2.2 and 2.3 operators will be able to deploy 2.1 properly.
This is also another reason to move the charts from the operator repo to maistra/istio. The PR makes it look as if the intent is to update the 2.1 operator, while we're actually updating the 2.1 charts. If these charts were in maistra/istio and the 2.3 operator pulled the charts directly from maistra/istio and not from the previous branches in maistra/istio-operator, things would make more sense.


Issue with trained model output for objectives with raw score transformations

For some objective types, LightGBM transforms the raw score (sum of tree outputs) to produce the model output.  For example, for Poisson, Gamma, and Tweedie regressions, the raw score is passed through the exp function.  However, when the boosting type is rf (random forest), these transforms don't appear to be applied, instead the output of the model is just the average of the tree outputs.
Similarly, when reg_sqrt is true, the raw score is squared to produce the model output.  However, when either the boosting type is rf OR the objective type is Poisson, Gamma, Tweedie, or Huber, this output transform does not appear to be applied.
For binary classification, again if the boosting type is rf, it appears that the model outputs the average of the tree outputs, but does not apply the 1 / Math.Exp(-Sigmoid * RawScore) transform to produce a probability.
Is this to be expected?  Shouldn't the choice of reg_sqrt and whether or not boosting type rf is used be independent of the model output meaning?
PS: Just a guess, but looking at the generated C++ code for the tree:
void GBDT::Predict(const double* features, double *output, const PredictionEarlyStopInstance* early_stop) const {
	PredictRaw(features, output, early_stop);
	if (average_output_) {
		for (int k = 0; k < num_tree_per_iteration_; ++k) {
			output[k] /= num_iteration_for_pred_;
		}
	}
	else if (objective_function_ != nullptr) {
		objective_function_->ConvertOutput(output, output);
	}
}

It seems like the else if should just be an if, as otherwise if averaging is done (as is the case for random forest), the ConvertOutput methods are never called?

@guolinke Any comment on this, please?

@mjmckp sorry, I am in the vacation.
In this PR: https://github.com/Microsoft/LightGBM/pull/1637, RF will directly fit the targets by regression. Therefore, it is no need for label transform.
And I think reg_sqrt is not used in RF mode as well.
I think we may need a Better solution for RF mode, by using the gradients from objective function here : https://github.com/Microsoft/LightGBM/blob/master/src/boosting/rf.hpp#L80-L110, and enable the ConvertOutput in prediction.

@mjmckp I am afraid I cannot fix this for RF recently.
Would you like to contribute this?

I could give it a go, if you could provide a rough description of what changes are required and where?

@mjmckp thanks so much!
you need to:

use the objective function to calculate gradients in RF, instead of just use residuals (current solution) in RF: https://github.com/Microsoft/LightGBM/blob/master/src/boosting/rf.hpp#L80-L106 .
fix prediction codes for the score transformations.

ping @mjmckp
any progress?

@mjmckp if you have no time for this, I can fix it recently.

@guolinke That would be great, thanks, as this isn't something that I desperately need, but just up when I was writing the unit tests for https://github.com/rca22/LightGBM.Net  However, I would like to understand the LightGBM codebase better in order to contribute in the future.


Is it possible to create relationships with tables from different databases?

PGSync version: 2.3.2
Postgres version: 12
Elasticsearch version: 7.13.4
Redis version: 7.0.4
Python version: 3.10
Problem Description:
I want to import several tables from two databases and link them together with primary and foreign keys (mostly one-to-one relationships). The problem is that I do not really know how to do that. It is straightforward to create a relationship for 2 tables within the same database, but not so much for 2 tables that come from different databases.

Maybe this is better suited for 'discussions', but I am not sure.

I don't think you can create relationships between tables in different databases in Postgres.
Unless you use something like dblink
You should be able to create relationships between objects in different schemas

You can use PostgreSQL's foreign schema mechanism:
https://www.postgresql.org/docs/current/sql-importforeignschema.html
This allows you to treat a schema even on a different machine as if it were part of you local database. Note that I've not (yet) tried this with pgsync...

I wanted to try the postgres_fdw plugin, but Google Cloud SQL does not support SSL connections for it (see this). This is unfortunate, cause FDW would have been perfect for my use-case.
My intention was to decouple search functionality between two microservices. Another solution might be to give each microservices its own schema in the database. Then I can only enable a microservice to read its own schema (ensure decoupling) and wait for Google to allow SSL connections for the postgres_fdw plugin.

I tried @eichmann's approach, but it seems that foreign tables are not supported.
Traceback (most recent call last):
  File "/home/casperaangeenbrug/.local/bin/bootstrap", line 70, in <module>
    main()
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/casperaangeenbrug/.local/bin/bootstrap", line 59, in main
    sync: Sync = Sync(
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/pgsync/sync.py", line 107, in __init__
    self.validate(repl_slots=repl_slots)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/pgsync/sync.py", line 186, in validate
    self.root: Node = self.tree.build(self.nodes)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/pgsync/node.py", line 278, in build
    node = Node(
  File "<string>", line 13, in __init__
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/pgsync/node.py", line 119, in __post_init__
    self.model: sa.sql.Alias = self.models(self.table, self.schema)
  File "/home/casperaangeenbrug/.local/lib/python3.10/site-packages/pgsync/base.py", line 174, in models
    raise TableNotFoundError(
pgsync.exc.TableNotFoundError: 'Table "stock.option" not found in registry'

Is it possible to build support for these @toluaina ?

I can add this to the TODO list. Although, I can't offer a time for completing this yet.
This will also require a bit of investigation. For example I don't know how/if SQLAlchemy will reflect those tables.


Support coin-selection of Byron inputs in balanceTransaction

[x] Extend estimateTxFee and estimateNumberOfWitnesses to also be able to deal with Bootstrap witnesses
[x] Make produces balanced transactions or fails property test both Shelley and Byron wallets

Comments
Needed for #3746
Issue Number
ADP-2268 / ADP-2613

  test/unit/Cardano/Wallet/Shelley/TransactionSpec.hs:1155:5:
  1) Cardano.Wallet.Shelley.Transaction, SealedTx serialisation/deserialisation, roundtrip for Shelley witnesses
       *** Failed! Exception: 'NonEmpty.fromList: empty list', Falsified (after 1 test and 3 shrinks):
       AnyRecentEra RecentEraAlonzo
       AnyCardanoEra BabbageEra
       DecodeSetup
           { inputs = UTxO
               { unUTxO = fromList [] }
           , outputs = []
           , metadata = Nothing
           , ttl = SlotNo 677
           , keyPasswd = []
           , network = Testnet
               ( NetworkMagic
                   { unNetworkMagic = 1 }
               )
           }
       Exception thrown while showing test case: 'NonEmpty.fromList: empty list'

  To rerun use: --match "/Cardano.Wallet.Shelley.Transaction/SealedTx serialisation/deserialisation/roundtrip for Shelley witnesses/"

Randomized with seed 98056259

Merging, but please have a look @jonathanknowles
bors r+

bors r+

bors r+


Not yet support xapk

Not yet support decompile xapk file :(

XAPK files are simply ZIP files containing the base apk and the various split apks.

I'll use this ticket as the backlogged feature request. Maybe at some point Apktool could reach into the xapk and pull out what it needs, but that gets really confusing with all the splits/archs that may exist.

I'll use this ticket as the backlogged feature request. Maybe at some point Apktool could reach into the xapk and pull out what it needs, but that gets really confusing with all the splits/archs that may exist.

Very soon there will be such applications.  I already thought about it, it is possible to unpack only the basic arch from this archive, and at assembly to pack everything back.  also to add a key whether to unpack all split apk from archive.  I personally have such an idea

Any updates on this ?


📦💻 - Add additional mappings

Some of the pending mappings:

 Enter - Insert break line
. , - CocAction and CodeAction


Show ehcache statistics

Hi,
I need to show the cache statistics, like number of items in cache, size of the cache, etc. I read several posts about this topic but I'm a bit confused. Could you please provide a best practice solution to retrieve and print the statistics?
Thanks

@lsantaniello Given that this isn't a problem with our repo, stackoverflow.com would be a better place for this question.


Update @angular-devkit node-sass 4.10.0

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions
`
Angular CLI: 7.0.5
Node: 11.1.0
OS: win32 x64
Angular: 7.0.3
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router, service-worker
Package                           Version
@angular-devkit/architect         0.10.5
@angular-devkit/build-angular     0.10.5
@angular-devkit/build-optimizer   0.10.5
@angular-devkit/build-webpack     0.10.5
@angular-devkit/core              7.0.5
@angular-devkit/schematics        7.0.5
@angular/cli                      7.0.5
@angular/flex-layout              7.0.0-beta.19
@angular/pwa                      0.10.5
@ngtools/webpack                  7.0.5
@schematics/angular               7.0.5
@schematics/update                0.10.5
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.19.1
`
Repro steps
npm update
The log given by the failure

<EMAIL_ADDRESS>postinstall C:\Users\Documents\Projects\test\t\node_modules@angular-devkit\build-angular\node_modules\node-sass
node scripts/build.js

Desired functionality
Please update dipendency to work well on Node 11.1.0
Mention any other details that might be useful
Temporary solve install package manual
npm install node-sass  --save

@alan-agius4 hi!
how do I use dart-sass with an Angular project ?
I did npm remove node-sass, npm install dart-sass and then npm start but my project doesn't start anymore it says this for every file :
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Cannot find module 'node-sass'

@tatsujb  The project name is dart-sass but the official package name is sass.

I see this fix was merged into master, and npm has the last published date as yesterday, but the package they are distributing does not have the move from 4.9.3 to 4.10.0 for node-sass optional dependency. Perhaps merged to master but not the build branch?


Add ability to create tags on the ENIs the cilium-operator creates

Add ability to create tags on the ENIs the cilium-operator creates. I opted to add the eni-tags cli flag to the cilium-operator thinking a user can pass --eni-tags=k1=v1,k2=v2. Related to the ENI subsystem I also moved some cli defaults to be in the defaults package just for consistency reasons.
Add ability to create tags on the ENIs the cilium-operator creates.

This change is

Coverage decreased (-0.04%) to 45.521% when pulling e17b7a5c37d23559150ccfb30b26ca1b8f94a892 on ungureanuvladvictor:pr/vladu/eni-tags into 11a73dc023b21003c7fa6e4914cc1d2619e5f85c on cilium:master.

@ungureanuvladvictor can you please drop 6cba566516fa57c92b82497f00a1516dc49927b6? Another PR just got merged which adds the same functionality.

@ianvernon dropped that commit and rebased as well.

test-me-please


Self-referential types cannot be unpickled

Reporting a bug

[x] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

This numba type has a self reference:
import numba
class Nasty(numba.types.Dummy):
    def __init__(self):
        super().__init__("Oops")
        self.loop = self  # in reality there is a cache that eventually forms a loop

This causes a bizarre error when unpickling:
>>> p = pickle.dumps(Nasty())
>>> pickle.loads(p)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-19-0ff50e04be57> in <module>
----> 1 pickle.loads(p)

c:\users\wiese\repos\ga\numba\numba\core\types\abstract.py in _type_reconstructor(reconstructor, reconstructor_args, state)
     74 if state:
     75     obj.__dict__.update(state)
---> 76 return type(obj)._intern(obj)

c:\users\wiese\repos\ga\numba\numba\core\types\abstract.py in _TypeMetaclass._intern(cls, inst)
     47 def _intern(cls, inst):
     48     # Try to intern the created instance
     49     wr = weakref.ref(inst, _on_type_disposal)
---> 50     orig = _typecache.get(wr)
     51     orig = orig and orig()
     52     if orig is not None:

c:\users\wiese\repos\ga\numba\numba\core\types\abstract.py in Type.__hash__(self)
    117 def __hash__(self):
--> 118     return hash(self.key)

c:\users\wiese\repos\ga\numba\numba\core\types\abstract.py in Type.key(self)
     95 @property
     96 def key(self):
     97     """
     98     A property used for __eq__, __ne__ and __hash__.  Can be overridden
     99     in subclasses.
    100     """
--> 101     return self.name

AttributeError: 'Nasty' object has no attribute 'name'

In cases like this, you will need to customize the pickling for Nasty; i.e. define __reduce__

In a very scary twist, defining key as super().key does not crash
import numba
class Nasty(numba.types.Dummy):
    def __init__(self):
        super().__init__("Oops")
        self.loop = self  # in reality there is a cache that eventually forms a loop
    def key(self):
        return super().key()

>>> p = pickle.dumps(Nasty())
>>> n = pickle.loads(p)

although the .loop and .name attributes still end up missing:
>>> n.__dict_
{'_code': 2019}

In cases like this, you will need to customize the pickling for Nasty; i.e. define __reduce__

Could you elaborate on why this is necessary? Without the Type base class, the default works correctly:
In [8]: class Foo:
   ...:     def __init__(self):
   ...:         self.loop = self
   ...:

In [9]: pickle.loads(pickle.dumps(Foo()))
Out[9]: <__main__.Foo at 0x20662a1bb80>

In [10]: f = pickle.loads(pickle.dumps(Foo()))

In [11]: f.loop is f
Out[11]: True

Ah, it seems that the problem is:

Numba treats the result of __getstate__ as if it were returned by __get_newargs__, which means the state is passed to the reducer
Python does not support self-referential __get_newargs__, https://bugs.python.org/issue1062277

It's a little irritating that numba is changing the meaning of the builtin pickle hooks, but I'm not sure what if any action numba should take here.

Numba treats the result of getstate as if it were returned by get_newargs, which means the state is passed to the reducer

The pickling protocol is quite complex and maybe what we have is outdated. We have been building on what @pitrou started 5 years ago. Let us know if you think there is a better way.
Btw, can you override __reduce__ to break the self-reference cycle?

Let us know if you think there is a better way.

Requiring all numba types to implement __getnewargs__ might be a reasonable alternative.


Item and Administrative Statistics Work

 Issue by vantuyls
Thursday Oct 01, 2015 at 21:30 GMT
Originally opened as https://github.com/projecthydra/sufia/issues/1323

Oregon State University Libraries is planning a development sprint in the next few weeks to work on building out item level statistics and possibly some administrative statistics reporting. We're interested in hearing from the community about what work you might like to see in these areas. We are tentatively planning to work on the following things:
Item Level Statistics

[ ] Add a table of monthly pageviews and downloads representing the previous 1 year of data
[ ] Add the ability to download a .csv file of pageview and download data for the item
[ ] Geospatial representation of pageview an download activity for the item
[ ] General modifications of the layout of the analytics page to incorporate the above

Administrative Statistics

[ ] Truthfully, we don't have anything at this time, but we're planning to dabble in this area soon...but we also haven't a chance to look at the current admin stats dashboard.

Any feedback is welcome. We look forward to the conversation.

 Comment by hectorcorrea
Friday Oct 02, 2015 at 13:41 GMT

Tagging @cam156 since she's been doing some admin stats upgrades in ScholarSphere.

 Comment by vantuyls
Thursday Oct 08, 2015 at 22:37 GMT

So, we've just had our planning meeting and here are the things we are going to have a go at over the next few weeks. We'll only be working on the Item Level Statistics/Analytics page, but on that page we plan to:

Add a table of monthly pageviews and downloads representing the previous 1 year of data (a moving window of the last 12 months)
Add the ability to download a .csv file of pageview and download data for the item. The file will include month, year, pageview, downloads for the item from the month of upload to the last complete month. File will also include a header indicating date of creation.
Make modifications to the time series graph that is currently in place on this page to make it a bit more informative (still unclear exactly what we're going to do here)
General modifications of the layout of the analytics page to incorporate the above

Again, we'd love to hear from anyone who has comments.

 Comment by vantuyls
Monday Oct 05, 2015 at 22:49 GMT

@cam156 - any thoughts on this? Would love to not plan this work without input from the community!

 Comment by mjgiarlo
Thursday Oct 08, 2015 at 22:42 GMT

:+1: to that plan! If you're planning to do any wireframing or mocking-up prior to dev, feel free to drop those in here for folks to comment on. If not, no worries.

 Comment by vantuyls
Friday Oct 09, 2015 at 19:48 GMT

Welp, this was my first go at a mock up from about a month ago. I suspect we'll refine this next week, but have a gander.

 Comment by mjgiarlo
Friday Oct 09, 2015 at 22:00 GMT

Barring objections or tweaks from @cam156 @mtribone @jcoyne, who've been pinged multiple times in this thread, I'd say run with it!

 Comment by vantuyls
Friday Oct 09, 2015 at 22:07 GMT

Even the video game panel in lower left?

 Comment by mjgiarlo
Friday Oct 09, 2015 at 22:22 GMT

Gamify it.

 Comment by cam156
Monday Oct 12, 2015 at 17:05 GMT

BTW :+1:  to any work you put in on the file level statistics!

 Comment by cam156
Monday Oct 12, 2015 at 17:04 GMT

@vantuyls I'm passing this ticket along to our Librarians.  They just said they had a wish for sending users emails about their file level statistics in similar formats to the ones you described above.  Something akin to bpress( sp?), which I have yet to see.

 Comment by mjgiarlo
Tuesday Dec 15, 2015 at 18:08 GMT

@vantuyls I have a question about timelines. Are you interested in doing this work now atop Sufia 6.x, or would you be open to waiting a little and doing this development in Sufia 7 (which saves us from having to migrate/forward-port this work)?
I'll assume 6.x for now, but will be happy to change the milestone to 7.x. :smiley:

 Comment by vantuyls
Monday Oct 12, 2015 at 17:27 GMT

Thanks for the input @cam156 - i wonder about whether that should be incorporated in the file level stats or in some other reporting mechanism. We're also thinking forward to a time when users have profiles (e.g. with lists of digital objects in the repository, user-level statistics, etc.) and I wonder if that would be an appropriate place for users to subscribe to email notifications about their content.

 Comment by vantuyls
Wednesday Dec 16, 2015 at 20:25 GMT

@mjgiarlo so, we have this up and running in our local system now, but it needs a tad more work before i think it is shareable (right @straleyb?). We'll wait until 7.

 Comment by mjgiarlo
Wednesday Dec 16, 2015 at 21:00 GMT

OK, great! I've moved it to the backlog. Thanks, @vantuyls & @straleyb

 Comment by mjgiarlo
Wednesday Dec 21, 2016 at 00:02 GMT

Ping @hannahfrost :arrow_up:


fix(RecsListTable): Fixing the category sorting

Fixed a bug that caused sorting in the category column to not work.
Wrote a test for it.

@ikerreyes , could you please verify the change in the tests?

:tada: This PR is included in version 1.3.14 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


perf: speed up style deletion

The original issue has useful background for this change:

Calling api.deleteStyle can take a long time under the following conditions:

multiple relatively exclusive tilesets exist in the db
sufficient number of tile data (say at least ~100 MB)

Replicate this by doing two mbtiles imports, waiting for them to complete, and deleting either one of the styles associated with it.  The example I tried imported a small map (~10 MB) and the Terrastories default offline map (~150 MB), and attempting to delete either map style.
Bottleneck seems to be this query (takes about 16 seconds on my machine):
DELETE FROM TileData WHERE tilesetId IN (${tilesetsSqlList})`

Why was this query so slow?
To find out, I compiled[^A] SQLite with profiling and ran the deletion queries manually. When I ran the bad query, I saw this (formatted lightly):
QUERY PLAN (cycles=58188228963 [100%])
|--SCAN TileData (cycles=166585395 [0%] loops=1 rows=31647)
`--SCAN Tile     (cycles=43414842720 [75%] loops=29443 rows=160788223)

This seems to be slow because it's doing 29 thousand full scans of the Tile table. Adding this index turns those scans into searches (again, formatted slightly):
QUERY PLAN (cycles=519584520 [100%])
|--SCAN TileData (cycles=134107686 [26%] loops=1 rows=31647)
`--SEARCH Tile USING COVERING INDEX Tile_tileHash_tilesetId_idx (tileHash=? AND tilesetId=?) (cycles=62592162 [12%] loops=29443 rows=0)

After this change, the bad query takes about 300 milliseconds on my machine. Still a bit high, but more acceptable.
Fixes #89.
[^A]: To do this, I downloaded the basic SQLite amalgamation from https://sqlite.org/download.html. I edited sqlite3.c to add the options that better-sqlite3 adds, then compiled the shell with gcc -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_ENABLE_STMT_SCANSTATUS=1 shell.c sqlite3.c -ldl -lm -o sqlite3. (I disabled thread safety because it's not necessary for the CLI, the progress callback because it gave me a compile error, and STMT_SCANSTATUS so I could do my profiling.)

Is there an existing (skipped?) test for this? Would be great to have one in place to avoid regressions

Added a test timeout in 31543039b2a6f4c49e69f6a656591b80e9788999.


Freeze while setting and entering pincode

I installed and configured react-native-pincode successfully and work fine on simulator both ios and android. But when I plug my own android device and run app on it. Screen freeze while setting and entering pincode. It occures only pincode page. Please, help me to solve that problem.

same error @mahdiguliyev , how did you resolve?


HDDS-5612. Create Ozone s3 authentication token and client authentication transport

What changes were proposed in this pull request?
This patch adds to the s3gateway gRPC feature three main items.  CDI filter extracting user aws authentication and creating  user thread context, a cached ozone client and changes to the OzoneManagerProtocol.   The cached ozone client processes s3 requests through a persistent connection between the s3 gateway and the om.   This single OzoneClient services all s3 requests.  S3 http requests are processed through a CDI interface that includes a CDI filter that extracts s3 authentication information, awsAccessId & signature, generates the stringToSign and adds these to an OzoneToken processed through the single cached OzoneClient.  The OzoneClient submits the request to the om through the OzoneManagerProtocol (OmRequest) over gRPC OmTransport.
The CDI filter servicing http requests creates a user thread context with a UserGroupInformation structure.  Each client side s3 request is processed through a UGI doAs context with user corresponding the request awsAccessId.
The cached OzoneClient provides a persistent connection between the client (s3gateway) and server (Ozone Manager) servicing all s3 requests.  This cached client is created on the first request after the s3gateway is brought up and runs under CDI ApplicationScope implying destroy only on s3 gateway tear down.
The OzoneManagerProtocol OmRequest is modified to include 3 optional fields for authenticating s3 users on a per request basis - stringToSign, signature and awsAccessId.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5612
How was this patch tested?
This patch is tested through unit tests and manually on the docker ozone dev cluster by submitting s3 bucket requests and validating responses.

unit tests - s3 gateway unit tests testing OzoneClient, AwsSignatureProcessor, StringToSign (s3 authentication), and s3g endpoints.

$ cd hadoop-ozone/s3gateway
$ mvn test

2,  manual test s3 request - ozone cluster processing s3 create bucket request
$ cd hadoop-ozone/dist/target/ozone-1.2.0-SNAPSHOT/compose/ozone
ENABLE gRPC Ozone Manager through config.
ozone.om.s3.grpc.server_enabled: "true"
ADD to docker-compose.yaml or docker-config:
$ vi docker-compose.yaml
OZONE-SITE.XML_ozone.om.s3.grpc.server_enabled: "true"
$ docker-compose up -d --scale datanode=3
$ aws s3api --endpoint http://localhost:9878 create-bucket --bucket=bucket1
{
"Location": "http://localhost:9878/bucket1"
}

Thanks @adoroszlai , @avijayanhwx for reviewing and comments.  All reviewer comments included are in latest commit.  Also included in the commit, @adoroszlai, the gRPC om s3 grpc server is enabled by default for the compose ozone cluster and the s3 acceptance tests are re-enabled.

Thanks, @adoroszlai, @avijayanhwx, and @bharatviswa504 for reviews. Thanks, @neils-dev for addressing all the comments. I am pushing this PR. Let's address the ability to switch impl in another Jira.


user can settle (and spend fees doing it) even when nothing is settleable

I can click "settle" at any time even if there is nothing to settle.  This generates a "Settle funds on Serum Program" action which is a no-op except for creating an account, spending some fees, and then closing the account.
If this can't be blocked by the program, maybe it could at least be blocked by the UI based on user's connected wallet?

this would have to be a UI thing


Integrate EPS functions, when complete

[x] Add function files
[x] Plan out where to integrate the functions
[x] Integrate the functions into the main firmware

Integration:

Periodic logging
Power toggle calls
Power monitoring of subsystems when active
Initial state configuration/reset/fail safe
Initial boom deployments

Big success! As of dc9ba10, this firmware works reliably over UART! More to come, but we're in a good place with this, and can move past troubleshooting and into building out the functions/preparing for deployment.

[ ] Need to create a "which channels are currently enabled" command.

PR #40 ready for review! Exciting times!


Support Template Inheritance

It'd be awesome if a layout file could extend another layout. For example I could have a base.html layout that has the opening <html> tag, <head> partial, and <body> tags. Then, I could have a post.html layout that has layout: base.html in it's frontmatter. Finally I could have a page in my src directory that has layout: post.html, which would get contents from post.html and base.html. This is essentially the same things as this previous feature request on the metalsmith-template repo.

Yeah extending layouts can be very useful. But metalsmith-layouts is meant to be a shim for languages that don't support extending. If you want to use extends I recommend https://github.com/superwolff/metalsmith-in-place, with a language like jade or swig. Or you could even try using such a language with metalsmith layouts.

That's already possible, you just need to use a language that supports extends, like swig. Check out https://github.com/superwolff/boilerplate-layouts/tree/extends, it demonstrates the use of extends and includes with metalsmith-layouts.


Fetch Cargo manually from new archives

r? @brson
(rust_highfive has picked a reviewer for you, use r? to override)

The tl;dr; of the scheme I'm envisioning is:

Cargo has a bunch of rust-1.X.Y branches
Rust version 1.X.Y is paired with the Cargo produced from the branch rust-1.X.Y
When you r+ a PR on Cargo, it uploads all artifacts that were built and tested
As a result, all merge commits on the rust-1.X.Y are guaranteed to have artifacts uploaded
Backporting is therefore just a PR against rust-1.X.Y with a @bors: r+
On this, the packaging side, we just pick up the latest commit on rust-1.X.Y with an API call to GitHub, and then we download the right artifact from there.

I haven't quite figure out how to deal with Cargo's versioning just yet. Cargo builds all release artifacts on the auto-cargo branch and doesn't have a great way of distinguishing what channel the build is for. Similarly, if we have different names for artifacts in the cargo upload directories we'd need to discover that here as well.
What I envision is that all rust-1.X.Y branches in Cargo are built with --release-channel=stable for Cargo. The artifacts are then named with cargo-<cargo version>-<target>.tar.gz. I guess we can upload some file in each folder with a deterministic name with the contents being <cargo version>?
@brson, thoughts on this?

This all sounds fine to me. r+


clash-mini: Update to version 0.2.2 & fix autoupdate

[X] I have read the Contributing Guide.

/verify

/verify
There is a PR on version 0.2.1 https://github.com/ScoopInstaller/Extras/pull/10483. Just let others know.


add --gpus to ilab data generate

since generation can implicitly start servers, it at the very least needs to be able to set the amount of GPUs to run generation on when using vllm
resolves #1921

Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the
conventional commits.
[ ] Changelog updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

@alimaredia Since there have been a few changes, can you reconfirm you are still a +1

Yes! The new changes look good to me.


fix uncaught TypeError if error occurs on next tick, closes #2315

Just merged from upstream/master + rebased

Getting this merged and released would help avoid hundreds of flaky test failures in our codebase every day - any update on getting this in?

@ljharb it'll go in the next release, assuming it's OK, but I need to review it.

@1999 lgtm, thanks!

ugh, n/m, let me look into this further.  I'm so used to the appveyor failures being false alarms.

I'm not really convinced this is the "right" way to fix the issue, but after some experimentation it seems to have the least amount of friction.
Main problem seems to be a flaky fixture which can evidently pass on Windows due to timing issues.  I have an experimental change in 4e88243919dbb56b081a22a81616c55ac41458b4 with build here.  If that has better results, I'll merge this and commit my change on top of it.


Update archives.json

Update endpoints for Icelandic Web Archive
Bibliotheca Alexandrina Web Archive isn't working properly, add an ignore to it.

LGTM, except for the new hostname using https. I will make that tweak to this PR and merge it in.