IIS virtual directories

When we're spun up behind IIS / HttpPlatformHandler how do we know what the virtual directory is? We need this to correctly set PathBase in the app. Ideally we'd set PathBase as part of the initial server address configuration, but at that point we're only given the port via environment variable.
@davidfowl

Should handle that based on the path passed into server.urls

Yes, but how do you get that information from IIS to server.urls? Right now we only get the port.

We'd need to restructure a bit. It can be setup in the M.A.Hosting.json file.

Depends on https://github.com/aspnet/KestrelHttpServer/issues/214

Workaround: put your app in a app.Map("/vdir" ...
https://github.com/aspnet/Hosting/issues/416#issuecomment-149046552

Please don't require us to hard code the IIS vdir in external config files, like M.A.Hosting.json, when IIS and HttpPlatformHandler already know this.
Just pass this information on for example in an environment variable, like %HTTP_PLATFORM_VDIR%, so you can say
    <httpPlatform stdoutLogEnabled="false" stdoutLogFile="log.log" startupTimeLimit="20" processPath="%HOME%\site\kestrel.cmd" arguments="http://localhost:%HTTP_PLATFORM_PORT%/%HTTP_PLATFORM_VDIR%">
      <environmentVariables></environmentVariables>
    </httpPlatform>

@rubenprins That fix is coming. This is a workaround until the fix is available. We're working with the httpPlatformHandler team to fix bugs found in beta8 and rc1.

I don't understand the workaround.
Are you saying we need to configure the sub-application within the parent application. Essentially copying the Configure method of the sub-application into the parent?

Sup-apps have different paths (e.g. /subapp/controller/foo) which breaks routing. The workaround is to use Map("/subapp"... In your sub app to remove the extra path segment.

        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            app.Map("/testvirt", map => Configure1(map, env, loggerFactory));
        }
        // Configure is called after ConfigureServices is called.
        public void Configure1(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {

            loggerFactory.MinimumLevel = LogLevel.Information;
            loggerFactory.AddConsole();
            loggerFactory.AddDebug();

            // Add the platform handler to the request pipeline.
            app.UseIISPlatformHandler();

            app.UseDefaultFiles();
            // Configure the HTTP request pipeline.
            app.UseStaticFiles();

        }

I havent been able to get the workaround to work with an app configuration above.

Updated workaround with the latest RC2 packages (https://github.com/aspnet/IISIntegration/issues/52#issuecomment-171444840).
The next version of HttpPlatformHandler (1.3?) will provide the base path via HTTP_PLATFORM_APPL_PATH and UseIISPlatformHandlerUrl will apply it. Until that version is released you can add HTTP_PLATFORM_APPL_PATH to the environment variables section of the httpPlatform web.config with a value like /MySubApplication.
RE: https://github.com/aspnet/IISIntegration/blob/dev/src/Microsoft.AspNet.IISPlatformHandler/IISPlatformHandlerAddressExtensions.cs#L31

@Tratcher :beers:
All y'all winning at life and such

I also got my stuff working with a little help from @davidfowl

Until that version is released you can add HTTP_PLATFORM_APPL_PATH to the environment variables section of the httpPlatform web.config with a value like /MySubApplication.

Just to clarify here - does this workaround function on its own, like this:
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600">
      <environmentVariables>
        <environmentVariable name="HTTP_PLATFORM_APPL_PATH" value="testbed" />
      </environmentVariables>
</httpPlatform>

or does it need to be done in tandem with the Configure changes mentioned previously?
Also, is this expected to work in HTTP Platform Handler 1.2, or do we need some kind of nightly/RC?
[Because as it stands, I've had no luck with just the web.config change and HTTP handler 1.2]

That should be value="/testbed", and yes it should work with HttpPlatformHandler 1.2 and our latest RC2 packages. This should replace the Map workaround.

Thanks for together providing a visible, valid example, @DavidR91 and @Tratcher

I tried adding the environmentVariables element to web.config source file, but dnu publish removes it when inserting DNX_PATH and DNX_ARGS. I tried with dnu rc2-16357. I guess this requires a post-publish modification.

this is what we refer to as a FON! a F#^%$#K UP OF NOTE! Have tried every single one of the fixes mentioned here and elsewhere ...6 hours & still no end in sight! Have no idea what the heck you blokes are doing that side but its not working for the rest of us plebs!

There seems to be a lot of confusion about this feature, so I suggest we get some troubleshooting tips on how to see what's going on behind the scenes. My situation:

Deploy fresh MVC 6 app (with ASP.NET and Web Tools 2015 (RC1 Update 1)) to a new site: Works
Deploy another fresh MVC 6  app to a virtual directory (does not work (HTTP 500 error, no details)
Deploy fresh MVC 6 app under a new virtual directory under the default web site (HTTP 404)

While inspecting the application log files (I've configured the httpPlatform element with stdoutLogEnabled set to true), I see that the requests go to /virtual directory where the app should be deployed, but the app itself can't handle this. I also see that the web.config looses the environment settings (environmentVariables element) when "publishing the application to file system" (that's probably unrelated issue).
So, neither the solution with the web.config nor the app.Map() works (in my case) for a simple scenario of deploying the new ASP.NET MVC 6 app under the virtual directory. Time permitting, I'll test with an almost empty ASP.NET 5 app.
What is also very puzzling is that IIS is not serving the static files, but kestrel is.
Questions:

how exactly is deployment under a virtual root supposed to work?
will app nesting be supported as well? (I guess it is related to the second question)
will IIS be serving the static files or will those files be served by kestrel?

if static assets will be served by kestrel, is then IIS just a reverse proxy? (http platform handler, really)

This is causing me one hell of a headache! Is there any workaround with Asp.Net Core RC1 and HttpPlatformHandler 1.2, or nothing until the next releases?

@dotcom9:
With RC1 all you should need to do is wrap the contents of Startup.Configure with app.Map("/virtual-path-name", ...).
@skyflyer:

Deployment under a virtual root (if you're talking Web Deploy) works just the same as ever. Say your root site is www.example.com and your virtual application is named my-virtual-app, you will deploy to www.example.com\my-virtual-app. App nesting is, once again, no different. And once RC2 and the update for HttpPlatformHandler are officially released, you should just be able to use it without thinking about it, just like before.
IIS could serve the static files if you really wanted, but it would take some custom configuration in IIS -- i.e., you would need to move the handler for static files before the HttpPlatformHandler's handler. In general, if you're using HttpPlatformHandler, you should just have the app it proxies to handle everything.

@tuespetre,

so you're saying IIS will be relegated to proxying kestrel?
regarding app nesting: you're right. I've been hitting a bug before that I couldn't get a trace on (I've since installed the error reporting pages to IIS).

@skyflyer:
Pretty much, which is a good thing IMO.

I have been successfully deploying RC1 apps to separate virtual directories. Just haven't had the time to share the setup and was thinking that it all would change with RC2. But since it has not come out yet, i will try share here.
Install DNVM (if needed on build server)

the script looks like this:
# bootstrap DNVM into this session.
&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

# load up the global.json so we can find the DNX version
$globalJson = Get-Content -Path $PSScriptRoot\..\global.json -Raw -ErrorAction Ignore | ConvertFrom-Json -ErrorAction Ignore

if($globalJson)
{
    $dnxVersion = $globalJson.sdk.version
}
else
{
    Write-Warning "Unable to locate global.json to determine using 'latest'"
    $dnxVersion = "latest"
}

# install DNX
# only installs the default (x86, clr) runtime of the framework.
# If you need additional architectures or runtimes you should add additional calls
# ex: & $env:USERPROFILE\.dnx\bin\dnvm install $dnxVersion -r coreclr
& $env:USERPROFILE\.dnx\bin\dnvm install $dnxVersion -Persistent

 # run DNU restore on all project.json files in the src folder including 2>1 to redirect stderr to stdout for badly behaved tools
Get-ChildItem -Path $PSScriptRoot\.. -Filter project.json -Recurse | ForEach-Object { & dnu restore $_.FullName 2>1 }

(Notice that i placed it in a build dir in my respository and it should look for project.json in the parent folder).
Build Arguments

where the arguments for msbuild are
/p:TypeScriptCompileBlocked=true /t:Build,FileSystemPublish /p:PublishConfiguration=$(BuildConfiguration) /p:PublishOutputPathNoTrailingSlash=$(Build.SourcesDirectory)\artifacts\$(BuildConfiguration)\Publish

the TypescriptCompile is optional for this and something we build with grunt instead of vs. In VS2015 this is similar to publish to file system.
Move web.config to parent.

$(Build.SourcesDirectory)\artifacts\$(BuildConfiguration)\Publish\wwwroot\web.config $(Build.SourcesDirectory)\artifacts\$(BuildConfiguration)\Publish\web.config

You can do this after publish to file system manual if you dont use a build system.
The reason for moving it to the parent is that we want each virtual app to site side by side.
/app1
/app2
/app3

and in each app you want
/app1/wwwroot
/app1/approot
/app1/web.config

One could also take a look at this SO Q/A : http://stackoverflow.com/questions/34784391/deploying-aspnet5-apps-to-virtual-directories-on-azure-websites where i wrote about it when i first ran into the problem.
Publishing
Again I am using a build system.

What is needed to be done is that the httpPlatformPath needs to be updated.
I am doing this here: https://gist.github.com/s093294/e97de232ee6d9c563c8b#file-azurewebappdeploymenttask-cs-L189
and from the input parameters you may see that this is set to .\approot\web.cmd (remember the folder structure above).
Environment and Startup Fixes (The real fix of this github issue).
Setting the Environment variable (which my build task also do) ends up with a web.config that looks like this:
<configuration>
  <system.webServer>
    <handlers>
      <remove name="httpplatformhandler" />
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath=".\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="%home%\LogFiles\stdout.log" startupTimeLimit="3600">
      <environmentVariables>
        <environmentVariable name="VIRTUAL_PATH" value="/pr/ascend-ammo-wildlife/47" />
      </environmentVariables>
    </httpPlatform>
  </system.webServer>
</configuration>

where the VIRTUAL_PATH has to match the IISDir, where mine can be verified to match the azure website settings:

With the following startup class it works locally and deployed:
public class Startup
    {
        public Startup(IHostingEnvironment env)
        {
        }

        public void ConfigureServices(IServiceCollection services)
        {
        }

        public void Configure2(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {

            loggerFactory.MinimumLevel = LogLevel.Information;
            loggerFactory.AddConsole();
            loggerFactory.AddDebug();

            app.UseIISPlatformHandler();

            app.UseFileServer(true);

        }
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {

            if(!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("VIRTUAL_PATH")))
                app.Map(Environment.GetEnvironmentVariable("VIRTUAL_PATH"), (myAppPath) => this.Configure2(myAppPath, env,loggerFactory));
            else
                Configure2(app, env, loggerFactory);
        }
        public static void Main(string[] args) => WebApplication.Run<Startup>(args);
    }

Question ?
Since I have all this configured in Visual Studio Team Services and could package it as an extension. If you feel that this is valuable if you could click and install the steps and make VSTS deploy it for you in the same setup as above. Feel free to send me a email at<EMAIL_ADDRESS>I have been thinking about how to distribute it and would like to ask a few questions. (Also remember that VSTS is free up to 5 users, so even if you dont use it - it is easy to start using it).

@tuespetre thanks

This as been fixed in AspNetCoreModule v0.8: https://github.com/aspnet/IISIntegration/issues/105.

Asp.net core still not working under virtual directory in IIS

@leo9223 virtual directories or sub applications? These are commonly confused. Sub applications should work but there's no support for virtual directories.

@Tratcher Both !
both are not working not on IIS10 neither on IIS8.5

@Tratcher However different webconfigs working for IIS10 and IIS8.5
on IIS10 app works with this setting
<aspNetCore processPath="dotnet" arguments=".\myApp.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
on IIS8.5 app works with this setting
<aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\myApp.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
I don't know why. can you please tell me why it is happening

Your IIS 10 machine probably has dotnet on the system path, where your other machine doesn't. Did you restart the second machine after the install?

@Tratcher I just restarted the IIS not the machine, let me check. Thank you

@leo9223 Just for future reference, @pan-wang advised for the docs that you should be able to avoid a restart if you execute net stop was /y followed by net start w3svc.

I have the problem.. I want to add ASP.NET Web API application (Admin) under ASP.NET Core website (Test) as shown in the image below. But the admin doesn't work because of the corehandler. How do I ask the corehandler to just work with the root application but not the applications inside it.

@buddalasunil999 Web.Config files are inherited by child apps. inside your admin web.config in the handlers section you can remove the aspNetCore handler that was added in the parent site.

Yeah just figured it out.. it's inherting the handler, added remove handler to child config and started working. Thanks

@Tratcher you say "there's no support for virtual directories.".  After I saw this comment I have searched everywhere to have it confirmed without finding anything on it, except in comments from you.
Are you saying I will have to set up a new site and deploy there?
So the setup below will never work because posservice is a virtual directory?

What I need is to be able to call this web api url ? https://A.HTTPS.Site/posservice/api/v1/authentication/accesstoken
My api controller attribute routing looks like [Route("api/v1/authentication")] with this on a method  [HttpPost("accesstoken"), AllowAnonymous]

Create a sub application (lets call it POS) straight under A.HTTPS.site
Where do I point the service (physical path) to? Where does the "api/v1" part plug in? Nb. I tried every version I could think of, to no avail.

I have tried just about everything under the sun I believe (even some  map https://github.com/aspnet/IISIntegration/issues/14#issuecomment-150716529 things).. so some help would be appreciated :-)

Yes, if you made the posservice level a sub-application and pointed it at your ASP.NET Core app then it should work. Also remove the nested posservice/api and /posservice/api/v1 sub-applications definitions, they'll mess up your routing. Any segments marked as a sub-application get moved from HttpContext.Path to HttpContext.PathBase and Rout only operates on Path.

Hi,
previously on full .net there was System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath which returned virtual dir/app name.
Having HttpContext.PathBase is very nice, but it exists only during request handling, which ApplicationVirtualPath was available in IHttpModule.Init for example.
Is there any way to get base path before on starup/configure (before request processing)?

@evil-shrike why do you need it?

@davidfowl I'm migrating some app/lib onto core from mvc5 and there I have some global singleton config  (let's call it XConfig) which is available via DI for other components. I put the base path from ApplicationVirtualPath into that XConfig on start.
Then for example some View calls its Model's method, which returns some html markup, for this it uses other injected component which only has XConfig and takes basePath from it.
Now I have to pass HttpRequest all the way (better), on initialize XConfig on first request (worse).
I'm not telling that it will be impossible or bad but just decided to ask. As probably host (IIS) can pass this info on initializing not only on request handling.

Hi when i deploy asp.net core 2.0 with IIS Windows authentication I am getting Cors Error with angular. Please suggest any example


improve tracing

Why + What Changed

we'd like better abstractions around spans/context so we don't clutter all our functions with callbacks
we'd also like spans for more river-native concepts like sessions + connections and more events around the lifecycle

this pr, like the last otel pr, is best reviewed with whitespace changes off :)
Versioning

[ ] Breaking protocol change
[ ] Breaking ts/js API change

Cries in rebase #127


DO not check for pilots inside groups that are disabled

Solved with https://cdcvs.fnal.gov/redmine/issues/24540

Cherry-picked in 3.7


Google Base map Not show in Geomoose 2.9 But OSM can show.

I have developed Geomoose 2.9 projects in 2 Servers. As  http://<IP_ADDRESS>:8708/geomoose2/ and http://marinegiscenter.dmcr.go.th/gis/ and I have a problem that google satellite, Google street and Google physical base map didn't show. While Open street map can show.
I have testing in geomoose 2.9 demo website annd found same problem. How can I fixing this problem?
Best Regard,
Treechai

How you can fix the problem: Find another source for your basemaps.
Without getting into details, Google appears to have stopped supporting accessing their maps from third party mapping tools like GeoMoose/OpenLayers.  There isn't anything we can do to restore access to their maps from within GeoMoose (without violating their terms of service).  Note: GeoMoose 3 omitted including Google maps support for this reason.
The only action I could see that we could potentially do is remove the Google layers from the 2.9 demo.  Although, due to the necessary library components necessary to run GeoMoose 2.9 being too old to work on current Linux distributions (roughly Ubuntu 16.04 and newer), we are getting very close to needing to remove the 2.9 demo altogether (April 2019, when Ubuntu 14.04 is no longer supported, is the hard deadline).

I agress getting off Google is the solution, although for many places, it is the best available imagery.
We started getting these reports from 2.9 folks yesterday as well.
I think it may be an OpenLayers issue, as the Google API is successfully loading, and a single tile in the center of the map is successfully called, returned, but not loaded, and then no other tiles are fetched.
The odd thing is that folks using ancient GeoMoose 2.6 are not having this problem, so whatever Google has done is not impacting the super-old installs.
Just wanted to add what we've noticed.

GeoMoose 2.6.1 is using Google Maps 3.6 and OpenLayers 2.12.
GeoMoose 2.9-master is using Google Maps 3.6 and OpenLayers 2.13.
In fact, 2.6 and 2.9 are including the Google Maps API with the EXACT same URL call. I suspect the differences are between 2.12 and 2.13 versions of OpenLayers.  Both of which are old enough that I'll be honest, I don't remember what the changelog looks like for them.

Looks like GeoMoose 2.6.0 and 2.6.1 used OpenLayers 2.11.
OpenLayers diff (look for Layer/Google.js): https://github.com/openlayers/ol2/compare/38813af5..f4a409081#diff-cf9b8e3729bd2f0e869e7c66dca31180
Whatever the functional difference, it isn't jumping out at me.
It also looks like there has been changes since we last updated OL in 2013.

Has anyone tested the difference between having and not having an API key in the

Thank you very much for every suggestions. Now I trying to migrate project to Geomoose 2.6 to testing openlayer and will describe result soon.
Thannk you again.
Treechai

Yes - I tested having an API key, and having none. I also tested from a server with https and a server without. Neither of those seemed to be the variable that made the difference.

Has anyone tested the difference between having and not having an API key in the

GeoMoose 2.6.1 is using Google Maps 3.6 and OpenLayers 2.12.
GeoMoose 2.9-master is using Google Maps 3.6 and OpenLayers 2.13.
In fact, 2.6 and 2.9 are including the Google Maps API with the EXACT same URL call. I suspect the differences are between 2.12 and 2.13 versions of OpenLayers. Both of which are old enough that I'll be honest, I don't remember what the changelog looks like for them.

I have tested to using Openlayers2.12 by paste only OpenLayers.js from Geomoose2.6 to Geomoose2.9 and Google base maps are show complete. But I should to full testing every function again.
Thank you very much.

Random additional information - this page summarizes changes in OpenLayers 2.13 and might be helpful, FYI:  https://github.com/openlayers/ol2/blob/master/notes/2.13.md

Today also version 2.6 stop working, any other suggestion?

Version 2.9
Stop working also.
I am trying to change Openlayers.js from version 2.9 to 2.6 but didn’t
worked.
On Wed, 28 Nov 2561 at 21:08 biancoluca<EMAIL_ADDRESS>wrote:

Today also version 2.6 stop working, any other suggestion?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/geomoose/geomoose/issues/168#issuecomment-442458985,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Apk4bMnWHWGUFM3ZAj0Tt0IXsvVlJYVdks5uzpjlgaJpZM4W54gj
.

--
Mr. Treechai Anuwongjareon
Project Manager
Land Info Connect Co,. Ltd.
162/5 Moo5 Soi17 Chotana Rd. Donkeaw Mearim Chiangmai 50180
Mobile :<PHONE_NUMBER>

Folks, this isn't likely to work any longer due to google's stance on use of their data in other applications.
This is section 3.2.4, part part d:

(d) No Use With Non-Google Maps. Customer will not use the Google Maps Core Services in a Customer Application that contains a non-Google map. For example, Customer will not (i) display Places listings on a non-Google map, or (ii) display Street View imagery and non-Google maps in the same Customer Application.

Link here: https://cloud.google.com/maps-platform/terms/
I'm sorry about the loss of Google Maps' functionality but this is outside the scope of the project and I'm closing the issue.


Offboard mode (Position triplet setpoint) ignores specified coordinate frame

According to the Mavlink message, SET_POSITION_TARGET_LOCAL_NED, you should be able to specify coordinate_frame to either local NED or body NED setpoints (and offsets as well), to allow for things like position or velocity control in the body frame.
The issue stems from the Mavlink receiver, where the "coordinate_frame" variable is dropped. There should be a check in mavlink_receiver.cpp around L809 to see what frame the setpoint is specified in, then do the appropriate transformation, and then most likely send this as a local NED frame setpoint to the commander.
The specifications detailed are:
MAV_FRAME_LOCAL_NED = 1
(Should act as it currently does)

MAV_FRAME_LOCAL_OFFSET_NED = 7
(Should act as it currently does, but offset by the current position and heading of the mav in the local frame)

MAV_FRAME_BODY_NED = 8
(Should act as a location in the body frame, with NED aligned with true North. Not too sure on the usefulness of this)

MAV_FRAME_BODY_OFFSET_NED = 9
(Should tell the UAV to move with respect to it's current heading, i.e. a velocity command of 1m/s in the X direction should command the mav forward in the direction of it's current heading. A position setpoint should of [1,0,1] command the mav to move 1 meter forward, and 1 meter in altitude.)

A bit more information can be found in the APM docs on what the expectations are. I am really only bothered by the lack of MAV_FRAME_BODY_OFFSET_NED, as it is quite desirable for moving a system with no regard for it's position in the world, but I'm sure others would like the other features as well.
I am willing to look into how to make the change myself, but I'm not sure how I should approach getting the data for the transformation into this section of the code.

@pryre feel free to ping me if you'd like to implement this and want to talk about how it fits into the current architecture.

@pryre Thank you for pointing this out.  I was also wondering why the appropriate transformation was not happening when a coordinate_frame other than MAV_FRAME_LOCAL_NED was specified.
@dagar Will a PR be created to track and fix this?

It would need to be implemented.

@mhkabir @dagar  Do you mean to say that setpoint target only supports FRAME_LOCAL_NED as of now and there's no support for FRAME_LOCAL_OFFSET_NED, FRAME_BODY_NED, FRAME_BODY_OFFSET_NED ?

@visrinivasan Yes.

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)

I would also need this feature for my vision based control algorithm. Can anyone suggest a workaround?

Need this feature!


CCleaner tasks on Task Scheduler after running the script.

The script is run on a fresh install, with no errors.

Added code to delete CCleanerCrashReporting task. We can't delete the user-specific task as I've been unable to find a good solution for taskmgr wildcard deletion. Thanks for reporting, it'll go out in next release.


Fancyzone Shortcut Keys - Windows 11

Microsoft PowerToys version
0.57.0
Running as admin

[X] Yes

Area(s) with issue?
FancyZones Editor
Steps to reproduce
The default shortcut key (window + ~) does not work for me on Windows 11.
✔ Expected Behavior
Open editor
❌ Actual Behavior
Nothing
Other Software
No response

/reportbug

PowerToysReport_2022-04-03-16-39-15.zip

Does it work if you set another shortcut? That shortcut might be set by the operating system now. For example, try to add shift to the shortcut.

I tried win + shift + ` and that did not work.

So, no shortcut is working for you, after you change it on Settings, or can you set it to some shortcut that works? /needinfo

In my testing, I can't use the win key. I tried some other assignments and they seem to work. The layout editor works fine from within the program using the "Launch layout editor". Seems Win 11 might have some superiority of the win key.

Might be the case that you need to find a shortcut not already taken by Windows. Using "Windows+Shift+another key" should allow many shortcuts. Hope this helps /needinfo


Error initializing OpenALPR

I'm trying to use this in my Android App, everything compiles correctly and the files DOES exists in the APK. I confirmed this by doing a InputStream to the Config file and then read it. I could do that no problem.
These are my paths to my files, and then at the bottom it says the error.

This is my Config file.

This is my MainActivity

What could go wrong?

Appearently this method, doesn't actually work:
OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognize(testImage, 10);
Because when I change it to this:
OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "", testImage, openAlprConfFile, 10);
It works like a charm
Closing.

Hi,
I got this error while i changed to india in config file.what can i do for that?


Convert the Ergo Playground to Accord Project Template Studio

The current Ergo Playground is somewhat of a misnomer:
https://github.com/accordproject/ergo-playground/blob/master/dist/bundle.js
It would be clearer if this became Accord Project Template Studio:

Load a template from https://templates.accordproject.org (other locations nice to have)
Generate a sample request transaction. Syntax highlighting of the JSON. Form generation nice to have based on https://github.com/uchibeke/composer-form
Generate sample state
Submit a transaction to a contract/clause
Display the new state, response and emitted events
Edit the Ergo logic
Save/export the modified template to disk. Save to local storage as well?

link to the playground is here: https://accordproject.github.io/ergo-playground/

Initial design and prototype for a template studio can be found here: https://github.com/accordproject/template-studio
Feature coverage:
It would be clearer if this became Accord Project Template Studio:

[ ] Load a template from https://templates.accordproject.org (other locations nice to have)
[x] Generate a sample request transaction.
[x] Syntax highlighting of the JSON.
[ ] Form generation nice to have based on https://github.com/uchibeke/composer-form
[x] Generate sample state
[x] Submit a transaction to a contract/clause
[x] Display the new state, response and emitted events
[x] Edit the Ergo logic
[ ] Save/export the modified template to disk. Save to local storage as well?

Can we consider this issue resolved, based on https://github.com/accordproject/template-studio and open any additional issues on template studio instead?


irzyxa.Volume2 version <IP_ADDRESS>9

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

WARNING!
The installer used by this piece of software has a 71 character path lenght limitation, which in turn gives an error during the execution of the installer in the extaction folder.


Distinct VPC range, passing VPC start/end from cmd arg for scale out

This is a workaround for Mizar cniplugin that cannot handle VPC overlap within & across TPs
Tested this PR on top of master with mizar option - for arktos up and scale out

/lgtm

/approve


[SPARK-24629][SQL]thrift server memory leaks when Beeline session is closed

What changes were proposed in this pull request?
Maintaining a running statement map.
When the session is closed, the relative statements should receive a cancel event.
How was this patch tested?
the attached UI show statements is successfully cancelled in UI.

Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

cc @liufengdb

where u at @liufengdb

https://github.com/apache/spark/blob/5ea4deec447fb413fd90b8c1a8d983d6bee89d91/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala#L251 here should add an invocation of HiveThriftServer2.listener.onStatementCancel

@LantaoJin
thanks for your review,  fixed

Gently ping @cloud-fan @gatorsmile

@wangyum could you help to review this. It absolutely is a bug. cc @gatorsmile again.

ok to test

I'm thinking if this issue can be solved together with SPARK-26533.

I'm thinking if this issue can be solved together with SPARK-26533?

Not yet PR opened from SPARK-26533 and this bug should be fixed first.

Can one of the admins verify this patch?


fix an incorrect verb in README.md

this is more of a incorrect auxiliary as Charles said, not a spelling mistake

whoops

this isnt needed anymore now that this change was already done recently
you can just close it now

😭

this isnt needed anymore now that this change was already done recently
you can just close it now

alright


AttributeError: 'LatentDiffusionSRTextWT' object has no attribute 'set_depth'

How can i solve this issue while run depth-skip.py for StableSR?

Can you list the details up for the used python environment and bash command?


Is this code's configuration requirement definitely correct?

ModuleNotFoundError: No module named 'mmcv._ext'

Can you help me figure it out, why their solution requires mmcv0.6.2. to be installed, but yours is mmcv1.7.1.

The error of missing  mmcv._ext is normally caused by not installing mmcv's full package, you may try to run pip uninstall mmcv first and install mmcv-full by running pip install mmcv-full==1.7.1

I also encountered this problem and repeated it for two days, but it still hasn't been resolved. Perhaps after 2023, mmcv will be updated by renaming mmcv full to mmcv.

The error of missing mmcv._ext is normally caused by not installing mmcv's full package, you may try to run pip uninstall mmcv first and install mmcv-full by running pip install mmcv-full==1.7.1
I got this error after running pip install mmcv-full==1.7.1

This is because which g++ failed, which implies that g++ is not installed in your system.

Another choice is to install mmcv-full using openmim
pip install -U openmim
mim install mmcv-full==1.7.1

Another choice is to install mmcv-full using openmim
pip install -U openmim
mim install mmcv-full==1.7.1

It works. But when I ran the code "bash tools/dist_train.sh configs/consistent-teacher/consistent_teacher_r50_fpn_coco_180k_10p.py 8", the following error occurred:

After upgrading to the corresponding version, other errors will be prompted. : ModuleNotFoundError: No module named 'mmcv._ext'

What is your mmdet version?

The recommended mmdet version is mmdet==2.28.1 as described in the README

Therefore, the following commands should work.
pip install -U openmim
mim install mmcv-full==1.7.1
mim install mmdet==2.28.1

Thanks!

mmdet==2.28.1

mmdet==2.28.1

Therefore, the following commands should work.
pip install -U openmim
mim install mmcv-full==1.7.1
mim install mmdet==2.28.1

I have encountered this problem again. May I ask what the reason is? thanks

Your solution doesn't work

Pls how to solve this problem, thanks.

Pls how to solve this problem, thanks.

Please make install under the folder of ConsistentTeacher folder to install the package.

Therefore, the following commands should work.
pip install -U openmim
mim install mmcv-full==1.7.1
mim install mmdet==2.28.1

 I have encountered this problem again. May I ask what the reason is? thanks

The issue likely arises from the absence of the dist_params parameter in the imported base configuration. Your base configuration is importing from a local mmdetection folder:
mmdet_base = "../../../mmdetection/configs/_base_"
_base_ = [
    f"{mmdet_base}/datasets/coco_detection.py",
    f"{mmdet_base}/schedules/schedule_1x.py",
    f"{mmdet_base}/default_runtime.py",
]

This problem might be due to update of the configuration system in mmdet. To resolve this, you should clone an older version of mmdetection into the specified folder. This older version should be compatible with the mmdet package version you have installed. This way, the necessary dist_params parameter should be included in the base configuration.

thanks！

Therefore, the following commands should work.
pip install -U openmim
mim install mmcv-full==1.7.1
mim install mmdet==2.28.1

 I have encountered this problem again. May I ask what the reason is? thanks

The issue likely arises from the absence of the dist_params parameter in the imported base configuration. Your base configuration is importing from a local mmdetection folder:
mmdet_base = "../../../mmdetection/configs/_base_"
_base_ = [
    f"{mmdet_base}/datasets/coco_detection.py",
    f"{mmdet_base}/schedules/schedule_1x.py",
    f"{mmdet_base}/default_runtime.py",
]

This problem might be due to update of the configuration system in mmdet. To resolve this, you should clone an older version of mmdetection into the specified folder. This older version should be compatible with the mmdet package version you have installed. This way, the necessary dist_params parameter should be included in the base configuration.
What specific version of mmdetection is it? Is it 2.26.1?
Thanks!

Therefore, the following commands should work.
pip install -U openmim
mim install mmcv-full==1.7.1
mim install mmdet==2.28.1

 I have encountered this problem again. May I ask what the reason is? thanks

The issue likely arises from the absence of the dist_params parameter in the imported base configuration. Your base configuration is importing from a local mmdetection folder:
mmdet_base = "../../../mmdetection/configs/_base_"
_base_ = [
    f"{mmdet_base}/datasets/coco_detection.py",
    f"{mmdet_base}/schedules/schedule_1x.py",
    f"{mmdet_base}/default_runtime.py",
]

This problem might be due to update of the configuration system in mmdet. To resolve this, you should clone an older version of mmdetection into the specified folder. This older version should be compatible with the mmdet package version you have installed. This way, the necessary dist_params parameter should be included in the base configuration.
What specific version of mmdetection is it? Is it 2.26.1?
Thanks!

yes

Hello, boss, I am very interested in your paper. I want to use it as a dimensional benchmark model, but a troublesome problem when reproducing your paper is that it does not allocate labeled data in voc/coco format to a certain proportion. Unlabeled data is not very clear in the readme. Could you please give me some guidance? Thank you.
原始邮件
发件人："Xingyi Yang"< @.*** >;
发件时间：2024/1/16 17:06
收件人："Adamdad/ConsistentTeacher"< @.*** >;
抄送人："Code-of-Liujie"< @.*** >;"Author"< @.*** >;
主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50)
Therefore, the following commands should work.
pip install -U openmim mim install mmcv-full==1.7.1 mim install mmdet==2.28.1
I have encountered this problem again. May I ask what the reason is? thanks
The issue likely arises from the absence of the dist_params parameter in the imported base configuration. Your base configuration is importing from a local mmdetection folder:
mmdet_base = "../../../mmdetection/configs/base" base = [     f"{mmdet_base}/datasets/coco_detection.py",     f"{mmdet_base}/schedules/schedule_1x.py",     f"{mmdet_base}/default_runtime.py", ]
This problem might be due to update of the configuration system in mmdet. To resolve this, you should clone an older version of mmdetection into the specified folder. This older version should be compatible with the mmdet package version you have installed. This way, the necessary dist_params parameter should be included in the base configuration.
What specific version of mmdetection is it? Is it 2.26.1?
Thanks!
yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Dear @Code-of-Liujie
We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo.
Best,

thanks
原始邮件
发件人："Xingyi Yang"< @.*** >;
发件时间：2024/1/17 14:29
收件人："Adamdad/ConsistentTeacher"< @.*** >;
抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >;
主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50)
Dear @Code-of-Liujie
We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo.
Best,
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Can I use this dataset partition code on Windows?
原始邮件
发件人："Xingyi Yang"< @.*** >;
发件时间：2024/1/17 14:29
收件人："Adamdad/ConsistentTeacher"< @.*** >;
抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >;
主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50)
Dear @Code-of-Liujie
We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo.
Best,
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Can I use this dataset partition code on Windows? 原始邮件 发件人："Xingyi Yang"< @.*** >; 发件时间：2024/1/17 14:29 收件人："Adamdad/ConsistentTeacher"< @.*** >; 抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >; 主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50) Dear @Code-of-Liujie We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo. Best, — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Certainly. The Windows operating system also supports the use of terminal commands.

原始邮件
发件人："Xingyi Yang"< @.*** >;
发件时间：2024/1/17 15:29
收件人："Adamdad/ConsistentTeacher"< @.*** >;
抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >;
主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50)
Can I use this dataset partition code on Windows? 原始邮件 发件人："Xingyi Yang"< @.*** >; 发件时间：2024/1/17 14:29 收件人："Adamdad/ConsistentTeacher"< @.*** >; 抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >; 主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50) Dear @Code-of-Liujie We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo. Best, — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Certainly. The Windows operating system also supports the use of terminal commands.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Big guy, I don't have a solution to your code anymore, I'm speechless.
原始邮件
发件人："Xingyi Yang"< @.*** >;
发件时间：2024/1/17 15:29
收件人："Adamdad/ConsistentTeacher"< @.*** >;
抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >;
主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50)
Can I use this dataset partition code on Windows? 原始邮件 发件人："Xingyi Yang"< @.*** >; 发件时间：2024/1/17 14:29 收件人："Adamdad/ConsistentTeacher"< @.*** >; 抄送人："Code-of-Liujie"< @.*** >;"Mention"< @.*** >; 主题：Re: [Adamdad/ConsistentTeacher] Is this code's configurationrequirement definitely correct? (Issue #50) Dear @Code-of-Liujie We provide the code and specific procedure for pre-processing the dataset into labeled and unlabeled part, in COCO annotation format (https://github.com/Adamdad/ConsistentTeacher?tab=readme-ov-file#data-preparation). We follow the same pipeline as in SoftTeacher and UnbiasedTeacher. It should be straightforward to follow the guidelines provided in our repo and their repo. Best, — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Certainly. The Windows operating system also supports the use of terminal commands.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


[RFC] Preparing backstage for production deployment

Hi, I am not really an expert on deploying apps into an ecs fargate and all the stuff but I managed to get the backstage standalone app running and exposed into an ALB. To get this I needed to configure the baseurl of the app-config.production.yaml as my url domain defined by route53.
The main question is how to configure properly the backstage app in a "production" way so plugins can live in backend (for example auth providers)... and expose the service through the alb.
Thanks!

@cpgonz2 we have a similar setup only we don't use Route53 as the domain we wanted to use lives somewhere else. To get us going we used Roadie's guide here: https://roadie.io/blog/backstage-fargate-up-and-running/
For our deployments to Dev, Stage, and Production our app.baseUrl and our backend.baseUrl are both https://backstage.exmample.com. This all goes through a Terraformed ABL in AWS. We use a single container as we haven't needed anything more complex yet. We use Azure AD auth and several other backend plugins like this without any issues.
I hope this is what you are looking for?

Okey! Nice thank you so much.
@awanlin Just another question related to the auth backend plugins, the handler for example for github when login in must be in the backstage/plugins/auth-backend as the backstage github project, right? Because as I could see on the backstage webpage there is a TO-DO on that section https://backstage.io/docs/auth/auth-backend, and there isn't much documentation about this step on Google.
Thanks again!

Hi @cpgonz2, all your auth setup would go into /packages/backend/src/plugins/auth.ts. If you read through the documentation from here it will explain how to get that setup: https://backstage.io/docs/auth/
@benjdlambert, sorry to tag you directly but I'm just wondering what the intention of this page is/was? Maybe it's not needed? https://github.com/backstage/backstage/issues/url

Ugh, sorry, I meant this one: https://backstage.io/docs/auth/auth-backend. Trying to do too many things at once!

Hmm yep, to be honest I'm not really sure what we would put in that doc section apart from installation notes or something to setup a backstage instace that doesn't already have that plugin installed? @rugvip thoughts?


Ember Validations deprecations

One of the current deprecation errors in our code is caused by deprecated code in Ember Validations:
"Ember.keys is deprecated in favor of Object.keys" - this error message is coming out of the numericality validator in cases where we define a numericality with an operator.  For example:
numericality: {
  greaterThan: 0,
}

In addition, given the list of blockers here, we may have some issues using Ember Validations in Ember 2.x: https://github.com/dockyard/ember-validations/labels/2.0-blocker

Everything seems to be working correctly in Ember 2.2.


Fix balena-engine logo image

Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>
- What I did
- How I did it
- How to verify it
- Description for the changelog

@balena-ci I self-certify!


Roadmap

This is a somewhat detailed roadmap for the development of this crate as I'd like to be transparent about what changes the user may anticipate. I will update it roughly once a month with all the main milestones.
Right now the current version is 0.26.0. This plan is not set in store and some other features could be implemented outside of these milestones (e.g. regex config support, or moving some dependencies behind features).

:heart:  If you'd like to help the development, consider sponsoring me (like Sentry does)

Full JSON Schema support - DONE :tada:
Missing non-optional test cases:

[x] 6 failing unevaluatedItems ($ref, $recursiveRef & $dynamicRef support)
[x] vocabulary
[x] 2 failing unevaluatedProperties ($ref ordering issue)
[x] 1 failing $ref in Draft 2019-09

Some optional will be resolved along with the ones above, however, some bignum tests for Draft 4 depend on parsing numbers with arbitrary precision which I plan to address later.
UPDATE 2024-10-12: Most of the unevaluatedItems keyword logic is implemented and only referencing support is left.
UPDATE 2024-10-20: Vocabulary support is done, now there are only 3 required tests not passing. These are bugs in the current implementation, so I'd consider support of Drafts 2019-09 & 2020-12 as done and will fix those cases later on.
UPDATE 2024-10-24: Finished the last few remaining cases.
Better errors
The main issue with errors is that validate returns an iterator, but I'd rather have validate + iter_errors where the former returns Result<(), ValidationError>
As the end goal the errors should:

Support customization of error messages
Be easily usable without lifetime issues

I'd also think about separating schema & instance errors.
It would be nice to rework the error iterator, so it is bound to the validator instance (as it uses its sub-validators). There are some performance issues I'd like to fix, i.e. collecting errors into vectors during validation.
UPDATE 2024-10-26: The older validate version is replaced with validate + iter_errors
Non-blocking resolving
Right now, the resolving of external references happens during the building phase, which makes it relatively straightforward to implement non-blocking resolving (actually, I'd like to retrieve resources in batches rather than sequentially too).
Along with this change, I'd like to expose custom resolvers to Python bindings + hopefully with async too, but not 100% sure about this.
Output formats
Adopt naming from the "next" draft + implement a hierarchical style. At this point, I want to separate all the annotation storage from the main graph, as it implies overhead for is_valid and validate.
Rework Python bindings

[ ] ABI3 wheels
[ ] CI cleanup
[ ] PyPy support
[x] Python 3.13 (it could happen earlier too)
[ ] Output formats

For a long time, I wanted to implement generic JSON input, I'll try to work on it at this stage. In Python bindings, sometimes the overhead data (de)-serialization during building a validator / validation is up to 80%, having generic input will greatly speed up everything.
Arbitrary precision also goes here, I'd like to have it behind a flag, so it could be disabled by default, but enabled in Python bindings.
WASM
It should "just work", maybe except for filesystem resolving, but network stuff could work via web_sys (I've tried it in css-inline).

[x] Run tests on WASM as a part of CI
[ ] Demo website with WASM

Performance, performance, performance
I have tons of ideas about it as my main use case is to speed up the generation of instances that match a schema (in hypothesis-jsonschema & schemathesis), hence I am going to focus on the is_valid performance because the exact errors don't matter in this case.

Along with this change, I'd like to expose custom resolvers to Python bindings + hopefully with async too, but not 100% sure about this.

I presently use python-jsonschema, where I use custom resolvers for a few reasons:

The default resolver follows file:// URLs. If an application dereferences and renders a user-provided schema, this can be used to read any file on the filesystem to which the web process has access. I therefore use a custom resolver that only resolves HTTP and HTTPS URLs (this is vulnerable to server-side request forgery, but I'm less worried about that).
I work with JSON Schema where users are allowed to "patch" the default schema, using JSON Merge Patch (RFC 7386). I use python-jsonschema's registry to make references to the default schema resolve to the patched schema.

It would be really nice to be able to control (1).
For (2), would a workaround be to provide only dereferenced schema to jsonschema_rs?

Hey @jpmckinney
Thank you for bringing this up!

Good to know this exact use case, I think that exposing resolvers should not be an issue and could be implemented similarly to how custom format validators work right now.
I am not 100% sure about a workaround (if you could provide an example, it would help), however, as this project practically followed the same registry-based design for references, I think we can expose the same functionality to Python bindings and it should be enough for your use case. It also seems like the feature is quite related to #432 & #452


Errors on downloading endf data while running cstool pmma.yaml

obtain_endf_files.py caused 404 errors.
It seems like that the endf URLs have been changed on www.nndc.bnl.gov.
On https://www.nndc.bnl.gov/endf-b7.1/download.html, the zip file path is no longer endf/b7.1, but endf-b7.1.
Modifying the three urls on cstool/data/endf_sources.json and re-installing cstool resolved this problem.
Would you please repair the url on endf_sources.json ?

Thanks for the heads up! Fixed.


[BUG]Segmentation fault (core dumped)

I face a problem that is "Segmentation fault (core dumped)" when I use this comm: from autogluon.text import TextPredictor. the autogluon version is 0.4.0, gpu.

@yangn306 Please provide more information for us to assist.
For example,
# Replace this code with the output of the following:
from autogluon.core.utils import show_versions
show_versions()

it works well as I reinstall the autogluon and torch


Add cfPush target to Makefile

@vadimeisenbergibm is this complete?

@ianpartridge No, it is not complete, since it requires further discussion. I will create a design issue to discuss it.

OK. Can you summarise what has been done so far and what's left?

The issue is implemented, there is a discussion if this feature is needed at all.

Thanks Vadim, but how can it be both implemented and incomplete?

The implementation is done. The design decision if this feature should be added to Package-Builder and Kitura Samples is not yet taken.

We no longer have Makefiles in our projects


Does a property lose its reference to a concept description when reading an AASX file?

In the AASX Package Explorer, I defined a property and assigned a concept description to it. When read into object storage via the SDK, the concept description can be found in the backend, but it appears that the property is no longer related to its concept description. Is it my fault or is it designed that way? Is it possible to automatically rebuild the reference, considering I have tens of properties

Thanks for reaching out to us!
I'm not entirely sure, what you mean, when you say you

assigned a concept description to it

Does that mean that you set the Propertys semantic_id attribute to refer to the ConceptDescription?

yes.

app.log
I saved the error log. It seems the reference cannot be constructed due to these errors. But even when I trace the errors back to the XML file within the AASX package and read the corresponding lines, I cannot understand the errors. For instance, the first error:

basyx.aas.adapter.xml.xml_deserialization - ERROR - ValueError: {https://admin-shell.io/aas/3/0}reference on line 14 is of type <class 'basyx.aas.model.base.ExternalReference'>, expected <class 'basyx.aas.model.base.ModelReference'>!
-> Failed to construct {https://admin-shell.io/aas/3/0}reference on line 14 using _construct_submodel_reference!
This "ExternalReference" is automatically generated by AASX package explorer, refering to "submodelRef" right? Another common error is:
2024-03-01 10:48:34,820 - basyx.aas.adapter.xml.xml_deserialization - ERROR - AASConstraintViolation: The type of the first key of an ExternalReference must be a GenericGloballyIdentifiable: Key(type=CONCEPT_DESCRIPTION, value=0173-1#02-AAQ203#001) (Constraint AASd-122)
-> Failed to construct {https://admin-shell.io/aas/3/0}semanticId on line 442 using construct_reference!
2024-03-01 10:48:34,821 - basyx.aas.adapter.xml.xml_deserialization - ERROR - AASConstraintViolation: The type of the first key of an ExternalReference must be a GenericGloballyIdentifiable: Key(type=CONCEPT_DESCRIPTION, value=https://admin-shell.io/SynErgie/EnergyFlexibilityDataModel/PowerGradient/1/0) (Constraint AASd-122)
Does it refer to the type of SemanticID "ExternalReference" that was set as "ConceptDescription"?
Do you have an example AASX file that I can follow to create an aasx that is compliant with AAS Specification V3?

@quickhdsdcIPA Can you manually somehow change the references to concept descriptions to ModelReference/ConceptDescription?

have tried. But it did not change anything. Below is my code. Did I miss something? When I get the new_object_store, I retrieve aas and submodels from it and manually reference the submodels to the aas.
`aasx_path = "EFDM.aasx"
manager = ComplianceToolStateManager()
compliance_tool.check_deserialization(aasx_path, manager)
new_object_store: model.DictObjectStore[model.Identifiable] = model.DictObjectStore()
new_file_store = aasx.DictSupplementaryFileContainer()
with aasx.AASXReader(aasx_path) as reader:
# Read all contained AAS objects and all referenced auxiliary files
reader.read_into(object_store=new_object_store,
file_store=new_file_store)
aas = new_object_store.get_identifiable("https://example.com/ids/sm/1271_1202_2042_8543")
sm_flexibilitySpace = new_object_store.get_identifiable("https://admin-shell.io/SynErgie/EnergyFlexibilityDataModel/sm/flexibilitySpace")
sm_metadata = new_object_store.get_identifiable("https://admin-shell.io/SynErgie/EnergyFlexibilityDataModel/sm/metadata")
sm_flexibleLoadMeasuresPackage = new_object_store.get_identifiable("https://admin-shell.io/SynErgie/EnergyFlexibilityDataModel/sm/flexibleLoadMeasuresPackage")
aas.submodel = {model.ModelReference.from_referable(sm_flexibilitySpace), model.ModelReference.from_referable(sm_metadata), model.ModelReference.from_referable(sm_flexibleLoadMeasuresPackage)}
object_store = model.DictObjectStore([aas,sm_flexibilitySpace,sm_metadata,sm_flexibleLoadMeasuresPackage])
with aasx.AASXWriter("EFDM_test.aasx") as writer:
writer.write_aas(aas_ids=['https://example.com/ids/sm/1271_1202_2042_8543'],
object_store=object_store,
file_store=new_file_store)
`

You have to change the type of the references to ConceptDescription as well.
This issue is the same as #234.


Lua error while opening with window picker.

Hi, I've been getting this error since a few days ago (might be due to a recent lazyvim update; not completely sure):

Here's my full nvim setup: https://github.com/ruiiiijiiiiang/dotfiles/tree/master/nvim/.config/nvim
Environment:
distro: arch linux
kernel: 6.12.1-arch1-1
terminal: wezterm 20240203-110809-5046fc22
neovim: v0.10.2

Doesn't show the error completely. You have to copy it and paste as text

@s1n7ax Here's the full error:
E5108: Error executing lua: ...ker/lua/window-picker/hints/floating-big-letter-hint.lua:130: attempt to index local 'char' (a nil value)
stack traceback:
	...ker/lua/window-picker/hints/floating-big-letter-hint.lua:130: in function 'draw'
	...indow-picker/lua/window-picker/pickers/window-picker.lua:63: in function 'pick_window'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:854: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:731: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:870: in function 'open_with_window_picker'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:209: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:208>

I'm experiencing a similar issue but use the status line hints rather than big letter hints.
 E5108: Error executing lua: ...vim/lazy/nvim-window-picker/lua/window-picker/config.lua:21: attempt to concatenate local 'char' (a nil value)
stack traceback:
	...vim/lazy/nvim-window-picker/lua/window-picker/config.lua:21: in function 'selection_display'
	...icker/lua/window-picker/hints/statusline-winbar-hint.lua:79: in function 'draw'
	...indow-picker/lua/window-picker/pickers/window-picker.lua:63: in function 'pick_window'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:854: in function 'open_file'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:731: in function 'open'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:755: in function 'open_with_cmd'
	...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:870: in function 'open_with_window_picker'
	...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:209: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:208>

Same error here, and I am also use LazyVim

@fang2hou thank you for the suggestion, however this did not work for me. Do you know if there is any way I can see a list of filetypes used by my windows?

@ruiiiijiiiiang
you can use the following command to print out the all buftypes and filetypes
:lua for _, buf in ipairs(vim.api.nvim_list_bufs()) do print("name:", vim.api.nvim_buf_get_name(buf), "buftype:", vim.api.nvim_get_option_value("buftype", { buf = buf }), "filetype: ", vim.api.nvim_get_option_value("filetype", { buf = buf })) end

@fang2hou Thank you so much! It's working now.


[MyIP] add local Ip

Description
I made a mistake, so I'll PR it again. 😂
[myip] I updated the extension.

Added local-ip list items.
Updated the raycast api version.

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed in the metadata folder

Hi @pernielsentikaer
I revised what you said.
However, the result of public ip is slow.
Therefore, I added loading text by informing the user rather than displaying the public ip first. I think this would be better.

Hi @kkange
Thanks for the update and I think it looks good now 😄
I reviewed the metadata images again, somehow, the padding is not right - could you double check it according screenshot guidelines (150 top/bottom - 250 sides)
Request a new review when you are ready, feel free to contact me here or at Slack if you have any questions.


Proposal for es6 workflow

Simple es6 workflow proposal

Authored files are in es6 folder.
npm run-script to5 compiles es6-files into the root of the project.
npm test first transpiles es6 files.

I implemented add.es6 as a sample.
Checkout babeljs.io for more infos on babel (former 6to5).
refs #42

I do sense ES6 becoming more mainstream day by day and I am very excited about it. However, I've decided to hold on this for now. I think it's important for modules to follow mainstream development patterns to reduce barriers to contribution. I realize that ES6 will soon become the standard, but I don't feel it is there quite yet. Specifically, I hesitate to use ES6 for module development while it remains behind a flag in node. If I were creating an application I would be completely willing to give ES6 a spin, just not for a module.

Thanks for taking the time to show me the workflow. I am definitely excited to use this on my next side-project.


The published mesh2d examples do not work.

It didn't work with the current examples code, so I modified it in my own way.
This is the code that is published now.
https://github.com/bevyengine/bevy/blob/main/examples/2d/mesh2d.rs
use bevy::{prelude::*, sprite::MaterialMesh2dBundle};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_startup_system(setup)
        .run();
}

fn setup(
    mut commands: Commands,
    mut meshes: ResMut<Assets<Mesh>>,
    mut materials: ResMut<Assets<ColorMaterial>>,
) {
    commands.spawn(Camera2dBundle::default());
    commands.spawn(MaterialMesh2dBundle {
        mesh: meshes.add(Mesh::from(shape::Quad::default())).into(),
        transform: Transform::default().with_scale(Vec3::splat(128.)),          // An error occurs here.
        material: materials.add(ColorMaterial::from(Color::PURPLE)),
        ..default()
    });
}

The version of bevy has been upgraded, so there may have been some changes.
So I have made this code work.
[dependencies]
bevy = "0.9.0"

use bevy::{
    prelude::*,
    sprite::MaterialMesh2dBundle
};

fn setup(
    mut commands: Commands,
    mut meshes: ResMut<Assets<Mesh>>,
    mut materials: ResMut<Assets<ColorMaterial>>
) {
    commands.spawn(Camera2dBundle::default());
    commands.spawn(MaterialMesh2dBundle {
        mesh: meshes.add(Mesh::from(shape::Quad::default())).into(),
        transform: Transform { translation: (default()), rotation: (default()), scale: (Vec3::splat(128.)) },    // Modified
        material: materials.add(ColorMaterial::from(Color::PURPLE)),
        ..default()
    });
}

fn main() {
    App::new()
    .add_plugins(DefaultPlugins)
    .add_startup_system(setup)
    .run();
}

I have a short programming history. I got this code to work but I don't know if it is the right code. Please let me know if there is a more beautiful solution.
I do not know how to contribute to the OSS.
A beginner like me would be glad to have a full set of examples.I wanted to contribute to bevy, so I created the issues.
Thanks for the great project!!

Could you please show the error you are seeing?
The code in your first code block runs without error for me both in bevy 0.9 and with bevy's main branch.
Examples in the main branch are always up-to-date with code changes in the main branch. This means that they may not work with the latest released version of bevy if breaking changes have been introduced.
You can see examples that work with the latest release by looking at the latest tag on github.
https://github.com/bevyengine/bevy/blob/latest/examples/2d/mesh2d.rs

@alice-i-cecile Thanks for showing us around. I have never PR'd before, so I will check the URL address you gave me. If I need to do a PR, I will try to implement it.
@rparrett Thanks for confirming the EXAMPLES. Also, thanks for taking a look at this issue. The error is this image.

Then I realized my error. I had made a mistake in writing the Sorry for my elementary mistake.
The Transform::default() part was written as Transform.default().
I write all the code myself for the RUST study. This has resulted in a description error.
This issue is closed.


update from Development

Hello @amoh-godwin! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file rename.py:

Line 21:1: W391 blank line at end of file


[IMPROVEMENT] Breadcrumbs -  progress bar variation consistancy update

Description

The new breadcrumbs are based on the Progress Bar variation. In that variation there's an issue when one option exists vs when multiple options exists as there's a visual difference. Now it needs to looks the same regardless of the number of options
Design

Fullscreen
Fullscreen with header actions

Additional Information

We may reevaluate this ticket due to clarified design directions and needs for this component. Marking with Pre-close tag.


Testing that an OptionsMenu item is disabled

From<EMAIL_ADDRESS>on January 30, 2012 11:52:18
As far as I can tell, there is presently no way to determine if an OptionsMenu item is enabled or disabled.  I thought I'd as a workaround try to use clickOnMenuItem to ensure that the application ignored the "press" of a disabled button, but the test fails when the item is (correctly) disabled.
junit.framework.AssertionFailedError: The text: Disabled Button is not found!
at com.jayway.android.robotium.solo.Clicker.clickOnText(Clicker.java:279)
at com.jayway.android.robotium.solo.Clicker.clickOnMenuItem(Clicker.java:200)
...
If you have any workaround ideas, I'm open to them.  Otherwise, please add this feature when you can.  Thanks so much!
Original issue: http://code.google.com/p/robotium/issues/detail?id=220

From<EMAIL_ADDRESS>on January 30, 2012 12:09:34
I tried to work around this way, but it failed.  I suspect the sendKey failed because I'm using an emulator with a disabled keyboard.
solo.sendKey(KeyEvent.KEYCODE_MENU)
assertFalse(solo.searchText("Disabled Button"))
solo.goBack()
Instead I used this technique, which only verifies that the item was disabled because if I called goBack when the item was enabled, it would end up leaving the Activity:
solo.pressMenuItem(0)
solo.goBack()

From<EMAIL_ADDRESS>on January 31, 2012 00:56:41
What if you use solo.getButton("disabled button).isEnabled()?

From<EMAIL_ADDRESS>on January 31, 2012 06:15:33
Remember I'm talking about an OptionsMenu item, not a Button.  Trying your suggestion resulted in the following error:
junit.framework.AssertionFailedError: No Button with text Disabled Item is found!
at com.jayway.android.robotium.solo.Getter.getView(Getter.java:71)
at com.jayway.android.robotium.solo.Solo.getButton(Solo.java:1377)
I tried both:
solo.pressMenuItem(0) // to ensure the menu was activated
assertFalse(solo.getButton("Disabled Item").isEnabled())
solo.goBack()
and just:
assertFalse(solo.getButton("Disabled Item").isEnabled())
Both versions produced the error.

From<EMAIL_ADDRESS>on January 31, 2012 06:43:03
Sorry about that. I mean solo.getText("disabled item").isEnabled()
Please try that and tell me how it goes.

From<EMAIL_ADDRESS>on January 31, 2012 06:57:13
The below code:
solo.pressMenuItem(0) // to ensure the menu was activated
assertFalse(solo.getText("Disabled Item").isEnabled())
solo.goBack()
resulted in the following error:
junit.framework.AssertionFailedError: No TextView with text Disabled Item is found!
at com.jayway.android.robotium.solo.Getter.getView(Getter.java:71)
at com.jayway.android.robotium.solo.Solo.getText(Solo.java:1352)
Eliminating the solo.pressMenuItem(0) also produces the same error.

From<EMAIL_ADDRESS>on January 31, 2012 07:06:47
And you can see that exact text view in the menu (disabled but still there)? And the menu is indeed open when getText is executed?

From<EMAIL_ADDRESS>on January 31, 2012 07:11:57
Yes, the text view is there in the menu, and in the case where I call solo.pressMenuItem(0), the menu is showing.  The pressMenuItem call has the effect of showing and keeping open the options menu because item 0 is the disabled one, so the menu does not disappear.  Hence the need for the solo.goBack().
Please also note that this is the initial options menu with icons that's showing, not the extended one you get that is just text when you click the "more" options menu item.

From<EMAIL_ADDRESS>on January 31, 2012 07:12:37
Incidentally, do you have a test case that shows that this use case is covered?

From<EMAIL_ADDRESS>on January 31, 2012 07:45:06
Ok. 2 more things:

What happens if you do solo.getText(0).isEnabled()?

Does searchText() find it (return true)?

From<EMAIL_ADDRESS>on January 31, 2012 09:04:08
Both worked.  I needed to add a solo.waitForText("Disabled Item") between the solo.pressMenuItem(0) and the solo.searchText()/getText(0) because getText(String or int) times out before the menu is shown.
So the following works:
solo.pressMenuItem(0)
assertTrue(solo.waitForText("Disabled item"))
assertFalse(solo.getText(0).isEnabled())
solo.goBack()
By the way, I second the request in Issue 77 to be able to globally configure timeout values for getText etc., as I seem to encounter similar issues sporadically.
I would be prefer if there were a solo.getMenuItem(String) and solo.getMenuItem(int) that would do all of this for you.  It would open the menu, get the item view, then close the menu.

From<EMAIL_ADDRESS>on January 31, 2012 11:19:57
If you remove waitForText() does it fail even though you see that the menu is opened and items are shown? There is a 10 second timeout for getText().

From<EMAIL_ADDRESS>on January 31, 2012 11:55:37
You know--I'm not sure what's going on.  Even the code below that I previously wrote works, is actually intermittent.  Same for the waitForText().  My application code is definitely functioning correctly, but the test code is not.  I'm using robotium 3.1.
solo.pressMenuItem(0)
assertTrue(solo.waitForText("Disabled item"))
assertFalse(solo.getText(0).isEnabled())
solo.goBack()

From<EMAIL_ADDRESS>on January 31, 2012 11:57:12
Incidentally, there are other searchText() calls in my suite that I'm seeing fail intermittently.

From<EMAIL_ADDRESS>on January 31, 2012 11:59:10
Would it be possible for you to send me your application and test project? Because this is an issue that Im very eager to analyze closer.

From<EMAIL_ADDRESS>on January 31, 2012 12:08:38
I appreciate that very much, but I'm really not comfortable sharing it.  Besides it's large and has lots of external dependencies and would be quite a pain to configure.  Do you have a test in the robotium test suite that addresses hidden menu items?  I could show you how to hide menu items if you don't already have such a test.

From<EMAIL_ADDRESS>on January 31, 2012 12:53:19
The issue is not with it being disabled. That does not matter when it comes to getText(), it will not filter any views based on if they are enabled or not. The issue is however that getText() and searchText() (sometimes) do not get access to the right views. This is the issue that I want to analyze.

From<EMAIL_ADDRESS>on January 31, 2012 13:42:07
Status: Accepted
Owner<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on April 10, 2012 11:45:28
Status: WontFix

From<EMAIL_ADDRESS>on June 12, 2013 05:56:32
I suspect that what was happening here is that OP's UI element may not have directly inherited from a View.
For instance, I'm testing a Preference inside of a PreferenceScreen, which may take a second or so to become enabled on older devices (e.g., Android 2.2). Preference does not inherit directly from View (see Android docs), so some additional steps are required to get a handle on the view (getRootAdapter).


Make edpm_neutron_sriov role compliant with ansible-lint production profile

Capitalized first letter of the task names
Fixed spacing issues
Changed yes to true
Fixed indentation
Changed mode parameter to be a string

/approve

recheck
Retry_limit


Authenticate vault using service account

/kind feature
I checked through the code and did not fine a line about it.
It would be nice to add that method as it is pretty simple.
Read service token -> send to vault -> get vault token.

cc @vdesjardins - a few people have mentioned this.
This would fall under the guise of 'ambient credentials' (as described here: http://docs.cert-manager.io/en/latest/reference/issuers.html#ambient-credentials).
/kind feature

Few more words.
Currently approle is used to authenticate with vault, which was best method before authentication with kubernetes service account was introduced.
Now, it is much more preferable to use service account as it simpler and provides seamless integration into cluster using k8s configuration verbs.

/assign

https://github.com/jetstack/cert-manager/issues/647


loadMemoryFromFile() should place readmemh() inline for better compatibility

loadMemoryFromFile() creates a separate file and uses a SV bind statement. A simple example:
import chisel3._
import chisel3.util.experimental.loadMemoryFromFile

class Foo(val bits: Int, val size: Int, filename: String) extends Module {
  val io = IO(new Bundle {
    val nia = Input(UInt(bits.W))
    val insn = Output(UInt(32.W))
  })

  val memory = Mem(size, UInt(32.W))
  io.insn := memory(io.nia >> 2);
  loadMemoryFromFile(memory, filename)
}

object FooObj extends App {
  chisel3.Driver.execute(Array[String](), () => new Foo(32, 1024, "insns.hex"))
}

# cat Foo.Foo.memory.v
module BindsTo_0_Foo(
  input         clock,
  input         reset,
  input  [31:0] io_nia,
  output [31:0] io_insn
);

initial begin
  $readmemh("insns.hex", Foo.memory);
end
                      endmodule

bind Foo BindsTo_0_Foo BindsTo_0_Foo_Inst(.*);

Yosys doesn't like this, and likely there are other tools that don't either. Is there any reason we don't just place it inline?

Same here while trying to make a RAM module:
class SinglePortRAM(sizeKB: Int = 1, width: Int = 32, memoryFile: String = "") extends Module {
  val addrWidth = chiselTypeOf((sizeKB * 1024).U)
  val io = IO(new Bundle {
    val addr1 = Input(addrWidth)
    val dataIn1 = Input(UInt(width.W))
    val en1 = Input(Bool())
    val we1 = Input(Bool())
    val dataOut1 = Output(UInt(width.W))
  })
  println(s"Single-port Memory Parameters:")
  println(s"  Size: $sizeKB KB")
  println(s"  Width: $width bit")
  println(s"  Addr Width: " + io.addr1.getWidth + " bit")

  val mem = SyncReadMem(sizeKB * 1024, UInt(width.W))
  if (memoryFile.trim().nonEmpty) {
      loadMemoryFromFile(mem, memoryFile)
  }

  when (io.we1) {
    mem.write(io.addr1, io.dataIn1)
  }
  io.dataOut1 := mem.read(io.addr1, io.en1)
}

If memfile is provided, it gets written to a separate file that is not synthesizable.

We have a MemoryInitAnnotation now which will inline the contents into the generated Verilog.
This should be compatible with the memory inference pass in yosys.
For examples on how to use it, see:

with an array of BigInt: https://github.com/ekiwi/serv-chisel/blob/main/src/servant/WishBoneRam.scala#L46
with a single BigInt: https://github.com/ekiwi/serv-chisel/blob/main/src/serv/Ram.scala#L85

Would that work for you?

Hey Kevin, thanks for your response.
I understand I cannot pass the .hex file I have to be loaded at synthesis by using the annotation, right since it only supports BigInts?
What's the method do do that?

I understand I cannot pass the .hex file I have to be loaded at synthesis by using the annotation, right since it only supports BigInts?

Yeah, so the method that I suggested assumes that you have the data in Scala. You could of course try and write a function that opens a .hex file from Scala and returns the content as a list of BigInt.

What's the method do do that?

There is no separate file involved. You just provide the memory init content in your Chisel generator and the Verilog we produce will contain an initial block that normally works well with yosys. I prefer this way to having a separate file, but I can understand, that it might be a little annoying if you want to change your memory image without re-elaborating your Chisel.

As someone new to HDLs, I found these methods way more complex than just $readmemh(mem, "file") in Verilog...
I believe that it should have a somewhat similar syntax...

@carlosedp, could you try to see if the following would address your problem?
import chisel3.experimental.{ChiselAnnotation, annotate}
import firrtl.annotations.MemoryArrayInitAnnotation

import scala.io.Source

object loadMemoryFromFileInline {
  def apply(mem: MemBase[_], filename: String): Unit = {
    val radix = 16 // this could be made an argument
    val src = Source.fromFile(filename)
    val lines = src.getLines().toList
    src.close()
    val data = lines.map(_.trim).filter(_.nonEmpty).map(BigInt(_, radix))
    annotate(new ChiselAnnotation {
      override def toFirrtl = MemoryArrayInitAnnotation(mem.toTarget, data)
    })
  }
}

You should be able to  just replace loadMemoryFromFile with loadMemoryFromFileInline in the example that you posted above.
I know that this isn't 100% what you want, but it would be fairly straight forward to add this helper function from your code base and might be a good stop-gap measure until we come up with a more permanent solution.

Thanks @ekiwi ... just a heads-up is that since the memory gets initialized by directly setting the memory array in Verilog so a 1k Scala module with an 11k .hex became a 282k verilog...
-rw-r--r-- 1 cdepaula staff  11K Feb 19 18:41 hello_world.hex
-rw-r--r-- 1 cdepaula staff 282K Feb 19 18:55 SinglePortRAM.v
-rw-r--r-- 1 cdepaula staff 1.1K Feb 19 18:55 SinglePortRAM.fir
-rw-r--r-- 1 cdepaula staff 147K Feb 19 18:55 SinglePortRAM.anno.json
❯ ll src/main/scala/utils
total 12K
-rw-r--r-- 1 cdepaula staff 1.1K Feb 19 18:53 LoadMemory.scala
-rw-r--r-- 1 cdepaula staff  999 Feb 19 18:55 SingleportRAM.scala

just a heads-up is that since the memory gets initialized by directly setting the memory array in Verilog so a 1k Scala module with an 11k .hex became a 282k verilog...

Thanks for trying it out. I definitely didn't consider that this might blow up significantly in size (20x .. wow).

It's instantiated into a 16KB ram that would be pretty much empty.. but still quite a grow.
I still need to test it thru all synthesis... i'll let u know the results.

@antonblanchard check out XXX. I've added a new annotation allowing inline readmem in Verilog emiter.
Your sample code would become:
import chisel3._
import chisel3.experimental.{ChiselAnnotation, annotate}
import firrtl.annotations.{MemoryFileInlineAnnotation}

class Foo(val bits: Int, val size: Int, filename: String) extends Module {
  val io = IO(new Bundle {
    val nia = Input(UInt(bits.W))
    val insn = Output(UInt(32.W))
  })

  val memory = Mem(size, UInt(32.W))
  io.insn := memory(io.nia >> 2);
  annotate(new ChiselAnnotation {
    override def toFirrtl = MemoryFileInlineAnnotation(memory.toTarget, filename)
  })
}

object FooObj extends App {
  chisel3.Driver.execute(Array[String](), () => new Foo(32, 1024, "insns.hex"))
}

It would allow also configuration for binary files instead of hex, like:
import firrtl.annotations.{MemoryFileInlineAnnotation, MemoryLoadFileType}
...
  annotate(new ChiselAnnotation {
    override def toFirrtl = MemoryFileInlineAnnotation(memory.toTarget, "filename.bin", MemoryLoadFileType.Binary)
  })
...

Now there is also a method in chisel for this:
import chisel3.util.experimental.loadMemoryFromFileInline
...
  annotate(new ChiselAnnotation {
    override def toFirrtl =
      MemorySynthInit
  })

  val mem = SyncReadMem(1024, UInt(width.W))
  loadMemoryFromFileInline(mem, memoryFile)

I believe this could be closed now. Any objections?

There is still the question of whether we should move this API out of experimental and maybe make the inline version the default.

Ah yes, that would be great!

Any news on this? Should we move on and close or promote to non-experimental API?

Any news on this? Should we move on and close or promote to non-experimental API?

Would you mind making a PR that makes loadMemoryFromFile available in the standard chisel3._ package and changes the behavior to that of loadMemoryFromFileInline?

Sure, do I keep the previous behavior of loadMemoryFromFile (using external SV file) to another function?

Opened #2260 to address this.


Codespaces environment doesn't load the local JavaScript bundle

Problem
When working on Codespaces, the primer_viewcomponents.js bundle is not properly loaded as it always tries to fetch it from localhost:4000 which is not available.
This is also an issue when modifying the bin/rails port on the Procfile in local environments (which can useful sometimes).
See the code with this logic here.
Related to https://github.com/primer/view_components/issues/1042
Proposed solution
Modify that logic so it is dynamically set and supports Codespaces and, ideally, running processes on different ports.

Related to https://github.com/primer/view_components/issues/1042

I think I addressed this in: https://github.com/primer/view_components/pull/1248, https://github.com/primer/view_components/pull/1259 🚀


:error, :unauthorized exception

So I've noticed there is an error case not being handled in any of the Braintree modules which is the "unauthorized" case, which returns {:error, :unauthorized} this, throws an exception since there isn't a valid match for it in any of the existing case conditions.
Was wondering how you want to handle this before I submit a PR? Would you like a large PR with a simple match like this added to every request with an error message? If so what would you like the error message to say?
Or perhaps its fine to throw an exception? But maybe we could throw a nicer one, that describes the problem instead of being a CaseClauseError exception?

I'm leaning heavily toward raising an exception in this case. It isn't something that we'd ever want/expect end users to handle during runtime, as you would from a :not_found error. If the request(s) are unauthorized something is wrong with the configuration and that needs to be fixed.
Braintree.UnauthorizedError is the right approach IMO.

This is finally resolved with 46931d5!


Update DG

Add Documentation, logging, testing, configuration, dev-ops
Update User Stories
Update sequence diagram
There are some unrelated files changed, they shouldn't affect anything though.

Codecov Report

Merging #238 (24fb88f) into master (c28535a) will increase coverage by 0.16%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #238      +/-   ##
============================================
+ Coverage     71.51%   71.67%   +0.16%
  Complexity      603      603
============================================
  Files           104      104
  Lines          1773     1769       -4
  Branches        206      204       -2
============================================
  Hits           1268     1268
+ Misses          440      437       -3
+ Partials         65       64       -1

Impacted Files
Coverage Δ
Complexity Δ

.../seedu/address/logic/commands/AddEntryCommand.java
50.00% <ø> (+7.14%)
4.00 <0.00> (ø)

...seedu/address/logic/commands/EditEntryCommand.java
82.35% <ø> (+4.57%)
8.00 <0.00> (ø)

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 c28535a...24fb88f. Read the comment docs.


45 test for requirement 1

Implemented test class and for search history

For now, Requirement 1 will only be tested via logic in SearchHistory class, because testing GUI directly (especially GlobalSearchBar) is too complicated.


Is there a way to hook into the auth middleware

I am using the panel in a tenanted application. I need to prevent one tenant logging into another tenants panel. My theory is to add a tenant_id to the admins table. I just need to check that at the point of logging in. What is the recommended way of doing that?

Anyone? I'm just after a pointer of how to hook in to the panel login flow without forking the project.

why you are not using same table for admins and tenant ? if you want change how middleware work send pull request , thank you

That would only allow 1 admin per tenant. I guess the most flexible way would be to add a hook in the panel middleware to pull in a custom middleware if specified in a config file?

that is good idea , if you can do that would be great

OK, I will have a go at that. Won't be this week.

thank you


Upgrade our issue templates to use GitHub issue forms ✍

Introduction
GitHub has recently rolled out a public beta for their issue forms feature. This would allow you to create interactive issue templates and validate them 🤯.
Appwrite currently uses the older issue template format. Your task is to create GitHub issue forms for this repository. Please use Appwrite's issue templates as a reference for this PR.
Tasks summary:

[ ] Fork & clone this repository
[ ] Prepare bug report issue form in .github/ISSUE_TEMPLATE/bug.yaml
[ ] Prepare documentation issue form in .github/ISSUE_TEMPLATE/documentation.yaml
[ ] Prepare feature request issue form in .github/ISSUE_TEMPLATE/feature.yaml
[ ] Push changes to master and test issue forms on your fork
[ ] Submit pull request

If you need any help, reach out to us on our Discord server.
Are you ready to work on this issue? 🤔 Let us know, and we will assign it to you 😊
Happy Appwriting!

Kindly assign this to me

can i work on this issue?

@Meldiron Kindly assign this issue to me. I'll upgrade that.

@Obnoxious-coder All the best :Rocket

@vendz  We would love you to check out some of our other open issues and join us on Discord if you need help finding some.

@BRdhanani  We would love you to check out some of our other open issues and join us on Discord if you need help finding some.


Added Dutch cities and Dutch/Belgian Banks

For now I put the cities in a separate text file, should it be decided to separate them by country in the future.
Edit: Also added a whole bunch of artists from UMG.

@mrcageman Thanks a lot for your contribution 💯  Your lists will be available on Lists next week. Realy appreciate it man!
PS: have you seen the new site?

Has this been published yet?