v3: Reducing Bundle Size by 80kb | remove yup & lodash from webpack bundles

I noticed that we end up with yup/lib and lodash in our webpack bundles, while using gatsby-source-prismic.
We don't need yup or lodash and npm ls yup points me only to gatsby-source-prismic.
yup is used to validatePluginOptions. It should not find its way it to production webpack bundles.
Ignoring this module in webpack saves us another 80kb  🍾
Sadly this breaks the sites, as the validation code is executed again in this stage of the build process?! Maybe you have a better idea ... let's get rid of that bloat.
How to ignore it ...
Just add the following to your gatsby-node.js
exports.onCreateWebpackConfig = ({ stage, actions }) => {
  actions.setWebpackConfig({
    plugins: stage === "build-javascript" ? [new webpack.IgnorePlugin(/yup/)] : [],
  })

How to test it ...
use webpack-bundle-analyzer in your gatsby-config.js
    {
      resolve: `gatsby-plugin-webpack-bundle-analyser-v2`,
      options: {
        analyzerMode: `server`,
        analyzerPort: `3001`,
        disable: !process.env.DEBUG == "1", // run with `DEBUG=1 yarn build`
      },
    },

Hey @rubas, thanks for pointing this out. The plugins are validated again in the browser via gatsby-browser.js to ensure the preview hook has valid data to work with.
While converting the project to TypeScript in v3-beta-ts, I realized there is no need to revalidate the plugin options since they are already validated in gatsby-node.js. Both the source plugin and preview hook need to validate options, however, so Yup was replaced with Superstruct.
https://github.com/angeloashmore/gatsby-source-prismic/blob/6cc5888811ac1e42215827ee5a96a719855551a2/src/validateOptions.ts
v3.0.0-beta.24 includes these changes.
The next bundle size savings we can get is changing from prismic-dom to the lower-level prismic-helpers and prismic-richtext.


no hair segmentation?

thank you for your effort!
but i cannot find hair segmentation in mediapipe source file in your docker image.
i cant run hair seg test.
SOS~

how to run this project? thank you

thank you for your effort! but i cannot find hair segmentation in mediapipe source file in your docker image. i cant run hair seg test. SOS~

did you find a solution for this? Thank youu!!


Fix #232

Remove c_ulong and use 4 Bytes instead because depending on arcitecture c_ulong can be 4 or 8 bytes.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.118%

Totals

Change from base Build 895069826:
0.0%

Covered Lines:
1600

Relevant Lines:
1700

💛  - Coveralls


UnboundLocalError: local variable 'bot' referenced before assignment

https://app.getsentry.com/pokemongof/pokemongo-bot/issues/147423678/
UnboundLocalError: local variable 'bot' referenced before assignment
  File "pokecli.py", line 490, in <module>
    main()
  File "pokecli.py", line 125, in main
    report_summary(bot)

UnboundLocalError: local variable 'bot' referenced before assignment

Same problem here.
python pokecli.py -cf config.json works in command-line, but same command through PHP, returns ;
2016-08-05 09:11:02,463 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
Traceback (most recent call last):
  File "/home/www/pokemongoup/app/Libraries/PokemonGo-Bot/pokecli.py", line 495, in <module>
    main()
  File "/home/www/pokemongoup/app/Libraries/PokemonGo-Bot/pokecli.py", line 128, in main
    if bot:
UnboundLocalError: local variable 'bot' referenced before assignment

OS : Debian 8

anyone know how to fix this?

Having the same issue.

I'm getting this error now. What was the error in your config.json? Mine looks OK to me, but I am clearly missing something, and not sure what to look for.
Missing comma? Extra comma?

I had a missing comma on the 'any' line, example:
"release": {
      "any": { "keep_best_iv": 1, "release_below_iv": 0.9, "release_below_cp": 300, "logic": "or" }

      "// Legendary pokemons (Goes under S-Tier)": {},
      "Lapras": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
      "Moltres": { "release_below_cp": 1132, "release_below_iv": 0.8, "logic": "and" },
      "Zapdos": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
      "Articuno": { "release_below_cp": 1039, "release_below_iv": 0.8, "logic": "and" }
}

Here's what I have. http://jsonlint.com/ says it's fine, but obviously not:
{
    "auth_service":"google",
<EMAIL_ADDRESS>    "password":"my-password",
    "location":"9 Main Street, St. Catharines, ON",
    "gmapkey":"AIzaSyAWW7sqZIteqqvZSIsdpEhQGlLoitkzqMg",
    "tasks":[
        {
            "type":"HandleSoftBan"
        },
        {
            "type":"CollectLevelUpReward"
        },
        {
            "type":"IncubateEggs",
            "config":{
                "longer_eggs_first":true
            }
        },
        {
            "type":"TransferPokemon"
        },
        {
            "type":"EvolvePokemon",
            "config":{
                "evolve_all":"none",
                "first_evolve_by":"cp",
                "evolve_above_cp":500,
                "evolve_above_iv":0.8,
                "logic":"or",
                "evolve_speed":20,
                "use_lucky_egg":false
            }
        },
        {
            "type":"RecycleItems",
            "config":{
                "item_filter":{
                    "Pokeball":{
                        "keep":100
                    },
                    "Potion":{
                        "keep":10
                    },
                    "Super Potion":{
                        "keep":20
                    },
                    "Hyper Potion":{
                        "keep":30
                    },
                    "Revive":{
                        "keep":30
                    },
                    "Razz Berry":{
                        "keep":100
                    }
                }
            }
        },
        {
            "type":"CatchVisiblePokemon"
        },
        {
            "type":"CatchLuredPokemon"
        },
        {
            "type":"SpinFort"
        },
        {
            "type":"MoveToFort",
            "config":{
                "lure_attraction":true,
                "lure_max_distance":2000
            }
        },
        {
            "type":"FollowSpiral",
            "config":{
                "diameter":4,
                "step_size":70
            }
        }
    ],
    "map_object_cache_time":5,
    "forts":{
        "avoid_circles":true,
        "max_circle_size":50
    },
    "websocket_server":false,
    "walk":4.14,
    "action_wait_min":1,
    "action_wait_max":4,
    "debug":false,
    "test":false,
    "health_record":true,
    "location_cache":true,
    "distance_unit":"km",
    "reconnecting_timeout":15,
    "evolve_captured":"NONE",
    "catch_randomize_reticle_factor":1.0,
    "catch_randomize_spin_factor":1.0,
    "catch":{
        "any":{
            "catch_above_cp":99,
            "catch_above_iv":0.8,
            "logic":"or"
        },
        "Eevee":{
            "always_catch":true
        }
    },
    "release":{
        "any":{
            "release_below_cp":0,
            "release_below_iv":0,
            "logic":"or"
        }
    },
    "vips":{
        "any":{
            "catch_above_cp":1200,
            "catch_above_iv":0.9,
            "logic":"or"
        },
        "Lapras":{

        },
        "Moltres":{

        },
        "Zapdos":{

        },
        "Articuno":{

        },
        "Mewtwo":{

        },
        "Dragonite":{

        },
        "Snorlax":{

        },
        "Mew":{

        },
        "Arcanine":{

        },
        "Vaporeon":{

        },
        "Gyarados":{

        },
        "Exeggutor":{

        },
        "Muk":{

        },
        "Weezing":{

        },
        "Flareon":{

        }
    }
}

Running dev commit 90e5628c401cb3145cbb1a7008b9ec89c800af4c with Python 2.7.10 on Ubuntu Linux 15.10 x64

Could try to delete these pokemon with empty settings, such as Flareon

This error occurs when something keeps the bot from starting up, which causes an exception, and in the exception handler we read from the bot variable which isn't defined yet (because we failed to construct it). Any failures related to the config is just part of it failing to construct but unrelated to the real issue.

Actually, it was because I had Google Analytics blocked in /etc/hosts as a
potential ad/tracking server
On Aug 5, 2016 16:00, "Eli White"<EMAIL_ADDRESS>wrote:

This error occurs when something keeps the bot from starting up, which
causes an exception, and in the exception handler we read from the bot
variable which isn't defined yet (because we failed to construct it). Any
failures related to the config is just part of it failing to construct but
unrelated to the real issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PokemonGoF/PokemonGo-Bot/issues/2598#issuecomment-237948311,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADIPzgHyXzXGA0RDBLpnKfDLre9rBTMyks5qc5ZSgaJpZM4Jc-PY
.

@EvilSupahFly Don't think its related to the real issue. Mine is occuring when i execute the bot from PHP. When I use it in command-line, it works perfectly.


Bump ec-cli reference to latest digest

The ec version is v0.4.79+redhat built on sha 9faa387. The image is identical to registry.redhat.io/rhtas/ec-rhel9:0.4-1718293643.
Should resolve SECURESIGN-1054. See also https://github.com/enterprise-contract/ec-cli/pull/1697 .

/approve

/ok-to-test


Always populate the Sort field in the SiteTree_Blocks table

For now, the Sort field always has a value of zero unless the user has performed some drag&drop actions. Usually this works good, as new blocks appear after old ones when they are created. However, my database seems to occasionally rearrange the order of how the Block records are stored in the database, which means that my blocks randomly jump around every now and then. The solution is to manually drag&drop them to correct positions, but it could be better if the Sort field would get a correct value at the very beginning :). I know this perhaps does not come up on all environments, so perhaps not everyone has noticed this.
Perhaps I will create a PR for this myself, but for now I will just raise an issue about it, as I don't have time atm to fix this and it's also good to hear opinions about this. Thanks! :)

Somehthing like this gist applied to your Block subclass will work for blocks on page. I haven't done it for blocksets yet.


No easy way to get the number of pages

There seems to be no way to get the number of pages aka the valid indices for getPageAtIndex. I'm not sure whether the range is always continuous or whether it can contain gaps. Right now, I'm using this workaround:
extension on PDFPages {
  int getPageCount() {
    for (var count = 0, i = 0;; i++) {
      try {
        getPageAtIndex(i);
        count++;
      } on Exception catch (e) {
        if (e.toString().contains('Index out of bounds')) {
          return count;
        }
      }
    }
  }
}

There is a way to do this, it just requires some manual work:
semi-pseudo code:
final catalog = await document.catalog;
final pagesObject = (await catalog.resolver.resolve<PDFDictionary>(catalog.dictionary[const PDFName('Pages')]))!;
final totalNumPages = (await catalog.resolver.resolve<PDFNumber>(pagesObject[const PDFName('Count')]))!

