Crashes on raspberry pi 3b

i tried putting games on it such as flying through time but after a few seconds it freezes and crashes, i've tried retropie, batocera, recalbox 7 & 8, and they all do the same thing.

Hi @ShrimpCat23,
Thanks for trying McAirpos and sorry for my late reply.
I had several challenges for both compiling and running this game, Flyting Through TIme, myself as a Linux ARM .elf executable;
https://arcade.makecode.com/gamejam/time#:~:text=Third Place (tie)%3A Flying Through Time
First, I got an error in the current MakeCode Editor(v1.12.51) that the file was too big for the target hardware(RPi).
If I stripped a lot of memory heavy assets from the game(images and music) or went back to an earlier editor, for instance v1.11.1, the game would compile.
But then, on execution, I would get the same error symptoms as you describe.
The log, /tmp/McAirpos.log, then showed me a Segmentation fault, indicating, apart from the size it self, some memory problems, which earlier were suspected to have been caused by some extension or operation that are not supported by Linux hardware/executables in MakeCode Arcade.
The Linux .elf executable compilation in MakeCode Arcade is not as actively maintained as the web simulator and other hardware. As such, the functionality(and game size) one can expect to work here is therefore a subset of what would work in the web simulator. This subset is probably also getting relatively smaller over time, as MakeCode arcade is developed, and also Linux and the retro gaming systems themselves.
https://arcade.makecode.com/hardware
There is already an example here for an advanced MakeCode Arcade game, which gets an error on Linux:
https://github.com/microsoft/pxt-arcade/issues/4847
Other current games, but smaller, less advanced and with fewer extension, I have recently compiled and tested from the current and most recent version of the MakeCode Arcade editor.

Have you tried to run your crashing games on Microsoft's official firmware for Raspberry Pi(or other supported hardware, like the Meowbit) and checked if it runs there?:
https://learn.adafruit.com/makecode-arcade-with-raspberry-pi-zero/firmware#firmware-3-1
If not, please file an issue here instead:
https://github.com/microsoft/pxt-arcade/issues

so i tried putting the game flying through time on my meowbit, but the file was too big.
not only did McAirpos crash on flying through time, but other games, such as blocky boss battle or jumpy platformer.
they dont crash on my meowbit, just McAirpos.

Could you check if this jumpy platformer version also crashes on your McAirpos setup?:
https://drive.google.com/file/d/1xl-M6DyHflIE1A9BNS8yNUPrOyNzCGPr/view?usp=sharing
If so, what system(hw and OS) are you on, and could you send me a copy of your /tmp/McAirpos.log right after you have started the game and it fails?

Sorry if i haven't gotten back to you yet, but you you want to join a discord server with me, sarge, pixeldoodle, etc on it? (it you even have discord XD) https://discord.gg/zyf4qNTT there's the link if you wanna check it out.


General Support

Hey this helped my project immensely. Is there a support page where I can donate? I feel slightly off for not providing any monetary support. Would love to give you some coins
Akeem Spencer

@aspencerpsu Thanks! I'm glad it has been helpful. This is a part of the bigger tutorial here - http://serverless-stack.com
And we have a Patreon page up as well. https://www.patreon.com/serverless_stack


Notebooks feature

VS Code recently gained support for notebooks, which is absolutely awesome. Since monaco brings VS Code's excellent editor to the browser, it would seem that bringing notebooks to the browser could be a doable step.
This could prove to be especially useful for building web-based notebooks. Think Jupyter/Observable/Pluto.jl, but built on top of monaco.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


Crash: thread 'main' panicked at 'Bad DistanceInterval ... sim/src/lib.rs:430:13

I'm getting a frequent crash at sim/src/lib.rs#L430 It occurs after a few (game-time) hours of simulating huge_seattle with weekday_typical_traffic_from_psrc, if another crash doesn't happen first.
thread 'main' panicked at 'Bad DistanceInterval 53.974m .. 37.974m', sim/src/lib.rs:430:13

Attached a few logs of the last minute of console output with backtrace.
lib.rs-430-1.txt
lib.rs-430-2.txt

Not offhand sure what's wrong here. I haven't attempted running the full scenario on huge_seattle in a while, so I'll give that a try in the next few days and crunch through all of these issues. Thanks for the logs!

So a pedestrian had to walk really far to get to their car. When they finish getting in, turns out the best parking spot is the one they just left -- because the car happens to be parked all the way by their destination. There was a bug in the code to handle finding a parking spot on the same lane. Fixed it, so now they very realistically get in the car, wiggle out of the parking spot, realize they're silly, then wiggle right back in.


About Us: Add Nam and change team name

We will have conflicts due to multiple changes to the part apart from adding our own description. As for the roles, According to the instructions we were supposed to assign the roles that were given and possibly some additional. Now we will end up having possibly all three leaders with very few other functions assigned.  Hopefully we can communicate better on the future meetings.

We will settle the merge conflicts, should any arise. But in your PR you should have removed the other SE Developer and only include yourself, as stated in the instructions.
I don't see where three leaders is from. Project management is completely different, and it encapsulates the three tasks that I am in charge of, that are Code Quality, Deliverables and Deadlines, Scheduling.

Ok. I am good with everything as long as they are fine with this definitions.


Compile different war files for different Gaffer stores

Currently the rest-api.war file doesn't not contain an Gaffer store dependencies. This means it can't be used directly. It would be useful to create an accumulo-rest.war, map-rest.war, hbase-rest.war, etc.

Merged into develop.

Migration Steps
The rest-api module has now become a parent pom.
The code from the old rest-api module is now in the core-rest module.
If you need a rest api backed by an Accumulo store then use the accumulo-rest war instead of having to package your own war file with the Accumulo store dependency in.


32 bit version of appimage

Hi all,
i really to use test franz but i have 32bit Linux OS , so will you provide us a 32bit Appimage or 32bit Deb of franz ?
Thanks.

Hello,
I wish to use Franz on a 32-bit architecture too... So, yeah, just letting you know there's people who would apreciate a x86 version of Franz.


Issuing credits to Judith

Issue 1000000 credits to @jdthamores.

 Follow up
On Tuesday, 27-Feb-24 22:19:11 UTC by Gov4Git dev
Could not issue 1e+06 credits to member @jdthamores. Reopen the issue to retry.
Because: file does not exist


Replace front-door with traffic manager

I would like to replace Azure Front Door with Azure Traffic Manager because of need to support Layer 4 TCP Connectivity. Any advise on this scenario ? I can see that the magic happens in frontdoor.tf. Most likely this will have to be changed as traffic is handled differently in Traffic Manager and there is no need for CDN.
Any advise in the right direction will be appreciated.

Duplicate of https://github.com/Azure/Mission-Critical-Connected/issues/551


Replace OpenSSL hash functions with built-in implementations

Introduces the classes CSHA256 and CSHA512 in crypto/sha2.{cpp,h}, CSHA1 in crypto/sha1.{cpp,h} and CRIPEMD160 in crypto/ripemd160.{cpp,h}.
The HMAC-SHA512 implementation is moved to sha2.{cpp,h} as well, with a similar interface.
In hash.h, CHash256 (=double SHA256) and CHash160 (SHA256 + RIPEMD160) are added.
The rest of hash.h is refactored to use those classes.
The internal miner is also modified to use CHash256 (hiding the inner SHA256 workings).
The getwork() RPC call is removed.
The getworkaux() RPC call is removed.

Derived from bitcoin/bitcoin#4100

Restarted Travis casue it stalled

I'm doing some tests and expect to have some small, additional patches

Going to give this a try now.
@patricklodder: I think it would be okay if you submit your patches afterwards in a separate PR. Leaving this here open holds up progress on the spreadsheet of doom ;D

Looks good with the last addition. Merging for now so we can progress further with the other things. Thanks :)


Very Slow ELK Events

I'm currently running ELK Node Server v3.9.0 on a Polisy Pro running IoX Version 5.7.0 with PG3x Version 3.2.6.
I've noticed significant Polisy Program delays when an ELK door sensor or motion detector is violated. I've seen delays as long as 10 or 15 seconds from the time the ELK sensor was violated. This delay condition seems to happen only after Polisy has been running for a day or two.
FYI; This condition was experience prior to the recent 5.7.0 upgrade. It appeared somewhere along the line of IoX, PG3x and Node Server updates but don't know for sure when.
I've found performing just a reboot of Polisy temporarily resolves the issue and makes ELK events very responsive again. I've also tried disabling and reenabling just the ELK Node Server, but it didn't appear to resolve the delay issue.
Invoking the Polisy reboot, or Upgrading Packages on Polisy (which reboots) resolves the issue every time. It behaves as if system resources are being consumed after running for some time that requires a Polisy reboot to resolve.
I've reviewed logs but haven't seen anything conclusive. Please let me know if you need to see specific logs.
I'd appreciate your assistance to help resolve this issue.

My guess would be that something else on your Polisy is chewing up all the cpu and slowing everything else down.  Can you ssh to your polisy, run the command "uptime" and show me the output?
In the PG3 UI under Elk node sever -> Log -> Change "Level" to "Debug + Modules" then activate a sensor, then Download Log Package, and email that file to me at<EMAIL_ADDRESS>and tell me the sensor name.

Thanks for the quick response.
I rebooted my Polisy earlier today, so the ELK related events are currently working fine. I suspect the problem will begin to appear tomorrow or the next day. I'll provide the additional information needed when the condition reappears.
Thanks again!

I noticed ELK event slight delays after my Polisy Pro was running (since its last reboot) for 1 day and significant delays after running for 2 days. I've since simulated the problem with the ELK Node Server Log level set to Debug + Modules and sent a copy of the log file via email to<EMAIL_ADDRESS>The ELK Zone used for the test was zone_30:Master Motion.

I currently have a ticket open with Universal Devices. They'll be taking a look at my system remotely.
I refrained from rebooting for a couple of days and the delays are currently around 12 seconds long.  Will provide an update accordingly.

