problem on view camera

I have a problem on view camera.
since yesterday I used https://github.com/Sunoo/homebridge-camera-ffmpeg
now, when I switch on your plugin my camera is not active.
my previuos config:
{
"name": "Camera FFmpeg",
"cameras": [
{
"serialNumber": "ZZZZZZZZ",
"videoConfig": {
"vcodec": "h264",
"source": "-rtsp_transport tcp -re -i<EMAIL_ADDRESS>"debug": true,
"maxFPS": 30,
"maxHeight": 720,
"maxStreams": 2,
"maxWidth": 1280,
"audio": true
},
"model": "Ezviz Mini Plus",
"name": "Cam Conigli"
}
],
"platform": "Camera-ffmpeg"
},
my actual config:
{
"name": "CameraUI",
"port": 8282,
"auth": "form",
"theme": "auto",
"language": "auto",
"debug": false,
"reset": false,
"mqtt": {
"active": false
},
"http": {
"active": false,
"localhttp": false
},
"ssl": {
"active": false
},
"cameras": [
{
"name": "Cam Conigli",
"manufacturer": "Ezviz",
"model": "Ezviz Mini Plus",
"serialNumber": "xxxxxx",
"unbridge": false,
"videoConfig": {
"source": "-rtsp_transport tcp -vcodec h264_mmal -i<EMAIL_ADDRESS>"stillImageSource": "-i<EMAIL_ADDRESS>"maxWidth": 1920,
"maxHeight": 1080,
"maxFPS": 15,
"maxBitrate": 500,
"vcodec": "h264_omx",
"packetSize": 564,
"audio": true
}
}
],
"platform": "CameraUI"
}
rstp stream worked ... tested.. but no live view... where I am wrong?

this is the error with webpage:
[6/12/2020, 23:20:01] [CameraUI] [Interface] Cam Conigli: RTSP stream exited with error! (null)
and with homekit
[6/12/2020, 23:22:18] [CameraUI] [Plugin] Cam Conigli: ffmpeg exited with code: 1 and signal: null (Error)

here another log:
[6/12/2020, 23:30:00] [CameraUI] [Interface] Cam Conigli: Online
[6/12/2020, 23:30:00] [CameraUI] [Interface] Cam Terrazzo: Online
[6/12/2020, 23:30:07] [CameraUI] [Interface] Cam Conigli: RTSP stream exited with error! (null)
[6/12/2020, 23:30:08] [CameraUI] [Interface] Cam Conigli: Online
[6/12/2020, 23:30:10] [CameraUI] [Interface] Cam Terrazzo: RTSP stream exited with error! (null)
[6/12/2020, 23:30:12] [CameraUI] [Interface] Cam Conigli: RTSP stream exited with error! (null)

