Add general merge API

Data.Map and Data.IntMap offer merge and mergeA operations that can take unions, intersections, differences, etc. We should be able to do something quite similar here. I suspect optimal merge will have to be a bit different from mergeA rather than just a specialization, thanks to the way arrays work. Also, as I've explored in a slightly different context, mergeA can probably be implemented particularly efficiently for certain transformer stacks on top of IO or ST s, again thanks to the mutable array business. Dunno if that sort of thing is worth bothering with.

This addition would help us address the feature requests #240 and #242.
I guess implementing merge and testing it against the Data.Map version would be a good first step!?

This should be the right type, no?
merge :: (Hashable k, Eq k)
             => SimpleWhenMissing k a c -- ^ What to do with keys in @m1@ but not @m2@
             -> SimpleWhenMissing k b c -- ^ What to do with keys in @m2@ but not @m1@
             -> SimpleWhenMatched k a b c -- ^ What to do with keys in both @m1@ and @m2@
             -> HashMap k a
             -> HashMap k b
             -> HashMap k c

Could the merge strategies ([Simple]WhenMissing etc) simply be copied from http://hackage.haskell.org/package/containers-<IP_ADDRESS>/docs/Data-Map-Merge-Lazy.html?

That's the general idea. You'll probably want to look at the Data.IntMap version too. The hard part is figuring out how mergeA should work. The rest is much easier.

@BebeSparkelSparkel would you possibly interested in working on this?

I am concerned about the the performance of foldr (merge f0 f1 f2) mempty in my use case #240 . It looks like it would create a lot of maps during the fold.

@BebeSparkelSparkel Note that unions is also simply defined as foldl' union empty.
Do you have a more efficient implementation in mind?

I doubt a much more generally efficient implementation of unions is possible. It'll either be foldl' union empty or foldr' union empty, depending on the Foldable.

I was mistaken. foldr (merge f0 f1 f2) mempty is incorrect. What I actually need is more like fmap f0 . foldr (merge f0 f1 f2) mempty if using merge.
#240 details Foldable f => (NonEmpty a -> b) -> f (HashMap k a) -> HashMap k b has the merge and map while only creating the resulting HashMap.
It seems to me like #226 and #240 are not addressing the same problem.

I think I'll give merge a spin myself. It looks like a nice exercise for me to better understand the internals.

@sjakobi, any progress on this? I could help. In Sturdy we need a mergeA function to implement efficient widening operators.

@svenkeidel I have started working on merge in https://github.com/haskell-unordered-containers/unordered-containers/compare/sjakobi/226-merge, but realized that it's a bit much for a first project for someone who isn't really familiar with the internals.
I'd be very happy if you would take this over and implement mergeA and/or merge!
I'm curious about your usecase though! Does the order in which we sequence effects matter? I wasn't sure whether we could do anything better than keeping it completely arbitrary and unspecified.

I'm curious about your usecase though! Does the order in which we sequence effects matter? I wasn't sure whether we could do anything better than keeping it completely arbitrary and unspecified.

