text:
SIG Elections 12/1 - 12/15 Nominations

SIG Docs-Community chair / co-chair elections for 2022
For the first year of O3DE, the D&C chair has been staffed as an interim position. It's time to hold some official elections, following some of the proposed guidance but with our own process due to the holiday season and in order to expedite the elections into next year.
The chair / co-chair roles
The chair and co-chair serve equivalent roles in the governance of the SIG and are only differentiated by title in that the highest vote-getter is the chair and the second-highest is the co-chair. The chair and co-chair are expected to govern together in an effective way and split their responsibilities to make sure that the SIG operates smoothly and has the availability of a chairperson at any time.
Unless distinctly required, the term "chairperson" refers to either/both of the chair and co-chair. If a chair or co-chair is required to perform a specific responsibility for the SIG they will always be addressed by their official role title.
In particular, if both chairpersons would be unavailable during a period of time, the chair is considered to be an on-call position during this period. As the higher vote-getter they theoretically represent more of the community and should perform in that capacity under extenuating circumstances. This means that if there is an emergency requiring immediate action from the Documentation & Community SIG, the chair will be called to perform a responsibility.
Responsibilities

Schedule and proctor regular SIG meetings on a cadence to be determined by the SIG.
Serve as a source of authority (and ideally wisdom) with regards to O3DE documentation. Chairpersons are the ultimate arbiters of many documentation standards, processes, and practices.
Participate in the SIG Docs-Community Discord channel and on the GitHub Discussion forums.
Serve as a representative of the broader O3DE community to all other SIGs, partners, the governing board, and the Linux Foundation.
Represent the SIG to O3DE partners, the governing board, and the Linux Foundation.
Coordinate with partners and the Linux Foundation regarding official community events.
Represent (or select/elect representatives) to maintain relationships with all other SIGs as well as the marketing committee.
Serve as an arbiter in SIG-related disputes.
Coordinate releases with SIG Release.
Assist contributors in finding resources and setting up official project or task infrastructure monitored/conducted by the SIG.
Long-term planning and strategy for the course of documentation for O3DE.
Maintain a release roadmap for the O3DE documentation.

Additionally, at this stage of the project, the SIG chairpersons are expected to act in the Maintainer role for review and merge purposes only, due to the lack of infrastructure and available reviewer/maintainer pool.
... And potentially more. Again, this is an early stage of the project and chair responsibilities have been determined more or less ad-hoc as new requirements and situations arise. In particular the community half of this SIG has been very lacking due to no infrastructural support, and a chairperson will ideally bring some of these skills.
Nomination
Nomination may either be by a community member or self-nomination. A nominee may withdraw from the election at any time for any reason until the election starts on 12/1.
Nomination requirements
For this election, nominees are required to have at minimum two merged submissions to o3de.org. This is to justify any temporary promotion to Maintainer as required by this term as chairperson. Submissions may be in-flight as of the nomination deadline (2021-12-01 12PM PT), but the nominee must meet the 2-merge requirement by the end of the election or they will be removed from the results.
Any elected chairperson who does not currently meet the Maintainer status will be required to work with contributors from the SIG to produce an appropriate number of accepted submissions by January 31, 2022 or they will be removed and another election will be held.
The only other nomination requirement is that the nominee agrees to be able to perform their required duties and has the availability to do so, taking into account the fact that another chairperson will always be available as a point of contact.
How to nominate
Nominate somebody (including yourself) by responding to this issue with:

A statement that the nominee should be nominated for a chair position in the Documentation & Community SIG. Nominees are required to provide a statement that they understand the responsibilities and requirements of the role, and promise to faithfully fulfill them and follow all contributor requirements for O3DE.
The name under which the nominee should be addressed. Nominees are allowed to contact the election proctor to have this name changed.
The GitHub username of the nominee (self-nominations need not include this; it's on your post.)
Nominee's Discord username (sorry, but you must be an active Discord user if you are a chairperson.)

Election process
The election will be conducted between 2021-12-01 12:00PM PT and 2021-12-15 12:00PM PT and held through an online poll. Votes will be anonymous and anyone invested in the direction of O3DE and its documentation may vote. If you choose to vote, we ask that you be familiar with the nominees.
The current interim chair (@sptramer) will announce the results in the sig-docs-community Discord and on the sig-docs-community O3DE mailing list no later than 2021-12-15 1:00PM PT. At that time if there is a dispute over the result or concern over vote tampering, voting information will be made public to the extent that it can be exported from the polling system and the SIG will conduct an independent audit under the guidance of a higher governing body in the foundation.
The elected chairpersons will begin serving their term on 2022-01-01 at 12AM PT. Tentatively SIG D&C chairs will be elected on a yearly basis. If you have concerns about wanting to replace chairs earlier, please discuss in the request for feedback on Governance.

I would like to nominate myself (Stephen Tramer) for a chairship. I understand the responsibilities and requirements of the role, having performed them for the last year, and will continue to fulfill them and all contributor requirements for O3DE.

Nominee name: Stephen Tramer
Discord: stramer#7057

I, Jonathan Capes, nominate myself and accept nomination for a chair position in the Docs-Community SIG, and will serve if elected.  I affirm that I understand the requirements and responsibilities of the chairpersonship.  I further affirm that I will fulfill the requirements and responsibilities of both the chairpersonship and of a O3DE contributor.

I would like to nominate myself (Stephen Tramer) for a chairship. I understand the responsibilities and requirements of the role, having performed them for the last year, and will continue to fulfill them and all contributor requirements for O3DE.

Nominee name: Stephen Tramer
Discord: stramer#7057

I 2nd Stephen's nomination. He has really good knowledge of the engine, the needs for software developers, he listens to others which is one of his strongest sides. Something I haven't experienced with other candidates. I'm there fore behind his decision to step up here.

Nominations have concluded. In light of the fact that there are only two nominees and one received a "second", as well as unanimous agreement among the chairpersons, Stephen Tramer (@sptramer) will serve as Chair and Jonathan Capes (@FiniteStateGit) will serve as Co-chair.
Congratulations!

authors: FiniteStateGit NiklasHenricson sptramer


text:
Add disk download example

This PR contains reimplemention of python example how to download
disk.

@imjoey please take a look

@imjoey updated, please take a look.

source: gharchive/pull-request

repo: oVirt/ovirt-engine-sdk-go

license_type: permissive

license_source: github-api


text:
Problem with timeago in French

Assigning to @mrvisser for fix

thanks

This was probably seen as a result of a trailing space being removed after \. A crowdin sync appears to have added it back in, so this is no longer reproducable.

source: gharchive/issue

authors: dooremont mrvisser nicolaasmatthijs


text:
translate i18n/zh/docusaurus-plugin-content-docs/current/helm/trait.md

除翻译规则外，是否可以使用自动翻译软件修改呢？谢谢

使用自动翻译软件指的是什么意思？

EDGE浏览器提供网页自动翻译功能，但现在在KUBEVELA文档上似乎不起效了，如果自动翻译网页的话，那就是人工做审校了吧？

本质目的是提供一份中文文档。如果机翻可以做到让大家读完能轻松看懂在说什么 而不是不通顺 不知所云或者逻辑不通 那使用机翻来辅助没有什么问题。 但机翻普遍存在的问题就是 根本看不懂他在说什么 指代不明 逻辑不通 各种神奇的用词 都是目前机翻存在的问题。。。

确实机翻的还不尽人意，需要人员在一些词汇，术语上做修正。但还是解决了许多基础性的文档翻译事务性工作的，领域内人员基本可以理解，上出版物和正规注释就不行了。

authors: cheimu wonderflow zhujun74


text:
[Feature] add the api that trigger deletion

Currently, support creation and query list API for the trigger. we need to support deletion.
https://github.com/oam-dev/kubevela/blob/master/pkg/apiserver/rest/webservice/application.go#L126

/assign chwetion

@chwetion thanks!

authors: barnettZQG chwetion

repo: oam-dev/kubevela


text:
invalid addon repo url makes apiserver crash

Describe the bug
invalid addon repo url makes apiserver crash
To Reproduce

launch VelaUX
go to Addons
click button "addon registries"
click button "new"
set "Type" to be GIthub
input one invalid URL(means that is not a git repo follows "Addon Format") to "URL" textbox
click button "submit"

Expected behavior
VelaUx should works as before, but apiserver pod is crashed by null point exception.
➜  ~ kubectl -n vela-system logs -f apiserver-7dc97f7558-kqs92
{"level":"info","ts":1641302139.5081124,"caller":"apiserver/main.go:108","msg":"KubeVela information: version: undefined, gitRevision: undefined"}
I0104 13:15:40.315824       1 utils.go:143] find cluster gateway service vela-system/kubevela-cluster-gateway-service:9443
{"level":"info","ts":1641302140.3392406,"caller":"rest/rest_server.go:251","msg":"HTTP APIs are being served on: 0.0.0.0:8000, ctx: context.Background.WithCancel"}
I0104 13:15:40.339524       1 leaderelection.go:248] attempting to acquire leader lease vela-system/apiserver-lock...
I0104 13:15:40.342548       1 rest_server.go:150] new leader elected: f28b817d-f8e7-45a3-b713-dbff80c9f15e
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x22b1528]

goroutine 231 [running]:
github.com/oam-dev/kubevela/pkg/addon.(*Registry).ListAddonMeta(0xc00071df20, 0xc000e13330, 0x8, 0xc000e90dc0)
	/workspace/pkg/addon/source.go:212 +0x68
github.com/oam-dev/kubevela/pkg/addon.(*Cache).discoverAndRefreshRegistry(0xc0003c4330)
	/workspace/pkg/addon/cache.go:213 +0x127
github.com/oam-dev/kubevela/pkg/addon.(*Cache).DiscoverAndRefreshLoop(0xc0003c4330, 0x8bb2c97000)
	/workspace/pkg/addon/cache.go:69 +0x6a
created by github.com/oam-dev/kubevela/pkg/apiserver/rest/usecase.NewAddonUsecase
	/workspace/pkg/apiserver/rest/usecase/addon.go:104 +0x1b7

Screenshots

KubeVela Version
v1.2.0-RC2
Cluster information

Additional context

