Proper facetting

We need a proper facetting feature. Currently a simple collector makes it possible to gather counts of the different counts of the values that a fastfield can take. This is a bit simplistic as it leaves the user in charge of maintaining its own taxonomy, and translate the result counts into its actual facets.
There are many strategy to do facetting. Lucene implements a couple...
Specs
Taxonomy and facets
We want to handle hierarchical facets. A document can be associated to any number of facets.
A facet is a node in a taxonomy tree. Each node bears a name and has a parent. In the following, we will refer to facets by the unique path to reach them from the root.
For instance, assuming an index where documents are businesses, an establishment that is both a bar and a cafe could belong to the following facets.

/location/country/france/paris
/industry/food_service/bar
/industry/food_service/cafe

Implicitely the establishment also belongs to partial prefix of the paths above. For instance it belongs to /industry/, /industry/food_service, /location/country/france etc.
Rather than having the user predefine its taxonomy tree, the user may just add to a document the facets it belongs to by listing the facets (or rather facet paths) it belongs to.
let taxonomy = index_writer.taxonomy();
let mut doc: Document = Document::new();
let facet = Facet::new(&["industry", "food_service", "cafe"]);
doc.add_facet(facet);

Note that this API is just here for discussion and may change depending on the design.
Using facets
Tantivy's users can then request for facet counts. This is done by adding a collector.
He can retrieve the count of documents associated to any subtree of taxonomy tree.
This is typically done by supplying a

root path (only facet that are descending from the root path are considered)
a depth
a top k limit

The user can also craft queries that requires a specific facet,
programmatically by creating a FacetTermQuery or by relying on the query parser
facet:/industry/food_service/cafe.
It is possible to disable facet query in the QueryParser.
Design Proposal
The taxonomy is segment local. Upon serialization of segments we process the paths and create a taxonomy file that includes all facets, associate each facet with an ID.
A multivalued fastfield then offers random access to the list of explicit facet ids associated to a document. This is done by storing the concatenation of those facet ids in an array (probably bitpacked), and storing in fastfield the index of the the first facet id for a given document.
In order to access the facet ids to a document doc, one can then conceptually access &facet_ids[start_facet_id[doc]..start_facet_id[doc+1]].
In addition facets also generate an indexed field, where terms are all the facets (implicit + explicit)  associated to the document.
Upon merge, taxonomy get merged and all facet ids needs to be remapped.
During collection, all segments works off their own taxonomy, collecting facet ids locally rather than facet path. Their result then get consolidated using their paths in the end.
Note : not having a common taxonomy may hinder some optimization opportunity.

In master


⚠ Bofrost.es has degraded performance

In d06c244, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1769 ms

Resolved: Bofrost.es performance has improved in 05fe817 after 6 minutes.


Export to / Import from (hidden) .xml

Google Translate:
Hello Dijji, how are you?
I would like to save the XML file for import / export in the folder where the actual file is saved, but hidden.
On the one hand for a quick / convenient backup, on the other hand for the file formats that lose / delete the metadata after editing and saving again.
The import works with it, but not the export.
Would it be possible?
Is there anything new to the issue with the URL (internet shortcut) file format?
Thanks very much.

Export failed
Error 0xd opening metadata file
OK

Hi, thanks for the feature idea. I just wanted to let you know: https://github.com/Dijji/FileMeta/issues/134


Personal Account Tenant ID

The section on admin consent describes using a tenant id with the personal account. The tid (as described by payload claims) however does not include the tenant id and there appear to be no graph api endpoints to get the tenant information.
I can tell that tenant ids exist for personal accounts because the tenant id is set on messages coming from Microsoft Teams.  How does one get the tenant id for a personal account via OAuth/Graph api?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0ac43307-75d4-cb6f-e561-0dd9008f28c6
Version Independent ID: 8fc47e76-5ee1-6aeb-73e2-c64c44e3e4ed
Content: Microsoft identity platform scopes, permissions, and consent
Content Source: articles/active-directory/develop/v2-permissions-and-consent.md
Service: active-directory
Sub-service: develop
GitHub Login: @rwike77
Microsoft Alias: ryanwi

@jeubank12
Thanks for your feedback! We will investigate and update as appropriate.

@jeubank12
Thank you for your time and patience throughout this issue.
Using MS Graph, you can get your tenantID using:
https://login.microsoftonline.com/{yourDomainName.com}/.well-known/openid-configuration

You can also decode your access token within jwt.ms

For more info
I hope this helps!
Thank you for your time and patience throughout this issue.

That is correct for work/school accounts. But for personal accounts, the tid is set as 9188040d-6c67-4c5b-b112-36a304b66dad for all personal accounts
Is the tenantId stable in the webUrl property of joinedTeams?

The description indicates that it is an opaque blob and should not be parsed. Just trying to find out if it can be exposed on the Team object then

@jeubank12
Thank you for the quick response!
Using Graph API, I ran that command using my personal account which showed the correct tenant:

When it comes to your Teams specific questions, I'd recommend leveraging our MS Q&A Teams forums, specifically Teams App development, so our Teams experts can help answer your questions.

For a full list of Q&A forums.
If this issue isn't a doc bug, doc enhancement, or doc related question and is more Teams GraphAPI focused. I'll go ahead and close out this issue at the end of the day.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.


Mark todo as expired feature

What's the requirement for this feature?
Is this a feature where user sends a command to mark as expired or is this marked by the system when it goes expired?
Does expired means that the current time is past that deadline?

Hey @dranzd , do you want to take over the task? Yes, the system should mark a todo as expired when time has passed the deadline set by the user.
Similar to #73 a script is needed with a worker checking all open todos with a deadline and if one deadline has gone past a MarkTodoAsExpired command should be dispatched by the worker.
Let me know if you need more information.

@codeliner yes I want to try it out.  I've already started that and most of the questions above are just to confirm that I understand what the feature does.

cool, looking forward to your PR

PR merged #76 . Works like a charm.


Update rustc to nightly-2022-08-16

Description of changes:
Updates rustc to the latest version.
Resolved issues:
Resolves #1475
Call-outs:
Testing:

How is this change tested? Existing tests

Is this a refactor change? No

Checklist

[ ] Each commit message has a non-empty body, explaining why the change was made
[ ] Methods or procedures are documented
[ ] Regression or unit tests are included, or existing tests cover the modified code
[ ] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Did you just get the easiest toolchain update ever?

Did you just get the easiest toolchain update ever?

DON'T JINX IT


subscribed me to channels.buddycloud.org

Kev complained that when he installed the server it subscribed him to channels.buddycloud.org.
This shouldn't happen so I'm logging a bug as a check that this isn't hardcoded.

Does he run his own channel server?

He was installing buddycloud-server, noticed that channels.buddycloud.org was hardcoded. uninstalled. For details I'd ask him directly.

I guess removing the discovery fallback as discussed closes that: https://github.com/buddycloud/buddycloud-webclient/commit/8617ea6c74daace03acb8693b3fd4218d1518742


Trivial keyboard language

Language described in natural language:
Press Shift + H
Press e
Press l
Press l
Press o
Press Space
Press Shift + W
Press o
Press r
Press l
Press d

line 3 it's "print e" :)

line 3 it's "print e" :)
yes sure i am german sry

@Richienb would this be spoken on programming?

I think because you as a human have to do every step and not the computer this is probably not considered as programming. Therefore I will close this issue

@exellian yeah


Initial TravisCI setup

Very basic linting and syntax tests, but it's a start. There's a high chance the auto-deploy thing doesn't work in the first try.

Fixes #5

Sorry, to impatient :( plus, we have automated checks now.


feat: prepare ruff-action@v2

Hi there!
I submitted a pull request before chartboost/ruff-action was archived, adding these changes some time ago. I updated everything, thinking you might want to consider this update.
Major changes

Added support for ruff latest version.
Added support for isolated mode for running ruff with default rulesets.
Added support for setting up ruff with project-specific specifications or rulesets from a pyproject.toml or ruff.toml files.

Credits
Special thanks to the following repositories for their influence:

Black - https://github.com/psf/black/
Cache - https://github.com/actions/cache/

I used your PR as a reference to add support for the latest version and reading a version from pyproject.toml.
Thank you!
I did not add the following changes:

config_path: Can already be done via the args input
isolated: Can already be done via the args input


[Event Request] Codeunit 90 - Function CheckAndUpdate: OnCheckAndUpdateOnAfterCalcInvoice

Hello, would it be possible to get an event OnCheckAndUpdateOnAfterCalcInvoice (PurchHeader as var) in Codeunit 90 Function CheckAndUpdate, like this:
       CheckICDocumentDuplicatePosting(PurchHeader);

        if Invoice then
            Invoice := CalcInvoice(PurchHeader);

        if Invoice then
            CopyAndCheckItemCharge(PurchHeader);
        **OnCheckAndUpdateOnAfterCalcInvoice(PurchHeader);** //New

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


support custom function for actions

Since we have the benefit of functors for action objects, it would be great to allow custom function support, particularly for debugging, logging and profiling.

I'm going to close this PR, but leave issue #173 open. See my comments in that issue as to why.


Bug Secrets not working in deployment

Describe the bug
Secret references work in dev mode but in versions 4.7.1 and 4.8.0 secret references only return the placeholder name.
Steps to reproduce the behavior

Create simple route:

route:
id: route-c743
nodePrefixId: route-8fa
from:
id: from-490e
uri: timer
parameters:
timerName: testing
steps:
- log:
id: log-1c41
message: "{{secret:karavan/karavan.git.branch}}"

In dev mode the console prints the contents of the secret.
In Deployment the console prints only karavan/karavan.git.branch text.

Variant
Web Application
Container Management (if applicable)
Kubernetes
Operating System (if applicable)
None
Version
4.8.0
Relevant log output
No response

I changed the Apache Camel version in build.sh to 4.7.0 (jbang -Dcamel.jbang.version=4.7.0) and the problem was fixed. Is this more a bug in Apache Camel?

try with camel 4.8.2


OwinFeature collection throws NotSupported exception as the featurecolle...

...ction is immutable
Addresses: https://github.com/aspnet/HttpAbstractions/issues/207
@borgdylan @Tratcher

Will update the PR with a test.

:shipit:

Will test as soon as it is shipped

Added a test to cover the OwinFeatureCollection scenario.

/CC @davidfowl

@davidfowl signed off on this while at my office. Merging the change in.


Disable content sniffing on PlainTextBytes

Disable the browser's function to "sniff" for the content-type on the provided plain text, this will prevent the attacks when there will be a usage of user-controlled data being sent, which could be malicious.

Codecov Report

Merging #18359 (14b68d0) into main (6ad7a53) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #18359      +/-   ##
==========================================
- Coverage   46.02%   46.01%   -0.02%
==========================================
  Files         838      838
  Lines       92427    92428       +1
==========================================
- Hits        42541    42531      -10
- Misses      43117    43121       +4
- Partials     6769     6776       +7

Impacted Files
Coverage Δ

modules/context/context.go
65.00% <100.00%> (+0.08%)
:arrow_up:

modules/git/utils.go
68.05% <0.00%> (-2.78%)
:arrow_down:

modules/git/repo_base_nogogit.go
73.17% <0.00%> (-2.44%)
:arrow_down:

modules/log/file.go
73.60% <0.00%> (-1.61%)
:arrow_down:

modules/process/manager.go
81.39% <0.00%> (-1.56%)
:arrow_down:

models/issue_comment.go
54.30% <0.00%> (-0.85%)
:arrow_down:

models/repo_list.go
76.62% <0.00%> (-0.60%)
:arrow_down:

modules/queue/queue_bytefifo.go
59.88% <0.00%> (+0.59%)
:arrow_up:

modules/queue/workerpool.go
51.14% <0.00%> (+1.14%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ad7a53...14b68d0. Read the comment docs.

Please send backport :)

Please send backport :)

