text:
Turn off spaces in Javascript array

Right now an array like [1, 2, 3]  is refactored into [ 1, 2, 3 ], is there a way to turn this off so that it remains [1, 2, 3] ?

'space_in_paren = false` will do this.

authors: bitwiseman zhiwei-nu

repo: beautify-web/js-beautify


text:
how break line after tag end

i have xml
	<default>
			<datasource>
				<structure ref=""></structure><select></select></datasource>
			<route ref=""></route>
		</default>

what i have after beautify
<default>
    <datasource>
        <structure ref=""></structure><select></select></datasource>
    <route ref=""></route>
</default>

what i need
<default>
	<datasource>
		<structure ref=""></structure>
		<select></select>
	</datasource>
	<route ref=""></route>
</default>

js
beautify(editor.getValue(), {
            e4x: true,
            wrap_line_length: 160,
            break_chained_methods: true,
            unescape_strings: true,
            indent_with_tabs: true
        })

but works, if add
unformatted: []

There isn't an xml beautifier per se.  At this time, what you describe is the best way to achieve the behavior you're looking for.

@bitwiseman But in this example i have tags equals to html

up

@arshtepe -
https://github.com/beautify-web/js-beautify/blob/master/js/lib/beautify-html.js#L123
This is the list of unformatted elements.  Are you using the latest jsbeautifier version?
What kind of file are you running this against?

source: gharchive/issue

authors: arshtepe bitwiseman

license: MIT

license_type: permissive

license_source: github-api


text:
#114 - Scheduled Tasking frontend support

Closes #114
Introduced Changes

Added scheduled task list, create, and update pages
Dynamically load function parameters with htmx
Dynamically validate crontab fields with htmx
Added separate htmx urls
Display message to user if they have no scheduled tasks they can make in their current environment
Display form errors when creating or updating a ScheduledTask

Testing

Launch Functionary and view the Scheduling UI
Create tasks and verify they run according to the crontab schedule
Update tasks to verify their next run reflects those updates
Try and submit invalid data to the forms and verify you receive an error

Notes

There are some helper functions in core.utils.scheduling that I think can be migrated over to the ScheduledTask model
With my current implementation, I do not persist parameter arguments when a form gets rejected. The parameter values will reset to their defaults according to their widget type

Some additional Scheduled Task view features that could be added:

Hide or un-hide the Archived scheduled tasks
Sorting by scheduled task statuses (Active -> Error -> Paused -> Archived)
Ability to immediately run a Scheduled Task

source: gharchive/pull-request

repo: beer-garden/functionary


text:
Update with empty json

Fixes #493.
While running the new tests noticed that the table items, which is being used by several tests of the update requests, changes between those tests. Made some corrections but could not discover why id:16 is being added to it. For the time being I just ignored that.

This is really nice. Sorry the tests can be fragile and interact with one another. You might want to create a new table in the fixture just for this test, that way the server response won't have stray data from other tests.

Could you do a quick rebase to resolve the simple conflict in the changelog? (I opened #859 to prevent these kind of conflicts in the future)

Done!

authors: begriffs koulakis

repo: begriffs/postgrest

license: mit

license_source: bigquery


text:
Top bar layout broken

On mobile device, CSR logo is centered and Run button is absent.

This is a duplicate of #6 .

repo: bekroogle/cspotrun


text:
[1.6.2] throws exception in Rider: wrong thread isProjectModelReady

Environments

IDE Version: JetBrains Rider 2023.3.3  Build #RD-233.14015.60
Extension Version: 1.6.2 (just updated, yea)
CSharpier Version:  0.27.3
Operating System: linux, manjaro
.csharpierrc Settings:

{
	"printWidth": 140,
	"useTabs": true,
	"tabWidth": 4,
	"preprocessorSymbolSets": [
		"",
		"DEBUG",
		"DEBUG,CODE_STYLE"
	]
}

.editorconfig Settings:

root = true

[*]
end_of_line = lf
insert_final_newline = true

[backend/lib/Repository/Migrations/*]
generated_code = true

Stacktrace
Must be executed on UI thread or background threads with special permissions

java.lang.IllegalStateException: |E| Wrong thread RdOptionalProperty: `RiderBackend 0.SolutionModel.solutions.[1].riderSolutionLifecycle.isProjectModelReady`
	at com.jetbrains.rdclient.protocol.RdDispatcher.assertThread(RdDispatcher.kt:69)
	at com.jetbrains.rd.platform.protocol.SwitchingScheduler.assertThread(SwitchingScheduler.kt:22)
	at com.jetbrains.rd.framework.base.RdReactiveBase.assertThreading(RdReactiveBase.kt:28)
	at com.jetbrains.rd.framework.impl.RdPropertyBase.advise(RdProperty.kt:128)
	at com.jetbrains.rd.framework.impl.RdOptionalProperty.advise(RdProperty.kt:209)
	at com.jetbrains.rd.util.reactive.SourceExKt$adviseUntil$1.invoke(SourceEx.kt:34)
	at com.jetbrains.rd.util.reactive.SourceExKt$adviseUntil$1.invoke(SourceEx.kt:33)
	at com.jetbrains.rd.util.lifetime.Lifetime$createNested$1$1.invoke(RLifetime.kt:147)
	at com.jetbrains.rd.util.lifetime.Lifetime$createNested$1$1.invoke(RLifetime.kt:147)
	at com.jetbrains.rd.util.lifetime.LifetimeDefinition.executeIfAlive(RLifetime.kt:294)
	at com.jetbrains.rd.util.lifetime.Lifetime.createNested(RLifetime.kt:147)
	at com.jetbrains.rd.util.reactive.SourceExKt.adviseUntil(SourceEx.kt:33)
	at com.intellij.csharpier.CSharpierStartup.runActivity(CSharpierStartup.kt:19)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runOldActivity(StartupManagerImpl.kt:328)
	at com.intellij.ide.startup.impl.StartupManagerImpl.access$runOldActivity(StartupManagerImpl.kt:69)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$5$1.invoke(StartupManagerImpl.kt:271)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$5$1.invoke(StartupManagerImpl.kt:270)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:321)
	at com.intellij.openapi.progress.CoroutinesKt.access$blockingContextInner(coroutines.kt:1)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:198)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:197)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:270)
	at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:69)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:192)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:191)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Steps to reproduce
???

duplicate of #1206

authors: MonstraG belav

repo: belav/csharpier


text:
Operator logika

Deskripsi (Description)

Checklist:
Umum:

[x] Saya menambah algoritma terbaru.
[ ] Saya memperbaiki algoritma yang sudah ada.
[ ] Saya memperbaiki dokumentasi.
[x] Saya menambah dokumentasi.

Contributor Requirements (Syarat Kontributor) dan Lain-Lain:

[x] Saya sudah membaca (I have read) CONTRIBUTING dan sudah menyetujui semua syarat.
[x] Saya telah menambahkan docstring yang memberikan penjelasan maksud dari kode yang saya buat.
[x] Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

Unit Testing dan Linting:

[x] black
[x] flake8

Environment
Saya menggunakan (I'm using):

os = linux
python = python 3.8.10

Issue #32

jadi gimana dah ini ilangin codefactor issue
apa di merge aja?

Coba jid assign dulu ke variabel, baru print pake not.

authors: athallahmaajid norinorin

repo: bellshade/Python


text:
Experimental with scraper.

Just something quick I did with chatgpt (95% chatgpt to be fair).
Basically it scraps the archetypes data from https://www.willclark.uk/${setVersion}-archetypes.html and generates the html based on the templates that has been used. Then pulls images from https://api.scryfall.com/ based of the data from previous request from willclark.
node scraper.js {setVersion} to run it, it handles errors very poorly 🙃

I'll take a look at it this weekend, it's always nice if creating these goes faster! :)

authors: bellstrand sanderdan

repo: bellstrand/mtg-draft-pdf


text:
Как заставить bem make работать в режиме watch?

Есть ли какая-нибудь опция?
На всякий случай OS Windows 7

Можно запустить какой-нибудь gulp, который будет делать watch и дергать bem make.
А у вас bem-tools конфиги или enb? Если enb, то вот так может выглядеть gulpfile.

child_process не ставится
да и потом - проект лежит на сервере

child_process - это часть node.js, его не нужно ставить.
Что значит "проект лежит на сервере"? Как это мешает использовать gulp?

Можно юзать nodemon

Watch & LiveReload enb|bem
npm install browser-sync --save-dev

Пользователям Windows:
npm install browser-sync --save-dev --msvs_version=2013

package.json
  "scripts": {
    "start": "enb server & browser-sync start --files '*.blocks/**/*, *.bundles/**/*.bemjson.js' --proxy 0.0.0.0:8080",
  }

npm start

Из темы enb LiveReload или аналоги.

спасибо всем ответившим

authors: Trusow apsavin awinogradov ilyar

repo: bem/bem-forum-content-ru


text:
Gitlink can no longer be used with repos using sso:// URL scheme

Any attempt to open to use GitLink with a repo that is configured with a remote using the sso:// URL scheme will result in the following error being generated when attempting to open the link:
java.lang.IllegalArgumentException: Invalid host 'sso'
	at uk.co.ben_gibson.url.Host.<init>(Host.kt:7)
	at uk.co.ben_gibson.url.Host.<init>(Host.kt)
	at uk.co.ben_gibson.url.Host$Companion.invoke(Host.kt:11)
	at uk.co.ben_gibson.url.URL$Companion.fromString(URL.kt:26)
	at uk.co.ben_gibson.git.link.git.RemoteExtensionsKt.getHttpUrl(RemoteExtensions.kt:41)
	at uk.co.ben_gibson.git.link.git.RemoteExtensionsKt.getDomain(RemoteExtensions.kt:14)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector.getPlatformForRepository(PlatformDetector.kt:39)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector.access$getPlatformForRepository(PlatformDetector.kt:17)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector$detect$1.invoke(PlatformDetector.kt:26)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector$detect$1.invoke(PlatformDetector.kt:26)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector.getRepositoryForFile(PlatformDetector.kt:48)
	at uk.co.ben_gibson.git.link.platform.PlatformDetector.detect(PlatformDetector.kt:26)
	at uk.co.ben_gibson.git.link.listener.ApplicationStartupListener.detectPlatform(ApplicationStartupListener.kt:38)
	at uk.co.ben_gibson.git.link.listener.ApplicationStartupListener.runActivity(ApplicationStartupListener.kt:16)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivity(StartupManagerImpl.kt:312)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runActivityAndMeasureDuration(StartupManagerImpl.kt:293)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runActivityAndMeasureDuration$default(StartupManagerImpl.kt:288)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$1$1.run(StartupManagerImpl.kt:245)
	at com.intellij.openapi.project.DumbServiceImpl.runWithWaitForSmartModeDisabled(DumbServiceImpl.java:645)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$1.accept(StartupManagerImpl.kt:244)
	at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$1.accept(StartupManagerImpl.kt:62)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:299)
	at com.intellij.openapi.extensions.ExtensionPointName.processWithPluginDescriptor(ExtensionPointName.java:144)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:239)
	at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:62)
	at com.intellij.ide.startup.impl.StartupManagerImpl$projectOpened$3$1.run(StartupManagerImpl.kt:189)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:277)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:255)
	at com.intellij.ide.startup.impl.StartupManagerImpl$projectOpened$3.run(StartupManagerImpl.kt:189)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

