text:
Problem with Gadget2 evolve_model

I am evolving the same set of sph particles up to the same time but in different chunks of time, using Gadget2.
The total wall clock time increases dramatically for very small chunks of time, which only makes sense to me if
somehow the timestep for Gadget2 particles is determined based on the time you give to the 'evolve_model()' function.
I am attaching the script to reproduce the issue. This does not occur with ph4.
Some idea of whats going on?
Thanks,
Bastián
gadget2_test.txt

Hi @ReinosoB,
You're comparing Gadget2 (an SPH code) with ph4 (an Nbody code). ph4 won't do any SPH calculations, so it will certainly be faster (also note that the "plummer gas sphere" initial conditions intentionally set the velocity of all gas particles to 0).
If you have regions with high density (which is likely for a Plummer model - which isn't initialised with equal density), the time it takes to evolve the model will definitely increase, certainly when you get close to one free-fall time.
evolve_model(time) will integrate from the current time of the code (model_time) until time. I'm not sure why you use increasingly short timesteps in your script?
One suggestion I would have is to use a time quantity as one of the variables for your converter (instead of mass or position), and to then always use factors of 2 of that time to determine the timestep. Also, depending on what you are attempting to simulate, you may prefer using the 'molecular cloud' initial conditions (as found in one of the textbook examples) to the Plummer gas model.

Hi @rieder,
Many thanks for your answer.
I did not compare Gadget2 with ph4, I did a similar experiment using ph4 (but using different initial conditions, better suited for an Nbody code).
The point I wanted to make here is that Gadget2 makes use of individual timesteps and so I would expect that evolving the same set of particles to the same final time, but in different chunks (if you want for example more frequent snapshot output), should
not have this impact in the integration time, or am I missing something important here?
I am going to try your suggestion. Thanks again for your reply.

you can check more carefully what is going on with passing the redirection="none" option to Gadget2 (at instantiation). For the small timesteps, the code is indeed not evolving for most of the evolve calls. Apperently there is some overhead in a "empty" evolve call...its a bit more than I would expect...
btw, you have to be careful setting the timestep parameters (max_size_timestep, and time_max) ie its a good idea to set your max_size_timestep to the timestep you want to have in the script and time_max some power of two multiple of that bigger than the eventual time you want to reach...

closing as substantially solved

authors: ReinosoB ipelupessy rieder

repo: amusecode/amuse


text:
WIP: JS style promise

This is a WIP (so everything is in a single file). I've been working on it on and off. I want to make a proposal, show some PoC and maybe have some feedback.
I find myself often annoyed by sql->execSqlAsync(). I It forces one to write both handlers for the success and failure case. And it causes the parameters to be at the end of the parameters list. Which may not even be on the same screen as the SQL query.
auto sql = app().getDbClient();
db->execSqlAsync("SELECT some_val FROM some_table WHERE some_val = ?;"
 [](...){ // Theses two callback may be tens of lines long
    do_more_stuff();
 },
 [](...){
 },
 the_parameters_are_here // The parameter is at the end, where the SQL queries may not be on the same screen
);

I understand these are limits imposed by C++ templates. Therefor I propose a JS style future pattern. Using some template magic
auto sql = app().getDbClient();
db->execSqlFuture("SELECT some_val FROM some*table WHERE some_val = ?;", the_parameters_are_here)
  ->then([](...){
    do_more_stuff();
  })
  .except([](...){
  });

Performance wise, it is slightly slower than the current callback. Making a JS style future makes an extra heap allocation and it stores the results if the results are available before the callback is assigned. It also does it's own lifetime management, which I think is suboptimal. Tho I'm not sure if I can improve on it.
Further changes are needed:

[ ] For now required C++17. Drop it to C++14
[ ] Make binding the future to a callback easier
[ ] Generalize it to also handle HTTP callbacks
[ ] Document the API and changes
[ ] Write tests
[ ] Make it thread-safe. Preferably lock free
[ ] Cheaper lifetime management
[ ] Fix coding style
[ ] Better naming of functions and types

C++20's corotuein is arguably a better solution. But that's not wildly available yet. Let me know if this is a feature you'll want in Drogon. I'll put more time into it if there's interest.%

@marty1885 Thanks so much for your patch. And a patch for corotuein is also welcome, I think we can make a corotuein branch for it.

Thanks for the feedback. Updates will come later. It's difficult to get the semantics and syntax right,
I'll look into coroteins when I get GCC11.

I'm postponing this feature until I got corotuein working. Corotuein should be faster. And I can't find a good solution to emulate std::optional in C++14.

I'm postponing this feature until I got corotuein working. Corotuein should be faster. And I can't find a good solution to emulate std::optional in C++14.

Close in favor of #693

source: gharchive/pull-request

repo: an-tao/drogon

license: MIT

license_type: permissive

license_source: github-api


text:
feat(CMSIS,Examples,PeriphDrivers)!: Add MAX32665 Dual Core example and Core 1 CMSIS updates

Description
This change only impacts the MAX32665.
This PR organizes the CMSIS files for Core 1 and adds a dual core example. Core1 was not properly set up when the MAX32665 SDK files were initially committed into the MSDK.
There may be some breaking changes because some of the CORE1 files were relocated - I deprecated the old Core1 files that were moved to CMSIS. I also updated some of the function names to be more consistent - any duplicate core0 function name that needs to be supported for core1 will use the _Core1 suffix.
Checklist Before Requesting Review

[x] PR Title follows correct guidelines.
[x] Description of changes and all other relevant information.
[ ] (Optional) Link any related GitHub issues using a keyword
[ ] (Optional) Provide info on any relevant functional testing/validation.  For API changes or significant features, this is not optional.

MAX32665 isn't covered by the ble examples workflow. Just ignore the issue.

just for a note: this PR only adds the example for the MAX32666 EVKIT 514fc1a
Shouldn't it be added the the FTHR board as well?

Have not tested this on the featherboard yet (but it should still work). I'll test on the featherboard and then update its board files for it.

Works on FTHR.

authors: EricB-ADI sihyung-maxim

repo: analogdevicesinc/msdk


text:
Left Nav Truncated

Now that the number of articles on the site has grown, the left nav appears to be truncated, I no longer am able to articles under the data visualization section.

Changed the CSS to fix it

Your changed messed something up in your article. I fixed the unicode errors, but your article doesn't render correctly (and I can't figure out why)

I will have a look at it, if i am at home. Currently at the zoo.

The left nav problem is fixed, and the article had the wrong template assigned.

source: gharchive/issue

authors: 33sticks oarsi randyzwitch

license: mit

license_source: bigquery


text:
Adding validations for body of request.

Feature Request

Adding validation for body/query params of express:Request.

Advantages

Surety of client-side data we are working with.
Prevention from various types of attacks including cross-site scripting, command injection, etc

Implementation

I would like to work on this issue. Can you please assign this issue to me?
There are a number of npm libraries to implement this Joi, Yup, express-validatior, validatorjs etc.

Additional Context

OWASP - NodeJs Security
OWASP - Input Validation Guidelines

Update: our API endpoints are now inside pages/api.

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @

repo: anandbaburajan/Kukkee


text:
Update 03.variable.md

在 03变量 #问答题 里多了一个问题：msg.sender 和 tx.origin 有什么区别？
这是我看视频教程03-07时，突然想到的问题， 不知道您有没有在其他的位置写过这个问题。

如有问题请提交 Issues

repo: anbang/professional-solidity


text:
IPv4 CIDR Block

Hi
This project is no working in my Oracle instance (with Ubuntu 20.04). I was wondering if it is related with the IPv4 CIDR Block. I have assigned 10.0.0.0/24 but the setup use the range 10.66.66.*.
Should I modify the setup file? In that case, How do I start again the full installation? Because when I enter setup again it only adds a new client rather install the whole project from scratch.
Thank you!

Have you opened the ports as mentioned on point 10?
You need to remove the wireguard dir by running sudo rm -rf /etc/wireguard to re-run the setup file.

Thank you for your quick reply. I have opened the mentioned ports.

Change DNS port in wireguard client config to 1.1.1.1and see whether you are able to connect to the internet. If it works fine, the wireguard is working fine and the issue is with the pihole or the firewall. If you are unable to connect to the internet, then wireguard itself fails.
If it's too complex you can use tailscale instead of wireguard. It would be easy to setup, you need to add the server's IP as DNS in tailscale. The only problem with tailscale is excess battery drain on mobile devices.

Win the DNS 1.1.1.1 I can navigate on internate but I'm not behind the VPN.  I will try tailscale. Thank you for your kind support.

authors: Drtatom anbuchelva


text:
ReadMe file needs the badge status

Connect with Travis and put the badge.
Meanwhile your application is lacking tests. Please test all the features using the simple and easy Laravel Integrated testing

Alright, I'm fixing this asap.

Badge now exists. Tests are present as well.

Fixed.

authors: andela-doladosu unicodeveloper

repo: andela-doladosu/opencasts


text:
model file size?

Hello,
Thanks for sharing.
Would you happen to know the size of  "imagenet-vgg-verydeep-19.mat"  in bytes, I'm trying to transfer it to google cloud storage without downloading it first.
Thanks again.

510 MB

Thanks

authors: andersbll fakeInsights


text:
修复tfidf默认字典文件位置在web项目中报错的问题

按照wiki的说明：

nuget 下载
复制Resource文件夹到项目根目录下

在web项目中，

JiebaNet.Analyser.TfidfExtractor ext = new JiebaNet.Analyser.TfidfExtractor();
会报错。
而

JiebaNet.Segmenter.JiebaSegmenter seg = new JiebaNet.Segmenter.JiebaSegmenter();
正常。

原因是Analyser中默认的idf文件路径为相对路径，导致在web项目中找不到字典报错。
参考Segmenter项目，对ConfigManager的ConfigFileBaseDir 进行了修复。

@calmzealA 谢谢：）

nuget包还没更新吗？这个问题还在

authors: Webdiyer anderscui calmzealA


text:
Fix compilation for D2009> when no FastUniCodeData is defined

Patch for issue 241 as requested.

@mvancanneyt Pls revert this
{ $DEFINE FastUnicodeData}
because we need FPC version to be run with FastUnicodeData;
or you may add this
{$IFDEF FPC}
{$DEFINE FastUnicodeData}
{$ENDIF}

Pushed as requested

@andgineer Pls apply?

@mvancanneyt
{$IFDEF FPC} // Not supported in FreePascal
hmm

authors: Alexey-T mvancanneyt

repo: andgineer/TRegExpr


text:
Contributing