In release 0.3.0 a property has been added to PDFPages to simplify this


fix issue #171 Binding transport to IPv6 address causes

IllegalFormatConversionException
When starting Scalecube and one of the addresses only has an IPv6
address (for various reasons, in my case the DHCP didn't complete, but
we could really be using only an IPv6 network) then Addressing uses
NetworkInterface.getInetAddresses() to get an Inet6Address which looks
something like this: /fe80:0:0:0:8cf6:f5c8:c946:2c30%eno1.
Then when MembershipProtocol constructor tries to use the address to
create a "name format" for ThreadFactoryBuilder, the % in the address
causes the thread factory builder to crash with a
java.util.IllegalFormatConversionException when it tries to create
thread names using String.format().

Current coverage is 80.74% (diff: 100%)

Merging #172 into master will increase coverage by 0.40%

@@             master       #172   diff @@
==========================================
  Files            58         58
  Lines          2243       2243
  Methods           0          0
  Messages          0          0
  Branches        290        290
==========================================
+ Hits           1802       1811     +9
+ Misses          309        301     -8
+ Partials        132        131     -1

Powered by Codecov. Last update fdb5302...21d10ba

fix and verify issue: https://github.com/scalecube/scalecube/issues/171

A slightly more simple solution: https://github.com/scalecube/scalecube/pull/173


Sentinel record pollutes averages

See https://github.com/NAICNO/Jobanalyzer/issues/24#issuecomment-1691481487.  Since cputime_sec is computed as the difference in cumulative CPU usage divided by the difference in time, the first record in a data set will have zero cpu time and hence zero cpu utilization.  This value pollutes averages and it's arguable that it should be elided from processing.
On the other hand, this is only a problem when sonar starts running after the application (I think), at least it ought to be that way.  That should not be the normal case.

I've fixed this; the sentinel record gets the value of the cpu_pct field, which comes in handy here.


Http client is not overwriting the content type header when attaching a file or even if you manually call another method

Laravel Version: 9.27.0
PHP Version: 8.1.5
Database Driver & Version: mysql

Description:
I came across a strange issue with the http client where the Content-Type header is not being overwritten by any method which will be called after the first set. See examples below.
Steps To Reproduce:
I have the base http client set to the below code example.
Http::asJson()
    ->baseUrl('https://webhook.site/')
    ->attach('File', $fileContent, 'testing-file.png')
    ->post('a808f079-7df8-4492-b553-6fde48ce64aa')

I have set it that I want the content type to be application/json within the attach method though there is a method asMultipart() which is called and this should overwrite the previous Content-Type header, however this doesn't overwrite it instead uses the application/json.
This issue is as well even if you don't use the attach method but instead you overwrite it at a later stage for example:
Http::asJson()
    ->baseUrl('https://webhook.site/')
    ->timeout(30)
    ->asMultipart()
    ->post('a808f079-7df8-4492-b553-6fde48ce64aa')

The above code will have the same issue expectation is the Content-Type to be set to multipart/form-data however it is still set to application/json.

In another try of trying to fix the above issue I tried to set manually the headers with the withHeaders method and when I set the Content-Type to multipart/form-data It was appended instead of overwritten .

Not sure if that one is an issue or it is meant to be in that way just though to mention it.

Indeed, I replaced all my API classes that were loading their own GuzzleHttp instance with the new Laravel Http wrapper. At construction of the class I store the Pending Request inside the class and ended up running into the same issue when a single API endpoint demanded text/plain for a DELETE request.
I had to create my own workaround using this:
abstract class HttpClient
{
    /**
     * The Http prepared request.
     *
     * @var \Illuminate\Http\Client\PendingRequest
     */
    protected PendingRequest $request;

    /**
     * Override the Accept header with a new one rather than appending one.
     *
     * @param  string  $type
     * @return $this
     */
    protected function overrideAccept(string $type): static
    {
        return tap($this, function () use ($type) {
            $this->request->withOptions([
                \GuzzleHttp\RequestOptions::HEADERS => [
                    'Accept' => $type,
                ],
            ]);
        });
    }
}

From what I worked out at the time, it seems that PendingRequest::withHeaders() always merges recursively which causes the Accept header to combine into an array behind the scenes. The only way to override it once set was with the PendingRequest::withOptions(['headers' => ['Accept' => 'text/plain']]) method.
This functionality doesn't happen with most of the other methods on the PendingRequest class, for instance using withToken, withUserAgent, or timeout for example will always override the set value.
I suspect this was done on purpose however as it is valid to specify multiple values for the Accept header, but I do agree it was unexpected functionality.
Maybe the solution is to expose two methods, for instance accept and alsoAccept?

Your solution seems good to me thanks for that!
It seems strange though because the attach method is calling asMultipart method which by looking on it you assume that changes or adds it to the headers although that doesn't update it.
At the moment I have done some workaround which calls dynamically the given method I assign but I am wondering if this can be fixed or if it is porously like that.

Hi there. It's expected that attach uses multipart as that's the content type we need to do file uploads.

Hi there. It's expected that attach uses multipart as that's the content type we need to do file uploads.

But that's the issue that is not overwriting to use multipart instead uses the previous defined method

Ah I see. Your actual issue is that you shouldn't use asJson at all when uploading files.


[bug]:  maximum nested function level reached

Describe the bug
looks like its recursively calling itself/something?
_zsh_autosuggest_highlight_reset:3: maximum nested function level reached; increase FUNCNEST?
_zsh_highlight_widget_orig-s000-r513-user:zle-line-init:9: maximum nested function level reached; increase FUNCNEST?
Steps to reproduce
enable plugin via oh my zsh plugin list. seems to work fine when you regularly source it
Expected behavior
does not produce this error
Screenshots and recordings

Operating System & Version
bookworm
Zsh version
5.9
Terminal emulator
putty
If using WSL on Windows, which version of WSL
None
Additional context
No response

You must source this BEFORE oh my zsh or you get this error
cant source it in oh my zsh plugins list or after oh my zsh

Its conflicting with https://github.com/marlonrichert/zsh-hist

Appears to be conflicting with https://github.com/marlonrichert/zsh-hist

I added a workaround here: https://github.com/marlonrichert/zsh-hist/pull/28
But not sure the best way to actually fix the incompatability
also, sorry for the incorrect reference to a non-related project above.... cant figure out how to delete it


Adding a container registry storage option

This PR ad a Container registry as a storage option. This to discuss:

Naming is hard, I am not sure about OCI_REGISTRY, maybe more general CONTAINER_REGISTRY ?
Current layer 3 downloads contains all artifacts for a project, even if only one is asked for. So this extracts into tmp folder
(1) Should this be temp or should we configure this
(2) Should we do this at all, or just re-download ?
(3) We keep a map of hash to know if this is already downloaded, this can be changed to rather create a folder structure in the temp that use the hash in the folder name. This might be safer.
Do we need to add support for other image types like application/vnd.docker.distribution.manifest.v2+json ?
This PR still contains Tests (Disabled) against Quay.io and Docker Hub and a locally started registry, we probably want to remove those. There are a test that setup a test registry in test containers and test against this, so this is probably enough

/ok-to-test

@stuartwdouglas - as discussed, I removed the test data and now generate it in the test


feat: Enable Infra Creation During Materialization

What this PR does / why we need it:

This enables infra creation if the online store config includes lazy_table_creation: true. We need this because our feature registration process, which is where the infra is normally created, does not have access to the online store.
Which issue(s) this PR fixes:

https://jira.expedia.biz/browse/EAPC-15029
Misc

Currently this process helps to create tables during the materialization. We need to ensure that store the infra information in registry so we know what infra is created by us to efficiently manage it.


ENH: Update codebase for Eigen 3.3.8 release

Fixes several bugs related incompatibilities building on
Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz with march=native
flags.
This includes changes manually copied in from upstream/master
with commit 655c3a40428e0e6a5490a3a4d4bddceb45af4a3a on
2020-12-07.
with upstream=	https://gitlab.com/libeigen/eigen.git
PR Checklist

[X] No API changes were made (or the changes have been approved)
[X] No major design changes were made (or the changes have been approved)

If I remember correctly, there were some custom changes in Pablo's fork.
Build issues:
D:\a\1\s\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src/Core/arch/Default/Half.h(626): error C2065: 'M_LOG2E': undeclared identifier
D:\a\1\s\Modules\ThirdParty\Eigen3\src\itkeigen\Eigen\src/Core/arch/Default/BFloat16.h(516): error C2065: 'M_LOG2E': undeclared identifier
Modules/ThirdParty/Eigen3/src/itkeigen/../itkeigen/Eigen/src/Core/AssignEvaluator.h:328:65: warning: unused parameter 'kernel' [-Wunused-parameter]

if I remember correctly, there were some custom changes in Pablo's fork.

Yeah, the CMake part is overridden for ITK, so at least one commit.
And @hjmjohnson , you will need to go through the UpdateFromUpstream route, not copying the files directly.

I am working on this, will update Eigen today.

@phcerdan Thanks.
FYI The "UpdateFromUpstream.sh" script did not work.  Would you mind adding a few comments to describe the intended process for updating Eigen?    Is the proper mechanism to contact you?

It didn't work because in this case (as in a few other in ITK as you know)  the upstream projects lives here:
upstream_git_url="https://gitlab.kitware.com/phcerdan/eigen.git"
upstream_git_branch="for/itk-3.3-find_package"

So you have to update that first or create a new branch.
git clone https://gitlab.kitware.com/phcerdan/eigen.git eigen-src
cd eigen-src
git remote add upstream https://gitlab.com/libeigen/eigen
git fetch upstream
# Checkout the current branch that itk is using
# From upstream_git_branch in  Modules/ThirdParty/Eigen3/UpdateFromUpstream.sh
git checkout for/itk-3.3-find_package
# Create a new branch for your rebase (or push on top the current branch)
git checkout -b for/itk-3.3.8
# Rebase on top of upstream
git rebase upstream/3.3
git push
# And then update `upstream_git_branch`
# Execute UpstreamFromUpstream.sh as usual.

Is the proper mechanism to contact you?

Not sure what you mean here.
PS: I am testing locally and will open a PR soon with the update if all green.

Is the proper mechanism to contact you?

