Error using react-native cli after upgrading to v0.40.0-rc.*

Description
Upgraded from v0.39.0 to v0.40.0-rc.1
When executing run-android or upgrade, the following output is displayed.
...\node_modules\babel-core\lib\transformation\file\index.js:600
      throw err;
      ^

SyntaxError: .../node_modules/react-native/packager/react-packager/src/Bundler/index.js: Unexpected token, expected ) (42:8)
  40 |
  41 | export type GetTransformOptions<T> = (
> 42 |   string,
     |         ^
  43 |   Object,
  44 |   string => Promise<Array<string>>,
  45 | ) => T | Promise<T>;
    at Parser.pp$5.raise (...\node_modules\babylon\lib\index.js:4215:13)
    at Parser.pp.unexpected (...\node_modules\babylon\lib\index.js:1599:8)
    at Parser.pp.expect (...\node_modules\babylon\lib\index.js:1587:33)
    at Parser.pp$7.flowParsePrimaryType (...\node_modules\babylon\lib\index.js:4952:14)
    at Parser.pp$7.flowParsePostfixType (...\node_modules\babylon\lib\index.js:5025:38)
    at Parser.pp$7.flowParsePrefixType (...\node_modules\babylon\lib\index.js:5041:17)
    at Parser.pp$7.flowParseIntersectionType (...\node_modules\babylon\lib\index.js:5047:19)
    at Parser.pp$7.flowParseUnionType (...\node_modules\babylon\lib\index.js:5057:19)
    at Parser.pp$7.flowParseType (...\node_modules\babylon\lib\index.js:5068:19)
    at Parser.pp$7.flowParseTypeInitialiser (...\node_modules\babylon\lib\index.js:4393:19)

It is the first time I encountered this error. Downgrading back to 0.39.0 fixes this issue.
Additional Information

React Native version: 0.40.0-rc.1
Platform: Android. Not tested for iOS
Operating System: Windows 10

I found out that the babylon found in my-app/node_modules was a different version than the one required by react-native. When I navigated to my-app/node_modules/react-native/node_modules/, I found a babylon that is the required version for react-native.
I updated the my-app/node_modules/babylon to the required version, and the issue was fixed.
Shouldn't react-native be using the my-app/node_modules/react-native/node_modules/ before using the ones in my-app/node_modules?

I had the same issue.  Blowing away my node_modules and re-installing fixed it for me.

Seeing this issue as well, using yarn as the dependency manager. The version at node_modules/babylon is correctly 6.14.1 as required by react-native. The other version installed 6.13.1 is required by babel-core and others is in their respective node_modules directories.

I got this error even from react-native-init, I just modified the type definition to export type GetTransformOptions<T> = any for a temp workaround.

Had the same issue, and also fixed it using solution by Kaishlet above.

Same problem here, first run
npm install babel-loader babel-core babel-preset-es2015 webpack --save-dev

Then copy node_modules/react-native/node_modules/babylon to override node_modules/babylon fix this problem.

The above worked for<EMAIL_ADDRESS>but not for<EMAIL_ADDRESS>Anyone have suggestions?

Running the following should fix it
npm install --save babylon

I should also note that it has to be npm not yarn, based on my testing this morning.

If it  can help someone else, in my case this error showed up after I introduced an error in my code.
The error being in a react-native functional component :
export default function PaddingView(props) {
    return (
        <FlexView
            {...props}
            style={[
                styles.paddingOfView,
                props.style,
            ]}
        >
            {this.props.children} // In addition to being useless, I don't have `this.props` here, but just `props`. This was the error.
       </FlexView>
    );
}


Other languages

There is something wrong I think with the language handling.
Even if setting the code page to Icelandic then it will always fail......
e.CodePage(CodePage.PC861_ICELANDIC)
Reason is here basically I think:
public virtual byte[] Print(string data)
{
// Fix OSX or Windows-style newlines
data = data.Replace("\r\n", "\n");
data = data.Replace("\r", "\n");
 // TODO: Sanitize...
 return data.ToCharArray().Select(x => (byte)x).ToArray();

}
Because the library just does ToCharArray from the input string then you get back Unicode bytes which can be much higher than what fits in the given code page. Thus not emitting correct char.

And here is the proof that it is indeed the ToCharArray there that messes it up.
So having set the code page to PC861_ICELANDIC then the only way to get Print and PrintLine to work is to pre-process all I send in with to make sure it is no longer actual unicode.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var chars = System.Text.Encoding.GetEncoding(861).GetBytes(token.Text);
string s = System.Text.Encoding.Latin1.GetString(chars);
result = Combine(result, e.PrintLine(s));
And then it works and I get Icelandic letters printed out.
So to fix the library then library should probably at very least add Print and PrintLine overides that just take byte[] since then I could send in the System.Text.Encoding.GetEncoding(861).GetBytes(token.Text) directly.
Or the Print and PrintLine would need to be fixed to take into account the selected code page for the printer, and get the bytes correctly from the string for that.

The override for Print is just Write (you can write byte arrays of whatever you want directly to the buffer).
You are correct in that conversion / compression of Unicode into printer code pages is not currently a function this library supports.  I agree with you that this would be super valuable, but it requires some way to map unicode into the relevant code pages for each given language, and rejection of other unencodable unicode characters.
Another potential solution is to support these other languages in a bitmapped way, where we could render Unicode directly into an image and print it that way.  It would require a clear definition of the pixel width of each printer, which could have a lookup table or could be specified manually. Then it would be a matter of properly printing and wrapping the generated image, but then we could support anything, even emojis! 😸  The whole concept of printer code pages would also no longer be relevant, and that would open the door to all sorts of cool layout options since at that point they're image-based and not directly related to the printer.
This library is MIT and we super appreciate any contributions.  The work around various languages' printability (especially Kanji based languages) has come up a lot - they would seriously benefit from an image / rasterized print where the fonts are handled by the library, because the printers currently only support Katakana.  If you're not familiar, languages like Japanese, Chinese, and Korean are symbolic and have a single symbol represent a whole word - meaning they have thousands of such characters.  This doesn't fit into a limited memory of an embedded device and Unicode is not a standard of ESCPOS, so what they do is require an alternate character set called Katakana that is phonetically spelling out the words, which is much lengthier.
This isn't something I have the time to implement myself, but I think this would really help out our library, and I can definitely test this out for you on multiple printers if you want to tackle either of the 2 implementations above.  The only thing I'd ask is to make it flexible enough to support more code pages than just Icelandic, even if you just stub out the other languages, so that as others need those languages, they can build and test out the mappings.

In case it wasn't clear from my comment about directly writing the bytes - the Print function was originally intended to throw if unicode text is entered (which is what that //TODO: sanitize block is about).  All you really have to do if you use the Write directly is to do the replacement of carriage returns with newlines.
I see after re-reading your post that there's already code page conversion built into .NET, it seems?  In that case, could we have an extension of the print function that takes in the desired code page and throws if characters are outside the character set?

Yes, I think extension of the print method would be excellent yes....
One that takes then the code page.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var chars = System.Text.Encoding.GetEncoding(861).GetBytes(token.Text);
So it would be something like
void PrintLine(string line, int codepage)

You game for making a PR that adds this support?
Is there an enum that maps to the 861? Or how do you know which numbers are valid code pages?

I will see about doing it on the weekend. There is no enum, I imagine it will just throw, if code page is invalid.

FYI @lukevp this is the second time someone suggests such a change to Print() instead of using Write(), perhaps it's more natural to users of the library to have it both ways?
See https://github.com/lukevp/ESC-POS-.NET/issues/88#issuecomment-744974099


Graph with second value

Hello
I am not sure if this is a feature request. But I was asking myself if it is possible to draw a second line in the graph without loosing resolution? In my case I display a temperature and the given Set-temperature. It is working but it started really "flickering" when drawing both lines. My (silly?) question is if it is possible to handle the Settemp value as a static variable which only changes when it changes with a pressed button. This should maybe save some processor performance and keep its resolution high. I hope I could explain this request/question understandable enough.
But so far really thanks for this great library. it saves a lot of work and time ;)
regards
mcarosh

@mcarosh I'm sorry but your idea doesn't help.  I gave it a go and hacked the graph to support the set point. It does save memory but the flicker is just as bad.  I attached it so you can see for yourself.
The only way I can see to improve matters is to either use hardware scrolling which is not directly supported or if you used double buffering.   If you use a ESP32 with TFT_eSPI this would be easy to do with its sprite support.
The Adafruit GFX does have something called canvas for a backstore but I have never used it and I doubt Arduino would have enough memory to store a graph.
Paul--
graph_setpoint.zip

@mcarosh I'm sorry but your idea doesn't help.  I gave it a go and hacked the graph to support the set point. It does save memory but the flicker is just as bad.  I attached it so you can see for yourself.
The only way I can see to improve matters is to either use hardware scrolling which is not directly supported or if you used double buffering.   If you use a ESP32 with TFT_eSPI this would be easy to do with its sprite support.
The Adafruit GFX does have something called canvas for a backstore but I have never used it and I doubt Arduino would have enough memory to store a graph.
Paul--
graph_setpoint.zip

Hi Paul
First thx for your fast reply and your efforts. I´ve now cheated in a way where I simply draw a line overlapped to the graph and made y-values the SetTemp variables. (Also recalculated the y-position according to the display) This works a bit better because now only the line is flickering. But this is better than both (graph and line :). Again big thanks for your help and maybe someone else has a better idea?
Do you wish to close this comment?
regards
mcarosh

Hi Paul
First thx for your fast reply and your efforts. I´ve now cheated in a way where I simply draw a line overlapped to the graph and made y-values the SetTemp variables. (Also recalculated the y-position according to the display) This works a bit better because now only the line is flickering. But this is better than both (graph and line :). Again big thanks for your help and maybe someone else has a better idea?
Do you wish to close this comment?
regards
mcarosh

@mcarosh Happy you found a solution.
Closing this is your choice but you should add this to issue:
Proposal for new Plot control #288
Paul--

@mcarosh Happy you found a solution.
Closing this is your choice but you should add this to issue:
Proposal for new Plot control #288
Paul--

OK
thanks

OK
thanks


How to exit gore?

