MLeap model gives very different prediction from Spark model for XGBoost regression

Below is the code I used in my testing. I created a dummy data frame in the code so you may directly run this code to reproduce my result.
What I found is that the deserialized Mleap model gives very different prediction from the Spark model prediction when XGBoost regression model is used. What is interesting though, is that if I replace the XGBoost regression model with a linear regression model or random forest model, then the Mleap and Spark predictions are consistent.
Could you please take a look and see what's causing the issue?
import ml.combust.mleap.spark.SparkSupport._
import org.apache.spark.ml.bundle.SparkBundleContext
import org.apache.spark.sql._
import ml.combust.bundle.BundleFile
import ml.combust.mleap.runtime.MleapSupport._
import resource._
import ml.dmlc.xgboost4j.scala.spark.XGBoostRegressor
import org.apache.spark.ml.Pipeline
import org.apache.spark.ml.feature.{OneHotEncoderEstimator, StringIndexer, VectorAssembler}
import ml.combust.bundle.serializer.SerializationFormat
import scala.util.Random
import java.io.File

val spark = SparkSession.builder().
  enableHiveSupport().
  appName("bid_response_feedback").
  getOrCreate()
spark.sparkContext.setLogLevel("WARN")

import spark.implicits._

// -------------------create dummy data-------------------
val N = 1000
val X = Seq.fill(N)((Random.nextDouble, Random.nextDouble, Random.nextInt%100, Random.nextDouble))
val data = X.toDF("num1", "num2", "cat", "y")

// -------------------create pipeline-------------------
val stringIndexer = new StringIndexer().setInputCol("cat").setOutputCol("indexed_cat").setHandleInvalid("keep")
val encoder = new OneHotEncoderEstimator().
  setInputCols(Array("indexed_cat")).
  setOutputCols(Array("encoded_cat")).
  setDropLast(false)
val vectorAssembler = new VectorAssembler().setInputCols(Array("num1","num2", "encoded_cat")).setOutputCol("assembled_features")
val regressor = new XGBoostRegressor().
  setFeaturesCol("assembled_features").
  setLabelCol("y").
  setMissing(0.0f).
  setNumRound(300).
  setEta(0.1).
  setLambda(0.1).
  setObjective("reg:squarederror")
val stages = Array(stringIndexer, encoder, vectorAssembler, regressor)
val pipeline = new Pipeline().setStages(stages)

// -------------------train model-------------------
val model = pipeline.fit(data)
val sparkPred = model.transform(data)

// -------------------serialize model-------------------
val savePath = "/tmp/model.zip"
new File(savePath).delete()
val sbc = SparkBundleContext().withDataset(sparkPred)
for(bf <- managed(BundleFile(s"jar:file:$savePath"))) {
  model.writeBundle.format(SerializationFormat.Json).save(bf)(sbc).get
}

// -------------------deserialize model-------------------
val bundle = (for(bundleFile <- managed(BundleFile(s"jar:file:$savePath"))) yield {
  bundleFile.loadMleapBundle().get
}).opt.get
val mleapPipeline = bundle.root

// -------------------compare spark prediction with mleap prediction-------------------
mleapPipeline.sparkTransform(
  sparkPred.select("num1", "num2", "cat", "prediction").
  withColumnRenamed("prediction", "prediction_spark")
).withColumnRenamed("prediction", "prediction_mleap").
  select("prediction_spark", "prediction_mleap").show(20, false)

And below is result of the comparison:
+-------------------+--------------------+
|prediction_spark   |prediction_mleap    |
+-------------------+--------------------+
|0.25716912746429443|0.6468673348426819  |
|0.37263065576553345|0.09767213463783264 |
|0.5152825117111206 |0.4851878881454468  |
|0.3583545386791229 |0.7318365573883057  |
|0.36735931038856506|0.4338415265083313  |
|0.5590494871139526 |0.8566745519638062  |
|0.19842255115509033|0.7155959010124207  |
|0.505892276763916  |0.1759815216064453  |
|0.5023373961448669 |0.625703752040863   |
|0.4556388854980469 |1.0078493356704712  |
|0.49337154626846313|0.6475313901901245  |
|0.47036445140838623|0.8019598722457886  |
|0.46043094992637634|-0.07858127355575562|
|0.5120362639427185 |0.6594986915588379  |
|0.5190843343734741 |0.8715968132019043  |
|0.7019040584564209 |0.8972176313400269  |
|0.5937442183494568 |0.3763286769390106  |
|0.5282356142997742 |0.02316725254058838 |
|0.6432276964187622 |0.47867345809936523 |
|0.5145360827445984 |0.6871364116668701  |
+-------------------+--------------------+

@maycuiyan thanks for raising the issue! can i please ask you which version of mleap/spark/xgboost you are using?
@talalryz @voganrc could you please take a look once at this? thank you!

@maycuiyan thanks for raising the issue! can i please ask you which version of mleap/spark/xgboost you are using?
@talalryz @voganrc could you please take a look once at this? thank you!

we'd made some changes before releasing 0.16.0 which fixed such issues
which version of mleap are you using? What does your pipeline look like?

@ancasarb @talalryz Thanks for following this up. This is because of the older version of MLeap and I can see that in newer version the issue is fixed. I am closing this issue.


/usr/bin/ld: cannot find -lstdc++: No such file or directory

Hi,
I am trying to install mistral.rs on Ubuntu 22.04 and got following error:
Ubuntu@0136-ict-prxmx50056:~/mistral.rs$ cargo build --release --features cuda
Compiling mistralrs-pyo3 v0.1.26 (/home/Ubuntu/mistral.rs/mistralrs-pyo3)
Compiling mistralrs-bench v0.1.26 (/home/Ubuntu/mistral.rs/mistralrs-bench)
Compiling mistralrs-server v0.1.26 (/home/Ubuntu/mistral.rs/mistralrs-server)
error: linking with cc failed: exit status: 1
= note: /usr/bin/ld: cannot find -lstdc++: No such file or directory
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
=============
My version info:
Ubuntu@0136-ict-prxmx50056:~/mistral.rs$ gcc --version
gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Ubuntu@0136-ict-prxmx50056:~/mistral.rs$ nvcc --version
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0
=============
I used following steps:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt install libssl-dev
sudo apt install pkg-config
git clone https://github.com/EricLBuehler/mistral.rs.git
cd mistral.rs
cargo build --release --features cuda    => This is where it errors out.
cp ./target/release/mistralrs-server ./mistralrs_server
./mistralrs_server -i plain -m microsoft/Phi-3-mini-128k-instruct -a phi3
Thanks.

Hi,
Could you please point me to the solution of this issue, if it already has been triaged? Thanks.

Thanks @EricLBuehler . I am using Ubuntu 22.04
Ubuntu@0136-ict-prxmx50056:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
I wanted to review it for my channel at https://www.youtube.com/@fahdmirza
regards,

Hi @fahdmirza that seems super cool! Sorry for not getting back, I've been busy adding some new features!
Can you please try:
sudo apt-get install build-essential
sudo apt-get install g++

All good, yes I have already tried that but same error. Thanks.

@fahdmirza I haven't been able to reproduce this. Perhaps it is caused by a specific environment issue? Please feel free to reopen.


⚠ Samsung has degraded performance

In bd30870, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2337 ms

Resolved: Samsung performance has improved in 2798e9d.


No pass in won game

Game is completely won, opponend passes, AQ plays on.

You should turn on 'japanese rule' in the configuration file if you want AQ to pass.
Otherwise AQ continues to play because it will not be disadvantageous with Chinese rule or Tromp/Taylor rule.

Thanks!


sev 1 issue; pronunciation guide missing

Hah :dancers:

why the close?

@ashfurrow is a tyrant. I'm gonna hard-fork the project io.js-style and rewrite it in ArnoldC.


unorderable types: str() > int()

I get the above error message. Works fine if I exclude the object columns.

Some columns contained errors e.g. a numeric column had NaN values as " NA".
Would be useful if such failure reported the offending columns rather than failing.

Good point, I never thougt about column types that are not numeric, character or dates. They should indeed just be ignored with a warning message that the type is not supported for analysis.

As well as reporting them as ignored would be useful to show frequency
counts if possible. For example if you have values "P", "1", "1.0" then it
is clear what the problem is.
On 4 November 2016 at 09:24, Jos Polfliet<EMAIL_ADDRESS>wrote:

Good point, I never thougt about column types that are not numeric,
character or dates. They should indeed just be ignored with a warning
message that the type is not supported for analysis.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JosPolfliet/pandas-profiling/issues/29#issuecomment-258380495,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJN6RGNI1wgYOvDx79TcG-B-qhr_cIbks5q6vnDgaJpZM4Klcs0
.

It would be also useful if one could convert these columns into same type: e.g. if I have both str and int within one column, it's probably a good idea to treat it as str while making the report.
I'd suggest to add a param to ProfileReport for this case with three options: exclude weird columns, cast to str or just raise an exception.
@JosPolfliet would you like to get a PR on this?

Yes @arsenyinfo, if you have time feel free to send a PR and I will review! Thanks.

@JosPolfliet PTAL at PR above. Thanks!

My friends, I haven't forgotten this, I am just travelling and haven't made
the time. I'm back on Saturday and will take a look then.
Happy holidays!
On Wed, 28 Dec 2016 at 10:50, Arseny Kravchenko<EMAIL_ADDRESS>wrote:

@JosPolfliet https://github.com/JosPolfliet PTAL at PR above. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JosPolfliet/pandas-profiling/issues/29#issuecomment-269453425,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALznoftdolHE9VDohyBF6tnVQwdC8c5Dks5rMjDHgaJpZM4Klcs0
.

