Value cannot be null. Parameter name: type with $expand clausole on REST url

Using $expand clausole on REST url return the error above: "Value cannot be null. Parameter name: type"
Here a simple code to reproduce:

var url = "https://sitename.sharepoint.com/_api/web/lists?$filter=Hidden eq false&$expand=Fields&$select=Id,Title,Fields/TypeAsString,Fields/Title,Fields/ID,Fields/Choices,Fields/InternalName,Fields/JSLink";

$http.get(url, { Accept: "application/json; odata=verbose" })
	.success(function (data) {
		console.log(data);
	})
	.error(function (error, status) {
		console.error(error);
	});

The only error I can reproduce with a simple plunk (http://plnkr.co/edit/00yhqkOtCAcKzuWFgAJJ?p=preview) is ERR_NAME_NOT_RESOLVED as it looks like the provided URL is not valid (try to open in a browser tab without Angular).
@MassimoGiambona could you please provide a reproduce scenario in a plunk (you can modify mine) that would show a problem in AngularJS?

Hi, thank you for your response, the link is deliberately wrong, replace sitename with other value of valid SharePoint site. I'm trying to create ad-hoc site for this dbg.

@MassimoGiambona I'm sorry but I don't think I've got access to any SharePoint site, so you will have to setup a debug site if you need help on this. Or you can debug $http code to see which part breaks - and this way reproduce it under unit test.


Trying to update bedrock Minecraft server in Docker on macOS and load existing volume with Minecraft world we have been working on

Hi
As noted, we have a bedrock server which needed updating. I couldn't figure out to update the existing container so made a new one. But I can't seem to load old volumes - it seems to keep creating new ones. Unfortunately, as I'm a bit of a novice - it's a bit of a mess with a bunch of containers and volumes. I've tried numerous times with ChatGPT assistance but seem to be going around in circles making new containers which generate new worlds/volumes.
Before I give up and lose the kids' world that we've been working on for a while - thought I'd ask here.
docker-compose.yml looks like this:
services:
  minecraft:
    image: itzg/minecraft-bedrock-server:latest
    container_name: happy_blackburn
    environment:
      - EULA=TRUE
    volumes:
      - mc-bedrock-data:/data
    ports:
      - "19132:19132/udp"
volumes:
  mc-bedrock-data:

But it just seems to create a new volume:

		"Mounts": [
			{
				"Type": "volume",
				"Source": "minecraft-server_mc-bedrock-data",
				"Target": "/data",
				"VolumeOptions": {}
			}

If anyone can point me in the right direction, would be grateful!

Thanks. I managed to get it working. ChatGPT > Copilot.
The command was “docker run”.
But I managed to get it working by specifying the volume and other info directly in the command line.
Yeah. The second part was insights from the docker desktop app. Was just showing how docker kept creating a new volume rather than linking to the existing one.
I have no idea why it worked putting it directly in the command but hope that helps someone else know the same boat.

To clarify, you ended up doing what was already documented:
https://github.com/itzg/docker-minecraft-bedrock-server/tree/master#quickstart
If you want a persistent volume then yes, you must declare that as a -v argument, as shown.


chore(deps): bump flutter_lints from 4.0.0 to 5.0.0

Upgrades flutter_lints package from 4.0.0 to 5.0.0

This would need to set minimum supported SDK version to Flutter 3.24/Dart 3.5.
This PR will wait until this is done


Adding useFilters breaks manualPagination

Describe the bug (required)
When using controlled pagination (manualPagination: true) in conjunction with filters, pagination does not behave as expected.
Provide an example via Codesandbox! (required)
This is the standard controlled pagination setup from the documentation with useFilters added on line 77.
https://codesandbox.io/s/throbbing-cdn-9epvw
Steps To Reproduce (required)
Steps to reproduce the behavior:

Click the "next page" button

Expected behavior (Recommended)
The table should navigate to the next page. Instead, you'll see it jump back to the first page.
Additional context
This is very possibly a configuration error. If so, how does one configure the interplay between filters (and possibly sorting) and manual pagination.

Interestingly, setting autoResetPage: false helps to prevent the issue.
According to the documentation, that shouldn't be necessary.

Feel free to PR an update to the docs if you find time.


Methods invoked by Commands should not be suffixed with 'Command'

Command execute/canexecute methods should not be suffixed with Command as that is already done by the command property/field.

The CanExecute method should be named CanXyz and Execute method should be named Xyz.
Example:

Command is named ScanCommand.
CanExecute method has to be named CanScan.
Execute method has to be named Scan.

Still open:

boolean Methods should be named CanXyz
non-boolean Methods should be named Xyz


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-25-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3405

Questions ?
Please refer to the Backport tool documentation


resolution problem

Describe the bug
I tried downloading videos from youtube only 360p are available as the highest resolution, tried filtering by resolution and progressive=False but it downloads broken videos
Code
def download():
global progress_bar
try:
yd = yt.streams.get_highest_resolution()
print(yt.title)
print(yd)
progress_bar = tqdm(total=yd.filesize, unit='0', unit_scale=True, desc="Downloading")
yd.download(path)
progress_bar.close()
print('completed')
except Exception as e:
print(e)
output
<Stream: itag="18" mime_type="video/mp4" res="360p" fps="24fps" vcodec="avc1.42001E" acodec="mp4a.40.2" progressive="True" type="video">
note
I updated the last pytubefix version + I'm on linux (if it is important)

YouTube changed streams internally, see #128.

it worked thanks


Ackermann

I noticed that Linorobot1 supported Ackermann steering.
This has just been merged into ROS2 Control: https://github.com/ros-controls/ros2_controllers/tree/master/tricycle_controller would that help with adding Ackermann to Linorobot2?

I have no plans of integrating the ackermann steering at the moment. Closing this for now


Vector: Implement __eq

Our use case is just "did this mat/vec change at all since last frame" for optimisation so I would be happy with an equals that just does a pointer check and memcmp.
For vec I think a (b-a):lengthSquared() < e is sufficient for other cases. I would not mind if there's an optional epsilon argument for convenience tho, perhaps even defaulted to larger than 0. Depends on the direction of LÖVR I think.


Removed Hardware-Timer interrupt LV-Tick because of using (millis()) …

…instead.
Because of "millis":
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis())     /*Expression evaluating to current systime in ms*/

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

Thank you.


[Enhanced enums] Strange compile error on CFE

The folllowing co19 test fails https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Enhanced-Enum/semantics_A09_t02.dart
enum E1 {
//   ^^
// [cfe] unspecified
  e1,
//^^
// [analyzer] unspecified
  e2,
  e3;

  final int e1 = 42;
//          ^^
// [cfe] unspecified
}

enum E2<T> {
//   ^^
// [cfe] unspecified
  e1<int>(42), // Fails here. Unexpected error at line 38, column 3: Constant evaluation error:
  e2<String>("42"),
//^^
// [analyzer] unspecified
  e3<bool>(false);

  const E2(T t);
  final List<E2> e2 = const [];
//               ^^
// [cfe] unspecified
}

enum E3 {
//   ^^
// [cfe] unspecified
  e1,
  e2,
  e3;

  static final int e1 = 42;
//                 ^^
// [analyzer] unspecified
}

main() {
  print(E1);
  print(E2);
  print(E3);
}

Why "Unexpected error at line 38, column 3: Constant evaluation error:" occurs. I don't see any errors on this line. To rerun the test use  python3 tools/test.py -n cfe-strong-linux co19/LanguageFeatures/Enhanced-Enum/semantics_A09_t02
cc @eernstg
Tested on Dart SDK version: 2.17.0-edge.6bcc451e597867cb7c0b4f21d9143d0a43cbb401 (be) (Tue Feb 8 01:49:35 2022 +0000) on "linux_x64"

Right, I couldn't see a reason for that error on line 38. Also I saw some 'Constant expression depends on itself' errors that I couldn't explain.

It seems to be an error triggered by the unhandled name conflict. I'm working on detecting and handling those conflicts, and it should fix this issue as well.


Cluster level catalog support

Today catalogs are supported only on Global level in Rancher 2.0. We have to implement it on a cluster level too.

Should be tested only when RBAC is resolved.


iOS: Can't drag to empty On My iPad account

It's impossible to drag a feed into 'on my iPad' if it is empty. A not allowed icon appears when you drag over the heading.

Moving this to the 5.1 release because of the extensive work there that was done for drag and drop.


dmrconfig: 2018-10-20 -> 2018-10-29

Motivation for this change
Support for more devices were added.
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Fits CONTRIBUTING.md.

Success on aarch64-linux (full log)
Attempted: dmrconfig
Partial log (click to expand)
install flags: SHELL=/nix/store/dsyc1z7ck08ga7l0b1jcxx35wj69qcii-bash-4.4-p23/bin/bash install
install -c -s dmrconfig /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29/bin/dmrconfig
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29
shrinking /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29/bin/dmrconfig
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29/bin
patching script interpreter paths in /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29
checking for references to /build in /nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29...
/nix/store/sy06nfpb5hkkyfhag98xy57g07zxdni1-dmrconfig-2018-10-29

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: dmrconfig
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: dmrconfig
Partial log (click to expand)
install flags: SHELL=/nix/store/r47p5pzx52m3n34vdgqpk5rvqgm0m24m-bash-4.4-p23/bin/bash install
install -c -s dmrconfig /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29/bin/dmrconfig
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29
shrinking /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29/bin/dmrconfig
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29/bin
patching script interpreter paths in /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29
checking for references to /build in /nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29...
/nix/store/p7b7frhd7rz2ad2khh4gnl6pc00cby36-dmrconfig-2018-10-29


Could the npm package not bundle the PhantomJS binary?

Right now it seems that a 17MB phantomjs binary is shipped with the npm module. Could it not? The whole reason I wanted to switch to this npm package is because mocha-phantomjs has a dependency on the phantomjs module, and that opens a whole can of worms re: repeated and redundant PhantomJS installs.
Can I just be responsible for installing/upgrading my own version of PhantomJS?

Right now it seems that a 17MB phantomjs binary is shipped with the npm module.

No this project has no dependencies, the whole reason it was extracted from mocha-phantomjs-core. What makes you think it is including the phantomjs binary?

It's the phantomjs binary that mostly makes me think that this package includes the phantomjs binary:
$ cat package.json
{ "devDependencies": { "mocha-phantomjs-core": "2.0.0" } }

$ npm install
/private/tmp/mocha-test
└──<EMAIL_ADDRESS>
npm WARN mocha-test No description
npm WARN mocha-test No repository field.
npm WARN mocha-test No license field.

$ ls -lh node_modules/mocha-phantomjs-core/phantomjs
-rwxr-xr-x  1 mislav  wheel    50M Feb  4 05:27 node_modules/mocha-phantomjs-core/phantomjs

$ file node_modules/mocha-phantomjs-core/phantomjs
node_modules/mocha-phantomjs-core/phantomjs: Mach-O 64-bit executable x86_64
/tmp/mocha-test

It's 17MB when gzipped:
$ tar -cz ./node_modules | wc -c
 17674240

WAT I have this explicitly in .npmignore ...

Thanks for reporting. 2.0.1 doesn't have the binary now.

Thanks for the quick update, Nathan!


The reason template extension was updated to 2017-08-01 from 2014-12-01 (PR against v0.2.2)

Pull requests into cqm-parsers require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable ("N/A") and :white_check_mark:.
Submitter:

[x] This pull request describes why these changes were made.
[x] Internal ticket for this PR: https://jira.mitre.org/browse/CYPRESS-426
[x] Internal ticket links to this PR
[x] Code diff has been done and been reviewed

Reviewer 1:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Reviewer 2:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Codecov Report

Merging #35 into v0.2.x will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           v0.2.x     #35   +/-   ##
======================================
  Coverage    83.3%   83.3%
======================================
  Files          99      99
  Lines        4750    4750
======================================
  Hits         3957    3957
  Misses        793     793

Continue to review full report at Codecov.

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


Example Screenshot from Dropbox link in docs broken

Example Screenshot from Dropbox
leads to
Non-Image content-type returned

I fixed this here: https://github.com/chartjs/chartjs-plugin-annotation/commit/67c8c596b34927ff0bc4ebe6125a954aed0eadc7


Add sherlock to match hosts to transients

🚀 Feature Request
Is your feature request related to a problem? Please describe.

*Currently blast only uses GHOST to match hosts galaxies to transients. We should include sherlock (https://github.com/thespacedoctor/sherlock) as well as a check on GHOST or to perform a match when GHOST fails.

Describe the solution you'd like

Implement Sherlock by either:

Implement Sherlock within the GHOST task runner (and make the task runner a general host matcher which has some logic about how to use the results of both GHOST and Sherlock to match a host galaxy)

Make it a separate task runner that runs Sherlock when a GHOST match fails. With this method we many need to think about how to store two different host matches for a given transient (If GHOST and sherlock disagree)

closing as I think GHOST has gotten really robust now


Update tr.js

nearly finished :)

Great work!
We are hoping to push live the night of August 29th / August 30th (for the DAO -> ETC withdrawal contract). I'm going to include any languages that have everything except the help page done and obviously we will continue to improve as time goes on. Looks like tr.js will be part of the initial launch. 😄


Used Pins Bad Reporting in Web Config (Dev/'main' branch)

Prerequisites
Please check the following before posting an issue / bug report.

[ ] I am running the latest version of the firmware found HERE
[ ] I have checked the documentation HERE and found no answer
[ ] I checked to make sure that this issue has not already been filed HERE
[ ] I am reporting the issue to the correct repository

Context
Please provide all relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Firmware Version: 'main' latest as of 07/04/2023
Name of device: Pico
Link to where you purchased the device:
Is this a custom build?:
Operating System:
Browser:

Expected Behavior
Used pins should not be reporting incorrectly on the web config
Current Behavior
Used pins in the add-ons page are reporting incorrectly
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Enable the Analog Add-on
Set Analog 1 ADC to pin 26 and pin 27 respectively
Save the Add-on page and reload
Set Any other Analog option
Observe the "pin 26" and "pin 27" options report an error with previously defined pins

Screenshots & Files
Please include any relevant screenshots or files here.  If you are having issues with a board please include images of the front and back of the board.

I think the issue is that these pins are used somewhere else but still show up as options in addons page.
This should hide non available pins: https://github.com/OpenStickCommunity/GP2040-CE/pull/392

I'm going to close this issue since we fixed this for 0.7.3 and just make a new one as needed.


Stdenv darwin

Motivation for this change
There is a fix in stdenv darwin that is not needed, so I thought I would remove it.
I had the impression from reading different comments that building stdenv on darwin was broken. I did not have any problems with it.
I realise this is a pretty small improvements.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[X] macOS
[ ] other Linux distributions

[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[ ] Fits CONTRIBUTING.md.

It would make sense to put nixpkgs-fmt change into a separate PR, to have it show up without rebuilds on eval.

https://github.com/NixOS/nixpkgs/pull/125330
let me know if that is what you had in mind

I messed up this branch, let me just open another PR


#14 - All specs video path

#14 - Allow specifying other name than protractor-specs.mov in case, when one video file is produced.
Added a new option called allSpecsVideoName which can be either a string or a function.   It is combined with the baseDirectory option to create a full path.

Hi Jean
Thanks for PR!
Some issues before this can be merged:

There are some linting issues in the new code, e.g. space in if ( typeof....
Add validation for the options "You must also define baseDirectory path" - this should be validated with JOI.
allSpecsVideoName should be changed to allSpecsVideoPath for consistency with singleVideoPath.
Please don't change the version yet. I'll update it in a separate commit.

I think that's it.

@tomyam1 Is this PR dead? Last activity was way back


Switch tests to curl

The spire-server test now tests more things. The rest of the tests are converted to curl too
for consistency.

Duplicate of #175

Fixed the DCO


Missing upper/lowercase selected keybinding

On Linux switch_to_uppercase is Shift + backtick

Fixed in https://github.com/jasonwilliams/vscode-helix/releases/tag/v0.6.1


/users/me/assets and /users/me/likedassets don't return the same JSON as /assets

In most cases - you can safely assume that all asset lister endpoints should behave the same way. If we make a change to one, then it should also apply to all others.

Should be all good. Please take a look.


Changed openqasm3 from submodule dependency to package dependency

Unfortunately, we cannot eliminate the submodule because the openpulse grammar still imports openqasm grammar.
Added requirements*.txt to import openqasm3. Adjusted github actions. No code changes.

OK. I will copy/paste grammar and get rid of submodule.

@psivaraj , I copied the OpenQASM grammar and removed the submodule. Please take another look. Thanks!


Syntax Error

Microsoft JScript compilation error

You don't need to compile it. Just run it in your console with node.js.


Support value prop and data in the blur event

A common usage pattern is to not use v-model but instead populate the field using :value. The value is then saved to store using the blur event.
My request is to:
Please add the value prop.
Please add the same data passed by the Change event to the Blur event.

First of all, in Vue v2.x, the v-model is the short-hand of :value --
// Using `v-model`
<custom-component v-model="yourVar"></custom-component>

// Equals the following
<custom-component :value="yourVar" @input="yourVar = $event"></custom-component>

Documentation: https://vuejs.org/v2/guide/components.html#Using-v-model-on-Components
So there's no need to "add the value prop".

Please add the same data passed by the Change event to the Blur event

This one is workable. I'll make it an enhancement.

First of all, in Vue v2.x, the v-model is the short-hand of :value --
// Using `v-model`
<custom-component v-model="yourVar"></custom-component>

// Equals the following
<custom-component :value="yourVar" @input="yourVar = $event"></custom-component>

Documentation: https://vuejs.org/v2/guide/components.html#Using-v-model-on-Components
So there's no need to "add the value prop".

Please add the same data passed by the Change event to the Blur event

This one is workable. I'll make it an enhancement.

Using v-model means I'm binding to a variable and that variable is being being updated by the input event. I do not want this. My intention is to use the blur event save the data elsewhere.
As I said, not using v-model is a common usage pattern and for every other component I use, the value prop is directly supported.

Using v-model means I'm binding to a variable and that variable is being being updated by the input event. I do not want this. My intention is to use the blur event save the data elsewhere.
As I said, not using v-model is a common usage pattern and for every other component I use, the value prop is directly supported.

As mentioned in my last comment, v-model is just a syntactic sugar of a combination of :value and @input. All custom components (E.g., Vue2 Timepicker) support v-model support :value naturally.
That's what I meant by saying there's no need to "add the value prop".
<!-- It works in any existing Vue2 Timepicker version-->
<vue-timepicker :value="yourVar"></vue-timepicker>

Check JSFiddle Demo here

As mentioned in my last comment, v-model is just a syntactic sugar of a combination of :value and @input. All custom components (E.g., Vue2 Timepicker) support v-model support :value naturally.
That's what I meant by saying there's no need to "add the value prop".
<!-- It works in any existing Vue2 Timepicker version-->
<vue-timepicker :value="yourVar"></vue-timepicker>

Check JSFiddle Demo here


Added doc on O3D confidence values from documentation

@tpanzarella shall this be part of dev-0.11.3 or dev-0.12.0? It is not a new feature so dev-0.11.3 seems to be more straight forward.

@graugans I will simply merge this to master. It is only docs and these docs apply to all versions of the s/w AFAIK.


Different performance of rs-align example / code

Required Info

Camera Model
SR300

Firmware Version

Operating System & Version
Ubuntu 16.04

Kernel Version (Linux Only)

Hi
Thanks for the help of previous issue
Now I have start to synchronize the depth and rgb channel
I have complied the code. Compare with the rs-align examples that build while installing, my compiled project works but the window always blink, which seems that the frame rate/updating frequency is not good? The rs-align example works much more stable
Regards
Zhao

Hi,
Are you using example.hpp and its window class for the rendering loop?
If so then please note that the while (app) { /*...*/ }  both swaps and clears the screen buffer each iteration, this is because window performs all of the OpenGL code inside its boolean casting operator:
https://github.com/IntelRealSense/librealsense/blob/a8b8567f3859f7c1cf1ff557fa03b1d22b322376/examples/example.hpp#L177-L197
This means that if you have some continue inside the loop, which continues to the next iteration before "uploading" the next image, the loop will render a blank frame and not the previous image.
If this is not the case, please share some of your code so we can try to assist.

Hi @zivsha
It sounds like the reason u posted there. I use the example.hpp

#include <librealsense2/rs.hpp>     // Include RealSense Cross Platform API
#include"example.hpp"
#include<imgui.h>
#include"imgui_impl_glfw.h"
#include
#include
#include
#include
#include
// where all the GUI code goes
void render_slider(rect location, float& clipping_dist);
// takes depth and color images, the depth scale units, and the maximum distance the user wishes to show,
// and updates the color frame so that its background (any pixel with depth distance larger than the maximum allowed)
// is removed.
void remove_background(rs2::video_frame& color, const rs2::depth_frame& depth_frame,
float depth_scale, float clipping_dist);
// find a depth sensor from the pipeline's device and retrieves its depth scale units.
float get_depth_scale(rs2::device dev);
// goes over the given streams and verify that it has a depth profile
// and tries to find another profile to which depth should be aligned.
rs2_stream find_stream_to_align(const std::vectorrs2::stream_profile& streams);
// checks if the current streaming profiles contains all the previous one
bool profile_changed(const std::vectorrs2::stream_profile& current, const std::vectorrs2::stream_profile& prev);
int main(int argc, char * argv[]) try
{
window app(1280,720,"WZ's Realsense Capture Align");
ImGui_ImplGlfw_Init(app, false);
texture renderer;
rs2::colorizer color_map;
window app(1280,720,"WZ's Realsense Capture Align");
ImGui_ImplGlfw_Init(app, false);
texture renderer;
rs2::colorizer color_map;
rs2::pipeline pipe;
// Configure and start the pipeline
rs2::pipeline_profile profile = pipe.start();

float depth_scale = get_depth_scale(profile.get_device());

rs2_stream align_to = find_stream_to_align(profile.get_streams());

rs2::align align(align_to);

// Define a variable for controlling the distance to clip
float depth_clipping_distance = 1.f;
// Create a Pipeline - this serves as a top-level API for streaming and processing frames
rs2::pipeline pipe;
// Configure and start the pipeline
rs2::pipeline_profile profile = pipe.start();

float depth_scale = get_depth_scale(profile.get_device());

rs2_stream align_to = find_stream_to_align(profile.get_streams());

// Create a rs2::align object

rs2::align align(align_to);

// Define a variable for controlling the distance to clip
float depth_clipping_distance = 1.f;

while (app) // Application still alive?
{
// Block program until frames arrive
rs2::frameset frameset = pipe.wait_for_frames();
    if (profile_changed(pipe.get_active_profile().get_streams(), profile.get_streams()))
    {
        profile = pipe.get_active_profile();
        align_to = find_stream_to_align(profile.get_streams());
        align = rs2::align(align_to);
        depth_scale = get_depth_scale(profile.get_device());

    }

    //Get processed aligned frame
    auto proccessed = align.proccess(frameset);

    // Trying to get both color and aligned depth frames
    rs2::video_frame other_frame = proccessed.first_or_default(align_to);
    rs2::depth_frame aligned_depth_frame = proccessed.get_depth_frame();

    //If one of them is unavailable, continue iteration
    if (!aligned_depth_frame || !other_frame)
    {
        continue;
    }

    // Passing both frames to remove_background
    remove_background(other_frame, aligned_depth_frame, depth_scale, depth_clipping_distance);

    // Taking dimensions of the window for rendering purposes
    float w = static_cast<float>(app.width());
    float h = static_cast<float>(app.height());

    // At this point, "other_frame" is an altered frame, stripped form its background
    // Calculating the position to place the frame in the window
    rect altered_other_frame_rect{ 0, 0, w, h };
    altered_other_frame_rect = altered_other_frame_rect.adjust_ratio({ static_cast<float>(other_frame.get_width()),static_cast<float>(other_frame.get_height()) });

    // Render aligned image
    renderer.render(other_frame, altered_other_frame_rect);

    // The example also renders the depth frame, as a picture-in-picture
    // Calculating the position to place the depth frame in the window
    rect pip_stream{ 0, 0, w / 5, h / 5 };
    pip_stream = pip_stream.adjust_ratio({ static_cast<float>(aligned_depth_frame.get_width()),static_cast<float>(aligned_depth_frame.get_height()) });
    pip_stream.x = altered_other_frame_rect.x + altered_other_frame_rect.w - pip_stream.w -
// Define a variable for controlling the distance to clip
float depth_clipping_distance = 1.f;

while (app) // Application still alive?
{
// Block program until frames arrive
rs2::frameset frameset = pipe.wait_for_frames();
    if (profile_changed(pipe.get_active_profile().get_streams(), profile.get_streams()))
    {
        //If the profile was changed, update the align object, and also get the new device's depth scale
        profile = pipe.get_active_profile();
        align_to = find_stream_to_align(profile.get_streams());
        align = rs2::align(align_to);
        depth_scale = get_depth_scale(profile.get_device());

    }

    //Get processed aligned frame
    auto proccessed = align.proccess(frameset);

    // Trying to get both color and aligned depth frames
    rs2::video_frame other_frame = proccessed.first_or_default(align_to);
    rs2::depth_frame aligned_depth_frame = proccessed.get_depth_frame();

    //If one of them is unavailable, continue iteration
    if (!aligned_depth_frame || !other_frame)
    {
        continue;
    }

    // Passing both frames to remove_background so it will "strip" the background
    // NOTE: in this example, we alter the buffer of the other frame, instead of copying it and altering the copy
    //       This behavior is not recommended in real application since the other frame could be used elsewhere
    remove_background(other_frame, aligned_depth_frame, depth_scale, depth_clipping_distance);

    // Taking dimensions of the window for rendering purposes
    float w = static_cast<float>(app.width());
    float h = static_cast<float>(app.height());

    // At this point, "other_frame" is an altered frame, stripped form its background
    // Calculating the position to place the frame in the window
    rect altered_other_frame_rect{ 0, 0, w, h };
    altered_other_frame_rect = altered_other_frame_rect.adjust_ratio({ static_cast<float>(other_frame.get_width()),static_cast<float>(other_frame.get_height()) });

    // Render aligned image
    renderer.render(other_frame, altered_other_frame_rect);

    // The example also renders the depth frame, as a picture-in-picture
    // Calculating the position to place the depth frame in the window
    rect pip_stream{ 0, 0, w / 5, h / 5 };
    pip_stream = pip_stream.adjust_ratio({ static_cast<float>(aligned_depth_frame.get_width()),static_cast<float>(aligned_depth_frame.get_height()) });
    pip_stream.x = altered_other_frame_rect.x + altered_other_frame_rect.w - pip_stream.w - (std::max(w, h) / 25);
    pip_stream.y = altered_other_frame_rect.y + altered_other_frame_rect.h - pip_stream.h - (std::max(w, h) / // creat an OpenGL window for rendering
window app(1280,720,"WZ's Realsense Capture Align");

// ImGui library intializition
ImGui_ImplGlfw_Init(app, false);

// Declare two textures on the GPU, one for color and one for depth
texture renderer;

// Declare depth colorizer for pretty visualization of depth data
rs2::colorizer color_map;

// Create a Pipeline - this serves as a top-level API for streaming and processing frames
rs2::pipeline pipe;

// Configure and start the pipeline
rs2::pipeline_profile profile = pipe.start();

// Each depth camera might have different units for depth pixels, so we get it here
// Using the pipeline's profile, we can retrieve the device that the pipeline uses
float depth_scale = get_depth_scale(profile.get_device());

//Pipeline could choose a device that does not have a color stream
//If there is no color stream, choose to align depth to another stream
rs2_stream align_to = find_stream_to_align(profile.get_streams());

// Create a rs2::align object
// rs2::align allows us to perform alignment of depth frames to others frames
 // rs2::align allows us to perform alignment of depth frames to others frames
rs2::align align(align_to); // The "align_to" is the stream type to which we plan to align depth frames.

// Define a variable for controlling the distance to clip
float depth_clipping_distance = 1.f;25);

    // Render depth (as picture in pipcture)
    renderer.upload(color_map(aligned_depth_frame));
    renderer.show(pip_stream);

    // Using ImGui library to provide a slide controller to select the depth clipping distance
    ImGui_ImplGlfw_NewFrame(1);
    render_slider({ 5.f, 0, w, h }, depth_clipping_distance);
    ImGui::Render();

}

@wwangzhao can you please narrow the code snippet to only the differences between your code and the rs-align example?
Generally you can do one of the following:

Not use while (app) and instead use while (some_condifion) only flush the buffer when you need.
Make sure you continue to next iteration only after rendering the next image
Always save the last rendered images and if you don't get new frames, render the previous ones.
Any other way that makes sure the flow does not render an empty buffer.

Please note that the example code is a just a reference and quick starting point.
For more complex programs (which I'm not sure yet that your code is such), I would suggest that you do not rely on example.hpp.

Hi @zivsha
Thanks a lot for your help. There is no difference between my code and the rs-align example code provided in
https://github.com/IntelRealSense/librealsense/tree/master/examples/align
If possible would u please provide an example of 1. ?
Regards
zhao


No two-factor on Lloyds Bank

The docs link on enhanced authentication is only for adding new payees on an account - there are currently no 2FA options when actually logging in.
I guess that is still a form of 2FA, but it seems a bit misleading in the list?

:+1: agreed!

I agree with you as well @OllieTerrance. Could you make a PR removing the doc link or replacing it if you find a better page to link to?

Only one problem, we have many sites (Wells Fargo, NatWest, and other sites) that work this way too (only use 2FA to protect certain things).
What should we do about those?

Could add a column for partial / select areas. Or whole site versus
portions thereof...etc
On Mar 27, 2015 11:30 PM, "Jacob"<EMAIL_ADDRESS>wrote:

Only one problem, we have many sites (Wells Fargo, NatWest, and other
sites) that work this way too (only use 2FA to protect certain things).
What should we do about those?
—
Reply to this email directly or view it on GitHub
https://github.com/jdavis/twofactorauth/issues/948#issuecomment-87154009
.

I know we have at least one site listed (Domains/Dynadot) that uses an exception flag to point out that it only protects certain actions with TFA. If people would like to update sites to add exceptions, PRs are welcome.
Closing for house keeping.

@RichJeanes But then we also have sites that are tagged as no because they support 2fa only for some functions.. In our own https://github.com/jdavis/twofactorauth/blob/master/CONTRIBUTING.md#a-note-on-definitions very last section covers this.

How about we tag them as no, but add an exception?


Does whisper provide any help to do timbre transfer for voice?

Also this maybe of interest
https://twitter.com/johndpope/status/1573137950518685697?s=46&t=4acH8po_PyT2NjVS_XI2uQ

Found this - https://github.com/archinetai/audio-diffusion-pytorch

Hi @johndpope, thanks for sharing! It's definitely worth taking a look into newer approaches, as my repo is a few years old already.


Suggestion: Let Ctrl+j/k to navigate up and down in Multiline Question

What
When prompted with e.g. a MultilineQuestion, I would love it if Ctrl+j/Ctrl+k mapped to ArrowUp and ArrowDown respectively.
Why
This would accommodate for users who prefer vim(-like) keybindings. As far as I can tell, this would'nt interfere with normal usage of the library.
One example of another projects using this keybinding is junegunn/fzf.
I realize this may be slightly niched, and fully understand if this just falls under the category feature-creep. It may also be better solved on the users' side, e.g. by having the terminal emulator do the mapping. Thoughts?

hey @wanecek currently the user can enter/exit vim mode by pressing the escape key. Does that work for you? I'm not sure having two separate keyboard-based navigation schemes is worth the extra complexity

Huh. I had no idea, thank you very much for clarifying. That should accommodate my use-case, thank you. Now that you mentioned it, I even found it written out in the README :facepalm:.
Thanks for taking your time to reply, I'll close this issue.

Awesome! Glad to hear that works. Let me know if you run into any more issues!

hey @wanecek currently the user can enter/exit vim mode by pressing the escape key. Does that work for you? I'm not sure having two separate keyboard-based navigation schemes is worth the extra complexity

That's awesome but is there any way so that I can map any other key to work as esc
e.g quickly pressing jk as esc as it matches the vim config and doesn't break my flow?


License/terms of use?

I've done some statistical analysis of a subset of this data and think it makes a really interesting illustration of item response theory.  I'd like to write this up on my blog (austinrochford.com) and didn't see a license in the repo, so wanted to get your thoughts before committing to a writeup.  Of course I would cite you, this repo, and the pudding.cool publications derived from this data set.
Thanks so much for taking the time to compile this data set; it's amazing!

Just added a MIT license, thanks!
Go ahead and do whatever you want, the data is public. It updates pretty much daily fyi. Send me a link when you're done!

I figured you wouldn't mind since you had posted to GitHub, but really appreciate all the work you did to make this data conveniently accessible, so wanted to double check.
Will certainly send you a link when done in the next few weeks.


MINOR: Added a couple of unit tests for KStreamPrint node when values are bytes

With current tests, the deserialization inside the KStreamPrint node processor which happens when key and/or values are byte[] isn't tested. This PR fixes that.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6500/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6485/
Test FAILed (JDK 8 and Scala 2.12).

Maybe @mjsax @dguy @bbejeck can take a look at this ? Thanks !

@ppatierno true, but going forward we are trying to use final on all method parameters where possble.

@ppatierno just some minor comments, but otherwise LGTM.

@bbejeck good to know about the usage of final :-)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6505/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6490/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6514/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6500/
Test PASSed (JDK 8 and Scala 2.12).

@dguy I have also removed the duplicated unit test as suggested in the dev list :-)

@dguy taking a look at your proposal about changing the way doing the tests I see this problem. When I want to try the byte[] for values, what we want to test is that the processor node accept k,v as int,String but then the real Kafka message has byte[] instead of String as value.
The driver.process allows to do that because the value parameter is an Object while the printProcessor.process has a String as value parameter (of course I don't want to change the printProcessor from Processor<Integer, String> to Processor<Integer, byte[]> because we lose the sense of our tests).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6517/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6503/
Test PASSed (JDK 8 and Scala 2.12).

@ppatierno thanks for the update. Sure you can make this work as i suggested. You just need to initialize kStreamPrint as KStreamPrint kstreamPrint = new KStreamPrint<>(new PrintForeachAction<>(printWriter, mapper, "test-stream"), intSerd, stringSerd); , i.e., you just remove the type arguments from the declaration.

@dguy damn ! you are right and even the Processor needs to be declared in the same way as Processor printProcessor without type arguments. Just updated the PR.

@dguy I even refactored the core part of the tests in a single reusable method.

@dguy it should be ready now ! Thanks to you for the time spent to review this !

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6552/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6538/
Test FAILed (JDK 8 and Scala 2.12).

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6556/
Test PASSed (JDK 7 and Scala 2.11).

Merged to trunk


Contributing in non-programming way?

Hello there,
Currently I am running your bot on one of my servers (Version 3.x) and noticed its stunning performance and trading. As of I started initially with a small amount and its performing nicely on the GDAX Exchange. Hopefully I am able to contribute towards your project in a non programming way and support your project.
Yours Faithfully,
RDash

I second this! I'd like to throw the developer a donation if possible.

As for me the bot is running 4 hours and made 6 magnificent trades and
about 20 euro profit in assets (BTC). Which suprised me since I ran it for
a pure experiment... hence I wish to contribute in donation, testing & bug
report.
On Sun, Aug 14, 2016, 16:08 Christopher Sousa<EMAIL_ADDRESS>wrote:

I second this! I'd like to throw the developer a donation if possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/carlos8f/zenbot/issues/12#issuecomment-239675517, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHMwQ3wHRSwt118Php4-1n3tNeYJwHaJks5qfyFpgaJpZM4Jj4-6
.

My friend -- I just started running this with a starting position of $213. I will inform you of it's progress. I realized 3.0.0 is the latest version after struggling to run 2.8. Thanks for your report! I would like to contribute in anyway I can!

Great to hear from both of you!
3.x is going well, I just starting testing it on GDAX the last couple days. There are still some unfinished parts - it doesn't have an auto-learn engine yet, but manual simulations work (and you can plot the virtual trades on the graph).
Once the code settles down I will push it to master, and then have a need for docs and plugins (exchange support, etc). At that point I will accept pull requests for non-core stuff (anything in the plugins folder is fair game).
Cheers,
Carlos

by the way, I accept donations in BTC :) address on my site: s8f.org

Awesome!
Could you at least give a propper hint on how to start 2.8? Because I could
not figure that out my self propperly.
Ps:
BTC Donation incomming aswel!
On Sun, Aug 14, 2016, 21:04 Carlos Rodriguez<EMAIL_ADDRESS>wrote:

Great to hear from both of you!
3.x is going well, I just starting testing it on GDAX the last couple
days. There are still some unfinished parts - it doesn't have an auto-learn
engine yet, but manual simulations work (and you can plot the virtual
trades on the graph).
Once the code settles down I will push it to master, and then have a need
for docs and plugins (exchange support, etc). At that point I will accept
pull requests for non-core stuff (anything in the plugins folder is fair
game).
Cheers,
Carlos
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/carlos8f/zenbot/issues/12#issuecomment-239690283, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHMwQ_Nzmm1VmH1tMLRAxo6U6JCnL2L1ks5qf2asgaJpZM4Jj4-6
.

Another question:
I understand Open Source Projects are done with allot of passion and love.
And no one can espect actual gaurantee. As always I wonder and commonly ask
project owners: how far are you willing to support this project?
Yours Faithfully,
RDash
On Sun, Aug 14, 2016, 21:06 Daan Montijn<EMAIL_ADDRESS>wrote:

Awesome!
Could you at least give a propper hint on how to start 2.8? Because I
could not figure that out my self propperly.
Ps:
BTC Donation incomming aswel!
On Sun, Aug 14, 2016, 21:04 Carlos Rodriguez<EMAIL_ADDRESS>wrote:

Great to hear from both of you!
3.x is going well, I just starting testing it on GDAX the last couple
days. There are still some unfinished parts - it doesn't have an auto-learn
engine yet, but manual simulations work (and you can plot the virtual
trades on the graph).
Once the code settles down I will push it to master, and then have a need
for docs and plugins (exchange support, etc). At that point I will accept
pull requests for non-core stuff (anything in the plugins folder is fair
game).
Cheers,
Carlos
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/carlos8f/zenbot/issues/12#issuecomment-239690283,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHMwQ_Nzmm1VmH1tMLRAxo6U6JCnL2L1ks5qf2asgaJpZM4Jj4-6
.

Awesome - donation coming tomorrow. RDash21, I could never get 2.8 to execute trades or simulate/backtest. I think it could be broken due to the most recent update. Currently, zenbot is only sending buy signals.
Carlos - for the auto-learn engine, is that necessary for proper trade execution?
Thanks all.

Hello there . I managed to run the 2.8 version just fine. Most of the commands work without a issue. But I can not quite understand the Trade settings:
run [options] 4. run zenbot on the exchange. I would like to test it on the real market but  I'm not sure how to change or tape in any trading data. I will be very grateful for any instructions. Thanks

@obsidian0001 if2.8 is broken, I will probably just publish 3.x right now, lol. Can you (or @RDash21 ) provide me with any error messages or steps you couldn't get past?
The basic way to use 2.8 is:
npm install
npm link (sets up bin)
zenbot backfill (should stop at about 90 days backfilled)
(in another window, while backfill going)
zenbot record (gets new trades from exchange)
(in another window, while record going)
zenbot run (interacts with the exchange, getting data from `record`)
(in another window, once backfill finished)
zenbot sim (should stop with a json object)
(in another window, once sim finished)
zenbot learn (runs parallel sims and feeds results to `run`)

I just pushed a commit to master that should fix the 2.8 error ZENBOT_USER_AGENT not defined. But let me know if it's still broken.

@semiend use zenbot backfill and then zenbot sim to test it on the backfilled data, and zenbot learn to run parallel sims and adjust the trade params to the best sim results.

@obsidian0001

for the auto-learn engine, is that necessary for proper trade execution?

no, but if you leave the bot on for several months, the market conditions will change and probably render the bot less profitable, and the auto-learn mechanism should counter act that. It also speeds up the time it takes to find good trade params, via parallel processing.

As for me I had no idea how to properly execute the script, there were no errors at all when executing the startups at a single command. Currently writing a startup script and will verify if I run into errors please hold on. Also will be sharing the startup script for every one here for 2.8 :)

@RDash21

how far are you willing to support this project?

It's my main hobby project at the moment, but for me it's long-term important because its underlying engine (zenbrain) is my entry into artificial intelligence research. AI is a field I want to persue for the next 10 years and maybe beyond, so expect zenbrain (and zenbot) to evolve and stay relevant because of that drive.

After some dirty scripting here we go!
#!/bin/bash
cd /home/gekko/zenbot2
screen -dmS "backfill"
screen -S "backfill" -p 0 -X stuff "zenbot backfill$(printf \\r)"
screen -dmS "record"
screen -S "record" -p 0 -X stuff "zenbot record$(printf \\r)"
screen -dmS "run"
screen -S "run" -p 0 -X stuff "zenbot run$(printf \\r)"
screen -dmS "learn"
screen -S "learn" -p 0 -X stuff "zenbot learn$(printf \\r)"
screen -dmS "listen"
screen -S "lsiten" -p 0 -X stuff "zenbot listen$(printf \\r)"
exit

@carlos8f that's awesome! Hopefully we can give/grant you the support ;)

For 2.8 - I cannot get the command:
$ zenbot learn
to work. The output keeps returning
08/14/2016 07:42:12 PM UTC [ERROR] non-0 code: 1(timers.js:523:5)osa/api.js:15:12)0 AM UTC
08/14/2016 07:42:13 PM UTC [ERROR] non-0 code: 1(timers.js:523:5)osa/api.js:15:12)0 AM UTC
08/14/2016 07:42:14 PM UTC [ERROR] non-0 code: 1(timers.js:523:5)osa/api.js:15:12)0 AM UTC
Hope this helps.
Also,
$ zenbot run
does not return anything nor attempt to execute trades. Perhaps I'm doing something wrong but the npm install and npm link compiled just fine. Let me know if I can provide anything else!
Version 3.0.0 worked fine for me but seemed to only buy bitcoin, never sell (was worried because the price continues to drop!)  :)
Chris

hmm. yeah, the errors there don't point me to anything specific. I'm just going to publish 3.0 since the code has diverged so much and I don't intend on making further fixes to 2.x.

@carlos8f awesome! Mind me asking if there is a 'Roadmap' for future things comming?

Sounds good @carlos8f !
Will the published version of 3.0 contain the auto-learn engine?
All the best -
Chris

0.02 BTC Send to you @carlos8f for your awesomeness :+1:

@RDash21 thank you for the donation! I have published 3.02 and tested it, and it seems to be working. See Readme for install instructions. if you have an existing zenbrain mongo db, drop it (mongo command, then use zenbrain and db.dropDatabase()) before installing 3.0.2.
the default trade logic:

uses GDAX
BTC/USD
15m ticks
computes 14-period 15m RSI
considers > 70 overbought and < 30 oversold
trades 95% of current balance

You can tweak config.js from there to use bitfinex, or trade ETH/USD, or whatever. common config.js logic can be moved to core or plugins later. use zenbot sim to check your trade strategy.
Auto-learn support and more exchange support will come soon. Will accept PR's :) With the 3.x plugin architecture, external plugins are possible too (published as their own repo/module).

Replied to the wrong mail earlyer, here is the snippet...
Heya, just updated and currently on my mobile phone (SSH FTW!). Bot seems
to be running smoothly. Although it would be verry pleasent to have
config.js moved to sample-config.js (one for Euro and one for USD). I wilk
report back as soon as possible.
There are a few things I am really hoping for like:

BTC-ETH Trading (GDAX)
Euro/USD (Seperated configs)
Config renamed to sample-eur-config.js. (example)
config.js added to .gitignore (saves trouble!)

Next to that this is some great stuff!
Yours Faithfully,
RDash
On Sun, Aug 14, 2016, 23:21 Carlos Rodriguez<EMAIL_ADDRESS>wrote:

@RDash21 https://github.com/RDash21 thank you for the donation! I have
published 3.02 and tested it, and it seems to be working. See Readme for
install instructions. if you have an existing zenbrain mongo db, drop it (
mongo command, then use zenbrain and db.dropDatabase()) before installing
3.0.2.
the default trade logic:

uses GDAX
BTC/USD
15m ticks
computes 14-period 15m RSI
considers > 70 overbought and < 30 oversold
trades 95% of current balance

You can tweak config.js from there to use bitfinex, or trade ETH/USD, or
whatever. common config.js logic can be moved to core or plugins later.
use zenbot sim to check your trade strategy.
Auto-learn support and more exchange support will come soon. Will accept
PR's :) With the 3.x plugin architecture, external plugins are possible too
(published as their own repo/module).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/carlos8f/zenbot/issues/12#issuecomment-239698572, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHMwQ_hNjdzmoNBw4Ch7ofe1dgyTZXaYks5qf4bhgaJpZM4Jj4-6
.

@carlos8f Just a new error I discovered while running run.sh:
08/14/2016 11:43:23 PM UTC [    launcher] cmd run exited with code 1, respawning now.
module.js:338
throw err;
^
Error: Cannot find module 'templ'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/ubuntu/zenbot/node_modules/motley-templ/vendor/_codemap.js:5:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
The error keeps repeating. Compile was ok, as well as all other features.
Any thoughts?
Chris

The full error:
08/14/2016 11:43:21 PM UTC [    launcher] cmd server exited with code 1, respawning now.
/home/ubuntu/zenbot/node_modules/coinbase-exchange/node_modules/ws/lib/WebSocket.js:9
const url = require('url');
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/ubuntu/zenbot/node_modules/coinbase-exchange/node_modules/ws/index.js:9:27)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
08/14/2016 11:43:21 PM UTC [    launcher] cmd run exited with code 1, respawning now.
module.js:338
throw err;
^
Error: Cannot find module 'templ'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/home/ubuntu/zenbot/node_modules/motley-templ/vendor/_codemap.js:5:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
08/14/2016 11:43:22 PM UTC [    launcher] cmd server exited with code 1, respawning now.

hmm, the const error is probably you're running an old version of node that doesn't support ES6, I'm guessing. I recommend node 6 for zenbot. The other one templ needs to be installed by npm, try npm ls in your zenbot folder to see if the full dependency list is installed.

