go tests fail due to exceeding default timeout

Thank you for your contribution and feedback! Help us review faster by providing the following information:
This issue is a: (mark with an x)

[X] bug report
[ ] request for new sample
[ ] documentation issue or request
[ ] regression (a behavior that used to work and stopped in a new release)

Steps to reproduce:
run go test within containerservice with location westeurope
Errors and log messages:
*** Test killed with quit: ran too long (10m0s).
exit status 2
FAIL	github.com/Azure/azure-sdk-for-go-samples/containerservice	600.014s

Expected behavior:
go tests run as described in README
OS and Go versions:
go version go1.10.3 darwin/amd64
Further info:
successfull running tests can be archived with a timeout longer than 10 minutes.
should this behaviour be documented in the README tests section?
Some tests my fail due to exceeding timeout e.g. containerservice tests, please provide a longer timeout such as: go test -timeout 15m
my last test took approx. 12 min
╰─$ go test -timeout 20m
2018/07/22 16:13:17 creating resource group 'azure-samples-go-CreateAKS-rwV3n' on location: westeurope
2018/07/22 16:25:21 created AKS cluster
2018/07/22 16:25:21 retrieved AKS cluster
2018/07/22 16:25:21 deleted AKS cluster
2018/07/22 16:25:21 deleting resources
PASS
ok  	github.com/Azure/azure-sdk-for-go-samples/containerservice	724.634s

Thank you for reporting this! We're working on fixing the test system and I included the timeout configuration in #203.

nice :)


dockerfile: change base image to rockylinux

What problem does this PR solve?

Issue Number: ref https://github.com/pingcap/tiflow/issues/4287
What is changed and how it works?

change base image to rockylinux

Check List
Tests

chaos test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

here we just parallel produce another docker image, directly change may be dangerous， so you can add this dockerfile to https://pingcap.feishu.cn/wiki/wikcnYlK7ZLs709jXDFSBlUHm6f


Cannot get RSocketResumableTransport running

I would like to enable my client to reconnect to my server in case the server restarts. I tried thus the example provided in rsocket-js/packages/rsocket-examples/src/ResumeExample.js. It seems however that even after restarting the server, no callback is ever made to resumableTransport.connect(). Nothing is caught within the onNext at the client side within the resumableTransport.connectionStatus().subscribe() block. For the record here's my piece of code :
rSocketClient: RSocketClient<any, Encodable>;
responder;

ngOnInit(): void {
    const messageReceiver = payload => {
      console.log(payload);
    };
    this.responder = new EchoResponder(messageReceiver);

    const resumeToken = Buffer.from('helloworld');
    const bufferSize = 128;
    const sessionDurationSeconds = 20;
    const reconnectIntervalMillis = 5000;

    // Create an instance of a client
    const resumableTransport = new RSocketResumableTransport(
      // supplier of low-level transport
      () => new RSocketTcpClient({host: 'localhost', port: 7000}, BufferEncoders),
      {
        bufferSize, // max number of sent & pending frames to buffer before failing
        resumeToken, // unique identifier the session across connections
        sessionDurationSeconds,
      },
      BufferEncoders,
    );

    this.authenticationService.getLoggedInUser().subscribe(
      obj => {
        this.authToken = obj.principal;
        this.rSocketClient = new RSocketClient({
          serializers: {
            data: JsonSerializer,
            metadata: IdentitySerializer
          },
          setup: {
            payload: {
              data: this.authToken,
              metadata: String.fromCharCode('client-id'.length) + 'client-id'
            },
            // ms btw sending keepalive to server
            keepAlive: 1000,
            // ms timeout if no keepalive response
            lifetime: 10000,
            // format of `data`
            dataMimeType: 'application/json', // application/json
            // format of `metadata`
            metadataMimeType: 'message/x.rsocket.routing.v0', // message/x.rsocket.routing.v0
          },
          responder: this.responder,
          transport: resumableTransport,
        });

        let start = true;
        resumableTransport.connectionStatus().subscribe({
          onNext: status => {
            console.log('Resumable transport status changed: ' + status.kind);

            if (status.kind === 'NOT_CONNECTED') {
              if (!start) {
                console.log('Resumable transport disconnected, retrying...');
                setTimeout(() => resumableTransport.connect(), reconnectIntervalMillis);
              } else {
                start = false;
              }
            }
          },
          onSubscribe: subscription => {
            subscription.request(Number.MAX_SAFE_INTEGER);
          },
        });

        this.rSocketClient.connect().subscribe({
          onComplete: socket => {
            console.log('Connection successful');
          },
          onError: error => console.error(error)
        });
      },
      error => { console.log(error); }
    );
  }

Could someone help me please get this fixed. Thank you.

Were you able to make any progress on this?

Greetings @ayoUbuntu , @SentryMan , a new example has been added that demonstrates leveraging ResumableTransport.
Please take a look here and let us know if this resolve your questions.

Please take a look here and let us know if this resolve your questions.

You sure you have the right link there? that file hasn't been updated for quite a while. Perhaps you mean the file in this commit? https://github.com/rsocket/rsocket-js/commit/680976ab2ec7ca95aa526cff903739c99997d0d.  If so, that file doesn't look like it uses any RSocket Resume transport. It looks to me that it's just reconnecting on failure, not actually resuming.

@SentryMan ah, you are entirely correct. Apologies for the confusion.

Were you able to make any progress on this? i have this issue too


Adding object url to output

Adds a direct link to the object data source in each meta file.  This will trigger a change in every file.
Sample output...
https://github.com/cagov/automation-development-target/commit/338ce99bb7906deddbf7d95d3f57c895b4dce4d2
    "api_url": "https://as-go-covid19-d-001.azurewebsites.net/wp-json/wp/v2/",
    "object_url": "https://as-go-covid19-d-001.azurewebsites.net/wp-json/wp/v2/pages/8932",

Need to reopen this PR.


preg_replace_callback  Requires argument 2, 'self::_myMap', to be a valid callback

Warning: preg_replace_callback(): Requires argument 2, 'self::_myMap', to be a valid callback ....

zephir version 0.9a-dev php-5.6.13

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27678368-preg_replace_callback-requires-argument-2-self-_mymap-to-be-a-valid-callback?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

Could you please provide the code that produces the issue?

code example like:
class Test
{
	static protected _myMap(array matches){
		return matches[0];
	}
	static public run(string str){
		string regex;
		let regex = "/[a-z0-9]/";
		return preg_replace_callback(regex, "self::_myMap", str);
	}
}

Description from php doc :
mixed preg_replace_callback ( mixed $pattern , callable $callback , mixed $subject [, int $limit = -1 [, int &$count ]] )

The second argument must a callable not a string

@fezfez mac os  the pattern can be string or var. the problem happened on my virtual linux centos 6.5.
i'll test more when back home

@fezfez change "string" to "var",the problem still running php scripts

The self scope isn't valid in this context.
You'll have to rely on a LSB, use static::_myMap, which seems to require public as visibility, which is related to the same scope limitation here.
Generally using an closure
return preg_replace_callback(regex, function (array matches) {
            return matches[0];
        }, str);

might be favorable, if that's possible for your case.

@sergeyklay
my case needs:
return preg_replace_callback(regex, function (array matches) use (something) {
            return sprintf(something,matches[0]);
        }, str);

but not support the "use".
so, i do as your said, changing "static::..." and set "public",working well.
thank you very much

@steffengy sorry, @ wrong name,thanks a lot

@steffengy Can be closed?


Feature request: publish a wheel

It looks like this package is being used as a dependency for pyodide-build, and the package provides a source distribution (.tar.gz).
It would be great to receive wheels when downloading from PyPI rather than sdists. Since the package is pure Python, building a wheel here should be trivial.

Thank you for your request.
I've replaced setup.py with pyproject.toml for project builds, and now it automatically publishes wheel on Pypi.
See: https://pypi.org/project/leb128/#files

Also, it doesn't take long for pip to build a wheel for leb128, really. My recommendation comes from https://pythonwheels.com/, which on 07/03/2024 mentions that 359/360 top Python packages have wheels.

Corollary: the last few releases don't have git tags which would be lovely for downstreams (e.g. https://github.com/conda-forge/leb128-feedstock/pull/2) to assess what might have changed at a packaging level (build systems, etc.)

Corollary: the last few releases don't have git tags which would be lovely for downstreams (e.g. conda-forge/leb128-feedstock#2) to assess what might have changed at a packaging level (build systems, etc.)

I have posted tags.

Thanks @bollwyvl and @mohanson for the discussion and for publishing wheels. I suppose this issue can now be closed.


Fibroblasts are not epithelial cells!

Two changes:

Fibroblasts are not epithelial cells! As such, I removed the "is_a" relation to CL:0000066 ! epithelial cell
For consistency with other terms, e.g. "fibroblast of papillary layer of dermis" I changed "reticular layer of dermis fibroblast" to "fibroblast of reticular layer of dermis"

Hi @kiri93 - I've just realised that this edit was to the wrong file. cl-basic.obo is a release file and so your change will be over-written and the next release.  The editor's file is: src/ontology/cl-edit.owl.   Would you be able to make the changes there?
Many thanks again,
David

Ah yeah sorry, I'm still quite new to all of this. I'll change the src/ontology/cl-edit.owl file!

Apparently, the relation reticular layer of dermis fibroblast "is_a" epithelial cells is not hard-coded in src/ontology/cl-edit.owl. I believe it could be related to the annotation UBERON_0001993 (reticular layer of dermis) which is "part_of" epidermal-dermal junction.


✨ Feature: Can Markview be used on Terminal buffers?

The nature of the feature:

[ ] Parser(syntax, conceal etc. related)
[X] Renderer(style, options etc. related)
[X] Support(plugin support, language support etc. related)
[ ] Other

Description:
I came into a use case where I may want to use Markview in terminal buffers to render output from ollama. It does not look like running :Markview or setting the filetype of the buffer to markdown allows markdown in terminal buffers to be formatted. Looking for some input if this is possible in the current  version of the software or if the software could be made to support this.
Note: I tried adding "t" to modes in my config and it did not appear to do anything.

I have tested this and it won't work.
Terminals(& terminal buffers) work differently then text buffers. Tree-sitter can't create a syntax-tree as how stuff is shown on a terminal is different to how text is shown in a normal buffer.
This wouldn't be possible, at least not now.


WIP: fix: AzureOpenAI authentication to support API Key auth

Based on the notebook and the AzureOpenAI class code, authentication with API Key authentication is not supported.
The azure_deployment field is required to differentiate between the model and its Azure deployment, which is crucial when multiple deployments of the same model exist, or when the deployment is not named after the model..
from guidance import models, gen
import tiktoken

azureai_model = models.AzureOpenAI(
    model='gpt-3.5-turbo',
    azure_endpoint=azure_endpoint,
    azure_deployment='my_crazy_deployment_name',
    api_key=api_key,
)

Required: to test using token_ad_provider (not yet)

Thanks @younes-io ! This looks good to me, @riedgar-ms or @Harsha-Nori any feedback?

Isn't the deployment contained within the endpoint URI? I have always used URIs of the form:
https://.openai.azure.com/openai/deployments//chat/completions?api-version=2023-07-01-preview
Although I wouldn't be surprised if the information can be given in other ways.

@riedgar-ms : what you share is the full URL, which is constructed by the underlying library (langchain, etc).
This https://< < Resource Name > >.openai.azure.com is the base_url or (in the latest version) the azure_endpoint

I wouldn't object to passing through all the arguments (I assume that the AzureOpenAI object can sort everything out itself), although providing the 'full URL' as the endpoint does seem to work.

@riedgar-ms never tried that xD but that's a good thing :D


Add INSTALL section.

This is pretty likely to work this way for most projects I think.
(sidenote: I didn't test this, but I think it's right :wink: - sorry!)

Thank you @The-Compiler :+1:


[New feature needed]: Can we change the enpoint?

Firstly, a very nice project!
In my area, the request (by the browser directly) etoro.com will be directed to etorocn.com.cn. So far, it seems that the backend database is the same. Is it possible to add an option to reset the endpoint? In your code, I tried to replace some of the URLs, but not pretty sure if this is work or not (seems work!). Also, I do not know what is ...push-demo-lightstreamer.cloud.etoro....
Anyway, if you can leave me an "official" place to replace it, that would be good.

Hello,
Thanks for your interest to this project.
Only place where browser is involved in this project is EtoroMetadataService where I read the cookies from etoro.comhttps://www.etoro.com to use them in all futher requests, so if you are being redirected you can change this URL there.
About push-demo-lightstreamer.cloud.etoro,it is a websocket server (whis uses Lightstreamer protocol) for listnening events like price changing, open/close trades, stop losses and take profits trigering etc.

От: H. Li<EMAIL_ADDRESS>Отправлено: 16 мая 2020 г. 2:08
Кому: oleh2208/etoro-api<EMAIL_ADDRESS>Копия: Subscribed<EMAIL_ADDRESS>Тема: [oleh2208/etoro-api] [New feature needed]: Can we change the enpoint? (#4)
Firstly, a very nice project!
In my area, the request (by the browser directly) etoro.com will be directed to etorocn.com.cn. So far, it seems that the backend database is the same. Is it possible to add an option to reset the endpoint? In your code, I tried to replace some of the URLs, but not pretty sure if this is work or not (seems work!). Also, I do not know what is ...push-demo-lightstreamer.cloud.etoro....
Anyway, if you can leave me an "official" place to replace it, that would be good.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/oleh2208/etoro-api/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHNNVV4XVPM453KC47NEPDRRXKOPANCNFSM4NCVBLKA.


Move application(s) to separate repository

Currently the bezier_application package has a dependency on fanuc_m20ia_support which obviously requires anyone willing to use this metapackage to fullfill this dependency.
I would be in favor of a solution that keeps the bezier_library in a kind-of standalone shape so I would propose to move the bezier_application package to a separate repository and in turn keep the fanuc application as an example of how to make use of the bezier_library.
If you agree I can create a PR for this.

I agree, Bezier was one my first ROS package, and it really looks ugly now :)
I'm going to ask for someone to create the bezier_application repository because I don't have the rights to do that.
I'll keep you updated when it's created.

@VictorLamoine: is fanuc_m20ia_support really a build_depend? It's listed as a depend in the manifest, which would imply it's both a run as well as build dependency.
If it's only needed to launch .launch files, it should be an exec_depend and could be ignored by users if they're not interested in using the .lauch files that use fanuc_m20ia_support.

No it's not a build depend, that's exactly why bezier is ugly :)
Anyway I think the applications should be split from the library itself.
The application package is just an example on how to use the package.

No it's not a build depend, that's exactly why bezier is ugly :)

Then it would make sense to fix that in any case.

Anyway I think the applications should be split from the library itself.
The application package is just an example on how to use the package.

I'm happy to create a new repository, but depending on how users setup their workspace, that might not solve the issue here: if they clone both this repository and the new one (which would seem like a thing they would do, as they'd want to have an example that shows how to use the library), they run into the same problem.
Unfortunately there is no support for optional dependencies in ROS pkg manifests (v2 in any case).

I agree to @gavanderhoorn. However the idea was to have them both separated. I'm perfectly fine with an example package defining a proper dependency on a certain robot. That is being an example package and not the one that a person would use in production but to learn how to setup his own robot using the bezier_library.
If a user wants to setup a clean workspace for one robot other than fanuc_mia20 he can't get rid of these dependencies currently, but he would if the packages would be split up in two repositories.

Agreed, the package need to be fixed and be properly written. I've come a long way since bezier, now I use catkin_lint to help me build cleaner packages and it works great!
Please create a new repository and we will do some cleaning in both the two repositories

I'm actually suggesting to either a) remove the depend on fanuc_m20ia_support from bezier_application and clearly state that in order to use the example launch files users need to install that package manually, or b) convert the depend into the proper exec_depend and update the rosdep install .. line shown with a --skip-keys="fanuc_m20ia_support".
@VictorLamoine if you want a new repository I can create it though.

I will create a wstool rosinstall filee and proper instructions on how to create a complete workspace with all the dependencies.
Yes please

I'm actually suggesting to either a) remove the depend on fanuc_m20ia_support from bezier_application and clearly state that in order to use the example launch files users need to install that package manually, or b) convert the depend into the proper exec_depend and update the rosdep install .. line shown with a --skip-keys="fanuc_m20ia_support".

