text:
Fix license declaration in package.json

You have your license set as licenses in package.json here.
Not a huge deal, just in the process of writing a module that gets and checks all licenses being used by projects and yours is the only one using {licenses: 'string'}. Figured I would give you a heads up.

Fixed. Thank you.


text:
[CODE IMPROVEMENT] Refactor chained samples

🔧 Proposed code refactoring
Extract logic for computing conversation chains into  separate functions/helper class.
Motivation
Currently, it is not possible to easily extract complete conversations without initializing the CustomDataset class.
The dataset class introduces some side effects (e.g. it automatically adds eos token to system text) and only shows complete samples if cfg.dataset.limit_chained_samples is True.
Useful for subsequent tasks such as:

#337
#229
Also better to test in isolation

Maybe consider to refactor in a way that the Llama2-chat prompting style can be used in it's precise form where the sys prompt is not prepended but rather included in the first instruction

source: gharchive/issue

authors: maxjeblick pascal-pfeiffer

license_type: permissive

license_source: github-api


text:
NFS/alternative storage provisioning

Details
Implement NFS or something like longhorn.
Describe the solution you'd like:
Investigate option feasibility for medium-long term usability and then implement it
Anything else you would like to add:
Needs to be fast enough for Plex. May necessitate clever caching
Additional Information:
N/A

Completed in #f51b8ac

license: MIT


text:
0 in AnimatedFlipCounter with custom font gets spaced weirdly

For some reason, the 0 in the AnimatedFlipCounter with a custom font is spaced weirdly, so it gets cut off.
Left: Normal Text Widget
Right: AnimatedFlipCounter

Does it seem that for this particular font, the number 0 is a little bit wider than other digits?
Maybe try using the padding property to give some horizontal padding to each digit, see if that solves the problem for you.

@h65wang I checked the font 0 spacing, and it looks to be no spacing issue. I am wondering if maybe this is a flutter issue.

what do you mean? If you stack number 8 on top of number 0, can you see if 0 is wider?
Also, did you try using padding. Please close this issue if it's solved.

I took your screenshot and stacked 0 on other digits:

From the stacked image, it's clear that the issue is caused by 0 being wider than other numbers in this particular font. It's not a flutter issue.


text:
Play Store Video

Not a very big deal, but the play store video when viewed from a Mobile Device (Web is fine) looks like this and the entire screen is cut off. Play store plays all videos in landscape I believe.

Just thought I'd let you be aware of the issue @h6ah4i
[Using an HTC One M7]

Thank you for the issue report.  I made a new demonstration video for v0.6.0 and fixed the issue.

license_source: bigquery


text:
hCaptcha bounties on Gitcoin. Gotta solv'em all!

Please solve all our issues from the following complexity-labeled list:

Large

A simple web3 form for contract work - https://github.com/hCaptcha/hmt-escrow/issues/129

Total active bounties:
    - Large: 1

Bounty reward depending on size:
Small: $100 in eth
Medium: $200 in eth
Large: $400 in eth

Looking forward to your help!

Hi I'm still working on this.

Hi @excerebrose, thanks for tackling this issue!
I was wondering if you could answers a few question below, in order to help provide some insight on how you plan to solve this issue.

Could you outline the application flow you intend to setup?
Do you plan to use any frameworks, and if so which ones?
Do you have a checklist, or could you create one to help guage progress?
Do you need any assets or files?

If you have any questions just let me know!

Hey @brdlyptrs The discussion was happening here: #129
Happy to take up quesytions there?

Sounds good to me @excerebrose!

@brdlyptrs can you take care of this gitcoinbot warning? this will be done in a day.

Canceling the bounty since we had issues with formally finalizing the payout on Gitcoin due to wrong gas tx settings. The worker has been paid, though.

authors: brdlyptrs excerebrose uivlis

repo: hCaptcha/hmt-escrow


text:
Built-in SSL support?

Is there any way to to serve fileManager through SSL connection without using caddy ?
I want to use my own SSL certificate, and don't know how to.

Hello @v-garcia! No, there is no way to serve File Manager through SSL connection without a web server. File Manager wasn't made to be a server itself. You should use another web server and proxy it to file manager or use Caddy.

authors: hacdias v-garcia

repo: hacdias/filemanager


text:
Add FR EN translation for charge_mode

Close #81

You need to rebase your branch.

How please? I don't know.

I do not have permission to update your branch. Maybe it is best if you delete your branch/fork and recreate it

Replaced by #96

source: gharchive/pull-request

repo: hacf-fr/hassRenaultZE


text:
Fix ContextConsumer Snapshots

Some snapshot tests don't render the correct tree and are instead rendering:
ContextConsumer
Component
ContextConsumer
This snapshot will pass regardless of any changes to the component being tested, which obviously shouldn't be the case.

Most likely has to do with the shallowRender function. Since this function doesn't render children and instead replaces them with a component tag, it's possible that connected components are getting the top level connection rendered and not the actual component.
Would most likely need to mount the full component or find a way to reach the desired connected component and fully shallow render it.


text:
Crafting can be done from "read-only" snapshot

Steps to reproduce:

Run /hackstead command
Select Crafting button
Select an item to craft
Click on "your hackstead" (or go to the hackagotchi's app home directly)

I have tested this on my own hackstead - have not tested it on anyone else's.

wish I had a PR to point to here but I don't, but this is fixed.

repo: hackagotchi/hackagotchi


text:
Automated event card-creating and more

Hello Hack Club team,
I posted my suggestions in #hq in the Hack Club Slack, but @thesephist asked me to also make an issue so that you guys would know what exactly I'm asking for. These are my ideas in the form of a list:

Automated hackathon card creating. It's in the title: I want event cards to be automated. This is one of the biggest issues with the site right now, in my opinion. Because it's pretty hard to apply for a spot on the site, and it's also pretty low-tech with that Google Form, event organizers don't really use this site much. If this whole process was automated, this would be way easier to manage, both for staff and for the organizers. I'm imagining some sort of Airtable form (connected to an Airtable sheet that makes it easier to visualize all the past events) that automatically creates the event card and adds it to the site. Further, (and I don't know if this has been done already), once the event date has passed, it should automatically be moved to the "Past Events" area of the site.

Basic HCB integration. I don't want every single event added to Hack Club Bank to show up on the site, but I do want the form to both be in the Documents tab of the Bank dashboard (or even as a little button in the corner of the dashboard, which would probably be preferable because it's easier to access) and also have an easy way to get to Bank from the Hackathons site (so that it's easy for organizers to switch between the two). This fixes many problems with the site: it gives organizers the option to actually put their hackathon up (making the website more up-to-date), it gives the hackathon free advertising, etc. It also fixes the problem of the review process: to get into HCB, you'd need to go through a rigorous review process anyway, so that part could just be skipped. That second point is a good segue to my next suggestion.

A complete design overhaul. I know that this suggestion wasn't in my message in the Slack, but I do think this is a really good move. The announcement of such an overhaul would generate tons of traffic to the site, and it'd also just make the site look good overall. A new Bank button/hyperlink, a new overall look, etc. Further, I'd like each event card to show (when hovered over) how many registrants this event has (I don't know the plausibility of this really) and also how many people have clicked on this event from the Hackathons site. This would be awesome.

And that's it! I'm so sorry for such a long issue, but I think this would really help the website be used more and look/feel awesome. @Harshith in the Slack or just DM me if you want to talk about this more!

@harbar20 I think these are really good ideas. Max and I are talking about doing some work along these lines.

repo: hackclub/hackathons


text:
Fix mouse look jitter

Time.deltaTime should not be used for mouse delta since it already is a delta of pixels moved across the screen. Dampening mouse input by two orders of magnitude seems to work well for this input.
Background: I'm working on the game from a laptop where only the integrated graphics work, and with low framerate the current mouse input handling showed glaring faults, jittering painfully when I tried to aim (especially with ironsights).

Could you set the mouse lookspeed to 0.0015 instead? After some testing I found this value to feel less "sluggish", as I find the mouselook speed here a bit too slow

Done. And by the way, I think we could benefit from using separate zoomed-in look speeds for mouse and gamepad, as the current zoomed-in sensitivity seems fine on gamepad and too sensitive with a mouse (though that may be subjective ofc ofc)

I do notice that the jitter is still present on my end, so we may need to do some actual smoothing of the inputs here later

repo: hackerspace-ntnu/Red-Planet-Rampage


text:
Connection failed

First: Thank you for that great Adapter. I'm very happy with it.
Describe the bug
The Adapter ist running fine - the most time. Sometime it has connection problems. Roundabout 10 times a day, the IOBroker log shows this massage:

valloxmv.0
2020-10-28 08:24:05.748
error
(1981) Connection failed

valloxmv.0
2020-10-28 08:24:05.747
error
(1981) socket hang up

valloxmv.0
2020-10-28 08:15:06.778
error
(1981) Connection failed

valloxmv.0
2020-10-28 08:15:06.777
error
(1981) socket hang up

valloxmv.0
2020-10-28 07:57:05.802
error
(1981) read ECONNRESET

valloxmv.0
2020-10-28 07:57:04.757
error
(1981) Connection failed

valloxmv.0
2020-10-28 07:57:04.756
error
(1981) read ECONNRESET

Versions:

Adapter version: 1.1.1
JS-Controller version: 3.1.6
Node version: v10.22.1
Operating system: raspian

