How to use Peek?

I cannot find any documentation on how to use the peek feature?
I'd like my sheet to peek, then expand when tapped or dragged up.

That's normal behavior. You can control peek, expand, and dismiss via the appropriate helper methods:
expandSheet()
peekSheet()
dismissSheet()

I tried peekSheet()  but it crashed my app. Do I call it alone or with showSheetWithView?

showWithSheetView will automatically start it in peek state. You should
only be calling peekSheet() to collapse it from its expanded state.
On Mon, Sep 14, 2015, 2:28 PM paulcanning<EMAIL_ADDRESS>wrote:

I tried peekSheet() but it crashed my app. Do I call it alone or with
showSheetWithView?
—
Reply to this email directly or view it on GitHub
https://github.com/Flipboard/bottomsheet/issues/63#issuecomment-140210621
.

That's not the case for me. But like I said, I have a height set. Should I remove it?

You can control a custom peek size with setPeekSheetTranslation
Note that if you don't set MATCH_PARENT, it will try to wrap the content. If the wrapped content height is smaller than the screen, then it will just wrap the whole content.
Your interpretation is correct, that is what it means. Relative to EXPANDED, it is a collapse.

When I set the height with a dp value, it didn't wrap to the content. Should I use wrap_content for the height?
LinearLayouts (which I'm using for my custom sheet view) need a height parameter.

It's really hard to help without seeing at least a sample of the code or layout you're trying to execute.
Can you paste a snippet of how you're showing your sheet and what the layout parameters are?
wrap_content will do exactly what it suggests. If its height is smaller than the height of the screen, then it will supercede any custom peek height you set. If you set the height to match_parent, then the custom peek height comes into play since you can actually have both expanded and peeked states.

MainActivity.java
in OnCreate:
bottomSheet = (BottomSheetLayout) findViewById(R.id.bottomsheet);

When tapping a button:
View myView = LayoutInflater.from(getApplicationContext()).inflate(R.layout.my_sheet_layout, bottomSheet, false);

TextView title = (TextView) myView.findViewById(R.id.sheetTitle);
TextView note= (TextView) myView.findViewById(R.id.sheetNote);
note.setText('Note');

bottomSheet.showWithSheetView(myView);

my_sheet_layout.xml
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="#ffffff"
android:orientation="vertical" >

<View
    android:id="@+id/moteBar"
    android:layout_height="16dp"
    android:layout_width="match_parent"
    android:background="#000"
    android:layout_marginBottom="8dp"
    />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Title"
    android:textSize="16sp"
    android:id="@+id/sheetTitle"
    android:textColor="#000"
    android:layout_marginLeft="16dp"
    android:layout_marginRight="16dp" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Note"
    android:textSize="14sp"
    android:id="@+id/sheetNote"
    android:textColor="#000"
    android:layout_marginLeft="16dp"
    android:layout_marginRight="16dp" />

</LinearLayout>

Attached is a screenshot showing the sheet. It has peeked higher then the content. I want the peek height to be enough to show the title and note.
Then later if I add extra content, I'd like the peek to stay the same (title and note wrapped), then let me expand to see the extra content.

Why was this closed? I never got an answer :/
I'm still struggling with peekSheet() and how to set the size of the initial, small sheet view (before it is expanded) as the documentation is lacking this info

I thought it was resolved, and you had several comments after it was closed so I assumed you were OK with it?
I missed the bit about adding content later, that's an important detail. I'm honestly not sure how it behaves in that situation, I imagine if it's wrapping content, it makes sense for it to continue wrapping content

I already explained farther up how to set a custom peek height though, did you see that?

I added comments to show how I was implementing bottomSheet and tried to explain what I want.
To recap:
peekSheet() is a total mystery. The name,to me, implies I can call it (sheet.peekSheet()) and it would show a bit (a peek) of the sheet.
According to you, that's incorrect. Fair enough. But I'm still not sure what it should do if you call the method.
Anyway,  in my sheet, I have a title, some text and then a photo.
I want to show the sheet with just the title and text (single line text), so the user can see most of the main view, with a sheet "preview" at the bottom.
Then, on tapping or swiping up, I want the sheet to expand so the title, text and the photo are visible, taking up the entire screen.
Right now, I can show the small sheet "preview" but have literally no idea what so ever on how to set the height so you can only view the title and text.

peekSheet() is a total mystery. The name,to me, implies I can call it (sheet.peekSheet()) and it would show a bit (a peek) of the sheet.

That is what is does, that is also the behavior used in the design support library implementation.

According to you, that's incorrect.

No, I didn't say that. I said that if you're using wrap_content, then it's just going to show the wrapped size of the sheet unless it's equal to or larger than the display

I want to show the sheet with just the title and text (single line text), so the user can see most of the main view, with a sheet "preview" at the bottom.

Then you need to set the peek height to the measured height of those two components, or use the design support library's bottom sheet.
What you're describing now is not really what you were describing before, and it's also not something this library readily supports. I would suggest using the design support library or SlidingUpPanelLayout.

I tried using peekSheet() instead of showWithSheetView() and I got an Null
Pointer Exception.
If I need to set the peek height, how? I can't see any information on how
to do this.
 The name,to me, implies I can call it
(sheet.peekSheet()) and it would show a bit (a peek) of the sheet.
That is what is does, that is also the behavior used in the design support
library implementation.
According to you, that's incorrect.
No, I didn't say that. I said that if you're using wrap_content, then
it's just going to show the wrapped size of the sheet unless it's equal to
or larger than the display
I want to show the sheet with just the title and text (single line text),
so the user can see most of the main view, with a sheet "preview" at the
bottom.
Then you need to set the peek height to the measured height of those two
components, or use the design support library's bottom sheet.
What you're describing now is not really what you were describing before,
and it's also not something this library readily supports. I would suggest
using the design support library or SlidingUpPanelLayout
https://github.com/umano/AndroidSlidingUpPanel.
—
Reply to this email directly or view it on GitHub
https://github.com/Flipboard/bottomsheet/issues/63#issuecomment-190882510
.

For the last time: setPeekSheetTranslation sets the peek height. I've said this multiple times. Pass in the height in pixels that you want.
You're going to get a NPE for trying to call peekSheet before showWithSheetView() because it has nothing to show until after the latter call.
So to be clear:
bottomSheetLayout.setPeekSheetTranslation(yourPreferredHeight);
bottomSheetLayout.showWithSheetView(yourSheetView);

If you have your layout params on yourSheetView set to wrap content however, that will take precedent over any possible states. If you want both peek and expanded behavior, you'll need to match parent for now.

How do I use dp as the height units? Using pixels is pretty useless tbh :/

Setting dimensions on Android programmatically is almost always in pixels. There are plenty of ways you could do this:

manually measure your header vies height and then retrieve it via getMeasuredHeight
if you have the height in resources, you can retrieve it getDimensionPixelSize
if you want to convert from DPs to pixels on the fly, there are tons of stackoverflow answers with the quick functions you need to do the math. Just search dp2px


[EAS Build] EAS Build should adhere to the package manager version set in package.json

I was confused at first, when I noticed that EAS ignores the packageManager field in package.json. I think this should be the first place to look for, when EAS decides, which package manager and which version to use.

Hi @pmk1c,
It makes sense. I will try to add support for it and make it the first place to look for package manager + its version 👍

Hello, i'm using turborepo monorepo and trying to  build some apps.
If in my root there is a packageManager prop like this:

that is automatically added by turborepo, i'd get this error in eas log:
We detected that 'APP_NAME' is a yarn workspace
Running "yarn install" in /Users/expo/workingdir/build directory
error This project's package.json defines "packageManager": "yarn<EMAIL_ADDRESS>However the current global version of Yarn is 1.22.21.
Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
yarn install exited with non-zero code: 1
Do you have any suggestion of why is happening?
Also i'm using npm as package manager.
Thank you

@szdziedzic  sorry to ping you but it would be helpful to know something about it.
Thanks

I think I have the same issue:
In my monorepo's root package.json, I've set   "packageManager"<EMAIL_ADDRESS>When creating a custom build config and building it on EAS build, I receive an error in the Install node_modules step.
It's weird that it says yarn<EMAIL_ADDRESS>while there's obviously just<EMAIL_ADDRESS>in my package.json.
Any ideas?

Hi @SanderPeeters,
I assume you want to use NPM as your project manager, right? Do you have a lock file generated by yarn in your repo by any chance?

@szdziedzic There is not yarn.lock, only package.lock at the root of the monorepo

Hi @SanderPeeters,
I assume you want to use NPM as your project manager, right? Do you have a lock file generated by yarn in your repo by any chance?

Hi, thx for answering me! It's correct that I want NPM to use as a package manager. I have a packag-lock.json file in my root folder, but no yarn.lock. When I'm creating a 'regular' build (not using he custom build scheme), it correctly detects that there's a package-lock.json file.

Hi, thx for answering me! It's correct that I want NPM to use as a package manager. I have a package-lock.json file in my root folder, but no yarn.lock. When I'm creating a 'regular' build (not using he custom build scheme), it correctly detects that there's a package-lock.json file. But the custom build scheme doesn't recognize this for some reason.

I will check if I can replicate it, thanks!

@SanderPeeters @FedeRBeije
I deployed a PR to fix the package manager resolution logic for custom builds. Can you check if it fixed your issue?

Please note: It still doesn't mean we added support for the packageManager field in package.json all across EAS Build. This PR should just fix package manager resolution logic based on the presence of lock files.

still doesnt work with yarn:

I'm getting the same error as well:


DragonBonesJS PIXI - Change PIXI.Texture/image of one slot and not whole armature?

I want to take an image and replace the current on on a specific slot.
Right now the only option i see is to replace the entire texture.

You can set replace slot display like this:
slot.display = anyPixiDIsplayObject;

Or you can see this demo.

Ok so slot.display = anyPixiDIsplayObject; replaces the image.
But the transform data is incorrect, so it animates weird.
How do i set the transform data for slot.display?

You can set bone.offset to modify slot.display transform.

Looks like the variables I needed to change were on the slot itself.
_pivotX and _pivoitY


Install GitOps Dashboard for gitops beta run

Closes #2358

Moved functions in pkg/run/run.go to separate files, because the existing file was getting huge.
Added checking if the GitOps Dashboard is installed, and if not, offering to install it.
Added prompting user for their password (if the user agrees to install the dashboard) and generating the secret which will be used for logging into the dashboard. The prompt's behavior is similar to a prompt in Flux and everything which is not an explicit Yes is a no. No looping of user input was added, tried it, it was annoying.
Added waiting for the dashboard reconciliation and deployment if the dashboard is installed.
Added the --dashboard-port flag with default value 9001 and opening this port automatically for the dashboard.
Refactored some messages and added comments.

Notes:

The code is working in general but maybe i missed the wording in some log/error messages because there are so many of them. So, any comments on naming and wording are very welcome.
I've copied and reworked @chanwit's code for opening ports and waiting for dashboard reconciliation and deployment. So, I hope I've used it correctly and in the right places, if not, please let me know.

@chanwit great, thank you! 🌞


Added no-non-arrow-functions rule

Disallows traditional function () { ... } declarations, preferring () => { ... } arrow lambdas.
Fixes #165.

I wonder if only-arrow-functions would be a clearer name than no-non-arrow-functions? The double-negative in the latter worries me.

only-arrow-functions

Agreed, way better.

Also, isn't this rule supposed to only apply to anonymous functions? It's flagging stuff like:
function configureContainer(container: Container) {
    // ...
}

@glen-84 I agree, I expect this rule to allow named functions using the function keyword. would you mind filing a separate issue?

Sure.


E:M 32 PANIC: unprotected error in call to Lua API (error loading module 'httpd_req' from file 'httpd_req.lc': 	not enough memory)

E:M 32
PANIC: unprotected error in call to Lua API (error loading module 'httpd_req' from file 'httpd_req.lc':
not enough memory)
Reboots every time Siren goes off or if I try to test by testing siren. Tested on two boards both running 2.2.6 Device discovery and blink both are off.
Above is what ESplorer shows when I test the siren.'
And also this when I tried again just now -
eap: 	4856	HTTP: 	Device
Heap:	2488	Actuator Pin:	8	State:	1
E:M 536
E:M 1584
E:M 1584
HTTP client: Disconnected with error: 46
HTTP client: Connection timeout
Heap:	29496	HTTP Call:	-1	state	1	pin	1
Heap:	29528	HTTP Call:	204	state	1	pin	1	retry	1
This doesn’t happen if I remove the motion sensor. Looks like it errors out if motion sensor is also updating status at the sa e time as Siren is trying to activate which might be an issue at the time of an actual intrusion as with my tests when the board reboots siren doesn’t go off.

Thanks for reporting this. Could you post the full boot output from your device?
Also, do you have the same problem if you downgrade to 2.2.5?

Here are the logs and it's same after downgrading. Though it seems to give different error messages on different pins. Logs are when connected to D8 Pin. First set from 2.2.6 and the 2nd one from 2.2.5
Communication with MCU..Got answer! Communication with MCU established.
AutoDetect firmware...
Can't autodetect firmware, because proper answer not received (may be unknown firmware).
Please, reset module or continue.
ŒbÄûg'Ÿlggœãìcp„‡l{drlpògàƒlcoâ|„„‡Ž�cŒó'oç
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29240	HTTP Call:	200
Heap:	29200	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap:	29024	HTTP Call:	200	state	0	pin	8
Heap:	28960	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0
Heap:	28744	HTTP Call:	204	state	1	pin	6
Heap:	28648	HTTP Call:	204	state	0	pin	6
E:M 320
PANIC: unprotected error in call to Lua API (not enough memory)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xc3
ho 0 tail 12 room 4
load 0x3ffe8000, len 2340, room 12
tail 8
chksum 0x61
load 0x3ffe8924, len 136, room 0
tail 8
chksum 0x3b
csum 0x3b
„ãäÃgì“{ƒûg|ädlll`c›Ÿ|;’dœoà‚gã
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29056	HTTP Call:	200
Heap:	29024	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap:	28520	HTTP Call:	200	state	0	pin	8
Heap:	28448	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0
Heap:	28528	HTTP Call:	204	state	1	pin	6
Heap:	28528	HTTP Call:	204	state	0	pin	6
E:M 320
PANIC: unprotected error in call to Lua API (not enough memory)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xc3
ho 0 tail 12 room 4
load 0x3ffe8000, len 2340, room 12
tail 8
chksum 0x61
load 0x3ffe8924, len 136, room 0
tail 8
chksum 0x3b
csum 0x3b
Œãìƒ'ä›{Ãòg|ì$lld`cÛŸ|{Ûlœnàƒgã
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29160	HTTP Call:	200
Heap:	29128	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap:	29128	HTTP Call:	200	state	0	pin	8
Heap:	29056	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0
E:M 72
E:M 88
PANIC: unprotected error in call to Lua API (not enough memory)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xc3
ho 0 tail 12 room 4
load 0x3ffe8000, len 2340, room 12
tail 8
chksum 0x61
load 0x3ffe8924, len 136, room 0
tail 8
chksum 0x3b
csum 0x3b
ãä‚gì“{ƒûg|ädlll`c›Ÿ|;’dœoà‚gã
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29240	HTTP Call:	200
Heap:	29208	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap:	28616	HTTP Call:	200	state	0	pin	8
Heap:	28552	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0
Heap:	28672	HTTP Call:	204	state	0	pin	6
Heap:	28664	HTTP Call:	204	state	1	pin	6
E:M 416
E:M 160
PANIC: unprotected error in call to Lua API (not enough memory)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xc3
ho 0 tail 12 room 4
load 0x3ffe8000, len 2340, room 12
tail 8
chksum 0x61
load 0x3ffe8924, len 136, room 0
tail 8
chksum 0x3b
csum 0x3b
„ãäÃgì“sƒûo|äddll`c›ž|{›lœnàƒoâ
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29232	HTTP Call:	200
Heap:	29200	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap: 	22824	HTTP: 	Device
Heap:	20360	Actuator Pin:	8	State:	1
Heap:	28160	HTTP Call:	200	state	1	pin	8
Heap:	28096	Initialized actuator Pin:	8	Trigger:	1	Initial state:	1
Heap: 	4216	HTTP: 	Device
Heap:	1832	Actuator Pin:	8	State:	0
Heap:	27824	HTTP Call:	204	state	0	pin	6
Heap:	28152	HTTP Call:	204	state	1	pin	6
E:M 416
PANIC: unprotected error in call to Lua API (/opt/nodemcu-firmware/local/fs/server.lua:15: cannot allocate message buffer)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 26044, room 16
tail 12
chksum 0xc3
ho 0 tail 12 room 4
load 0x3ffe8000, len 2340, room 12
tail 8
chksum 0x61
load 0x3ffe8924, len 136, room 0
tail 8
chksum 0x3b
csum 0x3b
„ãä‚gä›{Ãòg|ì$lld`c’Ÿ|;’dœoà‚gã
Konnected firmware 2.2.6
NodeMCU <IP_ADDRESS> build 20190203 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34768	Initializing Konnected (68c63ae19c2a)
Heap: 	33152	Version: 	2.2.6
Heap: 	31496	Connecting to Wifi..

Heap: 	36328	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35128	UPnP:	Listening for UPnP discovery
Heap: 	34760	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34600	Loaded: 	server
Heap:	24448	Initializing sensor pin:	6
Heap:	24416	Initializing actuator pin:	5
Heap:	24416	Initializing actuator pin:	8
Heap:	24008	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	23976	Loaded: 	application
Heap:	29144	HTTP Call:	200
Heap:	29112	Initialized actuator Pin:	5	Trigger:	1	Initial state:	0
Heap: 	26608	Responding to UPnP Discovery request from <IP_ADDRESS>:34105
Heap:	28576	HTTP Call:	200	state	0	pin	8
Heap:	28512	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0

PORT CLOSED
On 2.2.5
Konnected firmware 2.2.5
NodeMCU <IP_ADDRESS> build 20180917 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
Heap: 	34928	Initializing Konnected (68c63ae19c2a)
Heap: 	33360	Version: 	2.2.5
Heap: 	31720	Connecting to Wifi..

Heap: 	36464	Wifi connected with IP: 	<IP_ADDRESS>	<IP_ADDRESS>	<IP_ADDRESS>
Heap: 	35224	UPnP:	Listening for UPnP discovery
Heap: 	34856	HTTP: 	Starting server at http://<IP_ADDRESS>:22785
Heap: 	34696	Loaded: 	server
Heap:	26864	Initializing sensor pin:	6
Heap:	26832	Initializing actuator pin:	8
Heap:	26480	Endpoint:	https://graph-na04-useast2.api.smartthings.com:443/api/smartapps/installations/adca90da-380f-4dcd-a6be-07d3a3805088
Heap: 	26448	Loaded: 	application
Heap:	31672	HTTP Call:	200	state	0	pin	8
Heap:	31608	Initialized actuator Pin:	8	Trigger:	1	Initial state:	0
Heap:	31896	HTTP Call:	204	state	0	pin	6
Heap:	31384	HTTP Call:	204	state	1	pin	6
Heap: 	1648	UPnP:	Sent SSDP NOTIFY
Heap:	32264	HTTP Call:	204	state	0	pin	6
Heap:	32208	HTTP Call:	204	state	1	pin	6
Heap:	32272	HTTP Call:	204	state	0	pin	6
Heap: 	30800	Responding to UPnP Discovery request from <IP_ADDRESS>:57131
Heap:	32312	HTTP Call:	204	state	1	pin	6
Heap:	32216	HTTP Call:	204	state	0	pin	6
Heap:	32224	HTTP Call:	204	state	1	pin	6
Heap:	32296	HTTP Call:	204	state	0	pin	6
Heap:	32288	HTTP Call:	204	state	1	pin	6
Heap:	32200	HTTP Call:	204	state	0	pin	6
Heap:	32112	HTTP Call:	204	state	1	pin	6
Heap:	32208	HTTP Call:	204	state	0	pin	6
Heap:	32112	HTTP Call:	204	state	1	pin	6
Heap:	32184	HTTP Call:	204	state	0	pin	6
Heap:	32088	HTTP Call:	204	state	1	pin	6
Heap:	32192	HTTP Call:	204	state	0	pin	6
Heap:	32184	HTTP Call:	204	state	1	pin	6
Heap:	32184	HTTP Call:	204	state	0	pin	6
Heap:	32192	HTTP Call:	204	state	1	pin	6
Heap:	32272	HTTP Call:	204	state	0	pin	6
Heap:	32112	HTTP Call:	204	state	1	pin	6
Heap:	32184	HTTP Call:	204	state	0	pin	6
Heap:	32112	HTTP Call:	204	state	1	pin	6
Heap:	31992	HTTP Call:	204	state	0	pin	6
Heap:	32080	HTTP Call:	204	state	1	pin	6
Heap:	31992	HTTP Call:	204	state	0	pin	6
Heap:	32088	HTTP Call:	204	state	1	pin	6
Heap:	32088	HTTP Call:	204	state	0	pin	6
Heap:	32160	HTTP Call:	204	state	1	pin	6
Heap:	32256	HTTP Call:	204	state	0	pin	6
Heap: 	30632	Responding to UPnP Discovery request from <IP_ADDRESS>:60476
Heap: 	30632	Responding to UPnP Discovery request from <IP_ADDRESS>:35121
Heap: 	30632	Responding to UPnP Discovery request from <IP_ADDRESS>:51326
Heap:	32040	HTTP Call:	204	state	1	pin	6
Heap:	32040	HTTP Call:	204	state	0	pin	6
Heap:	31936	HTTP Call:	204	state	1	pin	6
Heap:	32008	HTTP Call:	204	state	0	pin	6
Heap:	31936	HTTP Call:	204	state	1	pin	6
Heap:	31832	HTTP Call:	204	state	0	pin	6
Heap: 	27328	Responding to UPnP Discovery request from <IP_ADDRESS>:48400
Heap:	31928	HTTP Call:	204	state	1	pin	6
Heap:	31824	HTTP Call:	204	state	0	pin	6
Heap:	31840	HTTP Call:	204	state	1	pin	6
Heap:	31824	HTTP Call:	204	state	0	pin	6
Heap:	31904	HTTP Call:	204	state	1	pin	6
E:M 24
PANIC: unprotected error in call to Lua API (error loading module 'httpd_res' from file 'httpd_res.lc':
not enough memory)

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 25736, room 16
tail 8
chksum 0xb8
load 0x3ffe8000, len 2340, room 0
tail 4
chksum 0xf4
load 0x3ffe8924, len 136, room 4
tail 4
chksum 0x3f
csum 0x3f
This is on a test board. Basically relay won't get activated when motion is being detected. Board errors out and app shows activating but then goes back to Alarm Off


reminder: dom.disable_window_open_feature

FF76+: sort out 2200: dom.disable_window_open_feature - see 1507375, compat
Pants wrote:

if anything has really actually changed then it would be nice to get into 78 since it's ESR

I tried doing various tests here, and I have my own tests, and I just don't get it. I can still remove all those items: menubar, personalbar and toolbar (but I can't add them?). I also got some really whacked out results, where I loaded the test in a popup and the changes were being applied to the parent window (and I could show/hide things like the menu, toolbar etc)

1660524

It looks more like they're dead prefs since at least FF78:
https://searchfox.org/mozilla-esr78/search?q=disable_window_open_feature
there's no code repo anymore for FF76, 77 or 79 so the above link is for ESR78.
Either they're dead or IDK how they're reading these prefs if nothing comes up for "disable_window_open_feature"

¯\_(ツ)_/¯ IDK

I'd say we can close this issue and move those prefs to 9999 when we work on the diffs for FF82

Looking at .. this ... you're right - just search for open_feature. They're dead, Jim. That link even says at the top to remove the prefs (they forgot).
So we can actually move these to deprecated already

weird, your comment didn't show until I posted mine. We don't need to wait for 82, they were legacy in 76 (DEPRECATED / REMOVED / LEGACY / RENAMED)


[REGRESSION] db-service v1.12.1 broke deep inserts

Description of erroneous behavior
Following works fine with 1.12.0 but breaks with 1.12.1:
const result = await INSERT.into('MyService.MyEntity').entries({
  foo: 'bar',
  nestedEntity: {
    bar: 'baz'
  }
});

With 1.12.0 proper result is returned, with 1.12.1 result is 0 and nothing is inserted.
Details about your project

Name
Version

OData version
v4

Node.js version
v20.13.1

@sap/cds
7.9.4

@sap/cds-compiler
4.9.8

@sap/cds-dk
7.9.7

@cap-js/postgres
1.10

@David-Kunz

Hi @hakimio ,
Can you kindly show us your model? The following example works as expected:
namespace myNamespace;
using { cuid } from '@sap/cds/common';

entity MyEntity : cuid {
  name: String(100);
  description: String(500);
  nestedEntities: Composition of many NestedEntity on nestedEntities.parent = $self;
}

entity NestedEntity : cuid {
  name: String(100);
  value: Integer;
  parent: Association to MyEntity;
}

module.exports = srv => {

  srv.on('READ', 'MyEntity', async (req, next) => {

    const res = await INSERT.into('myNamespace.MyEntity').entries({
      ID: 'a11fb6f1-36ab-46ec-b00c-d379031e817a',
      nestedEntities: [
        { ID: 'b22fb6f1-36ab-46ec-b00c-d379031e817a', value: 5 }
      ]
    })

    console.log(res) // InsertResult { results: [ { changes: 1, lastInsertRowid: 1 } ] }

    return next()
  })

}

Thanks and best regards,
David

The nestedEntity does NOT require an ID when the parent entity is created.
entity MyEntities: cuid {
    foo: String;
    nestedEntity: Composition of NestedEntities;
}

entity NestedEntities: cuid {
    bar: String;
}

This does not work anymore (no ID for nested are parent entity):
const result = await INSERT.into('MyService.MyEntity').entries({
  foo: 'bar',
  nestedEntity: {
    bar: 'baz'
  }
});

Hi @hakimio ,
Your example works too:
using { cuid } from '@sap/cds/common';

entity MyEntities: cuid {
    foo: String;
    nestedEntity: Composition of NestedEntities;
}

entity NestedEntities: cuid {
    bar: String;
}

module.exports = srv => {

  srv.before('READ', 'SMyEntities', async req => {
    const x = await INSERT.into('MyEntities').entries({
      nestedEntity: {
        bar: 'bar'
      }
    })
    const y = await INSERT.into('MyEntities').entries({})
    console.log(await SELECT.from('MyEntities', x[0])) // find the entry
    console.log(await SELECT.from('MyEntities', y[0])) // finds the entry
  })

}

Can you kindly adjust the example to reproduce your issue?
Thanks and best regards,
David

@David-Kunz what version of @sap/cds are you using? Have you tested with v7?
What db implementation are you using (type and version)?

Hi @hakimio ,
I can reproduce it with @sap/cds 7. Will have a look.

Sorry, @hakimio , it works, also with version 7. Can you reproduce it also with SQLite or does it only occur with Postgres?

I only tested with Postgres.
I'll try to debug and see if I can find out what exactly is going on sometime this week.

Also can't reproduce it with Postgres.
cds version

@cap-js/cds-types: 0.2.0
@cap-js/db-service: 1.12.1
@cap-js/hana: 1.2.0
@cap-js/postgres: 1.10.0
@cap-js/sqlite: 1.7.3
@sap/cds: 7.9.5
@sap/cds-compiler: 4.9.8
@sap/cds-fiori: 1.2.7
@sap/cds-foss: 5.0.1
@sap/cds-mtxs: 2.0.0
Node.js: v22.9.0

However, x === 0, even though it's inserted.

That's still a bug.

Yes, it was fixed with https://github.com/cap-js/cds-dbs/pull/803

Let me check when we can release this.

Will soon be released.

And just to be sure: Is your data really not inserted? Can you double check with DEBUG=sql?

Most likely what was happening was when the result was 0 instead of expected object, my app would throw an error and the transaction for the request would be reverted.

I see, this will be fixed in the next version.

Fixed in 1.13.0.


Integration Test - Release - 2020/08/26 19:08:06

Auto create for integration test. IssueCommandFlow

@PRMergerTest2 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Replace macro

After #165
Replace macro that was introduce in https://github.com/ABAP-Logger/ABAP-Logger/pull/163 with regular ABAP code (which can
be debugged)

I resolved the conflict

Thanks!


Copy/Move operation

There are some pretty valuable use cases for have a move/copy functionality, primarily when you want to re-arrange nested objects.
For example, suppose you have a yaml file like a BOSH manifest with the following structure:
instance_groups:
- name: api
  jobs:
  - name: api-server
    properties:
      db_string: mysql://mysql.example.com:3306
  - name: api-worker
    properties:
      db_string: mysql://mysql.example.com:3306
    <lots and lots of configuration...>

In BOSH land, if you wanted to scale the workers without scaling the servers, you'd have place the api-worker job in a different instance_group and then scale that separately. That would mean you'd want to end up with the following yaml:
instance_groups:
- name: api
  jobs:
  - name: api-server
    properties:
      db_string: mysql://mysql.example.com:3306

- name: worker
  jobs:
  - name: api-worker
    properties:
      db_string: mysql://mysql.example.com:3306
    <lots and lots of configuration...>

It should be easy, except that your operation definition would need to know the internal data of the yaml you're operating on:
- type: replace
  path: /instance_groups/-
  value:
    name: worker
    jobs:
    - name: api-worker
      properties:
        db_string: mysql://mysql.example.com:3306
    <lots and lots of configuration...>

You have to copy all of the data that already exists in the yaml being operated on. With a move functionality, on the other hand, you'd be able to write something like the following operation instead:
- type: replace
  path: /instance_groups/-
  value:
    name: worker
    jobs: ~

- type: move
  from: /instance_groups/name=api/jobs/name=worker
  path: /instance_groups/name=worker/jobs/-

Or, if you're super cool:
- type: move
  from: /instance_groups/name=api/jobs/name=worker
  path: /instance_groups?/name=worker/jobs/-

No knowledge of the internals of api-worker required. A copy could function the same way.
Would this be a reasonable interface for move/copy? Is something that could get added? Asking for a friend.

@dsabeti move/copy are not implemented at this point on purpose. if viewed as a generic library, this proposed functionality makes a lot of sense; however, one of my goals though is to expose missing abstractions in bosh's deployment configuration. there are several scenarios that possibly need to be discussed further to see if they require bosh core changes:

decoupling of jobs & instance groups (to allow further rearrangement of jobs; eg instance group one is jobs [a,b,c] and instance group two is [x,y,z])

decoupling intent of colocation (to allow placement of one job next to another even if its location changes; eg metron_agent everywhere within deployment, cc_clock next to cc_worker)

Make sense. I'd actually prefer a BOSH primitive for changing colocation strategies. Do you know how far out that work is? I think we were mostly thinking about this feature as a stop-gap until "topologies" or "roles" are implemented in BOSH.

We had another break today due to the duplication the current constraints require.
We have opsfiles that add instance groups that need configuration common to other jobs, but can't copy the necessary configuration in from anywhere, so have to duplicate it. Specifically, we had changes to how we accessed name variables that didn't make it into the ops files.
For something like, say, every metron agent needing mutual tls stuff to talk to loggregator, it would be really nice to be able to copy this stuff until it's made available via link.
I know that links are the correct solution. In the mean time, we're feeling pain from incorrectness we're not positioned to do much about.

@cppforlife why isn't this being viewed as a generic library? I'd love to see go patch interpolation added as a feature to fly CLI, for example, and this library being generic as possible should facilitate that.

@cppforlife: what's the status of this feature request? I see that it's marked with v2, so I have hope that it'll happen one day. For my team, it would be useful for configuring diego isolation segments, concourse tagged workers, etc., where we want to copy the configuration of a base diego cell, concourse worker, etc., and apply a few changes on top. Or is there a cleaner way to handle that use case?

@jmcarp one of the unanswered questions for copy op is once content is copied, how does one reference new content or original content (aside from some kind of numeric index) since both content pieces will be same?

Is that really a problem though? They'll have unique paths, right? Since one must copy to an addressable location?

@cppforlife Better support for changing colocation strategies would be super useful. We're trying to start working on a small-footprint deployment manifest for CF, but we're not sure how we'll keep properties in sync between our main manifest and our small-footprint manifest, so the feature request is becoming more timely.

@cppforlife: I see what you mean. If we have a manifest like this:
instance_groups:
- name: foo

and an operation like this:
- type: copy
  from: /instance_groups/name=foo
  path: /instance_groups/-

then we'll get a manifest like this:
instance_groups:
- name: foo
- name: foo

and won't be able to distinguish the two identical instance groups, except by index. We could always immediately modify the last instance group:
- type: copy
  from: /instance_groups/name=foo
  path: /instance_groups/-
- type:  replace
  path: /instance_groups/-1/name
  value: bar

but that feels like a hack. What if we allowed key-value pairs from the path to override values in the copied object, like this:
- type: copy
  from: /instance_groups/name=foo
  path: /instance_groups?/name=bar

so that we would copy instance group foo, but override its name to bar. That would give the original and copied objects different key-value paths. Would that make sense?

You could also work around this issue by inserting the new instance group name with a replace, and then copying its properties, etc, into place with copy operations.
The "make another instance group, but with a different name and one or two changed properties" use case suffers from this, though it has workarounds. The "copy a job from its usual location to a colocation instance group and then delete the original to reduce footprint" use case doesn't run into this at all.

More brainstorming syntax...
A new type which changes context and whose value are ops to be applied to it.
- path: /instance_groups/name=foo
  type: apply # change context
  value:
  - path: /
    type: copy
    value: //instance_groups/- # xquery-style double slash for root
  - path: /name
    type: replace
    value: bar

A new ops field [only on copy?] which supports relative paths.
- path: /instance_groups/name=foo
  type: copy
  value: /instance_groups/-
  ops:
  - path: name
    type: replace
    value: bar

@dpb587-pivotal: I like the second option that you proposed--it's like the syntax I was thinking of, but more explicit. @cppforlife: wdyt? I'd be happy to write a patch if you think the interface makes sense.

The post-copy local operations are elegant.
I would only suggest that the sub-key for defining them is named in such way that clearly states when the sub-operations are going to happen.
Indeed, writing this would be perfectly legal, but hard to catch:
- ops: # it's not obvious here that this is happening after the copy below has taken place
  - path: name
    type: replace
    value: bar
  path: /instance_groups/name=foo
  type: copy
  value: /instance_groups/-

Something like post-ops, after or then (which reads nicely) would fit there:
- path: /instance_groups/name=foo
  type: copy
  value: /instance_groups/-
  then:
  - path: /name # root context is set to the root of the copied node
    type: replace
    value: bar

Whereas post-ops and after would allow to later introduce pre-ops or before, if at some point such concept turns out to be relevant for some operations.
As far as path is concerned, I would recommend for consistency that we don't introduce any new kind of path expressions, and just state that sub-operations are local to the targeted YAML node.


Drawable Resource Error

Cannot access class 'org. jetbrains. compose. resources. DrawableResource'. Check your module classpath for missing or conflicting dependencies
I am getting this error while Accessing PlayerConfig() in Jetpack Compose App. How to resolve it?

@Ansalpandey can you help us with compose version on your project?

@Ansalpandey can you help us with compose version on your project?

Here's my libs.versions.toml file
[versions]
agp = "8.7.1"
kotlin = "2.0.20"
coreKtx = "1.13.1"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
lifecycleRuntimeKtx = "2.8.6"
activityCompose = "1.9.3"
composeBom = "2024.10.00"
[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

@Ansalpandey You are using it into KMP/CMP or Android?

@Ansalpandey You are using it into KMP/CMP or Android?

No I am using it in Jetpack Compose.

@Ansalpandey Please check with latest version!


IPsec Mobile Client: Split DNS: Fixing MacOS and iOS with IKEv2

Describe the bug
We have internal DNS servers in our network providing private DNS zones. So for example dc1.contoso.com is provided by DNS server <IP_ADDRESS>. MacOS and iOS IPsec Mobile Client users should be configured, so that they use for domain names like host01.dc1.contoso.com the DNS server <IP_ADDRESS>. For www.google.com it should still be the DNS server of the lokal network of the client. But somehow Windows 10 Clients just work, but Apple Devices fail resolving internal DNS names.
Cisco used to provide a UNITY attribut extension for that functionality - this is available for Cisco Anywhere clients. This is configurable in OPNsense. But not for plain IKEv2 clients.
According to https://wiki.strongswan.org/projects/strongswan/wiki/AppleClients there is a new attribute INTERNAL_DNS_DOMAIN (IANA number 25). Newer MacOS and iOS clients use that value.
So if you configure 25 same as 28675 (comma separated list of split domain names) split DNS just works.
e.g.
charon {
    plugins {
        attr {
            dns = <IP_ADDRESS>
            # Default domain and split DNS domains
            28674 = office.contoso.com
            28675 = dc1.contoso.com,dc2.contoso.com,dc3.contoso.com,office.contoso.com
            25 = dc1.contoso.com,dc2.contoso.com,dc3.contoso.com,office.contoso.com
        }
}

So by adding attr 25 you would fix split DNS for a lot of standard IKEv2 clients.
To Reproduce
Create VPN -> IPsec -> Mobile Client. Configure Split DNS.
Connect using iOS or MacOS device. See if internal DNS names get resolved. No? Add 25 attribute in your config. Check again. :-)
Expected behavior
IKEv2 Clients should just work out of the box these days...
Environment
Software version used and hardware type if relevant.
OPNsense 19.1.4 (amd64, OpenSSL).

@AdSchellevis Excellent, the iOS and MacOS IKEv2 clients are working properly with your patch.
Question: In https://wiki.strongswan.org/projects/strongswan/wiki/AttrPlugin is stated, that parameter 28675 is a "space-separated list of domain names". This is for Cisco clients using the Unity extension. I do not have Cisco anywhere, but maybe somebody like @mimugmail could confirm that 28675 even works of it is comma separated.

@stumbaumr thanks for confirming, I don't have Cisco stuff either at our office, so if @mimugmail has the opportunity to test that would be nice, otherwise we will have to wait until someone posts a bug if it doesn't work (I think this has been in for ages, so I would suspect it works, but you never know)

@stumbaumr you mean the old Cisco VPN Client? It's not compatible anymore to W10

Is the Cisco AnyConnect Client using the Unity Extensions?

I never tried IKEv2 with AnyConnect against OPNsense .. I'm only using OPNsense to connect to my company ASA via OpenConnect plugin.

@stumbaumr Does this really work for you under macOS 11 Big Sur? For me internal FQDN are never resolved and when I check with scutil --dns I can see that StrongSWAN's domains are ALSO appended to the default resolver!


remove system_packages, readthedocs no longer supports it

previously this flag told the readthedocs builders to use existing pre-installations of packages like numpy to speed up the build process. They removed support for this flag earlier this year, and require all users to install things via requirements.txt. All our dependencies to build docs should already be in setup.py with the "docs" extra so this should continue to work without the flag, just slower.


Make global declaration the default

Describe the problem
Seems like every day someone will have an issue with trying to import types in src/app.d.ts
Describe the proposed solution
Why not make the declare global { version the default?
Alternatives considered
No response
Importance
nice to have
Additional Information
No response

IIRC declare global only works if there is an import in the file

Ah, I was wondering what I must be missing
Adding something to force it to be a module might be confusing, although it may still help, e.g.:
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
// and what to do when importing types
declare global {
  namespace App {
    interface Locals {
      name: string
    }
    // interface PageData {}
    // interface Error {}
    // interface Platform {}
  }
}

// this line can be removed if you add an import to this file:
export default undefined;


FloFaber\MphpD\Queue::get(): Return value must be of type array, bool returned

Queue::get() fails on an empty queue.
shouldn't this line
public function get($p = -1) : array
look this way?
public function get($p = -1) : array|bool

Yes. Queue::get() should either return array or false but never true. I will fix the return type ASAP.
In the case of an empty queue however it should return an empty array. What exactly do you mean by "fails"?

@FloFaber:
I forgot to call MphpD::connect() and the Queue::get() returned false in this case. My bad. Since I connect mpd, i get an empty array, as expected.
Thanks!

Yes, that would be considered a failure and cause Queue::get to return false. The return type is now fixed in v1.1.1.


Row duplicated in ambar.py

Line 149: https://github.com/RD17/ambar-install/blob/master/ambar.py#L149

@jenkin thanks!


Issue when used with SSR?

Great component, thanks for making it available!
It works great when used with Svelte on the front end, but when I import it in Sapper it returns a server side error.
Is this something that's easily addressed?

Hi,
Thanks for checking this package out but it's been deprecated (see https://www.npmjs.com/package/svelte-emoji-selector). I should probably archive this repository.
If you are looking for an emoji picker, I'd suggest you check out my other project, Emoji Button. It's a vanilla JS emoji picker that you could probably integrate with Svelte.
https://emoji-button.js.org/


Rename consensus.go to event_loop.go

Current dependencies on/for this PR:

feature/proof-of-stake

PR #649

PR #655   👈

This comment was auto-generated by Graphite.


Write tests for the ICDAR 2013 groundtruth dataset

In 2013, there was a table extraction competition at the International Conference on Document Analysis and Recognition. Its organizers released a comprehensive dataset that contains a bunch of PDFs along with XML files describing both the position, size and cell structure of tables appearing in those documents.
Sometime ago, I started a branch in tabula-extractor with code that reads those descriptions and runs Tabula's extractors against the documents: https://github.com/tabulapdf/tabula-extractor/blob/icdar-groundtruth-tests/test/icdar-test.rb
It would be great to revive that effort.

@jazzido do you mean to write tests against these documents in tabula-java? reading the table description from xml files?

@jazzido I committed a test for one single file (eu-001.pdf) just to check with you if I'm correct.
I should read the bbox data from region xml file, extract the table/s using that bbox and  then check if the cells are the same in structure xml file?. I added some comments in the test, I'm open to suggestions. Thanks!

Yes, the idea is to read the page areas from the XML files and run our extractor there. As you've seen, the ICDAR dataset has separate files for the page areas and for the structure of the ground-truthed tables. We need to use both of them: read the area from the *-reg.xml and the structure from *-str.xml.
After that's done, we should implement a comparison method between the ground-truth and our detection. This paper, by the organizers of the ICDAR competition, describes one.
Thanks so much for this, Meli. Having a comprehensive, independent test suite is a great step ahead for Tabula :)

Thanks @jazzido . So, the comparison is not as simple as I thought. I'll start with the first part: read xml files and extract tables. In the meantime I''ll read the paper to understand how the comparison should be. Looking forward to implement the algorithm!

I think that the implementation of the ICDAR test suite can be a separate project, so you're more than welcome to use Scala, or JRuby, or whatever JVM language you're comfortable with.

Awesome! Scala is a very good choice :+1: Should we create a new repository or we commit the code here?

I'll create a new repo under tabulapdf and give you access.

Here: https://github.com/tabulapdf/icdar-testsuite
You have committer access, no need to PR.

Great, thanks!

@melisabok I was going to try to incorporate some of the icdar data to set up tests for #49 - my plan was to have some tests for table region detection so that I could then test various table detection schemes.
Have you got anything going yet? I don't want to duplicate work if I don't have to. If not maybe I'll start writing table detection tests against tabula-java on my own and you can integrate them into this larger test suite later on?

@mcharters : writing table detection tests against tabula-java on my own and you can integrate them into this larger test suite later is a good option.
I'll commit my code on this new repo asap.

@melisabok Sounds good, thanks! That's what I'll do.

It's so exciting that you guys are tackling this. I can't stress enough how important it is to have an extensive test suite for Tabula. It'll allow us to track regressions in the quality of the extractor and stay focused on what needs to be improved.
I probably won't be able to contribute much code, but please don't hesitate to ping me if you need help understanding the codebase.
Thanks again!

@melisabok I added my initial table detection tests based on the ICDAR data in pull request #53 - feel free to steal any code you need! Maybe one day I'll learn some Scala and be able to help move everything over. :)


daemon在同步数据时报错，程序关闭

2018-05-16 13:40:46 ERROR: CheckProofOfWork(): nBits below minimum work
2018-05-16 13:40:46 ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=1737424)
重启后又报了类似错误
2018-05-16 18:38:21 ERROR: CheckProofOfWork(): nBits below minimum work
2018-05-16 18:38:21 ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=1826978)

first u have to checkout the hash of the first block  is same as ours.
then our main net is not online,please use test net right now.
thanks!

because your block of proofwork is below our limited value .

if u have block  in  last  version ， please  delete old blocks;


🐛 BUG: Not enough arguments following: compatibility-flags (Pages/Functions)

Which Cloudflare product(s) does this pertain to?
Pages
What version of Wrangler are you using?
?
What operating system are you using?
Mac
Describe the Bug
CF Pages build all failing since 1hr ago with the following error:
22:40:00.304 | Found Functions directory at /functions. Uploading.
22:40:01.051 | ✘ [ERROR] Not enough arguments following: compatibility-flags

I do not use any wrangler.toml and have just 2 functions in my Pages app.
Env:
NODE_VERSION=16

Hey,
This was an issue our side which we rolled back last night. Apologies for the issue!


doxygen content exceding theme width

Expected Result
Want to display the doxygen API content like this..
https://imgur.com/LEB3jcH
Actual Result
I am trying it on the local machine.
Here the doxygen content is going out of bounds like below.
https://imgur.com/CqcIWzC
I have tried:
Giving custom css in the _static folder.
Adding css to the class of the doxygen content.
Tried adding 'body_max_width': '80%' to the html_theme_options in conf.py file.
But not able to get any result as expected.

I am trying it on the local machine.

So, you are seeing this locally and not only on read the docs?
Maybe is worth creating this issue in the theme repo https://github.com/rtfd/sphinx_rtd_theme

I am trying it on the local machine.

So, you are seeing this locally and not only on read the docs?
Maybe is worth creating this issue in the theme repo https://github.com/rtfd/sphinx_rtd_theme

Thanks @stsewd. I will look into that.

Hi, @stsewd I have also tried the same on readthedocs server. It was not working. Moreover I have seen the repos for which it is working as required.
Checked Conf.py and Doxyfile. Do we need to check any other details. Please suggest.

Sorry, no. I still think this is a problem with the theme https://github.com/rtfd/sphinx_rtd_theme/issues/731 or with something else, not from read the docs (since it can be replicated locally).

Okay then. Let us see if anyone can help out. Else we can close it.
Thanks.

Let's use the rtfd/sphinx_rtd_theme#731 to continue this discussion.


404 in public folder

For me worked only after putting 404.html in the public folder. Maybe should be the case to specify that. Using vite i have the index.html in the root folder. I dont know if it depends by that.

I had to do the same thing to get this working.

same here, took me a while to figure out and found i just neet to put 404.html in the public folder....


Update OZW to 0.1.2

Description:

update ozw to latest master
fix some pyozw bugs

@pvizeli this still did not pull in the latest master from the python-openzwave upstream repository
Specifically to fix home-assistant/python-openzwave install on Windows we need

The commit d8586a66 from OpenZWave/python-openzwave repository

Update home-assistant/python-openzwave copy of appveyor.yml to set the PYPI_USER & PYPI_PASSWORD with encrypted credentials (AppVeyor encrypt tool) for uploading to https://pypi.org/project/homeassistant-pyozw/ through the AppVeyor CI


I should be able to define new configs without an anchor point

Attempting to add a new definition to an invalid anchor point will result in an error:
$config_transformer->add( 'constant', 'FOO', 'bar', [ 'anchor' => 'doesnotexist' ] );
// Fatal error: Uncaught Exception: Unable to locate placement anchor.

This requires the user to know the complete contents of the config file ahead of time so a real anchor point can be specified. This may not be possible in cases where a config file has been heavily modified by someone else.
I think users should be able to specify [ 'anchor' => false ] to anchor new definitions at the EOF.

We should even prefer to use a constant for this instead:
[ 'anchor' => WPConfigTransformer::NO_ANCHOR ]

When we map this to a flag in the config command later on, it should be irrelevant what the actual value of the constant is.


ml_decision_tree failed to compile

Hello guys,
I'm training a decision tree. My dataframe has 100 rows and 2473 columns. The code I'm using is the following:
arbol <- base %>%
  ml_decision_tree(BGI ~ . -var1-var2-var3, type = "classification")

But the job doesn't compile, the error I get is the following:
Error: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 8.0 failed 1 times, most recent failure: Lost task 0.0 in stage 8.0 (TID 8, localhost): java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.janino.JaninoRuntimeException: Code of method "(Lorg/apache/spark/sql/catalyst/InternalRow;)Z" of class "org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificPredicate" grows beyond 64 KB
I'm running spark locally. Please let me know if any other information is needed. Thanks for your help.
Bests.

@monicarodguev See https://github.com/rstudio/sparklyr/issues/264, can you try reducing the number of columns? Say with something like:
arbol <- base %>%
  select(BGI, var1, var2, var3) %>%
  ml_decision_tree(BGI ~ . -var1-var2-var3, type = "classification")

@javierluraschi just to confirm if I am getting it right: in the select sentence should I include all the variables I want to have in the model? Or just the ones I want to exclude?

@monicarodguev The ones you want in the model

Well in fact I would like to test with near 2.4k variables. Do you think is there any limitation in the number of input variables?

@monicarodguev we've experienced some column limitations in Spark 1.6.x; therefore, I would highly recommend using Spark 2.x.x. For instance, by connecting as:
sc <- spark_connect(master = "local", version = "2.1.0")

@javierluraschi
I am using ml_random_forest for a classification model building. Could you please help me with the model parameter to control the sample size

dsblr issues is addressed in 377
@monicarodguev I can reproduce your issue as follows. The problem here seems to be in Spark itself, not sparklyr,
sc <- spark_connect(master = "local", version = "2.1.0")
df <- data.frame(replicate(2473,sample(0:1,100,rep=TRUE)))
df_tbl <- copy_to(sc, df)
arbol <- df_tbl %>%
  ml_decision_tree(X2000 ~ . -X1-X2-X3, type = "classification")

Error: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 31.0 failed 1 times, most recent failure: Lost task 0.0 in stage 31.0 (TID 129, localhost, executor driver): java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.janino.JaninoRuntimeException: Code of method "eval(Lorg/apache/spark/sql/catalyst/InternalRow;)Z" of class "org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificPredicate" grows beyond 64 KB

However, this works as expected in Spark 2.2:
sc <- spark_connect(master = "local", version = "2.2.0")
df <- data.frame(replicate(2473,sample(0:1,100,rep=TRUE)))
df_tbl <- copy_to(sc, df)
df_tbl %>%
  ml_decision_tree(X2000 ~ . -X1-X2-X3, type = "classification")

* No rows dropped by 'na.omit' call
$features
   [1] "X4"    "X5"    "X6"    "X7"    "X8"    "X9"    "X10"   "X11"   "X12"   "X13" ...
 [ reached getOption("max.print") -- omitted 1469 entries ]

$response
[1] "X2000"

$max.bins
[1] 32

$max.depth
[1] 5

$categorical.transformations
<environment: 0x1171aab88>

$data
<jobj[7516]>
  class org.apache.spark.sql.Dataset
  [X1: int, X2: int ... 2472 more fields]

$ml.options
$id.column
[1] "id26f1380e5d50"

$response.column
[1] "response26f137104bf0"

$features.column
[1] "features26f1ee995ce"

$model.transform
NULL

$only.model
[1] FALSE

$na.action
[1] "na.omit"

attr(,"class")
[1] "ml_options"

$model.parameters
$model.parameters$features
[1] "features26f1ee995ce"

$model.parameters$labels
NULL

$model.parameters$response
[1] "response26f137104bf0"

$model.parameters$id
[1] "id26f1380e5d50"

$model.parameters$model
[1] "org.apache.spark.ml.classification.DecisionTreeClassifier"

$.call
ml_decision_tree(., X2000 ~ . - X1 - X2 - X3, type = "classification")

$.model
<jobj[17437]>
  class org.apache.spark.ml.classification.DecisionTreeClassificationModel
  DecisionTreeClassificationModel (uid=dtc_0648ee6c094b) of depth 5 with 29 nodes

attr(,"class")
[1] "ml_model_decision_tree" "ml_model"

Closing issue since this is Spark specific and already fixed in latest version of Spark. Let us know if you hit any other issues in a new issue, thanks!


Add support for element removal

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


struct should require use of new?

no, because I don't want to encourage over-engineering types. It could encourage me to rely on instanceof instead of simple duck typing in small projects


Remove bookmark checkbox.

Closes #190.

Coverage remained the same at 100.0% when pulling f3f66c9273558e803807ec43481e61d2890e98b2 on bookmark_checkbox into c290dc8e54df1467b08b5ec0062b1bfda84173bb on master.


Event handlers are typed any in styled-components/native

Environment
System:

OS: macOS 13.4.1
CPU: (8) arm64 Apple M1 Pro
Memory: 385.42 MB / 32.00 GB
Shell: 5.9 - /bin/zsh

Binaries:

Node: 16.17.0 - ~/.volta/tools/image/node/16.17.0/bin/node
Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
npm: 8.15.0 - ~/.volta/tools/image/node/16.17.0/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman

npmPackages:

styled-components: 6.0.7 => 6.0.7

Event callbacks are typed as any with styled-components/native on React Native, based on this PR: https://github.com/styled-components/styled-components/pull/4086, this should be fixed and it is on the styled-components package but not on the styled-components/native.
Reproduction
import styled from "styled-components/native";
import React from "react";

export const Container = styled.View({
  width: "100%",
});

type Props = {
  children?: React.ReactNode;
}

export function Component({ children }): Props) {
  const [containerWidth, setContainerWidth] = useState(0);
  return (
    <Container
      onLayout={event => { // typed as any
        setContainerWidth(event.nativeEvent.layout.width);
      }}
    >
      {children}
    </Container>
  );
}

import React from "react";
import { View  } from "react-native";

type Props = {
  children?: React.ReactNode;
}

export function Component({ children }): Props) {
  const [containerWidth, setContainerWidth] = useState(0);
  return (
    <View
      onLayout={event => { // typed correctly as LayoutChangeEvent
        setContainerWidth(event.nativeEvent.layout.width);
      }}
    >
      {children}
    </View>
  );
}

Expected Behavior
Infer typing
Actual Behavior
Events are typed as any in styled-components/native

This also happening for me


validate process extensions

Related to https://github.com/Activiti/Activiti/issues/2584

@roxanaspatariu @constantin-ciobotaru love the examples ->  :)
This PR is good from my point of view..


Data type 'varchar' is not supported in this form

Just changed to the new AspNetCore packages on vnext with vs 2015 update2 rc
The below used to work before this.  I was on the last known good packages before the name change on vnext.
I have a derived DbContext which sets a database depending on a routing value as below
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;

namespace Reports2.Models
{
    public class TradingCompanyDbContext:ReportingDbContext
    {
        private readonly IConfiguration _config;
        private readonly IHttpContextAccessor _httpContextAccessor;
        public TradingCompanyDbContext(IConfiguration config, IHttpContextAccessor httpContextAccessor,DbContextOptions options):base(options)
        {
            _config = config;
            _httpContextAccessor = httpContextAccessor;
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var tradingCompany = _httpContextAccessor.HttpContext.GetRouteValue("tradingCompany");
            if (tradingCompany != null)
            {
                var connectionString = _config["Data:" + tradingCompany + ":ConnectionString"];
                optionsBuilder.UseSqlServer(connectionString);
            }
        }
    }
}

It seems whenever I use this context I am getting
NotSupportedException: Data type 'varchar' is not supported in this form. Either specify the length explicitly in the type name, for example as 'varchar(16)', or remove the data type and use APIs such as HasMaxLength to allow EF choose the data type

Any ideas.
This is a preliminary inquiry .  I realise a repro would be best but maybe its a known thing before I go down that road

Are you specifying the store type "varchar" in a data annotation or in OnModelCreating? If so, change it as suggested in the message. If not, then please post your model classes and any code you have in OnModelCreating.
See this PR : #4500, and also this open issue: #3420

Ok the on model creating was scafolded a while back by reveng .  I see hascolumntype is varchar (note no length) and hasmaxlength as length.  I presume this has changed now?  Shall I re reveng  or is there a new dotnet cli tool now.

The RevEng tool has been updated to produce the right results - see #4348. Or you can just change the code manually to specify e.g. HasColumnType("varchar(length)").

Ok thanks it's a lot of fields so I'll reveng again.  I'll do it tomorrow and close this if it all goes ok.

OK I had to manually change (long job) this because I couldn't get donet ef to work or dnx ef.
Probably due to the flux at the moment.
Im going to open another issue for that
Thanks for your help

Sorry - it is a problem at the moment (hopefully fixed soon). But I should have said that the Scaffold-DbContext powershell command within Visual Studio has been working consistently even when the command line dotnet ef command does not. If you run into trouble again that might help you.

Data type 'varchar' is not supported in this form. Either specify the length explicitly in the type name, for example as 'varchar(16)', or remove the data type and use APIs such as HasMaxLength to allow EF choose the data type.'
before fixed :
.HasColumnType("varchar")
.HasMaxLength(50);
solution is:
.HasColumnType("varchar(50)");
It is working.


QueryParserUtil fails to parse some URIs

I am trying to insert triples from wikidata into a native store however the query parser for updates fails to parse the query with this error:
Exception in thread "main" org.eclipse.rdf4j.query.MalformedQueryException: Unexpected character U+23 at index 63: https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References [line 1]
	at org.eclipse.rdf4j.query.parser.sparql.SPARQLParser.parseUpdate(SPARQLParser.java:158)
	at org.eclipse.rdf4j.query.parser.QueryParserUtil.parseUpdate(QueryParserUtil.java:76)
	at eu.qanswer.enpoint.TestNativeStore.main(TestNativeStore.java:24)
Caused by: org.eclipse.rdf4j.rio.RDFParseException: Unexpected character U+23 at index 63: https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References [line 1]
	at org.eclipse.rdf4j.rio.helpers.RDFParserHelper.reportError(RDFParserHelper.java:272)
	at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.reportError(AbstractRDFParser.java:638)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.reportError(TurtleParser.java:1305)
	at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.createURI(AbstractRDFParser.java:409)
	at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.resolveURI(AbstractRDFParser.java:397)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseURI(TurtleParser.java:948)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseValue(TurtleParser.java:580)
	at org.eclipse.rdf4j.rio.trigstar.TriGStarParser.parseValue(TriGStarParser.java:56)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObject(TurtleParser.java:462)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:390)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:363)
	at org.eclipse.rdf4j.query.parser.sparql.SPARQLUpdateDataBlockParser.parseGraph(SPARQLUpdateDataBlockParser.java:147)
	at org.eclipse.rdf4j.rio.trig.TriGParser.parseStatement(TriGParser.java:112)
	at org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:179)
	at org.eclipse.rdf4j.query.parser.sparql.SPARQLParser.parseUpdate(SPARQLParser.java:145)
	... 2 more

I tried to set the configuration for the parser to not check the URI syntax however it didn't solve the problem:
...
String indexes = "spoc,posc,cosp";
        Repository repo = new SailRepository(new NativeStore(dataDir, indexes));

        RepositoryConnection connection = repo.getConnection();
        connection.setParserConfig(new ParserConfig().set(BasicParserSettings.VERIFY_URI_SYNTAX, false));
        QueryParserUtil.parseUpdate(QueryLanguage.SPARQL,"","");
        connection.prepareUpdate("insert data {" +
                "<http://www.wikidata.org/reference/7746291fe09868c54f05f8bebe8447dffdcb05d1>" +
                " <http://www.wikidata.org/prop/reference/P854>" +
                " <https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References> ." +
                "}");
...

I'm wondering if there is a way to bypass this error.

You can't bypass this, for several reasons: first of all the parser config settings only influence the RDF parsers, not the SPARQL query parser. Secondly, the query parser is correct to flag this as an error, the URI is in fact syntactically incorrect, leading to a syntactically illegal SPARQL query.
What you can do is fix the syntax error in the input. The problem is the second '#' character in the URI https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References. A URI fragment identifier is not allowed to contain further '#' characters - it will need to be %-encoded.
RDF4J offers a handy tool to convert any URI string to a syntactically legal encoding (if possible): ParsedIRI.create().
IRI iri = ParsedIRI.create("https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References");
System.out.println(iri.toString()); // output: https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168%23References

You can't bypass this, for several reasons: first of all the parser config settings only influence the RDF parsers, not the SPARQL query parser. Secondly, the query parser is correct to flag this as an error, the URI is in fact syntactically incorrect, leading to a syntactically illegal SPARQL query.
What you can do is fix the syntax error in the input. The problem is the second '#' character in the URI https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References. A URI fragment identifier is not allowed to contain further '#' characters - it will need to be %-encoded.
RDF4J offers a handy tool to convert any URI string to a syntactically legal encoding (if possible): ParsedIRI.create().
IRI iri = ParsedIRI.create("https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168#References");
System.out.println(iri.toString()); // output: https://cowboybebop.fandom.com/wiki/Mars#cite_ref-1?oldid=23168%23References

I just realized that in this case, because it is an INSERT DATA operation, the sparql parser actually does delegate parsing of the data to the RDF parsers (which is why you see org.eclipse.rdf4j.rio.* in your stacktrace), so my previous comment was not fully accurate.
There is no direct programmatic access availble to this parser, but if you wanted to, you could reconfigure it by means of setting an environment variable or java system property, as described here: https://rdf4j.org/documentation/programming/rio/#configuration-via-command-line-switches . Keep in mind though that doing so will influence all parser instances. Also: having syntactically incorrect URIs in your databaseis likely to cause you headaches further down the line.

I just realized that in this case, because it is an INSERT DATA operation, the sparql parser actually does delegate parsing of the data to the RDF parsers (which is why you see org.eclipse.rdf4j.rio.* in your stacktrace), so my previous comment was not fully accurate.
There is no direct programmatic access availble to this parser, but if you wanted to, you could reconfigure it by means of setting an environment variable or java system property, as described here: https://rdf4j.org/documentation/programming/rio/#configuration-via-command-line-switches . Keep in mind though that doing so will influence all parser instances. Also: having syntactically incorrect URIs in your databaseis likely to cause you headaches further down the line.

I hope this has answered your question. If you have any further comments or question, feel free to comment/reopen this issue.

I hope this has answered your question. If you have any further comments or question, feel free to comment/reopen this issue.

I managed to pass the java system property to disable the URI verification, and in this case it's just because I'm dumping from wikidata and considering that they could store this in their triple store then it's fine. However in general this verification should be activated for data insertions from other sources.
Thanks for your reply!


Updated Middleware information for Scoped Service lifetimes

@rahulpnath  great catch. I'll edit this PR and merge after #19271 merges so you'll get the commit credit. We could really use an expert like yourself on the docs.

@Rick-Anderson Thank you and it looks good to me!


[Preprocessing] Move TD interpreter pass before preprocessing passes

This PR moves the transform dialect interpreter before the preprocessing-pass-pipeline, so transform scripts will be applied before any other preprocessing passes. The main purpose for this is to use the preprocessing TD interpreter to annotate convolutions for Winograd transformation rewrites, since the Conv2DToWinograd pass is usually called as preprocessing.

feels a bit whackamole-y and one of the issues with transform dialect being distinct from the pass pipeline - can you invoke the transform dialect stuff as a pass with pass options instead of using distinct flags?

feels a bit whackamole-y and one of the issues with transform dialect being distinct from the pass pipeline - can you invoke the transform dialect stuff as a pass with pass options instead of using distinct flags?

There is certainly some redundancy here; the pass pipeline flag can invoke the interpreter, and the interpreter can invoke any pass pipeline, so the ordering here is somewhat arbitrary. I'm inclined to approve this because it makes a known downstream case more convenient.

yeah, and next time someone changes it back to where it was the flag is removed and you'll use pass pipelines :)

yep! the flag is just saving a few chars in the pipeline but will always have a placement issue - if you want to run transform dialect scripts between two other passes you'd have to use it, so it's pretty arbitrary to have it either before or after. the flag just doesn't compose.

@qedawkins was there any specific reason that this pass got its own special flag to begin with? I'm inclined to just remove it now.

(tbc also ok with landing to unblock work, but would love to see it die eventually so someone else isn't hit with the ordering issue :)

No, no. I think there is nothing to unblock anymore. I just need to change my flags a bit in my compile command.

yeah, and next time someone changes it back to where it was the flag is removed and you'll use pass pipelines :)

Yeah pretty much :)
I don't want to claim any stability in this directory, and the TD flag is pure convenience because it is a common standard use case. The same applies to the PDL pattern flag. If we want to say everything has to go through the pass pipeline that's fine, but it is certainly a hit to developer workflows.

If Max is ok changing his flag setup then I have no problem, but I would prefer to keep the TD flag.

why can't I hold all of these redundant flags?

:P
I'd be surprised if anyone is typing any of these flags from memory each time they use them and is instead copying/ripping apart commands in scripts or their clipboard. Adding flags that don't compose is optimizing for chaos. Having multiple ways of doing the same thing that are mutually exclusive is a hit to developing/teaching developer workflows :)

If Max is ok changing his flag setup then I have no problem, but I would prefer to keep the TD flag.

I think if we want more convenient flags with fewer characters, then a better solution would be to just improve the string parsing/flag formats. I didn't even know about this preprocessing TD flag until now. I think it's just easier to have fewer flags to keep track of/know about.

I'd be surprised if anyone is typing any of these flags from memory each time they use them

Someone is... :P


Dev tools

Some of the following:

[ ] pre-commit with prettier formatting EDIT: this should be done as part of an isolated PR
[ ] pre-commit hook with npx eslint . check
[x] github action that runs npx eslint ., for node 16 and 18
[x] github action that tests vite build, for node 16 and 18

Commits 53c0f65, 72c0bfd and d4b396a solve some of the eslint errors. @rkpasia, can you please double-check?
Then there are a bunch of errors left (see these logs), that we can either solve or ignore - but this is postponed waiting for https://github.com/fractal-analytics-platform/fractal-web/pull/136.


[BUG] FLAWHUD. Damage number and health style doesn't change, always default.

As it says in the topic. When changing damage numbers to anything is still is big bold no matter what I set (I like the thin small). Same with the healthstyle, always default settings there too no matter what I choose.
I did redownload and reinstall the app. Also deleted all json files so it was downloaded again. Did not help.

Can you post a screenshot of your editor and the tf/custom directory please.

comfig-custom is just crosshairs. I have tried without it. No difference.

Thank you. The files appear to be correct. Can you post the logs found on the Editor'a logs folder?
This may be related to stale editor files in AppData, for which several recent issues have been reported and will be addressed in the next release

20240831.log

Thanks. This is related to #231 which has been reported by multiple users recently. It will be fixed in the future release but in the meantime what some users reported as working for them is going to their AppData directory
C:\Users\[username]\AppData\Local and deleting the CriticalFlaw folder. This will reset all customizations but should also fix the issue for you.

Deleted the folder and reinstalled. Did not help. Also tried to delete the folder after install. No change then either.

Can you please try the preview build https://github.com/CriticalFlaw/TF2HUD.Editor/releases/tag/3.3-preview and see if that resolves the issue?

Tried 3.3. Still default settings.

Do you happened to have multiple drives on your PC besides the C drive?

Yes. I have a D drive I more or less only have torrents on.
mån 2 sep. 2024 kl. 20:39 skrev Igor @.***>:

Do you happened to have multiple drives on your PC besides the C drive?
—
Reply to this email directly, view it on GitHub
https://github.com/CriticalFlaw/TF2HUD.Editor/issues/237#issuecomment-2325193533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXW6B7OEIRPIMNIAAMUIM3DZUSWFDAVCNFSM6AAAAABNCR52AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVGE4TGNJTGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

I installed net 8.0 and now hudeditor 2.3 will not start, only 3.3 works.
Den tis 3 sep. 2024 kl 16:27 skrev Tom Österström @.***>:

No. All steam and all games are on my C.
Den tis 3 sep. 2024 kl 15:17 skrev Igor @.***>:

Do you by chance have a steam directory on the D drive with its own copy
of TF2?
Because the only other thing I can think of is that you're launching a
separate copy off the D drive while all the changes go into C. Just seeing
if that's a possibility
—
Reply to this email directly, view it on GitHub
https://github.com/CriticalFlaw/TF2HUD.Editor/issues/237#issuecomment-2326503313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXW6B7IHLDIZF7BM6XECM2DZUWZFVAVCNFSM6AAAAABNCR52AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRWGUYDGMZRGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

I found a hudeditor directory under local, deleted it and also deleted the criticalflaw directrory once again.
Now it works! Any settings I try works ingame.

Thanks. I'll add a clear cache option that will perform this action for the user to resolve this issue. 5564cdc7ee0fae7df95d5d09a6ccdaedd37f2423


Add a notice about review capacity.

This adds a notice to let people know about the limited review capacity on the team.

@ehuss: no appropriate reviewer found, use r? to override

That's a good idea!  I also added a notice to the CONTRIBUTING.

@bors r+

:pushpin: Commit 20017a249c696080f7344e45ae680e1d1cd44c4e has been approved by weihanglo

:hourglass: Testing commit 20017a249c696080f7344e45ae680e1d1cd44c4e with merge c5509f8b02b7a44dd21d17081c019d67f44f8b02...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing c5509f8b02b7a44dd21d17081c019d67f44f8b02 to master...


Escape file names to accommodate valid characters

Fixes #53
I tested this pretty extensively (in the manual, and drag and drop cases), but I'm not quite sure what the intent of the removed split was. If there is something I missed there, please let me know!

It occurred to me this morning that the intention of split was probably to allow additional text after the image. I think that means that something more powerful than split (like a bonafide parser, or a regular expression) will need to be utilized to support more filenames (as my change does), as well as text after the image (which the current behavior provides). Another option might be adding another delimiter (e.g., TEXT >> MEDIA_NAME.jpg << TEXT).

Thanks @neauoire!


Investigate using ConcurrentBag for DefaultObject pool (post corefx merge)

From @benaadams on Wednesday, November 30, 2016 1:14:10 PM
When this is merged to corefx dotnet/corefx#14126 it will be worth (re)visiting ConcurrentBag for object pooling.
/cc @rynowak @davidfowl
Copied from original issue: aspnet/Common#174

From @rynowak on Monday, December 5, 2016 1:05:41 PM
Is there some data to go with this? or just a feeeeeeeeeeeeeeeeeeeeeeeeeeeling?

From @benaadams on Monday, December 5, 2016 2:04:15 PM
Had data to show why you shouldn't use ConcurrentBag or ConcurrentStack but ConcurrentQueue, which is why Kestrel uses the Queue for its pool.
Corefx change invalidates this data - so needs revisiting; don't have data yet...

Thanks from bringing this up, @benaadams.
We're closing this issue as the value is not clear.
If you feel it's really important and you have more data supporting it, we'll reconsider.


audit: new formulae should not have a HEAD spec

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

We almost always remove the HEAD spec from new formulae.

Thanks again @commitay!


can't open the game

Describe your bug here. Mind you, if you are modding, please try testing your bug in a clean version of the engine instead, this ensures the bug is actually caused by the engine itself. Also, if you're using an older version of JSE, please try the latest action build in the Actions tab or the latest release build. The issue has probably been fixed since that version. Oh yeah, and also be sure to check the pinned 'JS Engine: Known Issues' issue, to double check if your issue hasn't already been found!
so, I got a clean version of the newest updated build of JS Engine... I try opening the .exe file... and.. uh, yeah, that happens.

Command Prompt/Terminal/Crash logs (if existing)
[lime.utils. Preloader] ERROR: There is no asset library with an ID of "videos"

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
I mean.. just tried to get the newest version.. and no I'm not using the source code, I just download the main build.

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
nope
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
No
Did you check for any similar issues to what you're reporting? Check, then come back here. If there is a similar issue, then do not report the issue, otherwise it will be marked as a duplicate.
Yes

oh yeah my bad, forgot to mention, I tried adding the videos folder where the .exe is as well to see if that fixes the issue, but, no, it doesn't.

What version? Also, is there a videos folder in assets?

What version? Also, is there a videos folder in assets?

the latest version, v1.23.1
yes there is a videos folder in assets

this might sound stupid but did you extract it over an existing js engine folder?

uhhhhh

..maybe???

nah I don't think so

I opened JSE on a clean folder and didn't get that error.

hi so uh averyhungryOpheebopYT is a friend of mine
what's going on here.,.,,f-

hi so uh averyhungryOpheebopYT is a friend of mine
what's going on here.,.,,f-

Error: There is NO asset library with an ID of "videos" moment

🔥

The only time I saw something similar was when I compiled VS Impostor (old build) and got that error

which I fixed by setting openfl and lime to earlier versions

https://github.com/JordanSantiagoYT/FNF-PsychEngine-NoBotplayLag/assets/89925435/40163bc4-c88e-4fbb-b6e0-acec5ff3a074
just to further prove this..

i checked Paths.hx and everything seems to be good

try deleting and re-extracting

alright I'll try, I'll tell u if that fixes it

idk if i can show this

this is in my old acc btw

ABANDONING THIS, READ ABOUT ME. 28/02/2024 19:01
dramatic much? 💀

like jeez no need to put it in all caps bro 😭

anyways

ABANDONING THIS, READ ABOUT ME. 28/02/2024 19:01
dramatic much? 💀

it wasn't dramatic 🔥

make sure its also extracted normally

ABANDONING THIS, READ ABOUT ME. 28/02/2024 19:01
dramatic much? 💀

it wasn't dramatic 🔥

unrelated but people who abandon their discord accs should at the very least delete/deactivate them

not just leave it on there forever

make sure its also extracted normally

I mean, I just select the FNF-JS-Engine.zip, then click on "extract file" and uhh.. yeah

I do nuthing else

did it fix ?

ABANDONING THIS, READ ABOUT ME. 28/02/2024 19:01
dramatic much? 💀

it wasn't dramatic 🔥

unrelated but people who abandon their discord accs should at the very least delete/deactivate them

about me says i will not delete the acc for archival purposes

ABANDONING THIS, READ ABOUT ME. 28/02/2024 19:01
dramatic much? 💀

it wasn't dramatic 🔥

unrelated but people who abandon their discord accs should at the very least delete/deactivate them

about me says i will not delete the acc for archival purposes

keyword
delete/deactivate
if they don't want to delete the acc then deactivating it is also ok

why did we switch topics so fast 🔥

why did we switch topics so fast 🔥

i have no idea 🔥🔥

aanndd nope!

idk then

what if you try to open JSEngine.exe in the terminal and see if it prints anything

how do that

what if you try to open JSEngine.exe in the terminal and see if it prints anything

ps theres no code that traces an error when preloading songs

how do that

./JSEngine.exe i frgort
make sure the terminal is set in js engine's direct roy

how do that

./JSEngine.exe i frgort
make sure the terminal is set in js engine's direct roy

wouldn't it be cd (js engine directory) then JSEngine.exe

how do that

./JSEngine.exe i frgort
make sure the terminal is set in js engine's direct roy

wouldn't it be cd (js engine directory) then JSEngine.exe

i fucking forgot how to use windows 👍 👍 👍 👍 👍 👍 👍

🔥🔥🔥🔥🔥

i remember i did reboot in cmd and then remembered i was in windows 💀

i wanted to reboot my pc

oooooook it gave me a bunch of a text

("Avery" is just "AveryhungryOpheebop")

damn
it works fine to me in windows

@JordanSantiagoYT can you check my latest issue too?

ive checked your issue

i don't have an amd gpu
the shaders were mostly taken from oshit engine, can you check if the shaders are also broken there

@JordanSantiagoYT can you check my latest issue too?

ive checked your issue

i don't have an amd gpu
the shaders were mostly taken from oshit engine, can you check if the shaders are also broken there

i checked, they are
oshit engine forgot that amd gpu users exist or something
amd gpus use GLSL 1.10 and the shaders use GLSL 1.20

how exactly do you know what the shaders are using

... what?
sorry i was confused as fuck 💀 i'm a dumbass

how exactly do you know what the shaders are using

... what?
sorry i was confused as fuck 💀 i'm a dumbass

errmmmmm
how exactly do you know if the shaders are using glsl 1.20???

how exactly do you know what the shaders are using

... what?
sorry i was confused as fuck 💀 i'm a dumbass

errmmmmm
how exactly do you know if the shaders are using glsl 1.20???

because in oshit engine it tells you that glsl 1.10 isn't compatible with glsl 1.20 shaders and then crashes

my friend with an nvidia gpu tried it and it worked well without crashes, this is maybe only for amd gpus

check if you have "videos.json" in manifest folder, if you don't have manifest folder that means you'll have to download again from releases

from what I can tell, it's an issue with lime's SDL and that you might've put the game folder into a folder where there's special characters which lime does not handle very well, meaning you'll have to move it outside of the folder in question, or your download was corrupted/extraction failed, or you accidentally deleted the videos folder or videos.json

and seeing that your pcs language isn't in english, my first assumption might be very correct

and seeing that your pcs language isn't in english, my first assumption might be very correct

holy shirt You were right- it's because my downloads folder is called "Téléchargements", and it probably doesn't support the common "é" in French
thank You so so much!

and seeing that your pcs language isn't in english, my first assumption might be very correct

holy shirt You were right- it's because my downloads folder is called "Téléchargements", and it probably doesn't support the common "é" in French thank You so so much!

yeah np


Joining my matches

I've set up East using the instructions, so far I really like the possibilities of this application.
I have been using Spark as my automated spectator connection, but I wanted to get EAST working so that I could have replays and stats on the screen. One issue I'm not sure what is going wrong with, is connecting to my own games. I can join random games as spectator, but have yet to connect to my own games.
The question is, why can't I connect to my own games when I've entered in my own IP address for my Quest 2?

Hi, sorry for taking so long to answer,
You have to set your quest IP in EchoVR IP label
Then you click connect
And finally you check the spectate me box in the spectatorStream section

Hi there, I missed the notification email initially, but just saw the
closing one. I wasn't able to get it working the way you're describing, but
what I was able to get working was having Spark manage the launching of the
games (turned it off in EAST), and then connecting to my headset ip address
in EAST for the transitions, layouts, etc... in OBS. Once I got it working
for me I've really liked how my stream has been looking.
Something else I'd add to the instructions is that I had to use the older
version of OBS Websocket. I believe I used version 4.3.3 (not at my
computer at the moment) Release obs-websocket 4.3.3 - Windows Hotfix (OBS
21.1 and above) · obsproject/obs-websocket · GitHub
https://github.com/obsproject/obs-websocket/releases/tag/4.3.3
On Mon, Dec 19, 2022 at 12:56 PM NotBlue @.***> wrote:

Closed #59 https://github.com/NotBlue-Dev/EAST/issues/59 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/NotBlue-Dev/EAST/issues/59#event-8071738122, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A4ESE6UOKMXAFB2PGVFN3XLWOCOWVANCNFSM6AAAAAAR6E56HY
.

Hi there, I missed the notification email initially, but just saw the closing one. I wasn't able to get it working the way you're describing, but what I was able to get working was having Spark manage the launching of the games (turned it off in EAST), and then connecting to my headset ip address in EAST for the transitions, layouts, etc... in OBS. Once I got it working for me I've really liked how my stream has been looking. Something else I'd add to the instructions is that I had to use the older version of OBS Websocket. I believe I used version 4.3.3 (not at my computer at the moment) Release obs-websocket 4.3.3 - Windows Hotfix (OBS 21.1 and above) · obsproject/obs-websocket · GitHub https://github.com/obsproject/obs-websocket/releases/tag/4.3.3
…

Hey, so for the WS of OBS here is the correct version (I updated the Readme) : https://github.com/obsproject/obs-websocket/releases/tag/4.9.1-compat
Can you show me a screen of EAST when you try to spectate your game using EAST?

You set the same ip in spark for the quest as the one in EAST?And if you enable the spectate me checkbox it doesn’t start an instance to spectate you?Envoyé de mon iPhoneLe 20 déc. 2022 à 05:58, dan7gtar @.***> a écrit :
Yeah, here you will see the spectate me checkbox is blank
I have left that blank so that the Spark app connects in and shows it on my screen, and EAST then manages scene changes, replays and stats. I just checked and I do have OBS Websocket 4.9.1-compat.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

yes. I have the same ip set in EAST as I do in spark. The autojoin never
seems to join my games. As stated before East seems to be able to get me
into random games, but I have yet to successfully join my own game. When I
launch my game via spark I get in right away, and then I can use East as
configured to do everything else.
On Tue, Dec 20, 2022 at 7:06 AM NotBlue @.***> wrote:

You set the same ip in spark for the quest as the one in EAST?And if you
enable the spectate me checkbox it doesn’t start an instance to spectate
you?Envoyé de mon iPhoneLe 20 déc. 2022 à 05:58, dan7gtar @.***> a
écrit :
Yeah, here you will see the spectate me checkbox is blank
I have left that blank so that the Spark app connects in and shows it on
my screen, and EAST then manages scene changes, replays and stats. I just
checked and I do have OBS Websocket 4.9.1-compat.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you modified the open/close state.Message ID:
@.***>
—
Reply to this email directly, view it on GitHub
https://github.com/NotBlue-Dev/EAST/issues/59#issuecomment-1359263785,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4ESE6UFTF3D5KOD76C73IDWOGOMJANCNFSM6AAAAAAR6E56HY
.

That's weird, if you can add me on discord so i can check more in depth what the issue is :
Notblue#9114

Sorry for the delayed response, the holiday season has been exceptionally busy. I added NotBlue#9114 just now.
I usually have availability to play (troubleshoot) VR around 10pm EST. Hopefully we can connect and I can show you what I'm seeing when I set EAST to initiate the match joining.


Translation Chapter 4

Description

Related Issue:
Pre-commit steps

[ ] Tested on QEMU and real HW Rasperry Pi.

Not needed if it is just a README change or similar.

[x] Ran ./contributor_setup.sh followed by ./devtool ready_for_publish

You'll need Ruby with Bundler and NPM installed locally.
If no Rust-related files were changed, ./devtool ready_for_publish_no_rust can be used instead (faster).
This step is optional, but much appreciated if done.

link https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials/issues/166

link #166

@colachg Please review, thanks

since it's about translation, I think commenting in Chinese is OK?

since it's about translation, I think commenting in Chinese is OK?

当然可以

你可以check一下，如果没有问题，我们就需要进行合并。

如果你有时间可以尝试翻译第五章，我继续第六章。

@Jzow Please let us know when this is ready for merge

@Jzow Please let us know when this is ready for merge

This PR can be merged


mm-form and mm-repeater

@dlasky @jcmoore
note that this pr also includes a bump to polymer 1.3.0 – it doesn't break our existing stuff

im not sure if this is specific to the repeater index, but it seems like in your test case the error state isn't being passed to the fields themselves so they dont light up red

:+1: I think some of the var lists could be better served as an object with DataUtils.copy to create sane defaults, but i'm not gonna nitpick it on the approval side.
Also with the caveat that we need to do some serious dogfooding before this is out of 'beta' API wise

+1 aside from the one comment

:green_book: :green_apple: