Add enum helper

Needed for: https://github.com/jcupitt/php-vips/pull/72.
To get all enum values for a specific enum.

Just noticed that there are some warnings in the Travis build:
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -I/home/travis/vips/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/ImageMagick -I/usr/include/orc-0.4 -I/usr/include/OpenEXR -I/usr/include/poppler/glib -I/usr/include/cairo -I/usr/include/librsvg-2.0 -I/usr/include/openslide -I/usr/include/pango-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libpng12 -I/usr/include/libexif -I/usr/include/libxml2 -I/usr/include/poppler -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/opt/python/3.6.3/include/python3.6m -c build/temp.linux-x86_64-3.6/_libvips.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_libvips.o
build/temp.linux-x86_64-3.6/_libvips.c: In function ‘_cffi_checkfld__GEnumClass’:
build/temp.linux-x86_64-3.6/_libvips.c:4657:25: warning: initialization from incompatible pointer type [enabled by default]
   { GTypeClass * *tmp = &p->g_type_class; (void)tmp; }
                         ^
build/temp.linux-x86_64-3.6/_libvips.c: In function ‘_cffi_checkfld__GValue’:
build/temp.linux-x86_64-3.6/_libvips.c:4720:25: warning: initialization from incompatible pointer type [enabled by default]
   { uint64_t(*tmp)[2] = &p->data; (void)tmp; }
                         ^
build/temp.linux-x86_64-3.6/_libvips.c: In function ‘_cffi_checkfld__VipsObject’:
build/temp.linux-x86_64-3.6/_libvips.c:4781:19: warning: initialization from incompatible pointer type [enabled by default]
   { void * *tmp = &p->argument_table; (void)tmp; }
                   ^

Can we safely ignore those?

Yes, they are harmless, I looked into them a while ago. They are hard to suppress, unfortunately.

Great!


AWS Credentials missing

Describe the bug
We discovered that the latest run with the config manager no longer pushes AWS Credentials. It worked on a previous version of the tool.
Has there been any change related to AWS Credentials?

I'm adding more error logs for the next version
aws_credentials will also be fixed
The terraform provider has been updated multiple times for aws_credentials specific problems
One of the changes broke the export

Fixed: https://github.com/Dynatrace/Dynatrace-Config-Manager/releases/latest


Concourse build variables are not being substituded

When I pass the url parameter for out action with $BUILD_ID variable inside it doesn't get substituted with the actual build id.

Fixed.
Only variables with format $VARNAME are substituted. Other formats accepted by bash, like ${VAR NAME} or echo $VARNAME would not work.


Documented Parallel Build via build.py

Documented use of CMAKE_BUILD_PARALLEL_LEVEL with our Python build script.

CI gfxreconstruct build queued with queue ID 25857.

CI gfxreconstruct build # 1896 running.

CI gfxreconstruct build # 1896 passed.

CI gfxreconstruct build queued with queue ID 26972.

CI gfxreconstruct build # 1904 running.

CI gfxreconstruct build # 1904 passed.


[question] Can the render be used as replacment to SDL2 / GLFW  ? on ios / desktop?

Hello all
as i didnt found any mailing list to this project i guess this is some kind of place to ask questions.
so i have old 2d engine of my which i want to replace its render to something modern to be able to support as many platform's as i can . both iOS and desktop .
it is also important to me to support low end computers and mobile devices
i didn't found any examples of open source game engines whice using bgfx as the render .
can you please point me or answer me if this project is good for the task ?
Thanks!

bgfx is not replacement for SDL or GLFW. You can use bgfx with SDL and GLFW for rendering part, where SDL/GLFW could handle other things like input and windowing. bgfx example harness has ability to run without SDL or GLFW, but it's very rudimentary, and it has only features that are necessary to run bgfx examples.
As for other engines using bgfx, see:
https://github.com/bkaradzic/bgfx#who-is-using-it
There are few open source engines using it.

I see , so if i understand it right bgfx is only responsible for the rendering part .
i can use other packages for the input and windowing stuff .
so what is the benefits of bgfx over other rending only engines ?
if i leave the windowing and input out side

There are no other cross-platform rendering only libraries like bgfx. There are engines and frameworks that come with all kinds of stuff unrelated to rendering. Or there are low level graphics libraries like OpenGL, OpenGL ES, Direct3D, WebGL etc. with different versions and available on different platforms, with different shader languages, etc.

Thanks
Question .
How is the render on low end pc's ?
for example :
irrlicht engine preforms very well on very low end pc , i mean obscure things like 2 giga ram p4 type of machine
can bgfx compete with such preference ?
and adjust it self when it detect better drivers ?

It will perform as well as you make it perform! It's an abstraction over existing libraries, so it's like asking how OpenGL (a graphics framework) will perform instead of how Irrlicht (a game engine) would perform.

Hmm
i didn't understand this , what do you mean ? can you give technical example or something close to it ?

So with bgfx, you just give commands to render things. You can render primitives with shaders, for example. This says nothing about your scene, no physics, no input, no gameplay loop. You're responsible for all of that with bgfx. It's just rendering.

im taking about the rendering not the "game engine"

It's probably faster, but it's really all in how you use it. You could probably use Irrlicht to be as fast as bgfx, but you could also use bgfx to be much slower than anything else. The difference is probably very minute if you're somehow replicating exactly what you're doing in each.

I found I can get really good performance on low end mobile devices, on 3GS we were getting a solid 30fps, similar or better results on Kindle Fire Gen 1 which is an Android-9 device.

@RichardGale
can you please share more about the process ? which engine did you use above bgfx and what problems you encountered?

We use bgfx from a few months back, about to update, and entry from the examples as our shell.  No engine per se, just custom code written by the team needed for the game.  OpenAL for audio, STB for useful things and the usual integrations with Facebook, Google Play, etc... As we're 2D sprite-based GPU utilization is relatively low, we don't level-of-detail geometry or shaders, but do reduce # particles. Our largest concern is memory and load times, which means keeping everything small and aggressively managing memory.
Not a lot of problems with our code and bgfx, it feels like most of the issues I'm addressing is regarding Android and app life cycle.

Just keep posting in this thread, instead updating original question since it breaks chronological order and it's hard to follow.
Qt, I didn't try it, but it should be possible. This fork has Qt support:
https://github.com/ppiecuch/bgfx
https://github.com/ppiecuch/bgfx/blob/master/examples/common/entry/entry_qt.cpp

@RichardGale
This is super interesting as im looking ways to do micro small c++ cross platform 2d game engine
i will really love to hear more about your work .
can you port link to the game ?
@bkaradzic
Thanks i will take a look . reasone im asking is for checking options for level editor .

checking options for level editor

bgfx has "dear, imgui", you should consider that instead. See "who is using" section of README to see what you can do with it.

Yeah i saw that .. it is cool but Qt is much more advanced


Idyll - viperSwap Migration verification

Project Name:
viperSwap
Project repository:
https://github.com/abdullah-ming/viperSwap
Development tools/resources used:
Remix，Truffle，MetaMask，Ethereum Web3.js
Scheduled completion date:
December 5, 2021
The expected content of delivery:
Document guides for viperSwap migration and the contract code of ViperSwap，The front-end code.
Contact info:
https://t.me/idyll1
LAT address (PlatON main network LAT account address for receiving rewards):
lat10fjv9px4esw0cdt9sxypjkatenw6p8vjj65g5t

@abdullah-ming Any problems found during the development process can be reported here

Project migration delivery(1200U)rewards have been issued (2022.12.29 Base Price 0.12)


Make cleanup functions return 'void'

Problem
Destructors, Shutdown functions, and other cleanup code should be
declared with a 'void' return type as typically there is nothing that
can be done in the caller when an error is returned.
Change overview
This removes the error return from such functions throughought Matter.
This transformation is straightforward in every case, and semantic
preserving in almost every case (broken semantics such as leaking memory
or leaving objects in an inconsistent state are not necessarily
preserved); it's rare for shutdown functions to actually return errors,
and also rare for callers to check for them.
Removing the threat of errors from cleanup functions simplifies control
flow in shutdown paths. It also facilitates shutdown from destructors
which is the typical C++ resource management paradigm ("RAII"), as
destructors have no return type.
Some functions had error cases that only occured when there was nothing
to do (e.g. not fully initialized returning 'invalid state'); these are
removed. The postcondition already holds in these cases, and maintaining
a precondition regarding the state would impose duplicative bookkeeping
in client code to track it without any real upside.
This changes a fair number of APIs, but the changes are easy to
accomodate as it is simply a matter of removing dead code (much of
which was already dead; one class even included the note
  @return #CHIP_NO_ERROR unconditionally.

as documentation that an error was not actually possible).
Testing
CI

This is ready for review but I am waiting for the all-clear on some more urgent work (cc @tcarmelveilleux) to avoid delaying them due to conflicts with this cleanup.


$PSStyle.Formatting.TableHeader writes out the ANSI codes in a legacy console that doesn't support virtual terminal

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Start PowerShell 7.2.0-preview.9 with a legacy console host (e.g. use 2012R2), and then run Get-Module.
Expected: The table view should not have any ANSI code written out.
Actual: ANSI codes are written out in the table view

Expected behavior
The table view should not have any ANSI code written out.
ANSI code should be ignored when the host doesn't support virtual terminal.

Actual behavior
ANSI codes are written out in the table view

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.0-preview.9
PSEdition                      Core
GitCommitId                    7.2.0-preview.9
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Is it ok on Windows 2016 LTS or not?

Should ANS.1 characters be filtered by Out-Default depending current host?

@ertyz I didn't try but I guess it will have the same issue on Windows Server 2016. But we will get it fixed before 7.2 GA
@Pekka-Kalevi It should be filtered out depending on current host.


Multi-architecture Container Image

The container image only supports the amd64 architecture. I am unable to run it on my Raspberry Pi or AWS Graviton instances.
Expected Behavior
Ideally it would be great to have a multi-architecture "manifest list" image which allows seamless running on multiple CPU architectures (including arm64): https://docs.docker.com/registry/spec/manifest-v2-2/
Possible Solution
It looks like binaries for multiple architectures are getting built but only a single image. It might be as easy as using Docker Buildx.

This should be done now, per @frozenprocess