No idea if this is a missing or hidden feature. In stdin mode, it is not clear how to exit gore. It could be something like:
:exit
:quit

It would also be good to mention it on the README.

The current code prints "Enter one or more lines and hit ctrl-D".  Was that not clear?

Sorry, filed to the wrong repository. My mistake


DNS record catapp.centralus.cloudapp.azure.com is already used by another public IP.

Hi,
I pulled a copy of your code (unmodified) in a free Azure account and tried running it.  I consistently get the following error:
Error: Error applying plan:

1 error(s) occurred:

* azurerm_public_ip.tf-guide-pip: 1 error(s) occurred:

* azurerm_public_ip.tf-guide-pip: Error Creating/Updating Public IP "tfguide-ip" (Resource Group "Terraform-Azure-Beginners"): network.PublicIPAddressesClient#CreateOrUpdate: Failure sending request: StatusCode=400-- Original Error: Code="DnsRecordInUse" Message="DNS record catapp.centralus.cloudapp.azure.com is already used by another public IP." Details=[]

How do I avoid that error?
Thanks

I figured it out


Stablize cargo test

The root cause of the flakiness observed in the hook, clean up file descriptors, and channel tests are the result of running the tests in parallel in the same process by cargo test. Many of the operations have side effects on the underlying OS and the process, such as closing down fds. These tests also depends on the underlying OS state such as file descriptor states. The best we can do is to mark these tests as serial and properly clean up any left over resources such as opened fds before the test ends. If the underlying OS decided to generate errors for some of the IO calls we are doing, then there is not much we can do. Not sure if retry is a valid solution here and retry generally will make the code much more complex.
Note: runc actually doesn't have unit tests on most of these operations. The other solution is to fully depend on the integration tests to test out these code path. It may be the reasonable thing to do if these unit tests prove to be hard to get right.
Note2: Currently, I ran cargo test for 100 iterations and no failed tests. There may still be flakiness, but it should be extremely rare.

Codecov Report

Merging #277 (5e07462) into main (b8442af) will increase coverage by 28.35%.
The diff coverage is 11.53%.

@@             Coverage Diff             @@
##             main     #277       +/-   ##
===========================================
+ Coverage   41.22%   69.58%   +28.35%
===========================================
  Files          15       46       +31
  Lines        1458     5651     +4193
  Branches      412        0      -412
===========================================
+ Hits          601     3932     +3331
- Misses        645     1719     +1074
+ Partials      212        0      -212

Thank you for your investigation. Can I ask you to write a clear description of the results of this investigation in the section of the test that we are using serialize other tests?

The root cause of the flakiness observed in the hook, clean up file descriptors, and channel tests are the result of running the tests in parallel in the same process by cargo test. Many of the operations have side effects on the underlying OS and the process, such as closing down fds. These tests also depends on the underlying OS state such as file descriptor states. The best we can do is to mark these tests as serial and properly clean up any left over resources such as opened fds before the test ends. If the underlying OS decided to generate errors for some of the IO calls we are doing, then there is not much we can do. Not sure if retry is a valid solution here and retry generally will make the code much more complex.

Thank you for your investigation. Can I ask you to write a clear description of the results of this investigation in the section of the test that we are using serial other tests?

The root cause of the flakiness observed in the hook, clean up file descriptors, and channel tests are the result of running the tests in parallel in the same process by cargo test. Many of the operations have side effects on the underlying OS and the process, such as closing down fds. These tests also depends on the underlying OS state such as file descriptor states. The best we can do is to mark these tests as serial and properly clean up any left over resources such as opened fds before the test ends. If the underlying OS decided to generate errors for some of the IO calls we are doing, then there is not much we can do. Not sure if retry is a valid solution here and retry generally will make the code much more complex.

Done. I left the tty test alone because it was the original user of serial tests I think, so it is not part of this change.


JUnit version 3.8 or later expected

Hi,
I am trying to learn from your code so i have started from domain module. I have copied build.gradle content of both  project and domain module also copied the buildsystem folder content from your project to mine. when i run a test case i got "JUnit version 3.8 or later expected"
I have cloned your repository and it works fine.. i am sure my project structure is similar to yours ..
I really don't know what is the problem in my project and how to solve it

Cannot tell you much about your problem. This project is working as it is and I hope you understand that all the issues open are related to this project. I would suggest you to put the error with the whole trace on stackoverflow. Thanks.


add my favorite manga title to README

Magi

I want to keep the template clean, so will not merge this PR


Getting started guide tweaks

PR to make small fixes to the getting started guide.
I'll update the online HTML manually to reflect the changes in the first two commits.

@philippjfr I think I recommend merging this for 1.8.1. Work can continue in a new PR...

Looks like I missed this. Is it still ready to merge?

I think so, yes.


@thuongtruong1009

@thuongtruong1009
You should fix the link of sound and image, which should get in the internal source code. Because itn't be changed  when you change on the device.
It shoud put in .('./link-directed/....');
Originally posted by @font-end-pro in https://github.com/thuongtruong1009/Snake-Game-OOP/discussions/5#discussioncomment-1144935

@thuongtruong1009
You should fix the link of sound and image, which should get in the internal source code. Because itn't be changed when you change on the device.
It shoud put in .('./link-directed/....');
Originally posted by @font-end-pro in #5 (comment)

In this project, I see:

You should rename the package
Add all media in the assets file to easy manage
Replace link directed in your code like that: ./assets/background.png
Make an issue for look for help from your community
Delete final line in code and use refactor to analyze code
Run code together with CI pipeline workflow.
--> Hope that will useful for you. Thanh you!

@all-contributors please add @font-end-pro for the great issue and idea contributing

@all-contributors please add @thuongtruong1009 for the author of code, algorithm, idea, run and push code

@all-contributors please add @ImgBotApp for the health of image pixel

@all-contributors please add @ImgBotApp for the data and tool

@all-contributors please add @0826240270 for the great issue and idea contributing

@all-contributors please add @tung01673641696 for the great issue and idea contributing

@all-contributors please add @codacy-badger for the test, bug, data

@all-contributors please add @codacy-badger for the test, bug, data

@all-contributors please add @wpolancofor the ideas, a11y

@all-contributors please add @wpolanco for the ideas, a11y

@all-contributors please add @Sanjulata19 for the ideas, mentoring and discuss

@all-contributors please add @Oopprojectgame for doc and example


Add support for WIT resources

Implement support for WIT resources, including the canonical ABI requirements.  For reference, see wit-bindgen's Rust and C implementations.

This was addressed in https://github.com/bytecodealliance/componentize-py/pull/36


adding compact boxes from m56755

The idea was to use the label to run the feature extraction automatically, however, there is a problem with that as discussed in https://github.com/MPEGGroup/FileFormatConformance/issues/75

Netflix will review these files.


DM: Device type icon

Fixes https://github.com/matrix-org/matrix-authentication-service/issues/1551

Build issues from mismatched pair dependency: https://github.com/vector-im/compound-web/pull/87


Swarm with Aerostack2 and PX4

Hello, is possible combine your examples for swarm and PX4 using Gazebo-Classic?
There is any done example to do this? (Maybe with BT)

There were a way to do it, but I'm not sure if it is still working. As said before, we will soon remove the package from aerostack2 and switch to Gazebo Fortress/Harmonic.
You might try this simulation description file:
{
    "world": "empty",
    "drones": [
        {
            "model": "iris_fpv",
            "name": "drone0",
            "pose": [ 0.0, 0.0, 0.0, 0.0]
        },
        {
            "model": "iris_fpv",
            "name": "drone1",
            "pose": [ 2.0, 0.0, 0.0, 0.0]
        }
    ]
}

Ok, but it will be still possible to use PX4 right?
As said before, we will soon remove the package from aerostack2 and switch to Gazebo Fortress/Harmonic.
Have you and idea about the time? Some months, one year, some years... just to better understand if I can start using Gazebo Fortress/Harmonic or for the moment aerostack is configured to work with PX4 only with Gazebo Classic?

Yes, aerostack2 it is right now working with PX4 and Gazebo Fortress and Gazebo Harmonic. Documentation is still pending, but can take a look at this project. It is running PX4 SITL inside a docker container though

@pariaspe there is a problem with your link, if I click on it I get the github error page...is not public?

My bad, project is still private because we are still working on it. We are basically following PX4 Gazebo simulation using px4 v1.14.3 tagged version. After simulation is launched, we are running:
        - MicroXRCEAgent udp4 -p 8888
        - ros2 launch as2_platform_pixhawk pixhawk_launch.py
            namespace:=<%= drone_namespace %>
            platform_config_file:=<%= config_folder %>/config_file.yaml
            fmu_prefix:=/<%= drone_namespace %>

Ok, in the afternoon I will let you know if I manage to make it work.
If is possible can you provide me the same thing with PX4 but that can work with thw swarm and behavior-tree examples?
My final goal is to use aerostack for a swarm simulation with PX4 and Behavior-Tree.

My suggestion is to get it working with gazebo first (no px4) and then switch to PX4, in one or two weeks we might have PX4 swarm simulation ready. About BT, there is no plan to work on it in the near roadmap.

I had already manage to make the examples linked above works. But I need to inteface them with PX4.
To be more clear...I need to simulate a swarm that fly using coverage algorithm, but all the drones will be based on PX4 fly controller. The BT will be used to coordinate the action of the drones (arm, takeoff, start mission,...,disarm).
So your suggestion is to wait the end of this month and try with your new examples?

Try to get the BT working first, then switching to PX4 should be easy.


fix: correct width prop in Banner

Fix the legacy ~w~ to v2 width in Banner.
https://github.com/pricelinelabs/design-system/blob/162128a7099245e509f47c679a862ae34a22ab07/packages/core/src/Banner.js#L62

Codecov Report

Merging #526 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #526   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          55     55
  Lines         569    569
=====================================
  Hits          569    569

Impacted Files
Coverage Δ

packages/core/src/Banner.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Fixing a few markdown links that have their URL and link text the wrong way round

Thanks for this. That's the issue with rapidly migrating from DokuWiki where they are the reverse :)


Add Custom Task Type Support

Problem
As a developer, I want to create Tasks using custom task types.
Solution

