Tensorflow import Error

Issue Type: Bug
Tensorflow is already installed.

import tensorflow as tf

run the next cell
Error: Direct kernel connection broken

Extension version: 2020.12.414227025
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 20.3.0

System Info

Item
Value

CPUs
Apple M1 (8 x 2400)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
8.00GB (0.03GB free)

Process Argv
--crash-reporter-id 6d5cec51-b17c-464e-9bbd-a5aad282620e

Screen Reader
no

VM
0%

Thanks for the bug. This sounds like importing tensorflow caused the kernel to crash.
Are you using pytorch? That might be the issue if you don't install it according to pytorch's directions?
https://pytorch.org/get-started/locally/
Not really an expert on tensorflow or pytorch though.

@MayaSakaguchi617
In addition to what @rchiodo has suggested, Please could you also enable logging & provide the output when you get the above error (please try this first before re-installing pytorch).
Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to debug
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel.

@rchiodo would be good to see what errors are returned by kernel, this way when it happens in the future we can proactively ask user from extension to re-install pytorch with some instructions (ie. prevent user from having to report an issue - i.e. provide a way for them to resolve it at their end then and there...).

I really appreciate your advice.
Since I couldn't find Jupiter->Logging,
I tried to debug by following below.
https://code.visualstudio.com/docs/python/jupyter-support
---Result---
CODE
[ ]:import tensorflow as tf
[ ]:print('hello')
OUTPUT
(base) % source /Users/{username}/opt/anaconda3/bin/activate
(base) % conda activate base
(base) % /Users/{username}/opt/anaconda3/bin/python "{filename}.py"
zsh: illegal hardware instruction  /Users/{username}/opt/anaconda3/bin/python
(base) %

Since I couldn't find Jupiter->Logging,

Open your settings from the command palette & select Preferences: Open Settings UI

The reload VS Code after changing it to debug.
Run your cell & wait for the error Direct Kernel connection broken.
Go into your output panel Jupyter and copy the output & paste it here.
See here

Your python example indicates that tensorflow crashes without using VS code.
Sounds like a tensorflow bug. I believe this is the sort of thing that happens if you don't install pytorch using the directions (I had something similar happen to me). Or it could be that tensorflow isn't supported on your chip yet either.
See this issue here:
https://github.com/tensorflow/tensorflow/issues/44999

@DonJayamanne Thanks for kind instruction.
I've just run the first line: import tensorflow as tf
The output was a little long, so I will attach a text file.
Log_1.txt

Please reopen this bug (or file in the tensorflow repo) if the above advice doesn't resolve your issue. Thanks!


Windows 7 support

Apparently people are still using windows 7 and play directx12 games with a conversion layer...
Currently the overlay hook is based on real directx12, a directx11 hook needs to be developed and used when on windows 7.
I don't plan on implementing it, as it requires installing windows 7 and spending time I don't have on a very small player base.
If you want to give it a shot please do.

This would take an hour to install, and probably another hour to get all the drivers installed, but it won't take that long, and you'll have a better OS in the end.
https://www.reddit.com/r/LegacyWindows/wiki/index/windows-7/windows-7-iso-with-integrated-updates

Maybe a config option to disable the overlay then? Should be a lot easier to implement and still keep the general optimization options.

Apparently people are still using windows 7 and play directx12 games with a conversion layer...

12on7 is a complete Dx12 implementation to the equivalent of that included with Windows 10 1809, but limited to the capabilities of DXGI 1.1 where swap chains are concerned.

Please add option to disable overlay like r4m0n suggested.

I think the issue is not DX12, people can just copy the dlls from the dx12on7 folder to the above folder with the game exe in it so it will be found, but XInput1_4 is what isn't available on windows 7. Could try using/looking for 1_3 for it I think, not sure if that helps tho.

I think the issue is not DX12, people can just copy the dlls from the dx12on7 folder to the above folder with the game exe in it so it will be found, but XInput1_4 is what isn't available on windows 7. Could try using/looking for 1_3 for it I think, not sure if that helps tho.

I've tried disabling the xinput option and grabbing a 1.4 xinput DLL. it stops complaining about missing DLLs, but gives a couple errors 193 and doesn't work (game loads normally).

I've tried disabling the xinput option and grabbing a 1.4 xinput DLL. it stops complaining about missing DLLs, but gives a couple errors 193 and doesn't work (game loads normally).
Copying both xinput1_3.dll and d3d12on7/d3d12.dll to plugins/ and renaming the former to xinput1_4.dll should allow the plugin to work on 7 (except for the overlay obviously). Or at least it did, I have yet to update to 1.05 and my plugin is like 2 days old.

I've tried disabling the xinput option and grabbing a 1.4 xinput DLL. it stops complaining about missing DLLs, but gives a couple errors 193 and doesn't work (game loads normally).

Copying both xinput1_3.dll and d3d12on7/d3d12.dll to plugins/ and renaming the former to xinput1_4.dll should allow the plugin to work on 7 (except for the overlay obviously). Or at least it did, I have yet to update to 1.05 and my plugin is like 2 days old.

It's working. I don't know if everything is working correctly.

Copy d3d12.dll to /plugins
Copy xinput1_3.dll to /plugins and rename it to xinput1_4.dll

cyber_engine_tweaks.log says [error] Kiero failed!

Set console option to false

Game runs, but in 1024x768 resolution

Change resolution in game options, exit and run game again

Resolution is fine now.
This is my config.json
{
    "avx": true,
    "console": false,
    "console_key": 192,
    "cpu_memory_pool_fraction": 0.75,
    "disable_antialiasing": false,
    "disable_async_compute": true,
    "disable_boundary_teleport": false,
    "disable_intro_movies": true,
    "disable_vignette": false,
    "dump_game_options": false,
    "enable_debug": false,
    "gpu_memory_pool_fraction": 1.0,
    "memory_pool": true,
    "remove_pedestrians": false,
    "skip_start_menu": true,
    "smt": true,
    "spectre": true,
    "virtual_input": false
}

Since Win7 is semi-officially not supported, I'll post this here rather than create a new issue.
For CP v1.05, following @rrrudd's advice worked on engine tweaks v161 with the following config.json

{
"avx": true,
"console": false,
"cpu_memory_pool_fraction": 0.5,
"disable_antialiasing": false,
"disable_async_compute": true,
"dump_game_options": false,
"gpu_memory_pool_fraction": 1.0,
"memory_pool": true,
"remove_pedestrians": false,
"skip_start_menu": true,
"smt": true,
"spectre": true,
"unlock_menu": false,
"virtual_input": true,
"disable_intro_movies": true,
"disable_vignette": false,
"disable_boundary_teleport": false
}

And I could run CP without issue,

[2020-12-23 15:53:40.944] [info] Game version 1.05
[2020-12-23 15:53:40.984] [info] 	AMD SMT Patch: success
[2020-12-23 15:53:40.984] [warning] 	Spectre patch: failed, unknown version
[2020-12-23 15:53:41.004] [warning] 	Virtual Input Patch: failed
[2020-12-23 15:53:41.064] [info] 	Start screen patch: success
[2020-12-23 15:53:41.064] [info] 	Hidden options patch: success
[2020-12-23 15:53:41.074] [info] 	Disable intro movies patch: success

Now, with CP v1.06 and engine tweaks v170, I get

Unable to load cyber_engine_tweaks.asi. Error: 998

With no print out to the log. Same configuration as before (i.e. console disabled since I'm using d3d12.dll in the plugins folder on win7 x64).
Any idea?

I did some investigating into the cause of the Error 998 that @sumyunggai reported, as I had the same issue. This error is caused by an access violation while cyber_engine_tweaks.asi is being loaded, with the following callstack:

The modmul_from_right_fastx64_asm frame reported by Visual Studio is bogus, this is actually BCryptGenRandom. The _mi_XXX frames are Mimalloc. Mimalloc is a dependency of TiltedCore, which in turn is a dependency of Cyber Engine Tweaks. So this is not actually a bug in Cyber Engine Tweaks as far as I can tell. However it should be fairly easy to fix or at least work around.
The main issue seems to be that BCryptGenRandom misbehaves on Windows 7 when called from within a DllMain function (possibly depending on the parameters passed to it by Mimalloc). Why do I say this? Because this crash does not happen if the ASI loader is compiled as a .exe file instead of as DLL.
Mimalloc actually provides a way to specify at compile time that you do not wish to use BCryptGenRandom to initialize the PRNG: see os_random_buf which is implemented differently depending on an #if guard. Defining MI_USE_RTLGENRANDOM will cause it to use RtlGenRandom to initialize the PRNG instead. Unfortunately I don't have enough knowledge of xmake to specify that I want to pass this define to a package dependency (not a build target) and then build this dependency from source, if this is even possible.
As a workaround until this is fixed properly somewhere in the above mentioned dependency chain, I simply added the TiltedCore source files to the makefile, sans the Mimalloc-related source files. This also required changing one instance of MimallocAllocator in src/Allocator.cpp to the basic malloc-using StandardAllocator. After this, Cyber Engine Tweaks once again works on Windows 7 using Cyberpunk v1.06 and the current git tree at dd2b5d8:

[2020-12-26 10:40:50.916] [info] Game version 1.06
[2020-12-26 10:40:51.069] [info] 	AMD SMT Patch: success
[2020-12-26 10:40:51.132] [info] 	Start screen patch: success
[2020-12-26 10:40:51.134] [info] 	Hidden options patch: success
[2020-12-26 10:40:51.137] [info] 	Disable intro movies patch: success
[2020-12-26 10:40:51.215] [info] 	Hidden options hook: success
[2020-12-26 10:40:51.233] [info] 	Hook mouse clip function!
[2020-12-26 10:40:51.240] [info] 	Log function hook complete!
[2020-12-26 10:40:51.249] [info] 	LogChannel function hook complete!
[2020-12-26 10:40:51.324] [info] 	TDBID::ctor function hook complete!
[2020-12-26 10:40:51.400] [info] 	TDBID::ctor[CString] function hook complete!
[2020-12-26 10:40:51.475] [info] 	TDBID::ctor[Derive] function hook complete!
[2020-12-26 10:40:51.551] [info] 	TDBID::ctor[Unknown] function hook complete!
[2020-12-26 10:40:51.575] [info] 	TDBID::ToStringDEBUG function hook complete!

The 'function hook complete' messages are due to me having the console enabled, but keep in mind that the console still does not actually work on Windows 7 due to the D3D12 issues already mentioned in this thread.

(Continued from my previous post as it was getting long, and this comment is unrelated to the error 998 message.)
While @rrrudd's advice is very good in that it will get Cyber Engine Tweaks to work on Windows 7 the way it is right now, I have some objections to using this approach in the long run that are related to global state in DLLs. Duplicating d3d12.dll and xinput_1_3.dll means that the DirectX interfaces responsible for graphics and input will be loaded twice in the same process; one for Cyberpunk and one for Cyber Engine Tweaks. These DLLs will not be aware of each other's existence, which can be an issue in any place where global state is used by the DLL to store data, since this state will most likely differ between the two DLLs.
(Note that Cyber Engine Tweaks incorrectly linking against xinput_1_4.dll causes this to happen even on Windows 10, so this is not a problem exclusive to Windows 7. However, duplicating d3d12.dll in a process is probably a more serious problem that is exclusive to Windows 7.)
I found a way to load the correct DLL (meaning the same DLL that the game is using) for both:

xinput_1_3.dll: I modified src/overlay/imgui_iml_win32.cpp to link against the import library for xinput_1_3.dll instead of the xinput_1_4.dll it is currently linking against due to the import library coming from the Windows SDK. An issue here is that this import library is only available as part of the June 2010 DirectX SDK which most people won't have installed. Adding it to the Github repository could be an option since it is only 3 KB, but I don't know if it is permitted by the EULA to redistribute SDK files separately.
d3d12.dll: this file is very inconveniently placed in /d3d12on7 in the Cyberpunk directory. I don't know why CDPR decided to give it its own subdirectory given that it is very simple to load this DLL from the game directory on Windows 7 and from System32 on Windows 10. This issue can be resolved in two ways: (1) making Ultimate ASI Loader add /d3d12on7 to its DLL search path, or (2) making Cyber Engine Tweaks load d3d12.dll dynamically instead of statically, since it is aware of its own location and that of Cyberpunk's d3d12.dll. I tested (1) as it was the quickest to implement and this works, but ultimately I think (2) is the way this should be handled. I will make a PR for this soon assuming I can get it to work correctly without breaking things on Windows 10.

(Last comment from me for now, I promise! This one is about supporting D3D12 on Windows 7.)
I'm not a graphics programmer so unfortunately I doubt I can just make a PR that makes all the necessary changes for this, but I do have some notes that may be of interest to @yamashi or anyone else looking to add support for Windows 7 to the D3D12 overlay.
First of all, D3D12On7 is an official MS project that has some very good documentation and sample code available:

Porting D3D12 games to Windows 7 – Development Guidance - documentation;
D3D12On7 NuGet package to obtain the headers and latest DLL;
D3D12On7 sample - a bit heavy on COM usage and reliance on the d3dx12.h 'helper header' for my taste, but readable enough.

The main issue I can see w.r.t. Windows 7 compatibility in Cyber Engine Tweaks is the use of the DXGI swap chain. This is normally obtained by calling IDXGIFactory::CreateSwapChain (this is also what Kiero does to find the address of the command queue pointer relative to the swap chain), but this function is not supported by DXGI on Windows 7.
This means that currently Kiero fails to initialize as the swap chain creation call fails. But this is not extremely important since the only reason Kiero is creating a swap chain is to find the command queue address I mentioned. This goes into g_commandQueueOffset which is later used by the overlay. Other function pointers from the D3D12 device, command queue, command allocator, command list and swapchain itself go in g_methodsTable, but these are not actually used by the overlay later.
These are the main problematic functions in the overlay due to their usage of the swap chain:

Overlay::PresentD3D12(IDXGISwapChain3* pSwapChain, UINT SyncInterval, UINT Flags)
Overlay::InitializeD3D12(IDXGISwapChain3* pSwapChain)
Overlay::Render(IDXGISwapChain3* pSwapChain)

Overlay::PresentD3D12 is the hook for the DXGI present function. The location of this hook will have to be moved on Windows 7, as Cyberpunk will not (can not) call a function with this signature due to absence of a swap chain. Instead the ID3D12CommandQueueDownlevel interface is used to call a present function with the following signature:
HRESULT STDMETHODCALLTYPE Present(
    _In_  ID3D12GraphicsCommandList *pOpenCommandList,
    _In_  ID3D12Resource *pSourceTex2D,
    _In_  HWND hWindow,
    D3D12_DOWNLEVEL_PRESENT_FLAGS Flags);

The ID3D12CommandQueueDownlevel can be obtained from the command queue using QueryInterface.
Overlay::InitializeD3D12 is called once by the Present hook. This looks to be me to be the trickiest function to adapt for Windows 7. Firstly it uses the swap chain to obtain the D3D12 device pointer. On Windows 7 this can be achieved by querying the device from the back buffer resource that is created instead of a swap chain (see here), but that still implies finding the back buffer resource somehow (pattern matching, or otherwise disassembly of the game binary to find where it stores the result of this call). Next, the swap chain is used to obtain the DXGI_SWAP_CHAIN_DESC that was used to create it, in order to determine the size of the FrameContext vector (size = sdesc.BufferCount). There is no clear equivalent obtainable on 7 that I can see, but note that the MS sample treats this value as a constant 2, so it may not be overly important. Finally, the swap chain is used to obtain the address of the command queue (m_pCommandQueue). This address could be obtained alternatively in the hook for ID3D12CommandQueueDownlevel::Present() mentioned previously, since the first parameter to this function is the command list which can be used to obtain the command queue.
Overlay::Render() should be simple. It only uses the swap chain to obtain the current back buffer index. In the MS sample the back buffer index is simply initialized to 0, and if a swap chain is available (i.e. on Windows 10), this swap chain is used to obtain a potentially different index.

Mimalloc actually provides a way to specify at compile time that you do not wish to use BCryptGenRandom to initialize the PRNG: see os_random_buf which is implemented differently depending on an #if guard. Defining MI_USE_RTLGENRANDOM will cause it to use RtlGenRandom to initialize the PRNG instead. Unfortunately I don't have enough knowledge of xmake to specify that I want to pass this define to a package dependency (not a build target) and then build this dependency from source, if this is even possible.

@Mattiwatti try add_requires("mimalloc", {configs = {cxflags = "-DMI_USE_RTLGENRANDOM"}}) or you can submit a pr to add a config item ("rtlgen_random") in xmake-repo/mimalloc, then use add_requires("mimalloc", {configs = {rtlgen_random = true})
like this https://github.com/xmake-io/xmake-repo/blob/78687acd47e2b63ab21c640d436d554fb021d8fd/packages/m/mimalloc/xmake.lua#L10

Mimalloc actually provides a way to specify at compile time that you do not wish to use BCryptGenRandom to initialize the PRNG: see os_random_buf which is implemented differently depending on an #if guard. Defining MI_USE_RTLGENRANDOM will cause it to use RtlGenRandom to initialize the PRNG instead. Unfortunately I don't have enough knowledge of xmake to specify that I want to pass this define to a package dependency (not a build target) and then build this dependency from source, if this is even possible.

@Mattiwatti try add_requires("mimalloc", {configs = {cxflags = "-DMI_USE_RTLGENRANDOM"}}) or you can submit a pr to add a config item ("rtlgen_random") in xmake-repo/mimalloc, then use add_requires("mimalloc", {configs = {rtlgen_random = true})
like this https://github.com/xmake-io/xmake-repo/blob/78687acd47e2b63ab21c640d436d554fb021d8fd/packages/m/mimalloc/xmake.lua#L10

Don't think that would work, it's not a cmake parameter, it's just a define that needs to be set, I suppose we can add a patch to the mimalloc package.

Actually add_requires("mimalloc", {configs = {cxflags = "-DMI_USE_RTLGENRANDOM"}}) works for me and fixes the access violation on Windows 7, as the bcrypt PRNG initialization is now gone. Still need to test this on Windows 10 but I assume it will work.

@Mattiwatti did v172 resolve your 998 error? It did not for me (console still disabled).
FYI to @yamashi: there's duplicate copies of "cyber_engine_tweaks.asi" in the v172 release .zip - one in root with the other in \plugins

Same here, 998 error
But it's no longer asking for xinput1_4

Yes, error 998.

@sumyunggai and others: there is some confusion re: what changes are required for Windows 7 support to work, so let me list them for clarification:

Remove d3d12.dll static import: done in #301 (merged), in release 1.7.2+.
Remove XInput_1_4.dll static import: done in #305 (merged), in release 1.7.2+.
(Fixes error 998) Remove bcrypt.dll static import and dependency, done in #303 (not merged), not in any release yet.
Add support for the console overlay to Windows 7, done in #318 (merged), not in any release yet.

So the error 998 and console overlay fixes are in different changes, and neither are (currently) in any release yet.
The console overlay support merge should hopefully be in the next release. Although this isn't useful without the error 998 fix, since that is needed for the mod to work in the first place.
Error 998 was fixed in a different method than the one proposed in my PR (namely a change in xmake to support requiring mimalloc with an alternative RNG source - see the PR for details). But this change is not in the source code yet. @yamashi will probably be able to say if/when this will get merged, as it probably requires contributors to have a new version of xmake installed.

But this change is not in the source code yet. @yamashi will probably be able to say if/when this will get merged, as it probably requires contributors to have a new version of xmake installed.

I don’t think we need not upgrade the xmake version, just execute xmake repo -u to update the xmake-repo repository, and then reinstall the mimalloc dependency package.
because I have fixed titledcore package in xmake-repo and enabled rltgenrandom config to mimalloc deps. (https://github.com/xmake-io/xmake-repo/blob/614cd5d8bca139ab019632a8b6350aa47f3bf7e9/packages/t/tiltedcore/xmake.lua#L12)
cd CyberEngineTweaks
xmake repo -u
xmake require --uninstall mimalloc # or delete %localappdata%/.xmake/packages/m/mimalloc
xmake f -c # reinstall mimalloc
xmake

this is not for be bad
so i make the
https://thunder-menu.com
since 3 years
and it think if you want your mod it will be compatible with
the support of windows 7 that will end the 14 january
you only need to compiled it with the version of windows sdk 8.1

v1.8.0 no more errors. Console crashes to desktop but other functionality seems to work.

v1.8.0 no more errors. Console crashes to desktop but other functionality seems to work.

Unfortunately v1.8.0 was released right after a change to the console overlay size that the Windows 7 code didn't make it in time for, and additionally there is window resize detection implemented in this version which works on my system but causes a crash to desktop on others.
I've created #358 to fix these issues; if this is merged it should make the next release. Meanwhile if you're eager to get the console on Windows 7, you can already download the build artifact for the PR here.

Unfortunately v1.8.0 was released right after a change to the console overlay size that the Windows 7 code didn't make it in time for, and additionally there is window resize detection implemented in this version which works on my system but causes a crash to desktop on others.
I've created #358 to fix these issues; if this is merged it should make the next release. Meanwhile if you're eager to get the console on Windows 7, you can already download the build artifact for the PR here.

Thanks to everyone for getting win7 support functional!

Thanks to everyone for getting win7 support functional!


Sets default symbol visibility to hidden. Resolves #74

This fails on Windows because the thread-local stuff isn't allowed to be dll exported:
c:\projects\bsf\source\foundation\bsfutility\allocators\bsmemoryallocator.h(125): error C2492: 'bs::MemoryCounter::Frees': data with thread storage duration may not have dll interface (compiling source file C:\Projects\bsf\Source\Foundation\bsfCore\Scene\BsPrefab.cpp) [C:\Projects\bsf\Build\Source\Foundation\bsf.vcxproj]

Hrmm, so the difficulty here is that with gcc, unless I export the entire class, it won't link. Apparently they don't support exporting individual member functions.
Would you be OK with a conditional compile? Export the whole class with gcc, export only the functions with msvc ?

Yep, that sounds fine.


2FA Issue

Hi, can you help me with my 2FA issue? Google Authenticator was re-installed to my phone but unfortunately, I lost my security code. It's been a month now that I was not able to access my account? I have already sent several emails to your support team but no one bothers to respond. Please help me as I still have trust with Monyx. I can provide you more details to verify that I am the true owner of the account. Thanks.

@sungahidv what's your username?

@monyxcoin Hello. You can help me
I lost my phone and my 2FA code is gone. I want to remove 2fa code.
please remove 2fa code my account.
Username - beerkumm
E-mail -<EMAIL_ADDRESS>Create monyx account - 24/12/2017

Username - sungahidv

@monyxcoin Username - sungahidv

@sungahidv @beerkumm disabled.

@monyxcoin Thank you sir.

@monyxcoin Thank you!


nginx keeps starting

need to turn nginx daemon off in order to use it with supervisor

attempting to fix this by disabling daemon in the command in commit: 168bfbeb3333a22311b13e32b1d7d94ade58e842
if it doesn't work, will need to disable it in the nginx config file.

commit: 168bfbeb3333a22311b13e32b1d7d94ade58e842 fixed this issue.


Fix #51

if the ture value is farstly bigger than the max value ,the demo will
continue draw the progress line ,which will lead to the serious memeory warning of iPhone simulator

Thanks @AAChartModel for working on this PR, Could you please fix the travis error?


Replace using genome search endpoints for track panel with thoas data

Type

[ ] Bug fix
[ ] New feature
[x] Improvement to existing feature

Related JIRA Issue(s)
ENSWBSITES-1256
ENSWBSITES-1191
Description
There are two tickets covered by this PR.

ENSWBSITES-1256 replaces the genome search REST endpoints used to retrieve data needed for the track panel list. Thoas data is now used for this purpose.
ENSWBSITES-1191 shows the MANE Select/Ensembl canonical transcript as thoas supports this

Deployment URL
http://track-panel-thoas.review.ensembl.org/
Views affected
Genome browser -> track panel

Superseded by https://github.com/Ensembl/ensembl-client/pull/563


ActionDescription.BoundProperties not working as expected for FromQuery

[Route("api/values")]
public class ValuesController : Controller
{
    [HttpGet]
    [CustomMethodSelector]
    public IActionResult Get([FromQuery] int? number)
    {
        return Ok(number);
    }
}

public class CustomMethodSelectorAttribute : ActionMethodSelectorAttribute
{
    public CustomMethodSelectorAttribute()
    {
    }

    public override bool IsValidForRequest(RouteContext routeContext, ActionDescriptor action)
    {
        var boundProps = action.BoundProperties
            .Select(x => x.Name)
            .ToList();

        Console.WriteLine($"[{String.Join(",", boundProps)}]");

        return true;
    }
}

GET api/values
> []
GET api/values?number
> []
GET api/values?number=
> []
GET api/values?number=1
> []
I'd expect it to be [], [number], [number], [number] respectively, or at least [number] on the last one judging how ASP.Net handles empty query values.
Does this only work for FromBody/FromForm?

You likely need ActionDescriptor.Parameters

Oh hmm.. Props vs Parameters!
I wanted a list of bound parameters. But I don't suppose this is possible? This is too early in the pipeline isn't it?
What is the BoundProperties property for?

All action parameters are typically model bound, so that should meet your requirement. BoundProperties are properties on the declaring type that get bound. Mvc supports this - e.g. [FromBody] public Person Person { get; set; }

Ok, so what about value types/primitives?
ActionDescriptor.BoundProperties is empty, and also is .Properties for my example!

int? number  is a parameter. Is it located in ActionDescriptor.Parameters?

Why have you closed this... 👎

If you misunderstood my question, ask for clarification -- don't just prematurely close it.

Hi Mardoxx. Can you please clarify what is your question? /cc @pranavkm

Well, it seems to be little bit different.
Observing ControllerActionDescriptorBuilderTest.cs and in fact BoundProperties represent the properties of Controller (not an action parameter) which get bound from the current request.
Suppose following example
public class HomeController : Controller
{
    [FromQuery(Name = "number")]
    public string number { get; set; }

    [HttpGet]
    [CustomMethodSelector]
    [Route("index")]
    public IActionResult Index([FromQuery] ActionViewModel model) => Ok(number);
}

If we invoke Index action, then inside ActionDescriptor.BoundProperties  will be 1 element, info of number property.

@mkArtakMSFT The question should be "How can I retrieve a list of bound parameters of an Action?" It would seem there is not a way, at least not with ActionDescription!
@tchelidze Checking the tests! Now why didn't I think of that! 😄  Thanks for the writeup

@Mardoxx, you already confirmed that @pranavkm 's suggestion regarding ActionDescriptor.Parameters contained the data you were looking for - bound parameter info. Closing this thread as there seems to be no other question here.

No it doesn't.
On 13 Mar 2018 5:02 pm, "Artak"<EMAIL_ADDRESS>wrote:

@Mardoxx https://github.com/mardoxx, you already confirmed that
@pranavkm https://github.com/pranavkm 's suggestion regarding
ActionDescriptor.Parameters contained the data you were looking for -
bound parameter info. Closing this thread as there seems to be no other
question here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/Mvc/issues/7465#issuecomment-372740802, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAOoMR-SuqunIkLvaDPjTGVAmCxx277Fks5td_uOgaJpZM4Sk9JO
.

ActionDescriptor.Parameters contains a list of all parameters, regardless of if they have a value bound to them or not.

I was under the assumption that @pranavkm was asking for this information for further diagnostic.

Seems like we're talking past each other, let's go over this again:

A controller or a Razor page handler may have bound properties indicated by ActionDescription.BoundParameters. An action also has parameters listed by ActionDescription.Parameters. Parameters are always model bound.
Both BoundProperties and parameters may be annotated with specific attributes that disallows binding. ModelMetadata.IsBindingAllowed indicates if binding is allowed on parameters or bound properties. Note: for most parts, this only works correctly in 2.1.0.  See https://github.com/aspnet/Mvc/issues/6790 and it's PR https://github.com/aspnet/Mvc/pull/6842 for further details on what this entails.

Does this answer your question?

Hi. We're closing this issue as no response or updates have been provided in a timely manner. If you have more details and are encountering this issue please add a new reply and re-open the issue.


Merge alignment-refactor into develop

Summary by Sourcery
Refactor the alignment and sequence modules to improve code organization, readability, and functionality. Introduce new classes and methods for handling sequence data, alignment operations, and gap management. Enhance sequence view handling and slicing operations with a new SliceRecord class. Improve annotation handling and support for different data types in sequences.
Enhancements:

Refactor the alignment module to improve code organization and readability, including the introduction of new classes and methods for handling sequence data and alignment operations.
Enhance the handling of sequence views and slicing operations by introducing a new SliceRecord class to manage slice history and operations.
Improve the handling of gaps in sequences by implementing new methods for gap management and sequence alignment, including the use of IndelMap for gap representation.
Refactor the sequence module to support more flexible sequence operations, including the ability to handle different data types and improved annotation handling.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

2078 of 2144 (96.92%)  changed or added relevant lines in 13 files are covered.
12 unchanged lines in 6 files lost coverage.
Overall coverage increased (+0.4%) to 92.352%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/cogent3/init.py
8
9
88.89%

src/cogent3/core/new_genetic_code.py
9
10
90.0%

src/cogent3/core/new_sequence.py
185
191
96.86%

src/cogent3/core/new_alignment.py
1627
1685
96.56%

Files with Coverage Reduction
New Missed Lines
%

src/cogent3/core/new_alignment.py
1
96.91%

src/cogent3/app/typing.py
1
97.73%

src/cogent3/maths/distance_transform.py
1
74.86%

src/cogent3/maths/scipy_optimize.py
2
84.92%

src/cogent3/util/table.py
3
94.89%

src/cogent3/core/new_sequence.py
4
92.88%

Totals

Change from base Build<PHONE_NUMBER>8:
0.4%

Covered Lines:
34016

Relevant Lines:
36833

💛  - Coveralls


new language training possible?

can we train new language with this?

Hi, unfortunately the developers have not implemented new language training, only fine tuning on the voice of the selected language


Draft RFC to add Stream to the standard library

Something else I was wondering: where in the standard library hierarchy should this trait live? I have to check what @sfackler did in the PR I guess.
More generally I feel like we have to decide whether to just sprinkle async things here and there with names like AsyncFoo or to take some other approach (e.g., std::async::..., although that's a keyword). I guess maybe it depends on how many additions we ultimately hvae.

I guess maybe it depends on how many additions we ultimately have.

async-std is effectively a big experiment to see how much of the stdlib would be useful (and possible) to port to async Rust. And so far the it seems virtually everything async-std provides is seeing use by people. What this means for the stdlib is that it would be reasonable to leave ourselves with enough space to grow, even if we're currently only considering a modest set of APIs for inclusion. Examples of "We may want to include a lot of this in the future" are: the io submodule (37 top-level exports) and sync submodule (18 top-level exports).

where in the standard library hierarchy should this trait live?

That's a really good question. @sfackler added it under core::stream, which makes sense as a counterpart to core::future. But when we consider AsyncRead and AsyncWrite for inclusion there may be different tradeoffs and the obvious std::io submodule may not be the best fit.

I'm going to merge this as a WIP -- we'll need to do follow-up work to flesh it out.


ceph-container-engine: allow override container_package_name and container_service_name

Only include specific variables when they are undefined
Signed-off-by: Seena Fallah<EMAIL_ADDRESS>

jenkins test centos-non_container-lvm_osds

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-lvm_osds

maybe another option would be to set a fact before the task include specific variables like the following :
- name: set_fact _container_package_name, _container_service_name
  set_fact:
    _container_package_name: "{{ container_package_name if container_package_name is defined | bool else omit }}"
    _container_service_name: "{{ container_service_name if container_service_name is defined | bool else omit }}"

- name: include specific variables
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yml"
    - "{{ ansible_facts['os_family'] }}.yml"

then in all files in ./roles/ceph-container-engine/vars/ we would modify variables like this:
$ cat ./roles/ceph-container-engine/vars/Debian.yml
---
container_package_name: "{{ _container_package_name | default('docker-ce') }}"
container_service_name: "{{ _container_service_name | default('docker') }}"

It seems to work but :

not thoroughly tested,
that's adding a bit more complexity,
I'm not sure if it can bring any side effects that wouldn't be caught by the CI

We might prefer to stick to something very basic.
@dsavineau thoughts?

I think the current implementation is simpler than this @guits

I think the current implementation is simpler than this @guits

yes it is

jenkins test centos-non_container-collocation

jenkins test centos-non_container-all_daemons

@clwluvw the two failures aren't related to your patch

@clwluvw the two failures aren't related to your patch

@guits Can it be merged and backport without ci or should wait for ci to be fixed?

jenkins test centos-non_container-all_daemons

jenkins test centos-non_container-collocation


TextViewFormItem and TextFieldFormItem are misaligned

At first, thank you for your work on this great library. It works like a charm!
The only problem I've encountered using version 1.2.0 is, that instances of TextViewFormItem and TextFieldFormItem are shown in full width compared to all other form items, as you can see from the attached screenshot. This problem occurs both on iPad and iPhone.

The code used to create the form is listed below:
    override func populate(_ builder: FormBuilder) {
        builder.navigationTitle = "Image Properties"
        builder += SectionHeaderTitleFormItem().title("Image Properties")
        builder += pickStatusFormField
        builder += starsFormField
        builder += colorFormField
        builder += titleFormField
        builder += subtitleFormField

        // ....
    }

    private lazy var titleFormField: TextViewFormItem = {
        let field = TextViewFormItem().title("Title")
        field.value = self.properties.title ?? ""
        return field
    }()

    private lazy var subtitleFormField: TextViewFormItem = {
        let field = TextViewFormItem().title("Subtitle")
        field.value = self.properties.subtitle ?? ""
        return field
    }()

Thank you for submitting this issue. I'm investigating now.

@pboehm I have updated TextViewFormItem and TextFieldFormItem, so that they now deal with
cellLayoutMarginsFollowReadableWidth. Still there are a few more classes that needs to deal with it.
You can try if the new code works for you
If you have a podfile, you can paste the following snippet as it is. I have inserted the latest commit id, so you don't have to do it.
pod 'SwiftyFORM', :git => 'https://github.com/neoneye/SwiftyFORM.git', :commit => '64c447a22a0502dd0d1658062145f24f243d80f5'

I have made a 1.3.0 release, containing the changes.

Thank you very much for this quick response and solution! I will try it asap.

With version 1.3.1 the issue is gone. Thank you very much!


Double delete of vmdk when PV gets deleted.

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
When deleting a PV, the VMDK is deleted but the delete task is called twice. The first task successes but the second task fails because the VMDK is already deleted.

Create PV using the default vsphere storageclass
Delete PV
Watch logs in vCenter

Result:
Upstream bug: 90770
Other details that may be helpful:
Kubernetes version (use kubectl version): v1.15.5
Cloud provider or hardware configuration: On-perm VMware
OS (e.g: cat /etc/os-release): Ubuntu 16.04.04
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.3.6
Installation option (single install/HA): HA

I am not sure if the successive delete operations are triggered by k8s. The delete operations have the same opID with differing "sub" field. The same opID indicates that the second delete operation did not initiate from rancher/k8s but it could be some internal task triggered inside vCenter.
DELETE SUCCESS:
var/run/log/hostd.log:2020-06-19T00:08:31.300Z info hostd[2796274] [Originator@6876 sub=OsfsClient opID=15f91743-46-f3bc user=vpxuser:VSPHERE.LOCAL\someaccountname] Done deleting objects in directory: /vmfs/volumes/abcdefg-312344b4-1234-xyz628c87f90/kubevols/kubernetes-dynamic-pvc-12345abc-abcd-abcd-bfbb-abcd124axyzy.vmdk
DELETE FAILURE:
var/run/log/hostd.log:2020-06-19T00:08:31.303Z error hostd[2796274] [Originator@6876 sub=Nfcsvc opID=15f91743-46-f3bc user=vpxuser:VSPHERE.LOCAL\someaccountname] file delete force (/vmfs/volumes/abcdefg-312344b4-1234-xyz628c87f90/kubevols/kubernetes-dynamic-pvc-12345abc-abcd-abcd-bfbb-abcd124axyzy.vmdk -> /vmfs/volumes/5e14acac-3cfcc4b4-ea47-b02628c87f90/kubevols/kubernetes-dynamic-pvc-12345abc-abcd-abcd-bfbb-abcd124axyzy.vmdk) by 'vpxuser'

Shared my findings on the upstream issue. See here.
TL;DR:
The second delete operation results in an error message in the kube-controller-manager logs, but it's harmless. Doesn't cause an inconsistent state.


Can't found boost.

Try:
   $ sudo apt-get install libboost-all-dev
If failed again:
  use another computer or re-install your OS to be Ubuntu 16.04.
I use 飞行堡垒 before and just cann't slove it. so I use my friend's computer and the problem just gone.


Collaboration with SecOps on network and monitoring roadmap

Describe the issue
Chris Chen, Austin Henry, Mike Voller wish to be involved in the roadmap for AWS and other clouds, for secure network designs and architecture
Which Sprint Priority is this issue related to?
Additional context
Add any other context, attachments or screenshots
Definition of done

Schedule a meeting lined up for Dec/Jan
Make rough table of contents ( Network design, SDN, IP availability, etc) to cover

waiting on 345 and will action afterwards


Latest Vue.js breaks Programmer

Latest Vue.js breaks Programmer
I have a PR pinning the vue.js to 2.6.14
Here:
https://github.com/electro-smith/Programmer/pull/36

Solved with the merge


Tic tac toe by andal

Sir,
Please review by Specification for the tic-tac-toe game.

@rootanand  Thank you for reviewing my specification sir.


NCDA - Aggregated Scorecard - Dropdown

Issue
The user needs a way to move between the district-sector-cell scorecard and the village scorecard. We are doing this via a dropdown in the top left corner. Drop down options are village and district-sector-cell.

Not relevant for selected implementation. Closing.


duplicate email notification

i'm using the module to check an exchange mail box, but on 1000/1200 messages received per day, i've got more than 100/150 duplicates notifications.
anyone the same issue ?
thanks

As long as they are marked as unread they throw notifications. Collect and check the messageIds.

messageIds identical ... very weird !
may be when there are a lot of email it received a 'mail' event for each and can make 2 scan() simultaneously ... maybe we should allow only one scan at a time ...

here's log that show that i scan at the same times
<= 'IDLE OK IDLE completed.'
=> 'A206 UID SEARCH UNSEEN'
<= '* SEARCH<PHONE_NUMBER>57'
<= 'A206 OK SEARCH completed.'
=> 'A207 UID SEARCH UNSEEN'
<= '* SEARCH<PHONE_NUMBER>57'
<= 'A207 OK SEARCH completed.'
=> 'A208 UID FETCH 358256,358257 (UID FLAGS INTERNALDATE BODY[])'
<= '* 2209 FETCH (UID 358256 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:40 +0200" BODY[] {11246}'
<= '* 2209 FETCH (UID 358256 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:40 +0200"  FLAGS (\Seen \Recent))'
<= '* 2210 FETCH (UID 358257 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:55 +0200" BODY[] {21312}'
<= '* 2210 FETCH (UID 358257 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:55 +0200"  FLAGS (\Seen \Recent))'
<= 'A208 OK FETCH completed.'
=> 'A209 UID FETCH 358256,358257 (UID FLAGS INTERNALDATE BODY[])'
12 Sep 07:32:57 - Done fetching all messages!
<= '* 2209 FETCH (UID 358256 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:40 +0200" BODY[] {11246}'
<= '* 2209 FETCH (UID 358256 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:40 +0200"  FLAGS (\Seen \Recent))'
<= '* 2210 FETCH (UID 358257 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:55 +0200" BODY[] {21312}'
<= '* 2210 FETCH (UID 358257 FLAGS (\Seen \Recent) INTERNALDATE "12-Sep-2017 09:32:55 +0200"  FLAGS (\Seen \Recent))'
<= 'A209 OK FETCH completed.'
=> 'IDLE IDLE'
12 Sep 07:32:57 - Done fetching all messages!

Have you lost connection the underlying imap connection or restarted the listener ?

no connection lost, everything is normal.
I've implemanted a queue manager (with async.js) and now it works well.
i really think that we receive an imap notification for each message, and so we perform a simultaneous search and so for each search we've got the message ...

@sdejean28 I've pushed a branch avoid-multiple-scan to address this specific issue.
I think the issue is related to the scan triggered by the mail event. I suspect that the mail event is fired on the imap connection before the current scan has ended.
Can you try if this branch is fixing your issue ? If it does I'll merge it into the master.
Thanks

I'm a little reluctant to add async (like in your PR #40)  that's why I've created a branch to play around. But after digging into this issue it seems that I need to use some kind of queue to prevent concurrent scans.


change the effect of falling_dust

Change the particle effect of falling_dust to redstone_wire_dust
(more like Minecraft Java's effect)

Any news on merging this

Is this a purely cosmetic change, or is there any actual functionality added?


Could you please publish the specific hyper-parameters for each dataset?

Hi, this is a great work, however for hyper-parameters, you only mentioned:

For model configuration, the learning rate is set to 5 × 10−4, the hidden size is set ∈ {64, 128}, the batch size is set ∈ {32, 128}, weight decay is set to 1 × 10−4, and dropout rate is set ∈ {0, 0.5}.

in the appendix of SEP paper, and I didn't find specific hyper-parameters for each dataset in your code (except for example dataset IMDB-B), could you please publish it? It's important for us to follow your work.

The hyperparameters chosen in this works are listed as follows:

Dataset
Hidden Dim
Batch Size
Dropout
Lr Schedule

IMDBBINARY
64
128
0
False

IMDBMULTI
64
128
0.5
True

COLLAB
128
128
0
False

MUTAG
64
128
0.5
True

PROTEINS
64
128
0
False

NCI1
64
128
0.5
True

DD
64
128
0
True

Thanks for your interest and wish your work well.

The hyperparameters chosen in this work are listed as follows:
Dataset	Hidden Dim	Batch Size	Dropout	Lr Schedule
IMDBBINARY	64	128	0	False
IMDBMULTI	64	128	0.5	True
COLLAB	128	128	0	False
MUTAG	64	128	0.5	True
PROTEINS	64	128	0	False
NCI1	64	128	0.5	True
DD	64	128	0	True
Thanks for your interest and wish you work well.

Thank you for your reply, got it.


🍒 Cherry pick PR #20355 to staging 🍒

🍒 Cherry pick https://github.com/Expensify/App/pull/20355 to staging 🍒

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.25-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.25-8 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


test(negative): fs and io stress implementation

I believe @c3y1huang is doing some refactoring this week to make the current framework better to maintain and extend. Let's wait for her PR merged first before reviewing this PR.

_ No description provided. _

@nitendra-suse Please add the issue number in the commit message/issue description.


page actions on search results

Fixes the following:
https://github.com/divio/django-cms/issues/4377
(publish/unpublish actions showing up in tooltips aren't triggered on search results page)

LGTM at first sight, just needs good testing (especially on tablets)

just when i wanted to comment on the call order you committed it

LGTM


treesitter markdown parser complaining about filetype_to_parsername

Issue Description
Type: bug report
Describe what happened (or what feature you want)
Treesitter is issuing a warning:
filetype_to_parsername is deprecated, please use 'vim.treesitter.language.register
Describe what you expected to happen
No warnings
How to reproduce it (as minimally and precisely as possible)

Configure treesitter as per the README for markdown parsing

local ft_to_parser = require "nvim-treesitter.parsers".filetype_to_parsername
ft_to_parser.octo = "markdown"

Start neovim

Tell us your environment
Ubuntu 22.04, neovim nightly

vim.treesitter.language.register('markdown', 'octo')

https://github.com/nvim-treesitter/nvim-treesitter/pull/4296

Thanks @timtyrrell !


fix(ide): move moudle directory when rename

fix: #10992
Added FileSystemEdit::MoveDir variant for move dirs. Original implemented as recursively move child mod files but had many issues like

left empty dir after rename file
only affect rust file
not performant

so changed to current version

@Veykril Sorry I changed to FileId but the macos CI seems failed unrelatedly? Is it possible to rerun the failed workflow on my side? or is it ok to r+ regardless of CI?

or is it ok to r+ regardless of CI?

It's okay, bors will re-run the tests anyway.

bors r+


Code: InternalServerError, Message: Unknown request

Description
I'm getting {"headers":{},"multiValueHeaders":{},"statusCode":500,"body":"{\"Code\":\"InternalServerError\",\"Message\":\"Unknown request.\"}
Steps to reproduce
sam local invoke --no-event --debug
Observed result
Sending Telemetry: {'metrics': [{'commandRun': {'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam local invoke', 'duration': 4697, 'exitReason':
'success', 'exitCode': 0, 'requestId': 'ebbeca29-14f4-4ba8-bd95-aeb8c4e12b94', 'installationId': '072d408a-950f-4a21-bb6b-cea85e65da65', 'sessionId': '51fac846-dedc-4387-9225-efaf1a4890
e2', 'executionEnvironment': 'CLI', 'pyversion': '3.7.6', 'samcliVersion': '0.41.0'}}]}
HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
{"headers":{},"multiValueHeaders":{},"statusCode":500,"body":"{"Code":"InternalServerError","Message":"Unknown request."}"}
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: Windows 10
sam --version: 0.41.0

Could it be related to samconfig.toml somehow?
oddly there wasn't local_invoke section, but I didn't change anything, except removing samconfig.toml and it worked

I think I got it, in samconfig.toml was build section with custom build_dir, so as I understand, when I run sam local invoke - it used .aws-sam/build instead, but I'm not sure

@plantusd Thats interesting. What did your samconfig.toml look like?

`version = 0.1
[default.local_start_api.paramaters]
port=5400
template_file="template.yaml"
env_vars="env.json"
debug=true
[default]
[default.validate]
[default.validate.parameters]
template-file='template.yaml'
debug=false
[default.build]
[default.build.parameters]
build_dir='target'
base_dir='.'
manifest='requirements.txt'
use_container=false
template_file='template.yaml'
skip_pull_image=true
debug=false
[default.deploy]
[default.deploy.parameters]
template_file='target/template.yaml'
stack_name="StatisticService"
s3_bucket="statistics"
force_upload=true
fail_on_empty_changeset=false
capabilities="CAPABILITY_IAM"
debug=true`

Ah I see.
Your understanding is right.
When a project gets built using sam build, all other commands that need to deal with built artifacts start referencing to .aws-sam/build/template.yaml unless a --template-file option is specified.
When local start api command gets a --template-file option specified it is expecting to find a template where the codeuri contains built artifacts. If the supplied template file does not fulfill those characteristics, it errors out.

Thanks!


fix Test_GetLogsForQuery

Description
Resolves #1835
Changes include

[ ] Bugfix (non-breaking change that solves an issue)
[ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)

Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Checklist

[ ] I have assigned this PR to myself
[ ] I have added at least 1 reviewer
[ ] I have added the relevant labels
[ ] I have updated the official documentation
[ ] I have added sufficient documentation in code

Testing

[ ] I have tested this code with the official test suite
[ ] I have tested this code manually

Manual tests
Please complete this section if you ran manual tests for this functionality, otherwise delete it
Documentation update
Please link the documentation update PR in this section if it's present, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it

I have read the CLA Document and I hereby sign the CLA

Hey @sarvalabs-shravanth, tnx for the PR. Notice that linting is failing, so just please fix it and we are good to go with merging it after you gain one more approval 🙂


Fix warnings

Do not change either receive or packet callbacks when cleaning up sctp connection.

Can you squash these together into a single commit? Looks good otherwise

ok, no problem


Authenticator only generates codes once, then stops

Yubico Authenticator version: 4.3.4
Operating system and version: Windows 10 Enterprise 1803 x64
YubiKey model and version: NEO 3.4.9
Bug description summary: After connecting to the key, reading the secrets, and generating a set of TOTP codes for each entry, Authenticator just... stops. No new TOTP codes are generated. The progress bar remains empty and does not appear to redraw. Exiting causes Authenticator to free for about 30 seconds, during which time the window is gone, but the process still exists, and trying to launch Authenticator causes an error saying that Authenticator is still running.

Steps to reproduce
I think the only step was upgrading from 10 1709 to 1803. Authenticator was working as expected after a clean install of 1709 on bare metal. Since the upgrade, Authenticator started displaying this bizarre behavior. No third-party driver changes were made; unknown whether 1803 contained new in-box drivers with the new build that were related to the USB stack or the CCID or other drivers used by YubiKey. Driver dates are still "2006-06-21".
Expected result
Authenticator should have continued regenerating TOTP codes on each time roll-over.
Actual results
Authenticator stopped generating new codes on roll-over.
Other info
This YubiKey and other YubiKeys (other NEOs, 4 Nano, etc.) work normally on other platforms (10 Enterprise 1709, various Linux desktops, etc.).

I have the same issue.
Same version of Authenticator,Windows and NEO Key. The key works ok on my other pc with Windows 1709. Mode is set to CCID on both computers.
Logs from the following command included.
yubioath-desktop.exe --log-level DEBUG --log-file c:\temp\auth.txt
auth.zip

Is this reproducible with version 5.0.0 ?

Tested 64Bit version 5.0.0 now and it works ok no issues anymore.


golint fixed for parts of routers root, dev, user and org dirs

LGTM

👍

Travis failed

@bkcsoft Please review again.

Current coverage is 3.03% (diff: 100%)

Merging #167 into master will not change coverage

@@            master      #167   diff @@
========================================
  Files           33        33
  Lines         8096      8096
  Methods          0         0
  Messages         0         0
  Branches         0         0
========================================
  Hits           246       246
  Misses        7830      7830
  Partials        20        20

Powered by Codecov. Last update 904deb7...e39731b

LGTM

resolved #70


Starting a Real TiaGo Robot

Dear Pal Team,
first of all, thanks for the great job!
While the gazebo simulation is working fine, there are still some problems when working with the real TiaGo robot.
My real TiaGo is not working properly and I have installed Ubuntu 16 and ROS kinetic on its on-board PC. My goal is to start the TiaGo bot and all its sensors and actuators for navigation. However, when running
roslaunch tiago_bringup tiago_bringup.launch

this error appears:
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 589, in _include_tag
    inc_filename = self.resolve_args(tag.attributes['file'].value, context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args
    return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 370, in resolve_args
    resolved = _resolve_args(resolved, context, resolve_anon, commands)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 383, in _resolve_args
    resolved = commands[command](resolved, a, args, context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 151, in _find
    source_path_to_packages=source_path_to_packages)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 197, in _find_executable
    full_path = _get_executable_path(rp.get_path(args[0]), path)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 207, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: pal_local_joint_control
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/pal/code/catkin_ws/src
ROS path [2]=/opt/ros/kinetic/share

I cannot find the package pal_local_joint_control anywhere and in one of your answers, you have mentioned that it is an internal package of yours. Will it be released anytime soon? What other alternative is there to start the real TiaGo motors and sensors? Is there any documentation online to setup and start a real TiaGo robot?
In case you ask: the natively deployed OS (with Ubuntu 14.04.) is not working properly, it doesnt broadcast a network to connect to and also no laserscan and odom is published. The laser scan launch files seem corrupted when trying to start them manually. Teleoperation is working fine though and the robots head and arms are moving, the lights on the side are on and I can teleoperate the robot. However, everything else seem broken, which is why I decided to install Ubuntu from scratch and run the packages manually.
Thank you!

Dear @linhdoan8,
Thank you for writing to us. Regarding your issue, you cannot install the standard Ubuntu and ROS on a normal development machine. The robot usually comes with Ubuntu, standard ROS packages, and an overlayed ROS distribution from PAL Robotics, this also includes the RT Kernel patch, motor configurations, startup manager, and so on. You won't be able to run the TIAGo Robot without this configuration and package setup.
In order to have the issue properly resolved, you will need to install the distribution provided by PAL Robotics. You can open a support ticket at support.pal-robotics.com and request support for this. We hope this helps to solve your issue.
Thank you,
Best Regards,
PAL Robotics Team.

Dear @saikishor ,
thank you very much for your swift reply! Good to know! However, I am not able to login to the support portal as I am not a member. Also, the PAL websites are all down.
I have found two USB sticks, one with "Tiago Software", one with "Tiago System". The "Tiago System" Stick will install a very basic Ubuntu 14 terminal-only version. I assume that the second USB stick with "Tiago Software" will install the ROS distribution from PAL. If it is possible here, can you tell me, how I can install it with this stick? Or if there is any documentation online? I tried booting with the stick but it doesn't seem to work. Also, I don't see any option to install it from the terminal-only Ubuntu 14 distro installed with the other stick. Unfortunately, there is no printed documentation or anything related to the TiaGo robot left in the lab besides those 2 Sticks. Hope for your reply.
Thank you very much and best regards,
Linh

Hello @linhdoan8,
Thank you for getting back to us. The ISOs we provide usually contain 2 installations, one for the robot and another for the development computer. We apologize for the issues you are facing with the website and the support system. I kindly request you to drop in an email to the<EMAIL_ADDRESS>along with your specific TIAGo serial number and details, so we can check tomorrow and get back to you ASAP.
Thank you,
Best Regards,
PAL Robotics Team.

Hello @linhdoan8,
I'll be closing this ticket and you have already been in contact with our support team. We wish you a great day.
Thank you,
Best Regards,
PAL Robotics Team

Dear @saikishor,
thanks for your help! After contacting the support team, they sent me documentation on how to install the Tiago system from scratch using the 2 ISOs. In case someone faces the same experience, I have described the steps here.
Thanks again and best regards,
Linh

Hello @linhdoan8,
We are happy to know that your issue is resolved. We hope you will enjoy your experience with our TIAGo.
Have a great day,
Best Regards,
PAL Robotics Team.


WIN7 Surpport

Hope to add win7 support

I'm not going to attempt this, as I don't have the bandwidth, and Windows 7 is no longer interesting for me (and not officially supported by MS).
However, you could give it a try just by recompiling with a lower NTDDI value corresponding to Windows 7.


Special character at end of search string

I have encountered what seems to be a parsing issue with a special character at the end of a search string. Example: [Dd]okū is not autolinked correctly, whereas if I do [Dd]okūs or [Dd]okū word, it does. But Dokū and dokū both work correctly, so that is what I do now instead. Would you have any idea on what is going on?

Sorry for the long delay. This is probably issue #2 , which is a bug in DokuWiki itself. There's a work-around in that issue.

Thanks for your reply. I have tried that already and still having an issue. To clarify: when I make a rule for [Dd]okū, it does not recognize either dokū or Dokū. When I make a rule for dokū and Dokū separately, it works. Any other idea?

When there aren't any regular expression characters (like "["), the code takes a much simpler and faster path to detect automatic links. There are some oddities with the Doku regular expression parser. This might need another Doku hack similar to the one in issue #2.
I'll keep this issue open, but I'm not sure when I'll have a chance to look into it.

I was going to report on this, but found this older issue first... Will look at that workaround now.
This plugin is really amazing, all your plugins are, and you helped me with a custom solution in the past (purplenumbers and autolink) so thanks again for that! Just wanted to say that. :)

That's a good point. The "once" flag works with specific text, not regular expressions. I've submitted issue #21 for this, and fixed it.
And thank you! I'm glad you like the plugins!

I found this on your plugin's page:

I applied the patch, and now I don't need the inword flag. I think that is better suited to Chinese and such anyways.


libbpf ERRO

ubuntu@ubunu2004:~/Desktop/XDP-Firewall$ sudo xdpfw -s
libbpf: elf: skipping unrecognized data section(8) .xdp_run_config
libbpf: elf: skipping unrecognized data section(9) xdp_metadata
libbpf: elf: skipping unrecognized data section(20) .eh_frame
libbpf: elf: skipping relo section(21) .rel.eh_frame for section(20) .eh_frame
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: prog 'xdp_pass': BPF program load failed: Invalid argument
libbpf: prog 'xdp_pass': failed to load: -22
libbpf: failed to load object '/usr/local/lib/bpf/xdp-dispatcher.o'
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
libbpf: elf: skipping unrecognized data section(7) xdp_metadata
Loaded XDP program on mode SKB/generic.
Packets Allowed: 0 | Packets Dropped: 0
Is that correctly working? should I ignore these above?

Hey, I apologize for the long delay (I've been really busy recently)! The warnings/errors above can be ignored, it just has to do with the XDP Dispatcher from xdp-tools trying to load a  xdp_pass XDP test program.
When I have the time, I will look into skipping this test in the future.


e2e tests do not work on OpenShift

The e2e tests does not work on openshift bc:

https://github.com/jaegertracing/jaeger-operator/blob/610d415ca5dfe2f14b2f06f4a3bef3fa5520457b/test/e2e/daemonset.go#L143
personally on minishift I could not select default namespace and our tests depend on services (es, cassandra) deployed in default namespce

cc @kear

Most of the work here is done.  There are two small bugs left, #326 which is a fix to get the all-in-one-with-ingress test working on OpenShift, and #327 for the DaemonSet test, which is currently blocked by #322.  I think this can be closed.


window.analytics: switch to window.AppcuesSegmentAnalytics

that's embarassing, did not mean to PR this to rangle/redux-segment.

😅 No worries.


Failed to create album. Bad Request.

I used your library to upload >10.000 photos. Suddenly uploading failed with
Uploading [=======================================================================================] 100% 0.0s
ERROR Failed to create album. Bad Request
ERROR Error: Bad Request
at GPhotos. (C:\snapshot\project\lib\index.js:113:39)
at next (native)
at fulfilled (C:\snapshot\project\lib\index.js:4:58)
at process._tickCallback (internal/process/next_tick.js:109:7)
Any Ideas?

Thanks for reporting.
Google Photos changed internal API recently.
I'll rewrite but it takes long time for fixing.
Related to https://github.com/3846masa/upload-gphotos/issues/280.

@rude78
I released v2.0.12 for fixing issue, please try it.

Thx. This solved the issue.


Add Discord link | [FEATURE 😍]

Is your feature request related to a problem? Please describe.
Your README has link to your LinkedIn account. I, for a fact, know that you are also a Discord user.  Not everybody is very active on LinkedIn.
Describe the solution you'd like
Would be great if you can also add that username here, as not everybody is highly active on LinkedIn. The more, the merrier.


#219 Optical Flow

This script is having Lucas Kanade and the dense optical flow method.

Thanks for approving @geekquad . 😁😀


⚠ Bofrost.de has degraded performance

In da152ba, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1872 ms

Resolved: Bofrost.de performance has improved in 7e87395 after 1 hour, 15 minutes.


PRTG refactor: formatting, readme updates

Changes based on review, hopefully there won't be any need for more major changes after this

Thanks for that

Cheers Alec


Add notes for last two meetings of August 2024

Looks like we have consensus, so I'll merge. Thanks everyone!


Fix linux and mac builds of all packages up to ilastik-meta

Works smoothly for me now on linux and mac.
There were a bunch of fixes to make it more robust:

added per-project build flags for conda
get the output filename from conda render because only that contains the newly added hash that we need when we want to upload the resulting package
save the rendered meta.yaml file to disk instead of reading it from stdout, because the console might be cluttered with other outputs from build.sh etc
fixed mismatch of no_tests and no-tests

@stuarteberg any objections?

Dang, this needed more changes than I would have guessed.  Thanks for figuring all this out.
BTW, since you now support per-project build flags, I guess there's no need for the no-test option.  We should just get rid of it soon.


feat(subscriptions): extract exchange's queue based subscriptions into a generic package

Closed by #305


Add NFT serialization

Closes: #17
Description

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the standards mentioned here.
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


logging: attempt to fix high memory on history

This patch is an attempt to fix high memory noticed on the history service. Heap profile shows logger.WithTags -> zapcore.With -> zapcore_ioCore.clone -> jsonEncoder.clone -> buffer.NewPool consuming close to 15% of runtime heap (see attached heap profile). This happens only in a couple of places in code where history service calls logger.WithTags. Upon investigation, I noticed the jsonEncoder in zap needs a bytes.Buffer (with initial size of 1k) for each invocation of log.{Info, Debug, Warn...} and each invocation of log.WithTags(..). To reduce cost, it maintains a buffer pool of these byte buffers. This buffer pool should be very effectively since logger print calls are typically short lived. However, there are couple of places in history service where we call logger.WithTags in the constructor of objects that are somewhat long lived and so, the buffers wouldn't be released soon enough back to the pool.
This patch attempts to fix the issue based on the above hypothesis. It simply gets rid of WithTags on the hotspots and instead passes the tags for every call to logger.{Info, Debug} etc within those objects. If this solution works, then we can think about creating a general purpose utility class in the logger package for this.

Coverage increased (+0.5%) to 67.07% when pulling e1ed1d0ee064cb1c227399d0654e72b45f78570e on venkat1109:v_mem_fix into 505a79e0475a50bc967e0969fad74619d72ddd76 on uber:master.


S2s dialback/tls handling

I moved all of the dialback handling to the initial-server-process and ignored the fact
that many server uses already established connections for the authoritative-step.

I have no idea why tests sometimes fail and sometimes not... well


block xink.io email tracking

Here's a partial description of their paid service:
Extend email marketing campaigns to email signatures. Schedule, segment and track email signature campaigns. Drive targeted traffic to your web pages and social media, with great analytics.

Hi @SchnWalter thank you for this.
The file you modified is generative. It gets recreated each time we create a release.  It is assembled and de-duplicated from sources found in the data and extensions folders (depending on which hosts variant is used.
This is all explained in this repo's many readme files 😄
Ping @jawz101 maybe i.xink.io and t.xink.io are two you could carry?

Closing this PR.

not something I want to include in the mobile-oriented list.  Maybe a list related to spam.


Unable to activate windows - with fix - error 0x80070422

https://www.thewindowsclub.com/windows-10-activation-error-0x80070422

https://github.com/simeononsecurity/Windows-Optimize-Harden-Debloat/commit/904eb349db304074fb4f2d2840e376b80633a379


Add OTEL to scala provider.

All Submissions:

[ ] Have you added a note in the CHANGELOG wiki for your change?
[ ] Have you added unit tests for your change?

Sorry for being late, but wouldn't this now remove the traceparent logic from all the adjustments, and only add it for the scala adjustment? (also, I am not sure where the TRACEPARENT env variable was used, but I assume it's ok to be removed?). thanks!


Clear out HTML plot

Clears out all history from Bokeh before generating each ROI trace plot. Appears that lingering data from previous runs in the same Jupyter session was finding its way into the HTML file resulting in its size growing drastically. This fixes that problem.
Also goes ahead and removes the HTML file before saving a new one. Mainly avoids a warning issued by Bokeh about overwriting of the file. However, could also avoid some edge cases that we have experienced primarily with HDF5 and Docker.

This actually results in a sizeable saving. Say the file had size s after the first run and we re-ran it n times. Then the file would be size n*s.

cc @dudmanj

Opened issue ( https://github.com/bokeh/bokeh/issues/5681 ) upstream describing the problem encountered here.


Implement logging in main() from query param

https://github.com/expenses/mateversum/blob/master/src/lib.rs#L51
Problem: web worker main thread - different global object - not window.foo, but rather worker.foo
To solve: should just be as easy as passing the query param into console_log::init_with_level ?
From https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location
console.log(location); inside a worker should return an object->href shaped like http://localhost:8000/worker.js, which might not contain the query params passed by the user.

Could pass the query params from orig url when we start the workers. But might be easier to just postMessage the relevant data directly to the workers on worker init.


cli: Add limit command for managing resource limits

@titanous comments addressed, as well as assigning default limits to one-off jobs.

LGTM


Adding list of bound service instances of an app in the 'cf app' command

What's the user value of this feature request?
One of the first commands that operators and developers look to get a summary of the details of an app is the cf app. As such this command has become the quick stop quick details of an app. This command is especially crucial to SRE and support engineers to get a quick glance of the details of the apps in downtime and provide quick details.
My request is that it would be really great if the command would also provide the list service-instances that the app is bound to.
During downtimes and firefights, it becomes very necessary to get such details as quick as possible.
Current methods include:

cf env: Too verbose for quick glances
cf services | grep app-name: Not the most intuitive approach when a simple command should give it and time-consuming if there are a large number of services in a given space.
cf curl /v2/apps/:app_guid/service_bindings: again to verbose and wordy for quick glances

Who is the functionality for?
All users for the cf CLI especially operators/deployer of the app, SREs, Support Engineers etc who need to get a quick summary of everything related to the application.
How often will this functionality be used by the user?
Many a time, I've heard service engineers say if there was a one-stop to get this detail in a single go of the app summary. The cf app is one of the most common commands used for getting details of the app, (probably even the first command used) Whenever there is a need to know a summary of the deployed application.
How often will they use this feature?
Quite often, Whenever there is a need to know a summary of the deployed application
Who else is affected by the change?
As the output is not JSON and designed to be Human/Reader-friendly, no it should not break anything. Code implementation when the app calls v2/v3 APIs will need be checked..
Is your feature request related to a problem? Please describe.
Whenever I need to quickly get a glance of services bound to an app I have to always go through the cf env or go to the application's manifest to see bound app or list
or grep through cf service and then skim through.
Describe the solution you'd like
This is a small addition to the existing set of info. It would be much better if just like how running instances are provided with the list of bound service instances and type are listed.
since an API is already available it just needs to be added to the cli call
Describe alternatives you've considered
As of now, the alternatives are the said steps mentioned above
Additional context
Possible Hiccup....V3compatibility
Anyhow, I would love to work on this provide a PR if it seems to be a worthy add on :)

Hi @vipinvkmenon many thanks for creating this feature request. I'm curious as to whether cf routes which lists the service and the bound apps would be suitable for your needs? Or cf service. Thanks for your feedback.

Hi @abbyachau. Thank you for your response. 😄
However, no it does not serve the immediate purpose. 😞
You are right in the sense that cf routes | grep app-name   will give me the routing-service-instances bound to the app and cf services | grep app-name will give me the list. However, these are additional commands that need to be run, making it more or less indirect and tedious to get the info for a single application.  Again, if the number of routes or the number of applications in a given space is large, this is slightly time-consuming.
The context of this particular request is mainly to improve the time for operations for various engineering teams.
Currently, an engineering team in order to get a summary of the application (where, please note: time is of the essence, especially for support-teams, L1 teams, SRE etc), will need to go through multiple commands to get them.
As mentioned earlier the intent of this particular feature is, to quickly provide the details of all the bound service-instances for a particular/single app.
It is in the interest of time to provide this quick summary with a single command rather than running through multiple commands to get the quick details/summary of the application.
Therefore it has been a common wish that the cf app provides some more details in the app summary, mainly list of bound service-instances.
What I mean is,  when I do cf app App-Name I should be able to give the list of bound service-instances along with the application stats in a single command.
Based on my experience and interactions fellow engineers I believe it is an enhancement that will add good value to the.  Looking forward to hearing from you 😄.

Hey @vipinvkmenon thanks for those details. We don't plan on enhancing the app display on v6 cli but can start a conversation about v7 cli. How many service instances, on average, would you say you have bound to an app? And would additional details like status of the service instance be interesting as well? Thanks.
cc @addytripathi @waterlink

Hi @abbyachau
Thank you for your response.  We've had instances where we've seen applications bound up to even 7 service instances.  Yes getting the status of each service is a requirement. The most immediate need is the summary of the list of bound service instances.
There have been cases where a given deployment in a space has 10+ microservices and a lot more service-instances bound to them. It becomes a great effort when a given space has a large number of applications service-instances and doing
cf services | grep <my-app> becomes time consuming.
Therefore, you see, getting the immediate summary of bound services is very much needed...


Add h.265 (hevc) support

+1.
Very useful.
As of today (24.07.2016) -- the only browser that supports HEVC is Chrome for Android, assuming Android 5.x+

Duplicate of #1576, now available at http://caniuse.com/#feat=hevc


doc: adjust nightly release description

Closes #5311

Release Note
doc: adjust nightly release description

No need to run checks for this.


Support Astro

Add your vote for Astro support by clicking the 👍 emoji below.

Worth mention that we do support type-safe markdown in Astro today! See the Astro.glob reference + the MarkdownInstance type. This is missing a few key pieces though:

a shared schema for markdown frontmatter
integration with headless CMSes for similar import-ability. This second piece would be huge for Astro's content story!

Also worth mentioning: we use asynchronous imports of the markdown content rather than synchronous. This is vital for building landing pages, where users can bypass rendering the content itself and just iterate over frontmatter. I'd definitely recommend that Contentlayer do the same in Vite environments.

Is there any a progress or ranking of all integrations like Next in line? I believe the work has started on Vite but wonder what will follow (obviously with Astro in mind).

@sokirill We have a roadmap, which is meant to share what we have planned, though it may change.
We don't have many upcoming frameworks or content sources listed. We're working through the priorities and will be updating the roadmap over the next couple weeks.

Hi friends,
Reusing a decent amount of the next-contentlayer code, I was able to get files to be generated on change (in dev server mode) and in build. A lot of it was getting Vite to play nice.
Files are now generated, but I'm getting an error:
error   Missing "./generated" export in "contentlayer" package
  File:
    /Users/timfee/Sites/astro-contentlayer/src/pages/index.astro

If anyone wants to help tweak this, I can talk to the Astro folks to see what an alpha version could look like. (Though, NB I haven't really played around with any of the advanced mdx stuff Astro tries to build in, but this could be a workable interim solution for folks w/o complicated setups)
https://github.com/timfee/timfee-astro-contentlayer

I want to try use with bun.sh and codegen, maybe this package contains something special 😂❤

Hi folks,
Do you consider to support Astro in the next year?
In my company we're exploring Astro and we're very happy. Also we build something similar to contentlayer but it's not our goal it's only means to an end.
I didn't knew about contentlayer before but it looks like a cool project that can be a part of our internal tool but support for Astro and Markdoc would be approciated.
Best

@zdunecki Content collections should be a good pick in the meantime! Curious if you've explore those yet or have any feedback for the team?


fix: could not do "Edit in StackBlitz" due to prettier format api throw error

This pull request addresses an issue where users were unable to use the Edit in StackBlitz feature due to an error thrown by the prettier.format API.
The following changes have been implemented:

imported the estree plugin as a solution to the aforementioned error, following the discussion in prettier/prettier#15473
updated the prettier version due to the types issue detailed in prettier/prettier#15136
also fix the development script's launch error, keep it same with docgen.ts

@stevenpetryk hope you find this fix helpful~


Update Game Jam copy and button text

[ ] Replace the existing copy in the Game Jam section with this:

Go beyond the Hour of Code and use the skills you gained to either modify your existing game or create something brand new to submit to the Game Jam!  MakeCode is proud to announce that we are partnering with the US State Department to bring you a Global MakeCode Arcade Game Jam!

[ ] Also change the copy on the button to "Learn More" as this is going to redirect to a Game Jam landing page.

fixed by sonia


Update P_blobs.py

Thank you very much Good Friend. This unsupervised learning particular approach is very interesting to commit to. I've just started the study of this your compelling and very valued work project, theory, codes, approach, which I want to work in your team, I need to understand it fully.
I've previous experience in software engineering, debugging, optimizations, coding, image processing, ANN, Engineering algorithms, the best human friendly approach is to help each other, I need help to get hired, once a month, recurring monthly fin. Support as a salary in exchange to my commitments.
I am not in Boston, they unreasonably undermine/diminish me in Southern Ukraine, it is needed to save our souls, mine in particular, so m asking S.O.S., see sober worker, researcher/developer in me

https://www.guru.com/freelancers/constrcodingranddtecheng
**You need to scale. I just need to get employed/hired in an orderly way.
If you will transfer salary to me monthly, only 1 day the accounting will take, the rest I will be working for you + novelty.
What do you need in order to take me on board, working regularly and long-term for you?**


/usr/include/c++/6/cmath:45:23: fatal error: math.h: No such file or directory

Hi,
config:
Ubuntu: 18.04
gcc: 5.5, 6.5, 7.3
cuda: 9.1
python: 3.7
pytorch: 1.0
This issue is related to some posted issues. Sorry for repetition.
I am sure the error is related to the version of cuda, gcc. For now, I changed the version of gcc (using update-alternatives) and the wheel of pytorch (compiled using different cuda).
I obtain the error below. Any pointer is much appreciated!!! thanks
Since the error points to missing headers, I reinstalled:
sudo apt install --reinstall libstdc++-{5, 6, 7}-dev.

But the error persists.
Traceback (most recent call last):
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 946, in _build_extension_module
    check=True)
  File "/home/brian/anaconda3/lib/python3.7/subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3291, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-99c8874721c0>", line 1, in <module>
    runfile('/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/test.py', wdir='/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1')
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/test.py", line 3, in <module>
    from deepmil.deeplabv3 import Res_Deeplab
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/deepmil/deeplabv3.py", line 17, in <module>
    from libs import InPlaceABN, InPlaceABNSync
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/__init__.py", line 1, in <module>
    from .bn import ABN, InPlaceABN, InPlaceABNSync
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/bn.py", line 10, in <module>
    from .functions import *
  File "/home/brian/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/183.5912.18/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/functions.py", line 18, in <module>
    extra_cuda_cflags=["--expt-extended-lambda"])
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 645, in load
    is_python_module)
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 814, in _jit_compile
    with_cuda=with_cuda)
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 863, in _write_ninja_file_and_build
    _build_extension_module(name, build_directory, verbose)
  File "/home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 959, in _build_extension_module
    raise RuntimeError(message)
RuntimeError: Error building extension 'inplace_abn': [1/3] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/TH -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/THC -isystem /usr/include -isystem /home/brian/Venvs/pytorch.1.0.1/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o
FAILED: inplace_abn_cuda.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/TH -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/THC -isystem /usr/include -isystem /home/brian/Venvs/pytorch.1.0.1/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o
In file included from /usr/include/crt/math_functions.h:8835:0,
                 from /usr/include/crt/common_functions.h:271,
                 from /usr/include/common_functions.h:50,
                 from /usr/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/include/c++/6/cmath:45:23: fatal error: math.h: No such file or directory
 #include_next <math.h>
                       ^
compilation terminated.
[2/3] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/TH -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/THC -isystem /usr/include -isystem /home/brian/Venvs/pytorch.1.0.1/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/src/inplace_abn_cuda_half.cu -o inplace_abn_cuda_half.cuda.o
FAILED: inplace_abn_cuda_half.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/TH -isystem /home/brian/Venvs/pytorch.1.0.1/lib/python3.7/site-packages/torch/lib/include/THC -isystem /usr/include -isystem /home/brian/Venvs/pytorch.1.0.1/include/python3.7m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /mnt/0890ce70-3387-4496-a36e-fe2ed1d8596f/research/code/glas-1/libs/src/inplace_abn_cuda_half.cu -o inplace_abn_cuda_half.cuda.o
In file included from /usr/include/crt/math_functions.h:8835:0,
                 from /usr/include/crt/common_functions.h:271,
                 from /usr/include/common_functions.h:50,
                 from /usr/include/cuda_runtime.h:115,
                 from <command-line>:0:
/usr/include/c++/6/cmath:45:23: fatal error: math.h: No such file or directory
 #include_next <math.h>
                       ^
compilation terminated.
ninja: build stopped: subcommand failed.

Fixed.
Cause of the issue: mismatch of the gcc, cuda versions (pytorch pre-compiled version made things worse).
Ubuntu: 18.04
Fix:

Install cuda 10.0 (https://developer.nvidia.com/cuda-10.0-download-archive)
Switch to gcc 7.3 (if you have many versions of gcc use update-alternatives. Ubuntu 18.04 comes by default with gcc 7.3.)
Install the pytoch wheel for the version 1.0.0 for cuda 10.0: cu100/torch-1.0.0-cp37-cp37m-linux_x86_64.whl
If you have many versions of cuda: add the following to ~/.bashrc and specify the cuda version you intend to use:

CUDAVER=cuda-10.0
export PATH=/usr/local/$CUDAVER/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib64:$LD_LIBRARY_PATH
export CUDA_PATH=/usr/local/$CUDAVER
export CUDA_ROOT=/usr/local/$CUDAVER
export CUDA_HOME=/usr/local/$CUDAVER
export CUDA_HOST_COMPILER=/usr/bin/gcc-7.3

Closed.

To include files, use isystem instead of I. That's it!

cudatoolkit 11.2 / or change to latest version - https://developer.nvidia.com/Cuda-downloads
add to ~/.bashrc or ~/.zshrc
CUDAVER=cuda-11.2
export PATH=/usr/local/$CUDAVER/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib64:$LD_LIBRARY_PATH
export CUDA_PATH=/usr/local/$CUDAVER
export CUDA_ROOT=/usr/local/$CUDAVER
export CUDA_HOME=/usr/local/$CUDAVER
export CUDA_HOST_COMPILER=/usr/bin/gcc-10

Fixed. Cause of the issue: mismatch of the gcc, cuda versions (pytorch pre-compiled version made things worse).
Ubuntu: 18.04
Fix:

Install cuda 10.0 (https://developer.nvidia.com/cuda-10.0-download-archive)
Switch to gcc 7.3 (if you have many versions of gcc use update-alternatives. Ubuntu 18.04 comes by default with gcc 7.3.)
Install the pytoch wheel for the version 1.0.0 for cuda 10.0: cu100/torch-1.0.0-cp37-cp37m-linux_x86_64.whl
If you have many versions of cuda: add the following to ~/.bashrc and specify the cuda version you intend to use:

CUDAVER=cuda-10.0
export PATH=/usr/local/$CUDAVER/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib64:$LD_LIBRARY_PATH
export CUDA_PATH=/usr/local/$CUDAVER
export CUDA_ROOT=/usr/local/$CUDAVER
export CUDA_HOME=/usr/local/$CUDAVER
export CUDA_HOST_COMPILER=/usr/bin/gcc-7.3

Closed.
ImportError: /root/.cache/torch_extensions/py310_cu121/nvdiffrast_plugin_gl/nvdiffrast_plugin_gl.so: cannot open shared object file: No such file or directory


Deleting source file causes infinite error

Hi, "dogo" is really simplifying my workflow, thank you guys for creating and maintaining this utility but one thing makes me sad sometimes.
Let's say I have the following scenario:

Create new file(let's say "test.go")
Start "dogo"
Remove file

In result "dogo" will constantly log: stat %filepath%: no such file or directory and I need to restart in order to continue the auto build. I'm using the latest version on OS X El Capitan by the way.

dogo only monitor file modification event on mac osx. can not monitor the creation and deletion.
If I have a mac computer, will improve this feature.
If you can help me to improve it, please submit a pull request, be grateful.

Hi, @liudng, thanks for a response. I'll be happy to implement this.
But I was thinking about replacing existing filesystem checks with fsnotify library which is a bridge for fs libraries for all platforms. What do you think about this? Or should I only update existing OS X code?

Update os x implementation first. Use fsnotify will be another architecture, May be implemented in future releases.


nixos: It would be nice if hashedPasswordFile could be set to a path

Issue description
At the moment, users.users.<name>.hashedPasswordFile has to be set to either null or a string:
      hashedPasswordFile = mkOption {
        type = with types; nullOr str;

As a result, I end up doing this in my config:
{
  users.users.root.hashedPasswordFile = builtins.toString pathToFile;
}

It would be nice if I didn’t have to do builtins.toString here. It’s kind of weird that you have to represent this particular path as a string because the Nix expression language already has a data type specifically for paths.
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.9, NixOS, 24.05 (Uakari), 24.05.4847.44a71ff39c18`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

That's not a good idea because the file would end up in the Nix store.
see https://github.com/NixOS/nixpkgs/pull/78640


Update zh_cn.json

Thank you very much! Are you okay with being credited by your Github username? 😁

Thank you very much! Are you okay with being credited by your Github username? 😁

OK: )


Set headers doesn't work in CustomTabsIntent

Summary
Hello. This issue is not about this repo, and I do not know where the appropriate repository is to raise this issue.
Please forgive me if I am in the wrong place and if you can guide me.
I use this code to send a Authorization header and it works in older browsers, but it doesn't work in newer browsers. Is there a way to send the header???
I also posted this issue on stackoverflow but did not receive a response.
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
CustomTabsIntent customTabsIntent = builder.build();

Bundle headers = new Bundle();
headers.putString("Authorization", ApiKey.getToken());
customTabsIntent.intent.putExtra(Browser.EXTRA_HEADERS, headers);
customTabsIntent.launchUrl(this, Uri.parse(url));

Please, check out this StackOverflow answer. This document explain which headers are always OK and how to sending custom non-CORS headers.