Should future humans want to make contributions to this project, hopefully having a CONTRIBUTIONS file will make it clear that we are open to suggestions and PRs! Also, some of the minutia of contributing (auto-docs, testing compile-time types, installing correct ts versions, commit linting) are not immediately obvious, so this provides the necessary information.
Also @Retsam, if you want to be a codeowner feel free! This way you should have access to make changes and accept PRs if I am slow to do so.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: andnp/SimplyTyped


text:
BUG: Fix Incorrect Splash Screen Display

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The splash screen currently displays incorrectly. This issue needs to be resolved to ensure the splash screen appears as intended.

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

please aasign this issue to me

repo: andoriyaprashant/OpSo


text:
A wired bug caused by the database name

Hello,I worked on Android platform with Android Studio.
I named my sqlite database as "my.db" and run my react-native program to the physical phone(Android 5.1),when I try to operate the database(open and excute sql),it give me an error "no such table tableName". It very confused me since I have follow the step of adding a database and operating it.
But when I renamed the database file from "my.db" to "mydb",it worked well when I open and excute sql!
I also have found that If I name the database file as "my.db" ,I need to uninstall the react-native app from my phone and re-install it so it can work well.
Please find out that whether it is a bug or not.Thanks.

i have not seen any issues where a db name would cause any kind of issue. There was probably something else at play in your setup.

authors: Symous andpor

repo: andpor/react-native-sqlite-storage


text:
Initial Steps Towards MacOS

This PR fixes a Segfault on MacOS, and leaves a null ptr derefence in place at swapcontext -> no clue how to fix that one..

There is no imports.c but in build.rs println!("cargo:rerun-if-changed=src/imports.c");

authors: andreafioraldi domenukk

repo: andreafioraldi/klo-routines


text:
Port to Java?

Just figured out there's a Neovim API for Java: https://github.com/esensar/neovim-java
I'll check it out later for porting purposes.

Checked out neovim's official reference for java api and it is not working as expected. The last commit was two years ago.
I will implement the basic functionalities in Python and then work on a fresh neovim java api to start porting this plugin to java.
Feel free if anyone wants to do it meanwhile.

https://github.com/andreluisos/jnvim
Started developing it.

repo: andreluisos/nvim-javagenie


text:
@emmanuel789

@emmanuel789

hola Andres
en la abstracta te faltan métodos implementados
saludos


text:
Support for Freemium

Was wondering if you supported freemium - obviously with the idea that you don't need a CC number while on this plan but you would need one later.   Would this just be not having a subscription association?

I'm interested in this to! Any plans to implement? I could also be interested in sponsoring at least parts of this if need be.

Anybody who has the time and knowledge to make this happen? Again - I would be interested in paying real money to make it happen.

@alydersen Send me an email (christoph@[$DOMAIN_I_OWN]) and we can look this through

Thanks Christoph! I've sent you an email yesterday, but not 100% percent sure I have the right address. Let me know if you have not received it.

I encountered the same issue as @mattkantor in development, but not in production. My fix was to change development.rb to have config.eager_load = true. I'm not sure I totally understand why, but maybe that sheds some light on the problem?

@alydersen did you make any headway with @yas4891? I'm also interested in a no credit-card-freemium flow

Me too, anything new here?

We ended up branching out and doing this ourselves.

@alydersen anything you can share?

Sure,
You should be able to see the last commits done by Joseph for us here in our fork:
https://github.com/elmatica/koudoku/commits/master

Thanks, looks easy.Is it also updated for latest Stripe API version?
Can't decide if I should write my own or use Koudoku. :/

Should be for the last API. We use Koudoku, but will stop doing that at some point later on in the development when we have more time to spend on it. Good luck!

@alydersen thanks for sharing that.  I added some small improvements as comments in Joseph's work.  Would be great if he could clean it up and submit a PR into Koudoku.

authors: TildeWill alydersen bsodmike emilkarl mattkantor yas4891

repo: andrewculver/koudoku


text:
🛑 nhcam is down

In f914891, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in ebdf0fd.

repo: andrewdavies-net/upptime


text:
🛑 nhcam is down

In e2003e0, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in fa9d13a.


text:
🛑 Gioia Git is down

In 8e6d490, Gioia Git (https://git.gioia.cloud/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gioia Git is back up in b07f119 after 12 minutes.

repo: andrewgioia/status


text:
edit_board removes previously edited stuff on the board

cus of the way i coded it, edit_board creates a new board instead of editing the board

its called "edit" board for a reason :bruhcat:

authors: MarzaElise andrewthederp

repo: andrewthederp/Disgames


text:
Integration with Vetur - getting hints in the parent component

Hey @andrewvasilchuk is there a way to get the type hints in the other way of the chain?
I mean, when I listen to the event in the parent component my payload is always any! Did you manage to get it working?
Where the event is actually implemented it works perfectly!
I've mentioned you here btw
https://github.com/vuejs/vetur/pull/2558#issuecomment-753612714

@bissolli Do you still need it? Vue have made a large progress with IDE hints in Volar. Also you won't need vue-typed-emit library in Vue 3 since it provides an ability to provide types of emits.

@bissolli Do you still need it? Vue have made a large progress with IDE hints in Volar. Also you won't need vue-typed-emit library in Vue 3 since it provides an ability to provide types of emits.

You are right Andrew, not needed anymore!
Thanks =)

authors: andrewvasilchuk bissolli

repo: andrewvasilchuk/vue-typed-emit


text:
Is it possible to align image ?

thanks for your hardwork, Is it possible to align image ?

Hi there,
Thank you for your interest! I've just added this feature :)
Now images and barcodes are centered by default, but you can also pass the align parameter for left/right alignment.
BTW, the PosTextAlign enum renamed to PosAlign. You have to rename it in your code if you are using it somewhere.
I hope it helps!
I'm going to close this issue, but feel free to reopen it if you have any further questions or ideas!

authors: andrey-ushakov kakzaki


text:
unable to set secure: true?

If I don't supply secure: true, does this mean authenticating to the smtp server over 587 won't be using STARTTLS or some secure channel?
I'm using gandi mail and this works:
var transporter = nodemailer.createTransport({
        "host": "mail.gandi.net",
        "port": 587,
        "auth": {....}
});

But when supplying the secure: true, I get an error returned:
routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:795

Do not use secure: true with port 587. This is a plaintext port, not SSL port.


text:
Extract Roborazzi utils into :roborazzi module

And cleanup unnecessary transitive dependencies.
Fixes #1161 (checkout for more details)

@dturner this PR is ready to be reviewed 🙇

Unfortunately, #1140 changed a lot of unrelated stuff, which makes this hard to rebase/merge.
I'll probably reset everything and force push new changes if they still apply.

@dturner, the updated review can be found here:

#1315

I'm closing this outdated PR.

repo: android/nowinandroid


text:
Exoplayer Dash with Clearkey Issue

I want to play a Dash video on my Android app with Clearkey but it does not work. To use the clearkey, I have to set the uuid as CLEARKEY_UUID when preparing the DrmSessionManager. The issue might be, in the Dash manifest, the default KID is not given with the "urn:mpeg:dash:mp4protection:2011". The KID is given with "urn:mpeg:cenc:2013" (See the example below). Is there a way to solve this?
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/> <ContentProtection xmlns:mspr="urn:microsoft:playready" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"><mspr:pro>5gIAAAEAAQDcAjwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4ANwAzAG8AOQBJAHQAbAA3AGgAbABKAHgANgBrAHQARwAzAHYAcgBOAEEAdwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBkAHUAcwBCAFkARgA4AGcARgBZAE0APQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBwAHIAbwBkAC4AdQBkAHIAbQB2ADMALgBrAGEAbAB0AHUAcgBhAC4AYwBvAG0ALwBjAGUAbgBjAC8AcABsAGEAeQByAGUAYQBkAHkALwBsAGkAYwBlAG4AcwBlADwALwBMAEEAXwBVAFIATAA+ADwATABVAEkAXwBVAFIATAA+AGgAdAB0AHAAOgAvAC8AdwB3AHcALgBrAGEAbAB0AHUAcgBhAC4AYwBvAG0APAAvAEwAVQBJAF8AVQBSAEwAPgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</mspr:pro></ContentProtection> <ContentProtection xmlns:cenc="urn:mpeg:cenc:2013" schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" cenc:default_KID="223d7aef-7bd9-5286-71ea-4b46defacd03"> <cenc:pssh>AAAAUHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADAIARIQIj1673vZUoZx6ktG3vrNAxoHa2FsdHVyYSIKMV93ZWVpeXk4dioFU0RfSEQ=</cenc:pssh></ContentProtection>

I think the DASH stream wants that this content is protected. I understand ClearKey wouldn't do that.
@icbaker Can you take a look whether this is feasible?

Preparing valid media is out of scope for this issue tracker, so I'm afraid we can't really help you with that. Does your DASH stream work with other players? There's other issues discussing how to get clearkey decryption working with ExoPlayer:

https://github.com/google/ExoPlayer/issues?q=clearkey
https://github.com/androidx/media/issues?q=clearkey

If you have specific questions about why a stream you believe to be valid isn't working with ExoPlayer please provide the information reuqested in the issue template (including clear repro steps).

Preparing valid media is out of scope for this issue tracker, so I'm afraid we can't really help you with that. Does your DASH stream work with other players? There's other issues discussing how to get clearkey decryption working with ExoPlayer:

https://github.com/google/ExoPlayer/issues?q=clearkey
https://github.com/androidx/media/issues?q=clearkey

If you have specific questions about why a stream you believe to be valid isn't working with ExoPlayer please provide the information reuqested in the issue template (including clear repro steps).

Yes, the stream is working fine with JW player using Clearkey.

I can you a sample stream with keys to check.

Closing due to inactivity (no media was received).

authors: icbaker marcbaechinger zhanshi123

repo: androidx/media


text:
Add custom styles

It would be nice if we can pass additional styles to the json viewer.
Because everything is rendered under a shadow-root, I couldn't make regular css style work.

The inability to override styles is by design. However, it is possible to completely override the colors.
{
  "--base00": "#101112",
  "--base01": "#1C1E1F",
  "--base02": "#26282A",
  "--base03": "#323639",
  "--base04": "#868A8E",
  "--base05": "#9DA0A2",
  "--base06": "#D2D5D7",
  "--base07": "#F1F2F3",
  "--base08": "#EF5253",
  "--base09": "#E66B2B",
  "--base0A": "#E4B51C",
  "--base0B": "#7CC844",
  "--base0C": "#52CBB0",
  "--base0D": "#33A3DC",
  "--base0E": "#A363D5",
  "--base0F": "#D73C9A"
}

For example:
<andypf-json-viewer theme='{"--base00": "#101112", "--base01": "#1C1E1F", "--base02": "#26282A", "--base03": "#323639", "--base04": "#868A8E", "--base05": "#9DA0A2", "--base06": "#D2D5D7", "--base07": "#F1F2F3", "--base08": "#EF5253", "--base09": "#E66B2B", "--base0A": "#E4B51C", "--base0B": "#7CC844", "--base0C": "#52CBB0", "--base0D": "#33A3DC", "--base0E": "#A363D5", "--base0F": "#D73C9A"}'>
  { "string": "this is a test ...", "integer": 42, "array":[ 1, 2, 3, "test",
  NaN], "float":3.14159, "string_number":"1234", "date": "Tue, Oct 17, 2023,
  08:58 AM" }
</andypf-json-viewer>

Here is the definition of variables:
--base00: Default Background
--base01 (unused): Lighter Background (Reserved for status bars, line numbers, and folding marks)
--base02: Borders and Background for types NaN, null, and undefined
--base03 (unused): Comments, Invisibles, Line Highlighting
--base04: Item Size
--base05: Default Foreground, Brackets, and Colons
--base06 (unused): Light Foreground (Infrequently used)
--base07: Keys, Colons, and Brackets
--base08: Color for NaN
--base09: Ellipsis and String Values
--base0A: Regular Expressions and Null Values
--base0B: Floating-Point Values
--base0C: Number Keys
--base0D: Icons, Search Input, Date
--base0E: Booleans and Expanded Icons
--base0F: Integers

I've updated the Readme:
https://www.npmjs.com/package/@andypf/json-viewer#customizations

Thanks for the reply. Actually what I want to do is override the style of the copy button, it currently causes the content to be resized when the button is visible on hover.

Closing this issue for now as it’s not a priority at the moment. However, it remains a valid idea and could be revisited in the future if needed.

authors: andypf tedypranolo

repo: andypf/json-viewer


text:
How to make inference on the test set with FiD Temporal?

Hi,
Thanks for sharing the great work!
I have a question regarding inference usage of the FiD Temporal model. In the paper, it says "For each day between the question’s open and close date, we generate an embedding of the top news article using the frozen fine-tuned FiD Static model. These embeddings are then treated as input embeddings to an autoregressive model (GPT-2 (Radford et al., 2019)), which is fine-tuned to predict the average of the daily crowd prediction and the ground truth outcome."  As far as I know, at test time, only the publishing date and the closing date are known. Then, how to apply FiD Temporal? Do you retrieve 10 articles / day throughout the entire time period, and make a prediction every day, then aggregate (average? max-pool?) predictions? Or just use the day before the closing date (which would make sense according to Figure 6)?

With the Temporal model we do get a prediction every day, but we discard them and only use the prediction on the day before closing.

Ok, thanks a lot for clarifying!

authors: Ravoxsg andyzoujm

repo: andyzoujm/autocast


text:
Bootloop framework.jar

@anestisb, After deodexing framework.jar for android 8.1 with vdexExtrator, my phone got bootloop. Can you tell what is/are the common cause?

Most of the time the issues were unrelated to deodexing but rather because of a missing app or configuration. This is outside the scope of this tool.

authors: anestisb vinzmhir

repo: anestisb/vdexExtractor


text:
Move icon from dock to menu bar

Description
right now the programm has to be open all the time and that takes a space in the dock bar
it would be nice if this icon can be removed and only have it shown on the top in the menu bar

Hello!
I would like to work on this issue, please assign me!

Hello @mulla028! Are you familiar with Objective C and/or macOS system programming?

@anfragment,
I’m not currently familiar with Objective-C or macOS programming, but I’m very enthusiastic about learning and contributing to this issue. As a student who regularly learns new programming languages, I’m confident in my ability to quickly pick up the necessary skills and deliver a solution. I’m committed to figuring everything out on my own, and I’d greatly appreciate it if you could assign this issue to me!

@mulla028 of course, I'd be glad to have your help! The reason I asked is that I previously tried implementing this by copying some code from the getlantern/systray repo. Unfortunately, it didn't work due to some naming conflicts with Wails's data structures during linking. I love your enthusiasm, though - best of luck if you decide to go the same path!
Before starting, please check out our getting started guide, it'll help you get up to speed with the project. If possible, try to replicate the functionality of the tray icon on Windows. Let me know if you need the icon in a specific format or color for placement in the tray, or if you have any other questions. 🫡

@mulla028 of course, I'd be glad to have your help! The reason I asked is that I previously tried implementing this by copying some code from the getlantern/systray repo. Unfortunately, it didn't work due to some naming conflicts with Wails's data structures during linking. I love your enthusiasm, though - best of luck if you decide to go the same path! Before starting, please check out our getting started guide, it'll help you get up to speed with the project. If possible, try to replicate the functionality of the tray icon on Windows. Let me know if you need the icon in a specific format or color for placement in the tray, or if you have any other questions. 🫡

Rahmet, @anfragment!
If I have any problems, I will definitely contact you!

@mulla028 of course, I'd be glad to have your help! The reason I asked is that I previously tried implementing this by copying some code from the getlantern/systray repo. Unfortunately, it didn't work due to some naming conflicts with Wails's data structures during linking. I love your enthusiasm, though - best of luck if you decide to go the same path! Before starting, please check out our getting started guide, it'll help you get up to speed with the project. If possible, try to replicate the functionality of the tray icon on Windows. Let me know if you need the icon in a specific format or color for placement in the tray, or if you have any other questions. 🫡

Rahmet, @anfragment! If I have any problems, I will definitely contact you!
Thank you for sharing sources, though!

@mulla028 of course, I'd be glad to have your help! The reason I asked is that I previously tried implementing this by copying some code from the getlantern/systray repo. Unfortunately, it didn't work due to some naming conflicts with Wails's data structures during linking. I love your enthusiasm, though - best of luck if you decide to go the same path! Before starting, please check out our getting started guide, it'll help you get up to speed with the project. If possible, try to replicate the functionality of the tray icon on Windows. Let me know if you need the icon in a specific format or color for placement in the tray, or if you have any other questions. 🫡

Rahmet, @anfragment! If I have any problems, I will definitely contact you!
Thank you for sharing sources, though!

@anfragment, Hello!
I've tried to implement it in multiple ways, using systray, trayhost etc... Every existing library that helps to implement it.
However, all of them are conflicting with wails v2. I even tried to fork systray and rename all conflict objects 😆
Question: May be you know the solution that wouldn't conflict with wails? I would appreciate any suggestion.
Now I am about to implement it in pure Objective-C integrating with Go lang

@anfragment another thing that I want to mention is that implementing it using Objective-C will require to rename the file manager_nonwindows.go to manager_macos.go. So these changes are macOS specific and the first line will be changed from //go:build !windows to //go:build darwin

Hello @mulla028!

May be you know the solution that wouldn't conflict with wails?

I was in a similar state of confusion during my attempts to make it work, so your guess is just as good as mine. :) As far as I remember, the linker itself doesn't provide much useful information on the source of the problem. I'd try looking for every identifier in the systray's code within the Wails codebase. Perhaps that will help us identify the source of the issue.

implementing it using Objective-C will require to rename the file

Indeed. You can rename the file to manager_darwin.go to avoid having to add a build tag to the top of the file.
From https://go.dev/wiki/TargetSpecific:

Remember that if a file ends in _$GOARCH.go, that counts as a build tag.

@mulla028 https://github.com/getlantern/systray/issues/261#issuecomment-1873491462

authors: TheMapleStreet anfragment mulla028

repo: anfragment/zen


text:
MIME type error

Hi -
I think this might have something to do with the latest Dartium update and the Issue #44 fix (that may need  to be re-opened.)
Fresh clone, trying to access 'localhost:3000' I get:
Refused to execute script from 'http://localhost:3000/packages/browser/dart.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Maybe I can disable strict MIME-type checking in the browser, but that's not a real fix.
Thoughts appreciated,
thanx,
rickb

It's nothing to do with the recent issue; this means that the response your server is sending when packages/browser/dart.js is requested is not a JavaScript file. I'm 99% sure that your server is rendering a 404/fallback page. And here's why...
A URL like /packages/browser/dart.js in the Dart world is served one of two ways:

pub serve handles this, and returns the contents of the file lib/dart.js in the directory where package:browser is found in your system's Dart cache.
You've run pub build beforehand, and it copied the file to /build/web/packages/browser/dart.js.

In case 1, you'll need to run pub serve along Angel. Also, ensure that you have a PubServeLayer configured, before any virtual directories, or fallback routes:
createServer() async {
  var app = new Angel();
  await app.configure(new PubServeLayer());
  await app.configure(new CachingVirtualDirectory());
  app.after.add(() => throw new AngelHttpException.notFound());
}

If you take a look at the Developer Tools, you'll see that the response to /packages/browser/dart.js was some sort of HTML fallback page.
You can also support pushstate routing: https://github.com/angel-example/push_state
Make sure to read the documentation about the request lifecycle; it's fundamental to using and understanding the Angel framework: https://github.com/angel-dart/angel/wiki/Request-Lifecycle

In case 2, ensure you have a VirtualDirectory or CachingVirtualDirectory running. It'll choose to serve from web or build/web for you by default. You can also explicitly set the source directory.
Read: https://medium.com/the-angel-framework/serving-static-files-with-the-angel-framework-2ddc7a2b84ae

Ok, I guess I don't understand.  I haven't run pub build, I'm just trying to serve it in developer mode.
I'm starting the server with dart --observe bin/server.dart (from the project root directory).
server.dart includes angel_note.dart which contains the createServer() invocation, and in that function, virtualDirectory() is invoked (line 124).
Are you saying that I need to run pub serve as well as dart --observe bin/server.dart?  Angel is not a standalone server?
I'm plowing through the documentation & will scour the points you reference.
thanx,
rickb

Angel is indeed a standalone server; therefore, it doesn't compile your client-side Dart assets. That's the job of pub serve. So, you have to run pub serve as well as dart --observe bin/server.dart.
The dart:io library has code to spawn processes, so if you'd like, you can add code that starts pub serve as a child process whenever the server starts.

Since we've determined that this isn't an issue with the framework, please join the Gitter chat to discuss it with me:
https://gitter.im/angel_dart/discussion

Oh, man -- I'm sorry.  This is for the 'Angel Angular' example.  Somehow I wound up in the Angel itself.

It's all good.

authors: rickbsgu thosakwe

repo: angel-dart/angel


text: cabecalho

repo: angelabortoli/Planejamento


text:
Ensure cell clustering process can be run with a variety of cluster types

For future reference
Use draw.io for flowcharts lol.
Relevant background
The cell clustering pipeline currently only supports pixel clusters generated from 2_Pixie_Cluster_Pixels (pixel_som_cluster or pixel_meta_cluster_rename). This has worked fine because 3_Pixie_Cluster_Cells is designed to run immediately afterwards.
However, increasingly users have needed to run cell clustering on inputs outside of pixel clustering. The cell clustering pipeline will need to be generalized in order to support this.
Design overview
Generalizing cell clustering will require changes to multiple components.
We're currently presetting the following variables using cell_clustering_params saved from 2_Pixie_Cluster_Pixels:

fovs
channels
segmentation_dir
seg_suffix
pixel_data_dir
pc_chan_avg_som_cluster_name
pc_chan_avg_meta_cluster_name

We should still provide support for this, however we should also give the user flexibility to use custom inputs.
Pixel SOM input data (pixel_data_dir)
Currently, the input data to train the SOM is generated using a helper function. However, the user will need to be specifying this data on their own.
The pixel clustering SOM input data is formatted as such:

cell_size
fov
segmentation_label
pixel_som_cluster_0
pixel_som_cluster_1
...

...
fov0
0
...
...
...

...
fov0
1
...
...
...

...
...
...
...
...
...

For the purposes of generalizability, we can replace columns pixel_som_cluster_0, pixel_som_cluster_1, etc. with user_defined_col_0, user_defined_col_1, etc. Users will need to provide data that contains, at the very least, the fov, segmentation_label, and these user defined column data.
Because we can no longer assume a constant naming scheme, we should instead infer these column names by dropping the first n values or so. How many columns will be attached at the beginning will be a topic for further discussion.
This change will mean that if the full Pixie pipeline is run, the cell SOM inputs should be created by 2_Pixie_Cluster_Pixels instead. In this manner, a user can plug this file into 3_Pixie_Cluster_Cells just like they would if custom inputs were provided. A consequence of doing this is the example dataset will need to be changed to reflect this new process.
Cluster channel average expression file
If the user is providing generalized inputs, they should not be required to provide this file, as this is based on pixel clusters only and has no reasonable interpretation outside of this context.
Cell clustering params (full Pixie)
If run as part of the full Pixie pipeline, this file is saved at the end of 2_Pixie_Cluster_Pixels and is needed for 3_Pixie_Cluster_Cells. This will need to be modified to reflect the new process.

Instead of a pixel data directory, it should be a path to the file containing the data to run cell clustering on. This will require generating this data in the pixel clustering notebook, which we have a function to do already.
Instead of a list of channels, a list of columns to subset on should be provided. This can be inferred by the pixel cluster column the user wishes to aggregate on.
Additionally, we'll need to add the weighted channel file path here (notebook will also need to generate this prior). This is needed because this file is specific to pixel clusters and doesn't have a great interpretation for other types of clusters.

This file should still contain the full list of FOVs, the segmentation directory, and the segmentation suffix used.
Cell clustering params (starting with cell clustering)
Users should not be required to make their own cell clustering params file for this step. Instead, users should skip this step and be allowed to generate one on their own.
Instead, users should instead provide the path to their custom data, formatted like the table above. From this file, we can infer their list of FOVs and the columns to subset on (throwing an error if the data doesn't follow a consistent column naming scheme). Users will still need to provide a segmentation directory, segmentation suffix, and cell table path on their own. They will not, however, need to specify a weighted channel average path.
Code mockup
Pixel clustering file generation
To support the new input data format, we should move the generation of the cell SOM inputs based on pixel clusters to this notebook. We'd need to make a similar call to create_c2pc_cell_data here instead of at the beginning of train_cell_som. This will happen after the overlay visualization of the pixel clusters:
One thing this will require is for the user to define their cell table path and desired pixel cluster type to aggregate on (SOM or meta) defined beforehand. This should be fine, we'll just add these as variables the user sets in this section (cell_table_path and pixel_cluster_col), which then get added as params to the cell clustering params generated. When we generate the cell SOM inputs and save them, we should then also add the path to this file to the cell clustering params (cell_som_input_name, this should always be in base_dir).
# user will set variables cell_table_path, pixel_cluster_col, and cell_som_input_name prior

cluster_counts, cluster_counts_size_norm = create_c2pc_data(
    fovs, pixel_data_dir, cell_table_path, pixel_cluster_col
)

# define the count columns found in cluster_counts_norm
cell_cluster_columns = cluster_counts_size_norm.filter(
    regex=f'{pixel_cluster_col}.*'
).columns.values

feather.write_dataframe(
    cluster_counts_size_norm,
    os.path.join(base_dir, cell_som_input_name),
    compression='uncompressed'
)

cell_clustering_params['cell_cluster_columns'] = cell_cluster_columns
cell_clustering_params['cell_table_path'] = cell_table_path
cell_clustering_params['pixel_cluster_col] = pixel_cluster_col
cell_clustering_params['cell_som_input_path'] = cell_som_input_name

An additional caveat is the need for the weighted cell channel data specific to pixel clustering. This can be generated by making a subsequent call to create_p2c_weighted_channel_avg after create_c2pc_cell_data with the unnormalized version of the SOM inputs passed as an argument. After saving, we can then add the path to this weighted cell channel data to the cell clustering params:
# user will be setting variables pixel_cluster_col and weighted_cell_channel_name prior,

# depending on which pixel_cluster_col is selected, choose the pixel channel average table accordingly
if pixel_cluster_col == 'pixel_som_cluster':
    pc_chan_avg_name = pc_chan_avg_som_cluster_name
elif pixel_cluster_col == 'pixel_meta_cluster_rename':
    pc_chan_avg_name = pc_chan_avg_meta_cluster_name

weighted_cell_channel = compute_p2c_weighted_channel_avg(
   pixel_cluster_channel_avg, channels, cluster_counts,
   fovs=fovs, pixel_cluster_col=pixel_cluster_col
)

feather.write_dataframe(
    weighted_cell_channel,
    os.path.join(base_dir, weighted_cell_channel_name),
    compression='uncompressed'
)

cell_clustering_params['weighted_cell_channel_name'] = weighted_cell_channel_name

The final cell_clustering_params.json file generated should look like:
{
    'fovs': io_utils.remove_file_extensions(io_utils.list_files(os.path.join(base_dir, pixel_data_dir), substrs='.feather')),
    'cell_cluster_columns': cell_cluster_columns,
    'segmentation_dir': segmentation_dir,
    'seg_suffix': seg_suffix,
    'cell_table_path': cell_table_path,
    'pixel_cluster_col': pixel_cluster_col,
    'cell_som_input_path': cell_som_input_path,
    'weighted_cell_channel_path': weighted_cell_channel_path
}

Note that users who choose to run this notebook without segmentation data should stop prior to these steps, as they cannot run cell clustering without it!
Loading/setting the cell clustering inputs
This particular section will need to accommodate two cases: the user who runs this as part of the full Pixie pipeline, and the user who starts directly from cell clustering.
The variable cell_clustering_params_name should now contain the path relative to base_dir (and not the path relative to pixel_output_dir, since this should no longer be required) if the user is running this after pixel clustering. For users starting directly from cell clustering, it should be set to None.
cell_clustering_params_path = 'path/to/params/file # set to None if starting directly from cell clustering

with open(os.path.join(base_dir, "pixie", pixel_output_dir, cell_clustering_params_name)) as fh:
    cell_clustering_params = json.load(fh)

Without a cell parameter path, the user will need to specify the path to their input data directly:
input_data_path = None # manually set this to your own path if not using cell_clustering_params
weighted_cell_channel_path = None # it will be fine to leave this to None for users running starting directly at cell clustering

if cell_clustering_params:
    input_data_path = cell_clustering_params['cell_som_input_path']
    weighted_cell_channel_path = cell_clustering_params['weighted_cell_channel_path']

The following can be used to set the fovs and cell_cluster_columns
if cell_clustering_params:
    fovs = cell_clustering_params['fovs']
    cell_cluster_columns = cell_clustering_params['cell_cluster_columns']
else:
    input_data = pd.read_csv(input_data_path)
    fovs = input_data['fov'].unique() # the input_data must contain this column
    cell_cluster_columns = # drop just the first n columns and retrieve the remaining

Finally, the user will still need to set the segmentation label and segmentation suffix directly if starting from cell clustering
segmentation_dir = None # set this to your own value if needed
seg_suffix = None # set this to your

if cell_clustering_params:
    segmentation_dir = cell_clustering_params['segmentation_dir']
    seg_suffix = cell_clustering_params['seg_suffix']

The above snippets can be combined into one or two cells, though we'll have to be very clear to the user about which arguments they need to set on their own (if running cell clustering from scratch) and which they can allow the notebook to set for them.
Changes to the cell clustering process
These changes will be less significant:

We will no longer need to make a separate call to create the cell SOM data in train_cell_som
The pixel_cluster_col/pixel_cluster_col_prefix arguments were used to subset columns. Now, we should just pass in the full list of columns instead (defined in the notebook). Also saves us a lot of hassle from having to directly filter on the DataFrame ourselves.
Because users who start at cell clustering won't have a weighted cell channel average file, they cannot generate any cell SOM cluster average data from cell_som_cluster_channel_avg. We'll need to add conditionals to ensure this doesn't happen.
As a direct consequence of point 3, we won't be able to visualize the weighted channel expression heatmaps if users don't have anything from notebook 2. We'll just have this display a filler message instead.

Example dataset changes
The example cell_clustering_params.json file will need to be changed to ensure the new parameters are represented. Additionally, we'll need to provide an example input_data file which will now be generated directly by pixel clustering. This can probably just be the cell SOM input data the example dataset for notebook 2 will create once that code gets put in.
Notebook test changes
These will need to be updated to account for the new cells that will be created.
One key aspect of consideration is that notebook 3 will need to be tested with and without the full Pixie pipeline (i.e. with or without a cell_clustering_params.json file). We'll need to parametrize this.
Updated function testing
Most significant change here will be ensuring we define the full set of columns to pass in place of pixel_cluster_col_prefix. Additionally, conditionals where weighted_cell_channel_avg needs to handle the None case will also need additional testing.
Required inputs
2_Pixie_Cluster_Pixels
If running with segmentation labels, the user will need to define their cell table path, pixel cluster column, desired name for the cell SOM input data, and desired name for weighted cell channel data.
3_Pixie_Cluster_Cells
The existing cell_clustering_params.json will work if running as part of the full Pixie pipeline.
If running directly from this notebook, the user will need to define the path to their input data, as well as their segmentation directory and segmentation suffix.
Output files
2_Pixie_Cluster_Pixels
This will now generate the cell SOM input data and weighted cell channel average file on top of the cell clustering parameters file.
3_Pixie_Cluster_Cells
Same as before. Heatmaps will not be displayed outside of a Pixie pixel cluster context.
Timeline
Give a rough estimate for how long you think the project will take. In general, it's better to be too conservative rather than too optimistic.

[ ] A couple days
[ ] A week
[X] Multiple weeks. For large projects, make sure to agree on a plan that isn't just a single monster PR at the end.

Estimated date when a fully implemented version will be ready for review:
End of January.
(I'll have the code without tests done earlier if Lorenz needs it before then)
Estimated date when the finalized project will be merged in:
End of January

@ngreenwald @JLrumberger let me know if this looks good!

@cliu72, the goal here is to use the Pixie pyflowSOM logic to cluster cells, and then the GUI to reassign cells, for multiple input types, not just pixel clustering. The immediate use-case is Lorenz, but in general I think it would be useful to have this ability. There are a couple options:

We make these changes to ark, so that the Pixie notebook 3 for cell clustering is set up to handle multiple input types, with prompts guiding the user for which ones are relevant
We make these changes, but not until after pinning a version for your paper that doesn't include them. For example, if you think this would distract the reviewers, or potential users who click on the code link from your paper, we can make a version that keeps things as is and doesn't reference other input data types.
We make these changes under the hood, but we never update the Pixie cell clustering notebook in ark to reflect them. Instead, we have an entirely separate notebook for generic cell clustering that walks through the pipeline, and the Pixie notebook 3 remains the direct follow-up to notebook 2.

As I typed these options out, I'm a bit leaning towards option 3, where we make like a notebook 3b, call it Pixie Cell cluster only (or something that rolls off the tongue better), to keep the logic isolated. But I can imagine any of these options working, it's up to you

I agree with you @ngreenwald, I favor option 3. I think option 1 (basically what Alex has outlined here) would confuse people who read the paper and then go to try it out (basically what you wrote in 2 above). I think it would be confusing that some inputs (ex. pixel cluster average file) and outputs (ex. weighted expression heatmap) would no longer be relevant, depending on the input. I think it's better to contain pixel-based cell clustering in its own notebook (at least for now, while the paper is getting out there). I think 2 is an okay option too, but relies on the user to make sure they're referencing the write pinned version of the code. I think 3 is the cleanest/least confusing.
@alex-l-kong Regarding this part "Because we can no longer assume a constant naming scheme, we should instead infer these column names by dropping the first n values or so. How many columns will be attached at the beginning will be a topic for further discussion." - I think you can just require the user to specify the column names they want (kind of like how we ask the user to specify the channels they want in the pixel clustering notebook). It seems cleaner than trying to drop some arbitrary number of columns.

Okay, sounds good. Alex, can you update the design doc to reflect this? We'll still move the pixel clustering aggregation step out of the cell_clustering function and into the pixel notebook, but we won't need logic throughout the cell clustering notebook that deals with reading input data of different types, controls what plot types, etc.
It may be the case that you want to change the API for the cell clustering function to make it easier to handle different input types, but within each notebook, the argument should be pre-populated so that the user doesn't need to deal with it.

Why is the pixel clustering aggregation step going to be moved into the pixel notebook? I thought one of the advantages of separating them is that you don't need segmentation masks or a cell table to run the pixel clustering notebook - and that the pixel and cell parts are separate.

You're right, we need to remove it from the main train_som function, but it actually makes more sense keep it in the cell clustering notebook, rather than the end of the pixel clustering notebook.

@ngreenwald @cliu72 ok we'll go with option 3, that's actually a huge relief 😅. Definitely has a much more intuitive workflow.

Agreed. Tag us once you've updated so we can confirm, then should be good to go

@ngreenwald @cliu72 @JLrumberger updated the design doc to reflect a new notebook for generic cell clustering. Also moves preprocessing of Pixie cell SOM inputs and weighted cell channel file to the Pixie cell clustering notebook.

Any function that takes weighted_cell_channel_name should support a None value for this param. Generic cell cluster inputs will not have a good interpretation for average weighted channel expression which is specific to pixel clusters. When these functions are called from notebook 3b, they should set this param to None, causing the average channel expression computations to be skipped

Which functions are these? If they don't need to be run at all for 3b, can we just remove them? Or are there examples that perform multiple tasks, only one of which depends on the weighted channels?
In order to break this into smaller pieces, I think the first PR should just tackle the changes to the existing notebook 3, pulling out the computation from the main training loop into a preprocessing helper. Then, branching off that PR, you can open subsequent ones to address the additional notebook.

@ngreenwald they're functions that perform multiple tasks, one of which depends on the weighted channels.
Agreed that the existing notebook 3 changes should be handled first. We can address how to handle the weighted channels computations in the PR that adds the new notebook.

This looks good to me

#892 has addressed this. However, #850 may still have have pending issues (ex. turning off normalization for overall abstraction process).
Can we close this one and leave #850 open?

sounds good

authors: alex-l-kong cliu72 ngreenwald

repo: angelolab/ark-analysis


text:
Add ClientAO project to angolaosc-mentorship

Added ClientAO project to angolaosc-mentorship

@antonio-nicolau tem uns conflitos ai, podes rebater o teu fork?

Dei os updates finais 🙂

repo: angolaosc/mentorship


text:
feat: convert Navigation component to Analog SFC

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/ngneat/transloco/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: part of #247
What is the new behavior?
Navigation and App are now Analog SFC
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Thanks @nartc! I was about to create an issue for the community to contribute as there was a refactoring opportunity for people willing to contribute. Awesome to get it with analog authoring format!

I'm going to investigate, serving the app locally works as expected but there are some regressions on production (forms missing and burger menu not visible on small screens):

Broken content is all about PrimeNG components.

authors: geromegrignon nartc

repo: angular-sanctuary/angular-hub


text:
Nested results in typeahead

I need typeahead to show nested results (2 ng-repeats) with a custom template. Is there some way to do it?

One could implement this via overriding of the typeahead-popup template and creating a custom set of directives.
Otherwise, this is a little complex of a feature for this library to have baked in & not something likely to be used widely, thus we would not want to support this in the library itself, but allow users to extend it to support this.

authors: AlexCppns wesleycho

repo: angular-ui/bootstrap


text:
Progressbar type property updates conflicts with ngAnimate causing no animation

When ngAnimate is imported updating a progress bar value and type at the same time results in the progress bar not animating.  Here is an example
http://plnkr.co/edit/uZr9XqsUgyT4sjDTKhLS?p=preview
It seems the best way to fix this is by this by removing ngCass from the bar templates and just update the bar element class directly in the directive.  I will create the pull request if this seems like a reasonable approach.

@chrisirhc what do I need to do to get this out of purgatory?  :smiley:   This is still an issue with 0.12.0

It looks like this was a bug in AngularJS 1.2 . This is now fixed if you upgrade to AngularJS 1.3 . Since our next release (0.13) moves support to AngularJS 1.3 and above, this issue won't be valid once the 0.13 is released.
Reference Plunker with AngularJS 1.3: http://plnkr.co/edit/VNXiMsLlmqAhOwgy7Agt?p=preview
For AngularJS 1.2 users, an alternative fix is to insert the following style in your stylesheet:
.progress-bar.ng-animate {
  -webkit-transition: 0;
  transition: 0;
}

Reference Plunker with CSS fix: http://plnkr.co/edit/SAb7P6jcDtcvALL9Ll00?p=preview

This issue seems to be back with the newer Angular versions ( tried 1.4.3 & 1.4.8)
See Plunker

authors: JuustoMestari chrisirhc rgaskill


text:
Tooltips not clearing hover state Safari (OSX)

Angular version 1.4.9
UIBS version 1.1.2

The issue is when you hover over an element with a tooltip and then move your mouse to hover over another element, that is positioned closely above the first, that also has a tooltip; the directive does not clear the hover state from the originally hovered element.
Plunker: http://plnkr.co/edit/BPWlKzeuessskaMJTf3s?p=preview
This is only happening in Safari. 9.x (OSX 10.11.2)
Repo Steps:
Starting from the bottom of the lists in the plunker, move your mouse up and down them, over the "action" links. Notice that the background sometimes does not change to the correct color.

I'm not seeing this on 9.0.3...what version is your Safari? My OS X is 10.11.3.

I see this with Safari 8.0.0 (I should probably update!) and OSX 10.10.5 (again I should update).
Just wanted to post the info.

I am using 9.0.3 on OS 10.11.3. I can make a screencast if needed.

Can you try this with a tooltip-popup-delay="250"?  The default is 0 and can be overridden $uibTooltipProvider.  We may want to consider setting the default to something higher than 0.

I think I misunderstood the original issue when I first looked at this - this is certainly a bug, but a very strange one.

I'm not sure how much we can do about this - this looks like a bug in Safari itself.

@wesleycho yeah. I did try changing the tooltip-popup-delay to no avail. I am sorry, I forgot to post the results here (that was quite some time ago).

Not a problem - unfortunately, I don't think there is anything we can do, as this looks like it is browser specific in a way that has no easy resolution.
I think the best we can do is to add a note in the Known Issues section of the documentation for the tooltip.

authors: RobJacobs deeg red2678 wesleycho


text:
Popover not showing with only text

When i have a popover with text only it doesn't show up..
But....
When i place a template to it, they both show up.

Am i doing something wrong or is the code broken?

simple plunker could be good idea to see if you are doing wrong or not.

Okay, i know rwhat it is now.
When i put the tag in a ng-include, the whole shabam isn't working. But when i click on the text... the popover shows up suddenly.

Please post a reproduction in Plunker - this was listed in the issue template for a reason. This is not a support tracker, but one for posting verified bugs or feature requests.

It was caused by ng-if. I will close the issue

authors: abides rickerd wesleycho


text:
ui-sref with nasted ng-repeat error k is null!

Dear,
I am new to angularjs and consediring it as main framework for my project.
in my project i have to draw a menu of (system functions aka links) which is provided via json server from the server in this format:
[code]
[{"OBJECT_ID":"13","OBJECT_PARENT":"4","OBJECT_NAME":"Test3","OBJECT_TYPE":2,"OBJECT_COMMAND":"test3.xhtml"},
{"OBJECT_ID":"3","OBJECT_PARENT":"3","OBJECT_NAME":"Broadcast","OBJECT_TYPE":1,"OBJECT_COMMAND":"news.html"},
{"OBJECT_ID":"6","OBJECT_PARENT":"1","OBJECT_NAME":"Users","OBJECT_TYPE":2,"OBJECT_COMMAND":"users.html"},
{"OBJECT_ID":"2","OBJECT_PARENT":"2","OBJECT_NAME":"Search","OBJECT_TYPE":1,"OBJECT_COMMAND":"search.html"},
{"OBJECT_ID":"5","OBJECT_PARENT":"1","OBJECT_NAME":"Modules","OBJECT_TYPE":2,"OBJECT_COMMAND":"modules.html"},
{"OBJECT_ID":"4","OBJECT_PARENT":"4","OBJECT_NAME":"Printable Results":1,"OBJECT_COMMAND":"reports"},
{"OBJECT_ID":"7","OBJECT_PARENT":"1","OBJECT_NAME":"Groups","OBJECT_TYPE":2,"OBJECT_COMMAND":"groups"},
{"OBJECT_ID":"9","OBJECT_PARENT":"2","OBJECT_NAME":"Search Keywords","OBJECT_TYPE":2,"OBJECT_COMMAND":"KEYWORDS"},
{"OBJECT_ID":"12","OBJECT_PARENT":"4","OBJECT_NAME":"Test2","OBJECT_TYPE":2,"OBJECT_COMMAND":"test2/servlet?test=true"},
{"OBJECT_ID":"11","OBJECT_PARENT":"3","OBJECT_NAME":"Archives","OBJECT_TYPE":2,"OBJECT_COMMAND":"newsArchive"},
{"OBJECT_ID":"8","OBJECT_PARENT":"2","OBJECT_NAME":"Repository","OBJECT_TYPE":2,"OBJECT_COMMAND":"searchSites"},
{"OBJECT_ID":"10","OBJECT_PARENT":"3","OBJECT_NAME":"News","OBJECT_TYPE":2,"OBJECT_COMMAND":"news"},
{"OBJECT_ID":"1","OBJECT_PARENT":"1","OBJECT_NAME":"Preferences","OBJECT_TYPE":1,"OBJECT_COMMAND":"sys"},
{"OBJECT_ID":"14","OBJECT_PARENT":"4","OBJECT_NAME":"Test 4","OBJECT_TYPE":2,"OBJECT_COMMAND":"test4.jsf"}]
[/code]
and i have created a controller like this in my app:
[code]
angular.module('enotice').controller('populateMenu',function ($scope,$http){
$http.get('MyServiceName?get_menu').
success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
$scope.menu = data.menu;
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
console.log('error in populateMenu:'+data);
});
});
[/code]
and finally created a templated (based on bootstrap stylesheet) like this:
[html]

{{row.OBJECT_NAME}}-{{row.OBJECT_ID}}

{{subRow.OBJECT_NAME}}

[/html]
and when i load the page it draws the menu correctly but in firebug it shows this error:
Error: k is null
h@http://localhost/MyApp/js/ui-router/angular-ui-router.min.js:7:19232
where is the problem?!
ps. if i remove the ui-serf="{{subRow.OBJECT_COMMAND}}"  (only the ui-serf part) it loads without error but it doesn't open the template required in to the ui-view
i am new to this .. hope to find any help .. Thanks

if i replace the ui-serf with href everything works but not as expected to open in the ui-view , it opens the page and redirects the current page or opens in new tab if target set to _blank as usual behavior of the hyperlink ... the menu drawing is correct and as expected nasted and everything .. only this part is eluding me !!.. it would be grate if anyone can help shed a light to it
hope to hear from you soon :)

Seems to work fine to me: http://plnkr.co/edit/Zj6QTIfRCKmC4he2wCX5?p=preview
Your data was invalid though. Once I made it pass jsonlint.com it was good.

Thank you!
I am using this template (http://wrapbootstrap.com/preview/WB0R5L90S)
it seems something else might be conflicting with this implementation but the error pointed me to js/ui-router/angular-ui-router.min.js:7:19232

i found the problem.. it seams my injection of the menu to $futureStateProvider  didn't take effect and the states defined in ui-serf are not found in $stateProvider and that was the cause of the bug .. i am still trying to figure out why $futureStateProvider  didn't work!

authors: IGBSpeed OwlJava eddiemonge

repo: angular-ui/ui-router


text:
SVG xlink:href not working with latest Chrome

It seems there is a problem with SVG links since last Chrome update to Version 50.0.2661.102 m.
SVG links like <svg><a xlink:href="/home"><text>SVG link to Home</text></a></svg> no longer work.
The problem is only when using HTML5 Mode (i.e. no hashbang), here is an example where you can test the problem.
https://dl.dropboxusercontent.com/u/20105836/index.html
Source code:
https://github.com/gromag/angular-ui-router-chrome-test
Note: it used to work in Chrome until this latest update, as of current version of Firefox 46.0.1 and IE 11 .0.31 it works.
I'm happy to look into it further but I would need some guidance.
Thanks
Giuseppe

I think this is a Chrome bug.
I tracked this down to this global click handler in core angular.js.  When it finds an anchor tag which is an SVG element, it uses the animVal as the href.
In Chrome, the animVal is currently a passthrough to the href attribute.  Here's the relevant chromium bug issue 606200, filed April 24, 2016.  It looks like it has been fixed
Note how baseVal has "/home" but animVal has ""

If you add href to your svg element, then your link works again.
closing as not a ui-router bug

Thanks for the update Chris
I got the Chrome update and it fixes it.

authors: christopherthielen gromag


text:
Don't wait till final child state is done being configured in order to load parent templates and controllers

In my app, I have a root state with a menu bar, and a root.ticket state as it's child.  I am dynamically resolving the root.ticket template using a templateProvider which makes an ajax call to get the template.  If this resolution is slow, the entire screen is blank until the ajax call fails or succeeds.  It would be nice if the parent states' controllers and templates were loaded before the child finished.  That would let me at least display the menu bar located in one of the views in root state while the child template was loading.
Similar issue:
http://stackoverflow.com/questions/18961332/angular-ui-router-show-loading-animation-during-resolve-process

+1

Did anything ever happen with this?

Not yet, sorry. We moved it to post-1.0. There are some tricky interactions that we'll have to account for when we implement this.

Did this end up getting fixed by any chance? I am using v0.3.2 and still see child states blocking parent states from loading.

Did this end up getting fixed by any chance? I am using v0.3.2 and still see child states blocking parent states from loading.

It's not really "broken" (it works this way by design).  If you prefer, you can avoid using the resolve feature, and move all your state management into your UI components.
The original bug report is about template loading.  They wondered why: when a parent template is loaded, but the child is not, why doesn't the parent load immediately?  You can achieve that by routing to components in 1.0 (or routing to component templates in 0.3.x, such as template: '<foo-directive></foo-directive>')
In 1.0 we've also exposed the $view service which can be used to completely customize how  and when views are rendered.

For anyone interested in solving their similar issues... here is how I ended up tricking the router to do basically what I wanted, and without having to actually modifying my route configs.
⚠  Disclaimer: this is still an hack, it works® tho.
Preconditions: I have a lot of nested states, which have a lot of resolves (for data fetching, lazy loading modules, etc)... however, the first parent state doesn't have any resolve, never: it's just a template that renders like an app layout with an <ui-view>:
$stateProvider
    .state('myState', {
      // e.g. the app layout
      template: '<header/><ui-view>Loading…</ui-view><footer/>',
    })

    .state('myState.child', {
      url: '/my-url',
      template: '<my-component></my-component>',
      resolve: {
        // e.g. async functions which may take a while
        load: importModule('whatever'),
        fetch: fetchData('whatever'),
      },
    })

So far so good. The problem comes when from another part of the app we want to link to the myState.child; the router will not render anything until everything has been resolved. Result? The app seems stuck, no Loading… indicator. :feelsgood:
Solution? Create a function that first enters the parent state (so the spinner will appear, no resolves), then, once succeeded, it redirects to the original state:
yourModule
  // rename it to whatever you prefer
  .factory('hackedState', ($state, $rootScope) => {

    'ngInject';

    return {
      // HACK: part 1
      go(stateName, stateParams) {
        // save the current state
        $rootScope.pendingState = {
          name   : stateName,
          params : stateParams,
        };
        // go to the parent state
        return $state.go(stateName.split('.')[0]);
      },
    };
  })
  .run(($state, $rootScope) => {

    'ngInject';

    $rootScope.$on('$stateChangeSuccess', (event, next, nextParams) => {
      // HACK: part 2
      if ($rootScope.pendingState) {
        const { name, params } = $rootScope.pendingState;
        $rootScope.pendingState = undefined;
        // clean the pending state and transition to it
        return $state.transitionTo(name, params, {
          location: 'replace',
          relative: next,
        });
      }
    });

  });

Now you can use hackedState.go('myState.child', { /*params*/ }) and the loading indicator will appear.
:suspect:

authors: christopherthielen ksr583 mhintzke13 nuragic skidvd xdhmoore


text:
Please tell me how to implement a "refresh"

"select1" is operated, why is the "select2" does not work?
http://plnkr.co/edit/2wyrlMGFulkswgofug5r?p=preview

Closing as legacy issue, please update plunkr to latest angular if still require assistance. (See also examples in repo)

repo: angular-ui/ui-select


text:
update: v5->v6 error because could not find assets that didn't exist

ng update produced error " Path "../something/somewhere/" is invalid."
Here's the actual example
ng update @angular/cli --migrate-only --from=1
            Updating karma configuration
            Updating configuration
           Path "/../server/" is invalid.

The old .angular.json had this
      "assets": [
        "assets",
        "favicon.ico",
        {
          "allowOutsideOutDir": true,
          "glob": "**/*.*",
          "input": "../server/",
          "output": "../server/"
        }
      ],

The error can be traced to the part that allows content to come from outside.  As it happened, there was no ../server/ directory. That didn't bother the CLI v5 but it caused the error seen above.
I was able to delete this part because I didn't need it.
What if someone really does need something external? That's a question for this issue too.

related  https://github.com/angular/angular-cli/issues/10350

Let us keep track of this issue in https://github.com/angular/angular-cli/issues/10350.

authors: istiti mgechev wardbell

repo: angular/angular-cli


text:
CLI Migrations that make commits should print to the screen while doing so

🚀 Feature request
Command (mark with an x)

- [x] update

Description
When the CLI makes a commit to my repository, it should also print to the screen that is doing so.
CC @vikerman

What do we want this to look like? Is this as simple as displaying:
Committing migration step: "<commit message>"

or is there more information we want to display here?
Also, do we support only Git, or are there other source control systems we will need to account for and might want to display different information for?

The CLI only supports git at this time.  I think the above message should be good to start; maybe add the short hash as well.  The commit message itself may be multiple lines so it may be a good to truncate it at the first newline character.

Ok, good idea to include the hash and truncate at the newline. So it would look something like:
Committing migration step (<short hash>): <commit message>

authors: StephenFluin clydin dgp1130


text:
ERROR in TypeError: Cannot read property 'flags' of undefined

🐞 Bug report
Command (mark with an x)

[X] new
[X] build
[X] serve

Is this a regression?
Yes, the previous version in which this bug was not present was: 9.1.3
Description
Fresh CLI generated project is throwing error below on build (ng serve)
🔬 Minimal Reproduction
ng new test-ts
cd test-ts
ng serve -o
🔥 Exception or Error
PS C:\github\test-ts> ng serve -o

chunk {main} main.js, main.js.map (main) 1.97 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 663 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 12.7 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 339 kB [initial] [rendered]
Date: 2020-05-07T23:40:34.042Z - Hash: 51e69acbabd203efe5f4 - Time: 8126ms

ERROR in TypeError: Cannot read property 'flags' of undefined
    at resolveAlias (C:\github\test-ts\node_modules\typescript\lib\typescript.js:36513:37)
    at checkAliasSymbol (C:\github\test-ts\node_modules\typescript\lib\typescript.js:64502:26)
    at checkImportBinding (C:\github\test-ts\node_modules\typescript\lib\typescript.js:64534:13)
    at checkImportDeclaration (C:\github\test-ts\node_modules\typescript\lib\typescript.js:64552:29)
    at checkSourceElementWorker (C:\github\test-ts\node_modules\typescript\lib\typescript.js:64961:28)
    at checkSourceElement (C:\github\test-ts\node_modules\typescript\lib\typescript.js:64800:17)
    at Object.forEach (C:\github\test-ts\node_modules\typescript\lib\typescript.js:317:30)
    at checkSourceFileWorker (C:\github\test-ts\node_modules\typescript\lib\typescript.js:65123:20)
    at checkSourceFile (C:\github\test-ts\node_modules\typescript\lib\typescript.js:65091:13)
    at getDiagnosticsWorker (C:\github\test-ts\node_modules\typescript\lib\typescript.js:65179:17)
    at Object.getDiagnostics (C:\github\test-ts\node_modules\typescript\lib\typescript.js:65165:24)
    at C:\github\test-ts\node_modules\typescript\lib\typescript.js:98703:85
    at runWithCancellationToken (C:\github\test-ts\node_modules\typescript\lib\typescript.js:98665:24)
    at getBindAndCheckDiagnosticsForFileNoCache (C:\github\test-ts\node_modules\typescript\lib\typescript.js:98691:20)
    at getAndCacheDiagnostics (C:\github\test-ts\node_modules\typescript\lib\typescript.js:98956:26)
    at getBindAndCheckDiagnosticsForFile (C:\github\test-ts\node_modules\typescript\lib\typescript.js:98688:20)
🌍 Your Environment

Angular CLI: 9.1.4
Node: 12.16.3
OS: win32 x64

Angular: 9.1.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.4
@angular-devkit/build-angular     0.901.4
@angular-devkit/build-optimizer   0.901.4
@angular-devkit/build-webpack     0.901.4
@angular-devkit/core              9.1.4
@angular-devkit/schematics        9.1.4
@angular/cli                      9.1.4
@ngtools/webpack                  9.1.4
@schematics/angular               9.1.4
@schematics/update                0.901.4
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0
Anything else relevant?

Same thing happened to me, but upon some investigating it seemed to be something in Typescript. There are some issues for this error in several CLI tools.
https://github.com/microsoft/TypeScript/issues/38352
https://github.com/microsoft/TypeScript/issues/38147
This seems to be the main one:
https://github.com/microsoft/TypeScript/issues/37165
Unfortunately I could not test with Typescript 4.0 because of the Angular compiler support.

I ran into this issue as well with version 9.1.4 of the CLI. Version 9.1.3 also fails.
Just in case someone is curious, CLI version 10.0.0-next.3 compiled without errors. This isn't really a viable workaround for me as I need to run version 9.
Angular CLI: 10.0.0-next.3
Node: 12.16.3
OS: win32 x64

Angular: 10.0.0-next.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.0-next.3
@angular-devkit/build-angular     0.1000.0-next.3
@angular-devkit/build-optimizer   0.1000.0-next.3
@angular-devkit/build-webpack     0.1000.0-next.3
@angular-devkit/core              10.0.0-next.3
@angular-devkit/schematics        10.0.0-next.3
@angular/cli                      10.0.0-next.3
@ngtools/webpack                  10.0.0-next.3
@schematics/angular               10.0.0-next.3
@schematics/update                0.1000.0-next.3
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.43.0

@kblooie I tested with Angular 9.1.0 using the same Typescript version (~3.8.3) and it built for me after creating a blank project.

I have the same issue with Angular 9.1.4 and a blank new project.

Hi all,
Can someone please push a reproduction  to github and link it here?
We have several tests that cover the ng new scenario and none of them are failing. I also tried to reproduce this locally and I wasn't able.
Thanks.

     _                      _                 ____ _     ___     / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|    / △ \ | '_ \ / _ | | | | |/ ` | '__|   | |   | |    | |
/ ___ | | | | (| | || | | (| | |      | || | | |
//   __| ||_, |_,||_,||       _|||
|___/
Angular CLI: 9.1.4
Node: 12.16.1
OS: win32 x64
Angular: 9.1.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package                           Version
@angular-devkit/architect         0.901.4
@angular-devkit/build-angular     0.901.4
@angular-devkit/build-optimizer   0.901.4
@angular-devkit/build-webpack     0.901.4
@angular-devkit/core              9.1.4
@angular-devkit/schematics        9.1.4
@angular/cli                      9.1.4
@ngtools/webpack                  9.1.4
@schematics/angular               9.1.4
@schematics/update                0.901.4
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0`
I have the same error. I tried to create a new blank angular project, but when I tried to build I received that error.
After I tried this command to on my blank project:
npm install @angular/core@9.1.4 @angular/animations@9.1.4 @angular/common@9.1.4 @angular/forms@9.1.4 @angular/platform-browser@9.1.4 @angular/router@9.1.4 @angular/platform-browser-dynamic@9.1.4 @angular/compiler@9.1.4 @angular/compiler-cli@9.1.4 @angular/language-service@9.1.4
Now works.

How to reproduce with new 9.1.5 packages:

ng new projectName
ng serve

same issue i had this morning when i installed a clean version of angular 9 globally
RROR in TypeError: Cannot read property 'flags' of undefined
at resolveAlias (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:36513:37)
at checkAliasSymbol (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64502:26)
at checkImportBinding (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64534:13)
at checkImportDeclaration (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64552:29) at checkSourceElementWorker (D:\samples projects\angular9helloword\helloWorld\node_modules\typescript\lib\typescript.js:64961:28)
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.4",
"@angular/cli": "~9.1.4",
"@angular/compiler-cli": "~9.1.4",
"@angular/language-service": "~9.1.4",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3"
}
please help

I have same issue.
ERROR in TypeError: Cannot read property 'flags' of undefined     at resolveAlias (E:\Angular\node_modules\typescript\lib\typescript.js:36513:37)     at checkAliasSymbol (E:\Angular\node_modules\typescript\lib\typescript.js:64502:26)           at checkImportBinding (E:\Angular\node_modules\typescript\lib\typescript.js:64534:13)         at checkImportDeclaration (E:\Angular\node_modules\typescript\lib\typescript.js:64552:29)    at checkSourceElementWorker (E:\Angular\node_modules\typescript\lib\typescript.js:64961:28)     at checkSourceElement (E:\Angular\node_modules\typescript\lib\typescript.js:64800:17)         at Object.forEach (E:\Angular\node_modules\typescript\lib\typescript.js:317:30)     at checkSourceFileWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65123:20)      at checkSourceFile (E:\Angular\node_modules\typescript\lib\typescript.js:65091:13)            at getDiagnosticsWorker (E:\Angular\node_modules\typescript\lib\typescript.js:65179:17)       at Object.getDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:65165:24)      at E:\Angular\node_modules\typescript\lib\typescript.js:98703:85     at runWithCancellationToken (E:\Angular\node_modules\typescript\lib\typescript.js:98665:24)     at getBindAndCheckDiagnosticsForFileNoCache (E:\Angular\node_modules\typescript\lib\typescript.js:98691:20)     at getAndCacheDiagnostics (E:\Angular\node_modules\typescript\lib\typescript.js:98956:26)    at getBindAndCheckDiagnosticsForFile (E:\Angular\node_modules\typescript\lib\typescript.js:98688:20)

Reproduction-Steps:
Angular CLI: 9.1.4
Node: 10.15.1
OS: win32 x64 Windows 10
Package                      Version
@angular-devkit/architect    0.901.4
@angular-devkit/core         9.1.4
@angular-devkit/schematics   9.1.4
@schematics/angular          9.1.4
@schematics/update           0.901.4
rxjs                         6.5.4

ng n helloworld
ng serve

--> ERROR in TypeError: Cannot read property 'flags' of undefined

This is a problem with ngcc in the Angular Framework not CLI. The issue (and resolution) is being tracked at https://github.com/angular/angular/issues/36992

authors: alan-agius4 doubler84 kblooie meriturva petebacondarwin stalinpimentel tademeit tnlthanzeel viperguynaz yangjunfocus


text:
angular-devkit/schematics: Tree.read() returns null when tsconfig.json contains path mappings

I getvthe following error in my application (with about 10 modules). To isolate the root cause I created a minimal angular app that shows the effect.
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:

generate new angular project ng new test-app --defaults=true --routing=false --style=scss
add paths to tsconfig.json

      :
    "lib": [
      "es2018",
      "dom"
    ],
    "paths": {
      "@lib/*": ["hacks/private-libs/*"],
      "@app/*": ["app/*"],
      "@env/*": ["environments/*"],
      "@config/*": ["app/config/*"],
      "@shared/*": ["app/shared/*"]
    }
      :

modify main.ts to use paths defined in tsconfig.json

      :
import { AppModule } from '@app/app.module';
import { environment } from '@env/environment';
      :

add @angular/material using ng add @angular/material

Expected Behavior
ng add @angular/material resolves import paths using paths definition in tsconfig.json
Actual Behavior
error:
Installing packages for tooling via npm.
Installed packages for tooling via npm.
? Choose a prebuilt theme name, or "custom" for a custom theme: Indigo/Pink        [ Preview: https://material.angular.i
o?theme=indigo-pink ]
? Set up global Angular Material typography styles? Yes
? Set up browser animations for Angular Material? Yes
UPDATE package.json (1343 bytes)
√ Packages installed successfully.
Could not read Angular module file: /src/@app/app.module.ts

Environment

Angular: tried V9.1 and V10
CDK/Material:
Browser(s): --
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Duplicate of https://github.com/angular/angular-cli/issues/12740


text:
for await is not supported when targeting es2018

Bug Report
Affected Package

The issue is caused by package @angular-devkit/build-angular
Is this a regression?

No
Description
As title
Minimal Reproduction

https://github.com/JounQin/test/blob/angular/src/main.ts#L19

Exception or Error

./src/main.ts:18:8 - Error: Module parse failed: Unexpected token (18:8)
File was processed with these loaders:
 * ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
 * ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js
 * ./node_modules/@ngtools/webpack/src/ivy/index.js
You may need an additional loader to handle the result of these loaders.
|     console.log(result);
|
>     for await (const i of [1, 2, 3]) {
|       console.log(i);
|     }

Your Environment
Angular Version:

Angular CLI: 12.0.5
Node: 12.22.1
Package Manager: yarn 1.22.10
OS: darwin x64

Angular: 12.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.5
@angular-devkit/build-angular   12.0.5
@angular-devkit/core            12.0.5
@angular-devkit/schematics      12.0.5
@schematics/angular             12.0.5
rxjs                            7.1.0

Anything else relevant?

Hi,
It appears that this issue is caused by Babel when using the @babel/plugin-transform-async-to-generator plugin.
Here's a REPL https://babeljs.io/repl/#?browsers=latest chrome version&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=BQQwzgngdgxgBMAlHAvAPjgbwFBzjAeyjABc4DU4QB3EASzIAUAnAgWzrAFMA6ZrsAQA2ANy7AAjIgDcufEUFDeQggHNgBGXIBmBZlVoMEhYmQoFtcANoSANHABM9gMwBdZCcXK1GrQF9EJFkgA&debug=false&forceAllTransforms=true&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=unambiguous&lineWrap=false&presets=&prettier=false&targets=&version=7.14.7&externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.14.5
Let's continue tracking this over here https://github.com/babel/babel/issues/13509.

@alan-agius4
Browsers support es2018 will support for await, is that possible to not use babel transformer? And webpack 5 supports for await natively.

await / async need to be downlevelled because there is no easy way to intercept native promises.
See https://github.com/angular/angular/issues/31730 for more context about this.

Turns out we need to add an additional Babel plugin.


text:
[Suggestion]Better dependencies management of the repo

In the last few days, i find out that many dependencies of angular-cli and then try to get my feet wet.
And I just find @hansl #3488 also updates some of the dependencies. But I think it's less perfect.

My opinions
As the repo is a host for several packages, what does the dependencies means for the repo itself? It will not be published.
Let's say the repo is the host.
In fact, the host is responsible for linting, building and testing the real-world packages. Without tests, the host theoretically ought to have devDependencies only.
However, in real development, developers need to run unit tests and write code with the power of Typescript and IDE. So, we have to install dependencies of those packages. (Note: e2e tests don't require that because they install dependencies independently)
Therefore, it can be concluded that the dependencies field in the package.json of the host itself, should be the combination of the  dependencies of those several packages. And then, the update workflow of the dependencies should be:

If they are the dependencies of those packages, developer should update them in those packages' package.json

then, make a join of the packages' dependencies and make a update in host's package.json
one should not directly add dependencies into dependencies field of host's package.json

If they are the devDependencies, of course they should be updated in devDependencies in package.json of repo itself.
If there is duplication between dependencies and devDependencies, I would perfer to remove it from devDependencies

The currents status is, lacking a util to sync the dependencies from the packages and a note to warn contributor not to manually update dependencies in repo's package.json

yarn workspaces as been implementing which eliminates the duplication of dependencies.

authors: clydin e-cloud


text:
Can't run ng serve when I want an asset to be written to a location outside the project.

Versions
Angular CLI: 1.5.4
Node: 8.9.1
OS: win32 x64
Angular: 5.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.4
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.21
@angular-devkit/schematics: 0.0.37
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.4
@schematics/angular: 0.1.7
typescript: 2.4.2
webpack: 3.8.1

Repro steps

Step 1 - in the project folder run command ng new angular-src
Step 2 - modify the .angular-cli.json

"apps": [
    {
      "root": "src",
      "outDir": "../public",

and
  "assets": [
        {
          "glob": "**/*",
          "input": "./assets/",
          "output": "../public",
          "allowOutsideOutDir": true
        },
        {
          "glob": "favicon.ico",
          "input": "./",
          "output": "../public",
          "allowOutsideOutDir": true
        }

Step 3 - run ng serve

Observed behavior
D:\Programare\NodeJS\MeanAuthApp\angular-src>ng serve
An asset cannot be written to a location outside the project.

Desired behavior
I want to be able to run ng serve with the location outDir: "../public"
Mention any other details that might be useful (optional)
I want to achieve the same output presented in the beginning of this tutorial linked below. And hope this will help! Many thanks!
https://www.youtube.com/watch?v=zrViDpWiNVE&list=PLillGF-RfqbZMNtaOXJQiDebNXjVapWPZ&index=5

This issue is a duplicate of https://github.com/angular/angular-cli/issues/8613, fixed by #8630, which will be in the next release.


text:
.editorconfig indent size not respected when changing it to another value

This may be more of a question rather than an issue: From the .editorconfig file, I updated the default indent_size from 2 to 4, now every time I generate a new component, route etc all the files that are generated or updated by the cli use the previous default indent size of 2 instead of 4. Is this by default or is there some other setting I have to set? Or a bug?
Note: I did not change anything else in the .editorconfig file, I was testing it out with the stock values the only update was the indent_size.

The .editorconfig file doesn't actually affect code generation by the CLI, it's just for editors. We generate it mostly as a nice-to-have.

authors: alexolivas filipesilva


text:
fix(@angular/cli): infer schematic defaults correctly when using --project

Previously, the --project flag was ignored when gathering and merging the schematics defaults from the angular workspace configuration file.
Closes #20666

@clydin PTAL


text:
Uwaterloo 210J pfryerda edits

Peter Fryer-Davis is making these edits as a part of Ashley Kelly's UWaterloo ENGL 210J class.

I like most of your edits very much!

Thanks! I've added further questions inline.

@kwalrath I've made some of the changes that you mentioned earlier. Still waiting on the remaining comments for responses. Thanks!

Sorry for the delay. Taking another look now...

OK, all done. Could you make the final changes and resolve any conflicts? Thanks!

@kwalrath, updated and rebased with master, but it's failing CI. Never used Travis before and I'm not familiar with it. Any chance you can help me debug?

Last I heard, CI was in early days and failing it wasn't a showstopper.
So don't worry about it. :) I'll look at your changes now.

LGTM aside from one tiny character, which I can fix.
Thanks very much for your work, @pfryerda!

authors: kwalrath pfryerda


text:
Possible extra quotes in Developer Guide - Scope $watch Depths

I can't see any diffrence between $watch by reference and $whatch by value in  https://docs.angularjs.org/guide/scope , secction Scope $watch Depths
I fieel that there are more quotes than required in this example.
https://docs.angularjs.org/img/guide/concepts-scope-watch-strategies.png
Later
MS

what is confusing?
It is saying:
With the third parameter of $watch() not set to true, then if the object has the same identity, it will not result in a change notification even if properties are changed (eg by pushing an array or changing a property of a nested object). If the third parameter is set to true, then it will recursively look at each property of an object, and alert you if any of them change.

I feel like the picture illustrates this nicely, but perhaps you could offer suggestions for improving it that we could look at, in a new issue.

authors: caitp mrsoto


text:
ng-controller not working in the latest version of Angular js file

I downloaded the below versions of Angular js file and used in my html code shown below. The ng-controller in the below code snippet not working. It works in the version 1.2.26. Please look into this and advise.
1.4.0-beta.4
1.3.13

First Name:
Last Name:

Full Name: {{fullName()}}

This is due to a breaking change in 1.3 described here:
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#breaking-changes-21

authors: ChandranMuthu pkozlowski-opensource


text:
chore(anchorScroll): remove a Jasmine toHaveBeenCalled workaround

The Jasmine fix landed long time ago and we've updated Jasmine since that
happened.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Tests update.
What is the current behavior? (You can also link to an open issue here)
A Jasmine workaround is applied.
What is the new behavior (if this is a feature change)?
It's removed.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Other information:

LGTM

authors: mgol petebacondarwin


text:
Property 'map' does not exist on type 'AngularFireAuth'

Version info
Angular: 2.3.0
Firebase: 3.x
AngularFire: next
I am still getting this issue.  My code will not compile looking at the source AngularFireAuth extends ReplaySubject which is not an observable. Also i am compliling using AOT
my code lookes like this
export class UserResolve implements Resolve<any> {
  constructor(private api: ApiService,public af:AngularFire) {
  }

  resolve(route: ActivatedRouteSnapshot) {
     // should return an observable
    return this.af.auth.map((data)=>{
      return data;
    });
  }
}

when i run the compile it gives me the error Property 'map' does not exist on type 'AngularFireAuth'
im not sure how this is working for everyone else but it fails for me everytime and i am on the next release

This seems to be an issue with the @next release.
It is because rxjs is being installed as a dependency, along with being installed with your application (so it's installed twice).
Because of this, the operators / inheritance that AngularFire uses to extend type Observable is breaking.
To test this, remove the rxjs folder that is inside node_modules/angularfire2/node_modules/rxjs. That should fix the issue.
I'm not sure why exactly rxjs is being installed in the @next release, but not in the beta6 release, but perhaps something changed in the rxjs package itself.
Regardless, I believe that rxjs needs to be moved to peerDependencies along with firebase.

will this be fixed soon i install via npm so id like to not have to edit the package manually

What I've done in the meantime is set up a postinstall node script that just deletes that folder.

Thanks for the updates, all. We're looking at making rxjs a peer dependency (right now it appears to get installed as both peer and non-peer dep for some reason). For now the best workaround is to indeed delete one or modify package.json accordingly.

will this be fixed soon i install via npm so id like to not have to edit the package manual

Please don't use @next and stick to stable versions--or what passes as stable in a beta product--if you're not tolerant of small obstacles like this. This has also been out less than a day, so reset you expectations to something more realistic: we work in weeks and months, not hours (although I wouldn't expect this to be around for months).

@asqwrd What version of rxjs were you using?
@rosslavery @katowulf
I just release a new next that includes the fix for Firebase, Angular, and rxjs as peerDependencies only.
Can you give it a spin and let me know if works for you?

Just got back into the office, can confirm that all looks good here now.

all is good for me im on the latest rxjs that angular uses
On Tue, Jan 3, 2017 at 6:36 AM, Ross Lavery notifications@github.com
wrote:

Just got back into the office, can confirm that all looks good here now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/747#issuecomment-270127358,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFumoW1kyUN_zgUBWBJRdKupesVI_fe2ks5rOlz6gaJpZM4LXDAe
.

--
Bade

@davideast I'm still having this issue on 2.0.0-beta.8. I'm using rxjs 5.0.1 and Angular 2.4.8.
The code:
return this.af.auth.map(auth => this.fooApi.getBarsByUserId(auth.uid));
The error:
error: this.af.auth.map is not a function

authors: Elrhino asqwrd davideast katowulf rosslavery