I had them working on web interface with this config:
            {
                "name": "Cam Conigli",
                "manufacturer": "Ezviz",
                "model": "Ezviz Mini Plus",
                "serialNumber": "xxxxxx",
                "unbridge": true,
                "videoConfig": {
                    "source": "-i<EMAIL_ADDRESS>                    "stillImageSource": "-i<EMAIL_ADDRESS>                    "maxStreams": 2,
                    "maxWidth": 1920,
                    "maxHeight": 1080,
                    "maxFPS": 15,
                    "maxBitrate": 500,
                    "vcodec": "h264_mmal",
                    "packetSize": 564,
                    "audio": true,
                    "socketPort": 8201
                }

but video won't work in homekit, I have only still image
and then
[7/12/2020, 00:15:15] [CameraUI] [Plugin] Cam Conigli: Sending snapshot: 1280 x 720
[7/12/2020, 00:15:16] [CameraUI] [Plugin] Cam Conigli: Starting video stream: 1280 x 720, 15 fps, 299 kbps
[7/12/2020, 00:15:18] [Broadlink RM] Condizionatore Soggiorno onTemperature (0)

I have another log:
[7/12/2020, 02:53:18] [CameraUI] [Plugin] Cam Conigli: Stream command: ffmpeg -i<EMAIL_ADDRESS>-an -sn -dn -codec:v h264_omx -pix_fmt yuv420p -color_range mpeg -r 15 -f rawvideo -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2 -b:v 299k -payload_type 99 -ssrc 8720021 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params t5o5A8k7ot/zCMjXTnjggI8BKCV5cAwf1+wGpgkZ srtp://<IP_ADDRESS>:55034?rtcpport=55034&pkt_size=564 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 10164289 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params suv1ljD61xQ7MsA3mNBwTY2TExxOMSPNdcAzDxMU srtp://<IP_ADDRESS>:63493?rtcpport=63493&pkt_size=188
[7/12/2020, 02:53:21] [CameraUI] [Plugin] Cam Conigli: ffmpeg exited with code: 1 and signal: null (Error)
I have also a question, it is correct that when I set the option "unbridge camera" all camera from web interface disappers?

@platini76
Yes, unbridged will let them disappear from webinterface.
It seems, the stream in homekit fails because of enabled audio. You can try with "audio": false in config.
The issue with audio is already known https://github.com/SeydX/homebridge-camera-ui/issues/65

notpe... also sisabling audio wond' start

@platini76
Your previous config and your actual config are different, can you try with the parameter from previous config?
Previous config
...
"vcodec": "h264",
"source": "-rtsp_transport tcp -re -i<EMAIL_ADDRESS>"debug": true,
"maxFPS": 30,
"maxHeight": 720,
"maxStreams": 2,
"maxWidth": 1280,
"audio": true
...

Actual config
...
"source": "-i<EMAIL_ADDRESS><— different
"stillImageSource": "-i<EMAIL_ADDRESS>"maxStreams": 2,
"maxWidth": 1920, <— different
"maxHeight": 1080,  <— different
"maxFPS": 15,  <— different
"maxBitrate": 500,  <— not defined in previous config
"vcodec": "h264_mmal", <— different
"packetSize": 564, <— not defined in previous config
"audio": true,
"socketPort": 8201
...

Can you try with following config:
"videoConfig": {
    "source": "-rtsp_transport tcp -re -i<EMAIL_ADDRESS>    "stillImageSource": "-rtsp_transport tcp -re -i<EMAIL_ADDRESS>    "maxStreams": 4,
    "maxWidth": 1280,
    "maxHeight": 720,
    "maxFPS": 30,
    "vcodec": "h264",
    "audio": false,
    "socketPort": 8201
}

now it seems working... without audio...
it was a problem on resolution? I copy your rest on the same camera to do it.
any possibility ti transmit @ 1920x1080 as camera are capable? I know the new eufy can do it directly in homekit.
and... possibility to unbridge camera and see also them on web interface?
cause I have a virtual machine and I don't want to have it hevvy
thanks

@platini76
Atm it is not possible to see unbridged cameras via webinterface. This will be available in a next version.
You can play with resolution. Camera UI accepts all parameter which camera-ffmpeg also accepts

can you say me the max for homekit=?
it is 1920x1080 or 720?
when nest version?

I have several problems with all ezviz camera. all camera video streaming is delayed... and take only some seconds a minute... with big jump... what d you suggest? camera on the ezviz app are perfect.
it is the codec?
it is raspberry processor?
really don't know how to solve.

I have several problems with all ezviz camera. all camera video streaming is delayed... and take only some seconds a minute... with big jump... what d you suggest? camera on the ezviz app are perfect.
it is the codec?
it is raspberry processor?
really don't know how to solve.

Unbridged cameras are now available in the ui (v3.2.2)


Feature Request

Hello all. Here is another request I hope makes the cut.
As of now you rely on software installed on IOS devices to track them.
I propose you gather the tracking data from iCloud itself similar to android applications that can track your iPhone from your iCloud account.
A user would then just need to add there iCloud account details into Traccar and then it would get the devices and the history.
That would prevent the user from disabling tracking unless they have the restriction code and would make it as stable and hidden as the hidden android version.
Just a thought.

Do you have any details on how to do it?

here is a good start
https://github.com/matt-kruse/find-my-iphone
here is a php version
https://github.com/Neal/FindMyiPhone
and another php version
https://github.com/albeebe/PHP-FindMyiPhone
npmjs
https://www.npmjs.com/package/icloud-promise

You could as an interim solution just write a cron job that pulls the data then pushes it to traccar via the Osmand proto https://www.traccar.org/osmand/. You could even access traccar DB and pull the credentials for devices and just cycle though or fork a process for each that needs updating.
Has anyone seen if this is possible on android too? Seems that whenever you request a device location via web interface it shows up on the phone that someone is doing it.

Thanks for the direction.
I was able to implement my own solution that works great.
I used https://github.com/albeebe/PHP-FindMyiPhone
`<?PHP
error_reporting(0);
header("Content-type: text/html; charset=utf-8");
include ("class.findmyiphone.php");
// This is where we log in to iCloud
try {
	$fmi = new<EMAIL_ADDRESS>"icloud_password");
	} catch (Exception $e) {
	print "Error: ".$e->getMessage();
	exit;
}

$key = "hEYzmUnZQ677MdvKKc+17WhEN6yRoc9XYYtD4vWyE45rlKcppzfSc+HYVNSUzmWV";
$keyLoc = $fmi->locate($key , 10);
$keyId= '683842'; //Traccar identifier

//$fmi->playSound($key, "You've been located!");

?>`

`


Problem building the docs

I tried following the instructions on: https://ryantm.github.io/mmdoc/contributing/#contributing
the nix build command worked as far as I can see. The shell commands to build and continuously build didn't work - details below.
❯ pwd
/home/i97henka/github/ryantm-mmdoc
❯ ls
LICENSE  README.md  contrib  doc  flake.lock  flake.nix  meson.build  pkgs  result  src  test
❯ nix build
❯ nix shell -c doc-build
error: unable to execute 'doc-build': No such file or directory
❯ nix shell -c doc-watch
error: unable to execute 'doc-watch': No such file or directory
I haven't got much experience with nix or nix flakes, but I believe my machine is working as it should in terms of nix in general.

Hi, glad to see your interest in this! Sorry for the long reply time.
Try
nix develop --command "doc-watch"

instead.

Addressed in https://github.com/ryantm/mmdoc/commit/9c320899101f47023fc2006ae08b8a7b3889efb9

Tested the command and it works well - when I navigate to localhost:8000 I get this menu structure - and under there the different types of the documentation generation can be accessed.

Looks as expected!


Az cli fails with pod identities

Describe the bug
Az cli is installed and pod identity is set on a container. Getting below error.
Command Name
az storage blob list
Errors:
get_token() takes 1 positional argument but 2 were given
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 709, in _run_job
    cmd_copy.exception_handler(ex)
...
    _await_result(self._policy.on_request, request)
azure/core/pipeline/_tools.py, ln 29, in await_result
    result = func(*args, **kwargs)
core/pipeline/policies/_authentication.py, ln 93, in on_request
    self._token = self._credential.get_token(*self._scopes)
TypeError: get_token() takes 1 positional argument but 2 were given

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az login --identity --allow-no-subscriptions
az storage blob list --account-name xxxxxxxx --auth-mode login --container yyyyyyyy

Expected Behavior
Environment Summary
Linux-4.15.0-1089-azure-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.11.1

Additional Context

@Juliehzl please take a look.

I'm getting an identical stack and error when running "query" in the "costmanagement" extension. (Yes I know it's not supported)

fixed on https://github.com/Azure/azure-cli/pull/15118
please try with edge build https://github.com/Azure/azure-cli#edge-builds now and official release will be available on 9/22


Chrome extension>UI clipping with DPI above 100%

When DPI scaling is above 100% (125% in my use-case), the bottom portion of the visible Chrome extension is clipped - specifically the text labels for the bottom buttons. See picture attachment.

umm.. I am on Windows 10, not able to reproduce it,

any updates on this? still reproducible?

Still the same. Does PPI matter? Mine is 141.

don't know.. how can I change PPI?
Probably could be chrome issue.

I don't think you can change PPI, assuming that's a cause. I've tried uninstalling and reinstalling Kassi. Disabled other extensions that may be affecting it. No change. It does work properly on Firefox.
Chrome Version 47.0.2526.106 m
Windows 10 x64
Kassi (for Chrome) Version: 2.3.3


Formatter chooses clang while astyle is preferred formatter

Hello,
I am in general content with vim-autoformat, except that it choses the wrong formatter only for headers. For c sources it uses the astyle (including the ~/.astylerc which I do not have to define within vimrc).
Why would it chose correctly for .c files and not for .h files?
The relevant portion of my .vimrc is:
augroup projects
	" remove all 'projects' commands (prevent duplicate definition)
	autocmd!
	autocmd BufWrite * :Autoformat
augroup END
`set tabstop=4` `set softtabstop=4` `set shiftwidth=4` `set noexpandtab`
set colorcolumn=110
highlight ColorColumn ctermbg=darkgray
" Comment out the next line to get more info on autoformat processing
let g:autoformat_verbosemode=1
let g:formatdef_my_custom_c = '"astyle"'
let g:formatters_c = ['my_custom_c']
let g:formatdef_my_custom_h = '"astyle"'
let g:formatters_h = ['my_custom_h']
" autocmd FileType am let b:autoformat_autoindent=0
" autocmd FileType am let b:autoformat_retab=0
`let g:autoformat_autoindent = 0` `let g:autoformat_retab = 0` `let g:autoformat_remove_trailing_spaces = 0`
The output when writing to a .h file is:
edit.h [+]                                                                             79,33          16%
Trying definition from g:formatdef_clangformat
Evaluated formatprg: clang-format -lines=1:365 --assume-filename="/home/data/gbonnema/projects/c/xwpe-guu s/src/edit.h" -style="{BasedOnStyle: WebKit, AlignTrailingComments: true, UseTab: Always}"
Using python 2 code...
"edit.h" 347L, 9307C written
Press ENTER or type command to continue
``
The output when writing to a .c file is:
we_find.c [+]                                                                          24,46           0%
Trying definition from g:formatdef_my_custom_c
Evaluated formatprg: astyle
Using python 2 code...
"we_find.c" 226L, 6327C written
Press ENTER or type command to continue
``
Any ideas?
Kind regards, Guus Bonnema.

When in edit.h, what is the output of :echo &ft?

It says cpp.

That is a major hint. You posted that you defined let g:formatters_c = ['my_custom_c'], which is for c filetypes. But vim detects your code as c++.  So make sure that vim sees your header files as c code, or use let g:formatters_cpp = ['my_custom_c'] instead.

Hi Chiel,
Ok, I will make the cpp formatter the same as the c formatter.
Still I wonder whether I could have different formatters for c and for cpp, if vim always recognizes header files as cpp?
Also I don't understand why it didn't pick the formatter I defined for .h files (let g:formatters_h) which wasastyle as well. Shouldn't that have prevented this?

Wait I messed up. It's your header files that don't work. Correcting my post above...

I don't know why your header files are detected as cpp. Try googling on that.

I will start digging, The other plugin I use is Ycm (Youcompleteme) for autocompletion. If I find anything I will let you know on this issue. Thanks for your time.


Bot user access token

Support request via email, added here for visibility.

I am getting into a problem, because after successfull redirect from slack I get this token object

{
  "accessToken": "xoxp-241744725683-HIDDEN-HIDDEN-b8e1aa32713c8f0125ad2c91ab390cef",
  "expires": null,
  "refreshToken": null,
  "resourceOwnerId": null,
  "values": {
    "ok": true,
    "scope": "identify,chat:write:bot",
    "user_id": "HIDDEN",
    "team_name": "HIDDEN",
    "team_id": "HIDDEN"
    }
}

What I need is this:

{
    "access_token": "xoxp-XXXXXXXX-XXXXXXXX-XXXXX",
    "scope": "incoming-webhook,commands,bot",
    "team_name": "Team Installing Your Hook",
    "team_id": "XXXXXXXXXX",
    "incoming_webhook": {
        "url": "https://hooks.slack.com/TXXXXX/BXXXXX/XXXXXXXXXX",
        "channel": "#channel-it-will-post-to",
        "configuration_url": "https://teamname.slack.com/services/BXXXXX"
    },
    "bot":{
        "bot_user_id":"UTTTTTTTTTTR",
        "bot_access_token":"xoxb-XXXXXXXXXXXX-TTTTTTTTTTTTTT"
    }
}

Slack will only supply the bot details if the bot scope has been passed in the AdamPaterson\OAuth2\Client\Provider\Slack::getAuthorizationUrl() method. This is done as follows:
$provider = new AdamPaterson\OAuth2\Client\Provider\Slack();

$provider->getAuthorizationUrl([
    'scope' => 'bot <other scopes>'
])

Once the token request is complete you can access additional vendor values via:
$token = $provider->getAccessToken('authorization_code', [
    'code' => '<code>'
]);

$values = $token->getValues();

// get bot user id
$botUserId = $values['bot']['bot_user_id'];

// get bot access token
$botAccessToken = $values['bot']['bot_access_token']


Sync updates from openshift/jenkins-sync-plugin

Testing done

### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [ ] Ensure that the pull request title represents the desired changelog entry
- [ ] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue

/lgtm


failed to open display ''

build succeed but failed to open display

for my one its a build failed


Fix Editor crash after disabling plugin that used "forward_spatial_gui_input" #26124

small fix to avoid editor crash after disabling a plugin that uses force_input_forwarding.
fixes #26124

Please amend the commit log to use a more descriptive title, as you did for the PR title itself. "fix #26124" doesn't tell much about what the commit does to a git log reader.
Something like this would be clearer:
Fix editor crash after disabling plugin that used forward_spatial_gui_input

Fixes #26124.

Unrelated, but this commit uses an email (see header in https://github.com/godotengine/godot/commit/5c5b22cf7f8644f70abf07af0468f1bf41253433.patch) which is not linked to your GitHub account, which is why it doesn't appear as authored by "@ericrybick". If you want to fix that, you can add this email as secondary GitHub email in your profile. (It's not necessary though, it's just cosmetic/to be able to "claim" the commits you authored.)

I edited the commit title and added the email to my github account. Many Thanks :)

Thanks!

Editor still crashes when I disable NativeScript plugin
v3.2.3

This happens to me as well when disabling a NativeScript plugin that overrides forward_spatial_gui_input.
v3.2.3.stable.mono.official

Still getting crash using set_force_draw_over_forwarding_enabled()
v3.3

Please open a new issue with a minimal reproduction project. This issue was fixed in 2019.


selectionCopy setting not respected if freezeColumns is null

The selectionCopy: false setting is supposed to not show the cell corner. However, if freezeColumns is null (the default), this code sets the corner style display to '' (previously set to 'none' in the initialisation code), thereby showing the corner even though selectionCopy is false.

It has been fixed on the master repository.


Fix dockerfile

I wasn't successful when trying to run the generated docker image. I found out it was because the ts code was not compiled to js, so I added the compilation to the Dockerfile.
Please correct me if I am wrong, maybe I just missed something and it works fine.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign tumido after the PR has been reviewed.
You can assign the PR to them by writing /assign @tumido in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [tumido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Tweak layout of Schedule Finder on small screens

Asana Ticket: Schedule Finder | Mobile Layout

The Schedule Finder box is no longer in a collapsible section
Page header (e.g. "Info & Maps") is now displayed after the box

@digitalcora Looks great! Glad to also be rid of the flashing above the map on desktop with slow connections. Looking forward to seeing how more folks interact with this live. 👍

Glad to also be rid of the flashing above the map on desktop

I might have fixed this accidentally — it was an issue I saw after I made some changes for this branch, and I assumed I had introduced it. Happy little accidents 🌳

It looks like what this code is aiming to do, across a few files, is implement logic for "if there's no schedule note, use the mobile version of ScheduleFinder

That's not the case, so hopefully I can clear up some confusion here 😄
ScheduleNote is displayed in place of ScheduleFinder on subway line pages (and only there). We do this because subway lines don't (officially) have individually scheduled trips, so Schedule Finder would make no sense in that context. Instead there is a note that explains the headways of the line. This is the case regardless of mobile/desktop breakpoints. This PR does not touch that behavior.
The classModifier code you describe is there just to make the ScheduleFinder appear in one of two different places depending on whether the sidebar exists in the current breakpoint. You're correct that I was following the existing code; I saw we were already passing in a classModifier prop, and that we already had CSS for schedule-finder-- classes, but no such prop was defined in the component itself. I assumed it was a remnant of something that used to work, and restored it to functionality. But, you're probably right that we could do this more simply using a descendant selector in the CSS, and not need the separate schedule-finder-- classes at all.

But, you're probably right that we could do this more simply using a descendant selector in the CSS

I pushed a new commit that does this, let me know what you think @thecristen. There were no unique IDs or classes already that could be used to make the distinction, so I had to add some new ones.


New Game! -The Challenge Stage!- [PCSG00903]

Game summary

Game name: New Game! -The Challenge Stage!-
Game serial: PCSG00903

Vita3K summary

Version: 0.01
Build number: 404
Commit hash: https://github.com/vita3k/vita3k/commit/d4cd595

Test environment summary

Tested by: waterflame
OS: Windows 7
CPU: Intel i7-2600
GPU: AMD Radeon HD 6700 Series
RAM: 8 GB

Issues
So if you've been following through my issues you'll know I had a quick ramble about the MAGES engine, well this game runs the end that game after it AKA the M2 engine. Besides that, nothing really noteworthy, loads then crashes. No noticeable regressions against 328-https://github.com/vita3k/vita3k/commit/6525c1c
Screenshots

Log
vita3k-404.log
Recommended labels

Crash

Vita3K summary

Version: v0.1
Build number: 571-70599d3
Commit hash:  https://github.com/Vita3K/Vita3K/commit/70599d3

It seems to be crashing on rendering something, because it'll dump to console the struct of a shader and then crash.
NewGameTheChallengeStage.log

Vita3K summary

Version: v0.1
Build number: 696
Commit hash: https://github.com/vita3k/vita3k/commit/b915fa1

Issue
Crash on load, DEADBEEF.
Log
NewGameTheChallengeStage.log

Vita3K summary

Version: v0.1
Build number: 805
Commit hash: https://github.com/vita3k/vita3k/commit/4279f967

Issue
Crash, shader gen
Log
NewGameTheChallengeStage.log

Vita3K summary

Version: v0.1
Build number: 984
Commit hash: fb0798e of pull/456 (I don't want to append every issue to the PR)

NEW GAME! -THE CHALLENGE STAGE!- - [PCSG00903].log
Issue
Crash on shader gen

Vita3K summary

Version: v0.1
Build number: 1315
Commit hash: https://github.com/vita3k/vita3k/commit/5b070aac

Loads modules, then crashes because of Apptill or sceGxmGetRenderTargetMemSizes
NewGameTheChallengeStage.log

Vita3K summary

Version: v0.1
Build number: 1315
Commit hash: https://github.com/Vita3K/Vita3K/commit/ee2a463bf5808d3779e68f99d6130419e9b48785

Loads the game, images look corrupted and then it crashes because of Unicorn error 0x7. Invalid memory write (UC_ERR_WRITE_UNMAPPED)
Screenshots

log
vita3k.log

sometimes characters dont render (mainly kou right after intro), same with nene introduction

This game is using the Kaleido ADV Workshop engine.
Issue
https://player.vimeo.com/video/824555295?h=48a6430f8d
It works
https://player.vimeo.com/video/824559059?h=a3204ab7d2
PR: https://github.com/Vita3K/Vita3K/pull/2284
👍


Showing 2 pages

Hello and thank you for the project.
I have a question, can we view 2 pages of the pdf instead of one?

Your request is already being tracked in #590, so I'm closing this issue as a duplicate.


Add streaming view iteration

We should reconsider adding a stream-like interface to view queries. This requires work to be done in Nebari, but it should allow for a flexible approach to streaming results rather than returning a Vec of results.

Blocked by khonsulabs/nebari/issues/24

The more I've pondered this, I don't think the original idea was as good as I hoped for it to be. I think a better approach might be to build a high-level stream implementation that automatically chunks requests.


Need full block before placing slab on top

Trying to place a slab above another slab that is the top half of the slab, it completes the block instead of placing it above.

Should be fixed in the latest version


Missing $ from executeRaw in error message "Invalid `prisma.executeRaw()` invocation:"

Take this example from https://github.com/prisma/prisma/blob/2b6319588bd384a1ca37d0022879ca589d974bd9/packages/client/src/tests/integration/happy/interactive-transactions/test.ts#L325
      await prisma.$executeRaw`INSERT INTO User (id, email) VALUES ("1", "user_1@website.com")`,
      await prisma.$executeRaw`INSERT INTO User (id, email) VALUES ("1", "user_1@website.com")`,

It will throw:
Invalid \`prisma.executeRaw()\` invocation:

  Raw query failed. Code: \`2067\`. Message: \`UNIQUE constraint failed: User.email\`
`)

