Marketing Transcrypt

@JdeH :  Check out the Agenda:   https://www.pymunich.com/
Working on your 1000 stars, hope you like.
If you want me to drop any important untold message, e.g. whats in the pipe or what you need from people, tell me. A re module I know already. Or shocking examples of Transcrypt's superpowers, not on the website ;-)

@AXGKI Great! Just what we need!!!
About the untold message: I have to think about that one.
But this is really what has to happen and I am very happy you're doing it.
Hope others will follow.

Nice, @AXGKl  :-)

Could your talk be recorded on video and be available somewhere on-line?
In that case I'd like to link to it from the website.
Another matter: Should you find the time, could you take a look at issue #126.
It has been puzzling me for quite a while but I've no idea what causes this.

Will send you the slides in any case but don't know if they record the stuff, lets see.
could not verify 126, lets discuss there.

@AXGKl
I've been thinking about the untold message a bit and a few things came to my mind. Don't feel obliged to include them, though. I can imagine time is limited and you have a lot of other things to tell.
In the first place I think it is important to highlight the overall design goal of Transcrypt, which is:
"having a Py to JS compiler that produces code that can compete with native JS code with respect to speed, compactness and interoperability with any library, so is seriously usable for the production of large web applications"
As a consequence of this, some features of Python are off limits, most notable "eval" and "exec", which would imply slow, bulky in-browser compilation. Also a number of dynamic mechanisms have been simplified to achieve more speed (such as the descriptor mechanism).
Meanwhile features like multiple inheritance and operator overloading were considered important enough to have them in, but in an efficient way, operator overloading e.g. being locally switchable.
Secondly the design decision to favor unimpeded access to JS libs over the use of Py libs deserves some explanation
The web developers community has produced a large number of high quality libraries. For any serious web development tool, unimpeded use of these libraries is an absolute necessity.
This is not to say that porting CPython libs wouldn't be useful! Having a Python style regex / re library would be great, as would be having a relevant part of sys available. Libs like e.g.  libs math , random and time are already there, as is the humble turtle module. Message: If you want to port a CPython lib to Transcrypt: this is highly welcomed. Please include an autotest for it as well.

Keep your libraries lean and fast, using underlying JS functionality as much as possible. If some features have to be left out to achieve this it's ok. Please document which features are present by including working code fragments using them in your autotest, which will at the same time be usable as documentation.

For ports of libraries that are part of the CPython distro: If an autotest with good coverage is included and  it runs correctly and efficiently on Windows and Linux / OsX, inclusion in the Transcrypt distribution is likely. To make this possible your lib should be contributed under the Apache 2 license. You can name it exactly the same as its CPython counterpart, since it will be reached via a different, preferred search path.

For ports of libraries that are available on PyPi separately: Give it a unique name (not the same as the corresponding CPython lib) that somehow lays the connection between the original library and Transcrypt (like e.g. is the case with Numscrypt) and make it pip-installable from PyPi, having at least Transcrypt as a keyword to make it findable.

PS.
I hope there are some useful elements in this...

All right, I'll work those points in, I share them in general - still I'll stress that the current absence of python ecosystem ports proved not an issue for me personally: Will show to a large part how natural it feels to use 'cool' and modern js libs, in the way a python guy always dreamed of using them.
Btw: Started with the config system - and having a powerful config system at hand I ran into a little "featurities" problem, crossed the 1000 lines :-/  - but I think it covers all features needed for Transcrypt. Since it covers more I'll put it as a standalone repo on my github, than you can forward any issues to me.  For transcrypt you can just grab the module in a certain version which does what you want, to remain dependency free. Before I push a first version I just wanted to add a lot of tests, docu and maybe a handling of actions, not just switches. I.e. that you can also add functions, not just attributes to a config declaration class and the config module will call them directly (if given on the CLI), correctly parametrized, that makes any sense, imho.

The points I mention are meant to optionally complement what you're telling from your personal point of view, so don't be distracted by them. I don't consider presence of Python libraries a prerequisite for the usability of Trancrypt either. There are enough good JS libraries available and in general they are more suitable to in-browser applications.
Still what we have in common is that we both know Javascript upto a level and have used in in practice. There's also a group of Python programmers  that has avoided browser programming until now, since they perceive the use of JS as a significant barrier. When they start programming for the web in Transcrypt, they'll learn to know the JS world gradually as a sideeffect and start to use the many good JS libraries that are available.
Still I expect them to stick with Transcrypt rather than Javascript, since in my opinion Python has had a more coherent design right from the start than Javascript will ever have, despite its growth in every direction. I know that JS programmers will not agree with me. My first language for practical use (after Algol 60 in my education) was Basic. I thought the world of it and sometimes still dream in it ;). But looking back it was flawed, of course. Transcrypt is for Python programmers. They like things to be clear, well structured, simple yet powerful. As long as they have a reasonable API, libraries are secondary to that.
For some libs I think porting is too much trouble. A librarie like Matplotlib certainly has a high quality, but unless someone of the Matplotlib team writes a browser backend for it, I see no reason to port it when libraries like Plotly are available.
On the other hand, simple, familiar libraries like math and random are a nobrainer. They were ported in a few hours and will hopefully benefit many.
I think the overall message you should bring in your talk, is one that you feel comfortable with. If using Python libs isn't your thing, there's no need to advocate developing them.
The main point in my view is simply:
Transcrypt is useable for 'real world' web development: fast, small, reliable, compatible, easy to debug.
If that's in line with your experience, then that is the message most worth conveying. Many open source projects seem to be somewhere on the boundary between hobby and profession. While I like working on Transcrypt, above all I hope people perceive it as a professional, reliable asset.
Many people want to be on the safe side, and many will choose Typescript because it's backed up be a large company. I'd like to convince people that a bet on Transcrypt is, within reason, a safe bet, especially since it's open source and open to understanding by anyone.

About the config system: I am currently contemplating if, how to, and up to which level add metaclasses.
I know you probably could benefit from them in your config system. Could you enlighten me on which functionality you need for your usecase. Is it mainly the ability of __new__ to have alternative behaviour for a class factory? A code example would help.

In any case: Good luck on sunday!

Hi, so I'll just put your statements on my slides to transcent the vision of the guy behind it, and try to prove that transcrypt already now lives up to that vision, with some simple examples, omitting js libs pretty much. Maybe I just grab one of your nice demos and tweak around a bit in pure python. To demo that all the nice and effective python we all love is right at hand and nearly 100% in. lambdas, list comprehens, array/dict ops...  which are so annoying in js.
In part two then I'll demo how Transcrypt works out in a professional use case involving (modern) javascript libs then. Specifically in one where component libraries have to be built, which might needed to be adapted in projects.  I have 15 minutes for each block, so not too much time anyway.  Adaptability of libs, in a project on site, w/o the need to master a 600MB nodejs/npm/(...)webpack whatever build pipeline on the server I deem alone nearly invaluable of an advantage.
That should do the job to motivate people giving it a try, and put their perspective right, thats the goal of this all.

I am very curious how it went...

Hei, sorry for no ping back. Went well and I just put together the slides in a repo...
Details later (after the thingy had to pay back some family time dept, recover some sleep deprivation, answer some emails).  Audience was not that big, around 30 people, since I applied so late I guess.... I was in the smallest room with no video sadly.
But many questions and disbelieve that what I said was possible :-)

Hi again,
presentation is here:
https://axiros.github.io/transcrypt/#/
Feel free to use it in any way you want, source is here: https://github.com/axiros/transcrypt
30 minutes was just far too less time, recognized that when I was estimating the time - and decided to drop any details about the non transcrypt things, focussing practically exclusively on Transcrypt.
Feedback was quite good, from sceptic to very interested. Still: It was not a very big audience, some 30 people I guess, I was in the smallest room as said.
I would think though that you, as the author, should apply for one of the "big" PyCons (Europe or World) and market it (?)
A few people said in the break after the session that the topic is indeed very interesting.

Just remember: One pretty experience guy who evaled transcrypt already addressed the same question than https://github.com/QQuick/Transcrypt/issues/137  and that this was the reason to not pick it but go with a go -> js transpiler, offering "far more" on the pipeline side of things. Seems serious frontend guys really are into that module feature. So I would not close it - maybe its not that hard to do to generate more modules instead of putting all imports into the main one. Which then browserify together with webpack can then hot reload into clients on changes.

@AXGKl
About the size of the audience: While size is important, it's the quality of the audience that matters. I guess the 30 or so people who choose  your talk above something as generally accepted as Cython, really were interested. I am saying this because what I think Transcrypt needs most is an ambitious application in a publicly accessible site, that the gallery can link to. So even one or two persons using it seriously for a public site will make all the difference. I think Transcrypt can do much more that people would expect. As soon as that gets out, things will accelerate.
Another point is SEO. When I search on "Python in the browser", Transcrypt isn't on the first page. That's bad, since that is what people will look for. Many of them won't look for "Python to JavaScript compiler", since they don't know that's the only way to indeed get "Python in the browser". Advices on SEO are often contradictory, I'll have to do some experimenting there.
About #137. I know people want things like that, it's a big thing in the JS world, but there are many complications there, as I explained in my reaction on the item. I've set own priorities with the quality of the language core. Enable separate module loading can certainly be implemented, but it'l make the "periphery" of the compiler much more complicated that it already is. Still I think eventually it'll have to get in. But it will be at a later stage.
The "unique selling point" of Transcrypt is the ability to set up large, fast, lean applications in a maintainable way (by virtue of the characteristics of Python). I want to try not to get bogged down to much by the ways things are currently done in the JS world, because the overall make many people complain and long for a different language.
There are three categories of facilities in the JS world:
The strong points: A vibrant, hugely productive user base making beautiful things
The middle ground: (bound to stand on some toes here) Prototypical single inheritance is something, but it doesn't come close to the clear simplicity of true class based multiple inheritance. Adding a class keyword doesn't change that. On this point Transcrypt is uncompromising. I am very interested in functional programming concepts, and Python has its share of them, but  right from the advent of C++, I've experienced full class based OO as a versatile powertool to set up big applications with a live time of 20 years+.
The whole modelling process from domain objects to implementation is very open to understanding, also for customers, and since the domain in many cases is stable, the application will also be.