Universal Devices accessed my Polisy system. It appears upgrading PG3x to Version 3.2.8 on the existing IoX Version: 5.7.0 and removing an unselected IoX entry resolved the delay issue. My Polisy has been running for several days and no longer experiences ELK Node Server delays.

Thanks for the details.


feat: rambo remove fox missions

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5761   👈

This stack of pull requests is managed by Graphite.


Flying Ghost Animation[GSSOC'23]

Describe the project you want to add with tech stack

Flying Ghost Animation
Expected behavior

Hello Sir,
I want to add my new CSS animation project on Flying Ghost Animation where we can see a cute ghost is flying. I have made it using HTML & CSS.
Screenshots (optional)

Additional context (optional )

Please assign me this issue under GSSOC'23.

@MohitGupta121 @pranjay-poddar @TusharKesarwani please assign me this issue under GSSOC'23.


Add method of intercepting how atlases and sprites are loaded

This should be exposed as a set of functions:
disarm_import_from_string(armature, {
  atlas : function(_path) {
    return "{ }"; // no atlas
  },
  image : function(_path) {
    return spr_player;
  }
});

this has been implemented long ago, I just forgot to close the issue
.. see ya!!!


Support enumerated types

Diesel does not currently support enumerated types created with PostgreSQL.
Documentation on enumerated types can be found here.
More documentation on CREATE TYPE can be found here.
Example
CREATE TYPE track_type AS ENUM ('download', 'stream');

CREATE TABLE track (
  id SERIAL,
  type_ track_type
);

When compiling, the generated code expects a type named like the custom data type.
error: type name `Track_type` is undefined or not in scope [--explain E0412]
 --> src/lib.rs:1:1
1 |> #![feature(custom_derive, custom_attribute, plugin)]
  |> ^ undefined or not in scope
<diesel macros>:5:1: 5:71: note: in this expansion of table_body! (defined in <diesel macros>)
src/schema.rs:4:1: 4:37: note: in this expansion of table! (defined in <diesel macros>)
src/schema.rs:4:1: 4:37: note: in this expansion of infer_schema! (defined in src/lib.rs)
help: no candidates by the name of `Track_type` found in your project; maybe you misspelled the name or forgot to import an external crate?

FYI in SQLite you could try to do something similar with a text column and CHECK:
CREATE TABLE track (
  id INTEGER PRIMARY KEY,
  track TEXT CHECK(track IN ('download', 'stream')) NOT NULL
);

Is there currently a good way around this? Like a custom de/serializer?

As an outsider who looked through the code to figure out if there is a way to do this, it appears that supporting a user-defined Postgres type requires knowing the object identifier that is in use for that type. In the case of enums, this requires extracting information from pg_type and pg_enum tables. All told, you're looking at:

Getting your type information out of relevant postgres system catalogs. You'll need to refer to pg_type and pg_enum, along the lines of:

select pt.typname, pt.typtype, pt.typcategory, pe.enumlabel, pt.oid
  from pg_type pt
  inner join pg_enum pe on pe.enumtypid = pt.oid
  where pt.typcategory = 'E';

Creating peer/placeholder types, analogous to diesel::types::Date, for each type so discovered.
Registering these types with diesel. Refer to diesel/src/types/impls/ for examples.

Since runtime database information is needed, some sort of codegen macro along the lines of infer_schema! seems necessary. I'll probably take a crack at this over the next few days, but I can't promise much.

I've put together a rough, partial implementation of Postgres enum support, which creates a macro called infer_enums that acts much like infer_schema, except it creates Rust types for each enum type it discovers in the database. Please be aware that these changes are owned by Google and not actually mine to redistribute until I get a copyright release, so I've (temporarily) deleted my public fork. I hope that I'll get an okay to make my changes public after the Christmas holiday.
Unfortunately, there are currently a few assumptions about type definitions that make it difficult to use custom enum types in tables:

It is necessary to create a fresh impl of HasSqlType for each type that infer_enums discovers, but you cannot do that outside of the diesel crate. I think this can be worked around, but at present I don't see how to do this without a significant refactor.
infer_schema assumes that column types correspond to types declared in the namespace diesel::types, which is no longer true if arbitrary new enum types can be created in other crates.

I haven't actually done the legwork necessary to know how to deal with encoding or decoding enum values to/from raw bytes for handoff with Postgres. I assume that this will essentially entail handling type-tagged integers.
Finally, handling schemas correctly is on the back burner until everything else is taken care of. It'll require an additional join.

I've been able to address (1) and (2), but getting everything working in the integration tests has run head-long into #348. If anyone has successfully figured out the minimal footprint of traits needed to make a simple, atomic SQL type, some documentation or example code would be welcome.

Oh, wow! That sounds great! Thank you for digging into this!
Currently, the SQL types and the Rust types are divided; the table! macro
will contain a SQL type and a struct with e.g. Queryable has the ability to
deserialize these types into the actual Rust types it contains. What you
described sound like for an inferred enum, SQL and Rust type are the same.
I haven't thought much about this, maybe it makes sense. Just thought I'd
mention it.
@jethrogb was on Gitter a few weeks ago and wanted to implement a
custom type. Maybe you can get some additional information from the log
there.
Happy holidays!
Stu Black<EMAIL_ADDRESS>schrieb am Sa. 24. Dez. 2016 um 07:50:

I've been able to address (1) and (2), but getting everything working in
the integration tests has run head-long into #348
https://github.com/diesel-rs/diesel/issues/348. If anyone has
successfully figured out the minimal footprint of traits needed to make a
simple, atomic SQL type, some documentation or example code would be
welcome.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/diesel-rs/diesel/issues/343#issuecomment-269072202,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABOX8AJ9cTIqXkGKoakndQpU0iVYeriks5rLMCugaJpZM4IlWGG
.

My pleasure. I suspect that it will not be too difficult to extend this work to create Rust struct types automatically from user-created composite types in Postgres, and I'm also considering that.

What you described sound like for an inferred enum, SQL and Rust type are the same. I haven't thought much about this, maybe it makes sense.

That is exactly what the current implementation does.  I have wondered a bit as to whether this is really the right thing to do, but I still believe it is. It might be a good idea store some metadata with the generated type (probably in a static impl of some DieselEnum trait), but I see no reason to stick it on a separate "backend" type. Future extensions might be backend-specific, such as when creating proper Rust enums for MySQL enum columns or providing an impl of Cmp that matches the ordering that Postgres imposes on enum variants, but I don't see a particular need for a different type.
There is probably a long-range design issue lurking behind the scenes here. I've already run into a few instances of code assuming that SQL types live in diesel::types, and the proposed change for #429 also does that. I'm working around this for now with a hard-coded list of built-in SQL types, but that seems a poor solution. If types are going to be generated during compilation like this, a compile-time type registry might be a very good idea. Otherwise, we are going to be left with relying on heuristics to determine how to resolve a given type name. For now, the heuristic is: if the type is builtin, resolve it absolutely in diesel::types, or else resolve it locally because a macro just generated it in the current namespace. This is brittle.

@jethrogb was [on Gitter][1] a few weeks ago and wanted to implement a custom type. Maybe you can get some additional information from the log there.

I think I have the necessary traits implemented, but I'm still running into problems. A second pair of eyes will help once I have permission to share a patch.

Hey @sgrif, does your comment and gist here still apply as a valid workaround until this issue is sorted?

I just got the OK to contribute and copyright release from my friendly neighborhood corporate overlords, so I'll reinstate my fork soon.

Feature bumps and deprecations from the 1.15 release and deprecation of custom_derive (https://github.com/rust-lang/rust/issues/29644) seem to have complicated things a little bit. I note that sh bin/test integration no longer runs successfully on the master branch (under rustc 1.16.0-nightly (47c8d9fdc 2017-01-08)). I believe that I was previously able to run that command to success on top of my changes in late December, on some older rust nightly. Please let me know what I should be doing to run tests.
I've pushed what was (more or less) working back in December to the custom_types_in_database_columns branch of my fork. I'd open a PR, but I don't think things are quite working yet. What's the deal with the test script?

Try rebasing on master and running on beta

The most significant test failures seem to be #571, which is not directly related to adding support for enums. With a fix patched in locally, the problem I am currently running into is that types which are declared in a dummy namespace by infer_enums! don't seem to be visible when they are used in table declarations generated by infer_schema!. For example, diesel_tests/schema.rs currently reads:
infer_enums!("dotenv:DATABASE_URL");
pub use self::__diesel_infer_enums::UserType;  // Inserted by hand; shows that the type exists.
infer_schema!("dotenv:DATABASE_URL");  // Errors here because UserType isn't known.

I have tried changing the table declarations generated by InferSchema so that they use a relative type name. This is done in diesel_codegen_shared/src/schema_inference/pg.rs, where the path to non-builtin types is constructed. Using a type like super::UserType or super::__diesel_infer_enums::UserType doesn't work. In fact, if a type name like super::UserType is provided, the compiler helpfully says:
error[E0412]: unresolved type `super::UserType`
 --> tests/schema.rs:7:1
  |
7 | infer_schema!("dotenv:DATABASE_URL");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no resolution found
  |
  = help: possible candidates are found in other modules, you can import them into scope:
  = help:   `use schema::__diesel_infer_enums::UserType;`
  = help:   `use type_inference::postgres::__diesel_infer_enums::UserType;`
  = note: this error originates in a macro outside of the current crate

I suspect that converting a literal "self" or "super" with syn::PathSegment::from is not quite the right thing to do, since those are keywords that may require special treatment. But that does not explain why UserType wouldn't be visible when it is being exported explicitly with pub use.
A couple of different hacks (running infer_enums! in its own module and importing from that, trying to do enum declaration and table schema declaration in the same procedural macro) haven't panned out so far.
I'll have to try to boil this down to a simple example to verify it, but this is acting an awful lot like the enum types whose declarations I'm generating are not visible in the code that generates the table schema.

You can work around the question of how to look up dynamically generated types by requiring that the user specify the module where any non-builtin types can be found, so that's how things now work. This isn't great (and raises questions about how to deal with types derived from schemas, which one might reasonably want to live in sub-modules), but it looks like it works for now.
I must have been recollecting wishfully when I said that I thought most tests were passing earlier. I'm now running into some deficiencies in implementing the interfaces needed to make a custom type queryable/insertable/updateable/etc. This is all in diesel_codegen/src/type_inference.rs. An experienced eye there would be very helpful in noticing any obvious omissions or deficiencies.

I continue further discussion of the implementation I'm working on in #580.

#580 has been closed as discussed there. (It needed to be factored apart and fell too far behind diesel main.)
I have been swamped with events at work and in my personal life, and this has prevented me from pulling a set of new PRs together. I'd be happy to discuss this further with anyone who is interested in getting a PR together sooner, and I will share whatever I can put together, when I can.

I just encountered this bug. Not having this feature means I'm (at least for now) switching from strongly-typed enums in my database to varchars... which is not great. I would love to have this feature.

@dstu it would be nice if inferring schema is not required, other than perhaps creating a first example of a Rust enum (which might then be renamed, while keeping some annotation or so for the name used in Postgres).. and then connecting the dots upon actual connect, rather than having any kind of ids hardcoded. Or did I misunderstand you there when you mentioned "Since runtime database information is needed, some sort of codegen macro along the lines of infer_schema! seems necessary" ?

FWIW, if working with pg enums in diesel meant having to define a rust annotated struct (or... enum?) to represent the pg enum, that'd seem totally reasonable to me.

So I'm going to close this as a duplicate of #162. At this point, everything needed for absolute minimum "support" for PG enums is there. We even have a test case for this in Diesel itself.
I'm aware that this requires more code than people would like right now (this is true of implementing new types in general, not just enums). #162 is the tracking issue for that, and is going to be the main focus of 1.1.
Ideally you'll just need to provide an impl of ToSql, FromSql, and HasSqlType (I originally wanted to have the rest of the traits come from blanket impls, which requires changes in the language, and is why there hasn't been much movement on this. At this point I'm thinking we'll just provide some derives for the other traits).
At this point, I do not want to provide any special support for PG enums (e.g. infer_enums!(), diesel print-enums, or #[derive(PgEnum)]). Such a feature would have to have some very strong opinions on the mapping, that I don't want to have in Diesel. That said, there's no reason that one of those features couldn't be supplied by another crate. I'm happy to help someone with the initial implementation of such a crate, but I wouldn't want it under the diesel org.
TL;DR: Custom types in general are "supported". It's going to get more ergonomic in 1.1. We aren't going to provide special handling for PG enums.

I don't necessarily agree with the decision, but I appreciate the way you're approaching the situation. I personally think enums are important enough to be a special case, but as long as it is possible to support them in Diesel, that's good enough for me. As you said, an outside crate could be developed to provide an opinionated solution to this issue that could act as a way to reduce boilerplate for those who are interested.
Looking at the example code you linked to, it seems pretty reasonable to me. My only real question at this point: is using infer_schema! is possible with a database that has custom types in some/all of the tables? I've been busy with other projects for awhile now, but from what I recall, infer_schema! might have actually generated code which could not compile in such cases, and I don't remember finding a way to inject the custom types into the namespace that infer_schema! created.

Not at the moment, but using diesel print-schema works
On Sat, Dec 16, 2017, 3:11 PM Josh Leverette<EMAIL_ADDRESS>wrote:

I don't necessarily agree with the decision, but I appreciate the way
you're approaching the situation. I personally think enums are important
enough to be a special case, but as long as it is possible to support
them in Diesel, that's good enough for me. As you said, an outside crate
could be developed to provide an opinionated solution to this issue that
could act as a way to reduce boilerplate for those who are interested.
Looking at the example code you linked to, it seems pretty reasonable to
me. My only real question at this point: is using infer_schema! is
possible with a database that has custom types in some/all of the tables?
I've been busy with other projects for awhile now, but from what I recall,
infer_schema! might have actually generated code which could not compile
in such cases, and I don't remember finding a way to inject the custom
types into the namespace that infer_schema! created.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/diesel-rs/diesel/issues/343#issuecomment-352215549,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABdWK3CVhaMcOvmOk96IWmiPhbmxc-mqks5tBD_6gaJpZM4IlWGG
.

As @weiznich pointed out in gitter, it's inconvenient to provide custom types (including enums), so probably the best way to do is via the crates:

Each backend has a completely different way to represent values send over the "wire"
Only postgres supports real custom types, neither sqlite nor mysql do this ("enums" can be done with check constraints there)
Even on postgres it's not clear how to represent a enum on sql side, as there are multiple solutions:

map to an custom enum type
map to a foreign key reference
map to an integer value
map to an string value
…

Given those point's it's just not possible to write a generic FromSql/ToSql impl, as those impls just depend on your own requirements, so you need to define how to translate them to/from the database.
(Just to clarify that: It's not different to for example Int4, diesel does internally just the same for the built-in types, it just defines how the conversion happens there, as it is clear for those cases . The answer is: You can exactly tell how to map postgres Int4 to a rust i32 as you know the representation of both types while writing diesel. You cannot tell this for arbitrary custom types, as you neither know the rust nor the sql representation for the general case.)


Patch 2

I added a "Device uptime calculation" query in "General queries" category.

I could run my query in advanced hunting. But I changed the line of last parenthesis not to make a mistake at copy and paste. Be sure to include the last parenthesis because latter half of the query are under "partition by DeviceId".


KAFKA-6494; ConfigCommand update to use AdminClient for broker configs

Use new AdminClient for describing and altering broker configs using ConfigCommand. Broker quota configs as well as other configs will continue to be processed directly using ZooKeeper until KIP-248 is implemented.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/228/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/229/

@hachikuji Thanks for the review, I have addressed the comments.

Ran tests locally on 1.7 and 1.8. Merging.


Update migration guide required parameters

I encountered this error following the upgrade guide:
│ The given value is not suitable for child module variable "backends"
│ defined at
│ .terraform/modules/environment.lb_https/modules/serverless_negs/variables.tf:58,1-20:
│ element "server": attribute "port_name" is required.

I changed port to port_name, and it worked fine.

/gcbrun

@dbburgess
Thanks for the PR! 🚀✅ Lint checks have passed.

LGTM
@apeabody can you plz merge?

/gcbrun

Thanks for the contribution @dbburgess!
@imrannayer merged :)


Remove GitHub Action set-output Commands Before May 2023

GitHub's set-output command is deprecated and so we must stop using it before May 2023. Even now its use generates warnings within workflows that are undesirable, especially for our demonstrations. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Instead of writing set-output commands to STDOUT, our CLI should instead open and append to the environment file provided by GitHub. The filename is the value of the environment variable GITHUB_ENV.
I'd also like to automatically detect when our CLI is invoked within a GitHub Action.  The GITHUB_ACTIONS environment variable can be used for this; its value is always true within a GitHub Action runner environment.
This will require coordination with the preview-action repository to use the new environment variables specified by this new feature.
Leave the existing --output=github-action behavior unchanged for backwards compatibility but add comments to remove this after May 2023.

Implemented here https://github.com/UffizziCloud/preview-action/pull/35

I do not think this was implemented. This ticket was for the CLI itself. It's still outputting as seen here: https://github.com/nocodb/nocodb/actions/runs/3623455656/jobs/6109341931#step:16:21

Test Cases

Instead of writing to GITHUB_ENV, it's probably better to use GITHUB_OUTPUT, which may not have been available last October.

https://github.com/UffizziCloud/uffizzi_cli/issues/214 implemented in the same branch

Open a new PR:

Update a preview:

TESTED - OK

TESTED on prod -


Create a Dropdown to modify Imported Courses' Status

Description
Imported Courses can be added by using the Import Course Participants button on Course Management Page and uploading a csv file containing the term, course number, as well as the participants B-Numbers and Full Names. The status of these courses is subject to change, upon individual review from the Imported Courses table and Edit action. However, instructors/faculty should be able to select a number of courses or all the courses after the import process and change their status into "In Progress".
Enhancement
The creation of a dropdown is suggested, through which the list of Imported Courses would be displayed. In that case, an admin can select the desired number of courses and change their status all at once.
Navigation Steps

Launching the Application: Begin by opening the application using the normal setup and running process.
Navigating to Course Management: Look for the 'Course Management' option in the navigation bar and select it.
Importing Course Participants: Inside Course Management, find and click on the 'Import Course Participants' option. Here, you will be prompted to upload a file. Please upload the file located at "celts/tests/files/parseUpload_ValidTest.xlsx".
Reviewing Upload Details: After uploading, a modal will appear displaying the details of the courses and participants set to be added.
Viewing Imported Courses: Finally, navigate to the 'Imported Courses' table to see the list of courses that have been successfully imported.

Best of Luck !!!

 Create a Dropdown to modify Imported Courses' Status

We Talked with Brian, and we determined that a dropdown to modify imported courses would not be necessary for Imported Courses. Since there will not be a large number of courses, a feature to select all of them would not be useful enough.


Avoid using a closure in the render loop when pushing model draw commands

ModelSceneGraph.pushDrawCommands() was using an anonymous function, which means a closure was being allocated every frame. with a scratch variable and a private function, I was able to avoid the allocations.
I still want to verify in the DevTools profiler that this makes a noticeable difference, but otherwise this is ready for review @j9liu

Thanks for the pull request @ptrgags!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

@j9liu There were a few few other similar closures in ModelSceneGraph so I gave them the same treatment. They aren't always called every frame like pushDrawCommands() is, but it doesn't hurt to have.

@j9liu updated!

@ptrgags merging now, thanks!


Fix IPsec RADIUS secret

Add double quotes around the RADIUS secret to prevent some corner cases where the secret was not fully read.

@rcano-miambiente nice catch, thanks!


[QUESTION] List of Tasks running one after another

Sorry to disturb you here, but i can't figure out how to solve this simple problem.
Basically i have a list of tasks List.of(task1,task2,task3) and i want to chain one task to another so it should become task1().chain(task2).chain(task3).
Is there a simple way to handle this?
Thx for help.

Control.Monads' sequence (https://github.com/folktale/control.monads/blob/master/lib/basic.js#L50-L59) can be used for that.
sequence(Task, [task1, task2, task3]);

Ohh thx a lot, you make my day!!! :-) 👍


Syntax error in 1.1.10

After bumping from 1.1.9 to 1.1.10, I get the following new error when I run my program with ts-node:
/Users/audrow/Downloads/yatm/node_modules/combinate/index.ts:1
function combinate<O extends Record<string | number, any[]>>(obj: O) {
                  ^

SyntaxError: Unexpected token '<'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1031:15)
    at Module._compile (node:internal/modules/cjs/loader:1065:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Object.require.extensions.<computed> [as .ts] (/usr/local/lib/node_modules/ts-node/src/index.ts:1361:43)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/audrow/Downloads/yatm/src/test-cases/generator/generate-test-cases.ts:1:1)

My tsconfig.json is as follows:
{
  "extends"<EMAIL_ADDRESS>  "compilerOptions": {
    "moduleResolution": "node",
    "outDir": "dist"
  },
  "include": ["src/**/*.ts"]
}

I'm not exactly sure why it's giving me the error, but reverting lets my code get back to a working state, so that's what I'm doing for now. Let me know if I'm doing something wrong.

Thanks for reporting this! Let me see if I can reproduce the error and I'll get back to you.

@audrow I just shipped 1.1.11, which I believe should fix the issue. I'd appreciate it if you let me know if this works!
I'm actually a bit surprised ts-node was working for earlier versions since it doesn't compile node_modules and I hadn't been shipping the compiled dist directory with the package (I am now).

I believe this has now been resolved in 1.1.11, so I'm going to close the issue. Please let me know if it is still a problem!


Provide a way to access Zipkin span ID via RequestLog.

Currently, Zipkin's TraceContext is stored as an attribute in RequestContext:

https://github.com/line/armeria/blob/armeria-0.86.0/zipkin/src/main/java/com/linecorp/armeria/common/tracing/RequestContextCurrentTraceContext.java#L69-L70

We could provide some utility methods for retrieving some useful information from it, such as traceId, spanId and parentId.

There's a PR on this #5414, and I would caution to make sure the impl is reading directly from the implicit trace context "just in time" and not copying off trace, span IDs which could be read when the span ID is no longer valid.
In brave, we have context integration for logging which does a number of things including not add overhead depending on which fields are configured to sync (typcially only traceId/spanId) https://github.com/openzipkin/brave/tree/master/context/slf4j
If something like this is made, we should be careful about child spans as it can make logging confused, for example, what is read when there's a current outbound client call in progress. Basically whatever integration tests exist, they should be careful about points like this, or instead try to use brave's native context handler or similar.


create feature file for validation officer e2e journey

Write scenarios to cover the positive paths for the validation officer e2e journey

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

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

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

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

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

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


Operation caused an invalid state - Resize pictures

Microsoft PowerToys version
0.51.1
Running as admin

[X] Yes

Area(s) with issue?
Image Resizer
Steps to reproduce
Select a jpeg in File Explorer
Right click and select "Resize Pictures"
Click Resize
✔ Expected Behavior
A new, smaller Jpeg will be created
❌ Actual Behavior
I got an error message "Operation caused an invalid state" and a 1k file that cannot be opened.
Other Software
No response

Would you mind sharing the image? Would really help us to reproduce the issue!

@reg00000 can you share the image?

Sorry, I don't have a screenshot and I uninstalled it and installed a
standalone older version that is working.
On Thu, Dec 30, 2021 at 11:51 PM Clint Rutkas @.***>
wrote:

@reg00000 https://github.com/reg00000 can you share the image?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14974#issuecomment-1003277614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS5SHXUR2W6TMRDRLURCQDLUTVAFVANCNFSM5J4NOYTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@reg00000: No problem, we don't need a screenshot of the error message. It would be helpful if you could share the image you were resizing when the error occurred.

I tried at least 5 different images.
On Fri, Dec 31, 2021 at 9:29 AM CleanCodeDeveloper @.***>
wrote:

@reg00000 https://github.com/reg00000: No problem, we don't need a
screenshot of the error message. It would be helpful if you could share the
image you were resizing when the error occurred.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14974#issuecomment-1003401697,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS5SHXTUNIQL3Z37EDZEH2LUTXD7JANCNFSM5J4NOYTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

I tried at least 5 different images.

Are you able to send one of them?

Hi @reg00000,
Is it possible to share the image with us to reproduce the issue?
If yes, please log in to github.com and post the image in the comment area.
Attachments won't be sent through email. Sorry for the inconvience.

I don't have them anymore. I tried to test it on another picture by
uninstalling the older Imageresizer and enabling the new one but even after
rebooting I don't get the File Explorer context menu option to resize.
On Fri, Dec 31, 2021 at 9:44 AM Aaron Junker @.***>
wrote:

I tried at least 5 different images.
Are you able to send one of them?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14974#issuecomment-1003404345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS5SHXVBBFR4CYXZIJVSTETUTXFUPANCNFSM5J4NOYTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

I uninstalled the old resizer, uninstalled the new Powertoys and
reinstalled PowerToy (rebooting between each) and I don't seem to have the
issue anymore.  Maybe it was just a bad install.
On Fri, Dec 31, 2021 at 9:44 AM Aaron Junker @.***>
wrote:

I tried at least 5 different images.
Are you able to send one of them?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14974#issuecomment-1003404345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS5SHXVBBFR4CYXZIJVSTETUTXFUPANCNFSM5J4NOYTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

Ok thank you for your effort!

I have the same problem on version 0.55.2
Here you have the image:

This is fixed on the main branch and will be released with next update. See #15751


Idea: Clean up a diff/Do a logical interactive rebase and squash.

Issue
I often dislike the sequence of diffs that aider made.  Would be great, if I could squash them all together, then ask Aider to split them up into logical diffs (ideally with asking me).
Version and model info
No response

related to #822


feat: follows you on profile page

Hey, the conversion to TS is done now, can you rebase?

Hey, the conversion to TS is done now, can you rebase?

Yes. Squashed all commits into one.


re-write RMSD calculation script to be faster or at least do a better job of not being a waste of time should it not finish

I think this is finally done here: https://github.com/choderalab/asapdiscovery/pull/104/commits/537f9248ccee899c2737de03c33eeb37d929e8d4


[BUG] Pytest fails when deleting a dataset in PR

As titled.

Can you give more error messages?

@xingjian-zhang Sorry that I missed your comment! When deleting a dataset, for example, Cora. workflow will notice that Cora is changed, so it will try to run pytest on Cora. This will lead to error b/c Cora is already deleted. The test must fail in such cases.
I am working on this bug right now. But I think it will not block our current workflow.


support more lowcardinality optimization

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] others

