text:
Format tip pair as a single value when the two values are equal?

By default when formatting pairs (y1, y2), we display ${format(a)}—${format(b)}. It does not feel terribly useful to repeat the value when a and b end up being formatted identically.
If for example you're showing a tip on an interval that is [3.1—3.2] with an integer format, showing "3" (read as "somewhere around 3 something") is as informative and slightly better than "3—3" ("between 3 something and 3 something").
This does not happen often, since hopefully the format discriminates between values, but when it happens we would be as happy with showing ${format(a)} alone.
I tried to thing of a case where on the opposite, one might want to show a repetition; for example on a calendar where you want to show an interval that goes "from Sunday to Sunday", as "Sun—Sun". In that case, you would have to create a specific channel since the automatic tip format would now show "Sun" only.
This enhancement would incidentally help with the waffle tips (#2132), but is not necessary for them, and should be discussed on its own merits.
(Note: does not apply when the value is the difference — i.e. hint: {length: true}).

A case found in the wild: the binning of integers between 0 and 7, that results (by default) in small bins such as [4 — 4.5]. If the format was showing only the integer part (as suggested in #1268), this PR would automagically solve this case.

(However in this case, we'd also want the bin labels to be "4" and not "4 inclusive to 5 exclusive".)

repo: observablehq/plot

license: ISC


text:
Move E2E tests to efficientgo/e2e

In order to provide a more comfortable and robust experience for out integration testing, this PR moves tests from using Bash to using the efficientgo/e2e Go framework. This applies to both metrics and logs test, as well running the setup locally (interactive test). Excludes moving load tests for now.

@ianbillett @periklis @onprem everything should be addressed now, PTAL when you get the chance, thank you :heart:

LGTM, one small nit though. Do you really format with tabs space of 2?

I'm not sure, I have my IDE set to use 4 space tabs for indentation, seems like it got changed on some files here, I fixed that. Thanks!

source: gharchive/pull-request

repo: observatorium/api

license_type: permissive

license_source: github-api


text:
Safety check on isResolved + openOrSwitch for all file extensions

[x] I agree to the contribution guidelines laid out here in the readme.

Didn't mean to comment that, seems like I cant delete it now

Haha no worries. Thank for reading over :)


text:
I wish Obsidian creates ChatGPT JSON support. I tried Google Keep or Roam Research JSON & zip too, but both gave an error. I am not a coder; it might be too much to ask, but Thank you so much for Notion and all the imports.

I wish Obsidian creates ChatGPT JSON support. I tried Google Keep or Roam Research JSON & zip too, but both gave an error. I am not a coder; it might be too much to ask, but Thank you so much for Notion and all the imports.
Edit: A clarification: What I am talking about is, for example, we can export conversations from a ChatGPT account. I wish there could be a workaround or tools available with Obsidian or online. I am searching for tools for the same purpose.

Seeking Help to Automate ChatGPT Data Export and Import to Obsidian : ObsidianMD also i found here a guy created python script or stuff idk but i dont know how to use it in reddit
Curious to know if you found an automation solution. I have so many ChatGPT conversations that manually exporting them is a pain. An automated solution would be amazing. I am still looking and can't quite find anything.
Reply
Share
User avatar
level 2
realpivot
OP
·
3 mo. ago
Not really, I feel like one would have to be built but I don't have the skills lol. Seems pretty straight forward of a process. I use code interpreter to reformat my exported chats and just copy and paste. It's not ideal but it's somethign
1
Reply
Share
User avatar
level 3
6849
·
3 mo. ago
Yea, I ended up using Code Interpreter to build a script that would automate parsing conversations.json (from an OpenAI export). In Obsidian I have a "ChatGPT" folder and I place this script there along with OpenAI's exported zip file. I run the script. Sorts every chat by date of last conversation and makes a separate folder called "Code" with ALLLLLLL of the code it ever made me.
I just pasted it to Pastebin if interested: https://pastebin.com/94vwgnvp
Perhaps one day there will be an API we can use to sync conversations. I'd love to pull them on a schedule into Obsidian without doing it manually.
1
Reply
Share
level 4
Witty-Mistake4590
·
just now
hey can you help me run or give me documentation to do same
1
Reply
Share
User avatar
level 4
realpivot
OP
·
2 mo. ago
Thank you so much I appreciate it

This is a better fit for a different Obsidian plugin because Importer is focused on one time import of notes.

source: gharchive/issue

repo: obsidianmd/obsidian-importer

license: MIT


text:
Dynlink error: The module `Sexplib0__Raw_grammar' is already loaded

After updating to fix #6, I got it installed. But it gives an error when running it on a file:
$ echo 'print_endline "Hi"' > test.ml
$ cameleer test.ml
/home/user/.opam/4.12.0/lib/why3/plugins/plugin_cameleer cannot be loaded:
Dynlink error: The module `Sexplib0__Raw_grammar' is already loaded (either by the main program or a previously-dynlinked library)

At the same time, why3 opens a window saying:
Session initialized successfully
There was an unrecoverable error during treatment of request:
 open file /home/user/tmp/cam/test.ml
with exception:
Unknown file extension: `ml'

I also tried it on some of the examples. That didn't open the why3 window at all, but reported:
$ cameleer duplicates.ml
/home/user/.opam/4.12.0/lib/why3/plugins/plugin_cameleer cannot be loaded:
Dynlink error: The module `Sexplib0__Raw_grammar' is already loaded (either by the main program or a previously-dynlinked library)
warning: [Warning] could not read goal shapes because Why3 was not compiled with compress support

Unknown file extension: `ml'

BTW, feel free to enable ocaml-ci on this repository (https://github.com/apps/ocaml-ci).
Note: it's already enabled for some of the others repositories (https://ci.ocamllabs.io/github/ocaml-gospel), but it isn't currently showing the status on the PRs because someone needs to approve its request for access to the GitHub Checks API, which it recently switched to using.

After updating to fix #6, I got it installed. But it gives an error when running it on a file:
$ echo 'print_endline "Hi"' > test.ml
$ cameleer test.ml
/home/user/.opam/4.12.0/lib/why3/plugins/plugin_cameleer cannot be loaded:
Dynlink error: The module `Sexplib0__Raw_grammar' is already loaded (either by the main program or a previously-dynlinked library)

At the same time, why3 opens a window saying:
Session initialized successfully
There was an unrecoverable error during treatment of request:
 open file /home/user/tmp/cam/test.ml
with exception:
Unknown file extension: `ml'

I also tried it on some of the examples. That didn't open the why3 window at all, but reported:
$ cameleer duplicates.ml
/home/user/.opam/4.12.0/lib/why3/plugins/plugin_cameleer cannot be loaded:
Dynlink error: The module `Sexplib0__Raw_grammar' is already loaded (either by the main program or a previously-dynlinked library)
warning: [Warning] could not read goal shapes because Why3 was not compiled with compress support

Unknown file extension: `ml'

Thank you for reporting. This should now be fixed.
The issue with Sexplib0__Raw_grammar is that this is an optional dependency of Why3. Hence, one could install Why3 with or without it, which in the later case would make us change once again the dune file of Cameleer.
In the meantime, I think the best compromise is to assume that Why3 was installed with sexplib0 as this is the most common case.

BTW, feel free to enable ocaml-ci on this repository (https://github.com/apps/ocaml-ci).
Note: it's already enabled for some of the others repositories (https://ci.ocamllabs.io/github/ocaml-gospel), but it isn't currently showing the status on the PRs because someone needs to approve its request for access to the GitHub Checks API, which it recently switched to using.

Thank you for the suggestion. I will certainly do it and also fix it for the other projects of OCaml-GOSPEL.

Thanks - I was able to follow your tutorial with the latest version :-)

repo: ocaml-gospel/cameleer


text:
[ocaml5-issue] Fatal error: Failed to create domain on s390x, MinGW, Cygwin, ...

On multiple platforms (s390x, MinGW, Cygwin, ...) domain_spawntree triggers an abort with a Fatal error: Failed to create domain:
https://ocaml-multicoretests.ci.dev:8100/job/2023-12-20/111746-ci-ocluster-build-24859a
random seed: 454014859
generated error fail pass / total     time test name

[ ]    0    0    0    0 /  100     0.0s domain_spawntree - with Atomic
[ ]    0    0    0    0 /  100     0.0s domain_spawntree - with Atomic (generating)Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Fatal error: Failed to create domainFailed to create domain
Fatal error: Failed to create domain
File "src/domain/dune", line 14, characters 7-23:
14 |  (name domain_spawntree)
            ^^^^^^^^^^^^^^^^
(cd _build/default/src/domain && ./domain_spawntree.exe --verbose)
Command got signal ABRT.

I think this originates from the memprof commit to trunk: https://github.com/ocaml/ocaml/commit/3838bbfffcb80dae8d2713be475d57c937c874d9
which seems to trigger this error in caml_memprof_new_domain from init_memprof_failure.
I think the issue is worth separating from #354 which we have observed on Windows since June (long before memprof was merged).

Fixed in https://github.com/ocaml/ocaml/pull/12855

repo: ocaml-multicore/multicoretests


text:
🛑 SociosPoli (socios.suterh.org.ar) is down

In b4106e8, SociosPoli (socios.suterh.org.ar) (https://socios.suterh.org.ar/api/health) was down:

HTTP code: 503
Response time: 23296 ms

Resolved: SociosPoli (socios.suterh.org.ar) is back up in aa5e712.

repo: octubre-softlab/octubre-upptime


text:
🛑 Mi Web App (miweb.umet.edu.ar) is down

In 121ea1d, Mi Web App (miweb.umet.edu.ar) (https://miweb.umet.edu.ar/api/health) was down:

HTTP code: 403
Response time: 655 ms

Resolved: Mi Web App (miweb.umet.edu.ar) is back up in f0f8d89.


text:
Only enable the verbose mode for the requested package, not its dependencies

This should reduce the verbosity of builds a little bit. However it might make CI behaviour change slightly compared to a simple opam install <pkg> (see https://github.com/ocaml/opam/pull/4564 for instance)

The issue with that is that it would only display the log for the failing command and not for whatever successful commands there is before. For instance it is annoying in the case of a buggy ./configure script that wasn't run with sh -e and would successfully finish but would display hints of what's going on on the next command (that is failing, e.g. make)

For instance it is annoying in the case of a buggy ./configure script that wasn't run with sh -e and would successfully finish but would display hints of what's going on on the next command (that is failing, e.g. make)

Ah, I see. I assumed opam showed the log output for the whole package, not just one step.

repo: ocurrent/opam-repo-ci


text:
Bit Value Literals

Hi,
bit value literals are stored as  b'0' which causes issues with the generated migrations as most of the places for the PHP strings the generator is using single quotes as well.
I noticed it in default values but worth investigating with the other values as well.
I created a pull request to fix it for defaults.

Hi @pukkancs Thanks for your feedback. My impression is that bit literals are rarely used. Of course I merged your PR with pleasure, because apparently in very rare cases bit literals are used. Where exactly do you think this could become a real problem? Can you give us some more examples? Thanks.

Hi @odan,
Thanks, for the quick response. Yes, I guess bit literals are not commonly used, this is the first time I encountered them as well :)
I am not sure about any real life use cases, as it is not likely that I would use bit literals myself. Where it might be possible though is wherever you are able to define a value.
I am thinking maybe enum values.  (I am not sure about this, also who would do something like that, but one of the purpose of your library is to be able to set up initial migration for existing db, and in existing databases, magical things reside :) Like bit default values instead of bool :D)

I've decided to close this ticket for now.  If there's more demand, I'll reopen it. Thank you.

authors: odan pukkancs

repo: odan/phinx-migrations-generator


text:
[PSA] Ubuntu PPA Info.

@odeke-em The ubuntu ppa is using an external ppa to compile the binary currently. Not sure if this would have any impact on end users. But the ppa install for drive seems to work on a default ubuntu install for me. If anyone else can confirm this that'd be great. (version info still broken but I'll get to it asap been very sick and on heavy pain killers lol) But as it stands drive is updated to the 0.2.4 release and fully working. Sorry for the delay in fixing the build. Looks like the older go package is broken when fetching some depends, so the newer version is a must.
The ppa being used as a depend for go is located here https://launchpad.net/~evarlast/+archive/ubuntu/golang1.4
Not sure if users would need to add the ppa as the binary generated are well binarys and run perfectly fine from my tests. So this is more a PSA then anything important. Feel free to close this issue right away. Again sorry for the delay, had a ruptured appendix and I'm going slow on things lol.

Ooh sorry to hear about that @shaggytwodope, hope things are getting better. @shaggytwodope your contributions and time are highly valued, please take as much time as you need. Thank you for informing us about this. Yes in deed, I found out from a friend on Thursday that go1.3.3 even works not just 1.4 as I initially thought.

Wish you a quick recovery @shaggytwodope  and don't worry about this stuff, your health first ;)

Indeed @shaggytwodope, packagers like yourself are a key element in boosting adoption of good open-source software.  Please take care of your health.  Thanks for the great work!

Hey @shaggytwodope. Is this still an issue?

@odeke-em It's more or less still just a psa. Still compiles and works just fine. Well at least no ones reported otherwise yet lol. I'll get into packaging it better one of these days... damn life shit. I'm going to close it, if anyone runs into probs lemme know.

@shaggytwodope ah I see. Thank you for the PSA, plus your work, as usual ;) Were you able to get in touch with the Debian folks?

@odeke-em yeah I need to sit down and figure out how to package all the stuff needed. If it was JUST drive as a source it would be far easier. But so many different sources complicates stuff. I'm going to get to this soon, hoping to dedicate a weekend to this and some other stuff I'm borderline ignoring/putting off.

Oh okay. So I think I mentioned to you godep, please see directory drive-gen/Godeps everytime I need to bundle dependencies, I ran godep save in drive-gen. Hope this can help cut out the problem with many sources.

authors: js-ojus odeke-em shaggytwodope

repo: odeke-em/drive

license_source: bigquery


text:
Push of directory changes file modification times

It would be nice if drive did not change modification times. If it is necessary to keep the modification times in sync then it should send the modification time along with the file.

[mlbaker@localhost ~]$ drive version
drive version 0.0.4
[mlbaker@localhost ~]$

I totally agree with this. Fixed with the latest push. I referenced the issue and Github automatically closed it.

@odeke-em It worked.  The modification time does not get updated.  However when I try to push the file again it looks like it tries to send the file again.  I would expect that the next push would say "up to date".
[mlbaker@localhost drive]$ drive push test2
remote path doesn't exist
Resolving...
+ /test2
+ /test2/testFile2.png
Addition: 2
Proceed with the changes? [Y/n]: Y
2 / 2 [============================================================] 100.00 % 4s
[mlbaker@localhost drive]$ drive push test2
Resolving...
M /test2/testFile2.png
Modification: 1
Proceed with the changes? [Y/n]: Y
1 / 1 [============================================================] 100.00 % 3s
[mlbaker@localhost drive]$ drive push test2
Resolving...
M /test2/testFile2.png
Modification: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 4s
[mlbaker@localhost drive]$

@mattlbaker however my initial solution is half baked since I am not actually sending the local modTime upwards since the correct time translations etc have to be made.

@mattlbaker am quite happy that you brought this up. Please pull from master and let me know how this goes.

@odeke-em It has improved, but there might still be an issue.  The local modification time did not change which is good.  I would however expect that the second time that I run drive that it would say "everything is up to date".  Instead it detects a modification and sends the file again.  The third time that I ran drive it told me that "everything was up to date".
[mlbaker@localhost drive]$ drive push test3
remote path doesn't exist
Resolving...
+ /test3
+ /test3/testFile2.png
Addition: 2
Proceed with the changes? [Y/n]: y
2 / 2 [============================================================] 100.00 % 6s
[mlbaker@localhost drive]$ drive push test3
Resolving...
M /test3/testFile2.png
Modification: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 4s
[mlbaker@localhost drive]$ drive push test3
Resolving...
Everything is up-to-date.
[mlbaker@localhost drive]$

@mattlbaker weird thing is that I can't reproduce this

It is because you pushed a directory and I pushed a file.  You should be able to reproduce it by pushing a file.
[mlbaker@localhost drive]$ drive push test4
remote path doesn't exist
Resolving...
+ /test4
Addition: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 1s
[mlbaker@localhost drive]$ drive push test4
Resolving...
Everything is up-to-date.
[mlbaker@localhost drive]$
[mlbaker@localhost drive]$
[mlbaker@localhost drive]$ drive push test4
Resolving...
+ /test4/testFile.png
Addition: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 3s
[mlbaker@localhost drive]$ drive push test4
Resolving...
M /test4/testFile.png
Modification: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 3s
[mlbaker@localhost drive]$ drive push test4
Resolving...
Everything is up-to-date.
[mlbaker@localhost drive]$

@mattlbaker date > file creates a file but I see what you are saying. Thanks for the investigation, I'll dig through this, this is an interesting scenario.

@mattlbaker btw make sure to do a git pull origin master in the drive directory so that we are in sync :)

My mistake.  Take a look at this!
If I do your exact steps I get your results.
[mlbaker@localhost drive]$ date > today
[mlbaker@localhost drive]$ drive push today
remote path doesn't exist
Resolving...
+ /today
Addition: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 1s
[mlbaker@localhost drive]$ date >> today
[mlbaker@localhost drive]$ drive push today
Resolving...
M /today
Modification: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 1s
[mlbaker@localhost drive]$ drive push today
Resolving...
Everything is up-to-date.
[mlbaker@localhost drive]$

If instead I add a directory and push the directory I get the issue.
[mlbaker@localhost drive]$ mkdir tomorrow
[mlbaker@localhost drive]$ date > tomorrow/today
[mlbaker@localhost drive]$ drive push tomorrow
remote path doesn't exist
Resolving...
+ /tomorrow
+ /tomorrow/today
Addition: 2
Proceed with the changes? [Y/n]: y
2 / 2 [============================================================] 100.00 % 2s
[mlbaker@localhost drive]$ drive push tomorrow
Resolving...
M /tomorrow/today
Modification: 1
Proceed with the changes? [Y/n]: y
1 / 1 [============================================================] 100.00 % 1s
[mlbaker@localhost drive]$ drive push tomorrow
Resolving...
Everything is up-to-date.
[mlbaker@localhost drive]$

I see, I think I know what is tripped out. Thanks for the reproducing.

So if I currently have files on Google Drive and my mod times on Drive are not correct, ie they have today's date instead of the actual linux file date which should be 3 months ago, will odeke/drive update all my modification times on remote side to the correct src time if I do a drive push $MY_ROOT_DIR ?

Yes, I tried this on a push for a new subdir in GD and it changed file times for the new files as per the  source.
If I do the same for files that are already present on GD, will it just modify the modified time of the file, or does it upload the full file again?

If I do the same for files that are already present on GD, will it just modify the modified time of the file, or does it upload the full file again?
So far, with the code on master yes it will re-upload the file. On one of my local branches, I am actually working on fixing this since we can save a lot by detecting the specific change and just modifying the specific attribute instead of having to reupload the whole file.
The thing I just noticed is now my source files have updated to newer timestamps (Dec 31, 2014) when ..
Ouch, this is truly unfortunate hopefully this won't happen again.

authors: ikwyl6 mattlbaker odeke-em


text:
update dotaconstants to latest

Someone reported that the items list is outdated, looks like we need to update dotaconstants to the latest version to get the latest item data in the mobile app?
@Proyoyo does this also require a release on the app stores or can we do it remotely?

Yes it requires a release to the app store. I can start working on this and the 7 stars medal tomorrow.

authors: Proyoyo howardchung

repo: odota/mobile


text:
feat: support for logrus and zap loggers

Contains default interface that can be directly used in applications or they can choose to define their own and use the provided logger implementations.

@kushsharma Let's add a readme for a guide around how to use it.

authors: kushsharma ravisuhag

repo: odpf/salt


text:
#2135 Exception in AssetCatalog when searching for csv resources

Signed-off-by: Daniela Otelea daniela-valentina.otelea@ing.com

Hi, Nigel!
In order to understand more about this asset, you use another service: /asset-context/{assetGUID}. This part is not integrated to the UI yet. Also, from this search, not all the properties are displayed in the UI. I will address this problems in another issue, if you agree.

Yes I agree - thanks. This was just the first step to clear up the exceptions... UI dev is still work in progress of course

repo: odpi/egeria


text:
🛑 urbamonde.org is down

In 76ed1a4, urbamonde.org (https://www.urbamonde.org) was down:

HTTP code: 429
Response time: 567 ms

Resolved: urbamonde.org is back up in 613f2b1.

repo: odqo/upptime


text:
Dynamic route at root level

Hello !
I'm wondering why it is not possible to create dynamic route at root level?
Considering this pages folder structure:
pages
├── 404.tsx
├── about.tsx
├── _app.tsx
├── index.tsx
├── [slug]
│   ├── index.tsx
│   └── foo.tsx
└── [slug].tsx

I want to be abble to access a route with given path: /1234 or /1234/foo. But with the current implementation it's not possible.
I checked the core code and figure out that the code at https://github.com/oedotme/generouted/blob/main/src/core.ts#L43...L44 was responsible of the non creation of those routes paths. I have commented those lines and it looks like to work (tested with react-router).
Do you think it is possible to remove those lines safely?

Hey, dynamic routes at the root level are disabled intentionally to not conflict with the preserved pages/404.tsx route.
If it was enabled, then if all the not matching routes will go through the pages/[slug].tsx and the pages/404.tsx will be always ignored.
To understand more, is there a specific case that you'll need /:slug/something instead of /something/:slug?

Hey! Thanks for your answer. It's legit to not allow this.
In our case we are in a micro-frontend context with an iframe communication mechanism. Our top level application (which manage communication with the iframe) works as follow:

it checks the first part of the path to know which application is running. For example /foo/:slug/bar will be detected as foo application.
when this foo app is detected it will communicate to the iframe to load /:slug/bar.

This is the foo app that uses generouted and so doesn't care about /foo. Therefore we don't need a foo folder at root level but a [slug] instead.
At this point and discussing with my team, we will add a redirection in our index.tsx file if we detect a well formatted slug param. We will create a /something/:slug route and as we will receive something like /myAwesomeSlug/bar in our iframe we will check the format of the first part (myAwesomeSlug) and redirect to something/myAwesomeSlug/bar.

Thanks for the explanation! That sounds good!

authors: Jisay oedotme

repo: oedotme/generouted


text:
add serialized information to queryParamsState

Quick attempt at resolving this issue: https://github.com/offirgolan/ember-parachute/issues/41
The use case for us is that we're trying to generate canonical/next/prev links for fastboot rendered pages.  Unfortunately, the new router service in ember doesn't serialize values correctly when used with ember-parachute, so you can't just pass values into the this.get('router').urlFor() method.
Now, we're pulling the queryParamsState value and building an object of changed values and passing that into the urlFor method.

Looks great! Thanks @mazondo

Thanks for this PR @mazondo! 😄

Released with v0.3.6

authors: kiwiupover mazondo offirgolan

repo: offirgolan/ember-parachute

license: mit


text:
storage/swift: env detection causes system error

local                System error
attempt              0
error                failed to config Swift storage backend: Timeout when reading or writing data
index                0
taskID               b8867r2rl6qjhvin3lhg
time                 2017-11-18T08:46:46-08:00
timestamp            2017-11-18T08:46:46.16705505-08:00

I think what's happening is that ApplyEnvironment() is trying to connect to swift, which doesn't exist, and it returns an error which fails the task.

Steps to reproduce?

Have the OS_ variables in your environment. Specifically, OS_AUTH_URL probably needs to point to an inaccessible endpoint (i.e. turn off your vpn). Then just run funnel server run and funnel run 'echo hi'

If there are no OS_ variables in the environment, it works without error.

I get the following with an unaccessible URL:
local                System error
attempt              0
error                failed to config Swift storage backend: Post http://10.96.11.20:5000/v2.0/tokens: dial tcp 10.96.11.20:5000: getsockopt: connection refused
index                0
taskID               b886spfpbjg286raarjg
time                 2017-11-18T09:31:22-08:00
timestamp            2017-11-18T09:31:22.427677412-08:00

This error comes from the Authenticate() call.  Not sure if this is really a bug. Could be chalked up to incorrect configuration.

The bug is that I was using the server with no swift config at all, and not reference to swift in my task.

So it is a side effect of having storage backends turned on by default.  Maybe the storage backends should only open connections during Get and Put calls?  The constructors then would just create the config / auth objects needed to make the connection.

Also providing no swift config currently implies that you are expecting the config to come from the environment.

Ya, I like that idea. Less chance that config is going to mess with a task that doesn't even want that storage backend.

authors: adamstruck buchanae

repo: ohsu-comp-bio/funnel


text:
Output corrected and trimmed fastq file for further analysis

Add the ability to output a corrected fastq file suitable for input into downstream tools.

Unresolved. Closing issues unrelated to debarcer 2

authors: pmkrzyzanowski rjovelin

repo: oicr-gsi/debarcer


text:
Cannot detect an NfcV tag while other Android apps can

Hi,
I am getting a weird behavior with this library.
I am using a tag that is configurable em4425 tag.
Before being configured I can easily detect and scan the tag and interact with it. Then I activate a feature on the tag and I am not getting any response from the app nor in the log ; while I can with any other NFC tool existing on Android and the tag still appears as a Iso15693 tag.
I would like to dig into what is going on, but I am not sure where I should start. How could I access deeper logs from the library to see what is making the library not detect the tag in the first place ?
Any advice appreciated :)
/// ISO 15693 NFC client.
class Iso15693NfcClient implements Iso15693NfcClientInterface {
  Completer _completer = Completer();

  Iso15693TagInstance? _iso15693tagInstance;

  @override
  Future<bool> get isNfcAvailable async =>
      await NfcManager.instance.isAvailable();

  @override
  Future<Iso15693NfcUid> get uid async => await poll(() async {});

  @override
  Future<Iso15693NfcUid> poll(sequence, {Iso15693NfcUid? uid}) async {
    // Check platform
    if (env.platform != Platform.android && env.platform != Platform.iOS) {
      throw const NfcUnavailableReaderException(
          message: 'Platform has to be mobile to poll');
    }
    // Check Nfc availability
    if (await isNfcAvailable == false) {
      throw const NfcUnavailableReaderException(
          message: 'Nfc reader unavailable, check permissions');
    }
    // Init completer session.
    _completer = Completer();
    // Listen for an ISO 15693 NFC tag.
    await NfcManager.instance.startSession(
        pollingOptions: {NfcPollingOption.iso15693},
        onDiscovered: (tag) async {
          log('NFC')
              .fine("NFC tag discovered : ${tag.data.values.toString()}");
          // Check tag validity
          _iso15693tagInstance = Iso15693TagInstance(tag: tag);
          final discoveredUid =
              Iso15693NfcUid.fromUint8List(_iso15693tagInstance!.uid);
          // Compare to uid
          if (uid != null && discoveredUid != uid) {
            throw NfcInvalidUidException(
                message:
                    'Tag discovered ${discoveredUid.uid.toHexString()} is not the exptected one ${uid.uid.toHexString()}');
          }
          // Init user sequence
          await sequence()
              .then((value) => _completer.complete(discoveredUid))
              .catchError((error) async {
            _completer.completeError(error);
            throw NfcCommandFailureException(
                message: 'Command failure with error $error');
          });
        },
        onError: _onError);

    // Return its uid.
    return await _completer.future;
  }

  Future<void> _onError(NfcError error) async {
    log('NFC').severe('NFC error on session : ${error.message}');
    _completer.completeError(error);
  }

  @override
  Future<Iso15693NfcResponse> transceiveCommand(
      Iso15693NfcCommand command) async {
            log('NFC').fine("${command.commandName} : ${command.fullBytes.toHexString()}");
    if (_iso15693tagInstance != null) {
      final fullBytes = await _iso15693tagInstance!.transceiveCommand(command);
      log('NFC').fine("Response : ${fullBytes.toHexString()}");
      return Iso15693NfcResponse(fullBytes: fullBytes);
    } else {
      throw const NfcCommandFailureException(message: 'No tag discovered');
    }
  }

  Future<void> stopPolling() async {
    log('NFC').fine("NFC session stoped");
    await NfcManager.instance.stopSession();
    _iso15693tagInstance = null;
  }
}

/// Generic NFC Manager library tag instance to transceive command
/// the same way between Android and iOS.
class Iso15693TagInstance {
  final NfcTag tag;

  // Provision android or iOS tag instance.
  Iso15693TagInstance({required this.tag}) {
    androidTag = NfcV.from(tag);
    iOStag = Iso15693.from(tag);
    if (androidTag == null && iOStag == null) {
      throw const NfcInvalidUidException(
          message: 'Discovered tag is not an ISO15693 tag.');
    }
  }

  late final NfcV? androidTag;

  late final Iso15693? iOStag;

  /// Transceives command to Android or iOS tag instance depending on platform.
  Future<Uint8List> transceiveCommand(Iso15693NfcCommand command) async {
    if (env.platform == Platform.android) {
      return await androidTag!.transceive(data: command.fullBytes);
    } else if (env.platform == Platform.iOS) {
      return await iOStag!.customCommand(
          requestFlags: command.flags.toIso15693RequestFlags(),
          customCommandCode: command.commandOpcode[0],
          customRequestParameters: command.parameters);
    } else {
      throw const NfcUnavailableReaderException(
          message:
              'NFC is unavailable for platform other than Android and iOS');
    }
  }

  /// Returns uid depending on Android and iOS.
  ///
  /// Android returns uid in LSB-MSB while iOS MSB-LSB.
  Uint8List get uid {
    if (env.platform == Platform.android) {
      return androidTag!.identifier.toReversed();
    } else if (env.platform == Platform.iOS) {
      return iOStag!.identifier;
    } else {
      throw const NfcUnavailableReaderException(
          message:
              'NFC is unavailable for platform other than Android and iOS');
    }
  }
}

Looking at my code, I see that I thought I had removed the polling option but in fact not. It works without it. Which is still weird.

@nicolascrochet7 Could you please suggest a convenient way to contact you regarding EM4425 tags? Thank you!

repo: okadan/flutter-nfc-manager


text:
How to hide breadcrumb on a page without breaking the trail

I have three pages

Home (Don't need breadcrumbs)
Products
Product Details
So, what I'm trying to achieve that to hide breadcrumb on the home page but other pages should have breadcrumb trail with home link.

If you need to hide breadcrums itself on some condition use this:
    <Header>
      { condition ? <Breadcrumbs/> : null }
    </Header>

If you need to hide breadcrums item itself on some condition use this:
    <Page>
      { condition ? <BreadcrumbsItem to='/page' /> : null }
    </Page>

If you mean some else please clarify. Let me know if it helps.

I close now. Feel free to reopen or create new,

Thanks @oklas it worked.

authors: MuneebJS oklas

repo: oklas/react-breadcrumbs-dynamic


text:
ci(publish): explicitely reference docker hub as registry

Fix the docker publication on the Docker Hub, login was done the the registry was missing in the image names.

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: amimart bot-anik


text:
docs: update ingress-controller docs for dual

This PR updates ingress-controller docs with latest changes to
ingress-controller architecture introduced at chart 1.8, which includes
dual ingress-controller deployment.

Should we mention the changes in the default-backend? Now, the settings under ingress-nginx shouldn't be use. Also, we should probably include in the Okteto components section the settings we allow for the default backend configuration
@pchico83 WDYT?

@ifbyol makes sense, but I wouldn't block the release on it. We can create an issue to handle it

Should we mention the changes in the default-backend? Now, the settings under ingress-nginx shouldn't be use. Also, we should probably include in the Okteto components section the settings we allow for the default backend configuration
@pchico83 WDYT?

@ifbyol makes sense, but I wouldn't block the release on it. We can create an issue to handle it

It was done in other PR: https://github.com/okteto/docs/pull/395. Thanks @jpf-okteto !

authors: ifbyol jpf-okteto pchico83

repo: okteto/docs


text:
bones.page.id

This solution looks really good in theory, just trying to test it out, where are you setting and pull all the bones. references from?

For everyone's reference I updated all the bones references to the attached image and everything works except for the REST POST calls, they return a 200 successful message but a comment/reply/edit is never updated in the list.

I had no Idea what pagePhysical was trying to reference, so I just get it to the name name, I'm using web part connections so i'm show all comments logged against that ID rather than a page, and it works great.

Sorry, we should have been more clear about that – bones refers to the "bones.js" utility method available in our SPBones starter template. You can copy this file from that project, here:
https://github.com/oldrivercreative/spbones/blob/master/resources/js/bones.js

No worries at all, really appreviate you sharing this solution, really slick! Really enjoy all the content you've put out on the web and youtube, though wish you website was still up, lots of links and references still point there.
I'll try referencing that bones.js and see if it resolves the successful REST post but nothing showing in the list.

authors: kyleschaeffer warwickofthegh

repo: oldrivercreative/spcomments


text:
Consistency between CL dks/gwd/forgotten four (and maybe more)

The '/cl dagannoth kings' has a custom order where all pets are first, then rings, and then the rest. GWD and DT2 are not like that. They just add the other CL's together in their default order. The DKS CL also shows the KC for every boss but the others only show the combined KC.

So which route would you suggest we take?

It would probably be best to gather your ideas and run a poll on discord to see what the community wants.

So which route would you suggest we take?

DKS don't have their own CL so their version is the real one, my suggestion would be to edit the custom one for GWD and ED2 to match DKS (I am unsure if there are more examples)

authors: TastyPumPum bowiRS nwjgit

repo: oldschoolgg/oldschoolbot


text:
Speed Combat Achievments

Description:

Make speed combat achievements use trip time instead of rng.

Changes:

Create a new check for speed CA that use trip duration.
Only 1 speed CA is currently changed as an example.

Other checks:

[X] I have tested all my changes thoroughly.
In testing I did about 100+ infernos and still couldn't get lower than 90 minutes. Maybe some re-balancing is needed for certain trips before something like this can be utilized properly.

Would suggest marking as draft to prevent unattainable CA completions.

Would suggest marking as draft to prevent unattainable CA completions.

It's obtainable you can check inferno time lb. just suggesting that inferno times should probably be adjusted

Also in it's current state I highly doubt Magna would even consider merging this. If anything I was hoping more for an inferno rebalancing. If we are saying it only takes roughly 15 kc to get a 65 min time then by 15kc we should already be seeing times between 60-70 minutes. This can also be said for alot of things that could use an adjustment to trip times.

After some talks in the dev chat i'm going to close this. I don't see a place for this in the bot right now.

authors: LuxrayElite nwjgit


text:
Error on install

This is on node v4.2.2
npm install shacrypt

shacrypt@0.1.0 install E:\development\nodejs\node_modules\shacrypt
node-gyp rebuild

E:\development\nodejs\node_modules\shacrypt>if not defined npm_config_node_gyp (node "E:\development\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
sha256crypt.c
sha512crypt.c
win_delay_load_hook.c
..\src\sha256crypt.c(7): fatal error C1083: Cannot open include file: 'endian.h': No such file or directory [E:\develop
ment\nodejs\node_modules\shacrypt\build\shacrypt.vcxproj]
..\src\sha512crypt.c(7): fatal error C1083: Cannot open include file: 'endian.h': No such file or directory [E:\develop
ment\nodejs\node_modules\shacrypt\build\shacrypt.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (E:\development\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "E:\development\nodejs\node.exe" "E:\development\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\development\nodejs\node_modules\shacrypt
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "E:\development\nodejs\node.exe" "E:\development\nodejs\node_modules\npm\bin\npm-cli.js" "install" "shacrypt"
npm ERR! node v4.2.2
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! shacrypt@0.1.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the shacrypt@0.1.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the shacrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs shacrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls shacrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     E:\development\nodejs\npm-debug.log

Unfortunately I've never tried it with Windows and I don't have such ability at the moment

I have created a fork that builds under Windows and supports async callbacks, so the computation takes place in the libuv thread pool and not in the event loop:
https://github.com/vlasky/shacrypt

authors: oleksiyk surrealer vlasky

repo: oleksiyk/shacrypt


text:
Deprecation on Date Histogram interval

Running the TestAggsIntegrationSumBucket test with trace logging enabled yields:
Warning: 299 Elasticsearch-7.3.2-1c1faf1 "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future."

Date histogram deprecated the interval field and replaced it with fixed_interval and calendar_interval instead. Read the details here.
We kept backwards compatibility in date histogram, but couldn't do so with composite aggregation. The latter will fail to compile, and you must decide whether you want a fixed interval or a calendar interval now.

repo: olivere/elastic


text:
Feature request: Additional Console Outputs for more efficient logging and debugging

Heya, i have the common issue that for example when using LLAVA 34b on a small-ish GPU with CPU offloading it sometimes gets stuck.
I can't really trace the issue anywhere, is it the BLAST Batch Processing, is it a OOM error, what is it?
key clip.vision.image_grid_pinpoints not found in file
key clip.vision.mm_patch_merge_type not found in file
key clip.vision.image_crop_resolution not found in file

Is the most i can get out of a log but that's about it... no metrics, no nothing :/

It's possible this might be an OOM problem...
If you're still hitting this, please make sure to upgrade to the latest version, and share a bit more details about your setup.  What is your GPU size?  Server logs may help diagnose it as well.

authors: LumiWasTaken dhiltgen

repo: ollama/ollama


text:
CohereForAI/c4ai-command-r-v01

What model would you like?
https://huggingface.co/CohereForAI/c4ai-command-r-v01

Closing for #3100

authors: jmorganca matteocargnelutti


text:
🛑 MediaNet is down

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

HTTP code: 0
Response time: 0 ms

Resolved: MediaNet is back up in 189acd0.

repo: olmloa/upptime


text:
Facebook url versions should be configurable

The facebook url [1] version should be configurable since most users will eventually want to upgrade:
class FacebookOAuth2(BaseOAuth2):
    """Facebook OAuth2 authentication backend"""
    AUTHORIZATION_URL = 'https://www.facebook.com/v2.3/dialog/oauth'
    ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.3/oauth/access_token'
    REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.3/{uid}/permissions'
    USER_DATA_URL = 'https://graph.facebook.com/v2.3/me'

Should be something like:
fb_api_version = settings.SOCIAL_AUTH_FACEBOOK_API_VERSION

class FacebookOAuth2(BaseOAuth2):
    """Facebook OAuth2 authentication backend"""
    AUTHORIZATION_URL = 'https://www.facebook.com/{0}/dialog/oauth'.format(fb_api_version)
    ACCESS_TOKEN_URL = 'https://graph.facebook.com/{0}/oauth/access_token'.format(fb_api_version)
    REVOKE_TOKEN_URL = 'https://graph.facebook.com/{0}/{uid}/permissions'.format(fb_api_version)
    USER_DATA_URL = 'https://graph.facebook.com/{0}/me'.format(fb_api_version)

I guess the problem here is that the code handling of the api responses might need to change as well though.
UPDATE: the comments below were related to changing my email in facebook, then trying to login via facebook which was linked to another account.  The error I was seeing was my fault.
Also, I came across an issues where a single facebook user can have multiple facebook uids if auth is handled across multiple apps:

http://stackoverflow.com/questions/28181769/multiple-facebook-ids-for-the-same-user
https://developers.facebook.com/docs/graph-api/reference/v2.6/user/ids_for_business

IE, a facebook UID is not always the same.  I ran into an issue where my fb user id that was stored was different when I released a mobile app so I could no longer authenticate my facebook user.  I was unaware that a single facebook user could have multiple facebook user ids until today.
[1] https://github.com/omab/python-social-auth/blob/master/social/backends/facebook.py

+1

I've added support for it in social-core, and documented in social-docs.

authors: c-bata omab troygrosfield

repo: omab/python-social-auth


text:
🛑 OME Q&A is down

In 12f539a, OME Q&A (http://qa.openmicroscopy.org.uk/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OME Q&A is back up in e97b8da after 15 minutes.

repo: ome/upptime


text:
Implement User Account Creation Functionality

Save user login data and le

the feature has been released


text:
DAO Voting - Votes not added

I wanted to test the voting process, but I ran into some errors. I voted on proposal 2 and my votes where never added by the DAO. Despite the message: Vote recorded, thank you. I think I did everything right, this is what I did:
For your information all my boba tokens are staked in the 5% fixed saving account, so I voted with my xBoba only.

I delegated my xBoba votes to my own address (confirmation with metamask)
After my votes appeared in 'Total Votes', I pressed 'vote' on proposal 2 and pressed 'vote no'. After paying the fee, the DAO confirmed my vote with: Vote recorded, thank you. But the votes where never added.

Thanks - will look! When you say the votes were never added, you mean that the displayed number of 'no' votes on the gateway did not update immediately to reflect your additional no votes? So if you had 100 xBOBA, and you clicked "No", your expectation is that the "No" value will immediately increase by +100?

Thanks. After I delegated my xBoba to my own address, it displayed my total amount of votes. So let say I had 100 xBoba, I had now 100 total votes. When I decided to click "No" I did not got any visual feedback on how many votes I was going to vote "No" with. But I assumed it was the total amount of xBoba I had delegated. It directed me directly to metamask to sign the 'cast vote'. When the transaction was confirmed, the DAO showed the message: Vote recorded, thank you. And my expectation was indeed that the value would increase with +100xboba, but this didn't happen. So I asked Shaners from the team, and he said it could take a few minutes, before the votes are added. But it never did, and 1 day later the proposal voting window expired without my votes being included. I know that my votes where not included, because I voted with a significant amount of xBoba.

My first thought was that I forgot to enter the amount of votes I wanted to cast. So maybe I did vote succesful on "no" but with 0 votes. I don't know if that's even possible, because I assume your voting with all of your delegated votes.

Second thought was that I did not delegate my xBoba to my own address. But the blockexplorer confirmed that my votes where delegated correctly. And also broadcasting my vote.

If you want the blockexplorer transaction data for the delegating and casting vote, let me know.

authors: CAPtheorem MitchellUnknown


text:
ORMAdapter and single_table_inheritance

Hi, i'm trying datatables-bundle and maybe i stumbled upon an issue.
I'm using doctrine single_table inheritance to implement this kind of behaviour:
BusinessPartner <-single_table inheritance
With

Person
Organization
Vendor

are the three extending classes (as a company buying from vendors and selling to companies and privates as customers)
The bundle seems to have a strange behaviour customizing the criteria for the ORM adapter.
->createAdapter(ORMAdapter::class, [  'entity' => BusinessPartner::class, ])
works with no issues. Pagination, ordering and global search too are working.
But as i try to implement the logic "get me all customers", which works in a normal doctrine query:
->createAdapter(ORMAdapter::class, [
    'entity' => BusinessPartner::class,
    'criteria' => [
        function (QueryBuilder $builder) use ($entityManager){
            $builder->select('c');
            $builder->from(BusinessPartner::class,'c');
            $builder->andWhere(
                ('c INSTANCE OF :organizationClass OR c INSTANCE OF :personClass')
            )
            ->setParameter('organizationClass',  $entityManager->getClassMetadata(Organization::class))
            ->setParameter('personClass',  $entityManager->getClassMetadata(Person::class));
        },
        new SearchCriteriaProvider(),
    ],
])

the table is displayed but pagination and search are completely scrambled.
Search results seems random(inputting data in the search field filters something but not what is typed) and debugging the DataTables pagination gives me:
"Showing 1 to 20 of 252,500 entries (filtered from 505 total entries)" (total database entries in the BusinessPartner table is 505...so organization+person must be a subset of that number).
Am i missing something in the configuration, or i stumbled upon an issue for a usage the bundle was never intented?

Have you tried to remove $builder->select(... and $builder->from(... ? And have you tried to set Parameter with strings Person::class and Organization::class?

@giovannialbero1992
yes.
Removing the select,from clauses throws an error about not finding an alias for the querybuilder 'c'.
Removing the getClassMetadata with the INSTANCE OF clauses causes no matches in the query.
Removing the SearchCriteriaProvider has no effect on the problem (but i think is needed if the global search has to work with normal parameters plus the additional "customer-where-clause"...right?).
I also tried with the alternative doctrine syntax
$qb->andWhere($qb->expr()->isInstanceOf('f', Person::class));
with same results

I "kinda" solved the problem overriding the "query" parameter of the table instantiation...as far as i understand it, this will probably create problems with global and column searching

Basically you're rewiring the whole query mechanism. The criteria should contain the criteria prt of the query. In your case:
   $builder->andWhere(
                ('businessPartner INSTANCE OF :organizationClass OR businessPartner  INSTANCE OF :personClass')
            )
            ->setParameter('organizationClass',  $entityManager->getClassMetadata(Organization::class))
            ->setParameter('personClass',  $entityManager->getClassMetadata(Person::class));

repo: omines/datatables-bundle


text:
LANTERN-795: Resolved the "Endpoints: null" contents of TruBridge_Inc_EndpointSources.json

Pull requests into this repository require the following checks to be completed by the submitter and reviewers.
Submitter:

[x] Administrative tasks are complete.

This pull request describes why these changes were made.
The JIRA ticket links to this PR.
The JIRA ticket for this PR is: LANTERN-795

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

[x] Code review has been performed.

Code diff has been done and checked to ensure only expected code is being committed.
A linter for the language has been run.

Primary Reviewer:

[ ] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[ ] Code review has been performed.

Code is maintainable, reusable, efficient, and correct.
Code accomplishes the tasks purpose.
Code follows style guidance appropriate for the language, including passing linter checks.
Code is well commented (which does not mean verbosely commented).

[ ] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

Merger:
Prior to merging, ensure that all checks have been completed. Delete the branch after the merge
is complete.

@rishi-salunkhe-mettle Reviewed and Approved, please assign within Mettles for Github PR Reviewer approval.

repo: onc-healthit/lantern-back-end


text:
Inferno does not check if the attachment is downloadable (FI-1373)

Subject of the issue
Clinical Notes Guidance requires that
Argonaut Clinical Note Server SHALL expose these reports through both
DiagnosticReport and DocumentReference by representing the same attachment url
using the corresponding elements listed below:

    DocumentReference.content.attachment.url
    DiagnosticReport.presentedForm.url

Currently, Inferno compares url from both DocumentReference and DiagnosticReport but not checking if those urls are downloadable.
This issue is migrated from Inferno-program GitHub Issue https://github.com/onc-healthit/inferno-program/issues/374

Closed by mistake


text:
map data

same sort of discussion as #9 is needed.

where/how do we store it
how to release
how to rollback (most important new feature)
needs a commit history
ideally inexperienced committers need to have changes reviewed to prevent the currently common breaking changes

Is there a good gem for graphs and graph algorithms in Ruby? I would strongly suggest using a third-party library for graph operations, and see if they support some file format which is human readable and can store everything we need.
I'm not 100% certain what all the complexities about the graph of Gemstone are though. Is the game world a multigraph, or does it require a full pseudograph representation? I know of at least one point where currently the graph stored in lich fails (the ID's for both instances of the Red Forest are identical, and thus there are no edges for leaving the area). I'm not sure if that's an underlying limitation though

There are a lot of edge cases, but generally it is a simple graph. The largest areas of edge cases are the Confluence and Minotaurs.  These areas are randomized and shift. I'm not real familiar with the Red Forest.  The Rift is also a special case.

authors: ondreian robojase


text:
Not working

I have a simple setup of this gem in a demo application:
# Gemfile

gem 'sidekiq'
gem 'sidekiq-cron'

# config/initializers/sidekiq.rb

Sidekiq::Cron::Job.load_from_hash YAML.load_file('config/schedule.yml') if Sidekiq.server?

# config/schedule.yml

CronWorker:
  cron: "* * * * *"

# app/jobs/cron_worker.rb

class CronWorker
  include Sidekiq::Worker

  def perform(*args)
    # Do something
    Rails.logger.info "Cron works! #{args.inspect}"
  end
end

The text "Cron works!" never appears in the logs, so the job is never processed...
Note that Sidekiq itself is processing the jobs properly and logs appear for the normal jobs (only cron jobs  don't work).
I don't see anything related in the logs, so I really don't know how to debug this. However you should be able to reproduce the issue using the code above.

After a lot of investigation, I have found that the job is processed properly if I use the following initializer (instead of the initializer reported in the original post):
# config/initializers/sidekiq.rb

Sidekiq::Cron::Job.create(name: 'CronWorker every min', cron: '* * * * *', class: 'CronWorker') if Sidekiq.server?

Basically Sidekiq::Cron::Job.load_from_hash fails silently without any errors or logs and it does not schedule the job.
Also note that adding Sidekiq::Cron::Job.create at the bottom of app/jobs/cron_worker.rb does not work: indeed that file is lazy loaded and if the job is not called from the outside, the file is never processed (you can even enter syntax errors and you won't get any logs / errors).

It seems that Sidekiq::Cron::Job.load_from_hash works if  I use the following:
# config/schedule.yml

my_first_job:
  cron: "* * * * *"
  class: "CronWorker"

I guess that this gem does not infer the class from the job name, and thus it was just ignoring the job because there was no class key...  In any case this is not correct and very dangerous (cron jobs are silently discarded): the gem should at least throw an error of the YAML config is not valid.
Related: https://github.com/ondrejbartas/sidekiq-cron/issues/243 (in my case the YAML is syntactically valid)

Keep open

Keep open

This stale bot is really annoying.... wouldn't it be better to actually fix issues or close them manually in a very small repo like this? Or maybe just increase the "stale" timeout to something more than 2 months?

Hey @collimarco 👋🏼, not really sure what's needed to be fixed here... Could you please try with latest version or prepare a reproducible script (a failing test or a demo app)?

@markets Thanks for the reply. The reproducible steps are described in the original post.

So your proposal, as per your last comment (https://github.com/ondrejbartas/sidekiq-cron/issues/251#issuecomment-502394626) is to raise for invalid arguments right?
We have this section describing the job arguments: https://github.com/ondrejbartas/sidekiq-cron#getting-started, under Job properties. But yeah, I agree, we should raise or warn for invalid arguments.

authors: collimarco markets

repo: ondrejbartas/sidekiq-cron


text:
More often than one minute?

Is there a way to run scheduled job every 30 seconds?

Is there a way to run it every 10 seconds?

*/30 * * * * * runs every 30 seconds, the same for */10 (notice number of *)
see https://github.com/jmettraux/rufus-scheduler/blob/master/lib/rufus/scheduler/cronline.rb#L67-L79

Yes it can run every 30 seconds, but you need to set Sidekiq.poll_interval=10 and smaller (do not go under 1).
Sidekiq uses separate thread for taking jobs from scheduled queue and putting them into normal queues. Sidekiq Cron is using same interval fo checking if job should be enqueued by comparing cron line and current time

@ondrejbartas please add this to the readme? Tekin has a PR for it here https://github.com/ondrejbartas/sidekiq-cron/pull/240

Those who like me, google how to run sidekiq cron sub minute order: A cron yaml like following should still work. Notice there are 6 stars, instead of 5, like the comment above said.
some_queue:
  class: SomeWorker
  cron: '*/10 * * * * * America/Los_Angeles'
  args:
    foo: 100

BUT! Sidekiq.poll_interval = 10 is long gone (by v3.4.0, which was in 2015)
So instead, you should do as follows. This is in config/initializers/sidekiq.rb in a typical Rails project. (Link to the source)
Sidekiq.configure_server do |config|
  config.average_scheduled_poll_interval = 5
end

authors: beatak kaka-ruto ondrejbartas seban shaimr tmeinlschmidt


text:
[website] life after chatgpt

incentives around PBCs and companies: a company will own it.
but... most data problems are small problems.
AND most small problems have metadata.
cc @neurosam

IRR for pension fund or optical nerve blastoma. a hand-wavey solutions aren't really that hard.
rock solid prediction: hand wavey solutions fine for most of life, but when it really matters you'll need a statistics prompt.


text:
Support for AES-128-GCM decryption

We are trying to use ruby-saml to implement a Service Provider (SP) that talks to a Shibboleth Identity Provider (IDP). The IDP returns an encrypted assertion using the AES-128-GCM algorithm. ruby-saml is failing to decrypt the assertion and returns the following error message:

NoMethodError (undefined method `[]' for nil:NilClass)

Reading the code it appears that CBC mode algoritms such as DES-EDE3-CBC, AES-128-CBC, AES-192-CBC and AES-256-CBC are suported by ruby-saml but the AES-GCM modes are not.
Shibboleth recently changed its encryption defaults to favor AES-GCM for XML encryption. Considering that Shibboleth is widely used, It is likely that more and more Service Providers will be facing this issue.
Further investigations show that the OpenSSL library used by this gem already supports CGM modes.
 irb(main):065:0> OpenSSL::Cipher.ciphers.include?("aes-128-gcm")
=> true

My knowledge in encryption/decryption algorithms is limited but I will gladly provide more information to see this support added.

Here is the method in ruby-saml that does the decryption of the encrypted SAML message:
https://github.com/onelogin/ruby-saml/blob/7423f03618c0f78f072d31132375cb4e2d89b282/lib/onelogin/ruby-saml/utils.rb#L250-L273
Here is how you can modify that to support AES-128-GCM, AES-192-GCM and AES-256-GCM:
OneLogin::RubySaml::Utils.class_eval do
  def self.retrieve_plaintext(cipher_text, symmetric_key, algorithm)
    case algorithm
      when 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc' then cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').decrypt
      when 'http://www.w3.org/2001/04/xmlenc#aes128-cbc' then cipher = OpenSSL::Cipher.new('AES-128-CBC').decrypt
      when 'http://www.w3.org/2001/04/xmlenc#aes192-cbc' then cipher = OpenSSL::Cipher.new('AES-192-CBC').decrypt
      when 'http://www.w3.org/2001/04/xmlenc#aes256-cbc' then cipher = OpenSSL::Cipher.new('AES-256-CBC').decrypt
      when 'http://www.w3.org/2001/04/xmlenc#rsa-1_5' then rsa = symmetric_key
      # ADDED =>
      when 'http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p' then oaep = symmetric_key
      when 'http://www.w3.org/2009/xmlenc11#aes128-gcm' then auth_cipher = OpenSSL::Cipher.new('AES-128-GCM').decrypt
      when 'http://www.w3.org/2009/xmlenc11#aes192-gcm' then auth_cipher = OpenSSL::Cipher.new('AES-192-GCM').decrypt
      when 'http://www.w3.org/2009/xmlenc11#aes256-gcm' then auth_cipher = OpenSSL::Cipher.new('AES-256-GCM').decrypt
      # <= ADDED
    end

    if cipher
      iv_len = cipher.iv_len
      data = cipher_text[iv_len..-1]
      cipher.padding, cipher.key, cipher.iv = 0, symmetric_key, cipher_text[0..iv_len-1]
      assertion_plaintext = cipher.update(data)
      assertion_plaintext << cipher.final
    # ADDED =>
    elsif auth_cipher
      iv_len, text_len, tag_len = auth_cipher.iv_len, cipher_text.length, 16
      data = cipher_text[iv_len..text_len-1-tag_len]
      auth_cipher.padding = 0
      auth_cipher.key = symmetric_key
      auth_cipher.iv = cipher_text[0..iv_len-1]
      auth_cipher.auth_data = ''
      auth_cipher.auth_tag = cipher_text[text_len-tag_len..-1]
      assertion_plaintext = auth_cipher.update(data)
      assertion_plaintext << auth_cipher.final
    # <= ADDED
    elsif rsa
      rsa.private_decrypt(cipher_text)
    elsif oaep
      oaep.private_decrypt(cipher_text, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING)
    else
      cipher_text
    end
  end
end

There is a difference with the GCM ciphres as with those, there is an extra "authentication tag" transferred with the ciphertext as the 16 last bytes of that text. This is explained here:
https://tools.ietf.org/html/rfc5116#section-5.1

An authentication tag with a length of 16 octets (128
bits) is used.  The AEAD_AES_128_GCM ciphertext is formed by
appending the authentication tag provided as an output to the GCM
encryption operation to the ciphertext that is output by that
operation.

Therefore, you need to extract the 16 last bytes of the message and define it as the cipher's auth_tag.

Hi, we also stumbled upon this today. Is there any progress with the issue? We would be happy to help by contributing with a fix to this. In the meantime, we can use a fork of the library but would like to see this supported by the upstream.

Hi, I also faced the issue with aes-128-gcm today. Any updates?

PR with unitest is welcome

Hi, just an update that I started working on this. Hopefully I'll get the PR for review early next week

Nice, thanks!

Hi @pitbulk the changes are implemented here https://github.com/onelogin/ruby-saml/pull/557

Merged on 1.12 branch

authors: ahukkanen flyingolivier pitbulk sergeyki silppuri

repo: onelogin/ruby-saml


text:
Support for standard in RTCPeerConnection.addIceCandidate

Similar to https://github.com/oney/react-native-webrtc/pull/524 it probably makes sense to support null | undefined | RTCIceCandidateInit dictionary in RTCPeerConnection.addIceCandidate as some libraries are not passing RTCIceCandidate but rather RTCIceCandidateInit structure as a parameter value
Expected behavior
pc.addIceCandidate(null) or pc.addIceCandidate({ candidate, sdpMid, sdpMLineIndex }) with correct values should result into resolved promise
Observed behavior
rejected promise due to undefined candidate or candidate.toJSON in https://github.com/oney/react-native-webrtc/blob/5ea877734facf0857febe673f6cddfc6b0c3f9ec/RTCPeerConnection.js#L189
Steps to reproduce the problem
pass null | undefined | object conforming to RTCIceCandidateInit structure (one without toJSON method)
Platform information
any

Plugin version:
1.69.0 and older

Also (this probably should be filed as a separate issue), at least in Android implementation  sdpMLineIndex can not be null while it's actually valid to have it as null along with sdpMid for end-of-candidates indication. This is due to the following call, which throws exception: https://github.com/oney/react-native-webrtc/blob/5ea877734facf0857febe673f6cddfc6b0c3f9ec/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java#L855

Sounds good. Are you up for writing a PR?

authors: arudnev saghul

repo: oney/react-native-webrtc


text:
PKG -- [fcl]  fix block height issue in events subcriber

@JeffreyDoyle
#995

@hotrungnhan Would you be able to add a change set file for this?

@justinbarry ok done

Hi @hotrungnhan , we've reviewed and are going to merge your contribution! We sincerely appreciate your time and effort to improving FCL. Happy building!

authors: JeffreyDoyle hotrungnhan justinbarry

repo: onflow/fcl-js


text:
Implement file entity

Describe the feature few words
Change the implementation of contracts, transaction templates, and script templates to be a file.
What will be the end result of this change?
The end result of this change will enable the front end and backend to treat all user code as a file rather than separate entities. The result of this change will be to have new models and graphql schema defined for the following:

Refactor accounts to not include code
Refactor contracts, script templates, and transaction templates into files; move deployed code to a model that will hold contract code
The project can be refactored to not include accounts at all, as they are always sequential that can just become a counter on the project model

API will need to be added to include:

Create a new file
Update file name
Delete file

Is there any previous work that needs to be completed before making this change?
No previous work is required.
Which components will this change affect?
This change will effect all API components, including the API itself as all functions will need to be re-implemented with the new models.
This change will effect the following components:

Contract model
Transaction template model
Script template model
GraphQL Schema

Other remarks

Plan so far:
Update Models:

Add model for a File struct and remove ScriptTemplates and TransactionTemplates
Add model for ContractDeployment struct
ScriptExecution, TransactionExecution, and ContractDeployment structs will have a File struct (instead of duplicated info)

Update GraphQL Schema:

Update Project to contain contractFiles, transactionFiles, scriptFiles all of type File and include list of ContractDeployments

repo: onflow/flow-playground-api


text:
Expose setSourceId in FeatureCollector [#377]

To aid in setting OSM IDs in #377

ptal

repo: onthegomap/planetiler


text:
Support date and datetime operators

Taken from XPath. Likely to be included in a future version of SPARQL.
Suggested by @namedgraph (https://twitter.com/namedgraph/status/1473246068364169221)
See for instance https://www.w3.org/TR/xquery-operators/#func-subtract-dates.

Dydra supports this. Jena seems to support as well.

I am missing a function to convert xsd:datetime to xsd:date. According to my understanding, this is not explicitly defined in SPARQL 1.1.
In this section: https://www.w3.org/TR/sparql11-query/#FunctionMapping, only the following types are specified:
bool = [xsd:boolean](http://www.w3.org/TR/xmlschema-2/#boolean)
dbl = [xsd:double](http://www.w3.org/TR/xmlschema-2/#double)
flt = [xsd:float](http://www.w3.org/TR/xmlschema-2/#float)
dec = [xsd:decimal](http://www.w3.org/TR/xmlschema-2/#decimal)
int = [xsd:integer](http://www.w3.org/TR/xmlschema-2/#integer)
dT = [xsd:dateTime](http://www.w3.org/TR/xmlschema-2/#dateTime)
str = [xsd:string](http://www.w3.org/TR/xmlschema-2/#string)

But I see no reason to not support such a conversion, E.g.
xsd:date('2146-07-07T07:05:00.000000'^^xsd:datetime) =  '2146-07-07'^^xsd:date
@alpano-unibz can you look into this?

This conversion seems reasonable, as it specified in XPath (https://www.w3.org/TR/xpath-functions/#casting-to-datetimes).
In general, we still need to support the casting functions listing in SPARQL 1.1 (https://ontop-vkg.org/guide/compliance.html#sparql-1-1).

Is there a workaround or alternative to casting xsd:dateTime() for testing equality in a filter? When xsd:dateTime() is included in a SPARQL query Ontop throws an Exception.
I would like to have a filter like:
eq(?dbtime, xsd:dateTime("2023-05-25T00:00:00.0Z")) or
lt(?dbtime, xsd:dateTime(?dbstring_time))
Would this work eq(?dbtime, "2023-05-25T00:00:00.0Z^^xsd:dateTime")?

Hi @thomasjtaylor ,
FILTER(?dbtime = "2023-05-25T00:00:00^^xsd:dateTime")
should work via the FILTER operator which supports both xsd:dateTime and xsd:date. You might need some variation of the second argument, depending on whether and with which degree of precision seconds are specified, or if timezone is included in your data in ?dbtime.
Moreover, PR #630  introduced xsd cast functions which are available in the latest version5 branch and the upcoming release. However, there are caveats for xsd:dateTime due to how strict several SQL dialects are with datetime pattern checks, making it impossible to handle exhaustively all possible datetime casts. If you still encounter an issue with xsd:dateTime (in case you use it with FILTER) even with the latest branch (or the docker snapshot image) and the issue is not relevant to one of the dialects with limited support mentioned in the PR, please let us know and open an issue so we can review it.

authors: apano-on bcogrel ghxiao namedgraph thomasjtaylor

repo: ontop/ontop


text:
🛑 Pagure.io is down

In 4b470bd, Pagure.io (https://pagure.io/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pagure.io is back up in 100f32d.

repo: onuralpszr/uptime


text:
how i can change font sizes?

Hi how i can set font size? i need to change main menu font size plus the font itself. how i do that?

HI @agaitan026, the font size of the menu looks like it's the default 16px. If you want to change it, it's in src/components/common/HeaderWidget.tsx. You can update the font there a few different ways, like with inline CSS or with the Tailwind classes.
The website font is in app/layout.tsx. You can see the Inter font is imported on line 10 (as CustomFont) and then referenced on line 13 and then line 29 when it's added as a property of the  element. The reference for importing Google fonts in Next.js is here: https://nextjs.org/docs/pages/building-your-application/optimizing/fonts which might help

repo: onwidget/tailnext


text:
How to disable insert chat history after scan qr?

the size of chat data is too large

@ookamiiixd where can we disable this?

authors: luispimenta rahmat-why

repo: ookamiiixd/baileys-api


text:
check in gozk code into vendor/

No function change.
Check in gozk code instead of using "go get"

I think it would be good to track libraries with git submodules.

Unfortunately, gozk is hosted on launchpad, and is using Bazaar instead of git.
We really should try using gom instead of submodules; that gives us the version tracking we really want, without having to clone the entire repo (which can be annoyingly slow).  Plus it works with non-git libraries.  (I'm not against gpm/godeps/other package managers; gom just looks nice and similar to Bundler, which we've used extensively with Ruby at Ooyala).

I agree. check in code is probably the worst way to introduce dependencies. git submodule, when applicable, is not champion of this field either.
I am willing to give gom a try; but may i have this pull request approved first?

It seems wrong to check in a giant blob of code that we expect to remove; it bloats the git history forever for no good reason.  If you're going to try using gom, why not wait to merge this until you see if that works better?

Closing this PR as it seems irrelevant after moving to gom with this pull request.

authors: budhrg edanaher ghao-ooyala

repo: ooyala/atlantis-router


text:
ct_bypass failed to get slice for arm64e

Hi everyone!
I compiled ct_bypass for arm64e, but when i'm trying to bypass it prints:
CoreTrust bypass eta s0n!!
Found 1 MachO slice.
File size 0x2131e0 bytes, MachO slice count 1.
Error: failed to find a valid, preferred macho.
Error: failed to extract preferred slice!

It checks cpusubtype as 0x80000002 and cannot find slice.
I checked macho with otool and it prints:
ct_bypass_arm64e:
Mach header
      magic  cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
 0xfeedfacf 16777228          2  0x80           2    20       1968 0x00200085

Why close this issues? I guess it's still happen?

Why close this issues? I guess it's still happen?

Update: Really fixed in https://github.com/opa3

34/ChOma/commit/5d923d0fb742cca72dfcfcc820d1a1d55edcd67a.

authors: Halo-Michael Toilettrauma


text:
Order of assets in completion handler

Can you let me know how the assets are being sorted when displayed in the completion handler? The image picker displays my images in date descending order but after I've picked them they come out in a different order which I can't quite work out (doesn't appear to be date ascending or descending). Ideally I'd like a way to specify image order (i.e. first image selected is first, second image selected is second, etc).
Thanks!

Which completion handler are you using? This one presentOpalImagePickerController(_:animated:select:cancel:)?

Yup, presentOpalImagePickerController(_:animated:select:cancel:)

I am using the UICollectionView indexPathsForSelectedItems to determine the ordering of the PHAsset objects. I will look into how this can be fixed.

Ah, that would explain it. indexPathsForSelectedItems is a bit weird with sort order. In previous apps that I've written that run into this problem, I've had to maintain selection state separately (i.e. sending an array across with the selected indexes and then sorting the results based on that).

Fixed. See latest release. Now, the ordering is based on the order that the selections are made.

Wonderful - thanks!

authors: bendodson opalorange

repo: opalorange/OpalImagePicker


text:
Sub Folder Extraction bug fixed

Fixed the bug where in windows the subfolder extraction wouldn't work and the entire path will be taken for the subfolder.

Before:
After

@Advaith3600 tagged a new release v1.2.7, thank you so much for the fix! 💪

repo: opcodesio/log-viewer


text:
[Bug] Benchmarking script failing to capture logs in EKS

I am using this script (https://github.com/opea-project/GenAIEval/tree/main/evals/benchmark) to capture data for chatqna. It works on baremetal but failing with the following error on EKS.
Exception: Tried to stop User in an unexpected state: stopping. This should never happen.

2024-11-27T00:39:12Z <Greenlet at 0x7fb4215eac20: <bound method User.stop of <aistress.AiStressUser object at 0x7fb428353610>>(force=False)> failed with Exception

[]

[]

[]

Exception when retrieving ConfigMap: (404)

Reason: Not Found

HTTP response headers: HTTPHeaderDict({'Audit-Id': 'bc671b52-6979-4a63-a49b-f62d27d59f6d', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '4916798f-ba14-43f8-a168-6ef5d36d86e2', 'X-Kubernetes-Pf-Prioritylevel-Uid': '22c70de0-7569-474e-b81b-bf3e48a02906', 'Date': 'Wed, 27 Nov 2024 00:39:54 GMT', 'Content-Length': '208'})

HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"configmaps \"kubelet-config\" not found","reason":"NotFound","details":{"name":"kubelet-config","kind":"configmaps"},"code":404}

You don't have kubelet-config configmap in EKS cluster. The benchmark script needs to handle that case and not to fail as it is doing now.

authors: poussa srinarayan-srikanthan

repo: opea-project/GenAIEval


text:
[Bug] 2 examples failed with aiohttp.client_exceptions.ContentTypeError in nightly test

Priority
P1-Stopper
OS type
Ubuntu
Hardware type
Gaudi2
Installation method

[ ] Pull docker images from hub.docker.com
[X] Build docker images from source

Deploy method

[X] Docker compose
[ ] Docker
[ ] Kubernetes
[ ] Helm

Running nodes
Single Node
What's the version?
main branch
Description
SearchQnA and DocIndexRetriever failed with aiohttp.client_exceptions.ContentTypeError: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://100.83.111.229:3002/v1/embeddings'.
https://github.com/opea-project/GenAIExamples/actions/runs/12375314883/job/34569280410#step:4:1508
https://github.com/opea-project/GenAIExamples/actions/runs/12375314883/job/34569279068#step:4:485
This issue may involved by https://github.com/opea-project/GenAIComps/pull/979.
Reproduce steps
Run CI test scripts.
Raw log
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.11/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 174, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 172, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/retrieval_tool.py", line 113, in handle_request
    result_dict, runtime_graph = await self.megaservice.schedule(initial_inputs={"text": query})
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/GenAIComps/comps/cores/mega/orchestrator.py", line 106, in schedule
    response, node = await done_task
                     ^^^^^^^^^^^^^^^
  File "/home/user/GenAIComps/comps/cores/mega/orchestrator.py", line 267, in execute
    data = await response.json()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1277, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='http://100.83.111.229:6000/v1/embeddings'
Error: Process completed with exit code 1.

Hi @chensuyue , could you please help check if we can close this?

Please also merge this https://github.com/opea-project/GenAIExamples/pull/1272, thanks.

authors: Spycsh chensuyue joshuayao

repo: opea-project/GenAIExamples


text:
Add DUPLICATE status count to the list list page and as a filter option on the list detail page

NOTE The duplicate count was added to the serializer in #2044. If that PR has not yet been merged, start your work from the associated branch.
Duplicate filtering was added in #2032
The PR for this feature should be connected to #2021 as it is continued work

 on the same feature

@jwalgran, @obrienad, the list status page is still not displaying this duplicate column - is this expected at this point?

OK, thanks, they weren't showing up on Friday (when the above screen shot is from) but I see the updated columns now.

authors: jwalgran mariel-oar


text:
[WIP]init the alerting rules for *KS.

ref: https://github.com/open-cluster-management/backlog/issues/15086
Signed-off-by: morvencao lcao@redhat.com

closing this in favor of https://github.com/open-cluster-management/multicluster-observability-operator/pull/718


text:
Use the cloud-prepare AWS client interface

Signed-off-by: Stephen Kitt skitt@redhat.com

/cc @tpantelis


text:
[Feature] 请问使用vllm评测时怎么实现类似HF多卡数据并行？

描述该功能
我在评测时的模型type 为vllm，参数如下：

但是显卡占用只使用了一张卡来评测任务

我想让任务划分为几份分别在8张卡上评测，这种功能可以添加吗？还是说可以实现，麻烦解答一下。非常感激！
类似我如果设定为模型type为HF的话，会自动达到这种效果。

是否希望自己实现该功能？

[ ] 我希望自己来实现这一功能，并向 OpenCompass 贡献代码！

like above cfg, you can set model_kwargs=dict(tensor_parallel_size=8), for your case.

@liushz Thank you for your response; I appreciate your clarification. However, the parameter in your reply pertains to setting tensor parallelism in vLLM. My intention is to load the entire model onto each of the eight GPUs, thereby distributing tasks in parallel across these GPUs. This approach should theoretically yield an eightfold acceleration in evaluation speed.

@liushz Thank you for your response; I appreciate your clarification. However, the parameter in your reply pertains to setting tensor parallelism in vLLM. My intention is to load the entire model onto each of the eight GPUs, thereby distributing tasks in parallel across these GPUs. This approach should theoretically yield an eightfold acceleration in evaluation speed.

hi, @liushz , I also want to know how to achieve data parallelism in vLLM when evaluating

Please try NumWorkerPartitioner https://github.com/open-compass/opencompass/blob/main/opencompass/partitioners/num_worker.py#L17

@tonysy Could you possibly offer a quick example? I'm quite unsure how to ues it. Many thanks for your assistance.

我感觉这个应该是要看VLLM的文档，：https://docs.vllm.ai/en/latest/serving/distributed_serving.html，我tensor_parallel_size设置的和GPU数量一样是可以的。

@IcyFeather233 谢谢你😂，我明白这个tensor_parallel_size可以设定为GPU数2，4，8实现模型分片并行。我这里意思是tensor_parallel_size为1，但是GPU 每张卡都加载一整个模型，然后数据并行，同时评测一个任务的不同数据。最近我实现了该种功能，使用NumWorkerPartitioner。以下为关键参数配置：有需要的可以借鉴。 @darrenglow 。同时感谢 @tonysy 。要是能尽快更新到文档就更好了。

@noforit 我是这样配的，但还是只有一张卡在跑，能帮我看看原因吗；
infer = dict(
    partitioner=dict(type=NumWorkerPartitioner, num_worker=2),
    runner=dict(
        type=LocalRunner,
        max_num_workers=16,
        task=dict(type=OpenICLInferTask))
)

models = [
    dict(
        type=VLLM,
        abbr='qwen-7b-chat-vllm',
        path="/home/zbl/data/llm/qwen/Qwen-7B-Chat",
        model_kwargs=dict(tensor_parallel_size=1),
        meta_template=_meta_template,
        max_out_len=100,
        max_seq_len=2048,
        batch_size=100,
        generation_kwargs=dict(temperature=0),
        end_str='<|im_end|>',
    )
]

@noforit 我是这样配的，但还是只有一张卡在跑，能帮我看看原因吗；
infer = dict(
    partitioner=dict(type=NumWorkerPartitioner, num_worker=2),
    runner=dict(
        type=LocalRunner,
        max_num_workers=16,
        task=dict(type=OpenICLInferTask))
)

models = [
    dict(
        type=VLLM,
        abbr='qwen-7b-chat-vllm',
        path="/home/zbl/data/llm/qwen/Qwen-7B-Chat",
        model_kwargs=dict(tensor_parallel_size=1),
        meta_template=_meta_template,
        max_out_len=100,
        max_seq_len=2048,
        batch_size=100,
        generation_kwargs=dict(temperature=0),
        end_str='<|im_end|>',
    )
]

你的model_kwargs=dict(tensor_parallel_size=1),这里应该设置成卡数

@IcyFeather233 我知道你的意思，tensor_parallel_size参数可以设置多卡推理，但我试了下使用多卡推理速度并没有比单卡变快；
所以我想实现的是多个任务并行推理：比如我有n个任务，同时用m个模型，每个模型执行一个任务的推理；

@Zbaoli 我看你的参数和我 差了一个

加个这个试试？

@noforit 谢谢你的回复，但我在models的配置中加了run_cfg=dict(num_gpus=1, num_proces=1)参数之后还是只有一个 gpu 在运行；

@Zbaoli 奇怪😂。在程序运行前 加上 CUDA_VISIBLE_DEVICES 呢

或者你在/opencompass/opencompass/runners/local.py  里面调试一下？里面会自动检测显卡数量啥的

@IcyFeather233 谢谢你😂，我明白这个tensor_parallel_size可以设定为GPU数2，4，8实现模型分片并行。我这里意思是tensor_parallel_size为1，但是GPU 每张卡都加载一整个模型，然后数据并行，同时评测一个任务的不同数据。最近我实现了该种功能，使用NumWorkerPartitioner。以下为关键参数配置：有需要的可以借鉴。 @darrenglow 。同时感谢 @tonysy 。要是能尽快更新到文档就更好了。

这里使用了NumWorkerPartitioner后，数据集被拆分成了8份，但最终的summary没法将拆分后的数据集的指标结果汇总在一起，请问您会这样吗？

模型

那我请教一下，这个用Size partitioner不就可以做到么？有对比过这两种partition哪个速度更快一些么

@liushz Thank you for your response; I appreciate your clarification. However, the parameter in your reply pertains to setting tensor parallelism in vLLM. My intention is to load the entire model onto each of the eight GPUs, thereby distributing tasks in parallel across these GPUs. This approach should theoretically yield an eightfold acceleration in evaluation speed.

我请教下，opencompass提供的Sizepartitioner不就可以对数据集进行切割么？还是说NumWorkerPartitioner的partition方式要更高效一些？

@liushz Thank you for your response; I appreciate your clarification. However, the parameter in your reply pertains to setting tensor parallelism in vLLM. My intention is to load the entire model onto each of the eight GPUs, thereby distributing tasks in parallel across these GPUs. This approach should theoretically yield an eightfold acceleration in evaluation speed.

我请教下，opencompass提供的Sizepartitioner不就可以对数据集进行切割么？还是说NumWorkerPartitioner的partition方式要更高效一些？

size partitioner和numworker partitioner是两种不同的切分方式，一个是按给定的size切分，一个是按照卡的数目切分

当使用vllm的时候 不知道为什么一直报timeout 上面部分是模型的设置 下面的是错误 请问是怎么回事啊？

authors: IcyFeather233 Zbaoli bittersweet1999 caotianjia darrenglow disperaller guoaoo liushz noforit tonysy

repo: open-compass/opencompass


text:
work: Logs, one per month, get existing archives, start algorithm

Include Scrapy Log File
Only upload one per month
Get existing archives - both exact and latest
When considering whether to backup, check MD5 and Size

 Move Archive to S3 and decommission server

repo: open-contracting/kingfisher-archive


text:
Create maskduck.localplayer.dev.json

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] Your website is not hosting on the following due to SSL issues: Vercel, Netlify

Description

weird purposes idk what to describe
Link to Website

https://maskduck.github.io
NOTE: the CNAME is pointed to maskduckos.github.io which means that this won't cause any problem with any one-custom-domain rule

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

authors: MaskDuck OD-BOT

repo: open-domains/register


text:
HTTP Server: Set session ID cookie

On HTTP server we have to set session (ssid) cookie.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

repo: open-erp-systems/erp-backend


text:
falcon grafana插件alerting报警功能使用？

grafana : 5.2
使用falcon插件，alerting功能无法正常使用，这里是有什么需要注意的吗？

@younglifestyle alerting功能，是falcon的告警功能，还是grafana的？

不好意思，我的问题不够清晰，是grafana的alerting

哦，那可能要研究一下grafana的alerting功能，目前我们是把grafana仅作为数据展示的组件进行适配的。告警的配置和触发，是在falcon的平台上进行配置的。

好的，非常高兴能得到你的回答，谢谢你

authors: MistShi younglifestyle

repo: open-falcon/falcon-plus


text:
feat: Change fractional custom op from percentage-based to relative weighting.

for consitency with golang, js, and java
i am not sure if this is even desired, and I am not that familiar with csharp, so there might be tests missing

i just saw that there is already a pr doing this

repo: open-feature/dotnet-sdk-contrib


text:
Upgrade to btlewrap version 0.0.3

This should fix the problem reported here: https://github.com/zewelor/bt-mqtt-gateway/issues/14
I also fixed the pylint errors along the way be sticking to pylint version 1.9.3. until someone fixed #115.

@ChristianKuehnel i tested the issue in zewelor/bt-mqtt-gateway#14 the last days and the bug seems to be solved.
Can you please create a new release :)

repo: open-homeautomation/miflora


text:
Support Ubuntu 20.04.2 with deploy-mgmt-hub.sh

I have managed to install Open Horizon on Ubuntu 20.04.2 with a hacked version of deploy-mgmt-hub.sh. Should I send in a PR for an updated version that runs on Ubuntu 20.x?
At time of writing, on all Open Horizon documentation I can find, only  Ubuntu 18.04 and macOS are supported, but I believe we can use Ubuntu 20 without any issues (based on the reasoning that OH is very containerised). Also, I am willing to be a test subject for Ubuntu 20 compatibility... :pilot: :rocket:

As of 170c053, deploy-mgmt-hub.sh now works on Ubuntu 20, albeit without Snap Docker support (see #37 for details). Thanks @bmpotter, @losdevnull (and also @joewxboy)

repo: open-horizon/devops


text:
runner/lib: use uint64_t for dev_size

Use uint64_t for dev_size to prevent issues with 32 bit setups.
Attached is the kernel patch that will also be pushed.
dev-size64-target-pending.txt

bump

Attached is the correct patch for the kernel.

Did you maybe try to send this patch to linux mainling lists?

Attached is the correct patch for the kernel.

Did you maybe try to send this patch to linux mainling lists?

The kernel patch is merged upstream already. It was only attached in this PR to make it easier for people to test.
The userspace parts in this PR are not merged so it's still open. I don't work on this project anymore, so feel free to take up the issue/PR/code.

Well, would be cool if someone would maintain this software, but it seems dead :/

Your commit does loads of other things, not only uses uint64_t for dev size.
Could you please split it and name it correctly?

@lxbsz what do you think about this PR? It seems to fix some issues I've stepped into on 32-bit arches, but would need rebase and also probably spliting into more commits.

@lxbsz what do you think about this PR? It seems to fix some issues I've stepped into on 32-bit arches, but would need rebase and also probably spliting into more commits.

I am okay with it. If you can test on the 32-bit arches, please go ahead to take it.
I will test it after that.

authors: JuniorJPDJ lxbsz mikechristie

repo: open-iscsi/tcmu-runner


text:
D3plot state_array_filter does not include all valid options

In lasso-dyna D3plot, when trying to apply a state_array_filter to a D3plot file being loaded, the option "element_solid_ids" is not recognized.  The "element_solid_ids" is a valid ArrayType and is loaded when no state_array_filter is applied, but a ValueError is raised when trying to apply that ArrayType as a filter.
Loading without a state array filter
d3plot = D3plot(input_path, buffered_reading=True)
element_solid_ids = d3plot.arrays["element_solid_ids"]

Return: array of solid ids

loading with a state array filter
d3plot = D3plot(input_path, buffered_reading=True, state_array_filter=["element_solid_ids"])

Return: ValueError: Array 'element_solid_ids' is not a state array.

The reason is that solid ids are part of the geometry and are not as stated a state array. You can only filter for state arrays and not geometry arrays, which is usually not an issue as geometry is tiny compared to state arrays.

repo: open-lasso-python/lasso-python


text:
Pydantic converting None strings to non-empty strings

All of our entities and requests are getting generated into pydantic based on JsonSchemas.
In case table descriptions we will try to extract from the source and populate the TableEntity
When we don't have any description we set it to None but during the request conversion into Json it
turns into an non-empy white space "  ".
On backend we check if table description is set by checking if description is null or its empty. Even though we don't have non-empty descriptions this check never kicks as the white space is not empty

Is this still and issue, @harshach ?

This is fixed

authors: harshach sureshms

repo: open-metadata/OpenMetadata


text:
Improvements(UI) #9003: Improved explore page advanced search quick filters styling and functionality

Describe your changes :

I worked on improving the styling and functionality of the explore page advanced search quick filters.

Type of change :

[x] Bug fix
[x] Improvement

Frontend Preview (Screenshots) :

Progress till now :
https://user-images.githubusercontent.com/51777795/206864573-ae6701b2-fd01-4df5-bed3-35ec9b6aefc7.mov

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

Frontend: @open-metadata/ui

@chirag-madlani @aniketkatkar97 can you please follow the JIRA styling

Lets not have this element

as its clear that user has indeed filters and let the user click and clear the selected values


text:
Add the frozen function for Swin Transformer model

Motivation
Adding feature request. It provides frozen function for swin transformer by adding  add frozen(bool) parameter .
Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here and update the documentation.
Checklist
Before PR:

[ ] Pre-commit or other linting tools are used to fix the potential lint issues.
[ ] Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[ ] The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

[ ] If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
[ ] CLA has been signed and all committers have signed the CLA in this PR.

Thanks for your contribution, we will review it soon.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: fangxu622:x: cxiang26You have signed the CLA already but the status is still pending? Let us recheck it.

repo: open-mmlab/mmclassification