About your slides:

Beautiful, professional and to the point!
Will make a 'publicity' section on the website, with links to your presentation, the podcast interview, articles etc. Hope this section grows.
You state performance ratio 5, but using exactly your figures you were too modest, it's 3 unless I am mistaken. Also -e 6 -f switch should speed up even more, I'll experiment with that.

omg, 5... remember that in chrome it was sth like 5, then I saw safari got down to factor 3 and made two shots, pasting them in  and it was "late" in the sense of early. :-)   Beamer resolution was not good enough that everybody could see the obvious lol...

Would it be a lot of work for you to adapt that slide.
If not, please do, it's probably easier for you than for me, have no experience with the tool...
There's a weird thing about Chrome, by the way. The  JS5 code:
			var __iterable0__ = n_queen_positions;
			for (var __index0__ = 0; __index0__ < __iterable0__.length; __index0__++) {
				var existing_position = __iterable0__ [__index0__];

runs nearly twice as fast as the JS6 code which is simply
			for (var existing_position of n_queen_positions) {

Seems Google has some work to do here.

would not have written previous statement if it would not be online already ;-)
notices also chrome is much slower than safari, you can also give me like a 'transcryped optimized version' if you see sth. to tune getting the factor down more.
tool is simple, the whole presentation is show.markdown btw, make.py compiles it into the single page html (index.html)
have to go, wife needs me...

First things first!

I've included a link to your presentation on the Transcrypt site:
http://www.transcrypt.org/documentation#media

quick one, related to positioning of T:

shouldn't the slogan be: "Transcrypt. Python For The Browser"?
No need to write a lot of justification IF you thought about it long and decided you want it like it is, no problem. Saying this just because there could be a chance you invented the slogan without much thinking and now nobody notices anymore that its actually misleading people to think what Transcrypt is, there is no Python IN the browser (for good reasons as you explained me long ago) ;-)

It was done deliberately, focusing on the users Python programs running in the browser, rather than on our tool.
Q: Is there any way I can run my beautiful Python programs in the browser?
A: Yes, you can (using a tool called Transcrypt).

You should have been there:
https://www.youtube.com/watch?v=V1K8Mju_1oo
Funny, it seems  the Netherlands is a global cluster of competing solutions for transpiling Python to JS for medical applications ;-)

