[Editor] Avoid editor creation/selection on right click (bug 1781762)

Unfortunately, I didn't manage to write a test for that because I was unable to dismiss correctly (without any mouse/keyboard actions) the context menu.

/botio integrationtest

The failure on the windows bot is a bit crazy...
In firefox: Expected 'Hello PDF.js Worl' to equal 'Hello PDF.js World !!'.

/botio integrationtest

/botio integrationtest

/botio-windows integrationtest


Customize select dropdown to have a search box

Category : Help Request/Question:
Hi Tabalinas,
During insert of a new item, I want to show a search box in the select dropdown as there may be many values. I tried to customize the default select and use the bootstrap-select for live search (using selectpicker class). My modified code is like this
    insertTemplate: function(value, item) {
	var $select = jsGrid.fields.select.prototype.insertTemplate.call(this);
	$select.addClass('selectpicker');
	$select.attr("data-live-search", "true");
	/*$select.selectpicker({
	liveSearch: true
	});	*/
	$select.selectpicker('refresh');
	$select.selectpicker('render');

	return $select;
}

But nothing gets rendered for this field. Could you let me know how to achieve this
Thanks in advance
Uma

Could you reproduce the issue in jsfiddle (forking this one for instance http://jsfiddle.net/a4xw24h1/)?
Just a guess, sometimes widgets cannot be initialized on detached DOM Nodes, so it makes sense to postpone initialization like:
insertTemplate: function(value, item) {
	var $select = jsGrid.fields.select.prototype.insertTemplate.call(this);
	$select.addClass('selectpicker');
	$select.attr("data-live-search", "true");

	setTimeout(function() {
		$select.selectpicker({
			liveSearch: true
		});
		$select.selectpicker('refresh');
		$select.selectpicker('render');
	});

	return $select;
}

Thank you so much. When I click on "+" , in the insert row it does display the bootstrap select picker now.  Please see the updated jsfiddle.  ( [http://jsfiddle.net/Uma_V/pt7t7ut4/]  )
But still there is one issue wrt display. The dropdown is not overflowing on the table below, but rendered within the top insert panel.. So its not properly visible. How to make it look like in the default select.
Again, thanks for a great js library
Regards,
Uma

You have to render the select to the html body.
This line fixes the problem
$select.attr("data-container", "body");

http://jsfiddle.net/ugkpsmjd/

Hi Tabalinas,
Thank you so much. That fixed the issue. Really appreciate your putting efforts to provide resolutions

@umav-123, you are welcome!


Can we set a variable to null which was previously set?

Can we set a variable to null which was previously set?

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

ID: 52e0d3b7-5d54-b28b-ed97-8bc0970d0c96
Version Independent ID: c25847a1-f575-cfd9-73e5-10cdf75bbfa6
Content: Variables - Power Automate
Content Source: articles/desktop-flows/actions-reference/variables.md
Service: power-automate
GitHub Login: @mariosleon
Microsoft Alias: marleon

Hello @IT-LCEC, thank you for using Power Automate Desktop.
Please note that Power Automate Desktop doesn't handle the null value in the same way as programming languages. In most cases, you can set the variable to zero or an empty text value.
As this question concerns a technical issue, I would kindly ask you to post a question regarding the context of the case to the Power Automate community.


Cordial Face Error

Issue with dialog on the refactor branch #20
There is an issue with cordial being split into eyes and mouth while the configuration is for one node. This should either be split in the configuration or handled separately somehow.
Traceback:
[INFO] [1599532561.234088]: Initializing the dialogue service Traceback (most recent call last):   File "/root/harmoni_catkin_ws/src/HARMONI/harmoni_core/harmoni_pattern/scripts/harmoni_pattern/sequential_pattern.py", line 340, in <module>     main()   File "/root/harmoni_catkin_ws/src/HARMONI/harmoni_core/harmoni_pattern/scripts/harmoni_pattern/sequential_pattern.py", line 327, in main     dp = SequentialPattern(pattern_name, script)   File "/root/harmoni_catkin_ws/src/HARMONI/harmoni_core/harmoni_pattern/scripts/harmoni_pattern/sequential_pattern.py", line 38, in __init__     self._setup_clients()   File "/root/harmoni_catkin_ws/src/HARMONI/harmoni_core/harmoni_pattern/scripts/harmoni_pattern/sequential_pattern.py", line 61, in _setup_clients     ), f"Scripted service: {service}, has not been configured" AssertionError: Scripted service: harmoni_face_mouth_default, has not been configured [harmoni_pattern-1] process has died [pid 3498, exit code 1, cmd /root/harmoni_catkin_ws/src/HARMONI/harmoni_core/harmoni_pattern/scripts/harmoni_pattern/sequential_pattern.py false Hey default __name:=harmoni_pattern __log:=/root/.ros/log/9f768010-f17b-11ea-a428-0242ac120304/harmoni_pattern-1.log]. log file: /root/.ros/log/9f768010-f17b-11ea-a428-0242ac120304/harmoni_pattern-1*.log

I think that the issue can be the pattern json.
It seems you still have the old names (i.e., harmoni_face_mouth_default) instead of the new ones (i.e., face_mouth_default). In the pattern json (multiple_choice.json, and dialoging), you should rename the service name removing the "harmoni_" prefix.
Maybe the json were in the gitignore, and so my updates have not been pushed.

You were correct, I was unwittingly on an old commit. My bad! The json updates were in the commit. Having said that, I think that keeping the harmoni_decision/config/configuration.yaml file listing just a 'face' when two services actually get started is a little confusing. So I updated the documentation a bit, though it could probably use more.


Day 133

Good morning! Here's your coding interview problem for today.
This problem was asked by Amazon.
Given a node in a binary tree, return the next bigger element, also known as the inorder successor.
For example, the inorder successor of 22 is 30.
   10
  /  \
 5    30
     /  \
   22    35

You can assume each node has a parent pointer.

They didn't say this explicitly, but it's safe to assume they meant binary search tree and not just an arbitrary binary tree.


Search bar not Working

Search bar not Working.
Assign ma this issue.

Can you assign this issue to me?


Fix conditional import

dart.library.web is not a valid conditional variable.
Changed to dart.library.html.
It will break all web app at startup because of calling numberOfProcessor via io.Platform. And native app will always be 1 processor(which is actually for web).

Thanks! Seems legit.


[RLOS2021] Running the existing jupyter notebook demo and explore Azure ML distributed capabilities

Add documentation if needed

@cheng-tan  can i work on this?


Pdf not generated

I have try to generate PDF but give following error
My code
use  mikehaertl\wkhtmlto\Pdf;
public function htmlToPdf()
{
$pdf = new Pdf('/opt/lampp/htdocs/projectname/public/mypdf/demo.html');
$pdf->saveAs('/opt/lampp/htdocs/projectname/public/mypdf/heloopdf.pdf');
if (!$pdf->send()) {
var_dump('Could not create PDF: ' . $pdf->getError());
}
}
Give bellow error:
string(156) "Could not create PDF: wkhtmltopdf: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4)"

This error indicates, that something is wrong with your installation of wkhtmltopdf. You have to make sure, that it works on the command line first.


Update package.json

Set main to dist/sanitize.css instead of Gulpfile.js
Remove unused scripts

Thank you, @pascalduez! What was the reason you moved the author property up?

What was the reason you moved the author property up?

Just to group related keys together actually. Seems common to have the author(s) at the top.


Classroom API

Put together the Classroom API

Basic overview of what the classroom API should accomplish:

Methods (routes) should only be accessible by instructors and admins
GET:

class_name is given with request, returns single cybergym-class datastore object
class_name not given, return all classes for that instructor

POST:

Creates cybergym-class datastore Entity for requesting instructor

DELETE:

If requesting user is owner of the classroom or an admin, delete requested classroom
If user fails above check, return 403
Return 400 if class_name is not in request

PUT:

If class_name, update student roster for single class. This can be either updating individual student or multiple.
if not class_name, return 400 for now.

As with the other APIs, we want to make sure that any cloud specific code is kept to the respective cloud class (i.e gcp.datastore_manager).
Eventually (not needed for now), it would be nice to be able to read from a CSV file to update multiple students in a classroom.  This logic can be moved to its own class

API Architecture


@conda-forge-admin rerender

[ ] I read the conda-forge documentation and could not find the solution for my problem there.

Issue:

Environment (conda list):

$ conda list

Details about  conda and system ( conda info ):

$ conda info

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/eups-feedstock#13.

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/eups-feedstock#13.


Bybit V5

Bybit V5 API
Upgrade to API v5 for Bybit.
Example
ExchangeSpecification exchangeSpecification =
    new BybitExchange().getDefaultExchangeSpecification();

exchangeSpecification.setApiKey(System.getenv("apiKey"));
exchangeSpecification.setSecretKey(System.getenv("secretKey"));
exchangeSpecification.setExchangeSpecificParametersItem(
    SPECIFIC_PARAM_ACCOUNT_TYPE, BybitAccountType.UNIFIED); // or FUND

BybitExchange bybitExchange =
    (BybitExchange) ExchangeFactory.INSTANCE.createExchange(exchangeSpecification);

System.out.println(bybitExchange.getAccountService().getAccountInfo().getWallets());
System.out.println(
    bybitExchange.getMarketDataService().getTicker(CurrencyPair.BTC_USD, BybitCategory.LINEAR));

System.out.println(bybitExchange.getExchangeMetaData().getInstruments());

System.out.println(
    bybitExchange
        .getTradeService()
        .placeMarketOrder(
            new MarketOrder(OrderType.BID, new BigDecimal("50.00"), CurrencyPair.BTC_USDT)));

System.out.println(bybitExchange.getTradeService().getOrder(""));

please approve this PR
i need it for work with bybit stream api...

@damiano1996
can you add to remoteInit() exchangeMetaData linear instruments too ?

Hello @damiano1996
As I understand, you are now using the names of currencies, the same as those inside the buybit API:
marketDataService.getTicker(CurrencyPair.BTC_USD, BybitCategory.INVERSE);
I think it’s worth it in the case of linear contract.
for compatibility,make names of instruments in xchange style, like this:
    Instrument inst = new FuturesContract("BTC/USDT/PERP");
    marketDataService.getTicker(inst, BybitCategory.LINEAR);

since it is now implemented in Okx, Binance and others...
perhaps even in this case there will be no need for(BybitCategory.)
what do you think?

Hi @rizer1980, thanks for your feedbacks. I'll look into it in the next days.

Hi @damiano1996
Thanks for the changes.
I would like to note that the code structure is very thoughtful!
I did some tests and it looks great.
But encountered the same error as you:
{"retCode":10001,"retMsg":"params error: symbol invalid","result":{},"retExtInfo":{},"time":1705148559824}
If wee check retCode 10001 in documentation, we get "There was a problem with the value passed to the API"
or "params error" in another place.
However, this did not bring me any closer to solving the problem. Tried BTC and ETH, changed the amount (qty)...
I think sooner or later we will figure this out.

Hi @damiano1996
Found some issues.
By the way, these (LinearFutures,LinearPerpetual,InversePerpetual InverseFutures) and  make my head spin.
Sample, based on filter "baseCoin": "ETH"
https://api.bybit.com/v5/market/instruments-info?category=linear
We get 9 instruments (ETHPERP,ETHUSDT,ETH-02FEB24,ETH-19JAN24,ETH-23FEB24,ETH-26JAN24,ETH-27SEP24,ETH-28JUN24,ETH-29MAR24)
In exchangeMetaData.getInstruments() we get  in result 3

ETH/USDT/PERP(LinearPerpetual)
ETH/USDC/SWAP(LinearFutures)
ETH/USDC/PERP(LinearPerpetual)

https://api.bybit.com/v5/market/instruments-info?category=inverse
get 3 (ETHUSD,ETHUSDH24,ETHUSDM24)
In exchangeMetaData.getInstruments() we get in result 2

ETH/USD/PERP(InversePerpetual)
ETH/USD/SWAP(InverseFutures)

I'm at a loss as to how to correctly name these missing instruments. (

Hi @rizer1980 , sorry for late answer. I fixed the issue by exploiting the prompt variable of the FuturesContract. Now, it returns all the instruments, but I'm still getting the error of params error: symbol invalid. I'll find out in the coming days.

Can anyone confirm that this is, in fact, working?
I am getting the params error: symbol invalid as @damiano1996 mentioned above. I get it even when I execute the underlying call to ByBit with the symbol format that ByBit has in its official documentation, as can be seen in the following screenshots:

Spot - works.
String marketSpotOrderId =
        exchange
            .getTradeService()
            .placeMarketOrder(
                new MarketOrder(OrderType.BID, new BigDecimal("5"), CurrencyPair.BTC_USDT));
    System.out.println("Market SPOT order id: " + marketSpotOrderId);

I confirm that Spot functionality is operational.
For the Futures issue, I've filed a new bug report here: Issue #4822


Add kde-5.15-21.08

Just adds kde-5.15-21.08 as available runtime in docker images for those actions.

Thanks


Add use of catkin_EXPORTED_TARGETS to catkin_create_pkg's created CMakeLists.txt

I believe many (most?) users/devs are not yet aware of the new way to add dependency on messages. That is in the package's CMakeLists.txt:
add_dependencies(your_program ${catkin_EXPORTED_TARGETS})

Instead of the old and current
add_dependencies(your_program some_messages_generate_messages_cpp)

See catkin documentation: http://docs.ros.org/api/catkin/html/howto/format2/cpp_msg_dependencies.html
and ROS Answers: http://answers.ros.org/question/52744/how-to-specify-dependencies-with-foo_msgs-catkin-packages/?answer=75340#post-id-75340
To make this new way better known, I suggest to add this as the default for the CMakeLists.txt created by catkin_create_pkg.
Also, the CMakeLists.txt reference should be updated: http://wiki.ros.org/catkin/CMakeLists.txt#Important_Prerequisites.2BAC8-Constraints (I can do that, after a catkin maintainer confirms).

catkin_create_pkg is provided by the Python package catkin_pkg rather then by catkin itself. I also think the change you propose has already been implemented and released a few month ago: ros-infrastructure/catkin_pkg#79
There are information in so many different location that it is almost impossible to update them consistently. Please go ahead an update the wiki page.

catkin_create_pkg is provided by the Python package catkin_pkg rather then by catkin itself.

My bad. Sorry.

I also think the change you propose has already been implemented and released a few month ago: ros-infrastructure/catkin_pkg#79

Right. This should fix it.
Since I'm running Ubuntu Trusty I only have version 2.8.1., but the fix got into 2.9. Will that version be released for Trusty?

Please go ahead an update the wiki page.

Done.

Since python-catkin-pkg is a distro agnostic release it should be available for all ROS and Ubuntu distros. Currently it seems to be only in shadow-fixed (http://packages.ros.org/ros-shadow-fixed/ubuntu/pool/main/p/python-catkin-pkg/) but not in the main repo (http://packages.ros.org/ros/ubuntu/pool/main/p/python-catkin-pkg/) yet. For a Python release that should never be the case since releases are pushed directly to all repos.
@tfoote Can you please look into why the two last releases of this package are not available in the main repo and fix it.

catkin-pkg 0.2.10 is now in the public repo.

catkin-pkg 0.2.10 is now in the public repo.

Got it. Thanks!


Adding Funny Mirror images using opencv

Hello @akshitagupta15june ma'am, I want to implement Funny mirror images using OpenCV. Please assign me this I am a gssoc21 participant.

@akshitagupta15june ma'am, in which folder I should add this file?

in awesome face operations

ok.


Hop440 master merge

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run

pipeline:run


Unable to compile rolling codes app

When I try to follow methods 3 and 4 mentioned in this [document](flipper-zero-tutorials I receive the following error:
flipper-zero-tutorials\subghz\apps\rolling-flaws\rolling_flaws_subghz_receive.h:7:10: fatal error: lib/subghz/protocols/protocol_items.h: No such file or directory
    7 | #include <lib/subghz/protocols/protocol_items.h>

I'm unclear on what I'm missing

Thanks for the bug report.  It appears building under ufbt is not supported and not something I'll be able to fix.
I updated the steps for VSCode, so hopefully it's more clear now.  If not, please let me know here or on my Discord server -
https://discord.com/invite/NsjCvqwPAd


Prevent copying from password managers like 1Password, KeePassXC, etc

Hi there, first of all, thanks for this software, really cool! I'm currently using Flycut, but I'm considering giving this a shot too :)
Would you be open to preventing saving from password manager pasteboard types such as:

org.nspasteboard.TransientType
org.nspasteboard.ConcealedType
org.nspasteboard.AutoGeneratedType
com.agilebits.onepassword

I've seen these requests in other password managers before - such as https://github.com/TermiT/Flycut/pull/117

Done! https://github.com/mattDavo/Yippy/releases/tag/2.4.1
@karlhorky could you please confirm that it works for your workflow?

Done! https://github.com/mattDavo/Yippy/releases/tag/2.4.1
@karlhorky could you please confirm that it works for your workflow?

Ah, just trying out 2.4.1 with KeePassXC on macOS and it appears to be copying the passwords still...
I looked at the list in Maccy and it appears that there are others that I missed:
https://github.com/p0deje/Maccy/blame/20e87f9880824e14a7a4f34d9575e90de68ccf11/README.md#L69-L83

Ah, just trying out 2.4.1 with KeePassXC on macOS and it appears to be copying the passwords still...
I looked at the list in Maccy and it appears that there are others that I missed:
https://github.com/p0deje/Maccy/blame/20e87f9880824e14a7a4f34d9575e90de68ccf11/README.md#L69-L83

Ahh gotcha, cheers. Will sort this out

Ahh gotcha, cheers. Will sort this out

Sorry try 2.4.2 @karlhorky should work now.

Sorry try 2.4.2 @karlhorky should work now.

Yayy, looks good! 🙌 💯  Thanks @mattDavo - going to try switching from Maccy to Yippy now! Closing.

Yayy, looks good! 🙌 💯  Thanks @mattDavo - going to try switching from Maccy to Yippy now! Closing.


（Draft）feat: support increase diff extend size

[x] Added an entry to CHANGELOG.md if this change could be valuable to users

feature: support increase diff extend size

click the area will increase the diff extend size, now wil plus 5 lines.

In the future, a code comparison toolbar can be made, like other IDEs
JetBrains:

This is. Very good feature! Would you mind adding it to CHANGLOG.md?

Codecov Report

Merging #1970 (0772093) into master (acf1de5) will increase coverage by 0.03%.
The diff coverage is 0.00%.

 Learn more

I found some bugs, I will make a new PR when I fix them

You could leave it open as draft :)

new pr: https://github.com/lapce/lapce/pull/1979


Feature/Filters builder

A Filters building class to help users creating filters for their queries.
I've used the samples in the docs as a baseline to the filters creation.

available=1 AND (category:Book OR NOT category:Ebook) AND _tags:public

Filters.Builder booksBuilder = new Filters.Builder();
Filters bookFilter = booksBuilder
    .addFilter("category", "book")
    .or()
    .not()
    .addFilter("category", "Ebook")
    .build();
Filters.Builder builder = new Filters.Builder();
Filters filter = builder
    .addFilter("available", "1", Filters.Operator.EQUALS)
    .and()
    .addFilter(bookFilter)
    .and()
    .addFilter("public")
    .build();
filter.getFilters();

date:<PHONE_NUMBER> TO<PHONE_NUMBER> AND inStock > 0 AND author:"John Doe"

Filters.Builder builder = new Filters.Builder();
Filters filter = builder
    .addFilter("date", "1441745506")
    .to()
    .addFilter("1441755506")
    .and()
    .addFilter("inStock", "0", Filters.Operator.GREATER_THAN)
    .and()
    .addFilter("author", "John Doe")
    .build();
filter.getFilters();

This is not bullet proof, since user still need to understand how does the SQL like filters work in order to create valid queries, but it's intention is just to give users' an interface to help creating the queries.

Hi @condesales, thank you for contributing! 😃
We are not satisfied by the way we handle facetFilters today, and planned to build a helper around those in the near future to make their manipulation more efficient. Your Filters builder is a first step forward in this direction!
This being said, I have a few concerns with the current approach. If we provide a Filters helper in the library, it should protect users from creating invalid filters: for example the fact filters can be AND of OR clauses but not OR of AND clauses makes me reluctant to provide in our API Client a helper that lets a user build such invalid requests.
Likewise, the limitations on OR clauses (which cannot mix different kinds of filters), the fact that negation can only be applied on a single filter, or the handling of parentheses are more reasons that make me afraid that providing a Filters helper inside this library if it does not provide a complete API for handling filters.
Even with those concerns, this Builder is already useful for a smaller subset of what can be done with filters, and even if it won't cover all of our customers use-cases it likely covers yours and some others' as well.
I see two directions we could go from here:

If you want, I'm happy to work with you on building upon this PR to create a more comprehensive Filters helper, that would handle both building new and modifying existing filters. Many of the concerns I raised earlier could be solved with a more strongly-typed approach, providing an API that would look somewhat like this for your first example:

Filters.build(and(
            new Filter("available", 1),
            Filters.build(or(
                    new Filter("category", "Book"),
                    not(new Filter("category": "Ebook"))
            )),
            new Filter("_tags", "public")
));

On the other hand, if you're satisfied with the current Builder and see no interest in making it more comprehensive, I feel the best thing would be to release it in a separate repository as a separate tool for building complex filters. We will still create helpers for filter manipulation in the future, but in the meantime I will be happy to reference your repository in our readme as a handy tool for crafting filters!

Let me know what you think about this 🙂

Hi @PLNech,
First of all, sorry for the delay getting back to you on this.
Yes, I totally agree that a better and most robust Filter builder should be one to go in the library. Filter validation is something that would be really nice to have on client side, but the API already returns nice and very insightful error messages when you send a wrong formatted filter, thus I don't see it as really a "must have".
As you mentioned, this simple builder covers all my needs (which for now are very simple and straightforward). I don't have all you knowledge on the limitations of Algolia filters and how they work, so when I started this I didn't have a full scope in mind.
I'm happy to keep improving this PR with your help to build something you judge it would be more helpful for a broader set of users 😃

Hi @condesales, in turn let me apologise for the delay: some issues we're experiencing between Travis CI and the Android SDK take a huge amount of my time these days.
As soon as we are done with these issues (I'll update #179 and #188 with my progress on those), I will be happy to continue working with you on this PR and build a Filters helper inside the API Client! I'll keep you updated 🙂


1.37.1 snippet variables don't works anymore

Updating from 1.36.1 to 1.37.1 my snippet variable {CLIPBOARD} is replaced with empty text
`
"customprintr": {
	"prefix": "customprintr",
 	"body": [
		"\t    echo '
';",
		"\t    \\$printMe = ${CLIPBOARD};",
		"\t    echo '
';",
		"\t    die;",
		"\t"
 	],
 	"description": "Insert custom print_r"
},
"br": {
	"prefix": "br",
	"body": ["
"]
}

`

Looking better my script I notice that I'm using macro to insert the snippet. Is it possibile that editor.action.clipboardCopyAction is not working?
`
"macros": {
    "printr": [
        "editor.action.smartSelect.grow",
        "editor.action.clipboardCopyAction",
        "editor.action.insertLineAfter",
        {
         "command": "editor.action.insertSnippet",
            "args": {
                "name": "customprintr",
                "langId": "php",
            }
       },
       "editor.action.insertLineAfter",
       "editor.action.clipboardCopyAction",
    ]
},

`

@sbatten I remember you made changes that made some part of the clipboard async, was that last milestone and would it impact executing editor.action.clipboardCopyAction?

yes /cc @jrieken

🤷♂ no clue, the editor.action.clipboardCopyAction is from the editor. I have tested snippets and they seem to work.

I notice that I'm using macro to insert the snippet

@ottopic What is macro? Is that an extension you are using?

Yes it is, is very used extension to execute commands.
I use this one because I think is not possibile do the same think only using snippet functionality.

Ok, please forward this issue to the extension that. The extension is using vscode.commands.executeCommand which returns a promise but that extension isn't awaiting those promises, see https://github.com/geddski/macros/blob/master/extension.js#L34. Reading from the clipboard is now async and mostly like a command is started before the previous command is done.


composer require zendframework/zend-expressive broken

I'm trying to include zend-expressive in my project, but unsuccessfully.
When i require zend-expressive via console ( composer require zendframework/zend-expressive ), i get the following error:
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - zendframework/zend-expressive 3.0.0 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-expressive 3.0.1 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-expressive 3.0.2 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-httphandlerrunner 1.0.1 requires psr/http-message-implementation ^1.0 -> no matching package found.
    - Installation request for zendframework/zend-expressive ^3.0 -> satisfiable by zendframework/zend-expressive[3.0.0, 3.0.1, 3.0.2].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Code to reproduce the issue
composer require zendframework/zend-expressive

Expected results
Expected composer to install the package
Actual results
Composer returned an error regarding package dependencies

It's not broken, you are missing a psr/http-message-implementation, e.g. zendframework/zend-diactoros
So I guess this would do:
composer require zendframework/zend-expressive zendframework/zend-diactoros

@ksemeks One new tool for you: composer why-not <package>. This will give you detailed information on what blocks installation of a package.
That said, your error message indicates the issue:
zendframework/zend-httphandlerrunner 1.0.1 requires psr/http-message-implementation ^1.0 -> no matching package found.

We do not currently cover installation within an existing project, which tells me this should be documented. I'm adding the "documentation" and "help wanted" labels presently, so somebody can pick that up.

This repository has been closed and moved to mezzio/mezzio; a new issue has been opened at https://github.com/mezzio/mezzio/issues/8.


Scope fails to launch on latest Docker for Mac (beta18)

> bash ./scope launch
68d432bf5c07d17e7b42204c85bddc1a9d0ac30869324329645d094357019d0d
docker: Error response from daemon: Mounts denied:
The path /var/run/scope/plugins
is not shared from OS X and does not belong to the system.
You can configure shared paths from Docker -> Preferences...
..

as it the error message suggest "...and does not belong to the system", I think we simply need create that plugins directory on the VM.

I've tried creating the plugins directory, but for some reason anything created in /var/run doesn't persist, and we should investigate this and report upstream.
Mounting root filesystem and creating files there works fine:
> docker run -v /:/rootfs:rw --entrypoint=/bin/sh -ti weaveworks/scope:0.16.0 -c 'touch /rootfs/BOOM'

> docker run -v /:/rootfs:rw --entrypoint=/bin/sh -ti weaveworks/scope:0.16.0 -c 'ls -la /rootfs/BOOM'
-rw-r--r--    1 root     root             0 Jul  6 17:43 /rootfs/BOOM

But creating files in /rootfs/var/run doesn't seem to work:
> docker run -v /:/rootfs:rw --entrypoint=/bin/sh -ti weaveworks/scope:0.16.0 -c 'touch /rootfs/var/run/BOOM'

> docker run -v /:/rootfs:rw --entrypoint=/bin/sh -ti weaveworks/scope:0.16.0 -c 'ls -la /rootfs/var/run/BOOM'
ls: /rootfs/var/run/BOOM: No such file or directory

Ok, looks like mounting /var/run directly work okay. I'll create a PR.

For the record, I think -v /:/rootfs:rw is not suffiecent because /var/run is a symlink to /run.

This actually fails when --service-token is set, cause that affects the code path.


What is  target_vis = target['vis'], target_have_depth = target['have_depth'] in model.py?

I thought that only 3d joint coordinate x,y,z are needed to train model for 3d dateset,
But when I analyzed model.py, there are target_vis, target_have_depth for loss function.
loss_coord = torch.abs(coord - target_coord) * target_vis
            loss_coord = (loss_coord[:,:,0] + loss_coord[:,:,1] + loss_coord[:,:,2] * target_have_depth)/3.
            return loss_coord

Can you explain what they are?

Thanks a lot


Populate autocomplete list after opening.

Hi,
I'm looking for a way to show some entries in the list, right after the user clicked on the autocomplete input field.
I want to use it like a filterable select.
Is there an option to activate this behaviour.
Thanks in advance :)

Hi,
do you want to show some already preselected items or just a list with some items such that the user doesn't need to enter some value into the input field? In the first case you are able to set the model with preselected values and implement the https://github.com/guylabs/ion-autocomplete#the-model-to-item-method.
Thanks and regards,
Guy

Hi Guy,
i already figured out the first case by looking at an example.
I'm asking about the second case.
Greetings,
Anton

Hi Anton,
would you want to set something like the listmodel which then shows these items right away in the list and then the user is still able to search in them right? Or is it a static list which is always the same?
Thanks and regards,
Guy

Guy,
I solved this in my fork by adding an additional directive attribute that forces the items-method to be called even for the initial case where query === undefined.  This way I can always call my items method and have dynamic list options available.
This allows me to workaround the commit "Do not call the items-method if not needed".
<ion-autocomplete ng-model="model" items-method="itemsMethod(query)" items-method-when-empty="true"/>

See https://github.com/Glamhive/ion-autocomplete/commit/d424e0533fb0c304c4d1e82299fac6e4c60c9701

Hi Guy,
I'm also looking to solve the second case. I would like to display maybe the results of an empty query (which in my case would return all of the elements), or perhaps a sample. It doesn't make a difference, I gathered that my users get a little bit confused when they see a blank list, but that they can filter afterwards.
Thanks,
Mauro

For reference: https://stackoverflow.com/questions/32250506/ion-autocomplete-show-alll-elements-before-userinput

Hi,
I finally got the time to add a solution. Please have a look at the master and at this documentation: https://github.com/guylabs/ion-autocomplete#search-items. There everything is described how to pre populate the search list.
Please tell me if that fixes your issue and then I can close this issue.
Thanks and regards,
Guy

Hi, I want to try the new version, but the latest release (0.3.1) is not available:
https://github.com/guylabs/ion-autocomplete/tree/v0.3.1

Hi,
you can use the master the following way: http://guylabs.ch/2015/05/08/get-latest-master-changes-of-a-bower-dependency/
If the issue is solved for you then I am able to release the 0.3.1 version when all other issues in this fix version are fixed too.
Thanks and regards,
Guy

Hi Guy,
following the guide on your homepage I managed to install the new version.
The function works, if you open the autocomplete window for the first time.
If you select one item the list is empty again. Thats really inconsistent.
Also if you use ionic in browser there is a bug if you click on the autocomplete field and the window opens, that it automatically clicks on the appearing list entry, therefore selecting it instantly.
I don't know if its related to the new search-items parameter as the bug doesn't show if the list is empty (because you can't click on anything)
Greetings,
Anton

Hi Anton,
well when you select an item the populated list will be cleared as then the user wants to enter a new value and all other autocomplete components that I know have the same functionality. If you do not want this behavior and always want the same list to be populated, then you are able to use a select component with a fixed list.
And for the issue with the browser: I cannot reproduce this. What browser are you using and do you use the master of the ion-autocomplete component? Are you using a compatible Ionic version? Check here: https://github.com/guylabs/ion-autocomplete#ionic-compatibility
Thanks and regards,
Guy

Hey @guylabs, thanks for your module, nice one! :+1:
i jsut noticed that having this search-items attribute set, selecting an item clears the entire list. so i have to query e.g. '*' to get back the list. is that by intention?
Cheers

@thedanielhanke That's exactly my point. I think the expected behaviour would be, that for an empty input the result list should show the search-items array.

Hi,
@thedanielhanke thanks for the praise :smiley:
it looks like this whole search-items feature is confusing. There was already the issue #38 and this pull request #42. Maybe I revert the search-items again and then you can fetch the list if the query is empty. This way you have the functionality you need such that when the query is empty a default list is shown and when the user enters a query you can filter them or not.
What do you two think about that?
Thanks and regards,
Guy

Yeah, that sounds great.

Can I just add that the same behaviour is observed when model-to-item-method is used to set a default value. In this scenario the first time the user clicks the autocomplete field to reveal the search modal the list is blank. Any fix should include this scenario.
Thanks
Nathan

@nrcrabbe can you check my PR if it fixes that issue as well?
https://github.com/guylabs/ion-autocomplete/pull/82

Hi @thedanielhanke.
I dropped in the code and it does not help in this scenario.
It did help in the scenario where the selected item is user selected. However I had a weird effect where the modal was only visible for a split second before disappearing again (on Chrome using ionic serve). What ever list item happens to be under the mouse is selected. I haven't looked into it very deeply though.
Ref: https://github.com/guylabs/ion-autocomplete/issues/80

hehe, lucky you @nrcrabbe , my "quick investigation" took an hour of my life wasted :D on mobile device this does not happen.
as soon as @guylabs is "back" (seems to be busy currently) id like to give back some more code - if he likes - then id also check your issue.

Hi @nrcrabbe, @thedanielhanke ,
sorry for my late response. Thanks for having a look at these issues and discussing about them. So here are my inputs on these issues:

The model-to-item-method is used when you want to have the model prepopulated and not the search list when you open the modal. So this is another functionality and I think this is not related here, as this should work as expected. And if there is an issue with this, then could you @nrcrabbe please show me a reproducible codepen with the master?
I think we need to discuss how we should implement the functionality of having a prepopulated search list. As I wrote here https://github.com/guylabs/ion-autocomplete/issues/57#issuecomment-142819933 I think I will revert this as part of version 0.3.2 such that you get an empty or null query to you items-method and then you could return the default values to prepopulate the list. What do you think about this? Then I would remove the search-items attribute and simplify the things again.

I do not want to implement something that you are not able to use in your projects so I am open to discuss about it.
Thanks and regards,
Guy

Hi @guylabs.
first of all, thanks for your time and effort on this, and the same to others in the community.
I haven't read right the way back in the history of this and related issues, but I think I agree with what you wrote in the comment you referenced:

This way you have the functionality you need such that when the query is empty a default list is shown and when the user enters a query you can filter them or not.

Speaking broadly, the functionality I would like is in pseudocode if (!searchQuery) return all(searchItems); This should apply regardless of whether the model has been pre-populated, populated by a prior user selection, or the model isn't populated.
I'll throw together a codePen sometime today.
Thanks
Nathan

Hi Nathan,
thanks for your reply and also your time and efforts! Ok cool then you have the same idea as I have. What about you @thedanielhanke ?
The plan is to finish off some other issues for 0.3.1, then release 0.3.1 and then I will change this behavior in 0.3.2.
Thanks and regards,
Guy

@nrcrabbe Nathan, if (!searchQuery) return all(searchItems); - works using my PR like this:

$scope.items = [
  { id: 1, name: "Item 1"}
  { id: 2, name: "Item 2"}
  { id: 3, name: "Item 3"}
]
$scope.filter  = (query) -> $filter('filter')($scope.items, name: query)

in case you are unfamilar to coffeescript, (x)->x() is more or less equal to (function(x) {return x();})
and
        <input ion-autocomplete
               class="ion-autocomplete"
               autocomplete="off"
               item-value-key="id"
               item-view-value-key="name"
               items-method="filter(query)"
               search-items="items"
            />

if you cannot confirm, the codePen would be nice to see.
  - i am lost :) what is the actual question?
did you see my PR btw?
BR

yep :smiley: .. well I want to discuss the second point in this comment https://github.com/guylabs/ion-autocomplete/issues/57#issuecomment-146655987. The thing about to remove the whole search-items property and just use the items-method for that.
And yes I saw your PR and thanks a lot for that but that fixes the current problem but it adds more complexity and most of the issues currently are about the search-items property. Therefore I want to simplify that again and release a version which removes all this complexity.

ok gotcha.
what ever leads to simplification without dropping the feature itself seems more than legit to me
![thumbs]
(https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/1/005/0b4/070/316fe8c.png)
if there is anything i can provide, please tell me ;)

ok great! Then lets have a look at the codepen of @nrcrabbe and then I come up with the change and you two can have a look at it and give feedback if you like. And hopefully then everything is clear and easy to use ;).