📖 Definition: In ClickUp's nomenclature, a custom task type is a kind of custom item. In like fashion, I used custom item to name the data structures and custom task type as instances of custom items.

Main Quest

Add CustomItemId to TaskRequest in clickup/tasks.go.
Add CustomItemId to Task in clickup/tasks.go.
Document nuances in values as comments.

Side Quests

Add a CustomTaskTypes service to facilitate programmatic assignment of Task types.

Validation

I updated the Get Task test.
I added a test file for the CustomTaskTypes service.
I tested an implementation of my fork in a private project with success.

@w-haibara san, your review is appreciated.
+@a-thug (major contributor)
+@heldeen (has recent context)
Thank you, all!


QR code image size is large to fit to screen

QR code image size is large to fit to screen. Any way to overcome it.

The QR-Code is printed as characters to the console, so you can just adjust your fontsize. Otherwise you could create a real image with the qr code on it with the help of some kind of library and display it afterwards.


SNAPtoAdj segmentation fault

I compiled SNAPtoAdj with Cilk enabled, and the tool works well for all my graphs, except for friendster.
It ends up with segmentation fault, if I tell the tool to convert the friendster graph into a symmetric one.
The command is like
./SNAPtoAdj -s friendster.txt friendster_J

wghSNAPtoAdj has similar issue as well.
I tried different compilers, icpc and g++ 5.4.0.
When compiling, it prints out the following commands respectively.
icpc -std=c++14 -O3 -DCILKP   -o SNAPtoAdj SNAPtoAdj.C

or
g++ -std=c++14 -fcilkplus -lcilkrts -O2 -DCILK   -o SNAPtoAdj SNAPtoAdj.C

However, the executable files of both failed on friendster.
Could someone give me any idea what is going wrong?
Thanks in advance!

Please try to compile with the environment variable LONG defined, e.g.,
LONG=1 g++ -std=c++14 -fcilkplus -lcilkrts -O2 -DCILK   -o SNAPtoAdj SNAPtoAdj.C


Refactor roundID

Description

removed unused funcs
added GetLatestRoundId func in keeper

Closes: #13 #34

 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.Freddy Li seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Fix uuid column usage in postgresql

Following the advice in
https://bitbucket.org/zzzeek/sqlalchemy/issue/3323/in-099-uuid-columns-are-broken-with

Coverage increased (+0.08%) to 65.72% when pulling 3ba317e541a2284304072ca58493dfef99dc5573 on guidow:fix_uuid_in_postgres into b186a96ecc8da74e872a7a02667f82cbc12530a9 on pyfarm:master.

Code looks good but we should probably change the setup.py too to use sqlalchemy>=0.9.9.  Based on the advice in that thread and this test it looks like it could end up breaking for someone if they're using an older version of sqlalchemy.


Add native-linux-riscv64 package

Motivation:
This patch adds support for linux-riscv64.
There was no code change other than adding support for linux-riscv64.
Modification:
It requires updating uraimo/run-on-arch-action to v2.4.0 for support for riscv64.
It also uses JDK 21 for riscv64 as it's the first LTS version with support for riscv64 (backports to JDK 17 done and JDK 11 in progress).
Result:

Actually the problem is, if I compile this with JDK 21 then Maven will be pulling this automatically to downstream JDK(s) like 8 or 11 which will eventually break them badly.

Actually the problem is, if I compile this with JDK 21 then Maven will be pulling this automatically to downstream JDK(s) like 8 or 11 which will eventually break them badly.

I'm not sure I understand the issue here. Do you mean that if we build with JDK 21, then it will mark the package as requiring JDK 21 which will break packages depending on brotli4j?

Right but even running JDK 11 code on JDK 8 will throw a direct error. Is there any hopes for JDK 8?

We can easily specify to build the packages to be runnable on JDK 8 with setting -source and -target passed to javac, and that works with JDK 11+ as well.

I'd prefer that. :)

We can easily specify to build the packages to be runnable on JDK 8 with setting -source and -target passed to javac, and that works with JDK 11+ as well.

@luhenry That's not necessarily true, see an example here.
Given how ByteBuffer is central to this library, I would really not recommend releasing with JDK11 while hoping to retain compatibility with Java 8. You would have to be able to run the test suite with Java 8 after compiling the main code with JDK11.

@slandelle seems like we can use <maven.compiler.release>8</maven.compiler.release> then which does what we expect.

+1 for running tests JDK 8 distros.

@slandelle seems like we can use <maven.compiler.release>8</maven.compiler.release> then which does what we expect.

Ah cool. Actually, JEP 247 (or maven) was probably buggy last time I tried. My sample now works.

@slandelle These incompatibility issues have actually prevented me from adding more variety of architectures. 🥲

I've added JDK 11 and 17 using the same workaround as s390x and aarch64 platforms (export MAVEN_OPTS="-Djdk.lang.Process.launchMechanism=vfork").
On the issue of no building on JDK 8, I don't expect JDK 8 to support RISC-V is the near-term. Where that change is IMO ok is that: 1. given it doesn't change any other platform, all other platforms are still JDK 8 compatible, and, 2. given RISC-V doesn't have JDK 8 across the board (not just Broatli4j), then there isn't really a need to support it. Additionally we know it supports it because there is no RISC-V specific compilation flags for the Java code, so the same code is generated for RISC-V or any other platforms. Given Brotli4j, Netty, and any other project depending on Brotli4j will only run on JDK 11+ on RISC-V, checking that it runs on JDK 11 on RISC-V in Brotli4j is acceptable.

I'd need a special test case to ensure the following:
When we run this on JDK 8, it should run fine, except the native library file is not being loaded. We need some conditional checks for JDK 8. And JDK 11+, we need to make sure the library loads fine. Basically, I want to test this:
<maven.compiler.release>8</maven.compiler.release>

Let's compile this on JDK 11, and make sure tests pass normally. Then on same Docker runtime, install JDK 8 and run the special case without recompiling.

Let's compile this on JDK 11, and make sure tests pass normally. Then on same Docker runtime, install JDK 8 and run the special case without recompiling.

Would you do that for RISC-V only, or all platforms? If for all platforms, that would help verify that the code generated by newer JDK is indeed compatible with JDK 8, however given you're only distributing the code generated by JDK 8, you're already pretty much guaranteed of that. And for RISC-V, the issue is there is no JDK 8 on RISC-V and I don't expect there will be one any time soon. The oldest supported version of the JDK on RISC-V is JDK 11.
I'm currently working on testing with JDK 8 on all platforms (expect RISC-V) when built with JDK 11 and 17.

Yup, that's right. I want to test for all platforms (preferably x64 for now) on JDK 8 compiled with JDK 11 just to be double sure (since I have some trust issues with Maven builds).

I want to test for all platforms (preferably x64 for now) on JDK 8 compiled with JDK 11 just to be double sure (since I have some trust issues with Maven builds).

@hyperxpro https://github.com/hyperxpro/Brotli4j/pull/111/commits/ace44cb164a114b5a9b564568e3f5dbd3c5f70a8  adds just that for all JDK 11 and 17 configurations (except RISC-V again given we don't have JDK 8 on RISC-V).

Actually, I mean, running RISC-V build (JDK 11) on x64 (JDK 8) without recompilation.

Let me know if you need helping hands for this.

Actually, I mean, running RISC-V build (JDK 11) on x64 (JDK 8) without recompilation.

@hyperxpro that's done with running RISC-V build (with JDK 11) on aarch64 (with JDK 8) without recompilation. I picked aarch64 over x86_64 to make it easier to use<EMAIL_ADDRESS>(which doesn't support x86_64).

It should now be ready for final review. It tests on JDK 8 the RISC-V package build with JDK 11.
@hyperxpro @slandelle  let me know if there is anything you'd like me to change. Thanks!

Released https://github.com/hyperxpro/Brotli4j/releases/tag/v1.13.0


[WIP] Markdown conversion

Automated version of #19 using pandoc and readme2tex.

[ ] pandoc is first used to convert latex to markdown, leaving math as is

[x] \maketitle
[ ] abstract - YAML metadata output with --standalone, kind of ugly
[ ] citations

[x] readme2tex is then used to convert the math to SVGs

[x] indented math (e.g. in lists) is not converted, as a workaround
the only enumeration was just flattened to paragraphs.
[x] inline math following display math in the same paragraph is
rendered as display math, used \noindent as a workaround

[ ] choose output file, currently overwrites README.md, if we go with this we should integrate the existing content into the latex, if not a separate output file should be choosen
[ ] git post commit hook
[ ] upstream latex workarounds to overleaf

Tested using debian 10's pandoc & texlive, with readme2tex from pypy
Depends on #20

You should not push autogenerated things to GitHub. GitHub is for hosting source.


Grapejuice: RobloxPlayer always installing

So, whenever I open Player, it starts installing Roblox, finishes, and does nothing. Even when launched from the website, starts installing, finishes, and most likely just exits. Logs show nothing important. However, when trying open Studio, the error saying "RobloxStudioBeta.exe not found".
Steps to reproduce the behavior:

Download the grapejuice package (just write grapejuice in the with pkgs section)
Download wine-wayland package (not sure if it is required, however I did)
Open Grapejuice (I used rofi (drun), but I suppose $ grapejuice app would work)
In the message box that pops out (from wine), press "Install" to install the wine-mono thingy
Either press the Open RobloxPlayer button, or go into Player, Initialize and Install Roblox, the behavior is the same
Enjoy Roblox installing and doing nothing...

I expected RobloxPlayer to actually open, not install and exit...

[xceptional@nixos:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.58, NixOS, 23.11 (Tapir), 23.11pre537656.7c9cc5a6e5d3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

This is already tracked in issue #220062


generating new comscore panels stratified on race census (ACS) data

all panel generation code is within notebook. minor bug fix in stratify_data_without_replacement function
saving output panels to output/comscore_acs_race_panels.csv
this supercedes code that stratified on both race and income distributions from CPS data
generating 10 panels for each of the 52 weeks of data, creating 520 total panels

This PR is replaced by https://github.com/aberke/floc-analysis/pull/10 in a hack to get around git LFS issues.


Treat more exception types as non-fatal

Potentially fix https://github.com/fsharp/FsAutoComplete/issues/1009 by handling TaskCanceledException  (as well as single-exception AggregateExceptions of the accepted types)

this just might work IMHO, but I can't test this on my machine as fake does not build fsac for me on my shiny arm64 mac :(
you said me a couple of months ago how F# unwraps (or rather does not unwrap) AggregateException in try/with clause, but maybe this is unrelated.
we probably want to add test-suite for ionide.lsp ? this could help define behaviour of the lib maybe? what do you think?

Tests are a good idea, I guess a test would be to make a dummy server with a long-running implementation (Async.Sleep ...) and then cancel it and verify that the overall server doesn't die?


Open video call in application window by default

This is rather a feature request, but a bug in the sense that the default behavior of the desktop client regarding video calls has changed in version 3.6.0. The idea is to set the then introduced switch (allowing to set opening video calls in an application window or the default browser) in Window -> Settings to the opposite default value by default (without the user setting it explicitly), so to "Open Video Chat using Application Window", which is switched off by default now.
Thank you very much, contributors - all this is excellent work and is running perfectly!
Describe the bug
By default, the desktop app now opens new video calls in the default browser instead of a new application window, as it was before version 3.6.0.
What operating system and which version? Debian Server
Which version of Rocket.Chat (Server)? Currently 4.3.2, was the same before on 4.2.x
Which version of Rocket.Chat.Electron (Electron/Desktop)? All versions from 3.6.0 upwards.
Is there any setting relevant changed?
To Reproduce
Steps to reproduce the behavior:

With video server configured, In any chat or channel in the desktop app, click the call button
A new tab or window in the default browser opens
This can be changed (it works) by clicking Window -> Settings -> Activate the switch "Open Video Chat using Application Window"

Expected behavior
Honor what setting had been implemented before client version 3.6.0, open video calls in application window by default

Hello @jahohu I didnt get what is happening.
Opening video call is enabled by default. I didn't get if you are having problem with this or what.
Any new installation start with it enabled.
Could you please test the lastest release?

Hello, thanks for reaching out. Yes, video calls do open outside the Chat window. The thing in our setup is that we would like to have the default handling of the video call in the way that it opens an application window and not the browser window. The switch for that (Desktop app -> Window -> Settings), introduced in v. 3.6.0, leaves it to "browser window" when you don't switch manually. Sorry for the weird setup, but we cannot rely on our users to do this on their own, so they would end up with video calls in the browser. We want to avoid this because the video/audio device handling creates support question all the time. In the built-in application window of the Rocket client, so in the Chromium window that handles the Jitsi meeting, this works fine.

Thats the weird thing, by default the option is enabled and by default it opens on an Electron/Chromium window. Only if the user turned it off the option will be off.
Are you using the 3.7.6 version?
Sorry for the recurring questions, it that I want to really understand and help you.

Well, apparently that was my test setup where I once installed version 3.6.0 and didn't entirely delete all profile settings after I played around with that switch. Now with an actual fresh installation, even in our setup situation in the upgrade path from 3.5.7, the default in 3.7.6 is as expected.
Sorry and thank you!

Perfect! I thought that was the issue. Thank you!


[Bug] [CDCSOURCE] CDCSOURCE synchronizes the entire database from MySQL5.7 to doris and reports an error

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
环境：Dinky0.7.5+Flink1.17.2
现象：配置整库同步任务提交flink无报错日志，dinky有报错如下：
[dlink] 2024-01-29 08:29:55 CST ERROR com.alibaba.druid.stat.DruidDataSourceStatManager 165 addDataSource - register mbean error javax.management.MalformedObjectNameException: Invalid character '=' in value part of property
What you expected to happen
无
How to reproduce
创建CDC任务
Anything else
No response
Version
0.7.5
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Use Dinky 1.0


Some errors with lua

When i am trying to open the newest version in the editor it gives me the following:
[2016.04.04-01.29.04:341][  0]C:\Users\Documents\Unreal Projects\UMod-UMod_Alpha\Source\UMod\Lua\LuaInterface.cpp(318): error C3861: 'luaL_register': identifier not found
[2016.04.04-01.29.04:341][  0]C\Users\Documents\Unreal Projects\UMod-UMod_Alpha\Source\UMod\Lua\LuaInterface.cpp(320): error C3861: 'luaL_register': identifier not found
[2016.04.04-01.29.04:442][  0]C:\Users\Documents\Unreal Projects\UMod-UMod_Alpha\Source\UMod\Lua\LuaEntityBase.cpp(27): error C2664: 'void LuaInterface::Register(FString *,const luaL_Reg *)': cannot convert argument 1 from 'const char [7]' to 'FString *'
[2016.04.04-01.29.04:442][  0]C:\Users\Documents\Unreal Projects\UMod-UMod_Alpha\Source\UMod\Lua\LuaEntityBase.cpp(27): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
[2016.04.04-01.29.04:544][  0]-------- End Detailed Actions Stats -----------------------------------------------------------
[2016.04.04-01.29.04:544][  0]ERROR: UBT ERROR: Failed to produce item: C:\Users\Documents\Unreal Projects\UMod-UMod_Alpha\Binaries\Win64\UE4Editor-UMod.dll

And with the previous version it compiled the project fine but when i tried to launch it Windows gave me and error saying that lua53.dll is not installed on my computer. But i have the lua53.dll file in the Binary folder? Is there something lua related i have to install first?
SuperPlayer

You downloaded the non building version... I tried to implement new functions to LuaInterface yesterday and I broke the game sorry for the incoveniance. But don't worry I'm preparing for EntityBase integration.
I'll give you LuaInterface with UserData support and I'll prepare a few methods to complete (inside LuaEntityBase)

I'll update the project for Editor version 4.10.4

Well we have a problem, after updating to 4.10.4 I can no longer compile the game : Application.ico is missing !

Here we go issue fixed, you can now start implementing PushEntity.
Basicaly the idea is to pass a table which will contain the lua entity table (if any) as metatble, which has as metatable the entitybase's metatable. And then in the first created table put a __self value set to a userdata which will contain the pointer to AEntityBase. And finaly create a lua reference of that table and store this reference in AEntityBase for a later push if nessessary.
This of course does not support for inheritance, this only supports prototyping.
If you know a better way just let me know.


DataGrid: Fix PropertyColumn cannot set property's properties

When using PropertyColumn like this <PropertyColumn Property="x => x.EmployeeInfo.Position" />, editing Position will throw an exception
ps: I'm sorry this is my third pull request for this bug, I'm not very skilled at this 🤣
Description
fixes #6804, #6788
How Has This Been Tested?
unit (updated existing one)
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

Hi. Thank you for the Pull Request.
I believe there is a more efficient way to accomplish this without having to compile the expression, which can be quite costly. I will take some time to investigate this further, and come back to this.

@ScarletKuro An expression visitor could be used to accomplish this.
protected internal override void SetProperty(object item, object value)
{
    if (Property.Body is MemberExpression)
    {
        var setter = new NestedPropertySetter(Property);
        setter.SetValue(item, value);
    }
}

Visitor Class:
internal sealed class NestedPropertySetter : ExpressionVisitor
{
    public NestedPropertySetter (Expression expression) => Visit(expression);

    private readonly List<MemberInfo> _members = new();

    protected override Expression VisitMember(MemberExpression node)
    {
        if (node.Expression is MemberExpression)
        {
            Visit(node.Expression);
        }

        _members.Add(node.Member);

        return node;
    }

    public void SetValue(object instance, object? value)
    {
        // If property is nested, update root to be the object one level above the target property
        if (_members.Count > 1)
        {
            for (var i = 0; i < _members.Count - 1; i++)
            {
                var member = _members[i];
                instance = GetValue(_members[i], instance) ?? throw new InvalidOperationException($"Value of {member}");
            }
        }

        // Set target property value
        switch (_members[^1])
        {
            case PropertyInfo pi:
                pi.SetValue(instance, value);
                break;
            case FieldInfo fi:
                fi.SetValue(instance, value);
                break;
        }
    }

    private static object? GetValue(MemberInfo member, object root) =>
        member switch
        {
            PropertyInfo pi => pi.GetValue(root),
            FieldInfo fi => fi.GetValue(root),
            _ => throw new InvalidOperationException()
        };
}

Hi @zackasattackas, I appreciate your input, and I really like your idea with the VisitMember. It aligns closely with what I have been exploring thus far.
internal static void SetValue<T, TProperty>(this Expression<Func<T, TProperty>> expression, object? target, object value)
{
	var members = new List<MemberInfo>();
	var expressionBody = expression.Body;

	while (expressionBody is not null)
	{
		if (expressionBody is MemberExpression memberExpression)
		{
			members.Add(memberExpression.Member);
			expressionBody = memberExpression.Expression;
		}
		else
		{
			if (expressionBody is not ParameterExpression)
			{
				// We support only a ParameterExpression at the base
				throw new InvalidOperationException("We support only a ParameterExpression.");
			}

			break;
		}
	}

	if (members.Count == 0)
	{
		throw new InvalidOperationException("No getter found.");
	}

	var targetObject = target;

	for (var i = members.Count - 1; i >= 1; i--)
	{
		if (members[i] is PropertyInfo memberPropertyInfo)
		{
			targetObject = memberPropertyInfo.GetValue(targetObject);
		}
		else
		{
			var fi = (FieldInfo)members[i];
			targetObject = fi.GetValue(targetObject);
		}
	}

	if (members[0] is PropertyInfo propertyInfo)
	{
		propertyInfo.SetValue(targetObject, value);
	}
	else
	{
		var fieldInfo = (FieldInfo)members[0];
		fieldInfo.SetValue(targetObject, value);
	}
}

I'm also actively seeking a solution for the issue mentioned in https://github.com/MudBlazor/MudBlazor/issues/6788. The problem arises when we compile an Expression with nested properties like x => x.Property1.Property2.Property3 and subsequently invoke it with a model where Property3 is null, resulting in a NullReferenceException.
One approach could involve adding a try-catch block, but I'm unsure if that's the ideal solution. Another idea I'm considering is traversing all the members of the expression, using GetValue on each member, and checking for null values. If any null values are encountered, the expression would not be compiled and invoked.

I think we can also use List<MemberInfo>() in SetValue
For example x.Property1.Property2.Property3, we can get the values of Property1, Property2, Property3 in turn, if Property1 or Property2 is null, we can jsut return default value of Property3's type.
This can help prevent NullReferenceException, if nullable is enabled, we can write like this x.Property1!.Property2!.Property3
It's better to have a generic ExpressionVisitor, I write an example
internal sealed class NestedPropertyExpressionVisitor<T, TProperty> : ExpressionVisitor
{
    private readonly List<MemberInfo> _members = new();

    public NestedPropertyExpressionVisitor(Expression<Func<T, TProperty>> expression)
    {
        Visit(expression.Body);

        if (_members.Count == 0)
        {
            // like (T x) => x
            throw new InvalidOperationException("Expression contains no member access.");
        }
    }

    [return: NotNullIfNotNull("node")]
    public override Expression? Visit(Expression? node)
    {
        if (node is MemberExpression or ParameterExpression)
        {
            return base.Visit(node);
        }
        else
        {
            // like (T x) => x.MethodA().PropertyB
            throw new InvalidOperationException("Only chain of properties and fields access is allowed!");
        }
    }

    protected override Expression VisitMember(MemberExpression node)
    {
        Visit(node.Expression);

        if (node.Member is PropertyInfo or FieldInfo)
        {
            _members.Add(node.Member);
        }
        else
        {
            // It seems that this is not possible to happen
            throw new InvalidOperationException("Only chain of properties and fields access is allowed!");
        }

        return node;
    }

    internal TProperty? GetValue(T instance)
    {
        object? instanceObject = instance;
        if (instanceObject is not null)
        {
            foreach (var member in _members)
            {
                instanceObject = member switch
                {
                    PropertyInfo propertyInfo => propertyInfo.GetValue(instanceObject),
                    FieldInfo fieldInfo => fieldInfo.GetValue(instanceObject),
                    _ => throw new InvalidOperationException("Only chain of properties and fields access is allowed!"),
                };

                // To avoid NullReferenceException
                // like (T x) => x.A.B, is A is null, this is can work fine
                if (instanceObject is null)
                {
                    return default;
                }
            }

            return (TProperty?)instanceObject;
        }

        return default;
    }

    internal void SetValue(T instance, TProperty value)
    {
        object? instanceObject = instance;
        if (instanceObject is not null)
        {
            foreach (var member in _members.SkipLast(1))
            {
                instanceObject = member switch
                {
                    PropertyInfo propertyInfo => propertyInfo.GetValue(instance),
                    FieldInfo fieldInfo => fieldInfo.GetValue(instance),
                    _ => throw new InvalidOperationException("Only chain of properties and fields access is allowed!"),
                };

                // To avoid NullReferenceException
                // like (T x) => x.A.B, is A is null, this is can work fine, maybe there should throw an exception
                if (instanceObject is null)
                {
                    return;
                }
            }

            switch (_members.Last())
            {
                case PropertyInfo propertyInfo:
                    propertyInfo.SetValue(instanceObject, Convert.ChangeType(value, propertyInfo.PropertyType));
                    break;
                case FieldInfo fieldInfo:
                    fieldInfo.SetValue(instanceObject, Convert.ChangeType(value, fieldInfo.FieldType));
                    break;
                default:
                    throw new InvalidOperationException("Only chain of properties and fields access is allowed!");
            }
        }
    }
}

I removed all expression compilation for PropertyColumn and used the above NestedPropertyExpressionVisitor and found that it breaks a lot of the original usage.

Shouldn't they consider using TemplateColumn instead? I believe that the usage of x => columnDef.Field in PropertyColumn is incorrect and should not be encouraged. It seems like people are trying to use workarounds with anonymous types. We should offer an alternative solution for those who want a more dynamic approach to creating columns.
I'm curious if the Visitor would handle this case https://try.mudblazor.com/snippet/mkwdOoPekRTImQPM. However, we could potentially add a check to see if it's a dictionary type before.

@tjscience maybe you have an opinion about things that are discussed here to solve https://github.com/MudBlazor/MudBlazor/issues/6804, https://github.com/MudBlazor/MudBlazor/issues/6788?

I wrote a new version that supports indexer methods
internal sealed class NestedPropertyExpressionVisitor<T, TProperty> : ExpressionVisitor
{
    private readonly List<MemberInfo> _members = new();
    private readonly Dictionary<MethodInfo, (MethodInfo? SetMethod, object?[] Arguments)> _indexer = new();

    public NestedPropertyExpressionVisitor(Expression<Func<T, TProperty>> expression)
    {
        Visit(expression.Body);

        if (_members.Count == 0)
        {
            // like (T x) => x
            throw new InvalidOperationException("Expression contains no member access.");
        }
    }

    [return: NotNullIfNotNull("node")]
    public override Expression? Visit(Expression? node)
    {
        if (node is MemberExpression or MethodCallExpression or ParameterExpression)
        {
            return base.Visit(node);
        }
        else
        {
            // like (T x) => x.MethodA().PropertyB
            throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!");
        }
    }

    protected override Expression VisitMember(MemberExpression node)
    {
        Visit(node.Expression);

        if (node.Member is PropertyInfo or FieldInfo)
        {
            _members.Add(node.Member);
        }
        else
        {
            // It seems that this is not possible to happen
            throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!");
        }

        return node;
    }

    protected override Expression VisitMethodCall(MethodCallExpression node)
    {
        if (node.Method.IsSpecialName && node.Method.Name == "get_Item" && node.Method.GetParameters().Length > 0)
        {
            Visit(node.Object);

            var args = node.Arguments.Select(Evaluate).ToArray();

            _members.Add(node.Method);
            _indexer.Add(node.Method, (FindIndexerSetMethod(node.Method), args));

            return node;
        }
        else
        {
            throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!");
        }
    }

    internal TProperty? GetValue(T instance)
    {
        object? instanceObject = instance;
        if (instanceObject is not null)
        {
            foreach (var member in _members)
            {
                instanceObject = member switch
                {
                    PropertyInfo propertyInfo => propertyInfo.GetValue(instanceObject),
                    FieldInfo fieldInfo => fieldInfo.GetValue(instanceObject),
                    MethodInfo methodInfo => methodInfo.Invoke(instanceObject, _indexer[methodInfo].Arguments),
                    _ => throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!"),
                };

                // To avoid NullReferenceException
                // like (T x) => x.A.B, is A is null, this is can work fine
                if (instanceObject is null)
                {
                    return default;
                }
            }

            return (TProperty?)instanceObject;
        }

        return default;
    }

    internal void SetValue(T instance, TProperty value)
    {
        object? instanceObject = instance;

        for (int i = 0; i < _members.Count - 1; i++)
        {
            instanceObject = _members[i] switch
            {
                PropertyInfo propertyInfo => propertyInfo.GetValue(instanceObject),
                FieldInfo fieldInfo => fieldInfo.GetValue(instanceObject),
                MethodInfo methodInfo => methodInfo.Invoke(instanceObject, _indexer[methodInfo].Arguments),
                _ => throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!"),
            };
        }

        switch (_members[^1])
        {
            case PropertyInfo propertyInfo:
                propertyInfo.SetValue(instanceObject, value);
                break;
            case FieldInfo fieldInfo:
                fieldInfo.SetValue(instanceObject, value);
                break;
            case MethodInfo methodInfo:
                var setMethod = _indexer[methodInfo].SetMethod ?? throw new InvalidOperationException("Cannot find indexer set method.");
                setMethod.Invoke(instanceObject, _indexer[methodInfo].Arguments.Append(value).ToArray());
                break;
            default:
                throw new InvalidOperationException("Only chain of properties, fields, and indexers access is allowed!");
        }
    }

    private static object? Evaluate(Expression expression)
    {
        if (expression.NodeType == ExpressionType.Constant)
        {
            return ((ConstantExpression)expression).Value;
        }
        else if (expression.NodeType == ExpressionType.MemberAccess)
        {
            var memberExpression = (MemberExpression)expression;
            var target = Evaluate(memberExpression.Expression!);
            if (target is not null)
            {
                var member = memberExpression.Member;
                if (member is PropertyInfo propertyInfo)
                {
                    return propertyInfo.GetValue(target);
                }
                else if (member is FieldInfo fieldInfo)
                {
                    return fieldInfo.GetValue(target);
                }
            }
        }
        else if (expression.NodeType == ExpressionType.Convert)
        {
            var unaryExpression = (UnaryExpression)expression;
            return Evaluate(unaryExpression.Operand);
        }

        throw new InvalidOperationException("Cannot evaluate expression.");
    }

    private static MethodInfo? FindIndexerSetMethod(MethodInfo methodInfo)
    {
        var parameterTypes = methodInfo.GetParameters()
            .Select(p => p.ParameterType)
            .Append(methodInfo.ReturnType)
            .ToArray();

        return methodInfo.DeclaringType is null
            ? null
            : Array.Find(methodInfo.DeclaringType.GetMethods(), m => m.Name == "set_Item" && m.GetParameters().Select(p => p.ParameterType).SequenceEqual(parameterTypes));
    }
}

I've tested x => x["a"] and x => x["a"].B, it worked well

@ScarletKuro  How trim compatible is this?

@ScarletKuro How trim compatible is this?

@mikes-gh the previous snippets are trim compatible, but the most recent with indexer is not.

Any updates?

I have mixed feelings about this because we are really going down a rabbit hole here trying to support all possible cases.

I agree with these statement, it also gives me mixed feelings, however #6804 and #6788 appear to be common scenarios that we should support?
There is another path that doesn't require much complexity, we could just do something like this:
https://github.com/MudBlazor/MudBlazor/blob/e67c22d06f6fb698c719aba5688832298226e7b8/src/MudBlazor/Components/DataGrid/PropertyColumn.cs#L38
replace this with
 _cellContentFunc = item => {
   try {
     var compiledPropertyExpression = Property.Compile();
     return compiledPropertyExpression(item);
   } catch (NullReferenceException) {
     return null;
   }
 };

By implementing this change, we would no longer need to be concerned about nested properties containing null values. The Object does not match target type can be fixed by improving the SetProperty.

I see what you are getting at with _cellContentFunc, but it also would remove the caching for the compiled Property causing a perf hit. Additionally, I am not seeing how this would fix the originally reported problem of not being able to set the value for nested properties.

but it also would remove the caching for the compiled Property causing a perf hit

In a what way? This code is suppose to be inside the   if (_lastAssignedProperty != Property) just like the original
if (_lastAssignedProperty != Property)
{
	_lastAssignedProperty = Property;
	var compiledPropertyExpression = Property.Compile();
	_cellContentFunc = item => compiledPropertyExpression!(item);
}

vs
if (_lastAssignedProperty != Property)
{
	_lastAssignedProperty = Property;
	var compiledPropertyExpression = Property.Compile();
+	 _cellContentFunc = item => {
+	   try {
+		 var compiledPropertyExpression = Property.Compile();
+		 return compiledPropertyExpression(item);
+	   } catch (NullReferenceException) {
+		 return null;
+	   }
+	 };
}

I am not seeing how this would fix the originally reported problem of not being able to set the value for nested properties

It wouldn't, but original issue is also aiming to fix https://github.com/MudBlazor/MudBlazor/issues/6788 and I was specifically talking about this to have a less complex code.

I believe the complexity is necessary here because without caching we would need to compile every time cell content is fetched which would be very expensive.


Fix mongo driver checksum problem

There is a checksum problem with mongo driver version 1.4.5 we faced recently:
verifying<EMAIL_ADDRESS>--
checksum mismatch
downloaded: h1:z4/YQzLTxI+ymcrS//Wc2JBn2b9ojvpVH3BaYT8rqUc=
go.sum: h1:TLtO+iD8krabXxvY1F1qpBOHgOxhLWR7XsT7kQeRmMY=

To fix that they suggest upgrading the package to 1.4.6. This is the subject of MR.

I'm not sure why my golang updated go.sum this way, you can replace it with your own, but please keep go.mod update

Closing #8

Dear @ilyakaznacheev, thanks for your PR.
Excuse the late follow up, I have not been actively working on this. I just updated the dependencies and refactored the code, which should resolve this issue.
Best, Roman


Enviro grow not functional while plugged into usb power?

It has no problems running on battery but as it is going to be sitting on my desk near lots of power, I don't see any reason to run it off of battery. I see in the log it does it's thing and takes a reading on boot if needed but then it says it's setting the alarm clock based on my config to wake up... but watching the log it never does anything again no matter how much time passes. This is on v0.0.9.

In addition, while plugged into usb power the pump timer doesn't function so the pump runs forever.


Startup Loading Screen not playing on load but in place of default

Hey @truong-bui, fantastic plugin although I’m hitting some strange issues when we try to use it in Lyra-based game. I’ve ripped out CommonLoadingScreen so that causing issues shouldn’t be a problem here:

FDefaultGameMoviePlayer::HasEarlyStartupMovie always returns false although looking at PLATFORM_SUPPORTS_EARLY_MOVIE_PLAYBACK on Windows should always be 1. I can force this to return true and it plays my startup loading screen (albeit with some flickering), however I think I’m missing something. Toggling on and off Allow in Early Startup makes no difference either.
If I don’t do that and leave the engine code as is, the startup loading screen is skipped entirely and is instead played where the default loading screen should occur (going into a match for example).

Any help would be greatly appreciated, thanks in advance! We are building from engine source that’s on 5.3.2 with the 5.3.0 branch of the plugin checked out.

Hi, please make sure that no plugin (for example, Pre-Load Screen Movie Player plugin) is using MoviePlayer, which can cause a conflict with the Async Loading Screen.
I have checked the PLATFORM_SUPPORTS_EARLY_MOVIE_PLAYBACK and see that it is assigned the value of (!WITH_EDITOR) (1) which is always false(0) if you run on Editor.

Unfortunately, this is related to the MoviePlayer module, which is out of my ability to fix.

Hi @truong-bui, thanks for the response! We actually do have the Pre-Load Screen Movie Player plugin, disabling it fixed it! Thank you so much!


Remove outdated IDE pages and point to wiki instead

Latest documentation and tips are on the wiki: https://cwiki.apache.org/confluence/display/BEAM

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

R: @tweise
CC @kennknowles @Ardagan @mxm @rmannibucau

Run Website PreCommit

@swegner the website had been updated since these confluence pages were created. Please update confluence before pointing to it.

@tweise good point. I'll update the wiki now.

Thanks for updating @swegner. Wiki pages currently give me "Service Unavailable". Will check again later :)


Upgrade the tests to use the new iron-test API.

Lines of code are deleted!
Fixes #65

@mcasper the new API is great.

Thanks! :smile:


tvOS support

The tvOS branch hasn't been updated in a number of years.  Is there any update on tvOS support?

Hi @dmorrow thanks for bringing this up. I'd recommend using contentful.swift for tvOS projects. Version 0.4.0-beta2 implements all the same features that this repo does and so far I haven't heard of any issues that would raise concern. It is installable for tvOS via both carthage and cocoapods.
After there is also a management SDK in swift, the objective-c tooling will be deprecated.
Let me know if you have further questions.

That being said, if you already have a project using this SDK that runs on iOS, I can consider moving tvOS support up higher in priority.

Thanks @loudmouth - we currently have an iOS project in Swift which uses the objc versions of the SDK and persistence.  Except for the management portion, is there anything else missing between these two libraries?  We don't need management features.

The main thing missing from the Swift SDK is a Swifty API to communicate with Contentful's images API. This is on the roadmap to be implemented and hopefully will be out in the next 2 months.

@dmorrow any updates?
Looking to close this ticket if everything is OK on your end.

I think we're fine for now - will give a shout with any issues.

I think we're fine for now - will give a shout with any issues.

Thanks. Closing for now. Happy coding :-)


Update hybrid-azuread-join-plan.md

@deosandeep : Thanks for your contribution! The author, @MarkusVi, has been notified to review your proposed change.

#sign-off


This Fork is the Java Version with Android SDK API 16 supported

This version is based on the original version 0.7.0
This is Java based with SDK 16 (Android 4.1) supported.
Goal:

Great Rendering Performance, No lagging UX, backward compatibility. (i.e. Java + min. SDK 16 API)
More Generic Classes for UI (i.e. base classes of EmojiPopup.Builder, EmojiPopup) for extensibility in various usages.

The Emoji set is already updated to Emoji 18.0.
Free feel to discuss here.

Update - ViewPager2 is now adopted and there are lots of improvement done for UI handling. Now is faster, less memory consumed, and better.


feat: deserializer POC

This PR presents a POC to write for write once deserialization code for biome configurations.
To demonstrate the feasibility of this, I only wrote the serialization of the configuration of useNamingConvention rule.
POC v1 is in commit 1.
POC v2 is in commit 2.
The system relies on two main traits defined in biome_deserialize::visitor:

NodeVisitor (DeserializationVisitor in POC v2) which allows visiting a value (array, map, boolean ,string, ...)
DeserializableLanguage that implements the specific code for every language

NodeVisitor is implemented by bool, String, Vec<T>, NamingConventionOptions and EnumMemberCase.
DeserializableLanguage is implemented by JsonLanguage (see biome_deserialize::json).
DeserializableLanguage requires the implementation of a method named deserailize_value that takes a visitor and a value (synatx node) as parameters.
An implantation of this method has to call the corresponding visit_ method of the given visitor according to the type of the given node.
For convenience, the POC v2 provides a third trait named Desrializable with a method desrializable. The trait is implemented by SyntaxNode<L>.
In contrast to the first POC, POC v2, the visitor is not implemented for the instance of a type, but for the type itself. Instead of modifying the visited instance, it produces an instance of the visited type. This removes the constraint to have types that implement Default. This also provides a cleaner way to deserialize enums and other values.
POC v2 also introduces a new struct DeserializationDiagnostics that simplifies creation of a diagnostic and ensure that users use a curated list of diagnostics.
In comparison to the previous approach we can easily add a config language by implementing DeserializableLanguage.
We also avoids leaking representation information outside a type. Only the type know how deserialize itself.

Closing in favor of #683


Card corrupt when saving more than 4 credit/debit cards

Describe the bug
When saving more than 4 cards from CardField, saved cards get corrupted. Can't use the cards after saving more than 4 cards. But when delete some cards and get the list back to 4 cards, it'll start to work.
To Reproduce
Steps to reproduce the behavior:
Add more than 4 cards from cardFiled and check the saved cards list (paymentMethods).
Expected behavior
This list should load as usual time and could be able to do the payments without any issue.
Desktop (please complete the following information):

OS: IOS and android
Version 0.2.3

Smartphone (please complete the following information):

Device: All devices
OS: All OS

Please provide the code you're using to reproduce this problem

client_secret is missing from paymentMethods when saved more than 4 cards
const handlePayment = async method => {
    if (!method.client_secret) {
      Alert.alert('400', 'Please re add payment method');
      return;
    }
    const { paymentIntent, error } = await retrievePaymentIntent(
      method.client_secret,
    );

    if (error) {
      Alert.alert(`Error: ${error.code}`, error.message);
    } else if (paymentIntent?.lastPaymentError) {
      // Default to a generic error message
      let failureReason = 'Payment failed, try again.';
      if (paymentIntent?.lastPaymentError?.type === 'Card') {
        failureReason = paymentIntent.lastPaymentError.message;
      }
      Alert.alert(failureReason);
    } else {
      const paymentData = {
        payment_from: user._id,
        amount: job_reward * 100,
      };
      dispatch(addToken(paymentData)).then(resp => {
        if (resp) {
          dispatch(userInfo());
          dispatch(getTransactionHistoryList(1));
          navigation.navigate('AddTokenSuccess', { job_reward });
        }
      });
    }
  };

<PaymentMethods
  paymentMethods={paymentSheet.paymentMethods}
  onPay={method => {
    setActivePaymentMethod(method);
  }}
  filterLoading={load => setFilterFLoading(load)}
/>
<Button
  title={'Pay with Selected Card'}
  color={BUTTON_COLOR_CATEGORY.PINK}
  styleButton={styles.PWSCBtn}
  onPress={() => handlePayment(activePaymentMethod)}
/>

I can't really say what's happening here without knowing what's happening in the PaymentMethods component. Can you explain why you think this is a bug in the Stripe SDK?

PaymentMethods is only a component for display the saved cards. Simple UI nothing handling in there.

@vimukthinuclei it looks like you're trying to pass a paymentmethod to retrievePaymentIntent, which is meant for retrieving payment intents, not payment methods.
Your issue state that "when saving more than 4 cards from CardField, saved cards get corrupted", but the code you shared doesn't contain any logic for saving cards or using CardField


now that we have circe, build more http4s subprojects

fyi @rossabaker

green at https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2170/consoleFull


Refactor/balancer

Summary
###great
SUMMARY_GOES_HERE
Full changelog

[Implement ...]
[Add related tests]
...

Issues resolved
Fix #XXX

this branch is a work in progress.  it's far too premature to set a PR


Is it possible to get photo url from chat ?

I don't want to use "await _client.DownloadFileAsync(photo, fileStream)" download the image, I just want to get its URL address
                            if (msg.flags.HasFlag(TL.Message.Flags.has_media))
                                {
                                    if (msg.media is MessageMediaPhoto)
                                    {
                                        var mediaPhoto = msg.media as MessageMediaPhoto;
                                        TL.Photo photo = mediaPhoto.photo;
                                        string apiId = app_id;
                                        string apiHash = app_hash;
                                        string fileId = photo.ID.ToString();

                                        string fileUrl = $"https://api.telegram.org/bot{apiId}:{apiHash}/getFile?file_id={fileId}";

				    }
				}

I use the above code, when get fileUrl, it prompts that the permissions are insufficient.

Telegram is a cryptographically-secure messenger platform that ensure your messages and data exchange are not accessible to anyone. Hence you cannot access its content directly from the web via an URL.
The File ID used in the example URL you give is a specific construct from Bot API and is attached to the secret Bot Token.
Those bot File IDs do not exist in Telegram Client API (at least not with the same form and usage)
MTProto Api ID + Api Hash are not interchangeable with Bot Tokens and cannot be used with such api.telegram.bot/bot URLs


converter type fix

converter type fix

the ambari repo converter will be missing

no it won't ;)


Aborting error while cloning repository

Hello,
I'm getting an aborting error when cloning a repository. It shows an error message in the status line saying: error from RS_FUNCTIONMODULE_INSERT.
And it doesn't process the rest of the objects.
I'd prefer it it would continue creating the rest of the objects and then, in the end, showed a log of what went wrong.
This way I'll have to go and debug to try to figure out what went wrong and how to bypass it.
This is a screen shot after I pressed PULL again after the clone failed:

Thanks!
Nuno

yeah, we need to look into some better error handling
you can try setting a breakpoint in https://github.com/larshp/abapGit/blob/master/src/zabapgit_object_fugr.prog.abap#L186 to figure out the real error message

Regarding this specific error.. it seems like abapGit is trying to create a FM but I still don't see any function group in the package. Could that be the problem?

I put a BP in the beginning of the standard FM with error and went from there...

difficult to say, what is the value of sy-subrc after the function module has been executed?

That's the sad part: SY-SUBRC = 2 ( described as ERROR_MESSAGE )... the actual message inside RS_FUNCTIONMODULE_INSERT is 651(FL) which is "Function module does not exist".
I find it weird because I was gonna try to create the function group manually but found that it already exists after all... but in package $TMP. I'm sure this is a new object... do you first create them in the $TMP and only then move them to the target package?

$TMP: no, abapGit tries to place objects in the correct package first. But as always there might be a bug somewhere :smile:

I'm late to deliver a complex thing so I found a workaround: since I don't really need to clone that function group now... I reassigned it to another package and removed it from the repository. And now it worked ;)
But I hope in a near future I can help you figure out what is causing the problem!

cool, hope abapGit helps you out in whatever you are working on, and does not cause too much trouble.
Appreciate the bug reports

I can tell you that... given some recent changes in security policy we have no way to use the transport system to copy objects between our two DEV systems... so... if it weren't for abapGit I'd surely be spending most of my time copying stuff between both systems. I'd probably be using ZSAPLINK but the effort and its limitations are not comparable to abapGit.
So I am the one who needs to thank you! And I'll definitely do my best to help the project ;)

I just ran into the same problem. My suspect is, that it was caused because I used custom DDIC types for the parameters interface of the function modules. This did occur when I was trying to pull the contents from the Git repository into a new SAP system. I think the function group was pulled before the DDIC objects from the Git what lead to failures of  RS_FUNCTIONMODULE_INSERT, since the types of the parameters interface where not present yet.
After I transported the respective objects to the new system, synchronizing with abapGit works fine even for the function group/modules.

okay :smile: thanks for the bug report
can you try reproducing the issue in a public repository? If it is due to custom DDIC types, I guess it should be pretty easy to reproduce a small isolated example
abapGit has a method prioritize_deser which handles the sequence of which the objects are deserialized, perhaps it needs adjustments regarding function modules,
https://github.com/larshp/abapGit/blob/d6258d9ea85efd5fcd989c87999dbc3c2dc4880a/src/zabapgit_objects_impl.prog.abap#L576

Hi Lars, I just tried as you suggested. Test repo is at https://github.com/pfaller/abapgit-test.
Seems that my assumption was wrong, it's probably not the dependencies to DDIC types: I deleted the objects and cloned the github repository into my system again - did work. I'll try if I can provide a reproducable example.
One other thought: The git repository I tried to clone initially and which failed in the function modules was created with an earlier version of abapGit (from end of Sept.). For importing I was using the current build - do you think this could be a cause?

not sure, but everything is possible :smile: I think the FUGR code has been quite stable recently

The only improvement I see lacking would be making it able to deal with those dreadful maintenance view function groups and its includes which abapGit is not allowed to create :(

@nununo will hopefully get it fixed someday :smile:

I am currently experiencing some similar problems, added some extra code to better show the error message:
https://github.com/larshp/abapGit/commit/0add070e67106cee7ffcb4fb51b3750bfa2617d8
It looks like my error occurs due to RFC enabled function modules, @nununo @pfaller are your function modules also RFC enabled?

Indeed they are RFC enabled! You're in the right track! ;)

Issue reproduced: https://github.com/larshp/FUGR
It happens for RFC enabled function modules, when calling RS_FUNCTIONMODULE_INSERT there is a check that the parameters are valid for RFC, this append for the Active DDIC objects, but currently in abapGit the DDIC objects are not active at this time.

Yes, also in my case it were RFC functions, my symptoms match perfectly to what you describe. I've even tried to reproduce this bug with RFC functions, but didn't observe the bug again - I think I the DDIC object from the parameters were already activated on the system before.

try again, this should be solved now

closing, please create new issue if the problem persists

Sorry for the late reply. I just set-up a new system where I cloned the same package, now this error didn't occur anymore. Thanks for fixing it!

For people still having this issue ("error in RS_FUNCTIONMODULE_INSERT: 2 FL651"), it may happen normally when a RFC-enabled function module has a parameter which refers to a type which does not exist in the system, for instance you try to import a tool which is intended to be ERP-agnostic but as it was developed on an ERP system, an RFC function may have one of the parameters wrongly refer to a type which exists on ERP only. In that precise case, ask the project owner to correct the issue.
There may be other reasons. For general troubleshooting, to know the exact error message, set a break-point right after the call to FUNCTION_CREATE inside RS_FUNCTIONMODULE_INSERT, and check the values in variables FUNCNAME and SY-MSG*. For instance, an invalid type would correspond to a FL385 message with SY-MSGV1 containing the name of the type ("Type &1 is not known or allowed").


Unnecessary usage of JavaPlugin fields

I noticed when I searched for JavaPlugin that there are several references to JavaPlugin stored across the plugin, however you have a static method, Cardinal.getInstance() for accessing the plugin? Optimally, it would be best to use this method to retrieve the instance of the plugin, as opposed to storing a reference to it in several classes.

You little tinker, I was literally just about to PR this.


Make rfunc package easier to read

Instead of all the R-like functions being in 1 file, each type (int, float, string, etc) should have it's own file so it's easier to see which R functions have and have not been implemented.

Done!


SideCondition.toRepresentation: remove mapVariables

Fixes #2476
Fixes #2485
There is a space leak related to TermLike.traverseVariables, and https://github.com/kframework/kore/commit/c35bfa563753b79745f78f05367eb94b5b0a85bf increased the size of the SideCondition and therefore the number of times this function is called.
We discussed that the mapVariables call here is not entirely correct (because it erases the RewritingVariable information) and that it's actually no longer necessary since the simplifier only uses one variable type now anyway.

Review checklist
The author performs the actions on the checklist. The reviewer evaluates the work and checks the boxes as they are completed.

[x] Summary. Write a summary of the changes. Explain what you did to fix the issue, and why you did it. Present the changes in a logical order. Instead of writing a summary in the pull request, you may push a clean Git history.
[x] Documentation. Write documentation for new functions. Update documentation for functions that changed, or complete documentation where it is missing.
[x] Tests. Write unit tests for every change. Write the unit tests that were missing before the changes. Include any examples from the reported issue as integration tests.
[x] Clean up. The changes are already clean. Clean up anything near the changes that you noticed while working. This does not mean only spatially near the changes, but logically near: any code that interacts with the changes!

Thanks!


feat(starr): Add DVD5 and DVD9 to BR-DISK CFs

Pull Request
Purpose
Add DVD5 and DVD9 to the BR-DISK CFs to avoid unwanted full DVD images.
Approach
Add additional conditions to BR-DISK CF, remove requirement on current single condition
Open Questions and Pre-Merge TODOs

Requirements

[x] These changes meet the standards for contributing.
[x] I have read the code of conduct.

Based on Discord discussion, opened an issue with Sonarr to get this handled/rejected within Sonarr itself.
https://github.com/Sonarr/Sonarr/issues/5975


PrivateNodeHistory::of & PrivateHistory::of

Removed references to Ratchets in public functions
Replaced these references with PrivateDirectorys / PrivateNodes
Ensured all test cases for previous.rs compile with these new function signatures and pass test cases

Needs a format but generally seems GTG :)


Add build_runner change to the CHANGELOG

According to #569, the CHANGELOG should have the following line:

web-* templates: Upgraded build_runner to ^0.10.0.

Or maybe @kevmoo removed it on purpose?

Good catch. I do believe that it was dropped by mistake.


Use a python code formatter

Repo should go under a code formatter to stay consistent in code quality. I recommend black.

Hi @pnijhara
Since the book is still under production, these are not the final codes. There may be changes and updates to the code depending on the testing done by the technical editor. We'll make sure to check on this issue and resolve it while testing.
Thanks for the heads-up!

@sonam-packt I have opened these issues as reminders and I am the one who did the testing of the code along with technical reviewing.


refactor!: rename interbtc to ibtc

Signed-off-by: Gregory Hill<EMAIL_ADDRESS>

Was the decision to rename to iBTC finalized?


Can't remove docker machine with virtualbox driver

PS C:\Users\someb> docker-machine rm -f default3
About to remove default3
Error removing host "default3": C:\Program Files\Oracle\VirtualBox\VBoxManage.exe unregistervm --delete default3 failed:
0%...10%...20%...30%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Machine delete failed
VBoxManage.exe: error: Could not delete the medium storage unit 'C:\Users\someb.docker\machine\machines\default3\disk.vmdk' (VERR_SHARING_VIOLATION)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleUnregisterVM(struct HandlerArg *)" at line 163 of file VBoxManageMisc.cpp
Can't remove "default3"
PS C:\Users\someb> docker-machine ls
NAME       ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
default             not found    Error                             open C:\Users\someb.docker\machine\machines\default\config.json: The system cannot find the file specifi
ed.
default2   -        virtualbox   Stopped                 Unknown
default3            not found    Error                             open C:\Users\someb.docker\machine\machines\default3\config.json: The system cannot find the file specif
ied.
PS C:\Users\someb> docker-machine --version
docker-machine.exe version 0.8.0, build b85aac1
PS C:\Users\someb> docker --version
Docker version 1.12.0, build 8eab29e
PS C:\Users\someb>

It seems, that virtual disk boot2docker are still used somehow and can't be deleted manually. Only after restart i could delete them and create new ones.

For windows users, from task manager check for vboxheadless under the processes tab and end instances of that task. that way you manually delete the default machine in "C:\Users<Computer Name>.docker\machine\machines". You may also need to delete any instance of vbox that is currently running before you can recreate the default machine.


Add Python Solution for Problem Of The Day | 31 January 2023

Comment below if you're interested in working on this issue and would like to be assigned to it.

Hey @ImSaMPro! I would like to work on this issue.

@KhadijaKamran you have been added to this issue!

What is the Problem of the Day?

@KhadijaKamran
You will get the problem and description on 31st January 2023 at https://practice.geeksforgeeks.org/problem-of-the-day


Aliasing artifacts in tiled hexagon pattern

It seems that if you set enough repeats and zoom out a bit that the hex pattern will appear distorted.
Here is an example file test on a plane geometry:
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
  <surface_unlit name="surface_unlit" type="surfaceshader" xpos="14.579710" ypos="-3.224138">
    <input name="emission_color" type="color3" output="output_color3" nodegraph="nodegraph1" />
  </surface_unlit>
  <nodegraph name="nodegraph1">
    <output name="output_color3" type="color3" nodename="tiledhexagons_color3" xpos="16.355072" ypos="-2.594828" />
    <tiledhexagons name="tiledhexagons_color3" type="color3" xpos="12.956522" ypos="-3.189655">
      <input name="size" type="float" interfacename="size" />
      <input name="uvtiling" type="vector2" interfacename="tiling" />
      <input name="staggered" type="boolean" value="false" />
    </tiledhexagons>
    <input name="size" type="float" value="0.6" xpos="10.652174" ypos="-4.250000" />
    <input name="tiling" type="vector2" value="17.1, 16.1" xpos="10.673913" ypos="-2.870690" />
  </nodegraph>
</materialx>

Not sure but could it be a tolerance needs to be added to the <ifgreater> and <ifequal> tests.

@kwokcb This is a good note, and I suspect what you're seeing here is aliasing, caused by a high-frequency hexagon pattern being evaluated only once per pixel of the rendered image.
So far, my thinking has been that we'll resolve this generically by writing anti-aliased implementations of the MaterialX primitives in the future, allowing users to opt into this feature at shader compilation time.
I'm very interested in additional thoughts from the community on this, though, and this would make a good topic for a future MaterialX TSC meeting.

I guess any pattern can suffer from aliasing, but I don't noticed this for instance with "noise" procedurals for instance (with in object positions). No matter how much I zoom the pattern seems "stable". Not sure if this is a "apples" with "apples" comparison.

@kwokcb I would expect these artifacts to be most noticeable with MaterialX nodes that behave like "step" functions, where a binary choice is made between two inputs based on a comparison.  This type of binary choice occurs at the boundaries of shapes in the new line, circle, and hexagon nodes, but it's not really present in smooth functions like Perlin noise.
To my current thinking, we'd want to address this in the implementations of MaterialX nodes that behave like step functions (e.g. ifgreater), by providing antialiased versions that users can enable at shader generation time, though I'm very open to other ideas from the community.
There's some good background on this subject here, and it's a topic that I know the authors of RSL and OSL have given a lot of thought to:
https://renderman.pixar.com/resources/RenderMan_20/basicAntialiasing.html

We had a chance to discuss this in depth at our last MaterialX TSC and on the ASWF Slack, and one key takeaway is that each renderer will need to handle antialiasing in its own appropriate fashion, rather than MaterialX providing an automated antialiasing solution.
Let's plan continue this discussion on the ASWF Slack, where a good summary thread can be found here.


add option to ignore snapping to some of layers

add "snapIgnore:true" in a layers option to ignore it during snapping

Updated Readme. Looked a bit for testing, not possible to trigger mouse events with Cypress, would be happy to hear if you got any ideas.

You're right regarding the cypress tests - I don't have any test for snapping yet because of the same reason. If you can fix the last two comments I have, update the branch, I'll merge it ✅

Great job 👏


Exception aiohttp.client_exceptions.InvalidURL when token is expired

Hi!
Something strange happen when ImplicitSession tried to re-authorize
I used phone/password credentials and  auth url is empty in this case
The stack is:
Traceback (most recent call last):
File "/home/user/bot/bot.py", line 197, in watch_update_posts
await walk_wall_posts(api, store, owner_id, max_posts_offset=30)
File "/home/user/bot/vk.py", line 41, in walk_wall_posts
items, count = await get_wall_posts(api, owner_id=owner_id, offset=offset, limit=posts_per_request_limit)
File "/home/user/venv/lib/python3.7/site-packages/backoff/_async.py", line 131, in retry
ret = await target(*args, **kwargs)
File "/home/user/bot/vk.py", line 29, in get_wall_posts
response = await api.wall.get(owner_id=owner_id, offset=offset, count=limit, extended=0, filter='all')
File "/home/user/venv/lib/python3.7/site-packages/aiovk/api.py", line 31, in call
timeout,
File "/home/user/venv/lib/python3.7/site-packages/aiovk/sessions.py", line 90, in send_api_request
await self.authorize()
File "/home/user/venv/lib/python3.7/site-packages/aiovk/sessions.py", line 154, in authorize
url, html = await self._process_auth_form(html)
File "/home/user/venv/lib/python3.7/site-packages/aiovk/sessions.py", line 224, in _process_auth_form
url, html = await self.driver.post_text(form_url, form_data)
File "/home/user/venv/lib/python3.7/site-packages/aiovk/drivers.py", line 69, in post_text
async with self.session.post(url, data=data, timeout=timeout or self.timeout) as response:
File "/home/user/venv/lib/python3.7/site-packages/aiohttp/client.py", line 1005, in aenter
self._resp = await self._coro
File "/home/user/venv/lib/python3.7/site-packages/aiohttp/client.py", line 466, in _request
ssl=ssl, proxy_headers=proxy_headers, traces=traces)
File "/home/user/venv/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 286, in init
self.update_host(url)
File "/home/user/venv/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 340, in update_host
raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL

Hi, I don’t have time to debug at the moment
I will be happy to get a PR with a patch

I could try to do something with that. I think it's not so difficult, but could you please give me some explanation for authorize function pipeline. It has too many different cases for auth form url

the order is described here
also i think you need put a breakpoint here and see the value of variable html and form_url

Hi, I investigated the problem
If we use implicit session flow, and our access_token expires in 24 hours then send_api_request will get authorization error and will try to re-authorize. In this case if have the SAME aiohttp session object as in previous authorization, get request for auth url https://oauth.vk.com/authorize will be redirected to /blank.html immediately without re-entering login and password.
This page doesn't contain any form fields and causes to parsing error.
There are 2 problems, I think

We have no method that validates parser results (two factored, auth etc.) and sometimes it leads to raising exceptions that are not related to what is really happening (as in case of InvalidURL exception in the issue).
2 Here we could be redirected to blank.html page and got access_token if we use already authorized session. This method should return url from this method. But I can't add additional argument that contains response.real_url resut because HttpDriver is customizable and I will break back-compatibility

What should I do in this case?

See the python code sample below:
import asyncio
import aiovk

if __name__ == '__main__':
    async def loop():
        async with aiovk.ImplicitSession(...) as session:
			await session.authorize()  # First requires login/password
			await session.authorize()  # Second redirects straigth to blank.html page

    asyncio.get_event_loop().run_until_complete(loop())


Node.js bindings: Add examples for AIO and PWM JS bindings

This adds the examples for AIO and PWM JS bindings.

aio_read.js: Read the value of analog device(e.g. Light sensor)  in every one second.
pwm_led.js: Using PWM, change the brightness of an LED in every 300ms.

Signed-off-by: Sudarsana Nagineni<EMAIL_ADDRESS>

@edersondisouza @gabrielschulhof Please take a look.

:+1: though I haven't tested it.

Replaced by #1953


python311Packages.fastapi-sso: 0.11.0 -> 0.12.1

Diff: https://github.com/tomasvotava/fastapi-sso/compare/refs/tags/0.11.0...0.12.1
Changelog: https://github.com/tomasvotava/fastapi-sso/releases/tag/0.12.1
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 290597 run on x86_64-linux 1

2 packages built:

python311Packages.fastapi-sso
python311Packages.fastapi-sso.dist