How to edit hidden files on windows?

Windows 10
Here is my code:
import 'dart:io';

void main(List<String> args) {
  File('C:\\Users\\alexa\\Documents\\test\\my-file.txt').writeAsString("some-text"); // got error if hidden, no error if not hidden
}

When I run this code on windows and the file is NOT hidden everything works nice.
But when I hide the file I got error:
Unhandled Exception: PathAccessException: Cannot open file, path = 'C:\Users\alexa\Documents\test\my-file.txt' (OS Error: Accès refusé.

, errno = 5)

Notice that when I run this code on an hidden file I get the data of the file:
import 'dart:io';

void main(List<String> args) {
  File('C:\\Users\\alexa\\Documents\\test\\my-file.txt').readAsStringSync(); // everything works fine here, even on hidden file
}

In both case the file was not in read only mode. He had only the +H attribute.

+R - Use the +R option to make a file read-only. Read-only files may be
read but they can`t be changed or deleted.
-R - Use the -R option to change the file protection attribute back to normal (so it can be read, changed, or deleted).
+A - Use the +A option to set the ARCHIVE attribute of a file. When the +A option is used, this flags the file as available for archiving
when using the BACKUP or XCOPY commands.
-A - Use the -A option to turn off the ARCHIVE attribute.
+H - With DOS Versions 4 through 6, use the +H option to set the HIDDEN attribute of a file so that it will not appear in a directory
listing.
-H - Use the -H option to turn off the HIDDEN attribute.
+S - With DOS Versions after Version 4, use the +S option to set the SYSTEM attribute of a file. When the +S option is used, this flags the
file as a command file used only by DOS. The file will not appear in a
directory listing. This attribute is generally reserved for
programmers.
-S - Use the -S option to turn off the SYSTEM attribute.
/S - Use the /S switch to set attributes on subdirectories found
within the specified path.

Why can't I edit an hidden file with dart ?
The solution I found is to create a hidden directory and put my file in this directory. So the file is not hidden but  the directory is. This way I can edit the file.

Seems to be a recurring issue on Windows, e.g. https://github.com/golang/go/issues/25923


Bedrock responses truncated

I'm using the starter template out of the box, but have swapped the LLM out to use Claude 2 through Bedrock. However, all of my responses are being truncated. I see an issue related to this was fixed in langchain recently, but even when pulling in the latest version my responses are still truncated. Are there any other changes I need to make to this template to get this to function as expected?
Here's the change to enable streaming: https://github.com/langchain-ai/langchainjs/issues/3009
And here's how I'm invoking ChatBedrock in route.ts (in place of ChatOpenAI)
const model = new ChatBedrock({
  model: "anthropic.claude-v2",
  region: "us-west-2",
  streaming: true,
  credentials: {
   accessKeyId: process.env.AWS_ACCESS_KEY_ID,
   secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
  }

Additional context - I'm using the web entrypoint as the default one was throwing errors in Next.js

I was able to resolve the issue by setting a high maxTokens value. I'm not sure why it was defaulting to too short of a value previously since it worked fine for ChatGPT.


ghu_browser/layout: Add bower/ prefix to bowerisms

Include the prefix bower/... in paths to JavaScript or CSS installed
with bower. This is needed because it's where they live in the static
files directory (otherwise, they're dead links)

I found this issue when I ran it. I don't see how it would work. You've restarted the debug server, right?

Here's the result of running tree on STATIC_ROOT after running ./manage.py collectstatic:
.
├── admin
│   [...]
├── bower
│   ├── bootstrap
│   │   [...]
│   └── jquery
│       [...]
└── ghu_browser
    ├── css
    │   ├── forum.css
    │   ├── home.css
    │   ├── orgs.css
    │   └── style.css
    ├── img
    │   ├── categ-community.png
    │   ├── categ-education.png
    │   ├── categ-general.png
    │   ├── categ-health.png
    │   ├── categ-seniors.png
    │   ├── categ-women.png
    │   └── categ-youth.png
    └── js
        └── orgs.js

51 directories, 315 files

Unless my environment is broken, omitting bower/ wouldn't work in production at all, since we're going to configure our HTTP server to serve /static/ from that directory.


Low calculation performance compared to autograd elementwise_grad

Description
I use autograd to calculate partial derivatives of functions of two variables (x, y). Due to the end of support for autograd, I'm trying to get the same results using jax.
These functions have the form:
$$\nabla^4 w = \cfrac{\partial^4 w}{\partial x^4} + 2\cfrac{\partial^4 w}{\partial x^2\partial y^2} + \cfrac{\partial^4 w}{\partial y^4}$$
where $w = w(x,y)$.
I use similar functions obtained by automatic differentiation in other parts of the program as wrappers, and then to obtain the final results I substitute the values of the NumPy arrays.
I haven't found a way to port this type of two-variable functions from autograd to jax with similar performance.
Examples:
autograd (ex1.py)
import numpy as np
from autograd import elementwise_grad as egrad

dx, dy = 0, 1

def nabla4(w):
    def fn(x, y):
        return (
            egrad(egrad(egrad(egrad(w, dx), dx), dx), dx)(x, y)
            + 2 * egrad(egrad(egrad(egrad(w, dx), dx), dy), dy)(x, y)
            + egrad(egrad(egrad(egrad(w, dy), dy), dy), dy)(x, y)
        )

    return fn

def f(x, y):
    return x**4 + 2 * x**2 * y**2 + y**4

x = np.arange(10_000, dtype=np.float64)
y = np.arange(10_000, dtype=np.float64)

w = [f] * 100  # In a real program, the elements of the list are various functions.

r = [nabla4(f)(x, y) for f in w]

(idp) PS C:\Users\kryst\Projects\example> Measure-Command { python ex1.py }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 813
Ticks             : 8130392
TotalDays         : 9,41017592592593E-06
TotalHours        : 0,000225844222222222
TotalMinutes      : 0,0135506533333333
TotalSeconds      : 0,8130392
TotalMilliseconds : 813,0392

jax (ex2.py)
import jax
from jax import grad, vmap
import jax.numpy as jnp

jax.config.update("jax_enable_x64", True)

dx, dy = 0, 1

def nabla4(w):
    def fn(x, y):
        return (
            vmap(grad(grad(grad(grad(w, dx), dx), dx), dx))(x, y)
            + 2 * vmap(grad(grad(grad(grad(w, dx), dx), dy), dy))(x, y)
            + vmap(grad(grad(grad(grad(w, dy), dy), dy), dy))(x, y)
        )

    return fn

def f(x, y):
    return x**4 + 2 * x**2 * y**2 + y**4

x = jnp.arange(10_000, dtype=jnp.float64)
y = jnp.arange(10_000, dtype=jnp.float64)

w = [f] * 100  # In a real program, the elements of the list are various functions.

r = [nabla4(f)(x, y) for f in w]

(idp) PS C:\Users\kryst\Projects\example> Measure-Command { python ex2.py }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 6
Milliseconds      : 906
Ticks             : 69064939
TotalDays         : 7,99362719907407E-05
TotalHours        : 0,00191847052777778
TotalMinutes      : 0,115108231666667
TotalSeconds      : 6,9064939
TotalMilliseconds : 6906,4939

The program using jax is almost 9x slower than the version using autograd. In more complicated programs the differences are much greater.
System info (python version, jaxlib version, accelerator, etc.)
jaxlib: 0.4.30
numpy:  1.26.4
python: 3.10.13 | packaged by conda-forge | (tags/v3.10.13-25-g07fbd8e9251-dirty:07fbd8e9251, Dec 28 2023, 15:38:17) [MSC v.1929 64 bit (AMD64)]
jax.devices (1 total, 1 local): [CpuDevice(id=0)]
process_count: 1
platform: uname_result(system='Windows', node='Vero', release='10', version='10.0.22631', machine='AMD64')

The repositories listed below contain two versions of the same program -- one using autograd and the other using jax. These are simplified examples of the approach to the problem described above.

tim_autograd
tim_jax

The execution times of these programs measured on my computer are:
autograd
(idp) PS C:\Users\kryst\Projects\tim_autograd> Measure-Command { python main.py }

Days : 0
Hours : 0
Minutes : 0
Seconds: 4
Milliseconds: 722
Ticks: 47227540
TotalDays: 5.46615046296296E-05
TotalHours: 0.00131187611111111
TotalMinutes: 0.0787125666666667
TotalSeconds: 4.722754
TotalMilliseconds: 4722.754

jax
(idp) PS C:\Users\kryst\Projects\tim_jax> Measure-Command { python main.py }

Days : 0
Hours : 0
Minutes : 0
Seconds: 6
Milliseconds: 818
Ticks: 68188968
TotalDays: 7.89224166666667E-05
TotalHours: 0.001894138
TotalMinutes: 0.11364828
TotalSeconds: 6.8188968
TotalMilliseconds: 6818.8968

In more complicated programs the differences are much greater.

(answered in #22050)


Fix EDDB id fetching logic for stations

This issue is dependant on the EDDB API providing market ids

Closed in 3ef0301006de8ebc8d5a914b4098e44925b05bc9


(BKR-1431) Allow nodeset YAML files to contain ERB

This allows users to embed ERB content into their nodeset YAML files.
This is particularly important when doing Docker testing on a shared
environment since the nodes cannot have overlapping names.
After thinking about a lot of different potential solutions, this one
appeared to be the most flexible and allow users to do what they needed
to in a language that is understood to Puppet users.
If no ERB content is present, there will be no change noticed by
current users.
BKR-1431 #close

@kevpl This is the update to #1463

@kevpl @puppetlabs/beaker failures due to a known issue. Another set of eyes would be great.

@puppetlabs-jenkins retest this please

@puppetlabs/beaker Can someone let me know what is broken in Jenkins?

@kevpl @pinkypie Can someone let me know what is failing please?

sorry @trevor-vaughan, the job will be gone by now, so we'll re-kick one to reset testing on this & work to keep up-to-date on it better so it won't get lost this time

Jenkins, test this please

looks like the failure was due to an unrelated transient issue. I've created #1509 to improve that particular transient (unrelated to this) & we'll re-kick this test.

Jenkins, test this please


Fix for Issue #4 on re-used Entity IDs

Fix for Issue https://github.com/Byteron/HypEcs/issues/4
The first commit fixes the bug that IsAlive(deadEntity) returned true when there was a new entity re-using its ID.
The second commit goes through all (?) other places that might operate on a dead entity, and either throws, returns false, or returns an empty list; instead of just operating on whatever new entity is re-using its ID. In potentially performance-sensitive functions, I avoided calling IsAlive directly so as not to do an unnecessary lookup. It's probably unnecessary to check for equality on the Identity as opposed to just the Generation, but I wanted to be safe.

This PR should not be merged because it breaks functionality for Entity.Any.


outer promise on update resolves first then inner

Hi,
I have got a strange problem. Everything works good but on update queries promise1 has being resolved first then inner one. Any ideas ?
var  callString = "update table1 set name = 'aaa' where id = 1";
var promise1 = return connection.query(callString).then(function(ok){
         var promise2 = q.resolve("done");
         return promise2;
});

Thanks.

Your example code is full of errors, so I can't try and replicate it.

:)
it is completely clear that this code will not work.  It is a just example to make you better understand what I mean.  Anyway if you want more complete code here it is.
import mysql = require('promise-mysql');
import Q = require("q");

class ServiceBase {
    public static pool = mysql.createPool({
        connectionLimit: 500,
        host: 'ipaddress',
        user: 'username',
        password: 'password',
        database: 'scheme',
        multipleStatements: true
    });

    public static Query(connection:any, callString:string) {
        return connection.query(callString).then(function (rows) {
            return Q.resolve(rows);
        }).catch(function (err) {
            return ServiceBase.RollBackConnection(connection, err);
        });
    }

...
...

    protected static CreateConnection():any {
        console.log("create connection");
        return this.pool.getConnection().then(function (connection) {
            return Q.resolve(connection)
        }).catch(function (err) {
            return Q.reject(err);
        });
    }

...
...
}
export = ServiceBase;

so if you will call ServieBase.Query with some update query then promise which has returned by connection.query resolves more faster then inner one: Q.resolve(rows); And that happens only on update query, on select it is ok.
Thanks.

Based on both of your examples, I hacked this together
var mysql = require('promise-mysql');
var q = require('q');

mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: 'password',
    database: 'database'
}).then(function(connection){
    var  callString = "update table1 set name = '123' where id = 1";
    var promise1 = connection.query(callString).then(function(ok){
         var promise2 = q.resolve("promise 2");
         return promise2;
    }).then(function(prev) {
        console.log(prev)
        console.log('promise 1')
    })
});

When running this I get the following in the terminal:
promise 2
promise 1

Which is what I'd expect.

Thank you. My fall :)


Is there an an Include function (opposite of Omit) ?

Your Question
Is there an opposite to Omit?  Pretty much every server will have a User model with a password field. Usually we would write something like :
type User struct {
	Id                          string            `json:"id,omitempty" gorm:"primary_key"`
	Password                    string            `json:"password,omitempty" gorm:"-"`
}

But in the times that you actually need to compare the password on logins or to update the password on password change, how would we do that? Right now it seems like i would need to write omit everywhere on user queries except for the 2 places where I actually want it included.
The document you expected this should be explained

Expected answer
Write something like db.Include("password").First(&user)

https://gorm.io/zh_CN/docs/update.html#更新选定字段

Select


Nullptr as a char* parameter in RPC Call throws access violation

Hey,
Actually was the problem i wrote in #183 and i found where exactly is the problem.
Example pseudo-code
using mono_assembly_load_from_t = mono_assembly * (__cdecl*) (mono_image *, const char *, mono_image_open_status *);

mono_image_open_status open_status;
blackbone::RemoteFunction<mono_assembly_load_from_t> rpc (process, get_export ("mono_assembly_load_from")->procAddress);
auto call_result = rpc.Call (image, fname, &open_status, process.threads ().getMain ());

So when I provide nullptr as a second parameter fname throws exactly what i wrote in previous issue.
Temporary solution:
// char*, const char*, char[], etc.
template<typename T>
std::enable_if_t<std::is_pointer_v<T> && std::is_same_v<cleanup_t<T>, char>>
  Init( T arg )
{
  set( dataPtr, (arg != nullptr) ? strlen( arg ) + 1 : 0, reinterpret_cast<uint64_t>(arg) );
}

char* and wchar_t* overloads are there for actual string convenience. If you want to use it like generic pointer type, replace it with void*.


Hiding Actors to Client

Hi,
I wish to limit the number of actors the server sends to the client for a given condition (for example, limit the result of client.get_world().get_actors() to the ones within a radius r from the hero vehicle). Can someone say what is the best to do it? Probably, in case this is too complicated, is there a way to hide the location/speed/etc information? For example, if I called client.get_world.get_actor(id).get_location() the result the could be (0,0,0) even the actor is valid and has a current location.

Could you explain what you are really trying to do?

Closing issue due to inactivity. Please, feel free to comment back if you need the issue reopened.


poa from bioconda does not work

Thanks for creating the software. I just wanted to report that I couldn't get quickrun.sh to run when using poa=2.0=h516909a_2 from bioconda, it always stalled at ComputeConsensus step. This was solved when I went reinstalled poa using the build from tanghaibio/bio-pipeline. It would be useful to solve this, since a lot of people use bioconda, and then you can just provide an environment.yaml file to go with the software.
Thanks!
David
P.S. do you plan to release the source code?

Hi, I had the same issue regarding poa. It stalled on me and I had to reinstall using the poa from tanghaibio/bio-pipeline which solved the issue. It would be useful to maybe even incorporate spoa. It would be great to get access to the source code.
Thanks,
Ashley Byrne

Hi, I had the same issue regarding poa. It stalled on me and I had to reinstall using the poa from tanghaibio/bio-pipeline which solved the issue. It would be useful to maybe even incorporate spoa. It would be great to get access to the source code.
Thanks,
Ashley Byrne

Hi, you can give a try to the Sicelore-2.0.jar version which do use spoa and generate fastq consensus sequence file to keep track of QV values for SNV calling in next steps (if required). I'm planning to release the source code, at least for sicelore dev, in the next few weeks. Cheers, kevin

Hi, you can give a try to the Sicelore-2.0.jar version which do use spoa and generate fastq consensus sequence file to keep track of QV values for SNV calling in next steps (if required). I'm planning to release the source code, at least for sicelore dev, in the next few weeks. Cheers, kevin


installing Grammar::Debugger failed frist time but succeeded second time

Might have nothing to do with Grammar::Debugger, but installing failed while running 'panda install Task::Star':
vytas-local@vytas-desktop:~$ panda install Task::Star
==> Task::Star depends on Debugger::UI::CommandLine, ufo, XML::Writer, SVG, SVG::Plot, Terminal::ANSIColor, Test::Mock, Grammar::Profiler::Simple, Grammar::Debugger, JSON::Tiny, Digest::MD5, HTTP::Status, HTTP::Easy, Template::Mojo, Bailador, DBIish, URI, LWP::Simple, JSON::RPC, Pod::To::HTML, p6doc, MIME::Base64, PSGI
==> Debugger::UI::CommandLine depends on Terminal::ANSIColor
==> SVG depends on XML::Writer
==> SVG::Plot depends on SVG
==> SVG depends on XML::Writer
==> Grammar::Debugger depends on Terminal::ANSIColor
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
==> Bailador depends on HTTP::Easy, Template::Mojo, Template::Mustache, URI
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
URI provides the requested URI::Escape
==> LWP::Simple depends on MIME::Base64, URI, URI
==> JSON::RPC depends on JSON::Tiny, URI, HTTP::Easy, LWP::Simple
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
URI provides the requested URI::Escape
==> LWP::Simple depends on MIME::Base64, URI, URI
==> Pod::To::HTML depends on URI
==> p6doc depends on URI, File::Temp
==> File::Temp depends on File::Directory::Tree
==> PSGI depends on HTTP::Status
==> Fetching Terminal::ANSIColor
==> Building Terminal::ANSIColor
==> Testing Terminal::ANSIColor
t/00-load.t .. ok
All tests successful.
Files=1, Tests=1,  3 wallclock secs ( 0.02 usr  0.00 sys +  2.01 cusr  0.10 csys =  2.13 CPU)
Result: PASS
==> Installing Terminal::ANSIColor
==> Successfully installed Terminal::ANSIColor
==> Fetching Debugger::UI::CommandLine
==> Building Debugger::UI::CommandLine
==> Testing Debugger::UI::CommandLine
==> Installing Debugger::UI::CommandLine
==> Successfully installed Debugger::UI::CommandLine
==> Fetching ufo
==> Building ufo
==> Testing ufo
==> Installing ufo
==> Successfully installed ufo
==> Fetching XML::Writer
==> Building XML::Writer
==> Testing XML::Writer
t/escaping.t ... ok
t/structure.t .. ok
All tests successful.
Files=2, Tests=11,  3 wallclock secs ( 0.03 usr  0.00 sys +  2.37 cusr  0.13 csys =  2.53 CPU)
Result: PASS
==> Installing XML::Writer
==> Successfully installed XML::Writer
==> Fetching SVG
==> Building SVG
==> Testing SVG
t/basics.t .. ok
All tests successful.
Files=1, Tests=3,  2 wallclock secs ( 0.02 usr  0.00 sys +  2.35 cusr  0.12 csys =  2.49 CPU)
Result: PASS
==> Installing SVG
==> Successfully installed SVG
==> Fetching SVG::Plot
==> Building SVG::Plot
==> Testing SVG::Plot
t/series.t .. ok
t/ticks.t ... ok
All tests successful.
Files=2, Tests=10,  4 wallclock secs ( 0.02 usr  0.00 sys +  4.14 cusr  0.17 csys =  4.33 CPU)
Result: PASS
==> Installing SVG::Plot
==> Successfully installed SVG::Plot
==> Fetching Test::Mock
==> Building Test::Mock
==> Testing Test::Mock
t/returning.t .. ok
t/synopsis.t ... ok
t/with.t ....... ok
All tests successful.
Files=3, Tests=13,  4 wallclock secs ( 0.02 usr  0.00 sys +  3.35 cusr  0.17 csys =  3.54 CPU)
Result: PASS
==> Installing Test::Mock
==> Successfully installed Test::Mock
==> Fetching Grammar::Profiler::Simple
==> Building Grammar::Profiler::Simple
==> Testing Grammar::Profiler::Simple
t/csv.t .. ok
All tests successful.
Files=1, Tests=15,  2 wallclock secs ( 0.02 usr  0.01 sys +  1.96 cusr  0.10 csys =  2.09 CPU)
Result: PASS
==> Installing Grammar::Profiler::Simple
==> Successfully installed Grammar::Profiler::Simple
==> Fetching Grammar::Debugger
==> Building Grammar::Debugger
==> Testing Grammar::Debugger
t/debugger.t .. ok
t/tracer.t .... ok
All tests successful.
Files=2, Tests=2,  4 wallclock secs ( 0.01 usr  0.01 sys +  3.57 cusr  0.17 csys =  3.76 CPU)
Result: PASS
==> Installing Grammar::Debugger
Cannot unbox a type object
  in block  at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/8F98A1F9E9D54C875A30AE01CCEEADB29E345552:54
  in sub indir at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/F39C951835D399F45541606F635505826020309C:20
  in method install at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/8F98A1F9E9D54C875A30AE01CCEEADB29E345552:41
  in method install at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/BD0DF4B9BE62E3EE9BD322C4BC75753A312CC736:146
  in block  at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/BD0DF4B9BE62E3EE9BD322C4BC75753A312CC736:214
  in method resolve at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/BD0DF4B9BE62E3EE9BD322C4BC75753A312CC736:208
  in sub MAIN at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/resources/57BC7C4B78577CB8B42F9CAED647310E18605715:18
  in block <unit> at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/resources/57BC7C4B78577CB8B42F9CAED647310E18605715:145

vytas-local@vytas-desktop:~$ perl6 -v
This is rakudo version 2015.11-316-ga4ca12a built on MoarVM version 2015.11-22-g6e4b90f implementing Perl v6.b.

vytas-local@vytas-desktop:~$ panda install Task::Star
==> Task::Star depends on Grammar::Debugger, JSON::Tiny, Digest::MD5, HTTP::Status, HTTP::Easy, Template::Mojo, Bailador, DBIish, URI, LWP::Simple, JSON::RPC, Pod::To::HTML, p6doc, MIME::Base64, PSGI
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
==> Bailador depends on HTTP::Easy, Template::Mojo, Template::Mustache, URI
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
URI provides the requested URI::Escape
==> LWP::Simple depends on MIME::Base64, URI, URI
==> JSON::RPC depends on JSON::Tiny, URI, HTTP::Easy, LWP::Simple
==> HTTP::Easy depends on HTTP::Status, PSGI
==> PSGI depends on HTTP::Status
URI provides the requested URI::Escape
==> LWP::Simple depends on MIME::Base64, URI, URI
==> Pod::To::HTML depends on URI
==> p6doc depends on URI, File::Temp
==> File::Temp depends on File::Directory::Tree
==> PSGI depends on HTTP::Status
==> Fetching Grammar::Debugger
==> Building Grammar::Debugger
==> Testing Grammar::Debugger
t/debugger.t .. ok
t/tracer.t .... ok
All tests successful.
Files=2, Tests=2,  4 wallclock secs ( 0.02 usr  0.00 sys +  3.48 cusr  0.21 csys =  3.71 CPU)
Result: PASS
==> Installing Grammar::Debugger
==> Successfully installed Grammar::Debugger
[...]

Got this again with today's build ( rakudo version 2015.11-477-gde52f97 built on MoarVM version 2015.11-34-gc3eea17 implementing Perl v6.b. )
vytas-local@vytas-desktop:~/$ panda install Task::Star
[..]
==> Successfully installed Grammar::Profiler::Simple
==> Fetching Grammar::Debugger
Use of uninitialized value %ENV of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.  in sub git-fetch at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/5914A0429388FE1C6211D1F73A1CB53E420F745A:46
==> Building Grammar::Debugger
==> Testing Grammar::Debugger
Use of uninitialized value %ENV of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.  in block  at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/D22572F21A504312044F0C1A9A2795C57544F368:84
t/debugger.t .. ok
t/tracer.t .... ok
All tests successful.
Files=2, Tests=2,  5 wallclock secs ( 0.01 usr  0.01 sys +  3.79 cusr  0.24 csys =  4.05 CPU)
Result: PASS
==> Installing Grammar::Debugger
Cannot unbox a type object
  in block  at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/DFDFFA01206313696BA919D73EA1B318275C477D:56
  in sub indir at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/D22572F21A504312044F0C1A9A2795C57544F368:20
  in method install at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/DFDFFA01206313696BA919D73EA1B318275C477D:41
  in method install at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/CDEC2C082895805FE7EE6BB48A74FE81AD69AEBC:146
  in block  at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/CDEC2C082895805FE7EE6BB48A74FE81AD69AEBC:214
  in method resolve at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/sources/CDEC2C082895805FE7EE6BB48A74FE81AD69AEBC:208
  in sub MAIN at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/resources/086A75936CC113FD11C76F981EF5C0C68FCC867A:18
  in block <unit> at /home/vytas-local/.rakudobrew/moar-nom/install/share/perl6/site/resources/086A75936CC113FD11C76F981EF5C0C68FCC867A:150


💡 Re-do tags/ releases + git history

Area
Other
Is there new design needed?
No
What?

We shouldnt tag our releases using sancho-this is confusing
Lets figure out a template we want to use
Maybe we want to create a release template also
also the main git history is a little wonky compared to the other branches

Why?

make things clearer and make more sense

How?
Ryan todo
(Optional) User Story with acceptance criteria
N/A

I have pushed new tag naming and edited the last release notes:

https://github.com/IntersectMBO/govtool/releases/tag/v1.0.18
IMO this is an improvement

@Ryun1 Should we close this one?

done!


Global styles with this template

Hi,
Can you tell me how to add Global styles with this template ? I have tried like below.But it's not working.
I have added style.css file in this path components/app/style.css.After that inside the app.component.ts file where I have done this :
 styles: [require('./style.css')],
After that I have tried to use that styles on my child component and it doesn't work.Can you tell me how to do that ? Thanks.

Hi @Sampath-Lokuge. I'm assuming this question is about the Angular template, otherwise, please disregard my comment.
You can modify how the application interprets styles by changing the encapsulation property of a component. In this particular example, you can add encapsulation: ViewEncapsulation.None to your app component and the styles of ./style.css will be available to its children.
A couple of unsolicited considerations:

To avoid conflicts and other issues, I wouldn't have more than one component propagating its styles globally. Also, note that styles with same class inside a children component will override existing styling. There are a couple of articles explaining ViewEncapsulation in detail.
If you want to follow Angular style guide, it's recommended to rename your style to app.component.css.

Best,
E

Thanks for the answer, @etimesg!


fix nodes out of sync to account for orphan blocks

gets the best protocol state that is on most nodes (until we have blockchain height in the node-status)
A node is synced near best tip if any of the last 4 of its blocks are synced to the network's latest 4 blocks (what's on most nodes)
Logging nodes that are out-of-sync

!approved-for-mainnet


Dashboard Auto Moderation Error

Description
When submitting whitelisted channels in the dashboard it returns an error in the terminal
To Reproduce
Steps to reproduce the behavior:

Go to dashboard
Choose a channel in the "auto moderation form" and submit

Expected behavior
Add a channel or multiple to the whitelist channels
Screenshots

Versions

NodeJS version: ^16.11.0
Bot version: 5.1.0

Duplicate of #261


Improved action loading and error message on name conflicts

Refactored how actions are loaded to a central point
Added warning when a lane name is already taken by an action

Ready to be merged, however please don't squash, as these are 2 clearly separate commits 👍

:-1:

:+1:


Integrate the use of bower

I'm a big user of this plugin, and today encountered one of our node applications that uses bower.
Any reason why this plugin couldn't be extended to use bower.  Seems like its relationship to npm is the same as grunt, so the support within the code would be similar.
Make sense?

I don't think adding bower support is a good idea. Bower is a deprecated tool https://bower.io/blog/2017/how-to-migrate-away-from-bower/.
I've used https://github.com/sheerun/bower-away on a big AngularJS project using bower and it had worked very well.

Whilst bower-away converts dependencies to yarn quite nicely, it doesn't handle things like wiredep that you might have in your gruntfile for instance.
Using npm to install bower as per here hasn't been 100% reliable.

OK.  Thanks for the advice.  This is a small app so I think I will convert it to yarn or grunt.


feat: adding reusable popover

feat: adding reusable popover
Thank you for your contribution to the project.
This is a TableView within a popup, to enable us to add some type of options to a button. We can add as many items as we want to this, with the associated title, icon and action.

Checklist
Before raising your pull request:

[x] Ran the app locally ensuring it builds
[x] Ran the tests locally ensuring they pass on Build
[x] Pull request has a clear title with ticket ID and a short description about the feature or update
i.e. DCMAW-222: Added ReadID SDK to iOS app
[x] Created a draft pull request if it is not yet ready for review

Before your pull request can be reviewed:

[x] Met all of the acceptance criteria specified in the user story on Jira

[x] Reviewed your own code to ensure you are following the style guidelines

[x] Ran the app and tested the feature on a range of device sizes
Please include iPod Touch, iPhone SE and iPhone 11 as a minimum.

[x] Written Unit and Integration tests if needed

[ ] Met all accessibility requirements?

[ ] Checked dynamic type sizes are applied
[ ] Checked VoiceOver can navigate your new code
[ ] Checked a user can navigate only using a keyboard around your new code

Before merging your pull request:

[ ] Ensure that the code coverage and SonarCloud checks have passed
[ ] Actioned and resolved all comments, reaching out to reviewers for clarifications if necessary.
[ ] Ran the app to ensure that no regressions have been caused by changes during code review.
[ ] Targeted the correct branch; develop, release or main

Hello @robinphillips :) - description added now.
In terms of what happens if the view also conforms to BaseViewModel, the right bar button title would take priority here and show the text. Setting the right bar button title to nil fixes that (which would make sense as adding this wouldn't really be classed as a bar button title, it would be the same as overriding the button to do something custom to the app using it)
I dont really think it should be added to BaseViewController. I dont see a use for this beyond our one screen in our sub-team at the minute, so I think adding it to the VC that most other views conform to wouldn't be needed right now. Potentially at a later date if lots more use cases come out for this, but this is mainly here as we thought it could be a common element eventually, so no point in building it within out own codebase.


Central version bump.

Is your feature request related to a problem? Please describe.
Any time a version bump is required. I need to update three locations

tauri.conf.json : Build version on the binaries.
package.json: Version number for github releases
cargo.toml: I dont think this is honored anywhere, except when using cargo run.

Describe the solution you'd like
A central source of truth? Can tauri.conf.json not be a part of package.json?
Additional context
My folder setup is unique since, my project was originally a rust project using webview. So at build time I need to restructure my folder like this, so that I can create installers via the build cli.

package.json isn't necessary for tauri, so you don't need to specify a version there (*except currently the tauri action uses package.json to get the version).
The version in tauri.conf.json is optional. By default, it uses the version from Cargo.toml.
The version in Cargo.toml is required by Cargo no matter what, so imo it makes sense to go for that.

While yes. package.json reflects the version shown in the github release.
tauri.conf.json is most likely the version provides by the package meta inside a tauri app provided by the api.

If you specify a version in tauri.conf.json, yes, but otherwise it defaults to Cargo.toml

I'm new to Tauri and this little speed bump hit me today. Did y'all figure out a shortcut in the last three years?

I'm new to Tauri and this little speed bump hit me today. Did y'all figure out a shortcut in the last three years?

Maybe a bit late, but another 4 months later it hit me as well...
In a GitHub action I first determine the next version using get-next-version and then bump all three versions manually:
# package.json
echo "$(jq '.version="${{ env.NEXT_VERSION }}"' package.json)" > package.json
# tauri.conf.json
echo "$(jq '.version="${{ env.NEXT_VERSION }}"' src-tauri/tauri.conf.json)" > src-tauri/tauri.conf.json
# cargo.toml
cd src-tauri && cargo install cargo-bump && cargo bump ${{ env.NEXT_VERSION }}

If used with an actual environment variable, this would look like this:
# package.json
echo "$(jq --arg next_version "${NEXT_VERSION}" '.version=$next_version' package.json)" > package.json
# tauri.conf.json
echo "$(jq --arg next_version "${NEXT_VERSION}" '.version=$next_version' src-tauri/tauri.conf.json)" > src-tauri/tauri.conf.json
# cargo.toml
cd src-tauri && cargo install cargo-bump && cargo bump ${NEXT_VERSION}


Some variants without GeneticModels annotation

Hello, thank you for your awesome work in genmod!
I'm would like to use it on some samples I have for a project, but some of the variants present in the multi VCF I'm using doesn't have the GeneticModels annotation, is this normal?
From the 1745 variants in the multi VCF,  just 187 doesn't have this annotation.
Example without:
chr2	202082459	rs13006529	T	A	2480.27	.	ABHet=0.484;ABHom=1;AC=3;AF=0.5;AN=4;BaseQRankSum=-1.137;DB;DP=290;Dels=0;ExcessHet=3.0103;FS=0;HaplotypeScore=6.7127;MLEAC=1;MLEAF=0.5;MQ0=0;MQ=60;MQRankSum=0;OND=0;QD=10.68;ReadPosRankSum=1.172;SF=0,1;SOR=0.988;set=Unified;Annotation=CASP10GT:GQ:AD:PL:DP	0/1:99:76,81:1705,0,1473:157	1/1:99:0,133:3312,247,0:133

Example with:
chr1	10355834	rs3753037	C	T	974.77	.	ABHet=0.511;AC=1;AF=0.5;AN=2;BaseQRankSum=0.472;DB;DP=93;Dels=0;ExcessHet=3.0103;FS=0;HaplotypeScore=5.5623;MLEAC=1;MLEAF=0.5;MQ0=0;MQ=60;MQRankSum=0;OND=0;QD=10.6;ReadPosRankSum=0.66;SF=0;SOR=0.622;set=Unified;Annotation=RNU6-37P,KIF1B;GeneticModels=FAM01:AD;ModelScore=FAM01:99	GT:PL:AD:DP:GQ	0/1:1003,0,988:47,45:93:99	.

Hi @geocarvalho , sorry for not replying I had not seen this. Yes if a variant does not follow any genetic models they will not be annotated.
Good luck!


Call the AuthZRes function also when the daemon  returns error

For each call the authorization plugin was called twice through 2 APIs

Before the request is executed on the daemon
After the command was executed and before the response was sent back to the client
On each of this calls the plugin could return either Allow or Deny
(see [https://docs.docker.com/engine/extend/plugins_authorization/])

The problem was that the plugin was not called on the response in case the operation on the server returned an error . In that case the error returned directly to the client without calling the plugin.
This made it almost impossible for plugins to monitor and log more advanced access usage patterns that take into account the outcome of the operation (e,g,m limit the number or frequency  of created containers by a user)
The plugin itself can check the authZReq.ResponseStatusCode  when handling the response to understand whether there was a server error or not.
Signed-off-by: Ezra Silvera<EMAIL_ADDRESS>

ping @anusha-ragunathan @tiborvass PTAL

cc @riyazdf

nice catch @ezrasilvera, LGTM


Fix black lines on intel

Confirmed fix for me.

Confirmed fixed for me as well, Intel Ivy Bridge iGPU running on Linux x86_64 kernel version 4.14.79


Implement dom.create

[x] Implement and test dom.create as outlined in the dom proposal.
[x] Investigate effort to include type information for return values and possibly arguments object for string subtypes for each type of element that can be created.

dom Proposal Reference

I probably should have also referenced this issue in https://github.com/dojo/dom/commit/322dbdf904f0255cdedcb9f0595e9576a7243c6d since it pertains to the 2nd item in the description.  This commit adds return types for the relevant subset of tags (minus obsolete ones) which TypeScript's own dom.generated.d.ts has typings for in the createElement signature.
I investigated potentially going further and adding support for smarter typings for the second argument based on HTMLElement-derived types included in TypeScript (instead of the rather fuzzy CreateArgs), but it seemed prohibitive for a few reasons:

The addition of the attributes key would likely require us to extend each HTMLElement-derived interface we'd like to reuse
attributes is already a thing that already exists on Node - we're overloading its meaning for CreateArgs.  You can't redefine members with incompatible types when you extend interfaces, which means we'd have to roll our own parent interface rather than base on HTMLElement
dom.generated.d.ts has already demonstrated its fair share of bugs, so leaning heavily on its HTMLElement-derived types for the sake of validating properties at construction time seemed likely to be more trouble than it's worth
Even if we did go through this effort, it would only validate properties, not attributes


Stronger safe_email filter

I really like the inclusion of the safe_email Twig filter! I realize that it's no bullet proof method for protecting from email harvesters, but strengthening it somewhat would still feel good.
Maybe taking a cue from WordPress is a good idea here, the antispambot function encodes random parts of the address as HTML entities (both decimal encoding and hex encoding) and other parts as their default character representation.

done!


SLP has ended, update page content and remove action

[ ] Update copy
[ ] Remove the deposit buttons
[ ] remove withdraw without unsticking
[ ] consider removing link at top of page (but see how many people are still in the pool)
[ ] create and schedule a time

Tested this with @dexturr on token.vega.xyz and the changes look good so marking this ticket as done.


ui: update not found page

https://github.com/cockroachdb/cockroach/pull/72689 --- Release note (ui change): Updated Not Found page

Closing - no docs needed


How to handle dependencies between units?

Currently all units are spawned in parallel at the same time.  Sometimes, we might require a unit to be started before another.  Can there be a way to specify Before= After=?  Open question: how does a unit signal it has "started?"

It's an interesting idea. What use cases do you have in mind for dependencies between units? docker-compose used to have a depends_on key, but eventually removed it. With a good enough use case (keeping in mind that python-compose is meant for services and not as a generic workflow engine), I see no issue with implementing something similar for python-compose.
As a hack, there's nothing stopping you from adding a heartbeat endpoint to your Python services and waiting for those to respond 200 in the services that depend on the services with the heartbeat.


Improve neomake#utils#ExpandArgs to handle %:r.o

Fixes https://github.com/neomake/neomake/issues/926.

No response, but why not.
At least it's tested (+1) and not documented (+1) = 2.


Clean-up to match latest template

Update README.md to latest design and content
Update build-system with latest features
Update CODEOWNERS and CONTRIBUTION.md
Add test/README.md from template repository
Copy former test-examples to test directory

lgtm! Build-tools should be set to a specific version also, it currently points to latest

where is this... Makefile point to 0.5.4 as in template repo.. @soerenmartius


Narrowed type information is sometimes lost in callback functions.

Bug Report

🔎 Search Terms

type narrowing, callback
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about type guards.
⏯ Playground Link

Playground link with relevant code
💻 Code

type Option = { isSome: true, value: unknown } | { isSome: false };

export default (
  foo: Option,
  bar: { baz: Option },
  qux: (arg: unknown) => unknown
) => {
  if (foo.isSome) {
    foo.value;
    qux(foo.value);
    [].map((_) => foo.value);
  }
  if (bar.baz.isSome) {
    bar.baz.value;
    qux(bar.baz.value);
    [].map((_) => bar.baz.value);
  }
};

🙁 Actual behavior

The line [].map((_) => bar.baz.value); does not compile, inferring bar.baz to be of type Option. I thought it was narrowed down to { isSome: true, value: unknown } just like the above two lines.
🙂 Expected behavior

The aforementioned line should compile as I explained in the last section.
The closest documentation to the situation of my problem is this issue template, which says:

narrowings are not respected in callbacks. In other words:
function fn(obj: { name: string | number }) {
  if (typeof obj.name === "string") {
    // Errors
    window.setTimeout(() => console.log(obj.name.toLowerCase());
  }
}

This is intentional since the value of obj.name "could" change types between when the narrowing occurred and when the callback was invoke [sic].

This might make sense, but does not seem to explain why [].map((_) => foo.value); compiles. I don't see why foo.value and bar.baz.value in callbacks produce different results, so I opened this issue.

This is indeed a duplicate of #9998, per the mentioned issue template.  The narrowing of foo is retained due to a carve-out in control-flow analysis for direct parameter bindings which are not modified anywhere in the containing function.  That exception doesn't extend to general variables or object properties, though.

I'm not sure if I understand the last sentence. Do you mean supporting bar.baz.value here is technically hard and is not implemented? A guess from the word "curve-out".

Yeah, it's a specific exception made for function parameters because the compiler knows that if the parameter isn't reassigned anywhere inside the function, its value can't possibly change.  As a general rule though, type narrowing isn't retained across function boundaries, and that's a deliberate design decision.  The reasons why and possible alternatives are discussed in #9998; it's a very hard problem to solve.

It's a long thread but I'll read it thoroughly later, thanks!


Configurable ControllerClasses in horizontal forms

In HorizontalFormGroup.php the ControllerClass 'col-lg-' is hardCoded.
protected function getControlClass()
{
    return 'col-lg-' . $this->controlWidth;
}

Would be nice if this is configurable as well as the width itself. For example I want to set "col-sm-6 col-md-4 col-lg-2" for my labels and different settings for the control in this 3 classes again.
I really like the approach of https://github.com/dwightwatson/bootstrap-form where this can be done via laravel configs.

Going to try get this in today.

Did this ever get done? Would really love to just have the option to override the 'lg' at a minimum, even if I don't have the different variations.

@troygilbert Thanks for reminding me, banged out a quick implementation just now using the syntax I mentioned above. It's a breaking change with no support for the old openHorizontal(3, 9) syntax for now, but it would be easy to support both.
Give it a try on this branch if you like and let me know what you think, only had 10 minutes so not a lot of opportunity to think it through too much or test it too thoroughly.
https://github.com/adamwathan/bootforms/tree/aw-custom-breakpoint-columns

Sorry it took me so long… just updated my admin panels to use this, works perfectly. Thanks!

Cool! Officially available in v0.5.0 :)


Using scenes-ml in Grafana Docker image?

Hi there,
Is the only way to use scenes-ml in Grafana's official Docker images, to fork the repo and modify the Dockerfile to add yarn add @grafana/scenes-ml?

Hi @ndoo,
scenes-ml is really designed to be used by developers working on either Grafana or plugin code, so support for it would need to be added into the Grafana frontend code directly. Just installing the npm package wouldn't have any effect - it'll need to be imported and used in the correct places in order to appear in dashboards, explore, etc.
What sort of features are you looking for specifically? With enough detail we might be able to create a feature request or contribution to Grafana which enables scenes-ml in certain pages.

I would like to follow these docs to add a baseline to my existing timeseries graphs:
https://grafana.com/developers/scenes/scenes-ml/baselines-and-forecasts

For that to be possible we would need Grafana's frontend to import and add the ML features (e.g. the SceneBaseliner as in that example, which could be a hard sell 😅 I'll mention it to the dashboards team and see what they think, perhaps we can come up with a nice solution.

Thanks for the reply and support. So the only way to use scenes-ml presently is a standalone non-Dockerized build & install of Grafana?

It's more meant as a developer library for use when writing Grafana plugins, rather than for use directly by end users (end users would interact with it if plugin developers include it in their plugins).

Might it be worth releasing the code sample as an actual plugin? The functionality feels like something that should be baked in to Grafana, to be honest. But it would also be a great and simple plugin.


feat!: support query params for trailingSlash utils

resolves #19
Support ufo.withTrailingSlash('/path?a=1') to be /path?a=1/
Downsides:

Might introduce unwanted behavior when input is not URL (example: /:param? ~> /:param/?)
Adding runtime overhead for cases that do not need this feature

Hello @pi0,
Any chance this could be merged and a new version released?
Thanks!

@pi0 maybe there could be added an extra option which will be false by default?
ufo.withTrailingSlash('/path?a=1', true)
// Result: /path?a=1

ufo.withTrailingSlash('/path?a=1')
// Result: /path?a=1/

No runtime overhead will be and this won't break older nuxt versions.
If you'd like I can do that!
Thanks!

@divine Do you mind making a PR to this branch?

@divine Do you mind making a PR to this branch?

Yup. Did that https://github.com/unjs/ufo/pull/30
I hope it's looking good!
Thanks!


Example code

Good evening,
Where are the code for ai_class and workshop?
I'm very interested in study these applications as student attending a course of robotics engineering.
Thank you very much for consideration and kindness

https://github.com/amymcgovern/pyparrot/tree/master/coursework

Good morning,
I read all documents, but the code related to these task where are located?
In any case, i'm using 4 mambo, do you have some suggestion to realize a swarm of these little drone?
Thank you very much for your consideration and kindness

they just relied on the library itself and wrote their own code, which is not checked in.
Check out https://github.com/amymcgovern/pytello/ also.  It will handle swarms easier also since Tello lets you choose IP addresses and connect all to one router.  I'm developing that library though there are other Tello python libraries out there also.

Thank you very much for your consideration.
I'm checking out your new library.
Do you think that is possible to build a waypoint follower drone with mambo parrot and python library?
Anyway, to satisfy my curiosity, how can you develope this library? Are you stareted from parrot's SDK from github? I want to learn the proper way to approach at this "new  world".
Thank you very much again for you kindness

Yes, you can use the vision system to follow waypoints!


fix: v9.1.2 bootstrap

What this PR does / why we need it

JIRA ID: XX-XX

Notes for your reviewers

do we want to restore the stuff from the old README somewhere?


Evaluation

Hello, I used 1M frames to train model and the result of my evaluation is "score_composed": 42.566437375424,"score_penalty": 0.45978602031298343,"score_route": 89.19403995945298. The route completion is already good but the infraction  score is poor. Is this acceptable? Or is there any way to improve performance?

Hi!
Can you provide which benchmark did you use to get these results? Or could you provide more details?

Hi! Can you provide which benchmark did you use to get these results? Or could you provide more details?

I used town05 long as benchmark.
I have another question about tools to remove hazard frames. Is "blocked_stat.txt" from batch_stat_blocked_data.py equivalent to "haze_stat.txt"?  I directly use it as "haze_stat.txt" but encountered some issues.

Hi!
The two files are equivalent. Sorry for the confusion, I haven't cleaned the related code about the data tools.


Cannot Purchase Ion Cannon Turret

Unable to purchase the ion cannon turret on the Y-Wing
Using the version hosted on netlify
http://hotac-ship-builder.netlify.com/

I can't seem to reproduce this. It works on all my test devices.
What browser are you using?
Are you creating a ship from scratch or editing an existing one?
Do you have a URL link for the broken ship you are having issues with?

It's now working for me on the latest build.


Using typescript shorthand autoinject

You cannot use @autoinject with Endpoint.of('xyz'). We should probably document the alternative method(s) mentioned here: https://gitter.im/SpoonX/Dev?at=57331f6733328697656261bd
I'll get round to this sometime in the next month! I haven't tested it yet either.

@doktordirk You closing another issue reminded me about this. FWIW check out this:
https://github.com/aurelia/dependency-injection/pull/118
https://github.com/aurelia/dependency-injection/pull/111#issuecomment-231828722
Perhaps following suit with an @endpointof('name') decorator would work here? I'm open to suggestions regarding the decorator name.

Closing this for now. If this is still relevant, feel free to reopen the issue.
Note: this is a copy-paste comment to clean up the issues. It's not personal, and I didn't review the issue before posting this. They're all outdated and I need a way to figure out what's still relevant.
Thank you for understanding :)


fix(avm-simulator): await avm bytecode check

#8268  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fcarreiro and the rest of your teammates on  Graphite

Benchmark results
Metrics with a significant change:

protocol_circuit_simulation_time_in_ms (private-kernel-tail-to-public): 765 (-47%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 307 (+368%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,750
1,566
712
768 (+3%)
771 (-1%)

proof_construction_time_sha256_30_ms
11,471
3,084
1,377
1,430
1,468

proof_construction_time_sha256_100_ms
44,075
11,802
5,418
5,659 (+5%)
5,683

proof_construction_time_poseidon_hash_ms
78.0
34.0
34.0
57.0 (-2%)
87.0 (-1%)

proof_construction_time_poseidon_hash_30_ms
1,527
421
201
230 (+1%)
266 (-1%)

proof_construction_time_poseidon_hash_100_ms
5,639
1,512
672
743 (-1%)
749

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
4,356
7,876
14,884

l1_rollup_calldata_gas
50,184
92,988
178,108

l1_rollup_execution_gas
842,844
1,576,544
3,361,720

l2_block_processing_time_in_ms
247 (-5%)
450 (-1%)
829 (+1%)

l2_block_building_time_in_ms
11,480
22,262
44,706

l2_block_rollup_simulation_time_in_ms
11,480
22,262
44,706

l2_block_public_tx_process_time_in_ms
9,767
20,550 (+1%)
42,951 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
3,037
3,915 (-1%)

node_database_size_in_bytes
12,619,856
16,715,856

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
simulation_time_in_ms
witness_generation_time_in_ms
input_size_in_bytes
output_size_in_bytes
proving_time_in_ms

private-kernel-init
93.7 (-4%)
380 (-1%)
21,735
44,860
N/A

private-kernel-inner
180 (+2%)
676 (-1%)
72,544
45,007
N/A

private-kernel-reset-tiny
321 (+4%)
688 (-3%)
65,593
44,846
N/A

private-kernel-tail
169 (+2%)
131 (-2%)
50,644
52,257
N/A

base-parity
5.61
N/A
160
96.0
N/A

root-parity
35.2 (-2%)
N/A
73,948
96.0
N/A

base-rollup
3,118 (-10%)
N/A
189,136
664
N/A

block-root-rollup
41.4 (+1%)
N/A
58,205
2,448
N/A

public-kernel-setup
85.3 (+1%)
N/A
105,085
71,222
N/A

public-kernel-app-logic
97.7 (+1%)
N/A
104,911
71,222
N/A

public-kernel-tail
856
N/A
390,582
16,414
N/A

private-kernel-reset-small
348 (+13%)
N/A
66,341
45,629
N/A

private-kernel-tail-to-public
:warning: 765 (-47%)
588 (-1%)
455,400
1,825
N/A

public-kernel-teardown
84.8 (+1%)
N/A
105,349
71,222
N/A

merge-rollup
20.1 (-2%)
N/A
38,174
664
N/A

undefined
N/A
N/A
N/A
N/A
82,343 (-1%)

Stats on running time collected for app circuits

Function
input_size_in_bytes
output_size_in_bytes
witness_generation_time_in_ms

ContractClassRegisterer:register
1,344
11,731
347

ContractInstanceDeployer:deploy
1,408
11,731
18.1

MultiCallEntrypoint:entrypoint
1,920
11,731
404

FeeJuice:deploy
1,376
11,731
415 (+7%)

SchnorrAccount:constructor
1,312
11,731
73.1 (-1%)

SchnorrAccount:entrypoint
2,304
11,731
396 (-1%)

Token:privately_mint_private_note
1,280
11,731
105 (+5%)

FPC:fee_entrypoint_public
1,344
11,731
26.7 (+6%)

Token:transfer
1,312
11,731
241 (+9%)

Benchmarking:create_note
1,344
11,731
86.4 (-1%)

SchnorrAccount:verify_private_authwit
1,280
11,731
27.6 (-1%)

Token:unshield
1,376
11,731
525

FPC:fee_entrypoint_private
1,376
11,731
704 (-2%)

AVM Simulation
Time to simulate various public functions in the AVM.

Function
time_ms
bytecode_size_in_bytes

FeeJuice:_increase_public_balance
60.0 (+6%)
7,101

FeeJuice:set_portal
8.53 (-29%)
2,128

Token:constructor
82.6
25,285

FPC:constructor
55.8 (+3%)
17,853

FeeJuice:mint_public
39.6 (+3%)
5,415

Token:mint_public
51.0 (+17%)
10,101

Token:assert_minter_and_mint
:warning: 307 (+368%)
6,844

AuthRegistry:set_authorized
38.8 (-16%)
3,969

FPC:prepare_fee
254 (-6%)
6,747

Token:transfer_public
21.0 (-10%)
38,126

FPC:pay_refund
51.2 (-10%)
9,398

Benchmarking:increment_balance
1,218 (+2%)
6,179

Token:_increase_public_balance
42.5 (+2%)
7,705

FPC:pay_refund_with_shielded_rebate
62.8 (+2%)
9,881

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.167 (+1%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
2.21
3.85 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.113 (-2%)
0.109 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
11.2 (-1%)
17.8 (-1%)
30.8 (-3%)
59.6
115 (+1%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.107 (-1%)
0.103 (-1%)
0.100 (-2%)
0.102
0.103 (+1%)

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
14.3
25.7 (-1%)
43.6 (-4%)
82.7
166 (+2%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.109
0.104 (-1%)
0.106 (-3%)
0.102
0.106 (+2%)

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
16.6 (-1%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
132
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.106 (-1%)
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
64,779
668,997

Transaction size based on fee payment method
| Metric |  |
| - |  |

Merge activity

Aug 29, 11:30 AM EDT: @fcarreiro merged this pull request with Graphite.


fix failing tests and typo

fix typo
fix license specifier to match spdx list
remove 'pe' requirement from metadata.json
The 'pe' requirement is no longer supported by the Forge.
remove Ruby 1.x support in Travis CI config

This pull request contains changes I made to make the Travis CI tests pass before I tried adding any features.


Remove rhx_gis header support

Fixes #2338, and removes useless code.
The query used to obtain the rhx_gis parameter (root_rhx_gis function) does not work anymore.
The parameter was only used when obtaining a profile by its id, when not logged in. This query is working fine without the special header, so the whole functionality concerning rhx_gis was removed.
This also fixes this misleading messages logged when trying to obtain a profile anonymously:
JSON Query to : Expecting value: line 1 column 1 (char 0)

Note that this has changed the signature of the graphql_query function. I'm not sure if it's part of the public API, but it's very low level, so I changed it anyway.

Is it just a proof of concept? No
Is the documentation updated (if appropriate)? Yes
Do you consider it ready to be merged or is it a draft? Ready
Can we help you at some point? No, but feel free to make suggestions.

Thanks!


Laravel 8 support

It would be great to bump the composer requirements to support Laravel 8.

Hey! I just published a new tag with L8 compatibility. Thanks!


Fix data scales for transform algorithm

Some should be log-scaled, others should be inverted. Need a table of transformations based on layer name.

Need to implement this algorithm which is a modified version of https://github.com/UrbanAnalyst/uaengine/blob/main/R/ua-plot.R#L233-L275. Rather than binning data like that version does, this one simply trims upper and lower values of data until first largest gap is less than a defined bin size.
trim2 <- function (dat_i, ncols = ncols) {
    dat_i <- sort (dat_i)
    bin_width <- diff (range (dat_i)) / ncols

    # Trim lower values:
    delta <- diff (dat_i)
    i <- which (delta > 0) [1]
    while (delta [i] > bin_width) {
        dat_i [1:i] <- dat_i [i + 1]
        delta [i] <- 0
        i <- which (delta > 0) [1]
    }

    # Then trim upper values:
    dat_i <- rev (dat_i)
    delta <- diff (dat_i)
    i <- which (delta < 0) [1]
    while ((-delta [i]) > bin_width) {
        dat_i [1:i] <- dat_i [i + 1]
        delta [i] <- 0
        i <- which (delta < 0) [1]
    }

    return (dat_i)
}

This code then compares the results of the two algorithms, showing that this new version is plenty good enough to compress data ranges to reliable scales:
data_dir <- "/<path>/<to>/UrbanAnalyst/public/data/"
cities <- list.files (data_dir)
ranges <- data.frame (t (vapply (cities, function (ci) {
    path <- file.path (data_dir, ci, "data.json")
    dat <- sf::st_read (path, quiet = TRUE)
    this_var <- "bike_index"
    dat_i <- as.numeric (dat [[this_var]])
    dat_i <- dat_i [which (!is.na (dat_i))]
    ncols <- as.integer (10^floor (log10 (length (dat_i))))
    dat_tr <- uaengine:::trim_var_ranges (dat_i, ncols = ncols)
    dat_tr2 <- trim2 (dat_i, ncols = ncols)
    c (range (dat_tr), range (dat_tr2))
}, numeric (4L))))
names (ranges) <- c ("min_trim", "max_trim", "min_trim2", "max_trim2")

library (patchwork)
library (ggplot2)
p1 <- ggplot (ranges, aes (x = min_trim, y = min_trim2)) +
    geom_point (colour = "red") +
    geom_smooth (method = "lm", formula = y ~ x, se = FALSE)
p2 <- ggplot (ranges, aes (x = max_trim, y = max_trim2)) +
    geom_point (colour = "red") +
    geom_smooth (method = "lm", formula = y ~ x, se = FALSE)
p1 + p2

Created on 2024-02-15 with reprex v2.1.0
Values from this 2nd version of the trim algorithm are placed equally either side of corresponding values from the first, and there is very strong linear correspondence for both lower and upper ranges. Now just have to implement this in javascript and use that to compress the scales of data generated by the transform algorithm.

Simplified version for direct js implementation:
trim2 <- function (dat_i, ncols = ncols) {
    dat_i <- sort (dat_i)
    bin_width <- diff (range (dat_i)) / ncols

    # Trim lower values:
    i <- 1
    while ((dat_i [i + 1] - dat_i [i]) > bin_width &&
           i < (length (dat_i) / 2)) {
        i <- i + 1
    }
    dat_i [1:i] <- dat_i [i + 1]

    # Then trim upper values:
    i <- length (dat_i)
    while ((dat_i [i] - dat_i [i - 1]) > bin_width &&
           i > (length (dat_i) / 2)) {
        i <- i - 1
    }
    dat_i [i:length (dat_i)] <- dat_i [i - 1]

    return (dat_i)
}

Those commits fix all of the scales; now just need to update the legend to match.


addEventHandler implementation appears to be imcomplete

Here are some of the things I'm seeing that cause me to believe this command is not fully implemented.  Please let me know if I'm missing something.

I'm seeing a return value from __gpp('addEventHandler') of {param: undefined, next: undefined, callback: ƒ}, which does not match the IAB spec.
Only the stub code includes an eventName property in the response
I am unable to trigger an event to fire.  After the CMP has loaded, I tried calling cmpApi.setGppString() then cmpApi.fireUpdate().

I believe this should now be working in 3.0.7. I also removed the cmpapi update method and replaced it with a few methods that reflect the defined event types from the spec. I also updated the stub so that the cmpapi could retrieve the stub queued  event listeners. Let me know.

Looks much better.  I'm not clear why CMPs would need to call the cmpApi.fireEvent() to trigger another event to callers of the addEventListener command.  For example, shouldn't calling cmpApi.setCmpStatus() be sufficient to trigger the event?  In any case, I'm closing this issue because you have addressed the issues I raised.
FYI, there are additional issues with the addEventListener command, and frankly all others.  It is due to the stub code (both from IAB docs and this implementation) making the assumption that all commands support only callbacks.  Most commands do not support callbacks, only directly returning with some value.  The stub does not pass returned values in postMessage calls to iframes.  There is an issue and PR related to this on the documentation repo.  I am working with Jan Winkler on this.

I'm open to suggestion on the fire methods. The "cmpStatus", "cmpDisplayStatus", and "error" events don't currently require a separate fireEvent call. The only one that does is "sectionChange". I implemented it that way so that the event handler could receive one event when all of the fields are set rather than one each time the "setFieldValue" method is called. The generic fireEvent method was actually put in there to handle the generic event from the spec "[API.prefix] or [API-prefix].[Eventname]".

Oh ok, I didn't realize the cmpStatus event doesn't require a separate fireEvent call.  Thanks.


[Trivial] improve documentation of popBackN

note that the popBackN doc is shared with popFrontN. This change moves the description of popBackN up, such that it is closer to where the reader will want to find it. Also adds more explicit mention of popFrontN, such that it is clear which one of the two is being described.
offtopic: About the O(.) part, I think it should be O(O(length) + O(slice) and O(n * O(popFront))?

offtopic: About the O(.) part, I think it should be O(O(length) + O(slice) and O(n * O(popFront))?

The contract states that implementations of the range interface should implement all range primitives in O(1) time, AFAIK.


vimPlugins: Refactor coc-* plugins and fix coc-go

Motivation for this change
I had an issue getting coc-go to work.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review 1

25 packages built:
- vimPlugins.Tagbar (vimPlugins.tagbar)
- vimPlugins.clang_complete
- vimPlugins.coc-explorer
- vimPlugins.coc-go
- vimPlugins.coc-markdownlint
- vimPlugins.completion-nvim
- vimPlugins.csv (vimPlugins.csv-vim)
- vimPlugins.denite (vimPlugins.denite-nvim)
- vimPlugins.deol-nvim
- vimPlugins.nvim-lspconfig
- vimPlugins.nvim-treesitter
- vimPlugins.polyglot (vimPlugins.vim-polyglot)
- vimPlugins.vim-clap
- vimPlugins.vim-dirvish
- vimPlugins.vim-floaterm
- vimPlugins.vim-flutter
- vimPlugins.vim-html-template-literals
- vimPlugins.vim-lsp
- vimPlugins.vim-monokai
- vimPlugins.vim-sneak
- vimPlugins.vim-test
- vimPlugins.vim-vsnip
- vimPlugins.vimspector
- vimPlugins.vimtex
- vimPlugins.zenburn

I realized this accomplishes the same thing as #82723, but also does the refactor and removes them from vim-plugin-names.

Yup I can do that.

@jbaum98 Right now CoC plugins can be accessed via pkgs.vimPlugins.coc-*. Would it remain the same after these changes or how would it be?

Yes, they'll still be available in vimPlugins. What this does is removes the non-compiled versions, since they were overriden anyway, and changes the way they are added to vimPlugins in overrides.nix to reduce duplication.

@gvolpe Yea, I re-did my home-manager off this PR and it seems that the plugin names have stayed "the same"

Wait! I wanted to inherit meta like timokau suggested.

that shouldn't cause any rebuilds, :) just open a PR! xD

sorry, I'm trying to do a "last call" of merges before branchoff


flutter_tools appears to bail out silently if devtools fails to activate

See https://github.com/flutter/flutter/blob/3490ae82d1be88668ebb16bc84db971dc49eb30b/packages/flutter_tools/lib/src/devtools_launcher.dart#L75-L77
We are probably in a good position here to print a meaningful error message, like "check your internet connection" or "check the output of pub global activate devtools -v" or something like that) here, rather than just silently bailing.

Is this sort of user message actionable? We should definitely add a trace log for our own sanity

If we or pub can tell them they can't reach the server for example it might be.  They may have to connect to the internet or tell pub to use the Chinese mirror or something.

I'll see what can be done when fixing https://github.com/flutter/flutter/issues/75366

The situation I'm concerned about is if a user is in a situation where they can't reach pub and know it, then I'd like to avoid spamming with an error every time they run.

If a user routinely can't reach pub won't they have other problems?
Is this something where we'd be able to detect an --offline flag?

Once a users dependencies are resolved they do not need ongoing access to pub. I don't believe the offline flag is wired up to this right now (a http HEAD request is used), but we should definitely add that

It turns out we're already reporting why we failed if we fail to update DevTools, so there's nothing to add here.
When we're offline we don't bother doing any of this. We determine if we're offline by doing a HEAD request on pub's server before all of this.


add escapeNonASCII option

In playground https://mothereff.in/css-escapes ♥ -> ♥
Using cssesc ♥ -> \2665
I can send a PR, thanks for library

/cc @mathiasbynens friendly ping

/cc @mathiasbynens friendly ping again


Can I use for Pipedrive ?

Hi, Thank you so much for this tool!!
I want to know if this tool works with any system that have API. I am trying to configurate to Call from an URL only, and is from pipedrive. I have the link and I only want to get the information and create a New File.
Thank you so much for this tool, and let me know if I can use for this because always I have errors.
Greetings !
Luis Daniel Vargas
<EMAIL_ADDRESS>

Looking at their API here, https://developers.pipedrive.com/v1, VBA-Web should be able to work with Pipedrive, but I haven't tried it. Feel free to reopen this issue with specific error information and I'll be happy to take a look at it.

Thank you so much.
I am working in this and now I can get all the messages.
Thank you.
Luis Daniel Vargas
www.ldvh.com.ve
2016-03-23 14:31 GMT-05:00 Tim Hall<EMAIL_ADDRESS>
Closed #217 https://github.com/VBA-tools/VBA-Web/issues/217.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/VBA-tools/VBA-Web/issues/217#event-600806330


Abnormal Termination

Hello,
When using mtapi in the backtest on MT4,
I get this error, Abnormal Termination.
I tried uninstall then reinstall, but did not help.
after pushing start in Back test mode, the graph is standing still.
It was working all of the day, but then it stopped working.
I don't know if this is helpful, but maybe you have a workaround, or an idea where to investigate.
Thanks
KG

More Info
After bush start in the Mt4 BackTest
In the "Journal" Waiting on remote Client.
I the visual studio 2015 I get this error
An exception of type 'MtApi.MtExecutionException' occurred in MtApi.dll but was not handled in user code
I stop the firewall to test if that is the problem, but that did not help.
this is the exception message "Response from MetaTrader is null"
Mt4"Journal" saying "waiting on remote client..."
and yes I am sure that I am using the correct Port :-)

It seems that the problem only exist with Backtesting, but not on life Data Chart.

Ok....
It's working now.
in the visual studio "Add reference", Newtonsoft.Json and MtApi, was added again.
now when client connect, the backtest begins to run.
Thanks for a great project :-)

I am running into this strange problem, I am running VS2015 in debug mode.
but the application runs for 30 sec, then just"puff" terminates, no exception, no nothing.
as if I had an "application.close" command.
have you experienced this?

sorry guys, my mistake, their was "End" in the code.

Okay. I am closing this issue.

Thank you


Imrpove: File structure

Improved the file structure of React App. I'll create more PR for the rest of the checks soon.
Issue: https://github.com/Buddhad/Contribution_Website/issues/58
Thank you!

There are some conflicts in your code resolve the conflicts then it's ready to merge.

Thanks. Can you please close this PR? I'll create another one from new branch.


Actions Docs: Using workflows from other private repositories

Why:

Closes #3626
What's being changed:

Check off the following:

[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Changes reviewed and verified in heroku
https://docs-3627--patch-1.herokuapp.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-action-inside-a-different-private-repository-as-the-workflow

@bradynpoulsen Thanks so much for opening a PR! I'll get this triaged for review ⚡

I like the adjustments that were made. Thanks for following up!


Common Controls Policy for Log Timestamps

Based on a public comment that came in, a new policy needs to be added to require the timestamps for log timestamps to be displayed in UTC.

@LaurenBassett FYI to let you know that a new policy is coming for Common Controls.

Placed this update on hold until the other Common Controls PR is handled.

Policy was added and PR was created.

Reached out to Google to see if there is a way to change the timezone globally for all users.

After discussing with Google, unable to change the timezone for the logs only. Therefore closing this out as this is not configurable globally.


Throw SQLServerException when column value for TVP is invalid.

Wrapping error message java.lang.IllegalArgumentException: contains illegal character for hexBinary around a SQLServerException.
It is actually a try-catch block, the formatting after adding try-catch causes lots of diffs.

Codecov Report

Merging #282 into dev will decrease coverage by 0.01%.
The diff coverage is 19.04%.

@@             Coverage Diff              @@
##                dev     #282      +/-   ##
============================================
- Coverage     37.23%   37.22%   -0.02%
+ Complexity     1652     1650       -2
============================================
  Files           102      102
  Lines         23660    23662       +2
  Branches       3873     3873
============================================
- Hits           8810     8807       -3
- Misses        13250    13259       +9
+ Partials       1600     1596       -4

Flag
Coverage Δ
Complexity Δ

#JDBC41
37.12% <19.04%> (ø)
1644 <0> (+2)
:arrow_up:

#JDBC42
36.92% <19.04%> (-0.15%)
1636 <0> (-11)

Impacted Files
Coverage Δ
Complexity Δ

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
46.62% <19.04%> (-0.04%)
0 <0> (ø)

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
27.2% <0%> (-0.42%)
186% <0%> (-4%)

...oft/sqlserver/jdbc/SQLServerPreparedStatement.java
33.45% <0%> (-0.18%)
89% <0%> (-1%)

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
37.03% <0%> (+0.06%)
0% <0%> (ø)
:arrow_down:

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
47.11% <0%> (+0.14%)
197% <0%> (ø)
:arrow_down:

...n/java/com/microsoft/sqlserver/jdbc/DataTypes.java
70.03% <0%> (+0.16%)
5% <0%> (+1%)
:arrow_up:

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
46.33% <0%> (+1.18%)
62% <0%> (+2%)
:arrow_up:

Continue to review full report at Codecov.

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


[otp_ctrl] rma_token_valid reflects secret0 partition?

Hey Michael,
For the recently added lc_data_o valid signals, I have a question for rma_token_valid:
In otp_ctrl.sv here: https://github.com/lowRISC/opentitan/blob/master/hw/ip/otp_ctrl/rtl/otp_ctrl.sv#L1182
  assign rma_token_valid = (part_digest[Secret0Idx] != '0) ? lc_ctrl_pkg::On : lc_ctrl_pkg::Off;
But from the otp_ctrl_reg_pkg: https://github.com/lowRISC/opentitan/blob/master/hw/ip/otp_ctrl/rtl/otp_ctrl_reg_pkg.sv#L88
RmaTokenOffset is in secret2 partition.
Two questions:
1). Is this a typo?
2). If rma_token_valid and secrets_valid are both reflecting Secret2 partition's status, can we combine them rather than output two signals?
Thanks,
Cindy

Thanks @cindychip, good catch!

This is a typo - it should be Secret2Idx.
Initially I thought about doing it that way, but I then added separate valid signals to make this more generic. I.e., if we ever have to move the RMA token into a different partition than the root secrets, we could still do that without having to change the interface signals. Does that make sense?


Windows scripts not available

When installed in Windows, the scripts are not available from the command line.

If I call the pip-review script directly the first character is missing:
c:\opt\Python34>python Scripts\pip-review
)artopy==0.12.0rc1 is available (you have 0.11.x
)ython==0.22 is available (you have 0.20.2

(the packages are cartopy and cython)

For the new standalone pip-review, this (i.e. the unavailability of the script under Windows) was fixed in version 0.5. If this is still an issue with the current pip-compile and pip-sync, I suggest having a look at https://github.com/jgonggrijp/pip-review/commit/a08ee67c7e5c670267f90f7b992ede2107a9cde8 for a clean way to tackle this. See also https://github.com/jgonggrijp/pip-review/issues/12.
As for the unrelated issue reported by @jmozmoz, this is a duplicate of https://github.com/nvie/pip-tools/issues/182, https://github.com/jgonggrijp/pip-review/issues/14 and https://github.com/jgonggrijp/pip-review/issues/17. It was fixed in https://github.com/jgonggrijp/pip-review/pull/16. I plan to publish a new version to PyPI that includes the fix soon.

This issue is really old, will close. If you feel that the issue is still present in the latest version, don't hesitate to reopen.

Thanks for all your work on this! I can confirm that they installed for me on Windows without issues. I'll have to read up on them and work to add them into my workflow.


adding additional  plugins/agents?

Great Project !!!
Is it possible to extend anything-llm by adding additional  plugins/agents?
If it is possible can you point me to the documentation for this or to where in the code to start ?
Thanks

If you have an instance running you can visit the api/docs page and you'll be able to see all available endpoints where the world is your oyster!
We are scoping internally how to add a more "simple" plugin extension system, but for right now, that is what we have :)


Perform policy settings validation

Policies can expose a validate_settings hook that can be used to validate the policy settings provided by the user. We should leverage that to validate policies.
Acceptance criteria

Attempt to load a policy with an invalid setting causes the policy-server to exit with an error
The check is done at boot time

This has been done, we can close it


Buffing the LEG to UV for the LEG Laser nerf

As has been discussed in #magic-dev in the face of chochom's laser nuke on the LEG, we need to update this value to have a max at either UV or UHV, I have set it here for UV but I'm open to suggestions

sister pr to the LEG laser nerf: https://github.com/GTNewHorizons/GoodGenerator/pull/168

Been open for 3 days. May as well approve. Plenty of time to discuss and disagree


Failing unit test re. missing PERIPHERAL_ISO_SUPPORT KConfig selection

Compilation of tests/bluetooth/init/test_ctlr_peripheral_iso is failing after modification to ull_peripheral_iso.c.
In the output (https://github.com/zephyrproject-rtos/zephyr/actions/runs/3368517840/jobs/5587194250) is seen:
warning: BT_ISO_PERIPHERAL (defined at subsys/bluetooth/Kconfig.iso:19) was assigned the value 'y'
but got the value 'n'. Check these unsatisfied dependencies: (!BT_CTLR ||
BT_CTLR_PERIPHERAL_ISO_SUPPORT) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_ISO_PERIPHERAL and/or look up
BT_ISO_PERIPHERAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
This is similar to issues re. BSIM tests noticed and handled originally in PR:
https://github.com/zephyrproject-rtos/zephyr/pull/46583
I confirmed (by temp revert of my change in ull_peripheral_iso.c) that this issue has been present in the above mentioned test since this PR was introduced, but was not noticed, because build did not fail, until change introduced by https://github.com/zephyrproject-rtos/zephyr/pull/51807.

I'm not sure how is the correct way to resolve this, ie hot to correctly add the correct KConf selection to the build of this test

I guess you can apply the same solution as we did for the BSIM tests, right?
Alternatively, since we are adding more testing for this, perhaps it's time we start thinking about being able to set BT_CTLR_PERIPHERAL_ISO_SUPPORT=y as an experimental feature in some way?

I guess you can apply the same solution as we did for the BSIM tests, right?
Well yeah, the thing is just that I don't know how to ;-)

Turned out the actual failure was due to missing macros, and not resolved by resolving the KConfig, but rather by adding macros, that then 'magically' appeared by a different PR;-)
I believe this 'issue' is still present, however it has no impact on unit test


Add better checking for reserved subdomains in data import tools

See https://github.com/zulip/zulip/issues/9166#issuecomment-733897308 for background.
We should change the behavior for slack/etc. data import tools to error if the requested subdomain is in use or reserved, but provide a --allow-reserved-subdomain flag to override that setting when the server admin wants to use a reserved subdomain.
git grep check_subdomain_available should be helpful; we'll want to replace from_management_command with the option described above.
One bit of relevant context is that self-hosted installations very often want to use reserved subdomains; so we should make the error message for reserved subdomains in the command-line system raise CommandError() with an error message that mentions passing --allow-reserved-subdomain.

@timabbott can I work on this

@zulipbot claim

@timabbott Raising CommandError instead of ValidationError in  check_subdomain_available is creating error in endpoints like accounts/register/  . This is because the views and management commands use the same check_subdomain_available .I think a way to solve this is to have seperate  check_subdomain_available function for form validation and management commands . Please tell if I am correct.

@tushar912 yeah, we only want to raise CommandError in a code path that's called only from management commands.  We may just need to catch the ValidationError and reraise CommandError in some place.


Add button to cancel quoting

With the new quotes, once you click the quote button (or swipe to quote on mobile), there's no way to delete the quote. This forces the user to quote some message.

Most of the work has been done by @KeyKoder, but there are still some issues

The only thing left is to be able to remove quotes when editing a message


multi-language

We have added a switchover between Chinese and English versions to version 1.7, can we consider adding it in the next version?

I think it would be great to add i18n to maputnik.
The following is probably the right way to do it:
https://react.i18next.com/
I would recommend opening a PR.


Build Failed - Process 'msbuild.exe' exited with code '1'.

I have created Build Agent and Build Definition with GIT repository. When I try to Build got the following error. Can someone help me in resolving it. Thanks
Error Log -
2017-10-19T20:30:34.1052032Z ##[section]Starting: Build solution PIviewer.API.Web
2017-10-19T20:30:34.1082040Z ==============================================================================
2017-10-19T20:30:34.1082040Z Task         : Visual Studio Build
2017-10-19T20:30:34.1082040Z Description  : Build with MSBuild and set the Visual Studio version property
2017-10-19T20:30:34.1082040Z Version      : 1.0.49
2017-10-19T20:30:34.1082040Z Author       : Microsoft Corporation
2017-10-19T20:30:34.1082040Z Help         : More Information
2017-10-19T20:30:34.1082040Z ==============================================================================
2017-10-19T20:30:35.8943050Z ##[warning]Visual Studio version '15.0' not found. Looking for the latest version.
2017-10-19T20:30:36.2133233Z ##[command]"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "C:\Installs\vsts-agent-win7-x64-2.112.0_work\1\s\PIviewer.API.Web" /nologo /nr:false /dl:CentralLogger,"C:\Installs\vsts-agent-win7-x64-2.112.0_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.0.49\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=96b9f419-86af-4780-8d16-de33167a2a67|SolutionDir=C:\Installs\vsts-agent-win7-x64-2.112.0_work\1\s"*ForwardingLogger,"C:\Installs\vsts-agent-win7-x64-2.112.0_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.0.49\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"  /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="TFS_9891634d-e71d-4dd8-a6c6-5ee8c0e8dfb7_build_17_1530"
2017-10-19T20:30:36.2653255Z MSBUILD : error MSB1009: Project file does not exist.
2017-10-19T20:30:36.2653255Z Switch: C:\Installs\vsts-agent-win7-x64-2.112.0_work\1\s\PIviewer.API.Web
2017-10-19T20:30:36.3723306Z ##[error]Process 'msbuild.exe' exited with code '1'.
2017-10-19T20:30:36.4213328Z ##[section]Finishing: Build solution PIviewer.API.Web

I saw a similar issue answered on StackOverflow. The solution in that case was to upgrade to TFS 2017 Update 2.

#[warning]Visual Studio version '15.0' not found
What version of VS are you using on your dev desktop?
CI and the task did it's job successfully.  msbuild failed building your solution and it correctly reported it.

Selecting the Latest version in the Build Definition resolved this issue. Thanks all for contributing.


Report problem with loading model in OpenSim Creator

Hi @imihasan ,
I was trying to load your model with OpenSim Creator, but I have an error popping up:

It is probably related to the position in which the model is loaded by default, but looking at it in the OpenSim GUI I do not see anything strange happening for the left serratus anterior that is in the error. I am not sure what it is, I just wanted to report it as it could also be caused by something that will affect the RMR solver behaviour.
Did you ever see this before?

Hi @itbellix;
That's because when the muscles of the left side were added, the ignore_tendon_compliance was not activated. To fix that, kindly activate that box from the properties window in Opensim GUI for the LSerrausAnterior_I and LSerrausAnterior_S muscles and save the model. You should be able then to open it in Opensim Creator.  If you leave the tendons of those muscles to be compliant, equilibrium cannot be computed given the current state. I believe that affects the behavior of the RMR because handling a compliant tendon would probably take more computational time. I will the rmr after modifying this and see if the computational performance improves.
Let me know if it works and you can load the model now to OpenSim Creator.

@itbellix I quickly checked and it sounds that this doesn't affect the solver speed as ignore_tendon_compliance is already set to true for all muscles in RMR_analysis.m


Relationship stacks are broken

Description
The white background seems to be missing when opening the stack on a relationship fieldtype.

Steps to reproduce

Click on an item on a Has Many / Belongs To field

Environment
n/a

Looks like this was something to do with my local version of Runway because I'm switching between Statamic 3 / 4 & the Tailwind versions changed.


[pixivFANBOX] API changes now prevent multi-page downloads (invalid URL concatenation)

Prerequisites

[x] Did you read FAQ section?
[x] Did you test with the latest releases or commit ?

Description
API changes to pixivFANBOX now seem to prevent multi-page download.
PixivUtil2 attempts to perform a clearly incorrect concatenation after page 1.
The issue might be in PixivBrowserFactory.py, line 587 (else branch in fanboxGetPostsFromArtist):
if next_url is None or next_url == "":
url = "https://www.pixiv.net/ajax/fanbox/creator?userId={0}".format(artist_id)
else:
url = "https://www.pixiv.net" + next_url
Dump
Processing 3318706, page 2
Getting posts from https://www.pixiv.nethttps://fanbox.pixiv.net/api/post.listCreator?userId=3318706&maxPublishedDatetime=2018-12-23%2022%3A15%3A41&maxId=235672&limit=10
1 2 3 4
1 2 3 4
Steps to Reproduce

f1 or f2
Set Max Page to 2 or higher
As soon as page 2 is reached, the script will attempt to process an URL it cannot get to and try to connect to it until config.ini parameters tell it to give up or they force-abort the script

Expected behavior: Get content from all posts
Actual behavior: Get content from page 1 then get stuck in a loop trying to connect to an invalid URL
Versions
v20190526 and any older version that supports pixivFANBOX multi-page download using this method
You can get this information from executing PixivUtil2.py --help.

looks like the given next url is wrong.

Trying to open https://fanbox.pixiv.net/api/post.listCreator?userId=3318706&maxPublishedDatetime=2018-12-23 22%3A15%3A41&maxId=235672&limit=10 will return general error.

try https://github.com/Nandaka/PixivUtil2/releases/tag/v20190528

Thanks for the quick reply and fix Nandaka. The replace workaround apparently did the trick.
This no longer seems to perform a sanity check on Max Page being the last page though so beware! :)

looks like it return the same next url, so bugs on server side?
Can you open the fanbox page and see it does load the next page? I don't have a fanbox account to check.

bandicam 2019-05-29 00-36-03-309.zip
I met a problem...
Also download the same author
I can't load the movie before.
Now it will be infinite loops...
After 1:35 seconds in the movie, the number of pages has gone to 100 or more. It has not ended yet.

I tested other authors and had the same problem.
Some will only download 3 images and will enter the infinite loop...

@Nandaka Sure, checking right now. I should have linked to a public account in the dump to make things easier for you.
Unfortunately, it doesn't look like it's a server-side issue. Hopefully this network trace will help you.
Here are the XML HTTP requests for uid 14694404 (5 pages, 54 posts). It loads fine in Firefox.
GET XHR https://www.pixiv.net/ajax/fanbox/creator?userId=14694404 [HTTP/2.0 200 OK 562ms]
GET XHR https://fanbox.pixiv.net/api/post.listCreator?userId=14694404&maxPublishedDatetime=2019-03-13%2003%3A13%3A17&maxId=315820&limit=10 [HTTP/2.0 200 OK 297ms]
GET XHR https://fanbox.pixiv.net/api/post.listCreator?userId=14694404&maxPublishedDatetime=2019-02-05%2004%3A33%3A21&maxId=279033&limit=10 [HTTP/2.0 200 OK 297ms]
GET XHR https://fanbox.pixiv.net/api/post.listCreator?userId=14694404&maxPublishedDatetime=2018-11-13%2016%3A01%3A23&maxId=200278&limit=10 [HTTP/2.0 200 OK 297ms]
GET XHR https://fanbox.pixiv.net/api/post.listCreator?userId=14694404&maxPublishedDatetime=2018-09-13%2003%3A36%3A09&maxId=150238&limit=10 [HTTP/2.0 200 OK 297ms]
GET XHR https://fanbox.pixiv.net/api/post.listCreator?userId=14694404&maxPublishedDatetime=2018-05-16%2007%3A57%3A07&maxId=46379&limit=10 [HTTP/2.0 200 OK 298ms]
Maybe something's off with the maxPublishedDatetime and maxId parameters when attempting to replace https://fanbox.pixiv.net/api/post.listCreator with /ajax/fanbox/creator (to form a proper URL with https://www.pixiv.net if I got that right) and the script keeps using the same ones instead of fetching the next ones...?

bandicam 2019-05-29 01-23-19-546.zip
*Video is a comparison between 20190526 and 20190528
Use back 20190526 version will encounter
1234
1234
After that the program is automatically shut down directly.
Is it a question of fanbox or is my personal question??

if I got that right) and the script keeps using the same ones instead of fetching the next ones...?

No, the nextUrl node give the same url from https://www.pixiv.net/ajax/fanbox/creator from server and https://fanbox.pixiv.net/api/post.listCreator always give error in my browser.

Oh right. I'm trying to figure out what exactly changed since the authentication process doesn't seem to be different (if it were the script wouldn't get anything at all).
It would be very helpful if someone could test it on a public fanbox page with more than 20 posts to try and get it working after page 2.

Try https://github.com/Nandaka/PixivUtil2/releases/tag/v20190529

looks like need to customize the request header, should be working on that version, at least tested with my account for public post.

That was it. I have tried both f1 and f2. Everything is now working as intended again.
Thanks a bunch for your hard work Nandaka!


Changed QubitOperator and FermionOperator to inherit from SymbolicOperator

This PR includes the changes to QubitOperator and FermionOperator, but does not include the SymbolicOperator class.

Travis is failing. It seems that the PR that was merged with this trace norm business is causing problems. I think that perhaps the automatic merging is to blame. See if you can fix this so tests pass. Obviously, in the next PR that I just opened, I move part of this over into SymbolicOperator.

I think it just unhappy that certain import statements were removed.

I tried to fix it myself. Let's see how it goes...


sterol reductase

I have 4 sterol reductase 2 of which I dont know the
specificity of.
Could we have a grouping term for
0000251,2,3,4
and 0000150
'sterol reductase'?
Reported by: ValWood
Original Ticket: "geneontology/ontology-requests/1699":https://sourceforge.net/p/geneontology/ontology-requests/1699

thanks www.movied.org


chore: add HTTP-Referer and X-Title headers for Open WebUI

Pull Request Checklist

[x] Target branch: Pull requests should target the dev branch.
[x] Description: Briefly describe the changes in this pull request.
[x] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
[x] Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
[x] Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
[x] Testing: Have you written and run sufficient tests for the changes?

Description
Added X-Title and HTTP-Referer in the header to capture the information in the providers' dashboards such as Openrouter. Right now, this is how it appears:

Changelog Entry
Added

[List any new features, functionalities, or additions]

Fixed

[List any fixes, corrections, or bug fixes]

Changed

Added X-Title and HTTP-Referer in the OpenAI request header

Removed

[List any removed features, files, or deprecated functionalities]

Security

[List any new or updated security-related changes, including vulnerability fixes]

Breaking Changes

[List any breaking changes affecting compatibility or functionality]

Additional Information

[Insert any additional context, notes, or explanations for the changes]

[Reference any related issues, commits, or other relevant information]

Thanks for the PR! I'm marking this as a draft as this might break compatibility with some OpenAI compatible API providers. More testing is wanted here. Keep us updated!


Play and Pause Controls

Adds the ability to use a socket to mpv to control playback. Such as pause and play. Fixes location of xwinwrap as being referenced in users local bin directory.
Screenshot

This would allow for keyboard shortcuts or other scripts to pause the video playback. For example if the desktop is no longer in view or has lost focus it would be possible to reduce CPU and increase battery by running:
video-wallpaper.sh --pause

Hey there,
thanks for your work - I think the ability to pause playback (in the best of cases automagically when the desktop is hidden) is a neat feature to add!
I've got several questions about the implementation though:

On top of adding the functionality to video-wallpaper.sh you've added a pause/play button + functionality to the UI file and python script, which I don't feel is really necessary as the user gains little to no benefit over just stopping playback; it just blows up the UI in my view.
You've added a variable called self.binaryDir to video-wallpaper.py, claiming that this is now the place that holds the xwinwrap binary. The variable, however, is redundant, as installer.sh already places everything into that folder (including xwinwrap); video-wallpaper.py in turn reads this directory from the path of the running script and stores it in the variable self.scriptDir.

Feel free to correct me if I misunderstood your changes. I'd be happy to include your changes into my fork once the above two points have been settled.

Hey excellent point about the UI. To be fair I would have liked to add a toggle button instead to keep the clutter down, but figured the two was a good enough addition. They aren't needed in the UI as you say as I can see that really being used to stop and change and start a new video. Although I think useful as a backup to forgetting a keybinding. Could I bind --pause to a keyboard shortcut? Yeah, do I trust myself to remember what it was when I get a zoom call and have to quickly pause the background?
The xwinwrap missing dependency was causing some issues at least for me on Linux Mint, so that seemed to be more robust pointing directly at the user bin and is a bit cleaner to read source code wise. Again though that's not a necessary addition to carry the play/pause.
Thanks for considering the --pause --play switches.  It certainly feels nicer to pause and keep the scene in place; since when I stop the video I drop back to a jpg background and opens the possibility of other scripts say a battery monitor being able to swoop in and pause automatically.