@guylabs it has been a busy day and is past beer o'clock and is now kebab o'clock where I am. I'll sort you out something in the next 18 hours though.

@guylabs ,this is a entirely different topic, but i want to apply to the refactorting thing
when i open a old template (= older than 15 minutes), i find myself confused by all these item*-attributes, which are named in a sense- and meaningful way in your docu.
example:
The model-to-item-method
This method is used if you want to prepopulate the model ....

-> prepopulate-items e.g.
just to mention ;)
BR

@thedanielhanke what do you mean by "old template" ? A custom template for the component?
Well the model-to-item-method attribute is used to define a function which converts the model value to the item value. Because you cannot show the model value if that differs from the view value (the search item). Do you know what I mean? So I cannot name it prepopulate-items.

@guylabs sorry for beeing unclear. template: just any html-file i created a while ago, a form, a single input, anything i did accordingly to the documentation, then saved and closed for a while.
i see your point - naming is always a challenge.
indeed, my example does not fit - the goal was to have something more intuitive..
however, its not a major concern, i just wanted to mention, since i had to re-read the docu after seeing the attributes.

@thedanielhanke I'll have a look soonish.
@guylabs 0.3.2 would be great

@guylabs  I've spent some time trying to get a codepen done and I'm getting unexpected results :/ I'm giving up now.
But I'm sure you have the right idea going by your comments. I agree with your analysis:

I think we need to discuss how we should implement the functionality of having a prepopulated search list. As I wrote here #57 (comment) I think I will revert this as part of version 0.3.2 such that you get an empty or null query to you items-method and then you could return the default values to prepopulate the list. What do you think about this? Then I would remove the search-items attribute and simplify the things again.

That way the developer has the power of choosing what they do with the empty query. I'll be returning the complete unfiltered list. Someone else may decide if(searchQuery == "") return [] is more appropriate for their use case.

imo this should be done in the items-method, not inside the plugin at all.

Hi,
sorry for the delay but now I finished the things in the branch and could you please have a look at the documentation and test the new functionality on the branch and give me feedback asap? Then I am able to merge it to the master and then finally release 0.3.1.
Now you are able to just use the items-method to do all the prepopulation and you are able to choose wether the search list gets cleared or not etc. Have a look at the new documentation of the items-method: https://github.com/guylabs/ion-autocomplete/tree/%2357-remove-search-items#the-items-method
Thanks and regards,
Guy

@guylabs I have installed this branch and I am more than happy for you to merge into master.
Many thanks
Nathan

@nrcrabbe ok great! :) So what about you @thedanielhanke did you already have the time to test it? It would be nice if I can release 0.3.1. next week to finally finish off this milestone ;).

@guylabs I'm sorry I didn't have the time to follow this closely. But I just checked out the newest version and i'm very happy with it now :)
Thanks a lot everyone.