@StevenLeiZhang Thanks for your report.This bug has been fixed by #3026 by test. Please check again with the code with master branch or next  1.20 release . Let me close this issue firstly, feel free we can reopen this issue if the bug still exist.

I have question about this
fmt.Errorf("git type repository only support github for now")
why is Vela only suport github? I want to  use one local private gitlab, this private gitlab also suport github openapi.

@StevenLeiZhang yes, we're planing to support gitlab, but we only tested github currently. You're very welcome to contribute if the gitlab is tested well. Thanks!

authors: StevenLeiZhang wangyikewxgm wonderflow


text:
WIP: Show information in debug mode about external commands

As in debug mode we have a lot of messages the user needs to be informed which external command has generated certain output.
This PR wants to solve this by adding this output:
leapp.stdlib.Run: External command is started: [/usr/bin/dnf rhel-upgrade]
*** external command output ***
leapp.stdlib.Run: External command is finished: [/usr/bin/dnf rhel-upgrade]

Can one of the admins verify this patch?

I afraid little about the readability. What about reword the solution like:
====== ext cmd started:
*** external command output ***
====== ext cmd finished:

Just idea that it is easy to find substring like =====. What do you think guys? @oamg/developers

authors: asilveir centos-ci pirat89

repo: oamg/leapp


text:
[GLUTEN-4178][CH] Reduce memory usage in aggregate operators

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Fixes: #4178
At previous version, we convert a hash table into a block list at once,bring a double memory peak usage. It's easy to cause OOM problems.
At this version, we try to convert the buckets in a two-level hash table one by one, and the bucket in the hash table is released immediately after it have been converted. This make memory peak usage more smoothly and smaller.
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
unit tests
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Add some comments on key classes and functions.

authors: lgbo-ustc zhanglistar

repo: oap-project/gluten


text:
add literal colon support for gin and echo

Closes https://github.com/oapi-codegen/oapi-codegen/issues/1726

I see the test failures and will get to them in a bit.

repo: oapi-codegen/oapi-codegen


text:
Need to "export" BooleanConstant

in the init.py file

Is this still a problem in the latest release? It looks like we already do this:
https://github.com/oasis-open/cti-python-stix2/blob/master/stix2/__init__.py#L36

authors: clenk rpiazza

license_source: bigquery


text:
Is there a concise way to directly export generated STIX data as JSON file?

Well, this package is straightforward at generating a random STIX data and I'm satisfied at this level of convenience. However, when I try to load this as JSON data and save it to the data like the code below,
import stix2generator
import json

stix2_generator = stix2generator.create_stix_generator()
stix = stix2_generator.generate()
stix_dump = json.dumps(stix, indent=4)

I get the errors below because some STIX SDO objects are not python default data types. (For example, the runtime exception log below says that the generated STIX data can't be converted to the JSON format since Note which is one of STIX SDO is not compatible.)
Traceback (most recent call last):
  File "C:\Users\user\Documents\GitHub\nis-ems-client\test\fake_stix2_generator.py", line 6, in <module>
    stix_dump = json.dumps(stix, indent=4)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\__init__.py", line 238, in dumps
    **kw).encode(obj)
          ^^^^^^^^^^^
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\encoder.py", line 202, in encode
    chunks = list(chunks)
             ^^^^^^^^^^^^
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\encoder.py", line 432, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\encoder.py", line 439, in _iterencode
    o = _default(o)
        ^^^^^^^^^^^
  File "C:\Users\user\.pyenv\pyenv-win\versions\3.11.9\Lib\json\encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Note is not JSON serializable

So, my question is, is there a way to cope with this issue? I'm almost new to STIX, I just read the STIX documentation from the official page today and I am about to use STIX data with my project. Thanks in advance.

It's possible to simply(maybe) parse the STIX2 generation result as a JSON dump with Python's JSON package(json) with STIX2's JSON serialization class object(stix2.serialization.STIXJSONEncoder).  :)
Here I'll attach a working makeshift example
import stix2generator
import stix2validator
import stix2
import json
import uuid
from rich import print

# Generate the fake STIX2 data
stix2_generator = stix2generator.create_stix_generator()
stix = stix2_generator.generate()

# Convert the STIX data (Dictionary with STIX-proprietary objects) to pure JSON objects
def stix_to_json(stix_data):
    stix_objects = []
    for value in stix_data.values():
        stix_objects.append(json.loads(value.serialize()))
    return stix_objects

stix_objects = stix_to_json(stix)

# Create a STIX bundle with the generated objects
stix_bundle = {
    "type": "bundle",
    "id": f"bundle--{uuid.uuid4()}",
    "objects": stix_objects
}

# Convert the STIX bundle to JSON
stix_bundle_json = json.dumps(stix_bundle, cls=stix2.serialization.STIXJSONEncoder, indent=4).encode('utf-8').decode('utf-8')
print(stix_bundle_json)

# Validate the generated STIX bundle
result = stix2validator.validate_string(str(stix_bundle_json))
stix2validator.print_results(result)

Not sure what you mean by repositioning the id property.  Abstractly speaking, mappings/objects don't have an intrinsic order to their entries (some implementations can allow you to control some kinds of ordering, e.g. a traversal order, but that is an implementation detail).  I don't think JSON-Schema allows you to express a required ordering on object entries (correct me if I am wrong).  So, it seems to me an object entry ordering difference cannot cause a JSON-Schema validation failure.
A simpler way to generate and validate is (but does not directly use the json package):
import io
import sys
# ... and all the other imports

stix = stix2_generator.generate()
bundle = stix2.Bundle(list(stix.values()))

# A simple way to dump to stdout:
# (don't use pretty=True for large numbers of objects!)
bundle.fp_serialize(sys.stdout, pretty=True)

# A simple way to dump JSON to a memory text buffer
buf = io.StringIO()
bundle.fp_serialize(buf)

# Reposition for reading, and validate
buf.seek(0, io.SEEK_SET)
result = stix2validator.validate(buf)
stix2validator.print_results(result)

Or via shell:
# -b causes output to be wrapped in a bundle
generate_stix -b > ./bundle.json
stix2_validator ./bundle.json

authors: KnightChaser chisholm

repo: oasis-open/cti-stix-generator


text:
subject_token_type for Replacement Txn-Token Request

In 7.5.2:

To request a replacement Txn-Token, the requester makes a Txn-Token Request as described in Section 7.1 but includes the Txn-Token to be replaced as the value of the subject_token parameter.

Does this assume that subject_token_type should be urn:ietf:params:oauth:token-type:txn_token? Should we call it out explicitly?