Which issues of this PR fixes ：
resolves #3987
Problem Summary(Required) ：

case when
if
projection predicate

Performance Test Result:
-- tpch 100G
1FE 3BE:
parallel=1
SELECT sum(CASE WHEN l_shipmode = 'RAIL' then 1 ELSE 0 END) FROM lineitem;
close: 2.44 open: 0.55 vec_gather:0.50
parallel=8
close: 0.44 open:0.14 vec_gather:0.12

[FE PR Coverage check]
:heart_eyes: pass : 35 / 35 (100.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
33
33
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

@stdpain use resolves #xxxx to link requirements

[FE PR Coverage check]
:heart_eyes: pass : 74 / 86 (86.05%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
10
15
66.67%

:large_blue_circle:
com/starrocks/analysis/VSlotRef.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
27
27
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 74 / 86 (86.05%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
10
15
66.67%

:large_blue_circle:
com/starrocks/analysis/PlaceHolderExpr.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
27
27
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 74 / 86 (86.05%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictMappingExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
10
15
66.67%

:large_blue_circle:
com/starrocks/analysis/PlaceHolderExpr.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
27
27
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

Can you add a more concise commit message about the purpose of this optimization?
And add more detailed performance tests about different cardinality numbers?

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 73 / 85 (85.88%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictMappingExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
10
15
66.67%

:large_blue_circle:
com/starrocks/analysis/PlaceHolderExpr.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
26
26
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 73 / 85 (85.88%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictMappingExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
10
15
66.67%

:large_blue_circle:
com/starrocks/analysis/PlaceHolderExpr.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
26
26
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%

[FE PR Coverage check]
:heart_eyes: pass : 81 / 92 (88.04%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/DictMappingExpr.java
7
11
63.64%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/DictMappingOperator.java
11
15
73.33%

:large_blue_circle:
com/starrocks/analysis/PlaceHolderExpr.java
14
17
82.35%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/ScalarOperatorVisitor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/AddDecodeNodeForDictStringRule.java
33
33
100.00%

:large_blue_circle:
com/starrocks/sql/plan/ScalarOperatorToExpr.java
12
12
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/OperatorType.java
1
1
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/operator/Projection.java
2
2
100.00%


'az network dns zone import' doesn't work

Attempted to import the attached zone file via the following command:
az network dns zone import -g rg1 -n mytestzone.com --file-name "C:\Users\jonatul\Desktop\Zone Files\mytestzone.com.dns.txt"
I just get a screen full of red error/call stack text.
The equivalent command via the old CLI works fine.
mytestzone.com.dns.txt

The current import command is designed to consume the DNS zone file in the format that the export command outputs. We will overhaul them in tandem.

The main reason for the crash is because the current implementation cannot handle multiple TXT entries per record. I am adding your zone file to the test suite to guard against future regressions.


Using refined model

Hi thanks for the paper to start with.
I wondering about the refined model, it seems that needs the 3d ground truth to make the refinement and the camera parameters?. I was wondering if you obtained those automatically or it's kind of overfitting to the 3d ground-truth in some way
thanks

You're right. It does lead to some degree of overfitting. On the other hand, the 3d ground-truth and camera parameters are not available when testing on custom videos, so the refining module does not work.

You're right. It does lead to some degree of overfitting. On the other hand, the 3d ground-truth and camera parameters are not available when testing on custom videos, so the refining module does not work.

may it be possiable to use DNN( inpust_2d ) to predict a camera parameters for the wild video.


Fix for silent token renewal - Angular

This is a simple fix to the following error that I keep having when trying to acquire token:

Error when acquiring token for scopes: https://management.azure.com/user_impersonation Token renewal operation failed due to timeout|Token Renewal Failed

I believe this is related to #288 (but even setting longer timeout does not solve it).
If we have set popup in msal configuration, user will be presented with popup window if error happen during silent token renewal.
Let me know if this should be changed in the msal-core instead.

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

@nehaagrawal, @pkanher617, @manoj-rath, I can create a new configuration either in msal-angular or msal-core to handle this.

@eduardomourar  Sorry we can't accept this PR. You are basically changing the behavior of acquireTokenSilent by calling acquireTokenPopup inside catch block. Calling acquireTokenPopup/reqirect is app developer's responsibility and we can't make this change in our API.

@nehaagrawal , I agree this will be changing the acquireTokenSilent default behavior and that is why I suggested creating a new configuration parameter (like retryWithPopup). Regarding acquire token call being the dev responsibility, for Angular library that is not really true because the interceptor code is doing it here. You can also see the same idea implemented in the sample here, so why not make that available out-of-the-box in the config.

@eduardomourar  Thank you so much for your contribution! We recognize this as a valid feature request. I have added review comments in your PR. Please update the code as per review comments. Please let us know if you don't have the bandwidth to update the PR, I will add this as a backlog item for MSAL-Angular and we will fix it.

I have made the changes accordingly. Let me know if this is enough.

@nehaagrawal, do we have any update on this?

@eduardomourar How urgent is this change?
We are currently not accepting any angular changes as the focus is on the msal-core enhancements. We do have this as a requirement that we want to address as soon as we can though. If you can wait for the merge, we can reopen this conversation when we start working on angular. The details of the roadmap can be found here:  Roadmap
@navyasric  to ensure traction.

@sameerag , this is medium priority, but this PR is waiting review since Nov 30th. So it would be nice to have it merged because it is preventing us to update from<EMAIL_ADDRESS>to v0.2.4. Also, MHO is that this feature (flag fallbackToInteractive) should be part of the msal-core.

cc @jasonnutter to track this with angular activity

We still want to address the concern brought up in this PR, but it will need to be reworked given the work done in Angular 1.0. Closing.


Keep Conversation History

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

[X] This is a feature request for the Python library

Describe the feature or improvement you're requesting
When using the API, it should be the case that conversation history is kept. While one can do this manually (by providing the history in the prompt), this costs additional API tokens...
Additional context
No response

The fundamental architecture of the OpenAI API is based on a vanilla encoder-decoder model.
To provide context for the conversation (such as chat history) it needs to be explicitly passed with each API call.
Without this additional context, the model lacks information to generate meaningful responses. Therefore, including the chat history in the prompt is necessary for the API to infer and respond appropriately.
I don't think there's a way to omit that, given the architecture of the core model's engine.

To provide context for the conversation (such as chat history) it needs to be explicitly passed with each API call.

Is this different with assistants where the service seems to store the threads?

This API wrapper allows for interactive interaction (i.e. where the context is stored), maybe this could be an interesting addition for the official API?

Thanks for the suggestion! I suggest you look into the new assistants API.


[TW#18950] Error when trying to connect to Web server via Wifi while Bluetooth is on: bcn_timout, alloc fail

I'm getting the following errors when trying to connect to a server with HTTPS while Bluetooth is running. I'm using the latest IDF v3.0 commit I believe. I ran git pull on esp-idf right before testing this. Once the issue occurs, wifi disconnects and is unable to reconnect. I've combed through forums and issues trying to find a solution, but I'm stumped. Maybe I'm doing something wrong, but I've seen these error messages pop up in the issue tracker a few times for other bugs.
I've basically worked off of examples to this point so it's mainly using the Bluetooth GATT Server table example, in conjunction with the HTTPS Request example. If I set Bluetooth to disconnect when Wifi obtains an IP address, the Https code starts like expected and no crash occurs.
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Starting app cpu, entry point is 0x40081124
0x40081124: call_start_cpu1 at C:/esp-idf/components/esp32/cpu_start.c:225

I (0) cpu_start: App cpu up.
I (188) heap_init: Initializing. RAM available for dynamic allocation:
I (195) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (201) heap_init: At 3FFD2AF8 len 0000D508 (53 KiB): DRAM
I (207) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (214) heap_init: At 3FFE4350 len 00013CB0 (79 KiB): D/IRAM
I (220) heap_init: At 40093BE8 len 0000C418 (49 KiB): IRAM
I (226) cpu_start: Pro cpu start user code
I (19) esp_apptrace: Initialized TRAX on CPU0
I (20) pm_esp32: Frequency switching config: CPU_MAX: 240, APB_MAX: 240, APB_MIN: XTAL, Light sleep: DISABLED
I (25) cpu_start: Starting scheduler on PRO CPU.
I (68) esp_apptrace: Initialized TRAX on CPU1
I (5) cpu_start: Starting scheduler on APP CPU.
I (51) Main App (main): Start App
Device Name: Gunbox Pro
Firmware Version: R003541_00aa

I (118) Bluetooth Driver (dBluetooth): Initializing Bluetooth Driver
I (125) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (381) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (422) Bluetooth Driver (dBluetooth): Bluetooth Driver Initialized
I (422) Bluetooth Interface (iBluetooth): Initializing Bluetooth Interface
I (426) Bluetooth Interface (iBluetooth): GATTS Profile Event Server reg event
I (439) Bluetooth Interface (iBluetooth): create attribute table successfully, the number handle = 16

I (447) Bluetooth Interface (iBluetooth): create attribute table successfully, the number handle = 28

I (454) Bluetooth Interface (iBluetooth): gap event handler: 0
I (460) Bluetooth Interface (iBluetooth): gap event handler: 1
I (469) Bluetooth Interface (iBluetooth): SERVICE_START_EVT, status 0, service_handle 40
I (475) Bluetooth Interface (iBluetooth): SERVICE_START_EVT, status 0, service_handle 56
I (484) Bluetooth Interface (iBluetooth): gap event handler: 6
I (490) Bluetooth Interface (iBluetooth): advertising start successfully
I (498) Bluetooth Interface (iBluetooth): Bluetooth Interface initialized successfully
I (506) WiFi Driver (dWifi): Start ESP32_Wifi_Driver_Init
I (514) wifi: wifi firmware version: ebd3e5d
I (516) wifi: config NVS flash: enabled
I (520) wifi: config nano formating: disabled
I (524) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (533) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (565) wifi: Init dynamic tx buffer num: 32
I (565) wifi: Init data frame dynamic rx buffer num: 32
I (565) wifi: Init management frame dynamic rx buffer num: 32
I (569) wifi: wifi driver task: 3ffe3c7c, prio:23, stack:4096
I (574) wifi: Init static rx buffer num: 10
I (578) wifi: Init dynamic rx buffer num: 32
I (582) wifi: wifi power manager task: 0x3ffe8c40 prio: 21 stack: 2560
I (600) wifi: mode : sta (24:0a:c4:83:13:64)
I (601) WiFi Driver (dWifi): Task started
I (601) WiFi Driver (dWifi): SYSTEM_EVENT_STA_START
I (601) ESP32 HTTPS Driver (dESP32_HTTPS): Seeding the random number generator
I (613) ESP32 HTTPS Driver (dESP32_HTTPS): Loading the CA root certificate...
I (622) ESP32 HTTPS Driver (dESP32_HTTPS): Setting hostname for TLS session...
I (628) ESP32 HTTPS Driver (dESP32_HTTPS): Setting up the SSL/TLS structure...
I (9317) Bluetooth Interface (iBluetooth): ESP_GATTS_CONNECT_EVT, conn_id = 0
I (9317) Bluetooth Interface (iBluetooth): 5a e7 22 d4 8d 6f
I (9734) Bluetooth Interface (iBluetooth): gap event handler: 20
I (9734) Bluetooth Interface (iBluetooth): update connetion params status = 0, min_int = 16, max_int = 32,conn_int = 24,latency = 0, timeout = 400
I (9825) Bluetooth Interface (iBluetooth): ESP_GATTS_MTU_EVT, MTU 500
I (10425) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (10425) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 1, handle 42

I (10427) Bluetooth Interface (iBluetooth): Base MAC: **:**:**:**:**:**
I (10545) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (10545) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 2, handle 45

I (10665) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (10665) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 3, handle 48

I (10875) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (10875) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 4, handle 51

I (11535) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11535) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 5, handle 43

I (11595) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11595) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 6, handle 46

I (11655) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11655) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 7, handle 49

I (11715) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11715) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 8, handle 52

I (11775) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11775) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 9, handle 59

I (11835) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11835) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 10, handle 62

I (11895) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11895) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 11, handle 65

I (11955) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (11955) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 12, handle 68

I (12015) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (12015) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 13, handle 71

I (12075) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (12075) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 14, handle 74

I (12135) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (12135) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 15, handle 77

I (12195) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (12195) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 16, handle 80

I (12255) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (12255) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 17, handle 83

I (13724) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (13725) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 18, handle 58

I (17025) Bluetooth Interface (iBluetooth): Wifi Control Write
Wifi Control Write msg: cmdWifiConn=      NetworkName,NetworkPassword

I (17074) WiFi Driver (dWifi): Start ESP32_Wifi_Driver_Connect

I (17104) WiFi Driver (dWifi): Wifi Config Bit Detected

I (17145) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (17145) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 21, handle 58

I (17230) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (17896) wifi: state: init -> auth (b0)
I (17900) wifi: state: auth -> assoc (0)
I (17904) wifi: state: assoc -> run (10)
I (17921) wifi: connected with NetworkName, channel 1
I (19018) event: sta ip: 10.**.***.105, mask: <IP_ADDRESS>, gw: 10.**.***.1
I (19018) WiFi Driver (dWifi): SYSTEM_EVENT_STA_GOT_IP
Wifi Serv char status read val changed to : 1
System got IP: wifiServVal: 1
I (19027) ESP32 HTTPS Driver (dESP32_HTTPS): Connected to AP
I (19027) WiFi Driver (dWifi): Wifi Config Good Bit Detected

I (19034) ESP32 HTTPS Driver (dESP32_HTTPS): Connecting to www.howsmyssl.com:443...
I (19168) ESP32 HTTPS Driver (dESP32_HTTPS): Connected.
I (19168) ESP32 HTTPS Driver (dESP32_HTTPS): Performing the SSL/TLS handshake...
I (20905) wifi: pm start, type:0

I (26491) wifi: bcn_timout,ap_probe_send_start
W (26491) wifi: alloc eb len=76 type=2 fail

W (26491) wifi: m f probe req l=0

W (26992) wifi: alloc eb len=76 type=2 fail

W (26992) wifi: m f probe req l=0

W (27492) wifi: alloc eb len=76 type=2 fail

W (27492) wifi: m f probe req l=0

W (27992) wifi: alloc eb len=76 type=2 fail

W (27993) wifi: m f probe req l=0

W (28493) wifi: alloc eb len=76 type=2 fail

W (28493) wifi: m f probe req l=0

I (28993) wifi: ap_probe_send over, resett wifi status to disassoc
I (28993) wifi: state: run -> init (1)
I (28994) wifi: pm stop, total sleep time: 0/8088689

I (28994) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (29002) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (31422) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (33833) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (36243) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
...
This continues forever

So I doubled the amount of heap that I was allocating to both the Wifi and HTTPS tasks and I'm now getting this in the log: Has anyone got a fix or suggestion for this? I've given more info at esp32.com
`
I (18516) WiFi Driver (dWifi): Wifi Config Bit Detected
I (18557) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT
E (18558) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 21, handle 58
I (18643) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (19309) wifi: state: init -> auth (b0)
I (19314) wifi: state: auth -> assoc (0)
I (19318) wifi: state: assoc -> run (10)
I (19334) wifi: connected with RPHEngineering, channel 1
I (22318) wifi: pm start, type:0
I (23653) event: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (23653) WiFi Driver (dWifi): SYSTEM_EVENT_STA_GOT_IP
Wifi Serv char status read val changed to : 1
System got IP: wifiServVal: 1
I (23663) WiFi Driver (dWifi): Wifi Config Good Bit Detected
I (23663) ESP32 HTTPS Driver (dESP32_HTTPS): Connected to AP
I (23675) ESP32 HTTPS Driver (dESP32_HTTPS): Connecting to <IP_ADDRESS>:443...
I (23759) ESP32 HTTPS Driver (dESP32_HTTPS): Connected.
I (23760) ESP32 HTTPS Driver (dESP32_HTTPS): Performing the SSL/TLS handshake...
I (29844) wifi: bcn_timout,ap_probe_send_start
I (32345) wifi: ap_probe_send over, resett wifi status to disassoc
I (32345) wifi: state: run -> init (1)
I (32346) wifi: pm stop, total sleep time: 0/10027329
I (32346) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (32355) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (34774) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (37184) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (39594) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (42003) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
Wifi Serv char status read val changed to : 0
I (44413) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED
`

@eagi223 , you can try the latest master branch that we have finish wifi/bluetooth coexistence function.

@TianHao-Espressif Perfect, I'll give it a try. Thanks!


[0.1.16 rc 3] Fix double tap to bring up message details

No content

Issue created by BlueBubbles Bot in the BlueBubbles commnity on behalf of @zach in #feedback.

Fixed


Typo causing compile error (DecimalToHex is not static)

https://github.com/lrvolle/ColourPicker/blob/181feb742cbb122d87fa269357dd900adaeb3dde/src/colourpicker.ts#L227 #2

Fixed by #2


Do not prompt if extension activation won't succeed

Issue Type: Bug
I have Python extension installed, which doesn't work in virtual workspace, hence disabled. Somehow Pylance is being activated but fails because Python is not disabled. The notification for "Enable and Reload" never works as Python can't be enabled.

VS Code version: Code - Insiders 1.57.0-insider (Universal) (fe23c2041f848d6c2f6bd27875112a37bcc82f84, 2021-05-06T05:50:00.296Z)
OS version: Darwin x64 20.3.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
3, 3, 3

Memory (System)
32.00GB (0.23GB free)

Process Argv
--enable-proposed-api ms-vscode.vscode-notebook-history --enable-proposed-api vscode.notebook-editing --enable-proposed-api vscode.vscode-test-resolver --enable-proposed-api donjayamanne.kusto --enable-proposed-api donjayamanne.jupyterpowertools --enable-proposed-api rebornix.better-jupyter-errors --crash-reporter-id 1a907bbd-fa02-4595-81e0-63e1648afb31

Screen Reader
no

VM
0%

/duplicate


No logs on crash

Describe the bug
Sometimes, the wallet crashes but there are no logs about the crash in the log file. The only way to get the wallet logs is to run Massa Station from a terminal, which is not a good thing as most users do not know how to use a terminal, and so, this can be really painful for them.
To Reproduce
We don't know how to reproduce as we don't have any logs
Expected behavior
If a crash occures, the log file must have the information about the crash.
MassaStation version
v0.6.2
Desktop:

OS: ALL

Additional context

As there are litteraly no logs from the run, most of the time, the crashes seem to happen before the first log Serving massa wallet at ...

From one of our users:

message.txt

It looks like the failure comes from the plugin not being able to register due to a 404 error, which has an invalid body. The invalid character '<' looking for beginning of value error looks like some HTML has been received.
I don't think the issue is coming from inside the registry endpoint, as the only time we return 404 is when the plugin is not found, and we return an object: https://github.com/massalabs/station/blob/10c1fe27f8259084b65d80963974ad37cf2f5610/int/api/myplugin/register.go#L24C1-L28C1
Ensuring we log this error and make the plugin stop correctly should help us debug the issue in the future.

great investigation @thomas-senechal !


Smallest Common Multiple: my solution is wrong, but your site says it's correct

The test cases for this challenge only consist of ranges of [1, x].
It wasn't until after I'd successfully passed this challenge (using my code below) that I realized that my solution is incorrect for ranges that do not begin at 1 (eg. .. [7,9], [11, 13], etc.) .
Perhaps it might be a good idea to throw some other test cases in there.
function smallestCommons(arr) {
    function isPrime(n) {
        var count = 1, sqrt = Math.floor(Math.sqrt(n));

        for (var i = 2; i <= sqrt; i++) {
            if (n % i === 0)
                break;
            else
                count++;
        }
        if (count === sqrt)
            return true;
    }
    var max = arr.sort(function(a, b) {
        return a - b;
        })[1];
    var newArr = [1];
    var prod = newArr.reduce(function(a, b) {
            return a * b;
            });

    for (var i = 2; i <= max; i++) {
        if (isPrime(i)) {
            newArr.push(i);
            prod = newArr.reduce(function(a, b) {
                    return a * b;
                    });
        } else {
            if (prod % i !== 0) {
                for (var j = i - 1; j >= 2; j--) {
                    if (i % j === 0) {
                        newArr.push(i / j);
                        prod = newArr.reduce(function(a, b) {
                                return a * b;
                                });
                        break;
                    }
                }
            }
        }
    }
    return prod;
}

+1

It does seem weird that they all start at 1. @SaintPeter more tests? Or was there a reason to start them at one?

I think that some which start at non-1 values would be fine.   I'm always hip for more tests if it improves the problem or causes it to be solved more completely.

I was going to write a similar comment, although my solution is correct anyway.
Indeed, the set of tests lack a case in which both values are grater than 1, such as [2,9].
Passing a similar test would guarantee a much more generic solution

There is also a problem of answer not being mathematically correct. The smallest common multiple of 1 and 5 is not 10, but 5. It's 1 * 5 and 5 * 1.
"We get a multiple of a number when we multiply it by another number. Such as multiplying by 1!, 2, 3, 4, 5, etc, but not zero." - Smallest Common Multiple


DynamoRIO "Incompatable API Version"

Running a test application works fine with instrumented build but fails under dynamic instrumentation with recommended version of DynamoRIO (7.0.1 release).

Linux

root@computer:/<path>/manul/manul# python3 manul.py -i in -o out --debug "./test.out @@"
> [WARNING] Output directory is not empty, creating backup of output folder
> [INFO] Done
> [INFO] 1 fuzzer instances sucessfully launched
> [INFO] Starting fuzzer 0
> [INFO] Setting up shared mem 2 for fuzzer:0
> [INFO] Initializing mutators
> [INFO] Performing dry run
> [INFO] Launching /<path>/manul/DynamoRIO-Linux-7.1.0-1/bin64/drrun -c /<path>/manul/manul/linux/dbi_64/libbinafl.so -coverage_module test.out -debug -- ./test.out in/inp.txt
> /<path>/manul/DynamoRIO-Linux-7.1.0-1/bin64/drrun -c /<path>/manul/manul/linux/dbi_64/libbinafl.so -coverage_module test.out -debug -- ./test.out in/inp.txt
> [INFO] Target started, waiting for return
> [INFO] Output from target <Application /<path>/manul/manul/test.out (79). Client library targets an incompatible API version and should be re-compiled.>
> [ERROR] inp.txt doesn't cover any path in the target, Make sure the binary is actually instrumented
> [WARNING] Fuzzer 0 unexpectedly terminated
> ^C[INFO] Stopping all fuzzers and threads
> Killed

Windows doesn't even get to that point due to #28, but is included for completeness.

Windows

C:\<path>\manul\manul>python3 manul.py -i in -o out --debug "<different_path>\Test.exe @@"
> [INFO] 1 fuzzer instances sucessfully launched
> [INFO] Starting fuzzer 0
> [INFO] Setting up shared mem<PHONE_NUMBER>_0 for fuzzer:0
> [INFO] Initializing mutators
> [INFO] Performing dry run
> Process Process-1:
> Traceback (most recent call last):
>   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1264.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 297, in _bootstrap
>     self.run()
>   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1264.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 99, in run
>     self._target(*self._args, **self._kwargs)
>   File "C:\<path>\manul\manul\manul.py", line 895, in run_fuzzer_instance
>     fuzzer_instance.run() # never return
>   File "C:\<path>\manul\manul\manul.py", line 753, in run
>     self.dry_run()
>   File "C:\<path>\manul\manul\manul.py", line 495, in dry_run
>     memset(self.trace_bits, 0x0, SHM_SIZE)
> OSError: exception: access violation writing 0x0000000062420000
> [WARNING] Fuzzer 0 unexpectedly terminated
> [INFO] Stopping all fuzzers and threads

Could you provide more details about your environment? Like OS version and etc. Are you trying to use 64-bit Dynamorio with 64-bit client against 64-bit binary?

Environment:
Windows 10 build 18956.1000 & Ubuntu 19.10 (current as of 2019/08/19).
Python 3.7.4.
Manul up to date from source as of this morning (2019/08/13).
Everything system-wise up to date.
Yes, the architectures do line up. I built everything locally. I'm using the Linux DynamoRIO for Ubuntu, and the Windows DynamoRIO for Windows. All of the paths check out, and running the drrun command manually gives the same error. I think you might need to add the files for building the afl DynamoRIO module locally so that everything will line up system by system. Not sure. Thanks!

Does drrun work with any other client(not related to Manul) in your environment?

No, it doesn't even get to the binary stage. It looks like a compatibility issue between DynamoRIO and libbinafl.so.

Can you try any client from .. \samples\bin64\ ?

Could I get a sample invocation? Not sure quite what you mean.

Having this issue as well on Win10 1803.
DynamoRIO Version - 7.1.0
Manul Version - 0.2
Python Version - 3.7.4

Fixed by downgrading DynamoRIO Version to 7.0.0-RC1

Hey,
I did encounter same issue on windows, I fixed that by recompiling the coverage dll files with version 7.91.18103. It looks like Maksim compiled and shipped the dll/so files from an earlier version as KillyP commented.

That's right, I will update readme and provide instruction on how to compile clients. Thank you folks for triaging that.

So, the general advice is to downgrade DynamoRIO as KillyP mentioned. I updated the README in case if the newest version of DynamoRIO is required. Closing the issue.

I'm still having trouble, but admittedly different trouble. Now I get [ERROR] 1.txt doesn't cover any path in the target, Make sure the binary is actually instrumented followed by a series of [WARNING] Fuzzer 0 unexpectedly terminated.
Yes, my config file points to the correct locations and yes, the architectures line up.

Could you run it with --debug option?

Sure!
Output:
[INFO] 1 fuzzer instances sucessfully launched                                                                                [INFO] Starting fuzzer 0
[INFO] Setting up shared mem<PHONE_NUMBER>_0 for fuzzer:0
[INFO] Initializing mutators
[INFO] Performing dry run
[INFO] Launching C:\Users\Wes\source\repos\AutoFuzz\manul\DynamoRIO-Windows-7.0.0-RC1\bin64\drrun.exe -c C:\Users\Wes\source\repos\AutoFuzz\manul\manul\win\dbi_64\binafl.dll -coverage_module Test.exe -debug -- ..\..\Test\bin\Debug\netcoreapp3.0\Test.exe in/1.txt
[INFO] Target started, waiting for return
[INFO] Initial input file: 1.txt triggers an exception in the target
[WARNING] Initial input 1.txt leads target to crash (did you disable leak sanitizer?). Enable --debug to check actual output
[WARNING] Fuzzer 0 unexpectedly terminated
[WARNING] Fuzzer 0 unexpectedly terminated
[WARNING] Fuzzer 0 unexpectedly terminated
[INFO] Stopping all fuzzers and threads

Two possible options here:

There is a bug in the Manul instrumentation client
There is some problem with the target application itself...

The target runs fine when I run it on its own. The provided DRRUN command exits silently but %ERRORLEVEL% is set to -1073741819.

is it .NET application?

I'm testing one written in C compiled with stock GCC, and one written in C# compiled with preview Roslyn. So one of each.

TBH, I don't know why it doesn't work. The first thing that we should exclude is the problem with DynamoRIO. There are test clients supplied with DynamoRIO, can you try to run one of them?

They are located in the \samples\bin64\ folder

Okay. What binary should I run them against?

Test\bin\Debug\netcoreapp3.0\Test.exe

Will do.

drrun.exe -c ..\samples\bin64\memtrace_simple.dll -- ..\..\..\Test\bin\Debug\netcoreapp3.0\Test.exe ..\..\manul\in\1.txt

Same %ERRORLEVEL

Most likely there is some problem with DBI instrumentation of your binary. DynamoRIO maintainers can provide more details for you. You can open an issue here: https://github.com/DynamoRIO/dynamorio/issues

Thanks!

Quick question: does DynamoRIO DBI instrumentation work on your end?

Yes, I've done 2 fuzzing campaigns in the past on Windows using DynamoRIO DBI instrumentation and Manul.

Do you have a config and test application I can run to see if it's my environment?

There is actually one test application in win/test/test64. You just need to specify paths (to drrun and win/dbi_64/binaf.dll in the manul.config and run it.

[WARNING] Initial input 1.txt leads target to crash (did you disable leak sanitizer?). Enable --debug to check actual output

By the way, when you run it with --debug it should create a log file in the same folder where you run the binary. Could you copy-paste it here?

I don't see a log file. What would it be called?

Could you copy-paste your config file here? The file should be called afl.*.proc.log

Manul - configuration file
-------------------------------------
Maksim Shudrak<EMAIL_ADDRESS><EMAIL_ADDRESS>
Copyright 2019 Salesforce.com, inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Manul config file
Format: <option_name> =
-----------------
absolute path to dictionary with usefull tokens
#dict = dictionaries/test.dict
Mutator weights (should be 10 in total). Use my_mutator:x,my_mutator_2:x to define and use your own
custom mutator (should be 10 in total). Specify 0 to disable certain mutators. Weights basically are
used to tell manul how many mutations per 10 executions should be performed by certain fuzzer.
example afl:5,radamsa:2,my_awesome_fuzzer:3
afl will be used to mutate 5 out of 10 cases, 2 out of 10 for radamsa and 3 out of 10 for my_awesome_fuzzer
Your custom mutator's main file should be located in the same folder as manul.py.
Two default mutators should always be defined (afl, radamsa)
mutator_weights=afl:10,radamsa:0
#mutator_weights=afl:6,radamsa:0,example_mutator:4
Use determenistic seed for test cases generation (only radamsa option).
determenistic_seed = False
Print fuzzing summary per thread instead of total summary
print_per_thread = False
disable volatile bytes suppression algorithm
#disable_volatile_bytes = True
dbi = dynamorio
If dbi param is not None the path to dbi engine launcher and dbi client should be specified.
dbi_root = C:\Users\Wes\source\repos\AutoFuzz\manul\DynamoRIO-Windows-7.0.0-RC1\bin64\drrun.exe
dbi_client_root = C:\Users\Wes\source\repos\AutoFuzz\manul\manul\win\dbi_64\binafl.dll
#dbi_client_libs = None
Timeout for target binary
timeout = 10
net_config_master and net_config_slave below are used to share manul instances over network.
Path to network configuration file with a list of IP:port slave addresses. Specified for master instance.
net_config_master = None
IP and port to listen for connections from master (e.g. net_config_slave = <IP_ADDRESS>:1337)
net_config_slave = None
Run in debug mode, print details in console
debug = False
Print Manul ASCII logo at the beginning
manul_logo = False
Disable stats saving in the manul working dir
#no_stats = True
Save debug messages to log files (one per thread)
logging_enable = False
Bitmap sync frequency (5000 recommended for DBI mode)
sync_freq = 10000
Custom path to save input file
#custom_path = test_path
Command line fuzzing (experimental)
#cmd_fuzzing = True
define signals to be ignored by manul
user_signals = 6
Network fuzzing. Target IP address
#target_ip_port = <IP_ADDRESS>:7715
tcp | udp
#target_protocol = tcp
wait time before actually start sending test cases in the socket
#net_init_wait = 1
wait time between test cases
#net_sleep_between_cases = 0.0

That log file doesn't exist. I've even done a recursive ls and grepped through it with no success.

Weird, there is something wrong with DynamoRIO instrumentation...

Rebuilding both DynamoRIO and the client lib from source fixed it. Thanks for your help!


UseProxyToSpaDevelopmentServer slow when passing 'Connection' header

Describe the bug
When using UseProxyToSpaDevelopmentServer I noticed that all requests to the proxy were taking over 1 second to complete. When I access the resource directly (not via the SPA proxy) it takes about 2ms. After some debugging, I found that the cause is the Connection header being passed to the proxied server. When I remove the Connection header, the request now takes about 40ms.
https://github.com/aspnet/AspNetCore/blob/master/src/Middleware/SpaServices.Extensions/src/Proxying/SpaProxy.cs#L133
To Reproduce
Steps to reproduce the behavior:

Create an ASP.NET Core 3.0 app that uses UseProxyToSpaDevelopmentServer
I am using webpack-dev-server as the dev server (not sure if this matters or not)
Notice that every proxied request takes 1+ seconds

Expected behavior
The request should respond with similar times as the dev server. I can understand some overhead since it is copying the request and response, but not 500x slower.
Additional notes
I'm not sure if I should make a separate bug for this, but I also ran into an issue with the cookie header getting copied which causes requests to fail. I had to add a pretty hacky solution to our project that removes the cookie header before calling the proxy middleware. I believe the cause of the error is specifically when there is a SameSite=strict cookie since it happens when i have a CSRF cookie.
Perhaps one mitigation could be to add the ability to disable copying headers or add an allowed/disallowed headers as an option on UseProxyToSpaDevelopmentServer.

@ChristopherHaws thanks for contacting us.
Would you like to provide a PR to improve this behavior?

Thanks for your contribution, @ChristopherHaws 👍


cucumber-glue: What are the differences between cucumber-glue scope and step member variables?

This question is also at https://stackoverflow.com/questions/58863442/what-are-the-main-differences-between-cucumber-glue-scope-and-step-member-vari.
AFAICT, there's not much difference between using cucumber-glue scope and instantiating member variables in step classes other than where the instantiation code resides.
For example, using cucumber-glue scope:
@Configuration
public class MyConfiguration {
  @Bean
  @Scope("cucumber-glue")
  public MyContext myContext() {
    return new MyContext();
  }
}

@SpringBootTest
public class MySteps {
  @Autowired
  private MyContext myContext;
}

versus member variables:
@SpringBootTest
public class MySteps {
  private final MyContext myContext = new MyContext();
}

Are there other differences I'm missing?

Please use the support forums for questions and discussions. We use GitHub issues to track bugs and feature requests exclusively.
I answered you on SO btw.

Thanks!
FYI, https://github.com/cucumber/cucumber/blob/master/CONTRIBUTING.md says
Log an issue for any question or problem you might have. I might've
missed it but in case I didn't, it'd be good to have a pointer in the docs
to that support page.
On Fri, Nov 15, 2019 at 1:14 PM M.P. Korstanje<EMAIL_ADDRESS>wrote:

Please use the support https://cucumber.io/support forums for questions
and discussions. We use GitHub issues to track bugs and feature requests
exclusively.
I answered you on SO btw.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cucumber/cucumber/issues/797?email_source=notifications&email_token=AAKZJ4IFATOC5L3FEGA4QDTQT4GMZA5CNFSM4JN2ULXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEGXREA#issuecomment-554530960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKZJ4KVZADDYLFA5LYMKMDQT4GMZANCNFSM4JN2ULXA
.


Indexing numpy array with DeviceArray: index interpreted as tuple

When you try to index a numpy ndarray with a DeviceArray, the numpy array tries to interpret the jax array as a tuple.
import numpy as onp
import jax.numpy as np
x = onp.zeros((5,7))
np_idx = onp.array([1,2,3])
jax_idx = np.array([1,2,3])
x[np_idx]
x[jax_idx] # <- raises IndexError

Workaround: put jax_idx in a singleton tuple x[(jax_idx,)]
This bug resulted in a confusing situation where my function worked when decorated by jax.jit but had a shape mismatch when called on a numpy array.

This is related to #553, though in that case the user was only calling jax.numpy (but the surprising behavior cropped up because jax.numpy.arange actually just calls onp.arange, producing a plain ndarray).
To fix this, we'll either need to get DeviceArrays to look like regular ndarrays well enough so that Numpy's indexing treats them like regular ndarrays, or we'll need to set up our own overrides, perhaps using ideas like #611.

This is a great bug.
I asked our friendly neighborhood NumPy expert @shoyer about it, and after we poked around the NumPy code a bit, he noticed something awesome: this example would have worked if your index array had more than 32 elements in it. Indeed:
import numpy as onp
import jax.numpy as np

x = onp.arange(35).reshape((5,7))  # changed
np_idx = onp.array([1,2,3] * 11)   # changed
jax_idx = np.array([1,2,3] * 11)   # changed

assert onp.allclose(x[np_idx], x[jax_idx])

That breaks if you change the 11s to 10s, though.
@shoyer also pointed out that this example will work if you write x[jax_idx, :], i.e. you include the colons.
Not sure yet if we have a way to mitigate this issue, but I couldn't wait to report this NumPy oddity.

When I try this example, I also see a deprecation warning from NumPy:
/Users/shoyer/miniconda3/envs/jax-py36/bin/ipython:7: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
So hopefully that's a clue that something may be amiss.

Reading that warning again, it makes it sound like this use case will start working for us in the future, when the behavior is removed.
One path forward might be to add some code to this function in multiarray/mapping.c to check for an __array__ method on the indexing object (like our DeviceArray exposes) and call it. That is, maybe we can make this NumPy function respect that style of duck typing of ndarrays, not just proper subclassing.

Yes, once the deprecation cycle finishes this should start working for JAX.

Just remarking that I just helped an intern debug this issue again, so it's still happening circa July 2020.

I have also just spent some debugging it.
Deprecation warning helped, but it was slightly confusing: rather than telling me the error already happened, it told that the behaviour won't be supported in the future.

Maybe adding this gotcha to sharp bits would help new users? https://jax.readthedocs.io/en/latest/notebooks/Common_Gotchas_in_JAX.html

I sent a PR to fix this in upstream NumPy (https://github.com/numpy/numpy/pull/21029). Let's see if it works!


Add a lottery example

This is a yet another example of how we could use Quint to specify non-trivial behavior of smart contracts. The interesting thing about this example is that it is one of the highlights from the paper by Zhang, Zhuo, Xu, Lin at ICSE'23. This example is in the category of contracts that cannot be reasoned automatically by static analysis tools. This is not really surprising, as the security property requires us to specify the behavior of the contract and the behavior of the Solidity mempool.
I was able to specify the property as a state invariant and reproduce it with a test in Quint. However, the random simulator did not find the violation after 10 min. Seems like a good call for Apalache (and more advanced fuzzing).
Also, this example screams: ADTs, ADTs :))

[x] Tests added for any new code

I guess this is useful for internal communication, but what is the benefit of having it live in the repo?
To the end user it only communicates "this does not currently work" and we'll need to revise it once we have proper integration with Apalache (which adds another work item we'll have to track).

