[Map] DM-NBK-Masterbath-25-UT-Dx

Your description here
Why is my name showing up incorrectly in the author setting? Am I assuming the special characters?  Can we get it corrected please to Michael<(DxTrEm3Fx)>Lalla

URL: https://unrealarchive.org/maps/unreal-tournament/deathmatch/N/dm-nbk-masterbath-25-ut-dx_8202ff8b.html
Hash: 8202ff8b0cfc1258d9f992ceaccd1d1aca76b24d
Current name: DM-NBK-Masterbath-25-UT-Dx

Fixed.
There was an alias which had DxTrEm3Fx as higher preference, replaced it with Michael<(DxTrEm3Fx)>Lalla.

This must be an old request? Otherwise I'm not sure what you are talking about. Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Kenneth Watson @.> Date: 11/10/23  8:11 PM  (GMT-07:00) To: unreal-archive/unreal-archive-data @.> Cc: DxTrEm3Fx @.>, Author @.> Subject: Re: [unreal-archive/unreal-archive-data] [Map] DM-NBK-Masterbath-25-UT-Dx (Issue #2653)
Fixed.
There was an alias which had DxTrEm3Fx as higher preference, replaced it with Michael<(DxTrEm3Fx)>Lalla.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


fix: use transformer config in config:init instead of globals

Test plan

Updated tests
Green CI
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
N.A.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-8 of 37 (78.38%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 96.168%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/cli/config/init.ts
28
36
77.78%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
4006

Relevant Lines:
4111

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

29 of 37 (78.38%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 96.168%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/cli/config/init.ts
28
36
77.78%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
4006

Relevant Lines:
4111

💛  - Coveralls


Update Posts “useful-links-02”

Automatically generated by Netlify CMS

👷 Deploy Preview for benevolent-muffin-215770 processing.

Name
Link

🔨 Latest commit
f86a910d9e9f4b03b7a0be53b9be92cddc54106f

🔍 Latest deploy log
https://app.netlify.com/sites/benevolent-muffin-215770/deploys/62844618640f720008d67854


fix: do not check for notable events on aborted game

Untested PR nr 100, should work though.
Question: is there a difference between match.getDuration() and match.getInfo().getDuration()?

Please move the magic numbers to an appropriate place.
The remake time for Summoner's Rift is 3 minutes. For ARAM it changed in patch 12.23 to 90 seconds (down from 120).

And we can do if (this.getMapId().equals(MAPS.SUMMONERS_RIFT)) .....

That would be best!


Adapt network policies to reversed vpn.

How to categorize this PR?

/area networking
/kind enhancement
What this PR does / why we need it:
Adapt network policies to reversed vpn.
With reversed vpn only the vpn-seed-server pod in the cluster control plane has layer 3 routing
access to the shoot cluster. The kube-apiserver uses the vpn-seed-server as http proxy. Monitoring
utilizes kube-apiserver as another level of indirection.
This is why this change removes the annotations from kube-apiserver and prometheus in case reversed
vpn is active.
As there is basically no longer connectivity to the shoot networks it is also no longer necessary
to exclude the shoot networks from the private network range (allow-to-private-networks). This
allows additional scenarios where private IPv4 addresses are used in the shoot cluster as well as
for other services.
Which issue(s) this PR fixes:
None.
Special notes for your reviewer:
Release note:

/cc @DockToFuture @MartinWeindel

/test pull-gardener-integration

Does it make sense to have a release note?

Added a release note.


How do I create a card? No createCardToken found

I am developing a marketplace in Flutter using this package to access the MercadoPago API to build a Transparent Checkout. However, to add a card, I believe I need the createCardToken function. But it doesn't exist in the package, right? How should I implement the adding card feature?

I am developing a marketplace in Flutter using this package to access the MercadoPago API to build a Transparent Checkout. However, to add a card, I believe I need the createCardToken function. But it doesn't exist in the package, right? How should I implement the adding card feature?

Same issue here, @LucaDillenburg have you ever solved this problem?

Hi @Cayke . Check out MercadoPago().card.token(...).


Wrong Unicode code point in documentation for visible space

The fontspec.pdf incorrectly mentions U+2434 where U+2423 is intended. This issue affects only the code comments, not the code itself.

It would be pretty funny if it did end up printing U+2434 :)


Meta property tags for social sharing

Hello,
I wanted to start a discussion about social media sharing and how links appear on sites such as Facebook. Currently, whenever a career portal link is shared on facebook, it is fairly bland (examples will be provided below).  Currently what controls the content that appears are meta tags that is included in the head of index.html.  When adding this simple information, it can make your social media sharing more professional and attractive in the appearance.
Here below, there is an example of the current appearance of the Bullhorn links shared from within Bullhorn or the link pasted directly to facebook.
Current appearance

Adding this code to the head of index.html (after building my career portal) has generated this "potential appearance"
<meta property="og:url" content="https:/acme.com/" />
<meta property="og:image" content="http://i.imgur.com/rzJuFL5.png" />
<meta property="og:title" content="cool job!" />
<meta property="og:description" content="This job is great!" />

potential appearance

I used this tool  from facebook to generate the above images for testing purposes.
Since this site is built on Angular there is the potential of including the job titles on the share links however, this will introduce a new controller file, additions of bound data values in the meta tags, and potential modifications to the gulp build files (which I am not too familiar with).  Any thoughts on this implementation?   I would love to see what discussions sprout from this topic!

Hi Charles, has there been any progress here? Our career portal has just gone live and when I share one of the vacancies on social media it doesn't scrape an image, the job title, nor any job description. I would like the option to automatically scrape an image of choice, include the job title and summary. Is this possible?

Hi Richard
Just had a look at your site and it doesn't look like you are using the OSCP so you will have to talk to webflow team / your developers to fix this

Hi Paul, yes it is the OSCP. It's just been restyled to fit into our website styling.


error installing node modules

Versions (please complete the following information):

OS: windows 10
Ignite JHipster Version:  v1.12.2
Node Version: 8.11.3
jhipsterVersion: 4.14.0,

Describe the bug
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm ERR! Invalid dependency type requested: alias

generated new project from ignite-jhipster pointint to my jhipster server when i am installing node modules using "npm install" the packages are not installing and  getting this error in android in ios it is runnning

Thanks for reporting, I usually use yarn so I missed this issue.  Just released v1.12.3 with the fix, you can also check the commit that closed this issue for the change, it's simple.

please reopen it i have another issue after that

Looks like it's a React Native + Windows issue and they decided not to backport the fix to v0.56 of React Native.  I guess we're forced to upgrade to v0.57+
I have limited time this week but I'll try to get it done sometime soon.  If you want it before then, you can fork/clone the boilerplate, revert this commit https://github.com/ruddell/ignite-jhipster/commit/dbfc86cae9c45276fd06066635b7d9359d6fca82, and run:
ignite new MyAppName --boilerplate /full/path/to/cloned/boilerplate/folder

thankyou @ruddell i will try

Environment:
  OS: Windows 10
  Node: 8.11.3
  Yarn: 1.9.2
  npm: 6.3.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Version  <IP_ADDRESS> AI-173.4819257

Packages: (wanted => installed)
  react: 16.3.0-alpha.1 => 16.3.0-alpha.1
  react-native: 0.54.1 => 0.54.1
  ignite-jhipster: "^1.10.3",
  ignite-standard: "^1.0.0",

i have builded the ignite-jhipster project in these configurations and i can successfully build the project and ran it in android in windows environment...almost completing the project  now when i am building the same project in mac it is giving me error
/Users/xcodeclub/Library/Developer/Xcode/DerivedData/Lea*****y/Build/Intermediates.noindex/demo.build/Debug-iphonesimulator/demo.build/Script-00DD1BFF1BD5951E006B06BC.sh: line 3: ../node_modules/react-native/scripts/react-native-xcode.sh: No such file or directory
I have also checked the build phases of my project in Xcode and there
export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh

actually the file exists in the given path but when I am building the project it is giving error no such file or directory
could not able to find the exact issue....don't no may be it is issue between library versions or not
tried updating the latest react-native,ignite-jhipster versions and building but it did not worked for me.
please help me to solve my issue.
thanks @ruddell  in advance.

That issue seems to be an issue with your react-native configuration, if you search Google there are many people with your problem so it's not specific to ignite-jhipster.  Sometimes react-native changes the paths between versions so if you just try to run npm install for a different version it won't work as expected.
I also just upgraded react-native to the latest version so your Windows issue should be fixed, I don't have a Windows computer to test on so I'm not positive.  New projects will use that version https://github.com/ruddell/ignite-jhipster/commit/c775c4de743f576eefb1d3327ac888991c3ba774


cilium: Add workflows for GKE in tunnel mode, with and without encryption

We want to test vxlan with encryption add workflow tests to GKE to capture this use case.

This looks like an unrelated flake, it happens on the first connectivity test before encryption or tunnelling. https://github.com/cilium/cilium/pull/15678/checks?check_run_id=2339277155
✅ Drop not found for pod cilium-test/client-6c46bff775-p27ht
❌ RST tcpflags(ack,rst) found for pod cilium-test/client-6c46bff775-p27ht
📄 Flow logs of pod cilium-test/client-6c46bff775-p27ht:
Apr 14 03:42:33.372: <IP_ADDRESS>:41097 -> <IP_ADDRESS>:53 from-endpoint FORWARDED

The conformanceGKE test missed the initial syn/ack? I bumped the sleep after the port forwarding enable from 5s to 10s.

bumped into timeout while copying logs but all GKE tests ran and passed so lets bump to 25minutes.

Lets run one more time to be sure I didn't typo anything while deleting unmanaged-pods.

This is stable now and passing ConformanceGKE consistently I'm going to drop the test commit now and mark it ready.

Seeing this is a workflow and does not touch other cilium code I see no reason to run tests. Marking ready to merge, there is the direction question from @nbusseneau above though. In my opinion we want to merge this, it bumps the max time from 15minutes to 20minutes, but without this we have no tests for encryption with vxlan that cover these cases. In the past we've introduced regressions in this space that have resulted in a fair amount of work to unwind so from my perspective the extra testing is worth the complexity/cost.

Janitor here: The PR has been in draft mode so far, so few people took the time to review. I'd rather have it marked as “ready for review” for the time being and gather more feedback, as the concerns from Nicolas sound legitimate. Plus we're missing a review from cilium/maintainers.
I'll clean up the labels and draft status for now.

it bumps the max time from 15minutes to 20minutes

30 minutes in the YAML file

@qmonnet Thomas gave his opinion here, so I think we are aligned. Let's just merge as-is for now, and I will make a refactoring pass to switch to a matrix-based workflow later.


Potential socket wait on timeout if the server wants to terminate.

I don't know if this situation is correct or not, but the server will wait for the socket during termination, even if no packets are being sent through this socket. This leads to prolonged termination.
It is recommended to add operation cancellation upon termination event.
https://github.com/amphp/http-server/blob/26001b1ffac11db30c627ed4daba2088951b0ffa/src/Driver/Http1Driver.php#L144

Updated the driver to cancel reading a request upon shutdown.


Convert lint target to golangci-lint

Enable only the existing lints to start and run with --fix on the project, committing the results.
Closes #26

This looks good, thanks! There only is an error regarding the version string:
Error: Failed to run: Error: invalid version string '1.48', expected format v1.2 or v1.2.3, Error: invalid version string '1.48', expected format v1.2 or v1.2.3

Seems like the version string should be v1.48 in our case.

I enabled other defaults, one at a time so you can see what needed to be fixed.


score.snapshot.org CORS policy blocking API queries.

Expected behavior
We make a call to snapshot.utils.getScores and fetch a user's score.
Actual behavior
Call to snapshot.utils.getScores prints the following in console:
Access to XMLHttpRequest at 'https://score.snapshot.org/api/scores' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Steps to reproduce the behavior
Will be present on any site outside of the snapshot.org domain utilizing the snapshot API to query getScores.

@jnaviask Can you provide some example of parameters for the getScores function that give you this error?

After fetching space via graphql (all parameters have the same name as in graphql), the following:
snapshot.utils.getScores(
  space.id,
  space.strategies,
  space.network,
  snapshot.utils.getProvider(space.network),
  ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"],
)

I was testing against https://snapshot.org/#/ybaby.eth, but it seems to be returning correctly now for some reason, so I'm going to close this ticket.


Stock update 050421

Context
https://trello.com/c/K68oBL48

 PR 1659 - Standard Windows laptops are temporarily out of stock


smooth-scrollbar.js not working well with midnight.js

Environment

Browser: Firefox, Chrome newest Versions
Version of smooth-scrollbar: Any

Issue Summary
I want to change a fixed menu when it hovers over different containers with different background-colors while scrolling. So I searched and found midnight.js to be the perfect solution for that. So I included the script in my test.html document and everything seemed to work sofar. After that I tried to include smooth-scrollbar.js into my document which also worked well exept of one issue I've noticed. When I scroll in the document the fixed menu changes its color depending on the background it is currently hovering over as expected ... but only after you stopp scrolling on your mousewheel. When you scroll up and down without stopping nothing changes at all. So i've inspected that whole thing and found out that midnight.js only functions for the standard scrollbar and not the smooth-scrollbar. So I did some research and found in the API Documentation of the smooth-scrollbar.js that there is a scrollbar.addListener() method since the scrollbars will not fire a native scroll event. So I tried including this somewere in the midnight.js and overwrite their _scrollTop method ... but I couldn't make it work. Were do I need to include the Listener?
Online demo
Here's a Demo of the Issue: https://codepen.io/Pelle2010/pen/WPqRRL

I did some research and found a tricky way to force an update:
// Start midnight
var $m = $('.menu').midnight();

// Start smoothScrollbar
var scrollbar = Scrollbar.init(document.querySelector('#wrapper'));

scrollbar.addListener(function() {
  $m.midnight('refresh'); // <- force midnight to update
});

See my working demo: https://codepen.io/idiotWu/pen/KJjyPr
Reference: How To Use the Widget Factory

Super cool! Thank you so much for help. Works like a charm.


client: fix file push

Closes #3153.
Signed-off-by: Christian Brauner<EMAIL_ADDRESS>

Can we add a test?

yup

Tests added.


[master] Upgrade to latest dependencies

Produced via:
./hack/update-deps.sh --upgrade
./hack/update-codegen.sh

/cc ZhiminXiang
/assign ZhiminXiang

/lgtm
/approve

/hold
This may conflict with @tcnghia

hmm, strange that this has no conflict
/unhold


Running "make" the first time will fail without tangling README.org first

This is the side effect of removing PyLNP.user from the repository.
Am researching methods of extracting that file without having to rely on having Emacs or org-mode.

Check out commit b730c55af6f5e265f22cf330d560fbac630be2b9. Since we're using the xdg-terminal from this repo, we no longer need a custom PyLNP.user file to sort matters out.


[Bug]Microcharts.Forms <IP_ADDRESS> - Chart is not visible after updating from 0.7.1

Describe the bug
Updated from version 0.7.3 to <IP_ADDRESS>
Chart is not visible after loading the entries.
Before update everything worked. When debugging, the entries are filled with information correctly.
Which platform and version is this for?
Xamarin.Forms MVVM
iOS/Android
To Reproduce
This is my XAML (partial)
`
xmlns:microcharts="clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms"
                        <!--Chart-->
                        <Grid Grid.Row="1">
                            <ActivityIndicator Style="{StaticResource ActivityIndicator}"
                                               IsRunning="{Binding IsBusy}"
                                               HorizontalOptions="Center"
                                               VerticalOptions="Center"
                                               />

                            <ScrollView Orientation="Horizontal">
                                <StackLayout>
                                    <microcharts:ChartView WidthRequest="{Binding GraphWidth}"
                                                           HorizontalOptions="StartAndExpand"
                                                           BackgroundColor="Transparent"
                                                           Chart="{Binding ReadingsChart}"
                                                           />
                                </StackLayout>
                            </ScrollView>
                        </Grid>

`
This is my ViewModel
        public Chart ReadingsChart
        {
            get => _readingsChart;
            set
            {
                _readingsChart = value;
                OnPropertyChanged();
            }
        }

        private void InitBarchart()
        {

            var chartEntries = new[]
            {
                new ChartEntry(10)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
                new ChartEntry(12)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
                new ChartEntry(9)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
                new ChartEntry(4)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
                new ChartEntry(12)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
                new ChartEntry(15)
                {
                    Color = SkiaSharp.SKColor.Parse("8864eb"),
                    TextColor = SkiaSharp.SKColor.Parse("8864eb"),
                    Label = "22/8/2020",
                    ValueLabel = 10 + "kWh"
                },
            };

            ReadingsChart = new BarChart()
            {
                PointMode = PointMode.None,
                BackgroundColor = SkiaSharp.SKColors.Transparent,
                LabelTextSize = 24,
                ValueLabelOrientation = Orientation.Horizontal
            };

            if (_graphEntries.Count > 3)
                GraphWidth = _graphEntries.Count * 85;
            else
                GraphWidth = 100 + _graphEntries.Count * 15;

            ReadingsChart.Entries = chartEntries;
            OnPropertyChanged();
        }

Found out that i was missing the package installations in the platform specific projects.
Maybe its just me, but i think that it should be noted in the "how to use" section :)