In addition to the mixed type fields there is a list type which also crashes the whole report currently. As a short term fix would be good to flag it up as an unsupported type. In the longer term would be useful to see most common values and distribution.

I thought this was fixed in the last version. It was related to a Pandas bug. PR was closed but this issues wasn't (mea culpa).
Can you share a working example of when it fails?

from pandas_profiling import ProfileReport
a=pd.DataFrame(dict(a=[1,2,3], b=[4,5,6], mylist=[["item1", "item2"], ["item3", "item2", "item3"], ["item2", "item2"]]))
ProfileReport(a)
unhashable type list

BTW this is a really great package but can't you change the name to something without underscores, hyphens and capital letters?....e.g.

from pandaseda import eda
eda()


[CDEC-517] Parallelize the generator, wallet-new, binary, chain, client, core, crypto, explorer, lib & networking tests

Description
Some of the package's tests are very slow. This could be sped up by utilizing the parallel function from the hspec library where Spec tests are written. In order to take advantage of multiple cores, I wrote a function parallelize in Test.Pos.Util.Parallel that gets the number of processors from the machine and sets the number of threads equal to the number of processors on the machine.
Linked issue

https://iohk.myjetbrains.com/youtrack/issue/CDEC-517
Type of change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] 🛠 New feature (non-breaking change which adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[ ] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[ ] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
[ ] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

QA Steps

Screenshots (if available)

PR moved to develop-new due to structured logging reversion on develop


Ambiguous documentation regarding supported PostgreSQL versions

I can only quote the original issue from the mattermost-server repository, because @robert-scheck spelled out the problem meticulously already. I'll add a few additions below that quote.
It might, in general, be wise to remove all references to a specific PostgreSQL version and replace them by a link referencing a general "Supported PostgreSQL versions" page. This would prevent the need to modify all those install guides if anything changes in the PostgreSQL support regime.

As of writing, https://docs.mattermost.com/administration/important-upgrade-notes.html is unfortunately ambiguous about the supported PostgreSQL versions: It currently says that PostgreSQL 10 is supported for the latest Mattermost version, while it also says that PostgreSQL 10+ is required for new installations. Given there is already PostgreSQL 12, this unfortunately leaves open whether Mattermost supports PostgreSQL 12 or just 10.x. So does the "+" actually mean 10.x-only or really 10/11/12/...? This should never be left for guessing to the administrator, but always be clearly documented.
Expected behavior
Clear, non-ambiguous documentation of supported PostgreSQL versions, as e.g. Red Hat Enterprise Linux 8 and CentOS 8 are only shipping PostgreSQL 12.x (rather than ancient PostgreSQL versions).
Possible fixes
Please note that I do not know which versions of PostgreSQL are actually really supported by Mattermost, so the following are just textual suggestions for the documentation to improve the situation, while the actual versions needs to be inserted properly indeed.

"New installs will require PostgreSQL 10.x, but PostgreSQL 11 (or later) is not yet supported."
"New installs will require PostgreSQL 10 (or later), but PostgreSQL 14 (or later) is not yet supported."

At least the following pages need to be fixed regarding PostgreSQL:

https://docs.mattermost.com/install/software-hardware-requirements.html
https://docs.mattermost.com/install/installing-ubuntu-2004-LTS.html#install-postgresql-database-server
https://docs.mattermost.com/install/install-debian.html#install-and-configure-the-components-in-the-following-order-note-that-you-need-only-one-database-either-mysql-or-postgresql (speaks of PostgreSQL 9.4 in code blocks)
https://docs.mattermost.com/install/install-rhel-8.html#installing-postgresql-database
https://docs.mattermost.com/install/installing-ubuntu-1804-LTS.html#install-postgresql-database-server
https://docs.mattermost.com/install/install-rhel-7.html#install-postgresql-database

Cheers
Thomas

Thank you for your feedback, @robert-scheck. You're making a very reasonable point about documentation granularity that's currently lacking in the Mattermost Product Documentation.
We're in the process of updating installation documentation to provide clearer guidance around minimum versus supported system requirements, and are taking this input into account as part of this effort.
CC @nab-77


Redis 2.8 crashed with " 0x00000005 - EndForkOperation: Killing forked process failed.: permission denied"

I had right now this given exeception. not sure why it occured. redis server terminated (no log entries about that). Then a tool which we configured to monitor the server restarted it.
btw normally we let redis restart each morning today and yesterday we missed it , and earlier this morning i saw that readis was at 10GB RAM even though 9GB RAM as Maxmemory is defined. ( may be it is related to this?)
that worked but i'm not sure what this may have caused it?
this  0x00000005 indicates for an memory adress issue ?
any hints?
[12440] 21 Apr 10:47:57.756 - Client closed connection
[12440] 21 Apr 10:47:57.756 - Client closed connection
[12440] 21 Apr 10:47:57.756 - Client closed connection
[12440] 21 Apr 10:47:58.227 - DB 0: 2813715 keys (2813715 volatile) in 4194304 slots HT.
[12440] 21 Apr 10:47:58.227 - 168 clients connected (0 slaves),<PHONE_NUMBER> bytes in use
[12440] 21 Apr 10:48:03.228 - DB 0: 2813798 keys (2813798 volatile) in 4194304 slots HT.
[12440] 21 Apr 10:48:03.228 - 168 clients connected (0 slaves),<PHONE_NUMBER> bytes in use
[12440] 21 Apr 10:48:08.230 - DB 0: 2814061 keys (2814061 volatile) in 4194304 slots HT.
[12440] 21 Apr 10:48:08.230 - 168 clients connected (0 slaves),<PHONE_NUMBER> bytes in use
[12440] 21 Apr 10:48:13.233 - DB 0: 2814319 keys (2814319 volatile) in 4194304 slots HT.
[12440] 21 Apr 10:48:13.233 - 168 clients connected (0 slaves),<PHONE_NUMBER> bytes in use
[12440] 21 Apr 10:48:18.233 - DB 0: 2814469 keys (2814469 volatile) in 4194304 slots HT.
[12440] 21 Apr 10:48:18.233 - 168 clients connected (0 slaves),<PHONE_NUMBER> bytes in use
[12440] 21 Apr 10:48:21.738 # fork operation complete
[12440] 21 Apr 10:48:51.743 # EndForkOperation: 0x00000005 - EndForkOperation: Killing forked process failed.: permission denied

[8076] 21 Apr 10:49:03.966 * Redis 2.8.2400 (00000000/0) 64 bit, stand alone mode, port 6379, pid 8076 ready to start.
[8076] 21 Apr 10:49:03.966 # Server started, Redis version 2.8.2400
[8076] 21 Apr 10:49:04.347 - Accepted <IP_ADDRESS>:10561
[8076] 21 Apr 10:49:04.367 - Accepted <IP_ADDRESS>:10562
[8076] 21 Apr 10:49:04.387 - Accepted <IP_ADDRESS>:10563
[8076] 21 Apr 10:49:04.387 - Accepted <IP_ADDRESS>:10571
[8076] 21 Apr 10:49:04.406 - Accepted <IP_ADDRESS>:10566
[8076] 21 Apr 10:49:04.407 - Accepted <IP_ADDRESS>:10564
[8076] 21 Apr 10:49:04.407 - Accepted <IP_ADDRESS>:10565

Hi @Gentlehag
when the Redis main process fails to terminate the child process (the child process is used for persistence and replication) it exits since that is the safer thing to do at that point, it's not a generic crash it's a voluntary termination.
It would be useful to check the log entries before that error to verify if there is any clue on why the child process stopped responding.
Regarding the memory usage: the amount of memory used by Redis may exceed the maxmemory limit since the heap gets fragmented, so it's ok if you see 10GB of used memory with a maxmemory of 9GB.

can this occur if another process is reading processinformations at this point from the child process ?
Is there away to configure this behavior or to get a retry ?
Ive a small tool looking wether there is a redis.exe process

@Gentlehag
just reading the process information should not effect the process status.
The current behavior is to wait for the child process to exit gracefully, if it doesn't there is a wait on a timeout and after the timeout expires we try once to terminate the child process. It may be a good idea to retry a few times before exiting the parent process.


True / False are undefined

true and false keywords are unsupported by pfp.

These are valid in 010 editor:
true
TRUE
false
FALSE

This might be a py010parser bug actually.

Just bumping, forgot to reopen before coding towards it


google_maps_flutter :  Recompile with -Xlint:deprecation for details. & Some input files use unchecked or unsafe operations.

Steps to Reproduce

After update the Latest Flutter with command flutter upgrade package google_maps_flutter give me warning every running the project .

Target Platform:
Android
Devices:
Redmi Note 4
Logs

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Recompile with -Xlint:deprecation for details.

Flutter analyze
PS C:\Project Flutter\Udemy\great_place_app> flutter analyze
Analyzing great_place_app...
No issues found! (ran in 3.6s)
PS C:\Project Flutter\Udemy\great_place_app>

Flutter doctor -v
PS C:\Project Flutter\Udemy\great_place_app> flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535], locale en-US)
    • Flutter version 1.12.13+hotfix.5 at C:\flutter\flutter
    • Framework revision 27321ebbad (25 hours ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at C:\Users\user\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.40.2)
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (1 available)
    • Redmi Note 4 • 1a96d23a9904 • android-arm64 • Android 7.0 (API 24)

• No issues found!
PS C:\Project Flutter\Udemy\great_place_app>

Even I am getting the warning after flutter upgrade

Can you give the output of the build after adding this to your build.gradle ? it will give you more details about what is deprecated
allprojects {
    ...

    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:deprecation"
        }
    }
}

This happened to me after installing the barcode_scan package.

It is resolved?

