Credits for API (for solo entrepreneurs)

Hi there,

Could I get some credits in my account to test Computer Use? I am getting the following error message:

BadRequestError

Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.'}}

Also wondering if credits are offered via 'Google for Startups' or 'Microsoft for Startups'. I am kind of in both of these programs and have been spending some time via both.

Thank you!

buy credits here https://console.anthropic.com/dashboard

Good day. I was hoping to leverage credits for startups. But appreciate you sharing the link with me.
I am intrigued via this new feature. Not sure how 'token hungry' the feature is. But also thinking: How this feature could run local to the OS.
Thx

depends on the model, ranges from $1.25 p/M to $60 p/M , my experience is best with cline plugin for vscode, which integrates computer use in vscode, plus you pick any model on the market through open router also, although connecting straight to claude is also possible but very limited. I can pretty much work all day with it unlimited through open router and spend ca $10 an hour for a very decent programmer. truly no code only click proceed or cancel. sonnet works best for complex stuff but haiku for the simple stuff and fast also. it looks like this

ps this operates on the host pc, not in a docker instance, be careful i have to say but i think you know what you are doing, as anyone here

depends on the model, ranges from $1.25 p/M to $60 p/M , my experience is best with cline plugin for vscode, which integrates computer use in vscode, plus you pick any model on the market through open router also, although connecting straight to claude is also possible but very limited. I can pretty much work all day with it unlimited through open router and spend ca $10 an hour for a very decent programmer. truly no code only click proceed or cancel. sonnet works best for complex stuff but haiku for the simple stuff and fast also. it looks like this

Super appreciate this response. You've captured a lot in your response!

Can't use cline. I typically stick with the main service providers, as I am paranoid. Plus, I don't know how the data is being used by third parties. But appreciate you sharing this resource.
Will check out openrouter.
Thinking out loud: I think if I get books from the library, then I can provide Claude/Autogen e.t.c with very targeted prompts and it will help bring my cost down.

Question: From the screenshot, it looks like you are doing some webdev at the moment. Could you please share your definition of a  'very decent programmer'? Say, if a stellar team of front-end and back-end developers was 95 and 95 each. Then how would you rate Claude's ability at the moment. I guess you are using Cline. But just curious how the AI is faring, as we speak.
Thank you kindly and I appreciate you responding back to me!

ps this operates on the host pc, not in a docker instance, be careful i have to say but i think you know what you are doing, as anyone here

Appreciate that tip. I am familiar with virtual machines. Should be good on this front. Thank you kindly.

Question: From the screenshot, it looks like you are doing some webdev at the moment. Could you please share your definition of a 'very decent programmer'? Say, if a stellar team of front-end and back-end developers was 95 and 95 each. Then how would you rate Claude's ability at the moment. I guess you are using Cline. But just curious how the AI is faring, as we speak.

I think it is very personal and depends on level of abstraction of thinking. It has strength and weakness, use it where it is strong and not where it is weak. But that also depends on context. I am still discovering it for my own. It is not very smart but it can generate most of the work very fast which saves me a lot of time. My experience so far is that how more detailed you know what you want the better it will work for you. If you have half an idea then it will only cost you time, and mood ;) It is a good time for people with good detailed ideas and AI skills, is my hunch

Thank you. What did you mean by AI skills? You mean understanding the mathematics behind machine learning? Thanks again.

Thank you. What did you mean by AI skills? You mean understanding the mathematics behind machine learning? Thanks again.

If I may: the AI seems to be a "reflection machine."
If you shine something professional and well-put-together at it, that's what you will see -- in spades.
It's a lot of fun, with "guardrails and blinders."  :)

Thank you. What did you mean by AI skills? You mean understanding the mathematics behind machine learning? Thanks again.

If I may: the AI seems to be a "reflection machine."
If you shine something professional and well-put-together at it, that's what you will see -- in spades.
It's a lot of fun, with "guardrails and blinders." :)

Interesting way of looking at things. You mean we have to change ourselves and think about the interconnected nature of things?
Appreciate your insight.

Yes.  "I am more than my physical body" is a wonderful perspective helping one to see larger connections; why some pain points happen, to move the whole forward in proper order -- like looking back and seeing why my arms and legs hurt so much that year I grew four inches -- it's an exercise in drying one's tears.

You are right about guardrails, but also blinders. Which makes one think about the 'responsibility of creation'. Which was an insight shared with me by Chatgpt.
Thank you.

That's a great phrase, thank you!  A wonderful friend of mine likes to express that, "Words create worlds."  I agree.  Make a good one; "Be excellent to each other!", I learned as a child.  :)


jQuery File Uploader : Error Empty file upload result

Hi, I use your bundle with Symfony3 and jQuery File Uploader (Basic Plus UI version).
When I try to upload images, I have an error "Empty file upload result". The json response is empty.
But, the upload works well, my images are saved in the directory I specified in config.yml.
Any Idea where it comes from ?
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload({
	url: '{{ oneup_uploader_endpoint('model_photo') }}',
	dataType: 'json',
	acceptFileTypes: /(\.|\/)(jpe?g|png)$/i,
	maxFileSize: 1000000,
	// Enable image resizing, except for Android and Opera,
	// which actually support image resizing, but fail to
	// send Blob objects via XHR requests:
	disableImageResize: /Android(?!.*Chrome)|Opera/
		.test(window.navigator.userAgent),
});

I tested Basic Plus version and it works without any error. But I would like to use Basic Plus UI version of this plugin.

Thanks to this post, I understood that I have to do the response by myself.
So, I created an UploadListener :
<?php
namespace AppBundle\EventListener;

use Oneup\UploaderBundle\Event\PostPersistEvent;
use Doctrine\ORM\EntityManager;
use AppBundle\Entity\ModelImage;
use AppBundle\Entity\Model;

class UploadListener
{
	/**
	 * @var EntityManager
	 */
	private $em;

	public function __construct(EntityManager $em)
	{
		$this->em = $em;
	}

	public function onUpload(PostPersistEvent $event)
	{
		$file 	= $event->getFile();
		$request = $event->getRequest();
		$response = $event->getResponse();

		$response['files'] = [
			'url'=> $file->getRealPath(),
			'thumbnail_url'=> "http://url.to/thumnail.jpg ", // url ?
			'name'=> $file->getBaseName(),
			'type'=> $file->getType(),
			'size'=> $file->getSize(),
			'delete_url'=> "http://url.to/delete /file/", // url ?
			'delete_type'=> "DELETE"
		];

		return json_encode($response);
	}
}

services.yml
app.upload_listener:
        class: AppBundle\EventListener\UploadListener
        arguments<EMAIL_ADDRESS>        tags:
            - { name: kernel.event_listener, event: oneup_uploader.post_persist, method: onUpload }

It returns this response :
{"files":{"url":"C:\\wamp64\\www\\symfony3.0\\basearticles\\web\\images\\models\\573475854cf7d.jpg","thumbnail_url"
:"http:\/\/url.to\/thumnail.jpg ","name":"573475854cf7d.jpg","type":"file","size":176657,"delete_url"
:"http:\/\/url.to\/delete \/file\/","delete_type":"DELETE"}}

I don't know which urls I have to write... Maybe my response is a bad json...


Wrong compilation when a method has an argument with the same name than an import

I think I found a funky error in the compiler. I have a project that uses Polymer that has as dependency the @webcomponents project. One of the webcomponents libs, shadycss, has a module, style-util.js that contains the following import:
import {nativeShadow, nativeCssVariables, **cssBuild**} from './style-settings.js';

As you can see, it's importing the cssBuild property from './style-settings.js;
At the same time, style-util.js has the isOptimalCssBuild function
/**
 * Check if the css build status is optimal, and do no unneeded work.
 *
 * @param {string=} cssBuild CSS build status
 * @return {boolean} css build is optimal or not
 */
export function isOptimalCssBuild(cssBuild = '') {
  // CSS custom property shim always requires work
  if (cssBuild === '' || !nativeCssVariables) {
    return false;
  }
  return nativeShadow ? cssBuild === 'shadow' : cssBuild === 'shady';
}

As you can see, isOptimaCssBuild function has an argument named cssBuild . The fact is that fuse-box is wrongly compiling the isOptimalCssBuild. The generated javascript is as follows
function isOptimalCssBuild(style_settings_js_1.cssBuild = '') {
  if (style_settings_js_1.cssBuild === '' || !style_settings_js_1.nativeCssVariables) {
    return false;
  }
  return style_settings_js_1.nativeShadow ? style_settings_js_1.cssBuild === 'shadow' : style_settings_js_1.cssBuild === 'shady';
}
exports.isOptimalCssBuild = isOptimalCssBuild;

Instead of respecting the argument name, is replacing it by the import

@dpinart-uxland thanks! that's a confirmed bug! I will fix it soon

Sorry it took a while, this one is fixed in 4.0.0-next.436

Sorry but I'm afraid the fix introduced a new bug. 4.0.0-next.436. Lit-element lib has a module named updating_element. This module exports a const as
/**
 * Change function that returns true if `value` is different from `oldValue`.
 * This method is used as the default for a property's `hasChanged` function.
 */
export const notEqual = (value, old) => {
    // This ensures (old==NaN, value==NaN) always returns false
    return old !== value && (old === old || value === value);
};

This module also exports a large class UpdatingElement that is used as the base for creating cusomt web components. This class has the following declaration
 /**
     * Returns true if a property should request an update.
     * Called when a property value is set and uses the `hasChanged`
     * option for the property if present or a strict identity check.
     * @nocollapse
     */
    static _valueHasChanged(value, old, hasChanged = notEqual) {
        return hasChanged(value, old);
    }

_valueHasChanged receives 3 arguments, the 2 first are values and the last one is the function used to compare the values. The third arg is defaulted to the previous exported function.
Compiling with version 436 I get an error when executing the app:
ReferenceError: notEqual is not defined
Fusebox is compiling this file as:
exports.notEqual = (value, old) => {
  return old !== value && (old === old || value === value);
};
....

static _valueHasChanged(value, old, hasChanged = notEqual) {
    return hasChanged(value, old);
  }

I susspect that's becasue fuse-box is now defining notEqual direclty in exports, so current module cannot reference it internally

@dpinart-uxland please verify the fix in 4.0.0-next.438

Yes.  It now compiles fine and app starts. I'm seeing some errors in console but not sure if they are compilation errors or app bugs. I'll open an issue if I finally detect they are compilation errors


Relax the error messages on deprecated TimestampFormatter/Parser constructors

Related in #745, many plugins were using the constructors more than we imagined. So many warnings are printed at many users.
During the migration (deprecation) period, we may want to relax the warning messages. One possible relaxation may be:

Shorten the error message by removing the stacktrace and printing just once for a while. Users cannot identify which plugin is the cause, though. The new message should mention "comment your configurations in the GitHub issue."
Then, in 2-3 versions before removing the constructors (maybe in v0.9?), longer deprecation warnings may come again. We expect more plugins fix (stop using the deprecated constructors) before that.

Done with #769.


Deployment protection rules seem to be ignored

The documentation mentions environment protection rules, however the link is currently broken:
https://github.com/actions/deploy-pages/blob/3ff795bc32f6f1ceb4dd02ca0c135001516c35ba/README.md#L123
The current help page has a section Deployment protection rules, however I'm having difficulties using deployment protection rules to harden the security of the actions/deploy-pages workflow.
If my understanding is correct, deployment to Pages via workflows must be achieved via an automatically-created github-pages environment for security reasons. To prevent deployment from workflows started on other branches, adding protection rules is recommended. On my repository settings, that environment has 1 branch and 0 tags allowed, with main as the allowed branch. Yet workflows started from other branches are able to deploy to the Pages, see for example jngrad/pyMBE/actions/runs/8248803401. I would have expected the workflow to fail with Branch "test" is not allowed to deploy to github-pages due to environment protection rules.
Is there a way to set up the environment to only allow deployment from workflows started on the main branch?
I'm using actions/deploy-pages@v4 and don't use GHES. Here are my repository settings:

My workflow was actually missing the following field:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}

It is possible to bypass the deployment protection rules by pushing a modified workflow missing this field in a new branch. However, it is not possible to achieve the same result by pushing the modified workflow in a branch of a fork and then opening a pull request against the original repository (Error: Ensure GITHUB_TOKEN has permission "id-token: write").


Programmatic access to envoke vitest (run/watch)

Clear and concise description of the problem
I am evaluating vitest for a nx plugin.
I don't see a way to run vitest without using exec.
I see the createVitest method as exported but when using this method I receive AN ERR_PACKAGE_PATH_NOT_EXPORTED error. but from what I can see the node path is exported
"exports": {
    ".": {
      "import": "./dist/index.js",
      "types": "./dist/index.d.ts"
    },
    "./*": "./*",
    "./global": {
      "types": "./global.d.ts"
    },
    "./node": {
      "import": "./dist/node.js",
      "types": "./dist/node.d.ts"
    }
  },

Suggested solution
Ideally having a method to invoke vitest with options like Jest would be very helpful.
example

import {runVitest} from 'vitest/node'

const testResults = await runVitest(vitestConfig)

Alternative
alternatively using execSync does work but isn't that great IMO.
execSync(npx vitest run --config=${configPath})
Additional context
Here is some POC code I've been messing around with, not at all ideal, but a starting point on understanding vitest
https://github.com/barbados-clemens/nx-vitest-exploration/blob/main/packages/vitest/src/executors/vitest/vitest.impl.t
Example of plugin running
https://user-images.githubusercontent.com/23272162/149404736-3536d2e8-c27b-42af-a0b3-e32ede091172.mp4
Video Alt: running command yarn nx test vite-xstate-lib --skip-nx-cache in a terminal and seeing vitest run 3 tests successfully.
potentially related issue #256
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Vitest is esm-only, you need to be also in ESM to use Vitest programmatically

@antfu just here to a suggest to re-open this or add some basic docs for programmatic use.
Tried running this (through our own CLI)
const unitTestInitializer = async (options: CommandOptions): Promise<void> => {
  const config = await getViteConfig()
  const ctx = await createVitest(config)
  await ctx.start()
}

but am getting could not be cloned. errors due to the methods inside of the Vite config (from plugins).... not sure if we need to modify the Vite config, etc..

We are not doing API docs for a while as I don't think it's ready to be finalized yet. Currently, the way to use it is to read the code (and better lock the version of Vitest as that might not follow semver)
For the error please open a separate issue instead. Thanks.


Cu jpz3xw improve field service creation

Support for SET Node syntax
Docs: https://neo4j.com/docs/cypher-manual/current/clauses/set/#set-setting-properties-using-map
MATCH (n {name: 'Andy'})
SET n = $props
RETURN n.name, n.position, n.age, n.hungry

MATCH (p {name: 'Peter'})
SET p += {age: 38, hungry: true, position: 'Entrepreneur'}
RETURN p.name, p.age, p.hungry, p.position

Task linked: CU-jpz3xw Improve field service creation

I think that the ref link is incorrect since it's about labels and the PR is about setting multiple properties. Is this: https://neo4j.com/docs/cypher-manual/current/clauses/set/#set-setting-properties-using-map?

Yeah I make a mistake, I've fixed the description link.


Added type hints for rsast and sast files

What does this implement/fix? Explain your changes.
Added type hints for rsast and sast files under shapelet based collection transformation.
#1910

@baraline Can you let me know if there are changes to made?


Signing SCL files

As a risk owner
I would like to sign the SCL config files
so I can be sure that receiving parties can check the file on authenticity
Background
Signing SCL config files is part of the CoMPAS security measures.
https://github.com/com-pas/compas-architecture/blob/master/blob-files/security_requirements_workshop.pdf
Acceptance criteria:
-Identify related IEC document related to XML signing
-Document the storage location of the signing
-using the IEC 62351-11

@jeanetiennelemaire IEC 62351-11 describes how this could work


Incorrect mapping for structs from dll

Hi!
It works fine for structs declared in solution but not for external structs.
VS2019, SDK 3.1.102
How to reproduce:
using System.Drawing;
using MappingGenerator.OnBuildGenerator;
namespace Test
{
    [MappingInterface]
    public interface IMapper
    {
        SomeClass Map(SomeClass other);
    }

    public sealed class SomeClass
    {
        public Point SomeStruct { get; }

        public SomeClass(Point someStruct)
        {
            SomeStruct = someStruct;
        }
    }
}

Generated mapping
public partial class Mapper : Test.IMapper
    {
        public virtual SomeClass Map(SomeClass other)
        {
            return new Protobuf.SomeClass(someStruct: new Point());
        }
    }

Thank you!

Just to be sure, the expected mapping code should be as follows?
public partial class Mapper : Test.IMapper
    {
        public virtual SomeClass Map(SomeClass other)
        {
            return new Protobuf.SomeClass(someStruct: other.SomeStruct);
        }
    }

For project declared structs now mapping is
public partial class Mapper : Protobuf.IMapper
    {
        public virtual SomeClass Map(SomeClass other)
        {
            return new Protobuf.SomeClass(someStruct: new Protobuf.SomeStruct(value: other.SomeStruct.Value));
        }
    }

I think both versions are correct: someStruct: new Protobuf.SomeStruct(value: other.SomeStruct.Value) or someStruct: other.SomeStruct but the second one is simpler especially for multiple constructors cases.

@alec-anikin can you show the definition of the Point structure? The version from the external library. Does it contain fields or properties?

I've just tested it with MappingGenerator.OnBuildGenerator 1.13.329 and SmartCodeGenerator.Engine 1.2.9 and I've got the mapping code as follows
// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Drawing;
using MappingGenerator.OnBuildGenerator;
using System.Linq;
using ConsoleApp11;

namespace ConsoleApp11
{
    [System.CodeDom.Compiler.GeneratedCode("MappingGenerator.OnBuildGenerator.OnBuildMappingGenerator", "1.13.329.0")]
    public partial class Mapper : ConsoleApp11.IMapper
    {
        public virtual SomeClass Map(SomeClass other)
        {
            return new ConsoleApp11.SomeClass(someStruct: new Point(x: other.SomeStruct.X, y: other.SomeStruct.Y));
        }
    }
}

It looks like it's working as expected. Can you send me a solution that reproduces that problem?

It sounds very strange but just add reference to another project from solution and generated code will be broken.

Ok, I'm able to reproduce the issue but it completely doesn't make any sense to me. Removing reference to Lib project fixes the issue. I need to take a look closer to what's going there.

It looks like Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace (which is used for loading projects) doesn't play very well with netstandard projects. I've made a small test by replacing MSBuildWorkspace with https://github.com/daveaglick/Buildalyzer#roslyn-workspaces and it seems to solve the issue but I don't know what the ramifications could be.  I need to run a couple more tests to make sure that there are no negative side effects.

Waiting for response https://github.com/daveaglick/Buildalyzer/issues/130

@alec-anikin
A new version of SmartCodeGenerator.Engine has been released. Please update the SmartCodeGenerator.Engine package and verify if it works correctly.

It works fine! Thank you!


Workshop into subdirectory, include link to proceedings, include roles

As workshop is complete, it should be in a subdirectory to sit alongside upcoming workshops, besides linking to ACL Anthology and including roles of participants. I can take care of this as part of https://github.com/sigturk/sigturk.github.io/pull/32

Done with recent PR


[Swatch|Swatch Group] First Swatch selected interacts poorly with display: inline-flex

Description
display: inline-flex sometimes adds the trailing "space", but selecting the first Swatch in the Swatch Group causes the "space" to collapse.
Steps to reproduce

Go to https://opensource.adobe.com/spectrum-css/swatchgroup.html#density-compact
Add a <div> with content AFTER the .spectrum-SwatchGroup element
Remove the width of the .spectrum-SwatchGroup element, so the Swatches all display on a single row.
Add .is-selected to the FIRST Swatch element.
See the "space" between the Group and the <div> change.

Expected behavior
Default styles are not effected by the selection of Swatches in the group.
Screenshots
With selection:

Without selection:

synced to jira: https://jira.corp.adobe.com/browse/CSS-202

I think this has been fixed on our end, but if it persists, please open a new issue.
With selection:

Without selection:


Enormous memory usage after batched forward passes with TensorFlow 2.16.1 (CPU)

import numpy as np
import psutil
import tensorflow as tf

model = tf.keras.applications.ResNet152V2()

images = np.zeros([20, 224, 224, 3], dtype=np.uint8)

for run in range(10):
    memory_usage_in_MiB = psutil.Process().memory_info().rss / (1024 * 1024)
    print(f"Memory usage after {run} run(s) (in MiB): {memory_usage_in_MiB:.3f}", flush=True)
    model(images)

Memory usage after 0 run(s) (in MiB): 790.715
Memory usage after 1 run(s) (in MiB): 5969.941
Memory usage after 2 run(s) (in MiB): 7112.559
Memory usage after 3 run(s) (in MiB): 7787.625
Memory usage after 4 run(s) (in MiB): 7827.727
Memory usage after 5 run(s) (in MiB): 6785.316
Memory usage after 6 run(s) (in MiB): 5971.680
Memory usage after 7 run(s) (in MiB): 6615.105
Memory usage after 8 run(s) (in MiB): 7151.496
Memory usage after 9 run(s) (in MiB): 6679.250

(Dockerfile to reproduce)
And it's not just tf.keras.applications.ResNet152V2(). It also happens (for example) with tf.keras.applications.inception_resnet_v2.InceptionResNetV2 and tf.keras.applications.inception_v3.InceptionV3. And it also happens when using Python 3.12.2 instead of 3.11.8.
With TensorFlow 2.15.1 (instead of 2.16.1), however, the memory usage does not explode:
Memory usage after 0 run(s) (in MiB): 1038.891
Memory usage after 1 run(s) (in MiB): 1154.062
Memory usage after 2 run(s) (in MiB): 1154.508
Memory usage after 3 run(s) (in MiB): 1154.684
Memory usage after 4 run(s) (in MiB): 1215.840
Memory usage after 5 run(s) (in MiB): 1154.664
Memory usage after 6 run(s) (in MiB): 1154.816
Memory usage after 7 run(s) (in MiB): 1155.059
Memory usage after 8 run(s) (in MiB): 1154.715
Memory usage after 9 run(s) (in MiB): 1155.367

(Dockerfile to reproduce)
Workaround: Replacing model(images).numpy() with model.predict(images) improves the situation, i.e., it only leaks a little bit.

try wrapping your model in a tf.function, if I recall correctly we recently observed the same issue and this fixed it

I tried running your snippet 20x and added a call to gc.collect() inside the loop.  Are you able to run a Python profiler to see what's taking memory?

@sirfz Replacing model = tf.keras.applications.ResNet152V2() with model = tf.function(tf.keras.applications.ResNet152V2()) indeed works. The memory usage stays low. Thanks a lot for this workaround! :+1:

@fchollet Thanks for checking!
I tried to reproduce your test, but failed so far, i.e., the memory usage is still high, even directly after gc.collect():
import gc

import numpy as np
import psutil
import tensorflow as tf

model = tf.keras.applications.ResNet152V2()
images = np.zeros([20, 224, 224, 3], dtype=np.uint8)
for run in range(10):
    memory_usage_in_MiB = psutil.Process().memory_info().rss / (1024 * 1024)
    print(f"Memory usage after {run} run(s) before gc.collect() (in MiB): {memory_usage_in_MiB:.3f}", flush=True)
    gc.collect()
    memory_usage_in_MiB = psutil.Process().memory_info().rss / (1024 * 1024)
    print(f"Memory usage after {run} run(s) after gc.collect() (in MiB): {memory_usage_in_MiB:.3f}", flush=True)
    model(images)

Memory usage after 0 run(s) before gc.collect() (in MiB): 792.438
Memory usage after 0 run(s) after gc.collect() (in MiB): 792.438
Memory usage after 1 run(s) before gc.collect() (in MiB): 5983.020
Memory usage after 1 run(s) after gc.collect() (in MiB): 5983.020
Memory usage after 2 run(s) before gc.collect() (in MiB): 6978.793
Memory usage after 2 run(s) after gc.collect() (in MiB): 6978.793
Memory usage after 3 run(s) before gc.collect() (in MiB): 7011.441
Memory usage after 3 run(s) after gc.collect() (in MiB): 7011.441
Memory usage after 4 run(s) before gc.collect() (in MiB): 7213.758
Memory usage after 4 run(s) after gc.collect() (in MiB): 7213.758
Memory usage after 5 run(s) before gc.collect() (in MiB): 6951.520
Memory usage after 5 run(s) after gc.collect() (in MiB): 6951.520
Memory usage after 6 run(s) before gc.collect() (in MiB): 6536.066
Memory usage after 6 run(s) after gc.collect() (in MiB): 6536.066
Memory usage after 7 run(s) before gc.collect() (in MiB): 5985.203
Memory usage after 7 run(s) after gc.collect() (in MiB): 5985.203
Memory usage after 8 run(s) before gc.collect() (in MiB): 6931.805
Memory usage after 8 run(s) after gc.collect() (in MiB): 6931.805
Memory usage after 9 run(s) before gc.collect() (in MiB): 7641.566
Memory usage after 9 run(s) after gc.collect() (in MiB): 7641.566

(Dockerfile to reproduce)

Are you able to run a Python profiler to see what's taking memory?

Sorry, currently no. Are you?

I suspect that this is more likely an issue on tensorflow or docker environment side.
import psutil

import keras
import keras.applications.resnet_v2

model = keras.applications.resnet_v2.ResNet152V2()

images = keras.ops.zeros([1, 224, 224, 3], dtype="uint8")

for run in range(100):
    model(images)
    memory_usage_in_MiB = psutil.Process().memory_info().rss / (1024 * 1024)
    print(
        f"Memory usage after {run} run(s) (in MiB): {memory_usage_in_MiB:.3f}",
        flush=True,
    )

I run the above script for all backends and here are the numbers:

Backend
Memory Usage Range (int MiB)
No Growing after Certain Runs

jax
1210.980~1210.980
V

numpy
1635.582~1644.410
V

tensorflow
1589.508~1617.383
X (leaked!)

torch
867.094~867.344
V

tensorflow (with tf.function)
1645.301~1645.426
V

My environment:

Ubuntu 22.04
python 3.11.7
CUDA 12, CUDNN 8.9
tensorflow==2.16.1, jax==0.43.0, torch==2.2.1

CUDA 12, CUDNN 8.9

Oh, I ran my tests without any GPU. It's all CPU only. I've just expanded the issue title accordingly.

I suspect that this is more likely an issue on tensorflow or docker environment side.

In the TensorFlow repo, I've been told to open the issue here. :grin:
Regarding Docker: The leak happens for me not only in Docker, but also when I run on bare metal.

Thanks for the detailed analysis. The lack of the issue with other eager backends, and the disappearance of the issue when using a tf.function, strongly indicate that the leak may be at the level of the TF eager runtime. It is also likely system dependent, since I can't observe it on my system, nor on Colab.
This isn't the first time we've seen memory leaks with the TF runtime (eager or graph).

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs.

If I'm not mistaken, the issue is not solved yet.
Or should we close it, because work continues in the corresponding issue in the TensorFlow repo?

I added more comments on the associated TF bug, but mentioning this here:
I'm pretty sure it is a keras "issue" (though may not be a bug).  We get similarly large memory usage in keras using the JAX backend (about 5GB), and it seems to be related to Trackable allocations used for training.  We don't see the increased memory usage if only using model.predict(...).
These Trackable allocations are not present when using legacy keras and TF 2.16 - there memory usage remains about 1GB.  So there's something about Keras 3 using a lot more memory during regular model(...) calls.


Add SimpleStream.in site into "Big Media Libraries"

Its been floating around, some pretty nice db of movies and TV, might be worth listing/adding!
https://simplestream.in
Low on ads I might add!

Dead site.


How to Set Image from URL.. Please Tell Me

How to Set Image from URL.. Please Tell Me...When Im using picaso
Picasso.with(activity).load"my image Url here").noFade().into(profile_photo1);
the App going to Crash

Duplicate of #222.

Sir Can you tell ..solution


pip install fails

Looks like setup.py is importing cython, which is a dependency:

Collecting tslearn
Downloading https://files.pythonhosted.org/packages/af/f9/7225f4b1e7ba482b10b544cecf50a0a92bfbbde4ec30fdce824a867ad9ab/tslearn-0.1.29.tar.gz (587kB)
100% |████████████████████████████████| 593kB 766kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-4bo4i_6k/tslearn/setup.py", line 5, in
from Cython.Distutils import build_ext as _build_ext
ModuleNotFoundError: No module named 'Cython'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4bo4i_6k/tslearn/

This can indeed happen sometimes... Could you try pip install Cython first and see if it works?

There is a way around this, though: https://github.com/LeeKamentsky/python-javabridge/pull/131/files#diff-2eeaed663bd0d25b7e608891384b7298

cython and numpy are now declared as build time requirements for PyPI and github-based installs (basically source-based installs) in the docs.
conda install should make things easier for those who can use it.
And #150 will be used to advance on the question of releasing wheels for a wide range of platforms on PyPI.


Update HumanResource.md

updated

Docs Build status updates of commit 6ed5927:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamics-gp/payroll/HumanResource.md
:warning:Warning
View
Details

dynamics-gp/payroll/HumanResource.md

Line 438, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/ATTDSETUP34.jpg'.
Line 438, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.
Line 559, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/ACCRUASECH45.jpg'.
Line 559, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.
Line 647, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/HRBENSETUP26.jpg'.
Line 671, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/HRUSERSETUPFILL5.jpg'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 6ed5927:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamics-gp/payroll/HumanResource.md
:warning:Warning
View
Details

dynamics-gp/payroll/HumanResource.md

Line 438, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/ATTDSETUP34.jpg'.
Line 438, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.
Line 559, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/ACCRUASECH45.jpg'.
Line 559, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.
Line 647, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/HRBENSETUP26.jpg'.
Line 671, Column 1: [Warning: file-not-found - See documentation] Invalid file link: 'media/HRUSERSETUPFILL5.jpg'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@theley502 the media files are missing again.

Docs Build status updates of commit 9571d57:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamics-gp/payroll/HumanResource.md
:warning:Warning
View
Details

dynamics-gp/payroll/HumanResource.md

Line 438, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.
Line 559, Column 1: [Warning: duplicate-alt-text - See documentation] Alt text 'the User Setup window' is duplicated. Within an article, alt text must be unique.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 46d59dd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/payroll/HumanResource.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


NOREF: jest testing improvments

This PR will add:

use of node modules in unit tests
use of DOM in unit tests

Basically we can now act as if our testing environment is the actual tool

it's all ok for me.
+1.

+1, nothing to say


feat: add command attribute to run_binary

This was the wrong approach. Going with https://github.com/aspect-build/rules_js/pull/564 instead.


Updated search params to reflect index changes made in https://github…

….com/algolia/docsearch-configs/pull/3343/files

We'll want to combine this change with the addition of a algoliaOptions param in the docs-config.js files for each product to filter search to individual products.
For example, here's the Workers search.

Updated using this code + this change in the docs-config.js file.

If you wanted to have a search that looked across all developer docs, you'd have a blank value for facetFilters.

And then you'd see results from other product areas:

We'll want to combine this change with the addition of a algoliaOptions param in the docs-config.js files for each product to filter search to individual products.
For example, here's the Workers search.

Updated using this code + this change in the docs-config.js file.

If you wanted to have a search that looked across all developer docs, you'd have a blank value for facetFilters.

And then you'd see results from other product areas:


Create homepage

Description of feature
The pipeline's page on the website is awfully empty. It could use some basic info. Much is subject to change, but I think we can still do it.

Done in #4.


[BUG] Missing port on the url generated from "Export to Phone with QR Code"

Describe the bug
The QR Code generated from "Export to Phone with QR Code" dosen't have the port set
Screenshots

Desktop (please complete the following information):

LNbits version: lnbitsdocker/lnbits-legend:0.10.3

Additional context
My wallet is accessible from https://192.168.x.x:3000/wallet?usr=xxx but on the QR Code I read https://192.168.x.x/wallet?usr=xxx

Just tested this on localhost:5000 and the correct URL:PORT scheme is displayed on the QR

this QR code don't have the 4002 port
https://serverpi/wallet?usr=....

the qrcode was fixed recently can you try again with 0.12.4 and reopen if it fails.
it also seems to me it might have been docker related.


Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.

VS Code Version:
OS Version:

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes/No

/needsMoreInfo


error in running a LSTM programme

i am writing a basic LSTM program for text generation. when i am writing line:
model.add(LSTM(256, input_shape=(x.shape[1], x.shape[2]), return_sequences=True))
following error occurring, may i know what is wrong with this:
python /home/srinath/char_gen.py
Using TensorFlow backend.
Total Characters 144413
Total Vocab 45
Total Patterns: 144313
Traceback (most recent call last):
File "/home/srinath/char_gen.py", line 63, in
model.add(LSTM(256, input_shape=(x.shape[1], x.shape[2]), return_sequences=True))
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/engine/sequential.py", line 166, in add
layer(x)
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 500, in call
return super(RNN, self).call(inputs, **kwargs)
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/engine/base_layer.py", line 460, in call
output = self.call(inputs, **kwargs)
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 2112, in call
initial_state=initial_state)
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 609, in call
input_length=timesteps)
File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2957, in rnn
maximum_iterations=input_length)
TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'
ERROR:tensorflow:==================================
Object was never used (type <class 'tensorflow.python.ops.tensor_array_ops.TensorArray'>):
<tensorflow.python.ops.tensor_array_ops.TensorArray object at 0x7f75882d7da0>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
['File "/home/srinath/char_gen.py", line 63, in \n    model.add(LSTM(256, input_shape=(x.shape[1], x.shape[2]), return_sequences=True))', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/engine/sequential.py", line 166, in add\n    layer(x)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 500, in call\n    return super(RNN, self).call(inputs, **kwargs)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/engine/base_layer.py", line 460, in call\n    output = self.call(inputs, **kwargs)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 2112, in call\n    initial_state=initial_state)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/layers/recurrent.py", line 609, in call\n    input_length=timesteps)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2877, in rnn\n    input_ta = input_ta.unstack(inputs)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 170, in wrapped\n    return _add_should_use_warning(fn(*args, **kwargs))', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/tensor_array_ops.py", line 413, in unstack\n    indices=math_ops.range(0, num_elements), value=value, name=name)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 170, in wrapped\n    return _add_should_use_warning(fn(*args, **kwargs))', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 139, in _add_should_use_warning\n    wrapped = TFShouldUseWarningWrapper(x)', 'File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 96, in init\n    stack = [s.strip() for s in traceback.format_stack()]']
please help me if possible.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Getting the same error. No idea why, please let me know if you find a solution

Have I written custom code - i have written code as per the tutorial.
OS Platform and Distribution - Ubuntu -16.04
TensorFlow installed from - sources per tutorial.
TensorFlow version - 1.2 GPU
Bazel version - Not installed
CUDA/cuDNN version - 7.5
GPU model and memory - 16gb memory
Exact command to reproduce -  N/A
On Sun, Jun 17, 2018 at 6:17 AM, Alfred Sorten Wolf <
<EMAIL_ADDRESS>wrote:

Thank you for your post. We noticed you have not filled out the following
field in the issue template. Could you update them if they are relevant in
your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/20075#issuecomment-397846971,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXgS2sgOOJUTuozeMWM-2B-7Dli3xqT4ks5t9ac-gaJpZM4UqevE
.

--
Sri Nath Dwivedi
Asstt. Professor
(Computer Science & Engg.)
Dr. Ambedkar Institute of Technology for Handicapped, U.P. Kanpur

Use tensorflow gpu 1.4.1 with keras 2.1.5, CUDA 8, CUDNN 7
If your GPU is not compatible with CUDA 8 just try using keras 2.1.5, it solved my problem!

i don't have GPU but have a laptop with NVIDIA graphic card.
when i tried to upgrade tensorflow==1.4.1 from previous version 1.2.0 after that during running a programme following problem occurred:
python /home/srinath/practice_LSTM.py Traceback (most recent call last):
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/srinath/anaconda3/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/home/srinath/anaconda3/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/srinath/practice_LSTM.py", line 3, in
import tensorflow as tf
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 72, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/srinath/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/srinath/anaconda3/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/home/srinath/anaconda3/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
srinath@srinath-HP-Pavilion-Notebook:~$ python /home/srinath/char_gen.py Traceback (most recent call last):

in the mentioned site, i tried to understand the problem, but i am not getting what should i do. in that site following thing is relevant, so should i change all things means CUDA, CUDnn etc.

tensorflow_gpu-1.4.0
GPU
2.7, 3.3-3.6
GCC 4.8
Bazel 0.5.4
6
8

Which nvidia graphics card do you have? A graphics card is a GPU.
You need to install tensorflow-gpu on your system to utilize it
According to your graphics card you must install a specific version of CUDA and CUDNN (cudnn version is wrong that's why the new error)

now i installed following
tensorflow-gpu==1.4.0 /1.4.1
CUDA8.0
cuDNN6.08 because in cudann site there was no option of cuDNN7 with CUDA8.0, there were 2 options cuDNN5.1 with CUDA8 or 6 so i installed 6, then in running every programme following warning shows:
/home/snd/anaconda3/lib/python3.6/importlib/_bootstrap.py:205: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
how to resolve this
this error does not appear in tensorflow-gpu==1.2

Is this only a warning or an error? If it's a warning I think you could ignore it as you probably won't be using fast tensor utility

okay thanks, it is only warning
thanks for support

Happy to help!

Nagging Assignee @shivaniag: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

problem solved
On Mon, Jul 9, 2018 at 12:07 AM, Alfred Sorten Wolf <
<EMAIL_ADDRESS>wrote:

Nagging Assignee @shivaniag https://github.com/shivaniag: It has been
14 days with no activity and this issue has an assignee. Please update the
label and/or status accordingly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/20075#issuecomment-403306860,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXgS2h_KU87uv_D3ANqKflOl1Lc9VbwMks5uElFygaJpZM4UqevE
.

--
Sri Nath Dwivedi
Asstt. Professor
(Computer Science & Engg.)
Dr. Ambedkar Institute of Technology for Handicapped, U.P. Kanpur


Add carrot_send as a management command

This new command can accept args (as strings) but no kwargs.  I did some work to see if I could handle them, and it was a mess.  Personally I think this goes a fair amount of the way towards making it easier to trigger jobs, and if you need to be able to pass an int or a bool you can make a wrapper function that does the necessary parsing and then calls the "real" command.

Coverage increased (+1.3%) to 91.02% when pulling d21c6c53570a3ecca23b375981e98f54ca4c2313 on MikeSandford:master into f359be8624f210d2bc411b854f6aeab80bfc6a38 on chris104957:master.

Happy to accept this for now, as it doesn't interfere with any existing code, but in the long run it is important that we add support for kwargs to this - not just because you won't be able to send send to the task, but also because a number of kwargs are for configuration parameters like queue, routing key, etc. For example, this wouldn't work in the production environment we have here as we don't use actually use the default queue


Remove stack.yaml.  This is no longer supported

@newhoggy, this also needs to remove https://github.com/input-output-hk/cardano-node/blob/master/.buildkite/pipeline.yml#L7-L10

bors merge


Rework plugins

The plugin API is super-experimental haven't been kept up to date. The API as it once was created focused a lot on extensibility it terms of matching rather than providing usable output for other tools (the latter is probably more useful).
The API as it looks right now should most likely be deprecated in favor of a new, improved (and documented) API. I welcome contributions in this area!

I found it almost okay. The usage of custom attributes on nodes like $chained etc is  obscure though and I still don't understand what needs to be returned by the plugin. A function that needs guards?

https://github.com/olov/ng-annotate/issues/245


DO NOT MERGE: Deliberately introduce vuln to check CodeQL

SUMMARY
Asserts that CodeQL scanning introduced in #84 works. Do not merge this change.

Successful check - will discuss whether to up the number of tests run.


Retain zoom setting from session to session

Whenever I close the program, it forgets the zoom level I was on.
It would be very convenient to store the zoom level from session to session.
In my case, for instance, I always have to zoom twice to be a convenient font size for reading.

Implemented since https://github.com/zufuliu/notepad2/commit/8e35062703d6c43cffe9122bdcc2915d90d804c3.


OpenNI Evaluation

Evaluate and integrate OpenNI as a middleware tool with Kinect

Requires Python / winpy

It looks like this is tied to the drivers. It provides easy hand tracking (fingertip detection?) but not if ou use Kinect for windows. It is primarily made by PrimeSense as an open architecture nui frame, and is promising for an SNA based driver.


Add documentation for aliases, import, and customTimeouts

https://github.com/pulumi/pulumi/pull/2774

Closed via #1376


get things to compile on jdk11

To validate this pull request against other sbt modules, please visit this link.

 I'm going to add another commit to make sure the JAVA_HOME is the proper one, and if it is then I merge.

Alrighty, now we're talking. It looks like we still need a little bit more work to get JDK 11 working. @xuwei-k If you don't have time to do this I would be happy to take over some time next week.
Here's the log describing some of the problems: https://ci.scala-lang.org/sbt/zinc/99/8

Unfortunately, I cannot prioritize this, so I won't have time to look at it next week as I said in my previous comment

See comment in https://github.com/scalacenter/bloop/issues/588#issuecomment-463135020

Closing this in favor of #640


Implement Transaction Monitoring

Currently, the Epoch Block Oracle optimistically halts until DataEdge transactions ar included in a block.
If gas prices increase, the program will wait forever as it does not attempt any retries with adjusted gas prices.
We already have the plans for the transaction monitoring feature.

Closed by #219


gem install grpc:1.61.0 takes lot of time to complete

This issue seems to be back for 1.61 https://github.com/grpc/grpc/issues/29489

Which ruby version and platform/arch are you installing on?
If its to do with building from source (and you expect to be building from source) perhaps to do with https://github.com/grpc/grpc/issues/35396#issuecomment-1888413021 which seemed to regress in 1.60?

bundle platform
Your platform is: x86_64-linux

Your app has gems that work on these platforms:
* ruby

Your Gemfile specifies a Ruby version requirement:
* ruby 3.2.3

#29489 unfortunately is a variety of different issues over time which amount to "pre-compiled native gem variant was not available for the target combination of (Ruby version, OS, arch) --> so rubygems/bundler had to build/install from source (which is very slow)".
There shouldn't be any change for x86_64-linux and Ruby 3.2 in any case (native gem available here).
I think you will probably need to share more specifics about exactly how you are installing, perhaps your Gemfile/Gemfile.lock, how to replicate and the logs from your install attempt (comparing the version that worked OK vs 1.61 where it is slow), similar to https://github.com/grpc/grpc/issues/29489#issuecomment-1120822860 ?

Ok thanks for the reply. I might reopen and add more logs if it happens for the next version bump as well.


Fix for add_to_service refactoring

The add_to_service method should return a join-table instance (ServiceResource)
Caused test failures in
ManageIQ/manageiq-automation_engine/spec/service_models/miq_ae_service_vm_spec.rb#L76
Links

Followup PR to refactoring https://github.com/ManageIQ/manageiq/pull/15991
Needed in https://bugzilla.redhat.com/show_bug.cgi?id=1441412

Fine backport details:
$ git log -1
commit 67f9a591582fa7c111fa19d455050ce450833602
Author: Madhu Kanoor<EMAIL_ADDRESS>Date:   Wed Sep 27 10:09:33 2017 -0400

    Merge pull request #16056 from gmcculloug/service_add_to_service_fix

    Fix for add_to_service refactoring
    (cherry picked from commit af5b95641299c1781ec22c244a7e60f0dd886aa8)

    https://bugzilla.redhat.com/show_bug.cgi?id=1496936


standard way to ignore an error

This is mostly just a discussion item rather than a serious issue.
Currently standard uses handle-callback-err which complains if you do not "handle" callback errors.
Sometimes you do want to not handle an error e.g. ignore mkdirp errors.
The current rule is good as it encourages you to explicitly flag intentionally ignored errors rather than just leaving the future reader wondering whether the error was left ignored accidentally or for some purpose.
Even prior to using standard, I try to always flag explicitly ignored errors with a comment like so
mkdirp('/dir/might/exist', err => {
  // ignore error
  doStuff()
})

This only changed slightly upon starting to use standard:
mkdirp('/dir/might/exist', err => {
  err // ignore error
})

try {
  mkdirp.sync('/dir/might/exist')
} catch (err) {
  err // ignore err
}

Another option could be to use a different variable name for ignored errors:
mkdirp('/dir/might/exist', ignoreErr => {
  doStuff()
})

Does anyone else have a standard pattern they use for flagging "ignored" errors?
It's a possibility that even with the comment this is still a crappy workaround and I really should be explicitly whitelisting the error.code === 'EEXIST' case and throw err/return callback(err) otherwise.
Note that it's also still valid to not add any comment, which makes it again unclear whether the error is being ignored intentionally or not:
mkdirp('/dir/might/exist', err => {
  err
  doStuff()
})

This should perhaps be disallowed.
In fact, I'm not sure there's any valid reason for a statement to solely contain a reference to a variable like that since it's a noop so perhaps I'm really requesting a rule for something like "no useless statements".

so perhaps I'm really requesting a rule for something like "no useless statements".

:+1: ,  I wonder if we can apply to standard to politics.
In any case,  agreed.  My go-to for ignoring errors is:
mkdirp('/dir/might/exist', () => {
  doStuff()
})

@dcousens what if you need to access the other arguments?
Yeah I personally wish that particular case were detectable to and required some explicit signal that you hadn't inadvertently invited chaos into your program by forgetting to handle the err.  It'd be possible to detect for node core functions I guess.

Yeah,  I suppose I just use _ in that case.
You're right ignoredErr would be better or some such maybe.

I think _ is good enough, most people knows that it means ignored variable and I believe that standard doesn't even complain of unused variables if it's named _...

Yeah, _ is a nice solution. That's what I use. But this is a pretty rare occurrence.

Closing, since discussion has concluded 😄


Win10 v1803

Can't get it to work with Win10 v1803 April 2018 update. Can anyone confirm?

Incorrectly filed issue, termsrv build missing.

The same problem on Windows 10 Build 1803, did anyone find a solution?


Brian Kerningam's Algorithm in C++

I want to work on this issue. I'm a GSSOC_2021 participant.

I would like to contribute to the above problem in java as I am a participant of GSSOC'21. Kindly assign this to me.


Isomorphic cookies react-cookie v2

Is it possible to get/set a cookie with react-cookie v2 either server side or client side without wrapping the component with withCookies?
I don't want to have to wrap every component which access cookies in a HOC. Also, I don't see how I could access cookies in a place such as an onEnter hook in React-Router eg to set a cookie as I enter a route.
An example onEnter hook:
export const loadIntoCookie = (store) => {
  return (nextState, replace, cb) => {
      store.dispatch(myAction)
          .then(res => {
              cookie.save("key", res.data.value)
              cb();
          })
  }
}

Maybe I am approaching this wrong! Any help is greatly appreciated.

I'm also puzzled by how to solve this use case, which is fairly simple in the 1.x branch. Seems like the cookies need to be passed from the component?

The reason behind react-cookie v2 is to make sure when doing server-rendering, you can't steal the cookies from another user because of async issues. Your cookies are safe within your renderToString and any other async jobs you might have in between.
If you wish to access the cookies object without React, the easiest way is to dispatch it within your Redux store. That way you don't need withCookies everywhere.
If you don't care about server-rendering and just want the old way, you can use universal-cookie. But if you do server-rendering it is not a good idea.

I have to be honest I am kind of sad the way you rewrote the package using HoC. 1.x while not perfect, was much more elegant. Perhaps we can keep supporting it similar to react-router does 3.x

@sebmor The complete rewrite was necessary for async server rendering or your cookies will be messed up between your users.
I do agree a simplier API is better if you don't care. It is the purpose of univetsal-cookie. Their is a lunk in the doc you should check it out. It's almost the same as 1.0.
Now react-cookie is a little bit more react-like and universal-cookie is there for a simplier javascript version. I'll try to clarify that on the doc.


Do not use jvm-provided nashorn

Currently nashorn (javascript interpeter) is expected to be provided by the JVM.  However, this will be going away in future JVMs (especially 17).  Change so that we use the externally available nashorn dependency.

This was fixed in PR #12


Update strings_zh-Hant_TW.i18n.json

fixed some text string & add missing translations

Can you rebase on the latest version or just create a new PR?
Don't worry about your last PR #157. Everything was correct.
I ran a tool that reads the missing translations and applies them to the actual translations files (126c1370a2b79a878087a24ec47811e07e0fb3d9).

Got it.


Reset color when the index is 9

Match [_9m color to reset color with inherit css attribute
Fixes: #1

I don't know yet what this 9 value means, but it does not looks like a 4bit color code.
Then using inherit does not seems to work in nested context, for example running this command:
$ echo -e "\x1b[32;1m  Green  \x1b[39;1m   inherited   \x1b[0m"

Display Green in green, and inherited in white. But the html encoding will be:
Greeninherited

... which does not make the inherited field white.

So according to the first paragraph of https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit , 9 is used to reset the color: To reset colors to their defaults, use ESC[39;49m (not supported on some terminals)

I just want to verify if the value "initial" revert to color asign to a balise type.
Like .myclass span { color:black; } or to initial color of navigator.
in prevision of  dark theme or terminal like background

Initial does not seems to use the class style, e.g.:

      Green
      inherited

... display inherited in black instead of pink

Alternatively, it seems like we could use a new AnsiCode constructor to combine Clear and Style, and we could adapt the render function to terminate the previous style in https://github.com/softwarefactory-project/re-ansi/blob/master/src/Ansi.re#L257-L262 .
Though that would be a significant change, so it would be good to look for a simpler css trick first.

I'm ok with you for "initial" value.
In the futur, it's maybe possible to add un "primary" and "secondary" colors like "black" and "white" and replace "initial" by the primary variable. It's may be more intuitive to customize style on top of app

Alright, then let's go with the initial value for now. Thank you for your contribution!


Master crash may cause alluxio metadata to be inconsistent with UFS

Alluxio Version:
master branch.
Describe the bug
Master crash may cause alluxio metadata to be inconsistent with UFS.
To Reproduce
As an example, Use local ufs to make it easy to reproduce ,firstly modify the #InodeTree.createPath method to simulate an abnormal exit of the master node here when create a directory.
if (currentInodeDirectory.isPinned() && !newInode.isPinned()) {
  newInode.setPinned(true);
  newInode.setMediumTypes(new HashSet<>(currentInodeDirectory.getMediumTypes()));
}
+ // mock master exit
+ Runtime.getRuntime().halt(0);
mState.applyAndJournal(rpcContext, newInode,
    inodePath.getUri().getPath());
Inode inode = Inode.wrap(newInode);
inodePath.addNextInode(inode);
createdInodes.add(inode);
LOG.debug("createFile: File Created: {} parent: {}", newInode, currentInodeDirectory);
return createdInodes;

Run the following commands.
➜  alluxio git:(master) ✗ ./bin/alluxio formatMaster
➜  alluxio git:(master) ✗ ./bin/alluxio-start.sh master
➜  alluxio git:(master) ✗ ./bin/alluxio fs ls /
➜  alluxio git:(master) ✗ ./bin/alluxio fs mkdir /a

The master node will then exit as expected. After removing the previously modified code, restart the master node.
➜  alluxio git:(master) ✗ ./bin/alluxio fs ls /
➜  alluxio git:(master) ✗ ls underFSStorage
a

Here the directory a exists in the UFS but not in the aluxio metadata, as can be seen the metadata in alluxio is inconsistent with the metadata in ufs.
Expected behavior
The metadata should be consistent in this case.
Urgency
Middle
Are you planning to fix it
No planning.
Additional context

Also when I run the command  ./bin/alluxio fs checkConsistency /,it does't return anything, which seems to be another problem.

thanks @qian0817  , @yuzhu  can you take a look at this issue?

Here the directory a exists in the UFS but not in the aluxio metadata, as can be seen the metadata in alluxio is inconsistent with the metadata in ufs.

With regards to metadata consistency; how is this different from just adding a file in UFS and saying Alluxio's metadata is not in sync? Alluxio does not own storage content and can't retain the metadata in sync when there are abnormal crashes in between.

Here the directory a exists in the UFS but not in the aluxio metadata, as can be seen the metadata in alluxio is inconsistent with the metadata in ufs.

With regards to metadata consistency; how is this different from just adding a file in UFS and saying Alluxio's metadata is not in sync? Alluxio does not own storage content and can't retain the metadata in sync when there are abnormal crashes in between.

It is reasonable to assume that directly modify the UFS will result in inconsistent metadata. But if the metadata always modify via aluxio, we expect that the metadata in aluxio can always be consistent with the UFS.

Here the directory a exists in the UFS but not in the aluxio metadata, as can be seen the metadata in alluxio is inconsistent with the metadata in ufs.

With regards to metadata consistency; how is this different from just adding a file in UFS and saying Alluxio's metadata is not in sync? Alluxio does not own storage content and can't retain the metadata in sync when there are abnormal crashes in between.

It is reasonable to assume that directly modify the UFS will result in inconsistent metadata. But if the metadata always modify via aluxio, we expect that the metadata in aluxio can always be consistent with the UFS.

That's correct, but granted that UFS is disconnected to Alluxio, metadata can't be guaranteed to be in sync when abrupt crashes happen. There are ways we could detect and patch such gaps, but that would be costly in terms of runtime performance. (Like appending a special entry before and after each op to simulate transactional semantics.)

I agree, I think making UFS and Alluxio metadata operations atomic is really a hard problem to deal with.


Add quality step with sonarcloud in jenkins file

@jbonofre this can be merged on master, Sonar analysis from jenkins file is ok.


feat(slide-toggle): remove Hammer.js dependency

Removes the slide toggle's dependency on Hammer.js by getting rid of the dragging gestures.

How much work do you think it would be to use the same code for the slider and the slide-toggle to still support dragging the toggle?

It won't be that much work, but it also won't be too much code that'll be shared. Most of it is normalizing mouse and touch events, and making sure that events are cleaned up correctly, everything else is component-specific code. That being said, I decided to remove the sliding gesture here because:

I'm not sure it's that useful. The component is narrow enough (36px) that dragging on it pretty much constitutes a click already. We even had a bit of logic trying to distinguish a drag from a click so we don't fire the same events twice.
We've already removed it from the MDC version and MDC don't implement it themselves.

That's fair- we can see how the presubmit goes and if anyone complains.


CASSANDRA-19104 Standardize tablestats formatting and data units

Standardizes space and memory formatting in nodetool tablestats human-readable output.
Before
Nodetool tablestats returns a mix of "bytes", "KiB/MiB/GiB", or no units at all.
Example:
        Space used (live):<PHONE_NUMBER>523 bytes
        Space used (total):<PHONE_NUMBER>523 bytes
        Space used by snapshots (total): 0
        Off heap memory used (total): 607419608 bytes
...
        Memtable data size: 248539982 bytes
        Memtable off heap memory used: 0 bytes
...
        Bytes repaired: 0.000KiB
        Bytes unrepaired: 4315.386GiB
        Bytes pending repair: 0.000KiB
...
        Bloom filter space used: 33590024 bytes
        Bloom filter off heap memory used: 33532560 bytes
        Index summary off heap memory used: 8174024 bytes
        Compression metadata off heap memory used: 565713024 bytes
        Compacted partition minimum bytes: 36
        Compacted partition maximum bytes:<PHONE_NUMBER>3
        Compacted partition mean bytes: 189740

After
Nodetool tablestats formats space and memory numbers using KiB/MiB/GiB units with three significant digits and "KiB" being the smallest unit.
Example:
        Space used (live): 1.33 TiB
        Space used (total): 1.33 TiB
        Space used by snapshots (total): 0.000 KiB
        Off heap memory used (total): 579 MiB
...
        Memtable data size: 237 MiB
        Memtable off heap memory used: 0.000 KiB
...
        Bytes repaired: 0.000 KiB
        Bytes unrepaired: 4.21 TiB
        Bytes pending repair: 0.000 KiB
...
        Bloom filter space used: 32.0 MiB
        Bloom filter off heap memory used: 31.9 MiB
        Index summary off heap memory used: 7.80 MiB
        Compression metadata off heap memory used: 539 MiB
        Compacted partition minimum bytes: 0.035 KiB
        Compacted partition maximum bytes: 16.6 GiB
        Compacted partition mean bytes: 185 KiB

How to reproduce
nodetool tablestats -H

Tests
ant testsome -Dtest.name=org.apache.cassandra.utils.FBUtilitiesTest
ant testsome -Dtest.name=org.apache.cassandra.tools.nodetool.stats.TableStatsPrinterTest
ant testsome -Dtest.name=org.apache.cassandra.tools.nodetool.TableStatsTest

patch by @zaaath; reviewed by ??? for CASSANDRA-19104

Using the existing stringifyFileSize seems like the right approach.

@bschoening thanks, I totally agree that using the existing stringifyFileSize method is the right approach.


Potentially confusing use of device_name in the SBI API

Hi,
As always, thank you for this package, it is so central to a project I am working on :) I have been using SBI for a while (and made a minor API contribution some months back), and have been back to using it after a while today. The API has changed in the meantime, and I wanted to point out something that confused my for quite a bit - it is concerned with the usage of the parameter device in 2 different places in entirely different ways:

A new feature in the API is the requirement to specify device while creating the parameter prior before inference - while performing inference on a gpu, the correct value to specify would be "cuda" as the device parameter is used to port the tensor onto the right device: https://github.com/mackelab/sbi/blob/main/sbi/utils/torchutils.py#L251
Meanwhile, the main SNPE/SNLE inference classes have the same device parameter in their __init__, but they on the contrary expect this value to be "gpu" and not "cuda". This is along the lines of the old API: https://github.com/mackelab/sbi/blob/main/sbi/inference/snpe/snpe_c.py#L32

This usage is confusing and prone to errors, is there any specific reason for having this? I would personally prefer sticking to a single convention, but let me know what you think. Also let me know if I should open a pull request to fix this?

Hi @narendramukherjee and thanks for reporting this problem.
I am not sure I fully understand it though, maybe I am missing something. What I do understand is that we are sloppy in stating the difference between "gpu" and "cuda". We want to offer the flexibility to the user to just pass "gpu" for training on the GPU. Internally we convert this string to "cuda"
https://github.com/mackelab/sbi/blob/aad5c5ebc80c8e3c3475cd9f64c2347df7437c7e/sbi/utils/torchutils.py#L24-L26
and use it to pass the training data and the net to the GPU, just like we use it in the context of the prior.
I made a PR that hopefully clarifies this usage with more docstrings.
Please let me know whether this makes sense and solves your issue.

Thanks @janfb for the explanation - I think the issue is that making the BoxUniform prior throws an error since device is passed to it without being processed by the helper function you linked to above. It happens here: https://github.com/mackelab/sbi/blob/main/sbi/utils/torchutils.py#L254
So if you were making a BoxUniform prior yourself, you cannot pass "gpu" to it, you have to pass "cuda" otherwise it throws an error.

yes, makes sense, thanks @narendramukherjee
will be fixed soon!


Trying to setup a multi-hop (multiple services) and having affinity using StatefulSession but 2nd hop not working

Bug Description
joseret-macbookpro3:~ joseret$ ~/.istioctl/bin/istioctl version
client version: 1.16.1
control plane version: 1.16.1
data plane version: 1.16.1 (9 proxies)
Flow is
curl -> ingress-gateway -> sess1-a -> service-b
curl "http://sess1-a-test.ecom1.joecloudy.com/testcallseq?call1=http://service-b.sess1-a-ns/testcallseq" --cookie "sess1-a-session-cookie,sess1-b-session-cookie,gateway-session-cookie" -b sap-sow2-sess1-test-29 --cookie-jar sap-sow2-sess1-test-29 -s
Example always goes to the same sess1-a pod, but service-b a different pod gets used every time.
First one:
host:sess1-a-7dd975b77b-jnmcf
host:service-b-54544bfd47-6n24q
Second one:
host:sess1-a-7dd975b77b-jnmcf
host:service-b-54544bfd47-t5tln/Users/joseret/g/pso/sap2/sap-ariba-gke-provisioning/session-affinity/cookies/sess1-a.yaml
The code passes and save the cookie everytime, but noticed that even though the cookie is there, service-b generates a new one so that one is constantly changing
MTAuNzYuMi4xNTA6ODA4MA==
Repro steps:
call curl above and check that pods are the same
Config:
Archive.zip
Logs:
zlogs.zip
Include the access logs and the Envoy logs.
#HttpOnly_sess1-a-test.ecom1.joecloudy.com FALSE / FALSE<PHONE_NUMBER> sess1-b-session-cookie MTAuNzYuMi4xNTA6ODA4MA==
#HttpOnly_sess1-a-test.ecom1.joecloudy.com FALSE / FALSE<PHONE_NUMBER> sess1-b-session-cookie MTAuNzYuMC4xMTQ6ODA4MA==
#HttpOnly_sess1-a-test.ecom1.joecloudy.com FALSE / FALSE<PHONE_NUMBER> sess1-b-session-cookie MTAuNzYuMS4xMzI6ODA4MA=
logs show it goes in with one HASH and the response comes with a new one - not sure why:
IN
{
"textPayload": "DEBUG:hello_app_v4:testcallseq-headers-detail[Cookie-gateway-session-cookie=MTAuNzYuMi4xNTE6ODA4MA==; sess1-a-session-cookie=MTAuNzYuMi4xNTE6ODA4MA==; sess1-b-session-cookie=MTAuNzYuMi4xNTA6ODA4MA==]",
"insertId": "mt3aifc3q9mpeuhu",
"resource": {
"type": "k8s_container",
"labels": {
"cluster_name": "istio-testing",
"pod_name": "service-b-54544bfd47-6n24q",
"project_id": "sandbox-test-364913",
"container_name": "hello-app",
"namespace_name": "sess1-a-ns",
"location": "us-central1"
}
},
"timestamp": "2023-01-06T22:10:52.604962426Z",
"severity": "INFO",
"labels": {
"k8s-pod/service_istio_io/canonical-revision": "latest",
"k8s-pod/pod-template-hash": "54544bfd47",
"k8s-pod/service_istio_io/canonical-name": "service-b",
"compute.googleapis.com/resource_name": "gke-istio-testing-nodepool-istio-5566a478-kmfw",
"k8s-pod/security_istio_io/tlsMode": "istio",
"k8s-pod/app": "service-b"
},
"logName": "projects/sandbox-test-364913/logs/stdout",
"receiveTimestamp": "2023-01-06T22:10:57.415105313Z"
}
OUT
{
"textPayload": "DEBUG:hello_app_v4:testcallseq-response-cookies-detail:value-["MTAuNzYuMS4xMzI6ODA4MA=="]",
"insertId": "6q8ot3yxlo937kyg",
"resource": {
"type": "k8s_container",
"labels": {
"container_name": "hello-app",
"pod_name": "sess1-a-7dd975b77b-jnmcf",
"location": "us-central1",
"project_id": "sandbox-test-364913",
"namespace_name": "sess1-a-ns",
"cluster_name": "istio-testing"
}
},
"timestamp": "2023-01-06T22:11:13.991105076Z",
"severity": "INFO",
"labels": {
"compute.googleapis.com/resource_name": "gke-istio-testing-nodepool-istio-243760b8-llft",
"k8s-pod/security_istio_io/tlsMode": "istio",
"k8s-pod/service_istio_io/canonical-name": "sess1-a",
"k8s-pod/service_istio_io/canonical-revision": "latest",
"k8s-pod/pod-template-hash": "7dd975b77b",
"k8s-pod/app": "sess1-a"
},
"logName": "projects/sandbox-test-364913/logs/stdout",
"receiveTimestamp": "2023-01-06T22:11:17.389280895Z"
}
Version
joseret-macbookpro3:~ joseret$ kubectl version --short
Client Version: v1.23.14-dispatcher-dirty
Server Version: v1.23.11-gke.300
---
joseret-macbookpro3:~ joseret$ ~/.istioctl/bin/istioctl version
joseret-macbookpro3:~ joseret$ kubectl version --short
Client Version: v1.23.14-dispatcher-dirty
Server Version: v1.23.11-gke.300

Additional Information
Running istio analyze on all namespaces and report as below:
Analysis Report:
Warning [IST0151] (EnvoyFilter sess1-a-ns/stateful-session-b) This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST of ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly.
Warning [IST0151] (EnvoyFilter svc-c-ns/stateful-session-c) This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST of ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly.
Warning [IST0151] (EnvoyFilter svc-d-ns/stateful-session-d) This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST of ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly.
Warning [IST0151] (EnvoyFilter istio-system/stateful-session-gw) This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST of ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly.
Warning [IST0151] (EnvoyFilter sess1-a-ns/stateful-session) This EnvoyFilter does not have a priority and has a relative patch operation set which can cause the EnvoyFilter not to be applied. Using the INSERT_FIRST of ADD option or setting the priority may help in ensuring the EnvoyFilter is applied correctly.
Info [IST0102] (Namespace xxistio-system) The namespace is not enabled for Istio injection. Run 'kubectl label namespace xxistio-system istio-injection=enabled' to enable it, or 'kubectl label namespace xxistio-system istio-injection=disabled' to explicitly mark it as not needing injection.
Info [IST0102] (Namespace xxsystem) The namespace is not enabled for Istio injection. Run 'kubectl label namespace xxsystem istio-injection=enabled' to enable it, or 'kubectl label namespace xxsystem istio-injection=disabled' to explicitly mark it as not needing injection.
Creating an archive at /Users/joseret/bug-report.tar.gz.
Cleaning up temporary files in /var/folders/mc/1_sfx6c149343k95zkk22q4h009gz0/T/bug-report.
Done.
zlogs.zip
Archive.zip
bug-report.tar.gz

I tried changing filter to SIDECAR_OUTBOUND and that worked but not sure why since documentation on this is not clear.. Any pointers as to how to debug this and see without randomly trying is very appreciated. if sess1-a has a hash will it keep it per upstream? I will have to test with another service and call both from sess1-a (service-b and service-c) and they should stay the same

Made some progress but on the final issue.
Right now it is set to GATEWAY and SESSION_OUTBOUND and it is working except if first pass includes multiple calls to the the same service because new cookies are available in the response only so on the first pass the cookies are not included as we pass from service to service and they are not available to the code to add them.
example is component sess1-a and service-b will be called twice  gw (sess1a) -> sess1a -> svc-b -> svc-c -> svc-d -> svc-e -> svc-f -> svc-b (note svc-e and svc-f don't use cookies which represents stateless calls)
https://github.com/istio/istio/issues/42723
Here are 3 iterations
START
host:sess1-a-95944b74b-rm29m
host:sess1-a-95944b74b-qgsvc
host:service-b-849855dcf7-mxr79
host:service-c-5978476466-5hvgh
host:service-d-7cc9d855c9-zrnmz
host:service-e-65cb679c5b-q8nwb
host:service-f-74bbc48f9c-mrqbx
Last Call Successful-host:service-b-849855dcf7-7q4hr
host:sess1-a-95944b74b-rm29m
host:sess1-a-95944b74b-rm29m
host:service-b-849855dcf7-mxr79
host:service-c-5978476466-5hvgh
host:service-d-7cc9d855c9-zrnmz
host:service-e-65cb679c5b-hv7dq
host:service-f-74bbc48f9c-mrqbx
Last Call Successful-host:service-b-849855dcf7-mxr79
host:sess1-a-95944b74b-rm29m
host:sess1-a-95944b74b-rm29m
host:service-b-849855dcf7-mxr79
host:service-c-5978476466-5hvgh
host:service-d-7cc9d855c9-zrnmz
host:service-e-65cb679c5b-p66t4
host:service-f-74bbc48f9c-77xgh
Last Call Successful-host:service-b-849855dcf7-mxr79 (edited)
Archive.zip


Is it possible to use a custom prefix?

I want to use a custom prefix for the redis keys.
This is important to me in order to have an easy esy to recognize the keys that belongs to a system, even some area of a system.
Might this be possible? ... i actually use prefixes with redis but don't know if this plugin is ready to be customized in this way.

You can change prefix with cache.region_prefix however there are other prefixes like "z:" on the sorted sets seems not possible to remove.
Am i right?

Hi,
I am facing issue with this.
I am using Redis as Hibernate 2L cache, using hibernate.cache.region_prefix=hibernate. I can see 2 keys like this
"hibernate.abc"
"Z:hibernate.abc"
Is this really 2 keys with same value, or different? Can any one explain


pat: Correct number matching (again)

Thanks to @jsmorph for concurrency_test.go, whose surprising result revealed that the work for this PR was not nearly finished. More work was required on (a) detecting whether a number in an incoming event could be made comparable, (b) communicating that fact to the matching code, (c) marking NFAs which contained comparable numbers, leading to the following statement in value_matcher.go:
		if vmFields.hasQNumbers && eventField.IsQNumber {
			qNumber, err := qNumFromBytes(val)

Also, (d) the unit tests needed work to cover the cases that were previously issued.
Now, there is still a performance cost, particularly in benchmarks that do a lot of matching of numbers; correctness isn't free. But at the moment, I think the trade-off is acceptable.
Note that having previously called these things comparableNumbers and canonicalNumbers and disliking both and getting long ugly variable names, I renamed them to Q numbers, where Q is for Quamina.

tl:dr: I'm OK with the slowdown reported here.
As remarked, the numeric processing cost is real.  This benchmark that shows this is using the pattern:
{ "context": { "user_id": [9034], "friends_count": [158] } }

Which is purely numeric. So, instead of matching 3- and 4-byte numbers, we're matching 14-byte canonical representations.  Interestingly, when I measure matches/second metrics, the slowdown is dramatically smaller than that reported by the GitHub CI benchmark runner. (Not sure why.)
Finally, for the particular type of NFA produced for number atching, there are several obvious optimizations in the way the NFA-matcher runs, which will further reduce the impact of numeric accuracy.  I think accuracy is important, so that an event like the following would match the pattern above.
{ "context": { "user_id": 9034, "friends_count": 1.58e2 }}

(or 158.0 or any other variant)


Adding a new polymorphic test to make sure the OneOf properly binds h…

…ierarchies.  Simplifying type finding code in OneOfFactory by just initializing the dictionary with the types from the GenericArgsArray.

Whoops, sorry, my commit broke your PR.  Would you mind adjusting so I can merge please?

Sure give me a few...

Okay I think that's done it.

Thanks James.  Just as you did that I was figuring out how to correct it my end, I'm more used to SVN.

And I Hg, but these are the times we live in :D

Any progress with moving the performance tests out into something we can run a profiler against?
ps. I'm currently getting around 12M iterations with a release build.

Yeah. 12.3M for me.
I'm not quite sure what you're thinkin' exactly WRT the profiler.   I just run dotTrace from R# Unit Test Session, against the tests, which is good enough for me.  What are your thoughts on the matter?

I'd like to use MS's built-in profiler, but have yet to find out how to use it with unit tests.
ps Have made you a collaborator as we're both pretty much on the same page.  Hopefully it'll be a little easier for you from here for future commits.  Cheers!

Would a separate project that is both executable and annotated with unit tests that you can unload and reload be acceptable?  I have no problem setting that up if it would work for you.

In a nutshell that sounds awesome, that way the perf tests become opt-in and also can be profiled.

Hey sorry i've gone radio silent. lots of stuff on my plate atm. hoping to
get to this in next week or so.
On Sun, Oct 23, 2016 at 12:41 AM, Will Mooar<EMAIL_ADDRESS>wrote:

In a nutshell that sounds awesome, that way the perf tests become opt-in
and also can be profiled.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Jagged/OneOf/pull/4#issuecomment-255569418, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AD_ohUt7SlWfx1tYNZnMjPXdpoIf7t86ks5q2uWMgaJpZM4KeAZ3
.

That's fine James, who knew there would be life outside this?!


Set as my login Environment doesn't work after 1st change

Steps:

Create a Environment called Environment1
In Manage Environments, set Environment1 as your Login Environment
Logout and log back in (you will be sent to Environment1)
Go back to Manage Environments and set Default as your Login Environment
Logout and log back in

Results:
You are still sent to Environment1 instead of Default.  If you go to Manage Environments, Environment1 is set as your Login Environment.
Expected:
Default should be your login environment.

@hibooboo2 This is the uniqueness constraint thing on userPrefs..  Please send back to @tfiduccia when it's fixed in master.
{
  actions: {},
  code: "NotUnique",
  detail: null,
  fieldName: "name",
  id: "8753d5b1-73c2-4b28-bd7d-6cac68898401",
  links: {},
  message: null,
  status: 422,
  type: "error"
}

Currently gdapi unique constraint doesn't exclude it self when doing the check for uniqueness. I have submitted a pr to gdapi that fixes this. And subsequently i will have to submit a pr to cattle to update this. I will ping @tfiduccia when it hits master.

rancherio/cattle#609 Fixes this.

build from master - June 12th
Verified fixed


feat: move superset into OARS plugin

Description
This PR moves the superset plugin to the oars repo
Testing instructions:
Similar to #61 with superset plugin

Thanks for the pull request, @Ian2012!  Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket as you can:

supporting documentation
Open edX discussion forum threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.

@Ian2012 🎉 Your pull request was merged!  Please take a moment  to answer a two question survey so we can improve your experience in the future.


"Setup failed" doesn't have useful stack trace

When the setup fails, the stack trace provided is inside QUnit. Unlike #209, this should be easier to fix.

Fixed! For this I did a bigger refactor, actually improving the output of a lot more then just this case. See the commit and commit message for details.


How do I send msg.payload as the MessageBody to SQS?

I am fairly novice with Node-Red and can't figure out how to send the {msg.payload} object from a previous node as message data to SQS...
I've successfully sent messages to SQS but the message body is {msg.payload}, {{msg.payload}} or similar as that is what I've set for the message body in the node.
The same goes for DynamoDB... I've successfully created Items if I add the JSON in the node but I'd like to push it in on the Input.
Am I missing something or is it only using the text added in the Nodes as "body" to send to AWS?

Can you provide an example (export to clipboard), that way I can see exactly what you're trying to do.

I guess I understand that QAnders is trying to use msg.payload to feed the nodes, but he should be using msg.Item. Example:
msg.Item={
"myattribute1": {"S": msg.payload.bla},
"myattribute2": {"S": "abc"},
"myattribute3" : {"S" : "def"}
};

Problem seems to be that it is not possible to send a variable (=object value) as the message to SQS. It is sending the object/variable name as a string regardless of me trying to format it as JSON, msg.Item={} is the same, it is sent as a string, not as the object.

It will be easier to help if you can provide an example (exported)

I also have the same issue. I'd like to feed a DynamoDB node's PutItem operation with a dynamic input coming from another node. I did not manage to figure out what to put into the Item field. Whatever I enter it tries to parse as a string. E.g. if I put msg.payload, I would expect it to use the value of the msg.payload, but it tries to parse the "msg.payload" string itself, so I get an error:
"SyntaxError: Unexpected token m in JSON at position 0"
I think @QAnders has the same problem.


How to change the name of my app for the eas submit to the App Store

Summary
I'm having this error where the AppStore is blocking my eas submit because the name of the app is on their registry for an old app i submitted before. I have changed the name of the app.json but it doesn't change the name when its submitted to the store

I saw somebody else managed to fix this for expo upload but I'm not sure how to do it with eas submit
expo upload solution
Environment
EAS CLI 0.38.3 environment info:
System:
OS: macOS 11.4
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 7.22.0 - ~/.nvm/versions/node/v14.17.1/bin/npm
Utilities:
Git: 2.32.0 - /opt/homebrew/bin/git
npmPackages:
expo: ~43.0.0 => 43.0.2
expo-dev-client: ~0.6.3 => 0.6.3
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
npmGlobalPackages:
eas-cli: 0.38.3
expo-cli: 4.13.0
Error output
✖ Failed to create App Store app slissto app
The provided entity includes an attribute with a value that has already been used on this account. - The app name you entered is already being used for another app in your account. If you would like to use the name for this app you will need to submit an update to your other app to change the name, or remove it from App Store Connect.
Please visit https://appstoreconnect.apple.com and resolve any warnings, then try again.
Error: Submission failed
Reproducible demo or steps to reproduce from a blank project
{
  "expo": {
    "name": "Slissto: Aplicación para prestadores de servicio",
    "slug": "slissto-slisstos",
    "version": "1.0.1",
    "orientation": "portrait",
    "icon": "./assets/images/icon_beta.png",
    "scheme": "slissto-slisstos",
    "userInterfaceStyle": "automatic",
    "jsEngine": "hermes",
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "slissto",
            "project": "slissto-slisstos",
            "authToken": "xxxxxxxx"
          }
        }
      ]
    },
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.slissto.slisstos"
    },
    "android": {
      "versionCode": 2,
      "package": "com.slissto.slisstos"
    },
    "web": {
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": ["sentry-expo"]
  }
}

Hi @jesuscovam,
Just provide appName in the submit profile: https://docs.expo.dev/submit/eas-json/#appname
Let me know if this helped.

Hi @jesuscovam, Just provide appName in the submit profile: https://docs.expo.dev/submit/eas-json/#appname
{
  "submit": {
    "production": {
      "ios": {
        "appName": "foobar"
      }
    }
  }
}

Let me know if this helped.

yes It was that and kinda feel embarrassed but thank you 🙏🏼


Interactor example

Please, could you give the better way to integrate with Interactor?
Thanks ;)

Hi @Sweefties! Can you explain a bit in more details? Not sure if I understand correctly.

Hi @vburojevic ,
I would like to manage all business logic for data (ws/realm..) by interactor and populate a tableView or something else. But I'm not sure where and how to manage interactor with view controller, interface, interface and presenter classes/protocols.

Interactor would be responsible for fetching the data from the database. Presenter would be data source for view controller, and ask interactor for data, and after it fetches it, it would tell the view to reload.
Maybe it would be a good idea that we create a simple sample project with basic VIPER usages when we catch some time. Would that be helpful to you?

Yes, thanks ;)

@Sweefties  example project is now included, you can find it in Demo folder! :)


chore: clean up DB create command

SUMMARY

I noticed the DB update command has logic to update permissions when the database name changes, but that's already being done by a SQLAlchemy hook.
This PR removes the duplicate logic, and cleans up the SSH tunnel logic as well.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thanks @betodealmeida. [SIP-99D] Proposal for consolidating Command/DAO create, update, and upsert operations proposes using upsert which should help remove redundant code.


GET API less than

Hello,
is there a way to get items from collection for example with price less than or between the value provided.
Example :
api/collections/get/vozidla?token=xxx&populate=1&filter[price]=(more than xx less than xx)

fetch('/api/collections/get/posts?token=xxtokenxx', {
    method: 'post',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        filter: {price:{$gte:100}},
        populate: 1
    })
})
.then(res=>res.json())
.then(res => console.log(res));


Add support for TPM

https://medium.com/@herrjemand/verifying-fido-tpm2-0-attestation-fc7243847498

Made decent progress on this tonight. I think I will have functional implementation tomorrow.

@aseigler you king of men! ;)
(just FYI: I've been running a conformance test tool written by the FIDO alliance. I have fixed some small bugs, updated the API and will return with new Options/Result couples for unit testing certain things in "packed" and "tpm")

Progress in PR #15

It's as good as it is going get at the moment.  Can't really do much else until I have MDS functional.

What's MDS?

This can probably be closed at this point.