make Y default for Enter with no entry

If you hit 'Enter' without typing anything, it just saves schema. (or if this is not a good thing to do, interested in why)

e.g. Save the generated schema? [y/n] (blank defaults to y)


Trying to hide time-picker from datetime-widget with "time_format: false" does not work.

Describe the bug
I have a field where I don't care about time, only date, and would like to hide the time picker in the widget for the users. As per the documentation I have tried setting time_format: false, but this does not seem to work.
To Reproduce

Config a field using the datetime widget.
Set time_format: false
No apparent effect?

Expected behavior

Time-picker should be hidden?

Screenshots

Applicable Versions:

Decap CMS version: 3.0.0
Git provider: GitHub
OS: Windows, Linux, MacOS
Browser version: Chrome, 121, Firefox 122.0

CMS configuration

https://raw.githubusercontent.com/Trondheim-Sykkelkjokken/website/main/static/admin/config.yml
Additional context

I tried it with Netlify CMS 2.0 and that worked as expected, so this seems to be some kind of regression.

This is a regression. Somewhere between 3.2.8 and 3.3.2. date_format doesn't work at all now. Before updating the logic to do anything new, shouldn't it be reverted to its previous working state?

Facing the same issue.
@mikestopcontinues Does versions don't yet exist, maybe it is typo, do you know which version has it working?

Got a combo that seems to be working:
decap-cms 3.0.8
decap-cms-core 3.2.4
<EMAIL_ADDRESS>

A fix is released in v3.1.6. @sverrejb @filipesperandio @mikestopcontinues can you please test if it works now?

From what I can tell, it works as intended now. Thanks for fixing it, and letting me know! 😄


New Login UI

Work on the new login UI if y'all have the time, but it's not a core feature so don't worry about it if you cannot do it

/cib new-login-ui

Branch 198-new-login-ui created!


[Bug]: Plugin doesn't work for rename folder.

Describe the bug
When I rename a folder, it will make a copy from the original folder and the original folder still exist on the branch.
Steps to reproduce
Rename folder in Obsidian.
Expected Behavior
Record rename action on one commit.
Operating system
Windows

What do you exactly mean with the original folder still exists? If you create a backup (commit) nothing should change in your working directory. The plugin doesn't do anything until you call a command.

So, do the rename process for a folder. For example, the article folder rename to the publish folder. the new commit will become have both of the folders and having the same duplicated files in those folders.

Sorry I don't know what's wrong with your setup, but I cannot reproduce. Please disable all other plugins, restart and try again. Maybe even in another vault. Maybe it's some other sync service.

@keyskull how did you rename a folder? from within Obsidian? I tried it as well and couldn't reproduce the issue.


Fix comments on controller.h (analog stick state)

The previous comment was, most likely, a copy-paste mistake. Even if my changes don't get approved, just by calling attention to this spot is enough for me :)

Will merge once ci is green :)

This can be merged straight to trunk tbh

Ah didn't realize it was targeting ogl. I will update the target

Sorry, forgot to fix this :)
Ironically, I first created it for trunk, but then noticed it, deleted and created for opengl. Will now create it for trunk again.


NIFI-7331 Fixed grammatical errors in log output.

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Improve log output in OIDC identity provider.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on both JDK 8 and JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Merged to master, thanks @mtien-apache


How to maintain the state of component while switching from container to components

When I am switching from one component to another component i.e board component and card component, The state I have in board component gets vanish when I call card component from board component.
Do we have any way to maintain the state or can we getState from inside the component. Please help me in this.

If there is state needed in more than one component, create a Redux module and store the state there. See src/redux/modules for examples :)

@harshjulka Hope this was helpful!


setting up pipenv environment in django application on apache server

I understand this is not right place to ask for help but I really need help with this
I need help with setting up Django 2.0 application on apache server.
Here is the link to Stackoverflow with details of what I have done till in to setup it. But, It seems the virtual environment is not activating or being called.
https://stackoverflow.com/q/50464727/3719167

Closing since you now get the exposure you’re looking for. Further discussion can happen on StackOverflow.


Bump version to 1.5 (compiler)/0.5 (services)

@mhegazy

:+1:

version bump + fresh LKG should always go together, right?

@clausreinke we usually don't have an LKG in a PR.

@DanielRosenwasser okay, thanks. And the git tag?-)

We're not officially at 1.5 so we're not tagging yet. Basically, the way we've done it is we'll decide a good point for 1.5 to stabilize on and then snap off into a new branch (release-1.5 presumably). Fixes and committed features go into that branch and are merged back into master. When we decide to officially release, that  branch will get a tag. Do you have an alternate scheme in mind?

Ah, I just saw the unadorned version and expected a tag/release.
I've tried your approach in the past and found it confusing: once one installs the package, the git context is gone, and one is left wondering which version it was that failed tests or created bug reports.
Since then, I have added two habits:

add a label to the version indicating the branch (I usually have a branch for testing, and not as many features under concurrent development as you do)
add a build number to the version (sometimes, I've also used the output of git describe --tags, but a simple number suffices and is easier to maintain)

I've found these more descriptive versions quite helpful in avoiding confusion (I also use them as output for --version queries) - the only caveat: it can be easy to create a version label that not all tools are happy with.


Bash

Generic bash machine.  Mainly in case someone wants to explicitly download a bash machine instead of just using one of the other languages machines in here for doing bash.

Thanks @Chad-Ballay, I think this is almost exactly the same as the perl vagrantfile. Maybe that's the one you want?

Sorta.  If someone was automating a process to call download the vagrant files like it seems to be intended through this bit in the documentation, there isn't a bash one.
https://raw.githubusercontent.com/adlawson/vagrantfiles/master/$LANG/Vagrantfile
Most people probably don't need a standalone vagrant machine for bash development but just for completeness I figured having a bash one would be good.  As to the contents of the bash one.  The base OS pretty much has everything needed and the Perl one was handy with it already having the commands to pull in vim and curl.
So not that needed of PR, mainly just to satisfy a very unlikely corner case.

Sound reasoning, thanks for taking the time to contribute!


HtmlElement for  tag

In my flutter web app, I want to add  tag as widget via HtmlElementView but not found in api documentation: https://api.flutter.dev/flutter/dart-html/HtmlElement-class.html
How can I achieve the InsElement or other tags not included in the list?

Hi @KaungZawHtet
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this, you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,  if you disagree please write in the comments and I will reopen it Thank you


Update Software

Update to deploy the latest versions.  Including:

Ops Manager 2.3
PAS: 2.3
Healthwatch 1.3.2

There were a few larger changes necessary than typical for this update, as Ops Manager 2.3 expects to be configured via API only.  In order to accomplish this, we pulled in the latest version of github.com/pivotal-cf/om.  The govendor tool was unable to resolve the required dependencies in order to make this upgrade, so the project was converted to a Go module (which requires Go 1.11+).  As a bonus, the entire vendor directory goes away but we still have reproducible builds.

@zmb3 I just saw this today (I don't know how I missed it until now)
I am testing this with our internal CI server now.
I'll post back if I have any questions.

I've created the branch up-sw-patches to extend on this branch.
Currently I'm running into an error installing the stackdriver nozzle.
I believe this is because it is trying to install before the elastic runtime.
I wonder if that tile updated it's name to something other than cf, as the nozzle has cf as a product dependency.

@zmb3 just an update:
Both @rkoster and myself have run into an issue with credhub. It seems credhub isn't connecting to the internal mysql database: https://gist.github.com/mattysweeps/1cb785245bf14d5b467feaef8186f604
Just wondering, were you able to successfully install PCF on your branch? or are you still in the process of testing?

@mattysweeps I did succesfully deploy with my branch.  Not sure exactly what’s going on here.

@zmb3 I just tried installing from this branch and I ran into the same problems.
https://gist.github.com/mattysweeps/8a921134c49be0c0687773aecc76b520
^ This failure is due to an issue with the Stackdriver nozzle. @rkoster stated this is due to the nozzle not adding in its metadata the correct dependency on the cf tile. https://github.com/cloudfoundry-community/stackdriver-tools/issues/216
He also authored a temporary fix for that issue here; https://github.com/cf-platform-eng/gcp-pcf-quickstart/commit/9f139e4b12a9b99067cc4dc653c1bf708e1dbb82
Maybe there is something different between our deployments?

@zmb3 out of curiosity did you deploy a small runtime or a full runtime? I've been deploying small runtimes.

Small footprint.
I might be able to spend a few minutes looking into this late next week, but if it's too much trouble feel free to close this.  I ended up writing some alternative tooling that meets my needs a little better.

Closing this since we merged #51, which included commits from the update-sw branch


Create Proposal UI Redesign (Safe/Usul)

Description
Updated Create Proposal page to match the next UX design documents.
Notes
The pages for this branch do not match the designs until it is merged with update/fractal-design-0.1, but the components function correctly.
Additionally, the panel on the right side Proposal Details is not completed and needs to have live added added in a future PR.
See included inline review comments
Testing

Navigate to an existing DAO [0xB87AD11E40F66137BD4cbB5f9d9438451000251B]. View all proposals.
In the upper left of the screen choose Create Proposal to create a new proposal.
Verify Accordion functions operate correctly for expand / collapse (click the Transaction number header)
Verify Add and Remove transactions work correctly.

margin between "Proposal" title and the black box "Transaction 1" looks thin
fixed

Aside from Target Address, the background of the inputs are black, when they should be grey
the style of the textareas will be updated on the next revision of decent-ui

Inputting the create URL directely (e.g. https://deploy-preview-718--fractal-framework-interface-dev.netlify.app/#/daos/0xB87AD11E40F66137BD4cbB5f9d9438451000251B/proposals/new) then clicking "Cancel" gives a blank page
yeah, i totally phoned that in, fixed

is it possible to close the above transaction and/or scroll to the new one if "Add another transaction" is clicked?
yeah, good call here too, fixed

can we disable "Create Proposal" if clicking it won't start a transaction (meaning some of the fields aren't filled out)
I looked into this, and it might be a significate refactor from it's current implementations. maybe a new task would be a better idea and fix in this PR.

despite what the design shows, Function Signature and Parameters aren't required fields, since a function call could have no parameters
fixed

can we disable "Create Proposal" if clicking it won't start a transaction (meaning some of the fields aren't filled out)
I looked into this, and it might be a significate refactor from it's current implementations. maybe a new task would be a better idea and fix in this PR.

Yeah, makes sense. This is probably a larger discussion about form validations, as screens are currently all over the place on that..


ListChoice component

Personally, I see little value in providing single-line comments to inits that say a type will be created... that's what inits do 😄
If we want to be comprehensive, we should document all public declarations, including function/init arguments.

Agree. For some components, there is more useful comment. But the most important part of that comment is the "... "Orbit component"..." which helps caller to be sure this is indeed an Orbit component, not a SwiftUI one (as we shadow some existing components with the same name)


Change the scim2 documentation URI

Description:
When SCIM 2.0 REST APIs doc for IS5.9.0 is ready then change the below key.
scim2.documentation_uri
Moved from https://github.com/wso2-extensions/identity-inbound-provisioning-scim2/issues/181

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Add IT test for keyword AND and OR

please also fix the build failure.

Codecov Report

Merging #162 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #162   +/-   ##
=======================================
  Coverage   77.89%   77.89%
=======================================
  Files          37       37
  Lines         837      837
  Branches      111      111
=======================================
  Hits          652      652
  Misses        131      131
  Partials       54       54

Impacted Files
Coverage Δ

...mosdb/core/convert/MappingDocumentDbConverter.java
67.27% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Tune speed can't be changed via the slider if there are no notes present in the tune subeditor

steps to reproduce:

create a tune``
try to modify the speed via the slider without adding any notes

I think this is intentional


Can't use converter

Hi there,
I've posted a while ago an issue where I wanted to save a json string instead of parsing it.
Now, I would like to save a parsed json so I've tried to do so with a TypeConverter but failed to succeed.
client_status.dart:
import 'dart:convert';

List<ClientStatus> clientStatusFromJson(String str) => List<ClientStatus>.from(
    json.decode(str).map((x) => ClientStatus.fromMap(x)));

String clientStatusToJson(List<ClientStatus> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toMap())));

