text:
Access token can be a function

Closes AB#1518319
Closes https://github.com/iTwin/admin-components-react/issues/124
Changes
ITwinGrid and IModelGrid take a constant accessToken string as a prop. But the accessToken will eventually expire. So it would be better to accept a function () => Promise<string> as a prop, so that whenever the access token is used, it can be checked for expiry and renewed.
Tests
Works in Storybook and manually tested with an app I have, looks okay to me.
Note: I couldn't get storybook working at first... it was because the scopes for new OIDC clients have changed to itwin-platform. Let me know if you want me to make that change in .storybook/preview.js

lgtm; i think you need to run rush change to generate change files to increment pkg version & changelog

Is this not the change file?

lgtm; i think you need to run rush change to generate change files to increment pkg version & changelog

Is this not the change file?

lgtm; i think you need to run rush change to generate change files to increment pkg version & changelog

Is this not the change file?

ah it is, sorry missed it in my review. lgtm. merge whenever

repo: iTwin/admin-components-react


text:
Set antialiasSamples=4 crashes on Mac

Describe the bug
This is an issue that @ezmobivietnam is experiencing with our civil views using his Macbook Pro 2019. Whenever the antialiasSamples is set, the WebGL context is lost and nothing works anymore.
To Reproduce
Please refer to the following sandbox:
https://www.itwinjs.org/sandboxes/gagnon-a/webgl_context_macos_binh
Loading the sandbox should be sufficient to reproduce the issue. The crux of the problem is the following lines:
  const onViewportRef = (vp: ScreenViewport) => {
    vp.antialiasSamples = 4;
    console.log('Adjusted to 4 antialias samples');
  }

Expected behavior
Changing a setting that is not supported by the user's browser/WebGL capabilities should not crash the app. Ideally, it should just ignore it.
Screenshots

Desktop (please complete the applicable information):
Macbook Pro 2019

Processor: 2.6 GHz 6-Core Intel Core i7
Graphics:
AMD Radeon Pro 5300M 4 GB
Intel UHD Graphics 630 1536 MB
Memory: 16 GB 2667 MHz DDR4
macOS: Ventura 13.5.2 (22G91)
Getting the same results with Chrome, Edge and Firefox
iTwin.js Version: 3.7.7 (sandbox), 4.x (deployed pineapple)

Please send to the compatibility checker and report back with the number of antialias samples reported and all of the system information.

Then please find out how to configure the MacBook/browser to use the GPU. It is currently using software rendering, which is inappropriate for any 3D application.

here is the screenshot of the compatibility checker.

Did you change your browser to use your GPU? Because @a-gagnon's screenshot shows software rendering and "major performance caveat", while your screenshot shows hardware rendering an no such caveat.

here is the screenshot of the compatibility checker.

Did you change your browser to use your GPU? Because @a-gagnon's screenshot shows software rendering and "major performance caveat", while your screenshot shows hardware rendering an no such caveat.

I took the screen caps from an earlier conversion to create this bug report, perhaps some of it is out of context (?)
@ezmobivietnam were you getting the same errors using the sandbox and the civil model from infrastructure cloud?

here is the screenshot of the compatibility checker.

Did you change your browser to use your GPU? Because @a-gagnon's screenshot shows software rendering and "major performance caveat", while your screenshot shows hardware rendering an no such caveat.

No, I change nothing. I use the default browser settings. Regarding the performance caveat, it happens randomly. I just got it two times.

@markschlosseratbentley @iTwin/itwinjs-core-display

@a-gagnon @ezmobivietnam
Are you saying that your browser randomly goes from using a GPU to not using a GPU every time you run the compatibility checker?
If so, that sounds like a configuration problem.

@ezmobivietnam's latest repro steps make no mention of antialiasing.
Somebody please put together a single coherent set of repro steps and put them in the issue description.

@pmconne , I have no idea how the antialiasSamples is set/managed in Pineapple. But I did some tests with Alex's sandbox  then had the result as below:

Case 1: set  vp.antialiasSamples = to 4 then got the error:

Case 2: don't set vp.antialiasSamples, the sample works well :

@pmconne @markschlosseratbentley   Any updates on this? Do you need something else to complete this investigation?
He gets the error consistently using the Sandbox Alex provided.

I fail to repro in Chrome and Firefox on Windows 11 and Ubuntu 22.04. This includes setting vp.antialiasSamples to a definitely unsupported value like 192.
I have no access to a macbook to figure out why your WebGL implementation is failing when you set the number of antialias samples to a value it claims it supports.
@markschlosseratbentley, do you?

Hi @markschlosseratbentley ,
I have changed Chrome settings to enable/disable hardware acceleration, and tested the sandbox that Alex provided then got the result below:

Use hardware acceleration when available = ON (default setting): the issue consistently happens
Use hardware acceleration when available = OFF: the issue disappears.

Thanks so much for your help!
Binh

source: gharchive/issue

authors: a-gagnon ezmobivietnam markschlosseratbentley pmconne simnorm

repo: iTwin/itwinjs-core

license: MIT

license_type: permissive

license_source: github-api


text:
Tweak Cassandra driver settings.

Ping @ssprang, verified in test....

F.Y.I, @adamvoncorswant and @progre55...

PR in purchase-service will come...

👍

Wow, nice, throwing 🍠  at @x1a0 ! :)

Great 👍  @xiaodong-izettle and thank you @ssprang !
@xiaodong-izettle I am curious about how did you verify it in test, will this fix the Cassandra issue we have in prod?
(I think I will try to read driver state and push to influxdb/grafana for purchase and cash-register service see if that helps)

I'm not sure actually whether this could anything in prod... But I think it worth trying... :)

@xiaodong-izettle I see. Let's try then :)

When I said verified in test, I meant this did not break anything...

F.Y.I, @adamvoncorswant and @progre55, I'll try this in the evening today around 21:00 in prod...

https://github.com/iZettle/purchase-service/pull/772
This is the other part in purchase-service...

roger, thanks for the heads-up, @xiaodong-izettle

@xiaodong-izettle : Just curious about how the pooling option worked in the previous default configuration. Do you know?

@adamvoncorswant, if you meant the default configuration for datastax Cassandra driver, it's 1 for both core and max size, no matter it's local or remote... (At PoolingOptions::DEFAULTS, if you want the source code)
The driver uses Netty underlying, so I assume the default does make sense...
It's just we are having issues, so I want to tweak this setting...
Hope I made myself clear... :-)

Cool, thanks @xiaodong-izettle . Looks good to me!

Thanks for merging... :)

source: gharchive/pull-request

repo: iZettle/izettle-toolbox

license_source: bigquery


text:
Created the form for join waitlist

A visitor can now join the waitlist by entering his email address in the respective form.
If the visitor enters a valid email address and submits the form, a popup window informs the visitor that he successfully joined the waitlist.

If the visitor enters an invalid email address, the helper text asks him to enter a valid one.

Also I forgot to convert the PR to draft after my first review, I meant to do that.

Thanks for implementing most of the requested changes. Just the previous unresolved comments remaining, plus I've added a couple more.
Also, could you add a video and a brief description to the PR? The video can be a 10 seconds or so short GIF showing what it looks like when submitting the waitlist form, including the appearance and disapearance of the Snackbar (similar to the video on #24). I suggest using https://gifcap.dev/ for this if you don't already have a method for capturing short GIFs of the screen.

I added a short description with two animated GIFs, one for success, one for fail. If you want any changes, please let me know.

authors: SebastianHirsch iamlogand

repo: iamlogand/republic-of-rome-online


text:
Where conditions as associative array

$builder
  ->select()
  ->from('table')
  ->where(['id' => 5])

Closed by: 55a8450

repo: iamludal/MySQL-QueryBuilder


text:
Change and Improve the UI of Snake Game

The UI of the snake game is very basic and not very pleasing to look
Improve the UI of the Snake Game such that instead o f a red block we can implement something like an apple or egg and make the snake look better rather than having zeros on its body

I would like to add Rock Paper And scissors game

@iamrahulmahato I have a complete Snake game code with an improved UI compared to the one on your website. If you assign this issue to me under GSSoC-Extd, I will push the code by tomorrow morning.

@iamrahulmahato im facing this issue while i am trying to add my snake game
what is the issue

@iamrahulmahato im facing this issue could you tell why i am facing this even though it is assigned to me

Check the repository which shows in the last line of command shale is same
as in your github profile
then hit command "git push" only
It will work
On Thu, 3 Oct 2024 at 00:16, Karaka Nitin @.***> wrote:

image.png (view on web)
https://github.com/user-attachments/assets/ddd6e462-1de7-41f1-9685-1b7ceaec589b
@iamrahulmahato https://github.com/iamrahulmahato im facing this issue
could you tell why i am facing this even though it is assigned to me
—
Reply to this email directly, view it on GitHub
https://github.com/iamrahulmahato/master-web-development/issues/55#issuecomment-2389451397,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASYQ4NEJUK4RGFER344M4HDZZQ5SDAVCNFSM6AAAAABPFUBVMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2TCMZZG4
.
You are receiving this because you commented.Message ID:
@.***>

got the error it was my mistake
made the pr already

repo: iamrahulmahato/master-web-development


text:
Support for Llama3 via Amazon Bedrock

This PR adds support for Llama3 models via Amazon Bedrock. It also add Anthropic Claude 3 Opus to the list of models.
To avoid referring to hardocded model Id strings in several piece of code, we replaced all hardcoded model Id strings used by Bedrock models with the corresponding NativeLLM enum value.

Ok, I’ll get to this in time. Massi, can you check the other issue? Someone had an issue querying Bedrock.

authors: ianarawjo massi-ang

repo: ianarawjo/ChainForge


text:
Não funciona no Magento 2.2.5 #122

Ok @blopa , entendi.
Isso acontece pois fiz uma modificação nesse arquivo:
vendor/pagseguro/magento2/Model/PaymentMethod.php:63
Ele estava recebendo uma session, tive que fazê-lo receber uma order, pois estou utilizando o módulo via api e dessa forma não existe sessão.
Pode me ajudar nessa?
Creio que aqui a questão é modificar essa linha:
vendor/pagseguro/magento2/Controller/Payment/Checkout.php:58
para que envie o pedido que está na sessão, e não a sessão em si.
Mas como não estou usando o frontend do magento, não tenho como testar.
Consegue alterar os arquivos e verificar se funciona?

@ianitsky Este seu fork está funcionando no 2.2.X normalmente? Precisa de ajuda para resolver alguma issue?

Olá @iget-esoares. Até onde testei sim, está funcionando.
O @blopa  fez um PR, precisa ser testado com o módulo do paypal, pois ele disse que junto não está funcionando, para que possa integrar com esse módulo aqui.
Cara, qualquer ajuda será bem vinda. Se puder instalar e fazer os PRs do que achar que está ruim, agradeceria muito.

@ianitsky Para instalar seu módulo é apenas dar um composer require pagseguro/magento2 ?

Coloque no composer.json
"require": {
"pagseguro/magento2": "^1.12.6",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ianitsky/pagseguro-magento2.git"
},
],
Em ter, 12 de fev de 2019 às 04:46, Lgusuco notifications@github.com
escreveu:

@ianitsky https://github.com/ianitsky Para instalar seu módulo é apenas
dar um composer require pagseguro/magento2 ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ianitsky/pagseguro-magento2/issues/1#issuecomment-462637458,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ9_38NQ02iYYVsK0uiKlzks8IAClAeks5vMmMrgaJpZM4aa9D9
.

@ianitsky Qual token deve ser usado aqui ?
Your GitHub credentials are required to fetch private repository metadata (https://github.com/ianitsky/pagseguro-magento2.git)
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+ip-45-33-12-18+2019-02-12+1252
to retrieve a token. It will be stored in "/home/eldergames/.config/composer/auth.json" for future use by Composer.

@ianitsky Funciona na versão 2.2.6 ?

@ianitsky Você já teve esse erro no checkout ?
Internal Error. Details are available in Magento log file. Report ID: webapi-5c64ab5f83426
Segue o erro que acontece
https://imgur.com/a/Iw3Ixp2

@Lgusuco  Cola aqui o conteúdo do arquivo que está na pasta var/report/api/webapi-5c64ab5f83426 ou algo similar

@ianitsky Problema é esse não loga nada lá
O estranho quer logo que instalei o modulo deu esse erro.
1 exception(s):
Exception #0 (Exception): Notice: iconv_strlen(): Detected an illegal character in input string in /srv/app403.2d210c12.configr.cloud/www/vendor/magento/zendframework1/library/Zend/Validate/StringLength.php on line 250
Exception #0 (Exception): Notice: iconv_strlen(): Detected an illegal character in input string in /srv/app403.2d210c12.configr.cloud/www/vendor/magento/zendframework1/library/Zend/Validate/StringLength.php on line 250
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(8, 'iconv_strlen():...', '/srv/app403.2d2...', 250, Array)
#1 /srv/app403.2d210c12.configr.cloud/www/vendor/magento/zendframework1/library/Zend/Validate/StringLength.php(250): iconv_strlen('Configura\xC3\xA7\xC3\xB5es')
#2 /srv/app403.2d210c12.configr.cloud/www/app/code/Magento/Backend/Model/Menu/Item/Validator.php(93): Zend_Validate_StringLength->isValid('Configura\xC3\xA7\xC3\xB5es')
#3 /srv/app403.2d210c12.configr.cloud/www/app/code/Magento/Backend/Model/Menu/Item.php(180): Magento\Backend\Model\Menu\Item\Validator->validate(Array)
#4 /srv/app403.2d210c12.configr.cloud/www/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Backend\Model\Menu\Item-

authors: Lgusuco ianitsky iget-esoares


text:
Only count failed changes when reporting summary

Problem
When a schema change causes a failure, we then go in and get the number of changes to report as the total number of changes that are broken, however all changes are not breaking changes.

Solution
Filter the change list to only those that are broken when generating the total count

@iansu accepted your changes here and added a note to the conversation.

repo: iansu/apollo-schema-check-action


text:
RFC to improve module install UX

Options:

make install async
explain it will take a while / display logs

It was discussed offline that it would be best to a have good message setting the expectation for how long iasql_commit or iasql_install can last for the time being and continue to monitor the issue and collect more data about the issue and how to best move forward https://github.com/iasql/iasql/pull/2311

repo: iasql/iasql


text:
请问cookie怎么使用？

我看了文档annie -c "cookie" url
但是cookie怎么提取，我是爱奇艺的会员，直接从f12控制台里复制head里面的cookie用不了。想问一下怎么获取正确的cookie用于下载？谢谢

看一下 #37，这个问题在那里回答得比较详细了
还有，爱奇艺需要做单独的 VIP 下载适配，现在有 cookie 也下不了 VIP 视频


text:
Executions request timed out

Using macOS, TWS 10.30.1i (current Latest) and TWS 10.31.0i (current Beta), ib_async is unable to fetch executions. Depending on the setting of the new Global Configuration > API > Settings > Download Execution Report, one of the following happens (at least when the account being queried does have executions for the current day)

If "All Available": reqExecutions returns but none of the day's executions are returned. No execution data appears in the TWS logs.
If "Today": reqExecutions hangs and TWS never sends the "end executions" message (tick 11). No execution data appears in the TWS logs either. On connection, ib_async will print "executions timed out" indicating reqExecutionsAsync has timed out.

This issue also occurs when using the native IB API on both stable and latest branches, so it's unlikely to be related to ib_async, however I'm posting this here in case others run into this issue.

Anyone still experiencing this issue?  After using ib_insync for years, I'm suddenly having problem pulling fills and executions in my paper trading accounts.  I've updated to more recent versions (currently on 0.9.82 of ib_insync) but thinking I probably should make make the switch to the new libs.

Actually look like the fills in my paper trading account are now showing up again when I change the setting mentioned above:   Global Configuration > API > Settings > Download Execution Report.  Changed this to "Today" and I'm see now seeing some fills.   Huge relief!

authors: prurph wardster-ai


text:
librosa MemoryError

I keep getting a MemoryError from librosa
$ python train.py --checkpoint_every=1 --data_dir=data
Using default logdir: ./logdir/train/2016-11-05T21-43-34
Trying to restore saved checkpoints from ./logdir/train/2016-11-05T21-43-34 ... No checkpoint found.
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/neural-network/tensorflow-wavenet/wavenet/audio_reader.py", line 91, in thread_main
    for audio, filename in iterator:
  File "/home/neural-network/tensorflow-wavenet/wavenet/audio_reader.py", line 24, in load_generic_audio
    audio, _ = librosa.load(filename, sr=sample_rate, mono=True)
  File "/usr/local/lib/python2.7/dist-packages/librosa/core/audio.py", line 149, in load
    y = np.concatenate(y)
MemoryError

Does Python's garbage collection behave weirdly with for loops inside generators? I would expect the old audio bytes to be removed from memory when the audio reference gets overwritten on lines 24 and 91.
How large was the file it was trying to load?
When you run top in command line, look at the memory usage of the process as you run it. What happens? Does it grow up and up?

@Cortexelus It does grow up until it tops out at ~1700MB.
The file it was trying to load was about 500bm large, I'll try splitting that up

Looks like you need to either reduce memory consumption, or run on a machine with more memory (either host memory, GPU memory or both).
You can set sample_size (which defaults to 100000). If you set sample_size to, say 64000, then instead of having a [1,100000,512] tensor you'd get a [1,64000,512].

@nakosung had success with 158 files 200k each. .
Did you try splitting your 50mb up into a few hundred little files?
I think the files don't need to be bigger than the receptive field size. Someone correct me if I'm wrong.

[threadjacking thanks to @Cortexelus]
If your input data is in a format supported by libsndfile (eg, flac/wav/ogg but not mp3), I'd recommend using soundfile instead of librosa.load (which sits on top of audioread).
librosa's loader is really intended for short signals, and is not at all optimized for memory usage.  I've used soundfile on long signals (~3hr duration) without a hitch though, and since it provides numpy array views of the data, it should play nicely with everything else.
(In case you're wondering, the main reason we don't switch librosa over to soundfile instead of audioread is mp3 support.)

authors: Cortexelus JanGross bmcfee jyegerlehner

repo: ibab/tensorflow-wavenet

license: mit


text:
Testmode should recognise any or any registered email

Test claims are all being marked bad because the email doesn't (won't) match.
Two possible fixes: - allow any address; allow any registered address.
Shortly before rally we should already have all the registered email addresses but entrants won't know their own numbers.

In testmode, the switch matchemail is used as:-
true - email must match registered email
false - return matched if matching any address in the database

repo: ibauk/ebcfetch


text:
Bug-fix-revert

Footer reverted

Footer reverted


text:
Unable to parse if a variable does not exists in JSON

I know my question is a little confusing so please allow me to elaborate.
//MODEL
#import "JsonModelLib/JSONModel.h"
@interface CustomerDetailsModel : JSONModel
@property (nonatomic, strong) NSString *description;
@property (nonatomic, strong) NSString *firstName;
@property (nonatomic, strong) NSString *lastName;
@property (nonatomic, strong) NSString *activatedTill;
@property (nonatomic, strong) NSString *birthdate;
@property (nonatomic, strong) NSString *phone;
@property (nonatomic, strong) NSString *id;
@property (nonatomic, strong) NSString *statusCode;
@end
//JSON string
NSString* str = @"
{
"description": "None",
"firstName": "vikas",
"lastName": "bansal",
"activatedTill": "2016-01-17 09:04:11",
"email": "bansal",
"birthdate": "None",
"phone": "None",
"id": "1053",
"statusCode": "1600"
}
";
//Parsing
CustomerDetailsModel* c = [[CustomerDetailsModel alloc] initWithString:str error:nil];
//PROBLEM
The problem is that some time when json does not contain a variable that exists in MODEL Why?? becuase the REST API I am using does not render variable into JSON if there is no value in it.
For an example suppose there is no value in birthdate then it will not be included in JSON so when I will try to parse the JSON what I will get is an error.

What you need is to declare the key optional - this will allow for missing JSON keys:
https://github.com/icanzilb/JSONModel#optional-properties-ie-can-be-missing-or-null

authors: icanzilb vikasbnsl

repo: icanzilb/JSONModel


text:
Bring back fast enumeration to JSONModelArray

Bring back fast enumeration to JSONModelArray, lost in commit c4ffee63b64a71c1319b6b5149f60ee88c5f92b8. Based on a sample from Apple.

thanks for adding this

authors: ddebin icanzilb


text:
🛑 Proxy is down

