how to use..

can u any provide some info on using this in node-red

With help of google Translate you can get it working everything you need to know is on Node Description
`Properties
A node that allows you to manage your Broadlink RM.
Choose an action, or set it through msg.payload.action
Temperature
Msg.payload.action = 'temperature';
Training
Msg.payload.action = 'learn';
Control
You can send the code:
Msg.payload.action = 'send';
Msg.payload.data = [38, 0, 34, 1, 40, 15, 40, 15 ....];
Msg.payload.repeat = 0;
Either the button Id from the jsonIrCode file:
Msg.payload.action = 'send';
Msg.payload.button = 202;`
and
Copy the directory / sdcard / broadlink / eControl / from your Android device, and specify the path to it in the "Catalog" field. In the "SharedData" directory there should be files "jsonSubIr", "jsonButton" and "jsonIrCode". If they do not exist, then it is possible to tap "Share" in the eControl, "Share with other smartphones in the WI-FI network." After that, the files should appear.


Disallow people to join with default yuzu name

Shouldn't there rather be an error message to tell them what to do instead of (I assume from the memory allocation) crashing them?
Otherwise this will trigger support requests from people not knowing why the game crashes.
From a usability perspective I'd suppose showing the error message before loading into the main menu and even prevent to reach the main menu at all.
E.g.: "Error: Default emulator profile detected. Please change your settings first."
Oh, and it should also prevent the default Ryujinx ID (00000000-0000-0001-0000-000000000000) and name (RyuPlayer?).

If this does end up sticking with the crashing approach, I'd recommend deferencing a null pointer (and using it) instead of infinite memory allocation as its a lot less resource intensive. Though error messages are definitely the right approach here


OCULUS RIFT STEAM VR XPLANE 11 OR XPLANE 12 AND LINUX, WHAT IS THE BEST COMBINATION DISTRO ETC... THANKS

Well, First of all, Nice to post my first Title in here, normally I am the kind of guy who reads and try to find the solution on the problems others had before since I do use humble and legacy hardware normally, but in this case, I feel like I trully need to share my madness or happiness to have you guys all in here to fight again this kind of issues that makes us trying to feel even sorry for not being millionaire, since it is always a matter of buying new graphic card more ram etc...  the thing is that, believe it or not 5 years ago I made my Oculus Rift to work with a PHENON II AMD 20 years old already computer by viapassing the SSE limit by purpose to force us to always have to think on taking the easy solution if you have the money to always go for a better piece of .......... hardware.
I started using the geforce gt 1030 and enjoyed the google earth VR and even XPLANE on it. until META changed the driver and since it is a new one the put also another limit for not using the GT 1030 AND IT WORKED REALLY NICE UNTIL THEY FORCED US TO STOP USING IT. now..... after readying what is happening in Linux also..... with the Nvidia drivers and kernel.
Any can tell me in here the details of the software using nowadays for making the Oculus Rift CV 1 WORK AGAIN PLEASE ? not sure if for not having to by pass the run with the script should I go to Arch linux or Centos, I would like to give it a try first on Ubuntu if possible, but not sure if I should use mesa, downgrade the kernel 6 down to other or drivers vulkan open gl or mesa ??? any help will be much apreciated.  GREAT WORK !!! ;) GOD BLESS

I think you are out of luck, my friend.
This project has not had any real work done on it in a long time.  Indeed the latest commit 2 weeks ago was to the readme.md saying that this project is currently unmaintained. Prior to that it's months or even years.
Until this project is picked up by someone you  might want to look at monado which has been worked on in the last year.

Thanks for the answer NewSoup !! ;) I am reading and reading about monado and staff, I might give a try and test several kernels and versions, letś see. Thanks so much, do you use any VR ?

Can´t believe now same thing now for a Chinese computer....have to by pass the SSE AGAIN ??? any suggestion ? to make it work ?

a required extension for running the Open GL bridge was not supported by nvidia GT 1030 for running VULKAN ??? HAHAHAHA Cant believe it, I have been running with this GPU Vulkan for years, and now with new driver can´t ??? is it a joke ? :) lol


Adding package.json

Adding package.json to allow for installing via npm

This is great!
I use bower more then npm so never got around to writing this.
Thanks.

Glad I could help. 👍


Some WhatsApp chats are duplicated in the search menu

Description:
Some Whatsapp chats are duplicated in the ˆn search menu and indistinguishable from each other (see Screenshot). When opened, only one of them contains the messages, while the other are just empty. Maybe this has something to do with changing number.
The problem is only for WhatsApp (at least for me).

How to reproduce it:
Try to search for a WhatsApp chat. Not all of them display this behaviour.
Environment:

Version:
OS / distro: MacOS 13.2.1

Hi @ricott1 - thanks for reporting this. I don't see the issue on my side, but I've added some new developer mode debugging capability in nchat just now (in 4b1190b / v5.2.11). If you get a chance to build and run latest nchat, then please try start it in developer mode like this: nchat -m
Then when opening the ^n dialog, it will display chat ids (which in the case of WhatsApp are phone numbers) next to each contact name. It's maybe not a good idea to share the actual numbers here in public, but you could perhaps let me know if all numbers of this contact look like real (and unique) phone numbers, and whether they seem to support your theory about contact having changed phone numbers?

This issue occurs with telegram also, it affects chats with changed names. As far as I can see nchat somehow displays old chat names that no are longer in use.

Thanks for providing additional details, I have some idea what the issue is (basically nchat has a cache of contacts which is never pruned IIRC, contacts are only added). Will look into fixing this, but might take a little while. Meanwhile, if you're mainly using the contact list to navigate between existing chats (and not opening new chats), you can try the new goto chat function with key binding alt-n.

Thanks! I really appreciate your time for this :)

I was thinking, maybe a simpler workaround would be to allow to delete duplicate chats permanently on the UX? Maybe by persisting a list of filtered numbers that are just not shown. At least for me M-d does not work in achieving that.

Thanks for the suggestion, yeah that should be a quicker (short-term) fix, will take a look.


build: migrate @angular/cli to ts_project

The @angular/cli package has been migrated to the rules_js ts_project rule.

The changes were merged into the following branches: main, 19.0.x


go.mod: update github.com/containers/image/v5

TL;DR: This fixes broken unit tests and other code using container.NewClient when running on EL9 with containers-common>=1-43.el9 and on EL8 with containers-common>=1-40.el8. We will definitely be backporting this to 9.1 and 8.7.
Version 5.22 introduced a new option to /etc/containers/policy.json called keyPaths, see https://github.com/containers/image/pull/1609
EL9 immediately took advantage of this new feature and started using it, see https://gitlab.com/redhat/centos-stream/rpms/containers-common/-/commit/04645c4a84442da3324eea8f6538a5768e69919a
This quickly became an issue in our code: The go library (containers/image) parses the configuration file very strictly and refuses to create a client when policy.json with an unknown key is present on the filesystem. As we used 5.21.1 that doesn't know the new key, our unit tests started to failing when newer containers-common is present.
Reproducer:
podman run --pull=always --rm -it centos:stream9
dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb
dnf install -y gpgme-devel libassuan-devel krb5-devel golang git-core
git clone https://github.com/osbuild/osbuild-composer
cd osbuild-composer

# install the new containers-common and run the test
dnf install -y https://kojihub.stream.centos.org/kojifiles/packages/containers-common/1/44.el9/x86_64/containers-common-1-44.el9.x86_64.rpm
go test -count 1 ./...

# this returns:
--- FAIL: TestClientResolve (0.00s)
    client_test.go:31:
        	Error Trace:	client_test.go:31
        	Error:      	Received unexpected error:
        	            	Unknown key "keyPaths"
        	            	invalid policy in "/etc/containers/policy.json"
        	            	github.com/containers/image/v5/signature.NewPolicyFromFile
        	            		/osbuild-composer/vendor/github.com/containers/image/v5/signature/policy_config.go:88
        	            	github.com/osbuild/osbuild-composer/internal/container.NewClient
        	            		/osbuild-composer/internal/container/client.go:123
        	            	github.com/osbuild/osbuild-composer/internal/container_test.TestClientResolve
        	            		/osbuild-composer/internal/container/client_test.go:29
        	            	testing.tRunner
        	            		/usr/lib/golang/src/testing/testing.go:1439
        	            	runtime.goexit
        	            		/usr/lib/golang/src/runtime/asm_amd64.s:1571
        	Test:       	TestClientResolve
    client_test.go:32:
        	Error Trace:	client_test.go:32
        	Error:      	Expected value not to be nil.
        	Test:       	TestClientResolve

 When run with an older containers-common, it succeeds:
 dnf install -y https://kojihub.stream.centos.org/kojifiles/packages/containers-common/1/40.el9/x86_64/containers-common-1-40.el9.x86_64.rpm
 go test -count 1 ./...
 PASS

To sum it up, I had to upgrade github.com/containers/image/v5 to v5.22.0. Unfortunately, this wasn't so simple, see
go get github.com/containers/image/v5@latest
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading github.com/mattn/go-sqlite3/go.mod at revision v2.0.3: unknown revision v2.0.3

It turns out that<EMAIL_ADDRESS>has been recently retracted, see https://github.com/mattn/go-sqlite3/pull/998. This broke a ton of packages depending on it. I was able to fix it by adding
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible

to our go.mod, see https://github.com/mattn/go-sqlite3/issues/975#issuecomment-955661657
After adding it, go get github.com/containers/image/v5@latest succeeded and tools/prepare-source.sh took care of the rest.
Signed-off-by: Ondřej Budai<EMAIL_ADDRESS>This pull request includes:

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

I had to add yet another commit to fix a new "feature" of the updated BurntSushi/toml that got pulled in by updating github.com/containers/image/v5. :shrug:
Anyway, I tested this PR on CentOS Stream 9 with containers-common-1-44.el9.x86_64 installed and the unit tests are now working.
[root@e9bdfe85ad86 osbuild-composer]# rpm -q containers-common
containers-common-1-44.el9.x86_64
[root@e9bdfe85ad86 osbuild-composer]# git fetch origin pull/2925/head:update
remote: Enumerating objects: 632, done.
remote: Counting objects: 100% (279/279), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 632 (delta 271), reused 273 (delta 271), pack-reused 353
Receiving objects: 100% (632/632), 1011.65 KiB | 1.90 MiB/s, done.
Resolving deltas: 100% (337/337), completed with 217 local objects.
From https://github.com/osbuild/osbuild-composer
 * [new ref]           refs/pull/2925/head -> update
[root@e9bdfe85ad86 osbuild-composer]# git checkout update
Switched to branch 'update'
[root@e9bdfe85ad86 osbuild-composer]# go test -count 1 ./...
?   	github.com/osbuild/osbuild-composer/cmd/gen-manifests	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/mock-dnf-json	[no test files]
ok  	github.com/osbuild/osbuild-composer/cmd/osbuild-composer	0.055s
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-composer-image-definitions	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-koji	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-mock-openid-provider	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-package-sets	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-pipeline	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-playground	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-service-maintenance	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-store-dump	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-aws	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-azure	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-container	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-gcp	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-generic-s3	[no test files]
?   	github.com/osbuild/osbuild-composer/cmd/osbuild-upload-oci	[no test files]
ok  	github.com/osbuild/osbuild-composer/cmd/osbuild-worker	0.099s
?   	github.com/osbuild/osbuild-composer/internal/artifact	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/auth	0.021s
ok  	github.com/osbuild/osbuild-composer/internal/blueprint	0.009s
ok  	github.com/osbuild/osbuild-composer/internal/client	0.820s
?   	github.com/osbuild/osbuild-composer/internal/cloud/awscloud	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/cloud/gcp	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/cloudapi	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/cloudapi/v2	2.420s
ok  	github.com/osbuild/osbuild-composer/internal/common	0.011s
ok  	github.com/osbuild/osbuild-composer/internal/container	0.335s
ok  	github.com/osbuild/osbuild-composer/internal/crypt	0.016s
ok  	github.com/osbuild/osbuild-composer/internal/disk	0.029s
ok  	github.com/osbuild/osbuild-composer/internal/distro	12.327s
?   	github.com/osbuild/osbuild-composer/internal/distro/distro_test_common	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/distro/fedora	0.036s
ok  	github.com/osbuild/osbuild-composer/internal/distro/rhel7	0.021s
ok  	github.com/osbuild/osbuild-composer/internal/distro/rhel8	0.063s
ok  	github.com/osbuild/osbuild-composer/internal/distro/rhel9	0.056s
?   	github.com/osbuild/osbuild-composer/internal/distro/test_distro	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/distroregistry	0.015s
ok  	github.com/osbuild/osbuild-composer/internal/dnfjson	1.683s
?   	github.com/osbuild/osbuild-composer/internal/environment	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/image	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/jobqueue/fsjobqueue	0.467s
?   	github.com/osbuild/osbuild-composer/internal/jobqueue/jobqueuetest	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/jsondb	0.005s
?   	github.com/osbuild/osbuild-composer/internal/manifest	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/mocks/distro	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/mocks/dnfjson	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/mocks/rpmmd	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/mocks/rpmrepo	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/osbuild	0.145s
?   	github.com/osbuild/osbuild-composer/internal/oscap	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/ostree	0.004s
?   	github.com/osbuild/osbuild-composer/internal/ostree/mock_ostree_repo	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/platform	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/prometheus	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/reporegistry	0.030s
ok  	github.com/osbuild/osbuild-composer/internal/rhsm	0.004s
ok  	github.com/osbuild/osbuild-composer/internal/rpmmd	0.016s
ok  	github.com/osbuild/osbuild-composer/internal/rpmmd/test	0.012s
?   	github.com/osbuild/osbuild-composer/internal/runner	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/store	0.020s
ok  	github.com/osbuild/osbuild-composer/internal/target	0.012s
?   	github.com/osbuild/osbuild-composer/internal/test	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/upload/azure	0.010s
?   	github.com/osbuild/osbuild-composer/internal/upload/koji	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/upload/oci	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/upload/vmware	[no test files]
ok  	github.com/osbuild/osbuild-composer/internal/weldr	0.530s
ok  	github.com/osbuild/osbuild-composer/internal/worker	0.067s
?   	github.com/osbuild/osbuild-composer/internal/worker/api	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/worker/clienterrors	[no test files]
?   	github.com/osbuild/osbuild-composer/internal/workload	[no test files]
?   	github.com/osbuild/osbuild-composer/pkg/jobqueue	[no test files]
?   	github.com/osbuild/osbuild-composer/pkg/jobqueue/dbjobqueue	[no test files]


Doesn't have some types inside .vue files

I am using Vite with my project, which resolves .png files as strings.
Inside typescript file I have no errors, but .vue file gives me "Cannot find module 'assets/logo.png' or its corresponding type declarations.ts(2307)"
Also import.met.env.PROD gives the same error. I think it doesn't use vite/client from types inside tsconfig.json. Also mite be relevant that I have my tsconfig not inside root folder, but in <root>/_spa.

Thanks for report, but sorry I not fully understand the problem. Could you make a repro case by https://github.com/johnsoncodehk/volar-starter?

Using this starter, after npm install, this code gives me error:
import App from './App.vue';
// Cannot find module './App.vue' or its corresponding type declarations.ts(2307)