#18365


ProjectMembership?access-policy:missing=true returning ProjectMembership resources with access policies set

Context
One of our customers wants to find all ProjectMembership resources with no access policies set for an internal audit. They are using the Medplum Hosted server.
The search seems to work fine for the most part, but there are a group of ProjectMembership resources that are returned, despite having a value populated for ProjectMembership.access.policy.
This happened even after we ran a re-index on Medplum Prod.
Repro
(Contact me offline for projectId)

On MedplumApp, log into project
Navigate to https://app.medplum.com/ProjectMembership?_count=200&_fields=id,_lastUpdated,profile,accessPolicy,access&_lastUpdated=gt2023-05-25T20%3A00%3A00Z&_lastUpdated=lt2023-07-04&_offset=0&_sort=-_lastUpdated&access-policy:missing=true&project=Project/:projectid
-74 ProjectMembership resources are returned, all of which have a value populated for their ProjectMembership.access.policy field

Confirmed, investigating

@rahul1  Update:  The :missing=true filter works correctly, it was our reindexing step that failed.  It apparently errored out in the middle, and did not fully reindex all ProjectMembership resources.
For any given ProjectMembership resource, you can force reindex using POST /fhir/R4/ProjectMembership/{id}/$reindex, and then it will not appear in search results.
Investigation ongoing.

Fixed with https://github.com/medplum/medplum/issues/2638


Build failure: signature-polymorphic method called without --min-sdk-version >= 26

I am getting a strange bug when building, even with a fresh project. The error only occurs when groovy is being compiled. Here is the module's build.gradle:
buildscript {
	repositories {
		jcenter()
	}

	dependencies {
		classpath 'org.codehaus.groovy:groovy-android-gradle-plugin:1.1.0'
	}
}

apply plugin: 'com.android.application'
apply plugin: 'groovyx.android'

androidGroovy {
	options {
		configure(groovyOptions) {
			javaAnnotationProcessing = true
		}
	}
}

android {
	compileSdkVersion 25
	buildToolsVersion "25.0.2"
	defaultConfig {
		applicationId "io.nwh.myapplication"
		minSdkVersion 15
		targetSdkVersion 25
		versionCode 1
		versionName "1.0"
		testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
	}
	buildTypes {
		release {
			minifyEnabled false
			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
		}
	}
}

dependencies {
	compile fileTree(dir: 'libs', include: ['*.jar'])
	androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
		exclude group: 'com.android.support', module: 'support-annotations'
	})
	compile 'com.android.support:appcompat-v7:25.3.1'
	testCompile 'junit:junit:4.12'
	compile 'com.android.support.constraint:constraint-layout:1.0.2'
	compile 'org.codehaus.groovy:groovy:2.4.7:grooid'
}

And here is the project's build.gralde:

buildscript {
	repositories {
		jcenter()
	}
	dependencies {
		classpath 'com.android.tools.build:gradle:2.4.0-alpha5'
	}
}

allprojects {
	repositories {
		jcenter()
	}
}

task clean(type: Delete) {
	delete rootProject.buildDir
}

I am using Gradle version 3.4.1. Here is the output from building:
$ gradle installDebug
:app:preBuild UP-TO-DATE
:app:resolveDebugDependencies
:app:preDebugBuild
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:handleDebugMicroApk
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:compileDebugGroovyWithGroovyc
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:transformClassesWithDexBuilderForDebug
warning: Ignoring InnerClasses attribute for an anonymous inner class
                                                                      (groovyjarjarantlr.build.ANTLR$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
Unable to pre-dex 'C:\Users\Nathan\.gradle\caches\modules-2\files-2.1\org.codehaus.groovy\groovy\2.4.7\b4b263e2106bac49c2eb21f6737f9b6e45e24a4a\groovy-2.4.7-grooid.jar' to 'C:\Users\Nathan\Documents\Flags2\app\build\intermediates\transforms\dexBuilder\debug\jars\40000\10\groovy-2.4.7-grooid_5a2004fbc80cc406e9adac10d01fb1c4aeb1d6e6.jar'
Dex: Error converting bytecode to dex:WithDexBuilderForDebug
Cause: signature-polymorphic method called without --min-sdk-version >= 26
    UNEXPECTED TOP-LEVEL EXCEPTION:
signature-polymorphic method called without --min-sdk-version >= 26

java.lang.RuntimeException: com.android.dx.cf.code.SimException: signature-polymorphic method called without --min-sdk-version >= 26
        at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:183)
        at com.android.builder.dexing.DexArchiveBuilder.processOutputs(DexArchiveBuilder.java:95)
        at com.android.builder.dexing.DexArchiveBuilder.convert(DexArchiveBuilder.java:78)
        at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransformCallable.lambda$cacheMissAction$0(DexArchiveBuilderTransformCallable.java:240)
        at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransformCallable$$Lambda$1022/1324664455.run(Unknown Source)
        at com.android.builder.utils.FileCache.lambda$createFile$1(FileCache.java:260)
        at com.android.builder.utils.FileCache$$Lambda$1033/1397556199.call(Unknown Source)
        at com.android.builder.utils.FileCache.lambda$null$5(FileCache.java:443)
        at com.android.builder.utils.FileCache$$Lambda$1089/840087435.accept(Unknown Source)
        at com.android.builder.utils.SynchronizedFile.doActionWithMultiProcessLocking(SynchronizedFile.java:265)
        at com.android.builder.utils.SynchronizedFile.write(SynchronizedFile.java:232)
        at com.android.builder.utils.FileCache.lambda$queryCacheEntry$6(FileCache.java:415)
        at com.android.builder.utils.FileCache$$Lambda$1037/1858463036.accept(Unknown Source)
        at com.android.builder.utils.SynchronizedFile.doActionWithMultiProcessLocking(SynchronizedFile.java:265)
        at com.android.builder.utils.SynchronizedFile.read(SynchronizedFile.java:215)
        at com.android.builder.utils.FileCache.queryCacheEntry(FileCache.java:391)
        at com.android.builder.utils.FileCache.createFile(FileCache.java:273)
        at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransformCallable.getFromCacheAndCreateIfMissing(DexArchiveBuilderTransformCallable.java:187)
        at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransformCallable.call(DexArchiveBuilderTransformCallable.java:149)
        at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransformCallable.call(DexArchiveBuilderTransformCallable.java:53)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.dx.cf.code.SimException: signature-polymorphic method called without --min-sdk-version >= 26
        at com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.java:684)
        at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:764)
        at com.android.dx.cf.code.Simulator.simulate(Simulator.java:101)
        at com.android.dx.cf.code.Ropper.processBlock(Ropper.java:790)
        at com.android.dx.cf.code.Ropper.doit(Ropper.java:745)
        at com.android.dx.cf.code.Ropper.convert(Ropper.java:350)
        at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:285)
        at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:141)
        at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:95)
        at com.android.builder.dexing.DexArchiveBuilderCallable.translateClass(DexArchiveBuilderCallable.java:87)
        at com.android.builder.dexing.DexArchiveBuilderCallable.call(DexArchiveBuilderCallable.java:70)
        at com.android.builder.dexing.DexArchiveBuilderCallable.call(DexArchiveBuilderCallable.java:40)
        ... 6 more
:app:transformClassesWithDexBuilderForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: com.android.builder.dexing.DexArchiveBuilder$DexBuilderException: Unable to convert input to dex archive.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.949 secs

I also tried copying the sample app and got the same error.

This appears to be a change to an internal class in gradle that this plugin depends on. The change is in 3.5 and 3.4.1 still continues to work as a current work around. I will be updating tests and the source to NO longer depend on the internal gradle classes as this is the second time its caused the plugin to break.

Turns out the breaking change was from Gradle 3.2 to 3.3 where an interface had a method added to it.
I updated the tests to include 3.5 and before fixing this change they were still passing. So it looks like there is still something else going on in your issues.
Once #146 gets merged in you can try out the 1.2.0-SNAPSHOT and see if it resolves your issue.

Great, thanks for the quick reply. I am indeed using Gradle 3.4.1 so it's a strange issue. I'll wait for the merge

@AndrewReitz I see you merged the change, but I don't see a 1.2.0-SNAPSHOT on bintray. I'm still getting errors. I tried switching around my Gradle versions but to no avail. Are the following versions correct?
com.android.tools.build:gradle:2.4.0-alpha5
org.codehaus.groovy:groovy-android-gradle-plugin:1.1.0
buildToolsVersion "25.0.2"