In 13dcb48, Proxy (https://proxy.icarephone.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxy is back up in 291079b.

repo: icarephone/upptime


text:
Missing LICENSE file

Good job developing this library! I love how simple and minimal it is.
I notice from the package.json and the header in the source files that this is released under the MIT license, but seems like the LICENSE file is missing from the root of the repository. I suggest adding it.

Thanks for the heads up! I'll add one soon


text:
Add timezone parsing / serializing

This PR updates the full_tz branch with correct timezone parsing / serializing. I'll add some comments in the code to explain some of the changes. It uses the responds_to?(:time_zone) method you already had in place to check for ActiveSupport.

With this update, the full_tz branch might (?) have full time zone support (Supports parsing, serializing, and iterating time with zones--I think that's everything).
Without this update, I think the full_tz branch only supports iterating time with zone's, which I believe the master branch already supports (?).

Hi,
It would be very nice to have this official support of timezone parsing; can the author init a merge ?

authors: jorroll suzumejakku


text:
route with extension

How to setup a common route to match /module/controller/action/id/param.json

How about?

            ['*', '/{module:[a-z-]+}[/{controller:[a-z-]+}[/{action:[a-z-]+}[/{id}[/{param}]]]]'],

not works. this rule can't match .json

try [/{param:[a-z\.]+}]

['*', '/{module:[a-z-]+}[/{controller:[a-z-]+}[/{action:[a-z-]+}[/{id}[/{param}]]]]']
DON"T WORK: http://e.com/account/user/signup/id.json
WORK: http://e.com/account/user/signup/id/a.json
public function signupAction() {
    print_r(func_get_args());
}
Array
(
    [0] => id
    [1] => a
    [2] => json
)

WORK: http://e.com/account/user/signup/id/a/b.json
public function signupAction() {
    print_r(func_get_args());
}
Array
(
    [0] => id/a             <---------- what's wrong?
    [1] => b
    [2] => json
)

abandon fastroute & close

authors: Yahasana mruz

repo: ice/framework


text:
Creating custom fields require formatValueToModel method

Creating custom fields require formatValueToModel method.
If no method there is a console error.
Maybe if no method available just use value? Now needed to add:
formatValueToModel(value) {
  return value;
}

Released in v2.1.1

authors: Alex-Sokolov icebob

repo: icebob/vue-form-generator


text:
Fixing build up a bit

Added a gradle wrapper. Because we have standard zillow gradle setup, we need to make sure that these builds are not part of that process. Having a gradle wrapper is the way to do that.
There is no need to import the versioneroptions because you are not setting any options. So i simply removed them. If there are options that need to be set, then i can show you the new way to set it without having to import any classes.
I've already updated our jenkins build to use the gradle wrapper

It's still not working:
[Gradle] - Launching build.
[Gradle] - [ERROR] Can't retrieve the Gradle executable.
Build step 'Invoke Gradle script' marked build as failure


text:
As a Data/Web manager I want to provide a function to enable organisations/data providers to update their details (eg contact) ..so that I these canbe kept up-to-date by themselves

original id#80

This is part of the EDMO codes. They can update their details at any time and the EDMO code will keep the same.

authors: LynnHeeley cmspinto

repo: ices-tools-dev/cetaceans


text:
🛑 Cravings For Green is down

In c54ab2f, Cravings For Green (https://cravingsforgreen.nl/) was down:

HTTP code: 500
Response time: 10564 ms

Resolved: Cravings For Green is back up in 9060584 after 16 minutes.

repo: icheered/uptime


text:
parsing docx input with "track changes"

I'm testing out pancritic on ubuntu.
pip3 install --upgrade pancritic
Running pancritic-0.2
chapter1.docx
python3 -m pancritic chapter1.docx -t markdown -m m
(just to make doubly sure I'm not having any python2 problems)
Throws an error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position 41: invalid start byte
brian@1602019:~/testSupervisorComments$ pancritic chapter1.docx
Traceback (most recent call last):
  File "/home/brian/.local/bin/pancritic", line 11, in <module>
    sys.exit(cli())
  File "/home/brian/.local/lib/python3.6/site-packages/pancritic/main.py", line 137, in cli
    main(*get_args())
  File "/home/brian/.local/lib/python3.6/site-packages/pancritic/main.py", line 103, in get_args
    body = args.input.read()
  File "/usr/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position 41: invalid start byte

Is this a bug on my end?

Oh, may be I didn't mention, pancritic currently only accepts UTF8 input, and also only parse CriticMarkup when the input is in markdown.
So do you want to write CriticMarkup syntax in Word then have pancritic parse it?

The local objective was to render a word document's track changes into markdown so that it could be committed intelligently to a github repo. "Default" encoding on the document (I was investigating a colleague's document)
The main objective was to be able to render multiple reviewers' comments into the same commit history, for a better perspective on what the reviewers wanted.

Note to dev:

see pandoc's doc on --track-changes=all
parse it output (with a pandoc filter?) to something pancritic understand

Help wanted since I don't quite use docx much to need this feature.

@Denubis, could you provide a MWE in docx that has all different kinds of changes supported via pandoc's --track-changes?

@Denubis, pandiff supports docx track change so probably you should check that out. pancritic's goal is more about authoring in markdown with CriticMarkup while pandiff (which is newer) handles different situations involving diff and your use case is one of them.

authors: Denubis ickc

repo: ickc/pancritic


text:
Add uGIF encoder

I have added export gif support using simonwittber/uGIF library. I didn't enable the options for desktop, only for VR to avoid conflict in pending ffmpeg pull request. It can be enabled following the steps from readme.

I just tested this, and I found the following issues:

Only 5-second gif was enabled, no auto-gif.
No preview was displayed in the multicam when recording a gif.
The 5-second gif has no watermark
The auto-gif (once enabled) has a bar across the watermark.

Instruction for some reason didn't include auto gif, but seems that there is no reason to not keep it on.
Watermark is simply disabled in scene, need to enable it.
The missing preview screen seems so far the worst bug, tried to track it down, but cannot say now why it doesn't work as the code to create preview is exactly the same as for picture taking. Atlas created based on camera for some reason is not working. I'll try to investigate it further.
Didn't check the black line yet.

Changes of second commit:
Watermark now enabled for 5-second
No black bar (was caused by black pixels on the edge of watermark, simply added 1px padding transparent from left and right)
Fixed preview for GIF
Enabled GIF options for PC and Mobile

authors: TimAidley ikopytko

repo: icosa-gallery/open-brush


text:
DynaNet running with no orthometric heights for terrestrial only points

v3.2.6 The SA submission 02/01/2019 runs happily without the following heights for terrestrial only points.
H 6427/ 1449                                                         17.9700                 2.0000
H 6427/ 1450                                                         17.9700                 2.0000
H 6429/ 2817                                                         83.1500                 2.0000
H 6429/ 2818                                                        102.5390                 2.0000
H 6429/ 3067                                                         97.4320                 2.0000
H 6429/ 3139                                                        132.6300                 2.0000
H 6429/ 3140                                                        132.6300                 2.0000
H 6429/ 3141                                                        132.6300                 2.0000
H 6429/ 3142                                                        132.6300                 2.0000
H 6429/ 3144                                                        132.6300                 2.0000
H 6627/28371                                                        242.0450                 2.0000
H 6629/ 8059                                                         56.2000                 2.0000
H 6629/ 8060                                                         56.2000                 2.0000

Based on the group discussion at the AWG face-to-face, which concluded that this is not a bug, I am closing this issue.

repo: icsm-au/DynAdjust


text:
Proposal: move to prettier organization to collaborate

As title.
cc @fisker

I know it would allow for better collaboration. However, I have worked on this plugin basically solo and I'd like to see if I can't get some sponsorship for my work.

I think you can just keep the sponsor sections in this repo, that's totally fine to me.

Welcome to join us.

@idahogurl Hi, if you're also interested, you can discus at https://github.com/prettier/prettier-eslint/issues/949.

authors: JounQin fisker idahogurl

repo: idahogurl/vs-code-prettier-eslint


text:
final write added for opt workflows

Pull Request Description
What issue does this change request address?
Closes #240
What are the significant changes in functionality due to this change request?
Adds final write of optimization path CSV after the RAVEN Outer MultiRun finishes, which will allow user viewing of the final accepted point.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass.
[ ] 5. If significant functionality is added, there must be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large tes.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added, the the analytic documentation must be updated/added.
[ ] 9. If any test used as a basis for documentation examples have been changed, the associated documentation must be reviewed and assured the text matches the example.

@dylanjm this addresses the comments Amey had on the "final" opt point

Yes, you're right. It didn't show up since it's a "heavy" test. I'll regold that.

repo: idaholab/HERON


text:
[TASK] Install CodeInterface classes similar to External Models

Issue Description
Is your feature request related to a problem? Please describe.
Using Raven with the CodeInterface class, it is required to manually copy the CodeInterface.py class into the raven/framework/CodeInterfaceClasses/SomeModule/CodeInterface.py
This is problematic because:
Any revision tracking on a "CodeInterface" class must be manually copied from the raven module back to a personal repo.
Any installation of Raven as a submodule requires the additional step of copying the interface module into Raven.
Describe the solution you'd like
Using Raven with the External Plugins Models it is possible to "install" a local directory which includes the plugin. Would it possible to extend the plugin installers use to include code interface classes?
Describe alternatives you've considered
Didn't have success with symlinks in raven/ravenframework/CodeInterfaceClasses/

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[ ] 1. Is it tagged with a type: defect or task?
[ ] 2. Is it tagged with a priority: critical, normal or minor?
[ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[ ] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest release branch? If yes, is there any issue tagged with release (create if needed)?
[ ] 5. If the issue is being closed without a pull request, has an explanation of why it is being closed been provided?

@wangcj05 @mandd

@wangcj05 @mandd  if you think this is a feature RAVEN should support, can you provide us an ETA? (just to do some internal planning)

@aalfonsi We would like to have this feature. I will have time in October to tackle this issue.

@wangcj05 Just pinging you on this issue. Do you think there is still a chance for this to get included this month?

@claybro2005 Unfortunately, we will not be able to add this feature in this month. I just started to look at this issue. Hopefully we will add this feature in the one or two weeks.

@claybro2005 @aalfonsi FYI, I have created a PR for the code interface plugin. If you have time, please try to test it and let me know if you have any issue. The PR is #2000

repo: idaholab/raven


text:
Model and Documentation for hexagonal assembly core bowing

Adding hexagonal assembly thermal mechanical model input files, mesh and documentation. Three model input files are included:

Single assembly bowing, with linear thermal gradient
Single assembly bowing, with constant thermal gradient
Assembly bowing into symmetric sector with linear thermal gradient

The list of changes are as follows:

Creation of 3 input files for the models above, plus the mesh for the sector problem, which are located within "hex_duct_bowing" within the "sfr" directory
Creation of documentation for the 3 models above which are located within "hex_duct_bowing" within the "sfr" directory
SFR page index was updated to include entry and link for "Hexagonal Assembly Thermal Bowing" page.

https://github.com/idaholab/virtual_test_bed/issues/145#issue-1427934820

Job VTB Documentation on 798eb77 wanted to post the following:
View the site here
This comment will be updated on new commits.

Sounds good.
It will be tested by blue_crab which has all the modules involved.
I m trying to get reproducible regression tests results between my machine and CIVET on these inputs. If I can't get that we'll be delayed on merging

authors: GiudGiud moosebuild nwozniak70


text:
Installation issues

Hello, excuse me. I'm trying to build this project, but it can't be installed well. I'd like to ask you if this is a complete project?

It's a POC, but it should work. What errors are you encountering?

authors: adminxb idanaharoni


text:
Milestone 3-Submission

I do not see your schema. Please make sure you have pushed all your latest project files to your GitHub Repo.

@hatu87 Updated in the readme. Model Class/Data Schema please check.

:+1: Nice work on getting the data schema defined! Next week we jump into the first implementation sprint. You'll have 3 sprints (one week each) to complete all the required stories for your app and 2 sprints (one week each) to work on optionals and add polish. Let us know if we can help in any way!

repo: ideafamily/Emonar


text:
start nieuw geval als oude niet is afgerond

Als je een geval nog niet hebt afgerond (maar bijvoorbeeld denkt, dit geloof ik wel) en op nieuw geval drukt, krijg je geen nieuw geval, maar heb je ook het potloodje nodig om weer terug te gaan naar het oude.

kan ik niet meer reproduceren

repo: ideas-edu/logictools


text:
Added help page and fixed broken hot keys

Resolves #61 and resolves #60
Test here

Chrome staat niet toe dat je ctrl-n en ctrl-shift-n kan overriden. Ik denk ook dat we dat niet willen. Misschien kunnen we andere sneltoetsen ervoor bedenken?


text:
Use a CI for ansiblecube

In addition to plugging us to the CI, this commit also introduces a test, asking ansible to verify the syntax for all of our roles.

We should add a test to verify that the *.fact files are valid JSON.

So I've rebased this branch, and added a few checks:

all the *.fact files are now checked to make sure they are valid JSON
all the *.j2 files are now checked to make sure they are valid Jinja2 templates

I'm not entirely sure about the latter, but it seems to work and correctly report the obviously broken templates I've tried.
All tests pass right now because the whole repo is clean (kudos!). Merging this will help ensuring that the repo keeps clean. :smiley:

Great ! Thank for your help. Nothing else to merge ?

Nothing else to merge ?

This should be good to merge right now.
I have some more checks I'm working on, but they aren't ready to be merged yet, so I'll submit them in a future pull request.

authors: bochecha fheslouin

repo: ideascube/ansiblecube


text:
Chooser filter seems inconsistent

I did a search on RBL2, which brought up 64 hits. I then tried the filter "ublic", which brought up two cards. I then tried filter "public", which brought up only one. In both cases, I couldn't figure out why the filter applied to the cards ... and there are plenty of public networks in this set. Is filter working properly?

Yes, the filter filters out keys on the network, so to filter out public networks you must type PUBLIC, not public. The cards you say when you typed in ublic must have had that term somewhere in another field.

Make search case insensitive

If I search on rbl2, then enter the filter "ubplic" then type 3, the 3 disappears. If I try to replace the filter with "endo", the "e" is echoed but all other characters I type disappear.

Seems to work fine ... thanks!

authors: bdemchak ericsage


text:
Upgrate go

upgrade go to 1.18
upgrade linter to 1.46.2 (due to incompatibility)

resolved in https://github.com/idodod/protoc-gen-fieldmask/pull/18 and https://github.com/idodod/protoc-gen-fieldmask/pull/22

repo: idodod/protoc-gen-fieldmask


text:
fix(documentation-website): overflow-x hidden for code snippets

The Pull Request is ready
Setting the overflow-x for code snippets to hidden

[x] fixes idrinth-api-bench/issues#1092
[x] all actions are passing
[x] only fixes a single issue

Overview

I've set the overflow-x to hidden in code.scss
previously it was set to scroll
I verified that it appears ok on mobile too

Review points

I had a minor error when I tried to run it locally

file:///workspaces/documentation-website/tools/load-contributors.js:128
      for (const contributor of await contributors.json()) {
                                ^

TypeError: (intermediate value) is not iterable
    at file:///workspaces/documentation-website/tools/load-contributors.js:128:33
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I didn't get into it since it's out of the scope of what I was adjusting
Documentation-Website

[x] mobile view is usable
[x] desktop view is usable
[x] no a-tags are used directly (NavLink, MailLink, ExternalLink instead)
[x] all new texts are added to the translation files (at least the english one)
[x] tests have been added (if required)
[x] shared code has been extracted in a different file

file:///workspaces/documentation-website/tools/load-contributors.js:128
      for (const contributor of await contributors.json()) {
                                ^

TypeError: (intermediate value) is not iterable
    at file:///workspaces/documentation-website/tools/load-contributors.js:128:33
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

You ran into a github api-limit, your contributors page would have been incomplete, otherwise no issue :) You can pass in a github api key via .env file. Will adjust the error message.

authors: Idrinth monacodelisa

repo: idrinth-api-bench/documentation-website


text:
empty repo?

looking forward to the releases

Updated repo with code and model checkpoints now!

repo: iesl/anncur


text:
The agenda editor is not showing dates in meeting time

From @flynnliz (split out from #4375):

Also, that WG Chairs lunch session is actually from 12:15-13:15 but the header on its rectangle lists 13:30-14:30 as it’s trying to fit itself into the rest of that column, which just adds to the confusion of what times those lpwan and idr sessions are.

The dates are currently in UTC

I think this was a side effect of problems hiding timeslots and was also fixed by #4385. Feel free to reopen if I'm mistaken.
Related ticket #4435 captures problems with time zones on the tzaware branch (there, the entire UI was showing things in Pacific time instead of meeting time, so not really the same).

authors: jennifer-richards rjsparks

repo: ietf-tools/datatracker


text:
create a new document containing all errata and additions to RFC 8794

As discussed during our last IETF meeting, this should go in a new document which not an errata document nor a replacing RFC.
We need to collect all the PRs with errata label and put them in a new generated document.

@SpencerDawkins sent a proposal for the format to follow with this document.

Some followup emails on how to handle it: https://mailarchive.ietf.org/arch/msg/cellar/kCL24UZRcv-ySh3FTbPljNOlkQI/

It looks like we should push this further. That may be needed to update the IANA registry. And IMO we should also do #164 so we can use it in Matroska v5.

repo: ietf-wg-cellar/ebml-specification


text:
Newsletter - Aumentar string de notícias

Problema na página de administração:
String de notícias atingiu um limite e não mostra as notícias mais recentes para adição na newsletter – Faz-se necessário cadastrar a notícia nova como uma notícia antiga.

Não foi possível determinar o problema.

authors: andrewmota viniciuscrizel

repo: ifrsrg/projens-apl


text:
Hitting Esc does not return to Selection mode

(Ignition Citadel 3.3.0) The Manipulating Models tutorial says Esc returns to select mode from any other mode, but this does not appear to be the case.

You can always return to selection mode from any other mode by pressing Esc.

https://github.com/ignitionrobotics/docs/blame/master/citadel/Manipulating_models.md#L42
https://ignitionrobotics.org/docs/citadel/manipulating_models#select-mode
Hitting Esc in Translate mode or Rotate mode deselects entities that are being acted upon, but it never returns to Select mode. Esc as deselect feels pretty intuitive to me - maybe the line about returning to Select mode should be removed from the tutorial?

but it never returns to Select mode

It does for me if the 3D scene has focus, but not if the entity tree has focus. I think we could just make sure that works. And also mention on the documentation that esc also deselects all entities? CC @JShep1

It does for me if the 3D scene has focus, but not if the entity tree has focus.

Interesting! If I add shapes to empty.sdf then it works for me with the 3D scene in focus, but if I launch shapes.sdf and add the Transform Control plugin then I get the behavior in the issue.

Interesting! If I add shapes to empty.sdf then it works for me with the 3D scene in focus, but if I launch shapes.sdf and add the Transform Control plugin then I get the behavior in the issue.

Yeah, so just for some background, this issue is likely boiling down to how QML captures input.  Whichever section is currently focused will accept the input and the other sections will not observe this input, I suppose this is a QML way of optimizing its front-end, but it has proven to be sort of a nuisance in cases like these.  Currently, the method of the focus transitioning to the 3d scene is simply hovering your mouse over that area, so no action will occur on a button press unless the mouse has at least hovered over the 3d scene first (possibly we should add some documentation about this, I tried to fix this awhile ago and honestly couldn't find the best solution which focuses the 3d scene at all times, it may be worth re-visiting).
I see what you mean with the transform control not returning to select mode when the escape button is pressed when you load in the Transform Control via the plugin menu, I'll need to look into this some more.

authors: JShep1 chapulina sloretz

repo: ignitionrobotics/ign-gazebo


text:
🛑 Nexus: Fonts CDN is down

In 5275aa1, Nexus: Fonts CDN (https://fonts-cdn.nexuspipe.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nexus: Fonts CDN is back up in dab5390 after 9 minutes.

repo: ignore-me-lol/personal-uptime-monitor


text:
Использование относительных URL в запросах

После обновления перестали работать запросы к API в приложениях, как выяснилось, проблема в том, что в новых версиях относительные URL считаются не валидными
Хотелось бы продолжить использовать относительные URL, кроме того, было бы здорово видеть ошибки, которые прерывают запрос, в консоли, потому что сейчас запросы просто молча не отправлялись, довольно долго пришлось разбираться, что вообще происходит

Поддержку относительных урлов вернул в https://github.com/igorkamyshev/farfetched/pull/494, сегодня будет в релизе.
Логирование ошибок в консоль — хорошая идея, добавлю в дев-тулзы в рамках https://github.com/igorkamyshev/farfetched/pull/482

authors: igorkamyshev kirill-kalinin

repo: igorkamyshev/farfetched


text:
Update scala-compiler, scala-library, ... to 2.12.17

Updates

org.scala-lang:scala-compiler
org.scala-lang:scala-library
org.scala-lang:scala-reflect

from 2.12.14 to 2.12.17.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #261.

repo: iheartradio/ficus


text:
tests

Need to add some basic tests and test data.

would be also nice to have an example how to actually use the DICOM.jl package :-)
I need to write some DICOM data which I have available as either a 2D or a 3D array and don't have a clue how to do that.

@ihnorton Any help in how to use the DICOM.jl package? I tried to pass an array to dcm_write but it failed with an error that anyp is not defined

@simonster @ihnorton Any chance to give a hint how to use this package? This would be great!

authors: ihnorton tknopp


text:
Update PyPi publish action

The following warning showed up in the logs for the last action that made a release to PyPi:

Warning:  You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas.

Looks like the latest is 1.5.1: https://github.com/pypa/gh-action-pypi-publish/releases/

authors: digitaldogsbody glenrobson


text:
Handling Truncated Records?

We've just noticed a few timeTrunc errors in our crawl logs and the resulting WARC-Truncated: time headers in our WARC records. Does OpenWayback handle these specifically?
At the moment it just seems to silently fail to render anything. I'm not sure, however, what it should be doing. For instance:
WARC/1.0
WARC-Type: response
WARC-Target-URI: http://www.---.com/images/---.jpg
WARC-Date: 2015-04-13T18:59:40Z
WARC-Payload-Digest: sha1:7VXVD5DY2ORDVSV3L46PFR2LS2BDU4ZN
WARC-IP-Address: ---.---.---.---
WARC-Truncated: time
WARC-Record-ID: <urn:uuid:cae241d0-6839-4bb1-a0c2-9ab65799b557>
Content-Type: application/http; msgtype=response
Content-Length: 1368

HTTP/1.1 200 OK
Date: Mon, 13 Apr 2015 18:59:41 GMT
Server: Apache
Last-Modified: Mon, 16 Apr 2012 09:16:55 GMT
ETag: "3d47296-dd8f-4bdc848972690"
Accept-Ranges: bytes
Content-Length: 56719
Connection: close
Content-Type: image/jpeg

ÿØÿà^@^PJFIF^@^...

Here we've a partial JPEG—should OpenWayback return the partial? Or treat it like a revisit and try to find the nearest record (although the hash would be wrong...)?

I vote for returning the partial. Could be useful in the case of audio streams for example. We happened to run into such a capture today, where we got a 2 hour snapshot of http://mozart.wkar.msu.edu/wkar-fm-mp3

Wouldn't it make more sense to display an interstitial page explaining the issue and offering a link to the partial content? If we just present the partial content without any context, users are likely to conclude that there is an issue with the archive service.

This is another one of those times I'd prefer a iframe approach, as the fact that this is known to be damaged from capture could be relayed around the edge.
If that's too difficult, I'd rather we provided an interstitial, but either way, I think we should be able to return the item as-is rather than hide it.

Sure, interstitial is a good idea, although my guess is that truncated urls are usually not gonna be html pages viewed at the top level. The examples mentioned here are a jpeg and an audio stream, so the interstitial wouldn't come into play in these cases (right?)

No, at least not when viewing them as embedded resources. Only when they are accessed directly.

authors: PsypherPunk anjackson kris-sigur nlevitt

repo: iipc/openwayback


text:
🛑 Quizmaster is down

In d349818, Quizmaster (https://quizmaster.shabox.mobi) was down:

HTTP code: 502
Response time: 805 ms

Resolved: Quizmaster is back up in bbab4f5 after 16 minutes.

repo: ijazrushad/ijaz-upptime


text:
🛑 AdPlay Game is down

In f3eeb95, AdPlay Game (https://game.adplay-mobile.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AdPlay Game is back up in 2f1e70e after 13 minutes.


text:
Ability to modify req before making request ?

I have a situation where I want to store human readable content but I cannot do that because my browser always send 'accept-encoding': 'gzip, deflate, br' and it will be passed to backend server as well and my response body always end up base64 encoded.
I tried using chrome extension to remove 'accept-encoding from headers. Server then returns plain text and talkback also store response body in json. But this is not good when we work as a team. I think there should be a way to handle this kind of situation when we setting up talkback server.
Thanks for making talkback I really like it.

Hi @ball6847.
This is something that I've thought about before. Ideally I'd like Talkback to be able to decompress the response, store it in plain text (and pretty-printed), and re-compress it on playback.
In the meantime I've released v1.11.0 which adds the requestDecorator option. You can see your specific use case in the README example.
Glad you like talkback :)

repo: ijpiantanida/talkback


text:
🛑 Uptime VF Bot is down

In 481b4ff, Uptime VF Bot (https://uptime-discord-bot.nexter32.repl.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Uptime VF Bot is back up in 338289b.


text:
Why policy loss is negative?

In train.py, the code for updating the policy loss is
 policy_loss = policy_loss - \
                log_probs[i] * Variable(gae) - 0.01 * entropies[i]

According to the original paper, I think it should be
 policy_loss = policy_loss + \
                log_probs[i] * Variable(gae) + 0.01 * entropies[i]

In the paper, the equations are written assuming gradient ascent. As we use gradient descent optimisers, the equations have to be negated.

authors: Kaixhin xuehy


text:
Can not get pythonect running on Ubuntu. AttributeError

Hello, I am a newbie both to pythonect and python. I am just trying to get pythonect up and running on plain Ubuntu 18.04, never used python before.
Whatever I do, pythonect crashes horribly with lots of gibberish, Traceback, and the inevitable
           AttributeError: can't set attribute

error. For example:
$ which pythonect
~/.local/bin/pythonect
$ pythonect
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[Pythonect 0.6.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+1
Traceback (most recent call last):
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/eval.py", line 792, in eval
graph = parse(source)
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/eval.py", line 729, in parse
graph = _graph.Graph()
File "~/.local/lib/python2.7/site-packages/Pythonect-0.6.0-py2.7.egg/pythonect/internal/_graph.py", line 47, in init
self.node = _ordereddict.OrderedDict()  # dictionary for node attributes
AttributeError: can't set attribute
>>>
I tried installing pythonect  with pip, easy_install, or git clone. The result is always the same. I run the nose test in the git checkout:
pythonect$ python setup.py install --user
...
Finished processing dependencies for Pythonect==0.6.0
pythonect$ python setup.py nosetests
1 test_command_mode (test_interpreter.TestPythonectInterpreter) ... ERROR
ERROR: test_command_mode (test_interpreter.TestPythonectInterpreter)
Traceback (most recent call last):
...
File "~/pythonect/pythonect/internal/_graph.py", line 47, in init
self.node = _ordereddict.OrderedDict()  # dictionary for node attributes
AttributeError: can't set attribute
Please, I am just following the tutorials. What am I doing wrong??

Hoi @owigger! I was able to reproduce as well:
virtualenv --python $(which python2) virtualenv
. virtualenv/bin/activate
pip install pythonect
pythonect
1+1

The metadata says it's Python 2.7 compatible, but the last release was six years ago, so I suspect it's incompatible with recent Python 2.7 versions.

repo: ikotler/pythonect


text:
view size is not compatible with input tensor's size and stride

I am trying to reproduce the output for
! python RandAugment/train.py -c confs/wresnet28x10_svhn_b256.yaml --save svhn_wres28x10.pth
The error is encountered in the metrics.py
correct_k = correct[:k].view(-1).float().sum(0)
Error message : view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces)
The same error arises while testing for cifar10

hi, i meet the same problem as yours. Because the view function need the tensor address is continuous, if discontinuous, you should add the contiguous function before view .
Now I can run this code :)

authors: Srigowri XiaoFengbing

repo: ildoonet/pytorch-randaugment


text:
Version for CudaText?

Hello Ilia.
Can I ask for a version for my CudaText editor?
API allows this , but it is in Python, sorry.
Can you help?
It will be very useful plugin.

Hello!
I don't use CudaText, so I have no interest in porting the extension. You can freely use my code as a reference for your own extension though! Or, if you want to, I can do this as a paid project. If you're interested in that, please email me to discuss the price and the details.

authors: Alexey-T iliazeus

repo: iliazeus/vscode-ansi


text:
Create additional info blocks

You can make your resume less official by adding more entertaining info, like your hobbies and interest, or what do you like, some interactive content or joke, easter egg, etc.

Well done!!!

repo: illia-dobro/homepage


text:
Add Pagination Button and make all the grid element take all the space.

Is your feature request related to a problem? Please describe.
The pagination at the bottom is small to navigate. And it kind a look out of place when there are still items but the items does not fill all the table.

Describe the solution you'd like
Add (<, >) pagination buttons to navigate the pages more efficiently. And if there are still items available fill all the tables with items.

Fixed it.
Thanks For Reporting🌟✌🏼.


text:
插入图片点击预览，超出宽度

可以自己加个这个css
.tk-preview-container img {
    width: 100%;
}

authors: Gahotx youxiaohou

repo: imaegoo/twikoo


text:
Restructure multithreading

Redefine the Worker trait, which allows the chosen worker to create a
new scope. This is relevant for a newly created (and installed) rayon
worker.
The rayon thread pool is now local to the decoding step. This fixes an
issue where improper task scheduling would deadlock decoding. It's not
clear how the intended task scheduling can be reliably achieved without
the guarantee of having at least a second, free, worker thread.
Closes: #227

Added more tests, no based off the global pool, to demonstrate/test that this does not make a quantifiable difference. As suggested to add them here. @awused Did I miss any, do you have more suggestions? You can easily verify that all of the tests hang with the previous implementation.

Okay, scratch that. This is why it was a draft. How about this: In this rayon case, we always in_place_scope the main decoder loop. (The architecture should already be there after the rework). Then, instead of creating workers, in append_row we run the Immediate worker as a new scoped task—this is still single threaded, non-blocking, but I'll get to it. Both start and get_result will run directly on the immediate worker without any of dubious communication structure of the multithreaded module.
Now the critical part: We modify Worker::append_row such that multiple rows can be spawned at the same time. The rayon implementation can then create multiple tasks in its scope, which lets other threads worksteal from us. Not sure about the runtime implications of this scheme. However, this way making the rayon worker  entirely non-blocking might be easier than imagined.

I've given rayon usage a complete overhaul. No more blocking at all but Mutex to modify the shared result sets.

repo: image-rs/jpeg-decoder


text:
Add converters between ImgLib2 RAI and ImageJ1 ImagePlus

There are converters for Dataset to/from ImagePlus (though see #186). But if you have e.g. an ArrayImg, you cannot currently convert it directly to ImagePlus with the ConvertService. We want this to be possible.

I guess this can be done with the new AbstractDelegateConverter introduced in https://github.com/scijava/scijava-common/pull/366, right?
Which conversions need to be supported explicitly?

ArrayImg => ImagePlus
PlanarImg => ImagePlus
CellImg => ImagePlus
...?

I think the delegate converter will be useful, yeah. Thanks for developing it.
For new converters needed:

ImgPlus to ImagePlus – to map the metadata e.g. axes correctly.
RandomAccessibleInterval to ImagePlus – for all other cases i.e. no metadata is available.
ImagePlus to ImgPlus. We already have ImagePlus to Dataset, which extends Img, so if you request a conversion of an ImagePlus object to e.g. RandomAccessibleInterval, it should already work (though I didn't test just now). But because Dataset does not extend ImgPlus (inorite), that request would currently fail.

The above is just speculative—best would be to do some thorough TDD requesting all sorts of anticipated desirable conversions, and then implement the most general converters that also minimize information loss.

For the record, this Groovy script lists current support for some of the conversions:
#@ ConvertService cs

import ij.ImagePlus
import net.imagej.Dataset
import net.imagej.ImgPlus
import net.imglib2.img.Img
import net.imglib2.RandomAccessibleInterval

println cs.supports(Dataset.class, ImagePlus.class)                  // true
println cs.supports(Dataset.class, ImgPlus.class)                    // true
println cs.supports(Dataset.class, Img.class)                        // true
println cs.supports(Dataset.class, RandomAccessibleInterval.class)   // true
println ""
println cs.supports(ImagePlus.class, Dataset.class)                  // true
println cs.supports(ImagePlus.class, ImgPlus.class)                  // false
println cs.supports(ImagePlus.class, Img.class)                      // true
println cs.supports(ImagePlus.class, RandomAccessibleInterval.class) // true
println ""
println cs.supports(ImgPlus.class, Dataset.class)                    // false
println cs.supports(ImgPlus.class, ImagePlus.class)                  // false
println cs.supports(ImgPlus.class, Img.class)                        // true
println cs.supports(ImgPlus.class, RandomAccessibleInterval.class)   // true
println ""
println cs.supports(Img.class, Dataset.class)                        // false
println cs.supports(Img.class, ImagePlus.class)                      // false
println cs.supports(Img.class, ImgPlus.class)                        // true
println cs.supports(Img.class, RandomAccessibleInterval.class)       // true
println ""
println cs.supports(RandomAccessibleInterval.class, Dataset.class)   // false
println cs.supports(RandomAccessibleInterval.class, ImagePlus.class) // false
println cs.supports(RandomAccessibleInterval.class, ImgPlus.class)   // false
println cs.supports(RandomAccessibleInterval.class, Img.class)       // false

I started implementing a parameterized test in https://github.com/imagej/imagej-legacy/commit/fb75ae4335e9f54f84e110210349bae6e4eeb743, where different types and axis orders can be defined to be tested in ImgPlus => ImagePlus conversion.

See also imagej/imagej-common#74

And imagej/imagej-ops#54

I wrote a more thorough script printing supported conversions:
image-conversions.py
#@ ConvertService cs

import sys
from ij import ImagePlus
from net.imagej import Dataset, ImgPlus
from net.imagej.display import DatasetView, ImageDisplay
from net.imglib2.img import Img
from net.imglib2 import RandomAccessibleInterval

image_types = [
	ImagePlus,
	RandomAccessibleInterval,
	Img,
	ImgPlus,
	Dataset,
	DatasetView,
	ImageDisplay,
]
sys.stdout.write("              ")
for col in image_types:
	sys.stdout.write("{0: <13}".format('RAI' if col == RandomAccessibleInterval else col.__name__))
print
for row in image_types:
	sys.stdout.write("{0: <14}".format('RAI' if row == RandomAccessibleInterval else row.__name__))
	for col in image_types:
		sys.stdout.write("yes          " if cs.supports(col, row) else "NO           ")
	print

And the results as of this writing:
              ImagePlus    RAI          Img          ImgPlus      Dataset      DatasetView  ImageDisplay
ImagePlus     yes          NO           NO           NO           yes          NO           yes
RAI           yes          yes          yes          yes          yes          NO           NO
Img           yes          NO           yes          yes          yes          NO           NO
ImgPlus       NO           NO           yes          yes          yes          NO           NO
Dataset       yes          NO           NO           NO           yes          NO           NO
DatasetView   NO           NO           NO           NO           NO           yes          NO
ImageDisplay  yes          NO           NO           NO           NO           NO           yes

imagej/imagej-common#102 adds new converters for Dataset to DatasetView and RAI to ImageDisplay. Updated table:
              ImagePlus    RAI          Img          ImgPlus      Dataset      DatasetView  ImageDisplay
ImagePlus     yes          NO           NO           NO           yes          NO           yes
RAI           yes          yes          yes          yes          yes          NO           NO
Img           yes          NO           yes          yes          yes          NO           NO
ImgPlus       NO           NO           yes          yes          yes          NO           NO
Dataset       yes          NO           NO           NO           yes          NO           NO
DatasetView   NO           NO           NO           NO           yes          yes          NO
ImageDisplay  yes          yes          yes          yes          yes          NO           yes

With imagej/imagej-common#103, and specifically imagej/imagej-common@e67b5c932365842d20358c81ac5d67386ca1f2e9, I have now coded converters for all image types to/from all others, except for ij.ImagePlus since that's not available from imagej-common. But it gets us much closer to the above table becoming all yeses!

authors: ctrueden imagejan

repo: imagej/imagej-legacy


text:
Napari doesn't quit when wrapping a local install

Using napari-imagej from main. When I configure napari-imagej to wrap a local Fiji installation, after closing napari the terminal hangs:

Thread dump follows:

2024-11-08 16:00:33
Full thread dump OpenJDK 64-Bit Server VM (22.0.1+8 mixed mode, sharing):

Threads class SMR info:
_java_thread_list=0x0000017bc0e67210, length=25, elements={
0x0000017b558ffe80, 0x0000017b55904d40, 0x0000017b559074a0, 0x0000017b55904020,
0x0000017b55901230, 0x0000017b559025e0, 0x0000017b55902c70, 0x0000017b53aa1480,
0x0000017b53aa1b50, 0x0000017b559053d0, 0x0000017b55901f50, 0x0000017b55900510,
0x0000017b5590dda0, 0x0000017b5590bcd0, 0x0000017b55909570, 0x0000017b55909c00,
0x0000017b5590eac0, 0x0000017b55908ee0, 0x0000017b5590a290, 0x0000017b559046b0,
0x0000017b5590c9f0, 0x0000017bc6419ae0, 0x0000017bc641e310, 0x0000017bc641d5f0,
0x0000017bc4e8c220
}

"main" #1 [13104] prio=5 os_prio=0 cpu=859.38ms elapsed=319.90s tid=0x0000017b558ffe80 nid=13104 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"Reference Handler" #9 [31860] daemon prio=10 os_prio=2 cpu=0.00ms elapsed=319.88s tid=0x0000017b55904d40 nid=31860 waiting on condition  [0x0000005279eaf000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.ref.Reference.waitForReferencePendingList(java.base@22.0.1/Native Method)
        at java.lang.ref.Reference.processPendingReferences(java.base@22.0.1/Reference.java:246)
        at java.lang.ref.Reference$ReferenceHandler.run(java.base@22.0.1/Reference.java:208)

   Locked ownable synchronizers:
        - None

"Finalizer" #10 [9968] daemon prio=8 os_prio=1 cpu=0.00ms elapsed=319.88s tid=0x0000017b559074a0 nid=9968 in Object.wait()  [0x000000527a09e000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait0(java.base@22.0.1/Native Method)
        - waiting on <0x0000000682ca58e0> (a java.lang.ref.NativeReferenceQueue$Lock)
        at java.lang.Object.wait(java.base@22.0.1/Object.java:375)
        at java.lang.Object.wait(java.base@22.0.1/Object.java:348)
        at java.lang.ref.NativeReferenceQueue.await(java.base@22.0.1/NativeReferenceQueue.java:48)
        at java.lang.ref.ReferenceQueue.remove0(java.base@22.0.1/ReferenceQueue.java:158)
        at java.lang.ref.NativeReferenceQueue.remove(java.base@22.0.1/NativeReferenceQueue.java:89)
        - locked <0x0000000682ca58e0> (a java.lang.ref.NativeReferenceQueue$Lock)
        at java.lang.ref.Finalizer$FinalizerThread.run(java.base@22.0.1/Finalizer.java:173)

   Locked ownable synchronizers:
        - None

"Signal Dispatcher" #11 [14532] daemon prio=9 os_prio=2 cpu=0.00ms elapsed=319.88s tid=0x0000017b55904020 nid=14532 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"Attach Listener" #12 [8364] daemon prio=5 os_prio=2 cpu=203.12ms elapsed=319.88s tid=0x0000017b55901230 nid=8364 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"Service Thread" #13 [16568] daemon prio=9 os_prio=0 cpu=0.00ms elapsed=319.88s tid=0x0000017b559025e0 nid=16568 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"Monitor Deflation Thread" #14 [2480] daemon prio=9 os_prio=0 cpu=0.00ms elapsed=319.88s tid=0x0000017b55902c70 nid=2480 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"C2 CompilerThread0" #15 [1768] daemon prio=9 os_prio=2 cpu=890.62ms elapsed=319.88s tid=0x0000017b53aa1480 nid=1768 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

   Locked ownable synchronizers:
        - None

"C1 CompilerThread0" #18 [32612] daemon prio=9 os_prio=2 cpu=250.00ms elapsed=319.88s tid=0x0000017b53aa1b50 nid=32612 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

   Locked ownable synchronizers:
        - None

"Common-Cleaner" #19 [3292] daemon prio=8 os_prio=1 cpu=0.00ms elapsed=319.67s tid=0x0000017b559053d0 nid=3292 waiting on condition  [0x000000527ae2e000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@22.0.1/Native Method)
        - parking to wait for  <0x0000000682ca5d20> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@22.0.1/LockSupport.java:269)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@22.0.1/AbstractQueuedSynchronizer.java:1847)
        at java.lang.ref.ReferenceQueue.await(java.base@22.0.1/ReferenceQueue.java:71)
        at java.lang.ref.ReferenceQueue.remove0(java.base@22.0.1/ReferenceQueue.java:143)
        at java.lang.ref.ReferenceQueue.remove(java.base@22.0.1/ReferenceQueue.java:218)
        at jdk.internal.ref.CleanerImpl.run(java.base@22.0.1/CleanerImpl.java:140)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)
        at jdk.internal.misc.InnocuousThread.run(java.base@22.0.1/InnocuousThread.java:186)

   Locked ownable synchronizers:
        - None

"Notification Thread" #20 [19840] daemon prio=9 os_prio=0 cpu=0.00ms elapsed=319.67s tid=0x0000017b55901f50 nid=19840 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"Python Reference Queue" #28 [21772] daemon prio=5 os_prio=0 cpu=1015.62ms elapsed=319.16s tid=0x0000017b55900510 nid=21772 waiting on condition  [0x000000527c37f000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@22.0.1/Native Method)
        - parking to wait for  <0x0000000698006728> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@22.0.1/LockSupport.java:269)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@22.0.1/AbstractQueuedSynchronizer.java:1847)
        at java.lang.ref.ReferenceQueue.await(java.base@22.0.1/ReferenceQueue.java:71)
        at java.lang.ref.ReferenceQueue.remove0(java.base@22.0.1/ReferenceQueue.java:143)
        at java.lang.ref.ReferenceQueue.remove(java.base@22.0.1/ReferenceQueue.java:218)
        at org.jpype.ref.JPypeReferenceQueue$Worker.run(Unknown Source)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"Java2D Disposer" #32 [31296] daemon prio=10 os_prio=2 cpu=0.00ms elapsed=316.83s tid=0x0000017b5590dda0 nid=31296 waiting on condition  [0x000000527c94e000]
   java.lang.Thread.State: WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@22.0.1/Native Method)
        - parking to wait for  <0x0000000684ca06d0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(java.base@22.0.1/LockSupport.java:371)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(java.base@22.0.1/AbstractQueuedSynchronizer.java:519)
        at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@22.0.1/ForkJoinPool.java:4013)
        at java.util.concurrent.ForkJoinPool.managedBlock(java.base@22.0.1/ForkJoinPool.java:3961)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@22.0.1/AbstractQueuedSynchronizer.java:1707)
        at java.lang.ref.ReferenceQueue.await(java.base@22.0.1/ReferenceQueue.java:67)
        at java.lang.ref.ReferenceQueue.remove0(java.base@22.0.1/ReferenceQueue.java:158)
        at java.lang.ref.ReferenceQueue.remove(java.base@22.0.1/ReferenceQueue.java:234)
        at sun.java2d.Disposer.run(java.desktop@22.0.1/Disposer.java:145)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"AWT-Windows" #34 [17308] daemon prio=6 os_prio=0 cpu=187.50ms elapsed=316.83s tid=0x0000017b5590bcd0 nid=17308 runnable  [0x000000527cd2f000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.windows.WToolkit.eventLoop(java.desktop@22.0.1/Native Method)
        at sun.awt.windows.WToolkit.run(java.desktop@22.0.1/WToolkit.java:297)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"Thread-3" #43 [7688] daemon prio=5 os_prio=0 cpu=1921.88ms elapsed=315.54s tid=0x0000017b55909570 nid=7688 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"TimerQueue" #44 [33260] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=304.10s tid=0x0000017b55909c00 nid=33260 waiting on condition  [0x0000005278f2f000]
   java.lang.Thread.State: WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@22.0.1/Native Method)
        - parking to wait for  <0x0000000684ece7b8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(java.base@22.0.1/LockSupport.java:371)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(java.base@22.0.1/AbstractQueuedSynchronizer.java:519)
        at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@22.0.1/ForkJoinPool.java:4013)
        at java.util.concurrent.ForkJoinPool.managedBlock(java.base@22.0.1/ForkJoinPool.java:3961)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@22.0.1/AbstractQueuedSynchronizer.java:1707)
        at java.util.concurrent.DelayQueue.take(java.base@22.0.1/DelayQueue.java:242)
        at javax.swing.TimerQueue.run(java.desktop@22.0.1/TimerQueue.java:165)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - <0x0000000684ece7e0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

