text:
LC3plus support

LC3plus seems to be a pretty good codec for high resolution audio over Bluetooth (non plus version should be very similar and this may help in preparation for LE Audio).
This codec has some advantages over LDAC: both decoding and encoding is supported in open-source software and (theoretically) it could give higher bitrate.
It may also happen that it will be added into Android 12 (but probably not).

Adding new A2DP codec without sink/source devices is pointless. In order to use better audio quality (doubtful that it can be achieved, more likely better energy efficiency) one would need e.g. headphones with such codec support. Are there any headphones on the market which supports LC3plus as a codec for BT 4.0 audio? As for LE audio support in BlueZ, I think that we will have to wait rather longer (there are missing some crucial components in BlueZ).

There is a high possibility that headphones with LC3plus will appear on market (not sure when, prototype is expected to exist before the end of summer).
High resolution mode sounds promising in terms of sound quality (and I was not able to tell the difference between it (encoded and then decoded) and lossless).
This may also have (at least) some point for using this for transferring audio between Linux-enabled devices (any SBC as media center and PC).

OK, do you have any spec regarding A2DP configuration blob and data transport headers (if any)? Without these information adding support for new codec will work only between two bluealsa-enabled devices. If we want to target for new headphones,  we need some specification how to implement it.

I've contacted Fraunhofer IIS about that not long time ago, as for now they're settling bureaucratic things.
The problem is that it may happen that I won't be able to share documentation publicly, so I've to write this part on my own (for which I'll certainly need some assistance).

OK, signing NDA from my side is not a problem as long as the final implementation could be publicly released (it does not have to be released right away, but e.g. shortly after first product with such codec is on the market). For example, similar case is with Sony's LDAC decoder - bluealsa has support for it but library is not publicly available.

As for NDA, developers will probably know better.
Actually, LDAC decoder is publicly available, there's also WIP reverse-engineered library version which won't compile at the moment but pretty close to that.

Actually, LDAC decoder is publicly available

Nice, I will compare it with original decoder.

WIP reverse-engineered library version which won't compile

There is rather a long way to go. A lot is missing :)
Beside decoder/encoder availability, there is also a licensing problem. Sony requires certification if one wants to use LDAC technology. https://android.googlesource.com/platform/external/libldac/+/refs/heads/master/NOTICE

There is description of RTP payload format for the LC3plus codec in the official public document. Is this enough or something other is required too?

OK, so RTP spec is there. But for A2DP codec also A2DP capabilities
spec is required, and I can not find anything like this in that pdf file.

It looks like that for them one would need to contact Fraunhofer IIS. I had already done that, you may do it too

I've sent a message to Fraunhofer via web page form and I'm waiting for a reply :)

@anonymix007 If you are still interested in LC3plus support, the PR is ready :) I will have to perform few more test before merging it into the master, though.

@Arkq Thanks, that's great.
BTW which library are you using? ETSI LC3plus software compiles into only standalone executable for encoding/decoding, not into shared library.

BTW which library are you using? ETSI LC3plus software compiles into only standalone executable for encoding/decoding, not into shared library.

Yes, I'm using the lib available via ETSI. And yes, provided Makefile does not produce library. One will have to modify the Makefile or use other build system for source files. However, simple modification like below will suffice:
From de4e3c18ba73419c57481442aeefda29e94d3a04 Mon Sep 17 00:00:00 2001
From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
Date: Thu, 9 Dec 2021 20:50:44 +0100
Subject: [PATCH] Makefile targets for building shared libraries

---
 src/fixed_point/makefile    | 20 ++++++++++++++------
 src/floating_point/makefile | 15 ++++++++++++---
 2 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/src/fixed_point/makefile b/src/fixed_point/makefile
index 01d5725..33f99ed 100644
--- a/src/fixed_point/makefile
+++ b/src/fixed_point/makefile
@@ -15,6 +15,8 @@ LINK   = $(CC)

 # Binary Name
 NAME_LC3   = LC3plus
+# Shared Library Name
+LIB_LC3    = libLC3plus.so

 # Default tool settings
 RM        = rm -f
@@ -25,12 +27,11 @@ QUIET_LINK= @echo '   ' Linking $@;
 QUIET     = @
 endif

-CFLAGS += -std=c99
-
 # C compiler flags
 # Preprocessor(-I/-D) / Compiler / Linker flags
 CPPFLAGS += -Ibasic_op -DSUBSET_$(SUBSET)
-CFLAGS   += -pedantic -Wcast-qual -Wall -W -Wextra -Wno-long-long     \
+CFLAGS   += -std=c99 -fPIC                                            \
+            -pedantic -Wcast-qual -Wall -W -Wextra -Wno-long-long     \
             -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes  \
             -Werror-implicit-function-declaration

@@ -84,11 +85,14 @@ OBJS_CCC := $(filter-out $(EXCL_CCC), $(OBJS_CCC_UNF))

 OBJS := $(addprefix $(BUILD)/, $(SRCS:.c=.o))

+LIBSRCS := $(filter-out $(DIR)/ccConvert.c $(DIR)/codec_exe.c, $(SRCS))
+LIBOBJS := $(addprefix $(BUILD)/, $(LIBSRCS:.c=.o))
+
 ###############################################################################

 .PHONY: all clean help force

-all: $(NAME_LC3)
+all: $(NAME_LC3) $(LIB_LC3) ccConvert

 help:
 	@echo 'Targets:'
@@ -108,13 +112,17 @@ help:
 $(NAME_LC3): $(OBJS)
 	@echo 'Linking' $@
 	$(QUIET) $(LINK)  $(OBJS) -o $@ $(LDFLAGS)
-
+
+$(LIB_LC3): $(LIBOBJS)
+	@echo 'Linking' $@
+	$(QUIET) $(LINK) --shared $(OBJS) -o $@ $(LDFLAGS)
+
 ccConvert: $(BUILD)/ccConvert.o $(OBJS_CCC)
 	@echo 'Linking' $@
 	$(QUIET) $(LINK) $? -o $@ $(LDFLAGS)

 clean:
-	$(QUIET) rm -rf $(NAME_LC3) $(BUILD) ccConvert
+	$(QUIET) rm -rf $(NAME_LC3) $(LIB_LC3) $(BUILD) ccConvert

 $(BUILD)/%.o : %.c $(BUILD)/cc_flags
 	@echo 'Compiling' $<
diff --git a/src/floating_point/makefile b/src/floating_point/makefile
index 8818c16..898d7c0 100644
--- a/src/floating_point/makefile
+++ b/src/floating_point/makefile
@@ -15,13 +15,15 @@ LINK   = $(CC)

 # Binary Name
 NAME_LC3   = LC3plus
+# Shared Library Name
+LIB_LC3    = libLC3plus.so

 # Default tool settings
 CC        = gcc
 RM        = rm -f

 # Preprocessor(-I/-D) / Compiler / Linker flags
-CFLAGS   += -std=c99 -O$(OPTIM)                                                            \
+CFLAGS   += -std=c99 -fPIC -O$(OPTIM)                                                      \
             -Wall -pedantic -Wcast-qual -Wno-long-long -Wpointer-arith -Wstrict-prototypes \
             -Wmissing-prototypes -Werror-implicit-function-declaration -Wunused-parameter  \
             -Wunused-macros -Wunused-local-typedefs -g