@g0t00 ok nice :). @thedanielhanke did you have the time to look into it? If not then I will merge it to the master this week such that I can finally release 0.3.1.


⚠ Bofrost.lu has degraded performance

In 5e8dd6c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2178 ms

Resolved: Bofrost.lu performance has improved in 5d522f3 after 20 minutes.


Gui doesn't show

I am unable to launch gui application,xeyes for example.
nothing happen and got no errors in terminal.
WSL : <IP_ADDRESS>
Kernel : <IP_ADDRESS>-2
WSLg : 1.0.65
MSRDC : 1.2.5620
direct3D : 1.611.1-81528511
DXCore : 10.0.26100.1-240331-1435.ge-release
Windows : 10.0.22631.4317
Ubuntu 24.04
stderr.log
versions.txt
weston.log
wlog.log
bug template to create issue seems to be broken.

Same thing on gedit or virt-manager

I could not remove /tmp/.X11-unix as it was mounted ro.
Also the suggestions on the linked page were of no use on my system.
I then took another look at the output of sudo apt-get upgrade and noticed ubuntu-wsl was held back.
So I just installed its update ( sudo apt install ubuntu-wsl ) and now my X Gui applications work again.

echo "Fixing X11 & Wayland..."
sudo rm -r /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
ln -sf /mnt/wslg/runtime-dir/wayland* /run/user/`id -u`/

