python3Packages.adafruit-platformdetect: 3.13.0 -> 3.13.1

Motivation for this change
Update to latest upstream release 3.13.1
Change log: https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/3.13.1
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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] 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.

Result of nixpkgs-review pr 122903 run on x86_64-linux 1

2 packages built:

python38Packages.adafruit-platformdetect
python39Packages.adafruit-platformdetect

Result of nixpkgs-review pr 122903 at 37cbbe5c run on aarch64-linux 1

2 packages built successfully:

python38Packages.adafruit-platformdetect
python39Packages.adafruit-platformdetect


Need to use winpty for docker in Git Bash under Windows

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
	singularity run -B /zi-flstorage/group_csp/analyses/johannes.wiesner/projects/hcp_project/code/:/home/neuro/workdir \
	-B /zi-flstorage/group_csp/open_access_datasets/humanconnectome/raw_data/:/data \
	-B /zi-flstorage/group_csp/open_access_datasets/humanconnectome/derivatives/:/output \
	/csp-tools/singularity_images/csp_neurodocker/csp.sif jupyter-lab --notebook-dir=/home/neuro/workdir
elif [[ "$OSTYPE" == "msys" ]]; then
	winpty docker run -it --rm -v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/code/:/home/neuro/workdir \
	-v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/data/humanconnectome/raw_data/:/data \
	-v /C:/Users/Johannes.Wiesner/Documents/projects/hcp_project/data/humanconnectome/derivatives/:/output \
	-p 8888:8888 johanneswiesner/csp:1.0.0 jupyter lab
fi

Closed with 868878dd680f761a494d02a9c13d5fbd2a9f3e48


Setting Active on BootstrapLink inside a Nav

First of all thanks for the wonderful work you have put into this!
I might be missing something, but I think it's not possible to set the class Active on a link inside a nav?
I was hoping that on a BootstrapLink a method Active(bool active = true) existed, just like the method Disabled(bool disabled = true) exists.
I understand the methods SetLinksActiveByController() and SetLinksActiveByControllerAndAction() exist on a Nav, but they can only be used if the navs are used within the context of controllers and actions.
In my case, a nav is used for pagination, and it would be great if one could set Active on a BootstrapLink, just like Disabled is used.
Indended markup:

previous

1

2

3

...

25

next

could you please show me desired BMVC code that you'd have?

Hey, sure! Here it goes:
using (var nav = Html.Bootstrap().Begin(new Nav().Class("pagination")))
{
    @nav.Link("previous", "#")
    @nav.Link("1", "#")
    @nav.Link("2", "#").Active()
    @nav.Link("3", "#")
    @nav.Link("...", "#").Disabled()
    @nav.Link("25", "#")
    @nav.Link("next", "#")
}

By the way, the Disabled() renders class="disabled" on both the li and the a. Setting it on the li only is fine: http://getbootstrap.com/components/#nav-disabled-links

you could set class via .Class() method:
@nav.Link("2", "#").Class("active")

Would that solve this issue?

No, that sets the active class on the a. Bootstraps Navs need to have the class active set on the li.

Right.
Now, before I proceed adding this feature I just want to make sure it'll solve your problem.
What is the logic that you are using to determine what link should be active? Is it a value your ViewModel? Something like curentPage? If so, you'd have to put .Active() method on all links:
@nav.Link("1", "#").Active(Model.CurentPage == 1)
@nav.Link("2", "#").Active(Model.CurentPage == 2)
@nav.Link("3", "#").Active(Model.CurentPage == 3)

... which is a bit ugly. Unless you have a different use case.

No, the links are rendered in a for loop. But I will spare you the details of the complex pagination/UI requirements ;-)
But I also ran into this when rendering a set of navigation pills to navigate to a subsection of a website. This site is powered by Umbraco, hence not within MVC controller/action context. A foreach loop that goes over the available pages in the subsection renders the pills.
And offcourse, setting the class=active on the a is an option. But then one would still need to tweak the Bootstrap CSS, to adjust for BMVC's rendering.

This is done. Please get latest.
Although there is no new .Active() method.
Go ahead and apply class "active" to the desired link. It'll know to also apply it to the wrapping
 as well.
@nav.Link("2", "#").Class("active")

I didn't go with the .Active() method to avoid polluting extension methods. This method would not quite make sense in the context of a regular Link or ActionLink
Let me know if it worked for you.

I understand, and I guess the BootstrapLink is also the baseclass for Link or ActionLink?
Thanks though!

Not quite even though it would be logical. I initially was thinking about doing that, but some complications were introduced by the fact that these helpers also needed to work under .FormGroup() context.
Anyway, I will spare you the details of the complexity of the implementation that I have in place ;)

Haha, I had a brief look under the hood and can imagine so. Would have been nice to have a method that follows the same pattern as Disabled, but understand your point.
Created my own extension method for it now, works fine for this case.


Trying to understand the communication between the services / containers

Edit: Read the Docs again and of course it states that the Frontend/Apps require access to the DB, not only to the API. I still wonder what the 4 parameters do :-)
First: Thank you so much for sharing your work with everyone else! I got everything up and running thanks to your documentation and examples in less than 30 minutes in my Docker environment. So far so good :-)
Next step is to implement it properly in my environment (various VLANs, Traefik Reverse Proxy etc.) to host it as secure as possible.
And I struggle a bit understanding the communication between the CouchDB, Backend and Frontend.
My assumption was that the Frontend and the Android App both exclusively connect to the API of the Backend, so this was what I route through Traefik. When pointing the Frontend or the Mobile App to Traefik, I can create new Users, but I was not able to log in. So communication is working... sort of. But I think I am not understanding the communication correctly.
I assumed it is App --> API/Backend --> CouchDB.
But I suspect it is more like
App --> API/Backend --> CouchDB
|-----------------------> CouchDB
maybe?
I do not understand the difference between

COUCHDB_URL
COUCHDB_INTERNAL_URL

and

GROCERY_URL
GROCERY_API_URL

If my 1st assumption is right regarding the communication, I can make no sense out of the 2 DB and 2 API URLs we have to provide in the Backend.
Also I do not understand yet how I can create Users from the Frontend / Backend (which I can also see in the CouchDB Database), but can not login. Unfortunately the Container Logs log nothing when I try to log in. Is there a Debug mode I can enable to see more messages from the services, so I can provide better information here?
As said before: Thank you very much. Got it running in the "lab" pretty quick, but bringing it securely Online is something I struggle a bit at the moment :-)

COUCHDB_URL -- the fully qualified domain name that you can access the couch database from . This would need to be externally accessible if you aren't using a VPN and want to use it outside of the house. This URL is passed from the API server back to the frontend when you login to the app/website. The app then uses this to setup sync between the local pouchDB and CouchDB. The app really relies on this behavior, and the quality of this sync is worth it, IMO.  In my implementation, I use an Ingress in kubernetes to direct from couchdb.mydomain.com to my internal  couchdb implementation running on port 5984. I also use ModSecurity to provide some basic security against typical HTTP attacks.
COUCHDB_INTERNAL_URL -- this is another hostname to access the same couchDB instance. I use this to enable direct communication from the API server to couchDB without going through an ingress --  this could be a docker service name or I use a kubernetes service name . If not supplied, you can use the same as COUCHDB_URL.
GROCERY_URL -- Really not used for much in the backend other than sending out informative emails, which provides a link to the externally accessible groceries website.
GROCERY_API_URL - Again only used in sending out emails, but those emails include links to API server actions to create an account or reset a password.  Also an "externally" accessible API URL link.
Creating users should be done in the frontend -- when you first start the app, you should be able to create an account with a button on the login page - create account. You should be prompted for a user name and password as well as an email address and full name. The API server takes this info and creates an account for you in the couchDB _users database, and also issues back an access and refresh JWT. The JWT is stored in the users database in couchDB as well, so would not be easy to create an account yourself in couchDB.
If I had to guess, you might be having a problem with the HMAC key setup and/or admin user/password for CouchDB. Couple of things to check:

Make sure the _users and _replication database is created in couchDB.
Make sure you have a valid username and password that has "admin" access to couchDB across all databases. You should be able to test this by going to http://my-couchdb-url:5984/_utils and logging in.
To help with the above, you might want to put your admin user/password in an "admin.ini" file in the couchDB setup directories.
You need to have the JWT values setup in the couchDB setup directories. See the sample jwt.ini here.   The key here is that you need a value in the COUCHDB_HMAC_KEY value that is plaintext, say "haven-copier-defective" and then in jwt.ini, under the jwt_keys key you would need something like "hmac:_default = aGF2ZW4tY29waWVyLWRlZmVjdGl2ZQ==".

If that fails, I'd have to add some logging in the API server -- have you checked the Javascript console in the frontend to see what happens when you create a user or try to login though?
Can always DM me on reddit for more guidance.

Thank you very much for your thorough response. That clears up a lot of questions :-)
You suggest to focus on the Frontend before going to the apps, so this is what I did. I looked over the whole setup, deleted the existing databases and started fresh to see what's going on.
I think the HMAC key setup and admin password should be OK, because I can create Users, the tables get populated with the users + default items and I can see in the Browser debugging session that I get Authentication tokens.
But I do not see any data in the Frontend.
If I understand your explanation correct, creating a User flows Frontend -> Backend/API -> CouchDB. The same for the login. After the login, data flows Frontend <--> CouchDB. If I understand this correctly, I might have a good setup for the first part, but problems communicating between the Frontend and the CouchDB.
My CouchDB + API are available over my Traefik setup.
The CouchDB via https://my.url/db and the API via https://my.url/api.
I do have access to https://my.url/db/_utils, so I suppose CouchDB traffic is routed correctly. But this is only my assumption.
Here is an excerpt of my Traefik access log when creating a user and trying to log in:

<IP_ADDRESS> - - [28/Apr/2023:14:49:04 +0000] "POST /api/registernewuser HTTP/2.0" 200 264 "-" "-" 304 "groceries-backend@docker" "http://<IP_ADDRESS>:8000" 15ms
<IP_ADDRESS> - - [28/Apr/2023:14:49:18 +0000] "OPTIONS /api/issuetoken HTTP/2.0" 204 0 "-" "-" 305 "groceries-backend@docker" "http://<IP_ADDRESS>:8000" 17ms

Here is what I can see in the browser debugging session:
{"loginSuccessful":true,"email":"kladderadeng@mydomainonetwo.com","fullname":"Kladderadeng","loginRoles":["crud"],"refreshJWT":"<token>","accessJWT":"<token","couchdbUrl":"https://groceries.mydomainonetwo.com/db","couchdbDatabase":"groceries"}
And here an excerpt of the Docker container logs:

groceries-backend     | STATUS: Registering New User:  kladderadeng
groceries-couchdb     | [notice] 2023-04-28T14:48:50.245685Z nonode@nohost <0.791.0> 171a472baa groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin GET /_users/org.couchdb.user%3Akladderadeng 200 ok 1
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /manifest.json HTTP/1.1" 200 438 "http://<IP_ADDRESS>/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /static/css/main.236bfcc5.css.map HTTP/1.1" 200 94205 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /static/js/5022.f54ea41b.chunk.js.map HTTP/1.1" 200 3884 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /static/js/9344.da98aeb8.chunk.js.map HTTP/1.1" 200 9185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /static/js/3315.2e61f13b.chunk.js.map HTTP/1.1" 200 11299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:48:59 +0000] "GET /static/js/2849.7c577f81.chunk.js.map HTTP/1.1" 200 8088 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-frontend    | <IP_ADDRESS> - - [28/Apr/2023:14:49:00 +0000] "GET /static/js/main.aa6889a1.js.map HTTP/1.1"<PHONE_NUMBER> "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/112.0.1722.58" "-"
groceries-couchdb     | [notice] 2023-04-28T14:49:01.911335Z nonode@nohost <0.1675.0> 77474818d8 localhost:5984 <IP_ADDRESS> undefined GET / 200 ok 0
groceries-backend     | STATUS: Registering New User:  kladderadeng
groceries-couchdb     | [notice] 2023-04-28T14:49:04.384119Z nonode@nohost <0.791.0> 3e284ddde8 groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin GET /_users/org.couchdb.user%3Akladderadeng 200 ok 1
groceries-backend     | STATUS: issuing token for device ID: "7839fe8f-154c-45e6-a6fd-2e10a710e858"
groceries-couchdb     | [notice] 2023-04-28T14:49:18.210514Z nonode@nohost <0.1821.0> a0480c81fd groceries-couchdb:5984 <IP_ADDRESS> kladderadeng GET /_session 200 ok 1
groceries-couchdb     | [notice] 2023-04-28T14:49:18.213179Z nonode@nohost <0.791.0> 819185a065 groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin GET /_users/org.couchdb.user%3Akladderadeng 200 ok 1
groceries-couchdb     | [notice] 2023-04-28T14:49:18.222146Z nonode@nohost <0.791.0> f8600eb46d groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin POST /_users 201 ok 7
groceries-backend     | STATUS: issuing token for device ID: "7839fe8f-154c-45e6-a6fd-2e10a710e858"
groceries-couchdb     | [notice] 2023-04-28T14:49:25.751300Z nonode@nohost <0.1899.0> 7b05846780 groceries-couchdb:5984 <IP_ADDRESS> kladderadeng GET /_session 200 ok 1
groceries-couchdb     | [notice] 2023-04-28T14:49:25.754107Z nonode@nohost <0.791.0> f0f1923e5e groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin GET /_users/org.couchdb.user%3Akladderadeng 200 ok 1
groceries-couchdb     | [notice] 2023-04-28T14:49:25.762868Z nonode@nohost <0.791.0> 1642bbbf9e groceries-couchdb:5984 <IP_ADDRESS> couchdbadmin POST /_users 201 ok 6
groceries-couchdb     | [notice] 2023-04-28T14:49:32.015696Z nonode@nohost <0.1975.0> 72533bb830 localhost:5984 <IP_ADDRESS> undefined GET / 200 ok 0

I do not see any "error" message that shows me that a part can not communicate with another. But of course I made a mistake somewhere. I do not want to make this post bigger by showing my docker-compose.yml or other config files, but whatever helps to understand what I did wrong I will post of course :-)

Did the browser/javascript console show any errors at all - I see you tracked the network request which looks good. The console would normally show 3 status messages - 1 saying it is refreshing the token, 2 with the API server URL, and then a 3rd with the time in seconds until the JWT expires. After these, you should actually see some 404 errors as the pouchDB/couchDB starts replicating (these are "normal" as the message says). On the loaded page, the cloud icon should also a checkmark in it (on the header). If this is not a checkmark or has a slash through it, pouchDB replication has failed to start (which is the likely cause of not having the items loaded, etc.).  It is this pouchDB replication that goes from the frontend directly to couchDB.  There are other functions like logging in, sending friend requests, changing passwords, that go through the backendAPI which then talks to couchDB -- I believe you had all that correct.
So check there and let me know if there are any logs. I can see about adding some debug logging based on a switch or something too. I suppose your docker-compose.yml would help just to look at as well. Post wherever makes sense and send me a link.

You were correct from the start, expecting that something with the HMAC setup is fishy!
I had a look at it again in a in-private session + debugging console and I could see a Bad HMAC message.
Why did I not see this in the last days when debugging? It seems the error only comes up once. In the Screenshot, the first 5 entries are from the very first attempt in a fresh in-private window. The following "issuetoken" entries where subsequent clicks on the Login button in the Frontend. So I made a mistake when debugging. I should have started with a fresh in-private session on every attempt.

I will check the HMAC setup again today and I am pretty confident this will solve it. I will get back when I am done :-)

It is embarassing, but I have to confess. It was the HMAC setup. For some reason, when copying or pasting the HMAC key into my docker-compose.yml I managed to cut off a single character at the end.
That´s it. That was the problem :-(
Thank you for your patience :-)


arkOS zip file

Before submitting your issue or feature request.  DO NOT REQUEST PORTS THROUGH THIS PROCESS.  I will no longer be focusing on adding additional ports at this time.  You may try to post your request here for an alternative unofficial solution.  Do understand support for those ports will not be available on this github.

This is not Anbernic Stock Emuelec or 351Elec.  ArkOS is a different distribution from those systems and will have differing features.  The only somewhat similarity is that they both use EmulationStation as a frontend.  Even with that, the versions of EmulationStation that's used in between ArkOS and Anbernic Emuelec/351Elec is different with different capabilities.  If there are features you prefer with Anbernic Emuelec/351Elec, just use those distributions instead.  The choice is yours.

Have you reviewed the Frequently Asked Questions available at https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RG351P ?

If your issue is related to being able to run certain emulators or ports, have you reviewed the Emulators and Ports section available at https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information for needed bios files and supported rom extensions?

Have you reviewed the known issues section available at https://github.com/christianhaitian/arkos/wiki/Known-issues ?

Describe the Issue (If applicable)
A clear and concise description of what the bug is.
How can the issue be reproduced? (If applicable)
What device are you using?
What version of ArkOS are you on?

You can find this during the initial boot process right before the Emulationstation loading screen

Anything else you'd like to include that may help to review this issue or feature request?

I've download the zip file from either MEGA or GDrive sites, tried to unzip it and it seems like it stop at 29% and gives me these messages when the file is being process:
1 Can not set length for output file: There is not enough space on the disk : E:\Mine\ArkOS_RG351P_v1.5_02202021(good)\ArkOS_RG351P_v1.5_02202021.img
2 E:\Mine\ArkOS_RG351P_v1.5_02202021(good).7z
3 ArkOS_RG351P_v1.5_02202021.img
4 There is not enough space on the disk.
I have plenty of space over 100 GB. so why am I getting this and it hang/freeze at 29% for both files at both sites. Is there another site I can get a clean download of the file?

Where are you expanding the image onto?

I'm explaining it to my harddrive where it was downloaded to.

is your harddrive formatted to fat32?  It seems the error is stating it can't expand the image as the file system can't support the size of the expanded image.

Oh I'll have to redirect it to another hard drive that's not fat32 correct?
On Thu, Feb 25, 2021, 1:55 PM christianhaitian<EMAIL_ADDRESS>wrote:

is your harddrive formatted to fat32? It seems the error is stating it
can't expand the image as the file system can't support the size of the
expanded image.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/christianhaitian/arkos/issues/266#issuecomment-786196815,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKIVDES65S5E7CVSR4IODVLTA22LFANCNFSM4YGXT3KA
.

Yes.  fat32 has a max single file size of 4GB.  The image is 8GB in size when expanded.  If this will be an issue, you can try 351elec which is much smaller.  Good luck.


updated prod success verbiage.

@hansknecht  I like your additions.
You removed the initial premise underneath the first question: Getting the right work done at the right time
Was that intentional?


Add back navigation feture on record modal

The following changes are implemented
TODO: Summary
Changes in the user interface:
TODO: Add screenshots, recordings or remove this section
Checklist when submitting a final (!draft) PR

[ ] Commits are tidied up, squashed if needed and follow guidelines in CONTRIBUTING.md
[ ] Code builds
[ ] All existing tests pass
[ ] All new critical code is covered by tests
[ ] PR is linked to the relevant issue(s)
[ ] Rebased with the target branch

this behaves a bit awkwardly. Maybe replace the back button with close or remove it, since, in this case, there's no 'going back' because the modal should be closed. I think we should provide the back option only if there's a previous view to go to. Discuss with Joźe, please

open a record in a modal -> click on edit -> click on back btn -> I'm redirected to the prev view but the modal is closed


I'm only able to load one value

I'm reasonably new to Flutter. I have 4 integers in my app. Everything works fine while the app is active, however, if I close the app, on reopening, only one of the 4 values display the saved value. The other three display the initial values. The one that displays a saved value is always the first to use the variable.load(), this would be counter.load() in the example here. If I switch the order, counterTwo.load() would display the correct value but counter.load() would not. Below is the modified code of the example found here. It behaves the same as my app.
Any help would be appreciated.
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:shared_value/shared_value.dart';

// This global SharedValue can be shared across the entire app
final SharedValue<int> counter = SharedValue(value: 0, key: "counter", autosave: true,);
final SharedValue<int> counterTwo = SharedValue(value: 0, key: "counterTwo", autosave: true,);
final SharedValue<Duration> randomValue = SharedValue();

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // load previous value from shared prefs
  counter.load();
  counterTwo.load();

  DateTime startedAt = DateTime.now();
  Timer.periodic(Duration(milliseconds: 50), (timer) {
    randomValue.$ = DateTime.now().difference(startedAt);
  });

  runApp(
    // don't forget this!
    SharedValue.wrapApp(
      MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    print("MyApp.build()");

    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text("Shared value demo"),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text(
                'You have pushed the button this many times:',
              ),
              CounterText(),
              Padding(
                padding: const EdgeInsets.all(32),
                child: RandomText(),
              ),
            ],
          ),
        ),
        floatingActionButton: CounterButton(),
      ),
    );
  }
}

class CounterText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // The .of(context) bit makes this widget rebuild automatically
    int counterValue = counter.of(context);
    int counterTwoValue = counterTwo.of(context);

    print("CounterText.build() - $counterValue");
    print("CounterText.build() - $counterTwoValue");

    return Text(
      '$counterValue, $counterTwoValue',
      style: Theme.of(context).textTheme.headline4,
    );
  }
}

class CounterButton extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    print("Button.build()");

    return FloatingActionButton(
      onPressed: _incrementCounter,
      tooltip: 'Increment',
      child: Icon(Icons.add),
    );
  }

  void _incrementCounter() {
    // update counter value and rebuild widgets
    counter.$ += 1;
    counterTwo.$ += 2;
  }
}

class RandomText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text("Your time here: ${randomValue.of(context)}");
  }
}

I have managed to set, clear and fetch authdata perfectly using your package butThere is an small issue.When I restart the app - either by manually closing and reopening or by pressing run (Shift+f10) I am getting only the first value by using my_key.load() . The keys below are not loading at all. My top key is : is_logged_in .So when I am only getting the value of is logged in.
If I write access_token.load() on top , then I only get the value of access token. All the values are stored perfectly but somehow I can only able to fetch the top key value and not the others while restarting the app.

I have found a workaround by not enabling autosave. I use the save command each time the value changes. By doing so, I'm able to load all of my values after closing/restarting the app.Good luck.
Sent from Yahoo Mail on Android
On Mon, Mar 22, 2021 at 3:57 AM, Mahmudur @.***> wrote:
I have managed to set, clear and fetch authdata perfectly using your package butThere is an small issue.When I restart the app - either by manually closing and reopening or by pressing run (Shift+f10) I am getting only the first value by using my_key.load() . The keys below are not loading at all. My top key is : is_logged_in .So when I am only getting the value of is logged in.
If I write access_token.load() on top , then I only get the value of access token. All the values are stored perfectly but somehow I can only able to fetch the top key value and not the others while restarting the app.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Guys - is there still an issue here?

Guys - is there still an issue here?

Yes, autosave does not work. It works only for the first item if we have multiple keys to save.
I had to use the manual load and store method for each key

@hridoymahmud71 This should be fixed in latest version, i.e. 2.1.3. Let me know otherwise.


link libstdc++ and libgcc statically as well

Looks like this works really well (even worked on centos 6).

Thanks @jjhelmus :)


Unuse self-hosted macOS runner

GitHub-hosted macos runner is M1 by default now.

Thank you for having been provided the runner!


docs(timeinterval): update description for timeInterval

Description: Updated description of timeInterval operator
Related issue (if exists): #4661

Pull Request Test Coverage Report for Build 8453

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 96.659%

Files with Coverage Reduction
New Missed Lines
%

src/internal/OuterSubscriber.ts
1
50.0%

Totals

Change from base Build 8442:
-0.2%

Covered Lines:
5208

Relevant Lines:
5388

💛  - Coveralls


as-needed.patch might be unneeded?

The description in fixes/as-needed.patch states that "some libraries fail to link when --as-needed is set", and changes this option to '--no-as-needed' in build/config/compiler/BUILD.gn.
But the latest ungoogled-chromium (debian) seems to compile and run okay if this patch is removed (in other words compiling with -Wl,--as-needed).
Since the patch seems to originate from Debian, I would tend to think the original problem was specific to gcc or bfd/gold (with clang/lld unaffected), or else is obsolete.
Perhaps this patch can be considered for removal?

Thanks for the suggestion!


Add drill downs for latency page in monitoring dashboard

Description:
Add drill downs for latency page in monitoring dashboard

Closing since duplicated in https://github.com/wso2/analytics-apim/issues/1224


Generate semicolon following Loop

Fixes #5377
semicolon_for_stmt determines whether or not a statement should end with a semicolon. In the case of the issue, it was determined that Semi statements containing a Loop expression should never end with a semicolon. This is not the case as the repro demonstrates.
I changed the behavior of semicolon_for_stmt to always end in a semicolon.
Note: While expressions and ForLoop expressions also get the semicolon dropped when found in a Semi. The snippet that reproduces for Loop had no issue with these other types, so I left the behavior as-is.

Thanks for the first time contribution to rustfmt 🎉
Haven't had a chance to review this yet, but out of curiosity, why is tests/target/issue-5377 a binary file?

That was an oversight, it has been fixed. Thanks for pointing it out.

Will rustfmt add/remove semicolons if we start with the following input?
fn must_end_with_semi() {
    loop {
        break false;
    }
}

fn cannot_end_with_semi() -> bool {
    loop {
        break false
    };
}

Or is this PR just trying to ensure that if a semicolon exists we don't remove it?

Apologies as I've still not had a chance to look at this, but did want to note that any change we make still has to be compliant with the relevant prescriptions codified into the style guide (e.g. https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/statements.md#expressions-in-statement-position, https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/expressions.md#control-flow-expressions) and also have tests that incorporate relevant config options, like trailing_semicolon


Please arrange meeting to support PDFs files

Hi There,
As I mentioned earlier, for us testing PDFs difference is critical. Please arrange a meeting to go through our issues, will walk through what exactly we are looking for, hope you can help with this.
I would appreciate it if you could fix the meeting as early as possible.
Thank you

Hi @dshankar959 - Can you please write to<EMAIL_ADDRESS>referring this thread. We will be happy to get your inputs. Based on this thread, we have no information on which account you belong to, and your user details like email address which will be required to setup a meeting with the right participants from our side.
Thanks,
Samiran


Remove deprecated master users subcommand

It has been deprecated in favor of master user since 1.2.0
https://github.com/kontena/kontena/blob/master/cli/lib/kontena/cli/master/users_command.rb#L4

Fixed in #3182


Prevent the generators from being cached

Currently the dataset returned from generators will be cached by itertools.cycle after 1st epoch. This becomes a problem when I want to use data augmentation to generate unlimited amount of data.
This PR fixes the issue stated above.

Sounds useful, but caching was also useful. Can we conditionally keep the
caching? Was a noticeable speed improvement.
On Sat, Oct 14, 2017 at 6:32 AM Kenneth Jiang<EMAIL_ADDRESS>wrote:

Currently the dataset returned from generators will be cached by
itertools.cycle after 1st epoch. This becomes a problem when I want to
use data augmentation to generate unlimited amount of data.
This PR fixes the issue stated above.
You can view, comment on, or merge this pull request online at:
https://github.com/wroscoe/donkey/pull/166
Commit Summary

A tricky bug that causes the cache of generator results

File Changes

M donkeycar/parts/init.py
https://github.com/wroscoe/donkey/pull/166/files#diff-0 (1)
M donkeycar/parts/stores/tub.py
https://github.com/wroscoe/donkey/pull/166/files#diff-1 (47)
M donkeycar/templates/donkey2.py
https://github.com/wroscoe/donkey/pull/166/files#diff-2 (22)

Patch Links:

https://github.com/wroscoe/donkey/pull/166.patch
https://github.com/wroscoe/donkey/pull/166.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/wroscoe/donkey/pull/166, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKk50O5E4Ay7GZPaYrekqRZyaGMo_heks5ssLffgaJpZM4P5YZR
.

@tawnkramer Good point. With cache training runs much faster. Will make a command argument for that.

Added a command line argument to cache training data.


Material color name

I open this issue to discuss to add color name to the u3m
As I can see there is two places that this new field can be.

color_rgb

{
  "constant": {"r": 0.53, "g": 0.8, "b": 0.92, "name" : "SkyBlue",},
  "texture": null
}

texture_and_color

{
  "constant": {"r": 0.53, "g": 0.8, "b": 0.92},
  "color_name" : "SkyBlue",
  "texture": null
}

As discussed, colors are very company specific (so this information should be in Custom section)


Fix ToSVisitor for expanded string interpolation in backticks

The compiler normalizes StringInterpolation nodes into a call to String.interpolation.
If such an interpolation is used inside a backticks literal like `#{foo}`, it normalizes to something like grave(::String.interpolation(foo)).[^1]
The ToSVisitor does not expect the argument of a backtick method call to be a call.
Hence it errors if such a node would be stringified.
This patch fixes that.
[^1]: I don't think backtick calls can be expressed using normal call syntax so I used the method name grave instead for demonstration purposes. Consider it to be a call to the backtick method.

This could trigger if I run the following with AFTER=1 and the empty prelude:
def `(x)
end

class String
  def self.interpolation(*args)
  end
end

`#{1}`

Is there any other scenario that prompted this PR?

I was just printing nodes after the semantic stage while debugging for #13922.
That's a totally legit thing to do. Stringification should work at any stage of the compiler.


[RCTDevMenu] Store live reload config outside of RCTDevMenu

Config was being nuked each time a reload occurred because RCTDevMenu is dealloc'd and reinitialized, see #1067
cc @tadeuzagallo @nicklockwood

Thanks @ide - fixed those!

@tadeuzagallo - this would be a good fix to get into the next release if possible

@nicklockwood has already landed internally a slightly different version of it, using NSUserDefaults, it should be out on the next sync.

@tadeuzagallo - excellent, will close this then


Contact method - "Verify" button is not enabled after disabling internet connection

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Pre-requisite: User must have added an email as a new contact method, but without verifying it.

Tap on the recently added email
Turn on airplane mode to disable internet connection

Expected Result:
Verify" button should be still enabled
Actual Result:
"Verify" button is disabled
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[x] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/78819774/08b636fd-519e-4615-97d7-fe9207b58f6b
Expensify/Expensify Issue URL:
Issue reported by: Applause- Internal Team
Slack conversation:
View all open jobs on GitHub

imo, expected behaviour

I agree, this looks like the expected behaviour


add _rho_to_sfc function?

This function appears in atmos, coupler, and lsm. We could add it here, or in Thermodynamics.jl

So far, ClimaUtilities is mostly a toolbox and it doesn't care about physics. I think we should leave science to science packages, so I would say that this is not the right place for this function.


Example refactor for proper concurrency support

Token requests are not properly disambiguated for target authority or other semantics, this change purposes modification to some of the code that was only considering 'scope' values to instead consider a 'request uniqueness identifier' that is resolved based on the target request and account, instead of just target scopes. It seems like previous change to support setting authority per-token request was only tested when making single token calls, so the lack of proper disambiguation was not noticed.

@sameerag @jasonnutter I prepared this change which should showcase the kind of modifications necessary to properly support concurrent token requests in MSAL. While working with code I thought to suggest additional abstractions, as the current code in the public client class seems to have several methods with internal logic duplicated (as you can see from this change) that should probably be encapsulated into a separate function. But this change does not address that. This changes extends our discussions from #1225 and also from PR #1267.

Please note, I simply studied the code, made the changes, then produced this PR. I did not run tests or look at modifying them based on my changes, etc.; this PR is primarily meant as a suggestion to the kind of fix / abstraction / modification that should be considered.

@keystroke Yes, see #1338


python311Packages.pgvector: 0.2.3 -> 0.2.4

Diff: https://github.com/pgvector/pgvector-python/compare/refs/tags/v0.2.3...v0.2.4
Changelog: https://github.com/pgvector/pgvector-python/blob/refs/tags/v0.2.4/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Priorities
Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 269751 at 15b9f1be run on aarch64-darwin 1

2 packages failed to build:

python310Packages.pgvector
python311Packages.pgvector

2 packages built successfully:

python310Packages.sqlmodel
python311Packages.sqlmodel


feat(comp): Move kube-context completion to Go

This moves that last custom completion done in Bash to Go.
This actually removes the last dependency to kubectl.
I hadn't done that before because the call to action.Init() would fail before doing the completion, when the --kube-context value was partial (because it was being completed).  But I found a way around that by looking for that specific scenario, as implemented in this PR.

Corresponding acceptance tests here: https://github.com/helm/acceptance-testing/pull/76


Added diff output for updating resources

Description
This PR applies to resource updates. It:

Prints resource diffs in a simplified format:

[2016-09-19T16:24:44+00:00] INFO: Update oneview_resource 'ServerProfile1'

  - Would Update oneview_resource 'ServerProfile1'

    description: Test Server Profile -> Test Server Profile created by Chef
    boot:
      manageBoot: false -> true
      order: [] -> ["PXE", "CD", "Floppy", "USB", "HardDisk"]

As you can see, it handles top-level attributes (e.g. description), as well as nested hashes, arrays, booleans, etc. (handles type mismatches also)
Also prints a debug log statement of the current and desired states of the resource

Issues Resolved
Fixes #17
Check List

[x] New functionality includes testing.

[x] All tests pass ($ rake test).
[x] New resources and/or actions have are included in the matchers.rb and matchers_spec.

[x] New functionality has been documented in the README if applicable.

[x] New functionality has been thoroughly documented in examples (please include helpful comments).

[x] Changes documented in the CHANGELOG.

Is this ok to be reviewed?

Yep! (I think so anyways) :smile:


Add support for external clocks on gpin GPIO pins

Fixes https://github.com/rp-rs/rp-hal/issues/879 by adding a GpIn0 and GpIn1 struct, which implement ClockSource, such that a user can call configure_clocks for these clock inputs and use the safe clock switching logic already built in.
I tried keeping the gpin.rs style kind of similar to other pin related interfaces (e.g. I2C), let me know if this aligns to your code style :)
I've renamed the type from GPin to GpIn, I believe it's a "General Purpose (clock) INput", hence the gpin name in the datasheet (similarly, there's also a gpout).
I've also provided an example which I ran on an RPi Pico, on an oscilloscope I could see that the pulses the example code drives are in sync with the provided clock :tada:

Looks good to me. But perhaps GpInX::new(pin) should also take the input frequency as an argument, so we don't have to default it to 0 Hz?

Good point, 0 Hz is an annoying default to have anyway as it causes issues in calculating clock dividers. I've updated it.

Thank you for the PR! Looks good to me. I guess we should do another PR adding support for RP2350 as well.


How to handle django User authentication, REST Framework throttling, etc?

As Hawkrest doesn't make use of django's User model, there seems to be no way to implement API permissions, throttling etc. as they all expect the presence of a User object on request.user. So at the minute it looks like I need to subclass HawkAuthentication to look up and return a User object, which means copy and pasting most of the authenticate() method.
Is there a recommended way of handling population of request.user? Or am I missing something generally?

Hi. A couple replies:

I just saw this issue, sorry! email filter fail
A database is not required to use Hawk so there is no user model. I hope that this won't be too much of a problem but I've already run into #9 which was a pretty bad oversight, oops. A fix is forthcoming.
If you need to return a user object then perhaps you can send a patch for a more abstract version of HawkAuthentication for easier subclassing?


ci: deploy.

Codecov Report
Patch and project coverage have no change.

Comparison is base (07e30bb) 100.00% compared to head (3d77a11) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          257       257
  Branches        24        24
=========================================
  Hits           257       257

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Empty CNR outputs

Hi @mattcieslak,
I haven't seen this issue mentioned yet. I've tested it with qsiprep:0.6.4 on both cross-sectional and longitudinal data with single and multishell acquisitions.
Everyone gets a desc-eddy_cnr.nii.gz file. However this is an empty file. The dimensions appear right when I mrinfo (97x116x98) but its just a blank image with a mean value of 0 (fslstats *eddy_cnr.nii.gz -m)?
Working as intended or bug?

Thanks for pointing this out. I think this is a result of the reorientation that happened in 0.6.3. Should be an easy fix.


To disable to users editing "email" field

Just disable field for a short time

Yep, just do this in the client, not server, for now, for simplicity.

Sure.


Using constructor properties in functions inside of class triggers --noUnusedLocals error

TypeScript Version:  2.3.2
Code
class A {
  constructor(private b : any) {}

  myMethod() {
    function logB () {
      console.log(this.b);
    }

    return logB;
  }
}

Expected behavior:
compiled with --noUnusedLocals flag without errors
Actual behavior:
compiled with error:
Error: TS6138:Property 'b' is declared but never used.

Inside a function, the value of this depends on how the function is called. (MDN)

function logB () {
  console.log(this.b); // the this.b here is not point to private b
}

You should use something like:
class A {
  constructor(private b : any) {}

  myMethod() {
    const logB = () => { // there is no context in an arrow function
      console.log(this.b);
    }

    return logB;
  }
}

or
class A {
  constructor(private b : any) {}

  myMethod() {
    var _this = this; // use a variable that is point to the `A` instance
    function logB() {
      console.log(_this.b);
    }

    return logB;
  }
}

@ikatyang I understand how this thing works, sorry for confusion with example, to avoid confusion I have now corrected it, so that it returns binded function

And to give more context where such an approach can be useful here is the example on how we use it in our codebase:
class SomeClass {
  constructor(private someProperty) {}

  myMethod(params) {
    // it is handy - we can see what method does looking right at the start of the method
    return getSomething.apply(this)
      .then(doSomething.bind(this))
      .then(propagateChanges.bind(this));

    // functions can be declared after `return` statement - if refactoring
    // to const getSomething = () => {} - we are losing this ability and so we
    // are losing this handy way to see what method does looking right at the start of the method
    function getSomething() {}
    function doSomething() {}
    function propagateChanges() {}
  }
}

As I know, TS currently does nothing for special function (call, bind, apply).
You might have to bind its type on type level manually by using something like:
function logB(this: A) {
  console.log(this.b);
}

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


SQL Server: migrate dev (and db push) does not create a database

This is the error message when you try to migrate a database that does not exist on SQL Server:
C:\Users\Jan\Documents\throwaway\sqlServerCycles>npx prisma migrate dev
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db" - SQL Server

Error: Migration engine error:
Performing a TLS handshake
Trusting the server certificate without validation.
TLS handshake successful
Turning TLS off after a login. All traffic from here on is not encrypted.
Cannot open database "mydb" requested by the login. The login failed.
Database error
Database does not exist: mydb

(We should probably have tests for all databases that ensure this works)

@Jolg42 I think the new error logging code has a problem, this is not the expected error message. I'll try to look into this today.

(looking into it currently)

Todo reconfirm if fixed after it gets to dev in ~20 minutes.

No change for 2.27.0-dev.34:
...

+<EMAIL_ADDRESS>added 2 packages from 1 contributor and audited 4 packages in 6.057s
found 0 vulnerabilities

C:\Users\Jan\Documents\throwaway\sqlServerCycles>npx prisma db push
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db" - SQL Server
Error: Migration engine error:
Performing a TLS handshake
Trusting the server certificate without validation.
TLS handshake successful
Turning TLS off after a login. All traffic from here on is not encrypted.
Cannot open database "repro_cycles2" requested by the login. The login failed.
Database error
Database does not exist: repro_cycles2

Sorry I think I posted to the wrong issue I wanted to post to https://github.com/prisma/prisma/issues/8058

So I wasn't planning to look into the SQL server part of this, only the error message handling. And that is done, so the WIP with me assigned is a bit misleading. I'll still take a look tomorrow and see where the problem comes from.

I did some testing in the context of https://github.com/prisma/prisma-engines/pull/2089 and the ME does try to create a database on create-database and returns a proper error when that happens. Maybe there is something in the CLI preventing that code from running?

Error with DEBUG="*"
Error: Error: Migration engine error:
Performing a TLS handshake
Trusting the server certificate without validation.
TLS handshake successful
Turning TLS off after a login. All traffic from here on is not encrypted.
Cannot open database "hellomssql" requested by the login. The login failed.
Database error
Database does not exist: hellomssql

    at Object.canConnectToDatabase (/Users/j42/Dev/prisma-esbuild/packages/sdk/dist/migrateEngineCommands.js:94:15)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.ensureDatabaseExists (/Users/j42/Dev/prisma-esbuild/packages/migrate/src/utils/ensureDatabaseExists.ts:118:22)
    at DbPush.parse (/Users/j42/Dev/prisma-esbuild/packages/migrate/src/commands/DbPush.ts:116:26)
    at main (/Users/j42/Dev/prisma-esbuild/packages/migrate/src/bin.ts:80:18)

Should be fixed when https://github.com/prisma/prisma-engines/pull/2133 drops

Status: Will be worked on next release, WIP PR https://github.com/prisma/prisma-engines/pull/2133

Just played with the CLI, needed to fix some logic but now I get this
In 2.29.0-dev.40 (and soon in 2.29)
First push
Prisma schema loaded from prisma/schema.prisma
Datasource "my_db" - SQL Server
Error: Migration engine error:
Performing a TLS handshake
Trusting the server certificate without validation.
TLS handshake successful
Turning TLS off after a login. All traffic from here on is not encrypted.
Database change from 'master' to 'master'
Changed database context to 'master'.
SQL collation change from None to windows-1252/windows-1252
Microsoft SQL Server version<PHONE_NUMBER>
Packet size change from '4096' to '4096'
Starting a mssql connection.
Performing a TLS handshake
Trusting the server certificate without validation.
TLS handshake successful
Turning TLS off after a login. All traffic from here on is not encrypted.
Database change from 'sdfsd1' to 'master'
Changed database context to 'sdfsd1'.
SQL collation change from None to windows-1252/windows-1252
Microsoft SQL Server version<PHONE_NUMBER>
Packet size change from '4096' to '4096'
Starting a mssql connection.
The specified schema name "dbo" either does not exist or you do not have permission to use it.
Database error
Error querying the database: 'The specified schema name "dbo" either does not exist or you do not have permission to use it.' on server 5af6d931d9fb executing  on line 1 (code: 2760, state: 1, class: 16)

Second push
Prisma schema loaded from prisma/schema.prisma
Datasource "my_db" - SQL Server

🚀  Your database is now in sync with your schema. Done in 411ms

So something is created but we cannot use it right away somehow?

Note: the error on first "push" comes from calling create-database command on the engine.
https://github.com/prisma/prisma/blob/fe3d63cc11678d756732ad14887eea62b2590c36/packages/sdk/src/migrateEngineCommands.ts#L249-L259


reinstate scala-refactoring

now that it builds on 2.12 again (reference:
https://github.com/scala-ide/scala-refactoring/issues/168)

passing locally

doh, https://github.com/scala/community-builds/issues/461


right-click context menu

Hi,
Can you integrate the context menu into the obsidian right-click context menu? It would be really great!

Hi! Thank you for the idea!
I think that there is no benefits to put anything additional into main context menu since you can summon local-gpt's menu using customizable keyboard shortcut.

In case you care, here's main.ts with action items moved to the right-click context menu. Feel free to ignore it, its your plugin after all.
r-c-c-m.patch


Test E2E WASM Client + IPFS

Closes #25, fixes tests.

We need to get rid of 'npm run tests' it should be 'npm run test' and the tests directory should only contain tests that are passing.

Looks good. I think the changes make sense.


Change view using state

Hi,
It's possible to change the scheduler view state using react state or redux?
I want to change the view with external buttons.

In the current setup, view switch buttons are not exposed. The view prop in meant to only set the initial view on render.

Now I saw this issue. It's quite related to #93


[Question] Text only training?

Question
How do I format the data to do text only training??

hi, bro, have you solved training using only text?

Hi! May I ask if the performance dropped after fine-tuning on a text-only dataset? I have multimodal/text mixed samples. After fine-tuning, the performance of text-only queries significantly dropped. I'd like to know if you got similar results.

Hey, @ZzoomD I ended up switching to prismatic-vlm which supports the mixed training.
@Tree-Shu-Zhao I did see improvements on both my text and vision problems, the performance did not get worse


Run ghcide under a nix-shell (or any other shell)

Resolves https://github.com/moodmosaic/ide-haskell-ghcide/issues/3 — /cc @regnat @fredericcogny

The only (very minor) annoyance is that ghcide doesn't restart if we change the command.

True, but maybe we can add some commands for it, e.g.
ghcide:stop
ghcide:start

Though I'm not sure how reliable that will be.

Thank you! :tada:


Patching rkt-stage1 to handle containers with init commands that do not have absolute path

Patching rkt-stage1 to handle containers with init commands that do not have absolute path
Signed-off-by: Kalyan Nidumolu<EMAIL_ADDRESS>

Hey @kalyan-nidumolu as we've discussed -- lets close this PR in favor of a complete solution that would take care of setting all ENVs (including PATH) and doing a proper system(3) call equivalent to launch a shell.
We may even borrow some code from rkt/runc to do it -- or we can just do it in sh
Agreed?


Add UTF-8 option to Dockerfile

Add UTF-8 option to Dockerfile

@taeyeon-Kim
Thanks for PR. but, Java 8 or above the default file.encoding seems UTF-8.
Is this option required?
You can check default java settings with the following command java -XshowSettings

Java 8 default settings.

VM settings:
    Max. Heap Size (Estimated): 3.56G
    Ergonomics Machine Class: server
    Using VM: Java HotSpot(TM) 64-Bit Server VM

Property settings:
    awt.toolkit = sun.lwawt.macosx.LWCToolkit
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /

...

    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.8.0_202-b08
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.8
    java.version = 1.8.0_202

Sry, Ignore this PR. :)

@taeyeon-Kim
Thanks for the PR.
How about using UTF-8 instead of UTF8 because it seems java default settings format.
and Please add sun.jnu.encoding=UTF-8 as well.
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8

@taeyeon-Kim
Java default encoding is locale-dependent even same version.
Our base image uses ANSI_X3.4-1968 as a Java default encoding.
(You can check with following command docker run -it --rm jeanblanchard/java:serverjre-8 java -XshowSettings)
So, I think it is better to change to UTF-8. Please refer to the above comment and make a new PR :)


Drop api in name

Following #39.
PR Checklist

[ ] Give a detailed description of the PR above.
[ ] Document changes in the CHANGES.rst file. See existing changelog for examples.
[ ] Add tests, if applicable, to ensure code coverage never decreases.
[ ] Make sure the docs are up to date, if applicable, particularly the docstrings and RST files in docs folder.
[ ] Ensure linear history by rebasing, when requested by the maintainer.

Codecov Report

Merging #40 (c26f7b6) into main (7769107) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   76.61%   76.61%
=======================================
  Files          13       13
  Lines         278      278
=======================================
  Hits          213      213
  Misses         65       65

Impacted Files
Coverage Δ

src/cosmology/api/__init__.py
100.00% <100.00%> (ø)

src/cosmology/api/_background.py
68.42% <100.00%> (ø)

src/cosmology/api/_components.py
86.79% <100.00%> (ø)

src/cosmology/api/_core.py
76.92% <100.00%> (ø)

src/cosmology/api/_extras.py
88.00% <100.00%> (ø)

src/cosmology/api/compat/__init__.py
100.00% <100.00%> (ø)

src/cosmology/api/compat/_core.py
100.00% <100.00%> (ø)

src/cosmology/api/compat/_standard.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Make 3 parameter version of the Guavate.zip method public

This is a useful method but it is currently private.

Just noting that MapStream uses this now, and exposes it as MapStream.zip. This might reduce the need to expose this method publicly.


Not found PHP in new version

VSCode Version: 1.22
OS Version: Windows 10 (Last version)

Steps to Reproduce:

When I upgrade to the new version, I do not recognize any PHP file

Does this issue occur when all extensions are disabled?: Yes

Can you explain exactly what you see?
If you search @builtin php in the extensions viewlet, what do you see?


Cannot continue from _checkpoint

Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-122-generic ppc64le)
tesseract -v
tesseract 4.0.0-beta.3-180-gab1f
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0
and
Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-130-generic x86_64)
tesseract -v
tesseract 4.0.0-beta.3-199-gba757
leptonica-1.76.0
libjpeg 8d (libjpeg-turbo 1.3.0) : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8 : libwebp 0.4.0 : libopenjp2 2.3.0