Maybe this eigen fork should be moved into InsightSoftwareConsortium organization, so all the maintainers (including Hans) can write to it (update etc).

That makes sense @dzenanz.

By the way @hjmjohnson, if you really need a hot-fix for Eigen, you can just use your own Eigen (or recent upstream) providing the CMake variables:
ITK_USE_SYSTEM_EIGEN:BOOL=ON
Eigen3_DIR:PATH=/path/your_eigen_build_folder


[Feature]: You should be able to connect to a github app instead of creating a new one for every Coolify instance

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Connect to a existing github app instead of creating a new one.
Why should this be worked on?
We deploy Coolify on various ec2 instances and for each new instance we'll need a seperate github app. This is unnecessary and adds a lot of overhead on our github account.

@andrasbacsai Can we put things we need for github app in coolify's env as optional value?

I understand the problem, but the main issue with having several Coolify instances with one GitHub App is that case the GitHub webhooks won't work. You can only have one URL set as a webhook URL.
But I know a great solution for this. It is what I will be working on soon, called Remote Docker Destinations inside Coolify. You could have one Coolify instance and manage several servers with only that one.

I understand the problem, but the main issue with having several Coolify instances with one GitHub App is that case the GitHub webhooks won't work. You can only have one URL set as a webhook URL.
But I know a great solution for this. It is what I will be working on soon, called Remote Docker Destinations inside Coolify. You could have one Coolify instance and manage several servers with only that one.

This is the ideal use case scenario for us. I represent a small agency and we manage multiple ec2 instances.
For the time being, we'll continue using Github apps.

I'm almost finished with this feature. Excited! 🙂

I'm almost finished with this feature. Excited! 🙂

Can't wait for this. Let's goo!

Remote Docker Engine is released. You can try it out and let me know what you think!

Sick! Gonna give this a go.


Tweaked invoker and added tests

Summary
A small summary of the requirements (in one/two sentences).
Implementation Notes :hammer_and_pick:

Briefly outline the overall technical solution. If necessary, identify talking points where the reviewer's attention should be drawn to.

External Dependencies :four_leaf_clover:

Breaking API Changes :warning:

Simply specify none (N/A) if not applicable.

I don't see the tests for the driver/clients actually running in the CI. Can you please check the workflow?
Also, there is a linter error, please fix.

Please squash your commits, sign off, and rebase the branch on current main.

Hi, I've rebased on main and squashed and signed off my commits. I've also fixed the Dirigent mode to Knative mode. Please check


[PE-D] UG - Features: Purge Data

Could be phrased in a more straightforward way for the user.
For example: Clears all data in PE. This can be used to delete pre-existing sample data or existing user data.

Labels: severity.Low type.DocumentationBug
original: mslevis/ped#7

Good suggestion


CLOUD-42390 fixed azure try-catch

@doktoric please

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1699/


[im] Fix wildcard path support per spec

Problem

The current implementation of ClusterInfo class is not handling wildcard paths correctly.
Spec requirement: wildcard by omitting fields

Change overview

Fix the logic for handling wildcard paths.
Uses Optional for missing values, and changes the usages to .Value()
Assume ClusterInfo values are concrete path now, this will be changed in https://github.com/project-chip/connectedhomeip/issues/8364
Update tests to use SetValue, ClearValue

Testing
Updtaes existing test, the logic is covered by existing src/app/tests/TestClusterInfo.cpp

fast track: PR opened for 1 week, developed by a domain owner and reviewed&approved by another domain owner


Lottie file in splash screen ios-android is this possible

Hi
As anybody successfully implemented lottie as splash screen in iOS Xamarin Forms?
Android seems possible but I cannot make it work with iOS.
Any example anywhere that works?
Many thanks

I have made it working with an extended lock screen (show modal page after native splash finishes).

@MSiccDev thanks for your reply. Can you share sample? Just want to see how it looks.
I did find an article that a guy made it work but it crashes on me see my edited question

@martijn00  pity got closed. Really stuck on ios on  this one. I would have a really nice touch to have lottie in the splash screen.
Pity


Ignore debug instruction OpString

It may be used with OpLine or OpSource to specify filename.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.David Srbecky seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks


Change in Snowplow licensing

Snowplow has changed their license and they are not open source anymore.
People in the snowplow community have forked the last open source version and created Open Snowcat.
Should buz move to supporting Snowcat ?
https://snowplow.io/blog/introducing-snowplow-limited-use-license
https://opensnowcat.io/

Hey @leonard-henriquez! Great to hear from you.
Snowcat and Buz are both different ways to collect/persist/route payloads from Snowplow tracking SDK's, but the trackers all still work the same. Open Snowcat is just the collector/enricher side, which means nothing will need to change within Buz.


Logging in always redirects you to the homepage

To Reproduce

Be logged-out
Open a scratch page
Press login

Expected behavior
You're on the same scratch page you were at, but logged in.
**Actual behavior
You get redirected to the front page.
Conversely, logging out behaves as expected; you stay at the page you're at.

I am willing to work on this issue.
Could you tell what the potential cause for this issue is and any recommended way to fix it?

I am willing to work on this issue. Could you tell what the potential cause for this issue is and any recommended way to fix it?

github apps have a callback url the user is authorized to redirect the user back to the application. You can add custom redirect_uri's as query parameters at the end of the authorization request. The trick is, is that the redirect_uri has to use the callback url as the base url but you can extend it with another query parameter to redirect from http://decomp.me/login to wherever the user was perviously. Simply get the current url from wherever the user was when they selected the github login button and attach that as a an extended redirect_uri. Then when that gets passed to the login page parse the query_param and redirect the user back to where they were.
Here's what the current request url is (src/lib/oauth.ts):
const url = `https://github.com/login/oauth/authorize?client_id=${GITHUB_CLIENT_ID}&scope=${encodeURIComponent(scope)}`

Here's an example of how you can use the redirect_uri (google is just an example but you'd want to redirect to where the user previously was):
const url = `https://github.com/login/oauth/authorize?client_id=${GITHUB_CLIENT_ID}&scope=${encodeURIComponent(scope)}&redirect_uri=https://decome.me/login?redirect=https://google.com`


Add "origin trial is approved and ready to request creation" notification after all approvals have been obtained

Chrome Status now requires that all origin trial gates be approved before an origin trial creation request can be submitted. This means that the creation request form is not available until the last approvals have come in. It would be useful to our origin trial owners to send a reminder that the form is available now for origin trial creation after all approvals are detected.

Wow, wrong repo, sorry😅


Gauge metrics suport by Pyrra

At the moment, Pyrra suports only metrics-counters. It would be great if possible to have support for gauge metrics as well.
For example, blackbox exporter "probe_success" metric returns 1 (success) or 0 (fail). Is it possible to add formulas to Pyrra  to create SLO graph based on such data?
Perhaps this can be achieved using the "count_over_time" function, and the number of successful attempts - with "sum_over_time"?
Thank you)

Generally speaking we could and should totally support these time based SLOs as well!
I'm not 100% how the alerting with multi error burn rates would look like.
If we can figure out the PromQL behind these then I'd be totally down for adding this to Pyrra for sure!

I agree with @rkostyantyn . It would be very useful to support the gauge metrics. I'm not able to track our metrics generated by the blackbox exporter too.

Implemented and closed by @roidelapluie in #598

@metalmatze, will this be included in the next release? v0.5.6 is missing this support.


Pytorch image: wrong/inconsistent version of CUDA

Pytorch comes with its own embedded version of CUDA. The version of Pytorch used in this image, 1.8.1, comes with CUDA 10.4.
Whatever other version of CUDA you embed in the container is not used and does not matter. So even if the CUDA used in this images is 11.4.2 (herited from base CUDA), Pytorch will only use 10.4.
This has two drawbacks:

It can lead to misinterpretation and errors in reproducibility (see screenshot where different tools report different things), especially as the NVidia Operator injects its own version of CUDA and tools in the container! We see here three different version: nvidia-smi reports 11.7 (comes from the operator), nvcc reports 11.4 (comes from the image build), pytorch reports 10.4 (comes from embedded CUDA):

You end up with a bigger container image than necessary because you have two version of CUDA deployed, one never being used.

Possible solutions:

Start with a standard base image without CUDA, as anyway Pytorch won't use it. Drawback: if other supplemental tools want to use CUDA, they may or may not find the one coming with CUDA.
Compile Pytorch from source instead if intstalling it from PyPI (or Conda, same issue), using the CUDA installation already present in the base image. Drawback: much more work.

Thank you @guimou for opening this issue. We have updated the PyTorch notebook, you may find the new image using the following tag: quay.io/opendatahub/notebooks:jupyter-pytorch-ubi8-python-3.8-a4b003a . It is included on the v1.3.0 release.


Better handling of board names containing non-word characters

I noticed that the backups for the "Someday / Maybe" board were inadvertently creating a directory using the first part of the board name and a file using the last part:

Directory: 2017-06-01-someday-
Filename: -maybe-trello.json

After this fix, the filename should be:

Filename: 2017-06-01-someday-maybe-trello.json

I've checked that all the other existing board names will be unaffected by this change.

I'm happy to merge this as I've done some testing locally and in any case I'm pretty sure we'll get emailed if the cron job fails next time.


Support for Sponge

Will this extension support Sponge in the future? Sponge is basically a server API for Forge and other implementations.
https://spongepowered.org/

Yeah, this would be useful.

I took a look at what it would take to support Sponge. Since it has a Maven repo, it can be added to your project's build.gradle following the instructions on Sponge's page Adding Sponge API Dependencies
Here's what you need to do next:

After you change build.gradle, start a build in VS. The change in build.gradle will be detected and a provisioning build will start.

When the build is done, you need to manually update the project references in Solution Explorer:
(1) select all references from the "References" node, delete them and save your project
(2) reprovision your project by following the instructions in Hello.txt (i.e. execute the DTE command CustomCommands.ProvisionMinecraftProject).

That's it. After this, you should be able to start using the types from Sponge. Let me know if it works for you.

I created #7 and #8 to improve this workflow

Did not seem to work for me. I did the exact steps and the Sponge is neither on the reference nor I can access or import it.

Do you see any references of sponge libs in the .classpath file at the root of your projects though?

Yes it is:

Weird. If .classpath has them, you should at least see them in Intellisense autocomplete operations (like the screenshot I added). Can you check whether the path to the .jar file that .classpath points to actually exists on disk? Maybe also try to close all java editors in VS and open them again to restart the Eclipse backend.


