Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 07 2019 18:54
    @timsneath banned @hpoit
Jermaine Oppong
@graphicbeacon
Hey friends, got another tutorial in the series building a single page app with Dart and Shelf. We will be developing a User Auth system with JSON Web Tokens (JWT) https://youtu.be/Md6F93lqraQ
Graciliano Monteiro Passos
@gmpassos
Hey guys, just sharing a new package. Any feedback is welcome:
https://pub.dev/packages/docker_commander
We are using for integration tests, and now we can also run containers in a remote machine, what helps the developers when they need to run many containers (avoiding to use CPU and memory from the developer notebook).
clearine
@clearine:lighthouse.cx
[m]
Hi, does anyone here have any experience with using devtools? I am trying to use it to see what's eating up memory in my program, but it just seems that devtools never stops loading
It's just stuck on this screen
clearine
@clearine:lighthouse.cx
[m]
And I fixed it, nevermind!
István Soós
@isoos
@gmpassos Looks good. One thing that I don't see there (and https://pub.dev/packages/docker_process was built for that) is the capability to wait until a line gets printed on the container's output (readySignal: (line) => line.contains('Done.'),). Do you plan to support that?
Graciliano Monteiro Passos
@gmpassos
@isoos Yes, it’s already there, the parameters stdoutReadyFunction and stderrReadyFunction.
ApacheHttpdContainer and PostgreSQLContainer
... are good examples of use
István Soós
@isoos
Very nice, thank you :)
Graciliano Monteiro Passos
@gmpassos
To indicate if both functions need to be ready or not
I saw https://pub.dev/packages/docker_process and added the PostgreSQL container after it
István Soós
@isoos
I'll probably release a version of the docker_process that uses docker_commander as a backend, and then just discontinue it :)
(may take some time though)
Graciliano Monteiro Passos
@gmpassos
I will release a new version today of docker_commander, will mention you and docker_process
You also can try [docker_process][docker_process], another Docker package for Dart by [isoos@GitHub][github_isoos].
István Soós
@isoos
Uhm, please don't do that :) I really mean that your library is a superset of what I have, and I'd rather use that in the long term. There is no need to point to something that will not move forward...
Graciliano Monteiro Passos
@gmpassos
Ok, will mention only your nick
shantanu1k
@shantanu1k
Does anyone know how to build dartpad locally? I have tried it using flask but I'm getting 404 error.
Graciliano Monteiro Passos
@gmpassos
Graciliano Monteiro Passos
@gmpassos
dart pub global activate webdev
dart pub get
webdev serve --hostname 0.0.0.0 --release
shantanu1k
@shantanu1k
dart pub global activate webdev
dart pub get
webdev serve --hostname 0.0.0.0 --release
Thank you very much 😁😁.I have been figuring this out since three days.
Graciliano Monteiro Passos
@gmpassos
👍🏻
bpilot
@bpilot
Can https://github.com/dart-lang/source_gen be used to only visit Dart files which are included in the output being built, not other Dart files not imported?
Randal L. Schwartz
@RandalSchwartz
I think you can exclude and include nearly any pattern.
Simon Binder
@simolus3
@bpilot I'm not sure what you mean with "output being built", but build_resolvers (the analyzer wrapper that source_gen uses) will only visit Dart files that are imported from the primary input (the file where a source_gen builder runs). You could use generate_for in your build config to only run the source_gen builder on a single file if that's what you want.
Effectively, source_gen needs to visit all files to check if output is necessary. But I think there's been a recent optimization where they skip the full analysis if no annotation is present.
shantanu1k
@shantanu1k
I created dart package with first letter in capital. I want to rename dart package, as it was point out by package validation. How can I do it? :(
Jacob MacDonald
@jakemac53
Is it already published?
If that is the case, the best option I am aware of right now is to mark the existing one as discontinued https://dart.dev/tools/pub/publishing#discontinue - you can then publish a final release of that package where the README.md file directs people at the new one.
shantanu1k
@shantanu1k
No. It is not published.
I found this warning during dry run.
István Soós
@isoos
@shantanu1k you can rename your package in pubspec.yaml
shantanu1k
@shantanu1k
I know that but there are files in the package with <package_name> in it. So I was wondering if it'll conflict with others.
Jacob MacDonald
@jakemac53
It would only conflict if there is another package by the same name
shantanu1k
@shantanu1k
Ok. Thanks :)
Randal L. Schwartz
@RandalSchwartz

Spam in Flutter Community Facebook group:

I Sell 10 Apps With Admin Panel That Make On Flutter #PriceOnly 50$, Any One Want Then Message me On Inbox

My response:

You know, I was just saying the other day... “so many apps are available WITHOUT an Admin Panel... I wish someone would come up with, say, 10 apps that DID have an Admin Panel...”

István Soós
@isoos
:D
sunbreak
@sunbreak:matrix.org
[m]
Does Dart support 32 bit dll? I'm working on TWAIN library wrapper https://github.com/woodemi/twaindsm.dart. It turns out that some scanner diver only support twaindsm.dll in 32bit
Graciliano Monteiro Passos
@gmpassos

I have published docker_commander v1.0.10, including integration with NGINX container and config for reverse proxy for containers in the same network:

https://pub.dev/documentation/docker_commander/latest/docker_commander_vm/NginxContainer-class.html

Any feedback is welcome.

Graciliano Monteiro Passos
@gmpassos
Graciliano Monteiro Passos
@gmpassos
Just released. new version (v1.0.15), with support for Docker Swarm and example of NGINX as a reverse proxy of other containers in the same network:
https://pub.dev/packages/docker_commander
Simon Binder
@simolus3
Nice, Dart 2.12 is out on stable
Randal L. Schwartz
@RandalSchwartz
just updated!
* 60bd88df91 (HEAD -> stable, tag: 2.0.0, origin/stable, origin/flutter-1.26-candidate.17, origin/beta) enable build test, roll engine, flag flip (#77154)
* 044f2cf560 (tag: 1.26.0-17.8.pre, beta) Update engine hash to 1.26.0-17.8.pre (#76720)
* 68e7d2e301 (tag: 1.26.0-17.7.pre) Update engine for 1.26.0-17.7.pre (#76637)
* a29104a69b (tag: 1.26.0-17.6.pre) [flutter_releases] Flutter Framework 1.26.0-17.6.pre Beta Cherrypicks (#75937)
* 1fe38dcb5f (tag: 1.26.0-17.5.pre) [flutter_releases] Flutter Framework 1.26.0-17.5.pre Beta Cherrypicks (#75804)
* 48c9d3e0e1 (tag: 1.26.0-17.4.pre) [flutter_releases] Update additional pub packages to stable for 1.26.0-17.4.pre (#75797)
* 7158702fac [flutter_releases] Roll pub for flutter-1.26-candidate.17 (#75733)
* 4b50ca7f7f (tag: 1.26.0-17.3.pre) Revert tool flag (#75475)
* 79b49b9e10 (tag: 1.26.0-17.2.pre) [flutter_releases] Flutter 1.26.0-17.2.pre Beta Framework Cherrypicks (#75303)
stable == beta at the moment.