(And I haven't done anything yet)
Repro link: https://github.com/sheremet-va/volar-starter
I have basically put everything inside _spa folder and modified App.vue. You can see that I have types on isProd, components inside src/App.vue, but inside _spa/src/App.vue types are not inferred.

It works for me...

Works for me too on my home machine. Will try again on my work machine, maybe I had an outdated extension or some kind of broken vscode config.

Closing the issue for now!

This happens when vue project is in a subfolder of your root workspace. Vetur also had suffered from this problem.

@alperencaliskan And how to fix that? I'm working on a Laravel based project but I could imagine everyone on a backend + frontend project will suffer this issue...
I got this inside a .ts file, I tried million things but none of them works, and yes, I've enabled the TS plugin option of Volar (which says the support of .vue files):


Remove old code which was used for Ocropus

Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

This should fix issue #2926.

thanks

SetFillLatticeFunc(FillLatticeFunc() was not part of the ocropus stuff.

https://github.com/tesseract-ocr/tesseract/search?q=fill_lattice_&unscoped_q=fill_lattice_

@amitdo, maybe the code which refers to fill_lattice_ could be removed, too. Or is there someone who uses that?

Maybe that code is/was used by Google internal version.

Here's another SetSomethingFunc
https://github.com/tesseract-ocr/tesseract/blob/23be532f7d91c88fd3d3c32199526438b3990092/src/api/baseapi.cpp#L1993
probability_in_context_
https://groups.google.com/forum/?hl=en#!topic/tesseract-dev/YsJogVVFbGk

Ray 9/9/14
There is no code in tesseract to implement or train an n-gram model, only to make use of one.
There is a "hook" function and code to set it to an external function.
TessBaseAPI::SetProbabilityInContextFunc is used to set it.
We experimented with it in Google with some existing Google-specific n-gram library. It didn't help very much in most languages, although it does in cases where the dictionary is particularly weak for some reason, like CJK.
A single function is required that returns the probability of the current "character" (in general a utf-8 string) given the context of a previous utf-8 string.
It is fairly simple to write and train, given appropriate training data.
The difficulty is with balancing the strength of the n-gram model and the shape classifier confidences. For speech recognition, where typical system accuracies are 80-90%, it is easy to use language models to combine with a poor accuracy phoneme classifier, but in OCR, where typical word accuracies exceed 95% (for alphabetic, word-segmented languages) language models of any kind can easily start replacing infrequent, but correct results with more frequent, but wrong results, and nobody has properly solved the problem in a way that is mathematically and statistically rigorous. Looking at OCR output, it is easy to spot cases where language models could help, but not so easy to see the already-correct results that would be made worse.

@stweil,
GetPageRes() is used in unittest/baseapi_test.cc

Thank you. Sorry that I missed that. Pull request #2962 should fix it.


How to properly use it on iOS

Sorry for posting this as an issue, I struggled to get it working on iOS so that's why I'm sharing it here.
After digging down the native code (which I barely understand), I finally got it to work.
This is my code in case it helps anyone:
import { NativeEventEmitter, NativeModule, Platform } from 'react-native';
import RNScreenRecordPrevent from 'react-native-screen-record-prevent';

const setUpScreenRecordingListener = () => {
  if (Platform.OS === 'android') return; // this code only works on iOS

  RNScreenRecordPrevent.enabled(true); // it must be enabled first
  const iosNativeEvent = new NativeEventEmitter(RNScreenRecordPrevent as unknown as NativeModule); // for typescript
  iosNativeEvent.addListener('ScreenRecordingEvent', (data) => {
    // data is in the form of: { status: boolean }
    showSimpleAlert({
      title: 'Screen recording detected',
      message: 'Screen recording detected with listener',
    });
  });

  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
  RNScreenRecordPrevent.checkRecordingStatus().then((value: { status: boolean }) => {
    if (value.status)
      showSimpleAlert({
        title: 'Screen recording detected',
        message: `Screen recording detected with status check, value: ${JSON.stringify(value)}`,
      });
  });
};

thanks bro, it's very helpful for me


Do not create "MD5OfMessageAttributes" when the message doesn't have "MessageAttributes" field

When sending a message, the AWS Client will validate the field MD5OfMessageAttributes only if it's present in the payload.
Apparently, the SendMessage function in gosqs.go is appending the field MD5OfMessageAttributes regardless of the payload having 'MessageAttributes'. This causes the AWS Client validation to fail.
AWS SDK
if (isset($msg['MD5OfMessageAttributes'])) {
    $messageAttributesMd5 = self::calculateMessageAttributesMd5($msg);
       if ($messageAttributesMd5 !== $msg['MD5OfMessageAttributes']) {
          throw new SqsException(
             'Attribute MD5 mismatch. Expected %s, found %s',
             $msg['MD5OfMessageAttributes'],
            $messageAttributesMd5
               ? $messageAttributesMd5
               : 'No Attributes'
          )
      }
}

Stacktrace
 Attribute MD5 mismatch. Expected d41d8cd98f00b204e9800998ecf8427e, found No Attributes {"exception":"[object] (Aws\\Sqs\\Exception\\SqsException(code: 0): Attribute MD5 mismatch. Expected d41d8cd98f00b204e9800998ecf8427e, found No Attributes at /var/www/html/vendor/aws/aws-sdk-php/src/Sqs/SqsClient.php:221)

Apparently the solution is only to not put the "MD5OfMessageAttributes" if the "MessageAttributes" is not present.
I would open a PR to this, but I'm not quite sure if I'm going to have time anytime soon.
Thanks,

@p4tin Can you please create a release and update the docker image ?
I need this fix :)

A Tag of the version would be also nice :)
@williamdes In the meantime you can use nednisw/goaws. I've build it a few minutes ago, it is using the current master.


Notebook for using ffcv dataloaders with composer

Same as title

This is really well done! Hopefully ffcv does a release soon and we can remove that monkeypatch...

We can remove this with their next release.

Can you also manually add this to the https://docs.mosaicml.com/en/stable/getting_started/notebooks.html page?

Done.


Update player movement

Default player movement currently allows you to stop in-between tile positions. Add a path queue that prevents changing move paths while moving.

Fixed internally by @Polkm in vertex-adventure@2dc6bc0.


drivers: pwm: pwm_stm32.c: enable ARR preload

drivers: pwm: pwm_stm32.c: enable ARR preload
Enable ARR preload so that period or pulse updates are taken
into account synchronously with update event
(at the end of a ongoing period)
And thus avoid undetermined intermediate pulse.
Fixes #29446
Tested on Nucleo_f401re

Seems like a duplicate of #29470 (or at least related)

I confirm I can't reproduce the #29446 bug with this patch. Thanks.

As there was an already open PR trying to address the same observed issue, I think it would have been better to discuss the synchronous solution there to avoid 2 parallel PRs.

Yes, but to start the discussion, I wanted to shared my proposal so I needed to open a new PR.


-[RLMRealm createtInRealm:withObject:] doesn't handle circular object graphs

Hi.
I have a crash.
Info:
we have a several level structure.
Main model has several one-to-many and one-to-one relationships. Some of these models have also some relationships by their own.
Goal:
Copy the object with all its dependencies into a new realm.
Setup:
We have two realms, the default one, and the custom one.
We add the model to the default one, and then we need to copy it to the custom one.
RLMRealm *customRealm = [ModelClass customRealm];
[customRealm transactionWithBlock:^{
  [ModelClass createInRealm: customRealm withObject:model];
}];

Realm version: 0.91.1
Xcode: 6.3
Stack trace:
https://gist.github.com/OlegAnghelov/21949e98688f769825b1
Code crash:
screenshot 2015-04-23 18 26 03
Or is there anything I am doing incorrectly in this situation? I can't find any hints in the documentation.

I created a custom project:
https://www.dropbox.com/s/d59derdr489a4nn/RealmMigration.zip?dl=0

@OlegAnghelov thanks so much for putting together this example project. The code path behind createOrUpdate is something that needs a good refactor (see https://github.com/realm/realm-cocoa/issues/1362), and that refactor should definitely address this issue. In the meantime, your best bet would be to not pass cyclical object graphs to createInRealm -- I know that's not ideal, but it should work as a stopgap while we fix the underlying issue.

The following is a failing unit test case that reproduces the issue:
- (void)testCreateInRealmWithCircularObject
{
    RLMRealm *realm = [self realmWithTestPath];

    CircleObject *object = [[CircleObject alloc] init];
    object.data = @"data";
    object.next = [[CircleObject alloc] initWithObject:@[@"other data", object]];

    [realm beginWriteTransaction];
    [CircleObject createInRealm:realm withObject:object];
    [realm commitWriteTransaction];
}

I've demoted this from P1 to P2 because we've had very few requests for this and we believe our other P1s are higher priorities.

Would like to request this given that any kind of follower/following relationship cannot be shared between Realms without a fix for this.

Unassigned because it's not clear that this is a direction we want to head. It creates an unnecessary space overhead for acyclic graphs, and it seems to encourage use cases where the user works with their objects outside of Realm and repeatedly copies them into Realm.
@dumoko It would be useful to know why you'd like to copy this object graph into Realm rather than using the add function.


TracEE 2: Upgrade Jetty to 8.1.x and use the same version in all TracEE modules

Let's move to Servlet-API 3.0 and Jetty 8.
In TracEE 1.x different Jetty versions have been used in different modules. With this PR I've added a variable in the parent pom and extracted the jetty-servlet dependency definition.

Hmm, Jetty 9 is depends on Java8 (See https://wiki.eclipse.org/Jetty/Starting/Jetty_Version_Comparison_Table ).
so we've to stick to Jetty8, even when it's EoL. But doesn't matter, we're only using it in our integration tests.

LGTM


Alias of global variables

Source: https://github.com/ruby/spec/blob/c037246cb4034e677493fb9fe34a9042308c261c/language/alias_spec.rb#L281
The following line:
alias $b $a

Results in a parse error in Natalie
syntax error, unexpected gvar '$b' (expected: 'alias new name (first argument)'

This looks like a duplicate of  #49, maybe I've been using an older version of the parser?


Rename navigation links

This issue is about renaming the links that allow you to see the previous and next day's suspicious diffs.
Currently, these links are named yesterday and tomorrow. I think it would be more clear if the title of these links were named in one of the following two ways:

Change yesterday to the previous day's date (e.g. 2020-09-26) and tomorrow to the next day's date (e.g. 2020-09-28).
Change yesterday --> Previous --> tomorrow to Next

Sure


Add read_bsrn function

[x] Closes #1015
[x] I am familiar with the contributing guidelines
[ ] Tests added
[x] Updates entries to docs/sphinx/source/api.rst for API changes.
[x] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[x] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[x] Pull request is nearly complete and ready for detailed review.
[ ] Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

@wholmgren I've changed it such that it now commits to pvlib:master. Hope it's correct.

@wholmgren I've changed it such that it now commits to pvlib:master. Hope it's correct.

Hi @AdamRJensen, could you update this PR to resolve the code style issues raised by Stickler?  It's easier to review PRs once stickler is satisfied.  The style issues are listed here: https://github.com/pvlib/pvlib-python/pull/1145/files

Hi @AdamRJensen, could you update this PR to resolve the code style issues raised by Stickler?  It's easier to review PRs once stickler is satisfied.  The style issues are listed here: https://github.com/pvlib/pvlib-python/pull/1145/files

Thanks @AdamRJensen! We will need some tests. Do you want me to push a test to your branch or do you want to take it on yourself? It seemed like you might have been disinclined to add a test in your first PR, but I am happy to help since this will be a big help to me.

Thanks @AdamRJensen! We will need some tests. Do you want me to push a test to your branch or do you want to take it on yourself? It seemed like you might have been disinclined to add a test in your first PR, but I am happy to help since this will be a big help to me.

Hi @kanderso-nrel, thanks for the heads up!
I wasn't sure if PVlib is very strict on style issues, e.g. line length<79 characters? I have corrected all instances of this, but in some places, it makes the code a little harder to follow / less compact.

Hi @kanderso-nrel, thanks for the heads up!
I wasn't sure if PVlib is very strict on style issues, e.g. line length<79 characters? I have corrected all instances of this, but in some places, it makes the code a little harder to follow / less compact.

@wholmgren I am definitely up for attempting to make tests. Can you point me in a direction to get started?

@wholmgren I am definitely up for attempting to make tests. Can you point me in a direction to get started?

Check out pvlib/tests/iotools/test_surfrad.py and pvlib/tests/iotools/test_surfrad.py pvlib/tests/iotools/test_solrad.py.
Add a test file to pvlib/data. Here's an example for the SURFRAD reader. You'll find similar for the other iotools.
Start by making your test as simple as possible. A single data file, no remote io capabilities. Probably ok to only assert the index values and the columns for now.

Check out pvlib/tests/iotools/test_surfrad.py and pvlib/tests/iotools/test_surfrad.py pvlib/tests/iotools/test_solrad.py.
Add a test file to pvlib/data. Here's an example for the SURFRAD reader. You'll find similar for the other iotools.
Start by making your test as simple as possible. A single data file, no remote io capabilities. Probably ok to only assert the index values and the columns for now.

I wasn't sure if PVlib is very strict on style issues, e.g. line length<79 characters? I have corrected all instances of this, but in some places, it makes the code a little harder to follow / less compact.

If you think it makes the code less readable then it's acceptable to add   # noqa: E501 to that line.

I wasn't sure if PVlib is very strict on style issues, e.g. line length<79 characters? I have corrected all instances of this, but in some places, it makes the code a little harder to follow / less compact.

If you think it makes the code less readable then it's acceptable to add   # noqa: E501 to that line.

If the test file is a proper BSRN data file, we should make sure we're staying within their conditions of data release.

If the test file is a proper BSRN data file, we should make sure we're staying within their conditions of data release.

If the test file is a proper BSRN data file, we should make sure we're staying within their conditions of data release.

@kanderso-nrel and @wholmgren any opinion on if I should create a pseudo-file or ask Amelie from BSRN if we can upload a single file for test purposes?

If the test file is a proper BSRN data file, we should make sure we're staying within their conditions of data release.

@kanderso-nrel and @wholmgren any opinion on if I should create a pseudo-file or ask Amelie from BSRN if we can upload a single file for test purposes?

@AdamRJensen I think we need to get explicit OK from the WRMC, because pvlib-python isn't a traditional "publication", but (in my view) qualifies as a "project for wide release." What matters, though, is WRMC's view of pvlib-python.
The way I read the Data Release Guidelines, assuming WRMC concurrence pvlib-python can include a file of BSRN data provided:

the file is clearly identified as originated from the WRMC (use the file name for this purpose if there isn't a free-form header)
users are provided with information on how to obtain the original data (function docstring does this, but we could also add a short paragraph to the LICENSE file about using the BSRN file).

@AdamRJensen I think we need to get explicit OK from the WRMC, because pvlib-python isn't a traditional "publication", but (in my view) qualifies as a "project for wide release." What matters, though, is WRMC's view of pvlib-python.
The way I read the Data Release Guidelines, assuming WRMC concurrence pvlib-python can include a file of BSRN data provided:

the file is clearly identified as originated from the WRMC (use the file name for this purpose if there isn't a free-form header)
users are provided with information on how to obtain the original data (function docstring does this, but we could also add a short paragraph to the LICENSE file about using the BSRN file).

My reading is that BSRN data downloaded directly from NASA websites is subject to NASA's Data and Information Policy. So I don't see any issue with including a test file from either of the GIM or LaRC sites.

My reading is that BSRN data downloaded directly from NASA websites is subject to NASA's Data and Information Policy. So I don't see any issue with including a test file from either of the GIM or LaRC sites.

@cwhanse, @wholmgren I have received the green light from BSRN management to add a single test file, however, it requires permission from the specific station manager.
Unless you have any objections, I ask permission from the station manager of the Payerne, Schwitzerland (PAY) station as they provide the largest number of parameters (logical records) in the files and will therefore also be suitable if additional capabilities are added in the future.

@AdamRJensen thanks, that works for me.

@wholmgren Permission has been granted from the station manager at PAY!
I have added a zipped test file, which is how BSRN provides them. However, I cannot add the same file unzipped as it is 26 MB, which cannot be uploaded to GitHub. Can this be circumvented or is it sufficient only to test the function on a zipped file?

@AdamRJensen a zipped file is fine with me. I checked out the branch and I see that the zipped file is 4.1 MB. This is slightly larger than other test files but not by enough that I'm concerned. An alternative is to reduce the length of the file by only including the first couple of days of data (see file below for example - added .txt to get around GitHub comment requirements). Other than convenience, is there a reason to include the entire data record?
bsrn-pay0616-2days.dat.txt

@AdamRJensen a zipped file is fine with me. I checked out the branch and I see that the zipped file is 4.1 MB. This is slightly larger than other test files but not by enough that I'm concerned. An alternative is to reduce the length of the file by only including the first couple of days of data (see file below for example - added .txt to get around GitHub comment requirements). Other than convenience, is there a reason to include the entire data record?
bsrn-pay0616-2days.dat.txt

@wholmgren No there is no particular reason for including all data at the moment. But if it is not a problem and we're okay just testing on a zip file, then I am in favor of just keeping the entire file as it is.

Closed by accident.

A clue for some of the test failures: https://github.com/pandas-dev/pandas/pull/37909
I get failures locally with b5ed6ee and pandas==1.2.2, but adding compression='infer' to the pd.read_fwf call gets them passing.

@AdamRJensen please review changes on my bsrnfixes branch:
https://github.com/wholmgren/pvlib-python/blob/bsrnfixes/pvlib/iotools/bsrn.py
https://github.com/wholmgren/pvlib-python/blob/bsrnfixes/pvlib/tests/iotools/test_bsrn.py
The function didn't quite produce the expected results when running it against this NASA LRC file that only contains the 0100 measurements: https://cove.larc.nasa.gov/BSRN/LRC49/2021/lrc0121.dat
In the process of trying to fix it, I changed the line number convention to make it make more sense to me. Fine with me if you want to keep the original convention so long as it's fixed to work correctly for files with only 0100.
I also refactored the test to use both files. I didn't actually add the NASA LRC file to git due to the data license considerations above, so you'll need to download it and put it in the right place if you want that test to run correctly. Alternatively, we could make a second test file from the PAY file that only contains the 0100 record.
If you can, try adding my fork as another git remote, fetching my branch, and comparing against yours. Normally I would make a pull request to your fork, but for some reason github won't give me the option to select it as the base repository.
Finally, it appears the bsrn.py file uses windows line breaks. Can you change that to unix line breaks?

@kanderso-nrel Thank you very much for solving the issue regarding the compression. Cleared a lot of issues! There are still 3 issues left... any ideas on these?
@wholmgren I prefer keeping it consistent with Python starting the line numbers at zero, hence I have added start=2 to the enumerate function. Also, I attempted to change the file to Unix line ending.. but I have no way of checking if it is correct now.

Older pandas versions had inconsistent behavior for offset strings... there's a relevant pandas issue or PR about this but I couldn't quickly find it.  Anyway I'd try T as the unit for the Timedelta because it means the same as minute in pandas lingo but might be supported by our minimum pandas version.  If python36-min doesn't like that either then I'll try to find that pandas page I'm remembering and figure out what will work across all versions.
For the codecov failure, it's because not 100% of your lines of code get run by the test suite: https://github.com/pvlib/pvlib-python/pull/1145/files#annotation_969052144.  If @wholmgren is okay with leaving the non-gzip branch untested then 96 can be left alone.  I haven't read the code in-depth enough to know whether it would be easy to engineer a test that runs 112.

the bsrn.py file in this zip should have the right line breaks: bsrn.py.zip

I'm unsure if there's anything else I need to do, but if that's the case please let me know. Thank you all for your patience and help!

Thanks @AdamRJensen for the new feature and for your patience during the review!
I expect it'll be a month or so before we release 0.9.0, but I'll make another pre-release by the end of next week.


Please document File type responses for MockWebServer

In MockWebServer, it's very easy and robust to respond to API requests. Thank you for a very cool tool.
What about content requests? It would be helpful to the community if you could update the readme.md with an example of a preferred method. There are discussions on SO in regards to this with no answers (Except for what I just posted there) LINK
Just for fodder.
What I'm doing currently, is to Base64 encode the binary (i.e. video/mp4), but the client that is consuming the response does not like it.
Here's my code. The encodedFile is what is passed back to MockWebServer's response handler for particular request for the video file.
My path is to the file which is resident on the sdcard.
<
//Base64 encode a binary IMAGE file to return with mock.
String getEncodedPngBinary(String path) {
    Bitmap bm = BitmapFactory.decodeFile(path);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    bm.compress(Bitmap.CompressFormat.PNG, 100, baos);

    //bm is the bitmap object
    byte[] b = baos.toByteArray();
    String encodedFile = Base64.encodeToString(b, Base64.NO_WRAP);
    return encodedFile;
}

//Base64 encode a binary VIDEO file to return with a mock.
String getEncodedVideoBinary(String path) throws IOException {
    File file = new File(path);
    byte[] fileData = FileUtils.readFileToByteArray(file);
    String encodedFile = Base64.encodeToString(fileData,Base64.NO_WRAP);
    return encodedFile;
}

//Base64 encode a binary IMAGE and compress as JPEG.
String getEncodedJpgBinary(String path) {
    Bitmap bm = BitmapFactory.decodeFile(path);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    bm.compress(Bitmap.CompressFormat.JPEG, 100, baos);

    //bm is the bitmap object
    byte[] b = baos.toByteArray();
    String encodedFile = Base64.encodeToString(b, Base64.NO_WRAP);
    return encodedFile;
}

In general serving large responses is a bad fit for MockWebServer. It requires all responses be completely loaded into memory.
For your specific case I don’t think base64 encoding is helping you. You should load the file into an okio.Buffer and go from there:
    Buffer buffer = new Buffer();
    buffer.writeAll(Okio.source(new File("tacos.jpg")));

MockResponse will take a Buffer.


Fix custom source sets

This PR resolves #97 by delaying LaunchProtoData task creation to afterEvaluate to handle the cases of delayed creation of custom source sets.
Latest config was also applied.

@armiol, @dmdashenkov, the error under Windows was caused by the call to GradleProject.enableRunnerDebug() I forgot to turn off. Somehow it causes resolution of Groovy dependency, which in turn fails because of this issue.
Removing the enableRunnerDebug() call avoids the problem.


Sample not valid - ClientCredentialProvider is no longer available

The package: Microsoft.Graph.Auth is deprecated. This means ClientCredentialProvider is no longer available and sample provided is no longer valid. Solution proposed here: https://stackoverflow.com/questions/56152979/using-authprovider-with-ms-sdk-for-graph-calls-in-c-sharp

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

ID: b4587f33-8cb3-146b-58ee-6725cd484f7d
Version Independent ID: 76e9cf47-608d-0065-6e7c-466b96068c2d
Content: Manage resources with Microsoft Graph - Azure AD B2C
Content Source: articles/active-directory-b2c/microsoft-graph-operations.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

This is being assigned to the content author to evaluate and update the documentation as appropriate.

Dear @MarekLani,
Thank you for your patience. We've planed an upgrade on all our app samples. We're closing this issue, and then track it internally.
#please-close


Problems parsing date

All of my dates are changed to one day before, for example: selecting 21/07/2016 on the datepicker, was setting the model (and the input) value to 20/07/2016.
After some research, looking inside your code, I saw that your directive use the method getUTCDate provided by bootstrap-datepicker.
I didn't see the bootstrap-datepicker code responsible for getting the UTC date. But I've seen another issues regarding dates using the JavaScript Date object, when it does actions with UTC. Also, there is a bug opened for Chromium (https://bugs.chromium.org/p/chromium/issues/detail?id=589858) about this problem.
It seems to be a more extended problem, so I don't know if there's a good workaround to this. Maybe we will have to wait.

Hey @victorleal,
thanks for your message. Actually I though all that UTC stuff fixes that problem (I ran into it too).
You can read my post on the former git repo: https://github.com/cletourneau/angular-bootstrap-datepicker/issues/5#issuecomment-207871287
But thinking about it, this only works for timezones ahead of GMT (GMT + x). As you're behind GMT this the problem still occurs for you.
I'll look into that, try to fix it for all timezones in this repo and get in touch with eternicode to probably fix it in the main repository.
If you have any thoughts on this you're more than welcome to share.

@fkammer Yes, this problem occurs specially for people who are behind GMT. I've said it on the Chromium thread also.
I think it will be hard to fix this problem, specially because Firefox has a different approach over this UTC parsing.
Regarding a possible solution, setting the hour, minute and second to 00 worked for Chrome when using JavaScript Date object. We have to see if this workaround will work inside the directive or the datepicker.


Fixes for { compress: false }

Ran into this while experimenting to see if not gzipping the gifs had any effect on the image loading weirdness. It did not!

LGTM

👍 Good catch


Question: How do transaction management works in kysely?

I wasn't able to find any examples here.
The only mention of Transaction is in API reference and it's still unclear how to use it etc.
Is there a plan to add such docs at some point? As for now, I'm unsure when it opens and closes transactions TBH :)
Thanks!

Hey 👋

The only mention of Transaction is in API reference and it's still unclear how to use it etc.

What page did you land on?

Is there a plan to add such docs at some point? As for now, I'm unsure when it opens and closes transactions TBH :)

Description and examples can be found here, and when using kysely in your IDE.

I landed on the GitHub readme, then went to TS generated one here https://koskimas.github.io/kysely/index.html
And for the search, I simply used my Ctrl + F :)
Totally forgot to check the repo files themselves to land on examples and recipes  :)
I see that I could've landed on recipes from README too if I would read it more carefully, but they all are still missing an answer on transactions.
Ok, now I see that I was almost there :) I haven't scrolled Transaction docs long enough to get to transaction member docs to see usage example :)

There's a search in the docs.


Support for tmodloader?

I came to this repository from Terraclient as you commented on an issue chain from the cheat being outdated. I was wondering if this has support for tmodloader?

No. This cannot support tModLoader in any capacity.


Refactor (draft)

I have merged this change to dev branch yesterday, please do not submit PR again!


NameError: name 'exit' is not defined

I am getting this error, and when I re-run, I am not getting it

Same I got this error when running this line of code: X_train, X_test = transform(X_train, X_test, features, n_jobs=20)


Add missing resource function node kind checks to IsolationAnalyzer

Purpose
$title
Fixes #37387
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

We need to add tests?

PR for master https://github.com/ballerina-platform/ballerina-lang/pull/37411


virtualbox: 6.0.14 -> 6.1.4

Motivation for this change
Update Virtualbox to its latest version. This allows compilation against kernel >= 5.4 to succeed without further patches (see #74260, build would fail for linux-5.5.5 to 5.5.9).
I removed the 5.4 patches, amended the 'hardened' patch to reflect the current code, and added a patch to correctly set KBUILD_EXTRA_SYMBOLS when building the kernel modules. I tested against kernel 5.4 (linuxPackages), 5.5.8 (linuxPackages_5_8) and 5.5.9 (linuxPackages_latest).
Note: the workaround for #24512, hardened.patch, works but is quite hard to maintain. I maybe spent three days before figuring out how that worked.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

nix-build --no-out-link -I nixpkgs=$NIXPKGS '<nixpkgs/nixos/tests/virtualbox.nix>'

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"

2 package marked as broken and skipped:
linuxPackages_hardkernel_4_14.virtualbox linuxPackages_hardkernel_4_14.virtualboxGuestAdditions

2 package failed to build:
linuxPackages_testing_hardened.virtualbox linuxPackages_testing_hardened.virtualboxGuestAdditions

30 package built:
linuxPackages-libre.virtualbox linuxPackages-libre.virtualboxGuestAdditions linuxPackages.virtualbox linuxPackages.virtualboxGuestAdditions linuxPackages_4_14.virtualbox linuxPackages_4_14.virtualboxGuestAdditions linuxPackages_4_19.virtualbox linuxPackages_4_19.virtualboxGuestAdditions linuxPackages_4_4.virtualbox linuxPackages_4_4.virtualboxGuestAdditions linuxPackages_4_9.virtualbox linuxPackages_4_9.virtualboxGuestAdditions linuxPackages_5_5.virtualbox linuxPackages_5_5.virtualboxGuestAdditions linuxPackages_hardened.virtualbox linuxPackages_hardened.virtualboxGuestAdditions linuxPackages_latest-libre.virtualbox linuxPackages_latest-libre.virtualboxGuestAdditions linuxPackages_latest_hardened.virtualbox linuxPackages_latest_hardened.virtualboxGuestAdditions linuxPackages_latest_xen_dom0.virtualbox linuxPackages_latest_xen_dom0.virtualboxGuestAdditions linuxPackages_testing_bcachefs.virtualbox linuxPackages_testing_bcachefs.virtualboxGuestAdditions linuxPackages_xen_dom0.virtualbox linuxPackages_xen_dom0.virtualboxGuestAdditions virtualbox virtualboxHardened virtualboxHeadless virtualboxWithExtpack

[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Hey — have you made sure you’re happy with the email addresses associated with this commit? They don’t seem to be associated with your GitHub account. You can check with git show --format=fuller. If you need to change them after configuring Git to use the right address, you can do git commit --amend --no-edit --reset-author.

Hey — have you made sure you’re happy with the email addresses associated with this commit?

Oh, thank you, I didn't notice that! Yes, I'm happy with that email, I updated my github now.

Does that mean #25412 can be closed?

Thank you for the merge! I guess #24512 can be closed. It is still relevant in the sense that we still have a problem with shell script wrappers and setuid programs, and I don't know whether this is documented elsewhere. The workaround for virtualbox is a patch that makes it look for setuid wrappers in /var/run/wrappers, but this can be hard to maintain in the case vbox devs make significant changes to their codebase.

Great work :)
Will this get backported to 20.03?

@vdot0x23 I just opened #82693, still needs some testing.


Added support for extraSchemaFiles

See NonNullTests for usage. It's now possible to add extra client directives at the schema level. One example where this is useful (and the only one so far) is to mark fields @nonnull globally without having to add the annotation to each and every query:
extends type User @nonnull(fields: ["firstName"])

The @nonnull directive, when used on an object definition requires one fields param that is a list of strings. We might want to add some custom logic.
This sent me down the rabbit hole of the schema parsing API so I took this opportunity to unify a lot of the APIs there.
Everything is now an extension function so stuff like this is doable (albeit not super useful 😅 ):
file.toIntrospectionSchema().toGQLDocument().toIntrospectionSchema()

@martinbonnin , I think this change might have introduced a problem where the intellij plugin (JS GraphQL) no longer recognizes the SDL schema as a valid schema :(
This is the issue I see in the plugin: https://gist.github.com/rohandhruva/ecc16f4eea877caddea240b2d5a758fa
I'm not sure if __Schema always used to be written out or if it's something that changed.
I also see an error in the generated file:

I haven't downgraded yet to confirm whether it's a dev9 ->  dev10 issue, but I will try that in a bit. I seem to remember it used to work, though.

For the time being, I switched back to using JSON schema: only to discover that the JSON pretty printing doesn't work :( I'm not sure if PR#3091 ever worked, or if it changed on this PR. I'll try to test that.
Switching to JSON schema does fix the intellij js graphql plugin issue though.

Good catch! Will dig into this!


Audit Log Feature ?

Hello, i am trying to find out who deleted my message, but i cannot seem to find a way to find that out without the Audit Log
I enabled all intents on discord run, but when i delete someone else message i get only his id and not the user who deleted the message.
Is this a new feature ?
Or it might be already implemented ?
I read all documentation, nothing gives me this information.

It's not possible without audit logs. Discord does not provide this kind of information with the delete message event. Even with audit logs this is still prone to false positives. There's a delay between the event and the audit log update. So the only way to fetch this data is to wait for a certain time period before fetching the last audit log entry. If multiple messages are deleted and audit log updates take place before the fetching takes place, it could end up fetching the wrong user. For example:
1. Admin1 deletes message1 from user1
2. Bot receives delete message event and starts timer1 to allow audit log to update
3. Admin2 deletes message2 from user1
4. Bot receives delete message event and starts timer2 to allow audit log to update
5. Audit log updates both events. Last entry: Admin2 deleted message2
6. timer1 finishes. Bot fetches last entry from audit log.
7. Bot returns that Admin2 deleted message1 from user1
8. timer2 finishes. Bot fetches last entry from audit log.
9. Bot returns that Admin2 deleted message2 from user1

Result: Bot incorrectly assumes both messages were deleted by Admin2

You tell me these events does not work properly :)) ?
https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events
I don't need to have the data into the normal events,
I wanna check them after they appear in the audit logs.
So when they appear i can know who deleted whos message. for sure.

From what i see here, this discord php open source project how it is structured, it can be easily be done.
This project is very well written. I like it very much.
Trough this api endpoint.
GET/guilds/{guild.id}/audit-logs

I know this is a big feature, but it is an important feature, I swear if this gonna be implemented life will be easier like 100%
By the way I'm trying to implement the Audit Log myself, but i have no understanding of React, Ratchet and all of those other frameworks that are being used.
So I am copying the Events. I can post my source code here when i have some progress done, and retrieve this audit repository.

You tell me these events does not work properly :)) ?

If that's how you're going to respond when someone tries to help you out, I see no reason to continue doing so. I'll let you do your own research and figure it out yourself. I suggest Googling "DiscordJS who deleted message". As it's much more popular and more likely to have solutions. I do my research before answering you know ;-)

You are talking nonsens bro, i am not trying to be rude man, i checked the google, they didn't talk about the target_id that the discord has when an audit event appears. I am seeing already the audit log, the problem is i don't know how to put them in event loops so when they appear i get the event.
It is a very simple api call to get all audit logs so you can check them one by one. the DATA is there !

No it isn't. The audit log lacks the information about which message was deleted. It contains who deleted "a message". It contains who the owner of the message was and it contains from which channel it was deleted.
If 2 messages from the same user in the same channel are being deleted by 2 different moderators / admins, the audit log cannot tell you which admin / moderator deleted which message. It can only tell you admin1 deleted 1 message and admin2 deleted 1 message. You can't figure out which admin deleted which message.
Please read the answers on this Stack Overflow question: https://stackoverflow.com/questions/53328061/finding-who-deleted-the-message They tell you the same thing.

I do not care what message was deleted, i only care who deleted a message.
This is accurate as i see in the audit log. for example :

I only care for who kicked who.
You DiscordJS problem is not a problem

As i said i want Aduit Log Feature implemented, I do not want to be implemented something impossible.

I need somehow these audit log events to be implemented.
$discord->on(\Discord\WebSockets\Audit::MESSAGE_DELETE, function ($message) use ($db)
{
	print_r($message);
});

This is all i want man, nothing else.
I have already made the events
<?php

/*
 * This file is apart of the DiscordPHP project.
 *
 * Copyright (c) 2016-2020 David Cole<EMAIL_ADDRESS> *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the LICENSE.md file.
 */

namespace Discord\WebSockets;

use Discord\Discord;
use Discord\Factory\Factory;
use Discord\Http\Http;
use Discord\Helpers\Deferred;
use Evenement\EventEmitterTrait;
use React\Promise\PromiseInterface;

/**
 * Contains constants for WebSocket events as well as handlers
 * for the events.
 */
abstract class Audit
{
	use EventEmitterTrait;

	// Guild
	const GUILD_UPDATE = 'GUILD_UPDATE';

	// Channel
	const CHANNEL_CREATE = 'CHANNEL_CREATE';
	const CHANNEL_DELETE = 'CHANNEL_DELETE';
	const CHANNEL_UPDATE = 'CHANNEL_UPDATE';
	const CHANNEL_OVERWRITE_CREATE = 'CHANNEL_OVERWRITE_CREATE';
	const CHANNEL_OVERWRITE_UPDATE = 'CHANNEL_OVERWRITE_UPDATE';
	const CHANNEL_OVERWRITE_DELETE = 'CHANNEL_OVERWRITE_DELETE';

	// Member
	const MEMBER_KICK = 'MEMBER_KICK';
	const MEMBER_PRUNE = 'MEMBER_PRUNE';
	const MEMBER_BAN_ADD = 'MEMBER_BAN_ADD';
	const MEMBER_BAN_REMOVE = 'MEMBER_BAN_REMOVE';
	const MEMBER_UPDATE = 'MEMBER_UPDATE';
	const MEMBER_ROLE_UPDATE = 'MEMBER_ROLE_UPDATE';
	const MEMBER_MOVE = 'MEMBER_MOVE';
	const MEMBER_DISCONNECT = 'MEMBER_DISCONNECT';

	// Bot
	const BOT_ADD = 'MEMBER_DISCONNECT';
	const ROLE_CREATE = 'ROLE_CREATE';
	const ROLE_UPDATE = 'ROLE_UPDATE';
	const ROLE_DELETE = 'ROLE_DELETE';

	// Invite
	const INVITE_CREATE = 'INVITE_CREATE';
	const INVITE_UPDATE = 'INVITE_UPDATE';
	const INVITE_DELETE = 'INVITE_DELETE';

	// Webhook
	const WEBHOOK_CREATE = 'WEBHOOK_CREATE';
	const WEBHOOK_UPDATE = 'WEBHOOK_UPDATE';
	const WEBHOOK_DELETE = 'WEBHOOK_DELETE';

	// Emoji
	const EMOJI_CREATE = 'EMOJI_CREATE';
	const EMOJI_UPDATE = 'EMOJI_UPDATE';
	const EMOJI_DELETE = 'EMOJI_DELETE';

	// Messages
	const MESSAGE_DELETE = 'MESSAGE_DELETE';
	const MESSAGE_BULK_DELETE = 'MESSAGE_BULK_DELETE';
	const MESSAGE_PIN = 'MESSAGE_PIN';
	const MESSAGE_UNPIN = 'MESSAGE_UNPIN';

	// Integration
	const INTEGRATION_CREATE = 'INTEGRATION_CREATE';
	const INTEGRATION_UPDATE = 'INTEGRATION_UPDATE';
	const INTEGRATION_DELETE = 'INTEGRATION_DELETE';

	/**
	 * The HTTP client.
	 *
	 * @var Http Client.
	 */
	protected $http;

	/**
	 * The Factory.
	 *
	 * @var Factory Factory.
	 */
	protected $factory;

	/**
	 * The Discord client instance.
	 *
	 * @var Discord Client.
	 */
	protected $discord;

	/**
	 * Constructs an event.
	 *
	 * @param Http    $http    The HTTP client.
	 * @param Factory $factory The factory.
	 * @param Discord $discord The Discord client.
	 */
	public function __construct(Http $http, Factory $factory, Discord $discord)
	{
		$this->http = $http;
		$this->factory = $factory;
		$this->discord = $discord;
	}

	/**
	 * Transforms the given data, and updates the
	 * Discord instance if necessary.
	 *
	 * @param Deferred     $deferred The promise to use
	 * @param array|object $data     The data that was sent with the WebSocket
	 *
	 * @return void|PromiseInterface
	 */
	abstract public function handle(Deferred &$deferred, $data);

	public function __debugInfo(): array
	{
		return [];
	}
}

You'll have to wait for david to look at those. Apparantly Audit logs haven't been implemented yet. It's a planned feature.

Yes i hope it is. i need it really bad.
But now you understand at least what i am trying to do right ?

I understand. Though Audit logs do not emit events. You need to pull them manually. Like on event message delete, pull audit logs. Btw, I also noticed you requesting someone's Discord on another issue. DiscordPHP has an official Discord server: https://discord.gg/0duG4FF1ElFGUFVq :) (You can find it on the main page here as well). Might make it easier for you to talk with others about these things

Thanks bro.. :) I joined. hope everything is good :D