class ClientStatus {
  final int id;
  final String name;
  final String color;
  final int ownerId;

  ClientStatus({
    this.id,
    this.name,
    this.color,
    this.ownerId,
  });

  factory ClientStatus.fromMap(Map<String, dynamic> json) => ClientStatus(
        id: json["id"] == null ? null : json["id"],
        name: json["name"] == null ? null : json["name"],
        color: json["color"] == null ? null : json["color"],
        ownerId: json["owner_id"] == null ? null : json["owner_id"],
      );

  Map<String, dynamic> toMap() => {
        "id": id == null ? null : id,
        "name": name == null ? null : name,
        "color": color == null ? null : color,
        "owner_id": ownerId == null ? null : ownerId,
      };
}

client_status_converter.dart:
import 'model/client_status.dart';
import 'package:moor/moor.dart';

class ClientStatusConverter extends TypeConverter<List<ClientStatus>, String> {
  const ClientStatusConverter();

  @override
  List<ClientStatus> mapToDart(String fromDb) {
    if (fromDb == null) {
      return null;
    }
    return clientStatusFromJson(fromDb);
  }

  @override
  String mapToSql(List<ClientStatus> value) {
    if (value == null) {
      return null;
    }

    return clientStatusToJson(value);
  }
}

In database.dart I've added this column into my table: TextColumn get status =>       text().nullable().map(const ClientStatusConverter())();
After running flutter packages pub run build_runner build, I'm getting an error inside database.g.dart:

Appreciate the help.

Yeah, you'd need to import client_status.dart into the file where you use @UseMoor. Generated files can't contain import statements unfortunately, so there's not much moor can do about that.
Moor should emit a warning for this, see https://github.com/simolus3/moor/issues/368. I haven't added that yet though.

@simolus3 Thanks for the fast reply!
It now compiles without any errors, but now I'm getting runtime error:
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<ClientStatus>' in type cast.
Is there something wrong with how I've written my code?

I couldn't find anything obvious that would cause the error. Can you post the stack trace of that type error? Does it originate in generated code?

@simolus3 This is the stack trace:
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<ClientStatus>' in type cast
#0      _DefaultValueSerializer.fromJson (package:moor/src/runtime/data_class.dart:125:17)
#1      new Clients.fromJson (package:testapp/db/database.g.dart:4122:26)
#2      ApiProvider.getClients.<anonymous closure> (package:testapp/remote/api_provider.dart:345:63)
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:417:31)
#4      ListIterator.moveNext (dart:_internal/iterable.dart:346:26)
#5      new List.from (dart:core-patch/array_patch.dart:54:19)
#6      ApiProvider.getClients (package:testapp/remote/api_provider.dart:345:11)
<asynchronous suspension>
#7      _CustomersListState._refreshCustomers (package:testapp/ui/customers/customers_list.dart:176:60)
#8      _CustomersListState.initState.<anonymous closure> (package:testapp/ui/customers/customers_list.dart:47:7)
#9      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/b<…>

This is package:testapp/db/database.g.dart:4122:26:
  factory Clients.fromJson(Map<String, dynamic> json,
      {ValueSerializer serializer}) {
    serializer ??= moorRuntimeOptions.defaultSerializer;
    return Clients(
      id: serializer.fromJson<int>(json['id']),
      cardId: serializer.fromJson<int>(json['card_id']),
      firstName: serializer.fromJson<String>(json['first_name']),
      lastName: serializer.fromJson<String>(json['last_name']),
      phoneNumber: serializer.fromJson<String>(json['phone_number']),
      telephone2: serializer.fromJson<String>(json['telephone_2']),
      message: serializer.fromJson<String>(json['message']),
      email: serializer.fromJson<String>(json['email']),
      company: serializer.fromJson<String>(json['company']),
      ownerId: serializer.fromJson<int>(json['owner_id']),
      commentHistory: serializer.fromJson<String>(json['comment_history']),
      professionalTitle:
          serializer.fromJson<String>(json['professional_title']),
      zipCode: serializer.fromJson<String>(json['zip_code']),
      address: serializer.fromJson<String>(json['address']),
      city: serializer.fromJson<String>(json['city']),
      birthday: serializer.fromJson<String>(json['birthday']),
      createdAt: serializer.fromJson<String>(json['created_at']),
      status: serializer.fromJson<List<ClientStatus>>(json['status']),
    );
  }

And this is my code from api_provider.dart:
  Future<ClientsResponse> getClients() async {
    try {
      Response response = await _dio.get("${BUSINESS_CARD_API_URL}leads");

      if (response.toString().contains("error")) {
        return ClientsResponse.failure(error: response.toString());
      }

      final clients =
          List<Clients>.from(response.data.map((x) => Clients.fromJson(x)));

      _database.clientsDao.insertClients(clients);

      return ClientsResponse.success(clients);
    } on DioError catch (e) {
      print("dio error: ${e.response.statusCode}");

      return ClientsResponse.failure(error: e.response.data["name"]);
    }
  }

I see what's happening now: The problem is this line
https://github.com/simolus3/moor/blob/7fc1671bf8cd1b732da55b0495c2ee9100e0f8bb/moor/lib/src/runtime/data_class.dart#L125
Moor's default serializer doesn't support type converters since it can't know how those would affect json serialization (in general type converters are only used to map to database values). You can provide your own ValueSerializer with support for List<ClientStatus> and apply it to your entire app with moorRuntimeOptions.defaultSerializer.
The docs should probably warn about this.

Am I implementing my code in a wrong way? or this is the only way to go?
I have many other classes using moor database, will moorRuntimeOptions.defaultSerializer affect them? Let's say I would like to have more TypeConverter for different classes, could I do multiple ValueSerializer?

Unfortunately this the only way to go, as type converters only affect the mapping from and to sql. If we also applied type converters to json, you would get a json string in your json: {"status": "[{...}]"} as that's what the converter outputs.
Using moorRuntimeOptions affects your entire app, yes. If you only want to use a serializer for one class only, you'd have to pass it explicitly: Clients.fromJson(json, serializer: const MySerializer()). In general I'd recommend to write a custom serializer for your whole app if you need to:
class MyValueSerializer extends ValueSerializer {
  const MyValueSerializer();

  @override
  T fromJson<T>(dynamic json) {
    if (T == DateTime) {
      if (json == null) {
        return null;
      } else {
        return DateTime.fromMillisecondsSinceEpoch(json as int) as T;
      }
    }

    if (T == double && json is int) {
      return json.toDouble() as T;
    }

    if (T == List<ClientStatus>) {
      return (json as list).map((element) => ClientStatus.fromMap(element)).toList();
    }

    // other cases needed for your app ...

    return json as T;
  }

  @override
  dynamic toJson<T>(T value) {
    if (value is DateTime) {
      return value.millisecondsSinceEpoch;
    }

    if (value is List<ClientStatus>) {
      return value.map((element) => element.toMap()).toList();
    }

    // other cases needed for your app

    return value;
  }
}


Update dependencies for Flyte monorepo migration

TL;DR
See PR title
Type

[ ] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/

ping @eapolinario is this okay to go in?


Next

Proposed Changes
Adds the ability to use lower case letters in the dictionary.
Pull Request Checklist
Please check if your PR fulfills the following requirements:

[x] I have read the CONTRIBUTING guidelines
[x] My commits follow the appropriate guidance
[x] I certify that I have the appropriate permissions to add these changes to the repository
[x] An issue is open for the changes proposed
[x] I have added/updated tests for new code changes (if applicable)
[x] Documentation has been added/updated (if applicable)
[x] I built (npm run build) locally and pushed all changes

Issues Addressed: #31
Other Information
None

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[FIX] remove usages of std::ConfigFile (#7636)

Pull request opened by the merge tool on behalf of #7636

Merged into branches iso7 in ab3b80a5068aef9016e985f848625c14126acb07


Validate all attributes on save

We are using backbone in a project and we would like to use models like this:
var Person = Backbone.Model.extend({
  validate: function(attrs) {
    if(!attrs.age) {
      return "age is mandatory!";
    }
  }
});

var person = new Person({ name: "Rafael" });
person.save();

and have all attributes validated. The current implementation doesn't do that, so I changed the save a bit to always call set, even if attrs is not passed.

It seems to me that the model gets saved even if the validation failed if there were no success/error callbacks passed to the save method.
Also the model's error event's callback seems to get a wrong parameter in that case.The following code triggers the save event even with failed validation:
MyModel = Backbone.Model.extend({
    urlRoot: '/echo/json/',
    validate: function(attrs) {
        return 'fail always'
    }
})

var myModel = new MyModel({
    name: 'The Boss'
})

myModel.bind('error', function(model, error) {
    console.log(model.get('age') + ' is ' + error)
    console.dir(error)
});

myModel.save()

Here's a fiddle of the above code: http://jsfiddle.net/freJR/
Actually I think that this might be a different bug (if this truly is a valid one) than what the subject says.

There is a subtle distinction going on here - Backbone is acting as documented.  "validate is called before set and save, and is passed the attributes that are about to be updated" - it's only passed the subset of attributes that are about the be updated and so the Model#validate function isn't working on the union of both prior attributes and the requested update(s), it's just validating against the requested update(s).
Many of the failure cases being demonstrated here do something like:

set attributes (e.g. in the constructor, which calls Model#set with {silent: true} so validation is not triggered)
call set/save with an empty attribute hash, which calls Model#validate with that empty hash
the empty attribute hash does not trigger any validations
the model passes validation
in the case of save(), persistence is (perhaps surprisingly) triggered.

The original ticket description (and its pull request) actually does illustrate an issue - Model#validate is only invoked against the requested changeset, rather than the new model state (which is the union of old model state and the requested changeset).  Discussed with @jashkenas, it would be nice if Model#set(...) did something like:

Record previous attributes
Apply updated attributes
Run Model#validate against new model state
If Model#validate returns errors, roll back to previous attributes

There is already machinery around the Model#change method to preserve previous attributes (exposed through Model#previous(attributeName)), so we can probably piggyback on that, and add the rollback concern into Model#set
It's additionally nice for Model#validate to be able to execute in the context of the model with new and old attributes, so it can compare and validate changes (consider a state machine validating transitions), and the validate() function is generally bound so this refers to the model instance anyhow.  The workflow above would work well here, too.

The last paragraph above was getting a discussion of whether validate() should receive an attributes object, or should assume it's bound to the model instance and rely on this.get('...') and this.previous('...').
Enforcing that change would break backwards compatibility, if Model#set no longer passes attrs into validate().  However, we could maintain backwards compatibility by continuing to pass the attributes object into validate() so that existing code continues to work, but new validate() functions can use this.get and this.previous.
It will still represent a backwards-incompatible change in that the full new state of the model is passed to validate() rather than just the requested changeset, but I think that would be a good change.

Well, I guess this ignores the use case of sending a partial update to validate() without actually changing the object, to see if the update would be valid before applying it.  @jashkenas, is that a desired use case, or should this larger change move away from and break that use case?

I've added test cases to illustrate the idea here: https://github.com/jasonm/backbone/commits/jm-set-validate-rollback

What is the current state of this fix? For the time being I can call model.save(model.attributes, { error: ... }), but I'd prefer not to.

I'd still be happy to look at a patch that tackles/changes this in a holistic way ... but currently, things are plugged together as designed.
When you write a validate function, you have at your disposal the current state of the model, and the incoming change set, and you are able to look at that change or diff or union any way you see fit...

This has now been overhauled in ab164c450da4d5c883d5b2b2817fa6a416a4b55a ... the entire new state is passed to validate, not just the delta. Validate is also applied more harshly, and will be run even on silent changes.


Terratest & Example

[1.1.1] - 2020-12-11
Added

Simple example of IAM Sleuth deployment
Terratest to verify terraform setup

Fixed

Few erroneous python tests fixed

Gosh dang it I forked this repo. Closing for now.


Controller's inheritence is changed when running as a suite

I encountered a strange problem when using Doorkeeper and RSpec after doorkeeper-gem/doorkeeper@84f809aa98fcde3272d45e0381ebb6829df8f8f7.
I am using rspec-rails 3.0.3 and had the issue using both MRI 2.1.2 and JRuby-1.7.13 in 2.0 mode. Here is a link to one of my CI builds showing the failure.
Basically I have overridden a couple of Doorkeeper's built in controllers resulting an inheritance chain that looks like MyController < MyModule < Doorkeeper::AuthorizationsController < Doorkeeper::ApplicationController < Helpers::Controller .... This is the class I'm inheriting from.
The problem I'm encountering is that when I run my full suite with bundle exec rspec the ApplicationController here is being interpreted as my application's ApplicationController and my inheritance chain is changed to  MyController < MyModule < Doorkeeper::AuthorizationsController < ApplicationController <  ...
I'm not sure the best way to break this down into a test case for you, but as some example code.
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
end

app/controllers/authorizations_controller.rb
class AuthorizationsController < Doorkeeper::AuthorizationsController
  before_action :flash_dance

  private

  def flash_dance
    flash[:notice] = "DANCE!"
  end
end

spec/controllers/authorizations_controller.rb
require 'rails_helper'

RSpec.describe AuthorizationsController, type: :controller do
  it 'should throw a method undefined error when run as a suite'
     expect{get :new}.to raise_error(NoMethodError)
  end

   it 'should redirect when run individually' do
     get :new
     expect(response).to redirect_to("/users/sign_in")
   end
end

What I'm observing is that bundle exec rspec the first test would succeed and the second would fail and bundle exec rspec spec/controllers/authorizations_controller.rb the first test would fail and the second succeed.
Let me know if there's any more info that would be helpful.

Just a tip for future readers: We encountered this same problem and remedied it by turning on config.eager_load = true in our test environment configuration. No need to manually require any files.


feat: port MeasureTheory.Integral.Layercake

Half of the theorems here are in the MeasurableSpace namespace, and the others in the root namespace. Not sure if that was intentional.


Increased flagging frequency for active members on specific sites

For example, I'm very active on GraphicDesign, so me getting extra flags would be helpful for me (at least towards the gold badge) yet most of my auto-flags end up going to sites like Drupal or Ubuntu, which I have no activity or interest in (Though it's still cool to get more badges towards my network profile, but it's preferable to get it on a site I'm active on)
This is in addition to core, so you obviously have to be core.
We can define active as Over X Rep and activity over a certain amount of time (so you didn't just ask/answer a few Hot questions a while back and now have tons of rep)

While this would be nice, I think it will be waaay too complicated to implement (especially when you consider the time taken to develop vs. the number of people who will use it). Additionally, we may draw bad attention from some folks in the meta crowd who think we're 'abusing the system with bots'.

I wrote some example code on how to validate these weighted settings to ensure they're fair to everyone.

Don't complicate things. Just cut by rep so it's easier to implement. Allow each core member to select 1 site that they like to have triple weight when being randomly selected from the pull, and 3 to 4 sites that they like to have double weight. So you can manually select sites that you'd like to have (and can spare) more flags.


How to specify vite config file? -c flag like in vite CLI?

Is this possible? I have a project with multiple vite config files.
Example: vite-ssg build -c vite.config.website.ts

Just to confirm, is this currently not possible?

PR welcome

For guys coming here, use -c or --config
Ex:
vite build -c build/vite.config.ts


Error thrown when working with class containing semicolon-terminated constructor or method declaration

A TypeError is thrown when getInstanceMembers or getStaticMembers is called on a class that contains a method or constructor whose body is followed by a semicolon, as shown in the example below.
import TsSimpleAst from 'ts-simple-ast';

const ast = new TsSimpleAst();
const sourceFile = ast.createSourceFile('example.ts', `

export class Example1 {
  method() {}
}

export class Example2 {
  method() {};
}

`);

sourceFile.getClass('Example1').getInstanceMembers(); // works
sourceFile.getClass('Example2').getInstanceMembers(); // throws
sourceFile.getClass('Example1').getStaticMembers(); // works
sourceFile.getClass('Example2').getStaticMembers(); // throws

I'm not sure why one would want to put a semicolon after a constructor or method declaration, but it happened on my project nonetheless.  The stack trace seems to indicate that such declarations are parsed as something other than a normal ConstructorDeclaration or MethodDeclaration.  We're using ts-simple-ast v8.2.0, ts-node v3.3.0. node v6.12.3, and typescript v2.6.2.
~/node_modules/ts-simple-ast/dist/compiler/class/ClassDeclaration.js:470
        return this.getMembers().filter(function (m) { return !utils_1.TypeGuards.isConstructorDeclaration(m) && (utils_1.TypeGuards.isParameterDeclaration(m) || !m.isStatic()); });
                                 ^
TypeError: m.isStatic is not a function
    at ~/node_modules/ts-simple-ast/dist/compiler/class/ClassDeclaration.js:470:166
    at Array.filter (native)
    at ClassDeclaration.getInstanceMembers (~/node_modules/ts-simple-ast/dist/compiler/class/ClassDeclaration.js:470:34)
    at Object.<anonymous> (~/test.ts:21:33)
    at Module._compile (module.js:570:32)
    at Module.m._compile (~/node_modules/ts-node/src/index.ts:392:23)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .ts] (~/node_modules/ts-node/src/index.ts:395:12)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)

Interesting. Thanks for reporting this! The compiler in this case is creating a SemicolonClassElement node (see with ts-ast-viewer.com):

I submitted a fix and it's now released in v8.2.1.
Sidenote: While looking at this I wasn't too happy with the state of ClassDeclaration. It was one of the first parts I added to this library. I opened #266.


Added new and open status duration metrics in business minutes

Are you a current Fivetran customer?
Yes: Tim Hoare, Data Scientist @ Codat
What change(s) does this PR introduce?
This adds a couple of new columns to the ticket metrics model, that are durations in business minutes that tickets are in the "new" and "open" status. These are counterparts to existing columns that are in calendar minutes
Did you update the CHANGELOG?

[x] Yes

Does this PR introduce a breaking change?

[ ] Yes (please provide breaking change details below.)
[x] No  (please provide an explanation as to how the change is non-breaking below.)

I don't believe this is a breaking change as there are only new columns being added
Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

[x] Yes

Is this PR in response to a previously created Bug or Feature Request

[ ] Yes, Issue/Feature [link bug/feature number here]
[x] No

How did you test the PR changes?

[ ] Buildkite
[x] Local (please provide additional testing details below)

I made the changes locally and ran dbt run --select zendesk. All of these ran successfully and I can see that the new columns were added in the table in the database, with the desired output

Select which warehouse(s) were used to test the PR

[ ] BigQuery
[ ] Redshift
[x] Snowflake
[ ] Postgres
[ ] Databricks
[ ] Other (provide details below)

Provide an emoji that best describes your current mood

:dancer:

Additionally, if you wanted to give the branch with the PR #94 changes to confirm you see your expected output that would be a huge help! If you wanted, you can test that branch by using the following in your packages.yml
packages:
  - git: https://github.com/fivetran/dbt_zendesk.git
    revision: bugfix/schedule-holiday-addition ## In place of your existing package version for Zendesk
    warn-unpinned: false

This branch essentially includes holidays within ticket schedules. If you do not use holidays then you should see no change. I am just looking to get confirmation on the expected behavior before rolling these changes out. Let me know if you are able to test. If not, no worries at all. Thanks 😄


When using go1.9beta2，version check fail

go version

go version go1.9beta2 linux/amd64

make

/bin/sh: 1: test: Illegal number: 9beta2
Makefile:46: *** unsupported Go version , Grumpy requires at least 1.6. Please update Go。

Thanks for the report. I will update the Makefile to better handle weird version numbers.


Use textmate grammar token kind to exclude unbalanced brackets from being colorized

When a bracket is marked as comment, string or regexp token, it is not considered for bracket pair matching. It would be great to have a non-bracket token, so that we can use < ... > in languages such as TypeScript or rust, where it is both used as bracket and as comparison operator. The comparison operator should have token-kind non-bracket.
Would fix #144723, #138868, #142117, #145219 and others.
@alexdima FYI

We could some bits from the background color:
https://github.com/microsoft/vscode-textmate/blob/677f741f5b5ef69589e0e5d2a6e556f94514cbfd/src/main.ts#L217

I like the idea of taking advantage of parsing result.
However, I wonder if it's reliable to use TextMate-based tokenization. TextMate grammar has serious limitations, and cannot correctly express many languages, like C++, TypeScript, HTML, and Markdown. For example, we have to compile the whole project first to understand this C++ code:
a<b<c>> d;

Perhaps semantic tokens will be a good candidate to power this feature.

verification steps:
A grammar contribution can now define balancedBracketScopes (defaults to ['*']) and unbalancedBracketScopes (defaults to []).
The easiest way to try this is out is by changing an existing grammar contribution (package.json -> contributes/grammars, like here)
There you can list scopes to exclude or include scopes which contains balanced brackets.
"balancedBracketScopes": [
    "*"
],
"unbalancedBracketScopes": [
    "meta.scope.case-pattern.shell"
]

Verify that bracket pair colorization does not colorize scopes which contain unbalanced brackets.

/verified, I think?
I opened a 'sh' file with stable and insiders.
For the case-pattern, stable will show this:

Insiders shows this, where it looks to me like it's allowing the unbalanced bracket scope.


Common background for each level in the memory game

Issue : The background of each level (easy , medium ,  hard)is black .
Changes that can be made : A common image background to each of the levels that would make the pages look interactive .

Please assign me this issue under LGMSOC'21 .

Assigned @Amit-45 , go ahead.


[TreeShaking Issue] The createCustomError is always getting included in the output. #45

[Symbol support] Have the ability to always return the polyfill symbols if not supported #46

Codecov Report

Merging #47 (61f0b1d) into main (437185f) will increase coverage by 0.01%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   97.88%   97.90%   +0.01%
==========================================
  Files          34       34
  Lines         568      572       +4
  Branches      126      127       +1
==========================================
+ Hits          556      560       +4
  Misses         12       12

Impacted Files
Coverage Δ

ts-utils/src/symbol/symbol.ts
95.45% <80.00%> (ø)

ts-utils/src/helpers/customError.ts
100.00% <100.00%> (ø)

ts-utils/src/internal/constants.ts
100.00% <100.00%> (ø)

ts-utils/src/polyfills/array.ts
100.00% <100.00%> (ø)

ts-utils/src/polyfills/symbol.ts
97.05% <100.00%> (+0.18%)
:arrow_up:


Create Aircashflow

Air coin to the moon.
A good project

oh yeah!

Nice move

let's gooo

an absolute great project. I'm thrilled at the stronghold of the project. Amazing to see tbvh.


Handling Defaults and Required params

Let me know if this approach is as per the standard.

@Rangababu-R after syncing with main (which uses models version 0.4.0), there's an existing issue in this implementation that was exposed where contents of values are surrounded by single quotes. e.g.
    _DEFAULTS = {
        'choice': 'value',
        'value': '00:00:00:00:00:00',
        'values': '['00:00:00:00:00:00']',
    } # type: Dict[str, str]


Get all milestone merge request

Just like the milestone_issues there should be milestone_merge_requests.

There is currently an open merge request for this feature in GL and it should be released with version 9. You can assign me to this issue, I will add this feature once it is released in GL.
GL MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9298


For v2.3.0 -> v2.3.1, the inclusion of gaxios was temporarily breaking.

For three days (Dec 11 - Dec 14), installing gtoken would install gaxios v1.0.3, which incorrectly returns JSON responses as a string, and not the parsed object (fixed in v1.0.4).
This broke google authentication for us until today. Just a heads up for anyone else that may be having authentication issues.

Yeah, apologies about that one :/ . We fixed it pretty quickly (a few hours), but yeah new installs were broken for a bit. Should be all good now!


Proposal: Mounting

Suggested Changes
1) New possible .mount(..) calls:
// A - HTMLElement argument
seed::App::build(Model::default(), update, view).mount(seed::body())

// B - &str argument
...mount("app")  // mount to element with `id` 'app'

// C - Element argument
....mount(seed::body().querySelector("section").unwrap().unwrap())

// D - Default mount point
seed::App::build(Model::default(), update, view) // not called => same as B

2)
Remove function .mount_el(..)
Why

One mount function per type (mount(&str), mount_el(Element), ..):

It's not very flexible for supporting more types in the future
It makes codebase/API a little bit more complicated
We have to write mount_el(seed::body().into()) if we want to pass HTMLElement as argument or implement another function like mount_html_el

Resolving Breaking Changes
Removing function .mount_el(..):

We can mark it deprecated and remove it in the future
It's missing in guide (https://seed-rs.org/guide/2), so no changes are necessary in docs

Possible Implementation
pub fn mount(mut self, mount_point: impl MountPoint) -> Self {
    ...
}

Next Steps
I'll implement it after we agree on a scope of changes. Thanks for opinions and counter-arguments.

As usual, I have little to add: Agree on all counts - this is a syntax improvement with no obvious downsides.


make Select2 v4 compatible. fixes #2

Thanks. I'll have a play with it and probably merge in the next few days.
I'm kind of new to this but I think I'll tag a version 1.1 which includes your accessor patch and then make a version 2 with this Select2 4.0 patch.

:+1:


issue #102

Resolved !!!

Please remove the .idea files, the PR is good but those files shouldn't be in here.
Thanks! ❤

Buddy!! .idea is removed !!

Yeah, I too think its IDE,  I am using webstorm, so it could be the reason!!


[False positive] for Storage::put and UploadedFiles

Larastan Version: 0.3.15
--level used: 5

Description
I am getting a false positive for Storage::put with uploaded files:
Parameter #2 $contents of method Illuminate\Contracts\Filesystem\Filesystem::put()
expects resource|string,
array<Illuminate\Http\UploadedFile>|Illuminate\Http\UploadedFile|null given.

As you can see, the Laravel code already does a check for Uploaded files:
https://github.com/laravel/framework/blob/c821cbf6f20fca4c50aa9d8fb08f71425afc07b8/src/Illuminate/Filesystem/FilesystemAdapter.php#L188-L191
I guess I could just call putFile directly to get rid of the error, but it's not available in the Filesystem contract. Also: using put with files changes the return type from bool to string, so there's that.
Laravel code where the issue was found
public function store(Request $request)
{
    $image = $request->file('file');

    Storage::put('images', $image);
}

Thank you for the report.
Please do send a PR to Laravel: resource|string|File|UploadedFile


[Scenes] Fix over allocation in SceneSaveEFS

Currently the cluster count retrieved for the buffer memory allocation is retrieving all buffers from the endpoint. Once the scenable quality is supported, we need to implement a way to retrieve only the scenable server clusters.

Related to https://github.com/project-chip/connectedhomeip/issues/24177


Be more flexible with data that is not declared in a schema

After talking with @davidread, a use case arose where we'd like to process data files that have additional fields that are not declared in the JSON Table Schema for that data file.
Options for this scenario:

Ignore those extra fields (only validate against the ones in the schema)
Infer and validate those extra fields, and give feedback to user about them

e.g. spend data sees quite commonly columns included, such as 'supplier post code', which are helpful to users, but aren't part of the schema. Good Tables should not whinge about these. Although it might raise the question whether these are genuinely bonus columns or misspelt optional columns.

Here's a CSV we wrote a schema for:
http://data.gov.uk/dataset/clinical-commissioning-group-sites/resource/26370f4a-aa24-4a09-a76d-a2de5466b500
The problem is there duff columns like 'COL18', 'COL19' etc which it seems pointless to mention in the schema. Yet we have to because JSON table schema says:

fields is an ordered list of field descriptors one for each field (column) in the table

This is the resulting schema: https://raw.githubusercontent.com/datagovuk/health-schemas/add-missing-blank-columns/eccgsite.json

FIXED


Fixed rate limiting for transfers that underun the buffer. Fixes #58

Some transfers, such as HTTPS have a consistently small chunk size (e.g. 16kb). Since these do not fill the default transfer buffer (32kb) on each read, the rate limiter becomes overly aggressive, limiting each read as though it would read 32kb.

It works. however, when transfer buffer size get larger, it would be still hard to control the data flow rate accurately and smoothly by waiting.
In my previous experiences using a signal channel would work much ideally when we are doing batch download and sharing threshold to all goroutines:


Cherrypick util env

Changes

Current dependencies on/for this PR:

main

PR #395   👈

This stack of pull requests is managed by Graphite.


Dev: Fix the description typo

Fix the description typo

A duplicate of https://github.com/pfpack/pfpack-dependency-registry/pull/18


angular2-template-loader v0.6.1 is broken

The angular2-template-loader dependency needs to be fixed at v0.6.0 because v0.6.1 is broken (it doesn't work with relative paths). There's an issue for it but in the meantime the generator creates bad Angular environments.

Thanks for the report. I've published generator-aspnetcore-spa 0.8.2 which pins to angular2-template-loader. I'll revert that change once angular2-template-loader contains a fix for this.

Closing now the upstream issue in angular2-template-loader is fixed.


Something isn’t working

Idk what’s happening I patched bonelab and put all the files where they need to be but the helper always stops at this

Fixed by switching to public beta - you can do this in the Oculus App.

Stale


Ok/rust getting started

First rust sample for basic getting started scenario

Adding cargo.toml at the root does not work with the existing cargo commands. So for now I am not doing that. Any cargo file needs to be tied to the rest of the cargo files.

Adding cargo.toml at the root does not work with the existing cargo commands. So for now I am not doing that. Any cargo file needs to be tied to the rest of the cargo files.

sure, and the cargo.tom at the root should reference all the other cargo.toml
Can you try to find a sample on how to do it correctly?

@andyk-ms I saw you approved the PR without my suggestions to refactor the TLS code into the mqttclients lib.
Do you want to get this merged now and do the refactor later?
I'd prefer to complete this PR with the proper helper methods to avoid the code duplication we have in Python.


Automatically build and release images to docker (in CI)

We're currently trying to run a local instance of Svix during our tests, so this would be really helpful. :)
Version 0.51.0 (the latest image) is currently failing with
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Execute(Database(PgDatabaseError { severity: Error, code: "3F000", message: "no schema has been selected to create in", detail: None, hint: None, position: Some(Original(29)), where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("namespace.c"), line: Some(497), routine: Some("RangeVarGetCreationNamespace") }))'

(I assume something to do with running migrations, but svix-server migrate isn't available in 0.51.0.)

Just pushed a new docker image, sorry about that. I think we also improved error messages since 0.51.0. :)
Migration should run automatically in release builds though, so I don't think it's the lack of the migration command that's causing issue. The idea behind adding it was to just bring more control to people who want to manage the migration process.

@codetheweb, I just had a chat with one of our customers that also used the docker, for him it was literally just about running: docker-compose up, and everything worked.
How are you running Svix?

I'm no PG expert, but altering the role like this seems reasonable, no?
Anyhow, if theres' an issue please open another ticket, yeah. :P


It's nice to have a way to change types of inherited parameters

Sometimes in a derived type you need to specify a different (derived) type for a base class parameter. Most obvious is ILogger:
class Base {
   public Base(ILogger logger) { ... }
}

class Derived {
  public Derived(ILogger<Derived> logger): base(logger) {}
}

Is there a way to solve it with [AutoConstruct]?

Hmmm. Yeah this is not a simple problem. The issue is deciding which parameter to use for the base. For example, if there are multiple derived parameters that could be passed to the base with the same type, which one is used?
This issue was raised in #85 previously, and I mention there that I think that using logging like that can sometimes lead to log messages reporting they're coming from the wrong place. https://github.com/distantcam/AutoCtor/issues/85#issuecomment-1665451690
Is your issue about logging? Or do you have a different scenario that's causing issues?

Hi! Thank you for the quick answer!
This is the same issue indeed, though in the other ticket that you referenced the author has a a bit strange setup with two separate logger properties - one in the base class, and one in the derived. To make it properly buildable they also had to use new in the derived class. It's at least. And anyway, the behavior would be different, because the base class code would log into the base logger, while derived - into the derived one. Not sure if it was the intention.
In my case there is a base implementation for some service that uses logger. And there are number of services inheriting from this base implementation. All of then use the utility methods from the base implementation, but expect that logs will be written on behalf of the concrete implementation, not the base logger. Hence the typing: base class depends on some unspecified ILogger (which is probably not injectable as-is anyway), concrete derived classes specify what kind of logger is it.
I don't see how it can be achieved using just standard C# constructs. Base class defines ILogger logger and derived class cannot change its type (it can in TypeScript, for example, but not in C#). So the only idea I have so far is to do it via AutoCtro attributes:
class Base {
   public Base(ILogger logger) { ... }
}

[AutoConstruct]
[AutoConstructParameter<ILogger<Derived>>("logger")]
partial class Derived {
}

"AutoConstructParameter" is very much a raw idea. There are multiple ways to do it.

Ok! So I think I disagree with where I'd want the logging to say it's from. The code should log if it's being run in the base since when I look at a log I like seeing the direct location the log line came from.
In any case, I think it might be possible to acheive what you're looking for with generics.
class Base<TLogger> {
    public Base(ILogger<TLogger> logger { ... }
}

[AutoConstruct
public partial class Derived : Base<Derived> {
    private readonly ILogger<Derived> logger;
}

I managed to turn this into a test so it works. https://github.com/distantcam/AutoCtor/blob/main/src/AutoCtor.Tests/Examples/DerivedExample.cs

Well, of course, this will work, but it's not the point. The point that sometimes you need to specify a different (compatible) type in derived classes. In my current case it's a logger, but it's not the only possible case. The debate on how to properly use loggers is out of the scope. :)

Ok, I don't like working with hypotheticals. There might be other cases, but I don't know if I'm solving the problem correctly for other situations if I'm not sure what they are. Yes theoretically there might be other possible cases, but so far it's only come up about ILogger.
Given that, I don't consider the correct use of ILogger as out of scope, as that is the specific problem you're trying to solve. I've suggested 2 potential solutions - 1) reconsider how you use ILogger in the base so it reports the correct class, or 2) use generics so the base class can be passed the logger when used with AutoCtor. There are other options too. Use ILogger instead of ILogger<Derived> in the derived class. Make the logger in the base protected, so derived can access it instead of needing it's own copy.
For me, this debate is how AutoCtor should act properly in ambiguous situations, and right now I'm leaning towards saying use ILogger properly, and there's no problem. I disagree that the debate about loggers is out of scope.

The discussion is coming into non-productive field Cameron. You do not decide how I design my classes. And it is not up to you to tell me what is right and what is wrong. With all due respect.
The situation is not hypothetical, it is practical case, and it is supported by C# capabilities. The question is if your tool supports overriding types of base dependencies types or it does not. And I have to say that it's a pity that a great tool has such a flaw.

You are right, I don't decide how you write code. I can only decide what features I wish to support in my own project. And in this case I am yet to be convinced that this is worth investing my time. You do not decide what features I implement.
My tool is simply designed to help automate some of the boilerplate code I was noticing myself and my coworkers writing over and over again. Anything more complex than the basics I recommend writing the constructors manually instead. when I mentioned other hypotheticals I was refering to other examples than just ILogger.
I'm not opposed to this idea. If I was I would have just closed this issue. I have implemented features I haven't seen the need for in the past (#105) but without knowing how this might cause issues beyond just the ILogger scenario, II can't trust that a rushed implementation won't break things.

We are on the same page here. :)
For now I got back to exactly that - made a series of constructors manually. I still think It would be nice to have such a feature in your tool, though.
How about a different idea. You already have [AutoPostConstruct] mechanism that also allows specifying dependencies. Now, if I would make a logger parameter there, it will be emitted as logger1 and I essentially would have two loggers injected: with baes and with derived types. What if there would be a way to say that a specific post-construct parameter "replaces" an inherited parameter? This would be a way to tell the tool that it shouldn't create two different variants of the param with the same name, and it will also know what is the desired type.


Could not access to paymentCardTextFieldDidChangeWithCardNumber in obj-c project

Hello,
I don't know why but your project dinde work properly in obj-c. Was working in 0.1.3 but since i update to 0.2.0 (mandatory by Xcode) the lib stop working
error:

No visible @interface for 'CreditCardFormView' declares the selector 'paymentCardTextFieldDidChangeWithCardNumber:expirationYear:expirationMonth:cvc:'
No visible @interface for 'CreditCardFormView' declares the selector 'paymentCardTextFieldDidEndEditingExpirationWithExpirationYear:'
No visible @interface for 'CreditCardFormView' declares the selector 'paymentCardTextFieldDidBeginEditingCVC'

@property (weak, nonatomic) IBOutlet CreditCardFormView *creditCardForm;

Even i am facing the same issue.  Any workarounds for this issue ?  Thanks.

I am facing the same issue.


Arduino IDE gives an error with a specific line in "Firebase.h"

I have already uploded the following sketch to my NodeMCU in the past, but from today I am getting the following error. I wonder if someone has experienced something similar and knows how to solve it.

C:\Users\PP\Documents\Arduino\libraries\firebase-arduino-master\src/Firebase.h:86:60: error: expected unqualified-id before '>' token
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

I have tryed changing that line but it's always a similar error. If I deleat it I get an error in a very similar line in file "FirebaseObject.h".
The sketch is the following and had already worked in the past:
thank you in advance!

/*
 Stepper Motor Control - one revolution

 This program drives a unipolar or bipolar stepper motor.
 The motor is attached to digital pins 8 - 11 of the Arduino.

 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.

 Created 11 Mar. 2007
 Modified 30 Nov. 2009
 by Tom Igoe

 */

#include <Stepper.h>
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>

const int stepsPerRevolution = 4076;  // change this to fit the number of steps per revolution
const int halfRevSteps = stepsPerRevolution*180/360/2;
// for your motor
int current = 0;
int currentSteps=0;
bool Mclock=false;

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 14,13,12,15);

#define DELAY 1    // Delay to allow Wifi to work

// Internet
#define FIREBASE_HOST "database1-8493e.firebaseio.com"
#define FIREBASE_AUTH "pVnxsM4bkBFpDzMZiTir7fKD4bSu86iAZilXlHOl"
#define WIFI_SSID "LANGOPP"
#define WIFI_PASSWORD "altoapure"

#define min(a,b) ((a)<(b)?(a):(b));

void setup() {
  // initialize the serial port:
  Serial.begin(9600);
  // set the speed at 10 rpm:
  myStepper.setSpeed(3); //con 4 a veces pierde algun paso, con 3??

    // connect to wifi.
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
  Serial.print("connecting");
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }
  Serial.println();
  Serial.print("connected: ");
  Serial.println(WiFi.localIP());

  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

  current = Firebase.getInt("current");
  currentSteps=(int)current/360/2*stepsPerRevolution;

  //Serial.println("ESCRIBIR LA CANTIDAD DE GRADOS:");
  }

void loop() {

  // get value
  int target = Firebase.getInt("target"); //ESTO TENDRIA QUE VENIR DESDE FIREBASE
  Serial.print("Target: ");
  Serial.println(target);
  Serial.print("Current: ");
  Serial.println(current);

  if(target!=current){

if(current<=target){
  if(target-current<=180){Mclock=true;}else{Mclock=false;}
} else{
  if(current-target<=180){Mclock=false;}else{Mclock=true;}
}

   int distance1 = target - current;
   int distance2 = target - current + 360;
   int distance3 = target - current - 360;
   int distance = min(abs(distance1),abs(distance2));
   distance = min(abs(distance),abs(distance3));

    float stepsf = distance/360.0/2*stepsPerRevolution;
    int steps = (int) stepsf;

    if ( Mclock==true ) { // Forward
      Serial.print("FORWARD");
        for (int i=0;i<steps;i++) {   // This loop is needed to allow Wifi to not be blocked by step
          myStepper.step(1);
          currentSteps = currentSteps+1;
          delay(DELAY);
        }
      }
      else {         // Reverse
        Serial.print("REVERSE");
          for (int i=0;i>-steps;i--) {   // This loop is needed to allow Wifi to not be blocked by step
            myStepper.step(-1);
            currentSteps = currentSteps-1;
            delay(DELAY);
          }}

      current=(int)currentSteps*360.0*2/stepsPerRevolution;
      while(current>=360){current=current-360;}

      current=target;
      int target = Firebase.getInt("target");
      if(target==current){
          Firebase.setInt("current",current);

          }

  }}

SOLVED: by downgrading ArduinoJson library to version 5.13.1
thanks!

great to hear it worked!
@manteca17 : on a side note: you may want to remove old and generate new AUTH token since you posted it here for everyone to see, as well as your wifi network and pass phrase. Next time, just create a header file next to the .ino file and include it in .ino file and post only .ino file as your question.


How to tutorial change size camera?

thanks you

The code for cropping is at android.graphics.Bitmap com.xdandroid.hellocamera2.util.BitmapUtils.crop(android.graphics.Bitmap originalBitmap) method. After you change sizes in layout XML, you also need to modify size parameters used in the cropping method.
The crop size processing code in the cropping method shows below (com.xdandroid.hellocamera2.util.BitmapUtils, Line 40 - 45):
//The crop starts from coord (52, 80), when in 1280x720 design spec.
int x = (int) (52 * scaleX + 0.5);
int y = (int) (80 * scaleY + 0.5);
//The crop size is 896(px) x 588(px), when in 1280x720 design spec.
int width = (int) (896 * scaleX + 0.5);
int height = (int) (588 * scaleY + 0.5);
You need to modify the 2 parameters above, according to the sizes modified in layout XML.

thanks you!


can not build tn48m image

DistributionUbuntu 20.04
RAM: 128GB
Filesystem: ext4
Docker daemon logs:
>>> Downloading 'https://zlib.net/zlib-1.2.11.tar.gz'
#14 2874.3 --2022-07-11 12:15:26--  https://zlib.net/zlib-1.2.11.tar.gz
#14 2874.3 Resolving zlib.net... <IP_ADDRESS>
#14 2874.3 Connecting to zlib.net|<IP_ADDRESS>|:443... connected.
#14 2874.3 HTTP request sent, awaiting response... 404 Not Found
#14 2874.3 2022-07-11 12:15:27 ERROR 404: Not Found.
#14 2874.3
#14 2874.3 !!! Couldn't download 'zlib-1.2.11.tar.gz'. Aborting.
#14 2874.3  * Fetch failed for 'sys-kernel/genkernel-4.2.6-r2', Log file:
#14 2874.3  *  '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r2/temp/build.log'
#14 2874.3  * Messages for package sys-kernel/linux-firmware-20220708:
#14 2874.3  * Your configuration for sys-kernel/linux-firmware-20220708 has been saved in

#14 2874.3  * "/etc/portage/savedconfig/sys-kernel/linux-firmware-20220708" for your editing pleasure.
#14 2874.3  * You can edit these files by hand and remerge this package with
#14 2874.3  * USE=savedconfig to customise the configuration.
#14 2874.3  * You can rename this file/directory to one of the following for
#14 2874.3  * its configuration to apply to multiple versions:
#14 2874.3  * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
#14 2874.3  * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
#14 2874.3  * If you are only interested in particular firmware files, edit the saved
#14 2874.3  * configfile and remove those that you do not want.
#14 2874.3  * Messages for package dev-libs/boost-1.79.0:
#14 2874.3  * Boost.Regex is *extremely* ABI sensitive. If you get errors such as

@jpetrina thanks your suggestion resolved this issue


Ump folder under util

We should not have any items related to UMP in our open source release
We should rename the "util" folder to "utils"

the ump packet in this version,it can print warn message to a warn file.
Because inside the company, we used ump for custom alarms, in order to maintain code consistency, so added


feat: implement artifact db cache for cost surfaces

Substitute this line for a meaningful title for your changes
Overview
Please write a description. If the PR is hard to understand, provide a quick explanation of the code.
Designs
Link to the related design prototypes (if applicable)
Testing instructions
Please explain how to test the PR: ID of a dataset, steps to reach the feature, etc.
Feature relevant tickets
Link to the related task manager tickets

Checklist before submitting

[ ] Meaningful commits and code rebased on develop.
[ ] If this PR adds feature that should be tested for regressions when
deploying to staging/production, please add brief testing instructions
to the deploy checklist (docs/deployment-checklist.md)
[ ] Update CHANGELOG file

@Dyostiq feel free to merge this after merging its base branch if you are happy with it and don't need to apply any further changes


JPEG image produces unrecognized file format error

I have what I believe is a valid JPEG image from a camera and when I try to obtain the size I get the ProbeError: unrecognized file format message.
const sizeOf = require('probe-image-size');

(async () => {
  console.log(
    await sizeOf(
      'https://user-images.githubusercontent.com/1081811/141005965-09e60140-5a30-42ab-989a-dea0c3c361d7.jpg'
    )
  );
})();

reject(last_error || new ProbeError('unrecognized file format', 'ECONTENT'));
                           ^
ProbeError: unrecognized file format
    at ParserStream.parserEnd (/Users/Jako/Dev/github/double-take-alt/api/node_modules/probe-image-size/stream.js:39:28)
    at Object.onceWrapper (node:events:509:28)
    at ParserStream.emit (node:events:390:28)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONTENT'
}

Quick reproduce:
node ./support/dump.js https://user-images.githubusercontent.com/1081811/141005965-09e60140-5a30-42ab-989a-dea0c3c361d7.jpg

@jakowenko file seems partially broken or non-standard (investigation in progress). Could you describe details, how you got it? Camera model, photo params and so on. Anything about how to reproduce images of this kind.

The image comes from a Dahua Camera with official Dahua firmware
Device Type:  IPC-T5442T-ZE
System Version:  V2.820.0000000.5.R, Build Date: 2021-07-05
The image is pulled by hitting the camera's "snapshot" url:  http://ip_address/cgi-bin/snapshot.cgi
The camera is behind a private network, so you won't be able to pull more images from it, but I'm happy to grab as many as you need and send them over.  I've looked at four and all had the same issue within probe-image-size and the same error.

FYI @puzrin, I originally created the ticket on behalf of @rsteckler, which is why I asked him to provide that info.

Also, if possible, please provide more such photos. Currently we have two:

https://user-images.githubusercontent.com/1081811/141005521-d414b5a9-a8ab-4731-a842-f624bc13d456.jpg
https://user-images.githubusercontent.com/1081811/141005965-09e60140-5a30-42ab-989a-dea0c3c361d7.jpg

That's enough to prove "problem is reproducible", but i'd like to understand details - is that from new camera, old camera, and why we missed such case.

Oops, the one with the person should not be included. Let me edit that out of the original issue. Can you remove from your comment too please.
I'll have @rsteckler provide some more.

It's a relatively new camera, released early 2020, but I don't imagine it's any different than what other Dahua cameras produce.
Here are more images:

Here's one I generated with a slightly different URL.  Curious if this one is any different?:

I'm happy to grab as many as you need, but the camera itself is on my private network and I'm pretty hesitant to expose it publicly.

(and as menitoned, please remove the image with my face in it :) )

I removed requested links and don't need any private info.
This bug will be fixed.

My question is about camera model. Need to understand who can produce such "strange" images. Difference from common - multiple 0x00 between jpeg segments.

This is not described in standard.
Some utilities like /usr/bin/file don't understand such files too.
Browsers understand such images.

The camera model is Dahua IPC-T5442T-ZE
It's become pretty popular in the security community in the last year.
Appreciate you implementing a fix even though these seems like an edge case and is being caused by a non-standards-compliant device.

Thank you @rlidwka, do you know when this will be included in the next release?

See 7.2.2 with fixes.


Reading an image from clipboard on wayland prints its bytes to stderr

I believe this line is the culprit
https://github.com/1Password/arboard/blob/c6102b1b8515417bebc000b8c9927fc23b531a36/src/platform/linux/wayland.rs#L139
Probably a simple oversight.

Thanks for finding these! I've removed both of them, and this cleanup should hopefully be going out soon in the upcoming 3.2 release.


Network monitor shows all nodes repeatedly

/networkMonitor shows every node few times, in effect nodes counter is broken also. Example:

Fixed with https://github.com/ArkEcosystem/ark-explorer/pull/33


implement use cases

the library can be used in several places

MMODA frontend (for exploring the result context)
renku session (to help finding terms for developing workflow, and also for exploring context)
a. with jupyterlab plugin
b. with jupyter server plugin

I suggest to start with 2b and 2a
edit: to be clear 2a and 2b are alternative implementations of 2. 2b is easier (at least for me it's clear how to do, it's mostly python). 2a has a potential to be nicer but it's a bit of a new teritory. But I saw many jupyter lab plugins and the sdk seems simple enough. So we could explore 2a, and if it hard - resort to 2b. and then if we like the use case - put more effort to implement 2a.
if 2a is not too hard - we can do it without 2b.

First part implementation, the icon is there :tada:


Bug On Slide Up

The operation of this plugin is almost perfect, when we slide down it works properly but when we slide up it shows the current and previous letter.
https://ibb.co/mKY4Ha

Hi I just merged a fix to the src folder can you confirm this solve the problem?


Player stretch_width doesn't move the slider

player = pn.widgets.Player(
    start=0, end=0,
    value=0, loop_policy='loop',
    sizing_mode='stretch_width'
)
player

Workaround:

                    pn.Row(
                        pn.Spacer(sizing_mode='stretch_width'),
                        player
                        pn.Spacer(sizing_mode='stretch_width'),
                        sizing_mode='stretch_width'
                    )


How to scroll with sticky nav on top..

Hi there,
i've web structure like this
 <- sticky nav (height:100px)

 <- big banner

 <- content
 < sticky too...
 <-here my problem

the problem is how i only scroll doccontent with set margintop of anchor 100px too (because i've
![1 default home]
sticky nav on top..)
Please help me to find ways scroll anchor with sticky navigation menu..
really thankfull for your helping..
(https://user-images.githubusercontent.com/9944012/27365357-e7232cde-5669-11e7-84d5-715410c22025.jpg)

You should make this type of questions on a forum like StackOverflow, this section is mostly for bug reports and some feature requests


Wrong values

In the "Windows Server with SA Requirements Reference Table", the "VM Core Density"=20 column has multiple wrong values. Also the Excel Spreadsheet linked to in "Azure Hybrid Benefit WS SA Count Tool" calculates the wrong values. The calc formula should be MAX(CEILING("VMs"/2, 1), CEILING("Cores"/16, 1)).

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

ID: 90e335dd-0bc5-a7e3-650b-e3dd1823176b
Version Independent ID: 18f34ef3-ff61-0473-a64b-ac5a64dbe1d7
Content: Azure Hybrid Benefit for Windows Server
Content Source: WindowsServerDocs/get-started/azure-hybrid-benefit.md
Product: windows-server
Technology: server-general
GitHub Login: @greg-lindsay
Microsoft Alias: greg-lindsay

This needs to be assigned to the topic owner, which is not me. I don't seem to have perms to do the assignment.

( also ref. issue ticket #488 from the same page, needs an update )

Thanks for the feedback. I have reworked this article and removed the table. The spreadsheet has also been retired in favor of the Azure Hybrid Benefit Savings Calculator. The changes should be visible later today.
#please-close


urllib2.URLError

I installed this in a virtualenv, but it's giving me this error right after it says  * Finding metadata from Spotify. * Could not find metadata from spotify, trying something else.:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>

Try using python 3 instead. I think I removed support for python 2 because it was obfuscating the codebase.

Getting an error for Spotify authentication when using --album.
Songs download works normally.
Excellent work btw!
`  File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 119, in _internal_call
r.raise_for_status()
File "/Users/../anaconda/lib/python3.5/site-packages/requests/models.py", line 862, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/search?q=album%3Arise+of+nations&type=track&offset=0&limit=1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/../anaconda/bin/musicnow", line 11, in
sys.exit(main())
File "/Users/../anaconda/lib/python3.5/site-packages/musicnow/command_line.py", line 224, in main
tracks = get_tracks_from_album(album_name)
File "/Users/../anaconda/lib/python3.5/site-packages/musicnow/command_line.py", line 89, in get_tracks_from_album
album = spotify.search(q='album:' + album_name, limit=1)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 339, in search
return self._get('search', q=q, limit=limit, offset=offset, type=type, market=market)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 146, in _get
return self._internal_call('GET', url, payload, kwargs)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 124, in _internal_call
headers=r.headers)
spotipy.client.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/search?q=album%3Arise+of+nations&type=track&offset=0&limit=1:
No token provided`

I haven't updated this project in quite a while. I plan to use musictools to handle almost everything in this project. (Send a PR maybe?).
Anyhow, I'll get around to fixing this broken project once I have some time. Till then, as you said that it is downloading the songs properly but not adding metadata, you should try using musicrepair to add metadata to those files.


bug ？

Indeed a bug... Thanks for the reporting.
I am working on the experiments under the fixed model. In fact the performance is quite similar before and after the bug fix. All observations and conclusions in the paper remain the same. The reason is that this bug disables two 9x1 convolution of the ACRNet, which slightly harms the network ability without changing its essence.
After the new training finishes, I will update the repo and close this issue to inform you.


Improve error handling API

addresses #4

I'm not sure if we really want to make Kitchen.serve() as throwing.
General purpose error handler is just fine, maybe ?
I'm merging this anyways.


Markdown to html links

Changes markdown links to HTML  tags and sets them to open in a new window.
Bump version to 6.3.1

Don't really like this - assumes that in future people writing content will consistently remember to set link targets. Feels like this should be in the JINJA, preferably.

I don't necessarily disagree, but if we are going to have these links open in a new window for G-Cloud 9, this is probably the only way we're going to get it done - unless you know it's equally trivial to pass this off to Jinja?


Figure out how to make chocolateyInstall.ps1 properly install the module

I've decided to stop using chocolatey to install the module, and start using Install-Module and PowershellGallery.com instead.
PowershellGallery is still in bet, so i might come back to Chocolatey one day (hopefully not)


acme-dns.io timing out for some of the sub domains

I have been using the acme-dns-py version for a while (--manual-auth-hook /etc/acme-dns/acme-dns-auth.py --preferred-challenges dns), but I just tested w/ multiple (26) SANs, and I see a lot of errors like "Detail: DNS problem: query timed out looking up TXT for _acme-challenge.supervisor.zta.cyolopoc.xyz".
Using mxtoolbook I can verify this entry exist

The same is true for all other errors.
Is there an issue w/ multiple SANs?
With my registrar? Temp glitch?
Any ideas for actions I can take on my side are welcome.
Thanks

... and of course after posting, it works now.
Closing.


Autorest Regen Preview to 3.0.0-alpha.20230808.1 by Dapeng Zhang from refs/pull/3483/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/3483

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.ChangeAnalysis


Connect local instance without port

How to connect local instance without port like .\[InstanceName] using IntegratedSecurity?

just curious why you don't want to add port number.

@pimeys can we have port number as optional and have 1433 as default?

Looks like the ado.net is defaulting to 1434, but looks like it should be 1433. Please send me a PR to change this.

We have many servers with different ports. In order to facilitate the deployment of services, we now use the integrated authentication method without providing a port number.
We use odbc-rs driver to access mssql currently, now I want to change to tiberius.
By the way, I have been following this project since tiberius 0.3.x and it looks very good now. Thank you very much for your excellent work! :-) @pimeys

So, summarizing:
Here's a test to show how we do not have to provide a port number in the connection string:
https://github.com/prisma/tiberius/blob/master/src/client/config/ado_net.rs#L102-L113
But what I see here the default is wrong, it should be 1433, not 1434. It would be a great first pull request for one of you to try out to modify the SQL Server code base! :)

can we also have 1433 for JDBC as well as  default port?

So, summarizing:
Here's a test to show how we do not have to provide a port number in the connection string:
https://github.com/prisma/tiberius/blob/master/src/client/config/ado_net.rs#L102-L113
But what I see here the default is wrong, it should be 1433, not 1434. It would be a great first pull request for one of you to try out to modify the Tiberius code base! :)

I solved this problem by using SqlBrowser APIs,the address was changed to <IP_ADDRESS>\[InstanceName],and the default port 1434 is correct!


add secure migration for gsa users

Description
Adds GSA users to the office_user table for invoice auditing
Reviewer Notes

Double check I put in the right info from the ticket please
These users are only in prod. Pretty sure that's correct in this case.
I attached them to Scott AFB similar to Truss users. This seems not ideal, but creating a new office for them would would be difficult because of all the associations. Eventually, we should figure out a read only role for this.
One user didn't have a phone number. I entered an empty string.
One user had an extension on their phone. I just added it to the phone number string, but the alternative is adding a new column. This would have other implications though. I don't see us denoting phone numbers like this anywhere else though.

Setup
Add any steps or code to run in this section to help others prepare to run your code:
# review
aws s3 cp s3://transcom-ppp-app-prod-us-west-2/secure-migrations/20190320202054_add-gsa-users.sql .

# test
./bin/run-prod-migrations

Code Review Verification Steps

Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #dp3-engineering
[ ] Secure migrations have been tested using bin/run-prod-migrations

[ ] Request review from a member of a different team.
[ ] Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change

@LeDeep good catch! Updated.

Other than one incorrect phone number, looks good. Agree that handling of office is not ideal. What's the best place to document that we're assigning auditors to same office as Truss users?

@LeDeep I'm going to create a follow up ticket for our backlog

:shipit:


No information if refreshAllDataConnections() is supposed to wait for refresh to finish before it continues.

Article URL
(https://learn.microsoft.com/en-us/javascript/api/office-scripts/excelscript/excelscript.workbook?view=office-scripts#excelscript-excelscript-workbook-refreshalldataconnections-member(1))
Describe the problem
Documentation does not state whether this method is supposed  to wait for the refresh to finish. It appears to not do this.

Hi @matroosoft,
You are correct. The Workbook.refreshAllDataConnections method does not wait for the refresh to complete before proceeding. This mirrors the behavior of the Excel UI.
I will update the docs and close this issue when that change goes through. Please let me know if you have any other questions.

Hi @matroosoft,
You are correct. The Workbook.refreshAllDataConnections method does not wait for the refresh to complete before proceeding. This mirrors the behavior of the Excel UI.
I will update the docs and close this issue when that change goes through. Please let me know if you have any other questions.

Hi @AlexJerabek, thanks for your response. I'm not sure if you're in thouch with the team that developed this method. But if so, it'd be great to have it wait till the refresh is finished.
Sure, I can refresh the data using Office Scripts but everything after that (reapplying filters, acting upon the data) is immediately executed, therefore rendering the method a bit useless.
It'd be great if you'd be able to pass this information on. Thanks anyway 👍