The $ is required now in front of executeRaw (we used to support without the $ at some point)
Here the small fix would be to add the $ like prisma.$executeRaw() in the error message.
This probably also applies to queryRaw.

This is actually from the Client, not the engine: https://github.com/prisma/prisma/blob/ba74c81fdbc9e6405946fdc6f9d42d103d008dc2/packages/client/src/runtime/utils/printStack.ts#L190


BioPhi pinned to an old version of ANARCI

I am interested in using BioPhi with the updated version of ANARCI. This is currently not possible as BioPhi is pinned to the 2024.04.23 version. Happy to put in a pull request if there is interest.

At the time it was due to this bug, not sure if it has been fixed yet: https://github.com/oxpig/ANARCI/issues/17
However, you can update ANARCI after installing biophi and it should work - just no guarantees :)

Thanks! Seems like the bug still exists in the latest conda version. I did notice that passing "human" to the use_species flag seems to fix the example in the linked issue (mouse seems to work as well). The use_species flag was updated going from the old version to new version so its possible that the default behavior was updated. I will have to do some digging around to confirm.
I did also run the example using ANARCI installed directly from the repository and it seems that the bug has been fixed. The default has been updated to use human and mouse as the allowed species. So, a new ANARCI conda package based on the current build should fix the issue.
Closing this ticket as there is already a relevant open ticket (original ticket)


Local files not working on iOS

I'm trying to use react-native-video on iOS to play previously downloaded mp4s.
Android and HTTPS links on iOS work fine, but playing local files is not working.
Any suggestion/idea how to resolve this issue?
Example:
this.props.source is:
{uri: "file:///Users/test/Library/Developer/CoreSimulator/Devices/4DF4423B-11DE-434B-BFAF-5EB196F9A44D/data/Containers/Data/Application/387BE037-28BB-41C0-BA45-45250675AF27/Documents/data/ftp/test/video/SampleVideo_1280x720_2mb.mp4"}
<Video
ref={component => this._videoPlayer = component}
source={this.props.source}
onLoadStart={(err) => console.log("Video load start: " + JSON.stringify(err))}
onLoad={(err) => console.log("Video load: " + JSON.stringify(err))}
onError={(err) => console.log("Video error: " + JSON.stringify(err))}
onProgress={(progress) => this.onSetTime(progress)}
/>
"react-native": "0.49.3"
"react-native-video": "^2.0.0"

Can be closed.
Try to use "encodeURI("file://" + video.path)" instead of the raw path.

Can be closed.
Try to use "encodeURI("file://" + video.path)" instead of the raw path.

It does not work.

This issue still persist @eliasws
It doesn't work

@Aycom366 Sry, cannot help here as I haven't worked with this library for seven years.

Can be closed.
Try to use "encodeURI("file://" + video.path)" instead of the raw path.

not working


python cells

Fix this...  These can be really powerful when hacking with other python based libraries, such as the arbotix dynamixel drivers.

This is fixed in the upcoming new schedulers.  It is cool.

\o/


Lack of support of XML in generated Spock tests

From @marcingrzejszczak on May 13, 2015 19:33
Copied from original issue: Codearte/accurest#69

XML Assert is ready https://github.com/marcingrzejszczak/xmlassert . We're waiting for @tomakehurst to add XPath support for WireMock. In the meantime we can support everything but regexs

I promise I haven't forgotten!

It's been a long time since this issue was set and nobody was asking for it so let's close it for now.


Twisted error handlers don't work as expected

If the error handler doesn't explicitly re-raise the error or return it from the function: Twisted considers the error 100% handled and proceeds to fire any callbacks up the chain. This is similar to Python's try ... except in a way but the result is we have some callbacks that are firing when they really shouldn't be.
I've fixed the monitor success handler but there are probably other error handlers that are wrong.

Yes they do.
$ cat twisted_defer.py
from twisted.internet import defer

def on_success(result):
    print("SUCCESS CALLED:", repr(result))

def on_error_handled(err):
    print("ERROR handled:", repr(err))
    # error is considered handled if error is not returned

def on_error_unhandled(err):
    print("ERROR unhandled:", repr(err))
    return err
    # error is considered unhandled if error is not returned

# handle error
print("Handle error")
d = defer.Deferred()
d.addCallback(on_success)
d.addErrback(on_error_handled)
d.errback(Exception("error"))

# handle error
print("Handle error")
d = defer.Deferred()
d.addCallback(on_success)
d.addErrback(on_error_unhandled)
d.errback(Exception("error"))

$ python twisted_defer.py
Handle error
('ERROR handled:', '<twisted.python.failure.Failure exceptions.Exception: error>')
Handle error
('ERROR unhandled:', '<twisted.python.failure.Failure exceptions.Exception: error>')
Unhandled error in Deferred:

Traceback (most recent call last):
Failure: exceptions.Exception: error


how can i play the video with Alpha channel

I want to overlay a video with Alpha channel on a background image , how should I set it? Can you provide samples code for play video with Alpha channel? thanks

The vlcplayer is just a image, you can use the BitmapEffect or handle the bitmap data handly in decode event.


Convert calendar to Persian

Is it possible to convert date to Persian date?

@rezafaraji93 I'm not aware on how the Persian date differs from regular one, could you provide some details?

I mean converting date from Gregorian calendar to Solar Hijri Calender.

@rezafaraji93 Thank you for your patience. Unfortunately, I don't know how I can implement such conversion with current library structure. If you have an idea, feel free to contribute.


build offline documentation, how to?

I've noticed the API doc in https://www.tensorflow.org/versions/master/api_docs/index.html is not complete. Is there a way to build a nice HTML based API locally that contains a complete documentation?
Basically the question is: how is this https://www.tensorflow.org/versions/master/api_docs/index.html being automatically generated? What's the magical command?

The gen_docs_combined script should build markdown, but I'm not sure about HTML.  @martinwicke?

You cannot currently build html, but you can build the complete set of markdown, using gen_docs.sh.

Closing, please ping if you have trouble with gen_docs.sh.

Seems like there's no more gen_docs.sh file. What's the proper way to build documentation?

Cc @wolffg.

See here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/community/documentation.md

Trying the "Generating docs and previewing links" section, I end up with this error:
INFO: Running command line: bazel-bin/tensorflow/tools/docs/generate '--src_dir=/Users/daze/PersonalGDrive/Hacks/ML/tensorflow/tensorflow/tensorflow/docs_src/' '--output_dir=/tmp/tfdocs/'
WARNING:tensorflow:VARIABLES collection name is deprecated, please use GLOBAL_VARIABLES instead; VARIABLES will be removed after 2017-03-02.
Writing docs for tf.abs (<function abs at 0x10b19fd08>).
Writing docs for tf.contrib.learn.monitors (<module 'tensorflow.contrib.learn.python.learn.monitors' from '/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/contrib/learn/python/learn/monitors.py'>).
Writing docs for tf.estimator.Estimator (<class 'tensorflow.python.estimator.estimator.Estimator'>).
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/tools/docs/generate.py", line 49, in <module>
    sys.exit(doc_generator.build(flags))
  File "/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/tools/docs/generate_lib.py", line 473, in build
    write_docs(output_dir, parser_config, yaml_toc=self.yaml_toc)
  File "/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/tools/docs/generate_lib.py", line 127, in write_docs
    f.write(pretty_docs.build_md_page(page_info))
  File "/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/tools/docs/pretty_docs.py", line 39, in build_md_page
    return _build_class_page(page_info)
  File "/private/var/tmp/_bazel_daze/dbc852bfd1d7b33406bd81c3c9000a9d/execroot/tensorflow/bazel-out/local-py3-opt/bin/tensorflow/tools/docs/generate.runfiles/org_tensorflow/tensorflow/tools/docs/pretty_docs.py", line 126, in _build_class_page
    parts.append(h3.format(**method_info.__dict__))
AttributeError: '_MethodInfo' object has no attribute '__dict__'
ERROR: Non-zero return code '1' from command: Process exited with status 1.

Is this still the official answer? Thanks in advance for the help.

It looks like you are running this in python 3. I have not converted the doc generator to be compatible with python3. Some of these issues would be easy to fix, but that would only lead to you finding more issues. Since inspect is seriously different and codegen is very old, it may be a bit of an endeavor. I'd welcome anyone who wants to take this on, but it's not a priority for us at the moment, we use py2 to generate the docs.

Thanks, using Python 2 makes more progress.
Issue 1:
But the output still isn't error-free. gist with errors.
Issue 2:
If the above is fine output, and I can indeed look at the generated results, then...
Are we sure that this generator generates docs the same way as they appear on say https://www.tensorflow.org/api_docs/python/tf/contrib/learn/Evaluable ?
While looking into #9313, I generated the docs as described at https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/community/documentation.md via
bazel run tools/docs:generate -- \
          --src_dir=`pwd`/tensorflow/docs_src/ \
          --output_dir=/tmp/tfdocs/

but the output markdown for this file does not have the same problem as featured on that site.
The code in the master branch and the code in r1.1 are also the same there, so it's not a versioning difference.
Thanks in advance - hope I just made a trivial oversight

@MarkDaoust for expertise on the doc generation scripts.
It is surprising that so many doc references are not found. You appear to be giving the correct doc_src directory with guides.
Mark, is there a problem with the documentation documentation?

It looks like you've got one too many tensorflow in your src_dir path.
It turns out that os.walk doesn't throw an error for a non-existant directory.
Fixes are in the pipeline for that example line of code, and adding clear error-messages. to the doc-generator.


Update Action to use Node.js v20

Node.js 16 actions are deprecated.
Updating action to use Node.js 20.
Link: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
Fixes #357

@YanaXu @MoChilia
Any objections to getting this Action updated to using Node.js 20?

Hi @j-chao , we do want to upgrade the node version, together with other old node module versions. But it's not a easy update. It asks for full tests and all necessary checks. We'll keep this PR open for a reminder. Thanks for your work.

There is already an open PR with this change here https://github.com/Azure/login/pull/392/

This PR seems incomplete @j-chao: https://github.com/search?q=repo%3AAzure%2Flogin 16.x&type=code

@FlorentATo I've explained the same comment in another PR in a comment. Those node versions don't have anything to do with this action's node version. It is their own workflows and they can be updated independently as they are not used by the action when you run the action in your repo.

Those node versions don't have anything to do with this action's node version. It is their own workflows and they can be updated independently as they are not used by the action when you run the action in your repo.

@eikooc There are some npm run test that should run with the same version that is going to be used to run the action when released. I see some integration tests are run by executing the action, so those parts do use the node20 to test it, but I expect the unittests would cover some additional cases.

@j-chao Can you update the below lines of code as well?
Basically search for 16.x and replace with 20.x

https://github.com/Azure/login/blob/master/.github/workflows/azure-login-negative.yml#L27
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-negative.yml#L90
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-negative.yml#L351
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-positive.yml#L26
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-positive.yml#L122
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-positive.yml#L262
https://github.com/Azure/login/blob/master/.github/workflows/azure-login-pr-check.yml#L23
https://github.com/Azure/login/blob/master/.github/workflows/ci.yml#L26
https://github.com/Azure/login/blob/master/.github/workflows/markdownlint.yml#L14

@microsoft-github-policy-service agree

When using an updated to node20 version got the error

Did anyone faced it too?

Hi @AndrewEhlo, please avoid running azure/login from the master branch. The built files will be only included in the release branch. Kindly wait for the new release. Thank you.

Hi @MoChilia, do you have an idea on when this will be released?


[Build] Very basic support for building swift-driver

This is directly adapted from the SourceKit-LSP build. It doesn't get us any closer to a cross-compiled or two-stage build, but hopefully it's an ok starting point. Marking this as a WIP to get feedback on the general approach, and because I've never worked with the build system much in the past so it's possible there are serious issues I'm overlooking. The one issue I am running into is how to correctly use the system Foundation instead of corelibs-foundation on macOS.
https://github.com/apple/swift-driver/pull/59 has the corresponding swift-driver changes

Can one of the admins verify this patch?


[PDI-14979] - Add new method to DatabaseInterface in Kettle Core

added new extending interface
added general and Oracle specific implementation
added unit tests

@deinspanjer, review it please

This looks great, and I'll be happy to merge it, but I need to check with people managing the current release first to make sure when we are clear to start merging in non-release work.

Hi, @deinspanjer.
Just to remind. Can't you merge it now?
Thanks.

Yes, I can merge it now, but I had to merge a big nasty PR before it and there are now a couple of conflicts.  Could you please take a look at them and I'll merge it then?

@deinspanjer, I rebased the branch and squashed the commits.
Recheck, please.


Default Values for IdentityUser

I've realized that the configuration for the default entity IdentityUser
https://github.com/aspnet/Identity/blob/master/src/EF/IdentityUserContext.cs#L134 doesn't have any configuration for the PhoneNumber and other values.
I faced a few performance lacking using varchar(max) sizing.
Reference : https://sqlperformance.com/2017/06/sql-plan/performance-myths-oversizing-strings
I think it'd be a good idea use some standard as default to avoid users that don't care or don't know about it have to deal with those kind of throughput issues and every once can configure like they prefer (as it is possible now) but IMO is a quite dangerous letting this as default

Acording this with For full international support, you'd need a VARCHAR of 15 digits.
https://en.wikipedia.org/wiki/E.164
Thanks.

any news ?

I ran a few tests and it seems that these length values could work without issues:
PhoneNumber => 15
PasswordHash => 84
SecurityStamp => 32
ConcurrencyStamp => 36

@KevMorelli Yeah I'm aware of that.

I will check the other tables before making a pull request with the fixed migration for the templates because there are many fields with maximum length.

@KevMorelli I think we should wait until some one of the team answer this Issue, the PR will be a quite complicated as will be a breaking change.

@HaoK @blowdart I think there is value here, and for 3.0 we should probably bite the bullet and do schema cleanup, but clearly not before 3.0 given where we currently are. Suggest we triage this to 3.0.

@ajcvickers yes I think the same if not it will force everyonce to run a migration.


resolves 38: add git repo info to source command

Uses exec to send commands to bash shell to fetch local git repo information

resolves #38


Unable to set min and max of x axis.

Hello,
I've searched the documentation and I don't see any way to set the min/max of the X Axis. I do know setting min and max works on the Y Axis.
For example, I want a scatter chart that shows the past 15 days on the x axis. Something so simple should be doable but I don't see anything in the documentation for this.

Hey @ThinkSalat, Chartkick doesn't have its own option for this, so you'll need to use the library option. Happy to look at a PR for xmin and xmax options.

Just needed this for one of my own projects, so added it for Chart.js. Still happy to accept a PR for other libraries.


Look over: test and make sure everything works and looks good

When we have finished implementing our features and are in the last week of the project, make sure everything works and looks good.
Make sure all main features and views (pages) work on Android. Good things to look at:

UI looks good
Locations
New Location
Edit Location
Map features
Saving to DB
Fix any grammatical issues and typos

I’d recommend to take out ‘route’ from the locations component as a props since we never used it.

@angelicrf, not a huge concern right now, but good point. Let's not close this issue yet until everyone has said the app works well for them and looks good. I know @Mike-Diaz and you have already ran the latest code and seem to be ok with the current app. I would like @Silicob's ok with the current app.

This looks good to me.


Duplicated child elements on cucumber test run

Environment

(?) E2E-B

Prerequisites

Clean e2e-b environment
uploaded testdata
registry reloaded

Steps to reproduce

run cucumber tests few times

Current behavior

After running cucumber tests few times' child elements for asset id "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd"
are duplicated in database to that point that when requesting assets, pod is restarting without of memory exception.

Expected behavior

there are no duplications of child element for given asset ID after running cucumber tests

https://jira.catena-x.net/browse/TRACEFOSS-2636

Hi @ds-ext-sceronik do you remember if this has been fixed already?

@ds-mwesener I dont know to be honest. quick test to verify is to run integration tests once and then again and lookup database orget all assets by the endpoint and check if there are duplicate child elements in the list of child assets.

https://jira.catena-x.net/browse/TRACEFOSS-3115:
Error on: Then I check, if quality alert has proper values after "approve"
TRACEFOSS-1863
[BE] Check correct processing of CLOSURE of quality alerts
Error on: Then I check, if quality investigation has proper values after "approve"
TRACEFOSS-1861
[BE] Check correct processing of CLOSURE of quality investigation
Error on: Then I check, if quality alert has proper values after "approve"
https://jira.catena-x.net/browse/TRACEFOSS-1545
[BE] Check correct processing of DECLINATION of quality alerts
Error on: When I acknowledge quality investigation -> 504 instead of 204
TRACEFOSS-1222
[BE] Check correct processing of ACCEPTANCE of quality investigation
Then I check, if quality investigation has proper values
Then I check, if quality investigation has proper values (after acknowledge -> timeout)
Then I check, if quality investigation has proper values (after acknowledge -> timeout)

Outcome: I have executed the e2e tests multiple times sequentially and in parallel. It turned out that the initial error with duplicated child elements is already solved. Other than that our E2E Tests are often failing because of edc exceptions. Specially if we send multiple negotiation requests to the edc sometimes it can not handle the request and throws an exception.
As currently trace-x does not store the error into the database, the e2e test is not able to retry sending the notification.
Therefore I created a follow up story: https://github.com/eclipse-tractusx/traceability-foss/issues/606

Hi @ds-alexander-bulgakov please have a short review. Thanks

Hi @ds-mwesener,
after on the sender side (e2e-a) no duplicate childs could be found but on the receiver (e2e-b) there are too much:

The amount did not change after several executions of our cucumber-tests but still there are too much childs for one asset. Could you please have a look? Thank you!

The references of the as_planned entities were incorrectly set. Those have been removed. Issue is not reproducable anymore. Currently waiting for pull request review.

Hi @ds-alexander-bulgakov issue has been merged and deployed on e2e-a. FYI

Hi Max,
the childs are not created anymore, therefore this ticket is ready for PO-review. FYI @jzbmw. Thank you!


tellform.com - Contact is broken

Cant use the contact form at tellform.com. Everytime stopped at that f***ing "Email Protection
You are unable to access this email address tellform.com". :-/

@jazzcrack sorry about that. I'll fix that today

@jazzcrack this has been fixed.  Sorry about the delay.


How to reflect updated Changes on UI instantaneously.

I have a trello like UI / app with list of tasks to be done. Same list is opened by another user.
If I change the underlying mondo object at one place it should instantaneously reflect the change in another view/ browser:
What technologies I need for this ?
Socketio, redis. What else ?
I know it's not directly linked with meanjs but I love this community & they might have resolved this in the way it works well with meanjs backend.