Still same problem with google_maps plugin (google_maps_flutter: '>=0.5.27+3') !
Is there someone looking into this ?
Thanks!

running flutter pub upgrade after running flutter upgrade fixed it

@zgramming
Is this still an issue using latest plugin version ?

Latest version (2.0.3) gives me these messages:
Note: C:\Apps\flutter\.pub-cache\hosted\pub.dartlang.org\geocoding-2.0.0\android\src\main\java\com\baseflow\geocoding\GeocodingPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Apps\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.0.3\android\src\main\java\io\flutter\plugins\googlemaps\Convert.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Apps\flutter\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-2.0.3\android\src\main\java\io\flutter\plugins\googlemaps\TileProviderController.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
Built with latest Flutter version (2.0.5)...

Same message in Flutter stable version (2.2.0)


Multi Language support

https://developer.apple.com/documentation/xcode/supporting-multiple-languages-in-your-app
https://www.c-sharpcorner.com/article/support-multilanguage-localization-in-ios-swift/
https://www.youtube.com/watch?v=b11qBV-vTHc
https://developer.apple.com/videos/play/wwdc2022/10110/

duplicate of #29


Change background color in night mode to match underlying thing

It looks like the default background color in the night theme isn't matching up correctly. Thanks.


chore forbit BUILD INDEX in cloud mode for variant…

… case
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Release Google.Cloud.Security.PrivateCA.V1 version 3.4.0

Changes in this release:
No API surface changes; just dependency updates.

Created release for Google.Cloud.Security.PrivateCA.V1-3.4.0


Nim's exception mechanism broken

Reproduction
method ready* (self: MyClass) {.gdsync.} =
  raise newException(CatchableError, "test error")

Expected Result
Error: unhandled exception: test error [CatchableError]

Current Result
No output and freeze.
related to #25

It does seem to work with try except, though.
import strutils
const  break_string:string = "123456789012345678901"
try:
  if break_string.parseInt == 0: echo "hmm"
except ValueError:
  echo "bwaaaah"

That is, if you know the exact error that can happen.


Zip archive path

The archive created automatically includes a path based on the given archive name, ie:
git-archive-all blablabla.zip
unzip -l blablabla.zip
blablabla/me.txt
blablabla/you.txt

Please include a way to use a given path similar to "git -C /path/of/folder/to/run/git/".  When you run 'git archive', it doesn't include a path in the archive file.

@envisiagroup Have you tried the --prefix option?


Having multiple GhTokenWorkflow tokens results in error when running action Update AL-Go System Files

Hi,
I'm working for multiple companies that are using AL-GO Template repositories (2 different github organisations).
In order to separated secrets between the 2 companies, I've create 2 tokens for running actions in the different companies:

The repository that uses the Fine-grained token GhTokenWorkflow is able to update the AL-GO system files
The repository that uses the Fine-grained token GhTokenWorkflow Company B is not able to update the AL-GO system files.
Both Tokens have following permissions:

Both repositories have a secret called GhTokenWorkflow
In the repository where both Token and Secret is called  GhTokenWorkflow, the action runs fine.
But In the repository where the Token is called GhTokenWorkflow Company B and Secret is called  GhTokenWorkflow, the action returns following Error:
UpdateALGoSystemFiles
Unexpected error when running action.
Error Message: Failed to update AL-Go System Files.
Make sure that the personal access token, defined in the secret called GhTokenWorkflow, is not expired and it has permission to update workflows.
(Error was Cloning into 'Repo-A'... remote: Write access to repository not granted. fatal: unable to access 'https://github.com/Company B/Repo-A/':
    The requested URL returned error: 403
    ExitCode: 128 Commandline: git clone ***github.com/Company B/Repo-A ),
       StackTrace: at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v4.0\CheckForUpdates\CheckForUpdates.ps1: line 523 <- at <ScriptBlock>, D:\a\_temp\1b9f4e6c-6324-42cc-8fb5-7018f13ea052.ps1: line 4 <- at <ScriptBlock>, <No file>: line 1

Fine grained tokens are created for specific repositories:

What did you select there?
You can modify this without re-issuing the token.

I selected All Repositories.

There is definitely no problem in having multiple tokens and then using them as secrets in different repositories - I have that in multiple accounts.
The problem here must be a copy/paste error or a permission error of some kind.
Did you select Company B as resource owner for 2nd token?
Did you assign the following permissions to the repositories:

Contents: Read and Write
Metadata: Read only
Pull Requests: Read and Write
Workflows: Read and Write
(You can edit permissions and keep the same token)

Hi Freddy,
I did select Company B as owner of the token.
In order to make sure there is no copy/paste error, I regenerated the token and updated the secret in the repository.
But the problem wasn't one of the above, but in the permissions.
I based my permissions on the settings page in https://freddydk.github.io/AL-Go/Scenarios/settings.html.
There is mentioned the token should only have Workflows: Read and Write permissions.
So I added the 4 permissions above and I was able to run the action:

Contents: Read and Write
Metadata: Read only
Pull Requests: Read and Write
Workflows: Read and Write

Thank you for your help!

The permissions mentioned in settings are not for fine grained tokens - it is for classic tokens.
Will update the docs with info for fine grained (which didn't work until recently)

Reopening to track the docs changes.


External resources are duplicated and made built-in when copying from one scene to another

Godot version
3.5.1.stable, 4.0b2
System information
Windows 10
Issue description
Every time I copy a node from another scene containing a mesh, it is completely copied to the new scene file, literally all mesh coordinates go directly to the tscn file in PoolByteArray.
If I have a large enough number of detailed mesh objects that I want to copy into the main scene to build a level (but I don't want to copy them as separate scenes, I need the mesh directly) it is literally copied into the scene file. This can make some tscn files too big.
Steps to reproduce
Minimal reproduction project has a simple cube from Blender (cubegltf.glb) and scene that contains it (SCENE.tscn).
The tscn file can be viewed in any external text editor, it contains a whole copy of the cube mesh in "array_data": PoolByteArray.
To reproduce open SCENE.tscn and copy only a Cube node into a new scene, save it and look at PoolByteArray.
If you copy Spatial node with Cube as a child into new scene it will instance it properly without copying the entire mesh.
Minimal reproduction project
For 3.5.1.stable
UniqueResourcesBug3_5_1.zip

Looks similar to #49133, but here it doesn't look like a bug.
The cube in your scene is a plain node:

It doesn't inherit the original resource. It's normal that when you copy a part of scene, it loses its link to the original and becomes unique. You only should copy the whole scene.
Does it work differently with merge from scene? (you originally commented in #45943; the feature is still available in 3.5)

But why it doesn't inherit the original resource? It must create a reference to original resource no matter what I'm copying, whole scene or separate nodes.
When I'm building a level it is way more natural to import mesh not as separate scenes, but as actual mesh itself, like in any other game engine.
Scenes are usefull when I need a Prefab-like behaviour, or for whole levels, but tweaking and moving mesh in a separate scene when I dont see any lights and other crucial nodes for that level is just wrong.
All this time I was just making a copy of the mesh into my scene and buid a level with them, but tscn file is getting too big, and i'ts just dumb that it makes a lot of duplicated resources in itself.

There is also a noticeable performance hit when using large scene file with gazillion built in resources compared to instanced scenes. Why Godot can't just do things normaly as literally any other engine does?


Events not taking all the horizontal space available in week view

In week Some events do not use the whole "cell" even if it is available (i.e., no other event is happening at the same time).
Even when there are two or more events at the same, it seems that the one most on the right could take slightly more space (there is some empty space on the right, which is not present when there is a single event).
See screenshot, specifically on Thursday and Friday afternoons.

Thanks for reporting, I fixed the problem.


Http Post not working on Flutter Web and Windows

Http Post not working on Flutter Web and Windows.
Fix it.

please tell me why post not work on web and Windows

Indeed the post is not working for me either, but you should check your attitude dude. WTF.


Cant see any changes and git branches

Type: Bug
Cant see any changes and git branches
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.88GB (6.32GB free)

Process Argv
--crash-reporter-id 5f088511-c6c5-4f50-8c28-65cf9df90acf

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

es7-react-js-snippets
dsz
4.4.3

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
refactort:31101459
ccplt:31103426
pythonrstrctxtcf:31103194
wkspc-onlycs-c:31102393

/needsMoreInfo

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

I believe this is related to https://github.com/microsoft/vscode/issues/223322
Changes within git are no longer being automatically reflected in VSCode. After changing files they do not show up in the side bar automatically, you need to manually click refresh to see the changes.

Extension host terminated unexpectedly 3 times within the last 5 minutes.
How to fix this?

From: Trevor Wright @.>
Sent: Friday, July 26, 2024 8:52 PM
To: microsoft/vscode @.>
Cc: Gopi Kannan @.>; Author @.>
Subject: Re: [microsoft/vscode] Cant see any changes and git branches (Issue #223630)
I believe this is related to #223322https://github.com/microsoft/vscode/issues/223322
Changes within git are no longer being automatically reflected in VSCode. After changing files they do not show up in the side bar automatically, you need to manually click refresh to see the changes.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode/issues/223630#issuecomment-2252992196, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJARMKF635KTGL6SBABWBC3ZOJSVHAVCNFSM6AAAAABLOMQCGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSHE4TEMJZGY.
You are receiving this because you authored the thread.Message ID: @.***>

@kirshi-gopi, please use the extension bisect tool to identity the problematic extension.


Added filterWidgetBuilder

While trying to customize our filters with the filterWidget we ran into some problems:

Input fields could either not be focused, or would not take any user input
We can't access the data in the column

I have deprecated the filterWidget in PlutoColumn and instead added filterWidgetBuilder
This gives the developer the option to add custom filters widgets to the PlutoColumns.
Below some examples of this being used in a client test project.

TextField(
      decoration: IFMInputDecoration().copyWith(
        hintText: "contains".tr,
        // contentPadding: const EdgeInsets.all(8),
        hintStyle: const IFMTextStyle().copyWith(
          color: grey,
          fontSize: filterFontSize,
        ),
        alignLabelWithHint: true,
      ),
      style: const IFMTextStyle().copyWith(
        color: grey,
        fontSize: filterFontSize,
      ),
      onChanged: handleOnChanged,
      focusNode: focusNode,
      controller: controller,
      enabled: enabled,
    );

The below dropdown is generated from the data available in the column itself

final list = stateManager.refRows.originalList
      .map((row) => (row.cells[field]?.value as String?) ?? "")
      .toSet()
      .toList();

DropdownMenu(
      expandedInsets: EdgeInsets.zero,
      hintText: "choose".tr,
      controller: controller,
      focusNode: focusNode,
      enabled: enabled,
      onSelected: (value) {
        handleOnChanged.call(value ?? "");
      },
      textStyle: const IFMTextStyle().copyWith(
        fontSize: filterFontSize,
      ),
      dropdownMenuEntries: [
        ...list.map(
          (e) => DropdownMenuEntry(
            value: e,
            label: e,
          ),
        ),
      ],
    );

These changes would allow each type of column to have a it's own unique filter when necessary
(no working example for from-to yet)

@doonfrs any info about when and if we can get this merged? :)

Merged, Thank you @Software365-info !


Fixed push subcmd and alligned to upload

The push command broke due to a changed signature of RepoHook. The check for pending upload is just aligned to upload(.py).

Thanks @flxo , pushed a new version with your fix !


4.0.0 router can't use / inside of an iframe

4.0:
http://plnkr.co/edit/HsO6Dwtv1L4CDYi10Gv9?p=preview
3.0:
http://plnkr.co/edit/KSLgxEQveieLKWo5okxt?p=preview
In 3.0, choo properly detected the "base" route inside an iframe as /. Now in 4.0, it's forcing me to use the document.location.pathname of the iframe.
I would prefer to use / inside of iframes, but I don't know enough about routing to know if this is a bug/limitation/whatever.

Oh that's interesting - not entirely sure what's causing that - I think it might because of how we initialize our base route in https://github.com/yoshuawuyts/sheet-router/blob/master/create-location.js. The 4.x routing patch was intended to make apps / mobile / electron easier to use, I hadn't really considered iframes at all so thanks for reporting!
What might work (untested) is setting a base tag so it resolves correctly - https://developer.mozilla.org/en/docs/Web/HTML/Element/base - could you let me know if that perhaps works?

No luck using the base tag.
<base href="/"> won't even load the script (since the script is hosted in a /generatedkey path)
<script type="text/javascript">
      document.write("<base href='" + document.location.pathname + "' />");
</script>

loads the script, but gives me the same error as before.

Some tools moarn about base-tag not being a full-qualified URL (with protocol, subdomain and domain). Although absolute or even relative paths are valid according to the spec.
IIRC there were some differences between window.location, document.location and document.URL when it comes to iFrame …

Released https://github.com/yoshuawuyts/microframe recently; think we're close to getting a good set of choo modules wired up in a standalone package aimed to be integrated in other libs. Most things don't need a router, so might as well make it standalone. Sooon :sparkles:

So choo@6 will solve this completely, where as per #480 we'll be prototype based which means you can set your own app.router. So for iframes you could create a simple router that doesn't try and parse window.location stuff C:


Case insensitive search for tag

If my tags have the first letter capitalised - such as Version control

in the extension when adding a new booking I would like to just be able to type 'v' and a case insensitive search of my tags is done

currently if I type v then Version control is not shown in the drop down tags menu
v

V

Thanks !!!!!!!!!!!!!!!!!!!!

Should be resolved with https://github.com/sissbruecker/linkding-extension/pull/73

thanks @sissbruecker and @FireFingers21 !!!!!


Read type of paper

Description
// Works
#context if page.width.mm() != 210 or page.height.mm() != 297 { set page( paper: "a4") }

// Error
#context if page.paper != "a4" { set page( paper: "a4") }

Use Case
Conditional change of paper size, because with unnecessary change of paper is inserted also page break.

Hello, I have one .typ file with #set rules for page. Then i have several .typ files with chapters.
A) When I want generate whole document to pdf with all chapters everything is OK
B) When I want generate only one chapter to pdf, then problem starts because I am without formatting
C) When I include format file to every chapter it works well except function set document
D) When I delete set document everything is OK, but I am without metadata (only possible option at now)
The function set document could be called only once and there is no way detect it was called

