Refactor ath10k-replace to no longer need an outputHash

The outputHash would change and frequently cause this to not work. This
gets around the issue by using the built version firmwareLinuxNonfree as
a source instead of trying to patch it directly.

#288 #374


How to specify resource for integration components

To run any pods in k8s we should be providing limiting and request resources (cpus and memory). How can we pass this in a camel-k component? I don't see this to be available with any of existing Traits ?
If not, then it should be a must have feature to implement in production.

I think the container is what you are looking for


Convert the library in a Cargo's workspace

Currently Canyon-SQL works by having the related crates managed with the Cargo.toml files, relating its dependencies in the file and the crates that depends on the others in the same way.
Rust Cargo offers the workspaces feature, that will allow to manage multiple dependent crates of a library with low effort. We should upgrade to take advantage of that feature, also, having a root Cargo file that will allow to run tests for the whole project and collect the generated coverage from them.

This will be linked to PR #18 that will be necessary to set up correctly the new actions to test + cc


error installing from source for Apple silicon processors

Attempting to install from source on an Apple M1 mac gives the error shown below. It works fine under an identical setup using the x86 compiler, so I suspect this is something specific to the arm compiler. I have compiled R from source and all other dependencies are installed without error from source, tested with both R 4.0.3 and 4.1.0. Unfortunately I have no experience with C/C++ to help with this, but wanted to document in case I'm doing something wrong or as others may run into the same issue.
Thanks!
Aalim
`clang++ -I"/Users/aalim/Downloads/R_arm_compile/R-devel/include" -DNDEBUG   -I/opt/homebrew/include/ -I/Users/aalim/Downloads/R_arm_compile/R-devel/include -I../inst/include -I/usr/local/include   -fPIC  -g -O2  -c DIP.cpp -o DIP.o
In file included from DIP.cpp:2:
In file included from ./Cardinal.h:9:
In file included from /Users/aalim/Downloads/R_arm_compile/R-devel/include/Rinternals.h:36:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:45:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__nullptr:34:5: error: templates must have C++ linkage
template
^~~~~~~~~~~~~~~~~~~~
./Cardinal.h:7:1: note: extern "C" language linkage specification begins here
extern "C"
^
In file included from DIP.cpp:2:
In file included from ./Cardinal.h:9:
In file included from /Users/aalim/Downloads/R_arm_compile/R-devel/include/Rinternals.h:36:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:45:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__nullptr:38:5: error: templates must have C++ linkage
template <class _Tp, class _Up>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Cardinal.h:7:1: note: extern "C" language linkage specification begins here
extern "C"
^
2 errors generated.
make: *** [DIP.o] Error 1
ERROR: compilation failed for package ‘Cardinal’

removing ‘/Users/aalim/Downloads/R_arm_compile/R-devel/library/Cardinal’
`