Json.NET attributes should be ignored when using System.Text.Json

My Api is using System.Text.Json, however I'm still referencing Json.NET. If I expose a model, that is using a the Json.NET attribute, the Swagger models are generated incorrectly:
[JsonProperty("is_visible")]
public bool IsVisible { get; set; }

generates the Swagger model

however the API response will be
"isVisible": true

Seems like a duplicate of https://github.com/RicoSuter/NSwag/issues/2243, part B.
System.Text.Json is not officially supported by NSwag

I see this support is getting more and more important, but meanwhile System.Text.Json still does not expose metadata...

See https://github.com/RicoSuter/NSwag/pull/2655


Support custom filesystem type and mount options

such as
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: csi-lvm
parameters:
  fsType: ext4/xfs/btrfs
  mkfsOptions: xxxxx
  mountOptions: xxxxx
provisioner: metal-stack.io/csi-lvm
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete

Can be done of course, but this will also create a much bigger container for the provisioner because userspace tools to handle btrfs and xfs and zfs all have a different set of tools to create/manage them.
Additionally the kernel need to have support for these filesystems, which is often the case, but cant be given as always present.
Can you please elaborate what are you specific use cases for other filesystems than ext4, which is in our opinion the most performant general purpose filesystem out there.
For reference you can have a look at a plethora of benchmarks here:
https://www.phoronix.com/scan.php?page=article&item=linux-50-filesystems

My servers have battery backend, I would like to disable filesystem journal and write barrier to improve performance.
mkfs.ext4 in tens of terabytes raid disk will take more then 20s, it cause mkfs failure. And In Elasticsearch use case: large amount of small file r/w, btrfs is better then ext4/xfs, so I would prefer to use btrfs.

If you are interested in implementing this in a merge request i will review it and help to bring it into shape.
WDYT ?

Ok, I haven't coded any kubernetes project, but I will try. Thx


Documentation changes in Compatibility and Review topics sections.

Ready for merge. Please review.
This change does not affect the content of the PyPI package, it only affects the RTD content.
Details:

Changed the explicit list of tested distros with a link to its test directory, consistent with the same change in the readme file.
Moved the content of compatibility.rst into index.rst.
Moved the Todo entry about providing test data for distros into the 'Compatibility' section.
Removed the 'Review topics' section and its only remaining ToDo entry about helping with open issues. That should not be in the API documentation - if we want to have that, it could be added again on the GitHub readme page.
In index.rst, reused existing link target for issue tracker and created link target for open issues.