I must set document before context
I could read document only in context
=> it is deadlock

I tried to use bit FirtRun by #let s = state("s", 0) but there is the same problem

I must set document before context
I could read state only in context
=> it is deadlock

Only actual solution is don't have metadata in single chapter pdf.


[FEAT] Making a COPY and PASTE button

If the user has to draw the same things again and again, one can use the copy and paste button such that one can copy the necessary section and paste it on the white board wherever needed.

Hi there @shravanibhor, You need to work on One issue at a time.
Please work on #127 for now, once you completed that successfully i'll assign this one to you!

Hi @shravanibhor, can you please elaborate how you're going to implement the Copy/Paste feature ?
How are you going to do such actions with the Strokes drawn on top of canvas?
Let me ask @singodiyashubham87 (Project Admin) regarding this one!

Yes Sure, so there would be two buttons, one to copy and the other one to paste. Once the copy button is clicked the user would get an option to choose the area on the white board which he wishes to copy. The area would then get copied. Further when the paste button is clicked, the user can drag that piece of area wherever he wants to place on the white board.

Seems like a good one, I'm assigning this issue to you @shravanibhor.
Best of luck, make sure to create a PR once you made the right changes!

@shravanibhor Do remember to follow the standard coding practice, Best of Luck!

pls, assign this project to me ,I am contributor of GSSOC'24

Sorry @Tani1126, We can't assign this issue for you.
Issues will be only assigned as FCFS (First Come First Serve) Basis, So you need to create a new issue regarding any improvements or bugs. We're here to review it and assign it to you.
Thank you!

Thankyou sir
On Mon, May 20, 2024, 21:51 Abdul Khalid @.***> wrote:

Sorry @Tani1126 https://github.com/Tani1126, We can't assign this issue
for you.
Issues will be only assigned as FCFS (First Come First Serve) Basis, So
you need to create a new issue regarding any improvements or bugs. We're
here to review it and assign it to you.
Thank you!
—
Reply to this email directly, view it on GitHub
https://github.com/singodiyashubham87/Draw-it-out/issues/128#issuecomment-2120780708,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5BMEO6W4WU4EODCX4CGEB3ZDIPJ3AVCNFSM6AAAAABHXHLJ72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQG44DANZQHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I want to work in this issue. Please assign me this task.

@shravanibhor Are you working on the issue?

@shravanibhor Removing your assignment due to inactivity.

@Tani1126 Want to work on the issue?

@singodiyashubham87 @0xabdulkhalid please tell me clearly so I can start my work.

@Tani1126 You can start working, & sorry for the delay, we are also having our exams, so try to understand :)

No problem thanks for assigning me this task
On Sun, Jun 2, 2024, 15:51 Shubham Singodiya @.***>
wrote:

@Tani1126 https://github.com/Tani1126 You can start working, & sorry
for the delay, we are also having our exams, so try to understand :)
—
Reply to this email directly, view it on GitHub
https://github.com/singodiyashubham87/Draw-it-out/issues/128#issuecomment-2143789581,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5BMEO37GVD56CYQV3D67LLZFLW4DAVCNFSM6AAAAABHXHLJ72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTG44DSNJYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Occurrences highlight is per individual cell, with different tokens, instead of highlighting a single token over the whole notebook

Environment data

VS Code version: 1.73.1
Jupyter Extension version: v2022.9.1303220346
Python Extension version: v2022.18.2
OS: Windows 10

Expected behaviour
Occurrences highlight should highlight a single token, the one under the cursor in the current active cell, not a different one for each cell.
Actual behaviour
Each Jupyter Notebook cell has it's own occurrences highlight, so you often see each cell highlighting a different token, which is annoying and breaks the purpose of occurrences highlight.
Steps to reproduce:
Notice how in the first cell sel_df is highlighted, in the second cell idx is highlighted, in the third cell gb_df is highlighted. Ideally, only the token in the current cell would be highlighted over the whole notebook. Or at least occurrences highlighting would be disabled in all but the active cell.

I confirm that the issue is still present in the last version of VS Code Jupyter.

Similar to https://github.com/microsoft/vscode/issues/141673, let's track it there.


Couldn't compile for android

Hi I'm trying to compile the lib for android but It gives the following error.
I used >cargo build --target armv7-linux-androideabi --release
The ERROR
error: failed to run custom build command for `openssl-sys v0.9.60`

Caused by:
  process didn't exit successfully: `C:\Users\AmmarMohammed\.cargo\registry\src\github.com-1ecc6299db9ec823\native-tls-0.2.7\target\release\build\openssl-sys-7d532f02768e9fdf\build-script-main` (exit code: 101)
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rerun-if-env-changed=ARMV7_LINUX_ANDROIDEABI_OPENSSL_NO_VENDOR
  ARMV7_LINUX_ANDROIDEABI_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  CC_armv7-linux-androideabi = None
  CC_armv7_linux_androideabi = None
  TARGET_CC = None
  CC = None
  CFLAGS_armv7-linux-androideabi = None
  CFLAGS_armv7_linux_androideabi = None
  TARGET_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  running "perl" "./Configure" "--prefix=C:\\Users\\AmmarMohammed\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\native-tls-0.2.7\\target\\armv7-linux-androideabi\\release\\build\\openssl-sys-55a87cbf3177df6e\\out\\openssl-build\\install" "no-dso" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-stdio" "no-shared" "linux-armv4" "--target=arm-linux-androideabi" "-O2" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi"
  Configuring OpenSSL version 1.1.1i (0x1010109fL) for linux-armv4
  Using os-specific seed configuration
  Creating configdata.pm
  Creating Makefile

  --- stderr
  Can't locate Pod/Usage.pm in @INC (you may need to install the Pod::Usage module) (@INC contains: . /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at configdata.pm line 10067.
  BEGIN failed--compilation aborted at configdata.pm line 10067.
  Compilation failed in require.
  BEGIN failed--compilation aborted.
  thread 'main' panicked at '

  Error configuring OpenSSL build:
      Command: "perl" "./Configure" "--prefix=C:\\Users\\AmmarMohammed\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\native-tls-0.2.7\\target\\armv7-linux-androideabi\\release\\build\\openssl-sys-55a87cbf3177df6e\\out\\openssl-build\\install" "no-dso" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-stdio" "no-shared" "linux-armv4" "--target=arm-linux-androideabi" "-O2" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi"
      Exit status: exit code: 1

      ', C:\Users\AmmarMohammed\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-src-111.13.0+1.1.1i\src\lib.rs:415:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It looks like the Pod::Usage Perl module is missing from your system. You probably need to install it via your package manager.

Thanks @sfackler. I will try to install it and comeback. Could u provide a good link explaining how to install it?

That would depend on which package manager you use. You can probably google around to find what package it comes in.

@sfackler I have installed Perl using Msys2 but the same error still appears
  --- stderr
  Can't locate Pod/Usage.pm in @INC (you may need to install the Pod::Usage module) (@INC contains: . /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_pe
rl /usr/share/perl5/core_perl) at configdata.pm line 10068.
  BEGIN failed--compilation aborted at configdata.pm line 10068.
  Compilation failed in require.
  BEGIN failed--compilation aborted.

I think I have to pass the location of the needed module. Is there any way to do that?

The Pod::Usage module is probably not packaged with perl by default.

I see it. it's in C:\msys64\usr\share\perl5\core_perl\Pod\Usage.pm

I am not familiar with how Perl works in msys2 unfortunately. It is presumably using some other perl (i.e. the same one it was using before you installed it in msys).

The system was using other Perl. thank u.


When processing subject name, don't downcase strings unless processing dot-separated DNS names.

Examining the function, the only time it's important to downcase is where the subject string is interpreted as a DNS name.  In other cases, the string is human-readable and shouldn't be downcased.

Code LGTM, but the description is a bit odd: To me it reads that strings will be downcased if  dot-separated DNS names are processed and won't be downcased otherwise. From the code it seems that the labels will always be downcased while the subject never will be?

Sorry, it's a bit of a double-negative.
It would read better as: "When processing subject name, only downcase strings if they are dot-separated DNS names".
Is that better?  I don't know if I can change the commit message at this point.

New commit description added to clarify.


[QNN] support zero points as variable scalar for QnnBatchMatMul op

There is fix of the issue
cc @ibsidorenko @apeskov

Hello @AndrewZhaoLuo! Thanks for help, the PR is ready for merged


error in local_enrichment when running for two matrices

Hi,
I'm running the commands using the  supplied data from the examples folder. Unfortunately I keep getting the error when running the following command.
wot local_enrichment --score t_test --matrix1 ../wotExamples/trends_Lymphocytes.mean.txt --variance1 ../wotExamples/trends_Lymphocytes.variance.txt --matrix2 ../wotExamples/trends_Granulocytes.mean.txt --variance2 ../wotExamples/trends_Granulocytes.variance.txt
I get this error:
Traceback (most recent call last):
  File "/home/USER/.local/bin/wot", line 10, in <module>
    sys.exit(main())
  File "/home/USER/.local/lib/python3.7/site-packages/wot/__main__.py", line 23, in main
    cmd.main(command_args)
  File "/home/USER/.local/lib/python3.7/site-packages/wot/commands/local_enrichment.py", line 60, in main
    ds2.variance = ds2.variance[:, ds_indices]
AttributeError: 'AnnData' object has no attribute 'variance'

All the other commands have worked so far.
But I'm not sure why this is happening.
I would appreciate your help.
thanks

Thanks, the bus is fixed now.


Storage Pools section not working

Rancher Version:
v1.1.0-dev2-rc4
OS and where are the hosts located? (cloud, bare metal, etc):
AWS
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
External DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
I configured gluster fs and convoy gluster using the packages available in the community packages. I went to the menu for Storage Pools, I can see the 3 servers in the right side, but I add a volume and the page doesn't refresh. I refresh the whole page and that shows a "Requested" label in the volume I requested to, and that never changes, after one day still the same label.

@pragmaticivan - The Volume will stay in a requested state until you have a service that actually utilizes that volume.  Once that Service is "Active" the Volume state will move from Requested to Active.  I'm going to close, reopen if after you add service it's still in Requested state.
The refresh bug is already reported - #3208

@tfiduccia this tasks has 2 problems, the first on you didn't solve. After I add a volume the page doesn't refresh. And still happening. Problem with The UI I guess.

@pragmaticivan The refresh issue has already been filed as @tfiduccia mentioned. It is #3208.

@deniseschannon thanks, I just tested what @tfiduccia said and the container has problem to start using the volume requested. I'll debug the logs later.


Request -> Remote server deployment tutorial w/ API access for AI apps

Hey Ollama team, thx for all that you guys are doing.
Question/Request: can you please demonstrate how we can deploy Ollama to a remote server -> I have using ssh but I cannot, for the life of me, figure out how to build it into an api I can use with autogen/crewai/superagi/etc...
I bet many are also stuck here.  Sure we can get things going locally, but almost no one actually owns an m3 mac to run things locally... so local dev is tough... and for production AI apps we need an API solution for a remote Ollama install...
I believe the world needs Ollama and open sourced options more than ever as the big corporations are pushing us towards the abyss... an API/Deployment tutorial or package would be the keystone in protecting humanity from the big corps...

but almost no one actually owns an m3 mac to run things locally
You don't need a M3, or a Mac to run things locally. Lots of people run Ollama locally on PCs.

If you want to expose the ollama service beyond localhost you can refer to the FAQ. You should be conscious of the fact that the ollama API doesn't have any authentication or encryption, so you'll either want to run it behind a reverse proxy that implements those things or use a VPN (tail scale is easy to set up).

Here's a concrete example of running Ollama in Kubernetes

thx guys.. i appreciate it.  Also posted to 'Matt's" youtube channel... he replied that this is a good idea so here's to hoping for a tutorial direct from the Ollama team.  :)
cheers.

Need to add for clarity -> I am struggling to access my remote serve linux ubuntu ollama install from anything other than ssh.
Need guidance on connecting to my remote linux/ubuntu server... all I have is a public IP... requests time out no matter what different url string I try...

I am still unable to find a clear set of instructions or a tutorial to connect to the static public IP of my hosted ubuntu/linux Ollama install with anything other than SSH in my terminal...
Anyone have a way to get past the 'Request Timedout' error... or connection advice?

I'd suggest familiarizing yourself more with firewalls and ssh tunneling / port forwarding. Your hosting provider may have some introductory resources.
You really should NOT be exposing services to the internet at large without some understanding of network and system security. SSH tunneling is probably the simplest way to make a remote Ollama install accessible to something running on your local machine.

The people need an alternative to open-ai... the only way I see is Ollama so we can utilize open sourced models for various tasks within our AI apps... but ALL attempts to deploy have been a giant waste of time so far...
Has anyone out there successfully deployed Ollama to a remote server for production scalable apps?

Please share the output of sudo netstat -ltnp This will run netstat as superuser and tell netstat to show listening sockets (l) on tcp (t) using numeric representations of IP and port addresses (n) and list the processes behind those listening sockets (p). You can obfuscate any IP addresses you don't want to be public.

@squatchydev9000 The ollama-python repo has a tutorial for interacting with the API using Python, and there's one for JS on their JS repo:
https://github.com/ollama/ollama-python
https://github.com/ollama/ollama-js
They also have REST API documentation:
https://github.com/ollama/ollama/blob/main/docs/api.md
FAQ section covers exposing the interface to remote machines:
https://github.com/ollama/ollama/blob/main/docs/faq.md
Set env variable to tell Ollama which interface to bind on:
OLLAMA_HOST="<IP_ADDRESS>"
Can also update the origins:
OLLAMA_ORIGINS="<IP_ADDRESS>"
This should allow you to remotely access ollama serve via API. There are a lot of tutorials out there for deploying apps via Docker, Kubernetes, or through API packages such as Flask, FastAPI, Django, etc. Without knowing your current experience level, it would be difficult to point you to an appropriate tutorial/guide. Feel free to reach out if you need hep with anything.

As @remy415 mentioned, you should be able to start the ollama server with the OLLAMA_HOST=<IP_ADDRESS> environment variable. I think the question has been answered, so I'm going to go ahead and close the issue. Please feel free to reopen or just keep commenting.

Helllo, i also had the same problem. Installed Ollama on a dedicated VM (cpu only) then was struggling with api requests (crewai etc) from the other machines on the internal network.
The solution is pretty simple tho: need to log to the hosted server and once the models are running type:
export OPENAI_API_BASE=http://localhost:11434/v1
i user also SerperDev since no luck with DuckDuckGo and did the same:
export SERPERAPI_KEY=your_serperkey
on the code part i have :

from langchain_openai import ChatOpenAI
from crewai_tools import SerperDevTool
os.environ["SERPER_API_KEY"] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxc"
search_tool = SerperDevTool()
gemma2b=ChatOpenAI(
openai_api_base='http://<IP_ADDRESS>:11434/v1',
openai_api_key='NA',
model_name='gemma:2b'
)

@squatchydev9000 The ollama-python repo has a tutorial for interacting with the API using Python, and there's one for JS on their JS repo:
https://github.com/ollama/ollama-python https://github.com/ollama/ollama-js
They also have REST API documentation: https://github.com/ollama/ollama/blob/main/docs/api.md
FAQ section covers exposing the interface to remote machines: https://github.com/ollama/ollama/blob/main/docs/faq.md
Set env variable to tell Ollama which interface to bind on:
OLLAMA_HOST="<IP_ADDRESS>"
Can also update the origins: OLLAMA_ORIGINS="<IP_ADDRESS>"
This should allow you to remotely access ollama serve via API. There are a lot of tutorials out there for deploying apps via Docker, Kubernetes, or through API packages such as Flask, FastAPI, Django, etc. Without knowing your current experience level, it would be difficult to point you to an appropriate tutorial/guide. Feel free to reach out if you need hep with anything.

very useful!

Hey Ollama team, thx for all that you guys are doing.
Question/Request: can you please demonstrate how we can deploy Ollama to a remote server -> I have using ssh but I cannot, for the life of me, figure out how to build it into an api I can use with autogen/crewai/superagi/etc...
I bet many are also stuck here. Sure we can get things going locally, but almost no one actually owns an m3 mac to run things locally... so local dev is tough... and for production AI apps we need an API solution for a remote Ollama install...
I believe the world needs Ollama and open sourced options more than ever as the big corporations are pushing us towards the abyss... an API/Deployment tutorial or package would be the keystone in protecting humanity from the big corps...

very true i have same issue here , for any pc to run ollama locally, the system should be atleast to a very extent a bit powerful

I love how easy it is to use ollama locally i do wish same can be available for production deployment jus as OpenAi HAS IT BY JUST CALLING THEIR API


REPL is not keyboard accessible

We seem to hide focus in the repl and complex hover when you click with the left mouse, but not with the right mouse. Not sure what the story is here but it is also a problem for accessibility because I cannot access elements using keyboard.

Whenever you left click in the repl we always focus input. Chrome does the same for example.
Right click behavior we do not do anything special.
We should talk about hover and repl accessibility and then figure out what to do here.

@bpasero Ok, so these are two separate issues.

Hover is not accessible, Joao had a nice idea that we have a keybinding for showing the hover on a particular token, when the user triggers the hover with this keybinding only then will the hover show focus and then the user can navigate through the elements via keyboard. We have this problem for all our hovers

Repl is not accessible, currently the user can just tab in to the repl tree, this way the user can navigate through whole repl history via keyboard. There are some issue here which I can addresss (focused element is not revealed). Not sure what else is missing here

We can also bring this up in our weekly ux sync. Second issue I can try to address right now, but the first one I would wait for our general hover solution.

Yeah starting with 2) seems good, someone should be able to navigate the repl without the mouse.
Having a keybinding for showing the hover makes sense. But I guess we would need another keybinding to jump into the hover somehow.

Ok I will look at these issue as improve REPL accessibility and will look into that.
That keybinding could automatically focus the hover, so you would not need to jump in. Whenever the hover closes it would give focus back to the editor

@bpasero Ok I was checking out the repl and it actually behaves decently - like all our other trees.
Not sure though if it would be better for the user that when focus is passed to repl the last element gets focus, not the first - since it is a repl.
What do you think?
Since people can navigate the REPL via keyboard I would close this issue and wait for feedback unless you have something on top of your head?

Sounds like a good idea to actually focus the last element when you tab into the tree, would suggest to try it. Otherwise I agree, once focus is in, keyboard navigation works. I filed this bug initially because you cannot click into the tree to focus it, but maybe that is not a big deal since you can do the same with Shift+Tab.

I intentionally disabled click to get focus on element to have a feel of a real console. I can undo that, but I think the current behavior is fine.
Now on first keydown I focus the last element in repl


Question - animation?

Hi @JimLiu, thanks for an excellent module.
I am in the process of switching over from angular-tree-control as it's not quite as full-featured as your control is.
I was wondering, is there any way to insert animations (i.e. slide-toggle type effects) when expanding and collapsing tree nodes, potentially using something like ngAnimate (http://www.nganimate.org/)? Have you investigated this at all? From a UX standpoint it would be a nice feature.
Cheers,
-nick

Nick, did you ever get this to work?  I tried adding a simple fade animation for ngHide and ngShow but it didn't seem to do anything.


Ho to compiled  the build  witch VS2017

Hi,
Ho to compiled  the build  witch VS2017
Thanks

I have not use trt on windows yet sorry，I also want to kown this.

Hi,
Compiled successfully  on linux.Tried to  ./TensorRTYOLOV3  at the build test which as following error:
Failed to parse ONNX model from file/home/ai/darknet/data/TensorRT/yolov3.onnx
[02/23/2020-09:46:41] [E] [TRT] Parameter check failed at: ../builder/Layers.cpp::PluginV2Layer::1499, condition: (inputs[0]) != nullptr
[02/23/2020-09:46:41] [E] [TRT] Parameter check failed at: ../builder/Layers.cpp::PluginV2Layer::1499, condition: (inputs[0]) != nullptr
[02/23/2020-09:46:41] [E] [TRT] Parameter check failed at: ../builder/Layers.cpp::PluginV2Layer::1499, condition: (inputs[0]) != nullptr
Segmentation fault (core dumped)

You can install Anaconda, and setup Jupyter Lab. There you can run your model.
It should utilize your GPU capabilities as well.


Resolution Width/Height Criteria Not Working

Hi,
Similar to https://github.com/ShanePe/Emby.SmartPlaylist.Plugin/issues/4 - I am experiencing issues with the Resolution Width/Height Criteria not working.  I was able to use the workaround fairly effectively (video title contains 4K) but this may not cover everything/all use-cases.
Here is a snippet from the log showing the "failed" comparison for Resolution Width - might just be a simple typing comparison issue?

Happy to provide any more detail required, thanks for your hard work!

Thank @cscattaglia917 , As you still experiencing this?

Hey @ShanePe - yes I was still experiencing this issue up until about a week ago when I updated to <IP_ADDRESS> and now the plugin no longer loads so I can't test(I know you are working out the 4.8+ kinks still due to some API changes so no worries there!)


Add useful comments when missing

Various comments potentially useful are missing in some cheatsheets and have to be be completed accordingly.

[x] Signed commit with user key (5524ae950a350c5a5bc1577250d09a427e305e4f)
[x] Generating and editing GPG keys (1703ea6d97a1a3d331dbe3667f3eca7d17b0cbad)

Issue closed manually.


caffe_convert prelu ?

Does caffe_convert.py support prelu layer ?
I don't find it, just have the relu and the num = 18.

thanks , I need help.

not yet. should be easy to add the support, similar to relu

@piiswrong  and do you can add the prelu support?

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


MQTT GPIO messages not retained

PROBLEM DESCRIPTION
Looks like GPIO MQTT messages are not retained.
I'm using a GPIO for a simple door sensor and after a Home Assistant restart, the state of the door is unavailable until the next state change.
There was an issue https://github.com/technyon/nuki_hub/issues/13 a while ago, but seems this affects only the lock messages?
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

[x] Read the Contributing Guide and Policy and the Code of Conduct
[x] Searched the problem in issues
[x] Searched the problem in discussions
[x] Searched the problem in the docs
[x] Searched the problem in the chat
[x] Device used (e.g., ESP32-S3): ESP32
[x] Nuki Hub binary firmware version number used: 9.05-master5

[x] Pre-compiled
[ ] Self-compiled

[ ] Provide the output of http://nukihubIP/info:

------------ GPIO ------------
GPIO 19: General input (Pull-up)

TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)

Added the option to retain GPIO state for inputs in #569.
Enable on the GPIO page in the web configurator.
Feature will be in 9.05-master6 (auto released in a couple of hours)


Remove CliffordTableau from CliffordState

#2423

Automerge cancelled: A status check is failing.

Automerge cancelled: A status check is failing.

Needs automerge again due to a merge conflict the first time

Needs automerge again due to a merge conflict the first time


maplestory 2 bgm

Hello :wave:, I know I read in https://github.com/maplestory-music/maplebgm-db/issues/15#issuecomment-893162962 that MapleStory 2 is out of scope, but SlipySlidy has those ones anyway, (btw is @nanochromatic the same person as SlipySlidy ?)
so I thought I might try write a script to get those tracks
I did make some assumptions, feel free to reject this or let me know what to change:

description, filename, mark, metadata.title are all just the youtube title minus [MapleStory 2 BGM]

not sure what filename is used for, but mark seems like it's used for the thumbnail on the website, if this were to be added I guess I would need some other thumbnail (maybe can use a single file to represent all MS2 bgm)

client is MS2 for all, metadata.albumArtist is Wizet for all, metadata.artist is StudioEIM for all
year and date is just the publish date of the youtube video
source.version is 1.0 for all

Thanks for this project

I appreciate the time you've spent on this. You are correct that MapleStory 2 is not within the scope of this project. This may change in the future, but at the moment there are no plans to support music outside of the original game. While this project has a vested interest in the YouTube channel, not every video falls within the scope of project.


feat: add nabeken/go-github-apps

nabeken/go-github-apps: A tiny command-line utility to retrieve Github Apps Installation Token
$ aqua g -i nabeken/go-github-apps

How to confirm if this package works well
Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.
Command and output
root@60fbf8bab1e4:/workspace# go-github-apps --help
Usage of go-github-apps:
  -app-id int
        App ID
  -export
        show token as 'export GITHUB_TOKEN=...'
  -inst-id int
        Installation ID
  -show-insts
        show all of the installations for the app
  -url string
        specify the base URL for Github API, for use with Github Enterprise. Example: 'https://github.example.com/api/v3' (default "https://api.github.com")
  -version
        show version info

== Build Info ==
Version: 0.1.12
Commit: 5b22097dca0a7822f2404e5755f43183ff4b5c11
BuiltAt: 2023-12-07T13:11:19Z

If files such as configuration file are needed, please share them.

Reference

README.md

https://github.com/nabeken/go-github-apps/blob/master/README.md

Thank you always!

v4.134.0 is out 🎉
https://github.com/aquaproj/aqua-registry/releases/tag/v4.134.0


多容器相互link， 发起主机的hosts文件并没有增加记录

关于使用rancher 相互link多容器， 在 /etc/hosts 下没有生存对应的解析记录 ，这是为什么

I don't think rancher uses /etc/hosts for it's linking. It's got it's own DNS service + Overlay Network which works out the list of IP addresses of healthy containers.
See http://docs.rancher.com/rancher/latest/en/rancher-services/dns-service/

@OliverVin Let me know if you have further questions, but @yunspace has answered correctly.


Add index trait for regexset

