Add a build GH Actions workflow

We should have a GitHub Actions workflow that checks whether the Guide builds successfully so that critical errors will be caught before deployment to GitHub Pages.

Awesome idea, this will make reviewing pull requests much easier

https://github.com/marketplace/actions/build-deploy-to-github-pages-and-deploy-pr-preview


⚠ Bofrost.fr has degraded performance

In 281deae, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1095 ms

Resolved: Bofrost.fr performance has improved in a9041c0.


CARLA 0.9.11 make PythonAPI and make launch problem

Hi all, I have some issues while I was trying to build CARLA.

I have no idea to fix these issues. It is weird because rem is not found in batch file.
Thank you for your answer

Hi @zyan003, can you share the documentation you are following?
Are you running the command in the Visual studio x64 native tools Command prompt?

Hi Corinne,
I solved this problem by resetting my Windows operating system. Then
everything works fine now. I did running the command in Visual Studio x64
native tools command prompt.
Best,
zyan003
On Tue, May 25, 2021 at 7:16 AM Corinne @.***> wrote:

Hi @zyan003 https://github.com/zyan003, can you share the documentation
you are following?
Are you running the command in the Visual studio x64 native tools Command
prompt?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/carla-simulator/carla/issues/4213#issuecomment-847781252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATORHBDID4PERYS5A752RD3TPOBHPANCNFSM447LSMAA
.

I'm glad you got it sorted out!


Adds covid banner to provider microsite

Context
Adds Covid-19 banner to provider microsite.
NOTE: once the guidance page is ready then the URL to it will need to be updated in the link inside the banner on line 52 in: app/views/provider_interface/start_page/show.html.erb
Changes proposed in this pull request
Before:

After:

Guidance to review
Check that the feature flag works covid_19 is its name.
Link to Trello card
https://trello.com/c/7jHHrWSo/1805-dev-covid-19-changes-to-provider-microsite
Things to check

[*] This code doesn't rely on migrations in the same Pull Request
[*] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[*] API release notes have been updated if necessary
[*] New environment variables have been added to the Azure config

Wouldn't let me push changes to commit message to fix spelling mistake - new branch here: https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1706


[HW] Cassandra-for-Developers

Name: Niraj Gupta
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/niraj-gupta-45096186/
Attach the homework screenshots below for both step II and step III:

Well done!

https://api.badgr.io/public/assertions/1ojJwcoJQQmKga5HXCO05Q?identity__email=gupta.niraz%40gmail.com


Javascript support in IntelliJ plugin

I really love the idea of using Markdown to write my test steps, however i do mostly Angular development so really need a plugin for IntelliJ :)  Would love to help out on a project for it.

Thanks for the feedback. I'll take a crude shot in describing what this would take:

Add Javascript support in Gauge (#119 already mentions this). This would mean writing a new plugin that would enable Gauge to run Javascript implementations. This doc (WIP) aims to capture the details.

Enhance the Intellij Plugin to support Javascript. This could piggyback on existing Intellij support for Javascript for features such as Auto-complete, Syntax highlighting etc. and can use the exising Gauge-Intellij features for Refactoring, Test execution etc.

I think (2) is simpler, but (1) would be the crucial bit to address. We have had a few people express interests in contributing to a Javascript plugin, but there isn't much progress AFAIK.

Expecting community to contribute.
https://github.com/vishnukarthikl/gauge-js

@renjithgr is working on a javascript plugin for Gauge.
More details at https://github.com/renjithgr/gauge-js

Javascript plugin v1.0.0 has been released.
https://github.com/getgauge-contrib/gauge-js/releases

This issue was moved to getgauge/Intellij-Plugin#119


Link component should be using "type=button" when render as button

Link component should be using "type=button" when render as button

@jsardid Could you please share etc for this bug.


ToggleSwitch: no need for padding as it requires overrides

ToggleSwitch has top and bottom padding of 5.5px and users have to override it if they want to combine ToggleSwitch with other components.

That's when the user is expected to bring their own spacing.


lunar-client: adapt and update to 3.0.5

Description of changes

Bumped the version to 2.16.1.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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

[x] Fits CONTRIBUTING.md.

this update changed icon name from lunarclient.png to a very generic launcher.png, not sure if this will conflict with anything but I left it as it is

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2459

Lunar Client 3.0.5 got released and basically changed many things. I adapted and updated the derivation, also added myself as a maintainer. Not sure if this can be in a single commit like this.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2582


Comprehensive style unification sweep

Do this just before the submission. Includes revisiting the state borders, colors, zoom styling, etc.

Lcarr: personally think the background colors, lines need some work. White background + dark black outlines for state bounds look somewhat outdated
Make sure the active category button is visibly selected (e.g., darker or more colorful) relative to the others

a quick note (maybe this goes to style sweep?) but the title doesn't change when the category changes on hover. I assume we don't need to worry about this because of the category selector change, but something to keep in mind

We're deleting the title, right? I was partway through creating an issue to do that.

yes, that is my understanding

Note counties in AK have things like "Census" in the name. I assume we'll want to modify that.

[ ] The zoom in on PR clips parts of the VI. We'll need to address it, but I don't think we should tinker until the new category switchers are in place.
[ ] Our user experience in the NE needs some work, but I am not sure I would call it a priority this week. It is really hard to see what county you are getting values from when zoomed in (for example) to New Jersey and looking at total or thermo. I don't know if there are simpler solutions, but my suggestion later on would be to use a use path for the county to create a copy of the county outline (no fill) that sits on top of everything and has a thin white-ish stroke.
[ ] map outlines and fills
[ ] county boundaries for non-active state look exaggerated when scaling
[ ] main blue color for total is too purple and we want to get this color right, since it is the one that everyone will see
[ ] layout needs some work and perhaps some separation between the different concepts. Current view has things kind of floating out there (pie, pie map, placeholder rank-'em states). Hesitant to put too much energy right now since we are still adding and refining content
[ ] we may want to revisit the zoom-to rules when the category selectors are implemented, since on desktop, these will take up the left side of the zoom box.
[ ] rounding/styling water use values shown in the category legend (e.g., 2.00000021)
[ ] entering the viz w/ a state selected doesn't give you the same style properties as zooming to the state from a national starting point not a priority for this week

Note counties in AK have things like "Census" in the name. I assume we'll want to modify that.
What would you use instead of Census Area? It looks like a legit description of a county equivalent to me.

Not sure what the reasoning is for the category order currently, but I'd suggest re-ordering them so thermoelectric and irrigation are next to each other (to really hammer home the geo-difference)

added Laura's suggestion to the checklist

@jread-usgs Alison and I went through and created issues for the what was listed in your checklist that did not have issues already (see the checklist for links to the new issues). Given where the viz is currently at, when do you think you can finish your style unification sweep and add the appropriate new github issues (not a checklist) that result from it? We are looking at a new deadline of finishing this up by COB April 27 (next Friday). Once that's done, we will close this issue.

I can do that this week, but I would like to still be able to lump a set of small tasks into an issue and use a checklist for it if that is OK. Not that I am saying I only want to create one issue.

Works for me. As long as the list stays within scope for a single PR, I'm content to keep it in one issue.

Suggestions:

[ ] use the same font as "Drag a state over its matching bar" for the labels in the pie chart
[ ] make the semi-transparent legend background box a little taller


Integration tests use AddDbContext method throw exception

IntegrateTestWeb.zip
Run XWebTest.MainTest.Test1 is fine .
After modify XWebTest.CustomWebApplicationFactory use
services.AddDbContext<ApplicationDbContext>( options =>
                {
                    options.UseSqlite(conn);
                    options.UseInternalServiceProvider(serviceProvider);
                });

TestExplorer throw error:
Message: System.InvalidOperationException : No database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
So ,I use these now instead:
services.AddTransient<ApplicationDbContext>(provider =>
                {
                    var options = new DbContextOptionsBuilder<ApplicationDbContext>()
                    .UseSqlite(conn)
                    .Options;
                    var db = new ApplicationDbContext(options);
                    return db;
                });

Note for triage: minimal repro is below. This happens when the database provider being used hasn't been added to the internal service provider. It's a negative case, but the exception message could be better.
public class BloggingContext : DbContext
{
    private readonly IServiceProvider _serviceProvider
        = new ServiceCollection()
            .AddEntityFrameworkInMemoryDatabase()
            .BuildServiceProvider();

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        optionsBuilder
            .UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=Test;ConnectRetryCount=0")
            .UseInternalServiceProvider(_serviceProvider);
    }
}

public class Program
{
    public static void Main()
    {
        using (var context = new BloggingContext())
        {
            var model = context.Model;
        }
    }
}

Triage: closing as wont-fix. While we could spend time trying to make a better message in this case, it's probably not worth it giving that some pretty strange code is needed to get here. If we see a lot of people doing the same thing we can always reconsider.


changed highlighter value from "none" to "rouge"

Maybe this will fix the error below:
The page build completed successfully, but returned the following warning for the master branch:
You are attempting to use the 'none' highlighter, which is currently unsupported on GitHub Pages. Your site will use 'rouge' for highlighting instead. To suppress this warning, change the 'highlighter' value to 'rouge' in your '_config.yml' and ensure the 'pygments' key is unset. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#fixing-highlighting-errors.

I merged this from my phone so didn’t get to test it. Let me know if it works!


docs(config) add lua_package_path default

Summary
lua_package_path has a default in kong_defaults.lua but not reflective in kong.conf.default
Full changelog

docs(config) add lua_package_path default

That was actually done on purpose for various historical reasons, since this value is primarily to make Kong developers' life easier. But I guess it's fine to add it for now, at least it will be informative. Eventually this default value should disappear and developers should maintain their own environments, we'll revisit then.

Manually merged with minor edits


Test Results

Hi, I used the parametric model you provided: bev-stitch-nusc. When running test.py, the output is:
temp_string = "Iteration : " + str(iteration) + " : Scene " + str(my_scene_token)+ " - j1: " + str(np.mean(temp_res,axis=0))
Here j1 represents the accuracy of 4 kinds of static. I am confused which result of j1 corresponds to which result in the paper?

That line is just logging the results for the current scene in the loop. So it does not correspond to any results. The results are printed after the loop is done. So in L789 in nuscenes_test.py. Since the static classes are not one-hot (a pixel can be a crosswalk and a drivable area) we report them separately. For the objects, it is one-hot so we also report confusion matrix.

Thank you so much for clearing up my confusion！

Hello, in the test, I have the following three questions:
1. I found that the following two lines of code assign values to bev_total_relative_endpoints. What is the difference between them?
bev_total_relative_endpoints = [combined_end]
bev_total_relative_endpoints = [tf.concat([combined_end, bigger_resized_combined_projected_estimates], axis=-1)]
2. I don't quite understand the difference between total_input and bev_total_relative_endpoints in mem_net.my_bev_object_decoder. Moreover, I don't quite understand what role endpoints play in all network structures. I checked a lot of information on this question and found no relevant answers.
3. When doing the ablation experiment, I used the 39999 parameter provided by you. I tried to assign all the output data of the image level batch to 0, assuming that the image was removed, but the test results did not change significantly. May I ask whether the output of the image can be regarded as invalid by the way I assign it to 0?

The version we used in the paper is bev_total_relative_endpoints = [combined_end]. Which is the version used in nuscenes_test.py and is compatible with the provided checkpoint. The other one  bev_total_relative_endpoints = [tf.concat([combined_end, bigger_resized_combined_projected_estimates], axis=-1)]  was an experimental version. You can train with it and change the test.py accordingly or use the version in nuscenes_test.py to reproduce the results.
Endpoints refer to the intermediate representations of the encoder (backbone) that are used in decoder to provide low level but high resolution information to the decoder. I recommend original U-Net paper.
If you remove the image, what is the method going to use as input? Setting batch size to 0 might have been interpreted by tensorflow as any batch size.


Add modal to create new project

Background
Link to issue
https://biomage.atlassian.net/browse/BIOMAGE-571
Link to staging deployment URL
https://ui-agi-ui-133.scp-staging.biomage.net/
Links to any Pull Requests related to this
N.A.
Anything else the reviewers should know about the changes here

Changed the link for Data Upload to /data-management
Added project name validation. If project name is invalid, a popup comes up saying name is invalid
Disable navigation links if there no experiment chosen

Changes
Code changes

Moved pages/experiments/[experimentId]/data-upload folder to /pages/data-management
Added new component to get modal
Fixed Header component so it can work without

Definition of DONE
Your changes will be ready for merging after each of the steps below have been completed:
Testing

[X] Unit tests written
[X] Tested locally with Inframock
[X] Deployed to staging

To set up easy local testing with inframock, follow the instructions here: https://github.com/biomage-ltd/inframock
To deploy to the staging environment, follow the instructions here: https://github.com/biomage-ltd/biomage-utils
Documentation updates
Is all relevant documentation updated to reflect the proposed changes in this PR?

[ ] Relevant Github READMEs updated
[ ] Relevant wiki pages created/updated

Approvers

[ ] Approved by a member of the core engineering team
[ ] (UX changes) Approved by vickymorrison (this is her username, tag her if you need approval)

Just before merging:

[ ] After the PR is approved, the unstage script in here: https://github.com/biomage-ltd/biomage-utils is executed. This script cleans up your deployment to staging

Optional

[ ] Photo of a cute animal attached to this PR

A few comments:

Cellscope should not have a capital S
The user should not be able to create a project with no name (i.e. if the user doesn't type anything but clicks 'Create Project' then a message should appear to state that this is a required field and they cannot continue)
When the user is on the data management home screen the navigation on the left should show this (it doesn't currently do this - see screenshot).

Thanks for the approve @vickymorrison ! Waiting for someone to review engineering-wise


fix: rename homebrew-taps repo to homebrew-tap

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.9%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4484

Relevant Lines:
5612

💛  - Coveralls

@GrayFlash let's fix this in readme and installation guide as well.


Admin teams should get all units regardless of form selection

Fixes #4771

What if you only to have admin rights only for issues but still not be able to see code?

@lafriks Wouldn't that be write permission with only the issue unit ?

@adelowo not really, IMHO with write permission you can not create new labels/milestones

Just tested and it turns out with write permissions, you can create both labels and milestones

@lafriks I think this is a bug since if  for example you untick all the units ( with either read/write), and then go on to choose admin permission for the team, the users in the team  would be unable to do anything even though they have admin permissions ( technically, admin permissions over nothing )...
If you don't touch any of the units, just select admin permissions, then everything is fine.. There is a reproduction how to in https://github.com/go-gitea/gitea/issues/4771

Was not that fixed already with #4719 ?

No, this is a different bug report/fix... Should units given to an admin be read from the form being posted as in
https://github.com/go-gitea/gitea/blob/3c39b6351c1ad44d73bc4eb46e1199f3f3901a61/routers/org/teams.go#L192
If I had seen this bug earlier, I wouldn't not have sent #4719 but this instead since we can let other permission types read units from the form and just give the admin team all available units...
The major question is should admins be able to select units or an admin team should get everything ?. If yes, then the UI should take that into consideration and be fixed ( see above screenshots ).
Ideally, I'd want to revert #4719 since https://github.com/go-gitea/gitea/issues/4713 is a deeper problem than what it initially looked like.... With it, admins can potentially not have any permissions at all
Were you able to follow the reproduction steps ?

@lafriks #4719 didn't fix the bug I think.

Removing backport/v1.5 as a label because 1.5.3 just went out, and we should focus on getting 1.6 out as stable.

I think this is unnecessary since admin team should have all the units. So save it on database is not a good idea. I think #5314 has fixed almost all the unit permission problem.


Issue injesting data from Cisco FTD

Describe the bug
When sending syslog messages from Cisco FTD they are now collected correctly in Sentinel. This causes the data not to be translated correctly, so events (incidents + playbooks) don't work correctly
Additional context
https://techcommunity.microsoft.com/t5/Azure-Sentinel/Azure-Sentinel-The-Syslog-and-CEF-source-configuration-grand/ba-p/803891
It appears that CEF will structure the data correctly, but wanted to confirm if there is a resolution to importing the syslog messages so they can be used in Sentinel?
Thank you

@DSharpPro - Apologies for missing the Issue back in November.  If you have not resolved this, I think it best to open a support ticket to see what may be occurring - https://docs.microsoft.com/en-us/azure/azure-supportability/how-to-create-azure-support-request


Individual AEDs should be shown earlier for mobile phones

It's a bit of a problem that individual AEDs are not showing on a higher zoom level, because we might end up with duplicate entries.

Hey WZ,
The clustering may not be optimal in general. Feel free to suggest further improvements.
Is there a zoom level you / the beta tester personally prefer?

15 will be great

I suppose this has been resolved


Remove database.yml from tracked files on git

The database.yml file is not on the .gitignore file and must be added to it

I'd like to do this one.

I love seeing fellow Brazilians contributing to our projects! Valeu cara!

@viniciusilveira Thanks for adding an issue! I see why you added this–letting the developer customize their own db names/users/port makes a lot of sense.
I'm concerned about removing database.yml from tracked files for several reasons:

It may confuse newer developers (my biggest concern). It looks like a lot of the people contributing this month are new to rails/app development, so the easier the setup process is, the better. .env.sample already creates a lot of confusion, and this creates a similar dependency.
It'll make builds/deploys more complicated. We'll need to get Travis to copy over the sample config file before running the specs/CI checks; same thing for Heroku before deployment.
In short, adding an untracked dependency means we've got another moving piece (one that everyone needs to deal with).

Would changing the fixed fields to environment variables with reasonable defaults fix the pain points you found? That'll make custom configuration opt-in instead of required.
Example:
# config/database.yml

# ...
development:
  <<: *default
  database: <%= ENV['DB_NAME_DEV'] || 'playtime_development' %>
  username: <%= ENV['PG_USERNAME_DEV'] || 'playtime' %> # let's encourage a non-"root" user for development
  password: <%= ENV['PG_PASSWORD_DEV'] || '' %>
# ...

Anyone have other thoughts/suggestions?

I want to echo @leesharma's comments about this project using Travis-CI for continuous integration which requires a database.yml file. On another project we attempted something similar but after a few frustrated attempts we added the file back in.
We attempted the obvious way around this -- by adding a database.yml.travis and then setting a travis before script to copy and rename it in the test environment to database.yml but it never worked right. I imagine if there was someone smarter than me doing it there wouldn't be an issue... :)
Combining this (working continuous integration) with the extra barrier for new developers I'm not sure if it is worth it.

I'm closing this issue for now; if we see a lot of people with db config issues, we can think about opening this back up (for opt-in configuration or README additions) then.


[Feature Request] Improved Copy-Paste options

A fairly common setup (and one I personally use daily) is to have copy-on-select and paste with a right click.
This might not be the easiest thing to do, given the context menu is already on right-click, but it's the first thing I missed when I started trying out extraterm.

If this feature is considered, please also keep the option to use middle mouse paste. It's a bit opposite for me, but middle mouse paste is what initially drew me to Extraterm compared to other new terminals.

If I support "paste on right" it will be configurable and not the default. I'm kind of wondering what to do about the context menu if right mouse is set to paste.

I generally have it set to ctrl-right-click for the menu.
I also usually have copy-on-select enabled so that ctrl+c can be freed up for it's more traditional interrupt role.

It would be great to be able to configure the paste with a right click,
thanks
paolo

Released in version 0.55.0.


Consider an alternative implementation that helps the compiler emitting SIMD instructions

Hi, after reading you post on pyhtonspeed I wondered if there was a way to modify the scalar code and getting the compiler to create a binary that uses SIMD instructions.
I created a fork https://github.com/giovannicuccu/mandelbrot-simd and developed a new mandelbrot implementation that achieves the goal. My solution is not as fast as the simd implementation, but it's faster than the scalar one and relies on stable rust features. I tested only with compiler flags -Ctarget-cpu=native but I think it's worth exploring it.
are you interested in a PR?

Mostly this repo is here for educational purposes, and ... that sounds pretty educational. Looks like you did it as a third variant in addition to the existing two? Maybe rename it "autovectorization" which is the jargon for compiler-emitted SIMD.
So yes, happy for PR.

Done, thank you!


RuntimeError: CUDA out of memory

Traceback (most recent call last):
File "train.py", line 75, in
content_loss = content_param * compute_content_loss(a_C, a_G)
File "/content/randomCNN-voice-transfer/utils.py", line 64, in compute_content_loss
J_content = 1.0 / (4 * m * n_C * n_H * n_W) * torch.sum((a_C_unrolled - a_G_unrolled) ** 2)
RuntimeError: CUDA out of memory. Tried to allocate 2.99 GiB (GPU 0; 14.73 GiB total capacity; 10.14 GiB already allocated; 1.89 GiB free; 1.97 GiB cached)

Sorry for the late response.
It means your CUDA out of memory. You may try with shorter audio inputs, or change the N_FFT to get shorter spectrogram.


[BUG]: Embeddings not removed.

What would you like to see?
Even though I may have added and saved one embedding in a workspace and later realised it was not giving me correct results, I removed it. But in the workspace it was still given as citation - and yes it was giving answers from that only.
The embeddings are not getting removed when I choose to remove from a workspace, my only solution was to remove the work space completely and make a new one.

I have the same problem as sumitsodhi88, the embeddings are not being removed cleanly for me either. Is there already a solution?

This is for lanceDB correct? The current workaround, if suitable, if just deleting the workspace and re-embedding the cached files. Obviously not ideal but we are working on the solution.


Update the Request Handler Signature

Issue #, if available:
Description of changes:
Updated the value in the map that is shown in the example code. Instead of String it is now and Object. Lambda can't deserialize json to a string.
With the current example you get the following error:
java.lang.RuntimeException: An error occurred during JSON parsing
Caused by: java.io.UncheckedIOException: com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
 at [Source: (ByteArrayInputStream); line: 1, column: 108] (through reference chain: java.util.LinkedHashMap["headers"])
	at com.amazonaws.services.lambda.runtime.serialization.factories.JacksonFactory$InternalSerializer.fromJson(JacksonFactory.java:184)
Caused by: com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
 at [Source: (ByteArrayInputStream); line: 1, column: 108] (through reference chain: java.util.LinkedHashMap["headers"])
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1442)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1216)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1126)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:63)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:10)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:527)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:364)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1719)
	at com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1228)
	at com.amazonaws.services.lambda.runtime.serialization.factories.JacksonFactory$InternalSerializer.fromJson(JacksonFactory.java:182```

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

String, String works for "flat" input structures where all of the JSON values are strings or numbers. If you're input has nested objects, you should probably model those objects as Java types or customize the deserializer. String,Object will not throw an error, but what can you then do with the generic objects in the map? The sample app that this code is from shows various approaches.

I was building a lambda function that works with api gateway (http) integration. I suspect this is a common use case and string, object works. You can then use gson to navigate the json provided by the api gateway.
With regards to the sample code in github none of them handle the nested json usecase.
Other folks have similarly run into this issue as well: https://stackoverflow.com/questions/37155595/aws-can-not-deserialize-instance-of-java-lang-string-out-of-start-object

One additional stackoverflow thread: https://stackoverflow.com/questions/35545642/error-executing-hello-world-for-aws-lambda-in-java

I understand what you mean. It's easier that way, but I'm concerned that it's poor style to treat an object that way in a strongly typed language. The aws-lambda-java-events library defines types for events from AWS services. See this sample for handlers that process API Gateway  and other service events:
https://github.com/awsdocs/aws-lambda-developer-guide/tree/main/sample-apps/java-events

Understood. I appreciate the examples in github, thanks for sharing them.
The usecase I'm trying to solve for is for the (newish) HTTP API from Api Gateway. I don't see a way to coerce the input object into something else. Its not a proxy or non proxy as in the REST API case. From what I can tell I get json that has parsed headers etc.
It's this usecase that is difficult to solve for given the current docs.

HTTP API is supported with  APIGatewayV2ProxyRequestEvent I think (Handler.java)
Does your event look like this? java-events/events/apigateway-v2.json
btw I no longer maintain this repo so will defer to my colleagues for a decision. I think it might help to have more context in this topic around input types.

I have created an internal ticket to track this issue. I would like to close the pull request, as I need to push some new content to GitHub.

HTTP API is supported with  APIGatewayV2ProxyRequestEvent I think (Handler.java)

This example Handler.java is a game changer. Not only was the APIGatewayProxyRequestEvent useful but theAPIGatewayProxyResponseEvent example was too. Based on the docs I was attempting to create my response with gson and getting a malformed response in the api gateway. I would look to surface this example in the docs to make it obvious to other lambda java developers.
Thanks for the responses.


20 March 2023

Task Lists

[ ] [README.md] Add a README.md for Problem Of The Day
[ ] [C++] Add C++ Solution for Problem Of The Day
[ ] [C] Add C Solution for Problem Of The Day
[ ] [C#] Add C# Solution for Problem Of The Day
[ ] [Java] Add Java Solution for Problem Of The Day
[ ] [JavaScript] Add JavaScript Solution for Problem Of The Day
[ ] [Python3] Add Python3 Solution for Problem Of The Day
[ ] [Python] Add Python Solution for Problem Of The Day
[ ] [Ruby] Add Ruby Solution for Problem Of The Day
[ ] [Rust] Add Rust Solution for Problem Of The Day
[ ] [Swift] Add Swift Solution for Problem Of The Day
[ ] [Go] Add Go Solution for Problem Of The Day
[ ] [Scala] Add Scala Solution for Problem Of The Day
[ ] #400
[ ] [PHP] Add PHP Solution for Problem Of The Day
[ ] [TrueScript] Add TrueScript Solution for Problem Of The Day

FAQ
How do I get assigned to these issues?
You must leave a comment with the issues you want assigned.
Is there any limit to the number of issues that can be assigned?
Yes, one person can only be assigned two issues per day from the four (README, C++, Java, Python3 etc).
Can I be assigned to multiple issues on different days by commenting once?
Yes, you can be assigned to multiple issues on different days by commenting once. However, you must be assigned to the contributor role in order to do so. If you already have access to the contributor role, simply list the issue in a comment that you want to be assigned to.
Example:
01 January 2023 - Java & Python
04 January 2023 - README.md & Java
12 January 2023 - C++
19 January 2023 - README.md

How do I get access to the Contributor role?
You must contribute 2-3 times before being granted access to the contributor role.

20 march 2023 - kotlin

@ImSaMPro can you tell me from where I need to pick the problem of the day

@chiragcode11 also accept the contributor role sent in your email! So that you could be assigned or comment here: https://github.com/AIOCodeBase/LCPOTD/issues/400

@ImSaMPro  I have accepted  the invitation

am I assigned ?

Do I need to write the code here or should I create a PR

@chiragcode11 You may write your code on your computer or on the LeetCode website, and once it has been tested on the website, you can file a PR if the application functions as intended and is error-free.

class Solution {
fun isCompleteTree(root: TreeNode): Boolean {
val Q: Queue = LinkedList()
Q.offer(root)
var flag = false
while (!Q.isEmpty()) {
val temp = Q.poll()
if (temp == null) flag = true else {
if (flag) return false
Q.offer(temp.left)
Q.offer(temp.right)
}
}
return true
}
}

here is the solution code which is tested

Do I need to write the code here or should I create a PR

You have to make a PR!
https://github.com/AIOCodeBase/LCPOTD/blob/main/CONTRIBUTING.md


Bump langchain-community>=0.2.9 in test dependencies

There's a security vulnerability in the langchain-community < 0.2.9, which is required by langchain, which we're testing against.
Attempting to upgrade langchain to allow patching this runs into a dependency resolution issue with farm-haystack. Langchain requires pydantic > 2 and farm-haystack < 2 only support pydantic < 1.
We should be able to resolve this once farm-haystack >= is released.
Ref:

https://github.com/deepset-ai/haystack/issues/5304#issuecomment-2326179623
https://github.com/Chainlit/chainlit/security/dependabot/55

This is solved in main.


Feature Request: Filtering, but with the event time.

Would like to apply filter to calendar events between set times: ex. hide events from a calendar if between 8:30 and 16:00.

Perhaps this can be done in the 1.9 release using  data-start-hour="${event.start.toFormat('H')} and data-end-hour="${event.end.toFormat('H')}"?


provide a CI example

with simply pipx install git+https://github.com/gepetto/gepetuto and eg. gepetuto -vva all

started in #25


How use this?

Need obfusca code .yaml a phishlet for evilginx ?
how to use this tool?
check this. for example
https://github.com/thecityofhereafter/google.yaml/blob/master/google.yaml

This is a library to provide one-way obfuscation of YAML.  Once obfuscated, the original text cannot be retrieved anymore. It's mostly meant to be used for logging, or for other purposes where some of the contents of YAML files should no longer be visible.
As I don't see anything in your example that looks like it would benefit from this library (like passwords or personal data), I'm not sure the type of obfuscation it provides is for you. I have a feeling you want something that's not one-way instead.

https://github.com/thecityofhereafter/google.yaml/blob/master/google.yaml
Estos .yaml son configuraciones avanzadas para un programa de proxy, necesito ofuscar para que no puedan robar mi trabajo. ¿sirve tu herramienta para esto?


Error when switching context

Hi,
I just upgraded to 0.9.3 and kubectx is no longer working. When I run kubectx -c I get the following:
/usr/local/bin/kubectx: line 194: 77535 Killed: 9               kubectl config current-context
I downloaded 0.9.2 from the assets page and it works as expected.
I'm on MacOS 11.2.2 and (have always) installed kubectx/kubns from homebrew.

Can you run with environment variable DEBUG=1 and send output?

Also you're using the bash script version (not the binary version) from the Assets page right?

Here's the output from kubectx -c with DEBUG on:
+ IFS='
	'
+ SELF_CMD=/usr/local/bin/kubectx
+ KUBECTX=/Users/james/.kube/kubectx
+ main -c
+ [[ -z '' ]]
+ hash kubectl
+ KUBECTL=kubectl
+ [[ 1 -eq 0 ]]
+ [[ -c == \-\d ]]
+ [[ 1 -gt 1 ]]
+ [[ 1 -eq 1 ]]
+ [[ -c == \- ]]
+ [[ -c == \-\c ]]
+ kubectl config current-context
/usr/local/bin/kubectx: line 194: 91277 Killed: 9               kubectl config current-context```

and `kubens`:

```+ set -eou pipefail
+ IFS='
	'
+ SELF_CMD=/usr/local/bin/kubens
+ KUBENS_DIR=/Users/james/.kube/kubens
+ main
+ [[ -z '' ]]
+ hash kubectl
+ KUBECTL=kubectl
+ [[ 0 -eq 0 ]]
+ [[ -t 1 ]]
+ [[ -z '' ]]
++ type fzf
++ echo 0
+ [[ 0 -eq 0 ]]
+ choose_namespace_interactive
++ list_namespaces
++ local yellow darkbg normal
+++ tput setaf 3
++ yellow=''
+++ tput setab 0
++ darkbg=''
+++ tput sgr0
++ normal=''
++ local cur_ctx_fg cur_ctx_bg
++ cur_ctx_fg=''
++ cur_ctx_bg=''
++ local cur ns_list
+++ current_namespace
+++ local cur_ctx
++++ current_context
++++ kubectl config current-context
+++ cur_ctx=
+++ exit_err 'error getting current context'
+++ echo 'error getting current context'
error getting current context
+++ exit 1
++ cur=
++ exit_err 'error getting current namespace'
++ echo 'error getting current namespace'
error getting current namespace
++ exit 1
+ [[ -z '' ]]
+ echo 'error: could not list namespaces (is the cluster accessible?)'
error: could not list namespaces (is the cluster accessible?)
+ exit 1```

The version of 0.9.2 I downloaded was the binary version: kubectx: Mach-O 64-bit executable x86_64
It looks like the version from homebrew is a shellscript though.

I just rebooted my machine for an unrelated issue and now it's working. I use fish shell and I think that got updated recently too. Might have been related.


feat(web-modeler): support existing secrets for database and SMTP password

Which problem does the PR fix?
Closes #1443
Closes https://github.com/camunda/web-modeler/issues/8851
What's in this PR?
The PR adds the support for referencing existing Kubernetes secrets containing the database and SMTP passwords used by Web Modeler (so that these values don't have to be provided in plain text).
Checklist
Please make sure to follow our Contributing Guide.

Before opening the PR:

[x] In the repo's root dir, run make go.update-golden-only.
[x] There is no other open pull request for the same update/change.
[x] Tests for charts are added (if needed).
[x] In-repo documentation are updated (if needed).

After opening the PR:

[x] Did you sign our CLA (Contributor License Agreement)? It will show once you open the PR.
[x] Did all checks/tests pass in the PR?

I've added @jessesimpson36 to review this PR.

@aabouzaid Not sure if it was intended, but you removed @jessesimpson36 again :)

@aabouzaid Not sure if it was intended, but you removed @jessesimpson36 again :)

