text:
[Предложение] Сбор дейли Азбуки Морзе

Возможно ли добавить сбор Daily Morze game
Код: FARM
F • • — •
A • —
R • — •
M — —
3 раза тыкаем на «прибыль за тап» в левом верхнем углу
Переходим на красного хомяка, далее вводим код.
Точка - короткий тап
Тире - длинный тап.

Возможно ли добавить сборку игры Daily Morze
Код: FARM F • • — • A • — R • — • M — —
3 раза тыкаем на «прибыль за краном» в нижнем верхнем углу, переходим на красный хомяка, далее вводим код.
Точка – короткий кран. Тире – длинный кран.

Морзе и так собирается, + механика сейчас в игре другая (сейчас 3 раза тапать нет необходимости)

Это давно уже есть))

source: gharchive/issue

authors: ImMagnat ShelyGanz yoyoallf

license_type: permissive

license_source: github-api


text:
Unable to reproduce the result

I have downloaded the code in this repo and downloaded the pretrained model from https://ctolib.com/shaohua0116-demo2program.html, the program, however,  is unable to evaluate(or train).
The error information is
nvalidArgumentError (see above for traceback): indices[15,0] = 51 is not in [0, 51)
         [[Node: Program_Decoder/embedding_lookup = GatherV2[Taxis=DT_INT32, Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@Program_Decoder/Token_Embedding/embedding_map"], _device="/job:localhost/replica:0/task:0/device:CPU:0"](Program_Decoder/Token_Embedding/embedding_map/read, Program_Decoder/concat, Program_Decoder/embedding_lookup/axis)]]

The reason is that in the LSTM_Decoder function, the definition of s_token iis conflicted with the definition of embedding_lookup: s_token's == token_dim + 1 exceeds the size of embedding_map.
I have tried to redefine s_tokens as token_dim or to enlarge the size of embedding_map, both are runable, but unable to reproduce the results in the paper.

Sorry for the last issue, and I have somehow reproduced the results. Just redefine s_tokens as s_tokens = token_dim.

Thanks for pointing out this issue, we will update the code.

I'm getting the same issue with the Action_Decoder.
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0] = 13 is not in [0, 13) 	 [[Node: Action_Decoder_8/embedding_lookup = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@Action_Decoder/Token_Embedding/embedding_map"], validate_indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](Action_Decoder/Token_Embedding/embedding_map/read, Action_Decoder_8/concat)]]

authors: HeyZeu5 HyeonwooNoh XgDuan

license: MIT


text:
Could not find lifecycle-runtime-ktx-2.2.0.

Hello!
I've faced this issue:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find lifecycle-runtime-ktx-2.2.0.jar (androidx.lifecycle:lifecycle-runtime-ktx:2.2.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-runtime-ktx/2.2.0/lifecycle-runtime-ktx-2.2.0.jar

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Any workarounds?

When did you face this? I mean when you capture an image or when you pick an image from the gallery. Which method did you use to get the file in the result?
Can you be more specific on the details? It would be helpful.

Just tried to add it to the app module, hit the sync Button and tried to run the app but unfortunately, the error apppeared.
I've also used: implementation 'com.github.shaon2016:ProPicker:1.0.1'
Thought that's a connection issue but it wasn't and I double checked that. The interesting part is that I couldn't download this using my browser:
https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-runtime-ktx/2.2.0/lifecycle-runtime-ktx-2.2.0.jar
Does it even exist?

See this link
https://developer.android.com/jetpack/androidx/releases/lifecycle

I don't face this issue. I have tried several ways.
Are u working on java or kotlin?

Fixed by adding:   implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-beta01'
to the build.gradle dependencies. This link really helped: https://developer.android.com/jetpack/androidx/releases/lifecycle
Thank you.


text:
BUG: Exception: The passed model is not callable and cannot be analyzed directly with the given masker! Model: GBTClassificationModel (uid=GBTClassifier_c6502ed2671a) with 100 trees

Issue Description
I`ve loaded a GBTCLassifierModel from hdfs, and I get the folling exception:
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
/workspace/ana_crm_fisicas/exceles/shaply.py in ()
----> 1 explainer=shap.Explainer(model)

/opt/cloudera/parcels/Anaconda3/lib/python3.7/site-packages/shap/explainers/_explainer.py in __init__(self, model, masker, link, algorithm, output_names, feature_names, **kwargs)
    128                 # if we get here then we don't know how to handle what was given to us
    129                 else:
--> 130                     raise Exception("The passed model is not callable and cannot be analyzed directly with the given masker! Model: " + str(model))
    131
    132             # build the right subclass

Exception: The passed model is not callable and cannot be analyzed directly with the given masker! Model: GBTClassificationModel (uid=GBTClassifier_c6502ed2671a) with 100 trees

Minimal Reproducible Example
pipeline=PipelineModel.load(ruta_pipeline_hdfs)
model=pipeline.stages[-1]

explainer=shap.Explainer(model)

Expected Behavior
It should works as I train GBTClassifierModel without saving of loading and it works.
Bug report checklist

[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest release of shap.
[X] I have confirmed this bug exists on the master branch of shap.
[x] I'd be interested in making a PR to fix this bug

Installed Versions
Latest

I think it comes from the fact of using categorical variables in GBTClassifier. Can anyone give an example of solcing this issue? I heard, df.rdd.toDF() solve the problem, but im not sure. It has to be used after or before indexing categorical variables?

Hi, the example given is not reproducible at the moment. What is ruta_pipeline_hdfs, And how is the model trained? It would be best if the problem can be reproduced using synthetic data such as from np.random.rand().

It is a common GBTClassifier trained with some categorical and numemric variables, so the problem comes from the categorical ones. It is said that SHAP doesnt work with pyspark models trained with string indexers.
As soon as i come back from holidays i will let you an example that is reproducible.

@thatlittleboy here you have an example. Ive just used two columns, and a binary target. Then Ive used a GBTClassifier. Then I try to run SHAP, but the same BUG.
from pyspark.sql import SparkSession
from pyspark.sql.functions import col
import random

# Create Spark Session
spark = SparkSession.builder.appName("Shap").getOrCreate()

def categoria_aleatoria():
    categorias = ["A","B","C"]
    return random.choice(categorias)

# Create DataFrame
data = [(random.randint(1, 100), categoria_aleatoria(), random.randint(0, 1)) for _ in range(10)]

# Create Spark DataFrame
df = spark.createDataFrame(data, ["numeric", "categoric", "label"])

from pyspark.ml.classification import GBTClassifier
from pyspark.ml.feature import StringIndexer, VectorAssembler
from pyspark.ml import Pipeline

# Indexing categoric column
indexer = StringIndexer(inputCol='categoric', outputCol='indexed_categoric')

# Assambling columns
assembler = VectorAssembler(inputCols=["numeric","indexed_categoric"], outputCol='features')

# GBTClassifier
gbt_classifier = GBTClassifier(featuresCol="features", labelCol="label")

# Pipeline for each step
pipeline = Pipeline(stages=[indexer, assembler, gbt_classifier])

# Train
pipeline = pipeline.fit(df)

import shap
import numpy as np

explainer=shap.Explainer(pipeline.stages[-1])

However, if I run the same code, building the column cindexed_categoric with CASE in sql, without the indexer, it works.

from pyspark.sql import SparkSession
from pyspark.sql.functions import col
import random

# Create Spark Session
spark = SparkSession.builder.appName("Shap").getOrCreate()

def categoria_aleatoria():
    categorias = ["A","B","C"]
    return random.choice(categorias)

# Create DataFrame
data = [(random.randint(1, 100), categoria_aleatoria(), random.randint(0, 1)) for _ in range(10)]

# Create Spark DataFrame
df = spark.createDataFrame(data, ["numeric", "categoric","label"])\
    .withColumn("indexed_categoric",sf.expr("""CASE WHEN categoric = 'A' THEN 0
                                                    WHEN categoric = 'B' THEN 1
                                                    ELSE 2
                                                    END"""))

from pyspark.ml.classification import GBTClassifier
from pyspark.ml.feature import StringIndexer, VectorAssembler
from pyspark.ml import Pipeline

# Indexing categoric column
indexer = StringIndexer(inputCol='categoric', outputCol='indexed_categoric')

# Assambling columns
assembler = VectorAssembler(inputCols=["numeric","indexed_categoric"], outputCol='features')

# GBTClassifier
gbt_classifier = GBTClassifier(featuresCol="features", labelCol="label")

# Pipeline for each step
pipeline = Pipeline(stages=[assembler, gbt_classifier])

# Train
pipeline = pipeline.fit(df)

import shap
import numpy as np

explainer=shap.Explainer(pipeline.stages[-1])

The code above works. @thatlittleboy, do you know how to make SHAP work with indexer, or can i help in fixing it?
Thanks

@thatlittleboy Still waiting a response, does anyone know how to solve it?

@venser12 Sorry for the delayed reply, I was on a business trip the past 2 weeks. I'll take a look at it this weekend.

@thatlittleboy Could I help you in fixing it?? I am working with PySpark at the moment.

@venser12 Hi sorry again for the late reply. I took a look at the problem described (thanks for the reproducible example, btw! appreciate it)
Unfortunately, this issue is part of a larger problem / gap with the shap library at the moment, which is the inability of the TreeExplainer in handling categorical splits. It's not a pyspark-specific problem. See, e.g. https://github.com/shap/shap/issues/2899 for the same issues in LightGBM models. The error message you encountered is a little cryptic, but the root cause is essentially that. If you used shap.TreeExplainer(...) directly instead of shap.Explainer(...), you should see the error message
NotImplementedError: CategoricalSplit are not yet implemented

The bad news is that the solution for this isn't straightforward, I've not wrapped my head around how to fix this yet. (I welcome others to try though, happy to work it through with you).

@thatlittleboy the more difficult, the more fun.
This is important for SHAP, because it would enable any PySpark ML models (everybody uses categorical features, and even more in tree based models), bringing a lot of new users.
I will fork the repository and see what can we do.

@thatlittleboy, I have seen here #1322 that the BUG can be solve with just modifing your df with df = df.rdd.toDF(). However, It just transforms the categoric columns in numeric columns, when the model is trained. So when the Categorical Splits are meant to be done, the model just do a numeric split instead of categorical Split when you use .rdd.toDF().
As a result, .rdd.toDF() will get worse models metrics, because the model lose chances.

@thatlittleboy I have been looking for methods of getting "categorical thresholds" in PySpark trees but I only found the .toDebugString method. Do you know other ones?

@mriomoreno

I have seen here https://github.com/shap/shap/issues/1322 that the BUG can be solve with just modifing your df with df = df.rdd.toDF().

Yea. That's more a workaround than a solution since it involves retraining your model.

@thatlittleboy I have been looking for methods of getting "categorical thresholds" in PySpark trees but I only found the .toDebugString method. Do you know other ones?

Not of the top of my head, no.
So for the record, since there is interest here, here's what I think would need to be done before this problem can be resolved cleanly. (Shorter solutions might exist, I didn't investigate too deeply into this):

Locate how categorical splits and thresholds are implemented in pyspark ml.
Change SingleTree to be able to handle categorical splits somehow, preferably in a way that can be applied to all the other tree-based boosters/models like LGBM, XGB, Sklearn, etc.
Modify the cext module, most likely. Depending on how step 2 was implemented.

@thatlittleboy Okay, lets see how to solve 1.

@thatlittleboy so I have the first point. We can know which categories go to left and which to right with the following method
left_categories = list(node.split().leftCategories())
right_categories = list(node.split().rightCategories())

where node is org.apache.spark.ml.tree.InternalNode

@thatlittleboy Im modifing 'SingleTree', adding left and right categories. I will open a PR when Im finish.

@thatlittleboy, one question, how can i run the _tree.py file straight?
I have the following error:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[12], line 11
      8 import scipy.special
      9 from packaging import version
---> 11 from .. import maskers
     12 from .._explanation import Explanation
     13 from ..utils import assert_import, record_import_error, safe_isinstance

ImportError: attempted relative import with no known parent package```

@venser12 Sorry for the late reply, must've missed this.

how can i run the _tree.py file just straight?

I'm not sure that you can, I suggest you create a python file that imports from the _tree.py file (after doing an editable install).
Then you can set breakpoints in that file and run a debugger if you want to run through the file line-by-line.

authors: mriomoreno thatlittleboy venser12

repo: shap/shap


text:
Add an option to fallback on Backport when first-party native API is not available?

Describe the feature
A new public EnvironmentValue (and optionally a public-facing ViewModifier) that enables or disables internal use of the first-party APIs that this package backports when running on a device where it's available?
Is your feature request related to a problem?
Something I find myself doing when using SwiftUIBackports is creating local modifiers and views that check the OS version (#available) and return the native API when it's available and fallback on this package's backports for older OS'es. It'd be super awesome if this could be added as a built-in feature.
Proposed solution
A private EnvironmentKey of type Bool. Maybe the KeyPath for EnvironmentValues would be called something like \.preferNativeAPIWhenAvailable (which would be set to true when the developer wants to use the first-party API when the device is on an OS version that supports the native API). This could also be confusing because it doesn't refer to SwiftUIBackports in the name, so it might not be clear its purpose (aside from good documentation). Or it could be called \.preferBackportOnNewerOS, which would make its value imply the opposite.
This could also be implemented in SwiftBackports.
Additional context
An example of my current solution (which I'm suggesting be implemented in SwiftUIBackports) is as follows:
struct BackportNavigationLink<P: Hashable, Label: View>: View {
    var value: P?
    var label: () -> Label

    @ViewBuilder
    var body: some View {
        if #available(iOS 16, *) {
            NavigationLink(value: value, label: label)
        } else {
            Backport.NavigationLink(value: value, label: label)
        }
    }
}

The only difference in the implementation would be this:
struct BackportNavigationLink<P: Hashable, Label: View>: View {
    @Environment(\.preferBackportOnNewerOS)
    private var preferBackportOnNewerOS

    var value: P?
    var label: () -> Label

    @ViewBuilder
    var body: some View {
        if #available(iOS 16, *), !preferBackportOnNewerOS {
            NavigationLink(value: value, label: label)
        } else {
            Backport.NavigationLink(value: value, label: label)
        }
    }
}

This is a really interesting idea actually. I had considered baking this in before, but I wanted the API consumer to have consistency and sometimes a backport may not be 1-2-1 since I have limited knowledge in some cases as to how something should be implemented.
However this solves that problem by allowing the consumer to make this decision, right at the usage or even app-wide.
I love this! Would you be keen on raising a PR that updates the current code to this?
I'm quite busy atm and wouldn't have the time this requires to update and test properly.
The SwiftUIBackportsDemo repo can be used to verify this I think which will aide in testing.
I'd def be interested in a PR for this 👍

Sounds good! I'll see if I have some time in the next few days or so to throw something together. Would you be interested in this being added to every single backport in the package? Happy to do so. And if it goes well, maybe I'll fork and do the same thing with SwiftBackports. I will admit, I'm not a pro at testing, but would be happy see what I can do.

Yeah the testing will be key, against each simulator to ensure we don't break anyway, but I'd def see this as a larger update that applies to all, to ensure consistency if you're up for it.

Looks like I can install simulators back to iOS 14, but iOS 13 would be good to have. Not sure why it isn't available to me in Xcode 15.0.1, but at least for now? I'll start things out and start a checklist for testing.

What do we think would be a good name for the property? And a default value? Should the default be to use the native API when available? So should people have to opt-in to use the native when available or "opt-out"?
I figure the only thing public facing would be a single ViewModifier function at a global level (or at a local level when needed) that takes a Bool.

I agree with the approach. To be honest in keeping with 'current' expectations we should probably make it false by default, because then nothing changes unless you use that API.
That being said, lets go the other way and I'll release this as a major update with notes.
So as you described, the user must OPT-OUT or else native APIs will be used by default (when available).
Therefore naming, I think we should go with:
func backportPreferred(_ preferred: Bool)

The same name for the EnvironmentKey etc for consistency.

This aligns well with the current environment backports, where the prefix is always backport and I think its clear enough with documentation and auto-complete.
I don't think its necessary to include the word API since we'd never use this anywhere else so there shouldn't be any ambiguity.

Just saw that this got closed. I actually mostly finished this, but didn't have the time to get back to it and really finalize it. Unfortunately, I just don't have the time to catch back up on it and commit my work. Let me know if you want me to drop my files in here.

Give it a peek. There are some of the backports that just aren't able to take advantage of this, but I tried to implement it anywhere I could. You'll want to check Environment+preferNativeAPIWhenAvailable.swift, which creates the internally-used \.backportPreferred Environment value. This would be set by using the public .backportPreferred(_:) modifier.
SwiftUIBackports.zip


text:
Add StateObject backport

[x] Have you read the Contributing Guidelines?

Describe your changes
This adds a @StateObject backport.
Screenshots
The implementation was manually checked with some test code.

init for the ObservableObject is called only once, unless the view identity changes
Updates in the parent view don't reset the StateObject backport state
Updates to @Published properties propagate to the view
Binding created from this backport behaves as expected

https://user-images.githubusercontent.com/38748295/176349845-8b1fa23d-50bd-4c8f-bc71-2a375ff55fdd.mp4
(Gist: https://gist.github.com/auramagi/4a810e2c64b1be04a40e0c2d775a3529)

Hey thanks for this it looks great at a glance. Just to let you know I may not be able to properly review and test this today as I'm on another project.
Couple small things did stand out to me though.

Would be great if you could bring in the official header docs so it matches expectations and usually Apple's included sample code etc which helps a lot.

Also could you add @availability(iOS, deprecated: 14) as well as the other platforms.

Interesting, can this backport the same behavior as iOS 14 :)
Though I'm not a SwiftUI advaned user, I have iPhone running iOS 13 and simulate from the old @ObservedObject for actually @StateObject is a really pain.

@dreampiggy that's very similar actually and yes the idea is that this would support iOS 13+

@auramagi v1.0.9 is now available 👍 Thanks again.

source: gharchive/pull-request

authors: auramagi dreampiggy shaps80


text:
Common instance set configuration

In a .sharing.io there should be a configuration file that declares commonly used repos and env.
An proposal for the config file
templates:
  - name: Kubernetes testing
    repos:
      - cncf/apisnoop
      - apisnoop/ticket-writing
      - kubernetes/kubernetes
    env:
      - TZ: UTC
      - CUSTOM_ENV: hello
  - name: FlatTrack development
    repos:
      - https://gitlab.com/flattrack/flattrack

The file could be called templates.yaml.
This would be displayed on the frontend as an optional set on the new instance page.
When selected fields would be populated (such as repos and env).

The name of the template should also be passed through so there can be final steps for set up in the .sharing.io/init if a given template is selected

repo: sharingio/pair


text:
Constant: tau

Having the built-in constant tau (equal to 2 * pi) would be very handy for describing the radians in a full circle instead of needing to use 2 * pi in many equations like a circle's circumference.

We have tau defined here: https://github.com/sharkdp/numbat/blob/master/numbat%2Fmodules%2Fmath%2Fconstants.nbt#L10-L12
It's currently only available as a Unicode identifier, but feel free to add a tau alias.
In the CLI version, you can also type \tau<tab> to have the Unicode character inserted.

Glad to see it's included! I wouldn't have thought to type the Greek letter when pi works. Is there a reason only pi is aliased as such by default? I suppose it doesn't matter that much to me, since this would all be customizable in a custom usage, but I suppose I'm just curious now :)

Is there a reason only pi is aliased as such by default?

I probably just wanted to keep the name "tau" free, since it's often used for time-related quantities in physics (e.g. relaxation times).

authors: Keavon sharkdp

repo: sharkdp/numbat


text:
Make pluralization systematic

Some units are missing their plural forms, for example Farad
10 × microfarads × 10 kΩ
Unknown identifier: microfarads

It would probably be better rather than adding plural forms and abbreviations as synonyms to have a more systematic approach.
Most units are regular nouns: 1 farad -> 2 farads. Some are irregular: 1 henry -> 2 henries. Some have no plural: 1 hertz -> 2 hertz.

Thank you very much for the feedback!
Do you have any proposals on how this could be treated in a systematic way? I'm afraid all plural forms will simply have to be listed somewhere. You are right though, it should be done in a more consistent way (probably here in this repository where we basically "store" the units).

authors: mdejean sharkdp

repo: sharkdp/purescript-quantities


text:
[UWP] DirectInput not compatible package

Can not install SharpDX.DirectInput 3.0.1 on UWP project.
Here are output:
Restoring packages for 'App8'.
Restoring packages for d:\dev\App8\App8\project.json...
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0.
Some packages are not compatible with UAP,Version=v10.0.
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-arm).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm).
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-x86).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot).
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-x64).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64).
SharpDX.DirectInput 3.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
Package restore failed for 'App8'.
Package restore failed. Rolling back package changes for 'App8'.