So it looks like the issue has already been dealt with by John Marshal and the fix is available currently as a pull request (#17).

So it looks like the issue has already been dealt with by John Marshal and the fix is available currently as a pull request (#17).


Thousands separators in numbers [several places]

I've noticed thousands separators missing on some numbers in the UI.
User Page Header

Search Results

1

@morebrownies What the heck is that? ^^^

+1

Apparently typing + 1 with a space makes it a bullet

Dev note:
For the the numbers in the tabs, we should run them through the abbrNum utility function, which will ensure they never get too long (e.g. 10, 345 would display as 10k, 450,123, 445 would display as 450m).
For the store listing count, we should display it with the separator in a localized way.


Disable Mouse

I'd like an option to disable/enable the mouse support.
Often, when typing I hit my trackpad and it shifts my results, which is undesireable. Mouse support is so common, I'd say this should be opt-in behavior.

Resolved by #65


Closes #1173 - Fix String related issues

Fix https://github.com/inspectIT/inspectit-ocelot/issues/1173

This change is

Please merge this one last - merge conflicts...

@mariusoe merge conflicts solved. Please review.


SSH access

Currently drive works by using https. Due to some strange configuration of the router of my office I am not able to connect. I get the answer:
Get https://www.googleapis.com/drive/v2/files?alt=json&q=%22root%22+in+parents+and+title+%3D+%2210_TEST%22+and+trashed%3Dfalse: Post https://accounts.google.com/o/oauth2/token: http: error connecting to proxy https://persefone.utadeo.edu.co:8080/: dial tcp <IP_ADDRESS>:8080: getsockopt: connection refused
I have a similar situation with connecting to bitbucket through mercurial. There I solved the issue using ssh. There my configuration file is something like:
[paths]
default =<EMAIL_ADDRESS>
Is there something similar here?
Thanks!

@gavox unfortunately, SSH protocol is not supported by Google Drive API, which is used by drive, therefore it's not possible.
cc @odeke-em

Thanks!

Hello @gavox, thank you for the question and welcome to drive! Thank you @idvoretskyi for answering the question.
In deed, what @idvoretskyi said. However, if you'd like to use drive on a server that you connect to via SSH, you'd still have to SSH onto your server, and then set up drive via the commandline e.g https://github.com/odeke-em/drive/issues/963#issuecomment-343334482.
I'll close this question as @idvoretskyi answered it. Thank you again.


Markdown Preview does not render any text

Issue Type: Bug
Opening the markdown preview, via wither clicking the icon in the top right, or the keyboard with Command-K V (Control-K V on windows), does not show the rendered markdow in the new panel.
Open any Markdown file (.md)
Click the icon or hit the key combo to open the preview, the preview pane is empty.

VS Code version: Code - Insiders 1.35.0-insider (5e1f9440d280b0b04cba843df6a0032bf517a2f0, 2019-05-24T05:15:17.681Z)
OS version: Darwin x64 18.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
32.00GB (0.17GB free)

Process Argv
-psn_0_1741225

Screen Reader
no

VM
25%

Extensions (19)

Extension
Author (truncated)
Version

ng-template
Ang
0.1.11

path-intellisense
chr
1.4.2

vscode-svgviewer
css
2.0.0

vscode-eslint
dba
1.9.0

githistory
don
0.4.6

auto-close-tag
for
0.5.6

auto-rename-tag
for
0.0.15

output-colorizer
IBM
0.1.2

Angular2
joh
7.1.6

azure-account
ms-
0.8.4

csharp
ms-
1.19.1

vscode-typescript-tslint-plugin
ms-
1.1.0

debugger-for-chrome
msj
4.11.3

vetur
oct
0.21.0

material-icon-theme
PKi
3.7.0

quicktype
qui
12.0.46

vue-vscode-snippets
sdr
1.6.0

open-in-browser
tec
2.0.0

vscodeintellicode
Vis
1.1.6

(3 theme extensions excluded)

Opening the developer tools, and doing a Refresh Window command, this is displayed in the console:
ERR Cannot read property 'resource' of null: TypeError: Cannot read property 'resource' of null
	at Function.revive (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\markdown-language-features\dist\extension.js:1:70054)
	at l.deserializeWebviewPanel (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\markdown-language-features\dist\extension.js:1:66504)
	at u.$deserializeWebviewPanel (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:567:242)
	at d._doInvokeHandler (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:640:1006)
	at d._invokeHandler (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:640:698)
	at d._receiveRequest (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:639:346)
	at d._receiveOneMessage (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:638:141)
	at define.constructor._protocol.onMessage.e (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:636:400)
	at u.fire (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:47:720)
	at e (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:43:667)
	at u.fire (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:47:720)
	at a (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:175:911)
	at e (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:175:957)
	at u.fire (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:47:720)
	at y._receiveMessage (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:184:834)
	at define.constructor._socketDisposables.push._socketReader.onMessage.e (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:182:116)
	at u.fire (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:47:720)
	at f.acceptChunk (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:178:692)
	at define.constructor._register._socket.onData.e (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:178:44)
	at Socket.t (c:\Users\John Tsombakos\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:186:325)
	at Socket.emit (events.js:182:13)
	at addChunk (_stream_readable.js:279:12)
	at readableAddChunk (_stream_readable.js:264:11)
	at Socket.Readable.push (_stream_readable.js:219:10)
	at Pipe.onread (net.js:636:20)
workbench.main.js:1402   ERR (intermediate value) is not a function: TypeError: (intermediate value) is not a function
    at G.<anonymous> (file:///C:/Users/John Tsombakos/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:5501:813)
    at Generator.next (<anonymous>)
    at file:///C:/Users/John Tsombakos/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:34:621
    at new Promise (<anonymous>)
    at n (file:///C:/Users/John Tsombakos/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:34:398)
    at lifecycleService.when.then (file:///C:/Users/John Tsombakos/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:5501:699)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Broken by 4929acf926a938505653ae20eff6fe18577a6044

@mjbvz I cannot reproduce in that insiders version so the revert seems like a flux, can you please test again and then revert the revert if it is unrelated?

I just did a code review of that change and really cannot see any issues with it...

Wait, now I see it. Seems to be related to the breadcrumbs being enabled...


Notification "You have disable this plugin" appears when using default configuration from readme

Describe the bug
When using the default configuration provided in the readme
{ "shellRaining/hlchunk.nvim", event = { "UIEnter" }, },

A notification is displayed on Vim start that says

you have disable this plugin

To Reproduce
Steps to reproduce the behavior:
Install hlchunk.nvim, use the configuration provided in the readme, open a file with neovimvim
I am using neovim stable
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

Expected behavior
I would expect the provided configuration to work "out of the box". If we need to manually enable specific features to make it work, that should be notated in the readme. It appears that the only way to make this notification not appear is to enable all features of the plugin. Which is fine, but that should be notated.
Additionally, the readme states the default configuration is supposed to have all parts of hlchunk enabled
Lastly, disabling an optional piece of the plugin should not display a message on vim startup.

yes, this bug was introduced in commit https://github.com/shellRaining/hlchunk.nvim/commit/9cff52ad9fa48bf8676fbfcc1e02ad6f436ac9c3, in this commit i change the return type of get_chunk_range function from table<int, int> to table<int, int> | nil, the purpose is to check whether the function successfully returns a valid range. I checked nil in hl_chunk but forget hl_line_num also use this function, which introduce this bug.
thanks a lot for finding and fixing this bug, i will merge it later. To prevent this kind of problem, i will strengthen the strictness of luacheck and add more type annotation. There will be many changes in this repository in the coming days. I will improve it as soon as possible and provide a stable version.
And also thank you very much for taking interest in this plugin. 😊 this is the first neovim plugin I have written, so there may be many shortcomings, hope you can give me more guidance and feedback.


Unexpected behaviour when checking student's wrong solution

Describe the bug
We investigated our reference solution by introducing different mistakes an imaginary student could make in the student's implementation. The student is expected to write a function square(a), which takes list a with elements as an input. It should square all elements individually and return a list of squared elements. Our reference solution is:
def square(a):
    res = []
    pybryt.Value(res,
                 name='empty_list',
                 success_message='SUCCESS 1: Great! You start with an empty list.',
                 failure_message='ERROR 1: Hmmm... Did you define an empty list before the loop?')
    for i in a:
        i_squared = i**2
        pybryt.Value(i_squared,
                     name='i_squared',
                     success_message='SUCCESS 2: Amazing! You are computing the squares of individual elements.',
                     failure_message='ERROR 2: Please check if you compute the squares of individual elements?')

        res.append(i_squared)
        pybryt.Value(res,
                     name='appending',
                     success_message='SUCCESS 3: Wow! You are appending the squared elements.',
                     failure_message='ERROR 3: Oops... Please check if you are appending the individual elements?')

    return res

pybryt.Value(square([-555, 13, 57, 0, 1, 2, -44]),
             name='final',
             success_message='SUCCESS 4: Your final solution is correct.',
             failure_message='ERROR 4: The final solution is wrong.')

The student's wrong solution is:
def square(a):
    res = []
    for i in a:
        if i < 0:
            i_squared = -i  # mistake introduced (-i instead of i**2 for negative elements)
        else:
            i_squared = i**2

        res.append(i_squared)

    return res

By checking the student's implementation, PyBryt gives feedback to the student that the solution is wrong, as we expected. However, the feedback messages are puzzling. More precisely:
with pybryt.check(reference(2)):
    square([-555, 13, 57, 0, 1, 2, -44])

REFERENCE: reference-2
SATISFIED: False
MESSAGES:
  - SUCCESS 1: Great! You start with an empty list.
  - SUCCESS 2: Amazing! You are computing the squares of individual elements.
  - ERROR 3: Oops... Please check if you are appending the individual elements?
  - ERROR 4: The final solution is wrong.

Although we moved the testing list away from "the origin" to increase the signal-to-noise ratio by using -555, the student gets SUCCESS 2 message. Is this a bug, or we are missing something because we do not expect 555**2 to be in the student's implementation footprint?
To Reproduce
The issue we encountered can be reproduced in 02-code-outside-functions example in https://github.com/marijanbeg/pybryt-examples repository.
Expected behavior
We expect the student to receive ERROR 2 instead of SUCCESS 2 message.

Thanks for catching this @marijanbeg. The issue is caused by how tolerances are factored in. I've opened #68 which fixes this issue.


RC Loss Alarm

New module that plays an alarm sound when RC signal is lost after flying. It checks the arming and the rc_signal_lost members of the vehicle_status message. For the alarm to trigger, the module needs to see a switch to ARMING_STATE_ARMED and also the rc_signal_lost flag needs to be false at least once. The latter is for setups or scenarios without an RC, like flying a mission in HITL with the RC disconnected.
@bkueng Can you have a look? Module name and location are debatable. Also, I only included the module in  cmake/configs/nuttx_px4fmu-v4_default.cmake at this point at it is not automatically started in any startup script.

So we really need a separate module for this?

So we really need a separate module for this?

That was my initial reaction as well, but given how convoluted and borderline unmaintainable commander has become I'm all for it.
If anything we should be thinking of a ModuleBase equivalent or extension to make it trivial to write these little things that run in work queues at a very low rate.

@mhkabir

So we really need a separate module for this?

Exactly because of this:

given how convoluted and borderline unmaintainable commander

I think it should be an easy task to put this feature somewhere else in the future. But once it's inside the commander, it stays there for ages...
Also, I thought this feature would be something primarily targeting FPV pilots and the like. Now that PX4 is going down that road :)
@dagar
Thanks for the review

This looks like it would fit nicely into the events module: adding a new class and call it from here will keep it modular.

@bkueng The RC loss alarm has been refactored into the events module. I omitted the test, reset and stop functionality since I did not know if that fits into how the event module is supposed to be used.
This also raises the question how we start tasks that continuously run. Currently the user has no choice whether he wants to run status_display for example. But given that at one point in the future we have a dozen of these tasks, all occupying memory, one might want to disable a few of them. Should we do this via enable/disable parameters for each event task or should we require that each task is started via a CLI command during boot?

I would go for a parameter, that will make it easy for a user to configure. Internally we can then still do separate memory allocations if needed for bigger tasks.

@bkueng Parameters have been added for status display and for the RC loss alarm. When the corresponding parameter is set to true, it allocates the task.

@bkueng Thanks for the review, I made the changes you requested :+1:

Great, thanks for merging :smile:


Incorrect uses of binaryninja.types.EnumMembersType in API type annotations

Version and Platform (required):

Binary Ninja Version: 3.0.3233
OS: macOS
OS Version: 12.2

Bug Description:
The definition of EnumMembersType at https://github.com/Vector35/binaryninja-api/blob/ece59d9114f566a0f364cf8c56d555b70952f70b/python/types.py#L46 includes List[] wrapping around all Union[] variants. However, its use in https://github.com/Vector35/binaryninja-api/blob/ece59d9114f566a0f364cf8c56d555b70952f70b/python/types.py#L647-L652 wraps the type in a List[] as well.
The builder method it calls also has this same annotation: https://github.com/Vector35/binaryninja-api/blob/ece59d9114f566a0f364cf8c56d555b70952f70b/python/types.py#L1237-L1242
as well as the builder's protected method for actually adding the enum members:
https://github.com/Vector35/binaryninja-api/blob/ece59d9114f566a0f364cf8c56d555b70952f70b/python/types.py#L1290-L1305
but this code clearly expects items in members to be Union[Tuple[str, int], str, 'EnumerationMember']. These annotations should all be Option[EnumMembersType]/EnumMembersType instead.
Steps To Reproduce:

Create an enumeration type in the BN GUI console or headless mode following the type annotations in the docs for Type.enumeration(), e.g. Type.enumeration(width=1, members=[[("foo", 1)]])
Get a stacktrace:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Applications/Binary Ninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/types.py", line 1702, in enumeration
    return EnumerationType.create(members, width, arch, sign)
  File "/Applications/Binary Ninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/types.py", line 1983, in create
    EnumerationBuilder._add_members(builder, members)
  File "/Applications/Binary Ninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/types.py", line 1209, in _add_members
    core.BNAddEnumerationBuilderMember(enum_builder_handle, name)
UnboundLocalError: local variable 'name' referenced before assignment

Expected Behavior:
Documented and actual behaviour should match.
Screenshots:
n/a
Additional Information:
n/a

Just fixed in dev should be in the next release > 3.0.3321


Creating a Chat App design with HTML,CSS,Js

Issue Type:
I want to add a new project  where I want to create a Chat app using HTML,Css and java script . After designing I will also make this a real time chat app using Node js and sockets .

@arpit456jain please can you assign this issue to me , I will make this chat web application from scratch.

@omkar raise this issue in amazing js projects repo


choco uninstall package does not remove all versions

Steps to reproduce
choco install eclipse -Version 4.4.1
choco install eclipse

results in:
eclipse.4.402
eclipse.4.4.1
Current outcome
choco uninstall eclipse needs to be issued twice to remove both versions
Expected outcome
Executing choco uninstall eclipse removes all versions

Duplicate of #389


Full description not showing when running node generate.js -c <scope>.<pattern>

If the full description is located in the desc folder which is reference through "desc": "#Member.md", the description of the rendered html is just #Member.md instead of showing the content of Member.md in the desc folder. This issue occurs when generating a certain member of the scope. e.g. node generate.js -c app.CreateButton

Fixed by #adf5f57


MXCrypto: Reset OTKs when some IDs are already used

This is a mitigation for vector-im/element-ios#3721.
But it does not fix the root issue.
This is how this PR behaves on the steps to reproduce:
2020-10-08 09:16:22.890670+0200 Riot[31404:1330203] [MXHTTPClient] #12 - POST _matrix/client/r0/keys/upload/SYNBAYVHFQ completed in 196ms
2020-10-08 09:16:22.891049+0200 Riot[31404:1330203] [MXHTTPClient] Request 0x6000002a2ec0 failed for path: _matrix/client/r0/keys/upload/SYNBAYVHFQ - HTTP code: 400. Error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo={NSLocalizedDescription=Request failed: bad request (400), NSErrorFailingURLKey=https://matrix-client.matrix.org/_matrix/client/r0/keys/upload/SYNBAYVHFQ, com.alamofire.serialization.response.error.data={length = 531, bytes = 0x7b226572 72636f64 65223a22 4d5f554e ... 4167277d 7d7d227d }, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x600001d17e40> { URL: https://matrix-client.matrix.org/_matrix/client/r0/keys/upload/SYNBAYVHFQ } { Status Code: 400, Headers {
2020-10-08 09:16:22.891735+0200 Riot[31404:1330449] [MXCrypto] uploadOneTimeKeys fails.
2020-10-08 09:16:22.891984+0200 Riot[31404:1330449] [MXCrypto] generateAndUploadOneTimeKeys: Failed to publish one-time keys. Error: Error Domain=org.matrix.sdk Code=6 "One time key signed_curve25519:AAAAAQ already exists. Old key: {"key":"mbMSl5/v4ZUOYa4K3WjIdpB/vCEh/gjB4FhSWOq3IAA","signatures":{"@superman:matrix.org":{"ed25519:SYNBAYVHFQ":"CteVb3rbYFQ4qxAqg3YsU7EaUN6tSmZK+OssNU8At0UCD/vQuLuxh21jalNGpn9HvtTNz10Qsw/X5gTYmXVbDQ"}}}; new key: {'key': 'XiwFps8Lz/+VWflVk/1O7P6gz/2q2Z118drmjnzjrTA', 'signatures': {'@superman:matrix.org': {'ed25519:SYNBAYVHFQ': 'BRYhdAJRlE3luwP//29pyuX3DxhJw8WxextbPY6Wg8eL+NMaDQnYixSpLLxuj5AdmnzZhgKxERs3SxsMV+NtAg'}}}" UserInfo={errcode=M_UNKNOWN, httpResponse=<NSHTTPURLResponse: 0x600001d17e40> { URL: https://matrix-client.matrix.org/_matrix/client/r0/keys/upload/SYNBAYVHFQ } { Status Code: 400, Headers {
2020-10-08 09:16:22.896053+0200 Riot[31404:1330449] [MXCrypto] uploadOneTimeKeys: Reset local OTKs because the server does not like them
2020-10-08 09:16:22.896735+0200 Riot[31404:1330449] [MXCrypto] uploadOneTimeKeys: Upload 1 keys
2020-10-08 09:16:22.896911+0200 Riot[31404:1330449] [MXHTTPClient] #13 - POST _matrix/client/r0/keys/upload/SYNBAYVHFQ
2020-10-08 09:16:23.101934+0200 Riot[31404:1330203] [MXHTTPClient] #13 - POST _matrix/client/r0/keys/upload/SYNBAYVHFQ completed in 205ms
2020-10-08 09:16:23.669519+0200 Riot[31404:1330203] [MXHTTPClient] #5 - POST _matrix/client/r0/keys/upload/SYNBAYVHFQ completed in 1992ms
2020-10-08 09:16:23.669972+0200 Riot[31404:1330449] [MXCrypto] uploadDeviceKeys done for @superman:matrix.org:

We detect the problem and we retry with new OTKs

I double checked code from android and web. We store the OLM account in the same way as other SDKs. I cannot understand how a rotation of OTKs and a reuse of existing IDs can happen.


Bokeh plotting tool option name "previewsave" is not supported in mm.plot_sequence()

:bug: :question:  Possible minor bug
Bokeh plotting tools does not support the name "previewsave" listed as one of their tooling options, instead they list the name "save". Since this code was merged a long time ago https://github.com/tensorflow/magenta/pull/617, and no one has reported this issue I am confused as to why plot_sequence() does not work for me when I follow the installation instructions on the read me under Automated Install w/ Anaconda and Manual Install w/o Anaconda + Development Environment.
To Reproduce
>>>  nseq = mm.midi_file_to_note_sequence(file_path)
>>>  mm.plot_sequence(nseq)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-3-3e4dcf9864a0> in <module>
----> 1 p = mm.plot_sequence(nseq)

~/anaconda3/envs/magenta/lib/python3.7/site-packages/magenta/music/notebook_utils.py in plot_sequence(sequence, show_figure)
    148   # by updating the figure if need be.
    149   fig = bokeh.plotting.figure(
--> 150       tools='hover,pan,box_zoom,reset,previewsave')
    151   fig.plot_width = 500
    152   fig.plot_height = 200

~/anaconda3/envs/magenta/lib/python3.7/site-packages/bokeh/plotting/figure.py in figure(**kwargs)
   1362
   1363 def figure(**kwargs):
-> 1364     return Figure(**kwargs)
   1365 figure.__doc__ = Figure.__doc__
   1366

~/anaconda3/envs/magenta/lib/python3.7/site-packages/bokeh/plotting/figure.py in __init__(self, *arg, **kw)
    164         process_axis_and_grid(self, opts.y_axis_type, opts.y_axis_location, opts.y_minor_ticks, opts.y_axis_label, self.y_range, 1)
    165
--> 166         tool_objs, tool_map = process_tools_arg(self, opts.tools, opts.tooltips)
    167         self.add_tools(*tool_objs)
    168         process_active_tools(self.toolbar, tool_map, opts.active_drag, opts.active_inspect, opts.active_scroll, opts.active_tap)

~/anaconda3/envs/magenta/lib/python3.7/site-packages/bokeh/plotting/_tools.py in process_tools_arg(plot, tools, tooltips)
    126         list of Tools objects added to plot, map of supplied string names to tools
    127     """
--> 128     tool_objs, tool_map = _resolve_tools(tools)
    129
    130     repeated_tools = [ str(obj) for obj in _collect_repeated_tools(tool_objs) ]

~/anaconda3/envs/magenta/lib/python3.7/site-packages/bokeh/plotting/_tools.py in _resolve_tools(tools)
    166             continue
    167
--> 168         tool_obj = Tool.from_string(tool)
    169         tool_objs.append(tool_obj)
    170         tool_map[tool] = tool_obj

~/anaconda3/envs/magenta/lib/python3.7/site-packages/bokeh/models/tools.py in from_string(cls, name)
    156             if not matches:
    157                 matches, text = known_names, "possible"
--> 158             raise ValueError(f"unexpected tool name '{name}', {text} tools are {nice_join(matches)}")
    159
    160     @classmethod

ValueError: unexpected tool name 'previewsave', possible tools are pan, xpan, ypan, xwheel_pan, ywheel_pan, wheel_zoom, xwheel_zoom, ywheel_zoom, zoom_in, xzoom_in, yzoom_in, zoom_out, xzoom_out, yzoom_out, click, tap, crosshair, box_select, xbox_select, ybox_select, poly_select, lasso_select, box_zoom, xbox_zoom, ybox_zoom, save, undo, redo, reset, help, box_edit, point_draw, poly_draw, poly_edit or hover

Solution
If you also think this is a bug, then I would be glad to create a PR and make a minor change from previewsave to save or whatever you see fit.
Environment

Magenta Version: 1.3.0
Bokeh Version: 2.0.1
Installed Magenta (conda, pip, source): conda
Python Version: Python 3.7.7
OS: Linux

I had the same issue in Visual MIDI: https://github.com/dubreuia/visual_midi/issues/1, changing previewsave to save fixed it for me (bokeh 2.0.0 removed previewsave)


Adapt to famix changes

Do not merge yet.
Pending parser update +  release.

Famix PR regarding this:
Parametric:
https://github.com/moosetechnology/Famix/pull/604
https://github.com/moosetechnology/Famix/pull/635
https://github.com/moosetechnology/Famix/pull/708
UnknownSourceLanguage removal:
https://github.com/moosetechnology/Famix/pull/750

What about this PR ?


buffer_host not showing user presets

this is on the new "environment speedup" branch.  my saved presets for buffer_menu are missing, showing a list that i think is from klaus' computer?

this is fixed!


Failed to start loading, cause: The version of hugegraph-client and hugegraph-server don't match

When running the example provided in hugegraph-loader guided by hugegraph-doc
"sh bin/hugegraph-loader.sh -g hugegraph -f example/file/struct.json -s example/file/schema.groovy"
an error happens:
"Failed to start loading, cause: The version of hugegraph-client and hugegraph-server don't match"
Why is it?
Thanks

@sunlin0001 The versions of of the loader and server are not compatible, which version of hugegraph-server and hugegraph-loader do you use?

hugegraph and hugegraph-loader are cloned from GitHub. Following maven operations I get hugegraph-0.11.1 and hugegraph-loader-0.10.2.

@sunlin0001 The versions of of the loader and server are not compatible, which version of hugegraph-server and hugegraph-loader do you use?

@sunlin0001 There may be incompatibilities between the master branch, please try release-0.11 branch: https://github.com/hugegraph/hugegraph/tree/release-0.11


Problems with FTP Upload of image as byte []

I'm using the FTPClient in a Xamarin Forms project aimed solely at Windows UWP. I'm trying to upload an image taken by the camera (but scaled before saving to about 150kB). I'm using the following code to do the upload and I can confirm that the FTP server responds ok after the initial connection, but the upload fails with what looks like a timeout error. Have you seen anything like this?
 private async Task UploadAsync(string filename, string path)
        {
            string ftpUser = "XXXX";
            string ftpPass = "XXXX";
            string ftpUrl = "ftp://xxxxx/" + filename + ".jpg";

            Uri uri = new Uri(ftpUrl);

            FtpClient client = new FtpClient();

            await client.ConnectAsync(
                new HostName(uri.Host),
                 uri.Port.ToString(),
                ftpUser,
                ftpPass);

            byte[] data = null;

            await Task.Run(() =>
             {
                 data = File.ReadAllBytes(path);
             });

             await client.UploadAsync(uri.AbsolutePath, data);
            }
    }

I then get this error after about 25 seconds:
Exception thrown: 'System.Runtime.InteropServices.COMException' in mscorlib.ni.dll
WinRT information: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

For what it's worth, this is where the process gets stuck for me
 await dataStreamSocket.ConnectAsync(hostName, port.ToString());
If I hard code a port number (like 21) in there, a file with the correct filename (but with zero bytes) gets created on the server.

Hi! After two years, is there a fix for this issue?

Sorry, I haven't  had time to investigate. I'll try to do it this week.


[0.9.x][RHBPMS-4669] filter out invalid (null) login principals

In some cases (like one the described in the JIRA), the list of
principals contained a principal with 'null' name, which is
probably wrong. This caused a NPE further down as the name was used
to compute hashcode. Filtering the invalid principals seems to be
the easiest way to workaround that issue.
Backport of #707.

assuming that we didn't have any test before, right?

The test is in uf-extensions: https://github.com/AppFormer/uberfire-extensions/pull/320

ops :P - thank you!


fix: cmdline is empty in some cases

in local or docker

@Chetan11-dev can you look at the pull request please ?

Thanks for the pull request! I really appreciate you taking the time to contribute to this project.


#451 fix NPE

fixes #451

:+1:

[Current coverage][cc-pull] is 46.42%

Merging [#452][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.03%

@@             master       #452   diff @@
==========================================
  Files           133        133
  Lines          3102       3102
  Methods           0          0
  Messages          0          0
  Branches        257        257
==========================================
- Hits           1441       1440     -1
  Misses         1591       1591
- Partials         70         71     +1

Powered by Codecov. Last updated by [0a61b44...d141db9][cc-compare]
[cc-base-branch]: https://codecov.io/gh/zalando-stups/fullstop/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/zalando-stups/fullstop/compare/0a61b445b0a2dd018c000bb6d121552090610d1a...d141db90664d4ea266cf37eab609b1512fcee960
[cc-pull]: https://codecov.io/gh/zalando-stups/fullstop/pull/452?src=pr

👍


[WIP][multisage] support ORDER BY

Codecov Report

Merging #9279 (f629ec4) into master (8bf94e7) will decrease coverage by 4.91%.
The diff coverage is 77.92%.

@@             Coverage Diff              @@
##             master    #9279      +/-   ##
============================================
- Coverage     68.44%   63.53%   -4.92%
+ Complexity     5008     4746     -262
============================================
  Files          1861     1817      -44
  Lines         99218    97464    -1754
  Branches      15092    14911     -181
============================================
- Hits          67911    61921    -5990
- Misses        26460    30958    +4498
+ Partials       4847     4585     -262

Flag
Coverage Δ

integration2
?

unittests1
67.09% <77.92%> (+0.02%)
:arrow_up:

unittests2
15.34% <49.35%> (+0.02%)
:arrow_up:

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

Impacted Files
Coverage Δ

...pinot/query/parser/CalciteRexExpressionParser.java
50.00% <0.00%> (+3.06%)
:arrow_up:

...t/query/rules/PinotJoinExchangeNodeInsertRule.java
72.41% <0.00%> (-0.32%)
:arrow_down:

...g/apache/pinot/query/rules/PinotQueryRuleSets.java
100.00% <ø> (ø)

.../pinot/query/runtime/utils/ServerRequestUtils.java
80.35% <0.00%> (-13.40%)
:arrow_down:

...t/query/rules/PinotSortExchangeNodeInsertRule.java
47.05% <40.00%> (ø)

...not/query/planner/logical/RelToStageConverter.java
75.00% <57.14%> (+1.08%)
:arrow_up:

...a/org/apache/pinot/query/rules/PinotRuleUtils.java
75.00% <75.00%> (ø)

...ot/query/runtime/executor/WorkerQueryExecutor.java
91.66% <80.00%> (+0.75%)
:arrow_up:

...che/pinot/query/runtime/operator/SortOperator.java
83.01% <83.01%> (ø)

...t/core/query/selection/SelectionOperatorUtils.java
91.94% <97.67%> (-4.14%)
:arrow_down:

... and 406 more

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


Added translations for general strings in Hindi

Pull Request Template
Description
Please include a summary of this change and the issue(s) you are fixing. Include any context or information that will help a reviewer verify this PR quickly. List any caveats or issues with this change up front.
Fixes #62- Added Hindi translations for General strings
Required checklist:

[x] My code matches the existing code style of this project.
One of these:

[ x My content is localized for all of the locales that this project currently supports.
[ ] I described above how I plan to localize this content immediately after merging these changes.

[ ] I have tested my code and it successfully builds for GitHub Pages and validates as AMP.

Thank you! Happy to help


Add '/save' magic command

In magic_commands.py implement a /save command that will write the user history for a current session in a text file.

please assign me this issue for JWOC

@pranjalipilankar assigned

@pranjalipilankar any updates?

I am having some issues with requirements.txt. I am trying to resolve it. Will update by EOD today

What issue are u facing?

@pranjalipilankar update your fork. The requirements are updated .
You can try pip install pdfminer.six==20231228

Done!

Closing issue, Thanks for the contribution

As an AIML enthusiast, i am happy to contribute my part in this amazing project of yours.


Filter metrics for internal users

Description 📝
This PR avoid's firing LD metrics events for internal users.
Target release date 🗓
9/16
How to test 🧪
Verification steps
(How to verify changes)

Verify LD events for DX tools shouldn't fire for internal accounts.

As an Author I have considered 🤔
Check all that apply

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[ ] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

One failing CI test passes locally.


Dependabot link in alert is 404, and false positive

Describe the bug
A Dependency-Update-Tool alert contains a link to
https://dependabot.com/docs/config-file/
which now redirects to
https://github.com/docs/config-file/
which is 404.
Expected behavior
Perhaps a link to https://github.com/dependabot would be appropriate though it seems different based on the URL.
Additional context
I have configured dependabot via GItHub's Security tab, but my project is still failing the Dependency-Update-Tool check. GitHub didn't ask me to put a config file anywhere. How does Scorecard detect such uses of dependabot?
This is a bit old but may be relevant:
GitHub acquires Dependabot - 2019-05-23 - Crunchbase Acquisition Profile

Thanks, Would you be interested in fixing it by sending a PR?

If I'm not mistaken, there are different settings:

create a dependabot.yml config file to allow updates for dependencies.

enable the settings, selecting options to enable Dependabot alerts and security updates. Also enable secret scanning if it is available.

So although these are all called "dependabot", they are different features, IIUC.
I think you need both to have a comprehensive dependabot installation. We currently only check for option 1.
@josepalafox will have a better understanding. Let's amend our documentation and improve the check once we have clarification.

Thanks, @naveensrinivasan I'd be happy to, but I'm not actually finding it right now in a search. I do see a commit 062e33ba2984cea2   that seems related, but haven't tracked down how that fits into the logic, or even if that is fixed but not deployed, or what.

@laurentsimon - good description of the subtleties. It would indeed help to be clearer about that in the docs.
The text "no update tool detected" was easy for me to interpret as the absence of any sort of "security update" tool to scan for issues during updates, though it does make more sense as a tool to automate the offering of PRs to update dependencies.
Clarifying that Scorecard checks for both (as it indeed should) would be most helpful.
Github could also be clearer about how to verify this and the benefits of the active update options. After lots of digging I wasn't very clear on it.
For more context, I'm looking at About Dependabot alerts - GitHub Docs. It has a checklist of sorts:

Dependabot performs a scan to detect vulnerable dependencies and sends Dependabot alerts when:

It seemed like a false positive because I looked at the Security tab overview, and it says "Dependabot alerts — Active". Then when I view "Dependabot alerts" it just says "Welcome to Dependabot alerts!" - again, no suggestion that it isn't fully configured and active. Digging into the GitHub "Insights" tab, I look at the "Dependency graph" and it notes that my dependencies are defined in pyproject.toml and …/workflows/scorecards.yml.
When I continue to dig to the dependabot subtab of that page that I see "Dependabot version updates aren't configured yet", but that seems optional: "Dependabot creates pull requests to keep your dependencies up-to-date."

This isn't applicable anymore. This has been addressed.


nat: fix usage in nat.h of csum.h module

csum.h has been initiated to be used for csum update based on protocol that has pseudo header.  In some places in the code of nat.h it has been "hacked" to be used even for other protocol like ICMP that does not have pseudo headers.

/test

Once this is accepted I will update #25051 to make everything coherent.

Do you think your change leaves these code dead, as we no longer update the sum_l4 and csum.offset in the ICMP branch?
https://github.com/cilium/cilium/blob/5c94a0dc975bdc067cd8b8886ca60ed694471e1e/bpf/lib/nat.h#L563-L564

/test

No worries, I should have pointed out the potential issues in the first place.

CI failed due to BPF complexity issue lol

CI failed due to BPF complexity issue lol

Are you sure, I see all the k8s-*kernel tests green, no?
In all cases if I have to respine for the complexity issue I will use that to fix all the point you have mentioned previously.

It's L4LB XDP test: https://github.com/cilium/cilium/actions/runs/5172796260/jobs/9317480797#step:11:2196

/test

/test

The previous PR has been closed du to a lack of activity I created a new one #26453

Heya :wave: Why is this change better than before? Imo, it makes things worse. Now we need an additional helper call whereas before it was not needed and the csum_diff() was actually all inlined.

Heya wave Why is this change better than before? Imo, it makes things worse. Now we need an additional helper call whereas before it was not needed and the csum_diff() was actually all inlined.

:wave:, previously the code was forcing some fields in https://github.com/cilium/cilium/blob/main/bpf/lib/csum.h#L60 and later the block to retrieve sum from sum_l4 a bit obscure (I considered that a bit hacky). I thought I was walking in the good direction changing this part :disappointed_relieved:


Updated to Swift 4/Xcode 9

Upgraded the project to Swift 4/Xcode 9 and cleaned up a few things
Added a few more tests
Renamed iCal enum to iCalManager to avoid ambiguous error from Xcode
I've added a few TODO marks to add documentation or to fix minor issues. I'll fix them later
Fixed #1

Hey, sorry about getting back to you so late! Huge thanks for updating the project to current Swift and the rest of the fixes/patches 🎉
If I could just ask you for one more change removing all the // End {class, extension, struct, ...} comments, that would be great, thanks! 😊

Sure, sorry about that. :) I'll try to clean it up a bit more and implement a few more things later. If you have any ideas, just open an issue and I'll take a look ;)

Awesome, thank you! 😊
Just out of curiosity, are you using this library for something? I had the need at one point a year back and started with this, but never actually got around to using it 🙈

I also just invited you as a collaborator 😊

Thanks! Yes, I'd like to use it for my project. I hope I'll have enough time before university to implement it. :)


📃: Implementing Machine Learning Models for Weather Prediction and Analysis

:red_circle: Title:
Implementing Machine Learning Models for Weather Prediction and Analysis
:red_circle: Aim:
To build and compare various machine learning models (both regression and classification) using a weather prediction dataset, evaluating the performance of each model based on key metrics like accuracy and mean squared error.
:red_circle: Brief Explanation:
The goal of this project is to implement and compare 10 different machine learning models for classification and regression tasks. The weather dataset is used to predict continuous variables such as temperature (regression) and binary conditions such as BBQ weather (classification). Models such as Logistic Regression, Random Forest, SVM, k-NN, Neural Networks, and Gradient Boosting are evaluated to determine their accuracy for classification tasks, while regression models are evaluated based on the Mean Squared Error (MSE). The preprocessing steps include handling missing values, splitting the dataset, and standardizing features.
Screenshots 📷

N/A

:white_check_mark: To be Mentioned while taking the issue:

Full name: Benak Deepak
What is your participant role? (Mention the Open Source Program name. Eg. GSOC, GSSOC, SSOC, JWOC, etc.)
GSSOC

Happy Contributing 🚀
All the best. Enjoy your open-source journey ahead. 😎

Sorry @BenakDeepak but this project is under progress https://github.com/UTSAVS26/PyVerse/issues/180.
You can tell what all you are adding or raise a new issue for new project.


Checkbox inputs need real clicks on iOS 7

It seems like there is a problem with checkbox inputs on iOS7 UIWebView browsers (webkit browser). I have had to modify the needsClick function to use real clicks in this case. Without this change the simulated and real click both fire, and the check box is clicked twice - thus reverting it to its previous state.
if ((this.deviceIsIOS && target.type === 'file') || (this.deviceIsIOS7 && target.type === 'checkbox') || target.disabled) {
    return true;
}

I am not sure if this effects other iOS versions

I can confirm this issue. Here's the test case: http://jsfiddle.net/bFhAR/40/. Try running it on iOS and you'll see that the checkbox gets clicked twice.


Share includedActivityTypes and specifying specific ActivityType

[x] I have reviewed the documentation
[x] I have searched existing issues
[x] I am using the latest React Native version

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 9.5.0
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.0 => 0.53.0
Steps to Reproduce

Expected Behavior

Given the Share module inclusion, I was wondering why there isn't an input to specify a specific sharing mechanism, sort of like for the following
https://github.com/doefler/react-native-social-share
or the ability to include options rather than just exclude.
Actual Behavior

No Function available for sharing to specific places or at the very least an included option rather than just the excluded.

Yes


[Q] How to ignore lines incl curly braces to avoid format them in HTML files?

Hello,
I'm using latest version of VSCode and Beautify. in the root of my project I added .jsbeautifyrc file (I tested some option and it works), in my html file, I have something like follow:
{{ something }}
{{ something }}
{{ something }}

OR
{{ something }}
    {{ another one something }}

Hello !!!

    {{ end }}
{{ end }}

When I try to format my file, above line changed to:
{{ something }} {{ something }} {{ something }}

I changed .jsbeautifyrc as follow:
{
    "html": {
        "unformatted": ["{", "}", "{{", "}}"]
    }
}

I think that's not correct (it doesn't work), but I have not another idea about that, is that possible?
Thanks

Unfortunately you can't at the moment. It was caused by a combination of changes in js-beautify which did some weird things. I'll take a look at fixing it today, but don't hold your breath.

Is not fixed, but is an upstream issue. Perhaps related to https://github.com/beautify-web/js-beautify/issues/1127 or https://github.com/beautify-web/js-beautify/issues/1123

Is this fixed now?


meteor/audit-argument-checks custom check methods

Fix #774 by adding checkEquivalents configuration.
Let me know if you have any comments/edits!  In particular, feel free to change / suggest checking the checkEquivalents name, or the way it's specified.
I checked that it works in my application.

Thanks for your PR! I increased the code coverage by deleting a few lines and published this version as 7.1.0 under the next distribution tag.
You can either install eslint-plugin-meteor@next or<EMAIL_ADDRESS>to try out this latest version. I'd appreciate if you could let me know whether that version works for you. If so, I'll publish it for everyone under the latest tag.

I just tested @7.1.0 and it works great in my application. Thanks for the quick review and release!

I also resolved #678 and published both under the latest tag, so your addition is now generally available along with the other fix.
Thanks again 👍


Add Xcode 13 to available macOS VM images

Xcode 13 with the iOS 15 SDK was released on Sept 20, 2021.  Add it to the available macOS VM images https://cirrus-ci.org/guide/macOS/

@fkorotkov I tried to adopt but I'm seeing:
Parallels isolation failed: failed to create VM cloned from "big-sur-xcode-13": Parallels VM operation failed: failed to clone VM "cirrus-c69eaa5e-4187-4f9d-bad9-6b974fa09708": Parallels command returned non-zero exit code: "Failed to clone the VM: Unable to perform the operation because "big-sur-xcode-13" is in the intermediate state. Unpacking "/Users/administrator/Parallels/big-sur-xcode-13.pvmi/config.pvsp" has been started but not finished yet. Please finish unpacking."


Migrate asapdiscovery.data.state_expanders to OpenFF Toolkit?

The capabilities represented in asapdiscovery.data.state_expanders seem like they should be included in the OpenFF Toolkit, perhaps via a Schrodinger ToolkitWrapper. Could we consider migrating those capabilities there?

There are already Molecule.expand_stereochemistry(), .expand_protomers(), and .expand_tautomers() API endpoints in the openff.toolkit.topology.Molecule object, so it seems like this should fit well. We might also consider adding .expand_microstates() that would generally expand whatever is undetermined (e.g. protonation states and tautomers, and unspecified stereochemistry).


[Bug]: Unsigned email .env doesn't work as intended

What happened?
If I put in the .env "EMAIL_ALLOW_SELFSIGNED=true ", I expect the emailer to work on selfsigned certs. THis however doesn;'t work;
2024-03-20 00:43:34 error: [sendEmail] self-signed certificate
This is because in sendEmail.js , this line:
`        // Whether to accept unsigned certificates
    rejectUnauthorized: process.env.EMAIL_ALLOW_SELFSIGNED === 'true',`

It should be set to false,
so that it will reject unauthorized will be set to TRUE, in the case self signed is not allowed
Steps to Reproduce

Put email_allowed_selfsigned = true
try password reset

What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Can you try manually editing the file like this?
const fs = require('fs');
const path = require('path');
const nodemailer = require('nodemailer');
const handlebars = require('handlebars');
const { isEnabled } = require('~/server/utils');
const logger = require('~/config/winston');

const sendEmail = async (email, subject, payload, template) => {
  try {
    const transporterOptions = {
      // Use STARTTLS by default instead of obligatory TLS
      secure: process.env.EMAIL_ENCRYPTION === 'tls',
      // If explicit STARTTLS is set, require it when connecting
      requireTls: process.env.EMAIL_ENCRYPTION === 'starttls',
      tls: {
        // Whether to accept unsigned certificates
        rejectUnauthorized: isEnabled(process.env.EMAIL_ALLOW_SELFSIGNED),
      },
      auth: {
        user: process.env.EMAIL_USERNAME,
        pass: process.env.EMAIL_PASSWORD,
      },
    };

    if (process.env.EMAIL_ENCRYPTION_HOSTNAME) {
      // Check the certificate against this name explicitly
      transporterOptions.tls.servername = process.env.EMAIL_ENCRYPTION_HOSTNAME;
    }

    // Mailer service definition has precedence
    if (process.env.EMAIL_SERVICE) {
      transporterOptions.service = process.env.EMAIL_SERVICE;
    } else {
      transporterOptions.host = process.env.EMAIL_HOST;
      transporterOptions.port = process.env.EMAIL_PORT ?? 25;
    }

    const transporter = nodemailer.createTransport(transporterOptions);

    const source = fs.readFileSync(path.join(__dirname, 'emails', template), 'utf8');
    const compiledTemplate = handlebars.compile(source);
    const options = () => {
      return {
        // Header address should contain name-addr
        from:
          `"${process.env.EMAIL_FROM_NAME || process.env.APP_TITLE}"` +
          `<${process.env.EMAIL_FROM}>`,
        to: `"${payload.name}" <${email}>`,
        envelope: {
          // Envelope from should contain addr-spec
          // Mistake in the Nodemailer documentation?
          from: process.env.EMAIL_FROM,
          to: email,
        },
        subject: subject,
        html: compiledTemplate(payload),
      };
    };

    // Send email
    transporter.sendMail(options(), (error, info) => {
      if (error) {
        logger.error('[sendEmail]', error);
        return error;
      } else {
        logger.debug('[sendEmail]', info);
        return info;
      }
    });
  } catch (error) {
    logger.error('[sendEmail]', error);
    return error;
  }
};

module.exports = sendEmail;

Unless I'm misunderstanding this, that should fix it in case there is a discrepancy of expected type values.

or do you mean it should be negated to be the opposite value of EMAIL_ALLOW_SELFSIGNED so EMAIL_ALLOW_SELFSIGNED !== 'true' ?

Hi, yes, I fixed it by putting it like this:
rejectUnauthorized: process.env.EMAIL_ALLOW_SELFSIGNED === 'false',
To put it in a different way, if you put rejectUnauthorized: true, it means that self-signed certificates should not be allowed. This means, that EMAIL_ALLOW_SELFSIGNED is set to false


Set up Connect for Spanish-language EWs

For Spanish-language CalFresh EWs at SF HSA

Shipped to food bank outreach workers


get port from log

@krasinski yes, you have the change in the loop but that loop is waiting only for startup of H2O sever then after server is started the the monitor script goes  to exits. My understanding that the issue is also about monitoring H2O state after startup  and in case when successfully running H2O server goes down then the monitoring script is required bringing the service to ERROR state. So to implement  such enhancement you will need to add to the script a second loop in which doing the same checking H2O port periodically forever and only in case the check failed (i.e. H2O server is gone) then it updates the service's state to ERROR and exit the monitoring script.


update packages

:white_check_mark: Build TheIdServer 8.0.1-fix-dependencies.1+132.build.3793 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/d2487ddd99 by @invalid-email-address)

:white_check_mark: Build TheIdServer 8.0.1-fix-dependencies.1+133.build.3794 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/2fc416e88b by @invalid-email-address)

:white_check_mark: Build TheIdServer 8.0.1-fix-dependencies.1+134.build.3795 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/0220f8d6c9 by @invalid-email-address)


Sometimes only digits and space work

Happened about 30 minutes before I finished writing this - tried to type something and got spaces instead of any characters unless I was pressing a number. Switched to default keyboard and that worked.
Not sure who to contact over this, or even if this is going to happen again - just seemed odd that the keyboard app I've been using for about two years now (I think, might be closer to 18 months) wasn't working in any app but switching to the default "Android Keyboard" worked.
I love this keyboard and, if I could actually spare the money, I'd try to get you some money to support its development.

I can second this. I've never had an issue with this keyboard until recently - including this, by which I mean that even though I've been using 1.38.2 (from F-Droid) for a long time, it's only the past month or two this has popped up. I've found that closing the app I was working in and re-opening it allowed this keyboard to work properly again. I've noticed it's somewhat easy to reproduce. I use Twitter, and more often than not, I have this bug occur when I use their mobile site & open a second tab so that I have two Twitter pages open at once. Maybe it has to do with how the keyboard gets locked to an input area, and the method used here is outdated, causing issues with some newer apps? Just speculation, but it's the best I can figure.


[insights-operator-controller/server/configuration.go:108] - G104 (CWE-703): Errors unhandled. (Confidence: HIGH, Severity: LOW)

s.Splunk.LogAction('DisableClusterConfiguration', 'tester', fmt.Sprint(id))

Fixed in https://github.com/RedHatInsights/insights-operator-controller/commit/bcf4453ac6b9f078d93dbd9e666cb31506eb7d65


[WIP] Remote caching support

This change introduces remote caching support to SCons. Currently SCons has support for caching built objects in directories, but remote caching adds support for sharing built objects across multiple machines. For example at VMware, we have our official builds push to cache and all developers will fetch from cache.
The end result of this is that developers are able to only build what they have changed locally. All other cacheable build actions will be fetched from the remote cache server, dramatically speeding up builds.
One piece that I introduced as part of this change is a new scheduler as a new class ParallelV2 that is used if remote caching is enabled or if a developer passes --use-scheduler-v2. Whereas the existing parallel scheduler waits on jobs if the job queue is full, this new scheduler will attempt to continue scanning for new jobs whenever possible. In addition, it supports remote caching by draining the "pending remote cache fetches" queue just like it drains the "pending jobs" queue. I believe that this scheduler is an
alternative to https://github.com/SCons/scons/pull/3386 that should have the same effect in keeping jobs as high as possible. I introduced it as a separate class for now, but it could replace the Parallel class if we wanted.
The new RemoteCache class owns the job of fetch from and pushing to a Bazel remote cache server or any other similar server that supports /ac/ and /cas/ GET and PUT requests using SHA-256 file names. See https://github.com/buchgr/bazel-remote for more details on the server. This class uses urllib3 for network requests (see below acknowledgement that this violates SCons guidelines). I chose it because it has good support for concurrency across threads using its ConnectionPool class. If remote caching is requested and urllib3 is not present, it raises an exception. If remote caching is not requested, urllib3 is not required.
The change to the scheduler is needed because cache fetches necessarily must be asynchronous due to network latency. If a request can take 200ms, we can't hang the main thread while waiting on it. And we also can't do the requests inside of job threads (like CacheDir does) because we want to have more active network requests than job threads given that network requests are bound by network I/O, not disk I/O or CPU.
Given the aforementioned change to the scheduler, I don't see a way to make this into a Tool, which was a possibility mentioned on Discord a while back. That is, I wasn't able to find a good way to make this self-contained enough to be a Tool.
As part of implementing this functionality, the following new parameters are introduced:

--remote-cache-fetch-enabled: Enables fetch of build output from the server
--remote-cache-push-enabled: Enables push of build output to the server
--remote-cache-url: Required if fetch or push is enabled
--remote-cache-connections: Connection count (defaults to 100)

I understand that this patch violates the SCons guidelines in two main ways:

The new functionality requires urllib3 when the guidelines say that we must not require any packages other than pywin32. I don't believe that I can redo this change without urllib3, so the [WiP] tag is about vetting this approach with the team to see whether it is a fatal flaw with this approach.
There is no documentation for the new functionality. If the approach is accepted, I would resolve this as part of removing the [WiP] tag.

Contributor Checklist:

[ ] I have created a new test or updated the unit tests to cover the new/changed functionality.
[ ] I have updated CHANGES.txt (and read the README.rst)
[ ] I have updated the appropriate documentation

Any traction on this ?

Any traction on this ?

Not yet. It's on the list, just requires a big chunk of time to review and likely modify before being able to pull into the repo.

@bdbaddog I am going to hold off on doing any future updates or merges until you think there is a shot of finalizing a design and landing this. Let me know if you want me to start doing any of that, but I am fine holding off or even closing this if the team doesn't want it.

@bdbaddog I am going to hold off on doing any future updates or merges until you think there is a shot of finalizing a design and landing this. Let me know if you want me to start doing any of that, but I am fine holding off or even closing this if the team doesn't want it.
I think the biggest reason to not include remote caching in SCons is that SCons has no dependency enforcement functionality. We implemented dependency enforcement internally at VMware but it was done in such a VMware-specific way that I don't have any way to upstream it without significant support from the SCons team. I am open to finding a way to upstream it by providing the code we have written in VMware-specific layers, but it would take a decent amount of effort from VMware+SCons maintainers to adapt and integrate. That said, the benefit of this logic is that you can run SCons in a mode where it actually fails compilation if (1) a build action reads from a file that is not in its dependencies or side effects or (2) a build action writes to a file that is not in its targets or side effects. Right now SCons can easily be wrong about its dependencies.
Remote caching without dependency enforcement is risky in that if SCons is missing a dependency (e.g. the scanner didn't find a .h file), if that dependency is changed we will continue to get remote cache hits when they should be cache misses. So in the example I just mentioned, if you change that .h file that SCons doesn't know about, you'll still get cache hits when you shouldn't. This could cause a lot of confusion because the SCons build output is different than you expect.
Notably, this is also the case with the existing SCons "cache dir" functionality. But that is why we never used cache dir functionality internally.

Dependency enforcement hasn't been an issue for most users, or at least that anyone has let the project know.
In general if the scanner's missing things, it should get fixed.
That said, for some environments, it's worth the cost to do so. (VMWare being one of those environments I'm guessing.. ;)
Does your dependency enforcement implementation work on windows, linux & mac? or only some of those? Or require admin type access on some of those platforms?
Probably worth moving any discussion of dependency enforcement to a discussion or user's mailing list as IMHO it's not really a required part of this remote caching functionality.
Ideally you'd push whatever updates you have to this functionality to this PR.
Spending time reviewing outdated code would be a waste.
As an aside, it's likely the new parallel scheduler will become the default in the near future.
Realistically reviewing this code will take a solid day or two, ideally with access to you @grossag to answer questions.  Any chance we can get you to join our Discord server for such consultation?

Sorry for the delay in responding. I've been on the Discord for a while, although I don't pay real close attention. I'm on as @adamgross .
For the dependency enforcement, it depends on the platform:

Windows uses tracker.exe from Visual Studio to wrap command outputs.
Linux uses a kernel driver which will hopefully be open sourced at some point.
Mac uses a wrapper script which invokes dtrace; the wrapper script needs a sudoers entry to work properly.

Dependency enforcement would be really hard to upstream, so I am fine not focusing on that. But you said "In general if the scanner's missing things, it should get fixed." and the issue is that it's nearly impossible to figure out if the scanner is really missing things without any guarantees from SCons.
I am open to updating the pull request if you think this is mostly unblocked and worth proceeding on. But I vaguely recall from our last conversation that you wanted to wait until some of the Task logic was refactored until this could be considered. I am also unsure on whether it's a dealbreaker that this uses urllib3. I just don't want to burn a day updating this PR if it's not worth proceeding on. Let me know how you'd like me to proceed and I'll do my best to accommodate, thanks.

What do we need to be able to test against remote caching server?
How do we set one up,etc?

What do we need to be able to test against remote caching server?
How do we set one up,etc?

Sorry I never responded to your question @bdbaddog . This PR is designed to use https://github.com/buchgr/bazel-remote with no additional modifications to that project. That repo's README has a "Docker" section which describes how to install and run it. It's effectively content-addressable storage where the ac/ folder stores the action metadata and cas/ folder stores the binary. ac/ is addressed by a unique action signature and cas/ is addressed by SHA-256 hash of the binary.

What do we need to be able to test against remote caching server?
How do we set one up,etc?

Sorry I never responded to your question @bdbaddog . This PR is designed to use https://github.com/buchgr/bazel-remote with no additional modifications to that project. That repo's README has a "Docker" section which describes how to install and run it. It's effectively content-addressable storage where the ac/ folder stores the action metadata and cas/ folder stores the binary. ac/ is addressed by a unique action signature and cas/ is addressed by SHA-256 hash of the binary.

Thanks! Any chance you'd be willing to resolve the conflicts in this PR?
I'd also like to see if there's a way to use bazel's remote execution protocol with SCons as well.
Seems like leveraging all the work other projects do for SCons would make sense if it's workable.

@bdbaddog : I was able to resolve all other conflicts other than the big one: integrating remote cache functionality into the NewParallel class. It makes sense for me to drop the new scheduler I implemented and fold functionality into NewParallel, but the leader/follower pattern is throwing me off.
When remote caching is enabled, any time a task is pulled off of the todo list (code line task = self.taskmaster.next_task() of SCons/Taskmaster/Job.py), we first need to dispatch it to the RemoteCachefor evaluation as to whether it can be fulfilled with a cache hit. This is different than the existingCacheDir` class, which can be a synchronous disk call.
My PR this was implemented using local variable fetch_response_queue. Tasks are sent to RemoteCache class and then when they are confirmed as cache hits or misses, they end up as results in fetch_response_queue. Then the rest of the implementation was related to managing two queues: fetch_response_queue (RemoteCache responses) and self.tp.resultsQueue (executions of tasks that were cache misses).
Can you let me know if you have any thoughts on how best to implement asynchronous RemoteCache requests into NewParallel scheduler?

@acmorrow - perhaps you can assist @grossag with NewParallel?

@bdbaddog and @grossag - Yes, definitely, but it'll be next week.

@bdbaddog and @grossag - Yes, definitely, but it'll be next week.

@acmorrow Can you provide some guidance here as to how to resolve the conflicts in the scheduler as described in https://github.com/SCons/scons/pull/3971#issuecomment-1998353396 ?

So one design question is whether to favor command-line arguments, or internal project configuration.  It feels to me like if you're going to make use of a supplemental remote cache, you generally want to do so (almost) all the time, and typing long options repeatedly is cumbersome.  Yes, you can hide that in something that launches SCons for you, but still... at the least the options should be "settable" so you can SetOption them.
Here's how ccache describes their setup (and yes, they do have command-line options)
https://ccache.dev/manual/latest.html#_storage_interaction


Add support for NamedTuples, support NumPy 1.25 (fixes #597)

The functions in numpy.linalg which returned tuples in version <= 1.24 have switched to using a different NamedTuple type for each function. To support this I've added the necessary Box and VSpace registrations.

Thanks for looking into this! Could you maybe also release a new version 1.6 on pypi to make these changes accessible for dependent projects?

Yes, will do.

Should be done now, lmk if you have any issues.


Bump shadow plugin to 7.1.2

Codecov Report

Merging #474 (3d1d637) into master (949d85e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #474   +/-   ##
=========================================
  Coverage     58.87%   58.87%
  Complexity      861      861
=========================================
  Files            69       69
  Lines          6451     6451
  Branches       1006     1006
=========================================
  Hits           3798     3798
  Misses         2360     2360
  Partials        293      293

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 949d85e...3d1d637. Read the comment docs.


TypeError: FilePicker.init() got an unexpected keyword argument 'file_type'

The following code shows error
file_picker = ft.FilePicker(on_result=upload_file_picked, on_upload=on_upload_progress, file_type=ft.FilePickerFileType.IMAGE)

But in the documentation file_type argument is a valid argument.
https://flet.dev/docs/controls/filepicker/#file_type
flet                     0.12.0
flet-core                0.12.0
flet-runtime             0.12.0

It works as expected on my end. Please build a repro.

The following code shows error

What is the error?


Parallellize queue

Hi, any chance to set how much urls can be retrieved in parallel in the same fetcher ?

Hello,
No there's no such feature at the moment. If what you want to control is the number of worker goroutines (which is kind of what you mention but not quite the same), you could always keep track of the different hosts of the URLs sent to Queue.SendXxx (fetchbot creates a separate goroutine per host) and reject a call if the maximum number of distinct hosts is reached, but that would be a bit hacky (no way to know when the goroutine is closed, which is after an idle timeout, so you'd have to reproduce that yourself).
Martin

Well, when I dig in my logs, I have the feeling that each url in the queue is fetched in sequence. I didn't zoom in the fetchbot code, but anyway the "queue" word means a "queue", with no parallelism at all.
The thing is it's pretty slow on my machine because I do a lot of processing and my internet connection is not that good.
Do you think it's up to the user to deal with parallelism, or maybe this feature could be added in this library?
Kind regards,
Arthur

The queue is a queue of urls to process, but the processing is done in parallel, one goroutine per distinct host. If all urls belong to the same host, then yes it will be done in sequence (because it respects the robots.txt policy).

Ok then, I will try to disable this policy and see if it's better. Thank you for your response

To speed up crawling you could also try this:
        f := fetchbot.New(...)
	f.DisablePoliteness = true
	f.CrawlDelay = 0


Inconsistent crash when launching game

Issue Description:
When launching the game there is a chance Ender IO will just crash the game on the early loading process.
What happens:
Game Crashes
What you expected to happen:
Not to crash?
Steps to reproduce:

Launch this specific assortment of mods
Pray it crashes(?)
crash
...

Affected Versions (Do not use "latest"):

EnderIO: 5.2.59.jar
EnderCore: 0.5.76
Minecraft: 1.12.2
Forge: <IP_ADDRESS>54
SpongeForge? no
Optifine? no
Single Player and/or Server? n/a

Your most recent log file where the issue was present:
https://pastebin.com/raw/u6zT9TAe

https://github.com/SleepyTrousers/EnderCore/issues/107


Example config.StreamDialer

@fortuna One of the main reasons to use embedding with StreamDialer type was to make sanitization more scalable across all types of transport schemes and ensure sanitization is done when a new scheme is introduced.
I would like to propose a simpler solution which is agnostic to the scheme (ss://, socks5://, etc). The following sanitizer will look for UserInfo and replaces it with redacted. If any url has UserInfo, it will be redacted. We could redact other parts of the url if needed but UserInfo is the most important one  (ref)
func RedactUserInfo(rawURL string) (string, error) {
	parsedURL, err := url.Parse(rawURL)
	if err != nil {
		return "", err
	}

	if parsedURL.User != nil {
		parsedURL.User = url.User("redacted")
	}

	return parsedURL.String(), nil
}

This idea is now implement in this PR #152

I commented on that PR. It's not safe because other paramteres may be sensitive.

Please see the draft of sanitizer implementation using embedding (new StreamDialer type with Config embedding). PackageDialer can be implemented similarly.
The changes in config package broke dialer wrapping in httpproxy. I had to change one line to fix it. This approach touches several parts of the code and IMHO a bit verbose.
Alternatively, we can jus have a sanitizeConfig function in config pckage with switch/case for all supported transports and a default case.
In either implementations, developers need to add sanitization for each newly introduced transport.

Wait, this is my example PR. Please send your changes in your original or new PR (where I'm a reviewer, not author) and mark as ready for review. You shouldn't be working on my branch, that's confusing.


Merge overlapping fields when using multiple fragments with overlapping fields in single query

Use case
Suppose we have this query:
query Users {
  users {
    ...someUserFragment
    ...otherUserFragment
  }
}

fragment someUserFragment on User {
  id
  firstName
  lastName
}

fragment otherUserFragment on User {
  id
  firstName
  dateOfBirth
}

It wouldn't necessarily be needed to send the id and firstName field defined in otherUserFragment to the server, as those fields are already defined inside the someUserFragment. The server would respond with the exact same response if we were to drop those fields on the otherUserFragment. So we can safely save a few bytes that way.
As an example, the above query could result in the following document after generating:
query Users {
  users {
    ...someUserFragment
    ...otherUserFragment
  }
}

fragment someUserFragment on User {
  id
  firstName
  lastName
}

fragment otherUserFragment on User {
  dateOfBirth
}

Describe the solution you'd like
No response

Hi 👋 Thanks for sending this!
Very early thoughts are I'm a bit reluctant to add this feature in the compiler because:

it's another option to maintain 😅
we're trying to avoid modifying the user document, for observatibility purposes: ideally, what the user writes is what is sent over the network (even if it's not 100% true due to __typename, but still)
if query size is a concern, persisted queries is a much better solution that will save an order of magnitude of bytes by removing the query altogether (and the backend can store the merged/validated query in its own cache too).

Life is all about the tradeoffs and I wonder if this one is worth it.
Another way to look at this would be to make it a warning, possibly with matching IJ plugin inspection/quickfix. 2. would be conserved and you could decide to treat those warnings as errors to enforce no duplicate fields are sent.
All in all would be cool but requires a non trivial amount of work that is hard to justify given there are other solutions at the moment. I'll keep this issue open to gather feedback and we can re-evaluate the tradeoff in light of those feedbacks.


BadRequest: "Bad parameter"

I'm getting a Fault { code: BadRequest, message: "bad parameter" }  on every request to docker.
Here a two complete backtraces, created by running the examples from master:
[masch@mark-laptop:~/code/rust/shiplift on master]
% sudo RUST_LOG=debug RUST_BACKTRACE=1 ./target/debug/examples/events
listening for events
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Fault { code: BadRequest, message: "bad parameter" }', ../src/libcore/result.rs:746
stack backtrace:
   1:     0x561838fb30b0 - sys::backtrace::tracing::imp::write::h3675b4f0ca767761Xcv
   2:     0x561838fb584b - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.44519
   3:     0x561838fb54b8 - panicking::default_handler::h18faf4fbd296d909lSz
   4:     0x561838faa47c - sys_common::unwind::begin_unwind_inner::hfb5d07d6e405c6bbg1t
   5:     0x561838faa908 - sys_common::unwind::begin_unwind_fmt::h8b491a76ae84af35m0t
   6:     0x561838fb2661 - rust_begin_unwind
   7:     0x561838fe4e5f - panicking::panic_fmt::h98b8cbb286f5298alcM
   8:     0x561838e7b610 - result::unwrap_failed::h14728117271176524093
                        at ../src/libcore/macros.rs:29
   9:     0x561838e7b3b4 - result::Result<T, E>::unwrap::h15254061339421577925
                        at ../src/libcore/result.rs:687
  10:     0x561838e7a51a - main::hf27ff4eeae946ce8gaa
                        at examples/events.rs:8
  11:     0x561838fb5114 - sys_common::unwind::try::try_fn::h14622312129452522850
  12:     0x561838fb25eb - __rust_try
  13:     0x561838fb4bab - rt::lang_start::h0ba42f7a8c46a626rKz
  14:     0x561838e7d879 - main
  15:     0x7f2f8563661f - __libc_start_main
  16:     0x561838e7a268 - _start
  17:                0x0 - <unknown>
[masch@mark-laptop:~/code/rust/shiplift on master]
% sudo RUST_LOG=debug RUST_BACKTRACE=1 ./target/debug/examples/containers
DEBUG:hyper::http::h1: request line: Get "/containers/json" Http11
DEBUG:hyper::http::h1: headers=Headers { Host: ///var/run/docker.sock:0, }
DEBUG:hyper::client::response: version=Http11, status=BadRequest
DEBUG:hyper::client::response: headers=Headers { Connection: close, Content-Type: text/plain, }
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Fault { code: BadRequest, message: "bad parameter" }', ../src/libcore/result.rs:746
stack backtrace:
   1:     0x55e1a24fcab0 - sys::backtrace::tracing::imp::write::h3675b4f0ca767761Xcv
   2:     0x55e1a24ff24b - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.44519
   3:     0x55e1a24feeb8 - panicking::default_handler::h18faf4fbd296d909lSz
   4:     0x55e1a24f321c - sys_common::unwind::begin_unwind_inner::hfb5d07d6e405c6bbg1t
   5:     0x55e1a24f36a8 - sys_common::unwind::begin_unwind_fmt::h8b491a76ae84af35m0t
   6:     0x55e1a24fc061 - rust_begin_unwind
   7:     0x55e1a252e98f - panicking::panic_fmt::h98b8cbb286f5298alcM
   8:     0x55e1a22dad14 - result::unwrap_failed::h17605680571608167188
                        at ../src/libcore/macros.rs:29
   9:     0x55e1a22daab0 - result::Result<T, E>::unwrap::h8036330443532157769
                        at ../src/libcore/result.rs:687
  10:     0x55e1a22d729d - main::h94c991ab960693d3haa
                        at examples/containers.rs:9
  11:     0x55e1a24feb14 - sys_common::unwind::try::try_fn::h14622312129452522850
  12:     0x55e1a24fbfeb - __rust_try
  13:     0x55e1a24fe5ab - rt::lang_start::h0ba42f7a8c46a626rKz
  14:     0x55e1a22dcf09 - main
  15:     0x7f13eff5361f - __libc_start_main
  16:     0x55e1a22d70a8 - _start
  17:                0x0 - <unknown>

I tried to debug it but wasn't lucky.
I'm using docker 1.11.
Using curl works fine:
[masch@mark-laptop:~/code/rust/shiplift on master]
% sudo curl --unix-socket /var/run/docker.sock http:/containers/json -vvv
*   Trying /var/run/docker.sock...
* Connected to http (/var/run/docker.sock) port 80 (#0)
> GET /containers/json HTTP/1.1
> Host: http
> User-Agent: curl/7.45.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Server: Docker/1.11.0 (linux)
< Date: Thu, 21 Jul 2016 20:26:27 GMT
< Content-Length: 3
<
[]
* Connection #0 to host http left intact

Any Ideas on what I'm doing wrong?

Hi there,
It looks like our lib is not 100% compliant with docker 1.11 (API Version 1.23)
With docker 1.10, the example code works well.
I'm trying to understand what is going on.

Okay, sadly I can't (easily) downgrade to docker 1.10 on my dev box because it's not in the repository anymore.
I'll see if I can find out what happens, too.

Indeed, it looks like a real problem :s.
First we need to see if we can remove the header from Hyperlocal. If we can't we will open a ticket on Hyper.
For your downgrade, it's strange. :s. What distribution are you using ?

I'm using gentoo.
I configured docker to listen to a tcp socket for further development. Will post a PR for some fixes regarding hostname/ip & port handling with http(s) connections soon.

I think this was fixed by 448ea95b4cbfe487501f79f150d87757d724bec8. Can you please try again?

I man I really missed this issue. http://doc.crates.io/specifying-dependencies.html#specifying-dependencies-from-git-repositories is how to test a git url dependency in your cargo build. I'm on vacation and away from my laptop. I'll try to publish recent fixes as soon as I can

I just published version 0.3.0 can you try that. I did need to make a few changes to what was on master to get things back up to speed.
I'm testing with what I think should be pretty close to the latest and greatest.
$ docker version
Client:
 Version:      1.13.0-rc3
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   4d92237
 Built:        Tue Dec  6 01:15:44 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.13.0-rc4
 API version:  1.25 (minimum version 1.12)
 Go version:   go1.7.3
 Git commit:   88862e7
 Built:        Sat Dec 17 01:34:17 2016
 OS/Arch:      linux/amd64
 Experimental: false

If you are still are having trouble can you comment with the output of docker version in this issue

Still an issue
Client:
 Version:      1.12.5
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   7392c3b
 Built:        Fri Dec 16 02:42:17 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.5
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   7392c3b
 Built:        Fri Dec 16 02:42:17 2016
 OS/Arch:      linux/amd64

This fixes things to me https://github.com/softprops/shiplift/pull/33

This seems fixed @softprops, can you confirm @themasch ?

Is this issue still relevant?

@elihunter173 not for me.

Alright, could you close the issue then please? (I don't have the perms to)


Clicking load points when nothing entered

Clicking load gbif points when nothing is entered, loads some point data. No idea what possibly the first 900 points from gbif?

Possibly helpful for debugging but something that should change in future?


Add issue and pull request github templates

Purpose
The project is now getting mature and new developpers are joining. We should start opening issues to specify and discuss future work so we need nice templates for this.
Proposal
I basically made a copy/paste of the templates from our other project richie.

@jmaupetit @mbenadda I fixed both of your comments.


Fix infinite loop issue created in 36cdaa2f

Coverage remained the same at 87.975% when pulling 82a37577c6e1696434c534afec00e3935915c552 on epitomus:fix-infinite-loop-in-exeption-handling into 954472c9d805802a3438d0202fc451282eaa37fc on slimphp:3.x.

Coverage increased (+0.3%) to 88.291% when pulling 638bc7b9e2cbe86390a4e626921b79a238bbbcfd on epitomus:fix-infinite-loop-in-exeption-handling into 954472c9d805802a3438d0202fc451282eaa37fc on slimphp:3.x.

Tests fail on HHVM....


Jhovany200 update es.xml

update es.xml
I sent it wrong and corrected it
I'm wrong several to send, "sorry", I'm just understanding more github
""Now it is well done""
I am sorry

Thanks for your help~
: )


How to add mysql to 7nodes example?

I have installed mysql on local machine
I have downloaded the jar(version 8.0.12) about mysql jdbc and saved at /home/vagrant/tessera/mysql.jar
I have run the ddl(https://github.com/jpmorganchase/tessera/blob/master/ddls/mysql-ddl.sql) of mysql
I modify the tessera-init.sh as follwoing and change the jdbc url to mysql
#!/usr/bin/env bash
echo "[*] Initialising Tessera configuration"
currentDir=$(pwd)
for i in {1..7}
do
DDIR="qdata/c$i"
mkdir -p ${DDIR}
mkdir -p qdata/logs
cp "keys/tm$i.pub" "${DDIR}/tm.pub"
cp "keys/tm$i.key" "${DDIR}/tm.key"
rm -f "${DDIR}/tm.ipc"
#change tls to "strict" to enable it (don't forget to also change http -> https)
cat < ${DDIR}/tessera-config${i}.json
{
"useWhiteList": false,
"jdbc": {
"username": "root",
"password": "123456",
"url": "jdbc:mysql//<IP_ADDRESS>:3306/quorum?useSSL=false"
},
"server": {
"port": 900${i},
"hostName": "http://localhost",
"sslConfig": {
"tls": "OFF",
"generateKeyStoreIfNotExisted": true,
"serverKeyStore": "${currentDir}/qdata/c${i}/server${i}-keystore",
"serverKeyStorePassword": "quorum",
"serverTrustStore": "${currentDir}/qdata/c${i}/server-truststore",
"serverTrustStorePassword": "quorum",
"serverTrustMode": "TOFU",
"knownClientsFile": "${currentDir}/qdata/c${i}/knownClients",
"clientKeyStore": "${currentDir}/qdata/c${i}/client${i}-keystore",
"clientKeyStorePassword": "quorum",
"clientTrustStore": "${currentDir}/qdata/c${i}/client-truststore",
"clientTrustStorePassword": "quorum",
"clientTrustMode": "TOFU",
"knownServersFile": "${currentDir}/qdata/c${i}/knownServers"
}
},
"peer": [
{
"url": "http://localhost:9001"
},
{
"url": "http://localhost:9002"
},
{
"url": "http://localhost:9003"
},
{
"url": "http://localhost:9004"
},
{
"url": "http://localhost:9005"
},
{
"url": "http://localhost:9006"
},
{
"url": "http://localhost:9007"
}
],
"keys": {
"passwords": [],
"keyData": [
{
"config": $(cat ${currentDir}/qdata/c${i}/tm.key),
"publicKey": "$(cat ${currentDir}/qdata/c${i}/tm.pub)"
}
]
},
"alwaysSendTo": [],
"unixSocketFile": "${currentDir}/qdata/c${i}/tm.ipc"
}
EOF
done

I also modify the  tessera-start.sh and add the mysql.jar to the running command as following
#!/bin/bash
set -u
set -e
function usage() {
echo ""
echo "Usage:"
echo "    $0 [--tesseraJar path to Tessera jar file] [--remoteDebug] [--jvmParams "JVM parameters"]"
echo ""
echo "Where:"
echo "    --tesseraJar specifies path to the jar file, default is to use the vagrant location"
echo "    --remoteDebug enables remote debug on port 500n for each Tessera node (for use with JVisualVm etc)"
echo "    --jvmParams specifies parameters to be used by JVM when running Tessera"
echo "Notes:"
echo "    Tessera jar location defaults to ${defaultTesseraJarExpr};"
echo "    however, this can be overridden by environment variable TESSERA_JAR or by the command line option."
echo ""
exit -1
}
defaultTesseraJarExpr="/home/vagrant/tessera/tessera.jar"
set +e
defaultTesseraJar=find ${defaultTesseraJarExpr} 2>/dev/null
set -e
if [[ "${TESSERA_JAR:-unset}" == "unset" ]]; then
tesseraJar=${defaultTesseraJar}
else
tesseraJar=${TESSERA_JAR}
fi
remoteDebug=false
jvmParams=
while (( "$#" )); do
case "$1" in
--tesseraJar)
tesseraJar=$2
shift 2
;;
--remoteDebug)
remoteDebug=true
shift
;;
--jvmParams)
jvmParams=$2
shift 2
;;
--help)
shift
usage
;;
*)
echo "Error: Unsupported command line parameter $1"
usage
;;
esac
done
if [  "${tesseraJar}" == "" ]; then
echo "ERROR: unable to find Tessera jar file using TESSERA_JAR envvar, or using ${defaultTesseraJarExpr}"
usage
elif [  ! -f "${tesseraJar}" ]; then
echo "ERROR: unable to find Tessera jar file: ${tesseraJar}"
usage
fi
currentDir=pwd
for i in {1..7}
do
DDIR="qdata/c$i"
mkdir -p ${DDIR}
mkdir -p qdata/logs
rm -f "$DDIR/tm.ipc"
DEBUG=""
if [ "$remoteDebug" == "true" ]; then
  DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=500$i -Xdebug"
fi

#Only set heap size if not specified on command line
MEMORY=
if [[ ! "$jvmParams" =~ "Xm" ]]; then
  MEMORY="-Xms128M -Xmx128M"
fi

CMD="java $jvmParams $DEBUG $MEMORY -cp /home/vagrant/tessera/mysql.jar -jar ${tesseraJar} -configfile $DDIR/tessera-config$i.json"
echo "$CMD >> qdata/logs/tessera$i.log 2>&1 &"
${CMD} >> "qdata/logs/tessera$i.log" 2>&1 &
sleep 1

done
echo "Waiting until all Tessera nodes are running..."
DOWN=true
k=10
while ${DOWN}; do
sleep 1
DOWN=false
for i in {1..7}
do
if [ ! -S "qdata/c${i}/tm.ipc" ]; then
echo "Node ${i} is not yet listening on tm.ipc"
DOWN=true
fi
    set +e
    result=$(printf 'GET /upcheck HTTP/1.0\r\n\r\n' | nc -Uv qdata/c${i}/tm.ipc | tail -n 1)
    set -e
    if [ ! "${result}" == "I'm up!" ]; then
        echo "Node ${i} is not yet listening on http"
        DOWN=true
    fi
done

k=$((k - 1))
if [ ${k} -le 0 ]; then
    echo "Tessera is taking a long time to start.  Look at the Tessera logs in qdata/logs/ for help diagnosing the problem."
fi
echo "Waiting until all Tessera nodes are running..."

sleep 5

done
echo "All Tessera nodes started"
exit 0

java   -Xms128M -Xmx128M -cp /home/vagrant/tessera/mysql.jar -jar /home/vagrant/tessera/tessera.jar -configfile qdata/c1/tessera-config1.json >> qdata/logs/tessera1.log 2>&1 &
But I get the error as following:
Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:mysql//<IP_ADDRESS>:3306/quorum?useSSL=false'
Error Code: 0
at org.glassfish.grizzly.servlet.WebappContext.initServlets(WebappContext.java:1920) ~[tessera.jar:na]
at org.glassfish.grizzly.servlet.WebappContext.deploy(WebappContext.java:345) ~[tessera.jar:na]
at com.quorum.tessera.server.JerseyServer.start(JerseyServer.java:111) [tessera.jar:na]
at com.quorum.tessera.Launcher.runWebServer(Launcher.java:107) [tessera.jar:na]
at com.quorum.tessera.Launcher.main(Launcher.java:52) [tessera.jar:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [tessera-spring.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.1.v20171221-bd47e8f): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:mysql//<IP_ADDRESS>:3306/quorum?useSSL=false'
Error Code: 0

Ah, I think the issue is that the change was made after the last release.
Can you try building Tessera from master instead of using the v0.6?
Additionally, the class path hasn't been setup correctly for using an external database driver.
The command should be:
java -Xms128M -Xmx128M -cp /home/vagrant/tessera/mysql.jar:/home/vagrant/tessera/tessera.jar com.quorum.tessera.Launcher -configfile qdata/c1/tessera-config1.json >> qdata/logs/tessera1.log 2>&1 &

Also, there is a small typo in the JDBC URL; you are missing a colon after 'mysql'

Thank you for your answer.
I have cloned the branch master and build with  mvn package -Dmaven.test.skip=true
I get the error as following:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.022 s
[INFO] Finished at: 2018-09-19T17:39:06+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.1:check (check) on project config: Coverage checks have not been met. See log for details. -> [Help 1]

Can you release the jar file of the new version? Thank you.

Can you run
mvn clean package -Dmaven.test.skip=true

The coverage issue stems from a previously failed build. Cleaning the project first will allow the coverage checks to not be executed.

I have packaged from branch matser by myself. And changed the command as following:
java   -Xms128M -Xmx128M -cp /home/vagrant/tessera/mysql.jar:/home/vagrant/tessera/tessera.jar com.quorum.tessera.Launcher -configfile qdata/c1/tessera-config1.json >> qdata/logs/tessera1.log 2>&1 &
I  get the error as before.
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:mysql//<IP_ADDRESS>:3306/quorum?useSSL=false'
Error Code: 0
My jar file about mysql jdbc is downloaded from
https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.12-1ubuntu16.04_all.deb

Are you sure you are running with the freshly built jar?
It looks like you are still using the old jar file (v0.6), which has the 'org.h2.Driver' as the default choice, which is no longer the case.
In the command I gave you before which specified the class path:
-cp /home/vagrant/tessera/mysql.jar:/home/vagrant/tessera/tessera.jar

the second jar is the Tessera one. Did you overwrite the jar file with the freshly compiled one? Otherwise you will still be using the old jar.

I have overwrite the jar file with the freshly compiled one. I can find the following content in swagger.html
Tessera rest
HTTP | HTTPS://localhost:8080/
Version 0.7-SNAPSHOT

I have overwrite the jar file with the freshly compiled one. I can find the following content in swagger.html
Tessera rest
HTTP | HTTPS://localhost:8080/
Version 0.7-SNAPSHOT

I have overwrite the jar file with the freshly compiled one. I can find the following content in swagger.html
Tessera rest
HTTP | HTTPS://localhost:8080/
Version 0.7-SNAPSHOT

please reopen if it is still an issue