@@ -91,11 +93,14 @@ POSTCOMPILE = mv -f $(BUILD)/$*.Td $(BUILD)/$*.d && touch $@
 SRCS := $(notdir $(foreach DIR, $(VPATH), $(wildcard $(DIR)/*.c)))
 OBJS := $(addprefix $(BUILD)/, $(SRCS:.c=.o))

+LIBSRCS := $(filter-out $(DIR)/codec_exe.c, $(SRCS))
+LIBOBJS := $(addprefix $(BUILD)/, $(LIBSRCS:.c=.o))
+
 .PHONY: all clean help force

 .PRECIOUS: $(BUILD)/%.d

-all: $(NAME_LC3)
+all: $(NAME_LC3) $(LIB_LC3)

 help:
 	@echo 'Syntax: make [OPTION=VALUE ...]'
@@ -111,8 +116,12 @@ $(NAME_LC3): $(OBJS)
 	@echo 'Linking' $@
 	$(QUIET) $(LINK)  $(OBJS) -o $@ $(LDFLAGS)

+$(LIB_LC3): $(LIBOBJS)
+	@echo 'Linking' $@
+	$(QUIET) $(LINK) --shared $(OBJS) -o $@ $(LDFLAGS)
+
 clean:
-	$(QUIET) rm -rf $(NAME_LC3) $(BUILD)
+	$(QUIET) rm -rf $(NAME_LC3) $(LIB_LC3) $(BUILD)

 $(BUILD)/%.o : %.c $(BUILD)/cc_flags
 	@echo 'Compiling' $<
--
2.34.1

And there are other technical issues with this library... Unfortunately, a new version might no be available soon (I hope that a new version will be released this year...). Also, I'm not sure whether the build system will be changed or at least modified in a way shown in the patch above. I've been talking with Fraunhofer about that, and my impression is that "the simplest" way of adapting this library by the opensource community is to create e.g. github repository and maintain a build system separately from Fraunhofer (the same way the https://github.com/mstorsjo/fdk-aac is maintained by Martin Storsjö).
(If anyone from Fraunhofer is reading this and is willing to have a public conversation, please correct me if I'm wrong abut the maintenance of LC3plus library in a way compatible with Unix and opensource in general.)

@Arkq
I'm not totally sure, but isn't HR mode supposed to be turned on even if 48 kHz (not only 96 kHz) sample rate is used?

Text from lc3.h file for lc3plus_enc_set_hrmode function:

Set the high resolution mode for LC3 encoder. This mode is mandatory for 96 kHz input and can also be used for 48 kHz input. Encoder and decoder must have the same high resolution mode active.

Of course I might add command line option for enabling it even for lover sample rate. Current lc3plus support is a "bare" minimal in order to fulfill all spec and codec requirements.

After reading A2DP spec one more time, I think you are right :D For both sampling frequencies the HR mode has to be enabled. I will fix that.

Since libLC3plus v1.4.1 the patch from the https://github.com/Arkq/bluez-alsa/issues/479#issuecomment-1025211325 is no longer required (it was merged into the upstream). In order to build the library one will have to make the libLC3plus.so target as follows: make libLC3plus.so. Also, since commit https://github.com/arkq/bluez-alsa/commit/d584239e41f0088f28581d49bd4397b5e2d8747f bluez-alsa requires libLC3plus >= v1.4.1.

liblc3 now has support for LC3plus (including HR), so maybe it's worth fully switching to it?

Yes, it might be a good idea to add support for Google's implementation of LC3plus. However, I'd like to keep support for reference implementation (which can be downloaded from etsi.org) too.

authors: Arkq anonymix007 arkq

repo: arkq/bluez-alsa


text:
🛑 EcoTyre is down

In 8c8a863, EcoTyre (http://ritiri.ecotyre.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EcoTyre is back up in cf674b8 after 9 minutes.

source: gharchive/issue

repo: armellin/upptime

license: MIT

license_type: permissive

license_source: github-api


text:
Parameters for all Options / Parameters not working

Have node 6.9.4 installed.
Have node-sass  4.5.0 (Wrapper) [JavaScript] and libsass 3.5.0.beta.2 (Sass Compiler) [C/C++] installed.
Current version of Atom is 1.15.0.
Going over the options I cannot seem to get them working and am missing the parameters for them.
For example I have this in the first line of the .scss file.
// compileExpanded: .\css\$1.css
// sourceComments: false
// indentType: tab
// indentWidth: 2
// precision: 5
// sourceMap: true
// sourceMapEmbed: true

// -- CONTENT DIMENSIONS --
$content-width: 75em; /* 1200/16 */
$header-height: 300px;
$footer-height: 200px;

body {
    width: $content-width; /* test comment */
}

header {
    height: $header-height;
}

footer {
    height: $footer-height;
}

.sample {
    width: 33.3333333333%;
    height: 31.25em; /* 500/16 */
}

.test {
    width: 28.125em; /* 450/16 */
}

This will compile to following .css file.
/* 1200/16 */
body {
  width: 75em;
  /* test comment */
}

header {
  height: 300px;
}

footer {
  height: 200px;
}

.sample {
  width: 33.3333333333%;
  height: 31.25em;
  /* 500/16 */
}

.test {
  width: 28.125em;
  /* 450/16 */
}

Comments are included. I do prefer comments to be included in general but either directly on the corresponding line or over the corresponding line but not under it. How can I achieve that? For the purpose of this issue I have tried to get rid of them but it does not work.
Indentation is 2 spaces instead of 2 tabs.
Precision is 10 instead of 5.
Source map is neither found nor embedded.
Then I cannot seem to find the parameters for the following Options.

Compile files - what is the parameter for this I put in the first line as comment?
Compile Partials - --"--
Ask for overwriting already existent files - --"--
Directly jump to error - Is the parameter for this jumpToError: true ? Is it something else?
Show 'Compile SASS' item in Tree View context menu - what is the parameter for this I put in the first line as comment?

Thank you for any help with all this.
Also did rebuild node-sass and all ok.
npm rebuild node-sass --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Users\\-snip-\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'rebuild',
npm verb cli   'node-sass',
npm verb cli   '--verbose' ]
npm info using npm@4.2.0
npm info using node@v6.9.4
npm info readInstalled object
npm verb exit [ 0, true ]
npm info ok

Because I am new to Atom I was under the impression that the Options are something that needs to either be put in a config file or in a first line comment, since they are mentioned alongside the Parameters in the repo description. When you refer to Options then you mean the Settings of the Package.
Atom -> File -> Settings -> Packages -> sass-autocompile -> Settings ->

repo: armin-pfaeffle/sass-autocompile

license: mit

license_source: bigquery


text:
Works with the Nest?

I saw a video online where someone used this to control their Nest as if it was a light bulb (brighness of 72 would be room temp).
I got the java app installed on my Rasperry Pi and running. I can get to the config portal on my PC, but now I am stuck. Does anyone have advice on how to set up the Nest as a device?
Thanks!

I was unsuccessful in having direct integration through the ha bridge. I was limited to turning the Nest on/off. I was more successful using IFTTT integration from the Echo to Nest.

How did you get the bridge to turn the Echo on and off? How do you set up
the IFTTT recipe?
Thanks in advance.
On Mon, Nov 2, 2015 at 10:27 AM, madrigalo notifications@github.com wrote:

I was unsuccessful in having direct integration through the ha bridge. I
was limited to turning the Nest on/off. I was more successful using IFTTT
integration from the Echo to Nest.
—
Reply to this email directly or view it on GitHub
https://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153116718
.

You do not turn the echo off. You can setup ifttt with the maker channel and have urls trigger recipes.

I did not know I can do that. Can you share the recipe with me?
On Mon, Nov 2, 2015 at 10:54 AM, jerrit notifications@github.com wrote:

You do not turn the echo off. You can setup ifttt with the maker channel
and have urls trigger recipes.
—
Reply to this email directly or view it on GitHub
https://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153123591
.

Yep. So I do not have a Nest but my wemo light bulbs did not work native with the echo. This is just an example. https://ifttt.com/recipes/338520-maker-to-wemo-switch

Let me know if have another question.

FWIW - I dont think the Nest allows you to remotely set the temp outside
their applications (I would imagine for liability reasons). You can only
read information and set/un-set Away mode.
On Mon, Nov 2, 2015 at 11:13 AM, jerrit notifications@github.com wrote:

Let me know if have another question.
—
Reply to this email directly or view it on GitHub
https://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153128377
.

--
-Chris

Using IFTTT you can create a recipe to set the Nest to a specific temperature. You won't have total control of the Nest but you can create recipes for common temperatures. Make sure you name the recipe something like "set the temperature to 72" so you can tell the echo to "ask Nest to set the temperature to 72"

You can pass variables to IFTT maker channel as well, then pass those as temps to the nest channel.  I have that working for both a single temp for cool/heat, or a range when I'm in that mode
My setup for this looks something like:
Echo -> echo-ha-bridge -> OpenHab -> IFTTT -> Nest
Echo-ha-bridge sets a value in a dummy item in OpenHab.  OpenHab has a rule that when that value changes, posts the value to IFTT maker channel which feeds into the nest channel.
From: crashandburn45
Reply-To: armzilla/amazon-echo-ha-bridge
Date: Monday, November 2, 2015 at 1:56 PM
To: armzilla/amazon-echo-ha-bridge
Subject: Re: [amazon-echo-ha-bridge] Works with the Nest? (#46)
Using IFTTT you can create a recipe to set the Nest to a specific temperature. You won't have total control of the Nest but you can create recipes for common temperatures. Make sure you name the recipe something like "set the temperature to 72" so you can tell the echo to "ask Nest to set the temperature to 72"
—
Reply to this email directly or view it on GitHubhttps://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153139830.

Even better. Thanks @chapeter .

how do you bet the echo to see the echo bridge once it is running?
On Mon, Nov 2, 2015 at 12:05 PM, Chad Peterson notifications@github.com
wrote:

You can pass variables to IFTT maker channel as well, then pass those as
temps to the nest channel. I have that working for both a single temp for
cool/heat, or a range when I'm in that mode
My setup for this looks something like:
Echo -> echo-ha-bridge -> OpenHab -> IFTTT -> Nest
Echo-ha-bridge sets a value in a dummy item in OpenHab. OpenHab has a rule
that when that value changes, posts the value to IFTT maker channel which
feeds into the nest channel.
From: crashandburn45
Reply-To: armzilla/amazon-echo-ha-bridge
Date: Monday, November 2, 2015 at 1:56 PM
To: armzilla/amazon-echo-ha-bridge
Subject: Re: [amazon-echo-ha-bridge] Works with the Nest? (#46)
Using IFTTT you can create a recipe to set the Nest to a specific
temperature. You won't have total control of the Nest but you can create
recipes for common temperatures. Make sure you name the recipe something
like "set the temperature to 72" so you can tell the echo to "ask Nest to
set the temperature to 72"
—
Reply to this email directly or view it on GitHub<
https://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153139830>.
—
Reply to this email directly or view it on GitHub
https://github.com/armzilla/amazon-echo-ha-bridge/issues/46#issuecomment-153141789
.

I loosely followed this guide:
http://tinsley.io/2015/06/control-your-items-using-the-amazon-echo-openhab/
I needed to open up UDP 1900 on my PI for the device discovery  to happen

@Benjavalanche
Hey, I have successfully accomplished this. Although, I found that you have to regulate the temperature range. For example, if you want the temperature to be 75 degrees (Heat to)  and your upper range is 71 (Cool to) it wouldn't make sense since your lower limit has to be less than your upper limit. Thus, you have to regulate the range with Vera.  So this is a two part job.
In order to regulate it, I add this scene in Vera that runs every 2 seconds.  Use this code in the Luup Code Section:  (83 is my current device ID in vera), this code regulates the range to always be 5 degrees apart.
==============================================================================
x = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat","CurrentSetpoint",83)
y = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool","CurrentSetpoint",83)
dif = y - x
if x > y then
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool","SetCurrentSetpoint",{NewCurrentSetpoint=x + 5},83)
elseif dif ~= 5 then
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool","SetCurrentSetpoint",{NewCurrentSetpoint=x + 5},83)
end
In order to get it working with your Echo, using the config page on your Pi, add a new device call it: "The house temperature"  or anything you want just have to make it clear.
For the "ON' section: Remember the Device 83 is MY device ID, you must replace that number with your device ID.
Type this:
http://YourIP:3480/data_request?id=action&output_format=json&DeviceNum=83&serviceId=urn:upnp-org:serviceId:TemperatureSetpoint1_Heat&action=SetCurrentSetpoint&NewCurrentSetpoint=${intensity.percent}
Save it.
After that, tell Alexa to discover devices, and now you should be good. Just know that it won't work by saying turn on the house temperature.  It will work by saying:  Set the House temperature to 75. And the nest will respond almost immediately.
I use this at home and it works flawlessly!

Native support exists

authors: Benjavalanche ChrisWeiss armzilla chapeter crashandburn45 gpala7077 jerrit madrigalo

repo: armzilla/amazon-echo-ha-bridge


text:
can i edit meta-data on live-preview model? and background-image?

in nord theme, metatable is a little hard to identify, I always think of it as part of the text
In addition, I hope to be able to adapt to the new live mode, to be able to directly edit the meatadata
thx

hi, I'm not familiar with the nord theme, aren't the options available for customising colours (or the new naked option) enough to make it stand out in your case?
I haven't looked at the new live mode, I'll have to do a bit of research before I can answer this one :)

hi, I'm not familiar with the nord theme, aren't the options available for customising colours (or the new naked option) enough to make it stand out in your case?
I haven't looked at the new live mode, I'll have to do a bit of research before I can answer this one :)

thx bro. it's already amazing plugin.
Thank you for your reply

repo: arnau/obsidian-metatable


text:
🛑 NWTFV is down

In 0d23f68, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in f2d3088.

repo: arnef/status


text:
🛑 NWTFV is down

In bc8589f, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in c05e919.


text:
🛑 NWTFV is down

In fde8787, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in 3a7bd88.


text:
Auto Build Script

Artifact 업로드가 안되긴 하는데 빌드는 됨

fixed

그... 너 Git 배워서 커밋내역좀 정리해봐라 ㅋㅎ

귀차늠

귀차늠

배워라.

source: gharchive/pull-request

repo: aroxu/server-script


text:
Hardcoded links have been changed to dynamic urls

🛠 Fixes Issue
Used template inheritance to change hard-coded link in Navbar and updated Index, Features, Pricing, Login and Contact Us pages accordingly.

All the templates (index/feature/pricing and all course files) except Login and Contact have been updated with template inheritance from base.html

@arpit456jain @KKhushhalR2405 Please review and let me know

Seems good to me @KKhushhalR2405 please give the final approval

authors: ephemeralshay raghavTinker


text:
Frontend: add improvements

Adds the following:

minor UI changes (colors, fonts)
removed unused google fonts to reduce build size
added collapsible support for arrays
shows number of elements for collapsed objects and arrays

The collapse triangle is too close to the data

Font size is a little too big. Would take up too much space very quickly as data gets bigger

Would it be better to expand arrays vertically instead. If the array contains bigger data, expanding horizontally would be unsightly. Also, we could add indexing of the elements to the array's left

The collapse triangle is too close to the data

Yep, fixed it (#4 )


text:
🛑 BreezeWiki is down

In 1419b55, BreezeWiki (https://bw.artemislena.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BreezeWiki is back up in 0016966 after 2 minutes.

repo: artemislena/upptime


text:
Bug: Automaticly selects .gjs-lory-slide

The Slider automaticly selects .gjs-lory-slide on clicking a slide. It changes the Background Image for every slide automaticly.

@BerkeAras
Check the example:  https://github.com/artf/grapesjs/blob/gh-pages/demo.html
As you can see you must add selectorManager: { componentFirst: true } to the init if you want to target the id (not the class) of the slide when you select it.
@artf maybe it could be a good idea to add this information to the README  ?
It was a little bit confusing for me also.

@BerkeAras
Check the example:  https://github.com/artf/grapesjs/blob/gh-pages/demo.html
As you can see you must add selectorManager: { componentFirst: true } to the init if you want to target the id (not the class) of the slide when you select it.
@artf maybe it could be a good idea to add this information to the README  ?
It was a little bit confusing for me also.

repo: artf/grapesjs-lory-slider


text:
Include Norm in Bracket behaviour

the idea would be to add “|” and “{“ “}” as a bracket type, so that the auto-enlarge behaviour applies to norms.
Your plugin is great.

Good idea, I'll try to add this in one of the next releases.

This will be easy to do for \{ and \}, because the open and close symbols are different.
However, "norm"  uses the same symbol | to denote the start and end. So I don't think it's possible, exactly, to determine which open symbol | should be paired with which close symbol | in the case of nested norms (e.g. $|a+b|c|d|$).

Ooh that is very subtle. I see, it doesn’t seem possible.

1.4.2 adds \{ and \} to the auto-enlarge brackets feature.

Amazing thanks!

Hello, I think this can be done via the \lVert \rVert commands for the norm instead of | |. I just learned about these.

Hello, I think this can be done via the \lVert \rVert commands for the norm instead of | |. I just learned about these.

Thanks for the info! Added in 1.6.5.

Amazing, thanks a lot!


text:
Replace related posts with related articles

@craigspaeth probably has the best insight in terms of what's needed, but I think it's just swapping one API for another!
Then we can totally remove all this post related cruft from Gravity, plus I think articles are the new standard over posts, which is now deprecated.

:+1: If you start implementing articles in native please let me know so I can make sure API design decisions are frozen.

not sure if this is relevant anymore @alloy your call to close or keep open

authors: craigspaeth katarinabatina mzikherman

repo: artsy/eigen


text:
chore: prepare for next release

This PR updates the app version to prepare for next release. #nochangelog

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against 3c87bcba32a220d2baa111a0c06b8855dcb86a26

authors: ArtsyOpenSource artsyit


text:
Update metaphysics schema

Greetings human :robot: this PR was automatically created as part of metaphysics' deploy process. #nochangelog

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against 7d3d3075910d1e41b6a29946d97d4d9ad683154e


text:
Update metaphysics schema

Greetings human :robot: this PR was automatically created as part of metaphysics' deploy process. #nochangelog

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against fcec911947142682d8932394f6ac7b1867c62cf2


text:
@kanaabe => Responsive articles component

This PR addresses changes in:
https://github.com/artsy/force/issues/238
closes https://github.com/artsy/force/issues/237
The image-set preview is not touched here -- @owendodd requested an update to display as it does in microgravity, will address this in a separate issue.
Also sorry about the long commit list - had some issues with rebasing failing!

Wow so exciting! 👏 Looking forward to reading through this -- we can go over the rebase tomorrow since it will make reviewing easier as well 👍

Sounds great, let me know when a good time to do some pairing would be
On Wed, Oct 19, 2016 at 5:42 PM, Kana Abe notifications@github.com wrote:

Wow so exciting! 👏 Looking forward to reading through this -- we can go
over the rebase tomorrow since it will make reviewing easier as well 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/artsy/force/pull/305#issuecomment-254949688, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABbZUMeBxuGCuArZx_vog6MDy-iyDfujks5q1o7ggaJpZM4Kbd1I
.

--
[A.]
Eve Essex
Artsy http://artsy.net/
eve@artsymail.com
We're hiring https://artsy.net/about/jobs!

So exciting to see this PR!! It will be a game changer for desktop and iPad readers, and eventually for mobile too! 🎊  Some comments but overall clean and careful. Definitely would like to see some tests which I think you're already working on.

@kanaabe thanks for these notes!  Will do some refactoring with your suggestions tomorrow and pull the imageset feature into this PR as well. More soon...

@kanaabe - just added some tests, let me know if these look up to snuff!

Tests look good! Merging

authors: eessex kanaabe

repo: artsy/force


text:
支持下线通知吗？

支持下线通知吗？
目前用 API，一分钟检测一次，不太优雅

目前不支持哈，frp-notify 是基于 frp server plugin 来实现的。要看 frp 能不能增减下线的操作

目前不支持哈，frp-notify 是基于 frp server plugin 来实现的。要看 frp 能不能增减下线的操作

看到文档中有 CloseProxy 事件，不知道能否用上？

不知道现在是否加上了CloseProxy通知？

authors: Subp66 arugal seeingrain tanst

repo: arugal/frp-notify


text:
how to use multiple worker in nginx 1.15 ?

Hello there ,
I read some posts saying that as of nginx 1.9 , we cant use multiple worker processes anymore . Is there any fix to this ? I use the latest nginx and I want to use all the cores on my server .
Regards ,

Are you using rtmp_auto_push on;? Can you publish a sample config?
I'm using nginx-1.15, it is working well.

as i know, nginx rtmp module do not support multiple worker perfectly

authors: Lax lystormenvoy rko4all

repo: arut/nginx-rtmp-module


text:
Add menu item that allows user to import custom gamma curve from .jgd file

Allow user to import a 256-point custom gamma curve created using jvcprojectortools to be imported to projector via external file (.jgd)

The .jgd files created by and imported by the jvc autocal software don't have 256 points in them. As far as I know the autocal software cannot import a file if you add any points, so I don't see much reason to create 256 point .jgd files.
I do have pending changes that allow you to load and save json formatted files though. If all you want is the ability to save and load files created by jvcprojectortools, and not this specific file format, then what you want should soon be available.

Hi,
Please consider adding an option to upload .jgd files.  For owners of the older (2014) JVC projectors, currently there is no way to upload a custom gamma to the projector.
Thanks.

I don't know how to interpret the .jpg files. They only have a few control points. What do you want the values in-between set to? I could interpolate, but the result may not match what autocal does. If you want to upload a custom curve that you cannot generate with this tool, you can currently do that if you edit the .conf file and reload it. You have to set all 256 points though.

The 2015+ jvc autocal software itself only provides 12 control points for gamma, and the .jgd file contains the 12 y-values which can be uploaded to the software.  I'm not sure what the projector does with the remainder of the 256 points, but that's not my concern. I am simply looking for an equivalent function for the 2014 projectors, since their autocal software does not include the .jgd upload function.
Thanks.

The projector only accepts curves with 256 points. I cannot provide the equivalent function without knowing how those points are calculated from the values in the .jgd file.
I could probably figure this out by uploading a curve with autocal and downloading the 256 point curve, but I don't see a lot of value in this, so I'm not prepared to spend much time on this. If you can provide the mapping function though, I can add an import option.

I had assumed (incorrectly) that autocal uploads the 12 values to the
projector. Based on what you just said, the software apparently
interpolates the 12 values to 256 points prior to uploading; then indeed it
would not be worthwhile to duplicate the function.
Thanks for the excellent work.
On Sun, Mar 12, 2017 at 10:37 PM Arve Hjønnevåg notifications@github.com
wrote:

The projector only accepts curves with 256 points. I cannot provide the
equivalent function without knowing how those points are calculated from
the values in the .jgd file.
I could probably figure this out by uploading a curve with autocal and
downloading the 256 point curve, but I don't see a lot of value in this, so
I'm not prepared to spend much time on this. If you can provide the mapping
function though, I can add an import option.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/arvehj/jvcprojectortools/issues/6#issuecomment-286002374,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYx6SbO2bo46EuTSVZfhCBI-v8852kcAks5rlKv5gaJpZM4MFsDx
.

Hello Arve,
Thank you for the excellent JVC Projector Tool that has helped so many
owners.
I've only started using it recently, and have come across a very minor
issue:
I was experimenting with SG, and tried 0 to see how it affects the curve.
The tool returned the following message:
0.0 < 0.0001
clip_gamma [0.0001,10000.0]
which implies the lower legal limit is 0.0001.  However, entering any value
less than 0.001 would lead to a "float division by 0".
This may be of no practical concern, but I thought I should report it.
Thanks again.
Dominic Chan
On Mon, Mar 13, 2017 at 12:12 AM, GDC goggled@gmail.com wrote:

I had assumed (incorrectly) that autocal uploads the 12 values to the
projector. Based on what you just said, the software apparently
interpolates the 12 values to 256 points prior to uploading; then indeed it
would not be worthwhile to duplicate the function.
Thanks for the excellent work.
On Sun, Mar 12, 2017 at 10:37 PM Arve Hjønnevåg notifications@github.com
wrote:

The projector only accepts curves with 256 points. I cannot provide the
equivalent function without knowing how those points are calculated from
the values in the .jgd file.
I could probably figure this out by uploading a curve with autocal and
downloading the 256 point curve, but I don't see a lot of value in this, so
I'm not prepared to spend much time on this. If you can provide the mapping
function though, I can add an import option.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/arvehj/jvcprojectortools/issues/6#issuecomment-286002374,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYx6SbO2bo46EuTSVZfhCBI-v8852kcAks5rlKv5gaJpZM4MFsDx
.

authors: arvehj dcchan2 sonicHeart

repo: arvehj/jvcprojectortools


text:
Add docker scripts for production and development

Tasks:

[x] Create a Dockerfile
[x] Create a Docker Compose file (docker-compose.yml)
[x] Enable hot-reloading for local development
[x] Update documentation

Closes #5

lgtm @PiyushXCoder !!

@PiyushXCoder Great work!


text:
Pass CallStack to error handlers

Fixes #6

Thanks!

authors: arybczak mmhat

repo: arybczak/effectful


text:
useInkWell parameter doesn't have any effect

Tried to setup useInkWell: false to prevent ripple effect on click but it doesn't work.

Maybe you can add something you have tried or a piece of code?

authors: SilkeNL alexIvantsov

repo: aryzhov/flutter-expandable


text:
Refactor the class viewer and level up dialog

While working through the various enriched HTML bugs as part of version 1.7.2, I ran into a lot of difficulty with enriching the fields and content for the class viewer and level up dialog. There's a lot of really old code in there and it was over engineered in hindsight.
Acceptance Criteria

[ ] Refactor the level up dialog to use pack indexes for better performance.
[ ] Abstract the logic used for merging items from the world and items from the compendium in order to simplify things like enriching their HTML fields in one place.
[ ] Move it into a separate application outside of the character sheet
[ ] Other improvements as they become neccessary/apparent

Hi! I want to coordinate efforts: I'd like to refactor DwActorSheet._onLevelUpSave so I can change the HP calculation more easily.
Context: I've been working on an Uncommon World module for the past week, and changing the HP formula so far involves subclassing DwActorSheet and overriding _onLevelUpSave with a slightly modified version.
I wanted to check if you're amenable to accepting PRs, and after seeing this ticket I also wanted to ask if I should wait for this refactor to be done before I start butchering refactoring _onLevelUpSave.
Cheers!

Hi @somnolik! I'm definitely open to PRs for anything on the system. I don't have a specific timeline for when I'll start this refactor, but I do believe it will be the first thing I prioritize when I am actively working on new DW features again.
If you want to implement your override before the refactor is done, feel free to link to your override in a comment here and I'll add it as a checklist item to make sure you're notified before the eventual refactor goes out.

authors: asacolips somnolik

repo: asacolips-projects/dungeonworld


text:
Disallowed certain item types on actors

In GitLab by @Asacolips on Sep 26, 2023, 09:16
Reported by Mana in the Foundry discord:

Invalid item types are allowed on both characters and NPCs. For example, npcMoves on characters and moves on NPCs. Update the actor class to prevent invalid item types from being added.
Additionally, tagging seems to have a bug:

actor-sheet.js:698 Uncaught (in promise) TypeError: tag.toLowerCase is not a function
    at PbtaActorNpcSheet._activateTagging (actor-sheet.js:698:25)
    at PbtaActorNpcSheet.activateListeners (actor-sheet.js:421:12)
    at PbtaActorNpcSheet._render (foundry.js:5783:10)
    at async PbtaActorNpcSheet._render (foundry.js:6473:5)

Lastly, investigate using Set rather than the array structure used on that portion of the code.

In GitLab by @mclemente on Nov 13, 2023, 20:59
mentioned in commit b04957be8a48c8232e96a67a249422d24b3b6a29

In GitLab by @mclemente on Nov 13, 2023, 20:57
mentioned in commit mclemente/pbta@86228c6b0ed52478c195d31b3b6e50d799e0c9cc

repo: asacolips-projects/pbta


text:
Do not save corpus every iteration

Corpus[i] = Corpus[0] + complete_stem_dict[i].
It is possbile to delete the corpus at the end of each iteration (except for first iteration).

Implemented, needs better testing

repo: asaf-kali/generic-iterative-stemmer


text:
Title page for each chapter?

Is it possible to have a title page for each chapter? I have an asciidoc similar to the following:
= My title: Subtitle
:revnumber: Blah.1.0
:revremark: CONFIDENTIAL
:title-page:
:toc:
:toclevels: 1
:source-highlighter: rouge
:icons: font
:doctype: book

:leveloffset: +1

[preface]
include::preface.adoc[]

:module-number: 1

include::welcome.adoc[]

:module-number: 2

include::mod2.adoc[]

:module-number: 3

include::mod3.adoc[]

:module-number: 4

include::mod4.adoc[]

:module-number: 5

include::mod5.adoc[]

:module-number: 6

include::mod6.adoc[]

:module-number: 7

include::mod7.adoc[]

:module-number: 8

include::mod8.adoc[]

:module-number: 9

include::mod9.adoc[]

:module-number: 10

include::mod10.adoc[]

:module-number: 11

include::ending.adoc[]

[appendix]
include::appendix1.adoc[]

[appendix]
include::appendix2.adoc[]

:leveloffset: -1

Each one of the .adoc files has :title-page: declared, but it seems that with the :doctype: book at the top level, the title pages for the individual modules don't show up. Is there a way for the individual modules to also call the :title-page: attribute?
Please feel free to poke holes in my understanding of how this should work or point out places where I'm doing things sub-optimally. Thanks!

Is it possible to have a title page for each chapter?

Not built in.
The converter is designed be extended for addressing precisely this type of use case. You can find information about how to extend the converter here: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#extending-the-converter
Here's an example:
class CustomPDFConverter < (Asciidoctor::Converter.for 'pdf')
  register_for 'pdf'

  def layout_chapter_title node, title, opts = {}
    layout_heading title, opts
    stroke_horizontal_rule 'DDDDDD', line_width: 0.5
    move_down @theme.block_margin_bottom
    theme_font :base do
      layout_prose 'More text here'
    end
    start_new_page
  end
end

Each one of the .adoc files has :title-page: declared

That's not the purpose of the title-page attribute. The title-page attribute is to enable the title page for the article doctype, which normally doesn't get one.
If you were to extend the converter, I would recommend using a different attribute name.
(You might also consider just using parts, which already get a dedicated page).

Interesting! Thank you! I'll look into this. In the short term, I just put up an image as the first page of each chapter.

authors: chuck-confluent mojavelinux

repo: asciidoctor/asciidoctor-pdf


text:
Conversion option template_dirs

Hi there,
I tried using the option template_dirs by specifying the directory as a path (string) for a slim template with no success. I got:
Exception in thread "main" org.jruby.exceptions.RaiseException: (NoMethodError) asciidoctor: FAILED: C:/axb/_docs/test_guide.adoc: Failed to parse source, undefined method `each' for "C:\\axb\\_docs\\backends\\slim\\docbook45":String
	at RUBY.load(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1362)
	at RUBY.convert(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1458)
	at RUBY.convert_file(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1562)
	at RUBY.convertFile(<script>:68)
	at org.jruby.gen.InterfaceImpl579737299.convertFile(org/jruby/gen/InterfaceImpl579737299.gen:13)

From the error (undefined method `each')  it seems a list is expected rather than a directory. I've tried both:
	if (cmd.hasOption("T")) {
		String d = cmd.getOptionValue("T");
		File b = new File( d );
		File[] list = b.listFiles();
		options.put("template_dirs", d );
	}

	// Run the conversion
	if (cmd.hasOption("f")) {
	String f = cmd.getOptionValue("f");

    String html = asciidoctor.convertFile(
        	new File( f ),
            options
        );
    System.out.println(html);
   }

If the data is given as a list (the content of the directory/files) it fails that way:
Exception in thread "main" org.jruby.exceptions.RaiseException: (NoMethodError) asciidoctor: FAILED: C:/axb/_docs/test_guide.adoc: Failed to parse source, undefined method `nil_or_empty?' for #<Java::JavaIo::File:0x7ff19c33>
	at RUBY.load(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1362)
	at RUBY.convert(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1458)
	at RUBY.convert_file(C:/MultiPlatform/ruby/lib/ruby/gems/2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1562)
	at RUBY.convertFile(<script>:68)
	at org.jruby.gen.InterfaceImpl579737299.convertFile(org/jruby/gen/InterfaceImpl579737299.gen:13)

What data type is the option template_dirs? Do I wrong or is this a bug in the current version?
Many thanks for any help in advance

I think the issue is because the option should be set as a List instead of File.
Seeing the example code seems you are directly building the options map. Truth be told, building options is not easy unless you have a clear idea of what happens under-the-hood.
To avoid problems, I strongly recommend using the OptionsBuilder. It offers many methods that take care of conversions. In your case, you could do something like this:
OptionsBuilder options = OptionsBuilder.options();

if (cmd.hasOption("T")) {
    String d = cmd.getOptionValue("T");
    options.templateDir(new File( d ));
}

. . .

String html = asciidoctor.convertFile(
            new File( f ),
            options
        );

Also, have a look at the AttributesBuilder.

Hi Abel Salgado,
thanks a lot for your (very fast) response, You saved my (first) day (diving into AsciidoctorJ).
Yes, you're right. It works as you recommended. I'll always use the  attributes and options builder classes to prevent such pitfalls.
Thanks a lot.

Glad it was helpfull.
You'll be interesting in checking the Integrator's guide that @robertpanzer has prepared for version 1.6.0.
It's a WIP thing and there some differences with the current version (1.5.4), for instance the extension API has been greatly improved, but nevertheless I think it's a great introduction to the API. Also, let us know if you think that anything can be improved.

Hi Abel Salgado,
thanks a lot, again. I read the Integrator's Guide (and the documents referenced from this Guide). I'm really impressed what is possible going from Ruby to JRuby to make the code available on a JVM.
I'm working on a smaller project that uses Asciidoc as an abstraction layer for creating several type of reports  - rendered in the very end to HTML or PDF. I was seeking for a replacement of the Python implementation of the Asciidoc processor Asciidoc (issued by Stuart Rackham) and came accross Asciidoctor ...
Asciidoc is a very interesting piece of software but the regex approach for building the parser blocks is not that easy to understand (and not well documented). I managed to create a backend for my needs (based on Bootstrap) but it took some days of re-engineering to understand how its works. It is possible to cross-compile the python code to have a standalone solution w/o the need of a Python runtime but this changes the behavoiur (the run-time environment) of Asciidoc in some way.
The Asciidoctor way seems to me the better solution. Techniclly from the (more modern/flexible) code base prospective and the possibilities to use the same code for JAVA and JavaScript. The template approch using standard tools  (I'm intended to use HAML) makes it much more easier - and faster/more stable - to create a backend/template for Asciidoctor if needed.
Yes, I'll definitively put some comments on your project. As always things can be improved, I'll give my 50 Cent on it. My project is focussing more on how  Asciidoctor can be used as a product rather than to integrate Asciidoctor as an API in customized code. But anyway, some documentation, that I need to write, may helpful for other people if they dive into Asciidoctor the first day/s. And it might be an real world example using Asciidoc/Asciidoctor to see what is ePublishing/eDocument Factory all about.
It will took some more days to port the Bootstrap backend from Asciidoc to Asciidoctor (and a bunch of other helpful code/JavaScripts) but I think around Easter a first version can be presented. What do you think  would be the best place (in Asciidoctor's envrionment) to present such a project/use case?

some documentation, that I need to write, may helpful for other people if they dive into Asciidoctor the first day/s.

We are always looking for more documentation, so this would be a very welcomed contribution in whatever form you are willing to share it.

authors: abelsromero jueadams mojavelinux

repo: asciidoctor/asciidoctorj


text:
表記揺れの辞書に追加

prh.ymlに辞書を追加すると表記揺れをCIでチェックできるようになる

prhでの用語統一

patternsなしなら、大文字小文字などを統一できる。
Code記法などは無視されるので、実行結果のコメントとかにはLintはされないのでスルーされる。
おそらく足すもの
- expected: BigInt
- expected: アクセッサプロパティ
  patterns:
    - アクセサプロパティ

#1608
#1610

他に表記揺れの辞書でカバーできるものがないかを軽くチェックする

https://github.com/asciidwango/js-primer/labels/Type%3A Errata

TODO

[ ] 辞書に追加
[ ] npm run textlint:no-cached で確認

prhでの用語統一 自体に追加方法を足しても良い気がしてきた

https://github.com/asciidwango/js-primer/pull/1625

repo: asciidwango/js-primer


text:
feat(string): 部分文字列の取得について

String#sliceとString#substringについて
書いてみたけど、マイナスのケースとか、逆転のケースとかの異常系っぽさがある。
正常系のみに絞るとかをした方が良いようにも思えるけど、マイナスとかありそうで直感的じゃない挙動だし知っておいたほうがいい系なのかなー
マイナスを上手く活用するというよりは、常に正常系で扱うようにコントロールしようというのが正しい感じがする。

最悪、このセクション自体なくても良いな。


text:
rename branch ref to main

After this PR is merged the master branch should be renamed to main.

Can you try rebasing this?

Note this should wait for https://github.com/asdf-format/asdf-transform-schemas/pull/85

authors: WilliamJamieson braingram

repo: asdf-format/asdf-transform-schemas


text:
AshGraphql 0.28.1 breaks when resource is in more than one API

Describe the bug
This bug is for a project that I haven't update to Ash 3 yet, so I'm not sure if the same bug is reproducible in Ash 3 with the latest version of Ash Graphql.
Adding a resource that is used by AshGraphql in two or more APIs, will break compilation.
To Reproduce
Have a resource that has AshGraphql.Resource extension, then add it to two different APIs which also uses AshGraphql.Api extension.
During compilation, it will fail with a bunch of errors like this one:
== Compilation error in file lib/core/graphql/schema.ex ==
** (Absinthe.Schema.Error) Compilation failed:
---------------------------------------
## Locations
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3132
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3132

Type name "AppointmentDataType" is not unique.

References to types must be unique.

> All types within a GraphQL schema must have unique names. No two provided
> types may have the same name. No provided type may have a name which
> conflicts with any built in types (including Scalar and Introspection
> types).

Reference: https://github.com/facebook/graphql/blob/master/spec/Section%203%20--%20Type%20System.md#type-system
---------------------------------------
## Locations
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3132
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3132

Absinthe type identifier :appointment_data_type is not unique.

References to types must be unique.

> All types within a GraphQL schema must have unique names. No two provided
> types may have the same name. No provided type may have a name which
> conflicts with any built in types (including Scalar and Introspection
> types).

Reference: https://github.com/facebook/graphql/blob/master/spec/Section%203%20--%20Type%20System.md#type-system
---------------------------------------
## Locations
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3146
/var/home/sezdocs/projects/rebuilt/platform/core/deps/ash_graphql/lib/resource/resource.ex:3146

Type name "AppointmentSortField" is not unique.

References to types must be unique.

> All types within a GraphQL schema must have unique names. No two provided
> types may have the same name. No provided type may have a name which
> conflicts with any built in types (including Scalar and Introspection
> types).

Reference: https://github.com/facebook/graphql/blob/master/spec/Section%203%20--%20Type%20System.md#type-system

Expected behavior
I think that AshGraphql should identify that the resource is the same and work with multiple APIs
** Runtime

Elixir version 1.16.3
Erlang version 26.2.5
OS Fedora Silverblue 40
Ash version 2.20.3

AFAIK this is fixed in 3.0. Do you need a back port fix or can you wait to update to 3.0 for the fix?

We do plan to upgrade to Ash 3 in the next few weeks, so for now we can just "duplicate" the resource in the other API as a workaround. Thanks!

authors: sezaru zachdaniel


text:
Installation

download the latest release of the module, and drop the ColourFlash folder into the '//Keep Talking and Nobody Explodes/mods' folder.

The instructions say to copy the ColourFlash folder from the repository, but there doesn't seem to be any such folder.

Apologies, that's just a copy and paste issue from my other module's README. I'll my just fix that now.

I don't see a PianoKeys folder in the repo either. Is it just the whole Assets folder I need to copy over?

There's a build in the releases page https://github.com/ashbash1987/ktanemod-pianokeys/releases that contains what you need to get going.

Ah, I see now. Thanks!


text:
Is this Accepted By Apple ?

I have used tonymillion's reachability for my app developed by me but it got rejected as My App was connecting  to a particular host, and my app's interface was available for that connection, or for  WWAN networks.
So if i Used your reachability will it detect above type connection ?

any update on this?

@rakshitkorat I'm not sure what you're asking - could you please give more details? You might find it quicker to ask your question on Stack Overflow

I user this framework for an app that was accepted on App Store.


text:
poloniex buy order confirmation not received

Note: for support questions, please join our Discord server

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Action taken (what you did)
I have a strategy running and have noticed a few times this happening; and buy order is placed, the orders is executed on the exchange but the confirmation never comes.
17:29:16 (DEBUG):	In uptrend since 2 candle(s): @ 0.01817225
2018-02-10 17:29:16 (DEBUG):	BUY@  0.01817225  ( 0.018217680625 )
2018-02-10 17:29:16 (INFO):	Trader Received advice to go long. Buying  LTC
2018-02-10 17:29:18 (INFO):	Attempting to BUY 0.2526270007627706 LTC at Poloniex price: 0.01817771

I did change something in the code but this should not influence this:
--- a/plugins/trader/portfolioManager.js
+++ b/plugins/trader/portfolioManager.js
@@ -253,9 +253,9 @@ Manager.prototype.noteOrder = function(err, order) {
   }

   this.orders.push(order);
-  // if after 1 minute the order is still there
+  // if after 20 minute the order is still there
   // we cancel and calculate & make a new one
-  setTimeout(this.checkOrder, util.minToMs(1));
+  setTimeout(this.checkOrder, util.minToMs(20));

there is no error message; sometimes I see "Poloniex returned an error, retrying.." but it's not the case now.

Expected result (what you hoped would happen)
I expect the order confirmation to be received  every time

Actual result (unexpected outcome)

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
exchange poloniex
Gekko v0.5.12

Could you format the code that you changed?

It looks like you added a new timeout for noteOrders, so there are now 2. Why did you do this?

reformated to code now. I changed the timeout to be 20 min.
I did this a a quick way to make gekko not cancel the sell orders it was placing and keep them at the original sell price for at least 20 min.
I had a better look at the logs and it looks like I do get the BUY order execution confirmation, but after 20 min, which makes sense given the changes I made.
But this raises another question - since this is not the right way to do it, how do I achieve what I was looking for: stop gekko from canceling the orders it places after 1 min. I want it to place an order at a given price (even if for now I can't specify the price and can only issue an advice once the price is reached) and keep it there until executed.

Right now it's a bit hard to hack that in, but it won't be for long. I'm working on the concept of "execution strategies", where how a trade gets executed (we need to sell X BTC into USD) will be managed outside the portfolioManager. See here for the idea: https://github.com/askmike/gekko/pull/1834#issuecomment-362974808

stop gekko from canceling the orders it places after 1 min

This is current behaviour, in the future Gekko won't cancel if the order is still at the top of the book.

authors: aapsoftware askmike

repo: askmike/gekko


text:
Add EURETH and EURLTC pairs to GDAX exchange file

GDAX now has EURETH and EURLTC markets that were previously not supported by Gekko. This PR will add support for them.

Thanks!

authors: askmike pelletencate


text:
Added support for newest tensorflow

closes #8 , closes  #11 , closes  #12

I have changed both main.py and test.py to support latest tensorflow.
In main.py, I have implemented more elegant way to save model rather than saving architecture and weights separately.
Unfortunately I was not able to load earlier saved model in latest versions. I have added code to load model for models saved with updated main.py.
requirements.txt is also changed with versions on which I have tested this PR.

Please do review PR and tell me if there are any changes 😄 .
Thanks.

Thanks very much for this! :) It works great. I've actually managed to train the WRN-28-10 architecture so have push these to GitLFS also in https://github.com/asmith26/wide_resnets_keras/pull/14


text:
Incompatibility with bazel for info bazel-bin --color=no

Was playing around with aspect and noticed that aspect info bazel-bin --color=no errors out while the corresponding bazel invocation doesn't.

@irfansharif thanks for reporting this bug. We fixed it in #204 and it went into the v0.5.0 release.

repo: aspect-build/aspect-cli


text:
"HTTP Error 500.30 - ANCM In-Process Start Failure" in Azure when CPU and Memory are maxed out

If you believe you have an issue that affects the security of the platform please do NOT create an issue and instead email your issue details to secure@microsoft.com. Your report may be eligible for our bug bounty but ONLY if it is reported through email.
Describe the bug
When CPU (100%) & memory (90%) are maxed out in Azure App Service, the application fails to start with Http error 500.30 - ANCM In-process Start Failure.

As per event log:
<Event>
<System>
<Provider Name="IIS AspNetCore Module V2"/>
<EventID>1007</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-05-20T03:35:32Z"/>
<EventRecordID>648962046</EventRecordID>
<Channel>Application</Channel>
<Computer>xyz</Computer>
<Security/>
</System>
<EventData>
<Data>
Application '/LM/W3SVC/1272574654/ROOT' with physical root 'D:\home\site\wwwroot\' failed to load clr and managed application. Managed server didn't initialize after 120000 ms.
</Data>
<Data>Process Id: 123884.</Data>
<Data>
File Version: 12.2.19024.2. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 522705f9a27b99ca4ad261f2e89fe51a77b2338e
</Data>
</EventData>
</Event>

To Reproduce
Steps to reproduce the behavior:

Make sure your app service is at 100% CPU
Deploy a new web application (.net core 2.2 & with In-process)
Try sending any request
See error

Expected behavior
Give more meaningful exception on why application failed to start.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of dotnet --info

I’m not sure we can easily attribute the 100% or 90% CPU usage to the reason why ANCM fails to start. Even though it could be the cause, it’s not necessarily correct to assume it is.
How did you end up in this situation? What was causing the 100% CPU? We’re you just at capacity?

How did you end up in this situation? What was causing the 100% CPU? We’re you just at capacity?

We have 61 apps deployed on small single instance.

Do you have the autoStart feature enabled? Can you try increasing the startupTimeoutLimit? See https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#attributes-of-the-aspnetcore-element

I’m not sure we can easily attribute the 100% or 90% CPU usage to the reason why ANCM fails to start. Even though it could be the cause, it’s not necessarily correct to assume it is.

We ran few experiments & it feels like it is high CPU usage which is causing application not to start. For example, when our application doesn't start, by simply stopping an existing app in 'Application Service plan'  then our application starts.
Again this might be symptoms not actual problem.

Do you have the autoStart feature enabled? Can you try increasing the startupTimeoutLimit? See https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#attributes-of-the-aspnetcore-element

How do I make sure autoStart is enabled?
Also, the default timeout is 120s (which I think is high enough). what are we trying to achieve by increasing it?

It sounds like this is timing out (as per the event log) this is a likely situation if you have a lot of apps starting on a machine with a lot of CPU load. Moving to discussions for now as there isn't an actionable work item for us right now. We can't expose the detailed error in the error page and the event log is pretty clear about what's happening (we don't know that the timeout is due to CPU usage, we have no way of being sure of that).

It sounds like this is timing out (as per the event log) this is a likely situation if you have a lot of apps starting on a machine with a lot of CPU load. Moving to discussions for now as there isn't an actionable work item for us right now. We can't expose the detailed error in the error page and the event log is pretty clear about what's happening (we don't know that the timeout is due to CPU usage, we have no way of being sure of that).

I disagree that event log is clear. All Event log is mentioning is that the process failed to start after 120s. No mention of why it failed.
Also, as a developer I have no control over the error page (Http error 500.30 - ANCM In-process Start Failure). I don't want to show that to my customer/end-users.

No mention of why it failed.

Because we don't know why it failed. It could be because your startup logic has long-running code, or it could be because the CPU is so busy it caused the startup logic to take too long. We don't know which it is, all we know is that the startup logic didn't complete in the expected time which is exactly what we report. If you think the error message could be rephrased to make that clearer, we can look at doing that.

Also, as a developer I have no control over the error page

This is the page generated by ANCM, but I believe you can customize it in your web.config file using the <httpErrors> section

No mention of why it failed.

Because we don't know why it failed. It could be because your startup logic has long-running code, or it could be because the CPU is so busy it caused the startup logic to take too long. We don't know which it is, all we know is that the startup logic didn't complete in the expected time which is exactly what we report.

Shouldn't we be logging more logs that can give more clues on why it is taking so long (not sure if we can enable more logs on startup). The code we tried was bare bone template from VS so pretty sure start-up was as slim as possible. Is it not possible to log information that happened before it called the startup logic?
Few other things we have noticed:

Once in-process Application has started it keeps working given the same environment
the behaviour doesn't seem to happen for Out of process application.

Have you configured logging to be more detailed? By default we are pretty light on what we log to the Information level to avoid overloading systems. If you turn the logging up to Debug or Trace you would get a bunch of extra information. If there are areas where more logs would help you identify this issue, we can certainly look at adding more logging.
It's my understanding that your App Service is already at 100% cpu when you start, right? I'm not sure what additional logging would help here. If your server is under heavy load, things get slower and timeouts elapse. If this is a common situation, you may have to just increase these timeouts to compensate. What is the steady-state CPU load for your app (i.e. the CPU load when all the apps are running smoothly)?

authors: anurse davidfowl jkotalik uniqueumang

repo: aspnet/AspNetCore


text:
Please could someone provide a Blazor template that has a normal menu bar

The Blazor template has a nav menu that is a side bar. Despite many multiple attempts I have not been able to get a normal top menu bar working satisfactorily (may be my unfamiliarity with Blazor). Can you provide an option to create a template with a top menu bar?

Hi @robalexclark. We don't plan to provide an alternative version of the template with a top menu bar, but you should be able to update the template code to add your own menu bar with with normal HTML and CSS.  Can you share with us what issues you've been having getting a top menu bar to work in a Blazor app?

@robalexclark If you mean template like in ASP.NET Core. You can take a look in MenuHorizontal.
It used the CSS and layout from ASP.NET Core template.

I understand that the menu is just driven by bootstrap but being new to blazor I really struggled to unpick the sidebar and get it across the top. I probably spent 5-6 hours trying/crying to get it to work but hit issues (I know it shouldn't be this hard - right!?).
I think that there will be many folks that hit the same issue and struggle to get this working. Thank you @soeleman for the demo, it looks good and I've managed to copy it into a new app.
There is a bounty available at https://stackoverflow.com/questions/58235005/blazor-template-with-menu-across-the-top for you to answer with your demo if you want.

Thanks again to @soelman for his work which I built on and produced a repo with a top menu bar:
https://github.com/robalexclark/BlazorTopMenu

authors: danroth27 robalexclark soeleman


text:
Link Header CSS Performance

Is your feature request related to a problem? Please describe.
CSS is define in csthml like this:
   <link rel="stylesheet" href="~/mystylesheet.min.css" asp-append-version="true" />
Performance issue:
Browser must start read html code and link element to begin to request the stylesheet.
Solution:
Use Link header:
            Response.Headers.Add("Link", "</mystylesheet.min.css>; rel=\"stylesheet\"");
Now, when browser read header, it can start to request the css in parallel of html page.
Implemenation:
Add a attribute to link to add this link directly in the Link header:
   <link rel="stylesheet" href="~/mystylesheet.min.css" asp-append-version="true" header="true" />

I don't think the feature is well-supported across browsers. Example: https://bugs.chromium.org/p/chromium/issues/detail?id=19237
Do you have of a more recent listing that describes what the status for HTTP Link headers for is across browsers?

No, it is difficult to found browser compatiblity on it.

In the absence of standard support across browsers, I don't think it makes sense to support this feature.

authors: daikoz pranavkm


text:
Enabling and conditioning the 'NuGetCommand' task

Enabling and conditioning the 'NuGetCommand' task.
@jkotalik
Can you validate this please.
@dotnet/dotnet-cli

Reference: https://github.com/dotnet/core-sdk/issues/2144

Closing in favour of update to the release pipeline. Thanks @johnbeisner and @jcagme🥇

authors: dougbu johnbeisner


text:
Rewrite Middleware to its own repo?

I feel that eventually the Rewrite middleware should be in its own repo. It has gotten to the point where it is almost on the scale of Routing, and with the inevitable extensions that will be added, it will grow more.
Just a thought.

It's fine where it is for now.

authors: jkotalik natemcmaster

repo: aspnet/BasicMiddleware


text:
Replace services independent from their lifetime

Hi,
I was wondering if it possible to replace a service implementation independently from its service lifetime..? For now, afaik, one is only able to call the IServiceCollection.Replace(...) - extension providing the lifetime of the service to be replaced.
The point is, that I only would like to specify the lifetime of a service once and only once. Imagine the following:
public IServiceCollection UseExtraCostlyDependencies(this IServiceCollection services) {
	services.AddSingleton(...);
	services.AddSingleton(...);
	services.AddTransient(...);
	services.AddScoped(...);
}

Looking at other extension methods to use fake implementations for those costly dependencies, I'm forced to replace them dependent on their lifetime:
public IServiceCollection UseFakesForExtraCostlyDependencies(this IServiceCollection services) {
	services.Replace(ServiceDescriptor.Singleton(...));
	services.Replace(ServiceDescriptor.Singleton(...));
	services.Replace(ServiceDescriptor.Transient(...));
	services.Replace(ServiceDescriptor.Scoped(...));
}

Think of them as being serveral extensions methods, I'm just too lazy to write them all down - but I guess you get the point.
Long story short: The higher the count of real/fake-implementation - correlations, the higher the chance to mismatch a service lifetime when replacing them with fakes. This would potentially lead to inconsistet application behavior in different stages.
Is there maybe already a solution to my problem? Do I maybe apply the pattern wrong?
kind regards,
Peter

It should be easy enough to write an extension method that pulls an existing ServiceDescriptor and replaces it with a new one, keeping the ServiceType and Lifetime. Let me see if I can find one...

I know I had something lying around in one of my test projects;
public static class ServiceCollectionExtensions
{
    public static IServiceCollection Replace<TService, TImplementation>(
        this IServiceCollection services)
        where TImplementation : TService
    {
        return services.Replace<TService>(typeof(TImplementation));
    }

    public static IServiceCollection Replace<TService>(
        this IServiceCollection services,
        Type implementationType)
    {
        return services.Replace(typeof(TService), implementationType);
    }

    public static IServiceCollection Replace(
        this IServiceCollection services,
        Type serviceType,
        Type implementationType)
    {
        if (services == null)
        {
            throw new ArgumentNullException(nameof(services));
        }

        if (serviceType == null)
        {
            throw new ArgumentNullException(nameof(serviceType));
        }

        if (implementationType == null)
        {
            throw new ArgumentNullException(nameof(implementationType));
        }

        if (!services.TryGetDescriptors(serviceType, out var descriptors))
        {
            throw new ArgumentException($"No services found for {serviceType.FullName}.", nameof(serviceType));
        }

        foreach (var descriptor in descriptors)
        {
            var index = services.IndexOf(descriptor);

            services.Insert(index, descriptor.WithImplementationType(implementationType));

            services.Remove(descriptor);
        }

        return services;
    }

    private static bool TryGetDescriptors(
        this IServiceCollection services,
        Type serviceType,
        out ICollection<ServiceDescriptor> descriptors)
    {
        return (descriptors = services.Where(service => service.ServiceType == serviceType).ToArray()).Any();
    }

    private static ServiceDescriptor WithImplementationType(this ServiceDescriptor descriptor, Type implementationType)
    {
        return new ServiceDescriptor(descriptor.ServiceType, implementationType, descriptor.Lifetime);
    }
}

You use it like this:
var services = new ServiceCollection();

services.AddSingleton<ISingleton, Singleton>();
services.AddScoped<IScoped, Scoped>();

services.Replace<ISingleton, FakeSingleton>();
services.Replace<IScoped, FakeScoped>();

var provider = services.BuildServiceProvider();

var singleton = provider.GetRequiredService<ISingleton>(); // FakeSingleton
var scoped = provider.GetRequiredService<IScoped>(); // FakeScoped

That's absolutely what I was thinking of, I didn't know one is able to pull the Descriptor-Objects out of the IServiceCollection. Thanks!
I would absolutely support integrating this extension, wondering if it's gonna happen.
Cheers,
Peter
PS: I won't change the issue state by myself, so that it can be closed by a potential PR. Feel free to manually close it nevertheless.

@khellang Do you want to send a PR for this? I think this is generally useful.
/cc @Eilon @pakrym

Do you want to send a PR for this?

Sure! 😊

Why wouldn't you care about lifetime of a service, or want it to be explicit?
This would make it so changing lifetime of service inside ASP.NET Core is a possible breaking change to apps that were unintentionally relying on inherited lifetime.

Why wouldn't you care about lifetime of a service, or want it to be explicit?

Cause you've already defined the lifetime when you first registered the service. Why would you want to duplicate this (and accidentally change it, potentially causing a lifetime mismatch) in your test code?

This would make it so changing lifetime of service inside ASP.NET Core is a possible breaking change to apps that were unintentionally relying on inherited lifetime.

Changing the lifetime of an existing service is always a breaking change anyway.
Say you have a singleton service that depends on an ASP.NET Core singleton service... You'd be in trouble if ASP.NET Core suddenly changed that registration to scoped or transient anyway.
I'm not sure why this changes anything?

It's pretty funny how different worlds we, app- and framework developers, live in 😂

Why wouldn't you care about lifetime of a service, or want it to be explicit?

Well, imho there are use cases where it could be quite useful to even reverse the definition of service lifetimes. I'm thinking about cases where it is critical to obtain new instances of a service to avoid unwanted side effects:
public class BankingTransaction {
	public BankingTransaction(IDatabaseContext ctx){
		...
	}
}

In this example I would like to use a new instance of a database connection for every banking transaction instead of reusing a (request-)scoped connection. But I can't ensure that, I need to trust the caller, that an implementation of IDatabaseContext was registered as a transient service. To speak codewise, I cannot do that:
public static IServiceCollection UseCoreBankingServices (this IServiceCollection services) {
	//Add own services...

	//I need one and exactly one instance of IDatabaseContext, which was registered as a transient service
	services.AddTransientRequirement<IDatabseContext>();

	return services;
}

Hope this isn't too fuzzy so far...
To get to the point of this issue:
I know, that the functionality mentioned above will presumably never make it into the Microsoft DI package. But to at least be able to maintain service lifetimes at one point in the code, it would really be a nice feature to replace implementations by fakes/mocks, without having to repeatedly specify their lifetime.

@khellang but the lifetime isn't a property of service it's property of implementation.

I don't know what to tell you. Maybe we're doing it wrong? :wink:
I've used this code in several projects, and since other people are asking for it, it seems like something that could be generally useful.
Anyway, it's up to you whether you want to accept the PR or not :smile:

This is useful , the problem I see with the impl is that it requires the existing registration to be in the service collection and it’s very inefficient since it has to scan.

it requires the existing registration to be in the service collection

How would you replace something that's not there to replace?

it’s very inefficient since it has to scan

Sure, but who cares? You really need this code to be blazing fast? We've been running this code in our unit- and integration tests for over a year and haven't noticed it.

How would you replace something that's not there to replace?

You can imagine an operation that basically stores the service descriptor with a null lifetime. When binding happens it would use the lifetime of the previous descriptor in the chain. This would require container changes though so I'm not too big on it.

Sure, but who cares? You really need this code to be blazing fast? We've been running this code in our unit- and integration tests for over a year and haven't noticed it.

It's not about i being "blazingly fast" but we already have TryAdd (that's already inefficient), not with Replace we have more linear scans per service. That could affect startup time in the long run.

That could affect startup time in the long run.

In my eyes that falls into the premature optimization bucket. If it becomes a problem for someone, it can be improved later without API changes.

@davidfowl This is one of the reasons we built EntityFrameworkServicesBuilder and ServiceCollectionMap. It allows EF to define services and scopes which are then optionally replaced by database providers or the application without the the provider/app messing with or guessing at the scope.

This issue was moved to aspnet/Home#2328

authors: ajcvickers aspnet-hello davidfowl khellang pakrym peterwurzinger

repo: aspnet/DependencyInjection


text:
Add TryAddEnumerable overload and Add implementation factory overloads

These changes will help make AddEntityFramework() idempotent
@rynowak This change removes the exception thrown by TryAddEnumerable, will this break any scenarios for MVC?
/cc @davidfowl

Hi @mikary, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Quick example of the pattern we are using for the new AddTransient, AddScoped and AddSingleton overloads. After these changes, the following will be idempotent and not collide with other types in the collections
serviceCollection.TryAddEnumerable(new ServiceCollection()
    .AddScoped<IEntityStateListener, INavigationFixer>(p => p.GetService<INavigationFixer>())
    .AddScoped<IForeignKeyListener, INavigationFixer>(p => p.GetService<INavigationFixer>())
    .AddScoped<INavigationListener, INavigationFixer>(p => p.GetService<INavigationFixer>())
    .AddScoped<IKeyListener, INavigationFixer>(p => p.GetService<INavigationFixer>())
    .AddScoped<IPropertyListener, IChangeDetector>(p => p.GetService<IChangeDetector>()));

Updated with changes from PR feedback.
Went in a slightly different direction with the object error message than @halter73 suggested, but I think it's more appropriate for the intended use.

More updates from feedback

I'm still skeptical that we should be using the ServiceCollection in this way.
While I understand the desire to prevent duplicate services from being registered, looking at the implementation type of the registered service might not be the best way to prevent this from happening. What if I register two different service implementations that happen to have the same type (perhaps they were just configured differently)?
This wasn't as much of an issue when you could only register ImplentationTypes using TryAddEnumerable, because then to services with the same ImplementationType couldn't be configured differently. Now they can.
Do we expect end users to call TryAddEnumerable? If so, I think this could be very confusing considering there is already a TryAdd method that won't add a service if there is any service already in the collection with the same ServiceType. TryAddEnumerable's behavior is quite different, but I think the average user would expect it to behave similarly to TryAdd. If we don't expect end users to call TryAddEnumerable, it probably doesn't belong in ServiceCollectionExtensions.
I think this PR does a good job of extending the TryAddEnumerable functionality to ServiceDescriptors without ImplemenationTypes, but I'm not sure this is something we really want or need. Maybe I just don't understand the use case well enough yet.

It is a difficult pattern to describe / document, but seems to be useful for both MVC and EF. Perhaps it would be best to have this behavior in a different namespace or just move it into the product code. Alternatively, it might be best to revisit how EF (and other products) use the ServiceCollection, but that discussion is well beyond the scope of this PR.

After discussion, we decided to create a new issue to put the extension methods used primarily by frameworks (e.g. TryAdd  and TryAddEnumerable) into a separate namespace so we don't clutter intellisense. Since this will probably require changes to a lot of other repos, it's probably better to work on the new issue in another PR.
:shipit:

I took a look through MVC's repo and it looks like the return value of TryAddEnumerable is never used, so it makes sense to take out in this PR. Probably makes more sense to address the return value of TryAdd in #254

I would make TryAdd void in this PR. Just like you are changing the generic constraints in methods you didn't change in this PR. Might as well make it consistent since it doesn't require changing any other repos.

As long as we're looking at the type constraints, do we want to be more consistent about ensuring TService and TImplementation are reference types? About 1 in 3 of the extensions have this constraint right now.

authors: dnfclas halter73 mikary


text:
Microsoft.AspNet.Diagnostics.Elm Not Seeing Scope or Message

I copied the ElmPageSample from https://github.com/aspnet/Diagnostics/tree/c536b339d0be51429e72a3bee2f00ddb88ec68b9/samples/ElmPageSample and also tried to implement this in one of my MVC6 applications exactly as you had Elm configured in your sample. However, I never see the scope name or the message/Exception from the capture page. I am able to navigate to the CapturePage and I can see the http info such as cookies/status code etc, but not the all important error message and exception. It looks like there is a table structure below the Filter search but there is nothing there. Thank you for any assistance you can give.

@jmzagorski at this time the ELM feature is not being actively worked on so I'm putting this bug in the backlog.

thanks for the reply. I found that serilog worked for the time being even though it lacks an already developed capture page from what I could tell.

authors: Eilon jmzagorski

repo: aspnet/Diagnostics


text:
Need section on unit testing client-side development

I found the treatment of unit testing and integration testing as first class citizens in this overall document a welcome refreshing change. However, why isn't there any discussion about unit testing in the Client-side Development section? It is just as important and valid to do unit testing on the client side code (either javascript or typescript) as it is on the server side. Can you please add a sub-section on unit testing? What frameworks (jasmine perhaps) does the .Net team recommend and more importantly, how to setup the VS environment to incorporate the framework and unit testing into the overall process. So far this is a great overall document but this is a glaring hole.

I could see this being included here: https://docs.asp.net/en/latest/client-side/index.html
But otherwise, the reason it's not in the docs is because ASP.NET is a server-side technology and as such doesn't have much to do with how you might implement your client-side functionality (or even what kind of client you might be using - think web APIs and native mobile/desktop clients).

By that logic, then why have a Client-Side development section at all? Why discuss Angular or Knockout or bootstrap?
I would argue that it is because ASP.Net is a full stack development chain. It creates HTML views using razor, which carry javascript and other client side elements. New full stack web developers could use some assistance in being guided to the best practices of setting up client side unit testing in an ASP.Net Core project, just like was provided for server side unit testing.
And yes  https://docs.asp.net/en/latest/client-side/index.html is exactly where it should go. I would expect a section under that index page that would talk about setting up unit testing for javascript / typescript.

This would be great to have but given our limited resources we won't be able to do this. There are a variety of resources on the web on this topic.

authors: Rick-Anderson ardalis gregveres

repo: aspnet/Docs


text:
Update to RTM Performance/In Memory Caching

#2259

dup of #1938


text:
Feedback - Add custom user data to the Identity DB

I think it would be very helpful if it is mentioned or explained (If I am right), once scaffold-ed the IdentityUser needs to be changed everywhere (I think  in 19 files) to WebApp1User in this example?

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

ID: 431df4fc-4168-cc8f-d053-9b264d2971c1
Version Independent ID: cd157d04-d596-83fa-6edb-24d52193eb34
Content: Add, download, and delete custom user data to Identity in an ASP.NET Core project
Content Source: aspnetcore/security/authentication/add-user-data.md
Product: asp.net-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Were you starting with a 2.0 project? The instructions in the article work without any name changes.

I am doing it in 2.1 and you have also changed it to WebApp1User in the section Update the Account/Manage/Index.cshtml page

Where are the other 18 files?

I have scaffold-ed Identity UI. So it means in all other 18 pages. I think that is right procedure to replace it also in those 18 files if there were scaffold-ed?

@Rick-Anderson I know where I got confused. When I do scaffolding, I can override files, set Data Context class but my User class is disabled. So I simply scaffold-ed it without my custom user class included and I had to create it myself. Obviously all was with default IdentityUser. So the documentation is probably right :( I will close this till I figure out why my User class field in UI is disabled. Thanks.

@Rick-Anderson I found it! When I want my own User Class I must select a new Data Context, then I am able to select new User class and so on..
Ok, just  a bit more playing, I am closing this.

Ya, that's a bit tricky. I think I mentioned it in https://docs.microsoft.com/en-us/aspnet/core/security/authentication/add-user-data?view=aspnetcore-2.1&tabs=visual-studio
see also #6915

Yep, it is a bit tricky :) but works well once you figured it out. At least we have got a reference here and whoever would google it is going to find it here or in docs. Thanks @Rick-Anderson.

authors: Rick-Anderson VaclavElias


text:
Introduce Microsoft.AspNetCore.App metapackage instead of All in fundamentals/index.md

Microsoft.AspNetCore.App metapackage is recommend for applications targeting ASP.NET Core 2.1.

@Librazy Thank you for your contribution!

authors: Librazy scottaddie


text:
Fix typo in signalR snippets/index2.ts

Fix typo in signalR snippets/index2.ts

Nice catch, @sdcb! Thank you for taking the time to create a PR.

authors: scottaddie sdcb


text:
SQL Azure

Discuss current limitations and workarounds.
cref https://github.com/aspnet/EntityFramework/issues/3274 and https://github.com/aspnet/EntityFramework/issues/2969

Other than some minor bugs already tracked in EF main repo, I'm not aware of any major limitations/workarounds as of 1.0.0.


text:
IMigrationsCodeGenerator

I cannot find any reference to IMigrationsCodeGenerator or any example of how to write one.
UPDATE:
After a little searching, I have tried implementing my own IMigrationsCodeGenerator using the CSharpMigrationsGenerator instead of writing my own MyMigrationsCodeGenerator like this.
    public class EscData01DesignTimeServices : IDesignTimeServices
    {
        public void ConfigureDesignTimeServices(IServiceCollection services)
            => services.AddSingleton<IMigrationsCodeGenerator, CSharpMigrationsGenerator>();
    }

Still getting a NullReferenceException when doing add-migration so do not know if this is correct.
I am trying to add a migration to an EF Core context in a Standard 2.0 library. Added this DesignTimeServices class to my startup project. Startup project is a dotnet core 2.1 asp.net app.
If the docs contained a walk-through of using EF Core in a standard 2.0 library, it would be a big help.

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

ID: 12f23047-b153-48ba-5b66-04e4fff1212f
Version Independent ID: 1cc25f2e-41e1-4ab9-bc07-bf92d4518682
Content: Design-time services - EF Core
Content Source: entity-framework/core/miscellaneous/cli/services.md
Product: entity-framework
GitHub Login: @bricelam
Microsoft Alias: bricelam

I tried to create an EF Core context in a standard 2.0 library project was successful without any dificulity.
So what ever problem I am having with my main project has nothing to do with the problem in the docs.
Closing..


text:
EF Migrations requires full path of web.config file

Running migrate tool from the command line throws a weird error when not using the full path to the web.config file:
Works:
migrate CodeFirst.dll /startUpConfigurationFile:"D:\app\ProPharmOnePlus\web.config"
Doesn't work:
migrate CodeFirst.dll /startUpConfigurationFile:"web.config"
It would be nice if the error mentioned that it couldn't find the file instead of just saying that it can't find the connection string name

This is an EF6 issue with migrate.exe (EF6 issues are tracked at http://entityframework.codeplex.com). That said, before I send you over to open an issue there... migrate.exe has a bunch of issues and we are going to build a much more robust CLI in EF7. This isn't something our team is planning to spend time addressing in migrate.exe (mostly because it is minor compared to the all up issues the tool has) but we would accept a contribution if it was something you wanted to look at.

I'll be glad for a better CLI in EF7.  I can live with what I have till then, thanks a lot.

Uffff, I just spent a couple of hours battling this. Thanks for the tip.

I'm moving from one exception into another with the EF6 migratie.exe CLI. This tool should make live easier, not harder.

there might be some help in this SO question: http://stackoverflow.com/questions/28724546/cant-run-code-first-migrations-using-migrate-exe/29853289#29853289.  We got ours working

Also worth looking at the docs for migrate.exe if you haven't already https://msdn.microsoft.com/en-us/library/jj618307(v=vs.113).aspx. We know it has a bunch of issues.

authors: hminaya rangelier rowanmiller thepaulpage

repo: aspnet/EntityFramework


text:
RevEng: Consider a base class for IAnnotationRenderer

Base class would return false/null indicating it cannot process the annotation. Providers can override only methods for which they can understand annotations.

fixed in #8669


text:
RevEng: Allow outputting DataAnnotations instead of Fluent API

@natemcmaster this touches the SQLite provider - so you might want to have a look.
Added a flag in the templates which controls whether we use DataAnnotations attributes on the EntityType instead of FluentApi in OnModelCreating() (where they are available - some fluent API does not have an equivalent attribute).
Also removed the *CodeGeneratorHelper and the *Model classes they operated on (and which were passed into the templates) and replaced them with directly passing in a (new) ModelConfiguration object for the DbContext template and an EntityConfiguration object for the EntityType template.
Updated the tests for both SqlServer and SQLite to test both using the attributes and just using the fluent API.

With #2840, we will need to expand the Metadata => Configurations logic for more scenarios. I expect this will be true of further additions to reveng. Each addition expands the size and complexity of ModelConfiguration.
Because of the tree-like structure of metadata, I think it would be beneficial to consider restructuring the numerous ModelConfiguration.Add___Configuration()'s into using the tree visitor pattern. Then the transformation could occur using a collection of visitors. Provider-writers can add new visitors instead of needing to override the entire chain of nested calls.

@natemcmaster Re the tree visitor idea - sounds good. I'll do that as a separate PR.

@lajones Yes. This PR is already big enough. Add a TODO (and also one for the testing duplication, as we said in person)

@natemcmaster in commit b9ced12 have refactored the SQLite E2ETest classes so they inherit from a common base class. Have also updated so KeyAttribute is produced as asked for above and so that we now use DefaultSchemaName instead of "dbo". Will add the TODO for the tree-visitor.

In commit 3115251 added in a file I forgot to git add and removed some commented out code that I forgot to actually delete.

:shipit:

Checked in with commit 6adcb44

authors: lajones natemcmaster


text:
Use chaining for AddXxx methods now it is supported again.

AddLogging and AddMemoryCache now support chaining again.

:shipit:

Providers beware?

@ErikEJ I don't think so, unless I'm missing something.

I was thinking about changes to: src/Microsoft.EntityFrameworkCore.SqlServer.Design/SqlServerDesignTimeServices.cs  !?

@ErikEJ I don't think it has to return the IServiceCollection but to be consistent you could make the SQL CE one follow the same pattern.

Will do, thanks!

authors: AndriySvyryd ErikEJ ajcvickers


text:
Add support for data annotations on fields

Issue #6316

:shipit:

authors: AndriySvyryd ajcvickers


text:
Where can I learn how to use advanced APIs like SqlFragmentExpression or IMethodCallTranslator?

I'd like to know more about these advanced APIs (and others) and how I can customize EF-Core by implementing my own IMethodCallTranslator and generate some custom SQL with the SqlFragmentExpression. I'd also like to know which services are replacable and to what extent they can be customized.
Could you share some links to articles about such more advanced techniques?

@he-dev I'm not aware of any documentation or articles for these areas. I suspect your best bet is to read the code and look at the tests. Leaving this open for now to discuss with @divega as to whether or not to create a docs issue for this.

@ajcvickers I was afraid you might say that reverse-engineering is the only way. However, I'd be great if EF-Core's docs had the same quality as ASP.NET-Core where virtually every interface and service and customization is described (even with examples) and you can adjust things much more easily.

@he-dev Can you post a link to that documentation for ASP.NET Core?

@ajcvickers Here're a couple of them:
https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/aspnet/core/mvc/advanced/app-parts?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/intro?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.razor.iviewlocationexpander?view=aspnetcore-2.1
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.razor.languageviewlocationexpander?view=aspnetcore-2.1
or an extensive list of feature-interfaces:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/request-features?view=aspnetcore-2.1
ASP.NET-Core seems to be a customize-anything product whereas EF-Core a use-as-is one. As you've said in the first response, there are no such pages about EF-Core that describe various services and interfaces to override, add, replace, implement or extend in order to customize EF-Core or provider behaviour.

@he-dev Thanks for the links. Those seem much more like mainline scenarios to me. EF has a lot of application-level configuration, but almost none of it is done through implementation of services. That's only for the most advanced things that we expect only a handful of people to do, or for people writing database providers, for which we are lacking some documentation. When we find something that a lot of people need, we try to make a good configuration experience that does not require replacement of services.

authors: ajcvickers he-dev

repo: aspnet/EntityFrameworkCore