Semantic editor combinators

Conal Elliott has a pretty cool article on how just fmap and (generalized) flip are sufficient for doing complex transformations of functions of values of functions of ..., etc, simply by virtue of how many things are naturally functors of differing variance.
As an example, let's look at the signature for a foldl:
Prelude Data.Functor> :t foldl
foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b

Let's say for whatever reason I wanted a slightly different foldl' that adds 2 to all of the as in that b -> a -> b expression, or something arbitrary like that.
Now I could sit down and start expending some mental effort to actually work out a transformation, but I could also just use Conal's totally mechanized, no-brain required approach. Given the original foldl, I want to take the argument's return's argument, and apply +2 to it. How do I express this with semantic editor combinators?
Prelude Data.Functor> arg = flip fmap
Prelude Data.Functor> ret = fmap
Prelude Data.Functor> foldl' = (arg . ret . arg) (+ 2) foldl
Prelude Data.Functor> foldl (+) 0 [1, 2, 3, 4]
10
Prelude Data.Functor> foldl' (+) 0 [1, 2, 3, 4]
18

I think a language of similar "semantic combinators" comprised of meaningful aliases could be useful in Sanctuary as well. The problem is that we don't have the convenient infix (.) operator, so our applications of S.map have to be on the left hand side. This makes things not nearly as convenient. I was hoping someone would be able to figure out an equivalent encoding in Sanctuary that is just as readable.

Another interesting example, motivated by recent discussion in the Gitter:
foldMap f = ((arg . ret) (. f) foldl) mappend mempty

This is new to me, but I can at least provide the Sanctuary translation of the Haskell code:
const arg = S.flip (S.map);
const ret = S.map;
const reduce$ = S.pipe ([arg, ret, arg]) (S.add (2)) (S.reduce);

S.reduce (S.add) (0) ([1, 2, 3, 4]);  // => 10
reduce$ (S.add) (0) ([1, 2, 3, 4]);  // => 18


4.22 Compat + QoL changes

Added :

SetMeshSection
GetSectionIdAndFaceIdFromCollisionFaceIndex
RuntimeMeshManager

Thanks for attempting to maintain this in my absense! I'm accepting it as-is and will start from here with the v4 overhaul!


"Uncaught ReferenceError: "import" is not defined at import requests"

Same result.
Shelly log:
Uncaught ReferenceError: "import" is not defined
at import requests
----end


[WIP] Rename Server to StreamingServer and created a buffering Server facade around StreamingServer

Implements / closes #259

Do you plan to update this and the related documentation?

Yes that is the next step

I'm currently working on a number of PRs that will very likely conflict with this reorganization and wonder when it's a good time to file these PRs :+1:

I'll update ASAP, so we can iterate of it and get this in ASAP.

@clue tests are updated, will update the docs tonight and also add a section about the facade.

@jsor @clue I've just pushed my first bit of work on the readme. Feel free to already add comments on what you would like to see where so I can add/change that tomorrow


VSCode fails to spawn ycmd (Windows)

I just installed vscode-youcompleteme, and the plugin is having some trouble spawning the ycmd process. Autocomplete only works when I manually spawn ycmd from command prompt.

I have YCMD working in vim: usual problems already resolved (building ycmd, ycm_extra_conf, etc)
I have the VSCode (1.23.1) settings listed below
AutoComplete does not work out of the box
Manually spawning YCMD causes AutoComplete to start working.

Logs attached. In this example, I have done the following:

Start VSCode
AutoComplete is NOT working
Inspect Log File Below
Extract command "C:/Python36/python.exe" "C:\\Users\\USERNAME\\vimfiles\\bundle\\YouCompleteMe\\third_party\\ycmd\\ycmd" "--port=16856" "--options_file=C:\\Users\\USERNAME\\AppData\\Local\\Temp\\2\\VSCodeYcmOptions-1527870139537" "--idle_suicide_seconds=600" from Output Logs
Open cmd.exe, run (paste) command from Step 4
AutoComplete WORKS

Any ideas on what might going wrong here? Is this a conf issue, or a bug?
Settings File:
{
    "ycmd.global_extra_config": "C:/Users/USERNAME/vimfiles/.ycm_extra_conf.py",

    "ycmd.path": "C:/Users/USERNAME/vimfiles/bundle/YouCompleteMe/third_party/ycmd",

    "ycmd.debug": true,

    "ycmd.python": "C:/Python36/python.exe",
}

Log Output (Abbreviated):
[start] optionsFile: C:\Users\USERNAME\AppData\Local\Temp\2\VSCodeYcmOptions-1527870139537
[_start] [ '/s',
  '/d',
  '/c',
  '""C:/Python36/python.exe" "C:\\Users\\USERNAME\\vimfiles\\bundle\\YouCompleteMe\\third_party\\ycmd\\ycmd" "--port=16856" "--options_file=C:\\Users\\USERNAME\\AppData\\Local\\Temp\\2\\VSCodeYcmOptions-1527870139537" "--idle_suicide_seconds=600""' ]
[_start] process spawn success undefined
[_start error] { Error: spawn cmd.exe ENOENT
    at exports._errnoException (util.js:1050:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn cmd.exe',
  path: 'cmd.exe',
  spawnargs:
   [ '/s',
     '/d',
     '/c',
     '""C:/Python36/python.exe" "C:\\Users\\USERNAME\\vimfiles\\bundle\\YouCompleteMe\\third_party\\ycmd\\ycmd" "--port=16856" "--options_file=C:\\Users\\USERNAME\\AppData\\Local\\Temp\\2\\VSCodeYcmOptions-1527870139537" "--idle_suicide_seconds=600""' ] }
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[getInstance] ycm is initializing, delay 200ms...
[start] ycm started: undefined

It seems like cmd.exe is not in PATH ?
Currently cmd is used to start new process (ycmd).
I'm not sure what happened here, maybe you can make sure cmd.exe is in C:/windows/system32 and  this dir is in PATH?.

Thanks for the response on this Richard!
I changed my settings to the following and everything seems to be working:
{
    "ycmd.global_extra_config": "C:\\Users\\USERNAME\\vimfiles\\.ycm_extra_conf.py",

    "ycmd.path": "C:\\Users\\USERNAME\\vimfiles\\bundle\\YouCompleteMe\\third_party\\ycmd",

    "ycmd.debug": true,

    "ycmd.python": "C:\\Python36\\python.exe",
}

Looking closer at my first error log above (and knowing the conf fix) it appears ycmd.python forward slashes are not getting converted to backslashes? Notice the "C:/Python36/python.exe" in spawnargs.
Might the option ycmd.python need some additional slash handling code? Or is this expected?

I previously thought forward slash and double back slashes are both working on windows.
But maybe it's not.
I 'll do some test and if it's not working for forward slashes, it should be fixed.
Thanks for your reply.


Server certificate is not configured before Store and Delete operations

Have you read the FAQ and checked for duplicate open issues?: Yes
What version of Shaka Player are you using?: v2.5.0-beta-master
Can you reproduce the issue with our latest release version?: yes
Can you reproduce the issue with the latest code from master?: yes
Are you using the demo app or your own custom app?: demo app
If custom app, can you reproduce the issue using our demo app?: yes
What browser and OS are you using?: Chrome/Windows 10
What are the manifest and license server URIs?:
Will send the manifest, license, and certificate URIs to<EMAIL_ADDRESS>
What did you do?
Added my asset to the demo assets list OR filled the manifest, license, and certificate URIs as Custom asset, select my asset and download it.
What did you expect to happen?
a) No errors in the debug console
b) The first (and only) license request raised from the CDM is for a license.
What actually happened?
a) The call to storage.configure raises an error:  "Invalid config, unrecognized key .progressCallback"
b) The first license request raised from the CDM is for a widevine certificate (2nd one is for a license)

@gigon When I try your content, it plays without issue. Now I noticed that in the content your provided the cert path was different from the cert you sent us. After fixing that, everything played without issue on master.

@vaage The issue is not about playback, it is about download.
And it does get downloaded fine.
The issue is about the optimization where the application has the certificate beforehand (e.g. by downloading it), and feeds it to Shaka library, which calls the widevine (EME) function setServerCertificate before creating the key sessions.
This prevents getting a "key message" event from the CDM that requests a widevine certificate,
before the event that requests the actual license.
This optimization is demonstrated in case of playback, but in case of Download (and also in the release of a persistent license!), the demo application does not preload the certificate I set in the Custom field.
You can see this by looking at XHR requests in the chrome debugger.
In case of streaming playback you get only one request to our license server.
In case of Download or Delete you get two requests.
I added code to the demo application, to preload the certificate, in a Pull request I submitted.
But later I saw that Shaka library does not call setServerCertificate at all in case of Storage session.
It calls it only when a video tag is attached before playback.
Please correct me if I misunderstand.

Released in v2.5.0-beta2.


added pdf transform and tests

#499

We will need pyproject.toml changes, we would need to add pypdf as a dependency


Contextualizer doesn't validate the arguments

