CharacterDirectionOfLocale doesn't take script and region subtags into account

CharacterDirectionOfLocale as currently written gives the impression that script and region subtags can be ignored and instead there should only be a lookup for characterOrder from UTS 35 layout elements.
This can lead to wrong results, for example:

Locale is "az-Arab":

There is no explicit locale for "az-Arab" in https://github.com/unicode-org/cldr/blob/main/common/main/, so the lookup for characterOrder defaults to its parent locale "az".
"az" has no explicit characterOrder definition, so it defaults to its parent locale, the root locale.
The root locale definition for characterOrder is "left-to-right".
But the expected result is "right-to-left", because the script is Arabic.

Locale is "az-IR":

Similar to "az-Arab", there's also no explicit "az-IR" locale in https://github.com/unicode-org/cldr/blob/main/common/main/.
But adding likely subtags to "az-IR" gives the locale "az-Arab-IR".
That means the expected result is again "right-to-left".

cc @jfkthame and @zbraniecki

The algorithm currently states:
"If the default general ordering of characters (characterOrder) within a line in locale is right-to-left, return "rtl"."
There are no text which imply a particular locale fallback mechanism here. Conceputally, the characterOrder of  az-Arab  or az-IR is simply "right-to-left" because that is the "default general ordering of characters (characterOrder) "


Class constants visibility

Looks like class constants visibility (added in PHP 7.1) are not converted (ie. removed).
This is invalid in PHP <7.1
class Foo
{
    protected const FOO = 'foo';
    public const BAR = 'bar';
    private const BAZ = 'baz';
}

Or maybe this is out of the scope of this project (because it is 7.1 feature)?

This package only works for PHP 7.0 code. I've updated the readme to make this clear. However, I'd accept fully tested PR that fixes your reported issue.

For reference, this was fixed in https://github.com/spatie/7to5/pull/37


Blog 1 - Ortelius Contributor Content

We need to add content for the " Ortelius contributor content" blog category.  Please create your blog in Google docs under the /blog directory.  https://ortelius.io/category/ortelius-contributors/

Any subject around CD Trends, K8s, microservices, service mesh you feel passionate about.


Partial Error

I have an issue in the latest release of Fabricator that I have not seen before. When I delete the paragraph.html partial under components or the form.html partial under structures I get the error displayed below (please note when it's paragraph missing the error reads The partial paragraph could not be found). Any ideas?
Error: The partial form could not be found
at Object.invokePartial (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/handlebars/dist/cjs/handlebars/runtime.js:216:11)
at Object.invokePartialWrapper [as invokePartial] (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/handlebars/dist/cjs/handlebars/runtime.js:61:39)
at Object.eval (eval at createFunctionContext (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:221:23), :16:23)
at ret (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/handlebars/dist/cjs/handlebars/runtime.js:159:30)
at ret (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:488:21)
at /Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/fabricator-assemble/index.js:638:30
at Array.forEach (native)
at assemble (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/fabricator-assemble/index.js:606:8)
at module.exports (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/fabricator-assemble/index.js:663:3)
at Gulp. (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/gulpfile.js:167:2)
at module.exports (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/orchestrator/index.js:134:8)
at Gulp. (/Users/jherrington/Desktop/dev/hdr-dwre-website/style-guide/node_modules/gulp/index.js:36:18)
at Gaze.

For those that come behind you... was it orphaned {{> paragraph}} in some view/partial ?

Yeah so in the page.html file there was an include for the paragraph and form partial. This leads me to ask is it the best idea to be calling those within the view


2012R2 Onboarding Issue

On a 2012R2 Server, Installation works great but the onboarding failed with error 15.
https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/troubleshoot-onboarding?view=o365-worldwide
Sense didn´t start.
Waited shortly and reran it. In the meantime kb2267602 was installed.
Sense started working.
Maybe it took longer and you should implement a timeout before running the onboarding?
After Reboot these Updates were available via WSUS

C:\Windows\TEMP\fc12dd90-c33e-4d2e-8376-8eac2ce85853.log /quiet FORCEPASSIVEMODE=1" run for 00:02:05.7346912 [SERVERNAME:03 22.07.20T08:20:39.310 Install.ps1:934] install successful.
[SERVERNAME:03 22.07.20T08:20:39.311 Install.ps1:940] Invoking onboarding script .\WindowsDefenderATPOnboardingScript.CMD
[SERVERNAME:03 22.07.20T08:20:39.317 Install.ps1:948] Running C:\Windows\system32\cmd.exe /c .\WindowsDefenderATPOnboardingScript.CMD in C:\temp\DefenderOnboarding\2012R2and2016\mdefordownlevelserver-main ...
[SERVERNAME:03 22.07.20T08:21:33.446 Install.ps1:948] Command "cmd.exe /c .\WindowsDefenderATPOnboardingScript.CMD" failed with error 0xf after 00:00:53.1039919
[SERVERNAME:03 22.07.20T08:21:33.467 Install.ps1:952] **WARNING: Onboarding script returned 15** [SERVERNAME:03 22.07.20T08:21:33.473 Install.ps1:959] Closing handle 5268
[SERVERNAME:03 22.07.20T08:21:33.595 Install.ps1:966] Tracing session 'install-SERVERNAME-6.3.9600.20475' stopped.
[SERVERNAME:03 22.07.20T08:21:33.610 Install.ps1:970] ETL file: 'C:\temp\DefenderOnboarding\2012R2and2016\mdefordownlevelserver-main\install-SERVERNAME-6.3.9600.20475.etl'.
[SERVERNAME:03 22.07.20T08:21:33.614 Install.ps1:975] Msi log: 'C:\temp\DefenderOnboarding\2012R2and2016\mdefordownlevelserver-main\install-SERVERNAME-6.3.9600.20475.log'

Thanks for the feedback. KB2267602 (security intelligence update) should have no impact on Sense - please try the latest MSI package downloaded from the onboarding section of the portal - this contains 4.18.2205.7 antimalware platform.
Onboarding is expected to work without a timeout, but that said, your system may have been under heavy load preventing first service start from completing in a timely fashion after applying the onboarding information. A subsequent service start should still work. Without more information we can only speculate however!


[Still thoroughly unmergeable] Adopt conditional conformance for Indices, Slice, ReversedCollection

My version of https://github.com/apple/swift/pull/12913 that includes various compiler and standard library hacks/fixes/workarounds to make progress on rolling out conditional conformances in the library.

Current status: the standard library type-check, but crash with an assertion in IRGen.

https://bugs.swift.org/browse/SR-6478

With these new commits, we're now able to build the standard library, all of the overlays, etc. The standard library binary dylib is 709kb smaller on macOS (~6%) than before. Associated type inference is still broken, and there are a whole bunch of test suite failures, but it's a start!

Note that https://github.com/apple/swift/pull/13089 covers the remaining compiler fixes needed to get everything building. Associated type inference will be tackled separately.

@swift-ci please smoke test

We'll work from the original pull request.

@DougGregor you mean my original PR? I have some more changes, should I go back to that one and continue making them?


Gurzeh 4553

Short Description:
As current_level_xp is not available in API, we put hard coded values in matrix xp_per_level and referred to it to calculate accurate stats.
Details
at any level, level_stats should show (like the app):
XP earned at the current level / XP to pass next level
in fact, level_apps shows (XP previous level + XP earned at the current level) / (XP previous level + XP to pass next level)
Ex: Level 16 is 20.000 and level 17 also, so when it starts, it shows 50% where it should show 0%
Level 16 (20,095 / 40,000, 50%)
Issues references
Fixes #4553

It seems the tests/update_live_stats_test must be updated as well.

@Gurzeh Are you going to take care of updating the test as well?
Also the xp_per_level data should probably live in the data folder rather than the function so that if any other workers require access to it, they can.  I agree it may not update very often, but it is global data that should be able to be used by others (good coding practice)

@k4n30 yes for updating the test, and ok for moving the list outside code.

@k4n30 not that familiar with GitHub... But I think the new commits are incorporated. Do you confirm?

@k4n30 @Gurzeh  This is good for now. Time to merge.

Looks good to me :) added second review tag for devs to review and merge if all good