At iteration 4988/5000/5000, Mean rms=3.855%, delta=17.627%, char train=75.487%, word train=98.179%, skip ratio=0%,  wrote checkpoint.

Finished! Error rate = 54.122
shree@sanskrit:~/tesseract-ocr/tesseract$ lstmeval \
>   --model ../tesstutorial/engoutput/base_checkpoint \
>   --traineddata ../tesstutorial/engtrain/eng/eng.traineddata \
>   --eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/engoutput/base_checkpoint is not a recognition model, trying training checkpoint...
Loaded 72/72 pages (1-72) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Deserialize failed

~/tesseract-ocr/tesseract$ lstmtraining \
>   --model_output ../tesstutorial/impact_from_small/impact \
>   --continue_from ../tesstutorial/engoutput/base_checkpoint \
>   --traineddata ../tesstutorial/engtrain/eng/eng.traineddata \
>   --train_listfile ../tesstutorial/engeval/eng.training_files.txt \
>   --max_iterations 1200
Loaded file ../tesstutorial/engoutput/base_checkpoint, unpacking...
Failed to continue from: ../tesstutorial/engoutput/base_checkpoint

Continue_from is NOT working currently from _checkpoint, however it works from the numbered checkpoints.
This seems to be a result of some recent commits, as this used to work before.

tesseract$ tesseract -v
tesseract 4.0.0-beta.2
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0
lstmeval \
>   --model ../tesstutorial/engoutput/base_checkpoint \
>   --traineddata ../tesstutorial/engtrain/eng/eng.traineddata \
>   --eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/engoutput/base_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Truth:any can't his Post with Send about 3G Video also 10 -- from | about 2007, data
OCR  :SM iis Paioh Smdopm S3Oitim 0 . bom | sou 10 tn
Truth:group April including just place 18 service Articles as could these Community to

tesseract -v
tesseract 4.0.0-beta.3
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0
 lstmeval \
>   --model ../tesstutorial/engoutput/base_checkpoint \
>   --traineddata ../tesstutorial/engtrain/eng/eng.traineddata \
>   --eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/engoutput/base_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Truth:any can't his Post with Send about 3G Video also 10 -- from | about 2007, data
OCR  :YWitio Poat Vih Sm op 2)8 Cion tin it - bPou ! tpom 0RD tm
Truth:group April including just place 18 service Articles as could these Community to

tesseract -v
tesseract 4.0.0-beta.3-131-g6d170
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0
lstmeval \

--model ../tesstutorial/engoutput/base_checkpoint
--traineddata ../tesstutorial/engtrain/eng/eng.traineddata
--eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/engoutput/base_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Truth:any can't his Post with Send about 3G Video also 10 -- from | about 2007, data
OCR  :

Tried with latest version
ubuntu@tesseract-ocr:~/tesseract$ time lstmeval \
>   --model ../tesstutorial/engoutput/base_checkpoint \
>   --traineddata ../tesstutorial/engtrain/eng/eng.traineddata \
>   --eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/engoutput/base_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Deserialize failed

@stweil Have you tried the tutorial? Is the problem reproducable or is it limited just to the POWER architecture?

I tried it now with the latest git version and get the same error when running lstmeval. Can you say when it worked last?
basetrain.log contains several warnings: Warning: given outputs 111 not equal to unicharset of 110 and Warning: LSTMTrainer deserialized an LSTMRecognizer!.
Why does the training end with different error rates (54.122 / 8.957 in your runs, 99.592 in my test)?

An interesting result regarding the performance: the training took about 18 minutes (nearly an hour CPU time) in the default configuration (up to 4 threads). When running with a single thread, the duration increased to about 28 minutes which is also the CPU time, so running a single thread is much more efficient. There seems to be a huge overhead for OpenMP multithreading while training.

@stweil I am currently using the following commit where training is working.
tesseract -v
tesseract 4.0.0-beta.3-162-g3ea9cf
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.3.0
I initially noted the error with the following commit:
tesseract 4.0.0-beta.3-180-gab1f
So the change might be somewhere between these.

Regarding different error rates, also see
For commit - tesseract 4.0.0-beta.3-180-gab1f
with
./configure --enable-openmp --disable-debug --disable-opencl
I get
At iteration 4856/5000/5000, Mean rms=1.191%, delta=2.276%, char train=7.534%, word train=16.772%, skip ratio=0%,  New best char error = 7.534 wrote best model:../tesstutorial/engoutput/base7.534_4856.checkpoint wrote checkpoint.
Finished! Error rate = 7.534

with
./configure --enable-debug --disable-shared --disable-static CXXFLAGS="-Wall -Wextra -g -O0"
I get
At iteration 4992/5000/5000, Mean rms=5.853%, delta=49.475%, char train=100%, word train=100%, skip ratio=0%,  wrote checkpoint.
Finished! Error rate = 25.515

I do not know what would cause the difference in results.
BTW. these are also different from the ones Ray posted on the wiki in the tutorial. I am now using the fontlist as given in language_specific.sh rather than a larger list based on installed fonts, so the results should be comparable.

Commit 992031e8248c3b95cda23315bf390303c7c7955c caused that regression. I'll send a fix.

https://github.com/tesseract-ocr/tesseract/blob/71bb9c373b4001865b18e7e8bb7592e8428e28c6/src/lstm/networkbuilder.cpp#L453
https://github.com/tesseract-ocr/tesseract/blob/3a7f5e4de459f4c64f36e08b18ce1b66b1fbc876/src/lstm/lstmtrainer.cpp#L474

@stweil Thank you. Continue_from is now working from _checkpoints. That problem is fixed.
Do you want me to keep this issue open for the differences in error rates?

Looks like I spoke too soon ...
Continuing with next step of the tutorial, I am getting the error again:
Commands used:
rm -rf ../tesstutorial/impact_from_full
mkdir -p ../tesstutorial/impact_from_full
#
combine_tessdata -e ../tessdata_best/eng.traineddata \
  ../tesstutorial/impact_from_full/eng.lstm
#
lstmtraining \
  --debug_interval -1 \
  --model_output ../tesstutorial/impact_from_full/impact \
  --continue_from ../tesstutorial/impact_from_full/eng.lstm \
  --traineddata ../tessdata_best/eng.traineddata \
  --train_listfile ../tesstutorial/engeval/eng.training_files.txt \
  --max_iterations 400
#------------------------
lstmeval \
  --model ../tesstutorial/impact_from_full/impact_checkpoint \
  --traineddata ../tessdata_best/eng.traineddata \
  --eval_listfile ../tesstutorial/engeval/eng.training_files.txt

Console Output and Error Message
Mean rms=0.305%, delta=0.125%, train=0.387%(1.179%), skip ratio=0%
2 Percent improvement time=50, best error was 100 @ 0
At iteration 50/400/400, Mean rms=0.305%, delta=0.125%, char train=0.387%, word train=1.179%, skip ratio=0%,  New best char error = 0.387 wrote best model:../tesstutorial/impact_from_full/impact0.387_50.checkpoint wrote checkpoint.

Finished! Error rate = 0.387

ubuntu@tesseract-ocr:~/tesseract$ lstmeval \
>   --model ../tesstutorial/impact_from_full/impact_checkpoint \
>   --traineddata ../tessdata_best/eng.traineddata \
>   --eval_listfile ../tesstutorial/engeval/eng.training_files.txt
../tesstutorial/impact_from_full/impact_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
Deserialize failed

FYI,
Attached is a bash script with the initial steps from tutorial (mainly for training from scratch and eval) that I have been trying so far.
tesstutorial.sh.txt

The new issue is caused by the same problem. When de-serializing ../tesstutorial/impact_from_full/impact_checkpoint, Tesseract wants to read about 35000000 characters, but I raised the limit only to 30000000. I'll now use a new upper limit of 50000000, but we should think about @amitdo's remark how we can split such large reads in smaller pieces.

Fix #1796 increases the limit further.

I'll now use a new upper limit of 50000000, but we should think about @amitdo's remark how we can split such large reads in smaller pieces.

Yes, that may be needed as many traineddata files are much larger than eng.traineddata.

@stweil Thanks. Closing this issue now.
Tested by using both eng.traineddata and Latin.traineddata to continue_from. No error.
 time lstmeval \
>   --model ~/tesstutorial/impact_from_full/impact_checkpoint \
>   --traineddata ../tessdata_best/eng.traineddata \
>   --eval_listfile ~/tesstutorial/engeval/eng.training_files.txt
/home/ubuntu/tesstutorial/impact_from_full/impact_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
At iteration 0, stage 0, Eval Char error rate=0, Word error rate=0

real    0m27.761s
user    1m29.040s
sys     0m0.392s

 time lstmeval \
>   --model ~/tesstutorial/impact_from_Latin/impact_checkpoint \
>   --traineddata ../tessdata_best/script/Latin.traineddata \
>   --eval_listfile ~/tesstutorial/engeval/eng.training_files.txt
/home/ubuntu/tesstutorial/impact_from_Latin/impact_checkpoint is not a recognition model, trying training checkpoint...
Loaded 86/86 pages (1-86) of document ../tesstutorial/engeval/eng.Impact_Condensed.exp0.lstmf
At iteration 0, stage 0, Eval Char error rate=0, Word error rate=0

real    0m42.231s
user    2m12.728s
sys     0m0.428s

@stweil
Regarding, Warning: given outputs 111 not equal to unicharset of 110
The number used to be the same before for training from scratch. In other cases, any number can be given and it will be replaced by size of unicharset.
This displayed size of unicharset has changed, not by recent changes to code, but earlier modifications. It is probably related to changes regarding NULL and Nullptr.

The number used to be the same before for training from scratch.

I.e. Ray had used  numbers in network spec which matched the size of eng.unicharset.

