Camera is still active when user locks the device

Steps to reproduce

Go to a scene with CameraView so you can see the picture Preview
Press turn off button on the device
Check logs with adb logcat and you will see that camera is still active (at least on LG G3)

Expected behaviour
Camera preview shouldn't be active
Actual behaviour
Camera preview is active while phone is "turned off" and keeps the battery draining
Actually, when does the "preview mode" get turned off? When the component is unmounted?
Environment

Node.js version:
React Native version:react-native 0.35
React Native platform + platform version: react-native 0.35, Android 5.0

react-native-camera
Version: master

We are currently killing the camera when we go to another scene. This is not optimal as the camera needs  to mount again when we enter the camera scene. This leads to serious speed drops on android (is kinda OK on ios though). Best would be if its somehow possible to paus or just turn off the camera without destroying the whole view.

I am wondering the same question:  Actually, when does the "preview mode" get turned off? When the component is unmounted?
When our app shows the camera once we cannot make it stop capturing.

@proProbe Hey man! How do you "kill" camera?

@kesha-antonov we just destroy the view. basically we just write
if (notCameraView) {
    return null;
} else {
    return this._renderCamera();
}

Yeah, thanks! Tried that.
But I have subview:
render() {
  <View>
    {
      if shoulRenderCamera
        <Camera ... />
      else
        <Something else ... />
    }

  </View>
}

And this is not working.

This is still a big deal for Android devices because re-creating the Camera component whenever switching to and from the camera view in my app is very slow. This same logic run super-fast on an iPhone device however...
I am using react-native-router-flux and have a tab dedicated to the camera component and use this logic
      const shouldRenderCamera = this.props.redux_permission_status.camera === "authorized"
          && this.props.redux_router_scene.name === "createView"
          && (this.state.currentAppState !== "background");

      return shouldRenderCamera === true
          ? <Camera
              ref={this._setCamera}
              style={styles.preview}
              aspect={this.state.cameraConfig.aspect}
              captureTarget={Camera.constants.CaptureTarget.disk}
              captureAudio={true}
              type={this.state.cameraConfig.type}
              flashMode={this.state.cameraConfig.flashMode}
              mirrorImage={(this.state.cameraConfig.type === Camera.constants.Type.front)}
              captureQuality={Camera.constants.CaptureQuality.high}
              defaultOnFocusComponent={true}
              // Makes tap to focus available
              onFocusChanged={this._focusChanged}
              // Makes zoom available
              onZoomChanged={this._zoomChanged}
          />
          : null

I've had exact same issue and approached it the AppState way but by extending the Camera component.
class BetterCamera extends Camera {
constructor(props) {
super(props)
this.state = {
appState: AppState.currentState
}
}
componentDidMount() {
	AppState.addEventListener('change', this._handleAppStateChange)
	if (typeof super.componentDidMount === "function") {
		super.componentDidMount()
	}
}

componentWillUnmount() {
	super.componentWillUnmount()
	AppState.removeEventListener('change', this._handleAppStateChange)
}

_handleAppStateChange = (nextAppState) => {
	this.setState({appState: nextAppState});
}

render() {
	if(this.state.appState === 'active') {
		return(
			super.render()
		)
	} else {
		return null
	}
}

}

@gregfedorov That worked like a charm.


Integrating IHeartRadio into ESP-Radio Arduino Code