Ability to add note to save slot

I would love to see a way to add a custom name or small note to the slot upon save, similar to Sierra's "Quest" games.

Oddly sometimes I see details in the second section but mostly I see only load or Delete

Are you talking about the user being able to do that or the developer?
Either way, you can do that by creating a Config.saves.onSave function and set the "title" property on the "save" object, which will set the title of the save.  For a simple example, you could put this in your JavaScript section:
Config.saves.onSave = function (save) {
	save.title = prompt("Enter Save Slot Title:");
};

and that would prompt the user to give the save slot a custom title.
Hope that helps!  :smiley:

@HiEv Sorry, should have clarified that. I'd want it to be an end-user function, thought being able to set that as a developer is nice too.
Much appreciated for the function idea. I'll definitely utilize that in my current project. 😃
While it's possible to create a function to do this in individual projects, I personally think it would do well as a default feature, or at least something toggleable like a dedicated config api option.

@rambdev - Perhaps you didn't notice my edit, but the code there now will let the end-user set the title of the save slot.
Try it out.  :smiley:

@HiEv Ah, I didn't see that. The original code was allowing end-user usage as well as far as I can tell, but I'll give that a try too. Thanks!

Closed in favor of the v3 issue: https://github.com/tmedwards/sugarcube-3-prealpha/issues/1
NOTE: The v3 repository is not yet public, so the above link probably will not work for you until it is.


Overview mode: not showing header

Testing HA 0110.0b3
In overview mode Lovalace is showing 1. a blanc header and 2. at bottom instead of at top .
Unable to select f.i. Configuration UI or a sub view. See below photo is bottom part of window.
In HA 0.109 no problem.

Logged Error message:
2020-05-16 16:57:16 ERROR (MainThread) [frontend.js.latest.202005150] http://ip.addr.ess :8123/hacsfiles/custom-header/custom-header.js:1:16344 TypeError: null is not an object (evaluating 'o[e].querySelector("paper-icon-button").style')

additional info.
A copy/paste of your Custom Header config
no access to configuration UI
Any errors relevant to Custom Header found in the HA logs
see bug.
Any relevant errors found in your browsers dev console (usually found by hitting F12)

The version of Home Assistant and Custom Header you are using
1.3.8.
The browser type your are using
Safari latest version

Are you running the Home Assistant 0.110 beta? That error looks the same as this issue which is due to a change in the way 0.110 handles icons.

@gadgetchnnel
Beta?
Yes all the three 0.110.0beta versions sofar give the same problem.
reported issue?
For me difficult to answer.
At least the number of the last reported error is the same: 16344.
If you think it is the same error, I will close the issue.

duplicate of #179


Make the 404 and 500 error pages less scary for users

Displaying the server error to users is scary, make 500 and 404 pages more user friendly.

@snez I like the idea for production, can you set up some conditional based on a flag set in config/express.js about the environment. That way, development environment will produce errors and be more helpful.

@snez once you make the conditional environment change, we will review it and merge it in if it's all good.

@snez are you going to reopen this in a new PR or...?


DSMapStudio Crash on startup

I tried both v1.05, and v1.06. Any help is appreciated

Have you installed the exact requirements listed in https://github.com/soulsmods/DSMapStudio#system-requirements, Including the one that says "INSTALL THIS IF THE PROGRAM CRASHES ON STARTUP"?

I just uninstalled Visual C++, and reinstalled it.. the crashing is still happening.

Probably restart your computer too, just in case.
If you installed all the requirements (and have a Vulkan compatible GPU) and it still doesn't work after restarting, can you check if DSMapStudio 1.03.1 works?

Just restarted, the same problem is happening.
My GPU is 3060 ti. Last time I used the program was on my 980 ti

Can you check if DSMapStudio 1.03.1 works?

It works fine

DSMapStudio 1.03.1 works but the others don't... any ideas?

Can you see if installing https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.12-windows-x64-installer works?

And if that doesn't work, can you try editing "C:\Users\x\AppData\Local\DSMapStudio\DSMapStudio_Config.json" and changing "EnableSoapstone" to False?

I did an hour ago, and I just (repaired) the installation again.. nothing worked.

You tried EnableSoapstone false, correct?

I tried, it still crashes..

Dang. Can you check windows event viewer to see what pops up when the program fails to launch?

I got the same problem, and went through most of the process you mentioned (DSMapStudio didn't generate DSMapStudio_Config.json for me), but it still crashes on start up - no windows pop up, the application shows up in Task Manager for a little while, then disappears. I'm using a laptop with 1660ti, 16GB RAM.
Here's the info from the event viewer, there're two errors:
The first one is .Net Runtime, it's ID is 1026:
Application: DSMapStudio.exe
CoreCLR Version: 6.0.1222.56807
.NET Version: 6.0.12
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'System.Windows.Forms, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.Windows.Forms, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at StudioCore.CFG.LoadConfig()
at StudioCore.CFG.AttemptLoadOrDefault() in D:\a\DSMapStudio\DSMapStudio\StudioCore\CFG.cs:line 142
at StudioCore.MapStudioNew..ctor() in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 87
at DSMapStudio.Program.Main(String[] args)
The second one (which happens after the first one) is Application Error, it's ID is 1000 (I don't use a English system so sorry for the inconvenience, I will try to translate them in parentheses):
错误应用程序名称 (Faulting application name): DSMapStudio.exe，版本 (Version): <IP_ADDRESS>，时间戳 (Timestamp): 0x6377dc84
错误模块名称 (Faulting module name): KERNELBASE.dll，版本 (Version): 10.0.19041.2364，时间戳 (Timestamp): 0x5b7d4d22
异常代码 (Exception code): 0xe0434352
错误偏移量 (Error Offset): 0x000000000002cd29
错误进程 ID (Faulting process ID): 0x2230
错误应用程序启动时间 (Faulting application startup time): 0x01d9230d78597030
错误应用程序路径 (Faulting Application Path): D:\mods\EldenRing\MODDING\DSMapStudio-1.06\DSMapStudio.exe
错误模块路径 (Faulting module path): C:\WINDOWS\System32\KERNELBASE.dll
报告 ID (Report ID): 781ee4e4-03fa-49aa-8cad-0c3c7e6d6f80
错误程序包全名 (Faulting package full name):
错误程序包相对应用程序 ID (Application ID relative to the faulty package):
Hope you find this helpful, and thank you for your great work!