"D3D Screen Updater" #48 [35124] daemon prio=7 os_prio=1 cpu=0.00ms elapsed=303.23s tid=0x0000017b5590eac0 nid=35124 in Object.wait()  [0x000000527d4ef000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait0(java.base@22.0.1/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@22.0.1/Object.java:375)
        at sun.java2d.d3d.D3DScreenUpdateManager.run(java.desktop@22.0.1/D3DScreenUpdateManager.java:425)
        - locked <0x0000000683b6b340> (a java.lang.Object)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"JFR Recorder Thread" #49 [30576] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=140.48s tid=0x0000017b55908ee0 nid=30576 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

   Locked ownable synchronizers:
        - None

"JFR Periodic Tasks" #50 [20968] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=140.32s tid=0x0000017b5590a290 nid=20968 in Object.wait()  [0x0000005276e3e000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait0(java.base@22.0.1/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@22.0.1/Object.java:375)
        at jdk.jfr.internal.PlatformRecorder.takeNap(jdk.jfr@22.0.1/PlatformRecorder.java:558)
        - locked <0x000000068ba2bfc0> (a jdk.jfr.internal.JVM$ChunkRotationMonitor)
        at jdk.jfr.internal.PlatformRecorder.periodicTask(jdk.jfr@22.0.1/PlatformRecorder.java:526)
        at jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1(jdk.jfr@22.0.1/PlatformRecorder.java:446)
        at jdk.jfr.internal.PlatformRecorder$$Lambda/0x0000017b7b6784b0.run(jdk.jfr@22.0.1/Unknown Source)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"RMI TCP Accept-0" #53 [29856] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=4.83s tid=0x0000017b559046b0 nid=29856 runnable  [0x000000527740e000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.Net.accept(java.base@22.0.1/Native Method)
        at sun.nio.ch.NioSocketImpl.accept(java.base@22.0.1/NioSocketImpl.java:748)
        at java.net.ServerSocket.implAccept(java.base@22.0.1/ServerSocket.java:695)
        at java.net.ServerSocket.platformImplAccept(java.base@22.0.1/ServerSocket.java:660)
        at java.net.ServerSocket.implAccept(java.base@22.0.1/ServerSocket.java:636)
        at java.net.ServerSocket.implAccept(java.base@22.0.1/ServerSocket.java:582)
        at java.net.ServerSocket.accept(java.base@22.0.1/ServerSocket.java:541)
        at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(jdk.management.agent@22.0.1/LocalRMIServerSocketFactory.java:52)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(java.rmi@22.0.1/TCPTransport.java:424)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(java.rmi@22.0.1/TCPTransport.java:388)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - <0x000000068aafc540> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

"RMI TCP Connection(1)-192.168.68.63" #54 [18940] daemon prio=5 os_prio=0 cpu=15.62ms elapsed=4.82s tid=0x0000017b5590c9f0 nid=18940 runnable  [0x00000052775fe000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.Net.poll(java.base@22.0.1/Native Method)
        at sun.nio.ch.NioSocketImpl.park(java.base@22.0.1/NioSocketImpl.java:191)
        at sun.nio.ch.NioSocketImpl.timedRead(java.base@22.0.1/NioSocketImpl.java:280)
        at sun.nio.ch.NioSocketImpl.implRead(java.base@22.0.1/NioSocketImpl.java:304)
        at sun.nio.ch.NioSocketImpl.read(java.base@22.0.1/NioSocketImpl.java:346)
        at sun.nio.ch.NioSocketImpl$1.read(java.base@22.0.1/NioSocketImpl.java:796)
        at java.net.Socket$SocketInputStream.implRead(java.base@22.0.1/Socket.java:1108)
        at java.net.Socket$SocketInputStream.read(java.base@22.0.1/Socket.java:1095)
        at java.io.BufferedInputStream.fill(java.base@22.0.1/BufferedInputStream.java:291)
        at java.io.BufferedInputStream.implRead(java.base@22.0.1/BufferedInputStream.java:325)
        at java.io.BufferedInputStream.read(java.base@22.0.1/BufferedInputStream.java:312)
        at java.io.FilterInputStream.read(java.base@22.0.1/FilterInputStream.java:71)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(java.rmi@22.0.1/TCPTransport.java:580)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(java.rmi@22.0.1/TCPTransport.java:844)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(java.rmi@22.0.1/TCPTransport.java:721)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda/0x0000017b7b6fc748.run(java.rmi@22.0.1/Unknown Source)
        at java.security.AccessController.executePrivileged(java.base@22.0.1/AccessController.java:778)
        at java.security.AccessController.doPrivileged(java.base@22.0.1/AccessController.java:400)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(java.rmi@22.0.1/TCPTransport.java:720)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@22.0.1/ThreadPoolExecutor.java:1144)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@22.0.1/ThreadPoolExecutor.java:642)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - <0x000000068a429810> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        - <0x000000068abe4a78> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        - <0x000000068abe8430> (a java.util.concurrent.ThreadPoolExecutor$Worker)

"RMI Scheduler(0)" #55 [31880] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=4.80s tid=0x0000017bc6419ae0 nid=31880 waiting on condition  [0x00000052777ee000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@22.0.1/Native Method)
        - parking to wait for  <0x000000068aaf6278> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@22.0.1/LockSupport.java:269)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@22.0.1/AbstractQueuedSynchronizer.java:1758)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@22.0.1/ScheduledThreadPoolExecutor.java:1182)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@22.0.1/ScheduledThreadPoolExecutor.java:899)
        at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@22.0.1/ThreadPoolExecutor.java:1070)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@22.0.1/ThreadPoolExecutor.java:1130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@22.0.1/ThreadPoolExecutor.java:642)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"JMX server connection timeout 56" #56 [24932] daemon prio=5 os_prio=0 cpu=0.00ms elapsed=4.79s tid=0x0000017bc641e310 nid=24932 in Object.wait()  [0x00000052779de000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait0(java.base@22.0.1/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@22.0.1/Object.java:375)
        at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(java.management@22.0.1/ServerCommunicatorAdmin.java:171)
        - locked <0x000000068a468fe8> (a [I)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - None

"RMI TCP Connection(2)-192.168.68.63" #57 [11928] daemon prio=5 os_prio=0 cpu=15.62ms elapsed=3.70s tid=0x0000017bc641d5f0 nid=11928 runnable  [0x0000005277bce000]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.Net.poll(java.base@22.0.1/Native Method)
        at sun.nio.ch.NioSocketImpl.park(java.base@22.0.1/NioSocketImpl.java:191)
        at sun.nio.ch.NioSocketImpl.timedRead(java.base@22.0.1/NioSocketImpl.java:280)
        at sun.nio.ch.NioSocketImpl.implRead(java.base@22.0.1/NioSocketImpl.java:304)
        at sun.nio.ch.NioSocketImpl.read(java.base@22.0.1/NioSocketImpl.java:346)
        at sun.nio.ch.NioSocketImpl$1.read(java.base@22.0.1/NioSocketImpl.java:796)
        at java.net.Socket$SocketInputStream.implRead(java.base@22.0.1/Socket.java:1108)
        at java.net.Socket$SocketInputStream.read(java.base@22.0.1/Socket.java:1095)
        at java.io.BufferedInputStream.fill(java.base@22.0.1/BufferedInputStream.java:291)
        at java.io.BufferedInputStream.implRead(java.base@22.0.1/BufferedInputStream.java:325)
        at java.io.BufferedInputStream.read(java.base@22.0.1/BufferedInputStream.java:312)
        at java.io.FilterInputStream.read(java.base@22.0.1/FilterInputStream.java:71)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(java.rmi@22.0.1/TCPTransport.java:580)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(java.rmi@22.0.1/TCPTransport.java:844)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(java.rmi@22.0.1/TCPTransport.java:721)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda/0x0000017b7b6fc748.run(java.rmi@22.0.1/Unknown Source)
        at java.security.AccessController.executePrivileged(java.base@22.0.1/AccessController.java:778)
        at java.security.AccessController.doPrivileged(java.base@22.0.1/AccessController.java:400)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(java.rmi@22.0.1/TCPTransport.java:720)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@22.0.1/ThreadPoolExecutor.java:1144)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@22.0.1/ThreadPoolExecutor.java:642)
        at java.lang.Thread.runWith(java.base@22.0.1/Thread.java:1583)
        at java.lang.Thread.run(java.base@22.0.1/Thread.java:1570)

   Locked ownable synchronizers:
        - <0x000000068a7dba00> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        - <0x000000068abe86e0> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        - <0x000000068abebd00> (a java.util.concurrent.ThreadPoolExecutor$Worker)

"C2 CompilerThread1" #16 [21876] daemon prio=9 os_prio=2 cpu=0.00ms elapsed=0.67s tid=0x0000017bc4e8c220 nid=21876 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

   Locked ownable synchronizers:
        - None

"VM Thread" os_prio=2 cpu=15.62ms elapsed=319.89s tid=0x0000017b53649280 nid=25176 runnable

"GC Thread#0" os_prio=2 cpu=46.88ms elapsed=319.90s tid=0x0000017b53648ed0 nid=16200 runnable

"GC Thread#1" os_prio=2 cpu=46.88ms elapsed=319.51s tid=0x0000017b53647500 nid=18976 runnable

"GC Thread#2" os_prio=2 cpu=15.62ms elapsed=319.51s tid=0x0000017b53644160 nid=8004 runnable

"GC Thread#3" os_prio=2 cpu=15.62ms elapsed=319.51s tid=0x0000017b5364bec0 nid=1508 runnable

"GC Thread#4" os_prio=2 cpu=15.62ms elapsed=319.51s tid=0x0000017b5364c270 nid=31040 runnable

"GC Thread#5" os_prio=2 cpu=31.25ms elapsed=319.51s tid=0x0000017b53646640 nid=21544 runnable

"GC Thread#6" os_prio=2 cpu=15.62ms elapsed=319.51s tid=0x0000017b5364b000 nid=8864 runnable

"GC Thread#7" os_prio=2 cpu=0.00ms elapsed=319.51s tid=0x0000017b536453d0 nid=32108 runnable

"G1 Main Marker" os_prio=2 cpu=0.00ms elapsed=319.90s tid=0x0000017b55af4500 nid=10120 runnable

"G1 Conc#0" os_prio=2 cpu=0.00ms elapsed=319.90s tid=0x0000017b536448c0 nid=21832 runnable

"G1 Conc#1" os_prio=2 cpu=0.00ms elapsed=317.71s tid=0x0000017b53649630 nid=32560 runnable

"G1 Refine#0" os_prio=2 cpu=15.62ms elapsed=319.90s tid=0x0000017b53063fa0 nid=30752 runnable

"G1 Service" os_prio=2 cpu=0.00ms elapsed=319.90s tid=0x0000017b55a3cd70 nid=12212 runnable

"VM Periodic Task Thread" os_prio=2 cpu=15.62ms elapsed=319.89s tid=0x0000017b53279f10 nid=28592 waiting on condition

JNI global refs: 6114, weak refs: 44

Note that this started happening even when using other initialization strings (e.g. sc.fiji:fiji:2.13.0) and even when falling back to napari 0.1.0. 😠

@hinerm does this still happen for you with https://github.com/imagej/napari-imagej/commit/d9fc2677ae6594881bb9e197959fad144e3e6400? If so, can you provide a MCVE? I have not found napari hanging with a local install when experimenting on that commit...

Napari doesn't quit

Time to make new T-shirts! :shirt:

@gselzer

does this still happen for you with https://github.com/imagej/napari-imagej/commit/d9fc2677ae6594881bb9e197959fad144e3e6400?

Yes

If so, can you provide a MCVE?

I was unable to reproduce with any layer below napari-imagej.

I create an environment with mamba create -n napari-imagej napari-imagej and activate that env
I pip install -e . on napari-imagej main
pip install jpype1==1.5.0 to work around https://github.com/imagej/napari-imagej/issues/316
In the napari-imagej configuration, endpoint is set to sc.fiji:fiji:2.16.0 and base directory to .
I'm launching napari from my home directory
After starting napari I start the napari-imagej plugin. After it loads, I close the main napari app.

Whether or not the shutdown completes or hangs depends on the version of Java used, controlled by setting JAVA_HOME. Here's a summary of results:

Java version
Hangs at shutdown?

23.0.1*
yes

zulu21.38.21-ca-fx-jdk21.0.5-win_x64
yes

zulu17.54.21-ca-fx-jdk17.0.13-win_x64
no

zulu11.76.21-ca-fx-jdk11.0.25-win_x64
no

zulu8.80.0.17-ca-fx-jdk8.0.422-win_x64
no

*From the local \miniconda3\envs\napari-imagej\Library\lib\jvm, 2024-10-15 by Azul.
Note that the testing with sc.fiji:fiji:2.16.0 is for convenience. I can also reproduce when wrapping a local up-to-date Fiji (2.14.0) installation (which has been modified with a scijava-common >= 2.95.0), as well as an upgraded Fiji future.

does this still happen for you with d9fc267?

Yes

☹

If so, can you provide a MCVE?

I was unable to reproduce with any layer below napari-imagej.

Thank you for the detailed and thorough writeup. I'll take a look next week when I have more time.

authors: ctrueden gselzer hinerm

repo: imagej/napari-imagej


text:
GPL Ghostscript 9.52: Unrecoverable error, exit code 1

this is result of running following php sample codes in command line
$pdflib = new ImalH\PDFLib\PDFLib();
$pdflib->setPdfPath('./sample.pdf');
$pdflib->setOutputPath('./images/');
$pdflib->setImageFormat(\ImalH\PDFLib\PDFLib::$IMAGE_FORMAT_PNG);
$pdflib->setDPI(96);
$pdflib->setPageRange(1,$pdflib->getNumberOfPages());
$pdflib->setFilePrefix('page-'); // Optional
$pdflib->convert();

GPL Ghostscript 9.52: Unrecoverable error, exit code 1
error is for running getNumberOfPages method
sample.pdf is near to php file and there is an images folder there

pdf file is an standard pdf file and is converted before with other pdf to image php classes like _https://github.com/spatie/pdf-to-image_

hmm.. will have to look into, @mablae do you think you can check this issue ?

I modified this library for me.
public function getNumberOfPages(){
if($this->number_of_pages == -1){
if($this->gs_command == "gswin32c.exe" || $this->gs_command == "gswin64c.exe"){
$this->pdf_path = str_replace('\', '/', $this->pdf_path);
$delimiter = "/";
$exit=preg_split("/".$delimiter."([^".$delimiter."]+)$/", $this->pdf_path,-1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$ex="--permit-file-read=".$exit[0]."/";
}
$pages = $this->executeGS('-q '.$ex.' -dNODISPLAY -c "('.$this->pdf_path.') (r) file runpdfbegin pdfpagecount = quit"',true);
$this->number_of_pages = intval($pages);
}
return $this->number_of_pages;
}

I'm running into the same problem. Have you had time to look at this?

I modified this library for me.
public function getNumberOfPages(){ if($this->number_of_pages == -1){ if($this->gs_command == "gswin32c.exe" || $this->gs_command == "gswin64c.exe"){ $this->pdf_path = str_replace('', '/', $this->pdf_path); $delimiter = "/"; $exit=preg_split("/".$delimiter."([^".$delimiter."]+)$/", $this->pdf_path,-1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); $ex="--permit-file-read=".$exit[0]."/"; } $pages = $this->executeGS('-q '.$ex.' -dNODISPLAY -c "('.$this->pdf_path.') (r) file runpdfbegin pdfpagecount = quit"',true); $this->number_of_pages = intval($pages); } return $this->number_of_pages; }

This had a little bug, i fixed it and now it is transforming correctly to images
`    public function getNumberOfPages(){
if($this->number_of_pages == -1){
if($this->gs_command == "gswin32c.exe" || $this->gs_command == "gswin64c.exe"){
$this->pdf_path = str_replace('\', '/', $this->pdf_path);
$delimiter = "/";
$exit = preg_split("/" . preg_quote($delimiter, '/') . "([^" . preg_quote($delimiter, '/') . "]+)$/", $this->pdf_path, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$ex = "--permit-file-read=" . $exit[0] . "/";
        }
        $pages = $this->executeGS('-q '.$ex.' -dNODISPLAY -c "('.$this->pdf_path.') (r) file runpdfbegin pdfpagecount = quit"',true);
        $this->number_of_pages = intval($pages);
    }
    return $this->number_of_pages;
}
`

authors: Fegra JuanZabalaR imalhasaranga imansa yannickl88

repo: imalhasaranga/PDFLib


text:
(PoC) fix: handle full proxy urls in _buildURL

This PR is a WIP
This PR is a stacked PR

PR
Title
Merges Into
diff

1
_buildURL
main
review this

2
_buildSrcSet
#287
review this

3
fix extractUrl  👈🏼
#288
review this

This PR addresses an issue where full proxy URLs were not being handled correctly but he static _buildURL method.
Future work
This implementation doesn't feel the cleanest. There's a lot of logic shared between the helper functions. Moreover, there's a chance a user could pass the client a partial proxy URL. That's not currently being handled.

Closing in favor of #294

repo: imgix/js-core


text:
Only first 10 parameters are pulled from AWS parameter store

Hi!
I just completed the AWS SAM setup to deploy imgproxy to lambda. This setup (and your product) are genius and are going to divide our costs by gazilions, thank you so much!
One issue I'm encountering in the setup: I'm using AWS systems manager parameter store (which is the default setup of your SAM template) to store the environment variables (and share them with my local imgproxy) and after some debugging I realised imgproxy only uses the first 10 parameters of the store (I have 18 related to imgproxy config).
After checking imgproxy's code I can confirm that the code of imgproxy uses GetParametersByPath (documented here), which only returns 10 results. To get the next results, it's necessary to do another call with pagination.
Is it possible to fix this problem or should we just document it and I move to using aws secrets manager?

Hey @felixmeziere!
Thanks for the report! Fixed in the latest build

You're so responsive, thanks, amazing!

It was an easy fix, no problem

authors: DarthSim felixmeziere

repo: imgproxy/imgproxy


text:
libusb

想了各种方法导入这个dll模块，但是都还是报这个错误。请问要如何解决？

老哥 解决了么？ 我也遇到这个问题

authors: HuangHongkai kongxiangrun

repo: imharryzhu/AndroidControl


text:
Im admin interface erhält man nur ein leeres array an internships bei internships per semester zurück

wenn man nach internships by semester queried als admin erhält man ein leeres array zurück obwohl es in dem semester internships geben sollte

fixed by #268

authors: JuliaZamaitat LiFaytheGoblin