Code changes after merging landing page and WebXR Viewer

This PR includes some missing / changed code snippets after merging PR #6 and PR #4 .
After resolving merge conflict some code snippets got replaced and the landing page's CSS was removed.
I'm fixing it here. Also, I restructured some code for the WebXR viewer. The results are the same as expected now for both.
Preview Landing page : https://ossistant.netlify.app/
Preview WebXR Viewer : https://ossistant.netlify.app/test

Great work on the landing page! We can do iterations on that later, perhaps.


Remove unused code

Just spotted a function that was being declared twice (in nested scopes). So I have removed the one in the outer scope as it was never getting called (and its job is already being done by the other one).

https://github.com/hoodiehq/hoodie-plugins-manager/commit/a4179c499fdae6106665749ece0e18d503f8c6d5#diff-c48c41880485a99cdb697a83755c75f4L24


Avoid creating AST for queries in CassandraSinkCluster

Creating the AST is pretty expensive. Since we are defining the queries ourselves and know they are not batch statements we can skip that check.

Hmm how did that bug get there

The error is that there are 256 elements in the tokens list instead of 128.
I'm not sure why this PR is consistently hitting it.

Ah true, thanks for the assist. I've pushed a temp fix to make the CI pass.

I think the issue is that queries arent being rewritten anymore?

I think whats happening is:
we are creating a single connection to shotover and reusing it for the entire int test connection1.
That connection is returning bad results due to the control node not being part of the configured dc/rack. (the bug that https://github.com/shotover/shotover-proxy/pull/777 fixes)
So I suggest we review and merge https://github.com/shotover/shotover-proxy/pull/777 first and then rebase this and see if the issue still exists.

I wrote out this test case to ensure that out both cases result in identical queries.
    #[test]
    pub fn test_problem_queries() {
        assert(
            "SELECT rack, data_center, schema_version, tokens, release_version FROM system.peers",
        );
        assert(
            "SELECT rack, data_center, schema_version, tokens, release_version FROM system.local",
        );
        assert("SELECT peer, rack, data_center, tokens FROM system.peers");
        assert("SELECT broadcast_address, rack, data_center, tokens FROM system.local");
    }

    fn assert(query: &str) {
        let unknown = CassandraStatement::Unknown(query.into()).to_string();
        let parsed = parse_statement_single(query).to_string();
        assert_eq!(unknown, parsed);
    }

The only remaining possibility is a race condition.

I've figured out the issue.
is_system_local_or_peers relies on the message being correctly parsed.
Rather than continuing to hack around this, i'm leaning towards just abandoning this approach.
We've already hit one hard to track down case because of it, I'd rather not hit more.
If by profiling we find that parsing here is responsible for increasing our connection startup time then an alternate approach to this  I would like to take is directly calling Message::from_bytes on some bytes.
That we both completely skip the encoding stage + we get sane results when .frame() is called.

Thanks for the investigation. I'll close this and we can revisit if it turns out to be a perf issue. Perhaps caching the queries once we've created the AST and parsed them correctly.


Recurse includes searchparametermap

Fix recursive includes in SearchParameterMap

Pull Request Reviewing
To review this pull request, please utilize the checklist below that is based on our pull request review guidelines.

[ ] Does the pull request adhere to the functionality requirements and guidelines?
[ ] Does the pull request adhere to code quality guidelines?
[ ] Are optimizations possible for the content in this pull request?
[ ] Is the content in the pull request properly tested and validated?
[ ] Is the pull request properly documented, both in the code and in documentation?
[ ] Do the changes in the codebase break existing functionality or endpoints that may be relevant to partners?
[ ] Are our partners informed of this change if necessary?

Did you see my response on #15?

I swear I selected hinq


Using a PostgreSQL schema different from "public" causes error 500

Gitea version (or commit ref): 1.13.0
Git version: 2.20.1
Operating system: Debian GNU/Linux 10.7 (Buster)
Database (use [x]):

[×] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[×] No

Log gist:

Description
I'm trying to install Gitea using a PostgreSQL database. I've chosen a schema different from public, one called main. Then, after the installation finishes seemingly fine, the application takes me to a screen that shows a big error 500.
 In general, the same occurs with the following buttons:

Dashboard
Issues
Pull Requests
Milestones

The button Explore seems to work fine, though.
If I navigate through the options of Profile and Settings... the results are similar: some sections work, others don't.
By checking the logs, I've came to the conclusion that some tables are not found when using a custom schema:
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /user/events 200 OK in 5.065552253s
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /issues for <IP_ADDRESS>
Dec 21 09:10:08 my-server gitea[9701]: 2020/12/21 09:10:08 routers/user/home.go:60:getDashboardContextUser() [E] GetOrganizations: pq: relation "repository" does not exist
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /issues 500 Internal Server Error in 5.477482ms
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /user/avatar/administrator/-1 for <IP_ADDRESS>
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /user/avatar/administrator/-1 302 Found in 2.823642ms
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /user/events for <IP_ADDRESS>

If I use the public schema, everything seems to work fine.

Have you tried to restart the Gitea after you finished the installation?

@lunny Thank you for your prompt answer.
I've just made a fresh installation, I've restarted the service (a Systemd service) right after the install, and the result is that the dashboard loads fine, but the other sections still throw the same error 500: Issues, Pull Requests, Milestones... Checking the log, the source of the error is the same: the application isn't able to find certain tables:
Dec 22 08:19:28 my-server gitea[7397]: 2020/12/22 08:19:28 routers/user/home.go:60:getDashboardContextUser() [E] GetOrganizations: pq: relation "repository" does not exist

@negora Then could you check your custom/conf/app.ini in [database], if the schema is correct?

@lunny Yes, it's set correctly:
[database]
DB_TYPE  = postgres
HOST     = <IP_ADDRESS>:5432
NAME     = gitea
USER     = gitea
PASSWD   = `<undisclosed>`
SCHEMA   = main
SSL_MODE = disable
CHARSET  = utf8
PATH     = /var/lib/gitea/data/gitea.db
LOG_SQL  = false

By the way, my configuration file is located at /etc/gitea/app.ini, instead of /var/lib/gitea/custom/conf/app.ini . Just in case that it's of any help.

You need to go into Postgres directly and tell us what schema each of the tables is in.

As you will see from: https://github.com/go-gitea/gitea/pull/12634/commits/1e75afcf89be778994ecc82b3b4babf2de55d5ba
the schema search path should be being set in such a way that this cannot happen - so we need to figure out why this happened.

@zeripath Thank you for joining to the conversation.

You need to go into Postgres directly and tell us what schema each of the tables is in.

The tables are successfully created in the main schema. So that part works OK.

As you will see from: #1e75afc , the schema search path should be being set in such a way that this cannot happen - so we need to figure out why this happened.

I've logged, from the database-side, all queries emitted by Gitea. The query mentioned in #1e75afc is run only once, just during the boot of the application. Indeed, it's the first query being executed. So that should work, I agree.
But I wonder: Does it mean that you use only 1 single connection to the database, for the whole application? Because, if you're using more than one session/connection, Shouldn't that query be run at least once per session/connection?

But I wonder: Does it mean that you use only 1 single connection to the database, for the whole application? Because, if you're using more than one session/connection, Shouldn't that query be run at least once per session/connection?

Interesting! I hoped that the set_config would have been carried over connections - but I hadn't considered that it might not.
Right time for a workaround you can change the default search path for the user.
Unfortunately I suspect that the only solution is going to involve hijacking the sql.DB Connector through registering our own postgres driver and calling that query on connection. sigh

Interesting! I hoped that the set_config would have been carried over connections - but I hadn't considered that it might not.

Yes, both SET and SELECT set_config()  only work at the level of the current session/connection. Unfortunately, if you use more than one connection, you've to set that option in each one.

Right time for a workaround you can change the default search path for the user.

Another option is to set the search_path at the database level. I used that in the past for my projects. That way, all users allowed to connect to the database took advantage of that setting.

Unfortunately I suspect that the only solution is going to involve hijacking the sql.DB Connector through registering our own postgres driver and calling that query on connection. sigh

Just out of curiosity, Is there any reason why you don't use the schema name in the own queries? Example:
SELECT * FROM main.notifications;

Is it because the queries are created automatically by an ORM framework?
Thank you.

Most queries that come out of Xorm will have schema prefixed automatically but there are quite a few cases where we have (sometime partially) handwritten SQL which won't have the schema prefixed - simply because it's going to be bloody awkward and make the code terribly unreadable to add it. (Basically we'd have to always get Xorm to tell us the table name instead of us just being aware of it.)
It should be possible to set the search_path appropriately - we shouldn't have to write schema aware SQL in general.

Most queries that come out of Xorm will have schema prefixed automatically...

I see. In that case, not adding the schema in every query is reasonable.
I'll keep an eye on that pull request. Thanks ;-) .

Perfect. Thank you for the fix. Have a happy new year ;-) .

Perfect. Thank you for the fix. Have a happy new year ;-) .


[Tracking Issue] [WebGPU] Supporting DP4A in WebGPU backend

This issue is to track progress for DP4A (new built-in functions introduced in packed_4x8_integer_dot_product) on WebGPU Backend

[ ] P1. Title of this piece of the feature (PR link if available)

Triage

backend: WebGPU

needs-triage

Thanks @Jiawei-Shao ! contribution is more than welcomed

Hi @tqchen,
I am stuck on the translation of int8 to WGSL  so I have to turn to you for help.
Currently WGSL doesn't support 8-bit integers, so in the output WGSL we can only load and store a uint32s as int8x4. What can I do to ask TVM to generate TIR that always loads and stores 4 int8 together instead of loading or storing int8 separately?
For example,
block_read_0 = sch.cache_read(block, 0, "shared")

will generate below TIR
X_shared_1 = T.Buffer((228,), "int8", data=X_shared, scope="shared")
for ax0, ax1 in T.grid(57, 4):
    X_1 = T.Buffer((16384,), "int8", data=X.data)
    X_shared_1[ax0 * 4 + ax1] = X_1[blockIdx_y * 8192 + i_2 * 128 + ax0 * 128 + k_0 * 4 + ax1]