Add location attributes; construct paths with Mojo::File

Summary
Replace literal pathnames with embedded / characters, use Mojo::File and its child() method to assemble component file paths. Along with the use of decamelize(), each call to render_to_rel_file() to create a file reflects how the framework will find that file during operation. Also: add a test for correct serving of the static file (which currently would fail if the application class is not under the lib directory).
Motivation
to better explain components inter-relations and naming conventions, and to potentially use as a didactic resource in updated Guides

IMO this adds a fair amount of complexity in order to allow generation of nonstandard application layouts. I understand that a power-user might want this, but the surely the opinionated case of doing the standard Perl distribution layout is an uncontroversial thing. Anyway, personally I don't see the need here (at least for a core module). As I said on IRC, a more powerful, configurable generator on CPAN would be a perfectly reasonable notion.

Maybe also worth mentioning that the standard layout is referenced a lot in the documentation. http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Making-your-application-installable It would be pretty bad if newcomers got the impression that it was a good idea to change the defaults.

Very good.  Withdrawn for further reflection.


Can't install on Ruby 2.3 though gemspec state Ruby 1.9

The gemspec say:
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")

But:
$ gem install sqlite3
Fetching: sqlite3-1.5.3-x86_64-darwin.gem (100%)
ERROR:  Error installing sqlite3:
	sqlite3 requires Ruby version < 3.2.dev, >= 2.6.