It is useful to access the regex one provided once to the
regexset(-builder).
Instead to let the user store the regex in a seperate list to
index them later, one can now index the regexset directly.
BurntSushi mentioned that he would happily accept a PR (https://users.rust-lang.org/t/finding-set-of-substrings-in-a-long-string/21416/7) so here it is.
This is my first contribution to the rust-lang, I'm excited :heart:

@hellow554 Thanks so much! I think your most recent comment on the forums is right though: I don't think we should define an Index impl on RegexSet. Instead, I'd propose just adding a method called patterns that returns &[String]. Otherwise though, I think your implementation looks good!

&[String] or &[&str]?

@hellow554 &[&str] isn't possible. :-) Namely, String and &str do not have the same in memory representation, so you cannot cheaply get a &[&str] from a Vec<String>.

After thinking about that, you're right. Any thoughts about the method name? Something like get_set(&self) or get_expressions(&self)?

I think just patterns is fine.


Can I "scale" the percentages? Also, auto-refresh

Hello,
Love the plugin. Two quick questions:

Can I scale the percantage? For example, instead of the pie chart showing 0-100 %, I would like to show 99-100% with decimal places and have the chart reflect that. For example, in my particular use, the current difference between 99.965% and 99.974% looks the same visually & I would like to visualize a greater difference.
Given my configuration below, I would like to auto-refresh the chart. What's the best approach?

function setup_easypie(){
        if ($('.percentage').length) {
            $.percentage_easy_pie = $('.percentage');
            $.percentage_easy_pie.easyPieChart({
                animate: 2000,
                trackColor: "#515151",
                scaleColor: "#818181",
                lineCap: 'butt',
                lineWidth: 10,
                barColor: function(percent) {
                    percent /= 100;
                    return "rgb(" + Math.round(255 * (1-percent)) + ", " + Math.round(255 * percent) + ", 0)";
                },
                size: 150
            });
        }
    }

@gforster, did you ever get around to this? I am looking for a similar implementation.
In my case, the circle should reflect 0-40 as 100%.

Didn't mean to close it 😃
As of now you can use the update method to set you value and apply your own transform:
function transformMyValue(inputValue) {
    return inputValue / 40 * 100;
}

$('.chart').data('easyPieChart').update(transformMyValue(35));

Updating its value will update the canvas as well. For now I'm just updating the innerHTML 40ms after the rendering.


topology module extrapolation

The topology.rs file is starting to get really long, so it would be good to turn this into a directory module soon to keep it maintainable and readable.

going to close this issue because it's something that I will probably refactor naturally and doesn't require an entire PR

Reopening this because #34 is doing this


The wyoming-v1 branch

Hi @synesthesiam . Is the master branch maintained? What remains from the wyoming-v1 branch to be merged to master? Do you need any help with the project?

see:
[wyoming-satellite]{https://github.com/rhasspy/wyoming-satellite/tree/master}

I do need help, but I haven't even had enough time to come up with a solid plan 🙃
Since developing Rhasspy v3, more emphasis has been put on Wyoming servers (usually via tcp). I would like to rework things so that external connections are the default (with program to program connections handled via stdio:// URIs).
With the Info messages, the main UI needs to be updated. I really wanted some mechanism for installing services, but it looks like Docker is probably going to be it.
Lastly, satellites now have their own Info section and set of messages. The Rhasspy server doesn't support any of this stuff yet 🫤

@synesthesiam  I feel sorry for you as you are obviously spread way too thin across many projects.  As an outsider, I find it very difficult to understand which projects are key or what the software architecture is intended to be.  The lack of comments in the code also makes that difficult for me.
However, I'm extremely grateful that you wrote wyoming-satellite as I now once again have a functioning remote HA voice assistant.  Keep up the great work

@synesthesiam  I feel sorry for you as you are obviously spread way too thin across many projects.  As an outsider, I find it very difficult to understand which projects are key or what the software architecture is intended to be.  The lack of comments in the code also makes that difficult for me.

It's frustrating to see issues and pull requests pile up, and know I'll likely never have the time to get to them. The "march of progress" from Python alone is enough to make it impossible to keep up. Code that was working just over a year ago is now broken because everyone in the world has to rebuild their dependencies every 6 months for the next Python version bump. And then a new Debian version comes out. And then a new PyTorch. And so on.
I don't have a grand vision for Rhasspy these days since the open source voice space is moving faster and faster. At this point, I think the best I can do is just wrap things with Docker and make them Wyoming compatible. And even then they will be broken and out of date in 3 months 🙃

However, I'm extremely grateful that you wrote wyoming-satellite as I now once again have a functioning remote HA voice assistant.  Keep up the great work

Thank you, much appreciated!


Fix GPS issue in the metadata of the images

This turned out to be an issue with selecting the correct coordinate system in QGIS. The data are in WGS84 so you need EPSG:4326


Random Battle: Add Rock Slide to Landorus-I

With balanced EVs, Landorus can still use its Physical movepool for
coverage thanks to its respectable base Attack, and Rock Slide is a
Rock-type move boosted by Sheer Force.

Sounds good. Also, remove Rock Polish from Doubles imo.


Fix bug with bus schedule date parsing in Safari

The string being passed into Date() isn't valid format that Safari could handle. Manually break out relevant date and time pieces and passing in as separate parameters.
Also fixing missing start dot.

LGTM


Breaking changes in tib

I'm trying to run a new nx image.
Fresh 20.04 install
Steps to reproduce:
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager
sudo adduser $USER libvirt
sudo snap install multipass
sudo pip3 install . && tib nx -v 2 -m 16G --patches extras/patches/nano_4.4.3_l4t32.4.3_rbpv3_imx477_support.patch --menuconfig --chroot-scripts extras/scripts/sysprep.sh extras/scripts/install_deepstream.sh extras/scripts/fix_boot_permissions.sh

Error
subprocess.CalledProcessError: Command '('/snap/bin/multipass', 'transfer', '/usr/local/lib/python3.8/dist-packages/tib/install_deps.sh', 'tib:/tmp/scriptdir/install_deps.sh')' returned non-zero exit status 1.

This error is also present on my other remote desktop shadow, which last ran a successful build on 07 Dec. Rolling back commits did not help.

Cause is #6
sudo pip install seems to be the problem. To fix, just install in a dedicated venv. Reason this happens on Linux is because Multipass is a snap app, snap apps are sandboxed, and sandboxed apps can only access certain paths (not including /usr/local/...).

Cause is #6
sudo pip install seems to be the problem. To fix, just install in a dedicated venv. Reason this happens on Linux is because Multipass is a snap app, snap apps are sandboxed, and sandboxed apps can only access certain paths (not including /usr/local/...).

Feel free to reopen if this doesn't fix it for you.

Feel free to reopen if this doesn't fix it for you.


Added st7796s driver

Added st7796s driver for WirelessTag  device WT32-SC01

Hi @C47D could you have a look? I copied from ili9481 and merged some changes from an old fork from https://github.com/wireless-tag-com/lv_port_esp32

@C47D Is there a way to setup also the touch panel with predefined display settings? The WT32-SC01 use FT6x06 with PIN 18 and PIN 19 for SDA and SCL

Hi @damianog,
Maybe you can try to do something like this in the lvgl_touch Kconfig file:
diff --git a/components/lvgl_esp32_drivers/lvgl_touch/Kconfig b/components/lvgl_esp32_drivers/lvgl_touch/Kconfig
index 1957771..93c6c15 100644
--- a/components/lvgl_esp32_drivers/lvgl_touch/Kconfig
+++ b/components/lvgl_esp32_drivers/lvgl_touch/Kconfig
@@ -186,6 +186,7 @@ menu "LVGL Touch controller"
             int
             prompt "GPIO for SDA (I2C)"
         range 0 39
+            default 18 if LV_PREDEFINED_DISPLAY_WT32_SC01
             default 21
             help
             Configure the I2C touchpanel SDA pin here.
@@ -193,6 +194,7 @@ menu "LVGL Touch controller"
         config LV_TOUCH_I2C_SCL
             int "GPIO for clock signal SCL (I2C)"
         range 0 39
+            default 19 if LV_PREDEFINED_DISPLAY_WT32_SC01
             default 22
             help
             Configure the I2C touchpanel SCL pin here.

@damianog did it worked as expected?
If not you can also do something like this:
menu "Touchpanel (FT6X06) Pin Assignments"
        depends on LV_TOUCH_CONTROLLER_FT6X06

        config LV_TOUCH_I2C_SDA
            int "GPIO for SDA (I2C)" if !LV_PREDEFINED_DISPLAY_WT32_SC01
        range 0 39
            default 18 if LV_PREDEFINED_DISPLAY_WT32_SC01
            default 21
            help
            Configure the I2C touchpanel SDA pin here.

        config LV_TOUCH_I2C_SCL
            int "GPIO for clock signal SCL (I2C)" if !LV_PREDEFINED_DISPLAY_WT32_SC01
        range 0 39
            default 19 if LV_PREDEFINED_DISPLAY_WT32_SC01
            default 22
            help
            Configure the I2C touchpanel SCL pin here.
    endmenu

This way the prompts for LV_TOUCH_I2C_SDA and LV_TOUCH_I2C_SCL are not displayed (you don't need them in preconfigured board pinouts) and the default 19 if LV_PREDEFINED_DISPLAY_WT32_SC01 and default 18 if LV_PREDEFINED_DISPLAY_WT32_SC01 are used.
I don't remember how to hide the "Touchpanel (FT6X06) Pin Assignments" menu tho.

@C47D yes it worked, I committed the changes, unfortunately I did not managed to select the type of touch panel too.
I hided as you suggested the pin change with a different approach
    menu "Touchpanel (FT6X06) Pin Assignments"
        depends on LV_TOUCH_CONTROLLER_FT6X06
        visible if !LV_PREDEFINED_DISPLAY_WT32_SC01

as explained by  https://docs.zephyrproject.org/1.14.0/guides/kconfig/index.html#visible-if-conditions

I haven't used the touch Kconfig for a while, and I'm not in my development machine, can you try something like this:
    choice
	prompt "Select a touch panel controller model."
        visible if !LV_PREDEFINED_DISPLAY_WT32_SC01
        default LV_TOUCH_CONTROLLER_FT6X06 IF LV_PREDEFINED_DISPLAY_WT32_SC01
	default LV_TOUCH_CONTROLLER_NONE
	help
	    Select the controller for your touch panel.

	config LV_TOUCH_CONTROLLER_NONE
	    bool "None"
	config LV_TOUCH_CONTROLLER_XPT2046
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "XPT2046"
	config LV_TOUCH_CONTROLLER_FT6X06
            select LV_TOUCH_DRIVER_PROTOCOL_I2C
            bool "FT6X06"
        config LV_TOUCH_CONTROLLER_STMPE610
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "STMPE610"
        config LV_TOUCH_CONTROLLER_ADCRAW
            select LV_TOUCH_DRIVER_ADC
            bool "ADCRAW"
        config LV_TOUCH_CONTROLLER_FT81X
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "FT81X"
        config LV_TOUCH_CONTROLLER_RA8875
            select LV_TOUCH_DRIVER_DISPLAY
            bool "RA8875"
    endchoice

I haven't used the touch Kconfig for a while, and I'm not in my development machine, can you try something like this:
    choice
	prompt "Select a touch panel controller model."
        visible if LV_PREDEFINED_DISPLAY_NONE
        default LV_TOUCH_CONTROLLER_FT6X06 if LV_PREDEFINED_DISPLAY_WT32_SC01
	default LV_TOUCH_CONTROLLER_NONE
	help
	    Select the controller for your touch panel.

	config LV_TOUCH_CONTROLLER_NONE
	    bool "None"
	config LV_TOUCH_CONTROLLER_XPT2046
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "XPT2046"
	config LV_TOUCH_CONTROLLER_FT6X06
            select LV_TOUCH_DRIVER_PROTOCOL_I2C
            bool "FT6X06"
        config LV_TOUCH_CONTROLLER_STMPE610
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "STMPE610"
        config LV_TOUCH_CONTROLLER_ADCRAW
            select LV_TOUCH_DRIVER_ADC
            bool "ADCRAW"
        config LV_TOUCH_CONTROLLER_FT81X
            select LV_TOUCH_DRIVER_PROTOCOL_SPI
            bool "FT81X"
        config LV_TOUCH_CONTROLLER_RA8875
            select LV_TOUCH_DRIVER_DISPLAY
            bool "RA8875"
    endchoice

the visible condition must be near the menu branch otherwise it cause compilation error.
I tried everything but choice is not updated by the conditional default.
I think we are in this situation: https://github.com/zephyrproject-rtos/zephyr/issues/6948

I will try to solve it later today.

Hi @damianog I've added most of this PR into here. We've recently moved all the drivers over that repository as we plan to work on them in the next months.
I will add the fix for the touch Kconfig in the coming days.

@C47D good, so I proceed to close this PR.

@damianog let me know if you find any issues.


Install a bug trucker: I need to edit FlutterApplication class but I do not find it

Hi,
I want to install a bug trucker and to do that I need to add a line code to my Application class.
I saw that the application class for a flutter project is io.flutter.app.FlutterApplication. I am looking for it but I am not able to find the file.
Where is it?

Hi, this seems to be a question for stackoverflow.
Please post it there.


[filebeat] Add flag to optionally mount the Docker socket

[x] Chart version not bumped (the versions are all bumped and released at the same time)
[x] README.md updated with any new values or changes
[ ] Updated template tests in ${CHART}/tests/*.py
[ ] Updated integration tests in ${CHART}/examples/*/test/goss.yaml

Starting in Kubernetes 1.24, dockershim support will be completely removed. Mounting docker socket should be only mounted on demand using a flag value in the helm chart, which is set to true by default for backwards compatibility.

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

❌ Author of the following commits did not sign a Contributor Agreement: b331b31
Please, read and sign the above mentioned agreement if you want to contribute to this project

Signed


How do you validate the option chosen by the client?

I don't see anything in CaptchaServlet to validate an option the user has chosen; eg. this is the correct captcha we wanted or not.

You're right, that is not actually the responsibility of the CaptchaServlet itself.  The CaptchaServlet generates the options and stores what the correct answer is in the CaptchaSessionInfo.  Typically the CAPTCHA is being used to protect some endpoint on your server where you want to validate that the requestor is a human.  As such the design here is that the answer chosen by the requestor is filled into a form field which then you can then send back to your server, either as its own form request, or as part of a larger form.  Your server side code then compares the value of the form field with the correct answer from the CaptchaSessionInfo.

@bdotzour-widen please note that in README.md file as it's important to know that upfront. Thanks!

I've done something like this.
Hope it helps.
net.dotzour.visualCaptcha.CaptchaValidator.java:
package net.dotzour.visualCaptcha;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

public class CaptchaValidator {

    public static CaptchaValidatorResult verifyCaptcha(HttpServletRequest request) {
        CaptchaValidatorResult result = null;

        HttpSession session = request.getSession(false); // Don't create a new session
        if (session == null) {
            return new CaptchaValidatorResult(500, "failedPost"); // No session, can't verify CAPTCHA
        }

        CaptchaSessionInfo captchaInfo = (CaptchaSessionInfo) session.getAttribute(CaptchaSessionInfo.class.getName());
        if (captchaInfo == null) {
            result = new CaptchaValidatorResult(500, "failedPost"); // No CAPTCHA info in session
        }

        // Get all form parameters as a Map
        Map<String, String[]> parameterMap = request.getParameterMap();

        // Image validation
        String[] imageAnswers = parameterMap.get(captchaInfo.getFieldName());
        if (imageAnswers != null && imageAnswers.length > 0) {
            String imageAnswer = imageAnswers[0];
            if (imageAnswer.equals(captchaInfo.getValidChoice())) {
                result = new CaptchaValidatorResult(200, "validImage"); // Image CAPTCHA validated
            } else {
                result = new CaptchaValidatorResult(403, "failedImage"); // Image CAPTCHA failed
            }
        }

        // Audio validation
        String[] audioAnswers = parameterMap.get(captchaInfo.getAudioFieldName());
        if (audioAnswers != null && audioAnswers.length > 0) {
            String audioAnswer = audioAnswers[0].toLowerCase(); // Allow case-insensitive match
            if (audioAnswer.equals(captchaInfo.getAudioAnswer().getValue())) {
                result = new CaptchaValidatorResult(200, "validAudio"); // Audio CAPTCHA validated
            } else {
                result = new CaptchaValidatorResult(403, "failedAudio"); // Audio CAPTCHA failed
            }
        }

        if (result == null) {
            // If neither image nor audio CAPTCHA was provided
            result = new CaptchaValidatorResult(500, "failedPost");
        }

        return result;
    }
}

net.dotzour.visualCaptcha.CaptchaValidatorResult.java:
package net.dotzour.visualCaptcha;

// Helper class to encapsulate the response
public class CaptchaValidatorResult {
    private final int statusCode;
    private final String statusMessage;

    public CaptchaValidatorResult(int statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public boolean isValid() {
        return statusCode == 200;
    }
}


Distance calculation

fixed distance calculation according to equation written by K. O. Stanley and R. Miikkulainen in paper "Evolving Neural Networks throughAugmenting Topologies"

p.s. Great work on the nn-videos!

Sorry that I only merged this now. I forgot about it to be honest.
Greetings and Thanks
Finn


Update using-visual-studio.md

MT loc

Docs Build status updates of commit 4be10de:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/using-visual-studio.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.


Implemented accept attribute support for dropzone.

Introduced 2 new callbacks (onDropAccepted and onDropRejected).
Added rejectClassName prop to allow custom styling when drop will be rejected.
Closes #57

This is great, thanks!

If rejectClassName is not defined, it is adding an "undefined" class, which seems like an oversight.

Thanks. Seems like an issue to me. Mind filing it and I'll take a look soon.