Hahaha, yeah, a glitch :grin:
I wanted to remove myself.

I'm going to add some commits as I review/test. If you disagree with any of the commits I write @jfriedenstab , we can discuss. should only be minor touchups. starting with just rebasing on latest main

This is getting pretty difficult to test. In my test environment, I'm not able to get webModeler to connect to it's postgresql instance when I use an existingSecret.  I'll return to this PR later to continue debugging:
Initial observations:

it's not very clear to users that they should configure postgresql.auth.secretKeys.userPasswordKey to configure the key name for their database secret instead of webModeler.restapi.externalDatabase.existingSecretKey
existingSecret does not support both direct password + name attribute like other components support.

I'm not asking for those points to be addressed yet.

Hi @jessesimpson36,
Thanks for sharing your observations!
Regarding:

it's not very clear to users that they should configure postgresql.auth.secretKeys.userPasswordKey to configure the key name for their database secret instead of webModeler.restapi.externalDatabase.existingSecretKey

Actually, both values would be used in two different use cases:

If you enable the PostgreSQL dependency chart (with postgresql.enabled=true), you can configure an existing secret for that database with postgresql.auth.existingSecret and (optionally) postgresql.auth.secretKeys.userPasswordKey.
If you disable the PostgreSQL dependency and use an external database instead, you can configure an existing secret with webModeler.restapi.externalDatabase.existingSecret and webModeler.restapi.externalDatabase.existingSecretPasswordKey.

existingSecret does not support both direct password + name attribute like other components support.

Hm, I don't understand exactly what you mean :). I tried to use the same approach as for Identity (see identityPostgresql.auth.existingSecret and identity.externalDatabase.existingSecret + identity.externalDatabase.existingSecretPasswordKey).

Hm, I don't understand exactly what you mean :). I tried to use the same approach as for Identity (see identityPostgresql.auth.existingSecret and identity.externalDatabase.existingSecret + identity.externalDatabase.existingSecretPasswordKey).

Some of our existingSecrets options can either be supplied by
existingSecret:  password1234 (the actual password)

or
existingSecret:
  name: K8SResourceContainingSecretWithPassword

I haven't thought through whether this is a problem yet, just know that some places in our helm chart, we support that, and in other places, we don't.

Actually, both values would be used in two different use cases:

this might explain why I struggled to get something working yesterday. I'll try again later today. I'm splitting my time between this and https://github.com/camunda/camunda-platform-helm/issues/1868 , since both deal with existingSecret logic.

@jfriedenstab it turns out my difficulties testing yesterday involved a newline character getting added to my environment variable and nothing to do with this PR :laughing:  I tested by using an external secret for the restapi SMTP settings as well as using a existingSecret for my database, and it seems to have worked fine.
I did not yet manually test the externalDatabase flow

I have now tested the externalDatabase flow. So the PR seems to be working alright from my perspective.  Now all that's left is to think through this
existingSecret: value

vs
existingSecret:
  name: value

syntax inconsistency.  I'm going to defer to PM.

Thank you, @jessesimpson36! 👍🏻

When I asked   @theburi by providing these options:

change the implementation of webModeler.restapi.existingSecret to support the name and direct-password flows? which makes it inconsistent with dependency helm charts
merge the PR as it is, which makes it inconsistent with secrets such as  global.identity.auth.component.existingSecret

Andrey responded with:

I think our approach has to be consistent across all of our charts. We are going to "translate" our values to postgresql Chart values and we don't have to use the same structure.  So 1.

So we should strive to support the
existingSecret: password-directly-in-values

and
existingSecret:
  name: nameOfK8SSecret

I'm going to check how feasible that is given the current implementation.

I'll be sure to push my commits by the end of my day, so you can see what I got.  and if you have a conflicting implementation you're working through, we can just revert my commits.

I added 2 commits today. I plan to continue tomorrow, but feel free to take a look. theres probably some issues with it.

Hi @jessesimpson36,
I was on FTO on Friday, but I will have a closer look at your changes later today.

@jfriedenstab I manually tested both existingSecret flows. I think we're good on the current implementation.


mongoose

throw new MongooseError('The `uri` parameter to `openUri()` must be a ' +

You must enter a valid MongoDB link 👀 Go to my support server and create a ticket
https://discord.gg/kingmandev
for more help


Streaming Analytics Manager Application status issue

When an application deployment fails due to some errors (in this case, atlas hook missing jars for example), the application shows in running state in SAM console. I can also see the storm topology running from the Storm UI.
When trying to kill that app from the Streaming Analytics Manager UI, it fails to kill it with the following message:
An exception with message [Invalid action for current state: TOPOLOGY_STATE_DEPLOYMENT_FAILED] was thrown while processing request.
The only way to get out of this state is to kill the Storm topology on the Storm UI.
There are two issues with this:

What is the actual state of the app? For Storm, it is running. For SAM, it is not and its status is TOPOLOGY_STATE_DEPLOYMENT_FAILED. This needs to be clarified.
The ability to kill the app from the SAM UI without having to go to the Storm UI.

@zoharsan , can you upload the stack trace and relevant parts of the streamline log if you have it?

Find attached the log. Look for string TOPOLOGY_STATE_DEPLOYMENT_FAILED
streamline-2017-07-11-0.log.gz


Bug: cannot include windows.h anymore

I cannot compile my code if both Q and windows.h are included. Most likely there is a visual C++ reserved word used in exception.hpp
input:
#include <windows.h>
#include <q/promise.hpp>

int main(int argc, char** argv)
{
}

output:
1>------ Build started: Project: tryout, Configuration: Debug x64 ------
1>  main.cpp
1>3rdparty\q\include\q\exception\exception.hpp(89): error C2332: 'class': missing tag name
1>3rdparty\q\include\q\exception\exception.hpp(89): error C3306: 'q::detail::<unnamed-tag>': unnamed class template is not allowed
1>3rdparty\q\include\q\exception\exception.hpp(89): fatal error C1903: unable to recover from previous error(s); stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Indeed, lovely generic lowercase-only name they managed to give a macro!
excpt.h:
#define exception_info (struct _EXCEPTION_POINTERS*)_exception_info

While fixing this, I stumbled upon more macro issues with MSVC; You'll need to compile with #define NOMINMAX before including windows.h. Otherwise it will pollute all code with lowercase macros min and max which conflicts with STL code.


[WIP][DRAFT] Add ingress v2 controller and test codes

This patch adds ingress v2 controller.
Istio 1.8 (current release) still uses service-apis v0.1.0-rc2 so this code also uses it.
/hold

The change is too big so I will send separate patches.

The change is too big so I will send separate patches.

Closing as we migrate test code like https://github.com/knative-sandbox/net-ingressv2/pull/8 instead of adding new controller.


AWSSDK.Chime gives ForbiddenException when resources not found

Please let me know if there is a better place to report Chime issues.
Expected Behavior
If I have authenticated but the resource requested does not exist, I would expect a NotFoundException or something similar.
Current Behavior
Calling GetMeetingAsync or DeleteAttendeeAsync will occasionally throw a ForbiddenException.  This occurs when I am attempting to get a meeting that has been deleted or remove an attendee that is already removed.
Possible Solution
Only throw ForbiddenExceptions when there is an authentication issue
Steps to Reproduce (for bugs)
Create a Meeting, join an attendee, remove the attendee, attempt to remove the attendee a second time.
Context
I should check an attendee's state before attempting to remove, but I would like to receive the correct error messages so that I can debug issues correctly.
Your Environment
AWSSDK.Chime <IP_ADDRESS>
AWSSDK.Core  <IP_ADDRESS>

Hey @Aarondorn2,
Thanks for reporting this, however we do not control the exceptions thrown by the service, that is decided by the service team itself. I will pass along your note/request to the team, and will update here if I get an update from tham.
😸 😷

Hi @Aarondorn2,
Good afternoon.
I was going through backlog and came across this issue. Kindly advise if this is still an issue or if we could close it. As @NGL321 mentioned, in this case, the exceptions are controlled by service.
Thanks,
Ashish

Hey! Thanks for the follow-up.  We've currently been burying the exception while watching this issue.  I can do some testing on Monday to see if this is still an issue.

Hey! Thanks for the follow-up. We've currently been burying the exception while watching this issue. I can do some testing on Monday to see if this is still an issue.

@Aarondorn2 Thanks a lot. Let me know the result of your testing. If this is still an issue, please share the detailed steps along with sample code, so that I could open issue with service team.

It looks like the behavior has changed since opening this ticket.  The DeleteAttendee endpoint now returns NoContent regardless of whether or not it succeeded.  I ran the following in LINQPad:
// set up client
var chimeClient = new AmazonChimeClient(accessKeyId, secretAccessKey, RegionEndpoint.USEast1);

// set up meeting
var meeting = await chimeClient.CreateMeetingAsync(new CreateMeetingRequest {
	ClientRequestToken = Guid.NewGuid().ToString()
});

var meetingId = meeting.Meeting.MeetingId;

// join an attendee
var attendee = await chimeClient.CreateAttendeeAsync(new CreateAttendeeRequest {
	MeetingId = meetingId,
	ExternalUserId = Guid.NewGuid().ToString()
});

var attendeeId = attendee.Attendee.AttendeeId;

// remove an attendee
await chimeClient.DeleteAttendeeAsync(new DeleteAttendeeRequest {
	MeetingId = meetingId,
	AttendeeId = attendeeId
}).Dump();

// attempt to remove the same attendee again
await chimeClient.DeleteAttendeeAsync(new DeleteAttendeeRequest {
	MeetingId = meetingId,
	AttendeeId = attendeeId
}).Dump();

// attempt to remove an attendee that never joined
await chimeClient.DeleteAttendeeAsync(new DeleteAttendeeRequest {
	MeetingId = meetingId,
	AttendeeId = Guid.NewGuid().ToString()
}).Dump();

The last two calls previously would have thrown a ForbiddenException but now return a 204 No Content in all cases.
I am no longer receiving an unexpected exception from this operation - I'll close the issue.  Thank you!


DBZ-6870 Make the connector robust against rebalance events

Make the connector robust against rebalance events:
(1) Ensure that all alive tasks in the connector process all previous NEW_EPOCH messages. We do this by only updating the rebalance generation ID when sending NEW_EPOCH messages and receiving NEW_EPOCH messages. Previously, we updated the rebalance generation ID whenever we received a rebalance event from Kafka. Since we skip NEW_EPOCH / REBALANCE_ANSWER / UDPATE_EPOCH messages with a stale rebalance generation ID, this caused some tasks to skip processing some previous NEW_EPOCH messages. This would cause the same partitions to get redistributed twice, causing partition duplication.
(2) Make sure we add a timeout when retrieving partition offsets when starting a change stream query. If we don't add a timeout, this could cause the task to get stuck for >20 minutes in TakePartitionForStreamingOperation. Since this method is called under a lock, this would cause the entire task processing to get stuck, causing increasing low watermark lag.
(3) Fix the leader rebalancing algorithm by making sure to not re-share partitions already shared to an alive task
(4) Currently we distribute all finished partitions from obsolete tasks to the leader. This can cause the RemoveFinishedPartitionOperation to be inordinately slow on the leader task, especially if the finished partition's child happened to be already removed. Fix this by decreasing the frequency of removing finished partition operation, and also removing finished partiitons if the children were already removed.

Hi @jpechane was wondering if you could review this pull request to improve connector rebalance handling?

@nancyxu123 I left 3 more comments and also the PR has conflicts now

@nancyxu123 I left 3 more comments and also the PR has conflicts now

Thank you Jiri! Resolved conflicts and addressed / responded to the comments.


Fixes #2: Adds encryption types list to -list-types CLI output

This PR adds the missing encryption types output from the -list-types CLI option.  It fixes issue #2 .
New Output
I opted to put the encryption output higher up in the -list-types output (below Criticality) to make it ordered more alphabetically (without touching the other outputs).  This should make it easier for others to find when scanning the list.
$ go build main.go
$ ./main -list-types

  _____ _                          _ _
 |_   _| |__  _ __ ___  __ _  __ _(_) | ___
   | | | '_ \| '__/ _ \/ _` |/ _` | | |/ _ \
   | | | | | | | |  __/ (_| | (_| | | |  __/
   |_| |_| |_|_|  \___|\__,_|\__, |_|_|\___|
                             |___/
Threagile - Agile Threat Modeling

Documentation: https://threagile.io
Docker Images: https://hub.docker.com/r/threagile
Sourcecode: https://github.com/threagile
License: Open-Source (MIT License)
Version: 1.0.0 ()

The following types are available (can be extended for custom rules):

  Quantity: [very-few few many very-many]

  Confidentiality: [public internal restricted confidential strictly-confidential]

  Criticality (for integrity and availability): [archive operational important critical mission-critical]

  Encryption: [none transparent data-with-symmetric-shared-key data-with-asymmetric-shared-key data-with-enduser-individual-key]

  Technical Asset Type: [external-entity process datastore]

  Technical Asset Size: [system service application component]

  Authorization: [none technical-user enduser-identity-propagation]

  Authentication: [none credentials session-id token client-certificate two-factor externalized]

  Usage: [business devops]

  Data Format: [json xml serialization file csv]

  Protocol: [unknown-protocol http https ws wss reverse-proxy-web-protocol reverse-proxy-web-protocol-encrypted mqtt jdbc jdbc-encrypted odbc odbc-encrypted sql-access-protocol sql-access-protocol-encrypted nosql-access-protocol nosql-access-protocol-encrypted binary binary-encrypted text text-encrypted ssh ssh-tunnel smtp smtp-encrypted pop3 pop3-encrypted imap imap-encrypted ftp ftps sftp scp ldap ldaps jms nfs smb smb-encrypted local-file-access nrpe xmpp iiop iiop-encrypted jrmp jrmp-encrypted in-process-library-call container-spawning]

  Technical Asset Technology: [unknown-technology client-system browser desktop mobile-app devops-client web-server web-application application-server database file-server local-file-system erp cms web-service-rest web-service-soap ejb search-index search-engine service-registry reverse-proxy load-balancer build-pipeline sourcecode-repository artifact-registry code-inspection-platform monitoring ldap-server container-platform batch-processing event-listener identity-provider identity-store-ldap identity-store-database tool cli task function gateway iot-device message-queue stream-processing service-mesh data-lake big-data-platform report-engine ai mail-server vault hsm waf ids ips scheduler mainframe block-storage library]

  Technical Asset Machine: [physical virtual container serverless]

  Trust Boundary Type: [network-on-prem network-dedicated-hoster network-virtual-lan network-cloud-provider network-cloud-security-group network-policy-namespace-isolation execution-environment]

  Data Loss Probability: [improbable possible probable]

  Risk Severity: [low medium elevated high critical]

  Risk Exploitation Likelihood: [unlikely likely very-likely frequent]

  Risk Exploitation Impact: [low medium high very-high]

  Risk Function: [business-side architecture development operations]

  Risk Status: [unchecked in-discussion accepted in-progress mitigated false-positive]

  STRIDE: [spoofing tampering repudiation information-disclosure denial-of-service elevation-of-privilege]

Cool, thx for adding the output to the -list-types result! Also ordering it (even better the whole output) alphabetically makes absolute sense.


Control plane only supports hard-coded system namespaces

The fedv2 control plane currently sources FederatedCluster resources and their associated secrets from the federation-system namespace and Cluster resources from the kube-multicluster-public namespace.  It would be preferable to allow the names of these namespaces to vary to allow for test isolation on shared clusters and give operators flexibility in how they deploy federation.
Tasks:

[x] Allow the federation namespace to be configured in testing (#198)
[x] Update FederatedTypeConfig to be namespace-scoped (#209)
[x] Update FederatedNamespacePlacement to be namespace-scoped (#210)
[x] Allow the cluster registry namespace to vary in testing (#211)
[x] Enable the federation control plane to target a single namespace (#212)
[x] Enable kubefed2 configuration of federation and cluster namespaces (#213)
[x] Enable kubefed2 joining of a cluster for only a single namespace (#215)
[x] Support deploying namespaced control plane (#216)
[x] Ensure control plane can run with only authz for the namespace it runs in (#230)
[x] Update docs to reflect option to deploy control plane namespaced (#264)

Initial implementation complete!


Docs structure

This is a relatively large PR that is intended to be approved commit-by-commit instead of as a whole. I chose this structure because these things all belong together and depend on each other, so submitting multiple PRs did not really work.
You can find the current version of the documentation that is based on this PR at https://grossbart.github.io/fp-ts/ – this should make it easier to play around with the suggested documentation structure and provide feedback on what is good and what is not.
The documentation contains some dead ends (e.g. the tutorial sections have a tiny bit of content telling readers that they are under construction). This seems to be acceptable to me at this point because the whole documentation is still relatively fresh and not yet widely known; please object if you have a different opinion!
In general, I'm very open to changing things! I wrote, for example, the "core concepts" section but am not an expert, so I might have misused some technical terms or overly generalized. Also, if you have other ideas about the general structure, please let me know.
The documentation structure takes ideas from:

https://www.divio.com/blog/documentation/
https://redux.js.org/introduction/getting-started
https://guides.rubyonrails.org/
https://reactjs.org/docs/getting-started.html
https://docs.djangoproject.com/en/2.1/

@grossbart This is awesome. I love what you've done here, thanks so much!

Because this PR moves around several files and changes the structure of some content, I will merge this now so that we can use the new documentation structure as a baseline from here on out.
It is clear that there is still a lot of work ahead; I have a long list of things I would like to document and I tested the new documentation with some team mates today and it's starting to work, but they identified many smaller and larger things that can still be clarified.
I would like to tackle this as an ongoing effort with smaller PRs from here on out instead of adding to this PR so as to prevent this from getting out of sync with master. Further feedback is always welcome, maybe it would be easiest to do this through issues with the "docs" label: https://github.com/gcanti/fp-ts/labels/docs


Menu:fix submenu poper-append-to-body bug

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

PR without descriptions and refer relative issues  will be closed directly.

Duplicate of #15391


Ecto.Type with a Clickhouse type

I'm looking to do stuff like this:
field :name, Ch, type: "Nullable(Ecto.UUID)"

and use fields like:
field(:id, Ch, type: "FixedString(36)")

with ecto-ulid. Is there a way to do this?

I think you might be able to use a custom Ecto.Type type similar to https://github.com/plausible/ecto_ch/blob/752ca72090940f2836bbba0b054170a7367daf40/test/support/ecto_schemas.exs#L28-L35

So I guess it'd be something like
defmodule Ch.ULID do
  use Ecto.Type

  def type, do: Ecto.UUID
  def cast(value), do: Ecto.ULID.cast(value)
  def load(value), do: Ecto.ULID.load(value)
  def dump(value), do: Ecto.ULID.dump(value)
  def autogenerate, do: Ecto.ULID.autogenerate
end

But not that UUID is not the same as FixedString(36)

Sorry I meant FixedString(26).

@hkrutzer 👋
Can this issue be closed?


Manke

included and disabled final multiqc rule for now (until the passing of config is better solved)

included GPU test before basecalling.

I totally invented some constraints for memory.free, utilization.gpu and utilization.memory.
Please double check and make suggestions for more relavant values.
This also assume 1 GPU - not sure how this will translate to 4 GPU.

Looks good thanks, for multiple GPU's the test should depend on how we decide to compute in parallel :
1 flowcell / 4 GPUs vs 1 flowcell / GPU with multiple ont instances.


unsafe-eval is not allowed with CSP

I am using Framework7 together with the baked in Template7. In my html, I have included the meta tag to include Content-Security-Policy.
Expected Behavior
Should work with CSP?
Actual Behavior
'Uncaught EvalError: Refused to evaluate a string as Javascript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self'"
at eval()
at o (framework7.js:13994)

I have the same bug

I am experiencing the same issue and is a blocker for me. Is it going to be fixed soon ?

Unfortunately this isn't exactly a 'quick fix' issue

there is no way around this, there are 3 evals that i dont think are replaceable


Auto-Format Azure.psm1 using VSCode (no logic change)

[Continuing the conversation from last PR #336]
@juhlee-microsoft @ader1990 , Fixing the PSScriptAnalyser will required changing of the function names as well. This PR only targets to fix the indents and formatting issues. Nothing else. Fixing the PSScriptAnalyser issues will take some time and proper validation.

@juhlee-microsoft , I'm validating this PR for different scenarios. Till now, I have not seen any issues. I'll give  give you final merge notification by today.

@iamshital  can you rebase your changes so that there is only one commit?


Force Feedback for Gamepad extension

Gamepads and controllers (PS5 dual sense, steerings wheels) have Force feedback
this is how the block will look like :
set force feedback force to ( )

I think that's what the  block does.

I know that some modern controllers have some crazy vibration systems that let you get some very detailed effects (never tried personally), but unfortunately the above block is the best that we can do on the web platform.

but unfortunately the above block is the best that we can do on the web platform.
English is not my main language
Did you say that it may not be possible on the website ?

The gamepad extension already has a block for causing vibrations/haptic feedback. It is probably more than good enough for what you need to do.
More complex effects that take advantage of the full power of some modern controllers is unfortunately probably not possible, but the simple vibration blocks should still work.

nope (at least with my G29)
it does nothing

Oh and there is 2 motors btw

Whoops, I missed when you mentioned steering wheels. Unfortunately I don't have one of those to test.
Can you copy and paste the output of this website here? https://muffin.ink/gamepad

i am currently coding, i will test when i can

Gamepad #0 id: G29 Driving Force Racing Wheel (Vendor: 046d Product: c24f) connected: true timestamp: 24194 mapping:    buttons: 25     #0: pressed: false value: 0 pressed: false     #1: pressed: false value: 0 pressed: false     #2: pressed: false value: 0 pressed: false     #3: pressed: false value: 0 pressed: false     #4: pressed: false value: 0 pressed: false     #5: pressed: false value: 0 pressed: false     #6: pressed: false value: 0 pressed: false     #7: pressed: false value: 0 pressed: false     #8: pressed: false value: 0 pressed: false     #9: pressed: false value: 0 pressed: false     #10: pressed: false value: 0 pressed: false     #11: pressed: false value: 0 pressed: false     #12: pressed: false value: 0 pressed: false     #13: pressed: false value: 0 pressed: false     #14: pressed: false value: 0 pressed: false     #15: pressed: false value: 0 pressed: false     #16: pressed: false value: 0 pressed: false     #17: pressed: false value: 0 pressed: false     #18: pressed: false value: 0 pressed: false     #19: pressed: false value: 0 pressed: false     #20: pressed: false value: 0 pressed: false     #21: pressed: false value: 0 pressed: false     #22: pressed: false value: 0 pressed: false     #23: pressed: false value: 0 pressed: false     #24: pressed: false value: 0 pressed: false   axes: 10     #0: 0.0030670166015625     #1: 1     #2: 1     #3: 0     #4: 0     #5: 1     #6: 0     #7: 0     #8: 0     #9: 1.2857143878936768   hapticActuators: unsupported   vibrationActuator: unsupported

weirdly it says that there is no vibration

and the wrong numbers of axes are reported

What browser and operating system are you using? Chrome-based browsers are the most likely to work. Unfortunately if the browser doesn't give us access then there's nothing we can do

Brave (Chromium based), Windows 11


Docs learn update

Created a section for the new learning hub.

https://github.com/platformatic/platformatic/blob/main/docs/sidebars.js should be changed here as well

Updated the sidebars.js to include learn.


Allow the sampler to run from a known state

#3

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Host JSON data files outside of the code base

Right now JSON data files (e.g. admin boundaries, NSO files) are being directly imported into the code base (e.g. using an import statement in JS). This means that the full JSON data gets bundled into our javascript code, which is pretty seriously bloating the deployment.
These files should be hosted somewhere (e.g. S3 buckets) and fetched asynchronously instead.

There may be a few things to consider:

Most types will be lost if we asynchronously load configs (admin_boundries.json is unaffected). Types will have to be constructed elsewhere - relatively easy

Default JSON files should be accessible from the repo for tests or local development to run smoothly

Could excluded using a custom webpack implementation?

To keep deployment flexible, a method to specify a location for the JSON files.

Possibly an .env variable such as REACT_APP_CONFIG_SOURCE=example.com where file names are kept constant and added on as a path:  example.com/prism.json
Or we could go with an .env variable for every possible JSON file

I believe the best approach is to setup a new Redux slice to handle the async loading and storage of these config files.
We can then setup each affected component to check for availability and dispatch for a config load, similar to how loadLayerData is implemented.
Once we have a clear idea on how to address the caveats I mentioned above, I would love to tackle this issue within the MLH Fellowship Fork!

An important clarification: I'm not imagining that we'd load ALL the config files asynchronously - we want the static build to have access to the layer metadata & other files that set up the navbar (what layers are available, layer categories, etc.). What I'd like to load asynchronously are the large data geojson files that get loaded with GeoJSON layers.

* Most types will be lost if we asynchronously load configs (`admin_boundries.json` is unaffected). Types will have to be constructed elsewhere - relatively easy

For some files we already are "losing" type information because of the snake_case -> camelCase translation for keys (this doesn't apply to the admin boundaries, but it is true for the layer data). In general though, I'd rather be explicit about the types that we expect (and ideally check incoming JSON data to confirm that it conforms to those expectations) rather than rely on implicit types from the JSON files, so I don't think the requirement to manually define some types for this is a problem.

Default JSON files should be accessible from the repo for tests or local development to run smoothly

We could easily exclude files from the build for dev purposes by checking for a dev flag on the build environment, but I'd prefer to use the same process to load the files in dev & prod. So if we provide dev versions of the JSON files, they should still be served up asynchronously by the development server rather than imported directly.
I don't think we actually need a new Redux slice for this - these files are just other examples of layer data, so we can use the existing asynchronous thunk for loading layer data to load these files. There are already placeholder loading functions for NSO Layers and Groundstation layers that just need to be updated to do the loading.
I think we already have a fairly good mechanism for configuring the location of the layer data files - the layer definitions themselves are designed to be flexible and can specify a path to the file. We may need to update the layer types slightly for the admin_boundaries file, since that's used in a number of different layers (especially the impact layers), but I think we can accommodate all the configuration we need through the layer definitions.

Ah I see, thanks for the clarification.
To make sure we are on the same page, only the following files will be moved to this new async loading system:

Everything in src/data
admin_boundries.json

The files above will be moved to public/data and will be loaded using fetch().
NSO type layers in layers.json will have their path variable be repurposed to point to a file instead of a variable name. This can be a file path or web location.
OR
We can adopt this pattern used by groundstation layers, allowing us to provide both a prod and dev location.
Let me know which you prefer.

I don't think we actually need a new Redux slice for this - these files are just other examples of layer data, so we can use the existing asynchronous thunk for loading layer data to load these files.

We probably need to do something with Redux for admin_boundries.json right? It could fit within the mapSlice. Location also needs to be defined somewhere. I propose a default of data/admin_boundries.json with an .env option to reconfigure such as REACT_APP_ADMIN_BOUNDRIES_LOCATION

... There are already placeholder loading functions for NSO Layers and Groundstation layers that just need to be updated to do the loading.

From looking at the code, it seems groundstation layers are already loaded correctly; I'll use it as a rough guide for NSO.

We may need to update the layer types slightly for the admin_boundaries file, since that's used in a number of different layers (especially the impact layers),

Not sure what you mean by this exactly - still trying to piece together what this file stores exactly besides the boundary polygons. If some edit is needed in this file, a deeper insight into what you mean would be great, then I'll restate our game-plan if needed :)

Great! I think I have a good vision now on how to approach this issue.

Mostly true. I'd like to refactor that code to use async-await for cleaner async handling, and remove the "backup data" dependency, but that's generally the approach to use.

I'll try include this in my PR.

I think it probably makes sense to add it as a new layer type that gets loaded asynchronously and other layers depend on it.

I'll take a shot at this as well. One thing I'm worried about however is that converting boundaries to a new layer type in layers.json will open the door to allow multiple boundary layers to be provided, which could break something down the line.
We could go with the global approach I mentioned earlier, or your approach with added error checking to ensure only one is provided. I'll implement this later down the line.

One thing I'm worried about however is that converting boundaries to a new layer type in layers.json will open the door to allow multiple boundary layers to be provided, which could break something down the line since its essentially a singleton dependency.
I'll go with your approach for now with added error checking to ensure there's only one definition

Ya, that's a good point! I think you can just add it as another validation check in src/config/utils.ts.
Can't wait to see it!


When the program is running, it displays FileNotFoundError: [Errno 2] No such file or directory: './load/shapE_finetuned_with_330kdata.pth'. At which step should this file be generated?

train

same problem and solved.
download files u need from this link:
https://huggingface.co/camenduru/GaussianDreamer/tree/main

same problem and solved. download files u need from this link: https://huggingface.co/camenduru/GaussianDreamer/tree/main

Sorry, I didn't notice the download link of the file when I installed the environment. It is very relevant to your reply.


Presetting values when templateSelection is defined

If select2 has a defined templateSelection, then it's not possible to add predefined values as defined value is not being passed through that template function. Well at least I haven't found a way to do it.
Hamlcoffee:
%select{ id: "subjects", name: "subjects", class: 'chosen-select', data: { placeholder: 'Type the name of a person or subject.'}, multiple: true }
  %option{ value: 62501, selected: true, data: {display_name: 'Ask your colleagues', subject_image_url: TTM.url + '/a/assets/images/501_small.png'} } Ask you colleagues

Consider this coffeescript/backbone snippet:
modalInit: =>
    @$subjects.select2
      placeholder: "Select a subject"
      minimumInputLength: 3
      ajax:
        url: TTM.url
        dataType: 'json'
        delay: 250
        data: (params) ->
          {
            search_str: params.term
            page:       params.page
          }
        processResults: (data, page) ->
          { results: data }
        cache: true
      escapeMarkup: (markup) ->
        markup
      minimumInputLength: 3
      templateResult: @resultTemplate
      templateSelection: @choiceTemplate

  resultTemplate: (item) ->
    return "Loading…" if item.loading
    if item.subject_image_url
      style = ' style="background-image:url(' + item.subject_image_url + ')"'
    else
      style = ''
    '' +
    '' + item.display_name + ''

  choiceTemplate: (item) ->
    output = ''

    output += '' + item.display_name + ''
    if (item.subject_image_url)
      output += ''

I'm going to call this a duplicate of https://github.com/select2/select2/issues/3116#issuecomment-112976757, feel free to comment about a possible solution over at that ticket.


Query for other LabKey instances on a pooled connection

Rationale
During startup, there are very short windows when the server has no connections to the database. These windows could allow two servers starting in parallel to not detect each other. Moving the detection code to a pooled connection should eliminate these races. First server to create a pooled connection will likely succeed and leave that connection open (in the pool) for the second server to detect (and fail startup). It's possible the servers will create their initial pooled connections simultaneously, in which case both will fail to start up. That's certainly preferable to letting them both start up.
Related Pull Requests

https://github.com/LabKey/platform/pull/4937

This change seems OK but is getting very close to the wire for 23.11.0 for such a critical codepath. I don't know how much testing we've gotten with and without this change yet, so I'll defer the final decision on when to merge.

Matt has been testing... he discovered the race condition and has tested with the change on PG. I think he's planning SS next. We can discuss in standup tomorrow to make the merge call.


Fix what broke when the deprecated methods were removed

I checked the changes I made in #542 and adjusted all calls to the now-removed methods. This is based on @amelchio's work on #576.
Closes #576.

Can I test this somehow, or otherwise help to get this merged?

Hi @ghcs27
So I reviewed the code changes, and I can't see any problems with them, but I am unable to test any of the affected methods. I think the problem is that this was branches of at that point where you intriduced the kwargs support for the service calls, but this branch doesn't include the fix. So I get something like:
Traceback (most recent call last):
  File "test.py", line 7, in <module>
    s.get_current_track_info()
  File "/home/kenni/venv/soco/SoCo/soco/core.py", line 1158, in get_current_track_info
    ('Channel', 'Master')
  File "/home/kenni/venv/soco/SoCo/soco/services.py", line 210, in _dispatcher
    return self.send_command(action, *args, **kwargs)
  File "/home/kenni/venv/soco/SoCo/soco/services.py", line 468, in send_command
    args = self.compose_args(action, args, kwargs)
  File "/home/kenni/venv/soco/SoCo/soco/services.py", line 356, in compose_args
    .format(next(iter(unexpected)), str(action))
ValueError: Unexpected argument 'Channel'. Method signature: GetPositionInfo(InstanceID: ui4) -> {Track: [0..65535], TrackDuration: string, TrackMetaData: string, TrackURI: string, RelTime: string, AbsTime: string, RelCount: i4, AbsCount: i4}

I don't know if this branch can be rebased easily, otherwise I would consider these changes smalle enough to merge without test. Your call.

Since this is a critical bugfix, I'm merging this now to get it in before the release.


How change SDA and SCL pin?

Hi,
I can change SDA and SCL pin in code?
I use ESP32 and have a conflit with LCD ST7796...
tks

Hi @mariocondesantos,
Thanks for using my library. You can change the I2C pins in your sketch:
Wire.begin(SDA_PIN, SCL_PIN);

But change general I2C pinout in my Esp32 and my display stops working...
My display use I2C also...

Are the DS3231 examples up and running on your ESP32 board without using other devices? Make sure the DS3231 I2C pins uses different pins as they cannot be shared with a non I2C display. Multiple I2C devices can be connected to the same I2C bus when each device has a unique address.

Closing issue as ESP32 I2C pin configuration is beyond the scope of this DS3231 library.


updated calculator responsiveness

Hlo Dhanush, I have made the calculator resoponsive in the mobile view.
The screenshots of  before and After as follows.... 🧑💻
Before responsiveness

After Updated responsiveness

Thank You 💛.....

Can you please add hacktoberfest-accepted label


Remove multi_json dependency

Unfortunately multi_json is not supported anymore. https://github.com/intridea/multi_json/pull/113#issuecomment-17668823

Think this is done
close?

yep :)


Not possible to add devices to the reminder v1.2.9

Describe the bug
The buttons are missing in the view "Instanzen" to add a device.
To Reproduce
Steps to reproduce the behavior:

Go to instances
Try to add an device. There are no buttons

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots & Logfiles

Versions:

Adapter version: v1.2.9

https://github.com/Xenon-s/ioBroker.device-reminder/issues/299


Joern does NOT work with .cpp files

I followed the installation instructions on the Github page.
Strangely, joern on both of my Macbook and Ubuntu machines doesn't work with .cpp files while it works perfectly fine with .c files.
This is the content of test.c file:

muoi@Muois-MacBook-Pro test % cat test.c
void foo() {
int x = source();
if (x < MAX) {
int y = 2 * x;
sink(y);
}
}

Joern's log:

importCode(inputPath="/Users/muoi/test", projectName="test")
Using generator for language: C
Creating project test for code at /Users/muoi/test
moving cpg.bin.zip to cpg.bin because it is already a database file
Creating working copy of CPG to be safe
Loading base CPG from: /Users/muoi/workspace/test/cpg.bin.tmp
Adding default overlays to base CPG
2021-03-15 17:12:28.000 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000104, dstNodeType=TYPE, dstFullName=
2021-03-15 17:12:28.001 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000106, dstNodeType=TYPE, dstFullName=
2021-03-15 17:12:28.001 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000108, dstNodeType=TYPE, dstFullName=
2021-03-15 17:12:28.001 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000113, dstNodeType=TYPE, dstFullName=
2021-03-15 17:12:28.001 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000115, dstNodeType=TYPE, dstFullName=
2021-03-15 17:12:28.002 WARN Linker: Could not create edge. Destination lookup failed. edgeType=EVAL_TYPE, srcNodeType=CALL, srcNodeId=1000118, dstNodeType=TYPE, dstFullName=
The graph has been modified. You may want to use the save command to persist changes to disk.  All changes will also be saved collectively on exit
Code successfully imported. You can now query it using cpg.
For an overview of all imported code, type workspace.
res7: Option[Cpg] = Some(value = io.shiftleft.codepropertygraph.Cpg@6a1eef38)
joern> cpg.method.name("foo").dotCfg.l
res8: List[String] = List(
"""digraph foo {
"1000104" [label = "(.assignment,x = source())" ]
"1000106" [label = "(source,source())" ]
"1000108" [label = "(.lessThan,x < MAX)" ]
"1000113" [label = "(.assignment,y = 2 * x)" ]
"1000115" [label = "(.multiplication,2 * x)" ]
"1000118" [label = "(sink,sink(y))" ]
"1000101" [label = "(METHOD,foo)" ]
"1000120" [label = "(METHOD_RETURN,void)" ]
"1000104" -> "1000108"
"1000106" -> "1000104"
"1000108" -> "1000120"
"1000108" -> "1000115"
"1000113" -> "1000118"
"1000115" -> "1000113"
"1000118" -> "1000120"
"1000101" -> "1000106"
}
"""
)

But when I change test.c into test.cpp:

muoi@Muois-MacBook-Pro test % mv test.c test.cpp

Joern does NOT work anymore:

joern> importCode(inputPath="/Users/muoi/test", projectName="test")
Using generator for language: C
Creating project test for code at /Users/muoi/test
Project with name test already exists - overwriting
Turning working copy into new persistent CPG
moving cpg.bin.zip to cpg.bin because it is already a database file
Creating working copy of CPG to be safe
Loading base CPG from: /Users/muoi/workspace/test/cpg.bin.tmp
Adding default overlays to base CPG
The graph has been modified. You may want to use the save command to persist changes to disk.  All changes will also be saved collectively on exit
Code successfully imported. You can now query it using cpg.
For an overview of all imported code, type workspace.
res9: Option[Cpg] = Some(value = io.shiftleft.codepropertygraph.Cpg@fd42b93)
joern> cpg.method.name("foo").dotCfg.l
res10: List[String] = List()

Does anyone know how to fix this?

@muoitranduc The issue is fixed in the current version.