Writing/ Pasting long lenghty text into TextField.

I am creating a note app using Flutter, and as we know we may need to write or paste a short/medium/long lengthy text and save them right ? Well TextField only works for me on short/medium lengthy notes while for long ones it just doesn't save it.
1- I should let you know that i am perfectly able to save/edit short/medium notes so the issue can't be related to database or controller.
2- In case of pasting a long text in textfield the textField Expands and show the whole note but when you hit the save button and automatically get to homescreen i see a blank note.
3- I am using sqflite for database in case you all need to know, and added a part of the code related to textfield below.
4- Btw i am able to paste the same long text in Google Keep so i don't see why i have such limitation in my Flutter app.
5- Tried setting maxLines to null and that didn't help as well.
6- I am using Flutter 1.22.0 Stable
import 'package:flutter/material.dart';

class NoteContentState extends State<NoteContent> {

  DatabaseHandler handler = DatabaseHandler();

  TextEditingController noteController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: EdgeInsets.only(top: 15.0, bottom: 15.0),
        child: TextField(
          controller: noteController,
          onChanged: (text) {
            update();
          },
          decoration: InputDecoration(
              labelText: 'Note',
              border: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(5.0)
              )
          ),
        ),
      ),
    );
  }
}

@farovitus
try this way
TextField(
          maxLines: null,
          expands: true,
          keyboardType: TextInputType.multiline,
        ),

Hi @farovitus
Does the code in https://github.com/flutter/flutter/issues/67841#issuecomment-706618656 fixes your issue?

Hi there, i will get back home tomorrow from my trip. Will check it out and reply asap in the meantime if anyone can try it that would be fine too

Unfortunately it doesn't work @iapicca @pedromassangocode
Down below you can find flutter doctor -v output and a github project (not mine) that does not use a database so that we are sure it's not a limitation from database along with a random text to copy and paste it into your TextField as an example
Also about actual vs expected results?
Well we simply needs TextField to be flexible enough to handle a long text in case we're writing or pasting something into it. As i said in my original issue in here, you can type or paste as you want into TextField there's no issue in here but when you try and save it it will get lost as if you didn't enter any data into it.
You can use this project as example https://github.com/boriszv/Programming-Addict-Code-Examples/tree/master/9.%20Flutter%20SQLite/Flutter%20SQLite%20-%20Part%202
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on macOS 11.0 20A5384c, locale en-LB)
    • Flutter version 1.22.1 at /Users/joesokhen/Documents/flutter
    • Framework revision f30b7f4db9 (4 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

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

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

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

[✓] Connected device (1 available)
    • Pixel 2 XL (mobile) • 710KPLC0331384 • android-arm64 • Android 11 (API 30)

• No issues found!

Down below you can find a random text that i can't save with my app:
To sure calm much most long me mean. Able rent long in do we. Uncommonly no it announcing melancholy an in. Mirth learn it he given. Secure shy favour length all twenty denote. He felicity no an at packages answered opinions juvenile.
Effect if in up no depend seemed.  We me rent been part what. An concluded sportsman offending so provision mr education. Bed uncommonly his discovered for estimating far. Equally he minutes my hastily. Up hung mr we give rest half. Painful so he an comfort is manners.
Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at.
Had strictly mrs handsome mistaken cheerful. We it so if resolution invitation remarkably unpleasant conviction. As into ye then form. To easy five less if rose were. Now set offended own out required entirely. Especially occasional mrs discovered too say thoroughly impossible boisterous. My head when real no he high rich at with. After so power of young as. Bore year does has get long fat cold saw neat. Put boy carried chiefly shy general.
Oh to talking improve produce in limited offices fifteen an. Wicket branch to answer do we. Place are decay men hours tiled. If or of ye throwing friendly required. Marianne interest in exertion as. Offering my branched confined oh dashwood.
Of be talent me answer do relied. Mistress in on so laughing throwing endeavor occasion welcomed. Gravity sir brandon calling can. No years do widow house delay stand. Prospect six kindness use steepest new ask. High gone kind calm call as ever is. Introduced melancholy estimating motionless on up as do. Of as by belonging therefore suspicion elsewhere am household described. Domestic suitable bachelor for landlord fat.
Civility vicinity graceful is it at. Improve up at to on mention perhaps raising. Way building not get formerly her peculiar. Up uncommonly prosperous sentiments simplicity acceptance to so. Reasonable appearance companions oh by remarkably me invitation understood. Pursuit elderly ask perhaps all.
Arrival entered an if drawing request. How daughters not promotion few knowledge contented. Yet winter law behind number stairs garret excuse. Minuter we natural conduct gravity if pointed oh no. Am immediate unwilling of attempted admitting disposing it. Handsome opinions on am at it ladyship.
Resolution possession discovered surrounded advantages has but few add. Yet walls times spoil put. Be it reserved contempt rendered smallest. Studied to passage it mention calling believe an. Get ten horrible remember pleasure two vicinity. Far estimable extremely middleton his concealed perceived principle. Any nay pleasure entrance prepared her.
 Possible procured her trifling laughter thoughts property she met way. Companions shy had solicitude favourable own. Which could saw guest man now heard but. Lasted my coming uneasy marked so should. Gravity letters it amongst herself dearest an windows by. Wooded ladies she basket season age her uneasy saw. Discourse unwilling am no described dejection incommode no listening of. Before nature his parish boy.

@farovitus
with the following steps

copy-pasting the code below on dartpad
select all the text ctrl+a and ctrl+v (repetedly)
rebuild the widget pressing the save button

the text seems to persist and being displayed correctly,
what behavior is undesired?
are you reporting a bug or a feature request?

code sample
import 'package:flutter/material.dart';

const _string = '''
To sure calm much most long me mean. Able rent long in do we. Uncommonly no it announcing melancholy an in. Mirth learn it he given. Secure shy favour length all twenty denote. He felicity no an at packages answered opinions juvenile.

Effect if in up no depend seemed.  We me rent been part what. An concluded sportsman offending so provision mr education. Bed uncommonly his discovered for estimating far. Equally he minutes my hastily. Up hung mr we give rest half. Painful so he an comfort is manners.

Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at.

Had strictly mrs handsome mistaken cheerful. We it so if resolution invitation remarkably unpleasant conviction. As into ye then form. To easy five less if rose were. Now set offended own out required entirely. Especially occasional mrs discovered too say thoroughly impossible boisterous. My head when real no he high rich at with. After so power of young as. Bore year does has get long fat cold saw neat. Put boy carried chiefly shy general.

Oh to talking improve produce in limited offices fifteen an. Wicket branch to answer do we. Place are decay men hours tiled. If or of ye throwing friendly required. Marianne interest in exertion as. Offering my branched confined oh dashwood.

Of be talent me answer do relied. Mistress in on so laughing throwing endeavor occasion welcomed. Gravity sir brandon calling can. No years do widow house delay stand. Prospect six kindness use steepest new ask. High gone kind calm call as ever is. Introduced melancholy estimating motionless on up as do. Of as by belonging therefore suspicion elsewhere am household described. Domestic suitable bachelor for landlord fat.

Civility vicinity graceful is it at. Improve up at to on mention perhaps raising. Way building not get formerly her peculiar. Up uncommonly prosperous sentiments simplicity acceptance to so. Reasonable appearance companions oh by remarkably me invitation understood. Pursuit elderly ask perhaps all.

Arrival entered an if drawing request. How daughters not promotion few knowledge contented. Yet winter law behind number stairs garret excuse. Minuter we natural conduct gravity if pointed oh no. Am immediate unwilling of attempted admitting disposing it. Handsome opinions on am at it ladyship.

Resolution possession discovered surrounded advantages has but few add. Yet walls times spoil put. Be it reserved contempt rendered smallest. Studied to passage it mention calling believe an. Get ten horrible remember pleasure two vicinity. Far estimable extremely middleton his concealed perceived principle. Any nay pleasure entrance prepared her.

 Possible procured her trifling laughter thoughts property she met way. Companions shy had solicitude favourable own. Which could saw guest man now heard but. Lasted my coming uneasy marked so should. Gravity letters it amongst herself dearest an windows by. Wooded ladies she basket season age her uneasy saw. Discourse unwilling am no described dejection incommode no listening of. Before nature his parish boy.
''';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  const MyApp() : super(key: const Key('MyApp'));

  @override
  Widget build(BuildContext context) => const MaterialApp(home: MyHomePage());
}

class MyHomePage extends StatefulWidget {
  const MyHomePage() : super(key: const Key('MyHomePae'));

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  TextEditingController _controller;

  @override
  void initState() {
    super.initState();
    _controller = TextEditingController()..text = _string;
  }

  @override
  void dispose() {
    _controller?.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) => Scaffold(
        body: TextField(
          controller: _controller,
          maxLines: null,
          expands: true,
          keyboardType: TextInputType.multiline,
        ),
        floatingActionButton: FloatingActionButton(
          child: const Icon(Icons.save),
          onPressed: () {
            print(_controller.text);
            setState(() {});
          },
        ),
      );
}

Sir it might be a bug, also when you hardcode the long text it will show fine, but when a user try to manually type it it will not get saved

Hi @farovitus
Can you provide a minimal code sample? The link you provided does not seems to be a simple one for the issue you are reporting.

@pedromassangocode i am sorry but there is no such a thing as a minimal code, i explained the issue previously and I don't know if i can be more specific and clear about the issue.
It's a case where a user must enter long text in TextField and save it in his database (in our case it is a note app) but unfortunately it fails to save when it's a long text but it works just fine if it was short or medium text.
It may be easier for me if you can tell which part of my issue is not clear for you.
Thanks.

it is not clear to me that part where you are saving the text. Is the issue about saving the text into database?

@pedromassango i don't have any problem with my database because as i said previously with short/medium text i can save what i want but the issue happens when you are trying to save a long piece of text, i believe that the issue may be in TextField or controller
A user Type into TextField then controller pass it to database it that right ? Database is fully functional because it works perfectly when you don't type a lengthy text into them.

it is not clear to me that part where you are saving the text. Is the issue about saving the text into database?

@farovitus can you please answer this?

Yes could be.

Hi @farovitus
So looks like you are looking for assistance in your code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments by providing a minimal reproducible code sample that does not contains third-party plugin/packages and I will reopen it.
Thank you


docs(evpn): add sections to readme to have same look and feel

We do not have an implementation for pydpu only for godpu.

not exactly accurate.
indeed there is no implementation for pydpu
however, we do package and distribute protobufs with https://pypi.org/project/pydpu/
since python is different from golang and need to have package with generated protobufs
we also have examples if somebody wants to pick up and controbute full code for pydpu
https://github.com/opiproject/pydpu/blob/main/pydpu/evpn.py
that's why I think it still OK and useful to mention pydpu on this page


FORMS-16911 Prefill of static text with explicit data bindings

@review @vdua
DOD(Yes)

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

Can we add a test case where a user has not selected dataRef in the dialog. That should also be merged using name of the static text.

name bindings is not supported in af-core, do we have use-case of name bindings as well ?


ucontext usage update on macos 64 bits.

closes #2812

r? @Amanieu
(rust-highfive has picked a reviewer for you, use r? to override)

Thanks!
@bors r+

:pushpin: Commit 2d11246bb7eeffeeed62230a0ebb24a8353a0210 has been approved by JohnTitor

:hourglass: Testing commit 2d11246bb7eeffeeed62230a0ebb24a8353a0210 with merge 3e92470460538999c422f3ecdc1352f723e633fa...

:broken_heart: Test failed - checks-actions

crates.io failure @bors retry

:hourglass: Testing commit 2d11246bb7eeffeeed62230a0ebb24a8353a0210 with merge e534fd88e3b33f45937700b7f50ab02a34fffe2a...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing e534fd88e3b33f45937700b7f50ab02a34fffe2a to master...


Add "more actions" item to archive block individually

Subtask from https://github.com/dnadesign/silverstripe-elemental/issues/290

"Archive" option is in more actions menu
GraphQL mutation given the element ID deletes the current draft version of the element (we assume that deleting would be an OOB CRUD scaffolded mutation operation)
Apollo cache updates to update the state of the Element (ideally) or fallback to allowing the "read all blocks" query to re-run and reload all blocks

Done in #363


cannot build the code

hello there :wave:
i wanted to give the simulations from Making an N-Body Simulation a try, but i could not compile the code :cry:
hoping there is a solution for this :pray:
cheers!
repro

run either one of the following commands

cargo check

cargo build

cargo run --release

get the following error

error[E0432]: unresolved import `winit::platform::windows`
  --> /home/disc/a.stevan/.local/share/cargo/git/checkouts/quarkstrom-59b32b829dff6ef4/db52869/src/lib.rs:17:15
   |
17 |     platform::windows::EventLoopBuilderExtWindows,
   |               ^^^^^^^ could not find `windows` in `platform`

error[E0599]: no method named `with_any_thread` found for struct `EventLoopBuilder` in the current scope
   --> /home/disc/a.stevan/.local/share/cargo/git/checkouts/quarkstrom-59b32b829dff6ef4/db52869/src/lib.rs:510:50
    |
510 |         let event_loop = EventLoopBuilder::new().with_any_thread(true).build();
    |                                                  ^^^^^^^^^^^^^^^ method not found in `EventLoopBuilder<()>`
    |
    = help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
    |
1   + use winit::platform::wayland::EventLoopBuilderExtWayland;
    |
1   + use winit::platform::x11::EventLoopBuilderExtX11;
    |

so what i did is the following:

i forked the two repos: a-stevan/quarkstrom and a-stevan/n-body
i fixed OS-based imports in quarkstrom in the a-stevan:quarktrom:fix branch
i'm using this new dependency and fixed a call to ctx.draw_circle in the a-stevan:n-body:fix branch

hope that helps people play with these simulations :relieved:

Check it out, by moving the simulation onto a separate thread and putting the event loop onto the main thread, the platform-specific code can be dropped entirely:
https://github.com/DeadlockCode/quarkstrom/pull/1/commits/7f1d647aa2ce1a0756e9d0b1f43f2bfa6a8e0778
You could apply the same fix to the main function here and open a pull request.

ooooh, interesting, thanks @krakow10 :pray:

The root cause has been solved and the necessary changes have been applied here 7ddee5d which closes this issue.

thanks for the fix :pray:


InternalScrollViewType missing

Hi,
I have a problem using the library after upgrading react native to the new 0.60 version.
The library uses react native's InternalScrollViewType in the NestedScrollView.js
file, but it's missing in versions =>0.60.
I've tested exporting the ScrollView instead of TypedScrollView and it seems to work well.

+1

+1

+1

+1

+1

Working on this

Fixed at 9.0.0


[BUG] segment issue shown on delete; segment failure are not supposed to be user visible

C:\Users\gbraad>crc delete
Do you want to delete the OpenShift cluster? [y/N]: y
Deleted the OpenShift cluster
ERRO sending request - Post "https://api.segment.io/v1/batch": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
ERRO 1 messages dropped because they failed to be sent and the client was closed

Not clear why this gets triggered? is this expected that segment requests fail at this point? Did you do anything special to trigger this? Or does this always happen?


arma3-unix-launcher: init at 383-unstable-2024-07-05

Description of changes
A clean, intuitive Arma 3 + DayZ SA Launcher for GNU/Linux and MacOS.
homepage URL: https://github.com/muttleyxd/arma3-unix-launcher/
licenses: mit, unfree
platforms: linux, darwin
closes #319732
Things done

Built on platform(s)

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.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

[x] Fits CONTRIBUTING.md.

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

Move the default.nix and the patch files from pkgs/games/arma3-unix-launcher to pkgs/by-name/ar/arma3-unix-launcher, remove the change to all-packages.nix (This is the older methodology, and the newer one is what I'm suggesting) You'd also want to rename default.nix to package.nix.

Hmm. building after Moving everything as suggested errors out with
evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "wrapQtAppsHook" at /nix/store/97j69f0w2ld7bn5067q962b5z05mfj5a-source/pkgs/by-name/ar/arma3-unix-launcher/package.nix:15, did you mean "wrapGAppsHook"?'

I was using libsForQt5.callpackage before, I'm assuming that's the cause?

DayZ build is working now, but it looks like it replaces arma3 instead of being an additional executable that is compiled. Are there build flags or steps that can be taken so that DayZ & Arma are built together and not overlapping each other?

As far as I can tell, the way cmake is set up, it's build one or the other. I did just test and this seems to work fine ```nix
home.packages = [
pkgs.arma3-unix-launcher
(pkgs.arma3-unix-launcher.override { buildDayZLauncher = true; })
];
The executables are separate, `arma3-unix-launcher` and `dayz-linux-launcher`.

evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "wrapQtAppsHook" at /nix/store/97j69f0w2ld7bn5067q962b5z05mfj5a-source/pkgs/by-name/ar/arma3-unix-launcher/package.nix:15, did you mean "wrapGAppsHook"?'

Weird, shouldn't be doing that. Try building it with nix-build -E 'with import <nixpkgs> {}; qt5.callPackage ./package.nix { buildDayZLauncher = true; }'

  home.packages = [
    pkgs.arma3-unix-launcher
    (pkgs.arma3-unix-launcher.override { buildDayZLauncher = true; })
  ];

Interesting. I didn't think to include two instances of the package. My thought was (pkgs.arma3-unix-launcher.override { buildDayZLauncher = true; }) would do both. New nix knowledge unlocked.

nix-build -E 'with import  {}; qt5.callPackage ./package.nix { buildDayZLauncher = true; }'

That works fine. Is qt5.callPackage what packages in pkgs/by-name/ are called by, though?

Interesting. I didn't think to include two instances of the package. My thought was (pkgs.arma3-unix-launcher.override { buildDayZLauncher = true; }) would do both. New nix knowledge unlocked.

I think multiple instances of packages works fine as long as the executables don't overlap?

Ah, I figured it out. wrapQtAppsHook needs to be qt5.wrapQtAppsHook

That works fine. Is qt5.callPackage what packages in pkgs/by-name/ are called by, though?

Honestly, I really don't know how it works or if there's something special with Qt5 apps and packaging. https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/fo/fooyin/package.nix#L55 This is a Qt6 package and it looks like it's just using kdePackages
Your method will work for sure, but I always see PRs that place in by-name. Definitely need someone more knowledgeable than me to help out here.

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

1 package built:

arma3-unix-launcher

That works fine. Is qt5.callPackage what packages in pkgs/by-name/ are called by, though?

Honestly, I really don't know how it works or if there's something special with Qt5 apps and packaging.

Packages in by-name are always called with the top-level callPackage; the libsForQt5.callPackage is (IMO) fairly useless, as all it does is add the corresponding libsForQt5.wrapQtAppsHook (which we can just do ourselves instead).

Weird, shouldn't be doing that. Try building it with nix-build -E 'with import <nixpkgs> {}; qt5.callPackage ./package.nix { buildDayZLauncher = true; }'

Normally to do a proper test of a package in nixpkgs, we'd use nix-build -A attrname (or if you want to override it, something like nix-build -E '(import ./. {}).attrname.override { foo = "bar"; })

Version was updated as a few of my pull requests were merged upstream, one of which makes the dayz version build without requiring a patch.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/satisfaction-survey-from-the-new-rfc-166-formatting/49758/7


Update CHANGELOG.md

Fix: #274

Codecov Report

Merging #275 (617e5cb) into main (ea1e9f4) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 617e5cb differs from pull request most recent head 917f0ce. Consider uploading reports for the commit 917f0ce to get more accurate results

@@           Coverage Diff           @@
##             main     #275   +/-   ##
=======================================
  Coverage   77.19%   77.19%
=======================================
  Files          87       87
  Lines        3561     3561
  Branches      604      604
=======================================
  Hits         2749     2749
  Misses        812      812

Continue to review full report at Codecov.

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

@sudhirverma There already was one PR for changelog fix in #256, we should have updated that. But now i am closing that PR in favour of this one.


Update text: Work Transformation Site

Category

[x] Content fix
[ ] New article

What's in this Pull Request?
a) Updated text from "work transformation template" to "workplace transformation site template"

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@MattEEvans PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Write UI tests

Any progress?

I plan to start this next. Though I have started reading about how to start.


Model#toJSON returns an object with a toJSON method

Hi,
I am encountering an recursion error when using sails with socket.io redis while updating models. This seems to be related to msgpack sizeof, which tries to call the toJSON method of my model entities. It also does not make a difference if I use a custom or the builtin toJSON method.
Software versions:
OS: Windows 7 (64 bit)
node.js -> v0.12.0
sails: 0.11
socket.io-redis: 0.1.4
sails-mysql: 0.10.11
This is the output I get when trying to update via socket.io:
backend\node_modules\sails-mysql\node_modules\mysql\lib\protocol\Parser.js:82
        throw err;
              ^
RangeError: Maximum call stack size exceeded
    at Date.valueOf (native)
    at baseClone (backend\node_modules\sails\node_modules\waterline\node_modules\lodash\dist\lodash.js:765:29)
    at Function.cloneDeep (backend\node_modules\sails\node_modules\waterline\node_modules\lodash\dist\lodash.js:1799:14)
    at backend\node_modules\sails\node_modules\waterline\lib\waterline\model\lib\defaultMethods\toObject.js:114:26
    at Array.forEach (native)
    at toObject.addProperties (backend\node_modules\sails\node_modules\waterline\lib\waterline\model\lib\defaultMethods\toObject.js:112:27)
    at new module.exports (backend\node_modules\sails\node_modules\waterline\lib\waterline\model\lib\defaultMethods\toObject.js:34:8)
    at prototypeFns.toObject (backend\node_modules\sails\node_modules\waterline\lib\waterline\model\index.js:30:14)
    at prototypeFns.toJSON (backend\node_modules\sails\node_modules\waterline\lib\waterline\model\index.js:112:20)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:27)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)
    at sizeof (backend\node_modules\socket.io-redis\node_modules\msgpack-js\msgpack.js:466:14)

I digged a bit deeper and found:
// Part of msgpack.js that causes the error
if('function' === typeof value.toJSON) {
    return sizeof(value.toJSON())
}

From there, I was investigating the original toJSON method. It says:
  prototypeFns.toJSON = function() {
    var obj = this.toObject();

    if (protectedAttributes.length) {
      _.each(protectedAttributes, function(key) {
        delete obj[key];
      });
    }

    // Remove toJSON from the result, to prevent infinite recursion with
    // msgpack or other recursive object transformation tools.
    //
    // Causes issues if set to null and will error in Sails if we delete it because blueprints call it.
    //
    // obj.toJSON = null;

    return obj;
  };

So this seems to be a known issue. The question is, how do I get this fixed (best without modifying core files)? I could uncomment the obj.toJSON = null; line, but as the comment states, it may break things. Without socket.io redis support, it works great.
Thank you for your answers,
Christian

Update, seems to be related to #879, but I use it without relations...

Blueprints only uses it here (if at all??).
https://github.com/balderdashy/sails/blob/master/lib/hooks/blueprints/actions/update.js#L72
This does seem like an issue/bug that needs to be ironed-out.  It should be safe to assume that whatever obj.toJSON() returns does not have a toJSON method.
@weblogixx are you using blueprints in your sails project?  If not, I'd be very interested to see what issues arise by removing that method.

Yes, I do use blueprints.
I have a custom toJSON method that adds a custom field, but even commenting it out does not change anything.
The problem seems to be model#toObject. If I override this with static values in the model, the error does not appear. If I uncomment both toObject and toJSON in my model, the error is triggered in the original toObject method of the models.

So I have found the problem. The toJSON method is calling toObject, which exports an object that has a toJSON method. Therefore, a quick fix is:
        toJSON: function toJSON() {
            var obj = this.toObject();
            delete obj.password;
            obj.toJSON = null;
            return obj;
        }

This is seems not to be very friendly for developers and should at least be documented, even if the error is only encountered when using msgpack.

The community needs to figure out how we ought deal with this.  It seems clear to me that toJSON must always return an object that does not have a toJSON method.  @weblogixx do you mind if I rename this issue to deal with that root cause, or would you rather we close this and create a new issue?

I think you should rename it. There is at least one other person that has a similiar problem and I already set a backlink to this issue.
Also I think you are right, there should be no toJSON method when using model#toJSON. The problem (at least in my case) was that I was using an example from the webpage and the internals of sails are new to me (I thought it would strip it out).
I also think many other people that develop locally and want to use redis for communication sharing will run in this issue. If it cannot be fixed, it should at least be stated in the docs.

Can someone succinctly re-state the issue? The actual problem is becoming muddled for me.
I'm using toJSON with great success, e.g.
https://github.com/tjwebb/sails-auth/blob/master/api/models/User.js#L29-L35. It would help me out if someone can show how my use case is different.

@tjwebb The problem occurs when using stuff like socket.io-redis, which internally uses msgpack. If you are using toJSON the way you do it, then it will export the original model#toObject minus the password. This seems to be fine. However, in this object you also export the toJSON method, which leads to recursion errors (the Object will always infinitly call model#toJSON because this exports its own toJSON method).

Ok I think it's confusing that this issue is being discussed as if it affects all adapters. What is special about msgpack that causes it to break?

This issue is that the object that Model#toJSON returns iself has a toJSON method.  This is unnecessary and causes issues with msgpack here, where their sizeof function recursively calls toJSON, causing an infinite loop: https://github.com/creationix/msgpack-js/blob/master/msgpack.js#L464-L466 .

Hi tj,
it is stated in my first post. In messagePack you have this little code snippet so the library can recursively create its own json representation:
I digged a bit deeper and found:
// Part of msgpack.js that causes the error
if('function' === typeof value.toJSON) {
    return sizeof(value.toJSON())
}

When using the socket.io support with socket.io-redis, the library will try to use the msgpacked version of your object.

If toObject returns an object with methods, and toJSON docs says we should call toObject, there's no way to solve this problem in general without altering the API. Which is ok, but the bugfix for this likely won't make it in a patch release.

From my point of view this is completely understandable. However it should be clearly stated in the documentation that the "regular" approach is not working seamlessly currently when using third party libraries.
Would it be an option to include a hotfix in sails-hook-sockets? The toJSON method could at least be stripped out there before tje redis connect.

Seems like there are at least two options to fix the root of the issue, and it sounds like the suggestion in waterline docs is wrong.  I think we should be able to fix this in a patch release with a little bit of creativity.
Either,

Alter toObject to not include functions.  I don't know if pieces of code in waterline depend on this, and I don't know if it's considered to be a part of the API.
Wrap Model#toJSON to ensure it does not include a toJSON method.  Or allow the model definition to call a "parent" toJSON method which behaves appropriately.
Similarly to number 2, In the docs insist on using a new model method, i.e. Model#toPlainObject which does not include any methods itself.

I think the cleanest way that I see without breaking compatibility would be option number two. toJSON would then behave like it is expected to work: Just an object representation without the attributes.
Personally I think #3 should not be an option (except for a small fix) as it would add unneeded complexity when leRning the framework. However, other people that know the internals should be asked.

So I have found the problem. The toJSON method is calling toObject, which exports an object that has a toJSON method.

Indeed... why would toObject do that... very unexpected.
@devinivy I vote for option 1, and devote 2 and 3. After calling toObject and then doing some decorations to the returned object, res.ok(obj) simply calls again toObject and apply some rules that undo some stuff that was done... after a complete day of tracing this out had to simply do obj.toJSON = undefined
One would expect that after a call had been made to toObject.. waterline is out of the way and we're free to do whatever we want on the returned object... so definitely waterline functions should be stripped out. Hope this doesn't break other code... if so maybe pass an argument to toObject.

@anasyb I think that toObject should indeed have a toJSON method, as every object and primitive has one.You could, for example, never transfer a waterline model as inline JSON in a view because you just could not parse it to JSON.
toJSON should just export the current items representation without functions. In our models, we could call something like parent.toJSON to get the original json object and alter it the way we need to. One problem I see with this approach is that you could NOT call the original models functions from it.
Another possibility would be something like an model based afterJSON event that automatically strips the models methods from the object you are returning. I think that this would also violate the way toJSON is expected to work.
Any other opinions?

good thoughts @weblogixx...

I am in total agreement that a toObject() and toJSON() should be included on the raw record sent to the callback.
in my opinion once you convert that record to an object using toObject, waterline is out of business.. almost all other methods are stripped out by that call. I think waterline's toObject and toJSON should likewise be stripped out. You have to keep in mind that waterlines toObject is assuming that its operating on a record... not on the kind of object returned by toObject() itself. To illustrate this:

  User.findOne('xx').populateAll().exec(function(err, r) {
    console.log(r.toObject());//does not strip out populated 1-N associations like r.post
    console.log(r.toObject().toObject());//1-N associations are stripped out!!
  })

Mind you also that calling toJSON() on an object returned by toObject() results in that double calls effect behind the scenes. So definitely waterline's toObject() MUST be stripped out.

Now whether to include other toObject and toJSON of some sorts... that could be a possibility. But in my opinion, JS native stringification is enough and is what one expects to have (again I am not talking about the raw record, am talking about the obj returned by toObject).

@devinivy I am totally new to waterline's codebase... but after a quick check it doesn't seem there are places where waterline is expecting a toObject on the obj returned by toObject?

In case am wrong... then you really need to check my comment above... in more than location toObject is clearly assuming its working on a full fledge raw record not on the results returned by itself.
In case am correct.. then maybe just let toObject() swap itself with another toObject just before returning. (I don't know if you can make sense out of that sentence!)

@anasyb the created object inherits the prototype of the original model (so it has toObject itself), and I'm not completely sure if that's necessary either: https://github.com/balderdashy/waterline/blob/master/lib/waterline/model/lib/defaultMethods/toObject.js#L31
I agree that there's probably some cleaning-up to do there.

exactly! It is inheriting the proto, and what am saying is that this should not be the case for two reasons:

the object returned by toObject is no longer an instance of the model... its something else with different structure
the functions in the proto that's being inherited are not designed to be called on such an object, they are designed to be called on a proper instance of the model. The example above r.toObject().toObject() illustrates exactly this

See the confusion this led in https://github.com/balderdashy/waterline/issues/317#issuecomment-88403284 just as we were discussing this issue over here!

@weblogixx, @anasyb, #969 has been merged to master, can you check if it fixes your issues?

Closing since this is allegedly fixed in master and the topic has become quiet!  Anyone feel free to reopen if deemed necessary.

Do you guys know what is the problem here? I think it's related to this issue.
I think that the methods are not deleted, in some circumstances. Please note that I am calling toObject on a model instance that it isn't populated at all. It's just retrieved from the database and called toJSON on the model. it seems that the methods are not removed at all.
/**
 * Filter Functions
 *
 * @api private
 */

toObject.prototype.filterFunctions = function() {
  for(var key in this.object) {
    if(typeof this.object[key] === 'function') {
      this.object[key] = undefined;
      delete this.object[key];
      if (this.object.id === "c9d960d5-15b1-448c-b7ec-52b3b35032d7") {
        if(key === "toJSON") {
          console.log(Object.getOwnPropertyDescriptor(this.object[key])); //output: undefined
          console.log(key, this.object[key]); //output: toJSON function() ...
        }
        // this.object[key] = undefined;
      }
    }
  }

If I decomment the line with this.object[key] = undefined, it will work. I mean, the keys will still be there but undefined.
Any insights on this?

Ok, so I checked once again and I modified the code to get more insights (still using console.log).
Code...
/**
 * Filter Functions
 *
 * @api private
 */

toObject.prototype.filterFunctions = function () {
  if (this.object.id === "c9d960d5-15b1-448c-b7ec-52b3b35032d7") {
    console.log(Object.getOwnPropertyNames(this.object));
    console.log(this.object.inspect);
  }
  for (var key in this.object) {
    if (typeof this.object[key] === 'function') {
      if (this.object.id === "c9d960d5-15b1-448c-b7ec-52b3b35032d7") {
        if (key === "toJSON") {
          console.log(Object.getOwnPropertyDescriptor(this.object[key]));
          console.log(Object.hasOwnProperty(this.object, key));
        }
      }
      delete this.object[key];
      if (this.object.id === "c9d960d5-15b1-448c-b7ec-52b3b35032d7") {
        if (key === "toJSON") {
          console.log(key, this.object[key]);
          console.log(Object.hasOwnProperty(this.object, key));
        }
      }
    }
  }
};

And text output...
[ 'createdAt', 'inspect', 'owner', 'id', 'ownerType', 'updatedAt' ]
[Function]
undefined
false
toJSON function () {
    var obj = this.toObject();

    if (protectedAttributes.length) {
      _.each(protectedAttributes, function(key) {
        delete obj[key];
      });
    }

    // Remove toJSON from the result, to prevent infinite recursion with
    // msgpack or other recursive object transformation tools.
    //
    // Causes issues if set to null and will error in Sails if we delete it because blueprints call it.
    //
    // obj.toJSON = null;

    return obj;
  }
false

Second output (this time caused by res.json or JSON.stringify, which are the same)...
[ 'createdAt', 'owner', 'id', 'ownerType', 'updatedAt' ]
undefined
undefined
false
toJSON function () {
    var obj = this.toObject();

    if (protectedAttributes.length) {
      _.each(protectedAttributes, function(key) {
        delete obj[key];
      });
    }

    // Remove toJSON from the result, to prevent infinite recursion with
    // msgpack or other recursive object transformation tools.
    //
    // Causes issues if set to null and will error in Sails if we delete it because blueprints call it.
    //
    // obj.toJSON = null;

    return obj;
  }
false

You can see that the inspect method is removed successfully, whereas toJSON method is not removed. After calling the toJSON method, I am populating it with other attributes, which are removed when sent to browser (this is an older issue, #317, which had as solution to convert the model instances to plain objects and "operate" on them).
This, unfortunately doesn't happen all the time, as for other models, this works without problems. The only difference between this model and the others (the good models), is that this model has some "one to many" defined properties.
Sorry for the long comment.


dangling parent reference in unit tests

Failure seen in https://github.com/MinaProtocol/mina/pull/12491
and when adding tests from test_zkapp_update.ml to account_timing tests in transaction snarrk

Adding the test suggested here also triggers the same bug. TODO: add this test when the bug is fixed.


Behavior of PshedRegisterPlugin changes when using WDK 10.0.18362.1 or later

The Parameters section of PshedRegisterPlugin has the following description.

Packet
[in, out] A pointer to an initialized WHEA_PSHED_PLUGIN_REGISTRATION_PACKET structure that describes the PSHED plug-in's registration information.

However, WHEA_PSHED_PLUGIN_REGISTRATION_PACKET is defined as WHEA_PSHED_PLUGIN_REGISTRATION_PACKET_V2 starting with WDK 10 version 18362 (10.0.18362.1), and the conditions of PshedRegisterPlugin changes when the V2 packet is used. Specifically, V2 packets are not expected to register Error Source Discovery callbacks that are exemplified in the document Participating in Error Source Discovery.
Adding the likes of the following passage to the Remarks section would help developers understand the implied changes:

When supplying the API with WHEA_PSHED_PLUGIN_REGISTRATION_PACKET_V2 in the Packet parameter, do not register Error Source Discovery callbacks in the packet information.  Doing so will cause the API to return with STATUS_INVALID_PARAMETER.  If supplying Error Source Discovery callbacks is necessary, please use the WHEA_PSHED_PLUGIN_REGISTRATION_PACKET_V1 structure for the Packet parameter.

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

ID: 6231dadb-57d4-b147-1a6a-6b57a387428c
Version Independent ID: f892f60a-4900-f84d-3411-496298541566
Content: PshedRegisterPlugin function (ntddk.h) - Windows drivers
Content Source: wdk-ddi-src/content/ntddk/nf-ntddk-pshedregisterplugin.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @tedhudek
Microsoft Alias: tedhudek

Thanks for raising the issue @jesweare


[WIP] Migrate to hyper 0.12

I've migrated most part of the crate to hyper 0.12, but it DOES NOT WORK right now.
Here are the reasons:

I used .wait() to get the body of the request due to my lack of experience with futures & the original author seems didn't consider much about async stuff, it's hard for me to construct a future chain here.
While the Service trait has successfully implemented to Hub, I met some problem implementing NewService trait since Hook is a trait.

NewService requires to construct a new instance with Service trait, but in this crate, the hooks filed inside Hub contains a trait object, so Clone does not work (I tried to implement it but failed).
After splitting some parts of Hub into Worker to let me borrow hooks without the need to clone it, I met the limitation of the current Rust compiler. GAT is required to do this but it has not stabilized yet.

Code inside this PR is after the split of Hub and Worker, as you can see, it cannot pass compiler's check and results in E0207: unconstrained lifetime parameter.
I asked some people about these problems, they suggest me to consider about re-design the structure of this crate. Also considering about the ugly usage of futures, I think it may be a better idea for us to re-implement this crate at some time, it may not be worthy to migrate these old code with new dependencies.
So what do you think?

I tried to migrate it to hyper 0.12 again, now it can compile but does not work since wait() blocked the event loop and it never receives the full request body so it hangs forever.
After some searching, I find that there is no clean way to solve this other than make it fully asynchronous. I created another library called rifling some while ago and it is working. I'm lazy to write the same code again so I think... this is it.

Advertisement time:
My replacement: https://github.com/RedL0tus/rifling
Command line tool: https://github.com/RedL0tus/trigger

Thanks for sharing! I'll check it out and would love to have a replacement for afterparty.


docs(applications): explain how to add user ssh key

replacing #295, all recommendations are done

ping @arschles

would you mind squashing your two commits into one, please?

Now there's 4 commits. ;) The easiest way to squash commits is to use git rebase -i master and mark all except the original commit as a fixup. This will cause all the commits to merge into the first commit.

OMG what I have done :)

ah, still getting issues there, will close this and will do the new clean one


elementary os (ubuntu) problem

help please . i cant use ,write this error.
i use Elementary OS freya ( Ubuntu 14.04 )
/fbht# ./main.py
from: can't read /var/mail/mainFunc
from: can't read /var/mail/database
from: can't read /var/mail/time
from: can't read /var/mail/handlers
from: can't read /var/mail/sys
./main.py: line 9: globalLogin: command not found
./main.py: line 10: globalEmail: command not found
./main.py: line 11: globalPassword: command not found
./main.py: line 13: privacy: command not found
./main.py: line 14: privacySet: command not found
./main.py: line 16: syntax error near unexpected token (' ./main.py: line 16: def main():'

Can you tell me what python version are you using?
Also you should add this line #!/usr/bin/python at the begining of the main.py file

Hi Nicolas, I have a problem when I want create users test, I was using python version 2.7.6.
Problem:
Insert the amount of accounts for creation (4 min): 4
Error in json dump or parser.feed
Thanks

Your Facebook language configuration must be in english :D probably that's the problem!
The Like injection module isn't working anymore :S sorry about that!
Let me know if the language solved your problem!


Add prometheus stats to tele package

This one is going to be simultaneously straight-forwarded to implement and tricky to keep consistent with the internal stats metadata.

Not yet, due to the fact that I want collectors to be inherently hard to scrape (that is to say, always coming up and going down as needs dictate).


save data and metadata to disk to photos when use usesGeolocation is enabled

save data and metadata to disk to photos when use usesGeolocation is enabled
i  fix the bug

@nourshamrok, there are some changes landed to master, so this is not mergeable anymore. Could you please update/rebase this PR.
Also please file an Apache CLA, as described in CONTRIBUTING.md

Ping, @nourshamrok


Wrong link address

Describe the issue:
Link address error, there are redundant symbols )：

Suggestion:
Remove ) in the link address.
@hemarina for notification.

thanks @v-jiaodi , will update the content in https://github.com/spring-guides/gs-spring-boot-for-azure/pull/24

hi @v-jiaodi , now that pr #24 has been merged, could you double check and see if this issue can be closed? thanks


Removed unused variables and renamed global variables

The pull request is a code change that removes unused variables and renames global variables. The changes are made in five files, and the diff shows that 34 lines are added, and 14 lines are deleted. The changes include updating the version number in the Chart.yaml file, removing unused variables, and renaming global variables in the templates. The changes also include defining new helpers in the _helpers.tpl file. The pull request seems to be a minor change that improves the code quality.

The pull request is a code change that removes unused variables and renames global variables. The changes are made in five files, and the diff shows that 34 lines are added, and 14 lines are deleted. The changes include updating the version number in the Chart.yaml file, removing unused variables, and renaming global variables in the templates. The changes also include defining new helpers in the _helpers.tpl file. The pull request seems to be a minor change that improves the code quality.

The pull request contains changes to remove unused variables and rename global variables in the applicationset charts. The changes include modifications to the Chart.yaml, _helpers.tpl, and templates files. The version of the chart has been updated to 0.8.23, and the changes have been documented in the artifacthub.io/changes annotation. The diff shows 34 insertions and 14 deletions. The changes have been made by Said Sef and the pull request seems to be ready for review.

The pull request contains changes to remove unused variables and rename global variables in the applicationset charts. The changes include modifications to the Chart.yaml, _helpers.tpl, and templates files. The version of the chart has been updated to 0.8.23, and the changes have been documented in the artifacthub.io/changes annotation. The diff shows 34 insertions and 14 deletions. The changes have been made by Said Sef and the pull request seems to be ready for review.

The pull request contains changes to remove unused variables and rename global variables in the applicationset charts. The changes include modifications to the Chart.yaml, _helpers.tpl, and templates files. The version of the chart has been updated to 0.8.23, and the changes have been documented in the artifacthub.io/changes annotation. The changes also include the addition of new functions to the _helpers.tpl file, such as "chart.refresh," "chart.retryBackoffDuration," "chart.namespace," "chart.notificationChannel," and "chart.server." Overall, the changes seem to be well-documented and useful for improving the codebase.

The pull request contains changes to remove unused variables and rename global variables in the applicationset charts. The changes include modifications to the Chart.yaml, _helpers.tpl, and templates files. The version of the chart has been updated to 0.8.23, and the changes have been documented in the annotations. The diff shows 34 insertions and 14 deletions. The changes seem to be well-organized and follow best practices. Overall, the pull request looks good and can be merged.

The pull request contains changes to remove unused variables and rename global variables in the applicationset charts. The changes include modifications to the Chart.yaml, _helpers.tpl, and templates files. The version of the chart has been updated to 0.8.23, and the changes have been documented in the artifacthub.io/changes annotation. The diff shows 34 insertions and 14 deletions. The changes have been made by Said Sef and the pull request seems to be ready for review.


Adds two implementations of the Mandelbrot benchmark

One that forks off workers and the other that uses multicore's domains. This will let us compare the two approaches to parallelism.
It's worth pointing out that mandelbrot is an embarrassingly parallel problem with no shared state and where the bulk of the time is spent iterating so the potential gains here from multicore are minimal.

This is a good benchmark though, since at a large number of cores there should still be linear speedup on both backends (assuming sufficient physical core availability)


Bug: Space missing between 30 and the word days in the  component

Describe the bug
The  component is missing a space between the number 30 and the word days.

It should have a space between 30 and days

        <div className={clsx(classNames.cols.contributors, "hidden lg:flex justify-center")}>
-          <TableTitle>Last 30Days</TableTitle>
+          <TableTitle>Last 30 Days</TableTitle>
        </div>

https://github.com/open-sauced/app/blob/3f427998193db03eb59b79b04d361e504db6093d/components/molecules/ContributorListTableHeader/contributor-list-table-header.tsx#L62-L64
Steps to reproduce

Ensure your're logged into the app.
Navigate to http://localhost:3000/hub/lists/new
Notice the space missing in the header.

Browsers
No response
Additional context (Is this in dev or production?)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

bruh

.take

@punyamsingh, it's labeled good first issue to help onboard new contributors to the repo. @punyamsingh is this a first issue for you? If not, please unassign yourself and let someone new to open source take on the issue. We're all here to build a positive open source ecosystem, so it's important to make opportunities for people at all levels :wink:

alright alright, it's not my first actually.
I'll unassign.
but I don't think that counts as an issue.
it's not even related to programming fr

@punyamsingh everybody starts somewhere, and we're here to encourage and uplift contributors to start and grow. If this isn't a good issue for you, you can pass by and check out the other 120 issues to see if there's one that's good for your skill level.

I would like to contribute can you please assign it  to me?
This would be my first contribution as I am just getting started with Open Source.
Thanks in advance.


Video Uploaded Succesfully but nothing post in my instagram !!

after installed Linux Ubuntu 20 GUI & access desktop via vmware esxi on my server & run bot all the steps complete but nothing post .
 *****
***** UPLOAD COMPLETE *****
***** Video Uploaded Succesfully *****

waiting for your help bro
finest regards

I've been experiencing this at the moment also. I know the reason and will look at fixing it soon.
I'm prioritising development of likes/comments before bug fixes at the moment. Once I've wrapped up this, I'll do a round of bug fixes.

I'm so interested to see this useful program work fine in linux .
please make changes to infinite video post with sleep time between one to another one .
please do it soonest time you can .. .
finest regards

@elmirarokni
I'm getting closer with the new features that I've been developing.
Automatic Content Posting alone isn't very good for organic instagram page growth.
The new branch will include the following additional features:

Automatic Account Creation
Generate an account based on user data (give username, account genre, hashtags, bio etc...)
Auto Follow Relevant Pages
The Bot will now follow pages that are similar/relevant to your account. This rapidly increases the number of followers gained and the growth. Testing revealed I could gain 84 followers an hour.
Auto Comment/Like Posts
The bot will now add comments (that you can set) to posts that are relevant. This also increases account growth and engagement with other users.
Full Automation/Management of Multiple Accounts
The bot is now capable of running tasks on multiple accounts, each with unique actions and topics. So you can manage all of your accounts with a single json file.

As you can imagine, some of these features take quite a while to develop and the groundwork is done for most of them.
I am at the stage of cleaning up the new features and testing. Everything is mostly implemented now and can be seen on the account creation branch.
I will look into this issue whilst I am working on these new features, but the fix likely won't be merged into Master until the new branch is ready.

@elmirarokni
I've now merged the new changes into the Main Branch.
Please take some time to understand the new workflow.
I believe the failed to upload error is related to network speed - I am unable to test properly locally, but this is my next priority.
I will be focusing on cleaning up, adding more logs - more error checks to the project in the coming days.


Link checker fails on a matching substring

The checker accepts links with a matching substring
We've been doing some markdown migration (moving files around). Doing this I made a (pretty bad) script for helping me change up the paths, and fix the links automatically. At some point the script spit out this:
[foobar](../../../03.Devices/chapter.md/yocto-project/bootloader-support)

This was not caught by the internal link checker (this tool), and only by our dead-link checker on the site, once it was live.
I know it is a weird case, but I'd still consider this a bug.
Your environment

OS: Ubuntu:18.04
Packages: remark-validate-links, master
Env: node v10.21.0

Steps to reproduce
[foobar](../thisdir/docs.md/foo/bar/baz)

`remark -u validate-links test.md
Expected behaviour
Expected the tool to fail, as this is not a valid link.
Report it as a broken link as usual
Actual behaviour
Passes due to the substring being valid (points to itself).

Can you reduce the test case a bit more? From the path, I’m guessing that it has to do with docs.md being seen as a file, instead of a directory. Can you clarify which folders and files exist in that path?

Is this better?
➜ scratchpad ls testfoo
test.md
➜ scratchpad cat testfoo/test.md

[foo](../testfoo/test.md/foo/bar/baz)

Then I run the checker on this file, and it does not fail.

So this problem occurs when the current file is “entered” as a directory, with more directories and finally a file?

So this problem occurs when the current file is “entered” as a directory, with more non-existent things after?

Yes :)

Also, it seems to have some problems with numbers in headers:
107:1-107:60  warning  Link to unknown heading: `step-1-create-a-deployment`. Did you mean `step-1---create-a-deployment`  missing-heading  remark-validate-links

But one thing at a time maybe?

Thanks, should for the report. I believe it’s fixed in 10.0.1!

Hi @wooorm Thank you so much for the fix :)
But could you add a prefix to the case also? I'll comment on the PR actually


add a timeout of 10minutes

Signed-off-by: Boon Han<EMAIL_ADDRESS>Add a timeout of 10 minutes to the example-deployment deploy script. The default value is 30 seconds, which is not always sufficient for keycloak to launch.

changed timeout from 10m to 2m


how to use in windows?

Hi,
would you please tell me how I should use this files on windows 10?

Sure, you should download the amd64 binary from https://github.com/atilaromero/telegram-desktop-decrypt/releases
This solves your problem?


⚠ Secret Website 3 has degraded performance

In 70fa966, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2279 ms

Resolved: Secret Website 3 performance has improved in c336d83.


Support input/output lists.

#21 was an initial PR that tried to add support for input/output lists. However, there are some issues:

When the result type is an array, the generation script should not generate Tensor(handle: ...) calls, but ret.map { Tensor(handle: $0) } instead.
Heterogeneous input/output lists need more support. They should probably be filtered initially.

cc @eaplatanios @pschuh @dan-zheng

@pschuh, can you elaborate the issues and propose a solution?

Here are some problems:

The mentioned ret.map { ... } problem.
#tfop can only currently return TensorGroup if I recall correctly.
Some tensorflow ops can return (and take) arrays heterogeneous in type.
The common pattern ([AnyTensor], [Dtype], ...) -> (...) and ([DType], ...) -> ([AnyTensor]) Do not seem to be supported properly at all. (See saveV2 for reference).
I haven't verified, but the length of the resulting type is sometimes determined by input parameters, but must also be completely determined by the size of the output. This correspondence is not currently captured anywhere (except a hard-coded thing in IRGen for certain special ops).

My a proposed solution is to merge: https://github.com/pschuh/swift-bindings/tree/3. This will make it easier to generate the right code here. We will need to analyze the incoming proto and generate the result-length + if it is co-varying. (analyzing fields like: type_list_attr: "dtypes"). @bgogul would know more about the status of this proposed solution.

Given that there is no GPE now, isn't the solution implemented in https://github.com/pschuh/swift-bindings/tree/3 too inefficient? For example, adding two scalar tensors involves multiple dynamic library calls.

In TF Scala, I was able to extract all relevant information statically, for supporting input and output tensor arrays so I cannot see why we cannot do it here. Regarding heterogeneous arrays, I believe this should be handled by allowing something like Tensor<_> or Tensor<TensorFlowScalar>, although I'm not sure if this can be done in Swift, currently.

How do you think it could be more efficient? The calls I have there are the same calls that eager op dispatch compiles to when the tfops make it to IRGen to get lowered.

Yes sorry. For eager mode I guess there is no more efficient way. Is there something preventing merging that solution currently?

We currently still have GPE code executing in unit-tests that requires these to be #tfops. I think we're several weeks out from completely sorting that out. We want to maintain machinery so that we can GPE functions.
Is there a particular op that would let you be unblocked for: https://github.com/tensorflow/swift-apis/pull/70 ? I could work on special case generating a raw op for that that only works in eager mode.

One question would be, what does it take to support array-valued op inputs and outputs in #tfop? Given that I support them in TF Scala, which uses graph mode, I suppose we should also be able to support them here, without sacrificing GPE support for now.

Inputs can already be any array that conforms to TensorArrayProtocol. Outputs are trickier like @pschuh described.
What use case is blocked by this currently?

One example is the Split and the SplitV ops that are required for the VJP of concatenated when used with more than just two tensors.

It’s reasonable to add ops that take homogeneous lists. Returning variable-length output lists may be problematic. IIRC, eager execution required an output count?

In Scala, I was passing the count when constructing the ops in the graph, for graph mode, and just passing it directly for eager mode. So, the split ops for example, take the number of splits as an input attribute, if I remember correctly.

@rxwei @pschuh Is there something we can do to support the SplitV2 op for now? It is needed for defining gradients of the concatenation op.

Perhaps this: https://github.com/apple/swift/pull/24096 ?

Nice!

This is great! Thanks Parker! Once this is in I can go ahead and add gradients for the new stacking and concatenation ops, as well as add an "init(unstacking:)" tensor initializer which is necessary for the RL library I'm developing.

I think it can be an instance method on Tensor: split(...).

@pschuh We can also close this since it's handled by #26.


Get rid of SidePanel

got rid of SidePanel (once it should the part of outside app)
moved CueNote to the separate component

Also tried to fix the situation when popups of first cues overlap the player edges, but let it be in next PR.

Applied animation to the bottom when autoHide occurs: https://share.getcloudapp.com/6qurBLzL


Items with cyrillic symbols not working

Example: i have axe with name: "Удачливый лесоруб". In resource pack it's called as "\u0423\u0434\u0430\u0447\u043b\u0438\u0432\u044b\u0439\ \u043b\u0435\u0441\u043e\u0440\u0443\u0431" and it's working wits optifine, but not with CITResewn. I made that resource pack by myself and other items without cyrillic symbols working perfect

Please send logs

that's what you need?
MultiMC version: 0.6.14-develop-3186
Launched instance in online mode
authserver.mojang.com resolves to:
[<IP_ADDRESS>]
session.minecraft.net resolves to:
[<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>]
textures.minecraft.net resolves to:
[<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>]
api.mojang.com resolves to:
[<IP_ADDRESS>]
Minecraft folder is:
D:/Games/MultiMC/instances/LOGS/.minecraft
Java path is:
C:/Program Files/Common Files/Oracle/Java/javapath/javaw.exe
Checking Java version...
Java is version 17.0.2, using 64-bit architecture, from Oracle Corporation.
Main Class:
net.fabricmc.loader.impl.launch.knot.KnotClient
Native path:
D:/Games/MultiMC/instances/LOGS/natives
Traits:
traits XR:Initial
traits FirstThreadOnMacOS
Libraries:
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar
D:/Games/MultiMC/libraries/com/mojang/blocklist/1.0.6/blocklist-1.0.6.jar
D:/Games/MultiMC/libraries/com/mojang/patchy/2.1.6/patchy-2.1.6.jar
D:/Games/MultiMC/libraries/com/github/oshi/oshi-core/5.8.2/oshi-core-5.8.2.jar
D:/Games/MultiMC/libraries/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar
D:/Games/MultiMC/libraries/net/java/dev/jna/jna-platform/5.9.0/jna-platform-5.9.0.jar
D:/Games/MultiMC/libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar
D:/Games/MultiMC/libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.16.0/log4j-slf4j18-impl-2.16.0.jar
D:/Games/MultiMC/libraries/com/ibm/icu/icu4j/69.1/icu4j-69.1.jar
D:/Games/MultiMC/libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar
D:/Games/MultiMC/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
D:/Games/MultiMC/libraries/io/netty/netty-all/4.1.68.Final/netty-all-4.1.68.Final.jar
D:/Games/MultiMC/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
D:/Games/MultiMC/libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar
D:/Games/MultiMC/libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
D:/Games/MultiMC/libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
D:/Games/MultiMC/libraries/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
D:/Games/MultiMC/libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar
D:/Games/MultiMC/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar
D:/Games/MultiMC/libraries/com/google/code/gson/gson/2.8.8/gson-2.8.8.jar
D:/Games/MultiMC/libraries/com/mojang/authlib/3.2.38/authlib-3.2.38.jar
D:/Games/MultiMC/libraries/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
D:/Games/MultiMC/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
D:/Games/MultiMC/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
D:/Games/MultiMC/libraries/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar
D:/Games/MultiMC/libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar
D:/Games/MultiMC/libraries/org/apache/logging/log4j/log4j-api/2.16.0/log4j-api-2.16.0.jar
D:/Games/MultiMC/libraries/org/apache/logging/log4j/log4j-core/2.16.0/log4j-core-2.16.0.jar
D:/Games/MultiMC/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar
D:/Games/MultiMC/libraries/net/fabricmc/intermediary/1.18.1/intermediary-1.18.1.jar
D:/Games/MultiMC/libraries/net/fabricmc/tiny-mappings-parser/0.3.0+build.17/tiny-mappings-parser-0.3.0+build.17.jar
D:/Games/MultiMC/libraries/net/fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/sponge-mixin-0.10.7+mixin.0.8.4.jar
D:/Games/MultiMC/libraries/net/fabricmc/tiny-remapper/0.6.0/tiny-remapper-0.6.0.jar
D:/Games/MultiMC/libraries/net/fabricmc/access-widener/2.0.1/access-widener-2.0.1.jar
D:/Games/MultiMC/libraries/org/ow2/asm/asm/9.2/asm-9.2.jar
D:/Games/MultiMC/libraries/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar
D:/Games/MultiMC/libraries/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
D:/Games/MultiMC/libraries/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
D:/Games/MultiMC/libraries/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar
D:/Games/MultiMC/libraries/net/fabricmc/fabric-loader/0.12.12/fabric-loader-0.12.12.jar
D:/Games/MultiMC/libraries/com/mojang/minecraft/1.18.1/minecraft-1.18.1-client.jar
Native libraries:
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2-natives-windows.jar
D:/Games/MultiMC/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-windows.jar
Mods:
[✔] CITResewn-0.9.1+1.18.1
[✔] fabric-api-0.45.2+1.18
Params:
--username  --version MultiMC5 --gameDir D:/Games/MultiMC/instances/LOGS/.minecraft --assetsDir D:/Games/MultiMC/assets --assetIndex 1.18 --uuid  --accessToken  --userType  --versionType release
Window size: 854 x 480
Java Arguments:
[-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms8024m, -Xmx8024m, -Duser.language=en]
Minecraft process ID: 8156
Using onesix launcher.
[14:37:35] [main/INFO]: Loading Minecraft 1.18.1 with Fabric Loader 0.12.12
[14:37:35] [main/INFO]: Loading 49 mods:
- citresewn 0.9.1+1.18.1
- fabric 0.45.2+1.18
- fabric-api-base 0.4.1+b4f4f6cd65 via fabric
- fabric-api-lookup-api-v1 1.5.0+17be577f65 via fabric
- fabric-biome-api-v1 6.0.1+ded849a965 via fabric
- fabric-blockrenderlayer-v1 1.1.9+3ac43d9565 via fabric
- fabric-command-api-v1 1.1.6+3ac43d9565 via fabric
- fabric-commands-v0 0.2.5+b4f4f6cd65 via fabric
- fabric-containers-v0 0.1.18+d154e2c665 via fabric
- fabric-content-registries-v0 0.4.5+6f53a73d65 via fabric
- fabric-crash-report-info-v1 0.1.8+3ac43d9565 via fabric
- fabric-dimensions-v1 2.1.9+a1d9bbf565 via fabric
- fabric-entity-events-v1 1.4.5+6b21378a65 via fabric
- fabric-events-interaction-v0 0.4.16+bfa23f1765 via fabric
- fabric-events-lifecycle-v0 0.2.6+b4f4f6cd65 via fabric
- fabric-game-rule-api-v1 1.0.10+3ac43d9565 via fabric
- fabric-item-api-v1 1.3.0+691a79b565 via fabric
- fabric-item-groups-v0 0.3.3+3ac43d9565 via fabric
- fabric-key-binding-api-v1 1.0.8+c8aba2f365 via fabric
- fabric-keybindings-v0 0.2.6+b4f4f6cd65 via fabric
- fabric-lifecycle-events-v1 1.4.10+c15ca33565 via fabric
- fabric-loot-tables-v1 1.0.8+3ac43d9565 via fabric
- fabric-mining-level-api-v1 1.0.3+3ac43d9565 via fabric
- fabric-mining-levels-v0 0.1.8+b4f4f6cd65 via fabric
- fabric-models-v0 0.3.3+3ac43d9565 via fabric
- fabric-networking-api-v1 1.0.18+3ac43d9565 via fabric
- fabric-networking-v0 0.3.5+b4f4f6cd65 via fabric
- fabric-object-builder-api-v1 1.11.1+3b82842e65 via fabric
- fabric-object-builders-v0 0.7.9+3ac43d9565 via fabric
- fabric-particles-v1 0.2.9+526dc1ac65 via fabric
- fabric-registry-sync-v0 0.9.0+befed49e65 via fabric
- fabric-renderer-api-v1 0.4.9+3ac43d9565 via fabric
- fabric-renderer-indigo 0.4.12+3ac43d9565 via fabric
- fabric-renderer-registries-v1 3.2.7+b4f4f6cd65 via fabric
- fabric-rendering-data-attachment-v1 0.3.4+7242e9d765 via fabric
- fabric-rendering-fluids-v1 0.1.18+3ac43d9565 via fabric
- fabric-rendering-v0 1.1.9+b4f4f6cd65 via fabric
- fabric-rendering-v1 1.10.3+6b21378a65 via fabric
- fabric-resource-loader-v0 0.4.11+3ac43d9565 via fabric
- fabric-screen-api-v1 1.0.7+3ac43d9565 via fabric
- fabric-screen-handler-api-v1 1.1.11+3ac43d9565 via fabric
- fabric-structure-api-v1 2.0.8+295197a765 via fabric
- fabric-tag-extensions-v0 1.2.5+3ac43d9565 via fabric
- fabric-textures-v0 1.0.9+3ac43d9565 via fabric
- fabric-tool-attribute-api-v1 1.3.5+fb3b57b465 via fabric
- fabric-transfer-api-v1 1.5.6+b4f4f6cd65 via fabric
- fabricloader 0.12.12
- java 17
- minecraft 1.18.1
[14:37:36] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/D:/Games/MultiMC/libraries/net/fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/sponge-mixin-0.10.7+mixin.0.8.4.jar Service=Knot/Fabric Env=CLIENT
[14:37:36] [main/INFO]: Compatibility level set to JAVA_16
[14:37:40] [main/WARN]: @Inject(@At("INVOKE")) Shift.BY=3 on fabric-lifecycle-events-v1.mixins.json:client.WorldChunkMixin::handler$zed000$onLoadBlockEntity exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning.
[14:37:42] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[14:37:43] [Render thread/INFO]: Setting user: gfififid
[14:37:44] [Render thread/INFO]: [Indigo] Registering Indigo renderer!
[14:37:44] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 build 10
[14:37:49] [Render thread/INFO]: Narrator library for x64 successfully loaded
[14:37:49] [Render thread/INFO]: Reloading ResourceManager: Default, Fabric Mods (CITResewn, Fabric API, Fabric API Base, Fabric API Lookup API (v1), Fabric Biome API (v1), Fabric BlockRenderLayer Registration (v1), Fabric Command API (v1), Fabric Commands (v0), Fabric Containers (v0), Fabric Content Registries (v0), Fabric Crash Report Info (v1), Fabric Dimensions API (v1), Fabric Entity Events (v1), Fabric Events Interaction (v0), Fabric Events Lifecycle (v0), Fabric Game Rule API (v1), Fabric Item API (v1), Fabric Item Groups (v0), Fabric Key Binding API (v1), Fabric Key Bindings (v0), Fabric Lifecycle Events (v1), Fabric Loot Tables (v1), Fabric Mining Level API (v1), Fabric Mining Levels (v0), Fabric Models (v0), Fabric Networking API (v1), Fabric Networking (v0), Fabric Object Builder API (v1), Fabric Object Builders (v0), Fabric Particles (v1), Fabric Registry Sync (v0), Fabric Renderer API (v1), Fabric Renderer - Indigo, Fabric Renderer Registries (v1), Fabric Rendering Data Attachment (v1), Fabric Rendering Fluids (v1), Fabric Rendering (v0), Fabric Rendering (v1), Fabric Resource Loader (v0), Fabric Screen API (v1), Fabric Screen Handler API (v1), Fabric Structure API (v1), Fabric Tag Extensions (v0), Fabric Textures (v0), Fabric Tool Attribute API (v1), Fabric Transfer API (v1), Fabric Loader), gfi-land textures work folder
[14:37:49] [Worker-Main-14/INFO]: [citresewn] Parsing CITs...
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Found 11 CITs in gfi-land textures work folder
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Activating CITs...
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Loading CITItem models...
[14:37:53] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on MP59G (NVIDIA High Definition Audio)
[14:37:53] [Render thread/INFO]: Sound engine started
[14:37:53] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/blocks.png-atlas
[14:37:53] [Render thread/INFO]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[14:37:53] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[14:37:53] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[14:37:53] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[14:37:53] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[14:37:53] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[14:37:54] [Render thread/INFO]: [citresewn] Linking baked models to CITItems...
[14:37:54] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[14:37:54] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[14:37:54] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[14:38:05] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[14:38:05] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[14:38:05] [Render thread/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[14:38:05] [Render thread/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[14:38:05] [Render thread/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[14:38:05] [Render thread/INFO]: Reloading ResourceManager: Default, Fabric Mods (Fabric Tool Attribute API (v1))
[14:38:05] [Render thread/INFO]: Loaded 7 recipes
[14:38:05] [Render thread/INFO]: Loaded 1141 advancements
[14:38:05] [Render thread/INFO]: Applied 0 biome modifications to 0 of 61 new biomes in 1.329 ms
[14:38:06] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[14:38:06] [Server thread/INFO]: Starting integrated minecraft server version 1.18.1
[14:38:06] [Server thread/INFO]: Generating keypair
[14:38:06] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[14:38:07] [Render thread/INFO]: Preparing spawn area: 0%
[14:38:07] [Render thread/INFO]: Preparing spawn area: 0%
[14:38:07] [Render thread/INFO]: Preparing spawn area: 0%
[14:38:08] [Render thread/INFO]: Preparing spawn area: 1%
[14:38:08] [Render thread/INFO]: Preparing spawn area: 43%
[14:38:09] [Render thread/INFO]: Time elapsed: 2470 ms
[14:38:09] [Server thread/INFO]: Changing view distance to 12, from 10
[14:38:09] [Server thread/INFO]: Changing simulation distance to 12, from 0
[14:38:10] [Server thread/INFO]: gfififid[local:E:af576001] logged in with entity id 90 at (2.423837759767995, -60.0, 6.500317872108705)
[14:38:10] [Server thread/INFO]: gfififid joined the game
[14:38:10] [Render thread/INFO]: Loaded 0 advancements
[14:38:26] [Server thread/INFO]: Saving and pausing game...
[14:38:26] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[14:38:26] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[14:38:26] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[14:38:28] [Server thread/INFO]: gfififid lost connection: Disconnected
[14:38:28] [Server thread/INFO]: gfififid left the game
[14:38:28] [Server thread/INFO]: Stopping singleplayer server as player logged out
[14:38:28] [Server thread/INFO]: Stopping server
[14:38:28] [Server thread/INFO]: Saving players
[14:38:28] [Server thread/INFO]: Saving worlds
[14:38:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[14:38:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[14:38:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[14:38:28] [Server thread/INFO]: ThreadedAnvilChunkStorage (New World): All chunks are saved
[14:38:28] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[14:38:28] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[14:38:28] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[14:38:30] [Render thread/INFO]: Stopping!
Процесс завершился с кодом 0.
Clipboard copy at: 01 Feb 2022 14:38:36 +0300

[14:37:49] [Worker-Main-14/INFO]: [citresewn] Parsing CITs...
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Found 11 CITs in gfi-land textures work folder
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Activating CITs...
[14:37:50] [Worker-Main-14/INFO]: [citresewn] Loading CITItem models...
Says it loaded fine, v0.9.1 should load it fine.. weird, I'll take a look when I get home, could you send the pack please?

gfi-land textures work folder.zip
I deleted some unimportant and test files, but i test it, item stil working on optifine and not working on CIT Resewn

I found what happend: in cyrillic items name at resource pack i have a space as a last symbol, that don't on items in game. Optifine ignoring it, but CIT Resewn not. Deliting it solved problem. Actualy it's was my fault, but for better compatibility CIT Resewn need to ignore it too, i think

Ah. Easy mistake. Glad it's solved.
CIT Resewn doesn't remove trailing spaces in v0.9, on the v1 rewrite I'll consider ignoring those spaces.

Btw, congrats on being the 100th issue! Here's a medal: 🏅

Thanks. Have a nice day or evening!


Fix invalid email issue #69

Coverage increased (+0.008%) to 91.635% when pulling a04d76dd6a2acba34144eb6eb70c28de583d03f6 on andidev:fix-invalid-emails into 149150ed150a3874ee3ab48f277806a3c52f52d1 on Codearte:master.

Thanks @andidev . Could you add a test to verify the improved behaviour?

@OlgaMaciaszek
I have pushed some more tests + some refactoring to make testing easier + I have removed the CharConverter and replaced it with a static method in TextUtils and make sure to call the new stripAccent methods from all locales

Coverage increased (+0.1%) to 91.739% when pulling b844c09bd6094aca5010496da3540b5492bb5e82 on andidev:fix-invalid-emails into 149150ed150a3874ee3ab48f277806a3c52f52d1 on Codearte:master.

Coverage increased (+0.1%) to 91.739% when pulling 943217ec7b27c81f98d15fbbcc7f8d8ce6ce8449 on andidev:fix-invalid-emails into 149150ed150a3874ee3ab48f277806a3c52f52d1 on Codearte:master.

Coverage increased (+0.1%) to 91.739% when pulling 49ed1472de0f696485f69a6f429734c2057fd7fc on andidev:fix-invalid-emails into 149150ed150a3874ee3ab48f277806a3c52f52d1 on Codearte:master.

@OlgaMaciaszek
So your remarks should be solved. I also converted from spaces to tabs in some files where I saw I hade used spaces instead of tabs.

Coverage increased (+0.1%) to 91.739% when pulling 4adcaa33dcf0ef825ca264da057314c7bce765a2 on andidev:fix-invalid-emails into 149150ed150a3874ee3ab48f277806a3c52f52d1 on Codearte:master.


Material Design Typography

I've just discovered this library and I'm trying to understand how should I implement material styled typography for elements like <p> <span> <h1> h2>..... In particular regarding font, font size, colors...
Should I load another material design css library just for this?

I'm interested in this too.

http://www.getmdl.io/index.html

No hope of getting this directly into material-ui? Having to load the font twice and maintaining separate CSS typography rules up to date with the ones used by material-ui isn't the best thing

You could use

https://github.com/callemall/material-ui/blob/master/src/styles/colors.js
https://github.com/callemall/material-ui/blob/master/src/styles/typography.js

The typography one is missing a lot of property. https://github.com/binggg/react-native-material-design-styles Is also interesting.

MUI typography should export Google's MUI font styles such as display4, display3, subhead... etc the same way it MUI already exports Google's MUI colors.

so how exactly are you solving this 'thing' right now?
add example code pls

My solution:
$ npm i material-design-lite -S

use webpack to import styles:
import 'material-design-lite/src/typography/_typography.scss'

Are there really no better solutions than the one @tonytonyjan suggests?

We have a new <Text /> component on the next branch implementing the material typography system. For instance, here is the documentation https://github.com/callemall/material-ui/blob/next/docs/site/src/pages/style/typography/typography.md.

We have a new <Text /> component on the next branch implementing the material typography system. For instance, here is the documentation https://github.com/callemall/material-ui/blob/next/docs/site/src/pages/style/typography/typography.md.

Is that already available today somehow, I don't get it even under the alpha version.

It's under the next branch. It's not published on npm.

Another solution is to use material-components-web which is the successor to material-design-lite.

@oliviertassinari what about the aforementioned ? Is it usable right now?
When is the next branch going to have birth?

@damianobarbati I'm using it on some projects. We have released an alpha version. People can try it out.

Until next is stable, I've back-ported the <Text /> component to the current version. Here's the gist if it's helpful to somebody: https://gist.github.com/amannn/267ab88b4d6b0550a7f920f9417bdfd7

Thanks for sharing it :+1:.

Btw. I just noticed that Text is already available on the global scope in browsers. It might be worth considering a different name like Font to avoid confusion.
It also has the effect that a linter doesn't complain if you try to use it without importing. React also prints a different warning Uncaught TypeError: Failed to construct 'Text': Please use the 'new' operator, this DOM object constructor cannot be called as a function. which is somehow misleading.

@amannn Good spot. Please open a new issue for this. Thanks!

@amannn Thanks for the feedback. What about calling it Typography? But @mbrookes is right, please open another issue to deal around that topic.

I like Typography! I've opened another issue: #6283


Yarn support

See https://github.com/sindresorhus/xo-init/commit/89fc57105cde289c30299ac8796aa4eb4dc84598 and https://github.com/sindresorhus/xo-init/commit/0638726fe8452775a64cdf94202c2a5550eb10a0.

Looking at these commits, it seems to be implemented. What's missing?

@vadimdemedes Those commits are from xo-init, this is ava-init.

@sindresorhus
Maybe drop support for Node.js 0.10 and 0.12 as avajs/ava@8530fcdf304eed0e23b7915633f3a15fd1a4e65a ?
This will also make it possible to apply the TODO https://github.com/avajs/ava-init/blob/master/index.js#L53 ?

@forresst Done: https://github.com/avajs/ava-init/commit/1d7d73b3022f34e1b749cc2285422a4dff1870d3


Integrate simple terminal UI for the game

@cortze, is this PR still relevant? Close is it pls if not

@cortze, is this PR still relevant? Close is it pls if not

Not really, closing the PR


read_excel now accepts a vector of NA types

Can be tested on this test Excel file:
https://drive.google.com/file/d/0B1i6iIc4UbO1VUV6TWQ0RjlFT1U/view?usp=sharing
Using this code:
read_excel("test_mult_na.xlsx",sheet=1,col_names=T,
           col_types=c("text","numeric","numeric"),na=c("","-","NA"))

I get this output, as expected:
  var1     var2 var3
1    a    1.300    1
2    b       NA    2
3    c   51.500    3
4 <NA>    9.900    4
5    e 8548.400    5
6    f  848.560    6
7    g   32.498   NA

Not sure why Travis / R CMD check --as-cran failed, as the latter works on my local machine.

Closed as duplicate of #56


Scaling-/translate3d Problem with Firefox/Safari

Hello together,
I am building a big application around the svg.js eco-system with many other plugins like draw,resize,select, draggable.
Sadly I am stuck at some point especially by using Firefox or Safari Browser.
Environment
The problem appears by wrapping the svg-layer with a div which uses the scaling- and trandlate3d functionality. By using the mouse-wheel or the mousedown-event in my prod-environment the scaling-/translate3d is used to emulate panning-/zooming behavior. I dont want to use the panzoom-plugin because the svg-layer is just one part of a bigger environment which also should be scaled.
Problem
If you draw a rectangle or resize the object with the Firefox-Browser the cursor doesnt stick to the selected corner - it differs from the rectangle. I am unable to discover the main cause but I have found out that the screenCTM-Matrix didn't get changed in Firefox.
It works for all other browsers like: Chrome, Chromium, Opera, Edge even with Internet-Explorer
For better understanding I created a minimal setup to present the bug: JSFiddle-Snippet
Questions

Is there a way to fix the bug?
Is this a browser- or plugin related bug?

Thank you in advance for your help

The browser behavior regardig creenCTM is different across browsers. Actually we implemented a workaround for that but it seems it doesnt always work.
You should run simple tests around that issue to see where the problem comes from and maybe report a bug to browser vendors

Thank you for the answer.
Can we solve the problem together or as a community? Maybe you can give us help or some advice which tests we can run. Sadly I am not a svg specialist so it would be nice to get some tips.
As workaround you mean the svg-helping points and matrix transformations?

I dont have time atm for doing this. So unfortunately I cant be of much help here.
We implemented a workaround in the library.
I never looked into 3d transform of the css spec mixed with svg transformations. Its a tedious mess.
The problem which we worked around in the library was for screenCTM of the <svg> element itself. I have no idea if it also helps for this issue - it seems now. So it mighth be a seperate bug.
For testing just create examples with transformations and get the screenCTM and see if it differs across browsers

Thanks for your help
After researching for some hours and trying to fix the issue I've found a bug-report from mozilla firefox, hopefully they fix the issue soon: Bug 972041


AI Email Generator

Project Request

Field
Description

About
A chat gpt based Ai email generator app where you can set the parameters such as tone , length and format

Github
adithya-s-k

Email
<EMAIL_ADDRESS>

Label
Project Request

Define You

[x] GSSOC Participant
[ ] Contributor

AI Email Generator
Project Description
The AI Email Generator is a machine learning tool that aims to generate personalized emails using natural language processing techniques. The tool will use a dataset of email templates and user-specific information to create unique emails that sound human-written.
Scope
The scope of this project includes the development of an AI-based email generator tool that can automate the email writing process. The tool will be trained on a dataset of email templates, which will be used to generate emails based on user-specific information such as name, company, and event date. The tool will also be able to suggest appropriate email templates based on user input.
Deliverables
The project will deliver an AI-based email generator tool that can be used to write personalized emails. The tool will be deployed on Github and will include the following components:

A web interface with good UI

Future Considerations
In the future, the tool can be extended to include more advanced natural language processing techniques such as sentiment analysis and topic modeling. The tool can also be integrated with popular email clients such as Gmail and Outlook.

@adithya-s-k please assign this issue to me


Fix a typo in the comment message (missing the word "on")

There is a missing word ("on") in the message when a comment is added to a pull request.

Superseded by PR #9.


Use React.Fragment instead of div as a default wrapper

I'm using react-responsive together with react-responsive-redux and noticed that single elements get wrapped by a
.
I'm not entirely sure what's going on there but I still think we shouldn't force using a
.
I could come around this by creating my own wrappers/aliases to those from react-responsive-redux but this seems totally unnecessary.
Now that we have React.Fragment, how is a
 better?
A use case of a single element using react-responsive-redux's <MobileScreen>:
<MobileScreen>

</MobileScreen>

And here's the workaround:
<MobileScreen component="">

</MobileScreen>

Duplicate of https://github.com/contra/react-responsive/issues/178
We don't use wrapper divs except for two cases where you have to explicitly ask for one, basically. See above for the logic - but the code in your ticket would not use a wrapper div.


Add relocation at page ends

Simdjson relocates the data if the end is too close to a page end so it can always read a bit past the data. We should adopt that behavior as it saves us from having to re-check on the hot path

0.1.5 includes this - so I couldn't find a test case triggering the related issue, no harm keeping it I guess.


can not make 'surface' with makeRepresentation

I am able to make cartoon, ... with makeRepresentation but can not make it work with surface.
Got Uncaught TypeError: Cannot read property '__postId' of undefined`. This is typical error I met before but don't know how to fix in this case.
any idea how to fix? thanks.

what version?

sorry, I forgot to mention I worked with the one in nglview.
(So if I make an issue here, it relates to ngl in nglview. Otherwise, I will specify version. :D )

can you link your code?

https://github.com/arose/nglview/blob/master/nglview/js/widget_ngl.js#L367-L380

Please try to set params.useWorker = false.

that works. thanks.


Doc Request: how to construct and style "rich text"

It wasn't obvious how to create a highly stylized text in Flutter. For example, how would I render this kind of text?  (Imagine that last word used a different font :)
Even some snippets inside the docs of https://docs.flutter.io/flutter/widgets/RichText-class.html and https://docs.flutter.io/flutter/material/Text-class.html might be sufficient.
Thanks!

cc @Hixie if there's a good, small example of some techniques, I'd be happy to send over a PR to add to the API docs.

Some examples:
examples/layers/widgets/styled_text.dart
examples/stocks/lib/stock_symbol_viewer.dart
Also see https://github.com/flutter/flutter/pull/5708

Dup of https://github.com/flutter/flutter/issues/6559


How can I extend a contract that is not Migratable and call its constructor?

I'm writing a contract that is Migratable but not extending a Migratable contract.
See below:
contract A {
  uint256 private x;
  constructor(uint256 _x) public {
    x = _x;
  }
}

contract B is A, Migratable {
  function initialize(uint256 _x) isInitializer("B", "0") public {
    x = _x; // error
  }
}

There's no way for B to initialize x becuase x is private for A.
Wouldn't there be any way to extend and call super's constructor?

@YoonjaeYoo keep in mind that no contracts in the inheritance chain must have a constructor if you want to work with upgradeable contracts. This means you cannot use A or any contract that extends from B. There is more info on the docs, but we're writing a more detailed guide about this here. Hope it helps!


Scripts in top-level for built distributions; test fix; flake8 changes

Moved CLI scripts back to top-level dir. Dropped the .py extension, however, because they will/should normally be placed in /usr/bin.

Coverage increased (+52.13%) to 90.53% when pulling 0c781900da707e29dd94e6f001f6500aa815bf4d on marthjod:rpmbuild into 2e209fb4aa928e05745a5d1dbf0c64280a1ee612 on nmesstorff:master.