Handling i18n, hidding translation table in results

Consider the following schema, I would like to implement i18n.
class ProductTable extends BaseTable {
  readonly table = 'product';
  columns = this.setColumns((t) => ({
    id: t.uuid().primaryKey(),
    stock: t.integer().min(0).default(0),
    price: t.integer().min(0).default(0),
  }));

  relations = {
    productTranslations: this.hasMany(() => ProductTranslationTable, {
      primaryKey: 'id',
      foreignKey: 'parentModelId',
    }),
  };
}

class ProductTranslationTable extends BaseTable {
  readonly table = "productTranslation";
  columns = this.setColumns((t) => ({
    parentModelId: t.uuid().foreignKey("product", "id", {
      onDelete: "CASCADE",
    }),
    languageCode: t.enum("LangCode", ["FR", "EN", "JP"]),
    name: t.varchar(255),
    description: t.varchar(255),
    ...t.primaryKey(["parentModelId", "languageCode"]),
  }));

  relations = {
    product: this.belongsTo(() => ProductTable, {
      primaryKey: "id",
      foreignKey: "parentModelId",
    }),
  };
}

I would like to obtain the following result and hide the join to the ProductTranslationTable :
  {
    id: "9d3fe83a-fe33-4f59-a06f-b32bd2573d26",
    stock: 10,
    price: 749,
    name: "Table à manger industrielle en bois d'acacia et métal noir",
    description: "

Retrouvez l'authenticité du bois à travers la table à manger indus en acacia et métal noir PALISSANDRE !

Sa particularité ? Un plateau à l'état brut qui fait la part belle aux aspérités du bois.

Fixée sur deux pieds modernes en métal noir, cette table à manger 8/10 personnes conjugue les styles avec goût.

Son plateau en acacia lui assure une bonne robustesse.

Nouvelle mission : dénichez les chaises parfaites qui l'accompagneront !

"
  },

I found a way to do it :
  const productsFr = await db.product
    .join("productTranslations")
    .select("id", "stock", "price", "productTranslations.*")
    .where({ "productTranslations.languageCode": "FR" })
    .transform((r) =>
      r.map((x) => {
        const { productTranslations, ...rest } = x;
        return {
          ...rest,
          name: x.productTranslations.name,
          description: x.productTranslations.description,
        };
      }),
    );

Is there a better way to do it? more scalable ? using the repository pattern ? Thanks for future advices.

One way is to simply call all the fields that I need must I must specify them, it is not very scalable :
  const productsFR = await db.product
    .join("productTranslations")
    .select(
      "id",
      "stock",
      "price",
      "productTranslations.name",
      "productTranslations.description",
    )
    .where({ "productTranslations.languageCode": "FR" });

Sorry for the late reply, this seemed like a tough question so I put it off while looking at other issues. But actually, it's how it's designed and how it works, and I don't see what can be improved here.
When selecting a joined table with a star, the star means to join select columns, and I think it's intuitive that the joined table is nested. And this allows to avoid possible conflicts, if productTranslations also have id, it will be nested.
.select("id", "stock", "price", "productTranslations.*")

You have used the transform to change the shape. In the second message, you're listing the columns explicitly so the resulting records are flat.
I think that it's good as it is, and adding some smart automatic column destructuring while technically is possible, but will only harm readability.
  const productsFR = await db.product
    .join("productTranslations")
    .select(
      "id",
      "stock",
      "price",
      "productTranslations.name",
      "productTranslations.description",
    )
    .where({ "productTranslations.languageCode": "FR" });

When I see this code I can instantly tell what columns are selected from which tables, and what the result will be.
Let's imagine there is a ...joinedTable syntax:
const productsFR = await db.product
    .join("productTranslations")
    .select(
      "id",
      "stock",
      "price",
      "...productTranslations",
    )
    .where({ "productTranslations.languageCode": "FR" });

we can't see what columns we are selected
when we add more columns to productTranslations, they all will be selected, no matter if we want them or not
if we drop the description column, when listing columns explicitly TS will show an error preventing possible mistakes
productTranslations may have its own id, and product has id, TS won't catch this, and the database also will select this without problems, but we will have only one id in the result

To make it a bit more compact, you can rename the relation (table name remains the same, only the relation) to translations. The where condition can be placed to the join and table name may be omitted in there:
const productsFR = await db.product
    .join("translations", (q) => q.where({ languageCode: 'FR' }))
    .select(
      "id",
      "stock",
      "price",
      "translations.name",
      "translations.description",
    )


add logs to ipallocation attempt

Description
This PR...

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[x] extra logging
[ ]

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[x] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

How did you try to break this feature and the system with this change?

@blueorangutan package

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7770

@blueorangutan package

@blueorangutan package

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el7 ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 8344

@blueorangutan test

[SF] Trillian test result (tid-8863)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43329 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8239-t8863-kvm-centos7.zip
Smoke tests completed. 109 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

@JoaoJandre , will we merge this after an RC or before?

@JoaoJandre , will we merge this after an RC or before?

@DaanHoogland only after the release.

@blueorangutan package

Packaging result [SF]: ✔ el7 ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 9329

@blueorangutan test alma9 kvm-alma9

@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests

[SF] Trillian test result (tid-9928)
Environment: kvm-alma9 (x2), Advanced Networking with Mgmt server a9
Total time taken: 49336 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8239-t9928-kvm-alma9.zip
Smoke tests completed. 109 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
102.32
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
51.17
test_vm_life_cycle.py

test_08_migrate_vm
Error
49.46
test_vm_life_cycle.py

code lgtm


android: Set egl::{RED,GREEN,BLUE,DEPTH}_SIZE to 8

Maybe this should be configurable?

It is configurable: https://github.com/tomaka/glutin/blob/master/src/lib.rs#L190-193
Could do you:
let (red, green, blue) = match builder.color_bits.unwrap_or(24) {
    24 => (8, 8, 8),
    16 => (6, 5, 6),
    _ => panic!()
};

Oh, sorry) I will prepare another PR soon.


Add moved file

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (51a25ba) compared to base (62221b4).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #360   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines          856       856
=========================================
  Hits           856       856

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


devhub: work around run number requirements

(the expectation is this code will change / go away in the near future, before we hit ~300 more releases :smile:)

I have a horrible dj-inspired idea to make our changelog the source of truth for release numbers. So, release.zig would go and parse the changelog, and would use the latest release number from it.
So, bumping release number would become a toil, but it would be the part of overall changelog writing (and our scripts changelog would take care of that).