I started attempting to integrate IHeartRadio XML Parsing into ESP-Radio, but hit a bump in the Parsing code works outside of ESP-Radio but doesn't seem to be able to trigger mp3client inside ESP-Radio code base.
Diff Line 1070 on the right of the Diff is where it tries to open the stream of data for XML content parsing.
XMLParsingTest.ino:
GIST .ino
Working...
Testing in ESP-Radio:
https://github.com/NonaSuomy/Esp-radio/blob/NonaSuomy-XML-Parser/Esp_radio.ino
Gets stuck at line 1070
  if (mp3client.connect (ihrhost, xmlPort ) ) {

I tried to make a second client called xmlclient instead of mp3client and got the same results (nothing).
Any help would be appreciated!

Enabled Debug Core+WiFi over serial and got some further information...
Connecting to url http://playerservices.streamtheworld.com:80/api/livestream?version=1.5&mount=CIMXFMAAC&lang=en
[hostByName] request IP for: playerservices.streamtheworld.com
[hostByName] Host: playerservices.streamtheworld.com lookup error: -5!
Not Connected to IHR
D: STOP requested
D: Song stopped correctly after 10 msec
D: Connect to new host
D: Connect to  on port 80, extension /
[hostByName] request IP for:
[hostByName] Host:  lookup error: -12!
D: Request  failed!

Line 1070 is called during the "setup()" phase.  At that moment there is no Internet connection, so a DNS lookup will always fail.
The function "iheartradio" is called from "analyzeCmd".  Within "analyzeCmd" no timely actions are permitted as it will run mostly asynchronously to the main loop.

Thanks for the tip!
Show Diff
GitHub .ino ESP-Radio with XML-Parser
D: Command: xml with parameter IHR_TRAN
D: STOP requested
D: Stopping client
D: Song stopped correctly after 0 msec
D: Connect to new host: IHR_TRAN
D: Connecting to url: http://playerservices.streamtheworld.com:80/api/livestream?version=1.5&mount=IHR
[hostByName] request IP for: playerservices.streamtheworld.com
[hostByName] Host: playerservices.streamtheworld.com IP: <IP_ADDRESS>
D: Connected!
D: XML parser processing...
D: Found: 18073.live.streamtheworld.com:3690/IHR_TRANAAC_SC
D: Closing XML connection.
D: Stopping client
D: Connect to new host 18073.live.streamtheworld.com:3690/IHR_TRANAAC_SC
D: Connect to 18073.live.streamtheworld.com on port 3690, extension /IHR_TRANAAC_SC
[hostByName] request IP for: 18073.live.streamtheworld.com
[hostByName] Host: 18073.live.streamtheworld.com IP: <IP_ADDRESS>
D: Connected to server
D: Expires: Thu, 01 Dec 2003 16:00:00 GMT
D: Cache-Control: no-cache, must-revalidate
D: Pragma: no-cache
D: Access-Control-Allow-Methods: GET, HEAD
D: Access-Control-Allow-Origin: *
D: Access-Control-Allow-Credentials: true
D: Set-Cookie: uuid=e42b6045-278b-4d4d-9b9d-db3cc87d4921; expires=Sat, 22-Dec-2029 21:30:41 GMT; path=
D: Content-Type: audio/aacp
D: Connection: close
D: icy-br: 48
D: icy-description: Non-stop Trance and Progressive 24/7
D: icy-genre:
D: icy-name: iHeart Trancid
D: icy-url:
D: icy-metaint: 16000
D: Server: MediaGateway 4.2.5-003
D: Switch to DATA, bitrate is 48
D: First chunk:
D: FF F1 5E 40 23 FF FC 01
D: 44 36 2C 91 56 54 09 44
D: 82 11 9D F0 3B 8D 4A AB
D: 90 32 CC 91 08 05 DE 4A
D: Metadata block 48 bytes
D: Streamtitle found, 34 bytes
D: StreamTitle='Tiesto - Flight 643';
D: Command: xml with parameter CIMXFM
D: STOP requested
D: Stopping client
D: Song stopped correctly after 10 msec
D: Connect to new host: CIMXFM
D: Connecting to url: http://playerservices.streamtheworld.com:80/api/livestream?version=1.5&mount=CIM
[hostByName] request IP for: playerservices.streamtheworld.com
[hostByName] Host: playerservices.streamtheworld.com IP: <IP_ADDRESS>
D: Connected!
D: XML parser processing...
D: Found: 14163.live.streamtheworld.com:3690/CIMXFMAAC_SC
D: Closing XML connection.
D: Stopping client
D: Connect to new host 14163.live.streamtheworld.com:3690/CIMXFMAAC_SC
D: Connect to 14163.live.streamtheworld.com on port 3690, extension /CIMXFMAAC_SC
[hostByName] request IP for: 14163.live.streamtheworld.com
[hostByName] Host: 14163.live.streamtheworld.com IP: <IP_ADDRESS>
D: Connected to server
D: Expires: Thu, 01 Dec 2003 16:00:00 GMT
D: Cache-Control: no-cache, must-revalidate
D: Pragma: no-cache
D: Access-Control-Allow-Methods: GET, HEAD
D: Access-Control-Allow-Origin: *
D: Access-Control-Allow-Credentials: true
D: Set-Cookie: uuid=771e18c8-824a-4751-97d5-f59143a1e91c; expires=Sat, 22-Dec-2029 21:30:41 GMT; path=
D: Content-Type: audio/aacp
D: Connection: close
D: icy-br: 40
D: icy-description:
D: icy-genre: Rock
D: icy-name:
D: icy-url: http://www.89xradio.com
D: icy-metaint: 16000
D: Server: MediaGateway 4.2.5-003
D: Switch to DATA, bitrate is 40
D: First chunk:
D: FF F1 5E 40 1D 7F FC 01
D: 2E 15 20 80 18 28 06 0A
D: B2 41 B0 4C 8F 97 AF A6
D: BE 5E C6 75 BF 1E 7E 78
D: Metadata block 48 bytes
D: Streamtitle found, 33 bytes
D: StreamTitle='Muse - Dead Inside';

:tada:
Does it look copacetic?

Added a channel switcher Test to the HTML code: index_html.h
I'll try to figure out adding them to the radio.ini and load them from there later hopefully! :smile_cat:

Looks good!  I'm including this feature in my version.  Testing now.

iHeartRadio is implemented now.
mountpoints can be specified like normal presets, just prefix it with "ihr/", see documentation.
Is there a list somewhere of working iHeartRadio stations?

Great work with the prefix, I'll give it a test when I get home.
Just to note I forgot to add XML to analyze cmd comment section inside the code I noticed it is in the PDF but not in the source. .ino source
I would add the line url from the documentation but it's in the PDF format and Github doesn't support that nicely.
I was trying to figure out a way to pull a list from their site but the API is undocumented, my priority was to get it playing first.
There are some tips here on how to find callsigns from the HTML source on the website: issues/70
Essentially the live radio stations are usually in this format XXXXFM for an FM broadcast or XXXXAM for an AM broadcast, so you could look up the callsign letters of a station online and then check to see if IHeartRadio manages their stream then just type ihr/CIMXFM etc, the IHR_ streams are outside of that normality as they only exist on their service. I found those by playing the station on their website then clicking the history option in their player than looking at the source of that page with the log of the songs they last played on it. usually, you can just search for the word "callsign" in the source and you should find a tag with it inside.
You can read their history to find out most of the stations they support in the wikipedia iHeartRadio

Updated the README.md  -
Change

@NonaSuomy would you by any chance have a tiny bit of free time to help me figure out why I can't get any of the IHR stations working? Edzelf has already implied that he will be busy for the next week(s) and won't be available to do so in that time.
Having these stations functioning is one of the main points of leverage I will have to utilize to get my boss and coworkers to agree to evaluate the internet radio concept to be adopted in the shop where I work, so it is somewhat vital that I am able to get to the bottom of why they aren't playing properly. (the local station that they are stuck on just so happens to be an ihr station)
Any help would be appreciated, and I figure you're probably the only other person that understands the code well enough to help me work through the  issue. I am not sure if I'm doing something wrong, or if there's a bug or what, but i'm really at a loss when it comes to what approach to take next in resolving this.
I opened an issue under the esp32 version that explains where I'm at, and referenced it above. As far as I am aware, the code for both versions should be pretty much the same, although I haven't done a side by side comparison to legitimately make this claim.
Regardless, I believe you wrote (at least) the original code for the implementation, so If youd be so gracious as to go over it and put in your two cents on my problem, It'd be very much appreciated.
Let me know if there's anything I can do to make it easier on you as well..
Thanks in advance,
Koskee

The callsign is indeed ihr/CHBDFM case sensitive.
Are you able to stream any of the shoutcast stations ip:port/mp3 etc ?

Umm. I am uncertain. What I do recall is that it seemed that in addition to ihr not working, that any of the example stations that were addressed with a raw ip address were also not working, so I replaced them in the preset list almost immediately. I was unaware that these stations had anything in common (ie. Shoutcast) since they had no common domain name and hence didn't seem related.
I had assumed they were just random IPs from around the internet that had been broadcasting at one point or another, but had since shut down.
So those were Shoutcast then? They didn't work before, but it's been a long time since I've attempted to use them. Would it help if I gave them a go?

Nevermind, I guess some of those IP addressed stations do work.
On another note, here is the debug output I'm getting from the ihr/IHR_IEDM station. Notice how by almost any measure, it appears to be working, yet for whatever reason, there is absolutely no audio output.
`rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:160
load:0x40078000,len:10632
load:0x40080000,len:252
entry 0x40080034

D: Starting ESP32-radio Version Wed, 31 May 2017 12:05:00 GMT...  Free memory 194672
D: GPIO0 is HIGH
D: GPIO12 is HIGH
D: GPIO13 is HIGH
D: GPIO14 is HIGH
D: GPIO17 is HIGH
D: GPIO22 is HIGH
D: GPIO25 is HIGH
D: GPIO26 is HIGH
D: GPIO27 is HIGH
D: GPIO32 is HIGH
D: GPIO33 is HIGH
D: GPIO34 is LOW
D: GPIO35 is LOW
D: GPIO0 will execute uppreset = 1
D: GPIO12 will execute upvolume = 2
D: GPIO13 will execute downvolume = 2
D: Added SSID Excide to list of networks
D: Scan Networks
D: Scan completed
D: Number of available networks: 4
D:  1 - Excide                    Signal: -41 dBm, Encryption WPA2_PSK, Acceptable
D:  2 - 2WIRE891a                 Signal: -45 dBm, Encryption WPA2_PSK,
D:  3 - SASKTEL848                Signal: -91 dBm, Encryption WPA_WPA2_PSK,
D:  4 - JCW WiFi                  Signal: -93 dBm, Encryption WPA2_PSK,
D: End of list
D: Command: mqttbroker with parameter none
D: Command: mqttport with parameter 1883
D: Command: mqttuser with parameter none
D: Command: mqttpasswd with parameter ******
D: Command: volume with parameter 100
D: Command: toneha with parameter 2
D: Command: tonehf with parameter 6
D: Command: tonela with parameter 3
D: Command: tonelf with parameter 10
D: Command: preset with parameter 10
D: Slow SPI,Testing VS1053 read/write registers...
D: Fast SPI, Testing VS1053 read/write registers again...
D: endFillByte is 28
D: Connect to WiFi
D: Connecting to access point: Excide
D: Connected to Excide
D: IP = <IP_ADDRESS>
D: Start server for commands
D: SD Card Mount Failed!
D: New preset/file requested (10/0) from ihr/IHR_IEDM
D: Connect to new iHeartRadio host: IHR_IEDM
D: GET /api/livestream?version=1.5&mount=IHR_IEDMAAC&lang=en
D: Connected!
D: XML parser processing...
D: Found: 15323.live.streamtheworld.com:3690/IHR_IEDMAAC_SC
D: Closing XML connection.
D: Stopping client
D: Connect to new host 15323.live.streamtheworld.com:3690/IHR_IEDMAAC_SC
D: Connect to 15323.live.streamtheworld.com on port 3690, extension /IHR_IEDMAAC_SC
D: Connected to server
D: Switch to HEADER
D: Expires: Thu, 01 Dec 2003 16:00:00 GMT
D: Cache-Control: no-cache, must-revalidate
D: Pragma: no-cache
D: Access-Control-Allow-Methods: GET, HEAD
D: Access-Control-Allow-Origin: *
D: Access-Control-Allow-Credentials: true
D: Set-Cookie: uuid=448d9fba-2137-4cca-8743-3b02464eb272; expires=Sat, 22-Dec-2029 21:30:41 GMT; path=/; domain=.live.streamtheworld.com
D: Content-Type: audio/aacp
D: audio/aacp seen.
D: Connection: close
D: icy-br: 48
D: icy-description: All Things Dance
D: icy-genre:
D: icy-name: Evolution
D: icy-url:
D: icy-metaint: 16000
D: Server: MediaGateway 4.2.6-001
D: Switch to DATA, bitrate is 48, metaint is 16000
D: First chunk:
D: FF F1 5E 40 22 BF FC 01
D: 52 36 2A 0C C5 22 0D 82
D: 82 50 A1 04 22 EE CC D0
D: C5 37 57 8A 01 12 A4 02
D: Metadata block 64 bytes
D: Streamtitle found, 60 bytes
D: StreamTitle='Yellow Claw / Dj Snake / Elliphant - Good Day';
D: Metadata block 64 bytes
D: Streamtitle found, 48 bytes
D: StreamTitle='David Guetta / Justin Bieber - 2u';`

Contents type is audio/aacp.  Shouldn't that bee audio/mp3?  Please compare it with a working station.  I am not able to test it here.

Sorry, spent the last couple evenings catching up on some other stuff and eradicating a virus/worm that snuck onto my personal network. All is back to normal now. I will see what further data I can dig up later tonight.
So,  it may be deciphering the wrong content type, does that mean these mp3 boards do not support aac, or would it be misinterpreting the data stream?
It seems odd that the stream works for others but not on mine, which (presumably)  has the same or nearly the same firmware.
Not sure if anyone else noticed the extra leading dot (.) near the end of this line, would that cause it to parse a poorly formatted url? :
D: Set-Cookie: uuid=448d9fba-2137-4cca-8743-3b02464eb272; expires=Sat, 22-Dec-2029 21:30:41 GMT; path=/; domain=.live.streamtheworld.com

Nope AAC is correct and these boards support it. It defiantly looks like it`s working, just seems like the volumes turned down though it says 100 in the log maybe make it play a shoutcast station then play the ihr stream.

I did a bit of further poking around, it seems that any mpeg stream is working (fantastically I might add) and anything that comes up with a content type of aac(p) refuses to play.
I found this (Dutch?) webstore that sells them: http://shop.egnite.de/de/embedded-entwicklung/audio-ics/66/vlsi-vs1053b-l?c=127
After auto-translation, it says:

A license for the MPEG Layer-3 decoder from Technicolor is included in the price. For a WMA licensing, please contact Microsoft directly. Customers who wish to use AAC must purchase a license from Via Licensing.

The datasheet also talks about something about being able to have an embedded serial number from the factory for "digital rights management" purposes. Could it be that the board I have is not properly licenced for aac decoding? (After all it did come from China so I would not be surprised if it was either a counterfeit board or a slimmed down version that did not have full features.. Which  the sellers opted for as a penny pinching tactic)

Unusual maybe try a sketch that only plays audio files from sd
I got mine from china ebay sellers http://www.ebay.ca/itm/VS1053-MP3-Module-with-SD-card-slot-VS1053B-Ogg-real-time-recording-for-Arduino-/262866917974?hash=item3d3416da56:g:QysAAOSwdGFYrwHo
maybe raw chips are not setup properly like the breakout boards?

Here's the datasheet in english https://www.sparkfun.com/datasheets/Components/SMD/vs1053.pdf

I used this one: https://www.aliexpress.com/item/1PCS-New-VS1053-MP3-Module-Development-Bard-on-board-recording-function/32354143509.html?spm=2114.13010608.0.0.OFjB1u

Well, that's a bit frustrating, but I guess that would make sense - I had a closer look and figured out that the board I have has a VS1003B chip instead of a VS1053B, despite being sold as the latter. The datasheet for the 1003 makes no mention of the AAC format on first glance.
Guess I have to wait another 2 months for a new board to arrive >:(
It's really lucky that I hadn't started fab/etching the custom board I had designed for this. I had just finalized the layout yesterday, but the new board looks like it has a different pinout so I suppose some revisions are in order.
I'll close the issue on the other side, but this one doesn't belong to me. Thanks for your help everyone @Edzelf @NonaSuomy

Glad I could help you solved the mystery!
Just to note I would double check the pin layout as I believe a bunch of the VS series are drop in replacements for each other without too much fuss.

I was hoping they would be, although based on the pictures of the module (bought the one recommended by @Edzelf)  it appears that the pins are arranged in a double row pattern instead of the single row of 9 pins on the one I have. Obviously a different design, but I wanted to be sure that I got a genuine module this time, to avoid waiting additional months to get it all built.
Since I already designed for this board (and since they obviously do make 1053 versions with the same pinout - i'm guessing because this  board is labeled vs1003/VS1053 breakout or something like that) I will likely try to incorporate headers for the new board into the design I already made for dual compatibility. I'm trying to avoid making it a dual layer design for simplicity's sake so I guess we shall see.
On that note, can anyone confirm that the pinout is 2 x __ on those modules? Also if somebody has a caliper and one of those boards and doesn't mind taking a few measurements for me, it would save me a good chunk of time not having to wait for the new one to arrive. (or a datasheet would probably suffice if it includes a diagram with measurements)

Maybe you could modify this board https://github.com/dsaltas/WiFi-WebRadio

Oh I guess i should have been more clear, I would need a datasheet showing the measurements of this module (ie. the pin spacing and relative localisation between the board edges and the aforementioned pins):
(https://www.aliexpress.com/item/1PCS-New-VS1053-MP3-Module-Development-Bard-on-board-recording-function/32354143509.html?spm=2114.13010608.0.0.OFjB1u)
I'd ask the seller, but in my experience they often don't have any usable information on the products they sell.

Me: can you send me the datasheet (like it says you have available on the item listing?)
AsiaHappy4USellnow: dear sir, we are sorry you haven't received our package. Most apology. Patient is a kind lamb...
Me: no no, the "datasheet" - information, manual, documentation...
AsiaHappy4USellnow: dear sir, we are sorry you haven't received our package. Most apology. Patient is a kind lamb. Can you provide your full name & address for me checking?
Me: I don't think you understand me.  DA-TA-SHEET. Comprehend svp?
AsiaHappy4USellnow: dear sir, we are sorry you haven't received our package. You want refund or resend? Hope for your soon reply sir.
Me: facepalm

(this actually happened to me pretty recently)

koskee, datasheet for this module is unlikely to exist in nature, probably you should guess to type in google.com datasheet vs1053, and not to laugh for Chinese, who does not know English and responds with a learned phrase.

Was merely an example to illustrate the fact that the sellers often cannot communicate on a functional level. If anything,  I'd say I'm frustrated with the fact that I bought a VS1053 module and got something different. Any laughter would be because there's not much else I can do about it. Just have to realize,  that's how it goes sometimes, as irritating as it is waiting 3 months for stuff to arrive.
I agree that such a datasheet is unlikely to find its way into my hands, if it exists. That is why I am asking for someone to measure theirs with a caliper, if they could as it would save a lot of time and hassle searching for information that may or may not exist..


When we remove phone number from TextInput field then the flag becomes grey. How could we change that grey color

I'm facing the exact same issue


site: style editable code examples to match regular ones (font-family and color)

done.  converged on the styled of the editable fields.  in fact, where we were using two libs, I now use just the one.


Empty space above QS

Description
There is empty space in the header region above QS after styling quick settings. Some people on xda forum suggested to change DPI but it's not working.
Steps to reproduce

Pull down status bar
Empty space above QS can be seen

ROM info
Moto G4 Plus - Resurrection Remix v6.0.0 [8.1.0_r15][athene][64-bit] | TWRP 64-bit | Magisk | Xposed Port by Magisk
Module version (build version)
AndroidPify-0.1.0_24.apk
Logcat
logcat
Screenshots
1 2

com.android.systemui_2018.03.19_23.26.li.zip

Fixed in 45ed68e


Parameters

Which are the required parameters to run the calculator?

Sorry for the delayed response - the parameters to run the code are in the "if name==main:" section (see below) debt in dollars, interest rates in %, taxes in % net income etc.
If you have trouble finding ' import zach' just comment out that line and the 'zach.exportpdffigs' and instead use plt.show()
debt = {"cc":2000., "student":49042, "auto":12000}

rate = {"cc":15.07, "student":6.8, "auto": 4.3}
studentloanpayment = loan_monthlypayment(debt['student'], 10, rate['student'])
autoloanpayment = loan_monthlypayment(debt['auto'], 5, rate['auto'])
#ccrate - http://www.creditcards.com/credit-card-news/interest-rate-report-100114-up-2121.php
#student loan rate - https://www.credible.com/blog/what-are-average-student-loan-interest-rates/
#auto - 4.3%

income0 = 50000 #at time = 0
raisepercent = 3. #percentage raise per year
taxes = 25. #percentage of income paid to taxes
Emergency_FundMonths = 4
inflation = 1.5#percent

#expenses
rice_beans = 150.*4.333 # dollars per week

#housing
percent_housing = 25 #percentage of income paid to housing
maxhousing = 1500#
utils = 200#
mortgage_interest = 4 #percent
mortgage_value = 200000. #
mortgage_downpayment = 0.2*mortgage_value
loan_term = 15 #yrs


Update the version

The mod only support forge1.18.2,why not update it to support more forge client?

Per the FAQ:

We will not be porting the mod until it is deemed complete.
Developing for multiple versions of MC is a lot of work for a mod still heavily in development.


Typo in package.json

It seems that there's a typo in package.json (key named perDependencie instead of peerDependencies). As a result, npm does not ask to install peer packages.

@rubenspgcavalcante, just noticed, there's the same typo in leaflet-ant-path, should I open another issue in that project? :)
Thanks for your work, btw!

Yes, for sure! :)

Closed by #4


[Feature] Add dependabot

We would like to use this action in our organization, but would like better security practices.
Would it be possible to add dependabot
https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates

@ethomson love your work, so don't want to take any credit.  I did however fork your project in order to do some security analysis to get it approved for my company.
Dependabot is pretty cool, strongly recommend adding:

Good call, thanks @andrewbruno -- I added dependabot and codeql

Awesome, looking forward to seeing version 2.2

Closing this - let me know if there's anything else that we can do 🙏


Issue in example

Hi there, thanks for the addon i will be testing it but i noticed there is a small error with the node sample there is a " missing after staliwc
/** @type {import('next').NextConfig} */ const nextConfig = {   reactStrictMode: true,   swcMinify: true,   experimental: {     swcPlugins: **[["stailwc", {}]],**   },   compiler: {     emotion: true,   }, };

Thanks for the heads-up, fixed. I also just released 0.2.1 which handles the css prop correctly so please check that out. Thanks for testing stailwc! :tada:


Error message when accessing Show() method --> FatalThrowableError In ControllerDispatcher.php line 48 :

Laravel Version: 5.7.9
PHP Version:7.2
Laravel-admin: 1.65

Description:
Hello everybody,
The errro message appear when I try to preview (click on preview button my config view entries), it simply lead to the following error message : Call to undefined method Encore\Admin\Config\ConfigController::show()

Steps To Reproduce:
1- seted the database table in myconfig/src/ConfigModel.php
2- Added the show method to the config/src/ConfigController.php, like this:
public function show($id)
{
return Admin::content(function (Content $content) use ($id) {
$content->header('header');
$content->description('description');
    $content->body($this->detail($id));
});

}
3- Add detail method to my ConfigController.php, like this :
public function detail()
{
$configModel = config('ConfigModel');
return Admin::show(ConfigModel::class, function (Show $show) {
    $show->id('id', 'ID');
    $show->name('name');
    $show->value('value');
    $show->description('description');

    $show->display('created_at');
    $show->display('updated_at');
    return $show;
});

4-Added my newly created fields to the "Field.php" situated under the folder encore/Admin/Show
Any idea please on how to solve this problem?
In advance, thank you.

Hi youness,
Please, Verify that your system call the right "ConfigController.php" file.

Hi,
Thank you Laraveldo,
You see it right, that was the problem : I renamed my original to ConfigController0.php and did all the changes in a new file. Now I have an empty form without  records values. As you can see it in the screenshot bellow :

Your detail function is wrong. Try:
protected function detail($id)
    {
        return Admin::show(ConfigModel::findOrFail($id), function (Show $show) {
            $show->id('ID');
            $show->name('name');
            $show->value('value');
            $show->description('description');

            $show->display('created_at');
            $show->display('updated_at');
        });
    }

Thank you  Romerski,
Unfortunately it still not working after have tried your solution. Sure, I will figure out why one day :) For the moment I uses an another Laravel package builder.
Thanks again,
Youness


Update GitHub Actions integration and run an existent test file

Currently, the CI isn't actually doing anything, because the file tst/teststandard.g does not exist in this package, see https://github.com/gap-packages/anupq/runs/2315066518?check_suite_focus=true for an example of that. There is a tst/testall.g and a tst/testinstall.g. Hopefully this takes a reasonably short amount of time.
I also took the opportunity to use the more up-to-date gap-actions stuff.

That hardly took any time. As a comparison, here's a run of it running tst/testall.g instead: https://github.com/gap-packages/anupq/actions/runs/792891763


Adds basic tests for config.ini parsing

Adds a basic tests that tries to parse the following files and sees if an error is thrown:
  test_load_config("dev-config.ini");
  test_load_config("deployment/owrt-config/config-dev.ini");
  test_load_config("deployment/owrt-config/config.ini");
  test_load_config("deployment/rpi-config/config.ini");

I found that there were two missing params in deployment/rpi-config/config.ini, so these have now been fixed as well.
Edit: Wow, this increased code-coverage by a lot :) Most of EDGESec's code is just parsing the config.ini file, and we haven't even checked all the if(error) {} lines yet.

I guess the reason for this high test coverage is that most of the modules do not export many functions. config.c export quite a bit of functions.

I guess the reason for this high test coverage is that most of the modules do not export many functions. config.c export quite a bit of functions.

I fix coverage is based per line of code (or maybe it's per branch?). And since config.c contains a lot of code-lines and if-statements, either way, there's a lot of code there.


data and label format description

The ff++ dataset is too big to download. Can you provide the train_add_train.txt? or provide the data and label format description in train_add_train.txt？Thanks

Hi, @ysm022 , thanks for you question, here is the sample of train label file
train_label_format.txt，Note that label 1 is fake and 0 is real.

Hello, I use 6 pics as train input, including 3 real and 3 fake. 2 pics as val.
then I run train.py. get error as follow
Traceback (most recent call last):
File "train.py", line 101, in
runner.train(max_epochs=15)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/runner.py", line 208, in train
score = self.val()
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/runner.py", line 171, in val
cue = self.model(imgs, label, return_loss=False)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/models/scan.py", line 127, in forward
outs = self.neck(outs)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/models/scan.py", line 75, in forward
out = self.conv2x2i
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/conv_module.py", line 117, in forward
x = self.norm(x)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/norm_module.py", line 106, in forward
outs = core.ops.instance_norm(inputs, attrs, outputs)
TypeError: instance_norm(): incompatible function arguments. The following argument types are supported:
1. (arg0: paddle::imperative::VarBase, arg1: paddle::imperative::VarBase, arg2: paddle::imperative::VarBase, *args) -> Tuple[paddle::imperative::VarBase, paddle::imperative::VarBase, paddle::imperative::VarBase]
Invoked with: {'X': [<paddle.fluid.core_avx.VarBase object at 0x7fb02c429b58>], 'Scale': [name instance_norm_5.w_0, dtype: VarType.FP32 shape: [256] 	lod: {}
dim: 256
layout: NCHW
dtype: float
data: [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
], 'Bias': [name instance_norm_5.b_0, dtype: VarType.FP32 shape: [256] 	lod: {}
dim: 256
layout: NCHW
dtype: float
data: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
]}, {'momentum': 0.9, 'epsilon': 1e-05, 'is_test': True, 'data_layout': 'NCHW', 'use_mkldnn': False, 'fuse_with_relu': False, 'use_global_stats': False, 'trainable_statistics': False}, {'Y': [<paddle.fluid.core_avx.VarBase object at 0x7fb02c429ae8>], 'SavedMean': [<paddle.fluid.core_avx.VarBase object at 0x7fb02c429570>], 'SavedVariance': [<paddle.fluid.core_avx.VarBase object at 0x7fb02c429c70>]}
Can you tell me why, Thank you very much

Hi, @ysm022 , thanks for you question, here is the sample of train label file
train_label_format.txt，Note that label 1 is fake and 0 is real.

def get_losses(self, out, cls_out, mask, gt_labels):
    loss_cls = L.mean(L.cross_entropy(cls_out, gt_labels)) * self.train_cfg['w_cls']
    # 1 real 0 fake
    cue = out[-1] if self.train_cfg['with_mask'] else L.elementwise_mul(
        out[-1], L.cast(gt_labels, 'float32'), axis=0)
    num_reg = L.cast(L.reduce_sum(gt_labels) * cue.shape[1] * cue.shape[2] * cue.shape[3], 'float32')
    loss_reg = L.reduce_sum(L.abs(mask - cue)) / (num_reg + 1e-8) * self.train_cfg['w_reg']
    loss_tir = 0
    for feat in out[:-1]:
        feat = L.squeeze(self.avgpool(feat), axes=[2, 3])
        loss_tir += self.triple_loss(feat, gt_labels) * self.train_cfg['w_tri']
    loss = loss_cls + loss_reg + loss_tir
    return dict(loss_cls=loss_cls, loss_reg=loss_reg, loss_tir=loss_tir, loss=loss)

in this coding: 0 is face , 1 is real。  ？？！！

Now I update train_add_train.txt and train_val_train.txt, I sure label 1 is fake and 0 is real. But run train.py.
Get error as same.

Traceback (most recent call last):
File "train.py", line 101, in
runner.train(max_epochs=15)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/runner.py", line 208, in train
score = self.val()
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/runner.py", line 171, in val
cue = self.model(imgs, label, return_loss=False)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/models/scan.py", line 127, in forward
outs = self.neck(outs)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/models/scan.py", line 75, in forward
out = self.conv2x2i
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/conv_module.py", line 117, in forward
x = self.norm(x)
File "/data/ysm/pyvenv/test/lib/python3.6/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/data/ysm/liveDetection/LGSC-for-FAS-master/utils/norm_module.py", line 106, in forward
outs = core.ops.instance_norm(inputs, attrs, outputs)
TypeError: instance_norm(): incompatible function arguments. The following argument types are supported:
1. (arg0: paddle::imperative::VarBase, arg1: paddle::imperative::VarBase, arg2: paddle::imperative::VarBase, *args) -> Tuple[paddle::imperative::VarBase, paddle::imperative::VarBase, paddle::imperative::VarBase]
Invoked with: {'X': [<paddle.fluid.core_avx.VarBase object at 0x7f6a328c0ae8>], 'Scale': [name instance_norm_5.w_0, dtype: VarType.FP32 shape: [256] 	lod: {}
dim: 256
layout: NCHW
dtype: float
data: [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
], 'Bias': [name instance_norm_5.b_0, dtype: VarType.FP32 shape: [256] 	lod: {}
dim: 256
layout: NCHW
dtype: float
data: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
]}, {'momentum': 0.9, 'epsilon': 1e-05, 'is_test': True, 'data_layout': 'NCHW', 'use_mkldnn': False, 'fuse_with_relu': False, 'use_global_stats': False, 'trainable_statistics': False}, {'Y': [<paddle.fluid.core_avx.VarBase object at 0x7f6a328c0a78>], 'SavedMean': [<paddle.fluid.core_avx.VarBase object at 0x7f6a328c0500>], 'SavedVariance': [<paddle.fluid.core_avx.VarBase object at 0x7f6a328c0c00>]}
So what can I do?

Hi, @ysm022 , You can refer to issuse

The error in utils/norm_module.py 106 row: outs = core.ops.instance_norm(inputs, attrs, outputs)

Hi, @MagicXiaoJing , we changed the label after loading the label file.
                if int(item[1]) == 0:                     pos_infos.append(dict(                         img_path=item[0],                         label=1 - int(item[1])))                 else:                     neg_infos.append(dict(                         img_path=item[0],                         label=1 - int(item[1])))

@ysm022 , you can try paddle version 1.7.1.

Thxs！

Hi, I rewrite this in pytorch, and training.
a. the things i change is replace conv2x2 with conv3x3 and remove the pad
b. replace the instance norm with batch norm
but i cannot get the mask like yours in paper.

Hi, @MagicXiaoJing , thanks for you questions, it is not recommended to change these first, and then it must be emphasized that the instance norm must be used in the decoder.

Hi, I rewrite this in pytorch, and training.
a. the things i change is replace conv2x2 with conv3x3 and remove the pad
b. replace the instance norm with batch norm
but i cannot get the mask like yours in paper.

is there any other trick ??

Hi, i also rewrite this in pytorch, training and also make changes like u. Can u leave email or other method for contact? Mine is<EMAIL_ADDRESS>

email or other method for contact? M

wechar:18200519211

@ZGSLZL thanks, update to 1.7.1, that's ok.

Hi, @ysm022 , thanks for you question, here is the sample of train label file
train_label_format.txt，Note that label 1 is fake and 0 is real.

Could you also provide the OULU and casia dataset's data format description ? Thanks.

@ZGSLZL hello, I am also training on oulu, can you share how to modify train.py? and do you know how to organise data format corresponding to oulu.py? thank you! thank you! thank you!!!

@ZGSLZL hello, I am also training on oulu, can you share how to modify train.py? and do you know how to organise data format corresponding to oulu.py? thank you! thank you! thank you!!!


core contract release process should include step to verify PRs to be audited with author

Expected Behavior
All PRs that are assigned to be audited should be verified by the PR author (unless the author is external).
E.g. for Release 4, this PR was initially designated to be audited.  But @alecps later mentioned that it was going to be reverted.
Current Behavior
PRs designated to be audited are not verified by the PR author.

closed with updates to https://www.notion.so/clabsco/Release-Process-9876c6c0773249d687c6c2413e7bab76


Docs: Wrong example Code for creating Issuers

Describe the bug:
The documentation about creating a Issuer is wrong, as it's apparently renamed from ingressClassName to class.
Currently in Docs:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # You must replace this email address with your own.
    # Let's Encrypt will use this to contact you about expiring
    # certificates, and issues related to your account.
    email<EMAIL_ADDRESS>    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      # Secret resource that will be used to store the account's private key.
      name: example-issuer-account-key
    # Add a single challenge solver, HTTP01 using nginx
    solvers:
    - http01:
        ingress:
          ingressClassName: nginx

Working example:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # You must replace this email address with your own.
    # Let's Encrypt will use this to contact you about expiring
    # certificates, and issues related to your account.
    email<EMAIL_ADDRESS>    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      # Secret resource that will be used to store the account's private key.
      name: example-issuer-account-key
    # Add a single challenge solver, HTTP01 using nginx
    solvers:
    - http01:
        ingress:
          class: nginx

Environment details::

cert-manager version: v1.13.0
Install method: helm

/kind bug

@ReptoxX there is both a class and an ingressClassName field: https://cert-manager.io/docs/reference/api-docs/#acme.cert-manager.io/v1.ACMEChallengeSolverHTTP01Ingress

Kubernetes threw an error complaining about the "unexpected field". After which i tried it with class instead of the ingressClassName and it successfully created the ClusterIssuer.

@ReptoxX what cert-manager version are you using? Also, please make sure your CRDs are up-to-date https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#some-caveats-and-explanations.

@inteon i was using v1.13.0 but upgraded from v1.12.0 without checking/upgrading the crds tbh.
But I’m unsure if that’s the issue?

/remove-lifecycle stale

/remove-lifecycle stale
/reopen

/remove-lifecycle rotten
/reopen

@inteon, for this to occur, it depends on how their ingress looks. If they use the deprecated annotation, they should use class, while if they use the newer method, it needs to be ingressClassName. https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation
Probably @ReptoxX was using the deprecated annotation on its Ingress.

/remove-lifecycle stale


Best practices for reading all of a given entity

There is a good chance I'm being incredibly dense and/or I'm still having issue wrapping my head around DynamoDB/single-table-design but I keep coming up against a basic issue.
I understand the core ideas of single-table-design (I think I do, I've watched a number of Rick's talks and read a bunch of the linked videos/articles) but I'm struggling with figuring out my "starting point". As in the data I've modeled has a bit of a chicken and egg problem where I need at a least 1-2 pieces of data before I can start querying for what I really need.
For example, I have a 1-to-many relationship and I get that I can use a GSI on the "->many" side that references to "parent" so I can easily get all related items if I have the parentId but I'm getting hung up on how to get the parentId in the first place.
Furthermore I'm used to building out CRUD admin interfaces for my data to allow for selecting an item to edit/update/delete but I don't see a way to retrieve that data that is not a scan which I understand is not a good practice. It gets worse (if I understand this correctly) in a single-table-design'd table since I could potentially be scanning over every single entity in the table just to find a handful of entities (Looking at the code it appears to just do a scan where {'__en': 'MyEntityName'}).
I did read this article (Wayback link since the original is offline) and they suggest using a GSI which has the entity name as a PK. That makes sense I guess though it sucks to "burn" a GSI since you only get ~5~ 20 (Edit: I mistakenly was thinking of LSI, with 20 it's way less of an issue). Also in Rick's videos he talks about wanting your PK's to be spread out, I have ~10 entities currently and that seems low for how much you want your PK's spread out, maybe I'm wrong.
Any help would be greatly appreciated as I'm fascinated by this concept (single-table-design) and would like to use it for a new project I have so I could go "full serverless" (my other project all use MySQL + serverless everything else). Blog posts/videos to watch are fine, I have no issue researching, I've spent the last ~2 weeks reading what I can and playing around with TypeDORM.
For reference I'll probably have <1GB/year of data that I'll be storing in this Table, feel free to tell me that I'm overthinking it and/or that I should just go back to MySQL since my needs aren't well met by DynamoDB/TypeDORM.

Ok, I think I've answered most of my questions. I went ahead and bought the book and it helped me figure out how I should be structuring my stuff. A GSI with the entity name is ok depending on it's size, alternatively a space index with a scan would do the trick, or lastly a singleton/cache (spread out over randomly accessed keys if it gets too "hot") is an option.
I should have just bought the book from the very start.


How can I respond to the PASSWORD_VERIFIER challenge?

Confirm by changing [ ] to [x] below:

[x] I've gone though Developer Guide and API reference
[x] I've searched for previous similar issues and didn't find any solution

Platform/OS/Hardware/Device
Linux
Describe the question
How can I respond to the PASSWORD_VERIFIER challenge?
I use initial Auth from cognito idp with USER_SRP_AUTH to log in users. and initial Auth replies with PASSWORD_VERIFIER Challenge. I can't find any doc about the PASSWORD_VERIFIER challenge. (I can only find DEVICE_PASSWORD_VERIFIER)
Thanks
Logs/output
nullptr

@wukakuki ,
I'm going to need to see a small code snippet that reproduces this, and the logs generated (remember to sanitize those before uploading them).


FMD2 Update failing

Container fails to update FMD2 form  Version: <IP_ADDRESS> to Version <IP_ADDRESS>.
WebSocket server settings:

Listen on :6080
Web server. Web root: /usr/share/novnc
No SSL/TLS support (no cert file)
Backgrounding (daemon)
Traceback (most recent call last):
File "/usr/bin/websockify", line 11, in
load_entry_point('websockify==0.9.0', 'console_scripts', 'websockify')()
File "/usr/lib/python3/dist-packages/websockify/websocketproxy.py", line 726, in websockify_init
server.start_server()
File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 737, in start_server
lsock = self.socket(self.listen_host, self.listen_port, False,
File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 488, in socket
sock.bind(addrs[0][4])
OSError: [Errno 98] Address already in use

i'll update the image thanks for the report

Done, quick & dirty, i'll tag version accordingly one day, but it's all in the latest and unstable tags (need to repull the image).

Hi,
I'm having the same issue too for the latest image:
BScreen::BScreen: an error occured while querying the X server.
another window manager already running on display:1
Error: Couldn't find screens to manage.
Make sure you don't have another window manager running.
WebSocket server settings:

Listen on :6080
Web server. Web root: /usr/share/novnc
No SSL/TLS support (no cert file)
Backgrounding (daemon)
Traceback (most recent call last):
File "/usr/bin/websockify", line 11, in
load_entry_point('websockify==0.9.0', 'console_scripts', 'websockify')()
File "/usr/lib/python3/dist-packages/websockify/websocketproxy.py", line 726, in websockify_init
server.start_server()
File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 737, in start_server
lsock = self.socket(self.listen_host, self.listen_port, False,
File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 488, in socket
sock.bind(addrs[0][4])
OSError: [Errno 98] Address already in use

@Banh-Canh This issue is still in the current docker image. I'm not able to roll back images because the old version has been deleted on dockerhub.

Update: I renamed my wine folder and let it create a new one from scratch and it at least is getting the container up and running now. It's just having a problem launching the fmd.exe file because of permission problems.

@DieselTech Did you resolve this? I am trying other alternatives ATM because I am also affected by this problem, but I am not liking them as much. There seems to be nothing else to easily automate only downloading the newest chapters of a manga from instead of the entire thing.

@DieselTech Did you resolve this? I am trying other alternatives ATM because I am also affected by this problem, but I am not liking them as much. There seems to be nothing else to easily automate only downloading the newest chapters of a manga from instead of the entire thing.

Yeah I was able to get it to launch. There is something wrong with the permissions. If you right click on the blank background once the container is running you can bring up xterm. Then sudo su and run the fmd.exe that way.
it's not great to run it as root, but I'm not exposing it to the web so it's not that big of a deal. That at least gets it working.

@DieselTech Did you resolve this? I am trying other alternatives ATM because I am also affected by this problem, but I am not liking them as much. There seems to be nothing else to easily automate only downloading the newest chapters of a manga from instead of the entire thing.

Yeah I was able to get it to launch. There is something wrong with the permissions. If you right click on the blank background once the container is running you can bring up xterm. Then sudo su and run the fmd.exe that way.
it's not great to run it as root, but I'm not exposing it to the web so it's not that big of a deal. That at least gets it working.

That would need done every time the container restarts won't it?

That would need done every time the container restarts won't it?

Yeah, it's just a work around currently. Usually my containers stay running for weeks on end without having to reboot so I don't mind the workaround right now until something more permanent comes along.

Okay thank you @DieselTech for pointing me in the right direction, so what I did instead, that seems to be working automatically, is this
Installed the latest from the docker compose. I added a line to mount my existing media folder on my host drive.
After it installed and ran the container I went into docker terminal and ran chmod ugo+rwx /app/FMD2/fmd.exe
restarted container and it comes right up. Now I'm going to disable update nags so that I'm never again tempted to fix something that is not broken lol. Thank you again

Now I'm going to disable update nags so that I'm never again tempted to fix something that is not broken lol. Thank you again

To be fair the update to FMD2 was valid. Deleting the previous docker image when a new version comes out is the real problem here. That's kind of against the spirit of docker. It prevents us from rolling back when there is a problem with updates (like this)


Bump tauri to rc

Hmm, do you know why the tests might be failing?

Not really.
Other user reported this issue too https://github.com/JonasKruckenberg/tauri-build/issues/336
For a workaround, I would delete all cli-arch dependencies


Automate pushing of the docker images

Currently we push all the docker images for our apps manually, by running bazel:
targets=$(bazel query --keep_going "filter(":release$", //...)")
for i in $targets; do bazel run $i; done

We need to automate the process.

Outcome from today's meeting:

main merges push latest tags images
develop merges push beta tags images


Minimum image selected. Done button enabled after minimum image.

Hello.
I would like to block the "Done" button in the ToolBar while the total of photos ("limit" method) is not completely selected.
It's possible?

@diegomuguet currently, no. Will flag this as enhancement. PR is always welcome 😄

So this is basically a minimum amount of image to be selected right?

Yes. Will be Very important.
Thancks.
Em sáb, 21 de jul de 2018 11:54, Esa Firman<EMAIL_ADDRESS>escreveu:

So this is basically a minimum amount of image to be selected right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/esafirm/android-image-picker/issues/148#issuecomment-406801798,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmiHGevpwAk6li0x1mBVI1oEwJ4bojtJks5uI0C0gaJpZM4UuDPY
.

Please,
Enable option to write error message when the minimum of photos is not
selected.
Em sáb, 21 de jul de 2018 11:56, Diego Muguet<EMAIL_ADDRESS>escreveu:

Yes. Will be Very important.
Thancks.
Em sáb, 21 de jul de 2018 11:54, Esa Firman<EMAIL_ADDRESS>escreveu:

So this is basically a minimum amount of image to be selected right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/esafirm/android-image-picker/issues/148#issuecomment-406801798,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmiHGevpwAk6li0x1mBVI1oEwJ4bojtJks5uI0C0gaJpZM4UuDPY
.

Can I Help you in this issue?
Give me the instructions that I implement.

Would also like to have this function.


adds base XaaS Packager documentation

Only adds base documentation for the XaaS Packager component to reuse modelled topologies for single applications.
No new functions or ui elements.

Thank you for the PR 🎉
Looks good. Can you

Create the pull request to https://github.com/eclipse/winery? This is necessary because of the strong IP policy of Eclipse. You find more details at http://eclipse.github.io/winery/dev/ToolChain
Link the XaaSPackager.md from index.md? Then it will also appear at http://eclipse.github.io/winery/user/ (scroll to the bottom). Otherwise, it will be hard for the users to find it.

@1: Should I create another pull request or can I change this?
@2: Is already added, look at the bottom of the commit :)

@1: Two repos -> yet another PR required. 😢
@2: Good job, man! 🎉

Done at https://github.com/eclipse/winery/pull/81
Thank you!

Now rendered at http://eclipse.github.io/winery/user/XaaSPackager


Add some resources to README.md

Hi @shospodarets
I saw your repo and I found it very interesting. I've added some resources that might be useful to your users. Feel free to remove or edit them.
Thank you so much in advance to accepting my contribution.
Bye

@Massibian wdyt to apply the above changes?

Hi,
Sorry for my late reply.
You will receive a PR with the edit from Paolo Martinoli (el_hugo)
I currently traveling and I can't do by myself.
Thank you,
Sorry again for the late reply,
Have a nice day
Il Mer 8 Mar 2023, 06:05 Serg Hospodarets @.***> ha
scritto:

@Massibian https://github.com/Massibian wdyt to apply the above changes?
—
Reply to this email directly, view it on GitHub
https://github.com/shospodarets/awesome-platform-engineering/pull/3#issuecomment-1459498251,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUFJS3I6NWAU4R4LK5FNWHDW3AHQ7ANCNFSM6AAAAAAVCBLQSU
.
You are receiving this because you were mentioned.Message ID:
@.***>

As discussed, the new PR raised https://github.com/shospodarets/awesome-platform-engineering/pull/7
I am closing this PR.


⚠ Samsung has degraded performance

In 208923a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2622 ms

Resolved: Samsung performance has improved in 2172c8d.


Feature/mistral few shot

Added few-shot prompt example for Mistral models

Thanks for the contribution. Our goal with that mistral example  is to keep it very simple and minimal so we aren't planning to merge additional "features" to it for the most part.


"Backpack\Generators\Services\BackpackCommand contains 1 abstract method" after update

Bug report
After updating to v3.3.11 running any commands in terminal results in error:
Class Backpack\Generators\Services\BackpackCommand contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Console\GeneratorCommand::getStub)

What I did:
ran composer update
What I expected to happen:
package updated with no errors
What happened:
encountered error above
What I've already tried to fix it:
downgraded to 3.3.10 which fixes it
Backpack, Laravel, PHP, DB version:

Hey @emogeekface
So sorry we let this error slip 😢
I've just tagged a new version with the hot-fix for this mistake.
A composer update backpack/generators should get the fixed version for you.
Cheers

closing, the issue is fixed and tagged! If anyone stumbles on this, please do a composer update backpack/generators
thanks again @emogeekface 🙏


[Bug]:  UI issue in alphabets and animals section.

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug

UI is overflowing in alphabets section.
Alphabets popup is not well structured for big screen.
Fix animal popup for big screens.

Expected behavior

Fix the overflow
The popup should be not big it must contain all prev, next and close buttons on single screen no need to scroll.
Make the animals popup big not so huge.

Add ScreenShots

On which device are you experiencing this bug?
No response
Record

[X] I have read the Contributing Guidelines
[ ] I'm a GSSOC'24 contributor
[X] I have starred the repository

Assign this to me

Can you please assign this to me @sapatevaibhav?
I will solve the issue and do it as per the requirements.

I would like to work on this issue can you please assign it to me

Sorry for the inconvenience the issue is fixed.


Bottom bar blocks part of the page

The bottom bar makes the bottom part of a page unclickable and it also blocks some part of the page.

Yeah same here, so temporary i m using fullscreen script

This it's fixed with latest versions


Calc only works with pure terms

The following code fails because the f 1 and f 2 statements have effect GTot instead of Tot
open FStar.Calc

assume val f: (n:nat) -> GTot nat

let test (n:nat) =
  calc (==) {
    f 1;
    == { admit() }
    f 2;
  }

An easy workaround is to let-bind terms for calc outside of the statement as follows, but it would be nicer to be able to inline them directly
let test (n:nat) =
  let a = f 1 in
  let b = f 2 in
  calc (==) {
    a;
    == { admit() }
    b;
  }

This should work by using GTot in FStar.Calc, and making the desugarer provide the implicit arguments explicitly (otherwise we fail when the typechecker infers an implicit to be an effectful term). I'll give it a go.

That works, but for some reason it decreases performance. Checking examples/calc/Long.fst goes from ~50s to ~100s on my computer. Will run some more tweaks before merging, hopefully improving things.

Sounds good thanks! In the worst case, it's not blocking or anything, and using this workaround would probably be better than decreasing performance.

This is now fixed, and I also did some tweaks that improve performance a lot. There's still quite some room for improvement performance-wise, but closing this issue.


Rewrite logic operators

Because lack of good descriptions and complexity of examples and descriptions I decided to rewrite the logic operators section

@mahdimehrabi thanks for countributing, please fix conflicts.


[Feature Request] Show real-time bandwidth under monitor mode

Required prerequisites

[X] I have searched the Issue Tracker that this hasn't already been reported. (comment there if it has.)
[ ] I have tried the latest version of nvitop in a new isolated virtual environment.

Motivation

Just like nvtop, but nvitop is far better than nvtop (except monitoring RX and TX)

Solution
No response
Alternatives
No response
Additional context
No response

Hi, I think you would love the new Grafana dashboard approach. Checkout the README.


Remove version: WHTA.Tamara version 2<IP_ADDRESS>

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

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

Microsoft Reviewers: Open in CodeFlow

URL: https://download.tamara.app/2<IP_ADDRESS>/installer.exe
Status code: 200
(Automated message - build 661)


Can't see file path on VSCode Debug Console

What I mean is the small link to the file from where the log was Output

@Bungeefan I just wanted to thank you for redirecting me to this issue I found the solution there

@Bungeefan Could you please explain the solution you found ?


Added a python game

an interactive story mode game made using python

Nice one, few changes recommended create a folder for games and add this content to it.

Also please explain about your game by adding a readme to that folder.


sqlite3 connection leak if query contains error

Describe the bug
sqlite3 connection is not excuting any query if previous contains error.
To Reproduce
Steps to reproduce the behavior:

execSqlAsync an incorrect query
then execSqlAsync any query, no result callback or error callback called. http request is blocked.

Expected behavior
when error, reset the connection or create a new one. the next query should not be blocked forever.
Versions:

OS: OSX 10.14.6
Drogon: 543d1a8c8062b3873ef89c64ffd7394c6dd7c7e8@master

@ArmstrongCN , Hey, I made a fix for this, please check it on the dev branch. sorry about the mistake.

Thank you for this patch. The _idleCb statements save my day. It seems the easest modification because there is no need to reconnect for sqlite db.

Merged!


feat(STONEINTG-458): build pipelineRuns are annotated with Snapshots

Build pipelineRuns are annotated with created Snapshots
Expand build pipelineRun predicate to ignore annotated pipelineRuns
Only require that build pipelineRun is signed by chains operator
Require that the build pipelineRun is succeeded

I still don't understand how this code should work.
It will get request for every change in buildpipeline, after pipeline is fnished. It will have configured snapshot, so it will go to return reconciler.ContinueProcessing() but then it will just execute next steps in adapter. We will be spoiling logs with many events and doing more actions, which are unwanted.
I don't see how this ensure that code is executed only once.
Also presence of code for handling case that snapshot is already defined is worrying me, can this case happen now?

I still don't understand how this code should work.
It will get request for every change in buildpipeline, after pipeline is fnished. It will have configured snapshot, so it will go to return reconciler.ContinueProcessing() but then it will just execute next steps in adapter. We will be spoiling logs with many events and doing more actions, which are unwanted. I don't see how this ensure that code is executed only once.
Also presence of code for handling case that snapshot is already defined is worrying me, can this case happen now?

@MartinBasti you are right, I've come to the same conclusion while testing the changes today.
While this code does work, it creates too much churn in the controller. I've been working on moving the check for the Snapshot annotation into the predicate so we skip reconciling a pipelineRun which was annotated with the Snapshot.
I updated the code with the changes, please take another look.

yup, now it looks better, but I'll take time tomorrow to think more about potential unexpected consequences

/test integration-service-e2e

/lgtm


Should you be able to drill down in a dashboard?

Should you be able to drill down in a dashboard?  This particular functionality isn't addressed on the doc page.

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

ID: 91935bb2-c486-cb9f-be71-ae18ad28cf96
Version Independent ID: 761de430-9bc7-4d7d-4c56-d14e6354194c
Content: Intro to dashboards for Power BI designers - Power BI
Content Source: powerbi-docs/create-reports/service-dashboards.md
Service: powerbi
Sub-service: pbi-reports-dashboards
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Hi, @dlomara921 -- good question! You can't drill down in a visual that's pinned as a regular tile, but you can drill down in a visual if it's part of an entire pinned report page.
https://docs.microsoft.com/en-us/power-bi/create-reports/service-dashboard-pin-live-tile-from-report
I can add that info. Thanks!

Thanks! I've added drill-down to the table.


Hero

Create hero block.

Remove auto block functionality
Make block configurable as there are multiple variants (below are a few, there may be others)

https://www.ingredion.com/na/en-us.html

https://www.ingredion.com/na/en-us/categories/animal-nutrition.html

https://www.ingredion.com/na/en-us/news-events/news.html?activePage=1&perPage=6

Adding a couple of more variants:
https://www.ingredion.com/na/en-us/company/meet-ingredion/sustainability.html

https://www.ingredion.com/na/en-us/news-events/news/Pea-protein-improved-dispersibility-RTM-beverages.html

Another variant: Text left indented: https://www.ingredion.com/na/en-us/be-whats-next/better-nutrition-key-to-added-value-consumers-seek.html


Update ProblemList.json

updated .json file with Git issue status

Close this PR. The original issue https://github.com/adoptium/aqa-tests/issues/2701 is fixed via #2882.


Max Number of Vias on Adjacent Tracks

This PR introduces a new, optional design rule for via: Maximum number of adjacent via

@arvuce22 , fyi.
@parijatm , this PR is ready for review.


Session Manager Plugin does not honor AWS_CA_BUNDLE / --ca-bundle

Unlike other AWS CLI commands, aws ssm start-session does not currently honor the AWS_CA_BUNDLE environment variable / --ca-bundle CLI option to override the CA certificate bundle used to verify SSL certificates. session-manager-plugin appears to always use the default system root CA certificate bundle regardless of these parameters.

i'm running into this as well, caused a lot of confusion!
(py39) bash-4.4$ cat errors.log
2023-05-16 21:41:43 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:43 ERROR [OpenDataChannel @ sessionhandler.go.49] Retrying connection for data channel id: botocore-session-1684273292-0b849af47232a9d46 failed with error: failed to open data channel with error: x509: certificate signed by unknown authority
2023-05-16 21:41:43 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:44 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:44 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:45 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:47 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority
2023-05-16 21:41:50 ERROR [OpenConnection @ websocketutil.go.63] Failed to dial websocket: x509: certificate signed by unknown authority

The ssm command also does not respect the ca_bundle setting in ~/.aws/config.  In our experience the only way to use a different set of CA certificates was to modify, eg, /usr/local/aws-cli/v2/2.15.13/dist/awscli/botocore/cacert.pem.


Add operations back, add more examples

@tedchamb,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Lens metrics fails if the prometheus service address was set

Under cluster settings => Metrics, if Prometheus is set to other than Auto detect or Lens, the Prometheus service address field is available. If this field is specified and you at some point install/turn on Lens metrics, Lens metrics will fail because it appears to use the previously set Prometheus service address (even though the field is not shown/applicable for Lens or Auto detect).
5.4.0-beta.2 (probably in 5.3.4 too)
This can lead to major confusion when experimenting with metrics setups.
error:   ┏ [Metrics]: metrics not available services "no-such-service" not found +3ms
error:   ┃ [1] {
error:   ┃ [2]   kind: 'Status',
error:   ┃ [3]   apiVersion: 'v1',
error:   ┃ [4]   metadata: {},
error:   ┃ [5]   status: 'Failure',
error:   ┃ [6]   reason: 'NotFound',
error:   ┃ [7]   details: { name: 'no-such-service', kind: 'services' },
error:   ┃ [8]   code: 404
error:   ┗ [9] }

I just hit this same bug. Is there any way to clear that out as a short-term fix?

I just hit this same bug. Is there any way to clear that out as a short-term fix?

If you are using Lens metrics, on the cluster settings => Metrics page, just switch Prometheus to "Helm", clear the Prometheus service address field and reset Prometheus back to "Lens" or "Auto detect" (whatever it was)


Type a redux middleware which injects the redux store

I am using a redux middleware to inject store(MiddlewareAPI<S, A, D>) into my async actions.
import type {
  Dispatch as ReduxDispatch,
  MiddlewareAPI,
  Middleware
} from 'redux'
import type { State } from './my-store-state'
import type { PlainAction } from './union-of-actions'

type Dispatch<A, B>
  = ReduxDispatch<PlainAction>
  | RawAction<A, B> => Action<A, B>

type MiddlewareStore<A, B>
  = MiddlewareAPI<State, PlainAction, Dispatch<A, B>>

type Action<As: $ReadOnlyArray<mixed>, B>
  = (...args: As) => Promise<B>

type RawAction<As: $ReadOnlyArray<mixed>, B>
  = MiddlewareStore<As, B> => Action<As, B>

// `Middleware<State, any, Dispatch<*, *>>` doesn't work
const app: ? = store => next => action =>
  typeof action === 'function'
    ? action(store)
    : next(action)

I get errors like this:
Error: src/store/app.js:9
  9:   | (RawAction<A, B> => Action<A, B>)
          ^^^^^^^^^^^^^^^ function type. Callable signature not found in
 12:   dispatch(DateChange(date))
                ^^^^^^^^^^^^^^^^ object type. See: src/actions/logbot.js:12

In this case, DateChange(date) is a PlainAction(an action object, not a function). I think it will match the first branch(ReduxDispatch(PlainAction)), but it matches the second branch(RawAction<A, B> => Action<A, B>).
Can anyone help me to type this middleware with flow-typed redux types?

Never mind. I will wait until https://github.com/facebook/flow/issues/1948 is resolved.


⚠ Bofrost.de has degraded performance

In 9d37080, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1293 ms

Resolved: Bofrost.de performance has improved in 370ee7f.


[Runtime] Fix generation of .lnk files for static linking.

Use the new SWIFT_SDK_<sdk>_STATIC_LINKING_SUPPORTED and _STATIC_ONLY flags instead of hardcoding support for Linux and WASI.
Also, use the _LIB_SUBDIR variable rather than lowercasing the SDK.
rdar://123504757

This sits on top of #71839.

@swift-ci Please smoke test

It's just these changes that need reviewing. The others are in upstream PRs and are being reviewed by other people.


Improve Error handling when worksheet is nil and CompatibilityError.

@apollocarlos I changed error handling with incompatibility. Could you review and merge this?
and see also https://github.com/apollocarlos/embulk-input-googlespreadsheet/pull/1#issuecomment-284753119

thx @apollocarlos


Allow ValidJobOwner to check for multiple job owners

Feature Request
Please allow the ValidJobOwner check to accept a collection of valid values via the agent.validjobowner.name configuration.
Each client in my multiclient setup is given their own distinct job owner account to use to run their jobs. This prevents privilege escalation or cross client access via the executing stored procedure which is controlled by the client. Therefore I'd like to be able to provide a list of acceptable logins which can be used as job owners and for the test to fail is a job is owned by someone not in the list.

Please can you test with this branch - https://github.com/sqlcollaborative/dbachecks/tree/agent-job-owners
It has a couple of fixes, Test-DbaJobOwner doesnt report the successes!

@frank687 Let me know by @ ing me here and I will merge if you are happy

@SQLDBAWithABeard It looks like this is still using Test-DbaJobOwner.
PS> invoke-dbccheck -SqlInstance XXX -Check ValidJobOwner
Executing all tests in '.' with Tags ValidJobOwner

Executing script C:\Users\frank.henninger\Documents\GitHub\dbachecks\checks\Agent.Tests.ps1

  Describing Valid Job Owner

    Context Testing job owners on BuckeyeDev
      [-] Error occurred in Context block 1.12s
        PSInvalidCastException: Cannot convert value to type System.String.
        ArgumentTransformationMetadataException: Cannot convert value to type System.String.
        ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Login'. Cannot convert value to type System.String.
        at <ScriptBlock>, C:\Users\frank.henninger\Documents\GitHub\dbachecks\checks\Agent.Tests.ps1: line 85
        at DescribeImpl, C:\Program Files\WindowsPowerShell\Modules\Pester\4.3.1\Functions\Describe.ps1: line 161

Here's the relevant section from the test.
Describe "Valid Job Owner" -Tags ValidJobOwner, $filename {
    $targetowner = Get-DbcConfigValue agent.validjobowner.name
    @(Get-SqlInstance).ForEach{
        Context "Testing job owners on $psitem" {
            @(Test-DbaJobOwner -SqlInstance $psitem -Login $targetowner -EnableException:$false).ForEach{
                It "$($psitem.Job) owner should be in this list $targetowner on $($psitem.Server)" {
                    $psitem.CurrentOwner | Should -BeIn $psitem.TargetOwner -Because "The account that is the job owner is not what was expected"
                }
            }
        }
    }
}

@SQLDBAWithABeard This version works: ( Sorry not on this project so i cant just update the code )
Describe "Valid Job Owner" -Tags ValidJobOwner, $filename {
    $targetowner = Get-DbcConfigValue agent.validjobowner.name
    @(Get-SqlInstance).ForEach{
        Context "Testing job owners on $psitem" {
            @(Get-DbaAgentJob -SqlInstance $psitem -EnableException:$false).ForEach{
            It "$($psitem.Name) owner $($psitem.OwnerLoginName) should be in this list $targetowner on $($psitem.Server)" {
                $psitem.OwnerLoginName | Should -BeIn $TargetOwner -Because "The account that is the job owner is not what was expected"
                }
            }
        }
    }
}

Hmmm, what have I done here ? :-)
I will have to check when I get back, that code is almost what I wrote but you need to specify that $targetowner is an array.
I will update later and ask you to test apologies

Brilliant, it was this commit here  c1e2319a119dae48999af4251071a89293d923f8
reverted my changes but you cna see the code
If taht works I will add it later (with the right code!)

@SQLDBAWithABeard  Yes that worked
[string[]]$targetowner = Get-DbcConfigValue agent.validjobowner.name

I have updated the branch again so now it shows hte correct code!! (also enabled some github training  :-)

Validated


crash on start up

after install deb for gta san ios it crash immediately

What version of the game are you playing on?


Update Gitlab CI example

Fixes #2598

Removed stale explanation
Refined the example and tested it with the default molecule init role code generated by molecule 3.0.2

See the working example here: https://gitlab.com/matthewcosgrove/molecule-default-init
See the output of the successful job running on Gitlab CI using the example here: https://gitlab.com/matthewcosgrove/molecule-default-init/-/jobs/484192315

PR Type

Docs Pull Request

recheck


Addressed inconsistency between RFE-DMDc and GA-DMDc

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Closes #2230
What are the significant changes in functionality due to this change request?
Extraction of PR #2224:
•	Identified the reason to have inconsistent score between RFE-DMDc and GA-DMDc.
•	The avgArray and stdArray need to be calculated for each realization. That's the reason of inconsistency.

No new test is added since the inconsistency does not modify the search pattern of the algorithm

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test Ubuntu 18 PIP on 6d49205 : invalidated by @alfoa


refactor(noise): fix naming issues / file organisation

This PR cleans up some naming issues that slipped through when I added Perlin and Simplex noise.
Some functions were named like noisetype_dimension, while others used noisetypedimensions without underscore. It got a bit confusing, so I’ve fixed everything to be consistent now.
I also combined the perlin_2d and perlin_3d files into a single perlin file to match how the Simplex code is organized. Same thing for the test files.

Summary by CodeRabbit

New Features

Introduced Perlin noise generation functions for 2D and 3D coordinates.
Added test functions for validating Perlin noise generation.

Bug Fixes

Updated parameter naming for clarity in various methods.

Chores

Removed outdated Perlin noise modules and their corresponding test files.
Renamed gradient functions for consistency across the noise generation module.

I also renamed the grad_Xd functions to avoid conflicts since Simplex and Perlin use different versions of these.


PowerShell script for Run-As account creation Windows-Only

The "Manage Automation Run As account" is invalid on PowerShell core, as the New-SelfSignedCertificate CMDlet is unavailable there.

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

ID: 56e2500f-e1f5-bc87-6e5c-f41b59265049
Version Independent ID: d212be48-7d05-847d-3045-cea82e6ba603
Content: Manage Azure Automation Run As accounts
Content Source: articles/automation/manage-runas-account.md
Service: automation
GitHub Login: @georgewallace
Microsoft Alias: gwallace

@yevster
Thanks for your feedback! We will investigate and update as appropriate.

adding @georgewallace for input.

@yevster, thanks again for the comment. George (doc-author) and I will discuss appopriate next steps and possible updates to the doc. Will now close this thread but don't hesitate to reply if you have any followup questions.


Strange behaviour of @event_trigger

Hi,
I just found some strange behaviour when using the event_trigger.
Having somehting like this:
@event_trigger("some_event", "action == 'some_action' and state=='finished'") def dummy(**kwargs):     log.debug(f"{kwargs}")
a and triggering the event with  event.fire("some_event") leads to the correct result -  the function dummy isn't called and thus no log output.
Triggering the event with  event.fire("some_event", action="some_action",state="finished") also works correctly and leads to  a log output like this:
{'trigger_type': 'event', 'event_type': 'some_event', 'context': <homeassistant.core.Context object at 0x7f7ced65ab40>, 'action': 'some_action', 'state': 'finished'}
BUT, each subsequent event without any arguements (event.fire("some_event")) now also triggers the function and shows an output like this:
{'trigger_type': 'event', 'event_type': 'some_event', 'context': <homeassistant.core.Context object at 0x7f7ce9657e00>}
It seems the the str_expr of @event_trigger is not evaluated anymore. Giving some random arguments to the event like this
event.fire("some_event", x="s")
also triggers the function.
But providing at least one of the arguments to be checked in the str_expr like here
event.fire("some_event", action="s")
prevents the function from being called.
Thats pretty strange. I would expect the str_expr to return false if the arguments are not provided in the event instead of ingoring this and evaluating to true.

Thanks for the clear explanation - it's definitely a bug.  Each event trigger creates a context for evaluating the expression, and the local symbol table is simply updated (not replaced) each time with the event parameters.  Fix is to replace the local symbol table each time the expression is evaluated.
Fixed with 8a250d8.

Thanks for the quick response and the bugfix. And a really BIG thank you for this amazing tool. Without pyscript home assistant would be useless for me :-)

This is fixed in 1.4.0.  Closing.


Bold and italic at the same time

Doesn't work right now:

Maybe, Create new highlighter responsible for bold and italic at the same time..


Move PanicHandlerPlugin into bevy_app

What problem does this solve or what need does it fill?
A new crate was created in https://github.com/bevyengine/bevy/pull/12557: bevy_panic_handler. I spoke with @cart and @mockersf about this, and we agree that it makes more sense in bevy_app because:

Less administrative overhead to release the crate.
Less cognitive overhead for users and maintainers.

If and when this code becomes more significant, we can split it back out again.
What solution would you like?
Move the code into a new module in bevy_app. Add the required optional dependencies. Get CI to pass.
Additional context
This was discussed in #12557, but I didn't feel strongly enough to block forward progress: either solution was clearly better than bevy_log.

I'll take a look to this one ✌

@theredfish oh sorry maybe I should have spoken up sooner, but I was attempting this as my first issue. I was about to have a link to my fork PR soon and inquire about the process to integrate in changes from a forked repo.

@gabrielkryss no problem ! I generally wait a bit to see if nobody else is working on issues so all good 👍

@theredfish I think I got stuck with some ci and workspace errors maybe you can help review the PR if you have the time 🙏.
https://github.com/bevyengine/bevy/pull/12640

@gabrielkryss I'll pull your branch locally and check. Bevy repo is new to me too so I also need to get used to the workflow👍 maybe for the workspace issue you still have your Cargo.lock referencing the old dependency in which case it doesn't find it. A clean might help?


Update por.po

Since you contributed a marginal amount, you can be added to the credits of the game! If you wish to be added, what name and colors (hex codes) you want to be added to the credits?

for sure, Klgor with "Kl" in #2cff00 and "gor" in #f1ff00    ^ (it's a lowercase L)


Ship wasm32-wasi-clang sym links under bin?

Using these binaries then wouldn't require a --target.   This is a relatively common pattern for cross compilers and it means you can put wasi-sdk/bin on the end of your PATH without shadowing /usr/bin/clang (which happens if you put it at the start of your PATH)

@sbc100, what do you think, is this still something we should think about doing?

I don't think this is worth it given that we have set the default wasm32-wasi already


“Unhandled rejection: OpenFailedError: AbortError Transaction aborted” in Chromium version 49

I'm using a customized browser based on Chromium core version 49. When I try to integrate Dexie with my project, it shows an error in browser's console and doesn't work.
Unhandled rejection: OpenFailedError: AbortError Transaction aborted
    at Transaction.Dexie.props.create (http://<IP_ADDRESS>:8000/umi.js:28520:31)
    at http://<IP_ADDRESS>:8000/umi.js:28554:54
    at executePromiseTask (http://<IP_ADDRESS>:8000/umi.js:26704:9)
    at new Promise (http://<IP_ADDRESS>:8000/umi.js:26503:5)
    at http://<IP_ADDRESS>:8000/umi.js:28552:40
    at usePSD (http://<IP_ADDRESS>:8000/umi.js:27012:16)
    at newScope (http://<IP_ADDRESS>:8000/umi.js:26999:14)
    at Transaction.Dexie.props._promise (http://<IP_ADDRESS>:8000/umi.js:28551:18)
    at tempTransaction (http://<IP_ADDRESS>:8000/umi.js:27524:26)
    at http://<IP_ADDRESS>:8000/umi.js:27520:24
    at callListener (http://<IP_ADDRESS>:8000/umi.js:26803:19)
    at endMicroTickScope (http://<IP_ADDRESS>:8000/umi.js:26892:25)
    at IDBTransaction.<anonymous> (http://<IP_ADDRESS>:8000/umi.js:26978:30)

But if I use Chrome version 79, everything is fine.
here is my code indexedDBUtil.js`
import Dexie from 'dexie';
let async = Dexie.async;
let spawn = Dexie.spawn;
const db = new Dexie('cmisDatabase');
db.version(1).stores({
  dict: '++,dictCode, code,  name',
});
export { db, async, spawn };

Is the version of Chromium too old for Dexie.js?

No, Chrome has had stable indexeddb support since way back in time before version 49. However, if you are using browser-native async/await without transpilation within transactions, version 49 may possibly not support it like the newer versions (See #317). Not sure at which version that Chromium started to support it. However, I suppose native async/await wasn't supported in version 49 anyway?
I think you need to verify that IndexedDB works in the most simple scenario. Your snipped seem not to be complete as I cannot see any code that requests the DB. But if you can limit that to a simple db.open() or just a db.dict.get(1) to see if even that doesn't work, there might be something with your specific customisation of chromium that is not correct - such as privacy settings or so.

No, Chrome has had stable indexeddb support since way back in time before version 49. However, if you are using browser-native async/await without transpilation within transactions, version 49 may possibly not support it like the newer versions (See #317). Not sure at which version that Chromium started to support it. However, I suppose native async/await wasn't supported in version 49 anyway?
I think you need to verify that IndexedDB works in the most simple scenario. Your snipped seem not to be complete as I cannot see any code that requests the DB. But if you can limit that to a simple db.open() or just a db.dict.get(1) to see if even that doesn't work, there might be something with your specific customisation of chromium that is not correct - such as privacy settings or so.

Sorry, here is the test code.
import Dexie from 'dexie';
const db = new Dexie('cmisDatabase');
  db.version(1).stores({
    dict: '++,dictCode, code,  name',
  });
  db.open();

And this is the console log:
dexie.js:1253 Unhandled rejection: AbortError: Transaction aborted
    at IDBTransaction.<anonymous> (http://<IP_ADDRESS>:8945/umi.js:28533:49)
    at IDBTransaction.<anonymous> (http://<IP_ADDRESS>:8945/umi.js:26970:23)

Ok, so the only thing you do is declare the db and then call db.open(). Then there must be something wrong with the IndexedDB support in your custom chromium-based browser.

Thank you. I will report this problem to our Browser Team.


CD command can't excute when path contains space

Windows Terminal version (or Windows build number)
19041.1110, 1.8.1521.0
Other Software
No response
Steps to reproduce
Cd to a directory contains space, such as C:\Program Files\.
Expected Behavior
Cd to C:\Program Files\
Actual Behavior

You need to wrap paths with spaces in quotes. Try:
cd "C:\Program Files\"


ROX-24429: integrate exposure analysis into roxctl

Description
roxctl integration with np-guard enhancements (delayed from ACS 4.6)
in this PR integrating exposure analysis into rxctl netpol connectivity map command
i.e. added the new flag --exposure;
roxctl netpol connectivity map --exposure
User-facing documentation

[x] CHANGELOG is updated OR update is not needed (not needed)
[x] documentation PR is created and is linked above OR is not needed (not needed)

Testing and quality

[ ] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[x] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests
added bats tests

How I validated my change

this is an integration with the new version of np-guard/netpol-analyzer,
added the new flag and new relevant unit-test and bats-tests so integrated successfully

/ok-to-test

/retest

Hi @shireenf-ibm , thanks for submitting this PR. I looked at the code and found only minor corrections.
As the CI is not running on this PR, I would need to duplicate is and let the CI run. A solution to that problem would be to get your team a Github user that is part of the Stackrox organisation - that would make future PR reviews easier, as that user could run all CI on their own. I will check whether there is a procedure for adding such user and will let you know.
Additionally, we would like to add you as codeowners to the parts of the code that rely on the output of NP-Guard. This would help other colleagues (and our CI) identify whom to contact if there are any failing tests or issues. Would that be okay?

Hi @vikin91 ,
thanks for the review;
I appreciate checking if there is a procedure for adding us as Github user, it would be very helpful.
And of course it would be okay to add me as code-owners of the relevant code parts; will be glad to help

@shireenf-ibm we have created a team IBM-Research and added it as a member of Stackrox. You, Adi and Ziv are members in this team. Could we please check if you can now open a PR directly against the stackrox repo?

sure, what should I do now?

Checkout the stackrox repo directly (not into a fork), open a new branch against master, push changes from this PR to that branch and open a new PR. If that works well and CI is running, then we can review and discuss in this new PR and this can be closed.


Add a Static Toolbar to NoteEditor

Is your feature request related to a problem? Please describe.
Add a Static Toolbar to NoteEditor to allow us build a Rich Text Editor suitable for Deer users

Hi I would like to work on this issue.

Hey @medha-yadav
You are welcome to work on this issue, but just confirm with us what you going to do to avoid un-useful work. Don’t worry if you’re new, we are here to help you. You can read Our Docs, join us on Gitter to ask, inquire about anything you need to know, or get helped.

Hey @medha-yadav, just wanted to know if you're still working on this... I have just started working on this, so please let me know to avoid doing what you might have already done again :)


Integrate actions/cache with cache service v2 APIs

Description

Upgrading the cache package to integrate with the new cache service backend (cache service v2). Major changes to the API layer are involved with this change but the interfaces are backward compatible. The transition to the new service will undergo gradual rollout and will be seamless to end users.
Motivation and Context

Deprecation notice for v1 and v2 of actions/cache
How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (add or update README or docs)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Description

Upgrading the cache package to integrate with the new cache service backend (cache service v2). Major changes to the API layer are involved with this change but the interfaces are backward compatible. The transition to the new service will undergo gradual rollout and will be seamless to end users.
Motivation and Context

Deprecation notice for v1 and v2 of actions/cache
How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (add or update README or docs)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.


domain is deprecated

We have tried to use @bugsnag/plugin-express with the express part in an angular universal application. But currently the middleware is not working. The app crashes with
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'domain' in 'APPLICATION/node_modules/@bugsnag/plugin-express/dist'

I am not sure about the reason of the crash, could be some specialty in angular-universal, but upon looking up what domain is and does, we saw it is deprecated sind node v10: https://nodejs.org/docs/latest-v10.x/api/domain.html

Hi @jigfox.
Thanks for this, we are aware that domain is deprecated, and as you rightly say it has been for some time. The problem is that it has not been replaced yet, with anything suitable. Most likely this is why it has not yet been removed from the node codebase. While not ideal this is what we have to work with and is still available for now.
In terms of your application error, are you trying to compile for the browser? If so that is likely to be the issue as domain doesn't exist in the browser and would not be found.

Closing this for now as we have not had a response. Do let us know if you would like to follow up on this.


Add django-silk for profiling.

Coverage decreased (-0.03%) to 89.665% when pulling 8ad7a3dc3a180914f54aabd1ef32a41d52a8352e on akatsoulas:django-silk into 3f124fe12336b489200f64f9a66fc51a49a1733a on mozilla:master.