I need to combine two maps, while simultaneously finding out if a key in one of the maps was missing or one of the values in the resulting map has changed (https://github.com/svenkeidel/sturdy/blob/master/lib/src/Data/Abstract/Map.hs#L57-L67). mergeA is the perfect fit for that. The order of effects does not matter.
More generally, I think the order map entries should not matter since hashmaps are inherently unordered, hence the name of the library. If users rely on a predictable order of entries within the map, they have to use a different datastructure.

@oberblastmeister, how would you like to tackle this challenge while merging mechanics are still fresh in your mind?

@treeowl yes I would like to do this, but maybe after I do difference?

If you think that'll help you prepare! Another option would be to use mergeA to implement difference.

Yeah I think I'll use mergeA to implement difference. Though probably merge, because applicatives are bad on arrays right?

I'd feel more comfortable about adding functions like mergeA once we have tests for the internal invariants (https://github.com/haskell-unordered-containers/unordered-containers/issues/366).

Are we planning to make merge public, or only use it to implement functions like intersection, differrence, etc. Looking at containers merge seems to be internal.

merge should be public, as it is in containers. See e.g. https://hackage.haskell.org/package/containers-<IP_ADDRESS>/docs/Data-Map-Merge-Strict.html#v:merge.

Woops, I must have clicked the wrong one

I'd feel more comfortable about adding functions like mergeA once we have tests for the internal invariants (#366).

This is resolved BTW: basic tooling for invariant checking was added in #444. More tests are being added in #455.


Docker 1.12.3 has different permissions behavior than 1.12.2 for files bind-mounted over top of existing files

Description
Docker 1.12.3 has different permissions behavior than 1.12.2 for files bind-mounted over top of files already existing in the image.
Steps to reproduce the issue:

Create a Dockerfile:FROM busybox
RUN touch /asdf && chmod 644 /asdf

Build the image: docker build -t mytest .
Create a file locally and give it restrictive permissions: echo secret > asdf && chmod 400 asdf
Run the image created above as nobody while mounting the local file on top of the /asdf file in the image:docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest ls -l /asdf
docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest cat /asdf

On Docker 1.12.2 the results I receive are:
ckuehl@hal:/tmp/tmp.5JFqKZGCr1$ sudo docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest ls -l /asdf
-r--------    1 28460    1000             7 Nov  4 23:22 /asdf
ckuehl@hal:/tmp/tmp.5JFqKZGCr1$ sudo docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest cat /asdf
secret

On Docker 1.12.3 the results I receive are:
ckuehl@hal:/tmp/tmp.5JFqKZGCr1$ sudo docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest ls -l /asdf
-r--------    1 28460    1000             7 Nov  4 23:22 /asdf
ckuehl@hal:/tmp/tmp.5JFqKZGCr1$ sudo docker run --user=nobody -v $(pwd)/asdf:/asdf:ro mytest cat /asdf
cat: can't open '/asdf': Permission denied

Additional information you deem important (e.g. issue happens only occasionally):
The new behavior seems like it's better, but I can't find anything relevant in the changelog, and we were surprised to see this behavior change in a patch release without any documentation. We may well have been relying on a bug, but if this is expected behavior, it'd be nice to at least have more context.
Output of docker version:
Client:
 Version:      1.12.2
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   bb80604
 Built:        Tue Oct 11 17:43:41 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.2
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   bb80604
 Built:        Tue Oct 11 17:43:41 2016
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 30
 Running: 0
 Paused: 0
 Stopped: 30
Images: 57
Server Version: 1.12.2
Storage Driver: devicemapper
 Pool Name: docker-0:37-37178-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: ext4
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 17.41 GB
 Data Space Total: 107.4 GB
 Data Space Available: 50.13 GB
 Metadata Space Used: 22.4 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.125 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.90 (2014-09-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host overlay null bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.7.0-0.bpo.1-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 48
Total Memory: 125.9 GiB
Name: hal
ID: IT5Z:JBGZ:CXGO:GFWD:TZ23:AJGU:LWTH:2VFW:77PP:2Y77:KF7Q:ARUD
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
Physical. /var/lib/docker is a tmpfs (it's unclear to me why docker info says it's ext4).

ping @justincormack is this related to the RunC change?

@chriskuehl Did you try this on any version other than 1.12.2? I suspect it would have given permission denied there as well.

Relevent change is likely this: https://github.com/docker/docker/pull/27610
This behavior would have only been in 1.12.2.

Yup, confirmed this behavior doesn't seem to exist in 1.12.0 or 1.12.1, so I think it's safe to say we were just relying on a bug.
Sorry for missing that in the changelog. I did read "Fix ambient capability usage in containers" but didn't consider it might be related to this issue. I'm happy to close this issue now.

Thanks, Chris! Sorry for the confusion!


Matrix manager

Add a matrix manager front end to #330 .

Matrix import will open a modal :

It will call a new endpoint /matrix/create (that takes a tsv file) which will parse the matrix file and create the matrix. Then it will call the /matrix/{id}/metadata endpoint to update the associated user metadata.


EtherBTC.io blacklisted as a phishing site is error

For some reason,  http://etherbtc.io, a website providing time sensitive information about the EtherBTC (ETHB) initial coin offering, is listed as a "known phishing site."  It is not a phishing site at all.  The only information we are requesting when someone is registering for our ICO is their name, email address, and their "wallet address," AKA their "account address," starting with 0x, which we need in order to send them free ETHB for registering and setting up their MyEtherWallet.
We'd greatly appreciate it if  you would remove http://etherbtc.io from your blacklist and instead, add it to your whitelist so anyone running metamask is not  scared away from registering for our ICO which takes place in 9 days.  Thank you for promptly making this change.

Please add it to the whitelist via PR. This is a community maintained project. You are part of the community.

Closed via #59

toi nhan duoc 1 ETHB, va toi khong biet lam gi voi no, no khong co gia tri tren thi truong


Let developers customize static resource serving for safer deployments to clusters without sticky sessions

Most cluster configurations are stateless and don't have sticky sessions, which makes them much simpler to work with. One problem with this though is if you load a page from version 2 of your website that contains the HTML <img src="/static/onlyOnV2.png" /> and then the browser tries to load the image (onlyOnV2.png) from a server that still has the version 1 code, the image won't load.
Even with sticky sessions you'll likely run into this problem if you put a read-through CDN (ex: AWS CloudFront) in front of your servers unless the stickiness of the web page gets propagated through your browser's request to the CDN as well. So basically if we can solve this without stickiness that'd be great.
Implementation idea:
One solution to this is to make all versions of the code be able to serve any static resource. When deploying a new version of the site, the first step is to upload the static resources to a shared database that the old version of the site can access. Then the second step is to deploy the code. Since the old version of the site can serve the new resources, we don't have the problem mentioned earlier.
A more concrete implementation of this idea that I imagine many people would use (especially together with content-addressed static resource URLs: https://github.com/zeit/next.js/issues/1473) is to upload their static resources to AWS S3 during the first step of deployment and then deploy the code in the second step of deployment. All AWS S3/CloudFront machines can serve both the new and old resources and this part of the deployment is safe.

I think this is not only for static resources but for assets including our JS code.
I hope we could easily do this without much effort.
I guess with Zeit Now's immutable deployment feature, this will make pretty simple.
Of course we need to have an way to work with any server CDN as well.


Refactor/remove rxcpp

SE field in Irohad class
Remove rxcpp from TransactionProcessorImpl
Use any_range in BlockLoader interface
Remove rxcpp from Synchronizer
Remove rxcpp from Simulator

@iceseer we can do it in this PR, it's just that it might be easier to merge this first. The changes are independent, and we can avoid possible merge conflicts with other PRs that might be opened.


V2 Websocket Support

This adds or modifies all the types required to interact with the full Kraken V2 websocket interface described by: https://docs.kraken.com/api/docs/websocket-v2/add_order

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Allow this when it appears in this is T positions

Fixes #59252

This has quite some commits that likely shouldn't be included in this PR :P

@typescript-bot test this

@typescript-bot test this


docker自己打包报错

#0 131.6  ETIMEDOUT  request to https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz failed, reason:
#0 131.6
#0 131.6 FetchError: request to https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz failed, reason:
#0 131.6     at ClientRequest. (/usr/local/lib/node_modules/pnpm/dist/pnpm.cjs:73746:18)
#0 131.6     at ClientRequest.emit (node:events:514:28)
#0 131.6     at TLSSocket.socketErrorListener (node:_http_client:495:9)
#0 131.6     at TLSSocket.emit (node:events:526:35)
#0 131.6     at emitErrorNT (node:internal/streams/destroy:151:8)
#0 131.6     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
#0 131.6     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Dockerfile:46
44 |     COPY /service/pnpm-lock.yaml /app
45 |
46 | >>> RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*
47 |
48 |     COPY /service /app
ERROR: failed to solve: process "/bin/sh -c pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*" did not complete successfully: exit code: 1

用代理吧，或者换个镜像源 再或者 更新下 pnpm ，我前几天 pnpm 也不行，更新了下就好了

好的


Minecraft 1.2.3 Question

I have been playing with a Dev build of MultiVerse-Core and with the Beta builds of bukkit, and I was wondering if there will be a way to convert all worlds to the new format and Biomes? When I started the default world converted, but none of the other worlds we have(using backups for testing) actually converted and report there type as VERSION_1_1

Update your Craftbukkit. I fixed this here: https://github.com/Bukkit/CraftBukkit/commit/f9e35f890129b0e0532b3fea7512a6dfb9a3b779
Make sure you're on build 2032+. If you've already run the server with the worlds (as you imply) you'll have to restore from your backup to get them to reconvert. Details about that here: https://bukkit.atlassian.net/browse/BUKKIT-991

Alright I loaded it first with one of the dev builds (forget the number) and then updated to the Beta build #2034. Ill try removing the worlds from Config and going at it again. Thanks for the response! Love the plugin


Implement Socket.io in Adonis 4.1

How implement Socket.io in Adonis 4.1 ?
I could not find any sample that work correctly.
Thanks for your help.

Please make sure to read the guidelines before posting an issue.
The gh issues are not for general questions and same must be asked on the forum

https://forum.adonisjs.com/t/socket-io-in-adonis-4-1/1961


Add macOS/PlayCover Wish Import Guide

Wish history URL can be sniffed with the following command:
curl -s https://gist.githubusercontent.com/ohaiibuzzle/f861094fc7afdd50c65ea1a1877e728d/raw/8b25887edafcaa5cc698141c91f97d142be5fdfc/get-wish.py | python3
This works for Genshin on macOS installed via PlayCover

Looks interesting. This script however might need to be extended to support CN as links are different. Nice find. Hopefully someone can help test it out

curl -s https://gist.githubusercontent.com/ohaiibuzzle/f861094fc7afdd50c65ea1a1877e728d/raw/8b25887edafcaa5cc698141c91f97d142be5fdfc/get-wish.py | python3

Thanks for this amazing hassle free thing.
I made a very simple apple shortcut for the same. No need to open the terminal at all. You can get it from RoutineHub
Sample

Is it possible to modify it for Honkai Star Rail? @TheFermi0n

The script no longer works, im trying to fix it but the WebKit cache search doesn't yield full URLs its all broken up

Try mitmweb  instead
Works great


Please invite me to the Community Organization

Name
Destiny Aigbe
Discord Username (if applicable) E.g John#412
diac#4913
Questions & suggestions?
No response

Hello @Destiny-01 👋🏾 Welcome to Communitypro 🤩🙌🏾

Hello @Destiny-01 👋🏾 Welcome to Communitypro 🤩🙌🏾


search.js not working on https://try-puppeteer.appspot.com/

Steps to reproduce
Tell us about your environment:
Puppeteer version: v1.9.0
Platform / OS version: Windows 10/latest chrome/latest firefox as of today
URLs (if applicable): https://try-puppeteer.appspot.com/
Node.js version: nil

What steps will reproduce the problem?
Go to https://try-puppeteer.appspot.com/
Select search.js from examples selection
Hit Run

Please include code that reproduces the issue.
No code needed. Just try search example.

What is the expected result?
Extract the results from the page.
What happens instead?
Error running your code. Error: No node found for selector: #searchbox input

@shilongfoo this will be fixed by https://github.com/puppeteer/puppeteer/pull/6471
@ebidel please feel free to close this issue as my above PR will resolve it.


🐛 [Firebase Storage] Web Firebase upload not working

Hi, my friends, I'm trying to upload images from a web-based app to firebase storage but I'm not able to can you please guide me on how to fix this issue please, thanks in advance!
Platform

[Chrome] Web
[Mac OS Big Sur: 11.4 (20F71)] Desktop (Go)

pubspec.yaml
  cupertino_icons: ^1.0.2
  firebase_auth: ^1.2.0
  firebase_core: ^1.2.0
  cloud_firestore: ^2.2.0
  firebase_storage: ^8.1.1
  firebase_database: ^7.0.0
  file_picker: ^3.0.4

Platform OS version
Mac OS Big Sur: 11.4 (20F71)
How are you picking?
WEB
Please, post the snippet here
   chooseAndUploadWeb() async {
    pickedFileWeb = await FilePicker.platform.pickFiles();

    if (pickedFileWeb != null) {
      //PlatformFile file = pickedFileWeb.files.first;

      Uint8List fileBytes = pickedFileWeb.files.first.bytes;
      String fileName = pickedFileWeb.files.first.name;

      await fireStorage.FirebaseStorage.instance
          .ref('uploads/$fileName')
          .putData(fileBytes);

      // fireStorage.Reference reference = fireStorage.FirebaseStorage.instance
      //     .ref()
      //     .child('Uploads$getUserName$fileName');
      // fireStorage.UploadTask uploadTask = reference.putData(fileBytes);
      // fireStorage.TaskSnapshot storageSnapShot =
      //     await uploadTask.whenComplete(() {
      //   //Navigator.pop(showDialog().asStream());
      // });

      // await storageSnapShot.ref.getDownloadURL().then((url) {
      //   print('IMAGE URL: ' + url);
      //   tyreImage = url;
      // });

      // print(file.name);
      // //print(file.bytes);
      // print(file.size);
      // print(file.extension);
      // print(file.path);
    } else {
      // User canceled the picker
      print('User canceled the picker!');
    }
  }`

Error Log
TypeError: appImpl.storage is not a function
    at Object.getStorageInstance (http://localhost:51531/packages/firebase_storage_web/src/interop/storage.dart.lib.js:781:65)
    at new firebase_storage_web.FirebaseStorageWeb.new (http://localhost:51531/packages/firebase_storage_web/src/reference_web.dart.lib.js:272:33)
    at firebase_storage_web.FirebaseStorageWeb._nullInstance.delegateFor (http://localhost:51531/packages/firebase_storage_web/src/reference_web.dart.lib.js:218:14)
    at Function.instanceFor (http://localhost:51531/packages/firebase_storage_platform_interface/src/platform_interface/platform_interface_task_snapshot.dart.lib.js:975:83)
    at firebase_storage.FirebaseStorage.__.get [_delegate] (http://localhost:51531/packages/firebase_storage/firebase_storage.dart.lib.js:88:120)
    at firebase_storage.FirebaseStorage.__.ref (http://localhost:51531/packages/firebase_storage/firebase_storage.dart.lib.js:128:58)
    at HomeScreen._HomeScreenState.new._alegeSiUploadWeb (http://localhost:51531/packages/flutter_app/garage_3.dart.lib.js:11574:59)
    at _alegeSiUploadWeb.next (<anonymous>)
    at http://localhost:51531/dart_sdk.js:39230:33
    at _RootZone.runUnary (http://localhost:51531/dart_sdk.js:39087:58)
    at _FutureListener.thenAwait.handleValue (http://localhost:51531/dart_sdk.js:34073:29)
    at handleValueCallback (http://localhost:51531/dart_sdk.js:34633:49)
    at Function._propagateToListeners (http://localhost:51531/dart_sdk.js:34671:17)
    at _Future.new.[_completeWithValue] (http://localhost:51531/dart_sdk.js:34513:23)
    at async._AsyncCallbackEntry.new.callback (http://localhost:51531/dart_sdk.js:34536:35)
    at Object._microtaskLoop (http://localhost:51531/dart_sdk.js:39374:13)
    at _startMicrotaskLoop (http://localhost:51531/dart_sdk.js:39380:13)
    at http://localhost:51531/dart_sdk.js:34887:9

Screenshots and/or video

Yes I do @kekko7072

Flutter Version details
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-AU)
    • Flutter version 2.2.3 at /Users/InfinityCoder/Documents/flutter
    • Framework revision f4abaa0735 (5 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/InfinityCoder/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 51.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.58.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131

• No issues found!

I Will try today to find the bug. If I found nothing i Will post a working code.

@InfinityCoder88  some more info:

Is the storage working on other platforms? As iOS or Android. If not , can you check in firebase if storage roles ( you find them as in firestore ) maybe is blocked by rules.

can you try to print the file's bites and disable the storage code and see if it print the bites.

I don't see nothing grammatically wrong so tomorrow I will try running your code in on of my project with working.

Hi @InfinityCoder88
Have you completed https://firebase.flutter.dev/docs/installation/web
Does the issue reproduce on the latest firebase_storage: ^10.0.1?
Thank you

@InfinityCoder88 if you want this is my working code:
import 'package:firebase_storage/firebase_storage.dart' as firebase_storage;

List<PlatformFile>? _paths;

///THIS open the file explorer
 void _openFileExplorer() async {
    try {
      FilePickerResult? picked = await FilePicker.platform.pickFiles();

      if (picked != null) {
        if (kIsWeb) {
          uploadFile(picked.files.first.bytes!, picked.files.first.extension!);
        } else {
          uploadFile(await File(picked.files.first.path!).readAsBytes(),
              picked.files.first.extension!);
        }
      }
    } on PlatformException catch (e) {
      print("ERROR Unsupported operation" + e.toString());
    } catch (e) {
      print('ERROR' + e.toString());
    }
  }

///THIS upload the file to the storage
  Future<void> uploadFile(Uint8List _data, String extension) async {
    firebase_storage.Reference reference = firebase_storage
        .FirebaseStorage.instance
        .ref('docs/namefile.$extension');

///This shows the status of the upload
    firebase_storage.TaskSnapshot uploadTask = await reference.putData(_data);

///Download url of the file
    String url = await uploadTask.ref.getDownloadURL();

    if (uploadTask.state == firebase_storage.TaskState.success) {
     print('done');
    } else {
      print(uploadTask.state);
    }
  }

///BUTTON to invoke the upload
CupertinoButton(  onPressed: () => _openFileExplorer(), child: Text(  "Upload" ),

Thanks @kekko7072 it working now, thanks a lot!!!

@InfinityCoder88 I'm glad it worked! Please close the issue.

Closing this as solved


Celebrate bot can't list ms Teams channels

After uploading app to Teams and start bot, I defined that I can't choose any option in "Share to sections". Also scrolling down working very bad

Did you install the app in multiple teams ? Can you please share screenshot of the problem you are facing?
I am facing the same issue.. Groups/ Teams are not getting populated...

Did you install the app in multiple teams ? Can you please share screenshot of the problem you are facing?
I am facing the same issue.. Groups/ Teams are not getting populated...

I'm facing the same issue and I cannot scroll down the window

@oleglutskyi @jaspreetjolly  Go to the TEAMs admin center.
Teams App -> Manage App
Select the app and click Add to Team

Then you will be able to see it in the Add event window drop down.

Is it possible to add the app to a sub channel?


Schemes for Hamilton systems

http://www.research.kobe-u.ac.jp/csi-viz/members/kageyama/docs/140110a_symplectic_integrator.pdf

Symplectic method is very similar to the semi-implicit method. These may be share some parts of algorithm.


drop support py36 and py37

Feature or Bugfix

Feature

Purpose

drop support py36 and py37

Relates

https://code.djangoproject.com/ticket/32355

Python-3.6 is suupported until 2021/12 https://www.python.org/dev/peps/pep-0494/#and-beyond-schedule
Python-3.7 is suupported until 2023/06 https://www.python.org/dev/peps/pep-0537/#and-beyond-schedule
Django-4.0 drop python-3.6 and 3.7 support that will be released Jan 2022 https://www.djangoproject.com/download/

Why is django-redsihft-backend discontinuing support? Let's rethink this as follows....
django-redshift-backend supports:

Python-3.10 since 2021/10
Python-3.6 until 2021/12
Python-3.7 until 2023/06
Django-2.2 until 2022/04
Django-4.0 since 2022/01

see #76


chore(turbo-utils): Remove tsup build

This package does not need to be bundled since it is used only internally in this monorepo. Since we are not publishing it, it does not matter whether it is bundled or not.
Closes TURBO-1542

Looks good! Let's double check the bundle sizes of packages that are published that depend on this one, but otherwise I'm sold.

Did a build in main and this branch and looked at output. The sizes look identical (obviously the branch is missing a build for @turbo/utils in this branch
### this branch

turbo-ignore:build:         CJS dist/cli.js     571.73 KB
eslint-plugin-turbo:build:  CJS dist/index.js   540.35 KB
@turbo/workspaces:build:    CJS dist/index.js   523.75 KB
@turbo/workspaces:build:    CJS dist/cli.js     528.08 KB
@turbo/workspaces:build:    ESM dist/index.mjs  401.00 B
@turbo/workspaces:build:    ESM dist/cli.mjs    4.75 KB
create-turbo:build:         CJS dist/cli.js     1.21 MB
@turbo/gen:build:           CJS dist/cli.js     556.05 KB
@turbo/codemod:build:       CJS dist/cli.js     1.15 MB

### main

turbo-ignore:build:         CJS dist/cli.js     571.73 KB
eslint-plugin-turbo:build:  CJS dist/index.js   540.35 KB
@turbo/workspaces:build:    CJS dist/index.js   523.75 KB
@turbo/workspaces:build:    CJS dist/cli.js     528.08 KB
@turbo/workspaces:build:    ESM dist/index.mjs  401.00 B
@turbo/workspaces:build:    ESM dist/cli.mjs    4.75 KB
create-turbo:build:         CJS dist/cli.js     1.21 MB
@turbo/gen:build:           CJS dist/cli.js     556.05 KB
@turbo/codemod:build:       CJS dist/cli.js     1.15 MB

Looks like I had the dist/ dir sitting around for the utils package and hadn't updated the entrypoints in package.json, so it was the same size. after fixing that, i'm actually seeing a dramatic reduction in size of upstream bundles:

package
file
before
after

turbo-ignore:build:
CJS dist/cli.js
571.73 KB
455.74 KB

eslint-plugin-turbo:build:
CJS dist/index.js
540.35 KB
424.31 KB

@turbo/workspaces:build:
CJS dist/index.js
523.75 KB
131.29 KB

@turbo/workspaces:build:
CJS dist/cli.js
528.08 KB
126.35 KB

@turbo/workspaces:build:
ESM dist/index.mjs
401.00 B
4.77 KB

@turbo/workspaces:build:
ESM dist/cli.mjs
4.75 KB
412.00 B

create-turbo:build:
CJS dist/cli.js
1.21 MB
549.34 KB

@turbo/gen:build:
CJS dist/cli.js
556.05 KB
460.46 KB

@turbo/codemod:build:
CJS dist/cli.js
1.15 MB
379.58 KB


[DA] simplify the logic of DA invoking internal DA servers

no need to pass actor system from rooch process
using chunk instead of batch as submit unit

Done


issue 212 Date picker now validates if time picked is previous than now

Material UI not disabling past times is a known issue. Added a warning in case of picking a past time.

This PR is for issue: https://github.com/dOrgTech/DAOcreator/issues/212


Allow node selection based on nodeSelector, tolerations, affinities and topologySpreadConstraints

Affinities and topologySpreadConstraints can wait for nodeSelector(enforced by validatingwebhooks) and tolerations(where all nodes run with taints) are more important to support in the helm chart

+1

I hope the development of this feature is in progress.


0.48 - ionic serve: failed to load resource

Short description of the problem:
After running ionic serve, the result of the build in the browser is:
Failed to load resource: the server responded with a status of 404 (Not Found)
for the file http://localhost:8100/build/main.js
What behavior are you expecting?
I have an src/app/main.ts file as asked for in the instructions. I am running the ionic conference app. This was working until I updated from 0.47 to 0.48. I think I was updating to 0.48 because android is giving a lengthy white screen at startup (when running on an android device).
Steps to reproduce:

run ionic serve

Which @ionic/app-scripts version are you using?
0.48
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

ordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.2
Xcode version: Not installed

Hi, friend.
I have the same issue with building on windows 7.
I have to copy all files to windws 8 machine and build there.
I'm thinking about moving from win 7 to win 8...
I tryed to install/uninstall nodejs (ver 4.5, 6.9.4) - nothing
Also reinstalled ionic / cordova via npm - nothing.
Added system PATH in Windows - nothing.
Reinstall JDE - nothing.
Result: ionic build system does not build main.js file and main.js.map - although build polyfills.js,
main.css and sw-toolbox.js - from MyTabs example to be certain.

OMG!!! I found the PROBLEM!!!
In my ROOT folder name was "!ivanov" - I removed "!" sign in name to "ivanov" and that was a TRICK!!!
Thanks to all who listened to me :) and my problem :)


Add option to download in-progress livestream from the beginning, or from specified time offset.

Checklist

[x] I'm reporting a feature request
[x] I've verified that I'm running youtube-dl version 2020.11.19
[x] I've searched the bugtracker for similar feature requests including closed ones

Description
Add option to download in-progress livestream from the beginning, or from specified time offset. Particularly useful for Youtube, which allows this in its web player. Doing this in faster than realtime would also be nice, in order to catch up to the present.

This being a duplicate, can a link to the original request be posted here?


Footer

Functionality

[ ] Scroll to the top button
[ ] Contact Form / info
[ ] About link

Styling

[ ] Style it using Material

Migrating to next iteration


Added new FileCopy() headers

Automation for azure-sdk-for-go

Automation for azure-sdk-for-python


Updating dependencies

Hi,
Thank you for a good tutorial!
I went though the tutorial a year ago, and came back to it just now.
The dependencies are outdated and you can't start the application with the latest NPM/Node version.

I just cloned this repo did an npm i
I was lazy to start a new Postgres instance so I used sqlite (better-sqlite3) npm i better-sqlite3 and replaced 'postgres' for 'better-sqlite3' in the default.yml fired up npm run start:dev and it started without problems. Tested the following endpoints:
http://localhost:3000/auth/signup
http://localhost:3000/auth/signin
and http://localhost:3000/tasks and everything seems to work fine.
Certainly a lot of npm libraries are out of date, this repo is 2 years old. But it runs. With a nest update / npm update npm libs can be updated.
What errors do you get?


"global scan" option, to scan all regions

Description
I'd like to scan ALL available regions for my cloud provider.
AWS currently proposes 21 regions (Source)
something like
$ driftctl scan --global-scan
[...]

So I could know what changed not only on the 2-3 regions I'm working with, but also in far away regions I never look into!
(supporting back story: I met someone who never looked at what was running on the Oregon region. He received a 10k bill at the end of the month because someone mistakenly launched resources there, while everybody was working on European regions)
Example

API rate throttling will be a major issue if we implement this right away
we need to implement first something like a --deep option (or a --no-deep etc.) to limit API calls.


can items be an array of objects?

The downshift examples tend to set items to an array of strings eg ["red","blue"]. These simple examples annoy me because they immeadiately block the developer from using them in a realistic scenario.
A realistic API call returns an array of objects (items) where each object has an attribute that will be displayed and an attribute that is a unique id (and other attributes). An example at this complexity would require less digging in the documentation. The documentaion sais very little about "items" even though it is one of the main downshift objects, and unfortunaltely it does not answer my question.
So I tried anyway of course, but all I got is crashes. After a few hours, it is still not clear to me whether it should work or not. I would be a little disappointed if I had to reduce my array of objects to an array of strings

Hi @petercutting,
This is a very common question, so I've updated the example in the README. You need to use the itemToString prop. I hope that helps. Good luck!

It's because that example is not using match-sorter properly for the data. Check out the TypeAheadField.js file and read the match-sorter docs.
Good luck.

:tada: This issue has been resolved in version 1.31.15 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


To make products/mobile deals section display as CARDS #454

Title of Issue: To make products/mobile deals section display as CARDS #454
Issue Number: 454
Changes made:
Updated low quality images with high quality images of mobile phones and made the section look good by adding appropriate border, space, fonts etc.
result:
BEFORE:

AFTER:

@arghadipmanna101

There have a conflict issue plz check it once and then recreate a new PR .ok

I think I'll have to delete the fork, so the issue will be closed if I do so.. should I create a new issue then?

resoolved @arghadipmanna101

@arghadipmanna101 hey can you let me know if there's still any problem here?


Automatically establish the location of the requirements files without hard-coding setup.py

Issue
When this code is used to create a venv as a part of a larger project, the directory where the requirements.in and requirements.txt are supposed to be located can be variable. The code as of 735ce5c assumes the cloned win-py-venv directory will be the root directory and the venv directory. Thus, it puts both requirements files within the root directory.
https://github.com/cooperjaXC/windows-python-venv/blob/735ce5c3061f7c5a82c6865f82f4a577ede6dbf1/setup.py#L135-L136
However, this repo is most useful when it can be a subdirectory of a larger python project, referenced as "./py_venv". In this format, we want the requirements.in file to be located outside the venv directory. This is so that the user can define the requirements at the project-level directory. However, we still want the requirements.txt file to default to being located inside the "./py_venv" directory in these cases. This is so that the user can find the full requirements readout after the venv is created, but it is not confusingly included at the project-level directory.
However, this won't always be a subdirectory, so we want the requirements files to work properly when created, defined, and used within the directory of the cloned repo. Thus, we need to make these path definitions variable to identify these requirements files without making a user go set the paths each time in random setup.py lines.
Potential solutions:

Pipe the %VENV_DIR% variable into the setup.py.
https://github.com/cooperjaXC/windows-python-venv/blob/735ce5c3061f7c5a82c6865f82f4a577ede6dbf1/setup.bat#L3-L7
Embed the default preferences within the setup.py itself
???

The VENV_PATH variable is set up at the top of the script. Defining its parent directory earlier with downstream inheritances that are not hard-coded to ./py_venv/ could be helpful here.
https://github.com/cooperjaXC/windows-python-venv/blob/735ce5c3061f7c5a82c6865f82f4a577ede6dbf1/setup.py#L29

See https://github.com/ccaoa/ccaoa-mapping/commit/43f676b4278f522366aaa0bc7b944613453bb510 as an attempt to address this.


Wrong versioning for beta releases

Having next ^3.0.0-beta or even next ^3.0.0-beta16 in my package.json or direct npm install<EMAIL_ADDRESS>resolves to 3.0.0-beta9 (both npm and yarn behaves the same).
npm install 'next@beta' works fine, though.
This issue was also reported by @gragland in https://github.com/zeit/next.js/issues/2147#issuecomment-309241911
I am not sure if this is Next.js issue, but 2.x-beta releases worked as expected.

Yes, brought this up on Slack a while ago.
The current pre-release version format 3.0.0-beta16 is incorrect semver. It is meant to have a . separator: 3.0.0-beta.16. See here.
NPM sorts alphabetically the part after the . following the patch number, before the pre-release version number. Try running npm show next versions --json and you will see that 3.0.0-beta9 is considered a greater version than 3.0.0-beta16, because 9 > 1 when sorting that segment alphabetically.

Here is the tail chuck output from npm show next versions --json:
  "2.4.2",
  "2.4.3",
  "2.4.4",
  "3.0.0-beta1",
  "3.0.0-beta10",
  "3.0.0-beta11",
  "3.0.0-beta12",
  "3.0.0-beta13",
  "3.0.0-beta14",
  "3.0.0-beta15",
  "3.0.0-beta16",
  "3.0.0-beta2",
  "3.0.0-beta3",
  "3.0.0-beta4",
  "3.0.0-beta5",
  "3.0.0-beta6",
  "3.0.0-beta7",
  "3.0.0-beta8",
  "3.0.0-beta9"
]

To work around the incorrect semver, save next: 3.0.0-beta16 without the ^.

Okay. This is a good point.
We can release next set of betas as of semvar.
Does that works well?

@arunoda I think 3.0.0-beta.17 would sort lower than 3.0.0-beta16.
The best way to fix it might be to move to RC, because r sorts greater than b: 3.0.0-rc.1
Checkout https://semver.npmjs.com, it's a really neat debug tool with semver examples.

Okay. I'll think about this.

I've just published a new beta called<EMAIL_ADDRESS>Basically that's a best way I found to fix this issue.


Whisper initialization failed - no media provider

Running the Whisper on a MacbookPro, which has built-in camera, I also attached a USB camera as well, why is can't find the cameras?

I have just tested this myself locally and this works. Perhaps this is a permissions issue? Check System Settings -> Privacy & Security -> Camera. Look to ensure Abra is in the list and enabled.
If this isn't the case, can you provide any other diagnostic information?

@nettlep thanks, fixed. Is it possible to port the project to C/C++ or C# as a minimum library(Like just passing the pixels data of a frame)? I would like to use it on a ESP32 MCU. I can pay if you don't mind to help. Can you help please? Thank you!!!


Rename PowerVS CCM public endpoint env variable

What this PR does / why we need it:
This PR trying to address https://issues.redhat.com/browse/MULTIARCH-2730 for renaming the env var for public endpoint in CCM.
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[x] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/lgtm


Always fails assigning role the first time

Hi,
The bot always fails the with the first user that uses a new invitation link (with counter to 0).
It works fine with posterior uses of the same link.

Thanks for the report, this has been fixed.


Commit a database transaction in the RESP_FILTERS_START stage

But close the session during the FINISHED stage. This allows to the user to catch errors during commiting transactions (constraint violations, e.g) and map them to HTTP error with
an exception mapper.
This approach also is compatible with lazy loading, because the session remain open during serializing Hibernate entities.
Fix #1604

Coverage increased (+0.01%) to 82.171% when pulling ac63b23a97fa17eb6566c42c72b8249beb081235 on lazy-loading-session-management into 6532a8ef5c8c182c764505d29be14db6e6ea9d5b on master.

Coverage increased (+0.01%) to 82.171% when pulling ac63b23a97fa17eb6566c42c72b8249beb081235 on lazy-loading-session-management into 6532a8ef5c8c182c764505d29be14db6e6ea9d5b on master.

Coverage increased (+0.01%) to 82.171% when pulling da9b1aabe997cdfe527b73ffb2126595c1040a5b on lazy-loading-session-management into 6532a8ef5c8c182c764505d29be14db6e6ea9d5b on master.

👍


iOS (WKWebView) Hangs on Ctrl+B|U|I

This is for the WKWebView control and not necessarily Safari. If you do a ctrl+b, ctrl+i, or ctrl+u in the editor it will case the UI to hang. After doing a little debugging, I noticed the _docWasChanged function is getting called continuously until another key is pressed. This appears to be more of an issue with WKWebView's MutationObserver implementation, but I wanted to report in case others were seeing similar issues. I fixed by disabling the MutationObserver, but have not fully tested to see if there are other issues caused by my change.
Possible fix:
var canObserveMutations = typeof MutationObserver !== 'undefined' && !isIOS;

I'm unable to reproduce this in iOS 10. Do you still see this issue? Do you have a test case I can see?

Also, just to confirm, you are definitely using WKWebView and not UIWebView right? UIWebView is really buggy with rich text editing and always has been, but WKWebView should work fine. We use Squire in a WKWebView in the FastMail app and I've not run across this issue.

Hi Neil, thanks for the follow up! I am using WKWebView and I can also
reproduce the issue in Safari on iOS. This is definitely a bug on Apple's
side that is causing the crash and I have raised the issue with them. I
actually got a response back from them earlier this week saying that they
think they have fixed it in iOS 10, but I have not had a chance to verify.
I'm going to try to get to that today and I'll let you know what I find.
Thanks,
Mike
On Wed, Sep 28, 2016 at 7:44 PM, Neil Jenkins<EMAIL_ADDRESS>wrote:

Also, just to confirm, you are definitely using WKWebView and not
UIWebView right? UIWebView is really buggy with rich text editing and
always has been, but WKWebView should work fine. We use Squire in a
WKWebView in the FastMail app and I've not run across this issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/neilj/Squire/issues/232#issuecomment-250341707, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVD_hZw_eQ71iFQvOLdLAcMXCdLJvCDVks5quwn7gaJpZM4J4dIS
.

Hi Mike. Did you verify whether this is fixed in iOS10?

Hi Neil, this is still a problem in iOS 10, but it looks like the bug is
finally getting picked up on Apple's side. Fingers crossed for 10.3.
Thanks,
Mike
On Tue, Nov 1, 2016 at 11:54 PM, Neil Jenkins<EMAIL_ADDRESS>wrote:

Hi Mike. Did you verify whether this is fixed in iOS10?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/neilj/Squire/issues/232#issuecomment-257772407, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVD_haopU9W1G9FGQc7ct3j8ybMbIQICks5q6BeFgaJpZM4J4dIS
.

Hi Mike. Do you know if this was fixed in iOS 10.3?

No luck in 10.3. Will make sure this gets back on Apple's radar.

Hi @mikep-ll any luck with iOS 11 beta if you've had a chance?

This is still not fixed. I have a bug open with Apple (28279301) and sat down with the developer it is assigned to a few weeks ago. We were able to confirm that this is an issue with WKWebview itself, so I'm hoping a fix makes it in to 11.
A work around was suggested, but I haven't tried it out yet. Basically, intercept these keys strokes and issue the appropriate command.
document.addEventListener("keydown", e => {
if (e.which === 66 && e.metaKey) {
e.preventDefault();
document.execCommand("bold”);
}
});
It seems like this would create a bunch of edge cases to be worked out and may cause more harm than good.


JetBrains: Guardrail is not available in Enterprise account.

Cody Version
v5.5.10-nightly
IDE Information
PyCharm 2023.3.3 (Community Edition)
Build #PC-233.13763.11, built on January 26, 2024
Runtime version: 17.0.9+7-b1087.11 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Non-Bundled Plugins:
com.sourcegraph.jetbrains (5.5.10-nightly)
Describe the bug
Platform: macOS
Steps to reproduce:

Have Cody plugin installed in your JB PyCharm editor
Login to Cody with Enterprise user
Open any source code file and select "Generate Test" command
Verify the code snippet generated in Cody response

Observed behavior:
Guardrail is not available in the code snippet generated in response.
Expected behavior
Guardrail should be available for Enterprise account.
Additional context
Screenshot:

@kalanchan , can you look into what's going on with sg04? It answers the following GraphQL with "" which disables Guardrails and this is blocking testing. (It can't answer site { productVersion } either...)
query CodyConfigFeaturesResponse {
    site {
        codyConfigFeatures {
            chat
            autoComplete
            commands
            attribution
        }
    }
}

Taking the P0 label off this since I just tested guardrails on s2 and the feature is working there. (Well... it is not triggering any detections for me 🤷  but the label is present in the view, all the code to hit the backend and display a response from it is running.)

I'm closing this as there has been no activity. Every indication I have is that the feature is working.


Displaying double negative on percentage decreases

See below ...
Monthly cost change for /home/atlantis/.atlantis/repos/XXX.tfplan
    Amount:  -$281 ($914 -> $633)
    Percent: --31%

Looks like a bug in this function: https://github.com/infracost/infracost/blob/master/internal/output/diff.go#L281

Fixed in https://github.com/infracost/infracost/pull/636, thanks @swade1987 and @ekifel.

@swade1987 this was shipped in v0.8.7 (we've also upgraded the infracost-atlantis image to the latest version of Atlantis and the Infracost 0.8.7 CLI version)


Example with Server side rendering?

Do you think you can provide an example with firebase and server-side rendering. I tried to implement my project like yours, with the exception that I have server-side rendering enabled and there are certain points where if I refresh, it says I need to reinitialize my firebase again.

I never worked with server side rendering and firebase but it is quite interesting to try. I will let this issue here to remember me to try it and, if I have success, I put it in.

+1 for this


Wrong switch for AddressSanitizer in cicd.yml

https://github.com/microsoft/ebpf-for-windows/blob/6182bbb2a2e6bcc10209d2dec2a1cfbf3d0cec95/.github/workflows/cicd.yml#L171
Passing the wrong flag results in not enabling address sanitizer.

Flags should be: "AddressSanitizer"

@Alan-Jowett, please add more details


[Intel MKL] Update Eigen to get new optimization contributed by Intel

Update Eigen to get these feature:

broadcasting optimization for channel first shape
fix a crush when build Tensorflow with Eigen

modified:

tensorflow/workspace.bzl

Signed-off-by: Lu Teng<EMAIL_ADDRESS>

Update Eigen to get broadcasting optimization for 'channel first' shape, detail is here: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1567

Nagging Reviewer @yifeif: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 14 days with no activity and the awaiting review label has been applied.

@yifeif  PTAL

Nagging Reviewer @rmlarsen: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 14 days with no activity and the awaiting review label has been applied.

Eigen has been updated to the newest version, close this PR.


Integrate PostgreSQL

Paves the way for a future mute/jail command, could also enhance the current birthday boy command

How about pickles as an alternative?
Pros:
One less dependency
Cons:
Not scalable

Realistically not needed since Dyno can do all of this


[3.x] Fix Area monitorable in 2D and 3D Godot physics.

3.2 version of #41698.

I can confirm, fixes #23484 #41698 in 3.2 :+1:

Same as #41698, should be good but needs a rebase.

Thanks!


Wrong parsing of .tk name servers

Hi
When using the parser on the whois output for the domain yazeji.tk, I get the following list of name servers:
[nsb1.hostnet.com.br nsb3.hostnet.com.br nsb5.hostnet.com.br nsb6.hostnet.com.br nsb4.hostnet.com.br your according the due about abuse if please detailed in copyright an and will]

If you check the whois output, you'll see it's parsing the first word of each subsequent line as a name server, until it finds a line containing a colon:
...
   Domain Nameservers:
      NSB1.HOSTNET.COM.BR
      NSB3.HOSTNET.COM.BR
      NSB5.HOSTNET.COM.BR
      NSB6.HOSTNET.COM.BR
      NSB4.HOSTNET.COM.BR

   Your selected domain name is a Free Domain. That means that,
   according to the terms and conditions of Free Domain domain names
   the registrant is BV Dot TK

   Due to restrictions in Dot TK 's Privacy Statement personal information
   about the user of the domain name cannot be released.

   ABUSE OF A DOMAIN NAME
   If you want to report abuse of this domain name, please send a
   detailed email with your complaint to<EMAIL_ADDRESS>   In most cases Dot TK responds to abuse complaints within one business day.

   COPYRIGHT INFRINGEMENT
   If you want to report a case of copyright infringement, please send
   an email to<EMAIL_ADDRESS>and include the full name and address of
   your organization. Within 5 business days copyright infringement notices
   will be investigated.

   Record maintained by: Dot TK Domain Registry

I believe the issue is that the parser only detects the end of a field when it find a line that ends in :, but in this case the "Domain Nameservers" field is terminated by empty lines.

Hello @andrenth
This has been fixed, please try the latest version.

If you think this repository is helpful, please share it with friends, thanks.


damienbod/cross-tenant-synchronization-configure-graph-easy-to-use

I updated the examples to make it easier to implement the Microsoft Graph examples by adding placeholders for the source and target tenant Ids to replace. I found it hard to keep scrolling up and down the page to check which is the source and which is the target tenant guid. I think this change would make it easier to use the docs.

@rolyon - can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi @damienbod
Thanks for taking the time to contribute to the docs. This is a great idea and will make it easier for others. We'll work on getting your changes merged.
Let us know if any additional feedback about the docs.
thanks

#sign-off


Pixel Size property of Sprite3D is displayed as integer into the Inspector

Operating system or device - Godot version:
Official 2.0.3stable win64
Issue description (what happened, and what was expected):
The Pixel Size property of Sprite3D accept float values, but the Inspector display it as integer.
If I want to verify the actual value of this property, I'm forced to click on it.
It could be more practical if this value was displayed as float into the inspector.
Steps to reproduce:
Link to minimal example project (optional but very welcome):

I can confirm this bug as of fbef1ff. It's really weird.

Probably the same bug as https://github.com/godotengine/godot/issues/4513
And I still think it's all properties with low hint range:
PropertyInfo( Variant::REAL, "pixel_size",PROPERTY_HINT_RANGE,"0.0001,128,0.0001")


lb_policies_test.exe fails under Windows, dbg

https://grpc-testing.appspot.com/job/gRPC_master/13402/config=dbg,language=c,platform=windows/testReport/(root)/tests/vsprojects_Debug_lb_policies_test_exe/
E1202 20:51:08.687000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:08.687000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:08.690000000 21248 lb_policies_test.c:326] s_idx=-1
E1202 20:51:09.688000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:09.689000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:09.690000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:09.690000000 21248 lb_policies_test.c:326] s_idx=-1
E1202 20:51:09.693000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:10.687000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:10.691000000 21248 lb_policies_test.c:326] s_idx=-1
E1202 20:51:10.691000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:10.692000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:10.694000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:11.689000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:11.692000000 21248 lb_policies_test.c:326] s_idx=-1
E1202 20:51:11.692000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:11.695000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:11.695000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.

D1202 20:51:11.789000000 21248 lb_policies_test.c:310] EVENT: success:1, type:2, tag:1 iter:1
D1202 20:51:11.789000000 21248 lb_policies_test.c:320] client timed out
E1202 20:51:12.694000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:12.787000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:12.787000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:12.788000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
E1202 20:51:12.788000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:12.791000000 21248 lb_policies_test.c:326] s_idx=-1
E1202 20:51:13.792000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.

E1202 20:51:13.830000000 21248 tcp_client_windows.c:106] on_connect error: No connection could be made because the target machine actively refused it.
D1202 20:51:13.831000000 21248 lb_policies_test.c:310] EVENT: success:1, type:2, tag:1001 iter:3
D1202 20:51:13.831000000 21248 lb_policies_test.c:326] s_idx=1
D1202 20:51:13.831000000 21248 lb_policies_test.c:357] status=12; xyz
D1202 20:51:13.832000000 21248 lb_policies_test.c:310] EVENT: success:1, type:2, tag:1003 iter:4
D1202 20:51:13.832000000 21248 lb_policies_test.c:326] s_idx=3
D1202 20:51:13.832000000 21248 lb_policies_test.c:357] status=12; xyz
D1202 20:51:13.832000000 21248 lb_policies_test.c:310] EVENT: success:1, type:2, tag:1002 iter:5
D1202 20:51:13.832000000 21248 lb_policies_test.c:326] s_idx=2
D1202 20:51:13.832000000 21248 lb_policies_test.c:357] status=12; xyz
D1202 20:51:13.832000000 21248 lb_policies_test.c:310] EVENT: success:1, type:2, tag:1001 iter:6
D1202 20:51:13.832000000 21248 lb_policies_test.c:326] s_idx=1
D1202 20:51:13.832000000 21248 lb_policies_test.c:357] status=12; xyz
D1202 20:51:13.833000000 21248 lb_policies_

This time on Mac:
https://grpc-testing.appspot.com/job/gRPC_master/13729/config=opt,language=c,platform=macos/testReport/(root)/tests/bins_opt_lb_policies_test/

Not seen for some time: closing.


server.js to support typescript

I had a requirement where building a websocket server for my remix app (some pages use websocket for chat server like functionality).
This lives under the server.js. while building out the functionality I needed to import some code from within my app directory. As this by default typescript and used esm modules. I was unable to import it through node directly.
My work around was to expose the module functions through the global-data.js as it was then compiled for server via typescript and put in a build folder. I was then able to include it from the build folder to get access to my ts module.
Making the server be compiled with typescript would make this include a bit more seemless - however I know this would add complexity in starting as ATM if the build director is empty the server.js can't start (which happens on first run of the app if bulid/cache is cleared).

This is now possible with the server option in the Remix config. https://remix.run/docs/en/v1/api/conventions#server


Pretrained Model Details | Requesting Clarification

Hello,
Thank you for your great work, and making the code publicly available.
In the link provided to the pretrained models, there are multiple pretrained models available. While you mention that for demo  purposes, we should use the "mesh_vis.pth.tar" model, it is not clear what the other models are.
My understanding is that the other models are specific models for evaluation on different datasets. If my understanding is correct, then could you please clarify whether you perform individual training and testing for each dataset, or whether you train a single model on a mixture of the datasets and then perform all testing with that single model?

You are correct. The models are trained and evaluated on different datasets to compare with other methods, as shown in Table 1 of the paper. You can reproduce them under the training instruction. For 3dpw, the model was trained on mixed 2D and 3D datasets, including 3dpw, h36m, mpii3d, coco, and mpii, and tested on 3dpw testing set. For mpii3d, we take 3dpw's checkpoint and directly test on mpii3d testing set. For h36m, the model was trained on h36m training set and tested on h36m testing set. 'mesh_vis.pth.tar' is one of 3dpw's checkpoints. Hope this reply helps you.

Thank you for clarifying this in detail :). This makes it quite clear.
Closing the issue.

As a follow up to my previous query, is this the commonly used strategy adopted by previous works as well? My understanding is that previous works like MPS-Net  or TCMR use a single pretrained checkpoint (trained on a combination of datasets) for evaluation across all the test datasets.

MPS-Net and TCMR also use different settings for diverse test datasets, as indicated here. In contrast to MPS-Net and TCMR, PMCE introduces the pose branch, which is influenced by joint set types. Thus, PMCE mainly follows the settings of the pose-based method, Pose2Mesh.

hello, the pretrained model you provide is 393M, but i reproduced following the training introduction is 1.1G, is there any problems cause this difference? Thank you and look forward to your reply!

hello, the pretrained model you provide is 393M, but i reproduced following the training introduction is 1.1G, is there any problems cause this difference? Thank you and look forward to your reply!

Hello, to save memory for easy downloading, the uploaded pretrained model only contains the model parameters. In contrast, the reproduced one contains additional optimizer parameters.


Lightning Progress: prepare sync

I updated to 1.6.0. However, the flash has remained for 3 days with a blue screen and the status Node is Syncing:
Blockchain Progress: 100%
Lightning Progress: prepare sync
Please wait - this can take some time ...
I tried to restart, what else can I do?

Exit to command prompt and type debug. Then post the output in reply.

RASPIBLITZ DEBUG LOGS

blitzversion: 1.6.0
chainnetwork: bitcoin / main
09:20:15 up  3:27,  2 users,  load average: 1.67, 1.59, 1.56
*** BLOCKCHAIN SYSTEMD STATUS ***
● bitcoind.service - Bitcoin daemon
Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-08-10 05:55:48 BST; 3h 24min ago
Process: 3022 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED (code=exited, status=0/SUCCESS)
Process: 3027 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (code=exited, status=0/SUCCESS)
Main PID: 3066 (bitcoind)
Tasks: 18 (limit: 2200)
Memory: 641.2M
CGroup: /system.slice/bitcoind.service
└─3066 /usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/…
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
*** LAST BLOCKCHAIN ERROR LOGS ***
sudo journalctl -u bitcoind -b --no-pager -n8
-- Logs begin at Mon 2020-08-10 08:19:52 BST, end at Mon 2020-08-10 09:20:15 BST. --
-- No entries --
*** LAST BLOCKCHAIN 20 INFO LOGS ***
sudo tail -n 20 /mnt/hdd/bitcoin/debug.log
2020-08-10T05:59:04Z UpdateTip: new best=000000000000000000007cdd53042ac9ea3240b0255a3fcc07dde7fdfc5af0b7 height=643034 version=0x20000000 log2_work=92.18899 tx=556960373 date='2020-08-10T05:58:56Z' progress=1.000000 cache=8.3MiB(73674txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T05:59:42Z UpdateTip: new best=000000000000000000039c97f7e47d29a7989f58a772785862af1f50a9c0211f height=643035 version=0x20000000 log2_work=92.189008 tx=556961634 date='2020-08-10T05:59:04Z' progress=1.000000 cache=8.4MiB(74807txo) warning='73 of last 100 blocks have unexpected version'
2020-08-10T06:31:04Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1882 seconds ago)
2020-08-10T06:31:10Z New outbound peer connected: version: 70015, blocks=643035, peer=573 (full-relay)
2020-08-10T06:34:56Z UpdateTip: new best=0000000000000000000f9b41b3edf2645f00fcbaea8d60b87d2cd2d5d828107c height=643036 version=0x20000000 log2_work=92.189027 tx=556964295 date='2020-08-10T06:34:21Z' progress=1.000000 cache=10.8MiB(97129txo) warning='73 of last 100 blocks have unexpected version'
2020-08-10T06:45:33Z Pre-allocating up to position 0x6000000 in blk02189.dat
2020-08-10T06:45:33Z UpdateTip: new best=0000000000000000000ea5a9d06c374ffb8e4e92130c8c9b6509b21d1cc9a5cf height=643037 version=0x20400000 log2_work=92.189045 tx=556965857 date='2020-08-10T06:45:29Z' progress=1.000000 cache=12.7MiB(110427txo) warning='73 of last 100 blocks have unexpected version'
2020-08-10T06:50:21Z UpdateTip: new best=00000000000000000007b0958b14cdbafe1a3c74ea95be81670e0d2635284777 height=643038 version=0x2fffe000 log2_work=92.189064 tx=556968075 date='2020-08-10T06:50:12Z' progress=1.000000 cache=13.4MiB(117108txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T06:50:25Z ERROR: AcceptBlockHeader: Consensus::ContextualCheckBlockHeader:<PHONE_NUMBER>00000000639be19a0123a1c99d9fef89f0b8ac055a77f4ef86ae3b, bad-diffbits, incorrect proof of work
2020-08-10T06:58:05Z UpdateTip: new best=00000000000000000006b118d6dafcaf65eb20ec7152be997d0b84ea888d3ea6 height=643039 version=0x20400000 log2_work=92.189082 tx=556970046 date='2020-08-10T06:57:56Z' progress=1.000000 cache=14.1MiB(123735txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T07:05:10Z Pre-allocating up to position 0xc00000 in rev02189.dat
2020-08-10T07:05:10Z UpdateTip: new best=0000000000000000000fc2455dd1b7a16eb951db7888834e566e33718f2a1cda height=643040 version=0x37ffe000 log2_work=92.1891 tx=556972361 date='2020-08-10T07:04:58Z' progress=1.000000 cache=14.8MiB(130016txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T07:10:49Z UpdateTip: new best=0000000000000000000e9ffc2bc0230ddd0d0e76753af0de53c22af96f54299c height=643041 version=0x20000000 log2_work=92.189119 tx=556973717 date='2020-08-10T07:10:45Z' progress=1.000000 cache=15.2MiB(134130txo) warning='73 of last 100 blocks have unexpected version'
2020-08-10T07:23:38Z UpdateTip: new best=0000000000000000000fed1f0d7727879989992e2c810745d6bc6d8c50f81d1c height=643042 version=0x20400000 log2_work=92.189137 tx=556976096 date='2020-08-10T07:23:35Z' progress=1.000000 cache=16.2MiB(143581txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T07:31:00Z ping timeout: 1200.042171s
2020-08-10T07:31:06Z UpdateTip: new best=00000000000000000005dbfe9a7127c92e6583d05aabb030dfdcdf446a83f20e height=643043 version=0x20c00000 log2_work=92.189156 tx=556977727 date='2020-08-10T07:30:46Z' progress=1.000000 cache=16.9MiB(149693txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T07:44:14Z UpdateTip: new best=000000000000000000094ebbef725a509bcd165db1a88661a87ac7007db6a126 height=643044 version=0x20400000 log2_work=92.189174 tx=556979867 date='2020-08-10T07:43:48Z' progress=1.000000 cache=18.0MiB(160442txo) warning='75 of last 100 blocks have unexpected version'
2020-08-10T07:56:12Z Pre-allocating up to position 0xd00000 in rev02189.dat
2020-08-10T07:56:12Z UpdateTip: new best=00000000000000000000de4d481f1bf2f96847fa09df5fb7a751c96a81a98798 height=643045 version=0x20000000 log2_work=92.189193 tx=556982196 date='2020-08-10T07:55:33Z' progress=1.000000 cache=19.0MiB(170053txo) warning='74 of last 100 blocks have unexpected version'
2020-08-10T08:10:06Z UpdateTip: new best=00000000000000000006189244f4f71fd611f7a1fc8f1428f3b16b655d51711f height=643046 version=0x20000000 log2_work=92.189211 tx=556984179 date='2020-08-10T08:09:37Z' progress=1.000000 cache=20.0MiB(179089txo) warning='73 of last 100 blocks have unexpected version'
*** LND SYSTEMD STATUS ***
● lnd.service - LND Lightning Daemon
Loaded: loaded (/etc/systemd/system/lnd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-08-10 05:55:48 BST; 3h 24min ago
Process: 3068 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log lightning STARTED (code=exited, status=0/SUCCESS)
Main PID: 3075 (lnd)
Tasks: 14 (limit: 2200)
Memory: 10.5M
CGroup: /system.slice/lnd.service
└─3075 /usr/local/bin/lnd --externalip=<IP_ADDRESS>:9735 --accept-…
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
*** LAST LND ERROR LOGS ***
sudo journalctl -u lnd -b --no-pager -n12
-- Logs begin at Mon 2020-08-10 08:19:52 BST, end at Mon 2020-08-10 09:20:16 BST. --
-- No entries --
*** LAST 30 LND INFO LOGS ***
sudo tail -n 30 /mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log
2020-08-10 05:55:50.836 [INF] LTND: Version: 0.10.4-beta commit=v0.10.4-beta, build=production, logging=default
2020-08-10 05:55:50.836 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2020-08-10 05:55:50.836 [INF] LTND: Opening the main database, this might take a few minutes...
2020-08-10 06:17:00.259 [INF] CHDB: Checking for schema update: latest_version=13, db_version=13
2020-08-10 06:17:00.304 [INF] LTND: Database now open (time_to_open=21m9.467712757s)!
2020-08-10 06:17:00.585 [INF] RPCS: password RPC server listening on <IP_ADDRESS>:10009
2020-08-10 06:17:00.586 [INF] RPCS: password RPC server listening on <IP_ADDRESS>:10008
2020-08-10 06:17:00.796 [INF] RPCS: password gRPC proxy started at <IP_ADDRESS>:8080
2020-08-10 06:17:00.800 [INF] LTND: Waiting for wallet encryption password. Use lncli create to create a wallet, lncli unlock to unlock an existing wallet, or lncli changepassword to change the password of an existing wallet and unlock it.
2020-08-10 06:17:14.692 [INF] LNWL: Opened wallet
*** LAST NGINX LOGS ***
sudo journalctl -u nginx -b --no-pager -n20
-- Logs begin at Mon 2020-08-10 08:19:52 BST, end at Mon 2020-08-10 09:20:16 BST. --
-- No entries --
--> CHECK CONFIG: sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

TOUCHSCREEN is OFF by config
Loop is OFF by config

*** LAST 20 RTL LOGS ***
sudo journalctl -u RTL -b --no-pager -n20
-- Logs begin at Mon 2020-08-10 08:19:52 BST, end at Mon 2020-08-10 09:20:17 BST.
'Run Hardwaretest' in main menu or: sudo /home/admin/05hardwareTest.sh
*** SYSTEM STATUS (can take some seconds to gather) ***
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_AT.UTF-8)
localIP='X.X.X.X'
tempCelsius='68.2'
uptime=12480
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_AT.UTF-8)
upsStatus='OFF'
startcountBlockchain=1
bitcoinActive=1
blockchainHeight=643046
initialSync=0
syncProgress=100.00
startcountLightning=1
lndActive=1
lndRPCReady=0
walletOpened=1
walletReady=0
walletLocked=0
LND RPC is still warming up - no scan progress: prepare scan
scanTimestamp=-2
syncedToChain=0
lndRPCReady=0
blitzTUIActive=0
blitzTUIRestarts=0
scriptRuntime=2
*** OPTION: SHARE THIS DEBUG OUTPUT ***
An easy way to share this debug output on GitHub or on a support chat
use the following command and share the resulting link:
/home/admin/XXdebugLogs.sh | nc termbin.com 9999

Your node is running a little hot and has reported HW errors, which look to be temp warnings. The rpi seems a little sensitive to power and heat and sometimes leads to corrupt files on the disk. I would look into some cooling for the pi. I have mine sitting on top of an old 5V pc fan (run of separate power). I am running v1.6 without any current issues. I did have the error with the index and decided to delete the bitcoin data and re-sync the entire bitcoin chain data and index (copied from my PC).
Another thing I have started doing before a Raspiblitz upgrade is to disable RTL, as this makes the upgrade process longer.
@rootzoll , is there a script @JurGi7 could run to remove RTL, to see if it will take some load off the pi?
Also is it possible fo change the order of services being enabled when performing a Raspiblitz version upgrade that RTL could be upgraded up last, so the Node is back up and fully operational, then RTL is upgraded/enabled in the background?

Hello, thanks for the hint. Now my raspiblitz is working again. Have a fan built in. The temperature is now 44 degrees. Unfortunately I have to do without the display now. Thx bitsam ;-)

@rootzoll , is there a script @JurGi7 could run to remove RTL, to see if it will take some load off the pi?

You can switch off RTL in the SERVICES submenu - see if this changes something.

Also is it possible fo change the order of services being enabled when performing a Raspiblitz version upgrade that RTL could be upgraded up last, so the Node is back up and fully operational, then RTL is upgraded/enabled in the background?

We have much longer taking installs the RTL .. I will refactor the install of apps and features with the next version ... but every install would still need to finish before it boots into normal mode.
I will close this issue ... but re-open if you see any further bug to fix in here.


Deprecated features; use attributes

Rust has stability markers.  #[$stability_level] $ITEM:

#[stable]: Stable and officially supported for this major release
#[unstable]: Exists in this major release, but is not officially stable and may become deprecated.
#[experimental]: Exists, but is neither stable, unstable, nor deprecated
#[deprecated]: Existed as stable or unstable in a previous major release, has been marked for removal for the next major

An important note here is that rust will warn any consumers who use the deprecated, experimental, or unstable functions.

This was just off the top of my head, things may have changed. IIRC something was happening with experimental; maybe removed.

Appears to have been migrated to a compiler #![feature(staged_api)] #![staged_api]. Only gives stable unstable and deprecated stability markers.

This is good idea, but, I think it will not work on stable and beta rust, isn't it?

Anything #[stable] will work fine. Anything #[unstable] should be rejected by stable and beta, while nightly should allow the usage of the remaining.
Rust stops the consumption of these marked items, it doesn't prevent their existence. They would not prevent building on stable (unless a stable function attempts to use an unstable or deprecated function).
--
Thanks @Vinatorul for mentioning this, I only use nightly and so forgot about this detail.

unless a stable function attempts to use an unstable or deprecated function

What will happend when user will try to use deprecated function on stable? Compilation error, or warning?

Good question, but sadly I can't test, I only have nightly. If you have stable rust - you could try to consume something deprecated.

An early version of clap used these, but the Rust team quickly stated these were only for internal Rust use. We've asked about allowing them outside of std which worked, but was advised against. I haven't revisited the topic in a long time, but if this is now good to go outside of std I'm all for it and think it's a great idea!

I must have missed this discussion. Thanks for the note. Currently I'm trying to add them to my own code and for some reason; they don't appear to even want to be applied to my functions.... I also can't find any documentation past http://doc.rust-lang.org/reference.html.

I don't remember where the conversation took place, I think it was Reddit, and this was pre 1.0. Steveklabnik was the one with "official guidance" although there were quite a few people wanting to use something like these stability attributes. I believe even burntsushi was using them, who is now on the official libs team....so I have no idea what the current status of this is, or if it's even been brought back up.

The section that I referenced in the link above; shows that the feature remains and SHOULD be accessible to crates... But attempting to use so far, not having any luck.

Awesome, I'll try and look into this more over the next few days too. It'd be great if we can start incorporating these!

https://github.com/rust-lang/rust/blob/9165a4e2dcaaa878a33379c6ff097c68f0ca0485/src/test/auxiliary/inherited_stability.rs
#![feature(staged_api)]
#![staged_api]
// Default everything to unstable with issue 0.
#![unstable(feature = "clap", issue = "0")]

// This function is stable
#[stable(feature = "clap", since = "1.4.0")]
fn stable() { /* .. */ }

// This function was stable in 1.2.0. Since 1.4.0 it has been removed.
#[stable(feature = "clap", since = "1.2.0")]
#[deprecated(since = "1.4.0", issue = "123")] // In favor of? Sorry, go check the issue. :/
fn deprecated_function_since_1_4_0(foo: Foo) {
    // ...
}

Attempting to use deprecated_function_since_1_4_0 will cause the following WARNING.
warning: use of deprecated item, #[warn(deprecated)] on by default

Consumers
Consumers should be able to just use the crate such that they only use stable features. If an unstable feature is used, #![feature(clap)] is required to unlock the unstable items.  If the code already uses a deprecated function, a warning will inform for the deprecation at compile time.

Huge :+1:

The deprecated attribute should be stable now for everyone's use. There's also no deprecated items in clap right now, so this closed. All future depreciations will use said attribute.


deploy to heroku broken

Just tried to deploy to heroku and the app failed to launch. Attaching build logs and postdeploy logs in case it helps.
Config values:
SECRET_KEY_BASE = autogenerated
SEED_EMAIL =<EMAIL_ADDRESS>SEED_PASSWORD=something
SEED_USERNAME = admin
SSO_DOMAIN = psifertex.com
build-log.txt
post-deploy.txt

Looks like the cause was just the wrong documentation on minimum password length. Submitted #403 to resolve that.


Parser Cloud refactor

Refactor cloud interactions to CloudHelper + use cloudpathlib.
Preparing for ONT changes

Codecov Report

Merging #229 (47dfd88) into update-linting-and-py3-10 (e7761ca) will increase coverage by 0.41%.
The diff coverage is 67.22%.

@@                      Coverage Diff                      @@
##           update-linting-and-py3-10     #229      +/-   ##
=============================================================
+ Coverage                      55.71%   56.13%   +0.41%
=============================================================
  Files                             59       60       +1
  Lines                           4284     4302      +18
=============================================================
+ Hits                            2387     2415      +28
+ Misses                          1897     1887      -10

Impacted Files
Coverage Δ

sample_metadata/parser/cloudhelper.py
59.30% <59.30%> (ø)

sample_metadata/parser/generic_parser.py
81.53% <80.00%> (+6.34%)
:arrow_up:

sample_metadata/parser/generic_metadata_parser.py
76.06% <100.00%> (-0.16%)
:arrow_down:

test/test_parse_generic_metadata.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Add interim mechanism to select current party via query parameter

Description
As a external portal I want to be able to signal Arbeidsflate about currently selected party so that the end-users can navigate between portals keeping the same representational context
Additional Information
Users might log in to skatteetaten.no or other portals utilizing a party selector similar to the one we have in Arbeidsflate (based on the same data in Altinn Authorization) in which the user may switch between the various parties that they may represent.
In order to preserve this context when navigating between the different portals, it is desirable to be able to indicate to the target portal the currently selected party.
Scope for this issue is an interim solution only handling passing of selected organization context, not person context, using query parameters which is required in order to support redirects and SSO roundtrips to ID-porten.
(At some point in the future, a general solution will have to be established allowing for secure and confidential exchange of any data required to preserve this context. This will have to be investigated, and is out-of-scope for this issue)
Tasks
- [ ] Add support for supplying a "party" query parameter to any non-details view in Arbeidsflate

Acceptance Criterias
GIVEN a request to Arbeidsflate that should result in a list of dialogs
WHEN the query parameter "party" is supplied containing a party identifier beginning with "urn:altinn:organization"
AND the full party id is in the currently authenticated users party list
THEN the currently selected party should be set to the provided organization

Could this wait until masking of party URN for type=person is in place? Assuming of course that is the main motivation for leaving out personal information in query parameter.  (Creating a URI schema with state that can be partially rehydrated depending on the type of data, is brittle by design.)
... if not (i.e. neither the main motivation or it can wait), propose/clarify scope and technical solution to:

add query selectedOrganizations which can be rehydrated in Arbeidsflate with following logic:
- empty list (or undefined) or invalid or ineligible parties=> ignored by client
- if list (of one or more valid organization parties) is an available option in the list of "selected current party", this will be
preselected.

This is out of scope:

AF should not add, modify or later on in the SPA's life cycle respect selectedOrganizations (only read after parties are successfully fetched).


GeoAI_2021_unit_03_EX_Spatial_prediction

Hello,
whenever I try to run
prediction <- raster::predict(rasterStack, ffsmodel, na.rm = TRUE)
I get the Error message
Warning in file(fn, "rb") :
cannot open file 'C:\Users\Kathi\AppData\Local\Temp\RtmpyijrEy\raster\r_tmp_2021-12-01_121626_23620_45054.gri': No such file or directory
Error in file(fn, "rb") : cannot open the connection
I tried reinstalling the raster package and running R as administrator.
The connection 'C:\Users\Kathi\AppData\Local\Temp\RtmpyijrEy\raster\r_tmp_2021-12-01_121626_23620_45054.gri'
indeed does not exist (there is no RtmpyijrEy folder in Temp).
In the first code chunk of this EX I changed predictors = training[,3:9] to predictors = training[,2:9] to include the OBJ_ID column. Might that be the problem?

Hi,
so I changed it back to predictors = training[,3:9] and ran the modell again and the chunk
prediction <- raster::predict(rasterStack, ffsmodel, na.rm = TRUE)
still does not run.
Also it seems like other (or maybe all) raster functions do not work either. I always get this error message:
Warning in file(fn, "rb") :
cannot open file 'C:\Users\Kathi\AppData\Local\Temp\RtmpyijrEy\raster\r_tmp_2021-12-01_121626_23620_45054.gri': No such file or directory
Error in file(fn, "rb") : cannot open the connection
I don't know what to do about this..

@GeoKL Actually the error message tells us that the predict function is not able to locate the raster stack file. You obvouisly did not run the setup function. At the end of the script  a temporary folder is set which "stabilize" for raster operation . However in this case you are running the predict on a stack that one was in the temporary folder under your user account. You need to fix this to a non temporary folder.

Thanks, you're right, since there was already a setup included in the EX (which has now changed), I did not include my normal setup (next time I will). But I ran
set raster temp path
raster::rasterOptions(tmpdir = envrmt$path_tmp)
before every try, which is what you mean by setting a temporary folder right?
Now I also included my normal setup skript and I still get the Error message. For example, when I try to run

raster::plotRGB(rasterStack)
Warning in file(fn, "rb") :
cannot open file 'C:\Users\Kathi\AppData\Local\Temp\RtmpyijrEy\raster\r_tmp_2021-12-01_121626_23620_45054.gri': No such file or directory
Error in file(fn, "rb") : cannot open the connection

So you said, I have to fix my folder to a non temporary folder. How do I do that?

the option ## set temp path to speed up raster package operations raster::rasterOptions(tmpdir = envrmt$path_tmp) is helpful to control the temporary folder of raster package operations.
the problem is that raster is writing a temporary file of your prediction stack. This is helpful if you run on a poor working memory. However it is often a problem because the temporary folders are often "unlinked" or "lost" - especially if you restart resessions etc.

@gisma I tried to run the forward feature selection model based on leave location out cross validation with my extracted data consisting of 20 polygons (10 of class "building" and 10 of class "other"). But it was not able to finish and told me: "Something is wrong; all the Accuracy metric values are missing:
Accuracy       Kappa
Min.   : NA   Min.   : NA
1st Qu.: NA   1st Qu.: NA
Median : NA   Median : NA
Mean   :NaN   Mean   :NaN
3rd Qu.: NA   3rd Qu.: NA
Max.   : NA   Max.   : NA
NA's   :1     NA's   :1
Error: Stopping
In addition: There were 11 warnings (use warnings() to see them)"
How can I tackle this problem and how can I put the accuracy metric values into the model to calculate on their base?

@gisma I now tried to run the ramdomly_goog_model script bevor and hoped the accuracy value would be used in the ffsmodel, but this time I got the message: Error in summary.connection(connection) : invalid connection
What could be the reason? And how can I transfer this obvious invalid connection into a valid connection?


Make inputs optional when -classpath and --main-class are passed

Context
The scala command allows to do the following:
▶ ls
Main.scala
▶ mkdir out
▶ scalac Main.scala -d out
▶ scala Main -classpath out
Hello

Meanwhile, Scala CLI:

passing the -classpath option out of the blue will just start the repl with the relevant classpath. this still allows to run whatever you want in the repl. We are keeping this behaviour.

▶ scala-cli -classpath out
Welcome to Scala 3.2.0 (17.0.2, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> Main.main(Array.empty)
Hello

it becomes more confusing if you try to pass the main class with the --main-class option, similarly to how the scala command allows to pass it as an input.

▶ scala-cli --main-class Main -classpath out
Unrecognized argument: --main-class

To list all available options, run
  scala-cli --help

This fails, as --main-class isn't an option for the repl, and we are defaulting to the repl.
Still, if we pass the run sub-command explicitly, it fails as well.
▶ scala-cli run --main-class Main -classpath out
[error]  No inputs provided (expected files with .scala, .sc, .java or .md extensions, and / or directories).

Even though the main class is specified and it is indeed passed on the classpath, scala-cli fails because it expects inputs.
After the changes
TL;DR the following syntax becomes available:

if the run sub-command is passed explicitly, it's sufficient to have a main class on the classpath, inputs aren't necessary then

▶ scala-cli run -classpath out
Hello

when using the default command, --main-class has to be passed explicitly (even if there's only one main class on the classpath) to indicate the intent of running it instead of defaulting to the repl

▶ scala-cli --main-class Main -classpath out
Hello

just passing the -classpath still defaults to the repl

▶ scala-cli -classpath out
Welcome to Scala 3.1.3 (17.0.2, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> Main.main(Array.empty)
Hello

It looks like the root behavior has/is become quite complex.  How are all of these different cases communicated in --help?

It looks like the root behavior has/is become quite complex. How are all of these different cases communicated in --help?

@mpkocher they aren't just yet, but we are planning some docs and -help improvements tied to the SIP changes down the line.


cchardet can't install in mac OS 10.14

'pip3 install cchardet'  get some problems !
I notice the wrong-log contain 'library not found for -lstdc++'，How should I solve the problem in mac OS 10.14 ?
here is log :
...
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1
----------------------------------------

Command "/Users/test/PycharmProjects/TWINT/venv/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-install-g79gn1a3/cchardet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-record-mq3ir1k2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/test/PycharmProjects/TWINT/venv/bin/../include/site/python3.6/cchardet" failed with error code 1 in /private/var/folders/4d/xnms9dqx1hg681lyf2ht7dtr0000gp/T/pip-install-g79gn1a3/cchardet/

Please only submit issues related to Twint

I do not really why this is happening. Anyway, googling around I found that some users are reporting this as a solution pip3 install cchardet==1.0.0

I do not really why this is happening. Anyway, googling around I found that some users are reporting this as a solution pip3 install cchardet==1.0.0

That did not work for me, I still get the following :
error: command 'gcc' failed with exit status 1

https://github.com/TokenMarketNet/smart-contracts/issues/115 works
Command:
MACOSX_DEPLOYMENT_TARGET=10.13 pip3 install cchardet


GOOGLE_APPLICATION_CREDENTIALS -- Is  this this ONLY way to auth for Datastore Client?

I need to access Google Datastore from an Azure resource.  In this particular environment, all keys are maintained in the Key Vault.
However, it seems like an actual physical file is required to be referenced in an environment variable called GOOGLE_APPLICATION_CREDENTIALS to provide the path to the raw json text file.
Is there not a way to stream in the credentials by calling GoogleCredential.FromStream(kvstream)...?  I've used this pattern in other Google APIs, but I'm just not seeing how to do that with the .NET Datastore client.  Is this missing, or am I just missing something?

I think I'm finding clues for how to provide the GoogleCredential directly, based on content from @jskeet:
https://github.com/GoogleCloudPlatform/google-cloud-dotnet/blob/f4fe517002f0636de6321c2c3e8e0c2ac99a1fcc/docs/root/faq.md
https://github.com/GoogleCloudPlatform/google-cloud-dotnet/blob/master/adhoc/Google.Cloud.ScopeTesting/Api.cs
I'll keep digging through this and see if I can make it work.

This isn't as simple as we'd like it to be, but here are the instructions for how to provide credentials for gRPC-based APIs:
https://googlecloudplatform.github.io/google-cloud-dotnet/docs/faq.html#how-can-i-use-non-default-credentials-for-grpc-based-apis
(Closing as for the moment, that documentation is all we can do. We are working on a new auth library, and when that's available we should be able to make this much simpler.)

Are there any updates on this? I have the same situation/requirement as jboarman.
Is there an approx timeline?

No, there's no more progress on this, and I don't expect there to be for a while (as it will depend on a new auth library).
It's not a huge amount of code to write, as I showed you in #2191. Yes, we'd like it to be simpler, but for the moment you can put those 5 lines of code into a method you call appropriately.


Revert minSdkVersion to 16 (works ok).

You can leave the minSdkVersion as 16 (I needed to support some old device), and no issues compiling.

+1


Helm chart servicenames need to include k8s namespace

Deploying vdc helm chart to a namespace other than 'default' fails. In fact the chart is deployed, but the wrong service names are constructed, meaning that none of the components use the correct network addresses for kafka or each other
This needs parameterizing in the charts
ping wandering-butterfly-cp-kafka.default.svc.cluster.local
ping: unknown host
BUT:
PING wandering-butterfly-cp-kafka.egeria.svc.cluster.local (<IP_ADDRESS>): 56 data bytes
^C--- wandering-butterfly-cp-kafka.egeria.svc.cluster.local ping statistics ---
34 packets transmitted, 0 packets received, 100% packet loss
here we deployed to the namespace 'egeria'

This was fixed as part of #910


added links frontend development page: javascript and design resources

Reference Issues
Closes https://github.com/Timonwa/techroadmap/issues/15
What does this implement/fix?

Added Javascript tips and tricks, tools, cool examples etc -> Codepen - The best place to build, test, and discover front-end code.
Added Design Resources tips and tricks, tools, cool examples etc -> Fontello - icon fonts generator

Welcome @senali-d and thank you for your pull request.
I have requested a few corrections, please do them before I can merge your request.

@all-contributors please add @senali-d for code and data


#1639 New preloader for item detail

Thank you for your contribution to the KodaDot NFT gallery.
👇  _ Do a quick check before the merge.
PR type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything works
[ ] I found edge cases

What's new?

[x] PR closes #1639

Had issue bounty label ?

[x] Fill up your KSM address:
Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI, a screenshot for others, is best to understand changes.

Perfect, I’ve sent the payout https://kusama.subscan.io/extrinsic/0x8de26f07235ab35a9e542e2d2d21c5b886bed86f737586484c0e3e37172468e2
Let’s grab another issue and get rewarded!
https://github.com/kodadot/nft-gallery/issues/