Fix History API security issue. Shower#222

Add shower.state with current slides mode and remove any uses history API
Sorry for too long-time PR %)
@pepelsbey @ai @mistakster

@zloylos, this is amazing! Let me manually test it and I’ll merge it ASAP. Thank you so much!

That’s great! Recently I ran python HTTP server in a rush just before presentation.
Sorry, cannot review your patch. I’m too far away from my computer at the moment.

14 окт. 2015 г., в 0:27, Vadim Makeev<EMAIL_ADDRESS>написал(а):
@zloylos, this is amazing! Let me manually test it and I’ll merge it ASAP. Thank you so much!
—
Reply to this email directly or view it on GitHub.

@tonyganch Thank you for review :)
Could you look changes?

A number of JSCS errors:
Running "jscs:src" (jscs) task
Illegal space before opening round brace at shower.js :
    35 |
    36 | State.prototype = {
    37 |  set : function (key, value) {
------------------------^
    38 |   this._store[key] = value;
    39 |   this._saveToLocalStorage();
Illegal space before opening round brace at shower.js :
    41 |  },
    42 |
    43 |  unset : function (key) {
--------------------------^
    44 |   delete this._store[key];
    45 |   this._saveToLocalStorage();
Illegal space before opening round brace at shower.js :
    47 |  }
    48 |
    49 |  get : function (key, defaultValue) {
------------------------^
    50 |   var value = this._store[key];
    51 |   return typeof value !== 'undefined' ?
Illegal space before opening round brace at shower.js :
    53 |  },
    54 |
    55 |  _saveToLocalStorage : function () {
----------------------------------------^
    56 |   window.localStorage.setItem(
    57 |    this._localStorageKey,
Illegal space before opening round brace at shower.js :
    60 |  },
    61 |
    62 |  _loadFromLocalStorage : function () {
------------------------------------------^
    63 |   var store = window.localStorage.getItem(this._localStorageKey);
    64 |   return store && JSON.parse(store);
Missing space after key at shower.js :
    68 | // Shower state.
    69 | shower.state = new State({
    70 |  mode: Modes.LIST
--------------^
    71 | });
    72 |
} and  Event handlers should have at most 2 line(s) between them at shower.js :
   908 | for (var overridingProp in window.shower) {
   909 |  shower[overridingProp] = window.shower[overridingProp];
   910 | }
----------^
   911 |
   912 |

The only difference from behaviour on shwr.me I see so far is Esc behaviour: when you press Esc you end up at the top of the list, not at the current slide.

@zloylos, see commits above:

Updated dependencies 59ae1f0
Fixed JSCS warnings; build cf64900

Will push updated tests here later today

@tonyganch I fixed problems with popstate (hash id is invalid or isn't set, isSlideMode) in 4569510

Waiting for release

@ai, there’s no way to just fix it by some magic. Lack of the History API seriously changes the existing behaviour. I’m seriously considering to leave Shower’s core 1.x as is and implement it to 2.0 instead, since 2.0’s code is much easier to edit and better covered with tests.
@zloylos, what do you think?

@pepelsbey I have a conference at Oct 23. And WebConf Riga is soon. What I should to do?

@ai, there are many options:

Open your presentation in Firefox or Safari
Start local server python -m SimpleHTTPServer 8080
Publish your presentation to gh-pages, show it from github.io

Shower is not broken, it’s just Chrome decided to limit its functionality.

@pepelsbey it will not my computer. In IT NonStop I will have only Windows machine. So no Safari and web server. Machine may miss Firefox too. And you know the main rule of conference, prepare for Internet problems.
Chrome and local file is the most stable way to run slides.

@ai, you’re a speaker, you could always require a certain setup to be available. You speak for them for free, demand a comfortable environment. Back to Shower: this is a serious problem, I know, but just I can’t promise to fix immediately. But I’ll do my best in the next couple of days to see if this PR could be merged and released safely.
I wish you would knock to Chrome’s doors with the same passion demanding to revert History API back. But no, blame poor little Shower with no permanent JS developer on board :\

@pepelsbey,

@pepelsbey unstable way to load slides is very bad. All requirements can be missed by conference team.
What is current state of Shower 2? Is it production ready? Can we make a release.

@ai, instead of whining you could just come and help, if you need it that badly. Write those tests for example, so @pepelsbey does not need to check everything manually in terror. You get this tool for free, it's open sourced and last time I checked you were a js developer. Here.

@ai, Shower 2.0 is pretty stable but @zloylos haven’t replaced History API with localStorage there yet AFAIK. I’ll be glad if you could help with this, see shower/core/tree/dev.
I could even untie 2.0 release from the new themes (which are not ready yet and this is what blocks the release). I would be a wise move actually.

@pepelsbey does any theme is ready for Shower 2.0?

@ai, any theme (including yours) could be easily adjusted to work with 2.0, it’s just a matter of changing class names. Ribbon is the one that’s ready: shower/ribbon/tree/next, see index.html.

I add few changes to this pull request:

Replace localStorage to sessionStorage. localStorage store state for entire domain to long time. So when user will open some other presentation on your domain, this presentation will go to same full/list state, that prev. presentation.
I fix all tests. Add sessionStorage cleaner and fix ?full logic.

I must note, that current sessionStorage is not ideal. The problem is same with ?full. We lose symantic. The current state of document should be in #hash, sessionStorage should be used only for JS data, not the state of current document.
The problem is that tab uses common sessionStorage and localStorage for any documents from one domain. It is ideal for JS cache. But symanticly presentation in one tab can be in one state and other tab can have different state.
BTW, ?query was bad too. Query part is part of document identity. So a and a?1 are different documents. This is why / and /?full are different pages for URI. Current problem is result of this unsemantic usage.
The best way is to store full/list state inside #hash. For example, #1 (first slide in fullscreen), #1:list (first slide in list mode). I miss :full in fullscreen mode, because it is most popular mode and it should have cleaner URL. I know, that previous #id was awesome, because allow to work without JS. But right now anyway Shower could not work without JS, so I think we should make with big decision.

Also I test this PR for my presentation in real browser. Everything works even in standalone file build.

@pepelsbey any updates?

@ai :+1:

@ai, on it

@pepelsbey ping

@ai, tonight, I swear


When will asynchronous support be available

HI,  Thank you for your work. I would like to inquire about when will asynchronous support be available

thank you for your interest in this. this can be up for debate. the original purpose of autochain is creating something simple that people have very easy time to go through and experiment. adding async request would be more towards productionizing this repo, which could make custom exploration more challenging

@yyiilluu This is a great library and props to you for releasing it. Here are my two cents on this. I would like to challenge what you mentioned. If the idea is only for exploration:

I would personally say LangChain Agents are already good enough for that purpose.  LangChain agents provide both sync and async options which provides the flexibility to some extent. Now I understand that AutoChain is easier to get started with and add long term memory
Agents take a long time to run, both async and streaming options enable continous feedback from each tool which is essential.
What is the purpose of Agent evaluation in this library then? It more resembles unit tests that are often helpful for production settings.
I think it is extremely easy to build Agent prototypes that do not support async and streaming (here is a repo creating one in around 100 lines of code. I think the trick is how to make a simple modular library for agents that support async and streaming.


ln 98 node_trans_session commented...

https://github.com/illuspas/Node-Media-Server/blob/efc5ef8ffd169e6a914a266a2d07da825ced9734/node_trans_session.js#L98
this line is called in node_trans_server.js  ln 82...
forgot uncomment?
trans after few hours become offline..

well... i see how sometimes the ffmpeg trans get stucked and stop working...
in this case i see that the pid of trans keep working even after the kill() method has been executed...
im testing how to add
this.ffmpeg_exec.stdin.pause();
just before kill() in line 98
i share where i get why to pause stdin:
https://stackoverflow.com/a/18694940


Camera rotation and App size

I have some problems with the plugin:
First, It works fine on my linux, camera rotation is all right, but when I use my android I see that everything is 90 degree rotated, even the robot. Rotating a background plane has no effect, except my frontal camera (but the points and lines shows in incorrect positions, like camera image is still rotated). How to fix it?
Second, how can I decrease the size of application, I used stripping param when build, now it's 180 mb, but still too heavy. I wonder, how to decrease it gradually. I need only Instant motion tracking, nothing more. Maybe I can erase other functions somehow?
Third, it takes about 10 seconds to get android camera start but on linux it takes literally few milliseconds. How to decrease the starting time at least to 1-2 seconds?

First, It works fine on my linux, camera rotation is all right, but when I use my android I see that everything is 90 degree rotated, even the robot. Rotating a background plane has no effect, except my frontal camera (but the points and lines shows in incorrect positions, like camera image is still rotated). How to fix it?

Does it occur on FaceDetection graph, or does it occur only InstantMotionGraph?

I need only Instant motion tracking, nothing more. Maybe I can erase other functions somehow?

Please include only required calculators, models and assets and build it again.
https://github.com/homuler/MediaPipeUnityPlugin/blob/master/mediapipe_api/BUILD#L110
https://github.com/homuler/MediaPipeUnityPlugin/blob/master/mediapipe_api/BUILD#L142

Third, it takes about 10 seconds to get android camera start but on linux it takes literally few milliseconds. How to decrease the starting time at least to 1-2 seconds?

In fact, it takes times to read model files from AssetBundle and save them to the device storage.
By default, model files are read from AssetBundle, but you can place them under StreamingAssets and configure ResourceManager to read them.
https://github.com/homuler/MediaPipeUnityPlugin/blob/master/Assets/Mediapipe/Samples/Scripts/SceneDirector.cs#L64

Does it occur on FaceDetection graph, or does it occur only InstantMotionGraph?

Both

I tried to erase everything except instant motion tracking, but application started to crash. I revert everything and after several experiments I find out that when we start Instant motion tracking as a first graph - application crashes but when I start another graph first and then I switch to Instant motion tracking- it works fine. Here are my crash logs: https://del.dog/ofignestaf.txt
BTW, I still don't know how to fix rotated camera

Please include only required calculators, models and assets and build it again.

I did exactly this

BTW, I still don't know how to fix rotated camera

Please see WebCamTexture#videoRotationAngle (though it may be a bug of sample apps).

I find out that when we start Instant motion tracking as a first graph - application crashes but when I start another graph first and then I switch to Instant motion tracking- it works fine.

I suspect this issue is caused by https://github.com/google/mediapipe/issues/1617 , which is not resolved yet.

Please include only required calculators, models and assets and build it again.

I did exactly this

Have you uninstalled all the resources first?
If you've not removed files under Runtime/Resources, it does not take effect (unnecessary files will be still included in AssetBundle).
I guess you can reduce the app size to around 100 ~ 110MB.

What the minimum of an app size? Could we reach at least 40-50?

Have you uninstalled all the resources first?
If you've not removed files under Runtime/Resources, it does not take effect (unnecessary files will be still included in AssetBundle).
I guess you can reduce the app size to around 100 ~ 110MB.

I don't know. I think it depends on the meaning of 'minimum' and your app.
On the plugin side, you can reduce the size of native libraries and model files to be included to the app.
To reduce the size of native libraries, you can remove unused calculators or specify linker options as you mentioned.
If you'd like to reduce more, please look up those linker options or compiler options.
To reduce the size of model files, simply include only required ones.

For instance, our app's size is 38 mb now, how much heavier will it be if we plug in a minimum of Instant motion tracking?

@homuler  We need to understand this, please answer

Could you please tell me, is it possible to create smt like this:
video_2021-05-11_20-48-30.mp4
First, you can move the circle on your table and then you can link it to a special point. After this you can open a model and it'll be downloaded and model will appear in the circle. The circle should be as a GameObject.
If it's possible, could you tell me how to make it?

This plugin not doing AR exactly what you want. Please check out ARkit, ArCore plugins

Could you please tell me, is it possible to create smt like this:
video_2021-05-11_20-48-30.mp4
First, you can move the circle on your table and then you can link it to a special point. After this you can open a model and it'll be downloaded and model will appear in the circle. The circle should be as a GameObject.
If it's possible, could you tell me how to make it?

If you only need that functionality. There is no reason to use this plugin. Just go with ARFoundation. It's official package maintain & dev by unity.

Fixed by #296

Please see WebCamTexture#videoRotationAngle (though it may be a bug of sample apps)

Yes, it fixed camera rotation, but robot in instant motion tracking is still rotated, I don't know how to fix it

Hi! @Almazikman
could you please explain how did you fix this issue?


2.x Fix information about updated Twig filters

Related:

#2851

Issue
The info about the updated usage of some Twig filters might be confusing and one of the links was wrong.
Solution
Improve Upgrade Guide.
Usage Changes
None.
Testing
No.

As from the linked ticket:

That's an improvement for sure, but I'm still confused by what it means to "extend the Twig environment" that doesn't include adding functions or filters. The examples shown on the Extending Twig Guide are all adding filters and functions. How is that different from adding filters and functions with the other hooks?
Putting my question more succinctly:
If I want to add a custom filter to Twig in Timber, should I use timber/twig with $twig->addFunction or timber/twig/functions with $functions['function_name'] = ?

@gchtr , I am not sure about this either, but if you let me know I can just finish this PR.

Thanks for clearing this up @gchtr !


Add partial support for "O" type plus some improvements

Support "O" type if serialized class was stdClass. In such case return JS Object.
Throw error if serialized bool value is other than "0" and "1".
Make type matching case sensitive to match PHP behavior.
Return false on errors, don't throw.

🙏💥


joal-desktop, unable to seed a torrent

Hey,
I am unable to make joal seed a torrent.
when adding a torrent, joal check the file then delete it (see the screen record).
Someone can help investigating this issue... Thanks in advance.
$ cat /etc/lsb-release
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=22.1.0
DISTRIB_CODENAME=Talos
DISTRIB_DESCRIPTION="Manjaro Linux"

$ java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)

$ ./JoalDesktop.AppImage
Checking for update
Update for version 2.0.16 is not available (latest version: 2.0.16, downgrade is disallowed).
ELECTRON: done updating, no updates available
Asked to install jre
Jre is already installed and does not needs to update
Asked to install joal
Joal is already installed and does not needs to update
JRE: done updating, no updates available
JOAL: done updating, no updates available
All updates done
Start joal now
Running joal with config:  { host: '<IP_ADDRESS>',
  port: 5081,
  pathPrefix: '********-****-****-****-************',
  secretToken: '********-****-****-****-************' }

https://user-images.githubusercontent.com/1873139/230336425-a30a7087-35e5-4cc9-b0ab-80e38e3b75e6.mp4

The command line version output the error message
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/araymond/joal/JackOfAllTradesApplication has been compiled by a more recent
version of the Java Runtime (class file version 55.0), this version of the Java Runtime
only recognizes class file versions up to 52.0

	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)

The issue with command line version is now fixed by installing jre11-openjdk and witching to version 11
$ sudo pacman -S jre11-openjdk
$ sudo archlinux-java set java-11-openjdk
$ archlinux-java status
Available Java environments:
  java-11-openjdk (default)
  java-8-openjdk/jre

... Remains the problem described in the first post.

Hi, indeed the message was telling you that you were needing to install java 11+. Not sure why though, since joal-desktop should download his own JRE anyway...
For your problem, most of the time is because of :

The torrent is too old (the tracker may have changed his address and you need to re-download the torrent file)
Joal-Desktop can't talk with the tracker (no network, DNS blocked by your ISP)

Can you double check those?


cuda is not compatible

Hello, author. What version of cuda and Nvidia driver are you using? tensorflow1.14.0 officially supports cuda 10.0, torch1.11.0 officially supports cuda 10.2, but the 10.2 version does not support tesnsorflow1.14.0, and these issues also lead to driver incompatibility. May I ask how to solve this problem? I run this project under ubuntu18 system,I need your help.Looking forward to your reply,thank you!

Hi, I’m not the author of this repo, but I’ll try to help.
First of all, the core network of SCRIMP is implemented in pytorch, so tensorflow is a redundant dependency. As a working example, I recommend the docker setup from the POGEMA benchmark. Here is the link: POGEMA Benchmark Dockerfile. If Docker isn’t an option, consider using cuda 11.6 with torch<2.0,>=1.9, which worked for our case.

Hi, I’m not the author of this repo, but I’ll try to help.
First of all, the core network of SCRIMP is implemented in pytorch, so tensorflow is a redundant dependency. As a working example, I recommend the docker setup from the POGEMA benchmark. Here is the link: POGEMA Benchmark Dockerfile. If Docker isn’t an option, consider using cuda 11.6 with torch<2.0,>=1.9, which worked for our case.

Thank you for your reply. I have taken your suggestion, but now I have encountered a new problem. As shown in the picture, I hope to get your help!

I haven't encountered such an error. It seems that there might be an issue with the initialization of self.PROB, which should default to OBSTACLE_PROB = (0.0, 0.5)


Improvement: Mega empty trash or hard deleting files

Hi,
It would be great to have the possibility of empty the Mega trash after deleting or syncing files, or at least to have the possibility of "hard deleting" the files instead of moving it to Mega trash.
My issue is that I have to manually empty my Mega trash two times a day because there are a lot of deleted files in it due to sync processes. If I do not do it, I will be run out of space in Mega.
Thank you for your great job!
Kind regards,
Javier

Implementing --mega-hard-delete would be very easy.
I wanted to make a global --hard-delete flag for rclone.
Emptying the trash wouldn't be too tricky either.
Fancy helping with any of these?

It would be awesome any of your proposals!
--hard-delete flag for rclone would be great. At the first stage it could be valid for Mega (just Mega or any other platforms you decide) and in the future for others. That is only my suggestion that I think it is on the same page as your idea, but of course it is up to you.
Thank you very much for your help!
Kind regars,
Javier

I'll do the --mega-hard-delete flag first as it is really easy.  A --hard-delete flag is a little tricker so can come later.
Here it is with --mega-hard-delete.  Note that you can also set it in the config file (use the advanced config for mega in rclone config).
https://beta.rclone.org/branch/v1.42-063-gccf53448-fix-2409-mega-hard-delete/ (uploaded in 15-30 mins)
How does that work for you?

It worked like a charm!
Thank you very much for your fast and great support, and also for your awesome software!
Best regards,
Javier

I've merged that to master now along with some docs
You can find it here
https://beta.rclone.org/v1.42-065-gf9eb9c89/ (uploaded in 15-30 mins)
It will be in the latest beta from now on and in the 1.43 release.

@ncw

Emptying the trash wouldn't be too tricky either.

Hi,
Any advance on this one?
TIA,
CT

@ncw
Could you include this subject in the roadmap?
The only way I found has been to build a rather convoluted batch to list trash (using megatools !)
and then recursively delete the elements found. If those are too many, the batch fails because of limitations of batch variable length. Way around is to use a for /f, then it fails if there are not only ANSI characters. If there are too many not only ANSI filenames in the Trash, only way is going to browser access...
Thanks again,
CT

The only way I found has been to build a rather convoluted batch to list trash (using megatools !)
and then recursively delete the elements found. If those are too many, the batch fails because of limitations of batch variable length. Way around is to use a for /f, then it fails if there are not only ANSI characters. If there are too many not only ANSI filenames in the Trash, only way is going to browser access...

Do you mean emptying the trash on mega? Can you please make a new issue about that.  Do you want to help implement it?

@ncw
Thanks Nick.
Yes, the point is emptying the trash on mega.
I will open a new issue, and I can help providing info on my experience and help to debug any code, but I am not knowledgeable to code or make PRs... really sorry, just a kind of "smart user".
CT

https://github.com/ncw/rclone/issues/3138

Trash emptying is now implemented which means it will be in the latest beta in 15-30 mins and released in v1.48


Disowning/Unmaintain Packages part I and II

We will unmaintain:

VirtualBox
VirtualBox-kmod
mythtv
mythplugins
mpg123
syncthing
syncthing-inotify
libreoffice-gtk3
apm

PART II

lame
libmng
zvbi
dtksettings (only available in F28 oficially)
deepin-tool-kit (coming soon to official)
vid.stab (coming soon to official)
foobnix (WebKit3 dropped)
easy-ebook-viewer (WebKit3 dropped)
fdk-aac (coming soon to official f27, but we need check the stripped version by Taymans; if it doesn't work us, then we need provides a "fdk-aac-freeworld")

Reasons? There is no interested maintainer or isn't necessary maintain; Some of these programs require a lot of time. And constant changes in the kernel complicate everything. Any objections? Welcome but with a real solution.

No , none at all , you may remove it please  , BTW I going integrate some patches about 3D acceleration passthrough on VBox of RF, made by Hans [1] https://fedoraproject.org/wiki/Changes/VirtualBox_Guest_Integration

Ok, then the next sync, I will delete the packages in list ; also the final update for F24...

for me you may processed and delete the packages mentioned

@sergiomb2 only vid.stab and fdk-aac needs wait. The others is already deleted.

Chromium has stopped to support widevine (#21), while out of the box Firefox nicely plays DRM content.
Kodi 18 (alpha and unusable) was irresponsibly chosen to be the version included in UnitedRPMs.
transmission-sequential is not supported anymore, so I'm going back to qbittorrent.
Its being very hard to find a reason to keep using UnitedRPMs, while plain Fedora and some complements from rpmfusion are perfecty doing the job.

Kodi update coming soon; Don't worry, please open bug about Kodi if it is unusable. About Chromium, we need people testing it; we applied the fix about it...
About transmission-sequential; if exist a people helping here, we can enable again our transmission-sequential... Everything has a solution; but a hand is necessary. :ok_hand:

About Kodi, the bug is the bad decision to put alpha software on the main repo. I’m simply not using it and went back to previous stable version. And it is so inconvenient to manage OS updates while taking care of not updating just Kodi, that I decided to disable UnitedRPMs entirely. Bad decision to use alpha software.

@avibrazil Good luck; each one chooses his destiny. :smile:


Problem afer update top "Home Assistant 2023.5.2"

Did you read the instructions?

[X] I have read the README, including the advanced debugging section.

The problem
Logger: homeassistant.setup
Source: setup.py:252
First occurred: 12:36:49 (1 occurrences)
Last logged: 12:36:49
Setup failed for custom integration tahoma: No setup or config entry setup function defined.
Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest
What version of this integration (ha-tahoma) has the issue?
V2.15.0
What version of Home Assistant Core has the issue?
10.1
Which gateway / hub do you use?
Overkiz
Device model
No response
Home Assistant log
Logs
Copy/paste any log here, between the starting and ending backticks. The first log line must start with "Added device (Device...".

Additional information
No response

This is due to a deprecation notice of the "config entry setup" previously reported in the logs, that ended up removed in this month's release.
Integrations need to do things differently, but as this integration is not supported anymore (see deprecation notice in README.md), it is very unlikely to see this bug fixed. You are advised to use the official integration available in Core Home Assistant.
But if you are like me (stuck with this integration due to Hi Kumo Hub not yet supported in Core), I don't see another way than downgrading your version of Home Assistant.

Update to v2.15.0.
@kindlma which devices are not supported yet on core for you?
@chabou-san which device is not supported for you in core? Hi Kumo Hub is supported for sure, but not all devices are migrated yet.

Oh great, I missed that update ! Many many thanks. :)
I'm using AirToAir Heat Pump climate entities from Hi Kumo (and I'm frequently, yet patiently, checking the status of that PR https://github.com/home-assistant/core/pull/81743). ;)
Keep up the good work guys !


Removing note on hub sites being new and potentially not yet available

Note mentions Hub sites to roll out in March 2018. They are rolled out WW already by now, so the remark is no longer needed
Category

[X] Content fix
[ ] New article

Related issues:
N/A
What's in this Pull Request?
Note mentions Hub sites to roll out in March 2018. They are rolled out WW already by now, so the remark is no longer needed

thx @KoenZomers, appreciated.


Problems opening SBOL when annotation references another CD

The issue is when you download a part from SynBioHub it has a “TopLevel” annotation that points back to the part.  Then, when you try to edit the part in your own namespace, the URI is changed but the TopLevel annotation continues to point to the old CD.  Then when you do “createRecursiveCopy” you end up getting both the new part and the original part.  This causes SBOLDesigner to crash opening the selected CD, since getRootComponentDefinition returns two roots when only one is expected:
https://synbiohub.org/public/igem/BBa_K879018/1
https://synbiohub.utah.edu/user/codymaughan/p53_TNF_Circuit/p53_TNF_Circuit/1
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: expected one element but was:
at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:317)
at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:329)
at edu.utah.ece.async.sboldesigner.sbol.SBOLUtils.getRootCD(SBOLUtils.java:258)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.load(SBOLDesign.java:463)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesignerPanel.openDocument(SBOLDesignerPanel.java:557)
There are two options:

SBOLDesigner could not rely on createRecursiveCopy only producing a single root CD but instead use the identity of the part selected to determine what the root is for display.

Create a new createRecursiveCopy function that only traverses "definitions" and not annotations.

p53_TNF_Circuit.zip

6050d27fd8813775e04dcda7f2381775fd153562
1829aa1a1433256f7342992d7d27c86fe49b7e2d
I've completely removed SBOLUtils getRootCD.  Every prior usage of that helper function now directly gets the rootCD through other means.  This is better than what we discussed (storing the root that was selected by RootInputDialog) because that root could change.  What the rootCD actually is depends on the state of the canvas, etc.
There is still a bug with Activities and saving, but this is covered in the remaining Provenance issues.


[Request] Allow to have history suggetions without search suggestions

Describe the bug
Since recently visited sites suggestions are entirely on device, I don't think it should depend on having search suggestions enabled. It should be possible to turn on the second toggle without enabling the first:

I do not benefit from search suggestions personally (and, even though they go to trustworthy DDG, some people might see them as a privacy issue) but I would love to be suggested recent websites and bookmarks or even open tabs like on iOS!
How to Reproduce

Go to General settings
Disable Search suggestions
See Recently visited suggestions also be disabled

Expected behavior
Being able to enable every type of suggestions independently of search.
Environment
- DDG App Version: 5.218
- Device: Moto Edge
- OS: Android 13

Hello! Thanks for filling this report. This is actually how the feature has been designed to work as Recently visited sites feature is a sub-feature of the Search suggestion feature. Having that said, I forwarded your suggestion to our product team to see if this is something worth exploring further.


Bugfix/fix tabs focus state border regression

@CrossR seems there was one small-ish regression with the tabs the border top of the inactive tabs is supposed to be transparent so there isnt a resizing flicker this PR fixes it and adds some test cases for the functionality.
I'll avoid using cherry pick commits from #1915 in the future, since it was a WIP and its hard to know what bits were converted or how, makes it hard for me to find the regressions, but think this was it for that branch will create one from scratch for the menu components and later the other bits

Thanks for reviewing 👍


Error 105 received from application: Isolate must be runnable

Steps to Reproduce
`dependencies:
  multi_page_form:
  transformer_page_view:
  flutter_walkthrough:
  encrypt: ^3.2.0
  flutter_secure_storage: ^3.2.1+1
  flutter_local_notifications: ^0.7.1+3
  shimmer: ^1.0.0
  flutter_crashlytics: ^1.0.0
  splashscreen: ^1.2.0
  permission_handler: ^3.1.0
  cached_network_image: ^0.8.0
  flutter_spinkit: ^3.1.0
  carousel_slider: ^1.3.0
  url_launcher: ^5.0.3
  dio: ^2.1.7
  firebase_auth: ^0.11.1+6
  rflutter_alert: ^1.0.2
  http: ^0.12.0+2
  flutter_auth_buttons: ^0.5.0
  flutter_facebook_login: ^2.0.1
  flutter_svg: ^0.10.2
  flutter:
    sdk: flutter

  dev_dependencies:
  json_serializable: ^3.0.0
  build_runner: ^1.0.0
  flutter_test:
    sdk: flutter

import 'package:flutter/material.dart';
import './StartPage.dart';
import './LoginPage.dart';
import './HomePage.dart';
import './Settings_page/SettingsPage.dart';
import './TabNavigator.dart';
//import 'SignUpUserPage.dart';

void main() => runApp(new HublyApp());

class HublyApp extends StatelessWidget {
  final routes = <String, WidgetBuilder>{
    StartPage.tag: (context) => StartPage(),
    LoginPage.tag: (context) => LoginPage(),
    HomePage.tag: (context) => HomePage(),
    //SignUpUserPage.tag: (context) => SignUpUserPage(),
    SettingsPage.tag: (context) => SettingsPage(),
    TabNavigator.tag: (context) => TabNavigator(),
  };

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: StartPage(),
      routes: routes,
    );
  }
}`

I don't know how the error occurred. The main function is correctly setup. I have tried multiple forum post but nothing worked
Logs
    +65 ms] Scanned through 439 files in 60ms

