Unable to read api 'spec' from path http://localhost:7111/swagger/spec (server returned undefined)

Hi Serena,
Thank you for providing the tornado-swagger package :)
I try to run the example but opening the url http://localhost:7111/swagger/spec.html shows me the following message:
"Unable to read api 'spec' from path http://localhost:7111/swagger/spec (server returned undefined)"
Maybe you quickly see what I did wrong. I have attached my code below.
Thank you for any help.
Best
Andreas
I tried to run the following code:

from tornado_swagger import swagger
import tornado.web
swagger.docs()
class ItemNoParamHandler(tornado.web.RequestHandler):
@swagger.operation(nickname='create')
def get(self):
"""
@param body: create test results for a item.
@type body: L{Item}
@return 200: item is created.
@raise 400: invalid input
"""
self.write("test")
def make_app():
return swagger.Application([
(r"/", ItemNoParamHandler)
])
@swagger.model
class Item:
"""
@descriptin:
This is an example of a model class that has parameters in its constructor
and the fields in the swagger spec are derived from the parameters to init.
@notes:
In this case we would have property1, property2 as required parameters and property3 as optional parameter.
@property property3: Item decription
@ptype property3: L{PropertySubclass}
"""
def init(self, property1, property2=None):
self.property1 = property1
self.property2 = property2
if name == "main":
app = make_app()
app.listen(7111)
tornado.ioloop.IOLoop.current().start()

Hi Andreas,
Thanks for using tornado-swagger. About your problem, I think it is due to the version of tornado is not compatible, I have restricted the tornado version to be less than 4.3, and tested it locally. Hope it works fine in your place too, if not, please let me know, I will fix it ASAP.

Hi Serena,
Ah, I see. I'am using tornado version 5.0.2, so that is probably the problem.
However, I have problems to downgrade to tornado version < 4.3 as I run into a lot of dependency conflicts.
If you would have time to test it as well with higher versions of tornado would be great, I think your package could help a lot of users to work with Swagger.

Hi Andreas,
Thanks for your advice, I will look into it when I am available.


Set NuGet.exe to version 3.4.3

Let me know if you need me to click merge if this one is ready to go. It sounds like all approvals are in place. I don't want to merge it prematurely if you're still wrapping up testing.


fatal error: SdFat.h: No such file or directory

Hello,
I'm getting the following error when trying to build this library.
In file included from /root/Arduino/libraries/EspTinyUSB/src/device/msc/sdfatusb.cpp:1:
/root/Arduino/libraries/EspTinyUSB/src/sdfatusb.h:4:10: fatal error: SdFat.h: No such file or directory
 #include "SdFat.h"

It appears to be caused by the import from https://github.com/chegewara/EspTinyUSB/commit/567ffd764f21f803b21dc9b1122dd00b5f523d86

Thanks for reporting, i reverted that PR.

Thanks!


About Customize Theme information which had not found.

About Customize Theme information which had not found.
(https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/scripts/site/_site/src/theme.less)404 not found

@xiaoyiaishide https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/scripts/site/_site/doc/theme.less
下个版本会更新文档


Error: invalid or missing json property for binding PARTYKIT_AI

Started getting this error when trying to deploy our partykit instance. We've been using/deploying partykit successfully for a while but today started getting the error below when deploying. We haven't changed anything for a few weeks, so I'm not sure why we would suddenly start getting this error. We aren't using any of Partykit's AI features.
On the server side we're using y-partykit for our main server and then a very basic event bus server that implements Party.Server.
Has there been a recent update that would cause this error to happen?
file:///actions-runner/_work/{repo}/node_modules/.pnpm/partykit@0.0.105/node_modules/partykit/dist/bin.mjs:91459
    throw err;
    ^

Error: invalid or missing json property for binding PARTYKIT_AI
    at fetchResult (file:///actions-runner/_work/{repo}/node_modules/.pnpm/partykit@0.0.105/node_modules/partykit/dist/bin.mjs:84870:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async deploy (file:///actions-runner/_work/{repo}/node_modules/.pnpm/partykit@0.0.105/node_modules/partykit/dist/bin.mjs:90908:21)
    at async _Command.<anonymous> (file:///actions-runner/_work/{repo}/node_modules/.pnpm/partykit@0.0.105/node_modules/partykit/dist/bin.mjs:91548:3)

I get the same issue when following the quickstart guide to deploy a new partykit instance.
npm create partykit@latest --typescript --git
cd ./new-project
npx partykit deploy

Error: invalid or missing json property for binding PARTYKIT_AI
    at fetchResult (file:///new-project/node_modules/partykit/dist/bin.mjs:84791:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async deploy (file:///new-project/node_modules/partykit/dist/bin.mjs:90818:21)
    at async _Command.<anonymous> (file:///new-project/node_modules/partykit/dist/bin.mjs:91458:3)

Also encountering this issue
partykit deploy --preview ${BRANCH_NAME_CLEAN} --var NEXT_APP_URL=https://${VERCEL_URL} --var DATABASE_URL=${DATABASE_URL}
🎈 PartyKit v0.0.103
---------------------
Deploying...
file:///vercel/path0/node_modules/partykit/dist/bin.mjs:91444
    throw err;
    ^

Error: invalid or missing json property for binding PARTYKIT_AI
    at fetchResult (file:///vercel/path0/node_modules/partykit/dist/bin.mjs:84866:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async deploy (file:///vercel/path0/node_modules/partykit/dist/bin.mjs:90893:21)
    at async _Command.<anonymous> (file:///vercel/path0/node_modules/partykit/dist/bin.mjs:91533:3)

Node.js v18.19.1
error: script "build" exited with code 7
Error: Command "bun run build" exited with 7

Sorry about this, I think there's been a breaking change in CF. I'll try to fix it this weekend

This should be fixed now!  You don't have to update anything, just try to deploy again. I'm closing this issue, but please comment if it hasn't been fixed for you

@threepointone we were able to successfully deploy this morning; thank you!


Unit testing 2

Re-create schema for each test!

Codecov Report

Merging #11 into master will increase coverage by 5.14%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage   90.81%   95.95%   +5.14%
==========================================
  Files           1        1
  Lines          98       99       +1
  Branches       21       21
==========================================
+ Hits           89       95       +6
+ Misses          4        2       -2
+ Partials        5        2       -3

Impacted Files
Coverage Δ

src/mysql_batch.py
95.95% <100%> (+5.14%)
:arrow_up:

Continue to review full report at Codecov.

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


Response Message Not Visible

DESCRIPTION:
The response message of the signup page is not clearly visible and is getting hidden behind the footer.

I am a GSSoC Contributor and would like to work on this issue.
Please, assign it to me under GSSoC @MonalikaPatnaik

The SignUp component is already assigned to be fixed, if that PR doesn't cover those messages, it will be assigned to you.

Thanks for response, let me know once that PR has been reviewed and require my changes.


error on gain range when used by soapy_power for LimeSDR

entering the command:
soapy_power -r 2.56M -f 88M:98M -B 500k -F soapy_power_bin -O output.txt --even -T 1 --debug
I get the following output:

DEBUG: pyfftw module found (using 4 threads by default)
Win32; Microsoft Visual C++ version 14.0; Boost_106300; UHD_<IP_ADDRESS>-0-gc705922a
WARNING: Sample rate 2560000.0 Hz is not supported, setting it to 192000.0 Hz!
Traceback (most recent call last):
File "build\temp.win-amd64-3.6\workpath\soapy_power.py.399ce066-d3a8-43ab-a0ec-ae2654d1d966.py", line 2, in
File "soapypower_main_.py", line 317, in main
File "soapypower\power.py", line 38, in init
File "site-packages\simplesoapy.py", line 114, in init
File "site-packages\simplesoapy.py", line 230, in gain
ValueError: Gain out of range (0.0, 0.0)!
Failed to execute script soapy_power.py.399ce066-d3a8-43ab-a0ec-ae2654d1d966

Looking at the source, it seems that  get_gain_range()  returns 0 in both  gain_range[0]   and  gain_range[1].  I think this happens because one or more amp names should be supplied. I can't find those names listed. Could you please supply a soapy_power usage example for LimeSDR using those parameters? I saw "LNA=28,VGA=12,AMP=0" but I think those are for another radio...
Thank you

...also tried with   -G "LNA=0,TIA=-3,PGA=0"  and the error message is now:
"ValueError: Unknown amplification element!"

It seems that you have not specified right SDR device and default device get used (which is soundcard or something like that on Windows). Use --detect option to find right device.

Thank you Michal.
I will certainly retry this evening with --detect and then specifying the device name.
Will I get a string that I can copy / paste for the device name? Also, once I will use it with the specific device name, can I then use the  -G "LNA=0,TIA=-3,PGA=0"  parameter?
Thank you,
Mario

Yes, device string should be copy-pasteable, but if you have only one device of same kind, specifiing appropriate driver=NAME is enough.
After you specify right device string, you can then also use --info option to show device-specific settings. You will see which amplification elements (for -G option) are supported by your device. Or you can simply use -g option and specify total gain (which will be automatically distributed to available amplification elements by device driver).

Hello and thank you.
This command works:  soapy_power -d driver=lime -r 2.56M -f 30M:60M -B 500k -F soapy_power_bin -O output.bin --even -T 5
For the -G "LNA=0,TIA=-3,PGA=0" parameter I get: unrecognized arguments: -G LNA=0,TIA=-3,PGA=0
I could not list device-specific settings because I get error: unrecognized arguments: --info
could you please give me some additional suggestions?

Are you sure that you have latest version of soapy_power (and simplesoapy) installed? This seems like you have old version which didn't have --info and -G options. You can run soapy_power --help to see all available options and soapy_power --version to see version number.

How did you installed soapy_power? If you have used pip, then you can upgrade with pip install --upgrade soapy_power. Or you can use MSI installer (or portable zip file) for my QSpectrumAnalyzer app which also bundles soapy_power.

I've used the QSpectrumAnalyzer msi installer, days ago... tomorrow I will check versions and update, not at home now...
I've noticed that I could not run the command for frequencies 15M:30M because the range exposed by the device starts from 30MHz.  I remember a thread on LimeSDR Discourse forum with the method to tune below 30MHz for HF usage.  And I can actually listen from 0 to 30 using SDR console   v3.  Could you please check if the same vco trick (I think) is feasible in soapy_power ?   I would use it for Sun and Jupiter-Io emissions between 15 and 30 MHz...

If you have used MSI installer, you should have latest version. Didn't you installed soapy_power with pip sometimes before running MSI installer (so that old version of soapy_power could be maybe used instead of new version installed by installer)? Try to run soapy_power.exe directly from Program Files folder where have you installed QSpectrumAnalyzer.

I will look at low frequency operation. But if you specify big enough sample rate (61,44 MHz), it should cover range from 0 - 30 MHz. Or am I mistaken? I have not tried LimeSDR for HF usage yet...

About previous usage of pip ... could also be, I will check. I'm using Anaconda with python 3.x
I will try like you are suggesting and
I could also remove everything and try a clean reinstall.
About the 60MHz sample rate: will do on the pc and see...
If that is the only way to work at HF it could be a game changer for my project because I hoped to be able to run at lower sampling rates on usb 2 / raspberry pi 3 .   But that sampling rate is doable only with usb 3 on a more powerful single board computer... I woul run that 24/7 and power consumption would be higher if I have to use a laptop...

I really don't know if that is the case or if there is some more clever trick how to work with LimeSDR at HF. Like I said I never tried HF. You can try to look at https://discourse.myriadrf.org forums and if you don't find answer just start a new thread.

Hello Michal.
I checked versions and reinstalled. Now everything works and options are there.
I'm closing the issue.
About the HF coverage: I've used the following command and got output from 14.78 to 76.22 MHz.  Actually more than what I need but good to see I can reach down to 15 MHz.
Range is visible also in the first row of the text output below.
soapy_power -d driver=lime -r 61.44M -f 43M:48M -b 1024 -F rtl_power -u 1 -G "LNA=0,TIA=-3,PGA=0"
INFO: min_freq (after crop): 14.780 MHz
INFO: max_freq (after crop): 76.220 MHz
[INFO] SoapyLMS7::setFrequency(Rx, 0, RF, 45.5 MHz)
SetFrequency using cache values vco:1, csw:145
←[1m←[33m[WARNING] GetDC_IQ_Interp(45.5 MHz, ch=0, tx=0): no matches between [44.5, 46.5] MHz←[0m
L 1434800
2017-04-21, 16:45:12, 14780000.0, 76220000.0, 60000.0, 1638800, -91.3437, -97.3636, -139.217, -139.53

I will do further test runs just to see the best way to limit the highest frequency to my range of interest. I need to avoid wasting disk space with 24/7 runs :-)
Thank you for suggestion to post at https://discourse.myriadrf.org forums to go deeper on the HF tuning topic.
Thank you.

I have looked at discussions and it seems you should be able to receive on HF even with much lower sample rate. Trick is to use NCO (tunable element BB in SoapySDR terminology) instead of PLL (default tunable element RF in SoapySDR terminology). Unfortunately soapy_power doesn't support this (it always sets default RF frequency, which is min. 30 MHz).
I will add support for it, but it will take some time (and I am afraid I wouldn't be able to test it properly, my LimeSDR doesn't have HF-mod and I don't also have any long antenna).

Btw. with LimeSDR don't forget to also set filter bandwidth (-w option), setting sample rate is not enough (default filter bandwidth is if I am not mistaken much lower than 60 MHz).

Just to let you know, latest version of SimpleSoapy / soapy_power does support center frequency < 30 MHz on LimeSDR with any sample rate.

Great! thank you! I will download and test latest version this evening when
I'll be back at home...
Il 27 apr 2017 09:56, "Michal Krenek (Mikos)"<EMAIL_ADDRESS>ha
scritto:

Just to let you know, latest version of SimpleSoapy / soapy_power does
support center frequency < 30 MHz on LimeSDR with any sample rate.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/xmikos/simplesoapy/issues/1#issuecomment-297640723,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABH5YXa-icQwsYw5ZCLtC5bmYAsefMZpks5r0EokgaJpZM4NBytk
.

Thank you for your efforts. On May 1st I've been able to run scans on HF and successfully plotted 15 minutes of data:


Debugging help

I'd like to use VSCode to step through the sources of Miri and Rustc as a way of getting more familiar with the code.
I'm new to Rust and still a bit at sea with the tool chain. A section in the readme that explains how to use VSCode to debug Miri would be awesome.

I have never even used vscode to debug normal Rust programs, let alone miri or the compiler. in the few cases that I need a debugger I used gdb to step through. and that works out of the box like any other gdb debugging.
Do you already have a way to debug regular rust programs with vscode?

I do have a way to debug regular rust programs, but it is early days for me yet. While playing around with the settings of VSCode, I drilled into this example cargo run -v tests/run-pass/vecs.rs. The last output from that is: Running `target/debug/miri tests/run-pass/vecs.rs.  If immediately afterwards I run target/debug/miri tests/run-pass/vecs.rs, it fails with:
dyld: Library not loaded: @rpath/librustc_driver-159fb3307eceb69b.dylib
  Referenced from: /Users/hermanv/projects/miri/target/debug/miri
  Reason: image not found

I suspect there is some environmental variable that cargo sets that makes it succeed when it is run via cargo. Any thoughts on what this might be would be very helpful.

For my setup, this path works: /Users/hermanv/.multirust/toolchains/nightly-x86_64-apple-darwin/lib. I can now debug by using the following launch.json with VSCode (and after installing these extensions: https://github.com/rust-lang-nursery/rls-vscode and https://github.com/vadimcn/vscode-lldb).
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug executable 'miri'",
            "cargo": {
                "args": [
                    "build",
                    "--bin=miri",
                    "--package=miri",
                ],
            },
            "args": [
                "tests/run-pass/vecs.rs",
            ],
            "cwd": "${workspaceFolder}",
            "env": {
                "DYLD_LIBRARY_PATH": "/Users/hermanv/.multirust/toolchains/nightly-x86_64-apple-darwin/lib"
            }
        }
    ]
}

TBH I think you are more likely to find help in one of the rustc compiler channels (Zulip, IRC, Discord, or the internals forum). Your issue is likely not specific to miri, and there's few enough people following this issue tracker that I think it unlikely someone will be able to help you.
I for one have never managed to get VSCode to do anything sensible with the rustc sources, let alone miri.


Initial insert mode bindings not loaded

General information

Terminal program: alacritty
Operating system: Arch (5.15.10-zen1-1-zen)
ZSH framework: antigen
ZSH version: zsh 5.8 (x86_64-pc-linux-gnu)
ZVM version: latest

Basic examination

[x] I have read through the README page
[x] I have the latest version of zsh-vi-mode
[x] I have tested with another terminal program (xterm)

Problem description
Keybindings declared in 'zvm_after_lazy_keybindings' over the keymap viins,
are only available ones leaf and returned to insert mode.
Declaring the keybindings in any of following places,
does not register and/or get overridden.

'zvm_config'
'zvm_after_init_commands'
'zvm_before_init_commands'
'zvm_before_lazy_keybindings_commands'

Did not realize the difference between :
'zvm_after_init'
'zvm_after_init_commands'
Completely new to zsh so don't know if this structure is a zsh thing or not,
if it ain't, maybe try to emphasize structure some more in the readme file?
Anyways, sorry if I wasted your time, And thanks for an amazing plugin!


Deployment: ev vs. event, what happens when both are installed?

In this page, Mr. Boden states that

No further setup is necessary; if either of these extensions is present, the evented I/O loop toolkit used by Ratchet will automatically utilize them, which will drastically improve concurrency.

My questions are:

What happens when both ev and event extension are installed? Does Ratchet randomly pick one or it has a preferred extension?
How do I know that either ev or event is being used by Ratchet? There are a few Gist on how to install ev/event, usually both. They seem right, but it will be great if there is a way to make sure the extension is successfully installed.

Thanks.

If that happens ev will be used: https://github.com/reactphp/event-loop/blob/master/src/Factory.php#L50-L72

@WyriHaximus thanks for the pointer. I guess I can stick an echo line in that function to check if either ev or event extension is used as well.


Configurations

Create a config file to control things like

range of projection calculations
how much history to keep

Blocked by #18 (need persistence to be relevent)


ncurses: 6.0-20170729 -> 6.0-20170902

Layout issues in tig were noticed with previous ncurses version
within zsh with TERM=xterm-256color.
No issues were observed, under same test conditions,
with 6.0 or 6.0-20170902.
Setting TERM=screen worked for all ncurses versions listed above.
Motivation for this change
Layout issues in tig were noticed with previous ncurses version
within zsh with TERM=xterm-256color.
No issues were observed, under same test conditions,
with 6.0 or 6.0-20170902.
Setting TERM=screen worked for all ncurses versions listed above.
Things done

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

[ ] NixOS
[ ] macOS
[x] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Please change the target branch from master to staging, since ncurses will issue a lot of rebuilds, which we usually want to avoid happen on master first.

People with push access can retarget PRs themselves, though it's good to be careful if it doesn't bring unrelated commits, or do a master->staging merge before to avoid that.

On staging this was actually done already by @peltz fea02e30.
Note: this bump probably solves some security issues as well: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873746


Release v4

Plan: release version 4 this week or early next.
Until then, planning to focus on:

(a) Any open bugs
(b) Any "semi-bugs", i.e. common points of user confusion
(c) Docs
(d) Examples

To do:

Roll in pending PRs:

#114
#148
At least one to VLSIR, for the schema literals

#152

#145
#136
#60
Recent PDK additions
Lotta stuff about Bundles

Also roll in:

#139
#140
#30

Maybe roll in:

#147
#142
#120
#71
#115

Examples:

#126
#125

I think these are done(?):

#68
#39

@dan-fritchman Can you close this?  v4 was released.
Maybe start a v5 release issue to start.  Or make a v4.1 or v5 milestone?

Didn't know we had so much housekeeping enthusiasm!
A few reminders to future-selves as to what made it:

Partially in v4, remaining open to follow:

#140
#125

Didn't make it:

#65
#71
#115

Everything else in the list above is in v4.


Lmb 799 fix inconsistencies update state en corrigeer fouten forms

Description
We want the wijzig mandataris and the corrigeer mandataris form to react and look as good as identical.

Date input errors are shown as alerts in update-state
No help text under the date input of update-state
Status must have the verplicht plaque next to the label
Fractie selector does not show Verplicht (field cannot be empty but also change it i assume for the looks)

How to test

Fill in an invalid date in the wijzig mandataris modal date input and it should show the error as text
The helptext of the date should always be under the date input with the same value as the correct forms
Status selector should have required plaque
Fractie selector should have required plaque

Attachments

// Helptext always shown

Comparison


SROIE dataset

can I run your model on original SROIE dataset without modification ?

@zanina14 I am afraid not because the SROIE dataset does not have token-level annotation. So you may have to pre-process the dataset and get the token-level annoatation.

can you provide further explanation on how to do it ? did you use regex expression to label tokens ?

@zanina14 SROIE provides the labels for OCR lines, but not tokens. You need to map the given labels to each token in the current dataset, so that the LayoutLM can be applied

which type of labels did you use ?

@zanina14 We pre-process the dataset and use token-level annotations


Incompatible with linkcheck

This plugin is incompatible with the linkcheck option to makedocs

Transferred to https://github.com/JuliaDocs/DocumenterCitations.jl/issues/19


Using AWS SQS or Kinesis for exchanging metrics data between Hystrix.stream and Turbine

I am looking for a Binder implementation for AWS SQS or Kinesis. I did find a Kinesis Binder. I am yet to use it though. I am assuming I can use it as a drop-in replacement for a Rabbit binder and push hystrix.stream data to Kinesis. What I am not getting is how to use it with Turbine to pull data from Kinesis?
Is there any examples that I can use?

Hi, @hbagchi. Yes, we have a kinesis-binder under incubation and we have plans to release the binder implementation. To integrate with Turbine, all you'd probably need is to swap spring-cloud-starter-stream-rabbit with spring-cloud-starter-stream-aws-kinesis dependency. You can try with SNAPSHOTs if you'd like, but it hasn't been vetted out by the team yet.
For issues specific fo kinesis-binder, please use its repo and for hysterix/turbine, you can use their respective backlogs.


wss - goes to onerror after compile

Hi,
When trying to run the plugin on wss, the wesocket goes right to on error.
I found in the logcat this message:
Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Couldn't find any solution to this issue.
Any idea ?
Thanks,
Tomer

Check whether the issue is able to reproduce on 4.4+ device. In other words, your app works fine on the built-in WebSocket? If a similar error occurs, the cert might be broken.

 Post here again if you still have any problem.


Settings tab takes a long time to open

Almost every time I open the settings window, it hangs for just long enough to make me question whether Binja's about to crash.

Dupe of https://github.com/Vector35/binaryninja-api/issues/3356


Add JSON Schema misconfigurations rules

https://apisyouwonthate.slack.com/archives/C0HGLHK0B/p1712304065817669
https://apisyouwonthate.slack.com/archives/C0HGLHK0B/p1712405606458459

Nice!
did you omit severity on purpose?

this throws a false positive with the following schema
  rule/json-schema-array-misconfiguration:
    subject:
      type: Schema
    where:
      - subject:
          type: Schema
          property: type
        assertions:
          const: array
    assertions:
      disallowed:
        - properties

type: object
properties:
  thing:
    type: array
    items:
      type: object // if this line is present, the error goes away. But this is not mandatory by the JSON Schema spec.
      properties: {}

also throws with this schema
allOf:
- type: object
- properties: {}

This rule throws a false positive
  rule/json-schema-object-with-items:
    severity: warn
    message: '"items" SHOULD NOT be used with "type: object"'
    suggest:
      - properties
    subject:
      type: Schema
    where:
      - subject:
          type: Schema
          property: type
        assertions:
          const: object
    assertions:
      disallowed:
        - items

type: object
properties:
  thing3:
    items:
      properties: {}

These are good points and might be added to the README. However, if I'm the type of person who has advanced lint rules, I'm probably the type of person who requires type: object to be explicitly defined when defining properties. (At least, I'm that type of person.)
I did intentionally omit message and severity (defaults to error).


Make lazyConnect parameter optional in cache-redis plugin

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

[ ] 1. The issue provides a reproduction available on
Github,
Stackblitz
or
CodeSandbox

Make sure to fork this template and run yarn generate in the terminal.
Please make sure Mesh package versions under package.json matches yours.

[ ] 2. A failing test has been provided
[ ] 3. A local solution has been provided
[ ] 4. A pull request is pending review

Describe the bug
Try to connect to set a Redis instance from managed service from Azure. It always returns this error message and is unable to connect to Redis:
[ioredis] Unhandled error event: Error: connect ETIMEDOUT
    at TLSSocket.<anonymous> (/workspace/node_modules/.pnpm/ioredis@5.3.2/node_modules/ioredis/built/Redis.js:170:41)
    at Object.onceWrapper (node:events:627:28)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket.emit (node:domain:489:12)
    at TLSSocket.Socket._onTimeout (node:net:550:8)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

To Reproduce Steps to reproduce the behavior:
Connect a Redis instance on Azure by setting the url parameter in this format:
url: `rediss://:${PASSWORD}@${HOST}:${PORT}?tls=true`

It always returns the timeout error message as I mentioned above because in the cache-redis plugin the lazyConnect is always set to true and it always injects these parameters to the url: &lazyConnect=true&enableAutoPipelining=true&enableOfflineQueue=true
I tried to modify the plugin and commented out this line and it fixed the issue:
https://github.com/Urigo/graphql-mesh/blob/b895cb29d568d9b515b5cb2261ebdc8762085b67/packages/cache/redis/src/index.ts#L24

Expected behavior
It should be possible to set lazyConnect parameter to false as it's not working on the Azure Redis instance.

Environment:

OS:
"@graphql-mesh/cache-redis": "^0.94.6"
NodeJS:

Additional context

Thanks for the quick reply. I sent a PR for this.

@ardatan I tried with the new version of cache-redis but it's still impossible to connect Azure Redis as it seems lazyConnect is not supported there totally. Even when I set lazyConnect: false with the new config from my PR it's still timeout. ONLY when I remove lazyConnect completely from the cache-redis package then it able to connect to the Redis instance on Azure and everything is working as expected. Any idea how to proceed with this issue?
Should I create a new issue or you prefer to open this issue and iterate on it here?

As a proposal: I guess as it's possible to add any parameter with url option in cache-redis package. So maybe we can simplify that package and just use url then we can remove all other options (host, port, password, and even lazyConnect) there and it's more flexible as anyone can pass any type of parameter that supports by ioredis package and we don't need to hardcode any parameter in the package level then.
Any idea?

Or rather than set the value when it's false we can skip adding this to the URL here:
https://github.com/Urigo/graphql-mesh/blob/master/packages/cache/redis/src/index.ts#L30
As it's set to false by default in ioredis package:
https://ioredis.readthedocs.io/en/latest/API/

In case of "lazyConnect: false", we can just avoid setting lazyConnect, and that's it. We don't need to overthink about url and so on, right?

Yeah agree, that's simpler. Let me send a new PR to fix it.


ES6 - Write Higher Order Arrow Functions - No negative integers included in seed

For the task: "Use arrow function syntax to compute the square of only the positive integers (fractions are not integers) in the array realNumberArray and store the new array in the variable squaredIntegers."
const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
The above seeded array does not contain negative integers, causing solutions to pass that do not actually check for them. As the square of a negative number is a positive number, changing any of the integer values above to a negative number will still pass the equality test, eg. 4X4 = -4X-4 = 16, for the following test condition: squaredIntegers should be [16, 1764, 36]
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/write-higher-order-arrow-functions/

I will claim this issue.
Thank you for reporting it.
I also noticed there is a test User did replace var keyword. which should be removed as well.

I also want to replace the word fraction with decimal number.
Use arrow function syntax to compute the square of only the positive integers (fractions are not integers) in the array realNumberArray and store the new array in the variable squaredIntegers.
fractions look like 1/4
decimal numbers look like 0.25

I have created a issue in the curriculum repo that references this issue. This issue can be closed and the referenced issue can instead be followed.

const squaredIntegers = arr.filter((arr) => Number.isInteger(arr) && arr > 0).map((arr) => arr = arr * arr);


feature request screen protection

after disable screen protection you cant enable it again you need to turn off wallet to get protection back
you need to add enable screen protection after disable

dupicate of #103


HeaderCommentFixer - fix handling blank lines

Try to resolve issue #2730.
Remove every extra line endings after the header_comment.

Thank you @s7b4.


frn code？which one？1d? 2d? conver?

where is the code?
how to use it?

All the code is filter_response_normalization.
You can use this directory as a module.
The convert_model function invalidates the ReLU in the pytorch model and replaces BN according to the dimension.  Please see README.md for usage.
But I recommend that you manually replace BN and ReLU with FRN and TLU, as the performance of the model may change.

1d? 2d?what is the differemt？

The dimensions input to each function are different.
It corresponds to torch.nn.BatchNormxd.


python311Packages.google-cloud-videointelligence: 2.11.1 -> 2.11.2

Changelog: https://github.com/googleapis/python-videointelligence/blob/v2.11.2/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 235783 run on x86_64-linux 1

4 packages built:

python310Packages.google-cloud-videointelligence
python310Packages.google-cloud-videointelligence.dist
python311Packages.google-cloud-videointelligence
python311Packages.google-cloud-videointelligence.dist


Collision fixes

Fixes all collision issues and restores full functionality to fortwars! :D
Does require map recompiles to be compatible however since the shield blocks in front of spawns are tagged as "solid" in all maps, which makes them impenetrable...

LGTM, thanks :D


[WIP] Add workspace switcher

Fixes
https://issues.redhat.com/browse/HAC-2747

Description

Add workspace switcher using the ContextSwitcher component.
Update ContextSwitcher component to support recursive menu items
Update breadcrumb to support custom components

Type of change

[x] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review

https://user-images.githubusercontent.com/20013884/216656542-c1b39f26-629a-4338-b42f-45e724a11c9a.mp4

How to test or reproduce?

Browser conformance:

[ ] Chrome
[x] Firefox
[ ] Safari
[ ] Edge

cc @openshift/team-hacdev-ux @karthikjeeyar

@rottencandy Thanks for tagging. I think we'd just want to remove the arrow ">" between the (WS) label and the workspace name, and then also replace the arrow ">" between the workspace switcher icon button and the 'proper' breadcrumb with some other separator. The design has a "/" line but we can work through whatever works.

@itsptk does this look good? I couldn't find that icon in PF libs so I used a slash character instead

/retest

@itsptk does this look good? I couldn't find that icon in PF libs so I used a slash character instead

Thanks @rottencandy , this looks better. This might be a change to the ContextSwitcher but would it be possible to reduce the amount of space between the workspace/application name and the icon button to open the switcher? Right now there is more space between the resource and the icon button than there is the separator after it, so they sort of look disassociated.
I think that slash looks good for now, we may take a look at another separator option and get back to you this week. Thanks again.

In the breadcrumbs Application contains a broken link.

Updated!

Updated!

This looks really good, thanks @rottencandy . If possible, could we increase the space between the separator and the start of the breadcrumb (the space between "/" and "Applications" here) so that the separation between the workspace switcher and  breadcrumb is more apparent? Maybe closer matching the distance between the "..." icon button and the "/" seperator?
Also, we talked through it with the UX team more and are thinking we'd like to switch the separator from "/" to "|" to maybe make it slightly clearer. Thanks very much!

Switched to │ and added equal spacing to both sides, looks like this now:

cc @karthikjeeyar

/hold

/hold cancel
We've put this feature behind MVP feature flag. It will be removed in the follow up https://github.com/openshift/hac-dev/pull/406

/retest


Make an implementation of libp2p

Are there any guidelines or tutorials for implementing libp2p in another programming language, e.g rugby or crystal?

No, implementing libp2p is generally a pretty large undertaking. I'd recommend:

Read an implementation in a language you're comfortable with (and read the specs at the same time).
Implement enough to get it functional (focus on one transport stack).
Read the go implementation as it tends to be the most feature complete.
Continue to strive for feature parity.

If you want to discuss this more, I recommend you head over to https://discuss.libp2p.io/. You're not going to get much engagement here.


TypeError: Received message 257:None is not bytes

Package Name: azure-servicebus
Package Version: 7.12.2
Operating System: Linux
Python Version: 3.10

Describe the bug
We have deployed a service on an OpenShift cluster that ingests data from an Azure Service Bus resource. However, it throws the following error three times and then stops throwing it:
2024-06-28 11:29:32,258.258 ERROR _pyamqp_transport - create_servicebus_exception: Unexpected error occurred (TypeError('Received message 257:None is not bytes')). Handler shutting down.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/aio/_base_handler_async.py", line 260, in _do_retryable_operation
    return await operation(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/aio/_servicebus_receiver_async.py", line 451, in _receive
    receiving = await amqp_receive_client.do_work_async()
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_client_async.py", line 352, in do_work_async
    return await self._client_run_async(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_client_async.py", line 760, in _client_run_async
    await self._connection.listen(wait=self._socket_timeout, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_connection_async.py", line 794, in listen
    if await self._read_frame(wait=wait, **kwargs):
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_connection_async.py", line 276, in _read_frame
    new_frame = await self._transport.receive_frame(timeout=timeout, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_transport_async.py", line 76, in receive_frame
    header, channel, payload = await asyncio.wait_for(
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_transport_async.py", line 98, in read
    await self._read(8, buffer=frame_header, initial=True)
  File "/usr/local/lib/python3.10/site-packages/azure/servicebus/_pyamqp/aio/_transport_async.py", line 532, in _read
    data = await self.sock.receive_bytes()
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_ws.py", line 296, in receive_bytes
    raise TypeError(f"Received message {msg.type}:{msg.data!r} is not bytes")
TypeError: Received message 257:None is not bytes

There is also another kind of error in addition to the previous error:
2024-06-28 11:25:58,245.245 ERROR client - __del__: Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f6d906d4a60>

We were catching the errors and kept reinitializing the ServiceBusReceiver and it is an okay workaround.
To Reproduce
Steps to reproduce the behavior:

Initializing the Service Bus with connection string and HTTP proxy and starting listening on a specific topic and subscription.

# main.py
    http_proxy = {
        "proxy_hostname": http_settings.proxy_hostname,
        "proxy_port": http_settings.proxy_port,
    }

    async with ServiceBusClient.from_connection_string(
        conn_str=message_bus_settings.connection_string, http_proxy=http_proxy
    ) as service_bus_client:
        client = AzureServiceBus(service_bus_client, handle_storage_event)
        asyncio.create_task(
            client.listen(
                message_bus_settings.topic,
                message_bus_settings.subscription,
                message_bus_settings.max_message_count, # The max message count is 400
                message_bus_settings.max_wait_time, # The max wait time is 60
            )
        )

# azure_servicebus.py
class AzureServiceBus(Servicebus):
    def __init__(
        self, client: ServiceBusClient, handler: Callable[[StorageEventDto], Responses]
    ) -> None:
        self._client = client
        self._handler = handler

    async def listen(
        self, topic: str, subscription: str, max_msg_cnt: int, max_wait_time: float
    ) -> None:
        while True:
            await self.receive_events(topic, subscription, max_msg_cnt, max_wait_time)

    async def receive_events(
        self, topic: str, subs: str, max_msg_cnt: int, max_wait_time: float
    ) -> None:
        try:
            async with self._client.get_subscription_receiver(topic, subs) as recv:
                logger.info("The AzureServiceBus receiver is initialized.")
                messages = await recv.receive_messages(max_msg_cnt, max_wait_time)
                for msg in messages:
                    message: dict[str, Any] = json.loads(str(msg))
                    self._handler(StorageEventDto(**message))
                    await recv.complete_message(msg)
        except Exception as ex:
            logger.error(f"Error during receiving: {ex}")

Deploying a FastAPI service (that receives messages from the Service Bus) to an OpenShift cluster

Expected behavior
I expect to initialize the ServiceBusReceiver without encountering an error. So that the workaround can be omitted.
Additional context
Locally, I haven't encountered this error.

Thank you for the feedback @SzilvasiPeter . We will investigate and get back to you asap.

We are having the same error recently, with pretty much the same implementation in this issue. Any update on this please? Thanks very much

I'm also seeing this issue, an update would be great. Thank you.


auto ticker generation needs attention

Reminder to self to check the ticker generation ->remove hardcoded filter for UP and DOWN
Think how to handle signal samples
add top(x) option to avoid loading all pairs

Think how to handle signal samples
add top(x) option to avoid loading all pairs


Linux : System.DllNotFoundException: Unable to load DLL 'libSkiaSharp'

Description
I have a .Net Core 2.0 web api running in a linux docker container locally.
Ive copied libSkiaSharp  to the /app and /app/bin/.../Debug and Release folders just to be sure.
My dockerfile installs libfontconfig1.
Running ldd libSkiaSharp.so I see:
root@65c88e99a65f:/app# ldd libSkiaSharp.so
        linux-vdso.so.1 (0x00007ffcd954a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f92d82fc000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f92d80f8000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f92d7eba000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f92d7bb6000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f92d799f000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f92d7600000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f92d8d90000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f92d7351000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f92d7127000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f92d6f0d000)
        libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f92d6cda000)

When I call the first action that uses SkiaSharp, I get the dreaded error:
{System.TypeInitializationException: The type initializer for 'SkiaSharp.SKAbstractManagedWStream' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp': The specified module or one of its dependencies could not be found.
 (Exception from HRESULT: 0x8007007E)
   at SkiaSharp.SkiaApi.sk_managedwstream_set_delegates(IntPtr pWrite, IntPtr pFlush, IntPtr pBytesWritten, IntPtr pDestroy)
   at SkiaSharp.SKAbstractManagedWStream..cctor()
   --- End of inner exception stack trace ---
   at SkiaSharp.SKAbstractManagedWStream..ctor(Boolean owns)
   at SkiaSharp.SKManagedWStream..ctor(Stream managedStream)
...

Code
n/a
Expected Behavior
It should load the so file.
Actual Behavior
It either cant find the so file or it cant find one of it's dependencies.
Basic Information

Version with issue:  1.60.0
Last known good version:  ?
IDE:   Visual Studio
Platform Target Frameworks:

Linux:  asp.netcore 2.08 docker image  which I Debian Jessie - so it that like 16.10?

Target Devices:

Web app

As an aside, it would be cool if there was some better documentation or a sample app showing how to set this up.  I've had to dig around the interwebs for a day to get this far.  Running everything on windows is a dream.  I mistakenly thought linux would be as easy.  I should have known better.
Once I get this working  I promise to blog it.

The first thing to check is to make sure the libSkiaSharp.so lives next to the SkiaSharp.dll.
I have a socket sample here: https://github.com/mattleibow/SkiaSharp-Docker
If this doesn't help, could you share your Dockerfile?

So that's really curious.  I cant see SkiaSharp.dll anywhere in the container or on my windows build.  GAC?

Here's the docker file:
FROM microsoft/aspnetcore:2.0.8 AS base
RUN apt-get update;apt-get install libfontconfig1 -y

WORKDIR /app
EXPOSE 80

FROM microsoft/aspnetcore-build:2.0.5-2.1.4 AS build
WORKDIR /src

COPY . .
WORKDIR /src/Api
RUN dotnet restore
RUN dotnet build -c Release -o /app

FROM build AS publish
RUN dotnet publish -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Api.dll"]

The API is a netcore2.0 build.  It references a netstandard2.0 class lib:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <LangVersion>7.3</LangVersion>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="ColorConverter.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="SkiaSharp" Version="1.60.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Contracts.Services\Contracts.Services.csproj" />
    <ProjectReference Include="..\Models\Models.csproj" />
    <ProjectReference Include="..\Problems\Problems.csproj" />
  </ItemGroup>

</Project>

I added a package ref for SkiaSharp to the Api project also, just in case.
Neither of the projects has SkiaSharp.dll in the output folders.

In the container:
SkiaSharp.dll is in ~/.nuget/packages/skiasharp/1.60.0/lib/netstandard1.3
libSkiaSharp.so is in /app/bin/Release/netcoreapp2.0

Oh, I see your docker and build is quite different to the standard one Im using.  I'll try that... after a beer or two.  Cheers

@Jonesie I created a new Web API, and it also fails for me - I have spent the last 3 hours trying to figure out why. I will update s soon as I figure out what is causing the file to not be found.

Struggled enough, going to contact someone who knows ;)

I also created a new web api and published using -r linux-x64 and also had the prebuilt libskiasharp.so copied to the output.  The app started ok but didnt response to web request:
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.Run(async (context) =>
            {
                using (var stream = new System.IO.MemoryStream())
                using (var skStream = new SkiaSharp.SKManagedWStream(stream))
                {
                    await context.Response.WriteAsync("Hello World!");
                }
            });
        }

So Im not sure if it found the so - maybe not.  Doing it this way produces a Self Contained Deployment.  I didnt need to update the csproj fle - it seems publish -r RID is enough to do the correct build.
My docker file is:
#FROM microsoft/aspnetcore:2.0 AS base
FROM microsoft/dotnet:2.0-runtime-deps as base
#FROM microsoft/aspnetcore-build:2.0 AS base
RUN apt-get update;apt-get install libfontconfig1 nano -y
WORKDIR /app
EXPOSE 80

FROM microsoft/aspnetcore-build:2.0 AS build
WORKDIR /src
COPY WebApplication1/WebApplication1.csproj WebApplication1/
RUN dotnet restore WebApplication1/WebApplication1.csproj
COPY . .
WORKDIR /src/WebApplication1
RUN dotnet build WebApplication1.csproj -c Release -o /app

FROM build AS publish
RUN dotnet publish WebApplication1.csproj -c Release -r linux-x64 -o /app/pub

FROM base AS final
WORKDIR /app
COPY --from=publish /app/pub .
ENTRYPOINT ["WebApplication1"]

Building the compose from VS seems to do something different.  I dont get the SDD output, just the normal windows looking files.  Weird, but probably something I did.
  Lots of nuget downgrade warnings.  NU1605.
Sigh...

All right, I think I discovered something. This is my current code - this is pretty mush the same as the same as the default template, but with SkiaSharp and libSkiaSharp.so added:
https://github.com/mattleibow/SkiaSharpWebApi-Docker
This thing I noticed was that it runs from the command line, see .\build.ps1. If you go to http://localhost:80/api/colortype after running it, it works fine.
Visual Studio does something else... Not sure what, I hope to talk to Docker/VS guys and find out.

I think I get it now, although I dont have anything working quite yet.
When I run the docker project in VS it creates it's own compose file and sets this thus:
docker-compose  -f "C:\Dev\rc\docker-compose.yml" -f "C:\Dev\src\docker-compose.override.yml" -f "C:\Dev\src\obj\Docker\docker-compose.vs.debug.g.yml" -p dockercompose10230428442250841413 --no-ansi up -d --build --force-recreate --remove-orphans
1>
The main thing with this is that it sets the volume for /app to the source folder for the project:
volumes:
      - C:\Dev\src\Api:/app
      - C:\Users\peter\vsdbg\vs2017u5:/remote_debugger:ro
      - C:\Users\peter\.nuget\packages\:/root/.nuget/packages:ro
      - C:\Program Files\dotnet\sdk\NuGetFallbackFolder:/root/.nuget/fallbackpackages:ro

So when I bash into the container Im just seeing my own hdd and if I create the image using docker build then I see the correct (?) linux binaries.

Yes!  Fixed it.  I copied the so file to  C:\Users\peter.nuget\packages\skiasharp\1.60.0\lib\netstandard1.3 and restarted the container from VS.  Works fine.  This sounds sort of obvious now I think about it...
I'll see if I can deploy to AWS ECS with my scripted image build.

I suppose that is fine for debugging... What if you copy the .so to the working directory that is used by the VS compose? Does that work?
I think I must create a NuGet for each Linux platform (sharing what we can) so that you can just add that. I need to investigate moving all the native files out of the core package as it is getting quite huge now

Ive got everything working again now.  I found some problems with my image build but I managed to get a standa-alone build working nicely.  I'm writing up a blog post now.

Ahhh.
NUGET_FALLBACK_PACKAGES=/root/.nuget/fallbackpackages

http://jonesie.kiwi/2018/05/16/skiasharp-on-a-linux-container/

Ah, that was a good read. Thanks for looking around and debunking the magic.
I will continue to pester my guy until this works out the box for the F5 fun.

Hello @mattleibow and @Jonesie,
I am trying to get the .NetCore sample to run on my Ubuntu 18.04 machine and I think I have the same issue.
Basically all I did was to download the samples from the latest release 1.60.1, open the solution in Monodevelop and run it, and I got the following error.
Unhandled Exception: System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.SKImageInfo..ctor(Int32 width, Int32 height)
at SkiaSharpSample.Program.Main(String[] args) in /home/alexandre/Downloads/samples/Basic/NetCore/SkiaSharpSample/Program.cs:line 13
bash: line 1: 22565 Aborted                 (core dumped) /usr/share/dotnet/dotnet "/home/alexandre/Downloads/samples/Basic/NetCore/SkiaSharpSample/bin/Debug/netcoreapp2.0/SkiaSharpSample.dll"
Press any key to continue...
I tried coping the libSkiaSharp.so file to where the SkiaSharpSample.dll was being created and I doesn't seem to make any difference. I have also tried to compile the libSkiaSharp.so myself using the new and legacy methods on the wiki but they have both failed.
@mattleibow  I have read that the libSkiaSharp.so was built in Ubuntu 14.04, does that mean that it only works in 14.04?
Am I doing something wrong ? What I am supposed to do with the libSkiaSharp.so file?
Thanks in advance!

Hey I have found out the issue after some inspiration from @Jonesie  blog post.
In order to compile the .NetCore apps you need to add the  libSkiaSharp.so file in
/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/
To run the GTK example just put the file in /home/alexandre/Downloads/samples/Basic/Gtk/SkiaSharpSample/bin/Debug.

I had this issue when running in one of the dotnet runtime docker images.  By enabling LD_DEBUG=all env variable, I found out that it was due to missing dependencies of libSkia.  I needed to add the following two packages, libfreetype6 libfontconfig1

Has anyone found a foolproof way of using SkiaSharp in a .NET Core 2.1 Linux image (ideally alpine, for size)?
No-matter what I try, I always endup with System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' error.

http://jonesie.kiwi/2018/05/16/skiasharp-on-a-linux-container/

Thanks @Jonesie. Confirmed that worked for non-alpine versions. Here's what mine looks like:
# Define images.
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1-sdk AS build

# Copy the output from the source machine.
FROM build as dotnetcore-build
WORKDIR /src
COPY . .

# Build the solution
RUN dotnet build -v quiet -c Release --configfile ./NuGet.config ./SkiaLibTest.sln

# Publish the project
RUN dotnet publish -v quiet -c Release -o /app ./SkiaLibTest/SkiaLibTest.csproj

WORKDIR /app

RUN wget -q https://github.com/mono/SkiaSharp/releases/download/v1.60.3/libSkiaSharp.so

RUN chmod -x libSkiaSharp.so

# Set the content to the published results.
FROM base AS final

# Set working directory as /app and copy build content in.
WORKDIR /app

COPY --from=dotnetcore-build /app .

RUN apt-get update; apt-get install libfontconfig1 -y

#WORKDIR /app

ENV ASPNETCORE_URLS=http://+:80

EXPOSE 80

ENTRYPOINT ["dotnet", "SkiaLibTest.dll"]

If I get one that works for Alpine, I'll post that too.

Thanks for the info @mattleibow.

Closing this issue as it mostly has been resolved. New NuGet packages will be released to avoid all this work.
To support Alpine, please add your vote/comment here so we can prioritize: https://github.com/mono/SkiaSharp/issues/453

Has anyone found a foolproof way of using SkiaSharp in a .NET Core 2.1 Linux image (ideally alpine, for size)?
No-matter what I try, I always endup with System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' error.

http://jonesie.kiwi/2018/05/16/skiasharp-on-a-linux-container/

It shows "Service Unavailable" when I hit the link, would you mind sharing your solution again, please?

Has anyone found a foolproof way of using SkiaSharp in a .NET Core 2.1 Linux image (ideally alpine, for size)?
No-matter what I try, I always endup with System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' error.

http://jonesie.kiwi/2018/05/16/skiasharp-on-a-linux-container/

It shows "Service Unavailable" when I hit the link, would you mind sharing your solution again, please?

Dang.  VM died.  It's back now.

Hi, I'm using SkiaSharp on a Synology NAS running Linux. I have had SkiaSharp working just fine but since I upgraded to .NET Core 2.2 and SkiaSharp 1.68 I have had this issue with DllNotFound. Have tried adding the NativeAssets-package but still get the same error. Have posted a question on Stack Overflow here. Don't know what to try really. Any suggestions?

@automagisk what linux are you running?
Also, is it possible to make sure SkiaSharp 1.60.3 works on your upgraded 2.2 or SkiaSharp 1.68.0 runs on the older 2.1. Just need to confirm which one broke which.
Note, we upgraded or build bot to Ubuntu 16.04 for new GCC. It was working on the Ubuntu 14.01, but maybe there is another issue.

Synology DSM uses a custom Linux version it seems. Just tried reverting to 1.60.3 and got the same error so it looks like it's Core 2.2.

OK, :(
I think it might be better to open a new issue with details specific to your case. This way we can track the issue and prioritize.


dealing with Pointers

Hi,
How do you deal with members of classes which are pointers. i.e.
class Bar
{ int a;}
static  spotify::json::codec::object_t<Bar> codec()
{
    auto codec = spotify::json::codec::object<Bar>();
    codec.required("a", &Bar::a);
    return codec;
}

class Foo
{
int b;
Bar *c;
}
static  spotify::json::codec::object_t<Foo> codec()
{
    auto codec = spotify::json::codec::object<Foo>();
    codec.required("b", &Foo::b);

// how to represent Bar *c;
return codec;
}
How do I represent *c in the codec. I cant find any example which deals with a pointer.
Thanks
Paul

If you can I would use std::unique_ptr<Bar> instead of Bar. The library supports this. Otherwise you can use transform_t.


Windows Defender blocks the Python code I wrote as a Trojan:Win32/Ferrumspy.C!cl trojan.

This issue has been moved from a ticket on Developer Community.

The code I wrote in the Python pyqt5 library after the last security update
Trojan:Win32/Ferrumspy.C!cl error and deleting my program's exe.

Original Comments
Feedback Bot on 5/3/2023, 10:41 PM:
(private comment, text removed)

Original Solutions
(no solutions)

Hi there, seems like the antivirus software has detected certain patterns or behaviors in your code that resemble known malware or potentially malicious activity. To address the issue, we recommend filing a report directly with Windows Defender Support as it's out of our scope to investigate. Thanks!

What are the libraryies that you have used?  same thing happend to me to. i had a python script that used pythonping package and is been detected as "Ferrumspy" malware.


Create unit test for debugging of async coroutines

https://github.com/Microsoft/vscode-python/issues/1309

Tests moved to PTVSD


Seekbar increment steps

Is there any functionality to give increment steps?
I want to update progress with 5 points like default seekbar.

Hi SagarPanwala:
You can use the NumericTransformer:
DiscreteSeekBar.NumericTransformer multiplyTransformer =
new DiscreteSeekBar.NumericTransformer()  {
@Override
public int transform(int value) {
return value * 5;
}
};
myDiscreteSeekBar.setNumericTransformer(multiplyTransformer);

Thanks, I can do this way. But I have values between 0 to 5000. So it is very hard to set values at specific position. Sometime it jump from 995 to 1000 and sometimes it jumps 995 to 1015.

Hi SagarPanwala:
The problem isn't the DiscreteSeekBar. The problem is that the range is very high for the step value.
Grettings.

okay Thanks :+1:
Can you have any idea how to show steps (like : I have to show 0,50,100,150 ,... ) below the seekbar?

Try this code
java file
DiscreteSeekBar.NumericTransformer multiplyTransformer =
new DiscreteSeekBar.NumericTransformer()  {
            @Override
            public int transform(int value) {
                return value * 50;
            }
        };
myDiscreteSeekBar.setNumericTransformer(multiplyTransformer);

xml file
<org.adw.library.widgets.DiscreteSeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
custom:dsb_max="100"
custom:dsb_min="0"
/>

What about fractions? for instance every 0.1 from 0 to 1?


Incorrect bundle is uploaded if gradle action results in UP-TO-DATE build

This one might not entirely be fastlanes fault but I'm reporting it since it will most likely trip someone else up in the future.
As part of our build process we have two lanes, one to upload builds to Google Play (gplay), and one to upload builds to Firebase App Distribution (firebase). These are included in the fastlane environment below.
Our build runs the gplay lane twice first, with the stage and prod flavours specified (in that order). It then runs the firebase lane with the stage flavour specified.
Despite running the gradle action as part of the firebase lane, GRADLE_AAB_OUTPUT_PATH still references the output of the gplay lane from earlier, which is a prod build. This happens because the stage build is completely cached by gradle and the build artifact is not re-written to disk, and based on https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/gradle.rb the modified timestamp of the AAB files are used to determine what ends up in GRADLE_AAB_OUTPUT_PATH.
I'm honestly not sure what fastlane can do to fix this, but it's certainly misleading as you'd expect GRADLE_AAB_OUTPUT_PATH and similar variables to be updated based on the previous builds no matter whether they were cached by gradle or not.
✅ fastlane environment ✅
Stack

Key
Value

OS
14.4.1

Ruby
3.3.0

Bundler?
true

Git
git version 2.45.0

Installation Source
~/.rbenv/versions/3.3.0/bin/fastlane

Host
macOS 14.4.1 (23E224)

Ruby Lib Dir
~/.rbenv/versions/3.3.0/lib

OpenSSL Version
OpenSSL 3.2.1 30 Jan 2024

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
15.3

Swift Version
5.10

System Locale

Variable
Value

LANG
en_GB.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

ENV['SUPPLY_UPLOAD_MAX_RETRIES']='10'

default_platform(:android)

def gradle_properties
  if ENV["MAVEN_CREDENTIALS_USR"] && ENV["MAVEN_CREDENTIALS_PSW"]
    return {
      "mavenUsername" => ENV["MAVEN_CREDENTIALS_USR"],
      "mavenPassword" => ENV["MAVEN_CREDENTIALS_PSW"]
    }
  else
    return {}
  end
end

platform :android do

  desc "Upload an AAB to Google Play"
  lane :gplay do |options|

    gradle(
      task: "app:bundle",
      flavor: options[:variant].capitalize(),
      build_type: "Release",
      properties: gradle_properties()
    )

    supply(
      track: "production",
      release_status: "draft",
      aab: lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
      skip_upload_apk: true,
      skip_upload_screenshots: true,
      skip_upload_images: true,
      skip_upload_metadata: true,
      json_key: ".service_accounts/" + options[:service_account] + ".json",
      package_name: options[:base_app_identifier] + (options[:variant] != "prod" ? "." + options[:variant] : "")
    )
  end

  desc "Upload an AAB or APK to Firebase App Distribution"
  lane :firebase do |options|

    artifact_type = options[:artifact_type] || "AAB"

    gradle(
          task: (artifact_type == "APK" ? "app:assemble" : "app:bundle"),
          flavor: options[:variant].capitalize(),
          build_type: "Release",
          properties: gradle_properties()
    )

    artifact_path = lane_context[artifact_type == "APK" ? lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] : lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]]

    firebase_app_distribution(
        app: options[:firebase_app_id],
        android_artifact_type: artifact_type,
        android_artifact_path: artifact_path,
        groups: options[:firebase_tester_groups],
        service_credentials_file: ".service_accounts/" + options[:service_account] + ".json"
    )
  end
end

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.220.0
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-firebase_app_distribution
0.9.1
✅ Up-To-Date

Loaded gems

Gem
Version

error_highlight
0.6.0

did_you_mean
1.6.3

syntax_suggest
2.0.0

bundler
2.5.9

pathname
0.3.0

rake
13.2.1

base64
0.2.0

nkf
0.2.0

rexml
3.2.6

CFPropertyList
3.0.7

public_suffix
5.0.5

addressable
2.8.6

artifactory
3.0.17

atomos
0.1.3

aws-eventstream
1.3.0

aws-partitions
1.925.0

aws-sigv4
1.8.0

jmespath
1.6.2

aws-sdk-core
3.194.2

aws-sdk-kms
1.80.0

aws-sdk-s3
1.149.1

babosa
1.0.4

claide
1.1.0

colored
1.2

colored2
3.1.2

highline
2.0.3

commander
4.6.0

declarative
0.0.20

digest-crc
0.6.5

domain_name
0.6.20240107

dotenv
2.8.1

emoji_regex
3.2.3

excon
0.110.0

faraday-em_http
1.0.0

faraday-em_synchrony
1.0.0

faraday-excon
1.1.0

faraday-httpclient
1.0.1

multipart-post
2.4.1

faraday-multipart
1.0.4

faraday-net_http
1.0.1

faraday-net_http_persistent
1.2.0

faraday-patron
1.0.0

faraday-rack
1.0.0

faraday-retry
1.0.3

ruby2_keywords
0.0.5

faraday
1.10.3

http-cookie
1.0.5

faraday-cookie_jar
0.0.7

faraday_middleware
1.2.0

fastimage
2.3.1

gh_inspector
1.1.3

jwt
2.8.1

multi_json
1.15.0

os
1.1.4

signet
0.19.0

googleauth
1.8.1

httpclient
2.8.3

mini_mime
1.1.5

trailblazer-option
0.1.2

uber
0.1.0

representable
3.2.0

retriable
3.1.2

google-apis-core
0.11.3

google-apis-androidpublisher_v3
0.54.0

google-apis-playcustomapp_v1
0.13.0

google-cloud-env
1.6.0

google-apis-iamcredentials_v1
0.17.0

google-apis-storage_v1
0.31.0

google-cloud-errors
1.4.0

google-cloud-core
1.7.0

google-cloud-storage
1.47.0

json
2.7.2

mini_magick
4.12.0

naturally
2.2.1

optparse
0.5.0

plist
3.7.1

rubyzip
2.3.2

security
0.1.5

simctl
1.6.10

terminal-notifier
2.0.0

unicode-display_width
2.5.0

terminal-table
3.0.2

tty-screen
0.8.2

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

nanaimo
0.3.0

xcodeproj
1.24.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.1

google-apis-firebaseappdistribution_v1
0.3.0

google-apis-firebaseappdistribution_v1alpha
0.2.0

fastlane-plugin-firebase_app_distribution
0.9.1

generated on: 2024-05-09

Hello, @jameswhiteut
You’re absolutely right—it’s essential to address these quirks even if they might not be entirely fastlane’s fault. Let’s dive into this build process conundrum and see if we can shed some light on it!
First off, kudos for having a well-structured build process with separate lanes for Google Play and Firebase App Distribution. Now, let’s dissect the situation:
The Mysterious Case of GRADLE_AAB_OUTPUT_PATH:
So, you’re running the gplay lane twice (with different flavors) and then the firebase lane with a specific flavor.
Despite executing the gradle action as part of the firebase lane, GRADLE_AAB_OUTPUT_PATH stubbornly clings to the output of the earlier gplay lane (which was a prod build).
The culprit? Gradle’s caching magic! It seems the stage build is cached, and the build artifact isn’t rewritten to disk. And yes, those AAB files’ modified timestamps play a role in this enigma.
Expectations vs. Reality:
You hit the nail on the head—it’s misleading when variables like GRADLE_AAB_OUTPUT_PATH don’t update based on previous builds, regardless of gradle’s caching behavior.
We’d expect these variables to be more dynamic, like a chameleon adapting to the latest build context. But alas, sometimes they cling to their old ways like nostalgic relics.
Possible Paths Forward:
While I don’t have a silver bullet solution, here are a few thoughts:
Gradle Version: Some users have reported issues related to Gradle versions. If you’re using a higher version (7.3.0 or above), consider downgrading to a more stable one (e.g., 7.1.3) if it resolves the problem.
Project Directory Parameter: When invoking gradle, explicitly specify the project directory using the project_dir parameter. This might help fastlane locate the correct gradlew file.
Path Adjustments: Ensure that the path to your AAB files is correctly relative to the current working directory when running fastlane. Sometimes a simple dot (.) can make all the difference.
In the Meantime:
Keep an eye on fastlane’s updates. The community is active, and improvements happen over time.
Consider reaching out to the fastlane maintainers or community forums. They might have additional insights or workarounds.
And remember, even in the world of build automation, mysteries abound. But with persistence and a dash of digital detective work, we’ll crack this case wide open!.
I hope this info is helpful to you.
Best Regard,
Gregory Chavez


uninitialized constant error

On trying to create a new client, I always get this error.
from ...gems/strava-api-v3-0.0.8/lib/strava/api/v3/client.rb:35:in `initialize'```

Thanks for this. I've been very slack on this project but plan to get it fully implemented this month.


Updated german translation

Updated german translation
I did some updates to the german translation.

related: https://github.com/the-hideout/tarkov-dev/issues/175

Thank you @marvhh for your contributions! ⭐

.deploy

.deploy

.deploy


bpf: unit tests and fixes for prepend_name function

See commits!

Note that this has a chance of fixing https://github.com/cilium/tetragon/issues/1707, it can be related.

🚀
@mtardy I feel like we should backport this change to 1.0. WDYT?

🚀
@mtardy I feel like we should backport this (or at least the buffix) to 1.0. WDYT?

Yes, it would make sense since it might fix a user facing bug. Let me do that!


Improve fleet scaling performance

Currently when spinning up a large test fleet (10K GameServers) the Game Servers and pods are created relatively slowly (about 1 per second, measured on regional GKE cluster with 150 nodes * (8 cores + 8 GB RAM each)).
I think we're unnecessarily serializing something - in principle there should be no reason why this would be significantly slower than a deployment (which creates all pods almost instantaneously and they run in parallel).

@jkowalski can we close this ticket now? I feel like we have acceptable performance at this stage?

Going to close this ticket, as I think we've reached out goals here for now.
Please feel free to reopen if we need to.


feature:S3C-3532 Create user Implementation

Implement Create User w/ all IAM APIs

Call AssumeRoleBackbeat to get temporary credentials
Call IAM Create User
Call IAM Get User Policy if exists
If Policy does not exist, Create User Policy
Create Access key for the user

Implemented Create User Test cases

Hello saitharunthodupunuru,
My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.
Status report is not available.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

the author

2 peers

Codecov Report

Merging #33 (d6af138) into feature/S3C-4094-set-up-assumerole-2 (7f642d1) will increase coverage by 1.47%.
The diff coverage is 96.66%.

@@                            Coverage Diff                             @@
##             feature/S3C-4094-set-up-assumerole-2      #33      +/-   ##
==========================================================================
+ Coverage                                   88.34%   89.82%   +1.47%
- Complexity                                    119      136      +17
==========================================================================
  Files                                          11       11
  Lines                                         412      501      +89
  Branches                                       26       28       +2
==========================================================================
+ Hits                                          364      450      +86
  Misses                                         23       23
- Partials                                       25       28       +3

Impacted Files
Coverage Δ
Complexity Δ

.../scality/osis/service/impl/ScalityOsisService.java
96.47% <95.74%> (-0.40%)
35.00 <4.00> (+3.00)
:arrow_down:

.../com/scality/osis/utils/ScalityModelConverter.java
97.52% <97.67%> (+0.08%)
40.00 <14.00> (+14.00)

Continue to review full report at Codecov.

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

rebase done based on development branch

/approve

In the queue
The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.
The changeset will be merged in:

:heavy_check_mark: development/1.0

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.
IMPORTANT
Please do not attempt to modify this pull request.

Any commit you add on the source branch will trigger a new cycle after the
current queue is merged.
Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.
The following options are set: approve

I have successfully merged the changeset of this pull request
into targetted development branches:

:heavy_check_mark: development/1.0

Please check the status of the associated issue S3C-3532.
Goodbye saitharunthodupunuru.


Changed dependency from active_scaffold_vho to active_scaffold

Please create your own repository and gem, cause I will stay on active-scaffold_vho


[WIP] First draft of what GPT2 might look like.

Missing ops:

GELU
select (embedding)
broadcast addition
reshape (For attention)
cat (for past key values cat hidden_states)

let's not add gpt2


vx/text leaves empty space at bottom due to svg left unremoved after calculating text width

https://github.com/hshoff/vx/blob/master/packages/vx-text/src/util/getStringWidth.js#L9
This svg element is left unremoved which adds 300x150 empty space at the bottom of the page.

@msathis Good catch.  I leave the <svg> element on the page to improve performance (so an element isn't added/removed from the DOM every time we need to measure a word) but hadn't accounted for the default width/height of the element (and hadn't seen the spacing myself).  I hadn't seen the issue myself, but PR #219 should resolve this.


Fix uncommitted path for prepare gc

closes #4632

Tested locally and the path looks ok now.

Opened https://github.com/treeverse/lakeFS/issues/4649


Update gradle to 4.3

Coverage remained the same at 81.241% when pulling 345a42a822e036904acae15923422e66ba3c62a1 on bogdandrutu:gradle43 into afae8b52255fcbaf265f3e7aaad5c74ccad4519d on census-instrumentation:master.

Codecov Report

Merging #822 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master    #822      +/-   ##
===========================================
+ Coverage     79.28%   79.3%   +0.02%
  Complexity      899     899
===========================================
  Files           156     156
  Lines          3982    3982
  Branches        372     372
===========================================
+ Hits           3157    3158       +1
  Misses          747     747
+ Partials         78      77       -1

Impacted Files
Coverage Δ
Complexity Δ

...census/implcore/trace/export/SpanExporterImpl.java
98.33% <0%> (+1.66%)
7% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Revert "Fix UserWarning: The torch.cuda.*DtypeTensor constructors are…

Reverts 177dc14331a64e61f6dcce2c4b8071576bcb22db since it breaks tests in Megatron-DeepSpeed.

Hello @ShukantPal,
Appreciate the effort on the initial PR fixing the warning. However, this change causes an issue in the Megatron-DeepSpeed type check code here:
https://github.com/microsoft/Megatron-DeepSpeed/blob/d47f3cda3a9316ddc68e7f0ef904d1650ba6419d/megatron/model/module.py#L138
Here's the resulting error:
 File "/Megatron-DeepSpeed/megatron/model/module.py", line 139, in half_conversion
    if isinstance(val_typecheck, _FLOAT_TYPES):
TypeError: isinstance() arg 2 must be a type or tuple of types

Since the CUDA accelerator no longer returns a torch type, but functools.partial:
(Pdb) p _FLOAT_TYPES
(<class 'torch.FloatTensor'>, functools.partial(<built-in method tensor of type object at 0x7f3d941c5420>, dtype=torch.float32, device='cuda'))

We an issue when training using the Megatron-DeepSpeed repo. For now, we're looking to revert this PR and would appreciate any feedback or suggestions from your end.
Thanks,
Lev

Hi @lekurile,
The Megatron-DeepSpeed repo would probably have to change how it detects tensor types to handle this. Probably by calling the tensor factory and checking its dtype; something like this:
        if callable(val_typecheck) and val_typecheck([0]).dtype == torch.float:
            val = float16_convertor(val)
        return val

Thanks @ShukantPal - closing in favor of @lekurile's PR in Megatron-DeepSpeed here.


Message window is white on dark theme with version 1.4.3 on Linux

See attached picture.

Only the background has a problem. The font remains a light font, which makes it really hard to see what is being typed with both dark and mosaic theme.

I have same problem on windows 10.

Just had the same problem on mac os x.  The textbox is white and the text can't be seen in it.  I've reloaded the program with no success.

I'm having the same issue with windows vista

Same problem here, also with mosaic theme

Same for me, dark theme and mosaic, Windows 10.

Mmm, this issue has been open for a few days now. I hope it gets sorted soon.
In the meantime, there's a temporary fix you can do by modifying the CSS - originally provided by orangeSkySTUDio on issue #337.

Open the context menu in the Messenger window, select "Launch dev tools"
Press the drop-down icon next to the gear
Click the 'Search' tab
Search for "4rv3"
Modify "color:rgba(255, 255, 255, .95)" - change ".95" to changed to ".05"
Close the window

This should fix it for the current session. You might get an error - if so, and it hasn't fixed it, try the whole process again.

I have the same issue (Ubuntu 15.10, 64 Bit) and Synpanite's suggested fix didn't work.

Thx @Sypanite , it's working.

Same issue here on Xubuntu 15.10, but @Sypanite's solution fixed the issue, thanks!

For mosaic theme (and maybe black too) i added following style to the .css and compiled app from scratch:
._4rv3 {
    background-color: rgba(255,255,255, 0);
}

Dude's working on the fixes for v2 according to his Twitter so we've just to patiently wait.

@ClearStaff, how did you compiled the app?

Anybody have updates on this? The CSS fix worked for me, but I'm glad the dev doesn't seem to care, given it's been a month since the problem occurred.
Thanks.

Will be fixed on my fork this weekend

Please see https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/458


Can't install Laravel 5.8 version via Composer

I am using Laradock as my server, PHP 7.2.4. Laravel 5.7 installation works well but 5.8 not working anyway.
command: composer create-project --prefer-source laravel/laravel watchcrunch "5.8.3"
Output:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
[InvalidArgumentException]
Could not find package laravel/laravel with version 5.8.3.

When I downloaded the 5.8.3 release zip file from github then run "composer install" then:
Output:
Loading composer repositories with package information
The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
[Composer\Downloader\TransportException]
The "http://packagist.org/p/phpoption/phpoption%24502a5420019f3b979d10ff2282f5d6c87f7fdf9f1b1f00d70c6ce0e0b9455e4e.json" file could not be downloa
ded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

Can anyone please help to tell correct way installing 5.8 version? Thanks

Sorry. I found the issue related to Docker server (yack).


How to translate

Hello, I've created an pt.json file with translated strings and placed it on locales folder.
How to make the website to use the created json?
For testing purposes I've tried renaming pt.json as en.json, but even with this, few strings are translated on the website.

Hello,
Normally, you just have to put the pt.json file in the locales directory, and change the default language of the browser to Portuguese.
I would say after you will have to update the Loca container. Here it is the procedure:
Stop the application:
./mre stop

Build the container from the loca directory:
docker build .

And relaunch the app:
./mre start

Don't forget to change the browser language :wink:

I forgot to mention that English is the fallback language.
Then if you've forgotten to translate some words in Portuguese, the English version will be displayed in the application for those ones.

It worked after running:
docker commit containerid mre/loca

But there's a major bug.
When using any non-english language you can't click on any button
Tested with fr and pt
Please test yourself and reply

Working ok after adding the language but with en on the top of the list. Everything translated. Closing issue. Thanks

I think it's ok to ask here, it's related to translation.
Is there any implemented way to modify currency?

I've already modified pt.json
    "__fmt_date__": "DD-MM-YYYY",
    "__fmt_datetime__": "DD-MM-YYYY HH[h]M",

the problem is in tenants page, where loca specifically asks for MM-DD-YYYY.
I'll take a look at all this as soon as I can

"But there's a major bug.
When using any non-english language you can't click on any button
Tested with fr and pt
Please test yourself and reply"
Built everything again and this still occurs.
Maybe I was able to fix this the other time modifying the code, like changing fallback to pt etc, without doing nothing it still doesn't work

I just created those issues #32 and #33 for hard coded currency and phone number format.

My last fix should make the buttons work again and fix the issue with the date format on the tenant form.

I'll test. A question: I live in brazil, should the json file be pt-br.json?

Yes but I've to test first if it works correctly.
You can keep using pt.json for now.

@drique sorry but same kind of task should be done again there https://github.com/microrealestate/microrealestate

Here is the issue created in the new repository https://github.com/microrealestate/microrealestate/issues/18


fix(router): prevent navigation duplicated error

Prevents error if onAbort is not given

Types of changes

[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
Since we updated Nuxt to last vue-router, there's now an error when navigating to the same route the user already is, when using router.push.
See more info : https://github.com/vuejs/vue-router/issues/2881#issuecomment-520554378
Around Nuxt it can look as a breaking change, cause the error was previously (in previous vue-router version) silent, and now it just breaks.
So, until Nuxt 3, we should still silently catch the error, unless the issue specify the onAbort argument to push function and manually handle the error in case there is a duplicated navigation.
Checklist:

[ ] All existing tests are passing.

Sounds good, but weird tests are failing:

Yes, I wanted to be sure tests passed before ticking the test checkbox and ask for review (could have been draft pr though), I need to investigate why the thing is undefined

Alright, sounds it returns a Promise only if both onComplete & onAbort are not defined
https://github.com/vuejs/vue-router/blob/dev/src/index.js#L153

Hmm, in fact I think Nuxt just needs to give default onComplete & onAbort as empty functions and that's it, gonna make local tests to be sure.

@Atinux Doesn't seem to work, I still have the "NavigationDuplicated" error locally when navigating to same route, it may be something that can't be change by Nuxt by changing the push function :/

As It is intended by vue-router itself to throw the error, I'm not sure that we should override such behavior around Nuxt, cause it will make some users not being able to redefine their own push or replace over original one. As it would go userOverride -> nuxtOverride -> original, making user being caught if something he/she doesn't want is done by Nuxt in the override.
So I think we should not continue trying to find a solution that should be implemented around Nuxt.
If someone is looking to prevent the error and the routing if you're pushing or replacing the same route, you can create a Nuxt plugin and go this way :
// Override Push
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push= function (location) {
  if (this.resolve(location).route.fullPath === this.currentRoute.fullPath) {
    return // You can also if you wish fire an event through `this.app.$nuxt.$emit`
  } else {
    originalReplace.push(this, location)
  }
}

// Override Replace
const originalReplace = VueRouter.prototype.replace
VueRouter.prototype.replace = function (location) {
  if (this.resolve(location).route.fullPath === this.currentRoute.fullPath) {
    return // You can also if you wish fire an event through `this.app.$nuxt.$emit`
  } else {
    originalReplace.call(this, location)
  }
}

When can it be solved?

@liaohui1080 This issue was resolved in a different PR. If you are experiencing a bug with Nuxt, please do raise a new issue 🙏


Error while importing the library in Ipython

Hi,
I am getting this error on windows 10.
IOError: Cannot load hyphen dictionary.

Hi,
take a look at the documentation (http://www.erinhengel.com/software/textatistic/) under Installation:
Textatistic uses the PyHyphen hyphenation library which is not included in Python's original installation. Although pip installs PyHyphen automatically with Textatistic, it may omit the actual dictionaries. If your Textatistic installation was successful but you get an error that no dictionaries are installed, either uninstall PyHyphen and then reinstall it from source or manually install the dictionaries yourself (instructions).
If you have any idea how to fix this error, I'd greatly appreciate it!

Hello,
Has this issue been resolved by either party?

No, you still need to install PyHyphen's dictionaries manually.

Hello, I am new to Python and GitHub. Hoping this might be helpful to others--
I was trying to install Textatistic and ran into a similar error caused by PyHyphen. However, my problem was not with the dictionaries as mentioned by others, instead I got a warning saying:
"Microsoft C++ 14.0 Build Tools Required , download available at https://visualstudio.microsoft.com/downloads/"
However, the url listed in the error message is outdated and incorrect the correct URL to download is:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
It is a very large download (4gb) and the installation takes about 5 minutes.
After installing Microsoft C++ Build Tools Textatistic and PyHyphen seem to be working fine. I am using Anaconda and I tested in ipython and jupyter labs with no issues so far.
Thank you Erin for the cool library!


[wip] Weighted routing

On Sun, Feb 5, 2017 at 10:04 PM Kuat<EMAIL_ADDRESS>wrote:

@kyessenov commented on this pull request.
In proxy/envoy/config.go
https://github.com/istio/manager/pull/92#pullrequestreview-20190189:

@@ -126,9 +126,47 @@ func Generate(instances []*model.ServiceInstance, services []*model.Service, rul
// buildListeners uses iptables port redirect to route traffic either into the
// pod or outside the pod to service clusters based on the traffic metadata.
func buildListeners(instances []*model.ServiceInstance,

services []*model.Service,

services []*model.Service, rules []*config.RouteRule,
upstreams []*config.UpstreamCluster,

Can we not use the word upstream here? I find "upstream cluster" confusing
since we are dealing with many proxies in many roles and also many actual
clusters for future federated solution. Inbound - outbound makes more sense
in this context, or maybe use or introduce terminology to the model

This is coming from the proto spec. And there we decided (after much
debate) to settle on upstream/downstream given that nginx, http/2, Envoy
etc use the same terminology.
I am open to suggestions though, if it improves code clarity. But we should
be consistent with the config as well.
—

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/manager/pull/92#pullrequestreview-20190189, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH0qd8CwHDzLZucYvHx2b48xMyY4sIr5ks5rZo2mgaJpZM4L3uUM
.

--
~shriram

On Sun, Feb 5, 2017 at 11:41 PM Kuat<EMAIL_ADDRESS>wrote:

@kyessenov commented on this pull request.
In proxy/envoy/config.go https://github.com/istio/manager/pull/92:

@@ -126,9 +126,47 @@ func Generate(instances []*model.ServiceInstance, services []*model.Service, rul
// buildListeners uses iptables port redirect to route traffic either into the
// pod or outside the pod to service clusters based on the traffic metadata.
func buildListeners(instances []*model.ServiceInstance,

services []*model.Service,

services []*model.Service, rules []*config.RouteRule,
upstreams []*config.UpstreamCluster,

Upstream makes sense in the context of an individual rule in a proxy. If
you have multiple federated clusters and also ingress controllers like we
plan to have in Manager, upstream cluster is just confusing.

I agree. I will create a type in model to work around this issue.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/manager/pull/92, or mute the thread
https://github.com/notifications/unsubscribe-auth/AH0qdwL1d1bE0t2LLg8XQwRT19NSmKdHks5rZqRwgaJpZM4L3uUM
.

--
~shriram


consumer just receives first message after that it stops

Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version:
Kafka Version:
Go Version:
Configuration
What configuration values are you using for Sarama and Kafka?
Logs
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.
Problem Description
I have producer and consumer. I periodically  put message on producer input channel. but consumer receives only first message after that it doesnt get any messages. but producer dosent give any error.
This creates producer
func (s *Server) kafkaInit() {
        fmt.Println("Starting kafka init to Connect to broker: ")
        config := sarama.NewConfig()
        config.Producer.RequiredAcks = sarama.WaitForAll
        config.Producer.Retry.Max = 10
        config.Producer.Return.Successes = true
        producer, err := sarama.NewAsyncProducer([]string{"cord-kafka.default.svc.cluster.local:9092"}, config)
        if err != nil {
                panic(err)
        }
        s.dataproducer = producer
}

periodically pushing messages on producer
func (s *Server) collect_data(ip_address string) {
        freqchan := s.devicemap[ip_address].freqchan
        ticker := s.devicemap[ip_address].datacollector.getdata
        donechan := s.devicemap[ip_address].datacollector.quit
        for {
                select {
                case freq := <-freqchan:
                        ticker.Stop()
                        ticker = *time.NewTicker(time.Duration(freq) * time.Second)
                case <-ticker.C:
                        for _, service := range redfish_services {
                                rtn, data := get_status(ip_address, service)
                                if rtn {
                                        for _, str := range data {
                                                str = "Device IP: " + ip_address + " " + str
                                                fmt.Println("collected data  %s ...", str)
                                                b := []byte(str)
                                                msg := &sarama.ProducerMessage{Topic: importerTopic, Value: sarama.StringEncoder(b)}
                                                 s.dataproducer.Input() <- msg                                  }
                                }
                        }
                case <-donechan:
                        ticker.Stop()
                        fmt.Println("getdata ticker stopped")
                        return
                }
        }
}

You have specified config.Producer.Return.Successes = true in the config but created an async producer.
Basically the producer tries to output the result of the operation in a finite channel that no one reads.
When that happen, there is no error. The producer just get "stuck".
So either

create a syncProducer, the success channel is read by the producer to be wait on success/failure to ensure being "sync"
read the success channel your self. You can use that to log what happen
set return.Success to false

Although it could be wrong, it s bit hard to guess the problem from here.
You should checkout if the problem come from the consumer or the producer.
Try to consume the topic with a cli like kafkacat or kafka-console-consumer.sh and check if the messages you are supposed to consume are actually here.

@belwalkar please let us know if @FrancoisPoinsot answer helped you with the problem

yes it did thank you very much
On Thu, Aug 22, 2019 at 8:42 AM Diego Alvarez<EMAIL_ADDRESS>wrote:

@belwalkar https://github.com/belwalkar please let us know if
@FrancoisPoinsot https://github.com/FrancoisPoinsot answer helped you
with the problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Shopify/sarama/issues/1444?email_source=notifications&email_token=AGIXK5RVONEFB7EDV53G7N3QF2XVBA5CNFSM4IITL7F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45QDTI#issuecomment-523960781,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGIXK5SYPFYBNRVOF5AT3A3QF2XVBANCNFSM4IITL7FQ
.

Thank you very much
Dinesh
On Thu, Aug 22, 2019 at 10:06 AM Diego Alvarez<EMAIL_ADDRESS>wrote:

Closed #1444 https://github.com/Shopify/sarama/issues/1444.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Shopify/sarama/issues/1444?email_source=notifications&email_token=AGIXK5XCFTABOQZE7BKL4XLQF3BRFA5CNFSM4IITL7F2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTGOP6IA#event-2577202976,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGIXK5SLBXGM5R62YBXKXSDQF3BRFANCNFSM4IITL7FQ
.


Where is version 0.15

Hello
The version on pypi is 0.15, but the latest version in this repo is 0.14, would it be possible for you to push those changes?
Thanks
Ben

Hi @kajic -- Were you able to push the 0.15 changes? Thanks!

Are we still missing 0.15 updates in this repo? They do show up in pypi, however. 🤔