Introduce tizen_interop package

context: https://github.com/flutter-tizen/flutter-tizen/issues/129
This tizen_interop package provides Dart bindings and utility functions for using Tizen native APIs.
Example for using Interop
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:tizen_interop/4.0/wearable/tizen.dart';

String? getApplicationName() {
    String? appName;
    using((Arena arena) {
      Pointer<Pointer<Int8>> namePtr = arena();
      tizen.app_get_name(namePtr);
      appName = namePtr.value.toDartString();
      malloc.free(namePtr.value);
    });
    return appName;
}

Some warnings were generated while running build.sh.
Running in Directory: '/home/swift/Git/tizen_interop'
[WARNING]: Prefer adding Key '[description]' to your config.
Input Headers: [configs/4.0/wearable/entrypoints.h]
[SEVERE] : Header configs/4.0/wearable/entrypoints.h: Total errors/warnings: 1.
[SEVERE] :     ./rootstraps/wearable-4.0-device.core/usr/include/pthread.h:743:12: warning: declaration of built-in function '__sigsetjmp' requires the declaration of the 'jmp_buf' type, commonly provided in the header <setjmp.h>. [Semantic Issue]
[WARNING]: Removed All Struct Members from camera_preview_data_s(camera_preview_data_s), struct member has an unsupported type.
[WARNING]: Removed All Struct Members from calendar_time_s(calendar_time_s), struct member has an unsupported type.
[WARNING]: Skipped Function 'calendar_filter_add_caltime', Incomplete struct pass/return by value not supported.
[WARNING]: Skipped Function 'calendar_record_set_caltime', Incomplete struct pass/return by value not supported.
[WARNING]: Generated declaration '_watch_time_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_activity_handle_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_activity_data_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_gesture_handle_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_gesture_data_s' start's with '_' and therefore will be private.
...
...

Is this normal?

@swift-kim I think underscore warnings are not issues because they are not public apis. But others should be checked more.

Some warnings were generated while running build.sh.
Running in Directory: '/home/swift/Git/tizen_interop'
[WARNING]: Prefer adding Key '[description]' to your config.
Input Headers: [configs/4.0/wearable/entrypoints.h]
[SEVERE] : Header configs/4.0/wearable/entrypoints.h: Total errors/warnings: 1.
[SEVERE] :     ./rootstraps/wearable-4.0-device.core/usr/include/pthread.h:743:12: warning: declaration of built-in function '__sigsetjmp' requires the declaration of the 'jmp_buf' type, commonly provided in the header <setjmp.h>. [Semantic Issue]
[WARNING]: Removed All Struct Members from camera_preview_data_s(camera_preview_data_s), struct member has an unsupported type.
[WARNING]: Removed All Struct Members from calendar_time_s(calendar_time_s), struct member has an unsupported type.
[WARNING]: Skipped Function 'calendar_filter_add_caltime', Incomplete struct pass/return by value not supported.
[WARNING]: Skipped Function 'calendar_record_set_caltime', Incomplete struct pass/return by value not supported.
[WARNING]: Generated declaration '_watch_time_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_activity_handle_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_activity_data_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_gesture_handle_s' start's with '_' and therefore will be private.
[WARNING]: Generated declaration '_gesture_data_s' start's with '_' and therefore will be private.
...
...

Is this normal?

if the union is used in a struct, ffigen 3.0.0 can't generate the Dart code. but it will be resolved in next release version of ffigen.
ref: https://github.com/dart-lang/ffigen/issues/214

Wow! Found this just now! I am very interested in this subject! :+1:
Although it's very early stage, but.. I've question.
This is for tizen dart api  right? If so, do you have a idea how building dart interface too?
When we reviewed FFI before, we gave up because It is not easy to get users to use the output of FFI.  And we didn't know how to make tizen dart api interface either.
So, if you have any rough ideas for next step, I'd love to know that!

@bwikbs Thank you for your interest. 😃
As you mentioned, the output of ffigen is not easy for end-user to use. In particular, pointer handling is not kind because there is no finalizer in dart-lang...
The project is designed to open up a minimal way to use the Tizen Native API, although it is inconvenient to use. It can also help create a new dart interfaces.
And.. I plan to add more utilities to make it easier to use the ffigen's output..

@WonyoungChoi Thanks for letting me know!

I plan to add more utilities to make it easier to use the ffigen's output..

Can you share roughly what you are planning? Maybe I'll get some inspiration from your plans :smile:

Oh, one more thing.. :smile: (just curious,after it came out..)
What do you think of the challenging task to introduce rest api or grpc? Or build another meta-data for this propose.

@WonyoungChoi Have you taken a look at the issue regarding __sigsetjmp in the above?
Otherwise the change looks good to me.

@WonyoungChoi Thanks for letting me know!

I plan to add more utilities to make it easier to use the ffigen's output..

Can you share roughly what you are planning? Maybe I'll get some inspiration from your plans 😄

Well.. first of all, I'm looking for a more comfortable way to use the c style string. For now, the following procedure is required to receive string from the native function.
Pointer<Pointer<Int8>> ppString = malloc();
final ret = tizen.some_native_function(ppString);
final dartStr = ppString.value.toDartString();
malloc.free(ppString.value);
malloc.free(ppString);

@WonyoungChoi Have you taken a look at the issue regarding __sigsetjmp in the above?
Otherwise the change looks good to me.

Could you explain it in more detail? I can't find a issue related __sigsetjump().

Oh, one more thing.. 😄 (just curious,after it came out..)
What do you think of the challenging task to introduce rest api or grpc? Or build another meta-data for this propose.

Sorry, I can't understand the exact point of the part you mentioned. But I found https://github.com/grpc/grpc-dart..

Could you explain it in more detail? I can't find a issue related __sigsetjmp().

@WonyoungChoi You can just search for the text in this page.

Q. Does the tool create the files below?  Why do we need to include these?

generated_bindings.dart
generated_symbols.dart

Could you explain it in more detail? I can't find a issue related __sigsetjmp().

@WonyoungChoi You can just search for the text in this page.

Oh. I missed that :( Because there is no __sigsetjmp() errors in my log after build.sh. Could you try again?

Q. Does the tool create the files below? Why do we need to include these?

generated_bindings.dart
generated_symbols.dart

Yes these files are generated by tools, but they should be included into the package. Of course, they can be generated every time  the package is published.
I think it's easier to use these files being managed in git. the build.sh only needs to be used to update these files.

Sorry, I can't understand the exact point of the part you mentioned. But I found https://github.com/grpc/grpc-dart..

It's not a big deal. I was asking if you've ever thought about how to build a tizen interface with other general-purpose technologies and binding dart from that. (In fact, there is a rumor from vd  and I was asking you heard or knew anything about that :smile: )

@WonyoungChoi The error is still reproducible, but I could suppress the error by adding -Wno-incomplete-setjmp-declaration to ffigen.yaml's compiler-opts:.

@WonyoungChoi The error is still reproducible, but I could suppress the error by adding -Wno-incomplete-setjmp-declaration to ffigen.yaml's compiler-opts:.

@swift-kim  Thank you for finding useful option! It seems to be related to the "clang/llvm" environment. anyway I don't think it is not problem because the pthread.h is not a target of ffigen. I will add that option to ffigen.yaml file also.


Fix cuDNN installer not working

Follows-up: #6314
Slow test failed: https://ci.preferred.jp/cupy.linux.cuda-slow/91281/#L4316
Directory structure in cuDNN archive has been changed and installer was not working.

/test mini

@takagi Failed to backport automatically.

Not cleanly cherry-picked

@takagi This pull-request is marked as to-be-backported, but the corresponding backport PR could not be found. Could you check?


Runtime error with @alias in service

I'm in the process of upgrading to Ember 2.13.1, and I have this service:
import Ember from 'ember';
import computed, { alias } from 'ember-computed-decorators';

export default Ember.Service.extend({
  // ...
  @alias('session.data.authenticated.id') id,
  @alias('user.name') name,
  // ...

which works fine on ember 2.9.x, but
on 2.13.1, when I load the app in the browser, I see this in console:
ember.debug.js:19829 ReferenceError: id is not defined
    at Module.callback (current-user.js:83)
    at Module.exports (loader.js:114)
    at requireModule (loader.js:29)
    at Class._extractDefaultExport (index.js:392)
    at Class.resolveOther (index.js:108)
    at Class.superWrapper [as resolveOther] (ember.debug.js:42849)
    at Class.resolve (ember.debug.js:7201)
    at resolve (ember.debug.js:4590)
    at Registry.resolve (ember.debug.js:4051)
    at Registry.resolve (ember.debug.js:4055)

which is weird, so I click the top of the trace, and see this:

  exports.default = _ember.default.Service.extend((_dec = (0, _emberComputedDecorators.alias)('session.data.authenticated.id'), _dec2 = (0, _emberComputedDecorators.alias)('user.name'), _dec3 = (0, _emberComputedDecorators.default)('user'), _dec4 = (0, _emberComputedDecorators.default)('user'), _dec5 = (0, _emberComputedDecorators.default)('session.data.authenticated.{token}'), (_obj = {
    session: service('session'),
    store: service(),

    id: id, // <- error points here
    name: name,

what's going on?

Here is my babel config in ember-cli-build:
    babel: {
      // ember < 2.13 / babel < 6
      // optional: ['es7.decorators'],
      // ember >= 2.13 / babel >= 6
      plugins: [
        'transform-decorators-legacy',
        'transform-decorators',
        'transform-object-rest-spread'
      ]
    },

Apparently transform-decorators-legacy works a bit differently and does not replace the original property, but instead calls defineProperty on top. At least that's what I reckon at a quick glance.
The obvious quick fix is jumping through the codebase and replacing all offending code:
  @alias('session.data.authenticated.id') id,
  @alias('user.name') name

  // becomes

  @alias('session.data.authenticated.id') id: null,
  @alias('user.name') name: null

@buschtoens - Thank you chiming in here!   That definitely seems like a reasonable solution for folks blocked by this.  I'll need to read through the spec a bit more to see if the behavior babel@6 + transform-decorators-legacy is exhibiting is correct or a bug...

oh man. that would be a hefty change for me. I use the decorators everywhere.
Thankfully, I'm not blocked, as this 2.13.1 upgrade is branched.
I know I can regex-replace all of them -- but lemme know if the non-object notation is gonna be the final one (the current notation ( @alias('property') aliasedProperty ) )

@NullVoxPopuli - Ya, I reached out to @wycats to double check the spec with me also.  Hopefully will have a more definite confirmation in a couple days...

I am going to close this for now.  The version of decorators that we are currently using (with babel-plugin-transform-decorators-legacy) is from the original proposal. The babel crew are actively working on updating for the current spec and hopefully we can migrate to that soon enough.  When we do, we will re-evaluate these sorts of issues...


lxd/main_forkfile: Change counting model

The use of CompareAndSwap from the atomic package is causing a large
number of EAGAIN during the accept phase of connection handling.
This in turn results in a number of "Connection reset by peer".
Instead change the logic to rely on Go's WaitGroup which allows for
cheaply checking if we have any established connections, combined with a
grace period of 5s, this gives us a pretty solid auto-exit behavior.
Closes #10448
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

I've validated this by transferring an entire Linux kernel tree including binary objects, this succeeded after about 10min of transfer and over 203k files. Previously, I'd always have the transfer fail within the first 2-3 minutes.

Oops, indeed and looks like using WaitGroup the way I wanted to doesn't actually work...
I think we'll have to resort to normal locking here.


week 1

Individual GitHub pages (3 points)

[x] GitHub page for Test Prep study, requiring 5.3, 5.4 notes and actions( See "GitHub pages actions" at the bottom of each TPT page on cspcoders).

[x] GitHub page that documents key learnings and code snippets using GitHub and replit.

[ ] InfoDB lists

[ ] InfoDB loops

[x] Fibonacci - (For Fibonacci(n)  print complete list 0 - n  and not just the nth term)

Notes and GitHub actions are complete and added to the GitHub page.
Fibonacci code is in replit but doesn't work.
Missing InfoDB lists and InfoDB loops
2/3


Video not able to load slides or load preview

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: https://localhost:4664/store/3a981f5cb2739137/import/import.zip
at anifire.component::ThemeLoader/load()
at anifire.player.playback::PlayerDataStock/loadAllThemeXmls()
at anifire.player.playback::PlayerDataStock/onLoadMovieZipCompleted()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at br.com.stimuli.loading::BulkLoader/_onAllLoaded()
at br.com.stimuli.loading::BulkLoader/_onItemComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at br.com.stimuli.loading.loadingtypes::LoadingItem/onCompleteHandler()
at br.com.stimuli.loading.loadingtypes::BinaryItem/onCompleteHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

I've never seen this before. I'll look into this.

seems like an error with flash

seems like an error with go full swf

no. Player.swf

@RegularSpark close this


Adhish Padmanabha Acharya  Hero Section For Portfolio Page For Desktop View

Description
This pull request introduces the hero section of the portfolio page, built with React, TypeScript, Material-UI, and MagicUI.
Motivation
The hero component is a critical part of the portfolio page, serving as the first impression for visitors. It needs to be visually compelling.
Tech Stack

React: Structured the hero component using functional components and hooks.
TypeScript: Ensured type safety and enhanced code quality by defining types for props and state.
Material-UI: Utilized Material-UI for layout, typography, and styling components like Grid, Typography, and Button.
MagicUI: Applied MagicUI for additional visual effects and animations to make the hero section more dynamic.

Live Demo

Visit Site : https://adhishportfolioherosection-aubaswlsh-adhishs-projects-0952b954.vercel.app
ScreenShot :

To experience the animations and interactions, visit the live demo : https://adhishportfolioherosection-aubaswlsh-adhishs-projects-0952b954.vercel.app


Replays moderation feature

I may have forgotten something, because on my local copy I have other edits that I don't want to commit so I had to go searching through files.

Going to squash this


List dict add remove undo support

Summary
Implemented Undo and Redo support for IList and IDictionary property editors as discussed in #426. Writeback is automatically handled through the macro system of the UndoRedoManager.
There exists a minor issue with the AddKeyToDictionary action. Undo'ing the action requires two ctrl+z's. It seems like typing in the Add Entry field is pushing an EditPropertyAction onto the undo/redo stack. I'm not sure how to remove that or how to append it to the AddKeyToDictionary action. CanAppend is not called on the AddKeyToDictionary action.
Another minor issue is the use of DualityEditorApp.NotifyObjPropChanged(this, new ObjectSelection(Scene.Current)); to allow the PropertyEditors to update after the action is done/undone. We don't have references to the target objects and so we can't send a more specific ObjPropChanged signal. This is used in quite a few other UndoRedoActions so I don't think it's that bad, but it'd be nice to be able to emit a more specific signal.

cc @AdamsLair/duality-contributors for first-level code review.

There exists a minor issue with the AddKeyToDictionary action. Undo'ing the action requires two ctrl+z's. It seems like typing in the Add Entry field is pushing an EditPropertyAction onto the undo/redo stack.

That's weird. Not strictly speaking part of the issue or PR, but since you're on similar code, can you check out why that happens / where it is triggered? This probably shouldn't trigger an UndoRedo in the first place. If there's an easy fix, great. Otherwise, the double Ctrl+Z could just remain for now, to be solved later.

Another minor issue is the use of DualityEditorApp.NotifyObjPropChanged(this, new ObjectSelection(Scene.Current)); to allow the PropertyEditors to update after the action is done/undone. We don't have references to the target objects and so we can't send a more specific ObjPropChanged signal. This is used in quite a few other UndoRedoActions so I don't think it's that bad, but it'd be nice to be able to emit a more specific signal.

This should be totally fine. The editor wide NotifyObjPropChanged is actually intended for objects that are edited directly, i.e. ones that you can make a selection of an edit in the Object Inspector or a specialized editor. More fine-grained notifications should be mapped to their next biggest parent, because in the end someone else needs to determine whether a change event affects their UI, and they don't know or want to deal with any specific objects current implementation details.

Merged!


fixup(privatek8s/vnet): expand controllers dedicated subnets

as per https://github.com/jenkins-infra/helpdesk/issues/3823#issuecomment-2036372624
need at least 29 ips so /27 minimum

Plan: 0 to add, 2 to change, 0 to destroy.


add support for windows infrastructure

Current coverage is 6.68%

Merging #12 into master will increase coverage by +0.61% as of f7c4556

@@            master    #12   diff @@
=====================================
  Files           40     40
  Stmts         2717   2737    +20
  Branches         0      0
  Methods          0      0
=====================================
+ Hit            165    183    +18
  Partial          0      0
- Missed        2552   2554     +2

Review entire Coverage Diff as of f7c4556

Powered by Codecov. Updated on successful CI builds.


Add documentation for Error Pages on various configurations

Feature / Documentation Request:
Error pages documentation only covers usage for file based configuration, see: https://docs.traefik.io/basics/#custom-error-pages
Documentation should either specify that other configurations are incompatible with the error pages middleware or examples should be provided for aforementioned configurations. Re: docker, swarm, etcd, etc.
Related to #1675

Documentation should either specify that other configurations are incompatible with the error pages middleware or examples should be provided for aforementioned configurations. Re: docker, swarm, etcd, etc.

Which configurations are incompatible with the error pages middleware?

@ReidWeb i wouldn't know, there are no documented examples for anything other than the file provider.

By example: How to enable the same error pages for all available backends ?  In microservice environment  its seems """idiot""" to have to set error pages per backend rather than globally.

To my knowledge, error pages do not play together directly with dynamic providers such as Docker. (@bparli, please correct me if I'm wrong from the perspective of your PR.)
A possible workaround is to customize the template for a particular provider, apply whatever Go template logic seems necessary to incorporate error handlers, and reference the customized template in the Traefik configuration. The downside is that this won't be fully dynamic.
Feel free to file additional feature request to ask for functionality expansion.

I'm using k8s and i'd be interested in seeing some statement about custom error pages in the docs for my provider. After digging through the repo I conclude there are not supported yet, but newcomers could be given an easier path to figure that out.
A link to some umbrella issue with tick boxes would be ideal (one can subscribe and be notified about a PR or a long-awaited change in a new release).

I think it'd be good to use this issue in order to track leaving a general remark on the current restrictions of error pages.
An alternative path to trying to control error pages from various providers via labels might be to only extend error pages so much that the information about which frontend / backend failed is forwarded to the error-handling container. That way, it'd be totally up to the handler implementation to return per-service error pages.
This needs to be discussed separately though, likely on a feature request issue.

Thats right @timoreimann .  The error pages could be configured today with the File or Etcd providers (although I haven't tested Etcd much) for example, but I suspect most of the remaining providers would need to be extended to support the ErrorPage type.

Thanks @bparli, appreciate the prompt response.

@bparli when you say etcd, does that actually include every K/V store supported by Traefik?

I'm thinking so @timoreimann but am hesitant to say with certainty since I haven't tested them

Fair enough. I'm not super familiar with the K/V integrations either, so I'll resort to the other maintainers.
Thanks again!

PR is out. ^

Closed by #2104


Packaging using Pex / Pants

This would be a better way to bundle deps into a single executable:
https://github.com/pantsbuild/pex

Build has been complete; still need to do the full packaging


All Lerna runs fail with "lerna: Permission denied"

Expected Behavior
i can run scripts
Actual Behavior
All Lerna runs fail with "lerna: Permission denied"
Steps to Reproduce the Problem

git clone
run npm install
run npm run web

Specifications

Version: master / V2 branch, fresh pull
Platform: Ubuntu 20.04
Environment: node.js

i tried master and V2 branch, i tried setting 777 rights, i tried running it per sudo, nothing changes the outcome. searching online yields no result whatsoever, no one seem to have this problem.
log (which is not helpful at all):
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'clean' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'preclean', 'clean', 'postclean' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>7 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
8 verbose lifecycle<EMAIL_ADDRESS>PATH: [...redacted]
9 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/bla/OpenJSCAD.org
10 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'lerna clean' ]
11 silly lifecycle<EMAIL_ADDRESS>Returned: code: 126  signal: null
12 info lifecycle<EMAIL_ADDRESS>Failed to exec clean script
13 verbose stack Error<EMAIL_ADDRESS>clean: `lerna clean`
13 verbose stack Exit status 126
13 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/bla/OpenJSCAD.org
16 verbose Linux 5.4.0-31-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "clean"
18 verbose node v10.19.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 126
22 error<EMAIL_ADDRESS>clean: `lerna clean`
22 error Exit status 126
23 error Failed at the<EMAIL_ADDRESS>clean script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 126, true ]

It looks like you missed a few steps. Please see https://openjscad.org/dokuwiki/doku.php?id=early_v2

no, i did not skip anything, this is a rights problem i did not understand yet.
i just found out when i move (copy) the project into my home directory it runs fine, but since it lies on a mounted second disk it produces this error.
but i run other projects from that disk without problems, just lerna fails.

Cross disks... hmm... I would have expected the file system to handle that easily.
I suspected something was missed because of "<EMAIL_ADDRESS>which is an old V1 version. That should not be possible in V2, as the version numbers have changed across all the modules.

I would have expected the file system to handle that easily.
yes, me too. and since the log is not helpful at all i have no clue what lerna tries to access that fails.

i just double checked, i am on the V2 branch, and i killed and recreated my node_modules directory, but it still shows "<EMAIL_ADDRESS>no clue why...

This might have something to do with local vs. global installation of lerna. For me it helps to run lerna bootstrap, wait for the EPERM error, close the terminal and run lerna bootstrap again.
Another thing that might work is to run lerna clean.
Also watch out for any running scripts - that can lock up some dependencies making you unable to remove them without admin rights. Especially watch scripts.
I'm on Windows using git bash.
=============
Found that on stack exchange... the interesting point was the “running scripts” part. There may be a running process blocking the file system.
Have you tried running “npm run clean”?

i checked there is nothing running. and clean shows the same. i give up, i moved it to my home directory. @z3dev thx for the help!

i ran into the same problems with browserify, the only solution i found is to fully qualify the call:
node node_modules/browserify/bin/cmd.js ...args
this is some really quirky rights problem under linux.


Showcase Submission for ml5/facemesh

Thank you Pierre B. for your contribution! A member of the Coding Train team will review it shortly.

Fire breathing
Pierre B.

Thank you @pierrebai so fun to see creative twists on this!


R-4.1.0-win.exe download can't be found

In urls.py we request https://cran.r-project.org/bin/windows/base/R-4.1.0-win.exe but it doesn't exist anymore. Version 4.1.1 (https://cran.r-project.org/bin/windows/base/R-4.1.1-win.exe) does work.

Closed via #16


Support rewiring of pipelines with multiple repositories

Currently, the ado2gh rewire-pipelines capability only works on self, i.e. the repository containing the pipeline definition. We need to add support for rewiring additional repositories that are defined in the pipeline's resources section of the yaml file.
This change should apply to one or more branches in the pipeline's repo. Alternative options are as follows:

All branches are changed
Branch(es) to be affected must be specified in a CLI argument
Main branch
HEAD branch
New branch and create a PR to integrate the change into main.

Todo
https://github.com/devopsjester/gh-gei/issues/1#tasklist-block-7b296340-18b0-4508-9046-65a546d463af
Dependencies

See upstream issue for further discussion.

I will default to changing main. Options to include explicitly specifying the list of branches (comma-separated) to fix, or direct the tool to only create a pull request.
Usage:
gh ado2gh generate-script --all or gh ado2gh rewire-pipeline: rewires pipeline to self repo only; no changes to resource-mentioned repositories.
Adding --multi-repo will fix and push changes to the pipeline's YAML file in main (or whatever the default branch is named).
Adding --multi-repo --branches branch1,branch2,branch3... will fix and push changes to the pipeline's YAML file only in the specified branches.
Adding --multi-repo --pr-only will create a new branch, fix and push changes to the pipeline's YAML file, and open a pull request in the yaml file's repo, to merge these change.


Worker-loader web worker not working with Webpack 4

We've successfully created a web worker using worker-loader in a CRA project using Webpack 3.5.6 and it's worked fine but upon upgrading it to Webpack 4.19.1 it doesn't worked. It results in a worker.postMessage is not a function error. We have tried absolutely everything in terms of re-ordering the code, scopes etc but to no avail. After doing research it appear this is a very widespread issue.

Sorry, I can't help, information is not enough, we have tests on  puppeteer and all works fine, maybe something on CRA side, I close this issue, but feel free to open a new issue with minimum reproducible test repo if you faced with issue again


Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

Hello.
I am trying to package my application at https://github.com/fosspost/fp-collapse-monitor as an AppImage. I am using pkg2appimage over a local DEB file. This is my simple yml file:
app: fp-collapse-monitor
union: true

ingredients:
  dist: focal
  debs:
    - /home/mhsabbagh/Documents/fp-collapse-monitor_1.0_all.deb

However, after generating the AppImage file, I get the following error when trying to run it:
qt5ct: using qt5ct plugin
Python path configuration:
  PYTHONHOME = '/tmp/.mount_FOSS_PWWFtbU/usr/'
  PYTHONPATH = '/tmp/.mount_FOSS_PWWFtbU/usr/share/pyshared/:'
  program name = '/usr/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python'
  sys.base_prefix = '/tmp/.mount_FOSS_PWWFtbU/usr'
  sys.base_exec_prefix = '/tmp/.mount_FOSS_PWWFtbU/usr'
  sys.executable = '/usr/bin/python'
  sys.prefix = '/tmp/.mount_FOSS_PWWFtbU/usr'
  sys.exec_prefix = '/tmp/.mount_FOSS_PWWFtbU/usr'
  sys.path = [
    '/tmp/.mount_FOSS_PWWFtbU/usr/share/pyshared/',
    '',
    '/tmp/.mount_FOSS_PWWFtbU/usr/lib/python38.zip',
    '/tmp/.mount_FOSS_PWWFtbU/usr/lib/python3.8',
    '/tmp/.mount_FOSS_PWWFtbU/usr/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fe3c01efc00 (most recent call first):
<no Python frame>

Attached is the DEB file too if you would like to see it (I had to compress it in ZIP for GitHub to accept it).
What could be the issue here?
Thanks.
fp-collapse-monitor_1.0_all.zip
.

Hello, you need to put https:// or http:// URLs into debs:, not a file on the local machine.
This is because recipes need to work on multiple machines without having any required additional files locally.

Are you sure about that? The documentation clearly mention that you can use a local DEB file and they give a local path: https://docs.appimage.org/packaging-guide/converting-binary-packages/pkg2appimage.html#using-local-deb-files
I tried what you did and that gave me:
+ cp http://fosspost.org/fp-collapse-monitor_1.0_all.deb .
cp: cannot stat 'http://fosspost.org/fp-collapse-monitor_1.0_all.deb': No such file or directory

This is the YML file:
app: fp-collapse-monitor
union: true

ingredients:
  dist: focal
  debs:
    - https://fosspost.org/fp-collapse-monitor_1.0_all.deb

Are you sure about that? The documentation clearly mention that you can use a local DEB file and they give a local path

Sorry I was wrong. It's been quite a while ;-)
In any case, pkg2appimage is meant as a last-resort tool to for end user to build their own AppImages for applications that are not provided by their authors in AppImage format. For application authors, there are way better suited tools, especially for Python:
https://github.com/AppImageCommunity/awesome-appimage#deployment-tools-for-python-applications


Bluetooth: controller: llcp: fix unhandled rsp in periph phy upd proc

Re. peripheral phy update procedure: UNKNOWN_RSP from central was not
handled, leading to stall of procedure and subsequent procedure timeout
Proper handle and unit test for case added.
Signed-off-by: Erik Brockhoff<EMAIL_ADDRESS>

rebased, but ctrl_cte_req unit test fails...


[stdlib] Provide migration hint for AnyTraversalIndex types

Explanation: Migration aids for the AnyForwardIndex, AnyBidirectionalIndex, and AnyRandomAccessIndex types were omitted. This change adds an @available attribute for each removed type that forwards to the new AnyIndex.
Scope of Issue: Aids the migration of Swift 2.2 code that uses existential indices.
Risk: None. The new type aliases will provide migration hints but will not be usable in new code.
Reviewed By: Dmitri Gribenko
Testing: Checked that existing tests don't break and checked in the REPL that the correct replacement type is suggested.

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test

LGTM.


Style/WordArray triggers invalid YAML serialization in --auto-gen-config

Be clear, concise and precise in your description of the problem.
Open an issue with a descriptive title and a summary in grammatically correct,
complete sentences.
Use the template below when reporting bugs. Please, make sure that
you're running the latest stable RuboCop and that the problem you're reporting
hasn't been reported (and potentially fixed) already.
Expected behavior
MinSize parameter is omitted, or properly serialized when @largest_brackets is negative infinity.
Actual behavior
Value is serialized as a string, in the display format for negative infinity (e.g. -Infinity), not the YAML syntax for negative infinity (-.inf).  This results in a type mismatch in word_array.rb, around line 27 (as of RuboCop 0.38.0) because FixNum and String can't be compared with >=:
            if style == :percent && array_elems.size >= min_size
              add_offense(node, :expression, PERCENT_MSG)
            end

Steps to reproduce the problem
I'm not sure what in the large codebase I'm applying RuboCop to is causing this outcome but the root of the problem is apparently here:
        def style_detected(style, ary_size)
          cfg = config_to_allow_offenses
          return if cfg['Enabled'] == false

          @largest_brackets ||= -Float::INFINITY
          @smallest_percent ||= Float::INFINITY

          if style == :percent
            @smallest_percent = ary_size if ary_size < @smallest_percent
          elsif ary_size > @largest_brackets
            @largest_brackets = ary_size
          end

          if cfg['EnforcedStyle'] == style.to_s
            # do nothing
          elsif cfg['EnforcedStyle'].nil?
            cfg['EnforcedStyle'] = style.to_s
          elsif @smallest_percent <= @largest_brackets
            self.config_to_allow_offenses = { 'Enabled' => false }
          else
            cfg['EnforcedStyle'] = 'percent'
            cfg['MinSize'] = @largest_brackets + 1
          end
        end

We're apparently falling into the final else of the last if/else cascade, with @largest_brackets still having a value of -Float::INFINITY.  Adding one to -Inf is still -Inf.
I suggest that it be fixed by changing this:
cfg['MinSize'] = @largest_brackets + 1

To this:
cfg['MinSize'] = @largest_brackets + 1 if @largest_brackets.finite? # This will guard against +inf, -inf, and nan

RuboCop version
Include the output of rubocop -V:
$ rubocop -V
0.38.0 (using Parser <IP_ADDRESS>, running on ruby 2.2.2 x86_64-darwin15)

See this too on rubocop 0.47.1

I want to help triage this issue, but under "Steps to reproduce the problem" is a block of Rubocop's implementation and some suggested changes. How can I reproduce this?

The lack of useful information from Rubocop when the error occurs -- because of an uncaught exception -- made it impractical to identify what exactly was triggering the problem.

I think this is a duplicate of #2740. More diagnosing has happened over there, but it hasn't been resolved yet. If either of you could contribute to that thread, it might lead to a resolution.
I recommend closing this issue as a duplicate.

I was curious whether I could reproduce this bug given that #2740 felt sort of like a murder mystery :laughing:. I was able to give a simple reproduction. See here https://github.com/bbatsov/rubocop/issues/2740#issuecomment-275007739


Multiple webhost instances in same app?

I'm porting an existing application from Owin to Kestrel and running into an issue.  The application is split into two components, a front-end UI and back-end API.  Each is implemented in a separate assembly, but they run together in the same self-hosted executable under a common root.  In other words:
http://+:5000/front-end (html/js)
http://+:5000/back-end (web API)
With Owin, each component creates its own instance of "WebApp" with a startup class and associated middleware configuration.  They use the same server address and port, but with different base prefixes.
Kestrel, on the other hand, does not work as expected with multiple instances of "IWebHost" with the same address and port.  You can set a PathBase in the Configure method of the startup class for each instance (i.e., "front-end" for one and "back-end" for the other), but this does not control which web host processes a HTTP request.  All the requests seem to go to the first created host instance.
Is there a way to configure Kestrel to allow multiple web host instances to share a URL root?

Kestrel doesn't support port sharing. I would have excepted an exception when you started the second site. You could use the HttpSys server instead, it's based on the same infrastructure you were using in Microsoft.Owin.

Thanks for the suggestion.  I forgot to mention the reason I'm using Kestrel is for cross-platform support, so http.sys isn't an option.

Ah. Cross-plat you'll need to redesign a bit. You can:
A) merge the apps into one instance and distinguish them with routing
B) give them different ports
or C) use a reverse proxy like nginx to forward from a shared port to different processes and/or ports.

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Shared variables

In order to factor out common calculations, especially amongst file and directory names, it would be useful to be able to define variables in copier.yml whose values are calculated based on answers or other variables.
For example, when creating a template for a Java project, based on the name of the project, I would like to calculate the name of the root package, and also the path of the root package.
project_name:
  type: str
  default: hello-world

root_package:
  type: str
  default: "org.example.{{ project_name | title | regex_replace('-', '.') }}"

root_package_dir:
  type: str
  default: "{{ root_package | regex_replace('.', '/' }}"

The root package variable would be referred to by multiple files.
The root package directory must be calculated this way since you cannot have a filename with a slash (/).
Describe the solution you'd like
I suggest adding support for defining variables in copier.yml in a similar way as defining questions. The two are distinguished in some way, perhaps by a prefix such as a double underscore (__) or by a key such as hidden: true. I suggest that it be possible to mix defining variables and questions such that a question definition can refer to prior variables.
Describe alternatives you've considered
This feature is called Private Variables in Cookicutter.
An obvious workaround is to define questions with default values. This is unsatisfactory because this forces users to read the trivial question and decide to hit the enter key, which adds unnecessary overhead and
Additional context
The given example refers to Java, but templates for other programming languages, including Python, could have similar issues.

See previous conversation on the subject at https://github.com/copier-org/copier/issues/629 (as well as https://github.com/copier-org/copier/discussions/700), and https://github.com/copier-org/copier/discussions/683 about arbitrary deep filesystem tree generation.

I find it a bit heavy-handed to write a context hook in order to add a variable. It doesn't allow default answers to depend on unprompted variables.

For the time being, you already know the workarounds we have. However, you inspired me to write #718. Let's close this one. Thanks!

@punkstarman / @yajo
you can have unprompted variables with when: false:
example_variable:
  default: "{{ project_slug|lower|replace(' ', '')|replace('_', '')|replace('-', '') }}
  when: false

Works fine for me.

@FlorianLudwig when: false can lead to surprising behavior, see https://github.com/copier-org/copier/discussions/678#discussioncomment-2822746 (just for your information, not trying to prevent you from using when: false if that works for you :slightly_smiling_face: )

@FlorianLudwig, that is my current workaround.


Add --force-reinstall flag to pip3 install

pip will skip the installation if the installed package version is the same as the current. However, during development, coders will likely rebuild multiple times without changing the package version. --force-reinstall achieves this.
I think it worth considering how to achieve an implementation of colcon's --symlink-install, as this is a very useful tool for development iteration.

Thanks for the contribution!


Put check-execution-order hook in here

https://github.com/MarcoGorelli/check-execution-order

naah, this can go in madforhooks


Problems running atom beautify

When I run atom beautify I get the following error being thrown: spawn EACCES
Here is my debug gist:
https://gist.github.com/siteleas/f57dd07ef0f19f820325559bfb2769b0

I resolved my issue by using composer and downloading and installing friendsofphp/php-cs-fixer into my .atom profile folder and changing the php-cs-fixer path to ~/.atom/vendor/friendsofphp/php-cs-fixer/php-cs-fixer

I consider this issue resolved


lower_bound function is missing a parameter.

[Enter feedback here]
The code showed in title "Standard Library algorithms"，the parameter named val is missing in lower_bound function.

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

ID: b83658b4-2e2f-f617-174d-6741575beca3
Version Independent ID: 09fd3e8d-d0e2-bfe9-ebdf-24b7c2b5db9e
Content: Welcome back to C++ - Modern C++
Content Source: docs/cpp/welcome-back-to-cpp-modern-cpp.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @corob-msft
Microsoft Alias: corob

@fengbs
Thanks for the report. An update should appear later today.


Support new workflow usage and workflow run usage API endpoints

GitHub Developer v3 API announcement:
https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage/
These new endpoints need to be supported:

Get workflow usage

[ ] GET /repos/:owner/:repo/actions/workflows/:workflow_id/timing

Get workflow run usage

[ ] GET /repos/:owner/:repo/actions/runs/:run_id/timing

This would be a great PR for any new contributor to this repo or a new Go developer.
All contributions are greatly appreciated!
Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.
Please check out our CONTRIBUTING.md guide to get started.
Thank you!

May I have a shot on this? :slightly_smiling_face:

Thank you, @joshuabezaleel ... it is yours.


Ensure update-agent does not panics/segfaults when node is shutting down

Original issue: https://github.com/coreos/container-linux-update-operator/issues/184
This has been reported in the past and partially resolved, but it seems it is not finished.
See also coreos/container-linux-update-operator#184
We should make sure this is addressed, as it seems like it's the cause:
https://github.com/coreos/container-linux-update-operator/issues/93#issuecomment-315911986

I can confirm that this is still happening:
I0927 12:48:56.022773       1 agent.go:237] Deleting 0 pods
I0927 12:48:56.023058       1 agent.go:267] Node drained, rebooting
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x12cf0a3]

goroutine 32 [running]:
github.com/flatcar-linux/flatcar-linux-update-operator/pkg/updateengine.(*Client).ReceiveStatuses(0xc0003e0ac0, 0xc000490d20, 0xc000104ea0)
        /usr/src/github.com/flatcar-linux/flatcar-linux-update-operator/pkg/updateengine/client.go:112 +0x223
created by github.com/flatcar-linux/flatcar-linux-update-operator/pkg/agent.(*Klocksmith).watchUpdateStatus
        /usr/src/github.com/flatcar-linux/flatcar-linux-update-operator/pkg/agent/agent.go:340 +0x125


Working tests on Windows

I've encounter some issues while running mesh on Windows.
Basically, services can connect to mesh base, but actions are not routed to matching services.
This PR includes:

the usage of a patched seneca-transport, that makes a proper use of default host (no <IP_ADDRESS>)
test expectations fixes.
cosmetic eslint fixes and the usage of patched eslint-config-seneca, compliant with eslint 2+

But the main question remains: when using Seneca instances built without the {debug: {short_logs: true}} option, actions can't be routed.
Why is the impact of this option on routing ?
Last remark: the last test observe-consume-basic is very sensitive to execution time. Sometimes it fails because actions are not executed in the expected order, and sometimes it works.

Thanks - would like to merge, but need to understand the changes needed in seneca-transport?

OK - transport stuff is just addressing <IP_ADDRESS> right? We'll look at that in the update to transport, one of the next major pieces of work
debug logs: this is just a test artefact - the tests are using short form ids

@feugy I'll bring this in as it's conflicting now. Thanks!


Third party reporters not working

Mocha-webpack crashes with Error: Cannot find module C:\[project-path]\mocha-teamcity-reporter. Error occured when overriding reporter with cli webpack-mocha --mocha.opts --reporter mocha-teamcity-reporter or defining reporter in opts file. Using reporter with cli and without opts file works well.

I have the same problem and can not resove it


Bitwise logical operations not allowed for fixed-width signed integers?

Is it really the case that signed bitwise operations (and, or, xor, complement) are not allowed for fixed-width signed integers (int<W>)? Section 8.6 of P4-16 spec v1.2.2 says that:

Note that bitwise operations on signed integers are well-defined, since the representation is mandated to be two's complement.

However, the list below that paragraph does not define any of the aforementioned bitwise operations. This seems to be a weird combination. If there are not bitwise operations on int<W> than this sentence does not make sense to me. Or was the intention to include them and they are missing?

It would be great if you could write a quick test program for p4c, e.g. using the v1model architecture, perhaps, and see which operations it already supports for int<W> types, and which it does not, and record the results here.  That helps provide additional evidence for making a decision on any spec changes.

The spec seems to imply that |, ^, & are supported for int, but they do not appear in the list of supported operations.

This program compiles:
const int<32> x = 10;
const int<32> z = x ^ x;

The strange thing is that the spec source madoko seems to be correct. The html is wrong.

I guess that this bug has been fixed already but we haven't published a new spec yet. The new version of P4 is coming up in May.
I will mark this as fixed.

Thanks, next time I will have a look into the repository version of spec too.


Chrome SPDY indicator plugin does not see the endpoint as HTTP2

Hitting an endpoint from chrome with the SPDY indicator extension doesn't indicate the endpoint is http2 (via the blue lightning bold).

Is this a bug?
Chrome currently does not support 'h2' protocol, so negotiation is probably failed.
Chrome Canary works correctly.

Yeah, you're right. I've just tested it in canary and works like a charm. Chrome stable wants to negotiate h2-14 while node-http2 supports the final standard.


Announce Keptn 0.16.0

Signed-off-by: Giovanni Liva<EMAIL_ADDRESS>

Thank you @StackScribe  for the feedback 🙌


dns: switching cache to take statusor

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/retest

/retest


Library code should be a virtual document

Hi VS Code dev here :wave:
Have the following code
num1 = 1.5
num2 = 6.3
# Add two numbers
sum = float(num1) + float(num2)

Go to references on float -> notice a new editor appears with editable content.
This feels like a very bad experience since this is library code and should be read only.
As @jrieken suggest Python should be a virtual document provider, as a virtual document fits this use case much better.
fyi @luabud

@karthiknadig  do you know if it makes sense to transfer this to Pylance, or would it need to be done in vscode-python?


Object history

The object history's page is not showing breadcrumb with default layout.

Yep, there is even no link to history page on material admin chage form template.

fixed in 3102fea5cff7b0fcbe80b3ea451e09c6fd339183


Update base image and add Fairphone 4

Hello @am97
Can I just ask why the use of the eclipse-temurin as base image?


GH-42224: [Java] Fix Typo in TestAceroSubstraitConsumer Test Method

Rationale for this change
Fixes a typo causing a NullPointerException in the test method

What changes are included in this PR?

Updating typo to fix Unit Test

Are these changes tested?
Yes

Are there any user-facing changes?
No.

GitHub Issue: #42224

To verify this PR, I think we need to merge this PR.

https://github.com/apache/arrow/pull/42217

@github-actions crossbow submit java-jars

@lidavidm I've just finished rebasing! You are so fast!

Github notifies me on every push ^_^


Build timberlake with Jenkins, vendor dependencies

You may want to just look at 2c7641f; the other commit is a bit
chunderous.
@jbalogh

:+1:


#357: make init_handle private

I thought this was going to be more substantial.

Thanks! Merged.


PersistentEnum should return the mapped class as "returnedClass"

The current implementation, as of the 2014-07-15, returns Enum.class as discovered by AbstractReflectionUserType using TypeHelper.getTypeArguments.
That breaks some of hibernate use cases, namely calling a constructor that uses the enumeration from a query.
For example, imagine we had a class similar to:
class UsingEnum {
  @Column
  @Type(type = "org.jadira.usertype.corejava.PersistentEnum", parameters = {
  @Parameter(name = "enumClass", value = "specifically.MyEnum"),
  @Parameter(name = "identifierMethod", value = "getCode"),
  @Parameter(name = "valueOfMethod", value = "getEnum") })
  private MyEnum value;

  public UsingEnum(MyEnum value) {...}
}

If I now used a query similar to "select new UsingEnum(u.value) from UsingEnum u", that would not work because PersistentEnum would fail to return the specific enum type and hibernate could not match the constructor.
PeristentEnum should override returnedClass() method as follow:
 @Override
 @SuppressWarnings("unchecked")
 public Class<Enum<?>> returnedClass() {
    Class<?> mappedClass = getMappedClass();
    if (mappedClass == null) {
        throw new IllegalStateException("No mapped class was defined for " + this.getClass().getName());
    }
    return (Class<Enum<?>>) mappedClass;
 }

or similar, according to your coding style/standards.

About to push fix


[Suggestion] Rename Pokemon

I have no idea if it is possible to rename the pokemon through the api but it would be nice to rename the caught pokemons with their IV value. There is no way of knowing the IV values of the pokemons after they are caught("it is also only possible through api"), so it would be awesome to have the values attached to them.
For example an Eevee with 0.75 IV value could be renamed to "Eevee75" maybe?

Would be great, if its possible :+1:

If rename is possible, make also an "-ir, --initial_rename" command :)

Or even the pure IV values as ATK.DEF.STAM

Trying to make it work..
`def rename_pokemon(self, pid, name):
    self.api.nickname_pokemon(pokemon_id=pid, nickname="MyName")

    response_dict = self.api.call()

    print(response_dict)

`
I don't why I keep getting "{'NICKNAME_POKEMON': {'result': 3}}" which means ERROR_POKEMON_NOT_FOUND even tho I'm using the same ID that trasnfer_pokemon uses.
If someone can find why is not working it would be great :)