If you don't know you need to pass window stride and groupby, you can get confusing error messages. For example
from lancedb.context import contextualize
import pandas as pd
data = pd.DataFrame({
   'token': ['The', 'quick', 'brown', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog', 'I', 'ate', 'a', 'sandwich'],
   'document_id': [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2]
})
contextualize(data).window(3).to_df()

Traceback (most recent call last):
  File "/Users/willjones/mambaforge/envs/lance-dev/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3802, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/index.pyx", line 165, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 5745, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 5753, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: None

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

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/willjones/Documents/lancedb/python/lancedb/context.py", line 145, in to_df
    return process_group(self._raw_df)
  File "/Users/willjones/Documents/lancedb/python/lancedb/context.py", line 136, in process_group
    text = grp[self._text_col].values
  File "/Users/willjones/mambaforge/envs/lance-dev/lib/python3.10/site-packages/pandas/core/frame.py", line 3807, in __getitem__
    indexer = self.columns.get_loc(key)
  File "/Users/willjones/mambaforge/envs/lance-dev/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
    raise KeyError(key) from err
KeyError: None

Hi Will,
I would like to pick this issue. As I understand there is no valid arguement checking in text_col, window and stride methods for Contextualizer class. Even for group_by there is no check if the input string is a column's name.
Also in the to_df() method for Contextualizer there should be checks if text_col, window and stride are not None else it should raise an invalid input error.
Finally there are no integration tests written as well for the Contextualizer class or contextualizer method which should be added.
Please let me know your thoughts over this and correct my understanding if wrong anywhere and possibly give a green light and I can start working on it.
Thanks

Hi @trueutkarsh. Your understanding is correct. However, someone has already started working on this in #168. Feel free to leave comments in there if you have suggestions.


Add Othello/Reversi GUI Game

Type of change

[x] Added new project
[ ] Bug fix
[ ] New features
[ ] Enhanced documentation

Changes proposed in this pull request

Project name :

Othello

Short description :

Othello Game (GUI equipped); Made using numpy and pygame.
Checklist

[x] The code is Python 3 compatible
[x] I have added relevant comments in my file to make code understandable
[x] I have added my project in a folder which includes all the necessary files

Hey @TERNION-1121
This project looks awesome 💯
I will accept this pr after 1st October so that it comes under hacktoberfest contribution

Hey @TERNION-1121 This project looks awesome 💯 I will accept this pr after 1st October so that it comes under hacktoberfest contribution

Hello there @Mrinank-Bhowmick! Thanks for your kind words :)
I have worked more on this project, I shall be committing those changes as well....
Excited for Hacktoberfest :D

Comment here when its done 👍

Comment here when its done 👍

Hey @Mrinank-Bhowmick! Thanks for waiting :)
I've done everything I could've thought of for this project.
You may review the code once again, and let me know about any final changes/ suggestions for the codebase or README...
That's all from my side
Thanks!

Looks good to me 👍
Happy Hacktoberfest ⭐


cmake: Cleanup tests/CMakeLists.txt

CI Vulkan-ExtensionLayer build queued with queue ID 6136.

CI Vulkan-ExtensionLayer build # 625 running.

CI Vulkan-ExtensionLayer build queued with queue ID 6143.

CI Vulkan-ExtensionLayer build # 626 running.

CI Vulkan-ExtensionLayer build # 626 passed.


Finding battletags online

I have this set up and it's working great!
I'd really like to get a load of statistics about players in competitive. How might one go about getting a list of publicly available battletags to get statistical information on?
I figure somebody around here might have found that out already! feel free to email (my email is in my profile)  me if this is not the appropriate forum to ask.

You could scrape through overbuff or masteroverwatch's web pages. I dunno otherwise.


Fix/sql queries backmerge

Back merge latest develop branch at Jun 21st and did app testing.

Hey @zklim Some pointers on the fix/sql-queries-backmerge

The below files still have the SQL vulnerability

src-tauri/src/services/local_storage/tokens.rs
src-tauri/src/services/local_storage/encrypted_data.rs
src-tauri/src/services/local_storage/storage_api/events.rs
src-tauri/src/services/local_storage/storage_api/records.rs
src-tauri/src/services/local_storage/storage_api/transaction.rs

Basically. any file that uses String formatting with format!(<SQL_QUERY>{}, <VARIABLE>) , Should be changed to passing through arguments as Zack did

Do a search for format! , and change it to the fix done by Zack using execute_query_params() fn for the above mentioned files

All SQL commands SHOULD NOT HAVE format!(<..>) in them, it should be like let query = "<SQL QUERY WITH ?1, ?2>"; and call the execute_query_params(query , <PARAMS>); fn.

Not sure if I have to modify code for case like:
let query = format!(
        "SELECT balance_ciphertext, nonce FROM ARC20_tokens WHERE token_name='{}' ",
        token_name
    );
    let res = storage.get_all::<String>(&query, 2)?;

as storage.get_all() don't take parameter as execute_query_params(query , <PARAMS>); does


Cannot read property 'resolve_dependency_path' of undefined

[x ] I've asked for help in the Truffle Gitter before filing this

Issue
When I do a fresh init and compile I get this error. Others in the glitter chat are seeing this issue as well. Downgrading to 3.1.9 solves the issue.
Steps to Reproduce

npm npm install -g truffle
truffle init webpack
truffle compile

Expected Behavior
compile should succeed
Actual Results
truffle compile
/usr/local/lib/node_modules/truffle/node_modules/truffle-compile/profiler.js:204
            dependency_path = source.resolve_dependency_path(import_path, dependency_path);
                                    ^

TypeError: Cannot read property 'resolve_dependency_path' of undefined
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-compile/profiler.js:204:37
    at Array.map (native)
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-compile/profiler.js:201:27
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-resolver/index.js:77:5
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-resolver/node_modules/async/internal/onlyOnce.js:12:16
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-resolver/node_modules/async/whilst.js:63:18
    at apply (/usr/local/lib/node_modules/truffle/node_modules/lodash/_apply.js:15:25)
    at /usr/local/lib/node_modules/truffle/node_modules/lodash/_overRest.js:32:12
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-resolver/index.js:62:7
    at /usr/local/lib/node_modules/truffle/node_modules/truffle-resolver/fs.js:41:12
    at tryToString (fs.js:455:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

Environment

Operating System: Mac 10.12.3
Truffle version: 3.11
Ethereum client:
node version: 6.9.3
npm version: 4.1.1

Dear gibbymt,
I suffer the the same issue with you. Bad engineer luck also. ^^ Could you show me to downgrade the truffle version ? Thanks a lot for your help.

npm install -g<EMAIL_ADDRESS>npm is the package manager, install is the action, and '-g' means you want this to be a global change and<EMAIL_ADDRESS>is the version

It's caused because<EMAIL_ADDRESS>is installing<EMAIL_ADDRESS>(which was recently published for the 3.1.9 release) instead of<EMAIL_ADDRESS>npm is resolving to 1.1.0 because it's a minor upgrade.
Few fix suggestions:
<EMAIL_ADDRESS>is unpublished and then republished with a new major release 2.0.0

Publish a new backwards-compatible<EMAIL_ADDRESS>The non-beta truffle is re-published with "truffle-compile": "1.0.0" instead of "truffle-compile": "^1.0.0"

This was due to improper dependency management (my fault). This has been fixed in 3.1.2.
Note that 3.1.9 is a beta release, preparing for 3.2.0


Add s3 links... though they do not work because of security.

Towards #389. @afred? The links won't work because of S3 security, but I don't want to change the access rules right now because that will make tests fail.

PR to allow access to these resources has been merged, so these links should work now.


Color of Sign Up button in the footer is not not looking good.

redesign of signup button
you can see that the blue color text on signup button is not looking good it should be of another color

Hey @ANSHIKA-26 ,
Please assign me this issue.

issue already raised , someone is fixing this in a PR


Feature request: minimize diffs

One of the reasons I don't use kifield as often as I otherwise might is that it creates large, unnecessary diffs.  This makes it harder to tell what has changed in a particular commit.
There are at least three ways kifield creates larger diffs than necessary:

Changes in whitespace on an individual line: In certain places, KiCad uses two spaces between tokens instead of one.  Kifield always puts just one space between tokens.
Changes in field numbers: If my original file has F4 as "MPN", F5 as "Description", and F6 as "Digi-Key_PN", Kifield might change it to be F4 as "Description", F5 as "Digi-Key_PN", and F6 as "MPN".
Ordering within the file: Kifield moves all components to come first in the file, and everything else (wires, junctions, etc.) to come after all the components.

You're right that schematic diffs can get large.
The solution for point #1 is to disable whitespace compares.
Regarding point #2, KiCad doesn't seem to have any standardization as to which of the field numbers is associated with each type of information (except for F0-F2). I've seen the same field number used for different types of information in a single file. KiField would have to remember which field number went with each individual field rather than trying to make all the fields consistent as it does now.
As to point #3, the order of the internal structures of the schematic file isn't strictly specified. I'm using the order I've seen in my schematic files and which was given in a Python script I got from https://github.com/KiCad/kicad-library-utils/tree/master/sch. Maybe the order has changed with V5. I don't know. (I'm sure it will change completely with V6 when they move to using S-expressions.) In any event, the order of sections would be easy to change in the save() method of the sch.py file. However, the order of the individual wires, junctions, components, etc. within each section may not be preserved, so this may not be much of a solution.

Maybe the order has changed with V5. I don't know.

I don't know about v5, but my experience with 4.0.7 is that everything just appears in the file in the order in which it was created, so there are no "sections".  The wires, junctions, components, etc. are intermixed.

The parser do a sort, with cause everything. In 4.7.x they aren't save back in the file that way - which actual better compare to blindly sort everything, an make more sense when a human look at the text file of .lib, .sch ..... I had mention this on kicad bug report too.


Update Russian language label in the language picker

Good fix :)
However this will cause a merge conflict with #640
I would rather we just fix the same issue inside #640 instead of merging this PR then dealing with the conflict

As far as I can tell this fix has already been integrated in #640 (see commit c875167b5afd0bdc229dabf1e5269b4db1cdc152) so I'm closing it.


MatDatepicker: MatDatepickerParse shows blank error if the field is empty

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
https://stackblitz.com/edit/components-issue-nkebqj?file=src%2Fapp%2Fexample-component.ts
Steps to reproduce:

Hit submit with a blank datepicker

I can't reproduce in the Stackblitz.
Expected Behavior
What behavior were you expecting to see?
The MatDatepicker should allow for an empty field.
Actual Behavior
What behavior did you actually see?
The MatDatepicker adds an error to the FormControl's errors array, with MatDatepickerParse. The error text is "".
From the form:
date: FormControl
  asyncValidator: null
  errors:
    matDatepickerParse:
      text: ""
  __proto__: Object
  __proto__: Object
  pristine: true
  status: "INVALID"

Environment

Angular: 9.0.4
CDK/Material: 9.1.0
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS

Can you post a Stackblitz that shows the issue?

Like I said I can't reproduce the issue in Stackblitz but it's implemented the same. Only difference is my project's version of Material is more recent.

It would still be useful to see what your code looks like.

You could look at the Stackblitz I put in the issue?


docs: support deleting automatically generated files via make clean

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 86.582%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
7614

Relevant Lines:
8794

💛  - Coveralls


Added Directory badges

Hi,
These badges will make your component listing accessible for our Directory users. For more information on how to generate these badges, head to this guide.
Regards,
Binh

Thanks a lot, I'll have a look. It's been a while since I worked with Vaadin.


Minor annoyance with the available-filter's behavior

I filter out some unwanted raid bosses. I have quite good coverage of the area that I scan so it is highly probable that hatched ? eggs aren't on available filters. When a raid hatches on a gym at the edge of the scan area, it is hidden from my map and I can only make it visible with All Gyms or Quick Select even though I would like to have them visible all the time

Just to clarify, we're talking about hatched raids that don't yet have a determined raid boss, right?

These should appear if the respective egg tier is selected in the advanced menu?

They should still appear when the respective egg is selected in the menu, but regardless, I guess #493 solves this, if you want to give it a try.

Sorry, I forgot! I tested it now, and the unknown hatched eggs are back in the filters and the gyms show up on map. There is still a minor issue with filtering them out.
When raids selector is on and all gyms off, everything works as expected.
When raids and all gyms selectors are both on, the unknown hatched eggs don't get filtered out if I uncheck them from advanced menu. Only if I uncheck the respective tier's normal egg (the unknown hatched egg has no effect).

Hmm maybe this is a MAD specific issue...

Oh right. If you can't reproduce, it could also be the dual db setup I am running.

Do you have overlap between RDM and MAD? Dual database only has some "consistency issues" when there's overlap between multiple database sources.

I would try switching to only one and see if it resolved. This is likely an issue related to the gyms not being updated.

I tried with only MAD db and the issue persisted. My RDM isn't working at the moment, I had a minor case of SSD failure. But I tried adding && gym.raid_battle_timestamp > safeTs to the raid level condition in /server/src/models/Gym.js#241 and at a quick glance that seems to have fixed it. I don't know if it breaks something else though 😅

Sounds good, i'll check it out, thanks for the assist!


feat: show image via code lens

Closes #984
Summary of Changes
Show an image via a code lens.

:tada: This PR is included in version 0.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
npm package (@latest dist-tag)
v0.13.0
GitHub release

Your semantic-release bot :package::rocket:


Add environment variable management and fix Pydantic validation error

This PR includes two separate changes:
Add environment variable management to the project, allowing for easier management of important configurations and distinguishing between different environments.
Fix a Pydantic validation error caused by None values in the links field of the Page class.

There are conflicts that must be resolved

There are conflicts that must be resolved

Ok


Moving Hotspot Location - No option to select new location

Describe the bug
The app doesn't allow me to select a new location when trying to update the hotspot location.
To Reproduce
When the hotspot is selected, click the cog.
Click Update Hotspot.
Click Update Location.
It takes me directly to this page. (Page shows the hotspot at its current location.)

There is no option to select the new location.
Expected behavior
A movable map that allows me to select the new location.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: [OnePlus 8T]
OS: [<IP_ADDRESS>.KB09CB]
App Version [3.7.1]

Additional context
Add any other context about the problem here.

After clicking Change Location, I now see the map that I was expecting to select the new location. May I suggest that you make an adjustment to UI so that it is more clear that you will have an option to select the new location before being charged.
Keep up the good work! :)

sure thing. thanks for the feedback.


Animations on OSD resize

Fast resize animation when new element is shown to add a smoothness to OSD.

Applying RenderTransform make window move too janky.


Add method to get DbClient connection status to HttpAppFramework

Is your feature request related to a problem? Please describe.
I use drogon in server-side application that run on kubernetes. Sometimes, the kubernetes scheduler causes the web container (running drogon) to start before the postgres container. Usually, this doesn't cause an issue but sometimes it requires deletion of the web pod to force a reschedule. Kubernetes has a built-in API for detecting and automatically restarting pods in situations like this called liveness probes but drogon lacks the APIs necessary to make full use of them. Mainly, I would want to tie the liveness probe to Db connection status, so if the db doesn't connect, k8s will reschedule the pod and try to fix it.
Describe the solution you'd like
A function in HttpAppFramework that returns true/false if all DbClients in the configuration file have successfully connected.
Describe alternatives you've considered
I considered adding a customConfig element which would be an array of db client names to check, but the DbClient interface doesn't have any method of getting status either.

I'll add a bool hasAvailableConnections() to the DbClient class. thanks for your suggestion.

In addition, when the database connection fails, DbClient will keep trying until the connection is successful, so even if the application starts before the postgresql service, there is no big problem.

@DarkLordZach please check #436 , thx.

Thanks! That looks good. But it seems I would still have to maintain a separate list of db client names elsewhere?
I don't know how much work it would be, but is there a way to get a list of db client names from the json config?

@DarkLordZach I added a method to check if all database clients in the framework are available.

Thank you so much! This is exactly what I needed!


ContextFrontend: Ask worker connection for context failed