$ ruby -v
ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18]

Where is the >= 2.6 specified?
MacOS

Hi, the precompiled native gems will only support specific versions of Ruby, and the gemspec shipped with them says this. See for example https://rubygems.org/gems/sqlite3/versions/1.5.3-x86_64-darwin
If you upgrade rubygems and/or bundler, modern versions are able to understand these limitations and choose the right version.
Or, you may want to consider upgrading your version of Ruby, 2.3 has been EOL for several years now.

Oh, I'm sorry for not spotting the --platform=ruby in README.
Though it's just hanging now for several minutes for me:
$ gem install sqlite3 --platform=ruby

If you want to build against system libraries, that will be faster. The instructions are also in the README, but in summary:
gem install sqlite3 -- --enable-system-libraries


Error on starting gridsome develop when using gridsome-plugin-robots

Description
Hello, I just installed gridsome-plugin-robots and configured It in gridsome.config.js but unfortunately I get this error while start the development:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

That's only happen when I use the env option. Below my config:
module.exports = {
  siteName: "My website",
  siteUrl: process.env.SITE_URL || 'https://www.example.com',
  plugins: [
    {
      resolve: "gridsome-plugin-robots",
      options: {
        host: null,
        sitemap: null,
        env: {
          development: {
            policy: [{ userAgent: "*", disallow: ["/"] }]
          },
          production: {
            policy: [{ userAgent: "*", allow: "/" }]
          }
        }
      }
    }
  ]
};

