Infer WP_ENVIRONMENT_TYPE based on WP_ENV

Currently, there is a mismatch between WP_ENV and WP_ENVIRONMENT_TYPE as described in #538. As opposed to PR #543, this does not try to keep WP_ENV and WP_ENVIRONMENT_TYPE in sync but rather infer the values of the latter from the former, as suggested in https://github.com/roots/bedrock/pull/543#issuecomment-877742762.
This way for example dev, trunk, dev-joe all map to WP_ENVIRONMENT_TYPE=develpoment and staging, stage-us and stage-eu to WP_ENVIRONMENT_TYPE=staging.
In my opinion, this is more backward-compatible than setting WP_ENV based on defined WP_ENVIRONMENT_TYPE because some people can unexpectedly get their configuration switched from staging to production for example when they set WP_ENVIRONMENT_TYPE=production.

The regular expression can be rewritten to get rid of the extra unused capturing groups.
- /^(st(a|)g|mod(e|)l|pre|demo)/
+ /^(sta?g|mode?l|pre|demo)/

Also makes it more readable, in my opinion.

@calind thanks for the improved PR and sorry for the delay. I'd rather remove the regexp and simplify this to just map the known env names directly (development, staging, production). For any other env names people can manually set it. How does that sound? Do you want to make those updates or should we take over this PR?

https://github.com/roots/bedrock/pull/668


fix(repeater-task-queue): rewrite es6 specific code

fixes #201 sphereio/sphere-product-import#91

[ ] commit messages are commitizen-friendly
[ ] code is unit tested
[ ] code is integration tested
[ ] public code is documented
[ ] code is reviewed by at least one person
[ ] code satisfies linter rules

Coverage remained the same at 97.476% when pulling 9c92b715f9c94dfc65b85d904deb6cbb374c33ec on 201-remove-es6-code into 3e92f75f3675a5ce58a09c6ba3a8520ece5083e9 on master.


[BUG] error[E0599]: no function or associated item named new found for struct Contract in the current scope

Describe the bug 🐞
The "new" function does not exist in the code before the "Contract::new" function is called in the unit test shown on this page https://docs.near.org/tutorials/crosswords/basics/hashing-and-unit-tests#write-a-regular-unit-test
UPDATE:: it appears that the code example pulled from github is testing the "new" function (which is accurate for the final version of the testing code) it should test the "set_solution" function.  showing the final code from github is the cause of the issue.
Expected behavior
I would expect the function to exist in the tutorial walk through code before we write a test for the function
Screenshots
If applicable, add screenshots to help explain your problem.
Location 🎯
code snippet found here

the code and description seems correct to me, explaining that the code tests the get solution

The code is given as an example before the tutorial reaches that part of
the lesson.   It matches a little later but is not appropriate in that
context.   If you walk through the tutorial as someone who does not yet
know rust you will see the issue.  The refactoring comes later in the
tutorial
On Wed, Oct 26, 2022, 4:25 AM gagdiez @.***> wrote:

the code and description seems correct to me, explaining that the code
tests the get solution
—
Reply to this email directly, view it on GitHub
https://github.com/near/docs/issues/1210#issuecomment-1291674455, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHNWJDPXZRLMGBTO2Z63EDWFDTHNANCNFSM6AAAAAAQOO56MQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

I see, thank you for reporting it! I'll reopen the issue and add a ticket to address it in a future sprint.


Vim9: wrong error while compiling function in debug mode

Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(tee <<'EOF'
    vim9script

    def Callback()
    enddef
    timer_start(0, (_) => Callback())

    breakadd func Func
    autocmd VimEnter * Func()
    def Func()
        eval [][0]
        try
        catch
            return
        endtry
    enddef
EOF
)

Execute the >next debugging command to step over eval [][0].
E684 and E1096 are given:
E684: list index out of range: 0
E1096: Returning a value in a function without a return type

Expected behavior
Only E684 is given.  Not E1096; because Func() does not return a value.  That is, no argument is passed to the :return command which Func() executes.
Version of Vim
8.2 Included patches: 1-4174
Environment
Operating system: Ubuntu 20.04.3 LTS
Terminal: xterm
Value of $TERM: xterm-256color
Shell: zsh 5.8
Logs and stack traces
N/A

I wrongly assumed that the try/catch block was necessary to reproduce.  It's not:
vim -Nu NONE -S <(tee <<'EOF'
    vim9script

    def Callback()
    enddef
    timer_start(0, (_) => Callback())

    breakadd func Func
    autocmd VimEnter * Func()
    def Func()
        eval [][0]
        return
    enddef
EOF
)

It seems that the error is not given for Func() but for the timer's callback:
>fu <lambda>1
   def <lambda>1(_: any)
1  return Callback()
   enddef

The definition indeed looks wrong, because there is no return type on the function's header:
def <lambda>1(_: any)

Maybe any should be specified:
def <lambda>1(_: any): any
                       ^^^

I still don't understand why an error is given, because timers should be disabled in debug mode since the patch 8.2.4035.
Also, why does Vim give an error only in debug mode?  Why not always?

Here is another way to reproduce, which doesn't require a VimEnter autocmd:
vim -Nu NONE -S <(tee <<'EOF'
    vim9script
    cnoremap <expr> <C-U> Func()
    def Func(): string
        Lambda = () => Callback()
        return ''
    enddef
    var Lambda: func
    def Callback()
    enddef
    feedkeys(":debug edit /tmp/file\<CR>", 'ntx')
EOF
)

While on the debug command-line, press <C-U>.  E1096 is given:
E1096: Returning a value in a function without a return type

Regression introduced in patch 8.2.4138.

The definition indeed looks wrong, because there is no return type on the function's header:
[...]
Also, why does Vim give an error only in debug mode? Why not always?

The issue is that since 8.2.4138, the way Vim defines a lambda is wrong when its expression is a function call which does not have a return type.
vim9script
def Callback()
enddef
var Lambda = () => Callback()
execute Lambda
    ->string()
    ->substitute("[()']", ' ', 'g')

   def <lambda>1()
1  return Callback()
   enddef

Notice that the lambda returns a value, but Vim does not specify a return type on the header.  That's wrong since 8.2.4138.  Since Callback() has no return type, Vim should simply remove the :return statement.  That is, it should define the lambda like this:
   def <lambda>1()
1  Callback()
   enddef

I still wonder why an error is only given in debug mode...

The error is only in debug mode, because then the function is compiled twice.
The first time the return type is "unknown", which is handled in the code to set the return type and not give an error.
The second time the return type has already been set to "void" and then "return expr" results in an error.
Let's recognize this is a lambda and not complain about the return type.


[language] Replace use of byteorder crate

The Rust std library provides support for everything we were doing with the
byteorder crate, so we can remove that crate dependency from the VM.
Motivation
Reducing dependencies on external crates
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Ran the existing tests

:umbrella: The latest upstream changes (presumably 37e273e0e7c56e7be3eb23676dac0a47ca21232a) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-libra r=dariorussi

:pushpin: Commit 5a77315 has been approved by dariorussi

:hourglass: Testing commit 5a77315f5627b19f14d608408b0f902e1194a5eb with merge e9384bc83240250795565f3ded9034ab9ba9b310...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: dariorussi
Pushing e9384bc83240250795565f3ded9034ab9ba9b310 to master...


Big steam games won't play

Please paste the output of the following command here: sudo edit-chroot -all

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20200116214215~master:9017d640
release: xenial
architecture: amd64
xmethod: xorg
targets: xfce
host: version 12607.82.0 (Official Build) stable-channel banjo
kernel: Linux localhost 4.4.196-16940-geab5e6346fdb #1 SMP PREEMPT Thu Jan 9 23:15:47 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Not unmounting /mnt/stateful_partition/crouton/chroots/xenial as another instance is using it.