Rebased.


numpy.dot compiling fails (python 3.6, IPython 6.1.0, Pythran 0.8.5, win10)

Hi,
First of all, thanks for this awesome package.
I have an issue and a question:
1 - I am trying to compile a function with numpy.dot product and the compiling fails (but if I remove the part with the dot product and leave the rest it works, aleternatively, if I only leave the dot product it fails):
eg:
%load_ext pythran.magic
%%pythran
#pythran export fun(float[][],float[][])
import numpy as np
def fun(A,B):
    return np.dot(B.A)
Any thoughts?
2 -My question is about the compiling. In IPyhton, I often create functions in seperate files that I call like modules, as long as they are in the same directory as my working directory. How can I call such a file compiled with Pythran?
Thanks a lot

Hi Serge-Sans-Paille,
Thanks a lot for your reply.
Here is the compile error:
Compile_error.txt

Thanks, it helps a lot ! Do you have openblas installed somewhere ?

Hum, not that I am aware of. Should I install it?

not yet, I'll check how numpy handles that to make deployment easier. Keep in touch!

What happens if you change blas=blas into blas=openblas in your pythran-win32.cfg ?

Thanks, I get quite a similar output but with some additional lines at the top:
Compile_error_openblast.txt
FYI, my pythran-win32.cfg is now:
[compiler]
defines=
undefs=
include_dirs=
libs=
library_dirs=
cflags=/std:c++14
ldflags=
blas=openblas
CC=
CXX=

Interestingly I tried to run my code on Google collab (colab.research.google.com/) on an online kernel, online ipynb. I don't know if it helps:
%%pythran #pythran export fun(float[][],float[][])  import numpy as np def fun(A,B):     return np.add(A,B)
seems to work. But
%%pythran #pythran export fun(float[][],float[][])   import numpy as np def fun(A,B):     return np.dot(A,B)
gives:
ImportError                               Traceback (most recent call last)
 in ()
----> 1 get_ipython().run_cell_magic('pythran', '', '#pythran export fun(float[][],float[][])  \nimport numpy as np\ndef fun(A,B):\n    return np.dot(A,B)')
/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2115             magic_arg_s = self.var_expand(line, stack_depth)
2116             with self.builtin_trap:
-> 2117                 result = fn(magic_arg_s, cell)
2118             return result
2119
 in pythran(self, line, cell)
/usr/local/lib/python3.6/dist-packages/IPython/core/magic.py in (f, *a, **k)
186     # but it's overkill for just that one bit of state.
187     def magic_deco(arg):
--> 188         call = lambda f, *a, **k: f(*a, **k)
189
190         if callable(arg):
/usr/local/lib/python3.6/dist-packages/pythran/magic.py in pythran(self, line, cell)
70         module_name = "pythranized_" + m.hexdigest()
71         module_path = pythran.compile_pythrancode(module_name, cell, **kwargs)
---> 72         module = imp.load_dynamic(module_name, module_path)
73         self._import_all(module)
74
/usr/lib/python3.6/imp.py in load_dynamic(name, path, file)
341         spec = importlib.machinery.ModuleSpec(
342             name=name, loader=loader, origin=path)
--> 343         return _load(spec)
344
345 else:
/usr/lib/python3.6/importlib/_bootstrap.py in _load(spec)
/usr/lib/python3.6/importlib/_bootstrap.py in _load_unlocked(spec)
/usr/lib/python3.6/importlib/_bootstrap.py in module_from_spec(spec)
/usr/lib/python3.6/importlib/_bootstrap_external.py in create_module(self, spec)
/usr/lib/python3.6/importlib/_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
ImportError: /content/pythranized_c229e4990191302dc1d407b7993590fe.so: undefined symbol: _Z11cblas_dgemm11CBLAS_ORDER15CBLAS_TRANSPOSES0_iiidPKdiS2_idPdi

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.

That's still the same issue: Pythran needs to find a working version of blas on the system. The good point is that there's one in the official numpy wheel, I'll try to find a way to have Pythran use it. Keep in touch!

If you installed numpy from the wheels, there should be an openblas file somewhere in the numpy source. What's its path?

Sorry, I am not sur what you mean. I installed everything with Anaconda. I don't have any openblast file in my anaconda folder by default. All I could find are:

@embray

That's still the same issue: Pythran needs to find a working version of blas on the system. The good point is that there's one in the official numpy wheel, I'll try to find a way to have Pythran use it. Keep in touch!

Any update on this?
Getting a very similar error for x * y or np.multiply(x, y):
%%pythran
#pythran export pg_det(float[], float[])
import numpy as np
def pg_det(x, y):
    x = np.asfarray(x)
    y = np.asfarray(y)
    return np.multiply(x, y) # same for "x * y", but works with "return 1"

I'm on Python 3.6, IPython 6.5.0, Pythran 0.8.6, Win10 64bit, and the dprod-example from the docs compiles.
@serge-sans-paille

If you installed numpy from the wheels, there should be an openblas file somewhere in the numpy source. What's its path?

I installed from wheel and get the following for np.show_config():
mkl_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\include', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\lib', 'C:/ProgramData/Miniconda3/envs/pythran\\Library\\include']
blas_mkl_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\include', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\lib', 'C:/ProgramData/Miniconda3/envs/pythran\\Library\\include']
blas_opt_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\include', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\lib', 'C:/ProgramData/Miniconda3/envs/pythran\\Library\\include']
lapack_mkl_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\include', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\lib', 'C:/ProgramData/Miniconda3/envs/pythran\\Library\\include']
lapack_opt_info:
    libraries = ['mkl_rt']
    library_dirs = ['C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib']
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
    include_dirs = ['C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\include', 'C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2016.4.246\\windows\\mkl\\lib', 'C:/ProgramData/Miniconda3/envs/pythran\\Library\\include']

Side note: "pythran" is the name of my conda environment for testing pythran, which might be confusing in the above paths.

Can you list the content of C:/ProgramData/Miniconda3/envs/pythran\\Library\\lib and tell me if there is an openblas library there?

@serge-sans-paille
All the .lib files without the ones starting with Qt or qt:
               freetype.lib
                  icudt.lib
                  icuin.lib
                  icuio.lib
                icutest.lib
                  icutu.lib
                  icuuc.lib
                   jpeg.lib
               libeay32.lib
        libeay32_static.lib
                 libEGL.lib
              libGLESv2.lib
             libiomp5md.lib
        libiompstubs5md.lib
                libjpeg.lib
                 libpng.lib
               libpng16.lib
        libpng16_static.lib
          libpng_static.lib
              libsodium.lib
       libsodium_static.lib
        libzmq-mt-4_2_5.lib
      libzmq-mt-s-4_2_5.lib
                 libzmq.lib
    mkl_blacs_ilp64_dll.lib
     mkl_blacs_lp64_dll.lib
      mkl_cdft_core_dll.lib
           mkl_core_dll.lib
    mkl_intel_ilp64_dll.lib
     mkl_intel_lp64_dll.lib
   mkl_intel_thread_dll.lib
     mkl_pgi_thread_dll.lib
                 mkl_rt.lib
mkl_scalapack_ilp64_dll.lib
 mkl_scalapack_lp64_dll.lib
     mkl_sequential_dll.lib
     mkl_tbb_thread_dll.lib
                sqlite3.lib
               ssleay32.lib
        ssleay32_static.lib
                      z.lib
                   zdll.lib
                   zlib.lib
             zlibstatic.lib

So no openblas, but (as far as I can tell) it's in the mkl_ stuff.

Yeah, one needs to find where the blas functions are defined in those... any educated guess?

I'd say mkl_intel_ilp64_dll.lib or mkl_intel_lp64_dll.lib (guessing based on size and trying to find some strings in the lib). I found a description of the differences between ilp and lp here, not sure how useful:
https://software.intel.com/en-us/mkl-macos-developer-guide-using-the-ilp64-interface-vs-lp64-interface

#1296 introduces a solution to this: depend on the pythran-openblas package which ships a static version of openblas. Eventually this is going to solve your issue (and to be the default for windows)

For the people using Anaconda Python, the default installation for NumPy / SciPy / etc. is MKL backed BLAS/LAPACK.  To use it with Pythran you need to setup a virtual environment like this:
conda create -n openblas pip # we create a separate environment called openblas, and install pip there too
conda activate openblas # switch over to the new environment
pip install numpy
pip install scipy
pip install pythran
pip install pythran-openblas
pip install (whatever it complains about you not having, pandas or any other function in your script)...

Then you should install Microsoft 2019 Build Tools which is now here: https://my.visualstudio.com/Downloads?q=visual studio 2019&wt.mc_id=o~msft~vscom~older-downloads once you get the downloader, you can select the "C++ Clang tools for Windows" and get a working Clang-12 version of clang-cl.exe which Pythran can actually build PYD modules with.  You should run the "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat x64" or whatever your architecture is before running Pythran so it can find the compiler.  I setup on my environment just a simple shortcut like this:
%windir%\System32\cmd.exe "/K" C:\Users\[my_user_name]\Anaconda3\Scripts\activate.bat openblas

But, I also modified the activate.bat with a line to call the vcvarsall.bat automatically like this:
@CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"

Then compiling with a simple: pythran script_name.py should work fine.  Now OpenMP on Windows is still an open issue, but probably easily solved: https://github.com/serge-sans-paille/pythran/issues/1964 just give it a few days for a response to come... otherwise, non-parallel PYDs should be fine.