Also, do other parameters (audience, scope, request_context) make sense in the context of TraT replacement flow? (I believe they don't, as they are meant to remain constant for the whole invocation chain.)
Should we call out that they must be ignored in the replacement flow?

repo: oauth-wg/oauth-transaction-tokens

license: MIT


text:
Drop multi_json dependency

As discussed in https://github.com/oauth-xx/oauth2/issues/579#issuecomment-1084174454, the Ruby JSON stdlib module should be good enough.
Closes #579

Codecov Report

Merging #590 (08f7c75) into master (7e5cd6c) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #590      +/-   ##
==========================================
+ Coverage   89.66%   89.70%   +0.04%
==========================================
  Files          15       15
  Lines         445      447       +2
==========================================
+ Hits          399      401       +2
  Misses         46       46

Impacted Files
Coverage Δ

lib/oauth2/response.rb
100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Code coverage failure: SimpleCov failed with exit 2 due to a coverage related error
Rubocop failure: Will be fixed in 16345ec1e12c348fc752b851173c22a8c7b68a8f via https://github.com/oauth-xx/oauth2/pull/589

authors: codecov-commenter stanhu


text:
Memory Leak in duScrollspy directive

In src/directives/scrollspy.js line number 58. Listener is being added to $rootScope, but is not being cleaned up when the directive is destroyed.

Well spotted, thanks!

repo: oblador/angular-scroll

license: mit


text:
How to handle dynamic accordion content

Thanks for this useful component,
I'm having a trouble while trying to create an accordion.
When user clicks a submenu under a menu, content of the accordion is changed and it is rerendered with a different content.
This is how i use activeSection in accordion
activeSection={this.state.activeSection}
In my header content every view's structure is
View
View (image)
View (text)
View (image)
View
assuming that if i have 4 rows in old content and i click 2nd item which is index 1 in new content 2nd head (index1)view's text is changed but images are not changed. I'm having this issue only with iOS. Code works well with Android images are changed properly.
note: images's sources and logs controlled several times.

Hey, this issue has been inactive for long time and will be closed. If the issue still persists feel free to tag me to reopen.

repo: oblador/react-native-collapsible


text:
DNS not resolve on macOs  (high sierra)

we run this script with Additional hosts file(-e parameter) and additional hosts resolves in windows, linux, android but not resolve in macOS

I can not understand what you are trying to say. Could you please rephrase it and add more details so that we can understand you ?

authors: amirhosseinnazari solsticedhiver


text:
Data release OWL and Log

Please, merge first the PR #24.
I also deleted the log files from the previous PR #18 to not have the same file in different names and formats.
Fix #22

Looks good, but I think logs are in the wrong place.  We should have a dedicated directory for these.  We should also capture STDERR logs to files in the same directory as this captures other errors (we should find better ways to communicate these errors in future, but raw logs will do for now.

Ok, I'll create a dedicated directory for logs in this PR.

authors: anitacaron dosumis


text:
B cell issues Fixes #935

Removes duplicate label and extra definition for 'B cell' and extra obo_namespace stanza.

OWL axiom in PR import!

authors: addiehl dosumis

repo: obophenotype/cell-ontology


text:
Time scale labels don't adjust to font size.

As seen below, increasing the font size makes the time scale labels overlap.
style: {
    fontFamily: "system-ui",
    fontSize: "16px",
    overflow: "visible"
},

style: {
    fontFamily: "system-ui",
    fontSize: "24px",
    overflow: "visible"
},

Yes, that’s how it works. Plot does not consider text metrics when laying out axes.

So what's the work-a-round for this?

You can specify a different number of ticks using the scale.ticks option (e.g., x: {ticks: 4}) or you can rotate the ticks using scale.tickRotate option (e.g., x: {tickRotate: 90}) and then increasing marginBottom.

var graph = Plot.plot({
    x: {
        ticks: 4,
        tickRotate: -45,
    },
    width: 640,
    height: 400,
    marginLeft: 100,
    marginTop: 105,
    marginBottom: 100,
});

authors: mbostock reubano

repo: observablehq/plot

license: ISC


text:
Append completion date to tasks completed in the Kanban plugin

Expected Behavior
When marking a task in kanban as done it should add the ✅ emoji with the date
Current behaviour
It doesn;t add the ✅emoji if i mark the task as done in the kanban but if i opened the board as markdown and click manually it'll add it like normal
Steps to reproduce
Install kanban and make a new board
Add tasks and mark it as done, the ✅ emoji with the date will not show up
Which Operating Systems are you using?

[ ] Android
[ ] iPhone/iPad
[ ] Linux
[ ] macOS
[X] Windows

Obsidian Version
0.15.9
Tasks Plugin Version
1.11.0
Checks

[x] I have tried it with all other plugins disabled and the error still occurs

Possible solution
No response

Hi @joetifa2003, thanks for the write up.
I’m not sure that I understand - it sounds like you would like the KanBan plugin to provide support for Tasks emojis, is that correct?

The done date is would be really usefull if it automatically added but that's ok i'll find a workaround for now, thanks!

Just to follow up from the Discussions above, when a task is marked as done in another plugin, any addition of Due date or similar would be done by code in that plugin.
So it's not something within the scope of Tasks to implement.

repo: obsidian-tasks-group/obsidian-tasks


text:
Add a FAQ to document common problems

I encountered this entitlements error and it took me awhile to find the problem.  I figured this would be a good candidate for starting a FAQ.

Thanks!

authors: luigy mightybyte

repo: obsidiansystems/obelisk


text:
incorrect cursor position and inconsistent scrolling behaviour in editor with overflow

Exhibit A
.ProseMirror {
    word-wrap: normal;
    overflow: auto;
}

abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz

cursor in "abc┘def", scrolled outside of viewport
press →
cursor is not scrolled into view
press →
viewport is scrolled to the cursor position ("efghi..."), but no cursor visible
manually scroll to the left
cursor is blinking at the very edge of the element, in the padding area:

Exhibit B
.ProseMirror {
    overflow: auto;
}

.ProseMirror pre {
    white-space: pre;
}

      console.warn(
        `[prosemirror-virtual-cursor] Virtual cursor does not work well with marks that have inclusive set to false. Please consider removing the inclusive option from the "${mark}" mark or adding it to the "skipWarning" option.`,
      );

place cursor anywhere in the code block
scroll horizontally
use arrow keys or mouse to change cursor position
cursor is rendered with offset (verify by typing in text)

Well, it is affected by vertical overflow as well.
.ProseMirror {
  max-height: 10em;
  overflow: auto;
}

lorem
ipsum
dolor
sit
amet

Cursor on the last line is rendered higher than it should be:

repo: ocavue/prosemirror-virtual-cursor


text:
[Bug]: If you create a new schema table, the schema supports a maximum of 1,000 shards

ODC version
4.3.2
OB version
no related
What happened?
If you create a new schema table, the maximum number of shards in a schema is 1,000
What did you expect to happen?
If you create a new logic database table, the maximum number of shards in the logic database is 1,000, and the number of shards exceeds 1,000 and the maximum number of tables is Integer.MAX_VALUE.
How can we reproduce it (as minimally and precisely as possible)?
Create a logical table, enter a logical table with more than 1000 databases and more than Integer.MAX_VALUE, and observe the page response
Anything else we need to know?
No response

pass

repo: oceanbase/odc


text:
Fee display component

We need a component to display the price structure with fees. It will be used in the Use tab. It is needed in the following places
Download : for the price
Compute: for the asset price , for each algorithm price, for the whole job price .
Preliminary structure:
 publisherMarketOrderFee: string
 publisherMarketPoolSwapFee: string
 publisherMarketFreSwapFee: string
 consumeMarketOrderFee: string
 consumeMarketPoolSwapFee: string
 consumeMarketFreSwapFee: string
 opcFee: string

Basically this needs to look something like
Total price : x BaseToken

fee1 :  y BaseToken
fee2: z BaseToken

To avoid confusion between Fre and Free I propose changing
 publisherMarketFreSwapFee: string
 consumeMarketFreSwapFee: string

To:
 publisherMarketFixedSwapFee: string
 consumeMarketFixedSwapFee: string

@mihaisc I noticed the list doesn't include provider fees? I thought we were also introducing these?

This was just a random example at that time, the component shouldn't care , it just need to display something like name : value for fees that are not 0.

ok cool

This is an example of hopefully the final version of the structure that we pass to this component https://github.com/oceanprotocol/market/blob/7336224f387ca36e3c62b83a5f82e7505691f706/src/%40types/Price.d.ts#L16 . For now it assumes all fees are in ocean.

Not that relevant now. Will open another issue in the future if needed

repo: oceanprotocol/market


text:
Market code can support different base token

What
Ocean backend code supports different base tokens. Ocean frontend code has a stronger bias to use OCEAN as a base token.
Goal of this issue: make it more straightforward for Ocean frontend code to use a different base token.
Motivation
This helps in two ways:

Helps several 3rd party marketplaces, which would like to use their own token at the frontend level, eg for pools staking/swapping and for FRE.
Helps Ocean Market switch from using OCEAN, to an OCEAN-backed stablecoin -- market#447

No, we had this in mind when refactoring things but we never tested a different base token, and there are still places which assume OCEAN alone. We always said to do this after v4

Ok, closing this. Concrete implementation of multiple approved tokens will be tracked here https://github.com/oceanprotocol/market/issues/1335

authors: kremalicious mihaisc trentmc


text:
Better error message when no trackable features are found

This is related to #7. Currently, when in _filter_area no labels are found, the logic will fail at min_area = np.percentile(area, min_size_quartile*100)
with the rather obscure error:

```
IndexError                                Traceback (most recent call last)
 in
     10
     11 # Filter area
---> 12 area, min_area, binary_labels, N_initial = _filter_area(binary_images_with_mask, min_size_quartile)
     13
     14 # Label objects
~/ocetrac/ocetrac/track.py in _filter_area(binary_images, min_size_quartile)
81     labelprops = xr.DataArray(labelprops, dims=['label'], coords={'label': labelprops})
82     area = xr.DataArray([p.area for p in props], dims=['label'], coords={'label': labelprops})  # Number of pixels of the region.
---> 83     min_area = np.percentile(area, min_size_quartile*100)
84     print('minimum area: ', min_area)
85     keep_labels = labelprops.where(area>=min_area, drop=True)
<array_function internals> in percentile(*args, **kwargs)
/srv/conda/envs/notebook/lib/python3.8/site-packages/numpy/lib/function_base.py in percentile(a, q, axis, out, overwrite_input, interpolation, keepdims)
3816     if not _quantile_is_valid(q):
3817         raise ValueError("Percentiles must be in the range [0, 100]")
-> 3818     return _quantile_unchecked(
3819         a, q, axis, out, overwrite_input, interpolation, keepdims)
3820
/srv/conda/envs/notebook/lib/python3.8/site-packages/numpy/lib/function_base.py in _quantile_unchecked(a, q, axis, out, overwrite_input, interpolation, keepdims)
3935                         interpolation='linear', keepdims=False):
3936     """Assumes that q is in [0, 1], and is an ndarray"""
-> 3937     r, k = _ureduce(a, func=_quantile_ureduce_func, q=q, axis=axis, out=out,
3938                     overwrite_input=overwrite_input,
3939                     interpolation=interpolation)
/srv/conda/envs/notebook/lib/python3.8/site-packages/numpy/lib/function_base.py in _ureduce(a, func, **kwargs)
3513         keepdim = (1,) * a.ndim
3514
-> 3515     r = func(a, **kwargs)
3516     return r, keepdim
3517
/srv/conda/envs/notebook/lib/python3.8/site-packages/numpy/lib/function_base.py in _quantile_ureduce_func(failed resolving arguments)
4048                 indices_below.ravel(), indices_above.ravel(), [-1]
4049             )), axis=0)
-> 4050             n = np.isnan(ap[-1])
4051         else:
4052             # cannot contain nan
IndexError: index -1 is out of bounds for axis 0 with size 0
<details/>

I propose to add a check [here](https://github.com/ocetrac/ocetrac/blob/9e92246036ae87aea527265ef17d99e91a846c03/ocetrac/track.py#L80) along the lines of
```python
if len(props) == 0:
    raise ValueError('No features detected')
    # or just warn and return None?
    warnings.warn(...)
    return None

Are we actually testing/catching this? I might have overlooked this in the tests. Otherwise I would keep this open, I can try to implement a test soon.

repo: ocetrac/ocetrac


text:
🛑 Ahora+ (rrhh.octubre.org.ar) is down

In 68ce046, Ahora+ (rrhh.octubre.org.ar) (https://rrhh.octubre.org.ar/api/health) was down:

HTTP code: 503
Response time: 765 ms

Resolved: Ahora+ (rrhh.octubre.org.ar) is back up in e4a55ba.

repo: octubre-softlab/octubre-upptime


text:
🛑 Ahora+ (rrhh.octubre.org.ar) is down

In e7be515, Ahora+ (rrhh.octubre.org.ar) (https://rrhh.octubre.org.ar/api/health) was down:

HTTP code: 503
Response time: 703 ms

Resolved: Ahora+ (rrhh.octubre.org.ar) is back up in b919773.


text:
Hero rankings have some randomness to them.

Upon refreshing my hero rankings page i keep getting somewhat randomized results. (atleast for my top heroes).
The number are so far apart that this is an unusual fluctuation (top 100 to top 4000)
reference: https://www.opendota.com/players/60372773/rankings

For performance reasons the rankings are done against a random sample on each request, so depending on the sample the results may vary.  I can look into increasing the sample size to reduce the variance, but we'll need to balance that against performance.

I doubled the sample size, is it more consistent now?

Yep, a bit better. But i honestly dont think the tradeoff is worth it.
Probably have to overhaul the system in long-term.
I'll look into it (with my limited knowledge) of what i can do, over the next few weeks.

authors: Darkitz howardchung

repo: odota/core


text:
Subject Area OMAS is setting same classification multiple times

After adding validation to the enterprise repository connector to ensure the OMASs are not trying to classify an entity twice, the Subject Area FVT is failing with ...
ProjectFVT runIt stopped
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.825 s - in org.odpi.openmetadata.accessservices.subjectarea.fvt.junit.ProjectIT
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   TermIT.testTerm:24 Unexpected exception thrown: org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException: OMAG-COMMON-400-016 An unexpected org.odpi.openmetadata.accessservices.subjectarea.handlers.SubjectAreaTermHandler exception was caught by update(isReplace=false) for Term; error message was OMAG-REPOSITORY-HANDLER-500-001 An unexpected error org.odpi.openmetadata.repositoryservices.ffdc.exception.ClassificationErrorException was returned to classifyEntity(deprecated) by the metadata server during updateTerm request for open metadata access service Subject Area OMAS on server serverinmem; message was OMRS-REPOSITORY-400-081 A classifyEntity request has been made to repository serverinmem to add a classification Criticality to entity c061d512-ac51-4121-acf3-3c9de05c84b1 when this entity is already classified
[ERROR]   TermIT.testTerm:24 Unexpected exception thrown: org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException: OMAG-COMMON-400-016 An unexpected org.odpi.openmetadata.accessservices.subjectarea.handlers.SubjectAreaTermHandler exception was caught by update(isReplace=false) for Term; error message was OMAG-REPOSITORY-HANDLER-500-001 An unexpected error org.odpi.openmetadata.repositoryservices.ffdc.exception.ClassificationErrorException was returned to classifyEntity(deprecated) by the metadata server during updateTerm request for open metadata access service Subject Area OMAS on server servergraph; message was OMRS-REPOSITORY-400-081 A classifyEntity request has been made to repository servergraph to add a classification Criticality to entity 2c21580a-a7e9-489c-8286-d5ec911f4d1e when this entity is already classified
[INFO]
[ERROR] Tests run: 18, Failures: 2, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- process-exec-maven-plugin:0.9:stop-all (stop-all) @ subject-area-fvt ---
[INFO] Stopping all processes ...
[INFO] Stopping process: chassis-start
[INFO] Stopped process: chassis-start
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ subject-area-fvt ---
[INFO] Loading execution data file /Users/mandy-chessell/CloudStation/Drive/Code/ODPi/egeria-code/egeria/open-metadata-test/open-metadata-fvt/access-services-fvt/subject-area-fvt/target/jacoco.exec
[INFO] Analyzed bundle 'Subject Area OMAS FVT' with 16 classes
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (verify) @ subject-area-fvt ---
[INFO] ------------------------------------------------------------------------

The problem seems to be in the updateTerm method of SubjectAreaTermHandler.  It updates the properties and then if there are any governance classifications supplied by the caller, they are added to the entity.  Any governance classifications not supplied by the caller are removed.
What needs to change is that before adding the classification to the entity, it needs to check whether the entity already has the classification applied.  If it does then it should call updateEntityClassificationProperties instead of classifyEntity.

This is the current logic ...
public SubjectAreaOMASAPIResponse<Term> updateTerm(String userId, String guid, Term suppliedTerm, boolean isReplace) {
        final String methodName = "updateTerm";
        SubjectAreaOMASAPIResponse<Term> response = new SubjectAreaOMASAPIResponse<>();

        try {
            InputValidator.validateNodeType(className, methodName, suppliedTerm.getNodeType(), NodeType.Term, NodeType.Activity);

            response = getTermByGuid(userId, guid);
            if (response.head().isPresent()) {
                Term currentTerm = response.head().get();

                Set<String> currentClassificationNames = getCurrentClassificationNames(currentTerm);

                if (isReplace)
                    replaceAttributes(currentTerm, suppliedTerm);
                else
                    updateAttributes(currentTerm, suppliedTerm);

                Date termFromTime = suppliedTerm.getEffectiveFromTime();
                Date termToTime = suppliedTerm.getEffectiveToTime();
                currentTerm.setEffectiveFromTime(termFromTime);
                currentTerm.setEffectiveToTime(termToTime);
                // always update the governance actions for a replace or an update
                currentTerm.setGovernanceActions(suppliedTerm.getGovernanceActions());

                TermMapper termMapper = mappersFactory.get(TermMapper.class);
                EntityDetail forUpdate = termMapper.map(currentTerm);
                Optional<EntityDetail> updatedEntity = oMRSAPIHelper.callOMRSUpdateEntity(methodName, userId, forUpdate);
                if (updatedEntity.isPresent()) {
                    List<Classification> classifications = forUpdate.getClassifications();
                    if (CollectionUtils.isNotEmpty(classifications)) {
                        for (Classification classification : classifications) {
                            oMRSAPIHelper.callOMRSClassifyEntity(methodName, userId, guid, classification);
                            currentClassificationNames.remove(classification.getName());
                        }

                        for (String deClassifyName : currentClassificationNames) {
                            oMRSAPIHelper.callOMRSDeClassifyEntity(methodName, userId, guid, deClassifyName);
                        }
                    }
                    List<CategorySummary> suppliedCategories = suppliedTerm.getCategories();
                    if (suppliedCategories==null && !isReplace) {
                        // in the update case with null categories supplied then do not change anything.
                    } else {
                        replaceCategories(userId, guid, suppliedTerm, methodName);
                    }
                }
                response = getTermByGuid(userId, guid);
            }

        } catch (SubjectAreaCheckedException | PropertyServerException | UserNotAuthorizedException | InvalidParameterException e) {
            response = new SubjectAreaOMASAPIResponse<>();
            response.setExceptionInfo(e, className);
        }

        return response;
    }

I think it needs to be something like this:
    public SubjectAreaOMASAPIResponse<Term> updateTerm(String userId, String guid, Term suppliedTerm, boolean isReplace) {
        final String methodName = "updateTerm";
        SubjectAreaOMASAPIResponse<Term> response = new SubjectAreaOMASAPIResponse<>();

        try {
            InputValidator.validateNodeType(className, methodName, suppliedTerm.getNodeType(), NodeType.Term, NodeType.Activity);

            response = getTermByGuid(userId, guid);
            if (response.head().isPresent()) {
                Term currentTerm = response.head().get();

                Set<String> currentClassificationNames = getCurrentClassificationNames(currentTerm);

                if (isReplace)
                    replaceAttributes(currentTerm, suppliedTerm);
                else
                    updateAttributes(currentTerm, suppliedTerm);

                Date termFromTime = suppliedTerm.getEffectiveFromTime();
                Date termToTime = suppliedTerm.getEffectiveToTime();
                currentTerm.setEffectiveFromTime(termFromTime);
                currentTerm.setEffectiveToTime(termToTime);
                // always update the governance actions for a replace or an update
                currentTerm.setGovernanceActions(suppliedTerm.getGovernanceActions());

                TermMapper termMapper = mappersFactory.get(TermMapper.class);
                EntityDetail forUpdate = termMapper.map(currentTerm);
                Optional<EntityDetail> updatedEntity = oMRSAPIHelper.callOMRSUpdateEntity(methodName, userId, forUpdate);
                if (updatedEntity.isPresent()) {
                    List<Classification> suppliedClassifications = forUpdate.getClassifications();
                    List<Classification> storedClassifications = updatedEntity.get().getClassifications();
                    Map<String, Classification> storedClassificationMap = null;

                    if ((storedClassifications != null) && (! storedClassifications.isEmpty())) {
                        storedClassificationMap = new HashMap<>();
                        for (Classification storedClassification : storedClassifications) {
                            if (storedClassification != null) {
                                storedClassificationMap.put(storedClassification.getName(), storedClassification);
                            }
                        }
                    }

                    if (CollectionUtils.isNotEmpty(suppliedClassifications)) {
                        for (Classification suppliedClassification : suppliedClassifications) {
                            if (suppliedClassification != null) {
                                if ((storedClassificationMap == null) || (! storedClassificationMap.keySet().contains(suppliedClassification.getName()))) {
                                    oMRSAPIHelper.callOMRSClassifyEntity(methodName, userId, guid, suppliedClassification);
                                } else {
                                    oMRSAPIHelper.callOMRSUpdateClassification(methodName, userId, guid, storedClassificationMap.get(suppliedClassification.getName()), suppliedClassification.getProperties());
                                }
                                currentClassificationNames.remove(suppliedClassification.getName());
                            }
                        }

                        for (String deClassifyName : currentClassificationNames) {
                            oMRSAPIHelper.callOMRSDeClassifyEntity(methodName, userId, guid, deClassifyName);
                        }
                    }
                    List<CategorySummary> suppliedCategories = suppliedTerm.getCategories();
                    if (suppliedCategories==null && !isReplace) {
                        // in the update case with null categories supplied then do not change anything.
                    } else {
                        replaceCategories(userId, guid, suppliedTerm, methodName);
                    }
                }
                response = getTermByGuid(userId, guid);
            }

        } catch (SubjectAreaCheckedException | PropertyServerException | UserNotAuthorizedException | InvalidParameterException e) {
            response = new SubjectAreaOMASAPIResponse<>();
            response.setExceptionInfo(e, className);
        }

        return response;
    }

This required a new method in OMRSAPIHelper:
public void callOMRSUpdateClassification(String restAPIName,
                                             String userId,
                                             String entityGUID,
                                             Classification existingClassification,
                                             InstanceProperties newProperties) throws UserNotAuthorizedException,
                                                                                PropertyServerException,
                                                                                SubjectAreaCheckedException {
        String methodName = "callOMRSUpdateClassification";
        try {
            InstanceType type = existingClassification.getType();
            String typeDefGUID = null;
            String typeDefName = null;

            if (type != null) {
                typeDefGUID = type.getTypeDefGUID();
                typeDefName = type.getTypeDefName();
            }
            getRepositoryHandler().reclassifyEntity(userId,
                                                    null,
                                                    null,
                                                    entityGUID,
                                                    typeDefGUID,
                                                    typeDefName,
                                                    existingClassification,
                                                    newProperties,
                                                    restAPIName);
        } catch (PropertyServerException | UserNotAuthorizedException e) {
            throw e;
        } catch (Exception error) {
            prepareUnexpectedError(error, methodName);
        }
    }

Much of the code above to manage classifications is also supported in the repository handler.

repo: odpi/egeria


text:
🛑 urbamonde.org is down

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

HTTP code: 429
Response time: 448 ms

Resolved: urbamonde.org is back up in cdb24ac.

repo: odqo/upptime


text:
A possibly improved implementation.

I tried to improve the code a bit so that it handles subclasses and imports. It should also handle Iterables with limitations. The code is not tested fully, but it it seems to work. If you would be kind enough to test it, I give you my permission to upload it to your blog. I don't even need credit. However, if you spot a bug or find any improvement, please let me know. Code follows:

import sys
import types as t
from numpy import ndarray
from torch import Tensor
import main
import inspect
from pathlib import Path
from typing import Any, Optional, Set, Dict, Tuple, runtime_checkable, Protocol, TypeVar, List, Iterable
import dill  # type: ignore
import torch
def mainify(obj: object, max_depth: int = 100) -> None:
_mainify(obj, 0, max_depth)
def _mainify(obj: object, depth: int, max_depth: int) -> object:
if isinstance(obj, _toxic_types): return obj
if depth > max_depth: return obj
obj = _check_recursion(obj, depth, max_depth)
if not hasattr(obj, "module") or obj.module in _builtins: return obj
_add_to_main(obj)
if is_named(obj): obj = getattr(main, obj.name)
else:
obj.class = getattr(main, obj.class.name)
for key, value in obj.dict.items():
temp: object = _mainify(value, depth, max_depth)
setattr(obj, key, temp)
return obj
def is_named(obj: object) -> bool: return hasattr(obj, "name")
def _add_to_main(obj: object):
module_source = inspect.getsource(inspect.getmodule(obj))
exec(compile(module_source, '', 'exec'), main.dict)
_already_copied.add(obj.module)
@runtime_checkable
class ListLike(Protocol[S]):
def setitem(self, __key: int, __value: S) -> None: ...
def getitem(self, __key: int) -> S: ...
def len(self) -> int: ...
@runtime_checkable
class DictLike(Protocol[T, S]):
def setitem(self, __key: T, __value: S) -> None: ...
def getitem(self, __key: T) -> S: ...
def items(self) -> List[Tuple[T, S]]: ...
def _check_recursion(obj: object, depth: int, max_depth: int) -> object:
if not isinstance(obj, Iterable) or isinstance(obj, _toxic_iterables): return obj
the_class = obj.class
if isinstance(obj, DictLike):
for key, value in obj.items(): obj[key] = _mainify(value, depth + 1, max_depth)
if isinstance(obj, Tuple): obj = list(obj)
if isinstance(obj, ListLike):
for i in range(len(obj)): obj[i] = _mainify(obj[i], depth + 1, max_depth)
return obj if obj.class == the_class else the_class(obj)  # type: ignore[arg-type]

Hi, sounds like a good topic for a gist or you can leave it as a comment!

repo: oegedijk/blog


text:
Error: unknown type: container

Hi,
I have installed hatch-containers
pip install hatch-containers

however after running  hatch  run mycmd I get and error message saying I am using un unknown type.
❯ hatch  run mycmd
Environment `default` has unknown type: container

Any idea about how to fix this?

try pip install hatch-containers. although not sure why it doesn't auto install it when set in build-system:
[build-system]
requires = ["hatchling", "hatch-containers"]
build-backend = "hatchling.build"

authors: aleexaandr ngallo

repo: ofek/hatch-containers


text:
Allow custom styling for consent banner

Right now the consent banner is styled one-size-fits-all. While we try to keep it low-impact for most designs, this surely hurts adoption in cases where a unified UX is important for operators.
While it's technically trivial to allow operators to inject custom CSS into the iframe element that displays the banner, this also comes with some pitfalls and requirements:

Operators should not be able to alter the content in the banner (i.e. change wording to be misleading or hide certain elements)
The default a11y and privacy standards must be preserved in any case

Approach: allowing operators to define custom CSS per account
Semantic classes are applied to the markup that displays the consent banner. Operators can now add custom CSS for each account which the server will add (in addition to the predefined styles) to each vault response. In order to prevent operators from creating a misleading consent banner the following sanitzation rules are applied to the CSS before saving:

no pseudo content
no hiding of elements
no opacity rules

Pros

Allows operators to apply fine grained styling that matches virtually any site design
Technically simple to implement

Cons

Sanitizing CSS will help, but it will not close all loopholes for malicious use ever (then again, forking Offen is a lot easier and gives you all options)
Does not offer a middle ground for non-technically savvy users that don't want to / cannot write CSS but still want to customize their banner's appearace

As discussed with @hendr-ik in person we would like to start off with the guidelines for sanitizing CSS: we trust the operator who deploys and customizes Offen to keep the consent guarantees intact but aim to prevent attackers (who might hijack a system or similar) from injecting malicious content through CSS.
This means we'll start with the following rules:

no loading of external resources (as this would introduce an external tracking vector)
No use of content. We want to prevent unwanted messages from showing up or attackers changing content.
No use of transparency as this would allow attackers to create an invisible banner and do "clickjacking".

Hi, I don't have the chance to give this much thought from a development point of view.
From a user point of view I really need simple customizations to make Ogden fit in with my designs: border, colors and maybe font family are all I need to touch

I don't have the time to give this much thought from a development point of view in this moment.

Your requirements as a user are super helpful and all we need. Thank you.

@TommasoAmici @whalehub We just merged the PR containing the feature and plan to include it in the next release.
In case you are interested and would like to help us ship a feature that is actually helpful, we'd appreciate any feedback on a test run. To check it out, you can run the development version in demo mode sth like this:
docker pull offen/offen:development
docker run --rm -p 9876:9876  offen/offen:development demo -port 9876

After logging in head to Customize appearance, the documentation link is currently broken because this is not properly released yet, but it would point here https://docs.offen.dev/v/development/running-offen/customizing-consent-banner/
Our primary questions for feedback would be:

can you achieve what you would like to do visually without too much hair pulling?
would you need more/less/different documentation to get up and running?

Any other feedback is welcome too of course. Thank you!

@m90 I love how you implemented this feature, what with the preview function and everything - well done! The documentation was more than sufficient for me personally.
Before

After

This now released in v0.4.2. Thanks for all of your feedback :tophat:

authors: TommasoAmici m90 whalehub

repo: offen/offen


text:
show async validation example

something quick and dirty to demonstrate how one would integrate with a foreign backend for some validation.

Added an async example to the readme here. Is that what you mean?

authors: offirgolan stefanpenner

repo: offirgolan/ember-cp-validations


text:
Numbering in end of video titles & get latest clip

In next update can you add  youtube video titles numbering feature n
For example gaming video 1 gaming video 2...3...4...n
also to get latest twitch clips instead of most view clips

I did something cheap it might work for u,
on config.py
u need to import those:
from __future__ import print_function
import atexit
from os import path
from json import dumps, loads
then add this 2 functions

def read_counter():
    return loads(open("counter.json", "r").read()) + 1 if path.exists("counter.json") else 0

def write_counter():
    with open("counter.json", "w") as f:
        f.write(dumps(counter))

counter = read_counter()
atexit.register(write_counter)

and then in ur title u only need to add this
TITLE = "my title and many times i upload the content #{}".format(counter)

The problem with that is that i tried to put the name of the first clip and the count after it, but couldnt figure it out.
Anyways this repo is damn good, very well done.
Hope that helps you a bit.

repo: offish/twitchtube


text:
Update ScreenShot for Chrome Web Store

ストア用のスクリーンショットを更新する。
Context
スクリーンショット内の文章内に kintone のロゴが入っており、ガイドラインに抵触する可能性があるため
Expected result
スクリーンショット内の文章内の kintone 表記はノーマルなテキストタイプに変更する
Current result
スクリーンショット内の文章内に kintone のロゴが含まれている

Closed by #45

authors: emiksk rkonno

repo: ofuton/maimodorun


text:
Texture formats

Added support for various texture formats, adding more should be easy. Also, fixed a mistake in the initialization of depth textures.
If it compiles under MacOS, we can merge.

Compiled, installed and ran examples without problems.

authors: TheoWinterhalter VLanvin

repo: ogaml/ogaml


text:
New Features: Mapbox

Thank you for this nice project!

Would be nice if you could also implement mapbox map to carplay. We would be very happy. https://pub.dev/packages/mapbox_gl
Playing radio would be nice too

Best regards from Germany :-)

Instead of using MapBox, can I suggest 'flutter_map'? It supports many more sources and much more configuration.

Hey JaffaKetchup,
thank you for your fast response.
We implement mapbox to our app's, we decided to go forward with mapbox because of stability and feature set.
It would be huge effort to change it to other map. I would pleased if you could implement mapbox too.
Thank you!

Thank you so much for your supports and opinions in the discussion, @sarp86 and @JaffaKetchup. I really appreciate it!
First and foremost, I'd like to state that this package will support as many packages as possible at the same time. That's why you shouldn't be concerned 😊. However, that I'm the only developer of this project, it may take some time to complete all of them. I'm currently working on the CarPlay Voice Control and Now Playing Music System. So that, you will be able to use voice control, text-to-speech, speech-to-text, and play music or radio. It's nearly completed at this time.
For Map, I currently do not plan to implement flutter_map in the first plan because Native MapBox has CarPlay functionalities and it is much easier and faster to implement this package for Flutter than a flutter native map. However, this does not indicate that the flutter native map will never support this package; it will, but not in the initial plan. It makes no sense whether the flutter map package supports more sources or more configuration. CarPlay severely restricts many of its functionalities, since it has constant configurations which they are unchangeable. Consequently, MapBox Native Package will be the first plan to implement to the flutter_carplay package.
For now, you can track the development activity of version 1.1 here. I plan to release Mapbox implementations in version 1.2 or in its beta. If you all or anyone is interested in and wants to help and contribute, send me an email or a pull request so that we can improve all of our applications as soon as possible. 🚀
If you have any further questions or requests in this queue, you can continue to write in this issue.

I can understand that you only have you to develop the package. (I also am an independent package maintainer/development). Make sure you don't get yourself too stressed!
The new features sound cool!
I can understand also why you won't implement flutter_map, was only suggesting because it is more customizable (and I develop a plugin for it, so I get those juicy GitHub stars 🤣).
Likewise, I say hello to Turkey :)

authors: JaffaKetchup oguzhnatly sarp86


text:
UI enhancement to Sample Test History

Describe the bug
The components in the Sample Test History are too close and it is hard to differentiate them from one another due to a lack of space
To Reproduce
Steps to reproduce the behavior:

Go to Sample test
Click on Sample Details of any Patient
Scroll down to Sample Test History
See error

Expected behavior
There should be some space from one test component  to other
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

I'd like to work on this issue

There's an issue/PR (#9120) open regarding modifying the Sample test details page (so far it doesn't touch with Sample test history, so you should be fine, but keep an eye out).

authors: Jacobjeevan Keerthilochankumar


text:
Typo in _create_learner?

Found hf_confg in classmethod _create_learner  from BlearnerForQuestionAnswering

    if (max_seq_len is None):
        max_seq_len = hf_confg.get('max_position_embeddings', 128)

Thanks for letting me know.  I'll get this fixed and a new release out tonight :)

repo: ohmeow/blurr


text:
ProxySchemeUnknown: Not supported proxy scheme

Hey,
I got some errors with reading my proxylist.txt.
My list looks like this
ip:port
ip:port
But when I run the script, it looses the port while running..
Has anyone an idea?
Obtaining the channel...
Obtained the channel
Preparing the processes...
. . . . . . . . . . . . . . . . . . . . .
Prepared the processes
Booting up the processes...
Process Process-1:
Traceback (most recent call last):
File "C:\Python27\lib\multiprocessing\process.py", line 232, in _bootstrap
self.run()
File "C:\Python27\lib\multiprocessing\process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "C:\python27\twitch-viewer.py", line 80, in open_url
response = s.head(url, proxies=proxy)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 568, in head
return self.request('HEAD', url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 199, in proxy_manager_for
**proxy_kwargs)
File "C:\Python27\lib\site-packages\urllib3\poolmanager.py", line 450, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "C:\Python27\lib\site-packages\urllib3\poolmanager.py", line 401, in init
raise ProxySchemeUnknown(proxy.scheme)
ProxySchemeUnknown: Not supported proxy scheme 37.59.248.191

Got it. Have do enable the Admin Account on win10 Pro and run it from this account.
Thx to everyone.

Is this bot working for you? Does Twitch count the viewers? @schroedaa

Yes, it works fine

Am 03.01.2019 um 12:03 schrieb s4magier notifications@github.com:
Is this bot working for you? Does Twitch count the viewers? @schroedaa
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Did you change anything of the original code? Twitch doesnt count requests as viewers anymore.

Did you change anything of the original code? Twitch doesnt count requests as viewers anymore.

no way the original code is working.

Yes, it works fine
…
Am 03.01.2019 um 12:03 schrieb s4magier @.***>: Is this bot working for you? Does Twitch count the viewers? @schroedaa — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

If you do have it working please share :)