DircetInput is deprecated and not a certified API for UWP, so they are not allowed, so SharpDX cannot provide it. See #693 for other details

authors: odens xoofx

repo: sharpdx/SharpDX

license: mit

license_source: bigquery


text:
Fix TODO in 0.9.41

          TODO

Originally posted by @zjb0807 in https://github.com/shaunxw/xcm-simulator/pull/44#discussion_r1125959595

What's up with this ticket? xcm-emulator seems to be stuck on 0.9.40 support?

https://github.com/paritytech/polkadot/pull/6824 This PR has not been merged yet.
Parity integrates the xcm-emulator into cumulus, it can be used since 0.9.43
https://github.com/paritytech/cumulus/pull/2447

Ok so it's not worth merging https://github.com/shaunxw/xcm-simulator/pull/51 which brings support to 0.9.41? What if some teams are on either 0.9.41 or 0.9.42? Just asking for info since that's exactly the situation we are in! We might have a new release based on 0.9.42, and would need to have xcm-emulator support that.

repo: shaunxw/xcm-simulator


text:
How to dispose the scanner

When I want to use textField widget's  onEditingComplete callback , using Enter, barcode scanner is working.But I want to dispose it.How can I do it?

Why dispose it? Simply in your callback check if you want to do something with barcode or not.

authors: EcenurOzal shaxxx


text:
Handle non-homebrew installations of aws cli

In the below code i see that this tool implicitly assumes that aws cli was installed using homebrew
https://github.com/shearn89/ssmcli/blob/3faf1f75aa1db5bef23d268fab2c043410972f5d/internal/api.go#L26
It would be great if this tool supports aws cli installations using yum/apt/direct download

Good point! I'll see what I can do!


text:
Restrict access/detect access to config via webconsole

Is it possible to forbid user loading grailsApplication.config/config via webconsole at all? Or detect if he tries  to load http://docs.groovy-lang.org/latest/html/gapi/groovy/util/ConfigSlurper.html ?

There's no easy way that I know of.

authors: majkelo sheehan

repo: sheehan/grails-console


text:
You know you don't need to specify the dependencies of the dependencies, right?

hey at least this is on topic

btw @sheepy0125 there's a builtin module named configparser :kekw:

blame pip freeze > requirements.txt :)

btw @sheepy0125 there's a builtin module named configparser :kekw:

too late now, whoops!


text:
Host / subdomain support

Is there planned support for host/subdomain?

Hi @patie , actually this out of the scope of nest-router goal
the router module is just a simple function that take some configurations and add some metadata on every module, the other work goes in nest/core  it will also read that metadata and refactor the routes to it.
so back to your issue, until now there is no future plan to add support for vHosts/subdomains to this package.
but as nest is built in top of expressjs you could use one of these nice packages that do what you need:
https://github.com/expressjs/vhost
and the good docs for it: https://expressjs.com/en/resources/middleware/vhost.html
and also take a look at this nice one https://github.com/bmullan91/express-subdomain

authors: patie shekohex

repo: shekohex/nest-router


text:
WEBHOOKS it only works in the pro version

WEBHOOKS it only works in the pro version, so this subscription is not worth it. I tried the subscription as a trial and I still didn't manage to make a tapo tp link smart socket work

A video tutorial was good

repo: shells-dw/loupedeck-ifttt


text:
Multiple select, slot="selection" does not work

Multiple select Documentation  says that a slot "selection" can be used, but it is nowhere to be found in available slot list and it does not work if I just use the sample code. How can I control the display of multiple options selected?
Edit: it works, but it's not documented properly.

Multiple select Documentation says that a slot "selection" can be used, but it is nowhere to be found in available slot list and it does not work if I just use the sample code. How can I control the display of multiple options selected?
Edit: it works, but it's not documented properly.

can you please let us know how you solved it?

After all this time not sure if this is the relevant code, but "multiselect" with "slot="selection" " in my code looks like:
<multiselect @close="closed" @select="selected" @open="opened" ref="multiselect" v-model="selectedlist"
                    :options="options"
                    :multiple="true"
                     :placeholder="placeholder"
                     :searchable="false"
                     :show-labels="false"
                     label="text" track-by="value">
            <template slot="selection" slot-scope="{ values, search, isOpen }">
                {{ values.map(v=>v.text).join(', ') }}
            </template>
        </multiselect>

Key detail being the <template slot="selection"...</template> inside <multiselect></multiselect>
Hope this helps

Well in my case, I must recommend to check the version, I was working with the CDN 2.1.0 which is in the docs, I tried the example and failed. I updated to 2.1.6 and works as expected.

authors: DanyDes Vemir98 karkius

repo: shentao/vue-multiselect


text:
Compress WebRTC framework

It would be nice to compress WebRTC framework into gzip the same is it in react-native-webrtc repo https://github.com/react-native-webrtc/react-native-webrtc/tree/master/apple

Native WebRTC libs are fetched from React Native WebRTC repo now. I don't think we should maintain own WebRTC builds at the moment.

repo: shepeliev/webrtc-kmp


text:
Controller specs

Controllers specs
RSpec tests:

Create a Request spec file for Users and Posts controllers.

The tests check:

If response status was correct.
If a correct template was rendered.
If the response body includes correct placeholder text.

Thank you for kindly reviewing my project ❄😊

thank you :)

repo: sheylaPozo/blogApp


text:
Mismatch header versions on nixos

Hi, I'm trying to install this plugin, but it doesn't load, it says:
hyprsplit: Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver.
I'm not sure if it's a bug or a problem with my config :/
flake.nix
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
    hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
    hyprsplit = {
      url = "github:shezdy/hyprsplit/main";
      inputs.hyprland.follows = "hyprland";
    };
    home-manager = {
      url = "github:nix-community/home-manager/release-24.05";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  ...

    outputs = { nixpkgs, hyprland, home-manager, ... } @ inputs:
  {
    nixosConfigurations.kubapc = nixpkgs.lib.nixosSystem {
      specialArgs = { inherit inputs; };

      ...

        home-manager.nixosModules.home-manager
        {
          home-manager.extraSpecialArgs = { inherit inputs; };
          home-manager.useGlobalPkgs = true;
          home-manager.useUserPackages = true;
          home-manager.users.jakub = import ./home.nix;

          # Optionally, use home-manager.extraSpecialArgs to pass
          # arguments to home.nix
        }
      ];
   };

  };
}

home.nix
{ config, pkgs, inputs, ... }:

{
  wayland.windowManager.hyprland.enable = true;
  wayland.windowManager.hyprland.extraConfig = ''${builtins.readFile ./dotfiles/hypr/hyprland.conf}'';
  wayland.windowManager.hyprland.plugins = [ inputs.hyprsplit.packages.${pkgs.stdenv.hostPlatform.system}.hyprsplit ];
}

configuration.nix
  programs.hyprland.enable = true;
  programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;

Could someone give me a hand?

wayland.windowManager.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland in home.nix?

I didn't have that in the home.nix. But after putting it in, it still doesn't work. Even if I put it in, and remove the line in configuration.nix.

if that doesn't work then im not sure what is wrong. all i know is that the plugin is somehow built for a different version hyprland. someone that actually uses nixos will probably have to help you :/

Yeah no worries, thanks anyway. I'm sure the plugins works great, keep up the good work :)

In-case this helps someone, I had the same, and "solved" this by rebooting, instead of switching nix profiles. https://github.com/hyprwm/Hyprland/issues/6910#issuecomment-2256672652

Running into the same issue sadly I think there might just be something wrong with the flake in this repo

Managed to get it to work with this
  wayland.windowManager.hyprland = {     package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;     enable = true;     plugins = [       inputs.hyprland-plugins.packages."${pkgs.system}".hyprsplit
};

Might be outdated pin in flake.lock?

Happens on every update of Hyprland for me, it goes away after a reboot.
I am using the flake version of both Hyprland & Hyprsplit.
It feels like one component is reloaded automatically, while the other is not (hence version mismatch).

@kirilsh1993 Pretty sure that's normal since hyprland needs to be restarted to rebuild plugins.

Got the same issue on Arch after upgrading to Hyprland 0.45

repo: shezdy/hyprsplit


text:
P0013R1 Logical Operator Type Traits

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0013r1.html

実装済み

repo: shibainuudon/HamonCore


text:
Implement interface and struct tags for structural information.

The vast majority of da's output a status response of some kind, this can be simplistic from a "On/Off" or more complicated for "Power Supply".
At the moment any consumer (shimmeringbee/controller especially) has to have code to convert these structures into JSON, infact there is an developer overhead with added any new Capability.
However, for forethought (or dumb luck), all capabilities that have data to return do so via a function that looks a bit like:
func Status(context.Context, da.Device) interface{} (though not actually an interface{})
Using struct tags and reflection it would be possible to instruct consumers (such as shimmeringbee/controller) on how to display these structures.
While we absolutely could use json tags, JSON may not be our only output format - further the MQTT and Websocket outputs of the controller have the ability to output specific messages for individual field or smallest grouping of fields. A specific struct tag could permit us to calculate where these lines are.
With a little more thinking on the function prototype, or figuring out how to invoke Status generically on all capabilities it may be possible to remove large amounts of the controller code and reduce developer overhead adding new capabilities.

The existing Status function with its capability specific return type is great for small scale, however it should be possible to generify.
The typing information IS helpful for developing directly against a da, but not that useful when used more generically. I don't think there are any other users of da or zda to be honest, so we could breaking change (major version bump), or add another function to every da that returns interface{}.
Unless there's something we can do with generics? Will have to read up.

repo: shimmeringbee/da


text:
Deal with Datalad config on Colab

Getting this:
It is highly recommended to configure Git before using DataLad. Set both 'user.name' and 'user.email' configuration variables.

Let's find a way to ignore those

No 'easy' way to ignore, so let's close


text:
Make service ensure/enable configurable

Running this in a Docker container doesn't need to have the service running. Allow service ensure/enable to be parameterized.

@cliffano , any chance at having a look at this?

@evanstachowiak Apologies for taking a long time to visit this one. Thanks for the contribution.
Do you mind sharing an example how you use it? I'm guessing you disable the services and set service provider to none?
Also, do you use this mostly with Docker?

@cliffano no worries, thanks for getting back to me and merging.
In hiera I set service_ensure to false:
ssm_agent::service_ensure: false
And yes, I'm using this exclusively in Docker. Since systemd is not installed/running in my container when I'm building the image, this module was failing.
To run the ssm agent when the container starts, I am using an alternate process management service, called pm2.

authors: cliffano evanstachowiak

repo: shinesolutions/puppet-amazon-ssm-agent


text:
Add addon ForMember

会員がログインしている時のみ閲覧できるようにアドオンを追加しました。

Coverage increased (+0.006%) to 83.357% when pulling 63978e1c1c113a5769f942e57dc25871a79e94a0 on kanahebi:addon/for_member into d7adc9a080174de620cd06e153a3630b1a198844 on shirasagi:master.

Coverage increased (+0.008%) to 83.369% when pulling 628d2d183423695845a5dc0add3bf134b4b95578 on kanahebi:addon/for_member into 9c30710e981ef9432912879ef283048c37cddf78 on shirasagi:master.

authors: coveralls kanahebi

repo: shirasagi/shirasagi


text:
Update php@8.2-debug

Build php@8.2-debug

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-php


text:
Finetuning and Vocoder Training

Thank you for this great work!
I successfully trained on my custom dataset for another language. In the saved checkpoints folder, I see all checkpoints, including the last.ckpt. To sysnthesize speech using my custom trained model, do I need to train the vocoder? because I have another language? or i can use the already pretrained one with matcga-tts?

You should be able to use the universal version of the vocoder. But if it is too noisy, you can try switching to BigVGan or fine-tuning the vocoder entirely.

Oh okay. I will try out the universal version. Thank you


text:
Generate Files

I am trying to use the procedures and scripts to create the .mol2, .pops, and .profile files, but it appears the separate_pdb_chains.py does not seem to actually separate the chains as it should. It is potential I am just using it wrong, but I can not get it to seperate the pdb files into chains as it appears this script should do.

Additionally, step 3 does not work at all. I am not sure when I was supposed to install POPScomp or use their server, but that step is not clear at all on how to generate the pops file

Resolved by this PR: https://github.com/shiwentao00/Graphsite-classifier/pull/18


text:
Allow comparing visits for multiple short URLs, tags or domains

Summary
The charts currently show the stats for just one entity. Displaying multiple entities would allow comparing their visits and see which one performs better.

This is the way I see this working:
Initially I was picturing this as an enhancement of the existing visits page, where you would be able to select other occurrences of the same entity.
However this has some considerations:

You need to be able to select other items from a list, which in the case of short urls is challenging.
That section is complex, and introducing this is not easy.
Some of the capabilities there make sense only for a single entity, like the option to delete visits.
Similarly to the previous point, comparing visits is useful over time, but not that much over locations or as a plain list.

Because of this, I came to the conclusion there should be a new section specific to compare visits, displaying only a line chart with visits over time, and time-based filters.
In order to get to this section, a user would have to select which items to compare first.
This would be done by adding a new "Compare visits" option in drop-downs for short urls, tags or domains.
When this option is clicked, it will temporarily add the corresponding item to some kind of overlay or card, including an extra CTA.
Once the user is happy with the selection, clicking that CTA will take him/her to the new "compare visits" section.

repo: shlinkio/shlink-web-component


text:
Got panic while parse pkg if it's AndroidManifest.xml has some problem.

ldfroezja.apk
panic: runtime error: index out of range [4294967167] with length 565

goroutine 22 [running]:
github.com/shogo82148/androidbinary.(*ResStringPool).GetString(...)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/common.go:119
github.com/shogo82148/androidbinary.(*XMLFile).GetString(...)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/xml.go:168
github.com/shogo82148/androidbinary.(*XMLFile).addNamespacePrefix(0x881b40?, 0x46ec90?, 0xc0?)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/xml.go:215 +0x5e
github.com/shogo82148/androidbinary.(*XMLFile).readEndElement(0xc00013fe30, 0xc00046ec90)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/xml.go:299 +0x10a
github.com/shogo82148/androidbinary.(*XMLFile).readChunk(0xc00013fe30, {0x8816c0?, 0xc0001b91a0}, 0x133e0)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/xml.go:157 +0x167
github.com/shogo82148/androidbinary.NewXMLFile({0x8816c0?, 0xc0001b91a0})
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/xml.go:108 +0x14c
github.com/shogo82148/androidbinary/apk.(*Apk).parseManifest(0xc0001e4000)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/apk/apk.go:162 +0x125
github.com/shogo82148/androidbinary/apk.OpenZipReader({0x882000?, 0xc000012a68?}, 0x0?)
	/go/pkg/mod/github.com/shogo82148/androidbinary@v1.0.3/apk/apk.go:61 +0x85

I am not familiar with the Android package. I just stumbled upon this panic, but there is no additional information on what happened.
If I find more information, I will keep you updated.

I can't access to ldfroezja.apk...

I can't access to ldfroezja.apk...

ldfroezja.apk
I upload it to onedrive again.


text:
Clean up CFeatures::dense_dot implementations

Currently, there is a ton of copy pasted code in CFeatures::dense_dot (in the .cpp).
This task is to use C++ (11) features to replace this with a templated version that avoids the heavily redundant code.
Or even use linalg as that will be faster.
Ask if you need a pointer to get started

I'll bite. Totally new to making open-source contributions and looking to start getting involved in the community. Any pointers would be appreciated!

This task requires a bit of C++ experience. First have a look at the code and see if you can find things you don't like. Then we can discuss

It's entirely possible that I'm not totally qualified for this fix as most of my experience lies outside of C++. It's a language I'd like to get more experience with, but at the same time I don't want to waste everyone's time floundering with an issue.

Thinking of taking a crack at this. @karlnapf did you mean the code in DenseFeatures.cpp, starting line 633?

yes, please go for it

try to use SIMD where possible (linalg)
avoid redundant code
templates are powerful

and please no manual template spezialization for different types of the dot products.

authors: ck244 karlnapf nan-galad

repo: shogun-toolbox/shogun


text:
support executioner.execute(Generator | GeneratorFn)

Shortcut to execute Generators or Generator Functions without instantiating a task.
Optionally make it possible to run statically, as Executioner.execute(...)

worked on here

Working on execute-gen-genfn-directly.

Feature added in #3.

repo: shopgun/coexec


text:
Unable to Install Shopper Package on Laravel 7.3

Dear Team,
I am trying to install Shopper Package on Laravel 7.3 but couldn't install the package via this command
composer require shopper/framework
Showing Error
 [InvalidArgumentException]
 Could not find a matching version of package shopper/framework. Check the package spelling, your version constraint
 and that the package is available in a stability which matches your minimum-stability (dev).

before this step, create an empty laravel project, so you can execute this command

before this step, create an empty laravel project, so you can execute this command

hahahahhahha  .....what a fool you are... I am working on laravel from more than 4 Years.

repo: shopperlabs/shopper


text:
getMailTemplate() method returns Systems default translation template instead of orders language translation

Description
Users receive english email instead of german email when you change order status in admin panel.
This happens when german is a second language and the default language of the shop is english.
Users Order is also marked as a german order (see attached screen)
Possible Solution
use orders language ID to determine mail template translation instead of context language ID.
Additional context
in vendor/shopware/core/Checkout/Order/Api/OrderActionController.php mehtod getMailTemplate()
running:
dd($context, $order->getLanguageId()); returns:

2fbb5fe2e29a4d70aa5854ce7ce3e20b is english language ID  and used to get the template
ad1b980561b2463b9bb2242adefe33f9 is the german language ID which is linked to the order but not used to retrieve the mail template here.

Can't be reproduced in trunk

authors: shyim themazim

repo: shopware/platform


text:
NEXT-22748 - Fix permanent offcanvas button in cms el product descrip…

1. Why is this change necessary?
If the cms element Product descriptions & reviews is placed in a block OTHER than Product description & reviews,
the button "Close menu" is permanently displayed in the tab content because the class product-detail-tabs from the
block is missing.
2. What does this change do, exactly?
Move the class product-detail-tabs from cms-block-product-description-reviews to cms-element-product-description-reviews
to make sure it is never missing.
3. Describe each step to reproduce the issue or behaviour.

In the layout editor (administration) place a block other than 'Product description & reviews' and change one of the
elements to 'Product description & reviews'

Before:

After:

4. Please link to the relevant issues (if any).
https://issues.shopware.com/issues/NEXT-22748
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/NEXT-23599
Please use this issue to track the state of your pull request.

Thanks again for your contribution, your PR is merged now! :tada: :blue_heart:

authors: Lilibell keulinho shopwareBot


text:
[SW-12065] Replace backend hoverbutton with button

Please describe your pull request:

Why is it necessary?
What does it improve?
Does it have side effects?

See https://issues.shopware.com/#/issues/SW-12065

Questions
Answers

BC breaks?
no

Related tickets?
https://issues.shopware.com/#/issues/SW-12065

Thanks @kekster
We decided to close this PR because of time constraints and limited overall benefit to the product.

authors: janbuecker kekster

repo: shopware/shopware


text:
add missing PHONENUM and fix saving phone number

http://issues.shopware.com/issues/PT-6714

Hi Andre,
thanks for your PR. if have scheduled the linked ticket. we will have a look at it in the next PayPal sprint.
best regards

hey @hlb-schmidt
after two years... sorry for that! :see_no_evil:
thanks for your contribution anyway! :+1: :blue_heart:
your fix will be part of the next release

authors: hlb-schmidt mitelg

repo: shopwareLabs/SwagPaymentPaypal


text:
update change in mendablesearch.js

Not including 'window.' might lead to a scope resolution error, ensuring it's accessed within the global scope.

@AashiGuptaShorthillsAI, Please resolve your conflicts and remove the path changes

authors: AashiGuptaShorthillsAI ShorthillsAI


text:
Docker 挑戦ノート

メモリー容量がなくてうまくいかなかった事実を残しておく。

学習できる環境が整ったので着手する。

repo: showa-yojyo/notebook


text:
ProgressBar not pausing if video is added

Hello @shts  , first of all thank you for the library. I have been running into this issue where if i add a video as the story content and long press on the screen, the progressbar starts it's animation while i am pressing and holding on the screen. when i let go of my finger , it again starts from the first and keeps progressing. If the content is image , it works perfectly fine. The progressbar pauses wherever it is on pressing the screen and resumes from the same place on releasing the finger.
This is the code for the onTouchListener:
`
private View.OnTouchListener onTouchListener = (v, event) -> {

    switch (event.getAction()) {

        case MotionEvent.ACTION_DOWN:

            pressTime = System.currentTimeMillis();

            viewBinding.stories.pause();

            return false;

        case MotionEvent.ACTION_UP:

            long now = System.currentTimeMillis();

            viewBinding.stories.resume();

            return limit < now - pressTime;
    }
    return false;
};`

This works completely fine for image story. I modified this for the video:
`
private View.OnTouchListener onTouchListener = (v, event) -> {

    switch (event.getAction()) {

        case MotionEvent.ACTION_DOWN:

            pressTime = System.currentTimeMillis();

            if (playable != null) {

               viewBinding.stories.pause();
                playable.pause();

            } else {

                viewBinding.stories.pause();
            }

            return false;
        case MotionEvent.ACTION_UP:
            long now = System.currentTimeMillis();
            if (playable != null) {

                viewBinding.stories.resume();
                playable.play();

            } else {

                viewBinding.stories.resume();
            }
            return limit < now - pressTime;
    }
    return false;
};`

When I do this , the video is paused. But the progressbar keeps animating while holding and pressing the screen and when i let go it again starts from the beginning and goes all the way to the end. I am not sure why this is happening. Please see the video here : https://imgur.com/a/MGUPD2t
The video library i use is Exoplayer 2.

@shts @teresaholfeld I would like to get some help on this since I am using this library for my application.

@shts I would like to get some help on this since I am using this library for my application.

Hi, how did you implement video in that library?
Can you help-me? could you help me with some code? I've only been able to deploy images so far

@jonataslaw I have already posted the sample implementation of my code with audio and video. The video player I have used is Exoplayer

@maximus9600  @jonataslaw hello. Did you find any solution for this case? I have the same issue

@jonataslaw I have already posted the sample implementation of my code with audio and video. The video player I have used is Exoplayer

link ???

Hey @maximus9600 If this still an issue, call the pause/resume method as follows:
 Handler().post { storiesProgressView.pause() }
And
Handler().post { storiesProgressView.resume() }
Those are in Kotlin though but i trust you'll understand.

Hey @maximus9600 If this still an issue, call the pause/resume method as follows:
 Handler().post { storiesProgressView.pause() }
And
Handler().post { storiesProgressView.resume() }
Those are in Kotlin though but i trust you'll understand.

You can also use view.post() to update UI

authors: AManan806 ahmedmolawale elkasvirElka jonataslaw maximus9600 samir-gawas

repo: shts/StoriesProgressView


text:
Improve documentation for nextra-theme-blog

Hey,
I'm starting to use the blog theme and would like to document my findings and setup. Is there any preferred structure for the doc ? e.g. is "Nextra Docs" in the sidebar about "Nextra Docs Theme" or simply "Nextra Documentation" (more generic) ?
I can open a PR with a little guidance.
Thanks !

Hi! It's about "Nextra Docs Theme" in my mind, feel free to improve it :)

Hey, alright, thanks, will suggest some base docs :)

authors: Djiit shuding

repo: shuding/nextra


text:
Arduino due can't exit from bootloader mode often

Hello! PC is connected to Arduino Due by Native USB. Often after sketch uploading through Native USB or when I plug usb cable or after OS restarted (power restart), Arduino Due still keep in Bootloader mode and usb communication with PC doesn't work and sketch doesn't work.
After hardware reset of Arduino Due it become normal.
lsusb | grep boot
Bus 001 Device 020: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
I run manually bossac's command to reset Arduino Due but it doesn't help:
~/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino$ ./bossac -p ttyACM0 -R
lsusb | grep boot
Bus 001 Device 020: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
Why can't Bossac reset CPU? Is this bug or need send some additional command to CPU to reset?
BTW: Arduino Due can recieve new sketches but can't be reseted by Bossac.

@sined23 ...do you have verbose debugging enabled in the Arduino preferences? If this is still happening, please attach the output here (or at least, reply with it using code markdown)

BOSSA is a general purpose utility for Atmel devices so Arduino-specific issues belong on the Arduino forums.

authors: shumatech sined23 zrecore

repo: shumatech/BOSSA


text:
Fix https://github.com/shutterstock/rickshaw/issues/1

Make parent a local variable.

This should be looking better with commit 87633b8e75.  Thanks!

authors: dchester erikdahlstrom

repo: shutterstock/rickshaw


text:
Update ankushtripathii.json - Fixing location and profile

Description
I have found a bug that the profile for  Ankush tripathi Location is not set, also the view profile button is not working
Related Issues
#346
Changes Proposed
I have replace the your location with the users current location according to his GitHub Profile (Maharashtra , India)
Checklist

[x] I have read and followed the Contribution Guidelines.
[x] All new and existing tests passed.
[x] I have updated the documentation to reflect the changes I've made.
[x] My code follows the code style of this project.
[x] The title of my pull request is a short description of the requested changes.

@Bashamega Thanks for the contribution.

authors: Bashamega shyamtawli

repo: shyamtawli/devFind


text:
[Bug]: Some formatting functions will result in CSP exceptions

What happened?
When using the editor within an Angular component, a content security policy exception is thrown in the browser if any of these functions are chosen in the editor:

Text alignment
Colors
Ordered / unordered list

The issue is that attempting any of these functions will try to add a style attribute to a DOM element. The CSP exception will then break functionality.
Version
v16.0.1
Angular Version
v16.2.2
What browsers are you seeing the problem on?
Chrome
Link to reproduce
No response
Relevant log output
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-XXXXXXXXX' fonts.googleapis.com cdnjs.cloudflare.com". Either the 'unsafe-inline' keyword, a hash ('sha256-C8oNnV7QJNwOdkv12C9sTrLv3O9tgEE8jtcA5AQhZ+0='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

Willing to submit a PR?
No

Sorry for the delayed reply.
Some styles are in-lined by prosemirror. I guess unsafe inline has to allowed and there are no workarounds for this.

authors: gs-scooter sibiraj-s

repo: sibiraj-s/ngx-editor


text:
Cannot convert-darknet-weights from darknet to h5 format

I trained my own detector follow the instruction of https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects
I set my classes = 1, image width=height=384. But I cannot convert my weight to .h5 format

have you been able to solve this issue? if not...
I had the same problem... turns out that for some reason, yolov4 wieghts have to be placed in home directory, also you need to flag explicitly how many classes are there as shown in image, I have only one class so "-n 1" at the end...
i converted them using gpu on colab and also a vmware virtual machine with ubuntu 18/python 3.6.

have you been able to solve this issue? if not...
I had the same problem... turns out that for some reason, yolov4 wieghts have to be placed in home directory, also you need to flag explicitly how many classes are there as shown in image, I have only one class so "-n 1" at the end...
i converted them using gpu on colab and also a vmware virtual machine with ubuntu 18/python 3.6.
edit: I used colab without gpu

I can confirm that adding my number of classes after the -n flag solved this problem for me.

authors: Michael-Shepherd migueBC vanchung1995


text:
Follow symlinks?

Is it just me or doesn't bitpocket follow symlinks?
I would kill for that as a feature

added --copy-dirlinks to the rsync lines in bin/bitpocket

added --copy-dirlinks to the rsync lines in bin/bitpocket

+1