Yep this issue still exists on Windows 10 - I've tried many versions using both Intel MKL and OpenBLAS.  I will only post the MKL errors as they are much simpler.  Clang-cl explodes with errors on OpenBLAS (file is attached but way too many errors to troubleshoot really):
Windows 10 Intel MKL:
error LNK2001: unresolved external symbol cblas_dgemm
Windows 10 OpenBLAS:
dot_errors_OpenBLAS.txt
The file is very simple:
#pythran export dot(float64[:,:],float64[:,:])
import numpy as np
def dot(a,b):
return np.dot(a,b)
With some fake inputs:
Was curious if there is some alternative way of doing the dot product in Pythran without using numpy.dot...  I don't see an implementation of matmult or


Uncaught TypeError: Cannot read property 'tiles' of undefined

[Enter steps to reproduce:]

Launch Atom (empty projects also trigger this error)

Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.10.3
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'tiles' of undefined
At /Applications/Atom.app/Contents/Resources/app.asar/src/line-numbers-tile-component.js:43

TypeError: Cannot read property 'tiles' of undefined
    at LineNumbersTileComponent.module.exports.LineNumbersTileComponent.updateSync (/app.asar/src/line-numbers-tile-component.js:43:40)
    at LineNumberGutterComponent.module.exports.TiledComponent.updateTileNodes (/app.asar/src/tiled-component.js:55:19)
    at LineNumberGutterComponent.module.exports.TiledComponent.updateSync (/app.asar/src/tiled-component.js:18:12)
    at GutterContainerComponent.module.exports.GutterContainerComponent.updateSync (/app.asar/src/gutter-container-component.js:79:25)
    at TextEditorComponent.module.exports.TextEditorComponent.updateSync (/app.asar/src/text-editor-component.js:235:39)
    at /app.asar/src/text-editor-component.js:323:28
    at ViewRegistry.module.exports.ViewRegistry.performDocumentUpdate (/app.asar/src/view-registry.js:219:9)
    at /app.asar/src/view-registry.js:3:59

Commands

Non-Core Packages
atom-material-syntax 1.0.2
atom-material-syntax-dark 0.2.7
atom-material-ui 1.3.9
emmet 2.4.3

Thanks for the report!  Can you confirm if the error is reproducible and if so, is it reproducible in safe mode (atom --safe)?

The error occurs every time I launch Atom. It also occurs in safe mode.

Do you happen to remember if anything interesting/weird happened before Atom starting throwing this error?   Or did it seem to just start happening at some point recently?

It started happening at some point. It has been a couple of weeks since the issue last occured, so it is no longer an issue on my end.

Thanks for letting us know, glad you're not seeing this anymore - we'll go ahead and close for now but if you see it again and can reproduce, please let us know :v:


Release anytime soon?

Looks like there have been some minor (but important) updates to this repo, but no releases. Would love to see a release that includes the bump in Angular version support!

:+1:

Good thinking -- I just released v1.0.1.

Thanks!

Excellent, thanks!


Several fixes for consolidate functionality

Contains:

safe txes list persistence (wallet can be reloaded or rescaned, it doesn't interact with curent safe txes)
generate_blocks daemon api call for easy debug (it is similar to start_mining call but generates only guiven blocks number and stops mining)
correct processing of the deleted consolidate tx (consolidate height is set to previous value)

Please keep in mind that followings are the wallet features needing additional coding:

rescan - recheck the cache after rescan and drop invalid entries.

rescan/purge & safe(consolidate & optimize) - if safe tx is dropped after rescan, the consolidate height cache data shall be also be removed (in case the called consolidate tx was the first time) or goes back to previous consolidate height that actually worked.

@Xecute0101 ,  cache is recreated from the scratch already during rescan, so I don't change this part.

Consolidate tx comes into balance after 1 confirmation.
Canceled tx returns to balance successfully.
When the wallet is imported freshly, the balance that was made available from 1 confirmation goes back to a locked amount. However, this does not need a fix because, in case of secret key theft, this gives protection to the original wallet holder a window of 10 blocks to transfer the fund to another wallet.

This could work the other way around but the original file is protected with a password, so unless the password is cracked within 10 block windows, the account holder still can protect the asset.


macOS 10.13 Issue

I'm using your framework in a project running on the 10.13 beta and while it sends x-callbacks without a problem to an installed app (Ulysses, a writing program that has great x-callback support), I don't receive the callback. It's like my registration is ignored.
There's not much code...
The Ulysses App Client:
import Cocoa
import os.log
import CallbackURLKit

public class UlyssesClient: Client {

    var ulyssesAuthSuccess = ""
    var ulyssesAuthError = ""
    var ulyssesScheme = "ulysses"

    init() {
        super.init(urlScheme:"ulysses")
        ulyssesAuthSuccess = "fictivity://x-callback-url/auth-success"//.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)!
        ulyssesAuthError = "fictivity://x-callback-url/auth-error"//.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)!
        //os_log("%@", ulyssesURLString)

        CallbackURLKit.register(action: "auth-success") { parameters, success, failure, cancel in
            os_log("auth-success")
            for parameter in parameters {
                os_log("%@ = %@", parameter.key, parameter.value)
            }
        }

        CallbackURLKit.register(action: "auth-error") { parameters, success, failure, cancel in
            os_log("auth-error")
            for parameter in parameters {
                os_log("%@ = %@", parameter.key, parameter.value)
            }
        }
    }

    func authorize(onSuccess: SuccessCallback? = nil, onFailure: FailureCallback? = nil, onCancel: CancelCallback? = nil) throws {
        try self.perform(action: "authorize", parameters: ["appname": "Fictivity", "x-success": ulyssesAuthSuccess, "x-error": ulyssesAuthError], onSuccess: onSuccess, onFailure: onFailure, onCancel: onCancel)
    }
}

In AppDelegate:
func applicationDidFinishLaunching(_ aNotification: Notification) {
         let manager =  Manager.shared
        manager.callbackURLScheme = Manager.urlSchemes?.first
        Manager.shared.registerToURLEvent()
    }

I did try changing the url scheme name, and confirmed that Ulysses give an error that there isn't any support for that url scheme. So, Ulysses is replying, the reply is just not propagating.
Any ideas?

Before I test myself when I have time did you try on Sierra? so this is a real macOS 10.13 Issue

I made a client class
https://github.com/phimage/CallbackURLKit/blob/master/Clients/Ulysses.swift
I tested it in demo app
https://github.com/phimage/CallbackURLKit/blob/master/SampleApp/CallbackURLKitDemo/ViewController.swift

Thank you! Your excellent example code popped the error immediately: .callbackURLSchemeNotDefined. The main storyboard's Application did not have the AppDelegate attached, so the registration was not getting called.
Please forgive my hasty code prior. I came to your library after failing to get urls directly testing 10.13. But it's such a nice library that I think I'll use it. Would you like a pull request when I finish the full client for Ulysses?
Either way, thank you for your time and effort.

@Radagan yes a pull request is welcome. I will add you to credit.
Ulysses is good example, well documented


Screenshots

Please share beautiful screenshots below 🙇♂
This repository is still WIP 🚧 feel free to suggest other visualizations (and visualization libraries) for this project 🤝

WIP screenshot for the repository:

Thanks for this project, very helpful for refactoring!
Here are two suggestions:

Add a toggle to switch whether to combine same function names.
For asynchronous call (e.g. setTimeout(() => foo())), replace the solid line with a dotted line.

So cool! Thank you for the screenshot!
I'm surprised there are so many duplicates 🤔 -- for example I see unTrackingGetter is called many times -- I would have expected it to show up once! I feel like this is a bug in my code -- I don't think we need to have a toggle to show duplicates ever. I'll see if I can replicate on my end.
I like your idea about some indication of async functions (a dotted line sounds like a great way to do it).
I'm open to any PRs -- I've been focusing more on my Video Hub App these days 😅

I think this is not an error. I did call it multiple times, but I aimed to check the dependency of the function, so it would be helpful to provide the option to merge the same function.
I still have a lot of work in progress. If I have time, I will try to solve the problem that functions of the same name in different scripts will be regarded as the same function. :)


Added watchOS 2 target.

Added watchOS 2 target for Bolts. Same framework name and everything, but deployment and SDK is set to watchOS 2.
Please note - we are still distributing this as static framework, since we don't want to pollute the device with extra code.
Implements first part of #157

Implements first part of #157


Can not read system configuration data?

HI there,
Just like title , it's not possible to read robot system configuration data? can not find interface function.

Hi @ScottYang1982,
The RWSClient class has the getConfigurationInstances method for reading configurations, though the return value will contain the configurations in XML format.
The RWSInterface class doesn't currently expose any support methods to parse the returned XML format.
I have implemented parsing, for certain configuration topics and types, in my fork. For example, see the getCFGArms method for configuration topic Motion and type Arm.

Hi @jontje,
Thanks a lot , that's very helpful!

Closing as it seems the reported issue has been resolved.


New Bedford sections: Update paths for new exports

Working towards sections and section-based authorizations for New Bedford MS folks.

selfie


Feature/add support for negation operator

This PR adds support for the negation operator. It only supports negative ranges for now.
To do so, I proceeded as follows: for a given negative range [a, b], the allowed range is: [0, a - 1] U [b + 1, max_ord].
I set the max_ord to 0xFF but I think it's better to support unicode chars too. But if I set it to 0xFFFF, it will be the same value as the END_OF_GRAMMAR_MARKER constant. So maybe the best thing is to set END_OF_GRAMMAR_MARKER to 0xFFFFF?

@nathanrchn Could you add a unit test for this feature in the tests/ folder?
P.S. If I didn’t mention it before, running pre-commit install(only once ) will automatically run all test cases whenver you try to make a commit and perform a series of sanity check. It will help you to spot some hidden issues from refactoring :)


Introduce CFGRescaleFactorSingleton class

This allows other extensions and scripts to get and use the CFG rescale factor: from lib_neutral_prompt.cfg_denoiser_hijack import CFGRescaleFactorSingleton current_rescale_factor = CFGRescaleFactorSingleton.get_cfg_rescale_factor()
My particular use case involves setting self-attention guidance scale per denoising step from the cfg_rescale_factor

see #48, I implemented it in a way that should be usable by any script no matter whether they run before or after neutral prompt.

Sorry, I could have explained my use-case better. My goal isn't to export the quantity φ or control it from another extension, although that is a welcome feature for sure (adetailer integration comes to mind).
I want to export the quantity which captures how much the cfg-rescaled guidance differs from the guidance before rescaling and use this quantity within other extensions to dynamically schedule other types of guidance. One application is research into the effects of generalized adaptive guidance mechanisms.
A better implementation might look like a guidance stats module in neutral prompt that makes torch.std(cond) and torch.std(cfg_cond) observable. Would you consider something like this?

Sure, we can do this. I suggest we replace the torch.std calls with a custom function that takes as input the two conds and the current sampling step number so external code has a way to know where we are, and then implement it as torch.std / torch.std by default if no special function is defined for that step.
Would this solution cover your use case?

Is there a reason you want the extension to do this btw? It may be better to implement this in another extension. If this is not possible or may lead to issues for some reason, we can implement it here.

I'm closing this for now, but please leave a comment if there is still an unmet need that requires a change in the repo and we can find a way to make this work.


Include sheets by RegEx?

What do you think of this feature? Sometimes I have sheets that I prefix with a _ that are internal. Or, you could only include final sheets with some other naming convention.
I'm finally getting around to adding xlsx reading to indian ocean and was thinking of adding that ability to also be consistent with that lib's other include/exclude api.
It adds the complexity of:

You can have an array of strings or RegExs
If you have multiple include and exclude conditions, do you handle them as ANDs, ORs or give the user the option? Having them be ORs seems easiest and most consistent with what a user would want.

Hey @mhkeller!
node-copytext is in pretty serious need of a re-write/clean-up, so what I'm thinking is we could probably add the ability to pass in your own include or exclude function that gets used (right now it's just a filter emulating Array.includes) so users can go wild with whatever filtering logic they want. I'd prefer to try and keep it simple inside the library if possible! Then you could use Regex, globs, etc., anything that can act on an array of strings.
Re: 2 — I think it'd probably be best to either make it impossible to pass both (which is currently how it works) or to just guarantee that include will always be followed by exclude. I've seen a few glob libraries work this way and I think it's the only way to ensure sanity.


Move knative dependencies to HEAD.

To get the huge diff out of the way when actually doing fixes.

One question, but otherwise lgtm assuming the tests pass :)


Sandbox examples not working

Hey, the Sandbox examples are not working.

They should be working now

Still getting 404 not found: https://react-charts.tanstack.com/examples/line


Added ult-tunisie

Added a new university ult-tunisie.com

@ATF19 Pull request merged. Thank you!


(docs) remove outdated reference to SharedMap.wait()

Description
SharedMap.wait() is no longer available on the current version of SharedMap or AttributableMap, but it's still referenced in the documentation, which is confusing for app developers. This PR removes the mentions of SharedMap.wait() from the SharedMap and AttributableMap docs.

Just rebased onto latest main, @ChumpChief could you please merge this when you have a chance? :)

Just rebased onto latest main, @ChumpChief could you please merge this when you have a chance? :)

Merged, thank you! :)


⚠ Samsung has degraded performance

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

HTTP code: 200
Response time: 2749 ms

Resolved: Samsung performance has improved in f9dcafc.


Improve Repo page detection across the board

Fixes #783 again
I decided to put the check in getRepoPath because this function kinda implies that it only gets a repo's path, not blindly get whatever happens to be 2 dirs deep.

@bfred-it tested it looks good! thanks

No worries, thank you for reporting these issues! We don't have a tab-handler.js file though, not our bug.

