Teckin SP20 First flash - No LED no AP

Fresh Raspbian image.
I ran
sudo update && sudo apt upgrade
sudo apt dist-upgrade
sudo shutdown -r now
cd ~
git clone https://github.com/ct-Open-Source/tuya-convert.git
cd tuya-convert
./install_prereq.sh
./start_flash.sh
> yes
- Connect phone to vtrust
> Enter
> ............................................................
Says to type `curl http://<IP_ADDRESS>/flash3`
Wait for snonoff-xxxx AP - Never happened, no LED

No AP was created, the LED was off. I unplugged/plugged the device and now it blinks red/blue 1 time at boot and then blue once. Then no LED.
I saw some python error in the logs :cry: EDIT: Maybe it's when I cancelled the script?
Teckin SP20 (US)
Logs:
https://transfer.sh/gdOGS/smarthack-wifi.log
https://transfer.sh/Hd2RM/smarthack-web.log
https://transfer.sh/C0yHH/smarthack-mqtt.log
I also did try a lot with digiblurDIY discord folks.

Tried pressing the button, insert the plug and wait, nothing
Tried tuya-convert again, never found the device
Tried scanning wifi signals with JAWS, didn't find anything

The backup made in ./tuya-convert was only 8192 bytes.

It does look like the device flashed the intermediate firmware. While the vtrust-flash SSID is available, plug the device in. When you see it connect in the wifi log, try to do curl http://<IP_ADDRESS>. If that succeeds, try to do curl -JO http://<IP_ADDRESS>/backup. If that succeeds, go on to curl http://<IP_ADDRESS>/flash3.

@kueblc The device never connect to the AP. :disappointed:

@Extarys
What Colin described is prior to the device being flashed with the custom firmware (i.e., Tasmota). The "intermediate" firmware is just that, the step before the custom firmware is loaded on the device.

./start_flash - to initialize the Raspberry Pi to start up the vtrust-flash AP
Connect a local device (e.g., your mobile phone) to vtrust-flash
Bring up another terminal window connected to your Raspberry Pi and tail the wifi log
Power up your SP20 and watch the tail terminal to see if it connects
If it does, you can stop the tail (ctrl-c)
Run curl http://<IP_ADDRESS>
If that is successful, start the firmware flash - http://<IP_ADDRESS>/flash3

If this is successful, you should then see the sonoff-xxxx wireless AP show up.
Mike
P.S. I flashed 10 AWP04L tonight with no issues. These are the same device as the SP20.

I am running into a similar issue with the new sw stack re: SP20.   I bought a box of 4 several months ago, 2 flashed via the older tuya-convert version.  2 won't flash with either old code or new dev code branch.
Neither one is connecting to vtrust AP.  I have tried to get them into "pairing mode" but they just won't do it.  Holding button while plugging in, waiting and then holding button, etc.
I am tempted to try loading the app on a phone to see can get 1 of them into right "mode" to connect.
Any suggestions???

You can try to capture network traffic by connecting both your phone and device to the vtrust-flash AP and recording with WireShark or tcpdump.

@kueblc The device isn't connecting to the vtrust-flash which is the issue.  I even tried connecting via smartlife app to no avail.   I sent Teckin support an email to see if I can get the 2 devices swapped, so will see what happens.

Tried flashing my second one today, I also broke it. I'll try to replace them through Amazon.
1571860572: New client connected from <IP_ADDRESS> as 44ca41a4-25bb-45f3-a78a-db836b0605dc (c1, k60).
1571860572: No will message specified.
1571860572: Sending CONNACK to 44ca41a4-25bb-45f3-a78a-db836b0605dc (0, 0)
1571860572: Received PUBLISH from 44ca41a4-25bb-45f3-a78a-db836b0605dc (d0, q0, r0, m0, 'smart/device/in/23027313bcddc2923ee5', ... (147 bytes))
1571860572: Sending PUBLISH to 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/in/23027313bcddc2923ee5', ... (147 bytes))
1571860572: Received DISCONNECT from 44ca41a4-25bb-45f3-a78a-db836b0605dc
1571860572: Client 44ca41a4-25bb-45f3-a78a-db836b0605dc disconnected.
1571860573: Received PUBLISH from 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/out/23027313bcddc2923ee5', ... (80 bytes))
1571860573: Received PUBLISH from 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/out/23027313bcddc2923ee5', ... (80 bytes))
1571860574: Received PUBLISH from 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/out/23027313bcddc2923ee5', ... (81 bytes))
1571860578: Received PUBLISH from 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/out/23027313bcddc2923ee5', ... (80 bytes))
1571860579: Received PUBLISH from 23027313bcddc2923ee5 (d0, q0, r0, m0, 'smart/device/out/23027313bcddc2923ee5', ... (81 bytes))
1571860624: Client 23027313bcddc2923ee5 has exceeded timeout, disconnecting.
1571860624: Socket error on client 23027313bcddc2923ee5, disconnecting.
1571861141: mosquitto version 1.5.7 terminating

I'd like to try slitinto, which is also tuya, no idea if it would work.
Is there another plug I could order that is somehow better for flashing OTA?

It is not clear what you mean by broke it. The log you post is entirely normal.

Oh well sorry haha. Same as the first one. I plug it in, blue blink once. That's it. The "never-ending dots" never ended. I never saw the device with fing.
Starting pairing procedure in screen
RTNETLINK answers: File exists
~/tuya-convert
Waiting for the upgraded device to appear
If this does not work have a look at the '*.log'-files in the 'scripts' subfolder!
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................```

What is the preferred way to upload my logs?

You can copy and paste them into a post between triple backticks (```) or attach as files. The web log is usually the most helpful for debugging.

I love scp.
smarthack-mqtt.log
smarthack-smartconfig.log
smarthack-web.log
smarthack-wifi.log
I hope I just messed up, so I can just order more and flash them properly :)

Do you see a vtrust-recovery SSID from the plug?

No, my cellphone doesn't see any wifi access point except my neighbours and mines.

No it wouldn't be hidden. You may have to wait 30 seconds or so after plugging the device in, and it would only produce vtrust-recovery if it can't find vtrust-flash, and this is if the device is indeed running the intermediate firmware. From the most recent logs you posted, it looks like it should be.

Oh really? It didn't say it flashed on the script. I'll let it plugged longer. I'll report back soon.
Thanks for helping me.

There is no access point from neither of the SP20 I have. They may have patched the vulnerability allowing for OTA? I'm currently reading on ESPHome too, maybe I could try that, but I don't understand anything about that esphome thing lol.

Your logs indicate the hack was successful, so it's not that it's patched, but sounds like something went wrong after installing the intermediate firmware. It's hard to say what without having the serial output from the device.
Have you tried starting start_flash, then plugging the device back in and waiting a minute? (No need to enter pairing mode or connect a phone)

I tried as you said. There is no activity. No connection in the wifi logs either.
They probably patched the vulnerability or something. Is it guarantee that I can flash it if I had a serial-usb cable and a solder iron? I could maybe try and get one. Never did that though.

You should be able to flash it, but I can't make any guarantees. If you do manage to wire one up, make a firmware backup before flashing and we can use that to debug what went wrong.

@Extarys can this be closed or is there anything else you need help with?

Closing due to inactivity, please feel free to reopen if there are further concerns


chore: deprecate @[pp_dot]

Now that we're on Lean v4.8.0-rc1, there's no need for @[pp_dot] due to the new pp.fieldNotation.generalized feature. This PR removes all uses of @[pp_dot] and makes it emit a warning that it's been deprecated.
The new feature does not pretty print proof terms with dot notation, so there is a small regression for Eq.symm, Eq.trans, and, sometimes, False.elim. However, pp.proofs is false by default.

Even with the small regression, I am in favour of these changes, thanks!
maintainer merge


[libcpuid and stormlib] build failure x64-windows /include is empty or not present

Host Environment

OS: [Microsoft Windows Version 1909 (OS Build 18363.719)]
Compiler: Visual Studio

VS 2017 v15.9.21 VS Tools Version 14.16.27023
VS 2019 v16.4.6   VS Tools Version 14.24.28314

To Reproduce

Steps to reproduce the behavior:
.\vcpkg install libcpuid[core] stormlib[core]
Computing installation plan...
The following packages will be built and installed:
libcpuid[core]:x64-windows
stormlib[core]:x64-windows