I prefer to sync symlinks as symlinks, without dereferencing (dereferencing drives me crazy in Dropbox).
But I think I can introduce some variable like RSYNC_OPTS to .bitpocket/config file where you could specify additional switches for rsync. What do you think?

@sickill RSYNC_OPTS sounds like a good suggestion, tho I like to be able to follow symlinks since ~/ differs from machine to machine. For some reason the symlink is broken, and just takes place as a regular folder and/or file, when I've completed one sync

I like the idea of RSYNC_OPTS, that'd be perfect. Would you want this variable to contain all the switches for rsync, or just those which are customizable? I think the latter might be a better idea. Thanks!

I think it only should contain the customizable, just to minimize
breakage
On 01/02/12, Parker Moore wrote:

I like the idea of RSYNC_OPTS, that'd be perfect. Would you want this variable to contain all the switches for rsync, or just those which are customizable? I think the latter might be a better idea. Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/sickill/bitpocket/issues/4#issuecomment-3333289

--
Teo Ljungberg

Agreed! RSYNC_OPTS, with customizable options/switches, would be brilliant.

I'm atleast adding that to my fork

Here it is: https://github.com/sickill/bitpocket/commit/63b8392e2b66d64b7c2ec2210dba897bbf66bbbc

Awesome!

authors: metamorfos parkr sickill

repo: sickill/bitpocket


text:
FIX: added monorepo readme and fixed lint-stage scripts

Wrote Readme For Monorepo

Wrote Readme and Contributing markdown files for monorepo
Added prefix=packages/webapp for all lint-stage scripts to fix husky issue

Screenshots:

[/ ] My changes don't break anything
[ /] I have removed all console logs
[/ ] I have applied prettier before pushing

Mention someone for review
@sidharrth2002

LGTM, but I'll also test the lint command locally later


text:
removed explicit web3 dependency  as it is not needed for the current

functionality. tested with local ganache

@sidsverma  there is some controversy about that recommendation to commit package-lock.json. I was consulting for a large project recently where it caused problems with deployments and CI systems. As this file is re-generated on deployment Linux machines and the hashes inside it are different from the ones on Mac. What benefit do you see with keeping it? Reply back if you feel strongly about putting package-lock.json and I will do it as you are the owner of the repo.  I will be happy to revert the kovan address.

Sure, you can keep the package-lock.json file removed(also add it to .gitignore).
Also, please do revert the kovan address change.

authors: lakamsani sidsverma


text:
\label and \ref macros

Next up on my list is supporting labels and references.  I think I know what to do for the pretext conversion, and might be able to add to the html and markdown output.  Or is there somewhere higher up I should be working?  Am I forgetting something related that could be tackled at the same time?

So, this one is more complicated. You can look at what my students did here: https://github.com/siefkenj/IBLLinearAlgebra-pretext/blob/main/src/plugins/plugin-replace-labels.ts
Basically, you'll need to scan the children of reffable elements to see if there is a \label{} in there and slurp it up as an ID. This might be best done in the same place that \begin{_section} and friends are converted to html-like.
Labelled equations will need their own processing, probably. My students had to take special care with rows.
Once the id's are absorbed, the \label{} can just be replaced with the empty string.
The \ref tags should be easier. But, people probably do things like Equation \eqref{foo} in their source. But Equation <xref name="foo"/> in pretext will render as Equation Equation (2.4), so we'll want some warning system or something to fix that.
Of course, we could configure xref to show only the ref number and just let the user clean up their source manually.

authors: oscarlevin siefkenj

repo: siefkenj/unified-latex


text:
styling is not getting applied when siemensIX component is used on lit

What happened?
we are using siemensIX code and coverting it into lit.
general observation is when component is created in separate file and then its template is used in another file, then styling is not getting applied.
for eg: this can be seen on siemensIX component data time picker and HTML table.
an example code is written in stackBliz  https://stackblitz.com/edit/hzcmgg?file=src%2Findex.html.  which shows styling is not getting applied on date time picker
Request you to please let us know how to handle above issue.
What type of frontend frameware are you seeing the problem on?
Others
Which version of iX do you use?
1.1.0
Code to produce this issue.
https://stackblitz.com/edit/hzcmgg?file=src%2Findex.html.
in the above link, test.js file is newly added and in the index.html <my-element></my-element> is added from the file test.js

@kcmyprojects Lit is using shadow-dom (https://lit.dev/docs/components/shadow-dom/). If you want to use the components with iX v1 you have to deactive the shadow-dom or load the complete css every time.
With v2 we changing this behavior then we are fully encapsulated and you can use every component inside shadow-dom

Will be solved with #511

@kcmyprojects have a look here: https://stackblitz.com/edit/hzcmgg-mduce2?file=src%2Ftest.js,src%2Findex.html
not the cleanest solution, but adding 3 lines until the new version is out could be ok.

authors: danielleroux h4de5 kcmyprojects

repo: siemens/ix


text:
Industrial icon for electrical energy

Suggestion / feature request
Please add an industrial icon for electrical energy to Siemens iX

Hi @drebinge, icon in backlog.

will be added with next icon-font release
name:
electrical-energy(-filled)

Hi Silvio,
Would you already send me a preview of the electrical energy icon? I am just writing a user story where need this icon (UI is part of my user stories)?
With best regards,
Konrad Drebinger
Siemens AG
Digital Industries
Process Automation
Product Owner and Scrum Master
DI PA SW PRM 2
Siemenspromenade 3
91058 Erlangen, Germany
Software for Process Industrieshttps://www.siemens.com/global/en/products/automation/topic-areas/process-industries/software-for-process-industries.html
Phone: +49 (9131) 17-32758
Fax.: +49 (18) 6878
Mobile: +49 (173) 6578336
@.***
www.siemens.comabout:blankwww.siemens.com
[Logo]
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Roland Busch, Chairman, President and Chief Executive Officer; Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin-Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322
Von: Silvio Wolf @.>
Datum: Donnerstag, 17. August 2023 um 17:46
An: siemens/ix @.>
Cc: Drebinger, Konrad (DI PA SW PRM 2) @.>, Mention @.>
Betreff: Re: [siemens/ix] Industrial icon for electrical energy (Issue #653)
will be added with next icon-font release
name:
electrical-energy(-filled)
—
Reply to this email directly, view it on GitHubhttps://github.com/siemens/ix/issues/653#issuecomment-1682513539, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7TKSB5TBW4RMNFA27EX5TLXVY4EFANCNFSM6AAAAAA2YIRYYA.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @drebinge, sorry, I was on vacation. Icon is release meanwhile.

authors: drebinge silviowolf


text:
Hover over on chevron of link button shows hover over with name of item

What happened?
We use the new link buttons.
When you hover over the chevron icon, there is a hover over with the text "chevron-right-small". If you hover over the text, the link shows up correctly

What type of frontend frameware are you seeing the problem on?
Angular
Which version of iX do you use?
v2.0.4
Code to produce this issue.
<ix-link-button
   url="https://new.siemens.com/global/en/general/legal.html"
   target="_blank">
       Siemens Corporate Information
</ix-link-button>

Will be fixed via siemens/ix-icons#49

authors: AnnaGrahl nuke-ellington


text:
Customize the OpenTelemetry demo for Splunk

Changes
I've made a number of customizations to the upstream OpenTelemetry demo for use with Splunk Cloud/Enterprise and Splunk Observability Cloud.  These include:

Replacing the upstream collector from the docker.yml file with the Splunk distro of the collector.
Removing the upstream collector from the kubernetes/opentelemetry-demo.yaml file (since it will be installed via helm instead), and modified the other services in this file to use the Splunk distro of the collector running on the K8s node.
Updated the README instructions to point Lantern blog articles for deploying the demo.

Merge Requirements
For new features contributions please make sure you have completed the following
essential items:

[ ] CHANGELOG.md updated to document new feature additions
[ ] Appropriate documentation updates in the docs
[ ] Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

Can we develop a script or GitHub workflow to automate the synchronization of this demo with the upstream source? It's crucial to either automate the update process or provide detailed documentation for the process. This will facilitate incorporating changes from the upstream project over time.

Thanks for the example script @jvoravong , I'll see what I can do.

@jvoravong FYI, I've made good progress on automating the process of applying my changes to the upstream version, but still have work to do before the PR is ready to be reviewed.

Hi @jvoravong - the requested changes are ready for your review.
To make future merges with upstream straightforward, the only files changed are in a new folder named "splunk".  Everything else is aligned with upstream exactly.
A new script was added named "update-demos.sh" that can be run after merging with upstream to regenerate the splunk-specific config.

Thanks @jvoravong , I've made the suggested changes.  I believe @atoulme is the owner of this repo and will need to approve the merge.

@jvoravong you should have powers to merge now.

authors: atoulme dmitchsplunk jvoravong

repo: signalfx/opentelemetry-demo


text:
🛑 sfgz is down

In 8127dec, sfgz (https://sfgz.ch/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sfgz is back up in b3fad72 after 2 hours, 27 minutes.

repo: signalwerk/uptime


text:
GRPC issues.

It seems to help a bit.
Now the error is different:
> Task :sigstore-sign-plugin:test
> Task :props

> Task :signFile
Please open the following address in your browser:
  https://oauth2.sigstore.dev/auth/auth?client_id=sigstore&code_challenge=X-T-W1WNvUrTI887KKQIbuohVRnn7OQ-cgpVfFFlRbs&code_challenge_method=S256&redirect_uri=http://localhost:55114/Callback&response_type=code&scope=openid%20email
Attempting to open that address in the default browser now...
result: KeylessSigningResult{digest=61df1427227256b0d75a65ba61fadd3316e5008dbcb55eff3553a73a415ea515, certPath=
X.509 Cert Path: length = 3.
[
=========================================================Certificate 1 start.
[
[
  Version: V3
  Subject:
  Signature Algorithm: SHA384withECDSA, OID = 1.2.840.10045.4.3.3

  Key:  Sun EC public key, 256 bits
  public x coord: 58810725050983403751526204155717586075603810400900668004812043712607538432390
  public y coord: 106968902165781130315702175379987643026677063152671378535970402174340891005079
  parameters: secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)
  Validity: [From: Fri Aug 26 20:10:31 MSK 2022,
               To: Fri Aug 26 20:20:31 MSK 2022]
  Issuer: CN=sigstore-intermediate, O=sigstore.dev
  SerialNumber: [    5a057c11 49a74204 72fa5b6b 0bed7f76 01de3e92]

Certificate Extensions: 7
[1]: ObjectId: 1.3.6.1.4.1.11129.2.4.2 Criticality=false
Extension unknown: DER encoded OCTET string =
0000: 04 7C 04 7A 00 78 00 76   00 08 60 92 F0 28 52 FF  ...z.x.v..`..(R.
0010: 68 45 D1 D1 6B 27 84 9C   45 67 18 AC 16 3D C3 38  hE..k'..Eg...=.8
0020: D2 6D E6 BC 22 06 36 6F   72 00 00 01 82 DB 22 40  .m..".6or....."@
0030: C3 00 00 04 03 00 47 30   45 02 21 00 D9 C6 D6 FB  ......G0E.!.....
0040: 1E E8 DA 78 24 D1 B3 A9   3E B6 7E 05 8D 15 AA 73  ...x$...>......s
0050: 20 57 F2 6B F8 C7 51 A5   4B 6D 18 20 02 20 63 BF   W.k..Q.Km. . c.
0060: AC B1 D9 4F D8 E8 2B 9B   70 87 AC A0 FA 7B D6 86  ...O..+.p.......
0070: C8 04 6F C5 E1 ED 04 05   94 1D 12 CB EF B8        ..o...........

[2]: ObjectId: 1.3.6.1.4.1.57264.1.1 Criticality=false
Extension unknown: DER encoded OCTET string =
0000: 04 1B 68 74 74 70 73 3A   2F 2F 61 63 63 6F 75 6E  ..https://accoun
0010: 74 73 2E 67 6F 6F 67 6C   65 2E 63 6F 6D           ts.google.com

[3]: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: DF D3 E9 CF 56 24 11 96   F9 A8 D8 E9 28 55 A2 C6  ....V$......(U..
0010: 2E 18 64 3F                                        ..d?
]
]

[4]: ObjectId: 2.5.29.37 Criticality=false
ExtendedKeyUsages [
  codeSigning
]

[5]: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
  DigitalSignature
]

[6]: ObjectId: 2.5.29.17 Criticality=true
SubjectAlternativeName [
  RFC822Name: sitnikov.vladimir@gmail.com
]

[7]: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: DD D1 89 41 CF 04 E4 E8   82 6A D9 B2 77 68 B1 51  ...A.....j..wh.Q
0010: AC 63 CB E3                                        .c..
]
]

]
  Algorithm: [SHA384withECDSA]
  Signature:
0000: 30 64 02 30 2F 9C CE C0   4E 9A B7 2F 8A C9 9B 52  0d.0/...N../...R
0010: E1 50 5E F5 A2 01 69 08   EB 3D 13 BE 32 D0 E0 52  .P^...i..=..2..R
0020: FC 5B 76 72 33 FC C8 5E   56 E7 25 2C FC 5C 09 41  .[vr3..^V.%,.\.A
0030: D1 7C A9 BA 02 30 52 22   64 A2 20 C4 36 CB DF 88  .....0R"d. .6...
0040: 94 27 10 0D B5 95 62 CF   36 C8 8F F5 30 E4 15 A8  .'....b.6...0...
0050: 06 C8 26 88 37 8D 6B 37   0A 62 02 71 02 EA 05 9C  ..&.7.k7.b.q....
0060: 0B BD AB 03 B6 72                                  .....r

]
=========================================================Certificate 1 end.

=========================================================Certificate 2 start.
[
[
  Version: V3
  Subject: CN=sigstore-intermediate, O=sigstore.dev
  Signature Algorithm: SHA384withECDSA, OID = 1.2.840.10045.4.3.3

  Key:  Sun EC public key, 384 bits
  public x coord: 37106115582151918420212712288227128673473782146923152369857257120619193675329754114997289456449298202582723469750767
....

Exception in thread "grpc-nio-worker-ELG-1-2" java.lang.NoClassDefFoundError: io/grpc/netty/shaded/io/netty/buffer/PoolArena$1
	at io.grpc.netty.shaded.io.netty.buffer.PoolArena.freeChunk(PoolArena.java:247)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache$MemoryRegionCache.freeEntry(PoolThreadCache.java:430)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache$MemoryRegionCache.free(PoolThreadCache.java:396)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache$MemoryRegionCache.free(PoolThreadCache.java:388)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache.free(PoolThreadCache.java:254)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache.free(PoolThreadCache.java:245)
	at io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache.free(PoolThreadCache.java:218)
	at io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.onRemoval(PooledByteBufAllocator.java:533)
	at io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.onRemoval(PooledByteBufAllocator.java:500)
	at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocal.remove(FastThreadLocal.java:257)
	at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocal.removeAll(FastThreadLocal.java:67)
	at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:1039)
	at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: io.grpc.netty.shaded.io.netty.buffer.PoolArena$1
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 15 more

Originally posted by @vlsi in https://github.com/sigstore/sigstore-java/issues/82#issuecomment-1228734123

lets move this to a new discussion

I believe this is fixed in newer GRPC.
Here's Sonatype Lift report for my draft release: https://sbom.lift.sonatype.com/report/T1-a0368c8f29fdaa555824-149a0d97b89a57-1662122576-156618db864b4ac69d60f55d111c6779
It says there's [sonatype-2021-0818] CWE-404: Improper Resource Shutdown or Release in grpc-core.
As I upgrade grpc-core to 1.49.0 the error goes away.

yeah, I have renovate bot on, it'll probably update all our deps on saturday or something

Please don't. It would create merge conflicts with https://github.com/sigstore/sigstore-java/pull/98

gotcha, it can wait till after a merge

Resolved in https://github.com/sigstore/sigstore-java/pull/105

authors: loosebazooka vlsi

repo: sigstore/sigstore-java


text:
Having Trouble with Safari

Describe the bug
Website I'm building on my localhost does not render correctly using Safari on my imac (MacOs High Sierra 10.13.6 ).  Works fine on chrome.
To Reproduce
Building a website using the templates downloaded from the website; i.e. siimple.html and siimple.css.
Expected behavior
Fonts and other effects from the css do not appear in the safari browser (fine in chrome).
Screenshots or Project link
Desktop (please complete the following information):

MacOs High Sierra 10.13.6
Browser Safari
Version 11.1.2

Hello! Please, I need more information to solve your issue.

Could you provide screenshots?
I don't know where you have downloaded the file siimple.html. Could you provide the path of this file in the repository?

Perfect! Closing issue.

authors: Tijanwatt jmjuanes

repo: siimple/siimple


text:
cookie consent not working when tested on c:// (local Machine)

I just followed your instructions to install the code you have provided on your silktide website. When I tested on local machine, it is not working at all.  I just want to test it before putting into the server.
Thanks
Uthan

Hi, you haven't given us enough info to accurately diagnose this problem you're having, however it sounds like you're having browser security issues (eg the script is being prevented from running because you're running it on c://), have you tried running it on localhost?

Dear David Ball,
Thanks for the reply. I do not have any browser security issues as I am
able to view other scripts without any problem.  I have no issues when I
add your other scripts given below.

This script doesnt suit to my websiite as it is only showing  a Privacy
Button on the bottom of the website and the users have to click on it and
choose the options. I was looking for a single bar notification and I love
your cookieconsent2 design. Unfortunately, the script is not working for me
when I test it on C:// drive. I didn't try to running it on localhost. I
thought when your other script is working perfectly, cookieconsent2 also
will work.    Do I need CSS or any html code to be used between
 in order to work this script??  Appreciate your guidance. The Code
I used is given below.

Cheers!
Uthan
On Thu, Oct 8, 2015 at 3:26 PM, David Ball notifications@github.com wrote:

Hi, you haven't given us enough info to accurately diagnose this problem
you're having, however it sounds like you're having browser security issues
(eg the script is being prevented from running because you're running it on
c://), have you tried running it on localhost?
—
Reply to this email directly or view it on GitHub
https://github.com/silktide/cookieconsent2/issues/86#issuecomment-146562947
.

This is in continuation of my yesterdays email. I got ride of the issue
today. it worked after I added cookieconsent.latest.min.js  and
light-bottom.css + the html code in the body section. But I experience a
new issue which is the banner is not closing when I click on "Got it" . Is
this because I tested on C:// ? Do I need to do any changes on JS?  This is
the html code I used.

Got it!
This website uses cookies to ensure you get the best
experience on our website
Cookie Consent plugin for the EU cookie law
Thank You very much.
Uthan
On Thu, Oct 8, 2015 at 4:39 PM, D Uthan dilan.uthan@gmail.com wrote:

Dear David Ball,
Thanks for the reply. I do not have any browser security issues as I am
able to view other scripts without any problem.  I have no issues when I
add your other scripts given below.

This script doesnt suit to my websiite as it is only showing  a Privacy
Button on the bottom of the website and the users have to click on it and
choose the options. I was looking for a single bar notification and I love
your cookieconsent2 design. Unfortunately, the script is not working for me
when I test it on C:// drive. I didn't try to running it on localhost. I
thought when your other script is working perfectly, cookieconsent2 also
will work.    Do I need CSS or any html code to be used between
 in order to work this script??  Appreciate your guidance. The Code
I used is given below.

Cheers!
Uthan
On Thu, Oct 8, 2015 at 3:26 PM, David Ball notifications@github.com
wrote:

Hi, you haven't given us enough info to accurately diagnose this problem
you're having, however it sounds like you're having browser security issues
(eg the script is being prevented from running because you're running it on
c://), have you tried running it on localhost?
—
Reply to this email directly or view it on GitHub
https://github.com/silktide/cookieconsent2/issues/86#issuecomment-146562947
.

Use the code from this page instead of adding the html directly to your page: https://silktide.com/tools/cookie-consent/download/

Hi DrBall
I tried using the code on the above link. But the result is same

Hi Uthans! What browser are you trying this in?

I tried on both Firefox and Chrome.
Thanks
Uthan
On Wed, Oct 14, 2015 at 5:20 PM, Doug notifications@github.com wrote:

Hi Uthans! What browser are you trying this in?
—
Reply to this email directly or view it on GitHub
https://github.com/silktide/cookieconsent2/issues/86#issuecomment-148104971
.

Cookie banner is not closing even after hosting on local server. I downloaded the code from silktide but not working for me without css. When I link css, the script is working but not closing when I click on "Got it".
thanks.
Uthan

Sorry I don't think we're able to help here, we can't reproduce this problem.
One thing you could try that might help: try this in Chrome, and open the Developer Tools > Console before clicking on the "Got it" button. If it doesn't work, we'd expect to see an error message displayed there. If you're able to show us that error we might be able to figure out the problem.

authors: Dolondro drball oliveremberton uthans


text:
Include Keyterms from Paratext Project in Training Data with toggle

This issue is forked off of #52.
SF currently has an implementation to extract keyterms and send the files to Serval for training.  This issue is to implement this functionality directly into Serval and Machine.  It will:

Implement the following algorithm in Machine (as per SILNLP)

def _process_gloss_string(gloss_str: str) -> List[str]:
    match = re.match(r"\[(.+?)\]", gloss_str)
    if match is not None:
        gloss_str = match.group(1)
    gloss_str = gloss_str.replace("?", "")
    gloss_str = clean_term(gloss_str)
    gloss_str = strip_parens(gloss_str, left="[", right="]")
    gloss_str = re.sub(r"\s+\d+(\.\d+)*$", "", gloss_str)
    glosses = re.split("[;,/]", gloss_str)
    glosses = unique_list([gloss.strip() for gloss in glosses if gloss.strip() != ""])
    return glosses

Add a training pair per gloss
Create a new field when building an engine to include paratext keyterms or not

We may be able to hack the "options" field in builds and then document how to use it.  i.e., paratext_parsing -> use_keyterms_for_training=true
Default to true (use the keyterms)

[Add a test] Make sure that the response message from Serval only includes paratext_parsing options that are accepted (as a way to communicate whether they are properly formatted or not).  For other options (not paratext_parsing), Machine doens't know what Machine.py would accept.

I've followed the implementation in SILNLP, but it's still not clear to me where I'm getting source and target data??? @ddaspit @johnml1135

Example:

Keyterm: glosses
Hello: Hola Caramba Bueno

The output would be:

source
target

Hello
Hola

Hello
Caramba

Hello
Bueno

OK, but my question is, will the glosses always be in the source language? @johnml1135

Also, @ddaspit , should we use the Category element within each term to ignore everything but proper nouns (if that's a universal categorization)? I know you mentioned in the related ScriptureForge issue that you thought only proper nouns would be helpful.

@ddaspit What's the point of this:
    match = re.match(r"\[(.+?)\]", gloss_str)
    if match is not None:
        gloss_str = match.group(1)

I know what it does, but I can't seem to find an example of a key terms xml that uses a format in which this would be needed. And it causes problems in situations in which there's a note in square brackets. What am I missing? Is there an expectation of some kind of preprocessing?

OK, after digging into silnlp more, I think I'm not actually capturing the process. SILNLP uses the term renderings in conjunction with the biblical terms xml. Is that what SF is doing too, @pmachapman ?  What should we do here, @ddaspit ?

Is that what SF is doing too?

SF just iterates over the Term Renderings, and uses the Id as the key: https://github.com/sillsdev/web-xforge/blob/3da7dfe8804d3121ec6b05c703790f8a4ebc5c84/src/SIL.XForge.Scripture/Services/SFBiblicalTermsText.cs#L111-L138
@Enkidu93 What information were you wanting to use from the Biblical Terms XML file?
Retrieving the BT XML file can be complicated to get, as most often one of the files chipped with PT will be used, sometimes the BT file will be in the project, sometimes it will be in another project.

Is that what SF is doing too?

SF just iterates over the Term Renderings, and uses the Id as the key: https://github.com/sillsdev/web-xforge/blob/3da7dfe8804d3121ec6b05c703790f8a4ebc5c84/src/SIL.XForge.Scripture/Services/SFBiblicalTermsText.cs#L111-L138
@Enkidu93 What information were you wanting to use from the Biblical Terms XML file?
Retrieving the BT XML file can be complicated to get, as most often one of the files chipped with PT will be used, sometimes the BT file will be in the project, sometimes it will be in another project.

OK, thank you! Very good to know. After speaking with Damien, for the time being, if both projects have BT xmls, we'll use those aligning on the term id. Later, we might add a method of incorporating the data from the TR xmls like what SF currently has.

repo: sillsdev/serval


text:
Serialzation groups security vulnerability to resolve

vulnerability highlighted by @vincentchalamon - thank you.

you have 2 entities linked by a ToMany association. using serialization groups, you just want the root resource and only the iris of the collection associations
but I'm authenticated as admin, so the admin serialization group is automatically added to the related "normalization_context.groups"
because the admin serialization group is also setter in the collection association entity, you'll get a collection of objects instead of a collection of iris
to prevent it, it's recommended to use the Class:Action syntax for serialization groups instead of read or write basic serialization groups
for instance: User:Read or User:Write, or even User:AdminRead and User:AdminWrite
with this syntax, there is no risk to change the response structure by accident, and it respects more strictly the serialization groups process

https://github.com/silverbackis/ApiComponentBundle/commit/0eeac8e4ba82c5017496d822ff1f5b4200c2ee11

repo: silverbackis/ApiComponentBundle


text:
more translations

more translatable text

thanks

authors: alexandruz dhensby


text:
[2011-03-21] Filesystem::sync() iterates through ALL SiteTree objects in memory

created by: @chillu (ischommer)
created at: 2011-03-21
original ticket: http://open.silverstripe.org/ticket/6534

Given that you can trigger a sync() from the UI (button at bottom left of AssetAdmin), this means a normal user action can cause PHP to exceed its memory, or in the worst case bring down a server running out of memory when having couple of thousand pages.
Rewrite to either find affected pages for link/image tracking, or iterate through sitetree in batches for ~100. This will most likely be eased by the ORM rewrite in 3.0, but would still create/cache large in memory footprints - so really we need to avoid a full DataObject::get().

Filesystem::sync is gone in 4.0, so, fixed. ;d

authors: silverstripe-issues tractorcow

repo: silverstripe/silverstripe-framework


text:
Fixes issue #3763; added findTab method to FieldList class

When calling removeFieldFromTab() or removeFieldsFromTab() on FieldList class
if the tab did not exists it was created; as reported on issue#3763.

Mention #3763

Thanks for this, it's been bugging me for a long time but I'd slightly forgotten about it.
Please can you add a unit test or two to make sure this function has test coverage.
Also, it's a bit of code duplication with findormaketab - would it be possible to utilise this function there?

@dhensby Yeah, I think it is one of those lazy things no one wants to do.
Haven't got around unit testing in PHP yet, I will soon.
Yes, findTab is basically a copy-paste of findOrMakeTab, probably we could use findTab in findOrMakeTab, but we could also make findOrMakeTab recursive which is suggested in the comments. I haven't really looked at it that much so I will not, for now, take any decision on that matter.
You may leave this PR hanging until the points above are decided/fixed.

A unit test for this will be required for it to get in. If you're not confident writing one, I can do it for you, but I'd recommend you have a look at writing one - it's quite simple to do and a good ability to have.

@dhensby Yeah, I know. Just haven't yet had the time to learn it in PHP. I've tried to install PHPUnit without composer, but no success. I don't like composer, although I understand it's advantages.
If you want, you can write one for me, I will appreciate that for sure. And I will eventually look at testing in PHP, it's not a matter of if but when.

I believe that I was looking at a pull request for @patricknelson that also implemented this. Do we have a dupe?

@sminnee You are really making the rounds! Thank you. Indeed, this is a much in demand feature. Current functionality is whacko. The PR you speak of is here: https://github.com/silverstripe/silverstripe-framework/pull/4122
A comment on this variation: This method should abssolutely not be returning anything but a Tab, nor nothing (null). It really should not change type, and it should document this fact in its @return.
To my fault: I should have had the foresight to add unit tests on mine, given I know it's expected (rightfully so) and these PR's have a tendency to sit and age for a bit. Thankfully mine (being a feature) is base on 3). This branch is waaaay outdated anyway and wouldn't be suitable for a new feature as I have learned in my wise old age.

Cool, in that case I'm going to close this as a duplicate of #4122.

authors: dhensby patricknelson pedro2555 sminnee


text:
Documentation updates for new form injector API

Per https://github.com/silverstripe/silverstripe-admin/pull/136

rebased

authors: dhensby unclecheese


text:
Broken link in docs.

Module version(s) affected
all
Description
Content from the readme.md doesn't link anywhere.
Read the TOTP authenticator documentation.
How to reproduce
Click the read the TOTP authenticator documentation link in the readme.
Possible Solution
No response
Additional Context
No response
Validations

[X] Check that there isn't already an issue that reports the same bug
[X] Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

Ahh yup, the URL should be https://docs.silverstripe.org/en/optional_features/mfa/authenticators/totp-authenticator/.
If you want to raise a PR that'd be greatly appreciated - otherwise it'll just be done when (if) it's prioritised.