Socket.io and sounds like a job for RethinkDB's real time changes.
@jpca999 we welcome community members to share and post but the GitHub project should be used for mean.js library related issues. For any other general questions or even questions surrounding mean.js you should probably leverage stackoverflow or such. It's hard otherwise to keep track of the issue queue for the project.

got you, appreciate it @lirantal    So if I use ReThinkDb, I dont have to use Redis ?

RethinkDB has the real-time support builtin already.
Otherwise some kind of polling Mongo + Socket.io should do the trick.

Hey, done with Mongo + Socket.io on our side, go feedback for the moment, no problems.
Never try ReThinkDb for the moment.

I appreciate it.
J

On Apr 10, 2017, at 2:52 AM, Pierre Brisorgueil<EMAIL_ADDRESS>wrote:
Hey, done with Mongo + Socket.io on our side, go feedback for the moment, no problems.
Never try ReThinkDb for the moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Update README.md

Please don't allocate a new stringholder on each bind call. Take a look at https://github.com/mikepenz/FastAdapter/blob/feature/v4/library-extensions-ui/src/main/java/com/mikepenz/fastadapter/ui/items/SingleLineItem.kt#L36

I still don't understand what to do. The code in the readme doesn't work. Is SingleLineItem an example I'm supposed to follow?


"add range" doesn't work when manually entering page number

If you select "add range", select the start image, then manually type in a page number, it exits the "add range" function.

This will no longer be an issue with the new way of selecting images.


Merge ctx and ts packages into react-querybuilder package

Attempt to fix #502 for good by merging ctx and ts packages (back) into react-querybuilder package.

@jakeboone02  v6.3.0-alpha.0 works fine for me, i have tested it. can you please release it?
Thanks

@farhanmalhi-dbank If v6.3.0-alps.0 works for the others that have reported problems with v6.2.0, then v6.3.0 will be exactly the same. So feel free to use the alpha for now. I'll need to check with the others before releasing v6.3.0 proper.

@jakeboone02 Thanks


bug: Ctrl click don't clear when restarting / switching exercises

For example: click on "A", click "RESTART EXERCISE", ctrl-click "A", 'From formula "A", formula "A"' will be in the "Available deductions".

Fixed, thanks.


How to optimize only a part of instruction?

Hi,
How can I customize the prompt structure in DSPy and use teleprompter to optimize only a specific part of it? For example, my custom prompt is:
## Task
(this is the task description)

## Tips
(Tips: 1. xxxx; 2. xxxx)

How can I use an optimizer, such as copro, to optimize only the Tips section?
Thank you!

Im having a similar challenge when adding few shot examples. Specifically I have inputs to the model that are always identical and I would like to hide them from the examples that are provided to the LM during inference and training, since it costs a lot of tokens having unnecessary inputs be used during training (multiplied by number of examples showed). Would be nice to be able to specify which parameters should be "tuned".

@YunpengZhai consider passing the task description as a field, that way you control it, and the optimizer can't change it.


⚠ SceneTime has degraded performance

In 3da32c9, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 6843 ms

Resolved: SceneTime performance has improved in ddf4967 after 24 minutes.


RealTimeL4CasADi Approximation Update

Hi Tim,
Many thanks for this library! I am solving a Nonlinear TO problem using casadi where a PyTorch MLP is used as one of the constraints. Part of the input to the network are the decision variables and the other part are coming from a predefined trajectory. I am not satisfied with the solution speed with the L4CasADi model so I am trying out the Taylor approximations with RealTimeL4CasADi. I am having a hard time understanding from the examples how can I update the approximation every time I solve the problem.
My code structure is as follows:

Construct the RealTimeL4CasADi and casadi functions using get_sym_params
x_sym = ca.MX.sym(in_N)
f_order2 = l4c.realtime.RealTimeL4CasADi(f, approximation_order=2)
y_sym = f_order2(x_sym)
f_casadi_function = ca.Function("f", [x_sym, self.f_order2.get_sym_params()], [y_sym])

Construct the optimization problem once at the beginning of the code (I am using the Opti stack for this):
for j in range(N):
    network_input_mx = ca.vertcat(mx_param, mx_decision_var)
    consraint = f_casadi_function(network_input_mx, f_order2_params) (need to use f_order2.get_params(np.array(?)) first)
    constraints.append(constraint)
for j in range(N):
    self.opti.subject_to(constraints[j] > min_value)

Each loop of the code:
while True:

Set numerical parameters of new predifined trajectory and initial guesses for decision variables
    opti.set_value(mx_param, param_value)
    opti.set_initial(mx_decision_var, decision_var_init)
Solve the problem
    opti.solve()

My issue is that it's not clear to me how to update the approximation after the initial construction of the optimization problem in 2. In order to construct the constraint, a f_order2_params had to be computed with some numerical value, since f_order2.get_params() expects a numerical numpy array (right?). However, at that point, I don't know the trajectory apriori (since it changes every loop). For now I set it to a zero numpy array, but how can I update the approximation before each loop when I get a new trajectory and before each opti.solve()? I think it would make sense to update the approximation based on the input trajectory for the known parts of the network input and the initial guess of the decision variable as the variable part of the network input.
Hope that my question and code are clear.
Best regards,
Abdelrahman

Hi Abdelrahman,
As far as I understand, your problem is that you struggle with what to pass as set-point to get_params before your first solution iteration?!
The answer to this is highly dependent on the structure of your optimization. If the input to your L4C model is just the current state, you should have this readily available. If the input includes the decision variable (as it seems to be in your case), the following (non-comprehensive) options come to my mind:

Initialize with zeros (as you do) - There is a high chance that the optimization will not achieve the desired output if the actual set-point is far from zero.
If you have prior assumption in which range the input should be initialize it with a guess.
Solve only the first iteration in full (with L4CasADi instead of RealTimeL4CasADi) and use this first solution in subsequent RealTimeL4C loops.

Let me know if this helps.
Best
Tim

Hi Tim,
I think my issue is not what to initialize the approximation with, but more how to do it within the structure of the code.
I construct the optimization problem symbollicaly only once at the beginning of the code given that I need no numerical values for any parameters (step 2). I can later just update any values that are considered as inputs/parameters online repeatadly by setting their value (which changes each loop) without having to rewrite the symbolic problem again (step 3).
However, with the need to envoke get_params to compute the params for the approximated function (at the same step mentioned above), I need to have a numerical set-point apriori. This prevents me from being able to update the set-point given that the problem was already constructed once at the beggining (with some numerical set-point, regardless of its value).
The only way that seems possible to me to update the approximation using the params computed with get_params online (repeatedly) would probably be to just reconstruct the whole symbolic optimization again each time with a new set-point. That just seems inefficient to me unfortunately.
Hope the question is clearer now.
Best regards,
Abdelrahman

Hi Abdelrahman,
I am still struggling to understand the problem exactly.

I can later just update any values that are considered as inputs/parameters online repeatadly by setting their value (which changes each loop) without having to rewrite the symbolic problem again (step 3).

The approximation parameters are a input/parameter to the function:
f_casadi_function = ca.Function("f", [x_sym, self.f_order2.get_sym_params()], [y_sym])

However, with the need to envoke get_params to compute the params for the approximated function (at the same step mentioned above), I need to have a numerical set-point apriori.

get_params will compute the numerical approximation parameters from a numerical setpoint. These numerical approximations can then be passed as parameters to the symbolic graph without re-creating it.
Thus the process would be roughly:

Create graph symbolically with get_sym_params as parameters (as you do)
While
2.1) Solve problem with (initial) approx parameters as parameters to symbolic graph
2.2) Extract numerical setpoint from last solution
2.3) call `get_params' with new set-point as argument to get new approx parameters

If this is still not what you meant maybe you could provide a minimum (not working) example of what you are trying to do?
Best
Tim

Hi Tim

These numerical approximations can then be passed as parameters to the symbolic graph without re-creating it.

Yes I missed that! It's as simple as creating an Opti parameter (with size the number of the Taylor parameters) and just updating it each time with
opti.set_value(f_order2_params, f_order2.get_params(np.zeros(...)))
It works now!
Thanks a lot,
Abdelrahman

Awesome, feel free to close the issue if it is solved!
Best
Tim


Charts should be able to read the permissions associated with the installation user who is invoking Helm

Feature request: As a Chart author, I would like to be able to access, through an object like .InstallationUser or .Permissions, the RBAC configuration associated with the installation user i.e. the k8s service account user who has invoked e.g. helm install.
In my particular case, this is because I'd quite like to save that info to a ConfigMap for use in debugging a failed installation. This is useful because in some cases, users run the installation with a service account that doesn't have permission to create certain types of objects. Debugging this can be non-trivial, so a feature like this would be great.
My perspective is from a software vendor who distributes their product for on-prem installation, via a Helm chart, and supports customers in successfully installing that product in their infrastructure.
From reading the docs, I don't getting this information in the chart is possible today. At least, there is nothing written about it. There is the rbac doc, but this doesn't contain anything on the topic of inspecting or debugging permissions issues.
Let me know what you think of this,
Thanks,
Rob

You could probably use the lookup function in a similar way to how https://github.com/rajatjindal/kubectl-whoami/blob/master/pkg/k8s/tokenreview.go does it.

Since a suggestion was given and there was no further response, I'm going to assume the suggestion solved the problem and close this.


update comments and added check for double mount bug

slight tweaks to comments

This was ran and passed on http://jenkins.rcb.me/job/devstack-test/1/console

updated devstack-test to be parameterized - passed on http://jenkins.rcb.me/job/devstack-test/3/


Do option supports changing capabilities in a run time manner?

Hello, at first, I have tried to pass in capabilities directly as below with grunt webdriver:test
    // Define the capabilities
    switch (env) {
        case Constants.ENVIRONMENTS.DEVELOP:
            opts.capabilities = [Constants.CAPABILITIES.PHANTOMJS];
            break;
        default:
            break;
    }

    // where somehow the config will be like this in grunt
    // Conversion is good as other option likes `--suite` and `--spec` can be overrided properly
    grunt.initConfig({
     webdriver: {
       test: {
          options: {
             ....
             capabilities: [PHANTOMJS], // Default is [ PHANTOMJS, CHROME ],
             ....
           }
       }
     },
    })

However, it does not work. I need to overwrite the capabilities by writing another file.
'use strict';

var Constants = require('./constants');
var cfg = require('./wdio.conf');

cfg.config.capabilities = [
    Constants.CAPABILITIES.PHANTOMJS,
];

exports.config = cfg.config;

And change the path like this in order to make things work as I expected
    // Define Path to the config file by environment
    switch (env) {
        case Constants.ENVIRONMENTS.DEVELOP:
            opts.configFile = util.format(
                '%s/wdio_dev.conf.js',
                Constants.CONFIG_ROOT
            );
            break;
        default:
            opts.configFile = util.format(
                '%s/wdio.conf.js',
                Constants.CONFIG_ROOT
            );
            break;
    }

Am I do anything wrong about that?

You can only pass in these args as your grunt options. If you want to use flexible capabilities I would recommend to use environment variables and set the capabilities in your wdio.conf depending on these.

Oh, thanks.


Update font-hasklig to 0.9

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Merged as f5c32f06d4ac5db65a210d3936ce50ea61a57a31.


feat(p-i): add reserve direction spin animation to PI

To Reviewers

[ ] Skipping review is not a problem (style, chore ONLY)
[x] Not that difficult

Type of Change

[x] New feature
[ ] Bug fixes
[ ] Feature improvement

[ ] These changes require a usage change

[ ] Others (performance improvement, refactoring, CI/CD, etc.)

Checklist

[x] Updated Storybook documents
[x] Tested with console(if usages are changed)

Description
https://user-images.githubusercontent.com/50662170/206394517-858ea2f6-451c-4efd-9681-3e7d2a253d72.mov
Things to Talk About

:tada: This PR is included in version 1.1.0-beta.464 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix no attribute error which is thrown when using multi step return

When using sac with n_step_return > 1 an error is thrown:
File "/home/alex/rlpyt_fix/rlpyt/rlpyt/runners/minibatch_rl.py", line 240, in train
opt_info = self.algo.optimize_agent(itr, samples)
File "/home/alex/rlpyt_fix/rlpyt/rlpyt/algos/qpg/sac.py", line 142, in optimize_agent
self.replay_buffer.append_samples(samples_to_buffer)
File "/home/alex/rlpyt_fix/rlpyt/rlpyt/replays/n_step.py", line 57, in append_samples
self.compute_returns(T)
File "/home/alex/rlpyt_fix/rlpyt/rlpyt/replays/non_sequence/time_limit.py", line 49, in compute_returns
self.samples_timeout_n[idxs] = (self.done_n[idxs] *
AttributeError: 'TlUniformReplayBuffer' object has no attribute 'done_n'
I think this is just because the variable wasn't renamed here to samples_done_n

Looks good, thanks!


TODO: Configure travis to build ipa's automatically

Fast bug fixes

Great idea 👍

<EMAIL_ADDRESS>

oh shit, is this what that travis.yml thing is for that i see everywhere?

yeah

@lolman8776 do you even english bro?

oooh nice!

effort

that's why nobody has done it yet

I'll work on this.

Although, I'm not sure I can do this with a free iOS dev account.

I am using jenkins ci  https://jenkins.io/index.html for iOS apps in my company.

https://travis-ci.org/Aaahh/yalu102/jobs/196461314
I tried, someone know what to do from here?

Got it working, https://travis-ci.org/Aaahh/yalu102/jobs/196469355
will send pull request soon

https://github.com/kpwn/yalu102/pull/258

What's the point though. You still need to compile/change BID&re-sign it to get it working

Cydia impactor resigns


Added function to serialize data from libra testnet explorer

I've added jsdom dependency.

It still has some bugs that we need to inquiry account_state first then use sent/received state to query events, but I'll merge for now then fix later.


Backport of #1516 to release-0.8

What this PR does / why we need it:
Backport of https://github.com/kubevirt/kubevirt/pull/1516 to branch release-0.8
Release note:
Fixed virtctl vnc for Openshift CRI-O

retest this please

ci test please

ci test please


Implement bindings to only use supplied root certificates for validating the server

Implements a way to distrust the system cert store on all backends.

On macOS, this just uses trust_anchor_certificates_only.
On Windows, this uses a custom verify_callback that manually checks that the root cert exists in the user-specified root certs.
On OpenSSL, this manually creates a new X509Store with the user-specified root certs and sets it with set_verify_cert_store. This is the one I'm least sure about -- it is probably more correct to avoid calling set_default_verify_paths, but that currently happens on builder construction, and moving where that happens might be a breaking change (as set_default_verify_paths reads environment variables, which are set process-wide).

Closes #41.

@sfackler would have a chance to take another look at this?

Thanks!


Simplify Install Task & Precompile Initializer

moved the if to be done inline so now instead of adding 3 lines, it adds 1 line to the layout

@kirillplatonov let me know what you think of these changes 🙂  I hope you are well
I also wonder whether we could somehow get the js include tag to not be required in the app layout as realistically we want it in all the layouts (my example being the devise layout) so we either should be looping over all the layouts and inserting it to all of these or somehow get this outside of the app layouts 🤔🤷♂

@Ancez one-line installer looks good to me 🙂
As for alternatives for including a livereload tag in the layout - I'm not sure about that. We could probably add rack middleware or after_action in the controller that will modify output HTML and inject script tag automatically.

@Ancez thanks for the work on this PR. I have to close it as another PR having similar changes has been merged: https://github.com/kirillplatonov/hotwire-livereload/pull/22


OCPBUGS-14824: library-go: ApplyStorageClass() must not ignore `Res…

