Add support of NIDD transport for Lora and 3GPP

This aims to centralize discussion about support of NIDD transport in Leshan.

core§<IP_ADDRESS>. Behaviour with Current Transport Binding and Modes

LoRaWAN :

transport§6.8.4. LoRaWAN Binding
transport§Appendix C. CoAP over LoRaWAN

CIoT :

transport§6.8.5. CIoT Binding
transport§Appendix D. LwM2M over 3GPP CIoT - NB-IoT and LTE-M

@Przem83, @MichalWadowskiOrange, I created a dedicated issue to talk about  NIDD transport. (https://github.com/eclipse/leshan/issues/1034#issuecomment-870495461)
@madhushreegc as you already have some code which seems to run Leshan with NIDD, you may be interested (or could help) about  this topic.
I link some previous issue/work/talk about that :

https://github.com/eclipse/leshan/issues/904
https://github.com/eclipse/leshan/issues/946

@sbernard31 , Sure . Connector we have implemented our own to integrate with the other channels .

@Michal-Wadowski I see you start investigating on this.
I have no experience with this transport layer at all and one of my current concern about this feature is how this will be tested/testable ? (This is maybe a very naive question but does it needed any hardware or specific tool to do that ?)
Do you have some inputs about that ?

I'm currently do a research with my team. At first step we want to make sure that we can just implement some kind of connector that would work with Leshan without specific IP dependencies. For now we don't know how should the final product looks like.

AFAIK, there is still too much stuff depending on an IP-address (InetSocketAddress).
So, one of the most promising approaches is therefore mapping the "custom protocol" to something, which looks like IP.

message oriented transfer, then use the UDP flavor.
stream oriented transfer, then use the TCP flavor.

For both, map the "native address" into IPv4 or IPv6 addresses. Please omit multicast/broadcast addresses.
With that:

incoming messages must be converted into RawData and the "native address" is mapped into a ip-address:
outgoing messages are passed as RawData with a destination ip-address, whic must be mapped to the "native address" and the bytes must be sent with that transfer.

@Michal-Wadowski is it something Orange need ? or this is more to try to make Leshan 2.0 feature complete about LWM2M v1.1 ?

@madhushreegc, I move forward about  transport layer abstraction. #1025
If you want, you could  try to implement to add a NIDD with this new abstraction maybe inspiring yourself by #1312
This could help to know if we go in the right direction.

Sure, I will try this out. I am quite busy now , later next month mid I will try.


Minor documenation issue

While reading through the docs to learn more, I found a small error... The mentioned utility is not used?

secondly, the link on that page "edit this on github" doesn't work either, it's 404

Thanks for reporting this @kevinkhill 👍
The edit on github links were not adjusted once the website was extracted to a separate sub-package.
https://github.com/Chevrotain/chevrotain/commit/793bab451e6e8a81d717d352c1fc001f654bcd11

Happy to help 🙂


SegmentedView for iOS and Android

Description of Change
New control added from #385

Note: Migrating from Xamarin.Forms Issue 6904

Have a segmented control for Xamarin.Forms. iOS has UISegmentedControl, but Android does not. This control will provide native looking segments for Android platform.

iOS
Android

API
The SegmentedView implements IList<string> with DisplayMode of Text or Image.
SegmentedView:
class SegmentedView : View {}

Properties
SegmentedView

Name
Type
Description

Display Mode
Enum
Display mode is SegmentMode.Text by default and can be set to SegmentMode.Image as an alternative.

Color
Xamarin.Forms.Color
Main color for the control

Items
IList<string>
List of string values for title or image source

ItemsSource
IList
Items source for the values

SelectedItem
object
Selected item

SelectedIndexChanged
Event
Event handler for when a segment is selected. Raises SelectedItemChangedEventArgs with segment and selected index

SelectedIndex
System.Int32
Index of selected segment

Platform Specific - Android

Name
Type
Description

CornerRadius
CornerRadius
Corner radius on Android ONLY

Usage
XAML
<SegmentedView SelectedIndexChanged="OnSegmentSelected">
    <SegmentedView.Items>
        <x:String>View A</x:String>
        <x:String>View B</x:String>
    </SegmentedView.Items>
</SegmentedView>

<!-- Using ItemsSource -->

<SegmentedView
    SelectedIndexChanged="OnSegmentSelected"
    ItemsSource="{Binding values}">
</SegmentedView>

C#
var segments = new SegmentedView
    {
        Children = new List<string>
        {
            "View A",
            "View B",
            "View C"
        }
    };
segments.SelectedIndexChanged += OnSegmentSelected;

// handler
void OnSegmentSelected(object sender, SelectedItemChangedEventArgs e){ }

Platforms
iOS
On iOS, this is simply a UISegmentedControl.
Android
On Android, this is be a RadioGroup with a custom RadioButton that renders a simple text or bitmap drawable in image mode.
class FormsSegmentsView : Android.Widget.RadioGroup

UWP
👀 TBD
PR Checklist

[x] Has tests (if omitted, state reason in description)
[x] Has samples (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[x] Changes adhere to coding standard

[ ] Updated documentation

On Android, CornerRadius get some love...
Usage
In XAML,
<SegmentedView
    ...
    CornerRadius="20" />

Or individual configs: TopLeft, TopRight, BottomRight, BottomLeft
<SegmentedView
    ...
    CornerRadius="20,0,20,0" />

@hnabbasi can you resolve the conflicts?

@hnabbasi Great work !
Does this segementedView is scrollable (when using a big list of items) ?

@Seuleuzeuh don't think so. If you want really customizable tabs (including radius), you should use the TabView.

@hnabbasi Great work !
Does this segementedView is scrollable (when using a big list of items) ?

No. You may want to use TabView for that.

What is the difference between this and TabView?

What is the difference between this and TabView?

I see SegmentedView as a nice picker (choose from multiple options), like color picker
TabView is like a tabpage but view.
imaging SegmentedView as a tabview without content, only tabbar

Is there a timeframe for when we can expect this to be merged? - I would love to use this in my current projekt. :)

Is there a timeframe for when we can expect this to be merged? - I would love to use this in my current projekt. :)

I have addressed all the feedback items but working on fixing a fix for a BackgroundColor issue on Android. Will push out another commit this week. So, it should be soon 😃

I do want to temper the expectations here a little bit. This might be cut for the first stable version. With merging the C# Markup PR we're now feature complete for a first stable package and I would want to focus on stability rather than adding more new shiny things in there. I totally understand we want to have all the things in as soon as possible, but I think in the long run it's better to focus on polishing what is there right now first and start adding things again from there.
I'm not saying this is set in stone and what the timeframe for adding it will be. Or, maybe there is enough time to still add this in, who knows. But just wanted to drop in and manage expectations for a bit.
Having all that said, thank you for all your work and patience working with us!

@hnabbasi we merged a huge change today, are you able to fix the conflicts?

@hnabbasi we merged a huge change today, are you able to fix the conflicts?

I did before today's merge. Will pull again and resolve if anything breaks again

@hnabbasi we merged a huge change today, are you able to fix the conflicts?

I did before today's merge. Will pull again and resolve if anything breaks again

Hi :) Are you still interested in bringing this enhancement?)

@hnabbasi we merged a huge change today, are you able to fix the conflicts?

I did before today's merge. Will pull again and resolve if anything breaks again

Hi :) Are you still interested in bringing this enhancement?)

Absolutely. I will find some time this weekend 🙂

Hey @hnabbasi ! 🙂
Are you still working on this?

Hey @hnabbasi ! 🙂
Are you still working on this?

Yes. Just came back from vacation. Will resume. 😊

Yes. Just came back from vacation. Will resume. 😊

Great! Sorry for the slow response on this and everything. We'll do better this time around!
Could you make sure to target the develop branch when you get to this? :) Thanks!

Great! Sorry for the slow response on this and everything. We'll do better this time around!
Could you make sure to target the develop branch when you get to this? :) Thanks!

Could you please properly linked this pr to your issue by using the proper keywords GitHub:linking-a-pull-request-to-an-issue

Hi guys, there is an ETA for this?

@acaliaro not that I'm aware of. I see @hnabbasi has marked it as a draft so as soon as he is ready (and pings me so I will prioritize the review) it may end up in 1.1.
For the time being however you should be able to use the TabView for this. Create items with no view and handle the navigation yourself of style the TabView to look like this :)

New PR is ready to review at #867
closing this one.
cc: @jfversluis @AndreiMisiukevich @pictos


instructions for removing extra Azure API permissions per customer request

Added instructions for adding superfluous permissions when connecting WAC Azure for AKS-HCI.  I also did some linting.
/cc @abhilashaagarwala as FYI (and to add the right doc folks)

@scooley : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @scooley - This pull request was created in the public repo. PMs are asked to work in the private repo. Could you submit this update in a new PR in the private repository, and then close this PR? Note that new images that are referenced in MD or YAML files must be added to a repository as image files; we can't reference images that are hosted elsewhere, per the repo admins.
Thanks. #hold-off

Closing - moved to private repo

Thanks @scooley.


Add Microservice Transaction Sample

This PR adds Microservice Transaction Sample. Please take a look!

@feeblefakie I added How the microservice transaction is achieved section in README.md. Please take a look!

@feeblefakie  I also added the ER diagram for the schema. Please take a look!


Recommendation: Magnet and Paste

I think these two apps would fit really good in your workflow
Magnet: To keep your workspace windows organised
Paste: Stores everything you copy across all your Macs and extends clipboard capacity up to unlimited.

Hey @thewinger
I tried Magnet before but for my use cases BetterTouchTool is enough so I don't want another app running in the background.
And for Paste, I used that before and loved it but recently found that Alfred's clipboard manager is a lot faster than Paste so I switched to it. 🙂

If you want Serial Paste, Search, Last nn Shortcuts then this is the best clipboard manager I've found (after having tried many, many of them) — CopyLess.

I am quite happy with Alfred. It's super fast and does what I need already. 🙂


Sneaking state update when player is crawling

When a player is crawling they should never have their state set to sneaking, but the client will still send the start sneak action when the keybind is pressed. The server needs to know when the player is crawling and ignore that packet.

Fixed in https://github.com/hollow-cube/minestom-ce/commit/d8ef618d08d0107a4698f7d2700755481b29290e and https://github.com/hollow-cube/minestom-ce/commit/666bb98957221347c362ae657a3a5ad17a05d09c, but for now it requires the minestom.experiment.pose-updates system property to be set for it to be enabled.


Fix Github discussion links on contributing guidelines page

@atoaugustyn, thank you. I really appreciate it.
I will merge.


Add support for "yotta install-shrinkwrap"