This is reproducible by changing the origin remote on any repo to something like "sso://testserver/testproject".
This used to work in older releases, I haven't been using GitLink much for the last few months so not sure when it got broken.
Note that sso:// is used for the internal Git server at my place of work.

The exception should now be fixed in the latest version 4.2.5, but I'm not sure if the URL it generates will be correct?

Thanks Ben. I confirmed the exception is gone, still need to play around with it a bit tomorrow to see if I can make it work now. I get a bit confused when it's using the path for commit vs branch from the settings. I'll post an update sometime tomorrow.

Hi @ben-gibson I did some more extensive testing. Good news is this appears to be fixed and the URL's are correct (mostly, see details below).
I tested against 2 different internal servers that use the sso:// URL scheme for access from the command line both of which use the gitiles UI.
The simpler of the two, for user files, has no integrated Gerrit code review and works with traditional Github like branches. This repo seems to work fine for all the scenarios I tested (summarized below).
The other repo is configured with Gerrit. This works differently in that you don't really use branches like you would with Github. Instead, you use a special git push command (example below) with a single commit that is annotated with a change Id that links that commit to the code review.
That mechanism, I believe, throws a wrench in the works when you are doing anything other than trying to open file on the master branch where the local repo is also at the same SHA. Not sure if this could be made to work and I don't know that it did before the sso:// schema breakage either.
In my mind, it's a distinct problem from the exception issue. If this sounds like something you want to try to support, I can work with you on that, but at least having the ability to open commits when I'm on the master branch is a big improvement for me.
Testing procedure

Check that "Open in..." works for files on master branch with no local commits ahead of remote (sha url used)
Make a change, commit local, test open again (master branch url used)
Create a branch, test open again (master branch url used)
Push branch to remote*, test open again (sha url used)
Open the log and open a commit

Steps 2-4 all give a 404 due to the sha being used where it doesn't exist in the UI, but all 5 work for the repo without Gerrit.
*Step 4 uses this for Gerrit configured repo:
git push origin HEAD:refs/for/master

Hope this is helpful. Really appreciate the fix, at least now I can mostly use the plugin again even if it's not perfect. Let me know if you want me to log another issue.

authors: ben-gibson medington

repo: ben-gibson/GitLink


text:
@DecimalMin / @DecimalMax generating invalid value (missing fractional part)

Hi random-beans Team,
There is a problem with handling @DecimalMin / @DecimalMax as it is not generating fractional part of decimal. I think it is connected with not supporting @Digits, but you should know about it anyway :)
Example:
public class TestDecimal {
    @DecimalMax("1.00")
    @DecimalMin("0.01")
    private BigDecimal bigDecimal;

    public BigDecimal getBigDecimal() {
        return bigDecimal;
    }

    public void setBigDecimal(BigDecimal bigDecimal) {
        this.bigDecimal = bigDecimal;
    }
}

It is always returning "0", which is invalid value for this case.
Best regards,
Redid

Hi @Redid
Thank you for pointing out this issue!
Indeed, RB is failing on this case.
Let me plan the fix for next release.
Kr
Mahmoud