If npm ls returns any kind of error just do rm -Rf node_modules && npm install and that should fix it, otherwise there's some kind of package error.

@carlos8f Thanks for your quick response! I'll try that!

@carlos8f - That fixed it! Thanks!!!

Thanks for this amazing topic... we should do it another time :heavy_check_mark:


Unsatisfiable Request (only-if-cached) in offline

Cached response is not reachable when offline (OkHttp 4.9.1).
Steps:

Device is online, basic GET request.

Request.Builder builder = new Request.Builder()
        .url(url)
        .header("Accept", "application/json")
        .header("Accept-Charset", "utf-8")
        .build();

Response 200 with relevant HTTP headers:
Cache-Control: max-age=0
ETag:<PHONE_NUMBER>70774

Header Pragma or other caching headers are not present in response.

Online. Try to get cached response without validating.

Request.Builder builder = new Request.Builder()
        .url(url)
        .cacheControl(new CacheControl.Builder()
                .onlyIfCached()
                .maxStale(90, TimeUnit.DAYS)
                .build())
        .build();

Response 200 is returned. Object Response has variable cacheResponse filled, networkResponse is null. Response contains additional HTTP header Warning: 110 HttpURLConnection "Response is stale". So everything as expected so far.

Switch the device to offline and repeat request from step 2.

Response 504 Unsatisfiable Request (only-if-cached) is returned. And that's the problem. I believe there should be no difference and cached response should be available. The purpose of only-if-cached request is to avoid network connection. max-stale is used to say that an old response is still OK.

Can you run both cases with an event listener https://square.github.io/okhttp/events/ and https://square.github.io/okhttp/4.x/okhttp/okhttp3/-event-listener/
I'd love to the see the full flow of connection and cache events, including whether it's reusing a connection from online attempt in the second.
Thanks

Here are the events:
Online attemp:
callStart
cacheHit
callEnd

Offline attempt:
callStart
satisfactionFailure
callEnd

The documantation for satisfactionFailure says:

Invoked when a call fails due to cache rules. For example, we’re forbidden from using the network and the cache is insufficient

So, I don't understand why the cache is insufficient while offline, but sufficient while online. Is there a way to get the real reason somehow?

Ohhhh, I've just found the reason. The URL is a little bit different in offline mode and I overlooked it 🙈🤦♂
My bad, sorry for the noise.


Don't show "list/unlist" options for packages that failed validation

Repro:

Upload a package that will fail validation
Click on "Delete package" on Package page.

Expected:

List/unlist option not available.

Actual: it's there
@rido-min @anangaur

What do those option do since the package is not ‘actually' available?


xwm: implement _NET_CLIENT_LIST_STACKING

This property is present on all modern X11 instances. The nonpresence of
it requires applications to fall back to XQueryTree-based logic to
determine stacking logic (e.g., to determine what surface should get
Xdnd events).
These code paths are effectively untested nowadays, so this makes it
more likely for wlroots to "break" applications. For instance, the
XQueryTree fallback path has been broken in Chromium for the last 10
years.
It's easy enough to maintain this property, so let's just do it.
Fixes #2889.

It's worth noting that this needs a follow-up patch to Sway (and other compositors) to work correctly, maybe to wlroots too. In particular I don't think jumping to the top of the stack on focus is correct when taking into account mixed tiling/floating windows:

Here Chromium is focused, so the stacking order as determined by wlroots is Chromium > gedit, even though this isn't the case. So, drag & drop from Chromium to gedit fails over the region they overlap.
I think this PR still improves things in Sway's case (where things are mostly tiled, which this PR fixes), and Wayfire (where focus implies top-of-stack?)