At first i recommend to verify the connection between iobroker and vallox device.
Please setup and log a continuous ping from iobroker os to vallox ip address including timestamps.
Then i would check if the ping has lost packets or latency increases during events where the iobroker adapter hast failed connections.
You could try to set log level to debug for valloxmv adapter, perhaps we can get more detailled error logs.

I have read your comments on vallox-api but i can not reproduce with my device. Do you think you can come up with a solution or do you have a suggestion on how to work around that limitation of your device?

As stated above it's a problem with the websocket implementation of the underlying vallox-api, but I'm not able to provide a fix at the moment, since this reaches deep into Promises and I'm not really familiar with that.

I often have a "network error" message when accessing vallox Web UI with my mobile browser. This seems to be a vallox firmware issue. Did you solve your issue? Can we close this?


text:
modifications to disvis webserver tutorial

my modifications to the tutorial, some further comments/suggestions:

/path/to/ might be easily copied without modification and not applicable to windows (maybe delete  the commands and just mention that a command to open the files exists)
randomise position of partners so that they are not in contact when loaded
first color residues of crosslink to highlight patches
visualisation of distances might be more applicable in a predicted complex
maybe add instructions to play with radio buttons and expand advanced options group
visualising AIS with 7 restraints shows nothing in chimera in the example (maybe also add chimera screenshot with Volume Viewer window)
Add reference to "conformation in the literature”
Explain Cutoff for defining a residue as important/active (the 10 and 12 answer doesn’t seem self explanatory to me)

randomise position of partners so that they are not in contact when loaded

But then they can not longer guess which restraints are false positives… We do ask for it in the tutorial.
Also at the later stage to compare the ones identified by disvis with their initial guess.
Not ideal I agree, but kind of ok for the purpose of the tutorial

visualisation of distances might be more applicable in a predicted complex

Still nice to show how to do it - since we do not predict the complex in this tutorial…

Thank you for the feedback and the time you dedicated to it! Here are few answers:

/path/to/ might be easily copied without modification and not applicable to windows (maybe delete the commands and just mention that a command to open the files exists)

Yes, followed example for the powerfit web server, we can change that even if I think that users will figure out that's they need to change the path. Why would it not work on windows? There's a command line tool also there and I just tested, works perfectly.

randomise position of partners so that they are not in contact when loaded
...
visualisation of distances might be more applicable in a predicted complex

Seems contradictory... Or we add a fitting step. We do it at the end of the tutorial. Anyway, PRE5 and PUP2 are placed as they are found in the homolog model 1ryp (chain E+F). It's also as we provide them in the example, I suppose that it comes from the homolog model evoked in Gydo's paper. I cannot be 100% sure since the supp. mat. of the paper, where the model is supposed to be, is not accessible.

first color residues of crosslink to highlight patches

Rather easy to do, I'll add this step.

maybe add instructions to play with radio buttons and expand advanced options group

I can add a sentence like that when I'm talking about the sampling parameters.

visualising AIS with 7 restraints shows nothing in chimera in the example (maybe also add chimera screenshot with Volume Viewer window)

I can clearly see it in both the web page and the output files (Tutorial2.tgz). You were talking about the accessible_interaction_space.mrc, right?

Add reference to "conformation in the literature”

I'd rather change the whole question, this made sense when I was evoking the crystal structure in the first step but it has moved to the last steps. Good catch ;)

Explain Cutoff for defining a residue as important/active (the 10 and 12 answer doesn’t seem self explanatory to me)

I'll add the cutoff indeed, rather important even if empirical.
To sum up, I'll add the changes I mentioned above asap. In the meantime, discussions are open..!

/path/to/ might be easily copied without modification and not applicable to windows (maybe delete  the commands and just mention that a command to open the files exists)

Yes, followed example for the powerfit web server, we can change that even if I think that users will  figure out that's they need to change the path. Why would it not work on windows? There's a command line tool also there and I just tested, works perfectly.

Just wasn't sure how windows treats paths and what the correct format in chimera would be than c:\\... ? but if you can test that

randomise position of partners so that they are not in contact when loaded
...
visualisation of distances might be more applicable in a predicted complex

Seems contradictory... Or we add a fitting step. We do it at the end of the tutorial. Anyway, PRE5 and PUP2 are placed as they are found in the homolog model 1ryp (chain E+F). It's also as we provide them in the example, I suppose that it comes from the homolog model evoked in Gydo's paper. I cannot be 100% sure since the supp. mat. of the paper, where the model is supposed to be, is not accessible.

I'm thinking about the impact of DisVis here. As the general use case should be starting with two partners not already in a complexed position. I would thus advocate randomising the starting orientation and just visualizing  the position of the croslinked residues (Do they cluster, are they surface accessible) first  and display the distances after we did the fitting to the homologous  structure.

maybe add instructions to play with radio buttons and expand advanced options group

I can add a sentence like that when I'm talking about the sampling parameters.

already added something similar after writing this comment - just check it won't be superfluous

visualising AIS with 7 restraints shows nothing in chimera in the example (maybe also add chimera screenshot with Volume Viewer window)

I can clearly see it in both the web page and the output files (Tutorial2.tgz). You were talking about the accessible_interaction_space.mrc, right?

Yes I was using a quick scanning run I submitted - Did your example come from complete scanning?

Add reference to "conformation in the literature”

I'd rather change the whole question, this made sense when I was evoking the crystal structure in the first step but it has moved to the last steps. Good catch ;)

maybe remove this altogether especially if we go for the above mentioned changes

Explain Cutoff for defining a residue as important/active (the 10 and 12 answer doesn’t seem self explanatory to me)

I'll add the cutoff indeed, rather important even if empirical.

A cutoff of 1 might work for this example but with less stringent restraints it probably won't (See example 1). I would refrain from mentioning something  which sounds like best practice (as in the last commit to your branch) and just suggest to look at the top N for now until we have some benchmark on this.

To sum up, I'll add the changes I mentioned above asap. In the meantime, discussions are open..!

I'm thinking about the impact of DisVis here. As the general use case should be starting with two partners not already in a complexed position. I would thus advocate randomising the starting orientation and just visualizing the position of the croslinked residues (Do they cluster, are they surface accessible) first and display the distances after we did the fitting to the homologous structure.

Why not, makes sense to me, @amjjbonvin , what's your take on this one? We can show the cross-links at the end, once we superimposed the models on S. cerevisiae homolog. We then check if both active residues and cross-links are coherent. And we keep only a generic overview of the regions where the cross-links come from.

Yes I was using a quick scanning run I submitted - Did your example come from complete scanning?

As said in the tutorial, yes ;)

maybe remove this altogether especially if we go for the above mentioned changes

il will be removed if we process as stated above

A cutoff of 1 might work for this example but with less stringent restraints it probably won't (See example 1). I would refrain from mentioning something which sounds like best practice (as in the last commit to your branch) and just suggest to look at the top N for now until we have some benchmark on this.

But top N is completely case-dependant and will vary with the size of the list provided, the size of the interface, of the partners, etc.
At least 1 has a minimum of relevance since you're looking for residues in contact... If you find one residue making at least one contact in average, you can be quite confident that he's at the interface (providing you have enough complex of course, less trustful for only a few complex, but we have ~20K complexes in our example.)

authors: amjjbonvin mtrellet schaarj

license: mit


text:
DRY

Implement global require function for local modules. e.g.
const join = require('path').join,
global.requireModule = name => require(join(__dirname, name));

PR open https://github.com/haensl/js-performance/pull/43

Done in v1.6.2

authors: f-masche haensl

repo: haensl/js-performance


text:
(New feature) Mouse sounds

Is it possible to add sounds to mouse clicks?
If you could be a good feature to add later

yea loll im thinking the same


text:
WebGL error "glDrawElements: Source and destination textures of the draw are the same."

[.WebGL-0x7fe8480c0000]GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same.

Oops, this was my fault: my Ebiten version was too old

repo: hajimehoshi/ebiten


text:
Feature request: allow separate text formatting for lower and upper values

Currently we have a TextFormat  property, it would be great to have extra optional LowerTextFormat  and UpperTextFormat ones.
For example, I'd want to treat maximum upper value as unlimited and display "Unlimited" label when upper handler is at right most position.

@rudyryk hm... interesting, will add this to the backlog.

@rudyryk  I've added FormatLabel method which you can use to format label as you like. Please check out v0.6.5.

@rudyryk  sorry, v0.6.5 is broken, please check out v0.6.6.

authors: halkar rudyryk

repo: halkar/xamarin-range-slider


text:
Improvement => placeholder

Hi there,
Thank you so much for your reactivity on my previous issue!
I created this issue for an improvement idea regarding placeholders. This came up because my coworker added a placeholder for french numbers to your component on our project. As the whole point of using your component is that the users will be able to register a phone from any country, this is far from ideal.
Would you consider adding a dynamic placeholder, since you already know the format of the number needed in all countries? It could dynamically change according to the selected country & international/local version of the number.
I believe it would be an incredible improvement on your component. :)

Describe in more detail how this placeholder would behave.
Do you mean the usual HTML5 placeholder attribute?

Or maybe you were talking about something like maskChar property from react-input-mask
http://sanniassin.github.io/react-input-mask/demo.html
Since phone numbers aren't deterministic there are many countries for which phone number can be of variable length and several formats therefore I think such feature wouldn't make much sense. And also I don't like masked inputs personally so I won't be implementing them.
If anyone decides to implement such a feature they would start with maskChar property in input-format library and then add a maskChar property in this library.
Alternatively one could supply an HTML5 placeholder={this.generatePlaceholder()} using the already existing country and onCountryChange properties.

authors: alicerocheman halt-hammerzeit


text:
いいところ診断の結果にやさしさを追加したい

以下の結果を追加したい
'{userName}のいいところは優しさです。あなたの優しい雰囲気や立ち振る舞いに多くの人が癒やされています。'

これから対応します。


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 86 ms

Resolved: ClamAV performance has improved in 5835c38 after 8 minutes.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 79 ms

Resolved: ClamAV performance has improved in 97cbc02.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 122 ms

Resolved: ClamAV performance has improved in 50757f3.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 76 ms

Resolved: ClamAV performance has improved in 01da059.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 56 ms

Resolved: ClamAV performance has improved in 4478bd6.


text:
Wrap function erlang:abs/1

abs(Int) -> integer() >= 0
abs(Float) -> float()

I add 'abs' function. [https://github.com/hamler-lang/hamler/pull/417]

authors: EMQ-YangM emqplus

repo: hamler-lang/hamler


text:
Remove flier from boxplot on stripboxplot

This removes the outlier marker from stripboxplot since we plot each point anyways

Changes Unknown when pulling ab89f7e028c209416d19bbe740fe032fdc6b807e on remove-flier into ** on master**.

LGTM

authors: arahuja coveralls tavinathanson

repo: hammerlab/cohorts


text:
Getting rid of memoization on many properties and methods

Partially addresses: https://github.com/hammerlab/pyensembl/issues/150
We're still leaking an unbounded amount of memory to memoization but now it's at least being centralized through a few "important" methods such as those which get Gene, Transcript, and Exon objects by ID or the database query helpers.

This change is

LGTM

Coverage decreased (-0.3%) to 80.026% when pulling a236762f9ecbe9f7d8e52e5a6af77f0eed8fc9fa on less-memoization into 1df3c22aa1ee32b71c35764affd82a24fcc6a967 on master.

authors: coveralls iskandr timodonnell

repo: hammerlab/pyensembl


text:
windows 7

will i be able to do the project using wondows 7?

how do i stream the content wirelessly using which server

which is the software which can be seen in the video

repo: hamuchiwa/AutoRCCar


text:
Streaming previous changes

If I would like to stream changes from the beginning. How can I start?
Or is it recommended to start with SELECT statements and then switch to streams?

Hey sorry @imranismail  to be getting back so late. Yes the only way to get data before the stream is to go to the database directly.

authors: imranismail surbas


text:
Backspace in filter by value option does not work initially

Description
Backspace in filter by value option does not work initially. However if you focus out then focus in again it works.
Steps to reproduce

Enable filters and dropdown
Try searching by value (type any value)
Delete (backspace)

Demo
https://codesandbox.io/s/declaring-column-settings-1u5ew?file=/src/index.js
Your environment

React wrapper version: 3.1.3
Handsontable version: 8.0.0-beta.1
Browser Name and version: Chrome 81.0.4044.122 (Official Build) (64-bit)
Operating System: Windows 10

Thank you for sharing @RanaOsamaAwadallah
I have replicated the same using simplified demo https://codesandbox.io/s/declaring-column-settings-plfc7 on Chrome 83 on Windows 10 and macOS Catalina.
The issue does not happen for Vanilla, Angular, nor Vue.
The demo loads Handsontable 8.0.0-beta1 but it works well in 7.4.2 https://codesandbox.io/s/declaring-column-settings-jee5e

Issue moved to handsontable/handsontable #6842 via ZenHub

Hi @RanaOsamaAwadallah
I’m glad to announce that Handsontable v8.0.0 that solves this issue is live!

You can use it by updating your Handsontable for React to v 4.0.0.
Release Notes for Handsontable for React v4.0.0 https://github.com/handsontable/react-handsontable/releases/tag/4.0.0
Release Notes for Handsontable v8.0.0 https://github.com/handsontable/handsontable/releases/tag/8.0.0
I highly encourage you to test the new version and leave some feedback.

authors: AMBudnik RanaOsamaAwadallah

repo: handsontable/react-handsontable


text:
Optimization: Check for implicit anchor

Slight improvement on #95
From O'Reilly's book:

An engine with this optimization realizes that if a regex begins with .* or .+ and has no global alternation an implicit ^ can be prepended to the regex.

Intuition is that .* and .+ collide / consume all the initial characters that don't really match the pattern ergo .* and .+ will consume the entire input string in one go...bumping the initial start position is much like remaining in the .* or .+

Example: https://gcc.godbolt.org/z/85zaEe

Example: https://gcc.godbolt.org/z/85zaEe

In testing without the implicit anchor searching for .*pattern I could not get the benchmark to complete (there's excessive amount of backtracking here). With this check however it seems to run roughly half as well as just searching for pattern directly. It's probably worth extracting the .* from the pattern and running search directly.

In testing without the implicit anchor searching for .*pattern I could not get the benchmark to complete (there's excessive amount of backtracking here). With this check however it seems to run roughly half as well as just searching for pattern directly. It's probably worth extracting the .* from the pattern and running search directly.


text:
Patch Security Vulnerability: Array to pointer decay creates calls with zero_terminated_string_end_iterator()

Added wrappers to catch some obvious usages, it may be worth it to delete others!

It breaks usage over string literals (as they contains ending \0) and if you allow the ending \0 it won't work for C-arrays. Instead use std::array and there is existing specialisation for types with .begin() and .end()

It breaks usage over string literals (as they contains ending \0) and if you allow the ending \0 it won't work for C-arrays. Instead use std::array and there is existing specialisation for types with .begin() and .end()

Well, the alternative approach would be to specialize this case with it's own specialized iterator, one which plays it safe with a known bounds? It's a bit of a mix to have ::std::array and the C array it wraps to behave differently.

Well, the alternative approach would be to specialize this case with it's own specialized iterator, one which plays it safe with a known bounds? It's a bit of a mix to have ::std::array and the C array it wraps to behave differently.

I'm not going to do double checks just for convenience. If you are using C array you are probably aware of dangers of iterating them, and you can always provide pair of iterators to it.

I'm not going to do double checks just for convenience. If you are using C array you are probably aware of dangers of iterating them, and you can always provide pair of iterators to it.

Really wish there was a way to distinguish a string literal at compile time, because that's unfortunate.

Really wish there was a way to distinguish a string literal at compile time, because that's unfortunate.

Well, best I can tell, since string literals are well formed, which means the null at the end takes an entire character. So I suppose an alternative is just to assume it's a call for literals and remove one character? Not sure how you'd feel about that.

Well, best I can tell, since string literals are well formed, which means the null at the end takes an entire character. So I suppose an alternative is just to assume it's a call for literals and remove one character? Not sure how you'd feel about that.

It looks as though, and I'm not entirely clear on the specification of basic_string_view, that it may do what we'd both want? EG: it may be safe to construct a basic_string_view with N-1 (because literals have the null character). It says the string it's viewed over may contain the null character*.
If I try:
const char8_t u8sa[4] = u8"a\0b";
static constexpr auto weird_utf8 = ctll::fixed_string(
	R"RGX([a]\x00[b])RGX"
);
auto a = ctre::match<weird_utf8>(u8sa);

It seems as though the array is length 4, the view it constructs reads u8"a", so it appears to behave similarly to the zero_terminated call, but the range is specified?

It looks as though, and I'm not entirely clear on the specification of basic_string_view, that it may do what we'd both want? EG: it may be safe to construct a basic_string_view with N-1 (because literals have the null character). It says the string it's viewed over may contain the null character*.
If I try:
const char8_t u8sa[4] = u8"a\0b";
static constexpr auto weird_utf8 = ctll::fixed_string(
	R"RGX([a]\x00[b])RGX"
);
auto a = ctre::match<weird_utf8>(u8sa);

It seems as though the array is length 4, the view it constructs reads u8"a", so it appears to behave similarly to the zero_terminated call, but the range is specified?

string_view is doing strlen in it's constructor, which can be omitted if the length is known ahead

string_view is doing strlen in it's constructor, which can be omitted if the length is known ahead

Well I guess the question is what happens with char8_t / utf8, because that's variable length encoding. Is it assuming N characters or N bytes?

Well I guess the question is what happens with char8_t / utf8, because that's variable length encoding. Is it assuming N characters or N bytes?

@hanickadot I get you would rather not double check, perhaps it should be a preprocessor macro option like with MSVC's greedy workaround? I'd leave it such that the default option plays it safe.

@hanickadot I get you would rather not double check, perhaps it should be a preprocessor macro option like with MSVC's greedy workaround? I'd leave it such that the default option plays it safe.

authors: Andersama hanickadot


text:
不中断Hanlp更新词库

你好，请问下我定义了一份词典CustomDictionaryPath=data/dictionary/custom/test.txt;
然后在程序中运行过程中，更新了text.txt文件，句子的分词仍然是按照旧的分词，这里的热更新reload该如何解决?

你好，感谢反馈。
由于未按要求填写，本issue被自动关闭。请按issue模板认真填写，然后耐心等待下周末处理。
开源项目维护不易，只能在周末受理友好的提问，造成不便还望海涵。

repo: hankcs/HanLP


text:
pip install 为什么安装不上

Describe the bug
A clear and concise description of what the bug is.
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Describe the current behavior
A clear and concise description of what happened.
Expected behavior
A clear and concise description of what you expected to happen.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Python version:
HanLP version:

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

[ ] I've completed this form and searched the web for solutions.

[auto-reply] Thanks for your comment. However, the essential information is required. Please carefully fill out the form when open a new issue.


text:
Compilation Issue

Hello hans00,
I saw that you have forked a octarine project in which i am really interested, currently i plan to develop the same think as you have already done, i have tried to compile your solution running

i have removed flag --experimental_remap_main_repo as suggested in this topic (https://gitlab.cncf.ci/envoyproxy/envoy/commit/07fa5e0a43b489d907e402d0bcb0ff85d40f823a)
Now i'm facing this issue Error in path: Unable to load package for @envoy//api:BUILD: Package is considered deleted due to --deleted_packages

Can you provide me some suggestions, have already compiled successfully this project?
Many thanks!

Which envoy version does you use?
Have you fully clone the git repository? (Includes submodule)


text:
screw_your_friends.py

funny prank code using python

Merge my request

@Princekumaraj
Don't worry it will be approved soon as you may know their are a lot PR's right now and also it's a one month program so don't worry it will be approved as soon as possible also I can't merge all PR's blindly as it may result in the repo being excluded from the program like many other repo so be patient full you PR will be accepted soon. Happy Hactoberfest

bro it shows ur project is excluded from hacktoberfest2021. why ?

@Princekumaraj
Actually this repo is now been excluded from hactoberfest I was fearing that it will happen eventually their can be any reason like a lot of spam PR’s so it can’t be helped but yeah it’s a one month long program so their is a lot of time to do more PR’s on many different repo’s. So, yeah Happy Hactoberfest

add labels of hacktoberfest and hacktoberfest2021 and hacktoberfest-accepted

now u can merge my file dude

authors: Princekumaraj hanshulll


text:
🛑 Diaspora Admin Console is down

In b4b1d0e, Diaspora Admin Console (http://100.27.155.7/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Diaspora Admin Console is back up in 03ed9a8 after 16 minutes.

repo: haochenpan/diaspora-uptime-monitor


text:
onDateCreate option: How to inject HTML/React component

How do i update the DOM node returned within the <Flatpickr> prop options. The JS flatpickr example has it like this:
                 onDayCreate = {(dObj, dStr, fp, dayElem)=>{
                        // Utilize dayElem.dateObj, which is the corresponding Date
                        // dummy logic
                        if (Math.random() < 0.15)
                            dayElem.innerHTML += "";

                        else if (Math.random() > 0.85)
                            dayElem.innerHTML += "";
                    }
                 }

which can now translate to
       <Flatpickr data-enable-time
                  value={startDateTimeValue}
                  options={{minDate: "today"}}
                  onChange={date =>  setStartDateTimeValue(date) }
                  onDayCreate = {(dObj, dStr, fp, dayElem)=>{
                      // Utilize dayElem.dateObj, which is the corresponding Date
                      // dummy logic
                      if (Math.random() < 0.15)
                          dayElem.innerHTML += "";

                      else if (Math.random() > 0.85)
                          dayElem.innerHTML += "";
                  }
                  }
           />

Basically i want to update the day with a marker based on a value i already have.  My guess is the only way would be to use a ref and possibly a _dangerouslySetInnerHTML. dayElem points to a HTML node and AFAIK there really is no way to update the innerHTML inside of an React component.
onDayCreate = {(dObj, dStr, fp, dayElem)=>{
                        let newRef:React.Ref<HTMLSpanElement> = React.createRef();
                        dayElem.setAttribute("ref", newRef);
                        console.log(dayElem)
....

returns, for example
23

This is a non-issue - sorry. The DOM node does indeed get added with the original onCreate. There is no need to go the circuitous ref route. It was just a case of me inspecting the wrong date entry in the console: I forgot about the Math.random which changed the selected dates on refresh. Additionally the CSS style for the injected  wasn't updated in my attached stylesheet so there was no visual feedback as well.

repo: haoxins/react-flatpickr


text:
reduce size?

Hi! What is allowable ways to reduce generated dxf file size? I already used LwPolyline instead Polyline. Is existed way to use single global style for ever entity?

If you have not tried it save your DXF file as binary, it will always be smaller than its equivalent text version. Your other option is to remove any block, layer, text style, dimension style,... not used by any entity in your drawing, the equivalent to executing the purge command in AutoCad.

but how to remove not used entities by netDxf ?

Use the RemoveEntity method of the DxfDocument class, this is the easy way.

Answer me why question. Why did you make your question in an old post that has nothing to do with your problem?
Usually it is better to give as many details as possible about what you are trying to do, and obviously make your question in a new post, comment in existing ones if you actually have something to say about the discussion at hand.
My guess is that you are changing the TextHeight of the dimension style and later you add it to the document. Keep in mind that when you add entities to a document, its properties that refer to table objects like layers, line types,...; or in your case dimension styles will not overwrite the existing ones, this is intended.
When you create a dimension by default it is associated to the default dimension style called "Standard", but this one is also always present in the document, therefore, it will not overwrite it. You can create a new style for your dimension, directly modify the dimension style of the document, modify the text height after it has been added to the document, or you can use the dimension style overrides to individually change its properties.
If your dimension comes from an external DXF, set the dimension associated block to null to force AutoCad to rebuild it, you could use the existing methods inside netDxf to build dimension blocks but its functionality is limited.
Dig a little bit into the samples in the TestDxfDocument project.

authors: haplokuon prgprgprg91 rdwh

repo: haplokuon/netDxf


text:
Thermostat action.devices.commands.SetTemperature not changing the actual temperature

Hi,
I'm trying to set up a thermostat device which I'm pushing a current temperature. As per documentation I understand that the payload for the command action.devices.commands.SetTemperature should look like this:
{"command":"action.devices.commands.SetTemperature","params":{"temperature":21.8}}
However there is no reaction/change on the device. Can you please confirm that this payload is correct.

You are going to have to supply a LOT more information, it's not clear what you are doing here.
Are you trying to react to a command from the Google Assistant or update the status of a device from a sensor reading?

Hi,
Thanks for looking into this.
Actually I'm trying to notify the thermostat what is read current ambient temperature from the thermostat device.
When you ask the google home: "What is current temperature set in room X? " It will answer:
"Heating is set to :XX and current temperature is: XX" Now if I read correctly the Thermostat device has a hook for this command action.devices.commands.SetTemperature, ist that correct ?
In short I'm trying to use google home response module to supply current setpoint state and current ambient temperature.

OK
The ambient temperature is not set as the result of a command, it is updated with status updates
The payload is wrong. It should look like this:
  {
    params: {
        thermostatTemperatureAmbient: 23.5
    }
  }

You should feed this into a response node configured to point to the thermostat device separately from any responses to commands and you should only feed it in when the value changes. You can use a RBE node to help with only sending the changes

Thanks, works like a charm.
Ok so the states of the device listed on google actions you need to supply them directly in params.
Got it, thank you again.

authors: bbrowaros hardillb

repo: hardillb/node-red-contrib-googlehome


text:
Minor issues

Hi @hardlydifficult ! This repo was forwarded to me by @nearnshaw to take a look at it in order to use it for a tutorial/video. First of all, great job! I really like the approach you took to build this game, I just wanted to give you some feedback around some minor issues that I think can be improved:

The name of the ScriptableScene class is still HouseScene (link)

The name of the list of enemies/creeps is entities (i.e. getState().entities), I think this name might be a little misleading since entity is a term used to refer to the 3D entities in the scene like <entity>, maybe a name like enemies or creeps or blobs would be more clear? Same goes for the <Entity> component (link)

I see this pattern repeated in the code:

// do something
setTimeout(() => {
  // do something else later
}, 1000)

This pattern becomes a little hard to follow when there are many nested timeouts like here, but if you add a helper like this:
const sleep = (ms: number): Promise<void> => new Promise(resolve => setTimeout(resolve, ms))

Then you can use a pattern like this:
// do something
await sleep(100)
// do something else later
await sleep(1000)
// do something else after that

Which is easier to follow, you just have to make sure to make the function you are executing that helper in an async function, like converting this:
this.eventSubscriber.on('event', () => {
  // do something
  setTimeout(() => {
    // do something else
  }, 1000)
})

into this:
this.eventSubscriber.on('event', async () => {
  // do something
  await sleep(1000)
  // do something else
})

notice the async
- this.eventSubscriber.on('event', () => {
+ this.eventSubscriber.on('event', async () => {

And finally, just as a suggestion (it's probably out of the scope for this tutorial) I see that the game starts as soon as the server starts, but there's no concept of a "match". If this were to be deployed to decentraland it would be a never ending match (unless the server restarts). It would be great if the game had some event/condition to make it start (ie clicking on a button) and then an "end" condition (time/score/lives/etc) to make it end the game and go back to initial state. Again, that's just a suggestion if you are planning to deploy this to DCL (which I believe you should totally do!) but I don't think is necessary in order to use this as a tutorial/video.

Thanks for the feedback!  I've made all the changes you suggested and will begin crafting the tutorial now.

Awesome :D

authors: cazala hardlydifficult

repo: hardlydifficult/DecentralandCreeps


text:
added 'dig search' option for clustrer ip resolving (important for k8s)

without +search option dig is unable to find containers ip addresses in k8s env.

Thank you for your contribution.  Can you provide me an example of resolv.conf file in k8s env ?

authors: fa-at-pulsit hardware

repo: hardware/mailserver


text:
Implement exchange rate oracle module

The exchange rate oracle module helps the onebtc bridge to get access to and aggregate the price feeds of ONE, BTC from chainlink and other centralized/decentralized oracle systems.
specs of this module can be found here
polkabtc module for reference is here
The exchange rate oracle is dependent on following modules:

collateral
treasury

For future reference, new specs can be found here

Closing issue

authors: givp gupadhyaya

repo: harmony-one/onebtc


text:
Update run-bamboo-plans-in-cd.md

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

add feature flag

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

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

just needed the feature flag

authors: bot-gitexp-user michaelcretzman

repo: harness/developer-hub


text:
Connection error Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:  streamlit run yourscript.py

When I try to run webui.bat, it always crashes on this:

When I run it with main.py (I dont know what else to run it with) it crashes with "ERROR:    [Errno 10048] error while attempting to bind on address ('0.0.0.0', 8080): only one usage of each socket address (protocol/network address/port) is normally permitted"

https://github.com/harry0703/MoneyPrinterTurbo/issues/111#issuecomment-2032354030
Let's try this solution to see if it works properly.

It has been fixed.
You can try again after updating the code.
If there are any issues, feel free to provide feedback.


text:
Sports News Tracker - Chrome Extension Added

🛠 Fixes Issue
Fixes #271
👨💻 Changes proposed
Chrome Extension Added for News Tracking - Sports
🔧 Check List (Check the type of issue it fixes)

[ ] Bug Fix
[x] New Extension
[ ] Enhancement
[ ] Documentation

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Request you to add Level 2 and GSSoC Label for this !

@whiteHatpro @harshita214  can you review this PR


text:
neuralnetwork.js line 196, missing semicolon?

in neuralnetwork.js
line 196, 246, 287, 501, 506, 569 missing semicolon?

Solved here: https://github.com/harthur-org/brain.js/blob/3843729dd0ae5cb8e6be21b6040c254a9fcf4e0b/src/neural-network.js

authors: robertleeplummerjr weimingwang

repo: harthur/brain


text:
stable-diffusion-webui-auto-translate-language.json

Extension GitHub URL
URL:https://github.com/benlisquare/stable-diffusion-webui-localization-zh_TW

a77b09c


text:
systemd: Disable atd & cron

Those services can be used to run programs outside a user's slice, bypassing resources limits.

@KellerFuchs this PR still has the weird duplication in file names.

@daurnimator Thanks for the reminder.
Also, I just realised that this will break all the maintainance scripts under cron.*.
I will add some systemd units that run them.

@daurnimator I added some systemd units to periodically run /etc/cron.*, but I didn't try them yet.

@daurnimator I added some systemd units to periodically run /etc/cron.*, but I didn't try them yet.

I'd prefer we convert out crontab scripts to systemd timers.
I guess I'm okay with this as a temporary fix though if you want to merge as-is.

authors: KellerFuchs daurnimator

repo: hashbang/shell-etc


text:
Delete unused and obsolete fullstack-network-manager packages

We can delete the old and unused packages: https://github.com/hashgraph/full-stack-testing/pkgs/npm/fullstack-network-manager

done

authors: jeromy-cannon leninmehedy

repo: hashgraph/full-stack-testing


text:
bug: Helidon HTTP/2 support for rst_stream does not notify the gRPC layer that a Server Streaming connection ended

Description
Helidon never signals to the gRPC layer when it receives a rst_stream header from a client on a Server Streaming connection.
Steps to reproduce
Steps to reproduce

Start a bidirectional publishBlockStream connection either with producer.sh 1 100 or with the simulator
Start a server streaming subscribeBlockStream connection with Postman
Start the dashboard and observe that there's 1 producer and 2 consumers (1st consumer is the stream persistence handler).
Now, hit the cancel button in Postman. This emits a rst_stream header to Helidon.
Repeat steps 2 and 4 several times
Note in the dashboard that the number of consumers continues to increment and there are no exceptions thrown in the logs. The mediator ring buffer continues to stream block items to these zombie consumer instances and they continue to pass the block items down through to the PBJ streamWriter. I watched for about 5 mins. Perhaps the tcp socket eventually times out? However, I did not observe it timing out. This is a concerning leak of resources.

This helidon code gets triggered when a rst_stream header is sent:
https://github.com/helidon-io/helidon/blob/51b942a90aa9f2416ce6b32687748ee2b7701e75/webserver/http2/src/main/java/io/helidon/webserver/http2/Http2ServerStream.java#L188-L198
There's a "TODO" that may indicate they know there's more work to be done here.
Additional context

I first found the defect when testing the Helidon PBJ plugin integration
However, I confirmed the same issue exists when using grpc.io as the gRPC layer instead
Unfortunately, since grpc.io does not have a workaround, there's not likely anything we can do to fix the issue in Block Node. We will require a fix in Helidon.
I left an estimate of "3" based on the estimated complexity to integrate with a new version of Helidon that has a fix.

Hedera network
No response
Version
Helidon v4.1.1
Operating system
None

I filed a ticket with Helidon about the issue here: https://github.com/helidon-io/helidon/issues/9496

@rbair23 I discovered this issue today. It affects both grpc.io and the PBJ Helidon plugin. I imagine we'll need a fix before we go to production since a downstream client could easily tie up hundreds of consumer instances and DoS a BN. The Helidon ticket is here: https://github.com/helidon-io/helidon/issues/9496

repo: hashgraph/hedera-block-node


text:
Verify consistent passes of acceptance tests against previewnet/testnet

Problem
Some inconsistencies have been viewed when running the aceptance test, mainly aagainst public envs.
This is likely since the TPS in production envs differs from local envs.
In local node we're in control of all submitted transactions but in production w need to be able to handle change state w regards to block and transaction details.
This may prevent the adoption of fully automated tests for each release.
The following tests have been seen to sometimes return different than expected values

eth_gasPrice
eth_getBlockByNumber
eth_getBlockByHash

The following tests sometimes return errors

eth_getTransactionReceipt
eth_sendRawTransaction

Below is an example unsuccessful run
Note: I filtered out  a subset of tests by adding @release text and running ./node_modules/ts-mocha/bin/ts-mocha ./packages/server/tests/acceptance/index.spec.ts  -g @release --exit
Full logs also attached
  38 passing (2m)
  8 failing

  1) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               @release should execute "eth_getBlockByHash", hydrated transactions = true:

      AssertionError: expected '0x14cf2a45c00' to equal '0xa7a3582000'
      + expected - actual

      -0x14cf2a45c00
      +0xa7a3582000

      at Function.block (packages/server/tests/helpers/assertions.ts:62:51)
      at Context.<anonymous> (packages/server/tests/acceptance/rpc.spec.ts:269:28)
      at Generator.next (<anonymous>)
      at fulfilled (packages/server/tests/acceptance/rpc.spec.ts:24:58)

  2) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               @release should execute "eth_getBlockByNumber", hydrated transactions = true:

      AssertionError: expected '0x14cf2a45c00' to equal '0xa7a3582000'
      + expected - actual

      -0x14cf2a45c00
      +0xa7a3582000

      at Function.block (packages/server/tests/helpers/assertions.ts:62:51)
      at Context.<anonymous> (packages/server/tests/acceptance/rpc.spec.ts:294:28)
      at Generator.next (<anonymous>)
      at fulfilled (packages/server/tests/acceptance/rpc.spec.ts:24:58)

  3) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               @release should call eth_gasPrice:

      AssertionError: expected '0x14cf2a45c00' to equal '0xa7a3582000'
      + expected - actual

      -0x14cf2a45c00
      +0xa7a3582000

      at Context.<anonymous> (packages/server/tests/acceptance/rpc.spec.ts:793:32)
      at Generator.next (<anonymous>)
      at fulfilled (packages/server/tests/acceptance/rpc.spec.ts:24:58)

  4) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               Transaction related RPC Calls
                 @release should execute "eth_getTransactionReceipt" for hash of legacy transaction:
     Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":58,\"error\":{\"code\":-32009,\"name\":\"Gas price too low\",\"message\":\"Gas price below configured minimum gas price\"}}", error={"code":-32009}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0xf86c8085a7a3582000832dc6c0940000000000000000000000000000000002d768878502540be40080820273a03dc20c0b12ae0e3e387127ea9878a4738d155700bf997bddfff8f809235021a8a073a7fe9524fc1b4de71b5eedfb297024a6d2d23eb8302acc61cbc73c09a05f0f\"],\"id\":58,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://testnet.hashio.io/api", code=SERVER_ERROR, version=web/5.6.1)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at /.../hedera-json-rpc-relay/node_modules/@ethersproject/providers/node_modules/@ethersproject/web/src.ts/index.ts:329:28
      at step (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:33:23)
      at Object.next (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:14:53)
      at fulfilled (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  5) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               Transaction related RPC Calls
                 @release should execute "eth_getTransactionReceipt" for hash of London transaction:
     Request failed with status code 404

  6) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               Transaction related RPC Calls
                 @release should execute "eth_sendRawTransaction" for legacy EIP 155 transactions:
     Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":64,\"error\":{\"code\":-32009,\"name\":\"Gas price too low\",\"message\":\"Gas price below configured minimum gas price\"}}", error={"code":-32009}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0xf86c0185a7a3582000832dc6c0940000000000000000000000000000000002d768878502540be40080820274a00ffe93784dff2214bac03311e3efb4d0ae5045810b11ac026a1ca69f15326464a01f89ba5600f5cc0b85806fc615a9314bbcdb3cc0f081c4b9a200e83d884bd65a\"],\"id\":64,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://testnet.hashio.io/api", code=SERVER_ERROR, version=web/5.6.1)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at /...hedera-json-rpc-relay/node_modules/@ethersproject/providers/node_modules/@ethersproject/web/src.ts/index.ts:329:28
      at step (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:33:23)
      at Object.next (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:14:53)
      at fulfilled (node_modules/@ethersproject/providers/node_modules/@ethersproject/web/lib/index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  7) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Block related RPC calls
               Transaction related RPC Calls
                 @release should execute "eth_getTransactionByHash" for existing transaction:
     Request failed with status code 404

  8) RPC Server Acceptance Tests
       Acceptance tests
         RPC Server Acceptance Tests
           RPC Server Acceptance Tests
             Gas Price related RPC endpoints
               @release should call eth_feeHistory with updated fees:
     AssertionError: expected undefined to exist
      at Function.feeHistory (packages/server/tests/helpers/assertions.ts:182:37)
      at Context.<anonymous> (packages/server/tests/acceptance/rpc.spec.ts:1076:28)
      at Generator.next (<anonymous>)
      at fulfilled (packages/server/tests/acceptance/rpc.spec.ts:24:58)

releaseTestnetTest.log
Solution
Verify acceptance tests consistently pass when pointed to previewnet and testnet.
Where failures are viewed let's capture tickets to address in next sprint.
Alternatives
_No response
_

I am seeing this error while executing against previewnet:
[2022-07-19 07:18:05.842 +0000] TRACE (relay-eth/13298 on ivo-HP-ProBook): (BUG) RequestType.fromCode() does not handle code: 86
    err: {
      "type": "Error",
      "message": "(BUG) RequestType.fromCode() does not handle code: 86",
      "stack":
          Error: (BUG) RequestType.fromCode() does not handle code: 86
              at Function._fromCode (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/RequestType.cjs:496:11)
              at Function._fromProtobuf (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/TransactionFeeSchedule.cjs:86:102)
              at /home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/FeeSchedule.cjs:78:159
              at Array.map (<anonymous>)
              at Function._fromProtobuf (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/FeeSchedule.cjs:78:111)
              at Function._fromProtobuf (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/FeeSchedules.cjs:76:90)
              at Function.fromBytes (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/node_modules/@hashgraph/sdk/lib/FeeSchedules.cjs:65:25)
              at SDKClient.<anonymous> (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/dist/lib/clients/sdkClient.js:203:39)
              at Generator.next (<anonymous>)
              at fulfilled (/home/ivo/projects/hedera-json-rpc-relay/packages/relay/dist/lib/clients/sdkClient.js:24:58)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
    }

authors: Ivo-Yankov Nana-EC

repo: hashgraph/hedera-json-rpc-relay


text:
Add a max block number range check

Problem
Currently it's possible to query the relay for any block number.
However, in some cases this results in a timeout from the mirror node since we continue to poll and never find it e.g. from testnet.
[2023-02-22 16:02:39.344 +0000] ERROR (relay-eth/51 on testnet-json-rpc-relay-ff5f7b4f6-bd6kk): [Request ID: 3e792ef6-b9a3-4c06-8077-b55eadcf18a7] Failed to retrieve block for blockNum 0x6e276d0
    err: {
      "type": "MirrorNodeClientError",
      "message": "timeout of 10000ms exceeded",
      "stack":
          Error: timeout of 10000ms exceeded
              at MirrorNodeClient.handleError (/home/node/app/packages/relay/dist/lib/clients/mirrorNodeClient.js:166:15)
              at MirrorNodeClient.<anonymous> (/home/node/app/packages/relay/dist/lib/clients/mirrorNodeClient.js:140:22)
              at Generator.throw (<anonymous>)
              at rejected (/home/node/app/packages/relay/dist/lib/clients/mirrorNodeClient.js:25:65)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      "statusCode": 504
    }
[2023-02-22 16:02:39.344 +0000] ERROR (Internal error/51 on testnet-json-rpc-relay-ff5f7b4f6-bd6kk): [Request ID: 3e792ef6-b9a3-4c06-8077-b55eadcf18a7] [POST] eth_getBlockByNumber: -32603 15343 ms
    code: -32603
    message: "Unknown error invoking RPC"

Solution
Add a max block number range check .
When a request for a block is made and it's a number.
Call the mirror node to get the current block number. If the block number asked for is more than a few blocks greater then we should fail fast.
We should have a reasonable buffer to make sure we don't erroneously fail, noting that current block time is 2 secs
Alternatives
No response

We should consider a cache that would minimize how often we need to even call Mirror Node to check


text:
2275 implement get transaction count.

Implements get transaction count in websockets.
Related issue(s):
Fixes #2275

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Replaced by #2323


text:
Revisit compact transfer diagram

Description
Transaction tables display a reduced version of transfer diagram in Content column.
Current strategy for reducing the diagram does not always work very well and should be revisited.
Steps to reproduce
For example, in the table below, some rows have no transfer diagram at all:
https://hashscan.io/mainnet/account/0.0.55954?p1=1&k1=1679579112.950568003&p2=1

Additional context
No response
Hedera network
mainnet
Version
Wed, 22 Mar 2023 18:48:03 GMT
Operating system
None

Suggestion from M. Williamson:
I would think we could change that workflow so that anything that goes into one of those accounts is hidden but anything coming out would be filtered the same.

repo: hashgraph/hedera-mirror-node-explorer


text:
Added a Haskell, potentially handles more clients than C++

I ran the client and server on me own machine, think it would unbound it a bit if they were separated like in your setup.
I got, uh, pretty good results.

Love to see what y'all get and if you could maybe-possibly add it to the existing blog post pretty please? I'll explain the code if desired.

For contrast, Rust on the same machine:

Golang:

C++:

The Haskell server peaked at 1.28 gb of memory used based on the eyeball-htop method suggested.

The response time spread seems minimal, have you tuned GC in any way to achieve this result? Weird not seeing pauses affect your 95th percentile.

@farnoy I did nuh-zink. What you see (in the diff) is what you get. Just the ghc-options specified in the cabal file.

hi @bitemyapp, you might want to split the fix for clojure and the fix for cpp into separate PR's so hashrocket can more easily judge this one on its merit

Doesn't Control.Concurrent.Broadcast drop messages (i.e. it's not really a channel)? I think unagi-chan would be better here.

It does indeed drop messages.
After adding received message counting to websocket-bench(https://github.com/zyla/websocket-shootout/commit/b4c7104e4bcf0377a55e899000159fdd3efcb6c6) and a minor fix in the haskell server (https://github.com/zyla/websocket-shootout/commit/0c329a6920aa2706e9141586d450cf13c28907e5), the results are:
clients:  1000  expected: 100000  rcvd:  1960  95per-rtt:  53ms  min-rtt:   1ms  median-rtt:  50ms  max-rtt:  79ms
clients:  2000  expected: 200000  rcvd:  3939  95per-rtt:  98ms  min-rtt:   2ms  median-rtt:  96ms  max-rtt:  99ms
clients:  3000  expected: 300000  rcvd:  5993  95per-rtt: 181ms  min-rtt:  39ms  median-rtt: 160ms  max-rtt: 207ms
clients:  4000  expected: 400000  rcvd:  7751  95per-rtt: 244ms  min-rtt:   2ms  median-rtt: 241ms  max-rtt: 245ms
clients:  5000  expected: 500000  rcvd:  9957  95per-rtt: 246ms  min-rtt:   2ms  median-rtt: 237ms  max-rtt: 252ms

Here expected is the number of broadcast messages we expect to receive, and rcvd is the how many actually arrived. These of course are supposed to be the same, and for other servers they are.

@tinco it's not included, just a rebase with one too many steps back.

Kicking around the unagi-chan variant @sgraf812 PR'd, definitely don't merge this for now, original version I wrote was not correct!

For some context, this: https://blog.wearewizards.io/a-lot-of-websockets-in-haskell is roughly what I expected in terms of results modulo hardware differences, which is why I wasn't that surprised when I saw the initial results.

@bitemyapp It's a shame you removed original PR comment - future readers will be lost.

@tumdum well, people were getting nasty about it on Reddit, so I figured I'd amend it to shift focus to the retraction and what we were doing to fix it. I wasn't going to leave a (visually prominent) screenshot of erroneous results up.

Not sure if this is still in progress or how it relates to the other Haskell PR, but the websocket-bench tool now checks for too many or too few broadcasts.

There hasn't been any activity on this PR for a while, and we have a Haskell server merged now. So I'm going to close this PR. Feel free to reopen if there are any further developments.

@jackc 👍

authors: bitemyapp farnoy jackc jmspiewak tinco tumdum zyla

repo: hashrocket/websocket-shootout


text:
Readme lsp flag

Adds --lsp flag to integration instructions for vim+coc and vim+languageclient
Part of #1558

I updated https://github.com/neoclide/coc.nvim/wiki/Language-servers#haskell with --lsp. Is this flag mandatory?

Yes, it is, to allow dumping human readable debug info it run without it.

Okay, good to know.
Maybe too late, but I'd prefer the end-user having no flags meaning less ways to mis-configure the setup. On the other hand, there doesn't seem to be a consistent way for language server configuration anyway (different language server implementations )

Well, when the end-user is debugging running without flags is a good option. It also mirrors the behaviour in ghcide, so gives some consistency.
It also was the standard for a very long time, only changed recently.

authors: Anrock alanz andys8

repo: haskell/haskell-ide-engine


text:
Cant run Homebrdige, error:  APKINDEX

Problem/Motivation
I updated Homebridge to the new version and after that i got this and i can't run. Thanks in Advanced.
I got this error:
> TRACE: hass.jq.has_value: /data/options.json .packages
> TRACE: hass.jq: /data/options.json .packages | if (. == {} or . == []) then empty else . end // empty
> TRACE: hass.has_value: [
>   "ffmpeg",
>   "avahi-dev"
> ]
> fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/armhf/APKINDEX.tar.gz
> fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/armhf/APKINDEX.tar.gz
> ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.7/main: temporary error (try again later)
> WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory
> ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.7/community: temporary error (try again later)
> WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory
> 2 errors; 51 distinct packages available
> TRACE: hass.die: Failed updating Alpine packages repository indexes
> TRACE: hass.has_value: Failed updating Alpine packages repository indexes
> FATAL: Failed updating Alpine packages repository indexes
> [cont-init.d] 80-user-packages.sh: exited 1.
> [cont-finish.d] executing container finish scripts...
> [cont-finish.d] 99-message.sh: executing...
> -----------------------------------------------------------
>                 Oops! Something went wrong.
>
>  We are so sorry, but something went terribly wrong when
>  starting or running this add-on.
>
>  Be sure to check the log above, line by line, for hints.
> -----------------------------------------------------------
> [cont-finish.d] 99-message.sh: exited 0.
> [cont-finish.d] done.
> [s6-finish] syncing disks.
> [s6-finish] sending all processes the TERM signal.

Expected behavior
I expected that homebridge Run normal
Actual behavior
Didn't run so i cant use it
Steps to reproduce
I have this configuration:
{
  "log_level": "trace",
  "avahi_interfaces": "",
  "avahi_hostname": "hassio",
  "avahi_domainname": "local",
  "enable_ipv6": true,
  "packages": [
    "ffmpeg"
  ],
  "init_commands": [],
  "plugins": [
    "homebridge-camera-ffmpeg",
    "homebridge-smartthings"
  ]
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This seems to be an issue on your network or with alpinelinux.org.
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.7/main: temporary error (try again later)
This is out of scope for this addon, since it concerns an external service/party.

repo: hassio-addons/addon-homebridge


text:
Fix typos

Thanks a lot for your work!
Just a stupid patch to fix typos

Thanks!

authors: Gelma misi

repo: havfo/multiparty-meeting


text:
HWKAPM-581 Fix correlation test - initially separate thread not being…

… run in time, but when blocked waiting, it was failing due to incorrect value being passed in - should have been false to indicate that a separate fragment was not being created

@jpkrohling Can you review when you have time?

Looks good to me.

@jpkrohling Thanks!

authors: jpkrohling objectiser

repo: hawkular/hawkular-apm


text:
Version 0.3.1 reports as like it is 0.3.0

➜ helm plugin install https://github.com/hayorov/helm-gcs --version 0.3.1
Installing helm-gcs 0.3.0 ...
x LICENSE
x README.md
x helm-gcs
helm-gcs 0.3.0 is correctly installed.

Init a new repository:
  helm gcs init gs://bucket/path

Add your repository to Helm:
  helm repo add repo-name gs://bucket/path

Push a chart to your repository:
  helm gcs push chart.tar.gz repo-name

Update Helm cache:
  helm repo update

Get your chart:
  helm fetch repo-name/chart

Installed plugin: gcs

I see no version update in  two commits related to 0.3.1 release:
https://github.com/hayorov/helm-gcs/commit/98dcdca024c87fbfb6963ccea671080639be5c9b
https://github.com/hayorov/helm-gcs/commit/290becde973a736ac7ab4fcbdc2d6268e6cac667

https://github.com/hayorov/helm-gcs/issues/39

authors: hayorov szwed

repo: hayorov/helm-gcs


text:
Boost version compatibility

https://github.com/hazelcast/hazelcast-cpp-client/blob/2de5385101a19a2da0dd24c60341d898fd759288/CMakeLists.txt#L145
the find_package command has find_package(<PackageName> [version] ....) syntax. The referenced Latest bootstrap versions are often not packaged and need custom compilation/install, yet this is silently ignored by the build and later leads to more cryptic compilation issues.
Adding the [version] parameter can clarify this issue.

@onavratil-monetplus I did not understand what you mean in this issue. What exactly is the problem? Currently, without the version it will try find the boost available and will try to work with it. What do you mean by Latest bootstrap versions ?

@onavratil-monetplus We will put back the version. It was there before as 1.72 as the minimum but we need to first explore what is the smallest version we can support given the current code base and put the lowest possible version number, 1.72 is really high for a lot of systems default installations.

I just researched what would be the minimum version we can put considering our code base. I tried versions starting with 1.52 and here are my findings:

Can not be less than 1.65 since boost::atomic_shared_ptr was introduced by this version.
Endian library: endian_load, endian_store came with 1.71. We can do work around solutions (
workaround_load_store_endian.txt) like using boost::endian::endian_load<boost::uint16_t, 2, boost::endian::order::big>(*) but it does not look very good.

Hence, I think that it is best to keep 1.72 as the boost minimum required version in the library.

I just researched what would be the minimum version we can put considering our code base. I tried versions starting with 1.52 and here are my findings:

Can not be less than 1.65 since boost::atomic_shared_ptr was introduced by this version.
Endian library: endian_load, endian_store came with 1.71. We can do work around solutions (
workaround_load_store_endian.txt) like using boost::endian::endian_load<boost::uint16_t, 2, boost::endian::order::big>(*) but it does not look very good.

Hence, I think that it is best to keep 1.72 as the boost minimum required version in the library.

@onavratil-monetplus We merged the PR to fix the minimum required boost version and we also made cmake install available at the current master. Can you check and share your thoughts on how it looks?

@onavratil-monetplus We merged the PR to fix the minimum required boost version and we also made cmake install available at the current master. Can you check and share your thoughts on how it looks?

Closing this issue. If you have any further questions/concerns, please re-open it. Thanks.

Closing this issue. If you have any further questions/concerns, please re-open it. Thanks.

authors: ihsandemir onavratil-monetplus

repo: hazelcast/hazelcast-cpp-client


text:
[Feature Request] Setting to save all files before running test(s)

It would be convenient to have an option to save all unsaved files prior to execution.  Either under the existing onStart setting or a separate setting.

I agree... I was even baffled to discover that it's not the default behaviour! Therefore a setting for that seems a bare minimum ;)

I've just created a PR for that : #186

@hbenl could you add this PR #186 please?

authors: leoblum oakesville ptournet

repo: hbenl/vscode-test-explorer


text:
Manual channel selection screen with scanner

If it isn't too much effort, could someone add a manual HDZero channel selection screen with the band scanner display from the scan screen?
This would make it easier to see which channels are in use and find other HDZero signals.

Isn't this already the default behavior?
However, I would like the ability to see general RF usage across the band (spectrum analyzer view), show the HDZero channels at their approximate placements within the band,  show if HDZero signal is detected in those channels, and still allow selecting from HDZero channels that do not already show an HDZero signal was detected.

Isn't this already the default behavior?
However, I would like the ability to see general RF usage across the band (spectrum analyzer view), show the HDZero channels at their approximate placements within the band, show if HDZero signal is detected in those channels, and still allow selecting from HDZero channels that do not already show an HDZero signal was detected.

The current behavior is that it will scan and select the first HDZero signal it detects.

Oh, my mistake, I only have one HDZero VTX to test with. But the scan now page hint implies it scans for all signals and would allow you to select from all active HDZero channels (if more than one is detected).

This is a repeat of #1

authors: aviphysics ligenxxxx pitts-mo

repo: hd-zero/hdzero-goggle


text:
Port closed on erlport.cli, again

Running Erlport through Elixir, I was getting this error, and it was driving me nuts:
/usr/bin/python: No module named erlport.cli

** (ErlangError) erlang error: {:port_closed, {:code, 1}}

17:46:26.849 [error] GenServer #PID<0.128.0> terminating
** (stop) {:port_closed, {:code, 1}}
Last message: {#Port<0.5453>, {:exit_status, 1}}
State: {:state, :infinity, 0, #Port<0.5453>, [{1, {{#PID<0.126.0>, #Reference<0.0.5.24>}, :undefined}}], []}
    src/erlport.erl:234: :erlport.call/3

The way I resolved the issue was through:
pip uninstall erlport

Indeed, it seems that the erlport python module used internally is called "erlport", and so is the module used by external scripts, which caused this issue.
Perhaps consider renaming the internal python module?
NOTE: an issue about this seems to have been raised before here #6

nvm, just remove erlport from pip, and rely on erlport loading the python module at runtime works fine.

Getting this error too, apparently cli.py has been removed from the python3 module: https://github.com/hdima/erlport/tree/master/priv/python3/erlport

authors: Mazyod amarandon

repo: hdima/erlport


text:
Bump Yosys to 0.22, incl version string and patch.

Signed-off-by: Tim Callahan tcal@google.com

/gcbrun

authors: QuantamHD tcal-x


text:
🛑 stagin-env is down

In b5ec021, stagin-env (https://staging.lessonpal.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: stagin-env is back up in d0f8607 after 6 minutes.

repo: heIsThePirate/upptime-lessonpal


text:
backend: Update golang to 1.22.0

Update golang version, minimum version is 1.22

I'm not sure about putting the mod tidy in there. Because it should be tidy.


text:
Update README.md

The example in current README.md does not comply to the code of the Counter example, please update.

I don't believe it needs any updating. Could you elaborate?
The overview in the README is meant to be a quick introduction to the architecture and ideas the library is built on.
The [documentation of the Application trait] goes into a lot more detail and provides a full example.

@hecrj The sample code in the README is brief, but it's not complete.
In fact, the counter example uses Sandbox trait to give a quick and simple demo, and which is also recommended in the docs.
But in the README, you didn't impl Application or Sandbox, which may lead to some level of confusion.
Also, on line 114 of the README, the view method returns Column instead of Element. It may imply that this piece of code belongs to a part of a bigger application, but not an Hello World that can be easily run through.
Maybe using the hello world code sample in the Sandbox documentation would be better?

The sample code in the README is brief, but it's not complete.

It's not meant to be complete. It's an overview; an introduction that focuses on the different concepts of The Elm Architecture.

you didn't impl Application or Sandbox, which may lead to some level of confusion.

These traits are not the only way to use the library.

Also, on line 114 of the README, the view method returns Column instead of Element. It may imply that this piece of code belongs to a part of a bigger application, but not an Hello World that can be easily run through.

It does say overview instead of full example, though...

Maybe using the hello world code sample in the Sandbox documentation would be better?

The counter example works well to introduce the concepts because it is interactive and very simple.

Alright then, I understand your concept. Thanks for your time!

authors: Cyperwu hecrj

repo: hecrj/iced


text:
[Sonic Forces] Steam Input doesn't work

Since installing HedgeModManager, Sonic Forces has been refusing to accept inputs from my Switch Pro Controller, even after disabling all mods, and even when launching the game directly from the .exe file.

This issue also happens when you try to play Sonic Generations via SONIC X SHADOW GENERATIONS

authors: ActualMandM JdRDMS


text:
Error invoking outline if no lsp is attached to buffer

I am running neovim nightly with
NVIM v0.10.0-dev-1496+g4c8fdc018-Homebrew
Build type: Release
LuaJIT 2.1.1700008891

and I am on commit 2dd9ea2f57fb1d1426d4737418322dae48a59154 (the latest, as I can see). Whenever I invoke Outline on a buffer that has no lsp attached I see the following exception being raised:
Error detected while processing CursorMoved Autocommands for "<buffer=2>":
Error executing lua callback: ...cal/share/nvim/lazy/outline.nvim/lua/outline/sidebar.lua:375: attempt to index local 'node' (a nil value)
stack traceback:
	...cal/share/nvim/lazy/outline.nvim/lua/outline/sidebar.lua:375: in function '__goto_location'
	...cal/share/nvim/lazy/outline.nvim/lua/outline/sidebar.lua:198: in function <...cal/share/nvim/lazy/outline.nvim/lua/outline/sidebar.lua:196>

I am not sure whether this has been introduced of late, I do not remember seeing such exception before?

I wasn't able to reproduce this issue. However, I recently pushed a fix to a similar issue which might fix this one.
If you're still encountering this issue after the latest commit, please send your outline.nvim config and I will test with neovim nightly. Thanks.

After the latest commit I no longer see the exception, thank you for looking into it!

authors: gennaro-tedesco hedyhli


text:
Documentation for version 1.4.2

Hi,
I'm still using version 1.4.2, but all documentation references seem to be pointing to 1.5.x which is significantly different. What's the easiest way to get access to older documentation?

Hi @ilkkau, the documentation can be built from the source code with Sphinx simply by:
python setup.py build build_sphinx

Otherwise, apart from tutorials, the API docs are all in the code itself, so it is easy to check any class or function with
help(gdspy)
help(gdspy.Polygon)
help(my_cell.add)

and so on within a python terminal.

authors: heitzmann ilkkau

repo: heitzmann/gdspy


text:
picframe on Bookworm (current RPI OS) - screen/display on/off control -> possible solution

Not a picframe issue as such, rather due to major changes in Bookworm and depreciation of vcgencmd display_power. However, control of display on/off is a major issue for many using picframe.
The wlr-randr --output HDMI-A-1 --on (or off) command are used to control display on/off. However, I found when wlr-randr --output HDMI-A-1 --on is used when picframe is already running, I just got a blank screen - no pictures.
I think I have worked out a solution.
My solution at present is to shutdown picframe when turning the display off, and start picframe again when turning the display on.
My photo frame is on for set hours - this solution may not be suitable for those using motion detection etc.
I did modify ./start_picframe.sh (from https://github.com/helgeerbe/picframe/wiki/Setup-guide-Bookworm-and-Wayland) by adding lines export WAYLAND_DISPLAY=wayland-1 export XDG_RUNTIME_DIR=/run/user/1000. This seemed to get auto-start on boot working correctly for me.
./start_picframe.sh
#!/bin/bash
wlr-randr --output HDMI-A-1 --off
export SDL_VIDEODRIVER=wayland # sdl has to use wayland
source /home/openhabian/venv_picframe/bin/activate # activate phyton virtual env
export WAYLAND_DISPLAY=wayland-1
export XDG_RUNTIME_DIR=/run/user/1000
picframe &  #start picframe
wlr-randr --output HDMI-A-1 --on

Then chmod +x ./start_picframe.sh
nano ./stop_picframe.sh
#!/bin/bash
export WAYLAND_DISPLAY=wayland-1
export XDG_RUNTIME_DIR=/run/user/1000
/usr/bin/wlr-randr --output HDMI-A-1 --off
pkill -x picframe #kill all instances of picframe, as we need to start picframe again when we turn the display on and would end up with multiple picframe processes running

Then chmod +x ./stop_picframe.sh
Then crontab -e
And something like:
# For more information see the manual pages of crontab(5) and cron(8)
#  +---------------- minute (0 - 59)
#  |  +------------- hour (0 - 23)
#  |  |  +---------- day of month (1 - 31)
#  |  |  |  +------- month (1 - 12)
#  |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
#  |  |  |  |  |
#  *  *  *  *  *  command to be executed
#
# m h  dom mon dow   command

#Turn on display at 6.30am Mon-Fri
30 6 * * 1-5  ./start_picframe.sh

#Turn off display at 9am M-F
0 9 * * 1-5 ./stop_picframe.sh

#Turn on display at 3pm M-F
0 15 * * 1-5 ./start_picframe.sh

#Turn on display at 8am Sun
0 8 * * 0 ./start_picframe.sh

#Turn on display at 8am Sat
0 8 * * 6 ./start_picframe.sh

#Turn off display at 9pm every day
0 21 * * * ./stop_picframe.sh

Smarter minds than I can probably work out why using wlr-randr --output HDMI-A-1 --on after picframe is already running, and wlr-randr --output HDMI-A-1 --off has been used, results in a blank screen.

I had half concluded that stopping picframe then restarting it was the only way round the Wayland problem. One issue is that the image sequence would be lost each time it happened, and I thought of saving a sequence number so it could continue. The issue as it stands is that we use a sqlite randomiser that has no option to seed in order to give a reproducible random sequence so we would need to switch to a python randomised list system. Quite doable, I'll put it on the list ...

5 days in -> no issues with display off/on using my above solution.
No idea if it messes with the sequence -> I don't mind what sequence (so long as some degree of change / randomness)

Here is the revised long-form article based on Helge's instructions: https://www.thedigitalpictureframe.com/how-to-build-the-best-raspberry-pi-digital-picture-frame-with-bookworm-and-pi3d-picframe-2024-edition/

Isn't there a problem with 100% CPU usage in the new solution?

I guess this issue can be closed.

authors: Notrial paddywwoof pippin88 sapnho

repo: helgeerbe/picframe


text:
Weblogic connector should allow destinations lookup over JNDI

Weblogic connector uses JMS createDestination methods, those are using custom WLS CDI syntax, we should provide JNDI lookup alternatives.

IMO, JNDI should become the standard approach, and the 'createDestination' approach should be deprecated and discouraged - not just for WebLogic but for all JMS vendors:
(1) The JMS specification itself encourages the use of JNDI and discourages the use of the createDestination methods. The following is a quote from the related JMS javadoc:

'The use of provider-specific queue names in an application may render the application non-portable. Portable applications are recommended to not use this method but instead look up an administratively-defined Queue object using JNDI.'

(2) JNDI is the most portable approach. As an example of its portability, JNDI is used by WebLogic's built-in JMS integration tooling to successfully integrate a very wide variety of JMS vendors.
(3) When JMS is in the picture for WebLogic customers, JNDI is the de facto standard approach for accessing both WebLogic JMS and that of other JMS vendors. Almost all WebLogic customers for both connection factory and destination lookups, and the documentation of the rarely used alternative 'create destination' approach is relegated to an appendix.

Side notes:

In my opinion, Helidon would supply a generic adapter/factory for plugging in any arbitrary JMS using JNDI lookups. To be fully generic, it would bootstrap not only destinations, but also JMS connection factories, and would therefore avoid the need to have any code specific to any particular vendor.

Such an adapter should ideally also pool, wrap, and reuse JNDI lookup results, connections, sessions, producers, and consumers - only removing them after an error or if too many end up accumulating in a pool... (This can yield a multi-X speedup - similar in concept to the speedup yielded by using datasource pools...)

authors: danielkec tbarnes-us

repo: helidon-io/helidon