[   +1 ms] Syncing files to device Android SDK built for x86...
[        ] Scanning asset files
[  +10 ms] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:hubly_app/main.dart e44d721e-ab6d-49f9-934a-f36777b9c731
[   +4 ms] <- e44d721e-ab6d-49f9-934a-f36777b9c731
[   +4 ms] -> result a0765988-3fd4-4623-a190-7025460366b7
[  +28 ms] -> a0765988-3fd4-4623-a190-7025460366b7
[   +1 ms] -> a0765988-3fd4-4623-a190-7025460366b7 build\app.dill.incremental.dill 0
[   +1 ms] Updating files
[  +22 ms] DevFS: Sync finished
[   +7 ms] Syncing files to device Android SDK built for x86... (completed in 82ms)
[        ] Synced 0.0MB.
[   +3 ms] Sending to VM service: _flutter.setAssetBundlePath({isolateId: isolates/165584173, viewId: _flutterView/0xe9fde80c, assetDirectory:
/data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/build/flutter_assets})
[  +10 ms] Result: {type: Success, view: {type: FlutterView, id: _flutterView/0xe9fde80c, isolate: {type: @Isolate, fixedId: true, id: isolates/165584173, name:
main.dart$main-165584173, number: 165584173}}}
[   +9 ms] Sending to VM service: _reloadSources({pause: false, rootLibUri:
file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/lib/main.dart.incremental.dill, packagesUri:
file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/.packages, isolateId: isolates/165584173})
[  +10 ms] Error 105 received from application: Isolate must be runnable
[   +2 ms] {request: {method: _reloadSources, params: {pause: false, rootLibUri:
file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/lib/main.dart.incremental.dill, packagesUri:
file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/.packages, isolateId: isolates/165584173}}, details: Isolate must be runnable before
this request is made.}
Unhandled exception:
{code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: false, rootLibUri: file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/lib/main.dart.incremental.dill, packagesUri: file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appTOZPFA/hubly_app/.packages, isolateId: isolates/165584173}}, details: Isolate must be runnable before this request is made.}}
#0      _rootHandleUncaughtError. (dart:async/zone.dart:1112:29)
#1      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)