Hi,
This issue was deeper than I thought. Random BigDecimal generation was based on a delegate LongRandomizer which yields in data precision loss (a min of 0.01 was incorrectly converted to 0). This has been fixed and deployed to maven central in version 3.8.0-SNAPSHOT.
@Redid Can you give the fix a try with version 3.8.0-SNAPSHOT (Here is how to import it just in case). Many thanks upfront!
Kr,
Mahmoud
NB: As a side note, while working on this issue, I reported a similar problem with floats (see #318) which I fixed BTW.

authors: Redid benas

repo: benas/random-beans


text:
Chat Bots and muting people from the chat

Maybe at a later stage, we could add bots to the chat like Twitch and people could make their own bots? Muting people from the chat would also be good as some people might want some people to speak in the chat but dont want to ban them.

https://github.com/dogegarden/dogehouse-js ?

As BronzW posted, we do already have the clientside implementations available for people to create bots with.

authors: BronzW HMayotte anirudh242

repo: benawad/dogehouse


text:
Add Electron App info to Readme

Just a little bit of info and download links in Readme.md

If you feel like you need to link the mac and windows builds, don't do that instead add a line something like this:
The .dmg is for macOS and the .exe is for windows.
Again don't hard code the links

We could also add a button on the website to download for desktop

Just added some info about the virus problem from issue #1376

@isaboo can I merge this?

Yes you can, unless you think any more info should go in

@ofsho i think you should wait for the person who requested changes (@TheOtterlord) to confirm

Yes

Yes you can, unless you think any more info should go in

The README shouldn't have too much info, because it can confuse a lot of ppl

otterlords request was complete

Should we merge then?

yeah sry, I was afk, but everything looks good

authors: TheOtterlord amitojsingh366 isaboo ofsho


text:
The content of app.json is not a valid JSON object.

I get the following error message when I click the "deploy to heroku" button:

The content of app.json is not a valid JSON object.

I have never used heroic before, but just created an account.

It's probably the trailing comma right on the last line 4.

Yup, would have probably been smart of me to eyeball the json, or at least throw it at a validator. #9 should fix the issue.

authors: parkr zbeekman

repo: benbalter/markdown-to-pdf


text:
Wiki redirector

Found out about this repo from comments in a recent discussion on HackerNews. :chart_with_upwards_trend:
request
I would like to add the following lines to your wiki. I have successfully tested the regex on these pages, it may still need to be fine tuned for edge cases.
For ease of use,

Install the Redirector extension
Add a new entry:

Description: Farside
Example URL: https://www.youtube.com/watch?v=N5dauIYZTs4
Include pattern: ^(?:https?://)(?:www.|)((?:imdb|imgur|instagram|medium|odysee|quora|reddit|tiktok|translate|twitter|wikipedia|youtube).(?:com|org|google.(?:com|au|de|co)).*)
Redirect to: https://farside.link/$1
Pattern type: Regular Expression

Thanks, this works great!
I just added your instructions to the wiki page here -- feel free to edit it if you feel like anything needs clarification.

How would this look for search? Simply adding google into the mix won't work...

The regex in the wiki only works for https://translate.google.com/, as redirection for https://farside.link/google.com is not supported.
The GitHub -
einaregilsson/Redirector
extension provides an example of redirecting Google searches to another site.

authors: LangLangBart benbusby tio-trom

repo: benbusby/farside


text:
Implement deploy to another repository

Rebase of #37. Closes #36. Closes #61. Closes #87.
I don't know typescript, so feel free to take it and run with it.

@ktrz

Thank you @ktbarrett for updating the previous PR. I'll have a look over the weekend

Hello, I would very much like to use this feature, because I have a private branch that can't have Github pages. Is there a way I can help?

FYI: I'm picking it up to get it to the finish line

I finally got the CI working and verified that using a separate repository works. I need to clean up the code and add additional workflows to push changes to a separate repo I've created to show as an example

thank you @ktbarrett for helping with this feature!
released in v1.14.0

@ktrz And thank you for pushing this through. Seemed like there was more problem than anticipated. We appreciate all your effort.

authors: Trashtalk217 ktbarrett ktrz


text:
How to skip to next track

Hi,
I have spotify installer on my LG and can turn it on and play with your SDK. However when carlingue tue command fastForward it jumps of 10s forward but I don't find how to go to the next track. Is there a command for that?
Thanks!

Same here... Any news about this?

authors: matisaul rbickel

repo: bendavid/aiopylgtv


text:
Diners club

Hi
I'm trying to validate Diners Club number provided by Stripe https://stripe.com/docs/testing#cards (3056 9309 0259 04) but it's not working. I guess the right group pattern will be:
groupPattern: /(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,2})?/
thanks

Hi, take a look at some previous issues about Stripe's invalid test cards, I choose to do strict validation in the interest of validating real cards:
https://github.com/bendrucker/angular-credit-cards/issues/134
If you think there's a genuine card that won't validate feel free to report here:
https://github.com/bendrucker/creditcards-types

authors: bendrucker returnvoid

repo: bendrucker/angular-credit-cards


text:
Any chance of migrating to Angular 2 ?

Hey there,
Has anyone managed to migrate this to angular 2 ?

#141


text:
filelock is erasing file contents

I was trying out this library, but found that opening a file for reading while under a lock would completely erase the file's contents.
The following code reproduces the issue:
#!/usr/bin/python3

import filelock

with open("test.txt", "w") as f:
	f.write("This is some testing text")

lock = filelock.FileLock("test.txt")
with lock:
	with open("test.txt", "r") as f:
		a = f.read()
		print(a)

This issue occurs on 64bit Ubuntu 17.04, using Python 3.5.3
I have no idea if there is a particular way I am supposed to open files with filelock.  If there is, it wasn't covered in the readthedocs page, which has absolutely no information on reading or writing files.

An additional note: if you open the test.txt file after running this script, the file actually is empty, it's not just being misread as empty.

I also thought at first that the purpose of this library was to prevent simultaneous access to the specified file (test.txt in your example), but that may be mistaken.  If I understand correctly now, to lock test.txt you want to choose a different name for the lockfile, e.g.
lock = filelock.FileLock("test.txt.lock")
Now, as long as every process that wants to use test.txt must first acquire the lock on test.txt.lock, test.txt will be protected.  However, test.txt won't be protected from any programs that don't care about your lock.

authors: mokelly zauberparacelsus

repo: benediktschmitt/py-filelock

license: unlicense


text:
[Bug]:  Element 'bootstrap': This element is not expected. Expected is ( extension ).

What happened?
PHPUnit 9.6.11 by Sebastian Bergmann and contributors.
Warning - The configuration file did not pass validation!
The following problems have been detected:
Line 20:

Element 'bootstrap': This element is not expected. Expected is ( extension ).

Test results may not be as expected.
How to reproduce the bug
Just did as the readme says:
composer require benholmen/defrag --dev
added extensions to the phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
  <coverage includeUncoveredFiles="true">
    <include>
      <directory suffix=".php">src</directory>
    </include>
    <exclude>
      <directory suffix=".php">src/Model</directory>
    </exclude>
  </coverage>
  <testsuites>
    <testsuite name="Microsoft Dynamics SDK Test Suite">
      <directory>tests</directory>
    </testsuite>
  </testsuites>
  <extensions>
    <extension class="BenHolmen\Defrag\Extension"/>
  </extensions>
</phpunit>

and launched with vendor/bin/phpunit
Package Version
0.1.4
PHP Version
8.1.25
Which operating systems does with happen with?
Linux
Notes
I have also tried converting <bootstrap> tag into <extension> but then it complaints about: Interface "PHPUnit\Runner\Extension\Extension" not found

Looks like it doesn't work with PHPUnit versions < 10.
I had the same issue with 9.6.11, but after upgrading to PHPUnit 10.4, evrything works like expected.

Thanks for the report! This package uses the event system that is new in PHPUnit v10, so I don't support older versions.
#4 makes this more explicit when requiring the package.

authors: benholmen esurov mattsches

repo: benholmen/defrag


text:
Aggregate execution records from a root folder

The Aggregator
Aggregator Begins
Aggregator: Dark Genesis

This is done in e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

repo: benjamin-heasly/proceed

license: Unlicense


text:
A cache with identifier "azurestorage" does not exist. in install tool v8.7

After upgrade to 8.7
I'm getting "A cache with identifier "azurestorage" does not exist." error in install tool upgrade wizards.
The filelist module works without issues.

Hmm that would mean that there is no cache with that identifier, but how is that possible? Could you please investigate a little bit further to get more information? I have this extension running on multiple sites running 8.7 withtout any problems so far. :

Hi @benjaminhirsch,
This is indeed quite strange. I managed to run update wizards through typo3 console and the problem is now solved.

authors: benjaminhirsch tmotyl


text:
Module Six Not found even six was installed

When running a python program i get this error:
Traceback (most recent call last):
File "/usr/local/bin/wifiphisher", line 11, in
load_entry_point('wifiphisher===t1.4', 'console_scripts', 'wifiphisher')()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.8/site-packages/wifiphisher-t1.4-py3.8.egg/wifiphisher/pywifiphisher.py", line 37, in
from six.moves import range, input
ModuleNotFoundError: No module named 'six'
Even though i already installed the latest six version: six-1.14.0

Please make sure six is installed in /usr/local/lib/python3.8/site-packages/ and not another path like /usr/lib/python* or another python installation (e.g. python2). Also you could try re-installing six.

authors: AlienWolfX gungnix

repo: benjaminp/six


text:
param is too old, please regenerate!

First, I use the ncnn models in https://github.com/ouyanghuiyu/chineseocr_lite/tree/onnx/models_ncnn, but I have an error which is "param is too old, please regenerate!"

For solve this problem, I converter a new  ncnn model use ncnn project and the onnx models in "https://github.com/DayBreak-u/chineseocr_lite/tree/onnx/models".
But then,I got a new error when I compile the project with the new model. The error is "layer Shape not exists or registered".

Thanks

ncnn 20220420，更新后模型支持有变化，需要重新用新版ncnn自带的onnx2ncnn转换模型
一般转换之前，onnx先做simple简化网络，再进行转换
可以直接使用整合好的工程代码
https://github.com/benjaminwan/OcrLiteAndroidNcnn/releases/tag/1.7.0
Project_OcrLiteAndroidNcnn-1.7.0.7z
https://github.com/benjaminwan/OcrLiteAndroidNcnn/releases/download/1.7.0/Project_OcrLiteAndroidNcnn-1.7.0.7z

ncnn 20220420，更新后模型支持有变化，需要重新用新版ncnn自带的onnx2ncnn转换模型 一般转换之前，onnx先做simple简化网络，再进行转换
可以直接使用整合好的工程代码 https://github.com/benjaminwan/OcrLiteAndroidNcnn/releases/tag/1.7.0 Project_OcrLiteAndroidNcnn-1.7.0.7z https://github.com/benjaminwan/OcrLiteAndroidNcnn/releases/download/1.7.0/Project_OcrLiteAndroidNcnn-1.7.0.7z

wow, Thank you very much！
I have used the latest version of  onnx2ncnn to convert the model.But I got the error:"layer Shape not exists or registered"
Is the problem that I do not simplify the onnx net?
If this is the real problem, is there a tutorial to simplify the onnx net for ncnn?
I'll try your release project, but I want to learn how to simplify the onnx net.
I am appreciate of you.

https://github.com/daquexian/onnx-simplifier

https://github.com/daquexian/onnx-simplifier

Thank you very much!

authors: DJSHICHAOREN benjaminwan

repo: benjaminwan/OcrLiteAndroidNcnn


text:
Doesn't work with live preview

Doesn't work with live preview. Still great though :)

Hey @lewisjenkins thanks for the report! The functionality seems to work but the structure isn't reflected in the template.

Yes, I should have been clear. The structure isn't output in the templates until the document is saved.

Oh boy... seems I've missed something quite important. Entries have drafts and versions, which I'm not taking into account. I have a feeling this is going to be quite difficult to implement reliably.
I actually built this plugin to be a precursor to https://github.com/benjamminf/craft-neo which will support the features of this plugin, and a whole lot more. Seeing as that plugin is a completely new field type, and not just hacking onto another, it won't have any of these issues. No release ETA yet though.

This plugin (or something like it, Neo?) could be groundbreaking.
If you could add the functionality of the Reasons conditional plugin Craft will literally be the perfect CMS. Let me know where to send beer bribes.

@shealan The fortunate thing about Neo is that it uses the field layout designer for each block type, so the Reasons plugin would already be halfway compatible. I have full compatibility on my to-do list ;)
Haha beer is great and all, but what I really need is somebody to do this 3000 word essay so I don't feel so guilty working on Craft plugins instead.

(Leaving this here as a reminder to myself when I get around to fixing this)
Turns out the BaseElement[Model/Record] has the level attribute. This means that Matrix blocks already have a level attribute, which means not having to keep a separate record for each Matrix block just to track it's level.
Being able to set the level directly on the Matrix block also means that this will most likely solve this issue with the Live Preview, as well the issues with drafts and past versions of entries. It also has the benefit of improving performance, as there won't have to be any extra media queries.

authors: benjamminf lewisjenkins shealan

repo: benjamminf/craft-matrix-group


text:
TypeError on 2.17.0

I receive the following error while running eslint based on airbnb on a long-standing project after updating to 2.17.0.
TypeError: (0 , _ignore.getFileExtensions) is not a function
at checkSourceValue (node_modules\eslint-plugin-import\lib\rules\no-useless-path-segments.js:103:60)
at checkSourceValue (node_modules\eslint-module-utils\moduleVisitor.js:29:5)
at checkSource (node_modules\eslint-module-utils\moduleVisitor.js:34:5)
at listeners.(anonymous function).forEach.listener (node_modules\eslint\lib\util\safe-emitter.js:45:58)
at Array.forEach (<anonymous>)
at Object.emit (node_modules\eslint\lib\util\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (node_modules\eslint\lib\util\node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (node_modules\eslint\lib\util\node-event-generator.js:280:22)
at NodeEventGenerator.enterNode (node_modules\eslint\lib\util\node-event-generator.js:294:14)
at CodePathAnalyzer.enterNode (node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:632:23)

using
"eslint": "5.12.0",
"eslint-config-airbnb": "17.1.0",

Perhaps I have some mistake on my end? If more details are needed please let me know,

I has the same issue, I believe problem is because package eslint-module-utils is not updated, please fix this

Same happen to me. Looks like a new version of eslint-module-utils needs to be published.

I had the same issue

There is no "exports.getFileExtensions = makeValidExtensionSet" in eslint-module-utils/ ignore.js v2.17.0
Fix please
ps. I do not understand. There is "exports.getFileExtensions = makeValidExtensionSet" in github source, but there is no "exports.getFileExtensions = makeValidExtensionSet" in release source.

Same problem
// replaced path with ~ for better readability

Error: Module build failed (from ./node_modules/eslint-loader/index.js):
TypeError: (0 , _ignore.getFileExtensions) is not a function
Occurred while linting ~\src\index.js:1
    at checkSourceValue (~\node_modules\eslint-plugin-import\lib\rules\no-useless-path-segments.js:103:60)
    at checkSourceValue (~\node_modules\eslint-module-utils\moduleVisitor.js:29:5)
    at checkSource (~\node_modules\eslint-module-utils\moduleVisitor.js:34:5)
    at listeners.(anonymous function).forEach.listener (~\node_modules\eslint\lib\util\safe-emitter.js:45:58)
    at Array.forEach (<anonymous>)
    at Object.emit (~\node_modules\eslint\lib\util\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (~\node_modules\eslint\lib\util\node-event-generator.js:251:26)
    at NodeEventGenerator.applySelectors (~\node_modules\eslint\lib\util\node-event-generator.js:280:22)
    at NodeEventGenerator.enterNode (~\node_modules\eslint\lib\util\node-event-generator.js:294:14)
    at CodePathAnalyzer.enterNode (~\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:632:23)
    at nodeQueue.forEach.traversalInfo (~\node_modules\eslint\lib\linter.js:752:32)
    at Array.forEach (<anonymous>)
    at runRules (~\node_modules\eslint\lib\linter.js:747:15)
    at Linter._verifyWithoutProcessors (~\node_modules\eslint\lib\linter.js:899:31)
    at preprocess.map.textBlock (~\node_modules\eslint\lib\linter.js:955:35)
    at Array.map (<anonymous>)

For now, downgrading to 2.16.0 gets rid of the issue for me.

Thanks, I’ll update eslint-module-utils shortly.

v2.4.0 of es-module-utils is published; i'll also publish v2.17.1 of eslint-plugin-import to bump the dep requirement.

Cool, thanks.

eta?

@fisker unless your lockfile is keeping you broken, all you have to do is rimraf and reinstall node_modules and everything is already fixed. If you have a lockfile, make sure to update the transitive eslint-module-utils dep.

Actually there it looks like there is a (huge) delay in the version deployment on NPM network.
https://www.npmjs.com/package/eslint-plugin-import
Depending in your region 2.17.1 might not be available yet

It hasn’t been published yet, so it’s not available for anyone - but you don’t need that patch version of the parent package to fix this issue.

v2.17.1 is now published.

thanks, works for me now.

authors: RosenTomov TFKED fisker imbsky jaeminkim87 jehon11 lalau ljharb mistic100 mlenser

repo: benmosher/eslint-plugin-import


text:
Bug in imageByReplacingColor

I was replacing color in UIImage, and no matter what replacement color I used, the resulting image would have badColor replaced with transparent instead.
It's easy to see why -- your scaling is off. The values of your aRGBA, bRGBA arrays are within [0, 1]. But data[i] is [0x00, 0xff]. To compare data[i] to aRGBA, you are dividing data[i] by 255.0.
    redIn = (double)data[i]/255.0;

That is correct. Then you do the comparison:
    if(redIn == [aRGBA[0] floatValue] <...>)

That is correct, too. But then you set a [0, 1] number to data[i] which expects [0x00, 0xff]:
        data[i] = [bRGBA[0] floatValue];

That is wrong. Should be scaled by 255., something like this:
255. * (float) [bRGBA[0] floatValue];

Oh, and you have the same problem in
imageByReplacingColorsWithinDistance

I am using 1.4.0. Thanks.

Fixed - now on 1.5.0.

authors: bennyguitar stolpovsky

repo: bennyguitar/BGUtilities


text:
NewsKeeper类设计与实现

NewsKeeper实现NewsFeeder与前端Adapter的衔接。

void getReturnNewsMeta(List metas)
void getReturnNewsContent(News news)

repo: bennyguo/AssemblyNews


text:
Verify zone fills

This implements automatic zonefilling before starting an export
Resolves #73

Thanks!

authors: bennymeg obaterspok

repo: bennymeg/JLC-Plugin-for-KiCad


text:
Image / Assets

Hi Ben, Thanks for setting this up. Could you extend example to use an image from Elm? I can't get it to work myself.

I think this is just how Parcel works, and the only workaround is to externalize the images. :(

repo: benthepoet/elm-parcel-example


text:
Questions about DB states.

Hi, nice work!
A little question here is that it seems like you doesn't use DB state when training e2e task.
resp_outputs = self.model(attention_mask=attention_mask,                                       encoder_outputs=encoder_outputs,                                       lm_labels=resp_labels,                                       return_dict=False,                                       decoder_type="resp")

Hi!
The "resp_labels" consists of [db_state, system_action, response]. In the inference phase, the decoder has db_state as initial tokens.
For more details, please refer to reader.py (275 line):
resp = turn["dbpn"] + turn["aspn"] + turn["redx"]

Got it, thanks for your reply :)

Hi, I think it may be a little wrong here. The model should not learn to predict db_state tokens, thus I think it doesn't make sense taking db_state tokens as labels. Maybe it can be used as the inputs of decoder both when training and evaluation.

repo: bepoetree/MTTOD


text:
Adding new Entity to VIE manually

Currently, when we add a new entity to VIE, this means:
v.entities.add(new v.Entity(...));

or
var entity = new v.Entity(...);
v.entities.add(entity);

Especially the latter case could be shortened, if we either return the newly added/created entity when saying Collection.add() instead of the collection itself, or by adding the entity during the creation directly to the collection:
var Model = Backbone.Model.extend({
    initialize: function (attrs, opts) {
        ...
        if (!this.vie.vie.entities.get(this.id)) {
            this.vie.vie.entities.add(this);
        }
    }

what we have now is:
var Person = myVIE.types.get("Person");
var barack = Person.instance({"name" : "Barack"});
barack.addTo(myVIE.entities);

or (using chaining):
Person.instance({...}).addTo(myVIE.entities);

repo: bergie/VIE


text:
Create groups from Canvas groups

We currently create groups from enrollments, but Canvas also has groups of its own. It would be useful for the hub to be aware of course groups so that it can dynamically provision resources based on them.

Fixed by #2.


text:
Person student teacher classes

RUBY / DATABASES AND INTERVIEWING: OOP school library
In this pull request I have:

Created a class Person with Instance vars, Constructor, Getter, Setters, Private, and public methods.
Created class Student with Inherits from Person, Constructor extends parents and Method.
Created class Teacher with  Inherits from Person, Constructor extends parents and Override Method.

thanks

repo: bernabasy/OOP-school-library


text:
GeckoLIB crashes

Can you help?
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 11/13/21 7:13 PM
Description: Initializing game
java.lang.NoSuchMethodError: software.bernie.geckolib3.core.controller.AnimationController.addModelFetcher(Ljava/util/function/Function;)V
at net.barribob.boss.render.ModGeoRenderer.(ModGeoRenderer.java:172)
at net.barribob.boss.mob.Entities$clientInit$5.create(Entities.java:178)
at net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry.initialize(EntityRendererRegistry.java:82)
at net.minecraft.class_898.handler$bbf000$onRegisterRenderers(class_898.java:1103)
at net.minecraft.class_898.method_23167(class_898.java:185)
at net.minecraft.class_898.(class_898.java:192)
at net.minecraft.class_310.(class_310.java:527)
at net.minecraft.client.main.Main.main(Main.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:568)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Render thread
Stacktrace:
at net.barribob.boss.render.ModGeoRenderer.(ModGeoRenderer.java:172)
at net.barribob.boss.mob.Entities$clientInit$5.create(Entities.java:178)
at net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry.initialize(EntityRendererRegistry.java:82)
at net.minecraft.class_898.handler$bbf000$onRegisterRenderers(class_898.java:1103)
at net.minecraft.class_898.method_23167(class_898.java:185)
at net.minecraft.class_898.(class_898.java:192)
at net.minecraft.class_310.(class_310.java:527)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:568)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 747549384 bytes (712 MB) / 1894776832 bytes (1807 MB) up to 3817865216 bytes (3641 MB)
CPUs: 4
JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m -XX:PermSize=256m
Fabric Mods:
added_origins_mod: Added Origins V3.0.0
adventurez: AdventureZ 1.2.6
alaskanativecraft: Alaska Native Craft 1.2.2
angerable-patch: Angerable Patch 1.0.0-1.16.1
aqupdgrizzly: Grizzly Bear mob 1.0.1
architectury: Architectury 1.13.152
autoconfig1u: Auto Config v1 Updated 3.3.1
autosmeltenchant: AutosmeltEnchant 1.1.0
biomemakeover: Biome Makeover 1.16.5-1.3.8
bosses_of_mass_destruction: Bosses of Mass Destruction (Beta) 1.2-1.16.5
cardinal-components: Cardinal Components API 2.8.3
cardinal-components-base: Cardinal Components API (base) 2.8.3
cardinal-components-block: Cardinal Components API (blocks) 2.8.3
cardinal-components-chunk: Cardinal Components API (chunks) 2.8.3
cardinal-components-entity: Cardinal Components API (entities) 2.8.3
cardinal-components-item: Cardinal Components API (items) 2.8.3
cardinal-components-level: Cardinal Components API (world saves) 2.8.3
cardinal-components-scoreboard: Cardinal Components API (scoreboard) 2.8.3
cardinal-components-util: Cardinal Components API (utilities) 2.8.3
cardinal-components-world: Cardinal Components API (worlds) 2.8.3
cloth-basic-math: Cloth Basic Math 0.5.1
cloth-config2: Cloth Config v4 4.11.26
direbats: Direbats 1.1.1+1.16.5-fabric
dungeonsmod: Dungeons Mod Lite 1.16.5-1.0.5
earthtojavamobs: Earth2Java 1.7.1+1.16.4
extraorigins: Extra Origins 1.16.5-11
fabric: Fabric API 0.42.0+1.16
fabric-api-base: Fabric API Base 0.4.0+3cc0f0907d
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.1+3cc0f0907d
fabric-biome-api-v1: Fabric Biome API (v1) 3.1.13+3cc0f0907d
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.6+3cc0f0907d
fabric-command-api-v1: Fabric Command API (v1) 1.1.3+3cc0f0907d
fabric-commands-v0: Fabric Commands (v0) 0.2.3+3cc0f0907d
fabric-containers-v0: Fabric Containers (v0) 0.1.12+3cc0f0907d
fabric-content-registries-v0: Fabric Content Registries (v0) 0.2.5+3cc0f0907d
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.4+3cc0f0907d
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.8+3cc0f0907d
fabric-entity-events-v1: Fabric Entity Events (v1) 1.2.4+3cc0f0907d
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.5+3cc0f0907d
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.2+3cc0f0907d
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+3cc0f0907d
fabric-item-api-v1: Fabric Item API (v1) 1.2.2+3cc0f0907d
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.1+3cc0f0907d
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.5+3cc0f0907d
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.2+3cc0f0907d
fabric-language-kotlin: Fabric Language Kotlin 1.5.0+kotlin.1.4.31
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.2.2+3cc0f0907d
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.3+3cc0f0907d
fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.4+3cc0f0907d
fabric-models-v0: Fabric Models (v0) 0.3.1+3cc0f0907d
fabric-networking-api-v1: Fabric Networking API (v1) 1.0.5+3cc0f0907d
fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.9+3cc0f0907d
fabric-networking-v0: Fabric Networking (v0) 0.3.3+3cc0f0907d
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.9.6+3cc0f0907d
fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+3cc0f0907d
fabric-particles-v1: Fabric Particles (v1) 0.2.5+3cc0f0907d
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.6+3cc0f0907d
fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.5+3cc0f0907d
fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.5+3cc0f0907d
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 2.3.1+3cc0f0907d
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.6+3cc0f0907d
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.15+3cc0f0907d
fabric-rendering-v0: Fabric Rendering (v0) 1.1.3+3cc0f0907d
fabric-rendering-v1: Fabric Rendering (v1) 1.6.1+3cc0f0907d
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+3cc0f0907d
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.1+3cc0f0907d
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.6+3cc0f0907d
fabric-structure-api-v1: Fabric Structure API (v1) 1.1.12+3cc0f0907d
fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.1.2+3cc0f0907d
fabric-textures-v0: Fabric Textures (v0) 1.0.7+3cc0f0907d
fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.8+3cc0f0907d
fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.0+3cc0f0907d
fabricloader: Fabric Loader 0.12.5
fallflyinglib: FallFlyingLib 1.1.0
geckolib3: Geckolib 3.0.55
genesis: Genesis v0.4.3 v0.4.3
guardiansgalore: Guardians Galore 1.0-SNAPSHOT
identity: Identity 1.13.3-1.16.5
io_github_onyxstudios_cardinal-components-api: Cardinal-Components-API 2.8.2
jankson: Jankson 3.0.1+j1.2.0
java: Java HotSpot(TM) 64-Bit Server VM 8
kanos_config: Kanos Config 0.1.4+1.14.4-1.17.1
latoorigins: Lato Origins 0.6.2
libgui: LibGui 3.3.5+1.16.5
libstructure: Libstructure 1.3
maelstrom_library: Maelstrom Library 1.2-1.16.5
meumo: Mega Extra Ultimate Mob Origins 1.0.1
minecraft: Minecraft 1.16.5
moborigins: Mob Origins 1.4.0
mobz: MobZ 2.4.6
mostructures: Mo' Structures 1.2.0-1.16.5
multipart_entities: MultipartEntities 1.1.1-SNAPSHOT
omega-config: OmegaConfig 1.0.4
org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.4.31
org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.4.31
org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.4.31
org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.4.31
org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.4.2
org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.4.2
org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.1.0
org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.1.0
origins: Origins 0.7.3
origins-classes: Origins: Classes 1.1.1
originsplus: Origins Plus 0.0.2
pehkui: Pehkui 2.5.3+1.14.4-1.18
phosphor: Phosphor 0.7.2+build.12
playerabilitylib: Pal 1.2.1
reach-entity-attributes: Reach Entity Attributes 1.1.1
replaymod: Replay Mod 1.16.4-2.6.0
satin: Satin 1.5.1
toomanyorigins: TooManyOrigins 0.1.3
wiicustomorigins: WiiDude's Custom Origins Mod 1.16.5-13
zoob: Monster Of The Ocean Depths 3.0.0
Launched Version: fabric-loader-0.12.5-1.16.5
Backend library: LWJGL version 3.2.2 build 10
Backend API: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4252, Intel
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
CPU: 4x Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz

Not a Geckolib issue.

repo: bernie-g/geckolib


text:
Missing favicon

Most websites have a favicon, mainly for the little icon in the browser tab and in the bookmarks.
Because browsers check this, it causes an error in the network trace, which would be nice to avoid.

Inspiration to create a favicon: favicon.io

should be fixed with #23

repo: berthubert/trifecta


text:
Decentralize to protect: a DAO for Berty

We've been thinking about ways to protect Berty as a whole: not only people's communications secured by our protocol, not only the code itself, but also the very people in charge of building it. A holistic approach of security should take into account social and political vectors of attacks as well as tech security.
Here are our first thoughts. We would love to get inputs and comments from the community! Eventually, a DAO for Berty would amount to granting it with more power over the project, hence it would be good to "DAOify" Berty with your help from the onset :)

Berty’s mission is to create a protocol and applications enabling secure p2p communication between people, including in hostile political situations.
The provision of such tools contravenes the interests and policies of entities wishing to control communication between people for any reason: fight against crime and terrorism, control or eradication of political opposition, policy of mass surveillance, monetization of personal data, etc.
Consequently, it is to be expected that some of these entities will attempt to destroy, censor or take control of the tools offered by Berty (recent examples: following the request of the Spanish government, Github removes the Democratic Tsunami application from its servers; Uniswap blocks access to its application to navigation from a dozen countries, probably following pressure from the US government).
As open source code, the protocol itself and the applications provide a base level of resilience, since anyone can check the code and fork it. But effective protection must extend not only to these technical objects, but to the means of producing and disseminating them, as well as to the key people who make them available to the public.
We posit that such protection would be more effective when relying on decentralization and transparency, rather than on hiding and secrecy. Decentralization is understood here both at the level of the technical infrastructure and in terms of the organizational processes ruling maintenance and release activities.
A decentralized infrastructure ensures the integrity and the availability of storage services (for example, the source code of the protocol) and computing services (for example, the build of a mobile application), by avoiding single points of failure - we use the term technical decentralization in the rest of this note to refer to such services.
Organizational decentralization deters attempts to attack a small team in charge of maintenance and release activities, by leveraging a much larger, open group of people, and allowing anonymity - we use the term political decentralization to designate such organizational mechanics.
Political decentralization
The goal is to enable the community to operate the release of new versions of Berty's software, especially the release of versions of the end-user application. In the event of the core team being incapacitated to release, or pressured to alter the code in a way that would be detrimental to the privacy or the security of its users, the community would be able to step up and solve the situation. Eventually, the DAO-powered community may own the process, with core team(s) being seen as providers to the DAO.
Release cycle process

code submission (release candidate, not PR)
pre-validation period (code audit)
deliberation period
voting process
release
independent verification

Notes:

we need to keep things agile: merging PRs is done by the core team or anyone who gets the permission from the core team (permissioning doesn’t need to be formal)
we need to distinguish between frequent routine upgrades, urgent fixes, and major upgrades
we need to run the code review process in a somewhat async mode, so that reviews can happen anytime, not only when a new release is being prepared (especially with minor releases)

Actors

core team
council (tech experts + freedom fighters)
review teams
users
root key holders (in case of gradual decentralization)

Notes:
Compared to the usual way to manage and release a software product, the council is the new element here. Its purpose is to protect both the apps and the core team by owning key decisions regarding Berty's software. While a core team is made up of a small number of individuals that can be identified and targeted by hostile forces, the council can be broader and has no operational responsibilities. It acts as a decentralized group of people that can be trusted to decide what's best for the project and its users, because it can hardly collude and has no interest to do so, and it's globally spread so that it escapes local attempts of censoring or pressuring its members.
We are considering both recognized tech experts and freedom fighters as members of the council.
DAO Processes

RC submitted by core team
review/audit teams appointed by council
actual release voted by council
automated build and deployment triggered by votes
core team/council membership controlled by web of trust + on-chain voting

Technical decentralization
The goal of technical decentralization is to automate to the fullest extent the decisions made by the DAO, especially regarding code releases. We need to make sure that decentralized decisions can be actually enforced and protected from censorship and tampering by a state or a large technology company.
Components

IPFS: decentralizing data storage: source code, builds, documentation, Web site
Radicle/Pando/ditCraft: decentralizing VCS
Decentralized code collaboration: Radicle
ENS: decentralizing domains: berty.eth (reserved)
Decentralized courts: delegating operational authority for routine/urgent fixes (Aragon Agreement+Court, Kleros)
Public blockchain (Ethereum, Tezos, Bitcoin…) : decentralized authentication: signing releases, audits…
Public blockchain II: smart contracts for voting, onboarding members, etc (DAO)
Public blockchain III (or other distributed computing method): decentralized control over off-chain processing such as building executables (iExec, Golem)

Notes:
Automation of the release process using decentralized technology seems doable, except with one critical step: mobile app store submission. It's not surprising, since app stores are themselves centralized. On Android, an app can be made available independently of Google Play, but it's not possible on iOS. We might have to live with this single point of failure for now, and ultimately rely on parallel implementations and submissions to reduce the attack surface.
What now?
This is a call for inputs from the community. If you have opinions, questions, comments, suggestions, we want to hear from you!
We would be especially grateful to collect inputs on:
The Why —> the relevance of the proposition

is decentralized governance a good way to protect people building and maintaining the app?
are there other ways to make the project and the extended team protected from social and political attacks?
do you think that having Berty’s code released under an open source license is enough protect the whole project and its core contributors?
…

The What —> the scope of the proposition

should we aim as well for financial independence, through some sort of crowdfunding and decentralized treasury management?
should we focus on the release process of the mobile apps rather than on the underlying protocol?
at this point we focus on the release process rather than using a DAO for building the code (like for instance, granting repo permissions to devs) - is that right?
…

The How —> methods and tools

do you see useful pieces for automating a decentralized release process that we may have missed?
do you have ideas of how to address the SPOF issue of single, named users managing the app store accounts?
we are considering a Web of trust approach for onboarding members on the council, what do you think about it?
….

The questions above are just examples. We are looking forward to any feedback of yours :)

Thank you for introducing this topic for the community!
It would be great if the community would gradually take up the topic and come up with solutions. I'll think about it and would be happy to get involved in upcoming weeks :)

Thank you guys for these insights: I dig this! Here are a few of my views on "The What":
The What —> the scope of the proposition
should we aim as well for financial independence, through some sort of crowdfunding and decentralized treasury management?
A big yes! Especially in the germ. Today Berty's core development team is relying upon very few patrons' money (one? :)). Since the business model is not yet defined, the company's vision might not even choose one. What would happen if this generous patron decides to stop financing the Berty project because he receives pressures from his government? Will it be the end of the adventure? Berty's mobile application & protocol development decentralization, pass-through a decentralized funding process. It's particularly true in the debut until the developer community has not reached a critical size. How should this crowdfunding be implemented? I am sure @PhilH , will guide the team through it excellently ;)
should we focus on the release process of the mobile apps rather than on the underlying protocol?
My intuition tells me that the Mobile App will strive for a more significant technical and non-technical community in the debut than the core protocol. Hence, I feel that Berty is answering a massive problem here: how can people communicate with their peers in complete freedom? Therefore, if the UX meets expectations, Berty's Mobile App can swiftly gather more developers around the project developers will use daily than "another P2P protocol". Sorry for sounding foolish, but how many Open-Source P2P protocols can you find on Github? A lot. How many of them remain unknown? A lot and often decorrelated from their purpose & code quality.
In the inception, what will make Berty protocol visible from other developers to use it? A widely use Mobile App that runs on it: Berty Mobile App :)
at this point we focus on the release process rather than using a DAO for building the code (like for instance, granting repo permissions to devs) - is that right?

Being one of your top fans, I hope I could play with the Berty Mobile App beta soon!

@Lalolo13 Thanks a lot for your comments!

(crowdfunding and treasury management) A big yes!

Definitely interesting to see such an enthusiastic support of a crowdfunding option :)

Since the business model is not yet defined

As a reminder, Berty is a non-profit. There's no business model right now. Both the protocol and the app will be delivered and used for free. Since the tech is fully p2p, there's no real need for a server infrastructure that would be both a cost and an opportunity to create a business model. In the future, apps (other than the reference implementation of the mobile, consumer chat app) might use the protocol AND have a business model, but there's no plan to offer paying licenses to developers of such apps at this stage.
Hence if crowdfunding and treasury management are to be added to the DAO, it will be either because of a public good funding approach (see Common Stack), or as the consequence of a change regarding this non-commercial policy (unlikely).

My intuition tells me that the Mobile App will strive for a more significant technical and non-technical community in the debut than the core protocol

I shouldn't speak for him but I understand this is also the opinion of @moul (for slightly different reasons, but it amounts to the same result). I still have mixed feelings about this point. At the end of the day, the protocol might be immensely more valuable than a single app. But it's good to get different views, so thank you! 🙏

do you think that having Berty’s code released under an open source license is enough protect the whole project and its core contributors?

Licenses only protect freedom of the code if(!) all players play by the rules.
There is no protection for involved persons to expect - contributors or users. A simple law can even override the constitution and get the parliament out of the way - a situation which we have right now in Germany, so it's in no way theoretical.
To summarise: A license gives you no protection when one party plays against the rules.

Hello guys ✌
Just discover your project today and it seems amazing how far you're going with the decentrelize initiative!
Here are my thoughts:

is decentralized governance a good way to protect people building and maintaining the app?

I think you rely only the actual team to provide the software, it's not really a good way. You still have a "post-it" on your face with I'm a key stone of this project write on it. That's why I think you should more rely on the community when the project will grow enough to develop, make release, bug corrections, etc.

are there other ways to make the project and the extended team protected from social and political attacks?

Maybe when your work implies public stuff, you can (that's a drastic idea though) develop under generated accounts without your personal data linked to it. Like creating a random GitHub account, etc.
Also, you can make things even more decentralized by splitting important tasks to more people (like 5 people to releases, 5 to develop), so shutting down the project or arming people is less meaningful than targeting the Lead dev for example.

do you think that having Berty’s code released under an open source license is enough protect the whole project and its core contributors?

For "good people" and "good systems" (I did write on purpose these words so no{one/thing} is targeted 🙂), its sufficient as a license will bring some complexity to attack some{one/thing}.
But if you take a "bad system", it doesn't care about it and you'll mostly rely on the above thoughts to protect the project and people behind it.

at this point we focus on the release process rather than using a DAO for building the code (like for instance, granting repo permissions to devs) - is that right?

I think so. For now, the concept and the "big goal" of the project is inside your heads and not in communities's heads. Once the project is big or mature enough, it'd be time to switch IMO.
A cool feature/idea for a long term DAO, would be to rely on servers having a copy of the repository hosted on. For example, I have a git server (Gitea), I can create a copy of it in it without having to listed as fork, so if some{one/thing} want to shutdown the project on GitHub, you could rely on it to continue develop and releases.
For that, I suggest some sort of private list of servers with or without credentials where the project is stored and regularly updated.

repo: berty/community


text:
fix: "document is not defined" when using ssr

I noticed this exception when using the Dropdown.svelte component with sapper. Wrapping the code block in a condition fixes it.

Thanks @larryosborn , looks fine.  I'm catching up on Svelte 3 but do you know if the generate: 'ssr' option in the Svelte compiler would handle this and other similar automatically?:
https://svelte.dev/docs#svelte_compile

I'm not quite sure. I haven't had much experience working with the compiler options yet.

Ah thanks for the info, good to know.  Will merge and publish soon after.

authors: bestguy larryosborn

repo: bestguy/sveltestrap


text:
No Bar to skip to specific time within VOD

Not sure why, but I can't see the bar to skip to a later part in VOD properly - only arrow keys work.

Hi, can you send me a screenshot of your player

I just saw that it appear in fullscreen, but not when not fullscreen.
And I didn't find the option to show chat in options.

To enable the chat you need to click on the extension icon  then click on "Settings".
You will see this:

So here we see the player controls are appearing correctly:

But if I collapse the left sidebar, the player gets bigger but you can see the bottom of the stream is cut off, along with the player controls:

Issue is caused by plyr. I do not know why the switch from videojs to plyr was made but I have reverted to videojs and this issue does not happen to me.
IMO plyr is outdated and not maintained anymore and hence videojs should be preferred. I also have observed memory leaks with plyr and some UI scaling issues which are not happening after going back to videojs.
I liked the support of playing "highlights" vod so I added support for those type of vod into previous code of v3 which is based on videojs so I'm not really missing anything.

Hey, the mean reason to switch to plyr was to support firefox. It was easier for me to completely change the player instead of keeping videojs for firefox. But I switched back to videojs with partial support of firefox.

That's great @besuper thanks!

repo: besuper/TwitchNoSub


text:
🛑 Endpoint CNAF v1 is down

In d1a7e8a, Endpoint CNAF v1 (https://particulier.api.gouv.fr/api/caf/famille?numeroAllocataire=$NUMERO_ALLOCATAIRE&codePostal=$CODE_POSTAL) was down:

HTTP code: 500
Response time: 453 ms

Resolved: Endpoint CNAF v1 is back up in 90ba2f3.

repo: betagouv/api-particulier-status


text:
Feat/rework asp file handling

Division du travail de PollPaymentServerJob qui désormais s'occupe seulement de sauver les fichiers, puis déclenche une nouvelle tâche (ProcessASPResponseFileJob) qui s'occupe de retrouver le modèle avec le filename pour ensuite déclencher l'analyse des fichiers de retour. Ce qui nous permet encore une fois de transférer la charge à Sidekiq et d'avoir une meilleure observabilité sur le processus puisque si un fichier échoue à être lu :

un job atomique (ProcessASPResponseFileJob) nous permet d'identifier immédiatement le problème ;
la lecture des autres fichiers n'est pas affectée car indépendante à chaque fichier.

Est-ce que c'est possible que entre le moment où on save le fichier et le moment où on le process quelque chose a changé entre temps?

Sinon j'aime bien cette idée de division du travail! Bonne idée :)

authors: freesteph pskl

repo: betagouv/aplypro


text:
🛑 API Camino is down

In 6b3291d, API Camino (https://api.camino.beta.gouv.fr/titres) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API Camino is back up in 1ec223a.


text:
Information For pages - each lacks defined hero

Looking at Lois's MD files she has them formatted correctly. Page needs a defined hero area (title, deck) and body.

Should be fixed!

authors: clararaubertas sbxchicago


text:
🛑 Samsun Çocuk Gelişimi is down

In b90eb4c, Samsun Çocuk Gelişimi (https://samsuncocukgelisimi.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Samsun Çocuk Gelişimi is back up in b3600cd after 14 minutes.

repo: betterwithagency/status-page


text:
🛑 Yula is down

In 7899dcf, Yula (https://yulala.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Yula is back up in 7842b2d after 9 minutes.


text:
Separate containers and custom feedback

In this repo's README you said:

the example allows the user to drag elements from left into right, and from right into left.

Is it possible to have it just from left into right? Like separate containers: one just for dragging, and one just for dropping?
Can you remove the feedback shadow on drop and write a custom feedback function?
Thanks

You should use moves and accepts for this.
dragula({
  moves: function (el, container, handle) {
   return container === left;
  },
  accepts: function accepts (el, target, source, sibling) {
    return target === right;
  }
});

When you're about to drop an element, it provides you a feedback of your element with a level of opacity.

What would you have it do instead?

So, what I'm trying to accomplish is this:

drag the element from left container to the right container (you already helped me with that, thanks!)
on over the right container, animate its properties (like height, width, bg color), and hide the transparent element
on drop hide the dropped element

You could accomplish the second with a CSS rule: .gu-mirror { display: none }.
As for the third one, you could just do:
drake.on('drop', function (el) {
  // hide el
});

authors: bevacqua bmpinto

repo: bevacqua/dragula


text:
WSL2 to Windows compilation fails in Bevy 0.12

Bevy version
0.12
Relevant system information
Rust version: cargo 1.73.0 (9c4383fb5 2023-08-26)
Operating system:
5.15.90.1-microsoft-standard-WSL2 GNU/Linux
Description:    Manjaro Linux
Release:        23.1.0
Codename:       Vulcan

What you did
Attempted to cross-compile for Windows MSVC target from Linux (WSL2).
Code in main.rs:
use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .run();
}

What went wrong
Compilation fails, the following error occurs:
$  cargo build --target x86_64-pc-windows-msvc
   ...
   Compiling blake3 v1.5.0
The following warnings were emitted during compilation:

warning: GNU compiler is not supported for this target
warning: GNU compiler is not supported for this target
warning: The C compiler "cc" does not support /arch:AVX512.
warning: GNU compiler is not supported for this target

error: failed to run custom build command for `blake3 v1.5.0`

Caused by:
  process didn't exit successfully: `/home/sanrafa/dev/bevy-test/target/debug/build/blake3-7487fe5fac26a6d9/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=CARGO_FEATURE_PURE
  cargo:rerun-if-env-changed=CARGO_FEATURE_NO_NEON
  TARGET = Some("x86_64-pc-windows-msvc")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = Some("lld")
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:warning=GNU compiler is not supported for this target
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  OPT_LEVEL = Some("0")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = Some("lld")
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:warning=GNU compiler is not supported for this target
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=The C compiler "cc" does not support /arch:AVX512.
  cargo:rerun-if-env-changed=BLAKE3_CI
  cargo:rerun-if-env-changed=CARGO_FEATURE_PREFER_INTRINSICS
  cargo:rerun-if-env-changed=CARGO_FEATURE_PURE
  cargo:rustc-cfg=blake3_sse2_ffi
  cargo:rustc-cfg=blake3_sse41_ffi
  cargo:rustc-cfg=blake3_avx2_ffi
  TARGET = Some("x86_64-pc-windows-msvc")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  RUSTC_LINKER = Some("lld")
  cargo:rerun-if-env-changed=CROSS_COMPILE
  CROSS_COMPILE = None
  cargo:warning=GNU compiler is not supported for this target
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: "ml64.exe" "-nologo" "-Zi" "-o" "/home/sanrafa/dev/bevy-test/target/x86_64-pc-windows-msvc/debug/build/blake3-474c1f516b0299bd/out/c/blake3_sse2_x86-64_windows_msvc.o" "-c" "c/blake3_sse2_x86-64_windows_msvc.asm"

  --- stderr

  error occurred: Failed to find tool. Is `ml64.exe` installed?

warning: build failed, waiting for other jobs to finish...

Additional information
Current workaround is to use 0.11.3 - it works just fine on that version.
Based on this discussion, the issue seems to be stemming from the new Blake3 dependency.

Can confirm this is also happening on Mac.

Seems like this has been a known issue of blake3 since July 2021.

The PR https://github.com/bevyengine/bevy/pull/10208 introduced blake3 to replace MD5 in Assets V2, so although I agree MD5 should be avoided, we can look for another crate which has a good and safer hashing implementation and which can cross compile.

Is there any chance of this being reconsidered for a minor patch?
Currently anyone on Mac or Linux can't build bevy games for Windows (important platform 😅) even with containers/docker.
I encountered this bug while trying to upload a playtest build to itch. So I am currently asking around to borrow someones PC for half an hour haha

could you check if https://github.com/BLAKE3-team/BLAKE3/pull/230 fixes it for you?

could you check if BLAKE3-team/BLAKE3#230 fixes it for you?

Just for context as it was mentioned in discord:
The linked PR is too stale to test or patch in as it targets 1.3.1, and bevy uses 1.5,

Enabling the prefer_intrinsics or pure features of the blake3 crate should help avoid the C implementation.

I would like to land some version of https://github.com/BLAKE3-team/BLAKE3/pull/230 upstream, and I have some questions about how the approach in that PR compares to what cross does when it targets x86_64-pc-windows-msvc. It would be great if someone who understands this stuff better than me could chime in on that thread :)

Related discussion
And thank you for pointing to a workaround here ❤

authors: afonsolage bjorn3 fabienjuif mockersf oconnor663 sanrafa tbillington

repo: bevyengine/bevy


text:
WorldQuery generates structs with public fields without documentation, breaking builds with #![deny(missing_docs)]

Bevy version
0.10.1
What you did
I tried to compile bevy_egui with Bevy 0.10.1 version, which has the following code triggering the issue:
https://github.com/mvlabat/bevy_egui/blob/main/src/lib.rs#L610-L628
/// Queries all the Egui related components.
#[derive(WorldQuery)]
#[world_query(mutable)]
pub struct EguiContextQuery {
    /// Window entity.
    pub window_entity: Entity,
    /// Egui context associated with the window.
    pub ctx: &'static mut EguiContext,
    /// Encapsulates [`egui::RawInput`].
    pub egui_input: &'static mut EguiInput,
    /// Egui shapes and textures delta.
    pub render_output: &'static mut EguiRenderOutput,
    /// Encapsulates [`egui::PlatformOutput`].
    pub egui_output: &'static mut EguiOutput,
    /// Stores physical size of the window and its scale factor.
    pub window_size: &'static mut WindowSize,
    /// [`Window`] component.
    pub window: &'static mut Window,
}

What went wrong
The build failed with the following error (as there's crate level #![deny(missing_docs)]):
error: missing documentation for a struct field
Error:    --> src/lib.rs:611:10
    |
611 | #[derive(WorldQuery)]
    |          ^^^^^^^^^^
    |
    = note: `-D missing-docs` implied by `-D warnings`
    = note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)

Additional information
It seems that this regression was introduced specifically in 0.10.1.

Caused by https://github.com/bevyengine/bevy/pull/8163.


text:
Sampling fixed distance segments of a curve

What problem does this solve or what need does it fill?
Some curve types have a property that equally distanced interpolators are not resulting in equal length segments. But this is important when it's needed to move something along a curve at constant speed. For example, train along the tracks, or some animation.
What solution would you like?
Helper method on Cubic spline that returns points that are equally distanced from each otehr along the curve.
What alternative(s) have you considered?
There is a method (iter_sample) that accepts a arbitrary sampling function which might be used as described in this book about Bezier curves

This was something I wanted for following camera paths at constant velocity. Definitely a good thing to have, in my opinion.

I also need a way to follow a defined cubic curve at constant velocity. Maybe I missed something but it seems that it is still not possible in Bevy 0.14.2.

authors: JohnTheCoolingFan mhatz-2 superdump


text:
Fix gizmos.circle when normal isn't unit length

Objective
Fix weird visuals when drawing a gizmo with a non-normed normal.
Fixes #11401
Solution
Just normalize right before we draw. Could do it when constructing the builder but that seems less consistent.
Changelog

gizmos.circle normal is now a Direction3d instead of a Vec3.

Migration Guide

Pass a Direction3d for gizmos.circle normal, eg. Direction3d::new(vec).unwrap_or(default) or potentially Direction3d::new_unchecked(vec) if you know your vec is definitely normalized.

Sure! Gave that a go. This does slightly conflict with @alice-i-cecile comment in #11401 though. Maybe callees using Direction3d::new(vec).unwrap_or(Direction3d::Y) isn't too bad. Maybe could be worth having a Direction3d::new_or(vec, Direction3d::Y) ? Not sure.

I prefer the type-safe validation to my suggestion linked :)

@rodolphito review?

authors: ArthurBrussee alice-i-cecile


text:
Add inline documentation to bevy code

For review, first iteration of bevy code documentation.
I can continue submitting docs every now and then for relevant parts.
Some challenges I found:

plugins example had to be commented out, as adding bevy_internal (where plugins reside) would pull in too many dependencies

Fixed the grammar nit. The other comments are nice suggestions, but I don't think they're required to merge this. Rather than let this sit for longer, I'm just going to merge as-is. Feel free to follow up with more additions if you want.

bors r+

authors: blaind cart


text:
Make BundleInfo's fields not pub(crate)

Objective
While working on #8053, it became apparent that BundleInfo's pub(crate) fields are a potential soundness if the fields are accessed mutably after initialization.
Solution
Make them not pub(crate). Use inlined accessor functions instead.

Hmm. This is technically breaking. I'm fine to omit a migration guide entry, but I'm not sure I love shipping this in 0.10.1

Is it breaking? The fields are pub(crate), no user facing interface was changed.

Yep I was wrong: this isn't breaking at all.

Oh right the const on the ID. It's not technically breaking as it's only a gain of function and will not break any builds, but it is backwards-incompatible. I can remove that if need be.

I don't think this needs to be in the 0.10.1, this doesn't affect any consumers of bevy_ecs.

authors: JoJoJet alice-i-cecile james7132


text:
roo.me README  file

Update roo.me README file.

closed via #286


text:
Invalid miniyank.mpack file path on Windows

When using nvim-miniyank on Windows, the default file path off miniyank.mpack is invalid
(/temp/user/miniyank.mpack does not exist).
The issue can be easily solved by using 'let g:miniyank_filename = "C:\foo\miniyank.mpack"',
but a working default value on windows would be nice.

I think we can use stdpath() on windows. E g does stdpath('data') or stdpath('cache') give sensible locations for you?

stdpath() is probably a good way to go, however I won't be able to test it on windows before Tuesday.
I will tell you then.

I got stdpath('data') -> C:\User\username\AppDataLocal\nvim-data and stdpath('cache') -> C:\User\USERN~1\AppData\Local\Temp\nvim.
Both seems valid path for the miniyank.mpack (I think the second one is more adapted for temporary data).

@xNephe I added stdpath('cache') fallback, would you mind testing if it now works without g:miniyank_filename override?

@bfredl I had to create the folder nvim manually in Temp. Ideally, it should be automatically created.
Once the folder created, everything seems fine.

Ideally, it should be automatically created.

Fixed.

authors: bfredl xNephe

repo: bfredl/nvim-miniyank


text:
Prelude/package.dhall checksum incorrect

I'm trying to run the example, using an import and it's failing with:
dhall:
↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/package.dhall
  ↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/GitLab/package.dhall
    ↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/GitLab/Job/package.dhall
      ↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/GitLab/Job/Type.dhall
        ↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/GitLab/Prelude.dhall
          ↳ https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/Prelude.dhall
            ↳ https://raw.githubusercontent.com/dhall-lang/dhall-lang/v17.0.0/Prelude/package.dhall
  sha256:0c04cbe34f1f2d408e8c8b8cb0aa3ff4d5656336910f7e86190a6d14326f966d

Error: Import integrity check failed

Expected hash:

↳ 0c04cbe34f1f2d408e8c8b8cb0aa3ff4d5656336910f7e86190a6d14326f966d

Actual hash:

↳ 10db3c919c25e9046833df897a8ffe2701dc390fa0893d958c3430524be5a43e

24│   https://raw.githubusercontent.com/dhall-lang/dhall-lang/v17.0.0/Prelude/package.dhall sha256:0c04cbe34f1f2d408e8c8b8cb0aa3ff4d5656336910f7e86190a6d14326f966d

https://raw.githubusercontent.com/bgamari/dhall-gitlab-ci/master/Prelude.dhall:24:3

It seems like the checksum committed is wrong.

Yeah, I'm using the latest:
% dhall --version
1.41.1

I can't see any obvious reason in the changelog why this would have broken: https://hackage.haskell.org/package/dhall-1.41.1/changelog

For the record, same problem here when upgrading to dhall in version 1.40.2. For now I'm using @bobdoah's PR directly, otherwise the pipeline won't build.

I was hoping to get a bit more familiar with dhall by using it for gitlab-ci, any recs on a temporary workaround?
Could I somehow get that version of the Prelude cached on my machine? Or fork and deal with fixing the sha check w/in the code of this repo?

You can use the PR, or my fork: https://github.com/bobdoah/dhall-gitlab-ci

I have merged the MR. Thanks everyone!

authors: bgamari bobdoah jackmac92 kenranunderscore

repo: bgamari/dhall-gitlab-ci


text:
[iOS] Error (Xcode): Cycle inside Runner; building could produce unreliable results.

I have followed instructions in the README to setup the config for this library in my flutter app. When I do flutter run or build in Xcode, I get the following error.
Could not build the precompiled application for the device.
Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': ExtractAppIntentsMetadata
○ Target 'Runner' has copy command from '/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Share Extension.appex' to
'/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Share Extension.appex' to
'/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex'

Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node:
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/Ex
tractedAppShortcutsMetadata.stringsdata ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7-copy-files> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7-copy-files ->

node: <Copy /Users/nile/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy
/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex /Users/nile/development/receiptcamp/build/ios/Debug-iphoneos/Share
Extension.appex ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--copy-pods-resources> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--copy-pods-resources ->

node:
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-238B2E5E5
9C043048A663065-Pods-Runner-resources-Debug-input-files-294ce8e190336c90c3ff9df3086ebfec-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-238B2E5E5
9C043048A663065-Pods-Runner-resources-Debug-input-files-294ce8e190336c90c3ff9df3086ebfec-resolved.xcfilelist ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks ->

node:
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-AC4A52594
8CCCEF9E458DC89-Pods-Runner-frameworks-Debug-input-files-1ab491fe0012c6a0c465600eff1a8f55-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-AC4A52594
8CCCEF9E458DC89-Pods-Runner-frameworks-Debug-input-files-1ab491fe0012c6a0c465600eff1a8f55-resolved.xcfilelist ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node: <execute-shell-script-18c1723432283e0cc55f10a6dcfd9e02f1eee2015e8ff5ebcd27678f788c2826-target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-> ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary
/Users/john/Library/Developer/Xcode/DerivedData/Runner-bilvgzlcgxkohnfromquxqobzkhu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5
004D2608.sh ->

node: /Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: R ->

directoryContents: /Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile
/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/john/development/receiptcamp/ios/Runner/Info.plist ->

node: /Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy
/Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Runner.app/PlugIns/Share Extension.appex /Users/john/development/receiptcamp/build/ios/Debug-iphoneos/Share
Extension.appex

Error launching application on John's iPhone.

This looks like an error I had when i followed some outdated errors from crashalytics.
Look inside the build phases - run scripts of your main package. Perhaps you have some entries there that you dont need and cause a loop with the pod file instructions.

This looks like an error I had when i followed some outdated errors from crashalytics. Look inside the build phases - run scripts of your main package. Perhaps you have some entries there that you dont need and cause a loop with the pod file instructions.

Thanks for the suggestion, I attempted this to no success. Still having the same error.
Here is mr Run Script in Xcode Build Phases for Runner target. I tried to flutter run without and without this run script to still get the same error I initially sent in this issue.

So I somehow randomly solved this issue by discarding all my changes made in
<projectname>/ios/Runner.xcodeproj/project.pbxproj
according to git, then undo this by CMD +Z on the file. When I did flutter run again it worked. Got no idea how or why unfortunately.

After undo <projectname>/ios/Runner.xcodeproj/project.pbxproj file its also remove extension from target 🤔

Not 100%, it's likely tho.

Solved this issue by changing order in Build Phases
https://github.com/flutter/flutter/issues/135739#issuecomment-1741814813

@hellpirat can you provide a screenshot of the steps?

authors: adrianvintu amit-pnkfrg hellpirat nilekell


text:
License absent

Subj

Thanks a lot for the comment, fixed!

authors: bibajz tieugene

repo: bibajz/bitcoin-python-async-rpc


text:
VideoTGB/inputs/videoinstruct文件夹

您好，作者，又打扰了！
能不能请您提供VideoTGB/inputs/videoinstruct这个文件夹下面的所有文件呀？
尝试运行代码的过程中，仿佛永远都在需要新的文件。
先是FileNotFoundError: [Errno 2] No such file or directory: '/root/VideoTGB/inputs/videoinstruct/flow'，等我解决了这个问题，
接着是FileNotFoundError: [Errno 2] No such file or directory: '/root/VideoTGB/inputs/videoinstruct/train.json'，
接着是FileNotFoundError: [Errno 2] No such file or directory: '/root/VideoTGB/inputs/videoinstruct/pesudo_label.json'
等我一个一个去解决之后，
现在又是FileNotFoundError: [Errno 2] No such file or directory: '/root/VideoTGB/inputs/videoinstruct/val.json
呜呜呜呜呜，然后我又不知道这个val.json是什么。（哭泣）

bhys，这个proj是一年前的工作，改了好几次，有好多文件我自己也不太记得清了╥﹏╥，所以数据也没整理。
我暂时先把 train/val/test.json 传到aliyunpan，image和flow等我有空再打包，inputs下有两个文件夹，一个videoinstruct：来自于videochatgpt，val/test 就是从train里面分出来便于观察实验结果的，你可以用别的。另个一是ivinstruct：结合了videochatgpt和llava1.5的数据，val/test同上。如果还缺别的你再说，我给你找。
https://www.alipan.com/s/Az5R3sSPxZj

呜呜呜呜呜呜呜好的，谢谢你！

repo: bigai-nlco/VideoTGB


text:
[ADAM-1456] Remove .{type}.adam file extension conversions in type-guessing methods.

Fixes #1456.
See also #1481.

Coverage decreased (-0.2%) to 81.41% when pulling 80c445ad5a8ff9ec249c692837a484a0ef8e5d03 on heuermh:issue-1456 into 93b32c61c7a33603c41720aadd913fc9af71366d on bigdatagenomics:master.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1938/
Test PASSed.

Merged! Thanks @heuermh!

authors: AmplabJenkins coveralls fnothaft heuermh

repo: bigdatagenomics/adam


text:
A method to lookup the label for a ChoiceItem

I attempted to use your library for choices in a Django model field, but ended up rolling back to a more primitive approach.  Here's a (slightly obfuscated) overview of my use case:
class User(models.Model):

    class UserType(DjangoChoices):
        Trial = ChoiceItem('T', label='Trial')
        Active = ChoiceItem('A', label='Active')
        Expired = ChoiceItem('E', label='Expired')

    status = models.CharField(max_length=1, choices=UserType.choices,
                              default=UserType.Trial,
                              validators=[UserType.validator])

    ...

But I needed a way to represent the status in in a view.
What I'd like to be able to do is something like this:
u = User.objects.get(...)
print u.status.label

and get:
'Expired'

I didn't see an intuitive way to do this mentioned in the docs.
Because at view level, I have access to the model field, all I can see is E.
So I considered iterating through the dict from UserType, but in terms of interface, that felt weird.  I was wondering if there's a better solution or if you've had this use case?
Best,
Taylor

That's actually provided by Django core, see: https://docs.djangoproject.com/en/1.9/ref/models/instances/#django.db.models.Model.get_FOO_display
You can thus use u.get_status_display()

How quickly we forget :).  That's exactly what I was looking for. :+1:

No problem, happy to help.

authors: sergei-maertens tedmiston

repo: bigjason/django-choices


text:
🛑 Jefferson Real is down

In 1b475b4, Jefferson Real (https://jeffersonreal.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jefferson Real is back up in d4c18e8 after 11 minutes.

repo: bigupjeff/my-site-uptime-monitor