I've seen Almar's presentation on YouTube (and the typo).
Almar was the very first to react on Transcrypt (#1), and we had a constructive conversation.
I've starred Flexx and he has starred Transcrypt, and we confirmed it was quite OK to use each other's code and ideas.
The Flexx compiler is only one element of what he's working on. He choose an approach where he's more or less independent of the Python version, by virtue of an extra AST abstraction layer, whereas I choose to deliberately follow Python versions. Both have pros an cons.
In the beginning some people reacted on Transcrypt with the question: Why yet another transpiler? Isn't that a waste of effort? But seeing the enormous diversity in e.g. the C++ compiler world, I think it's quite natural to have multiple comparable products.
We now have PyPyJs, RapydScript, Brython, PyJs and Transcrypt, all of them with a quite different focus. I believe in the path we're on, at the same time acknowledging that there are multiple routes to Rome.
About giving presentations: PyCon US would be great, of course, but we need some budget for that if they're abroad. Will not happen overnight, but I am contemplating turning QQuick into an official foundation, so legal person. This is one of the demands e.g. Mozilla poses, to make a project eligible for funding.

(#1) is really a great read. checked a bit through the pyscript stuff and I know I made the right decision, its not his sole focus , most obviously. The pyjs function is the only thing I would miss in Transcrypt...

@JdeH
hi, I'm alive.
Next interesting conf - again here in munich:
https://www.papercall.io/pyconweb?mc_cid=8d23257436&mc_eid=61ec777d33

I think it would make tons of sense to present transcrypt - but unfortunately this time I can't do it, I'm currently in "the zone" for a product I have to create and I'm on lower layers, gui will come later and in my age I can only focus at one at a time, had to shift all with gui to around summertime :-/
Can't wait to get back to doing some Transcrypt though but first the framework below gui has to go in production.

Anyone got Plotly to run in transcrypt? I just cannot even import plotly
I did:
pip install plotly
and if I simply type import plotly in my hello.py file I get:
transcrypt -b -c -m hello.py
Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.6.95
Copyright (C) Geatec Engineering. License: Apache 2.0
'Module' object has no attribute 'targetCode'Traceback (most recent call last):
File "/home/markus/anaconda3/lib/python3.6/site-packages/transcrypt/main.py", line 153, in main
compiler.Program (transpilationDirs, symbols)
File "/home/markus/anaconda3/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/compiler.py", line 233, in init
'}\n' +
File "/home/markus/anaconda3/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/compiler.py", line 231, in
''.join ([module.getModuleCaption () + module.targetCode for module in self.allModules]) +
AttributeError: 'Module' object has no attribute 'targetCode'
My Code:
Imports:
from org.transcrypt.stubs.browser import *
from org.transcrypt.stubs.browser import main, envir, pragma
from itertools import chain
import plotly
Imports for Transcrypt, skipped runtime by CPython
if envir.executor_name == envir.transpiler_name:
import numscrypt as num
Imports for CPython, skipped compile time by Transcrypt
pragma ('skip')
import numpy as np
pragma ('noskip')
class SimactBasic():
#global variables
function_list = ['function_1','name2']
def __init__(self):
    pass

def function_1(self, arg1, arg2):
    print(arg1)
    print(str(arg2))

def function_2(self, arg1, arg2):
    print(arg1+arg2)

def parse_input(self):
    input_str = document.getElementById('input').value
    print(input_str)

    func = getattr(simactBasic,'function_2')
    # Call it
    func(1,2)

You do not need to install the Python plotly module!
Transcrypt just works seamlessly with the JavaScript version.
See example at:
http://www.transcrypt.org/examples#plotly_demo

Thanks :) I got it to work.
As sympy is not implemented as I guess is there a way to use symbolic math?

@CesMak  there is js libraries , nermada , algebrite , Math.js ( maybe all of them together can be arounf 90% of sympy )


Sujeet/Animated Hamburger Menu - Fixes #337

Description
Successfully made the Animated hamburger menu using HTML, CSS, and JavaScript
Fixes #337
https://user-images.githubusercontent.com/56119252/158852602-a6ab28c5-7439-45d2-9175-b0088a00cdfe.mp4

But I used a bit JavaScript to toggle CSS class so I taught it would be a
JavaScript project, so do I still need to make pull request in CSS effects??
Hope to get your reply soon
On Thu, Mar 17, 2022, 11:45 PM VIDHI BHATT @.***> wrote:

@.**** requested changes on this pull request.
Am so sorry, I didn't know you will make it like this. The effect is nice
but the repo is wrong. Raise an issue and PR for the same in amazing CSS
effects repo, I will do the needful.
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/Amazing-Js-Projects/pull/389#pullrequestreview-913505392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANME7VHGML5S4CQORRSULZTVANZDHANCNFSM5Q7NIXYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>


Rename exception to be less shapefile-centric

PlantingSiteUploadProblemsException implies that a site has been uploaded,
but it's the exception we throw for map validation errors no matter where the
map data comes from. Rename it to PlantingSiteMapInvalidException.

Merge activity

Apr 30, 2:15 PM EDT: @sgrimm started a stack merge that includes this pull request via Graphite.


Fix NoClassDefFoundError in Kotlin projects #1793

Description
This PR hot-fixes the bug regarding Kotlin version update by storing necessary methods (isGetter, isSetter) from Kotlin library as utility methods in order to have them regardless of Kotlin version. Those meant to be deleted after plugin Kotlin version transition from 1.7.10 to a higher version.
Fixes #1793
How to test
Automated tests
Not relevant.
Manual tests
Run runIde, create new Kotlin project with Kotlin version 1.8.10 or higher installed. Verify that the plugin works fine when trying to open the generation window and generate tests.

@sofurihafe Please add comp-* label


Dynamic Input Reordering

This function solves the problem (这个功能解决的问题)
If the order of the array matters it's easy to adjust directly through the component. Currently I'm using it for a game's loot table, the order of the array doesn't really matter for my use, but it would be nice if I can put the more common items up the top rather jumbled in the rest of the entries. If the list needs to be altered later with additions it's just eternally stuck at it's position.
Although, I can see ordering of the list being essential to plenty of use cases outside of mine.
Expected API (期望的 API)
A simple hamburger styled icon which is draggable to reorganise the component would be the best solution. Alternatively, if dragging the row is too heavy for the framework, simply two up and down arrows could work fine.
Example Images:

As you say, dnd is too heavy for a framework.
Make item orderable would take much code.
I think we may add arrow buttons later.

closed in #2139


Inconsistent NaN values in converted ACS file.

From Daniel Rosebrock.

This was actually fixed in #647.  CGA was (and still is) using an old version of ACNV in Firehose.


Messages will not load if I will try to hard code it on the script

I will be pushing a new object which is working but if I will try to instantiate the message variable, the message will not load.
The display is like this

I'm not 100% sure to understand your issue. Do you have any errors on the console?
You can have a look at the demo code I provided within the repo, line 334.
To add a new message or update a specific message, you can do as below:
// To add a new message
this.messages = this.messages.concat([newMessage])

// To update a specific message
this.$set(this.messages, newMessageIndex, newMessage)

I'm not 100% sure to understand your issue. Do you have any errors on the console?
You can have a look at the demo code I provided within the repo, line 334.
To add a new message or update a specific message, you can do as below:
// To add a new message
this.messages = this.messages.concat([newMessage])

// To update a specific message
this.$set(this.messages, newMessageIndex, newMessage)

Thank you I think I got it already, anyways I have questions below hope you can help me.

do you have an idea on how to disable the actions on the specific message only?
how to reflect the username on each message?

thank you in advance

This can be a nice feature to add, I can implement it shortly and let you know when it's done

I intentionally hide the username when there are only 2 persons in the room.
I feel like showing username on each message would be unnecessary.
However, username will appear on each message if there are 2+ users in the room.
But I am open to the idea, do you think it is actually useful to have the username shown on each message if only 2 persons are in the room?

This can be a nice feature to add, I can implement it shortly and let you know when it's done
I intentionally hide the username when there are only 2 persons in the room.
I feel like showing username on each message would be unnecessary.
However, username will appear on each message if there are 2+ users in the room.
But I am open to the idea, do you think it is actually useful to have the username shown on each message if only 2 persons are in the room?

Thank you very much I really appreciate it.
I see the username will only display if there are more than 2 users, that makes sense, I just didn't know since I did not see it on the documentation but just keep it that way.

Sounds good. Just added the option to disable actions and/or reactions for a specific message: https://github.com/antoine92190/vue-advanced-chat/commit/14363932aa758c297cd2eccb5736f2202f3703f0

Also added the username conditional display on the documentation: https://github.com/antoine92190/vue-advanced-chat/commit/98058e36f714c8e80a83eb4a3020326489232223
Thanks!

Thank you very much, I will just wait for your update in NPM


south korea

cwnu

@Yeon228 Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Last Week in Pony - March 12, 2023

Planning to highlight Planet Pony this week, drawing attention to the InfoQ talk from a couple years ago: https://www.infoq.com/presentations/pony-types-garbage-collection/


os-git-backup 1.0_1 does not initialise upstream properly, does not backup any files

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[X] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[X] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[X] The title contains the plugin to which this issue belongs

Describe the bug
I have tried configuring git-backup with repos in both gitlab.com and github.com and with both ssh and https remotes with the same effect. When using ssh I set up a valid deploy key on the repo with write access, when using https I set up a valid access token with write access.
When I run the initial configuration with no /conf/backup/gif folder present, I get the following error banner displayed at the top of the screen:
The following input errors were detected:

unknown error, check log for details
Saved settings, but remote backup failed.

In order to get past that stage I can shell into the /conf/backup/git and run git pull origin master && git push --set-upstream origin master. The test button then seems to operate successfully but no backup is uploaded and the file list in the banner at the top of the screen is empty. All I can see in the /conf/backup/git directory is the .git subdirectory and an identity file containing my deploy key.
To Reproduce
Steps to reproduce the behavior:

Create an empty repo in github or gitlab
Generate a deploy key with write access to the repo
Click on System->Configuration->Backups
Scroll down to Git
Enter details of the repository as specified in https://docs.opnsense.org/manual/git-backup.html including the private SSH deploy key
Click the Setup/Test Git button
See error

Expected behavior
An initial backup should be committed to the repo and pushed to the remote repository and a "Backup successful" banner should appear indicating the files that were committed and pushed.
Relevant log files
From the general log:
git-backup unknown error, check log for details (error: src refspec master does not match any error: failed to push some refs to 'ssh://github.com/GJKrupa/repo-name.git' )
N.B. It says master (and the checked-out branch in /conf/backup/git is master) regardless of the branch name I specify in the UI.
Environment
OPNsense 22.1.8-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1o 3 May 2022

https://github.com/opnsense/plugins/issues/2882#issuecomment-1060328908 ??

I don't believe it's the same thing. I already read that guide before I started and set the username to 'git' in the UI. The fact that I can push/pull the repo from the command-line without modifying the remote or the creds suggests there's no access issue.

I'm seeing this too... it's so strange.

The commands that are being executed can be found in the php code here:
https://github.com/opnsense/plugins/blob/8bdd618652efb969ec0855b2be85af0240bbc657/sysutils/git-backup/src/opnsense/mvc/app/library/OPNsense/Backup/Git.php#L149-L167

Looks like it's not attaching the upstream branch to the local branch. Running git push origin master doesn't do it, you need to have that --set-upstream (or -u) flag as well.

Since it's removing and re-adding the origin every time, it should probably be running git branch -u _remote_ _branch_ for a clean update to the upstream.
Also, as an aside, I notice the code is using just git in a number of places where it should be using {$git}.

changed the references to git as suggested in https://github.com/opnsense/plugins/commit/db2e4bcb0610143f6cfa413c86c0c92f80dd3db0, tried syncing to GitHub on my development machine multiple times changing branches as well, but can't reproduce an issue.
It might be an idea to reproduce the steps on your end and see which error git returns when executing the exact steps from the script.

This is what I got from running the same commands (not quite in the same order but shouldn't cause any issues):
root@router:/ # mkdir /tmp/gitback-test
root@router:/ # git init /tmp/gitback-test
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /tmp/gitback-test/.git/
root@router:/ # cat > /tmp/gitback-test/identity
...
root@router:/ # chmod 600 /tmp/gitback-test/identity
root@router:/ # cd /tmp/gitback-test/ && git remote remove origin
error: No such remote: 'origin'
root@router:/tmp/gitback-test # cd /tmp/gitback-test/ && git remote add origin git@github.com:GJKrupa/opnsense-plugins-2994.git
root@router:/tmp/gitback-test # cd /tmp/gitback-test/ && git config core.sshCommand "ssh -i /tmp/gitback-test/identity -o StrictHostKeyChecking=accept-new -o PasswordAuthentication=no"
root@router:/tmp/gitback-test # cd /tmp/gitback-test/ && git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:GJKrupa/opnsense-plugins-2994.git'

I'm now thinking it's just failing because there aren't any commits on the branch. I get the same if I try to push a newly-initialised repo from my MacBook until I either make an empty commit (using git commit --allow-empty) or pull the existing commits from the remote and then push.

well, if you do have the same issue as https://github.com/opnsense/plugins/issues/3050, the hook might not have committed any local changes, in which case there isn't anything to push either. haven't thought about that at first, but could very well be the case.  When you remove /conf/event_config_changed.json and the push works, it's the same issue.

After fresh install of 22.7 and import of config from 22.1 and installing os-git-backup plugin, I now have this problem as well.
The following input errors were detected:
unknown error, check log for details
Saved settings, but remote backup failed.

I'm interested in "log for details" ;)

After fresh install of 22.7 and import of config from 22.1 and installing os-git-backup plugin, I now have this problem as well.

Facing the same issue, just did a fresh install and restored my backup, which included git-config with a self hosted repo. The git backups were working before. Now every time I try to Test the setup, I get:
[meta sequenceId="1"] git-backup unknown error, check log for details (error: src refspec master does not match any error: failed to push some refs to 'ssh://git.myserver.com/org/mybackuprepo.git' )

I can push when I SSH into the box, go to /conf/backup/git and do git push origin main (being main the branch I have configured in the git-config settings.
Any ideas?


"GraphQL Error Unknown field allExampleCode on type Query" on "yarn dev"

What?
Running yarn dev on Windows 10 machine generates following error message.
GraphQL Error Unknown field `allExampleCode` on type `Query`

  file: C:/misc/sources/Github/pr/reactjs.org/src/pages/index.js

   1 |
   2 |   query IndexMarkdown {
>  3 |     codeExamples: allExampleCode {
     |                   ^
   4 |       edges {
   5 |         node {
   6 |           id
   7 |           code
   8 |           mdAbsolutePath
   9 |         }
  10 |       }
  11 |     }
  12 |
  13 |     examples: allMarkdownRemark(

Refer to the full error message below for more detailed log.
Full Error Message
PS C:\misc\sources\Github\pr\reactjs.org> yarn dev
yarn run v1.12.1
(node:15788) ExperimentalWarning: The fs.promises API is experimental
$ gatsby develop -H <IP_ADDRESS>
(node:22576) ExperimentalWarning: The fs.promises API is experimental
success open and validate gatsby-config — 0.033 s
success load plugins — 1.258 s
success onPreInit — 14.038 s
success delete html and css files from previous builds — 0.059 s
success initialize cache — 0.024 s
success copy gatsby files — 0.745 s
success onPreBootstrap — 0.094 s
success source and transform nodes — 4.352 s
success building schema — 4.211 s
success createPages — 2.051 s
success createPagesStatefully — 0.142 s
success onPreExtractQueries — 0.029 s
success update schema — 0.560 s
GraphQL Error Unknown field `allExampleCode` on type `Query`

  file: C:/misc/sources/Github/pr/reactjs.org/src/pages/index.js

   1 |
   2 |   query IndexMarkdown {
>  3 |     codeExamples: allExampleCode {
     |                   ^
   4 |       edges {
   5 |         node {
   6 |           id
   7 |           code
   8 |           mdAbsolutePath
   9 |         }
  10 |       }
  11 |     }
  12 |
  13 |     examples: allMarkdownRemark(

success extract queries from components — 0.657 s
⠁ (node:22576) DeprecationWarning: Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.
success run graphql queries — 2.060 s — 318/318 154.59 queries/second
success write out page data — 0.050 s
success write out redirect data — 0.016 s
success onPostBootstrap — 0.004 s

info bootstrap finished - 77.707 s

(node:26824) ExperimentalWarning: The fs.promises API is experimental
 DONE  Compiled successfully in 16730ms                                                                                19:20:24

You can now view react-website in the browser.

  Local:            http://<IP_ADDRESS>:8000/
  On Your Network:  http://<IP_ADDRESS>:8000/

View GraphiQL, an in-browser IDE, to explore your site's data and schema

  http://<IP_ADDRESS>:8000/___graphql

Note that the development build is not optimized.
To create a production build, use gatsby build

i ｢wdm｣:
i ｢wdm｣: Compiled successfully.
>

Environment

Fork: https://github.com/dance2die/reactjs.org
Yarn version: 1.12.1
Node version: 10.1.0
Git version: 2.17.1.windows.2
OS

@dance2die my guess is that the Windows path resolution is wrong in this file, i.e. forward slash vs. back slash.
I've PRed the (possible?!) fix in #1385. Would you be able to check that out and validate whether it does indeed fix the issue? Thanks so much!

In any case, my guess is that something is wrong in that if condition, because it seems evident that 0 nodes are being created of type ExampleCode. That seems like the most likely suspect 🤞

Appears fixed by https://github.com/reactjs/reactjs.org/pull/1385.

Thank you @DSchau for the fix.
I am able to run the site.
Not sure if highlighted area are issues or not but the site itself is running fine.

Hmm! That's odd! Definitely please do open an issue (and assign/cc me) if that leads to anything breaking, but thinking that can be ignored.
Thanks again for validating!

What's weirder is that
That particular problem is gone after restarting my machine 😅

I will file another issue happening while yarn building, instead.

I have same problem. Weirdo they don't looks like bugs are fixed

I cant run this repo locally with yarn dev.
how to fix this problem?
Env

Fork: https://github.com/dance2die/reactjs.org
Yarn version: 1.22.0
Node version: i have tried with 10.1.0 and 12.16.1
Git version: 2.19.1.windows.1
OS : Windows 10

Full Error Message
Firman Abdul Jabar@Firman MINGW32 /d/reactjs.org (master)
$ yarn dev
yarn run v1.22.0
$ gatsby develop -H <IP_ADDRESS>
success open and validate gatsby-configs - 0.208s
success load plugins - 3.546s
success onPreInit - 0.032s
success initialize cache - 0.038s
success copy gatsby files - 0.292s
warn gatsby-plugin-feed was initialized in gatsby-config.js without a title in a feed.
This means that the plugin will use the default feed title, which may not match your use
case.
This behavior will be removed in the next major release of gatsby-plugin-feed.
success onPreBootstrap - 0.035s
success createSchemaCustomization - 0.389s
success source and transform nodes - 7.976s
success building schema - 1.242s
success createPages - 0.878s
success createPagesStatefully - 0.258s
success onPreExtractQueries - 0.003s
success update schema - 0.301s

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allExampleCode" on type "Query".

If you don't expect "allExampleCode" to exist on the type "Query" it is most likely a typo.
However, if you expect "allExampleCode" to exist there are a couple of solutions to common
problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-conf
ig.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and
use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allExampleCode" and right now it is not used anywh
ere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is
 to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields
. This way you don't have to add the mentioned "dummy content".

Firman Abdul Jabar@Firman MINGW32 /d/reactjs.org (master)
$

I cant run this repo locally with yarn dev.
how to fix this problem?
Env

Clone: https://github.com/reactjs/reactjs.org
Yarn version: 1.22.0
Node version: i have tried with 10.16.0 and 12.16.1
Git version: 2.19.1.windows.1
OS : Windows 10
Gatsby CLI version: 2.9.0
Gatsby version: 2.19.23 (Note: this is the Gatsby version for the site at: D:\reactjs.org)
npm : 6.14.1

gatsby info:
System:
OS: Windows 10 10.0.18362
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Binaries:
Node: 10.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.1 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.7.3
Browsers:
Edge: 44.18362.449.0

Full Error Message
Firman Abdul Jabar@Firman MINGW32 /d/reactjs.org (master)
$ yarn dev
yarn run v1.22.0
$ gatsby develop -H <IP_ADDRESS>
success open and validate gatsby-configs - 0.208s
success load plugins - 3.546s
success onPreInit - 0.032s
success initialize cache - 0.038s
success copy gatsby files - 0.292s
warn gatsby-plugin-feed was initialized in gatsby-config.js without a title in a feed.
This means that the plugin will use the default feed title, which may not match your use
case.
This behavior will be removed in the next major release of gatsby-plugin-feed.
success onPreBootstrap - 0.035s
success createSchemaCustomization - 0.389s
success source and transform nodes - 7.976s
success building schema - 1.242s
success createPages - 0.878s
success createPagesStatefully - 0.258s
success onPreExtractQueries - 0.003s
success update schema - 0.301s

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allExampleCode" on type "Query".

If you don't expect "allExampleCode" to exist on the type "Query" it is most likely a typo.
However, if you expect "allExampleCode" to exist there are a couple of solutions to common
problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-conf
ig.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and
use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allExampleCode" and right now it is not used anywh
ere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is
 to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields
. This way you don't have to add the mentioned "dummy content".

Firman Abdul Jabar@Firman MINGW32 /d/reactjs.org (master)
$

same issue is happening while run yarn dev

I have same problem too.
`λ yarn dev
yarn run v1.16.0
$ gatsby develop -H <IP_ADDRESS>
success open and validate gatsby-configs - 0.245s
success load plugins - 3.407s
success onPreInit - 0.033s
success initialize cache - 0.401s
success copy gatsby files - 0.534s
warn gatsby-plugin-feed was initialized in gatsby-config.js without a title in a feed.
This means that the plugin will use the default feed title, which may not match your use case.
This behavior will be removed in the next major release of gatsby-plugin-feed.
For more info, check out: https://gatsby.dev/adding-rss-feed
success onPreBootstrap - 0.091s
success createSchemaCustomization - 0.417s
success source and transform nodes - 6.929s
success building schema - 1.755s
success createPages - 1.185s
success createPagesStatefully - 0.488s
success onPreExtractQueries - 0.007s
success update schema - 0.113s
ERROR #85923  GRAPHQL
There was an error in your GraphQL query:
Cannot query field "allExampleCode" on type "Query".
If you don't expect "allExampleCode" to exist on the type "Query" it is most likely a typo.
However, if you expect "allExampleCode" to exist there are a couple of solutions to common problems:

If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
You want to optionally use your field "allExampleCode" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: src\pages\index.js:358:5
failed extract queries from components - 2.417s
success write out requires - 0.292s
success write out redirect data - 0.076s
success Build manifest and related icons - 0.294s
success onPostBootstrap - 0.325s

info bootstrap finished - 28.459 s

warn code block or inline code language not specified in markdown. applying generic code block
warn unable to find prism language 'sh' for highlighting. applying generic code block
warn unable to find prism language 'jsxon' for highlighting. applying generic code block
ERROR
UNHANDLED REJECTION [
'/D:\AyarHlaine\Contribute\my.reactjs.org\examples\es5-syntax-example',
Error: D:\AyarHlaine\Contribute\my.reactjs.org\public\page-data\D:\AyarHlaine\Contribute\my.reactjs.org\examples\es5-syntax-example contains invalid WIN32 path characters.
at Object.mkdirs (D:\AyarHlaine\Contribute\my.reactjs.org\node_modules\fs-extra\lib\mkdirs\mkdirs.js:18:22)
at Object.mkdirs (D:\AyarHlaine\Contribute\my.reactjs.org\node_modules\universalify\index.js:5:67)
at D:\AyarHlaine\Contribute\my.reactjs.org\node_modules\fs-extra\lib\output\index.js:20:11
at D:\AyarHlaine\Contribute\my.reactjs.org\node_modules\universalify\index.js:23:46 {
code: 'EINVAL'
},
{ elapsed: 104708 }
]
Error: [
'/D:\AyarHlaine\Contribute\my.reactjs.org\examples\es5-syntax-example',
Error: D:\AyarHlaine\Contribute\my.reactjs.org\public\page-data\D:\AyarHlaine\Contribute\my.reactjs.org\examples\es5-syntax-example contains invalid WIN32 path char
acters.

mkdirs.js:18 Object.mkdirs
[my.reactjs.org]/[fs-extra]/lib/mkdirs/mkdirs.js:18:22

index.js:5 Object.mkdirs
[my.reactjs.org]/[universalify]/index.js:5:67

index.js:20
[my.reactjs.org]/[fs-extra]/lib/output/index.js:20:11

code: 'EINVAL'

},

{ elapsed: 104708 }

]

index.js:133 process.
[my.reactjs.org]/[gatsby-cli]/lib/index.js:133:14

index.js:155 processEmit [as emit]
[my.reactjs.org]/[signal-exit]/index.js:155:32

promises.js:165 processPromiseRejections
internal/process/promises.js:165:18

task_queues.js:90 processTicksAndRejections
internal/process/task_queues.js:90:32

not finished run queries - 105.149s
not finished Generating image thumbnails - 104.759s
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————320 pages                                                                    In Progress                                                                   react-websiteerror Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`


Having issues on using LLAMA-7B model

I tried to use llama-7B for factscore, but have problem when running download_data.
after loading checkpoint shards,  RecursionError: maximum recursion depth exceeded while calling a Python object occurs while
running on recover_instruct_llama(args.llama_7B_HF_path, os.path.join(args.model_dir, "inst-llama-7B"))

Hi @mungg,
Thanks for reaching out and reporting this issue. Could you share the entire stack trace with us, specifically on what line of the recover_instruct_llama you faced this error, and what command you used to run this?
Also, had you followed all instructions here to obtain LLAMA-7B?
https://huggingface.co/docs/transformers/main/model_doc/llama
I've also DM'ed you on Slack the location of inst-llama-7B on the UMass servers.

same problem


Frametime much higher than expected despite solid preview performance

I've been using a for frame in camera.capture_continuous() iterator, and have been having some difficulty getting the performance I expected. I've been completely unable to capture anywhere near the expected framerates. At 640x480, I'm getting roughly 13 FPS, despite setting the camera to 90 FPS. However, the preview window appears to show everything functioning okay, with silky-smooth video at all resolutions. Here's my testing code:
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
import time

camera = PiCamera()
camera.resolution = (640, 480)
camera.framerate = 90
rawCapture = PiRGBArray(camera, size=(640, 480))

# allow the camera to warmup
time.sleep(0.1)

camera.start_preview()

t_last = time.time()
# capture frames from the camera
for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port=True):
        t_latency = time.time()
        image = frame.array

        rawCapture.truncate(0)

        t_current = time.time()
        print("Ran in " + str(t_current - t_last) + ", latency " + str(t_current - t_latency))
        t_last = t_current

Here's a sample output:
Ran in 0.08527326583862305, latency 0.0005013942718505859
Ran in 0.08632063865661621, latency 0.0005233287811279297
Ran in 0.08316254615783691, latency 0.0005033016204833984
Ran in 0.02782416343688965, latency 0.0005249977111816406
Ran in 0.09260082244873047, latency 0.0005028247833251953
Ran in 0.07761716842651367, latency 0.0005164146423339844

htop shows that neither CPU nor RAM are anywhere close to their limits. I've verified that the camera I'm using (the RPi Camera J) supports this resolution and framerate, along with trying several others, all with similarly poor performance (though higher resolutions do go slower.) pycallgraph simply affirmed that my main method was the culprit:

What's going on? Is this just an unavoidable fact of using Python?

+1

+1


Remove pin for petsc, add pin for scotch

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


Error parsing text-format caffe.NetParameter: 1177:17: Message type "caffe.LayerParameter" has no field named "permute_param".

When I run the demo, I have the following questions：
Net('MobileNetSSD_deploy.prototxt', 1, weights='MobileNetSSD_deploy.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 1177:17: Message type "caffe.LayerParameter" has no field named "permute_param".
F0321 07:57:59.493149  2350 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: MobileNetSSD_deploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)
Thank you for your reply！

i have the same problem with you.Have you solved it yet?

@YUFENGZHANG @larklili  you can try ./examples/MobileNet-SSD/demo.py not "cd examples/MobileNet-SSD and ./demo.py"

@larklili it could be caffe issue. You may not have have been on the latest branch.

The caffe version imported should be the one with ssd.

Has this issue been solved?  Chuanqi305's instructions in the README are terrible.

Having the same problem


0.0.1 to 1.0.0 todo items

[ ] release notes

[ ] project loading theme

[ ] scripts to support new /sys structure
[ ] tode/sys/default/home/ contents
[ ] load tode project script based on loadProject script

[ ] bin/createTodeProjectStone and bin/installTodeProjectStone
[ ] projects/magritte3/bin/installMagritte3Stone, etc.

[ ] /sys/default/bin/validateStoneSysNodes man page updated to include dirs, packages and repos, etc.
[ ] install README edits

[X] move tODE details to separate doc
[x] include ubunutu system requirements (Issue #22)
[x] include fix for Issue #48 in readme
[x] web client license blurb (note about free email version of license)
[ ] Development Kit projects cleanup

[ ] projects readme
[ ] tODE project ... just to hook up the tode directory ...

[ ] cp /sys/stone/dirs/Tode/tode /sys/local/home/tode
[ ] mount @/sys/stone/dirs/Tode/tode /sys/local/home tode

[ ] pier3.0.0 (Seaside3.0 and swazoo)
[ ] magritte (Seaside3.1 and gem server)
[ ] seaside3.1 (zinc and gem server)
[ ] zinc <IP_ADDRESS>
[ ] magritte3 (Seaside3.1, zinc and gem server)

[ ] tests/ ... alternate tode boottstrap and pe pointing at dev for tests (better alternative than -branch arg to scripts

see https://github.com/dalehenrich/tode/issues/106

finally some green ... one green is pretty good ... the failure was an out or memory issue, so I'll bump the default TOC.
The out of memory occured during bash createTodeStone flow 3.2.4 during gsUpgrader of all things .. this has been done thousands of times ... I'd think ...

okay ... the PR run did run out of memory, but did blow up doing a backup during magritte build ...  failures during backup are not unexpected on travis

I lovethe smell of passing tests in the morning ... more delogging needed

all green again

checkpoint Magritte tests running green includes build plus running tests


Painting example issue

Paint example doesn't work on macos
I cloned the repo and run the paint example. It does not respond to clicking and dragging. Nothing but a white screen. Macos big sur

Logs from uncommented lines

Thanks for the report. Unfortunately FLTK has issues with offscreen drawing on macos.

For specialized drawing, I would suggest using a specialized crate. Here is an example of using raqote in a painter like program:
https://github.com/MoAlyousef/fltk-rs-demos/tree/master/raqote

Thanks for your answer. I want to use the library as a backend for my eink reader gui framework so I can test gui on my pc. I need to draw geometric shapes, lines, dots etc. But its seems not to work too. What am I doing wrong?

Cool project idea!
Draw calls should be in the draw method of the widget:
wind.draw(|| draw_rect_fill(args));

The paint example should be working now on macos.


CI: Add stdlib to LD_LIBRARY_PATH

Reference issue
Fixes #14829  --hopefully
What does this implement/fix?
I am just parroting the solutions posted on the SO thread to see whether this would fix things in the MacOS CI (if it is picked up by GH Actions)

From the changelog

New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

Ok thanks apple.  So we have to make sure that /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib is added to the linker somehow.

Last commit did the trick and the build is successful now. So if someone can verify that this won't cause a global meltdown this is good to go I guess.


Fixed compilation under ubuntu 18.04

../lib/records/librecords_p.a(RecProcess.o): In function `RecMessageInit()':
/home/scw00/trafficserver/lib/records/RecProcess.cc:234: undefined reference to `pmgmt'
/home/scw00/trafficserver/lib/records/RecProcess.cc:234: undefined reference to `BaseManager::registerMgmtCallback(int, std::function<void (ts::MemSpan)> const&)'
../lib/records/librecords_p.a(RecProcess.o): In function `RecSignalManager(int, char const*, unsigned long)':
/home/scw00/trafficserver/lib/records/RecProcess.cc:299: undefined reference to `pmgmt'
/home/scw00/trafficserver/lib/records/RecProcess.cc:299: undefined reference to `ProcessManager::signalManager(int, char const*, int)'
../lib/records/librecords_p.a(RecProcess.o): In function `RecRegisterManagerCb(int, std::function<void (ts::MemSpan)> const&)':
/home/scw00/trafficserver/lib/records/RecProcess.cc:305: undefined reference to `pmgmt'
/home/scw00/trafficserver/lib/records/RecProcess.cc:305: undefined reference to `BaseManager::registerMgmtCallback(int, std::function<void (ts::MemSpan)> const&)'
../lib/records/librecords_p.a(RecProcess.o): In function `RecMessageSend(RecMessageHdr*)':
/home/scw00/trafficserver/lib/records/RecProcess.cc:325: undefined reference to `pmgmt'
/home/scw00/trafficserver/lib/records/RecProcess.cc:325: undefined reference to `ProcessManager::signalManager(int, char const*, int)'
../proxy/libproxy.a(IPAllow.o): In function `(anonymous namespace)::SignalError(ts::BufferWriter&, bool&)':
/home/scw00/trafficserver/proxy/IPAllow.cc:41: undefined reference to `pmgmt'
/home/scw00/trafficserver/proxy/IPAllow.cc:41: undefined reference to `ProcessManager::signalManager(int, char const*)'
../proxy/http3/libhttp3.a(Http3ClientSession.o): In function `ProxyClientSession::~ProxyClientSession()':
/home/scw00/trafficserver/proxy/ProxyClientSession.h:75: undefined reference to `vtable for ProxyClientSession'
../proxy/http3/libhttp3.a(Http3ClientSession.o): In function `HQClientSession::HQClientSession(NetVConnection*)':
/home/scw00/trafficserver/proxy/http3/Http3ClientSession.h:35: undefined reference to `ProxyClientSession::ProxyClientSession()'
../proxy/http3/libhttp3.a(Http3ClientSession.o):(.rodata._ZTV19Http09ClientSession[_ZTV19Http09ClientSession]+0x70): undefined reference to `ProxyClientSession::free()'
../proxy/http3/libhttp3.a(Http3ClientSession.o):(.rodata._ZTV18Http3ClientSession[_ZTV18Http3ClientSession]+0x70): undefined reference to `ProxyClientSession::free()'
../proxy/http3/libhttp3.a(Http3ClientSession.o):(.rodata._ZTV15HQClientSession[_ZTV15HQClientSession]+0x70): undefined reference to `ProxyClientSession::free()'
../proxy/http3/libhttp3.a(Http3ClientSession.o):(.rodata._ZTI15HQClientSession[_ZTI15HQClientSession]+0x10): undefined reference to `typeinfo for ProxyClientSession'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `HQClientTransaction::HQClientTransaction(HQClientSession*, QUICStreamIO*)':
/home/scw00/trafficserver/proxy/http3/Http3ClientTransaction.cc:59: undefined reference to `ProxyClientTransaction::ProxyClientTransaction()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `HQClientTransaction::release(IOBufferReader*)':
/home/scw00/trafficserver/proxy/http3/Http3ClientTransaction.cc:110: undefined reference to `ProxyClientTransaction::release(IOBufferReader*)'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `Http3ClientTransaction::_convert_header_from_3_to_1_1(HTTPHdr*)':
/home/scw00/trafficserver/proxy/http3/Http3ClientTransaction.cc:544: undefined reference to `http2_convert_header_from_2_to_1_1(HTTPHdr*)'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `ProxyClientTransaction::set_session_active()':
/home/scw00/trafficserver/proxy/ProxyClientTransaction.h:118: undefined reference to `ProxyClientSession::set_session_active()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `ProxyClientTransaction::clear_session_active()':
/home/scw00/trafficserver/proxy/ProxyClientTransaction.h:126: undefined reference to `ProxyClientSession::clear_session_active()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o): In function `ProxyClientTransaction::~ProxyClientTransaction()':
/home/scw00/trafficserver/proxy/ProxyClientTransaction.h:31: undefined reference to `vtable for ProxyClientTransaction'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV23Http09ClientTransaction[_ZTV23Http09ClientTransaction]+0x68): undefined reference to `ProxyClientTransaction::new_transaction()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV23Http09ClientTransaction[_ZTV23Http09ClientTransaction]+0x90): undefined reference to `ProxyClientTransaction::attach_server_session(HttpServerSession*, bool)'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV22Http3ClientTransaction[_ZTV22Http3ClientTransaction]+0x68): undefined reference to `ProxyClientTransaction::new_transaction()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV22Http3ClientTransaction[_ZTV22Http3ClientTransaction]+0x90): undefined reference to `ProxyClientTransaction::attach_server_session(HttpServerSession*, bool)'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV19HQClientTransaction[_ZTV19HQClientTransaction]+0x68): undefined reference to `ProxyClientTransaction::new_transaction()'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTV19HQClientTransaction[_ZTV19HQClientTransaction]+0x90): undefined reference to `ProxyClientTransaction::attach_server_session(HttpServerSession*, bool)'
../proxy/http3/libhttp3.a(Http3ClientTransaction.o):(.rodata._ZTI19HQClientTransaction[_ZTI19HQClientTransaction]+0x10): undefined reference to `typeinfo for ProxyClientTransaction'
../proxy/http3/libhttp3.a(Http3HeaderFramer.o): In function `Http3HeaderFramer::_convert_header_from_1_1_to_3(HTTPHdr*, HTTPHdr*)':
/home/scw00/trafficserver/proxy/http3/Http3HeaderFramer.cc:76: undefined reference to `http2_generate_h2_header_from_1_1(HTTPHdr*, HTTPHdr*)'
../proxy/http3/libhttp3.a(Http3HeaderFramer.o): In function `Http3HeaderFramer::_generate_header_block()':
/home/scw00/trafficserver/proxy/http3/Http3HeaderFramer.cc:88: undefined reference to `HTTPHdr::parse_req(HTTPParser*, IOBufferReader*, int*, bool, bool)'
/home/scw00/trafficserver/proxy/http3/Http3HeaderFramer.cc:91: undefined reference to `HTTPHdr::parse_resp(HTTPParser*, IOBufferReader*, int*, bool)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::decode(unsigned long, unsigned char const*, unsigned long, HTTPHdr&, Continuation*, EThread*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:235: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_prefix(unsigned short, unsigned short, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:293: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:308: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_indexed_header_field(unsigned short, unsigned short, bool, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:485: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_indexed_header_field_with_postbase_index(unsigned short, unsigned short, bool, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:510: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_literal_header_field_with_name_ref(unsigned short, bool, unsigned short, char const*, int, bool, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:547: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:554: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_literal_header_field_without_name_ref(char const*, int, char const*, int, bool, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:583: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:590: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_encode_literal_header_field_with_postbase_name_ref(unsigned short, unsigned short, char const*, int, bool, IOBufferBlock*)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:619: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:626: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_indexed_header_field(short, unsigned char const*, unsigned long, HTTPHdr&, unsigned int&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:644: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_literal_header_field_with_name_ref(short, unsigned char const*, unsigned long, HTTPHdr&, unsigned int&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:691: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:718: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_literal_header_field_without_name_ref(unsigned char const*, unsigned long, HTTPHdr&, unsigned int&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:749: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:756: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_indexed_header_field_with_postbase_index(short, unsigned char const*, unsigned long, HTTPHdr&, unsigned int&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:778: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_literal_header_field_with_postbase_name_ref(short, unsigned char const*, unsigned long, HTTPHdr&, unsigned int&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:821: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:844: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_decode_header(unsigned char const*, unsigned long, HTTPHdr&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:868: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:876: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_insert_with_name_ref(unsigned short, bool, char const*, unsigned short)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1425: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1432: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_insert_without_name_ref(char const*, int, char const*, unsigned short)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1460: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1467: undefined reference to `xpack_encode_string(unsigned char*, unsigned char const*, char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_duplicate(unsigned short)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1492: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_dynamic_table_size_update(unsigned short)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1520: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_table_state_syncrhonize(unsigned short)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1545: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_header_acknowledgement(unsigned long)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1573: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_write_stream_cancellation(unsigned long)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1601: undefined reference to `xpack_encode_integer(unsigned char*, unsigned char const*, unsigned long, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_insert_with_name_ref(QUICStreamIO&, bool&, unsigned short&, Arena&, char**, unsigned short&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1629: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1636: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_insert_without_name_ref(QUICStreamIO&, Arena&, char**, unsigned short&, char**, unsigned short&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1659: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1666: undefined reference to `xpack_decode_string(Arena&, char**, unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_duplicate(QUICStreamIO&, unsigned short&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1688: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_dynamic_table_size_update(QUICStreamIO&, unsigned short&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1710: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_table_state_synchronize(QUICStreamIO&, unsigned short&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1732: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_header_acknowledgement(QUICStreamIO&, unsigned long&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1754: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
../proxy/http3/libhttp3.a(QPACK.o): In function `QPACK::_read_stream_cancellation(QUICStreamIO&, unsigned long&)':
/home/scw00/trafficserver/proxy/http3/QPACK.cc:1775: undefined reference to `xpack_decode_integer(unsigned long&, unsigned char const*, unsigned char const*, unsigned char)'
collect2: error: ld returned 1 exit status

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-1ubuntu2~18.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix

Ah, the order of LDADD :(
@scw00 Nice!


Commands

Description

Refactors all subprocess calls to use a common function
Removes old API key
Moves namelist validation into a different module

Checklist
Please confirm that this pull request has done the following:

[ ] Tests added
[x] Documentation added (where applicable)

Notes

@crdanielbusch Ping


Contact us section

Improving the contact us section by adding a backg color and aligning them list items vertically

@Vanshiii203 duplicate issue.


Occasionally LOP indicators report that they are on track despite being an incomplete program

the LOP indicator in this screenshot was labeled as "non-reporting" and also "on track" which caused it to be occasionally displayed for "on track".  I have fixed the conflicting outputs and now these indicators are hidden when "on track" is selected.

To test - open program QA Program - PaQ  and click "on track" and verify the number of indicators shown matches the number of indicators labeled at the top of the table

When I click "0% are on track", it returns zero indicators as expected. It correctly says, "0 indicators are on track" above the indicator list.

I found a second program example to try -- Humanitarian Assistance for Protracted IDPs and Returnees in Western Afghanistan (OFDA-WASH) -- and got the same result.
Validated.


limit length of people section

replaced innerHeight with static value and added overflow to cols.
Not sure if this is the direction we want to go.
Note: css can be applied to scrollbars via ::webkit for safari, chrome etc. but firefox's gecko will require a plugin.

Interesting idea - we could also cache the height outside of the loop. I'm going to close this PR, since the frontend was rewritten recently. Thanks for sending this.


fix-rxn-prop:addNewGPRrelations

Main improvements in this PR:

Add new GPR relations for existing reactions according to database new annotation
Add database new annotation detailed information in ComplementaryData/databases/DBnewGeneAnnotation.tsv

Addresses issue #60
I hereby confirm that I have:

[X] Tested my code with all requirements for running the model
[X] Selected devel as a target branch (top left drop-down menu)
[x] If needed, asked first in the Gitter chat room about this PR

Structurally it looks fine, but it would good to see a brief description on how these GPRs were decided. Doesn't have to be very detailed, but now this is entirely unclear. Can be mentioned in this PR, or could have been in commit messages, but now it is not mentioned anywhere.

@edkerk the reasoning behind each change can be found in DBnewGeneAnnotation.tsv, which contains all new genes added. For instance, rxn r_0005 has an additional gene YMR306W in the gene rule. If you go to DBnewGeneAnnotation.tsv and search for YMR306W, you'll find that it catalyzes indeed that reaction according to all databases used. The same can be done for all other changes.

As discussed, please provide a short description of where the information regarding gene annotations is coming from, by editing the original pull request message.

@feiranl  could you check 'YAR073W', which may be pseudogene? We should remove gene like this to make sure the quality.

@feiranl @hongzhonglu any remaining changes? if none I will merge in the afternoon.

@BenjaSanchez  No changes from my side.

@BenjaSanchez No changes from my side.


fix: rendering profile images (#480)

Resolve #480
Changes:

Maintain global state for the profiles using Context API
Using useHistory hook, persist the state during the route from Socials to Home page.

How’s it going with this issue @shashank-indukuri ? Please let us know if you need some guidance or help fixing merge conflicts

I am so sorry. I am busy with my academics since last week. So, I haven't got enough time to look into it. I will work on it and will try to merge within 2 days. Thank you.

I am so sorry. I am busy with my academics since last week. So, I haven't got enough time to look into it. I will work on it and will try to merge within 2 days. Thank you.

No worries! I just wanted to check how you were getting on. Studies come first of course.

Thank you so much for the support. I will work on it and let you know if I need any help.

Hey there, do you need any help?

Yeh sure, feel free to drop the error here

Hey there @shashank-indukuri 👋 Just checking in, do you need any help?

Hey there @shashank-indukuri 👋 Just checking in, do you need any help?

Hi @krishguptadev , Thanks for checking in. I have fixed it. Can you review the changes?

Thanks @shashank-indukuri for updating. Could you resolve the conflict too, thanks 👍

I have resolved the conflicts. Thanks.

Why is context not being used in the socials.js file? If users have already been fetched and stored in context by app, shouldn't it be possible to filter that list by username instead of sending another fetch request? So in the useEffect an if check can look at if the list in context is already populated then another fetch doesn't need to be sent. If someone navigated directly to the page so there is no list then the fetch could be sent. Or have I misunderstood something? (My knowledge of context is not great)

The list.json consists of all the users with only username, name and avatar fetched and stored in the context. So, the remaining details are not stored and need to get the profile-specific information every time one navigates to the specific profile.

I have resolved the conflicts. Thanks.

There are still conflicts.. Please resolve

We have decided to go in another direction with regards to rendering the profile images on the homepage and therefore I will close this PR for now as there are still some conflicts that haven't been fixed. Thanks for your contribution and you are welcome  to come back and contribute in the future on other issues if you wish.


[Tooltip] Add placement followCursor

[x] I have followed (at least) the PR section of the contributing guide.

Closes #14270

Did you consider how we could test the feature?

I think we can test it by checking the handleMouseMove function, whether it is passed down to the children component (via onMouseMove props) or not when the followCursor={true}. What do you think?

@xtrixia I think that we should be more end-to-end. I would imagine firing a mouse move event and testing the position of the element is correct.

@oliviertassinari I just added the unit test regarding the mouse move event when followCursor={true} but quite not sure. Let me know your thoughts! 🙏

@xtrixia Great work, thanks!

Just noticed this in the console:
Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Tooltip)`. Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://material-ui.com/r/caveat-with-refs-guide
    in ForwardRef(Tooltip) (at withStyles.js:72)
    in WithStyles(ForwardRef(Tooltip)) (at FollowCursorTooltips.js:7)
    in FollowCursorTooltips (at DemoSandboxed.js:115)

@mbrookes Rebase, it's not present on HEAD.

My bad, I can see it on the server-side (but not the client side)

@mbrookes I can see the warning since: #22945, cc @mnajdova

A simpler reproduction:
import React from 'react';
import { Tooltip } from '@material-ui/core';
import { experimentalStyled as styled } from '@material-ui/core/styles';

const Div = styled('div')`
  width: 20px;
  height: 20px;
  background: red;
`

export default function Demo() {
  return <Tooltip title="foo">
hello
</Tooltip>
}

Spot it: https://github.com/emotion-js/emotion/blob/10514a8635dcaa55b85c7bff90e2a9e14d1ba61f/packages/core/src/context.js#L39. Emotion doesn't use  forwardRef when rendering on the server 🙃

Hello,
Thanks for the feautre.
Currently there is no way to make the tooltip open on inital mouse position , but not follow the mouse cursor. Like most applications:

It would be nice to also support it.


XFAIL test_simpleUploadWithDelegateProvidingInputStream

The test times out frequently.
SR-11343
rdar://54530699

@swift-ci test

I saw this today myself when testing master on both ubuntu14.04 and 18.04 locally


⚠ ClamAV has degraded performance

In e2c4f1f, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 73 ms

Resolved: ClamAV performance has improved in 74e84e9.


Not accounted for download speed == 1024

Change to something like this :
if download_speed > 1024:
//  code
elif download_speed > 1:
//  code
else:
//  code

Modified condition for speed == 1024 as:
if download_speed >= 1024:


Add vm.list.swap and vm.list.copy

Working towards https://github.com/google/iree/issues/7014

(adding @marbre for the emitc changes)

Big thanks to Ben :D
I am going to add some more tests!

I would appreciate if you @cycheng can rebase before I review your changes. @simon-camp landed a fix yesterday with refactored the VMToEmitC conversion. This makes it necessary to pass our typeConverter when inserting ListOpConversion conversion patterns.

I would appreciate if you @cycheng can rebase before I review your changes. @simon-camp landed a fix yesterday with refactored the VMToEmitC conversion. This makes it necessary to pass our typeConverter when inserting ListOpConversion conversion patterns.

Hi @benvanik, @marbre
I've updated new patches, which should fix all of benvanik's feedback. I added a new swap-copy test for variant list type as well and I also tried to write ref-type test, but I need some hints to figure out what is the correct type for vm.list.alloc when allocating ref storage list.
Thanks a lot :)
CY

first round of feedback!
@stellaraccident just checking that the restriction currently in here for list copies/swaps only happening between lists of the same type is ok for you - that you don't need !vm.list<*> <-> !vm.list<i32> kind of stuff. I think we do want that (for subsetting lists inside of others), but am fine with waiting if it's not something you'll be doing right away.

Thanks :)
My coding speed is not fast, so if we can split the work it would be really helpful for me to solve things gradually.

Closing stale PR.


SW-5484 Added file type checker, and responses for invalid file size or types

#2036  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite


Invisible Items in Reduce Sidebar

Hi, I would like to make a new feature request:
It's about hiding items from reduced sidebars with closed sidebars.
They should only be visible when the menu is open.
Here is an example:
https://image.prntscr.com/image/VP6duDTEQ4Gp6SQrScC-MA.png
This should only be displayed when the menu is expanded. :)

the image url receive 404, please reopen with more details


[BUG] load 4GB graph failed on k8s

Describe the bug
use graphscope session to deploy on k8s faild
To Reproduce
session = graphscope.session(
       k8s_coordinator_cpu=1,
       k8s_coordinator_mem="1Gi",
       k8s_vineyard_cpu=1,
       k8s_vineyard_mem="2Gi",
       vineyard_shared_mem="10Gi",
       k8s_engine_cpu=1,
       k8s_engine_mem="2Gi"
       num_workers=1,
       k8s_namespace='gstest008',
       k8s_client_config={"config_file": '/usr/local/airflow/dags/k8s_config'})

log
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 61 on node gs-engine-sbfjpl-0 exited on signal 9 (Killed).

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

GraphScope version: v0.19.0
OS: linux
Kubernetes Version: 1.25.4

https://graphscope.io/docs/frequently_asked_questions.html
#2472
“We found that setting the value to 5 times the size of the datasets on disk is usually a reasonable value”
when i set config it's running
session = graphscope.session(
            k8s_coordinator_cpu=1,
            k8s_coordinator_mem="2Gi",
            k8s_vineyard_cpu=1,
            k8s_vineyard_mem="2Gi",
            vineyard_shared_mem="20Gi",
            k8s_engine_cpu=1,
            k8s_engine_mem="20Gi",
            num_workers=1,
            k8s_namespace='gs-test-112',
            k8s_client_config={"config_file": '/usr/local/airflow/dags/k8s_config'})


Release 3.2.0

The release 3.2.0 will contains updates to solve the following issues:

[x] Segmentation fault on multiple runs - Fix issue #47
[x] Execution stop with: double free or corruption - Fix issue #49
[x] Error when calling gs.executeSync - Fix issue #50

I'm closing the issue because the version v3.2.0 has been released.


CDATA ignores leading/trailing whitespace

First of all, thank you for this extremely fast and useful module!
I would expect CDATA blocks to preserve all characters, including whitespace, no matter where the whitespace is (in the beginning, in the middle, or in the end of the block). XML::Simple does exactly what I would expect, while XML::Hash::XS ignores the whitespace in the beginning and the end of the block:
#!/usr/bin/perl -w
use strict;
use 5.10.0;

use XML::Hash::XS;
use XML::Simple;
use Data::Dump qw(dump);

my $xml = "<r><![CDATA[\n\nHello, world!\n]]></r>";

my $x = XML::Simple::XMLin($xml);
say "XML::Simple: ", dump $x->{a};

my $y = XML::Hash::XS::xml2hash($xml);
say "XML::Hash::XS: ", dump $y->{a};

XML::Simple: "\n\nHello, world!\n"
XML::Hash::XS: "Hello, world!"

I use version XML::Hash::XS version 0.46 on Ubuntu Linux 12.04 and 14.04.
This behaviour (cutting leading/trailing whitespace) can be fixed with a 1-line patch:
$ git diff
diff --git a/src/xh_x2h.c b/src/xh_x2h.c
index 594c131..c4ae092 100644
--- a/src/xh_x2h.c
+++ b/src/xh_x2h.c
@@ -574,7 +574,6 @@ PPCAT(loop, _SEARCH_ATTRIBUTE_VALUE):                                   \
     SCAN6(CDATA, 'C', 'D', 'A', 'T', 'A', '[')                          \
         content = NULL;                                                 \
         DO(END_CDATA1)                                                  \
-            SKIP_BLANK                                                  \
             EXPECT_CHAR("1st ]", ']')                                   \
                 if (content == NULL) content = end = cur - 1;           \
                 DO(END_CDATA2)                                          \

But after this patch, t/06-x2h.t starts failing, so it needs patching as well. I also corrected unneeded interpolation of $% -> 0 in the test. Here is the full patch:
diff --git a/src/xh_x2h.c b/src/xh_x2h.c
index 594c131..c4ae092 100644
--- a/src/xh_x2h.c
+++ b/src/xh_x2h.c
@@ -574,7 +574,6 @@ PPCAT(loop, _SEARCH_ATTRIBUTE_VALUE):                                   \
     SCAN6(CDATA, 'C', 'D', 'A', 'T', 'A', '[')                          \
         content = NULL;                                                 \
         DO(END_CDATA1)                                                  \
-            SKIP_BLANK                                                  \
             EXPECT_CHAR("1st ]", ']')                                   \
                 if (content == NULL) content = end = cur - 1;           \
                 DO(END_CDATA2)                                          \
diff --git a/t/06-x2h.t b/t/06-x2h.t
index 983fad0..b5daa49 100644
--- a/t/06-x2h.t
+++ b/t/06-x2h.t
@@ -13,16 +13,16 @@ our $xml_decl_utf8 = qq{<?xml version="1.0" encoding="utf-8"?>};

 {
     is
-        xml2hash("<cdata><![CDATA[\n\t  abcde!@#$%^&*<>\n\t   ]]></cdata>"),
-        'abcde!@#0^&*<>',
-        'cdata1',
+        xml2hash("<cdata><![CDATA[\n\t  abcde!@#\$%^&*<>\n\t   ]]></cdata>"),
+        "\n\t  " . 'abcde!@#$%^&*<>' . "\n\t   ",
+        'cdata with leading and trailing whitespace',
     ;
 }

 {
     is
         xml2hash("<cdata><![CDATA[ [ abc ] ]> ]]]]]]></cdata>"),
-        '[ abc ] ]> ]]]]',
+        ' [ abc ] ]> ]]]]',
         'cdata2',
     ;
 }
@@ -30,7 +30,7 @@ our $xml_decl_utf8 = qq{<?xml version="1.0" encoding="utf-8"?>};
 {
     is
         xml2hash("<cdata><![CDATA[ ]]]></cdata>"),
-        ']',
+        ' ]',
         'cdata3',
     ;
 }
@@ -61,7 +61,7 @@ our $xml_decl_utf8 = qq{<?xml version="1.0" encoding="utf-8"?>};

 {
     is
-        Dumper(xml2hash(<<"XML", keep_root => 1, content => 'text')),
+        Dumper(xml2hash(<<'XML', keep_root => 1, content => 'text')),
 <root attr1="1" attr2="2">
     <node1>value1</node1>
     <node2 attr1="1">value2</node2>
@@ -89,9 +89,9 @@ XML
 root => {
     attr1  => '1',
     attr2  => '2',
-    cdata  => 'abcde!@#0^&*<>',
-    cdata2 => 'abc ]',
-    cdata3 => '[ abc ] ]> ]]]]',
+    cdata  => "\n" . '        abcde!@#$%^&*<>' . "\n    ",
+    cdata2 => ' abc ]',
+    cdata3 => ' [ abc ] ]> ]]]]',
     item   => ['1', '2', '3'],
     node1  => 'value1',
     node2  => {

Hi! Nice work!
I wondered your investigation :)
I'm going to fix this problem on weekend.

I think it is better to make the removal of the leading and trailing whitespaces of optional.
Already the "trim" option previously has been added, but it was used only for converting of hash to xml.
I modified the code to use this option to converting of xml to hash.
Check please version 0.47 if this soultion will solve your problem.

Thanks a lot! Works perfectly so far.


Change HashRing hash algorithm to FNV1A32 to match with Go.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

The build error seems to be same as this one https://github.com/AsynkronIT/protoactor-dotnet/pull/295, and has no relationship with the FNV1A32 hash and the cluster module.

Looks great!, failed test is unrelated.


Server Side Apply: Adds support for Order controllers to use SSA with Feature Gate

Branched from #4773 which should be merged first.
This PR implements Server Side Apply for the Order controller when the SeverSideApply Feature Gate (default disabled) is enabled.
Where UpdateStatus was previously, a new func are used to check for this feature gate.
See  https://github.com/jetstack/cert-manager/pull/4758 for more details and design.

ServerSideApply: The feature gate `ServerSideApply=true` configures the order controller to use Kubernetes Server Side Apply on Order resources.

/milestone v1.8
/kind feature

/retest

Thanks Josh, this PR makes sense to me in the context of the rest of SSA work.
Adding lgmt with a hold as I don't know if @jahrlin's comments have been addressed
/lgtm
/hold
/approve

Hi! As part of the effort of migrating from Bazel to Make, we have added two new Prow jobs that require this PR to be rebased on top of master in order to pass. The two Prow jobs that were added are pull-cert-manager-make-test and pull-cert-manager-make-e2e-v1-23. Thanks! 🙏

/hold cancel

/retest


UHF-7568: Calculator changes 4.x

UHF-7568

What was done

Calculators were renamed to correct names.

How to install

Check instructions from the helfi_platform_config PR.

How to test

[x] Check the testing instructions from the helfi_platform_config PR.
[ ] Check that code follows our standards

Designers review

[x] This PR does not need designers review
[ ] This PR has been visually reviewed by a designer (Name of the designer)

Other PRs

https://github.com/City-of-Helsinki/drupal-helfi-platform-config/pull/496

Closing this - no reason to backport these changes.


ci: GitHub Actions

Run tests in GitHub Actions, testing against Linux (Ubuntu 20.04) and macOS (10.14).

Here is one version of GH Actions workflow. It is not 100% the same as the travis file. I added some comments.

Also, macOS tests fail randomly
__________________________ test_fit_cache_uncacheable __________________________

    def test_fit_cache_uncacheable():
        """Test that a fit with a random seed set is cached."""
        cache_size_before = shutil.disk_usage(cache_path()).used
        # this fit is NOT cacheable, should not be saved
        normal_posterior = stan.build(program_code)
        normal_posterior.sample()
        cache_size_after = shutil.disk_usage(cache_path()).used
        # allow for a 4096 byte difference (an empty directory takes 4K)
>       assert abs(cache_size_before - cache_size_after) <= 4096
E       assert 348160 <= 4096
E        +  where 348160 = abs((284819333120 -<PHONE_NUMBER>60))

tests/test_fit_cache.py:45: AssertionError

On the wheel publishing, I think the practice is to make that a separate workflow. (Travis CI does not have a concept of separate workflows.)
Perhaps one PR could introduce testing and a second PR introduce the wheel publishing workflow.
Sorry to hear that macos builds are failing randomly. We'll have to solve that problem before we can switch.

This can be two commits, one which switches to github actions and another one which fixes the flaky test.
The commit that's listed right now is incorrect because it doesn't mention switching to github actions.

@riddell-stan I added some prints to the cache test (the commit message is a bit wrong, but we can remove that commit after we figure out how to fix this)
In Ubuntu
tests/test_fit_cache.py::test_fit_cache<PHONE_NUMBER>8
Files in cache (before): ['xde6st3p', '4jtrdzjj', 'npn4yfou', 'ubsfyorz', 'e6jggr4p', 'arqv5ke7', 'm6orjnfj', 'fst3i4w4']
60187987968
Files in cache (while): ['xde6st3p', '4jtrdzjj', 'npn4yfou', 'ubsfyorz', 'e6jggr4p', 'arqv5ke7', 'm6orjnfj', 'fst3i4w4']
Files in cache (after): ['xde6st3p', '4jtrdzjj', 'npn4yfou', 'ubsfyorz', 'e6jggr4p', 'arqv5ke7', 'm6orjnfj', 'fst3i4w4']
PASSED

In macOS
tests/test_fit_cache.py::test_fit_cache<PHONE_NUMBER>84
Files in cache (before): ['6pwjchmp', 'dfazcbbz', 'ycrtzmop', 'prfylupj', '65zrwsed', '2twplmj6', '4b67nwn7', 'j3peqnxo']
286168367104
Files in cache (while): ['6pwjchmp', 'dfazcbbz', 'ycrtzmop', 'prfylupj', '65zrwsed', '2twplmj6', '4b67nwn7', 'j3peqnxo']
Files in cache (after): ['6pwjchmp', 'dfazcbbz', 'ycrtzmop', 'prfylupj', '65zrwsed', '2twplmj6', '4b67nwn7', 'j3peqnxo']
PASSED

So, I think cache test is a bit flawed? The cache should be empty, right?

The tests seem to be passing. We would expect this, right? The GitHub Actions is a straight copy of the Travis CI config, which also yielded passing tests.
If the tests pass, let's merge this (without the debug printing). If there appears to be a flaky test, we can create a new issue.

Yes, let's do that.
My point was that given the following structure
    cache_size_before = shutil.disk_usage(cache_path()).used
    print(cache_size_before)
    print("Files in cache (before):", [item.name for item in cache_path().glob("*")])
    # this fit is cacheable
    random_seed = random.randrange(1, 2 ** 16)
    normal_posterior = stan.build(program_code, random_seed=random_seed)
    normal_posterior.sample()
    cache_size_after = shutil.disk_usage(cache_path()).used
    print(cache_size_after)
    print("Files in cache (while):", [item.name for item in cache_path().glob("*")])
    assert cache_size_after > cache_size_before

    # fit is now in cache
    cache_size_before = shutil.disk_usage(cache_path()).used
    normal_posterior.sample()
    cache_size_after = shutil.disk_usage(cache_path()).used
    print("Files in cache (after):", [item.name for item in cache_path().glob("*")])

There should be a new fit in cache, but either it doesn't create a new fit, or the "new" fit is already cached.
One reason for this could be that we set a random seed somewhere (??) so the random number is always the same --> the fit already exists. This might be something we / GH_Actions do.

re:
print("Files in cache (before):", [item.name for item in cache_path().glob("*")])

Isn't this perhaps only showing cached models, not cached fits? Fits are stored in their "parent" models' directories.

Of course. Yes.

Ok, now it fails again
>       assert abs(cache_size_before - cache_size_after) <= 4096
E       assert 16384 <= 4096
E        +  where 16384 = abs((286331031552 -<PHONE_NUMBER>68))

Let's change 4096 to 16384. That seems like the fastest fit. Maybe adjust the comment a bit, "allow for empty directories (4096 bytes on Linux) and other chance file creations."
Small fits are at least 100K, so this doesn't invalidate the test.

@ahartikainen looks like you're busy. Since #173 depends on this getting fixed, I'll try to work on this tomorrow (Wed) in a separate PR.

Hi,
I can push the change for the test.
Problem is, that I have done a bit more digging and this cache error also happens on Ubuntu.
It is probably some error log file or something similar. I'm trying to trigger it again to see what is going on.

One of the test jobs got stuck (not on a cache issue).
I'll merge this in the hope that we can figure out the issues quickly. We know that Github Actions can work because it's working on httpstan right now.