@GreWull id from pokemon_to_transfer[0]?

@julesferreira yes, tried to use that one.
Just to be sure I tried the same thing with "set_favorite_pokemon" (still using the same ID) and that Pokemon became "favoire" (yellow star) but the nickname function gave again result: 3 (pokemon not found)

@GreWull you're not transferring before trying to rename, are you?

@GreWull what's your type on pokemon_to_transfer?

@julesferreira  <type 'long'>

https://github.com/tejado/pgoapi/issues/59

@julesferreira found the problem.
The ID type in the API was the wrong one.
I don't know how to update the API.. but what I did was:
Open the file src\pgoapi\pgoapi\protos\POGOProtos\Networking\Requests\Messages_pb2.py
Line 1395 (or search for "nicknamepokemonmessage"), there is "type=1", change it to "type=6".
Should work :)

Can you open a PR @GreWull and reference it here?


Merge some pxb icons with material icons

Describe the desired behavior
Certain icon categories might be grouped together for better search-ability
Examples:

Building & Places
Devices, Lighting -> Hardware

Note that there are two categories right now, Device (from material design) and Devices (a pxb category). But I think the pxb category goes better with the "hardware" category

General - break those into "action" and "communication"

Account settings & lock reset - action
Internet connection - communication

Industrial

"Building" and "Factory" can be reassigned to "places"