info - Unused import: 'dart:async' - lib\Client.dart:1:8 - unused_import
info - Unused import: 'dart:convert' - lib\Client.dart:2:8 - unused_import
info - Unused import: 'package:http/http.dart' - lib\HomePage.dart:3:8 - unused_import
info - The value of the field 'auth' isn't used - lib\LoginPage.dart:18:16 - unused_field
info - Unused import: 'package:json_serializable/builder.dart' - lib\Models\UserModels\UserModels.dart:1:8 - unused_import
info - The function '$CreateUserDTOFromJson' isn't used - lib\Models\UserModels\UserModels.g.dart:109:15 - unused_element
info - Name non-constant identifiers using lowerCamelCase - lib\Models\Users_repository\UserRepository.dart:16:23 - non_constant_identifier_names
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\Legal_settings\legal_settings.dart:5:7 - non_constant_identifier_names
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\Logout_settings\logout_settings.dart:5:7 - non_constant_identifier_names
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\Notification_settings\notification_settings.dart:5:7 -
non_constant_identifier_names
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\Profile_settings\profile_settings.dart:5:7 - non_constant_identifier_names
info - Unused import: 'colors.dart' - lib\Settings_page\SettingsPage.dart:4:8 - unused_import
info - Unused import: 'header.dart' - lib\Settings_page\SettingsPage.dart:6:8 - unused_import
info - Unused import: 'item.dart' - lib\Settings_page\SettingsPage.dart:7:8 - unused_import
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\Support_settings\support_settings.dart:5:7 - non_constant_identifier_names
info - Unused import: 'package:flutter/material.dart' - lib\Settings_page\deleteProfile_settings\deleteprofile_settings.dart:2:8 - unused_import
info - Unused import: 'package:flutter/cupertino.dart' - lib\Settings_page\deleteProfile_settings\deleteprofile_settings.dart:3:8 - unused_import
info - Name non-constant identifiers using lowerCamelCase - lib\Settings_page\deleteProfile_settings\deleteprofile_settings.dart:5:7 -
non_constant_identifier_names
info - Unused import: 'group.dart' - lib\Settings_page\group.dart:4:8 - unused_import
info - Unused import: 'header.dart' - lib\Settings_page\group.dart:5:8 - unused_import
info - Unused import: 'package:multi_page_form/multi_page_form.dart' - lib\SignUpUserPage.dart:4:8 - unused_import