Well I guess in order to keep rosdep from installing these dependencies (in terms of rosdep being used in it's normal fashion without caring additionally for a certain package) a) would be the only viable - if @VictorLamoine would prefer to keep the application inside this repository.

@nlimpert: it's academic at this point, but --skip-keys="" is exactly meant to allow you to ask rosdep to ignore certain dependencies. That would make b possible as well.

@VictorLamoine: what about bezier_examples, instead of bezier_application? I like that name, as it clearly conveys what the contents of the repository is.

@nlimpert: it's academic at this point, but --skip-keys="" is exactly meant to allow you to ask rosdep to ignore certain dependencies. That would make b possible as well.

Yes I got that point - but I guess the user would have to always keep in mind that there's this certain package to be omitted when using rosdep for one complete workspace, right?
(That's at least what I meant)

Closing as I moved the code to the new repository. Now I will do some cleaning

@nlimpert I've done some cleaning and updated everything to melodic.
Robot does not move in the example because of a missing piece in the MoveIt configuration I have generated. I don't have time to fix this but if you have please open a pull request (https://github.com/ros-industrial-consortium/bezier_examples/issues/2).

Thank you for the cleanup!
I'm not sure when I can find the time to have a look but I'll see if I can help asap.


How to include full site url in assets path using font_path

[ ] This feature is not on the latest version

Request
Less of a request than a help question -
How can I use the full site url path within a font.css stylsheet?
instead of the stylesheet printing src:url("/assets/#filename")
I want src:url("https://website/assets/#filename")
Here is my font stylehseet:
@font-face {
  ....
  src: url(font_path(#filename));
}

@yukanagai I think you need to define assets:cdn section in the config. See https://github.com/envygeeks/jekyll-assets#configuration. JEKYLL_ENV=production builds will get you an absolute URL instead of a relative one. development builds will still look up locally.

assets:
  full_url: true

https://github.com/envygeeks/jekyll-assets/commit/8bc163ccf0b9cc9df7055ab828f7f0adf614f5e3


[Blocked] Footer icons for youtube and linkedin

Add the YouTube and Linkedin links to the Footer component, with their corresponding icons; check the new canva Footer design
Use icons from Material UI.

Youtube link
Linkedin link

@JamirLeal please wait until #64 is done.

@JamirLeal please wait until #64 is done.


Add: new

Codecov Report

Merging #583 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #583   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files         181    181
  Lines        1805   1805
=====================================
  Hits         1805   1805

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 26e7b76...17fe4e2. Read the comment docs.


Access server request in tokenCallbackFunction to set cookies

Would it be possible to access the server request (req) in the tokenCallbackFunction? This would be extremely helpful as then I could just set the new access_token into req.cookies in the callback.
Right now I'm struggling with the flow of refreshing the token and saving it into my cookies. I'm iffy with the process of saving the token into my database in the token callback, as then I have to fetch those tokens on every request to ensure I have the most up-to-date/valid tokens.
Unless I'm missing something here, the flow is kind of difficult to implement in my case.

Hi! Not sure if I have it documented well, or clearly, or at all, but looking at the source you can set the "tokenCallbackFunction" which will be called when the refresh token is refreshed... https://github.com/whatadewitt/yahoo-fantasy-sports-api/blob/master/YahooFantasy.mjs#L210-L213
Would this help you accomplish what you're looking to do?

So yes this is exactly what I'm talking about. But in this callback, you only have access to the access_token and the refresh_token (as far as I can see). It would be really useful if in this callback we had access to req so I could update my cookies like this: req.cookies.token = access_token.
Again, not sure if this is the best approach as I may be missing something. But for me, this would be the simplest way to persist the tokens.

So you want to persist them so they can be accessed on the frontend of your app? You could simply persist them to a data store at that point and then use a cookie you have more control over in your application to be able to pull the token data from the store.
Looking at the docs site, I think I have something set up similarily, but I couldn't tell you why I would have done it this way 2 years ago (assuming its because it was already mostly done this way).
https://github.com/whatadewitt/fantasy-docs-next/blob/fa46e26aba5e4ba40dde51dd1c9c9751fde36aa3/pages/api/auth/callback.js#L15-L43

I don't need to access it in the frontend. I'm doing an httpOnly cookie just like in your example.
I feel like I may not be explain my scenario well enough, so here's my flow:

Login and set user details/tokens in http only cookie. Works great.

yf.authCallback(req, async (err, { access_token, refresh_token }) => {

  ... do stuff ...

      yf.setUserToken(access_token);
      yf.setRefreshToken(refresh_token);

  ... do more stuff ...

      const userData = {
        username,
        oauthId,
        email,
        access_token,
        refresh_token,
        accountId: account._id
      };

      res.cookie('user', userData, COOKIE_SETTINGS); <-- set user info and token in httpOnly cookie

Every endpoint I use that involves Yahoo Fantasy I grab the access_token from the cookie and set it via setUserToken. Works great.

Endpoint:
router.get('/leagues', async (req, res) => {
  const { access_token } = req.cookies.user || {};

  try {
    const leaguesWithTeams = await getYahooLeagues(access_token);

    res.status(200).json(leaguesWithTeams);
  } catch (err) {
    console.log('err :>> ', err);
    res.status(200).json({ error: err.message || err.description, success: false, });
  }
})

getYahooLeagues function:
const getYahooLeagues = async (access_token) => {
  try {
    yf.setUserToken(access_token);
    const userGames = await yf.user.games();

   ... do stuff ...

Access token expires. No problem, the auto refresh token takes care of that. However, I can't get the new access_token and refresh_token from the tokenCallbackFunction back into my cookie because the tokenCallbackFunction doesn't have direct access to the req ( it's outside the endpoint ).

I want to stay away from always fetching the database to grab the access/refresh tokens for each call. However, it may not be the worst thing in the world to do so?
I hope this write up explains what I'm trying to do.

^ Last thing to bounce off of my previous comment:
It would be cool to somehow know if the access_token was expired without having to make a failed request. Then that way I could fetch the refresh_token from my db, manually refresh the token, and update my cookies, all inside of an express middleware before each call.

Hmmm interesting... I think I understand it all (as much as I can over a Github issues thread)
Do you have the code that I can take a peek at? Watching it break might help inspire me on how to do this better (to be honest this thing breaking is how I have devellped pretty much every feature 🤣 )

Hahah that's development in a nutshell, isn't it? 😆
Here's a codeshare of the main logic for authentication and accessing the libraries. Link
If you need more info let me know! I really appreciate your time.

I realized my docs page was not properly refreshing the token (normally I don't like to wait the hour because... time...)
I just created this PR which I am going to merge in, but can you follow something like this and access the req in the function this way?

Yes, this would work! My only concern here is recreating the YahooFantasy class on every call. Would this be suboptimal, or would it not make much difference?

I mean, I know what you're getting at, but unless you're getting an insane amount of traffic it should be fine, the instances should be garbage collected whenever that happens and I don't believe there's anything that will remain kicking around in memory afterwards.
That said, if you find a situation where this is leading to a clear memory issue for me, submit another issue and we can figure it out!

Okay great! Was just making sure. Thanks so much for your help I really appreciate it. The callback function expects a promise right?

Congrats! Shoot me a message with what you're building when its done!

Hey Luke! So when we last talked you said to let you know when my project was done. Well it's far from done but I finally released the beta! So feel free to go check it out at Stathound.app
Let me know what you think so far if you end up checking it out 😊

Looks really nice! Unfortunately I don't play much Fantasy Hockey anymore so I am getting an error on sign-in 🤣
Congrats and good luck with it!


Correct way of loading the CSS imported from component files

Laravel Mix Version: 2.1.11
Node Version: 9.6.1
NPM Version: 5.8.0
OS: Ubuntu 16.04.2 LTS

Description:
I'm using Bootstrap-Vue that imports CSS files from within the component files (see an example here). This way the CSS is injected as <style> tags into the <head> tag of the page where the component is used. I suppose this is not related only to Bootstrap-Vue and is true for other similar Vue packages.
I was trying different ways of configuring Laravel Mix to get rid of the <style> tags injection (in favor of including the corresponding CSS into my app.css), but with no luck. Any suggestions on what exact configuration/plugins to use in such situations?

You should check this on Stack Overflow and provide the necessary code there.

Here is my question there. No useful answers, unfortunately.

https://github.com/webpack-contrib/extract-text-webpack-plugin

Thanks, @ankurk91! Finally, it works for me.

Doesnt wotk with scss... Only works with .css files
let mix = require('laravel-mix');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
mix.js('resources/js/app.js', 'public/js')
.js('resources/js/admin.js', 'public/admin');
mix.webpackConfig({
    module: {
        rules: [
            {
                test: /\.css$/,
                loader: ExtractTextPlugin.extract({
                    use: 'css-loader'
                })
            },
            {
                test: /\.scss$/,
                loader: ExtractTextPlugin.extract({
                    use: ['css-loader','sass-loader']
                })
            }
        ]
    },
    plugins: [
        new ExtractTextPlugin("[name].css"),
    ]
});

ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./node_modules/extract-text-webpack-plugin/dist/loader.js??ref--8-0!./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./resources/js/admin.scss
Module build failed:
body{
^
Invalid CSS after "e": expected 1 selector or at-rule, was "exports = module.ex"
in C:\laragon\www\xdev\larapars\resources\js\admin.scss (line 1, column 1)
@ ./resources/js/admin.scss 4:14-279
@ ./resources/js/admin.js
@ multi ./resources/js/admin.js


[WIP] Simplify data conversion from Spark to TensorFlow: Spark converter basic implementation.

What does this PR do?
This is the first PR for project: Simplify data conversion from Spark to TensorFlow.
This PR include basic implementation, including basic API for spark dataset converter.
API
def make_spark_converter(
        df,
        cache_dir_url=None,
        parquet_row_group_size_bytes=DEFAULT_ROW_GROUP_SIZE_BYTES,
        compression=None):
    """
    Convert a spark dataframe into a :class:`SparkDatasetConverter` object.
    It will materialize a spark dataframe to a `cache_dir_url`.
    The returned `SparkDatasetConverter` object will hold the materialized
    dataframe, and can be used to make one or more tensorflow datasets or
    torch dataloaders.

    :param df: The :class:`DataFrame` object to be converted.
    :param cache_dir_url: A URL string denoting the parent directory to store
        intermediate files. Default None, it will fallback to the spark config
        "petastorm.spark.converter.defaultCacheDirUrl".
    :param parquet_row_group_size_bytes: An int denoting the number of bytes
        in a parquet row group.
    :param compression: True or False, specify whether to apply compression.
        Default None. If None, it will automatically choose the best way.

    :return: a :class:`SparkDatasetConverter` object that holds the
        materialized dataframe and can be used to make one or more tensorflow
        datasets or torch dataloaders.
    """

class SparkDatasetConverter(object):
    """
    A `SparkDatasetConverter` object holds one materialized spark dataframe and
    can be used to make one or more tensorflow datasets or torch dataloaders.
    The `SparkDatasetConverter` object is picklable and can be used in remote
    processes.
    See `make_spark_converter`
    """

    def __init__(self, cache_dir_url, dataset_size):
        """
        :param cache_dir_url: A string denoting the path to store the cache
            files.
        :param dataset_size: An int denoting the number of rows in the
            dataframe.
        """

    def __len__(self):
        """
        :return: dataset size
        """
    def make_tf_dataset(self):
        """
        Make a tensorflow dataset.

        This method will do the following two steps:
          1) Open a petastorm reader on the materialized dataset dir.
          2) Create a tensorflow dataset based on the reader created in (1)

        :return: a context manager for a `tf.data.Dataset` object.
                 when exit the returned context manager, the reader
                 will be closed.
        """
    def delete(self):
        """
        Delete cache files at self.cache_dir_url.
        """

Example code:
from petastorm import make_spark_converter
import tensorflow as tf

# specify a cache dir first.
# the dir is used to save materialized spark dataframe files
spark.conf.set('petastorm.spark.converter.defaultCacheDirUrl', 'hdfs:/...')

df1 = ... # `df1` is a spark dataframe

# create a converter from `df1`
# it will materialize `df1` to cache dir.
converter1 = make_spark_converter(df1)

# make a tensorflow dataset from `converter1
with converter1.make_tf_dataset() as dataset:
    # the `dataset` is `tf.data.Dataset` object
    # we can train/evaluate model on `dataset`
    # when exit the with context, the reader of the dataset will be closed
    ...

# delete the cached files of the dataframe.
converter1.delete()

Follow-up PRs

Support delta format for materializing dataframe.
Support advanced params for make_tf_dataset, including:

sharding (used in distributed training)
batch size
prefetch
autotune

Support pytorch

Add method SparkDatasetConverter.make_torch_data_loader

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: liangz1:x: WeichenXu123You have signed the CLA already but the status is still pending? Let us recheck it.

 All committers have signed the CLA.

@tgaddair @selitvin Address all comments. Ready for review. :)

@selitvin Ready for review.

@selitvin Ready.


wasm: add basic docs

Change-Id: I35f8f86bfa165d415e4fbc9f3a7c037e968cac25
Commit Message: add wasm overview
Risk Level: low
Testing: none
Docs Changes: yes

/assign @mpwarres @lizan

/docs

/docs

/docs

@kyessenov headsup that you dont need to regenerate the /docs link - it redirects to the most recent build automatically

Tagging @wbpcode in case he also has any comments


Update settings menu to make it more in line with iOS settings menu behaviour

Summary of user feedback request
I think it would be a good idea to make the menu behave more like the IOS or Android settings apps. That way beginners don't need to learn a new behavior when looking through the settings. In addition, the new reorganized Settings menu should look less cluttered.
I'd like to see each heading in the Settings menu turned into a button, and then it should open up the group of settings under the current heading.

I can look into this

I've updated my local repo and have a new version of the settings page that accomplishes the tasks put out. However, my github desktop is having issues synching with my XCode.

nevermind I figured it out. I will look into improving the overall look of the page and then hopefully commit the new page tomorrow and we can push it into main for the next version of the app

@jchudge Who originally suggested this? Can you ask them to clarify what they meant?
I can't say I ever needed to "learn a new behaviour"  to use it. I also don't recall seeing collapsible sections in the iOS settings app.
I agree it could be better organized, but I'm not sure that just adding collapsible headings will be a positive change.
In particular "About" might be better placed in the main menu.

This is John Joseph A. Gatchalian, and I made the proposal. You've already seen my work updating the Weblate translations in English and Spanish, and I also proposed the Auto Unmute feature. What I wanted was that the Settings menu would feel more like IOS Settings. I noticed that the main menu already feels like IOS Settings so maybe it would be a good idea to copy the structure of the main menu into the Settings menu. I didn't intend the new menu to have collapsable headings in the first place. I'm proposing this change because I'm a teacher of assistive technology for blind senior citizens who speak English and Spanish, and I don't want seniors to re-learn a new behavior if they are used to smartphone settings. In order to help veteran Soundscape users not get lost, I want the buttons to keep the original names "General Settings," "Media Controls," "Manage Callouts," "Soundscape Street Preview," "Troubleshooting," "About," and "Telemetry." In the future, "General Settings" may be shortened to "General," "Manage Callouts" may be shortened to "Callouts," and "Soundscape Street Preview" can be shortened to "Street Preview." There's also another proposal that I made to remove the "Audio Beacon" menu from "General Settings" and put it between "Media Controls" and Manage Callouts." Also, we don't want a Troubleshooting button nested inside another Troubleshooting button so it may be necessary to scrap the Troubleshooting heading and use the current button since it is already on the main Settings screen. My new proposal will have 8 buttons rather than a long list of settings on one page. Then when pressing a button, it should open up the appropriate category. Thanks.

If you don't feel like any of the proposed changes I made are necessary, that's fine also. Originally I proposed and updated the documentation to line up with the new Settings menu, but I made some changes last night so that the documentation doesn't need to line up with the new Settings menu anymore. The latest changes should show up on the Weblate fork anytime. We can scrap this issue and move on, or we can try it out. I don't have to update the documentation any further.

I will try to complete the changes you requested

Thanks, and remember that the button names should also be localized. We want to make sure that the English and Spanish speakers can get around in the "Settings" screen.

@MBtheOtaku and @JJGatchalian I discussed this with @RDMurray briefly yesterday and we agree that for now, keeping things as simple as possible will allow this feature to be completed and pushed into the next build. @JJGatchalian I greatly appreciate your point that the updates you have made to the documentations do not need to relate directly to the Settings menu and there is no dependency between the two of them.
@MBtheOtaku  let us revert back to the current style, layout, and behaviour of the Settings screen. Once you have reviewed, please push it through :-)

Hi, so sorry for not seeing this sooner. When you mean revert do you mean revert it back to the version where we did not have any dropdown or expandable sections?

@jchudge  @MBtheOtaku  I think there's a bit of a misunderstanding. There's nothing to revert since the branch hasn't been merged yet.
We can keep the PR open and discuss exactly how the settings reorganization is going to look for a future release.
I'm sorry for not pointing this out sooner!

😌

Ok sounds good. I will leave the pull request open. Just as a note my pull request also contains the separate audio beacon section as well.


Fix Python 3.7 GenericMeta not found issue.

Wow, thanks @hairychris for opening a PR. Could you squash your commits?

Done, I believe in project settings on Github you can turn on a 'Squash and merge' button if it makes it easier in the future.

Would you please consider turning issues on? There are some things I've spotted that I don't know whether are bugs or not.

I didn't even realize that issues were off. And yeah, I don't want to squash everything, but the fluff commits should be squashed. I'm not sure though, why the other build checks aren't running.

They passed before the squash.

I've enabled issues. Please feel free to add as many as you can find. I just forked this project and have spent all the time so far, working on tooling to get this project up and running as a serious project.
Lastly, I just changed the CircleCI settings.

Tooling looks good, using this library in a project so will try and be helpful where possible. Thanks for tidying these projects up a bit and getting development all into one place.

Okay, I had two conflicting settings selected (and they didn't have a problem with me clicking save).
Thank you so much for your patience and all of your help.

No worries, more than happy to get involved, perhaps the first issue should be a roadmap.

On 14 Sep 2018, at 01:48, Aaron<EMAIL_ADDRESS>wrote:
Okay, I had two conflicting settings selected (and they didn't have a problem with me clicking save).
Thank you so much for your patience and all of your help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/abatilo/sanic-swagger/pull/7#issuecomment-421195939, or mute the thread https://github.com/notifications/unsubscribe-auth/AGSzrfhkbWdxWPd2StV34ROtkLgpFI1gks5uavzxgaJpZM4WoMFy.

We should probably document all this in a CONTRIBUTING.md file

Yeah. I made an issue to add how to run these things locally.

At least I know that the tooling is all working :|

Thanks, got tooling and editor setup properly here so everything should be smoother now.


How can I multiply a float number?

I'm basically want to convert money from one currency to another, here's my idea.
But multiply does not support float type
So what's the best way to achieve this?
func Test_MoneyMultiply(t *testing.T) {
	sgdMoney := money.NewFromFloat(100.23, "SGD")
        exchangeRate := 5 // TODO: What about the current exchangeRate is 5.3? How can I achieve this?
	tmp := sgdMoney.Absolute().Multiply(int64(exchangeRate))
	convertedCnyMoney := money.New(tmp.Amount(), "CNY")

	fmt.Println(sgdMoney.Display())
	fmt.Println(convertedCnyMoney.Display())
}

We have not yet used conversion in our projects, but I believe it would make an excellent addition as a new feature. Here's an example implementation:
// Convert creates and returns a new instance of Money with the converted amount
// multiplied by a given rate. The final currency amount is rounded.
func (m *Money) Convert(code string, rate float64) *Money {}

// Example of usage:
sgd := money.NewFromFloat(100.23, "SGD")
cny := sgd.Convert("CNY", 5.3)

fmt.Println(sgd.Display()) // 100.23
fmt.Println(cny.Display()) // 531.22

Do you @LintaoAmons think this implementation would cover your use case? Would you be willing to implement it?

I saw their is no dependency in this project, but my noob mvp version depends on the shopspring/decimal module.
My noob mvp version here...
package moneyutil

import (
	money "github.com/Rhymond/go-money"
	"github.com/shopspring/decimal"
)

// SGDtoCNY converts SGD to CNY based on the given exchange rate
func SGDtoCNY(sgdMoney *money.Money, exchangeRate float64) *money.Money {
	sgdAmount := decimal.NewFromInt(sgdMoney.Amount()).Div(decimal.NewFromInt(100))
	cnyAmount := sgdAmount.Mul(decimal.NewFromFloat(exchangeRate)).Round(2)
	cnyMoney := money.New(int64(cnyAmount.Mul(decimal.NewFromInt(100)).IntPart()), "CNY")
	return cnyMoney
}

This is such a cool idea, I was looking for this feature.
I really wonder about the issues introduced by using floating point numbers for the ratio of exchange though.
As you know, floating point numbers are generally discouraged from being using for monetary amounts,
and I think by extension for the ratio of exchange.
Maybe the use of Bigints, or maybe taking two int64's as a ratio would be a solution?
(two int64s wouldn't mean a new dependency. Which is a bonus)
References:
https://dzone.com/articles/never-use-float-and-double-for-monetary-calculatio
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

https://github.com/LintaoAmons/go-money

@cameronelliott Here's my fork, it depends on shopspring/decimal.
https://github.com/LintaoAmons/go-money/blob/a21b7c2bdfad5678304a88dc189e7b8e1a45c0a5/money.go#L24
I replace the core type from int64 to shopspring/decimal to allow more type of calculations.
But this change is only to cater my own requirements, you can take a look if you want.


Travis CI more improvements

This pull request is a follow up to #573
In https://github.com/Geal/nom/pull/573#issuecomment-326286088 I showed a rewritten version but didn't make a PR. Please check out this changes.

Split of .travis.yml into configuration part and execution script part (graphically it uses two newlines to mark this)
Dropped Rust 1.2.0, as nom doesn't compile on this version anymore. Maybe it is worth to add some minimal version of Rust compiler? Are there branches that you support with 1.2.0?
Bash's case used to show differences in scripts running on different versions. It looks much clearer this way
Removed use of stream flag
Compilation without std flag is now done only on nightly, as on different compiler versions it just won't work. It is OK, as it uses feature(..) mechanism. (maybe someday alloc will go stable and then we could test against other channels)

I think this closes #500

Coverage remained the same at 86.201% when pulling f3744bf23c108198e36b70dc793df084afe54168 on kamarkiewicz:travis-rewrite into 21c0f8cba5d01d3af0b702e1a146c6fbc9b05c2b on Geal:master.

Coverage remained the same at 86.201% when pulling 7ca53ee865e2a7118ac0e50195dc25fb985d2412 on kamarkiewicz:travis-rewrite into a8af835f9330713a87353cc2536453a483f7b56b on Geal:master.

oh, this looks much better! I'm sorry, I had not seen this PR when I made some changes a few days ago. Thank you for your help!

the tests don't pass right now because the regexp feature does not work without std, and the tests don't work without std either. I'll fix this right away


iOS RNIap.buyProductWithoutFinishTransaction(productId) neither resolves nor rejects

Version of react-native-iap
2.5.5
Version of react-native
63.4
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
buyProductWithoutFinishTransaction() either should resolve or reject with error.
Actual behavior
nothing happens, application continues to wait for the response
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
I am currently using RNIap in a legacy application. For in app purchases, I am using RNIap.buyProductWithoutFinishTransaction(productId) together with RNIap.getProducts(sku). Mostly, it works fine and returns a successful transaction. In other cases however, the API neither resolves nor rejects. getProducts() API always returns the result (I verified this couple of times). Similar issue was reported earlier this year but got no response. Here's the code snippet.
RNIap.getProducts(sku)
    .then(product => {
        console.log("product", product);
        RNIap.buyProductWithoutFinishTransaction(productId)
             .then(purchase => {
                 /*some internal processing*/
             })
             .catch(error => {
                 console.log(error);
             });
    })
    .catch(error => { console.log(error) });

What could be the reason behind this issue? For further context, I observed this issue in iOS v14.6 in iPhone X & iPhone 6 devices.

Hello @TAM360 , buyProductWithoutFinishTransaction has been deprecated and removed for a long time. Please update your version of react-native-iap to the latest. I'll close since this is no longer supported. Please feel free to  reopen if you encounter any other issues.


Use auth info (if present) when updating pipelines

I was getting a lot of these errors since my pipelines are in a git repo which requires authetication

This PR should fix that.
Please let me know your thoughts.
Thanks!

Codecov Report

Merging #62 into master will increase coverage by 0.23%.
The diff coverage is 25.92%.

@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   53.61%   53.84%   +0.23%
==========================================
  Files          14       14
  Lines        1218     1222       +4
==========================================
+ Hits          653      658       +5
+ Misses        496      493       -3
- Partials       69       71       +2

Impacted Files
Coverage Δ

pipeline/ticker.go
0% <0%> (ø)
:arrow_up:

pipeline/git.go
48.27% <29.16%> (+3.69%)
:arrow_up:

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 3d8da40...f9809b9. Read the comment docs.

Looks good! Can you add tests please? :) The policy is, that no code change or code goes in without tests. :)

@bidhan-a hmm, you'll have to take a look at the git repo framework. see how they do it in their test cases.
Ultimately you can do an integration test with actual credentials. Create a test user and test repo for it. But that would a last resort I think.
Otherwise, this might be a good chance to do #44 :D

I couldn't find any test case in go-git which handles repos that require authentication :confused:
It seems like we'll have to look into other options.

@bidhan-a Oh wait. I think we actually don't have to. Just test this function in the three ways:
https://github.com/gaia-pipeline/gaia/pull/62/files#diff-8b0b0b31212c3aeba36c22017d34614dR144
First, if you provide a username and password the authentication will be that. If not, than there is a public key auth and if neither then nil, nil is returned. We don't have to test github authentication process in this PR because frankly, we don't care. It's a third party component.
We can think about an integration test, but that's minuscule compared to three things we can test now. How does that sound?

@Skarlso Yep, that sounds good to me. Thanks! :grin:

Good job, @bidhan-a  🤗 In my opinion this is ready to merge. @bidhan-a @Skarlso any objections?


Adjusted Concentration Spells for Wildshape and Call Lightning

♻ @Celestro I've made the following changes:

Decided to make the first cast of Call Lightning only create the area, so the range indicator shows the full area that will rain.
On the turn the spell is cast, you can use the free action to call lightning on a radius. On subsequent turns, it will cost an action. I have to adjust the localization entries to better explain this
Changed the target conditions for the damaging spells, in a way that it highlights the characters which will be affected, providing better clarity to the player if someone is on the edge of the rain
Removed the DestructiveWrath() conditions, since it wasn't working (perhaps it's something on your mod you forgot to port over?)
Provided a localization for the aura status, since yours was using a non-existing one

Yeah I was actually going to suggest a change on Call Lightning to establish the area first and all that since someone did mention it was kind of awkward.

Then it's necessary to include the Destructive Wrath function on this mod as well, even if it relies on non-existing statuses or passives, because calling the non-existing function was causing the spell to deal no damage at all. And should this be a fix present on RAW, 5e or both?

Actually, testing it earlier, it turns out it does work. It didn't appear that would be the case but apparently it functions differently than the other MinimumRollResult Boosts so it's fine for that one to be gone altogether.


Research Mach-O UPX Patching

Will have to do Load Command/Segment injection, which will transfer over to regular Mach-O formats.

https://github.com/secretsquirrel/the-backdoor-factory#the-backdoor-factory-is-no-longer-maintained-or-supported


Using the client directly?

How can I access the client directly? I want to do something like this:
client
  .query('{ test }', {
    /* vars */
  })
  .toPromise()
  .then(result => {
    console.log(result); // OperationResult
  });

In regular Urql, I would create a client, then export the client to be used outside of Vue components. How can I do this using Nuxt Urql? From my understanding is that Nuxt Urql already creates the client in the Nuxt config file, but is there a way to access that client somehow without defining a new one?

Hi,
You can call useClientHandle to retrieve the client:
const handle = useClientHandle();

handle.client
  .query("{ test }", {
    /* vars */
  })
  .toPromise()
  .then((result) => {
    console.log(result); // OperationResult
  });

See https://formidable.com/open-source/urql/docs/basics/vue/#chaining-calls-in-vue-suspense
Or an alternative to retrieve the client injected in the nuxt app:
const { $urql } = useNuxtApp();

$urql.query("{ test }", {
    /* vars */
  })
  .toPromise()
  .then((result) => {
    console.log(result); // OperationResult
  });

I tried
const { $urql } = useNuxtApp();

$urql.query("{ test }", {
    /* vars */
  })
  .toPromise()
  .then((result) => {
    console.log(result); // OperationResult
  });

But I am getting the error: '$urql' is of type 'unknown', How would I resolve this?

The same problem applies to me. example defineNuxtRouteMiddleware dont used. pleaa re open issua

Looks like { $urql } is more an autocomplete failure with code editor.
Nevertheless, version 1.7.0 introduces the useUrqlClient composable to access the URQL Client directly : 03b102dfd1eb66f0180344d908a12f11f3f6f91b
See documentation for usage


who vs whom update from images not showing up

maybe the preview is somehow after that change but I don't think so - or the previews don't reflect that??

this is done


Add configurable limit to results per page

Rational
When searching for researchers or similar in DSpace CRIS, the user can modify the rpp GET parameter and get all results at a single blow.
Even DSpace CRIS instances, which hide the 'Results Per Page' option can be exploited.
I see a major issue here, because this makes DSpace CRIS vulnerable to DOS.
Our instance currently holds around 44000 publications. I've sent a few requests, which requested all publications at once with the method mentioned above and the instance showed an internal server error for several minutes for users visiting the website.
The problem is, that in our case SOLR is overloaded, which gives an internal server error, in other case the connection pool was exhausted, which gives an 503 'Service not available' error.
This pull request adds the option to configure a maximum for 'Results Per Page' to solve this specific problem.

+1 from me for this PR, it looks simple and effective.

Upstream already acknowledged this as critical bug and scheduled it for DSpace 6.4 plus porting it forward to DSpace 7 and back to DSpace 5.x (see https://github.com/DSpace/DSpace/pull/2306 and https://jira.duraspace.org/browse/DS-4120).
DSpace CRIS requires a few additional adaptions in dspace/config/spring/api/discovery.xml but apart from that it might be sufficient to pull upstream. Nevertheless, I'll check again if the default values fit their purpose.

hi @r3r57 thanks again for the PR. It will be perfect if you can align it to the latest changes agreed in the upstream setting the maxRpp back to a 100 default.

@abollini no problem, I've also reverted the latest changes in the getter method.


Double Emit of Contructor when using Getter Decorators

Bug Report
With the implementation of Stage 3 Decorators in TS 5, using a getter decorator can result in the content of the constructor being duplicated in the emitted code, for example:
            constructor() {
                this.computedVal;
                console.log("As will this");
                __runInitializers(this, _instanceExtraInitializers);
                this.computedVal;
                console.log("As will this");
            }

🔎 Search Terms
Constructor duplicate decorators getter
🕗 Version & Regression Information
Started seeing this when I updated a library from TS 5.0-beta to TS 5.0.2.
This changed between versions 5.0-beta and 5.0.2. Not applicable to prior versions.
⏯ Playground Link
Playground link with relevant code
💻 Code
function computed(target, ctx: ClassGetterDecoratorContext) {
    ctx.addInitializer(function () {
        console.log("INIT")
    })
    return target
}

class Bla {
    // Things seem to work as expected if a field or accessor is also defined,
    //   but additional getters/setters or methods continue to see the double emission
    // name: string = ""

    @computed
    get computedVal() {
        console.log("This will print twice")
        return 3
    }

    constructor() {
        this.computedVal
        console.log("As will this")
    }
}

new Bla()

🙁 Actual behavior
Constructor logic is duplicated:
            constructor() {
                this.computedVal;
                console.log("As will this");
                __runInitializers(this, _instanceExtraInitializers);
                this.computedVal;
                console.log("As will this");
            }

🙂 Expected behavior
Constructor logic should not be duplicated:
            constructor() {
                __runInitializers(this, _instanceExtraInitializers);
                this.computedVal;
                console.log("As will this");
            }

The underlying issue is that the logic to inject __runInitializers() into a constructor incorrectly called addRange/visitNodes twice when a super() wasn't present. This only occurred for getters, setters, and methods because __runInitializers() is injected into the constructor when there are no fields present, but is injected into the first field initializer when fields are present.


Update Readme with Tag

Add some documentation regarding tagging best practice to allow for easier management.

titan-layer: dmz
titan-network: titan-network-dev
titan-zone: dev.mycompany.com


ENGDOCS-744 Compose Install Fixes

Changed headers case from title case to sentence case
Fixed typos
Changed compose version var

@dockertopia I've suggested changes to the files. Looks like there are conflicting files as well. Could you also take a look at these?

I believe I have addressed all comments and solved the merge conflicts, but please let me know if I missed anything. @usha, @StefanScherer could you PTAL. Feel completely free to add anything that you'd still like to discuss/see addressed. Thanks.

There are broken links in https://deploy-preview-14892--docsdocker.netlify.app/compose/install/#where-to-go-next. Details - https://github.com/docker/docker.github.io/runs/6814146716?check_suite_focus=true#step:4:460


how to set an Sticker in specific position in view

Hello ,
i want to save the last position of Sticker , and when i reload an app i want to set the Sticker on last position
do you have an idea ?

@HoussemHfaidh i use for this Matrix

If it helps, I wait until after the sticker is added, in a StickerView.OnStickerOperationListener, and then adjust its matrix:
@Override public void onStickerAdded(@NonNull Sticker sticker) {
    // you provide desired_w, desired_h, desired_left, desired_top
    sticker.setMatrix(freshInsetMatrix(desired_w, desired_h, desired_left, desired_top));
  }

  private Matrix freshInsetMatrix() {
    float sticker_w = inset_sticker.getWidth();
    float sticker_h = inset_sticker.getHeight();

    float scale_x = desired_w / sticker_w;
    float scale_y = desired_h / sticker_h;

    Matrix matrix = new Matrix();
    matrix.postTranslate(desired_x / scale_x, desired_y / scale_y);
    matrix.postScale(scale_x, scale_y);
    return matrix;
  }

Hi,
thank you for your support :)
2017-09-20 10:44 GMT+01:00 instantiator<EMAIL_ADDRESS>
If it helps, I wait until after the sticker is added, in a StickerView.
OnStickerOperationListener, and then adjust its matrix:
@Override public void onStickerAdded(@NonNull Sticker sticker) {
// you provide desired_w, desired_h, desired_left, desired_top
sticker.setMatrix(freshInsetMatrix(desired_w, desired_h, desired_left, desired_top));
}
private Matrix freshInsetMatrix() {
float sticker_w = inset_sticker.getWidth();
float sticker_h = inset_sticker.getHeight();
float scale_x = desired_w / sticker_w;
float scale_y = desired_h / sticker_h;

Matrix matrix = new Matrix();
matrix.postTranslate(desired_x / scale_x, desired_y / scale_y);
matrix.postScale(scale_x, scale_y);
return matrix;

}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wuapnjie/StickerView/issues/58#issuecomment-330801676,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASXm7KmGgT74c_brvXYCawG-CGwH_dgrks5skN54gaJpZM4O2U9l
.

--
*Cordialement *
Houssem Hfaidh
Web & Mobile Developper
Tel : 00216 20 26 94 16

@instantiator  how can i place sticker below another sticker?

@instantiator  it works for me but for diff devise position is little changed how can i fixed it for all devise


Add the ability to create placeholder for nested objects like {client.name}.

See preciousforever/sketch-data-populator#6

This works great, thanks a lot!

Works seamlessly for me too, I was able to use complex JSON files in my projects. Awesome :)


upgrade support for activerecord 4 and up

this change:

drops support for activerecord 3
adds support for activerecord 4 and up (until 4.2.6).

since rails changed the way structure is dumped (it's no longer done from a single adapter file), i changed the implementation to enhance the db:structure:dump task and do
some post-processing on it to remove lines that we don't need. this consists of:

removing comment lines (starting with --)
removing AUTO_INCREMENT=123456 substring
removing mysql SET directives (starting with /*)
removing extra line at the bottom of the file which is added by rails when it's dumping version statements.

thanks for looking at this, @steverice 😛 i will just close this now.


Doc for controller-runtime logger based logging.

Description: Update the SDK logging doc to use the controller-runtime logger for Kubebuilder projects.
https://issues.redhat.com/browse/OSDK-1090

/hold

Hiding Kubebuilder related pages for now, until the release of website.

/unhold

@hasbro17 PTAL.


Is there any model that can support tflite conversion?

I have noticed that enable_tflite_convertible: is commented as `not support true' in all models' config.
Any plan to implement this function?

I tried to convert RNNT and LAS structures to TFLITE before, but unfortunately both failed.So the current plan is to validate functionality, provide relevant pre-training models and performance results, and finally tackle TFLITE.
By the way, I can only study this problem in my spare time, so I may not have any results until the end of the year.
------------------ 原始邮件 ------------------
发件人:                                                                                "Z-yq/TensorflowASR"<EMAIL_ADDRESS>发送时间: 2020年10月13日(星期二) 下午3:45
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS>主题: [Z-yq/TensorflowASR] Is there any model that can support tflite conversion? (#7)
I have noticed that enable_tflite_convertible: is commented as `not support true' in all models' config.
Any plan to implement this function?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


ImportError: cannot import name 'RichTextField'

Hi i've followed all the directions but getting this error when i try to run my server.  Any ideas?

No ideas, certainly not without a full traceback anyway.


Block WebRTC doesn't work on DuckDuckGo Browser/FFLite browsers

Steps to reproduce

Switch-on Stealth Mode
On Block WebRTC option
Chrome browser - the situation is not reproduced
But if you check on DuckDuckGo Browser or FirefoxLite. WebRTC is not blocked

Expected behavior

Screenshot:

Actual behavior

Screenshot:

As the issue is not reproducible on the older android version, where HTTPS filtering of DuckDuckGo Browser is possible, and the browser does not accept our certificate on the latest android versions, it seems like the address leaks with TLS encrypted data.
So, there is nothing we can do in this case.


Clean up formatting of spectra_generator.md and related .py files

Clean up formatting by:

Organize imports and remove unused
Run autopep8 with a max line length of 100

To Do:

[ ] Manually wrap long lines of text in spectra_generator.md and comments in .py files

@bsipocz I ran autopep8 to clean up the formatting. Does it look reasonable to you, or do you have other suggestions? The biggest remaining issue that I see is that some lines are still quite long. I'll point to one below. I will wrap long lines of text/comments manually (about to do that now) but I'm not planning to wrap lines of code manually. I tried using the --aggressive flag but that made it look really ugly in some spots, at least to my eye.

and we need a skip ci label, as there is no reason for run CI for these notebooks until they are actually opted into the rendering/CI

Thanks @bsipocz.
I'm merging this now. More PRs will follow to complete the tech review.


[hub] Fix api.create_repo call?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Wrap Starlette's session in an AttrDict

Testing status:
fasthtml:

nbdev_test passes except oauth, which also fails without this patch (No such file or directory: '../examples/gh_secret.env')

manually testing fasthtml-examples using sessions:

todos2: works, including when modified to use attribute syntax
image_app_session_credits: skipped (requires giving Replicate my billing info)
data_spot_check: works
03_pictionary: No such file or directory: 'multiplayer.css' (same error without this patch)

Also confirmed that home and about work, although neither appears to use sessions.

Thank you! PS: tag me for review, or at-mention me, so I don't miss PRs in the future.

Oh and also - thank you for the careful testing :D

Thanks, and will do!


fullscreen resizing does not work properly on linux wayland?

wait for glutin to be updated

put it in as a feature gate


GitLab API support.

Would pull requests be considered to support the GitLab API to allow Prose to edit GitLab content?
GitLab also has a CRUD file API: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/repository_files.md
This was mentioned at https://github.com/prose/prose/issues/508#issuecomment-21742995, but we should have a separate issue for it.
The goal is to develop something like: https://github.com/booktree/booktree
This should be implemented as a portable API wrapper that uses a single interface for both GitHub and GitLab. If such wrapper existed and were used, support for other providers like Bitbucket would be simple as well https://github.com/prose/prose/issues/545

Is anyone inclined to work on this? Recommending to close this issue unless there is a potential chance of someone picking it up.

I too would like to see this feature.  Only alternative is to give in to Penflip, which isn't open source but does use the same exact stack of GitLab and Prose.  Enabling Prose to make use of GitLab API functionality would enable anyone to create their own private Penflip instances in the cloud.  That would open the door to a lot of exciting prospects such as combining GitLab and Prose with Jekyll to make a fully-collaborative, versoning CMS or Wiki without relying on third party servers such as GitHub  It is briefly touched upon here.  Would be a shame if this issue was closed.

@purldator Penflip is built on GitLab https://twitter.com/madebyloren/status/468917323588698112 and so is O'Reilly Atlas https://atlas.oreilly.com/ , another closed source one, so I don't think it makes much difference. I started considering such a project at: https://github.com/booktree/booktree

@cirosantilli Yes, that is where my first link leads from.  Booktree looks like a good alternative but for my uses I am not looking to publish in that measure.
The difference is Prose allows non-developers to interface with git (Via GitLab).  I've already tried to get a non-developer to use GitLab alone.  They refused as it was 'too complicated'.  Prose would mitigate that hard negative response.

@purldator

Prose would mitigate that hard negative response.

That is exactly my goal: paste a prose or something else in front of gitlab to make it easier on newbs :) Let me know if you have new results.

Looping in @aguynamedloren as he has previously expressed interest in contributing back to Prose. If Penflip already has a working GitLab backend, a pull request adding a pluggable backend structure with GitHub and GitLab support could be a great contribution.

Any progress made on this?

If no one is working on this, I may have time* to write a PoC SCM abstraction tailored for existing Github and requested Gitlab integration. I'd be happy about any pointer or existing code snippet anyone may already have.

Pending project management decision.

+1 I would also love to see Gitlab supported by prose, it would allow me to collaborate better with writers. Thanks much!

Any update on this? Is it a big amount of work? Could we fund it on bountysource?

Update on this: iilab sponsored some work relating to Prose and Gitlab. One of the items they sponsored was a Gitlab port. I have 90% of the work done in my fork dereklieu/prose with the goal of merging it back into prose/prose sometime within the next few months. When it's ready I'll post an update in this ticket.
If you're curious on the progress and want to start using it now, it's still somewhat buggy and I can't offer you any support, but you're welcome to pull down my fork. You'll need to set up and configure your own instance of something like prose/gatekeeper.

@dereklieu
Are there any updates on your integration of prose with gitlab?

No, I'm working on an elections-related project at the moment and won't have time to come up for air until after Nov 8.

I would love to see this as well.
I noticed a couple people mentioned private repos on gitlab, but I didn't see it mentioned explicitly that you get them for free.
Being able to keep my site source private, but not pay a monthly to do so, is why I would love to see git lab support.

Private repos are free on gitlab.com

My point precisely :)

I have a gitlab fork of prose deployed at lieu.io/prose. The github repo is here. This is a very very early beta and some features like forking haven't been implemented, but the core editing workflow is in place. Feel free to try it and open issues specific to that fork at the repo I listed above.

@dereklieu awesome, I'll give this a test. What features are missing?

Besides forking I honestly can't remember, it's been a while since I was in that code.

Hi folks, would love to know more about this. Our project MailTape is heavily dependent of Prose but as we want to move to a private repo and are a non-profit organization Gitlab would be the solution to choose. Any alternative maybe?

@ImaCrea for now I invite you to try out the gitlab fork I referenced above, to see if it'll if it'll fit your needs.

@dereklieu Can I run your fork in my own environment and against my own Gitlab CE instance?

@timwood of course.

Any news on stabilizing the GitLab support and merging it back to official prose?
Can I help in any way?

Ditto to @caiofbpa 's comment, I'd be happy to help test!

I'd be interested in this also. What do we need to do to make this happen?

Any news on this? It has been more than 6 months.

@dereklieu's fork no longer works at all on the latest GitLab. It uses the v3 API, which has been removed in favor of v4. I'm going to see if I can get it rebased and working when I've got some time.

+1 for this project, any update...?


Update users

Coverage remained the same at 24.686% when pulling 998ed8560d0c855b9301409052bbb74ca5aba0aa on update-user into ae00944ccdff67bceeeaf983fe0777dab6c41c73 on master.


refactor: Alias function for safe_sign_and_autofill_transaction called sign_and_autofill

High Level Overview of Change
Added alias function for safe_sign_and_autofill_transaction called sign_and_autofill
Context of Change
safe_sign_and_autofill_transaction is too long and unnecessary -- potentially deprecate/remove in xrpl-py 2.0
Type of Change

[ ] 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 not work as expected)
[x] Refactor (non-breaking change that only restructures code)
[ ] Tests (You added tests for code that already exists, or your new feature included in this PR)
[ ] Documentation Updates
[ ] Release

Function has been renamed to autofill_and_sign

Don't forget to change the PR name :)

Does safe_sign_and_autofill still work in the tests? (I.e. is it still exported?)


Field#.coordinates() required

Description
A method is required for fields that return the coordinates of a certain Field object.
Problem to Solve
When filtering the Fields List of a Segment (e.g. to filter Fields of a certain type) the coordinates of the Fields cannot be derived from the Field itself.
Proposed Solution
Add attribute coordinates to class Field or add a method Field#.coordinates().
Use Cases
In order to calculate a path to a field of a certain type (e.g. Passenger or Goal) a Field object should hold it's coordinates.
Alternatives
Calculation of paths by method Board#.find_nearest_field_types(). This method actually has a bug.
Additional Context
We would prefer filtering the field list of the segments to calculate paths.

Hi,
Thanks for the idea. Unfortunately, this goes against the idea of the data structure for this game. An attempt has been made to keep redundancy to a minimum, which is why the coordinates are stored via the space in the segments and there in the array and thus indirectly. It would therefore be superfluous to store the coordinates in the array itself. The only advantage would be the simpler determination of the coordinate.
There is already a function that can convert the cube coordinate into the index for the array.
   // part if the CubeCoordinate struct
    pub fn array_x(&self) -> i32 {
        self.q.max(-self.s)
    }

    // part of the Segment struct
    fn array_coords(&self, coords: CubeCoordinates) -> CartesianCoordinate {
        CartesianCoordinate::new(coords.array_x() + 1, coords.y() + 2)
    }

Accordingly, if you want to determine the cube coordinate from the array index, this would be the following calculation:
$$
\begin{align*}
q &= x - y + 1 \
r &= y - 2 \
s &= -q - r
\end{align*}
$$
I've added a new method (cube_coords) to Segment which can do this calculation.


[Feature] Export (backup) chat history in human-readable format for archive

Relying on Keybase chat history and attachments for important reference points, notes, facts or events means that backups need to be easily provided - e.g. a human-readable chat history dump with the attachments fetched and stored offline in the archive.
The sender, the date/time the message was created/sent, the content (text and/or image etc), potentially the time it was edited (if any)
This can be in any convenient format e.g. HTML, or Richtext, provided it can be sent onwards easily e.g. for audits, accounts, legal, or just to avoid catastrophic loss of important chat & file data.
The JSON format is already available via keybase chat api on the command line, but the resulting JSON could easily be converted to human-readable format, and especially needs to  have the attachments fetched and embedded/stored locally.

@richardsj Maybe you should know that keybase is based on that anybody who contributed can delete their contributions. So if you want reliable backedup use your own xmpp server.

I think I've proposed something similar be stored in the team Files under possibly hidden by default channel named specific subdirectories so that it is by default keyed to only access by the member users, and then if somebody chooses to move/copy it to another folder in the team structure it will get rekeyed to the appropriate access level.

In case someone is interested, I made kbe.

@zapashcanon the tool only downloads 1000 messages, see https://github.com/keybase/client/issues/16516

Thanks @zapashcanon, that was pretty useful (it would be a great to make it something you could run repeatedly to grow the download).
@Destroyer TIL I learned that Keybase chat doesn't appear to keep more than about 1,000 messages.  That's a major bummer as the retention is set to "indefinite".

Hi @tommythorn . This still doesn't seem to be working when it comes to getting data out of channels that belong to teams. Have you managed to find a workaround for that?

I haven't tried, sorry.


Proposal for app/irc

https://github.com/bandresen/.emacs.d/tree/master/modules/app/irc
I've also set up some faces.
https://github.com/bandresen/emacs-doom-themes/
Screenshot of how it generally looks is here:
http://i.imgur.com/BCZEyW4.png
Looking forward to your thoughts!

That looks fantastic. Precisely the stack I was considering and it looks great! A few thoughts and questions:

doom-theme: Could you use highlight instead of blue? This is slightly more flexible; doom-one and doom-vibrant both use blue for highlight.

Why do you defer your +irc-disconnect-hook and circe-server-connected-hook hooks for 5 minutes? To overcome notification-overload during buffer playback, or is there another reason?

Unrelated, but I'm also a pass user. If it isn't too much trouble, I'd be interested in tools/password-store as well!

Done.

Precisely. I use ZNC and that caused my naive alert system to freak out if I haven't been connected in awhile. I actually haven't tried it the normal way in a while I just ported my old stuff to doom and updated it with the style guide.
I saw circe-notifications has anti-spam now so maybe this isn't needed.
The visual aesthetic with the padding and such is very recent for me, so it isn't done yet. I don't want to use an advise that changes the actual nick. I would like to realize this with faces instead but have never done faces. In addition you can get collisions if you cut things off so having a fallback should probably be added just in case.

It's on master on my end, but it isn't done yet either. Previously I had three things: =password-store= library for the fundamentals (which works), pass which is a more graphical manager (doesn't work yet in doom due to shackle) and auth-password-store (doesn't work yet) which makes it work via the auth-source backend.
A goal for the future is ivy integration with this.

Great! I'll accept the PR as soon as I receive it.

I'd like to try my hand at a solution with faces. Go ahead and file that PR and I'll have a go at it.

I'd accept the PR anyway. It's rare that I have problems resolving shackle issues (I've gotten so used to fixing them!), and I think I can adapt an ivy solution from helm-pass.

Alright, I've added ivy integration and shackle issues resolved to tools/password-store. Give it a test if you get a chance and let me know if there's anything you think is missing.

I'm about done with app/irc, but i have a question:
(add-hook! '+irc-disconnect-hook
  (run-at-time "5 minute" nil #'circe-reconnect-all))

Could you explain what this is for? Does circe have connection issues? Or is this a ZNC thing?

Besides that:

Among other things, I'm now using compose-region to truncate nicks non-destructively.
I've removed the 5-minute deferral of enable-circe-notifications and replaced it with a +ivy-defer-notifications option (number of seconds to wait before notifications are enabled). You'll want that set to 300 to get that functionality back.

Oh that's an artifact from my personal setup. Circe has auto-reconnect built-in but I have autossh running to connect to the znc  host and that's not as quick to realize the connection was dropped as circe.
I'm still getting used to what to put where when adding functionality not already present in doom.
The nick thing sounds real nice! I'll check it out at a later time.
(I'm still coming to terms with how to rebase when you PR'd stuff yourself into a repo and also personalized things. I'm more used to the rebase + patch model instead of trying to align branches.)

I'm still getting used to what to put where when adding functionality not already present in doom.

Perhaps this post https://github.com/hlissner/.emacs.d/issues/88#issuecomment-306222820 can help?

... with how to rebase when you PR'd stuff yourself into a repo ...

I sympathize. You're not that many commits deep though. If you'd like pulling from upstream to stay easy, I'd suggest:

Create a rescue-me branch (for example)

Revert master to upstream/master

Cherry-pick your customizations from rescue-me

Move all your customization into modules/private to prevent upstream conflicts (like with evil-magit and mu4e-send-delay).
https://github.com/hlissner/.emacs.d/issues/88#issuecomment-306222820 (same link as above) offers a few tricks for that.

# assuming you're in master
git remote add -f upstream https://github.com/hlissner/.emacs.d
git branch rescue-me
git reset --hard upstream/master
# use `git log --oneline --graph rescue-me` to find those SHA's
git cherry-pick <SHA...>

I hope all that can be of some use, and sorry if none of that is new to you.

On a separate note, we've completed the objective of this issue. Thanks for your help! Feel free to email me<EMAIL_ADDRESS>if you'd like to follow up on anything unrelated to app/irc or tools/password-store.


Generating techdocs from the provided example doesn't work

Expected Behavior
When clicking on the READ DOCS link that is generated using this example in the Documentation, the docs are properly displayed.
Current Behavior
│ 2021-05-12T15:33:41.388Z techdocs info Step 1 of 3: Preparing docs for entity Component:default/documented-component type=plugin                                                                       │
│ 2021-05-12T15:33:41.390Z backstage info ::ffff:<IP_ADDRESS> - - [12/May/2021:15:33:41 +0000] "GET /api/techdocs/metadata/entity/default/Component/documented-component HTTP/1.1" 200 - "-" "Mozilla/5.0 ( │
│ Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.56" type=incomingRequest                                                      │
│ 2021-05-12T15:33:45.877Z techdocs info Prepare step completed for entity Component:default/documented-component, stored at /tmp/backstage-x4IzEX type=plugin                                           │
│ 2021-05-12T15:33:45.877Z techdocs info Step 2 of 3: Generating docs for entity Component:default/documented-component type=plugin                                                                      │
│ 2021-05-12T15:33:45.887Z techdocs error Build failed with error:  type=plugin                                                                                │
│ 2021-05-12T15:33:45.887Z backstage error Failed to generate docs from /tmp/backstage-x4IzEX into /tmp/techdocs-tmp-vZzFt4 with error spawn mkdocs ENOENT type=errorHandler stack=Error: Failed to gene │
│ rate docs from /tmp/backstage-x4IzEX into /tmp/techdocs-tmp-vZzFt4 with error spawn mkdocs ENOENT                                                                                │
│     at TechdocsGenerator.run (/app/node_modules/@backstage/techdocs-common/dist/index.cjs.js:213:13)                                                                                │
│     at runMicrotasks (<anonymous>)                                                                                │
│     at processTicksAndRejections (internal/process/task_queues.js:93:5)                                                                                │
│     at async DocsBuilder.build (/app/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:99:5)                                                                                │
│     at async /app/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:214:9                                                                                │
│ 2021-05-12T15:33:45.888Z backstage info ::ffff:<IP_ADDRESS> - - [12/May/2021:15:33:45 +0000] "GET /api/techdocs/sync/default/Component/documented-component HTTP/1.1" 500 311 "-" "Mozilla/5.0 (Macintosh │
│ ; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.56" type=incomingRequest

Content from both mentioned directories
/tmp/backstage-x4IzEX
total 20
drwxrwxr-x 3 root root 4096 May 12 15:33 .
drwxrwxrwt 1 root root 4096 May 12 15:33 ..
-rw-r--r-- 1 root root  368 May 12 10:54 catalog-info.yaml
drwxrwxr-x 4 root root 4096 May 12 15:33 docs
-rw-r--r-- 1 root root  176 May 12 15:33 mkdocs.yml

/tmp/techdocs-tmp-vZzFt4
total 8
drwx------ 2 root root 4096 May 12 15:33 .
drwxrwxrwt 1 root root 4096 May 12 15:33 ..

Possible Solution

Steps to Reproduce

Create the app using yarn backstage-create-app
Add default example to the locations in app-config.yaml:

    - type: url
      target: https://github.com/backstage/backstage/blob/master/plugins/techdocs-backend/examples/documented-component/catalog-info.yaml

Use local setup:

techdocs:
  builder: 'local' # Alternatives - 'external'
  generators:
    techdocs: 'local' # Alternatives - 'docker'
  publisher:
    type: 'local' # Alternatives - 'googleGcs' or 'awsS3' or 'azureBlobStorage' or 'openStackSwift'. Read documentation for using alternatives.

Build docker image and start it.

Context
See above.
Your Environment

NodeJS Version (v12): v14
Operating System and Version (e.g. Ubuntu 14.04): using default Dockerfile, image running on AKS
Used master branch for building, latest commit https://github.com/backstage/backstage/commit/f3f09dda341ff21fc1d55d088ee6698a638feb93

Looking at the error -  error spawn mkdocs ENOENT, it could be that your Docker instance is missing mkdocs. This should help
https://github.com/backstage/techdocs-container/blob/5322712e95f654efe9194517a81347f53932681b/Dockerfile#L23

Hi, I thought the techdocs.builder: local setup does not involve Docker at all - what am I missing here?

my bad, do you mean the docker image with which backstage itself is set to run should have mkdocs installed, is that right?

@jot-hub Yep!

thanks a lot @OrkoHunter , it helped but now it's failing during "Step 2" ;)
│ 2021-05-18T09:11:29.893Z techdocs info Step 2 of 3: Generating docs for entity Component:default/space type=plugin                                                                                ││ 2021-05-18T09:11:30.408Z techdocs error Build failed with error: DEBUG   -  Loading configuration file: /tmp/backstage-3wIBEu/mkdocs.yml,ERROR   -  Config value: 'docs_dir'. Error: The path /tmp/bac ││ kstage-3wIBEu/docs isn't an existing directory.                                                                                ││ DEBUG   -  Config value: 'config_file_path' = '/tmp/backstage-3wIBEu/mkdocs.yml'                                                                                ││ DEBUG   -  Config value: 'site_name' = 'space-docs'                                                                                ││ DEBUG   -  Config value: 'nav' = [{'Home': 'index.md'}, {'Test': 'index2.md'}],DEBUG   -  Config value: 'pages' = None                                                                       ││ DEBUG   -  Config value: 'site_url' = ''                                                                                ││ DEBUG   -  Config value: 'site_description' = None                                                                                ││ DEBUG   -  Config value: 'site_author' = None                                                                                ││ DEBUG   -  Config value: 'theme' = {'name': 'mkdocs'}                                                                                ││ DEBUG   -  Config value: 'docs_dir' = 'docs'                                                                                ││ DEBUG   -  Config value: 'site_dir' = '/tmp/techdocs-tmp-LA7GwR'                                                                                ││ DEBUG   -  Config value: 'copyright' = None                                                                                ││ DEBUG   -  Config value: 'google_analytics' = None                                                                                ││ DEBUG   -  Config value: 'dev_addr' = Address(host='<IP_ADDRESS>', port=8000)                                                                                ││ DEBUG   -  Config value: 'use_directory_urls' = True,DEBUG   -  Config value: 'repo_url' = ''                                                                                ││ DEBUG   -  Config value: 'repo_name' = None                                                                                ││ DEBUG   -  Config value: 'edit_uri' = None                                                                                ││ DEBUG   -  Config value: 'extra_css' = [],DEBUG   -  Config value: 'extra_javascript' = []                                                                                ││ DEBUG   -  Config value: 'extra_templates' = [],DEBUG   -  Config value: 'markdown_extensions' = ['toc', 'tables', 'fenced_code'],DEBUG   -  Config value: 'mdx_configs' = None                        ││ DEBUG   -  Config value: 'strict' = False,DEBUG   -  Config value: 'remote_branch' = 'gh-pages'                                                                                ││ DEBUG   -  Config value: 'remote_name' = 'origin'                                                                                ││ DEBUG   -  Config value: 'extra' = {},DEBUG   -  Config value: 'plugins' = PluginCollection([('techdocs-core', <src.core.TechDocsCore object at 0x7fe178a43b00>)]),Aborted with 1 Configuration Errors ││ ! type=plugin

I'm fetching the project from Azure DevOps and it seems there is some problem with "unpacking" the docs dir?
This is how the repo looks like:
.
├── README.md
├── backstagenlp
│   ├── __init__.py
│   └── backstagenlp.py
├── cookiecutter.json
├── docs
│   ├── index.md
│   └── index2.md
├── mkdocs.yml

And the mkdocs.yml
site_name: 'space-docs'

nav:
  - Home: index.md
  - Test: index2.md

plugins:
  - techdocs-core

Now, when the repo is fetched, this is how it looks inside the container:
|-- README.md
|-- __init__.py
|-- backstagenlp.py
|-- cookiecutter.json
|-- index.md
|-- index2.md
|-- mkdocs.yml

Somehow all the directories are flattened but the techdocs plugin doesn't seem to like it: Config value: 'docs_dir'. Error: The path /tmp/backstage-3wIBEu/docs isn't an existing directory

@OrkoHunter I just noticed you closed the issue - shall I open a new one?

@nadworny Oh yeah - please create a new issue, thanks! Looks like a bug with the URL Reader that is downloading the tree from Azure DevOps. Please also add how the backstage.io/techdocs-ref metadata annotation looks like in the entity's catalog-info.yaml.


Bespoke code not transmitted to the worker

Sorry for raising yet another! This one might be down to my incorrect use.
Following from #1179, the error I get back from the workers says that my local package/code isn't transferred to the worker. As:
ModuleNotFoundError: No module named 'engineering'

Engineering is a locally developed package that is used in my sklearn pipeline.
I've tried configuring lithops to include dependencies using:
lithops:
    ...
    include_modules: [engineering, polars]

But in the debug logs I see:
2023-10-26 17:20:44,996 [DEBUG] serialize.py:90 -- Tentative modules to transmit: None
2023-10-26 17:20:44,996 [DEBUG] serialize.py:92 -- Include modules: polars, engineering
2023-10-26 17:20:44,996 [DEBUG] serialize.py:101 -- Modules to transmit: None

Suggesting that they are not transferred or installed on the workers.
Is this the right approach? Or would I need to create a custom container with the dependencies installed to do this?

Di you try without setting any package in include_modules? I mean without setting include_modules at all.
By default Lithops includes all the modules it detects that are missing in the container.
In any case I will check if there is an issue with the include_modules config param.
In my experience, it is always a good idea to include all the required packages in the runtime itself, even if Lithops is able to transfer them. By including all the required packages, you will improve invocation and execution times.

Yep, with the default I still see 2023-10-26 17:48:59,002 [DEBUG] serialize.py:101 -- Modules to transmit: None
That makes sense. Are there any examples of extending the default runtime that I could follow?

I've got a custom runtime ready, but do you know how I can authorise IBM cloud functions to pull the docker container from a private container registry?

In #1199 I fixed the include_modules config parameter so that now it should always include all the modules set in it


[RFC] sync API

The TM provides the ability to provide a synchronous function call via JSI. Do we need these synchronous methods in the Re.Pack?
Here you can find an example API:
    loadScript(scriptId: string, config: Object): Promise<Object>;
    loadScriptSync(scriptId: string, config: Object): Object

Hence, the dev could use the sync or async method if needed.
Originally posted by @troZee in https://github.com/callstack/repack/pull/344#discussion_r1173638141

@troZee please update the description 🙏 thanks!

@jbroma done

Personally, I'm not sure whether sync API is useful as loadScript is called only for the async chunks right now.
The only thing that comes to mind where this would be helpful is that we could split the the main chunk into smaller chunks and allow them to be OTA updated. As all chunks would be required at startup, the sync API could prove useful there.

Typically a user should see a loading screen/indicator when a script is being fetched and evaluated. Having sync API for loading a script would only make sense for local async chunks but then it would be a little quirky to decide whether to use sync or async method 🤔

I agree with @RafikiTiki, we would need to integrate it in a way that would allow for such optimisation in this rare case and keep async loadScript as default.

Thank you for your input. I am closing it since it does not make any sense in our case.

Yeah, keeping the async as the default sounds good! And since we have a technological possibility to implement a sync method let's do that – maybe someone will benefit from it in a way that's not obvious to us now.

@thymikee WDYT

Agree on keeping the default. How big of a maintenance investment would it be to implement, test and document the loadScriptSync method? Frankly I would wait for the opportunity to solve the real problem to arise before publishing the API and hoping for adoption

Typically a user should see a loading screen/indicator when a script is being fetched and evaluated. Having sync API for loading a script would only make sense for local chunks but then it would be a little quirky to decide whether to use sync or async method 🤔
Edit: on top of that, in the linked docs we discourage users from using local chunks if they are using Hermes because it might result in degraded performance.

hey @RafikiTiki , do you have any results/ performance benchmarks that support this statement? For any super-app development, are there any guidelines around when/ how to choose certain parts of your app as Remote vs Local Chunks?


Add support for macOS (Darwin) for Java and Rust

This fixes #17 , i.e. add support Java and Rust LSPs on macOS.

Dear @tonyfettes, Thank you very much for your contribution!
Kindly fill the CLA, which is a requirement for accepting the contribution, and I am very glad to merge the PR.

Dear @tonyfettes , Thanks a lot for making the PR. In order for me to merge the PR, I request you to kindly fill the CLA as per the instructions shared by microsoft-github-policy-service bot. Kindly let me know if there's anything I can help address regarding the same, and thank you very much for your contribution!

@microsoft-github-policy-service agree

@LakshyAAAgrawal could you merge?

Dear @tonyfettes, Thanks a lot for the PR. @AetherPrior, I will be reviewing it in a few days and will merge it soon after. Please allow me some time.


How do I setup Liquid drops impact simulations?

I am exploring the aphros for drop and bubble dynamics. I find the "https://cselab.github.io/aphros/wasm/hydro.html" as good starting point. Example "107_wasm" is the right one to start? I see each example has different way to setting up the basic simulation.
To get the basic of the aphros, if I start with simple simulation like lid-driven or flow-over cylinder, as in aphros-explorer' , to drop impact.  Is there any full detailed test case is available?

have you seen the case Drop impact without coalescence  in explorer ?

Yes I see. I want to setup on my system such that I can start to debug. I am trying to get it, but if anything that you can suggest or guide, will help me a lot.

the easiest case to try locally is examples/202_coalescence/2d