@Shreeshrii you once asked me about my experience with fine-tuning.
Here is the thing, when you fine-tune you should use as few lines as possible, and you should be smart about the text that you use, meaning it should include the characters that you want to add/improve along with the reset of the characters that you already have. It's weird, I know, somehow when you fine-tune it improves a thing, and forgets a thing, that's why i suggest including every character/form in your fine-tuning text. Another thing, depending on your language, some suggest fine-tuning works better when you have a trained model for each book/font/ etc....
if you are serious about the fine-tuning thing, and want to really understand tesseract's weakness in such matters, have a look the Calamari OCR Engine released paper:
https://arxiv.org/ftp/arxiv/papers/1807/1807.02004.pdf
https://github.com/Calamari-OCR/calamari
Also released papers by Reul
https://arxiv.org/search/?searchtype=author&query=Reul%2C+C
and by Wick
https://arxiv.org/search/?searchtype=author&query=Wick%2C+C

@christophered Thanks for the details about finetuning. Yes, it is works better for Latin script based languages. Not so well for Indic and other languages that need recoding.

Would like to mention that I have been fighting some days with this problem too. I'm on:
tesseract 4.1.1-rc2-25-g9707
And write here because I have the EXACT same symptoms as @Shreeshrii mentions in the first message:
Trying to compile the final mimodelo.traineddata results in
Failed to read continue from: mimodelo_checkpoint
If I use the previos (numbered) checkpoint: mimodelo0_1283.checkpoint it creates the mimodelo.traineddata without problem (but not sure if this is the proper solution as I suppose not using the last checkpoint will produce more errors than using the last checkpoint).
More exact same symptoms is getting the 'Deserialize failed' when passing the lstmeval command.
What I'm trying to teach is with 50 images on a paged .tif with hand edited .box files and only 6 numbers on each image. It really is pictures of a utility water counter (rolling numbers type) and only 0,1,2,3,4,5,6,7,8,9 digits. In other threads I saw the command proposed by Shreeshrii and added 'debug -1' and calculations end up with 0 errors and I read 'perfect' on every step at the end. Finishing with rms=0.185%.
Probably I will try same process with tesseract 5.0.0 in the following days and see if result is different. I will post results here.


Exam Mode does not show correct results for tests after due date

Describe the bug
We conducted an exam with manual assessment (programming task) and tests with visibility after due date.
Furthermore, we set the execution of the tests after exam end date + grace period + buffer.
If you start the assessment, you won't see the updated points for all test cases. Only the test cases with visibility "Always" will be used for the point calculation
To Reproduce
See Description
Expected behavior
The assessment shall be based on all test cases (Always + After Due Date)
Screenshots
No response
What browsers are you seeing the problem on?
Firefox
Additional context
No response
Relevant log output
No response

Duplicate. Was already fixed in the Release 5.1.3 yesterday


No rule to make target when building

Environment

OS Version: Ubuntu 20.04
Source or binary build?
Source: Galactic and Edifice

Up until yesterday I quietly built the package without any errors. This morning I updated some packages via ubuntu software updater and the error came out.
Starting >>> ignition_ros2_control
--- stderr: ignition_ros2_control
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libignition-common4-profiler.so.4.2.0', needed by 'libignition_hardware_plugins.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/ignition_hardware_plugins.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libignition-common4-profiler.so.4.2.0', needed by 'libignition_ros2_control-system.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:107: CMakeFiles/ignition_ros2_control-system.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< ignition_ros2_control [0.25s, exited with code 2]

Description

Expected behavior:Build successful
Actual behavior: Build failed

Steps to reproduce

Put the ignition_ros2_control inside my workspace
Source all the needed  workspaces
Start to build

@ggiulian is this still an issue for you?=

No, now it works


Example for 5.3

Hi, is there documentation or examples out there for implementing from your paper section 5.3 Should I trust this prediction? I can only find the data_trusting.py and would like to base my code more off of some real examples with real data but can't find any anywhere. Thank you!

Hi
I’m very sorry iv been in hospital give me a call call tomorrow if free thanks adam
Get Outlook for iOShttps://aka.ms/o0ukef

From: dcoocksy<EMAIL_ADDRESS>Sent: Tuesday, November 24, 2020 6:52:25 PM
To: marcotcr/lime<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [marcotcr/lime] Example for 5.3 (#544)
Hi, is there documentation or examples out there for implementing from your paper section 5.3 Should I trust this prediction? I can only find the data_trusting.py and would like to base my code more off of some real examples with real data but can't find any anywhere. Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/marcotcr/lime/issues/544, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APH5BTLGIGGG3LN7OD643UTSRP6GTANCNFSM4UBI3SBA.

This looks like a clear phish ^ don't click


how to close automatic compression

Describe the bug
how to close automatic compression.
Expected behavior
I need to turn off automatic compression to achieve a faster upload speed。

You can pass your empty mime type list

You can pass your empty mime type list

How to achieve what you said when uploading through the S3 interface? Can you give an example?


Page is lopsided

[Enter feedback here]  The page provides C# code but VB code solution is very differemt

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

ID: 097f0935-4e55-891d-5a27-fb898d63d8f3
Version Independent ID: cce4458e-b162-09f3-48ea-b4481aa4c183
Content: Create a new app with Visual Studio tutorial - WPF .NET
Content Source: dotnet-desktop-guide/net/wpf/get-started/create-app-visual-studio.md
Product: dotnet-desktop
Technology: dotnet-wpf
GitHub Login: @adegeo
Microsoft Alias: adegeo

Hi @ChitownRonnie can you elaborate on what differences you're seeing? If it's related to how the XAML class is declared, there isn't much I can do about that except add a note at the first occurrence of XAML that points this out.


adds DATABASE_SSL_KEY_BASE64 for pg connection

DATABASE_SSL_KEY_BASE64 takes priority over DATABASE_SSL env var
If neither are provided, no ssl value will be used. This allows for the usage of PGSSLMODE
for example, using either of these two will establish a secure connection to the Postgres server
DATABASE_SSL=true
PGSSLMODE=verify-full
Using the following will override the above and allow you to pass your self-signed certificate to create a secure connection
DATABASE_SSL_KEY_BASE64=
Using neither of the flags allows using the unsafe/not recommended  PGSSLMODE=no-verify
Addresses issue #1598

awesome this looks good! thanks man @Jaredude !

Looking forward to using this new feature, once the PR is merged!  👍   Thanks again, @Jaredude!

how do you obtain the Postgres SSL certificate encoded in base64? I can't get SSL to work with Postgres

how do you obtain the Postgres SSL certificate encoded in base64? I can't get SSL to work with Postgres

Hey @inno-elon , you can use a tool like openssl to extract the X.509 SSL/TLS certificate from your Postgres server.  The format is this:
openssl s_client -showcerts <DATABASE_IP>:5432

In that initial output, you should see base64 text returned from the server wrapped in a -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- block.  You want to copy that entire block of text (including the BEGIN/END lines) and set that as your DATABASE_SSL_KEY_BASE64 value, accordingly.

btw is this even a valif falg PGSSLMODE=no-verify ? I don't see this as an option here https://www.postgresql.org/docs/current/libpq-ssl.html


Remove use of deprecated record_batches_to_json_rows function from arrow-json

We are using a function from arrow-json crate that is deprecated: record_batches_to_json_rows
It is used in the following places:

https://github.com/influxdata/influxdb/blob/a5eba2f8f25d8a6dd1ea9237a7278427853473d4/influxdb3_server/src/http.rs#L810
https://github.com/influxdata/influxdb/blob/a5eba2f8f25d8a6dd1ea9237a7278427853473d4/influxdb3_server/src/http/v1.rs#L342

The deprecation warning indicates that we should be using Writer. Doing so in the latter case should be easier since we are serializing directly to the bytes outputted in the API response, however, the former may be a bit trickier, as we are modifying the serialized JSON values before serializing to bytes in the response.

I am interested in taking on this task. Is it possible to assign this ticket to me?

Hi @JeanArhancet - that would be awesome, thank you! This issue is not in our immediate backlog, so if you would like to tackle it by opening a PR, you are welcome to do that.
My recommendation is to start by solving (1.) in the issue description, and opening a PR for only that. Since that is using arrow-json's writer for its intended purpose: serializing and writing JSON. Specifically, I would look at arrow-json's ArrayWriter, as that serializes to a JSON array, as opposed to JSON Lines. Separately, we do intend to support JSON Lines (see https://github.com/influxdata/influxdb/issues/24654).
As for (2.), the use of record_batches_to_json_rows is a bit of a hack there, so the solution is not to use the arrow-json writer, but will be something different.
Please keep in mind that you will need to read and sign our CLA in order for contributions to be accepted. You can find that here: https://www.influxdata.com/legal/cla/

Thanks for your feedback, @hiltontj.
I've opened a PR for the first part: https://github.com/influxdata/influxdb/pull/25046

Awesome, thank you @JeanArhancet! I had some comments on that PR.
Re: (2.), I will clarify a bit, in case you want to tackle that in a separate PR. The record_batches_to_json_rows function is being used in the v1 query API handler here: https://github.com/influxdata/influxdb/blob/a5eba2f8f25d8a6dd1ea9237a7278427853473d4/influxdb3_server/src/http/v1.rs#L340-L377
It converts the arrow RecordBatches to serde_json::Values so that it can manipulate them and then convert them into the locally defined Row type.
The objective here would be to remove the use of record_batches_to_json_rows and serde_json::Value, and operate on the RecordBatches directly.
This would likely involve a bit more refactoring effort than solving (1.) did, but if you're up for giving it a shot, then go for it!

Closing since #25046 is merged

Realizing there were more parts to be added so I've reopened my bad


[5.2] expose token methods to user in password broker

this PR references internals issue 12. please read my initial comment on that page for my reason behind submitting this PR.
by giving the user access to the token repository, they now have full control over resetting passwords. the user is given free reign over validating the input, sending emails, and other things they would like to do.
here is how i would use it in a controller or service class.
class PasswordService
{
    public function __construct(\Illuminate\Contracts\Auth\PasswordBroker $broker)
    {
        $this->broker = $broker;
    }

    public function request(array $input)
    {
            //retrieve user
            $user = $this->broker->getUser($input);

            //no user found with email
            if (is_null($user)) {
                throw new Exception('User not found.');
            }

            //get token
            $token = $this->broker->generateToken($user);

            //send email
        }
    }

    public function reset(array $input)
    {
            //retrieve user
            $user = $this->broker->getUser($input);

            //no user found with email
            if (is_null($user)) {
                throw new Exception('User not found.');
            }

            //reset password
            if($this->broker->validateToken($user, $input['token'])){

                $user->password = bcrypt($password);
                $user->save();

                $this->broker->deleteToken($input['token'];
            }

            throw new Exception('token was invalid');
    }
}

Can all this be done by calling ->getRepository() and then calling whatever methods you want? You're just wanting these methods for convenience?

i guess technically yes. this makes the code feel a little more descriptive and easy to follow to me, and hopefully others as well.
thanks.

Thanks!


Go doesn't compile on stock Ubuntu 16.04

cmd/pprof
/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
runtime/cgo(.text): unexpected relocation type 298
runtime/cgo(.text): unexpected relocation type 298
cmd/go
/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
/home/redacted/.gvm/gos/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
runtime/cgo(.text): unexpected relocation type 298
runtime/cgo(.text): unexpected relocation type 298

@mdu4rt3 I managed to install go1.4 successfully by setting env CGO_ENABLED=0.

Setting CGO_ENABLED didn't work for me, I had to install 1.4 from binaries instead:
gvm install go1.4 --binary

+1
I got the same issue
$ uname -a
Linux hkg-ubuntu-01 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Same issue attempting to install go1.4 and go1.9.2 using gvm 1.0.22 inUbuntu 16.04.3 within Windows 10 Subsystem for Linux (Windows10 Home 1709)


Auto install gin, gorm, sqlite3

Automatic install needed packages.

These are the dependencies of generated API server, not related to apig itself.
make deps should install dependencies which are required to apig itself, so unfortunately we cannot accept this change.
Thanks!


bug: nav doesn't work

Neovim version (nvim -v)
latest
Operating system/version
debian
Output of :AerialInfo
as normal
Describe the bug
in nav window, search function name, 'n' keymap doesn't work and cannot jump to next. but "N" works as normal.
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
any
Expected Behavior
'n' work as expected.
Minimal example file
No response
Minimal init.lua
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
    "stevearc/aerial.nvim",
    config = function()
      require("aerial").setup({
        -- add your aerial config here
      })
    end,
  },
  {
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",
    config = function()
      require("nvim-treesitter.configs").setup({
        ensure_installed = { "c", "lua" },
        auto_install = true,
        highlight = { enable = true },
      })
    end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Additional context
No response

The bug report is missing the neovim version and "as normal" does not show if either treesitter or lsp is available.
Are your personal keymaps also missing xor did you test that the issue reproduces? There are no steps filled in "Steps To Reproduce", which makes me suspect there is something missing.
Otherwise, the most likely cause is a conflicting keymap from your side.
Did you rule out via :map, :Telescope keymaps and :checkhealth with which-key installed that you have no conflicting keymap?
which-key setup via
  {
    'folke/which-key.nvim',
    config = function() require('which-key').setup() end,
  }, -- :Telescope builtin.keymaps

@matu3ba I didn't remap the "n" in normal mode

could you check if this function works in your side?

The default is mapped to } and { inside Aerial preview and I have mapped a global one via
    vim.keymap.set('n', '<', '<cmd>AerialPrev<CR>', { buffer = bufnr })
    vim.keymap.set('n', '>', '<cmd>AerialNext<CR>', { buffer = bufnr })

The keymap n (the second field) is not mapped on default. I can skim through your dotfiles, if you have them hosted somewhere. However, the behavior you are seeing sounds expected to me.
You can see my config here: https://github.com/matu3ba/dotfiles/blob/84ac247730e1e43e067838a7506684943effa5a0/.config/nvim/lua/my_aerial.lua

@matu3ba   myconfig
https://github.com/yimingwangdell/vimrc/blob/master/nvim/init.vim

@matu3ba but "n' is a default behavior to jump to next item if I use "/' to search something. also "N" works as expected.

Via rg "\bn\b" .\nvim\ I found that
nvim\lua\config\plugins\editsearch.lua:11 shows
			vim.api.nvim_set_keymap('n', 'n',
				[[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
				kopts)

which is loaded in
nvim\lua\config\plugins.lua
62:     require("config.plugins.editsearch"),

@matu3ba I just use single init.vim now, the _init.lua and all .lua file is not used anymore.

I believe this was caused by accidentally forcing the cursor position to column 0. Should be fixed now


feat: add support for with only options argument

Original function requires browserslistConfig to be undefined when we only want to set options. It's a bit ugly. This change allows to set only options.

@marcofugaro can you review this pr


getPosition Stream stop working after Unhandled Exception: PlatformException(ERROR_UPDATING_LOCATION)

🐛 Bug Report

While i was testing Geolocator behavior (i really like this project and i would like to migrate my app to this library) on iOS 13.2 emulated device (also using Xcode Emulator's location options on iPhone 11 Pro Max) the current position stream `getPositionStream' suddenly throw the following exception:
Unhandled Exception: PlatformException(ERROR_UPDATING_LOCATION, The operation couldn’t be completed. (kCLErrorDomain error 0.), null)

After that the stream never work back again. I tried setting the listen argument cancelOnError to false but nothing happens.
Well, saying that the functionality of my APP depends entirely on device position tracking (most specificaly on people driving position in different scenarios and requires a stable behavior) this is a desicive issue  to migrate to geolocator.
Expected behavior
It should continue providing the getPositionStream events.
Reproduction steps
While excecuting the App (that consumes Google Maps services) on Emulation environment on Xcode Eimulator(iPhone 11 Pro Max). I change Location options  from custom location to  freeway drive or freeway drive to city bycicle ride.
Configuration
My Flutter doctor output:
[✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.14.6 18G84, locale es-CL)
    • Flutter version 1.9.1+hotfix.5 at /Users/cgustav/Documents/Flutter-sdk/flutter
    • Framework revision 1aedbb1835 (3 weeks ago), 2019-10-17 08:37:27 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/cgustav/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2, Build version 11B52
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

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

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • 4C735AAD-433A-41A3-8834-D9FE29787FED • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)

Version: 5.1.4+2
Platform:

[x] :iphone: iOS
[ ] :robot: Android

Thanks for your time!

Fixed in version 6.0.0

Hi @mvanbeusekom ,
issue reproducing in geolocator: ^9.0.2. please check:
Steps to reproduce: IOS 16.6 keep the phone in Flight mode. issues are reproducing.
The operation couldn’t be completed. (kCLErrorDomain error 0.)


Is there any example on doing screenshot in Swift api?

Google search yields this repo https://github.com/elpassion/EarlGreySnapshots , but it seems they don't maintain it anymore(The last commit was 4 years ago).
There're some examples relate to screenshot, could anyone help to give some suggestion on migrating these Object-C examples to Swift?
For example(From setup doc):
class MyFirstEarlGreyTest: XCTestCase {

  func testExample() {
    let application: XCUIApplication = XCUIApplication()
    application.launch()
    // HOW TO SCREENSHOT HERE
    EarlGrey.selectElement(with: grey_keyWindow())
      .perform(grey_tap())
  }
}

I had tried perfecto's samples:
let confpath = GREYConfiguration.sharedInstance().value(forConfigKey: kGREYConfigKeyArtifactsDirLocation) as! String
var screenshot = GREYScreenshotUtil.takeScreenshotForAppStore()
var filename = String(describing: EarlGreySimpleIosAppForTestingTests.self) + "#" + #function + ".png"
GREYScreenshotUtil.saveImage(asPNG: screenshot, toFile: filename, inDirectory: confpath)
EarlGrey.select(elementWithMatcher: grey_text("EarlGrey Tests")).assert(grey_sufficientlyVisible())

Which got lots of errors:

Is this EarlGrey 1.0? That is not supported anymore.
Here is a Snapshot Example for EarlGrey 2.0.
https://github.com/google/EarlGrey/blob/earlgrey2/Tests/Functional/Sources/Swift/SwiftTests.swift#L315


Fixed #28006 -- Allowed D to be used with lookups on Distance annotation.

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

buildbot, test on oracle.

buildbot, test on oracle.

buildbot, test on oracle.

Oracle failures are fixed, I checked it locally. Buildbot doesn't want to test on Oracle for me :-(.

buildbot, test on oracle.

Oracle failures are fixed now.


Simple typo fix

Remove an extraneous backslash.

Document view, including the correction: https://github.com/SteveBurkettNZ/windows-itpro-docs/blob/patch-15/windows/security/threat-protection/microsoft-defender-atp/live-response-command-examples.md

#sign-off


chore: dog food witness

This PR uses our own tooling to generate attestations and SBOMs for releases
test run:  https://github.com/testifysec/witness/actions/runs/3303477542/jobs/5451458947

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 27.407%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
111

Relevant Lines:
405

💛  - Coveralls


Allow multiple traces per multiple users

Traces are generated with users and need to be associated with them. Allow an experiment generation technique that mixes and matches the  trace with the number of user.

Note - so there was actually some hack code in the multi-sim library that allowed the passing of a directory of traces and it would assign traces to simulations based on finding the the number of users in the trace filename.
I think we're better off with the new mechanism:

specific traces in the simulation file
can be overrode by specifying a global trace file in multisim.