The original code from @justinharkey.
For all the others: you have to active the admin account on win 10 pro and run the script from there. "As Admin". Works fine for me. Thanks to @virtuoz75 for his support.

repo: ohyou/twitch-viewer


text:
Question /feature request  : How can I close an alert programmatically (like swal.close() does)

Hello,
First, thanks for your tool, it makes integration with angular very easy.
What would be a proper way to close programmatically an alert created with ngSweetAlert (like swal.close() does)?
FYI my usecase can't work with the integrated timeout alone  : I am repeating an apiCall with an $interval while  a custom sweetalert with a spinner animated icon is displayed :  I'd like  to dismiss  the sweet alert when I receive the  proper $http.sucess() answer .
thanks for your suggestions.
Julien

did not realize that swal.close() was working, my bad.

What if I have multiple instances of Sweetalert in my controller?

authors: levequej mrudult

repo: oitozero/ngSweetAlert


text:
Epic: Airdrop Module

Summary
Airdrop module as designed in design doc 3

[x] Design doc
[x] #140
[x] #160
[x] #162
[x] ABCI
[x] #229
[x] #221

Create genesis airdrop account
Claim airdrop
Unable to claim airdrop after the expiry block
Update params with gov prop

[x] #220

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

All issues complete, closing

authors: adamewozniak zarazan