I think this should be good for review now; I plan on addressing the remaining issues in a separate PR (since they're not introduced by this one).

This sounds like a lot of trouble on our side to accommodate for a mis-behaving client…

It's a bit annoying, but I don't think maintaining a new list is too bad. i3 does the same thing; I suspect mutter does too.
On principle, I dislike the idea of wlroots-based compositors being the "odd ones out" when it comes to supporting common EMWH properties, because we hit all the bitrotten code paths in clients (if they even exist). Fragmentation isn't good; there are better fights to fight. The bug in Chromium was there for 10 years and went unnoticed because everyone else already specifies _NET_CLIENT_LIST_STACKING.
User benefit aside, I'd argue the lifetime maintenance overhead of this patch is going to be strictly less than the contributor time spent fielding and looking into future "weird" Xwayland issues that aren't obviously caused by stacking issues (e.g., I only accidentally realized https://github.com/swaywm/sway/issues/5927 was caused by this).
The other points I mentioned to be fixed in another PR are already broken even for correct XQueryTree-based lookup, because we get the stacking order wrong.

Gentle ping :)
Another upside of supporting _NET_CLIENT_LIST_STACKING is performance; without it, an application sourcing a drag-and-drop operation needs, on every cursor frame, a round-trip through XQueryTree followed by a walk of the returned tree.

Maybe we should consider doing that too for Xwayland for consistency?

Sure, done. This exposed a bug (not removing the surface from the list before determining where to re-add it, which would corrupt the list in some cases) -- this was also fixed.


IoT sample swift  couldn't locate the awsconfiguration.json

Hello,
When I press the Connect button, debug area show this message,
how can I find the awsconfiguration.json file?
thank you.
2018-07-06 18:05:03:124 IoTSampleSwift[66776:5418689] Couldn't locate the awsconfiguration.json file. Skipping load of awsconfiguration.json.

Hi @morrislwt ,
If you are setting your IoT endpoint and region; Cognito Identity pool and region; or Cognito Userpool client id, client secret, region in code (i.e. Swift code), then the json file is not necessary. The awsconfiguration.json file is a way to configure settings like the above mentioned.

@morrislwt
Closing this issue. Please feel free to reopen if you run into issues or have further questions.


Add minimal usage example

Hi,
I'm new to Rust, could you please provide a minimal guide on how to use the script from a terminal?
I managed to install rust and build the project (I guess) but it seems I'm not able to run it.
My commands were:
cargo build
cargo run /examples/echo--parent-no-comment.html

Am I missing something?
Thanks in advance,
Giulio

Hey Giulio,
Currently, it just takes input via stdin:
cargo run < examples/echo--parent-no-comment.html

I will add an example to readme as well. Thank you

Hey Giulio,
Currently, it just takes input via stdin:
cargo run < examples/echo--parent-no-comment.html

I will add an example to readme as well.
Just a question, do you know where to find a list of post ids to query the Google cache?
I've been able to find torrent containing a partial dump of Parler pages but it is quite limited.

That's really nice thanks!
Just a question, do you know where to find a list of post ids to query the Google cache?
I've been able to find torrent containing a partial dump of Parler pages but it is quite limited.

CommonCrawl and Wayback Machine API should get you started

CommonCrawl and Wayback Machine API should get you started

Thank's again.
That's something that still I don't get though: I receive as a response always the same page, disregarding the post id I specify in the search string. What am I doing wrong?

Thank's again.
That's something that still I don't get though: I receive as a response always the same page, disregarding the post id I specify in the search string. What am I doing wrong?


Create python-app.yml

Previously, tests were performed manually.
Now, it should be running in an automated fashion

CI now working, but job name should be changed to 'build and test' instead of 'build' only


Add Green Tears of Guthix Timer Option (fixes #13023)

@abextm I think the linked issue and comments like https://github.com/runelite/runelite/pull/12862#issuecomment-766186979 are a great reason to add this toggle back. Would you kindly review?

might as well do a toggle for both, cuz some guy is gonna complain he cant have only green

might as well do a toggle for both, cuz some guy is gonna complain he cant have only green

I would rather change the color so it has a different luminance so they can tell them apart

I would rather change the color so it has a different luminance so they can tell them apart

@abextm I'm not sure that I agree. I think the color matching the stream makes sense from a default perspective, and adapting the color to cater for a single type of color differentiation issue might result in others having the same sort of issue.
From a strictly color blindness perspective, I'd argue the Colorblindness Correction option on the GPU plugin could suffice when it can be used. For users with color temperature changes, such as the blue light filtering mentioned in https://github.com/runelite/runelite/issues/13023, I think the ability to turn the green stream timers off is a more than reasonable option.

@abextm I'm not sure that I agree. I think the color matching the stream makes sense from a default perspective, and adapting the color to cater for a single type of color differentiation issue might result in others having the same sort of issue.
From a strictly color blindness perspective, I'd argue the Colorblindness Correction option on the GPU plugin could suffice when it can be used. For users with color temperature changes, such as the blue light filtering mentioned in https://github.com/runelite/runelite/issues/13023, I think the ability to turn the green stream timers off is a more than reasonable option.

To me, it seems fine having a green tears toggle.

To me, it seems fine having a green tears toggle.

On second thought, if the original issue is colorblindness, then we should probably just make a color config for each of the colors instead?

On second thought, if the original issue is colorblindness, then we should probably just make a color config for each of the colors instead?

Not opposed to the addition, though it's an increase in scope to the main ask of adding the toggle itself. Would it be reasonable to merge this as-is and circle back on color options as a future enhancement?

Not opposed to the addition, though it's an increase in scope to the main ask of adding the toggle itself. Would it be reasonable to merge this as-is and circle back on color options as a future enhancement?

I don't see a problem with just adding the color configs. You'd still need to keep the boolean switch for the green color since there is no way to unset colors which default to not-unset I think.

I don't see a problem with just adding the color configs. You'd still need to keep the boolean switch for the green color since there is no way to unset colors which default to not-unset I think.

@Adam- I wasn't sure of the time required to implement the necessary changes, which is where the push back was coming from. I found it simple enough to add. Looking forward to your feedback!

@Adam- I wasn't sure of the time required to implement the necessary changes, which is where the push back was coming from. I found it simple enough to add. Looking forward to your feedback!


Buffer adaptor acquires closure on passed pointer

Still marked as WIP because I have not added the helpers for adaptor types.

@JohanMabille @wolfv ready for review!


Improve SEO data

There are a number of improvements I'd like to make to improve the seo / metadata setup of the templates:

[x] Set titles for all pages
[x] Set descriptions for all pages
[x] Add templating so titles can be something like ${pageTitle} ${separator} ${siteTitle} eg. Resources - Net0.1
[ ] Add og:image (even better if they can be automatically generated)
[x] Research on if it would make sense to do this via a plugin or with a custom setup

Think I'll use Astro SEO as it seems to be well supported and handles everything I'd want it to do


Is it possible to use "selectRange" programmatically ?

I'd like to be able to calculate my own start and end dates, and then use selectRange if possible.
Like this:
calendarView.selectRange(startDate, endDate)
I can't seem to be able to set the value of a variable of type CalendarDay. Or am i missing something obvious re using this lib ? Many thanks.

figured it out. there is a nice CalendarDay.from(..) convenience method. nice!


Performance on CPU

Thanks for this wonderful work! I've run sample code(use pretrained model) on mac with intel i7 + 16G memory, the result is pretty well, but the performance of pipeline is really poor(over 10min on a 3968x2976 phone image).
Also every core of CPU is fully used.Compared with model's performance on both two origin repo, I guess that there should be bottleneck in the pipeline.
I wonder if you were tested it on similar system @faustomorales .

Hi @RunshengZhu -- By default, the pipeline scales the input image by a factor of two. See relevant snippets below.
https://github.com/faustomorales/keras-ocr/blob/6a1590f92867d45467ecfcf134f19b4cc50c3192/keras_ocr/pipeline.py#L14
https://github.com/faustomorales/keras-ocr/blob/6a1590f92867d45467ecfcf134f19b4cc50c3192/keras_ocr/pipeline.py#L36-L38
This means that inference is taking place on an image with four times as many pixels as what you provide. The default is because I anticipated that input images would often have very small characters and upsampling improves text detection (see metrics in the README). This may not be necessary for you, so you may wish to use keras_ocr.pipeline.Pipeline(scale=1). This should yield speed equal or very close to that of using the models on their own.
If you still note a disparity, please reply with some sample code and a sample image to help me reproduce the issue. Thanks!

@faustomorales Thanks for the reply~ The inference speed is much similar to the origin repo.

hi @faustomorales , very nice code!
I have a little question. What is the dataset that was used to create the model crnn_kurapan.h5 ? I wish modify the model


Performance tests

This adds performance tests for a basic SELECT mapping query against many Java ORMs. Also, the readme is now markdown and includes the performance results.
Included:

Hand-coded JDBC ResultSet (the benchmark)
sql2o
hibernate
JDBI
jOOQ
Apache DbUtils
MyBatis
Spring JdbcTemplate

The basic idea of each performance test is to set up a connection in the constructor, then time how long it takes to execute the run method 1000 times.

See the readme results
See the actual tests

TODO BEFORE MERGING

update the readme with results from a fast machine

We could add more down the road, like:

EBean
JdbcHelper
Yank
OrmLite
JaQu
iciql

Other interesting ORMs that we won't test against (for now):

persism - not available via maven

:+1:


NCCL tests Docker image fails to build due to missing mpi.h

After the latest update of the Dockerfile (commit 8a9e75dd956377ff75126ffe4de8a1144c2db02e):
https://github.com/aws-samples/awsome-distributed-training/blob/main/4.validation_scripts/0.nccl-tests/0.nccl-tests.Dockerfile
it fails to build with the following error:
#7 731.9 Compiling  all_reduce.cu                       > /opt/nccl-tests/build/all_reduce.o
#7 732.0 In file included from all_reduce.cu:8:0:
#7 732.0 common.h:14:10: fatal error: mpi.h: No such file or directory
#7 732.0  #include "mpi.h"
#7 732.0           ^~~~~~~
#7 732.0 compilation terminated.
#7 732.0 Makefile:92: recipe for target '/opt/nccl-tests/build/all_reduce.o' failed
#7 732.0 make[1]: Leaving directory '/opt/nccl-tests/src'
#7 732.0 make[1]: *** [/opt/nccl-tests/build/all_reduce.o] Error 1
#7 732.0 make: *** [src.build] Error 2
#7 732.0 Makefile:20: recipe for target 'src.build' failed
#7 DONE 732.2s

Went through the build on a c5.4xlarge, Amazon Linux 2 and I didn't have any issues.
Can you share environment confiruation: instance type, OS, kernel version of the host?
Step 20/23 : RUN git clone https://github.com/NVIDIA/nccl-tests.git /opt/nccl-tests     && cd /opt/nccl-tests     && git checkout ${NCCL_TESTS_VERSION}     && make -j $(nproc)     MPI=1     MPI_HOME=/opt/amazon/openmpi/     CUDA_HOME=/usr/local/cuda     NCCL_HOME=/opt/nccl/build  NVCC_GENCODE="-gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_90,code=sm_90"
 ---> Running in c4e951b5b44b
Cloning into '/opt/nccl-tests'...
Already on 'master'
Your branch is up to date with 'origin/master'.
make -C src build BUILDDIR=/opt/nccl-tests/build
make[1]: Entering directory '/opt/nccl-tests/src'
Compiling  timer.cc                            > /opt/nccl-tests/build/timer.o
Compiling /opt/nccl-tests/build/verifiable/verifiable.o
Compiling  all_reduce.cu                       > /opt/nccl-tests/build/all_reduce.o
Compiling  common.cu                           > /opt/nccl-tests/build/common.o
Compiling  all_gather.cu                       > /opt/nccl-tests/build/all_gather.o
Compiling  broadcast.cu                        > /opt/nccl-tests/build/broadcast.o
Compiling  reduce_scatter.cu                   > /opt/nccl-tests/build/reduce_scatter.o
Compiling  reduce.cu                           > /opt/nccl-tests/build/reduce.o
Compiling  alltoall.cu                         > /opt/nccl-tests/build/alltoall.o
Compiling  scatter.cu                          > /opt/nccl-tests/build/scatter.o
Compiling  gather.cu                           > /opt/nccl-tests/build/gather.o
Compiling  sendrecv.cu                         > /opt/nccl-tests/build/sendrecv.o
Compiling  hypercube.cu                        > /opt/nccl-tests/build/hypercube.o
Linking  /opt/nccl-tests/build/all_reduce.o  > /opt/nccl-tests/build/all_reduce_perf
Linking  /opt/nccl-tests/build/all_gather.o  > /opt/nccl-tests/build/all_gather_perf
Linking  /opt/nccl-tests/build/broadcast.o   > /opt/nccl-tests/build/broadcast_perf
Linking  /opt/nccl-tests/build/reduce_scatter.o > /opt/nccl-tests/build/reduce_scatter_perf
Linking  /opt/nccl-tests/build/reduce.o      > /opt/nccl-tests/build/reduce_perf
Linking  /opt/nccl-tests/build/alltoall.o    > /opt/nccl-tests/build/alltoall_perf
Linking  /opt/nccl-tests/build/scatter.o     > /opt/nccl-tests/build/scatter_perf
Linking  /opt/nccl-tests/build/gather.o      > /opt/nccl-tests/build/gather_perf
Linking  /opt/nccl-tests/build/sendrecv.o    > /opt/nccl-tests/build/sendrecv_perf
Linking  /opt/nccl-tests/build/hypercube.o   > /opt/nccl-tests/build/hypercube_perf
make[1]: Leaving directory '/opt/nccl-tests/src'
Removing intermediate container c4e951b5b44b
 ---> 07e0bb88e5e5
Step 21/23 : ENV NCCL_PROTO simple
 ---> Running in b83bb2f2155b
Removing intermediate container b83bb2f2155b
 ---> c78062b3f357
Step 22/23 : RUN rm -rf /var/lib/apt/lists/*
 ---> Running in 40a1e0301b6c
Removing intermediate container 40a1e0301b6c
 ---> 8a66514bbbbd
Step 23/23 : ENV LD_PRELOAD /opt/nccl/build/lib/libnccl.so
 ---> Running in 031a5c6c8c64
Removing intermediate container 031a5c6c8c64
 ---> 45e48200ed4e
Successfully built 45e48200ed4e

The root cause of this issue was hidden in the build prior to the nccl-tests step:
./efa_installer.sh -y -g -d --skip-kmod --skip-limit-conf --no-verify
= Starting Amazon Elastic Fabric Adapter Installation Script =
= EFA Installer Version: 1.28.0 =

Unsupported operating system.
Refer EFA documentation (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html#efa-amis) for more details on supported OSes.

The reason for this error was using a ubuntu:18.04 base image instead of 22.04. EFA installer v1.28.0 supports ubuntu:20.04 and ubuntu:22.04


2024 refactor

This is a WIP PR. I mostly opened it so that I can test the CD/CI pipeline and so that I can have a branch I can pull into the devops tooling where I want to make use of it.
I will be updating it with more details once it ready for review.
Notes about the PR:

Integrate CD/CI process for tier1 backend components
Refactor tier1 components in separate service based on fastapi
Make use of poetry for dependency management
Implement Dockerfile for fastapi based backend

To preserve both functionality, for the moment the fastapi refactor duplicates a lot of the functionality of the existing API. Eventually all that code should be removed.

Superseeded by #800 and #801


is flask compatible to python3?

As title, does Flask work with py3 ?
when it is installed, doule it be typed as : pip3 instead on pip ?

https://github.com/pallets/flask/blob/master/setup.cfg#L32
And whether to use pip or pip3 depends on your environment.

Yes, it has been for at least 5 years.
Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.


Amazon aws-sdk-php v3 compatibility

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
✔

Tests pass?
✔

I think it would be better to store your feature under amazon3 folder which stores copied and refactored files from original amazon storage and bucket classes. It will not break BC.

Relates #18
As I already said, I am unable to verify or accept any changes to Amazon support code, since I do not have access to S3 service anymore.
If you create a PR for SDK 3.0 support, you will have to wait until other people confirm it is correct, or until I will obtain access for Amazon S3 service from some source.
@phrakon, can you confirm this patch is functional?

I think it would be better to store your feature under amazon3 folder which stores copied and refactored files from original amazon storage and bucket classes. It will not break BC.

I do not think it is necessary, if changeset will be accepted, it will be released as 1.2.0 version.

@klimov-paul, don't know. I implemented owned similar extension for yandex cloud s3 (it is compatible with amazon). It looks like the pull request, but has another things - region, endpoint. So, does not confirm, did not tested.

@klimov-paul You can simulate AWS S3 locally with https://github.com/localstack/localstack
docker-compose.yml
services:
  localstack:
    image: localstack/localstack
    ports:
      - "4566:4566"
      - "8081:8080"
    environment:
      - SERVICES=s3
      - USE_SSL=false
      - DEBUG=1
      - DATA_DIR=/tmp/localstack/data

yii config
$config = [
   'components' =>
        'fileStorage' => [
            'class' => yii2tech\filestorage\amazon\Storage::class,
            'amazonS3Config' => [
                'endpoint' => 'http://localhost:4566', # if you're running yii also in a docker container make sure it's on the same network as the localstack container and use 'http://localstack:4566' here.
                'use_path_style_endpoint' => true,
            ],
            'buckets' => [
                'images' => [
                    'region' => 'eu-central-1',
                ],
            ],
        ],
   ],
];

The code in this PR does not work with the new aws/aws-sdk-php (tested with version 3.147.14). The initialization of the S3Client fails in src/amazon/Storage.php(122). It's missing a 'version' and 'region'.
I think that it therefore would be best to move the creation of the S3Client form the Storage to the Bucket class so that they can be configured and cached independently (different buckets can be in different regions).
@leandrogehlen Are you interested in updating this PR? Otherwise I'll create a new one

I'am using in production this PR

I'am using in production this PR

Which version of the SDK are you using? According to the documentation (https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html) version 'version' and 'region' are required.
Without those fields the SDK fails to create the client, by adding them the code in the PR works.

@rhertogh sdk version: "aws/aws-sdk-php": "^3.151.0"

Feel free to make the necessary changes

@leandrogehlen I've updated the SDK to v3.151.6 but the error still occurs.
What do line 77-88 say in your vendor/aws/aws-sdk-php/src/ClientResolver.php class?
mine state:
        'region' => [
            'type'     => 'value',
            'valid'    => ['string'],
            'required' => [__CLASS__, '_missing_region'],
            'doc'      => 'Region to connect to. See http://docs.aws.amazon.com/general/latest/gr/rande.html for a list of available regions.',
        ],
        'version' => [
            'type'     => 'value',
            'valid'    => ['string'],
            'required' => [__CLASS__, '_missing_version'],
            'doc'      => 'The version of the webservice to utilize (e.g., 2006-03-01).',
        ],

indicating the 'required' attribute.

Closed in favor #25


Remove sprious fmt.Printf from test

In integration-cli/docker_cli_exec_test.go in TestExecWithPrivileged there is a spurious fmt.Printf that should be removed.

sorry this  spurious fmt.Printf is caused by me, I use it for
local testing and forget to remove it when I push to github.
I just realize this today and thank god, it has been fixed.
Thank you all.

No worries, @coolljt0725 the maintainers also should have spotted this when reviewing, just blame them 😇

also we are all human :)
On Wed, Apr 15, 2015 at 10:06 AM, Sebastiaan van Stijn <
<EMAIL_ADDRESS>wrote:

No worries, @coolljt0725 https://github.com/coolljt0725 the maintainers
also should have spotted this when reviewing, just blame them [image: 😇]
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/issues/12378#issuecomment-93488135.


⚠ Bofrost.de has degraded performance

In 3cdd5f4, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2083 ms

Resolved: Bofrost.de performance has improved in 4268987 after 33 minutes.


New UI break Search oneclick Title

Steps to reproduce

Open Manga details
Click on Title

Expected behavior
Global Search
Actual behavior
NO Global Search (or opening the full title)
Crash logs
No response
Tachiyomi version
3.2.4
Android version
AOSP10
Device
Mi9
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version 1.8.2.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

Long tap webview button


Regex in expect fail in W10 and Python 3.9

Describe the bug
Regex is not working propertly when iterate lines from promt in Windows 10.
A command is sent to cmd, it is iterated, but never find EOF. Instead of this, the expect regex raises timeout.
After hour and hours spent trying to debug, i could not find the fix.
An example:
command = r"c:\mysql\bin\mysql_install_db.exe --service=comerzzia-mysql --password=admincmz --innodb_page_size=16K"
prompt = '[A-Za-z]\:.+>

child = wexpect.spawn('cmd.exe')
child.expect(prompt)

The output of this command is something like this:
c:\mysql\bin\mysql_install_db.exe --service=comerzzia-mysql --password=admincmz --innodb_page_size=16K
Default data directory is c:\mysql\data
Running bootstrap
2021-02-06 21:47:15 0 [Note] c:\mysql\bin\mysqld.exe (mysqld 10.4.12-MariaDB) starting as process 16012 ...
Removing default user
Setting root password
Creating my.ini file
Registering service 'comerzzia-mysql'
FATAL ERROR: CreateService failed (1073)
https://mariadb.com/kb/en/installation-issues-on-windows contains some help
for solving the most common problems.  If this doesn't help you, please
leave a comment in the Knowledge Base or file a bug report at
https://jira.mariadb.org

When the reader gets the last line, raises timeout, EOF is not being recogniced.
To try to fix, i've set delimiter to "prompt" value, but the regex seems to not being working well, because in the line that finds FATAL ERROR:  it ends.
Instead of prompt, i've tried setting delimiter as > and it works, but i dont think its a good solution...
TIP
I'm having the same issue with pexpect library.
Environment:

Windows 10 20H2 64b
Python 3.9.1
wexpect 4.0.0

Hi,

Can you run the example script from the README with success?

import wexpect

prompt = '[A-Z]\:.+>'

child = wexpect.spawn('cmd.exe')
child.expect(prompt)    # Wait for startup prompt

child.sendline('dir')   # List the current directory
child.expect(prompt)

print(child.before)     # Print the list
child.sendline('exit')

(I have not used this, mysql_install_db, so I don't know how should it work...) Does your program (c:\mysql\bin\mysql_install_db.exe --service=comerzzia-mysql --password=admincmz --innodb_page_size=16K) returns with the CMD's prompt (C:\Your\path>) when you run it without expect? Note, that if mysql_install_db does not finish, and returns the prompt, wexpect won't find matching for the prompt regex.
If mysql_install_db does not finishes the run you have to replace the given prompt expression with mysql_install_db's internal prompt.

Do you plan to interact with mysql_install_db? I mean, if you just want to run it and check the return value and the stdout, I suggest using python's built in subprocess.check_output. (However, if you plan to send commands to it, you should use expect) (Again, I don't know mysql_install_db)

How long does mysql_install_db run? (wexpect default timeout is 30 sec.)

The example works well. The issue is with the iterator.
It executes a MySQL clean installation. Yes, it finish and return the prompt.
Interact is needed
10 secs, aprox


fix: allow rerunning of instance even if the folder was not deleted on shutdown

Fixes part of #175


Visualising data

#4 Solved

@aka-jumba please review the pr

@aka-jumba Changed as requested. pls review


Update default sanitizer pattern to support dictionary logging redactions

As ...
Austin - Network Automation Engineer
I want ...
Update the default sanitizer pattern to support redacting the same keys when the logging is a python dictionary.
So that ...
Logging python dictionary objects in the job result will also capture the basic username/password/secrets and redact them.
I know this is done when...

Logging a python dictionary with secrets included within a job result log and seeing the default sanitizer redact the sensitive data.

Optional - Feature groups this request pertains to.

[ ] Automation
[ ] Circuits
[ ] DCIM
[ ] IPAM
[ ] Misc (including Data Sources)
[ ] Organization
[ ] Plugins (and other Extensibility)
[ ] Security (Secrets, etc)
[ ] Image Management
[ ] UI/UX
[ ] Documentation
[ ] Other (not directly a platform feature)

Database Changes
n/a
External Dependencies
n/a

Can you provide an example output that isn't being sanitized by the current pattern?

Here's an example @gsnider2195 basically the PR #4994 will help also catch the same sensitive data if you're logging a dictionary.


An exception error occurred during the report import:A string literal cannot contain NUL (0x00) characters.

hi, I'm getting the error "An exception error occurred during the report import:A string literal cannot contain NUL (0x00) characters." when downloading the TruffleHog3 scanner report. I found a defect repays for the appearance of an error, it is in the application.
Version DD v. 2.15.0 (release mode)
error.txt

Forgot to write that the error is in the field "context"
There is an idea that somehow the escaping of special characters does not work correctly

Please close this issue @mtesauro


[Improvement] devbox run should not run init_hooks if they have already run

Problem: Every time a devbox script is executed, we run the plugin and user init_hooks. This means that if a script is run inside a devbox shell, or if a script is called by another devbox script, the init_hook will run multiple times. This can cause issues if an init_hook is not designed to be run multiple times, or if the init_hook takes a long time to resolve
Proposed Solution: init_hooks should only execute once per devbox shell or shellenv.

cc @LucilleH

How about using the env to see if it's in a devbox shell? If so, do not run init_hooks again.

This is maybe a little trickier than it appears to be. Following scenarios I'm thinking about:

A user is in a devbox shell of a project, and then decides to cd into another project to run a devbox script
A user has devbox global enabled, and added devbox global shellenv to their .rc files

So in a sense this is for init hooks that are not designed to be run twice, but different init hooks should be able to run at least once (from different projects, local vs global, etc). I don't know how this can be done without some sort of init hook content hashing and set special env variable for that hash.
Thoughts?

Resolved in newer versions of Devbox


Pushstates / render content

Hello!!
Back to work after some vacations x)
First, wanted to give you feedback about the "page" injection on every page. Is great, works. I changed the ractive demo pagetwo.html to implement this option instead of doing it on app.js and worked on first try.
Back to the real topic, do you have any plans to:

Implement html pushstates?
Implement some sort of "render on id" instead of declaring all the pages on html? It'd be useful for those pages that are lazy loaded.

app.js:
app.on({page: 'home', renderon: 'maincontent'});
index.html:

If there is already a way to do this, I missed it D:
Also, if this goes "against" the project ideals, it's ok, I wont cry. Maybe.
Cheers
UPDATE:
I think second idea can be implemented in getPageEl function. Instead of returning the element with the same tag name as the page, it can return the element in where it will be rendered.

Ok, got rendering pages on one place without affecting riot pages D:
Ill do more testing and will upload to my fork. Hope to hear some critics x)

Hi @andreujuanc,
Thank you for your contributions! :)
Sorry, I was also in holidays.
Implement html pushstates?
=> Yes. But not asap! In the next major update. :)
Implement some sort of "render on id" instead of declaring all the pages on html? It'd be useful for those pages that are lazy loaded.
=> Page nodes contained in the index.html file are considered like web pages (known resources). I think that lazy loaded data must be included inside of them. What do you think?
Do you prefer if(somecondition) or if (somecondition) . Note the space after if and (
=> The space is preferable, but not all the code of Phonon has been already updated..
Problem with indentation
=> I found this problem recently and I'll fix this. :/
Concerning renderOn: it can be an optional parameter. I am not sure to understand its purpose, is it for rendering the page content in another node than the main one contained in index.html?

@Qathom Sorry for the delay! Lots of work.
And also good news. Probably we going to start a project, and if we do, we will use phonon :)
Seriously, i just did a demo for ionic, and it failed with the blank template xD
Page nodes contained in the index.html file are considered like web pages (known resources). I think that lazy loaded data must be included inside of them. What do you think?
Concerning renderOn: it can be an optional parameter. I am not sure to understand its purpose, is it for rendering the page content in another node than the main one contained in index.html?
Both of those were kinda the same thing.  one month ago or so I did this:
https://github.com/andreujuanc/Phonon-Framework/commit/a7b168a08654af2eba5e4985d30a9d776d303b8d
I know its lots of "changes" but it was because of the formatting. I messed up and not only commited the big change, but also formatting , and now its hard to see.
What i did was this:   (in pizza app)
On index.html:

On app.js
app.on({page: 'pagethree', renderOn:'maincontent'});
The thing is that in this demo pagethree is not defined in index.html, but on the other side, you can see there is a div with id=maincontent. and in the js the page is configured to render there via renderOn.
So, the idea is to prevent double declaration of pages. I did some testing and it works fine.
Need to update my branch to latest, but still seems to work fine.
Let me know what you think, maybe it goes out of the "Ideals" of what your project is about.
Cheers mate!

Hi again @andreujuanc ;)
As always, thank you for your contributions and work!
If I correctly understood, you want to offer the possibility to add div elements as pages and using for example ids instead? In fact, the idea was to use <pagename> as page nodes.
According to me, the use of renderOn is useful if we want to render a template not as the unique child for the page like so:
<mypage data-page="true">[page content is added here]</mypage>

renderOn can be useful for this case:
<mypage data-page="true">

[page content is added here]

</mypage>

Did I miss something?

More or less !
Lets say i have 20 pages, i would have to add 20 pages tags and also would need to make the reference in javascript before init() right?

That way I would have , in my personal case, 20 pages like this:
app.on({page: 'home', renderOn:'maincontent'});
app.on({page: 'pagetwo', renderOn:'maincontent'});
app.on({page: 'pagethree', renderOn:'maincontent'});
//and so on..

And just one element to render on:

Probably this wont let you have transition animations and other stuff i haven't thought about.  or would require more work to get them right. Also would make this hard to cache.
But there is one benefit from this, each page would be created only in js, and this would be completely optional for those who have projects with too many pages.
For a nice compact app, having pages as tags its nice and fast, but if you have a team and there are lots of pages, then without this it would need to double check everything.

Okay I see! Thank you for your explanation.
In this case, the renderOn feature is indeed interesting :)

Yea, more or less.
There are two things here:

Adding a renderOn should work fine, and make page lighter (less loaded stuff)
but also we can just provide a way to add the page to the body and then just leave it there without content when un-mounting the page?

I don't know which one would have better performance.
What do you think?

@andreujuanc,
I think that renderOn is more interesting than adding a page to the body tag because the unmounted state is more linked to a framework such as Riot or Vue, no? I don't see a scenario where we'd like to remove a node.


add MINT in domains.k

@dwightguth @andreistefanescu  please review.
FYI, I added [bracket] in INT module, suggested by Grigore in https://github.com/kframework/wasm-semantics/pull/2

It should be OK to use parentheses here, because they are a bracket for Int, aren't they? If they are not, then we should add them. We want to use the backticks for grouping of K code to help the parser, and not as brackets in the object languages.

Jenkins: test this please

Lgtm

Jenkins: test this please.

Hmm, it doesn't crash with segfault any longer once I dropped the bracket.


flutter pub get not working on the package

flutter pub get is returning server not available just for this particular package

@ajmal110
Hi, thank you for your feedback.
Can you provide your pubspec.yaml and the result of flutter doctor?


[Feature] Add a new type of button

Description
in components / button i like to add a new type of button .
Screenshots
https://github.com/Rakesh9100/Beautiify/assets/159682348/e79926ba-1cd8-436c-97e2-a95c1e9237dc
@Rakesh9100 please assign me this issue i want to add social icon button with hovering according to its colour in button section under components .
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

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

What will be the name of your button @ANKeshri

What will be the name of your button @ANKeshri

@Rakesh9100  ""Animated circular button""

@Rakesh9100 sir please assign this issue to me i have rechecked that this type of button has not been added .

What will be the name of your button @ANKeshri

@Rakesh9100 ""Social Hovertone button""

@Rakesh9100 assign me this issue please

Go ahead @ANKeshri