text:
Unable to set Issue/SubIssue when Subissue is on index 0

Not sure how exactly to describe this challenge, but I am running this command:
Get-ATWSTicket -TicketNumber $CurrentTicketNumber | Set-ATWSTicket -IssueType $IssueUpdateValue -subissueType $SubIssueUpdateValue
This works for most cases, but for each Subissue picklist the first picklist value returns the following error. Any other picklist value is able to complete successfully. This is the error that is received:
Exception calling "update" with "1" argument(s): "There was an error generating the XML document."
At C:\Program Files\WindowsPowerShell\Modules\autotask\1.6.2.17\Private\Set-AtwsData.ps1:76 char:7

  $Result = $atws.update($WorkingSet)

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : InvalidOperationException

Get-AtwsFieldInfo : Cannot bind argument to parameter 'Entity' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\autotask\1.6.2.17\Private\Set-AtwsData.ps1:132 char:49

... tityInfo = Get-AtwsFieldInfo -Entity $Result.EntityResultType -Entity ...

                                     ~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Get-AtwsFieldInfo], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Get-AtwsFieldInfo

not sure if I am just referencing this incorrectly but I tried a few different ways and ended up with the same error every time.

Thank you for reporting this. I can reproduce it, it is definitely a bug. I haven't filtered out inactive picklist values. Trying to fix it now.

authors: Napervillian klemmestad

repo: officecenter/Autotask


text:
chore(ci): release main

:robot: I have created a release beep boop
tailwind: 0.11.0
0.11.0 (2024-10-09)
Features

add govieTag & Tag component for HTML and React respectively (#265) (b7d65b1)
html button component (#264) (998d005)

Bug Fixes

header improvements (#269) (7dfd240)
heading sizes (e327694)
improve heading (#262) (c816e75)
review header (#271) (3371e03)
typography (#267) (bcdbac6)

html: 0.11.0
0.11.0 (2024-10-09)
Features

add govieTag & Tag component for HTML and React respectively (#265) (b7d65b1)
html button component (#264) (998d005)
react button component (#268) (e542542)

Bug Fixes

checkboxes spacing (ba5e25e)
header improvements (#269) (7dfd240)
header responsiveness (#276) (69df71a)
icon button (#272) (abb1aab)
improve heading (#262) (c816e75)
label spacing in inputs (6ba9906)
label spacing in inputs (#277) (535b04d)
remove classname and icon button from component (#275) (14c070b)
remove div tag (61455c6)
review header (#271) (3371e03)
typography (#267) (bcdbac6)
ui review (#274) (336e0f9)
update type on input (#259) (aee9c00)

react: 0.15.0
0.15.0 (2024-10-09)
Features

add govieTag & Tag component for HTML and React respectively (#265) (b7d65b1)
react button component (#268) (e542542)

Bug Fixes

checkboxes spacing (ba5e25e)
header improvements (#269) (7dfd240)
header responsiveness (#276) (69df71a)
header separator (34e6525)
heading sizes (e327694)
icon button (#272) (abb1aab)
improve heading (#262) (c816e75)
label spacing in inputs (6ba9906)
label spacing in inputs (#277) (535b04d)
remove classname and icon button from component (#275) (14c070b)
review header (#271) (3371e03)
typography (#267) (bcdbac6)
ui review (#274) (336e0f9)
update type on input (#259) (aee9c00)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ogcio/govie-ds/releases/tag/tailwind-v0.11.0 :sunflower:

:robot: Release is at https://github.com/ogcio/govie-ds/releases/tag/html-v0.11.0 :sunflower:

:robot: Release is at https://github.com/ogcio/govie-ds/releases/tag/react-v0.15.0 :sunflower:

source: gharchive/pull-request

repo: ogcio/govie-ds

license: MIT

license_type: permissive

license_source: github-api


text:
Unable to create images and labels for non Latin languages correctly

Unable to create images and labels for non-Latin languages correctly.
For example, I want to create labels and images for Bangali or Gujarati languages
Here is what is happening:
It creates data for Bengali languages (I set up corpus and char_file.txt and fonts for Bangali) However the issue is that the text rendered on the image is incorrect that is taken from the corpus (the label is correct).
The sequence of characters sometimes changes in images:

000347671.jpg	থেকে বঞ্চিত
The label text is correct but the text rendered on the image is incorrect.
@ohmyocr, @Sanster @mikeshi80 , @ELanning  Any solution? Thanks

Does this happen with every font file you've tried? This kind of problem is generally an issue with the font file, in my experience.
Although I cannot tell what the issue is with your sample image, it looks like it matches the label to me, but that's probably because I cannot read Bangali or Gujarati.

Thanks @ELanning for your prompt reply.
Bengali is written from left to right (LTR), However as you mentioned it might be a font file issue but I assume fonts should not change the sequence of characters in general ... what do you think?
Which file I can modify to experiment with image drawing in this script? Any workaround?

but I assume fonts should not change the sequence of characters in general ... what do you think?

Font files can do some crazy things.
Could you kindly try this Noto Sans Bengali font
And let me know how it renders?
On the Google preview, it looks like it handles the label fine, so this will confirm if the issue is font related or library related.

I tried above font in script, this is how its works, looks like the script change some specific character's sequence no matter what font is being used.

It sounds like this could be an issue in pillow, in which case there's not much text_renderer can do.
You may want to try creating a minimally reproducible code snippet and posting it to the pillow github issues. I believe they'd be greatly interested in fixing something like this, or may be able to provide more in-depth troubleshooting advice. Sorry I couldn't be of more help.

Thanks for your guidance and direction.

source: gharchive/issue

authors: ELanning asif-ca


text:
NFC transceive fails at second transmission on Android.

I try to use the NfcV class to transmit some commands to a corresponding tag. I registered the following function as callback for the onDiscovered events. The result is a correct answer on the first try and an exception on the second try. Did I do it wrong?

Future callbackFunction(NfcTag tag) async {
  final nfcVtag = NfcV.fromTag(tag);
  final cmd = [0x02, 0x20, 0x00].toList();
  try {
    final answer = await nfcVtag.transceive(Uint8List.fromList(cmd));
    debugPrint('First answer ' + answer.toString());
  } catch (e) {
    debugPrint('Exception on first try: ' + e.toString());
  }
  try {
    final answer = await nfcVtag.transceive(Uint8List.fromList(cmd));
    debugPrint('Second answer ' + answer.toString());
  } catch (e) {
    debugPrint('Exception on second try: ' + e.toString());
  }
}

Output:

I/flutter (17066): First answer [0, 167, 19, 240, 84, 5, 0, 3, 101]
I/flutter (17066): Exception on second try: PlatformException(not_found, Tag is not found., null)

@markus-oehme-pg40 I have the same issue. Did you find any solution to this already?

@ishwaryamamidi Sadly not. We ended up not using NFC on flutter.

I will be investigating this issue in the near future.

@okadan It would be very grateful if you could investigate this as soon as possible. As this is a major drawback currently.

@ishwaryamamidi @markus-oehme-pg40
I have found success under the following environments:

Plugin Version: nfc_manager: 2.0.0
Tag Type: I-CODE SLI (ISO15693 compatible)

final nfcv = NfcV.from(tag);
final cmd = [0x02, 0x20, 0x00];

for (int i = 1; i <= 100; i += 1) {
  try {
    final answer = await nfcv.transceive(data: Uint8List.fromList(cmd));
    print('Answer $i: $answer');
  } catch (e) {
    print('Exception $i: $e');
  }
}

@okadan Thank you for your quick investigation.
Even after updating to nfc_manager: 2.0.0, I get an error for second transceive.
Below is a sample of my code:
Future handleTag(NfcTag tag, Iterable recordList) async {
final tech = NfcV.from(tag);
if (tech == null) throw ('Tag is not compatible with NDEF.');
/if (!tech.isWritable)
throw('Tag is not NDEF writable.');/
Uint8List mbtx = Uint8List.fromList([0xDA, 0x7A]);
test_nfc(tag, mbtx);
}
test_nfc(NfcTag tag, Uint8List mbtx) async {
//NfcTag temptag = tag;
int tries = 0;
int msglength;
int mb_control_dyn = 0;
await write_MB(tag, mbtx);
tries = 0;
while ((mb_control_dyn & 0x40) != 0x40) {
tries++;
if (tries > 5) {
throw ('error in tries');
}
sleep(const Duration(milliseconds: 10));
mb_control_dyn = await read_MB_control_dyn(tag);
}
sleep(const Duration(milliseconds: 10));
msglength = await read_MB_length(tag);
return await read_MB(tag, msglength);
}
Future write_MB(NfcTag tag, Uint8List data) async {
final tech = NfcV.from(tag);
if (tech == null) throw ('Tag is not compatible with NDEF.');
int i1 = 0x22;
int i2 = 0xAA;
int i3 = 0x02;
int i11 = data.length - 1;
Uint8List write_rx;
List write_temp = new List();
transceive_id = tech.identifier;
if ((data.length < 2) || (data.length > 255)) {
throw ('new exception');
}
write_temp.insert(0, i1);
write_temp.insert(1, i2);
write_temp.insert(2, i3);
write_temp.insertAll(3, transceive_id);
write_temp.insert(11, i11);
write_temp.insertAll(12, data);
print('dummy $data');
Uint8List wrdata = Uint8List.fromList(write_temp);
print('this is write data $wrdata');
write_rx = await my_nfctransceive(tag, wrdata);
print('this is after trasceive of write ${tag.data}');
print('this is write response $write_rx');
//return write_rx;

}
Future read_MB_control_dyn(NfcTag tag) async {
final tech = NfcV.from(tag);
if (tech == null) throw ('Tag is not compatible with NDEF.');
int i1 = 0x22;
int i2 = 0xAD;
int i3 = 0x02;
int i11 = 0x0D;
List temp = new List();
Uint8List rxdata;
//int response;
transceive_id = tech.identifier;
temp.insert(0, i1);
temp.insert(1, i2);
temp.insert(2, i3);
temp.insertAll(3, transceive_id);
temp.insert(11, i11);
Uint8List txdata = Uint8List.fromList(temp);
print('this is read_MB_control_dyc_temp $txdata');
rxdata = await my_nfctransceive(tag, txdata);
print('this is after trasceive of read_control ${tag.data}');
print('this is read_MB_control_dyc $rxdata');
if (rxdata[0] != 0) {
print('Tag answered, but with error in Response_flags ');
}
print('this is read_MB_control_dyn ${rxdata[1]}');
return rxdata[1];

}
Future read_MB_length(NfcTag tag) async {
print('length function');
final tech = NfcV.from(tag);
List read_length_temp = new List();
Uint8List read_MB_length_response;
int i1 = 0x22;
int i2 = 0xAB;
int i3 = 0x02;
transceive_id = tech.identifier;
read_length_temp.insert(0, i1);
read_length_temp.insert(1, i2);
read_length_temp.insert(2, i3);
read_length_temp.insertAll(3, transceive_id);
Uint8List read_length = Uint8List.fromList(read_length_temp);
print('length data $read_length');
read_MB_length_response = await my_nfctransceive(tag, read_length);
print('this is after trasceive of length ${tag.data}');
print('this is read length response $read_MB_length_response');
if (read_MB_length_response[0] != 0) {
print('error on read MB length');
}
return read_MB_length_response[1] + 1;
}
Future read_MB(NfcTag tag, int length) async {
final tech = NfcV.from(tag);
List read_mb_temp = new List();
Uint8List read_mb_response;
int i1 = 0x22;
int i2 = 0xAC;
int i3 = 0x02;
int i11 = 0x00;
read_mb_temp.insert(0, i1);
read_mb_temp.insert(1, i2);
read_mb_temp.insert(2, i3);
read_mb_temp.insertAll(3, transceive_id);
read_mb_temp.insert(11, i11);
read_mb_temp.insert(12, length - 1);
Uint8List read_mb = Uint8List.fromList(read_mb_temp);
read_mb_response = await my_nfctransceive(tag, read_mb);
print('this is after trasceive of read ${tag.data}');
if ((read_mb_response[0] != 0) ||
(read_mb_response.length !=
length +
1)) /* Tag answered a different length (response byte + data length)  */
{
print('error in mb_read');
}
Uint8List retval = read_mb_response.sublist(1);
print('this is retval $retval');
return retval;
}
my_nfctransceive(NfcTag tag, Uint8List my_tx) async {
print('hello1');
final tech = NfcV.from(tag);
int tries = 0;
Uint8List retval;
if (tag == null) {
print("No TagV !");
return null;
}
while (true) {
try {
tries++;
print(tries);
retval = await tech.transceive(data: my_tx);
print('hello2');
break;
} catch (e) {
if (tries >= 5) {
throw (e);
}
// throw (e);
print('hello3');
sleep(const Duration(milliseconds: 10));
}
}
print('this is my_transceive $retval');
return retval;
}
}
Could you help me out with this? Thanks in advance. :)

@ishwaryamamidi
Please try with the minimal code like bellow:
final nfcv = NfcV.from(tag);
final cmd = [0x02, 0x20, 0x00];

final n = 2;

for (int i = 1; i <= n; i += 1) {
  try {
    final answer = await nfcv.transceive(data: Uint8List.fromList(cmd));
    print('Answer $i: $answer');
  } catch (e) {
    print('Exception $i: $e');
  }
}

@okadan The above minimal code worked perfectly.
But could you please let me know what is the issue in the code I have written.

Close issue because the second transmission was successful.

authors: ishwaryamamidi markus-oehme-pg40 okadan

repo: okadan/flutter-nfc-manager


text:
🛑 Ekşi Sözlük is down

In add2e44, Ekşi Sözlük (https://eksisozluk.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ekşi Sözlük is back up in f1e4998.

Resolved: Ekşi Sözlük is back up in f1e4998.

repo: okankocyigit/upptime


text:
Análise dos municípios com mais de uma fonte de publicação // Analysis of municipalities with more than one publication's source

Em português
Esta análise integra a seção destinada aos aspectos institucionais.
Aqui deverá constar um levantamento de quantos municípios possuem mais de uma fonte de publicação de diários oficiais e quantos possuem apenas uma fonte.
In English
This analysis is part of the section dedicated to institutional aspects.
Here there should be a survey of how many municipalities have more than one source of publication of gazettes and how many have only one source.

Apresentaremos a análise a ser proposta nessa issue durante o Open Data Day Recife 2021 (20 mar. 2021).

@giuliocc Inseri o boxplot na pergunta 6, mas achei que essa parte da análise de antiguidade contribuiria mais com a issue #59, então vou mandar esse trecho pra lá.

authors: ArianeCamilo cecivieira

repo: okfn-brasil/censo-querido-diario


text:
Remove errors button from table menu

fixes #519

So how to show only errors then?

authors: guergana roll

repo: okfn/opendataeditor


text:
Multiview Map: Cannot read property 'properties' of undefined

On this line, on master, when using multiview and deleting a row from the grid view:
https://github.com/okfn/recline/blob/32f15f124df364908bd7622b3880c064255cebcd/src/view.map.js#L321
It doesn't happen with the live demo on the site.

The error in Firefox is a bit more informative:
TypeError: self.features._layers[key].feature.geometry is undefined

This is solved by updating leaflet to the one included in Recline

repo: okfn/recline

license: mit

license_source: bigquery


text:
Pageviews not tracked with FlowRouter SSR

After implementing FlowRouter SSR page views are not tracked anymore (both Mixpanel & GA).
Without SSR it works fine. The debug logs show the initialization of both modules (Mixpanel & GA) and event tracking, however, there seems to be a problem with defining the FlowRouter.triggersEnter function.
I have assumed that triggersEnter cannot be defined as Package["kadira:flow-router-ssr"] in routers.js seems to be unavailable on startup. Nevertheless, a quick check without SSR showed the same (and it worked). I can't really figure out when Package["kadira:flow-router-ssr"].FlowRouter becomes available and how triggersEnter is initialized.
Thanks for your help!

The problem must be caused by initializing FlowRouter before Meteor.startup(), potentially in #123
I was able to temporarily fix the issue by wrapping the initialization in a function and handing over a FlowRouter instance in Meteor.startup() instead of getting it from routers.js.
startup.js
import { initFlowRouter } from "./flow-router";

Meteor.startup(() => {
  if (SETTINGS) {
    initIronRouter();
    initFlowRouter(FlowRouter);
    ...

flow-router.js
const initFlowRouter = function(_FlowRouter) {
  ...
}
export {initFlowRouter};

@ldelaporte We have been unable to reproduce this using the package's flow-router example (using flow-router-ssr). What version of flow-router-ssr are you using? And what version of this package?
Could you please provide a minimal working reproduction in the flow router example (this package).

@ldelaporte I'm going to close this issue for now. We will re-open it once a minimal working reproduction is provided. Thanks.

This might be fixed by #143.

@ldelaporte as a temporary workaround try moving okgrow:analytics to the bottom of your .meteor/packages file. (That's not a real fix and might not always work).

sorry for the delayed response - works fine!

Thanks @ldelaporte. I assume you mean the workaround. #143 was merged and should be released today.

I tried #143 by cloning it locally :) Thanks for the release!

authors: ldelaporte oliverthomasklein pauldowman

repo: okgrow/analytics


text:
Change Name of id Attribute in Models

id is a built-in Python function; I've just gotten lucky so far by not trying to access id so far?

I don't think this is true...

Actually... I think it is an issue??
ipdb> recommendations
[<app.models.track.Track object at 0x7ffd8979ce80>, <app.models.track.Track object at 0x7ffd8979ceb0>]
ipdb> [track.id for track in recommendations]
[<built-in function id>, <built-in function id>]

just kidding.... I messed up the mock_track implementation

repo: okjuan/music-lib-bot


text:
injection of custom css

Is this a BUG REPORT or FEATURE REQUEST?:
feature
What happened:
I would like to use some custom css with my custom fragment(s), but I didn't  find a way how to inject those files into html's HEAD section.
What you expected to happen:
Syna should have simpel support how to add list of css files from the user side - like placed within 'static' folder.
How to reproduce it (as minimally and precisely as possible):
Write custom fragment using own css styles and try to force injection of those css files into resulting index.html
Anything else we need to know?:
I already modified syna on my side according to some forum's suggestion - add following code to head.html within syna theme:
  {{ "<!-- User Styles -->" | safeHTML }}
  {{ range .Site.Params.custom_css -}}
    <link rel="stylesheet" href="{{ . | absURL }}">
  {{- end }}

and then in config.toml (or whatever format congif file uses) a user can add:
[params]
  custom_css = ["css/main.css"]

This have also advantage that it allows to ovewrite css styles from syna - for example I needed to change the "containment" of the background image in 'hero' fragment so I added .header-image style in my css file.
The above solution can be extended to inject also javascript file if needed using e.g. in config.tompl custom_js = [...]
Environment:

Syna Theme version:  0.17.1
Hugo version:  0.72.0
Others:

We have the config fragment. That might be helpful for this.
https://about.okkur.org/syna/fragments/config/

Closing this for now, if you @bishopnator feel the config fragment doesn't work as expected or you had something else in mind that isn't solved with it, let us know and reopen :)

authors: bishopnator stp-ip

repo: okkur/syna


text:
No staged files match lint-staged

Description
Lint-stage is not able to recognize *.js pattern even if changes has been made to JS files
Debug Logs
  lint-staged:bin Running `lint-staged@7.0.0` +0ms
  lint-staged Loading config using `cosmiconfig` +0ms
  lint-staged Successfully loaded config from `/Users/rswiat/Projects/_firefly/firefly-framework/.lintstagedrc`:
  lint-staged { 'lint-staged': { '*.js': [ 'yarn run eslint --fix', 'git add' ] } } +5ms
  lint-staged:cfg Normalizing config +0ms
  lint-staged:cfg Validating config +1ms
Running lint-staged with the following config:
{
  linters: {
    'lint-staged': {
      '*.js': [
        'yarn run eslint --fix',
        'git add'
      ]
    }
  },
  concurrent: true,
  chunkSize: 9007199254740991,
  globOptions: {
    matchBase: true,
    dot: true
  },
  ignore: [],
  subTaskConcurrency: 1,
  renderer: 'verbose'
}
  lint-staged:run Running all linter scripts +0ms
  lint-staged:run Resolved git directory to be `/Users/rswiat/Projects/_firefly/firefly-framework` +1ms
  lint-staged:run Loaded list of staged files in git:
  lint-staged:run [ 'yarn.lock',
  lint-staged:run   'src/frameworks/lighthouse/helpers/save-reports.js' ] +18ms
  lint-staged:gen-tasks Generating linter tasks +0ms
  lint-staged:cfg Normalizing config +23ms
  lint-staged:gen-tasks Generated task:
  lint-staged:gen-tasks { pattern: 'lint-staged',
  lint-staged:gen-tasks   commands: { '*.js': [ 'yarn run eslint --fix', 'git add' ] },
  lint-staged:gen-tasks   fileList: [] } +2ms
Running tasks for lint-staged [started]
Running tasks for lint-staged [skipped]
→ No staged files match lint-staged
  lint-staged linters were executed successfully! +31ms

Environment

OS: macOS Majove
Node.js: v8.11.2
lint-staged: 7.0.0 and 8.0.4

It runs commands on staged files, not on changed files. Please see readme and related posts.

authors: okonet radswiat

repo: okonet/lint-staged


text:
refactor(faucet): change i18n translation name

This PR rename an i18n faucet const : i18nErrorTranslations => i18nTranslations

Codecov Report

Merging #506 (93ee26f) into main (7f5feb6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #506   +/-   ##
=======================================
  Coverage   98.05%   98.05%
=======================================
  Files          73       73
  Lines         821      821
  Branches      128      128
=======================================
  Hits          805      805
  Misses         14       14
  Partials        2        2

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: JoeyDjr codecov-commenter


text:
How to force download fresh copy of the temporary keys or re-authenticate

If I setting OKTA_STS_DURATION=7200, download the temporary keys, but later want to kill this session or download a new copies, is this possible?
I tried to delete the cookies.properties, profiles, and the aws credentials files but it not seem to work (I don't get the authentication prompt).

in addition to those two files try removing the .current-session file as well in the same directory

Thank you it working.

authors: ineedimprov jeremyplichtafc

repo: oktadeveloper/okta-aws-cli-assume-role


text:
Headers - headers and rawHeaders - what is difference?

Hi, could anyone explain to me why request object has  headers and rawHeaders - what is difference?

From Postman I send for example Authorization header

And I have to get it from rawHeaders not from Headers?
payloadRet AuthSecurity::checkHeaderCredentials(Pistache::Rest::Request const &request) {
    /// Header must have Authorization header
    const std::string AUTHORIZATIONHEADER("Authorization");

    /// If no Authorization header throws exception
    if (request.headers().tryGetRaw(AUTHORIZATIONHEADER).isEmpty()) {
        throw AuthSecurityNoAuthorizationHeaderException();
    };

    ///Get Authorization Header value
    std::string authHeader = request.headers().getRaw(AUTHORIZATIONHEADER).value();

    /// Check if header vlaule has prefix "Bearer "
    if (authHeader.substr(0, 7) != "Bearer ")
        throw AuthSecurityNoBearerHeaderException();

    /// return payload or if validation fails throw exceptions
    return TokenSecurity::checkTokenValidation(authHeader.erase(0, 7));
}

Why this is in headers.getRaw() not in headers.get()

Originally, pistache was designed so that all headers would be strongly-typed; there was no raw header support (by design of the original author, as documented in the pistache.io web site).  Since then we've had some contributions that added support for obtaining raw headers.
Please read the docs; this question was answered there.
http://pistache.io/guide/#headers

repo: oktal/pistache


text:
Why my html report shows so simple, not colorful likes your ReadMe？Do I need to specify an html template？

HtmlTestRunner version: 1.2.1
Python version: 3.7
Operating System: windows / centos 7.6

Description
too simple, not colorful like ReadMe.
it is onle white.
What I Did
    runner = HtmlTestRunner.HTMLTestRunner(
        output=test_edge_site.test_dir + '/output/unittest/html', combine_reports=True, report_name='test_detail',
        add_timestamp=False)
    runner.run(suite)

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

pic?

As far as I can see, the HtmlTestRunner take Jinjia as a default template.

authors: UnknowZang mapleflow sdetpearls

repo: oldani/HtmlTestRunner


text:
Berserker ring (i) does not give boost at giant mole

🐛 Bug Report
https://i.imgur.com/0gptg9F.png
title basically picture for reference.

This appears to be fixed already in the latest master revision.

fixed in next bot update

authors: 6enny6 Jebusnorris themrrobert

repo: oldschoolgg/oldschoolbot


text:
Pomodoro refreshes everything in the "status-right"

Hi, great project!
Whenever I do any action like starting or  canceling the Pomodoro I noticed it refreshes everything in my "status-right", in this quick vid I have some custom indicators that also get refreshed when I start / cancel the pomodoro.
Maybe this is the expected behavior (is it?) but I was wondering if I can get only Pomodoro to refresh and not all items on "status-right" .. any idea?
https://github.com/olimorris/tmux-pomodoro-plus/assets/29671981/9e55b957-a240-4f36-b123-4f5f1f2d03f9

To my knowledge this is a limitation of Tmux and I've not been able to find a way to target a specific item in the statusline.

authors: olimorris rodhash

repo: olimorris/tmux-pomodoro-plus


text:
Refactor the patch and run Python scripts

This commit refactors the patch.py script to be nicer to work on 😋
There are now command line arguments for patch.py:
--run: "Run the patched Nerts executable"
(Note: run.py still works as before)
--nerts_path: "Path to the Nerts executable"
--skip_download: "Skip downloading de4dot"
--bin-dir: "Directory to store de4dot and temporary executables" (This is slightly broken, it only works with absolute paths)
I haven't tested this on Linux or MacOS yet (cc @oliverdunk).
Thanks

Your changes broke the Windows version :-( - there is probably a better way to do this, but for now we can just check if the system is Darwin and do it your way, else do it the way that works on Windows.

Thanks for the Windows fix!

authors: AmusedNetwork oliverdunk

repo: oliverdunk/NertsPlus


text:
[#73] Creating insert_relative_values_columns function

Description:
This function selects the columns of a dataframe according to a provided list of strings and inserts a new column in the dataframe with the ratio of the rolling_mean wrt a short window divided by the rolling_mean wrt a longer window.
Params:
    data: original dataframe
    column_list: list of columns to select
    short_window: window length to calculate rolling mean for the numerator
    long_window: window length to calculate rolling mean for the denominator

The resulting column will consist of a ratio:

"mean of last short window values" / "mean of last long window values"

Steps:

[x] Function created

[x] Tests

I was originally using mean because I assumed it would be more sensible to outliers and therefore it would identify peaks of activity better:
test_data['real_like_data'] = [10., 25., 8., 15., 17., 50., 7., 10., 13., 9.]
test_data['real_like_data'] = test_data['real_like_data']*1000

short_window = 2
long_window = 4
var = 'real_like_data'
# rolling mean
var_short_window_rmean = test_data[var].rolling(short_window).mean()
var_long_window_rmean = test_data[var].rolling(long_window).mean()
relative_var_name1 = var + "_relative_mean_" + str(short_window) + "_" + str(long_window)
test_data[relative_var_name1] = var_short_window_rmean / var_long_window_rmean
# rolling median
var_short_window_rmedian = test_data[var].rolling(short_window).median()
var_long_window_rmedian = test_data[var].rolling(long_window).median()
relative_var_name2 = var + "_relative_median_" + str(short_window) + "_" + str(long_window)
test_data[relative_var_name2] = var_short_window_rmedian / var_long_window_rmedian

and I have plotted the results:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="darkgrid")
sns.set_palette("husl")

# Set global plot parameters
plt.rcParams['figure.figsize'] = [12, 6]
plt.rcParams['figure.dpi'] = 80

fig, ax1 = plt.subplots()
ax2 = ax1.twinx()

ax1.plot(test_data[var], label=var, color="gray")
ax2.plot(test_data[relative_var_name1], label=relative_var_name1, color="blue")
ax2.plot(test_data[relative_var_name2], label=relative_var_name2, color="blueviolet")
ax1.legend(loc="upper left")
ax2.legend(loc="upper right")
plt.show()

where it is shown that the median is showing better the peaks of activity than the mean:

Conclusion: it is better to use the median.

ready for review

repo: oliviermirat/MyAIGuide


text:
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]

Bug Report
Description
Getting error running with gpu support.
Bug Summary:
The following error is report,
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]

Steps to Reproduce:
User the docker compose command from README
Expected Behavior:
Expecting to run with NVidia GPU support.
Actual Behavior:
[Describe what actually happened.]
Environment
Operating System: openSUSE Tumbleweed 20231218
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.6-1-default (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A38
System Version: 8.0
Reproduction Details
Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[ ] I have reviewed the troubleshooting.md document.
[ ] I have included the browser console logs.
[ ] I have included the Docker container logs.

Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

It is necessary to install the nvidia container drivers.

authors: dnviti rajinder-yadav

repo: ollama-webui/ollama-webui


text:
keep_alive doesn't work for OpenAI API

What is the issue?
keep_alive doesn't work for OpenAI API. When set the keep_alive as 0 in OpenAI API call through http://localhost:11434/v1/chat/completions, the model was not unloaded after the call.
What did you expect to see?
The model should be unloaded when set keep_alive 0
Steps to reproduce
curl http://localhost:11434/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "llama2",
        "keep_alive": 0,
        "messages": [
            {
                "role": "system",
                "content": "You are a helpful assistant."
            },
            {
                "role": "user",
                "content": "Hello!"
            }
        ]
    }'

The following works correctly
curl http://localhost:11434/api/chat \
    -H "Content-Type: application/json" \
    -d '{
        "model": "llama2",
        "keep_alive": 0,
        "stream": false,
        "messages": [
            {
                "role": "system",
                "content": "You are a helpful assistant."
            },
            {
                "role": "user",
                "content": "Hello!"
            }
        ]
    }'

Are there any recent changes that introduced the issue?
No response
OS
Linux
Architecture
amd64
Platform
No response
Ollama version
0.1.27
GPU
Nvidia
GPU info
No response
CPU
No response
Other software
No response

Thanks for the issue! merging with #2963

I'm getting this issue as well - memory only frees up when I run wsl --shutdown

authors: aaricantto jmorganca longcw

repo: ollama/ollama


text:
Second Disk

What is the issue?
I have a second disc that have large capacity but when try the I install ollama.exe (for windows) that install models directly USERS/USERNAME/.ollama installing
but I don't have any space on my C drive. So That I need to run for a on my second disc that I can download models into second disc and download the models to the second disc
OS
Windows
GPU
Nvidia
CPU
Intel
Ollama version
latest

Set OLLAMA_MODELS to the directory you want to save the models, eg D:\ollama.  See here for information on how to change Windows environment variables.

thanks

authors: rick-github wioniqle-q


text:
GPU Tesla at 100% and ollama don't work, is broken

What is the issue?

I have just set up my Debian 12 Linux server. I installed Ollama directly using the following command:
curl -fsSL https://ollama.com/install.sh | sh
I did not make any modifications to the service file. I ran the command:
ollama run phi3.5
I typed "hello". The response was good and correct. However, for my second question, it started writing the beginning of a sentence and then displayed "###" (see screenshot).
I ran the nvidia-smi command (see screenshot), and the processor stays at 100%, and Ollama stops responding.
I should mention that my server does not have a graphical interface, and the Nvidia and CUDA drivers are up to date (update, upgrade). I am providing the top command output for CPU and RAM information.
Thank you for your feedback.
OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
0.3.12

Server logs will aid in debugging.

Thank for your help
debug.txt

Unfortunately there's nothing untoward in the log.  The model loads successfully, your bonjour is processed in 181ms and your question apparently in 129s.  There are some other commands I take to be ollama ps and ollama list.  The only curious entries are some /api/generate commands that are forced to complete when you took the service down.  These might have been attempts to unload/reload the model but it's not clear.
You can improve the logging by adding OLLAMA_DEBUG=1 to the server environment.  And since the card is a few years old, you could try using an older version of the CUDA library by setting OLLAMA_LLM_LIBRARY=cuda_v11.

@Domi31tls can you try out 0.4.0 and see if that improves the situation?  Do you see this failure with other models, or just phi3.5?

authors: Domi31tls dhiltgen rick-github


text:
feat: function calling on stream

It is fully tools-supported, both in normal response and stream response.

https://github.com/ollama/ollama/issues/5796 check this one

Very nice feature! Can you add an reviewer for this PR?

Hi, why is this not being reviewed/merged?

Hey @venjiang thanks for this! Going to be picking this up in the next few days - will keep you all posted.

Thanks for the contribution! Just got this feature in! https://github.com/ollama/ollama/releases/tag/v0.4.6

authors: Halfish KSemenenko ParthSareen SinanAkkoyun venjiang


text:
Adding a new rebus

Summary of Changes

added a new rebus of stargazing

Pull Request Test Coverage Report for Build 580

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.143%

Totals

Change from base Build 514:
0.0%

Covered Lines:
158

Relevant Lines:
180

💛  - Coveralls

authors: Abbit coveralls

repo: ollelauribostrom/rebus


text:
Can't load integration after upgrading Rasberry Pi OS (to Bookworm/Debian 12)

Describe the bug
I'm having the same issue as described in #608.   The integration was working for me before I upgraded my Raspberry Pi from Bullseye to Bookworm.  (This was needed because HA 20223.10.0 and later will not run on Bullseye).  After the upgrade, I'm not able to login.   I verified that I can login to the web site and to the app, and tried removing and re-adding the integration.  When logging in through the app, it told me that it's been a long time since I changed my password, so I did that.    Again verified that I can login through the web page and app, but removing and re-adding the integration does not work.
I'm using the email login/password authentication
Expected behavior
The integration should load and find my washer and dryer.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment details:

Environment (HASSIO, Raspbian, etc):  HA core running on Raspbian Bookworm
Home Assistant version installed: 2023.10.4
Component version installed: v0.34.0
Last know working version:  (I think it was the same version  when I was on Bullseye, but not sure)
LG device type and model with issue:
LG devices connected (list):

Output of HA logs
2023-10-21 19:31:05.020 WARNING (MainThread) [custom_components.smartthinq_sensors] Connection not available. ThinQ platform not ready
Traceback (most recent call last):
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/client.py", line 558, in _request
    resp = await req.send(conn)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 670, in send
    await writer.write_headers(status_line, self.headers)
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/http_writer.py", line 130, in write_headers
    self._write(buf)
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/__init__.py", line 293, in async_setup_entry
    lge_devices, unsupported_devices, discovered_devices = await lge_devices_setup(
                                                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/__init__.py", line 575, in lge_devices_setup
    if not await dev.init_device():
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/__init__.py", line 436, in init_device
    if not await self._device.init_device_info():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/wideq/device.py", line 432, in init_device_info
    self._model_data = await self._client.model_url_info(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/wideq/core_async.py", line 1581, in model_url_info
    if not (model_url_info := await self._load_json_info(url)):
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/wideq/core_async.py", line 1510, in _load_json_info
    content = await self._auth.gateway.core.http_get_bytes(info_url)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.homeassistant/custom_components/smartthinq_sensors/wideq/core_async.py", line 276, in http_get_bytes
    async with self._get_session().get(
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/srv/homeassistant3.11/lib/python3.11/site-packages/aiohttp/client.py", line 572, in _request
    raise ClientOSError(*exc.args) from exc
aiohttp.client_exceptions.ClientOSError: Cannot write to closing transport

Additional context
Add any other context about the problem here.

To be more clear, the integration actually loads to the point where it is visible in the list of integrations, but it fails setup and doesn't recognize my devices.   When it retries periodically, or when I manually click "reload," it goes briefly to "Initializing" then to "Failed setup, will retry"

Strange, after being disconnected for several days (following the upgrade, it took me a while to get around to looking at it) and then actively fighting with it for several hours today (trying all the experiments in the description), it suddenly connected up and started working.  I wonder if it took some time for the password change to propagate on the LG side.
The only puzzle is that a couple of sensors that I used to have on my dashboard are now showing up as unavailable (specifically, switch.washer_power_off, and switch.dryer_power_off are no longer listed)

Seems to working ok now.  Maybe it was because I reset the password, or maybe it was a transient problem on LG's end.   In any case, it's hard to debug when the problem isn't happening!

Good to know that now is working.
There are a lot of variables here: you upgrade the OS to Bookworm, you upgrade HA and you change LG password.
The error in log seems something related to local network (Cannot write to closing transport) but I suppose that your network was working fine.
Considering all these variables and that the error disappear, it is impossible to investigate on the cause.


text:
🛑 MediaNet is down

In 3f1c057, MediaNet (https://medianet-pa.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MediaNet is back up in f7e9df0.

repo: olmloa/upptime


text:
Implement the new Collection Introduction flow

Caso de Uso/Use Case:
The goal is to add a collection introduction, once the user tries to execute any collection for the first time, so it explains a little bit more how to take most out of the app.
Proposta/Proposal:
Here you can see the full UI flow on Figma.

Added needs more info as there is still a lack of business logic definitions, such as:

Will we allow for it to be closed by dragging it down or force the user to tap on the "Got it"?
We will show this only once when the user opens the first collection or when the taps "Study Now"?

Good questions. I believe this should be discussed in a call with our design team and then filled up here. My suggestion is that you or Girotto talk to bruno about this details

repo: olmps/memo


text:
ERROR！！！ Connection reset by peer

Could you paste the full error log, it will help a lot. :)

Could you paste the full error log, it will help a lot. :)

Thank you for you help，but I have fixed it again. but I meet a new problem. my process are stop in this procedure, I waited for a long time and can't see the green instruction for input.

Could you show the container.yaml in examples/step1_simpleVQA, it seems there is no data in redis.

Check if there are many running workflows on your conductor that have not been interrupted. If so, you need to select them and set them to terminal. The conductor page address is: http://localhost:5001/. If there are any further issues, you can communicate on Discord: https://discord.gg/G9n5tq4qfK.

I can't go to the page address (my server cannot be visited by this way). How can I avoid this situation (conductor that have not been interrupted.), I end my process use Ctrl + C every time, and this problem happened now!

Hi, it's the problem of the conductor's feature, since the last task was not fully executed correctly, data will be prioritized from the task that wasn't completed properly.
As you mentioned, the server might not be able to expose the specified port. We provide a debug mode that it will kill all same name task before you start a new task, and it is merged into main branch.
Once you pull the latest code, set conductor_config.debug.value = true in container.yaml of your example folder, it will help.

Hi, it's the problem of the conductor's feature, since the last task was not fully executed correctly, data will be prioritized from the task that wasn't completed properly. As you mentioned, the server might not be able to expose the specified port. We provide a debug mode that it will kill all same name task before you start a new task, and it is merged into main branch. Once you pull the latest code, set conductor_config.debug.value = true in container.yaml of your example folder, it will help.

Thank you, bro

authors: XeonHis djwu563 terencepp

repo: om-ai-lab/OmAgent


text:
Request ByteSize.MinValue 0

Hi, i want to propose a change of ByteSize.MinValue.
I've just used the property and expected it to be zero since negative amounts of data are impossible.
I just wanted to mention this, since it would be the value most consumers would probably expect this as MinValue.
OT: Nice work on this library. Much appreciated.

Thanks Taori. I can't think of a reason to not set ByteSize.MineValue to 0. Do you want to open a PR for this?

Hi omar. Alright. I'll do one once i get home. Thanks.

Hi Omar. Are you ready to pull or do you want me to change something?

Thank you for your contribution. I've packaged this into v1.1.2 and uploaded to NuGet at https://www.nuget.org/packages/ByteSize/1.1.2

You're welcome and thanks again for the effort you've put into this library

authors: omar taori

repo: omar/ByteSize


text:
Update phone-input.mdx

fixed the issue with the CommandInput as well into the snippet, example

Thanks.

authors: Mr-Vipi omeralpi

repo: omeralpi/shadcn-phone-input


text:
How to draw in Webots

Is your feature request related to a problem? Please describe.
Hi, I am looking for a way to draw in webots, I do some researches about this but none of the solutions meet my need. The "display device" method only draw on a grid, the create shape method is trivial since I need to draw hundreds of items.
For example, I want to draw something like this on the floor:

And this is not possible using the drawing methods in webots right now
I found that webots was supported to draw using OpenGL before, and it exactly what I need.

We indeed dropped the OpenGL draw ability a while ago.
The recommended way is now to use a Supervisor to modify an existing IndexedLineSet (or another primitive), as shown in this example: https://cyberbotics.com/doc/guide/samples-howto#supervisor_draw_trail-wbt
I think this new way is adapted for your application.
An alternative is to draw this figure in a texture using a Display, and to display this texture on the ground. There is an example here: https://cyberbotics.com/doc/guide/samples-devices#display-wbt
This is certainly simpler to setup.
Finally, you can modify the Webots code to do so. But this is much more difficult to do. A good starting point is around the rendering function: https://github.com/omichel/webots/blob/master/src/webots/gui/WbWrenWindow.cpp#L229
We won't provide you help if you choose this solution.

repo: omichel/webots


text:
Avoid IO::Scalar and use open instead.

Reported by jesus on 1 Jan 1970 00:19 UTC
open in 5.8 works better than IO::Scalar.  Use that.

Comment by jesus on 1 Jan 1970 00:19 UTC
(In [24]) fixes #10

Modified by clinton on 1 Jan 1970 00:20 UTC

repo: omniti-labs/mungo


text:
Outcome service bug fix and other changes

Each commit is a separate item. Three are related to outcome service. The last is to ensure that editors obey the 2 space indentation adopted in the project.
I'm using ims-lti outcome service to post grades to a server that uses a self-signed certificate. The ca option on https.request makes it possible to do this.
Also, I'm posting the grades long after the launch request. Currently I'm storing parts of the original request, so that I can call provider.parse_request to in turn create the outcome service. I'd like to refactor the outcome service constructor to make it easier to create directly.
Last, a small bug fix. https.request should be used for ssl

Looks brilliant! Espcially that Outcome can easily be used afterwards without creating a fake request.

Thanks for the contribution. I'll have time to go over it tonight.
I'll look for myself, but is this breaking at all, or would it fit within a minor version?

The change in signature to the OutcomeService constructor is breaking, if anybody is already using it directly.

Landed as 5be2259c3e61cbdf81b4d7fbeccd735ca53247c6 6815b6c12c3be86c7ad6baade300519af8b98c11 in v2.1.6 and ad0db90dce2530a21f060cc2a6f575cae0f4e16a a6032e3b6e8d2c8f080856f8bb5c3314d9cc1b83 5e590ff3bc055fef2ce212029f21685294510a28 in v3.0.0

Many apologies for not getting to this earlier - I'm sure it was quite annoying.

No worries! Thanks for merging

authors: ktonon omsmith ttsirkia

repo: omsmith/ims-lti


text:
Getting Test Access Token After Live Access Token

Love this! I couldn't figure out a way using your StripeOAuth classes to generate a test access token after getting a connected user's live access token, refresh token, publishable key, etc. I wondered if you had a way to accomplish this that I'm not seeing.  I tried adjusting your code a bit using the getTokens method and setting refresh to true, requiring the code within the getTokens method to be run and creating a new StripeOAuth2Client  instance with the new secret key but I didn't have any luck.  I currently just created a curl call in my script to handle this but if I could clean up my code and use your classes that would be ideal.
The call to accomplish this is below (using the live refresh token and the test api key associated with my platform):
curl https://connect.stripe.com/oauth/token
-d client_secret=sk_test_asdfasdfasdfasdfasdfasdfdsaf
-d refresh_token=REFRESH_TOKEN
-d grant_type=refresh_token

The example didn't work?

The example worked perfectly and I was able to get the live access token, publishable key and refresh token.  But, I couldn't, in the same script, get a test access token and publishable key using the live refresh token and your classes.

Ohhh gotcha!
Okay. So I actually ran into the same issue with an app I built recently
I unfortunately didn't have time to dig at the problem, and thus resorted to the following:

Hoping to make some time soon to figure it out myself! Note that the $body reference within the $body array is the return value from here:

That would be awesome thanks Oliver!  That's super similar to the curl call I have, but cleaner, so I think I'll use that instead ;)

Perfect happy I can help
Btw, built that solution for AccountDock incase it's of value ;)

repo: onassar/PHP-StripeOAuth


text:
Add observation codes valueset

I know these files aren't doing anything yet, but the other valuesets are represented already, Observation.code and Condition.code are important bits of structured data -- plus, this is getting things set up for being able to validate codes better.
source: http://hl7.org/fhir/DSTU2/valueset-observation-codes.canonical.json

Closing this because we added the Observation codes in a later PR that updated the validator.  Thanks for the PR!

authors: jmandel radamson

repo: onc-healthit/inferno


text:
isValid method returns false, when parse returns isValid true

url : https://google.com

Hello @Lalitha-Iyer
Thanks for reporting. I think the API might be confusing here. The isValid method actually checks if the input is a valid domain (e.g.: google.com would be a valid domain, but http://google.com would not since it has the protocol). But then the parse functions returns isValid if the input contains a valid domain, after URL parsing. Seems like we use the same name for two different things.
We could probably rename things a bit. What about renaming the isValid method to isHostname, and leave the isValid in parse's result unchanged?

Actually I just noticed that the documentation in the README is also wrong regarding isValid. So I can propose the following solution (but feel free to suggest something else as well, all feedback is more than welcome!):
Have a isHostname or isValidHostname in the API, that just checks if the input is already a valid hostname. We could leave the isValid and changes it's behavior to be in line with the documentation and the behavior of parse.
It seems that we introduced a breaking change with isValid at some point and did not reflect it in the documentation.
FYI @oncletom

authors: Lalitha-Iyer remusao


text:
Stopped working

I have been using sidekiq-cron successfully over the past few months, now it stopped working overnight. Not yet aware why. Tasks are there, should be executed, but they won't.

Anyone can shed a light?

Same thing happened to me when I upgraded to 3.5.0, I've downgraded to 3.4.2, which works.

+q

+1 same issue. Stop working after version update.

+1 the same for me

Thanks guys, with your help I could find a running configuration

Ruby 2.5.0
Rails 5.2.0
Sidekiq 5.1.3
Sidekiq cron 0.6.3

Issue related to #199
We found a temporary fix by adding rufus-scheduler to our gem file with fixed version.
gem 'rufus-scheduler', '~> 3.4.0'
Hope pull_request will be soon updated

3.4.2 is the latest working version

Hi guys sorry for delay, new version v1.0.0 should fixed that problem

Yes and please push this forward to: https://github.com/ondrejbartas/sidekiq-cron/pull/218

authors: Arie Onumis cassiopagnoncelli ondrejbartas skk2010 vanitu

repo: ondrejbartas/sidekiq-cron


text:
ArgumentNullException: Value cannot be null. error

I keep getting these errors within the console after using the mass texture importer function:
ArgumentNullException: Value cannot be null.
Parameter name: unityObject
VRC.Udon.Serialization.OdinSerializer.UnitySerializationUtility.SerializeUnityObject (UnityEngine.Object unityObject, VRC.Udon.Serialization.OdinSerializer.SerializationData& data, System.Boolean serializeUnityFields, VRC.Udon.Serialization.OdinSerializer.SerializationContext context) (at ./Packages/com.vrchat.worlds/Runtime/Udon/Serialization/OdinSerializer/Unity Integration/UnitySerializationUtility.cs:1031)
UdonSharp.UdonSharpBehaviour.UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize () (at ./Packages/com.vrchat.worlds/Integrations/UdonSharp/Runtime/UdonSharpBehaviour.cs:286)
UnityEditor.AssetDatabase:StopAssetEditing()
VRWorldToolkit.Editor.ImporterSettingsManager:ProcessTextures(TextureDetails) (at ./Packages/dev.onevr.vrworldtoolkit/Editor/MassTextureImporter.cs:338)
VRWorldToolkit.Editor.MassTextureImporter:OnGUI() (at ./Packages/dev.onevr.vrworldtoolkit/Editor/MassTextureImporter.cs:408)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
This is using the current version 3.2.0 with worlds and base on 3.7.3 under windows build.
I got this error 574 times in a row using it once.

I couldn't replicate this in a project with the VRChat SDK version you specified, so I might need more information on what's happening. It seems like there is some weird clash between it and UdonSharp or OdinSerializer in your project.

Are you able to provide full repro steps for an empty project?
Does this happen every time you try to run the importer?
Is it possible you were in Play Mode while attempting to run it?
Was 574 the amount of textures you were attempting to process?
Was anything else (UdonSharp for example) doing something while you attempted to run it?

for an empty project, no sadly. I only noticed this happen tonight.
I was not in play mode for sure.
574 was not the amount of textures I was attempting to process, it's possible that's the amount in the project itself?
and no other udon scripts were running as far as I am aware.

I just ran the importer tonight and it still did the same thing. it DOES import the new textures as it should. could it be that I have the option "Don't Override When" set to "Already Enabled"?

Thank you for all the information. However, since the errors are happening from Udon Sharp and Odin on the asset import, which isn't directly related to what my toolkit is doing, I might have to mark this as a won't fix for now. All my code is calling here is StopAssetEditing, which processes all the changes made to the textures processed. The errors are a bit ugly, but if there are no actual issues coming from them, it might just be something to deal with.
You mentioned the textures import properly, did you notice any other issues coming from the errors?

no I have not. later today i'll open the project back up and try get a shot of the full error.

Closing this out since it does not appear to be an issue with the Toolkit itself.

repo: oneVR/VRWorldToolkit


text:
New oneDAL interfaces are not reflected in the docs

There is no information about new interfaces in the docs and help messages.
I think we need to:

shortly explain differences between content in daal and oneapi/dal folders in README.md
add documentation (at least notes for short-term?) about new interfaces
update makefile help messages about how to build oneDAL.
in makefiles for oneDAL examples, cleanup old wordings e.g. "DAAL", "Intel Data Analytics Acceleration Library".

@michael-smirnov  @rlnx  @outoftardis   - guess we can close this issue now?

@michael-smirnov @rlnx @outoftardis - guess we can close this issue now?

I guess so, yes. However, I'm not sure about makefiles.

authors: michael-smirnov napetrov outoftardis

repo: oneapi-src/oneDAL


text:
Revert "[HEVCe]Extend QueryImplsDescription Report"

Reverts oneapi-src/oneVPL-intel-gpu#139
Issue: MDP-67515

Recheck passed on open-linux-driver-ci-dev_media-6804, closing

repo: oneapi-src/oneVPL-intel-gpu


text:
Installer seems to trigger Win8.1 Antimalware Service Executable

Not sure why, but trying to run, or even simply right-clicking (to get context menu) the rubyinstaller-2.2.2-x64.exe (and I seem to recall the 2.0.0... one as well) sends the Antimalware Service Executable in Windows 8.1 into overdrive. Windows Explorer freezes for up to a minute, the Antimalware Service runs up to 10% CPU time and eats up about 100MB memory...and stays like that for minutes on end. Sometimes, double-clicking the installer will seemingly have no effect, and 5 minutes later (once ASE has finished doing whatever it's frantically trying to do) the installer will actually kick in and show the installation dialog.

Same also happens when trying to then delete that rubyinstaller-2.2.2-x64.exe - this also seems to trigger some checks by ASE...

I should also add that this happens only when Windows Defender's real-time protection is turned on.

Yeah, this is something I have no idea how to fix.
I'll look into it when I get a chance.

This problem isn't specific to rubyinstaller. Looking for a solution for exactly the same problem with another product I stumbled upon this thread. I developed a software product which I sell from the internet.  The product installer uses inno setup to package up my various components into an exe file.  The problem is that the FIRST TIME (and only the first time) a particular version is downloaded from my site by a user they experience a delay before the UAC warning comes up and installation can start, of around two minutes when they double click the exe file to run the installation.  The same delay occurs even if they right click the file downloaded and select properties, or delete, or even try to move the file to another location. During that extended delay the antimalware service is showing about 6% CPU usage. This stops once the UAC dialog box opens up.
If, you try this a second time (even after a re-boot or after several weeks have elapsed), there is no delay: the installation starts immediately;  there is no delay selecting properties from the right click menu etc.
I downloaded rubyinstaller-2.2.2-x64.exe to see if the problem is the same as the one I have been experiencing, right clicked the file downloaded and selected properties.  The delay was well over five minutes before the properties information box came up. During that time the antimalware service remained at around 6% CPU usage. There was nothing I could do to get out of the "hang".
This problem occurs on Windows 7, Windows 8.1 and the latest developer pre-view build of windows 10.  In the windows 10 case no other software has been installed -- it's a brand-new installation.
Note that you do NOT get this problem unless you download the file from the internet.  eg if you try this on the installation file that has never been posted to the internet there is no delay. If I upload my exe file to my web site, then download it using a browser then try to run it or bring up properties, there is the long delay.
Whether it's related to inno setup (does rubyinstaller use inno setup?) or what I haven't a clue. If anybody can shed some light on this I'd be grateful. I've been looking for a solution for months.

I don't have an answer but I'll ping someone in the Windows Defender team to take a look. I'll do my best to get an answer but just know that Microsoft teams sometimes take a bit to respond, even internally.

thanks @reybango ... appreciate it :+1:

Hey all, it looks like a signature update was needed and it's now pushed out. Could you recheck to see if you still have the issue?

@reybango Thanks for the update. =)
Do you know if there is a way to expedite executable checking and inclusion in the signatures.
I'm guessing the best way is to probably digitally sign the installers, which is something I would need some time to get done.

Not that I know of but feel free to ping me if you have more issues. I'm happy to escalate. reybango at microsoft

@reybango just wondering though...is it normal behavior then for the Antimalware Executable Service to pretty much churn through extensive...checks?...for 5 minutes when a signature is not recognised/present, often crashing Explorer in the process?

reybango, could you please explain what you mean by "signature update required" and what exactly was pushed out and to where?   Are you referring to something related to the antimalware service? Is it a general fix (ie will it stop the "hang" occurring on all exe files downloaded from the internet), or is it specific to rubyinstaller?

@patrickhlauke @np100 the info I shared is pretty much all the Windows Defender team was willing to give me and all I can offer. In terms of the signature update, it's the malware signature associated to Windows Defender which gets updated regularly like any other AV product.

Thanks @patrickhlauke . I appreciate your help and understand you are dealing with another team in MS (I worked in MS for eight years).  But I hope you can appreciate our problem: When we (and I'm talking about many thousands, possibly hundreds of thousands) of developers put a new version of our products on our internet site for people to buy and download, the experience that the purchaser gets when they try to run the program is around five minutes of absolutely nothing. ie a hang.  There is no message like ("checking your file. please wait"), often no spinning hour glass. Just nothing.  This can't be normal behaviour for any product, never mind one from MS.  At the end of the five minutes of "hang" the exe runs as normal.  This happens on literally dozens of products I've downloaded in the past few months from the internet. It's not specific to our products.  The reason you may not have heard about it is, as I described in my first post above, it only happens the first time you download a particular exe version, so it's hard to test. Windows obviously remembers that it's checked the file and doesn't do it again.  I've had lots of feedback about it. My customers are understandably nervous about using our software as they have no idea what it's possibly doing on their computer.
Can you provide me (happy to do this off-line) with a contact or avenue to get this resolved in MS.  I stress: this is clearly a bug in the antimalware service.  In anybody's books: a multi-minute "hang" with absolutely no feedback to the user is a bug.  Just updating a signature to handle a specific product version is not a solution.

@np100 I'll pass along your feedback to that team. They're fine with me being the go between which from experience is the main way they communicate externally. Not ideal and I personally wish more teams would open up but it's the way they work at the moment. If you know someone at MS that can tie you in directly then I would certainly encourage you to try that as well.
Note I'm not trying to be a blocker here. Unfortunately, not all teams are setup to communicate externally. I'll do my best to help though.

@np100 @reybango Thanks for the info and work.
I did look around the Microsoft site and found this: https://www.microsoft.com/security/portal/mmpc/developer/resources.aspx
Either way it looks like the best avenue for RubyInstaller is start digitally signing the releases again. Luis handled that in the past but had problems obtaining a certificate recently. I haven't ever signed them and don't know how. I'll likely open up a new ticket asking for some information on the best ways to get Open Source Software signed sometime this week.

Got another update:
"The signature update SHOULD mitigate this so no need for any further action for users. The Windows Defender team identified a performance regression with its handling of the Inno installer specifically, so it could in theory affect any package created with this installer. Digitally signing in some cases will mitigate, Defender has the ability to tune its behavior based on the presence/absence of a valid, trusted certificate, and will perform deeper emulation and/or scanning of the files, in cases where no signature is present.”
@Azolo I'm trying to see if I can find a resource to point you to for digitally signing this.

@reybango Thanks! The problem is really finding a place to get a trusted cert that can be used in these circumstances. That's a huge hurdle from what I understand.

Re trusted certificate: This should not be necessary to stop antimalware from hanging and timing out.  There are positives and some significant negatives for getting a trusted certificate (eg it gives people downloading pirated copies of software illegally posted on file sharing sites confidence that the files they download haven't been tampered with (ie don't contain viruses) and this is a big negative for software vendors).  So we chose not to use a trusted certificate which is a valid option for us to select.  But that shouldn't cause users' PCs to effectively hang for five minutes when they download and try to use our software from our site (which they trust).  ie Defender/antimalware should work correctly whether there is a certificate or not. From reybango's comments I gather this should be the case?

@np100 Yes @reybango mentioned there was a regression with Inno. However, this is more about the best way for RubyInstaller to work with the current situation.
While digitally signing may not be your choice solution it is something that I think would work for RubyInstaller. The alternatives would be to switch to a WiX packaged MSI or other install method not managed by Inno. Which I may do in addition to signing the installers. See #136.
Those are the solutions that RubyInstaller is going to consider instead of waiting for the Microsoft Security Team to fix a regression that they said they were aware of.

Hey all I work on the Windows Defender team and have been coordinating with @reybango .
@np100 ,  digital signing is orthogonal to the Inno installer handling issue in Defender . You certainly shouldn't need a digital signature in order to prevent Defender from hanging, I was only pointing out we do modify our scanning and emulation behavior, informed (in part) by digital signatures. , I asked Rey to mention it as an FYI, not that it was in any way implicated or a solution in this specific case. We've fixed the Inno installer issue in signatures.
Digital signing has a lot of advantages however, and just because a package is offered from your site that as you say, users would generally trust, they can also be offered from other sources. There have also been countless instances of distribution points being compromised, and modified packages wind up being unwitting distribution vectors for malware authors. By signing with a certificate, it helps ensure the integrity of the package, which is a benefit to both you as a software developer and also the end-user.
If you're still having issues with installation packages hanging when using Defender, please submit a sample to the site below, and send me the submission ID so I can prioritize an investigation.
http://avsubmit/Submit.aspx

jasonconradt  and @reybango :  Thanks for helping with this.  Great service from MS.  Unfortunately the problem is still there for the inno installation package for our software products.  I've tested this today using the latest defender definitions (1.99.2288.0) on a Windows 8.1 PC where all available windows updates have been applied.  The hang is still around 2 minutes when you right click an exe  file downloaded from the internet and then click "properties" , "delete" etc. or double click the file to run. During that time antimalware shows 8% CPU usage which immediately drops to zero once the "hang" times out.  I'm happy to submit a link to the file on our site so you can download it, or the file itself, but the link you gave above doesn't work.  If you could please provide another link I'll submit full details.  Thanks again.

Hey sorry @np100 , I sent the internal link by accident, external link is:
https://www.microsoft.com/security/portal/submission/submit.aspx
Please send me the submission ID and I'll have a look.
Thanks!

To jasonconradt:  Thanks for the link. Submission ID is MMPC15061148257863

jasonconradt and @reybango :  I submitted our file. Submission ID MMPC15061148257863 but haven't had a response.  Would appreciate it if you could confirm that this is being looked at.

@np100 There's a ton of submissions to this group daily so I'm going to ask for a little patience. I know that @jasonconradt is out of the office and I;m sure he'll respond when he's settled back in.

Honestly, I'm pretty happy with the response from @jasonconradt. I'm going to go ahead and close this issue.
@jasonconradt @reybango Thank you for your awesome responses and insight.
@np100 I hope you get your problem solved, but if you could please move your troubleshooting to private communication at your earliest convenience.

Just turn Windows defender off and install any third party antivirus, see this guide to turn it off via registry : http://www.pingzic.com/antimalware-service-executable-msmpeng-exe/

@massagetut I mean, that's a suggestion. But it's an issue that should be fixed and if it isn't then it should be handled with the Windows Defender team.
Likewise, there are problems that pop with third parties that have occurred too. In those cases it usually requires a similar process.

authors: Azolo jasonconradt massagetut np100 patrickhlauke reybango

repo: oneclick/rubyinstaller


text:
Addon does not seem to be working anymore.

Heya!
Just 2 hours ago, the first post on the crunchyroll subreddit popped up, according to some other user, NordVPN doesn't work anymore. I tried to see if the CR unblocker still works, but I only get "CR-Unblocker couldn't get a session id".
Some other person in the comments on the reddit thread said this, too, but their comment was removed.
It seems they have cracked down on unblocking services once more.
Will it be possible to fix this?

I'm very limited time wise at the moment since I have tons of exams so I can't really work on this right now. If there's anybody who could submit a PR I'd merge it and update the server side code.

Extension should work again

Looks like it's broken again

Hmm I really have no idea what's going on. From what I can see in the logs there are some requests that work and some that don't.

Perhaps only some of their servers are denying requests, while others let them through?

I'll keep an eye on it. Right now it seems to work again.

Closing for now, as it seems to work perfectly (been working for a few days).

authors: Lucavon onestay

repo: onestay/CR-Unblocker-Server


text:
Race condition in ImagePrefetcher's downloadAndCache

Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

[x] I have read the wiki page and cheat sheet, but there is no information I need.
[x] I have searched in existing issues, but did not find a same one.
[x] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.

Issue Description
Received serveral crashes from Crashlytics.
What
Detailed crash report (Kingfisher Version 5.1.0) :
 # Crashlytics - plaintext stacktrace downloaded by kukushi at Sat, 09 Feb 2019 14:45:40 GMT
# URL: https://fabric.io/kukushis/ios/apps/com.kukushi.s1mufu/issues/5c3eb400f8b88c29636bd34d?time=last-thirty-days/sessions/3b61ff7f9f804919a5f8323ad3527536_DNE_0_v2
# Organization: ---
# Platform: ios
# Application:---
# Version: 1.1.1 (43)
# Bundle Identifier: ---
# Issue #: 115
# Issue ID: 5c3eb400f8b88c29636bd34d
# Session ID: 3b61ff7f9f804919a5f8323ad3527536_DNE_0_v2
# Date: 2019-02-09T13:22:00Z
# OS Version: 12.1.2 (16C101)
# Device: iPhone X
# RAM Free: 3.3%
# Disk Free: 56.8%

#11. Crashed: com.onevcat.Kingfisher.PrefetchQueue
0  libswiftCore.dylib             0x1019b3ef4 swift_weakTakeAssign + 224
1  libswiftCore.dylib             0x1019b2764 swift_nonatomic_retain_n + 260
2  Kingfisher                     0x100f94ee8 specialized _VariantDictionaryBuffer.ensureUniqueNativeBuffer(withBucketCount:) (<compiler-generated>)
3  Kingfisher                     0x100f96700 specialized _VariantDictionaryBuffer.nativeUpdateValue(_:forKey:) (<compiler-generated>)
4  Kingfisher                     0x100f939d4 ImagePrefetcher.downloadAndCache(_:) (<compiler-generated>)
5  Kingfisher                     0x100f93e90 ImagePrefetcher.startPrefetching(_:) (ImagePrefetcher.swift:269)
6  Kingfisher                     0x100f941e4 closure #1 in ImagePrefetcher.reportCompletionOrStartNext() (ImagePrefetcher.swift:283)
7  Kingfisher                     0x100f5c058 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
8  libdispatch.dylib              0x2379f16c8 _dispatch_call_block_and_release + 24
9  libdispatch.dylib              0x2379f2484 _dispatch_client_callout + 16
10 libdispatch.dylib              0x2379ccfa0 _dispatch_lane_serial_drain$VARIANT$armv81 + 548
11 libdispatch.dylib              0x2379cdae4 _dispatch_lane_invoke$VARIANT$armv81 + 412
12 libdispatch.dylib              0x2379d5f04 _dispatch_workloop_worker_thread + 584
13 libsystem_pthread.dylib        0x237bd50dc _pthread_wqthread + 312
14 libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

--

#0. com.apple.main-thread
0  libobjc.A.dylib                0x2371a0d68 objc_msgSend + 8
1  CoreFoundation                 0x237ea4bcc -[NSSet containsObject:] + 96
2  UIKitCore                      0x2653f8eac UIContentSizeCategoryIsAccessibilityCategory + 68
3  UIKitCore                      0x26537db10 -[UITableView _shouldDrawThickSeparators] + 104
4  UIKitCore                      0x265342c60 -[UITableViewCell _separatorHeight] + 76
5  UIKitCore                      0x26532b620 -[UITableViewCellLayoutManager(UITableViewCellLayoutManagerStatic) _backgroundRectForCell:forIndentedState:rowWidth:] + 248
6  UIKitCore                      0x26532b74c -[UITableViewCellLayoutManager(UITableViewCellLayoutManagerStatic) _adjustedBackgroundRectForCell:forIndentedState:rowWidth:] + 76
7  UIKitCore                      0x26532b8d4 -[UITableViewCellLayoutManager(UITableViewCellLayoutManagerStatic) _adjustedBackgroundContentRectForCell:forIndentedState:rowWidth:] + 52
8  UIKitCore                      0x26532dac0 -[UITableViewCellLayoutManager(UITableViewCellLayoutManagerStatic) _contentRectLeadingOffsetForCell:editingState:rowWidth:] + 244
9  UIKitCore                      0x26532dda4 -[UITableViewCellLayoutManager(UITableViewCellLayoutManagerStatic) _contentRectForCell:forEditingState:showingDeleteConfirmation:rowWidth:] + 304
10 UIKitCore                      0x2653330d4 -[UITableViewCellLayoutManager contentEndingRectForCell:forNewEditingState:] + 104
11 UIKitCore                      0x26532fec8 -[UITableViewCellLayoutManager layoutSubviewsOfCell:] + 1764
12 UIKitCore                      0x26534cc48 -[UITableViewCell layoutSubviews] + 172
13 UIKitCore                      0x26562f7dc -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
14 QuartzCore                     0x23c5b5b74 -[CALayer layoutSublayers] + 184
15 QuartzCore                     0x23c5bab2c CA::Layer::layout_if_needed(CA::Transaction*) + 324
16 UIKitCore                      0x26561acc8 -[UIView(Hierarchy) layoutBelowIfNeeded] + 548
17 UIKitCore                      0x265621878 +[UIView(Animation) performWithoutAnimation:] + 104
18 UIKitCore                      0x2653b0fe4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1196
19 UIKitCore                      0x2653b132c -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 80
20 UIKitCore                      0x26537ca04 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2256
21 UIKitCore                      0x26539a8f0 -[UITableView layoutSubviews] + 140
22 UIKitCore                      0x26562f7dc -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
23 QuartzCore                     0x23c5b5b74 -[CALayer layoutSublayers] + 184
24 QuartzCore                     0x23c5bab2c CA::Layer::layout_if_needed(CA::Transaction*) + 324
25 QuartzCore                     0x23c51944c CA::Context::commit_transaction(CA::Transaction*) + 340
26 QuartzCore                     0x23c547d7c CA::Transaction::commit() + 608
27 QuartzCore                     0x23c548be4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
28 CoreFoundation                 0x237f487cc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
29 CoreFoundation                 0x237f43460 __CFRunLoopDoObservers + 412
30 CoreFoundation                 0x237f43a00 __CFRunLoopRun + 1264
31 CoreFoundation                 0x237f431f0 CFRunLoopRunSpecific + 436
32 GraphicsServices               0x23a1bc584 GSEventRunModal + 100
33 UIKitCore                      0x265186d40 UIApplicationMain + 212
34 ProjectS1                      0x1008d9a58 main (PostOptionsViewController.swift:23)
35 libdyld.dylib                  0x237a02bb4 start + 4

#1. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x237b43ea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x237b4337c mach_msg + 72
2  CoreFoundation                 0x237f48be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x237f43a84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x237f431f0 CFRunLoopRunSpecific + 436
5  Foundation                     0x238939494 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6  Foundation                     0x238939340 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148
7  UIKitCore                      0x2652771f4 -[UIEventFetcher threadMain] + 136
8  Foundation                     0x238a6c23c __NSThread__start__ + 1040
9  libsystem_pthread.dylib        0x237bd425c _pthread_body + 128
10 libsystem_pthread.dylib        0x237bd41bc _pthread_start + 48
11 libsystem_pthread.dylib        0x237bd7cf4 thread_start + 4

#2. com.twitter.crashlytics.ios.MachExceptionServer
0  ProjectS1                      0x100acca10 CLSProcessRecordAllThreads (CLSProcess.c:376)
1  ProjectS1                      0x100accdf8 CLSProcessRecordAllThreads (CLSProcess.c:407)
2  ProjectS1                      0x100abc674 CLSHandler (CLSHandler.m:26)
3  ProjectS1                      0x100ab7a54 CLSMachExceptionServer (CLSMachException.c:446)
4  libsystem_pthread.dylib        0x237bd425c _pthread_body + 128
5  libsystem_pthread.dylib        0x237bd41bc _pthread_start + 48
6  libsystem_pthread.dylib        0x237bd7cf4 thread_start + 4

#3. com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0x237b43ea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x237b4337c mach_msg + 72
2  CoreFoundation                 0x237f48be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x237f43a84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x237f431f0 CFRunLoopRunSpecific + 436
5  CoreFoundation                 0x237f43f8c CFRunLoopRun + 80
6  CoreMotion                     0x23d999c58 (Missing)
7  libsystem_pthread.dylib        0x237bd425c _pthread_body + 128
8  libsystem_pthread.dylib        0x237bd41bc _pthread_start + 48
9  libsystem_pthread.dylib        0x237bd7cf4 thread_start + 4

#4. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x237b43ea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x237b4337c mach_msg + 72
2  CoreFoundation                 0x237f48be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x237f43a84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x237f431f0 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x23856600c -[__CoreSchedulingSetRunnable runForever] + 212
6  Foundation                     0x238a6c23c __NSThread__start__ + 1040
7  libsystem_pthread.dylib        0x237bd425c _pthread_body + 128
8  libsystem_pthread.dylib        0x237bd41bc _pthread_start + 48
9  libsystem_pthread.dylib        0x237bd7cf4 thread_start + 4

#5. com.apple.CFNetwork.CustomProtocols
0  libsystem_kernel.dylib         0x237b43ea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x237b4337c mach_msg + 72
2  CoreFoundation                 0x237f48be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x237f43a84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x237f431f0 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x23856600c -[__CoreSchedulingSetRunnable runForever] + 212
6  Foundation                     0x238a6c23c __NSThread__start__ + 1040
7  libsystem_pthread.dylib        0x237bd425c _pthread_body + 128
8  libsystem_pthread.dylib        0x237bd41bc _pthread_start + 48
9  libsystem_pthread.dylib        0x237bd7cf4 thread_start + 4

#6. Thread
0  libsystem_kernel.dylib         0x237b4fb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x237bd5100 _pthread_wqthread + 348
2  libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

#7. Thread
0  libsystem_kernel.dylib         0x237b4fb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x237bd51c0 _pthread_wqthread + 540
2  libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

#8. Thread
0  libsystem_kernel.dylib         0x237b4fb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x237bd5100 _pthread_wqthread + 348
2  libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

#9. Thread
0  libsystem_pthread.dylib        0x237bd7ce8 start_wqthread + 190

#10. com.onevcat.Kingfisher.ImageCache.ioQueue.CBE25926-E393-46AD-8098-FB8A9894A44D
0  AppleJPEG                      0x23a1fe6e0 aj_block_encode_ac + 352
1  AppleJPEG                      0x23a1fdf68 aj_mcu_dct + 264
2  AppleJPEG                      0x23a1ce240 aj_encode_buffers_baseline + 52
3  AppleJPEG                      0x23a1ce684 aj_encode_row + 180
4  AppleJPEG                      0x23a200208 applejpeg_encode_image_row + 584
5  ImageIO                        0x23a35fe08 AppleJPEGWritePlugin::writeOne(IIOImagePixelDataProvider*, IIODictionary*, IIODictionary*, unsigned int) + 1272
6  ImageIO                        0x23a3607c8 IIO_Writer_AppleJPEG::write(void*, void*) + 56
7  ImageIO                        0x23a347390 IIOImageDestination::finalize() + 1588
8  UIKitCore                      0x264dfdfa0 _UIImageJPEGRepresentation + 652
9  Kingfisher                     0x100f5be00 specialized DefaultCacheSerializer.data(with:original:) (Image.swift:169)
10 Kingfisher                     0x100f7c92c closure #2 in ImageCache.store(_:original:forKey:options:toDisk:completionHandler:) (ImageCache.swift:283)
11 Kingfisher                     0x100f84fac partial apply for closure #2 in ImageCache.store(_:original:forKey:options:toDisk:completionHandler:) (<compiler-generated>)
12 Kingfisher                     0x100f5c058 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
13 libdispatch.dylib              0x2379f16c8 _dispatch_call_block_and_release + 24
14 libdispatch.dylib              0x2379f2484 _dispatch_client_callout + 16
15 libdispatch.dylib              0x2379ccfa0 _dispatch_lane_serial_drain$VARIANT$armv81 + 548
16 libdispatch.dylib              0x2379cdae4 _dispatch_lane_invoke$VARIANT$armv81 + 412
17 libdispatch.dylib              0x2379d5f04 _dispatch_workloop_worker_thread + 584
18 libsystem_pthread.dylib        0x237bd50dc _pthread_wqthread + 312
19 libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

#11. Crashed: com.onevcat.Kingfisher.PrefetchQueue
0  libswiftCore.dylib             0x1019b3ef4 swift_weakTakeAssign + 224
1  libswiftCore.dylib             0x1019b2764 swift_nonatomic_retain_n + 260
2  Kingfisher                     0x100f94ee8 specialized _VariantDictionaryBuffer.ensureUniqueNativeBuffer(withBucketCount:) (<compiler-generated>)
3  Kingfisher                     0x100f96700 specialized _VariantDictionaryBuffer.nativeUpdateValue(_:forKey:) (<compiler-generated>)
4  Kingfisher                     0x100f939d4 ImagePrefetcher.downloadAndCache(_:) (<compiler-generated>)
5  Kingfisher                     0x100f93e90 ImagePrefetcher.startPrefetching(_:) (ImagePrefetcher.swift:269)
6  Kingfisher                     0x100f941e4 closure #1 in ImagePrefetcher.reportCompletionOrStartNext() (ImagePrefetcher.swift:283)
7  Kingfisher                     0x100f5c058 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
8  libdispatch.dylib              0x2379f16c8 _dispatch_call_block_and_release + 24
9  libdispatch.dylib              0x2379f2484 _dispatch_client_callout + 16
10 libdispatch.dylib              0x2379ccfa0 _dispatch_lane_serial_drain$VARIANT$armv81 + 548
11 libdispatch.dylib              0x2379cdae4 _dispatch_lane_invoke$VARIANT$armv81 + 412
12 libdispatch.dylib              0x2379d5f04 _dispatch_workloop_worker_thread + 584
13 libsystem_pthread.dylib        0x237bd50dc _pthread_wqthread + 312
14 libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

#12. Thread
0  libsystem_kernel.dylib         0x237b4fb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x237bd51c0 _pthread_wqthread + 540
2  libsystem_pthread.dylib        0x237bd7cec start_wqthread + 4

Reproduce
Don't know.
Other Comment
func downloadAndCache(_ resource: Resource) {

        let downloadTaskCompletionHandler: ((Result<RetrieveImageResult, KingfisherError>) -> Void) = { result in
            self.tasks.removeValue(forKey: resource.downloadURL)
            if let _ = result.error {
                self.failedResources.append(resource)
            } else {
                self.completedResources.append(resource)
            }

            self.reportProgress()
            if self.stopped {
                if self.tasks.isEmpty {
                    self.failedResources.append(contentsOf: self.pendingResources)
                    self.handleComplete()
                }
            } else {
                self.reportCompletionOrStartNext()
            }
        }

        let downloadTask = manager.loadAndCacheImage(
            source: .network(resource),
            options: optionsInfo,
            completionHandler: downloadTaskCompletionHandler)

        if let downloadTask = downloadTask {
            tasks[resource.downloadURL] = downloadTask
        }
    }

downloadTaskCompletionHandler may be executed in some other queue where tasks are modified which may result in a race condition.

Some Other related stack traces:
Crashed: com.onevcat.Kingfisher.ImageDownloader.Process
0  libobjc.A.dylib                0x1ba126b00 objc_object::release() + 16
1  libswiftCore.dylib             0x101a1fecc swift_arrayDestroy + 68
2  Kingfisher                     0x1011056f0 specialized _VariantDictionaryBuffer.nativeDelete(_:idealBucket:offset:) (<compiler-generated>)
3  Kingfisher                     0x101105664 specialized _VariantDictionaryBuffer.nativeRemoveObject(forKey:) (<compiler-generated>)
4  Kingfisher                     0x101103a88 closure #1 in ImagePrefetcher.downloadAndCache(_:) (<compiler-generated>)
5  Kingfisher                     0x101118b78 cacheImage #1 (_:) in KingfisherManager.loadAndCacheImage(source:options:progressBlock:completionHandler:) (KingfisherManager.swift:269)
6  Kingfisher                     0x1010fdb04 partial apply for closure #1 in closure #4 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) (<compiler-generated>)
7  Kingfisher                     0x1010fdb24 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ImageDownloader, @in_guaranteed Result<ImageLoadingResult, KingfisherError>) -> () (<compiler-generated>)
8  Kingfisher                     0x1010fdb7c partial apply for specialized  (<compiler-generated>)
9  Kingfisher                     0x1010fbe28 closure #2 in closure #1 in closure #5 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) (ImageDownloader.swift)
10 Kingfisher                     0x1010cfd8c specialized CallbackQueue.execute(_:) (<compiler-generated>:54)
11 Kingfisher                     0x1010fbd90 closure #1 in closure #5 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) (ImageDownloader.swift:267)
12 Kingfisher                     0x1010fe9d8 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ImageDownloader, @in_guaranteed Result<UIImage, KingfisherError>, @in_guaranteed SessionDataTask.TaskCallback) -> () (<compiler-generated>)
13 Kingfisher                     0x1010fea64 partial apply for specialized  (<compiler-generated>)
14 Kingfisher                     0x1010f6034 ImageDataProcessor.doProcess() (ImageDataProcessor.swift)
15 Kingfisher                     0x1010feae0 partial apply (<compiler-generated>)
16 Kingfisher                     0x1010d3b84 partial apply for closure #2 in CallbackQueue.execute(_:) (<compiler-generated>)
17 Kingfisher                     0x1010cc058 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
18 libdispatch.dylib              0x1ba9756c8 _dispatch_call_block_and_release + 24
19 libdispatch.dylib              0x1ba976484 _dispatch_client_callout + 16
20 libdispatch.dylib              0x1ba950fa0 _dispatch_lane_serial_drain$VARIANT$armv81 + 548
21 libdispatch.dylib              0x1ba951ae4 _dispatch_lane_invoke$VARIANT$armv81 + 412
22 libdispatch.dylib              0x1ba959f04 _dispatch_workloop_worker_thread + 584
23 libsystem_pthread.dylib        0x1bab590dc _pthread_wqthread + 312
24 libsystem_pthread.dylib        0x1bab5bcec start_wqthread + 4
``

Crashed: com.onevcat.Kingfisher.ImageDownloader.Process
0  libswiftCore.dylib             0x103543580 swift_unownedCheck + 76
1  Kingfisher                     0x102b6baa4 closure #1 in ImagePrefetcher.downloadAndCache(:) (Result.swift:55)
2  Kingfisher                     0x102b6baa4 closure #1 in ImagePrefetcher.downloadAndCache(:) (Result.swift:55)
3  Kingfisher                     0x102b80b78 cacheImage #1 (:) in KingfisherManager.loadAndCacheImage(source:options:progressBlock:completionHandler:) (KingfisherManager.swift:269)
4  Kingfisher                     0x102b65b04 partial apply for closure #1 in closure #4 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) ()
5  Kingfisher                     0x102b65b24 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ImageDownloader, @in_guaranteed Result<ImageLoadingResult, KingfisherError>) -> () ()
6  Kingfisher                     0x102b65b7c partial apply for specialized  ()
7  Kingfisher                     0x102b63e28 closure #2 in closure #1 in closure #5 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) (ImageDownloader.swift)
8  Kingfisher                     0x102b37d8c specialized CallbackQueue.execute(:) (:54)
9  Kingfisher                     0x102b63d90 closure #1 in closure #5 in ImageDownloader.downloadImage(with:options:progressBlock:completionHandler:) (ImageDownloader.swift:267)
10 Kingfisher                     0x102b669d8 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ImageDownloader, @in_guaranteed Result<UIImage, KingfisherError>, @in_guaranteed SessionDataTask.TaskCallback) -> () ()
11 Kingfisher                     0x102b66a64 partial apply for specialized  ()
12 Kingfisher                     0x102b5e034 ImageDataProcessor.doProcess() (ImageDataProcessor.swift)
13 Kingfisher                     0x102b66ae0 partial apply ()
14 Kingfisher                     0x102b3bb84 partial apply for closure #2 in CallbackQueue.execute(_:) ()
15 Kingfisher                     0x102b34058 thunk for @escaping @callee_guaranteed () -> () ()
16 libdispatch.dylib              0x18e9316c8 _dispatch_call_block_and_release + 24
17 libdispatch.dylib              0x18e932484 _dispatch_client_callout + 16
18 libdispatch.dylib              0x18e90cfa0 _dispatch_lane_serial_drain$VARIANT$armv81 + 548
19 libdispatch.dylib              0x18e90dae4 _dispatch_lane_invoke$VARIANT$armv81 + 412
20 libdispatch.dylib              0x18e915f04 _dispatch_workloop_worker_thread + 584
21 libsystem_pthread.dylib        0x18eb150dc _pthread_wqthread + 312
22 libsystem_pthread.dylib        0x18eb17cec start_wqthread + 4

These race condition should be fixed for ImagePrefetcher in  https://github.com/onevcat/Kingfisher/commit/4903511a4e23015de2fab6a80326887c66e8439a

authors: kukushi onevcat

repo: onevcat/Kingfisher


text:
failed image parameter in kf.setImage: method

Could you add a "failed image" parameter in kf.setImage: so that if kingfisher cannot retrieve image from URL or there is an error, the image view can still display an image.

It's no need to create such an image if the request is successful (which would be a normal case), so it seems to be a waste of performance and adding complication to the API. I believe you should just set the "failed image" in the completion handler instead. It would not be hard too if you want create a wrapper for it yourself, if feel like to.

authors: faisalrasbihan onevcat


text:
可以支持webP格式图片吗？

可以支持webP格式图片吗？

Please read our wiki.


text:
Expose service account to the testing framework

Closes https://github.com/onflow/cadence-tools/issues/121
Companion PR: https://github.com/onflow/cadence/pull/2505 :heavy_check_mark:
Description
This will enable developers to sign transactions that can send any amount of FLOW tokens, to newly-created test accounts.
import Test

pub let blockchain = Test.newEmulatorBlockchain()

pub let serviceAccount = blockchain.serviceAccount()

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

I will certainly add more test cases :+1: , however, I need a Cadence release that includes these changes (from the companion PR)

@SupunS Added one such test case: https://github.com/onflow/cadence-tools/pull/122/commits/3005dad60081c58172586d4b046b89ce97692053, where the blockchain.serviceAccount() function is used in a Cadence test script.

I have rebased after your latest merge, so the tests should be passing :pray:

@turbolent No worries, I will rebase right now :bow:

Conflicts resolved. Hopefully the tests got our backs :pray:

repo: onflow/cadence-tools


text:
Create codeql.yml

Please approve this request to configure Code-QL. The submitted template is set for scans on Pull/Push and 0700 hours daily in the Master Branch for the Go and JavaScript/TypeScript Language. If you have any questions please contact me @Latkes
Closes #???
Description

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

Looks like V1 will be deprecated soon: https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/

What do we do here? @Latkes

Hi @sideninja @turbolent looks like all the endpoints in the yaml are marked V2. Will double check.

authors: Latkes sideninja turbolent


text:
Add ExecuteScriptAtBlockHeight to js sdk.

Add ExecuteScriptAtBlockHeight for js sdk.
I want to use this to get metadata of NFT, from the user address of the owner at certain blockHeight.

Any updates on this?

Any updates on this?

This would be really useful functionality

This has been added to the latest alpha version of fcl.
await fcl.send([
  fcl.script`
    pub fun main(): Int { return 7 }
  `,
  fcl.atBlockHeight(35476432),
]).then(fcl.decode)

Awesome!

Hi! When I run this as so:
  const interaction = await sdk.build([
    sdk.script(TOPSHOT_SALE_MOMENT_SCRIPT),
    sdk.atBlockHeight(block.height - 1),
    sdk.args([
      sdk.arg(seller.value.value.value, types.Address),
      sdk.arg(parseInt(moment.value.value), types.UInt64),
    ]),
  ]);

  const pipe = await sdk.pipe(interaction, [
    sdk.resolveArguments,
    sdk.resolveParams,
  ]);

  const response = await send(pipe);

(send simply wraps sdk.send) I get the following error:
        * rpc error: code = Internal desc = failed to execute the script on the execution node execution-9686399a8a5418a12e762cfaeff2ea348c2137f554560917760e0d47acf2cda4@execution-001.mainnet5.nodes.onflow.org:3569=1000: rpc error: code = Internal desc = failed to execute script: failed to execute script at block (b22b802003b819a77930e7090a7783a2627f7fd1765a85a90ffbc22ff5b771ae): Execution failed:
error: missing entry point: expected 'main'

... but when I remove atBlockHeight, it works.

authors: ThorntonStuart janmallari nporteschaikin orodio tokchin

repo: onflow/flow-js-sdk