repo: ojo-network/ojo


text:
Instanced scene with an unshaded material gets lit by light and canvasmodulation

Instanced scene with an unshaded material gets lit by light and canvasmodulation

try with a newer version of Godot, the unshaded property no longer exists. The replacement enum seems to work fine.

i think this is fixed

authors: WatIsDeze reduz

repo: okamstudio/godot


text:
tagFormatter() not called on add

The tagFormatter works fine when the tags: option gets read on toggle instantiation, but it does not get called when new tags are added.

How are you adding new tags?
if you're calling add() that should internally call _add which calls _createTag which calls tagFormatter

I'm using add() and it's not calling tagFormatter :(

seems to be working fine here: https://jsfiddle.net/okcoker/s5yx2yc1/2/

Yeap, traced it back to an error on the code I wrote to format the tag.
Thanks!


text:
Added precision to number formatting for issue #224.

@neuroactive I guess you'll take care of the charts right?

@neuroactive I guess you'll take care of the charts right?

@FottyM Looks good, thank you! Yes, I can take care of the charts.

@neuroactive I guess you'll take care of the charts right?

@FottyM Looks good, thank you! Yes, I can take care of the charts.

Please do let me know if I need to change something.

There was a small issue where trailing zeroes in the numbers were getting removed, i.e. with a precision of 1, "29.97" was being formatted as "30" instead of "30.0". But I have fixed that by adding an argument to the Intl.NumberFormat function call.
I've sent the changes live and the numbers look much better now. Thanks!

authors: FottyM neuroactive

repo: okestonia/koroonakaart


text:
🧪 Add mock logic querier

📝 Purpose
Trying the testing process on cosmwasm smart contract, I've added a unit test of the new cw-logic-sample (#114) smart contract.
🕹 Mock
To do that, a MockLogicQuerier has been introduced allowing mock the logic module. A default implementation has been set to return a successful Answer whatever program or query set initially with a Foo / Bar variable substitution.
Is intended to just check if the cw-logic-sample contract, Ask query, requests the logic module.
🚨 Linter
In addition, I've introduce some unused import so I've enforced the linter rules 😈 😈. I'm nice because I haven't add the missing_docs rules 😇.

size-limit report 📦

Path
Size

target/wasm32-unknown-unknown/release/cw_template.wasm
178.08 KB (0%)

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

authors: bdeneux bot-anik


text:
:seedling: Allow default profile, configurable profile prefix, and configurable credentials suffix

Problem Statement
This tool does not allow you to create a working default profile.
This tool gives warnings on AWS Java SDK (#157).
This tool makes credentials profiles with names that difficult to use (#118).
Different SDKs have conflicting prefix and suffix expectations. https://github.com/oktadeveloper/okta-aws-cli-assume-role/issues/157#issuecomment-409091620
Solution

Support default as a named profile via OKTA_PROFILE=default
Allow configurable profile prefix (Fix #157 with OKTA_PROFILE_PREFIX="")
Allow configurable credentials suffix (Fix #118 with OKTA_CREDENTIALS_SUFFIX="")

Tested on macOS in Fish shell.
Tested on Windows 10 in PowerShell.

@mraible ready to merge.

@mrminecart it will be possible to set the default role with this fix once 1.0.3 is released. https://github.com/oktadeveloper/okta-aws-cli-assume-role/issues/122#issuecomment-391302510
Until then, you could download and build it directly.

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


text:
Documentation for the changes in private registry credentials

This PR adds documentation for the changes we are adding for private registry credentials that will go out in 1.14. The main changes are:

Added an Upgrading to Okteto 1.14.x section explaining how the migration is done for instances using privateRegistry key.
Removed the helm setting of privateRegistry from the settings page. We don't want people using that setting anymore from 1.14
Added more information in the registry credentials section of the admin dashboard explaining the new functionality (screenshots are still missing) and the advanced section in which we explain how to create the private registry credentials directly in the Kubernetes cluster

I had doubts about creating a specific page for the private registry, but I didn't find any place where it would fit, so I decided to go with the simplest approach and include it within the sections already exist.

I just set the PR ready for review as I already did the latest changes and updated a couple of screenshots

repo: okteto/docs


text:
Still works?

I start the project but nothing happens.

@XxStR abandoned

@oleghalin
That sad :/
Anyway, I'm updating thank you very much.

@XxStR check Arcana repo

@XxStR If you want I can try to help you.
You can share your code here or to t.me/KhalinOleg

@oleghalin  Thanks.
Project

@oleghalin Hi, did you get a view on the project?

authors: XxStR oleghalin


text:
Understanding Power - Energy calculation by PZEM-004T

Hello all,
I am using PZEM-004T and Arduino UNO to measure electricity consumption. The module is now working well, I can see the values on Serial screen. However, I still have some questions as below:
1. How does PZEM-004T calculate the Energy (Wh) from Power (W)?
As the following pic: P = 25W, E = 609Wh = 609/3600 Ws.
With equation: E = P*t, we have t = E/P = 609/3600/25 = 0.006766 s.
So is this calculation correct, if not please tell me how the module calculates E from P.

2. In the pic, it seems the Energy is calculated instantly. How could we get the accumulated Energy and how to reset it to Zero programmatically?
Thanks a lot!
Pic sourcce: http://pdacontrolen.com/meter-pzem-004t-with-arduino-esp32-esp8266-python-raspberry-pi/

E is measured in Wh (Watt multiplied by Hour), so 609Wh = 6093600 Ws.
Here 609Wh means that you were consuming either 609 W during 1 hour, or 25 W during 609/25 = 24.36 hours, or even 1 W during 609 hours and so on.
You equation should be 6093600/25 = 87696s and it only shows how many seconds is needed to consume 609W with power of 1 W.

No, this is an accumulated Energy value and, unfortunately, it cannot be reset programmatically.

Thanks a lot for your quick response!

This isn't still clear enough because what if we want to know energy consumed after 5min. we know the voltage, current reading but not the time

This isn't still clear enough because what if we want to know energy consumed after 5min. we know the voltage, current reading but not the time

We also now total energy consumed by now. You just have to subtract Energy value 5 minutes ago from curent Energy value

Just to make it clear, you have to record values from PZEM with timestamp somewhere (external DB, file etc.)

Thanks so much for your fast reply, I can't get your first comment. Energy is the accumulation of power over a period of time. Energy after 5 min is power x 5min then you convert to kwh. But we can't control that here.
concerning your second comment, what is the time interval for each energy calculation made by the meter. I will love to know that can't find it anywhere in the datasheet.

It's not just about Power multiplied by Time.
Energy is calculated by PZEM's internal MCU using RMS method. It's calculated quite precisely (tens or maybe hundreds of readings per second. I guess...)

Do you have a link for learning how this energy is calculated. By the way, you will still need time to calculate energy and how do compensate for that.

is it something like this

this is for another metering IC, if you have for pzem-004t pls share

Sorry, I don't know if PZEM uses special MCU, or just calculates RMS programatically.
You may refer to this article https://learn.openenergymonitor.org/electricity-monitoring/ac-power-theory/arduino-maths
for more information on how to calculate RMS power having only instantaneous voltage and current measurements

And the Energy will be equal to something like [RMS power] x [number of samples] / [sample rate]

Found some info on PZEM-004t. Looks like it uses this metering IC
http://www.sdicmicro.com/DataSheet/SD3004 datasheet v0.2c.pdf

Thanks so much, will look into it

hello
I have read through the comments, but I can not implement them.
I have a constant load connected and I get 9.2 W displayed at 0.07A by 234V.
The Wh say 0.76.
somehow all this does not fit together or makes no sense to me
can someone break down my values and explain them to me?

authors: Aliiiu EDSTOBI olehs vandat07


text:
Failed to obtain access token

I am sorry to reach here.. I have copied the storewize platform ansible modules and created a simple playbook to obtain volumes list. I got stuck with Failed to obtain access token. My password is correct any inputs.

Hi.
Not sure what's causing your problem. Bur please check that your Spectrum Virtualize is running supported version and that the user you are using have right permission.
Check the role here, and Also create a issue if you have problems ibm.spectrum_virtualize

repo: olemyk/ansible-virtualize-playbooks


text:
🛑 Hitobito PBS is down

In aadff35, Hitobito PBS (https://db.scout.ch) was down:

HTTP code: 404
Response time: 1174 ms

Resolved: Hitobito PBS is back up in 36a9342 after 22 minutes.


text:
✨ Add support for user defined dap strategy

Why?
The default strategy configuration for dap does not work with current versions of nvim-dap or nvim-dap-ruby. It is missing the request field.
What?
I am proposing enabling users to provide their own strategy config implementation so they can customize it to their needs.
Alternatives
Change the existing get_strategy_config to include:
  request = "attach",
  error_on_failure = false,
  localfs = true,
  waiting = 1000,

Todo

[ ] Update documentation
[x] Suppress exit code 1 warning for test failures

error_on_failure = false,

[x] ~Fix inconsistent population of test output~

dap-ruby appends stdout to dap.repl instead of the process output tempfile
dap-ruby is configured as a type = "server" and it'll be challenging to capture the output stream as is

[x] ~Fix inconsistent coloring of test output~

When dap-ruby runs the specs, it doesn't have a TTY -- so the .rspec configured --color is ignored.
If --force-color is set, then the dap.repl includes the color codes

Demo
https://github.com/user-attachments/assets/2d86ca90-69e5-4a74-84d0-0d259cab5a3e

Thank you. I'll add @elken to this who authored the original PR

I can confirm it does work as I've been using it, unless you mean something changed in the week or so since?

I can confirm it does work as I've been using it, unless you mean something changed in the week or so since?
EDIT: Seems something has changed, okay but I don't see this PR adding it

I get an error message:

Config needs the request property which must be one of attach or launch

https://github.com/user-attachments/assets/2c24dd53-6f5b-4e77-94e5-a910139d603f
This PR makes the strategy configuration user editable.
An alternative would be to include these lines in the default strategy configuration:
  request = "attach",
  options = { source_filetype = "ruby" },
  error_on_failure = true,
  localfs = true,
  waiting = 1000,

At least request = "attach" is needed … I put all these in my user defined implementation of strategy_config but I suspect some may not be needed.

@elken I interpreted your statement:

okay but I don't see this PR adding it

As desiring a default configuration which worked!
This PR should now work without requiring users to override the default strategy_config. It does so by adding these values to the default get_strategy_config:
  request = "attach",
  error_on_failure = false,
  localfs = true,

diff --git a/lua/neotest-rspec/init.lua b/lua/neotest-rspec/init.lua
index c449491..75aa9db 100644
--- a/lua/neotest-rspec/init.lua
+++ b/lua/neotest-rspec/init.lua
@@ -123,8 +123,13 @@ function NeotestAdapter.build_spec(args)
   local function get_strategy_config(strategy, command, cwd)
     local strategy_config = {
       dap = function()
+        vim.fn.setenv("RUBYOPT", "-rdebug/open")
+        vim.fn.setenv("RUBY_DEBUG_COMMANDS", "c ;;")
         return {
           name = "Debug RSpec Tests",
+          request = "attach",
+          localfs = true,
+          waiting = 1000,
           type = "ruby",
           args = { unpack(command, 2) },
           command = command[1],

The above seems to work consistently now.
The env vars are needed for "reasons". Also probably worth noting that I'm calling bin/rspec in my config.

@elken indeed, a simpler contribution!
The setenv stuff could be simplified a bit.
nvim-dap-ruby https://github.com/suketa/nvim-dap-ruby/blob/main/lua/dap-ruby.lua#L81 configures debug to open (if required) so one change to your diff could be to simply:
diff --git a/lua/neotest-rspec/init.lua b/lua/neotest-rspec/init.lua
index c449491..75aa9db 100644
--- a/lua/neotest-rspec/init.lua
+++ b/lua/neotest-rspec/init.lua
@@ -123,8 +123,13 @@ function NeotestAdapter.build_spec(args)
   local function get_strategy_config(strategy, command, cwd)
     local strategy_config = {
       dap = function()
+        vim.fn.setenv("RUBYOPT", "-rdebug")
+        vim.fn.setenv("RUBY_DEBUG_NONSTOP", true)
         return {
           name = "Debug RSpec Tests",
+          request = "attach",
+          localfs = true,
+          waiting = 1000,
+          error_on_failure = false,
           type = "ruby",
           args = { unpack(command, 2) },
           command = command[1],

Would you prefer to not make the strategy configurable by users, and instead simply update get_strategy_config ?
I still believe neotest-rspec will need to include error_on_failure = false, in the strategy, so as to not notify the user with a message about an exit code of 1.
My rspec_cmd is configured like so, which works well with the nvim-ruby-dap existing environment variables, and is an alterative to using RUBYOPTS
rspec_cmd = function()
  return vim.tbl_flatten({
    "bundle",
    "exec",
    "rdbg",
    "--nonstop",
    "-c",
    "--",
    "rspec",
  })
end,

I'm not beholden to my code :smile: whichever change is least destructive and simplest for the user.
RE: making it configurable, I would see what the other adapters do. I don't know if it needs to be, but it's obviously not a massive deal if it is :smile:

Closing in favour of:

https://github.com/olimorris/neotest-rspec/pull/72

Pending further discovery in trends of adapter's exposing dap strategy configuration.

authors: cpb elken olimorris

repo: olimorris/neotest-rspec


text:
Collect and Remove Hash Table Methods

Implements void remove_kv_pair(hash_table* in_table, void* key, size_t key_size);
Implements vector_kv_pair collect_table(hash_table* in_table);
The tests are a little weak, will add more later and re-test for memory leaks

closes https://github.com/olincollege/p2p-networking/issues/15


text:
Multi level Aggregation using Query DSL`

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ ] elastic.v6 (for Elasticsearch 6.x)
{
  "query": {
    "match_all": {}
  },
  "aggs": {
    "date": {
      "date_histogram": {
        "field": "time",
        "interval": "hour",
        "format": "yyyy-MM-dd HH"
      },
      "aggs": {
        "count": {
          "sum": {
            "field": "no_of_hits"
          }
        }
      }
    }
  }
}

I tried in this way. Please correct me if I am wrong
query := elastic.NewMatchAllQuery()
aggs := elastic.NewDateHistogramAggregation().
			Field("time").
			Interval("hour").
			Format("yyyy-MM-dd HH")
aggs.SubAggregation("count", elastic.NewSumAggregation().Field("no_of_hits"))

searchResult, err := client.Search().
			Index("legitimate-bot-18.11.20").
			Type("legitimate").
			Query(query).
			Aggregation("date", aggs).
			Do(ctx)
hour_agg, found := searchResult.Aggregations.Terms("date")
for _, b := range hour_agg.Buckets {
       		count_agg, found := b.SumBucket("count")
       		log.Printf(", %d\n", count_agg.Value)

But not getting the correct result. Any help will be appriciated

I can say for sure that this works, using it every day. While I cannot run your code snippet, I need to make a guess. Can you change aggs.SubAggregatio(...) to aggs = aggs.SubAggregation(...) and try again.
Other than that, please see the largest integration test you can find in this library for an example of basically every kind of aggregation you can find, including sub-aggregations.

Expected query and the data but the data getting in the code is this.

I am a very newbie to this golang. May be I made a very small mistake. Can you please look

repo: olivere/elastic


text:
Periodic state jump in circular motions

When performing a circular motion with the bicycle, we see a jump in state once per circle. This is illustrated in the following plot:

This is likely due to how yaw angle is wrapped for z and C*x in the Kalman measurement update step:
template <typename T>
void Kalman<T>::measurement_update_state(const measurement_t& z) {
    m_x = m_system.normalize_state(m_x + m_K*(z - m_system.Cd()*m_x));
}

https://github.com/oliverlee/bicycle/blob/master/src/kalman.hh#L119-L122
As a result, we could have the case where
z = -179, C*x = 181 and z - C*x = -360 (degrees)

repo: oliverlee/phobos


text:
"No response" status can now be programmatically triggered

No response status can be triggered via sending NO_RESPONSE as a value of some valid characteristic. #48

Did not tested this myself but code can't make any harm as I see. Merging to dev branch.

@radionoise thank you very much for your contribution! It's pretty useful feature!

authors: Shaquu radionoise


text:
Avoid the need to download ollama manually

Would it be possible to use ollama-python straight out of the box without the need to download/install ollama manually first?

yes please I want this too

Hey - not planning to support this for now, thanks!

authors: GXcells IliasAarab ParthSareen

repo: ollama/ollama-python


text:
Inconsistent Responses from Identical Models

What is the issue?
I am new to Ollama and have noticed that when I ask a query using Ollama, the model's responses are quite poor. However, if I ask the same query using https://www.llama2.ai/, I receive much better responses. Can anyone explain what might be causing this difference? What could I be doing wrong?
# ! pip install -q pyautogen
# ! pip install -q 'litellm[proxy]'

import requests
import json

# Define the payload
payload = {
    "model": "llama3:8b",  # Changed model to match the curl version
    "prompt": """How does a neural network work?""" ,
    "format": "json",  # To ensure response is in JSON format
    "stream": False  # To disable streaming in the response
}

# Send the POST request to the API
response = requests.post("http://127.0.0.1:11434/api/generate", json=payload)
output = response.json()
print(output)

{'model': 'llama3:8b', 'created_at': '2024-09-12T06:26:59.001500912Z', 'response': '{ }\n\n ', 'done': True, 'done_reason': 'stop', 'context': [128006, 882, 128007, 271, 4438, 1587, 264, 30828, 4009, 990, 30, 128009, 128006, 78191, 128007, 271, 90, 557, 220], 'total_duration': 243709137, 'load_duration': 56054134, 'prompt_eval_count': 17, 'prompt_eval_duration': 39720000, 'eval_count': 4, 'eval_duration': 103353000}
Ollama model response: response': '{ }\n\n
URL: https://www.llama2.ai/
Model: Meta LLAMA3-8B
Response:
I'd be happy to explain how a neural network works!
A neural network is a type of machine learning model inspired by the structure and function of the human brain. It's a complex system made up of many interconnected nodes or "neurons," which process and transmit information.
Here's a simplified overview of how a neural network works:

Data Input: The neural network receives input data, which can be images, sound waves, text, or any other type of data that can be digitized.
Neuron Layers: The input data is fed into the first layer of neurons, called the input layer. Each neuron in this layer receives a set of input values and performs a calculation on them.
Activation Functions: The output of each neuron is then passed through an activation function, which determines whether the neuron should "fire" or not. Common activation functions include sigmoid, tanh, and ReLU (Rectified Linear Unit).
Hidden Layers: The output from the input layer is then passed to one or more hidden layers, which are made up of neurons that perform complex calculations on the input data. Each hidden layer can have multiple neurons, and each neuron in the layer receives input from the previous layer.
Output Layer: The output from the hidden layers is then passed to the output layer, which produces the final output of the neural network.
Training: During training, the neural network is presented with a large dataset of input-output pairs. The network adjusts the weights and biases of the connections between neurons to minimize the error between its predictions and the actual output.
Forward Propagation: During forward propagation, the input data flows through the network, and the output is calculated at each layer.
Backpropagation: During backpropagation, the error between the predicted output and the actual output is calculated, and the error is propagated backwards through the network. This process helps the network adjust the weights and biases to improve its performance.
Optimization: The network uses an optimization algorithm, such as stochastic gradient descent (SGD), to adjust the weights and biases based on the error calculated during backpropagation.
Repeat: The process of forward propagation, backpropagation, and optimization is repeated multiple times until the network converges or reaches a desired level of accuracy.
Neural networks can be used for a wide range of applications, including image and speech recognition, natural language processing, and predictive modeling. They're particularly useful when dealing with complex, non-linear relationships between inputs and outputs.
I hope this helps! Do you have any specific questions about neural networks or would you like me to elaborate on any of these points?

OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
No response

There might be some confusion about "format":"json".  In the request to ollama, it indicates the the model output should be formatted as JSON.  This has nothing to do with the JSON marshalling that requests does with the payload that it sends to and receives from the ollama service.  If you remove it you get an answer more like the one from llama2.ai:
--- 6771.py.orig	2024-09-13 18:34:19.572952124 +1000
+++ 6771.py	2024-09-13 18:34:42.853207233 +1000
@@ -5,11 +5,10 @@
 payload = {
     "model": "llama3:8b",  # Changed model to match the curl version
     "prompt": """How does a neural network work?""" ,
-    "format": "json",  # To ensure response is in JSON format
     "stream": False  # To disable streaming in the response
 }

 # Send the POST request to the API
 response = requests.post("http://127.0.0.1:11434/api/generate", json=payload)
 output = response.json()
-print(output)
+print(output["response"])

$ python3 6771.py
A fundamental question in the world of artificial intelligence!

A neural network is a type of machine learning model inspired by the structure
and function of the human brain. It's a complex system composed of many
interconnected nodes or "neurons," which process and transmit information to
each other.

Here's a simplified overview of how a neural network works:

**Basic Components:**

1. **Neurons (Nodes)**: These are the basic computing units in a neural
network. Each neuron receives input from other neurons, performs a computation
on that input, and then sends the output to other neurons.
2. **Connections (Edges)**: Neurons are connected by edges, which represent the
flow of information between them.
3. **Activation Functions**: Each neuron applies an activation function to its
output before sending it to other neurons.

**How Neural Networks Work:**

1. **Input Layer**: The input layer receives the input data, which is a set of
features or values that describe the problem you're trying to solve.
2. **Hidden Layers**: The input layer feeds into one or more hidden layers,
which are composed of multiple neurons. Each neuron in these layers applies an
activation function to its output and then sends it to other neurons.
3. **Output Layer**: The hidden layers feed into the output layer, which
produces the final output of the neural network.

**The Training Process:**

1. **Forward Pass**: The input data flows through the network, with each neuron
applying its activation function to the input from previous layers.
2. **Error Calculation**: The output of the network is compared to the desired
output (target), and an error is calculated based on the difference between the
two.
3. **Backpropagation**: The error is propagated backward through the network,
adjusting the weights and biases of each neuron to minimize the error.
4. **Optimization**: An optimization algorithm, such as Stochastic Gradient
Descent (SGD), is used to update the model's parameters based on the calculated
error.

**Key Concepts:**

1. **Weighted Sums**: Each neuron computes a weighted sum of its inputs, where
the weights represent the strength of the connections between neurons.
2. **Bias Terms**: A bias term is added to each neuron's output to introduce
some randomness and allow for non-linear relationships.
3. **Activation Functions**: These determine the output of each neuron based on
its input. Common activation functions include sigmoid, ReLU (Rectified Linear
Unit), and tanh.

**Types of Neural Networks:**

1. **Feedforward Networks**: Information flows only in one direction, from
input to output, without any feedback loops.
2. **Recurrent Neural Networks (RNNs)**: Feedback connections allow information
to flow backwards in time, enabling the network to capture temporal
dependencies.
3. **Convolutional Neural Networks (CNNs)**: Designed for image and signal
processing tasks, CNNs use convolutional and pooling layers to extract features.

This is a high-level overview of how neural networks work. If you're interested
in diving deeper, I'd be happy to explain more about the math behind neural
networks or discuss specific applications!

repo: ollama/ollama


text:
example doesn't compile for me

I'm getting a type error when trying to compile the example.
$ nim r --d:release --d:threadsafe example.nim
Hint: used config file '/home/itwrx/.choosenim/toolchains/nim-2.0.0/config/nim.cfg' [Conf]
Hint: used config file '/home/itwrx/.choosenim/toolchains/nim-2.0.0/config/config.nims' [Conf]
Hint: used config file '/var/www/betterweb-guildenstern/betterweb/nim.cfg' [Conf]
......................................................................................................................................................
/var/www/betterweb-guildenstern/betterweb/example.nim(13, 32) Error: type mismatch
Expression: getOrDefault(readData(getBody()), "say")
  [1] readData(getBody()): StringTableRef
  [2] "say": string

Expected one of (first mismatch at [position]):
[1] func getOrDefault(headers: HttpHeaders; key: string;
                  default = @[""].HttpHeaderValues): HttpHeaderValues

In previous versions, strtabs was automatically exported to user. But because I want the server to be just a very unmagical and unopinionated building block, I removed such export (you only need StringTableRef with certain header operations). So, the fix is to explicitly import strtabs when required, and I have modified the example accordingly. Need to document this also at some point...

authors: ITwrx olliNiinivaara

repo: olliNiinivaara/GuildenStern


text:
Custom Auth Example?

Hi! I don't quite understand the following
At this current moment in time, custom Auth drivers written for the base Auth class will not work. I'm currently looking into this particular issue but for the meantime, you can work around this by changing your closure to return an instance of Ollieread\Multiauth\Guard instead of the default.
Where do I need to return the ollieread version of the guard?
Thank you!

try this:
Auth::XXXX()->extend('name of driver', function()
{
$provider =  App::make('namespace\of\custom\provider');
return new Ollieread\Multiauth\Guard($provider, App::make('session.store'));
});
If you look at this guide to extending to a custom driver, you can see that they return new Illuminate\Auth\Guard - so I believe that is what he is referring to as the default that you have to switch out with Ollieread\Multiauth\Guard
http://toddish.co.uk/blog/creating-a-custom-laravel-4-auth-driver/

Actually I forgot the name parameter. So instead it is something like this:
Auth::XXXX()->extend('name of driver', function()
{
$provider = App::make('namespace\of\custom\provider');
return new Ollieread\Multiauth\Guard($provider, App::make('session.store'), 'XXXX');
});
You can read this thread for more explanation
https://github.com/ollieread/multiauth/pull/26

Will give this a try today! Thank you

authors: Siflax notflip

repo: ollieread/multiauth