set echo mode for tty

echo mode was requested to be disabled.
this led to a case when commands were not echoed back by some ssh servers (sr linux server in basic mode). It seems like echoing worked before, because it was handled by the remote ssh server without paying attention to the requested pty settings.
By setting echo on, we make the commands always echoed back, as this is what scrapli needs.
Here is a log from sr linux session where once the server goes into basic mode, it respects the required ECHO OFF setting and doesn't send back the input characters:
❯ go run private/main.go
2021/06/01 09:53:41 info::clab-scrapli-srlinux::22::opening connection to 'clab-scrapli-srlinux' on port '22'
2021/06/01 09:53:41 info::clab-scrapli-srlinux::22::connection to device opened successfully
2021/06/01 09:53:41 debug::clab-scrapli-srlinux::22::attempting to acquire privilege level: exec
2021/06/01 09:53:41 debug::clab-scrapli-srlinux::22::read: Last login: Tue Jun  1 07:49:00 2021 from 2001:172:20:20::1
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::read: Using configuration file(s): []
Welcome to the srlinux CLI.
Type 'help' (and press <ENTER>) if you need any help using this.
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::read:
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux#
2021/06/01 09:53:44 info::clab-scrapli-srlinux::22::attempting to acquire 'exec' privilege level
2021/06/01 09:53:44 error::clab-scrapli-srlinux::22::determined current privilege level is one of: [exec]
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::determined current privilege level is target privilege level, no action needed
2021/06/01 09:53:44 info::clab-scrapli-srlinux::22::"sending channelInput: environment cli-engine type basic; stripPrompt: true; eager: false
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:44 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux#
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::read:
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux# environment cli-engine type basic
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::read:
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::read:
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::stripping ansi chars...
2021/06/01 09:53:45 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux# environment cli-engine type basic
2021/06/01 09:53:46 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux#
2021/06/01 09:53:46 debug::clab-scrapli-srlinux::22::found prompt match
2021/06/01 09:53:46 info::clab-scrapli-srlinux::22::"sending channelInput: show version; stripPrompt: true; eager: false
2021/06/01 09:53:46 debug::clab-scrapli-srlinux::22::read: --{ running }--[  ]--
A:srlinux#
^Csignal: interrupt

nice catch! was able to reproduce to confirm. mergin!


Request for using (WorkingDirectory(x)) syntax

If you have a section of commands, all of which need to use the same working directory, it looks like the current options are to set each settings object's WorkingDirectory which is a lot of noise, or I was seeing try...finally and Environment.CurrentDirectory (not sure if that's encouraged) which isn't the nicest to type.
I'd love to be able to do this:
    .Does(() =>
{
    // ...
    using (WorkingDirectory(path))
    {
        // Not necessary to set WorkingDirectory on all the calls you make in here
    }
    // Back to original working directory
});

Not only does it provide the necessary benefits of try...finally, it even reads just right!
Willing to contribute a PR.

@jnm2 sure do a proof of concept PR and well discuss & review om that.

Would like clarification. Are you still interested in a PR?

Closing issue for now.


Documentation for controls within Web UI

I'm authoring a plugin/add-in to OnlyOffice, and am trying to keep the styles 100% with the base system.  In doing so, I am trying to use as much of the front-end UI tools that are used within the site, inclusive of dialogs, etc.
Is there deeper documentation available to better understand the method(s) to build each of the UI elements so that I am not manually reading many JavaScript files and determining this on my own?  I can do so, but am burning a lot of time.

Hello @dealproc Sorry, but we don't have detailed documentation, except api.onlyoffice.com.
In new generation of communityserver, we will have a storybook, that include all documentation about it.

Ok, thank you.
I was hoping for a short-cut method for this, but will continue the grueling task of extracting the capabilities by spelunking the existing UI code.


Pin python requirements, pymongo 3.4 and README.md update for missing build-time deps

Currently pex will grab the latest version of all pip requirements and recently this broke the 'make' process, not to add it's a bit risky to always grab latest.
One example: I built the release 0.3.2 twice a few weeks apart and both had different major-versions of Pymongo (3.4 vs 3.3), something that should be tested first.
This PR changes/adds:

Pins the latest deps I've successfully tested with so that we can build reliable releases. In the future we can increment those deps after successful testing. Note: the pinning uses Pymongo 3.4 which adds support for MongoDB 3.4.x (now tested as a result of this problem).
Added a few missing build-time requirements for CentOS/Redhat to README.md.

Note: 'multiprocessing' is having issues being pinned so it is unpinned.

👍


Problème

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything els

e that is relevant.

You cannot enter the content of Program.cs in the console.
The shown content in the tutorial is already in the created Program.cs file.
After entering "cd MyApp" click continue in the tutorial and proceed with the next step.
When you are at the step "Edit your code", you need to open the file C:\Users\jefta\MyApp\Program.cs in a text editor and edit it in the editor.

Merci beaucoup.
Le ven. 14 avr. 2023 à 22:33, Chri-s @.***> a écrit :

You cannot enter the content of Program.cs in the console.
The shown content in the tutorial is already in the created Program.cs
file.
After entering "cd MyApp" click continue in the tutorial and proceed with
the next step.
When you are at the step "Edit your code", you need to open the file
C:\Users\jefta\MyApp\Program.cs in a text editor and edit it in the editor.
—
Reply to this email directly, view it on GitHub
https://github.com/dotnet/core/issues/8396#issuecomment-1509222842, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A42UL5S6AQSVXQSLWTEQAFTXBGYCJANCNFSM6AAAAAAW6X5AT4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Failed to install

Hello, I tried installing your package, however installation failed and I received the following message. I am using a fresh installation of Laravel 5.3. If any more information is needed/wanted about this, please let me know. :)
Using version ^1.0 for superbalist/laravel-google-cloud-storage
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for superbalist/laravel-google-cloud-storage ^1.0 -> satisfiable by superbalist/laravel-google-cloud-storage[1.0.0].
    - superbalist/laravel-google-cloud-storage 1.0.0 requires superbalist/flysystem-google-storage ^3.0 -> satisfiable by superbalist/flysystem-google-storage[3.0.0, 3.0.1, 3.0.2, 3.0.3].
    - superbalist/flysystem-google-storage 3.0.0 requires google/cloud ^0.8.0 -> satisfiable by google/cloud[v0.8.0].
    - superbalist/flysystem-google-storage 3.0.1 requires google/cloud ^0.8.0 -> satisfiable by google/cloud[v0.8.0].
    - superbalist/flysystem-google-storage 3.0.2 requires google/cloud ^0.8.0|^0.9.0 -> satisfiable by google/cloud[v0.8.0, v0.9.0].
    - superbalist/flysystem-google-storage 3.0.3 requires google/cloud ^0.8.0|^0.9.0 -> satisfiable by google/cloud[v0.8.0, v0.9.0].
    - google/cloud v0.8.0 requires google/auth 0.10 -> satisfiable by google/auth[v0.10].
    - google/cloud v0.9.0 requires google/auth 0.10 -> satisfiable by google/auth[v0.10].
    - Conclusion: don't install google/auth v0.10

Had the same problem, forgot to composer remove websight/l5-google-cloud-storage
Not sure if you were using websight's package before, but it fixed the issue above for me.

I think I also had to add composer require superbalist/flysystem-google-storage as well.

Laravel 5.2
composer require superbalist/laravel-google-cloud-storage                                                                                ‹system›
Using version ^1.0 for superbalist/laravel-google-cloud-storage
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for superbalist/laravel-google-cloud-storage ^1.0 -> satisfiable by superbalist/laravel-google-cloud-storage[1.0.0].
- Conclusion: remove laravel/framework v5.2.45
- Conclusion: don't install laravel/framework v5.2.45
- superbalist/laravel-google-cloud-storage 1.0.0 requires illuminate/filesystem ^5.3 -> satisfiable by illuminate/filesystem[v5.3.0, v5.3.16, v5.3.4].
- don't install illuminate/filesystem v5.3.0|don't install laravel/framework v5.2.45
- don't install illuminate/filesystem v5.3.16|don't install laravel/framework v5.2.45
- don't install illuminate/filesystem v5.3.4|don't install laravel/framework v5.2.45
- Installation request for laravel/framework (locked at v5.2.45, required as 5.2.*) -> satisfiable by laravel/framework[v5.2.45].
Installation failed, reverting ./composer.json to its original content.

@markhilton
It looks like you're using Laravel 5.2, but we when we developed this, we built it for 5.3 (or at least made 5.3 a dependency).
Any chance you can branch off and test compatibility with 5.2?
If so, we can lower the requirement here.

@austinkregel
Can you give me the output of the following (when inside your project directory)
composer depends google/cloud
composer depends google/auth

@matthewgoslett  Sorry I didn't respond earlier, it seems like what @thebrubaker had the right idea. I thought I didn't have that package installed, but I guess I did. Which is what was causing my issues.

No problem.
Ye that would cause a dependency conflict.
websight/l5-google-cloud-storage no longer uses flysystem-google-cloud-storage which this packages uses under the hood.  It looks like they tie themselves to a specific version of google/cloud.

Laravel 5.2.43

can you support laravel 5.2 ? laravel 5.3 is too fresh

I'm going to close this issue as my problems were resolved. @tristan5293 can you please make your own issue to continue the discussion there. Thanks :)


Update to refactored docker_call (resolves #474)

@hannes-ucsc ready for review

@hannes-ucsc can you review this?


Update README.md

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

Systems testing needed

HYDROCHECK RESULTS: PASS


Mini Game Feature

Can you please assign me this issue?

@subhadip-saha-05 Can You Re-assign me this? I think I can work n this and its been over 1 month still this issue is unsolved. Kindly reassign this issue to me.
Thanks
pk284

ok @PK284


OS remapped keys aren't respected

Remapping a keybinding via autohotkey isn't respected.
I've also heard reports that similar issues exist on linux.

This is fixed in sdl2

Not actually fixed

Ok it is fixed


Trigger payloads containing _ref cause mysterious failures

I was trying to use Sentry's (https://getsentry.com/welcome/) webhooks to send events to StackStorm and discovered that any trigger payload that includes a key named _ref seems to partially break StackStorm. The trigger instance does get created, but there is an error saying that it was not created (below), and rules for it don't get executed.
To reproduce, create a webhook and run:
$ curl -X POST https:///api/v1/webhooks/?st2-api-key= -H "Content-Type: application/json" --data '{"_ref":""}'
2016-02-29T23:27:08.665213+00:00 localhost st2rulesengine[894]: INFO<PHONE_NUMBER>80464 log [-] Matched 0 rule(s) for trigger_instance e6ad1add-83df-4282-95a3-94273fda8962 (type=core.st2.webhook)
2016-02-29T23:27:12.313352+00:00 localhost st2rulesengine[894]: ERROR<PHONE_NUMBER>80464 log [-] Failed to create trigger_instance {'trace_context': <st2common.models.api.trace.TraceContext object at 0x7f78ab933a50>, 'trigger': {'uid': u'trigger:core:e6ad1add-83df-4282-95a3-94273fda8962:9c072f3ca49748f5a6459bdcb4d898c4', 'parameters': {u'url': u'sentryerrors'}, 'description': None, 'ref_count': 0, 'pack': u'core', 'type': u'core.st2.webhook', 'id': '56d47bd3ef45a605d0d33fdf', 'name': u'e6ad1add-83df-4282-95a3-94273fda8962'}, 'payload': {'body': {'_ref': u''}, 'headers': {'X-Request-Id': 'e7212a0d-67e8-4be4-ab42-319b86b41793', 'X-Forwarded-For': 'IPADDRESS', 'Content-Length': '11', 'Accept': '*/*', 'User-Agent': 'curl/7.43.0', 'Host': 'HOSTNAME', 'X-Real-Ip': 'IPADDRESS', 'Content-Type': 'application/json'}}}.#012Traceback (most recent call last):#012  File "/usr/lib/python2.7/dist-packages/st2reactor/rules/worker.py", line 51, in process#012    raise_on_no_trigger=True)#012  File "/usr/lib/python2.7/dist-packages/st2reactor/container/utils.py", line 60, in create_trigger_instance#012    return TriggerInstance.add_or_update(trigger_instance)#012  File "/usr/lib/python2.7/dist-packages/st2common/persistence/base.py", line 155, in add_or_update#012    model_object = cls._get_impl().add_or_update(model_object)#012  File "/usr/lib/python2.7/dist-packages/st2common/models/db/__init__.py", line 175, in add_or_update#012    return self._undo_dict_field_escape(instance)#012  File "/usr/lib/python2.7/dist-packages/st2common/models/db/__init__.py", line 193, in _undo_dict_field_escape#012    value = getattr(instance, attr)#012  File "/usr/local/lib/python2.7/dist-packages/mongoengine/base/fields.py", line 208, in __get__#012    name=self.name#012  File "/usr/local/lib/python2.7/dist-packages/mongoengine/dereference.py", line 64, in __call__#012    self.reference_map = self._find_references(items)#012  File "/usr/local/lib/python2.7/dist-packages/mongoengine/dereference.py", line 105, in _find_references#012

Thanks for the report.
This is a tricky one since the failure comes from a library we use which attributes special meaning to _ref. The fix would likely be to ask the library to dereference only up to a specific depth or skip certain properties like payload of a trigger-instance.

Thanks for the quick response!
Does the Mongo library parse the payload before it is parsed somewhere in ST2? Seems like you might be able to do some sort of name mangling (and possibly un-mangle on the other side? Though I don't even care about that personally).

Does the Mongo library parse the payload before it is parsed somewhere in ST2?

Yes.

Seems like you might be able to do some sort of name mangling

I thought about name mangle and un-mangle. However, this pretty much means we need to do this recursively for all nested properties of the payload and to also know about all the special properties. Since what we really want is to make webhook payload opaque I feel that skipping the recursive check for payload will be better.

Actually, I wasn't able to reproduce this bug anymore.
[vagrant@st2packages-el7 ~]$ curl -X POST -H "Content-Type: application/json" --data-binary '{"_ref":"", "name": "st2"}' http://localhost:9101/v1/webhooks/sample?x-auth-token=5f205d8351d24c5181f0ff80e83fd352
{"_ref": "", "name": "st2"}
[vagrant@st2packages-el7 ~]$ st2 execution list -n 1
+--------------------------+------------+--------------+------------------------+------------------------------+-------------------------------+
| id                       | action.ref | context.user | status                 | start_timestamp              | end_timestamp                 |
+--------------------------+------------+--------------+------------------------+------------------------------+-------------------------------+
| 5832be21bf6d843f8d6a049c | core.local | stanley      | succeeded (0s elapsed) | Mon, 21 Nov 2016 09:28:01    | Mon, 21 Nov 2016 09:28:01 UTC |
|                          |            |              |                        | UTC                          |                               |
+--------------------------+------------+--------------+------------------------+------------------------------+-------------------------------+
[vagrant@st2packages-el7 ~]$ st2 execution get 5832be21bf6d843f8d6a049c
id: 5832be21bf6d843f8d6a049c
status: succeeded (0s elapsed)
parameters:
  cmd: 'echo "{''_ref'': u'''', ''name'': ''st2''}" >> ~/st2.webhook_sample.out'
result:
  failed: false
  return_code: 0
  stderr: ''
  stdout: ''
  succeeded: true
[vagrant@st2packages-el7 ~]$ sudo cat /home/stanley/st2.webhook_sample.out
{'_ref': u'', 'name': 'st2'}

Going to close it for now. Please reopen if the problem persists.


feat: Add buff.ly to trackers

Fixes (Links to issues fixed by this PR): None

Description: Adds buff.ly to tracker list

Test links: https://buff.ly/3MUzELf

waiting for #983 which is waiting on #784

@NotAProton merge ready?

Close this and open and new one for the mv-3 (now main) branch


USB/Bluetooth support wanted?

@bernhard-thiele Collecting more ideas: https://github.com/signal11/hidapi is a platform independent implementation for USB and Bluetooth communication by the HID API. Do you think it might be useful to have it supported with M_DD?

Could be nice to have. Of course it would add additional dependencies and maintenance efforts, hence it would be good to know if there are any interested users or use cases that you have in mind. Alternatively, one could think on using the OS APIs directly, so that no additional third party dependency is added.

I would be very interested. I have to put some effort in this topic soon and it would be nice to know which api you prefer.

Thanks for you interest. I'd go for the HID API, because

it is platform independent already
we do not have to re-invent the effort
we have successfully proven to manage third-path libraries (like glib-2.0 and lcm for #115).

I am not an expert on that, but I think hid api offers support for hid bluetooth profile only. If I want to send and reveice data like in a serial port, I need spp profile. hdi-api can be implemented but the use cases are limited to hdi, am I right? https://learn.sparkfun.com/tutorials/bluetooth-basics

Good point. If SSP is what you need then HID API is not the API of choice.

I tried to send data via bluetooth to a modelica simulation in dymola under windows.
It did work without any modification at the serial port code because you can handle bluetooth connections like ordinary COM ports under Windows. But it still shows some arbitrary behaviour. It works only every third time. Thats weird. I will investigate this.

With your patch applied I guess?

@tbeu Yes, but it should have no effect on the weird behaviour. When its not working properly it doesnt call ReadFile at all. What I would like to state is, that I dont think we need an additional implementation that tackles bluetooth. Sending and receiving should work with the current serial code. Or are there any other applications of interest except SPP?

If I have a working setup, I can also try it on linux.

If Bluetooth via SSP is working for you, we can be glad to have less work. HID might not be of that interest. I only learned now.
What about USB?

Oh...I did not mentioned yet,, that I always use the serial port via usb? So this should be done with my patch.

 I cannot imagine right now.

@tbeu Sorry, I dont get the question.

Well, bluetooth is wireless communication. Now that you use (wired?) serial I/O I wonder where there still is wireless I/O?  Thus, would be interesting to read about the application  :smirk:.

The application is reading angular sensors with an arduino and transfering them via a serial usb connection. The same task can be accomplished using a hc-05 bluetooth module to use the arduino without usb connection. Some students developed a mobile handheld control device (like a joystick) and therefore it needs to be wireless.

I guess it is ok to close since Bluethooth is working via serial port i/o.


bumps gradle spring boot plugin version

Bumps from 3.0.5 -> 3.1.1.

This seems to only affect compilation of the library and has no affect on the version located in the starter apps file.  I'm bumping this to keep up with the version in the starter app.


feat: init TableMetadataBuilder

This PR init TableMetadataBuilder. Complete #250

cc @marvinlanhenke @Fokko @Xuanwo PTAL

We can left the binding to other pr, and forbid table creation with partition spec and sort order for now, it's up to you.

Let's forbid them now. I think I'm not clear with these two processes now, so let's delay them to later PR. After I complete them, I will fix this. Other fixed.


How to use props in the drop handler?

I want to use prop of React component in the drop handler, but it is outside of component's scope. Also, I don't want to have a variable, like mode, outside of the component's scope and fill it at startup of the component, because I want 2 instances of this component with their own behaviour based on props.mode passed to it.
How can I handle it?
'use strict';

import React from 'react';
import { DropTarget } from 'react-dnd';

import AchievementActions from '../actions/AchievementActions';
import { DNDTypes, States } from '../constants/AchievementConstants';

const boxTarget = {
	drop() {
		console.log('DROP')
		// i want to use `props.mode` of Pool instance here somehow
		AchievementActions.setMode(__props.mode__);
		return { name : 'Pool' };
	}
}

function collect(connect, monitor) {
	return {
		connectDropTarget: connect.dropTarget(),
		isOver: monitor.isOver(),
		canDrop: monitor.canDrop()
	}
}

let Pool = React.createClass({
	propTypes: {
		mode: React.PropTypes.string.isRequired
	},
	render() {
		const { canDrop, isOver, connectDropTarget } = this.props;
		return connectDropTarget(
			<div
				className={this.props.mode}
				onClick={this._handleClick}
			>
			</div>
		);
	},
	_handleClick() {
                // same behaviour as in the `drop handler`
		AchievementActions.setMode(this.props.mode);
	}
});

module.exports = DropTarget(DNDTypes.MODE_CONTROL, boxTarget, collect)(Pool);

Okay, props is the first argument of drop() handler
...
const boxTarget = {
    drop(props) {
        console.log('DROP')
        AchievementActions.setMode(props.mode);
        return { name : 'Pool' };
    }
}
...

@gaearon May be you can setup a forum site for such questions.

For now I think Github does the job!


Colegio Marista de Carcavelos

@diogomufasa First stage of verification passed, official domain is marista-carcavelos.org as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@diogomufasa Thank you for your patience while waiting for a review and processing your request. Pull request merged.


scan startInclusive appears to not work

I put a row with key 56b87a4949c4419288c62b84b865c2e8.
I .scan('tablename') and see that row in the results.
I get nothing when I do this:
.scan('tablename, scanrange=Range(
srow='56b87a4949c4419288c62b84b865c2e8',
erow='56b87a4949c4419288c62b84b865c2e8\0',
sinclude=True))
It works when I do this:
.scan('tablename, scanrange=Range(
srow='56b87a4949c4419288c62b84b865c2e7',  ## NOTE: decremented start key
erow='56b87a4949c4419288c62b84b865c2e8\0',
sinclude=True))
So it looks like 'start inclusive' scan doesn't actually work and Accumulo is always doing '>' but not '>='

There is a Java proxy bug in the scanner.  If you create a BatchScanner, every range assigned to it has startInclusive=true, endInclusive=false.
https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob;f=proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java;h=84990442ee50f207153dd74665ce0294c19a9b4d;hb=HEAD#l1055
There is what looks like an attempted workaround for this in the pyaccumulo Range constructor, but it's not helpful in other contexts where you can use Range, e.g. non-batch Scanner objects.
https://github.com/accumulo/pyaccumulo/blob/master/pyaccumulo/__init__.py#L102
I think the pyaccumulo workaround logic is correct, though.


Custom shape for widgets

Custom shape for widgets using ClipPath(And with animated morphing capability). This would make it possible to create very interesting and beautiful UIs, like in this tutorial.
It's probably possible to do this by registering a custom widget... but I don't have enough skills to do it.
P.S. AnimatedList and AnimatedGrid would also be very useful for a rich UI. I would really appreciate it if you would add these widgets to Lowder.

I found a library that may be able to help with the implementation of a custom shape for widgets...


Use compiler builtins to count leading zeroes

This is much faster and more concise than using an entire chain of ternary operations

In swift, the current code asks if there is a more efficient std implementation to count leading zeros. Although there is not, clang has a builtin just for that, so let’s use it.

Note that the file already includes an LLVM header #include "llvm/Support/Compiler.h". You can easily add MathExtras.h and let LLVM take care of everything.


Cache charmcraft pack container, skip unstable tests except on schedule

Ported from:
https://github.com/canonical/mysql-operator/pull/78
https://github.com/canonical/mysql-operator/pull/88
https://github.com/canonical/mysql-operator/pull/87
https://github.com/canonical/mysql-operator/pull/100
https://github.com/canonical/mysql-operator/pull/106

The failing test looks like a real bug catch:
Access denied for user<EMAIL_ADDRESS>(using password: YES)
=>
another-mysql/2   blocked   idle   <IP_ADDRESS>         Can't update pod labels


[synthetics] Support for CloudWatch Synthetics

Feature scope
CloudWatchSynthetics
Describe your suggested feature
General support for metrics and alarms for CloudWatch Synthetics.
Metrics: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_metrics.html

Started working on it.


Date type extension

[x] Added or updated tests
[ ] Documented user facing changes
[x] Updated CHANGELOG.md

Resolves #421. The code is taken from #438 and some tests were added.
I've been using initial implementation in projects for a long time and as I found a way to test it, I think it now deserves to be in this package.
Changes
Now, when using Date::use(CarbonImmutable::class), the helpers now(), today() and models' timestamps are determined to be CarbonImmutable.
It also adds an extension to determine return types of Illuminate\Support\Facade\Date methods when a custom date Factory is used (for exemple, Date::createFromString returns CarbonImmutable)
Breaking changes
I don't think so

Thank you. Sorry for the delay!


add useful information to README

Signed-off-by: Umanga Chapagain<EMAIL_ADDRESS>

Wee to add some examples. maybe later sometime


SDL mixer tries to load opusfile.dll instead of libopusfile-0.dll

I encountered an issue on Windows where I cannot initialize SDL mixer with OPUS support. I tracked the issue down to SDL mixer trying to load opusfile.dll at runtime while the provided DLL is actually named libopusfile-0.dll. Renaming the DLL solves the issue; however, I feel like this shouldn't be necessary. SDL mixer should look for libopusfile-0.dll.
The name of the opusfile library is provided by CMake via the compile definition OPUS_DYNAMIC.
SDL version: 2.28.4
SDL mixer version: 2.6.3
Edit: I just realized that when installing from source, the library is indeed named opusfile.dll. However, while the pre-built SDL mixer does not support OPUS, it comes with a libopusfile-0.dll. This is a bit confusing.

I fixed this in our vendored libraries, except gme and libxmp.

gme has a cmake script, and does not set it
libxmp's autotools also does not set the soversion suffix

I hardcoded the soversions in the cmake script, so when bumping the dependencies, these should get reviewed.
I also ignored MSVC, so msvc libraries will also have this version suffix, which is fine (imho).
There is still a difference between MSVC binaries and mingw binaries: MSVC does not add a lib prefix.
Please test the new git commits, and comment here when you see something wrong.
SDL3: 77546730c86524a83e9f69bceaf6a2e860075b6b
SDL2: 9ec0e0e351846bbb3e2fcb3f007e528ed0c67c43


Bad Gateway 502

Did everything as it is described in the readme (for HTTP at <IP_ADDRESS>), all containers are running fine, but I get a 502 as soon as I load the host-url via browser.
There are a few issues mentioned in the web like https://stackoverflow.com/questions/47429540/nginx-502-bad-gateway-within-docker-stack but none of the suggestions helped so far.
Any idea to solve that issue?
Best regards

@phonic - Hard to say without getting some more information from you.
Things to look at:

make sure all containers are running and not restarting on you
review that stdout of the containers via docker-compose logs or docker logs CONTAINER_NAME. Hopefully there is some indication of the issue being encountered.
Permissions / ownership of the directories being shared with the containers. If there is a permissions mismatch the processes running wordpress may not be able to access the files.
ports already being used by other processes

Feel free to post log output or other info that may help debug back to this thread.

platform you're running on
docker-compose.yml that you're using
output from docker ps -a
output from docker logs ...

Hey @mjstealey
I did everything exactly as it was described from the instructions for localhost development (especially regarding .conf without SSL). Containers are running fine so far...
$ docker ps -a
CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS                          PORTS                                      NAMES
327174346fde        nginx:latest           "nginx -g 'daemon of…"   7 minutes ago       Up 7 minutes                    <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   nginx
993c7479b021        wordpress:php7.2-fpm   "docker-entrypoint.s…"   7 minutes ago       Up 22 seconds                   9000/tcp                                   wordpress
7649305ef2f5        mariadb                "docker-entrypoint.s…"   7 minutes ago       Restarting (1) 46 seconds ago                                              mysql

...and I can connect to the container via
$ winpty docker exec -it 327174346fde bash
root@327174346fde:/#

After installing curl on the nginx container, the following command results with 502
root@327174346fde:/# curl localhost:80

<title>502 Bad Gateway</title>

502 Bad Gateway

nginx/1.15.7

Logically, I cannot connect to the wp instance from windows host as well
A clean nginx container however (without WP/MySQL) results in  a successful curl.
I'm running on docker for windows.

Found the issue, php isnt installed properly on the container.

Thank you for the updated info.

Containers are running fine so far...

It looks like the mysql container that runs MariaDB is restarting. And unless you explicitly issued a restart call it should not be doing this, and would be something to look at.

look at the output of docker logs mysql
check permissions of the underlying volume mount (mysql folder)
if stale data from a prior run that wasn't purged before starting a new run (delete all volume mounts and recreate between runs)
had you tried a modified user/pass of the MariaDB instance? (non-root user example) It may be problematic if switching back and forth between examples without purging volumes between runs

After installing curl on the nginx container, the following command results with 502

It does look like Nginx is doing it's job in that you are getting a response served from Nginx.
Hard to say if the Wordpress container is working, but if the database is not being recognized, then the Wordpress container would be non-functional, but still running.

look at the output of docker logs wordpress for clues

I'm running on docker for windows.

Unfortunately I do not have access to a bare metal Windows box to test. I could spin up a Windows VM, but then would be using nested virtualization and may not be equivalent to what you are working with...

Hey @mjstealey
Thanks for your response, it seems the issue is a php related one. The 502 is gone away when you index any html file. Seems like an error very similar to:
https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-php-fpm/
try to figure out whats wrong on my side, its a bit tricky, cause I've no experience with nginx so far...

it seems the issue is a php related one. The 502 is gone away when you index any html file

In this case a bad gateway (502) error makes sense if the Wordpress container is unable to properly serve content.
I still think the database may be the culprit in that Wordpress cannot interact with it because it's in a restarting loop/state and unable to serve the content that would normally be regulated by the database.
I'm using macOS, so a sample http local deploy would be:
git clone https://github.com/mjstealey/wordpress-nginx-docker.git
cd wordpress-nginx-docker
mkdir -p certs/ certs-data/ logs/nginx/ mysql/ wordpress/
cp nginx/wordpress.conf.example nginx/wordpress.conf
vi nginx/wordpress.conf  ### update: server_name <IP_ADDRESS>;
docker-compose up -d

Running state:
$ docker ps
CONTAINER ID        IMAGE                  COMMAND                  CREATED              STATUS              PORTS                                      NAMES
d1efa13b8fdb        nginx:latest           "nginx -g 'daemon of…"   About a minute ago   Up About a minute   <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   nginx
d50a35575abc        wordpress:php7.2-fpm   "docker-entrypoint.s…"   About a minute ago   Up About a minute   9000/tcp                                   wordpress
ba03d698e7b6        mariadb                "docker-entrypoint.s…"   About a minute ago   Up About a minute   3306/tcp                                   mysql

A healthy mysql log would look like:
$ docker logs mysql
Initializing database

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h  password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

Database initialized
MySQL init process in progress...
2018-12-06 12:54:18 0 [Note] mysqld (mysqld 10.3.11-MariaDB-1:10.3.11+maria~bionic) starting as process 106 ...
2018-12-06 12:54:18 0 [Note] InnoDB: Using Linux native AIO
2018-12-06 12:54:18 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-12-06 12:54:18 0 [Note] InnoDB: Uses event mutexes
2018-12-06 12:54:18 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-12-06 12:54:18 0 [Note] InnoDB: Number of pools: 1
2018-12-06 12:54:18 0 [Note] InnoDB: Using SSE2 crc32 instructions
2018-12-06 12:54:18 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2018-12-06 12:54:18 0 [Note] InnoDB: Completed initialization of buffer pool
2018-12-06 12:54:18 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-12-06 12:54:18 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-12-06 12:54:18 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-12-06 12:54:18 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
MySQL init process in progress...
2018-12-06 12:54:19 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-12-06 12:54:19 0 [Note] InnoDB: 10.3.11 started; log sequence number 1630824; transaction id 21
2018-12-06 12:54:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2018-12-06 12:54:19 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-12-06 12:54:19 0 [Note] InnoDB: Buffer pool(s) load completed at 181206 12:54:19
2018-12-06 12:54:19 0 [Warning] 'user' entry 'root@ba03d698e7b6' ignored in --skip-name-resolve mode.
2018-12-06 12:54:19 0 [Warning] 'user' entry '@ba03d698e7b6' ignored in --skip-name-resolve mode.
2018-12-06 12:54:19 0 [Warning] 'proxies_priv' entry '@% root@ba03d698e7b6' ignored in --skip-name-resolve mode.
2018-12-06 12:54:19 0 [Note] Reading of all Master_info entries succeded
2018-12-06 12:54:19 0 [Note] Added new Master_info '' to hash table
2018-12-06 12:54:19 0 [Note] mysqld: ready for connections.
Version: '10.3.11-MariaDB-1:10.3.11+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
2018-12-06 12:54:35 10 [Warning] 'proxies_priv' entry '@% root@ba03d698e7b6' ignored in --skip-name-resolve mode.

2018-12-06 12:54:35 0 [Note] mysqld (initiated by: unknown): Normal shutdown
2018-12-06 12:54:35 0 [Note] Event Scheduler: Purging the queue. 0 events
2018-12-06 12:54:35 0 [Note] InnoDB: FTS optimize thread exiting.
2018-12-06 12:54:35 0 [Note] InnoDB: Starting shutdown...
2018-12-06 12:54:35 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2018-12-06 12:54:35 0 [Note] InnoDB: Buffer pool(s) dump completed at 181206 12:54:35
2018-12-06 12:54:36 0 [Note] InnoDB: Shutdown completed; log sequence number 1630833; transaction id 24
2018-12-06 12:54:36 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-12-06 12:54:37 0 [Note] mysqld: Shutdown complete

MySQL init process done. Ready for start up.

2018-12-06 12:54:37 0 [Note] mysqld (mysqld 10.3.11-MariaDB-1:10.3.11+maria~bionic) starting as process 1 ...
2018-12-06 12:54:37 0 [Note] InnoDB: Using Linux native AIO
2018-12-06 12:54:37 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-12-06 12:54:37 0 [Note] InnoDB: Uses event mutexes
2018-12-06 12:54:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-12-06 12:54:37 0 [Note] InnoDB: Number of pools: 1
2018-12-06 12:54:37 0 [Note] InnoDB: Using SSE2 crc32 instructions
2018-12-06 12:54:37 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2018-12-06 12:54:37 0 [Note] InnoDB: Completed initialization of buffer pool
2018-12-06 12:54:37 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-12-06 12:54:37 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-12-06 12:54:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-12-06 12:54:37 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-12-06 12:54:38 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-12-06 12:54:38 0 [Note] InnoDB: 10.3.11 started; log sequence number 1630833; transaction id 21
2018-12-06 12:54:38 0 [Note] Plugin 'FEEDBACK' is disabled.
2018-12-06 12:54:38 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-12-06 12:54:38 0 [Note] Server socket created on IP: '::'.
2018-12-06 12:54:38 0 [Note] InnoDB: Buffer pool(s) load completed at 181206 12:54:38
2018-12-06 12:54:38 0 [Warning] 'proxies_priv' entry '@% root@ba03d698e7b6' ignored in --skip-name-resolve mode.
2018-12-06 12:54:38 0 [Note] Reading of all Master_info entries succeded
2018-12-06 12:54:38 0 [Note] Added new Master_info '' to hash table
2018-12-06 12:54:38 0 [Note] mysqld: ready for connections.
Version: '10.3.11-MariaDB-1:10.3.11+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

And finally a check of http://<IP_ADDRESS>

@mjstealey
I really appreciate your help! Thanks for it, will looking into it!

@mjstealey
Solved the problem by removing the volume mount for mysql from docker-compose.
volumes:
      - ./mysql:/var/lib/mysql

Otherwise I would get the following error log messages:
mysql        | 2018-12-06 14:44:39 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
mysql        | 2018-12-06 14:44:39 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
mysql        | 2018-12-06 14:44:40 0 [Note] InnoDB: Starting shutdown...
mysql        | 2018-12-06 14:44:40 0 [ERROR] Plugin 'InnoDB' init function returned error.
mysql        | 2018-12-06 14:44:40 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
mysql        | 2018-12-06 14:44:40 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql        | 2018-12-06 14:44:40 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
mysql        | 2018-12-06 14:44:40 0 [ERROR] Unknown/unsupported storage engine: InnoDB
mysql        | 2018-12-06 14:44:40 0 [ERROR] Aborting

I am using a mac too and I ran into the same problem and I use a docker volume instead.  It might have something to do with the file system.   This approach might be easier to back up the database.
volumes:
  - db_data:/var/lib/mysql
......
volumes:
  db_data:


Create Static table for Routes in DBX

Develop a notebook that populates a static table with all possible Routes to be used by other notebooks that needs to separate data by routes.
The notebook, ideally can read data from redis condition: table and refresh the table automatically - so that every time we onboard new Programs/routes, we can automate DBX to refresh it's static table.

Currently we have static table which has route defined to separate the data.

The routes are not available in Redis cache, so we could not populate the routes in table.
As an intermediate solution we

Created a static table to capture routes from eventhub  to be used across multiple notebooks.

A solution was found to dynamically query the routes coming from new messages and using those to create new tables. A static table is no longer needed.


Compile error when bintray is unavailable.

If chef is not able to retrieve the vagrant checksum from bintray, it results in a compile error for any node that has the vagrant cookbook in its dependencies (when the helper method tries to fetch the checksum in the attributes file).  I expect this would happen even if the URL and checksum attributes were set elsewhere (I haven't tested that).  Today's bintray issue manifested this behavior on my nodes.
Would it be acceptable to rescue these errors and set the default attributes to nil in that case?  This should only make nodes that actually need to perform an install be broken if bintray is not working, and none at all if the attributes are set elsewhere.
I was about to start working on that when bintray came back.  I could still do it - or maybe someone else has a better idea?

You also see this issue when running specs without an Internet connection.
Specs should not be dependent on any outside resources.
Rescuing and returning nil seems reasonable to me. You would either
re-downlad the package or the ackage download would would fail altogether.
On Tuesday, September 22, 2015, Bryce Lynn<EMAIL_ADDRESS>wrote:

If chef is not able to retrieve the vagrant checksum from bintray, it
results in a compile error for any node that has the vagrant cookbook in
its dependencies (when the helper method tries to fetch the checksum in the
attributes file). I expect this would happen even if the URL and checksum
attributes were set elsewhere (I haven't tested that). Today's bintray
issue manifested this behavior on my nodes.
Would it be acceptable to rescue these errors and set the default
attributes to nil in that case? This should only make nodes that actually
need to perform an install be broken if bintray is not working, and none at
all if the attributes are set elsewhere.
I was about to start working on that when bintray came back. I could still
do it - or maybe someone else has a better idea?
—
Reply to this email directly or view it on GitHub
https://github.com/jtimberman/vagrant-cookbook/issues/37.

--
Thanks,
Doug Ireton


Webapp UX tweaks and fixes

Annotations page

Fix: Fixed broken isomers/isobars alert icon & popup on Molecules section
Fix: Fixed broken Diagnostics tour step (tour text wouldn't appear until you scrolled down, appeared in wrong position)
Fix: Fixed a console error from ClippingNotice getting a null intensity prop when loading a saved URL
Optimization: Moved the peakChartData query into Diagnostics component(s) so that it would only be run if that section was actually open. Also enabled client-side caching on this query.
Optimization: Made the Metadata section not render if it's not open
Optimization: Moved the molecular formula in the table into its own component to prevent expensive re-renders when selecting annotations.
UX: Moved the filter button for the molecular formula to the right end of the cell be consistent with other columns. This also shrinks the hoverable area

UX: Switched the filter icons to SVG. I tried coloring them when not clickable, but wasn't too happy with how noisy the grid became. WDYT?

Though this is a non-change, I left them as SVG as they fit better with the refactoring-ui icon pattern.

Elsewhere

Fix: run deref-schema on Docker container startup to generate metadataRegistry.ts, etc. so that a fresh git checkout can run the containers without a manual step
Optimization: Added HTTP caching settings so that ion/optical/thumbnail images can be cached by the browser
UX: Added loading spinners to the Dataset Summary page as it's quite slow on prod
UX: Fixed the issue that caused the Edit Metadata page to automatically append ?mdtype=Imaging MS to the URL, which created an unwanted history entry.
UX: Changed the Edit Metadata page to use $router.back() instead of $router.push('/datasets') so that the previous filter & scroll position are preserved.

Each change is in its own commit, in case you prefer to review it change-by-change.

p.s. regarding "coloring [filter icons] when not clickable`, I agree that it is noisy. It might work if the icon clipped the content of the table cell, but maybe we don't want to go that far.

p.s. regarding "coloring [filter icons] when not clickable`, I agree that it is noisy. It might work if the icon clipped the content of the table cell, but maybe we don't want to go that far.

I support the idea of consistency in the annotation table, but the change does mean that in many cases the value cannot be filtered while checking the candidate molecules. I suspect this is on purpose, so we might want to check it with Theo and other users.

This was actually in response to feedback from our team, it has just been on my todo list for a long time. IIRC it was Don (Måns' predecessor) who complained that it was too easy to accidentally click them when selecting rows, and when I proposed moving them to a consistent position he said that would help. Someone complained more recently in GM about the popovers appearing too often, and I think reducing the size of the triggers by excluding the invisible filter buttons should help with that.

I support the idea of consistency in the annotation table, but the change does mean that in many cases the value cannot be filtered while checking the candidate molecules. I suspect this is on purpose, so we might want to check it with Theo and other users.

This was actually in response to feedback from our team, it has just been on my todo list for a long time. IIRC it was Don (Måns' predecessor) who complained that it was too easy to accidentally click them when selecting rows, and when I proposed moving them to a consistent position he said that would help. Someone complained more recently in GM about the popovers appearing too often, and I think reducing the size of the triggers by excluding the invisible filter buttons should help with that.


How to model indirect relationship that depends on an attribute?

Is your feature request related to a problem? Please describe.
I can't figure out how to model indirect relationships that depend on an attribute?
This might be related to #375
Let's use the Google Drive example: you have users, folders and documents.
By default, when you have access to a folder, you have access to all the folders inside it.
I want to have a setting at folder level to enable visibility of subfolders, i.e.
Folder A is inside folder B and folder B has "subfolder visibility" set to true.
User X has access to Folder B. Thus, user X has access to folder A.
Folder B "subfolder visibility" set to false.
User X has access to folder B contents but it has no access to folder A contents.
Describe the solution you'd like
I would like to be able to use such kind of flag to limit recursion.
Describe alternatives you've considered
Use different entities depending on whether inheritance is enabled or not.
But it sounds like a terrible idea...

Hey @juanjoDiaz , I wrote a comment on issue #375, in which I explained what I think your comment meant.
If you could clarify a bit more about what you meant by 'flag to limit recursion,' we would be happy to help.

Hi @tolgaOzen ,
Your comment clarifies how  to work around the shortcomings on recursive entities.

Additionally, the original message mentions that Attribute-Based Access Control (ABAC) is currently under development and will be launched soon.

Hi @tolgaOzen,
Thanks for the quick response!
I don't get action inherit_admin = parent_account.admin.
It seems that the account can inherit if the parent account has an admin which is not the intended behaviour.
The idea is that every account should have a boolean setting to inherit or not.
I guess that it's not possible to model something like that without ABAC.
Do you have any tentative ETA for ABAC to be available?

Hi @juanjoDiaz , the feature you mentioned does require the ABAC (Attribute-Based Access Control) feature. We plan to release it in version 0.4.0. We are currently conducting tests, and it seems like it will take around 3 weeks to complete.

Awesome!
I think that I can wait for that 🙂

Hi @juanjoDiaz @tolgaOzen I'm closing this issue. Here is the related ABAC documentation: https://docs.permify.co/docs/use-cases/abac/


Secrets not found with appsettings.json with ConnectionStrings

Hi Joost
Sorry for contacting you like this but I have been struggling to get this to work for some time now. I tried connecting via LinkedIn but was unable.
I've tried every possible combination of settings but cannot get this to work.
I have resorted to running them all in one yaml file but the only failures I get are in a readme file that doesn't even belong to the solution.
If you could advise me, I'd really appreciate it.
Regards,
William
<EMAIL_ADDRESS>trigger:

dev

jobs:

job: buildandtest
pool:
vmImage: ubuntu-latest
variables:
buildConfiguration: 'release'
steps:

checkout: self
fetchDepth: 0

task: DotNetCoreCLI@2
displayName: 'Restore NuGet packages - dotnet restore'
inputs:
command: 'restore'
projects: '**/*.csproj'

task: DotNetCoreCLI@2
displayName: Build the project - dotnet build
inputs:
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration) --no-restore'

script: |
sudo apt update
sudo apt install -y wget
wget -qO gitleaks.tar.gz https://github.com/gitleaks/gitleaks/releases/download/v8.17.0/gitleaks_8.17.0_linux_x64.tar.gz
tar -xvf gitleaks.tar.gz
sudo mv gitleaks /usr/local/bin/
rm gitleaks.tar.gz
gitleaks detect --source=. --exit-code 126 --verbose --redact --report-format junit --report-path=$(Common.TestResultsDirectory)/gitleaks
displayName: 'Detect Secrets - Gitleaks'
continueOnError: true

task: Gitleaks@2
displayName: Run GitLeaks scan - nogit
inputs:
scanlocation: '$(Build.SourcesDirectory)'
configtype: 'predefined'
predefinedconfigfile: 'GitleaksUdmCombo.toml'
reportformat: 'json'
scanmode: 'nogit'
verbose: true
taskfail: false
version: latest

task: Gitleaks@2
displayName: Run GitLeaks scan - all
inputs:
scanlocation: '$(Build.SourcesDirectory)'
configtype: 'predefined'
predefinedconfigfile: 'GitleaksUdmCombo.toml'
reportformat: 'json'
scanmode: 'all'
verbose: true
taskfail: false
version: latest

task: Gitleaks@2
displayName: Run GitLeaks scan - changes
inputs:
scanlocation: '$(Build.SourcesDirectory)'
configtype: 'predefined'
predefinedconfigfile: 'GitleaksUdmCombo.toml'
reportformat: 'json'
scanmode: 'changes'
verbose: true
taskfail: false
version: latest

task: Gitleaks@2
displayName: Run GitLeaks scan - smart
inputs:
scanlocation: '$(Build.SourcesDirectory)'
configtype: 'predefined'
predefinedconfigfile: 'GitleaksUdmCombo.toml'
reportformat: 'json'
scanmode: 'smart'
verbose: true
taskfail: false
version: latest

Hi @Wildav007
Can you explain what the problem is?

Hi, yes, thank you so much for replying.
Essentially, it's not reporting any sensitive info in the repo but I have added things like the following to an appsettings.json file:
"ConnectionStrings": {
  "DbConnString": "secret=password&password=secret"
}

When I run it it just says no leaks found

Hi @Wildav007,
You did nothing wrong.
This (my code) is only a wrapper around gitleaks for Azure DevOps. So your issue actually belongs to https://github.com/gitleaks/gitleaks
However, I have looked at your example. There are two things:

Gitleaks is not that good in detecting secrets in json files. Because of that, your secrets remain undetected by the generic-api-rule. It should be detected by that because it contains the words password or secret.

Because your appsettings.json is not really the default way, the credscan rules also fail to detect the secrets.

You can file the issue at https://github.com/gitleaks/gitleaks, just mention your appsettings.json and that you expect that secrets should be detected.
Sorry, nothing I can do for you at the moment.

Thank you Joost, I appreciate you taking the time.


Kubernetes-GoogleBootstrapSTR

/triage needs-information

/close not-planned
@LaloQuera710 You are welcome to reopen this and add details.


nixos/nfs: allow setting the path to krb5.keytab

Motivation for this change
Currently the rpc-gssd.service has a ConditionPathExists clause that can
never be met, because it's looking for stateful data inside /nix/store.
auth-rpcgss-module.service also only starts if this file exists.
Fixes NixOS/nixpkgs#29509.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)

Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"

[x] Tested execution of all binary files (usually in ./result/bin/)

[x] Fits CONTRIBUTING.md.

Added an argument keytabPath to the nfs-utils expression, which defaults to /etc/krb5.keytab (the path that nfs-utils uses by default)

Added a keytabPath configuration option at services.nfs.keytabPath which is passed to the nfs-utils expression.

At first I tried setting systemd.services.rpc-gssd.unitConfig.ConditionPathExists = /etc/krb5.keytab;, but it didn't work.
I'm not sure this is the best way to do it but it seems to work for me.

Now that I've had a chance to use this a bit, I realise that the actual keytab path that rpc-gssd will use is configurable using /etc/nfs.conf: http://git.linux-nfs.org/?p=steved%2Fnfs-utils.git&a=search&h=HEAD&st=grep&s=krb5.keytab
So even if this PR is applied, changing the location of the keytabPath from the default (/etc/krb5.keytab) won't work without creating an /etc/nfs.conf like this:
[gssd]
keytab-file=/actual/path/to/krb5.keytab

I will try to do this in a future PR though, I'd like this one to address the fact that it doesn't start at all!


Unsigned numbers seem to be getting mapped to Signed counterparts

Environment
Delta-rs version:
0.17 (and 0.16.5)
Binding:
Environment:

Cloud provider:

OS: Linux

Other:

Bug
What happened:
I have a macro that generates an arrow schema for a struct the meat of it is:
let result = match ty_str {
        ...,
        "u8" => parse_str::<Type>("::deltalake::arrow::datatypes::DataType::UInt8"),
        "u16" => parse_str::<Type>("::deltalake::arrow::datatypes::DataType::UInt16"),
        "u32" => parse_str::<Type>("::deltalake::arrow::datatypes::DataType::UInt32"),
    };

this was working fine when I was making parquet files, but now that I have deltalake-rs, the fields seem to be getting coerced into Int8s.
This seems to be working fine for the first batch, but failing on successive batches, it seems like maybe if all the uints will fit in int space it will work.
one example error is:
Failed to convert into Arrow schema: Json error: whilst decoding field 'minValues': whilst decoding field 'output_enable': failed to parse 170 as Int8
where output_enable is a u8 field on our side, the relevant section of the first schemaString is: {\"name\":\"output_enable\",\"type\":\"byte\",\"nullable\":false,\"metadata\":{}}.
What you expected to happen:
How to reproduce it:
More details:

Unsigned integers are not valid primitive types in deltalake, in the python binding we try to cast to integer

going down the rabbit hole: I found that there apparently is some schema conversion that happens in python and I gess not rust https://github.com/delta-io/delta-rs/blob/1dba7e5a2d39b42a58abd83f0805524c59ceda1c/python/deltalake/schema.py#L19
Apparently every column in deltalake has to be signed because java :'( https://github.com/delta-io/delta/blob/master/PROTOCOL.md#primitive-types

So I guess to use this library from rust requires your arrow schema be delta-compatible :'(

It also seems likely that the number 170 pyarrow u8 recordbatch would cause errors in python.

It also seems likely that the number 170 pyarrow u8 recordbatch would cause errors in python.

It will, the cast from uint to int is tried if it doesn't fit, you simply need to explicitly cast


Loosen restrictions on unrecognized compilers

Description
A core tenet of CMake is the idea that you can use any valid C++ compiler. By enumerating all supported compilers and emitting and hard error when an unrecognized compiler is detected, we are violating that tenet.
Relaxing this message from a fatal error to merely a warning continues to communicate to users that their build may not succeed but it leaves the door open for the build to potential succeed if the compiler meets all of our requirements.

Alternatively we can entirely remove that else() block since most CMake projects I've seen simply don't do this kind of compiler detection logic in the first place. It's not necessarily warning-worthy to use an unrecognized compiler. There are other popular compilers than MSVC, GCC, and Clang (and their variants).

@VictorEijkhout Would you please test this PR and let us know to what extent it fixes your issues with Intel compilers?

-- The C compiler identification is IntelLLVM 2023.1.0
-- The CXX compiler identification is IntelLLVM 2023.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/compiler/2023.1.0/linux/bin/icx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/2023.1.0/linux/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at cmake/Config.cmake:134 (message):
  Unrecognized compiler: IntelLLVM.  Use at your own risk.

and then
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- UDev not found.

but that's my problem, not yours, I'm guessing.

https://github.com/ChrisThrasher/SFML/actions/runs/5349006137/jobs/9699625624
I was able to add an Intel oneAPI CI job to 2.6.0 and it passes so I'm hopeful you should be able to make this work as soon this PR gets merged. There could still be lingering issues since I'm not sure if this compiler is binary compatible with the Ubuntu packages we're linking against that assume the GCC ABI. That much will require further testing.


bevy_reflect: ReflectFromPtr to create &dyn Reflect from a *const ()

Objective
https://github.com/bevyengine/bevy/pull/4447 adds functions that can fetch resources/components as *const () ptr by providing the ComponentId. This alone is not enough for them to be usable safely with reflection, because there is no general way to go from the raw pointer to a &dyn Reflect which is the pointer + a pointer to the VTable of the Reflect impl.
By adding a ReflectFromPtr type that is included in the type type registration when deriving Reflect, safe functions can be implemented in scripting languages that don't assume a type layout and can access the component data via reflection:
#[derive(Reflect)]
struct StringResource {
    value: String
}

local res_id = world:resource_id_by_name("example::StringResource")
local res = world:resource(res_id)

print(res.value)

Solution

add a ReflectFromPtr type with a FromType<T: Reflect> implementation and the following methods:

     pub unsafe fn as_reflect_ptr<'a>(&self, val: Ptr<'a>) -> &'a dyn Reflect
     pub unsafe fn as_reflect_ptr_mut<'a>(&self, val: PtrMut<'a>) -> &'a mud dyn Reflect

Safety requirements of the methods are that you need to check that the ReflectFromPtr was constructed for the correct type.

add that type to the TypeRegistration in the GetTypeRegistration impl generated by #[derive(Reflect)].
This is different to other reflected traits because it doesn't need #[reflect(ReflectReflectFromPtr)] which IMO should be there by default.

I changed the unsafe functions to return a *const dyn Reflect instead of a &dyn Reflect with an arbitrary caller-chosen lifetime. This is safer because now the caller must explicitly dereference the pointer and think about the lifetime it is valid for instead of rust automatically choosing a lifetime which is big enough for its uses.
-/// Safety: correct type and correct chosen lifetime
-pub unsafe fn to_reflect_ptr<'a>(&self, val: *const ()) -> &'a dyn Reflect
+/// Safety: correct type
+pub unsafe fn to_reflect_ptr(&self, val: *const ()) -> *const dyn Reflect

I noticed a problem in this PR where a malicious user could
impl GetTypeRegisteration for T {
  fn get_type_registration() {
    let mut reg = TypeRegistration::of::<T>();
    reg.insert::<<ReflectFromPtr as FromType<DefinitelyNotT>>::from_type());
    reg
  }
}

Which would make it impossible to use to_reflect_ptr soundly because as a user you cannot rely that the type you fetched it for is the correct one, and the type check in to_reflect is wrong.
This can only be fixed by tweaking the type registration process so that the TypeRegistry maintains the invariant that and TypeData inserted will be 100% for the correct type.

blocked on https://github.com/bevyengine/bevy/pull/4567

Ping @jakobhellermann this branch likely has merge conflicts from #4712. To resolve, simply move your line of code in bevy_reflect_derive to the new registration.rs file.

I changed the unsafe functions to return a *const dyn Reflect instead of a &dyn Reflect with an arbitrary caller-chosen lifetime

@jakobhellermann can you update the PR description to reflect this?

as_reflect and as_reflect_mut seem wholly unnecessary, given &'a T where T: Reflect can be coerced to &'a dyn Reflect without any additional help.

Pulling this comment by @TheRawMeatball up a level; we should block on that feedback being resolved in some form or another.

Hm, you could just replace the body of those functions with their input couldn't you... why are they there?

bors r+

bors retry


DCAT-US writer: optional fields

Issue:
Add support for DCAT-US schema optional fields.
Related issues: #251, #264, #267, #268
For information on the DCAT-US schema see:

https://resources.data.gov/schemas/dcat-us/v1.1/schema/dataset.json
https://resources.data.gov/resources/dcat-us
https://github.com/adiwg/mdTranslator/blob/feature/dcat-us-writer/notes.md

Optional fields

[ ] #276
[ ] #281
[ ] #278
[x] #284
[ ] #280
[x] isPartOf (closed by #282)
[x] issued (closed by #282)
[ ] #277
[x] landingPage (closed by #282)
[ ] #279
[x] references (closed by #282)
[x] systemOfRecords (closed by #282)
[x] theme (closed by #282)

Proposed mapping of mdJSON to DCAT-US optional fields.
accrualPeriodicity
Description
The frequency with which dataset is published. See #276
conformsTo
Description
Data Standard	URI used to identify a standardized specification the dataset conforms to.
URI used to identify a standardized specification the dataset conforms to. See #281
dataQuality
Description
U.S. Government specific. Whether the dataset meets the agency’s Information Quality Guidelines (true/false). See #278
describedBy
Description
URL to the data dictionary for the dataset. Note that documentation other than a data dictionary can be referenced using Related Documents (references). See #284
describedByType
Description
The machine-readable file format (IANA Media Type also known as MIME Type) of the dataset’s Data Dictionary (describedBy). See #280
isPartOf
Description
The collection of which the dataset is a subset.
issued
Description
Date of formal issuance.
language
Description
The language of the dataset. See #277
landingPage
Description
This field is not intended for an agency’s homepage (e.g. www.agency.gov), but rather if a dataset has a human-friendly hub or landing page that users can be directed to for all resources tied to the dataset.
primaryITInvestmentUII
Description
U.S. Government specific.  For linking a dataset with an IT Unique Investment Identifier (UII). See #279
references
Description
Related documents such as technical information about a dataset, developer documentation, etc.
systemOfRecords
Description
U.S. Government specific. If the system is designated as a system of records under the Privacy Act of 1974, provide the URL to the System of Records Notice related to this dataset.
theme
Description
Main thematic category of the dataset.
Mapping
No (not required)

Field Name
DCAT Name
Condition
mdJson Source

Release Date
dcat:issued
if resourceInfo.citation.date[any].dateType = "publication" or "distributed"
resourceInfo.citation.date[earliest]

Frequency
dcat:accrualPeriodicity

[ISO codelist MD_maintenanceFrequency can be used and several codes intersect with accrualPeriod codelist they are partially corresponding. A column of ISO8601 code equivalents could be added to MD_maintenanceFrequency to provide the coding expected https://resources.data.gov/schemas/dcat-us/v1.1/iso8601_guidance/#accrualperiodicity, community valuation should be determined]

Language
dcat:language

[language codelist could be used but needs to be bound with country corresponding to the RFC 5646 format https://datatracker.ietf.org/doc/html/rfc5646, such as "en-US", community valuation should be determined

Data Quality
dcat:dataQuality

[this is a boolean to indicate whether data "conforms" to agency standards, value seems negligble]

Category
dcat:theme
where resourceInfo.keyword[any].thesaurus.title = "ISO Topic Category"
[resourceInfo.keyword.keyword[0, n] flatten]

Related Documents
dcat:references

associatedResource[all].resourceCitation.onlineResource[all].uri + additionalDocumentation[all].citation[all].onlineResource[all].uri [comma separated]

Homepage URL
dcat:landingPage
[Add code "landingPage" to CI_OnlineFunctionCode]  if resourceInfo.citation.onlineResource[any].function = "landingPage"
resourceInfo.citation.onlineResource.uri

Collection
dcat:isPartOf
for each associatedResource[0, n].initiativeType = "collection" and associatedResource.associationType = "collectiveTitle"
associatedResource.resourceCitation[0].uri

System of Records
dcat:systemOfRecords
[Add code "sorn" to DS_InitiativeTypeCode]  for each associatedResource[0, n].initiativeType = "sorn"
associatedResource.resourceCitation[0].uri

Primary IT Investment
dcat:primaryITInvestmentUII

[Links data to an IT investment identifier relative to Exhibit 53 docs, community valuation should be determined]

Data Dictionary
dcat:describedBy
if dataDictionary.dictionaryIncludedWithResource IS NOT TRUE and citation[0].onlineResource[0].uri exists
dataDictionary.citation[0].onlineResource[0].uri

Data Dictionary Type
dcat:describedByType

[For simplicity, leave blank implying html page, community decision needed whether to support other format types using mime type and in the form of "application/pdf"]

Data Standard
dcat:conformsTo

[Currently not able to identify the schema standard the data conforms to, though this has been proposed. Should this be built and there is community decision to support it, then it can be mapped]

Issued is not writing relative to test data having a "publication" date type.

accuralPeriodicity is not writing. Test data has a md_maintenanceFrequency code of

References is not writing. Test data has an associated resource that should have been written.

Theme is not writing. Test data has at least one ISO Topic Category keyword.

Described By did not write. Test data had a data dictionary "not contained within the record", and uri to external dictionary.


build: add workaround for CMake 3.15

When building with CMake <3.16, the target_link_directories would be
ignored and the test binary would fail to link on Windows.  Add a
workaround to ensure that the library path is honoured.

@swift-ci please test Linux platform


Excluding patients with DNR/DNI/Comfort Measures Only

If I wanted to exclude patients who had "do not resuscitate" or "comfort measures only" assigned, is the best way to do this using the 'carePlanEOL' table, and should I exclude all patients who are present in this table or only those who have 'activeupondischarge' as 'true'.  I'm unclear as to whether those with 'activeupondischarge' as 'false' had an EOL discussion but decided against EOL care or if they were put into EOL care and then had this revoked when they began to recover.

#65 might answer your question.

Great, thanks!

Yep and I'd also add to this that you should look at carePlanGeneral - specifically `cplgroup = 'Care Limitation'' - lots of data there:
SELECT cplgroup, cplitemvalue, count(*) FROM `physionet-data.eicu_crd.careplangeneral` group by 1,2 order by 1,2

cplgroup
cplitemvalue
row count

Care Limitation
Advance directives
118

Care Limitation
Comfort measures only
4848

Care Limitation
Do not resuscitate
35679

Care Limitation
Full therapy
177589

Care Limitation
No CPR
8627

Care Limitation
No augmentation of care
1688

Care Limitation
No blood draws
137

Care Limitation
No blood products
265

Care Limitation
No cardioversion
4315

Care Limitation
No intubation
8168

That's great thanks Alistair, exactly what I was looking for!


Change your password (email issue)

I have put the link to let user change their password, and i have try to change the email to an existing email in the database and that work. So, i have two same email in the database, and the authentification was with email. How i can disable email change with Devise to avoid duplicate email?

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.

This is an issue in my mind. If user can change their email for an existing email in the database, that make two duplicate email in the database.


Category Lag

Addon Version
v0.2.2
World of Warcraft Version
Retail
Describe the bug
Not necessarily a bug, but this isn't a feature request.
I have a category with a lot of items in it and my game freezes for a few seconds when putting new items into it  I am not sure if this is fixable, but I just wanted to report that. The freeze time was slowly increasing over time as I added more and more items to the category as one might assume would happen.
I realize that most people probably don't have categories with as many items as I do, so it might not be an important task.
 I can send it to you via discord or something else if you would like.
My personal solution, as someone who can't change the addon, would just be to start a second category for these items, but I would prefer not to.
Thank you for this fantastic addon! I look forward to using it all of TWW.
Steps to reproduce

Get enough items in the category.
Add an item.

This is known and being worked on -- for now, consider using a search category instead of manually adding items to a category. Either way, this will be fixed in the future as best as possible.

Thank you! I will try that out.


494d084f - Xbox 360 The Official Xbox Magazine (OXM) Issue 88 (August 2012)

Validation

[X] I've read the FAQ.
[X] The Xenia build used is from a Canary branch. (not UWP/MLBS/AlexVS/master/pull requests, etc)
[X] This issue isn't for help (tech support) with Xenia, or a game.
[X] I've checked if this game doesn't already have a compatibility report.

Wiki page (optional)
No response
Xbox 360 Marketplace link (optional)
No response
Xenia Canary version
https://github.com/AdrianCassar/xenia-canary/commit/dd5f593ca891632c9b0d08fece5a36a9f8b6fa8c
Issues
Intro, menu and videos including media player are working with netplay builds, but no luck with dbexperiment builds.
Playing the game demos are not possible at the moment unlike most of the kiosk discs such as "Experience discs".
Log
xenia-canary-netplay - 494d084f log level 3.zip
Screenshots

Trying to play the demos;

Labels
state-gameplay, marketplace-unreleased, kernel-xex-switching

marketplace-unreleased only applies to things that were never officially released.


Segfault on call to runtime_error in the runtime library

The runtime_error function segfaults when called by venice_file_open after trying to open a non-existent file. This can be reproduced by changing the path on line 2 of tests/14_file_io.vn to some non-existent path and then running ./v tests/14_file_io.vn. According to gdb the segfault is occurring inside some internal glibc function that implements fprintf. I'm not sure what's wrong since as far as I can tell all three arguments to fprintf are valid.

I'm wondering whether something is corrupting glibc internals, since this same issue doesn't arise when I invoke venice_file_open from the test suite (which is pure C with no Venice code running). I was wondering whether crt1.o and crti.o weren't getting linked in twice now that the main function is defined in the C runtime instead of directly in the Venice output, but that doesn't seem to be the case as removing these arguments from the linker causes an error... and anyway I don't think the linker would let me link them twice.

Appears to be a stack alignment issue caused by pushing callee-save registers onto the stack, as deleting or duplicating one of the push instructions solves the issue. Probably this is only triggered when glibc uses certain x86 operations that require stack alignment.


update SELinux enforcer

fix the SELinux module to allow the KubeArmor Systemd daemon to enforce host policies.
update the dependencies of the rpm package.

Codecov Report

Merging #799 (218e71a) into main (11a5fa4) will decrease coverage by 3.97%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #799      +/-   ##
==========================================
- Coverage   40.63%   36.66%   -3.98%
==========================================
  Files          29       29
  Lines        9423     9421       -2
==========================================
- Hits         3829     3454     -375
- Misses       5094     5499     +405
+ Partials      500      468      -32

Impacted Files
Coverage Δ

KubeArmor/enforcer/runtimeEnforcer.go
32.65% <0.00%> (-0.24%)
:arrow_down:

KubeArmor/core/crioHandler.go
0.00% <0.00%> (-63.87%)
:arrow_down:

KubeArmor/core/dockerHandler.go
0.00% <0.00%> (-53.34%)
:arrow_down:

KubeArmor/monitor/processTree.go
87.63% <0.00%> (-8.07%)
:arrow_down:

KubeArmor/core/kubeArmor.go
48.21% <0.00%> (-4.54%)
:arrow_down:

KubeArmor/common/common.go
38.61% <0.00%> (-4.07%)
:arrow_down:

KubeArmor/monitor/logUpdate.go
70.50% <0.00%> (-3.39%)
:arrow_down:

KubeArmor/core/kubeUpdate.go
48.00% <0.00%> (-1.10%)
:arrow_down:

KubeArmor/feeder/policyMatcher.go
48.74% <0.00%> (-0.84%)
:arrow_down:

... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us.


Bug on C-dummy-function branch

When actually sending an Array with buffers, and a schema, the kernel panics in Rust for the following reason. How do we define the Fields for the schema in Go?
CDataInterface("The datatype \"\"F1-i32\"\" is still not supported in Rust implementation")

I fixed this by actually following the arrow C data interface specification... (https://arrow.apache.org/docs/format/CDataInterface.html) You have to specify the format string accordingly.
Now I get new error; and it looks promising.
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `1`: PrimitiveArray data should contain a single buffer only (values buffer)', /home/vance/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-9.1.0/src/array/array_primitive.rs:501:9

I think we are close. Will look into the current error. Maybe even push to main.

Fetching my coffe :) dont finish everthing before my coffe.
This one reminds me of someone :)
https://youtu.be/43VhRKJX_sk
Skickat från min iPhone
6 okt. 2022 kl. 19:52 skrev Wilhelm Ågren @.***>:

I fixed this by actually following the arrow C data interface specification... (https://arrow.apache.org/docs/format/CDataInterface.html) You have to specify the format string accordingly.
Now I get new error; and it looks promising.
thread '' panicked at 'assertion failed: (left == right)
left: 0,
right: 1: PrimitiveArray data should contain a single buffer only (values buffer)', /home/vance/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-9.1.0/src/array/array_primitive.rs:501:9
I think we are close. Will look into the current error. Maybe even push to main.
—
Reply to this email directly, view it on GitHubhttps://github.com/Ignalina/alloy/issues/36#issuecomment-1270469612, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7DDEBESQ6UHPRAU4VMPKLWB4GVPANCNFSM6AAAAAAQ62EN4E.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

hahaha yes duracell programmer

Don't really know how to solve this. I've downloaded the arrow-rs source code for v9.1.0 and looked at the specific line that causes the kernel panic, but it doesn't name anything about assertions nor left == right. It uses std::box things but that also doesn't compare like that.
However, it might have to do with the RawPtrBox struct,
 /// * `ptr` is not aligned to a slice of type `T`. This is guaranteed if it was built from a slice of type `T`.

Maybe the offset I am sending is wrong. Will look this up.

func (exp *schemaExporter) finish(out *CArrowSchema) {
	out.dictionary = nil
	out.name = C.CString(exp.name)
	out.format = C.CString(exp.format)
	out.metadata = (*C.char)(C.CBytes(exp.metadata))
	out.flags = C.int64_t(exp.flags)
	out.n_children = C.int64_t(len(exp.children))

	if len(exp.children) > 0 {
		children := allocateArrowSchemaArr(len(exp.children))
		childPtrs := allocateArrowSchemaPtrArr(len(exp.children))

		for i, c := range exp.children {
			c.finish(&children[i])
			childPtrs[i] = &children[i]
		}

		out.children = (**CArrowSchema)(unsafe.Pointer(&childPtrs[0]))
	} else {
		out.children = nil
	}

	out.release = (*[0]byte)(C.goReleaseSchema)
}

DO THIS later

Tjena !
Ok du har troligen förklarat detta för mig :) Men "schemat" är datatypen
per column , enklast tex int32 i enklaste fallet .. Alltså inte det
schema jag försöker tråckla in som motsvarar en tabll (multipla
columner) ....
ha ha , men .. å andra sidan har den ju ett fält "struct ArrosSchema **
children) som skulle kunna vara column data typerna.
/mvh Rickard
Sidan 180 Matthews bok
"An Interesting Tidbit
Despite the name, the ArrowSchema structure is actually more similar to
the arrow::Field class in the C++ library than the arrow::Schema
class. The C++ Schema class represents a collection of fields (containing a
name, datatype, and potential metadata) and optional schema-level metadata.
By having the ArrowSchema structure more closely resemble the Field
representation, it can serve dual purposes; a full schema is represented
as the
Struct type whose children are the individual fields of the schema. This
reuse keeps the ABI smaller and requires only the two ArrowSchema and
ArrowArray structures instead of requiring another to represent fields too.
/mvh RIckard
On 2022-10-07 15:57, Wilhelm Ågren wrote:

|func (exp *schemaExporter) finish(out *CArrowSchema) { out.dictionary
= nil out.name = C.CString(exp.name) out.format =
C.CString(exp.format) out.metadata = (C.char)(C.CBytes(exp.metadata))
out.flags = C.int64_t(exp.flags) out.n_children =
C.int64_t(len(exp.children)) if len(exp.children) > 0 { children :=
allocateArrowSchemaArr(len(exp.children)) childPtrs :=
allocateArrowSchemaPtrArr(len(exp.children)) for i, c := range
exp.children { c.finish(&children[i]) childPtrs[i] = &children[i] }
out.children = (**CArrowSchema)(unsafe.Pointer(&childPtrs[0])) } else
{ out.children = nil } out.release = ([0]byte)(C.goReleaseSchema) } |
DO THIS later
—
Reply to this email directly, view it on GitHub
https://github.com/Ignalina/alloy/issues/36#issuecomment-1271632358,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH7DDEBLAVJKNMGD5KBRSNTWCAT53ANCNFSM6AAAAAAQ62EN4E.
You are receiving this because you commented.Message ID:
@.***>


Stream-process stacks

This builds on top of #3 (otherwise would conflict)
This processes the deletions in a streaming fashion instead of pre-loading everything.
This allows starting to delete before everything is loaded, resulting in processing more deletions if there's not enough time in the allocated 900 seconds to process everything.
Ideally we'd preload all the stacks names then use multiprocessing to make several requests at the same time to AWS to delete them, but that will be for another time. (https://stackoverflow.com/questions/48091874/downloading-multiple-s3-objects-in-parallel-in-python)

@Ten0 once again, thanks for your contribution!!


temporary fix for fs tab on mobile

This is just a quick fix that brings the Files tab back by disabling the reset banner on mobile (thus removing the scrollview). The real and right fix is covered by https://github.com/keybase/client/pull/16161 which makes the banners part of the list. If that one doesn't get merged before the release, we should merge this to unbrick Files on mobile.

Thanks Mike!


Add new accompanying offset utilities for offsetting safe values

The problem
Using this for a short while now, I still encounter quite a few situations where I need to fall back to using an env(safe-area-inset-…) value explicitly to include some sort of offset like this utility example:

Description of the changes
This PR adds support for new accompanying offset utilities which factor an offset into the safe values.
For example, this HTML:

would generate this CSS:
.pt-safe {
  padding-top: env(safe-area-inset-top);
}

.pb-safe-offset-4 {
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
}

View this example on Tailwind Play here: https://play.tailwindcss.com/CcauDKvCCi
Notes
In an effort to make this as easy to maintain as your existing utilities, I've built this addition as a reduce that wraps your existing utilities, so as you add/modify standard utilities, the same changes will apply to these matched counterparts automatically.
Considerations
It may be possible to omit the word "offset" altogether to make this usage more concise like pb-safe-4 but I found that a bit less clear than including "offset". In this case, I think the verboseness actually adds considerable value.

UPDATE: I've also added another sect of utilities I've called or utilities which employ the CSS max() function. These are useful for when you want a padding value not specifically added to the safe area size but in place of it when the page is flush to the edge.
This is done using max(), like this:

generates this CSS:
.pr-safe-or-4 {
  padding-right: max(env(safe-area-inset-right), 1rem);
}

I am using this in places where I always show some bottom padding, but I want to buff that padding up to at least the safe area size but not over it.
Tailwind Play demo: https://play.tailwindcss.com/04Dhhlc8tk

Thank you for the well-crafted PR and examples to go along with it! These new features will need to be documented—would you want to add that? If not, I'm happy to merge this and the documentation myself before publishing to npm.
Thanks again!

@mvllow Sure thing! Done — check my latest commit: e7c70a4

@mvllow Great! Thank you for the quick turnaround on this. Can I expect this to hit npm today? We have our next scheduled deployment tomorrow EOD, so it would be great to draft this in and get it reviewed before then.

Published version 0.3.0 :)

@mvllow Thank you! 🥳


Firebug 3.0a6 doesn't update automatically

STR from a collegue of mine:

Install Firebug 3.0a6
Force the update in about:addons of all the addons
=> the update is not done

Florent

Reproduced on my machine:

Florent

Ah... I forgot to mention that I used Firefox DevEd (37a*).
And in update.rdf:
<minVersion>38.0a2</minVersion>

@janodvarko What kind of feature is missing in order to support the current DevEd?
Florent

I set the min version to 37.0a2 so, even the deved is supported.
Update from a6 to a7 works for me now.
@fflorent can you verify?
Honza

Yep. It works.
Florent

Thanks!
Honza

$fixed firebug-3.0.0-alpha.8


User feedback

Description
We should try to organize a user interview
https://play.google.com/console/developers/4712693179220384697/app/4972942602078310258/user-feedback/review-details?reviewId=9d8f518f-0f27-432a-a910-5d04d29c4beb&corpus=PUBLIC_REVIEWS

Very similar feedback

As long as we don't make obvious when background tasks fail we may get those kinds of feedbacks: "I have entered data but  <<it didn't work>>"


0.10.0的demo 启动start报错

0.10.0的demo，启动start报错，已经npm install了

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.


Toggle column visible

First of all... this component is awesome, but we've found an issue with changing the column visibility.
Updating the columns array seems to be not noticed, and columns doesn't update.
Working example can be found here: https://codesandbox.io/s/compassionate-noyce-w78rt?file=/src/App.js
Is there a way to update columns visibility?

Hello @pgck ,
Yes and it is very straight forward, just use the dynamic version: https://react-datasheet-grid.netlify.app/docs/performance/static-vs-dynamic


Width/height ratios not obeyed in complex plots with extra space

Description
Setting share=0 in plot.subplots leads to (some) axes having non-equal width.
Steps to reproduce
Before using share=0 everything looks good, the axes in the middle row have the same width:
import numpy as np
import proplot as plot

# simple function to extract axis widths
def get_widths(axs):
    return np.array([ax.get_position().bounds[2] for ax in axs])

# plot geometry
array = [[1, 1, 1, 2, 2, 2],
         [3, 3, 4, 4, 5, 5],
         [6, 6, 7, 7, 8, 8]]

# axis in the second row is the reference
fig, axs = plot.subplots(array, hratios=(2, 2, 2.5), ref=5)

# check the widths
widths = get_widths(axs[2:5])
print(widths)
print('all widths equal:', (widths == widths[0]).all())

This gives the following figure:

and prints:
[0.29239766 0.29239766 0.29239766]
all widths equal: True

However, when I add share=0 to the plot.subplots - the middle axis in the second row shrinks more than the outer axes:
fig, axs = plot.subplots(array, hratios=(2, 2, 2.5), ref=5, share=0)

checking the widths, I have to call fig.canvas.draw() to get the actual widths, because if the code below is run is the same code cell as the previous I first get widths that are not compatible width what I see in the figure:
widths = get_widths(axs[2:5])
print(widths)
print('all widths equal:', (widths == widths[0]).all())

fig.canvas.draw()
widths = get_widths(axs[2:5])
print(widths)
print('all widths equal:', (widths == widths[0]).all())

which prints:
[0.26041667 0.26041667 0.26041667]
all widths equal: False
[0.2920774 0.2616831 0.2920774]
all widths equal: False

only the widths captured after figure redraw align with what I see in the figure.
But that is not so surprising, the actual issue are the non-equal widths of the axes in the second and third row.
Proplot version
0.6.4

PS. Thanks for the great package, makes creating complex multi-panel figures much easier!

Thanks for posting. I've run into this issue before -- extra wspace/hspace in complex plots with overlapping rows/columns seems to invalidate the width and height ratios.
For now you can fiddle with wratios to try to make the widths match but will take a deep dive into my geometry solver algorithm when I get the chance (maybe when tackling #110).

:tada:

For future reference below are your examples with axis sharing turned off and on, plus a simple example from the proplot documentation, after this fix.
The new behavior is correct. With the default of "equal" width ratios, proplot should match the portions of subplot widths that don't cross over spaces. In your example, the width of the "left" column (0.6 in x-axis units, if you compare the top-left subplot with the one below it) is equal to the width of the portion of the "middle" column excluding that space between the two upper columns (0.3 x-axis units of the top-left subplot, and 0.3 of the top-right subplot). This is easier to see in the 3-subplot proplot example -- the bottom subplot spans between 0.5 in the top-left subplot and 0.5 in the top-right subplot.
I think this is the "best" default behavior we can get -- if you want to make those 3 columns have identical width, you'll need to tweak wratios.

@mmagnuski Any good way to tweak the wratios to make them equal?

Hi @lukelbd,
sorry that I respond here so long after the issue was closed. I have trouble understanding what exactly is "the new behavior" that you are referring to, Do you mean that when calculating axis size proplot ignores parts that co-occur in x or y dimension with a "blank space" between other axes in the figure? And as a result of this it sees the axes as equal although they are not? I find this very counterintuitive as a default behavior, but I understand this is not intended, but rather an unfortunate consequence of how proplot internals work?
Hi, @Yefee
fortunatelly creating such layouts in pure matplotlib has gotten easier with mosaic plots:
import numpy as np
import matplotlib.pyplot as plt

# simple function to extract axis widths
def get_widths(axs):
    return np.array([ax.get_position().bounds[2] for ax in axs])

# plot geometry
array = [[1, 1, 1, 2, 2, 2],
         [3, 3, 4, 4, 5, 5],
         [6, 6, 7, 7, 8, 8]]

# axis in the second row is the reference
fig, axs = plt.subplot_mosaic(array, constrained_layout=True,
                              gridspec_kw={'height_ratios': (2, 2, 2.5)})

# check the widths
widths = get_widths([axs[ix] for ix in [3, 4, 5]])
print(widths)

gives equal axis widths and the following plot:


Added MAX_HEAP_SIZE_MB to avoid a calculated size being too large

When deployed on systems with large available memory, the automatic calculated heap size may be too large for the JVM.
This PR applies a limit to the calculated heap size.

@gregw Why is setting HEAP_SIZE_MB directly or adjusting the ratio not sufficient?

@meltsufin I think the image should work out of the box on all reasonable containers.   Currently I can't even build on a machine with 32GB because the tests fail because they try to start a JVM with a too large heap.
If we are setting the heap size by heuristics, then those heuristics should always result in a legal sensible heap size.  Overriding values should only be needed if you want a very specific configuration.


It is not working on android

Which OS ?
Windows
Version
10
Which versions are you using:

react-native-swiper v1.5.13
react-native v0.55

Expected behaviour
Expect to load a sliding carousel on android
Actual behaviour
displays this weird screen

How to reproduce it-
import React from "react";
import {
    Dimensions,
    View,
    StyleSheet,
    Text,
    Platform
} from "react-native";
import Swiper from "react-native-swiper";

class Splash extends React.Component {
  render() {
        return (
            <View style={styles.container}>
              <View style={{height: 200,alignItems:'flex-start'}}>
               <Swiper
                 showsButtons={false}
                 loop={false}
                 >
                <View style={styles.container}>
                  <Text>
                    Fun
                  </Text>
                </View>
                <View style={styles.container}>
                  <Text>
                    play,chat,have fun
                  </Text>
                </View>
              </Swiper>
             </View>
            </View>
        );
    }
}
export default Splash;
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Steps to reproduce
Try running on expo

i have the same problem, it's not working for android!!

Same here, is not working on Android, react-native 0.55.3

Same here, using react-native 0.54.4. Tried downgrade to swipe version 1.5.12, without success :/
In IOS emulator works fine.

Also have the same error. Looks like this is because of react-navigation. If I put the same code to the new project without react-navigation, the content is appear.

Same here using react-native v0.52.0, one weird thing is when I am using Hot Reloading and make some changes, the content will appear.

Same here with the same setup as @swingywc on Android. I've got the pagination indicators, but not the page contents.

It looks like the issue has something to do with the ViewPagerAndroid, take a look at this PR

Just solve the issue for myself, which is related to the Modal I have wrapped around it. See my comment on #435 for example code.

Looked at the PR @alangumer and it works just fine, thanks!

I've tried doing the PR by @alangumer, which basically bypasses ViewPagerAndroid and use ScrollView – the issue is, it doesn't support things like going to a specific index for Android. Did this use to work for Android before?

For me it was not working when <Swiper>'s parent had alignItems: 'center'. It worked fine when I removed that property. If it's relevant, the parent was an <ImageBackground> element with the following styles:
{
    flex: 1,
    justifyContent: 'flex-start',
    alignItems: 'center',
  }

It worked fine when I changed the parent styles to this:
{
    height: '100%',
    width: '100%',
}

But it also worked when I just commented out the alignItems rule I had originally.

@stevula you are my life savior. Thank you. ^^

@stevula removing alignItems: 'center' worked for me when the parent was a <View> element. Amazing catch.

[ android ] not work in a modal + parent view, even no alignItems.
*using react-navigation

Hey @stevula, lifesaver finding. What is your theory about the issue? Would you mind sharing it with me? Thanks in advance.

For me it was not working when <Swiper>'s parent had alignItems: 'center'. It worked fine when I removed that property. If it's relevant, the parent was an <ImageBackground> element with the following styles:
{
    flex: 1,
    justifyContent: 'flex-start',
    alignItems: 'center',
  }

It worked fine when I changed the parent styles to this:
{
    height: '100%',
    width: '100%',
}

But it also worked when I just commented out the alignItems rule I had originally.
TLDR: just remove alignItems: 'center' from the parent element.

I'm forever indebted to you. Thanks a lot

For me it was not working when <Swiper>'s parent had alignItems: 'center'. It worked fine when I removed that property. If it's relevant, the parent was an <ImageBackground> element with the following styles:
{
    flex: 1,
    justifyContent: 'flex-start',
    alignItems: 'center',
  }

It worked fine when I changed the parent styles to this:
{
    height: '100%',
    width: '100%',
}

But it also worked when I just commented out the alignItems rule I had originally.
TLDR: just remove alignItems: 'center' from the parent element.

Thank you so much : )
You are amazing