Jobs get completed successfully on most of the occasions. But recently mist server failed jobs with error executor was terminated. After it for a certain duration mist server was returning 500 error for other jobs.
Logs recorded are provided below
    2019-03-27 02:24:36 WARN  ReliableDeliverySupervisor:131 - Association with remote system [akka.tcp://mist-info-provider@<IP_ADDRESS>:38177] has failed, address is now gated for [5000] ms. Reason: [Association failed with [akka.tcp://mist-info-provider@<IP_ADDRESS>:38177]] Caused by: [Connection refused: /<IP_ADDRESS>:38177]
    2019-03-27 02:24:37 WARN  RemoteWatcher:131 - Detected unreachable: [akka.tcp://mist-worker-Big-Query-3-v1_66b0b2a4-624b-4d52-b947-de1445870c80-pool-1@x.x.x.x:46424]
    2019-03-27 02:24:37 WARN  RemoteWatcher:131 - Detected unreachable: [akka.tcp://mist-worker-Big-Query-1-v1_46079ac9-5e6b-44c0-a736-4eca7735d41d-pool-1@y.y.y.y:40868]
    2019-03-27 02:24:37 WARN  RemoteWatcher:131 - Detected unreachable: [akka.tcp://mist-info-provider@<IP_ADDRESS>:38177]
    2019-03-27 02:24:37 INFO  JobActor:107 - Job fa70b0a9-617b-4de1-b71a-8dcef2f25f55 completed with error
    2019-03-27 02:24:37 INFO  JobActor:107 - Job 6cd0a160-05ae-4ad5-bc4b-6abb0bac063d completed with error
    2019-03-27 02:24:37 INFO  SharedConnector:107 - Releasing connection: requested 0, pooled 0, in use 1, starting: 0
    2019-03-27 02:24:37 INFO  SharedConnector:107 - Releasing connection: requested 0, pooled 0, in use 0, starting: 0
    2019-03-27 02:24:37 INFO  SharedConnector:107 - Released unused connection
    2019-03-27 02:24:37 INFO  ContextFrontend:107 - Context Context-1 - move to inactive state
    2019-03-27 02:24:37 INFO  ContextFrontend:107 - Context Context-3 - move to inactive state
    2019-03-27 02:24:37 ERROR RestartSupervisor:143 - Reference for FunctionInfoProvider was terminated. Restarting

Also in mist logs I am getting this error continuously.
2019-03-27 04:00:01 INFO  ContextFrontend:107 - Context-1 - connected state(active connections: 0, max: 1)
2019-03-27 04:00:09 ERROR SharedConnector:159 - Could not start worker connection
java.lang.RuntimeException: Process terminated with error java.lang.RuntimeException: Process exited with status code 1 and out: Ivy Default Cache set to: /home/cassandra/.ivy2/cache;The jars for the packages stored in: /home/cassandra/.ivy2/jars;:: loading settings :: url = jar:file:/cassandra/spark2.2.1/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml;org.apache.hadoop#hadoop-aws added as a dependency;org.apache.hadoop#hadoop-client added as a dependency;com.typesafe#config added as a dependency;:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0;	confs: [default];	found org.apache.hadoop#hadoop-aws;2.7.4 in spark-list;	found org.apache.hadoop#hadoop-common;2.7.4 in spark-list;	found org.apache.hadoop#hadoop-annotations;2.7.4 in spark-list;	found com.google.guava#guava;11.0.2 in spark-list;	found com.google.code.findbugs#jsr305;3.0.0 in spark-list;	found commons-cli#commons-cli;1.2 in spark-list;	found org.apache.commons#commons-math3;3.1.1 in spark-list;	found xmlenc#xmlenc;0.52 in spark-list;	found commons-httpclient#commons-httpclient;3.1 in spark-list;	found commons-logging#commons-logging;1.1.3 in spark-list;	found commons-codec#commons-codec;1.4 in spark-list;	found commons-io#commons-io;2.4 in spark-list;	found commons-net#commons-net;3.1 in spark-list;	found commons-collections#commons-collections;3.2.2 in spark-list;	found javax.servlet#servlet-api;2.5 in spark-list;	found org.mortbay.jetty#jetty;6.1.26 in spark-list;	found org.mortbay.jetty#jetty-util;6.1.26 in spark-list
	at io.hydrosphere.mist.master.execution.workers.WorkerRunner$DefaultRunner$$anonfun$continueSetup$1$1.applyOrElse(WorkerRunner.scala:39)
	at io.hydrosphere.mist.master.execution.workers.WorkerRunner$DefaultRunner$$anonfun$continueSetup$1$1.applyOrElse(WorkerRunner.scala:39)
	at scala.concurrent.Future$$anonfun$onFailure$1.apply(Future.scala:138)
	at scala.concurrent.Future$$anonfun$onFailure$1.apply(Future.scala:136)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
	at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
2019-03-27 04:00:09 ERROR ContextFrontend:159 - Ask new worker connection for Context-2 failed
java.lang.RuntimeException: Process terminated with error java.lang.RuntimeException: Process exited with status code 1 and out: Ivy Default Cache set to: /home/cassandra/.ivy2/cache;The jars for the packages stored in: /home/cassandra/.ivy2/jars;:: loading settings :: url = jar:file:/cassandra/spark2.2.1/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml;org.apache.hadoop#hadoop-aws added as a dependency;org.apache.hadoop#hadoop-client added as a dependency;com.typesafe#config added as a dependency;:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0;	confs: [default];	found org.apache.hadoop#hadoop-aws;2.7.4 in spark-list;	found org.apache.hadoop#hadoop-common;2.7.4 in spark-list;	found org.apache.hadoop#hadoop-annotations;2.7.4 in spark-list;	found com.google.guava#guava;11.0.2 in spark-list;	found com.google.code.findbugs#jsr305;3.0.0 in spark-list;	found commons-cli#commons-cli;1.2 in spark-list;	found org.apache.commons#commons-math3;3.1.1 in spark-list;	found xmlenc#xmlenc;0.52 in spark-list;	found commons-httpclient#commons-httpclient;3.1 in spark-list;	found commons-logging#commons-logging;1.1.3 in spark-list;	found commons-codec#commons-codec;1.4 in spark-list;	found commons-io#commons-io;2.4 in spark-list;	found commons-net#commons-net;3.1 in spark-list;	found commons-collections#commons-collections;3.2.2 in spark-list;	found javax.servlet#servlet-api;2.5 in spark-list;	found org.mortbay.jetty#jetty;6.1.26 in spark-list;	found org.mortbay.jetty#jetty-util;6.1.26 in spark-list
	at io.hydrosphere.mist.master.execution.workers.WorkerRunner$DefaultRunner$$anonfun$continueSetup$1$1.applyOrElse(WorkerRunner.scala:39)
	at io.hydrosphere.mist.master.execution.workers.WorkerRunner$DefaultRunner$$anonfun$continueSetup$1$1.applyOrElse(WorkerRunner.scala:39)
	at scala.concurrent.Future$$anonfun$onFailure$1.apply(Future.scala:138)
	at scala.concurrent.Future$$anonfun$onFailure$1.apply(Future.scala:136)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
	at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
2019-03-27 04:00:09 INFO  ContextFrontend:107 - Context-2 - connected state(active connections: 0, max: 1)
2019-03-27 04:00:09 INFO  SharedConnector:107 - Pool is empty and we are able to start new one connection: inUse size :0

What is the possible cause is it related with some configuration issue? If it is then why is it not happening for all jobs?

Probably, there are some errors in context configuration.
Could you check additional process logs in logs directory? There should be log files with name like local-worker-$context-name.


Your program license does not allow you to publish 'User Login Test Library'

Using the current build template http://aka.ms/bcsandbox stops with the error "Your program license does not allow you to publish 'User Login Test Library'" if you don't provide an license url in the template.
I deployed using image mcr.microsoft.com/businesscentral/sandbox:dk-ltsc2019
Version 16.0.11240.12474
Country dk
The error occurs approx. 25 min. after "Running mcr.microsoft.com/businesscentral/sandbox:dk-ltsc2019 (this will take a few minutes)" and errors
at , : line 12
PM Your program license does not allow you to publish 'User Login Test Library'.

If I link to our developer license it work at the deployment completes, so the issue is only if you omit the License File URI/URL field in the BC Deployment template http://aka.ms/bcsandbox

Will investigate.

Not sure why that app should be published at all...

Please share resolution steps of someone found the answer

The reason for this is that the option Create Test Users = Yes requires a license.
Set Create Test Users to No.
I will fix the script to skip creating test users if no license is provided (and add an information about this in the log.)


Explicit orientation field for polygon winding

Following discussion in https://github.com/opengeospatial/geoparquet/issues/46

Remember to update:

The validator scheme: https://github.com/opengeospatial/geoparquet/blob/main/validator/python/geoparquet_validator/schema.json
The example (parquet, json): https://github.com/opengeospatial/geoparquet/tree/main/examples

I think we shouldn't mix 0.3 release with adding the orientation field as optional

I opened https://github.com/opengeospatial/geoparquet/pull/80 with a short-term fix for the example file and some small clean-up (I think there was a left-over sentence from accepting an inline review comment)


Angular localhost server constantly reloading

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

$ npm --version
5.8.0
$ ng --version
 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ /  | | | | |/ _ | '__|   | |   | |    | |
/ ___ | | | | (| | || | | (| | |      | || | | |
//   __| ||_, |_,||_,||       _|||
|___/
Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular: 6.0.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package                           Version
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.6.8
@angular/cdk                      6.2.1
@angular/cli                      6.0.8
@angular/material                 6.2.1
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.8
@schematics/update                0.6.8
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3
Repro steps

ng serve --o
The log given by the failure

// the whole site runs fine on the C-Drive but not from the D-drive
I am using Windows 10 and I have a development directory system on my D drive. This is a separate drive from the hidden AppData directory, in my C drive User's directory. I write my code, on the D drive directory, start the localhost server from there, and it appears to run fine, for a while, but after a random amount of time, it starts recompiling, and reloading pages. I tried moving my development directory back to my C drive, into my user directory there, and started the ng serve from the C drive directory, and it runs fine, without reloading all the time. I would think it would not matter where the code is at, but it appears to.
Note: I did move my Documents, and other personal data directories, by windows procedures, to the D drive. But I do not think this would matter.
Desired functionality

I would hope that the web pages/TS code does not have to recompile constantly on a localhost server, when code is not on the same drive as the user's home directory.
Mention any other details that might be useful

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to https://github.com/angular/angular-cli/issues/5368

Closing as inactive.


How to change network key of all end devices of a network? (TZ-1026)

Question
I am developing a system which requires my device, acting as a coordinator, to periodically rotate the network key. How can I achieve this with the ESP32H2?
Specifically, I am looking for the equivalents of the following two functions:

emberBroadcastNextNetworkKey
emberBroadcastNetworkKeySwitch

I have tried using esp_zb_secur_network_key_set, but it seems to only change the key locally and does not broadcast the change order to the end devices, because the end devices stop responding after the change.
I would appreciate any guidance or examples on how to effectively rotate the network key on the ESP32H2.
Thank you in advance.
Additional context.
No response

@Alfff ,
The esp_zb_secur_network_key_set() only supports setting the local network key. The APSME-SWITCH-KEY request is supported in the latest v1.4.1 version. We will include this feature in the next release. Thank you for your patience.

@xieqinan Will this feature be included in the NCP protocol?

@Alfff ,
The esp-zigbee-ncp is implemented based on the esp-zigbee-sdk, allowing developers to use the APIs provided by the esp-zigbee-sdk for development. As a result, if the esp-zigbee-sdk supports a particular feature, the NCP protocol will also support it.

Thanks @xieqinan

@xieqinan,
Is there anything new? I don't see any changes in this regard in the release notes for version 1.5.0

@Alfff ,
Please use the following code instead:
#include "zboss_api.h"

extern void zb_secur_send_nwk_key_switch(uint8_t param);

typedef struct zb_apsme_switch_key_req_s {
    esp_zb_ieee_addr_t dest_address; /*!< Destination address  */
    uint8_t key_seq_number;          /*!< Sequence Number */
} zb_apsme_switch_key_req_t;

static uint8_t s_dest_addr[] = {0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; // Unicast to destination address of network

static esp_err_t esp_zb_secur_apsme_switch_key_req(bool broadcasted)
{
    esp_err_t ret = ESP_OK;
    uint8_t param = zb_buf_get_out();
    if (broadcasted) {
        uint16_t *ptr = (uint16_t *)ZB_BUF_GET_PARAM(param, uint16_t);
        *ptr = broadcasted;
    } else {
        zb_apsme_switch_key_req_t *ptr = (zb_apsme_switch_key_req_t *)ZB_BUF_GET_PARAM(param, zb_apsme_switch_key_req_t);
        memcpy(ptr->dest_address, s_dest_addr, sizeof(esp_zb_ieee_addr_t));
        ptr->key_seq_number = 0;
    }
    zb_secur_send_nwk_key_switch(param);
    return ret;
}

Thank you so much @xieqinan 🥇


Consul error: Unexpected response code: 401 (ACL support disabled)

Hi there,
my Ansible playbook is stopping at the Consul ACL configuration with a 401 error.
Here some info of my environment:

Ansible version (ansible --version): 1.9.6
Python version (python --version): 2.7.5
Git commit hash or branch:
[root@mantl-buildserver mantl]# more .git/logs/HEAD
0000000000000000000000000000000000000000 9964707c4e2cf094ca46633c8a5ce5527fb3a7c2 root <root@mantl-buildserver.(none)><PHONE_NUMBER> -0400	clone: from https://github.com/CiscoCloud/mantl.git
Cloud Environment: vSphere
Terraform version (terraform version): v0.6.16
OS:
[root@mantl-worker-003 ~]# rpm --query centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64

And here the error I am getting:
TASK: [consul | create secure acl] ********************************************
failed: [mantl-worker-003] => {"changed": true, "cmd": ["consul-cli", "acl-update", "--token=faf47a4e-f50d-485c-960c-ec80d4e1c4fe", "--name=Mantl Secure Token", "--rule=key:secure:write", "--rule=service::write", "a9a1723a-07af-4aac-b2fe-37e44ce048d9"], "delta": "0:00:00.005343", "end": "2016-05-10 22:10:24.942652", "rc": 1, "start": "2016-05-10 22:10:24.937309", "warnings": []}
stderr: Unexpected response code: 401 (ACL support disabled)

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
common | install system utilities -------------------------------------- 21.40s
consul | restart consul ------------------------------------------------ 16.38s
docker | install docker-gc ---------------------------------------------- 8.85s
common | enable EPEL repo ----------------------------------------------- 8.21s
docker | install latest device-mapper-libs ------------------------------ 5.73s
handlers | wait for consul to listen ------------------------------------ 5.59s
common | install fail2ban ----------------------------------------------- 5.47s
common | install pip ---------------------------------------------------- 5.42s
common | install cloud-init --------------------------------------------- 5.09s
common | deploy root ca ------------------------------------------------- 2.87s
           to retry, use: --limit @/root/mantl.retry

localhost                  : ok=0    changed=0    unreachable=0    failed=0
mantl-control-01           : ok=73   changed=13   unreachable=0    failed=1
mantl-control-02           : ok=73   changed=13   unreachable=0    failed=1
mantl-control-03           : ok=73   changed=13   unreachable=0    failed=1
mantl-edge-01              : ok=73   changed=13   unreachable=0    failed=1
mantl-edge-02              : ok=73   changed=13   unreachable=0    failed=1
mantl-worker-001           : ok=73   changed=13   unreachable=0    failed=1
mantl-worker-002           : ok=73   changed=13   unreachable=0    failed=1
mantl-worker-003           : ok=73   changed=13   unreachable=0    failed=1

Any hint?
Thanks in advance!
Jose

@erjosito Are you running with security enabled?

@siddharthist Yes, security enabled. But we can close this one, the problem was that I had not set the consul_acl_datacenter variable to dc1 in mantl.yml. RTFM!
Thanks for your answer!

I'm getting this same error. I've tried with cosule_acl_datacenter set to dc1 and I've tried with this variable commented out. The result is 1 of my control nodes fails.
TASK [consul : create secure acl] **********************************************
fatal: [mantl-control-03]: FAILED! => {"changed": true, "cmd": ["consul-cli", "acl-update", "--  token=5f8cb12a-81ee-4781-b7ac-4e67b664d2df", "--name=Mantl Secure Token", "-- rule=key:secure:write", "--rule=service::write", "6bc5d212-2d6e-451e-bc61-913d5bb51522"], "delta":  "0:00:00.005203", "end": "2016-06-03 21:42:46.582987", "failed": true, "rc": 1, "start": "2016-06-03  21:42:46.577784", "stderr": "Unexpected response code: 401 (ACL support disabled)", "stdout": "",  "stdout_lines": [], "warnings": []}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=0
mantl-control-01           : ok=80   changed=10   unreachable=0    failed=0
mantl-control-02           : ok=80   changed=10   unreachable=0    failed=0
mantl-control-03           : ok=80   changed=10   unreachable=0    failed=1
mantl-edge-01              : ok=80   changed=10   unreachable=0    failed=0
mantl-edge-02              : ok=80   changed=10   unreachable=0    failed=0
mantl-kubeworker-001       : ok=80   changed=10   unreachable=0    failed=0
mantl-kubeworker-002       : ok=80   changed=10   unreachable=0    failed=0
mantl-worker-001           : ok=80   changed=10   unreachable=0    failed=0
mantl-worker-002           : ok=80   changed=10   unreachable=0    failed=0
mantl-worker-003           : ok=80   changed=10   unreachable=0    failed=0
mantl-worker-004           : ok=80   changed=10   unreachable=0    failed=0

TASK: common : deploy root ca ------------------------------------------ 12.74s
TASK: common : install system utilities -------------------------------- 10.44s
TASK: common : enable EPEL repo ----------------------------------------- 9.49s
TASK: docker : install latest device-mapper-libs ------------------------ 8.63s
TASK: docker : install docker-gc ---------------------------------------- 8.35s
TASK: consul : install scripts ------------------------------------------ 6.74s
TASK: consul : wait for leader ------------------------------------------ 6.10s
TASK: lvm : install LVM tools ------------------------------------------- 5.79s
TASK: logrotate : copy component logrotate configurations --------------- 5.76s
TASK: common : update setuptools and pip -------------------------------- 5.76s

I figured out my error. I needed to keep terraform and ansible variable for datacenter in sync.
It wasn't clear from the documentation that this was necessary. In the docs it even says you can remove the datacenter line from the playbook, but this results in failures later.


Fix environment and parsing bug

Patch env file to reflect scipy dependency restriction.
Also fix bug that did not properly handle cases where the user wishes to just extract the bounding boxes.

@bbuzz31 @jlmaurer  Can you check in the unit test failure prior to merging


Stencil example components

Specifications

Have a really simple component (button)
Have a component that takes as an input a number and renders something
Have a component that takes as an input a text and renders something
Have a component that, given an ID number, fetch data from the sparql endpoint

Specification Validation
GM > OK

@gaetanmuck These points are still unclear to me in the spec:
How are the created components published / provided to next.js and strapi, in the context of this POC, before publishing  the webcomponent, react and angular libraries to npm?

@gaetanmuck Answer: For the POC, I plan to use npm link command in order to simulate a public npm package. Specifications updated.

Ok, now it's clear!

to @joschne:
Development is done:

To launch it:

git clone https://github.com/geovistory/design-system.git && cd design-system
npm i
npm run start

Notes:

I coded the components in ./web-components/src/components/
./web-components/storybook-static/ is generated by Storybook
./react-components and ./angular-components are generated automatically according to ./web-components/stencil.config.json

How to:

Create a new component:

In ./, run npm run generate
Fill name
Avoid unit tests for simple component (=stupid components)

Build:

In ./, run npm run build (will also create react and angular libraries)
[only for poc] in ./web-components/ run npm link  (=> create a 'local library' out of the web-components)
[only for poc] in ./react-components/ run npm build
[only for poc] in ./react-components/ run npm link web-components (=> make the 'library' available)
[only for poc] in ./react-components/ run npm link  (=> create a 'local library' out of the react-components)


Initialize alivedAt at the start of the price server

Without this, if the server gets started but never works, it will never
initialize aliveAt. In this situation aliveAt will be nil, causing
the check in checkAlive() to always be true. Therefore it will never
know that it is not alive and never send an error message

Thanks for the contribution


[vite] warning: "import.meta" is not available in the configured target environment ("safari11") and will be empty

Describe the bug
Here https://github.com/vitejs/vite/issues/3702 is the problem I encountered.
But when I modified the code according to this comment, I encountered new problems at dev server:
[vite] warning: "import.meta" is not available in the configured target environment ("safari11") and will be empty
1  |  export const env = import.meta.env.DEV ? 'dev' : 'prod'
   |                     ^

I'm not sure if this is a problem. How should I respond to this warning?
Reproduction
https://github.com/richex-cn/vite-vue-ts-export-all-as-bug
System Info
System:
    OS: Windows 10 10.0.19043
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 3.15 GB / 15.37 GB
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.62)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @vitejs/plugin-vue: latest => 1.2.3
    vite: latest => 2.3.6

Used Package Manager
yarn
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

MDN states that that is available in Safari 11.1 and it works with Safara 11.1.
https://stackblitz.com/edit/github-8ozaqy?file=vite.config.ts

@ydcjeff Thank you very much for your time to checkout my problem.
I found that the performance of yarn on local and stackblitz was inconsistent.
This is what happens when I clone the reproduction repo and pack locally:
yarn install
yarn build

Try upgrading Vite to latest version and set esbuild.target to Safari11.1

It's works, thanks. This warning is great.
Therefore, for developers who need to be compatible with older browsers, please consider @vitejs/plugin-legacy, see browser-compatibility.
Thank you very much again. @ydcjeff


Link to download "Material combiner" is broken.

For some reason this link is giving me an error and I cant download the item.

vrcat.club is offline.
The project is here: https://github.com/Grim-es/material-combiner-addon


Increase version of depend package q42:microsoft

Looks, you forgot increase version of depend package. In this reason, microsoft requestPermissions are not work.

@ShaPOC et al., can you accept this PR?

Thanks!


Get copilot autocomplete working

Description
Copilot autocomplete feature working:
https://github.com/user-attachments/assets/5bda368e-f40b-4960-923d-cfeab23d6d81
Tested on Ollama, OpenAI GPT-3, and PearAI Server
Checklist

[ ] The base branch of this PR is preview, rather than main

this is clutch asf

Nice


org.wso2.carbon.apimgt.rest.api.publisher/README.md needs to be updated

Description:

Add details for APIM 2.2.0 and APIM 2.5.0 in [1] under step 1 after creating a branch for the latter mentioned versions in [2].

[1] carbon-apimgt/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher
[2] https://github.com/hevayo/swagger2cxf-maven-plugin
Suggested Labels:
Suggested Assignees:
Malintha
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
https://github.com/wso2/product-apim/issues/3408

Latest version of APIM(3.x) Publisher REST APIs does not use swagger2cxf-maven-plugin


update it for idea 232.*


Capacitor Banks and Draconium Blocks

EDIT: I just realized it is all Capacitor Banks.
If you shift click a stack of Draconium Blocks instead of dropping them in with a mouse you can put an entire stack of them into a Capacitor Bank and charge them all at once for the cost of one.

This is DE's fault, we had the same issue with stacked capacitor bank items in the past, so we blocked charging of them when they are stacked. Report this to @brandon3055


Make it easier for users to know which drains they've adopted

Aside from the icons, we likely need a quick way for users to access their adopted drains via a list or other simple mechanism. Given the 20,000+ drains this seems necessary to help users come back and "manage" their drain adoptions.
Based on email from Jean:
3)	Another tester forgot which drain she adopted and wanted to be able to search for it

This was something OpenOakland was interested in too.

yes!

can this be an MVP item? i wonder if it's possible to have the user's adopted drains show up no matter  where/how zoomed in they are on the map. or would it be a search? "Find my drains"

@jeanwalshie what do you think about including the list of drains in-between the Find Drains and Edit Profile buttons on:

I think we can probably do this as MVP if we keep the UI simple (just the list of drains and you can click to zoom the map to the location).

sure @jszwedko, like a button that says, "Find my drains", perhaps using the orange icon color?

@jeanwalshie I was thinking about just listing them out right there, so it'd be something like:
<Find drains button>

Your drains:
Whatever you named the drain <- would be a link to zoom the map to the location
Whatever you named your second drain
Whatever you named your third drain

<Edit profile button>
<Sign out button>

What do you think of that?

thanks, @jszwedko -- it sounds good but i think i'd need to see it to fully understand. there wouldn't be a button, just a listing of links to each drain location? i wonder if that would take up too much real estate if folks had adopted several drains? either way, i'd love to try it!

I was thinking a list of links -- my thought is that users would probably adopt a small enough subset of drains (say <10) that it wouldn't be too much of an issue, but it would be able to scroll, of course. Basically it would push the "edit profile" and "sign out" buttons lower which probably see very little interaction anyway.
I can take a stab and send a screenshot of what I'm thinking.

@jszwedko that sounds great. you're right, i certainly hope people don't adopt more than a few drains!

Closed by #135

hurray! thanks @jszwedko

Sorry -- one more thing! Can we make the font for the new "My drains" the same size and style as "Address/Neighborhood"? and left justify it? OR create a button (possibly orange to match the color or an adopted drain) and make the font the same as the "Find drains" font and keep it centered?

Closed by #135

Oops, missed your last comment -- I'll update the styling.

Closed by #151

gracias @jszwedko!


[AsciiDoc conversion] Cross reference link text

For cross-doc references, you must specify the link text. For example:
xref:another-topic.adoc[Another topic]

The link text is specified between the two square brackets. The current AsciiDoc converter isn't processing this directive. Instead, the link text appears as undefined.

Repro:

See a live page here: https://main--prisma-cloud-docs-website--hlxsites.hlx.live/prisma/prisma-cloud/en/enterprise-edition/content-collections/get-started/get-going#first-steps

See the corresponding AsciiDoc source here: https://github.com/hlxsites/prisma-cloud-docs/blob/664c01f293f4abae1fdc6b87297aff43571fbad3/docs/en/enterprise-edition/content-collections/get-started/get-going.adoc?plain=1#L13-L17

@iansk this is fixed, for example: https://main--prisma-cloud-docs-website--hlxsites.hlx.live/en/enterprise-edition/content-collections/get-started/get-going
I just noticed this page has a broken image though, it looks like it's because it's a .gif that's too large (28mb)


Setting isLoading to false in SSR mode causes server/client state mismatch

Describe the problem
In auth-state.jsx, isLoading is initialized as false when in SSR mode. This makes it difficult to avoid a state mismatch warning between server and client rendering.
This error can be seen in the nextjs example in this repo. The Nav component checks the isLoading state to decide what to render. On the client isLoading correctly returns true, so the loading indicator is rendered until the authentication status can be determined. However in SSR mode, isLoading returns false, so the component instead renders the unauthenticated state. This throws a server/client mismatch error in the dev console.
It seems like isLoading should be initialized to true in both client and SSR modes. This would cause the Loading indicator to be rendered during SSR or static rendering when using Next.js, which would match the initial rendered state in client mode.
What was the expected behavior?
The content rendered in SSR mode should match the initially rendered state in the client mode.
Reproduction
This error can be reproduced by cloning this repository and running the nextjs-app example in the examples folder.

Hi @bennettrogers - thanks for raising this

It seems like isLoading should be initialized to true in both client and SSR modes.

We set the isLoading flag to false when statically rendering the page because this accurately reflects the state of the library during SSR. It will only be loading when the SDK is launched in a browser.
I'm not able to reproduce this error in the nextjs example pap in the examples folder, could you share the full error details (message/stack) and also any other steps needed to reproduce it

Hi @bennettrogers - thanks for raising this

It seems like isLoading should be initialized to true in both client and SSR modes.

We set the isLoading flag to false when statically rendering the page because this accurately reflects the state of the library during SSR. It will only be loading when the SDK is launched in a browser.
I'm not able to reproduce this error in the nextjs example pap in the examples folder, could you share the full error details (message/stack) and also any other steps needed to reproduce it

Here's how to reproduce:

Clone this repo
In examples/nextjs-app, update package.json to use the actual packages instead of local versions (I'm sure it would work with the local versions too, but I was getting import errors when the example components tried to import @auth0/auth0-react when it had been installed from the parent folder):

...

  "dependencies": {
-    "@auth0/auth0-react": "file:../..",
+    "@auth0/auth0-react": "^1.2.0",
    "next": "9.4.4",
-    "react": "file:../../node_modules/react",
-    "react-dom": "file:../../node_modules/react-dom"
+    "react": "^17.0.1",
+    "react-dom": "^17.0.1"
  }
}

run yarn in the example folder to install dependencies
copy .env.example to .env.local and fill out the Auth0 fields so that it connects to an actual Auth0 project (this step isn't strictly necessary to see the error, but without it the app won't load since it won't render until it connects to auth0)
run yarn dev
open up the generated example site and check the dev console:

react-dom.development.js:67 Warning: Expected server HTML to contain a matching
 in
.
    at div
    at Loading
    at Nav (webpack-internal:///./components/Nav.js:23:85)
    at Auth0Provider (webpack-internal:///./node_modules/@auth0/auth0-react/dist/auth0-react.esm.js:238:25)
    at MyApp (webpack-internal:///./pages/_app.js:51:94)
    at ErrorBoundary (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ErrorBoundary.js:23:47)
    at ReactDevOverlay (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ReactDevOverlay.js:73:23)
    at Container (webpack-internal:///./node_modules/next/dist/client/index.js:136:5)
    at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:605:24)
    at Root (webpack-internal:///./node_modules/next/dist/client/index.js:692:25)

The error is because on the server, Next sees that isLoading is false and so it renders the Nav, whereas on the client isLoading is true, which renders the loading component. The discrepancy causes React to show its hydration warning. The warning could be suppressed by specifying suppressHydrationWarning, but that doesn't seem like the right solution.

Here's how to reproduce:

Clone this repo
In examples/nextjs-app, update package.json to use the actual packages instead of local versions (I'm sure it would work with the local versions too, but I was getting import errors when the example components tried to import @auth0/auth0-react when it had been installed from the parent folder):

...

  "dependencies": {
-    "@auth0/auth0-react": "file:../..",
+    "@auth0/auth0-react": "^1.2.0",
    "next": "9.4.4",
-    "react": "file:../../node_modules/react",
-    "react-dom": "file:../../node_modules/react-dom"
+    "react": "^17.0.1",
+    "react-dom": "^17.0.1"
  }
}

run yarn in the example folder to install dependencies
copy .env.example to .env.local and fill out the Auth0 fields so that it connects to an actual Auth0 project (this step isn't strictly necessary to see the error, but without it the app won't load since it won't render until it connects to auth0)
run yarn dev
open up the generated example site and check the dev console:

react-dom.development.js:67 Warning: Expected server HTML to contain a matching
 in
.
    at div
    at Loading
    at Nav (webpack-internal:///./components/Nav.js:23:85)
    at Auth0Provider (webpack-internal:///./node_modules/@auth0/auth0-react/dist/auth0-react.esm.js:238:25)
    at MyApp (webpack-internal:///./pages/_app.js:51:94)
    at ErrorBoundary (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ErrorBoundary.js:23:47)
    at ReactDevOverlay (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ReactDevOverlay.js:73:23)
    at Container (webpack-internal:///./node_modules/next/dist/client/index.js:136:5)
    at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:605:24)
    at Root (webpack-internal:///./node_modules/next/dist/client/index.js:692:25)

The error is because on the server, Next sees that isLoading is false and so it renders the Nav, whereas on the client isLoading is true, which renders the loading component. The discrepancy causes React to show its hydration warning. The warning could be suppressed by specifying suppressHydrationWarning, but that doesn't seem like the right solution.

Hi @bennettrogers - I see what you mean
Let me have a think about what the implications would be to defaulting isLoading to true - it's simple enough to do, but my concern is it might require a new major release. You will have to live with the warning and the suppressHydrationWarning  option for the time being.

Hi @bennettrogers - I see what you mean
Let me have a think about what the implications would be to defaulting isLoading to true - it's simple enough to do, but my concern is it might require a new major release. You will have to live with the warning and the suppressHydrationWarning  option for the time being.

Hi, if isLoading is initially true, how would this code be updated?
The loading should be hidden initially
if (isLoading) {
    return
Loading...
;
  }

@vinamelody - isLoading is set to false after the SDK is intialised
Is there a specific issue you are seeing with this? If so can you raise an issue with steps to reproduce it?


Add my location button

This adds a "my location" selector to the checkbox. This can also be a button if the component is placed somewhere else.

chat-gpt
Vue Geolocation Button Component Guide
Overview
The GeolocationButton component is a Vue.js component that provides a button to trigger geolocation retrieval. It utilizes Vuetify components for styling and functionality.
Usage

Props:
Of course! Here's a concise listing of the component's props in single-line format:

GeolocationButton Component Props

color (String): Color of the button. Default: 'white'
size (String): Size of the button (e.g., 'small', 'medium', 'large'). Default: 'small'
density (String): Density of the button (e.g., 'default', 'comfortable', 'compact'). Default: 'comfortable'
elevation (String): Elevation of the button. Default: '2'
hideButton (Boolean): Hide the button. Default: false
hideText (Boolean): Hide the text. Default: false
showCoords (Boolean): Show the coordinates. Default: false
showTextProgress (Boolean): Show the progress text. Default: false Mainly for debugging
useTextButton (Boolean): Use text for the button. Default: false
progressCircleSize (Number): Size of the progress circle. Default: 12
label (String): Label for the button. Default: 'My Location'
id (String): ID for the button. Default: null
trueIcon (String): Icon when geolocation is true. Default: 'mdi-crosshairs-gps'
falseIcon (String): Icon when geolocation is false. Default: 'mdi-crosshairs'

Use these props to customize the appearance and behavior of the GeolocationButton component in your Vue.js application.

Events:

@geolocation: Event emitted when geolocation is retrieved.
@error: Event emitted when there is an error in geolocation retrieval.

Slots:

The component supports default slots and named slots for customizing button text or label

Example
<template>
  <div>
    <geolocation-button
      color="blue"
      size="medium"
      density="default"
      @geolocation="handleGeolocation"
      @error="handleError"
    >
      Use My Location
    </geolocation-button>
  </div>
</template>

Let's sort out all the easy stuff first, then see if we can think about a way to set this up so that privacy-conscious people can be assured that we won't be doing nefarious things with their location data.


[1.9.4] Enabling this mod makes my JEI interface disappear

The second this mod is enabled in my 1.9.4 personal modpak, JEI overlay completely disappears and cannot be accessed in any way.
This is probably due to some change in an update on the JEI end, because I've used your mod with it before and had no issues.
It took me a couple of hours to figure out it was your mod because I did not expect such an issue to be caused by your mod since it doesn't deal with UI properties or anything. This happens with just JEI and your mod loaded with the most recent 1.9.4 forge version installed.

What other mods are you using, Also, versions of JEI, ALT & Forge please. (I'll attempt to look into it, but I want to set up identically)

A quick check with ALT 1.9.4-1.05, Base Metals 1.9.4-<IP_ADDRESS>, Orespawn 1.9.4-1.0.3, and JEI 1.9.4-<IP_ADDRESS> turns up no issues, so it could possibly be related to ALT, but it's likely cross-mod and not with JEI/ALT if so. Definitely gonna need a list of mods and versions to diagnose.

You are probably correct that it was something cross-mod; as I have since edited the modpack (including updating other mods as they released new versions) and it no longer has this issue. I am going to guess that one of those updates fixed the issue. If it crops back up, I'll post more info about it here. Until then, this should probably be closed.


This is my package.json:
[...]
  "dependencies": {
    "aperture.js": "https://github.com/wulkano/aperture.js.git#0d9e86c4ba9cfb2fa22fb8155878441a011d4079"
  }
[...]

Now, if I run npm install it works.
But when I change aperture.js to the commit 2e485a65e10b6a8ed10b1cee96ae5717811febc4 it breaks with the following message:
The following build commands failed:
	CompileSwift normal x86_64
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `cd swift && xcodebuild && mv build/release/aperture main && rm -r build`
npm ERR! Exit status 65
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'cd swift && xcodebuild && mv build/release/aperture main && rm -r build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aperture.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cd swift && xcodebuild && mv build/release/aperture main && rm -r build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aperture.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aperture.js
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/[TOP_SECRET]/Developer/[TOPSECRET]/[TOPSECRET]/node_modules/aperture.js/npm-debug.log
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-linux:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-win:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aperture.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aperture.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aperture.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Before this output I got some errors with swift:
AVFoundation.AVCaptureFileOutputRecordingDelegate:133:17: note: protocol requires function 'captureOutput(_:didFinishRecordingToOutputFileAtURL:fromConnections:error:)' with type '(AVCaptureFileOutput!, didFinishRecordingToOutputFileAtURL: NSURL!, fromConnections: [AnyObject]!, error: NSError!) -> Void'
    public func captureOutput(captureOutput: AVCaptureFileOutput!, didFinishRecordingToOutputFileAtURL outputFileURL: NSURL!, fromConnections connections: [AnyObject]!, error: NSError!)
                ^
/Users/[TOP_SECRET]/Developer/[TOP_SECRET]/[TOP_SECRET]/node_modules/aperture.js/swift/aperture/Recorder.swift:59:18: error: value of type 'AVCaptureMovieFileOutput' has no member 'startRecording'
      self.output?.startRecording(toOutputFileURL: self.destination, recordingDelegate: self);

(For example)

You probably need to upgrade Swift or Xcode.

Lol. Captain obvious ☠
I assume that I have the current latest and greatest Xcode version. But it wasn't so.
However why I've installed 7.x.x and swift 2.2.
Now I've Xcode 8.2.1 and swift 3.0.2 and everthing works fine.
Thank you ❤


Initial client/cli refactoring

This PR lays the groundwork for further refactoring/restructuring of the client model and CLI commands.
Verification
$ make test

LGTM


The app is WAY TOO NICE

The app is so GOOD that it causes several problems for me:

You can't leave a worthy review on the Microsoft Store since it doesn't support 6 star reviews
I spend way to much time playing around with all the buttons instead of actually using it
I find my self constantly restarting the app to see that BEAUTIFUL splash animation

pls make a slightly crappier version so i dont waste more time

Apologies to hear about your problems, I can recommend a couple of solutions for you:
Go to Settings -> Look & Feel -> Enable Animations to Off. And for good measure, change Design Style in the same screen to Classic Windows and restart the app. Now your general productivity will increase 👌
And avoid pressing the button to switch between Type Ramp and Character Map View 🤔

Wait you said WHAT BUTTON
hang on brb


Add files via upload

What the program do ?

In what programming language it is written?

Added LinkedList implementation


refactor fill

refactor fill
more

Current dependencies on/for this PR:

main

PR #172   👈

This stack of pull requests is managed by Graphite.


Only support iOS 13+

This plugin only support iOS 13+. It's better to note it in README.

Seems like we can support under iOS 13 with webview something like #12

Dealt with in #18 AFAICT, @no-dap

Dealt with in #18 AFAICT, @no-dap


Move docs to separate repo

Description

Removes docs/ and examples/ folders
Adds external workflow trigger
Removes lfs 🎉

Type of change

[ ] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References
Closes #4306
How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change
[ ] example: I check if my changes works with both PySide and PyQt backends
as there are small differences between the two Qt bindings.

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

Hi @melissawm!
As far as I can tell, this PR will cause napari/docs/.github/workflows/deploy_docs to run on each PR to this repo, which will then actually deploy the main docs.
I think instead we should do:

build_docs runs on PRs, clones branch main from the napari/docs repo and does a build here, then uploads an artifact (like before), and/or serves it on circleCI or whatever, we can teak that.
deploy_docs only runs on pushes to main and actually triggers the workflow on napari/docs.

What do you think? I can make the changes but just want to make sure I'm not missing anything.

Thanks for following up on this @jni - fingers crossed!


updated my card details

add Ephraim Muasya card info

PR MERGED!
Thanks for contributing :)

Thank you.


Tending Data

Type of change

[ ] Refactor
[x] New feature
[ ] Bug fix
[ ] Optimization
[ ] Documentation Update

Description
Adding some trending data to help us track resource utilization across runs

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please describe the System Under Test.
Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

Code changes look good to me at this moment, as this project is still growing. Once we have enough cases added I think we can consider some refactoring.

yes! I totally agree -- the code can be improved -- due to the iterative nature it is ugly but can be totally improved!

Only thing I want to add is a simple new dashboard showing some trending results.


Scroll Div Horizontally With Mouse Wheel

Hello, I have one question for you. Is it possible to change some params of perfect scroll in order to be able to pass through the div horizontally with the mouse wheel.

Please refer to the useBothWheelAxes option. There is also an example for this:

https://github.com/utatti/perfect-scrollbar/blob/master/examples/options-useBothWheelAxes.html


How to animate the tree expand and collapse events

Hi All,
Firstly, Kudos for giving us an awesome tree view.
I've been struggling to animate the expand and collapse events of the tree nodes.
An example of what I am trying to achieve is Here.
I'm using the yeoman/generator-angular which is using AngularJS v1.3.15.
.ng-enter and .ng-leave refused to work, come what may.
After a fierce battle I managed to see some animation by using the following CSS styles:
.tree-collapsed-add{
transition: 1s linear all;
position: relative;
display: block;
opacity: 0;
max-height: 20px;
}
.tree-collapsed-add-active{
opacity: 1;
max-height: 20px;
}
.tree-collapsed-remove{
transition: 200ms linear all;
position: relative;
display: block;
height: 20px;
max-height: 20px;
opacity: 1;
}
.tree-collapsed-remove-active{
height: 20px;
max-height: 20px;
opacity: 0;
}
The animation is jerky and not smooth at all. Any pointers will be helpful.
Thanks in advance.
CodingNube

A full year later, but here's the css you need.  I'll make a pull request too, since this is entirely a css addition.
treeitem,
treeitem.ng-enter li,
treeitem.ng-leave li {
transition: 200ms linear all;
}
treeitem.ng-enter li {
position: relative;
display: block;
opacity: 0;
max-height:0px;
}
treeitem.ng-enter-active li {
opacity: 1;
max-height:30px;
}
treeitem.ng-leave li {
position: relative;
display: block;
height:30px;
max-height: 30px;
opacity: 1;
}
treeitem.ng-leave-active li {
height: 0px;
max-height:0px;
opacity: 0;
}

Awesome! Thank you Isaac. It Works!


Tab expansion starting with '#' needs to be escaped

When using tab-expansion on branch-names, if they start with '#' then it, and the rest of the line will get ignored by powershell since '#' marks the start of a line comment. Escaping it with ` does help though, e.g.:
git checkout#1-branch-name
`
This is only necessary when the name starts with the pound-sign though, as names like feature/#1-branch-name works fine without any escaping.

Yup, # is a special char in PoweShell (comment). There are a number of special characters most of which are punctuation like $, @, (, {, ;.

And Git supports branches starting with all of them:

PowerShell will automatically quote paths during tab expansion that contain special chars or spaces.  I'm guessing we could do something similar when tab expanding branch names.  How about remote names? Can you have special chars in remote names as well?

Can you have special chars in remote names as well?

Yep. I'm inclined to add a guard against special characters in any tab completed string.

@dahlbyk There are some tab completed strings that are already escaped via single quotes (stashes and TF shelvesets).

@rkeithhill - I think I've solved this problem completely in TabExpansionPlusPlus, see https://github.com/lzybkr/TabExpansionPlusPlus/blob/master/TabExpansionPlusPlus.psm1#L64 - feel free to take that code as you see fit (I guess V3 and beyond only).


POST requests not sent as posts

Not sure if this is an openapi or guzzle issue.
When I try posting a request the request is made but POST is missing from the header.

What's the generated code look like ?

The generated classes look right IMO. This is the function I'm calling from one of the classes I generated:
    /**
     * Creates a new session.
     *
     * @param \resources\Model\SessionRequest $body
     * @param array                           $parameters List of parameters
     * @param string                          $fetch      Fetch mode (object or response)
     *
     * @return \Psr\Http\Message\ResponseInterface|\resources\Model\SessionResponse
     */
    public function postSession(\resources\Model\SessionRequest $body, $parameters = [], $fetch = self::FETCH_OBJECT)
    {
        $queryParam = new QueryParam();
        $url        = $this->baseURL;
        $url        = $url . ('?' . $queryParam->buildQueryString($parameters));
        $headers    = array_merge(
            [
                'Host' => 'xx-csa.bbcollab.com',
                'Accept' => ['application/json'],
                'Content-Type' => 'application/json',
                'Authorization' => 'Bearer '.oauth2::instance()->get_token()
            ],
            $queryParam->buildHeaders($parameters)
        );
        $body       = $this->serializer->serialize($body, 'json');
        $request    = $this->messageFactory->createRequest('POST', $url, $headers, $body);
        $promise    = $this->httpClient->sendAsyncRequest($request);
        if (self::FETCH_PROMISE === $fetch) {
            return $promise;
        }
        $response = $promise->wait();
        if (self::FETCH_OBJECT == $fetch) {
            if ('200' == $response->getStatusCode()) {
                return $this->serializer->deserialize((string) $response->getBody(), 'resources\\Model\\SessionResponse', 'json');
            }
        }

        return $response;
    }

The generated code says "$this->messageFactory->createRequest('POST'"
But the request is not a post request.

It's a GET instead ? How do you inspect the packets ? debug in PHP ? wireshark ? other ?

But yes, if it's create a POST request and send something else it comes from the underlying client and not openapi :/
Or maybe it comes from the PSR7 implementation

Hmm, I've tried this again - must have been a problem with the packet inspector.
It does have POST but it isn't posting to the correct end point:
POST / HTTP/1.1
Host: xx-csa.bbcollab.com
User-Agent: GuzzleHttp/6.2.1 curl/7.49.1 PHP/7.1.5
Accept: application/json
Content-Type: application/json
Authorization: Bearer xxx
My own client implementation does this:
POST /sessions HTTP/1.1
Host: xx-csa.bbcollab.com
Accept: /
Authorization: Bearer xxx
Content-Type: application/json

Reported in error


added another metadata test for cmip6

Pull Request Checklist:

[x] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes issue #224

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Documentation has been added / updated (for bug fixes / features)
[ ] HISTORY.rst has been updated (with summary of main changes)
[ ] I have added my relevant user information to AUTHORS.md

What kind of change does this PR introduce?:

This PR adds another test with CMIP6 data to fix issue #224. It is an update of PR #225.

Does this PR introduce a breaking change?:
no

Other information:

@agstephens @Zeitsperre only an update of the tests with cmip6 data.


Update to SDK 5.0.4

Description
Javascript SDK update + adapt code to the jwtTokenExpired event renaming

Codecov Report

Merging #308 into 2.x will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##              2.x     #308   +/-   ##
=======================================
  Coverage   75.55%   75.55%
=======================================
  Files          39       39
  Lines         769      769
=======================================
  Hits          581      581
  Misses        188      188

Impacted Files
Coverage Δ

src/services/kuzzleWrapper.js
49.65% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


A customer reported that it's not possible to set the HTTP Timeout at all now.

          A customer reported that it's not possible to set the HTTP Timeout at all now.

When they try to set it to 300 it times out at 100

The timeout should be set as 300 seconds as per the following code and I believe I can confirm the timeout by printing it out to the log:
deepgram.SetHttpClientTimeout(TimeSpan.FromSeconds(ApiRequestTimeoutInSeconds));
_logger.LogInformation($"ApiRequestTimeoutInSeconds: {ApiRequestTimeoutInSeconds.ToString()}");
And the output from the log file:
2023-08-30 07:32:18.818 +10:00 [INF] BinConsulting.TOPS.TOPService.AsrWorker: ApiRequestTimeoutInSeconds: 300

Error:
Error while transcribing audio files: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.

DeepgramClient deepgram =
    new DeepgramClient(
        new Credentials(
            ApiKey,
            ApiUrl,
            ApiUrlRequiresSsl));
deepgram.SetHttpClientTimeout(TimeSpan.FromSeconds(300));
transcript = await deepgram.Transcription.Prerecorded.GetTranscriptionAsync(
            new StreamSource(stream, "audio/mpeg"),
            new PrerecordedTranscriptionOptions()
            {
                Tier = "enhanced",
                //Model = "meeting",
                Version = "latest",
                Language = "en",
                Diarize = options.EnableSpeakerSeparation,
                NamedEntityRecognition = true,
                Numerals = true,
                Punctuate = true,
                Utterances = true,
            });

Originally posted by @DamienDeepgram in https://github.com/deepgram/deepgram-dotnet-sdk/issues/116#issuecomment-1706846650

@ThindalTV this appears to be related to your last change on timeouts. Any chance you could take a look at it?

I tested by setting a 1 second timeout and a large 180mb MP3 file and the request did not timeout so it seems that something is not quite right

It is most probably a bug as the 100s timeout is the default value for the timeout. I will take a look.

I am having this same issue, SetHttpClientTimeout just doesn't take effect.

The team discussed this and in our next major release of the .NET SDK this issue will be addressed.

Any chance you could make a fix available sooner? Our requests all time out (we have large files > 1 h).

@andyr700

Update: I had to hotfix the Deepgram SDK so we can continue progressing internally.

Could you share your hotfix. We are in a similar situation and we can't progress.

@andyr700

...for the moment deleting the call to Create() in SetTimeOut would mean it updates the HttClient used by the ApiRequest object.

Thank you! This helped me fix this bug for now. https://github.com/dhymik/deepgram-dotnet-sdk

This PR https://github.com/deepgram/deepgram-dotnet-sdk/pull/207 has been merged and released 3.4.1.


Use external pillar for inventory

Is there a way that I can use my custom pillar which pulls data from netbox to feed it into nornir?

As long as pillar returns data in salt nornir compatible format would expect it to work with no issues. On how to do it - might customuze your custom pillar to produce required structure?

Here is a link for writing salt stack external pillars https://docs.saltproject.io/en/latest/topics/development/modules/external_pillars.html

This is an awesome library. Everything worked so far. I'll play with the library more and see how more I can do with it


how to handle the datetime type data?

does this supports datetime type data?
how to handle the datetime type data?
thanks!

Currently only 4 types are supported: Int, Float, String and Bool. In the future additional data types might be implemented and actually a DateTime type could be interesting.
As a workaround you can transform your dates to int as a measure of nanoseconds to be able to insert it as a Int column.

ok  I will try  your method。 ths!


Allow stdin like with Bash in Python mode

Swift-Colab uses the Python pexpect library to interact with running processes. This lets it extract colorized, interactive output - a feature not present in google/swift-jupyter. However, this means it will freeze when the process requests input.

In the image above, the third %system command requests permission to overwrite a file.

There is currently no mechanism to pass input into a running process. The Python Jupyter kernel passes input in, so it is theoretically possible. But this feature will take a non-negligible amount of time to implement. I am deferring its addition to a future release.

Patched and being implemented in Swift-Colab v2.3. I switched from pexpect to a reimplementation of the terminal in googlecolab/colabtools. Colorized output appears when building a Swift package that generates compiler warnings, so the new implementation is a go.


Compression Commands - add Get and rewrite Set

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[X] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[X] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[X] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose

There are a lot of changes in this PR, the end goal is to get these three commands to 1.0 standard so please let me know of any changes/improvements. Happy to take suggestions, thanks all!

New command Get-DbaDbCompression to get the current compression state of a database
Rewritten some of Set-DbaDbCompression to make use of the Test-DbaDbCompression and use powershell instead of T-SQL to do the rebuilding\compressing.
Closes issue #2073

can now compress all objects to Page, Row or Recommended compression
if no max time is set it runs until it's done
if no percentcompression is selected compress any that have > 0 gains

Increased pester test coverage above 80% for Get Set and Test commands
Can also do the following so you can look at the results from test and then pass them into Set.

$compress = Test-DbaDbCompression -SqlInstance server1 -Database test
Set-DbaDbCompression -SqlInstance server1 -InputObject $compress

Approach

I figured since the Tiger Team logic is in the Test we don't need to repeat it in the Set, now call test from the set command and make its way through objects/indexes/partitions compressing to the required level.
Also missing a Get command so added that also.
Commands to test

Added examples to help text

Thanks, Niph, great review! I'll resolve the conflict for you, @jpomfret

apart from the gory technical details, this is an excellent work... it shows you:

how to reuse what is there
when you tried a real usecase, you think something needs improvements
you plan for it
you make it happen

👏  🤘

Thanks so much for the detailed review, I will be working on these changes today!

hey @jpomfret - we had issues with appveyor - please sync with dev when you get a moment so your tests have a chance at passing!

merging to new branch


SimpleHTTPServer (Python 2) and http.server (Python 3)

README.md minor update to include running SimpleHTTPServer on Python 3
Python 2
python -m SimpleHTTPServer 8000

Python 3
python -m http.server 8000

You know, you can use browser-sync or webpack dev server :)

Thanks for the suggestions. I have updated the readme file.


Multi-Image or Multi-Video Inference Example

Hello, and thanks for such a great contribution to the field of interleaved LMMs! This is really great work. I was wondering if there was an example of the format for multiple image or multiple video inference (similar to what is shown in the in-context learning examples)? Does it involve appending multiple <image> tokens at the specified locations? And then are the images and videos inserted sequentially?
From my understanding of the run_vila.py script, the way to have an ICL input for images (and the corresponding structure for videos, of course) would be as follows:
python -W ignore llava/eval/run_vila.py \
    --model-path Efficient-Large-Model/Llama-3-VILA1.5-8b \
    --conv-mode llama_3 \
    --query "<image>\n ICL text 1 <image>\n ICL text 2 <image>\n" \
    --image-file "img1.png,img2.png,img3.png"

However, I am not sure if the positions of the <image> tokens are considered by the model during generation because looking at the llava_llama.py, the method for preparing the multimodal inputs is inherited from LLaVA, which I believe just concatenates the image features and does not embed them specifically in the locations of the <image> tokens.
I may have missed something as I am still new to the codebase and exploring the model more deeply. Would appreciate any clarification on the point about multi-image and multi-video inputs. Thanks!
Edit: After having looked more deeply, it seems to me at least that the way I have formatted the prompt (with '\n' included) aligns with your code. However, I see in your paper that the image tokens are enumerated:

As a side note, I do get this warning a lot.

The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results. Setting pad_token_id to eos_token_id:128001 for open-end generation.
I think the pad token is fine as it is automatically set to the eos_token. But what about the mask? I see no mention of that when I try to evaluate on datasets like SEEDBench. I do seem to get uncharacteristically low acc. on these benchmarks, and I am trying to find out why.

I also noticed that the run_vila.py script does not have 'llama_3' as a conv_mode option. Is it possible that VILA-1.5 used a different conv_mode?

Hello, I think in the VILA code, images are embed specifically in the locations of the  tokens. https://github.com/NVlabs/VILA/blob/0085724ca3363dc62eaa0d7ef1a30ad20df5c8da/llava/model/llava_arch.py#L371-L391

Thank you @DtYXs for the clarification about the <image> token and its placement! Given that, do you have any insights on why zero-shot performance on VILA-1.5-8b might be lower than what is being reported? Few-shot improvements are fantastic as advertised. Perhaps it is related to my concerns regarding masking and the conv_mode formatting. However, looking deeper at the eval scripts, I see that the conv_mode was passed directly - so 'llama_3' indeed would have been used.