Another approach to try a fix for the CocoaPods localization bundle problem (#74).

Checking if resources bundle was copied inside framework bundle, then falling back to old search methods

Thanks, anyone using a project with CocoaPods can verify please? 🙃

The current HEAD detection code doesn’t work?

The head (7fc5e78) working fine for me. No X's anymore.

Merged in d32fc18, thank you for the contribution and sorry for the long delay!

@zoul thx, I suppose "Caveats" section from this article can shed some light on the choice of [NSBundle bundleForClass:] method:
https://blog.cocoapods.org/CocoaPods-0.36/


docs: Align naming/docs/errors around entity type

Description
If we want to implicitly use multiple tables within the same expression they should have the same entity type.
If we don't specify the entity type, it defaults to the name of the table.
Thus, to use multiple tables implicitly, we need them to set their entiy type.
https://kaskada.io/docs-site/kaskada/main/developing/tables.html#creating-a-table
We do say:

A name describing the type of entity, for example "User" or "Purchase".

But this doesn't tell me what the parameter to use to set that name is.

This was recently changed, and now reads:

The type of entity is specified using the grouping_id parameter. The grouping ID specifies what kind of entity each event is associated with, for example "User" or "Purchase". When combining events from different tables, events with the same entity key and grouping ID are treated as being part of the same entity.

I wouldn't consider this a bug though - if we want to associate "bugs" with docs it would probably be best to use that tag for docs that are wrong, rather than docs that are incomplete.

We've discussed eliminating the group ID a couple times in the past - I think it might be worth revisiting that conversation. I really struggled trying to document that field, in terms of explaining the behavior and why you would want it to behave that way.

I think I'm generally in favor eliminating, assuming we do something else to address the fact that implicit joins are very easy to create odd behaviors with. For instance, even the A | when(B) | when(C) case we looked at recently has this problem.
I think some kind of explicit join to bring multiple tables into scope would probably be better at solving both the implicit join case, as well as the entity type case.


User not received “Escrow received payment” activity in home feed when user installed app & signup through cEUR invite.

Frequency: 100%
Repro on build version: Test flight alfajores build 1.18.0 ,Test flight build V1.18.0(72)
Repro on devices:  iPhone 6+(12.5.4),iPhone 12 (14.4.1)
Precondition: Make sure user should install the app & signup through cEUR invite.
Repro Steps:

Sent User A should invite by adding cEUR to User B
User b should Install & complete verification flow with same invited number
Observe activity on home feed

Current Behavior: User not received “Escrow received payment” activity in home feed when user installed app & signup through cEUR invite
Expected Behavior:  User should receive Escrow payments
Investigation: User able to receive Escrow payment when invited through USD.
Impact: User get blocked to receive escrow
Attachment: Not ReceivedEscrow.MP4

https://valora.testquality.com defect D100.


test(trading): single worker for sim tests

Description ℹ
Due to a problem with the performance of the CI machine, we temporarily change it to one thread because then the tests work. Many threads will be restored after analysing the performance of other machines.

Closing, as we disabled console-test for now, and we'll use github-runners and keep multiple workers.


zulu: init at <IP_ADDRESS>

Motivation for this change
Add a certified OpenJDK build.
Azul Zulu is a popular alternative.
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

I added Darwin and tested it as much as I could but I cannot run it without an actual macOS.

Builds on linux: https://prs.nix.gsc.io/build/3542725

Why does this have a darwin label?

libpciaccess is broken on darwin so this doesn't evaluate. I tried to build it anyway but it failed with this.
common_interface.c:72:10: fatal error: 'sys/endian.h' file not found
#include <sys/endian.h>

Hmm, should I pull the Darwin stuff out for now then?

I would leave it in if the package is supposed to work on darwin.

What does «certified» mean here, i.e. does patching RPATH break it in some sense (this question is mostly about description)?

Zulu is verified compliant with the Java SE specifications using the OpenJDK Community Technology Compatibility Kit (TCK)

It basically means it is a drop-in replacement for any other JDK build that follows the TCK.


APT journal article

EPIC: Increase APT Usage
Description: As part of increasing the science community's knowledge of APT and its capabilities, we need to publish an article in a peer reviewed journal.
Tasks:
-[] Draft outline for journal article (6)
Acceptance Criteria:
-[] Article outline (draft) delivered to team for review.

Draft link

We need to hold off on this issue until we determine the future of APT.


Add explicit jackson annotation version

Signed-off-by: Gerben Kroes<EMAIL_ADDRESS>

https://jenkins.fdp.osgp.cloud/view/Nightly Build/job/gxf-nightly-build/486/


Installer steals file associations with no warning

Yesterday I installed the latest version (1.6) and it messed up extensions all over my Windows 7 64bit machine. The original issue was closed as "fixed" #6073.
And it changed extension for my Java, C#, Python, config, properties and I don't even know what else. I use Notepad++ to edit all those files and was about to give Brackets a go for web design.
I would propose this program to other frontend developers but they would be pissed of because of this issue too. Can we get portable version? Can't trust your installer. Uninstalling for now.

First off, the original issue was never fixed. It was all filed on the backlog and closed until it could be fixed. The code for a portable build was put up at adobe/brackets-shell#333 but never merged.
Second, as I have said in the issue you linked, I'm for removing some of unrelated-to-Web extensions, and I'll be submitting a PR to do just that.
Third, the installer is written with WiX. If you know how to develop with it, yo can always submit a PR to make the extension registrations where you can choose which you want (think like the VLC installer).


question(CL): how do we handle removing all positions from pool and then adding back

Background
This issue is made for tracking purposes. I'm concerned about handling positions be fully removed from a pool and then added back again.
There are several edge cases to consider:

how do we handle spot price when all positions are removed?
how do we handle twap in this case since there is no liquidity in the pool?

Acceptance Criteria

investigate the issue
document the findings and conclusions in achitecture.md
add a test when all liquidity is removed making sure that twap is still valid
add a test when liquidity re-added to a pool that twap is still valid

Addressed in the merged PR. See README added in: https://github.com/osmosis-labs/osmosis/pull/4831


avoid marshal the metadata in GridfsStore because manage well hash access

avoid marshal the metadata in GridfsStore because manage well hash access

hi - what's the use case for this? this would make mongo datastore act differently to other datastores (i.e. remove ability to use symbols), so I can't really use it. Thanks


Rollbar

Added the Rollbar error reporting library. https://rollbar.com/Micathon3/Docilater/

This change is

The tests are failing because CircleCI can't install Rollbar.


Fix task failing for Ansible 2.1

This PR fixes all the issues I've encounter with Ansible 2.1

I've merged the PR. Thanks @kostyrevaa!


Display billing history for services

Enable users to easily see what their monthly usage was for billed services along with relevant billing metrics such as start date, end date, remaining hours, total hours, concurrent devices, etc.

This work has been postponed and will be picked up either in March or April when some bandwidth allows.

It would also be great if I could see exact dates for the billing cycle (e.g. February 24th 2020 - March 23rd 2020 in each of the headings in the mock up).


wasm32-unknown-unknown - .ort model weights not supported

when building a session with target wasm32-unknown-unknown, via:
static ORT_DATA: &[u8] = include_bytes!("model.ort");

...
Session::builder()
    .unwrap()
    .commit_from_memory_directly(ORT_DATA)
    .unwrap()

a runtime error is thrown:
Deserialize tensor 'weights' failed. External initializers are not enabled in this build.
this occurs when an .ort model contains 'internal tensors'

here is an example .ort file: https://github.com/mosure/bevy_flame/blob/main/assets/models/flame.ort

Sorry, this was fixed by https://github.com/pykeio/ort/commit/80be2068296b04e8ae0a442d4b9c2d635362d07e, but I'm waiting to push a new rc release.


Enabling ko4j DOM inspector & editor support

Moving the ko4j.debugging module into nb cluster.
The ko4j.debugging module bridges functionality of java and webcommon clusters. As these two clusters are independent, it needs to be in a cluster that has access to both of them. Previously such role was played by enterprise cluster. However the ko4j.debugging module has nothing to do with enterprise by itself. As such let's move it to nb cluster - where it can play its bridging role well.

The test scenario:

start with empty user directory
create new Java Frontend application project - index.html is one of created and opened files
try code knockout completion in HTML - e.g. the data-bind directive

check the support for knockout completion is enabled

execute the project - app opens in new window, DOM Inspector opens in the IDE

check the DOM Inspector window is opened and selecting an element in it selects it in the application window

Looks like all of the above is working after 6b75cf4 change.

Nobody objects. Please merge.


sending messages is slow

Apparently sending a message via the Api::send_message function is very slow, at least for me. It takes up to 550ms to send a single message for me, where as my bot written in Go takes only ~50ms.
I measured it using the time crate, using the function time::precise_time_ns.

Just checked master branch. About 400ms for the very first request (handshake, I guess) and about 70ms for following requests, and I have about 70ms ping delay to the Telegram API server.


UpstashError: Forbidden: /upsert-data is not allowed

I'm receiving this error
UpstashError: Forbidden: /upsert-data is not allowed

when I'm trying to insert data into a vector database in my JavaScript code.
const result = await this.vectorIndex.upsert({id: "testId", data:"testData"});

this.vectorIndex is just an abstraction of new Index({ url, token })
This is the stack trace of the error
at f.request (/.../node_modules/.pnpm/@upstash+vector@1.1.1/node_modules/@upstash/vector/dist/index.js:52:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at d.exec (/.../node_modules/.pnpm/@upstash+vector@1.1.1/node_modules/@upstash/vector/dist/index.js:63:39)

Is there something wrong with my code or my settings in my upstash project?

Well everything looks okay. Can you share a repo or gist?

https://github.com/johnbenedictyan/example-upstash-vector
here is a link to an example repo I made the error appears when I access the main route localhost:3000, do let me know if there is any other information you need!

Well, everything worked fine on my end. I know why you are seeing this issue. Your index probably created without custom embedding model?

My index has this:

Can you please try to create a new index with embedding model?

@johnbenedictyan Make sure you are not using readonly token and you have embedding model active in your index. That should do the trick.

Ah yes, @mdogan I copied the readonly token, my bad it works now, thanks for your time! @mdogan @ogzhanolguncu


Docs: add automapper migration guide

Add a step by step guide on how to migrate from AutoMapper to Mapperly.

Did a little test, it is quite easy!
Given two entities: Company and Employee. One Company has many Employees, one employee has one company.
Company and it's DTO:
public class Company
{
    public Guid Id { get; init; } = Guid.NewGuid();
    public string Name { get; set; }
    public ICollection<Employee> Employees { get; } = new List<Employee>();

    public Company(string name)
    {
        Name = name;
    }

    public Employee CreateEmployee(string name)
    {
        var employee = new Employee(Guid.NewGuid(), this, name);
        Employees.Add(employee);

        return employee;
    }
}

public record CompanyDto(Guid Id, string Name, EmployeeDto[] Employees)
{
    /// <inheritdoc />
    public virtual bool Equals(CompanyDto? other)
    {
        if (ReferenceEquals(null, other)) return false;
        if (ReferenceEquals(this, other)) return true;

        return Id.Equals(other.Id)
            && string.Equals(Name, other.Name, StringComparison.InvariantCulture)
            && Employees.SequenceEqual(other.Employees); // <-- this is the only reason to re-implement Equals method
    }

    /// <inheritdoc />
    public override int GetHashCode()
    {
        var hashCode = new HashCode();
        hashCode.Add(Id);
        hashCode.Add(Name, StringComparer.InvariantCulture);
        hashCode.Add(Employees);
        return hashCode.ToHashCode();
    }
}

Employee and it's DTO:
public class Employee
{
    public Guid Id { get; init; }
    public Guid CompanyId { get; init; }
    public Company Company { get; init; }
    public string Name { get; set; }

    public Employee(Guid id, Company company, string name)
    {
        Id = id;
        CompanyId = company.Id;
        Company = company;
        Name = name;
    }
}

public record EmployeeDto(Guid Id, Guid CompanyId, string Name);

Given Automapper profile:
public class AutomapperProfile : Profile
{
    public AutomapperProfile()
    {
        CreateMap<Company, CompanyDto>();
        CreateMap<Employee, EmployeeDto>();
    }
}

Part 1. Without registering to DI container:
Mapperly mapper:
[Mapper]
public partial class MapperlyMapper
{
    public partial object? Map([NotNullIfNotNull(nameof(source))] object? source, Type targetType);

    public partial CompanyDto MapToDto(Company company);

    public partial EmployeeDto MapToDto(Employee employee);
}

public static class MapperlyMapperExtensions
{
    public static TDestination? Map<TDestination>(this MapperlyMapper mapper, [NotNullIfNotNull(nameof(source))] object? source) =>
        (TDestination?) mapper.Map(source, typeof(TDestination));
}

Program.cs:
using AutoMapper;
using MapperlySandbox;
using Microsoft.Extensions.DependencyInjection;

var serviceCollection = new ServiceCollection();

serviceCollection.AddAutoMapper(typeof(AutomapperProfile));

using var serviceProvider = serviceCollection.BuildServiceProvider();

var company = new Company("Company 1");

company.CreateEmployee("Employee 1");
company.CreateEmployee("Employee 2");

var automapperMapper = serviceProvider.GetRequiredService<IMapper>();
var mapperlyMapper = new MapperlyMapper();

var companyDtoFromAutomapper = automapperMapper.Map<CompanyDto>(company);
var companyDtoFromMapperly = mapperlyMapper.Map<CompanyDto>(company);

if (companyDtoFromAutomapper != companyDtoFromMapperly) throw new Exception("Something went wrong.");

Console.WriteLine("Success!");
Console.WriteLine(companyDtoFromMapperly);

Part 2. Mapperly mapper registered to DI container as AutoMapper IMapper implementation:
Add an adapter class:
public class MapperlyMapperAsAutomapper : IMapper
{
    private MapperlyMapper _mapper = new();

    /// <inheritdoc />
    public TDestination? Map<TDestination>(object? source) => (TDestination?)_mapper.Map(source, typeof(TDestination));

    /// <inheritdoc />
    public TDestination? Map<TSource, TDestination>(TSource? source) => Map<TDestination>(source); // Note: possible boxing of value type

    /// <inheritdoc />
    public object? Map(object? source, Type sourceType, Type destinationType) => _mapper.Map(source, destinationType);

    // Rest of interface is not implemented (throw new NotImplementedException)
    // Also please note that merging (void-returning mappings) is not currently supported

    // ... (omitted for brevity)

}

Change Program.cs:
using AutoMapper;
using MapperlySandbox;
using Microsoft.Extensions.DependencyInjection;

var serviceCollection = new ServiceCollection();

serviceCollection.AddTransient<IMapper, MapperlyMapperAsAutomapper>();

using var serviceProvider = serviceCollection.BuildServiceProvider();

var company = new Company("Company 1");

company.CreateEmployee("Employee 1");
company.CreateEmployee("Employee 2");

var mapper = serviceProvider.GetRequiredService<IMapper>();

var companyDto = mapper.Map<CompanyDto>(company);

Console.WriteLine("Success!");
Console.WriteLine(companyDto);

If there are no additional configurations when using CreateMap this may be true, however, the idea of this guide is to provide a document which shows how to map each AutoMapper configuration to the matching Mapperly configuration (eg. .ForMember(dst => dst.NumberOfSeats, opts => opts.MapFrom(src => src.SeatCount)) translates to [MapProperty(nameof(Car.NumberOfSeats), nameof(CarDto.SeatCount)].

Probably this could even be implemented as a code fix.


Error while using file as artifact with rekor-cli upload.

Description
I want to use rekor-cli version 1.3.6 for uploading artifact and signature using below command.
$ rekor-cli upload --artifact payload.json --signature payload.json.sig --public-key pubkey.pem --pki-format x509
But I am getting invalid argument error.
invalid argument "payload.json" for "--artifact" flag: URL must be for http or https scheme.
In help section it states it could be a file.
--artifact fileOrURL          path or URL to artifact file

Version
rekor-cli: Rekor CLI
GitVersion:    v1.3.6
GitCommit:     a6788566cd62facb0fb0450e9d2c2867f551e37c
GitTreeState:  clean
BuildDate:     2024-04-02T04:16:36Z
GoVersion:     go1.21.8
Compiler:      gc
Platform:      linux/amd64

Can you try adding ./ to payload.json as a workaround?

also, that error message is (incorrectly) printed if the argument to --artifact doesn't exist, so can you please also verify the filename?

prepending ./ also doesn't work, Just got added to error message.
$ rekor-cli upload --artifact ./payload.json --signature payload.json.sig --public-key pubkey.pem --pki-format x509
Error: invalid argument "./payload.json" for "--artifact" flag: './payload.json' is not a valid url
And I also confirmed that file payload.json exists.
$ cat payload.json
{"critical":{"identity":{"docker-reference":"cr.example.com/ranjan.rajeev/test-container/hello-world"},"image":{"docker-manifest-digest":"sha256:8d3b740ac4f8c8d84d71b67e18127cd380d6e224956f2daa5d99f28a9fad155a"},"type":"cosign container image signature"},"optional":null}

prepending ./ also doesn't work, Just got added to error message. $ rekor-cli upload --artifact ./payload.json --signature payload.json.sig --public-key pubkey.pem --pki-format x509 Error: invalid argument "./payload.json" for "--artifact" flag: './payload.json' is not a valid url
And I also confirmed that file payload.json exists. $ cat payload.json {"critical":{"identity":{"docker-reference":"cr.example.com/ranjan.rajeev/test-container/hello-world"},"image":{"docker-manifest-digest":"sha256:8d3b740ac4f8c8d84d71b67e18127cd380d6e224956f2daa5d99f28a9fad155a"},"type":"cosign container image signature"},"optional":null}

I'm only able to recreate this error if the file doesn't exist in the current working directory. Can you confirm that is the case for you?


Inform user when underscore-formatted options are used.

Description
Informs the user when an underscore-formatted option is used. Currently, only an error is thrown. Replaces the underscore option and gives the correct format.
Checklist

[*] I have updated tests where applicable.
[*] I have added an entry to the CHANGELOG.

Issue #4054

This looks about right, thanks!!


Align current device information and connectivity status to the  right side

Feature Request

As title described, I think it's better to align device name information to the right side (the same as IP address).

@lingkeyang Are you interested in this issue?

@lingkeyang Are you interested in this issue?

Give me five.


[bug] Regularizers do not allow integer scales.

Location:
https://github.com/tensorflow/tensorflow/blob/c9de294d0a0980b1636f76757c175afbf4f58ea8/tensorflow/contrib/layers/python/layers/regularizers.py#L92
Expected behavior: I was expecting layers to work with integer scale regularizers.
Actual behavior: program throws error and quits on me when I set scale=10 but not when I set scale=10.0
This seems to be vestigial of a misunderstanding: earlier commits limit regularizer scale to a floating point number between 0.0 and 1.0, disallowing integers. While the upperbound of 1.0 has been removed, the no-integers limitation is left over.

wow very good point.

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

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

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

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

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

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

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

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

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

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

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

Hi @renxida! Moving this issue to closed status as it has been resolved in the 2.8 version through float casting. Thanks!


Add RU/FR/IT to supported languages

Description
Add RU/FR/IT to supported languages. Please note that the translations for these 3 new languages are currently incomplete (many keys are still using english in the translation files) but now RU/FR/IT should appear as options in the language selection pages on app start/settings screen.
Other changes
N/A
Tested
Manually verify that the new languages can be selected from and the app changes languages on selection.
How others should test
Same as above
Related issues

Fixes #1721

Backwards compatibility
Yes

Awesome! There's one more thing for iOS, we need to manually add the new languages in the Xcode project. This way the App Store recognizes these new languages and the right translations for plist strings are used (for system permission popups).

Ah thank you for pointing this out! i have updated :)

Hey @MuckT we have verified the above task on Latest Android Internal Release build and Latest iOS Test Flight Release build V:1.25.1 and updated the status in Gsheet
Sheet link :

https://docs.google.com/spreadsheets/d/1_eusrRjJCC9pvOcHaSEbw7P515xBb9yB659pr_8O8Cw/edit#gid=1616260500

Observation : RU/FR/IT languages are seen after launching the application and also if user goes to setting page to change the language
Devices : Google Pixel 2XL(11.0) , iPhone 12 (14.7.1)

Hey @MuckT we have verified the above task on Latest iOS Test Flight Release build V:1.25.1 and updated the status in test rails
Test rail link :
iOS 13: https://valoraapp.testrail.io/index.php?/tests/view/4383&group_by=cases:section_id&group_order=asc&group_id=30&group_by=cases:section_id&group_order=asc&group_id=30
Bug Link
Devices : iPhone 7 (13.3)
Cc: @kathaypacific
Thanks..!

Hey @MuckT, we have verified the task on Latest iOS Test Flight Release build V:1.25.1 and updated the status in test rails as below.
Test rail link :
iOS 15: https://valoraapp.testrail.io/index.php?/tests/view/4446
Devices : iPhone 13 mini (15.1.1)
Cc: @kathaypacific
Thanks..!!

Hey @MuckT, we have verified the task on Latest Android Internal Release build V:1.25.2 and updated the status in test rails as below.
Test rail link:
Android 10: https://valoraapp.testrail.io/index.php?/tests/view/7064&group_by=cases:section_id&group_order=asc&group_id=30
Bug link

Devices: Samsung Galaxy M40(10.0)
Cc: @kathaypacific
Thanks..!!

Hey @MuckT, we have verified the task on Latest Android Internal Release build V:1.25.2 and updated the status in test rails as below.
Android 9:
https://valoraapp.testrail.io/index.php?/tests/view/7127&group_by=cases:section_id&group_order=asc&group_id=30
Observation : Language page does not appear on opening the app and bug is already raised for it
Devices: Samsung Galaxy J5 Prime (8.0.0)
Cc: @kathaypacific
Thanks..!!


feat: Allow passing an existing role ARN to IRSA module

What does this PR do?
🛑 Please open an issue first to discuss any significant work and flesh out details/direction - we would hate for your time to be wasted.
Consult the CONTRIBUTING guide for submitting pull-requests.

Motivation

Allows reusing an existing role
Closes #1262
Closes #1123

More

[x] Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
[ ] Yes, I have added a new example under examples to support my PR
[ ] Yes, I have created another PR for add-ons under add-ons repo (if applicable)
[ ] Yes, I have updated the docs for this feature
[x] Yes, I ran pre-commit run -a with this PR

Note: Not all the PRs require a new example and/or doc page. In general:

Use an existing example when possible to demonstrate a new addons usage
A new docs page under docs/add-ons/* is required for new a new addon

For Moderators

[x] E2E Test successfully complete before merge?

Additional Notes

  # module.pipeline.module.irsa.kubernetes_service_account_v1.irsa[0] will be created
  + resource "kubernetes_service_account_v1" "irsa" {
      + automount_service_account_token = true
      + default_secret_name             = (known after apply)
      + id                              = (known after apply)

      + metadata {
          + annotations      = {
              + "eks.amazonaws.com/role-arn" = "<redacted>"
            }
          + generation       = (known after apply)
          + name             = "<redacted>-sa"
          + namespace        = "default"
          + resource_version = (known after apply)
          + uid              = (known after apply)
        }
    }

@nitrocode please open an issue to describe the problem.

@askulkarni2 I created this issue https://github.com/aws-ia/terraform-aws-eks-blueprints/issues/1262 on Dec 17 2022.

see https://github.com/aws-ia/terraform-aws-eks-blueprints/issues/1262#issuecomment-1473840737


Add catalog-info.yaml config file

This pull request adds a Backstage entity metadata file
to this repository so that the component can
be added to the software catalog.
After this pull request is merged, the component will become available.
For more information, read an overview of the Backstage software catalog.
View the import job in your app here.

Hello,
is this from testing Bulk Import plugin?

@dzemanov ignore this PR , Yes this was from bulk import testing .


[plot] Provide appropriate print preview

A look at the solution provided by Oxidis or PyMca might help. Probably the former is better.
Perhaps BCU people can take care of it in the frame of their new Oxidis development.

Closed by #965


Find all occurences

From contrebasse on 2012-11-08T07:21:18Z
What I miss in spyder is a "Find all" widget. It is found in many editor (at least geany and qtcreator).
The idea is to list each line where the search is found in the file (or in all open files). The lines are clickable so that a clic one one line bring the view and the cursor on this specific line.
There's an example in the qtcreator documentation : http://doc.qt.digia.com/qtcreator-2.2/creator-editor-finding.html (near the end of the page).
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1189

From contrebasse on 2012-11-08T23:54:27Z
You're right, that's exactly what I was looking for. I didn't looked enough, sorry.

From pierre.raybaut on 2012-11-08T11:58:15Z
What you are describing seems very close to the "Find in files" plugin which already exists in Spyder: Ctrl+Shift+F.

From pierre.raybaut on 2012-11-09T01:42:59Z
No problem!
Status: Done


[PT Run] Explicitly start new program instance with modifier key

Summary of the new feature/enhancement
Force starting of a new program instance even if an active windows is selected, by explicitly pressing
e.g. SHIFT+ENTER (configurable).
This is somewhat based on the windows taskbar behavior:
If an application is running, MIDDLE Mouse Click on its taskbar icon will open a new instancen/window (if the app allows it), e.g. Windows Explorer.
Also WIN+1 opens or switches to the first app on the taskbar. By pressing SHIFT+WIN+1 it is possible to open a new instance/window instead.
Why?
There are currently several issues open and closed discussing how to best procede after the merge of walker and launcher, after scanning them I did not read about my proposed idea above.
Several people wish for a seperate WindowWalker Mode, others suggest to prioritize running windows in the searchresults. It will be quite hard to satisfy everones needs.
IF running windows end up being the first in search results, users may prefer to use this alternative keyboard shortcut to force launching a new program window.

Would it be good to merge this with #3169? The suggestions seem to complement each other.

@mrmcpowned I guess so , precisely your https://github.com/microsoft/PowerToys/issues/3169#issuecomment-638428062
I think there are several more issues with overlapping concerns / ideas.

This sounds like a good option for a lot of people wanting a mix of running and non-running apps. Since PTRun is built around plugins, I think this would be a great new plugin. It should probably build upon both the walker and launcher plugins in some way.
Also, in my mind, it would tie in well with my proposal for direct plugin triggers. Would you consider that a good way forward?

@Mario-Hofstaetter what is an instance of a program that launches it but doesn't start a new instance?  just tried outlook and it starts a new pane.

@Mario-Hofstaetter what is an instance of a program that launches it but doesn't start a new instance? just tried outlook and it starts a new pane.

The first line of my post above says:

[...]starting of a new program instance even if an active windows is selected[...]

What I meant by that is, if searching for "outlook" would yield the RUNNING window as first result, pressing Enter would switch to this window. There is no explicit hotkey to open a new window instead (?).
You have to select Outlook 2016 instead using Arrow Keys. Currently, the running windows is NOT the first entry in search results (at least for me).

The reason I proposed this is I would greatly prefer to have running applications always as top most search result to switch to it, but if I want to start a new window, I'd prefer e.g. Shift+Enter instead of using the arrow keys to select the "launch application entry".

related to #3169 and #3557

@Mario-Hofstaetter
as of now (version 0.29.x) this is the default behavior. Closing this issue.
Please open a new one in case you have a suggestion for the current behavior.
Thanks

@Mario-Hofstaetter
as of now (version 0.29.x) this is the default behavior. Closing this issue.
Please open a new one in case you have a suggestion for the current behavior.
Thanks


Update bots-notifications.md

Added events for user add and remove, including anonymous users

Docs Build status updates of commit 6bc701c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/resources/bot-v3/bots-notifications.md
:bulb:Suggestion
View
Details

msteams-platform/resources/bot-v3/bots-notifications.md

Line 38, Column 1: [Suggestion-preserve-view-not-set] Did you mean to link to a specific version? If so, add &preserve-view=true to the URL: /azure/bot-service/dotnet/bot-builder-dotnet-activities?view=azure-bot-service-3.0#conversationupdate

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

Docs Build status updates of commit b993574:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable.

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

Docs Build status updates of commit 427e507:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/resources/bot-v3/bots-notifications.md
:warning:Warning
View
Details

msteams-platform/resources/bot-v3/bots-notifications.md

Line 1, Column 1: [Warning-title-missing] Missing required attribute: 'title'. Add a title string to show in search engine results.
Line 6, Column 1: [Warning-yaml-header-syntax-error] While parsing a block mapping, did not find expected key.
Line 1, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.
Line 40, Column 1: [Suggestion-preserve-view-not-set] Did you mean to link to a specific version? If so, add &preserve-view=true to the URL: /azure/bot-service/dotnet/bot-builder-dotnet-activities?view=azure-bot-service-3.0#conversationupdate

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


ISPN-11351 Getting details of the protobuf cache returns error

https://issues.redhat.com/browse/ISPN-11351

@gustavonalle LGTM, can't we just rebase the commits ?

@karesti it's already rebased

Unless you mean squash them, but I prefer to always keep a reproducer and the fix in separate commits, thus it's easier to reproduce without the fix and verify that the fix actually solved the issue


Build Problem

i meet a problem when i compile CTK with CMake-gui, my configuration shows below( Qt 5.9.6  win10   msvc2015_64 ):

after i pressed Configure button, as screen capture shows,  there is no sql module required, but when i compiled the solution generated by CMake-gui, an compile error happend

some one help me, please!

Enabling CTK_ENABLE_PluginFramework is expected to require the Sql Qt module.
Inspecting the code:
https://github.com/commontk/CTK/blob/b9ef9b8aa1938676ce0ac105a3deb0e1bfc235a1/CMake/ctkMacroSetupQt.cmake#L62-L67
... revealed that the test was using Libs/PluginFramework instead of CTK_LIB_PluginFramework which may explain what you are observing.


Add build information and time to executables

Thats nice.

Only comment would be whether the code (being so similar) could be moved into a library of sorts?

Will push it for now, will move to library a bit later.


Update replace.js

Now it will work with '.htaccess' files and such lines:
RewriteRule ^file.jpg$ / [R = 301, L]

Yeah, it's very good idea.

I think you're better off using more of mod_rewrite's regexp capabilities in this case, instead of overwriting your .htaccess file each time. A rule like ^file(?:-[a-z0-9]{10})?\.jpg$ will match both file.jpg and any revved versions like file-d41d8cd98f.jpg, so the rewrite keeps working for any and all original or revved versions.

Any more thoughts on this? Otherwise I'll close.

It probably won't work:
RewriteRule ^aaa.jpg$    icons/icon.jpg [L]
RewriteRule ^bbb.jpg$    images/img.jpg [L]
RewriteRule ^ccc.jpg$    uploads/pic.jpg [L]

I'm not sure I get your answer. What is not working? What is it that you're trying to achieve?

Closing for lack of response and because it's not clear what you're trying to achieve.


P012 and HEVC 12bit decode implementation in gst msdk

Added P012 map and HEVC 12bit decode implementation in gst msdk

This PR contains patches from #198, #199 and #200.  Please don't submit the same patch across different PR's.  All of the patches are related, so it should be fine to submit them together in one PR.

Thanks for finding this, I will remove the contained commits soon
Because there will another peer PR for "P012 and HEVC 12bit decode implementation in ffmpeg-qsv" just as for gst-msdk,  so it is better to let this in a separate PR as suggestion from Zachary before.

I combined PR 198-201 into one PR 203, so close this


Error -127 is outside the range of representable values of type 'unsigned char' in visual_server.cpp

Godot version:
3.2.dev.custom_build 7126654ea
OS/device including version:
Ubuntu 18.04
Issue description:
logs
servers/visual_server.cpp:514:17: runtime error: -127 is outside the range of representable values of type 'unsigned char'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior servers/visual_server.cpp:514:17 in
servers/visual_server.cpp:515:17: runtime error: -12.4482 is outside the range of representable values of type 'unsigned char'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior servers/visual_server.cpp:515:17 in
servers/visual_server.cpp:513:17: runtime error: -2.42852 is outside the range of representable values of type 'unsigned char'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior servers/visual_server.cpp:513:17 in

This code
https://github.com/godotengine/godot/blob/4188b0c139dc71b425528db97afdc1e54c2fb5b4/servers/visual_server.cpp#L512-L517
should probably look like a little above(uint_8 -> int_8)
https://github.com/godotengine/godot/blob/4188b0c139dc71b425528db97afdc1e54c2fb5b4/servers/visual_server.cpp#L477-L482
or clamp should have this values CLAMP(value,0,255)

I think it should be signed int. Line 512 was most likely a typo and then the following casts in lines 513-516 were added afterwards https://github.com/sparkart/godot/commit/e2b50e1abbc6cab58410a2ef4155bdcadf73efcf#diff-23cec7725ea48162a903e4160145a2ceR482
That's my guess.


[Epic] User can select different version of OpenShift (4.8 or 4.7) when starting crc from the CLI

When running crc start, the user should be able to specify the major version he would like.
This is the first step to support multiple versions of OpenShift.
The user can run: crc start 4.7.13 or crc start --openshift-version v4.7.13
By default, it will start the latest version available.

Shouldn't you consider the latest OpenShift EUS (currently 4.6) ?


FileError

hi sir!
this file "resnet50_fbaug.pth"
i already put in path : "/data/model"
error:
FileNotFoundError: [Errno 2] No such file or directory: '/data/model/resnet50_fbaug.pth'
what should i do

Could u tell me where is the file "resnet50_fbaug.pth"?Thx a lot @3A417021

Have u solved this problem ?I met the same question as urs, plz:) @3A417021

Oh
Sorry
I am busy
That problem about path has been solve
But have another bug
😆😆😆
Yinhance<EMAIL_ADDRESS>2021年2月2日 週二，22:17寫道：

Have u solved this problem ?I met the same question as urs, plz:)
@3A417021 https://github.com/3A417021
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Purkialo/CrowdDet/issues/50#issuecomment-771665049,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJNAWY4V3X24D7RRULPIMTS5ACQDANCNFSM4WM6VBSQ
.

hi~ i can't find the file "resnet50_fbaug.pth" in this github,can you email it to me ? thank<EMAIL_ADDRESS>

hi~ i can't find the file "resnet50_fbaug.pth" in this github,can you email it to me ? thank<EMAIL_ADDRESS>
https://drive.google.com/file/d/1lfYQHC63oM2Dynbfj6uD7XnpDIaA5kNr/view

I have the same problems, how to solve?

I have the same problems, how to solve?

See my response :)

Just check the path again😳😳
2021年6月7日(月) 9:01 Yinhance @.***>:

I have the same problems, how to solve?
See my response :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Purkialo/CrowdDet/issues/50#issuecomment-855506431,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJNAW2KDEGVZQ6MYQIAR7TTRQLANANCNFSM4WM6VBSQ
.


Web version produces non-working code for a few days ("data is not defined")

Current Behavior
Until a few days ago, your website was working perfectly.
But now, it fails every time. The generated code has a bug "data is not defined".
See steps to reproduce below
Steps to Reproduce (for bugs)

consider the following script:
console.log("foo")

Execute it

It works, the console says "foo"

Go to https://obfuscator.io/ and obfuscate that script. You can select or unselect any options, it doesn't matter for the following steps

You get something like this:
var c = function () {
var e = !![];
return function (f, g) {
var h = e ? function () {
if (g) {
var i = g['apply'](f, arguments);
g = null;
return i;
}
} : function () {
};
e = ![];
return h;
};
}();
var d = c(this, function () {
var j;
try {
var k = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');');
j = k();
} catch (l) {
j = window;
}
var m = function () {
return {
'key': 'item',
'value': 'attribute',
'getAttribute': function () {
for (var n = 0x0; n < 0x3e8; n--) {
var o = n > 0x0;
switch (o) {
case !![]:
return this['item'] + '' + this['value'] + '' + n;
default:
this['item'] + '_' + this['value'];
}
}
}()
};
};
var p = new RegExp('[]', 'g');
var q = '''replace''split';
var r;
var s;
for (var t in j) {
if (t['length'] == 0x8 && t'charCodeAt' == 0x74 && t'charCodeAt' == 0x65 && t'charCodeAt' == 0x75 && t'charCodeAt' == 0x64) {
r = t;
break;
}
}
for (var u in j[r]) {
if (u['length'] == 0x6 && u'charCodeAt' == 0x6e && u'charCodeAt' == 0x64) {
s = u;
break;
}
}
if (!r && !s || !j[r] && !j[r][s]) {
return;
}
var v = j[r][s];
var w = ![];
for (var x = 0x0; x < q['length']; x++) {
var s = q[x];
var z = v['length'] - s['length'];
var A = v['indexOf'](s, z);
var B = A !== -0x1 && A === z;
if (B) {
if (v['length'] == s['length'] || s'indexOf' === 0x0) {
w = !![];
}
break;
}
}
if (!w) {
data;
} else {
return;
}
m();
});
d();
console'log';

Execute it anywhere (browser, jsfiddle, ...)

You get an error:
Uncaught ReferenceError: data is not defined
at (index):157
at h ((index):88)
at window.onload ((index):163)

Your Environment
Chrome 66.0.3359.139 - 64bits
Stack trace
Uncaught ReferenceError: data is not defined
at (index):157
at h ((index):88)
at window.onload ((index):163)

IMPORTANT NOTE: That is just 1 bug I found in the console, but it seems there are other regressions since a few days ago. Like some code is not executed (but no stack trace in console). Before a few days ago, everything was working perfectly.
That is very annoying because you website was the best obfuscator online ever, and I'm using it for a very important software.
I'm a huge fan of https://obfuscator.io/
This is why I'm craving for it to work like it worked before :)
Thanks.

This error is happens when you trying to run code that obfuscated with domainLock feature on wrong domain.

Nope, I don't have domain lock.

Even if I uncheck all options and try to obfuscate some code as simple as "console.log('foo')", then when I execute it, I get that error.

From my side i should ignore empty values on web UI

Woooow ! That's crazy I did not see it :)
I'm sorry for opening a ticket while it actually works
Thank you a lot !
Bye

Now empty values won't be added to the entries


Implement CacheProfiles for ResponseCache

Follow up to https://github.com/aspnet/Mvc/issues/536

@sornaks please include the design suggestion in the description.

Previously in MVC5 we supported OutputCacheProfiles in Web.config which is a pre-defined set of parameters for OutputCache. This provided a way to reuse the settings in multiple controllers/actions and a centralized place manage all Cache profiles. We do not have an equivalent for this in vNext.
It looked like this:
In Web.config:
<caching>
<outputCacheSettings>
   <outputCacheProfiles>
        <add name="Cache1Hour" duration="3600" varyByParam="none"/>
    </outputCacheProfiles>
</outputCacheSettings>
</caching>

Accessed in the Action like this:
[OutputCache(CacheProfile="Cache1Hour")]
public string Index()
{
    return DateTime.Now.ToString("T");
}

Proposal for vNext:
We can use MvcOptions to achieve the same. It would look something like this:
In Startup.cs
services.Configure<MvcOptions>(options =>
{
    options.CacheProfiles.Add(new CacheProfile() {
         Name = ”Cache1Hour”,
         Duration = 3600,
         VaryByHeader = “Accept”
    });
});

And my action would look like:
[ResponseCache(CacheProfile="Cache1Hour")]
public string Index()
{
    return DateTime.Now.ToString("T");
}

ResponseCache’s OnActionExecuting will look up the MvcOptions and get the CacheProfile with the particular name and populate the parameters needed to set the headers.

@sornaks rather than accessing the options in OnActionExecuting we probably want to make this an IFilterFactory that uses a service. This is a design change we made recently for URL format.

https://github.com/aspnet/Mvc/commit/4691823a5060db135c5672ba5b264183c999f5b3

@JunTaoLuo


Affix should remove style properties when enabled is set to false

I want affix to operate only on wide screens and have it disable itself when on smaller screens. When scrolling, affix activates to give the UI a Fixed position on the screen. When the window size gets smaller, affix gets disabled so it can flow into a more mobile layout, however affix fails to clean up it's style properties. I have to use $ref and access the element directly to remove it's styles on the mobile layout initialization event.
When affix enabled is set from true (while actually doing its thing) to false, it should clean up its style properties and it's css values immediately. It should not wait for a scroll event to recalculate.
Below is my workaround for now.
watch: {
    mobileLayout (newVal) {
      if (newVal) {
        this.$nextTick(() => {
          this.$refs.affix.removeClasses()
          this.$refs.affix.$el.style.removeProperty('top')
        })
      }
    }
}

I second this, as I am also running into this issue. Thanks for the workaround @MatthewAry, I'd see a more permanent fix.

@MatthewAry thanks to the workaround. However I used this code to trigger a complete refresh:
HTML
<affix ref="affix" relative-element-selector='#affix-elem' :enabled="is_affixed" >
Component
       created() {
            window.addEventListener('resize', this.handleResize);
            this.handleResize();
        },

        methods: {
            handleResize(event) {
                this.is_affixed = window.innerWidth >= 992;
                if (this.$refs.affix) {
                    this.$refs.affix.onScroll();
                }

            },
        }


Hey!

Hey @xerod ,
Sorry for my slow response. Slidepad is my side project thus I cannot always keep up with it if my current work is getting busy. I hope you could understand.
I just took a look at the documentation, I think it’s a bit too serious. I always thought of something quite quite simple, like maximum 50 words in total and no more than 4 steps to explain user how to use this tool. It saves both ours and users time.  = )
I just made something in dropbox paper. It's quite raw,  but briefly express the idea.
https://paper.dropbox.com/doc/present/mmE42NYRPVwqRIi5UiN5M
What you think?
Also do you know if Netlify has some kind of template that allows us to make something similar like a slideshow?
Thank you in advance!

@xerod I just invited you into the dropbox paper file.
I also attached the Photoshop's PSD file in the end. =)
Hope it helps!

@PotterDai I'm sorry for my late response, I'll provide a more simple solution this weekend. I'm thinking about using GIF instead of a static image. Let me know what you think

@xerod Sure! But let's keep it simple!
Also I just discovered that Spotify just support Safari, which means we can use Spotify in Slidepad as well =D

@PotterDai I just finished adding some example content with GIF, you can see it at Basic page and Google Keep page. What do you think? is it a bit slow to load?
Here's the link in case you forgot: https://kind-murdock-f4b808.netlify.app

I wonder if this can be recreated to make an android app. Samsung Tab S8 tablet runs on android and has an "edge panel" but its really just a side dock app launcher.
Having a slide over app for android 12 would literally make it possible for android users to easily transition into an android tablet with the same work flow their used to on iPad.


Update Makefile.bat

Updates on the Microsoft SDK 7.1 compilation script to generate runepanet.exe and to use the \include\epanet2.def
@eladsal, @Mariosmsk  can you please check?

@eldemet so this will replace #484, right? Should I close it?

Codecov Report

Merging #485 into dev will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             dev     #485      +/-   ##
=========================================
+ Coverage     69%   69.04%   +0.03%
=========================================
  Files         27       27
  Lines      10164    10164
=========================================
+ Hits        7014     7018       +4
+ Misses      3150     3146       -4

Impacted Files
Coverage Δ

src/hydcoeffs.c
78.84% <0%> (+0.25%)
:arrow_up:

src/input2.c
88.7% <0%> (+0.8%)
: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 d71776d...8c4aa0e. Read the comment docs.

yes!

It's ok for merge.


Add option for providing script to check that any version file was updated

Codecov Report

Merging #111 into master will decrease coverage by 9.31%.
The diff coverage is 30.00%.

@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
- Coverage   88.67%   79.36%   -9.32%
==========================================
  Files           1        1
  Lines          53       63      +10
  Branches       12       14       +2
==========================================
+ Hits           47       50       +3
- Misses          6       13       +7

Impacted Files
Coverage Δ

src/main.ts
79.36% <30.00%> (-9.32%)
:arrow_down:

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 0623ac2...b80d00f. Read the comment docs.


[WIP] Improvements to PHP image

[wip] waiting clarification about README [/wip]
This PR changes the default user when executing the image entrypoint.
With the current less-privileged user, it is not possible to write on volumes shared via Docker, which makes it harder to use the image on a local environment to execute PHP code that writes to disk.
It gives more flexibility to people extending the image via a Dockerfile.

It is possible to write volumes as nonroot, but it may require changing permissions on the volume. What we've done in other images is have root and nonroot variants of the image.
One problem that comes up a lot is many k8s clusters have policies forbidding containers from running as root.

This looks good to me!
I see the dev images are running as root but the latest images are running as "php". I think that makes sense, but just wanted to check that's what you intended

Awesome, thank you! Yes after talking to Patrick in a slack thread I thought this would be a good solution to allow the -dev variant to be used for building the app locally without having to deal with permission issues. It worked pretty well here :) I just updated the README to include instructions on how to use it.


Buffer overflow (and/or undefined behavior) in olm::Session::describe()

Describe the bug
I think there's a buffer overflow error in olm::Session::describe() because of incorrect buffer size handling, e.g. in snprintf().
If you pass a buflen smaller than the minimum space needed (e.g. 10) the size argument to the snprintf()s after the first one (e.g. line 415) will become negative. Since snprintf()s size is of type size_t (which in turn is defined as an unsigned integer) a negative value (due to its sign bit) will be interpreted as a very large positive number, causing snprintf() to overshoot describe_buffer.
This issue could be avoided if all snprintf() return values would be checked (e.g. at line 413) for being greater than or equal to its original size argument. If so, the target buffer was already too small and one should safely return.
To Reproduce
I'm using libolm via my JNA bindings and see VM crashes in unit tests where the supplied buflen is intentionally small (see above). I can't reproduce the problem in C only, since buffer overflows don't necessarily trigger an immediate error. Haven't yet checked with any kind of bounds checker but I think the error is pretty obvious, if I'm not mistaken.
Thanks

Can't find your contact details. Mind reaching out to<EMAIL_ADDRESS>


frontend/android: remove unused CONNECTED_DEVICE permission

Converted to draft as I want to do one more change

ping @benma, when you have time :innocent:

The commit message could have more info, it's missing the 'why' 🤓 But LGTM

Well, it says it is unused :D Anyway, I added some details


Integrate scikit-quant as new Optimizer implementation

https://github.com/scikit-quant/scikit-quant
We need to implement a new Optimizer plugin that delegates to scikit-quant. This can be done in one of two ways:

a C++ Optimizer implementation that delegates to pybind11 embed (just like in the mitiq decorator
a Python plugin like this version of the pycma optimizer

End result should be able to demonstrate the use of the optimizer with the VQE Algorithm
auto opt = xacc::getOptimizer("scikit-quant");
auto vqe = xacc::getAlgorithm("vqe", {{"optimizer", opt}, ... other options ... });

@joehellmers interested in this one?

Sure you can assign it to me.

It seems like we will need to include scikit-quant with our install.  How do we do that?  It seems like I saw qiskit and other packages being downloaded during the cmake part of the install.  Which file or files do I need to update to include it?

You should be able to implement optimize() such that if py::module::import("scikit-quant") fails then you can throw an informative xacc::error() message that informs the user that this plugin can only be used if they pip install scikit-quant.


i think this repo will not work on windows

i had this error
Warning: file_get_contents(http://product-service/): Failed to open stream: Connection refused in /var/www/html/index.php on line 11
Warning: Attempt to read property "products" on null in /var/www/html/index.php on line 14
Warning: foreach() argument must be of type array|object, null given in /var/www/html/index.php on line 16
I follow exactly like the video did. i also tried to clone the repo with no luck
also you cannot access this from your windows localhost too I think. tried different pc same output
http://<IP_ADDRESS>:5001/ ERR_EMPTY_RESPONSE

I can second this, when trying to launch a flask application I got filepath errors. On my linux machine the code worked fine.


fraud: An attacker can send invalid proof with arbitrary high height

This will block verification logic forever and a DOS attack.
The solution is to check the current network height and disallow proofs higher than it.
Found together with @nashqueue

Good find.


projectdirectorycheck does not override the PROJECT field in the response

Describe the bug
When lagoon list variables is executed from the directory of a git repo other than the [project] being queried the response includes the name of the project as it appears in the command and not the project the variable is associated with.
Scenario: lagoon-cli config projectdirectorycheckdisable: true is not defined and cmd is run from a git repo of a project other than the [project] being queried
To Reproduce
other-project-dir $ lagoon list variables -p example-project
Expected behaviour
15000	other-project	project 	global 	EXAMPLE_VAR
Actual behaviour
15000	example-project	project 	global 	EXAMPLE_VAR
I was caught out by this because I was focusing on the PROJECT field in the response.
Desktop (please complete the following information):

OS: OS X
lagoon 0.9.3

That repository local check is a feature I am in two minds about. I don't use it, and I don't know how many people do. Most issues are caused by it, so disabling it seems to be the way to go.
I have an open PR to disable it by default, and only enable it if someone wants to use it.
I am also hesitant to spend time on fixing the problems it has. If you or your team use the local directory check feature, I would love if you could let us know how it could work better for you (and if you wanted to have a crack at fixing the issues), otherwise I would love to deprecate it entirely.
The variable list command is the most frequent command impacted this feature too because it is a bit clunky when defining project/environment in general.
We are planning out a refresh of the CLI at the moment to change a lot about how commands are used, and this will be to primarily support lagoon2.

Closing this as it will likely be properly corrected in a refresh of the CLI. But for now the project directory check is opt-in in the latest CLI release, so this shouldn't crop up as often.


vendor InfluxDB core for the query engine changes

Re-apply the initial vendoring change from the master branch onto v0.10 so that the v0.10.x branch can be compiled.

@jonseymour Thanks for back porting this.


Android - BA - “Connect with Plaid” is always launched twice

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open Android App
Login with Expensifail account
Go to existing workspace or create new one
Go to Workspace > Bank account > Connect online with Plaid
Select any bank
Follow the flow

Expected Result:
At the end of the Plaid process, you will be taken to the application for further actions.
Actual Result:
At the end of the Plaid process, it runs a second time
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 11.3.73-0
Reproducible in staging?: Y
Reproducible in production?: BA connection cannot be checked in production
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/115492554/499fea04-044e-4352-bcc7-218bd370359c
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
View all open jobs on GitHub

@ginsuma are you flagging that this is a duplicate?

Ok, closing! Thanks!


Tree Widget: add eslint 'react/jsx-max-props-per-line' rule

No need to add after move to prettier.


Unable to specify mountOptions in the parameters of storageclass definition

kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: nfs
provisioner: storage-nfs.aws.event-cloud.net/nfs
parameters:
gid: none
rootSquash: "false"
mountOptions:
server: <IP_ADDRESS>
path: /data
This YAML file does not work. Not sure how to specify the mount option so the NFS drive can be mounted when volumes are requested by this storage class. The documentation does not provide any examples for this.
Any help will be much appreciated.
Thanks
-Praveen

The following works for me:
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
  name: example-nfs
provisioner: example.com/nfs
parameters:
  mountOptions: "soft"

Your mountOptions looks blank to me, can you post it again? It should be a quoted comma-separated string.
I will add an example to the documentation, sorry for that!

Note also this is new to v1.0.8

kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata:    name: nfs provisioner: storage-nfs.aws.event-cloud.net/nfs parameters:    gid: none    rootSquash: "false"    mountOptions: "<IP_ADDRESS>:/data"
I want to specific a specific server and mount path just like
apiVersion: v1 kind: PersistentVolume metadata:   name: nfs spec:   capacity:     storage: 10Gi   accessModes:     - ReadWriteMany   nfs:     server: <IP_ADDRESS>     path: "/data"
The provisioner is not picking up my storageclass definition parameters for some reason

Ok I see; server and path are not valid options, https://github.com/kubernetes-incubator/external-storage/tree/master/nfs runs as a standalone server. If you want the provisioner to create export directories in an existing NFS server, you must use https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client.

mountOptions refers to https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options which is just a mechanism to add extra options after "mount server:path...". Server:path is determined by the provisioner and filled into every PV it provisions like so:
  nfs:
    server: <IP_ADDRESS>
    path: "/data/pvc-asdf"

If you have time to chat more about what you want to achieve, find me @mawong on slack!

@wongma7 - Thanks a bunch for the prompt responses. The nfs-client did the trick. Sorry for having logged this as an issue.
Appreciate it
Thanks
-Praveen

No problem, that's what issues are made for! :)


Question: Where is Twint saved when I install it?

Hello,
I have installed twint in bash several weeks ago and it worked very well. Today, I wanted to scrap new tweets and opened bash to insert my command but it was said that the comand 'twint' is not available. Is it possible that I have no connection to twint? And how can I know where twint is stored on my Laptop (Windows)?
I used Python 3.6.5 the last time and know I deleted it and tried to install it again but it did not work.
Thanks for your help!
user$ twint
Command 'twint' not found, did you mean:
command 'twine' from deb twine (3.1.1-1)
command 'tint' from deb tint (0.05)
Try: sudo apt install
user$ pip3 install twint
Command 'pip3' not found, but can be installed with:
sudo apt install python3-pip
user$ sudo apt install python3-pip
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-pip' has no installation candidate
user$ pip3 install --user --upgrade -egit+https://github.com/twintproject/twint.git@origin/master#egg=twint
Command 'pip3' not found, but can be installed with:
sudo apt install python3-pip

Once you installed via pip3, run pip3 show twint and check for Location

Thanks for your answer. This does not work. I deinstalled Python 3.6.5 and installed Python 3.8.6 but I cannot install pip. Pip is in my modules but when I want to install twint or type in pip3 show twint, then I get the message that command pip3 is not found.
I found twint on my laptop but when I want to run twint.exe, then a window opens and just closes after one second.

Well if sudo apt install python3-pip doesn't install the package, maybe there's something wrong with your sources or else (external to twint, obv)
Can you replicate this?

For me twint is saved here - C:\Users*username*\AppData\Roaming\Python\Python31\Scripts


Check resources for analyze suppression codes

This change enforces the semantics from PR https://github.com/istio/api/pull/1227 - specifically, resources with the analyze annotation are checked against message codes and suppressed if they match.

@selmanj: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio
1d975823e1fd09bb75d5fea7224d5335c773d02a
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@selmanj: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio
1d975823e1fd09bb75d5fea7224d5335c773d02a
link
/test gencheck_istio

integ-istioio-k8s-tests_istio
1d975823e1fd09bb75d5fea7224d5335c773d02a
link
/test integ-istioio-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Some bugs in the current version of the dashboard

Hi Nico,
When trying the dashboard I ran into some issues:

[ ] there are two "Ondatra zibethicus" to select in species
[ ] when changing one parameter, for example species, the selected dates move
[ ]  I think it would be good if standard dates where set to the last full month, so now for example dates would be set from 1/6/22 to 30/6/22

If I understand correctly, it would be better to completely disable this logic and only show the occurrences from the last month, irrespective of which species is selected (of course, the users would keep the possibility to adjust the range as they wish)?

Yes, that is exactly what I mean 😊

The species issue should now be fixed at the data import level. (to be confirmed after the next daily import)

Apparently, all is good now.


Provide option to avoid tree walking during transpilation

I have a use case where I do not want deno_emit to walk the import tree when transpiling. When I tell it to transpile index.ts I only want it to give me the JS for index.ts, but not the JS for everything index.ts imports recursively.
My use case is that I don't want to have to specify which files are "roots" or "entry points" for transpiling. I want to say "transpile all TS files in this directory" so I can output them to another folder as modules rather than bundles.
Currently, I have three workarounds.

Walk the directory, call transpile for each TS file, pick out the current file from the returned map. This has the unfortunate side-effect of performing many redundant transpilations.
Create a main map, walk the directory, if the current file already exists in the main map, skip it, otherwise call transpile on the current TS file and add its results to the main map. This is more efficient, but it still walks the entire import tree.
Walk the directory, call transpile for each TS file, provide a load function that returns { kind: "module", specifier, content } for imports that match the current entry and { kind: "external", specifier } for those that don't, which seems to exclude it from the map. This is complicated and requires implementing something that could be built in, but it does prevent walking the entire import tree, so it's the most efficient.

This is complicated and requires implementing something that could be built in, but it does prevent walking the entire import tree, so it's the most efficient.

This seems to cover your use case very well. Is there a compelling reason to make this behaviour built-in?
Can you explain your use-case a bit more? Maybe this is something that we can expect other people to need, but it is hard to tell until we know the why behind the use case.

There are two use cases here.

Creating a JS library for browsers using Deno's tooling and ecosystem. While it may be standard to have one mod.ts file that re-exports everything, that isn't the only way to do things. In fact, I think that's bad practice for browser modules because it forces the browser to fetch all dependencies even if they're not needed for the current task. I'd rather just give deno_emit one directory and have it transpile all files inside it.
Creating a full-stack Deno web app. The browser scripts need to be transpiled from TS to JS, however I don't want to worry about which scripts are going to be entry points. Again, I just want to give deno_emit a directory and transpile all the files in it.

I suppose this could also apply to any project that has multiple entry points that rely on common code. For example, foo.ts ultimately relies on common.ts, and bar.ts ultimately relies on common.ts too. Both foo.ts and bar.ts are entry points, but since they both rely on common.ts, common.ts will get transpiled twice.
The behavior I'm proposing also mirrors tools like tsc and babel, which are transpilers, rather than webpack and esbuild, which are bundlers. In other words, it makes sense for deno_emit's bundle to accept entry points and walk the tree, but it doesn't make sense to me to have transpile walk the tree.

We also faced this issue in our project and implemented a transpileStandalone function in our fork of deno_emit, which provides this exact functionality.
As an alternative, we also created a standalone TS transpiler based on deno_ast/deno_graph, that takes TS module code as an input and returns the transpiled JS code.

I just wanted to follow up on this to see if this is something that sounds worthwhile to implement. I also want to emphasize that this behavior would mirror other transpilers like TypeScript's tsc and Babel.js.

Chiming in again to say that I've been investigating Bun as an alternative since its Transpiler does not walk the tree.
Bun has Bun.build for bundling, which walks the tree, and Bun.Transpiler which is a pure transpiler.

What are the limitations of the third workaround you proposed? It seems like it only takes a few lines of code. Is there something I am not seeing?


DateTimeType.copy() does not create exact copy

NOTE: Before filing a ticket, please see the following URL:
https://github.com/jamesagnew/hapi-fhir/wiki/Getting-Help
Describe the bug
Noticed this when using the copy() method in DateTimeType. Creating a DateTimeType from a date set precision of ms, but when doing the copy the precision field is not taken into account, so the copy will zero out the last 3 digits and thus the copy and the original will differ.
To Reproduce
Steps to reproduce the behavior:

Built a very simple rest:
```
Date d = Date.from(Instant.ofEpochMilli(123456578));
DateTimeType dttOrig = new DateTimeType(d);
DateTimeType dttCopy = dttOrig.copy();
assertEquals(dttOrig.getValue().getTime(), dttCopy.getValue().getTime());

Executing test gives:

org.opentest4j.AssertionFailedError:
Expected :123456578
Actual   :123456000

**Expected behavior**
That the fresh copy evaluates to the same as the original.

**Environment (please complete the following information):**
 - HAPI FHIR Version 4.0.3
 - CentOS 7.5.1804, kernel: 3.10.0-862.11.6.el7.x86_64
- JDK8 (1.8.0_192)

I found the same challenge in DateType, and likely also present in other time types.
Core issue seems to be copying from Date value, rather than string representation..copy();
This:
@Override
public DateType copy() {
return new DateType(getValue());
}
Should probably be this:
@Override
public DateType copy() {
return new DateType(getValueAsString());
}


Feature Request/Question: Extensible Code Inspections

Hey team,
I'm working on static-code analysis for Python, specifically security related.
I've written a plugin for PyCharm, using their PSI API that enables you to traverse documents, and write custom inspections and alerts. For example, this function is a custom expression visitor.
I'm trying to figure out if it's possible to write a similar code analysis extension for VScode/Python? So far I've looked at:

How the existing linters work, but they are spawned processes that the extension parses the text output, not integrated into the LSP
How the LSP works and the Python Language Server, but this project isn't extensible

Is it possible to write custom visitors that inspect the Python code inside VScode and then issue warnings back to the editor (I guess as another extension?)?

This seems like general a "writing a analyzer for python in VS Code question". This project isn't extensible in the manner you'd need (and that currently is not planned; we have other things we are trying to sort out).
If you are specifically trying to integrate with VS Code, you'd do this by writing a VS Code extension and using their APIs to fetch documents, subscribe to changes, etc, and do the linting there (in TS, or call out to another tool). This would likely be the shortest path to "just make something work in VS Code".
Or, you write a language server which does a similar thing, and a small extension that just launches a language server. Multiple language servers are allowed to operate on the same files, and if your only goal is diagnostics this would be very workable. There are libraries out there to lower the amount of effort to make a LS, namely the vscode-languageserver packages in TS which do all of the document-management work for you. If you're wanting to use Python itself (makes sense), I'm uncertain if there's something with the same functionality, but LSs definitely exist in Python itself.
In general, the LSP is very close to the VS Code APIs. I think you'll have the most immediate path of just using a VS Code extension to do something similar to what you're doing in PyCharm, and move out to the LSP if needed later.


#452 Add UI responsiveness to the main title, the ProgramPicker and the Calendar in the Program page

Authored by: @veranika-karpava
Proposed changes
This pull request resolves #452 by:

Displaying the main title, ProgramPicker and Calendar in rows on small screens and in columns on medium and large screens.
Adding responsiveness to the ProgramPicker using different font-sizes and widths for different screens.
Changing font-size for different screens in the Toolbar
Displaying only day view calendar on small screens
Not displaying buttons of view option on small screens
Changing font-size of the TimeRange in ActivityDialog for different screens

Small screen (min-width: 375px and max-width: 600px)
min-width: 375px :

max-width: 600px:

greater than 600px:

Checklist

[x] Are the issues being addressed linked to this PR?
[x] Do all commit messages start with the issue number?
[x] Are all code changes sufficiently tested?
[x] Are there screenshots for UI changes?

Great job! Everything works as expected in different screens. But the only thing I am getting error in the console for "Please update the following components: DayColumn".

Nice work! The responsive worked as expected on my end.
Before merging into main, please bring this branch update to date with main :)

@SanazDn Thank you for asking about this warning. I saw this warning as well. This something that we couldn't change because pre-build package. I asked about it Spencer.


Preventing redirect when offline

Hi,
My team is working on web application that utilizes PWA (Progressive Web Application) concepts & technologies (Service Workers, etc.). We're targeting complete offline and that implies the following workflow:

user logs into the app
user does his work (can be offline around 1 hour)
(optionally) user synchronizes his work when internet comes back

Currently, during middle point, sometimes token expires and oidc-client-js does redirect to our identity provider to get a new one. Is there any solution to prevent redirecting, e.g. while user agent (i.e. browser) goes offline completely)? I tried to remove data from sessionStorage although it gave no effect.

Normally your code is in charge of triggering the redirect by calling APIs like "signinRedirect". I'd expect it to detect the offline scenario and just not call these APIs.

Yes, I know that and we're already doing so. Just after user opens web app we're checking whether user is authenticated and so on.
My question is more about oidc-client-js doing redirect while being offline. To me it seems there's some kind of "timer" set based on expiration time. So when token expiration time passes, oidc-client-js redirects to authority to get new one. While being offline, this redirect simply fails.
So desired behavior would be to just "disable" this redirect while entering offline. When user would get back regular internet connection, we would "enable" it or just renew token manually.
Hopefully this description clears at least some of needs that we have 😄

My question is more about oidc-client-js doing redirect while being offline. To me it seems there's some kind of "timer" set based on expiration time.

Are you using the automatic silent renew feature?

Ok, so it sounds like you are. I'd suggest disabling that if/when you need. There's an API IIRC to do that.

Ok, I found this setting in my configuration and it's set to true. I don't see any other option than doing:
// setup
const config = {
	...otherRequiredProps,
	automaticSilentRenew: true
}
const userManagerInstance = new UserManager(config)

// when entering offline
userManagerInstance._automaticSilentRenew = false

// when leaving offline
userManagerInstance._automaticSilentRenew = true

It should do the job, isn't it?

start/stopSilentRenew: https://github.com/IdentityModel/oidc-client-js/blob/dev/src/UserManager.js#L414-L418

All set on this issue -- can we close?


Refine calling lazy providers in run-time

Right now this makes everything fail without an error message if a provider panics. Either:

Throw a nice error that this is forbidden, or
Support it

The first option is safer for forward-compatibility, so let's do that real quick, but ultimately this need to be thought through.

Guice lets you inject a Provider<T> and .get() it many times in runtime just fine. Not sure there's a real use-case for this in Go though. We don't have one just yet in our codebase.


Character duplicate when press tab

When I press tab, the first character in current command line will duplicate, and will not disappear till I press .  I am using iTerm, and please tell me if you want any further detailed configuration.

Seems like the calculation of columns is not right somehow. Before we go in detail with your configuration, could you try to disable the prompt "mark" in your iTerm settings (should be under Profiles/Terminal/Shell Integration/Show mark indicators), and see if that helps?

Hi dritter, it doesn't work....

Too bad. Could you post your ~/.zshrc?

Hi, please check http://paste.ubuntu.com/23650204/

Okay. Could you comment the following line ZLE_RPROMPT_INDENT=0. This always causes such errors. ;)

Btw. This will cause a gap at the right border. The common "fix" for that is setting the right indent to zero (as you did), but this has some side effects (like the one you observed). Unfortunately there is no good fix around for that. At least not that I know besides calculating the columns manually (which is a bigger issue)..

Hi dritter, thanks so much for your advice. Now it is normal, thanks again.

Nice work, @dritter! Happy you are up and running, @zhengnanlee!


Wiki skill lookup

See: https://github.com/runelite/runelite/pull/6708
Is your feature request related to a problem? Please describe.
N/a.
Describe the solution you'd like
Since we now have the wiki links and shortcuts, I would like to request the same for the skills.
Right click a skill, show a option like the quest guides and redirect to the skill page.
Describe alternatives you've considered
N/a.
Additional context

I would be interested in picking this one up, however I will need to set my computer up for Java development and the project... that might take a while


adding load_empatica_data function

Codecov Report

Merging #35 (091f37a) into main (9f9d9ba) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   97.30%   97.31%   +0.01%
==========================================
  Files          23       23
  Lines        1003     1007       +4
==========================================
+ Hits          976      980       +4
  Misses         27       27

Impacted Files
Coverage Δ

tsflex/utils/data.py
93.33% <100.00%> (+0.65%)
: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 9f9d9ba...091f37a. Read the comment docs.

LGTM!


Explore Voxels in Godot

During a first exploration, it seems this is the right project to follow:
https://github.com/Zylann/godot_voxel
And his main developer is pretty active now, after 4 years working in the project. Great commitment.
It is not a general voxels tool: «A C++ module for creating volumetric worlds in Godot Engine.«
It is for creating worlds.
It could be a nice thing to compare with https://www.voxelfarm.com/index.html

My first impresion is that it is just limited to the world, so the players for example are not voxelized. But it is the same in Voxel Farm. It is not 100% voxelized like Minecraft for example.

Ok, in order to use it it seems I will need to compile Godot with this module included.
"Voxel Tools is a custom C++ module for Godot 3.1+. It must be compiled into the engine to work."
https://github.com/Zylann/godot_voxel/blob/master/doc/01_get-started.md
First step, compile from sources Godot for Linux:
https://docs.godotengine.org/en/latest/development/compiling/index.html
Right now I am on Fedora so:
sudo dnf install scons pkgconfig libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel \
    libXi-devel mesa-libGL-devel mesa-libGLU-devel alsa-lib-devel pulseaudio-libs-devel \
    libudev-devel yasm gcc-c++

and
scons -j8 platform=linuxbsd
It is easier that I have expected!

I have a first issue with:
[godot](3.2.2-stable)$ handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib64/libc.so.6(+0x3ca70) [0x7f584512ba70] (??:0)
[2] VoxelDataLoader::push(VoxelBlockThreadManager<VoxelDataLoader::InputBlockData, VoxelDataLoader::OutputBlockData>::Input const&) (/home/adelcastillo/devel/godot/godot/modules/voxel/terrain/voxel_data_loader.h:36)
[3] VoxelLodTerrain::send_block_data_requests() (/home/adelcastillo/devel/godot/godot/modules/voxel/terrain/voxel_lod_terrain.cpp:576)
[4] VoxelLodTerrain::_process() (/home/adelcastillo/devel/godot/godot/modules/voxel/terrain/voxel_lod_terrain.cpp:946)
[5] VoxelLodTerrain::_notification(int) (/home/adelcastillo/devel/godot/godot/modules/voxel/terrain/voxel_lod_terrain.cpp:440)
[6] VoxelLodTerrain::_notificationv(int, bool) (/home/adelcastillo/devel/godot/godot/modules/voxel/terrain/voxel_lod_terrain.h:20 (discriminator 14))
[7] Object::notification(int, bool) (/home/adelcastillo/devel/godot/godot/core/object.cpp:934)
[8] SceneTree::_notify_group_pause(StringName const&, int) (/home/adelcastillo/devel/godot/godot/scene/main/scene_tree.cpp:985)
[9] SceneTree::idle(float) (/home/adelcastillo/devel/godot/godot/scene/main/scene_tree.cpp:525 (discriminator 3))
[10] Main::iteration() (/home/adelcastillo/devel/godot/godot/main/main.cpp:2100)
[11] OS_X11::run() (/home/adelcastillo/devel/godot/godot/platform/x11/os_x11.cpp:3265)
[12] /home/adelcastillo/devel/godot/godot/bin/godot.x11.tools.64(main+0xfa) [0x14dc6e0] (/home/adelcastillo/devel/godot/godot/platform/x11/godot_x11.cpp:57)
[13] /lib64/libc.so.6(__libc_start_main+0xf2) [0x7f5845116042] (??:0)
[14] /home/adelcastillo/devel/godot/godot/bin/godot.x11.tools.64(_start+0x2e) [0x14dc52e] (??:?)
-- END OF BACKTRACE --

Bug fixed, we can continue testing the module.

The more impressive demo and tutorial is this video: https://www.youtube.com/watch?v=zfzmcbR1H_0
But let's follow the tutorials before working with the video contents.

https://github.com/SIsilicon/Godot-Volumetrics-Plugin to have a look!

Ok, let's continue playing with this voxels module because it is what we need in Voxelers. Let'c complete all the tutorials and to study the API and source code. The idea is to use voxels not only for then terrain, but also for other objects, like models imported from MagicaVoxel for example.

Let's follow all this work in https://github.com/Voxelers/3d/issues/6

Ups, I have not detected:
https://github.com/ClarkThyLord/Voxly
https://github.com/ClarkThyLord/Voxel-Core
a pretty young project that seems to have stopped ...

Interesting recent discussion with no new clues about Voxel support in game engines.

I will continue in #53


Dashboard feedback

@epintozzi @bermannoah @NZenitram
Current user's feedback now shows on dashboard! Merge when ready.

@annadolan awesome!


Issues with SMB/NFS shares volume bind to docker container

I happen to have issues accessing smb/nfs shares that are mounted on the host system.
I can bind just fine using other docker containers but not one I build for swingmusic (as documented in this repo):
This is how it partially detects the folders:

Once you select any of the folders, nothing else is visible

I first assumed it having to do with spaces, then I remembered other containers such as Plex, Jellyfin, etc have been recognizing them fine for years without even needing the escape character "".

Hello @gerryflux
I have never tested the app with NFS. I don't understand how NFS works for now, so I can't provide much help for now. The app has only been tested with a local filesystem.
I plan to support NAS in the near future, it has been asked about multiple times.

I plan to support NAS in the near future, it has been asked about multiple times.

Great to hear it's at least in the plan. It makes sense since most people with massive collections of media (music, photos, movies etc), use NASes for its added capacity, redundancy and speed. So having a way to bind to such volumes would be a God-send.

I hope there is support for mounted drives in the future! It's the only way I have to access my music stored on the NAS!

Closing this for now.