Failure logs
-Cut and past the appropriate build messages from the console output.
Starting package 1/2: stormlib:x64-windows
Building package stormlib[core]:x64-windows...
-- Using cached E:/Git/vcpkg.downloads/ladislav-zezula-StormLib-2f0e0e69e6b3739d7c450ac3d38816aee45ac3c2.tar.gz
-- Using source at D:/Git/vs2017.prod/buildtrees/stormlib/src/aee45ac3c2-cf775d9e5a
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/Git/vs2017.prod/packages/stormlib_x64-windows/share/stormlib/copyright
-- Performing post-build validation
The folder /include is empty or not present. This indicates the library was not correctly installed.
Found 1 error(s). Please correct the portfile:
D:\Git\vs2017.prod\ports\stormlib\portfile.cmake
-- Performing post-build validation done
Error: Building package stormlib:x64-windows failed with: POST_BUILD_CHECKS_FAILED
Elapsed time for package stormlib:x64-windows: 3.491 min
Starting package 2/2: libcpuid:x64-windows
Building package libcpuid[core]:x64-windows...
-- Note: libcpuid only supports static library linkage. Building static library.
-- Using cached E:/Git/vcpkg.downloads/anrieff-libcpuid-f2ab8b7ef2c286f619d96c3ce8902cb76b801bf0.tar.gz
-- Using source at D:/Git/vs2017.prod/buildtrees/libcpuid/src/b76b801bf0-c750aa7385
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/Git/vs2017.prod/packages/libcpuid_x64-windows/share/libcpuid/copyright
-- Performing post-build validation
The folder /include is empty or not present. This indicates the library was not correctly installed.
Found 1 error(s). Please correct the portfile:
D:\Git\vs2017.prod\ports\libcpuid\portfile.cmake
-- Performing post-build validation done
Error: Building package libcpuid:x64-windows failed with: POST_BUILD_CHECKS_FAILED
Elapsed time for package libcpuid:x64-windows: 1.603 min
Total elapsed time: 5.094 min
RESULTS
stormlib:x64-windows: POST_BUILD_CHECKS_FAILED: 3.491 min
libcpuid:x64-windows: POST_BUILD_CHECKS_FAILED: 1.603 min
SUMMARY
SUCCEEDED: 0
BUILD_FAILED: 0
POST_BUILD_CHECKS_FAILED: 2
FILE_CONFLICTS: 0
CASCADED_DUE_TO_MISSING_DEPENDENCIES: 0
EXCLUDED: 0

Please attach any additional failure logs mentioned in the console output.
All other output is correct.

Additional context

It appears that post-build validation fails when there is not an /include folder to copy to packages folder.
Is there a way to disable the /include folder check in the post-build validation script?

@timautry Can you build with VS2019 again?

@linquize  - works fine on both x64-linux instances but fails on all x64-windows instances
cc: @NancyLi1013

vcpkg was up-to-date as of the time of this posting
none of the commits to vcpkg today has not:

updated either port
updated any of the vcpkg source files or scripts.

The builds for both work fine until Performing post-build validation sequence on both ports

failure occurs when vcpkg is attempting to copy the contents of the /include folder to either:

the /packages/port-name-x64-windows
/installed/x64-windows/include folders.

Expanded both downloads from source:

anrieff-libcpuid-f2ab8b7ef2c286f619d96c3ce8902cb76b801bf0.tar.gz last commit 29 days ago
ladislav-zezula-StormLib-2f0e0e69e6b3739d7c450ac3d38816aee45ac3c2.tar.gz last commit Nov 2, 2019

These 2 ports have no /include folder any where within the source folder tree - just the h/hpp and cpp files co-mingled in the same folders of each sub folder.
vcpkg-root\toolsrc\src\vcpkg\postbuildlint.cpp lines 80 - 99 check for that folder /include - if does not exists or is empty it throws an error exception, if the EMPTY_INCLUDE_FOLDER policy is enabled.
Maybe there is a way to disable this policy in the portfile.cmake, not sure though...
static LintStatus check_for_files_in_include_directory(const Files::Filesystem& fs,
                                                       const Build::BuildPolicies& policies,
                                                       const fs::path& package_dir)
{
    if (policies.is_enabled(BuildPolicy::EMPTY_INCLUDE_FOLDER))
    {
        return LintStatus::SUCCESS;
    }

    const fs::path include_dir = package_dir / "include";
    if (!fs.exists(include_dir) || fs.is_empty(include_dir))
    {
        System::print2(System::Color::warning,
                       "The folder /include is empty or not present. This indicates the library was not correctly "
                       "installed.\n");
        return LintStatus::ERROR_DETECTED;
    }

    return LintStatus::SUCCESS;
}

@linquize
cc: @NancyLi1013
Added to the end of each libcpuid and stormlib portfile.cmake:
# Allow empty include directory
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
They now build/install and pass post-build validation.
I guess changes need to be made to the portfile.cmake on each port (libcpuid and stormlib), to add this code, so it only affects windows, as linux builds fine without the code.

@timautry, I can't repro this issue with latest vcpkg source, could you get lastest source, also remove the stormlib and libcpuid soource under buildtrees, and try to build them again?
PS E:\vcpkg\clean\vcpkg> ./vcpkg install stormlib[core]:x64-windows
Computing installation plan...
The following packages will be built and installed:
stormlib[core]:x64-windows
Starting package 1/1: stormlib:x64-windows
Building package stormlib[core]:x64-windows...
-- Using cached E:/VCPKG/clean/vcpkg/downloads/ladislav-zezula-StormLib-2f0e0e69e6b3739d7c450ac3d38816aee45ac3c2.tar.gz
-- Using source at E:/VCPKG/clean/vcpkg/buildtrees/stormlib/src/aee45ac3c2-cf775d9e5a
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: E:/VCPKG/clean/vcpkg/packages/stormlib_x64-windows/share/stormlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package stormlib[core]:x64-windows... done
Installing package stormlib[core]:x64-windows...
Installing package stormlib[core]:x64-windows... done
Elapsed time for package stormlib:x64-windows: 42.79 s
Total elapsed time: 42.79 s
The package stormlib:x64-windows provides CMake targets:
find_package(stormlib CONFIG REQUIRED)
target_link_libraries(main PRIVATE stormlib::stormlib)
PS E:\vcpkg\clean\vcpkg> ./vcpkg install libcpuid[core]:x64-windows
Computing installation plan...
The following packages will be built and installed:
libcpuid[core]:x64-windows
Starting package 1/1: libcpuid:x64-windows
Building package libcpuid[core]:x64-windows...
-- Note: libcpuid only supports static library linkage. Building static library.
-- Downloading https://github.com/anrieff/libcpuid/archive/f2ab8b7ef2c286f619d96c3ce8902cb76b801bf0.tar.gz...
-- Extracting source E:/VCPKG/clean/vcpkg/downloads/anrieff-libcpuid-f2ab8b7ef2c286f619d96c3ce8902cb76b801bf0.tar.gz
-- Using source at E:/VCPKG/clean/vcpkg/buildtrees/libcpuid/src/b76b801bf0-c750aa7385
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: E:/VCPKG/clean/vcpkg/packages/libcpuid_x64-windows/share/libcpuid/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package libcpuid[core]:x64-windows... done
Installing package libcpuid[core]:x64-windows...
Installing package libcpuid[core]:x64-windows... done
Elapsed time for package libcpuid:x64-windows: 20.51 s
Total elapsed time: 20.51 s
The package libcpuid:x64-windows provides CMake targets:
find_package(cpuid CONFIG REQUIRED)
target_link_libraries(main PRIVATE cpuid::cpuid)


Publish 1.2

Manual test

Date
2020-08-26

Operating system
Windows 10

IDEA version
2020.2.1 CE

Plugin version
1.2 (pre-release)

Tester
Olli

Note
-

When the software doesn't comply with the testing manual...

...it is marked with...
...if the reason for the incompliance is that...

FAILED!!!
there's a bug in the software.

REMARK.
the software should (perhaps) be changed.

normal
the testing manual should be changed.

Notes

1.4 This assertion should come after 1.5.

2.1 The button is now just New Project.

2.5 Move this after 2.10.

3.1 The menu item is now called About the A+ Courses Plugin.

3.5 What to do with the browser window?

4.7 Instructions should tell which language to select.  Outdated screenshot.

4.9 There should be instruction to open the tool window.

4.10 FAILED!!! O1Library is marked [Double-click to install].

4.12 REMARK. Language must be selected first.

6.6 Outdated screenshot.

6.25 This would fit better after 6.26.

6.40 There could be hint to use File menu to easily restart.

6.41 The file must be from a module that compiles, e.g. O1Library.

6.46 See previous.

7.5 Should assert also that the status changes to Installed.


Admin: Make "failed to verify ownership" errors redirect to Github retry page

See details here: https://rilldata.slack.com/archives/CTZ8XBQ85/p1683172255314639.
Should we also send the user to the s.urls.githubConnectRetry page when calls to s.isCollaborator fails or errors in githubConnectCallback?

closed by #2360


Instrumentation, api cleanup

[X] error handling (contextual errors)
[X] API - problem implementation (https://tools.ietf.org/html/rfc7807)
[X] context propagation
[ ] instrumentation - metrics
[x] instrumentation - tracing

closing as most of the issues have been sorted or partially done; refinements to be done in other issues


Source code directory name src

Description of the issue
As it we discussed about the name of the source dir...
the src is meant as placeholder for the actual module. It can include sub modules of course. But for some use cases its more clean to  have a structure like module-name/... rather then src/module-name folder/... .
Ideas of solution
Rename folder
Workflow checklist

[x] I am aware of the workflow in CONTRIBUTING.md

As discussed today we follow the Hitchhiker’s Guide to Python and remove the src folder.

Your library does not belong in an ambiguous src or python subdirectory.

source: https://docs.python-guide.org/writing/structure/#the-actual-module


STRESS: Added 4 test cases

@mbivolan please post test results for Ubuntu and CentOS, along with the confirmation that PSAnalyzer was ran.

PSAnalyzer was ran and all the relevant changes were implemented.
Test results: all 4 tests are passing on CentOS 7.5 and Ubuntu 18.04 (HyperV, Gen1)


Invite the following to organization when restriction goes away for inviting members

@jaynarayan-vaishnav
@sc0rp10n-py
@Spyder15
@Panos-Jr

-- Hey, Kendall
-- I have sent invitation to all of them

Thanks
On Mon, 25 Jul 2022, 9:38 am Adarsh jaiswal, @.***>
wrote:

-- Hey, Kendall
-- I have sent invitation to all of them
—
Reply to this email directly, view it on GitHub
https://github.com/collab-community/become-a-member/issues/25#issuecomment-1193551113,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUGJUTLXPH7IMKVGSOPOL7DVVYHK7ANCNFSM54P74YWA
.
You are receiving this because you were assigned.Message ID:
@.***>

Thanks

Salutations!
Why was I invited?

Salutations!
Why was I invited?

Hi, We were inviting fellow coders, as we thought they might like this organization!


flutter add firebase_admob,and copy GoogleService-Info.plist in Runner folder,but crash when start open app in iphone.

flutter project add firebase_admob,and copy GoogleService-Info.plist in Runner folder,but crash when start open app in iphone.

when i remove three firebase sdk and run app in iphone, it work. so i don"t know where step i was wrong.

oh ,i had knowed why!

add this config ,it work!

Hi @liweidou
Can you please provide your flutter doctor -v, your flutter run --verbose and a minimal complete reproducible code sample.
Thank you


[CLI]: RuntimeError: Local Artifact not found - invalid reference

Describe the bug

Keras eval callback throws an error at a random epoch

Just subclassing KerasEvalCallback with interval modifier. But not using.

...
  File "/home/omer/alpha-trainer-tf/alpha_trainer_tf/nn/callbacks.py", line 69, in on_epoch_end
    super().on_epoch_end(epoch, logs)
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/integration/keras/callbacks/tables_builder.py", line 125, in on_epoch_end
    self.log_pred_table()
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/integration/keras/callbacks/tables_builder.py", line 240, in log_pred_table
    pred_artifact.add(self.pred_table, table_name)
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/local_artifact.py", line 507, in add
    val = obj.to_json(self)
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/data_types.py", line 691, in to_json
    mapped_row.append(_json_helper(v, artifact))
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/data_types.py", line 108, in _json_helper
    return val.to_json(artifact)
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/data_types/image.py", line 423, in to_json
    classes_entry = artifact.add(self._classes, class_name)
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/local_artifact.py", line 505, in add
    return self.add_reference(ref_path, type(obj).with_suffix(name))[0]
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/local_artifact.py", line 450, in add_reference
    manifest_entries = self._storage_policy.store_reference(
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py", line 143, in store_reference
    return self._handler.store_path(
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/storage_handlers/multi_handler.py", line 51, in store_path
    return handler.store_path(
  File "/home/omer/miniconda3/envs/alpha-trainer-tf/lib/python3.9/site-packages/wandb/sdk/artifacts/storage_handlers/wb_local_artifact_handler.py", line 59, in store_path
    raise RuntimeError("Local Artifact not found - invalid reference")
RuntimeError: Local Artifact not found - invalid reference

Additional Files
No response
Environment
WandB version: 0.15.4
OS: Ubuntu 22.04
Python version: Python 3.9.16
Versions of relevant libraries:

keras: 2.12.0

Additional Context
After reinstalling my environment I started getting errors (wandb version was 0.14.x in the environment first)

Sorry, don't have time to write a snippet. But I tested with 0.15.3 and it works !

Hello! I have been trying to reproduce this error but since I cannot, I will hold off on writing a bug report. If does happen again, feel free to send us a code snippet so we can reproduce it on our end. Thanks!


How to disable Sound Overlapping?

Hi guys,
I am working on a music player and struggling with the problem of overlapping sound. The thing is when user is listening to song and wants to change to other song ---> presses back ----> selects new song from listView ----> new Sound is played (but is overlapped with older one).
I am unable to find correct way to release previous sound resource. Would be grateful if someone can help me out.

@themakerman can you provide a snip of the code that you are using to start and stop the track?
You should be able to call pause() or stop(), if you need, you can finally call release()
Could the issue be that you are not making the call in a callback?
// Stop the sound and rewind to the beginning
whoosh.stop(() => {
  // Note: If you want to play a sound after stopping and rewinding it,
  // it is important to call play() in a callback.
  whoosh.play();
});

Sorry, same issue. Did you ever figure this out?


Unification broken III

Item#48

I've been doing some speculative reworking of unification in the reflist branch. You might try against that...
~/trealla (reflist) $ tpl
Trealla Prolog (c) Infradig 2020-2023, v2.25.18-17-gce4a
?- A=B1,B=BA*B,A=B.
false.
?-

(plz enclose program text in triple backquotes...)

found a counterexample with reflist v2.25.18-17-gce4a. Downside: does not directly reproduce on the top level. Thus I will need to play around to get the ages of skeletons right.

Nailed it.

I've just noticed a difference running at top-level vs database as well.

/trealla (reflist) $ tpl
Trealla Prolog (c) Infradig 2020-2023, v2.25.18-17-gce4a-dirty
?- A=B*1, B=B*A*B, A=B.
   false.
?- [user]. main :- A=B*1, B=B*A*B, A=B.
   true.
?- main.
   true.
?-

This differences shows equally, when just the two goals are exchanged.

~/trealla (reflist) $ tpl
Trealla Prolog (c) Infradig 2020-2023, v2.25.18-21-ge4f7-dirty
?- A=B*1,B=B*A*B,A=B.
   false.
?- [user]. main :- A=B*1, B=B*A*B, A=B, write(oops), nl.
   true.
?- main.
   false.
?-

(will leave this open until the main branch is fixed)


AzDO issue #7137

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[x] Internal Infrastructure Improvements

Release Note Description
Revert merged changes before the release.
Related item: https://dev.azure.com/dnceng/internal/_workitems/edit/7137/

Closing this as a duplicate of the https://github.com/dotnet/dnceng/issues/4373


https://spring.io/guides/gs/serving-web-content/ Broken

You can't run this on a separate Tomcat server because your parent pom is providing the jar. Also it's broken because this only works on a specific version of Tomcat in the pom properties.         <tomcat.version>7.0.75</tomcat.version>
But the bigger problem is it not working on server. What's the point of a web tutorial if you can't run it on a server? They would literally have to rewrite nearly the entire pom and hunt down a ton of dependencies just to get it running. Rewrite this tutorial so it will actually work in typical situations.

If your question is "how do I build a WAR instead of a runnable JAR", we have a guide with suitable links to help here => https://spring.io/guides/gs/convert-jar-to-war/
If that is not what you're asking please clarify what you mean by "typical situations".

I just tried that it didnt work. It's not giving any errors just 404s. My classes are the same as the tutorial
Sep 28, 2017 8:06:43 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm/Realm} Setting property 'receName' to 'UserDatabase' did not find a matching property.
Sep 28, 2017 8:06:43 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:rest-service' did not find a matching property.

Sep 28, 2017 8:06:43 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Sep 28, 2017 8:06:43 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 28, 2017 8:06:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1040 ms
Sep 28, 2017 8:06:43 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 28, 2017 8:06:43 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.75
Sep 28, 2017 8:06:44 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [147] milliseconds.
Sep 28, 2017 8:06:45 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Sep 28, 2017 8:06:46 PM org.apache.catalina.core.ApplicationContext log
INFO: 1 Spring WebApplicationInitializers detected on classpath
Sep 28, 2017 8:06:46 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 28, 2017 8:06:46 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 28, 2017 8:06:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2244 ms
This is my pom now
`

4.0.0
<groupId>org.springframework</groupId>
<artifactId>gs-serving-web-content</artifactId>
<version>0.1.0</version>
<packaging>war</packaging>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.7.RELEASE</version>
</parent>

<dependencies>

     <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
</dependencies>

<properties>
    <java.version>1.8</java.version>
    <tomcat.version>7.0.75</tomcat.version>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <version>1.5.7.RELEASE</version>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

`

I think the problem is your pinning it to Tomcat 7. Boot 1.5 uses Tomcat 8.5 which has servlet 3.1 whereas 7 I believe only has servlet 3.0. In essence this is an unsupported configuration.

I don't have tomcat 8. I'm using tomcat 7.75 servlet 3.0. Do you know which Boot version would work with tomcat7.75

You'd have to go back to 1.1. 1.2 moved to Tomcat 8.0.

Same problem still :(
It seems like tomcat picked it up:

Actually just go back to when the guide supported 1.1.
https://github.com/spring-guides/gs-serving-web-content/tree/fdf7a8a50840f063cbd1f38eaf3b9a8dfcf35142
You can find the matching version of the WAR guide and see if that helps.

The ref docs on Boot 1.1 for WAR files => https://docs.spring.io/spring-boot/docs/1.1.9.RELEASE/reference/htmlsingle/#build-tool-plugins-maven-packaging

Thanks a bunch I'll look at this tomorrow
On Sep 28, 2017 10:02 PM, "Greg Turnquist"<EMAIL_ADDRESS>wrote:

The ref docs on Boot 1.1 for WAR files => https://docs.spring.io/spring-
boot/docs/1.1.9.RELEASE/reference/htmlsingle/#build-
tool-plugins-maven-packaging
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/spring-guides/gs-serving-web-content/issues/18#issuecomment-333019033,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEgZC2OOGbP7LgjMHkjVg0u-uMEov7-lks5snF3WgaJpZM4PoB8I
.

 Tomcat seems to pick it up but I'm not getting any errors just 404s. I place gs-serving-web-content-0.1.0.war in apache-tomcat-7.0.75\webapps\ and start tomcat. Using URL http://localhost:8080/gs-serving-web-content-0.1.0
I was able to run my other war project this way. I was expecting to at least see the static/index.html page. but also tried URLs http://localhost:8080/gs-serving-web-content-0.1.0/greeting and http://localhost:8080/greeting
INFO: Deployment of web application archive C:\apache-tomcat-7.0.75\webapps\gs-s
erving-web-content-0.1.0.war has finished in 1,656 ms
Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server version:        Apache Tomcat/7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server built:          Jan 18 2017 20:54:42 UTC Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server number:         <IP_ADDRESS> Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Name:               Windows 7 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Version:            6.1 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Architecture:          amd64 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Java Home:             C:\Program Files\Java\jdk1.8.0_25\jre Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Version:           1.8.0_25-b18 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Vendor:            Oracle Corporation Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_BASE:         C:\apache-tomcat-7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_HOME:         C:\apache-tomcat-7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.config.file=C:\apache-tomcat-7. 0.75\conf\logging.properties Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.endorsed.dirs=C:\apache-tomcat-7.0.75\endors ed Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.base=C:\apache-tomcat-7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.home=C:\apache-tomcat-7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.io.tmpdir=C:\apache-tomcat-7.0.75\temp Sep 29, 2017 6:00:15 PM org.apache.catalina.core.AprLifecycleListener lifecycleE vent INFO: The APR based Apache Tomcat Native library which allows optimal performanc e in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_25\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Wi ndows;C:\Windows\System32;C:\Program Files\Git\cmd;C:\Program Files (x86)\GitExt ensions\;C:\Program Files (x86)\Reflection\;C:\Program Files\Common Files\ThinPr int\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86 )\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server \120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Prog ram Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\WebEx\ Productivity Tools;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi nPython27\python-2.7.6;C:\Program Files\Java\jdk1.8.0_25\bin;C:\Toolbox\apache-m aven-3.3.3\bin;. Sep 29, 2017 6:00:15 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Sep 29, 2017 6:00:15 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 595 ms Sep 29, 2017 6:00:15 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Sep 29, 2017 6:00:15 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.75 Sep 29, 2017 6:00:15 PM org.apache.catalina.startup.HostConfig deployWAR **INFO: Deploying web application archive C:\apache-tomcat-7.0.75\webapps\gs-servi ng-web-content-0.1.0.war** Sep 29, 2017 6:00:16 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLD s were found in them. Skipping unneeded JARs during scanning can improve startup  time and JSP compilation time. Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deployment of web application archive C:\apache-tomcat-7.0.75\webapps\gs-s erving-web-content-0.1.0.war has finished in 1,656 ms Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\docs Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\do cs has finished in 47 ms Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\exampl es Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\ex amples has finished in 328 ms Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\host-m anager Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\ho st-manager has finished in 47 ms Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\manage r Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\ma nager has finished in 47 ms Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\ROOT Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\RO OT has finished in 47 ms Sep 29, 2017 6:00:17 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Sep 29, 2017 6:00:17 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Sep 29, 2017 6:00:17 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2312 ms
`

4.0.0
<groupId>org.springframework</groupId>
<artifactId>gs-serving-web-content</artifactId>
<version>0.1.0</version>
<packaging>jar</packaging>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>0.5.0.M6</version>
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.thymeleaf</groupId>
        <artifactId>thymeleaf-spring3</artifactId>
    </dependency>
	<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
</dependencies>

<properties>
    <start-class>hello.Application</start-class>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
			<version>1.1.9.RELEASE</version>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

<repositories>
    <repository>
        <id>spring-milestone</id>
        <url>http://repo.spring.io/libs-milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>spring-milestone</id>
        <url>http://repo.spring.io/libs-milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

`
`
package hello;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
}

}

package hello;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class GreetingController {
@RequestMapping("/greeting")
public String greeting(@RequestParam(value="name", required=false, defaultValue="World") String name, Model model) {
    model.addAttribute("name", name);
    return "greeting";
}

}
`

Please can you learn how to format your code snippets and logs (I edited that last one for you). Also, please don't paste and entire project into an issue comment - just link to the code in github. If you did that we'd have a better chance of helping. Did you forget to add a SpringBootServletInitializer (per the instructions in the guide that Greg posted)?

https://github.com/7--/SpringBoot1.5.7
When I extend SpringBootServletInitializer I get SEVERE: A child container failed during start

I sent a PR to  your project (https://github.com/7--/SpringBoot1.5.7/pull/1). It works for me with Spring Boot 1.3.8.

Thank you works like charm. I'm surprised servlet 3.1 works. Can't thank you enough.


add start page to experiment

For #12147

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).
[ ] The wiki is updated with any design decisions/details.

@DavidKutu what do you get when you check for inExperiment now?

It returns false


Variable coloring for Swift.

Added nodeType == 16 check.

It seems too easy and it might break something, but I had no problems so far, so I thought I'd give it a try :)


17.11+ System.IO.IOException: Connection forcibly closed by remote host

Issue Description
After upgrading Microsoft.NET.Test.Sdk from version 17.10.0 to 17.11.0, our AzureDevOps test pipeline task encounters a System.IO.IOException at the very beginning of the run.
Steps to Reproduce
Use Microsoft.NET.Test.Sdk version 17.11.0 or above
Run dotnet test via the DotNetCoreCLI@2 in an AzureDevOps pipeline:
  - task: DotNetCoreCLI@2
    displayName: dotnet test
    inputs:
      command: test
      projects: <project solution>

Expected Behavior
Test run as expected with no IO exception at the start
Actual Behavior
Error seen in the AzureDevops test pipeline log:
System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host..
 ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.Flush()
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.WriteAndFlushToChannel(String rawMessage) in /_/src/Microsoft.TestPlatform.CommunicationUtilities/SocketCommunicationManager.cs:line 413
   at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection.DataCollectionRequestSender.SendAfterTestRunEndAndGetResult(ITestMessageEventHandler runEventsHandler, Boolean isCancelled) in /_/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestSender.cs:line 155
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.ProxyDataCollectionManager.<>c__DisplayClass20_0.<AfterTestRunEnd>b__0() in /_/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ProxyDataCollectionManager.cs:line 155
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.ProxyDataCollectionManager.InvokeDataCollectionServiceAction(Action action, ITestMessageEventHandler runEventsHandler) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ProxyDataCollectionManager.cs:line 288

Environment
Windows Server 2016 inside a AzureDevOps agent pipeline job
Additional Notes
This is not happening on version 17.10.0 or presumably earlier. Seems to be happening at ProxyDataCollectionManager.cs  line 288
I'm not sure what is trying to be written/connected when the issue happens

Hello, this error is a red herring, it means that the other process died unexpectedly. Please collect diagnostic logs and post them here:
https://github.com/Microsoft/vstest/blob/main/docs/diagnose.md
Or if they contain private information, please create a visual studio feedback issue and upload them there, you can share logs there privately.
If you are unable to share them, please look into the .host..log for exceptions. Please start from the bottom, it should be the last exception that happens. OR if you see just heartbeat and then the process dies, then it was killed externally.


fix broken

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2314   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: 🔄 Waiting for checks to pass
This pull request is currently waiting for CI and mergeability checks to pass before being merged.
This comment was auto-generated by Graphite.

Job Reference: FgyeTyrwMa221PiRdy9s


Fixed velocity theme layout not responsive #3754

BUGS:
Issue: https://github.com/bagisto/bagisto/issues/3754
I am referring to the this documentation, https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox. Firefox has changed some settings. So they gave their regex to support mobile I have added that and now it's working fine.

Now working

I have customized lots of things so cannot update code directly.
Can you suggest what changes I  need to do for fix the issue?


Consider Size component

I'm wondering if there should be a Size component, whose explicit role is to let us size items consistently without using webContainerSx. I made something like it in my app, and I'm wondering if it should be included in Dripsy directly.
Examples
For flex columns:
import { Size } from 'dripsy'

<Row>
  <Size flex={[null, 1]}>
    <Column />
  </Size>
  <Size flex={[null, 1]}>
    <Column />
  </Size>
</Row>

For widths:
<Size width={['50%', '33%']} />

Why
At the moment, the same thing is achieved by passing a webContainerSx prop. It's a bit cumersome and repetitive. I think it's a nice escape hatch prop to have, but for sizing, it makes more sense to have a specific solution.
Since the entire sx prop would not be supported, style props would be inlined on the Size component.
Code
On native, it would export a View from dripsy, like normal (with added props.) Nothing special happening on native.
size.tsx
import View from './view'

type SizeProps = Pick<SxStyleProp, 'flex' | 'width' | ...etc>

const Size = (props: SizeProps) => {
  return <View sx={props} />
}

On web, however, we can render a native div, and use sx with the JSX pragma from theme-ui.
size.web.tsx
/** @jsx jsx */
import { jsx } from 'theme-ui'

const RNWStyleReset = {...}

const Size = (props: SizeProps) => {
  return <div sx={{ ...RNWStyleReset, ...props }} />
}

This seems pretty useful. I know I would personally use it, I think it cleans up the code quite a bit compared to the webContainerSx prop.

At the moment, the same thing is achieved by passing a webContainerSx prop. It's a bit cumersome and repetitive. I think it's a nice escape hatch prop to have, but for sizing, it makes more sense to have a specific solution.

I agree with this. It's not always intuitive right off the bat.

While I'm using this my app, I'm still not sure if I'm convinced by it. I think getting rid of SSR (and thus fresnel) would be a better idea than entirely circumventing RNW altogether :/

While I'm using this app, I'm still not sure if I'm convinced by it. I think getting rid of SSR (and thus fresnel) would be a better idea than entirely circumventing RNW altogether :/

I would have to agree. Leaving out SSR would be a bummer but this would make the API a bit more intuitive.

Yeah. And like I mentioned earlier, my app doesn't even have SSR. One of my providers delayed rendering until after mounting, so BeatGig has never even had SSR 😂
I spent all this time making Dripsy support SSR, only to find that I didn't even need it, because my site is fast enough without it. Also, it hasn't harmed us with Google at all.
I still use SSR for SEO meta tags, but I put these at the root before rendering any providers anyway, thanks to pages/_app.js from next.js.

Yeah. And like I mentioned earlier, my app doesn't even have SSR. One of my providers delayed rendering until after mounting, so BeatGig has never even had SSR 😂
I spent all this time making Dripsy support SSR, only to find that I didn't even need it because my site is fast enough without it. Also, it hasn't harmed us with Google at all.
I still use SSR for SEO meta tags, but I put these at the root before rendering any providers anyway, thanks to pages/_app.js from next.js.

That's good to know. This makes me feel a little bit more comfortable building with Dripsy w/o the serverside features, plus most of the content would probably still render server-side (if it's the same on mobile/desktop), just wouldn't be styled correctly.

Yeah, that's true. Although I would recommend returning null and then rendering the app after it's mounted if you ever plan on using responsive styles. I'll probably do this with an ssr prop on the provider.
Ultimately, we're dealing with constraints of RNW.


How about testing on your own dataset

I want to test it on my own dataset, what exactly should I do?

Hi,
After environment installation, you can follow the Usage part，provide the following:

dir to the RGB-images
camera intrinsic
output dir


fra.traineddata corrupted ?

Hey, this fra.traineddata (in tessdata_best) doesn't work, I get this error:
pytesseract.pytesseract.TesseractError: (1, "Tesseract Open Source OCR Engine v3.04.01 with Leptonica read_params_file: Can't open 1 read_params_file: Can't open -psm read_params_file: Can't open 7 Failed loading language 'fra' Tesseract couldn't load any languages! Could not initialize tesseract.")
And this file seems to small compared to others.
Everything works when I come back to original file.

Chances are high that you did not download the traineddata file, but a HTML page. Try to open the file in your editor.

My editor can't open it because it's not a text file or encoding is not supported.
Method applied : download button with firefox and then move file
fra.traineddata 4.0 on https://github.com/tesseract-ocr/tesseract/wiki/Data-Files => OK
fra.traineddata on https://github.com/tesseract-ocr/tessdata => OK
fra.traineddata on https://github.com/tesseract-ocr/tessdata_best => NOK

Your tesseract (version) is old you download datafiles for recent version which of course does not work (expected behavior). Upgrade your tesseract and everything will works.


Fix path to promote debian script

Dust off promotion entrypoint in dhall. Fix path to promote debian script and use NEW_VERSION instead of TAG env var (which is not set)

!ci-build-me

!ci-build-me

closing PR as changes were already introduced in referenced PR


(API) Allow true/false to be used where boolean is expected

Currently, users have to pass 0 or 1 when filtering using boolean fields or has_children. This PR allows true/false to be used as well.
I've also improved the validation of ints, fixing a crash when a string is passed when an int is expected.

Rebased onto #2484

Rebased on top of master (#2484 was merged)
341f4c9fa5a9826b911521417ff446e18cab8b3b fixes import order

Except comments above, looks good to me.
Thanks @kaedroho!

Merged in 95563dabb7bdd6648bbe701d28a0848bcfc3297f
Thanks @kaedroho!


Option to hide top banner

Hide the top banner to provide more space

Whilst top banner can be hidden, the space it takes up cannot be removed. This is because of the structure of how the page is designed. Its too tricky to try and restructure everything just for this.


Idris2 lsp

Description of changes
In short:

Make some tweaks to buildIdris to better support executable builds (like the LSP server) and hopefully create a more ergonomic interface all around (more details below).
Introduce idris2Packages.idris2Lsp, an LSP server for Idris 2 that is well maintained by the Idris community.

At this point, the buildIdris found in this PR and the one found in the Idris 2 repository are almost identical. The big remaining difference is that I was able to rework the upstream repository's Idris2 to build the support files (a shared library) as a separate derivation and use that in buildIdris to clean up linker paths a bit. I will be able to port that change (long requested in code comments) once Idris2 v0.8.0 is released. In order to make the changes I made I also modified the Makefile (post release of v0.7.0).
buildIdris changes
Since there has not been a release of Nixpkgs since I introduced buildIdris, I made some breaking changes to adapt to lessons learned while packaging the LSP server.

I renamed the projectName input attribute to ipkgName. This was always used to locate the *.ipkg file that should be used to build an Idris 2 project, but the name didn't used to imply that purpose. This even bit me once when I accidentally used different capitalization in projectName than was found in the *.ipkg file name.
I switched the input name (now ipkgName) from being directly applied to the name of the derivation to instead apply to the derivation's pname, making it much easier to apply a version to a derivation.
I previously merged the input attributes with the derivation at the end. I thought this would make it easiest to override buildIdris attributes. That ended up being inconvenient because it is useful to have buildIdris add to e.g. buildInputs for the derivation so we don't want to blow those additions away at the end. Now input attributes have the standard and executable or library attributes merged into them instead of the other way around.
The library output is basically unchanged but the executable output now supports nuanced distinctions of executables produced by the NodeJS vs. Scheme backends of the compiler. This is immediately useful in building the LSP server executable.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Built and tested on x86_64-darwin.

Result of nixpkgs-review pr 283648 run on x86_64-darwin 1

1 package built:

idris2Packages.idris2Lsp

Built and tested on x86_64-linux.

Result of nixpkgs-review pr 283648 run on x86_64-linux 1

1 package built:

idris2Packages.idris2Lsp

ty for working on this <3


How to guide problem - Handling big models for inference

System Info
OS: Linux #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64
GPU: NVIDIA GeForce RTX 4070, NVIDIA-SMI 530.41.03, Driver Version: 530.41.03, CUDA Version: 12.1
python: Python 3.10.6
accelerate: 0.20.3
torch: 1.13.1
numpy: 1.25.0

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
I am trying to follow the "how to guide" for running inference on a big model, but my script terminates.
I have pieced together the various steps as follows:
git clone https://huggingface.co/sgugger/sharded-gpt-j-6B
cd sharded-gpt-j-6B
git-lfs install
git lfs pull

And then run this:
from accelerate import init_empty_weights
from accelerate import load_checkpoint_and_dispatch
from transformers import AutoConfig, AutoModelForCausalLM

checkpoint = "EleutherAI/gpt-j-6B"
config = AutoConfig.from_pretrained(checkpoint)

with init_empty_weights():
    model = AutoModelForCausalLM.from_config(config)

model.tie_weights()

model = load_checkpoint_and_dispatch(
    model, "sharded-gpt-j-6B", device_map="auto", no_split_module_classes=["GPTJBlock"]
)

from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
inputs = tokenizer("Hello, my name is", return_tensors="pt")
inputs = inputs.to(0)
output = model.generate(inputs["input_ids"])
tokenizer.decode(output[0].tolist())

Expected behavior
The script icrashes. I get the following warning about tying the weights which is strange since model.tie_weights is called
The model weights are not tied. Please use the `tie_weights` method before using the `infer_auto_device` function.
The model weights are not tied. Please use the `tie_weights` method before using the `infer_auto_device` function.
Killed

cc @SunMarc for the warning that should not be displayed here.
The process is killed because you don't have enough RAM (probably). The option offload_state_dict=True might help you in this case, or using the sharded revision of this checkpoint to load the state dict in smaller pieces.

Yes I also assume this is because I am running out of memory. I adjusted to
model = load_checkpoint_and_dispatch(
    model, "sharded-gpt-j-6B", device_map="auto", no_split_module_classes=["GPTJBlock"], offload_state_dict=True
)

but I still get the same behavior.
You mention using the sharded revision of this checkpoint. I am not sure how to do that. I thought cloning the sharded repo was enough.
The config file pointed to is
{
  "_name_or_path": "EleutherAI/gpt-j-6B",
  "activation_function": "gelu_new",
  "architectures": [
    "GPTJForCausalLM"
  ],
  "attn_pdrop": 0.0,
  "bos_token_id": 50256,
  "embd_pdrop": 0.0,
  "eos_token_id": 50256,
  "gradient_checkpointing": false,
  "initializer_range": 0.02,
  "layer_norm_epsilon": 1e-05,
  "model_type": "gptj",
  "n_embd": 4096,
  "n_head": 16,
  "n_inner": null,
  "n_layer": 28,
  "n_positions": 2048,
  "resid_pdrop": 0.0,
  "rotary": true,
  "rotary_dim": 64,
  "scale_attn_weights": true,
  "summary_activation": null,
  "summary_first_dropout": 0.1,
  "summary_proj_to_labels": true,
  "summary_type": "cls_index",
  "summary_use_proj": true,
  "task_specific_params": {
    "text-generation": {
      "do_sample": true,
      "max_length": 50,
      "temperature": 1.0
    }
  },
  "tie_word_embeddings": false,
  "tokenizer_class": "GPT2Tokenizer",
  "torch_dtype": "float16",
  "transformers_version": "4.19.0.dev0",
  "use_cache": true,
  "vocab_size": 50400
}

Hi, for the warning that should not be displayed, it is solved in this PR. You can clone the main branch if you don't want to see the warning anymore or wait for the next release.


Update typings

Let me know if I missed anything :)

Went with #310 instead.

Went with #310 instead.


 Companion would help me alot there :) i will see if i encounter any new bugs (got Terror Knight as a secondary specialization) cool name tho Frostmare from combination of this two :dancer:
Before You asking it is on CLEAN install of GD that already have DLC included (newest version of GD)

P.S: summon is not working on ALL modes (Main, Rift and Survival)

Version 56 coming soon. Previous pet fixes were reversed during out-of-sync issue. Fixed...again.


docs(10.x): add migration notice to README.md

Because we completed the migration in and around https://github.com/liferay/liferay-frontend-projects/commits/7c0c3bcfdd4f969328ac805732f6cf049a68a12b

Corresponding 9.x and 8.x changes are here:

https://github.com/liferay/liferay-js-themes-toolkit/pull/539
https://github.com/liferay/liferay-js-themes-toolkit/pull/540

Going to merge this before IT comes along and marks the repo read-only 😁


Update chai to version 4.2.0

See https://github.com/chaijs/chai/issues/781 for upgrade check list

Looks good!


The aarch64 arm-eabi-gdb can’t find libgmp.dylib

The aarch64 build of arm-eabi-gdb won’t load because
$ arm-eabi-gdb
dyld[24038]: Library not loaded: @rpath/libgmp.10.dylib
  Referenced from: <AD175D4B-B6C4-3A98-B8D0-00C3AAA6CB35> /opt/gcc-13.1.0-aarch64/bin/arm-eabi-gdb
  Reason: tried: '/usr/local/lib/libgmp.10.dylib' (no such file), '/usr/lib/libgmp.10.dylib' (no such file, not in dyld cache)
Abort trap: 6

This is because libgmp.dylib, as built, has
$ otool -L /opt/gcc-13.1.0-aarch64/lib/libgmp.dylib
/opt/gcc-13.1.0-aarch64/lib/libgmp.dylib:
	@rpath/libgmp.10.dylib (compatibility version 15.0.0, current version 15.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

but arm-eabi-gdb, while linking against this, doesn’t include the necessary -rpath setting.
(An aside: why do libmpfr.dylib, libmpc.dylib not refer to thmselves via @rpath/s?)
Having worked round this, I got
$ DYLD_LIBRARY_PATH=/opt/gcc-13.1.0-aarch64/lib arm-eabi-gdb
dyld[23237]: Library not loaded: /Library/Frameworks/Python.framework/Versions/3.9/Python
  Referenced from: <AD175D4B-B6C4-3A98-B8D0-00C3AAA6CB35> /opt/gcc-13.1.0-aarch64/bin/arm-eabi-gdb
  Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.9/Python' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file, not in dyld cache)
Abort trap: 6

which can be fixed by using the universal installer from Python.org.

Duplicate (in the wrong repo!) of simonjwright/building-gcc-macos-arm-eabi#2.


dart2js: emit nullable types

(tracking bug for any tasks related to emitting nnbd from dart2js)

[ ] restructure subtyping rules to follow the spec algorithm.
[x] add nullable types in the dart2js internal representation
[ ] emit nullable type information in the backend.

@fishythefish - please feel free to edit this list and add anything that is worth tracking.

Siggi did you accidentally label this with analyzer-nnbd-migration?

Yes, sorry - it's unfortunately the first auto-complete option when you type "nnbd", even though there is an nnbd label.


Source of testing images in the paper

Dear friends! I really appreciate your work and your caution of choosing testing images out of objavserse distribution! May I ask your way of choosing testing objects? (To be more concrete, do you have any advice on choosing 3D object testing dataset so that we can test it with ground truth?) I tested it on co3d, but it is too simple a task~

Hi @XinyangHan , I took a bunch of pictures of objects in our lab and my apartment as those objects are most likely not in the objaverse dataset. In addition, we find images on the internet as well. But these are mostly for qualitative experiments. For a 3D testing dataset with 3D ground truth, the available datasets are probably much more limited. To name a few that are on top of my mind, there are GSO, CO3D, RTMV, ShapeNet. In terms of choosing which objects to use within the dataset, we just randomly sample a subset and run experiments on those. We didn't cherry-pick within a dataset.

Got it!!! Thanks so much for replying!! Btw, when testing on in-the-wild images, it seems that the segmentation would have a little artifacts like shown below. Just wondering if you have some advice on matting in the wild images as input or plan to improve the processing module~
Thanks again for your kindly help~

Thanks so much for your help!!!


DeprecationWarning

def foo():
    pass

import wx.lib.plot
from pubsub import pub
pub.subscribe(foo, 'topic')

Result of my reduced code in Python 3.6:
D:\Python36\lib\site-packages\pubsub\core\callables.py:147: DeprecationWarning:
inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
(allParams, varParamName, varOptParamName, defaultVals) = getargspec(func)
(not without wx.lib.plot, and only in Python 3)

Geek I don't know what happened as I know I checked a few times for issues, sorry about the delay. I will look into this.

I use these modifications:
--- R:/callables_orig.py    H márc. 12 14:55:20 2018
+++ R:/callables.py H márc. 12 14:55:27 2018
@@ -15 +15 @@ CallArgsInfo regarding its autoTopicArgName data m
-from inspect import getargspec, ismethod, isfunction
+from inspect import getfullargspec, ismethod, isfunction
@@ -147 +147 @@ class CallArgsInfo:
-(allParams, varParamName, varOptParamName, defaultVals) = getargspec(func)
+(allParams, varParamName, varOptParamName, defaultVals, *foo) = getfullargspec(func)

Thanks! I'm on the hills this week but I should be able to run this through the test suite next week.

@wossx Any chance you could submit a PR?


Update linker-tools-error-lnk2019.md

Add missing entry point as possible reason
Fixes https://github.com/MicrosoftDocs/cpp-docs/issues/1499

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

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

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


change to package.json to run website on windows

Re chore(gulp): changes to gulpfile to run on windows #2972 this was necessary to be able to install and run the example website on Windows, prerequisite to run the tests.

Instead of forking my forked repository of angular/protractor, do a pull request on angular/protractor and I will get it merged this week.


I edited the title value

https://github.com/OSEHRA/vha-kbs-knarts/blob/c70c3bb0dd81158bf8ccc343b425e66c19480771/content/womens_health_diagnostic_breast_imaging/b65/CDSK_KRprt_CRCK_B65DxBi.xml#L19
I also made this edit by mistake in other versions of the document

Sounds like there is nothing actionable for me.


[BUG] - Striped table display issue with multiple computed values

NextUI Version
2.2.8
Describe the bug
When utilizing a striped table (isStriped) with multiple computed values, the table renders the contents of the cell beneath the stripe for the table.
Example Code:
<TableCell>
  {/* broken */}
  {firstName} {lastName}

  {/* working */}
  {firstName + ' ' + lastName}
</TableCell>

Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Create table
Set isStriped prop
Within a cell, add two separate computed values
Ensure you have at least two rows with this configuration
Observe striped rows displaying incorrectly

Expected behavior
All rows will render it's contents above the background striping
Screenshots or Videos
Current:

Expected:

Operating System Version
Ubuntu 23.04
Browser
Chrome

Hi @bwrightgene, I will raise PR with fix, thanks!


Silent data loss when parsing an iterator into a union of sequences

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Given a field that's a union of sequences (where pydantic tries validating against each sequence type in turn), if an iterator is passed in that fails to match the first type in the union, pydantic will silently drop all data previously seen in the iterator as it continues to try to match against the next type.
I've checked and this bug is new in Pydantic V2, the following code passes fine on Pydantic V1
Example Code
from pydantic import BaseModel
from typing import Union

class Test(BaseModel):
    # ints first
    x: Union[list[int], list[str], None] = None
    # strs first
    y: Union[list[str], list[int], None] = None

def gen():
    for val in range(3):
        yield val

# Passes, since generator is only iterated over once
assert Test(x=gen()) == Test(x=[0, 1, 2])

# Fails, since the generator is iterated over twice
assert Test(y=gen()) == Test(y=[0, 1, 2])

Python, Pydantic & OS Version
pydantic version: 2.6.0
        pydantic-core version: 2.16.1
          pydantic-core build: profile=release pgo=true
                 install path: /home/jcristharif/miniconda3/envs/msgspec/lib/python3.9/site-packages/pydantic
               python version: 3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 16:33:10)  [GCC 12.3.0]
                     platform: Linux-5.15.0-92-generic-x86_64-with-glibc2.35
             related packages: pyright-1.1.344 typing_extensions-4.9.0 mypy-1.8.0
                       commit: unknown

@jcrist,
Thanks for reporting this. This is indeed an interesting bug! I'm guessing that fixing this will require some changes to pydantic-core.
Marking this as a bug, PRs welcome with a fix if anyone is interested in contributing!


Use Black Code Style

Please change all of our codes to follow the black style https://github.com/psf/black

hi, I'd like to do this job.
i think running black over each .py file is what you need
am i right?

hi, I'd like to do this job. i think running black over each .py file is what you need am i right?

Hi @siamak4mo. Thank you so much for offering to help! We really appreciate it.
Unfortunately, we have already changed the code style to black and this issue should have been closed. It will serve as a reference for future pull requests to always follow the black style.
However, we are still actively developing our package, and there are many things that could need extra hands. Please consider starring and forking our repository, open issues for problems you have found / new features you would like to develop, and even contribute with your valuable codes! For example, right now, we really need some nice examples in our documentation (docs/examples), and documentations about the implemented algorithms/partitions, e.g., PyXAB/partition/BinaryPartition.py.
It's really exciting to see that people care about X-armed bandit!


Switch to specific vitest imports

This is triggered by #872 and removing any globals for Jest or Vitest. It includes these changes as well. Rebasing this PR on the main when the other one is merged is easily possible.
Instead of relying on global imports (like jest did), this PR switches to specific imports in every single test. All test folders in all packages and examples are now added to npm run lint
Additionally:

tsconfig.test.json are added in all packages and examples with noEmit. These are used by main tsconfig.build.json to compile all code
GitHub Actions update: Performs build, test on both Ubuntu and Windows and lint only on Ubuntu. Tests are executed even if build fails as Vitest does not rely on that, correct?!
vscode settings are updated
Recommended extensions for Vitest and editorconfig are added
eslint ecmaVersion has been aligned with tsconfig (2017)
I removed the top-level prepare as you can't run npm install with a full rebuild. IMO it is better to have control of that: prepare is renamed to build:clean and the build pipeline is updated accordingly

@kaisalmen Please rebase on top of the latest changes

Done.

@msujew I rebased again due to conflicts. This is what is new:

I added volta instructions to all package.json now. My default is now node 18 and when this the case it may sneaks in unexpectedly on package level. This prevents it for everybody using volta
I removed the outdated version of eslint from langium-vscode. vite(st) brings in a newer version and the directly declared one was overruled because it it is a workspace level dependency? This even lead to an execution error, but may have been Windows related
I updated the release guide in CONTRIBUTING.md. It did not yet reflect the npm run build:clean change

⬆ Changes:

@types/vscode and @types/node have been moved to top-level of the workspace other references have been removed
Dependency versions have been updated
~ is now the default dependency prefix


Help wanted - hosting open eats without docker.

I've followed the guide for hosting without docker and when I navigate to my openeats domain on a different computer I can see the openeats logo on the tab. But the screen is just white.
Hosting with apache2 on Ubuntu 20.04.
I'm using virtual hosts and It seems there is an error with a proxy given in the setup page Edit - I solved this error by enabling relevant apache mods..
This is what was given in the guide and I left it so in my virtual hosts file:
    <Location "/api/">
       ProxyPass http://<IP_ADDRESS>:5210/api/
       ProxyPassReverse http://<IP_ADDRESS>:5210/api/
   </Location>

   <Location "/admin/">
       ProxyPass http://<IP_ADDRESS>:5210/admin/
       ProxyPassReverse http://<IP_ADDRESS>:5210/admin/
   </Location>

Navigating to the domain with /admin or /api at the end still shows just a white screen.
Other information:
I use mysql as a database not mariadb as given in the docs if that makes a difference?
Running the command sudo npm rebuild node-sass --force --unsafe-perms=yes --allow-root fails with error code 1.
It says Error: EACCESS: Permission denied, rmdir 'build'
I have nodejs version 10.19.0 as I can't figure out how to get nodejs 13 or 14 installed.
Happy to post the output of any logs if needed.
Any help much appreciated.

I have the same problem - had to enable the apache2 mods, also the symbolic inks had to be corrected as openeats-web/build and openeats-api/site-media don't exist ... I hope I pointed them to the correct place ... Now have a blank screen .. everything else was as documented ... i'm running one Ubuntu 18.04

It would great if someone created a video of how to manually install this app

It would great if someone created a video of how to manually install this app


Beckn Onix: Network observability dashboard for Beckn - Product Requirements ver 0.3-Review and Rework

Current Status
PRD updated with the payload details and additional scenario details.
As @faizmagic suggested moved all the updated content to Google Doc.
Next steps
@faizmagic to review the google document - link
After @faizmagic the PRD has to review with @ravi-prakash-v
Reference Flow Cards
283 - Previous Iteration V0.3 update work flow card
PRD Google Doc Link
Google Doc link is here

Current Status:
PRD updated with the payload details and additional scenario details.
As @faizmagic suggested moved all the updated content to Google Doc.
Next steps
@faizmagic please review the google document - link

Current Status:
PRD updated with the payload details and additional scenario details.
As @faizmagic suggested moved all the updated content to Google Doc.
Next steps
@faizmagic please review the google document - link

Current Status:

In today’s tech stand-up, we discussed schema utilization, and I followed up with Ravi via email. He confirmed that our observability platform should utilize the Open Telemetry Specification (https://opentelemetry.io/docs/specs/otel/) within the observability layer. However, all data pushed into the observability platform must comply with the Beckn protocol schema.

Next steps:

A call is scheduled with @faizmagic to review the PRD  link

@viraj89 @emmayank @rajaneeshk90

Current Status:

Had followed up with Ravi via email. yesterday He confirmed that our observability platform should utilize the Open Telemetry Specification (https://opentelemetry.io/docs/specs/otel/) within the observability layer. However, all data pushed into the observability platform must comply with the Beckn protocol schema.

Next steps:

A call is scheduled with @faizmagic on Nov 18th to review the PRD link

A call needs to be scheduled with Ravi to clarify our understanding from the email conversation, which suggests developing a schema using the OpenTelemetry method and Beckn protocol.

@viraj89 @emmayank @rajaneeshk90

Current Status:
A call with Ravi is scheduled for tomorrow to discuss clarifications on OpenTelemetry, Beckn specifications, and subset exploration for cost optimization.
Next steps:
After receiving the necessary clarifications, the PRD will be updated accordingly.
@viraj89 @emmayank @rajaneeshk90

Current Status:
PRD internal review/discussion is InProgress with @viraj89
Next steps:
Need to talk with @faizmagic on the next steps to get clarity from Ravi
After receiving the necessary clarifications, the PRD will be updated accordingly.
@viraj89 @emmayank @rajaneeshk90 @faizmagic

Current Status:
Specification Document preparation is In-progress
Next steps:
Once the spec document is completed a follow-up call with Ravi & Venky need to schedule.
@viraj89 @emmayank @rajaneeshk90 @faizmagic

Current Status:
The separate PRD is merged with main Beckn One Spec document and the Network Observability Related Spec update is taken care in this working ticket #294  and we have ma in flow card to track the Spec status #300
Specification Document preparation is In-progress. Hence closing this ticket
Next steps:
Once the spec document is completed a follow-up call with Ravi & Venky need to schedule.
@viraj89 @emmayank @rajaneeshk90 @faizmagic


Mode state management issue in the main screen

The consumer of Mode is at the root of the Scaffold tree in the main_screen.dart which causes the entire tree to rebuild on switching from dark to light mode and vice versa, which is unnecessary and causes a bad user experience. Mode change should only affect the UI and not the business logic!
@harchani-ritik I propose to resolve this issue with provider<Mode> instead of consumer<Mode> so that only the UI is effected on switching the current mode and fix some other small state management issues too in the same screen.

@rj-since-2000 Is this change only required in the main screen?

@harchani-ritik  Probably yes because the switch is actually present in the main screen, so we only need to refresh the main screen and the torrents list on toggle switch. Rest of the widgets can use Provider when they come in focus.
Actually after more research, I realised why do we even need a Consumer in the main screen. Let's try to analyse -
There are three providers - Api, GeneralFeatures and Mode
*(Api does not even extend ChangeNotifierProvider)
Api is used in -
'api.username'
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => MainScreen())); is already calling the MainScreen to refresh on switching between accounts in the drawer. Thus it doesn't need a consumer to update in the UI.
'_getAccountsList(api, modeTheme, general)' in Drawer
Same as above
if (_currentIndex == 0) {             showModalBottomSheet(               isScrollControlled: true,               context: context,               builder: (BuildContext bc) {                 return AddBottomSheet(                   api: api,                   apiRequest: (url) {                     ApiRequests.addTorrent(api, url);                   },                   dialogHint: 'Enter Torrent Url',                 );               },             );           } else {             showModalBottomSheet(               isScrollControlled: true,               context: context,               builder: (BuildContext bc) {                 return AddBottomSheet(                   apiRequest: (url) async {                     await ApiRequests.addRSS(api, url);                     setState(() {});                   },                   dialogHint: 'Enter Rss Url',                 );               },             );           }
Same as above
Now the GeneralFeatures -
It is used inside Drawer
'_getAccountsList(api, modeTheme, general)'
This just needs to pass provider of GeneralFeatures, so instead we can just pass provider. No need of Consumer.
'general.filterTileList' and 'general.listOfLabels'
These functions return data which isn't part of a Stream or any automatic change. Provider will work here.
'general.pageController'
This returns a controller defined in GeneralFeatures so it does not need a Consumer.
'general.pageController.jumpToPage(index)'
Same as above
Only the HomePage needs to be inside Consumer of GeneralFeatures because it has TorrentLists which is already inside a Consumer.
The DownloadsPage only needs homeDirectory to get the list of files. No need of Consumer.
RSSFeeds is already inside a Consumer it needs.
RSSFilterDetails just uses - rssFilters = await ApiRequests.getRSSFilters(Provider.of<Api>(context, listen: false)); so it also doesn't needs a Consumer in the tree root.
I tried debugging using a simple print('widget tree updated') inside the root widget of the main screen and with two providers(Api and GeneralFeatures) and one Api class inside as it is now in the codebase, the print was being executed multiple times per second which is highly inefficient.
FUN FACT - I tried removing all the three Consumer in the root of the MainScreen and the app was working all fine with all updates in the torrent list, account change, account deletion, list sort, mode change, etc.

Nice @rj-since-2000. So you can replace all "consumer" usages with "Provider" wherever necessary and properly test all the functionalities once from your side too before pushing the changes.


Move to es6

I'd like to move the code to ES6 using babel as the transpiler. Would you be open to such a change?

Totally agree with this. :+1:

Totally agree with this. :+1:

@karanjthakkar Yep! You can use this as the boilerplate: https://github.com/contra/react-npm-boilerplate

@contra Just trying to understand the architecture here a little bit. Is there a reason why the dist for sandbox is pushed to the repo and not the dist for static? Also, is it necessary for dist folders to be in the repo? Can we just .gitignore them?

@karanjthakkar Use the new react npm boilerplate, the structure of this project is old and bad and overly complex.

@contra Rearchitecture could be a new PR altogether. Adding it to #45 would make the PR really bloated.

@contra bump!

@contra this becoming an issue for us since we just migrated to React 15. We're getting admin.js.gz?v=1465920666641:33636 Warning: getInitialState was defined on MediaQuery, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead? errors all over the place. Any update on this?

@karanjthakkar I left a comment already requesting it be in a certain structure, send me a PR that fits that and I'll happily merge.
@tysoncadenhead It is using createClass https://github.com/contra/react-responsive/blob/master/src/index.js#L28 not sure if your warning is a bug in v15 or what


Gui wip

Attempted fixes for mac os window being on top and extra indexer call.

In case the main branch gets updated again you can do a rebase
make sure everything is committed
Make sure your main branch is updated, can be done here: https://github.com/tdb30/vpxtool/tree/main (button sync)
git checkout main
git pull
git checkout gui-wip
git rebase main

now follow the instructions
when you are 100% sure that everything is ok (rebase completed successfully)
git push --force

But might be better to check a youtube guide on how to do this with your favorite tool.
Can also be good to squash your branch to a single commit first, so you don't have to go through each commit. But then you lose history.
Anyway, I can also take care of all that later if you want.

@tdb30 what happened?

There are 0 commits and the pr is closed?

@tdb30 did you mean to close this?

Tried to refactor again to incorporate your changes.
------ Original Message ------
Received: Sun, 22 Dec 2024 03:50:47 AM EST
From: Francis De Brabandere @.>
To: francisdb/vpxtool @.>Cc: tdb30 @.>,
Mention @.>
Subject: Re: [francisdb/vpxtool] Gui wip (PR #386)

@tdb30 did you mean to close this?
--
Reply to this email directly or view it on GitHub:
https://github.com/francisdb/vpxtool/pull/386#issuecomment-2558381208
You are receiving this because you were mentioned.
Message ID: @.***>


Configure Disk Glace View React script to use 'http://localhost:8080/api/v1/disk/top-processes' to retrieve and display the top 3 processes (based on disk usage)

Disk glace view uses javascript fetch API to retreive top 3 processes from backend based on disk usage.  These three processes are shown in the glance view.