Please describe your issue:
Large steam games(TF2, Gmod, ect.) Don't properly run. I can launch them, and the window shows up for a split second, and then it closes itself. The output of running Team Fortress 2 comes out with these outputs
 965: Failed to submit batchbuffer: Invalid argument
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
OpenGL: Mesa DRI Intel(R) Bay Trail x86/MMX/SSE2 3.0 Mesa 18.0.5 (3.0.0)
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_ARB_buffer_storage: AVAILABLE
GL_EXT_texture_sRGB_decode: AVAILABLE
Timed out waiting for game mapping!
GL_NVX_gpu_memory_info: UNAVAILABLE
GL_ATI_meminfo: UNAVAILABLE
GL_MAX_SAMPLES_EXT: 8
CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 2415 MHz, Processor: GenuineIntel
GlobalMemoryStatus:<PHONE_NUMBER>
CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 2415 MHz, Processor: GenuineIntel
GlobalMemoryStatus:<PHONE_NUMBER>
IDirect3DDevice9::Create: BackBufWidth: 1366, BackBufHeight: 768, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0
GL sampler object usage: DISABLED
Missing shutdown function for DevShotGenerator_Init() : DevShotGenerator_Shutdown()
Missing shutdown function for MapReslistGenerator_Init() : MapReslistGenerator_Shutdown()
Missing shutdown function for COM_InitFilesystem( m_StartupInfo.m_pInitialMod ) : COM_ShutdownFileSystem()
Missing shutdown function for Steam3Client().Activate() : Steam3Client().Shutdown()
/media/usb/steamapps/common/Team Fortress 2/hl2.sh: line 72:  8045 Segmentation fault      (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Game removed: AppID 440 "", ProcID 8045
Game 440 created interface STEAMAPPLIST_INTERFACE_VERSION001 /
Game 440 created interface STEAMAPPS_INTERFACE_VERSION008 /
Game 440 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_005 /
Game 440 created interface STEAMHTTP_INTERFACE_VERSION003 /
Game 440 created interface STEAMINVENTORY_INTERFACE_V003 /
Game 440 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 /
Game 440 created interface STEAMMUSIC_INTERFACE_VERSION001 /
Game 440 created interface STEAMPARENTALSETTINGS_INTERFACE_VERSION001 /
Game 440 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION014 /
Game 440 created interface STEAMSCREENSHOTS_INTERFACE_VERSION003 /
Game 440 created interface STEAMUGC_INTERFACE_VERSION012 /
Game 440 created interface STEAMUSERSTATS_INTERFACE_VERSION011 /
Game 440 created interface STEAMVIDEO_INTERFACE_V002 /
Game 440 created interface SteamController007 /
Game 440 created interface SteamFriends017 /
Game 440 created interface SteamInput001 /
Game 440 created interface SteamMatchGameSearch001 /
Game 440 created interface SteamMatchMaking009 /
Game 440 created interface SteamMatchMakingServers002 /
Game 440 created interface SteamNetworking005 /
Game 440 created interface SteamUser020 /
Game 440 created interface SteamUser020 / User
Game 440 created interface SteamUtils009 /
Game 440 created interface SteamUtils009 / Utils
Game 440 method call count for IClientUser::GetSteamID : 1
Game 440 method call count for IClientUtils::GetAppID : 47
Game 440 method call count for IClientUtils::RecordSteamInterfaceCreation : 46
Game 440 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 440 method call count for IClientControllerSerialized::HasGameMapping : 51
Game 440 method call count for IClientControllerSerialized::GetActionSetHandle : 4
Game 440 method call count for IClientControllerSerialized::GetDigitalActionHandle : 13
Uploaded AppInterfaceStats to Steam
Exiting app 440

These games used to work and run just fine with minimal issues. I don't know why this is happening
If known, describe the steps to reproduce the issue:
I have an Acer c720 Chromebook, the flag override software rendering lists is enabled.
I have a 1tb external hard drive with these games, it(/deb/sda) is mounted to a directory(/media/myusb which i used mkdir to make) so that it works for steam's library device system.
I ran TF2 afterward wherein the above issue happened

That looks like a problem with OpenGL, did you try to reinstall it?
You can do it by using this command:
sudo apt-get install freeglut3 freeglut3-dev libglew-dev
This will install FreeGLUT which is an opensource version of OpenGL


Program#defects returns null

I have the following code:
  final Collection<Defect> defects = new Program(
                new StrictXML(res)
            ).defects()
                .stream()
                .filter(defect -> defect.severity().equals(Severity.ERROR))
                .collect(Collectors.toList());

When I invoked it, I got:
Caused by: java.lang.NullPointerException
    at org.cactoos.scalar.Mapped.lambda$new$0 (Mapped.java:58)
    at org.cactoos.scalar.ScalarEnvelope.value (ScalarEnvelope.java:53)
    at org.cactoos.scalar.Checked.value (Checked.java:75)
    at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
    at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
    at org.cactoos.iterable.IterableOf.iterator (IterableOf.java:83)
    at org.cactoos.iterable.IterableEnvelope.iterator (IterableEnvelope.java:53)
    at org.eolang.lints.Program.defects (Program.java:86)

If we don't have any XMIR violations, Program#defects should return empty list, not null.
Why it's bad to return null: https://www.yegor256.com/2014/05/13/why-null-is-bad.html

@yegor256 Could you fix this please? It's kinda blocker

@volodya-lombrozo try to use the latest version 0.0.23, maybe will help. I didn't manage to reproduce the problem so far: https://github.com/objectionary/lints/commit/28672e3c8f0c31df3be74218554371b548526b92

@yegor256 Hmm... I can't reproduce it either. Neither 0.0.22 and 0.0.23 versions show the NPE. I'm afraid it might be a flaky functionality. Ok, if I will be able to reproduce it, I will just reopen this issue.

I just got this:
Caused by: java.lang.NullPointerException
      at org.cactoos.scalar.Mapped.lambda$new$0 (Mapped.java:58)
      at org.cactoos.scalar.ScalarEnvelope.value (ScalarEnvelope.java:53)
      at org.cactoos.scalar.Checked.value (Checked.java:75)
      at org.cactoos.scalar.IoChecked.value (IoChecked.java:63)
      at org.cactoos.scalar.Unchecked.value (Unchecked.java:56)
      at org.cactoos.iterable.IterableOf.iterator (IterableOf.java:83)
      at org.cactoos.iterable.IterableEnvelope.iterator (IterableEnvelope.java:53)
      at org.eolang.lints.Program.defects (Program.java:75)
      at org.eolang.maven.LintMojo.lint (LintMojo.java:264)

@rultor release, tag is 0.0.25

@rultor release, tag is 0.0.25

@yegor256 OK, I will release it now. Please check the progress here.

@rultor release, tag is 0.0.25

@yegor256 Done! FYI, the full log is here (took me 7min).


Various updates

So, here are a few changes I made while playing with the latest apollo version
- Added user activate/inactivate
- Added get_creator for user, group and organisms
- Added omitEmptyOrganisms to get_users
- Added support for group admins
- Repaired GFF3/Fasta downloading

Most of it is not yet very well tested, except the last one. But they are simple functions, so there is not a lot of risk I guess.

By the way, is it intended that https://python-apollo.readthedocs.io is not using the default theme?

By the way, is it intended that python-apollo.readthedocs.io is not using the default theme?

eh not really, I remember vaguely changing it but happy for it to be more default

Ok I think this one is ready, do have some time to look at it @erasche (not top priority for me)?
So I've changed the doc to the default theme, but it's hard to test what it will look like at readthedocs before merging. Maybe there will need to make some little change in the readthedoc conf, I can have a look


Add uvmboot tool

I'm trying to ensure two things with the tool:

Running just uvmboot.exe with no arguments will result in a bog standard UVM, the same thing you'd get if you just call CreateLCOW() with only ID passed as an option.
uvmboot doesn't hard-code any defaults for parameter values (e.g. as part of urfave/cli argument definitions), so that in case those defaults change in CreateLCOW() down the road, we don't end up with divergent behavior.

To accomplish this, I've added several more things to OptionsLCOW as pointer fields. I know this is kind of gross, but I'm not sure of a better way to do it given the current design. We use IsSet/GlobalIsSet on the cli.Context object to check if parameters are actually set before using their values.
The GCS logs listener has been changed to a generic "output listener", which receives output from the program running in the UVM. It can operate in two modes: either treat output as a Logrus message (parse it and re-log it), or just dump the output to stdout.
Since we normally want stderr from GCS, but for applications just as dmesg we want stdout, there are flags to control whether stdout/stderr are forwarded to HCSShim (with stdout=false and stderr=true defaults).
To avoid cases where the UVM exits before we have received all of its output, I've changed the UVM Wait() function to also wait till the output processing is done. This is signaled via a channel.
A wcow subcommand is not supported yet, but could be added in the future.

Currently this log output is always present when running uvmboot with an --exec that terminates (which casues a kernel panic):
WARN[0001] Received a callback of an unsupported type    notification-type=13
WARN[0001] Received a callback of an unsupported type    notification-type=6
ERRO[0001] hcsshim::ComputeSystem - End Operation - Error  cid=uvmboot-0 error="Wait uvmboot-0: The virtual machine or container exited unexpectedly." hcs-op="hcsshim::ComputeSystem::Wai
t"
ERRO[0001] hcsshim::ComputeSystem - End Operation - Error  cid=uvmboot-0 error="Terminate uvmboot-0: The virtual machine or container with the specified identifier is not running." hcs-o
p="hcsshim::ComputeSystem::Terminate"
ERRO[0001] Wait uvmboot-0: The virtual machine or container exited unexpectedly.  uvm-id=uvmboot-0

For the unsupported callback types, I can just add those to our list of callbacks.
For the other messages, I'm not sure what's best. They're kind of "by design" because HCS doesn't expect the UVM to die on its own, but they're certainly annoying. Users of uvmboot can probably ignore them (and we could add a note in the help output saying they'll be present), or I could make a way to ignore error output from Logrus, or the user could just do "2>nul" when running uvmboot...
Thoughts?

Currently this log output is always present when running uvmboot with an --exec that terminates (which casues a kernel panic):
WARN[0001] Received a callback of an unsupported type    notification-type=13
WARN[0001] Received a callback of an unsupported type    notification-type=6
ERRO[0001] hcsshim::ComputeSystem - End Operation - Error  cid=uvmboot-0 error="Wait uvmboot-0: The virtual machine or container exited unexpectedly." hcs-op="hcsshim::ComputeSystem::Wai
t"
ERRO[0001] hcsshim::ComputeSystem - End Operation - Error  cid=uvmboot-0 error="Terminate uvmboot-0: The virtual machine or container with the specified identifier is not running." hcs-o
p="hcsshim::ComputeSystem::Terminate"
ERRO[0001] Wait uvmboot-0: The virtual machine or container exited unexpectedly.  uvm-id=uvmboot-0

For the unsupported callback types, I can just add those to our list of callbacks.
For the other messages, I'm not sure what's best. They're kind of "by design" because HCS doesn't expect the UVM to die on its own, but they're certainly annoying. Users of uvmboot can probably ignore them (and we could add a note in the help output saying they'll be present), or I could make a way to ignore error output from Logrus, or the user could just do "2>nul" when running uvmboot...
Thoughts?

For the Wait error. Seems like we could add an overload in this case that "expects" an error when the caller knows that the function will not cause a graceful wait.
For the Terminate error. Seems like this specific error should not be a failure. If you call Terminate on a "terminated" compute system this is a success!

or the Wait error. Seems like we could add an overload in this case that "expects" an error when the caller knows that the function will not cause a graceful wait.
For the Terminate error. Seems like this specific error should not be a failure. If you call Terminate on a "terminated" compute system this is a success!

