Overwrite event properties

Im using @amplitude/analytics-react-native in react native app. when using same event , it automatically update previous event property with new event event property.
here is my code. in eventData object I'm passing eventId property
export const postAmplitude = async (
  event: string,
  userId: string,
  eventId: string,
) => {
  const eventData = {
    app_version: DeviceInfo.getVersion(),
    build_number: DeviceInfo.getBuildNumber(),
    eventId: eventId,
  };

  if (userId) {
    const result = await init(AMPLITUDE_ID.DEV, userId).promise;
    if (event) {
      setTimeout(() => {
        track(event, eventData);
      }, 5000);
    }
  } else {
    const result = await track(event, eventData).promise;
  }
};

Hi @empiteranga, thanks for choosing Amplitude. I am not sure I fully understand the issue but noticed a couple things.
For your main problem, I believe you are trying to set some event "fields" (not event properties). See docs how to track an event with event properties.
In this case I believe you want to use this which sets the fields at the event level rather than event.event_properties.
const result = await track({ ...eventData, event_type: event}).promise;

Or use the third argument for EventOptions to achieve the same.
const result = await track(e, undefined, eventData}).promise;

See definition of track and EventOptions for more details.
I also wanted to call out that init() is designed to only be called once at start up. To change userId you can use setUserId() instead.
Hope this helps!


Increased timeout to one minute

This chunk of code sometimes fails in 30 seconds, increased to 60 seconds timeout

          4 Errors

  :no_entry_sign:
  EZSwiftExtensionsTest.NSURLTests: testRemote, XCTAssertEqual failed: (“Optional(-1)”) is not equal to (“Optional(1024)”) -
  EZSwiftExtensionsTests/NSURLTests.swift#L39

  :no_entry_sign:
  EZSwiftExtensionsTest.NSURLTests: testRemote, XCTAssertEqual failed: (“Optional(false)”) is not equal to (“Optional(true)”) -
  EZSwiftExtensionsTests/NSURLTests.swift#L40

  :no_entry_sign:
  EZSwiftExtensionsTest.NSURLTests: testRemote, XCTAssertEqual failed: (“Optional(-1)”) is not equal to (“Optional(1024)”) -
  EZSwiftExtensionsTests/NSURLTests.swift#L39

  :no_entry_sign:
  EZSwiftExtensionsTest.NSURLTests: testRemote, XCTAssertEqual failed: (“Optional(false)”) is not equal to (“Optional(true)”) -
  EZSwiftExtensionsTests/NSURLTests.swift#L40

          2 Messages

  :book:
  Executed 91 tests, with 2 failures (0 unexpected) in 30.893 (31.012) seconds

  :book:
  Executed 87 tests, with 2 failures (0 unexpected) in 31.495 (31.645) seconds

  Generated by :no_entry_sign: danger

Hm, possibly change url, cause it's not stable?

Current coverage is 49.31% (diff: 100%)

Merging #256 into master will increase coverage by 0.17%

@@             master       #256   diff @@
==========================================
  Files            67         67
  Lines          2841       2847     +6
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1396       1404     +8
+ Misses         1445       1443     -2
  Partials          0          0

Powered by Codecov. Last update ce6d041...2aab942


German site still has #undefine, not #undef

This section: https://docs.microsoft.com/de-de/dotnet/framework/debug-trace-profile/how-to-compile-conditionally-with-trace-and-debug#to-perform-conditional-compilation-using-const-or-define
still contains #undefine, although the preprocessor directive is #undef, but only on the german version. (Only checked against UK version, there might be other pages wrong too)

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

ID: 670493ca-3d2b-4308-3a2a-132b56ffc166
Version Independent ID: bb01f671-6cf8-30ae-af09-16ad47c9d306
Content: How to: Compile Conditionally with Trace and Debug - .NET Framework
Content Source: docs/framework/debug-trace-profile/how-to-compile-conditionally-with-trace-and-debug.md
Product: dotnet-framework
GitHub Login: @gewarren
Microsoft Alias: dotnetcontent

cc @khoiph1

Ping @kgliang

CEINTL work item 806180 filed to the LOC team on this issue.


Fix #605

Description of Changes
This is a fix for #605 . Turned out clearing canvas.after inside ripplebehavior causes this issue. This fix will prevent from canvas.after being cleared every time.
    def anim_complete(self, *args):
        self._doing_ripple = False
        self._finishing_ripple = False
        self._fading_out = False
        self.canvas.after.clear()

Screenshots

I noticed this fix breaks some other parts of the ripplebehavior. Not clearing canvas.after will make issues when trying to resize the screen. Reverting this commit is better idea until i find a proper fix :(


Confirm payment always catches event Completed, never Failed

Platform

[ x] Web
[ ] iOS
[ ] Android

Describe the bug
Inputing a test card number which fails<PHONE_NUMBER>000019)  makes a call to api.stripe.com:
https://api.stripe.com/v1/payment_intents/pi_3MdXWFCyDbRyOrdF01urgsUD/confirm
which returns the correct response:

But the confirmPaymentFlow always returns Completed. I cannot seem to catch the event for failed.
Also (not sure if it's related), the Postal code input is disabled and cannot be typed in.
Expected behavior
Catch the failed response.

This plugin is not catching the events canceled or failed upon canceling the process or even if the actual card is declined... kindly fix this...

I tried even with PaymentSheet, and it also doesn't catch Failed, only Completed

That's right, because Stripe always returns completed:
https://github.com/capacitor-community/stripe/blob/master/ios/Plugin/PaymentSheet/PaymentSheetExecutor.swift#L81-L83
I think the implementation needs to check separately whether the customer's payment has been successfully completed on the back end.

This Issue is closed because the information has not been updated. Thank you.

@rdlabo If thats the case then its a big flaw. If the plugin cannot say whether the transaction is completed or not...not throwing proper errors then how will it be detected anywhere... it should pass at least some parameter to track it down...with payment gateways cant take any chance at all... as it involves money


[Mock] missing some hooks from official mock

Description
When following the official guide for setting up the test environment, the mock is injected, but it does not cover the whole API of the library, more especially the parts defined under src/renderer and src/views.
I have a component using among other things useCanvasRef, that I use to invoke makeImageSnapshot() as illustrated here.
The tests break when using the official mock, as useCanvasRef is not defined.

TypeError: (0 , _reactNativeSkia.useCanvasRef) is not a function

This is the first hook I am facing an error with, but I noticed some other methods also failing:

useTouchHandler

TypeError: (0 , _reactNativeSkia.useTouchHandler) is not a function

useValue

TypeError: Cannot read properties of undefined (reading 'createValue')

Version
v0.1.137
Steps to reproduce

Build a component using useCanvasRef()
Build a test case for it
Setup the environment as instructed
Run the tests (I am using jest)

Result: test showing the following error

TypeError: (0 , _reactNativeSkia.useCanvasRef) is not a function

Snack, code example, screenshot, or link to a repository
An example component:
// TestComponent.tsx
import { Button, View } from 'react-native';
import { Canvas, SkImage, useCanvasRef } from '@shopify/react-native-skia';

const TestComponent: React.FC<{
  onSnapshot?(snapshot: SkImage): void
}> = ({ onSnapshot }) => {
  const canvas = useCanvasRef();
  const onPress = () => {
    const snapshot = canvas.current?.makeImageSnapshot();
    onSnapshot?.(snapshot);
  }

  return (
    <View>
      <Canvas ref={canvas} style={{ width: 40, height: 40 }}>
        <Rect x={10} y={10} width={20} height={20} color="red" />
      </Canvas>
      <Button title="snapshot" onPress={onPress} />
    </View>
  );
}

An example test case:
// TestComponent.test.tsx
import {fireEvent, render} from '@testing-library/react-native'
import TestComponent from '[...wherever...]';

describe('TestComponent', () => {
  it('should take a snapshot', async () => {
    const onSnapshot = jest.fn();
    const {getByText} = render(<TestComponent onSnapshot={onSnapshot} />);
    await fireEvent.press(getByText('snapshot'));
    expect(onSnapshot).toHaveBeenCalled();
  });
})

I am willing to contribute on the mock, but I am struggling a bit to understand:

wether the src/renderer/* subfolder is intentionally not exported from the mock? (... and should rather be mocked separately? 🤔)
same question about src/views (e.g. useTouchHandler())
why is useValue() throwing, while the Skia method createValue() is supposed to be mocked?

One thing that would help with the mock would be to load CanvasKit.
Then you can test everything as you would have a full implementation of the module (this is what we have for our tests: https://github.com/Shopify/react-native-skia/blob/main/package/src/renderer/tests/documentation/getting-started/HelloWorld.spec.tsx#L51).
Do you know if it's possible to load a Mock asynchronously? (allowing us to use CanvasKit in the mock)

@flo-sch We also run tests for the example app at: https://github.com/Shopify/react-native-skia/blob/main/example/src/App.spec.tsx
It would be fantastic if you could add failing tests there so we know that we got you covered.

I added some (intentionally failing) tests, took the already existing ExportableCanvas as component, but I could create a custom one as documented here if you prefer?

Do you know if it's possible to load a Mock asynchronously? (allowing us to use CanvasKit in the mock)

So, I tried writing a custom test environment extending the default "node" one, I think it might be a suitable option?
It provides a setup and a teardown function (which I am not sure we need here), both can be async, and I managed I think to load the Skia web API within setup().
However, one caveat is that jest itself cannot transpile such an environment, so I updated the example test script to use ts-node/register instead...
This is a bit cumbersome but works.
Let me know what you think about that approach?
If that works, I was thinking we could potentially export the jest environment itself to simplify the setup in external projects?
PS: it does not fix the missing hooks of course.


ConnectionError  and SSLError

code
from datasets import load_dataset
dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')

bug report
---------------------------------------------------------------------------
ConnectionError                           Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module>
----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
   1658
   1659     # Create a dataset builder
-> 1660     builder_instance = load_dataset_builder(
   1661         path=path,
   1662         name=name,

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
   1484         download_config = download_config.copy() if download_config else DownloadConfig()
   1485         download_config.use_auth_token = use_auth_token
-> 1486     dataset_module = dataset_module_factory(
   1487         path,
   1488         revision=revision,

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
   1236                         f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}"
   1237                     ) from None
-> 1238                 raise e1 from None
   1239     else:
   1240         raise FileNotFoundError(

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
   1173             if path.count("/") == 0:  # even though the dataset is on the Hub, we get it from GitHub for now
   1174                 # TODO(QL): use a Hub dataset module factory instead of GitHub
-> 1175                 return GithubDatasetModuleFactory(
   1176                     path,
   1177                     revision=revision,

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self)
    531         revision = self.revision
    532         try:
--> 533             local_path = self.download_loading_script(revision)
    534         except FileNotFoundError:
    535             if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None:

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision)
    511         if download_config.download_desc is None:
    512             download_config.download_desc = "Downloading builder script"
--> 513         return cached_path(file_path, download_config=download_config)
    514
    515     def download_dataset_infos_file(self, revision: Optional[str]) -> str:

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
    232     if is_remote_url(url_or_filename):
    233         # URL, so get it from the cache (downloading if necessary)
--> 234         output_path = get_from_cache(
    235             url_or_filename,
    236             cache_dir=cache_dir,

D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc)
    580         _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
    581         if head_error is not None:
--> 582             raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
    583         elif response is not None:
    584             raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")

ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))")))

It may be caused by Caused by SSLError(in China?) because it works well on google colab.
So how can I download this dataset manually?

Hi ! You can download the oscar.py file from this repository at /datasets/oscar/oscar.py.
Then you can load the dataset by passing the local path to oscar.py to load_dataset:
load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it")

it works,but another error occurs.
ConnectionError: Couldn't reach https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (SSLError(MaxRetryError("HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))")))

I can access https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt and https://aws.amazon.com/cn/s3/ directly, so why it reports a SSLError, should I need tomodify the host file？

Could it be an issue with your python environment or your version of OpenSSL ?

you are so wise!
it report [ConnectionError] in python 3.9.7
and works well in python 3.8.12
I need you help again: how can I specify the path for download files?
the data is too large and my C hardware is not enough

It takes me some days to download data completely, Despise sometimes it occurs again, change py version is feasible way to  avoid this ConnectionEror.
parameter cache_dir works well, thanks for your kindness again and I will close this issue.


Make range optional in CompletionItem definition

This PR fixes the type error Property 'range' is missing in type '{ label: string; kind: CompletionItemKind.Function; documentation: string; insertText: string; }' but required in type 'CompletionItem'.
The range is not required. It is stated in the docstring that it
Defaults to a range from the start of the [current word](#TextDocument.getWordRangeAtPosition) to the current position.
It is not included in the example code either:
https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-completion-provider-example

@FreHu monaco.d.ts is generated from the VS Code sources.
The "truth" is here


Feature - Popup when the meeting starts

A popup notification will appear on your screen when the meeting begins, ensuring you don't miss the start time. The notification will temporarily block your view to grab your attention and inform you that the meeting is now in session.

Please see this discussion:

https://github.com/pakerwreah/Calendr/discussions/283

But I think if it's just a simple popup with "Close" and "Join" buttons, I can make that an option.

I don't understand, though, why people disable the native alert notifications if this is something people want.

I have the notifications 🙈
But even when I'm focused, I don't look at them. That's why I wanted a full-screen notification to alert me.


Run rustfmt on CI

Note these don't need to be ran for every OS, just on Linux will be fine.
Rustfmt should fail if any files are not correctly formatted.

@EskiMag I think you need to comment here for me to assign you

Please, assign this issue to me. 🙏 😁

OK, so I wanted to work on this, but I am stuck. I am not familiar with Rust, I wrote maybe 10 lines in it few years ago. I did a clean install via the recommended method, then tried to run cargo fmt or rustfmt inside the gleam directory of this repo, but it's stuck on this error:
error: command failed: 'rustfmt'
error: caused by: Permission denied (os error 13)

I checked Stackoverflow, but no solution is working for me. I am using macOS Catalina and rustup --version is returning rustup 1.20.2 (13979c968 2019-10-16). Any tips, what can be wrong?

What version of rust, not rustup?  Run rustup update to make sure it is up to date and post the output here so we can see what components it installs as well?

I deleted both ~/.cargo and ~/.rustup, installed again and it's working. Anyway, thanks @OvermindDL1 for your help. There were probably some old resuides from the past causing the trouble.
Now when I run cargo fmt, I can the src/main.rs is being formatted.
Is there some switch for the cargo fmt command to just check if everything is properly formatted? Or should I combine the cargo fmt with git status to decide if the check should fail or succeed?

Different versions can format slightly differently.  Generally you just have the CI locked to 'latest' and format everything and commit if any changes.
If you really want to 'just check' (which will fail if someone formatted with a different version at times) then I think it's just cargo fmt -- --check if I recall correctly.


"Synchronous Abort" handler, esr 0x02000000

USB boot get into below error occasionally and require to reprogram the USB boot image in order to recover.  Not sure due to disk corruption or not.
DDR version 1.06 20170424
In
LPDDR3
786MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT
U-Boot SPL 2017.09-g5a90a9a (Jan 12 2018 - 11:06:01)
setup_ddr_param  1
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(release):f947c7e
NOTICE:  BL31: Built : 11:06:00, Jan 12 2018
NOTICE:  BL31:Rockchip release version: v1.3
U-Boot 2017.09-g5a90a9a (Jan 12 2018 - 11:06:15 +0000), Build: jenkins-linux-build-rock-64-177
scanning bus 2 for devices... 2 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: SanDisk  Rev: 0405 Prod: SDSSDH2128G
Type: Hard Disk
Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
... is now current device
Scanning usb 0:6...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
259 bytes read in 21 ms (11.7 KiB/s)
1:      kernel-4.4
Retrieving file: /initrd.img
reading /initrd.img
3536837 bytes read in 178 ms (18.9 MiB/s)
Retrieving file: /Image
reading /Image
2359296 bytes read in 115 ms (19.6 MiB/s)
append: earlycon=uart8250,mmio32,0xff130000 rw root=LABEL=linux-root rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=66:52:90:cd:89:ae eth1addr=66:52:90:cd:89:ce serial=387ffff93aa4d8b
Retrieving file: /dtb
reading /dtb
44132 bytes read in 27 ms (1.6 MiB/s)
Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to fcba1000, end fcf007c5 ... OK
Loading Device Tree to 00000000fcb93000, end 00000000fcba0c63 ... OK
Starting kernel ...

DDR version 1.06 20170424
In
SRX
LPDDR3
786MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

This is related to a bug in flash-kernel after kernel upgrades, fix is work in progress

This is fixed.


display time fix

Thank you for contribution! Indeed there was a problem with time being negative. Merging


Support Markdown format

Fixed in https://github.com/lamuguo/blog/commit/1cf550083be49c0727856bdb41e57e7dba0f80c5
A bit trick is you need to have a "* " line to start the document content, in case your .md file should handle the whole document.


add UsePreviousValue support for parameters when updating a CloudFormation stack

This adds support for the UsePreviousValue field of the CloudFormation Parameter data type when updating a CloudFormation stack as described at https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html
I hope this is helpful. I have been using moto alot lately, and I'm glad to be able to contribute in some small way!

Coverage decreased (-0.08%) to 92.448% when pulling 0071f9fc4fcb43b15062712569b249e3d4d64e07 on RealSalmon:use-previous-value into 4997694fd6664de022a84c8a9b4d77884fae145f on spulec:master.

@RealSalmon This is hugely helpful! Glad Moto has been useful to you. This contribution is much appreciated and we're glad to have you here at Moto!


Manhole broken for Twisted >= 16.1

As mentioned in a question on Stack Overflow, the manhole functionality in carbon doesn't work anymore since Twisted 16.1. That version removed the default hardcoded SSH host keys from ConchFactory.
The solution is to explicitly set the publicKeys and privateKeys attribute on ConchFactory, either by putting the host keys themselves, or a reference to the files containing the keys, in the carbon configuration file. This will also work with older versions of Twisted.

Should be fixed.


Sort picture picker by resolution

It would be a great improvement to have the picture picker sort alle pictures from highest to lowest resolution
and/or
have the right-clicked picture on top if possible.
Thank you :)

Hi! This project is just a browser helper to call Pinry official bookmarklet script, any feature change should then be done here.
Funny thing is: I have exactly such a change locally, but I forgot to upstream it so far. I'll try and do it.


set to deploy to loatest

DEPLOY INT to LOADTEST

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

  Generated by :no_entry_sign: dangerJS against d244c494b8886430468a76ec3b22a74af025ded2

Test coverage on server failed.
Last run: Mon 30 Sep 2024 05:06:57 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on server failed.
Last run: Wed 02 Oct 2024 02:27:27 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on client failed.
Last run: Mon 21 Oct 2024 04:06:45 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.

Test coverage on client failed.
Last run: Fri 25 Oct 2024 04:01:18 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.

Test coverage on server failed.
Last run: Wed 04 Dec 2024 09:00:39 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on server failed.
Last run: Wed 11 Dec 2024 07:28:04 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on server failed.
Last run: Fri 13 Dec 2024 12:01:53 AM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on client failed.
Last run: Mon 16 Dec 2024 08:50:38 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.

Test coverage on client failed.
Last run: Tue 17 Dec 2024 04:39:57 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.


befunge-93 hello world prints an extra null character

helloworld.txt outputs an extra null character. The following version does not
"!dlroW ,olleH">,v
               |:<
               @

https://github.com/nilaymaj/esolang-park/compare/main...MostParsingVex:esolang-park:befunge93-helloworld-fix?expand=1

Hi @MostParsingVex, thanks for raising this! I've opened PR #11 with your link. Can you also replace the default program that appears in the code editor? Your commit only changes the helloworld test program - the default program is defined in languages/befunge93/constants.ts .


Should the string case be global?

In the spec text, I see

If ? IsRegExp(regexp) is true, then

Let R be regexp.

Else,

Let R be ? RegExpCreate(regexp, undefined).

I think in the case of matchAll being called with a String as the argument, this logic would create a non-global RegExp, which would then make a one-element iterator. Is this the right default? In the discussion around the replaceAll proposal, many people said they had been bitten by this similar default in String.prototype.replace, when you usually want to replace all of them (otherwise, in this case, why bother calling this method at all?).

Personally I'm not a fan of the string coercion behavior at all and would prefer it to throw with a non-regex argument.
That said, this does feel like a more useful choice, and I don't anticipate any concern with it given the "all" in the name. I'm going to make this change after #29 is merged.


Extract method parameter names from C function signatures

Use a couple of regexes on the source for a Ruby method defined in a C extension, to get the parameters. This is already done for methods defined in Ruby, but for those defined in C.
This is not foolproof -- for example, if the Ruby method implemented by a C function takes a block argument, we can't identify that from the C function signature. But at least we can identify regular method arguments.
This makes the generated documentation for C extension methods noticeably better.

Just adjusted the regexes to work in Ruby 1.8.7.

Just added another little tweak (cleanup of a regex) to this PR... please have a look.

I removed the regex tweak as requested.

Ping...

Much better, thanks @alexdowad!

Thanks to you for providing such a great tool, and please let me know how I can make my other PRs better as well.


make possible to use different cache by MEMOIZE_CACHE_NAME settings

@jhonatandarosa @Backscratcher Could you please look at this PR?


Detect use of AmazonMachineLearningRoleforRedshiftDataSource

See https://summitroute.com/blog/2019/06/18/aws_iam_managed_policy_review/

Resolved by #468


Maven Home not resolved with whitespaces in the path

Describe the bug
If Maven has been unpacked to a location containing a white space (e.g. "C:\Program Files\Maven\apache-maven-3.9.1"), the task cannot resolve it´s Home directory.
Current behavior
Issue source code
Note that the .split(' ')[2] will not return the full path but break on the first whitespace.
>mvn --version output:
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: C:\Program Files\Maven\apache-maven-3.9.1
Java version: <IP_ADDRESS>, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-<IP_ADDRESS>
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

AzureDevOps Pipeline log:
...
Running jfrog-cli from <AgentDir>\_work\_tool\jf\2.36.0\x64\jf.exe
JFrog CLI version: 2.36.0
...
##[debug]M2_HOME=undefined
M2_HOME is not defined. Retrieving Maven home using mvn --version.
The Maven home location: C:\Program
...
Executing JFrog CLI Command:
<AgentDir>\_work\_tool\jf\2.36.0\x64\jf.exe mvn install ...
10:39:40 [Error] couldn't find plexus-classworlds-x.x.x.jar in Maven installation path, please check M2_HOME environment variable
##[debug]task result: Failed
##[error]Error: Command failed: <AgentDir>\_work\_tool\jf\2.36.0\x64\jf.exe mvn install ...
...

Reproduction steps

Unpack Maven installation to path that includes a white space
Put this path into PATH variable
Do NOT define M2_Home, but let the task discover it itself
(Re)Start AzureDevOps Agent (to load PATH)
Run JFrogMaven task

Expected behavior
No response
Azure DevOps extension name and version
JFrog 2.5.0
JFrog CLI version
2.36.0
Operating system type and version
Windows 10 Enterprise 10.0.19044
JFrog Artifactory version (if relevant)
No response
JFrog Xray version (if relevant)
No response
JFrog Distribution version (if relevant)
No response

Hi @jathok,
Thanks for reporting this issue.
Our apologies for the inconvenience caused by this.
This PR - https://github.com/jfrog/jfrog-azure-devops-extension/pull/413 should fix it.
I will update this thread once the next release will be out.

@jathok
jfrog-azure-devops-extension 2.6.0 is released and should fix the above issue.
Looking forward to your feedback on it.


Flutter 1.17 can't be integrated with Unity (1.12 version is fine)

My iOS flutter application is integrated with Unity, however I got the error message:
ClassID 100000 (int) conflicts with that of another class (int). Please resolve the conflict.
(Filename:  Line: 263)
Then my app is crash on Unity.
My app is no issue on older stable version 1.12.
I also found beta and master channel version also can't work on unity integration.
Is it something conflict issue on Flutter with Unity ?

I used the unity flutter plugin to integrate with Flutter app:
https://github.com/snowballdigital/flutter-unity-view-widget
I found root cause that startUnity didn't be called, so it will init unity twice, then crash on RegisterAllClasses.
So I fixed the crash by
I fixed the issue by directly call start unity method on UnityAppController.mm.
 [self startUnity:application];
 // [self performSelector: @selector(startUnity:) withObject: application afterDelay: 0];

Then add below before InitUnity inside dispatch_async on UnityUtils.mm
if (_isUnityReady) {
  completed();
  return;
}

It can resolve the crash issue.
But flutter ui can't show up on unity view with this code:
[_uView setUnityView: (UIView*)[GetAppController() unityView]];

So I do the basic UIView to do the test, the white native view will occupy whole screen without flutter ui on top. (I used Stack view add platform view and flutter widgets)
UIView *v1 = [UIView new];
CGFloat width = [UIScreen mainScreen].bounds.size.width;
CGFloat height = [UIScreen mainScreen].bounds.size.height;
v1.frame= CGRectMake(0, 0, width, height);
v1.backgroundColor = UIColor.whiteColor;
[_uView insertSubview:v1 atIndex:0];

So how do we show up flutter widgets on iOS flutter platformview?
It is normal on Flutter 1.12.

@skypu3
I'll link your issue from the plugin's repository here https://github.com/snowballdigital/flutter-unity-view-widget/issues/138

https://github.com/flutter/flutter/issues/56660 it maby like this issues

@skypu3  maby  the reason why flutter ui no work in platformview is here
https://github.com/flutter/flutter/issues/56660#issuecomment-626033300

Yes, it is related to #56660, tested and it works.
Thanks.

This resolve my crash issue, but also now I can't interact with unity view, even if is with ui inside unity.
Pleasy any resolution for this issue


simutrans prints errors (it couldn't load wav files)

All I know:
could not load wav (Couldn't open /nix/store/fcx78g7di8vcbwpi3a6g7i7979adaaq2-simutrans-112.3/share/simutrans//nix/store/chx28dwb988m1y7hys7vq13qk63wkrcb-simutra)

It's not that important to me... but should be reported, I guess.

That's probably why it's without sound.

I guess, yes. I don't care that much about sound when playing this game, but I guess someone else does, so I reported this error.
Maybe this should have a label "nice2have" or something...

We have "enhancement" label, but this is a bug, although I agree the sound isn't important for me.


Elliott/default to all questions

adds 'all' filter option when viewing question lists and makes it the default
also removes application configuration option to limit question viewing to only one's own questions, which was just used for a pilot and may not be necessary anymore

(this is to support ISSAID 2015 'pilot')


Allow guest orders to manage subscriptions via API

It should be possible to create and edit subscriptions (e.g. changing intervals(quantity) via API calls.
Currently, though, it seems like an API token is required (which is not available for guest checkouts).

Started to look into this ticket, and would like to have more details about this request.
I think that guest users can create and order with a subscribable line item which will end up creating a subscription. Isn't that enough to allow guest users to checkout and create a line item?

This issue was reported by a 3rd party user, so I don't have the complete details, but looking at the request specs for the solidus_api controllers we're always providing the Authorization header with the spree_api_key:
https://github.com/solidusio/solidus_subscriptions/tree/master/spec/requests/api/v1
@kennyadsl if the api controllers we have already support guest operations maybe we should just add specs that would both ensure it keeps working and show how to do it.
Please let me know if there's anything else that I can help clarifying, in case it's needed I can reach out to the users that reported the issue.

This is related to the possibility to create and edit subscribable line items (e.g. changing intervals(quantity) via API calls, after it has already been added to the cart.


Increase request timeout for images upload

Upload requests for images were using the default timeout which was probably one of the reasons for https://github.com/opencollective/opencollective/issues/906. In my tests uploading images above 5MB with a not-too-bad connection could cause errors.
I've increased the timeout for this particular request to 2 minutes instead of the default 25 seconds.

Coverage increased (+0.008%) to 70.529% when pulling 36b48d1fdc37719fd2cd503e02a35a47a493c9ec on fix/906-large-images-upload-timeout into 51b99f947890025d6d3f1516b588c88893eccdbc on master.


US 07.01.01 No Actual Code Recorded

As a player, I don’t want the actual code recorded, E.g., so I can scan and score my vaccine passport, so that I can scan QR codes that are related to my privacy.
Priority: Medium
Story Point: 5
Risk Level: High

Acceptance Criteria:

As a player, I want to scan QR codes related to my vaccine passport
I don't want the actual code recorded for privacy reasons
I want to ensure that my personal and sensitive information is protected
The app should have secure storage and encryption for the scanned data
The app should properly handle and dispose of the code after it has been used

Priority: Medium
Story Point: 5
Risk Level: High


Factor out kafka stream converter interface

Factor out kafka stream converter to make it possible for injecting customized converter

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Question] Building Ubuntu Omniauth Strategy

Hey,
I'm trying to build a strategy for ubuntu which was requested. Using things like curl and whatnot, it's easy to get the token / info but I've been beating my head against a wall with omniauth.
I've tried to setup a basic app in sinatra:
begin
  require 'sinatra'
  require 'omniauth'
  require_relative 'ubuntu.rb'
rescue LoadError
  require 'rubygems'
  require 'sinatra'
  require 'omniauth'
  require_relative 'ubuntu.rb'
end

use Rack::Session::Cookie
use OmniAuth::Builder do
  provider :ubuntu, 'email', 'password'
end

get '/' do
  <<-HTML
  <form action='/auth/ubuntu' method='post'>
    <input type='text' name='email'/>
    <input type='password' name='password'/>
    <input type='submit' value='Sign in with Ubuntu One'/>
  </form>
  HTML
end

# Support both GET and POST for callbacks
%w(get post).each do |method|
  send(method, "/auth/:provider/callback") do
    env['omniauth.auth'] # => OmniAuth::AuthHash
  end
end

Which includes my example strategy:
require 'omniauth'

module OmniAuth
  module Strategies
    class Ubuntu
      include OmniAuth::Strategy

      option :fields, [:email, :password]
      option :uid_field, :email

      option :site, 'https://login.ubuntu.com/api/v2/tokens/oauth'

      uid do
        request.params[options.uid_field.to_s]
      end

      info do
        options.fields.each_with_object({}) do |hash, field|
          hash[field] = request.params[field]
          hash
        end
      end
    end
  end
end

I'm having a real hard time though. All I want to do is collect the email and password provided, send it as json to the Ubuntu login endpoint and process the result for use by omniauth.
On success, I'd expect to get back:
HTTP/1.1 201 CREATED
Content-Type: application/json
Location: /api/v2/tokens/oauth/the-key

{
  "href": "https://login.ubuntu.com/api/v2/tokens/oauth/the-key",
  "token_key": "token-key",
  "token_secret": "token-secret",
  "token_name": "token-name",
  "consumer_key": "consumer-key",
  "consumer_secret": "consumer-secret"
  "date_created": "2013-01-11 12:43:23",
  "date_updated": "2013-01-11 12:43:23"
}

Any help would be appreciated as this should be a simple strategy to add but omniauth doesn't seem very clear to me thus far as a new user of it.

Bump, is there a base config / example project we can use to bootstrap development of OmniAuth strategies

The point of oauth is that you're not exposing your user credentials to the third-party application.
I haven't tried this code but here's another implementation of an Ubuntu Oauth login: https://github.com/masterkain/omniauth-ubuntu/blob/master/lib/omniauth-ubuntu.rb
As for examples, I'd take a look at other implementations. Some of them are pretty straightforward:

https://github.com/tmilewski/omniauth-uber/blob/master/lib/omniauth/strategies/uber.rb
https://github.com/intridea/omniauth-github/blob/master/lib/omniauth/strategies/github.rb
https://github.com/tmilewski/omniauth-venmo/blob/master/lib/omniauth/strategies/venmo.rb


Groovy 4 Gradleception build runs OOM sometimes

This appears to be happening about 1% of the time: https://ge.gradle.org/scans/failures?search.tags=Gradleception%2CGroovy4&search.timeZoneId=America/New_York
Expected Behavior
Gradleception build should be able to complete without running OOM.
Current Behavior
The Gradleception build is able to build a distribution of Gradle with Groovy 4 (while using Groovy 3) and then build Gradle again while using Groovy 4.
It then fails to run tests with the second Gradle-with-Groovy-4 distribution. This makes sense because we run very few GroovyCompile tasks until this step.
Steps to Reproduce
The last step in the build was disabled in: https://github.com/gradle/gradle/pull/23465
This will need to be reverted to see the failure again.
We should be able to reproduce this locally by:

Building a distribution with the enableGroovy4 flag
Compiling all Groovy code with the distribution from above

No GroovyCompile daemons should persist across builds, so I suspect this may require the most expensive projects to all run on the same daemon?
Your Environment
Build scan URL: https://ge.gradle.org/s/qpkewsx5ijdcm

When looking at this again, let's pair on this - @big-guy

We've been running this for a month without this issue recurring as far as I can tell by looking at the DV failures page. Closing this since it looks fixed now.


feature: Expose Singer ecosystem activity data

We have a private superset dashboard of Singer ecosystem activity. @tayloramurphy said in slack "This is awesome! I kind of want this just embedded on the Hub…". I wonder if we can find a low effort way of exposing some of this data on the hub.
I'm not super familiar with Evidence.dev yet but seems like a use case where we could compile some static markdown dashboards and serve them with the hub.
Theres probably other low effort ways of doing this too.

@pnadolny13 - I love this idea. Evidence would be great for this! You'd write your report as markdown, with SQL queries powering the markdown template. Since it generates static HTML, we'd just need to output that in a way that it could be mounted to the Netlify-managed web content.
The hybrid deploy challenge is similar to what we are working through in

https://github.com/meltano/hub/issues/954 and
https://github.com/meltano/internal-general/issues/444

@aaronsteers @pnadolny13 there's a couple of options:
Embed rendered Evidence.dev HTML
Evidence uses SvelteKit, which is a framework similar to Vue. It's possible to build those HTML files and serve them with the Hub site, in a similar way to how the API is built and served currently, just using spawn to call the svelte-kit CLI.

Pros: we get benefits from Evidence.dev like existing connectors and graphs
Cons: we mix frameworks, local dev experience wouldn't be great because we lose hot-reloading for the evidence parts of the site.

Use a (custom) Gridsome plugin
Similar to gridsome-source-mysql, we build a Gridsome plugin for Snowflake.

Pros: we use a single framework for the site
Cons: we need to write a plugin from scratch, we would need to write our own plotting components or use something from the Vue ecosystem

This is a super interesting use case of Evidence.
Where would you imagine the data being shown?
On each page of relevant Meltano hub page? Or somewhere else?

This is a super interesting use case of Evidence. Where would you imagine the data being shown? On each page of relevant Meltano hub page? Or somewhere else?

Hi, @archiewood. I could see us going either direction with this. I imagine in a first iteration, it's probably harder to put a report in the existing web pages, and most likely less friction/difficulty if we create net-new pages.
Also, worth noting our current Hub CI pipelines don't get access to the SQL warehouse. So, it might be easier to build this in squared and publish to a GitHub pages target that is a non-production aspect of our marketing sites, but still available for viewing by our community members.


features/min-deposit-onchain

Query deployment deposit param on chain
Refactor the code to use the min on chain

#114


create channel fail.

I try to start caliper but there is some problem.
node benchmark/simple/main.js -c config.json -n fabric.json
`TAP version 13
#######Caliper Test######
create mychannel......
not ok 1 Failed to create channels Error: create status is FORBIDDEN at channel.organizations.reduce.then.then.then (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:145:43) at  at process._tickCallback (internal/process/next_tick.js:188:7)
operator: fail
at: channels.reduce.then.then.catch (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:159:19)
stack: |-
  Error: Failed to create channels Error: create status is FORBIDDEN
      at channel.organizations.reduce.then.then.then (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:145:43)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
      at Test.assert [as _assert] (/opt/gopath/src/github.com/hyperledger/caliper/node_modules/tape/lib/test.js:224:54)
      at Test.bound [as _assert] (/opt/gopath/src/github.com/hyperledger/caliper/node_modules/tape/lib/test.js:76:32)
      at Test.fail (/opt/gopath/src/github.com/hyperledger/caliper/node_modules/tape/lib/test.js:317:10)
      at Test.bound [as fail] (/opt/gopath/src/github.com/hyperledger/caliper/node_modules/tape/lib/test.js:76:32)
      at channels.reduce.then.then.catch (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:159:19)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

...
fabric.init() failed, Error: Fabric: Create channel failed
at channels.reduce.then.then.catch (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:160:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[Transaction Info] - Submitted: 0 Succ: 0 Fail:0 Unfinished:0
unexpected error, Error: Fabric: Create channel failed
at channels.reduce.then.then.catch (/opt/gopath/src/github.com/hyperledger/caliper/src/fabric/create-channel.js:160:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
1..1
tests 1
pass  0
fail  1
`

Try running node main.js -c config.json without giving fabric.json. Make sure you followed all the pre-reqs before running this and cross check the config and fabric.json.

@lotty02cho   can you list the steps to reproduce, if you have not solved the problem?

@lotty02cho Any progress on this issue?


Add a hint to use biList

If you have [fst x, snd x] somewhere in your code, wouldn't you prefer to rewrite it as a match on x and [x1, x2]? To me it seems like the mental strain of having to figure out which Bifoldable is used here is not worth it, especially considering how simple the original snippet is.
My main concern is this:
In my experience most people writing Haskell would prefer to match on x instead, and as a result not encounter this hint. The ones who tend to write things like this a lot instead of matching are beginners/students, who have no idea what a Foldable is, let alone a Bifoldable

I have to say I find bilist somewhat odd as a function - it's got inconsistent capitalisation to the other functions in this module, and does a slightly weird thing. Perhaps we could put this in generalise for conciseness?

Fair enough; done.

Thanks!


main > INT

Warnings

:warning:
Please include a description of your PR changes.

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 5cd90aeb9b6ed2edcdfab99da2a95231ba668282


Re-designing home page feeds

Is your feature request related to a problem? Please describe.
Currently two home article feeds, 『熱門』and『熱議』, have vague design goals and significant overlap with each other. 『熱門』should be a collective choice for articles that are worth reading at a given moment, and 『熱議』should be a collective choice for articles that are worth discussing at a given moment.
For『熱門』, in the past we do not have a direct measurement of reading time. Now that we are recording read time, we can move away from appreciations/Likes, which does not have any cost for the actor and signifies many different things such as friendship, support or greetings, and move towards read time and donation, the former being a direct measurement of reading and the later with cost and therefore resilient to spams. We can also start recording impressions, which are the times an article card appear to our user, to calculate the efficiency of ready given a number of impressions.
『熱議』still requires more discussions. A general direction might be more focus on number of participates, number of votes on comments, or different ways of measuring weights of commenters.

Closed it.


Feature addition

@srikwit, please commit the csv code.. Will do a PR on the interface asap

Hi @vishnuraju , Added my code, testing it in VM. Will send entire sample CSVs soon. But the One-liner powershell commands can generate the necessary CSV's. Can I close it?

Closing the issue as there is no more activity.


Trigger an InstanceUpdateOperation from BelongsToOneInsertOperation

Issue described @ https://gitter.im/Vincit/objection.js?at=59d2c32eb20c642429b5a9a2 and quoted below:

I don’t know if this is expected behavior or not, so I wanted to bring it up here rather than opening an issue. When calling $relatedQuery(…).insert() on a model instance with a belongs-to relationship with the model being inserted (a BelongsToOneInsertOperation), a subsequent update is made to the model to update it with the ID of the related model that was inserted. This is done by calling:

return this.relation.ownerModelClass
        .query()
        .childQueryOf(builder)
        .patch(patch)
        .whereComposite(idColumn, this.owner.$id())
        .return(inserted);

The issue I ran into with this is that even though the original call was on an instance, the subsequent call performs an UpdateOperation rather than an InstanceUpdateOperation, which means that the original values of the instance are missing from modelOptions.old in the subsequent $beforeUpdate call.
It seems to me that this code could be simplified to

return this.owner.$query()
    .childQueryOf(builder)
    .patch(patch)
    .return(inserted);

I ran tests for this locally, but I want to run them them through Travis. Please feel free to close if this isn't a good idea.

Coverage decreased (-0.0008%) to 95.806% when pulling 4cb97aef4bfafb80293165e4d15b30060dd8bb94 on jordansexton:instance-update into ced27b7eab1d64ef74e3fe4fc4fc816badca31ec on Vincit:master.

Seems like a good idea. I can't think of any problems this could cause. You could add a simple test that makes sure this is never changed back.


Add a discord bot with advanced functionality

Description
Add new folder DiscordBot under Scripts. Add README file for available commands.
Fixes #39
This file is related to issue 39 but encompasses more capabilities: loading/unloading files
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Documentation Update

Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.

[x] I have named my files and folder, according to this project's guidelines.
[x] My code follows the style guidelines of this project.
[x] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
[x] I have included a requirements.txt file (if external libraries are required.)
[x] My changes do not produce any warnings.
[x] I have added a working sample/screenshot of the script.

@all-contributors please add @xinyixiang for code


Stronger TS types for event handlers

Is your feature request related to a problem? Please describe.
The current TypeScript types for the @adyen/adyen-web package include some any types, e.g. in the onChange handler for the AdyenCheckout component. This makes for a less-than-ideal developer experience.
Describe the solution you'd like
I'd love to see stronger typing for this module.
Describe alternatives you've considered
We're currently creating home-grown types to work around this, but we'd prefer this to be native to the library.
Additional context
Here is an example of an any that I'd like to see typed more strongly.

I personally would like to see a TS declarations repo, i.e. @types/adyen

Hey @brodyd795,
Thanks for the feedback. The good news is that we are revamping the whole typescript types for the next major release, which should happen in the following weeks, and there are improvements for the any types.
Could you share a bit more the details in how are you using this 'home-grown types' ? Maybe a code snippet showing how you are narrowing down and differentiating types. That can bring some insights for us.

@ashrafnazar there is no intention to have a TS declaration repo, since the library is already typed and it also export the types.

@ribeiroguilherme - could this prove to be a problem where the moduleResolution property in .tsconfig files?

@ashrafnazar I don't understand your point. Can you elaborate better the issue?

@ribeiroguilherme I think @ashrafnazar refers to when we set the moduleResolution to bundler in .tsconfig.json file, it's a new type of moduleResolution that came with Typescript 5.
The problem with this type of moduleResolution, is that it only looks to the files exposed through the exports field of @adyen/adyen-web library. When moduleResolution is bundler, then we cannot import the types directly with relative paths, for example:
import SecuredFieldsElement from '@adyen/adyen-web/dist/types/components/SecuredFields'

This will gave a error, because the exports field of the package points to a ./dist/types/index.d.ts with this content:
import { CoreOptions } from './core/types';
import Checkout from './core';
declare function AdyenCheckout(props: CoreOptions): Promise<Checkout>;
export default AdyenCheckout;

This is ./dist/index.d.ts from<EMAIL_ADDRESS>the unique type available to import is the constructor of AdyenCheckout

Is there an ETA for v6?

Could you share a bit more the details in how are you using this 'home-grown types' ? Maybe a code snippet showing how you are narrowing down and differentiating types. That can bring some insights for us.

@ribeiroguilherme Sure!
The AdyenCheckout configuration has an onChange handler that takes a single parameter of state, which is currently typed as any, so we've built this custom type until y'all get time to add stricter types for it.

type AdyenPaymentData = {
  paymentMethod: {
    type: string;
    checkoutAttemptId: string;
  };
  // ...etc
};

type AdyenPaymentState = {
  data: AdyenPaymentData;
  errors: Record<string, unknown>;
  valid: Record<string, unknown>;
  isValid: boolean;
};

@brodyd795 thanks for sharing!
You can already preview it here . We can provide types for most of the properties, except the ones available inside the paymentMethod field, as they are dynamic based on the payment type.
Out of curiosity - why are you using the onChange handler and not relying on the onSubmit?
@ashrafnazar  - we are aiming to release the beta version this month along with the migration guide/release notes. We will announce it on this thread . Feel free to subscribe for updates

Hi guys - we released v6.0.0 which contains many improvements. One of them is improving the Typescript type definitions we have, so please check it out and let us know if you notice/miss something! Cheers


A memory leak  using Dask.DataFrame.apply

Hello, I implemented a logic to divide a list into multiple list  but got the errors. Appreciate it if anyone have an idea about it.
2023-11-11 01:57:31,460 - distributed.worker.memory - WARNING - Unmanaged memory use is high. This may indicate a memory leak or the memory may not be released to the OS; see https://distributed.dask.org/en/latest/worker-memory.html#memory-not-released-back-to-the-os for more information. -- Unmanaged memory: 7.15 GiB -- Worker memory limit: 9.15 GiB
2023-11-11 01:57:36,113 - distributed.worker.memory - WARNING - gc.collect() took 1.440s. This is usually a sign that some tasks handle too many Python objects at the same time. Rechunking the work into smaller tasks might help.
2023-11-11 01:57:36,113 - distributed.worker.memory - WARNING - Worker is at 81% memory usage. Pausing worker.  Process memory: 7.41 GiB -- Worker memory limit: 9.15 GiB
2023-11-11 01:57:37,171 - distributed.worker.memory - WARNING - Worker is at 78% memory usage. Resuming worker. Process memory: 7.17 GiB -- Worker memory limit: 9.15 GiB

max_seq_len = 2048
ddf["nest_ids"] = ddf.apply(lambda x : [ x['ids'][i : i+max_seq_len] for i in range(0, len(x['ids'] ), max_seq_len)], axis=1,  meta=(None, 'object'))
pdf = pdf.explode("nest_ids")

Anything else we need to know?:
Environment:

Dask version: '2023.10.1'
Python version: 3.10.9

Thanks for your report. This log message is sometimes a little misleading. If your computations (e.g. the lambda function or the explode) themselves require a lot of memory, this can trigger this warning as well.
The fact that there is a GC warning immediately afterwards probably suggests that the lists you are creating in this apply step are actually pretty large and probably require a lot of memory, particularly if you are exploding it afterwards immediately.
I don't think this is a memory leak but I wonder if you can rewrite your computation to avoid the apply since applys are almost always very slow and in your case probably also very memory hungry.
Can you share some toy example? Maybe somebody has a suggestion to improve this that makes everything a little more efficient

Thanks @fjetter. You are correct and it consumes large memory. I will try map_partition to do that. Thanks.


Cannot find module pinia/dist/pinia when store is used from server/plugins defineNitroPlugin only when built

Environment

Operating System: Darwin
Node Version:     v18.13.0
Nuxt Version:     3.3.1
Nitro Version:    2.3.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      imports, inlineRSSStyles, modules, sourcemap, runtimeConfig
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-ufjyfr-15hrmu?file=nuxt.config.ts,app.vue,middleware%2Ftest.global.js,server%2Fplugins%2Ftest.js
Try to build with yarn build and run node .output/server/index.mjs
Describe the bug
I'm using pinia store in server/plugins to adjust SSR output html content, it works just fine in yarn dev but fails when I build the project with:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../project/.output/server/node_modules/pinia/dist/pinia' imported from .../project/.output/server/index.mjs
I see .mjs file is present in the path it's searching: .../project/.output/server/node_modules/pinia/dist/pinia.mjs.
Additional context
No response
Logs
No response

I suspect this is an issue for the pinia module, and not nuxt itself. Pinia probably did not foresee being used directly within nitro, outside of a Vue context (and indeed, I am not sure whether this is a good idea).
Would you try adding pinia to build.transpile or alternatively setting alias.pinia to pinia/dist/pinia.mjs?

After Upgrading from 3.0.0
 ERROR  Cannot find module 'pinia/dist/pinia.mjs'                                        21:09:59
Require stack:
- /Users/rashidpathiyil/Sites/mmp/syndication/index.js

  Require stack:
  - index.js
  at Module._resolveFilename (node:internal/modules/cjs/loader:939:15)
  at Function.resolve (node:internal/modules/cjs/helpers:108:19)
  at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:241025)
  at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:259:29)
  at setup (node_modules/@pinia/nuxt/dist/module.mjs:22:60)
  at normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:169:41)
  at async installModule (node_modules/@nuxt/kit/dist/index.mjs:451:15)
  at async initNuxt (node_modules/nuxt/dist/index.mjs:2469:7)
  at async loadNuxt (node_modules/nuxt/dist/index.mjs:2523:5)
  at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:539:19)

I've had a chance to check the reproduction, and this configuration solves that issue:
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
  modules: ['@pinia/nuxt'],
  nitro: {
    alias: {
      pinia: 'pinia'
    }
  }
});

However, I believe you will find that pinia must be installed as a Vue plugin and so it will not work in your server routes, which are run/processed entirely outside of a Vue context. (Feel free to open a discussion in https://github.com/vuejs/pinia about using pinia outside of a Vue context.)

I got this err after adding your configuration
  at useStore (./.output/server/node_modules/pinia/dist/pinia.prod.cjs:542:20)
  at ./.output/server/chunks/profile.mjs:66:18
  at ./.output/server/node_modules/h3/dist/index.mjs:1191:47
  at async Object.handler (./.output/server/node_modules/h3/dist/index.mjs:1247:19)
  at async toNodeHandle (./.output/server/node_modules/h3/dist/index.mjs:1322:7)
  at async ufetch (./.output/server/node_modules/unenv/runtime/fetch/index.mjs:9:17)
  at async $fetchRaw2 (./.output/server/node_modules/ofetch/dist/shared/ofetch.502a4799.mjs:180:24)
  at async useCustomFetch (./.output/server/chunks/app/_nuxt/helper-25f0b410.mjs:242:15)
  at async User.profile (./.output/server/chunks/app/_nuxt/user-8826e62b.mjs:84:22)
  at async ./.output/server/chunks/app/_nuxt/guest-7ef160a5.mjs:37:92```

I also faced this issue when using pinia store from a private npm package. Luckily, the above configuration resolved the issue.


Make react 16 and react-native 0.49 happy

Two changes:

PropTypes now imported from prop-types package
Image component should not have children, so using ImageBackground

@sbycrosz allot of pull requests are waiting - and 4.1 is not handling breaking changes issues as promised. Can you please review some of those pull requests?


Add Tierney Cyren

Adds me to the list. Hopefully I got everything right – pretty unfamiliar with PowerShell.

OPS Build status updates of commit 59fd7f7:
:clock10: Preparing: average preparing time is 40 sec(s)

OPS Build status updates of commit 59fd7f7:
:clock10: Incremental building: average incremental building time is 30 sec(s)

OPS Build status updates of commit 59fd7f7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/index.html.yml
:white_check_mark:Succeeded
View

advocates/map.yml
:white_check_mark:Succeeded
View

advocates/media/profiles/tierney-cyren.png
:white_check_mark:Succeeded
View

advocates/tierney-cyren.yml
:white_check_mark:Succeeded
View

advocates/toc.yml
:white_check_mark:Succeeded
View

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


weird entry for mame at es_systems.cfg

i'm trying to use this for mame stuff (games, demos, etc.)
[code]
mamemamemamemame
.zip
mame -video soft -resolution0 754x448 -aspect 41:32 -skip_gameinfo -nowindow -rp /mnt/sda4/misc/emulation/misc/arcade/roms %ROM%
/mnt/sda4/misc/emulation/misc/arcade/roms
[/code]
the problem is that path seems to need to be repeated inside command (-rp argument) - and anything inside other directories simply doesn't work (like demos or homebrews using mame game profiles, like that amazing Jim Bagley’s PacManicMinerMan) - i guess would be great if we could have a %ROMPATH% or something like that?

That shouldn't be needed as far as I'm aware. MAME should always search the same folder as the current ROM file for any other required ROM files. Simply don't specify "-rp" and you should be ok, it'll assume all the ROMs are present in the requested ROM's folder.
That, or set your ROM PATH in the mame.ini file, which in turn will be used whenever you run MAME anyway, negating the need to use it as a command line option.

i'll try, thanks
but i think your second suggestion would not work on homebrews on other directories, like PacManicMinerMan should be loaded as pacman, and if you only access only directory, you have to choose for having this or the original available, not both in different directories

In that instance, I think you'd need to set your actual real MAME ROM folder in your mame.ini and then load your homebrew game directly via the command line. That way MAME would use any required/supporting ROMs from your main ROM folder but still launch the game itself from the path you've told it to use.


Error on Creation of New Disciplinary Action

When you create a new Disciplinary Action, you get the following error:
Disciplinary Action new-disciplinary-action-{Random String} not found, this is due to the way in which the checking of sanction validity periods is implemented in the DocType, it does not break functionality as you can create a document and then continue without problems, however needs attention.

All issues resolved.


Problem on building target with GPU support

Result of bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer:
ERROR: /home/darth/.cache/bazel/_bazel_darth/08554d152596e5a7df399506682a63f3/external/local_config_cuda/crosstool/BUILD:4:1: Traceback (most recent call last):
    File "/home/darth/.cache/bazel/_bazel_darth/08554d152596e5a7df399506682a63f3/external/local_config_cuda/crosstool/BUILD", line 4
        error_gpu_disabled()
    File "/home/darth/.cache/bazel/_bazel_darth/08554d152596e5a7df399506682a63f3/external/local_config_cuda/crosstool/error_gpu_disabled.bzl", line 3, in error_gpu_disabled
        fail("ERROR: Building with --config=c...")
ERROR: Building with --config=cuda but TensorFlow is not configured to build with GPU support. Please re-run ./configure and enter 'Y' at the prompt to build with GPU support.
ERROR: no such target '@local_config_cuda//crosstool:toolchain': target 'toolchain' not declared in package 'crosstool' defined by /home/darth/.cache/bazel/_bazel_darth/08554d152596e5a7df399506682a63f3/external/local_config_cuda/crosstool/BUILD.
INFO: Elapsed time: 0.097s

And yes, I have GPU enabled when I did sudo ./configure

I installed oracle-java8-installer, and did a sudo apt-get upgrade bazel. But it said that my GPU was disabled, so I repeated the ./configure. But it had an error: ERROR: /home/darth/tensorflow/tensorflow/contrib/tfprof/tools/tfprof/BUILD:22:1: no such package '@linenoise//': Error cloning repository: Unexpected end of file from server caused by Unexpected end of file from server caused by Unexpected end of file from server and referenced by '//tensorflow/contrib/tfprof/tools/tfprof:tfprof'.

@tatatodd Hello?

@AFAgarap This looks similar to #4105
Based on that issue, you might try the following:
$ bazel clean
$ ./configure # make sure to choose gpu support
$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

If that doesn't work, please cut-and-paste the result of the above commands, including the exact values you entered for the ./configure call.  Also include the below information:

Environment info
Operating System:
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):
If installed from binary pip package, provide:

A link to the pip package you installed:
The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from source, provide

The commit hash (git rev-parse HEAD)
The output of bazel version

@tatatodd I met the same issue. And I do configure with CUDA enabled. Do you have any solutions for this issue?
$git rev-parse HEAD
8e48ec6ea0492e2cb9fd19c0a2ccf41afc7b4dc6
$bazel version
INFO: $TEST_TMPDIR defined: output root default is '/gruntdata/houge/tmp'.
Found stale PID file (pid=18305). Server probably died abruptly, continuing...
.
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>
Thanks

@AFAgarap @tatatodd I found a work around method to fixed this issue in my machine.
In ./third_party/gpus/cuda_configure.bzl file, there is a function to check whether cuda is enabled,
def _enable_cuda(repository_ctx):   if "TF_NEED_CUDA" in repository_ctx.os.environ:     enable_cuda = repository_ctx.os.environ["TF_NEED_CUDA"].strip()     print (enable_cuda)     return enable_cuda == "1"   return False
In my case, even I run the configure with CUDA enabled. The environment variable "TF_NEED_CUDA" was still no in the list of repository_ctx.os.environ. So It would said CUDA was not enabled when compiled from source. Then I export "TF_NEED_CUDA=1" in my ~/.bashrc. And it compiled successfully.
So I am not sure whether it works for your case? @AFAgarap

I was suspecting that there was some problem with the code or something, but wasn't sure where or which module would it be. Thanks for this, @jihunchoi I'll try it later.

$ git rev-parse HEAD
$ 36ebbf1ddc3ed820b7a5572ff4ed8e9bc707b8e5
$ bazel version
Killed non-responsive server process (pid=12228)
.
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

$ /usr/bin/bazel version
Killed non-responsive server process (pid=25627)
.
Build label: 0.3.2
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Oct 7 17:25:10 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

I have two bazel installed because I've read somewhere that bazel-0.3.1 is the one that works for TF. @tatatodd

Hello @AFAgarap, I think you had intended to tag @jinhou but tagged me by mistake :)

@tatatodd
I have met the same issue.
$ git rev-parse HEAD
73b01567d68d4639d2329deb335ddfcd9c04f87c
$ bazel version
.
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

@jihunchoi Sorry, my bad. :grinning:

@jinhou Nope, it didn't solve my problem. :disappointed:

@jinhou When it is building, it crashes at some point. :disappointed:

I have tensorflow installed using binary, with CUDA 8.0, and cuDNN 5.0.
Does the binary-installed tensorflow has anything to do with this failure to build from source? @tatatodd @jinhou

@AFAgarap See related issue #4910
We don't support CUDA 8.0 yet. It will be supported soon. Right now we only officially support 7.0 - 7.5. Please see #2559 which is tracking this. There's also #4895 which encountered this issue on the same version of Ubuntu.
I'm closing this out, but feel free to comment on this issue or file a new issue if you have a different problem.

@tatatodd You do not support CUDA 8 yet for building from sources? Because the one I installed using binary pip is working out fine.

@AFAgarap We plan on CUDA 8 support to come officially in TensorFlow version 0.11rc1.
In general there is no difference in features between our binary and source releases at a particular version.  I.e. our binaries are built out of our sources at a particular version.
In the meantime if you're building from sources, and want to use CUDA 8, you'll need to ensure you have a fresh enough version of the sources, that hasn't introduced some other silly bug.  Once 0.11rc1 has been released you can just use that as a stable point in the codebase.

@tatatodd Thank you. Though with the binary installation TensorFlow, I've been able to do inception. Is that okay? I mean, is it required to build TensorFlow from sources to use inception? I mean, perhaps there are just some "underground" bugs happening to my install that I'm not aware.

@AFAgarap If the binary TensorFlow that you're using seems to work for Inception, I wouldn't worry about it too much in the short-term.  But I would recommend you upgrade to version 0.11rc1 when it is available.

@tatatodd Thank you. Though with the binary installation TensorFlow, I've been able to do inception. Is that okay? I mean, is it required to build TensorFlow from sources to use inception? I mean, perhaps there are just some "underground" bugs happening to my install that I'm not aware.

In the short-term? Why? Will it have a problem? And yes, I'll upgrade to version 0.11rc as soon as you deploy it.

I performed a ./configure with GPU enabled, the build did not work.
GPU support will be enabled for TensorFlow
bazel build  -c opt --verbose_failures --config=cuda //tensorflow/tools/pip_package:build_pip_package
INFO: $TEST_TMPDIR defined: output root default is '/scratch/local/hpcapps/bazel'.
..............
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
ERROR: /scratch/local/hpcapps/bazel/_bazel_hpcapps/9854aab478a0076ff75539c378bcd3e3/external/local_config_cuda/crosstool/BUILD:4:1: Traceback (most recent call last):
File "/scratch/local/hpcapps/bazel/_bazel_hpcapps/9854aab478a0076ff75539c378bcd3e3/external/local_config_cuda/crosstool/BUILD", line 4
error_gpu_disabled()
File "/scratch/local/hpcapps/bazel/_bazel_hpcapps/9854aab478a0076ff75539c378bcd3e3/external/local_config_cuda/crosstool/error_gpu_disabled.bzl", line 3, in error_gpu_disabled
fail("ERROR: Building with --config=c...")
ERROR: Building with --config=cuda but TensorFlow is not configured to build with GPU support. Please re-run ./configure and enter 'Y' at the prompt to build with GPU support.
ERROR: no such target '@local_config_cuda//crosstool:toolchain': target 'toolchain' not declared in package 'crosstool' defined by /scratch/local/hpcapps/bazel/_bazel_hpcapps/9854aab478a0076ff75539c378bcd3e3/external/local_config_cuda/crosstool/BUILD.
INFO: Elapsed time: 2.299s
I did a bazel clean and a new configure, and:
bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer   (see above)
I now got:
INFO: $TEST_TMPDIR defined: output root default is '/scratch/local/hpcapps/bazel'.
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
INFO: Found 1 target...
ERROR: /scratch/local/hpcapps/tensorflow/tensorflow/core/kernels/BUILD:271:1: null failed: protoc failed: error executing command bazel-out/host/bin/external/protobuf/protoc '--cpp_out=bazel-out/local_linux-opt/genfiles/' -I. -Iexternal/protobuf/src -Ibazel-out/local_linux-opt/genfiles/external/protobuf/src ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by bazel-out/host/bin/external/protobuf/protoc) bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version CXXABI_1.3.8' not found (required by bazel-out/host/bin/external/protobuf/protoc)
bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by bazel-out/host/bin/external/protobuf/protoc)
Target //tensorflow/cc:tutorials_example_trainer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 517.714s, Critical Path: 507.68s
PS: My OS is centos6
Linux kp298 2.6.32-642.6.2.el6.x86_64
Thanks,
Wim

@jinhou you are the man! Exporting the environment variable worked for me!
`
export TF_NEED_CUDA="1"
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 --copt=-msse4.1 --copt=-msse3 --config=cuda -k //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
`

Thanks @jinhou, exporting TF_NEED_CUDA = "1" did the trick for me. Just curious, how did you find this out?

export TF_NEED_CUDA="1" solved the issue for me also, thanks @jinhou
My system: Ubuntu 16.10, Cuda 8.0.61, Cudnn8.0, NVIDIA linux 378.13 (.run).

I'll also confirm this works when building from source. I assume this error somehow made it back into the master branch.

This still seems to be an issue. I have Ubuntu 14.04 and export TF_NEED_CUDA="1" solved the issue.

Had to also export CUDNN_INSTALL_PATH for Bazel to recognize CuDNN.

Is there any way to enabling the GPU support programatically, but not via some terminal input (Y vs N)?
@goldsborough what is the value of the variable? I suggest it is simply /usr/lib64 (I am on gentoo system):
andromeda /var/lib/layman/archenroot/sci-libs/tensorflow # equery f nvidia-cuda-cudnn
 * Searching for nvidia-cuda-cudnn ...
 * Contents of dev-libs/nvidia-cuda-cudnn-7.0:
/usr
/usr/include
/usr/include/cudnn.h
/usr/lib64
/usr/lib64/libcudnn.so -> libcudnn.so.7
/usr/lib64/libcudnn.so.7 -> libcudnn.so.7.0.4
/usr/lib64/libcudnn.so.7.0.4
/usr/lib64/libcudnn_static.a

Ok, small update, I had to export some other variable, here is whole content from Ebuild, important is phase configure where I export related variables:
# Copyright 2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
PYTHON_COMPAT=( python{2_7,3_4} pypy )

inherit eutils multiprocessing distutils-r1 git-r3

DESCRIPTION="Library for Machine Intelligence"

HOMEPAGE="https://www.tensorflow.org/"
SRC_URI=""
EGIT_REPO_URI="https://github.com/tensorflow/tensorflow"
EGIT_COMMIT="c9568f1ee51a265db4c5f017baf722b9ea5ecfbb"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
IUSE="-cuda -opencl"
RESTRICT="primaryuri"

RDEPEND="
	>=dev-python/numpy-1.11.2-r1
	>=dev-python/six-1.10.0
	cuda? (
          >=dev-libs/nvidia-cuda-cudnn-7.0
	  >=dev-util/nvidia-cuda-toolkit-8.0.61
          >=x11-drivers/nvidia-drivers-3.78.13
        )
"

DEPEND="
	dev-python/setuptools
	>=dev-util/bazel-0.7.0[tools]
	>=dev-java/oracle-jdk-bin-<IP_ADDRESS>-r1
	>=dev-python/markdown-2.6.9
	>=dev-python/werkzeug-0.12.2
	>=dev-python/bleach-1.5.0
	>=dev-python/protobuf-python-3.4.1
	>=dev-python/pip-9.0.1-r1
	>=dev-python/wheel-0.29.0
	>=dev-lang/swig-3.0.12
	${RDEPEND}
"

#src_prepare() {
	#sed -i -e 's/protobuf == 3.0.0a3/protobuf >= 2.6.0/g' \
	#tensorflow/tools/pip_package/setup.py
#}

src_configure() {

	export CUDNN_INSTALL_PATH="/usr/lib64"
	export TF_NEED_CUDA="1"
	export TF_CUDA_VERSION="9.0"
	export TF_CUDNN_VERSION="7"
	yes "" | ./configure

	cat > CROSSTOOL << EOF
tool_path {
	name: "gcc"
	path: "${CC}"
}
tool_path {
	name: "g++"
	path: "${CXX}"
EOF

	echo "Will build with $(makeopts_jobs) jobs"

}

src_compile() {
	addwrite /proc/self
	# Added from bazel ebuild.. I am blind here as I don't understand deeply bazel itself :-)
	addpredict /proc
	elog "Compile Phase - Starting"

	local JAVA_HOME_DECL="$(java-config --print oracle-jdk-bin-1.8 | grep JAVA_HOME)"
	eval "export $JAVA_HOME_DECL"

	# Add /proc/self to avoid a sandbox breakage
	local -x SANDBOX_WRITE="${SANDBOX_WRITE}"
	echo "SANDBOX_WRITE=$SANDBOX_WRITE"

	elog "Compile Phase - SANDBOX_WRITE"

	cat > bazelrc << EOF
startup --batch
build --spawn_strategy=standalone --genrule_strategy=standalone
build --jobs $(makeopts_jobs)
EOF
	export BAZELRC="$PWD/bazelrc"
	elog "Compile Phase - Bazel configured"
	bazel build \
	 --spawn_strategy=standalone --genrule_strategy=standalone \
	 --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
	 elog "Compile Phase - Bazel build finished"
}

src_install() {
	elog "Install Phase - Starting"
	bazel-bin/tensorflow/tools/pip_package/build_pip_package "$PWD/tensorflow_pkg"
	elog "Install Phase - PIP package finished"
	local ALFA="$(find /tmp/empty* -type f -exec sh -c 'echo $(basename {})' \;)"
	local TENSORFLOW_WHEEL_FILE="$(find $PWD/tensorflow_pkg/tensorflow* -type f -exec sh -c 'echo $(basename {})' \;)"
	pip install --root "${ED}" "$PWD/tensorflow_pkg/$TENSORFLOW_WHEEL_FILE"
	elog "Install Phase - PIP install finished"
	rm -rf "${ED}"/usr/lib*/python*/site-packages/google/protobuf
	elog "Install Phase - removal of some files"
}

And this works, or in minimum I was able to finish compilation and installation process with CUDA 9 and CUDNN 7, now I will do some hello world test....


Small Viewfinder API 24 and below (Only affects 9:16 aspect)

JCA version:
1.0.0
Device:
physical LG-M153 API 23,
emulator original Pixel API 24,
emulator Pixel 7 Pro API 24,
Steps to reproduce:
run app on device with API 24 or below and make sure 9:16 aspect ratio is selected.
Expected:
viewfinder fits screen and has black bars where necessary
Observed:
viewfinder size is very small and has over-sized black bars on bottom and right side
Remarks
tested on API 21-35 with different resolutions this seems to only affect API 24 and below with 9:16 aspect.
emulator Pixel 7 Pro API 24

emulator Pixel API 24

physical LG Fortune(M-153) API 23

@Sk8aaron We currently have an issue with rendering SurfaceView backed Viewfinder in API <= 24. Until the issue is fixed there. I've changed it so this app will use the EMBEDDED implementation mode (TextureView backed)

Is there a fix to this yet?


libtinfo: init at 6.4

Motivation for this change
Continuing the discussion from https://github.com/NixOS/nixpkgs/pull/279844 . I think some users might need this build of ncurses - with the postFixup hook turned off, and with termlib support turned on. tests.buildFHSEnv.libtinfo is cleaner with this change.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

On a 2nd thought, there is no reason why this should be a draft.

@doronbehar I have to admit that I don't really know what libtinfo really is.
I'm probably not the right reviewer for this, but I'm still interested in learning.
Do you have any links for me?

libtinfo is a library certain build of ncurses that is distributed by other many distributions. See for example Debian's:
https://packages.debian.org/search?suite=sid&searchon=names&keywords=libtinfo
I encountered the need for this library in https://github.com/NixOS/nixpkgs/pull/279844 that managed to reproduce an buildFHSEnv that couldn't get a Nix replacement for a libtinfo package.
I asked for your review because this has been sitting here for a while, and you also touched a bit the Nix arguments of this package.

@doronbehar I don't see anything disagreeable, but I don't see where the package.nix is used.
I also don't know if the default should be false.
I also don't have commit rights :shrug:

I don't see where the package.nix is used.

See https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name#name-based-package-directories

I also don't know if the default should be false.

That's in order not to trigger too many rebuilds for a feature no body really misses.

I also don't have commit rights 🤷

Yes but still your approval could have gave me confidence to self merge. If you don't feel comfortable, that's OK, I'll find someone else :).

I don't see where the package.nix is used.

See https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name#name-based-package-directories

Cool!
That seems new :)

I also don't know if the default should be false.

That's in order not to trigger too many rebuilds for a feature no body really misses.

Fair enough.

I also don't have commit rights 🤷

Yes but still your approval could have gave me confidence to self merge. If you don't feel comfortable, that's OK, I'll find someone else :).

Yeah I definitely don't feel comfortable :)

Closed by mistake...


Fix ref renaming

Waiting for assembly manager helps this case  fixed here https://github.com/cmdcolin/jb2export/commit/46a977dfd9ac2d69ad3903da503af5934465d2ba


⚠ SpeakUpForHope.org has degraded performance

In 50b4f80, SpeakUpForHope.org (https://www.speakupforhope.org) experienced degraded performance:

HTTP code: 200
Response time: 13529 ms

Resolved: SpeakUpForHope.org performance has improved in 15a1929 after 1 hour, 50 minutes.


collect multiple install errors before failing

Needing to run install several times in a row to get one successive error is a tedious chore, instead let's collect them and return them all at once.

@forki the last commit takes care of the bug I found yesterday.

Cool thanks. Can you please send another pull request that adds this to the release notes? Thx
BTW next week I want to go rc or even release paket 4

@forki like this #2181 ?

I meant an actual text entry with the feature description ;-)
Am 10.03.2017 01:49 schrieb "Jared Hester"<EMAIL_ADDRESS>
@forki https://github.com/forki like this #2181
https://github.com/fsprojects/Paket/pull/2181 ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/2177#issuecomment-285536960,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNK2SZGuhW8RAAxzaZyDo4T4wXMP7ks5rkJ39gaJpZM4MVM6-
.


error 500 replacing header.jpg

Hi, I just updated a new image which was intended to replace the default header.jpg in tesselate theme
So I just uploaded a jpg in
user/themes/tessellate/assets/images folder
image
Now this is causing an error 500. Any Idea why? I've tried reducing the size of the image, and clearing the cache. To no avail.

Hi, I will move the image from template to pages to change it easily. Anyway, it looks like your site misses the error plugin https://github.com/getgrav/grav-plugin-error: could you verify and install it if it misses?

mmhh. weird. I have that plugin installed. What could be the reason for that?

just to know, how can I replace the image without causing a 500 error? Is it depending on image itself or in some configuration missing/misconfigured?

i managed to replace the image lowering the quality so that the file size matches the other file (59KB). Is that useful to understand why this is happening? Is this theme related or grav related?
Thanks

Hi, I tried to change the image on my development site and it works. Could you send me your original image at info At diblas [Dot] net so I can try with your one too?

Hello, this was the original image I tried to use to replace the header.jpg
https://images.unsplash.com/photo-1433840496881-cbd845929862?q=80&fm=jpg&s=c9a1a21dbf8a9d16477ea4b54afc8a48
After the first error, I tried saving the image with the exact same height and width as the original. Only when I reached the original size of the image, which was 59K, decreasing the quality, the site started working.


feat: add redfish support

Support basic (a limited set) Redfish resource retrieval and actions including:

get power status
power actions
set boot device

Redfish resource models and API services are generated from the Redfish OpenAPI spec (trimmed and based on DSP8010 2024.03) via openapi-generator.
Related issue: #2

For better compatibility, I decided to downgrade the Redfish schema a bit from 2024.3 to 2023.3.


test(timeseries): add testcases to time series card

add testcases for timeseries card and dashboard header

@scottdickerson looks like coveralls is stuck. Any idea how to debug?

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Helm 3.2.4 installed with brew is bad

Output of helm version:
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"dirty", GoVersion:"go1.14.3"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T23:35:15Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-eks-af3caf", GitCommit:"af3caf6136cd355f467083651cc1010a499f59b1", GitTreeState:"clean", BuildDate:"2020-03-27T21:51:36Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.):
AWS EKS
The version of helm 3.2.4 (latest) when installed with brew does not work properly. A common error received is:
Error: template: <redacted> executing "<redacted>/templates/persistentVolumes.yaml" at <(len $volumeDict.accessModes) gt 0>: can't give argument to non-function len $volumeDict.accessModes
This exact chart works file with the helm version downloaded from the 3.2.4 release page, and the error has been replicated for many people on many different Mac computers.

@tculp this is an error from Go 1.14 reporting that your template syntax is wrong. Use (gt (len $volumeDict.accessModes) 0) instead.

The text/template package now correctly reports errors when a parenthesized argument is used as a function. This most commonly shows up in erroneous cases like {{if (eq .F "a") or (eq .F "b")}}. This should be written as {{if or (eq .F "a") (eq .F "b")}}. The erroneous case never worked as expected, and will now be reported with an error can't give argument to non-function.

From https://golang.org/doc/go1.14
See also https://github.com/helm/helm/issues/8311 and #7711.

Interesting, thanks


Added functionality to pull and directly create an instance from a file

This functionality was previously missing.

Looks perfect, good job Neon. ❤


Unable to create Web App +DB under lab

Hello,
In the Monitoring application performance with application insight lab Monitoring Application Performance with Application Insights | Azure DevOps Hands-on-Labs (azuredevopslabs.com)
As well as in another lab,
We requested to create a web app + database.
I don’t have permissions to create is under any of the subscriptions in the list and there is no subscription as Visual Studio Enterprise as it mention in the lab.
Please advise how to create this Web app as it is needed in more than one lab.

I´m facing the same issue.


arity (and probably others) only consider the first lexically present function

andrei (@andralex) reported this on 2017-10-26T16:18:32Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=17941
CC List

dechcaudron+issues.dlang
ketmar
simen.kjaras

Description
Consider:

import std.traits;

void fun(int);
void fun(int, int);

void gun(int, int);
void gun(int);

static assert(arity!fun == 1);
static assert(arity!gun == 2);

This code passes, indicating that only the first name in lexical order of an overload set is considered by arity. This is definitely surprising. Worst case the behavior should be documented, but a real solution would allow people to indicate which overload they're interested in.

simen.kjaras commented on 2017-10-27T21:22:29Z
This happens for all templates in std.traits that deal with properties of functions. Making the templates fail when presented with an under-specified overload set would be a breaking change, but documenting the behavior is definitely worth it.

Phobos currently does not have good tools for working with overload sets - __traits(getOverloads) is what we've got, and finding a specific overload is manual work. In order to fix that part of the problem, I've created getOverloads and overloadFor: https://github.com/dlang/phobos/pull/5818

simen.kjaras commented on 2018-01-28T01:59:19Z
*** Issue 18314 has been marked as a duplicate of this issue. ***

simen.kjaras commented on 2018-01-28T15:20:24Z
(In reply to dechcaudron+dlang.issue.tracking from comment #3)
> Maybe allow something of the sort
>
> static assert(arity!fun(int) == 1);
> static assert(arity!gun(int, int) == 2);

arity is an interesting case here, since it's hard to get the correct overload without knowing the arity already. :p

The PR mentioned above would get the correct arity this way:

static assert(arity!(overloadFor!(fun, int)) == 1);
static assert(arity!(overloadFor!(gun, int, int)) == 2);

> I had reported this as a Phobos issue (see above), but since it has been
> marked as a duplicate for a dmd one, there's not much I can do. Compiler
> stuff is still magic to me, I'm afraid.

Fixing the issue in DMD would break a *lot* of code, and so isn't really feasible. I'm pretty sure it's not really desirable either, since the new semantics would be at least as weird as what we have.

You could say the root issue is in DMD - templates operate on the first element when passed an overload set. The problem can however be ameliorated in Phobos, by giving programmers a way to specify which overload they mean.

dechcaudron+issues.dlang commented on 2018-01-28T05:37:01Z
> a real solution would allow people to indicate which overload they're interested in

Maybe allow something of the sort

static assert(arity!fun(int) == 1);
static assert(arity!gun(int, int) == 2);

?

I had reported this as a Phobos issue (see above), but since it has been marked as a duplicate for a dmd one, there's not much I can do. Compiler stuff is still magic to me, I'm afraid.


Index map from mo_coeff matrix to corresponding basis function

As far as we know the columns of the mo_coeff correspond to the basis functions use in the HF calculation. Could you please tell whether we can get the map between the column index and the corresponding basis functions used in the given HF calculation?
Thank you!

mo_coeff is defined as $C_{\mu i}$, where $\mu$ is the atomic orbital index and $i$ is the molecular orbital index.

Thank you for the answer, I may need to rephrase my question. I under  stand that \mu is the atomic orbital. In GTO-3g for example, each atomic orbital is associated to an atom and a specific atomic orbital represented as a weighted linear combination of Gaussian. For example for H2O, we should have 5 atomic orbitals, among those 5 AOs corresponding to 1s, 2s, 2px, 2py, 2pz of the atom O and 2 more AOs coresponding to 1s and 1s of two H atoms. In that case, \mu is the index of the seven AOs, my question is which values of the \mu correspond to  1s, 2s, 2px, 2py, 2pz of the atom O and which values of the \mu correspond to 2 more AOs coresponding to 1s and 1s of two H atoms?

The AOs are arranged atom by atom and shell by shell.
gto.mole.search_ao_nr can help you locate the specific AO.

Hi I found the following function that list the labels of the AOs, are the labels ordered with the same ordered of AOs defined in the mo_coeff?
# Create your molecular system
mol = gto.M(atom='H 0 0 0; O 0 0 1; H 1 0 0', basis='sto-3g')

# Perform an SCF calculation to get MO coefficients
mf = scf.RHF(mol)
mf.kernel()
me_coeff = mf.mo_coeff
idx = mol.search_ao_nr(1, 1, -1, 2) # O 2px
a = gto.sph_labels(mol)

The sph_labels are:
['0 H 1s    ', '1 O 1s    ', '1 O 2s    ', '1 O 2px   ', '1 O 2py   ', '1 O 2pz   ', '2 H 1s    ']


[GH-610] MerklePatriciaTree bug temporary workaround

MerklePatriciaTree has a bug that may be complicated to solve, but has easy workaround.
This bug showed itself in https://github.com/aeternity/elixir-node/issues/565. This workaround will allow further work on making our node compatible with epoch till we solve elixir-merkle-patricia-tree issues.
MerklePatriciaTree issues:

https://github.com/aeternity/elixir-merkle-patricia-tree/issues/10
https://github.com/aeternity/elixir-merkle-patricia-tree/issues/13

This solves #565

If we merge this, I will add an blocked issue: "Remove temporary workaround" so we don't forget.

@cytadela8 could you explain how this workaround works? as I see, reconstructing the whole tree each time?

@thepiwo yes, that's what it does. It works, because updating entries in MerklePatriciaTree triggers some bug in the library. We didn't find any problems when each key is inserted only once. I opened an issue on elixir-merkle-patricia-trie repo.