Thanks so much, this works! I was just about to write an issue, then found this thread at the top.
Oddly, in my case, Wayland X sometimes works, sometimes not. I presume there is some race condition.

I've also the same issue and I fixed it via the wslg-links repo mentioned above.
Would be great if we could have an official fix.

yland and X11 not working after I updated the OS in my container to Ubuntu 24.10.

Dear @satmandu
I have no container, just WSL with Ubuntu24.04,  https://github.com/microsoft/WSL/issues/12305#issuecomment-2565900963  , and still can not make DISPLAY needed applications line xclock working ...


Add AutoOptionHelpers.cmake

This module assists with making the usage of optional libraries consistent and in agreement with automake. It provides functions to register new options, and to print out the state of all associated features.
Each option based on a package will follow the format ENABLE_XXX, and will have an associated feature variable (e.g. TS_HAS_JEMALLOC). Its value can be ON, 1, TRUE, OFF, 0, FALSE, or AUTO.
When the states of the features are printed out, features that are ON or OFF will generally be color coded green or red respectively to help configuration mistakes stand out. Options that were explicitly turned off are given special treatment: if the feature is off, it will not be color coded, because this is expected; if the feature is found to be enabled despite the user's request, it will be colored red and a CMake warning will be issued. All of this should help keep things consistent and avoid any potentially annoying bugs caused by misconfiguration.

[approve ci freebsd]

[approve ci freebsd]


Cleanup and optimize transformers

Use linalg in NormOne
Optimize PruneVarSubMean

This needs a rebase

Btw whenever you make something linalg, pls ensure there is some test coverage of the changes lines, so that we at least know he results didn’t change in the integration test examples


Clarify how we use mutations

We ended not using mutations so far, so I don't think there's anything to doc right now. Closing


feat:support node-pre-build

support pre-build option, make easy to install the package.

+1

+1

+1

@JoshuaWise it turns out that the majority of my CI time is spent re-compiling better-sqlite3 (not running tests!). Is there anything we can do to help you merge this?

Any thoughts on this @JoshuaWise ? Currently users have to install an entire dev environment just to use my app which is a huge put-off.

Quick addition; This would also require the same change happening on the integer module as they are separated.

@JoshuaWise, can you review this pull-request, I think this is a great feature.

Someone will have to explain to be how the hosting at https://github.com/JoshuaWise/better-sqlite3/releases/download/ works. Clearly I'd have to upload pre-compiled binaries for every architecture, which would be unrealistic. Unless this is somehow automated.

Someone will have to explain to me how the hosting at https://github.com/JoshuaWise/better-sqlite3/releases/download/ works. Clearly I'd have to upload pre-compiled binaries for every architecture, which would be unrealistic. Unless this is somehow automated.

this feature will allow to use custom host, ovrride by npmrc

Closed in favor of https://github.com/JoshuaWise/better-sqlite3/pull/318


Implement getQuestionByPreference and update question services

Main task:

[ ] Implement getQuestionByPreference in FE question wrapper layer.
[ ] Consume new API from question service.

Others:

[ ] Fix constraints input field issues.
[ ] Update wrapper layer implementation.
[ ] Add UI feedback for event status.

Hold:

[ ] Protect question routes. (wait for session authentication)

Why do you need to create the getQuestionByPreference endpoint? You can use the getQuestions endpoint and providing the query parameters, such as topics and complexities/difficulties, and I believe that's all right?

The getQuestions endpoint support filters. However, it does not return the question detail in full. So it only returns the question id, title, topics, complexity. Considering the matching use case, we only need to return the question id, so I guess it will be sufficient right?

Yes questionId is sufficient.

Got it, thanks for confirming! 😃

@tryyang2001 currently getQuestion supports array filters for the topics field, which is perfect for my getQuestionByPreference.
?topics=ARRAY&complexity=EASY&complexity=MEDIUM
however, it seems like zod is blocking the array filter for the complexity field, the matching might want to query questions from multiple complexity levels.
is it possible to add support for complexity? else I'll just do multiple calls then.

@c0j0s Oh my bad, it is possible to support complexity as an array! I will do the fix now!


AOT broken when using loadChildren and a function : Replace modules import by modules factories ?

When I try to build my app with AOT since I'm using loadChildren with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a function).
According to https://github.com/angular/angular/pull/13909 it seems that instead of having

we should rather import the factory (which is not available when coding, only when building) :

SamVerschueren asked if it could be replaced at build time (and opened an issue https://github.com/angular/angular/issues/14005 for that).
mhevery explained why it can't be handled at build time by angular https://github.com/angular/angular/pull/13909#issuecomment-274650555.
I'm wondering if this can be done by angular-cli ? Or as soon as we use loadChildren with a function (don't want AOT or AOT is broken due to some other bugs for example) we have to manually do that ?

I have been involved in attempts to get something like this working. The core team guys suggest it's a tough nut to crack. It's something I imagine the compiler-cli should be doing, changing the output of the compilation, it is compilation (translation) when you think about it.
For now, the workaround is to change the loadChildren assignment to a string (lazy loading), but keep the function around to make the module get included in the same bundle instead of a separate one. Keeping the exported function not just the import makes sure it doesn't get tree shaked / minified.
Like:
import { ProfileModule } from './profile/profile.module';

// Do not delete. Used to ensure ProfileModule is loaded in the same bundle.
// Referencing the function directly in `loadChildren` breaks AoT compiler.
export function loadProfileModule() {
    return ProfileModule;
}

export const routes: Routes = [
    // ... other routes ...
    { path: 'profile', loadChildren: './profile/profile.module#ProfileModule' }
];

Check the app-routing.module.ts in my routing test project for a working example:
https://github.com/meligy/routing-angular-cli
Specifically:
https://github.com/Meligy/routing-angular-cli/blob/deep-lazy-loading/src/app/app-routing.module.ts#L18

@hansl can you weigh in?

@Meligy I never thought that keeping an unused import would work for AOT !
I just tried what you proposed in my (large) app and it worked on the first try :+1: !
Thanks a lot, this is a super news while the discussion is going on :smile: !

I'm attempting to use AOT with my app, which is quite large and lazy loads many modules.
I'm following the official AOT cookbook by using ngc and rollup. As was discussed in #11075, rollup does not even support lazy loading, so I'm looking for another way to compile my app.
The issue is that ngc by itself does not actually build any of my lazy loaded modules because (I'm assuming) they are not directly imported with an import statement but instead specified as a loadChildren string.
At runtime, Angular correctly requests the Factory for the module instead of the Module itself, but the module doesn't exist so the routing fails.
Is this the expected behavior of ngc? Is there no official way to compile the factories lazy loaded modules?

@noamichael AOT and lazy loading should work just fine with the build system coming builtin with the CLI.
This issue is about non-lazy-loading, and as I mentioned in previous comment, a workaround is to trick AoT to think that it's lazy-loading the module (because again, lazy-loading does work), which having a dummy use of the module so that it still gets included in the main bundle.

@Meligy I was having this issue as well and with the recommended workaround of yours my app started to work again. Could you kindly explain if we still get the benefits of lazy loading when using this workaround? How is my app being optimised when using loadChildren but still importing the module in a dummy export function?

@borislemke Because this way your feature module doesn't need to know what path is being used to access it.
For example, suppose you have a ContactModule. You could define the routing like this
const routes: Routes = [
	{
		path: 'contact',
		children: [
			{ path: '', component: ContactComponent },
			{ Path: ':id', component: ContactDetailComponent }
		]
	}
];

export const routing = RouterModule.forChild(routes);

This way your contact module itself defines that the URL is /contact. If you take this approach, you will define your routes like this
const routes: Routes = [
	{ path: '', component: ContactComponent },
	{ Path: ':id', component: ContactDetailComponent }
];

export const routing = RouterModule.forChild(routes);

And in your app routing, you then load the contact module as child
export const routes: Routes = [
	{ path: 'contact': loadChildren: () => ContactModule }
];

export const routing = RouterModule.forChild(routes);

This way, you contact module itself defines the routes where the contact and contact details are accessible, but your app itself defines what part comes in front of that. You contact module doesn't need to know whether it is /contact or /mycontacts.

@SamVerschueren okay so based on your explanation, this has no performance benefit beside that the ContactModule is more "modular" as it does not depend on a certain path. You could just plug this into any project and define it's path, correct?

Yes, exactly!

so, any updates here?
Does this means there is no way to use AOT with router lazy loading(loadChildren) together?

This has nothing to do with lazy loading.
From @meligy

This issue is about non-lazy-loading, and as I mentioned in previous comment, a workaround is to trick AoT to think that it's lazy-loading the module (because again, lazy-loading does work), which having a dummy use of the module so that it still gets included in the main bundle.

@steve3d AOT works well with lazy loading. The problem is when you want to load a module like that :
export function LoadMyModule() {
  return MyModule;
}

{
  path: '',
  loadChildren: LoadMyModule
}

Hello,
@Readify with the recommended workaround, my feature module was lazy loaded in a separate chunk and not in the same bundle, so keeping the export function doesn't have any effect for me!

I don't think we'll be able to correctly analyze in a static way what such a function would return.

why the issue was closed? workaround from @Meligy is not working now. does anyone know how to use function with loadChildren and AOT (official way)?

@robounohito , use @angular/cli it will save your life.

@steve3d it's not an answer

To add to this conversation, a problem that I'm currently working on directly ties into this thread, and I can't find a solution that works with AOT.
I have an application that fetches a configuration JSON from the backend at runtime, and uses that configuration to determine how to sort feature modules into a route hierarchy.  I have a demo app here: https://github.com/colinjlacy/angular-dynamic-module-loading.
The problem is that I'm running analysis on module routes to add loadChildren properties where necessary, in order to create module interconnectivity.  It works pretty well in dev mode, but once I pull AOT in, it fails when I call my analysis method, rewiring my routes according to the configuration: https://github.com/colinjlacy/angular-dynamic-module-loading/blob/master/src/app/genres/genre-routes.const.ts#L23.
@filipesilva's comment above is a bit disheartening:

I don't think we'll be able to correctly analyze in a static way what such a function would return.

So I want to follow up to be completely clear.  Is there any way to run analysis functions on route declarations before sending them to forRoot without breaking AOT?

Sorry what's the solution?

I had the same issue. Solved by changing loadChildren to a string instead of an exported function. It would be nicer to to have the function though

Any news on this ?
I've  angular-cli 1.7.1 and have still the problem that I can't run AOT builds when using loadChildren with factory method.
I can switch to lazy loading by path but the my startup performance will decrease.  Would be very cool if you can fix this.

Also curious of status. Having to disable AoT in nativescript builds with lazy-loading children. Would be nice to get the performance boost of AoT in mobile app.

`export function loadFeatureAModule() {
return FeatureAModule;
}
export function loadFeatureBModule() {
return FeatureBModule;
}
const routes: Routes = [
{
path: '',
component: LayoutComponent,
children: [
{ path: 'featureA', loadChildren: loadFeatureAModule },
{ path: 'featureB', loadChildren: loadFeatureBModule }
]
}
];`
seems to be working fine for me

I still see, this is broken when you run the app with aot enabled
Error: Runtime compiler is not loaded
{path: 'helper', loadChildren: () => HelperModule }
@filipesilva  any idea if this would be supported anytime sooner ?

Function with loadChildren is still not working with AOT as of 9/6/2018, CLI version 6.1.1 - have to switch to lazy loaded path to enable AOT and bypass error of 'Runtime compiler is not loaded'.

I'm wondering WHY do guys develop/add new features while having such an important things broken.

The CLI with ng update refactored the loadChildren since Angular 8 from a string (AOT fine) to Arrow function but the error is still here... "Error: Runtime compiler is not loaded".

I undo the changes to make it works once again.

@C0ZEN lazy loading with loadChildren and functions is working for me in 8:
@NgModule({
    imports: [
        RouterModule.forChild([{
            path: '',
            loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)
        }])
    ]
})
export class MyModule { }