And it will generate below WGSL (X is an int8 array, which is incorrect in WGSL):
for (var ax1 : i32 = 0; ax1 < 4i; ax1++) {
    X_shared[((ax0 * 4i) + ax1)] = X[(((((i32(blockIdx.y) * 8192i) + (i_2 * 128i)) + (ax0 * 128i)) + (k_0 * 4i)) + ax1)];
}

While I'd like to have below WGSL (X_shared and X are both uint32 arrays):
X_shared[ax0] = X[((i32(blockIdx.y) * 2048i) + (i_2 * 32i)) + (ax0 * 32i)) + (k_0))];

The declarations of X_shared and X are easy to handle (for example, I can change var<workgroup> X_shared : array<i8, 228> to var<workgroup> X_shared : array<u32, 57>) while the loop in the load of int8 data is difficult to handle. Could you give me some advice on how to do it?
Here is the python script I used for test. I cannot upload .py files so I just renamed it to .txt.
tvm_dp4a.txt

@Jiawei-Shao , in this case. i think we can go with directly creating an array of "int8x4"(aka the vector type), so all loading and store are vectorized. and we lower int8x4 to uint32

Another simpler approach(which could be one step easier) would be to simply first take dp4a as an intrinsic that takes in uint32 and produces the i32. That does mean that we need to write special tvm programs in uint32, but at least this would serve as a first step

@Jiawei-Shao in this case, we can do sch.vectorize(ax1) to convert the loop to a vectorized one. https://github.com/apache/tvm/blob/main/src/target/spirv/spirv_utils.cc#L123 will rewrite buffer with vectorized access to int8x4 as long as both read and write are vectorized. You may need to use tensorization to vectorize the load from this buffer

import tvm
import numpy as np
from tvm.script import tir as T

@tvm.script.ir_module
class MyModule:
    @T.prim_func
    def vector_copy(A: T.Buffer((4,), "int8x4"),
                    B: T.Buffer((4,), "int8x4")):
        T.func_attr({"global_symbol": "vector_copy", "tir.noalias": True})
        for i in T.grid(4):
            with T.block("B"):
                vi = T.axis.spatial(128, i)
                B[vi] = A[vi]

def main():

    mod = tvm.build(MyModule)
    a_np = np.arange(16).astype("int8").reshape((4, 4))
    a = tvm.nd.empty((4,), dtype="int8x4").copyfrom(a_np)
    b = tvm.nd.empty((4,), dtype="int8x4")
    mod["vector_copy"](a, b)
    print(b.numpy())

main()

here is a simple example writing program directly in int8x4, note that the array of (4,) in int8x4 will be represented as extra dimension (4, 4) in this case, where the lowest dim come from the vector dtype

Thanks for all your review!
We can open another issue for the support of tensorization with dp4a on WebGPU backend.


AppModules not processed correctly for PackageType:Both

When Extracting a solution containing an AppModule via PackageType:Both, the same filename is used for the resulting extracted XML. As a result, the Unmanaged solution when Packed will not work as the AppModule XML is not complete.

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

ID: 71740e7f-8de8-789b-c0ed-fd89401f945f
Version Independent ID: a189706a-58bc-d0a1-ef4e-3eac65bfaf1f
Content: Use the SolutionPackager tool to compress and extract a solution file (Developer Guide for Dynamics 365 for Customer Engagement)
Content Source: ce/developer/compress-extract-solution-file-solutionpackager.md
Service: crm-online
GitHub Login: @JimDaly
Microsoft Alias: jdaly

@mattp65  It sounds like your are reporting a product bug. Best solution for that is to contact support.
From a documentation standpoint, what are you proposing we change?

@mattp65 -
If you have some specific change to request for the docs, please re-open this.


[util/topgen] Top module generator

The goals of the task are:

To define top configuration hjson format.
To generate top-level connection RTL, which has following modules, crossbars, peripherals, processor block, alert handler, pinmux, and padring (having multiple PAD instances).
To give editable template of the top module. Most of the top module is generated by the tool but it gives flexibility to include sub template files at the couple of the point. For instance, uart.header.svh file may be included in front of uart instantiation.

Document: https://docs.google.com/document/d/1LKzddc7UlF_avTnY1MZ0PFcrhzKkfvW1coZrREht72s/edit?usp=sharing

@eunchan I believe this one can be closed, right?


Added support for MSSQL to the DatabaseContextProvider

Description
I've added support for MSSQL to the DatabaseContextProvider, honestly just a few config tweaks were required.
The package dbinfoz that DatabaseContextProvider relies on has already been updated to support MSSQL.
Checklist

[ ] The base branch of this PR is dev, rather than main <- Oops...
[x] The relevant docs, if any, have been updated or created

Screenshots
pending
Testing
Install SQL Server
Ensure local connectivity to SQL Server
Update continue.dev config for @Database context provider and add mssql connection paramaters.
Try out @Database with the mssql server

I had to change base branch to dev, apologies!
See PR on dev here: https://github.com/continuedev/continue/pull/2655


"Add missing @Overrides" save action

Would it be possible to add another feature to add "@Override" annotation to methods that either override or implement interface methods? Thank you.

I'll check it out

This would be amazing. Any chance this could happen?

This is probably very easy to do since I'm pretty sure there is already the processor in JetBrains' code, so it's just adding the option in the plugin and wire the processor.
I have no time to work in this now but it could easily fit in the next release

Yep, seems that is is pretty straight forward. The (very small) pull request #65 adds the ability to add missing @Override annotations.

Thanks @marcosbento! Pull request #65 merged in master and plugin version 0.13 released with your modification.


Some suggestions (not really tested)

Some suggested improvements to make flow clearer and reduce cut and paste. Requires minimal functional testing prior to merge.

Thank you @snakehand!
I'll test this changes whenever I can, and if everything works fine it will be merged.

Thank you @snakehand!
I'll test this changes whenever I can, and if everything works fine it will be merged.

Hey @snakehand!
Everything works fine. In just found a little mistake you did and fixed myself in this commit https://github.com/devmatteini/pihole-switch/pull/3/commits/3f7bf32ca825a2501f60e62e3a29e1cbd47085b8.


Fatal Python error: Fatal Python error: Segmentation faultSegmentation fault

This code crashes on MacOS Sonoma
% pip show umap-learn
Name: umap-learn
Version: 0.5.3
Summary: Uniform Manifold Approximation and Projection
Home-page: http://github.com/lmcinnes/umap
Author:
Author-email:
License: BSD
Location: /Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/site-packages
Requires: numba, numpy, pynndescent, scikit-learn, scipy, tqdm
Required-by:

 % ipython
Python 3.10.13 (main, Sep 11 2023, 08:21:04) [Clang 14.0.6 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.20.0 -- An enhanced Interactive Python. Type '?' for help.

from transformers import GPT2Tokenizer, GPT2Model
import torch
import umap
import matplotlib.pyplot as plt
import numpy as np

# Load the pre-trained GPT-2 model and tokenizer
model_name = 'gpt2'
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2Model.from_pretrained(model_name)

# Move the model to the 'mps' device if available
device = torch.device('mps' if torch.backends.mps.is_available() else 'cpu')
model.to(device)

# Define the words for which you want to extract embeddings
words = ["dog", "puppy", "dog-puppy"]

# Extract the embedding vectors for each word
embeddings = []
max_length = 0
for word in words:
    input_ids = tokenizer.encode(word, add_special_tokens=False, return_tensors='pt')
    input_ids = input_ids.to(device)
    with torch.no_grad():
        outputs = model(input_ids)
        hidden_states = outputs.last_hidden_state
    word_embedding = hidden_states.squeeze(0).cpu().numpy()
    embeddings.append(word_embedding)
    max_length = max(max_length, word_embedding.shape[0])

# Pad the embedding vectors to the maximum length
padded_embeddings = []
for embedding in embeddings:
    padded_embedding = np.pad(embedding, ((0, max_length - embedding.shape[0]), (0, 0)), mode='constant')
    padded_embeddings.append(padded_embedding)

# Reshape the padded embeddings to a 2-dimensional array
reshaped_embeddings = np.array(padded_embeddings).reshape(len(padded_embeddings), -1)

# Apply UMAP to reduce the dimensionality of the embeddings
reducer = umap.UMAP(n_components=2, random_state=42)
reduced_embeddings = reducer.fit_transform(reshaped_embeddings)

# Plot the reduced embeddings
plt.figure(figsize=(8, 6))
for i, word in enumerate(words):
    plt.scatter(reduced_embeddings[i, 0], reduced_embeddings[i, 1], label=word)
plt.xlabel('Dimension 1')
plt.ylabel('Dimension 2')
plt.title('Embedding Vectors of Words')
plt.legend()
plt.show()
Fatal Python error: Fatal Python error: Segmentation faultSegmentation fault

Thread 0xThread 0x000070000239c000000070000239c000 (most recent call first):
 (most recent call first):
  File   File ""/Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/threading.py/Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/threading.py"", line , line 320320 in  in waitwait

  File "/Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/threading.py", line 607  File  in wait
"/Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/threading.py"  File , line "607/Users/davidlaxer/anaconda3/envs/AI-Feynman/lib/python3.10/site-packages/IPython/core/history.py in zsh: segmentation fault  ipython

We run into this issue for BERTopic in Mac  as well.


As thorium.bat put on the taskbar?

System Details

OS: [Windows  10 ]
Thorium Version [e.g. SE3 119.0.6045.214]

Problem
I opened thorium through thorium.bat and how do I put it on the taskbar now?

@AlkBek If you want it on the taskbar, why not just install it using the .exe?
If you really don't want to do that, go into the folder and right click thorium.exe, then click "create shortcut". Then you can rename the shortcut to remove the " - Shortcut" name at the end of it. Then you can drag-n-drop this shortcut onto the taskbar. batch files can sadly not be pinned to the task bar (although they can be manually added to the start menu by adding it in $userdatadir$)

@Alex313031 I'm just in thorium.bat has configured everything, and in thorium.exe I don't have anything set up, but come on.  Will -allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id work in thorium.exe ?

@Alex313031 I'm just in thorium.bat has configured everything, and in thorium.exe I don't have anything set up, but come on. Will -allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id work in thorium.exe ?

Just edit exe shortcut and add those to the shortcut, pretty much the same, shift and right click onto the thorium shortcut on Taskbar to show Properties ctx.


Class not found

Problem/Motivation
Class Symfony\Component\Process\ProcessBuilder not found
Expected behaviour
normal composer call in the project dir, to show all commands
Actual behaviour
I randomly get errors, on composer call in my project dir that look like this

Steps to reproduce
don't really know how to reproduce, it just happens randomly, the only thing that I can show is stack trace of composer -vvv
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www): git branch --no-color --no-abbrev -v
Reading /home/laradock/.composer/composer.json
Loading config file /home/laradock/.composer/composer.json
Reading /var/www/vendor/composer/installed.json
Reading /home/laradock/.composer/vendor/composer/installed.json
Loading plugin Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin
PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php:118
Stack trace:
#0 /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(103): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->init()
#1 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(236): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#2 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(205): Composer\Plugin\PluginManager->addPlugin(Object(Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin))
#3 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(261): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage))
#4 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(76): Composer\Plugin\PluginManager->loadRepos in /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php on line 118

Fatal error: Uncaught Error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php:118
Stack trace:
#0 /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(103): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->init()
#1 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(236): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#2 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(205): Composer\Plugin\PluginManager->addPlugin(Object(Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin))
#3 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(261): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage))
#4 /var/www/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(76): Composer\Plugin\PluginManager->loadRepos in /var/www/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php on line 118

Also I'll mention that what helps to solve that, is to rm -rf vendor/, but then composer in not found in the whole container (bash: /var/www/vendor/bin/composer: No such file or directory), so, to solve that, I need to exit container and do docker-composer exec {containerName} bash

Are you running 0.5.0?
Since that version should have resolved that.

@frenck whoops! I do use 0.4.4, my fault, sorry.
This package is "soft" dependency for my. I depend on https://github.com/doctrine/coding-standard/ which uses 0.4 version right now, hope to see their 6.0 version to get to 0.5 version of this plugin.
thanks!


Container images security

Container images security
Work tracked in https://warthogs.atlassian.net/browse/KF-856
PR: https://github.com/canonical/notebook-operators/pull/108
Design
For details on design and implementation refer to https://github.com/canonical/notebook-operators/blob/kf-856-gh105-container-image-security/image-definitions/README.md

Testing

Code is merged. Closing.


application-config@1

This protects against corrupting the configuration file if the
application crashes before the stream finishes writing to the file
Especially important for large configuration files
See https://github.com/LinusU/node-application-config/pull/3

LGTM

@demoneaux thanks for the review!


Floating viewer appears unexpectedly on applying layout in some cases

Steps to reproduce:

Open table, e.g. SPGI
Add some viewer and stack it over the table (dock type fill)
Click 'x' either for the stacked viewer or for the table
Save layout
Re-apply saved layout

Expected results: No floating viewers appearing unexpectedly.
Actual results: Floating viewer (the one removed on step 3) appears on applying layout:

Fixed in 1.14.1


Documentation & Blueprints for each example.

Improve the documentation with blueprints in SVG+PNG format, for each of the current and future examples.

Can you elaborate what this is about?

i have been educating myself on Vulkan using your repository which has helped me greatly navigate Vulkan through its complexities. And I started to create documentaion on my own projects for reference/adapt of my team who are not really familiar with Vulkan.
Even for me, it gets quite daunting when going deep in to complex Vulkan sub-passes/render-pass/pipeline-caches/memory management etc.
I think using layered-SVG image files, I can help create node-like struct-structures on a particular Vulkan application/pipeline in a platform-agnostic masnner. for Example:
Layer 1 : the positioning/encapsulation of structs (as for the commited offscreen sample, which is still very incomplete btw)
Layer 2 : Memory Transfers/Threads
Layer 3: Code blocks
Layer 4 : Annotations
even though this is not completely thought out, but i think with more contirbutions and even just error-checking, this can be helpful for even for a complete beginner(without experience on OpenGL) to get started on Vulkan.
Your repository has helped me lot to migrate my work over to Vulkan and i think it's about time i started contributing an a way I can :)

I'm not going to add this to my sample repository as I'm focusing on the official Khronos repository. Something like this may be added there in the future.

This sounds very interesting, but as soon as this becomes part of the repository, those blueprints need to be maintained, end every time I do relevant changes to one of the samples they would have to be redone.
So I think it would be a better idea to have them put into a separate repository and link to that from this project's wiki instead of putting them right into this repo.

Hello Sascha,
I sincerely apologize for the very delayed reply. I wasn't able to touch this area of the development until now but gladly I'm back at it again.
I understood what you meant, and yes i will try to maintain the blueprints , and try to continue contribute to this project via my fork.
Khronos repository seems up and coming very excited to see its work.
Best regards,


Add example project

Basically add example project for anyone wants to try out.

Cool, thank you for your contribution!


Infrasdashboard 9.2 loading of graph.window.net

I'm having a issue loading the graph.window.net content. It seems the other components are loaded (management, connected to the connector) but the graph component is still trying to load. I have about 90 subscriptions and they are finished as it says "loaded" but nothing for the graph. Any ideas how to get it working. I have followed the guide to the T. It's been like this for hours. The Governance dashboard loaded fine. Help?

Did you follow the Troubleshooting Guide?

Yes - I did. It's not giving any errors. Just taking a long time as the graph part isn't loading any records/results.
Just wondering what I'm doing wrong.

I have used my organization credentials and it accepts them without error

Did you double check with the Infrastructure dashboard deployment guide?

We have 16 Subscriptions.
Most of the tables refresh immediately, then there are a few that load very slow.
Take RBAC Role SP, Users and Groups, as you can see it moves from 1,834 to 1,840... it means it's loading some rows but it takes time:

So if you have 90 Subscriptions this might lead to a timeout.
...if there is a timeout involved @bmvalente

@bumbo73 / @francesco1119 Not all Azure APIs have the same throughput, so when loading tables in parallel, some finish first than others.


Terraform task: propogate no-color to validate command when using validate+apply

When using the apply command in the TF task, it actually performs a validate+apply
However, when you pass in -no-color as an additional argument, this is only consumed by the apply command and not by the validate command.
This change will pass in -no-color  to the validate command when it is specified for the apply command

Looks good. I will add this PR to our release schedule


WIP 1877: Refactored Stage to no longer be a list

This work aims to restructure Stage to take advantage of Java enums. I'm putting this up as WIP to get initial feedback before continuing down this path.

Everything seems straight forward to me.  I think we should proceed using the enums rather than strings.

Closing this as https://github.com/NationalSecurityAgency/emissary/pull/369 replaces it.


Infinite recursion in rocky::MapManipulator

I tried loading rdemo with a map containing
    "profile": {
        "extent": {
            "srs": "+proj=utm +zone=30 +datum=WGS84 +units=m +no_defs",
            "xmax": 750000.0,
            "xmin": 650000.0,
            "ymax": 4400000.0,
            "ymin": 4300000.0
        },
        "tx": 1,
        "ty": 1
    }

(which technically I'd generated with some local changes to the .earth file importer, but that's not important).

I believe that this is because it's trying to intersect with the terrain, which hasn't loaded yet so won't be hit, and so can't calculate the centre and distance to intersection (the basic line/plane fallback fails as the view direction is parallel to the plane), so tries rehoming the map, which starts by clearing the viewpoint, which was the thing that tried calculating the centre and distance to intersection.

Had the same issue with custom .mbtiles file.


Combined securityhub/common and securityhub/root components into single securityhub component

what

Combined securityhub/common and securityhub/root components into single securityhub component

why

It supposes to make it easier to maintain and use as single component

references

done by https://github.com/cloudposse/terraform-aws-components/pull/728


feat: DEV-3373: Enable video preview

Hi @nicholasrq!
This PR was created in response to a PRs in upstream repo:

https://github.com/heartexlabs/dm2/pull/106

/git merge develop


SPRITES REPEATING WHY

What is your question?
I have a short question, how do i make my animated Sprite stop playing in a loop?


Run CI on MariaDB

PR Info
Run CI on MariaDB

Sad but I really want to avoid taxing our CI as of now. It's been too slow already.


Build analyzer

In Exercism v3, we are making increased use of our v2 analyzers. Analyzers automatically assess student's submissions and provide mentor-style commentary. They can be used to catch common mistakes and/or do complex solution analysis that can't easily be done directly in a test suite.
Each analyzer is track-specific. When a new solution is submitted, we run the track's analyzer, which outputs a JSON file that contains the analysis results.
In v2, analyzer comments were given to a mentor to pass to a student. In v3, the analyzers will normally output directly to students, although we have added an extra key to output suggestions to mentors. If your track already has an analyzer, the only requisite change is updating the outputted copy to be student-facing.
The analyzer is an optional tool though, which means that if a track does not have an analyzer, it will still function normally.
Goal
Build an analyzer for your track according to the spec. Check this page to help you get started with building an analyzer.
It can be very useful to check how other tracks have implemented their analyzer.
If your track already has a working analyzer, please close this issue and ensure that the .status.analyzer key in the track config.json file is set to true.
Choosing between representer and analyzer
There is some overlap between the goals of the representer and the analyzer. If you want to build both, we recommend starting by building the representer for the following reasons:

Representers are usually (far) easier to implement
Representers can have a far bigger impact on the mentoring load than analyzers by empowering mentors
Representers apply to all exercises, whereas analyzers usually target specific exercises or a subset

Tracking
https://github.com/exercism/v3-launch/issues/53

This isn't high on my priority list since we do have a representer - and I'd like to see the demand for Wren track before putting a ton more time investment into, but the issue can of course remain open. :)

Makes total sense!


VIP-790: Add new non-paginated queries for feeds for authentication

context: when we make any db call in metis, we check to make sure the logged-in user is authorized to access a requested feed.
we do that by

querying for the feeds a user is authorized to see, and then
searching those authorized feeds for the feed being requested.

however, because of wonky pagination where the page number is not passed except during the initial feeds page load, the query in step 1 above was only returning the first 20 feeds for a user (aka feeds on page 1). therefore any requested feed from page 2+ would fail authorization because it would not be in the feeds that were returned by the query.
solution:

separate out a feeds query from a paginatedFeeds query, and same for feedsForFipsCodes. the paginatedFeeds* queries will return only the correct set of 20 feeds for a page, and the feeds* queries will return with no limit.
we will call the paginatedFeeds* queries for loading the feeds page for the dashboard
we will call the feeds* queries for authentication so that it is page-agnostic (don't have to track what page a feed was on as you click around to different pages in the feed)

potential drawback: each time we make a db call, we are querying all feeds that ever existed (worst case with a superuser). i checked the prod db and this is less than 3000 feeds, so i don't think there is a terrible performance drawback, but it's definitely worth considering whether we can pare down the number of feeds we have to look through to find the one being requested

potential drawback: each time we make a db call, we are querying all feeds that ever existed (worst case with a superuser). i checked the prod db and this is less than 3000 feeds, so i don't think there is a terrible performance drawback, but it's definitely worth considering whether we can pare down the number of feeds we have to look through to find the one being requested

this seems like a "we can fix it if it becomes a problem" type problem


fix: update snapshot for strategy tracking

:tada: This PR is included in version 1.3.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Feature] Filter : include/exclude

Hello @Ana06 ,
I've looked at the code already and I see that the filtering implementation is leveraging regex to filter files.
I have a particular case that would require include a certain type of files but also exclude specific paths at the same time.
ie:

blah/test/something.yml
blah/not_at_test/something_else.yml
blah/another_folder/something.yml
blah/another_folder/something_not_a_yaml.j2

So I need to match all *.yml, but not *.yml that are in a test folder for example.
Now, while I undertsand I could make a convoluted regex to do that, I would also want to keep it simple.
Would you welcome a change where we change the filter by include and exclude both supporting regex, and add a bit more code logic?
I'd be willing to have a poke at it.
Thanks,

This would be pretty cool to have.
Also, I'd suggest you change the new RegExp(`/${filter}\\b`, 'g') bellow to new RegExp(filter, 'g') (or am I missing something?) -- with this one could use filters like \.(js|ts)$ (instead of *\.(js|ts)$) and another more flexible pattern
https://github.com/Ana06/get-changed-files/blob/a2f6df8c195e713211f9f6258baafc445149355b/src/main.ts#L79
And replace file.filename.match(regex) to regex.test(file.filename)
https://github.com/Ana06/get-changed-files/blob/a2f6df8c195e713211f9f6258baafc445149355b/src/main.ts#L81

@rnsc I think that is a great idea! Thanks for submitting it the issue. You are more than welcome to send a PR 😉

@rmed19 I would like to hear your opinion about this, since the current implementation is yours. 😄

What do you think about modeling the include/exclude filters after GitHub Actions' on.<push|pull_request>.paths? The options would be called paths and paths-ignore and accept lists of patterns instead of a string. It would make the change in #2 more complex, and I'm not sure if it's needed, but it might simplify workflow yaml files.
A use case that I can think of is that you only want to run an action when foo/bar.x is part of a commit and you also only want to run $test on foo/bar.

What do you think about modeling the include/exclude filters after GitHub Actions' on.<push|pull_request>.paths? The options would be called paths and paths-ignore and accept lists of patterns instead of a string. It would make the change in #2 more complex, and I'm not sure if it's needed, but it might simplify workflow yaml files.
A use case that I can think of is that you only want to run an action when foo/bar.x is part of a commit and you also only want to run $test on foo/bar.

Hey, thank you for the feedback!
Not sure I'm seeing the use case of accepting list of regexes though. Can't that be solved with a "simple" logic operation in the regex?

My main motivation is to stay close to what already exists, the list of regexes is not something I came up with myself, it's GH's way™. However, it allows to have positive and a negative patterns grouped together:
with:
  paths:
    - 'sub-project/**'
    - '!sub-project/docs/**'

One aspect I didn't mention is that GH does not allow both paths and path-ignore at the same time, instead the syntax from this example is to be used (source).
Maybe it does not need to be this complex, the main advantage I see is that you could copy&paste the paths: list from the on: section to the with: section of this action.


Add Ireaneus Linux cheatsheets repo

Please add https://github.com/ireaneus/cheatsheet repo to this awesome program.  I will clean up my repo so it only holds cheatsheets, so the docker files and README.md will be removed.
I have been using cheat for many years so I have populated several cheatsheets with my own examples.  I will continue to work on formatting and use the template you have specified.
Thank you, any questions feel free to contact me<EMAIL_ADDRESS>David.

David, how big is the intersections between your cheat sheets and the cheat sheets that we already have on cheat.sh? Have you already compared them somehow? Or not yet at all?

Yea, it could be pretty big.  I will create a repo with cheatsheets that your program doesn't already have, such as "ssh-google-auth" or "lvm disk management"  I will then submit that repo to you in a new issue.

It is ok if the pages are the same (the same names), but the content differs; it would be hard to check each repository for intersections, but if you know from the beginning that it is almost the same, then of course it is something completely different


DM-33389: Update wPerp so it uses less memory

This ticket implements a version of the stellar locus metric "wPerp" that uses the objectTable_tract parquet table rather than afw tables. Some of the functionality that was in place for the afw table version has been moved to new functions (e.g., the extinction correction and statistics modules), and the previous modules for those tasks will be removed once we have completed moving all faro tasks to using parquet.
The main task is in WPerpTableTask (and associated config). This calls the utility function "stellarLocus.py", which is adapted from the stellar locus fitting routine in analysis_drp. Notable changes relative to the analysis_drp version include:

Fixed a bug in the "perpDistance" algorithm. The normalization np.linalg.norm(p2 - point) was incorrect, and should instead be np.linalg.norm(pt2 - pt1). (This was artificially inflating the wPerp values by a factor of ~20%.)
Added an additional calculation of the "parallel" distance along the best-fit line (relative to a fiducial point). (This is "p1" in the case of the wPerp metric.)

Another important change is updating the default flags for brightIsolatedStarObjectTable. The flags that were previously used were inappropriate for the object table.

A pipeline to run this task is on the lsst-devl machines at:
/project/jcarlin/repos/faro/pipelines/example/measurement_tract_table_selectors_example2.yaml
Example execution call (to run on w_2022_08 RC2 processing, all three tracts):
pipetask run -b /repo/main/butler.yaml -p $FARO_DIR/pipelines/example/measurement_tract_table_selectors_example2.yaml -i HSC/runs/RC2/w_2022_08/DM-33741 --register-dataset-types -o u/jcarlin/wperp_test_w08 -d "band in ('g', 'r', 'i') AND skymap = 'hsc_rings_v1'"

Can you comment on the difference in memory usage from the old and the new for a representative data sample?

Can you comment on the difference in memory usage from the old and the new for a representative data sample?

I'll do some tests and add some info here. Are there ways to have the pipe_task report memory usage, or should I just monitor "top" while running a pipeline?

Look in the (presumably) wPerp_metadata dataset that pipetask creates. It will report the endMaxResidentSetSize.