@bfred-it oops looks like I copied the wrong error
chrome-extension://ecnglinljpjkbgmdpeiglonddahpbkeb/content-script.js:37 Uncaught TypeError: Cannot read property 'parentElement' of null
    at removeElement (chrome-extension://ecnglinljpjkbgmdpeiglonddahpbkeb/content-script.js:37)
    at TabHandler._onTabLeave (chrome-extension://ecnglinljpjkbgmdpeiglonddahpbkeb/content-script.js:226)
    at HTMLBodyElement.document.body.addEventListener.e (chrome-extension://ecnglinljpjkbgmdpeiglonddahpbkeb/content-script.js:201)

Still not our file :D

Our extension ID is hlepfoohegkhhmjieoechaddaejaokhf
To help you remember it: it starts with help fool: hlepfooheg...


RewriteTest validation fails on a DeclarativeRecipe calling an imperative recipe with no arguments

What version of OpenRewrite are you using?
I am using

OpenRewrite v8.1.8

What is the smallest, simplest way to reproduce the problem?
import org.junit.jupiter.api.Test;
import org.openrewrite.config.Environment;
import org.openrewrite.config.YamlResourceLoader;
import org.openrewrite.properties.Assertions;
import org.openrewrite.test.RewriteTest;

import java.io.ByteArrayInputStream;
import java.net.URI;
import java.util.Properties;

public class BugTest implements RewriteTest {
    @Test   // fails!
    void instantiateYamlRecipeReferencingImperativeRecipeWithoutArguments() {
        rewriteRun(
                spec -> spec.recipe(new ByteArrayInputStream(
                        """
                        ---
                        type: specs.openrewrite.org/v1beta/recipe
                        name: test.recipe
                        displayName: Test Recipe
                        recipeList:
                          - org.openrewrite.maven.RemoveRedundantDependencyVersions
                        """
                .getBytes()), "test.recipe"),
                Assertions.properties(""));
    }

    @Test    // success
    void instantiateYamlRecipeReferencingImperativeRecipeWithArguments() {
        rewriteRun(
                spec -> spec.recipe(new ByteArrayInputStream(
                        """
                        ---
                        type: specs.openrewrite.org/v1beta/recipe
                        name: test.recipe
                        displayName: Test Recipe
                        recipeList:
                          - org.openrewrite.maven.RemoveRedundantDependencyVersions:
                              junk: junk
                        """
                                .getBytes()), "test.recipe"),
                Assertions.properties(""));
    }

    @Test    // success
    void workaround() {
        rewriteRun(
                spec -> spec.recipe(Environment.builder()
                        .load(new YamlResourceLoader(new ByteArrayInputStream(
                                """
                                ---
                                type: specs.openrewrite.org/v1beta/recipe
                                name: org.openrewrite.maven.RemoveRedundantDependencyVersions
                                displayName: workaround
                                recipeList:
                                  - org.openrewrite.maven.RemoveRedundantDependencyVersions:
                                      junk: junk
                                """
                                        .getBytes()), URI.create("rewrite.yml"), new Properties()))
                        .load(new YamlResourceLoader(new ByteArrayInputStream(
                                """
                                ---
                                type: specs.openrewrite.org/v1beta/recipe
                                name: test.recipe
                                displayName: Test Recipe
                                recipeList:
                                  - org.openrewrite.maven.RemoveRedundantDependencyVersions
                                """
                                        .getBytes()), URI.create("rewrite.yml"), new Properties()))
                        .build()
                        .activateRecipes("test.recipe")),
                Assertions.properties(""));
    }
}

What did you expect to see?
All success
What did you see instead?
The first test case fails
What is the full stack trace of any errors you encountered?
java.lang.AssertionError: [Recipe validation must have no failures]
Expecting no elements of:
  [[Valid{property='initialization', value='org.openrewrite.config.DeclarativeRecipe@cf05ce89'},
    Invalid{property='test.recipe.recipeList[0] (in rewrite.yml)', value='org.openrewrite.maven.RemoveRedundantDependencyVersions', message='recipe 'org.openrewrite.maven.RemoveRedundantDependencyVersions' does not exist.'},
    Valid{property='initialization', value='org.openrewrite.config.DeclarativeRecipe@cf05ce89'},
    Invalid{property='test.recipe.recipeList[0] (in rewrite.yml)', value='org.openrewrite.maven.RemoveRedundantDependencyVersions', message='recipe 'org.openrewrite.maven.RemoveRedundantDependencyVersions' does not exist.'}],
    [Valid{property='initialization', value='org.openrewrite.config.DeclarativeRecipe@cf05ce89'},
    Invalid{property='test.recipe.recipeList[0] (in rewrite.yml)', value='org.openrewrite.maven.RemoveRedundantDependencyVersions', message='recipe 'org.openrewrite.maven.RemoveRedundantDependencyVersions' does not exist.'}]]
to match given predicate but this element did:
  [Valid{property='initialization', value='org.openrewrite.config.DeclarativeRecipe@cf05ce89'},
    Invalid{property='test.recipe.recipeList[0] (in rewrite.yml)', value='org.openrewrite.maven.RemoveRedundantDependencyVersions', message='recipe 'org.openrewrite.maven.RemoveRedundantDependencyVersions' does not exist.'},
    Valid{property='initialization', value='org.openrewrite.config.DeclarativeRecipe@cf05ce89'},
    Invalid{property='test.recipe.recipeList[0] (in rewrite.yml)', value='org.openrewrite.maven.RemoveRedundantDependencyVersions', message='recipe 'org.openrewrite.maven.RemoveRedundantDependencyVersions' does not exist.'}]

Are you interested in contributing a fix to OpenRewrite?
I think for this one, y'all would fix it better/faster

I think this might be related to the changes made in #3389? @sambsnyd
You can see a "real" example of this if you try to instantiate the Java11to17 recipe from rewrite-migrate-java in a RewriteTest case, since it references org.openrewrite.github.SetupJavaUpgradeJavaVersion without any arguments.
The workaround in my third test case seems effective, but hacky.

I don't think this is affecting recipes validated outside RewriteTest (eg when running via OSS plugin), but I'm not sure why they'd be different so no promises.

Thanks for letting me know about this, @nmck257. If anything all of the above test cases should have failed because that overload of RecipeSpec.recipe was not configured to search the runtime classpath for anything. Doing so is slow for a unit test (~5s), so I can see why it was skipped originally. If your tests had been set up such that the recipe would be expected to make a change I think you would have seen no change made because the imperative recipe wasn't loaded for any of them. Not sure why having a garbage property hid the error, though

Hmm... I'm not sure this is the full picture. I've had test cases using the Environment-load-yamlresourceloader sequence without scanning the runtime class path for many versions, and never had the issue described here until moving from bom 2.0.5 to 2.0.7. I assume that YamlResourceLoader just grabs the current class loader (which would have any imperative recipes on the class path already) if you don't specify one.
In my examples, I used the spec.recipe(input stream, string) overload just to show the relevant yamls inline; I don't think the problem is specific to that overload.
But, I'm away from my computer for the week, so not sure. Can pick it back up later


Can't build the binary

Hi,
I have this error when trying to build the binary
go build ./cmd/wallet-tracker/main.go
blockchain@v0.0.0-20220620185937-21a9b2b93ba8/address.go:145:9: c.loadETHResponse undefined (type *Client has no field or method loadETHResponse)
blockchain@v0.0.0-20220620185937-21a9b2b93ba8/address.go:156:9: c.loadETHResponse undefined (type *Client has no field or method loadETHResponse)

Also there is an error in go.mod which is module github.com/aydinnyunus/wallet-tracker-cli
Th repo walltet-tracker-cli doesn't exist

You are right. I fixed the issue can you please recheck ?

Well now it's worse
 go install -v github.com/aydinnyunus/wallet-tracker/cmd/wallet-tracker@latest
go: downloading github.com/aydinnyunus/wallet-tracker v1.0.2
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands
/usr/local/pkg/mod/github.com/aydinnyunus/wallet-tracker@v1.0.2/cmd/wallet-tracker/main.go:8:2: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found

also when I do go mod tidy I get bunch of errors
go: downloading github.com/aydinnyunus/blockchain v0.0.0-20220623151650-647ebea78f3b
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/domain/cli
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/tracker
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/neodash
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/redis
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/domain/repository
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/repository
go: finding module for package github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands
github.com/aydinnyunus/wallet-tracker/cli/command/commands imports
	github.com/aydinnyunus/wallet-tracker-cli/cli/command/neodash: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/neodash: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/neodash: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cli/command/commands imports
	github.com/aydinnyunus/wallet-tracker-cli/cli/command/redis: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/redis: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/redis: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cli/command/commands imports
	github.com/aydinnyunus/wallet-tracker-cli/cli/command/tracker: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/tracker: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/tracker: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cli/command/neodash imports
	github.com/aydinnyunus/wallet-tracker-cli/domain/cli: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/domain/cli: module github.com/aydinnyunus/wallet-tracker-cli/domain/cli: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cli/command/neodash imports
	github.com/aydinnyunus/wallet-tracker-cli/domain/repository: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/domain/repository: module github.com/aydinnyunus/wallet-tracker-cli/domain/repository: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cli/command/redis imports
	github.com/aydinnyunus/wallet-tracker-cli/cli/command/repository: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/repository: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/repository: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found
github.com/aydinnyunus/wallet-tracker/cmd/wallet-tracker imports
	github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands: cannot find module providing package github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands: module github.com/aydinnyunus/wallet-tracker-cli/cli/command/commands: git ls-remote -q origin in /usr/local/pkg/mod/cache/vcs/6b932cd6e383ff6c4fc4bc0faaa7791fe568e31f3bb0846f836cd3409a7d8a9e: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/aydinnyunus/wallet-tracker-cli/' not found

It seems there is conflicts in modules, and it keep fetching wallet-tracker-cli

@jJit0 I did not get any error. Can you try go clean -modcache before using go install .. command

Works much better by doing go clean -modcache before installing
Thanks :smile:


Seed support for providers

@sobolevn Did you not add support for seed?

@duckyou We have already added support of seed. There no need copy seed to all providers, because it's can be defined in BaseProvider which is the superclass for all data providers.
@sobolevn Correct me if I'm wrong.

@lk-geimfari I'll try to explain why I did so

@duckyou We have already added support of seed. There no need copy seed to all providers, because it's can be defined in BaseProvider which is the superclass for all data providers.

... but some child provider didn't use inherited random.  For example:
>>> from mimesis import Address
>>> a = Address(seed=42)
>>> a.postal_code()
'59080'
>>> a.postal_code()
'49715'
>>> a.postal_code()
'19811'
>>> a = Address(seed=42)
>>> a.postal_code()
'57034'
>>> a.postal_code()
'75790'

because postal_code call external function custom_code, where used new random object.
First commint https://github.com/lk-geimfari/mimesis/pull/324/commits/a759f17012cbb1365235cf72205596784ee826e8 fixed it.
Then i just write tests and fixes for pop-up issues :innocent:

I can't merge this until because there are too changes.

Yeah... sorry for that. I should have firstly create issue post :worried:

@duckyou  I understand that you have done a big job, but first, we need to try the method I described earlier, i.e moving custom_code to BaseProvider.
Also seems like you have found a bug in our code and seed is really does not work.
I have created issue #325.


Allow users to customize _.iteratee

This fix was originally proposed by @jridgewell in #1965 but it was unable to gain consensus since his approach added an additional layer of abstraction to which @akre54 objected. I've refactored @jridgewell's approach to avoid that abstraction.
This PR was motivated by a renewed interest in customizable shorthand syntaxes such as the RegEx syntax proposed in #2475.
If this approach looks good to people, I can look into more robusts tests and documentation.

Coverage increased (+0.008%) to 96.875% when pulling 5117d0fde7e88a34b52a35a49c36821d3ecad606 on captbaritone:iteratee into 6a2c2ee882dd20dd9411275f7e6a1c9831318621 on jashkenas:master.

Coverage increased (+0.008%) to 96.875% when pulling 5efa51ebda047dc4aef8f3680ec31e42159e41d7 on captbaritone:iteratee into 6a2c2ee882dd20dd9411275f7e6a1c9831318621 on jashkenas:master.

FYI tests seem to be failing for an unrelated reason:

This is most likely a problem with the phantomjs-prebuilt package, not with npm itself.

Kicked the test build, it should pass. This LGTM.

@jridgewell Tests now passing. Would you like to wait on improved tests and documentation, or merge now and trust that I'll followup with test/doc PR(s)?

I'm going to leave that up to @akre54.

Sounds good. It might be worth merging this on it's own, since the testing/documentation approaches may need their own, narrowly scoped, debate.

:+1:

Coverage increased (+0.1%) to 96.875% when pulling b0b9c210a05c4023da9d1dd8368347728b7fc6c3 on captbaritone:iteratee into 7d07d80ba8f4b1c8e2da13379cdb3886a8fca4c1 on jashkenas:master.

Coverage increased (+0.1%) to 96.875% when pulling b51863962a5d9246bb054106d3bf94f2d5e75929 on captbaritone:iteratee into 7d07d80ba8f4b1c8e2da13379cdb3886a8fca4c1 on jashkenas:master.

I did some work on testing last night, and uncovered something interesting. There are a number of places where we depend upon cb() returning a function if you pass it a function.
If the user were to define an _.iteratee that did not property handle functions, it would break many Underscore methods.
I see two possible solutions to this problem:

Document this requirement as part of the "you may customize _.iteratee" documentation.
Move the _.isFunction test to the top of cb(), before we consider deferring to the user's _.iteratee.

Thoughts?

I'd go for 2, maybe with a test-case added. Should be better perf-wise, as I'm not sure customizing _.iteratee will be quite common.

@captbaritone: Can you change all optimizeCb to cb? That way everything can be overridden with custom _.iteratee. Looks like it's just _.each, _.reduce/reduceRight and _.pick.

There are a number of places where we depend upon cb() returning a function if you pass it a function.

Isn't that the contract for _.iteratee? It returns a function. I wouldn't worry about them doing something stupid with it.

@jridgewell Can we consider expanding the number of methods that transform through _.iteratee in a separate issue/PR? There are a few subtleties to discuss which I think might bog us down.
I think this change can stand alone as an improvement.

@akre54 I think we're waiting on your thoughts.

Good with me.

I think practically not a ton of people are going to use this, so I'm +0. That said, this implementation looks good. Can we add at least a few more baseline tests and then looks good to merge for me.

Coverage increased (+0.1%) to 96.863% when pulling f04536898b2692039f71dbf41b9c7dc0d89e4401 on captbaritone:iteratee into 7d07d80ba8f4b1c8e2da13379cdb3886a8fca4c1 on jashkenas:master.

@akre54 Added as a second commit with more robust tests. It sets up a custom _.iteratee and uses it with each of the methods that transform through _.iteratee.

lgtm

:clap: Thanks everyone. I'll look at adding some documentation in the next few days.


tap: permit creating shallow taps

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

This will help speed up continuous integration runs when we really don't need a full clone but want to use the brew tap logic instead of e.g., actions/checkout@v2. This will also slightly speed up our self-hosted runner upgrades when installing casks.
See:

https://discourse.brew.sh/t/force-shallow-tap/7367
https://github.com/Homebrew/brew/pull/6991
https://github.com/Homebrew/brew/pull/7004

Thanks for the feedback! Merging now so I can watch for problems on workflows today.

Awesome, @jonchang! and thanks!

@jonchang I'm seeing output that seems to indicate that a shallow tap is being "unshallowed" during the tapping process.
Running on github Actions Ubuntu.
/home/runner/Homebrew/bin/brew tap --shallow homebrew/core
[/snipped output of fetching portable ruby]
Updating Homebrew...
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics have been recorded yet (or will be during this `brew` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/home/runner/Homebrew/Library/Taps/homebrew/homebrew-core'...
Tapped 2 commands and 5017 formulae (5,287 files, 13.9MB).
==> Unshallowing homebrew/core

workflow run: https://github.com/jasonkarns/setup-homebrew/runs/616411411?check_suite_focus=true
It's that final "unshallowing" that has me questioning what's going on. Thoughts? Should this be opened as a potential bug?

Can you open a new issue with a reproducible example in e.g., a Docker container?


[Done] Translating internals FAQ

Hi @maskeddeveloper, It's has been added here #114. I changed the status of the page to be available yesterday. Sorry for not notifying you about it 💔.


Low level api client

Closes #462.

Codecov Report

Merging #463 (7e8ca5c) into shared-threadpools (04df124) will decrease coverage by 0.79%.
The diff coverage is 78.31%.

@@                  Coverage Diff                   @@
##           shared-threadpools     #463      +/-   ##
======================================================
- Coverage               83.54%   82.74%   -0.80%
======================================================
  Files                      17       24       +7
  Lines                    2650     3020     +370
======================================================
+ Hits                     2214     2499     +285
- Misses                    436      521      +85

Impacted Files
Coverage Δ

dwave/cloud/testing/__init__.py
100.00% <ø> (ø)

dwave/cloud/api/resources.py
38.09% <38.09%> (ø)

dwave/cloud/api/client.py
83.67% <83.67%> (ø)

dwave/cloud/api/models.py
95.12% <95.12%> (ø)

dwave/cloud/api/__init__.py
100.00% <100.00%> (ø)

dwave/cloud/api/constants.py
100.00% <100.00%> (ø)

dwave/cloud/api/exceptions.py
100.00% <100.00%> (ø)

dwave/cloud/exceptions.py
100.00% <100.00%> (ø)

dwave/cloud/testing/mocks.py
100.00% <100.00%> (ø)

... and 6 more

Continue to review full report at Codecov.

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

Codecov Report

Merging #463 (7e8ca5c) into shared-threadpools (04df124) will decrease coverage by 0.79%.
The diff coverage is 78.31%.

@@                  Coverage Diff                   @@
##           shared-threadpools     #463      +/-   ##
======================================================
- Coverage               83.54%   82.74%   -0.80%
======================================================
  Files                      17       24       +7
  Lines                    2650     3020     +370
======================================================
+ Hits                     2214     2499     +285
- Misses                    436      521      +85

Impacted Files
Coverage Δ

dwave/cloud/testing/__init__.py
100.00% <ø> (ø)

dwave/cloud/api/resources.py
38.09% <38.09%> (ø)

dwave/cloud/api/client.py
83.67% <83.67%> (ø)

dwave/cloud/api/models.py
95.12% <95.12%> (ø)

dwave/cloud/api/__init__.py
100.00% <100.00%> (ø)

dwave/cloud/api/constants.py
100.00% <100.00%> (ø)

dwave/cloud/api/exceptions.py
100.00% <100.00%> (ø)

dwave/cloud/exceptions.py
100.00% <100.00%> (ø)

dwave/cloud/testing/mocks.py
100.00% <100.00%> (ø)

... and 6 more

Continue to review full report at Codecov.

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


Switch Between SOQL Builder and Text Editor button dissapeared

OS and version: Microsoft Windows [Version 10.0.22631.4112]
VS Code Version:
Version: 1.93.0 (user setup)
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631
SFDX CLI Version: @salesforce/cli/2.57.7 win32-x64 node-v18.16.0
Summary
The button to switch from text view to SOQL Builder has disappeared from the GUI. I can still select to open the .soql file via the SOQL Builder or the Text Editor, but there is no button for it anymore.
Steps To Reproduce:

Open an existing or a new SFDX project
Create a new or Open an existing soql file
Observe that the switch editors icon is missing

Expected result
There should be a button for switching between the SOQL Builder and the text editor
Actual result
There is no button, and only switching via the context menu is available (right click->"Open With..."->...)
Additional information
Text Editor view

SOQL Builder view

Thanks, this seems to fix my issue. Strange, I've never changed the settings for this.

A PR to set the file association by default has been created: https://github.com/forcedotcom/code-builder-images/pull/471


Stable_diffusion_unet out of memory on XPU

🐛 Describe the bug
torchbench_float32_training
xpu  train stable_diffusion_unet
Traceback (most recent call last):
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/common.py", line 2294, in validate_model
self.model_iter_fn(model, example_inputs)
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/torchbench.py", line 456, in forward_and_backward_pass
pred = mod(*cloned_inputs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1566, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1575, in _call_impl
return forward_call(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/unet_2d_condition.py", line 985, in forward
sample = upsample_block(
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1566, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1575, in _call_impl
return forward_call(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py", line 2187, in forward
hidden_states = attn(
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1566, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1575, in _call_impl
return forward_call(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/transformer_2d.py", line 309, in forward
hidden_states = block(
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1566, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1575, in _call_impl
return forward_call(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/attention.py", line 194, in forward
attn_output = self.attn1(
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1566, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1575, in _call_impl
return forward_call(*args, **kwargs)
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/attention_processor.py", line 322, in forward
return self.processor(
File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/models/attention_processor.py", line 1117, in call
hidden_states = F.scaled_dot_product_attention(
RuntimeError: XPU out of memory, please use empty_cache to release all unoccupied cached memory.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/common.py", line 4177, in run
) = runner.load_model(
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/torchbench.py", line 380, in load_model
self.validate_model(model, example_inputs)
File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/common.py", line 2296, in validate_model
raise RuntimeError("Eager run failed") from e
RuntimeError: Eager run failed
eager_fail_to_run
loading model: 0it [00:00, ?it/s]
loading model: 0it [01:21, ?it/s]
Versions
torch-xpu-ops: https://github.com/intel/torch-xpu-ops/commit/31c400195d63064940242220dc9100322d36bac4
pytorch: 0f81473d7b4a1bf09246410712df22541be7caf3 + PRs: 127277,129120
device: PVC 1100, 803.61, 0.5.1

This model is "pass_due_to_skip" in cuda due to too large size. We need to make sure it has the same behaviour on xpu with fp32.

@retonym @mengfei25 may I know the latest status of this model on XPU？

In the latest weekly test, Stable_diffusion_unet model is not loaded during env issue.
Traceback (most recent call last):
  File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/common.py", line 4813, in run
    ) = runner.load_model(
  File "/home/sdp/actions-runner/_work/torch-xpu-ops/pytorch/benchmarks/dynamo/torchbench.py", line 243, in load_model
    module = importlib.import_module(c)
  File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/sdp/actions-runner/_work/torch-xpu-ops/benchmark/torchbenchmark/models/stable_diffusion_unet/__init__.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
  File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/__init__.py", line 3, in <module>
    from .configuration_utils import ConfigMixin
  File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 34, in <module>
    from .utils import (
  File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/utils/__init__.py", line 37, in <module>
    from .dynamic_modules_utils import get_class_from_dynamic_module
  File "/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/diffusers/utils/dynamic_modules_utils.py", line 28, in <module>
    from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/sdp/miniforge3/envs/e2e_ci/lib/python3.10/site-packages/huggingface_hub/__init__.py)

fixed import name 'cached_download' from 'huggingface_hub' in https://github.com/intel/torch-xpu-ops/pull/1218


$connection->startTransaction() calls should now be placed within the try block

https://www.drupal.org/node/3318042
Introduced in branch/version: 9.5.x / 9.5.0
Because Drupal's SQLite database driver now acquires a write lock immediately when it begins a transaction, it is possible for the ->startTransaction() call itself to throw an exception if that lock can't be acquired within the timeout defined by PDO::ATTR_TIMEOUT.
Because of this, all of Drupal core's calls to ->startTransaction() have been moved to be inside the try block, and it is recommended for contrib modules that call ->startTransaction() to do the same.
Before:
$transaction = $connection->startTransaction();
try {
  // Execute queries.
  ...
}
catch (\Exception $e) {
  $transaction->rollBack();
// Do something with the exception, such as log it and rethrow it.
...
}
After:
try {
  $transaction = $connection->startTransaction();

  // Execute queries.
  ...
}
catch (\Exception $e) {
  if (isset($transaction)) {
    $transaction->rollBack();
  }

  // Do something with the exception, such as log it and rethrow it.
  ...
}

As shown above, when moving the $transaction = $connection->startTransaction(); to inside the try block, the $transaction->rollBack(); statement in the catch block must be wrapped inside an if (isset($transaction)) block.
It's not necessarily too problematic if some modules don't move their $transaction = $connection->startTransaction(); statements into the try block. It would just mean that if an exception were thrown there, then the catch block wouldn't run, so if that catch block does something helpful like log that exception, then that helpful thing would not happen for the case that ->startTransaction() itself throws the exception.

This is in their blogpost how you could do this: https://phpstan.org/blog/preprocessing-ast-for-custom-rules
Add a visitor that tracks when it enters a try, then the check is pretty easy to know if startTransaction is within such a block


UI should look like a simple text editor

Google Docs really does the word processing UI right. The UI for code printer should look similar, with different (monospace only) fonts, font sizes, and color highlighting choices.

I've decided to make the program look more like a text editor in the browser instead. Done as of 7c01876b556f63f6286ad51ddf891eee84a66af7.


FIX-changing-kill-text

If our task status is success we will have the message:
Unable to ensure that task r7wq2mwm551zqxdgp62nmfvjq transitioned to the KILLED state after 5 seconds. The status of the task is success

immediately. So it does not make sense to have "after 5 seconds".

If our task status is success we will have the message:
Unable to ensure that task r7wq2mwm551zqxdgp62nmfvjq transitioned to the KILLED state after 5 seconds. The status of the task is success

immediately. So it does not make sense to have "after 5 seconds".

Do you mean if the task finished in between and reached any terminal status?

If our task status is success we will have the message:
Unable to ensure that task r7wq2mwm551zqxdgp62nmfvjq transitioned to the KILLED state after 5 seconds. The status of the task is success

immediately. So it does not make sense to have "after 5 seconds".

Do you mean if the task finished in between and reached any terminal status?

Yes, if the task leaves pending kill to any state other than killed we will get that message, even if the time has not passed.

QA
When status = models.TaskStatusCode.PENDINGKILL:

When status = models.TaskStatusCode.KILLED

When status = models.TaskStatusCode.EXECUTERTERMINATEDBYUSER or ZOMBIE:


[Bug]: email_verified is always undefined in lucia even if its 1 in my sqlite database

Package
lucia
Describe the bug
clone this repo & switch to sqlite branch to see the error -> https://github.com/deadcoder0904/next-13-lucia-auth-drizzle-turso-sqlite-magic-link/tree/sqlite
i have tried lucia v3 in 2 different projects. the above one using email otp code & another is a private project using email verification links.
i always get undefined on emailVerified if i console.log something. this is from my private project:
{
  attributes: {
    email<EMAIL_ADDRESS>    emailVerified: 1,
   .
   .
   .
    refund: 0,
    isAdmin: 1
  }
}
{
  result: {
    user: {
      emailVerified: false,
      email<EMAIL_ADDRESS>      id: '01HNFDTVNC8KDHHTHH0W43XERF'
    },
    session: {
      id: 'qljwvah2ju4wn7q2cglmij1tswhsk2l8qfrsl5yt',
      userId: '01HNFDTVNC8KDHHTHH0W43XERF',
      fresh: false,
      expiresAt: 2024-01-31T09:37:15.000Z
    }
  }
}
{
  user: {
    emailVerified: false,
    email<EMAIL_ADDRESS>    id: '01HNFDTVNC8KDHHTHH0W43XERF'
  }
}

As you can see, the first time it shows emailVerified: 1 which is logged in attributes property inside new Lucia constructor:
export const lucia = new Lucia(adapter, {
	sessionCookie: {
		name: "user_session",
		expires: false,
		attributes: {
			secure: !IS_DEV,
		},
	},
	sessionExpiresIn: new TimeSpan(1, "m"), // 1 month
	getUserAttributes: (attributes) => {
		console.log({ attributes })
		return {
			emailVerified: Boolean(attributes.email_verified),
			email: attributes.email,
		}
	},
})

I'm logging result in validateRequest function like so:
const uncachedValidateRequest = async (): Promise<
	{ user: User; session: Session } | { user: null; session: null }
> => {
	const sessionId = cookies().get(lucia.sessionCookieName)?.value ?? null

	if (!sessionId) {
		return {
			user: null,
			session: null,
		}
	}

	const result = await lucia.validateSession(sessionId)
	console.log({ result })
	// next.js throws when you attempt to set cookie when rendering page
	try {
		if (result.session && result.session.fresh) {
			const sessionCookie = lucia.createSessionCookie(result.session.id)
			cookies().set(sessionCookie.name, sessionCookie.value, sessionCookie.attributes)
		}
		if (!result.session) {
			const sessionCookie = lucia.createBlankSessionCookie()
			cookies().set(sessionCookie.name, sessionCookie.value, sessionCookie.attributes)
		}
	} catch {}
	return result
}

export const validateRequest = React.cache(uncachedValidateRequest)

And my dashboard/page.tsx has the final user logged:
const Dashboard = async () => {
	const { user } = await validateRequest()
	console.log({ user })
	if (!(user && user.emailVerified)) return redirect("/login")
    .
    .
    .
}

Both projects are quite similar so you can test out. I think its a bug in lucia itself. I'm unable to make email OTP or email links work in v3.
in v2, email links worked fine with copy-paste from docs. i didn't try email otp in v2 though so can't say about that.

In the code provided this looks to be a mismatch between the column name in the DB and what you're trying to access in getUserAttributes. The column name and raw data from the DB (attributes) has it called emailVerified. But in getUserAttributes you're trying to access attributes.email_verified. Hence why it is always undefined (that doesn't exist on attributes).
Try to access attributes.emailVerified instead and it should work.
Put this in discord too but thought it best to comment here as well.

In the code provided this looks to be a mismatch between the column name in the DB and what you're trying to access in getUserAttributes. The column name and raw data from the DB (attributes) has it called emailVerified. But in getUserAttributes you're trying to access attributes.email_verified. Hence why it is always undefined (that doesn't exist on attributes).
Try to access attributes.emailVerified instead and it should work.
Put this in discord too but thought it best to comment here as well.

You'd have to be more specific for me to debug the issue. I need something reproducible. A minimal reproduction will help a lot here. Have you also checked if it's not an issue with Drizzle?

@pilcrowOnPaper the sqlite branch is the minimal reproduction itself. it is as small as possible. ik it has other functionalities like signup, login but its optional as you can do db:seed to insert user data & then try login & verify email to see it doesn't work.
yes, i've checked straight for 2 days. i only use 2 packages: lucia & @lucia-auth/adapter-drizzle that exposes better-sqlite3 adapter.
i've also checked lucia packages & the code looks alright but it doesn't work on 2 separate repos of mine. i'd appreciate an example on email otp or email verification links in any framework. v2 worked but v3 isn't. i tried finding the bug but got nothing yet.
i'm 99% sure its a bug in lucia. i get undefined. at least, 0 could've been understandable. the above false only came because i wrapped it in Boolean and Boolean(undefined) is still false. please take a look.

@LinusOP sorry i didn't see your comment above but its type-safe.
here's my schema:
export const userTable = sqliteTable("user", {
	id: text("id", { length: 255 }).primaryKey(),
	email: text("email", { length: 255 }).notNull().unique(),
	emailVerified: integer("email_verified").notNull(),

but i'll give it a shot. this might be a dumb mistake on my part.

See https://github.com/deadcoder0904/next-13-lucia-auth-drizzle-turso-sqlite-magic-link/issues/2

@LinusOP looks like you were right. i copy-pasted it straight as is from the lucia docs. and since it was type-safe, i didn't double-check.
i'm getting client-component error now but that worked i think:
{
  result: {
    user: {
      emailVerified: 1,
      email<EMAIL_ADDRESS>      id: '01HNFKFVFC2AP11Z6YGXDWJ08B'
    },
    session: {
      id: 'mw2093gumie0fim4fo3gja3lyf15riagcyjw3bgd',
      userId: '01HNFKFVFC2AP11Z6YGXDWJ08B',
      fresh: false,
      expiresAt: 2024-01-31T11:36:10.000Z
    }
  }
}
{
  user: {
    emailVerified: 1,
    email<EMAIL_ADDRESS>    id: '01HNFKFVFC2AP11Z6YGXDWJ08B'
  }
}

@pilcrowOnPaper i did find a couple of places for docs improvement. will probably send a pr now.

[...] and since it was type-safe, i didn't double-check.

Attributes is only typesafe based on your declared DatabaseUserAttributes interface, it does not actually ensure that interface matches with your DB schema. And in this case it didn't, DB schema iwas emailVerified but interface (and thus getUserAttributes) used email_verified.
So it's important to ensure that the interface matches the returned columns from the DB and your DB schema to get actual type safety.

yeah, i fucked up. i think docs also used email_verified so i copy-pasted. see https://lucia-auth.com/guides/email-and-password/email-verification-codes

yeah, i fucked up. i think docs also used email_verified so i copy-pasted. see https://lucia-auth.com/guides/email-and-password/email-verification-codes

Easy mistake to make at the end of the day, most important is that it's resolved 😄


Basically, it adds a new property orthonormalization_forced which defaults to true (current behaviour), which when set to false allows you to modify the transform's basis without orthonormalizing it. It's really usefull for some camera projections, like oblique orthogonal and it can be combined to any other projection mode.
(Need to add some usage examples, but can't right now)

Forgot to rebase from master, sorry!

I am uncertain that this is matching the technical design from the rendering team, but it's good to ask them @clayjohn @reduz @BastiaanOlij .


⚠ Bofrost.be has degraded performance

In a1ab8f2, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1656 ms

Resolved: Bofrost.be performance has improved in 9be2041.


 displayed everywhere

beckhoff being beckoff

I think it is beckhoff as I found a workaround -

to fix, refactor gvl listing to something else, like adding 'g' in front of gvl

doesnt work after re-opening project

How can constants change? in beckhoff land -


Text and Image Link Mismatch

On blog page, line 149 is supposed to be on the div.article_link container on line 147.
@ALX-SE-Algorithmia/code-reviewing-team

Closed with #70.


Fix order of locale environment variable

During detection of the language to select translations the code is
relying on the same environment variables libc's use, but
you are not considering them in the same order glibc
(and gettext(3)) do.
Specifically, you want to get the value of LC_MESSAGES locale
category (do not mistake here with the environment variable with the
same name).  To do that, the manual says:
If locale is an empty string, "", each part of the locale that
should be modified is set according to the environment variables.
The details are implementation-dependent.  For glibc, first
(regardless of category), the environment variable LC_ALL is
inspected, next the environment variable with the same name as the
category (see the table above), and finally the environment
variable LANG.  The first existing environment variable is used.

Furthermore, LANGUAGE is a GNU extension to be used as a fallback
for all those.
Following the above, this patch fix the proper order of environment
variable selection to consider LC_MESSAGES before LANG, and put
LANGUAGE as the last option.

@jvdm Thanks for the info! We are in the middle of replacing lib/locale.js with os-locale. Would you mind submitting the same change there instead?

Looking into how gettext find the correct locale
it seems that LANGUAGE is used to set the preferred locale to use if
LC_MESSAGES category is set to something different from C.
My patch is not correct if you want to follow gettext convention, so please
verify and reject as needed.

@jvdm Thanks for the info! We are in the middle of replacing lib/locale.js
with os-locale. Would you mind submitting the same change there instead?

I'll take a look at it @nexdrew. Thanks.

@jvdm this is awesome, but let's move the discussion to os-locale since we are going to be pulling that in as a dependency again :+1: