text:
MOV file takes 30s to load from S3 bucket

Hello,
I have loaded multiple files from S3 without issue but then got to one that takes 30s to load from S3 vs 4s from local storage.
The file is 6.6GB and other files much bigger (35 or 45GB) load in 2s from S3.
Below is the result of mediainfo --Full --Output=XML command. I can provide a signed url to help reproduce.
I can also run other tests if needed. Happy to help.
Thanks!

<?xml version="1.0" encoding="UTF-8"?>
<MediaInfo
    xmlns="https://mediaarea.net/mediainfo"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://mediaarea.net/mediainfo https://mediaarea.net/mediainfo/mediainfo_2_0.xsd"
    version="2.0">
<creatingLibrary version="19.07" url="https://mediaarea.net/MediaInfo">MediaInfoLib</creatingLibrary>
<media ref="https://xxxx.s3.eu-west-1.amazonaws.com/UHD_trimmed.mov?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxx%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221019T150900Z&X-Amz-Expires=xxxx&X-Amz-SignedHeaders=host&X-Amz-Signature=xxxx">
<track type="General">
<VideoCount>1</VideoCount>
<AudioCount>1</AudioCount>
<OtherCount>1</OtherCount>
<FileExtension>mov?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxx%2F20221019%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20221019T150900Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=xxxx</FileExtension>
<Format>MPEG-4</Format>
<Format_Profile>QuickTime</Format_Profile>
<CodecID>qt  </CodecID>
<CodecID_Version>0000.02</CodecID_Version>
<CodecID_Compatible>qt  </CodecID_Compatible>
<FileSize>7092722865</FileSize>
<Duration>60.019</Duration>
<OverallBitRate_Mode>VBR</OverallBitRate_Mode>
<OverallBitRate>945397006</OverallBitRate>
<FrameRate>25.000</FrameRate>
<FrameCount>1500</FrameCount>
<StreamSize>37553</StreamSize>
<HeaderSize>20</HeaderSize>
<DataSize>7092685332</DataSize>
<FooterSize>37513</FooterSize>
<IsStreamable>No</IsStreamable>
<Encoded_Application>Lavf58.20.100</Encoded_Application>
<extra>
<FileExtension_Invalid>braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v</FileExtension_Invalid>
</extra>
</track>
<track type="Video">
<StreamOrder>0</StreamOrder>
<ID>1</ID>
<Format>ProRes</Format>
<Format_Profile>4444</Format_Profile>
<CodecID>ap4h</CodecID>
<Duration>60.000</Duration>
<BitRate_Mode>VBR</BitRate_Mode>
<BitRate>944539010</BitRate>
<Width>3840</Width>
<Height>2160</Height>
<PixelAspectRatio>1.000</PixelAspectRatio>
<DisplayAspectRatio>1.778</DisplayAspectRatio>
<Rotation>0.000</Rotation>
<FrameRate_Mode>CFR</FrameRate_Mode>
<FrameRate>25.000</FrameRate>
<FrameCount>1500</FrameCount>
<ChromaSubsampling>4:4:4</ChromaSubsampling>
<Delay>0.000</Delay>
<StreamSize>7084042576</StreamSize>
<Language>en</Language>
<extra>
<Codec_configuration_box>glbl</Codec_configuration_box>
</extra>
</track>
<track type="Audio">
<StreamOrder>1</StreamOrder>
<ID>2</ID>
<Format>PCM</Format>
<Format_Settings_Endianness>Little</Format_Settings_Endianness>
<Format_Settings_Sign>Signed</Format_Settings_Sign>
<CodecID>in24</CodecID>
<Duration>60.019</Duration>
<BitRate_Mode>CBR</BitRate_Mode>
<BitRate>1152000</BitRate>
<Channels>1</Channels>
<ChannelPositions>Front: C</ChannelPositions>
<ChannelLayout>C</ChannelLayout>
<SamplingRate>48000</SamplingRate>
<SamplingCount>2880912</SamplingCount>
<BitDepth>24</BitDepth>
<Delay>0.000</Delay>
<Delay_DropFrame>No</Delay_DropFrame>
<Delay_Source>Container</Delay_Source>
<StreamSize>8642736</StreamSize>
<StreamSize_Proportion>0.00122</StreamSize_Proportion>
<Language>en</Language>
<Default>Yes</Default>
<AlternateGroup>1</AlternateGroup>
</track>
<track type="Other">
<StreamOrder>2</StreamOrder>
<ID>3</ID>
<Type>Time code</Type>
<Format>QuickTime TC</Format>
<Duration>60.000</Duration>
<FrameRate>25.000</FrameRate>
<TimeCode_FirstFrame>00:00:00:00</TimeCode_FirstFrame>
<TimeCode_Striped>Yes</TimeCode_Striped>
<Language>en</Language>
<Default>No</Default>
</track>
</media>
</MediaInfo>

4s from local storage

It is already a lot, I guess that we read too much content from the file, local or S3, and on S3 impact is higher.

I can also run other tests if needed. Happy to help.

Start by adding  --ParseSpeed=0, it says to the parser to try to reduce the count of frames to analyze.

I can provide a signed url to help reproduce.

It would help to understand how much data is read. You can send the link to my email address.

Just sent the signed url. Results with ParseSpeed below.
With --ParseSpeed=0:
real    0m10.248s
user    0m1.196s
sys     0m0.842s
Without:
real    0m33.225s
user    0m3.238s
sys     0m2.178s

Issue is due to FFmpeg glbl atom not supported and making the ProRes parser try to load 10 seconds of data for detecting valid content while being in a bad state.
Fixed by rejecting "bad" ProRes content if this situation appears in another case + good support of glbl atom so no parser bad state. Bonus is that you get the color range (limited/full) found in glbl atom.
On my machine (far from the S3 bucket, I guess):
S3 before: 300 seconds, after fix: 7 seconds (with  --ParseSpeed=0: 2 seconds)
local SSD before: 700 ms, after fix: 120 ms
Development snapshot Win/Mac, development snapshot Linux
Note:  --ParseSpeed=0 should be used only if you are not interested in e.g. GOP structure detection for AVC content or in catching CEA-608 captions or in catching hidden Dolby E streams.

Fabulous, thanks!

authors: JeromeMartinez nywhere

repo: MediaArea/MediaInfo


text:
Is there anyway to set the output Language?

I have notice there is a function
MediaInfoLib::MediaInfo::Option_Static("Language", "fr");

But, it seems not work!
Do I miss anything?

For reducing the size of the library, we don't embed all languages in the delivery, you need to load the language file content and provide it to the library.

source: gharchive/issue

authors: JeromeMartinez wishWinds

repo: MediaArea/MediaInfoLib

license_type: permissive

license_source: bigquery


text:
Fix Base64::encode

* Remove dynamic allocation for sBase64Table (optimisation)
* TODO - remove inline for Base64::encode / Base64::decode ?
* Magic fix crash Win XP SP3 + Visual Basic + MediaInfoNET.dll + MediaInfo.DLL https://sourceforge.net/p/mediainfo/bugs/990/

Crash - stack :
ntdll.dll!ExecuteHandler@20()    Unknown
ntdll.dll!_KiUserExceptionDispatcher@8()    Unknown

MediaInfo.DLL!Base64::encode(const std::basic_string<char,std::char_traits,std::allocator > & sString) Line 32    C++
MediaInfo.DLL!MediaInfoLib::File_Mk::Segment_Attachments_AttachedFile_FileData() Line 1761    C++
MediaInfo.DLL!MediaInfoLib::File_Mk::Data_Parse() Line 1257    C++
MediaInfo.DLL!MediaInfoLib::File__Analyze::Data_Manage() Line 2356    C++
MediaInfo.DLL!MediaInfoLib::File__Analyze::Buffer_Parse() Line 1516    C++
MediaInfo.DLL!MediaInfoLib::File__Analyze::Open_Buffer_Continue_Loop() Line 1091    C++
MediaInfo.DLL!MediaInfoLib::File__Analyze::Open_Buffer_Continue(const unsigned char * ToAdd, unsigned int ToAdd_Size) Line 675    C++
MediaInfo.DLL!MediaInfoLib::MediaInfo_Internal::Open_Buffer_Continue(const unsigned char * ToAdd, unsigned int ToAdd_Size) Line 827    C++
MediaInfo.DLL!MediaInfoLib::Reader_File::Format_Test_PerParser_Continue(MediaInfoLib::MediaInfo_Internal * MI) Line 694    C++
MediaInfo.DLL!MediaInfoLib::Reader_File::Format_Test_PerParser(MediaInfoLib::MediaInfo_Internal * MI, const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > & File_Name) Line 293    C++
MediaInfo.DLL!MediaInfoLib::Reader_File::Format_Test(MediaInfoLib::MediaInfo_Internal * MI, std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > File_Name) Line 207    C++
MediaInfo.DLL!MediaInfoLib::MediaInfo_Internal::Entry() Line 626    C++
MediaInfo.DLL!MediaInfoLib::MediaInfo_Internal::Open(const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > & File_Name_) Line 381    C++
MediaInfo.DLL!MediaInfoLib::MediaInfo::Open(const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > & File_Name_) Line 89    C++
MediaInfo.DLL!MediaInfo_Open(void * Handle, const wchar_t * File) Line 637    C++
[Managed to Native Transition]
MediaInfoNET.dll!MediaInfoNET.MediaInfo.Open(String FileName) Line 83    Basic
MediaInfoNET.dll!MediaInfoNET.MediaFile.GetMediaInfo(Boolean AppendInfo) Line 83    Basic
MediaInfoNET.dll!MediaInfoNET.MediaFile.New(String SourceFile) Line 62    Basic

Although modifications are necessary, I propose to remove the last and useless byte sBase64Table[65], the char* is converted in char[65] due to final NULL, I propose char[64]:
static const char sBase64Table[64] =
{ 'A','B','C','D','E','F','G','H',
  'I','J','K','L','M','N','O','P',
  'Q','R','S','T','U','V','W','X',
  'Y','Z','a','b','c','d','e','f',
  'g','h','i','j','k','l','m','n',
  'o','p','q','r','s','t','u','v',
  'w','x','y','z','0','1','2','3',
  '4','5','6','7','8','9','+','/' };

source: gharchive/pull-request

authors: JeromeMartinez pavel-pimenov


text:
🛑 MediaNext is down

In dc0d5cd, MediaNext (https://the-bot.thein321.repl.co) was down:

HTTP code: 502
Response time: 24982 ms

Resolved: MediaNext is back up in 29ddab7.

repo: MediaPlay-Discord/status

license: MIT

license_source: github-api


text:
Download

There's no download button for the .js... How do I download this?

Click on 'Raw' button, then Ctrl+S and save it to the plugins folder.


text:
Fix #1408 again - high values still teleport

asdf

Pull me daddy


text:
Mass simple actor communication example

Simple bidirectional interactions between mass and actors.

[x] Actor --> Mass: Somewhat demonstrated already albeit unmentioned in the README. The main character BP spawns a mass actor that syncs its transform with the actor.
[ ] Mass --> Actor
[ ] Mass <--> Actor

Working on some really basic hardcoded BP interaction with Mass now.

authors: Megafunk vorixo

repo: Megafunk/MassSample


text:
有没有冻结部分参数只训练头部或者部分参数的接口？没有的话是由于这样做有没有意义吗？

如题

有没有冻结部分参数只训练头部或者部分参数的接口？
没有的话是由于这样做有没有意义吗？

It's easy to freeze some parameter with given module in exp, and such a function might depend on your need. So we don't provide code to freeze module.
You may implemented yourself if needed.

repo: Megvii-BaseDetection/YOLOX


text:
Update README.md

2player

players2

repo: Mehmet-pro/X-O-Game


text:
表单绑定v-model需置于标签首行才生效

mpvue 版本号：
[mpvue@1.0.11]
最小化复现代码：
[建议提供最小化可运行的代码：附件或文本代码]
// 示例代码：
<input
placeholder="请输入"
v-model='input'></input>

问题复现步骤：
v-model指令不放在标签首行
观察到的表现：
v-model不生效
但放到首行就可以正常生效。

请确认下控制台以及编译没有报错

authors: Dewyzee EvanXiang

repo: Meituan-Dianping/mpvue


text:
请问channelInfo.getExtraInfo()这个方法的数据如何写入

我想写在channel文件里，但是这样总是不对，可以说一下吗

extra目前在channel里还不支持 未来有计划
现在只能通过plugin extraInfo  或者-PextraInfo为所有渠道统一插入

plugin extraInfo 插入的话是也要弄一个channel文件这样还是怎么做呢？

看readme

./gradlew clean assembleReleaseChannels -PchannelList=meituan -PextraInfo=buildtime:20161212,hash:xxxxxxx
你是说这句话吗，这个是要一个一个打包。不可以直接像一个channel文件一样弄一个extraInfo文件吗

会给每个channel的apk加上相同的extraInfo

./gradlew clean assembleReleaseChannels -PchannelFile=channel -PextraInfo=buildtime:20161212,hash:xxxxxxx
也可以  不过都是所有channel 相同extraInfo
不同channel不同extraInfo 有计划开发，暂时还没有提供

知道了 非常感谢帮助

1.1.0已经发布，支持为每个channel配置extraInfo

好勒  谢谢哥们儿

authors: GavinCT cocoas

repo: Meituan-Dianping/walle


text:
Include PRI/CRI on crew details page

Need to check whether we're ok with doing this, but can't see any particular problem. Obviously it wouldn't be a live link, so will be out of date pretty much immediately though.

Database structure currently works on the idea that an athlete might be in multiple crews, so presumably their PRI will have to go on the CrewAthlete object, since it's going to have changed by the time they race again.

repo: MelHarbour/HeadRaceTiming-Site

license: mit


text:
Update directus.Dockerfile

Update directus to latest version

@MelaineGerard please merge

repo: MelaineGerard/ddev-directus


text:
Add Microsoft Sql Server driver

I've recently needed to integrate SQL Server driver connection on my Project, so I decided to add a new Driver choice.

This is a bit of an opinionated change, adding another database driver.
I am not entirely against it, but, I would perhaps change out one of the current drivers with this one and see what others say.
One other note, we recently are moving away from a .env example and just have the values update directly the .env file

authors: AndreaGero Melkeydev

repo: Melkeydev/go-blueprint


text:
minor: fixed borken icons

switched to shields.io instead of pypi.in - reference http://shields.io/

Merged

authors: MendeleyStack silpol

repo: Mendeley/mendeley-python-sdk


text:
FlipX or FlipY

How to repeat FlipX or FlipY ?? Repeat Count doesnt work

You need to reset the animation, so where ever you called are repeating it, make sure to add
object.animation = "flipX" (or Y, whichever is the case) and then add object.animate()

authors: BaranBerk sahasd

repo: MengTo/Spring


text:
Fische sammeln | Low importance

Sent from !';⚜Mr.Vinjago⚜#9082 (448801471589384203) with bot 948978571802710047
etwas wie lawliet machen mit dem fische sammeln

wird irgendwann kommen, wenn die ToDo-List abgearbeitet ist

fast fertig :D


text:
很好的项目 不知道能否增加mips平台的支持

我尝试编译mips平台的  如下报错  不知大佬能否修复 以支持mips平台的

有空我看看吧，但这个优先级不太高

repo: Mereithhh/van-nav


text:
Enable spatial fields on full and half levels

Fixes #
Contribution checklist
Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

[x] Documentation has been updated to reflect change.
[x] New code has tests, and affected old tests have been updated.
[ ] All tests and CI checks pass.
[ ] Added an entry to the top of docs/source/changelog.rst
[ ] Conda lock files have been updated if dependencies have changed.
[ ] Attributed any Generative AI, such as GitHub Copilot, used in this PR.
[ ] Marked the PR as ready to review.

This branch has been rebased.

authors: Sylviabohnenstengel jfrost-mo

repo: MetOffice/CSET


text:
Drivers documentation/discovery

Automatic way for users to discover driver settings.
# Prints list of available drivers
forest driver list

# Prints valid keys/types for a particular driver
forest driver settings driver-name

#485 #484 and #483 close this issue

repo: MetOffice/forest


text:
[Bug] 使用tuic时Go标准库中atomic原子操作int64有崩溃bug

Verify steps

[X]  确保你使用的是本仓库最新的的 clash 或 clash Alpha 版本 Ensure you are using the latest version of Clash or Clash Premium from this repository.
[X]  如果你可以自己 debug 并解决的话，提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
[X]  我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
[X]  我已经使用 Alpha 分支版本测试过，问题依旧存在 I have tested using the dev branch, and the issue still exists.
[X]  我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
[X]  这是 Clash 核心的问题，并非我所使用的 Clash 衍生版本（如 OpenClash、KoolClash 等）的特定问题 This is an issue of the Clash core per se, not to the derivatives of Clash, like OpenClash or KoolClash.

Clash version
Clash Meta v1.16.0 linux arm with go1.21.1 Mon Sep 25 11:37:47 UTC 2023
What OS are you seeing the problem on?
Linux
Clash config
- name: node-tuic
    type: tuic
    server: xxxx.xxxx.com
    port: 18011
    uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    password: this is password
    congestion-controller: bbr

Clash log
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: panic: unaligned 64-bit atomic operation
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: goroutine 1824 [running]:
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: runtime/internal/atomic.panicUnaligned()
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       runtime/internal/atomic/unaligned.go:8 +0x24
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: runtime/internal/atomic.Load64(0x2fded34)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       runtime/internal/atomic/atomic_arm.s:280 +0x14
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/puzpuzpuz/xsync/v2.(*MapOf[...]).resizeInProgress(...)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/puzpuzpuz/xsync/v2@v2.5.0/mapof.go:431
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/puzpuzpuz/xsync/v2.(*MapOf[...]).doCompute(0x11afb80, 0xa5cf, 0x2d85a10, 0x1, 0x0)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/puzpuzpuz/xsync/v2@v2.5.0/mapof.go:310 +0x1bc
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/puzpuzpuz/xsync/v2.(*MapOf[...]).LoadOrStore(0x11afb80, 0xa5cf, {0x11a6c3c, 0x2e04820})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/puzpuzpuz/xsync/v2@v2.5.0/mapof.go:199 +0x80
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/transport/tuic/v5.(*clientImpl).ListenPacketWithDialer(0x2fded00, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x119c048, 0x2fb7d70}, 0x2c23470)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/transport/tuic/v5/client.go:355 +0x1a8
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/transport/tuic/v5.(*Client).ListenPacketWithDialer(0x2c851b8, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x119c048, 0x2fb7d70}, 0x2c23470)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/transport/tuic/v5/client.go:393 +0x50
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/transport/tuic.(*PoolClient).ListenPacketWithDialer(0x2d7d900, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x119c048, 0x2fb7d70}, 0x2c851a8)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/transport/tuic/pool_client.go:54 +0xc8
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/adapter/outbound.(*Tuic).ListenPacketWithDialer(0x2c930a0, {0x11a26e0, 0x2f9f2c0}, {0x119c048, 0x2fb7d70}, 0x2ffb900)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/adapter/outbound/tuic.go:114 +0x464
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/adapter/outbound.(*Tuic).ListenPacketContext(0x2c930a0, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x0, 0x0, 0x0})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/adapter/outbound/tuic.go:83 +0xc0
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/adapter.(*Proxy).ListenPacketContext(0x2d7d940, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x0, 0x0, 0x0})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/adapter/adapter.go:80 +0x58
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/adapter/outboundgroup.(*Selector).ListenPacketContext(0x2c937c0, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x0, 0x0, 0x0})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/adapter/outboundgroup/selector.go:31 +0xa4
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/adapter.(*Proxy).ListenPacketContext(0x2d7dca0, {0x11a26e0, 0x2f9f2c0}, 0x2ffb900, {0x0, 0x0, 0x0})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/adapter/adapter.go:80 +0x58
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/tunnel.handleUDPConn.func2.2({0x11a26e0, 0x2f9f2c0})
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/tunnel/tunnel.go:363 +0x11c
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/tunnel.retry[...]({0x11a26e0, 0x2f9f2c0}, 0x2d85eb8, 0x2d85f74)
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/tunnel/tunnel.go:653 +0xb0
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: github.com/Dreamacro/clash/tunnel.handleUDPConn.func2()
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/tunnel/tunnel.go:362 +0x27c
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]: created by github.com/Dreamacro/clash/tunnel.handleUDPConn in goroutine 5
Thu Oct  5 21:07:15 2023 daemon.err clash[32465]:       github.com/Dreamacro/clash/tunnel/tunnel.go:337 +0x40c

Description
openwrt 21.02.7，armv7，一旦切换到tuic节点就报错，然后crash，其他类型节点（比如ss、trojan-go）都运行正常。

@Cl-He-O 盲猜是 h1 弄的优化 （

authors: nekohasekai sshpem

repo: MetaCubeX/mihomo


text:
MetaMask Extension e2e tests Best practises

MetaMask Extension e2e tests Best practises doc
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/1999

I think we should add a section about not putting too many tests in the same spec file, and making sure that the runtime of any one spec file is less than about 2 minutes.
The reason for this is because a spec file is the basic unit of splitting and retrying on CircleCI.  If there are 10 tests in a spec file and one of them fails, all 10 tests have to be retried.  This also applied to "Rerun failed tests."

fd55923

Good suggestion, i added a section for that, thanks !

I think we should add a section about not putting too many tests in the same spec file, and making sure that the runtime of any one spec file is less than about 2 minutes.
The reason for this is because a spec file is the basic unit of splitting and retrying on CircleCI. If there are 10 tests in a spec file and one of them fails, all 10 tests have to be retried. This also applies to "Rerun failed tests."
Btw, we theoretically could split by individual test on CircleCI, but that takes quite significant additional effort, and it's not the way it's set up right now.

Good suggestion, i added a section for that, thanks !  please check: https://github.com/MetaMask/contributor-docs/pull/72/commits/fd55923014b3a273858001954c96b1f028ca8c79

authors: HowardBraham chloeYue

repo: MetaMask/contributor-docs


text:
eth-json-rpc-provider migration - D: Repair breaking packages and finalize merge

Explanation
This PR implements the following incremental step in the process for migrating eth-json-rpc-provider into the core monorepo:

Phase D: Repair and merge
1. Repair breaking code in downstream packages

[ ] network-controller
[ ] selected-network-controller
[ ] transaction-controller
[ ] gas-fee-controller

2. Finalize merge

[ ] Check that all tests are passing in all subpackages of core and CI.
[ ] Merge packages/[package-name] directory into core main branch.

See https://github.com/MetaMask/core/issues/1551#issuecomment-1745665740 for an outline of the entire process.
References

Contributes to #1685
Contributes to #1551
Related to https://github.com/MetaMask/core/pull/1653
Related to https://github.com/MetaMask/eth-json-rpc-provider/pull/14
Related to https://github.com/MetaMask/utils/pull/140

Changelog

@metamask/eth-json-rpc-provider

ADDED: Migrated into the core monorepo.

Checklist

[x] I've updated the test suite for new or updated code as appropriate
[x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate

Consolidating into https://github.com/MetaMask/core/pull/1738

repo: MetaMask/core


text:
ci: debug preview builds

Explanation

References

Changelog

@metamask/package-a

: Your change here
: Your change here

@metamask/package-b

: Your change here
: Your change here

Checklist

[ ] I've updated the test suite for new or updated code as appropriate
[ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate

@metamaskbot publish-preview

@metamaskbot publish-preview

@metamaskbot publish-preview

@metamaskbot publish-preview

@metamaskbot publish-preview

@metamaskbot publish-preview


text:
Adding FoodNation Token

Website: https://www.foodnation.io
Token Info PDF: https://files.foodnation.io/whitepaper.pdf
Github: https://github.com/FoodNation
Etherscan: https://etherscan.io/token/0xbd2db105b965d74e91deed64ec4b441beab9d498

Thanks @estebanmino, I will add this to our website too. Hope this PR could be merged, we understand that is strategical to have our token available on metamask, since users can search for it.

closing this due to pending community activity, feel free to reopen thanks.

authors: estebanmino igormontella

repo: MetaMask/eth-contract-metadata

license: ISC


text:
Added support for regtest and Azure Storage Emulator

Sample configuration for regtest will have the following:
<add key="Bitcoin.Network" value="regtest"/>
Sample configuration for Azure Storage Emulator will have the following:
<add key="Azure.AccountName" value="devstoreaccount1"/>
<add key="Azure.Key" value="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="/>
<add key="AzureStorageEmulatorUsed" value="true"/>

I merge it but by experience the dev storage does not EXACTLY mirror the real API, I don't know if you'll have problem.

authors: NicolasDorier bijakatlykkex


text:
add_posts_to_main_feed missing from django admin

It should be possible to edit the add_posts_to_main_feed option when editing a project in the Django admin.
It would also be nice if it was one of the filters in the project list as well.

Todo @SylvainChevalier: check that recent projects have the option set correctly.

After a brief discussion last week: we have this option on tournament level available for site admins:

authors: SylvainChevalier hlbmtc

repo: Metaculus/metaculus


text:
option to choose X amount of builds

For example there's a pr with 4000 rebuilds
The option would let us choose 500 of them randomly to build

If we have the following dependency chain and randomly choose c we would still build everything which would make this feature rather random and most likely not what people expect.
a -> b -> c


text:
fix: multiple public key compatibility, missing metadata

Using multiple public key pem file input won't generate a JWKS with multiple key.
This PR fix the issue.

Fantastic. Thank you @aarnaud. Looks like this was a typo that caused the key ID to remain constant since the jwkset.JWKMetadataOptions{} is defined outside the loop. Great catch.

Please use the latest release v0.5.9

authors: MicahParks aarnaud

repo: MicahParks/jwkset


text:
Add missing 'chai-as-promised' dependency

When I attempted to run e2e tests I got following error:
$npm run test:e2e

> magicmirror@2.1.1 test:e2e /Users/sergeym/localDev/MagicMirror
> ./node_modules/mocha/bin/mocha tests/e2e --recursive

module.js:471
    throw err;
    ^

Error: Cannot find module 'chai-as-promised'
...

Adding chai-as-promised to package.json and running npm install fixes it.

@roramirez Not sure if you have chai-as-promised installed globally. I didn't and ran into this error, this PR should address it.

So stranger. On my system is installed in ~/MagicMirror/node_modules/chai-as-promised but if this resolved your problem is welcome.

@morozgrafix You are right!
Tested the Travis integration https://travis-ci.org/roramirez/MagicMirror/jobs/196812634 fail and with your change  https://travis-ci.org/roramirez/MagicMirror/builds/196813363

glad we caught it and sorted out

authors: morozgrafix roramirez

repo: MichMich/MagicMirror


text:
RedisCacheHandle implementation of Clear() clears the entire database

It appears from the code that RedisCacheHandle.Clear() will actually flush the entire database. Doesn't that go against the intention individual ICache instances being isolated from others?

I don't 100% remember the reasons for that but there is technically no other (performant) way then FlushDB?
Only possible way would be to track all keys or search keys and delete the found ones - which are all at least n+1 operations.
If you want real separation of keys, you can still use different databases

I don't 100% remember the reasons for that but there is technically no other (performant) way then FlushDB?
Only possible way would be to track all keys or search keys and delete the found ones - which are all at least n+1 operations.
If you want real separation of keys, you can still use different databases

I cannot really change the behavior for now.
Clear will clear the DB,
ClearRegion can be used to try to delete only tracked keys.
The region mechanism isn't 100% reliable though with distributed caches as Redis can evict keys without the client noticing and so on...
But yeah, those are basically the 2 build in options, apart from using different Redis DBs in the first place.
I might try something with regions and key prefixes and maybe Redis can efficiently delete everything with prefix in newer versions? I just need time to work on stuff like that

authors: MichaCo erizzo

repo: MichaCo/CacheManager


text:
[Event Request] Table 81 Gen. Journal Line event-request

Request to update an already Published Event OnAfterCreateDimTableIDs by adding VAR to last 2 parameters of the Published event, as this function has parameters (arrays) which can be used to generate new dimension set entry based on newly added fields by using their respective default dimension :
Existing :
LOCAL [IntegrationEvent] OnAfterCreateDimTableIDs(VAR GenJournalLine : Record "Gen. Journal Line";FieldNo : Integer;TableID : ARRAY [10] OF Integer;No : ARRAY [10] OF Code[20])
Modified :
LOCAL [IntegrationEvent] OnAfterCreateDimTableIDs(VAR GenJournalLine : Record "Gen. Journal Line";FieldNo : Integer;VAR TableID : ARRAY [10] OF Integer;VAR No : ARRAY [10] OF Code[20])
Same changes should also be implemented for all other Document tables where CreateDim function is used and OnAfterCreateDimTableIDs is Published (ex : Table 36 "Sales Header", Table 38 "Purchase Header")

This is already done this way long time ago, please check latest code base

Couldn't find the relevant changes till Navision 2018 CU 5, Is it after the CU 5?

This repo is not related to NAV 2018.
For more details please read:
https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/
https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#i-found-an-issue-on-nav-2018-what-do-i-do

Alryt Thanks, Closing the Issue,

repo: Microsoft/AL


text:
case of issue

I am finding an issue that "case ... of" doesn't always work:
var   a : int; begin   case a of     1:       if a = a then         Message('here');     2:       if a = a then         Message('not reachable');   end; end;
It will only reach the first block of code - so it will execute the code, if a = 1, but if a = 2, it will just skip over it. Once you put a "begin end" around the code in the different case options, it works. However, then code analysis complains that you should only use begin..end, if you have multiple line statements.

I have just tried the following, that print 'NotReachable'.
pageextension 50100 CustomerListExt extends "Customer List"
{
    trigger OnOpenPage();
    var
        a : Integer;
    begin
        a := 2;
        case a of
            1: if a = a then Message('here');
            2: if a = a then Message('NotReachable');
        end;

    end;
}

It was tested with the latest internal version, so it is newer than the public ones and bugs may have been fixed. Can you verify if that snippet works on your machine?
The case lines expects exactly one statement or statement block. Putting begin/end around the if-statements shouldn't change anything.
Please note that the CodeAnalysis is very experimental and haven't been tested to the same level as the rest of the compiler.

Yes, this is working. However, here are a couple scenarios where it is not working:
`
pageextension 50100 CustomerListExt extends "Customer List"
{
trigger OnOpenPage();
var
a : Option Start,Middle,Completed;
begin
for a := 0 to 2 do begin
  case a of
    a::Start:
      if a = a then
        Message('here');
    a::Completed:
      if a = a then
        Message('not reachable');
  end;
end;

end;
}
`
and
`
pageextension 50100 CustomerListExt extends "Customer List"
{
trigger OnOpenPage();
var
a : Text;
i : Integer;
begin
for i := 0 to 1 do begin
  if i = 0 then a := 'test';
  if i = 1 then a := 'not test';
  case a of
    'test':
      if a = a then
        Message('here');
    'not test':
      if a = a then
        Message('not reachable');
  end;
end;

end;
}
`
It seems my original example was wrong, but the issue seems to be with Option and Text - possibly others. But if the "case variable" is integer, it works.

They both fail.

authors: esbenk pzentner


text:
Improve semantic structure and portability between host experiences

Spec furthcoming

Closing this since no details and inactive

authors: andrewleader matthidinger

repo: Microsoft/AdaptiveCards


text:
[UWP][Android] Add primary and destructive button styling support

Solves this 3 issues: https://github.com/Microsoft/AdaptiveCards/issues/1968
https://github.com/Microsoft/AdaptiveCards/issues/1969
https://github.com/Microsoft/AdaptiveCards/issues/1970


text:
OS Deployment fails due to permissions on lxss files

I am attempting to develop a solution in which I can deploy Windows 10 with WSL installed and configured with pre-defined apps. I created a Windows image with WSL installed and Firefox loaded inside it. Tests in the VM were successful. After I sysprep the VM and prepare it for deployment via SCCM, the task sequence fails on the applying image step with the following error:

C:\Users\Administrator\AppData\Local\lxss\rootfs\lib\xtables\libip6t_HL.so. Permissions on the requested may be configured incorrectly. Access is denied. (Error: 80070005; Source: Windows)

When I changed the permissions on that file (to 777) and went through the whole process again, it failed again on another file. My guess is that there are a ton of files that will give me problems.
Ultimately, I need to be able to deploy a Windows 10 image with WSL installed with pre-installed apps that is in the default profile so all new users will get the setup ready to go. Assistance is appreciated.
Steps Taken

Create Hyper-V VM (configuration 8) with 8GB RAM (dedicated) AND 80gb drive space
Installed Windows 10 1607 from Microsoft ISO
Installed all updates to OS
Installed Developer Features
Installed Windows Subsystem for Linux
Setup BASH
Used apt-get to install Firefox
Installed Xming
Tested Firefox opening in Xming Window
Restarted and made Hyper-V checkpoint
Ran sysprep from inside Windows with Generalize and Shutdown options set
Upon completion, booted to DVD with WinPE ISO attached
Opened command prompt and performed a dism command: Dism /Capture-Image /ImageFile:N:\BASHTEST.wim /CaptureDir:C:\ /Compress:fast /CheckIntegrity /Name:"BASHTEST" /Description:"BASH for Windows TEST"
When completed, created Operating System Image in SCCM from wim
Distributed OS Image
Created Task Sequence to deploy image (attached)
Deployed image to Dell Optiplex 7020 with 8GB RAM and 250GB HDD, Intel i7 CPU
Deployment completes image download and fails on Applying Image step. Error: WIM error:C:\Users\Administrator\AppData\Local\lxss\rootfs\lib\xtables\libip6t_HL.so. Permissions on the requested may be configured incorrectly. Access is denied. (Error: 80070005; Source: Windows)
Rebooted into WinPE and gathered smsts.log (attached)

Details
Windows Build: 14393.693
Ubuntu Build: 14.04.5 LTS
BASHTEST_TS.zip
smsts.txt

@rpadr

@rcpadrick - Thanks for your post. It looks like a cool scenario to enable. But, unfortunately, due to some limitations around case sensitivity (with filenames) while taking the snapshot, this scenario is not yet supported. This is a known issue and something we are fully aware of. We want to support this, but this won't make it for the Creators Update release, unfortunately.

Do you have any ideas/methods to make a customized WSL available to all users? I've tried copying the lxss folder in both Windows and Linux, and neither seemed to work. As soon as I launched BASH in another user's profile, it asked to be setup.

There isn't an officially "supported solution" but this should work:

Copy your entire %localappdata%\lxss directory on your old computer to a backup NTFS drive.
Install WSL on your new machine (lxrun /install /y).
Delete the %localappdata%\lxss directory on your new machine.
Copy your saved lxss directory to %localappdata%\lxss
run lxrun.exe /setdefaultuser oldusername
Launch bash.

@rcpadrick: Also:
One thing to note here is that Ubuntu instances are created on a per-user basis but when you sysprep an image, all user accounts, folders & files are removed.
Thus, you should probably omit step 6-9 - these steps should be carried out after the sysprepped image has been deployed onto a target machine, by the end-user.

In our unattend file, we specify a profile to be copied as the default. It was my hope that by setting up WSL on that profile before sysprep, that would carry over to the default profile, and thus to all new users. This is how the vast majority of applications work -- although I know Windows Store Apps do not work this way.
Ultimately, I am looking for a way to deploy a customized WSL/Ubuntu with installed apps for any user on the machine. Whether that occurs when I create the image or if it can be done after image is applied on the device does not matter.
Any ideas on how to accomplish this? Perhaps the product is still too young to do it.

Another thing to consider is that if you snapshot a particular distro now, then it'll fall behind in terms of pre-applied updates: Note that Canonical are going to be updating their distro's approx' once per quarter so it likely makes sense to NOT snapshot any given distro, but install when the user first runs the Bash.
It may be worth putting a link on your user's desktops which, when opened, calls bash.exe -c setup.sh (or similar) which, after the latest distro is installed via Bash setup, automates the installation of whatever Linux tools you want via apt, after which, the user should be up and ready to go.

@benhillis Pretty sure that won't work without using robocopy with some special flags rather than the copy in Windows explorer (unless something has changed), at least it didn't in the past.

@fpqc - Copy in explorer should maintain extended attributes as long as you don't move it a filesystem type that doesn't support them.

@benhillis That's so strange that it works now.  Maybe I was doing something different before, like copying with cp inside of to drvfs, then copying back to %localappdata%\lxss.  That's great then!

@benhillis Those steps worked, thank you. However, in practical terms, this is not an efficient method of deployment. The installation of WSL and the copy of 1GB (at least) of data to the profile made BASH unavailable for nearly 10 minutes on the machine. In a classroom environment where we only have 50 minutes, that's too much time.
It seems to me the only way to make this a viable solution for deployment on machines with multiple users is to move the lxss install location to a non-user directory. Even if we could get the entire lxss folder available in the default profile, the copy of more than 1GB of data to every new profile would make login times jump through the roof -- and Windows 10 new user logins are already painful.
I think I may try to create a specific local user with the customizations I need and then sysprep, capture, and image a machine that way. I'll let you know how that goes.
For now, dual booting seems the best solution, though I absolutely see this product replacing that eventually. If you have any other ideas or suggestions, please let me know as I want to avoid dual-booting like the plague.
In the meantime, please keep up the fantastic work. I will be watching this product closely!

@rcpadrick The Bash/WSL root folders and files aren't stored in roaming profiles so should have no impact on login times; they're stored in %localappdata%\lxss .
But, yes, each user gets their own copy of Ubuntu and whatever else they decide to install on top. But then, this is pretty much the same if you wanted to use VM's or Containers.

@bitcrazed They will have effect on login times because if they are included in the local Default Profile (the folder from which new profiles are created), the more data is in there, the longer it takes to copy during login. We don't use roaming profiles (not sure many orgs do anymore).

@rcpadrick - I agree it isn't a great solution.  For a little more context on this: The issue isn't coming from WSL but from is a larger issue with how NT handles case-sensitive files.  Windows has a long way to go in this area and we in the WSL team are trying to push the needle in the right direction.

@benhillis Understood. Well, count me onboard for any future testing. Let me know if there's anything I can do to assist.

@benhillis I followed your instructions exactly, but I get the following error when I set my default user:
Error: 0x8007001f
Any idea how I can get around this?

Trying to deploy and mount a DISM image where Lxss is present result in a systematic failure,
2017-03-16 08:40:52, Info                  DISM   API: PID=3308 TID=3424 DismApi.dll:                                          - DismShutdownInternal
[980] [0x80070005] RestoreFileNodeList:(2136): Access is denied.
[980] [0xc144012e]
2017-03-16 08:41:50, Error                 DISM   DISM WIM Provider: PID=980 E:\WinWin\Users\XXXXXXXX\AppData\Local\lxss\rootfs\usr\share\perl\5.18.2\Pod\Checker.pm (HRESULT=0x80070005) - CWimManager::WimProviderMsgLogCallback

Ran into the same situation here. I made a wim image with WSL inside as a back up. However, I get Error.5: Access Denied while proccessing WSL related file when try to apply the image.
I will try Dism /Apply-Image /EA next. If that did not work, I will try to remove WSL file from wim image without mounting it. (Mounting it will also cause Error.5)
Does anyone know how to remove file from wim image without mounting it? Need Little help here.

Ran into the same situation here. I made a wim image with WSL inside as a back up. However, I get Error.5: Access Denied while proccessing WSL related file when try to apply the image.
I will try Dism /Apply-Image /EA next. If that did not work, I will try to remove WSL file from wim image without mounting it. (Mounting it will also cause Error.5)
Does anyone know how to remove file from wim image without mounting it? Need Little help here.

Update:

Confirm that /EA does not work
Try to remove WSL files from wim image with wimlib-imagex update delete, yet run into "Ignoring children of non-directory file" warnings.

Next, I will try the method described at this post

Ran into the same situation here. I made a wim image with WSL inside as a back up. However, I get Error.5: Access Denied while proccessing WSL related file when try to apply the image.
Update:

Confirm that /EA does not work
Try to remove WSL files from wim image with wimlib-imagex update delete, yet run into "Ignoring children of non-directory file" warnings.
Next, I will try the method described at this post

Update:

Did not found the exact way in post
Workaround: Continue with warrnings and restore ignored files manually after image apply

Hope this can be helpful for someone who is as upset as myself.😀

Ran into the same situation here. I made a wim image with WSL inside as a back up. However, I get Error.5: Access Denied while proccessing WSL related file when try to apply the image.
Update:

Confirm that /EA does not work
Try to remove WSL files from wim image with wimlib-imagex update delete, yet run into "Ignoring children of non-directory file" warnings.
Next, I will try the method described at this post
Update:

Did not found the exact way in post
Workaround: Continue with warrnings and restore ignored files manually after image apply
Update:

Solution: Directly apply image with wimlib-imagex apply and restore ignored files manually

You can export the installed distribution in  a tarball with wsl.exe --export command and install it another machine with wsl.exe --import command.

You can export the installed distribution in  a tarball with wsl.exe --export command and install it another machine with wsl.exe --import command.

authors: Biswa96 DanielW10001 KptnKMan benhillis bitcrazed fpqc imakiro rcpadrick sunilmut

repo: Microsoft/BashOnWindows


text:
Microsoft.Cognitive.LUIS.ActionBinding

Hi.
I was trying to implement Action Binding on my bot that uses Luis Dialogs but when creating an Action, Visual Studio can't find the ActionBinding namespace in Microsoft.Cognitive.LUIS.ActionBinding
I copied the imports from here
I have the latest Nuget package in my project for Microsoft.Cognitive.LUIS which is v2.0.2
Below my packages.config:
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Autofac" version="4.6.0" targetFramework="net46" />
  <package id="Chronic.Signed" version="0.3.2" targetFramework="net46" />
  <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net46" />
  <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net46" />
  <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net46" />
  <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net46" />
  <package id="Microsoft.Bot.Builder" version="3.8.1.0" targetFramework="net46" />
  <package id="Microsoft.Cognitive.LUIS" version="2.0.2" targetFramework="net46" />
  <package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.4.403061554" targetFramework="net46" />
  <package id="Microsoft.Rest.ClientRuntime" version="2.3.8" targetFramework="net46" />
  <package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.3" targetFramework="net46" />
  <package id="Newtonsoft.Json" version="10.0.2" targetFramework="net46" />
  <package id="System.IdentityModel.Tokens.Jwt" version="4.0.4.403061554" targetFramework="net46" />
</packages>

Any tips on getting it to work?

I don't think the LuisActionBinding lib is part of the Microsoft.Cognitive.LUIS Nuget package. Just get the LuisActionBinding bits from https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/Blog-LUISActionBinding/Microsoft.Cognitive.LUIS.ActionBinding

Hmm I see. But will it ever be?
I cloned the whole BotBuilder-Samples repo, built it and copied the ActionBinding .dll to a folder in my project. Then I added a reference to that dll. It works, but I'm afraid it's not a good long term solution.
Any better ways?

Right now, nope

Ok thanks. This ActionBinding is really useful, would be cool if it had its own package...
I'm having problems with Custom Entities of type List (getting Exception Object must implement IConvertible. - 'System.InvalidCastException' in mscorlib.dll when user types a value that is on a list). I guess I should open a new issue?

If you still have questions, please open a new issue on BotBuilder repo here: https://github.com/Microsoft/BotBuilder

authors: AndreMantas ejadib nwhitmont

repo: Microsoft/BotBuilder-Samples


text:
[Facebook Messenger] How can I get Referral params?

Hi
I want to init some data for facebook user base on link they use to access my bot. I found this article:
https://developers.facebook.com/docs/messenger-platform/referral-params
but I dont know how to get referral params from bot framework (C#). My purpose to set user data base on link like this: https://m.me/{BOT_ID}?ref={SOME_MESSAGE}
Any help will be appreciated.
Thanks

Hi,
I successfully tried to do the same.
Weird point first: note that the value is not at the same place if you previously talk to the bot or not...
So I'm doing the following:

defined a FacebookChannelData class, where RefParameter is the parameter you want, in order to get these fields from the json message received

public class FacebookChannelData
{
    [JsonProperty("Sender")]
    public Sender Sender { get; set; }

    [JsonProperty("Recipient")]
    public Recipient Recipient { get; set; }

    [JsonProperty("Timestamp")]
    public long Timestamp { get; set; }

    [JsonProperty("Postback")]
    public Postback Postback { get; set; }

    [JsonProperty("Referral")]
    public Referral Referral { get; set; }

    public string RefParameter
    {
        get
        {
            string val = "";

            if (Postback != null && Postback.Referral != null && !String.IsNullOrWhiteSpace(Postback.Referral.Reference))
            {
                val = Postback.Referral.Reference;
            }
            else if (Referral != null && !String.IsNullOrWhiteSpace(Referral.Reference))
            {
                val = Referral.Reference;
            }
            return val;
        }
    }
}

public class Recipient
{
    [JsonProperty("Id")]
    public string Id { get; set; }
    [JsonProperty("Name")]
    public string Name { get; set; }
}

public class Sender
{
    [JsonProperty("Id")]
    public string Id { get; set; }

    [JsonProperty("Name")]
    public string Name { get; set; }
}

public class Postback
{
    [JsonProperty("Payload")]
    public string Payload { get; set; }

    [JsonProperty("Referral")]
    public Referral Referral { get; set; }
}

    public class Referral
    {
        [JsonProperty("Ref")]
        public string Reference { get; set; }

        [JsonProperty("Source")]
        public string Source { get; set; }

        [JsonProperty("Type")]
        public string Type { get; set; }
}

so getting the ChannelData of the facebook incoming message is like:

if (incomingMessage.TryGetChannelData(out FacebookChannelData channelDataInfo))
{
    return channelDataInfo.RefParameter;
}
else
{
    return String.Empty;
}

As you can see, the interesting value is the field "Postback.Referral.Reference" OR "Referral.Reference" in this ChannelData (given the fact that it is a new conversation or not), so I'm checking if the 1st one is null and trying to get the 2nd one in that case
Hope it will be helpful.
Nicolas
PS : don't forget to set a Start Button on your Messenger bot settings.

You made my day :). Thank you so much!

You're welcome.
Maybe you can close this issue?

Any dependable way to get referring data from skype or other channels?  I really need it.
Also @nrobert you mentioned "PS : don't forget to set a Start Button on your Messenger bot settings."
Can you elaborate?  Is this to workaround the infuriating lack of ability to fire off an initial greeting in most channels? - thx

@res63661 FB messenger & webchat have this ability but I don't know for other channels.
There may be solutions, but it depends on your use case.
And for my mention about adding the start button, it is here to remind people that they get this referral on Facebook Messenger only if they have set this Start Button on Messenger side. This referral process and the button are specific to this channel, and yes it is a proper way to start a conversation for a user: he just has to click, doesn't have to think about what he should write..
For the lack of ability to fire off an initial greeting, it is also a security problem (to avoid bot spam...), but it is still possible in some channels (at least email, SMS, Slack)

repo: Microsoft/BotBuilder


text:
C# - Paste as JSON for LUIS model from endpoint

Hi as suggested by @dandriscoll to go with the WebClient approach & fetch the JSON & map it back to a POCO.
However when trying the same approach as shown in the BUILD demo/session or grabbing the JSON from the example query made from the LUIS portal and then doing a past special to generate a class I get the following error in VS15 Community Edition

And the JSON I was trying to paste special as a class is as follows:
{
  "query": "What time is it for Mikkel at 4 in the afternoon?",
  "intents": [
    {
      "intent": "TimeForUser",
      "score": 0.6357388,
      "actions": [
        {
          "triggered": true,
          "name": "TimeForUser",
          "parameters": [
            {
              "name": "User",
              "required": true,
              "value": [
                {
                  "entity": "mikkel",
                  "type": "User",
                  "score": 0.910984635
                }
              ]
            },
            {
              "name": "Time",
              "required": true,
              "value": [
                {
                  "entity": "4 in the afternoon",
                  "type": "builtin.datetime.time",
                  "resolution": {
                    "time": "T16"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "intent": "TimeForEveryone",
      "score": 0.223888189,
      "actions": [
        {
          "triggered": true,
          "name": "TimeForEveryone",
          "parameters": [
            {
              "name": "Time",
              "required": true,
              "value": [
                {
                  "entity": "4 in the afternoon",
                  "type": "builtin.datetime.time",
                  "resolution": {
                    "time": "T16"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "intent": "None",
      "score": 0.0346338227,
      "actions": null
    },
    {
      "intent": "RepeatLastTimeAsked",
      "score": 0.0171330366,
      "actions": null
    }
  ],
  "entities": [
    {
      "entity": "mikkel",
      "type": "User",
      "startIndex": 20,
      "endIndex": 25,
      "score": 0.910984635
    },
    {
      "entity": "4 in the afternoon",
      "type": "builtin.datetime.time",
      "startIndex": 30,
      "endIndex": 47,
      "resolution": {
        "time": "T16"
      }
    }
  ]
}

I guess this is triggering a bug in paste special feature of Visual Studio. Try to paste the JSON below and it should generate the right classes. I manually changed null actions to empty array in your pasted JSON and Visual Studio started generating the code.

{
  "query": "What time is it for Mikkel at 4 in the afternoon?",
  "intents": [
    {
      "intent": "TimeForUser",
      "score": 0.6357388,
      "actions": [
        {
          "triggered": true,
          "name": "TimeForUser",
          "parameters": [
            {
              "name": "User",
              "required": true,
              "value": [
                {
                  "entity": "mikkel",
                  "type": "User",
                  "score": 0.910984635
                }
              ]
            },
            {
              "name": "Time",
              "required": true,
              "value": [
                {
                  "entity": "4 in the afternoon",
                  "type": "builtin.datetime.time",
                  "resolution": {
                    "time": "T16"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "intent": "TimeForEveryone",
      "score": 0.223888189,
      "actions": [
        {
          "triggered": true,
          "name": "TimeForEveryone",
          "parameters": [
            {
              "name": "Time",
              "required": true,
              "value": [
                {
                  "entity": "4 in the afternoon",
                  "type": "builtin.datetime.time",
                  "resolution": {
                    "time": "T16"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "intent": "None",
      "score": 0.0346338227,
      "actions": []
    },
    {
      "intent": "RepeatLastTimeAsked",
      "score": 0.0171330366,
      "actions": []
    }
  ],
  "entities": [
    {
      "entity": "mikkel",
      "type": "User",
      "startIndex": 20,
      "endIndex": 25,
      "score": 0.910984635
    },
    {
      "entity": "4 in the afternoon",
      "type": "builtin.datetime.time",
      "startIndex": 30,
      "endIndex": 47,
      "resolution": {
        "time": "T16"
      }
    }
  ]
}

authors: msft-shahins warrenbuckley


text:
Update locate_msbuild.ps1 for Dev15.

Refactor logic of legacy script to use locate_msbuild.ps1

@Cellule I added delayed expansion. Since we need to export a new PATH from this script, and setlocal (even with the param EnableDelayedExpansion) creates a scope for the script, I needed to move the setlocal ... endlocal as close to the usage as possible. Because of the exact scope where I did this I was worried it would not work at all, but it does fix the issue (if msbuild.exe is already on the path, the script reports that it could not locate msbuild.exe).
On the other hand, I'm now wondering whether it would be better to just add a function to the powershell script to compute and output the new PATH (whether modified or not) and assign that to path. That way we can keep all the logic in powershell and only wrap the logic for the purposes of exporting the updated path. That was essentially the goal of the refactoring I did here in the first place.

One thing we could do differently in the script is, in the dev12 check put a goto like goto:checkMSBuild then we don't need the else and the we shouldn't need the delayed expansion.

Let's just merge this for now :)

Merged #2842 which included #2835. I'll rebase and update this PR to just be the refactoring in add_msbuild_path.cmd

Will replace with a new PR when ready.

authors: Cellule dilijev tcare

repo: Microsoft/ChakraCore


text:
Add functionality for Creating CRM Users in O365

Add functionality for Creating CRM Users in O365

@uthra22,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

repo: Microsoft/EasyRepro


text:
How to occlude part of placeable object that intersect room mesh?

Seeing as object are placed using their transform origin, how can I occlude any part of the mesh that intersects the room mesh and would appear "outside" the room?
Example; make a sphere and add TapToPlace script. You can place this around the room, but half of it will be "behind" the room mesh, as it's origin is in the middle of the sphere.
In addition, let's say I have a cylinder, aiming straight up, with its base at ZY 0, 0. If you place it on the floor, it would point straight up, fine. But if you place it on a wall (vertical mesh/plane) how would you make it lie horizontally, following the orientation of the mesh it is placed on?

You are asking about 3 different questions here.  My suggestion would be to move them into the official forums at https://forums.hololens.com
As for occluding the half of your object that is behind your mesh, you want to use an occlusion shader on your spatial mesh.
You can use the Mesh Renderer to find the bounds of your object for placement, rather than using the origin.

Going to close this.  It's probably been archived by google by now.

repo: Microsoft/HoloToolkit-Unity


text:
Layout issue in compact view

Hi when running the Inventory app when you shrink the width to its most compact size, the Hamburger menu overlays the Dashboard label (Texkblock?).   Possibly you can shift the page content down by one line so that it there isn't any UI overlap.
Thanks,
Rick

@rickengle Thanks for reporting. Labeled as a bug.

Closed with pull request by @dishantmshah

authors: Alvaromah rickengle

repo: Microsoft/InventorySample


text:
Launch fails when using 'externalConsole' and path with spaces

When MIEngine is placed in a directory with spaces on OSX, then launch requests that have 'externalConsole' enable fail.
This may be due to https://github.com/Microsoft/MIEngine/blob/master/src/MICore/TerminalLauncher.cs#L99 is not quoted and same for {4} at https://github.com/Microsoft/MIEngine/blob/master/src/MICore/UnixUtilities.cs#L58.

This can be closed since now I'm using 'runInTerminal' command hence I don't hit this problem anymore.

Thanks!

authors: DavidKarlas gregg-miskelly

repo: Microsoft/MIEngine


text:
Click and drag data selection

I'm building a new visual using typescript.
And I need to use click and drag data selection that exists on the Windows desktop for example.
The visual I'm building is a matrix , and I need this click and drag function to select the data that will be highlighted.
Any idea how to implement this in the visual I'm building?

@gabs17
You can use this visual as example
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381703?src=office&tab=Reviews
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381825?src=office&tab=Overview
There are source code https://github.com/akvelon/PowerBI-Scatter-Chart
Logic related to drag and drop is here src/selectionUtil.ts

repo: Microsoft/PowerBI-visuals


text:
fetch() definitions not loaded correctly

The fetch definitions, recently added to the default lib.d.ts, are not being loaded by this plugin.
Put a call to "fetch()" in any ts file, and it should be highlighted as an error ("Cannot find name 'fetch'), but compiling with the latest tsc should produce no errors.
Here's my setup:
Sublime Text 3 build 3126
TypeScript plug-in 2.1.0
TypeScript 2.2.2
Mac OS 10.12.3
tsconfig.json:
{
"compilerOptions": {
"sourceMap": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"strictNullChecks": true,
"alwaysStrict": true,
"module": "commonjs",
"target": "es6",
"jsx": "preserve",
"allowJs": false,
"pretty": true,
"experimentalDecorators": true
}
}

The TS version shipped with Sublime Plugin is kinda outdated, the new versions will be shipped next time with this plugin. Meanwhile you can choose to use a custom TS version with these instructions

Thanks. Sorry for the confusion.

authors: rc-davis zhengbli

repo: Microsoft/TypeScript-Sublime-Plugin


text:
Fix common colorization issue in class/interface declaration.

Before:

After:

Hi @hoanhtien, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

The new commit fixes all scenarios in https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/226.

:+1:

authors: hoanhtien msftclas zhengbli


text:
Setting to set execution environnement (node or browser)

When coding for node, It feels strange to have all the stuff specific to browser available by default.
For example, this is compiled with no warning by tsc 2.0.2:
alert(name); // name and alert are part of lib.d.ts

Maybe an env setting in tsconfig.json could be a solution...
And I would also appreciate that tsc --init interactively ask for it. Like eslint --init does for example.

You can set e.g. "lib": ["es2015.core"] in your tsconfig's compilerOptions settings:

Why is the browser environment opt-out, but other environments (like node) are opt-in?

Yes it's working thanks. But now, console cannot be found.
99.9% users will run the javascript code either inside the browser or node.
Don't you think that it would make sense to have simple presets to support those environments ?

Related: #9466

@testerez re getting things like console to work, @RyanCavanaugh's suggestion above doesn't cover that. You also need the node typings. See https://github.com/Microsoft/TypeScript/issues/9466#issuecomment-230089243. I think the step 3 there is no longer needed due to a recent fix.

I get this error
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.

with tsconfit
{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es5",
    "noImplicitAny": true,
    "sourceMap": false,
    "strictNullChecks": true,
    "lib": [
      "es2015.core"
    ],
    "types": ["node"]
  }
}

and running
tsc -p tsconfig.json

@testerez try using "lib": ["es2015"] instead of "lib: ["es2015.core"].

Ho yes sorry didn't see the difference here. Working now!
So what about the interactive tsc --init is there any plan about something like that?
It's not so easy to sell typescript to JS devs... Anything that could make the first contact smoother is welcome!

Personally I agree that typeScript should not 'choose favourites' between environments.
Maybe you could chime in on #9466 since that covers much the same concern and is labeled 'awaiting more feedback'.

Yes, same topic. Thanks for the link.

adding a lib for node is covered in https://github.com/Microsoft/TypeScript/issues/9466. closing.

authors: RyanCavanaugh mhegazy testerez yortus

repo: Microsoft/TypeScript


text:
Suggestion: custom loaders for webpack integration.

Please see my prior issue. (https://github.com/Microsoft/TypeScript/issues/11975)
Scenario
I have a pretty normal looking react project layout.
project/
├── node_modules
├── src
│   ├── modules
│   └── components
├── webpack.config.js
└── tsconfig.json

I have the following goals.

Import commonjs modules from /node_modules.
Don't import modules from $HOME/node_modules.
Import es6 modules from /src by name (not by relative path)
Import css modules and generate default typescript export on the fly.
Import react components with inline HTML in JSX syntax.
Import typings from /typings.
Import typings from /node_modules/@types.
Build project with webpack.

It's unclear how to accomplish my entire list. Webpack works great for JavaScript, but the issue is TypeScript can never find anything. I want static typing but it's too difficult to figure out. Instead, I end up with a hybrid code base.
Solution
See Jest transform for inspiration.
It would be nice if TypeScript allowed user defined resolution and file reading functions. I'd imagine the types could look like this:
resolveModule(absolutePath: string, moduleName: string): Promise<FileDescriptor>
readFile(absolutePath: string): Promise<NodeBuffer, SourceMap?>

I could provide nodejs modules that adhere to the interface.
{
    compilerOptions: {
        resolveModule: "./config/typescript/resolve.js",
        readFile: "./config/typescript/read.js",
    },
}

It would open up a world of possibilities for developers without needing constant changes to TypeScript core. The most popular strategies (like commonjs and typescript) could be bundled as a string constant instead of a path to code.
// tsconfig.json

{
    compilerOptions: {
        resolveModule: "commonjs",
        readFile: "typescript",
    },
}

If I want to do unusual things, like import image files as type string or parse CSS files for safe css module access, I should be allowed. The concept is similar to webpack loaders.
It's simple and configurable. It doesn't lock developers into using specific file extensions, or module resolution strategies, or frameworks, or build systems. TypeScript should just check types, and let developers provide modules and definitions as needed.

The only thing that I believe is currently problematic is

Don't import modules from $HOME/node_modules

I often get get types from parent directories that are incidentally on disk.
For the remaining items this does the trick:
tsconfig.json
{
    "compilerOptions": {
        "moduleResolution": "node",
        "target": "es2015",
        "module": "es2015",
        "jsx": "react",
        "allowSyntheticDefaultImports": true,
        "baseUrl": "src",
        "paths": {
            "*":[
                "modules/*"
            ]
        }
    }
}

globals.d.ts
declare module '*.css' {
    const css: React.CSSProperties;
    export default css;
}

src/main.tsx
import $ from 'jquery'; // typings/globals/jquery/index.d.ts
import * as React from 'react'; // node_modules/@types/react/index.d.ts
import {render} from 'react-dom'; // node_modules/@types/react/index.d.ts
import square from 'square'; // src/modules/square.ts
import style from 'main.css'; // anywhere.css

export default () => render(
    <div style={style}>
        {square(4)}
    </div>,
    $('#app')[0]
);

Sorry I think I misunderstood the issue. Are you asking for the language service to parse the CSS files?
I think
resolveModule: "./config/typescript/resolve.js",

would be immensely valuable but that
readFile: "typescript",

is not a good idea.

Thanks for the tsconfig.json example. I updated mine to what you suggested. I had it working except for importing folders using index.ts or index.tsx which is now fixed.
With respect to this issue, I guess it's two separate parts.

Complete control of mapping module name to absolute path. It could "include batteries" for normal setups.

Some way to preprocess non-typescript imports to either lookup or generate .d.ts. It's a general solution for typings vs @types and would allow cool stuff like importing assets safely in webpack, or even loading file formats that don't exist yet. I realize that could be a bit out of scope.

I hope this makes sense.

It makes sense but I'm not sure if there is any reason to couple the two things because given the first capability, the second is just a matter of generating declaration files to describe the shape of these files.
The first definitely seems in scope but the second is not currently a TypeScript concern and does not need to be for this to work. Ultimately, it is some other tool, e.g. a Webpack plugin that would actually provide the runtime values for these assets. That is perfect, the TypeScript compiler doesn't care about that - all it needs is a type declaration.

Ultimately, it is some other tool, e.g. a Webpack plugin that would actually provide the runtime values for these assets. That is perfect, the TypeScript compiler doesn't care about that - all it needs is a type declaration.

I think we're in agreement.
For sure, TypeScript does not need to know css. It just needs to allow configurable function to map a non-TypeScript import to a real or virtual .d.ts file. Webpack will actually load the css, but TypeScript needs to know the definition of the import so it can find errors in the .tsx code.
I'm ignorant in TypeScript compiler internals, but in theory it works the same way as a JavaScript file import, where you need to map a non-TypeScript (in this case JavaScript) file to the corresponding definition file. It's just a bit more general.

Technically this is not quite right since TypeScript handles JavaScript code just fine and infers tons of information from and can also transpile it directly. I think they key point is pluggable resolvers for real or virtual module identifiers.

Yeah that's the main point. What do you think?

Anything on this yet?

We already offer the CompilerHost API wherein you can customize file I/O, module resolution, and other behavior. A sufficiently complex setup that can't be solved with path mapping can self-host the compiler with their own CompilerHost and do pretty much anything. Loading arbitrary JS from the config file to do this as part of regular tsc isn't something we'd want to enable for mainline scenarios.


text:
Editor Action Format hotkey not working on some jsx markup

From @CrazyRyDmi on June 1, 2016 16:46

VSCode Version:1.1.1
OS Version:Windows 8.1

Steps to Reproduce:

Create .tsx file with simple jsx template (one div element).
Add a text with double quotes and put inside it a some substitution (with braces).
Press shift+alt+f to perform a format action.

After that formatting will not work on any file of project until vsc restarted.
My example.tsx:

Copied from original issue: Microsoft/vscode#7102

Having the same issue lately!

Does not seem to happen using the re-wrote version tsserver. I think this issue was addressed there.

authors: dbaeumer oshalygin zhengbli


text:
Fix #7362: check for --watchFile in tsconfig.json as well as on the c…

Fixes #7362.

:+1:

authors: mhegazy vladima


text:
Not use toPath in tsc when dealing with file watching

https://github.com/Microsoft/TypeScript/pull/7658 didn't take care of file watching in tsc, this PR fixes that.
Should address https://github.com/Microsoft/TypeScript/issues/7154#issuecomment-205804047

:+1:

:+1:

authors: mhegazy vladima zhengbli


text:
Can't run some ELF64 amd64 binaries, perhaps the 'GNU/Linux' linked ones?

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16299.192]

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

Download cli53-linux-amd64 binary from https://github.com/barnybug/cli53 (it is compiled golang)

$ wget -q https://github.com/barnybug/cli53/releases/download/0.8.12/cli53-linux-amd64

Check file type is correct

$ file cli53-linux-amd64
cli53-linux-amd64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, stripped

Make executable

$ chmod a+x cli53-linux-amd64

Run

$ ./cli53-linux-amd64
-bash: ./cli53-linux-amd64: cannot execute binary file: Exec format error

Cry :-)

What's wrong / what should be happening instead:

Should run. The exact same binary works fine on Ubuntu 14.04 on an amd64 CPU, so it seems like a problem with WSL specifically.
$ wget -q https://github.com/barnybug/cli53/releases/download/0.8.12/cli53-linux-amd64

$ file cli53-linux-amd64
cli53-linux-amd64: ELF 64-bit LSB  executable, x86-64, version 1 (GNU/Linux), statically linked, stripped

$ chmod a+x cli53-linux-amd64

$ ./cli53-linux-amd64 --version
cli53 version 0.8.12

Other similar ELF64 golang binaries do run on WSL. Notable these are 'SYSV' rather than 'GNU/Linux' linked. Is there an incompatibility there?
$ file helm
helm: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped

$ ./helm version --client
Client: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}

$ file kubectl
kubectl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped

$ ./kubectl version --client
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.5", GitCommit:"cce11c6a185279d037023e02ac5249e14daa22bf", GitTreeState:"clean", BuildDate:"2017-12-07T16:16:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Strace of the failing command, if applicable:  (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)

$ strace -f ./cli53-linux-amd64
execve("./cli53-linux-amd64", ["./cli53-linux-amd64"], [/* 17 vars */]) = -1 ENOEXEC (Exec format error)
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
exit_group(1)                           = ?
+++ exited with 1 +++

Yay, the Spring April ahem June 1803 update fixes this.
$ cli53 --version
cli53 version 0.8.12

Thanks for the fix @benhillis!

repo: Microsoft/WSL


text:
Handle empty lines, background drawing, and multicolor lines

Handle edge case where a line is made up of white space, fix bug where trying to call CTRunDraw on a background thread would crash, and fix regression of not being able to have multiple colors in the same line.
Fixes #1130, #1109, and #1171

{}

Refers to: Frameworks/CoreGraphics/CGContextCairo.mm:74 in ff1ac10. [](commit_id = ff1ac10d27c7c380723def25df1d600292450269, deletion_comment = False)

}

not needed

Refers to: Frameworks/CoreText/DWriteWrapper.mm:129 in ff1ac10. [](commit_id = ff1ac10d27c7c380723def25df1d600292450269, deletion_comment = False)

}

I think this is in the wrong place?

In reply to: 254926542 [](ancestors = 254926542)

Refers to: Frameworks/CoreText/DWriteWrapper.mm:129 in ff1ac10. [](commit_id = ff1ac10d27c7c380723def25df1d600292450269, deletion_comment = False)

if (DEBUG_VERBOSE) {

not needed.

Refers to: Frameworks/QuartzCore/CALayer.mm:497 in ff1ac10. [](commit_id = ff1ac10d27c7c380723def25df1d600292450269, deletion_comment = False)

:shipit:

:shipit:

authors: aballway ms-jihua msft-Jeyaram rajsesh-msft

repo: Microsoft/WinObjC


text:
Unable to play HLS stream

Hi,
we're trying to play our HLS stream using MediaPlayer but are unable to do so. The AdaptiveStreaming sample produces the same behavior. We have no issues playing the stream in other players. Could it be a bug in the player?
https://live-cdn.sr.se/pool1/p3/p3.isml/p3.m3u8
Best

Thank you for reporting. This bug is fixed in the latest flights of Windows.

Thanks for looking into this. Does this mean we have to wait until the "latest flights of Windows" are available on all devices (specific version)? Or will we get an update to Windows.Media.Playback.MediaPlayer in the UWP SDK?

It is an OS and not SDK issue. Therefore it requires an OS update to a newer build of Windows 10. You can download the current flight which includes the fix that will be available in the next official update.

authors: BoneGoat aarononeal

repo: Microsoft/Windows-universal-samples


text:
Added note about naming rules for names and values

Property and Metadata names and values have to be in ASCII characters, otherwise the Blob Storage rejects the blob with a 400 Bad Request. Added this info to top note.

Hi @stefan-akelius, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@stefan-akelius Hi Stefan, thanks for your contribution! My apologies for the delay in response. I see that you have a repeated line in the requested change (the line that starts "Property and metadata values..."). Also, I'm investigating to see whether it's truly ASCII that's required, or merely alpha-numeric characters. I expect to have an update early next week.

@mmacy How would you phrase it? The blob storage does not accept german umlauts or other special chars, for example ä or ß. So it seems to be an alphanumeric subset.

@stefan-akelius Thanks for the examples, that helps. It may very well be only ASCII, so your wording might work, but I suspect other special characters may not need to be encoded. I just want to ensure that we state exactly (and most succinctly) what must be Base64 or URL-encoded. I'll be checking with the team to verify.

@mmacy great to hear! 👍

@mmacy I removed the duplicated line.

@mmacy Merged your edits and I think this looks good to go?

@stefan-akelius Looks good, thanks again for your contribution!
#sign-off

@tysonn please merge this PR

authors: Saisang mmacy msftclas stefan-akelius

repo: Microsoft/azure-docs


text:
mvn azure-functions:package doesn't work

by @jeffhollan:
When I run mvn azure-functions:package it creates a target directory that only has a host.json.  Doing mvn package works fine.  Not sure why the former doesn't work, but should likely either remove or fix.

@jeffhollan Thanks for the feedback, we will update the document

repo: Microsoft/azure-maven-plugins


text:
Maven Azure Functions plugin 1.0.0-beta-5 Endgame

Status
Task
Due

🏃
Publish new plugin & archetype into sonatype staging repo
8/15

[ ]
Verification
TBD

[ ]
Release to Maven Central
TBD

[ ]
Merge develop to master
TBD

[ ]
Add tag and release notes
TBD

[ ]
Update version for next release
TBD

@pragnagopa FYI


text:
Refactoring deployment configuration in V2 schema version

Add the <deployment> configuration in V2 schema version. It is a required configuration if users specify the schema version to V2. And we create the artifact handler from the schema version.
<deployment> configuration has only a list of Resources, the deployment type becomes transparent to users, the artifact will be deployed via war deploy or zip deploy depends on the type of the artifacts.

If users are deploying only war artifacts, we use war deploy, the targetPath configuration is the relative path to webapps for users convenience
If users are deploying mixing artifacts, which is not suggested, a warning message will pop up for the possible incorrect path resolving and overriding caused by zip deploy

Codecov Report

Merging #435 into develop will decrease coverage by 2.06%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #435      +/-   ##
===========================================
- Coverage    50.65%   48.59%   -2.07%
===========================================
  Files           67       69       +2
  Lines         1978     2062      +84
  Branches       212      228      +16
===========================================
  Hits          1002     1002
- Misses         908      992      +84
  Partials        68       68

Impacted Files
Coverage Δ

...zure/maven/webapp/handlers/HandlerFactoryImpl.java
0% <0%> (ø)
:arrow_up:

...ven/webapp/handlers/v1/WarArtifactHandlerImpl.java
0% <0%> (ø)
:arrow_up:

...crosoft/azure/maven/webapp/AbstractWebAppMojo.java
0% <0%> (ø)
:arrow_up:

...re/maven/webapp/handlers/ArtifactHandlerUtils.java
0% <0%> (ø)

...re/maven/webapp/handlers/v2/ArtifactHandlerV2.java
0% <0%> (ø)

Continue to review full report at Codecov.

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

authors: SummerSun codecov-io


text:
rename VSTS to Azure DevOps

maybe the id of the schema should be renamed as well if possible.

@damccorm I also changed the id as you requested. Hope that fits.

Looks great, I'll go ahead and merge!

authors: SebastianSchuetze damccorm

repo: Microsoft/azure-pipelines-task-lib


text:
Save as Excel on Windows doesn't open Excel

SQL Operations Studio Version:
OS: Windows

Steps to Reproduce:
Run a query & click Save as Excel button. Fill in path and click OK
Expected:

Excel appears with the file opened
Actual:
Excel never opens

This may be machine-specific, but warrants investigation. We use a VSCode API to open files natively and this works for browser paths, but perhaps in this case we need to prompt with more info so excel files open as expected?

There is a now an Open File button in the save completed notification window that will launch Excel.

authors: kburtram kevcunnane

repo: Microsoft/azuredatastudio


text:
Display difference of choices in Prompt Options in Emulator and web Chat

I am trying to provide a set of choice to the user using PromptOptions and ChoiceFactory in Bot Framework V4. When tested on Emulator I get the choices as suggestions:

but when testing on the Webchat I get the choice in indexed format like:
1.S
2.M
3.L
4.XL
5.XXL
6.XXXL
CODE:
step.PromptAsync("cardPrompt", new PromptOptions { Prompt = MessageFactory.Text("Please select the size of '" + userProfile.Productname + "' that you need."), Choices = ChoiceFactory.ToChoices(new List { "S", "M", "L", "XL", "XXL", "XXXL" }) }, cancellationToken);
Would be helpful  if anyone can provide suggestions on how can we achieve the choices as separate suggestion box.

Please try 4.1 bits, as soon as they become available (later today). this should be fixed.

authors: RavindraVarmaa yochay

repo: Microsoft/botbuilder-dotnet


text:
Question: Add support for std::byte

Hello,
Since new cppwinrt relies on C++17 and STL now includes the std::byte implementation it immediately caused conflicts with SDK rpcndr.h that uses byte typedef in global scope. It was good excuse to try (again) convert code from uint8_t to std::byte. Once all user code is converted the interaction with cppwinrt is awkward, since arary_view<T> wrappers expect containers of uint8_t, and there is no straight conversion from/to std::byte. The only way to pass vector<std::byte> to API is to use array_view constructor with start/end pointer args and to explicitly cast pointers:
    const std::vector<std::byte> buffer = cmdSelect.GetBuffer();
    auto cmdSelectBuffer = CryptographicBuffer::CreateFromByteArray({
            reinterpret_cast<const uint8_t*>(buffer.data()),
            reinterpret_cast<const uint8_t*>(buffer.data() + buffer.size())
        });

I would like to know what approach will you choose in future in cppwinrt to provide transparent conversion from c++ containers containing std::byte and ABI layer expecting buffers of "unsigned char"?
Do you think conversion  between these buffers should be automatic or user must explicitly call some conversion function?

I've experimented with providing alternative constructors to array_view<T> that allow to completely transparently pass any container of std::byte to array_view (my template-fu was not enough to make initializer_list work as I wanted). It worked fine for my test program, but probably there are many other scenarios that I am not aware of. Not yet sure whether same changes required to com_ptr<T> as well.
See my std::byte aware array_view<T>:
https://gist.github.com/jonitis/797712c7b8c61fb29cc9f06e675f1fff
Thanks in advance

Thanks for the suggestion. We are evaluating whether to support std::byte directly. Although I like the functionality of std::byte, I am of the opinion that it was very poorly named. Given that Windows has included a type alias called byte for time immemorial (at least as far back as the Windows NT 4 SDK, but likely much earlier), following the convention of the fixed width integer types (such as byte_t) might have been a more practical choice to encourage wide adoption.

We are unlikely to make such a change at this stage due to compatibility with existing code that uses both the Windows SDK and the C++ standard library. There are efforts to modernize the Windows SDK, but that's another matter. There's also nothing wrong with using uint8_t. Keep in mind that while we require a C++17 compiler and embrace much of modern C++, we are under no obligation to embrace all of it. For example, there's no value in us using std::future, std::function or std::shared_ptr since we have alternatives that are more suitable to WinRT.

Thank you for clarification.

authors: jonitis kennykerr

repo: Microsoft/cppwinrt


text:
Not able to build project with ToolsVersion="15.0"

I'm using the image tagged as "microsoft/dotnet-framework:4.7.2-sdk" into my CI pipeline.
From today when I try to build I'm getting the following error:
Project file contains ToolsVersion="15.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333
Thanks
G.

@giusepanzuto - any chance you can share your project?  VS 2019 was released yesterday which is more than likely the source of the issue.  To unblock yourself until the issue is resolved, you can use the pervious version - mcr.microsoft.com/dotnet/framework/sdk:4.7.2-20190312-windowsservercore-ltsc2016 tag.

Related to #228
It'd also be helpful to know what your Dockerfile looks like.

@giusepanzuto - any chance you can share your project? VS 2019 was released yesterday which is more than likely the source of the issue. To unblock yourself until the issue is resolved, you can use the pervious version - mcr.microsoft.com/dotnet/framework/sdk:4.7.2-20190312-windowsservercore-ltsc2016 tag.

I confirm, it works correctly with the version 4.7.2-20190312-windowsservercore-ltsc2016, so I think that the issue is caused by the last update.
Unfortunately I cannot share code here, but I can confirm that we have the same issue with all software that are currently using pipeline with this image.
Thank you for the support.
G.

@giusepanzuto - Are you able to provide a simplified version of the project that can repro the issue?  As an example, there are projects in both the tests and samples folder of this repo which are using 15.0 for the ToolsVersion and they do not get such an error.

@giusepanzuto - I understand not wanting to share the project here.  As @mthalman mentioned a standalone repo is preferred.  If you can't figure one out and you are willing to share it with me you can mail me @ msimons@ms.

I'm try to create an example project... in the meanwhile... a difference can be that we use Cake to run the build. The command is:
MSBuild(solutionFile, new MSBuildSettings {
    Verbosity = Verbosity.Minimal,
    Configuration = "Release"
});

Curious if you using a recent version of Cake which supports VS 2019?  It looks like support was added here.

it seams that use the preview version
/Program86/Microsoft Visual Studio/2019/Preview/MSBuild/Current/Bin/MSBuild.exe

Ah yes, I didn't notice that.  Seems like that is going to be an issue.  I would follow up with Cake on this.

Closing since this appears to be an external issue (e.g. Cake).

authors: MichaelSimons giusepanzuto mthalman

repo: Microsoft/dotnet-framework-docker


text:
ParameterInfo objects are not guaranteed to be unique.

After spending many hours tracking down this bug in Simple Injector, I came to the conclusion that:

System.Type instances are guaranteed to be unique within a single AppDomain.
System.MemberBase instances are guaranteed to be unique within a single AppDomain.
System.ParameterInfo instances are not guaranteed to be unique.

When looking at the source code for System.Type, System.Type.GetMembers() and related methods it becomes clear that for each type there will be at most one System.Type instance and for each type member, there will be at most one MemberBase instance. For some weird reason however, this doesn't hold for ParameterInfo instances. When looking at ConstructorInfo.GetParameters() we can see that the creation of ParameterInfo objects is not protected by a lock and multiple concurrent threads can cause multiple ParameterInfo instances to be published for the same 'physical' parameter.
I think this is a bug, or at least this is a design quirk, because developers will typically assume all reflection types to be unique within a single app domain.

Moved to https://github.com/dotnet/corefx/issues/13265

repo: Microsoft/dotnet


text:
mouseHandler steals focus then falls into infinite loop

monaco-editor npm version: 0.6.1
I have an issue that can be replicated. While the editor is in focus the user switches to open a sidebar in the application then clicks back on the text area of the editor. The sidebar is attached to a click-outside directive that is suppose to help it close properly on a blur event.
The application crashes at that point and gets stuck in viewEventDispatcher.ts _doConsumeQueue().
The mousedown event is where this starts.
https://github.com/Microsoft/vscode/blob/de14912dec52530aadb1db3e30bc3255a8d29bcf/src/vs/editor/browser/controller/mouseHandler.ts#L275
Any suggestions would help.

Debugged, it was the click-outside directive stealing the focus.
Closing.

repo: Microsoft/monaco-editor


text:
update version to 5.1.1

This change is

Coverage remained the same at 73.198% when pulling f25d5d59dd5457c20a198770b93d2bc45259cb73 on yitam:v511 into def61df42cfc9d1dbd91c7805469ffcb302ded54 on Microsoft:dev.

Codecov Report

Merging #572 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #572   +/-   ##
=======================================
  Coverage   73.02%   73.02%
=======================================
  Files          75       75
  Lines       23054    23054
=======================================
  Hits        16835    16835
  Misses       6219     6219

Continue to review full report at Codecov.

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

authors: codecov-io coveralls yitam

repo: Microsoft/msphpsql


text:
The example for "Create a SQL Server container and restore a .bak file" is missing the image name

Hi,
this script example is missing the image name for the container that is being generated in line 4.
I think that the image name should be microsoft/mssql-server-windows-express.

That sounds right

Fixed

authors: Sven-Niehus freddydk

repo: Microsoft/navcontainerhelper


text:
VS crash Win32Exception failed to start process during debugging

No repro steps, but we can potentially just catch this exception.
An exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.NodejsTools.dll but was not handled in user code

at Microsoft.NodejsTools.Debugger.NodeProcess.Start() in c:\myntvs\Nodejs\Product\Nodejs\Debugger\NodeProcess.cs:line 91
at Microsoft.NodejsTools.Debugger.NodeDebugger.Start(Boolean startListening) in c:\myntvs\Nodejs\Product\Nodejs\Debugger\NodeDebugger.cs:line 157
at Microsoft.NodejsTools.Debugger.DebugEngine.AD7Engine.Microsoft.VisualStudio.Debugger.Interop.IDebugEngineLaunch2.LaunchSuspended(String pszServer, IDebugPort2 port, String exe, String args, String dir, String env, String options, enum_LAUNCH_FLAGS launchFlags, UInt32 hStdInput, UInt32 hStdOutput, UInt32 hStdError, IDebugEventCallback2 ad7Callback, IDebugProcess2& process) in c:\myntvs\Nodejs\Product\Nodejs\Debugger\DebugEngine\AD7Engine.cs:line 563

actually nevermind. this was caught somewhere down the line. the debugger tricked me. :smiley:

Okay I figured out when this issue occurs. It happens right after I switch Node.js versions using nvm, and that goes wrong for some reason (you'd also get the same message in the cmd prompt, sans the "press any key help stopped working" message. Typically another nvm use solves the issue.

repo: Microsoft/nodejstools


text:
Update samples to use OE_API version 2

Signed-off-by: Alin Gabriel Serdean aserdean@ovn.org

bors try

@andschwa, @dthaler I limited the scope of the PR since the Makefiles don't define a lot of warnings as compared to the ones I encountered in: https://github.com/Microsoft/openenclave/pull/1466.
I hope it looks cleaner now.
Can you PTAL.

bors r+

authors: andschwa aserdean

repo: Microsoft/openenclave


text:
Add coordinate helper to simulator

There are a few ways we could do this, but the idea is to add some overlay or info to the simulator to indicate coordinates.
Various options:

Toggleable grid
Hover coordinates in the bottom left just like the sprite editor
A tooltip with labelled axes (see my followup comment for a mockup)

Here is my mockup for option 3:

Clearly this should be hanging in a museum somewhere

@Jaqster @samelhusseini @pelikhan @eric-camplin thoughts on this?

Looks great

I like it :)

I think I would prefer a grid toggle...  there may be times when you always want the grid overlay (calculating distances, etc.) without using a mouse cursor...

This one is nice because you don’t need a special mode. We could turn on the grid in debug mode.

From: Jacqueline Russell notifications@github.com
Sent: Wednesday, May 23, 2018 7:44 PM
Subject: [Microsoft/pxt-32] Add coordinate helper to simulator (#130)
To: Microsoft/pxt-32 pxt-32@noreply.github.com
Cc: Peli de Halleux jhalleux@microsoft.com, Mention mention@noreply.github.com
I think I would prefer a grid toggle... there may be times when you always want the grid overlay (calculating distances, etc.) without using a mouse cursor...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpxt-32%2Fissues%2F130%23issuecomment-391569999&data=02|01|jhalleux%40microsoft.com|535f38ab2f5b4fd2660808d5c1204ada|72f988bf86f141af91ab2d7cd011db47|1|0|636627266800374454&sdata=EiEvMCaqtmAicsuOmeFVW7NKTAew8hnsOKOOafT58AM%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD-4KXW1WEhFKQfRmZTUNy8Kvv-0fMe9ks5t1h6WgaJpZM4ULYv1&data=02|01|jhalleux%40microsoft.com|535f38ab2f5b4fd2660808d5c1204ada|72f988bf86f141af91ab2d7cd011db47|1|0|636627266800374454&sdata=1NAiKreuJJcOBJY9xsF8p4%2F4dhjd9jsarWwQn%2BOUNhU%3D&reserved=0.

My concern with the grid option is that it might be too small when the simulator is on the side of the screen. We could instead do the grid at every 4 pixels or something (5 doesn't divide evenly into our screen height unfortunately).

Good point. Unlike other game engine which have lots of pixels, we only have 128x160 so a grid is going to overload the UI.

Fixed

authors: Jaqster abchatra pelikhan riknoll samelhusseini


text:
Removing playSound's default value

This at least gets us the old behavior in the toolbox (Power Up is selected by default) and the completions from Monaco are no longer broken (you get an empty string; not ideal but whatever)
Any other fix will require changes to PXT. Just to break down why this is an issue:
playSound() takes a string argument but uses a shadow block called sound() for the default value in blocks
sound() takes an enum argument and returns a string
In PXT when you give a default value for an argument then that value is sent to the shadow block in the toolbox and also the completion snippets in Monaco. Usually that works because the shadow block doesn't do anything to the value (shim=TD_ID) and so the same default argument for the shadow block also works for the parameter. Because the sound() shadow block actually does something to the argument it is passed (turns a number into a string) our strategy breaks down here.
We need a new authoring syntax for specifying default values on the shadow and for the actual API.

Could you please file a bug for the need of the new authoring syntax, linking this issue. (For tracking purposes).

authors: riknoll samelhusseini

repo: Microsoft/pxt-common-packages


text:
No multi-frame image editor

Touch Develop has a multi frame image editor. Children use this all the time to create interesting animations on the micro:bit (as scrolling text is pretty un engaging).
It's not possible to do more than two frames at a time for an animation in PXT.
Would it be possible to add this to the list to put back in, it is a much used feature of TouchDevelop and something that is sorely missed in PXT.

Related ticket: https://github.com/Microsoft/pxt/issues/2131

@DavidWhaleMEF  - you can sequence things, like below, to get more than two frames.  Sequencing is not a bad thing for kids to learn.

Thanks @tballmsft yes that is what a lot of users do. However see the linked ticket, there is a bug in the multi frame sequencing use case where it clears the screen at the end of each double frame - everyone I see doing multi frame work sequences in two frame chunks, because it fits on the screen more easily where there are a lot of frames.
LInked issue: #2131

authors: DavidWhaleMEF tballmsft

repo: Microsoft/pxt


text:
"radio" is missing from reference docs

reference docs at https://m.pxt.io/reference does not include "radio"

Fixed.

authors: pelikhan sehodges