I haven't tested anything using any of the alpha builds since I'm only one person and google seems to change stuff so much. An easy way to test newer version is to just add another row to the data table in the full test spec and run ./gradlew fullTest
For the snapshots you need to use the jcenter's snapshot repo instead of the regular jcenter repo. Directions to add this are on in the README.

how did it solved?

@yangxinQA Hey, sorry for the late reply, I am just getting back at my app. I solved it for one of my classes by removing @CompileStatic. Here are my versions:
com.android.tools.build:gradle:2.3.2
org.codehaus.groovy:groovy-android-gradle-plugin:1.1.0
buildToolsVersion "25.0.2"
compileSdkVersion 25

If that doesn't work for you, I'm afraid I can't help :(.

I have just run into this when trying to use android-spock:2.0.0 with the Android Studio 3.0 preview and com.android.tools.build:gradle:3.0.0-alpha3 that you need to compile Java8. I guess this might be related? I was basically just grabbing the preview from here, configured an API level 25 project as described here, and tried to get the basic sample to run.

I was experiencing the same issue and i can confirm that using org.codehaus.groovy:groovy-android-gradle-plugin:1.3.0-SNAPSHOT resolves it

@nite2 The only difference between 1.2.0 and 1.3.0-SNAPSHOT is the version number so I don't think that's what solved the issue. Maybe an update to the gradle android plugin fixed the issue?

@AndrewReitz I am not saying that this issue wasn't resolved in 1.2.0-SNAPSHOT as you have suggested in previous comment, what i was communicating is that i was having the issue when using version 1.2.0 (not 1.2.0-SNAPSHOT), then upgraded to 1.3.0-SNAPSHOT and the problem was gone. Was the fix #146 included in the "main" 1.2.0 release?

Yeah, #146 was included. As of right now, the only difference between 1.2.0 and 1.3.0-SNAPSHOT is the version number https://github.com/groovy/groovy-android-gradle-plugin/commits/master.

What about new gradle (4.1) ?
I've the same issue

I've done a little bit of research and this seems to be caused by a new check in Dalvik, see https://android.googlesource.com/platform/dalvik/+/cdef1ee858fde291205f3da685b2720227d2d42f/dx/src/com/android/dx/cf/code/Simulator.java
line 684. When running the gradle build with --stacktrace, you can see that the groovy class org/codehaus/groovy/vmplugin/v7/IndyInterface.java violates this check.
Indy here stands for invokeDynamic - on Android, this compiler feature is only supported with minSDK >= 26.
It seems to me that even though grooid (the groovy build for Android) is compiled with indy switched off, the indy-related classes still end up in the groovy artifact, thus making the build fail.

I've just gotten rid of the problem by patching the grooid library (deleted packages "indy" and "vmplugin/v7" and made sure that Option CompilerConfiguration.INVOKEDYNAMIC was false).
Quick & dirty but seems to work for now.. Should probably file an issue in the groovy project.

@b-demuth any chance you can host the patched version somewhere or show us how to do it?

Created a ticket: https://issues.apache.org/jira/browse/GROOVY-8366
and working on a possible solution.

I'm at the droidcon right now, but I'll see if I can host the patched version next week. I literally just deleted said packages and the line "if (Boolean.TRUE.equals(optOptions.get(CompilerConfiguration.INVOKEDYNAMIC))) invokedynamic=true;" in class "WriterController" in the 2_4_X branch of groovy (which was easier for me than setting that parameter in the optOptions :)). Also, I switched off some of the documentation related parts of the build process and jar signing, so my patched version is UNSIGNED.
This really is a dirty hack, but I didn't have time to get familiar with the groovy build scripts in order to do this properly. I guess for someone who's already acquainted with the build process, it should be quick and easy to do.

Cool. I used JarJar to remove the packages right now, haven't tested it. If it works I can submit the PR to Groovy project. Also, going to submit a ticket with build tools team.
SideNote: Were you having issues with the javadocs part of the build process?

I think another workaround is to use proguard to remove those packages as well.

Looks like the tools team will not be fixing it. The suggested fix is to "minify" the code (Progaurd)
out the method calls that use invoke dynamic. https://issuetracker.google.com/issues/37567710
The good news is that we are getting invoke dynamic on 26+

Looks like the jarjar rule of
zap org.codehaus.groovy.vmplugin.v7.IndyInterface
takes care of this. Submitting a PR to groovy soon.

PR Here: https://github.com/apache/groovy/pull/631

I saw update to AGP to 3.0.0 and I try it.
It works when I use it in groovy-android-sample-app or in simple app with dependencies only on groovy but when I try on a more complex app with multiples dependencies like Retrofit or Dagger I have an error :
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. Job failed, see logs for details
When I set minifyEnabled to false come back to initial error :
signature-polymorphic method called without --min-sdk-version >= 26
Is it mandatory to set minifyEnabled to true to make groovy plugin works ?

Here's how you can make a groovy jar without the invoke dynamic class included for a workaround until the issue is resolved. https://gist.github.com/AndrewReitz/3e1145d66a8ef3f7b578d8604ecd671c

I've been trying this workaround and the build succeeds. Unfortunately, the application crashes at runtime when calling method evaluate on a GroovyShell instance:

Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
        General error during class generation: can't load this type of class file
java.lang.UnsupportedOperationException: can't load this type of class file
at java.lang.ClassLoader.defineClass(ClassLoader.java:300)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:93)
at groovy.lang.GroovyClassLoader.access$400(GroovyClassLoader.java:62)
at groovy.lang.GroovyClassLoader$ClassCollector.createClass(GroovyClassLoader.java:500)

Any guess?

@vincentganneau I don't think that's related to this issue. The class files created by groovy are for the JVM, when you load them on an Android device they need to be converted to Dalvik bytecode. Here's an example of how this can be done https://github.com/melix/grooidshell-example. Although I haven't been able to get this to work on newer version of Android.

add
compileOptions {         sourceCompatibility JavaVersion.VERSION_1_8         targetCompatibility JavaVersion.VERSION_1_8     }
to your module build.gradle


Extension not working on HTML/CSS

Even though HTML/CSS Support is listed, for some reason the colors arent showing for me. Only in Languages like C, C# and so on
I only checked these so far so idk if the issue also persists on other languages

Hello it is working fine for me :

html :

css :

Are you using the proper language identifier ?

However I'm interested in more details if you still are not able to get it to work

Thanks for replying! I just checked and turns out, HTML is actually working just fine. I thought you needed to use /* and not <!--. However, Functions like // * and // ^ still arent working, even though im using the proper language identifier.

CSS on the otherhand was still not working for me. But turns out, that was because I had PostCSS as the language identifier, not the CSS from VSCode itself! But just like HTML, // * and // ^ still arent working. But could it be because VSCode sees it as an error?

By the way, a couple questions: Do I need to have both the OG colorful comments and your colorful comments installed or can I uninstall the OG? And also, I think you should update the extension description too so people know what prefix to use in each programming language, so the ? and ! prefixes work

I suggest you to uninstall the OG one, it is from the same code base but ahead in terms of new code for new features and languages.
If both are installed, they will try to fight each other

// is not a valid html comment syntax, thus it won't work on html language id

// is not a valid CSS comment syntax either, it works in certain css-preprocessors, but not vanilla CSS

I think you should update the extension description too so people know what prefix to use in each programming language

To be honest, I don't think it's the package role to teach people what is the language's syntax
this package provides a way to add colors in comments
it therefore requires prior knowledge on the used language syntax, which can be learned in these languages docs or tutorials, in orde rto know how to make a proper comment in this language
I hope this helped you !


rem2pi

Is there a way around this (in Julia 1.0.2):
using Measurements
julia> rem2pi(7pi/(4 ± 0.2), RoundDown)
ERROR: MethodError: no method matching rem2pi(::Measurement{Float64}, ::RoundingMode{:Down})
The reason I encountered this as I am trying to use Rotations.jl with uncertainty provided by Measurements.jl
Could extend the function Base.rem2pi() for special types I suppose.

Thank you so much for the report!  There was already a method for mod2pi but not for rem2pi.

Is there a way around this (in Julia 1.0.2):

Actually yes!  Right now, without waiting for #29 to be merged,  you can use the @uncertain macro which computes numerically the derivatives:
julia> @uncertain (x -> rem2pi(x, RoundDown))(7pi/(4 ± 0.2))
5.497787143782138 ± 0.2748893571875781

Note that this is a bit tricky because the @uncertain macro works on a function call whose arguments are all Measurement objects or objects that can be converted to Measurement, but you can work around this limitation by using anonymous functions, see https://juliaphysics.github.io/Measurements.jl/stable/examples.html#@uncertain-Macro-1
After #29 you'll get
julia> rem2pi(7pi/(4 ± 0.2), RoundDown)
5.497787143782138 ± 0.2748893571891069

so @uncertain is already pretty accurate


Speed up integer and float printing

Fixes #84.

So if I understand your implementation correctly, the only difference is that the original formatting implementation wrote to a temp buffer and then wrote to the target with an optional padding, while your implementation skips the padding and writes directly. Does llvm optimize the buffer away or what's the reason itoa is as fast as the direct impl you wrote in the issue?
r=me if there's no reason to rewrite itoa to directly write to the target.

I also wonder if it were possible to fix the original impl in Rust to be as fast as your version by adding a conditional check for whether going through the padding function is necessary.

Does llvm optimize the buffer away or could it be optimized even more by writing directly?

It cannot write directly because it writes backwards, least significant digit first.

So if I understand your implementation correctly, the only difference is that the original formatting implementation wrote to a temp buffer and then wrote to the target with an optional padding, while your implementation skips the padding and writes directly.

They both write to a (stack-allocated) temp buffer. The only difference is that theirs does all this stuff and mine doesn't.

I also wonder if it were possible to fix the original impl in Rust to be as fast as your version by adding a conditional check for whether going through the padding function is necessary.

I filed https://github.com/dtolnay/itoa/issues/1 to follow up.

I added a similar library for printing floats. Note that the new library adds ".0" onto floats that are whole numbers, so we get "3.0" instead of "3". Let me know if you find this disagreeable, although RapidJSON and Jackson both write "3.0".

Also the new library writes 1.7976931348623157e308 instead of<PHONE_NUMBER>86231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 which seems like a good thing.

Note that the new library adds ".0" onto floats that are whole numbers, so we get "3.0" instead of "3". Let me know if you find this disagreeable, although RapidJSON and Jackson both write "3.0".

I have no particular opinion on that. We might be breaking people's unit tests, but it's perfectly valid json to add arbitrary zeros.

which seems like a good thing.

yes, definitely
lgtm, but I think we should hold off with such a user-visible change and do it together with 0.8


change home of www-data to /app/data/www-data

to avoid conflicts between user and server files
the code-server always starts in the $HOME of the user (currently /app/data). But there are living a lot of files already that are relevant to the server but not relevant for the code that is developed with this code-server. This is why I would propose to choose a different HOME for the www-data user.

This is a good suggestion but I think it's better to have the home for vscode be in a new folder instead of changing the backend here - there is more to changing www-data than home dirs.


Develop the server-side API

In order to fetch data from the server, an API needs to be developed. The routes and the scheme of the API is TBD.

Closing this issue as it is treated in another repository


Inconsistent Output Generation Despite Consistent Log Probabilities

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
[x] I carefully followed the README.md.
[x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
[x] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior
When running a model with top_p = 0, temperature = 0, and top_k = 1, I expect deterministic output where the model consistently selects the token with the highest probability at each step, resulting in the same output for the same input.
Current Behavior
The model is consistently alternating between two different outputs for the same input.
Failure Information (for bugs)
This issue appears to be a bug as the model should always select the token with the highest probability, yet it alternates between two different outputs consistently.
Steps to Reproduce

Load the "WestLake-7B-v2-laser-truthy-dpo.q5_k_m.gguf" model with the following parameters:

last_n_tokens_size = 128
top_p = 0
temperature = 0
top_k = 1
repeat_penalty = 1.07

Run the model with the provided input multiple times:

<|im_start|>system
You are an unbiased, uncensored, helpful assistant.
<|im_end|>
<|im_start|>user
What's the nearest national park to you?
<|im_end|>
<|im_start|>assistant

Observe the alternating outputs:
Output 1: "As an artificial intelligence, I don't have a physical location. However,"
Output 2: "As an AI, I don't have a physical location. National parks exist"

Failure Logs
The top_logprobs remain consistent regardless of whether the chosen token is "artificial" or "AI":
artificial
{'id': 'cmpl-d01dee88-d7f3-40f5-8943-0073dde3f4cb', 'object': 'text_completion', 'created':<PHONE_NUMBER>, 'model': 'models/WestLake-7B-v2-laser-truthy-dpo.q5_k_m.gguf', 'choices': [{'text': ' artificial', 'index': 0, 'logprobs': {'tokens': [' artificial'], 'text_offset': [178], 'token_logprobs': [-0.24286004900932312], 'top_logprobs': [{' artificial': -0.24286004900932312, ' AI': -1.5411579608917236, ' automated': -7.431096076965332}]}, 'finish_reason': None}]}
AI
{'id': 'cmpl-eb264c4e-410a-4b1c-9fee-190b446e673c', 'object': 'text_completion', 'created':<PHONE_NUMBER>, 'model': 'models/WestLake-7B-v2-laser-truthy-dpo.q5_k_m.gguf', 'choices': [{'text': ' AI', 'index': 0, 'logprobs': {'tokens': [' AI'], 'text_offset': [178], 'token_logprobs': [-1.5411579608917236], 'top_logprobs': [{' artificial': -0.24286004900932312, ' AI': -1.5411579608917236, ' automated': -7.431096076965332}]}, 'finish_reason': None}]}

@Spider-netizen temperature=0 should be deterministic, I can't reproduce the error, which backend are you using?

Hey @abetlen,
Thank you for the response. Appreciate you trying to help.
I'm running it on Intel macOS. I used the following for installation:
pip install llama-cpp-python  --upgrade --force-reinstall --no-cache-dir
The model was downloaded from here.
Do you have any idea what's going on?
Thank you for this great project.


⚠ Bofrost.nl has degraded performance

In ed39e67, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1331 ms

Resolved: Bofrost.nl performance has improved in 7f952d1.


Merge license from CodePlex site

Before he transferred the ownership, I asked Luan to change the license of NuGet Package Explorer to MIT.  He did, and added a LICENSE file to the repo on CodePlex.  We should merge that change in here.

Agree,  that's the only missing commit right now.

@dsplaisted
it this commit? https://github.com/dsplaisted/NuGetPackageExplorer/commit/cd5c14e8b7c7f8a553c5928023cfebb0ad93e387

Why is it [year] [fullname]?

@dsplaisted can you confirm this? Then I will cherry pick it.

@dsplaisted
It's this commit? dsplaisted/NuGetPackageExplorer@cd5c14e

@304NotModified Yes, that's the commit.  I'd prefer a merge to a cherry-pick for this, since I think that makes it more clear that the original author of the commit was Luan.
I pointed Luan to the MIT License and I guess he just copied it directly, without replacing the [year] [fullname].  We can change that in a subsequent commit.  For name we could use "NuGet Package Explorer contributors".


Add Show/Hide Execution Statistics

Use case
Hibernate provides a property to show/hide the SQL execution, users can measure the performance when running the query.
Describe the solution you'd like

Hibernate Statistics
A configurable option to show/hide it

Versions

Komapper: 5.0.0
Kotlin: 2.10
JVM: 21
JDBC Driver or R2DBC Driver: both
Database: All
OS: Windows 10 Pro

Thank you for the feedback.
This feature could be a good addition to Komapper. By the way, which specific metrics would you like to reference? I’d like to prioritize those and consider how best to implement them.

The SQL execution time is the primary metric data I think.

Implemented in #1473.
Feel free to leave a comment if you have any feedback!


Adding numeralJs library seems to affect for loop in IE

Hi when including this library I am seeing javascript for loops affected in IE 8 and below.
example
for (var i in loopableObject)
{
console.log("index: " + i + " is >> " + loopableObject[i]);
}

We've traced exactly the same problem as @davemiranda reports.
Our codebase includes framework code (code we don't controle) that iterates an Array and breaks because of the prototype change.   Furthermore, lack of support for defineProperty in IE8 means we cannot make it un-iterable.
I would like to propose using a function-style reduce a'la underscore.  There are only 5 usages of .reduce() in numeralJS, so seems a modest change.
While I understand this .reduce() is defensible as a polyfill since .reduce() is eventually supported, because of the iteration problem, some of us are unfortunately stuck and we'd very much like to use this lib.
I'll happily submit a pull if this is likely to get taken-up.


F841 reported when locals() is called in current scope

I found this while comparing some of pylint's errors to flake8/ruff's - pyflakes ignores unused variables if locals() is used in the current scope:
def locals_example_defined_before():
    value = 42  # no message on flake8 but ruff reports it
    return locals()

Looking at pyflakes's unit tests, they also have a test case checking that the message still gets reported if locals() was called in a different scope:
def a():
    locals()
    def a():
        b = 1
        return

Thanks, this is a known limitation, needs to be fixed!


tf.Print related wired bug

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 (latest)
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): r1.9 (v1.9.0-0-g25c197e023)
Python version: Python 3.6.5 |Anaconda, Inc.| [MSC v.1900 64 bit (AMD64)] on win32
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: CUDA 9.0, cuDNN 64_7
GPU model and memory: GTX 1060-6GB(Laptop)
Exact command to reproduce: N/A

Describe the problem
While developing a prime number generator using tensorflow-gpu, I came across a wired bug. Given the source code, if you use tf.Print result is correct and run-time is less than without using tf.Print.
Source code / logs
# check first 'n' numbers for primity using tensorflow

import warnings
with warnings.catch_warnings():
    warnings.filterwarnings("ignore",category=FutureWarning)
    import h5py
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
import numpy as np
import time

def prime_tf_graf(max_count,dump):
	ttyp = tf.int32
	data = tf.range(2, max_count, dtype=ttyp)
	if dump:
		data = tf.Print(data, [data], 'Data Loaded!')
	X, Y = tf.meshgrid(data, data);
	temp = Y%X
	mask = tf.cast(tf.equal(temp, Y), dtype=ttyp)
	temp = temp - Y * mask
	temp = tf.cast(tf.not_equal(temp, 0), dtype=ttyp)
	sumr = tf.reduce_sum(temp, axis=1)
	nums = data - 2
	rato = tf.cast(sumr/nums, ttyp)
	indx =  tf.cast(tf.not_equal(rato, 0), ttyp)
	shap =  tf.reshape(tf.where(indx), [-1]) + 2
	return shap

def prime_tf(max_count,dump):
	with tf.device('/gpu:0'):
		graf = prime_tf_graf(max_count, dump)
	sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True))
	sess.run(tf.global_variables_initializer())
	prim = sess.run(graf)
	return prim

def bench(task):
	now = time.time()
	res = task()
	return res, time.time() - now

p, t = bench(lambda: prime_tf(10000, True))
print('With Dump: found %d primes in %f time'%(len(p), t))
p, t = bench(lambda: prime_tf(10000, False))
print('Without Dump: found %d primes in %f time'%(len(p), t))

and here is output on my system:
PS E:\Research\TFLearn> python .\bug.py
Data Loaded![2 3 4...]
With Dump: found 1229 primes in 12.599950 time
Without Dump: found 1085 primes in 25.162465 time

What happens if you switch ttyp from tf.int32 to tf.int64?  I.e. don't try to use int32 on GPU.

Still similar response with performance is worse this time:
Data Loaded![2 3 4...]
With Dump: found 1229 primes in 21.802515 time
Without Dump: found 1085 primes in 109.847477 time

I consistently get a div-by-0 error at:
rato = tf.cast(sumr/nums, ttyp)

That may be possible but on my system, it doesn't give any error!
Using this instead: rato = tf.cast(tf.equal(sumr, nums), ttyp) gives correct result but performance is still worse without tf.Print:
Data Loaded![2 3 4...]
With Dump: found 1229 primes in 13.345328 time
Without Dump: found 1229 primes in 22.766805 time

I think it may be because tf.Print somehow forces tensor to load quickly but that's just my assumption.

Nagging Assignees @poxvoculi, @zheng-xq: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @poxvoculi, @zheng-xq: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @poxvoculi, @zheng-xq: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@aaroey Can you take a look at this.

Nagging Assignees @poxvoculi, @aaroey: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @poxvoculi, @aaroey: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @poxvoculi, @aaroey: It has been 59 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @poxvoculi, @aaroey: It has been 74 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Hi @NaxAlpha ! I am getting the same value now in 2.8 version . Attaching gist for reference. Thanks!


cmake: Only add -Wall and -Werror for our code.

Fixes #127.

Poke? Should I merge this or is someone going to refine it? Assuming @mithro is busy, propose @litghost refines it if he'd like the better target, otherwise I'd like to merge it in as its better than what we have now.

If @litghost has an alternative, merge that and close this. Otherwise, lets merge this and get @litghost to do a follow up?


context: Align object data to machine words

Using BoxFort with AddressSanitizer enabled caused alignment errors as structures are no longer aligned to proper boundaries. This is especially bad for loading pointers.

No problem. Thanks for the merge. :)


Problem with static content !

Hello 👋 !
I’m using your template and I have a problem : I don’t understand how to use my assets. When I write this in my markdown file : ![Test](thenameofthefile.jpg), Netlify cannot build my website whereas you can write ![cat](cat.jpeg) and you get you image in the page.
Thanks !

To load images, they have to be located in the content/assets folder. You can change this directory in the MarkdownImage component, inside post/[slug].js file.


Feature: Filters

Adds really simple filtering implementation.
This reuses the existing sensitive feature to blur statuses which match filters with warn action, and hides statuses which match filters with hide action.

Thanks! Few quick notes:

This won't work for multiple accounts. I'm still figuring out what's the best way to do this, like maybe namespaced keys in localStorage, which means I need to standardise something on my side first.
For Home timeline, there's a websocket connection that listens to status.update event which updates the status (if edited). I could think of a super-rare weird use-case when a status contains a filter word, gets filtered out, but later edited by the author to not contain it, so it shouldn't be filtered anymore 😂😂

Side notes:

I'm still figuring out the reasons why and how people use filters. And how it'll affect usage in the long term.
I personally think that there could be a better way to do this (this'll take time).

Thank you for the comments.
This forced me to use a better solution.
Instead, I am using the filtered property on a status. This works across multiple accounts since it acts on the individual status instead of depending on a pre-fetched list of filters.
It also resolves the issue with status.update streamed events.

It seems that some commits are missing, I only see 1 file changed here.

Anyway, to set expectations, I won't be merging this or implement this yet, until I get the full picture. This will stay as a "wait-and-see" feature request.
Few reasons:

I had a rough look at the documentation, turns out it's quite complicated. One of the things that I think would be troublesome is the filters' expires_in key.
I looked at how it's implemented in Mastodon's and Pinafore's source code and noticed a few more edge cases.
I'm quite keen in keeping the app minimalistic, so adding features require a lot of careful planning because it'll end up a lot of maintenance work for me.
I personally don't think (manual) filtering is the right solution. I know that there are folks who wants complete control over their timeline (custom algo, custom filtering, regex?, hashtag following) but these features are way too technical. For non-tech folks, this is too much manual work and complicated.
In cases of harassment, I do think mute/block/report features would be higher priority than this - possibly smaller scope too (probably via a menu in Detail view and Account sheet)

Currently a partial implementation on production.


Patch 1 Update the content about the official bucket in the readme

Nightly, alpha, etc. are now available in the versions bucket
The jetbrains bucket can be added via scoop bucket add jetbrains https://github.com/JetBrains/scoop-utils

Thank you!


Bump PHPs

@UserNotFound

@krallin  it looks like there were more recent releases on the day you made the PR : 7.2.8 , 7.1.20, 7.0.31

Good catch; thanks @UserNotFound


Fix documentation & repository links on crates.io

The documentation link at https://crates.io/crates/preferences raises 404 at the moment, while the repository one leads to docs - this is somewhat confusing :)

I'm so bad at maintaining all my URLs, lol!! Thanks :)


[+WATCH_FULLVIDEOs!] James Charles Viral Leaked Video On Social Media X Twitter [ZNOW13K]

13 sec ago James Charles Leaked Video Viral On Social Media. [+WATCH_FULLVIDEOs!] James Charles Viral Leaked Video On Social Media X Twitter [ZNOW13K]

James Charles’s latest video has gone viral, igniting conversations across numerous social media platforms. This rising digital creator, recognized for her engaging content—particularly her recent Spiderman-themed clip—has experienced a surge of interest from fans eager to find the full version. Many are flocking to platforms like Instagram, X (formerly Twitter), and Discord to check out her latest creations.
As the buzz intensifies, fans are actively sharing their reactions online, highlighting the vital role social media plays in elevating creators like James Charles. With her distinctive style and creative approach, she has quickly made a notable impact in the digital landscape, leaving many curious about her upcoming projects. FG

.
.
.

vf
.
.

.

.
.fgfg

Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2
Watch🟢➤➤➤🌐 Click Here To link (Full Viral Video Here
🔴➤►DOWNLOAD👉👉 (Full Viral Video Here
🔴 CLICK HERE 🌐==►► Download Now HD2


Find a way to communicate the ordering of a file back with the existi…

…ng listing table implementation
Which issue does this PR close?
close issue_13891
Rationale for this change
This is the follow-up for:
https://github.com/apache/datafusion/pull/13874#pullrequestreview-2521214964
We add support (order by / sort) for DataFrameWriteOptions, but when a user try to query the table which the file already ordered, we can't get info from the table.
We need to find a way to communicate the ordering of a file back with the existing listing table implementation.
What changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
Yes, user can automatically optimize the sort column without add config.

Hi @alamb @Dandandan , i  submitted the first version PR for the automatically detect parquet file order and using the info to optimize for the plan.  It's a very basic PR, we can add more follow-up issues to improve it.
I have more questions and will try to create follow-up issues after this PR, for example:

Validation for the complex or invalid sort by cases, such as sort by ((a+1)*5  + b)?
We only using the first file sort metadata to expose to statistic, we need to consider if we need to handle for multi file cases, each one file may has different sort order?
Do we need to add more docs and use case for this new feature?

This PR seems also can resolve the issue:
https://github.com/apache/datafusion/issues/4177

I haven't reviewed this PR carefully yet, but we already have mechanisms to propagate source ordering. Why do we need to add this information to Statistics?

Hi @ozankabak , thank you for review, we can propagate source ordering with:

Create external table with order
Create a parquet read with list options to setting the order

But when we write a parquet file with order and the table without order(when creating), we can't  propagate the order to the table, we need to write the order to parquet metadata.  And when we scan table without sort option setting, we can get the metadata for optimization.
For the Statistics to store the info, do you mean we can just load the metadata order to somewhere else?

I believe extending the Statistics with sort information is dangerous, as it deviates from the single-responsibility principle and creates the burden of maintaining order information in two places (Statistics and equivalences).
I wonder if we can utilize the sorting_columns() API of WriterProperties and WriterPropertiesBuilder instead. Also I guess giving this info should be on TableParquetOptions rather than DataFrameWriteOptions. So sort_by in DataFrameWriteOptions would be redundant.
We are currently working on an extensive refactor of the Statistics framework, so both in its current state and the new version, storing order information in it does not seem the right way. We need to address this issue in a more seamless way. I also don’t think this should be a fork-specific implementation, as it’s a common need, but we need to find a smoother approach.

Thank you @berkaysynnada for review and good suggestions.
I agree with you, this is not a perfect way, i will try to do following improvement for this PR:

Try to make the maintaining order information unified to equivalences.
About the sorting_columns(), it's a row group level info, not file level FileMetaData. I am not sure if it's a better way.

/// Sort order within a RowGroup of a leaf column
#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct SortingColumn {
  /// The ordinal position of the column (in this row group) *
  pub column_idx: i32,
  /// If true, indicates this column is sorted in descending order. *
  pub descending: bool,
  /// If true, nulls will come before non-null values, otherwise,
  /// nulls go at the end.
  pub nulls_first: bool,
}

Try to make the TableParquetOptions has the only sort_by order info.

Hi @zhuqi-lucas  -- sorry if we caused confusion here. I agree with @berkaysynnada  and @ozankabak  that ordering information is already represented in plans using EquivalenceProperties

As I understand https://github.com/apache/datafusion/issues/13891:

The idea is to store the output sorted order in the parquet file
So this would look something like:

COPY (SELECT ... ORDER BY x, y) to 'foo.parquet'
foo.parquet has some new metadata like DATAFUSION_ORDER_BY = x ASC, y ASC`
On the next SELECT ... FROM 'foo.parquet' the ParquetExec would look for the  DATAFUSION_ORDER_BY metadata in the file and if present update the EquivalenceProperties to reflect an ordering x, y

Does that make sense?

Thank you @alamb for clarify, let me try to change the PR based our discussion conclusion.


Fix cmdlet in cloud-consolidation-managing-attributes.md

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/9278.

Docs Build status updates of commit b83d200:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Skype/SfbHybrid/hybrid/cloud-consolidation-managing-attributes.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Add a new attribute - DefaultCommand

When this attribute is present on a method, that method is executed when no command is specified

You now have a new attribute [DefaultMethod]
When you add this attribute on a method, that method is executed when application is run without specifying any command:
More info here: https://github.com/bilal-fazlani/CommandDotNet#default-method


A compile error

Hi, a problem was encountered while compiling this code, it seems that there is a bug remains in the code, the detailed information is as follows:

Could you please take a look at what's going on?
By the way, we will be very grateful if you provide an available dockerfile or docker image.

Hi Yanhong,
Thanks for reporting this issue. We have solved this issue. Please pull the latest version and compile it again.
Besides, we'll create the docker image as soon as possible.


Import Error with example code.

Example code
import os

from groq import Groq

client = Groq(
    api_key=os.environ.get("GROQ_API_KEY"),
)

chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": "Explain the importance of fast language models",
        }
    ],
    model="mixtral-8x7b-32768",
)

print(chat_completion.choices[0].message.content)

after pip install, and run the code, will face below error. Tested same with Python 3.8 and 3.11
ImportError: cannot import name 'Groq' from partially initialized module 'groq' (most likely due to a circular import)

You probably put the code in a file named groq.py, which shadows the groq module.  Try changing the name of your sample file and running the code again.

ah, you are right. Thank you.


Refactor covariates_preprocessing.py

Integrate covariates_preprocessing.py into Rust/MedRecord functions.

from __future__ import annotations

from typing import Union

import numpy as np
import pandas as pd
from numpy.typing import NDArray

def covariate_coarsen(
    covariate: NDArray[Union[np.float64, np.int64]], n_bins: int = 10
) -> NDArray[Union[np.float64, np.int64]]:
    """
    Bins a continuous variable into discrete intervals. This method divides the range of
    `covariate` into `n_bins` equal-width bins and assigns each value to a bin
    represented by a discrete integer. It ensures functionality even when all covariate
    values are equal by adding a small noise.

    Args:
        covariate (NDArray[Union[np.float64, np.int64]]): The continuous variable to be
            binned.
        n_bins (int, optional): The number of bins to divide the covariate into.
            Defaults to 10.

    Returns:
        NDArray[Union[np.float64, np.int64]]: An array of discrete integers representing
            the bin assignments for each entry in `covariate`.

    Example:
        For `covariate` = [1, 5, 10, 14, 15] and `n_bins` = 3, the function might
        return [1, 1, 2, 3, 3], indicating the bin assignment for each value in
        `covariate`.
    """

    bins = np.linspace(min(covariate) - 0.01, max(covariate) + 0.01, n_bins + 1)

    return np.digitize(covariate, bins)

def covariate_add_noise(
    covariate: pd.Series[Union[int, float]], n_digits: int = 2
) -> pd.Series[float]:
    """
    Adds noise after a specified number of decimal places to a discrete variable,
    transforming it into a continuous variable. This is particularly useful for
    simulations, examples, and tests, allowing discrete variables to be used in contexts
    requiring continuous variables.

    Args:
        covariate (pd.Series[Union[int, float]]): The discrete variable to be
            transformed.
        n_digits (int, optional): Specifies the decimal place after which to add noise.
            A positive value adds noise with a magnitude less than 1, while a negative
            value can increase the noise magnitude. Defaults to 2, resulting in noise
            between 0 and 0.01.

    Returns:
        pd.Series[float]: A pandas Series containing the modified covariate with added
            noise.

    Example:
        If `covariate` is a Series of integers and `n_digits` is 2, the function will
        add a random noise between 0 and 0.01 to each entry, effectively making the
        variable continuous.
    """

    noise = pd.Series(np.random.rand(covariate.shape[0])) * 10 ** (-n_digits)

    return covariate.add(noise)

import unittest

import numpy as np
import pandas as pd

from medmodels.matching.covariates import covariates_preprocessing as cp

class TestCovariatesPreprocessing(unittest.TestCase):
    def test_covariate_coarsen(self):
        result = cp.covariate_coarsen(np.array([1, 5, 10, 14, 15]), n_bins=3)
        self.assertTrue(np.all(result == [1, 1, 2, 3, 3]))

        result = cp.covariate_coarsen(np.array([1, 1]))
        self.assertTrue(np.all(result == [6, 6]))

    def test_covariate_add_noise(self):
        #  Check if the Series are not equal:
        result = cp.covariate_add_noise(pd.Series([1, 2]), 1)
        self.assertTrue(not result.equals(pd.Series([1, 2])))

        # Check if series are equal till the certain precision:
        expected = pd.Series([1, 2]).astype(float)
        pd.testing.assert_series_equal(result.round(), expected)
        # here maybe a better test, maybe with round.
        # But 0.99999 + 0.001 = 1.00099 so round will give an error.

if __name__ == "__main__":
    run_test = unittest.TestLoader().loadTestsFromTestCase(TestCovariatesPreprocessing)
    unittest.TextTestRunner(verbosity=2).run(run_test)

Can be fixed after #146


Types!

I think what will set tardigrade apart the most isn't the functional aspect of it, per se, but adding some kind of type system at play.
With some kind of type system we introduce more friction to users of a shell, but the good kind of 'the compiler is my friend' sort of friction.
I think a major decision that needs to be made is whether or not we care about the extent of the TC; do we just provide a handful of features or do we actually commit to supporting user defined types e.g. records and the like? I think the latter is the wiser choice; it's silly to fear something that could be so useful in the long run despite the possible maintenance burden.
This probably will need to be decided in tow with what builtin types we support (I am thinking vectors and maps are probably the two biggest internals people would make use of, but it may even be cool to allow users to plug in others if they so pleased.)

On a more specific note, we'll want:

To pair every expression with a type in the AST so that it can be checked or, in the case of type metavariables, inferred
Some kind of hindley-milner type inference

For the second point we'll have to consider what it means to 'interpret' a script in the context of tdg because it would suck if we had to run hindley-milner over and over again each time. Perhaps it's possible to output some kind of bytecode that tdg understands and treat the shell as a form of a vm to sidestep this?

Closing this as I've actively decided a typed language doesn't make sense. Having the shell built using a typed language is another thing.


Could not find action, lane or variable 'folder'

I'm getting the below error. I don't know what i'm missing in fastlane file.
+---------------------+------------------------------------------------------------------------------------+
11:04:09 |                                               Lane Context                                               |
11:04:09 +---------------------+------------------------------------------------------------------------------------+
11:04:09 | PLATFORM_NAME       | ios                                                                                |
11:04:09 | LANE_NAME           | ios build                                                                          |
11:04:09 | PRODUCE_APPLE_ID    |                                                                                |
11:04:09 | CERT_FILE_PATH      | /Users/altius-mac/workspace/MobCom-ios/V7N4K52VEP.cer                              |
11:04:09 | CERT_CERTIFICATE_ID | V7N4K52VEP                                                                         |
11:04:09 | SIGH_PROFILE_PATH   | /Users/altius-mac/workspace/MobCom-ios/AdHoc_com.mob.alti.mobileprovision     |
11:04:09 | SIGH_PROFILE_PATHS  | ["/Users/altius-mac/workspace/MobCom-ios/AdHoc_com.mob.alti.mobileprovision"] |
11:04:09 | SIGH_UDID           | b61fdbdf-2cb6-4a1e-a9a1-06bc5e7ed089                                               |
11:04:09 | SIGH_UUID           | b61fdbdf-2cb6-4a1e-a9a1-06bc5e7ed089                                               |
11:04:09 | SIGH_NAME           | Mobc                                                                         |
11:04:09 | SIGH_PROFILE_TYPE   | ad-hoc                                                                             |
11:04:09 +---------------------+------------------------------------------------------------------------------------+
11:04:09 [11:04:09]: Could not find action, lane or variable 'folder'. Check out the documentation for more details: https://docs.fastlane.tools/actions
11:04:09
11:04:09 +------+-----------------------------------+-------------+
11:04:09 |                    fastlane summary                    |
11:04:09 +------+-----------------------------------+-------------+
11:04:09 | Step | Action                            | Time (in s) |
11:04:09 +------+-----------------------------------+-------------+
11:04:09 | 1    | produce                           | 7           |
11:04:09 | 2    | cert                              | 10          |
11:04:09 | 3    | get_provisioning_profile          | 11          |
11:04:09 | 4    | (cd .. && ionic platform add ios) | 71          |
11:04:09 +------+-----------------------------------+-------------+
11:04:09
11:04:09 [11:04:09]: fastlane finished with errors
11:04:09
11:04:09 [!] Could not find action, lane or variable 'folder'. Check out the documentation for more details: https://docs.fastlane.tools/actions
I'm integrating fastlane in ionic project. I didn't get the PRODUCE_APPLE_ID  field in lane context. If someone figure it out what is an issue, that is helpful to me.

can you share your fastfile.
or as mentioned in the issue template:

you can use: --capture_output as the last commandline argument to get that collected for you -->
The output of --capture_output could contain sensitive data such as application ids, certificate ids, > or email addreses, Please make sure you double check the output and replace anything sensitive you > don't wish to submit in the issue

you can manually redact sensitive data, but it helps alot to troubelshoot the issue

Sorry for rising this error. Actually I forgot to hash the line in fastlane file.
Thanks for your comments hjanuschka.


Mobile Responsiveness Issue

Description
This issue is regarding mobile responsiveness when I was running  this beautiful website on a mobile device I saw an insane thing this is not fully responsive to mobile screens as you see in the screenshot below "Choose Your Role"  text is too much big on mobile screen which is not a good practices
and the bottom margin of 2nd container "Beneficiary" is not too much it is touching with the another one this is not a good user experience
Screenshots

Additional information
@subhashis2204   Kindly Assign this issue to me

Please give me a chance to work on this issue, I have prior experience working on similar issues


Serverless specificaction with v08 spec

This PR aims to align the sdk with the v08 spec.
Fixes: https://github.com/serverlessworkflow/sdk-go/issues/70
Many thanks for submitting your Pull Request :heart:!
What this PR does / why we need it:
Initial alignment with v08 spec

I think we should map all the required changes for v0.8 and handle them in this PR or strict the scope of this one. "v08spec" as a title seems too wide.

I think we should map all the required changes for v0.8 and handle them in this PR or strict the scope of this one. "v08spec" as a title seems too wide.

Maybe make a PR do one change, and mark all of them as v0.8 Milestone？

e should map all the required changes for v0.8

the changes needed are mapped here https://github.com/serverlessworkflow/sdk-go/issues/70
Or are you suggesting something different?

@spolti open PRs to change to 0.8 like what @lsytj0413 is doing. So we can keep them on track using the milestone feature.

Or if this is a small change (which I'm not sure of), you can do in this one PR.

ok...
let me break each commit in different prs...

suppressed by:

https://github.com/serverlessworkflow/sdk-go/pull/80

will send the other PRs as soon as the previous gets merged as it depends on each other.


bug-fix-810601

Docs Build status updates of commit fdc15c1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/concepts/deploy-and-publish/appsource/prepare/detail-page-checklist.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit b8aaee5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/concepts/deploy-and-publish/appsource/prepare/detail-page-checklist.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Prompts in question channels

Rethink how the bot prompts for whether the asker is done with their question. Perhaps take into account whether anyone else talked in the channel, whether helpers were pinged. Maybe make helpers only pingable when the bot decides it's been enough time?

Superseded by the similar issue regarding the help forum. Discussion of this is currently in Meta.


Make UnicodeData.txt path configurable, remove unsafePerformIO

Description
I don't use Debian, and hardcoding the path doesn't seem great anyhow. Open to suggestions as to whether this is the best way to pass the file path around, or the argument order of unicodePrompt.
I also took out an unsafePerformIO, because it didn't seem necessary.
Checklist

[x] I've read CONTRIBUTING.md

[x] I tested my changes with xmonad-testing

[ ] I updated the CHANGES.md file

On Fri, May 12, 2017 at 12:10 PM, Nick Hu<EMAIL_ADDRESS>wrote:

I also took out an unsafePerformIO, because it didn't seem necessary.

I haven't looked at the code to see if it's applicable yet, but this can be
a (rather ugly) hack to force memoization: the file's only read once (or
more precisely once per entry to the domain where it's in scope and
shared), and sharing keeps the data in scope until it's no longer needed.
So it looks like it's repeatedly reading the file but in fact it's not.
(This behavior is precisely why using unsafePerformIO to "cheat" the type
system doesn't work as new Haskellers tend to expect.)
--
brandon s allbery kf8nh                               sine nomine associates
<EMAIL_ADDRESS><EMAIL_ADDRESS>unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Correct. With this change, it will re-read the file every time, which is certainly not what we want.
An alternative would be to provide an IO function that the user has to put in its main function and pass the result to unicodePrompt.

Another (and nicer IMO) way is to keep the data in ExtensibleState of Maybe [(Char, BS.ByteString)]

Also I note you were a good modern-GHC-er and ignored backward compatibility; the Travis fails are all uses of pure that should be return for compatibility with distributions that still ship ghc 7.6 (sigh).

Sorry, I've only just had time to follow up on this.
@f1u77y Perhaps you could outline for me how that would work? I'm new to contributing on XMonad.

So I've used ExtensibleState, using [] to represent no unicode data rather than a Maybe type. I took out a NOINLINE directive too - I think it's unnecessary now but I'm not 100% sure.

Hmm, the travis builds seem to fail with
XMonad/Prompt/Unicode.hs:72:6:
    Unexpected semi-colons in conditional:
        if null entries then do { datE <- liftIO . tryIOError
                                          $ BS.readFile unicodeDataFilename;
                                  case datE of {
                                    Left e -> liftIO $ do { ... }
                                    Right dat -> do { ... } } }; else pure True
    Perhaps you meant to use DoAndIfThenElse?

But it compiles fine on my system, with GHC 8.0.2.
Any suggestions?

Strictly speaking, the error is correct; if ... then ... else is an expression, it should not have a semicolon there.

@geekosaur indeed in the source file it does not - perhaps something is amiss with Travis

Turns out xmonad --recompile and travis build compile with slightly different settings: https://kseo.github.io/posts/2014-01-13-DoAndIfThenElse-language-extension.html

So I've used ExtensibleState

Does this mean that the whole unicode table is now stored across xmonad instances? How is it transferred? If it is the command line, doesn’t that exceed limits?
I don't see why you want to persist the cache, rather than reading the unicode file once per xmonad process.

Yes, it would be better to make it StateExtension rather then PersistenExtension
And no, the persistent state is transferred via xmonad.state file

My reasoning was that it was unnecessary to re-read it on every start/restart of XMonad, but yeah I can change it.

Having it reread/update on mod-q is not a bad thing imo. XS should be used
for data we can't get from elsewhere. Note that rereading UnicodeData.txt
directly will be faster than serializing/deserializing that much data from
the state file.
On Wed, Aug 16, 2017 at 2:30 PM, Nick Hu<EMAIL_ADDRESS>wrote:

My reasoning was that it was unnecessary to re-read it on every
start/restart of XMonad, but yeah I can change it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xmonad/xmonad-contrib/pull/181#issuecomment-322859526,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB8SoK4oVCIeKcHdLUiRDAKj7j_VGYZSks5sYzUugaJpZM4NZfRQ
.

--
brandon s allbery kf8nh                               sine nomine associates
<EMAIL_ADDRESS><EMAIL_ADDRESS>unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Okay, I have made those changes and squashed and rebased. Is this good to merge yet, or is there anything else I could do?

I added some functionality to use xdotool to type the Unicode character instead of copying it to the selection.

On line 66 of Unicode.hs, the usage is described as unicodePrompt def but it should be something like unicodePrompt "/path/to/unicode-data" def.
I'd prefer to export more than just unicodePrompt and typeUnicodePrompt because otherwise this module forces you to use either xsel or xdotool. Personally, I'd export much more functions for a bigger customizability.
Maybe you should squash the commits another time?
Lines 12-13 state that /usr/share/unicode/UnicodeData.txt is required which is not true.
Maybe you want to add your name on line 3 to the copyright holders?

I added those changes

@nomeata , @f1u77y , @mekeor , @geekosaur , any last comments?

LGTM! 🎉


Adopt Psalm

Q
A

Is bugfix?
❌

New feature?
✔/❌

Breaks BC?
❌

Fixed issues

Seems to need to fix php version of scrutinizer


Why does buildTeXString have a cursorColor property?

Bug description
node.buildTeXString() seems to have a cursorColor property, but it really shouldn't need one. All it does is append something like \textcolor{#000000}{\cursor} to the end of tex string, and it seems to break loading it back into the MathField document
To Reproduce
Steps to reproduce the behavior:
Get a MathFieldEditingController and call .currentNode.buildTexString() and try to load the string back in
Expected behavior
No cursorColor attribute, loading back in without changes

also it seems like parsing it back in adds brackets every time to the end, is that intended behaviour?


Update get-ip-statistics.md

updated limitations and response

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/5892

@JohanFreelancer9 Please copy review


Update download script

This tiny PR fixes the JWST download script because it was broken and also fixes a few minor typos.

The failed pytest can't be related to your changes, but the test does keep failing with the message:
ImportError: cannot import name 'MMMBackground' from 'photutils'

From the install log, the installed photutils version is 2.0.2. Looking at their GitHub, it looks like we should be doing
from photutils.background import MMMBackground, MedianBackground, Background2D

while we're currently doing
from photutils import MMMBackground, MedianBackground, Background2D

I think that change likely took place sometime around 2.0.

Ah, we fixed that a while ago, and your branch is just based on an old version of Eureka. Should be all good once merged into main


Add pod spec resources limits & requests to all prow jos

As a followup to the recent switchover to Karpenter in our Prow cluster, this change adds resources.limits and resources.requests to all Prow job templates.
Using:

1 VCPU
500Gi of memory
100Gi of ephemeral storage

as a starting point for requests, with the intent to tune going forward as needed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Did you mean Mi instead of Gi?

Oh wow, yes nice catch! ⚾

Did you mean Mi instead of Gi?

Fixed!

/lgtm


examples in 2. Getting started

I was trying the examples and could not get it to work. After some research I found it missed the following:
Homie.registerNode(lightNode);

You need to use the examples bundled with your release. The ones in the latest git revision are not backward compatible with the latest v1.5.0.

I just added a clarification about this: 900f22a1a9466fa31468990d226cdb64712746f4


Feature: Updated scroll to top button

closes #164

Proposed Changes and Benefits
Reduced the size and made the scroll-to-top button transparent to enhance the UI.
also updated my username in contributors.json and CONTRIBUTORS.md

Screenshots
before:

after:

Notes to Reviewers

Checklist

[✔ ] I have thoroughly read and understand The Contribution Guidelines.
[✔  ] The title of this PR follows the keyword: brief description of change format, using one of the following keywords:

Feature - adds new or amends existing user-facing behavior.
Chore - changes that have no user-facing value, refactors, dependency bumps, etc.
Fix - bug fixes.
Docs - fixing typos and adding new content.

[✔  ] I have listed my proposed changes and their benefits.
[ ✔ ] I have linked the corresponding issue in the Issues section.

@MeetThakur Congrationals for your pull request being merged, and this successfully closes issue #164 ✅

@XanderRubio Thank you very much, glad I could help. Looking forward contributing more as much I can.
Have a great day.

@XanderRubio Thank you very much, glad I could help. Looking forward contributing more as much I can. Have a great day.

Thank you, @MeetThakur, and we are grateful for your enthusiasm for the Before I Die code. You also have a nice day!


error while pulling node image

Expected behavior
system should download the node image
Actual behavior
getting following error:
no matching manifest for windows/amd64 10.0.17763 in the manifest list entries
Information about the Issue
Steps to reproduce the behavior

docker pull node
getting error ::no matching manifest for windows/amd64 10.0.17763 in the manifest list entries

The node images are only available as Linux images. If you are using Docker Desktop, you need to switch Docker to run Linux containers instead of native Windows containers; https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers
This is not a bug, so I'll close this issue, but feel free to continue the conversation


Feature visualization for Gluon

This PR adds functionalities for visualization of kernel weights and feature maps for gluon-based models.

Thank you for adding this feature to monk. Your contribution is greatly appreciated.


TransactionFailed uncaught exception

Getting this sometimes, after the connection is open for a while or it tries to reconnect:

Is there any way to prevent this error or catch it so it doesn't crash the server?

It appears werift is not handling a 438 stale nonce response correctly? I see they handled it in aioice:
https://github.com/aiortc/aioice/issues/28

Thanks for the report, werift-ice has a similar problem because it references the old aioice code. I will fix it.

Awesome, thank you!

Not trying to rush or be difficult, but curious what the timeline might be for fixing this? I'm still having issues here and want to either catch the exception or the library doesn't throw it.
Any other workarounds you can suggest?

I've been busy lately, so a fundamental solution will take time.
If I just avoid throwing exceptions, I think it can be accomplished relatively quickly.
However, it is not a fundamental solution and there will still be problems using the TURN feature.
Just to confirm, are you sure you are not using the TURN function?
If not using, I think the problem can be solved by simply not using TURN when setting up peerConnection.

To be clear, we are using TURN function. Maybe we're not implementing it correctly? Either way, thanks for the responses and we'll make do in the meantime!

I guess I was a bit quick to close this issue- it seems this happens right after a connection is closed, is there any thing I can do in addition to connection.close() that would stop this from happening?

@diogeneshamilton 438 error handling is now supported

Amazing, thank you! I will look out for a new release.

Hi there @shinyoshiaki 👋  Do you have an idea when you will be releasing this fix?

@diogeneshamilton @havardholvik released v0.19.2

That was fast! Thank you 🙏
On Thu, May 30, 2024 at 10:57 AM Shin Yoshiaki @.***>
wrote:

@diogeneshamilton https://github.com/diogeneshamilton @havardholvik
https://github.com/havardholvik released v0.19.2
—
Reply to this email directly, view it on GitHub
https://github.com/shinyoshiaki/werift-webrtc/issues/364#issuecomment-2139083530,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAF6CJTCJANS7MREOJCZ45LZE3SYVAVCNFSM6AAAAABCVHLJ4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGA4DGNJTGA
.
You are receiving this because you were mentioned.Message ID:
@.***>


instruction for running samples in YARN mode

Need instructions to run samples in YARN at
https://github.com/Microsoft/Mobius/blob/master/notes/running-mobius-app.md#yarn-cluster similiar to instructions for Standalone and local modes

This issue has been addressed by #394


Make Travis use g++-4.8

Awesome! I thought they were just behind. Nice work.

:speedboat:

@ronkorving, one of the tests randomly timed out when this commit was merged into master, so there's an erroneous build error. I think it needs a dummy commit to nudge it back to green

Oh, annoying. Well, when I do a release it'll bump back anyway I guess.


Problem in generation of some map files during flexible autodock docking.

For my ligands HD Map file is not generating but other required map file are generating for ligands. Can you please tell me how to resolve this, as during docking HD map files required.

Hi @aditya-jugade
A similar issue was reported in #312 would any of you be able to share your input files and commands? We can check your inputs, try to reproduce and follow up with you

/path/pythonsh prepare_flexreceptor.py -r 7MYI.pdbqt -s ASP228_ASP32_TYR71_PHE108_SER35  -g 7MYI_receptor_rigid.pdbqt -x 7MYI_receptor_flex.pdbqt
/path/mgltools_x86_64Linux2_1.5.7/bin/pythonsh /path/MGLToolsPckgs/AutoDockTools/Utilities24/prepare_gpf4.py -l ligand -r 7MYI_receptor_rigid.pdbqt -y
/path/autogrid4 -p 7MYI_receptor_rigid.gpf  -l 7MYI_receptor_rigid.glg
above is the command to generate map file, input is pdbqt files for both receptor and ligand.
7MYI.txt
1PY1.txt
1PY1 is one of the ligand file
7MYI is receptor file.
I have attached both the file as txt as github is not supporting pdbqt format but original files are in pdbqt format only.
cmd is running but unable to generate HD files for ligands

Hi @aditya-jugade
Thanks for the info! The problem is likely because of step 2
/path/mgltools_x86_64Linux2_1.5.7/bin/pythonsh /path/MGLToolsPckgs/AutoDockTools/Utilities24/prepare_gpf4.py -l ligand -r 7MYI_receptor_rigid.pdbqt -y
produces a GPF file 7MYI_receptor_rigid.gpf with
npts 40 40 40                        # num.grid points in xyz
gridfld 7MYI_receptor_rigid.maps.fld # grid_data_file
spacing 0.375                        # spacing(A)
receptor_types A C OA N SA HD        # receptor atom types
ligand_types A P C OA N HD           # ligand atom types

Please consider adding the option to specify flexible residues, like the following:
pythonsh prepare_gpf4.py -l ligand -r 7MYI_receptor_rigid.pdbqt -x -y
will give you
npts 40 40 40                        # num.grid points in xyz
gridfld 7MYI_receptor_rigid.maps.fld # grid_data_file
spacing 0.375                        # spacing(A)
receptor_types A C OA N SA HD        # receptor atom types
ligand_types A P C OA N              # ligand atom types```

Not relevant to the problem you saw, but there's potentially more issue with the ligand's (SEP) PDBQT file. Not all ligand's atom types are correct (and some polar hydrogens are potentially missing). If the ligand was prepared from an atomistic (all-atom) structure, the amine group will have 2 more hydrogens with atom type HD


Added Tool

Added StackStorm to Ansible Tools

Are you sure that this Project integrates with Ansible?
If, so, in what way?
I was unable to find the search-term ansible anywhere in that repository:
https://github.com/StackStorm/st2/search?q=ansible

We couldn’t find any code matching 'ansible' in StackStorm/st2
You could search all of GitHub or try an advanced search.
There where some mentions of Ansible in the Git History, but the Files containing references are no longer in the main branch.

Also, your Modifications to the TOC, are not liked by the Linter, If you rework this PR, please refrain from changing the TOC, unless you add another Section.
Thank you very much.

Ah, I see I found: https://github.com/StackStorm-Exchange/stackstorm-ansible
I am looking into this. TY


Update omnibus-software for latest server-jre

Tested via ad_hoc build:
http://wilson.ci.chef.co/job/chef-server-12-build/520/
Signed-off-by: Jaymala Sinha<EMAIL_ADDRESS>/cc: @chef/chef-server-maintainers @chef/engineering-services

We've updated the Gemfile as a result of another change.  Going to close this out.


Option for using the local k3d registry as a proxy for the Docker Hub

With this option, the local k3d registry can act as a pull-through cache for the Docker hub.
For example, after creating the cluster with:
k3d create --enable-registry --enable-registry-cache --registry-volume=k3d-registry

we can see that the registry is caching the images:
$ docker exec -ti k3d-registry ls -lisa /var/lib/registry/docker/registry/v2/repositories/library /var/lib/registry/docker/registry/v2/repositories/rancher
/var/lib/registry/docker/registry/v2/repositories/library:
total 16
42206594      4 drwxr-xr-x    4 root     root          4096 Mar 13 09:52 .
33554483      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 ..
42860646      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 busybox
42206595      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 traefik

/var/lib/registry/docker/registry/v2/repositories/rancher:
total 28
33554484      4 drwxr-xr-x    7 root     root          4096 Mar 13 09:52 .
33554483      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 ..
33554829      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 klipper-helm
33554475      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 klipper-lb
33554819      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 local-path-provisioner
33554850      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 metrics-server
33554485      4 drwxr-xr-x    5 root     root          4096 Mar 13 09:52 pause

This cannot be used together with pushing local images to the registry. See https://stackoverflow.com/a/33616926/1456578 and https://docs.docker.com/registry/configuration/#proxy.

Pushing to a registry configured as a pull through cache is currently unsupported

One would just get unsupported as a response when trying to push to the registry.
Maybe the cache should be configured as a separate registry if enabled?

Thanks for the hint @deiwin :+1:
For now, we added documentation/hints regarding this (commit).
I agree that it makes sense to split this up into two separate registry containers in the future :+1:

Does this only work for images pulled from Docker hub or also for images pull from private repositories?

@svenhofstede with the mirrors statement in the registries.yaml you can redirect pulls for every registry to a different registry. So yes, the concept should as well work for any other registry, but this PR/flag only sets it up for DockerHub.


Example not running

Hi,
I just cloned the repo and tried to run the demos related to working with template tables. None of the two demos works properly.
The first example, WorkingWithTableLayout throws an Execption:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
GroupDocs.Parser.Data.PageTableArea.this[int, int].get returned null
The second example, WorkinWithTableParameters neither works. It doesn't retrieve any data. I've tried to modify TemplateTable bounds with no success

@dpinart-uxland we can reproduce this issue when application is compiled/executed without applying a valid license (otherwise there is no exception and we get right output). Please have a look at the API evaluation limitations. We'd recommend you to get a temporary license here and then execute the application.

Oops. Thanks. I'm finding a way to read pdfs that contain purchase orders. As you can expect, I'm interested on reading order lines placed in a table. This table will have a variable number of lines. With the examples seen, I'm afraid the Parser won't be able to read all lines. Any example with dynamic length tables?

@dpinart-uxland ,
We are investigating your scenario. You'll be notified about the outcomes here.


Error using Python3 - python3 manage.py db upgrade - except ImportError, e:

(venv)rodrigo@rodrigo-xubuntu:~/projects/flask_boost_site$ python3 manage.py db upgrade
Traceback (most recent call last):
File "manage.py", line 4, in
from application import create_app
File "/home/rodrigo/projects/flask_boost_site/application/init.py", line 19, in
from config import load_config
File "/home/rodrigo/projects/flask_boost_site/config/init.py", line 18
except ImportError, e:
^
SyntaxError: invalid syntax
(venv)rodrigo@rodrigo-xubuntu:~/projects/flask_boost_site$

I have fix some Python3 issues with 2 commits：

2f29a6f0a87b201ac0b983094826b06145c333e1
59854731162c25c75304798b62f6541bb9646eee

After that I found the Flask-Uploads package does't support Python3...
I think I will report this issue to Flask-Uploads.
Or I may take some time to find a package to replace it.

Seems that somebody has already report this:
https://bitbucket.org/leafstorm/flask-uploads/issue/14/iteritems-in-configure_uploads

Thanks @hustlzp. I voted for the issue in flask-uploads.

At last I remove Flask-Uploads in order to support Python 3.x.


File Saver Chrome Extension

Is your feature request related to a problem? Please describe.
for basic use we generally store our files in our local ocmputer
but it would be interesting if we create chrom-extesnion for it
Describe the solution you'd like
User run extension and upload file which he/she want to save
and can download in future
Describe alternatives you've considered
storing on drive or on cloud
Additional context
it will use localstorage to store files
and if needed use cloud depend on level of issue
currently using localstorage
seems level2 issue
What problem is this feature trying to solve?
small file saver
How do we know when the feature is complete?
will make PR

@Sulagna-Dutta-Roy please assign me this issue