The idea is that yotta should be able to download and install everything listed in a shrinkwrap file when the only input is the shrinkwrap file itself:
$ yotta install-shrinkwrap mbedos-example-blinky-shrinkwrap.json

+1


add executeUalExtensionTripleStoreMigration on node start

Epoch check command is postponed indefinitely as executeUalExtensionTripleStoreMigration is never run on new nodes. The alternative is to remove the check in epoch check command, but that would break nodes updating from older versions.

New PR opened: #3002


Receive message "Failed to install VS Code update ..." for 1.25.0 to 1.25.1

Steps to reproduce:

Click "Install Update" prompt from VS Code
Get prompted for elevated permissions.
Log in using my administrative account. => VS Code reports it is installing update in the background.
VS Code prompts with message to restart to install update. => Immediately after this, the display becomes unresponsive (mouse, keyboard don't work).
Press Ctrl-Alt-Del then Esc. => Display is freed up
Click VS Code Install Update to restart VSC and install update. => VS Code restarts and then displays error message "Failed to install  VS Code update." Note that on restart, there is no opportunity to log in with elevated permissions. So, I also tried closing VS Code and restarting it with administrator permissions. Result is the same for both.

I tried three separate times.

Version: 1.25.0
Commit: 0f080e5267e829de46638128001aeb7ca2d6d50e
Date: 2018-07-05T13:11:58.697Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64
vscode-inno-updater.log

You seem to have #47841.
Please read this comment if you can provide more detail: https://github.com/Microsoft/vscode/issues/47841#issuecomment-393101777
Please read this one to disable background updates: https://github.com/Microsoft/vscode/issues/47841#issuecomment-395017687
Also read this one to provide feedback on our new user setup: https://github.com/Microsoft/vscode/issues/47841#issuecomment-399941682


Multiple WARNING: deprecated syntax messages while running Julia v0.6

Running JuliaFEM in Julia v0.6 produces multiple warning messages each time JuliaFEM is imported into program and this lowers readability considerably.
~/.julia/v0.6/JuliaFEM >> make test
julia -e 'Pkg.test("JuliaFEM")'
INFO: Testing JuliaFEM
WARNING: Method definition warn(Any...) in module Base at util.jl:585 overwritten in module Logging at ~/.julia/v0.6/Logging/src/Logging.jl:115.
WARNING: Method definition info(Any...) in module Base at util.jl:532 overwritten in module Logging at ~/.julia/v0.6/Logging/src/Logging.jl:115.

WARNING: deprecated syntax "abstract AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:5.
Use "abstract type AbstractField end" instead.

WARNING: deprecated syntax "abstract Discrete<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:7.
Use "abstract type Discrete<:AbstractField end" instead.

WARNING: deprecated syntax "abstract Continuous<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:8.
Use "abstract type Continuous<:AbstractField end" instead.

WARNING: deprecated syntax "abstract Constant<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:9.
Use "abstract type Constant<:AbstractField end" instead.

WARNING: deprecated syntax "abstract Variable<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:10.
Use "abstract type Variable<:AbstractField end" instead.

WARNING: deprecated syntax "abstract TimeVariant<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:11.
Use "abstract type TimeVariant<:AbstractField end" instead.

WARNING: deprecated syntax "abstract TimeInvariant<:AbstractField" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:12.
Use "abstract type TimeInvariant<:AbstractField end" instead.

WARNING: deprecated syntax "typealias FieldSet Dict{String,Field}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:18.
Use "const FieldSet = Dict{String,Field}" instead.

WARNING: deprecated syntax "typealias DCTI Field{Discrete,Constant,TimeInvariant}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:22.
Use "const DCTI = Field{Discrete,Constant,TimeInvariant}" instead.

WARNING: deprecated syntax "typealias DVTI Field{Discrete,Variable,TimeInvariant}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:23.
Use "const DVTI = Field{Discrete,Variable,TimeInvariant}" instead.

WARNING: deprecated syntax "typealias DCTV Field{Discrete,Constant,TimeVariant}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:24.
Use "const DCTV = Field{Discrete,Constant,TimeVariant}" instead.

WARNING: deprecated syntax "typealias DVTV Field{Discrete,Variable,TimeVariant}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:25.
Use "const DVTV = Field{Discrete,Variable,TimeVariant}" instead.

WARNING: deprecated syntax "typealias CCTI Field{Continuous,Constant,TimeInvariant}" at ~/.julia/v0.6/JuliaFEM/src/fields.jl:26.
Use "const CCTI = Field{Continuous,Constant,TimeInvariant}" instead.
.
.
.

Most of the WARNING messages can be fixed with following bash script. Script should be run inside JuliaFEM/src folder:
declare -a sub_to=("abstract type AbstractField end"
    "abstract type Discrete<:AbstractField end"
    "abstract type Continuous<:AbstractField end"
    "abstract type Constant<:AbstractField end"
    "abstract type Variable<:AbstractField end"
    "abstract type TimeVariant<:AbstractField end"
    "abstract type TimeInvariant<:AbstractField end"
    "const FieldSet = Dict{String,Field}"
    "const DCTI = Field{Discrete,Constant,TimeInvariant}"
    "const DVTI = Field{Discrete,Variable,TimeInvariant}"
    "const DCTV = Field{Discrete,Constant,TimeVariant}"
    "const DVTV = Field{Discrete,Variable,TimeVariant}"
    "const CCTI = Field{Continuous,Constant,TimeInvariant}"
    "const CVTI = Field{Continuous,Variable,TimeInvariant}"
    "const CCTV = Field{Continuous,Constant,TimeVariant}"
    "const CVTV = Field{Continuous,Variable,TimeVariant}"
    "const Node = Vector{Float64}"
    "abstract type AbstractPoint end"
    "const IP = Point{IntegrationPoint}"
    "abstract type AbstractElement end"
    "const CartesianLineElement = Union{Seg2,Seg3,NSeg}"
    "const CartesianSurfaceElement = Union{Quad4,Quad8,Quad9,NSurf}"
    "const CartesianVolumeElement = Union{Hex8,Hex20,Hex27,NSolid}"
    "const TriangularElement = Union{Tri3,Tri6,Tri7}"
    "const TetrahedralElement = Union{Tet4,Tet10}"
    "const PrismaticElement = Union{Wedge6,Wedge15}"
    "const LinearElement = Union{Seg2,Tri3,Quad4,Tet4,Wedge6,Hex8}"
    "const QuadraticElement = Union{Seg3,Tri6,Tri7,Tet10,Quad8,Quad9,Wedge15,Hex20,Hex27}"
    "const SparseVectorCOO = SparseMatrixCOO"
    "abstract type AbstractProblem end"
    "abstract type FieldProblem<:AbstractProblem end"
    "abstract type BoundaryProblem<:AbstractProblem end"
    "abstract type MixedProblem<:AbstractProblem end"
    "const Elasticity2DSurfaceElements = Union{Poi1,Seg2,Seg3}"
    "const Elasticity2DVolumeElements = Union{Tri3,Tri6,Quad4,Quad8,Quad9}"
    "const Elasticity3DSurfaceElements = Union{Poi1,Tri3,Tri6,Quad4,Quad8,Quad9}"
    "const Elasticity3DVolumeElements = Union{Tet4,Wedge6,Wedge15,Hex8,Tet10,Hex20,Hex27}"
    "const Heat3DVolumeElements = Union{Tet4,Tet10,Hex8,Hex20,Hex27}"
    "const Heat3DSurfaceElements = Union{Tri3,Tri6,Quad4,Quad8,Quad9}"
    "const Heat2DVolumeElements = Union{Tri3,Tri6,Quad4}"
    "const Heat2DSurfaceElements = Union{Seg2,Seg3}"
    "const MortarElements2D = Union{Seg2,Seg3}"
    "const MortarElements3D = Union{Tri3,Tri6,Quad4}"
    "abstract type AbstractSolver end"
    "const ContactElements2D = Union{Seg2}"
    "const ContactElements3D = Union{Tri3,Tri6,Quad4,Quad8,Quad9}"
    "abstract type AbstractMaterial end"
    "abstract type AbstractMaterialProperty end"
    "abstract type AbstractProperty end"
    "abstract type AbstractStep end"
    "abstract type AbstractBoundaryCondition end"
    "abstract type AbstractOutputRequest end"
    "const BOUNDARY_CONDITIONS = Union{BOUNDARY,CLOAD,DLOAD,DSLOAD}"
    "const OUTPUT_REQUESTS = Union{NODE_PRINT,EL_PRINT,SECTION_PRINT}"
    "isassigned"
    "clamp.")

declare -a sub_from=("abstract AbstractField"
    "abstract Discrete <: AbstractField"
    "abstract Continuous <: AbstractField"
    "abstract Constant <: AbstractField"
    "abstract Variable <: AbstractField"
    "abstract TimeVariant <: AbstractField"
    "abstract TimeInvariant <: AbstractField"
    "typealias FieldSet Dict{String, Field}"
    "typealias DCTI Field{Discrete,   Constant, TimeInvariant}"
    "typealias DVTI Field{Discrete,   Variable, TimeInvariant}"
    "typealias DCTV Field{Discrete,   Constant, TimeVariant}"
    "typealias DVTV Field{Discrete,   Variable, TimeVariant}"
    "typealias CCTI Field{Continuous, Constant, TimeInvariant}"
    "typealias CVTI Field{Continuous, Variable, TimeInvariant}"
    "typealias CCTV Field{Continuous, Constant, TimeVariant}"
    "typealias CVTV Field{Continuous, Variable, TimeVariant}"
    "typealias Node Vector{Float64}"
    "abstract AbstractPoint"
    "typealias IP Point{IntegrationPoint}"
    "abstract AbstractElement"
    "typealias CartesianLineElement Union{Seg2, Seg3, NSeg}"
    "typealias CartesianSurfaceElement Union{Quad4, Quad8, Quad9, NSurf}"
    "typealias CartesianVolumeElement Union{Hex8, Hex20, Hex27, NSolid}"
    "typealias TriangularElement Union{Tri3, Tri6, Tri7}"
    "typealias TetrahedralElement Union{Tet4, Tet10}"
    "typealias PrismaticElement Union{Wedge6, Wedge15}"
    "typealias LinearElement Union{Seg2, Tri3, Quad4, Tet4, Wedge6, Hex8}"
    "typealias QuadraticElement Union{Seg3, Tri6, Tri7, Tet10, Quad8, Quad9, Wedge15, Hex20, Hex27}"
    "typealias SparseVectorCOO SparseMatrixCOO"
    "abstract AbstractProblem"
    "abstract FieldProblem <: AbstractProblem"
    "abstract BoundaryProblem <: AbstractProblem"
    "abstract MixedProblem <: AbstractProblem"
    "typealias Elasticity2DSurfaceElements Union{Poi1, Seg2, Seg3}"
    "typealias Elasticity2DVolumeElements Union{Tri3, Tri6, Quad4, Quad8, Quad9}"
    "typealias Elasticity3DSurfaceElements Union{Poi1, Tri3, Tri6, Quad4, Quad8, Quad9}"
    "typealias Elasticity3DVolumeElements Union{Tet4, Wedge6, Wedge15, Hex8, Tet10, Hex20, Hex27}"
    "typealias Heat3DVolumeElements Union{Tet4, Tet10, Hex8, Hex20, Hex27}"
    "typealias Heat3DSurfaceElements Union{Tri3, Tri6, Quad4, Quad8, Quad9}"
    "typealias Heat2DVolumeElements Union{Tri3, Tri6, Quad4}"
    "typealias Heat2DSurfaceElements Union{Seg2, Seg3}"
    "typealias MortarElements2D Union{Seg2, Seg3}"
    "typealias MortarElements3D Union{Tri3, Tri6, Quad4}"
    "abstract AbstractSolver"
    "typealias ContactElements2D Union{Seg2}"
    "typealias ContactElements3D Union{Tri3, Tri6, Quad4, Quad8, Quad9}"
    "abstract AbstractMaterial$"
    "abstract AbstractMaterialProperty$"
    "abstract AbstractProperty"
    "abstract AbstractStep"
    "abstract AbstractBoundaryCondition"
    "abstract AbstractOutputRequest"
    "typealias BOUNDARY_CONDITIONS Union{BOUNDARY, CLOAD, DLOAD, DSLOAD}"
    "typealias OUTPUT_REQUESTS Union{NODE_PRINT, EL_PRINT, SECTION_PRINT}"
    "isdefined"
    "clamp")

for ((i=0;i<${#sub_from[@]};++i)); do
    sed_str="s/${sub_from[i]}/${sub_to[i]}/g"
    for fl in *.jl; do
        mv $fl $fl.old
        sed "${sed_str}" $fl.old > $fl
        rm -f $fl.old
    done
done

After removing all the warning messages, more pressing issue arised. While running tests, multiple MethodErrors were raised due to sparse function.
2d curved block with frictionless finite sliding contact using forwarddiff: Error During Test
  Got an exception of type MethodError outside of a @test
  MethodError: sparse(::JuliaFEM.SparseMatrixCOO{Float64}, ::Int64, ::Int64) is ambiguous. Candidates:
    sparse(I, J, v::Number) in Base.SparseArrays at sparse/sparsematrix.jl:683
    sparse(A::JuliaFEM.SparseMatrixCOO, args...) in JuliaFEM at /home/olli/.julia/v0.6/JuliaFEM/src/sparse.jl:43
  Stacktrace:
   [1] get_field_assembly(::JuliaFEM.Solver{JuliaFEM.Nonlinear}) at /home/olli/.julia/v0.6/JuliaFEM/src/solvers.jl:102

Problem arises now, that Julia don't know which sparse function should be used, f.ex.:
M = SparseMatrixCOO()
K = SparseMatrixCOO()
solver.ndofs = size(K, 1)
M = sparse(M, solver.ndofs, solver.ndofs)

Julia get's confused, since sparse (M) matches to both functions. After consulting with @ahojukka5, conclusion is that this is fixed in the near future, when custom sparse function is transferred to another package.

Yes, I'm developing FEMSparse.jl in branch SparseVector and all this "not interested" from our point of view is going there. Aim is to develop sparse tools especially designed for needs of FEM. But to the point, if all packages we require are 0.6 compatible we should go there also asap and drop 0.5, we can do it as this phase because don't have a lot of users?

v0.5 compatibility breaks when the "abstract type XXX end" lines are substituted into the source code

Any thoughs when 0.6 is stable?

0.6-beta was just tagged, but I guess it's still going to take a while to get the stable version. I guess there is no rush to drop 0.5 but let's make notes/scripts what to change, since it's quite clear that modifications are needed for the transfer.

By the way, theres a package called Compat.jl what can be used to make backward compatible code.

We are now in 0.6. Still have some deprection warnings, maybe @maikkirapo could fix them?

I fixed these.


@opentelemetry/instrumentation-nestjs-core - does not work with Microservice

What version of OpenTelemetry are you using?

"@opentelemetry/instrumentation": "^0.54.0"
"@opentelemetry/instrumentation-fastify": "^0.41.0"
"@opentelemetry/instrumentation-http": "^0.54.0"
"@opentelemetry/instrumentation-nestjs-core": "^0.41.0"

What version of Node are you using?
20.18
What did you do?

Attempted to integrate @opentelemetry/instrumentation-nestjs-core with a NestJS-based microservice (https://docs.nestjs.com/microservices/basics) setup to capture distributed traces across microservice interactions.
What did you expect to see?
Expected the instrumentation to support NestJS microservices, allowing automatic trace propagation and capturing relevant metadata across service calls.
What did you see instead?
The current instrumentation does not fully support NestJS microservices, resulting in incomplete trace propagation or missing metadata across microservice interactions.
Additional context
Here is an implementation workaround:
import * as api from '@opentelemetry/api';
import {
  InstrumentationBase,
  InstrumentationConfig,
  InstrumentationNodeModuleDefinition,
  InstrumentationNodeModuleFile,
  isWrapped,
} from '@opentelemetry/instrumentation';
import type { NestFactory } from<EMAIL_ADDRESS>import {
  PACKAGE_VERSION,
} from '@opentelemetry/instrumentation-nestjs-core/build/src/version';

import {
  AttributeNames,
  NestType,
} from '@opentelemetry/instrumentation-nestjs-core/build/src/enums';

const supportedVersions = ['>=4.0.0 <11'];
const PACKAGE_NAME = '@opentelemetry/instrumentation-nestjs-microservice';

export class NestMicroserviceInstrumentation extends InstrumentationBase {
  static readonly COMPONENT = '@nestjs/core';
  static readonly COMMON_ATTRIBUTES = {
    component: NestMicroserviceInstrumentation.COMPONENT,
  };

  constructor(config: InstrumentationConfig = {}) {
    super(PACKAGE_NAME, PACKAGE_VERSION, config);
  }

  init() {
    const module = new InstrumentationNodeModuleDefinition(
      NestMicroserviceInstrumentation.COMPONENT,
      supportedVersions,
    );

    module.files.push(
      this.getNestFactoryFileInstrumentation(supportedVersions),
    );

    return module;
  }

  getNestFactoryFileInstrumentation(versions: string[]) {
    return new InstrumentationNodeModuleFile(
<EMAIL_ADDRESS>      versions,
      (NestFactoryStatic: any, moduleVersion?: string) => {
        this.ensureWrapped(
          NestFactoryStatic.NestFactoryStatic.prototype,
          'createMicroservice',
          createWrapNestFactoryCreate(this.tracer, moduleVersion),
        );
        return NestFactoryStatic;
      },
      (NestFactoryStatic: any) => {
        this._unwrap(
          NestFactoryStatic.NestFactoryStatic.prototype,
          'createMicroservice',
        );
      },
    );
  }

  private ensureWrapped(
    obj: any,
    methodName: string,
    wrapper: (original: any) => any,
  ) {
    if (isWrapped(obj[methodName])) {
      this._unwrap(obj, methodName);
    }
    this._wrap(obj, methodName, wrapper);
  }
}

function createWrapNestFactoryCreate(
  tracer: api.Tracer,
  moduleVersion?: string,
) {
  return function wrapCreate(original: typeof NestFactory.create) {
    return function createWithTrace(
      this: typeof NestFactory,
      nestModule: any,
      /* NestMicroserviceOptions */
      ...args: any[]
    ) {
      const span = tracer.startSpan('Create Nest Microservice', {
        attributes: {
          ...NestMicroserviceInstrumentation.COMMON_ATTRIBUTES,
          [AttributeNames.TYPE]: NestType.APP_CREATION,
          [AttributeNames.VERSION]: moduleVersion,
          [AttributeNames.MODULE]: nestModule.name,
        },
      });
      const spanContext = api.trace.setSpan(api.context.active(), span);

      return api.context.with(spanContext, async () => {
        try {
          return await original.apply(this, [nestModule, ...args]);
        } catch (e: any) {
          throw addError(span, e);
        } finally {
          span.end();
        }
      });
    };
  };
}

const addError = (span: api.Span, error: Error) => {
  span.recordException(error);
  span.setStatus({ code: api.SpanStatusCode.ERROR, message: error.message });
  return error;
};

Hello @neilime it sounds to me like this is a feature request to support a particular feature of nest js? Unfortunately the nestJS instrumentation is currently unmaintained. You can see component owners here: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/.github/component_owners.yml
I'm going to reclassify this as a feature request. If you would like to make a PR to add support that would be appreciated.


Mobile Game Framework for Substrate

Grant Application Checklist

[x] The application-template.md has been copied, renamed ( "project_name.md") and updated.
[x] A BTC address for the payment of the milestones is provided inside the application.
[x] The software of the project will be released under the Apache license version 2.0 as specified in the terms and conditions.
[x] The total funding amount of the project is below 30k at the time of submission.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I like the idea! To understand it a little better, could you please explain how you envision the development of a new mobile game for someone that wants to use your framework?
Will they be expected to write Swift/Java code (for UI components?) as well as the game logic in Rust? Or perhaps use React Native?
How exactly will the native code interact with Rust? Will the framework generate some kind of wrappers or would it be up to the developer?
I would be happy to have a call regarding your proposal to find out more. I'll reach out to you via email.
Thanks for clarification 👍

@mmagician Sure we can!
Our goal is to make it possible to write mobile games just with Rust-lang and without any knowledge about Swift or Kotlin. This already can be done with the help of several extremely useful libraries like winit, android-ndk, cargo-lipo, bitcode, etc. There are few articles about how to build rust applications for Android and iOS but it's pretty hard to set up it now (how to build a library to iOS and Android from Mozilla). Also, with the latest version of winit, it's possible now to add touch events, rendering, and a lot more to the app through rust. But we want to make this process as simple as build applications to Unix or Windows platforms.
Also, we will try to make it possible to select how you want to generate APK/IPA - fully through our framework or generate platform-specific projects (from templates in our repository with just one call of the utility) and build Android in Android Studio as iOS in XCode.

Congratulations. As part of the Open Grants Program, we want to help winning teams acknowledge their grants publicly while observing the foundation’s guidelines. To that end, we’ve created a badge for grant-winning teams. Here is a link to the download and guidelines.
If you are interested in making an announcement about your grant and you would like us to broadcast it on our  media channels then please get in touch with us at<EMAIL_ADDRESS>prior to making the announcement (at least two weeks notice is preferred) so that we can coordinate on timing and content.

@enfipy  It's been a while since your last submission. Do you perhaps have any updates on the last milestone? Otherwise the grant will be terminated.

@mmagician We are really sorry for this huge delay! We have finished everything except the final strokes (Support of CD with Fastlane) that we will make this week.
We did some big additional libraries to the initial grant project and think that the rust and substrate community will find it very useful:
https://github.com/dodorare/apple-bundle-rs
https://github.com/dodorare/android-manifest-rs
And again sorry for the delay, I think we can schedule a call for the next week.


Fix path to deprecated Aead, Kdf and Kem.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.00%. Comparing base (9afabef) to head (d4168b0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #347   +/-   ##
=======================================
  Coverage   92.00%   92.00%
=======================================
  Files          52       52
  Lines        3789     3789
  Branches      352      352
=======================================
  Hits         3486     3486
  Misses        302      302
  Partials        1        1

Flag
Coverage Δ

unittests
92.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fetch remote before git checkout & log

It seems like the git fetch doesn't support git-dir flag causing following error
[09:57:10] Starting 'buildjson'...
error: unknown option `git-dir=../drupalcore/.git'

@lauriii. last commit should fix that

Thanks for this fix! Makes bumping to a new minor version easier

Hm. Still not work http://www.drupalcores.com/


Added accesibility for links and key on v-for loop

Added accessibility based on https://www.a11ymatters.com/pattern/pagination/
Also added keys in v-for loop

Codecov Report

Merging #117 into master will increase coverage by 0.43%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage      78%   78.43%   +0.43%
==========================================
  Files           1        1
  Lines          50       51       +1
  Branches       15       15
==========================================
+ Hits           39       40       +1
  Misses          7        7
  Partials        4        4

Impacted Files
Coverage Δ

src/components/Paginate.vue
78.43% <100%> (+0.43%)
: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 16fc507...3d341a8. Read the comment docs.

Codecov Report

Merging #117 into master will increase coverage by 0.43%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage   78.00%   78.43%   +0.43%
==========================================
  Files           1        1
  Lines          50       51       +1
  Branches       15       15
==========================================
+ Hits           39       40       +1
  Misses          7        7
  Partials        4        4

Impacted Files
Coverage Δ

src/components/Paginate.vue
78.43% <100.00%> (+0.43%)
: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 16fc507...591a847. Read the comment docs.


Guide users to check ballast file exists and works

Fixes DOC-1930

This change is

Hey @jbowens and/or @mwang1026 any objections to this change?  Would love to merge this week before PTO


SortFileContentOnSave does not seem to work

I have the option to sort the RESX files when saving checked in the configuration for a specific solution.
When I open a form, make a change (like adding a label) and then save, the resx files associated to the form are not sorted.

This feature sorts the content after changing it using ResXManager, it has no effect when changing a resx file with a different editor, like the WinForms designer...

Oh! Ok!
Thanks for the clarification!


How does the simulator know model mass?

I load the ShapeNet models to the scene, and I noticed that models have  different masses, how does the simulator know each model's mass and inertia?

If no mass is provided, the simulator computes mass and inertia from a given density (which defaults to 1000). Note the engine always needs to compute a convex hull of the collision shape, so this inertial computation is possible.

If no mass is provided, the simulator computes mass and inertia from a given density (which defaults to 1000). Note the engine always needs to compute a convex hull of the collision shape, so this inertial computation is possible.

Thanks a lot !


Fragment for selecting sensor?

Maybe we should add a Fragment which lists all supported and available sensors with some information (e.g. name, provided sensors, etc.)? Then the user can connect to the sensor by simply selecting it from the list.

Very good idea!


Navigating to UserDetails screen with wrong email crash the app.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Break down in numbered steps

Open Any 1:1 chat on newDot.
Go to the User Details page by clicking on the Chat title.
Copy the URL and open a new tab and paste it. Change the user email part to 'rajat'. Url should look like https://staging.new.expensify.com//details/rajat.

Expected Result:
Describe what you think should've happened
Redirect back to Home page or last Accessed Chat.
Actual Result:
Describe what actually happened
App Crash.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:

Where is this issue occurring?

Web
Desktop App

Version Number: Latest
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork

Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Proposal
Explaination
https://github.com/Expensify/App/blob/f117c993b1c7db404a0d34937721e181c73c2fc7/src/pages/DetailsPage.js#L63-L64

We are setting details as undefined here whenever the route.params.login isn't a valid login
Then, executing the 2nd line is causing the App to crash.

Solution
    if (_.isEmpty(details)) {
        Navigation.goBack();
        return null;
    }

Adding the above code after line 63 should fix the problem

@sakluger 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@sakluger Do you think this is legitimate issue?

@sakluger 10 days overdue. I'm getting more depressed than Marvin.

Waiting for it to be triaged before I can submit my proposal.

@parasharrajat apologies for the delay! I was able to reproduce this issue, and think it's a legitimate issue.
Heads up, I made a few small corrections to your original description. First, I changed your first example URL from https://staging.new.expensify.com/details/rajat to https://staging.new.expensify.com/details?login=rajat (https://staging.new.expensify.com/details/rajat correctly redirected back to the homepage). I also clarified that the "Crashed app" just shows a blank browser window.
Adding engineer label to review the proposal.

Triggered auto assignment to @Luke9389 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Triggered auto assignment to @nickmurray47 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Thanks for updating the issue. Waiting for the triage to complete.
Proposal

We check whether the data exists for the user https://github.com/Expensify/App/blob/e5957e1ffff7e111a459b05643bac18ffab20619/src/pages/DetailsPage.js#L63.

If the detail is not present then we redirect the user back to the Report route which will be set to the default Report of the user.

We also a show a Growl to tell the user why he is redirected to a different page than than the requested.

Return null is important as this is a functional component.

if(!details} {
				Growl.error(translateLocal('notFound.userdetailsNotFound'));
                Navigation.navigate(ROUTES.REPORT);
                return null;

}

For Participants page

We will handle similarly and navigate back to REPORT route.
But this component directly access the report prop in many places so we have to extract that into a variable then apply the check on that.
e.g. https://github.com/Expensify/App/blob/e5957e1ffff7e111a459b05643bac18ffab20619/src/pages/ReportDetailsPage.js#L96

@nickmurray47 Whoops! This issue is 2 days overdue. Let's get this updated quick!

This doesn't feel super urgent - but I could be missing why it's valuable.
If you are navigating to a details page with an email or reportID you don't have access to then why would we expect it to do something other than break. How did we find ourselves navigating to this page at all? Did something take you there from inside or outside the app? Or are we just handling the case where a user got curious and put in a random email to see if something would break?

Yeah, in app navigation will never led us to this use case but when someone navigate will wrong url it breaks the app.
Mostly app should handle unknown URLs so I thought it might be worth raising and keeping this in mind while next time we create a screen.

Ok thanks. Gonna close this for now. If there is some case in the future where we are sending links to profiles and a user may or may not be able to access it then we can revisit a solution. It just seems a little too much of an edge case to fix right now.


Popover closing after scroll in safari

Provide a general summary of the issue here
In safari browser, when scroll content to end popover is closing
🤔 Expected Behavior?
Don't close popover
😯 Current Behavior
Closing after scroll
💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
Add popover in page
Open popover
Scroll to end in popover or in page
Popover closing
Version
3-34-1
What browsers are you seeing the problem on?
Safari
If other, please specify.
No response
What operating system are you using?
Mac OS
🧢 Your Company/Team
Adobe/Planning
🕷 Tracking Issue
No response

Mind providing a minimal reproduction of it? I'm not able to reproduce the issue with a popover with scrollable content. I think this is what your set up is based on the information you've given but I may be missing something


Update tutorial-configure-networking.md

Changed VMWare to VMware for consistency within our documentation.

Looks good. Thanks @sbkuehn


Ember server responds with 500 when sent illegal characters in the query parameters

I do not know if this is an issue with ember server or http4s core, but if you send characters that should be URL encoded as query params the route that should match never gets called and the server returns 500.
Steps:
1: Clone the g8 template - I did scala 2.
2: Start the server using sbt run
3: Use a browser (or JS) to send an invalid character.
await fetch("http://localhost:8080/hello/colt?foo={");

Note that the server fails with 500, instead of matching the route and returning the "Hello, colt" response.
This is a problem because people are sending garbage requests to a service I have exposed on the internet and it causes 500s to show up in our logs.

As a next step, it would be helpful to add some logging to find out what exception is being thrown that is causing the 500. That will point us to the problem.

I tried adding logging in the routes, but it never gets there. So the logging would need to be down inside the request handling in http4s.

Ember has a configurable logger, does that report anything useful?

I set the logback logger in the project to DEBUG and didn't get anything useful. Is there something else you'd like me to try?

Hmm, that's frustrating. Thanks for trying those. Then my best suggestion is to clone the repository, and debug the example directly out of here.
https://github.com/http4s/http4s/blob/570d60d5176d12352511fa6dd606f3aba53028ad/examples/ember/src/main/scala/com/example/http4s/ember/EmberServerSimpleExample.scala
Then, you can add debug printlns etc. directly inside of http4s, until we can find the problem :)

I think the only error here is that the server is returning a 500. From RFC 7230.

Recipients of an invalid request-line SHOULD respond with either a
400 (Bad Request) error or a 301 (Moved Permanently) redirect with
the request-target properly encoded.  A recipient SHOULD NOT attempt
to autocorrect and then process the request without a redirect, since
the invalid request-line might be deliberately crafted to bypass
security filters along the request chain.

The 301 seems very suspect to me...but we can certainly do a 400 in this case.
I don't think we should allow the malformed URI to be matched on or otherwise enter the routes definition.

I agree that the 400 bad request should be the response. I guess it should just be an empty body.

This actually a little hard to test. For example, curl doesn't even let you emit the request if the URI is bad.
 > curl 'http://localhost:8080/hello/colt?foo={'
curl: (3) unmatched brace in URL position 38:
http://localhost:8080/hello/colt?foo={

@isomarcte That's why I gave the fetch call I was using from my browser because curl doesn't work and wget auto encodes the {.

@coltfred Ah that makes sense.

Just for fun, and because this is hard to test with curl, you can use netcat if you've got it:
printf "GET /hello/andrew?foo={ HTTP/1.0\r\n\r\n" | nc localhost 8080

HTTP/1.1 500 Internal Server Error
Content-Length: 0

Similarly with HTTP/1.1:
printf "GET /hello/andrew?foo={ HTTP/1.1\r\nHost: localhost:8080\r\n\r\n" | nc localhost 8080

HTTP/1.1 500 Internal Server Error
Content-Length: 0


Comparing the column name in LowerCase.

The FindColumn used by the ExecuteDeferredQuery will now compare the columns in lower case, because if the Property or MappedColumnName is different of the Table column name, the value of that column will be null.

Looks good! Thanks!


Revise 'transition' scene file syntax

This syntax:
transition:
  [show, hide]:
    time: 0s

is currently a supported way of specifying fade durations for point styles in tangram-es. Although it's well-formed YAML and yaml-cpp can grok it just fine, many tools don't correctly support map keys that aren't simple scalar values (see the discussion on this commit https://github.com/tangrams/tron/commit/53a1b143b93818b5f1c7c92a3f5856f162275dbc).
For practical expediency, it may be better to deprecate this syntax in favor of an alternative that is more easily digestible by common tools.

The simplest alternative that comes to mind is to define each action explicitly:
transition:
  show: { time: 0s }
  hide: { time: 0s }

This could also potentially include a default setting to simplify blanket setting actions (assuming a future where there are more state transitions):
transition:
  default: { time: 0s }
  hide: { time: 0.5s }

We could do something else like use array syntax for actions, but it seems unwieldy and I prefer to avoid "array of objects" structures like this when possible because I think it's easy to get tripped up in the YAML indentation.
transitions:
  - actions: [show, hide]
    time: 0s
  - actions: [something]
    time: 1s

Others?

The first syntax,
transition:
  show: { time: 0s }
  hide: { time: 0s }

is already supported. We can just use this in all cases where we used the array-keyed syntax before.


mitmproxy crash

Steps to reproduce the problem:

Testing samsung swiftkey exploit here https://github.com/nowsecure/samsung-ime-rce-poc/

Execute mitmproxy --ignore swiftkey.net --host -s samsung_keyboard_mitmproxy_exploit.py -p 8080

Configure the Android device proxy with IP and Port 8080.

Visit http://apple.com

Crash Log
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mitmproxy/proxy/server.py", line 121, in handle
    root_layer()
  File "/usr/lib/python2.7/dist-packages/mitmproxy/proxy/modes/http_proxy.py", line 11, in __call__
    layer()
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/tls.py", line 358, in __call__
    layer()
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http1.py", line 67, in __call__
    layer()
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 204, in __call__
    self.send_response_to_client(flow)
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 274, in send_response_to_client
    self.send_response(flow.response)
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 55, in send_response
    self.send_response_headers(response)
  File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http1.py", line 37, in send_response_headers
    raw = http1.assemble_response_head(response)
  File "/usr/lib/python2.7/dist-packages/netlib/http/http1/assemble.py", line 31, in assemble_response_head
    headers = _assemble_response_headers(response.data)
  File "/usr/lib/python2.7/dist-packages/netlib/http/http1/assemble.py", line 102, in _assemble_response_headers
    return bytes(response.headers)
  File "/usr/lib/python2.7/dist-packages/netlib/http/headers.py", line 107, in __bytes__
    return b"\r\n".join(b": ".join(field) for field in self.fields) + b"\r\n"
  File "/usr/lib/python2.7/dist-packages/netlib/http/headers.py", line 107, in <genexpr>
    return b"\r\n".join(b": ".join(field) for field in self.fields) + b"\r\n"
TypeError: sequence item 1: expected string, list found

mitmproxy has crashed!
Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy

Mitmproxy Version: 0.17.1
Operating System: Kali Linux

Thanks for the report. The script is for an old version of mitmproxy which
has slightly different semantics. In particular, our HTTP Headers class is
simpler now and wants a string for the header value, not lists of strings
(see the docs for details). I'll leave this open to remind me to add a type
check for assignments!
On Tue, 20 Sep 2016, 14:33 Christy Philip Mathew<EMAIL_ADDRESS>wrote:

Steps to reproduce the problem:

Testing samsung swiftkey exploit here
https://github.com/nowsecure/samsung-ime-rce-poc/
2.
Execute mitmproxy --ignore swiftkey.net --host -s
samsung_keyboard_mitmproxy_exploit.py -p 8080
3.
Configure the Android device proxy with IP and Port 8080.
4.
Visit http://apple.com
Crash Log
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mitmproxy/proxy/server.py", line 121, in handle
root_layer()
File "/usr/lib/python2.7/dist-packages/mitmproxy/proxy/modes/http_proxy.py", line 11, in call
layer()
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/tls.py", line 358, in call
layer()
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http1.py", line 67, in call
layer()
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 204, in call
self.send_response_to_client(flow)
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 274, in send_response_to_client
self.send_response(flow.response)
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http.py", line 55, in send_response
self.send_response_headers(response)
File "/usr/lib/python2.7/dist-packages/mitmproxy/protocol/http1.py", line 37, in send_response_headers
raw = http1.assemble_response_head(response)
File "/usr/lib/python2.7/dist-packages/netlib/http/http1/assemble.py", line 31, in assemble_response_head
headers = _assemble_response_headers(response.data)
File "/usr/lib/python2.7/dist-packages/netlib/http/http1/assemble.py", line 102, in _assemble_response_headers
return bytes(response.headers)
File "/usr/lib/python2.7/dist-packages/netlib/http/headers.py", line 107, in bytes
return b"\r\n".join(b": ".join(field) for field in self.fields) + b"\r\n"
File "/usr/lib/python2.7/dist-packages/netlib/http/headers.py", line 107, in
return b"\r\n".join(b": ".join(field) for field in self.fields) + b"\r\n"
TypeError: sequence item 1: expected string, list found
mitmproxy has crashed!
Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy
Mitmproxy Version: 0.17.1
Operating System: Kali Linux
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mitmproxy/mitmproxy/issues/1562, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA-NPiAbr1gc7vcS4ICrOn3Urw-WJfUYks5qsFEdgaJpZM4KCKtC
.


HADOOP-16665. Filesystems to be closed if they failed during initialize().

Patches FileSystem to do this, and for S3A have it stop services
during init exception handling.
Also reviewed the mockFS subclass to make sure it gets close() right
and remove all uses of the obsolete S3AUtils.closeAll with
IOUtils.cleanupWithLogger
Change-Id: I0b9fd1aafc902a151a8cacb614058e00d475cd45

regression testing in progress.
I haven't written any tests to explicitly explore the new codepaths.
I will probably add a new common test which has a mock file system that fails during init and whose close() updates a static counter.
Adding a test for S3A's explicit cleanup is a bit trickier. I could probably
add an ITest which tried to create an FS with invalid settings -encryption
ones get checked first- and then close() that after. This will at least show
that the cleanup code is re-entrant.
Trying to force a failure at a specific point after some closable items have been created (instrumentation, thread pools etc) and verifying that these are null afterwards is going to be very brittle. Avoid.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
2196
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 4 new or modified test files.

_ trunk Compile Tests _

0
mvndep
105
Maven dependency ordering for branch

+1
mvninstall
2445
trunk passed

+1
compile
2266
trunk passed

+1
checkstyle
180
trunk passed

+1
mvnsite
134
trunk passed

+1
shadedclient
1453
branch has no errors when building and testing our client artifacts.

+1
javadoc
370
trunk passed

0
spotbugs
235
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
598
trunk passed

_ Patch Compile Tests _

0
mvndep
63
Maven dependency ordering for patch

+1
mvninstall
216
the patch passed

+1
compile
2218
the patch passed

+1
javac
2218
the patch passed

-0
checkstyle
168
root: The patch generated 1 new + 97 unchanged - 0 fixed = 98 total (was 97)

+1
mvnsite
122
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
840
patch has no errors when building and testing our client artifacts.

+1
javadoc
120
the patch passed

+1
findbugs
206
the patch passed

_ Other Tests _

-1
unit
540
hadoop-common in the patch failed.

+1
unit
87
hadoop-aws in the patch passed.

+1
asflicense
46
The patch does not generate ASF License warnings.

14531

Reason
Tests

Failed junit tests
hadoop.security.TestRaceWhenRelogin

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1671

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 55c616192b71 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 1d5d7d0

Default Java
1.8.0_222

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/1/artifact/out/diff-checkstyle-root.txt

unit
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/1/artifact/out/patch-unit-hadoop-common-project_hadoop-common.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/1/testReport/

Max. process+thread count
1411 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/1/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
71
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 7 new or modified test files.

_ trunk Compile Tests _

0
mvndep
71
Maven dependency ordering for branch

+1
mvninstall
1248
trunk passed

+1
compile
1083
trunk passed

+1
checkstyle
170
trunk passed

+1
mvnsite
128
trunk passed

+1
shadedclient
1191
branch has no errors when building and testing our client artifacts.

+1
javadoc
119
trunk passed

0
spotbugs
68
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
194
trunk passed

_ Patch Compile Tests _

0
mvndep
20
Maven dependency ordering for patch

+1
mvninstall
82
the patch passed

+1
compile
1028
the patch passed

+1
javac
1028
root generated 0 new + 1884 unchanged - 1 fixed = 1884 total (was 1885)

-0
checkstyle
169
root: The patch generated 2 new + 97 unchanged - 0 fixed = 99 total (was 97)

+1
mvnsite
124
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
842
patch has no errors when building and testing our client artifacts.

+1
javadoc
120
the patch passed

+1
findbugs
206
the patch passed

_ Other Tests _

+1
unit
546
hadoop-common in the patch passed.

+1
unit
88
hadoop-aws in the patch passed.

+1
asflicense
47
The patch does not generate ASF License warnings.

7533

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1671

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux ee3142834074 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / ee699dc

Default Java
1.8.0_222

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/2/artifact/out/diff-checkstyle-root.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/2/testReport/

Max. process+thread count
1380 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/2/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Tests exist all good. tested S3 ireland

just noticed there's a TestFileSystemInitialization suite. Moving everything there

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
10
https://github.com/apache/hadoop/pull/1671 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hadoop/pull/1671

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/3/console

versions
git=2.17.1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Rebased

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
86
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 8 new or modified test files.

_ trunk Compile Tests _

0
mvndep
73
Maven dependency ordering for branch

+1
mvninstall
1241
trunk passed

+1
compile
1085
trunk passed

+1
checkstyle
175
trunk passed

+1
mvnsite
127
trunk passed

+1
shadedclient
1184
branch has no errors when building and testing our client artifacts.

+1
javadoc
122
trunk passed

0
spotbugs
76
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
221
trunk passed

_ Patch Compile Tests _

0
mvndep
24
Maven dependency ordering for patch

+1
mvninstall
89
the patch passed

+1
compile
1125
the patch passed

+1
javac
1125
root generated 0 new + 1884 unchanged - 1 fixed = 1884 total (was 1885)

-0
checkstyle
169
root: The patch generated 3 new + 98 unchanged - 1 fixed = 101 total (was 99)

+1
mvnsite
122
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
821
patch has no errors when building and testing our client artifacts.

+1
javadoc
116
the patch passed

+1
findbugs
206
the patch passed

_ Other Tests _

+1
unit
558
hadoop-common in the patch passed.

+1
unit
79
hadoop-aws in the patch passed.

+1
asflicense
46
The patch does not generate ASF License warnings.

7661

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/4/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1671

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 26ecad526057 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 42fc888

Default Java
1.8.0_222

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/4/artifact/out/diff-checkstyle-root.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/4/testReport/

Max. process+thread count
1474 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1671/4/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@bgaborg : any final comments here? -this is needed to prevent thread leaks when S3A inits fail, and for other object stores.

what, you don't trust my code not to break your builds :)

[INFO] Running org.apache.hadoop.fs.contract.s3a.ITestS3AContractRootDir
[ERROR] Tests run: 9, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 48.888 s <<< FAILURE! - in org.apache.hadoop.fs.contract.s3a.ITestS3AContractRootDir
[ERROR] testListEmptyRootDirectory(org.apache.hadoop.fs.contract.s3a.ITestS3AContractRootDir)  Time elapsed: 19.578 s  <<< FAILURE!
java.lang.AssertionError:
Expected no results from listLocatedStatus(/), but got 1 elements:
S3ALocatedFileStatus{path=s3a://cloudera-dev-gabota-versioned-bucket-ireland/fork-0005; isDirectory=true; modification_time=1573489890581; access_time=0; owner=gabota; group=gabota; permission=rwxrwxrwx; isSymlink=false; hasAcl=false; isEncrypted=true; isErasureCoded=false}[eTag='', versionId='']
	at org.junit.Assert.fail(Assert.java:88)
	at org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest.assertNoElements(AbstractContractRootDirectoryTest.java:218)
	at org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest.testListEmptyRootDirectory(AbstractContractRootDirectoryTest.java:202)
	at org.apache.hadoop.fs.contract.s3a.ITestS3AContractRootDir.testListEmptyRootDirectory(ITestS3AContractRootDir.java:82)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:748)

[ERROR] testSimpleRootListing(org.apache.hadoop.fs.contract.s3a.ITestS3AContractRootDir)  Time elapsed: 1.054 s  <<< FAILURE!
java.lang.AssertionError:
listStatus(/) vs listLocatedStatus(/) with
listStatus =S3AFileStatus{path=s3a://cloudera-dev-gabota-versioned-bucket-ireland/test; isDirectory=true; modification_time=0; access_time=0; owner=gabota; group=gabota; permission=rwxrwxrwx; isSymlink=false; hasAcl=false; isEncrypted=true; isErasureCoded=false} isEmptyDirectory=FALSE eTag=null versionId=null listLocatedStatus = S3ALocatedFileStatus{path=s3a://cloudera-dev-gabota-versioned-bucket-ireland/fork-0005; isDirectory=true; modification_time=1573489891892; access_time=0; owner=gabota; group=gabota; permission=rwxrwxrwx; isSymlink=false; hasAcl=false; isEncrypted=true; isErasureCoded=false}[eTag='', versionId='']
S3ALocatedFileStatus{path=s3a://cloudera-dev-gabota-versioned-bucket-ireland/test; isDirectory=true; modification_time=1573489891892; access_time=0; owner=gabota; group=gabota; permission=rwxrwxrwx; isSymlink=false; hasAcl=false; isEncrypted=true; isErasureCoded=false}[eTag='', versionId=''] expected:<1> but was:<2>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest.testSimpleRootListing(AbstractContractRootDirectoryTest.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:748)

There were two failing sequential tests. I don't think this related, what's your opinion?

The same two tests are failing for me after the rerun.

ITestS3AContractRootDir is not failing when I run it separately.
I don't see how this is related to your work here, so it's a +1 from me on this because it will stabilize other things.
+1.

thanks


Fix TrackedDependenciesTests on mac

Hi @radical, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Do you know why the diff doesn't display? "1,200 additions and 1,199 deletions", is that right? Or any idea what went wrong?

I think it doesn't display it because the commit content is too big. You can see it with command line git though. Here is a gist of that commit: https://gist.github.com/radical/c3187c3ac9ec91483353 .
All the changes in this are, as mentioned in the commit message, essentially - change "foo\bar" to Path.Combine("foo", "bar").
There was a change in the earlier commit that broke a test windows, so, I have removed that and updated the PR.

I just ended up downloading the files and diffing them locally. Looks good though, thanks for doing that (there were a lot of paths to fix!!).

@radical if you rename gistfile1.txt to gistfile1.diff it will even syntax highlight the diff in the gist link.
Similar to how diff works here in markdown comments, when code content is wrapped between ```diff and ```, like so:
diff --git a/src/Utilities/UnitTests/TrackedDependencies/TrackedDependenciesTests.cs b/src/Utilities/UnitTests/TrackedDependencies/TrackedDependenciesTests.cs
index 052b580..e98273f 100644
--- a/src/Utilities/UnitTests/TrackedDependencies/TrackedDependenciesTests.cs
+++ b/src/Utilities/UnitTests/TrackedDependencies/TrackedDependenciesTests.cs
@@ -312,27 +312,27 @@ namespace Microsoft.Build.UnitTests.TrackedDependencies
         {
             Console.WriteLine("Test: SingleCanonicalCL");
             // Prepare files
-            DependencyTestHelper.WriteAll("TestFiles\\one.h", "");
-            DependencyTestHelper.WriteAll("TestFiles\\one.cpp", "");
-            DependencyTestHelper.WriteAll("TestFiles\\one.obj", "");
+            DependencyTestHelper.WriteAll(Path.Combine("TestFiles", "one.h"), "");
+            DependencyTestHelper.WriteAll(Path.Combine("TestFiles", "one.cpp"), "");
+            DependencyTestHelper.WriteAll(Path.Combine("TestFiles", "one.obj"), "");

@radical, it is advised in many many repos on GitHub that never to leave the description box in both PRs and Issues empty. In some repos such as joyent/node, they don't even accept any PR without proper description and docs. Moreover, they have standard format for writing the commit message, which is reflected in their commit history.
Your made a gigantic amount of changes in one file, it deserves (at least) few lines of explanation on what you fixed, how you fixed it and why it was necessary; for future reference.
That being said, it is never too late, you can still edit the first comment on this page and also commit message using git commit --amend, edit message and then git push -f.

@jasonwilliams200OK I thought I had selected 'diff' as the Language while creating the gist. My bad! Thanks for the suggestion about the triple quotes.
The actual commits have the relevant info about them:
[tests] Workaround for file time information having >=1s resolution
TrackingDependenciesTests depend on comparing time difference between
creation of files, and it expects 100ms resolution. On windows,
GetFileAttributesEx is used to obtain this, but on mono/mac, we get
1s resolution from the File.GetLastWriteFileUtc(..) api.

This is a workaround to use 1s time delay on !Windows.

A bug has been filed for mono:
https://bugzilla.xamarin.com/show_bug.cgi?id=30083

And ..
[tests] Fix TrackedDependenciesTests/mac by using Path.Combine instead of ..

.. hardcoded path separators like "foo\\bar".

Did you mean that I should add more info to the second(bigger) commit or were you talking about copy/pasting this in the merge commit (first PR comment) ?
Assuming the former, I have improved it to:
    [tests] Fix TrackedDependenciesTests/mac by using Path.Combine ..

    instead of hardcoded path separators like "foo\\bar". These paths are
    being used while writing entries to the .tlog files and for creating
    dependent files for the various tests. This breaks on Unix, so, use
    Path.Combine to construct the paths.

:+1:
I was talking about first comment https://github.com/Microsoft/msbuild/pull/101#issue-76835388 which is empty.

Fixed.


Introduce formatting

This project already has an .editorconfig courtesty of #15. This PR adds a CI check and a script that can be used locally, both of which call dotnet format to ensure our source files are compliant with the .editorconfig.

Hmm...I had set this up to use https://github.com/dotnet/code-analysis, but that repository hasn't been updated in 3 years and does not run on .NET 8. I believe it to be abandoned and I don't want to run on a super old version of .NET just to use an old analysis tool.
Instead, I'll focus on using the built-in Roslyn analyzers.

I've implemented the following snippet in our .csproj files:
    <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
    <EnableNETAnalyzers>true</EnableNETAnalyzers>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <!-- The below NoWarn is due to Kiota generating code marked as Obsolete.
      This is expected, but we still want to error on other warnings from analyzers. -->
    <NoWarn>$(NoWarn);CS0618</NoWarn>

This explicltly enables .NET analyzers (though they're on by default because we use .NET 8) and treats warnings as errors. I've ignored all CS0618 "Obsolete" errors since Kiota expectedly generates some code with "Obsolete" modifiers.
Together with our CodeQL analysis Action, this should cover all necessary linting pieces for our dotnet-sdk.


frontendConfig.basePath is duplicated for users API call

My Environment

ArangoDB Version:        3.4.5
Storage Engine:             RocksDB
Deployment Mode:       Single Server
Deployment Strategy:   Manual Start in Docker
Configuration:   ArangoDB is behind a reverse proxy on a specific path
Used Package:              Docker - official Docker library -->

Problem
The Users section in aardvark does not work if frontendConfig.basePath is set because it is applied twice: once in ArangoUsers.fetch() and once in arangoHelper.databaseUrl (which is called by ArangoUsers.fetch()

\arangodb\js\apps\system_admin\aardvark\APP\frontend\js\collections\arangoUsers.js
lines 26,28,30 :
arangoHelper.databaseUrl(frontendConfig.basePath + '/_api/user/'
-->
arangoHelper.databaseUrl('/_api/user/'
Same in arangodb\js\apps\system_admin\aardvark\APP\frontend\js\collections\arangoQueries.js
lines 42 & 44

@RudySchockaert-EngieIT  I guess the arangoQueries occurrence breaks stored queries, right? Incidentially, we also discovered this problem today.

That is correct. After my patch it is working again.

I am accessing ArangoDB via proxy and in Aardvark, the query tool is appending the base path twice like this /dev/arango-web/_db/GDELT-Outlink-Graph-Hashed/dev/arango-web/_api/user/root. Is there a fix for this?
I am using community edition 3.6.1.

The pull request was merged for v3.7.1-beta.1 and ArangoDB v3.7.1 was meanwhile released, so the fix should be available from this version.


building a aws light stemcell produces an error

in the builiding a light stemcell builder task it produces an error
https://bosh.ci.cloudfoundry.org/teams/main/pipelines/stemcells-publisher/jobs/build-light-aws-ubuntu-jammy-1/builds/267#L65389de8:2
why is trying to retrieve the light stemcell as the light stemcell has not been build yet
and its also getting from the wrong location.
as it should be
https://storage.googleapis.com/bosh-aws-light-stemcells/1.300/light-bosh-stemcell-1.300-aws-xen-hvm-ubuntu-jammy-go_agent.tgz`` and not https://storage.googleapis.com/bosh-aws-light-stemcells/light-bosh-stemcell-1.300-aws-xen-hvm-ubuntu-jammy-go_agent.tgz`
my guess is we can remove this whole step from https://github.com/cloudfoundry/bosh-stemcells-ci/blob/master/tasks/light-aws/build.sh#L49
``
Checking if light stemcell already exists...
Spider mode enabled. Check if remote file exists.
--2023-11-16 07:35:05--  https://storage.googleapis.com/bosh-aws-light-stemcells/light-bosh-stemcell-1.300-aws-xen-hvm-ubuntu-jammy-go_agent.tgz
Resolving storage.googleapis.com (storage.googleapis.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to storage.googleapis.com (storage.googleapis.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
Remote file does not exist -- broken link!!!

Although I made the commit, this was all just part of moving the publish pipelines from closed source to open source, so that code existed long ago.
My guess is it's a guard to prevent you from building the same light stemcell twice in a row, although maybe it does need some fixing if the path it's checking is wrong.

fixed the check https://github.com/cloudfoundry/bosh-stemcells-ci/commit/fbc40be178476504bfde8e576a061766398ae82f
i think we can leave the error/debug message as is.


Sending messages from matrix to XMPP via libpurple not working

Sending messages from matrix to XMPP via libpurple don't appear to work for me.
It appears to be some kind of string manipulation issue at least guessing from the log.
Jan-2 19:48:13.528 INFO bridge ::1 - - [02/Jan/2019:18:48:13 +0000] "PUT /transactions/730?access_token=<REDACTED> HTTP/1.1" 200 2 "-" "Synapse/0.34.0"

Jan-2 19:48:13.537 INFO MatrixEventHandler Handling IM message
Jan-2 19:48:13.543 INFO MatrixEventHandler Sending IM to<EMAIL_ADDRESS>(19:48:13) dbus: Invalid UTF-8 string passed to signal, emitting salvaged string!
[Invalid UTF-8] (19:48:13) jabber: jabber_message_send_im<EMAIL_ADDRESS>	msg='\xc0 \xc8\xc9\xd6\x7f'
[Invalid UTF-8] (19:48:13) util: purple_utf8_strip_unprintables(\xc0 \xc8\xc9\xd6\x7f) failed; first bad character was ffffffc0 (\xc0)

** (process:7016): CRITICAL **: 19:48:13.549: file util.c: line 4666 (purple_utf8_strip_unprintables): should not be reached
(19:48:13) jabber: Unable to find caps: buddy might be offline
(19:48:13) jabber: Sending (ssl) (pvagner@puppeting.xmpp/648211315516933427325375401): <message type='chat' id='purple6426f00b'<EMAIL_ADDRESS>xmlns='http://jabber.org/protocol/chatstates'/><body></body></message>
(19:48:13) prefs: purple_prefs_get_string: Unknown pref /purple/away/auto_reply
(19:48:13) dbus: Invalid UTF-8 string passed to signal, emitting salvaged string!
(19:48:13) dbus: Invalid UTF-8 string passed to signal, emitting salvaged string!
(19:48:13) prefs: purple_prefs_get_int: Unknown pref /purple/away/mins_before_away
(19:48:13) prefs: purple_prefs_get_string: Unknown pref /purple/away/idle_reporting
(19:48:13) prefs: purple_prefs_get_bool: Unknown pref /purple/away/away_when_idle
(19:48:13) dbus: Invalid UTF-8 string passed to signal, emitting salvaged string!

This is now fixed


Rewrite HttpFaultInjector to use ILogger and built-in ASP.NET Core logging

Logging:

Leverages built-in ASP.NET Core & HttpClientFactory logging
Uses ILogger for a few remaining messages not covered by default logging
Adds OTel Console exporter to print correlated and structured logs to console
Configures logging to capture headers and other info captured before

Configuration:

Updates default endpoints and allows to leverage default kestrel config via env vars/cmd line args

Misc refactorings

Example:
LogRecord.Timestamp:               2023-12-19T21:46:21.1159635Z
LogRecord.TraceId:                 6728003b59ab450cb730ab8c5670f3f9
LogRecord.SpanId:                  5f82c7d70faf07d6
LogRecord.TraceFlags:              None
LogRecord.CategoryName:            Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware
LogRecord.Severity:                Info
LogRecord.SeverityText:            Information
LogRecord.FormattedMessage:        Request:
Protocol: HTTP/1.1
Method: GET
Scheme: http
PathBase:
Path: /path/to/something
Accept: */*
Host: localhost:7777
User-Agent: curl/8.4.0
X-Upstream-Base-Uri: https://example.com
x-ms-faultinjector-response-option: f
LogRecord.Body:                    Request:
Protocol: HTTP/1.1
Method: GET
Scheme: http
PathBase:
Path: /path/to/something
Accept: */*
Host: localhost:7777
User-Agent: curl/8.4.0
X-Upstream-Base-Uri: https://example.com
x-ms-faultinjector-response-option: f
LogRecord.Attributes (Key:Value):
    Protocol: HTTP/1.1
    Method: GET
    Scheme: http
    PathBase:
    Path: /path/to/something
    Accept: */*
    Host: localhost:7777
    User-Agent: curl/8.4.0
    X-Upstream-Base-Uri: https://example.com
    x-ms-faultinjector-response-option: f
LogRecord.EventId:                 1
LogRecord.EventName:               RequestLog

@mikeharder I've rebased this change on top of streaming and changed controller to middleware (thanks for the suggestion earlier).
LMK if you want to take another too.
I've done some testing locally and going to run storage tests against this version to check it.

@lmolkova: I reviewed this again and it LGTM.


Support ethr did in the JS IDM Client

Description
Support ethr did in the JS IDM Client. This task is easy because we are using https://github.com/uport-project/did-resolver and there's already https://github.com/uport-project/ethr-did-resolver!
Acceptance Criteria

[ ] Integrate https://github.com/uport-project/ethr-did-resolver into the IDM Client into did-resolver, the file that configures did-resolver: https://github.com/ipfs-shipyard/js-idm-client/blob/master/src/did-resolver.js

@satazor
I think this is done in this PR.


Add important to margin-left to always apply

Fix for #2

Hi @katbow, is this still in progress?

@dideler yes! I need to devote some time into looking at events fired when a new video is played. The problem is the show comments button isn't re-rendered when switching from a video with show more to one without (and vice versa).

@katbow, Fix this PR & Issue#2 by PR#29 📁
Please check it. And thanks for submitting this first PR 🙌

looks great @1natsu172 ! Thanks for fixing up. Great simple solution 🙂


libperl.so: file too short

Bug description
nixos-rebuild switch gets me

[root@nixos:~]# nixos-rebuild switch
building the system configuration...
error: builder for '/nix/store/ra5rm270hlzy5zq31lhywc57bf9c6164-system-path.drv' failed with exit code 127;
last 1 log lines:
/nix/store/1q2mmbz3c71rzlpd1mkf1av9sjci0alr-perl-5.36.0/bin/perl: error while loading shared libraries: /nix/store/1q2mmbz3c71rzlpd1mkf1av9sjci0alr-perl-5.36.0/lib/perl5/5.36.0/x86_64-linux-thread-multi/CORE/libperl.so: file too short
For full logs, run 'nix log /nix/store/ra5rm270hlzy5zq31lhywc57bf9c6164-system-path.drv'.
error: 1 dependencies of derivation '/nix/store/3q78dczgnaiiz3xbjgkgyjww6ir53dn9-nixos-system-nixos-22.11.20221004.1a8c012.drv' failed to build

To Reproduce
Steps to reproduce the behavior:
Expected behavior
system closure should be built
Logs
error: builder for '/nix/store/ra5rm270hlzy5zq31lhywc57bf9c6164-system-path.drv' failed with exit code 127;
       last 1 log lines:
       > /nix/store/1q2mmbz3c71rzlpd1mkf1av9sjci0alr-perl-5.36.0/bin/perl: error while loading shared libraries: /nix/store/1q2mmbz3c71rzlpd1mkf1av9sjci0alr-perl-5.36.0/lib/perl5/5.36.0/x86_64-linux-thread-multi/CORE/libperl.so: file too short
       For full logs, run 'nix log /nix/store/ra5rm270hlzy5zq31lhywc57bf9c6164-system-path.drv'.
error: 1 dependencies of derivation '/nix/store/3q78dczgnaiiz3xbjgkgyjww6ir53dn9-nixos-system-nixos-22.11.20221004.1a8c012.drv' failed to build

entry in my /etc/nixos/flake.nix
nixos-wsl.url = "github:nix-community/NixOS-WSL/0b29fc7500d3222c396556661276b98f060d6838";

Sorry for the noise, for later reference the link to how this is solved.


[TO-DO] Sparkle 2.1.1

Sparkle Engine
A fast, Cross-platform .NET 7 C# 11 game engine.
RayLib (Cheatsheet: https://www.raylib.com/cheatsheet/cheatsheet.html)
Features

[x] Directed, Pointed Light Component
[ ] Loading Screen (LoadingGUI) by starting the game and switching scenes.
[x] Register System

GUI Elements

[ ] CheckBox
[ ] DropDownBox
[ ] TextBox
[ ] ValueBox
[ ] Spinner
[ ] Slider
[ ] SliderBar
[ ] ProgressBar

Not possible (Right now)

[ ] Angle Impliment Vulkan, Direct3D and Metal https://github.com/ChrisDill/Raylib-cs/pull/186
[ ] Check F12 https://github.com/ChrisDill/Raylib-cs/pull/186

By the way, I think the OpenGL flag issue should be removed, as the owner of Raylib-cs has closed it, and therefore not be implementing it.

By the way, I think the OpenGL flag issue should be removed, as the owner of Raylib-cs has closed it, and therefore not be implementing it.

He closed it because he thought this is for flags for the window settings bit it is still coming for the msbuild system so for the .csproj file

He closed it because he thought this is for flags for the window settings but it is still coming for the msbuild system so for the .csproj file

Oh, he moved it to another issue. I see, thanks.


Add Code Copy Section for Projects

Implement a feature that allows users to easily copy HTML, CSS, and JavaScript code snippets from project examples. This section should include:

A visually distinct code block for each language (HTML, CSS, JS).
A 'Copy' button for each code block, enabling users to quickly copy the code to their clipboard.
Optional: Add syntax highlighting for better readability.

This feature will enhance the user experience by making code examples more accessible and easier to use.

I want to work on that issue. Please assign me!

Hi @deepak-raaaz is this issue still open ?


[GOAL] taking the address of a stack spilled variable

I was wrong - it turns out you can take the address of a variable spilled to the stack. It's done in (method 0 fact-info).
This seems like it won't be so bad to support in the decompiler.  We can upgrade the stack-vars file to support this. Also should clear up "stack structure" vs. "stack variable".
In OpenGOAL we don't have any support for this yet.  I think there are two parts to this:

Have a way to tell the compiler that a variable should be spilled onto the stack.
Allow taking the address of one of these.

Also in (method 18 res-lump) and (method 21 res-lump)

occurs when calling one of res-lump's methods in entity-actor-lookup in actor-link-h

This was added in https://github.com/water111/jak-project/pull/554 and seems to work pretty well.


Fixing odd characters

I think the special characters have been dealt with. I also cherry-picked the commit to get your other changes to the file


feat: support tailwindcss "v3" and use of server package

Description
The other day, version 3 of tailwindcss was officially released. https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.0.0
The current coc-tailwindcss does not seem to be able to use v3 properly and comfortably. :(
I created a PR for v3 referenced on upstream code. 🙇 https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/vscode-tailwindcss
As a side note, I have confirmed that tailwindcss v2 can also be used.
Summary

Changed to use @tailwindcss/language-server

https://www.npmjs.com/package/@tailwindcss/language-server

"lsp/tailwindcss-language-server" has been removed.
Added "initializationOptions" and "settings" needed to start @tailwindcss/language-server

[EDIT] Some of the initializationOptions are no longer required in v0.0.7.

Added tailwindCSS.showOutput command

This can be selected and displayed with workspace.showOutput, but as with "upstream", we have added a dedicated command.

Removed tailwindCSS.cssLanguages, tailwindCSS.jsLanguages, tailwindCSS.htmlLanguages settings

New configuration, tailwindCSS.includeLanguages has been added.

[EDIT] Changed "activationEvents" from * to workspaceContains:**/tailwind.config.js, etc...
[EDIT] Added a custom setting called tailwindCSS.custom.serverPath.
Other adjustments.

DEMO (mp4)
Before
https://user-images.githubusercontent.com/188642/147442099-8a15b87e-cb00-4ce0-9f4c-d7ee5b37135b.mp4
After
https://user-images.githubusercontent.com/188642/147442111-db10823f-8fc8-40fc-88e3-54766201c625.mp4

@iamcco ping

This is working perfectly !
Thanks @yaegassy ! 🙏

@yaegassy  I also switched to your branch, is working perfect! thanks!

@yaegassy  I also switched to your branch, is working perfect! thanks!

How can I directly use this branch with coc?

You need to install the extensions with a Plugin Manager, for Plug:
Add to your .vimrc or init.vim
Plug 'yaegassy/coc-tailwindcss',  {'do': 'npm install --frozen-lockfile && npm run build', 'branch': 'feat/support-v3-and-use-server-pkg'}

It seems that the latest version (v0.0.7) of the server package (@tailwindcss/language-server) has been released.

<EMAIL_ADDRESS>
Committed the upgrade of the server package. I also adjusted and committed the relevant client-side (coc-tailwindcss) code.
v0.0.6 and later version, it seems that a fallback process has been added to use the tailwindcss module shipped with the server if the project's tailwindcss module cannot be detected correctly.
REF:

vscode-tailwindcss's CHANGELOG

https://github.com/tailwindlabs/tailwindcss-intellisense/blob/master/packages/vscode-tailwindcss/CHANGELOG.md

Added a custom setting called tailwindCSS.custom.serverPath.

tailwindCSS.custom.serverPath: Custom path to server module. If there is no setting, the built-in module will be used, default: ""

This setting allows you to use the tailwind's language server module installed in any location.
Usage Example 1 (vsix)
prepre:
mkdir -p /tmp/tailwindcss-language-server
cd /tmp/tailwindcss-language-server
curl -LO https://github.com/tailwindlabs/tailwindcss-intellisense/releases/download/v0.7.6/vscode-tailwindcss-0.7.6.vsix
unzip vscode-tailwindcss-0.7.6.vsix

setting:
{
  "tailwindCSS.custom.serverPath": "/tmp/tailwindcss-language-server/extension/dist/server/tailwindServer.js"
}

Usage Example 2 (npm)
prepre:
npm i -g<EMAIL_ADDRESS>
setting:
{
  "tailwindCSS.custom.serverPath": "/Users/yaegassy/.nvm/versions/node/v16.13.1/bin/tailwindcss-language-server"
}

@iamcco ping

:CocInstall https://github.com/yaegassy/coc-tailwindcss/@feat/support-v3-and-use-server-pkg/

If PlugInstall doesnt work with this fork :)

Not sure if I did anything wrong, but It appears the coc-tailwind language server isn't turning on for .svelte files, this may be out of the scope of this PR as I have never used the previous coc-tailwind to know if it previously support it, but looking at the source code it seems to be a previous feature

@Yofou Try running :CocCommand tailwindCSS.showOutput.
// ...snip

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/yaegassy/sandbox/svelte-check/tailwind.config.js from /Users/yaegassy/_Dev/vim/coc-tailwindcss/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server not supported.
tailwind.config.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename tailwind.config.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/yaegassy/sandbox/svelte-check/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

// ...snip

Rename tailwind.config.js to tailwind.config.cjs and try it.
In my environment, it worked with svelte.
Capture:

How to install this before merge?

Hi @adinvadim, Here is an example of vim-plug, with yarn.
Plug 'yaegassy/coc-tailwindcss', {'do': 'yarn install --frozen-lockfile', 'branch': 'feat/support-v3-and-use-server-pkg'}

This works awesome!! nice job

Not working for `for me.
The coc log shows this error -

This is how I am setting up Coc and this plugin (note that I am using packer and not vim-plug) -
    use {'neoclide/coc.nvim', branch = 'release',
      config = function()
        vim.g.coc_global_extensions = {
         "coc-emmet",
         "coc-css",
         "coc-html",
         "coc-json",
         "coc-prettier",
         "coc-tsserver"
        }
      end
    }
    use {"yaegassy/coc-tailwindcss", run = "yarn install --frozen-lockfile && yarn build", branch = "feat/support-v3-and-use-server-pkg"}

Also, :CocCommand tailwindCSS.showOutput command is not found.
Am I going wrong somewhere?

@AnishDe12020 I don't use packer, so I don't know the cause.
Skipped load vim plugin from "...snip.../coc-tailwindcss" in your screenshot, so I guess it's not available.
First, try updating coc.nvim to the latest version. There has been a lot of refactoring going on lately, so maybe this is related to that.
You may also want to check if it works without using the plugin manager.
e.g.:
.vimrc/init.vim
set runtimepath^=/path/to/coc-tailwindcss

@AnishDe12020 I don't use packer, so I don't know the cause.
Skipped load vim plugin from "...snip.../coc-tailwindcss" in your screenshot, so I guess it's not available.
~First, try updating coc.nvim to the latest version. There has been a lot of refactoring going on lately, so maybe this is related to that.~
You may also want to check if it works without using the plugin manager.
e.g.:
.vimrc/init.vim
set runtimepath^=/path/to/coc-tailwindcss

EDIT:
Ah, The log says "already global extension", so I figured out why.
Uninstall coc-tailwindcss that you previously installed with :CocInstall and try again!
:CocUninstall coc-tailwindcss

Thanks a lot, reinstalling worked!

This is great. Got everything working nicely. Also enabled Twin.Macro intellisense by edting the tailwindCSS.experimental.classRegex to:
tailwindCSS.experimental.classRegex": {
                         "type": "array",
                         "scope": "language-overridable",
                         "default": [
                            "tw`([^`]*)",
                             "tw=\"([^\"]*)",
                             "tw={\"([^\"}]*)",
                            "tw\\.\\w+`([^`]*)",
                            "tw\\(.*?\\)`([^`]*)"
                        ]
                    }, ```

@yaegassy Just wanted to say that your fork works wonderfully. @iamcco  please do merge it!
Thx for both🙏

@yaegassy You are amazing. Just wanted to say that your PR works beautifully as well!

Please, please, please merge this :)  Lifesaver!

I just published @yaegassy/coc-tailwindcss3, with this PR tailwindcss v3 support. :CocInstall @yaegassy/coc-tailwindcss3.

https://github.com/yaegassy/coc-tailwindcss3
https://www.npmjs.com/package/@yaegassy/coc-tailwindcss3

Note that: after iamcco came back and merge this PR, the you should use back coc-tailwindcss.


systemctl needs to have a path

In my agent runs I get:

Failed to apply catalog: Validation of Exec[systemctl daemon-reload] failed: 'systemctl daemon-reload' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppetlabs/code/environments/pidev/modules/nfs/manifests/client/config.pp:56

https://github.com/derdanne/puppet-nfs/blob/4db2627bdeec773bae36576151e399054786302d/manifests/client/config.pp#L56 indeed needs to either say /bin/systemctl daemon-reload or have a path parameter.

Hi,
thanks for the report! This is correct, i will fix this in the next release.


Javadoc checkstyle

Fixes #16

Added javadoc checking in checkstyle
Removed javadoc for setters and getters

@milannister You can add javadoc in this PR or merge and create a new one for javadoc. Getters and setters and ignored if they are in typical form (getSomething, setSomething). More here under allowMissingPropertyJavadoc


before_invitation_created callback executed for User.invite!, but not for @user.invite!

See title.
I'd expect for this callback to be executed for both method calls, but clearly this isn't the case. Is this a bug or desired behavior? If it's expected behavior it might be worth specifying this quirk in the docs. Either way, happy to lend a hand with a PR.
I'm using devise_invitable from master if that's useful information at all.

It isn't expected behaviour, indeed run_callbacks :invitation_created it's called inside @user.invite! method, I don't know why it wasn't called for you. What version are you using? I don't remember if previous versions was different, I only checked current code.


No Node Info appearing

We have a mixed HPE cluster where we are unable to see node details.
Cluster Overview appears to be working perfectly. but when going to Node Overview I see.
This is for 2 different clusters
1 * 12 Node Cluster
1 * 5 Node Cluster

This has been resolved in last week's commit. Changes here:
https://github.com/Qumulo/qumulo-monitoring-dashboard/commit/8b8603cbab57f75e6b6d76d652f538b41d81bc0e