And for many others, I'd search for issues specific to that. I'd like to note that with the new import syntax, I can also now successfully use variables in the strings, and everything still works with AOT:
{
    path: APP_ROUTES.about,
    loadChildren: () => import(`./${APP_ROUTES.about}/${APP_ROUTES.about}.module`).then(m => m.AboutModule),
    data: {
      preload: false,
    },
  },

ref - https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084

@C0ZEN lazy loading with loadChildren and functions is working for me in 8:
@NgModule({
    imports: [
        RouterModule.forChild([{
            path: '',
            loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)
        }])
    ]
})
export class MyModule { }

And for many others, I'd search for issues specific to that. I'd like to note that with the new import syntax, I can also now successfully use variables in the strings, and everything still works with AOT:
{
    path: APP_ROUTES.about,
    loadChildren: () => import(`./${APP_ROUTES.about}/${APP_ROUTES.about}.module`).then(m => m.AboutModule),
    data: {
      preload: false,
    },
  },

ref - https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084
thhis works
loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)

but this doesn't
loadChildren: () => {reutrn  import('./lazy/lazy.module').then(m => m.LazyModule)}
#31249

@devbenzy Yeah, actually I was premature, the only syntax that's supported is exactly what I had in the first part of my post, (single quotes only, no template literals), see this conversation here:
https://github.com/angular/angular-cli/issues/14763#issuecomment-499809213

Thanks for the help @chriszrc.
I used the syntax you recommended to me.
I hope they will fix it to allow all syntaxes because this is causing so much struggle for nothing important...


Unrelated errors in latitude detection (sometimes)

Since the latitude detector uses the cartesian_to_ellipsoidal method directly and also because cartesian_to_ellipsoidal calculates the longitude and height at the same time, sometimes the latitude detector returns a zero division error in this line:
h = z / np.sin(lat) - (1 - e2) * v

Since this is not an error due to latitude calculation but an error in a different calculation (here, h the height), it might be confusing and/or unnecessary to raise this error when using the latitude event.
Reproducible example
tofs = [10, 1000, 3000, 4000] << u.s
orbit = Orbit.circular(Earth, 150 * u.km)

thresh_lat = 60 * u.deg
latitude_cross_event = LatitudeCrossEvent(orbit, thresh_lat, terminal=False)
events = [latitude_cross_event]

rr, _ = cowell(
    Earth.k,
    orbit.r,
    orbit.v,
    tofs,
    events=events,
    f=f,
)

Possible ideas

Make three separate methods, each for lat, lon, and h to prevent unrelated error pop-up
Also, if spheroid locations can be converted into a "class", it could be easy to access the lat, on, and h attributes.

If np.sin(lat) == 0, it means that lat == 0. But therefore, z == 0, and so z / np.sin(lat) should have some sultion? I vote for trying to handle this case in a numerically correct way

@astrojuanlu Do you think this issue was solved by #1292?

Indeed!


add blog post for unRAID notifications

This PR adds a link to a blog post on how to send unRAID notifications using ntfy

Awesome. Thanks.


Add support for Security Groups

We want to be able to manage security groups and security group rules through
Terraform.
First step is support for security groups and rules in the go-katapult client
library, tracked here: https://github.com/krystal/go-katapult/issues/100
Once supported by the client library:

[ ] Add katapult_security_group resource and data source.

[ ] Add repeatable inbound_rule attribute to katapult_security_group
resource to define one or more inbound rules.
[ ] Add repeatable outbound_rule attribute to katapult_security_group
resource to define one or more outbound rules.
[ ] Add repeatable inbound_rule attribute to katapult_security_group
data source to return information about all defined inbound rules.
[ ] Add repeatable outbound_rule attribute to katapult_security_group
data source to return information about all defined outbound rules.

[ ] Add katapult_security_group_rule resource and data source, which allow
managing security group rules separately. This might be superfluous, as we
would also have katapult_security_group, some further consideration is
probably needed.

The security groups API has now been deployed to production, and support has been added to the go-katapult client library. So this issue should be ready to be worked on.


UI Customization

We should allow clients to easily customize their UI to some degree. I don't know that we necessarily need to offer controls within the app to change colors / modify UI elements, but it would be nice if our stylesheets were structured such that it would be easy to change the color scheme (at a minimum) and also that this process was well documented. I know we're already using some SASS variables, which is good, but I think we should review our current styling setup and make sure that it's easy to change.

After earlier team discussions I'm not sure it makes sense to offer this; it will involve significantly complicating the app with arguably marginal benefit to our clients. I'm therefore going to close it, it just doesn't seem like something we'll ever get to.


trivial README fix

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

…ugh, nevermind.

@vthriller thanks for this fix. I assume you didn't want to sign the CLA, or was there another issue?

@erimatnor yep, I simply decided to not spend time on paperwork just to be able to change a couple of characters in README.


[thomasmonkman-filewatch] Fix patch for the latest version of FileWatch

[x] Changes comply with the maintainer guide
[ ] SHA512s are updated for each updated download
[ ] The "supports" clause reflects platforms that may be fixed by this new version
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

The correct template type to specify in the last version of FileWatch is StringType, instead of T, which was used in the previous version.

Rename T to StringType: https://github.com/ThomasMonkman/filewatch/commit/3ddba8045f93d04f0130b91f75851832c152a945


I can't set the delay anywhere

Alarmo Version
v1.8.6
HA Version
2022.3.1
Bug description
I would like to set the delay but if I want to open the menu nothing goes up or anything else as seen in the picture.

Steps to reproduce
No response
Relevant log output
No response

Are you sure you are on version v1.8.6?
Is that shown in the top right corner as well?
The problem you are describing should be solved in the latest update.

I have updated the version but it keeps putting v1.8.5. I have uninstalled it, I have downloaded the latest version from the page and it keeps telling me that I have version 1.8.5. Where can I download the new version 1.8.6?


Add Domain vcomsats.edu.pk

URL of a page on the official website where a long-term (>1 year) IT-related course is offered by the university.

http://vcomsats.edu.pk/academics/undergraduate-programs

URL of a page or some other proof (.pdf or a screenshot are OK) showing that the university recognizes the domain which you are submitting as an official email domain for the enrolled students.

http://lms.vcomsats.edu.pk/Account/Login.aspx?ReturnUrl=%2F

@fa13rpm055 Pull request merged. Thank you!


Updated old select2-bootstrap-theme link

This pull request includes a

[x] Bug fix
[ ] New feature
[ ] Translation

The following changes were made

url tweak

If this is related to an existing ticket, include a link to it as well.

Looks like this repo been pulled in under the main select2 Github repo ...

Thanks!


not getting older elements after max-size is reached.

HI,
I have buffer as follow
mmbuf = MemMapRingBuffer("filename", 40)
added 4 elemnts
mmbuf.put("111111")
mmbuf.put("222222")
mmbuf.put("333333")
mmbuf.put("444444")
IF I ADD ANOTHER ELEMENT IT OVERWRITES FROM BEGINNING REPLACING OLDEST ONE.
case 1:If  I pop elements before overwrite ,with mmbuf.get() I get 111111,222222,333333,444444 which is perfect.
case 2: if I did not pop out element  before overwrite  and added another element with
mmbuf.put("######")  overwrites 111111.
now if I pop out elements with  mmbuf.get() I get ###### , buffer empty.
I was expecting to get 222222,333333,44444,######,buffer empty.

It sounds like the confusion stems from what the capacity argument to MemMapRingBuffer's constructor signifies. It defines the buffer's capacity in bytes, not in item count.
In your example, four strings of length six are put into the buffer. Each of these put operations uses 10 bytes—a four byte prefix of the item length and the six byte item itself. Thus, your four put operations constitute 40 bytes of data, which fills up the buffer. Subsequent puts will overwrite existing values.
Your case #2 does not sound like correct behavior. If you put five strings of length six, you should then be able to pop the last four values.
If possible, please provide a failing unit test that exemplifies the faulty behavior that your seeing.


Feature: Owner of an item can always view them (optional admin setting)

Describe the feature you'd like
With the ability to change ownership of an item I think it would be great to have a safeguard for normal users to set custom permissions for items like shelves, books, chapters and pages without locking themselves out. Right now when you set custom permissions for a group you're not a part of it's no longer possible to change the custom permissions, because you can not view the file.
Because this changes the way existing permissions would be handled maybe it would be a good idea to have it optional in the admin settings.
Describe the benefits this feature would bring to BookStack users
Normal users could use the custom permissions more frequently without locking themselves out and not beeing able to see items they have ownership of.

See https://github.com/BookStackApp/BookStack/issues/2903#issuecomment-945172515

I think there must be a better solution here. I'll try to summarize the problem and give an example.

As a bookstack administrator of a medium large instance, I want my users to manage rights to their objects.
This can be done by using roles. Inevitably a user, who owns an object, will be in a role.

Let's organize the users by department - so we have a role "Engineering"

A user wants to share important information from within their department, but the department shouldn't be able to edit this information

Maybe the user is the specialist for a specific topic in the team
This can not be achieved with the described setup.
One way to achieve this, would be to make a separate role for the one user. But this won't scale when other users of this department want to share information for their area of expertise
It's quite easy for a user to lock himself out this way. And he has no possibility to change the rights, as he can't view the object.
This is a frustrating experience for the user and the administrator

I think there are two solutions:

Owners should always have full access to their objects
Owners should be able to configure rights on the user level (this way an owner can grant more rights to his user)

Additionally, these changes could help to help with the issue:

Owners should be able to configure object rights, even if they can't view the object itself
Replace concept of owners with additional right to edit permissions

I strongly agree to fix this problem.  I believe this is definitely a bug but not a feature. The administrator always has full acess whatever the owner set the permission. The owner should definitely also have this ability for its own book/shelve.


Define Task Manager functionality (again)

Intention

I'm submitting a feature request
This discussion should have a direct positive impact to TaskManager: improve the UI
@JeroenVinke - would you mind initializing this session by presenting your view of what should Task manager do and what UI should it expose (all that in the context of the view presented by Task Manager tile)

Currently the taskmanager has two large functions: to show the progress of running tasks, and to start new tasks (also called the "task runner" functionality).
Initially the taskmanager could do only the former (show progress of running tasks). It was implemented as a dialog so that it could be brought up regardless of where you were in Monterey (because the button to open the taskmanager dialog is in the taskbar).
The task runner functionality was added much later, because there had to be a way to start new tasks (like gulp watch, au run). There are tasks that run only for a few seconds, and you may want to run these tasks repeatedly. It's handy if you can monitor and start tasks from the same screen. The question is whether we can live with starting tasks from tiles on the main screen and immediately opening the taskmanager so you see the output of the command. More on this below.

We can easily extract the Workflows tab into a tile + screen, so we don't need to worry about that.
Based on what project you have selected, Monterey adds several tabs. In the following screenshot you see "Skeleton-Esnext" which is a gulp project, therefore a gulp tab is shown with all gulp commands that Monterey knows of:
. If you would have selected an aurelia-cli project, then you would have an equivalent aurelia-cli tab with au run and au run --watch.
But you don't want to go through the entire list of gulp commands in order to start gulp watch. You only use a limited amount of commands often, a problem which was solved by marking some commands as favorite.
The favorite tab shows all commands that have been marked as favorite:

Here we have a second set of tiles (the first set of tiles is in the main screen, outside of the taskmanager dialog). So there is a very strong resemblance between what is shown in the taskmanager, and what is shown in the main screen, where there is a list of projects at the left side of the screen and tiles at the right side of the screen:

So the taskmanager has quite a few features right now:

Monitor execution of commands
Manage favorite commands
Run favorite commands (as tiles for convenience)
Create/edit/remove workflows
Run gulp/aurelia-cli/webpack commands

We can reduce the complexity of the task manager a lot by moving all features except the first one (monitoring of execution of commands) to the main screen, where we have a tile + screen infrastructure that we can extend very easily

Assuming that we can live with starting new tasks as tiles from the main screen and then immediately bringing up the taskmanager for monitoring the progress. But I haven't thought beyond the point of assigning tiles to categories so the user can add a bunch of commands into a category without the problem of having too many tiles

I'd like to add that I find the "Run" tile very powerful, because I don't have to open the task manager and start a command from there. So can we do something like this for all tasks?

I want to immediately acknowledge my happiness with the quality and quantity of the information you provided in this issue (issue being the GitHub discussion thread we are in now). I will write more as I get through your text.

Keeping the minimum data in the Task manager list (left side of the view)

The task runner functionality was added much later, because there had to be a way to start new tasks (like gulp watch, au run)

I believe that my item 1 and item 2 may have a large impact on your thoughts stated after the above quote, so I would like to wait for your comments to this specific proposal before proceeding further.

I proposed the same, where new tasks are started from the main screen and not the taskmanager. But you should be able start any command like gulp prepare-release

Item 2 suggests that in order to start something like gulp watch for inactive projects, you would first have to click on the run tile, while running the app is not what you want

My basic premise is not to have inactive projects listed - not only that  these do not belong here, but rather their absence changes the scope for global buttons in the Task manager

I proposed the same, where new tasks are started from the main screen and not the taskmanager.

Yes, I realized that we are in complete sync only after starting to write the huge detailed descriptions that you clearly do not need. If we were in the same room, that would not happen of course and I started this big text, burned million times having to deal with a lot less competent folks 😄

We can reduce the complexity of the task manager a lot by moving all features except the first one (monitoring of execution of commands) to the main screen, where we have a tile + screen infrastructure that we can extend very easily

I do not think this is needed, once we agree that the left sidebar has only running apps (clearly that could be more than a single app - think about Rob using Monterey). So, the Task manager "local buttons" on top of the right side panel would apply to the currently selected running app in the left sidebar.

Yes it is a tricky one, which is why I have implemented improvements to our current implementation: https://github.com/monterey-framework/monterey/issues/287#issuecomment-247836309


Make a version that works agains future clair v3

v1 is gone in the clair repository. v3 is only present

Yeah.. can't compile b/c Stderr: clair.go:10:2: cannot find package "github.com/coreos/clair/api/v1" in any of:

Still having the same problem:
⌬ go get -u -d github.com/arminc/clair-scanner
package github.com/coreos/clair/api/v1: cannot find package "github.com/coreos/clair/api/v1" in any of:
	/usr/local/go/src/github.com/coreos/clair/api/v1 (from $GOROOT)
	/Users/p780680/go/src/github.com/coreos/clair/api/v1 (from $GOPATH)

how can I compile from src?

Hello Team,
I am also facing the same issue with clair scanner. Its is pointing api/v1 which is in master branch. is there way to route to either of the stable release which has api/v1.

Also make sure && and make build is also stuck.
Link: https://gist.github.com/sdorsett/1fd15bc0a65a8ec1b74b6a22fa37910a#file-notes-txt-L8


css spec uncertainty?

SS_specs4_rev2 refers to P description /* home page */ and P description /* collection page */. I am not sure what elements of the design these refer to. The blurbs below the thumbnails, perhaps? ... but the provided sample text is a whole paragraph of lorem ipsum, so that doesn't sound right.

Moot. Closing.


Update Nuget.Protocol

A fix for this issue has been released. See NuGet 6 release notes. Updating credprovider to latest NuGet.Protocol version. Should hopefully fix issue #250

@levimatheri, what testing have you done? have you repro'ed the issue and see if this update fixes it?

@jiaw37 Okay not really sure about this anymore. I tested locally and upgrading the version doesn't fix it. But seems the problem lies with the credentialProvider. See this issue


change run to submit

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e61e8b7) 91.48% compared to head (7dbdf2c) 91.48%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   91.48%   91.48%
=======================================
  Files           2        2
  Lines          47       47
=======================================
  Hits           43       43
  Misses          2        2
  Partials        2        2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


MM-9801 Update mattermost-redux and handle perf changes

Summary
Not sure what all the additions to yarn.lock is about, I just ran yarn upgrade mattermost-redux so I assume it's correct.
Ticket Link
https://mattermost.atlassian.net/browse/MM-9801

The yarn.lock changes are probably from adding flow to the redux repo. The last time I updated redux in the mobile app, it brought a lot of them over as well


fill_tree latest first?

Been trying to figure out how to get a comment tree with the root comments order_by('-submit_date').
If I sort the comments first, I get dups of the comments that have children.
Any ideas?  Tips? Hints?
I'll report back when I got a solution.  Or not...

Ok, got something that works (I think).  Stolen from legacy_threadedcomments:
https://github.com/bhaugen/nova/blob/master/threadedcomments/util.py

If anyone can provide a good pull request, I'd be happy to accept it.
I've seen some work in our network (https://github.com/fsboehme/django-threadedcomments/commit/fafde850728a99303c9c5b6c7d5f5b5ee7b8d85f) but someone has to complete that so we can merge it!

There is now a latest flag support for the template tags in v1.1