…ourceVersionofrequired` arg
A caller of ApplyStorageClass(), for example syncStorageClass() from pkg/operator/csi/csistorageclasscontroller/csi_storageclass_controller.go, may want to make decision about new state of StorageClass based on a state of objects it received by:
	existingSCs, err := storageClassLister.List(labels.Everything())

In this case, to avoid races (like one explained in https://issues.redhat.com/browse/OCPBUGS-14824), it's crucial to pass ResourceVersion from the caller to ApplyStorageClass().
If required arg of ApplyStorageClass() has ResourceVersion set, then it must fail update operation if newly read StorageClass has newer version.
The caller who is interested in the behavior explained abobe (syncStorageClass() from pkg/operator/csi/csistorageclasscontroller/csi_storageclass_controller.go) will set ResourceVersion properly.
Any other caller (who doesn't set ResourceVersion) won't be able to overwrite default StorageClass annotation if it is already set.

@openshift-storage
/label docs-approved
/label px-approved

/jira refresh

/jira refresh

/assign @jsafrane

/retest

/jira refresh

/lgtm
/approve

@soltysh The PR was reviewed, but it needs approved from owners to proceed. Can you please have a look?

/assign @soltysh @deads2k


Cupcake website page creation - Patterns/Lead Space page

User Story

As an IBM.com page creator

I need to: have a good understanding of the components, patterns, etc

so that I can: do my day to day work without confusion.

Additional information

Cupcake website page development priority can be viewed via #1664.
Lead Space page on v19a website Components section can be viewed here.
Carbon does not have Lead Space as a component or patterns.
(Anna mentioned - "Only the gatsby template has that. We don't have that for product.")

Task

Collaborate with Lara for the content creation.
Content draft box doc can be found here

Acceptance criteria

[ ] Content and design created and reviewed with the stream lead, the developer and Wonil.
[ ] Shared with the Carbon and IDL team for feedback.
[ ] Content and design accepted by Wonil and Linda.
[ ] Create the dev. issue for coding as the next step.

Storybook for Cards = https://deploy-preview-78--ibmdotcom-patterns-react-experimental.netlify.com/?path=/story/leadspace--default-with-image

@RobertaJHahn FYI - We need to move this to Sprint 23.

Content draft for Lead Space:
https://ibm.box.com/s/gyvd3zvxl4vdf1rk0u2y65obceg1c2mp

Hi @larahanlon2 , I know you need to add image breakpoint notes still, but if there's anything I can start the publishing process with, please let me know. :-)

@JennySanchez snap. I just added that info 20mins ago!
@wonilsuhibm do you think Jenny can start publishing what is in the Box note? We could continue to edit and refine but it might be helpful to see it in Gatsby as we do that?

Update: Content reviewed with Jacob and will start the publishing process today.
@RobertaJHahn Sprint 23 ends tomorrow. Please change the Milestone label to Sprint 24 - FYI.

@JennySanchez issue moved to sprint 24

Items to discuss with Lara:

Imagery/Usage: setup

Border for the images
(should we add a border or not? If yes, Gray 30 (c6c6c6)?
( see Jacob's Sketch file for reference)

Follow up on "Specifications" images.
(need updated image with white background)

Style options section. Should we take out "Style option tile and make Left-aligned as H2 and Content guidance as H3.

@jacobottesen-dgc  FYI - Discussion scheduled for 12/09 Monday.

@jacobottesen-dgc Can you make a review outcome update here?

@JennySanchez I talked with Lara and here are the outcomes:

She will get the spec images by EOD
She wanted left aligned to be h2 but add style options to the end so "Left-aligned style options"

@jacobottesen-dgc @JennySanchez here's my markup of the current page. 99% of this was covered with Jacob during our call (and thank you Jacob for making some changes already!). Please take a look and let me know if we need to discuss.

Is there any way we can include anchor links at the top, like before?

@larahanlon2 Jenny said that Carbon is planning to remove the anchor links so we will not have them at this time. Reach out to her for more info.
cc. @JennySanchez

@larahanlon2 We are not using the anchor link feature in Cupcake v1.0. Some of the changes are good to go but some of them are not what we can control with the code. Let's chat.

This task is completed. Items need to be fixed are recorded in the dev fix issue #63.


Add video to readme

Hi @h-unterp Thank you for the videos, they will certainly give more visibility to the documentation!


Attempt to update auth from authorization code to implicit grant triggers enum error ('token' should be 'implicit')

Describe the bug
Changing from authorization code Oauth flow to implicit grant triggers an error:
InvalidParameterException: 1 validation error detected: Value '[token]' at 'allowedOAuthFlows' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy enum value set: [implicit, client_credentials, code]]
To Reproduce
Steps to reproduce the behavior:

Create react app with amplify with authorization code oauth flow
Publish
Update auth to change to implict grant
Publish

Expected behavior
Upates successfully and changes to implicit grant
Desktop (please complete the following information):

OS: Ubuntu 18.04
Browser Chrome
Version 73.0.3683.103 (Official Build) (64-bit)

So this is happening even if initially created with implicit grant as well.
Seems there's a problem with trying to set the AllowedOAuthFlows value to 'token' when it should be implicit.

https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-category-auth/provider-utils/awscloudformation/assets/string-maps.js#L435
There's the problem.


Add show_frame option for bokeh plots

Currently the show_frame option that's available in matplotlib is not implemented in bokeh. This suppresses the outline by setting it to zero alpha.
show_frame=True

show_frame=False

Looks good. Merging.


V11 not yet pushed to npm

Main issue here is that the latest published version of tonic is not compatible with the latest version of components

Version 11 has been published to NPM. So has version 12


TakeScreenShot of WebElement

[santoshsarma jayanthi]
If page has internal scroll (Not entire page scroll) how to take the full screenshot of the part which has internal scroll? (Now its taking only visible area / page level scrolling area but not internal scrolling parts.)
Even if I scroll it will capture the visible area only.
For example, you can find the internal scroll in gmail site (see attached screenshot)
. Any thread which has more replies.

Well, I am not sure that Selenium webdriver allows it.
I need to investigate it.

It seems that it was implemented some time ago.
We have 2 methods in Selenide:

$.screenshot()
$.screenshotAsImage()


Ledger state storage

The consensus layer is responsible for storing the ledger state.

shapshot older than k (simply one big CBOR file streaming to disk)
two snapshots: delete older when newer is "stable"
write out with checksum, verify on reading
no fsyncs

Declaring this done, few outstanding issues for remaining tasks (currently #367, #368).


Fix spamming footsteps for slow mode

This PR fixes an issue with last footsteps tick compare during slow motion. By doubling the current frame counter and doing an equals compare, this will ensure footsteps are triggered once.

How do I get this to happen? They sound normal to me in Combat Sim with slomo enabled.

Oh, this happens with sims specifically.


Update the Loren Ipsums in GovernancePath in Career

const GovernancePath = () => (

        AI governance & policy

What

Lorem ipsum

Why this is important

Lorem ipsum

Where these people usually work

Lorem ipsum

You might be a good fit if...

Lorem ipsum

The text in the figma seems to be the same as technical, so it needs to be written

I am seeing some text on the right, I don't know if this is the text that is supposed to go here.

I believe Algon was going to write this section, not sure if he still intends to

@melissasamworth said she edited what I wrote, as it had some problems.

@Algon-33 no worries it's already sorted, thanks


added fixed output size to encodeBigInt

got a bug in a program where the r value was 31 bytes but code expected 32 bytes.  this will pad with leading 0s if fixed size is set.

Would it be possible to merge this into the master branch?

The project has moved, please read this -> https://github.com/PointyCastle/pointycastle/blob/master/README.md

@izaera I have created a new pull request in the new project. Link to the pull request

:+1:
I'm closing this, then.
@stevenroose should we archive this repo, maybe? So that it is set read-only...


Refactor tests to use BoringModel

What does this PR do?
Ain't much but it's honest work
Found while debugging other things.
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[n/a] Did you make sure to update the documentation with your changes? (if necessary)
[n/a] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[n/a] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Do we have an issue for this? We should get to 109% on new testing utilities


blog: Post about memory management

Adding a new blog post to explain the different use cases for which
memory hotplug and other memory related features can be used for.
Signed-off-by: Sebastien Boeuf<EMAIL_ADDRESS>

@rbradford

Maybe we should spread out the release of these blog posts

Yes I agree. We can wait to merge one of the two, and I'll update the publishing date as well.

@rbradford I've updated this post.

Ah yes indeed!


Use getObjectMetadata to get object version when uploading file to S3 archive (fixes #4161)

Your pull request should…

[ ] have a concise title
[ ] close an accompanying issue if one exists
[ ] be against the correct branch
[ ] include migration scripts and documentation, if appropriate
[ ] pass automated tests
[ ] have a clean commit history
[ ] have proper commit messages (title and body) for all commits

Fixes #4161

Actually, if we could get this into r/11.x that would be awesome.  It would affect all OC versions, and there's a new 11.x coming at some point.


i must be doing something wrong

i di not see what is wrong  so looking for extra eyes
Run lucacome/docker-image-update-checker@v1
  with:
    base-image: pihole/pihole:latest
    image: devzwf/pihole-dot-doh:latest
    platforms: linux/amd64
Run result=$(base=pihole/pihole:latest image=devzwf/pihole-dot-doh:latest platforms=linux/amd64 /home/runner/work/_actions/lucacome/docker-image-update-checker/v1/docker.sh)
  result=$(base=pihole/pihole:latest image=devzwf/pihole-dot-doh:latest platforms=linux/amd64 /home/runner/work/_actions/lucacome/docker-image-update-checker/v1/docker.sh)
  echo "result=${result}" >>$GITHUB_OUTPUT
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
jq: error (at <stdin>:[2](https://github.com/devzwf/pihole-dot-doh/actions/runs/4151737708/jobs/7182229616#step:2:2)[4](https://github.com/devzwf/pihole-dot-doh/actions/runs/4151737708/jobs/7182229616#step:2:4)8): Cannot iterate over null (null)
Error: Process completed with exit code [5]

Thanks in advance

Hi @devzwf I noticed that v1 wasn't in sync with the latest tag. It should work now.

@lucacome Thanks
this seems to have fix it


Add support for rust like pattern matching

Intro
Pattern matching can greatly simplify logical branching. Take this example from rust:
// Value is set to the return from the first matching branch.
value = match number {
      // Match a single value
      1 => println!("One!"),
      // Match several values
      2 | 3 | 5 | 7 | 11 => println!("This is a prime"),
      // Match an inclusive range
      13...19 => println!("A teen"),
      // Handle the rest of cases
      _ => println!("Ain't special"),
}

Proposal
Add functions to Enum to support pattern matching behaviour.
Enum::match
/**
 * Match enum keys and return callback evaluation or default
 *
 * @param array $patterns
 * @param callable|mixed|null $default
 * @return mixed
 */
public function match(array $patterns, $default = null)
{
    foreach (array_keys($patterns) as $key) {
        // check each key is valid for enum
        // throw if invalid
    }
    $match = array_key_exists($this->key(), $patterns)
        ? $patterns[$this->key()]
        : $default;

    return is_callable($match)
        ? $match($this)
        : $match;
}

This allows us to write clean switch case replacements:
// Get the evaluated match price or default to 0.00
$cost = $device->match([
    // Use values from the enum
    Devices::PHONE => function (Enum $phone) {
        return 100.00 + $phone->value();
    },
    // Regular closure
    Devices::TABLET => function () use ($tabletTax) {
        return 10000.00 + $tabletTax;
    },
    // Static value
    Devices::WATCH => 300.00
], 0.00);

Enum::matchStrict
Same as match but doesn't have 'default' and throws exception if $patterns array isn't exhaustive ie doesn't cover every enum key.
Enum::matchBitmap / Enum::matchBitmapStrict
Same as above but support bitwise matching eg $enum->key() & $patternKey. This would allow pretty fancy pattern usage:
// Get the evaluated match price or default to 0.00
$cost = $device->matchBitmap([
    // Use values from the enum
    Devices::PHONE | Devices::SMART_PHONE | Devices::BRICK => function (Enum $phone) {
        return 100.00 + $phone->value();
    },
    // Regular closure
    Devices::TABLET | Devices::LARGE_TABLET => function () use ($tabletTax) {
        return 10000.00 + $tabletTax;
    },
    // Static value
    Devices::WATCH => 300.00
]);

Bitwise update
Instead of having Enum::matchBitwise, have bitwise be a static bool on the class that enables or disables bitwise style patterns for strings or ints.
Should be off for non doubling ints but would be safe to be on for any string based enum that didn't collide with the dsl.
Matching dsl
Should be able support complex patterns with a dsl string:
Pattern::range(MyEnum::ONE, MyEnum::FIVE); // "1|2|3|4|5"
Pattern::or(MyStringEnum::CAR, MyStringEnum::BIKE); // "car|bike"

Ranges
one..five
Or
one|two

I really like the match pattern it's really useful with enums. Keen to see this added 👍

You don't need to make this anymore.

Available in native PHP.


Email Program Manager when ban status is updated for a student

 Email Program Manager when ban status is updated for a student #655

Picked up this issue


RT4310(ish): More fixes for no-sock, no-stdio, no-ui builds.

+1

@t-j-h also see #447

At this point, I can completely replace the patch that EDK2 has against 1.0.2, with backports of commits which are already in OpenSSL HEAD.
The one commit I need for the current 1.0.2-based build (as opposed to new stuff to make it possible to switch to OpenSSL 1.1) is commit 2f37773 from this PR. (And a corresponding fix for RSA_NET support, which no longer exists in 1.1).

Consider making an other pull request for the 1.0.2 branch with the commit you want there.

I agree with kurt:  make a separate 1.0.2 PR with that commit (looks like a build bugfix to me).

My comment wasn't so much about backporting to 1.0.2. I have a pile of those, if you want them: http://git.infradead.org/users/dwmw2/openssl.git/shortlog/refs/heads/OpenSSL_1_0_2-stable
I don't think you do. I was actually assuming we'd get everything we need for UEFI into the 1.1 release and then switch to that and forget 1.0.2 completely.
My milestone in the meantime, however, is to turn our entire patch-against-1.0.2 into purely backports/cherrypicks of stuff that's already in HEAD. And of the handful of things I have outstanding in pull requests right now, that one commit is the only one that's also relevant to the 1.0.;2 tree and thus standing in the way of that milestone.

Got it.  Split that out into a separate MR.

OK, I've split that one out into https://github.com/openssl/openssl/pull/755 to stand alone. Thanks.

+1

done.

commit 963bb62195109fb863dc4d88c7470ce7f9af25ac. is broken so re-opening this.

Crap, sorry about that.

I treated this as a learning opportunity for the EDK2 folks, who have only just switched to git.
OpenSSL 1.1 status, and a worked example of why you should NEVER rebase

@dwmw2, an interesting article but I disagree with your conclusion! Merges present there own set of problems and add all sorts of complexity to the git history. Figuring out how a problem arrived in the source when it was introduced via a bad merge is a bit of a nightmare. Reading the git history is also unnecessarily confusing. OpenSSL does not accept merge commits at all - so actually you must rebase. If the original author doesn't do it, then the OpenSSL dev will... and they are more likely to screw it up than the author (because they didn't write the code in the first place).

@mattcaswell, I completely agree that figuring out how a problem arrived when it was introduced in a merge is a nightmare. But if you do that same merge as a rebase instead, then the same problem becomes outright impossible because you've thrown away the important information.
The problem happens when two people are doing things at the same time, which end up conflicting with each other. You don't remove that complexity by rebasing. You only make the situation worse.
And really, a history with merges isn't hard to understand as long as you are thinking of history as a graph, not a linear progression. I appreciate that's a hard conceptual leap to take when moving from a legacy version control system to a distributed one, but it's a leap that's worth taking.
But still, that rant was targeted at the EDK2 list. It does have relevance here too, I suppose, but that wasn't my main aim.
And yes, it does look like my RT4310 branch as pushed on February 27th was actually correct, and it was only broken in cherry-picking it onto HEAD. So it wasn't my fault at all :)

I'd like to note again, that that message was directed at the EDK2 list — although it does have technical relevance here, it is not really my place to direct a rant like that at OpenSSL. While Intel employs me as an open source person, and prodding Intel projects in the right direction is actually part of my day job :)
With that out of the way, I would like to understand the OpenSSL setup better, so that I can improve my submissions. Having my commits reverted because they broke the build doesn't really help anyone.
So... what should I have done here?
Should I have done a git pull --rebase every day until the PR actually got merged? And painstakingly gone through all the corner cases that I did fully consider when actually producing those patches in the first place, doing various combinations of no-xxx builds under Linux and even in a Windows VM and with tweaked -fno-function-sections builds to test various things? Every day?

No...a periodic rebase is usually sufficient. Often that might be at the request of one of the devs. Sometimes though bad stuff just happens :-( ...hopefully when things calm down a bit the travis/appveyor build results will settle down and be a bit more helpful. Things are too volatile at the moment though.

What Matt said.  I wouldn't worry about it.  It's a feeding frenzy right now, and sometimes the wrong fish gets nipped.  You're good.

Keeping it up to date daily in the hope it can still make beta1. And hoping not to disprove your assertion about me being less likely to screw it up :)

so which commits?  all of them?  merge this whole branch?  sorry, being dense.

There's only one left. It all got merged, one commit was broken in the rebase, and I'm resubmitting it as (currently) commit 4a4fecd10c

I should shut up, but...  concerning merge vs rebase, I've happily lived with both.  They each have pros and cons, and I agree that history gets lost with rebasing and can become a mess if you're not careful, but the same goes with merges, they can become an impossible spaghetti to follow.
So I'd say that technically as well as philosophically, it comes down to a choice and what a team feels most comfortable with.  Obviously, the OpenSSL team prefers a linear history, and it becomes a histry of application rather than a chronological one.  Sounds like the EDK2 list would possibly go the other way, with a higher appreciation for parallellism, chronology, and possibly spaghetti ;-)
Me, I'm neutral on the matter.  Both methods work, with their own quirks.

That remaining patch makes perfect sense to me
+1

Mostly, the only thing that ever needs to follow merge spaghetti is 'git bisect'. And it's quite good at it :)
Sure, when your bisect lands on a merge commit, you get a horrible sinking feeling. But then it's only one specific merge you're looking at, not spaghetti. And this is precisely the case where you are saved by the branch-and-merge strategy. Because if the code had been rebased, you'd never have had a working vs. non-working version to compare and see what went wrong.
 I'm just not very good at it :)

@levitte, will you do this one patch to e_os.h (test-build) and then close this PR?  Else I will do it in a couple of hours.  +1 from me.

@dwmw2, sure, bisect is good, and looking at things with tools like gitk has your hair turn grey in an instant ;-) (gitk is particularly bad at displaying merge spaghetti, it makes it even worse)
Shall we both shut up now?  I'm getting busy merging (no, sorry, rebasing) your patch into master.

Ok, hold on here...  I don't mind this fix and am applying it no matter what as it does make sense, but just saying there the no-sock work seems incomplete.  I just had a test build, and it went BAMF on apps/s_server.c, there seems to be a lot not very well guarded there.  Quite possibly, s_client and s_server shouldn't even be build with no-sock...
libcrypto builds cleanly on both Linux and Windows with no-sock, though, that's enough for me to go ahead and merge this into master.

... and I spoke too fast.  Got this on Windows:
        cl -DDSO_WIN32 -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PI
C -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM "-DENGINESDIR=\"\\usr\\local\\lib\\engines\"" "-DOPENSSLDIR=\"\\usr\\local\\ssl\"" -W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DUNICODE -D_UNICODE /MT /Ox /O2 /Ob2 /Zl /Zi /Fdlib -D_WINDLL /I include /I ..\master /I ..\master\include -c /Fossl\bio_ssl.obj @C:\Users\Richard\AppData\Local\Temp\nm5FC5.tmp
bio_ssl.c
w:\gitwrk\openssl.net\official\master\ssl\ssl_locl.h(1501) : error C2079: 'next_timeout' uses undefined struct 'timeval'
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

That was with this configuration:
perl Configure VC-WIN32 no-sock

So at this point, I'm temporarly taking back my +1.  This needs a bit more work.

Yeah, apps don't build with no-sock. I've fixed things up so that it was building for Linux and EDK2 at least. Does the no-sock build work on Windows even before this patch? It shouldn't make any difference to a DOS/Windows build, or to any other build unless OPENSSL_NO_SOCK is set. It's only supposed to affect the OPENSSL_NO_SOCK, non-Windows build.

The answer can be found here
Apparently, MicroSoft thought that <winsock2.h> would be the perfect place to define struct timeval, because of course, it's only used with select(), right?  I cannot tell you how upset I get over this kind of thing.
So you know, my +1 comes back, dealing with VC things like this is a different deal and another PR.

Merged.  ffbc5b577d6283429c2348b23bca5eac46c80854


How to cross compile for armv7?

I'm currently trying to get cross compilation to work, but I can't seem to find the right options to pass to ponyc.
My latest try is this:
corral run -- ponyc --triple=arm-unknown-linux-gnueabihf --cpu=cortex-a9 -V 3 --link-arch=armv7 --linker=arm-linux-gnueabihf-gcc
Which just gives me link errors:
...
./hello.o(.text+0x1550): error: undefined reference to 'memcpy'
./hello.o:hello:function .LEnv_ref__create_Iooo: error: undefined reference to 'pony_os_stdout_setup'
./hello.o:hello:function .LEnv_ref__create_Iooo: error: undefined reference to 'pony_os_stdin_setup'
./hello.o:hello:function .LEnv_ref__create_Iooo: error: undefined reference to 'pony_create'
./hello.o:hello:function .LEnv_ref__create_Iooo: error: undefined reference to 'pony_create'
./hello.o:hello:function .LEnv_ref__create_Iooo: error: undefined reference to 'pony_create'
./hello.o:hello:function .LEnv_tag__strings_from_pointers_oZo: error: undefined reference to 'memcpy'
...

So, what are the correct options?

I personally haven't done cross compilation. At the moment, we are only using it for CI which @dipinhora set up quite some time ago.
If you start from the config here: https://github.com/ponylang/ponyc/blob/main/.cirrus.yml#L195 you might find what you are looking for.
Did you build a runtime for cross compilation target? I'm assuming yes. A detailing of what you have done to set up a cross compilation environment would help.

It's an "experimental" feature at this time. Definitely not a "supported" option. Thus lack of documentation, polish, etc.

That makes sense. Maybe I'm just too spoiled by rust and zig, which I used much recently. I might have a look if I can contribute towards better arm support. Not sure if I know enough though.

We support compiling natively on 64 bit Arm. I assume you meant cross compilation to Arm from AMD64?

Yes. One of the machines I want to target is armv7, which is 32bit arm, and I'm on AMD64.

This milestone for known Arm issues might be of interest to you:
https://github.com/ponylang/ponyc/milestone/1


Feature/usability grab bag

Tackles #506, clarifies a usage message, and cleans up a bit

[x] Check that you pass the basic style checks and unit tests by running mvn clean install

Coverage decreased (-0.004%) to 72.519% when pulling afc9dedda3b85c48c904478b79ec9d6e8ecf7000 on feature/usability-grab-bag into 00e2bea78b7855c342909e17b59c814c5772de6b on develop.


Incorrect consent URL

Hi there,
While testing with this API, I ran into an issue. There seems to be a small mistake while generating the consent URL in ApiClient.getJWTUri. It is my believe that the URI component that is encoded should be changed from signature+impersonation to signature impersonation, rendering an encoded URI component signature%20impersonation instead of signature%2Bimpersonation, in complience with the documentation. This at least fixed things for me.

Just in case this isn't clear: the resulting behaviour is that Docusign only asks me to grant Signature scope permissions, not Impersonation scope permissions. while that is the case if I manually change to URL.

@MathiasMeuleman Thank you for reporting this. I made the changes already. Tests are passing so it should hit NPM pretty soon. I will close this once it's out there.

Perfect!


Conditionally omit specific fields of a struct

There are situations where I want to completely omit some fields of a struct (or all structs).
Examples:

for a logical model, with a runtime condition, don't emit fields that are UI-specific
don't emit some pointers, e.g. OpenGL context data
allocator field stored in the model

In my case I wish to export the model in 2 modes, chosen dynamically by a user:

full
only logical data

Consider this example struct:
pub const CanvasNode = struct {
    id: c_int,
    name: []u8,

    // these fields are to be omitted in the logical export mode
    pos: c.ImVec2 = .{ .x = 0, .y = 0 },
    size: c.ImVec2 = .{ .x = 250, .y = 300 },
};

Is there anything like that or any idea where I could provide such a mechanism?

You can make however many serialization blocks you want and then swap between them at runtime. For example:
const getty = @import("getty");
const json = @Import("json");

// define CanvasItem...

const skip_vecs_sb = struct {
    pub fn is(comptime T: type) bool {
        return T == CanvasNode;
    }

    pub fn serialize(value: anytype, serializer: anytype) !@TypeOf(serializer).Ok {
		var s = try serializer.serializeStruct("CanvasNode", 2);
        const st = s.structure();

        try st.serializeField("id", value.id);
        try st.serializeField("name", value.name);

        return try st.end();
    }
};

pub fn main() !void {
	var want_logical_form: bool = user_input();

	// The latter block will serialize CanvasItem normally (i.e., all fields)
	const block = if (want_logical_form) skip_vecs_sb else getty.ser.blocks.Struct;

	var c = CanvasItem{...};
	_ = try json.toSliceWith(std.heap.page_allocator, c, block);
}

The code above actually picks specific fields to serialize rather than omitting the other ones. So whenever I change my structure I have to also change the serializer. I'll see whether that suffices, thanks :)

That was just the easiest way to show you what I meant. Usually you'd loop over all the fields in the struct type and then ignore any fields that match a name or type or whatever.

in case anyone would be looking for a tiny more general solution, this is my serialization block for a model.WorldState type omitting the id_gen field:
pub const ser_modelWorld = struct {
    pub fn is(comptime T: type) bool {
        return comptime T == model.WorldState;
    }

    pub fn serialize(value: anytype, serializer: anytype) !@TypeOf(serializer).Ok {
        const T = @TypeOf(value);
        const fields = std.meta.fields(T);

        var s = try serializer.serializeStruct(@typeName(T), fields.len);
        const st = s.structure();
        inline for (fields) |field| {
            if (!std.mem.startsWith(u8, field.name, "id_gen")) {
                try st.serializeField(field.name, @field(value, field.name));
            }
        }
        return try st.end();
    }
};


[BN Translation] Fruit Detector on Edge

With this PR,

From 4-Manufacturing : 3-Run Fruit Detector on Edge ,

The lesson Readme has been translated into Bengali.
The corresponding assignment has been translated.
The placeholder .dummy file has been removed.

#50

Hi @nurFatihaTahiatSeeum ! Would you like to review please?


Event callback on country selection

Are there any options for callback to be made when user makes country selection?

You can listen for the change event. Example here: http://jackocnr.com/lib/intl-tel-input/examples/gen/country-sync.html


Shutdown example runtime main on SIGHUP

Request from @klois. to do a proper shutdown upon a SIGHUB in the example main.

Can we close this after #380 has been merged?

Fixed with #380.


Rename 'decompositor' -> 'decomposer'

It's better to do it right now.

This is no longer actual, since decomposer is just a particular case of the MatrixOperation.


Add the entire Item to History... then use FPSTiles and show maybe the last 5 or 10 on the side....

Yeah!!! Re-use FPSTile

DONE!  WORKS SOOO COOL!