[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.18362.175], locale en-DK)
• Flutter version 1.5.4-hotfix.2 at G:\flutter
• Framework revision 7a4c33425d (8 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at G:\Android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• ANDROID_HOME = G:\Android-sdk
• ANDROID_SDK_ROOT = C:\Program Files (x86)\Android\android-sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 33.4.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at G:\Intellij\IntelliJ IDEA 2018.1
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] IntelliJ IDEA Ultimate Edition (version 2018.3)
• IntelliJ at G:\Intellij\IntelliJ IDEA 2018.3.1
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[√] VS Code (version 1.35.1)
• VS Code at C:\Users\Hadi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.1.0
[√] VS Code, 64-bit edition (version 1.26.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.1.0
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
! Doctor found issues in 2 categories.

A white screen appears with the error:
E/flutter ( 7023): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: error: import of dart:mirrors with --enable-mirrors=false
E/flutter ( 7023): [ERROR:flutter/shell/common/engine.cc(175)] Could not prepare to run the isolate.
E/flutter ( 7023): [ERROR:flutter/shell/common/engine.cc(122)] Engine not prepare and launch isolate.
E/flutter ( 7023): [ERROR:flutter/shell/platform/android/android_shell_holder.cc(167)] Could not launch engine in configuration.
D/EGL_emulation( 7023): eglMakeCurrent: 0xf17c6840: ver 3 0 (tinfo 0xf17b19f0)
Syncing files to device Android SDK built for x86...
2,906ms (!)
�🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://<IP_ADDRESS>:53285/jqRuHHossTY=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
Initializing hot reload...                                             |Error 105 received from application: Isolate must be runnable
Unhandled exception:
{code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: false, rootLibUri: file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appDUHZMK/hubly_app/lib/main.dart.incremental.dill, packagesUri: file:///data/user/0/com.hubly.hublyapp/code_cache/hubly_appDUHZMK/hubly_app/.packages, isolateId: isolates/972266956}}, details: Isolate must be runnable before this request is made.}}
#0      _rootHandleUncaughtError. (dart:async/zone.dart:1112:29)
#1      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)

I have also tried to just return a simple MaterialApp in main.dart instead:
    return MaterialApp(       color: Colors.blueAccent,     );
But that does not work either

i have had this problem too.
Did you solve it now?

i have the same issue:

E/flutter (11264): [ERROR:flutter/shell/common/engine.cc(175)] Could not prepare to run the isolate.
E/flutter (11264): [ERROR:flutter/shell/common/engine.cc(122)] Engine not prepare and launch isolate.
E/flutter (11264): [ERROR:flutter/shell/platform/android/android_shell_holder.cc(167)] Could not launch engine in configuration.

@HadiSDev did you solve this problem?

Yes I did. Can I see your dependencies also in dev.
@zekihocanet

@wangjue666 probably a dependency problem. Can I see your pub yaml file

Same issue, my pubspec.yaml:
`name: ng_sales_rep_app
description: A new Flutter project.
The following defines the version and build number for your application.
A version number is three numbers separated by dots, like 1.2.43
followed by an optional build number separated by a +.
Both the version and the builder number may be overridden in flutter
build by specifying --build-name and --build-number, respectively.
Read more about versioning at semver.org.
version: 0.3.11+36
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
charts_flutter: ^0.6.0
dio: ^2.1.13
url_launcher: ^5.0.5
flutter_redux: ^0.5.3
redux_persist: ^0.8.2
redux_persist_flutter: ^0.8.1
path_provider: ^0.5.0+1 # Plugin redux_persist_flutter 0.8.1 has dependency on this version
flutter_udid: ^1.0.0
device_info: ^0.4.0+2
event_bus: ^1.1.0
datetime_picker_formfield: ^0.2.0
google_maps_flutter: ^0.5.19+2
android_alarm_manager: # Waiting on https://github.com/flutter/flutter/issues/34110 to stable
git:
url: https://github.com/flutter/plugins
path: packages/android_alarm_manager
flutter_email_sender: ^2.0.3
package_info: ^0.4.0+4
webview_flutter: ^0.3.9+1
flutter_local_notifications: ^0.6.0 # Needs a gradle update before updating > 0.6.0
connectivity: ^0.4.3+4
uuid: ^2.0.2
file_picker: ^1.3.7
open_file: ^2.0.3
geolocator: ^4.0.3
The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.7.0
flutter_icons:
android: true
ios: true
image_path: "assets/logo.png"
For information on the generic Dart part of this file, see the
following page: https://www.dartlang.org/tools/pub/pubspec
The following section is specific to Flutter.
flutter:
The following line ensures that the Material Icons font is
included with your application, so that you can use the icons in
the material Icons class.
uses-material-design: true
To add assets to your application, add an assets section, like this:
assets:
- assets/NG_Syspro_Logo_Menu.png
- assets/bg-005.jpg
- assets/bg-045.jpg
- assets/map_markers/celestemarker.png
- assets/map_markers/darkbluemarker.png
- assets/map_markers/darkredmarker.png
- assets/map_markers/electricyellowmarker.png
- assets/map_markers/greenmarker.png
- assets/map_markers/orangemarker.png
- assets/map_markers/pinkmarker.png
- assets/map_markers/shamrockmarker.png
An image asset can refer to one or more resolution-specific "variants", see
https://flutter.io/assets-and-images/#resolution-aware.
For details regarding adding assets from package dependencies, see
https://flutter.io/assets-and-images/#from-packages
To add custom fonts to your application, add a fonts section here,
in this "flutter" section. Each entry in this list should have a
"family" key with the font family name, and a "fonts" key with a
list giving the asset and other descriptors for the font. For
example:
fonts:
- family: Schyler
fonts:
- asset: fonts/Schyler-Regular.ttf
- asset: fonts/Schyler-Italic.ttf
style: italic
- family: Trajan Pro
fonts:
- asset: fonts/TrajanPro.ttf
- asset: fonts/TrajanPro_Bold.ttf
weight: 700

For details regarding fonts from package dependencies,
see https://flutter.io/custom-fonts/#from-packages
`

Any updates on this?

We think this is fixed in the latest stable, @lucien-theron do you still get this error in 1.9.1 ?

Hi @jonahwilliams sorry for delay. Just tested and I am still getting the error:

I got this error on Hot Reload/Restart after I upgrade master for Flutter Desktop.
The error is in all existing mobile projects on stable also.
I mentioned here #42834 in detail

I am fairly sure it has something to do with packages/plugins not working together. The way I fixed it was to remove packages one by one and each time see if error is still thrown.

This error, I noticed, started happening the day next I upgraded Android Studio to 3.5.1.

@HadiSDev Can you let me know what package or combination of packages you had to remove? I am trying to fix this error for my application and would be nice to know what caused the issue for you.

The two packages which were conflicting were json_serializable and json_annotation. The reason being that json_serializable already includes json_annotation, so including that separately messed up the package version.

Thanks for answering. I finally found my issue. It was related to Firebase messaging.
I was calling
_firebaseMessaging.configure(
      onMessage: onMessage(context),
      onBackgroundMessage: myBackgroundMessageHandler,
      onLaunch: onLaunch(context),
      onResume: onResume(context),
 );

in the build method of my top most widgets in the widget tree. Removing the background message handler and moving it to the initState method of a stateful widget solved the problem for now.

Thanks for answering. I finally found my issue. It was related to Firebase messaging.
I was calling
_firebaseMessaging.configure(
      onMessage: onMessage(context),
      onBackgroundMessage: myBackgroundMessageHandler,
      onLaunch: onLaunch(context),
      onResume: onResume(context),
 );

in the build method of my top most widgets in the widget tree. Removing the background message handler and moving it to the initState method of a stateful widget solved the problem for now.

May i know how your  code after moving background to iniut state?

I am also getting this error when hot reloading with Firebase. It only happens when setting onBackgroundMessage on Android.

Thanks for answering. I finally found my issue. It was related to Firebase messaging.
I was calling
_firebaseMessaging.configure(
      onMessage: onMessage(context),
      onBackgroundMessage: myBackgroundMessageHandler,
      onLaunch: onLaunch(context),
      onResume: onResume(context),
 );

in the build method of my top most widgets in the widget tree. Removing the background message handler and moving it to the initState method of a stateful widget solved the problem for now.

May i know how your code after moving background to iniut state?

This is working for me:
class _LandingPage extends State<LandingPage> {
  final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();

  static Future<dynamic> onMessage(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onMessage(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  static Future<dynamic> onResume(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onResume(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  static Future<dynamic> onLaunch(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onLaunch(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  @override
  void initState() {
    _firebaseMessaging.requestNotificationPermissions(
        const IosNotificationSettings(sound: true, badge: true, alert: true));
    _firebaseMessaging.configure(
      onBackgroundMessage:
          Messaging.myBackgroundMessageHandler,  // external lib
    );
    _firebaseMessaging.subscribeToTopic('all');
  }

  @override
  Widget build(BuildContext context) {
    _firebaseMessaging.configure(
      onMessage: (message) async => onMessage(context, message),
      onLaunch: (message) async => onLaunch(context, message),
      onResume: (message) async => onResume(context, message),
    );

    ...

There are a couple different issues being discussed here. The original bug was a configuration issue which has long since been fixed. For the firebase messaging problem, I would recommend that someone who experienced and fixed the bug file a new issue detailing the problem and what you did. we can use that to update documention

Thanks for answering. I finally found my issue. It was related to Firebase messaging.
I was calling
_firebaseMessaging.configure(
      onMessage: onMessage(context),
      onBackgroundMessage: myBackgroundMessageHandler,
      onLaunch: onLaunch(context),
      onResume: onResume(context),
 );

in the build method of my top most widgets in the widget tree. Removing the background message handler and moving it to the initState method of a stateful widget solved the problem for now.

May i know how your code after moving background to iniut state?

This is working for me:
class _LandingPage extends State<LandingPage> {
  final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();

  static Future<dynamic> onMessage(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onMessage(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  static Future<dynamic> onResume(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onResume(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  static Future<dynamic> onLaunch(
      BuildContext context, Map<String, dynamic> message) async {
    Messaging.onLaunch(message);  // external lib
    alert(message.toString(), context);  // external lib
  }

  @override
  void initState() {
    _firebaseMessaging.requestNotificationPermissions(
        const IosNotificationSettings(sound: true, badge: true, alert: true));
    _firebaseMessaging.configure(
      onBackgroundMessage:
          Messaging.myBackgroundMessageHandler,  // external lib
    );
    _firebaseMessaging.subscribeToTopic('all');
  }

  @override
  Widget build(BuildContext context) {
    _firebaseMessaging.configure(
      onMessage: (message) async => onMessage(context, message),
      onLaunch: (message) async => onLaunch(context, message),
      onResume: (message) async => onResume(context, message),
    );

    ...

i want to know, why did you configure fcm in buildwidget instead of in initstate?

Any updates on this issue?

我运行在ios 上显示白屏
I'm running on ios with a white screen
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.4 19E266, locale zh-Hans-CN)
• Flutter version 1.12.13+hotfix.8 at /Users/wilson/aochuang/FlutterSDK
• Framework revision 0b8abb4724 (7 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/wilson/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Users/wilson/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4, Build version 11E146
• CocoaPods version 1.9.0
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 44.0.3
• Dart plugin version 193.6494.35


PDF Issue with Acrobat Reader

Hi,
I use this great Library to create PDF-Files. It works fine with different PDF-Viewers, but Acrobat Reader reports error 14 „dict object expected“.  Acrobat Reader opens and displays your reference files from the test-project without erros. When I run the tests, CreateA4PdfBill1() fails when files are compared. Analyzing the corrupted file the page-dimensions are shown as 595 x 0.
This is my testcode
   bill.Format.GraphicsFormat = GraphicsFormat.PDF;
   bill.Format.SeparatorType = SeparatorType.DottedLineWithScissors;
   bill.Format.Language = Language.DE;
   byte[] pdf = QRBill.Generate(bill);
   File.WriteAllBytes(path, pdf);

when I use
PDFCanvas canvas = new PDFCanvas(QRBill.A4PortraitWidth, QRBill.A4PortraitHeight);
QRBill.Draw(bill, canvas);
canvas.SaveAs(path);
the same error comes up. Is there any solution for this problem?
Thank you very mutch in advance
Stefan

actual_a4bill_ex1.pdf
Thank you very much for your reply. I compiled the sources on Win 10 (1909) with VS 2019 and  and on an other machine with VS 2017 on Win 10 (1909). I tryed different .Net Versions with the same result. The software I wrote is a .Net Core 2.1 Application (VS2017) and integrates your lib with NuGet.  Version is 2.3.4 (2.3.1  produces the same result).
The file can be read from Sumatra, Firefox or Edge (Chromium) and fails with Edge (older version) and Acrobat Reader DC (current version).
Stefan

See continuation in issue #19


工具箱能否新增生成随机字符串的工具

工具箱能否新增生成随机字符串的工具  就是那种类似随机密码随机秘钥的那种

@xpf0000 Can i take this up to work on this feature. Good for first issue as a vue beginner right?

这是来自QQ邮箱的假期自动回复邮件。你好，我最近正在休假中，无法亲自回复你的邮件。我将在假期结束后，尽快给你回复。

@xpf0000 Can i take this up to work on this feature. Good for first issue as a vue beginner right?

Yes. This is a good start.
But this issue is only a string related content.  If only this simple function takes up a toolbar position.  It may be a bit inappropriate
You may need to consider more string related features For example, MD5 AESDES, etc.  You can think about it first Then share your ideas and discuss them

The latest version has been added

这是来自QQ邮箱的假期自动回复邮件。你好，我最近正在休假中，无法亲自回复你的邮件。我将在假期结束后，尽快给你回复。


File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/board/board.py", line 139, in init
    self.target.init()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/core/soc_target.py", line 157, in init
    seq.invoke()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/utility/sequencer.py", line 213, in invoke
    resultSequence.invoke()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/utility/sequencer.py", line 208, in invoke
    resultSequence = call()
                     ^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 442, in _connect
    probe_conn.connect(self._protocol)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 172, in connect
    self._connect_probe(protocol)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 189, in _connect_probe
    self._probe.connect(protocol)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/stlink_probe.py", line 182, in connect
    self._link.enter_debug(STLink.Protocol.SWD)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/stlink/stlink.py", line 327, in enter_debug
    self._check_status(response)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/stlink/stlink.py", line 365, in _check_status
    raise exceptions.ProbeError(error_message)
pyocd.core.exceptions.ProbeError: STLink error (9): Get IDCODE error

JlinkOB – baite
[Mar30 22:06] usb 3-1.2: new full-speed USB device number 84 using xhci_hcd
[  +0.152411] usb 3-1.2: New USB device found, idVendor=1366, idProduct=0101, bcdDevice= 1.00
[  +0.000005] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000003] usb 3-1.2: Product: J-Link
[  +0.000001] usb 3-1.2: Manufacturer: SEGGER
[  +0.000002] usb 3-1.2: SerialNumber:<PHONE_NUMBER>56

$ pyocd list
  #   Probe/Board               Unique ID   Target
----------------------------------------------------
  0   Segger J-Link (unknown)   123456      n/a

STM32
$ pyocd erase --chip -t stm32f103c8; pyocd load -t stm32f103c8 ./miniblink.bin
0001397 I Erasing chip... [eraser]
0001636 I Chip erase complete [eraser]
0001375 I Loading /home/bdroy/STM32-base/libopencm3-examples/examples/stm32/f1/stm32-maple/miniblink/miniblink.bin [load_cmd]
[==================================================] 100%
0001998 I Erased 1024 bytes (1 sector), programmed 1024 bytes (1 page), skipped 0 bytes (0 pages) at 1.61 kB/s [loader]

PY32
$ pyocd load ./Build/example-blink.hex -t py32f002x5 --config ./Misc/pyocd.yaml
0001146 C Memory transfer fault (Unspecified error.) [__main__]
Traceback (most recent call last):
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/jlink_probe.py", line 407, in read_dp
    value = self._link.coresight_read(addr // 4, ap=False)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pylink/jlink.py", line 204, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pylink/jlink.py", line 3388, in coresight_read
    raise errors.JLinkException(res)
pylink.errors.JLinkException: Unspecified error.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 766, in read_dp
    result_cb = self.probe.read_dp(addr & DPADDR_MASK, now=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/jlink_probe.py", line 409, in read_dp
    raise self._convert_exception(exc) from exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (Unspecified error.)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/jlink_probe.py", line 418, in write_dp
    self._link.coresight_write(addr // 4, data, ap=False)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pylink/jlink.py", line 204, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pylink/jlink.py", line 3415, in coresight_write
    raise errors.JLinkException(res)
pylink.errors.JLinkException: Unspecified error.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/__main__.py", line 161, in run
    status = cmd.invoke()
             ^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/subcommands/load_cmd.py", line 98, in invoke
    with session:
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/core/session.py", line 391, in __enter__
    self.open()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/core/session.py", line 529, in open
    self._board.init()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/board/board.py", line 139, in init
    self.target.init()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/core/soc_target.py", line 157, in init
    seq.invoke()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/utility/sequencer.py", line 213, in invoke
    resultSequence.invoke()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/utility/sequencer.py", line 208, in invoke
    resultSequence = call()
                     ^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 446, in _connect
    connector.connect()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 255, in connect
    self._idr = self.read_idr()
                ^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 284, in read_idr
    dpidr = self._dp.read_dp(DP_IDR, now=True)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 768, in read_dp
    self._handle_error(error, num)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 982, in _handle_error
    self.clear_sticky_err()
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 993, in clear_sticky_err
    self.write_reg(DP_ABORT, ABORT_ORUNERRCLR | ABORT_WDERRCLR | ABORT_STKERRCLR | ABORT_STKCMPCLR)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 514, in write_reg
    self.write_dp(addr, data)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/coresight/dap.py", line 808, in write_dp
    self.probe.write_dp(addr & DPADDR_MASK, data)
  File "/home/bdroy/.local/pipx/venvs/pyocd/lib/python3.11/site-packages/pyocd/probe/jlink_probe.py", line 420, in write_dp
    raise self._convert_exception(exc) from exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (Unspecified error.)

Something I just discovered: programming works better at 3V3 Vcc. At least some of the probes that weren't working for me actually DO work, but only when running the PY32 at 3.3V. And all probes seem to work with more stability and reliability at 3.3V

@prosper00 I'm having the exact same problem. which programmers did you use to connect?
the vendor mentions a py-link programer which seems like a modified jlink but I couldn't find it anywhere.
I have a st-linkvs but I can't connect to it using neither stlink nor dap link.

@prosper00 I'm having the exact same problem. which programmers did you use to connect?
the vendor mentions a py-link programer which seems like a modified jlink but I couldn't find it anywhere.
I have a st-linkvs but I can't connect to it using neither stlink nor dap link.

any of the jlinks generally work, but only when the target is on 3.3V

@prosper00  would a clone Jlink OB work as well? like this one
https://sinkrtech.com/products/sinkr-arm-programmer-compatible-j-link-ob-replace-jjlink-v8-sdw-emulation-debugger-arm-programmer-download-cable-supports-mdk-iar-keilno-jtag-interface

probably, yeah

I have used this board with success: Air32F103CBT6
https://www.aliexpress.com/item/1005004635091721.html
With the air32_daplink_v1.hex , from the below
https://gitee.com/openLuat/luatos-soc-air32f103/tree/master/AIR_Jlink_Keil
I couldn't get the "new" v2 firmware to work.
https://www.eevblog.com/forum/microcontrollers/air105-air32f103-new-chinese-arm-chips/msg5014411/#msg5014411
I programmed the Air32 w. a jlink , specifying taget as : STM32F103CB

I was attempted to flash a Puya PY32F003 on the official development board (PY32F003F18P EVB) with a DAPLink (no brand on it), and got Unexpected ACK value (5). In my case, this was fixed when I plugged in the USB-C. In addition to having 3.3V connected on the DAPLink connector (which I thought would be enough?).
Just thought I would mention it, in case it can save someone else some time :) It was a rather unintuitive error for this case...

Just a couple of thoughts, that might not relate directly to the original case but might help somebody else in the future.
I'm just bringing up a board (it is actually the board out of a vape, which had the SWD connections available...) which has a PY32C624F15 QFP20 on it. I'm using a PiPico as a DAP dongle running the free-dap open firmware.
I had no joy connecting to the core until I did a couple of other things:

I added in the 10k pullups and 22r inline impedance matching resistors as shown on the Arm SWD wiring docs
I programmed down the clockspeed on the pyocd command line with -Ofrequency=1000000 for instance
oddly, the chip does not seem to respond until after I have tried to connect using edbg - which itself fails, but then pyocd works... I'm presuming edbg does something to the SWD that then enables pyocd to connect - I'll have to figure out exactly what that is later if I get around to adding the seemingly rare PY32C624 support to pyocd etc. I'm currently treating the chip as a PY32F002B, which is very close in terms of specifications (flash, ram etc.).

I can now read the flash, ram and options area contents.


Add a fullscreen button in BlockRain activity

The idea is to add a fullscreen button in the toolbar to increase the size for activity content on small devices.
The complete process is describe in #399

Fixed in https://github.com/llaske/sugarizer/commit/22f4d6bb0e49e07c687af8efa5a6c33136413601


Properly traverse back to the App object for selecting menu items on cocoa

Properly call back to the App object to get access to _menu_items to run menu commands.
Fixes #409
PR Checklist:

[ ] All new features have been tested
[ ] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

I can add a test for this, let me know if I should poke into those.

@clokep If you can work up a test case for this, that would be great; if it can't be tested easily, drop a comment to that effect and I'll merge as-is.

I'm fairly sure this can be tested, but I'm having some trouble wrapping my mind around it. I think you'd need to create a sample toga.App with a Command on it, but I'm unsure if that test will "work" without an event loop / UI showing.

@freakboy3742 Just wanted to close the loop on here -- I'm not sure I'll get another chance to look at this for a couple of weeks. So it might be better to merge this as is instead of waiting for the tests. Your call though!
Thanks for all your hard work! 🥇

Thanks!


⚠ PrivateHD has degraded performance

In 60eaf87, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 3999 ms

Resolved: PrivateHD performance has improved in eadceaf.


Add RFC stubs, including RFC template

Adds stubs for polyfill and error handling
Adds a standard RFC template
Draft RFC for vertex mode

Coverage remained the same at 99.132% when pulling 849a95a78d930fc0a794df0373805b793ae1b28c on nrabinowitz:rfc-stubs into 93b5a30adef3c60ff4a7dd773f03dba040eb8673 on uber:master.


Project repository should be owned by DATA300L111-20S organization.

Please move this repository from your personal account to our DATA300L111-20S GitHub organization. You can do this as follows:

Go to your repository Settings on GitHub.
Scroll down to the "Danger Zone" and find "Transfer ownership".
Follow the instructions to transfer your repository to the DATA300L111-20S organization.

Transferred Ownership


[WIP] Change CUB submodule to track Nvidia CUB project.

Description

Update submodule url to https://github.com/NVlabs/cub
Point CUB head to v1.8.0

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[X] Changes are complete (i.e. I finished coding on this PR)
[X] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[X] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[X] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

cub has its releases. shall we just remove the submodule and use the releases instead?

@mxnet-label-bot add [pr-work-in-progress]


Merged cell in reversed order

When selecting multiple cells down and merging, cell get merged in reversed order.

Create 3 cell 1 to 3.
Select first cell.
Shift-Down 2 times while in command mode.
Merge (Shift-M)

Expected:
Cell 1 - contain 1, 2, 3
Observed
Cell 1 contain 3,2,1
This does not happen when selecting down-up.

Confirming same behavior seen as @Carreau. Here's a gist with a test notebook: https://gist.github.com/willingc/9ea18c8126e7dc4349433ef319058eb2

Huh, I get 3, 1, 2. But still, definitely not the right order.

Somehow this also depends on the selection order. If you select the 3rd cells and extend the selction upwards to the 1st cell, then the cells are merged in the right order...

Help is welcome, @F-A!  The relevant code is here: https://github.com/jupyter/jupyterlab/blob/master/src/notebook/notebook/actions.ts#L102

@blink1073 Sorry, I currently have too much work and I won't have time to fix it any time soon.
However, having a quick look at the code using firefox debugger, the problem comes from the "active cell":

you first create a list of cells to merge, excluding the currently active one (in case of a up to bottom selection, the last bottom one)
you then clone the active cell (l. 139)  and append to it the code of the cells to merge
As a result your new cells code is: the active cell code (the last one) followed by the other selected cells in the right order.

I do not really understand why one use the last selected cell as primary. I would rather use the first selected cell, i.e. the top one) which should solve the bug.

No worries, thank you for taking a crack at it.


Uat 1332 remove store radio selections

JIRA link
https://companieshouse.atlassian.net/browse/UAR-1332
Change description
Updated

start new
remove sold land filter
remove entity is registered
Click back link previous input is displayed in the radio buttons.

Work checklist

[x] Tests added where applicable
[ ] UI changes meet accessibility criteria

Merge instructions
We are committed to keeping commit history clean, consistent and linear.  A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

Looked at @markpit 's updates - LGTM - will let others update with any comments.

I'm still happy with this PR.


Update Geneva Location

Add Swisscom to the Geneva location.

@mialdrid : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@mialdrid : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @mialdrid - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. Would you make this content update in the private repo instead? A small update like this likely will auto-merge. Thank you! We'll close this PR.

Hi @mialdrid - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. Would you make this content update in the private repo instead? A small update like this likely will auto-merge. Thank you! We'll close this PR.


Support asymmetrical images

Currently the technique really only works for square images, since the placeholder itself is square. A landscaped image would take up less vertical space for the same width, causing a content jump after being replaced.
Providing image dimensions with size: "WxH" as usual should scale the svg accordingly.

Image dimensions is now propagated and preserved with v1.1.1


Update setup.py

@wesselb  Sorry, that was totally my fault...
I think this is a better way to do it, because even if we add folders or files later on they are ignored.

Coverage remained the same at 100.0% when pulling 6aac4df67c79bc1a6ccc6ff9f2a1686ced688a62 on PhilipVinc-patch-1 into 27308f7ae652534e15098e68636486e577bd5532 on master.

Not a problem at all!! Thanks for the PR. This looks like a much better solution. :)


TaxonName - verbatim name

In the TaxonName make "verbatim_name" field editable. I have some data which came from the migration which need to be modified. It could be done on Edit TaxonName task (with a hidden value as an advanced option). Or on the Data side, which have an access to the row data.

I'll do this on the data side.
On Mon, Nov 26, 2018 at 2:31 PM Dmitry Dmitriev<EMAIL_ADDRESS>wrote:

In the TaxonName make "verbatim_name" field editable. I have some data
which came from the migration which need to be modified. It could be done
on Edit TaxonName task (with a hidden value as an advanced option). Or on
the Data side, which have an access to the row data.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SpeciesFileGroup/taxonworks/issues/684, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AABYSNOyY8nF8rm4MwZ29iRBjeu-klqdks5uzE-7gaJpZM4YzxqO
.


Made DB class singleton

Description
Make DB class singleton this will improve caching and memory usage.
https://github.com/SuperDuperDB/superduperdb/issues/1145
You might want to read
https://github.com/blog/1506-closing-issues-via-pull-requests
Checklist

[x] Is this code covered by new or existing unit tests or integration tests?
[x] Did you run make test successfully?
[x] Do new classes, functions, methods and parameters all have docstrings?
[x] Were existing docstrings updated, if necessary?
[x] Was external documentation updated, if necessary?

Additional Notes or Comments

Hello,
we need the DB class from datalayer in the code, not in the docs.
Also, you need to hash the DB instance based on databackend, vector database, artifact store and metastore
Thanks

@thejumpman2323 okay will try to do in code.

@thejumpman2323  okay will try to do in code.


Access token not being set when reponse type does not have id_token

Hello Guys!!
Im facing a strange issue when upgrading from 4.0.3 to 5.02.
Using the previous version I had the response type like this
authConfig.responseType = 'code token';
After upgrading the library to 5.0.3 the app stopped to get the access token. I can see the Acccess token in the URL though.

Then I changed my response type to be like this and it started to work
authConfig.responseType = 'code token id_token';
This is the correct behavior?? Am I missing something?
Maybe this is only related to my company indentity server.
Small repro steps.
ng new appname
npm -i angular-oauth2-oidc
private configureWithNewConfigApi() {
    this.oauthService.configure(this.getConfig());
    this.oauthService.oidc = true;
    this.oauthService.setStorage(localStorage);
    this.oauthService.tokenValidationHandler = new NullValidationHandler();
    this.oauthService.loadDiscoveryDocument().then(() => {
      this.oauthService.tryLogin().then(() => {
        console.log(this.oauthService.getAccessToken());
      });
    });
  }

  private Login() {
    this.oauthService.initImplicitFlow();
  }

  private getConfig(): AuthConfig {
    const authConfig = new AuthConfig();

    authConfig.issuer = 'myurl';
    authConfig.oidc = true;

    authConfig.responseType = 'code token';
    authConfig.redirectUri = window.location.origin;

    authConfig.clientId = 'myclientid';

    authConfig.scope = 'openid email profile';
    authConfig.showDebugInformation = true;

    return authConfig;
  }

<button (click)="Login()">Login</button>

I Tried to create a stackblitz but I couldnt use my test server there, sorry!
Thanks
_

I'm seeing something similar.  local storage is not being written with the access token (and other details)

As far as i can tell this is not an expected behavior or have i missed something in the oidc specs? It seems like the access token won't be processed when the id_token wasn't requested as well.

code token and code token id_token is hybrid flow which is not supported by this lib.

I had the same issue with requesting solely the token scope.
I configured the oauthService using the responseType: "token" which should only request the access token. The response i get from the Authorization Server is a redirect containing the access token. But looking at my browser storage the access token doesn't get processed at all. As a matter of fact it's still present in the redirected url.
But once i change the responseType to token id_token the access token gets processed, stored in the browser storage and removed from the redirected url. This is not the expected behavior, since it requires me to request the id_token which i don't need only to get the access token processed by the library.


feat: add brazilian portuguese translation

Closes #884

this accumulates all the changes so we can see them all together, without this there's no preview deployment of all the work up until now

You can still build the pt branch manually whenever you wanted.

Here


Add Travis support

Add rake tasks to run rspec and cucumber tests (theses tasks are not run by default to keep the same behaviour)
Add a configuration file for Travis

To elaborate a bit more on my motivations for doing this :

I've seen that you are currently using buildkite, unfortunately it's not free, making it harder for the community to contribute to this project.
This change isn't intended to replace Buildkite with Travis but to allow contributors to run the tests on their own forks.
The reason I've added the rake tasks is that Travis uses a simple yaml file to describe the build using a profile (here 'ruby') and automatically takes care of the bundle installs, runs tests on multiple versions of ruby, etc.
As it's probably not a good idea to have a different paths for each CI system, I think it would be better to change the buildkite scripts to run rake rather than to twist the logic of travis and do a custom build. I didn't do it in this PR as I'd first like to know what you think about it.

I'm happy to discuss this further if you want.

The reason we used buildkite was simply because at the time we hadn't yet open sourced the code. Now that it's open source there's no good reason to stick with it.
:+1:

:+1: let's move to travis.


and normal zap open channels automatically?

every time I open, has one or two channels open, which I did not ask for the manual open, and normal wallet zap add contacts automatically? thankful

Hello João,
Zap has autopilot enabled as default. If you don't know what autopilot is you can see more here

I bugged rsr
I saw, but I did not understand anything. but OK

yeah that's autopilot. you'll be able to configure it soon. closing


Begin/End nesting limited

I'm passing the Zui object down into several other objects to draw their own thing. I'm trying to render to a render target like so:
	if(ui.panel(panelID,header)){
		for(m in messages.keys()){
			ui.text('${m}: ${messages[m]}');
		}
	}

	ui.separator();

	ui.end();

	fpsCanvas.g2.begin(true, 0);
	fpsPoints[0] = messages['Scene time'];

	for(i in 0...fpsPoints.length){
		fpsCanvas.g2.drawRect((200 - ratio) * i, fpsPoints[i]*60,1,1);
	}

	fpsCanvas.g2.end();

	ui.begin(); <----- problem

In this scope I do not have the g2 object and I can't call begin without pointing to a g2. To fix this I'm also passing the g2 object into the function to pass it back into the begin call.
perhaps there should be something like continue() considering globalG is already set.
No idea if im using it wrong.
Edit: I just realized calling end actually flushes the whole thing, any advice?

So i realized I should probably use Zui.g ?

If it works then ui.g.end(); sounds ok.

it seems to work, but it feels weird touching the graphics state. It will do.


Initial copy of 5.2.1 to 5.2.2

Is the intention here to just make the copy and do the other steps in a separate PR? (i.e. 11.ii and 11.iii in the Release Process)

@tst-ccamp the goal of this PR is to have a place where to document changes made in master (5.2.2) for setting a default database (#693).

I'm good with approving this PR as is, but we probably shouldn't close #698 until the other 2 steps are completed, otherwise we'd just have to open a new issue for that, which seems like wasted effort.


Adding OWNERS file for drupal chart

@prydonius does this pattern work for a bitnami owners file setup or should we alter something else as well?

/lgtm


Remove mandatory playground and PureScript dependencies from PAB

Describe the feature you'd like
Many (if not most?) PAB users do not care about the playground nor use PureScript in their projects (also see #19). However, the current setup forces them to build and track playground-common, the purescript-bridge & servant-purescript forks, and more related dependencies by default. This is unnecessarily resource-consuming and scary. It would be way better if plutus-pab doesn't depend on any playground and PureScript machinery by default.
From a quick experiment, it looks like plutus-pab only needs FunctionSchema, FormSchema, and perhaps EndpointToSchema from playground-common, which may be ported to plutus-schema or something? For PureScript we can just port Plutus.PAB.Run.PSGenerator to plutus-purescript?
We would love to work on this if accepted.
Describe alternatives you've considered
We can progress just fine with these dependencies in place. However, we do believe PAB would be a lot more user-friendly without them. This will also ease off dependency management a bit for dApp developers, which at the moment is quite stressful and unfriendly, see #180.

Thanks for the issue!
Yeah, we already discussed that a few months ago (after #19) and waiting for a final decision.


storage/merge: sync histogram resethint handling in chainSampleIterator

storage/merge.go uses inconsistent handling of histogram counter resets in chainSampleIterator
Add unit tests around the behavior and make the handling consistent.

Restarted failing tests.

Yay, tests worked. I'm still fighting my review backlog. I'll try to get to this ASAP (which means next week, probably…).


Automate update of @misk/common/vendors.js

Create function that consumes externals object and generates necessary require statements for vendors.js

Given how infrequently this is updated, automating it is less of a priority.


New package: BigBangenterprises.DoubleKiller version <IP_ADDRESS>

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/111851&drop=dogfoodAlpha

@microsoft-github-policy-service agree


The Tag to use for ExFreePoolWithTag should be documented

This document states that developers can use ExFreePoolWithTag to free allocated TokenInformation but does not specify what Tag value should be used. Because of the fact that ExFreePool can also be used, developers would assume zero of Tag could be used, but a document of   ExFreePoolWithTag explicitly prohibit it (Each ASCII character in the tag must be a value in the range 0x20 (space) to 0x126 (tilde)). (In fact, a tag value used for allocation is not zero (  eS, specifically), so freeing with zero causes tag leak technically.)
To avoid this confusion with ExFreePoolWithTag, this document should be explicit about what Tag can or should be used for deallocation.

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

ID: aa719a3c-1b44-240a-204e-b07d4568cdd0
Version Independent ID: a428da50-0d29-7aff-e0c7-20e765b8fad6
Content: SeQueryInformationToken function | Microsoft Docs
Content Source: wdk-ddi-src/content/ntifs/nf-ntifs-sequeryinformationtoken.md
Service: unspecified
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

Made change to https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/wdm/nf-wdm-exfreepoolwithtag

I am bit confused at this change. The issue was that the document of the SeQueryInformationToken function did not state what tag value should be used, and the linked change did not clear that point.

Rather than changing the API for ExFreePoolWithTag to reflect the range of ExFreePoolWithTag, isn't it more appropriate, to change documentation of ExFreePoolWithTag to address this?

The thing is that SeQueryInformationToken will be allocating pool with some tag value that might be zero, Se  , or something else, which developers cannot tell as it is not documented.
The update just made describes the general rule of the accepted tag value. However, as the documentation of ExFreePoolWithTag says
Specifies the tag value passed to ExAllocatePoolWithTag or ExAllocatePoolWithQuotaTag when the block of memory was originally allocated.

, developers are expected to pass the same tag value for ExAllocatePoolWithTag to free pool allocated by SeQueryInformationToken or the tag leaks. Yet, the tag value to use is not specified, which confuses developers and pretty much forces to use ExAllocatePool knowing it would leak a tag.
Sorry if I am not describing the issue clearly. Hope it makes sense.

It appears that a developer should use only ExFreePool for the tag. Currently a developer may use ExAllocatePool in lieu of ExFreePool but in the future the behavior of this API may change.

Limiting only to ExFreePool for freeing TokenInformation makes sense to me.


Bits pod going in CrashLoopBackOff

Describe the bug
Bits pod going in CrashLoopBackOff
To Reproduce
on GKE, deploy HA kubecf with eirini enabled
Expected behavior
Bits goes in CLBO. However, it goes to Running state for a second after all other pods goes in running state. I think thats why this was not caught earlier by automation tests.
As you can see below from the time stamp it goes to CLBO, running, error and then back to CLBO
scf           bits-79494db8cf-w8rfd                                             0/1     CrashLoopBackOff   6          8m15s

+ kubectl get pods --namespace scf
+ gawk '{ if ((match($2, /^([0-9]+)\/([0-9]+)$/, c) && c[1] != c[2] && !match($3, /Completed/)) || !match($3, /STATUS|Completed|Running/)) { print ; exit 1 } }'
bits-79494db8cf-w8rfd                            0/1     CrashLoopBackOff   7          16m
+ sleep 10
+ kubectl get pods --namespace scf
+ gawk '{ if ((match($2, /^([0-9]+)\/([0-9]+)$/, c) && c[1] != c[2] && !match($3, /Completed/)) || !match($3, /STATUS|Completed|Running/)) { print ; exit 1 } }'
+ kubectl get pods -n scf
NAME                                             READY   STATUS      RESTARTS   AGE
adapter-0                                        4/4     Running     0          12m
adapter-1                                        4/4     Running     0          12m
api-0                                            15/15   Running     1          12m
api-1                                            15/15   Running     2          5m15s
bits-79494db8cf-w8rfd                            1/1     Running     8          17m

bits-79494db8cf-w8rfd                            0/1     Error       8          17m

bits-79494db8cf-w8rfd                            0/1     CrashLoopBackOff   9          24m

"error":"tls: private key does not match public key" :
Phnet4Ld/eqPlHrpE23Tq058WsERTWTWVH3I9DlQWnTuN+EWoB3lC9LgXzU\nMwGPHa69Yda5ke1lAesVw/t/b5GSxuy7b2DlCqz7tIZzQBdQh5t48iyR/fWxVdfY\nbjl4nIRzcTOF1WLhkFo0Fw==\n-----END CERTIFICATE-----\n"}
{"level":"info","ts":1589566523.8479302,"caller":"bitsgo/factory.go:334","msg":"Creating local blobstore","path-prefix":"/"}
{"level":"debug","ts":1589566523.8479633,"caller":"local/local_blobstore.go:38","msg":"GetNoRedirect","local-path":"/assets/eirinifs.tar"}
{"level":"info","ts":1589566527.9009383,"caller":"bitsgo/main.go:86","msg":"Starting with OCI image registry","registry-host":"registry.<IP_ADDRESS>.nip.io","http-enabled":true,"http-port":8888,"https-port":6666}
{"level":"info","ts":1589566527.902795,"caller":"bitsgo/main.go:200","msg":"Starting HTTPS server","ip-address":"<IP_ADDRESS>","port":6666,"public-endpoint":"registry.<IP_ADDRESS>.nip.io:6666","private-endpoint":"bits.scf.svc.cluster.local"}
{"level":"info","ts":1589566527.9030082,"caller":"bitsgo/main.go:160","msg":"Starting HTTP server","ip-address":"<IP_ADDRESS>","port":8888,"public-endpoint":"registry.<IP_ADDRESS>.nip.io:6666","private-endpoint":"bits.scf.svc.cluster.local"}
{"level":"fatal","ts":1589566527.9034812,"caller":"bitsgo/main.go:206","msg":"HTTPS server crashed","error":"tls: private key does not match public key"}

Environment
cf-operator     	cf-operator	1       	2020-05-15 10:57:08.408707 -0700 PDT	deployed	cf-operator-4.5.6+0.gffc6f942  	4.5.6+0.gffc6f942
susecf-scf      	scf        	1       	2020-05-15 10:57:51.415944 -0700 PDT	deployed	kubecf-2.0-RC1                 	2.0-RC1

Additional context
Start unsuccessful:
[1589569019] CF-Logging-Smoke-Tests - 2 specs - 4 nodes S
------------------------------

[2020-05-15 18:57:21.30 (UTC)]> cf push SMOKES-3-APP-af612b666e259e44 -b binary_buildpack -m 16M -k 16M -p ../../assets/binary -d prabal-gke.ci.kubecf.charmedquarks.me
Deprecation warning: Use of the '-d' command-line flag option is deprecated in favor of the 'routes' property in the manifest. Please see https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#routes for usage information. The '-d' command-line flag option will be removed in the future.

Pushing app SMOKES-3-APP-af612b666e259e44 to org SMOKE-3-ORG-7455c8c17fab9b92 / space SMOKE-3-SPACE-2081674eb53c577c as cf_smoke_tests...
Getting app info...
Creating app with these attributes...
+ name:         SMOKES-3-APP-af612b666e259e44
  path:         /var/vcap/packages/smoke_tests/src/github.com/cloudfoundry/cf-smoke-tests/assets/binary
  buildpacks:
+   binary_buildpack
+ disk quota:   16M
+ memory:       16M
  routes:
+   smokes-3-app-af612b666e259e44.prabal-gke.ci.kubecf.charmedquarks.me

Creating app SMOKES-3-APP-af612b666e259e44...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
 594 B / 594 B  100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...
   2020/05/15 18:57:36 Cleaning cache dir

Waiting for app to start...
FAILED
Start unsuccessful

I don't see smoke tests being run for eirini: https://concourse.suse.dev/teams/main/pipelines/kubecf?group=prod

non prod: May 11 2020
Start unsuccessful
https://concourse.suse.dev/teams/main/pipelines/kubecf/jobs/smoke-tests-eirini-pr/builds/30

Confirm if this is the case with Eirini in non-HA. If we're clear, then we can focus on #888 for the next kubecf release and worry about Eirini HA later. bits will be deprecated soon so fixing this will be a non-priority.

I can confirm that the problem exists with Eirini in non-HA

I could not repro on SA env.
On HA, it might be due improper cleanup of bits CSR as its not namespaced

We can't make the CSR itself namespaced, because it's not a namespaced resource type; also, because we don't create it ourselves (the operator does).  Effectively, we can't really do anything other than clean up correctly.  But that should be fine: the operator should be deleting obsolete CSRs via https://github.com/cloudfoundry-incubator/quarks-operator/issues/952.
Closing, as there's nothing we should be doing here.