Steps to reproduce
Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).
Expected result
Start gridsome develop without any error
Actual result

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

Environment
    OS: Windows 10 10.0.19042
    CPU: (4) x64 Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
  Binaries:
    Node: 12.18.1 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 88.0.4324.150
    Edge: Spartan (44.19041.423.0), Chromium (88.0.705.63)
  npmPackages:
    gridsome: ^0.7.23 => 0.7.23
    gridsome-plugin-robots: ^0.2.1 => 0.2.1```

It seems there is a typo in the package documentation.
Could you replace resolve with use ?

Ref: https://github.com/rkalkani/gridsome-plugin-robots/issues/7

@

It seems there is a typo in the package documentation.
Could you replace resolve with use ?

Perfect! Now it works, thank you :)


win32: use _set_abort_behavior from ucrt

turns out it is also available on mingw

Author xantares not on autobuild list. Waiting for curator authorization before starting CI build.

Author xantares not on autobuild list. Waiting for curator authorization before starting CI build.

Author xantares not on autobuild list. Waiting for curator authorization before starting CI build.

CI Vulkan-Tools build queued with queue ID 6395.

CI Vulkan-Tools build # 748 running.

CI Vulkan-Tools build # 748 passed.


Issue with .NET Framework causes ECMAScript Websockets not to be prox…

ECMAScript Websockets and .NET Framework
When a WebSocket message is sent using ECMAScript ProxyKit fails to Proxy the message along if using .NET framework instead of .NET core.
Steps to Recreate
Run the following commands from the ProxyKit folder

Open a command prompt and run dotnet run --project Receive/Receive
Open a second command prompt and run dotnet run --project Failing/Failing --framework net471
Using a web browser open Sender.html

.Net Core VS .Net Framework
To see the app working with .NET Core simply run the second command with a framework of netcoreapp2.1 instead of net471
With this change, you should see a message in the console for the Receive project saying "Message Received."

Thanks for the PR; repro's help with fixing bugs.
Some feedback on the PR for future:

Don't delete .gitignore files
Don't commit content of bin and obj folders. (Git would have ignored these if you hadn't delete .gitignore)
Add your repro projects to the existing solution.

Cheers

I appreciate that some effort went into this but because the projects reference ProxyKit as a nuget package and not a project reference it doesn't really help me get to the problem faster.
Could you re-do this PR please but instead add the projects to the existing solution and use ProxyKit as a project reference? Thank you.


Rancher k3s with ingress.tls.source=secret privateCA=true NGINX external load balancer

What kind of request is this (question/bug/enhancement/feature request):
Question
Steps to reproduce (least amount of steps as possible):

Following this guide: https://rancher.com/docs/rancher/v2.x/en/installation/
Provisioned self signed cert with https://hub.docker.com/r/superseb/omgwtfssl
OS Ubuntu 18.04

--
Result:

k3s running, rancher pod running, cattle-node-agent running
cattle-cluster-agent keeps restarting with error:

ERROR: https://lb.k3s/ping is not accessible (Failed to connect to lb.k3s port 443: Connection refused)
lb.k3s is a private domain name for our installation
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.4.5 on web UI
Installation option (single install/HA): HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): hosted on premise on top of proxmox VM
Machine type (cloud/VM/metal) and specifications (CPU/memory): bare-metal
Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.4+k3s1", GitCommit:"97b7a0e9df2883f08028fb7171c1e62fc1899a0c", GitTreeState:"clean", BuildDate:"2020-06-18T01:30:45Z", GoVersion:"go1.13.11", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.4+k3s1", GitCommit:"97b7a0e9df2883f08028fb7171c1e62fc1899a0c", GitTreeState:"clean", BuildDate:"2020-06-18T01:30:45Z", GoVersion:"go1.13.11", Compiler:"gc", Platform:"linux/amd64"}

Docker version (use docker version):

Client:
 Version:           18.09.9
 API version:       1.39
 Go version:        go1.11.13
 Git commit:        039a7df9ba
 Built:             Wed Sep  4 16:57:28 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.9
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.11.13
  Git commit:       039a7df
  Built:            Wed Sep  4 16:19:38 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Have the same issue. I don't enable private CA but I set tls=external.
somehow cattle-cluster-agent still send the request through https.


API is down

Closed as duplicate of #142
@sanamsta  the problem has been fixed. The API is back up. Sorry for the inconvenience


Remove 1 book (bn) and Added 10 Courses (locale : BN)

Add 10 Bangla Courses | Remove   1 Book   Because that website does not exist right now
Bangla resources
Description
Remove

1 Book (BN)= SL3 Framework - Code For Brain, Because this website does not exist right now

Add 10 Bangla Courses

Go
bootstrap
SASS
TailwindCSS
JavaScript
Node
React
svelte
Vue
Typescript

Why is this valuable (or not)?
In Bengal resources, that's not enough, so I added the 10 most helpful free resources And removed 1 book.
How do we know it's really free?
These resources are from YouTube for its totally free
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

denote lists with '*' not '-' - look at the diffs!

Ok Thanks!
Let me try Again 💔


Path replace has bug in window.

Thanks for this project!
This line has bug in windows. Please fix it.Thanks.
https://github.com/fmvilas/openapi3-generator/blob/37231cfc8fb3bfde3320bc4fcf832dc84f35ccfb/lib/generator.js#L70
Maybe can use this.
const subdir = config.root.replace(config.templates_dir, '.');

Hi @cxyxc. I don't think there's a bug with this line but instead, the bug with Windows may be in many different places because we're using / instead of \ as directory separators.
I think the root cause may be here (and probably in more places): https://github.com/fmvilas/openapi3-generator/blob/37231cfc8fb3bfde3320bc4fcf832dc84f35ccfb/lib/generator.js#L303
Can you please fix it?


Dependency GoogleSignIn  need privacyInfo?

I noticed that your documentation includes s.dependency 'GoogleSignIn', '~> 6.0'. Does this mean I still need to add a privacyInfo file? Thank you.

The latest version has been updated to GoogleSignIn 7


[BUG] Doesn't Work with Floats

Hi,
I'm trying to use your plugin with the following snippet:

Where product.price_inc_tax is 99.000
The output is as follows:
$0.99
I believe it is because it expects the input to be an integer number. Is this the intent behavior or a bug?

I've added a solution for this in #6


(feature) implement case-insensitive header names

Referring to issue #58, I did implement that for URL, ACCEPT, METHOD, CONTENTTYPE, AUTHORIZATION.
Tests included.
Any feedback is welcome.

@nitram509 don't forget to fill out the following form to get your Camunda goodies :gift: https://camunda.com/hacktoberfest2021/


Close db so that file space is reclaimed immediately after delete

@TheTincho Can you check if this fixes the space issues?

This change is

While it is difficult to trace if every test is cleaning up properly, I can confirm this is no longer filling up my disk during testing. Thanks!


Slides Index – Things to do before launching the 1.4.0 version

WebSlides 1.4.0 automatically will create a slides index:

[ ] Find a way to reduce the loading time.
[ ] Media queries for portrait and landscape orientations.
[x] Highlight the current slide.
[x] Scroll to current slide when zooming in

Scroll to current slide when zooming in implemented in c109276


Using different ViT and ResNet based models in L2P

Hi, thank you for the great work! I was trying to get the some results on CIFAR100 dataset with a resnet18 model and a ViT-Small model. as mentioned in the readme, I was looking at the config file cifar100_l2p.py and finding appropriate changes to make.
For the ViT-S model, I tried to change the config.model_name = "ViT-S_16" as mentioned in the vit.py file and then used the command python main.py --my_config configs/cifar100_l2p.py --workdir=./l2p --my_config.init_checkpoint=./ViT-S_16.npz where the file ViT-S_16.npz is downloaded from here. When I do this I get some error regarding the shape mismatch. Can you please point me to the place where I can download the ViT-S_16 model checkpoint?
For the experiments with resnet18, I see that the file resnet_v1.py has a model resnet18_cifar. I changed the config.model_name = "resnet18_cifar" and ran the command python main.py --my_config configs/cifar100_l2p.py --workdir=./l2p and got the error
  File "main.py", line 64, in <module>
    app.run(main)
  File "/mnt/efs/people/ptky/miniconda3/envs/l2p/lib/python3.7/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/mnt/efs/people/ptky/miniconda3/envs/l2p/lib/python3.7/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "main.py", line 58, in main
    train_continual.train_and_evaluate(FLAGS.my_config, FLAGS.workdir)
  File "/mnt/efs/people/ptky/project/repos/l2p/train_continual.py", line 975, in train_and_evaluate
    config.model_name)
  File "/mnt/efs/people/ptky/project/repos/l2p/models/vit.py", line 698, in create_original_vit
    raise ValueError(f'Model {name} does not exist.')
ValueError: Model resnet18_cifar does not exist.

I would be really grateful, if you can please point me to the correct checkpoints to download, the changes that are required to be made in the config file, and the corresponding command.
Thanks,
Prateek

Hi, I could get the ViT-S model to work with the file downloaded from here.
Can you please help me with the experiments where ResNet is used as the backbone?


Build failure: qownnotes

Steps To Reproduce
Steps to reproduce the behavior:

Use darwin-rebuild to build packages including qownnotes, channel 24.05 or unsupported

Build log
darwin-rebuild switch --flake ~/.config/nix-darwin
building the system configuration...
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'darwin-system-24.05.20240814.5e9ceda+darwin4.91010a5'
         whose name attribute is located at /nix/store/hw804y33lzj53yj4gjghv9m9w2vhxrgp-source/pkgs/stdenv/generic/make-derivation.nix:333:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.05.20240814.5e9ceda+darwin4.91010a5'

         at /nix/store/iw6agsa1xhlpjzdnvafzxxxz56gx839r-source/modules/system/default.nix:95:7:

           94|
           95|       activationScript = cfg.activationScripts.script.text;
             |       ^
           96|       activationUserScript = cfg.activationScripts.userScript.text;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Package ‘xvfb-run-1+g87f6705’ in /nix/store/hw804y33lzj53yj4gjghv9m9w2vhxrgp-source/pkgs/tools/misc/xvfb-run/default.nix:59 is not available on the requested hostPlatform:
         hostPlatform.config = "x86_64-apple-darwin"
         package.meta.platforms = [
           "aarch64-linux"
           "armv5tel-linux"
           "armv6l-linux"
           "armv7a-linux"
           "armv7l-linux"
           "i686-linux"
           "loongarch64-linux"
           "m68k-linux"
           "microblaze-linux"
           "microblazeel-linux"
           "mips-linux"
           "mips64-linux"
           "mips64el-linux"
           "mipsel-linux"
           "powerpc64-linux"
           "powerpc64le-linux"
           "riscv32-linux"
           "riscv64-linux"
           "s390-linux"
           "s390x-linux"
           "x86_64-linux"
         ]
         package.meta.badPlatforms = [ ]
       , refusing to evaluate.

       a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnsupportedSystem = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnsupportedSystem = true; }
       to ~/.config/nixpkgs/config.nix.

Additional context
xvfb-run is listed as not being available for Mac OSX. However, I don't believe you need that package. I believe Xquartz provides that. Not sure about Apple Silicon, but probably the same.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 22.6.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs-24.05-darwin"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

This still does not build on 24.11, list packages page show qownnotes is available for darwin aarch64.


File size check

Is it possible to add a check for the minimum and maximum file size before uploading to S3?

I would like to add to this question: It should be possible to enforce the file size limit on S3's end somehow. Did anyone figure out how to add a policy to the PUT request?

looks like it is possible with http://stackoverflow.com/questions/13390343/s3-direct-upload-restricting-file-size-and-type.
Now it begs the question, should we have a hook like "onBeforeUpload" that allows us to avoid uploading files in the first place if they violate the conditions we set? Like what happens if you select an EXE or DMG file? Right now they will have to first start the file upload, if there is an s3 policy that rejects it will fail faster and onErrror will be called. If there isn't an s3 policy users will have to wait until the upload is finished and only then see a message the file was rejected.

As far as I understand, 'browser-based upload' aka POSTing form data to https://s3-bucket.s3.amazonaws.com/is not the same as what we do here. We are creating pre-signed URLs to directly PUT the file.

Like what happens if you select an EXE or DMG file?

On the client side, you can already avoid that already using the accept option.
Optimally, the solution is two-fold: Prohibit the client from starting the request, but also enforcing the limits in the S3 bucket.

@graup totally, that is what I thought too. Note the accept option is only a suggestion list. Users can still select "All files" from the dialog and upload w/e they want.
What ReactDropZone does is have separate calls for onDropAccepted and onDropRejected. https://github.com/okonet/react-dropzone/blob/master/src/index.js#L111
Maybe we can do something like that.

n

m

Would someone be able to give an example of how to add file size checking? From the stack overflow link it looks like we are supposed to put this in the "policy variable"
"conditions": [
["content-length-range", 0, 10485760]
]
What is the policy variable and where do we set it using node js?

@andylhansen did you figure out where the "conditions" and policy-variable go?

Hello, has anyone found a solution to this?

I know it's an old issue but I was with the exactly issue, so I've looking for the documentation and found that using preprocess prop you could check the file size. Something like below
onPreprocess(file, next) {
  if (file.size > maxLenInBytes) {
    console.error('Image size is greater than limit')
  } else {
    next(file);
  }
}

<ReactS3Uploader
  preprocess={this.onPreprocess}
/>


while detecting for face api detecting barcodes and some objects ?

Hi
while searching for face with camera , sometimes capturing barcode's or objects


Update Pipeline component upgrade

Address issue: https://github.com/rancher/rancher/issues/18475
Problem:
When upgrading from 2.1.x to 2.2, user configured settings(e.g. pvcs) on pipeline components are removed
Solution:
Do no update on the component workloads, as it is not necessary at the moment

@gitlawr

as it is not necessary at the moment

Would we need to handle upgrades in the future? if so, can we log an issue for that in 2.3

Logged in
https://github.com/rancher/rancher/issues/18526

LGTM


[fix][cms] syntax check error on IE11

Coverage decreased (-17.7%) to 66.97% when pulling 48950db5692feb091184e503f9425393f924a962 on sunny4381:fixes/syntax-check-error-on-ie11 into d9225e6b94ad2869d2c377d1fddce89c2b3d8f8d on shirasagi:master.


Dev 3.03 : Implement OpenCL

Hello,
Do you have implement OpenCL API (tesseract compilation -enable-opencl=true) in current version ?
(I use currently tesseract on parallel process (.net) and with this example:
One for loop 1 to N with 10 threads tesseract on Intel Xeon Processor , it's very slow (1 hours for 100 documents)
Example
Parallel.foreach (0 to N email with attachment)
{
Parallel.foreach process.tesseract(attachment)
}
if no : Do you will implement it on 3.0.3 ?
Thank you

Sorry for the delay, no opencl is not currently supported. I might look at
using the opencl enabled dlls for the upcoming release for 3.04 provided it
works for hardware that doesn't support opencl.
On 11 Jun 2015 21:58, "edynamic90"<EMAIL_ADDRESS>wrote:

Hello,
Do you have implement OpenCL API (tesseract compilation
-enable-opencl=true) in current version ?
(I use currently tesseract on parallel process (.net) and with this
example:
One for loop 1 to 10 with 10 threads tesseract on Intel Xeon Processor is
very slow (1 hours for 100 documents)
Parallel.foreach
{}
if no : Do you will implement it on 3.0.3 ?
Thank you
You can view, comment on, or merge this pull request online at:
https://github.com/charlesw/tesseract/pull/178
Commit Summary

Updated tesseract to 3.03 (prerelease)
Fixed #65 - OtsuBinarization (x64)
Updated tesseract binaries
Merge remote-tracking branch 'origin/master' into dev_3.03
Support for setting params on init
Updated binaries tesseract to rev 1039
Updated project refs to tesseract libs

Tweaked TesseractEngine.cs to account for when varValues is null
(was throwing a null reference exception with call to .Length)

Updated LeptonicaApi.cs to reference the new version included

Exposed pixaDestroy in LeptonicaApi.cs

Merge pull request #80 from amferguson/dev_3.03_multipage_tiff
Multi-page pix improvements.
Made PixArray Enumerable.
Removed Pix.LoadMultiPageTiffFromFile
Fixed null reference exception for partially iterated PixArray
enumerator.
Updated sample to do full iteration through src.
Variables are now sent as a UTF8 encoded string - Issue #68
Improved demo program.
Merge branch 'develop' into dev_3.03
Merge branch 'develop' into dev_3.03
Merge branch 'develop' into dev_3.03
Updated english trainedata
Cleaned up file contents using code maid to match dev (make it
easier to merge).
Merge branch 'develop' into dev_3.03
Test case for HOCR and additional guard check to ensure the page
number is correct.
added ChoiceIterator to BaseApi
Merge pull request #165 from jhuntsman/feature_3.04/choice-iterator
Use invariant culture when testing output of result iterator so we
don't fail when running under different cultures.
Some integration tests for issue #166
Check prerequisites before performing otsu adaptive thresholding.
Updated to latest version of tesseract 3.04.
Merge branch 'develop' into dev_3.03

File Changes

M .gitignore
https://github.com/charlesw/tesseract/pull/178/files#diff-0 (4)
M Samples/Tesseract.ConsoleDemo/Tesseract.ConsoleDemo.csproj
https://github.com/charlesw/tesseract/pull/178/files#diff-1 (41)
D Samples/Tesseract.ConsoleDemo/x64/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-2 (0)
D Samples/Tesseract.ConsoleDemo/x64/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-3 (0)
D Samples/Tesseract.ConsoleDemo/x86/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-4 (0)
D Samples/Tesseract.ConsoleDemo/x86/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-5 (0)
M Samples/Tesseract.Samples.sln
https://github.com/charlesw/tesseract/pull/178/files#diff-6 (11)
M Samples/Tesseract.WebDemo/Tesseract.WebDemo.csproj
https://github.com/charlesw/tesseract/pull/178/files#diff-7 (38)
D Samples/Tesseract.WebDemo/x64/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-8 (0)
D Samples/Tesseract.WebDemo/x64/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-9 (0)
D Samples/Tesseract.WebDemo/x86/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-10 (0)
D Samples/Tesseract.WebDemo/x86/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-11 (0)
A Samples/UpgradeLog.htm
https://github.com/charlesw/tesseract/pull/178/files#diff-12 (0)
M src/Tesseract.Tests.Console/Tesseract.Tests.Console.csproj
https://github.com/charlesw/tesseract/pull/178/files#diff-13 (5)
M src/Tesseract.Tests.Console/packages.config
https://github.com/charlesw/tesseract/pull/178/files#diff-14 (2)
M src/Tesseract.Tests/BaseApiTests.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-15 (25)
A src/Tesseract.Tests/Data/processing/numbers.png
https://github.com/charlesw/tesseract/pull/178/files#diff-16 (0)
M src/Tesseract.Tests/EngineTests.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-17 (229)
M src/Tesseract.Tests/Leptonica/ConvertBitmapToPixTests.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-18 (22)
A src/Tesseract.Tests/Results/EngineTests.CanGenerateHOCROutput.txt
https://github.com/charlesw/tesseract/pull/178/files#diff-19 (35)
M
src/Tesseract.Tests/Results/EngineTests.CanProcessPixUsingResultIterator.txt
https://github.com/charlesw/tesseract/pull/178/files#diff-20 (22)
A
src/Tesseract.Tests/Results/EngineTests.CanProcessPixUsingResultIteratorAndChoiceIterator.txt
https://github.com/charlesw/tesseract/pull/178/files#diff-21 (14)
M src/Tesseract.Tests/Tesseract.Tests.csproj
https://github.com/charlesw/tesseract/pull/178/files#diff-22 (54)
A src/Tesseract.Tests/Tesseract.Tests.dll.config
https://github.com/charlesw/tesseract/pull/178/files#diff-23 (19)
M src/Tesseract.Tests/packages.config
https://github.com/charlesw/tesseract/pull/178/files#diff-24 (3)
M src/Tesseract.Tests/tessdata/eng.traineddata
https://github.com/charlesw/tesseract/pull/178/files#diff-25 (0)
M src/Tesseract.nuspec
https://github.com/charlesw/tesseract/pull/178/files#diff-26 (8)
M src/Tesseract.sln
https://github.com/charlesw/tesseract/pull/178/files#diff-27 (3)
A src/Tesseract/ChoiceIterator.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-28 (67)
A src/Tesseract/Internal/TessConvert.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-29 (93)
M src/Tesseract/Interop/BaseApi.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-30 (113)
M src/Tesseract/Interop/Constants.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-31 (21)
M src/Tesseract/Interop/LeptonicaApi.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-32 (2)
M src/Tesseract/Page.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-33 (7)
M src/Tesseract/Pix.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-34 (443)
M src/Tesseract/ResultIterator.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-35 (13)
M src/Tesseract/Tesseract.csproj
https://github.com/charlesw/tesseract/pull/178/files#diff-36 (49)
M src/Tesseract/TesseractEngine.cs
https://github.com/charlesw/tesseract/pull/178/files#diff-37 (523)
D src/lib/TesseractOcr/x64/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-38 (0)
D src/lib/TesseractOcr/x64/liblept168.so
https://github.com/charlesw/tesseract/pull/178/files#diff-39 (0)
A src/lib/TesseractOcr/x64/liblept171.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-40 (0)
D src/lib/TesseractOcr/x64/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-41 (0)
D src/lib/TesseractOcr/x64/libtesseract302.so
https://github.com/charlesw/tesseract/pull/178/files#diff-42 (0)
A src/lib/TesseractOcr/x64/libtesseract304.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-43 (0)
M src/lib/TesseractOcr/x64/tesseract.exe
https://github.com/charlesw/tesseract/pull/178/files#diff-44 (0)
D src/lib/TesseractOcr/x86/liblept168.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-45 (0)
D src/lib/TesseractOcr/x86/liblept168.so
https://github.com/charlesw/tesseract/pull/178/files#diff-46 (0)
A src/lib/TesseractOcr/x86/liblept171.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-47 (0)
D src/lib/TesseractOcr/x86/libtesseract302.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-48 (0)
D src/lib/TesseractOcr/x86/libtesseract302.so
https://github.com/charlesw/tesseract/pull/178/files#diff-49 (0)
A src/lib/TesseractOcr/x86/libtesseract304.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-50 (0)
M src/lib/TesseractOcr/x86/tesseract.exe
https://github.com/charlesw/tesseract/pull/178/files#diff-51 (0)
D src/packages/NUnit.2.6.3/NUnit.2.6.3.nupkg
https://github.com/charlesw/tesseract/pull/178/files#diff-52 (0)
D src/packages/NUnit.2.6.3/NUnit.2.6.3.nuspec
https://github.com/charlesw/tesseract/pull/178/files#diff-53 (27)
D src/packages/NUnit.2.6.3/lib/nunit.framework.dll
https://github.com/charlesw/tesseract/pull/178/files#diff-54 (0)
D src/packages/NUnit.2.6.3/lib/nunit.framework.xml
https://github.com/charlesw/tesseract/pull/178/files#diff-55 (10960)
D src/packages/NUnit.2.6.3/license.txt
https://github.com/charlesw/tesseract/pull/178/files#diff-56 (15)

Patch Links:

https://github.com/charlesw/tesseract/pull/178.patch
https://github.com/charlesw/tesseract/pull/178.diff

—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/pull/178.