Here's my error code from the event viewer:
Details:
Application: DSMapStudio.exe CoreCLR Version: 6.0.1222.56807 .NET Version: 6.0.12 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException: Could not find file 'D:\Program Files (x86)\Steam\steamapps\common\ELDEN RING\Game\oo2core_6_win64.dll'. File name: 'D:\Program Files (x86)\Steam\steamapps\common\ELDEN RING\Game\oo2core_6_win64.dll' at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at StudioCore.MapStudioNew.AttemptLoadProject(ProjectSettings settings, String filename, Boolean updateRecents, NewProjectOptions options) in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 501 at StudioCore.MapStudioNew..ctor() in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 160 at DSMapStudio.Program.Main(String[] args)
OK. So I copied the DLL file into the game Directory (because the program couldn't find it) and got another error:
`
DSMapStudio Unhandled Error - 1.06
DSMapStudio has run into an issue.
Crash log has been generated at "D:\Program Files (x86)\DS Tools\DSMapStudio-1.06\Crash Logs\Log 2023-1-08--08-22-03.txt".
Crash Log:
DSMapStudio Version 1.06
One or more errors occurred. (Could not find param file. Functionality will be limited.)

Could not find param file. Functionality will be limited.
at StudioCore.ParamEditor.ParamBank.LoadParamsER(Boolean partial) in D:\a\DSMapStudio\DSMapStudio\StudioCore\ParamEditor\ParamBank.cs:line 627
at StudioCore.ParamEditor.ParamBank.<>c__DisplayClass59_0.b__0() in D:\a\DSMapStudio\DSMapStudio\StudioCore\ParamEditor\ParamBank.cs:line 732
Log 2023-1-08--08-22-03.txt
at StudioCore.Editor.TaskManager.<>c__DisplayClass4_0.b__0() in D:\a\DSMapStudio\DSMapStudio\StudioCore\Editor\TaskManager.cs:line 56
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
OK
`
from the Event Viewer, this is the new errors that come up
Application: DSMapStudio.exe CoreCLR Version: 6.0.1222.56807 .NET Version: 6.0.12 Description: The process was terminated due to an unhandled exception. Exception Info: System.AggregateException: One or more errors occurred. (Could not find param file. Functionality will be limited.) ---> System.IO.FileNotFoundException: Could not find param file. Functionality will be limited. at StudioCore.ParamEditor.ParamBank.LoadParamsER(Boolean partial) in D:\a\DSMapStudio\DSMapStudio\StudioCore\ParamEditor\ParamBank.cs:line 627 at StudioCore.ParamEditor.ParamBank.<>c__DisplayClass59_0.<ReloadParams>b__0() in D:\a\DSMapStudio\DSMapStudio\StudioCore\ParamEditor\ParamBank.cs:line 732 at StudioCore.Editor.TaskManager.<>c__DisplayClass4_0.<AddTask>b__0() in D:\a\DSMapStudio\DSMapStudio\StudioCore\Editor\TaskManager.cs:line 56 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at StudioCore.Editor.TaskManager.ThrowTaskExceptions() in D:\a\DSMapStudio\DSMapStudio\StudioCore\Editor\TaskManager.cs:line 103 at StudioCore.MapStudioNew.Update(Single deltaseconds) in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 653 at StudioCore.MapStudioNew.Run() in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 331 at DSMapStudio.Program.Main(String[] args)
And this one:
DSMapStudio.exe     <IP_ADDRESS>     6377dc84     KERNELBASE.dll     10.0.19041.2364     5b7d4d22     e0434352<PHONE_NUMBER>02cd29     35a4     01d92318a3dde59d     D:\Program Files (x86)\DS Tools\DSMapStudio-1.06\DSMapStudio.exe     C:\WINDOWS\System32\KERNELBASE.dll     7e619759-2098-47f4-91da-bcf28d49d662

@Saltyfish-King
This seems to be a .NET Desktop Runtime issue, which you download at https://aka.ms/dotnet/6.0/windowsdesktop-runtime-win-x64.exe

@humam2104 Ok, this error seems to indicate your most recent loaded project's targeted game folder ("D:\Program Files (x86)\Steam\steamapps\common\ELDEN RING\Game") does not have the files it's supposed to, Elden Ring's game folder should already have oo2core_6_win64.dll, and the param file error would be caused by an identical issue. You may want to reinstall Elden Ring.
The REAL issue with this is crashing without warning (and permitting infinite on-load crash loops), those are things I need to look into.
If you want to fix it crashing on launch for now, you can delete your config file or project file. Let me know if deleting either of those works for you (they should).

I will. But you sould know that sid I placed the dll file in the Game\ directory and still got errors.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: King Bore haha @.>
Sent: Monday, January 9, 2023 12:40:17 AM
To: soulsmods/DSMapStudio @.>
Cc: Dr. Smoke @.>; Mention @.>
Subject: Re: [soulsmods/DSMapStudio] DSMapStudio Crash on startup (Issue #310)
@humam2104https://github.com/humam2104 Ok, this error seems to indicate your most recent loaded project's targeted game folder ("D:\Program Files (x86)\Steam\steamapps\common\ELDEN RING\Game") does not have the files it's supposed to, Elden Ring's game folder should already have oo2core_6_win64.dll, and the param file error would be caused by an identical issue. You may want to reinstall Elden Ring.
The REAL issue with this is crashing without warning (and permitting infinite on-load crash loops), those are things I need to look into.
If you want to fix it crashing on launch for now, you can delete your config file or project file. Let me know if deleting either of those works for you (they should).
—
Reply to this email directly, view it on GitHubhttps://github.com/soulsmods/DSMapStudio/issues/310#issuecomment-1374922501, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ7VDYORKZBJK2AFRH4EB6DWRMQ3DANCNFSM6AAAAAATNID6SI.
You are receiving this because you were mentioned.Message ID: @.***>

hey, i'm having issues with this as well. event is as listed:
Application: DSMapStudio.exe
CoreCLR Version: 6.0.1322.58009
.NET Version: 6.0.13
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException: No physical devices exist.
at Veldrid.Vk.VkGraphicsDevice.CreatePhysicalDevice() in D:\a\DSMapStudio\DSMapStudio\Veldrid\Vk\VkGraphicsDevice.cs:line 645
at Veldrid.Vk.VkGraphicsDevice..ctor(GraphicsDeviceOptions options, Nullable`1 scDesc, VulkanDeviceOptions vkOptions) in D:\a\DSMapStudio\DSMapStudio\Veldrid\Vk\VkGraphicsDevice.cs:line 127
at Veldrid.GraphicsDevice.CreateVulkan(GraphicsDeviceOptions options, SwapchainDescription swapchainDescription, VulkanDeviceOptions vkOptions) in D:\a\DSMapStudio\DSMapStudio\Veldrid\GraphicsDevice.cs:line 853
at Veldrid.StartupUtilities.VeldridStartup.CreateVulkanGraphicsDevice(GraphicsDeviceOptions options, Sdl2Window window, Boolean colorSrgb) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 189
at Veldrid.StartupUtilities.VeldridStartup.CreateVulkanGraphicsDevice(GraphicsDeviceOptions options, Sdl2Window window) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 173
at Veldrid.StartupUtilities.VeldridStartup.CreateGraphicsDevice(Sdl2Window window, GraphicsDeviceOptions options, GraphicsBackend preferredBackend) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 105
at Veldrid.StartupUtilities.VeldridStartup.CreateWindowAndGraphicsDevice(WindowCreateInfo windowCI, GraphicsDeviceOptions deviceOptions, GraphicsBackend preferredBackend, Sdl2Window& window, GraphicsDevice& gd) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 40
at StudioCore.MapStudioNew..ctor() in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 110
at DSMapStudio.Program.Main(String[] args)

hey, i'm having issues with this as well. event is as listed
thanks for the help, i'm fairly sure that the 3050 laptop GPU supports vulkan, as per their website
Application: DSMapStudio.exe CoreCLR Version: 6.0.1322.58009 .NET Version: 6.0.13 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: No physical devices exist. at Veldrid.Vk.VkGraphicsDevice.CreatePhysicalDevice() in D:\a\DSMapStudio\DSMapStudio\Veldrid\Vk\VkGraphicsDevice.cs:line 645 at Veldrid.Vk.VkGraphicsDevice..ctor(GraphicsDeviceOptions options, Nullable`1 scDesc, VulkanDeviceOptions vkOptions) in D:\a\DSMapStudio\DSMapStudio\Veldrid\Vk\VkGraphicsDevice.cs:line 127 at Veldrid.GraphicsDevice.CreateVulkan(GraphicsDeviceOptions options, SwapchainDescription swapchainDescription, VulkanDeviceOptions vkOptions) in D:\a\DSMapStudio\DSMapStudio\Veldrid\GraphicsDevice.cs:line 853 at Veldrid.StartupUtilities.VeldridStartup.CreateVulkanGraphicsDevice(GraphicsDeviceOptions options, Sdl2Window window, Boolean colorSrgb) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 189 at Veldrid.StartupUtilities.VeldridStartup.CreateVulkanGraphicsDevice(GraphicsDeviceOptions options, Sdl2Window window) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 173 at Veldrid.StartupUtilities.VeldridStartup.CreateGraphicsDevice(Sdl2Window window, GraphicsDeviceOptions options, GraphicsBackend preferredBackend) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 105 at Veldrid.StartupUtilities.VeldridStartup.CreateWindowAndGraphicsDevice(WindowCreateInfo windowCI, GraphicsDeviceOptions deviceOptions, GraphicsBackend preferredBackend, Sdl2Window& window, GraphicsDevice& gd) in D:\a\DSMapStudio\DSMapStudio\Veldrid.StartupUtilities\VeldridStartup.cs:line 40 at StudioCore.MapStudioNew..ctor() in D:\a\DSMapStudio\DSMapStudio\StudioCore\MapStudioNew.cs:line 110 at DSMapStudio.Program.Main(String[] args)

This is (another) an entirely different issue, which you can fix by disabling your onboard graphics in the device manager (DSMapStudio has trouble deciding which device is the best one to use).

Gonna close this now.
@humam2104, if reinstalling the game as I suggested didn't fix the issue, open another issue report.

I can confirm that by reinstalling the game.. the program worked. Thanks anyways


There should be an example for Azure DevOps too

All the document is focused on GitHub Actions. There should be an option to choose the code for Azure DevOps pipelines.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 544d5847-b3e1-70d6-14b6-733c5d85d649
Version Independent ID: 544d5847-b3e1-70d6-14b6-733c5d85d649
Content: Set up continuous integration for your WinUI 3 app - Windows apps
Content Source: hub/apps/package-and-deploy/ci-for-winui3.md
Product: reunion
Technology: deployment
GitHub Login: @stevewhims
Microsoft Alias: stwhi

Thanks, @jfranki! I don't have the info to hand about how to do these steps with Azure DevOps rather than GitHub Actions. But I've reached out internally for that info. If/when I receive it, I'll update the topic. Meanwhile closing this issue, since I'm tracking the request internally.
Thanks again!
-Steve


Unable to create struct from json string

I am trying to Deserialize a string to struct in rust. The below code is from json_serde documentation only.
use serde::{Deserialize, Serialize};
use serde_json::Result;

#[derive(Serialize, Deserialize)]
struct Person {
    name: String,
    age: u8,
    phones: Vec<String>,
}

fn main() {
    let data = r#"
        {
            "name": "John Doe",
            "age": 43,
            "phones": [
                "+44 1234567",
                "+44 2345678"
            ]
        }"#;

    // Parse the string of data into a Person object. This is exactly the
    // same function as the one that produced serde_json::Value above, but
    // now we are asking it for a Person as output.
    let p: Person = serde_json::from_str(data).expect("bal");

    // Do things just like with any other Rust data structure.
    println!("Please call {} at the number {}", p.name, p.phones[0]);

}

The above code snippet gives me error:
   Compiling test-json-rs v0.1.0 (/Users/asnimpansari/Desktop/Personal/test-json-rs)
error: cannot find derive macro `Serialize` in this scope
 --> src/main.rs:4:10
  |
4 | #[derive(Serialize, Deserialize)]
  |          ^^^^^^^^^

error: cannot find derive macro `Deserialize` in this scope
 --> src/main.rs:4:21
  |
4 | #[derive(Serialize, Deserialize)]
  |                     ^^^^^^^^^^^

warning: unused imports: `Deserialize`, `Serialize`
 --> src/main.rs:1:13
  |
1 | use serde::{Deserialize, Serialize};
  |             ^^^^^^^^^^^  ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `serde_json::Result`
 --> src/main.rs:2:5
  |
2 | use serde_json::Result;
  |     ^^^^^^^^^^^^^^^^^^

error[E0277]: the trait bound `Person: serde::de::Deserialize<'_>` is not satisfied
    --> src/main.rs:25:21
     |
25   |     let p: Person = serde_json::from_str(data).expect("bal");
     |                     ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `Person`
     |
    ::: /Users/asnimpansari/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.55/src/de.rs:2584:8
     |
2584 |     T: de::Deserialize<'a>,
     |        ------------------- required by this bound in `serde_json::de::from_str`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0277`.
error: could not compile `test-json-rs`.

To learn more, run the command again with --verbose.

My Cargo.toml file is
[package]
name = "test-json-rs"
version = "0.1.0"
authors = ["asnimansari<EMAIL_ADDRESS>edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde_json = "1.0.55"
serde = "1.0.100"

You need to enable the derive feature of serde, such that the proc-macros can be used. This change to the Cargo.toml should suffice.
-serde = "1.0.100"
+serde = { version = "1.0.100", features = [ "derive" ] }

Cool, Adding this features = ["derive"] fixed it.
Thanks


Debian 8, Logstash 2 support

Hi,
Will this module get Debian8 support and Logstash 2.0 support? and of course puppet 4.x
Update: it would appear file_concat is not a ressource available in 4.2.2.

I'm going to split these out to separate issues to track them better, I hope you don't mind.

Debian is supported and tested now.
Logstash 2.0 is tracked in #249 (and the new plugin system is now supported).
Let's track Puppet 4 support in #269.

Thanks.


Upgrade to Mule 4.6 and Java 17

MuleSoft has released the 4.6 runtime which is the first version to support Java 17.  We should validate against 4.6 using Java 17 and implement an approach for building and releasing a parallel version to support this.

Any updates or a projected timeline on this?

any idea when java17 will be supported ?

@holiday-sunrise - We have it as one of the top issues on our backlog right now.  We're hoping to have a release with support for Java 17 available in the next 2-3 weeks.

Is there a pre-release so we can help testing

Hey.  Is there a date for this Release supporting JDK 17?

Hi all, is there some update about the resolution of this issue?

Hi all, is the some update about this issue?

Hi does the new 2.3.0 version of this library supporting the JDK17 and Mule 4.6?

The release notes for 2.3.0 don't mention the support for jdk 17 neither runtime 4.6 support.
Also this version is not present in the mvn repo.

@diepet 2.3.0 does not support Java 17/Runtime 4.6 yet. @aticlo However, this version is available on Maven Central -
https://repo1.maven.org/maven2/com/avioconsulting/mule/mule-opentelemetry-module/2.3.0/
JDK17 support is in the queue to be upgraded very soon. Before we can upgrade this, we need to update and upgrade some dependencies and processes.

Hi , do you have a date for the Java 17 release?

@JYOTHI-SHRAVZ We are in the process of releasing 2.4.0 this week. The next is 2.5.0 with Java 17 support. The PR is already out there - #212. It should be sometime next week or sooner.
Meantime, if you would like to test the module with Java 17, you could follow these steps -

Clone this repo to your local
Switch to branch feat/java-17-support
Build and install the module in local maven repo ./mvnw clean install
Update dependency in a local project to 2.5.0-SNAPSHOT
Test with Java 17 and the appropriate Mule Runtime version

If you do that, we would appreciate any feedback you may have.

Release Java 17 support with 2.5.0.

Good morning. Isn't the version 2.5.0 and 2.5.1 going to be published to https://mvnrepository.com/artifact/com.avioconsulting/mule-opentelemetry-module ?


Request GET cluster/{id}/info to obtain cluster display name

Fixes https://issues.redhat.com/browse/CCXDEV-7302.
Makes the Cluster Details page request an additional GET /cluster/{id}/info endpoint that provides a display name for the given cluster. Even when the GET /cluster/{id}/reports fails because of no Insights rules, the page must be still able to render the display name (if available).

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


Visualisation difference when quantized and compressed

We are using meshoptimizer to compress and quantize gltf files. When using compress and quantize separately, everything works as expected. But if we combine those operations, there is visualization difference in generated gltf files when they are rotated. Attached are the gltf files before and after compression and quantization .Any thoughts? /
cube.zip

I'm a little bit confused by this because I can't directly reproduce this.
Specifically:

I can see the difference between cube_orig.gltf and cube.gltf in a viewer
However, when I process cube_orig.gltf with a recent build of gltfpack, the resulting model looks the same as cube_orig.gltf
cube.gltf from your .zip file has some odd parts, like a doublesided flag on the material even though it doesn't appear in the original file.

Can you verify whether the cube.gltf in your attachment was indeed produced from cube_orig.gltf, and note the exact command line you're using as well as which version of gltfpack this is (OS, whether it's npm or native binary, etc.)?

... oh, wait, cube.gltf isn't even produced by gltfpack? I see the necessary extensions, but the metadata is off (generator should be gltfpack):

{"version":"2.0","generator":"V<IP_ADDRESS>","extras":{"Author":"VI","InitialView":"UJhUVVU1QYTzP6qqqtKmxAXAVFVVla6x+j8AAACAeiL3vwAAAAA+UqwBCCxAGurvvz4sDHC9INoRCAA/CRAk6j+l80AqBSESQA==","CurrentView":"UPBPZDa5UWt11T/a6CCcfUsGwHFD/Wmt+wFAK2uS/4RN9r9AOgl0Rxinv6444MEOpPC/fHLd2Qki37+YDOoPU+XgP96oZ72iRuY/pfNAKgUhEkA="}

I'm going to close this because there's no extra information provided and it's likely to be a bug in user code assuming this is using custom C++ code that uses meshoptimizer library but doesn't use gltfpack.
I'd recommend double checking that the buffer with normals uses meshopt_encodeFilterOct with a reasonable number of bits (eg 8) to encode the floating point input data, and that normals that are fed to meshopt_encodeFilterOct are unit length.


Ignore empty commands in the REPL

Currently, when you type an empty command in the REPL, you get a very verbose output:
»

Enter an expression to evaluate, or a definition (like x = 1) to use later.

  - ctrl-v + ctrl-j makes a newline
  - :q quits
  - :help shows this text again

»

This is also true when you type a command consisting only of a comment, for example:
» # this is a great comment

Enter an expression to evaluate, or a definition (like x = 1) to use later.

  - ctrl-v + ctrl-j makes a newline
  - :q quits
  - :help shows this text again

»

I understand that this message tries to be friendly and helpful, but IMHO it's just adding unnecessary noise. After all, you already get this message upon startup:
  The rockin' roc repl
────────────────────────

Enter an expression, or :help, or :q to quit.

»

Granted, it doesn't include the part about ctrl-v + ctrl j, but if the user needs help, they can just type :help (plus, Shift-Enter would be a much better user experience than ctrl-v + ctrl j, but I'll file another issue for that).
In other REPLs it's very common to type Enter several times to give yourself a bit of visual space, or to type comments in the REPL (typically for educational purposes). Every shell I've tried happily ignores your empty commands and just skips to the next line. Since I'm in a REPL-testing mood today, I've tested Node, Julia, Haskell, Java, Bash, Zsh, sh, Ruby, Swift, Python and iPython. 100% of them ignore empty commands. For example, here's Python's shell:
>>>
>>>
>>> # comments are great
>>>

Most shells also ignore comments (as Python does), except Node (which prints undefined), Ruby (which prints => nil) and Zsh (which doesn't understand comments at all in interactive mode, so prints an error).
I'm happy to submit a PR if you want.

I'm happy to submit a PR if you want.

Sounds good!


Fit issue

Got this error when i am trying to fit the model

ValueError                                Traceback (most recent call last)
Cell In[27], line 2
1 #Model
----> 2 history = model.fit(
3             train_generator,
4             validation_data = validation_generator,
5             epochs = 20,
6             verbose = 1,
7             callbacks=[ ], #add here
8             )
File /opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70, in filter_traceback..error_handler(*args, **kwargs)
67     filtered_tb = _process_traceback_frames(e.traceback)
68     # To get the full stack trace, call:
69     # tf.debugging.disable_traceback_filtering()
---> 70     raise e.with_traceback(filtered_tb) from None
71 finally:
72     del filtered_tb
File /tmp/autograph_generated_fileo15m2msk.py:15, in outer_factory..inner_factory..tf__train_function(iterator)
13 try:
14     do_return = True
---> 15     retval = ag_.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope)
16 except:
17     do_return = False
File /tmp/autograph_generated_fileg1npkw3m.py:14, in outer_factory..inner_factory..tf__call(self, images)
12 patches = ag.converted_call(ag__.ld(tf).image.extract_patches, (), dict(images=ag__.ld(images), sizes=[1, ag__.ld(self).patch_size, ag__.ld(self).patch_size, 1], strides=[1, ag__.ld(self).patch_size, ag__.ld(self).patch_size, 1], rates=[1, 1, 1, 1], padding='VALID'), fscope)
13 patch_dims = ag__.ld(patches).shape[-1]
---> 14 patches = ag__.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope)
15 try:
16     do_return = True
ValueError: in user code:
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1284, in train_function  *
    return step_function(self, iterator)
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1268, in step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1249, in run_step  **
    outputs = model.train_step(data)
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1050, in train_step
    y_pred = self(x, training=True)
File "/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
File "/tmp/__autograph_generated_fileg1npkw3m.py", line 14, in tf__call
    patches = ag__.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope)

ValueError: Exception encountered when calling layer 'patches_1' (type Patches).

in user code:

    File "/tmp/ipykernel_32/3701414816.py", line 16, in call  *
        patches = tf.reshape(patches, [batch_size, -1, patch_dims])

    ValueError: Tried to convert 'shape' to a tensor and failed. Error: None values not supported.

Call arguments received by layer 'patches_1' (type Patches):
  • images=tf.Tensor(shape=(None, None, None, None), dtype=float32)

Probably your input image shape was not correct. Please check the input
layer of the notebook.
On Tue, Jul 4, 2023 at 9:54 PM Bachuganesh2812 @.***>
wrote:

Got this error when i am trying to fit the model
ValueError Traceback (most recent call last)
Cell In[27], line 2
1 #Model
----> 2 history = model.fit(
3 train_generator,
4 validation_data = validation_generator,
5 epochs = 20,
6 verbose = 1,
7 callbacks=[ ], #add here
8 )
File
/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70,
in filter_traceback..error_handler(*args, **kwargs)
67 filtered_tb = _process_traceback_frames(e.traceback)
68 # To get the full stack trace, call:
69 # tf.debugging.disable_traceback_filtering()
---> 70 raise e.with_traceback(filtered_tb) from None
71 finally:
72 del filtered_tb
File /tmp/
autograph_generated_fileo15m2msk.py:15, in
outer_factory..inner_factory..tf__train_function(iterator) 13 try: 14
do_return = True ---> 15 retval = ag_.converted_call(ag__.ld(step_function),
(ag__.ld(self), ag__.ld(iterator)), None, fscope)
16 except:
17 do_return = False
File /tmp/
autograph_generated_fileg1npkw3m.py:14, in
outer_factory..inner_factory..tf__call(self, images) 12 patches = ag.converted_call(ag__.ld(tf).image.extract_patches,
(), dict(images=ag__.ld(images), sizes=[1, ag__.ld(self).patch_size,
ag__.ld(self).patch_size, 1], strides=[1, ag__.ld(self).patch_size,
ag__.ld(self).patch_size, 1], rates=[1, 1, 1, 1], padding='VALID'), fscope)
13 patch_dims = ag__.ld(patches).shape[-1]
---> 14 patches = ag__.converted_call(ag__.ld(tf).reshape,
(ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None,
fscope)
15 try:
16 do_return = True
ValueError: in user code:
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1284, in train_function  *
return step_function(self, iterator)
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1268, in step_function  **
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1249, in run_step  **
outputs = model.train_step(data)
File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1050, in train_step
y_pred = self(x, training=True)
File "/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/tmp/autograph_generated_fileg1npkw3m.py", line 14, in tf__call
patches = ag.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope)
ValueError: Exception encountered when calling layer 'patches_1' (type Patches).
in user code:
File "/tmp/ipykernel_32/3701414816.py", line 16, in call  *
    patches = tf.reshape(patches, [batch_size, -1, patch_dims])

ValueError: Tried to convert 'shape' to a tensor and failed. Error: None values not supported.

Call arguments received by layer 'patches_1' (type Patches):
• images=tf.Tensor(shape=(None, None, None, None), dtype=float32)
—
Reply to this email directly, view it on GitHub
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APRDXMVN2JHSEKQV4XNYFTTXOQ4DTANCNFSM6AAAAAAZ55H3U4
.
You are receiving this because you are subscribed to this thread.Message
ID:
<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1
@github.com>

Respected Sir,              This is Ganesh on other sir. Thanks for responding to my problem. I don’t think that the problem will be with input shape as per your code the ImageDataGenerator function has the target size set, so it will resize the image to that size I think so. As per you suggestions sir I have rechecked the code and the issue remains the same. I believe that the error is the part as no patches are being generated. It will be really grateful if you can help me out in resolving this error. By the way I like you approach is solving the retina disease classification by stacking both convolution and  Vision Transformers. With regards,Bachu Ganesh. Sent from Mail for Windows From: Pramit DuttaSent: 05 July 2023 22:39To: PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-MethodCc: Bachuganesh2812; AuthorSubject: Re: [PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method] Fit issue (Issue #1) Probably your input image shape was not correct. Please check the input layer of the notebook. On Tue, Jul 4, 2023 at 9:54 PM Bachuganesh2812<EMAIL_ADDRESS>wrote: > Got this error when i am trying to fit the model > ------------------------------ > > ValueError Traceback (most recent call last) > Cell In[27], line 2 > 1 #Model > ----> 2 history = model.fit( > 3 train_generator, > 4 validation_data = validation_generator, > 5 epochs = 20, > 6 verbose = 1, > 7 callbacks=[ ], #add here > 8 ) > > File > /opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70, > in filter_traceback..error_handler(*args, **kwargs) > 67 filtered_tb = _process_traceback_frames(e.*traceback*) > 68 # To get the full stack trace, call: > 69 # tf.debugging.disable_traceback_filtering() > ---> 70 raise e.with_traceback(filtered_tb) from None > 71 finally: > 72 del filtered_tb > > File /tmp/ > > > *autograph_generated_fileo15m2msk.py:15, in > outer_factory..inner_factory..tf__train_function(iterator) 13 try: 14 > do_return = True ---> 15 retval = ag*_.converted_call(ag__.ld(step_function), > (ag__.ld(self), ag__.ld(iterator)), None, fscope) > 16 except: > 17 do_return = False > > File /tmp/ > *autograph_generated_fileg1npkw3m.py:14, in > outer_factory..inner_factory..tf__call(self, images) 12 patches = ag*.converted_call(ag__.ld(tf).image.extract_patches, > (), dict(images=ag__.ld(images), sizes=[1, ag__.ld(self).patch_size, > ag__.ld(self).patch_size, 1], strides=[1, ag__.ld(self).patch_size, > ag__.ld(self).patch_size, 1], rates=[1, 1, 1, 1], padding='VALID'), fscope) > 13 patch_dims = ag__.ld(patches).shape[-1] > ---> 14 patches = ag__.converted_call(ag__.ld(tf).reshape, > (ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, > fscope) > 15 try: > 16 do_return = True > > ValueError: in user code: > > File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1284, in train_function * > return step_function(self, iterator) > File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1268, in step_function ** > outputs = model.distribute_strategy.run(run_step, args=(data,)) > File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1249, in run_step ** > outputs = model.train_step(data) > File "/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line 1050, in train_step > y_pred = self(x, training=True) > File "/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler > raise e.with_traceback(filtered_tb) from None > File "/tmp/__autograph_generated_fileg1npkw3m.py", line 14, in tf__call > patches = ag__.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches), [ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope) > > ValueError: Exception encountered when calling layer 'patches_1' (type Patches). > > in user code: > > File "/tmp/ipykernel_32/3701414816.py", line 16, in call * > patches = tf.reshape(patches, [batch_size, -1, patch_dims]) > > ValueError: Tried to convert 'shape' to a tensor and failed. Error: None values not supported. > > > Call arguments received by layer 'patches_1' (type Patches): > • images=tf.Tensor(shape=(None, None, None, None), dtype=float32) > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe >  > . > You are receiving this because you are subscribed to this thread.Message > ID: >  @github.com> > —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>
Dear Ganesh,
First of all, sorry for the late reply. I rechecked my code and the problem
occurred because of the package update. There is no other valid reason that
a patch will not be generated. It's good to know that you liked the work.
The work is published recently. If you want to know more, see the
publication here "https://www.mdpi.com/2313-433X/9/7/140". I am having some
issues with my google drive storage, so I am currently having some problems
with working with this code. If I am able to sort out the code I will
update the repository. Please let me know if you have sorted it out already.
With regards
Pramit Dutta
Portfolio: https://pramitdutta1999.github.io/portfolio/
On Thu, Jul 6, 2023 at 1:06 PM Bachuganesh2812 @.***>
wrote:

Respected Sir,              This is Ganesh on other sir. Thanks for
responding to my problem. I don’t think that the problem will be with input
shape as per your code the ImageDataGenerator function has the target size
set, so it will resize the image to that size I think so. As per you
suggestions sir I have rechecked the code and the issue remains the same. I
believe that the error is the part as no patches are being generated. It
will be really grateful if you can help me out in resolving this error. By
the way I like you approach is solving the retina disease classification by
stacking both convolution and  Vision Transformers. With regards,Bachu
Ganesh. Sent from Mail for Windows From: Pramit DuttaSent: 05 July 2023
22:39To:
PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-MethodCc:
Bachuganesh2812; AuthorSubject: Re:
[PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method]
Fit issue (Issue #1) Probably your input image shape was not correct.
Please check the input layer of the notebook. On Tue, Jul 4, 2023 at
9:54 PM Bachuganesh2812 @.***> wrote: > Got this error when i am
trying to fit the model > ------------------------------ > > ValueError
Traceback (most recent call last) > Cell In[27], line 2 > 1 #Model > ---->
2 history = model.fit( > 3 train_generator, > 4 validation_data =
validation_generator, > 5 epochs = 20, > 6 verbose = 1, > 7 callbacks=[ ],
#add here > 8 ) > > File >
/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70,

in filter_traceback..error_handler(args, kwargs) > 67 filtered_tb =
process_traceback_frames(e.traceback) > 68 # To get the full stack
trace, call: > 69 # tf.debugging.disable_traceback_filtering() > ---> 70
raise e.with_traceback(filtered_tb) from None > 71 finally: > 72 del
filtered_tb > > File /tmp/ > > > autograph_generated_fileo15m2msk.py:15,
in > outer_factory..inner_factory..tf__train_function(iterator) 13 try: 14
do_return = True ---> 15 retval =
ag.converted_call(ag__.ld(step_function), > (ag__.ld(self),
ag__.ld(iterator)), None, fscope) > 16 except: > 17 do_return = False > >
File /tmp/ > autograph_generated_fileg1npkw3m.py:14, in >
outer_factory..inner_factory..tf__call(self, images) 12 patches =
ag.converted_call(ag__.ld(tf).image.extract_patches, > (),
dict(images=ag__.ld(images), sizes=[1, ag__.ld(self).patch_size, >
ag__.ld(self).patch_size, 1], strides=[1, ag__.ld(self).patch_size, >
ag__.ld(self).patch_size, 1], rates=[1, 1, 1, 1], padding='VALID'), fscope)
13 patch_dims = ag__.ld(patches).shape[-1] > ---> 14 patches =
ag__.converted_call(ag__.ld(tf).reshape, > (ag__.ld(patches),
[ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, > fscope) > 15 try:
16 do_return = True > > ValueError: in user code: > > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1284, in train_function * > return step_function(self, iterator) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1268, in step_function ** > outputs =
model.distribute_strategy.run(run_step, args=(data,)) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1249, in run_step ** > outputs = model.train_step(data) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1050, in train_step > y_pred = self(x, training=True) > File
"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py",
line 70, in error_handler > raise e.with_traceback(filtered_tb) from None >
File "/tmp/autograph_generated_fileg1npkw3m.py", line 14, in tf__call >
patches = ag.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches),
[ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope) > >
ValueError: Exception encountered when calling layer 'patches_1' (type
Patches). > > in user code: > > File "/tmp/ipykernel_32/3701414816.py",
line 16, in call * > patches = tf.reshape(patches, [batch_size, -1,
patch_dims]) > > ValueError: Tried to convert 'shape' to a tensor and
failed. Error: None values not supported. > > > Call arguments received by
layer 'patches_1' (type Patches): > • images=tf.Tensor(shape=(None, None,
None, None), dtype=float32) > > — > Reply to this email directly, view it
on GitHub > <
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1>,
or unsubscribe > <
https://github.com/notifications/unsubscribe-auth/APRDXMVN2JHSEKQV4XNYFTTXOQ4DTANCNFSM6AAAAAAZ55H3U4>
. > You are receiving this because you are subscribed to this
thread.Message > ID: >
<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1
@github.com> > —Reply to this email directly, view it on GitHub, or
unsubscribe.You are receiving this because you authored the thread.Message
ID: @.>

—
Reply to this email directly, view it on GitHub
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1#issuecomment-1623106745,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APRDXMU6ZJLULZJY3DZHOODXOZPXNANCNFSM6AAAAAAZ55H3U4
.
You are receiving this because you commented.Message ID:
<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1/1623106745
@github.com>

Respected sir,
Thanks for your response. The paper is every informative and helped in my
research work in fundus image classification. If possible can you share me
the libraries version you have used early, i will try to recreate the same
environment so that the code can be run without any problem. I will
definitely look up for resolving the error while using the current version.
With regards,
Bachu Ganesh
On Thu, Jul 13, 2023, 10:39 AM Pramit Dutta @.***>
wrote:

Dear Ganesh,
First of all, sorry for the late reply. I rechecked my code and the
problem
occurred because of the package update. There is no other valid reason
that
a patch will not be generated. It's good to know that you liked the work.
The work is published recently. If you want to know more, see the
publication here "https://www.mdpi.com/2313-433X/9/7/140". I am having
some
issues with my google drive storage, so I am currently having some
problems
with working with this code. If I am able to sort out the code I will
update the repository. Please let me know if you have sorted it out
already.
With regards
Pramit Dutta
Portfolio: https://pramitdutta1999.github.io/portfolio/
On Thu, Jul 6, 2023 at 1:06 PM Bachuganesh2812 @.***>
wrote:

Respected Sir, This is Ganesh on other sir. Thanks for
responding to my problem. I don’t think that the problem will be with
input
shape as per your code the ImageDataGenerator function has the target
size
set, so it will resize the image to that size I think so. As per you
suggestions sir I have rechecked the code and the issue remains the
same. I
believe that the error is the part as no patches are being generated. It
will be really grateful if you can help me out in resolving this error.
By
the way I like you approach is solving the retina disease classification
by
stacking both convolution and Vision Transformers. With regards,Bachu
Ganesh. Sent from Mail for Windows From: Pramit DuttaSent: 05 July 2023
22:39To:

PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-MethodCc:

Bachuganesh2812; AuthorSubject: Re:

[PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method]

Fit issue (Issue #1) Probably your input image shape was not correct.
Please check the input layer of the notebook. On Tue, Jul 4, 2023 at
9:54 PM Bachuganesh2812 @.***> wrote: > Got this error when i am
trying to fit the model > ------------------------------ > > ValueError
Traceback (most recent call last) > Cell In[27], line 2 > 1 #Model >
---->
2 history = model.fit( > 3 train_generator, > 4 validation_data =
validation_generator, > 5 epochs = 20, > 6 verbose = 1, > 7 callbacks=[
],
#add here > 8 ) > > File >

/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70,

in filter_traceback..error_handler(*args, **kwargs) > 67 filtered_tb =
process_traceback_frames(e.traceback) > 68 # To get the full stack
trace, call: > 69 # tf.debugging.disable_traceback_filtering() > ---> 70
raise e.with_traceback(filtered_tb) from None > 71 finally: > 72 del
filtered_tb > > File /tmp/ > > >
autograph_generated_fileo15m2msk.py:15,
in > outer_factory..inner_factory..tf__train_function(iterator) 13 try:
14
do_return = True ---> 15 retval =
ag.converted_call(ag__.ld(step_function), > (ag__.ld(self),
ag__.ld(iterator)), None, fscope) > 16 except: > 17 do_return = False >

File /tmp/ > autograph_generated_fileg1npkw3m.py:14, in >
outer_factory..inner_factory..tf__call(self, images) 12 patches =
ag.converted_call(ag__.ld(tf).image.extract_patches, > (),
dict(images=ag__.ld(images), sizes=[1, ag__.ld(self).patch_size, >
ag__.ld(self).patch_size, 1], strides=[1, ag__.ld(self).patch_size, >
ag__.ld(self).patch_size, 1], rates=[1, 1, 1, 1], padding='VALID'),
fscope)

13 patch_dims = ag__.ld(patches).shape[-1] > ---> 14 patches =
ag__.converted_call(ag__.ld(tf).reshape, > (ag__.ld(patches),
[ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, > fscope) > 15
try:
16 do_return = True > > ValueError: in user code: > > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1284, in train_function * > return step_function(self, iterator) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1268, in step_function ** > outputs =
model.distribute_strategy.run(run_step, args=(data,)) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1249, in run_step ** > outputs = model.train_step(data) > File
"/opt/conda/lib/python3.10/site-packages/keras/engine/training.py", line
1050, in train_step > y_pred = self(x, training=True) > File

"/opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py",

line 70, in error_handler > raise e.with_traceback(filtered_tb) from
None >
File "/tmp/__autograph_generated_fileg1npkw3m.py", line 14, in tf__call
patches = ag__.converted_call(ag__.ld(tf).reshape, (ag__.ld(patches),
[ag__.ld(batch_size), -1, ag__.ld(patch_dims)]), None, fscope) > >
ValueError: Exception encountered when calling layer 'patches_1' (type
Patches). > > in user code: > > File "/tmp/ipykernel_32/3701414816.py",
line 16, in call * > patches = tf.reshape(patches, [batch_size, -1,
patch_dims]) > > ValueError: Tried to convert 'shape' to a tensor and
failed. Error: None values not supported. > > > Call arguments received
by
layer 'patches_1' (type Patches): > • images=tf.Tensor(shape=(None,
None,
None, None), dtype=float32) > > — > Reply to this email directly, view
it
on GitHub > <

https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1>,

or unsubscribe > <

https://github.com/notifications/unsubscribe-auth/APRDXMVN2JHSEKQV4XNYFTTXOQ4DTANCNFSM6AAAAAAZ55H3U4>

. > You are receiving this because you are subscribed to this
thread.Message > ID: >

<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1

@github.com> > —Reply to this email directly, view it on GitHub, or
unsubscribe.You are receiving this because you authored the
thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1#issuecomment-1623106745>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/APRDXMU6ZJLULZJY3DZHOODXOZPXNANCNFSM6AAAAAAZ55H3U4>

.
You are receiving this because you commented.Message ID:

<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1/1623106745

@github.com>

—
Reply to this email directly, view it on GitHub
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1#issuecomment-1633554877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXS7C6IDYHSHBM7VUQKRAI3XP57G7ANCNFSM6AAAAAAZ55H3U4
.
You are receiving this because you authored the thread.Message ID:
<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1/1633554877
@github.com>

Mr. Bachu,
The TensorFlow 2.9.2 version was used. Hope it might help!
With Regard
Pramit Dutta

Respected sir,
Thank you for the information sir. I will try with the
following package version and will update you sir.
Thanks & Regards
Bachu Ganesh
On Fri, Jul 14, 2023, 10:38 AM Pramit Dutta @.***>
wrote:

Mr. Bachu,
The TensorFlow 2.9.2 version was used. Hope it might help!
With Regard
Pramit Dutta
—
Reply to this email directly, view it on GitHub
https://github.com/PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1#issuecomment-1635280117,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXS7C6KAZCRZQ7D23YLMSNTXQDH6DANCNFSM6AAAAAAZ55H3U4
.
You are receiving this because you authored the thread.Message ID:
<PramitDutta1999/Conv-ViT-A-Convolution-and-Vision-Transformer-Based-Hybrid-Feature-Extraction-Method/issues/1/1635280117
@github.com>


"POST /items HTTP/1.1" 307 Temporary Redirect

Unable to create a new Item
Steps taken:
git clone https://github.com/ArjanCodes/examples.git
cd examples
python3.11 -m venv venv
source venv/bin/activate
cd 2023/fastapi-router
cd api
python -m pip install -r requirements.txt
uvicorn main:app --reload

Some modules are missing
ModuleNotFoundError: No module named 'requests'
ModuleNotFoundError: No module named 'slowapi'

Creating an Item
When trying to create an Item, I'm getting an error (307 Temporary Redirect)
curl -X POST -H "Content-Type: application/json" -d '{"name": "Espresso machine", "description": "Silver dual boiler machine 9999"}' http://<IP_ADDRESS>:8000/items

INFO:     <IP_ADDRESS>:53210 - "POST /items HTTP/1.1" 307 Temporary Redirect

I'm able to Update (PUT), and DELETE an Item, but NOT create a new one.

ISSUES RESOLVED
Solutions

Update the curl POST request by adding a trailing slash / to the items endpoint.

curl -X POST -H "Content-Type: application/json" \
 -d '{"name": "Espresso machine", "description": "Silver dual boiler machine 99"}' \
 http://<IP_ADDRESS>:8000/items/

Update the curl POST with -L

curl -L -X POST -H "Content-Type: application/json" \
 -d '{"name": "Espresso machine", "description": "Silver dual boiler machine 100"}' \
 http://<IP_ADDRESS>:8000/items

ISSUES RESOLVED
Solutions

Update the curl POST request by adding a trailing slash / to the items endpoint.

curl -X POST -H "Content-Type: application/json" \
 -d '{"name": "Espresso machine", "description": "Silver dual boiler machine 99"}' \
 http://<IP_ADDRESS>:8000/items/

Update the curl POST with -L

curl -L -X POST -H "Content-Type: application/json" \
 -d '{"name": "Espresso machine", "description": "Silver dual boiler machine 100"}' \
 http://<IP_ADDRESS>:8000/items


[CH] Remove some print method in ut

What changes were proposed in this pull request?
Remove some print method in ut
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Thanks for the fix! Will merge the patch soon.


fix bad atol in singlediode test

[ ] Closes #414
[ ] Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests must pass on the TravisCI and Appveyor testing services.
[ ] Code quality and style is sufficient. Passes git diff upstream/master -u -- "*.py" | flake8 --diff and/or landscape.io linting service.
[ ] Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.

@mikofski @adriesse does this look ok to you? The test failed when I changed the atol, so I updated the values to what the function spits out (assuming it's correct!). I truncated the values based on @adriesse feedback on a PR awhile ago. It would be good to merge this before #409. Thanks.

looks good to me. I had a good laugh, because I'm using the new branch, and forgot to set method='lambertw', and I got this:
In [2]: singlediode(7, 6e-7, .1, 20, .5)
Out[2]:
OrderedDict([('i_sc', 6.9651723221583133),
             ('v_oc', 8.1063001465863103),
             ('i_mp', 6.1362673597376753),
             ('v_mp', 6.2243393757884284),
             ('p_mp', 38.194210547580511),
             ('i_x', 6.7558815684409561),
             ('i_xx', 4.2640604802975011)])

I thought, I'm going crazy. But then I remembered. I get the same as you. The tolerance looks good.
In [3]: singlediode(7, 6e-7, .1, 20, .5, method='lambertw')
Out[3]:
OrderedDict([('i_sc', 6.965172322158323),
             ('v_oc', 8.106300146586307),
             ('i_mp', 6.127538662298922),
             ('v_mp', 6.2331331636234655),
             ('p_mp', 38.19376444736038),
             ('i_x', 6.755881568440956),
             ('i_xx', 4.249847011154563)])

thanks!


Change calling convention in sophia and add type checking

Type representions are no longer in call data
Function names are no longer in call data
The function signature (argtypes and outtype) is stored in meta data
Calls are done based on a function hash that includes the type signature
Call data needs the byte code to be encoded
Primop types are fetched from the chain when needed (e.g., for oracles)

This makes:

the byte code smaller
the memory usage smaller
the contract calls more type safe
the chain primops more type safe

TODO:

Check the type signatures on oracle primops so that the compiled
code is expecting the correct query/response types.
Check the types on name resolution. I'm not entirely sure it is safe.

TODO (for this PR):

[x] Bump protocol version and db dir
[x] Add release notes
[x] Consider removing explicit typereps for the RETURN op, and use type info instead.
[x] Merge the new way of constructing call data.

Previously you created calldata by giving a function name and a Sophia constant for the arguments. The new way to create calldata for a call to foo is to give a complete contract of the form
contract SomeName =
  function foo : (t1, t2, t3) => ret_t
  function __call() = foo(arg1, arg2, arg3)

This contract is run through the type checker and can include type definitions necessary for the type of foo. To make updating the tests not take weeks I kept the interface of passing a function string and an argument string. For the example above you set the function to "" and pass the contract code in the argument. There's also a shorthand which made updating tests less of a nightmare: setting the function to "foo : (t1, t2, t3) => ret_t" and the arguments to "arg1, arg2, arg3" will build the contract code above. This isn't super nice but meant I only had to add a type signature to update most of the tests.
I'm not sure what's the best way to handle the CreateCompute and CallCompute entrypoints though. At the moment CreateCompute only takes argument and not a function name (since it's always init), so you can't use the shorthand with that. CallCompute maps directly to create_calldata so admits the shorthand. In the long term I think we'd like to change the arguments to these entrypoints to something nicer, but that would mean a lot of time spent on updating tests.