text:
关于protocol/rmtp/stream.go下的TransStart()函数的问题

s.ws.Range(func(key, val interface{}) bool {
v := val.(*PackWriterCloser)
fmt.Printf(key.(string) + "\n")
if !v.init {
if err = s.cache.Send(v.w); err != nil {
log.Debugf("[%s] send cache packet error: %v, remove", v.w.Info(), err)
s.ws.Delete(key)
return true
}
fmt.Printf("key:%v, value:%v", key, val)
v.init = true
} else {
newPacket := p
if err = v.w.Write(&newPacket); err != nil {
log.Debugf("[%s] write packet error: %v, remove", v.w.Info(), err)
s.ws.Delete(key)
}
}
return true
})
上述代码遍历了某个推流stream下的ws（sync.map），循环向每个想要拉流的tcp连接写入av.Packet，如此一来在连接数很多时是否会导致效率极低，甚至影响推流写入cache的速度，在多人直播间中应该如何优化呢，也可能是本人理解错误了，希望大佬帮忙回答下，感谢

写入逻辑本质上是写入到一个chan里面，如果chan满了会做丢包处理，所以代码层面上这里本身不会引起阻塞从而有性能问题

repo: gwuhaolin/livego


text:
grouped natural conversion class and test and schema

added a class for GroupedNaturalConversion, a unit test, and an updated schema.

see issue https://github.com/gyorilab/mira/issues/345

Thanks, this looks good! I am still thinking about the right name for this, "Grouped" might not be the best choice for what this is, I'll think about an alternative. We will also look at other places in the package where the new template type would have to be handled.

Thanks, this looks good! I am still thinking about the right name for this, "Grouped" might not be the best choice for what this is, I'll think about an alternative. We will also look at other places in the package where the new template type would have to be handled.

thanks, I think the sbml processor should be updated as well
https://github.com/gyorilab/mira/blob/7d98f519f06a471284009b56e7af9b0d8f4201e9/mira/sources/sbml/processor.py#L300

Hi @augeorge, just an update: thanks for starting the implementation. I made some local changes to naming, etc. and we started on supporting the kind of metabolic model you are working with. This, however, requires overcoming multiple complications such as (1) handling some SBML corner cases related to species annotation (2) handling reversible reactions (3) mapping non-trivial stoichiometry to the template representation. We are making progress and will try to finish these new features as soon as possible.

It appears the box was not checked to allow maintainers to make changes to the PR so I will have to close this and open a new one with the new implementation.

source: gharchive/pull-request

authors: augeorge bgyori

repo: gyorilab/mira

license_type: permissive

license_source: github-api


text:
🛑 Undertale社区维基 测试站 - UTCWIKIT is down

In bb6c172, Undertale社区维基 测试站 - UTCWIKIT (https://test.utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区维基 测试站 - UTCWIKIT is back up in 829f132 after 26 minutes.

source: gharchive/issue

repo: gzombiejun/upptime

license: MIT


text:
Causal Classification Problem Type

New Problem Type for supporting Causal Classification.
Workflow:

Answer column contains integer encoder binary or multiclass target
Problem Type is Causal Classification Modeling
Metrics are AUC and Accuracy
Number of classes need to be selected via cfg
Pushing to HF and subsequent loading with additional head supported

Thanks @maxjeblick - will address.
I discussed with @pascal-pfeiffer that we can expect here for users to provide the correct inputs, but I agree that exceptions should be more clear.

Hello. I played a bit with LLM Studio in H20 Aquarium while solving H2O predict LLM Competition. Models fine-tuned for Casual Classification Problems have no classification_head.pth in downloaded or pushed to HF model files. Any ideas what I have missed in the settings or why that issue happens? Thank you!

Hi, @samvelkoch, I'll have a look into this.
Could you create a new issue for better tracking? Thanks!

Hi, @samvelkoch, I'll have a look into this. Could you create a new issue for better tracking? Thanks!

Thanks for quick reply. I've published it here since I'm not sure that it is a real issue or just my lack of experience with LLM Studio. Could you please check? I'll publish an issue now.

authors: maxjeblick psinger samvelkoch


text:
Investigate into explained var ratio for PCA

See PCA demo notebook

Fixed

authors: mstensmo navdeep-G


text:
onRead sequence question.

Last version i used is 1.4.3, when i try to read value from esp32, the value that i get is after onRead process(i will call a setValue() inside onRead())
void onRead(NimBLECharacteristic *characteristic, NimBLEConnInfo &connInfo)
    {
        String rxValue = getCurrentPatternName();
        characteristic->setValue(rxValue);
        Serial.println("pathName on Read: " + rxValue);
    }

After i update to 2.1.1, when i try to read value, the value is old value which is last time i call setValue().
Right now, i want to know if this sequence is change and is there a way to change the sequence from the code.

Not sure why you closed this, did you resolve your issue?


text:
Headers in codeblocks should be ignored

I noticed that # within Codeblocks (within 3 backticks) are taken into account for the table of content.
Additionally, they are rendered within the codeblock.

Uhm... nasty. This could be a bug in the discount markdown library.
Did you try escaping the #s with a backslash? That normally does the trick. Not ideal, but a workaround at least!

Uhm... nasty. This could be a bug in the discount markdown library.
Did you try escaping the #s with a backslash? That normally does the trick. Not ideal, but a workaround at least!

I haven't tried escaping yet. I must admin that the document is kind of strange. I have a rather large codeblock there with hundrets of short lines, many of them begin with a hash.
I also noticed this message twice when processing the .md: (!) Snippet 'catalogReturnLink' not defined.
Unfortunally, I could not give you the source because it contains secret internals of our company.
So I just tried to assemble a simple document which triggers the behaviour.
For this I created that:
# Test

## Test

```
# comment
# another comment
a string with backslashes d:\folder\file.ext
; somthing *else*
# everything within a code block should be printed out as is?
```

But with this, I get this error:
fatal.nim(49)            sysFatal
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]

I haven't tried escaping yet. I must admin that the document is kind of strange. I have a rather large codeblock there with hundrets of short lines, many of them begin with a hash.
I also noticed this message twice when processing the .md: (!) Snippet 'catalogReturnLink' not defined.
Unfortunally, I could not give you the source because it contains secret internals of our company.
So I just tried to assemble a simple document which triggers the behaviour.
For this I created that:
# Test

## Test

```
# comment
# another comment
a string with backslashes d:\folder\file.ext
; somthing *else*
# everything within a code block should be printed out as is?
```

But with this, I get this error:
fatal.nim(49)            sysFatal
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]

OK this is weird, I just ran the snippet you posted through HastyScribe and didn't get any error, furthermore the conversion looks alright, and #s within the code block are ignored:

Test

Test

# comment
# another comment
a string with backslashes d:\folder\file.ext
; somthing *else*
 # everything within a code block should be         printed out as is?

There must be something else in your document that causes that behavior.
The other error about the snippet not being found should be due to a string like {{catalogReturnLink}} somewhere in your document. That basically is a reference to a text snippet (which is however not defined anywhere) according to HastyScribe syntax.

OK this is weird, I just ran the snippet you posted through HastyScribe and didn't get any error, furthermore the conversion looks alright, and #s within the code block are ignored:

Test

Test

# comment
# another comment
a string with backslashes d:\folder\file.ext
; somthing *else*
 # everything within a code block should be         printed out as is?

There must be something else in your document that causes that behavior.
The other error about the snippet not being found should be due to a string like {{catalogReturnLink}} somewhere in your document. That basically is a reference to a text snippet (which is however not defined anywhere) according to HastyScribe syntax.

Hello, thank you. Yes, I tried the last example again by myself, and it worked. I think I should better hit save in the editor before trying something like this. Ok, I'll try to derive a document from the real one to narrow down the cause - tomorrow.

Hello, thank you. Yes, I tried the last example again by myself, and it worked. I think I should better hit save in the editor before trying something like this. Ok, I'll try to derive a document from the real one to narrow down the cause - tomorrow.

Just tested the suspicious codeblock alone, and it just works well.
So the reason for the "hickup" is some other fact.
I'll investigate further....

Just tested the suspicious codeblock alone, and it just works well.
So the reason for the "hickup" is some other fact.
I'll investigate further....

While testing, the following failed:
```
    <location path="Default Web Site">
        <system.webServer>
            <handlers accessPolicy="Read, Execute, Script">
                <add name="Tclsh" path="*.tsh" verb="*" modules="CgiModule" scriptProcessor="D:\htdocs\cgi-bin\cgitcl.exe "%s"" resourceType="File" requireAccess="Execute" />
            </handlers>
            <security>
                <authentication>
                    <windowsAuthentication enabled="true" />
                    <anonymousAuthentication enabled="false" />
                </authentication>
            </security>
        </system.webServer>
    </location>
    <location path="Default Web Site/cgi-bin">
        <system.webServer>
            <handlers>
                <add name="ZoomSearch" path="*.cgi" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" />
            </handlers>
        </system.webServer>
    </location>

</configuration>
```

The resulting webpage looks like this:
``` <system.webServer> </system.webServer> <system.webServer> </system.webServer>
``

It should't matter what´s inside the backticks?

While testing, the following failed:
```
    <location path="Default Web Site">
        <system.webServer>
            <handlers accessPolicy="Read, Execute, Script">
                <add name="Tclsh" path="*.tsh" verb="*" modules="CgiModule" scriptProcessor="D:\htdocs\cgi-bin\cgitcl.exe "%s"" resourceType="File" requireAccess="Execute" />
            </handlers>
            <security>
                <authentication>
                    <windowsAuthentication enabled="true" />
                    <anonymousAuthentication enabled="false" />
                </authentication>
            </security>
        </system.webServer>
    </location>
    <location path="Default Web Site/cgi-bin">
        <system.webServer>
            <handlers>
                <add name="ZoomSearch" path="*.cgi" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" />
            </handlers>
        </system.webServer>
    </location>

</configuration>
```

The resulting webpage looks like this:
``` <system.webServer> </system.webServer> <system.webServer> </system.webServer>
``

It should't matter what´s inside the backticks?

I think I got it!
I'm very sorry. I had a construct somewhere like this:
...... [...comment....].......

I think the square brackets are interpreted as part of a link structure like this:
[name](url)

After I changed the text to
.... {...comment...}......

everything works fine!

I think I got it!
I'm very sorry. I had a construct somewhere like this:
...... [...comment....].......

I think the square brackets are interpreted as part of a link structure like this:
[name](url)

After I changed the text to
.... {...comment...}......

everything works fine!

Just tried another example, but it works perfectly well:
# Test

```
# Test11
Other
## Test12
```

Wrong link: [Something in square brackets] not directly followed by (round brackets)

```
# Test21
Other
## Test22
```

It seems to me that the reason for the error was a unknown combination of things which I couldn't easily put into an easy example for testing yet.

Just tried another example, but it works perfectly well:
# Test

```
# Test11
Other
## Test12
```

Wrong link: [Something in square brackets] not directly followed by (round brackets)

```
# Test21
Other
## Test22
```

It seems to me that the reason for the error was a unknown combination of things which I couldn't easily put into an easy example for testing yet.


text:
Fixed sqrt() VU0 calcs on real PS2

Lack of vwaitq operand, after vsqrt/vrsqrt instructions, will cause wrong calculations on real PS2

Wrong branch


text:
Fixed bug preventing file rename in different cases

Fixed bug: when no output directory was specified, database was specified and a whole folder was converted the files were not renamed according to the database.
Use OutputFolder /OUT instead of outputpath from /F when converting an entire directory

Merged this PR with some minor changes... thanks @mdomnita for pointing out.

license: mit

license_source: bigquery


text:
Provide "raw" data file in docs

The idea is that the UI team could use that to expose the rules and their metadata to users via the web UI.
Do some extra work so that the package information is available in a more convenient place.

Let's merge.

repo: hacbs-contract/ec-policies


text:
Create  Component

Creates a  Component
has props for

'color' (green, blue, red, etc...)
'variant' (light, primary, dark)

Resolves #28

WAIT WOOPS i added one tiny comment thats it

good to merge whenever you want!


text:
Level 3 Crafting Assets

shows ":Kingpin: Kingpin" instead of the actual emoji

Level 3 crafting assets are now in the slack.

authors: hkatzdev rfblock

repo: hackagotchi/hackagotchi


text:
CyberCity-MelonMars

[✔ ] I have read the steps to getting a blot

[ ✔] I am submitting art that...

[ ✔] is algorithmically generated (will change each time the program is run)
[ ✔] is drawable on a blot (fits in the work area & doesn't overlap too much)
[ ✔] is original (not copied from somewhere else)

[x] Optional, if you used a tutorial or based your art on something else, please include the link here:
This is based on some shader art I saw, City lights by Martin

Artwork:
This artwork is, as previously mentioned, based off of cyberpunk city lights at night, with many different colors, and flying cars sprawled throughout the city, as buildings mesh into blocks.
Coding experience:
I've been coding sort of off and on for the past 3 years, but very rarely in Javascript. For me, this was a real learning experience as before this, I hadn't ever really used a function or even a loop in js. I also haven't created algorithmic artwork before, and found this a really enjoyable experience.

Thanks.
I made the suggested changes, adding lanes, sidewalks, and stuff on roofs. Additionally, I realized I had committed the wrong code originally, without the support for skyscrapers, which I added.
The attached screenshot is the new and improved version, with color taken out to improve readability.

Seeing as this hasn't been updated in over a month, I'm going to close the PR for now. You're free to make a new one in the future with the same artwork if you'd like! Reach out to me @ alexren on the slack if you have any questions!

authors: MelonMars qcoral

repo: hackclub/blot


text:
WIP: SD card support in Spade

NOT READY FOR MERGE, VERY MUCH WIP!

I am closing this PR as it doesn't seem likely to land in short order.  Of course, feel free to reopen the PR when it's closer to a landable form.

authors: grymmy polypixeldev

repo: hackclub/sprig


text:
Update virus_plowing.js

Update virus_plowing.js to include the ability to restart, fixing placement of text, and fixing a bug where the player’s choordinates would go off the screen, but the image wouldn’t.

ok!


text:
Not able to download files

When I try to download a folder which is above 10-15MB, it will start to download and after a few seconds download will fail saying Network Error. Not sure what is the issue, is there a cap on the size of zip file download?
PS. Jupyter notebooks are hosted on Kubernetes.

The issue was with the k8s ambassador, it was timing out and stopping the download. Resolved by disabling the timeout.

repo: hadim/jupyter-archive


text:
右上角动态弹窗内容

感觉大佬可以参考一下原版样式再改改？UP名称不醒目，上传了三个字感觉不是很有必要，标题名称最多三行配上右边对齐的缩略图，这样挺好，当然怎么改大佬说了算，总体来说还是很棒的，感谢大佬

好像也是，有空改改

調整過後的，下版本就有了，問題先關閉了如果有設計的建議可以繼續說明我會再次開啓問題

authors: Anonywp hakadao

repo: hakadao/BewlyBewly


text:
Are the pin numbers arranged clockwise?

Are the pin numbers arranged clockwise?

yes , arranged clockwise.
and the zero is positioned in the top right of the circle

Hi
How to create a square with a rectangle

repo: halfmonty/StringArtGenerator


text:
⚠ ClamAV has degraded performance

In e2bf19b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 100 ms

Resolved: ClamAV performance has improved in 1e053b4.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

In 179abc4, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 175 ms

Resolved: ClamAV performance has improved in 4d5da99.


text:
⚠ ClamAV has degraded performance

In d61e980, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 51 ms

Resolved: ClamAV performance has improved in 55a7c05.


text:
⚠ ClamAV has degraded performance

In f231b2b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 201 ms

Resolved: ClamAV performance has improved in cd07544.


text:
Multi branch

This PR is almost ready, some further tests are in progress, but the structure of the main algorithm is correct.

I've finished testing this branch by using a comparison test; compare the number of mismatches as computed by doing all of the alignments at the same time via compute_mismatches (that compares the read against the entire graph), vs manual_mismatches that first reconstructs the sequence at at a given position (for each allele) and then compares against the read.
Specifically, I've tested all of the previously aligned (for the Optitype runs) reads (120 fasta files with around 1000 reads each) against the A_nuc, A_gen, B_nuc, B_gen, C_nuc, C_gen, DRB_nuc, and DRB1_gen, IMGTHLA alignment files.

repo: hammerlab/prohlatype


text:
Update sbt-sonatype to 3.9.11

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

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

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

Superseded by #57.

repo: hanabix/webot


text:
Added basic class docstrings

I need to add more details and init variables

Hi, I think this should merge fine. It is just single line brief descriptions to test the review process.


text:
如何在分词时去掉停用词？

我想把分词结果中的“xx的”这种结果去掉，只留下xx，该怎么做？

https://github.com/hankcs/HanLP/tree/master/src/test/java/com/hankcs/demo

authors: T-baby hankcs

repo: hankcs/HanLP


text:
Type-safe(r) properties

Currently there are a bunch of HashMap<String, String> around which give a lot of potential for errors & make some things fallible that shouldn't be fallible. We should look into making these more type-safe, perhaps by introducing an enum for keys. This may require changes in iceberg-rust as we import most of the offending types from there (Table|ViewMetadata).

Another option would be to write wrappers around the iceberg-rust types, either as traits or as some class wrapper, that would ensure only writing valid data, reading would remain fallible but that would be handled uniformly on the respective type instead of at every location of usage.

We have some leftovers such as "write.metadata.compression-codec" and "write.data.path" that we should migrate to the iceberg-ext crate

authors: c-thiel twuebi

repo: hansetag/iceberg-catalog


text:
[Question] 𝖵𝖨𝖱𝖠𝖫 𝑻𝑹𝑬𝑵𝑫𝑰𝑵𝑮﹏!! 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video 𝙻𝚎𝚊𝚔𝚎𝚍 Viral 𝖬𝖬𝖲 Original Link On Social Media X Full Now

Question
-2 Minutes ago 𝖵𝖨𝖱𝖠𝖫 𝑻𝑹𝑬𝑵𝑫𝑰𝑵𝑮﹏!! 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video 𝙻𝚎𝚊𝚔𝚎𝚍 Viral 𝖬𝖬𝖲 Original Link On Social Media X Full Now
L𝚎aked Video 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Original Video Viral Video L𝚎aked on X Twitter Telegram
..
..
🌐 𝖢𝖫𝖨𝖢𝖪 𝖧𝖤𝖱𝖤 🟢==►► 𝖶𝖠𝖳𝖢𝖧 𝖭𝖮𝖶
..
..
🔴 𝖢𝖫𝖨𝖢𝖪 𝖧𝖤𝖱𝖤 🌐==►► 𝖣𝗈𝗐𝗇𝗅𝗈𝖺𝖽 𝖭𝗈𝗐
..
..
..
..
[-wATCH-]— 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video Original Video Link 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video Viral On Social Media X Trending Now
[-wATCH-]— 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 ʟᴇᴀᴋᴇᴅ Video ᴠɪʀᴀʟ On Social Media ˣ ᵀʷⁱᵗᵗᵉʳ
[-wATCH-]— 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 ʟᴇᴀᴋᴇᴅ Video ᴠɪʀᴀʟ On Social Media ˣ ᵀʷⁱᵗᵗᵉʳ
[-wATCH-]— 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video Original Video Link 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Video Viral On Social Media X Trending Now
𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Original Video video took the internet by storm and amazed viewers on various social media platforms. 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊, a young and talented digital creator, recently became famous thanks to this interesting video.
L𝚎aked Video 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Original Video Viral Video L𝚎aked on X Twitter
𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Original Video video oficial twitter
L𝚎aked Video 𝙽𝚒𝚖𝚛𝚊 𝙼𝚎𝚑𝚛𝚊 Original Video Viral Video L𝚎aked on X Twitter..
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

 🟢🟢 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 ＷＡＴＣＨ ＮＯＷ
 🔴🔴 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 Ｄｏｗｎｌｏａｄ Ｎｏｗ

...
...
....
 🟢🟢 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 ＷＡＴＣＨ ＮＯＷ
 🔴🔴 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 Ｄｏｗｎｌｏａｄ Ｎｏｗ

...
...
....
 🟢🟢 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 ＷＡＴＣＨ ＮＯＷ
 🔴🔴 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 Ｄｏｗｎｌｏａｄ Ｎｏｗ

...
...
....
 🟢🟢 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 ＷＡＴＣＨ ＮＯＷ
 🔴🔴 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 Ｄｏｗｎｌｏａｄ Ｎｏｗ

...
...
....
 🟢🟢 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 ＷＡＴＣＨ ＮＯＷ
 🔴🔴 ＣＬＩＣＫ ＨＥＲＥ➤🌐👉👉 Ｄｏｗｎｌｏａｄ Ｎｏｗ
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

authors: Laneyah mugnimiradg

repo: haotian-liu/LLaVA


text:
FHIR 5.3.2 maven release

Hi, I've noticed that FHIR 5.3.2 was released on Maven, but the release tag is missing on github, as well as the release docu on https://hapifhir.io.
What this a snapshot that was released to Maven? Or just the docu is still in progress?

pinging @KevinDougan-SmileCDR as you seem to have had been working on the backported changes.

repo: hapifhir/hapi-fhir


text:
Switches not working in 2024.1.5

So, I installed the new entity.py (committed on the 19th Jan) in the evnex custom component directory.  I then upgraded HA Core to the latest 2024.1.5.  Evnex now loads but there is an issue with the switches, (log entry below).  Have I missed a dependancy? Does it need more than just the entity module?
Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:360
Integration: Switch (documentation, issues)
First occurred: 13:56:48 (1 occurrences)
Last logged: 13:56:48
Error while setting up evnex platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/evnex/switch.py", line 139, in async_setup_entry
EvnexChargerAvailabilitySwitch(
File "/config/custom_components/evnex/switch.py", line 72, in init
super().init(
File "/config/custom_components/evnex/entity.py", line 107, in init
super().init(coordinator, charger_id=charger_id)
File "/config/custom_components/evnex/entity.py", line 73, in init
self._attr_unique_id = self.charger_id + self.entity_description.key
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'EvnexChargerAvailabilitySwitch' object has no attribute 'entity_description'

In switch.py line 76 needs to be moved to line 71 and slightly amended I think based on your log:
self.entity_description = SwitchEntityDescription(
            key="_".join(["connector", connector_id, "availability_switch"]),
            name=f"Connector {connector_id} Availability",
        )

Thanks for the fast reply. I have tried what you suggest - here is the relevant modified section from switch.py now:
`class EvnexChargerAvailabilitySwitch(EvnexChargePointConnectorEntity, SwitchEntity):
def init(self, api_client, coordinator, charger_id, connector_id="1"):
"""Initialise the switch."""
self.evnex: Evnex = api_client
	self.entity_description = SwitchEntityDescription(
        key="_".join(["connector", connector_id, "availability_switch"]),
        name=f"Connector {connector_id} Availability",
    )

    super().__init__(
        coordinator=coordinator, charger_id=charger_id, connector_id=connector_id
    )

`
This gives in the log:
Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:360
Integration: Switch (documentation, issues)
First occurred: 21 January 2024 at 13:56:48 (2 occurrences)
Last logged: 09:20:49
Error while setting up evnex platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/evnex/switch.py", line 139, in async_setup_entry
EvnexChargerAvailabilitySwitch(
File "/config/custom_components/evnex/switch.py", line 72, in init
super().init(
File "/config/custom_components/evnex/entity.py", line 107, in init
super().init(coordinator, charger_id=charger_id)
File "/config/custom_components/evnex/entity.py", line 73, in init
self._attr_unique_id = self.charger_id + self.entity_description.key
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'EvnexChargerAvailabilitySwitch' object has no attribute 'entity_description'

Hmm, it may need entity_description: SwitchEntityDescription just after the class definition line 67 and before the __init__ definition but I'm unsure why as the entity_description should be inherited from the SwitchEntity class

Hmm, still no joy. Exactly the same error in the log.
AttributeError: 'EvnexChargerAvailabilitySwitch' object has no attribute 'entity_description'

@hardbyte any ideas as to why the error?

Just to recap, it worked fine in 2024.1.3. It stopped working when I upgraded to 2024.1.5 and used the new entity.py file for evnex (which fixed the entity issue which came with 2024.1.4). Unfortunately I did both at the same time. I could regress to 2024.1.3 to see if it works, but would that be OK with the new entity.py file?

repo: hardbyte/ha-evnex


text:
Run shell with custom arguments set by vim variable

More customisation it would be nice to have.

Also may be nice to allow the user to set the shell that VSH uses independently of the 'shell' that vim has set.

repo: hardenedapple/vsh


text:
chore: update code owners for CDE docs

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: \ update code owners for CDE Docs
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[x] Successful preview build.
[ ] Code owner review.
[x] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://671b167d860466d5c31fb225--harness-developer.netlify.app

repo: harness/developer-hub


text:
Remove plugin from config.resolve

Webpack also provides support for plugins for the resolver.
config.resolver.plugins = [ ... ]
It would be a great feature if we had the same set of edit, append, delete, etc. features for those plugins.

I see what you're saying. Are there other instances where you'd want to identify and filter out anything of that instance type? How would you identify config.plugins-filter?

@garrettmaring what's the word? Is it okay if I close out this issue?

Sorry, for the delay here. After becoming more comfortable with edit/remove with getPaths, I think this isn't needed. It's easy to work with the current methods to accomplish the above 👍

@garrettmaring glad to hear!

authors: garrettmaring harrysolovay

repo: harrysolovay/rescripts


text:
WD 1.4 Tagger

https://github.com/toriato/stable-diffusion-webui-wd14-tagger

11a491e


text:
[BUG] incorrect title and favicon

Describe the bug
Dashboard shows incorrect title and favicon when access with login-ed session.

To Reproduce
Steps to reproduce the behavior:

Install Harvester And setup default password
Login to the dashboard, and it displays correct one.  (Harvester and green favicon)
Open another tab, access to https://<vip>/, will be redirect to dashboard page
Then the title displays Rancher and blue favicon (rancher's icon)

Expected behavior
Step 2. and 4. visiting same URL, it should have the same behavior.
Environment:

Harvester ISO version: master-d21b9161-head
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal DL360 3nodes
ui-source Option: External  (select Bundled hit the issue too)

Tested in master-119c2c48-head. Verified as fixed. Tested in

main page
settings
support

repo: harvester/harvester


text:
[FEATURE] Terraform Input Device Support

Is your feature request related to a problem? Please describe.
The VNC console (with Windows at least) is very problematic without the 'USB Tablet' input option specified (under Advanced). So far as I can determine, this flag cannot currently be enabled in the VM definition using the latest version of the Harvester and the Harvester Terraform provider.
Describe the solution you'd like
Ideally, all of the options which can be specified in the UI (at least) should be specifiable from the Terraform resource definition. This item (USB Tablet interface) in particular is very important in our use case, because the Windows UI seems to be unusable from the Console without it.
Describe alternatives you've considered
The only alternative that we can see is manually enabling the option in the Harvester web UI after the VM is created. This requires a restart of the VM, which is less than ideal.
Additional context
I have done some initial research on what would be required to add this capability into the Harvester Terraform provider. Unfortunately, it appears that the required schema is not currently exposed by the 'Builder.VM' struct in Harvester.
[https://github.com/harvester/harvester/blob/9c3f8a635e371674dd9b2a9ff0c9b4bbafa07afe/pkg/builder/vm.go#L63]
Therefore, it appears the feature enhancement will require improvements to both Harvester and the Harvester Terraform provider. On the plus side, this capabilty appears to be cleanly/simply exposed by the KubeVirt API on which the Harvester Builder API depends.
[https://github.com/kubevirt/kubevirt/blob/main/staging/src/kubevirt.io/api/core/v1/schema.go#L512]
We are willing to help when possible with this, given some guidance, help with testing/validation, etc. However, our team has very limited Go experience.

Verified this feature has been implemented.

Test Information

Environment: qemu/KVM 2 nodes
Harvester Version: master-0f10441a-head
ui-source Option: Auto
Harvester Terraform Provider Version: master or >0.6.1

Verify Steps:

Install Harvester with any nodes
Setup Harvester Terraform Provider^1
Apply a VM with usb inputs (example snippet as below)
Login to dashboard, navigate to Virtual Machines page
The VM should be created and Enable Usb Tablet should be checked

resource "harvester_image" "ubuntu20" {
  name      = "ubuntu20"
  namespace = "harvester-public"

  display_name = "ubuntu-20.04-server-cloudimg-amd64.img"
  source_type  = "download"
  url          = "http://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64.img"
}

resource "harvester_virtualmachine" "ubuntu20" {
  name                 = "ubuntu20"
  namespace            = "default"
  restart_after_update = true

  description = "test ubuntu20 raw image"
  tags = {
    ssh-user = "ubuntu"
  }

  cpu    = 2
  memory = "2Gi"

  efi         = true
  secure_boot = true

  run_strategy    = "RerunOnFailure"
  hostname        = "ubuntu20"
  reserved_memory = "100Mi"
  machine_type    = "q35"

  network_interface {
    name           = "nic-1"
    wait_for_lease = true
  }

  disk {
    name       = "rootdisk"
    type       = "disk"
    size       = "10Gi"
    bus        = "virtio"
    boot_order = 1

    image       = harvester_image.ubuntu20.id
    auto_delete = true
  }

  disk {
    name        = "emptydisk"
    type        = "disk"
    size        = "20Gi"
    bus         = "virtio"
    auto_delete = true
  }

  input {
   name         = "tablet"
   type         = "tablet"
   bus          = "usb"
}

  cloudinit {
    user_data    = <<-EOF
      #cloud-config
      password: 123456
      chpasswd:
        expire: false
      ssh_pwauth: true
      package_update: true
      packages:
        - qemu-guest-agent
      runcmd:
        - - systemctl
          - enable
          - '--now'
          - qemu-guest-agent
      EOF
    network_data = ""
  }
}


text:
[BUG] VM will be shutdown automatically when upgrading

Describe the bug
When upgrading Harvester with 3 VMs(guest cluster, created by Rancher), VMs will be shutdown during the upgrade.
To Reproduce
Steps to reproduce the behavior:

Install Harvester with 2 nodes
Import Harvester to Rancher v2.6.9
Create rke2 cluster
perform upgrade

Expected behavior
VM should be migrated to other node, not shut down.
Environment:

Harvester ISO version: v1.1.0 to v1.1.1-7c1f4a24-head
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal DL360G9 2 nodes

Additional context
Discovered when testing 2 nodes upgrade.

Hey, does this mean we can upgrade without shuting down all VMs?  In the docs, you specify that you recommend shutting down all "Users VMs" - not sure exactly what this means, and it's not really practical if you have multiple guest clusters managed by Rancher on Harvester - shutting down all the vms prior to upgrade can cause quite a mess when trying to bring everything back up...  Before I proceed with upgrading 1.0.3 to 1.1.1 that will be coming out in the next days, I just want to check if leaving the VMs on is possible at all...
Thanks!

Hi @RegisHubelia, yes, when you upgrading to v1.1.1, VMs would not need to be shutting down.

Verified this bug has been fixed.
Test Information

Environment: baremetal DL360G9 5 nodes
Harvester Version: v1.1.0 upgrade to v1.1.1-master-0cdb5a5b-head
ui-source Option: Auto
Rancher Version: v2.7.0

Verify Steps:

Install Harvester with at least 3 nodes
Login to Harvester Dashboard
Create a Image for VM creation
Create a VLAN network
Login to Rancher Dashboard
Navigate to Virtualization Management, Import Harvester
Navigate to Cluster Management, Create RKE2 cluster with 3 VMs
Perform Harvester upgrade ^1
During the upgrade, login to one of VMs, ping another VM
Connection should not lost

VM will be migrated to another node automatically if needed

Hi @lanfon72, following my comment https://github.com/harvester/harvester/issues/3206#issuecomment-1329434640, you said that the VMs would not need to be shutdown...  But from the documentation:
"Starting from version v1.1.0, Harvester brings in the new VLAN enhancement feature. Due to the implementation changes, all user VMs must shut down if the upgrade is from v1.0.3 to v1.1.1. Please stop the VMs before an upgrade. Upgrading from v1.1.0 to v1.1.1 doesn't have this restriction."
I would like to clarify: can we leave the VMs on or it's not possible and I'd need to shutdown all VMs and my 4 kubernetes clusters prior to the upgrade?  Again, upgrading from 1.0.3 to 1.1.1.
Thanks!

Hi @RegisHubelia, sorry for the inconvenience.  for this issue, we will guarantee VMs will be migrated to other node while upgrade from v1.1.0 to v1.1.1.
If you are not in hurry, I will check the behavior for v1.0.3 to v1.1.1.
Thanks,
Lanfon

Not in a rush, there are a few features I need network wise, but if I can prevent shutting down all the guest clusters, it would be best.  It is, after all, a production environment...
Thank you very much!!

Hi @RegisHubelia, our network implementation changes will affect all nodes, so downtime is unpreventable.  to minimize downtime, you can keep all VMs up while upgrading, VMs will be shutting down during the system upgrade; then you can start your VMs after one node upgraded, VMs will be scheduled to the upgraded node.
Thanks,
Lanfon

Hi @Martin-Weiss, I understand that future releases won't be a problem - but I am concerned about the upgrade from 1.0.3 to 1.1.1, I know it's a one shot deal, but I have a lot at stake and a lot can go wrong, so I just want to make sure the best approach for this specific upgrade, if that makes sense?
Thanks!

Hi @RegisHubelia, when upgrading from 1.0.3, network need to be reconfigured, so the progress steps would like:

Preload image for each node
Upgrade Harvester system service

shutting down all VMs before upgrade network

Upgrade first node

pre-drain, post-drain, reboot

Upgrade other nodes

So it is not possible for us to keep VMs up. (Upgrade network will affect all VMs)
Thanks,
Lanfon


text:
chore: bump bci image to 15.6

Related issue: harvester/harvester#6568

@mergify backport v0.3.x

repo: harvester/load-balancer-harvester


text:
Data loading is too slow #217

Using SQLAlchemy Core for better INSERT performance. Tested with complete accidents file, while getting an error :

finished processing all directories, except: static/data/lms/Accidents Type 1/2007104H1: x and y coordinates are missing from the accidents file!
static/data/lms/Accidents Type 1/2005104H1: x and y coordinates are missing from the accidents file!"

Results are -
Total rows imported: 619815
Total seconds: 255

Thanks, 255 seconds is definitely faster than before!
The error is known. Issue #136 is about it.
Do you think you could squash your commits so as not to have several changes done and then undone in subsequent commits?

Hey @danielhers, I created a new pull request for the fix.
You can close this one.

authors: danielhers eladkarakuli

repo: hasadna/anyway


text:
fix(mobile): close menu after navigation

Close the menu when a user clicks on an item in it, by setting setDrawerOpen to false when clicked.
close #413

@Mordechai1323 do you need a help with solve the conflicts?

Hi, how are you? do you need any help or have any question?

thanks❤

run npm i, and push the updated package-lock

have you seen the build output?

authors: Mordechai1323 NoamGaash shootermv

repo: hasadna/open-bus-map-search


text:
Two Servers running inside EC2

I have two rd server running inside AWS EC2 in a single subnet...but can't make users from one server "see" users from another server...
Server one IP 172.16.2.99
User: Carl, Mike, Bill
Server two IP 172.16.2.100
User: James, Marcus, Chilli
In each server user can see other logged in same server...
I'v installed Bridge and Multicast without success...
Whats wrong?

Have you tried installing the multicast service?

authors: hasankhan lucterra

repo: hasankhan/Squiggle


text:
Error: No matching key. history: 1714728659779782

Sometimes hedera-wallet-connect will start logging errors in the browser console:
 Error: No matching key. history: 1715034600376459
    at Vt.getRecord (x25519.ts:616:1)
    at Vt.get (x25519.ts:616:1)
    at ds.onRelayEventResponse (index.ts:54:1)
    at EventEmitter.<anonymous> (index.ts:54:1)

Once this happens the communication between wallets and applications becomes unreliable.  Sometimes the transactions will continue processing as normal, other times the wallets will begin throwing exceptions before the transaction has even been signed (though the transactions will usually still process).  Sometimes the wallet will stop receiving the transaction signature requests.  The only way to overcome this is to disconnect the wallet from the app and close the browser.
Reproducing is not always straightforward.  I am able to do this consistently in the hashconnect react example application.  Just connect your wallet, then try to create a transaction.  See video for example.
https://github.com/hashgraph/hedera-wallet-connect/assets/34159275/323d3290-6247-418d-a436-0c163932afb7
Applications are only as reliable as their wallet interactions.  We need this to work more reliably if we want hedera-wallet-connect to be a viable option for app developers.

OS: Windows
Browser Chrome, Edge

+1 seeing this issue as well. Very difficult to reproduce on other machines, but seems to persist on the same machine.

This seems to be an expected error that might be able to be handled more efficiently - https://docs.walletconnect.com/web3wallet/wallet-usage#-expected-errors

This seems to be an expected error that might be able to be handled more efficiently - https://docs.walletconnect.com/web3wallet/wallet-usage#-expected-errors

Appreciate the link.  I arrived at a similar conclusion, and determined that the connectivity issues I was seeing were more likely related to hashconnect v3 than hedera-wallet-connect.  I'll close this issue, as the described error message seems to be pervasive and mostly unavoidable in the world of WalletConnect. 🤷

Same issue for me, keeps coming up

@supermonkeybrainz seem like this issue is on hedera-wallet-connect.

https://www.loom.com/share/2d896a9e4e7c4e6eb6f5f487b2bf0999

authors: Ashe-Oro hgraphql jwtong phucvarmeta supermonkeybrainz

repo: hashgraph/hedera-wallet-connect


text:
Bytes should never be null on PBJ generated classes

Problem
Given a generated class that supports protobuf bytes, we represent this as a Bytes object. A lot of code is doing null checks when a default Bytes.EMPTY return from the pbj generated object would have made the code simpler.
Solution
According to the specification, the default value for bytes is empty bytes. And in our parser we honor this, making sure the bytes are always Bytes.EMPTY or equivalent, and never null. But we do not mark the Bytes argument in the record as NonNull, so code that uses a PBJ object tries to be defensive when it shouldn't need to. If we annotated this properly, then static analysis could prove it is safe. And we should absolutely forbid null in the builder for Bytes arguments.
Alternatives
No response

Rather than forbid null in the builder; perhaps just translate null to Bytes.EMPTY but still annotate with @NonNull, so we support static analysis, but don't actually crash.

repo: hashgraph/pbj


text:
Djlee

for hashicat update

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes

Lee Dong Jae seems not to be a GitHub user.
You need a GitHub account to be able to sign the CLA. If you already have a GitHub account, please add the email address used for this commit to your account.
Have you signed the CLA already but the status is still pending? Recheck it.

repo: hashicorp/hashicat-aws


text:
Handoff for QA For #394 LOG: WMLS_DeleteFromStore

Handoff for QA For #394 LOG: WMLS_DeleteFromStore
EPIC:
#361 Log CRUD Implementation
Sizing:
L (3-4 Days)
Priority:
2
(DeleteFromStore must arrive at same time in order for GetFromStore to have something to work with)
Description:
This is the "D" in "CRUD".

Completed coding and testing and did the PR.PR approved and merged into master and deployed in QA.

@sukhendumukherjee Is this card complete now?

Handoff complete and SOAP UI test successful

authors: niaalex sukhendumukherjee

repo: hashmapinc/Drillflow


text:
Transition repo to tilex name

per issue #3

Thank you! 👍

authors: jbranchaud jwworth

repo: hashrocket/tilex


text:
u-c: cabal: add no-msse4.2 flag, enable -msse4.2 as default on x86 architectures

closes #464.
I didn't test this locally so we'll see what CI says.
Also I assumed this would be in a new minor release so I added that to the CHANGE.md file but did not change the versioning in the cabal file

unordered-containers is quite inlining heavy, eg, I often see lookups inlined quite heavily when looking at Core. If the popcount call ends up being inlined when compiling another package (that isn't passed -msse4.2) will this flag still apply?

@TeofilC

will this flag still apply?

Good question. I think it wont, as at Core level (i.e. in unfoldings to be inlined) we only have magic popCount# primop, and the code generation happens later.

authors: TeofilC doyougnu phadej


text:
Opentelemetry traces and heapsize memory analysis

This PR builds on the work of @mpardalos and supersedes #826
A new facility to log open telemetry events and spans to the GHC event log is added. The following are logged:

LSP events (all of them)
Shake action spans

Additionally, when the flag --ot-memory-profiling is given, the following are logged periodically:

Count of items in the ShakeExtras "state" (Metric is called "values map size_bytes")
Aggregate size of items per key, with sharing, so that shared costs are not reported twice.

For the non LSP driver, the flag --ot-memory-profiling produces a textual version of the above, instead of an eventlog.
There is documentation on how to visualise the eventlogs using Tracy. The Nix script takes care of installing all the dependencies
TODOs:

[x] Merge my heapsize changes in https://github.com/mpardalos/Heapsize/pull/1, release a new version to Hackage and remove the git submodule

Future TODOs (not for this PR):

Use spans to link LSP events and Shake actions, as well as Shake dependencies
--ot-memory-profiling should be always enabled and log only on SIGHUP(or some other signal) instead of periodically
Output mechanism for traces should be configurable, so that we can log to stdout, the cloud, etc.

Some examples of memory analysis for the ghcide project itself:
cabal run ghcide src/Development/IDE.hs -- --ot-memory-profiling  -j2 +RTS -A4G -Sstderr 2> /dev/null
...
Completed (1 file worked, 0 files failed)
# Shake value store contents(976):
  - GhcSession: 231036.42KB
  - GhcSessionDeps: 1.18KB
  - GetModificationTime_ {missingFileDiagnostics = False}: 6.65KB
  - GetModSummaryWithoutTimestamps: 761.74KB
  - GetModIfaceWithoutLinkable: 7.39KB
  - IsHiFileStable: 7.12KB
  - GetLocatedImports: 658.78KB
  - GetFileExists: 15.47KB
  - GetFileContents: 8.98KB
  - NeedsCompilation: 7.19KB
  - GetModIface: 632.13KB
  - GetModSummary: 7.07KB
  - IsFileOfInterest: 7.26KB
  - ReportImportCycles: 7.21KB
  - GetDependencyInformation: 463.82KB
  - GetModIfaceFromDisk: 6.94KB
  - GetDependencies: 140.36KB
  - GenerateCore: 263.22KB
  - GetKnownTargets: 16.95KB
  - GetHieAst: 25.62KB
  - GetModuleGraph: 28.58KB
  - GetParsedModule: 35.09KB
  - GetFilesOfInterest: 2.22KB
  - TypeCheck: 65.98KB
  - GhcSessionIO: 11101.30KB
Total: 245.31MB

cabal run ghcide src/Development/IDE.hs -- --ot-memory-profiling  -j2 +RTS -A4G -Sstderr 2> /dev/null
...
Completed (50 files worked, 0 files failed)
# Shake value store contents(1119):
  - GhcSession: 295383.43KB
  - GhcSessionDeps: 2035.29KB
  - GetModificationTime_ {missingFileDiagnostics = False}: 4.85KB
  - GetModSummaryWithoutTimestamps: 760.94KB
  - GetModIfaceWithoutLinkable: 7.50KB
  - GetLocatedImports: 660.46KB
  - GenerateCore: 91166.96KB
  - GetFileExists: 15.39KB
  - TypeCheck: 27222.14KB
  - GetFileContents: 8.98KB
  - NeedsCompilation: 7.19KB
  - GetModIface: 342.98KB
  - GetHieAst: 15515.02KB
  - GetModSummary: 7.07KB
  - IsFileOfInterest: 8.04KB
  - ReportImportCycles: 7.21KB
  - GetDependencyInformation: 456.74KB
  - GetDependencies: 140.36KB
  - GetParsedModule: 107.39KB
  - GetModIfaceFromDisk: 0.27KB
  - IsHiFileStable: 3.28KB
  - GetKnownTargets: 109.21KB
  - GetModuleGraph: 28.58KB
  - GetFilesOfInterest: 104.14KB
  - GhcSessionIO: 11375.06KB
Total: 445.48MB

@wz1000 GenerateCore is crazy expensive 😜

I don't understand why running the same command twice results in such different output.

@wz1000 GenerateCore is crazy expensive

In terms of memory, time or both?

I don't understand why running the same command twice results in such different output.

It's not the same command, copy and Paste mistake

@wz1000 GenerateCore is crazy expensive

In terms of memory, time or both?

Memory. It's several times more expensive than parsing or typechecking

Memory. It's several times more expensive than parsing or typechecking

Hmm. I don't think we need it for anything other than warnings and generating bytecode when needed, so maybe we can avoid keeping it in the graph.

I'm also wondering about the interaction of heapsize with the concurrent garbage collector. Will it work?

I'm also wondering about the interaction of heapsize with the concurrent garbage collector. Will it still work?

What do you mean by concurrent garbage collector? If you mean --non-moving then it should work better by definition.

If I understand correctly, using heapsize to measure is inherently unreliable, since if we run out of nursery while the measurement is running, the GC has to run before we can proceed.
To work around this, we need to do the entire measurement in C. Fortunately, IOHK seems to have already written something that does this: https://github.com/input-output-hk/cardano-prelude/blob/df335a2dc1505a379052732dc3e8cec094330bc9/cardano-prelude/cbits/closure_size.c
@bgamari can you confirm if my summary is correct.

Correct, yes.
What we have now will suffice for smallish codebases, but will not scale to medium ones. The trick to detect GC using a weak ref seems to be working pretty well in Linux, and as long as the nursery is big enough, the heapsize analysis is stable. It's been running for 2 hours on the ghcide codebase without a hiccup, collecting 24 samples with an -A4G nursery.

The time statistics are also useful. GetHieAst is pretty expensive...

@jneira help please, the stack windows build is upset and I have no idea why

@pepeiborra i would try to remove -f-external-interpreter, we never have been sure about its effectiveness.
If build fails without it, a expeditive option would be switch stack.windows.yaml to ghc-8.6.5, the unique version reliable enough in wondows for now

@pepeiborra i would try to remove -f-external-interpreter, we never have been sure about its effectiveness.
If build fails without it, a expeditive option would be switch stack.windows.yaml to ghc-8.6.5, the unique version reliable enough in windows for now

Dropping the -fexternal-interpreter flag didn't help. I doubt switching to ghc-8.6.5 will help either, since the problem here is not reliability but an actual stack build issue. The error suggests that the heapsize package descriptor is probably missing some library paths.
To help unblock this, could you please build this branch locally both with Cabal and Stack, and compare the output of ghc-pkg describe heapsize?

Yeah, the error is the same with and without using an external interpreter, will try asap

@jneira any news?

After building the project with satck and the default stack.yaml (8.10.2) which throws the same error and cabal -w ghc-8.10.2 :
D:\ws\haskell\ghcide>ghc-pkg --user-package-db .\dist-newstyle\packagedb\ghc-8.10.2 describe heapsize
name:                 heapsize
version:              0.2
visibility:           public
id:                   heapsize-0.2-inplace
key:                  heapsize-0.2-inplace
license:              BSD-3-Clause
copyright:            Michail Pardalos 2020
maintainer:           Michail Pardalos <mpardalos@gmail.com>
author:               Michail Pardalos <mpardalos@gmail.com>
synopsis:             Determine the size of runtime data structures
description:
    heapsize is a tool to determine the size data structures.
    Determining the size of recursive data structures is
    supported. All sizes are in Bytes.

category:             GHC, Debug, Development
abi:                  inplace
exposed:              True
exposed-modules:      HeapSize
import-dirs:
    D:\ws\haskell\ghcide\dist-newstyle\build\x86_64-windows\ghc-8.10.2\heapsize-0.2\build

library-dirs:
    D:\ws\haskell\ghcide\dist-newstyle\build\x86_64-windows\ghc-8.10.2\heapsize-0.2\build
    D:\\OpenSSL-x86_64\lib

dynamic-library-dirs:
    D:\ws\haskell\ghcide\dist-newstyle\build\x86_64-windows\ghc-8.10.2\heapsize-0.2\build
    D:\\OpenSSL-x86_64\lib

data-dir:             D:\ws\haskell\ghcide\heapsize
hs-libraries:         HSheapsize-0.2-inplace
include-dirs:         D:\\OpenSSL-x86_64\include
depends:
    base-4.14.1.0 deepseq-1.4.4.0 exceptions-0.10.4 ghc-heap-8.10.2
    hashable-1.3.0.0-7eef361fa2b3a306ca7c6d89c695f4465e42392f
    hashtables-1.2.4.1-5aae77ea53a5219107f0f91948fe2ddc070b4fce
    primitive-0.7.1.0-e605ac3dff285b52b30a1168db6f30b40298dcfa
    transformers-0.5.6.2
    unordered-con_-0.2.13.0-de9d6aea4ef6b26e708f2f25368f02bdd7b0822a

haddock-interfaces:
    D:\ws\haskell\ghcide\dist-newstyle\build\x86_64-windows\ghc-8.10.2\heapsize-0.2\doc\html\heapsize\heapsize.haddock

haddock-html:
    D:\ws\haskell\ghcide\dist-newstyle\build\x86_64-windows\ghc-8.10.2\heapsize-0.2\doc\html\heapsize
pkgroot: "D:\\ws\\haskell\\ghcide\\dist-newstyle\\packagedb"

D:\ws\haskell\ghcide>stack exec ghc-pkg -- describe heapsize
name:                 heapsize
version:              0.2
visibility:           public
id:                   heapsize-0.2-9mPl8uIsnRT9ry8OwVZpm8
key:                  heapsize-0.2-9mPl8uIsnRT9ry8OwVZpm8
license:              BSD-3-Clause
copyright:            Michail Pardalos 2020
maintainer:           Michail Pardalos <mpardalos@gmail.com>
author:               Michail Pardalos <mpardalos@gmail.com>
synopsis:             Determine the size of runtime data structures
description:
    heapsize is a tool to determine the size data structures.
    Determining the size of recursive data structures is
    supported. All sizes are in Bytes.

category:             GHC, Debug, Development
abi:                  8f28cb17ebb384607e86e25840020e68
exposed:              True
exposed-modules:      HeapSize
import-dirs:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\lib\x86_64-windows-ghc-8.10.2\heapsize-0.2-9mPl8uIsnRT9ry8OwVZpm8

library-dirs:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\lib\x86_64-windows-ghc-8.10.2\heapsize-0.2-9mPl8uIsnRT9ry8OwVZpm8
    D:\\bin\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib
    D:\\bin\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin

dynamic-library-dirs:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\lib\x86_64-windows-ghc-8.10.2
    D:\\bin\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib
    D:\\bin\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin

data-dir:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\share\x86_64-windows-ghc-8.10.2\heapsize-0.2

hs-libraries:         HSheapsize-0.2-9mPl8uIsnRT9ry8OwVZpm8
include-dirs:
    D:\\bin\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include

depends:
    base-4.14.1.0 deepseq-1.4.4.0 exceptions-0.10.4 ghc-heap-8.10.2
    hashable-1.3.0.0-1P2Y3eA5cTdB8Gcn7yS7qi
    hashtables-1.2.3.4-FUeV0APkAq1Jayqid8tkiB
    primitive-0.7.1.0-Jxsyd70oUttYiCXCa0HqV transformers-0.5.6.2
    unordered-containers-0.2.12.0-BkJSZe2LvIB4fc0ASSWCag

haddock-interfaces:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\doc\heapsize-0.2\heapsize.haddock

haddock-html:
    D:\ws\haskell\ghcide\.stack-work\install\63c8a773\doc\heapsize-0.2
pkgroot: "D:\\ws\\haskell\\ghcide\\.stack-work\\install\\63c8a773"

Thanks @jneira. What's the output of ghc-pkg describe ghc-heap in each case?

@pepeiborra I've separated them in the original comment

Sorry I wasn't clear. The output of ghc-pkg describe heapsize didn't show anything relevant, so now I am asking for the output of ghc-pkg describe ghc-heap. I guess I could also ask CI for this instead of bugging you.

Oh sorry i misreaded ghc-heap. Dont worry, but warm stack cache takes some time and i am in other machine now and i have to build from zero, i'll post it

@jneira don't worry, it's faster for me to ask CI

@pepeiborra, just wanted to say thanks for taking this over from #826.
Hopefully I can address some of your TODOs from this PR once my university workload dies down a bit.

/azp run

/azp run

@jneira I changed the windows-stack CI script to build the dependencies first, then stack test, and now it's failing in a very mysterious way that I cannot understand. Could you take a look please?

@pepeiborra will try to take a look asap, but the error does not look good, we could disable temporaly the windows build if you want to go forward and activate it afterwards.
In hls there is no stack build for windows so will no suffer it.

@jneira @ndmitchell unless one of you can get to the bottom of the problem here, I will drop the Stack Windows build as we lack the maintainer power to keep it working.

The error seems to be of the same kind:
ghcide> ghc.exe:  | D:\a\1\s\.stack-work\dist\a3a5fe88\build\HSghcide-0.5.0-GfeKdUCOB448C8Yqgu22oa.o: unknown symbol `heapsizzezm0zi3zi0zmG6oW1FfbuDgJS3obQNcUGF_HeapSizze_runHeapsizze1_closure'

https://github.com/haskell/ghcide/pull/934 opened to unblock this PR

authors: jneira mpardalos pepeiborra wz1000

repo: haskell/ghcide


text:
Subheadings do not appear as collapsed in module documentation

Short Version
While checking the Haddocks for some modules in base, I came to the realisation that while some helpful examples have been committed many moons ago, they do not appear to show up when being rendered by haddock.
Long Version
For instance, let us pick the Data.Functor module:

Although we could regret the inopportune line wrapping for the function signature, the module description is pretty succinct. Surely, an example cannot hurt!
But alas! The usage of fmap and the Functor typeclass are left to our imagination.
To make up for the lack of examples of fmap, one may be willing to add some examples, using the useful experimental feature that collapses subheadings if their title is surrounded by underscores.
And in August of 2018, our prayers were answered!

But then, despair struck our heart! For the oh-so desired examples would remain unseen, only revealing themselves to the most adventurous Haskellers, who would dare to go and see the sources of the module by themselves.
And so their eyes would be blessed by the sight of those examples, hidden in a subheading whose title, enclosed by four underscores, would indicate a collapsed section.

You shall find thereafter a minimal working example. The rendering was made through stack haddocks, on Fedora 31.
Should the maintainer team need any precisions or details, I would be glad to give them.

Thanks for the report! Is this issue limited to module headers or does it also appear in other structures, e.g. named chunks?
I would expect that if the same example would appear in the haddocks on a declaration like that someFunc function, it would be rendered, right?

Hi @sjakobi!
I played around with named chunks and collapsible sections.
Named collapsible sections are rendered when appearing in the export list, following a proper header (like * Misc).
I thiink our two options here are

Considering the non-rendering of module-level collapsible sections as a bug, since nowhere in the documentation it is indicated that they must be in the form of a named chunk preceded by a heading and located in the export list;
Fix the documentation and call it a feature.

What do you think?

When collapsible sections in the module header aren't rendered, that's quite certainly a bug. In general, I'd expect the Haddock markup to work the same in all structures.
Would you be interested in fixing this? Right now my old Haddock knowledge is all paged out, but I might still be able to provide pointers if you need any.

@sjakobi I would love helping out, but I have never worked on Haddock before and I'm afraid I would have to learn quite a lot of things from scratch before being remotely useful.
However, should a PR in that direction happen, I would gladly follow its development. :)

The HTML is there but hidden because it uses a class "caption" that is already used with a conflicting meaning, where the CSS hides it. That extra class seems to come from hackMarkup in haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs.
Comparing with the styling of other headings, it doesn't look like this code actually relies on any rules for "caption", so it can probably be renamed to something else just as arbitrary, like "subheading".

Examples

/* linuwial.css */

#description .caption {
￼    display: none;
}

Oh, that's actually quite simple, I was afraid I would need to dive in the innards of Haddock. :) Thanks!

authors: Kleidukos Lysxia sjakobi

repo: haskell/haddock


text:
Bug: Media player entity generates error in HA

Describe the bug
The media player entity is not generated inside HA, and an error is generated
I am here posting the log from HA
2024-10-03 18:54:56.021 WARNING (SyncWorker_8) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls device_registry.async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registryasync_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create(, please report it to the author of the 'hass_agent' custom integration
2024-10-03 18:54:56.031 ERROR (SyncWorker_8) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/HUNKAHUNKA': '{"serial_number":[...],"device":{"identifiers":"hass.agent-HUNKAHUNKA","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.22631.0","name":"HUNKAHUNKA","sw_version":"2.1.0"},"apis":{"notifications" :true,"media_player":true}}'
Traceback (most recent call last):
File "/config/custom_components/hass_agent/init.py", line 144, in updated
update_device_info(hass, entry, payload)
File "/config/custom_components/hass_agent/init.py", line 29, in update_device_info
device_registry.async_get_or_create(
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 834, in async_get_or_create
device = self.async_update_device(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1066, in async_update_device
self.hass.verify_event_loop_thread("device_registry.async_update_device")
File "/usr/src/homeassistant/homeassistant/core.py", line 462, in verify_event_loop_thread
frame.report_non_thread_safe_operation(what)
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 229, in report_non_thread_safe_operation
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 163, in report
_report_integration(what, integration_frame, level, error_if_integration)
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 201, in _report_integration
raise RuntimeError(
RuntimeError: Detected that custom integration 'hass_agent' calls device_registry.async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registryasync_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create(. Please report it to the author of the 'hass_agent' custom integration.
Please check what's applicable (multiple answers possible):

[x] Installed via installer
[ ] Installed manually
[x] Problem occurs in HASS.Agent
[ ] Problem occurs in Satellite Service

Duplicate, fixed by myself following
https://github.com/LAB02-Research/HASS.Agent-Integration/issues/47#issuecomment-2090454867

Hello, yup, duplicate of https://github.com/hass-agent/HASS.Agent-Integration/issues/2 and relates to the integration rather than HASS.Agent itself.
The fix will work for now but I'd recommend switching to the forked integration https://github.com/hass-agent/HASS.Agent-Integration/issues/2

authors: TheFaither amadeo-alex


text:
docs: move references of graphql-engine:master to sample-apps:main

The examples were removed from graphql-engine:master in: https://github.com/hasura/graphql-engine/commit/3d533bee6148e972c136be6eef848db36b564037
I ran git grep sample-app, ensured all cases were covered by sed, and verified the URLs and instructions.

@llllvvuu - Thanks for the PR. I missed updating these references when originally moving to this.

authors: llllvvuu praveenweb

repo: hasura/sample-apps


text:
Hawkular alert 2 clustering

Hi!
We've been using hawkular alerts for a while and now we want to make a cluster. I couldn't find any document about clustering version 2.
Can you help me find a document?
Or if there isn't any, could you please tell me what to do in summary?

I believe hAlerts V1 (cassandra-based) supported clustering but if I recall correctly I don't think the clustering support was completed in V2 (ispn-based) before resources were taken off of the project.  Perhaps @lucasponce has more information.

authors: ehsanjavadynia jshaughn

repo: hawkular/hawkular-alerts


text:
HWKAPM-642 | Concurrent modification exception in zipkin completion time processing driver

https://issues.jboss.org/browse/HWKAPM-642
@objectiser could you please review?

I do not see the ConcurrentModificationException but I think that methods getTrace and getChildren should be also synchronized.

Yes, I think it may be best to synchronize in those methods aswell. Then should be fine to merge.

Similar problem can occur in InfinispanCommunicationDetailsCache

@objectiser updated. I have user copyOnWrite implementations to deal with concurrency.

@pavolloffay LGTM  :+1:

authors: objectiser pavolloffay

repo: hawkular/hawkular-apm


text:
For Bower builds, use git SHA# instead of branches (essentially snapsh…

…ots)  during dev periods. This should eliminate any dependent projects from breaking the Hawkular project (like a bad version of hawkular-charts or hawkular-ui-services).
A day or two before Milestone release we will still use regular bower versions to tighten up even more on approved changes going into the release (like we have been doing right around release).

Merged #693

repo: hawkular/hawkular


text:
Duration of the synchronization

Hi @haydenull
Thanks for this wonderful plugin !
What is the synchronization frequency of the external calendars to which we subscribe?
Cheers

Each time you click the icon in toolbar to open the plug-in, the latest subscription calendar is requested.

Great ! Thanks for reply !

authors: bepolymathe haydenull

repo: haydenull/logseq-plugin-agenda


text:
Backport PR #153

Backports PR #153
Enhanced the reliable topic executor so that the received messages are processed in bulk for each executor call.

Test FAILed.

Test PASSed.

authors: devOpsHazelcast ihsandemir

repo: hazelcast/hazelcast-cpp-client


text:
Future::get is not throwing the expected exception as derived but the base exception - Missing stream like constructor for an exception

Added tests so that the future.get throws the expected protocol exception correctly. I had to introduce the IException::clone method to create derived exception when setting the future.set_exception so that when it is thrown it throws the derived exception.
Implemented the ExceptionBuilder class for easier setting of the exception message.

Test FAILed.

Test FAILed.

Test FAILed.

Test PASSed.

Test FAILed.

Test FAILed.

Test FAILed.

Test PASSed.

Test PASSed.

Test PASSed.

Test FAILed.

Test FAILed.

Test FAILed.

Test PASSed.

Test PASSed.

Test PASSed.

Test PASSed.

Test PASSed.


text:
IZE-676 added use-yarn option for sls

Change:
added use-yarn option for sls
Test:

Codecov Report

Merging #516 (a1bbc97) into main (184ae31) will increase coverage by 0.12%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##             main     #516      +/-   ##
==========================================
+ Coverage   30.66%   30.79%   +0.12%
==========================================
  Files          62       62
  Lines        8039     8077      +38
==========================================
+ Hits         2465     2487      +22
- Misses       5340     5351      +11
- Partials      234      239       +5

Impacted Files
Coverage Δ

internal/commands/down.go
9.38% <11.11%> (+0.44%)
:arrow_up:

internal/commands/up.go
15.58% <11.11%> (+0.55%)
:arrow_up:

internal/manager/serverless/native.go
59.14% <50.00%> (-1.66%)
:arrow_down:

internal/manager/serverless/serverless.go
57.43% <66.66%> (+0.58%)
:arrow_up:

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

authors: codecov-commenter psihachina

repo: hazelops/ize


text:
TypeScript definition file

This is a basic TypeScript definition file I created for use with react-moment in my project. Every prop is marked as optional - I am happy for suggestions on how we can enforce compile-time guards on acceptable prop pairs but I don't think this is possible with TypeScript.

Looks good. Thanks for the code!

authors: headzoo khell

repo: headzoo/react-moment


text:
Add support for calling Browser.Post from initial state

The Post method of Browser references bow.Url(), which implies that the browser instance has already established a connection (via a GET call?) prior to the POST call. This causes a nil pointer dereference if you attempt to make a Post call with a newly instantiated Browser instance. My current workaround is to make a dummy get call to the same url prior to the POST call.

Sounds like a good fix. So far my general philosophy has been to treat Surf like a real browser, and generally with real browsers a POST request follows a GET request, which is knowledge used by web developers to block spiders and bots that POST to forms without first making a GET request for the page containing the form. But Surf wouldn't be useful if we rigidly stick to the "real browser" way of thinking, so I don't see a problem with starting a session with a POST request.
I'll take a look at making the change today.

This has been fixed in the latest master.

authors: Mojofreem headzoo

repo: headzoo/surf


text:
Project retrieval

Hi,
is there a way to access projects created? There's this method of get_task, is there a similar method for retrieving projects created through SDK

Please, check this link
https://labelstud.io/sdk/client.html#label_studio_sdk.client.Client.list_projects

authors: anabia-alam makseq

repo: heartexlabs/label-studio


text:
Should Game::load receive &mut Window? (not a duplicate of #130)

So this may be a dumb question as it is very similar to #130 (I copied the title and tweaked it slightly even).
I'm having some trouble understanding Tasks, so this may just be stemming from that.
I have this code that does not work because Game::load receives an immutable window ref.
    fn load(_window: &Window) -> Task<MyGame> {
        let player = Image::load("assets/sara-atlas.png")
                      .map(|image| SpriteSheet::new(image, 5, 5))
                      .run(_window.gpu())
                      .expect("Error loading image.");

        let world = World::new();

        Task::succeed(|| MyGame {
             player,
             world,
        })
    }

The issue is, I want to load this image now then pass it into the MyGame object at the end of the load function. But Task::run function needs gpu and the Window::gpu function wants a mutable Window which load doesn't get.
In #103 you said it is by design that Game::update doesn't get a mutable window because only game logic should happen there and you don't want it to be changing the window itself, but I assume the same doesn't apply to Game::load, or am I wrong?
This is likely me just being confused about Tasks. When do Tasks actually get run? From the looks of it, it seems whatever calls Game::load runs the task(s), but if I have 100 images to load and I'm only supposed to return a Task<Game> from load how am I supposed to load all those images?
Also, down the road I want to have an AssetDatabase struct that holds lookup tables for all loaded assets (sprite sheets, dialogue trees, etc). And I want to load those assets after the main menu when the player selects one of the campaigns to play. That means it won't be happening in Game::load. But I also don't want some 'if' statement stuck in my Game::draw function being checked every tick. Should it go in Game::interact? (i've yet to mess with interact and input so I'm not sure)
Finally, thanks for making and maintaining this project. It's been very nice to work with so far.

Here is a quick example of something I want to do that needs Game::load to have a mutable window.
I'm adding in ECS, specifically Specs. My rendering system needs a value put into the ECS world object that the render function can draw to. That value should be initialised in the load function. I was going to use Batch. To create a batch you need an image and to create an image you need a gpu.
fn load(_window: &Window) -> Task<MyGame> {
        let player = ... //same as above

        let world = World::new();

        //insert data into the world
        let bg_img = Image::from_image(_window.gpu(),
                                                             DynamicImage::new_rgba8(_window.width(), _window.height()))
                             .expect("Error creating batch image.");
        world.insert(Batch::new(bg_img));

        Task::succeed(|| MyGame {
             player,
             world,
        })
    }

//....

    fn draw(&mut self, frame: &mut Frame, _timer: &Timer) {
        // Clear the current frame
        frame.clear(Color::BLACK);

        let mut screen_batch = self.world.write_resource::<Batch>();
        screen_batch.clear();

        //run render system which uses the batch object to draw to

       //something like this to draw to screen.
       screen_batch.draw(&mut frame.as_target());
    }

repo: hecrj/coffee


text:
Schema validation for deprecated tags

In score_1.0.0, the tag 'Motor-onset-seizure' was deprecated, but its children were not removed.
Deprecated tags should not have active children, so I suggest adding this to the schema validation tool as an error.

This has been added in the current validation.

authors: VisLab tpatpa

repo: hed-standard/hed-web


text:
红爷牛逼

红爷牛逼

😄   让你见笑了

我是认真的，很期待你的博客啊

求链接

https://github.com/hehongwei44/my-blog/issues
现在都喜欢把issues当作博客用

github page，搭一个静态的嘛

已经搭了      现在内容不是很多    最近你在忙啥子呢？？ o(∩_∩)o 哈哈

我明天离职了，去台湾旅游，回来找工作啊

台湾好多美食   玩得开心   吃的开心

我国庆打算会长沙玩几天

嗯嗯


text:
编译错误

系统版本：CentOS release 6.8 (Final)
third-part/hev-task-system/bin/libhev-task-system.a(hev-task-timer.o): In function `hev_task_timer_wait':
hev-task-timer.c:(.text+0x1e): undefined reference to `clock_gettime'
third-part/hev-task-system/bin/libhev-task-system.a(hev-task-system-schedule.o): In function `hev_task_system_get_clock_time':
hev-task-system-schedule.c:(.text+0x102): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make: *** [bin/hev-socks5-server] Error 1

Hi,
Link with -lrt (only for glibc version before 2.17).
Edit Makefile:
LDFLAGS=-L$(THIRDPARTDIR)/ini-parser/bin -lini-parser \
		-L$(THIRDPARTDIR)/hev-task-system/bin -lhev-task-system \
		-lpthread -lrt

It works! Thanks!

authors: RubenvSu heiher


text:
Action 编译的最新的natmap IPV4 正常 V6 不对

@heiher 目前是使用域名。如何支持V4和V6 都可以正常转发。

没有公网IP的话，最好分为两个域名。如果使用IP4P的方案，一个域名也不是不行，但两条AAAA解析记录还是和典型的A、AAAA记录方式不同。

没有公网IP的话，最好分为两个域名。如果使用IP4P的方案，一个域名也不是不行，但两条AAAA解析记录还是和典型的A、AAAA记录方式不同。

@heiher 都有公网IP的。内网设备只能分配V4，又需要支持V6通信。

这样就是变成一个纯转发器，理论上可以的。但是这种需求使用防火墙转发效率会更高。

authors: heiher zuozhehao

repo: heiher/natmap


text:
Autorisierung des Minikänguru-Clients für die Rätselsuche

API für die die Rätselsuche durch nichtmenschliche Akteure bereitstellen.
Die Infratsruktur und insbesondere die Autoriiserung ist noch nicht klar. Das muss noch ausprobiert werden.
Aufgaben des laufenden Wettbewerbs und Entwürfe dürfen durch diese Schnittstelle nicht gefunden werden. Diese Regel muss unabhängig vom Aufrufer implementiert werden, damit sich auch Personen später keinen Zugang zu noch nicht öffentlichen Aufgaben verschaffen können.

Im ersten Rutsch werde ich mal die API public machen und schauen. Wenn es zu viele BOT-Zugriffe gibt, muss man das auf registrierte Clients beschränken.

Ist inzwischen erledigt. Damit man das json herunterladen kann ohne technische Hürden, ist es ein unautorisierter Zugriff mittels GET.


text:
اشتباه نگارشی

وقت به‌خیر
من با استفاده از روش زیر تاریخ و روز هفته رو نمایش می‌دم:
{{ verta($activeComment->created_at)->formatWord('l dS F') }}
همه چیز خوبه، اما به‌نظر «دوم» به‌اشتباه «دوام» نوشته شده.
خروجی چنین چیزیه:

جمعه دوام تیر

نگارش بالا درمورد یازده‌ام تا نوزده‌ام بدون مشکله، اما دوم (و احتمالا سوم) اشتباه نوشته می‌شه.

باسلام
برای رفع مشکل از نسخه پیکیج hekmatinasser/jalali خود را به نسخه x8.2.1 اپدیت کنید

authors: hekmatinasser mrostd

repo: hekmatinasser/verta


text:
Linky G1 pilote ne remonte pas la puissance instentannée.

Sur un compteur Linky phase pilote (ADS type 67), les entités suivantes sont indisponibles :

Puissance app. instantanée soutirée,
Puissance app. max. soutirée n
Puissance app. max. soutirée n-1

Proposed fix in PR #44

Mergé ! upcoming 3.0.0-beta4

repo: hekmon/linkytic


text:
Other than Latin characters in text

Would it be possible to show other than Latin languages in the text?
Currently, we are limited to the Codepoints but if Japanese, Chinese, Indian, etc. users wanted to use PictureFrame they could not customize it to their language.

Wolfgang, I think it will work fine with any set of unicode character in the config file codepoints string. That variable is put in the config file precisely so users in different countries can change it to suit their needs.
The limitations are that all the characters are rendered onto a 1024x1024 texture so if you had 10,000 characters in codepoints each would only have 10x10 pixels which might get a bit grainy - probably still readable though. Also there might be a tiny additional delay when the display text is built, as each character in the displayed text is checked to ensure it's in codepoints.
These 1500 characters cover over 95% of Chinese text and would result in resolution 26x26 pixels i.e. each character would be like this

Ah, I didn't know that. Thanks for the clarification, Paddy!

It works. I have some images from Abu Dhabi. Nice Arabic description beside the English text.

I can always see in Home Assistant what text is missing on the frame. But we just have too many characters in the world to add them all..

If we had used the pi3d.FixedString then all the characters in the font would have been available. If this becomes an issue in future we could switch over.

Interesting option! What would change using the pi3d.FixedString?

At the moment I don't think it does line wrapping automatically. It uses the PIL ImageDraw so I think it would be possible to add in the line length in pixels system, but at the moment it doesn't do that - you have to insert the line breaks manually.

branch d808059fa58f1b6b9f22a1a92704d47c3f4c31a6 using pi3d.FixedString It needs the pi3d develop branch which has additional functionality to set the width of the text.
This method will repeatedly create pi3d.Texture objects, which should have the memory released by the adapted garbage collector system in pi3d but probably worth monitoring this. Also I've only tried this on the relatively small screen of this laptop so I don't know if that's an issue.
Paddy
PS I've not taken out the code that checks character in codepoints but that isn't needed any longer. Will fix that later.

This has been running for a while now without issue (though I think the char size might be slightly larger?). Also I realized that the whole picframe system relies on creating and destroying Texture instances so that obviously isn't a concern.

Just out of curiosity: Will this make it into the next release? :-)

I would think so. It's been running here for a few days without any problems.

Are people happy for me to merge these two branches into dev?

I haven't had a chance to look at / try any of the above, but it seems like a reasonable add to the dev branch to me. We should probably make it a point to explicitly kick the tires a little harder / longer before merging it into production though...

Having done "vanilla" pip installs for the released version on the Pi3 and Pi4 (because that's the most important thing to not go wrong) it's a bit messy to switch in other branches. I've been doing it by just copying over the site-packages/picframe files but you have to fix a couple of lines in configuration.yaml and, for this change, you have to python3 -m pip install --upgrade pi3d
OK I'll merge them, let me know if you spot anything.

Paddy, I will test it. But to do a clean install from source. Just checkout the branch. Than do python3 pip install /path/to/picfraem/sources --upgrade. This will do a clean install. Just from the sources and not from pypi.

And installing from the sources has the advantage, that pi3d should be automatically updated to meet the requirements.

Ah yes that's neat. I've merged the two branches into dev now.

hm, when I search for location athen and tags playmobil this works. Also istanbul and playmobil.  I get only image with tag playmobil in the searched city. But  athen and istanbul with tags playmobil seems not to work. Looks like tag search is ignored.

Helge, thanks for testing this.
I thought at first I must have copied something and left a "tags" in where it should have been "location" or something, but it looks OK as far as I can tell.
Just to get this straight:
location = "athen", tags = "playmobil" => works as expected
location = "istanbul", tags = "playmobil" => works as expected
location = "athen and istanbul", tags = "playmobil" => wrong results.

I would expect zero hits for that last query as it would require a location containing "athen" and "istanbul" i.e. the no images selected page. Are you getting all the images instead of none? I think there might be a need for some brackets around all the tags clauses and all the location clauses because of my point below
To get images from both "athen" and "istanbul" I would use
location = "athen or istanbul", tags = "playmobil"

did you try that? The problem might be that the resultant SQL would be
fname LIKE '/home/pi/Pictures%' AND location LIKE '%athen%' OR location LIKE '%istanbul%' AND tags LIKE '%playmobil%'
which is wrong. It needs to be
fname LIKE '/home/pi/Pictures%' AND (location LIKE '%athen%' OR location LIKE '%istanbul%') AND (tags LIKE '%playmobil%')
I will fix that ASAP but will wait for you to clarify what results you get first.
Paddy

Sorry, might be a bit late yesterday
location = "athen" => 12 images
location = "istanbul" => 10 images
location = "athen and istanbul" => 0 images (as expected)
location = "athen or istanbul" => 22 images (as expected)
location = "athen or istanbul" and tags = "playmobil" => 13 images (12 of athen and 1 of istanbul with tag = 'playmobil')
loacation = "istanbul or athen"  and tags = "playmobil" => 11 images (10 of istanbul and 1 of athen with tag = 'playmobil')

So I think it is indeed the missing brackets. AND seems to bind stronger than OR

Helge, yes the more I looked at it the more I could see random results. With dates and subfolders in there as well it would have been quite easy to get very muddled results i.e. where the date only filtered the pictures taken in instanbul
Boolean algebra has a precedence defined as with normal algegbra. Just checking for sqlite makes me think that the evaluation of the NOT clauses might go awry too. As it stands setting location to not germany or berlin will convert to
NOT location LIKE '%germany%' OR location LIKE '%berlin%'
The precedence list I found implies that it will be evaluated NOT before LIKE before AND before OR:
((NOT location) LIKE '%germany%') OR (location LIKE '%berlin%')
However that would be very counter-intuitive syntax and, after doing a bit of testing with sqlitebrowser, it certainly seems that it produces the expected interpretation
(NOT (location LIKE '%germany%')) OR (location LIKE '%berlin%')
Maybe the parser spots the pattern NOT colname LIKE.. and converts it to colname NOT LIKE.. which is a special operator that inverts the selection process i.e. `NOT(colname LIKE..)

I'll give it a try

I think this can be closed, right?

It does now show more characters but oftentimes with non-Latin languages, the characters are still not shown. In Home Assistant, all the characters are shown but not in PictureFrame. But I guess, it's too hard to change that so we might as well close this issue.

I believe that the issue has been moved outside pi3d and picframe. i.e. if the font that is referenced from configuration.yaml has the character in it then it should show on the screen.
@sapnho is this not the case?

I probably misunderstand how this is supposed to work. If I have an image with Japanese GPS data, the Japanese characters are shown correctly in Home Assistant but not on the info display in Pi3D. So my hope was since I don't have to specify a particular font in Home Assistant, it might work the same in Pi3D. Is there any way to make this happen? Thanks!

@sapnho You can play around with google fonts and try to find one that meets the requirements. https://fonts.google.com/specimen/Open+Sans?subset=japanese&preview.text=彼らの機器や装置はすべて生命体だ%E3%80%82dfasdfas&preview.text_type=custom#standard-styles
Not all fonts support all characters. But I don't now how Home Assistant is dealing with that.

Indeed that is a possibility but unfortunately incomplete. I wonder how this is handled in non-Latin character languages in general.

Try to install google noto fonts.

Beautiful and free fonts for all languages

When text is rendered by a computer, sometimes characters are displayed as “tofu”. They are little boxes to indicate your device doesn’t have a font to display the text.

Google has been developing a font family called Noto, which aims to support all languages with a harmonious look and feel. Noto is Google’s answer to tofu. The name noto is to convey the idea that Google’s goal is to see “no more tofu”. Noto has multiple styles and weights, and is freely available to all. The comprehensive set of fonts and tools used in our development is available in our GitHub repositories.

That sounds intruiging!

https://www.google.com/get/noto/#sans-lgc

I switched to noto in pi3d_demos as soon as they were announced (can't believe it's five years ago!). And these are the font files brought across into picframe... but I haven't updated the files since I first added them so maybe there were some missing characters that have now been filled in. I will check out the latest download.

Hmm, just downloaded the zip and NotoSans-Regular.ttf was last updated in 2017. However it now looks to be 455.2kB and the version in picframe is 399kB so there might be some missing character there. I will update and push to dev branch.

582 languages, but no Japanese in NotoSans.

@paddywwoof Outstanding! Why they left out the few kana characters in Japanese is a miracle to me as the rest should look like the Chinese Kanji ones, shouldn't they?

Maybe the chinese characters in NotoSans-Regular is very incomplete. And you should really use https://www.google.com/get/noto/help/cjk/
Not sure what the most efficient way to get all characters without having to change fonts mid-way through the text. Probably basic ASCII will included at the beginning of all fonts. Obviously it would be possible to test for the existence of a character and look through different fonts but that's beyond the scope of the picframe specification!

Related... I have the following string in a location table record:
Wuzhen West Scenic Zone, 桃源镇, Wujiang District, China
When shown on the frame, those 3 Chinese chars show up as hollow boxes - even with the latest Noto font updates...

When I copy paste your text into libreoffice and set the font to NotoSans I see that those three characters actually get Noto Sans Mono CJ applied to them. The WP seems to have an algorithm in to check what installed fonts have the appropriate unicode glyphs in. I don't think we will be trying to do anything like that in picframe, however all the standard European as well as katagana, kiragan and anything else I could think of seem to be included in that font...
So maybe we should bundle Noto Sans Mono CJ with picframe and set the default to that

It looks like Noto Sans Mono CJK comes in 4 default language variations (times 2 serif variations). The site states the following:
Each font sets one language as the default. Note that each language-specific font does support all four languages and includes the complete set of glyphs. However, you need an application program that can invoke an OpenType locl GSUB feature (e.g. Adobe InDesign) to access language-specific variants other than the default language.
I assume nothing in the picframe dependency chain supports the mentioned OpenType locl GSUB feature (?). Which one would you install by default?

I just installed the NotoSansCJKsc-Regular font and have verified that it does indeed display Chinese characters in the string mentioned above correctly. Nice.

I just installed the NotoSansCJKsc-Regular font (the simplified Chinese variation) and have verified that it does indeed display Chinese characters in the string mentioned above correctly. Nice.

That is great news!

I know that this thread has rested in peace for three years but just like with unsolved murder cases, there are new insights every now and then that merit a revisit...
I just had a photo from Myanmar on my frame and the geodata was shown correctly in Home Assistant but only boxes appeared on PictureFrame.
If it is doable on Home Assistant, can't it be done on PicFrame? Hope never dies..

authors: helgeerbe jgodfrey paddywwoof sapnho

repo: helgeerbe/picframe


text:
OCI Object Storage Health Check still depends on deprecated configuration / code in helidon-integrations-oci-objectstorage

OciObjectStorageHealthCheck still depends on deprecated classes / code which indirectly depends on old configuration entries in application.yaml file. It would be nice to get rid of dependencies on old code / configuration properly.
For instance, even after updating my application to make use of new OCI CDI Extension, i am forced to have the below configuration in application.yaml so that the health check code works. This is due to the fact that HealthCheck class is dependent on old integration library, which in-turn to work requires to the below configuration to be able to establish connectivity to ObjectStorage properly.
 oci:
   default:
     config:
       instance-principal:
         enabled: true
     objectstorage:
       namespace: "tenancy"

Environment Details

Helidon Version: 2.5.1
Helidon MP
JDK version: JDK 17
OS: Windows 10
Docker version (if applicable): NA

This is no longer relevant in the 4.x releases of Helidon; closing. Please feel free to reopen if needed.

repo: helidon-io/helidon


text:
Added helper text to create campagin page

added placeholder attributes to form elements
#145

repo: helloGov/webapp


text:
docker缺失IPV6支持

调试半天，始终无法使用ipv6访问。
进入容器，发现nginx监听，没有监听ipv6。
请更新

FROM helloz/onenav
RUN sed -i "/  listen 80;/a\  listen [::]:80;" /etc/nginx/conf.d/site.conf

好的，镜像构建代码在这里：https://github.com/helloxz/docker-onenav
你可以先自行打包一个镜像来支持IPV6，后续新的镜像我也将支持IPV6

是的，我已经用重新打包解决了问题。
随着IPV4枯竭，ipv6，应该作为默认支持了。
我3条光纤，联通一条，ipv4，公网，电信两条，老的，给了ipv4公网，新的，没有ipv4公网，折腾来折腾去，ipv6了。
过渡期，难呀。

repo: helloxz/onenav


text:
Error on HELM values-production.yaml

When i run without values-production.yaml it works otherwise I receive the following error on this command
helm install stable/redis --values values-production.yaml --name redis
Error: release redis failed: StatefulSet in version "v1beta2" cannot be handled as a StatefulSet: v1beta2.StatefulSet.Spec: v1beta2.StatefulSetSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Command: []string: decode slice: expect [ or n, but found ", error found in #10 byte of ...|command":"/run.sh","|..., bigger context ...|,"/opt/bitnami/redis/etc/master.conf"],"command":"/run.sh","env":[{"name":"REDIS_REPLICATION_MODE","|...

Hi @rshibley I was unable to reproduce the issue.
What version of the Redis Helm chart are you using? Did you update the Helm repository?
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
$ helm install stable/redis --values values-production.yaml --name redis
NAME:   redis
LAST DEPLOYED: Thu Feb 14 09:37:52 2019
NAMESPACE: default
STATUS: DEPLOYED
...
$ kubectl get pods
NAME                             READY   STATUS    RESTARTS   AGE
redis-master-0                   1/1     Running   0          2m24s
redis-metrics-5888d9d78b-7ktwr   1/1     Running   0          2m24s
redis-slave-56695c4f8f-2dlh8     1/1     Running   0          2m24s
redis-slave-56695c4f8f-6fj9g     1/1     Running   0          2m24s
redis-slave-56695c4f8f-dgq4s     1/1     Running   0          2m24s

I forgot to update my repo!!! Thanks 👍

repo: helm/charts


text:
[spark-history-server] Spark History UI Authentication

Problem Description
I would like to have the ability to authenticate the UI to LDAP, PAM or SPNEGO/Kerberos using whatever filter servlets/filters, etc might be required, and for this configuration to be handled with in the chart's values.yaml.  I have a hard security requirement that all web UIs must be authenticated and I don't have local Kerberos domain or Ambari managed Hadoop cluster to leverage.
Describe the solution you'd like
An easy UI authentication configuration in the chart with templates for several auth methods (LDAP/AD, PAM, SPNEGO/Kerberos).
Describe alternatives you've considered
Some sort of nginx proxy ingress authentication might be workable, if I can get examples.

Problem Description
I would like to have the ability to authenticate the UI to LDAP, PAM or SPNEGO/Kerberos using whatever filter servlets/filters, etc might be required, and for this configuration to be handled with in the chart's values.yaml. I have a hard security requirement that all web UIs must be authenticated and I don't have local Kerberos domain or Ambari managed Hadoop cluster to leverage.
Describe the solution you'd like
An easy UI authentication configuration in the chart with templates for several auth methods (LDAP/AD, PAM, SPNEGO/Kerberos).
Describe alternatives you've considered
Some sort of nginx proxy ingress authentication might be workable, if I can get examples.

Hi.
We run AKS on Azure and do the trick with Nginx Ingreess Controller + OAuth2 Proxy + Certmanager.
You can refer my helm chart repo and history-server chart settings. Will be glad to assist you on configurations, e-mail me with the details if you need a help.


text:
[stable/external-dns] trying to register IPv6 address?

Just deployed a few new K8S clusters and installed external-dns (1.0.2) using an image tag of 0.5.5 and 0.5.8 to test.
For some reason, when it goes to register the DNS entry in PowerDNS, it's trying to use an IPv6 address and failing.  The IPv6 it's trying to register is assigned to one of the worker node's eth0 interface, which also has an IPv4 since we don't use v6 here.

influx.prod.cluster./A 'fe80::250:56ff:fe85:8e31': Parsing record content (try 'pdnsutil check-zone'): while parsing IP address, expected digits at position 0 in 'fe80::250:56ff:fe85:8e31'"}"
11/14/2018 4:04:53 PM time="2018-11-14T21:04:53Z" level=error msg="Status: 422 Unprocessable Entity, Body: {"error": "Record influx.prod.cluster./A 'fe80::250:56ff:fe85:8e31': Parsing record content (try 'pdnsutil check-zone'): while parsing IP address, expected digits at position 0 in 'fe80::250:56ff:fe85:8e31'"}"

I believe this is a bug in Rancher K8S, not external-dns as the node is using a self assigned ipv6 address from eth0 instead of the assigned v4 address. I'm going to close this.  Thanks.


text:
[stable/jaeger-operator] Update image

What this PR does / why we need it:
Updates img to 1.10.0
Special notes for your reviewer:
cc @cpanato
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

cc @cpanato

bump

/lgtm

authors: cpanato naseemkullah


text:
[k8s-spot-termination-handler] Adding host network option.

Signed-off-by: Alexey Shabalin alexey.shabalin@fairfaxmedia.com.au

What this PR does / why we need it:
This PR allows a pod to stick to the host's network which means it doesn't have to go through the network overlay to query the metadata.
This might also be useful when you have a security solution that is filtering requests to the metadata endpoint.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @kierranm

/ok-to-test

/approve

/lgtm

authors: axozoid egeland