I thought the same when firsti reading the description, but then I realized we actually have an example that reproduces the bug, even though random simulation cannot find an example for us. I made a few suggestions that can maybe help clarify that.

Aaah, I see that I misunderstood both the PR description and the text.
Thanks for the edits @bugarela, that makes it much clearer!


unrecognised selector when defined in category

W/Objective-C: -[_NSCFString JSONValue]: unrecognized selector in signature lookup.
E/WIL: C:\workspace\Windows\winobjc\Frameworks\Foundation\NSObject.mm(384)(null)!0F9EED20: (caller: 0F9EEBAA) Objective-C Exception(1) tid(502c) 80070490 Element not found.
Msg:[-[_NSCFString JSONValue]: unrecognized selector sent to instance 110E4760.] [_throwUnrecognizedSelectorException(HRESULT_FROM_WIN32(ERROR_NOT_FOUND))]

    NSString* json = [NSString stringWithContentsOfFile:aFileName encoding:NSUTF8StringEncoding error:nil];
    id o = [json JSONValue];

The definition and declaration are in the statically linked library

@interface NSString (NSString_SBJSON)
- (id)JSONFragmentValue;
- (id)JSONValue;
@end

@implementation NSString (NSString_SBJSON)

(id)JSONFragmentValue
{
SBJsonParser *jsonParser = [SBJsonParser new];
id repr = [jsonParser fragmentWithString:self];
if (!repr)
NSLog(@"-JSONFragmentValue failed. Error trace is: %@", [jsonParser errorTrace]);
[jsonParser release];
return repr;
}

(id)JSONValue
{
SBJsonParser *jsonParser = [SBJsonParser new];
id repr = [jsonParser objectWithString:self];
if (!repr)
NSLog(@"-JSONValue failed. Error trace is: %@", [jsonParser errorTrace]);
[jsonParser release];
return repr;
}

@end

NSString is typically a class cluster, returning private classes from its constructors. Try this:
NSLog(@"json: %@", json);
and see the type of your receiver (which according to your error is an instance of _NSCFString).
i.e.: Don't use categories on a class cluster.
Sincerely,
Ed

I'm very sorry but this suggestion would break most of the several years perfectly working code on iOS. This bridge is supposed to be compatible with object C runtime and NOT the other way around. You suggestion denies the purpose of the whole thing.
Moreover there's many class clusters in objective C and almost all of them have categories even in the SDK itself.
So I don't see this even as a workaround let alone a "fix" that should be done in the source code/
The actual instance type is whatever the runtime instantiates when calling [[NSString alloc] intxxx] the fact that it's  _NSCFString and therefore it doesn't see category on NSString is clearly the objective C runtime problem and it clearly makes your this bridge not compatible in one of the most crucial and useful features of objective C.
Regards
P

This is a dupe of #236. I just updated #236 with a workaround.  Hope that helps.


Avoid scan approach to discover active queues

After integrating successfully redis-pool for job publisher, it'd be nice to implement the same approach removing the current interval to refresh the connections to PUB/SUB.

This interval ends up sending thousands of SCAN commands to Redis server. We need to implement another approach less demanding.

Ready for CR: #415


feat!: add support for cas option for kv2 backend

This pull request adds support for vaults compare-and-swap feature. It contains breaking changes as the kv2::set signature is expanded with an additional Option<SetSecretRequestOptions> argument.
closes https://github.com/jmgilman/vaultrs/issues/33

I have addressed the comment regarding the README and added an alternative PR that is backwards compatible https://github.com/jmgilman/vaultrs/pull/35.