I guess I made a comment that can't be replied to as a normal comment thread? I'm not good with GitHub. :(
Wait: I've added a new WaitExpectedError() that doesn't fail if the given error is encountered.
Terminate: I've modified the existing Terminate() function to not return an error if the compute system is already terminated.
With these changes, I can now run uvmboot without any error text!
.\uvmboot lcow --exec "uname -r" --fwd-stdout --output-handling stdout --guest-con=false
4.14.35-linuxkit

I'm not sure the AppVeyor checks are properly running again when I update the branch. I fixed the issue in main.go, but the check is still failing.
PS C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot> gofmt -s main.go | out-file -enc ascii main2.go
PS C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot> get-filehash main.go,main2.go

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          C63F55EDBF1C12F6EBD42E1E7E001C18E3C44BAD4AEFE0B80A9477467F386746       C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot\main.go
SHA256          C63F55EDBF1C12F6EBD42E1E7E001C18E3C44BAD4AEFE0B80A9477467F386746       C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot\main2.go

I'm not sure the AppVeyor checks are properly running again when I update the branch. I fixed the issue in main.go, but the check is still failing.
PS C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot> gofmt -s main.go | out-file -enc ascii main2.go
PS C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot> get-filehash main.go,main2.go

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          C63F55EDBF1C12F6EBD42E1E7E001C18E3C44BAD4AEFE0B80A9477467F386746       C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot\main.go
SHA256          C63F55EDBF1C12F6EBD42E1E7E001C18E3C44BAD4AEFE0B80A9477467F386746       C:\Users\kevpar\Source\go\src\github.com\microsoft\hcsshim\tools\uvmboot\main2.go

Just use gofmt -s -w file.go


Code Repo - Bitbucket Collector - Save button not working

there are the below errors once Save button in brower. can you please help me.
TypeError: Object doesn't support property or method 'endsWith'
at removeGit (http://cndaltjks01vl.cn.fid-intl.com:3000/components/widgets/repo/config.js:142:4)
at getOptions (http://cndaltjks01vl.cn.fid-intl.com:3000/components/widgets/repo/config.js:148:4)
at createCollectorItem (http://cndaltjks01vl.cn.fid-intl.com:3000/components/widgets/repo/config.js:176:5)
at submitForm (http://cndaltjks01vl.cn.fid-intl.com:3000/components/widgets/repo/config.js:124:6)
at fn (Function code:2:368)
at expensiveCheckFn (http://cndaltjks01vl.cn.fid-intl.com:3000/bower_components/bower.js:27985:11)
at callback (http://cndaltjks01vl.cn.fid-intl.com:3000/bower_components/bower.js:38364:17)
at Scope.prototype.$eval (http://cndaltjks01vl.cn.fid-intl.com:3000/bower_components/bower.js:29766:9)
at Scope.prototype.$apply (http://cndaltjks01vl.cn.fid-intl.com:3000/bower_components/bower.js:29866:13)
at Anonymous function (http://cndaltjks01vl.cn.fid-intl.com:3000/bower_components/bower.js:38369:17)

@baitiandi: In your widget configuration, please check if you have provided the repoUrl correctly. From the exception it looks like the repoUrl may be missing.

@subodhbattina
could you please provide a correctly repo URL templete. i config the URL like https://server/scm/project_name/xxx.git

Hi @subodhbattina
thank your support, i changed git URL, but still not work, and no any errors in logs once click save botton.could you please give me some suggestion to fix it.

maybe this issues root case is IE11.

@baitiandi : Glad we got over the error at least. Now, when you say "still not working", what is the behavior you are seeing, could you please provide more info, may be a screen shot of your widget?

@subodhbattina
thanks for your support, it is fine with chrome brower.

@baitiandi: Awesome, thanks for the update, I will go ahead and close this issue.


Allow for "unknown" account ID In VPC Flow Logs

VPC Flow Log events normally include the account ID, for example:
2<PHONE_NUMBER>10 eni-abc123de <IP_ADDRESS> <IP_ADDRESS> 20641 22 6 20 4249<PHONE_NUMBER><PHONE_NUMBER> ACCEPT OK

However, for interfaces associated with some services this is specified as unknown resulting in an event like:
2 unknown eni-abc123de <IP_ADDRESS> <IP_ADDRESS> 20641 22 6 20 4249<PHONE_NUMBER><PHONE_NUMBER> ACCEPT OK

If you run aws describe-network-interfaces and look at .NetworkInterfaces[].Attachment.InstanceOwnerId you'll see your account ID for some interfaces, but also things like amazon-elb, amazon-rds, and amazon-aws.  NLB (and supposedly EFS) use the amazon-aws and for these, you'll end up with unknown for the account id in the VPC Flow Log event.
Due to this issue you'll get Lambda Invocation errors with StreamAlert, and therefore the schema for cloudwatch:flow_logs needs to be changed to allow for strings, or at least the string unknown at https://github.com/airbnb/streamalert/blob/99dc4634c8d470ca4b4f88713903b19a7b70be09/conf/logs.json#L765

Fixed! Note: if you have any rules doing integer comparisons on account ID that'll have to change with this schema update

Could you please advise where I can change the account to "string" in AWS Console?

hi @eugenesheyko - if you're referring to setting an account alias, see here. however, this does not change the account ID value seen across all logs. Besides this suggestion, I don't think this is something we're able to provide any further guidance on, I'm sorry.


Unable to create named pipe on certain WS2012, Win 10 Pro machines

In a lab setting of multiple Windows machines, several machines were unable to create a named pipe server:

Windows Server 2012 R2 build 9600
Windows 10 Pro build 10240
It is unclear why some of these machines failed, because other machines with the same OS were not affected.

This issue was solved by modifying the ObjectAttributes.Attributes flag being passed to NtCreateNamedPipeFile. This change did not impact previously working machines so it appears safe for general use.
Background:
Inspecting the output from the system call, ntCreateNamedPipeFile() returned the following:

Retval:<PHONE_NUMBER>
Status: -1073741766
There was no named pipe present in the PowerShell output: Get-ChildItem -Path "\\.\pipe\"
To rule out machine specific issues, an alternate named pipe server was built from the Named Pipe C++ example from Microsoft: https://learn.microsoft.com/en-us/windows/win32/ipc/multithreaded-pipe-server
Notably, this example uses CreateNamedPipeW versus NtCreateNamedPipeFile. The named pipe was successfully created with retval=0, and the pipe was observed in the PowerShell output: Get-ChildItem -Path "\\.\pipe\"
Now, there were 2 executables with different retvals from the same machine.
Knowing that CreateNamedPipeW eventually calls NtCreateNamedPipeFile, WinDBG was used to trace the call.
The outcome of the investigation was that CreateNamedPipeW was passing a 0x40 in ObjectAttributes.Attributes flag, whereas go-winio was passing 0x0. The issue was resolved by setting ObjectAttributes.Attributes to 0x40, corresponding to OBJ_CASE_INSENSITIVE.

overall this looks good, DCO task happy you will have to sign your commits:
git rebase HEAD~7 --signoff may work, or you squash all the commits and sign that


Added options parameter to support prefix. We want to be able to add prefix like 'hostname'.

Thank you for your contribution; this is great!
I'm not quite sure about the position of the prefix. I like the idea of adding arbitrary metadata, but the location (where to put the prefix) is contentious: why is it after the timestamp and not after the namespace or why not after the level? I think a flexible way to implement this would be to allow a string to be used for formatting, e.g.,  :timestamp: my_prefix_1 my_prefix_2 (:namespace:) :LEVEL:: :data:. What do you think?

Formatting the output with a string sounds great to me.

Great! Are you interested in implementing this? The challenge would be to make this as efficient as possible so that logging doesn't become unnecessarily slow.

Yep. I'll try to find an efficient way to implement it.

closing in favor of https://github.com/dowjones/namespaced-console-logger/pull/4


feat: add chat functionality and test

I am trying to call the chat functionality from the node sdk directly as referenced here but it currently only allows me to do so via an axios request.
This PR will allow cohere.chat() to be called from the cohere-ai node sdk.
I have included the relevant tests as well.
Happy to discuss any feedback or changes requested!

Hi, thanks for this contribution! We are about to switch this repository to be automatically generated from our api specs in #90 . This will mean it is always up to date with our SDK. As such we are closing existing PRs since they will likely not be compatible with the new changes.


Introduce new expressjs-based server package for personal cloud use

Adds a new server package that contains the following functionality

An in-memory PouchDB server with an admin console
Static content serving similar to the existing http-server implementation
A simple splash page for /
A sample endpoint for /arcs that will be wired up in the future
A top level Dockerfile which starts the server on port 8080 in the container

Base versions of typescript configs were moved to a new top-level configs directory.
The server package also forgoes sigh and uses npm based build/test/lint/prettier scripts.

Ready for review now.

Going to add license headers and merge to reduce churn for @cromwellian


acgan: don't train discriminator to produce class labels for generated images

I think it's almost completely conceptually wrong to train discriminator to produce class labels for generated images (except as a way to handicap generator). The biggest argument against merging this PR IMHO is that it deviates from the referenced paper.
The arguments for it:

Conceptually more correct. The rest follows because of this (I think).
Generated images are more diverse (most easily seen in 7), diversity is more robust epoch-to-epoch
Training is much more stable. Before, if generator falls behind even a bit, it's game over - all black images. Now generator easily recovers, even over long periods, even after hugely falling behind.
soft labels (handicapping discriminator) could be made much harder (works all the way to 0.90+)

Epoch 34 =========================== Epoch 36 (compare to https://github.com/fchollet/keras/pull/8383)

Another approach is to introduce 11th class "generated" and train discriminator to output it on generated images. I tried, it also works, doesn't require soft labels, deviates from the referenced paper less, but the generated images are not as diverse.
It's interesting to notice that with all approaches, some info about real/fake is leaking into the auxiliary classifier. For example, with PR as it currently stands, auxiliary classifier loss is much larger on generated images (0.1) than on real images (0.01). I think this is a deficiency in generator training and the root cause for it is that generator aux loss (0.1) is still much smaller then generation loss (0.69 in Nash equilibrium). That could be relatively easily fixed, but would make the example more complicated without sufficient justification.

@lukedeo, as the original author of this example, would you like to review this PR?

The following images were generated from linear interpolation of latent vector between top and bottom rows (both random) on epochs plot_epoch_0{31,32,33,34,35,41,43,44,47,53}_generated.png (in a setup of maybe subsequent PR, different from in this PR, which doesn't matter for the conclusion). This shows the usual (that the generation is meaningful - not just memorized, and latent space has structure), and doesn't show what it usually doesn't.

@fchollet will take a look later today

OpenReview | Conditional Image Synthesis With Auxiliary Classifier GANs:
ICLR 2017 conference AnonReviewer1:

(2) In section 3 the AC-GAN classification objective (omitting expectation for brevity) is given as L_S = log P(C=c|X_real) + log P(C=c|X_fake) and you say that both the discriminator and generator are trained to maximize this quantity. Obviously the generator would want to maximize  log P(C=c|X_fake) for its given conditioning class c. But can you explain why you would want the discriminator to also maximize the classification accuracy of generated samples? Why not do something similar to the CatGAN paper [3] and train the discriminator to be as uncertain as possible about the generated examples. Seems counterintuitive to me to have both the generator and discriminator trying to optimize the same classification objective rather than not be adversarial wrt to this loss as well as the real/fake loss.

Response to Reviewer 1:

The short answer is that it makes the results better. Our suspicion is that this is due to a sort of feedback loop: more training data for the discriminator makes the discriminator better, which is then reflected in the generator.

I think this clearly removes my own biggest argument against merging this PR (see PR description).

Merged into https://github.com/fchollet/keras/pull/8482


don't ignore max_lag in acf_plot

The max_lag argument was ignored in acf_plot.
Is there documentation somewhere on how I could run any automated tests?

Thanks for the PR. Will look to merge when I next get a chance to work on this project again. I nearly got automated tests up and running a few months ago. Don't want to make any promises for the future because I have other commitments. Thanks again, Ross


True audio only for both VOD and Live

Describe the bug
When user turns on audio only on live, video is still being loaded in the background for Android
Expected behavior
Only audio of streaming is loaded and that data usage is largely reduced

Switches from 1080p (video_6) to 180p (video_1)


Create 0000-01-02-kalterkarpfen.md

I created a branch, created a file and made a commit, and opened a pull request

thank


feat: configurable Prometheus remote write timeout

Makes it possible to change timeout of http client which does Prometheus remote write via:

write_timeout_sec in config file
HOST_METERING_WRITE_TIMEOUT_SEC env var

What happens if the write timeout exceeds the write interval? In other words, if the timeout is greater than 10 minutes and it think it needs to send another write?

Tthere would be multiple writes happening at the same time. That is something we should avoid as it might lead to erroneous behavior (sending same samples multiple times -> error from server).

It's bit more complicated as there are also re-tries. So it's better to tackle separately.


Sak 40520

The bullhorn and institutional branding was me working through too fast-- I cherry-picked the wrong commits and didn't review it properly before submitting the PR. Closing and will re-open after reworking.


Implements the committees/events search

Closes EM-50 and EM-51.

Can you please rebase your PR and fixes conflicts + changes.


Change HorizontalScrollBarVisibility default

It was previously discussed to have "Disabled" as default.
It matches UWP's default: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollviewer.horizontalscrollbarvisibility?view=winrt-19041#property-value
Although I just checked and found that WPF's default is actually "Hidden": https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.scrollviewer.horizontalscrollbarvisibility?view=net-5.0#property-value
Breaking changes
Previous default was "Hidden".
Current default is "Disabled".
Fixed issues
Fixes https://github.com/AvaloniaUI/Avalonia/issues/5020

Although I just checked and found that WPF's default is actually "Hidden": https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.scrollviewer.horizontalscrollbarvisibility?view=net-5.0#property-value

I think the docs are wrong. Code seems to have Disabled as the default:
https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs#L492

This is strictly speaking a breaking change in that it could break existing code and 3rd party controls.
However it's plainly a bad default, and given that the fix would simply be setting the property explicitly I think we can allow this small break.


work please

hello.py

So this most likely works for you on windows, but just a tip that if you want an executable script to work on linux/mac, you will need the first line of the file to be:
#!/usr/bin/env python

Does that apply to all the python programs?
On Jun 9, 2015 11:24 PM, "Timothy Morton"<EMAIL_ADDRESS>wrote:

So this most likely works for you on windows, but just a tip that if you
want an executable script to work on linux/mac, you will need the first
line of the file to be:
#!/usr/bin/env python
—
Reply to this email directly or view it on GitHub
https://github.com/timothydmorton/usrp-sciprog/pull/6#issuecomment-110572463
.

Do I type that in the command prompt of the Linux computer? Or does that go
in the first line of python files?
On Jun 9, 2015 11:24 PM, "Timothy Morton"<EMAIL_ADDRESS>wrote:

So this most likely works for you on windows, but just a tip that if you
want an executable script to work on linux/mac, you will need the first
line of the file to be:
#!/usr/bin/env python
—
Reply to this email directly or view it on GitHub
https://github.com/timothydmorton/usrp-sciprog/pull/6#issuecomment-110572463
.

Yeah, that applies to all python programs you want to run from the command line.  That line should be the first line of the file.  When you're on your linux machine you can test this.

I submitted word_prompter.py and resubmitted hello.py but now hello.py has

day1-ex1 and some extra lines that I did not type in. Also, git push
origin day1-ex1 seems to be not working properly on my computer.

On Wed, Jun 10, 2015 at 12:04 AM, Timothy Morton<EMAIL_ADDRESS>wrote:

Yeah, that applies to all python programs you want to run from the command
line. That line should be the first line of the file. When you're on your
linux machine you can test this.
—
Reply to this email directly or view it on GitHub
https://github.com/timothydmorton/usrp-sciprog/pull/6#issuecomment-110581193
.

Hi I just changed the executable permission for those three files which were under the master branch, but I do not know how to access day1-ex1 branch which contains other files. I think I accidently pulled all of Eve's work somehow? I am very confused.


Kie issues#95: GWT modules maintenance: Enabling Hot Reload on DMN and BPMN editors

Closes: https://github.com/kiegroup/kie-issues/issues/95
Changes in this PR:

Hot Reload is now enabled in BPMN editor using mvn clean gwt:run command in runtime module. The enabled GWT modules for BPMN are all the modules under kie-wb-common-stunner module. This means, Hot Reload will not work in other modules unless the developer manually adds that module's directory in gwt.helper.rootDirectories tag properties. @Josephblt provided this part.

Hot Reload is now enabled in DMN editor using mvn clean gwt:run command in runtime module. The enabled GWT modules for DMN are all the modules under kie-wb-common-dmn and kie-wb-common-stunner modules (excluding BPMN Editors specific modules).

^ We are open to discussing or revisiting the above configuration of the involved GWT modules for Hot Reload, the proposed configuration offers a good balance adding the most used modules.

Merging the runtime and testing modules: runtime already has the capabilities to act for testing purposes. A test.html is already present and selenium integration tests are performed on that module. So, I just modified the test.html adding the undo and redo buttons, and a dmn sample to load. The only feature we will lose is the Feel Editor, which is a testing app available in the testing module. That requires specific code to be implemented, I think it doesn't make sense to port that (BTW open to discussion).

@Josephblt @tiagobento @gitgabrio @jomarko @inodeman you were involved in the discussion, so feel free to give feedback.

The (build) kie-tools-stunner-editors check has failed. Please check the logs.

The (build) kie-tools-stunner-editors check has failed. Please check the logs.


Add missing units

Add missing units to progress bars shown on the AWS and OCP overview pages.
Fixes https://github.com/project-koku/koku-ui/issues/687
AWS:

OpenShift:

Codecov Report

Merging #688 into master will increase coverage by 0.17%.
The diff coverage is 81.94%.

@@            Coverage Diff             @@
##           master     #688      +/-   ##
==========================================
+ Coverage   79.97%   80.14%   +0.17%
==========================================
  Files         221      221
  Lines        3375     3409      +34
  Branches      540      553      +13
==========================================
+ Hits         2699     2732      +33
- Misses        597      599       +2
+ Partials       79       78       -1

Impacted Files
Coverage Δ

...tore/ocpOnAwsDashboard/ocpOnAwsDashboardWidgets.ts
100% <ø> (ø)
:arrow_up:

src/store/ocpDashboard/ocpDashboardWidgets.ts
100% <ø> (ø)
:arrow_up:

src/store/ocpDashboard/ocpDashboardCommon.ts
95.65% <ø> (ø)
:arrow_up:

src/store/awsDashboard/awsDashboardWidgets.ts
100% <ø> (ø)
:arrow_up:

src/store/awsDashboard/awsDashboardCommon.ts
96% <ø> (ø)
:arrow_up:

...store/ocpOnAwsDashboard/ocpOnAwsDashboardCommon.ts
95.65% <ø> (ø)
:arrow_up:

src/pages/ocpDashboard/ocpDashboardWidget.tsx
75% <ø> (ø)
:arrow_up:

src/pages/awsDashboard/awsDashboardWidget.tsx
76.92% <ø> (ø)
:arrow_up:

...ages/ocpOnAwsDashboard/ocpOnAwsDashboardWidget.tsx
74.41% <ø> (ø)
:arrow_up:

.../reports/ocpReportSummary/ocpReportSummaryItem.tsx
94.11% <100%> (+2.45%)
:arrow_up:

... and 6 more

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 0e82fd3...59bd3dd. Read the comment docs.


Add a new dependency in build.gradle

After running the command ./gradlew eclipse, I successfully build that two eclipse projects. But when I opened them in eclipse, I got several errors about annotations, So I manually added a new dependency in build.gradle.

Thank you for your contribution! Not sure why I didn't get notified about this :(
Unfortunately I cannot accept pull requests until the CI pipeline is fixed, which given both components (Travis and BinTray) have both recently migrated to entirely new domains and processes is likely to be non-trivial. I will leave this PR open until then.


client: add README

It describes some basic usage and caveat of etcd/client package.
/cc @bcwaldon

We need to add a section to talk about the per request timeout, a section for returned error.

I think I can help on this one.

updated.

LGTM


Mixins merging order

Why are mixins merged in the following order?

Command line
Environment variables
Project configuration file

That gives mixins from project configuration file higher priority, so they effectively overwrite any configuration derived from the others mixins. I would expect the priority being the opposite:

Project configuration file
Environment variables
Command line

My thought is that by this way, one may set a base project file with some base mixins, and any configuration from them can be overwritten from a command line mixin. Does it make sence?
Let me know your thoughts.

Thank you, @deltalejo. You're right. It's backwards! As you can imagine, getting ordering correct was a bit of a challenge. I think when we started with Mixins we had a slightly different idea of what merging meant and ordered around it. At any rate, we'll get this corrected in the next prerelease build.


Pyrsia CLI should allow to update/set specific pyrsia node parameter (non interactive)

Suggestion details
Currently, the only way to update the node config is via the pyrsia config command which is interactive operation and cannot be used without direct human interaction. We need a way to update the node properties in different environments like scripts/docker/etc. The proposed comments:
pyrsia config edit host - update the node host
pyrsia config edit port - update the node port
pyrsia config edit storage - update the allowed storage
Additional details
No response

Duplicate of https://github.com/pyrsia/pyrsia/issues/1131


Limit number of validators checked during withdrawals lookup

Based on https://github.com/ethereum/consensus-specs/pull/3095

I have implemented the PR with the required changes. Not we need to wait until the spec PR gets merged and/or the other teams decide to upgrade their nodes to use the same logic in the testnets.


Remove duplicate files

The CK-Caffe repository contains several duplicate files:
$ find $CK_REPOS/ck-caffe -name *binaryproto -exec ls -la {} \;
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet101/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet50/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 602126 Apr  7 19:09 /home/anton/CK/ck-caffe/package/caffemodel-resnet152/ResNet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 13 09:00 /home/anton/CK/ck-caffe/program/caffe-classification-cuda/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe/for_classification_demo/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe-classification-opencl/imagenet_mean.binaryproto
-rw-r--r-- 1 anton dvdt 786446 Nov  8 16:34 /home/anton/CK/ck-caffe/program/caffe-classification/imagenet_mean.binaryproto
$ find $CK_REPOS/ck-caffe -name synset_words.txt -exec ls -la {} \;
-rw-r--r-- 1 anton dvdt 31675 Jan 13 09:00 /home/anton/CK/ck-caffe/program/caffe-classification-cuda/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe/for_classification_demo/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Jan 23 14:15 /home/anton/CK/ck-caffe/program/caffe-classification-opencl/synset_words.txt
-rw-r--r-- 1 anton dvdt 31675 Nov  8 16:34 /home/anton/CK/ck-caffe/program/caffe-classification/synset_words.txt

These should be moved into separate entries, with dependencies set up on them.

This should also solve the current problem e.g. with
$ ck compile program:caffe-classification-cuda
$ ck run program:caffe-classification-cuda
...
0) default ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $#up_dir#$imagenet_mean.binaryproto $#up_dir#$synset_words.txt $#dataset_path#$$#dataset_filename#$)
1) use_continuous ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $<<CK_CAFFE_IMAGENET_MEAN_BIN>>$ $<<CK_CAFFE_IMAGENET_SYNSET_WORDS_TXT>>$ --continuous $<<CK_CAFFE_IMAGENET_VAL>>$ $<<CK_CAFFE_IMAGENET_VAL_TXT>>$)
2) use_external_image ($#BIN_FILE#$ $<<CK_CAFFE_MODEL_FILE>>$ $<<CK_CAFFE_MODEL_WEIGHTS>>$ $#up_dir#$imagenet_mean.binaryproto $#up_dir#$synset_words.txt $<<CK_CAFFE_PATH_TO_IMAGE>>$)

where the commands 0 and 2 refer to the up_dir which is not correct for the ResNet's...


Prince of Persia Two Thrones crash

Describe the bug

A clear and concise description of what the bug is.
Which Remix version (include branch and commit info for dxvk and bridge if not a stable build)

0.1.1

Which GPU

4090

Which GPU driver version

531.68

Which game build (and whether it is from Steam/GOG/Other)

Prince of Persia Two Thrones  (Steam)

Attach logs!

NvRemixBridge.log

NvRemixBridge.log

d3d9.log

d3d9.log

The game specific log will be named gamename_d3d9.log

POP3_d3d9.log

The logs indicate a shared heap failure.  The shared heap feature was disabled in remix-0.2.0 due to instability.  Please try with remix-0.2.0 and post new logs if you get further.  Thanks!

d3d9.log
NvRemixBridge.log
POP3_d3d9.zip
The game can now be started as expected, but the opening cutscene is not displaying correctly, showing mostly a black screen. Even after the cutscene ends, there are still occasional black screens, which makes it difficult to play the game.

Hello! Will you please test this on the latest release and let us know if the issue persists? Thank you!


NEP-141 (Non-NEAR FTs) Not Displaying On Wallet/s

Description
This needs further discovery to understand the scope.
Several tickets report that user’s cannot see bridge exchanges on the NEAR Wallet. I’ve inquired with the Wallet Builders Group, but no one responded.
Does this impact all wallets or just NEAR Wallet?
What is the potential fix? Where will the fix need to happen?
Ammar Humackic
June 29, 2023 at 5:55 AM
@Amir Saran addressed all the comments left by @Daryl Collins on PR #3038

Will close this issue, as the PR #3038 is open in another repo (near/near-wallet).


Interface to explicitly bin map updates.

I need to make multiple updates to the map, but current approaches cause a rather ugly flicker on the screen as they update separately.
For example, here's some code:
this.olMap.getView().fit(OccupancyGrid.getExtent(data));
olLayer.setSource(imageSource);

I'm not showing context, but I have a map, I'm fitting to the new extent of a new background image AND setting that new background image.
Even though these two calls are happening beside each other, it causes two map updates, very quickly, causing a flicker:
Frame 0:  The old  image + old extent
Frame 1: The old image + new extent
Frame 2: The new image + new extent
I believe there is some binning of updates, as suggested by the existence of render vs. renderSync.  But I think that's just waiting for the next frame and isn't a guarantee that changes made in one synchronous call are updated in one binned effort.  (Though I'm not sure how this actually works like this given JavaScript's single thread...)
Rough Ideas
I appreciate some of these are practically impossible without major architectural refactors, but I share them for brainstorming efforts.
noRender option.
Consider the ability to make changes to olMap but explicitly say "don't cause a render." Then I later explicitly call .render()
frameContext function.
The ability to get a context, and then make a bunch of calls within that context:
olMap.getFrameContext((map) => {
   // Call many functions that mutate map. Only one re-render occurs when the context is run.
})

You are correct in assuming that render is called on animation frames while renderSync renders immediatly.
Assuming you are using a ol/source/ImageStatic. You need to preload the image which there seems to be no straight forward way to do so.
As a workaround, you can preload the source with an offscreen map:
https://codesandbox.io/s/preload-image-static-nfh9u0?file=/src/index.js)](https://codesandbox.io/s/preload-image-static-nfh9u0?file=/src/index.js

#13076 is kind of related, would be nice to have


Issue in the Migration

There is an issue in the migration on the file 0003_amongusgame when adding this app to my django app, I got this error:
django.db.utils.ProgrammingError: cannot cast type timestamp with time zone to boolean
LINE 1: ...r_connected" TYPE boolean USING "tracker_connected"::boolean
I guess someone changed tracker_connected field to boolean from timestamp from the database? this is why django is panicking, to solve this I deleted the column from the DB and created new Boolean  one with the same name.

Oh, that could be. I actually didn't think that someone else used this app and may have broken a migration. I also haven't updated this in a while because an among us update broke the tracker because they changed some visuals. But I'll look into it, thanks!

Oh, that could be. I actually didn't think that someone else used this app and may have broken a migration. I also haven't updated this in a while because an among us update broke the tracker because they changed some visuals. But I'll look into it, thanks!

Oh yeah, I see what you mean. I created tracker_connected in migration 003 as DateTimeField and changed it in 004 to a BooleanField. MySql seemed to have no problem with that, but I'll fix this in a pull.

Oh yeah, I see what you mean. I created tracker_connected in migration 003 as DateTimeField and changed it in 004 to a BooleanField. MySql seemed to have no problem with that, but I'll fix this in a pull.


Items don't populate from models

I'm following your example code identically, and the Fields don't populate in these items. Here's some example code:
>>> from sqlalchemy.ext.declarative import declarative_base
>>> from sqlalchemy import Column, Integer, String
>>> Base = declarative_base()
>>> class MyModel(Base):
...     __tablename__ = 'new_table'
...     id = Column(Integer, primary_key=True)
...     name = Column(String(32))
...
>>> class MyItem(SqlItem):
...     sqlmodel = MyModel
...
>>> item = MyItem()
>>> item.fields
{}
>>> item['name'] = 'new_name'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../lib/python3.5/site-packages/scrapy/item.py", line 63, in __setitem__
    (self.__class__.__name__, key))
KeyError: 'MyItem does not support field: name'
>>>

Is there something I'm missing here? It's basically the same implementation as django-item, which had no problem populating the necessary fields.
scrapy-sqlitem==0.1.2
Scrapy==1.1.2
SQLAlchemy==1.0.14

Same problem here.

Has the same issue.  Assuming you were using Python 3, PR #2  should fix it


Consolidate Status and Status Reason (Separately)

User Story - Business Need
We want to consolidate notification failure status and status_reasons to simplify things for us and our clients. The two are being separately consolidated. For our clients, they should only see two failure status options (temporary-failure and permanent-failure).
status_reason is to be consolidated as well, only allowing for the values specified in the ADR.

[x] Ticket is understood, and QA has been contacted (if the ticket has a QA label).

User Story(ies)
As a Service using VA Notify
I want consistency and to know if I should retry or not
So that I can handle notifications appropriately
Additional Info and Resources

ADR covering the change
Considering how few services use callbacks, the impact is likely to be zero.
Acceptance Criteria

[x] ADR status and status_reasons are included and are the only status_reasons used when updating notifications
[ ] This work is added to the sprint review slide deck (key win bullet point and demo slide)

QA Considerations

This is a fairly large overhaul of the possible responses, so it will require testing all of the outcomes.
Add status_reasons into automation (may be on a second ticket)
Potential Dependencies

Out of Scope
Adding the new logging messages for these status_reasons. Eventually we want to pass around objects that have: status, status_reason, and log_message, but creating that object and implementing it are out of scope.

Chris and I have been working at finding and updating all of the outdated statuses and reasons. We are mostly there. The tests still need some work however. We'll get to that on Monday and hopefully begin testing in Dev soon after.

There have been more changes than anticipated. This PR is going to be a pretty big one unfortunately. (27 files changed so far) A lot of the changes are simply removing technical-failure or changing it to permanent-failure, so hopefully it's not too bad to review.

PR approved and merged; deployed to Perf for testing.
QA FAILED
The ADR states:

Undeliverable - Phone number is invalid presumably when we get a Twilio 2164 for 'not valid mobile' and 21635 for 'landline'. The code is instead returning Undeliverable - Individual unreachable and should be updated.
Undeliverable - Phone number is invalid presumably when we get a Pinpoint response of 'record_status': 'INVALID'. The code is instead returning Undeliverable - Individual unreachable and should be updated.
Undeliverable - Individual unreachable for hard bounce when SES returns "eventType":"Bounce","bounce", "bounceType":"Permanent" or celery reports permanent-failure - Failed to deliver email due to hard bounce - in process_ses_results for notification c2fcdc32-70b3-4c94-9aaa-0b8ed5dd73b2  The code is instead returning Undeliverable - Unable to deliver and should be updated.

More testing results to follow.

TESTING NOTES

All available Twilio statuses were validated against the ADR and this document on delivery status testing. That test document needs to be updated, but with the exception of the 3 bullet points above, all testing resulted in the new expected statues
AWS Pinpoint has changed their destination simulated numbers such they are no longer available. This was verified by @ChrisJohnson-CDJ and @EvanParish. As such we will need to rely on unit tests for the bulk of testing Pinpoint statuses.

We did test sending to an invalid, and the response is incorrect as noted in the bullet points above.
We did validate that when a VAProfile does not have contact info, that the response is "status": "permanent-failure", status_reason": "Undeliverable - No VA Profile contact information"

The regression validated that preferences-declined is now permanent-failure and Undeliverable - Preferences declined in VA Profile
@kalbfled was unable to find a deceased users in the test users document that actually triggered the permanent-failure status; all notifications sent to all users in this list came back delivered. I recall this issue the last time I tried to test deceased, so we are unable to validate this.
AWS SES - as noted in the bullet point above, there is one status_reason that needs to be updated. AWS SES simulated email addresses now only work if the account is in the sandbox, otherwise it indicates that all emails were delivered, so we are also unable to fully validate SES.

2nd PR approved and merged, deploying to Prod.

QA
Hotfix tests

[ ] Postman - An sms sent via Pinpoint to a number that does not exist (+12025551212), expect "status": "permanent-failure" and "status_reason": "Undeliverable - Phone number is invalid"
[ ] Postman - An email sent via SES to an address that does not exist (sparticus@docme360.com), expect "status": "permanent-failure" and "status_reason": "Undeliverable - Individual unreachable"
[ ] Twilio delivery status lambda - send test payload for error 21614, expect a log that includes "status": "permanent-failure" and "status_reason": "Undeliverable - Phone number is invalid"
[ ] Twilio delivery status lambda - send test payload for error 21635, expect a log that includes "status": "permanent-failure" and "status_reason": "Undeliverable - Phone number is invalid"

ON TO PROD!


Updated ubuntu image; added note for Apple Silicon users, xvfb dependency for GUI

Dockerfile.base-image

Switching to the 22.04 LTS base image
adding xvfb for GUI programs

Makefile

added a clean target

lib-grade.rkt

caught a possible div-by-zero exception in tests.

@jasonhemann apologies if this is the wrong place to ask, but not sure where would be better: Is there a specific docker or docker-like runtime that you recommend that people use when on ARM-based Macs?
Nothing to do with Racket, but I've been running into issues with xvfb, gradescope, and docker on my machine, and wondered if it could be because I'm using containerd instead of the official Docker Desktop product.
When I try to run code that needs to interact with X11 (xvfb), I get -- of all things -- LLVM errors (LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it). Googling around suggests this is caused by quirks of some virtualization/containerization environments, so I wondered if there was a standard setup the Racket team uses that works well.
If so, you may want to mention that in your docs (apologies if I missed it), and I'd sure like to know what it is too.

@bennytheshap Ooh, interesting and unfortunate. I've not run across that.
I'm using whatever version of docker I get w/ brew install --cask docker-desktop, IIRC.
I couldn't say WRT that error, but can you reproduce it running your container locally, w/something other than the gradescope base image? That'd be valuable info if you can exclude the architecture rosetta, gradescope, and their containerization environment, and containerd even from the problem description, on even a hello GUI world example.

I'm using whatever version of docker I get w/ brew install --cask docker-desktop, IIRC.

This no longer exists. Could you be using orka-desktop?

Just tried this with Docker Desktop (so annoying how they've changed their license terms and UI) and it now works correctly!


create a teuthology integration test task

See, http://tracker.ceph.com/issues/10736
This creates a new task 'tests' that when included will run a set of integration tests against teuthology.  They are considered integration tests because each tests are passed the ctx and config args that any regular task would.  This means they can operate against the current cluster to verify things.  I've only included a few tests as a starting point.  We plan to pair this task with a qa suite that performs other common tasks.
I've yet to write the qa suite, but I wanted to post this for early reviews and opinions.
Some sample log output from this task.
2015-02-05 11:26:06,297.297 INFO:teuthology.run_tasks:Running task tests...
2015-02-05 11:26:06,440.440 INFO:teuthology.task.tests:test_locking:TestLocking.test_correct_os_type Passed
2015-02-05 11:26:06,442.442 INFO:teuthology.task.tests:test_locking:TestLocking.test_correct_os_version Passed
2015-02-05 11:26:06,443.443 INFO:teuthology.task.tests:test_locking:TestLocking.test_correct_machine_type Passed
2015-02-05 11:26:06,445.445 INFO:teuthology.orchestra.run.magna067:Running (working as expected, nothing to see here): "python -c 'assert False'"
2015-02-05 11:26:06,494.494 INFO:teuthology.orchestra.run.magna067.stderr:Traceback (most recent call last):
2015-02-05 11:26:06,495.495 INFO:teuthology.orchestra.run.magna067.stderr:  File "<string>", line 1, in <module>
2015-02-05 11:26:06,495.495 INFO:teuthology.orchestra.run.magna067.stderr:AssertionError
2015-02-05 11:26:06,497.497 INFO:teuthology.task.tests:test_run:TestRun.test_command_failed_label Passed
2015-02-05 11:26:06,500.500 INFO:teuthology.orchestra.run.magna067:Running: "python -c 'assert False'"
2015-02-05 11:26:06,547.547 INFO:teuthology.orchestra.run.magna067.stderr:Traceback (most recent call last):
2015-02-05 11:26:06,548.548 INFO:teuthology.orchestra.run.magna067.stderr:  File "<string>", line 1, in <module>
2015-02-05 11:26:06,548.548 INFO:teuthology.orchestra.run.magna067.stderr:AssertionError
2015-02-05 11:26:06,550.550 INFO:teuthology.task.tests:test_run:TestRun.test_command_failed_no_label Passed
2015-02-05 11:26:06,552.552 INFO:teuthology.orchestra.run.magna067:Running: 'python -c \'print \'"\'"\'hi\'"\'"\'\''
2015-02-05 11:26:06,653.653 INFO:teuthology.task.tests:test_run:TestRun.test_command_success Passed
2015-02-05 11:26:06,655.655 INFO:teuthology.task.tests:OK. All tests passed!

This might very well have to change as I write the suite to go along with it, but wanted to throw it out there for any early feedback.  Or ideas for other tests to include would be appreciated.

test this please

Maybe we can move some of theses tests here: https://github.com/ceph/teuthology/blob/master/teuthology/test/integration/test_suite.py
Also, there is this: https://github.com/ceph/teuthology/blob/master/teuthology/task/tasktest.py

Tests failed for this pull request.
Refer to this link for build results: http://jenkins.ceph.com/job/teuthology-pull-requests/823/

Tests failed for this pull request.
Refer to this link for build results: http://jenkins.ceph.com/job/teuthology-pull-requests/824/

Tests passed for this pull request.
Refer to this link for build results: http://jenkins.ceph.com/job/teuthology-pull-requests/827/

Tox didn't like the duplicate pytest requirement, it seems happier now though.

This is so cool.


Non functioning code in chapter 7: sentiwordnet example

This is also on page 356.
from nltk.corpus import sentiwordnet as swn
good = swn.senti_synsets('good', 'n')[0]
Traceback (most recent call last):
File "", line 1, in
TypeError: 'filter' object is not subscriptable

Python 3 has changed things you can try:
good = list(swn.senti_synsets('good', 'n'))[0]


Added Save/Load Functionaity

Added functionality for Saving and Loading Tactics Presets

There was one issue I faced when testing it.

Then you draw a path for #3 player, save it to preset#2.
If you load preset#1, the path of #4 disappears. The position of the start point seems to be loaded, but all the intermedia points (which constitute the path) disappear.


WIP: feat: Charges adjustments to the search prices

Description

Add sort on all columns
Clear button should also clear the table result.
Be able the search by an owner, by getting all market participants from the charges domain.
References

#1656
https://app.zenhub.com/workspaces/team-volt-60a61059028fd7000e49956e/issues/energinet-datahub/geh-charges/1656

Codecov Report

Merging #1011 (04fabcf) into main (180e247) will decrease coverage by 0.80%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1011      +/-   ##
==========================================
- Coverage   70.76%   69.96%   -0.81%
==========================================
  Files          18       18
  Lines         260      263       +3
  Branches       24       25       +1
==========================================
  Hits          184      184
- Misses         66       69       +3
  Partials       10       10

Impacted Files
Coverage Δ

...ce/DataHub.WebApi/Controllers/ChargesController.cs
41.66% <0.00%> (-13.89%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


updated liclipse (2.5.4)

Thank you for the contribution. It needed some fixes, so they were made in a4e73606c37a86540f10bf9fa6943278a32c1e55. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


merge master to release 4.0

What problem does this PR solve?
update release-4.0
What is changed and how it works?
merge recent commit from master to release-4.0
Check List
Tests

Unit test
Integration test

we don't do cherry-pick in lightning, we fast-forward.


Remove unnecessary custom LazyListMorph subclass. Closes #17

Pull Request Test Coverage Report for Build 183

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

Totals

Change from base Build 170:
0.0%

Covered Lines:
113

Relevant Lines:
953

💛  - Coveralls


Its will be good to not pay for unused features (IDFGH-3633)

I have found a sort of dead code issue.
My setup does not use BluFi but use GATTS.
In the .map file i encounter that BluFi code and data are inculded in my binary.
I propose to refactor the BLE code to compile in only used features.
Or add flag to enable/(disable?) BluFi explicitly in Kconfig.
I have collect all blufi related data size, just to show size of the problem:
.data section: 100 bytes
COMMON section: 52 bytes
.rodata section: 1692 bytes
.literal section: 184 bytes
.text section: 4198 bytes
i suspect there are more unused features which increases final binary by dead code and data in RAM.
Will be good if you review the code and refactor it properly.
BR,
Siarhei

Hi, @SiarheiVolkau
You said that the problem does exist, we have to discuss it internally, some code is indeed not controlled by macros

It is fixed since idfv4.3 and backported to v4.2, v4.1, v4.0, v3.3


Feature/consumer receipting

Codecov Report

Merging #15 into master will increase coverage by 3.9%.
The diff coverage is 96.73%.

@@            Coverage Diff            @@
##           master      #15     +/-   ##
=========================================
+ Coverage   72.99%   76.89%   +3.9%
=========================================
  Files          12       12
  Lines         448      528     +80
=========================================
+ Hits          327      406     +79
- Misses        121      122      +1

Impacted Files
Coverage Δ

app/tests/test_publish_receive.py
43.24% <0%> (ø)
:arrow_up:

app/tests/test_consumer.py
100% <100%> (ø)
:arrow_up:

app/settings.py
100% <100%> (ø)
:arrow_up:

app/main.py
67.41% <92.3%> (+7.99%)
:arrow_up:

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 b3bc1aa...de365c0. Read the comment docs.

 [SEFT] consumer receipting (5)


least_squares will retrun the initial value when max_nfev=1

I want fitting curve with least_squares function. I want stop the process with RMS value,
I need run least_squares serval times,so I set max_nfev=1.
But the return x is as same as input x
Reproducing code example:

popt = least_squares(self.aimfuc, self.init, bounds=(self.lb, self.ub), method='trf', args=(self.omega, self.y_data),max_nfev=1)

for i in range(max_num):
   print(self.init)
   popt = least_squares(self.aimfuc, self.init, bounds=(self.lb, self.ub), method='trf', args=(self.omega, self.y_data),max_nfev=1)
   self.init = popt.x
   print(self.init)

Error message:

[5.0e+01 1.0e+02 1.5e+02 2.5e+02 3.5e-01 3.5e-01 3.5e-01 3.5e-01 2.0e+03
 2.0e+03 2.0e+03 2.0e+03 1.0e+00 5.0e+00 1.0e+01]
[5.0e+01 1.0e+02 1.5e+02 2.5e+02 3.5e-01 3.5e-01 3.5e-01 3.5e-01 2.0e+03
 2.0e+03 2.0e+03 2.0e+03 1.0e+00 5.0e+00 1.0e+01]

  ...

Scipy/Numpy/Python version information:

1.3.1 1.16.5 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)

It's the same as the original x values because the objective function has only been allowed to be called once (max_nfev) In each fit I would expect the objective to be called 10s, if not hundreds of times. Least squares has not had a chance to do anything.

Thansk your reply. If max_nfev=1, self.aimfuc will be call len(self.init) times.
I think max_nfev=1 can also adjust the value of x

I'm guessing that is the number of function evaluations required for initialisation, but it's not enough to start doing a minimisation. Why not let least_squares run to completion?

I think there was some confusion here.
I'll close it for now.
@xichaoqiang reopen if you believe something is not correct. But it is expected behavior, because least_squares starts with evaluating the function at the start point and then must stop if max_nfev=1.


Adding ModernSearchBar

Project URL

Description

Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

cool project, thanx for your contribution @PhilippeBoisney

Thanks to you ! 👍


net: wifi: shell: add EAP server types for EAP_SERVER_ALL

Add EAP server types for EAP_SERVER_ALL, and enable it by default.

Hi @jukkar @krish2718 @MaochenWang1
Test passed on RW612 boards and code format also check passed in local.
Pls help review.

Hi @krish2718
Could you help review?


South Africa

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @chriscc12345 ,
I checked the 'MyToyota' page for South Africa. It is available on: https://www.toyota.co.za/my-toyota/overview
It is referring to the Android 'MyToyota' app on https://play.google.com/store/apps/details?id=com.eliance.toyotamobile&hl=en.
This however seems to have a different layout, and different settings than the 'MyT' app (https://play.google.com/store/apps/details?id=app.mytoyota.toyota.com.mytoyota&hl=en) that this mytoyota library is using. I'm also afraid that the backend toyota servers are also different.
Did you already try to use the small example program (as shown on https://github.com/DurgNomis-drol/mytoyota ) to retrieve the information of your vehicle? Is that working, or isn't it?

Hi I am asking for support on  Home Assistant

@chriscc12345 For the Toyota plugin in Home Assistent, it is better to raise your question in the corresponding repository.
On the other hand, I do have to admit that the Toyota Plugin in Home Assistent is also using this mytoyota library to retrieve the actual information. If support for South Africa is possible in this mytoyota library, it will be fairly easy to also support the South Africa region in the toyota plugin in Home Assistent.
Please see my previous comment in this thread.

I checked the 'MyToyota' page for South Africa. It is available on: https://www.toyota.co.za/my-toyota/overview It is referring to the Android 'MyToyota' app on https://play.google.com/store/apps/details?id=com.eliance.toyotamobile&hl=en.
This however seems to have a different layout, and different settings than the 'MyT' app (https://play.google.com/store/apps/details?id=app.mytoyota.toyota.com.mytoyota&hl=en) that this mytoyota library is using. I'm also afraid that the backend toyota servers are also different.
Did you already try to use the small example program (as shown on https://github.com/DurgNomis-drol/mytoyota ) to retrieve the information of your vehicle? Is that working, or isn't it?

Did you already try to use the small example program, to retrieve the information of your vehicle? Is that working??
If it isn't working, please provide us with detailed feedback of error message and so on, so we can continue to investigate if we can add support.
Thanks!

The MyToyota app for South Africa, doesn't seem to use a password, but rather it uses a one time pin. Well it does for me; not sure about others.
I tried using the example program, but it seems to point to Europe servers by default and my user name does not work on Europe servers, also I have no password, as explain above.

Toyota Connected Services is very different for each region. I believe that the system is build by different Toyota partners and therefor it is incompatible with each other. When I set out to build this over a year and a half ago, I thought I could make a global library. But this is not possible as each regions app does not share anything in common with each other.
You can only hope that some on in the future creates a library or you can take the journey yourself 😃

Also please see https://github.com/DurgNomis-drol/mytoyota/discussions/207 for a more detailed explanation.


Adds Jsonnet

Language Official site: http://jsonnet.org/
Language Repository: http://github.com/google/jsonnet
in-the-wild usage: https://github.com/search?utf8=✓&q=extension%3Ajsonnet+NOT+nothack&type=Code&ref=searchresults

Thanks for the pull request!
This is related to #2653. The usage on github.com for Jsonnet is still pretty low: I counted 32 repositories across 26 users for the .jsonnet extension.


⚠ Bofrost.fr has degraded performance

In 6ec8029, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1588 ms

Resolved: Bofrost.fr performance has improved in 8e2cf09 after 6 minutes.


Avoid grouping by day when calculating quantile mean returns

As alphalens is data frequency agnostic, the aggregation by day performed when calculating quantile mean returns doesn't make sense all the time. It could produce better plots for some scenarios, depending on data frequency and data time span, but not for all the possible data given in input to alphalens.
I am suggesting to remove the aggregation by day or to make it optional and in this latter case the aggregation period should be configurable: minute, day, hour, week, whatever.
Also the feature should be applied to all the plots consistently (not only on some of them). Currently it is applied only to plotting.plot_quantile_returns_violin, plotting.plot_cumulative_returns_by_quantile and plotting.plot_mean_quantile_returns_spread_time_series.

fixed in #89. Thanks Luca!


Bad encoding in subject and body message

I'm getting email via getMessage() function and subject and body are not poperly decoding.
dumped results from getMessage function:
 header => stdClass object {
    subject => (string) =?UTF-8?B?dGVzdDEgxIXFvMW6xIfEh8WbxbzFusSHxIU=?=
    (...)
  }
  message => stdClass object {
    plain => (string) Tutaj jest tre=C5=9B=C4=87

*tutaj wi=C4=99cej tre=C5=9Bci

Osadzony obraze:

The subject should contain:
test1 ążźććśżźćą
and body
Tutaj jest treść

tutaj więcej treści

Osadzony obraze

Hmm. Let me investigate

This may be due to the fact that those are special characters. We currently do not support them so let me get right on that!

Before update special (polish) characters worked properly.

Try to use it.
$subject = imap_mime_header_decode ( $obj->header->subject ); $subject = imap_mime_header_decode ( $obj->message->plain);
And write the result.

I need your
$imap->incomingMessage->message->info
or at least
$imap->incomingMessage->message->info[0]->structure->encoding or $imap->incomingMessage->message->info[1]->structure->encoding

imap_mime_header_decode ($obj->header->subject)
array(1) (
  [0] => stdClass object {
    charset => (string) UTF-8
    text => (string) test1 ążźććśżźćą
  }
)

imap_mime_header_decode ( $obj->message->plain)
array(1) (
  [0] => stdClass object {
    charset => (string) default
    text => (string) Tutaj jest tre=C5=9B=C4=87

*tutaj wi=C4=99cej tre=C5=9Bci

Osadzony obraze:

Obrazek
*

  }
)

$imap->incomingMessage->message->info
array(1) (
  [0] => stdClass object {
    structure => stdClass object {
      type => (int) 0
      encoding => (int) 1
      ifsubtype => (int) 1
      subtype => (string) PLAIN
      ifdescription => (int) 0
      ifid => (int) 0
      lines => (int) 8
      bytes => (int) 80
      ifdisposition => (int) 0
      ifdparameters => (int) 0
      ifparameters => (int) 1
      parameters => array(2) (
        [0] => stdClass object {
          attribute => (string) CHARSET
          value => (string) utf-8
        }
        [1] => stdClass object {
          attribute => (string) FORMAT
          value => (string) flowed
        }
      )
    }
    body => (string) Tutaj jest tre=C5=9B=C4=87

*tutaj wi=C4=99cej tre=C5=9Bci

Osadzony obraze:

Obrazek
*

  }
)

To fix the encoding problem in your message, I need your help. I need you to install this package from my repository, as follows.
{     "repositories": [         {             "type": "vcs",             "url": "https://github.com/sergey144010/php-imap-client", 			"packagist": false         }     ],     "require": {         "SSilence/php-imap-client": "dev-master"     } }
And showed me again
$imap->incomingMessage->message->info

Your repo working :) subject and body have correct encoding
Array
(
    [0] => stdClass Object
        (
            [structure] => stdClass Object
                (
                    [type] => 0
                    [encoding] => 1
                    [ifsubtype] => 1
                    [subtype] => PLAIN
                    [ifdescription] => 0
                    [ifid] => 0
                    [lines] => 8
                    [bytes] => 80
                    [ifdisposition] => 0
                    [ifdparameters] => 0
                    [ifparameters] => 1
                    [parameters] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [attribute] => CHARSET
                                    [value] => utf-8
                                )

                            [1] => stdClass Object
                                (
                                    [attribute] => FORMAT
                                    [value] => flowed
                                )

                        )

                )

            [body] => Tutaj jest treść

*tutaj więcej treści

Osadzony obraze:

Obrazek
*

        )

)

@sergey144010. Your repos latest code is working. Please make sure your code is stable and documented and make a pull request. I will gladly merge it.

So this is a very interesting question. As you can see your mail server gives this letter and says that it is encoded with 8bit encoding. You can see it here:
structure->encoding = 1
# http://php.net/manual/ru/function.imap-fetchstructure.php

So the body of the letter SHOULD BE decoded with the imap_8bit () method. This is logical.
That now happens in the current version in this repository.
If this is removed, then it will not be logical.
Because this is the reason for decoding or not.
It turns out that your body is encoded, and you do not need to decode it. This is not the correct logic.
And the encoding is known in advance and given by the server. What's strange.
So you need to find out why this is happening to your mail server. Which server are you using?
In the meantime, only you need to encode the body of the letter back with the function imap_qprint () and the letter will be displayed correctly.
$str = "Tutaj jest tre=C5=9B=C4=87
*tutaj wi=C4=99cej tre=C5=9Bci
Osadzony obraze:
Obrazek
*
";

var_dump(imap_qprint($str));

string(78) "Tutaj jest treść
*tutaj więcej treści
Osadzony obraze:
Obrazek
*
"

And with subject message, everything is clear, we'll fix it soon, but for now use imap_mime_header_decode() method.

The question is whether the encoding 8bit should be decoded?

I think everything should be decoded. Devs don't need to worry about a // hack comment that lets they know they are hacking around our library. So yes

I changed it. Pull. Check.

Merged. Please check your code with out latest updates

@TrueShutDown is this issue fixed?

We assume this issue has been fixed @TrueShutDown. We have merged pull request that we believe fix this issue!

Not usre if this is related, but I tried with the latest update (eaf55dbb0772d5a209b62e2da875ae17c6fcbf47) and still get subjects like

=?UTF-8?Q?Spanisch_Pr=c3=bcfung?=

instead of

Spanisch Prüfung

You did composer update?

Yep. Did it again (no change):

Updating ssilence/php-imap-client dev-master (eaf55db => 0fbccd3)
Checking out 0fbccd3fe6d5fc1965102eb7f6fd96679f7c1de6

ok i started debugging it:
IncomingMessage.php
private function init()
    {
        $structure = $this->imapFetchstructure();
        $this->structure = $structure;
        if(isset($structure->parts)){
            $countSection = count($structure->parts);
            $this->countAttachment = $countSection-1;
        };
        $this->getCountSection();
        $this->getAttachment();
        $this->getBody();
        // HERE, HEADER IS EMPTY
        $this->decode();
        // HERE, HEADER IS STILL EMPTY
        $header = $this->imapFetchOverview();
        $this->header = $header[0];
        // NOW, HEADER IS SET, BUT NOT DECODED
        $this->header->details = $this->imapHeaderInfo();
    }

If i move $this->decode(); to the end of the function it works.

I understand, now we'll fix it.

Please do composer update . Try it. And if everything is okay, we cover the topic.

@TrueShutDown ping


UI - Allowed to add empty tools using "Add by URL"

Steps to reproduce the problem:

Create an assistant.
Edit the assistant.
Use "Find tools" option and then "Add by URL" option to add a tool.
Do not anter anything and click on "+" and close this page.

Notice that an empty tool gets added.

Expected Behavior:
Should not add empty tool entry .

This issue is also seen when using "Add tool" option from Chat view and clicking on "+" sign without adding any content to the "Add by URL" option.

@sangee2004 This should now be fixed. You should see nothing happen if the input is empty.

Tested with version 0.10.0-rc2. This issue is not seen anymore.
We are not allowed to add empty tools.


ldap: Fix unintended user deactivation in case of connection failure.

Fixes #13130.
django_auth_ldap doesn't give any other way of detecting that LDAPError
happened other than catching the signal it emits - so we have to
register a receiver. In the receiver we just raise our own Exception
which will properly propagate without being silenced by
django_auth_ldap. This will stop execution before the user gets
deactivated.

Nice, merged, thanks @mateuszmandera!


feat: expose animation function to customize animation

Closes: #8
I created a feature to manually pass a function to sheet component for handling enter & leave animation! if there was no prop it uses the default animation behavior so it's fully compatible with previous version.
I'd be happy if you review my codes and merge this PR

And prop names should be animationLeaveHandler and animationEnterHandler because it looks like a function name.

I'm wondering why type-check workflow doesn't run 🤔

@hasanparasteh can you pull the latest changes? I updated workflows.

I'll close this PR and try to remove additional and extra commits to make a clean PR.

@hasanparasteh No need to create another PR, you just can update this one.


Stdlib.Stream deprecated with ocaml >= 4.14.0

(alert deprecated): module Stdlib.Stream
Use the camlp-streams library instead.

Fixed with version 1.2.1.


Solo chain menu options not displayed correctly (WebKit)

Description
Currently the option for "Joystream" in the responsive layout is not displaying correctly, this is so far only reproducible within the Nova App on iOS and Safari on iOS and Safari on macOS in repsonsive layout (see screenshots / video) so seems like a WebKit issue.
Steps To Reproduce

Navigate to Multix within Nova app on iOS or within Safari
Open the "hamburger" menu to see options
Scroll to the "Joystream" option

Expected Behaviour
Menu option should be clearly displayed like the others.
Screenshots / Video
https://github.com/ChainSafe/Multix/assets/3982665/01997c69-c0dd-4761-8313-bfe4d4ef0bb2

Test Host Specifics

Safari or Nova Wallet mobile app on iOS 17.1.1
Safari on macOS using in responsive layout

Additional context

Cannot reproduce the issue using the web dev tools and responsive layout in other browsers
Works as intended on Android too

Oh, it's probably because it's the only one, that is alone in its category? Problem is that it'll be hard to reproduce.
@Lykhoyda can you think about why that would be?

@Tbaut it's reproducible in Safari (although it's strange), here is the PR for the issue https://github.com/ChainSafe/Multix/pull/444


Fix that malloc() doesn't return a null pointer for too large allocations

The _sbrk() function wasn't implemented. It's used by malloc() to request more heap memory. This function must be defined and correctly implemented if we want malloc() to return a null pointer if more space is requested than is available. It already works that way for the Mbed Core (although with a different implementation), but doesn't for the Renesas Core before this addition.

@alrvid  I think we are already including this implementation of sbrk() https://github.com/renesas/fsp/blob/master/ra/fsp/src/bsp/mcu/all/bsp_sbrk.c#L68-L102 . Isn't that implementation ok?

 So I assumed that you hadn't implemented it. There must be something else going wrong then, because malloc() doesn't work correctly in this aspect. I've tried it on both the C33 and the Uno R4 with the same result.

Sorry for butting in, but was curious.
Quick comments:
The current code keeps allocations as a multiple of 4 bytes,
caddr_t _sbrk (int incr)
...
    uint32_t      bytes            = (uint32_t) incr;
...
    bytes = (bytes + 3U) & (~3U);
    if (current_heap_end + bytes > &_Heap_Limit)

Code in PR does not round up:
extern "C" void * _sbrk(ptrdiff_t change)
...
if ((programBreak + change) > &__HeapLimit)

Not sure why new one would detect it and the old one did not?
They do have different parameter types: int versus ptrdiff_t
Wish the current code had parentheses...
    if ((current_heap_end + bytes) > &_Heap_Limit)
But doubt that is the issue.

The issue was that the _sbrk() function from the Renesas FSP wasn't linked as it should. Instead, we got a _sbrk() from the Arm toolchain. Since both these come from .a files, my first fix solved it by overriding the Arm toolchain version (coming from an .o file at link time). But this new fix solves the root cause, and the old one is no longer necessary.

Another option would be to use -Wl,--undefined=_sbrk because that would link in less extra stuff and not increase the memory consumption so much. But my solution in the PR might have other benefits. Which one do you prefer @facchinm? I can change to -Wl,--undefined=_sbrk if you want me to.


CSI in sniffer mode (AEGHB-278)

Hi! I have a couple of questions about CSI in sniffer mode.
I developed and app running in a ESP32-S3 that catches CSI packets by means of the esp-idf callback. Currently the board is set to operate in the WIFI_MODE_NULL with promiscuous mode enabled. The idea is that of gathering all the "CSI packets over the air", as the board is not connect to any AP, and no devices are connected to the board.
From my understanding about how CSI is computed, it is determined at the receiver from some OFDM symbols in the preamble of the packet sent by the transmitter (let's stick to the L-LTF 1x1 20Mhz case). In my setting, of course, a received packet was not addressed to the board. Thus, is the CSI information I am getting from it still describing correctly the channel between my board and the transmitting AP, or it is conveying information pertaining to the AP and the device to which the packet was addressed? My understanding is that the information conveyed is about the board and the AP, since the transmitted symbols should be pre-defined (right?). Moreover, could the board be getting CSI information also from packets sent by other devices that are not APs?
Thanks!

You can think of CSI in terms of RSSI, where CSI is the physical information and RSSI is the data link layer information. A device with promiscuous mode can receive RSSI information from other devices, so it can also receive CSI information. CSI reflects the network situation between other devices and the current device just like RSSI

Hello, @nicosacco
Closing this issue, feel free to reopen with more updates. Thanks.


web/database: add usage indicator

Adds a meter of database usage and info to the database page.  Meter turns orange when 75% full and red when 90% full. There’s also a web alert at 95%.

Signed-off-by: SoggySaussages<EMAIL_ADDRESS>

please rebase this to dev

That's done.


chore(deps): update sqlparser requirement from 0.44.0 to 0.45.0

Which issue does this PR close?

Supersedes #10085
Rationale for this change

What changes are included in this PR?

Handle some sqlparser API changes. Have tried to keep changes minimum.
Are these changes tested?

Are there any user-facing changes?

Thanks @Jefffrey !


SMTP fails with lettre

I'm testing against Mailtutan, and getting TLS related errors when trying to use mailtutan with lettre.
I get the following from lettre:
Smtp error: network error: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof

I get this using the starttls_relay method in lettre, which works great with any real smtp server

On Fri, Oct 25, 2024 at 04:31:11PM -0700, Peter Farr wrote:

TLS related errors

Please elaborate

I did elaborate already. I posted the exact error message from lettre. I'm not sure what else I can do here to elaborate lol - the full context is already in my original issue message

On Sat, Oct 26, 2024 at 10:58:14AM -0700, Peter Farr wrote:

I did elaborate already.

Acknowledge

I'll investigate this issue. thanks for reporting

On Mon, Oct 28, 2024 at 08:37:18AM -0700, Mohsen Alizadeh wrote:

I'll investigate this issue.

Which starts with reproducing the issue.
Time will tell what comes first:

a message saying "Can not reproduce"
a message saying "Need further information for a reproducer"
a message saying
"This URL can be used to git clone for a reproducer"

Groeten
Geert Stappers
Silence is hard to parse


Error when attempting to deploy VirtualService and Gateway

Hello,
I've experienced an issue with this documentation. The following errors and solutions allowed me to continue.
PS /home/lou/aks-voting-app/scenarios/intelligent-routing-with-istio> kubectl apply -f istio/step-1-create-voting-app-gateway.yaml --namespace voting
unable to recognize "istio/step-1-create-voting-app-gateway.yaml": no matches for kind "VirtualService" in version "networking.istio.io/v1alpha3"
unable to recognize "istio/step-1-create-voting-app-gateway.yaml": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3"
After searching, I found this fix from the istio GitHub page
The following command allowed me to proceed through the tutorial:
PS /home/lou/aks-voting-app/scenarios/intelligent-routing-with-istio> istioctl install --set profile=demo -y
✔ Istio core installed
✔ Istiod installed
✔ Ingress gateways installed
✔ Egress gateways installed
✔ Installation complete
PS /home/lou/aks-voting-app/scenarios/intelligent-routing-with-istio> kubectl apply -f istio/step-1-create-voting-app-gateway.yaml --namespace voting
virtualservice.networking.istio.io/voting-app created
gateway.networking.istio.io/voting-app-gateway created
Note - I am executing from the Azure Cloud Shell.

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

ID: 04e91998-d53d-5074-5c67-0f9f031bc26c
Version Independent ID: 989fa4fe-e7a8-2003-6a89-73beaade1b80
Content: Use Istio for intelligent routing - Azure Kubernetes Service
Content Source: articles/aks/servicemesh-istio-scenario-routing.md
Service: container-service
GitHub Login: @paulbouwer
Microsoft Alias: pabouwer

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Thank you for the feedback.
We've added a task to our backlog and will prioritize accordingly.
#please-close