Executing on RC2, w_2022_08, I get: "endMaxResidentSetSize": [1567708]
Executing the previous version on the same dataset: 64067648
Assuming these values are in kB, that means we went from ~64 GB to ~1.6 GB (regardless, it's a factor of 40 improvement). Also, the runtime per task went from ~15 minutes to ~3-4 seconds.

Factor of 40 less memory and factor 250 in speed whilst getting the same answer seems excellent.

I typically assume that a reviewer should only look at the end state, so it never occurred to me that anyone would look at prior commits. I’ll make sure to be more explicit about this in the future.
On Mar 28, 2022, at 12:45 PM, Tim Jenness<EMAIL_ADDRESS>wrote:
@timj commented on this pull request.

In python/lsst/faro/measurement/TractTableMeasurementTasks.pyhttps://github.com/lsst/faro/pull/122#discussion_r836787967:

@@ -163,12 +166,12 @@ class wPerpTableConfig(Config):
config.measure.raColumn = "coord_ra_new"
"""

bright_rmag_cut = Field(

   doc="Bright magnitude limit to select", dtype=float, default=17.0

)
faint_rmag_cut = Field(

   doc="Faint magnitude limit to select", dtype=float, default=23.0

)

#bright_rmag_cut = Field(

doc="Bright magnitude limit to select", dtype=float, default=17.0

#)
#faint_rmag_cut = Field(

doc="Faint magnitude limit to select", dtype=float, default=23.0

#)

A pull request includes all the commits on the pull request. It can be helpful to tell a reviewer if you will be squashing commits before merging and they should only look at the end state.
—
Reply to this email directly, view it on GitHubhttps://github.com/lsst/faro/pull/122#discussion_r836787967, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFDBY7LRBWURAIGBQYZCGCDVCID6HANCNFSM5PYFIVMA.
You are receiving this because you authored the thread.Message ID: @.***>

Jeff Carlin
DM Science Validation Scientist and Community Scientist
Rubin Observatory/Legacy Survey of Space and Time (LSST)
950 N. Cherry Ave.
Tucson, AZ 85719
<EMAIL_ADDRESS>(520) 318-8533

If this PR is never going to be merged can we close it?

It can probably be closed -- this package will be deprecated at some point, and improvements/changes to the stellar locus metrics are happening in analysis_tools, so these changes won't be necessary.


timepicker hidden?

khen I use timepicker, the timepicker is hidden??

Please use the issue template, or provide a better description of the reported problem, otherwise, I can't help you.


setup size-plugin-bot

Items:

[x] Add rollup plugin rollup-plugin-size
[x] Add configuration file(.github/size-plugin.yml) for size-plugin 🤖
[x] Install Github App  👈@tannerlinsley

This was failing on the windows test, so I added a cross-env prefix. Could you pull this down and install cross-env as a dev dep?

Those sizes seem... off. Is it just me?

@tannerlinsley this 20.3 kB is the gzipped size. The file is not minified. bundlephobia shows 11.2 kB (MINIFIED + GZIPPED)

I think showing the minified + gzipped sizes would be more accurate to what we need. If I went in and added a bunch of code documentation, this would inaccurately reflect a large bump in size when in reality, none of that size is making it to the end user.

Yep. Minzipped.
Tanner Linsley
On Dec 2, 2019, 10:31 AM -0700, Michael Stramel<EMAIL_ADDRESS>wrote:

I think showing the minified + gzipped sizes would be more accurate to what we need. If I went in and added a bunch of code documentation, this would inaccurately reflect a large bump in size when in reality, none of that size is making it to the end user.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@tannerlinsley @stramel that makes sense. currently, it is limited to gzipped/brotli size.
We do have plans to add more flexibility to how sizes are calculated.
just to give a glance of how it may look like
    file ⏤  brotli  gzip   uncompressed
index.js ⏤  20kB    25kB    80 kB


Develop

Add http://newsubs.com/ to subtitel seach plz.

@Ombouwleusden close this please and open an issue requesting it: https://github.com/Diaoul/subliminal/issues/new


ERROR: Cannot define class using reflection on wdio start

Getting exceptions:
> wdio

ERROR: Cannot define class using reflection
chrome
    at new RuntimeError (/Users/oleksandrkhotemskyi/Documents/GitHub/automated-testing-tool/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:144:12)
    at Request._callback (/Users/oleksandrkhotemskyi/Documents/GitHub/automated-testing-tool/node_modules/webdriverio/build/lib/utils/RequestHandler.js:316:39)
    at Request.self.callback (/Users/oleksandrkhotemskyi/Documents/GitHub/automated-testing-tool/node_modules/webdriverio/node_modules/request/request.js:186:22)
    at Request.emit (events.js:180:13)
    at Request.emit (domain.js:422:20)
    at Request.<anonymous> (/Users/oleksandrkhotemskyi/Documents/GitHub/automated-testing-tool/node_modules/webdriverio/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:180:13)
    at Request.emit (domain.js:422:20)
    at IncomingMessage.<anonymous> (/Users/oleksandrkhotemskyi/Documents/GitHub/automated-testing-tool/node_modules/webdriverio/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at IncomingMessage.emit (domain.js:422:20)
    at endReadableNT (_stream_readable.js:1106:12)
    at process._tickCallback (internal/process/next_tick.js:178:19)

0 steps (0 passed, 0 failed, 0 pending)

npm ERR! Test failed.  See above for more details.

I believe this might be because of too new java version:
java --version
java 10 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

Config:
exports.config = {
    specs: [
        './src/features/**/*.feature',
    ],
    capabilities: [{
        maxInstances: 1,
        browserName: 'chrome',
    }],
    sync: true,
    logLevel: 'error',
    coloredLogs: true,
    reporters: ['cucumber'],
    baseUrl: 'http://www.google.com',
    waitforTimeout: 10000,
    connectionRetryTimeout: 5000,
    connectionRetryCount: 3,
    services: ['selenium-standalone'],
    framework: 'cucumber',
    cucumberOpts: {
        require: [
            './src/steps/hooks.js',
            './src/steps/given.js',
            './src/steps/when.js',
            './src/steps/then.js',
        ],
    },
    before: function before() {
        const chai = require('chai');
        global.expect = chai.expect;
        global.assert = chai.assert;
        global.should = chai.should();
    },
};

Dependencies:
  "dependencies": {
    "wdio-screenshot": "^0.6.0",
    "wdio-spec-reporter": "^0.1.3",
    "chai": "~4.1.2",
    "wdio-cucumber-framework": "2.0.1",
    "wdio-cucumber-reporter": "0.0.2",
    "wdio-selenium-standalone-service": "~0.0.10",
    "webdriverio": "4.12.0"
  }

See https://github.com/Codeception/Codeception/issues/4657#issuecomment-348354476

I have pushed this issue in the Selenium Google Group , but no response from them yet : https://groups.google.com/forum/#!searchin/selenium-users/java$2010|sort:date/selenium-users/h_lCnJTtEb8/yteuaONXBgAJ

@edi9999 is it your opinion that Java 10 should work?

@christian-bromann any reason you closed this issue? Will JDK10 not be supported?

Will JDK10 not be supported?

I don't know but it is not a problem for this service as it only starts the java server and is not concerned about what runs in that java server. That being said, I doubt that they won't support JDK10.

The issue is related to JDK10, please downgrade java to 8. This should fix your issue

@arturbek I understand that that fixes the issue, but staying on jdk8 is a temporary measure.


Koin viewmodels

Code Coverage

File
Coverage [0.00%]
:x:

composeApp/src/commonMain/kotlin/login/presentation/LoginEvent.kt
0.00%
:x:

composeApp/src/commonMain/kotlin/login/presentation/LoginScreen.kt
0.00%
:x:

Total Project Coverage
0.00%
:x:


misc: Use JSON_THROW_ON_ERROR

This brings two improvements:

The reason for the JSON parsing failure is visible in the stack trace / $previous exception, allowing the developer to determine whether the parsing failure was caused by a syntax error, invalid UTF-8 sequence or something else.
The JSON string null (which decodes to null) is no longer erroneously rejected as invalid. Instead it is rejected, because it is not iterable, slightly improving the error reporting.

@romm Ping. Changed to a named argument now.

Made another small fix I just noticed: use JsonException instead of using \JsonException. Wasn't caught by CI apparently.

That was fast!

For my open source contributions I generally try to act on any review requests quickly, so that the maintainer doesn't need to wait for me.

Merci!


error

I WANT TO COONECT PHP7 WITH MONGODB .pls help me ...

Hi (it's not useless ...)
Just install MongoDB (under Debian):
pecl install mongodb-1.1.8
echo extension=mongo.so > /usr/local/etc/php/conf.d/mongo.ini

Restart your web server to take care of change.
And in your code :
 $this->m_mongo = new \MongoDB\Client("mongodb://" . $user . ":" . $password . "@mongodb:27017/" . $database);

@rohitdesigner What kind of error is occurring? Can you please share an exception stack trace?

yes pls... iam using php7 with mongodb but i am getting an error when deploying it on mamp..

now this is the code
`<?php
require_once("/vendor/autoload.php");
$database = (new MongoDB\Client)->example;
?>
Note: i have installed mongodb php library from composer.
when deploing :

please help me... i am googling for the error since 15 days
`

I don't know why your site does not work, but I see problem in this line:
require_once("/vendor/autoload.php");

Leading slash in file path means that this is an absolute path. Probably, you should change this to
require_once("vendor/autoload.php");

But I think the problem is also in your environment, check it first.

@rohitdesigner Check https://github.com/mongodb/mongo-php-driver/issues/476. Others are having issues with Windows and the 1.2.0 driver.

can u connect through my pc
On Thu, Dec 8, 2016 at 4:53 AM, Mark Garrett<EMAIL_ADDRESS>wrote:

@rohitdesigner https://github.com/rohitdesigner Check
mongodb/mongo-php-driver#476
https://github.com/mongodb/mongo-php-driver/issues/476. Others are
having issues with Windows and the 1.2.0 driver.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mongodb/mongo-php-library/issues/309#issuecomment-265791545,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ_K-DDw6ZphUndfPWClzbs1-wRSnjHGks5rGDX9gaJpZM4LHie0
.

can u pls connect through teamveiwer to my pc and pls pls solve this

@rohitdesigner , this is the Github page of the concrete project. Here you should post issues with this concrete library.
But your problem is that you cannot get your environment up and running.
This is not the issue you can post here.

environment is correct i think... you can see in the screenshot

@rohitdesigner you should provide concrete issues - what error is occuring (for example, it can be logged in php-fpm log if you are using php-fpm). But you just posted screenshot, which can tell us, that your site is not working.
If you want to get help - ask concrete question.

@rohitdesigner , please read documentation of your web server and find, where php errors are logged in your environment.
When you'll find this, you just should post your error text and stack trace here, and you will get help.

Cross-referencing with:

https://github.com/mongodb/mongo-php-driver/issues/428
https://github.com/mongodb/mongo-php-driver/issues/476 (as @moderndeveloperllc linked above)

If there is no PHP error and the web server log reports a crash, this is like the same issue. I am in the process of trying to reproduce the crash in the above issues in a Windows VM and will update those issues when I have something to report.

no log . its empty
On Thu, Dec 8, 2016 at 5:08 AM, Petr Buchin<EMAIL_ADDRESS>wrote:

@rohitdesigner https://github.com/rohitdesigner , please read
documentation of your web server and find, where php errors are logged in
your environment.
When you'll find this, you just should post your error text and stack
trace here, and you will get help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mongodb/mongo-php-library/issues/309#issuecomment-265795647,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ_K-OvyVxuHvx3RZNgkS3suTDHyqnsEks5rGDl0gaJpZM4LHie0
.

Please see my comment in https://github.com/mongodb/mongo-php-driver/issues/476#issuecomment-266022770. I believe we've diagnosed the root cause and I'm in the process of sorting it out.

Closing this as a duplicate. I've also uploaded a DLL in https://github.com/mongodb/mongo-php-driver/issues/476#issuecomment-266088977 that may be used until we properly release the fix in a 1.2.2 release. If you have further comments, please direct them to the that thread.

Just to follow up: 1.2.2 has been released with the relevant fix. Windows builds should show up on PECL within a couple of hours.


Remove sbtx usage

Fix for #59
Replace by prior copy of .jvmopts-ci into .jvmopts which is the file sbt natively supports
Naive approach, just trying to help, not sure if that's what you expected? 😄  It seems sbt doesn't support a custom filename for jvm opts

@mdedetrich yes indeed, we could rename, that's the alternative. However, naturally, this means these options would also be picked up when starting sbt locally, which is maybe not what we want 🤔 ?
Do we actually know if these options are necessary at all? some of them might no longer be relevant, e.g. UseCompressedOops seems to be a default nowadays

yes indeed, we could rename, that's the alternative. However, naturally, this means these options would also be picked up when starting sbt locally, which is maybe not what we want 🤔 ?

So the underlying point of the issue and this PR is that sbtx is actually not used in any distribution if you install sbt the standard way. A lot of functionality over time has moved from sbtx to sbt and today there is no reason to use sbt. This is why @SethTisue was annoyed with setup-scala aliasing sbt to sbtx because its misleading.
The tl;dr is that nowadays if you have sbt on Linux/Mac/Windows its just using standard sbt (not sbtx) and its ignoring those cli options anyways

Do we actually know if these options are necessary at all? some of them might no longer be relevant, e.g. UseCompressedOops seems to be a default nowadays

That is a fair point but I would fix this in a separate PR just to make things clear.

@mdedetrich thanks yes I think I understand the context of this issue. My only concern was that by renaming .jvmopts-ci to .jvmopts in the repo, when you start sbt (not sbtx, just the standard sbt), it will actually pickup these options for your local development session (which could be counter-intuitive, as it's "hidden"). Compared to sbtx, it just doesn't allow specifying the file - but the functionality is there with the hardcoded name.
If that's acceptable, for sure we can rename it and ditch the preliminary copying step.
But I was guessing here that it had been kept separate to make it clear that these options were only relevant for the CI, and so I thought it relevant to keep this intention 🤷


Fix drawRange for brushing on colorCoreGroups

Previously, the very ends of the core fibers were not shown while brushing. This PR fixes that.

Added fix for the yzoom setting in the ready function.