Platform & Platforms
Status

Most of these can be regrouped into "industrial"
Some can go to "Social", "Hardware"
This category also contains some duplicates of material icons

Transportation, Vehicles, Maps

At least the first two categories can go together

Describe the current behavior
Is this request related to a current issue?
pxblue/doc-it#304 is another issue about icon categories
Additional Context
This issue may be transported to the icons repo, but the metadata is only used on docit, so...

Let's have a bigger discussion about this with Studio Blue (Eric) to decide which icons we want to go into which categories. In general, we should be able to maximize our use of the existing Material categories, and only create our own for PX Blue icons that really don't fit into the existing categories (like the Platforms).

moved to PXBLUE-1916


Not showing Advanced Tabs in Android

In IOS, its working fine
But in android, it gives error in this area :
`const containerStyle = {
paddingHorizontal: 20,
paddingVertical: 5,
borderRadius: 25,
flexDirection: 'row',
alignItems: 'center',
backgroundColor: **styles.backgroundColor**,
opacity: **styles.opacity**,
transform: [{ scale: **styles.opacity** }],

};`
and says undefined is not an object (evaluating 'styles.textColor')
And when i put any random colors here, the error will disappear but shows nothing (no tabs).

Hi @parmeet9891! That's pretty interesting catch. The trick is that problem doesn't appear in Debugger mode. I've researched and found out that this code
[...Array(6).keys()]

doesn't work properly and returns an empty array. I have fixed the problem into example repository and a bit refactored code increasing the readability.
Thanks for reporting!


Duet AI Transform service SDK Harness prompts

Transform service lookup prompts

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Hey @damccorm this one is also ready for review


upload of new site with test posts

@Dr-G I created a new branch for the new site so you can test things locally before we merge changes. Then we should be able to switch you to a project site once things get settled and we get things fully figured out. Emailing you with this info also.

No longer needed. Site is live with different version.


nonfunctional fixes to dag.py.

Changes to importing only modules and sorts imports.
Removes redundant imports in visualization functions.
Renames __functions to _function.
Autogenerates Status's __str__.
Renames some Capitalizes Variables to lowercase.

This is mostly the prelude to my next change, because I wanted to keep the simple cleanup changes separate.

pushing this back to the drafts because there are more maddening things going on with downstream stuff.


[Add]

Details
made this new hover button
https://github.com/Spyware007/Animating-Buttons/assets/120590200/1e75e8ba-b01d-4687-824a-d8e402758032
Screenshots
No response
Type of Contribution

[ ] Update to an existing Animated Button
[X] Adding a new Button
[ ] Resolving a bug
[ ] Proposal to the Repository
[ ] Changes related to documentation or README.md
[ ] Other Changes

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue
[X] I am a GSSoC'23 contributor

Hey there @Spyware007, @PoorviShetty, @TANYA-CHAN, @Souravvmishra  please assign it to me


Remove FFI

I wanted to use this library with purerl, but the use of FFI meant I'd have to maintain a fork. However, it turned out that all of the FFI logic could be done in PS, and I wouldn't have to maintain a fork!
When writing the tests for Data.URI.Common.match1From, it seemed odd to me that it only matched at the exact index given rather than anything after that index. After converting the code, this seems like a bug. The first thing that happens is that the global flag is added to the regex. That seems like the intent is to match anything after the given index.
The other possibility is that adding the global flag was the bug and this function could use a better name. I don't have any suggestions for a better name though.
In any case, it'd be great if the move away from using the FFI could be incorporated in this repo rather than my fork.
Feel free to squash this upon merge.

 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.

Thanks! I'm not really sure why I used the FFI for this, probably laziness. I think it should have been "anything after that index" - thanks for figuring it out and adding the tests!


[1.13] Decrease default Telegraf polling frequency

High-level description
In the last MWT, we saw many metrics getting dropped (e.g. internal plugin) while mesos/containers metrics were getting reported in the prom output. We noticed that these two plugins override the default polling interval (defaulted to 10s) to 60s. We should change the default polling interval to 20s and monitor in the next MWT to see if it improves performance and lowers the amount of dropped metrics.
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS-49301 Decrease default Telegraf polling interval

Checklist for all PRs

[ ] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change: added in 1.12 changelog
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here: hard to test (comes up in MWT environment)
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot label ready for review


Implement version for module

It is useful to access the version string of the Python package (same as the crate) from Python, for example:
>>> import wasmer
>>> wasmer.__version__
'0.2.0'

Added a test.
I will be glad to make the entire module more pythonic if it can help, adding more useful magic methods.

Thanks, that looks good!

I will be glad to make the entire module more pythonic if it can help, adding more useful magic methods.

Please, do! The best way to approach that would be to, first, create one issue per missing feature, and, two, create the PR.
Keep in mind I'm not familiar with Python. Actually, that's almost the first time I write Python code is my life :-p. Any help to make the extension more Pythonic is very welcomed.


Flood Fill Algorithm in python

Implemented a problem - Continent Area Counter using Flood Fill Algorithm in python

Wrong repo, check https://github.com/allalgorithms/python instead


Redirect to better kitty image

Show the terrorists how we really feel.

I don't know how I feel about this. On one hand, yeah, I like it. On the other hand, redirecting them elsewhere is kinda... I dunno.
I'd like to open this up to a vote with regards to #keepingTheInternetGreat
I'll merge if we get a significant favor on this. You automatically vote for your own submission.

10/10

@seiyria - Ah okay. Maybe I'll open up a new PR to use the Cat API to introduce some randomness.

-1. Don't negotiate or engage with terrorists. Just don't let them in.

An alternative would be to set the document to a base64 version of the image instead of directing the traffic somewhere else.

Or we could include the file as a local asset within the repo - I would tend to keep giant data URI blobs out of the source. If there are concerns about people being unwilling to host the image too, we could fall back to a placeholder hotlink if the image doesn't exist.

Imgur might be a good choice.

Yes, I definitely don't agree with having a giant data URI in the code. The idea of this was a simple terrorism preventer that is easy to read. Losing that means losing to the terrorists.

What about abandoning the image all together - just use text? Perhaps a "you are not welcome here" in a nice big H1? Keeps things lightweight, no hotlink traffic, and short/sweet/too the point.

I think using text with comic sans is a good solution

+1000 on a Comic Sans "Go away, terrorist."

Make it purple. Or flashy. Rainbow colored comic sans.
Yes. That's my jam.

Redirecting is a bad idea imo.
A mean text saying "Go away" or "You're not welcome here" is most likely a bad idea. What if they get upset and bomb the website or something? Kittens have the benefit of inducing little to no rage when displayed, and in some cases even subduing the boiling anger / murderous intentions of the viewer.
+1 for imgur or catapi

Should we add in an audio file play to automatically on load. It would narrate the text displayed loudly and slowly so they understand.

I'm not sure that an audio file will help #keepTheInternetGreat. In fact, audio files that play themselves are one of the reasons people close web pages immediately upon loading them. We don't want to drive them away if we have a message for them!

If you open the message in an alert to stop the UI thread and then use a web worker to play the audio file in another thread you can have it play while they’re stuck on the page with the alert.


Revise parameter handling for snippets

This is a large PR, but each individual commit is small(ish). The
test cases are what make some changes look large. Each commit
addresses one (or two) issues at a time (usually).
This commit does several related things.

consider examples for parameter values
If example isn't set for a parameter, then go ahead
and check for examples. If that is present, then use the
value from the first entry as the parameter value.
Fix #81

implement support for explode for array and object
Fix #83

Fix 3 test scenarios that showed unexploded form
parameters when explode should have default to true
This was documented in #83

Resolve $ref nodes for header parameters
Fix #84

Add a full suite of tests for parameters.

Add support for cookie parameters

Handle the merging of path and operation parameters correctly for
all parameter types, not just query ones.
Fix #85

Add support for label and matrix style path parameters

Add support for space and pipe delimited query parameters

There is support for deepObject style, but the httpsnippet library
encodes all the special chars so I don't know if that's correct or not.

Resolve references in examples object as needed

You did open and then close again a few other PRs. So just to be on the same page: is this one ready-for-review from your point of view? Once it is, I will try to provide a review quickly, but might need a few days given other obligations. Just wanted to be upfront about this.

Hi @ErikWittern, yes I'm sorry for spamming your repo. When I submitted the first PR I quickly realized that this work was larger than I imagined. And I really wanted to submit a PR with smaller commits.
You can start to review this. I tried to stay faithful to your style and direction but realize I may have gone astray from how you would have liked. Let me know how I can help.

@michaelgwelch I finally had some time looking over your changes. I am extremely grateful, they look fantastic!
You point out some specific areas of interest related to testing. Here are my thoughts:

Exposing createHarParameterObjects directly from openapi-to-har.js is, in my opinion, not a big issue, as they are not also exposed by index.js.
The test descriptions are fine with me as well, given they follow a consistent structure and are designed to cover a broad range of cases

Once more, thank you so much for the contribution! I will create a new release based on these changes.

Very glad to hear you were able to work your way thru it all. On my project we've been running with these changes (from my fork) since I posted the PR back in May without issue. So I'm hopeful the tests have provided adequate coverage. Will be glad to switch over to the next released version and off of my fork.


__get_map_key issue

E:\Workspace\Odin\core_preload.odin(433:13) Invalid type for this type match expression, got ^TypeInfo
It seems like the problem is that you are iterating the language and core types so fast that it's difficult to keep up with the code breaking. It would be extremely useful to have a compiler flag to force the compiler to check even procedures that won't be called for warnings and errors; I've had the same thing happen to me, not fixing broken code because it wasn't being compiled. Such a flag would let you and your users clean up broken code after making changes with a lot of downstream effects.

The procedure that don't get checked are polymorphic procedures. I need to figure out a way to check to "unspecialized" polymorphic procedure's body.
In this case, I think I have fixed the case before I read this issue.

Interesting, and that makes sense. I can see how that would be problematic, but would it not be possible to check for simpler things such as undeclared identifiers? Theoretically checking the parts of the code that aren't touched by the polymorphic types would be doable, but I have to admit I can see how they could have a cascade effect making the whole thing pretty messy.


Ban rule not picking up methods correctly

Bug Report

TSLint version<EMAIL_ADDRESS>TypeScript version<EMAIL_ADDRESS>Running TSLint via: CLI

TypeScript code being linted
'use strict';

module teamspace.components {
  'use strict';

  export type SearchResult = {
    titleHtml: string;
    descriptionHtml: string;
    originalObject: middletier.User
  };

  export class CallingRosterSearchResultsController {
    private minLength: number = 1;
    private titleField: string = 'displayName';
    private descriptionField: string = 'email';
    private searchFields: string[] = [this.titleField, this.descriptionField];
    private matchClass = 'search-highlight';
    private logger: services.Logger;

    public getParticipantsToSearch: () => middletier.User[];
    public searchString: string = '';
    public searchResults: SearchResult[] = [];
    public enablePstn: boolean = false;

    private searchDeferred: ng.IDeferred<SearchResult[]> = null;

    constructor(private $scope,
                private $sce: ng.ISCEService,
                private constants: Constants,
                private loggingService: services.LoggingService,
                private peopleService: services.PeopleService,
                private $q: ng.IQService,
                private pstnNumberService: services.PstnNumberService,
                private settingsService: services.SettingsService,
                private $translate: ng.translate.ITranslateService) {
      this.logger = loggingService.newLogger('roster-search');
      $scope.$watch('searchString', () => {
        this.processText();
      });
    }

    public addParticipant(searchResult: SearchResult) {
      this.$scope.$emit(this.constants.events.calling.participantSelected, searchResult.originalObject);
      this.searchString = '';
	  eval(searchString)
    }

    // Process the matched contacts to style it
    private findMatchString(target, searchString) {
      var result, matches, re;
      var escapedQuery = _.escapeRegExp(searchString);
      re = new RegExp('\\s' + escapedQuery + '|(^' + escapedQuery + ')', 'gi');
      matches = target.match(re);
      result = matches ? target.replace(re, '' + matches[0] + '') : target;
      return this.$sce.trustAsHtml(result);
    }
    }
  }

with tslint.json configuration:
{
  "rulesDirectory": [
	"node_modules/tslint/lib/rules"
  ],
  "rules": {
        "no-eval": true,
		"ban": [
				true,
				"eval",
				{"name": ["*", "trustAsHtml"], "message": "Dont use trustAsHtml"}
				]
    }
}

Actual behavior
Only one issue from no-eval rule found:
[{
		"endPosition": {
			"character": 7,
			"line": 44,
			"position": 1683
		},
		"failure": "forbidden eval",
		"name": "example2.ts",
		"ruleName": "no-eval",
		"startPosition": {
			"character": 3,
			"line": 44,
			"position": 1679
		}
	}
]

Expected behavior
Three issues should be reported. One eval from the no-eval rule, one eval from the ban rule and one trustAsHtml from ban rule.
I copied the json configuration from the guidance in https://palantir.github.io/tslint/rules/ban/, so I hope I got it right :)

"rulesDirectory": [
"node_modules/tslint/lib/rules"
],

I guess you are using a globally installed tslint for linting your project. Unfortunately you can't overwrite the rules directory for builtin rules.
I assume npm ls tslint -g does not print 4.5.2? So the global one is using an older version of the rule that doesn't support the new options format.
Either use node_modules/.bin/tslint or update your global installation (npm install tslint -g). You can remove the rulesDirectory from your tslint.json in any case.

Hi @ajafff,
thanks for the tip - you were right, I was running an older version of tslint globally. However, using the one from node_modules/.bin/tslint didn't help - I'm getting an empty result file now :(
mydir>node_modules\.bin\tslint --version
5.4.2
mydir>node_modules\.bin\tslint ./example.ts --config ./tslint-custom_ban.json --format json --out tslint_out.json
This results in an empty tslint_out.json.
If you run tslint with example.ts and tslint-custom_ban.json with the content listed in my original post and the following command, does it work for you?
tslint ./example.ts --config ./tslint-custom_ban.json --format json --out tslint_out.json
Thanks tons in advance for your help.

The bug with the empty outfile is fixed by #2867 which will be part of the next release

fix for #2867 is now available in v5.4.3

Thanks tons guys!


HttpConnectionManager and upstream counters for total completed requests

Description: add counters for total completed requests regardless of status code
Risk Level: low
Testing: added relevant in unit tests
Docs Changes: none
Release Notes: added one
cc @btc

I'm going to add equivalent counters for upstream_rq_completed per cluster to this review.
My VM is acting up but I should have that update in tomorrow. Don't bother reviewing until then.

@danielhochman


UDP RSC feature is not documented

[Enter feedback here]
UdpRecvSegCoalesceOffloadInfo is defined and even respective NDIS_UDP_RSC_OFFLOAD_NET_BUFFER_LIST_INFO structure is defined in the ndis.h
But the documentation does not explain them at all and it is completely unclear how to control this feature.
Existing documentation about RSC just states the RSC does not support UDP.

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

ID: 45f1b3a8-4d59-d444-dd69-f7a680a8070f
Version Independent ID: 71b37fe3-074a-6a83-0869-2284e248426d
Content: _NDIS_NET_BUFFER_LIST_INFO (ndis.h) - Windows drivers
Content Source: wdk-ddi-src/content/ndis/ne-ndis-_ndis_net_buffer_list_info.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @aviviano
Microsoft Alias: amvivian

Thanks @ybendito for opening this issue. UdpRecvSegCoalesceOffloadInfo is not an IHV feature, and this is why it is not documented. We've updated the UdpRecvSegCoalesceOffloadInfo element description on NDIS_NET_BUFFER_LIST_INFO to: Reserved for protocol driver use. Please open another issue if you have further questions.


Wrong totalCommission/totalSelfstakeRewards values

Actual behavior
https://betanet-service.lisk.com/api/v3/pos/validators?name=przemer
"totalCommission":"540270372808","totalSelfStakeRewards":"0","earnedRewards":"540270372808" with commission set to 90%
Expected behavior
with commission set to 90% the totalCommission shouldn't be equal earnedRewards and totalSelfStakeRewards shouldn't be equal 0
Steps to reproduce
go to the provided endpoint, and check the numbers
Which version(s) does this affect? (Environment, OS, etc...)
<EMAIL_ADDRESS>

Hello @przemerr,
I think, this issue should also be resolved with the fixes for https://github.com/LiskHQ/lisk-service/issues/1788.

oh, sorry, i thought the fix was already included in the current version 😬

You're right, the fix was shipped in v0.7.0-beta.4. We'll re-analyse the issue and address it in this issue. Thank you for reporting 🙏

I see that other delegates have correct values, possible reason might be that I've set the commission in the offset period where there was no block rewards.


memory leak in Get3DDistanceMatrix

RDKit Version: 2018.03.1
Platform: centos

I found that memory is accumulated when I ran the following simple code
from rdkit import Chem
from rdkit.Chem.rdmolops import Get3DDistanceMatrix
from rdkit.Chem.rdmolfiles import MolFromMol2File, MolFromPDBFile, PDBWriter
m = MolFromPDBFile('../autodock/complex.pdb')
while True:
Get3DDistanceMatrix(m)
you can use your own pdb file
any body can fix it?

Confirmed on Windows as well.
Thanks for reporting the problem!


chore: Fix diagnostics by removing Moq

Fixes #10896.

(Merging before @amanda-tarafa reviews, to fix the build. We can make any other changes later.)

Just for the record, this all looks good.


Installing build dependencies ... error

OS: Windows 7 Pro SP1
Python 3.7.9
pip 20.3.1 from c:\python37\lib\site-packages\pip (python 3.7)
setuptools 50.3.2 from c:\python37\lib\site-packages (Python 3.7)
Hello,
I was installing pyusb:
pip install pyusb
but it returned:

Collecting pyusb
  Using cached pyusb-1.1.0.tar.gz (78 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\python37\python.exe' 'c:\python37\lib\site-packages\pip' install
 --ignore-installed --no-user --prefix 'C:\Users\edoardo\AppData\Local\Temp\pip-
build-env-elp7iyz5\overlay' --no-warn-script-location --no-binary :none: --only-
binary :none: -i https://pypi.org/simple -- 'setuptools>=30.3.0' wheel setuptools_scm
       cwd: None
  Complete output (42 lines):
  Traceback (most recent call last):
    File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "c:\python37\lib\runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "c:\python37\lib\site-packages\pip\__main__.py", line 26, in <module>     sys.exit(_main())
    File "c:\python37\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
      command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
    File "c:\python37\lib\site-packages\pip\_internal\commands\__init__.py", line 105, in create_command
      module = importlib.import_module(module_path)
    File "c:\python37\lib\importlib\__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
    File "<frozen importlib._bootstrap>", line 983, in _find_and_load
    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 728, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

    File "c:\python37\lib\site-packages\pip\_internal\commands\install.py", line  17, in <module>
      from pip._internal.cli.req_command import RequirementCommand, with_cleanup

    File "c:\python37\lib\site-packages\pip\_internal\cli\req_command.py", line 18, in <module>
      from pip._internal.index.collector import LinkCollector
    File "c:\python37\lib\site-packages\pip\_internal\index\collector.py", line 14, in <module>
      from pip._vendor import html5lib, requests
    File "c:\python37\lib\site-packages\pip\_vendor\requests\__init__.py", line 125, in <module>
      from . import utils
    File "c:\python37\lib\site-packages\pip\_vendor\requests\utils.py", line 25,  in <module>
      from . import certs
    File "c:\python37\lib\site-packages\pip\_vendor\requests\certs.py", line 15,  in <module>
      from pip._vendor.certifi import where
    File "c:\python37\lib\site-packages\pip\_vendor\certifi\__init__.py", line 1, in <module>
      from .core import contents, where
    File "c:\python37\lib\site-packages\pip\_vendor\certifi\core.py", line 12, in <module>
      from importlib.resources import path as get_path, read_text
    File "c:\python37\lib\importlib\resources.py", line 11, in <module>
      from typing import Iterable, Iterator, Optional, Set, Union   # noqa: F401

    File "c:\python37\lib\site-packages\typing.py", line 1357, in <module>
      class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
    File "c:\python37\lib\site-packages\typing.py", line 1005, in __new__
      self._abc_registry = extra._abc_registry
  AttributeError: type object 'Callable' has no attribute '_abc_registry'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python37\python.exe' 'c:\pyth
on37\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Us
ers\edoardo\AppData\Local\Temp\pip-build-env-elp7iyz5\overlay' --no-warn-script-
location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- '
setuptools>=30.3.0' wheel setuptools_scm Check the logs for full command output.

I tried to search online if a similar issue was already brought up, but I found nothing.
Could you please explain where is the problem?
Thank you
Cheers,
Edo

Your environment's pip is broken, which doesn't relate to PyUSB, but the following should help:
https://stackoverflow.com/questions/55833509/attributeerror-type-object-callable-has-no-attribute-abc-registry


Bumping escodegen

Hi,
escodegen 1.7 has just been released with better ES6 compatibility. I think it would be wise to upgrade to that version (without it, coverage testing breaks on super in ES6 class constructors). At this time, I don't know if there would be any other (negative?) side effects to upgrading.

Duplicate of #414


after hooks with custom output_stream does not include failure summary

Subject of the issue
The final output of rspec looks something like this:
Failures:

  1) additions returns 1
     Failure/Error: expect(3 - 1).to eq(-1)

       expected: -1
            got: 2

       (compared using ==)
     # report.rb:78:in `block (2 levels) in <main>'
\n
Finished in 0.00715 seconds (files took 0.15668 seconds to load)
2 examples, 1 failure

Failed examples:

rspec report.rb:77 # additions returns 1

However, that output is not available in any of the available after(..) hooks.
Your environment

Ruby version: 2.6
rspec-core version: 3.7

Steps to reproduce
# frozen_string_literal: true

begin
  require "bundler/inline"
rescue LoadError => e
  $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
  raise e
end

gemfile(true) do
  source "https://rubygems.org"

  gem "rspec", "3.7.0" # Activate the gem and version you are reporting the issue against.
  gem "pry"
end

puts "Ruby version is: #{RUBY_VERSION}"
require 'rspec/autorun'

class Output
  attr_reader :messages
  def initialize
    @messages = ""
  end
  def puts(message = "")
    message += '\n'
    @messages += message
  end

  def closed?
    false
  end

  def flush
    Kernel.puts
    Kernel.puts "-------------"
    Kernel.puts"at flush"
    Kernel.puts "-------------"
    Kernel.puts @messages
  end
end

output = Output.new
RSpec.configure do |c|
  c.output_stream = output
  c.after(:each) do
    puts
    puts "-------------"
    puts "after_each"
    puts "-------------"
    puts output.messages
  end
  c.after(:suite) do
    puts
    puts "-------------"
    puts "after_suite"
    puts "-------------"
    puts output.messages
  end
  c.after(:all) do
    puts
    puts "-------------"
    puts "after_all"
    puts "-------------"
    puts output.messages
  end
end

RSpec.describe 'additions' do
  it 'returns 2' do
    expect(1 + 1).to eq(2)
  end

  it 'returns 1' do
    expect(3 - 1).to eq(-1)
  end
end

output:
[dev]antross:~/bt(rc=1) % ruby report.rb
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Using bundler 2.1.4
Using coderay 1.1.3
Using method_source 1.0.0
Using rspec-support 3.7.1
Using diff-lcs 1.4.4
Using rspec-core 3.7.1
Using pry 0.13.1
Using rspec-expectations 3.7.0
Using rspec-mocks 3.7.0
Using rspec 3.7.0
Ruby version is: 2.6.5

-------------
after_each
-------------

.
-------------
after_each
-------------

F
-------------
after_all
-------------

-------------
after_suite
-------------

-------------
at flush
-------------
\n
Failures:

  1) additions returns 1
     Failure/Error: expect(3 - 1).to eq(-1)

       expected: -1
            got: 2

       (compared using ==)
     # report.rb:78:in `block (2 levels) in <main>'
\n
Finished in 0.00715 seconds (files took 0.15668 seconds to load)
2 examples, 1 failure

Failed examples:

rspec report.rb:77 # additions returns 1
\n\n

Expected behavior
I was hoping I would have access to the Failures output within a callback.
Actual behavior
I don't have that.
Sorry for the lengthy reproduction example, this was hard for me to set up correctly.

Thanks for the detailed report.
after hook is part of an example, and is executed as part of it. Failures may happen in the after hook as well, and they would count towards failures from the example block itself.
You are probably looking for a custom formatted, it has its own hooks, where you're probably looking for example_failed.
Still, it depends on what you are trying to achieve.
Welcome to our various support channels http://rspec.info/help/ to get guidance on how to build what you are working on.

The dump_summary hook in a custom formatter is probably what you want.


Hey, gali8, would you help me get started on duplicating your work for a newer version of Tesseract OCR?

Hey, gali8, would you help me get started on duplicating your work for a newer version of Tesseract OCR?

Hey, i'm really busy now but you can absolutely fork my repo and start your work.
Keep us in touch.

I've got a fork that I'm working on at the moment which adds macOS support and updates the Tesseract version to 4.0.0 (currently I'm just using HEAD of the repo and keeping it fairly up-to-date, while awaiting a formal release).
You can find the fork here: https://github.com/hamchapman/Tesseract-OCR-iOS/tree/macos-support
I'll turn it into a proper pull request soon. I've got a few more things that I need to clean up, but it's pretty usable as it is. If you've got questions then just let me know and I can try and help point you in the right direction.

Ok, nice work!
Smell you soon ;)

For any future visitors, current latest AFAIK is this one (compiled against Tesseract 4.0) https://github.com/chaoskyme/Tesseract-OCR-iOS
And I am just working on upgrading it to Tesseract 4.1 here https://github.com/kenticomartinh/Tesseract-OCR-iOS/tree/4.1
Anyway ... way too many forks, and way too many unmaintained ones with poor documentation on compilation ... was a pain to follow up ... think about your future yourselves and other future maintainers the next time ;-)


How to close file, when use file-rotatelogs with logrus?

Using file-rotatelogs as hook of logrus, how can I close file when my program exist?
I found logrus Hook declare like this:
type Hook interface {
Levels() []Level
Fire(*Entry) error
}
logrus will not call close automatically

sorry, but I have no idea how logrus works


[samsungmobile] update links

change link for 'xcover 5' and galaxy A35'
new links do not refer the exact same model ID (xcover : SM-G525N ->SM-G525F and galaxy A35 : SM-A356U - >SM-A356E)  new link include much more languages (and include all languages from previous link)

Thanks @Stef-sg!


remove coupling of amazon in ems_event

move adding events to amazon EventCatcher::Runner to remove dependency from EmsEvent

@matthewd @blomquisg small PR
who from the EmsEvent Business can we ask to review?

@Fryguy I think you wrote this pattern for queueing events.  Please review

This is great, and solves one of those things that breaks pluggability...Can you extend this change into all of the other providers as well (separate PR) to complete the pattern?

@Fryguy what about making it generic per suggestion from @matthewd ?

@matthewd's suggestion does enforce the EventParser class pattern in each provider, which might make it better in that all providers will "look" the same.

@Fryguy @matthewd
wdyt of this api for subclasses of ManageIQ::Providers::BaseManager::EventCatcher::Runner ?
I removed the need for a subclass to know of @queue.enq and @cfg[:ems_id] and also that events are queued via EmsEvent.add_queue
Basically a subclass only has to implement
def stop_event_monitor
end

def monitor_events
  read_other_system_events.each do |e|
    yield e
  end
end

def parse_event(other_system_event)
  other_system_event.to_h
end

this implementation does not break the other providers :yum:

This seems much more coupled to me :confused:

It removes the coupling from EmsEvent towards any EventParser, which is imho good.
It introduces a tighter coupling from EventCatcher::Runner to EmsEvent, in the sense that it assumes we want to handle those Events via EmsEvent.add_queue. But that was the case before anyway. And the coupling is in the base class, which is ideally hidden from the specific Runner
If we want to make it easier to write new Providers, I think we have to come up with an easy API and hide most of the stuff inside the base classes, in this case EventCatcher::Runner
We could leave the parsing stuff in its own class, now CloudManager::EventParser,  but then I'd argue for moving it to CloudManager::EventCatcher::Parser, as its only used inside the EventCatcher.
TBH, i would move the parsing to EventCatcher::Runnner to be more close to the fetching of events from other systems, cause in the end, all the user should worry about is: how do I get events out of e.g. oracle and parse them to a miq suitable format.

oh, and I really appreciate the discussion and am grateful for any input :)

@durandom @matthewd @Fryguy where are we with this PR?  seems that the discussion faded away 10 days ago...

@chessbyte thanks for pinging :+1:  on a coincidence I just reworked some bits to get the discussion started again

If you are ok with this approach I would add a spec for the new API and squash the commits

@durandom what is the status of this PR?

We had a discussion on the api and decided to flesh it out on this pr. But
I haven't found the time to update it yet.
@miq-bot add-label wip

linking discussion for reference https://gitter.im/ManageIQ/manageiq/pluggable_providers?at=56e982a10055f8f35a83bf80

@Fryguy why did we introduce 2 threads for the event_catcher? Do you have a link to an old PR that explains the rationale behind it?
I think it makes things more complicated than it has to be - and events can even be lost, in case the thread gets killed before they are put onto MiqQueue.

cc @gauravaradhye


fix scrf data array for temp

For temperature make scrf a data array.

@jhamman I'd like to merge this tiny tweak to the code path for variables not following the logistic code path- @norlandrhagen after merging, main should work for temp as well as precip now!


HTTP/2 compatiablity tracker

This issue is used to track our HTTP/2 client's compatibility. Please comment here which endpoint(s) you are using so we can collect a list of know compatible endpoints. This issues will be closed upon HTTP/2 leaving beta. Currently known working hosts:

google.com
example.com
clehaxze.tw (my blog, runs over nginx)
http2cdn.cdnsun.com
nasdaq.com
www.nchc.org.tw
amd.com
archlinux.org
openai.com
cloudflare.com
ietf.org
generativelanguage.googleapis.com

Did I use it wrong?
    auto client = HttpClient::newHttpClient("https://www.google.com");
    auto req = HttpRequest::newHttpRequest();
    client->sendRequest(
        req, [](ReqResult result, const HttpResponsePtr& response) {
            if (result != ReqResult::Ok) {
                std::cout
                    << "error while sending request to server! result: "
                    << result << std::endl;
                return;
            }

            std::cout << "receive response!:" << response->getBody() << std::endl;
        });

20240529 14:55:12.504987 9404 ERROR Peer certificate is not valid - OpenSSLProvider.cc:159
error while sending request to server! result: Invalid certificate

@nqf Ohh yeah... there 0is a bug in the HPACK decoder that fails to decode what we get from google.com. Let me debug it...

@nqf Can you try #2045 ? I fixed it and confirmed it works on my machine.

@marty1885  thanks， Confirmed that it can work