No option to provide alternate Framework search paths when system directories don't have Headers (macOS Mojave)

I previously created an issue (#181) with my BitBucket name, now I've been asked to build the same release on macOS Mojave 10.14.6 with Xcode 10.3 and I ran into a new problem.
I'm trying to use these steps from the BuildWithCMake page in the Wiki.
macOS
(1) hg clone https://bitbucket.org/Coin3D/coin coin
(2) cmake -Hcoin -Bcoin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/name/Coin3D -DCOIN_BUILD_DOCUMENTATION=OFF -DCOIN_BUILD_MAC_FRAMEWORK=OFF
(3) cd coin_build
    make
(4) sudo make install
(5) cd cpack.d
    cpack --config darwin-dmg.cmake
    cpack --config darwin-pkg.cmake
My cmake invocation was
mac{cmbld}% cmake -Hcoin -Bmac64-osx -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local/vicar/external/coin/v4.0.0/mac64-osx -DBoost_INCLUDE_DIR=/usr/local/vicar/external/boost-c++/v1.68.0/mac64-osx/include -DCOIN_BUILD_DOCUMENTATION=OFF -DCOIN_BUILD_MAC_FRAMEWORK=OFF -DOPENGL_INCLUDE_DIR=/opt/X11/include -DCOIN_BUILD_MAC_X11=ON
The make was going swimmingly until it hit
Scanning dependencies of target glue
[ 41%] Building CXX object src/glue/CMakeFiles/glue.dir/cg.cpp.o
[ 41%] Building CXX object src/glue/CMakeFiles/glue.dir/spidermonkey.cpp.o
[ 42%] Building CXX object src/glue/CMakeFiles/glue.dir/dl.cpp.o
/usr/local/vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp:150:10: fatal error: 'CoreFoundation/CFBundle.h' file not found
#include <CoreFoundation/CFBundle.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/glue/CMakeFiles/glue.dir/dl.cpp.o] Error 1
make[1]: *** [src/glue/CMakeFiles/glue.dir/all] Error 2
make: *** [all] Error 2
The code is
mac{cmbld}% sed -n '148,153p' /usr/local/vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp
#ifdef COIN_MACOS_10
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFURL.h>
#endif // COIN_MACOS_10
As far as I can see, these 2 header files live in the CoreFoundation Framework headers directory and also in the Xcode tree:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers
Is there some incorrect version of Xcode 10 or the Command Line Tools that I've got installed?
Because later on I get a similar type of error:
Scanning dependencies of target rendering
[ 49%] Building CXX object src/rendering/CMakeFiles/rendering.dir/SoGL.cpp.o
[...]
[ 50%] Building CXX object src/rendering/CMakeFiles/rendering.dir/SoOffscreenCGData.cpp.o
/usr/local/vicar/external/coin/v4.0.0/coin/src/rendering/SoOffscreenCGData.cpp:40:10: fatal error:
      'ApplicationServices/ApplicationServices.h' file not found
#include <ApplicationServices/ApplicationServices.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/rendering/CMakeFiles/rendering.dir/SoOffscreenCGData.cpp.o] Error 1
which similarly lives in the ApplicationServices Framework Headers directory:
mac:~ root# ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h
-rw-r--r--  1 root  wheel  1231 Jun 25  2019 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h
-rw-r--r--  1 root  wheel  1231 Jun 25  2019 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h
It looks like when you do a make the compiles are only looking for headers in the 2 system Frameworks directories, and not under /Applications/Xcode.app/Contents/Developer or /Library/Developer/CommandLineTools.  Nothing is providing a -F switch to tell them to look in those trees for the Framework Headers.  If I use -F to add the path to the Framework under the Xcode tree, it compiles fine.
So why aren't the installation steps providing a
-F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
switch anywhere in the Makefile(s) so that the necessary Framework headers get found?
mac:~ root#  cd /vicar/external/coin/v4.0.0/mac64-osx/src/glue && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -v -I/vicar/external/coin/v4.0.0/mac64-osx/data -I/vicar/external/coin/v4.0.0/coin/include/Inventor/annex -I/vicar/external/coin/v4.0.0/coin/src -I/vicar/external/coin/v4.0.0/mac64-osx/src -I/vicar/external/coin/v4.0.0/coin/include -I/vicar/external/coin/v4.0.0/mac64-osx/include -I/opt/local/include -I/usr/X11R6/include -I/vicar/external/boost-c++/v1.68.0/mac64-osx/include -O3 -DNDEBUG -DHAVE_CONFIG_H -DCOIN_INTERNAL -DCOIN_DEBUG=0 -o CMakeFiles/glue.dir/dl.cpp.o -c /vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp
/vicar/external/coin/v4.0.0/mac64-osx/src/glue
Apple LLVM version 10.0.1 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.14.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name dl.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 450.3 -v -coverage-notes-file /vicar/external/coin/v4.0.0/mac64-osx/src/glue/CMakeFiles/glue.dir/dl.cpp.gcno -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1 -I /vicar/external/coin/v4.0.0/mac64-osx/data -I /vicar/external/coin/v4.0.0/coin/include/Inventor/annex -I /vicar/external/coin/v4.0.0/coin/src -I /vicar/external/coin/v4.0.0/mac64-osx/src -I /vicar/external/coin/v4.0.0/coin/include -I /vicar/external/coin/v4.0.0/mac64-osx/include -I /opt/local/include -I /usr/X11R6/include -I /vicar/external/boost-c++/v1.68.0/mac64-osx/include -D NDEBUG -D HAVE_CONFIG_H -D COIN_INTERNAL -D COIN_DEBUG=0 -stdlib=libc++ -O3 -Wno-atomic-implicit-seq-cst -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-quoted-include-in-framework-header -fdeprecated-macro -fdebug-compilation-dir /vicar/external/coin/v4.0.0/mac64-osx/src/glue -ferror-limit 19 -fmessage-length 132 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.14.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/glue.dir/dl.cpp.o -x c++ /vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp
clang -cc1 version 10.0.1 (clang-1<IP_ADDRESS>) default target x86_64-apple-darwin18.7.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 /vicar/external/coin/v4.0.0/mac64-osx/data
 /vicar/external/coin/v4.0.0/coin/include/Inventor/annex
 /vicar/external/coin/v4.0.0/coin/src
 /vicar/external/coin/v4.0.0/mac64-osx/src
 /vicar/external/coin/v4.0.0/coin/include
 /vicar/external/coin/v4.0.0/mac64-osx/include
 /opt/local/include
 /usr/X11R6/include
 /vicar/external/boost-c++/v1.68.0/mac64-osx/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
/vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp:150:10: fatal error: 'CoreFoundation/CFBundle.h' file not found
#include <CoreFoundation/CFBundle.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Or, to put it another way:
Why is it that on macOS Mojave only the Framework copy under the Xcode tree has the Headers, whereas the system Frameworks directory does not?
mac:~ root# ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers
lrwxr-xr-x  1 root  wheel    24B Nov  1 18:48 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers@ -> Versions/Current/Headers

mac:~ root# ls -l /System/Library/Frameworks/CoreFoundation.framework/Headers
ls: /System/Library/Frameworks/CoreFoundation.framework/Headers: No such file or directory

Did I do something wrong when I installed Xcode 10.3 and/or the Command Line Tools?

In Chapter 5 of the old O'Reilly Mac OS X For Unix Geeks handbook:
https://docstore.mik.ua/orelly/unix3/mac/ch05_01.htm
it says
... frameworks in Mac OS X are common when you step outside of the BSD portions of the operating system. You must use #import instead of #include when working with a framework. To include a framework header file in Objective-C code, use the following format:

#import <_frameworkname_/_headerfilename_.h>

where _frameworkname_ is the name of the framework without the extension and _headerfilename_ is the name of the header file. For example, the included declaration for a Cocoa application would look like:

#import <Cocoa/Cocoa.h>

I'm assuming "#import" has been deprecated since then and "#include" is overloaded to do auto-import of Frameworks when it sees one ... so why isn't it finding the ApplicationServices Framework when it's right there?

Update:
If I use make -n to isolate the failed compilation line and run it manually with -v, it becomes clear that the compile is only looking for Frameworks in the 2 system directories.  If I use -F to add the path to the Framework under the Xcode tree, it compiles fine.
So why aren't the installation steps adding a
-F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
anywhere to the Makefile(s) so that the necessary Framework headers get found?
mac:~ root#  cd /vicar/external/coin/v4.0.0/mac64-osx/src/glue && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -v -I/vicar/external/coin/v4.0.0/mac64-osx/data -I/vicar/external/coin/v4.0.0/coin/include/Inventor/annex -I/vicar/external/coin/v4.0.0/coin/src -I/vicar/external/coin/v4.0.0/mac64-osx/src -I/vicar/external/coin/v4.0.0/coin/include -I/vicar/external/coin/v4.0.0/mac64-osx/include -I/opt/local/include -I/usr/X11R6/include -I/vicar/external/boost-c++/v1.68.0/mac64-osx/include -O3 -DNDEBUG -DHAVE_CONFIG_H -DCOIN_INTERNAL -DCOIN_DEBUG=0 -o CMakeFiles/glue.dir/dl.cpp.o -c /vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp
/vicar/external/coin/v4.0.0/mac64-osx/src/glue
Apple LLVM version 10.0.1 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.14.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name dl.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 450.3 -v -coverage-notes-file /vicar/external/coin/v4.0.0/mac64-osx/src/glue/CMakeFiles/glue.dir/dl.cpp.gcno -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1 -I /vicar/external/coin/v4.0.0/mac64-osx/data -I /vicar/external/coin/v4.0.0/coin/include/Inventor/annex -I /vicar/external/coin/v4.0.0/coin/src -I /vicar/external/coin/v4.0.0/mac64-osx/src -I /vicar/external/coin/v4.0.0/coin/include -I /vicar/external/coin/v4.0.0/mac64-osx/include -I /opt/local/include -I /usr/X11R6/include -I /vicar/external/boost-c++/v1.68.0/mac64-osx/include -D NDEBUG -D HAVE_CONFIG_H -D COIN_INTERNAL -D COIN_DEBUG=0 -stdlib=libc++ -O3 -Wno-atomic-implicit-seq-cst -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-quoted-include-in-framework-header -fdeprecated-macro -fdebug-compilation-dir /vicar/external/coin/v4.0.0/mac64-osx/src/glue -ferror-limit 19 -fmessage-length 132 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.14.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/glue.dir/dl.cpp.o -x c++ /vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp
clang -cc1 version 10.0.1 (clang-1<IP_ADDRESS>) default target x86_64-apple-darwin18.7.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 /vicar/external/coin/v4.0.0/mac64-osx/data
 /vicar/external/coin/v4.0.0/coin/include/Inventor/annex
 /vicar/external/coin/v4.0.0/coin/src
 /vicar/external/coin/v4.0.0/mac64-osx/src
 /vicar/external/coin/v4.0.0/coin/include
 /vicar/external/coin/v4.0.0/mac64-osx/include
 /opt/local/include
 /usr/X11R6/include
 /vicar/external/boost-c++/v1.68.0/mac64-osx/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
/vicar/external/coin/v4.0.0/coin/src/glue/dl.cpp:150:10: fatal error: 'CoreFoundation/CFBundle.h' file not found
#include <CoreFoundation/CFBundle.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Or, to put it another way:
Why is it that only the Framework copy under the Xcode tree has the Headers, whereas the system Frameworks directory does not?
mac:~ root# ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers
lrwxr-xr-x  1 root  wheel    24B Nov  1 18:48 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers@ -> Versions/Current/Headers

mac:~ root# ls -l /System/Library/Frameworks/CoreFoundation.framework/Headers
ls: /System/Library/Frameworks/CoreFoundation.framework/Headers: No such file or directory

OK, after doing some poking around, maybe I can work around this if I could get coin/configure to be run with the
--with-framework-prefix
switch so that COIN_EXTRA_CPPFLAGS and COIN_EXTRA_FP_LDFLAGS will be set to use -F.
But how do I do that with CMake?

P.S. I am closing this, but I do get one last error even after fixing this:
`mac:~ root#  cpack --config darwin-dmg.cmake
CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Run preinstall target for: Coin
CPack: - Install project: Coin []
CPack: -   Install component: Unspecified
CPack: -   Install component: development
CPack: -   Install component: runtime
CPack: Create package
CPack Error: Error executing: osascript "/vicar/external/coin/v4.0.0/mac64-osx/cpack.d/DMGSetup.scpt" "coin-4.0.0-macosx64-noinst"
CPack Error: Error executing custom script on disk image.
/vicar/external/coin/v4.0.0/mac64-osx/cpack.d/DMGSetup.scpt:318:322: execution error: An error of type -610 has occurred. (-610)
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: coin`


Build errors due to dependency issues do not stop the build process

> yt build
.
.
error: mbed-client-c does not meet specification ^1.0.0 required by sal-stack-nanostack
error: mbed-drivers does not meet specification ~0.11.8 required by mbed-6lowpan-eventloop-adaptor
.
.
.

[385/385] Linking CXX executable source/mbed-client-example-6lowpan

A binary is generated even if there are dependency issues as shown above.
Use this repo to replicate problem:
https://github.com/ARMmbed/mbed-client-example-6lowpan (device_server branch)
yotta version: 0.13.0

This is by design. In this case yotta's exit-status is non-zero, so CI systems can still pick up that there was a failure. On the command line you could check the exit status with, for example:
yotta build || echo "build failed (non-zero status)"

I still think this doesn't make sense. If there are errors, you would expect the image not to be generated.
It's not clear which modules/versions are being used in the image.

If you like, you can pretend that the image is not generated if there are errors ;)
The modules used will always be those listed by yotta ls, this should also show you all the version errors, or if it does not, try yotta ls -a.

Would it make sense instead of labeling this as an error to label this as a warning? Since that's what it seems like this actually is. yotta has already fetched the modules, but it has realized there is an incompatibility according to the version numbers. No guarantee that it will fail, no guarantee that it will work, just warn that there's definitely a point of failure

It's an error because you really really should fix it, and I think people would be too inclined to ignore a warning – otherwise it would be a warning

cc @janjongboom @maclobdell
correct! Therefore by default do not generate an image, as it's very confusing. We spent lots of time fiddling with dependencies and trying to fix the issues, until we realized that the image was there.
The user experience is not good here.
For the CI system, you could have a switch option to ignore dependency issues.

We spent lots of time fiddling with dependencies and trying to fix the issues

Good! You should have done :wink:

until we realized that the image was there

You're suggesting to remove the image for everyone, because you decided that it's OK to ignore error messages if an image is created, but for some reason wish that you hadn't?
Let me be clear: the fact an image is produced is not for the benefit of a CI system (the exit status indicating whether there was an error is for the benefit of a CI system), the fact an image is produced is for the benefit of the user for whom we want to maximise the possible chance of a successful build that they can use to test whatever they're working on, even in the presence of other errors.
Perhaps this is a product of my own approach to software development, where I want something I can run and test as soon as possible, and then incrementally improve. (Instead of constructing some grand and complete edifice before first attempting to run it). But as far as software development is concerned, I believe this is a wise practise to encourage.


Ali

more general copula implementation added.

I have taken Copula_final.py separately and merged with main.


what's the runner for?

Runners are responsible for executing the model and presenting the results. For instance, a decoder produces  distributions over vocabulary, GreedyRunner takes indices of maxima in these distributions and looks-up the corresponding symbols in a dictionary.


Add Android Features 'isBluetoothAvailable' & 'openBluetoothSettings'

Description
This pull request adds two features for Android devices. This PR came up after discussion #106.

isBluetoothAvailable(): void - This method acts as a check to ensure Bluetooth is a supported feature on the Android device being used. One use case for this is in Zebra scanners that do not have Bluetooth and instead use their own SDK.

openBluetoothSettings(): void - This method allows a developer to programmatically open Android's Bluetooth Settings activity.

Testing

Performed on Android device as well as an Android emulator (where Bluetooth is not supported)

Used react-native-bluetooth-classic-example as sandbox

Modified App.js's render method to return a different view when Bluetooth not detected

Instead of DeviceListScreen or ConnectionScreen

Added button to test openBluetoothSettings

Hey @kenjdavidson,
I took a stab at this. I would rather not disrupt anyone with this, so I didn't modify isBluetoothEnabled. I am also not very familiar with Java, so I apologize if I missed anything. Please let me know what you think. Also, feel free to make any updates that you would like!

If you're not supporting these functions on IOS, you'll need to throw the appropriate message stating that they are not currently supported on IOS.  At this point in time, they'll throw an exception - just not a nice one.
Please use the other Android only methods as baselines for handling new Android only functionality.
I'd prefer that you looked into the IOS side to see if they are possible, and implement them (as a best case) or comment on how I can implement them later (worst case).  But as a minimum they should throw correctly.

/docs/ also needs to be updated with the recent additions.

Sorry, I just merged a bunch of stuff.  Could you rebase these changes and I'll merge the request.

@kenjdavidson,
I've updated the branch. I noticed I missed a documentation update in api-overview.mdx too, so I pushed an update for that too.

Danget - prettier is being a pain with the markdown files and messing with a lot of the syntax. Picking sections of the changes it is making on save made me remove a section of the docs in the last update. Fixing.

Fixed. Sorry about that.
Also, I tried to run the iOS version of the example app, but the app hard errors for me on initialization. I wasn't able to figure out the cause. I was getting an error with a bare repo that did not contain any of my changes. Any chance you have the same issue with iOS?

 I'm on after school duty now. So no rush. I'll look tomorrow.

 You need the protocolStings xml file to start the app. I think I'm the only person actually using this library for ios development because its so proprietary.
I'll try it with my devices when I get a chance.

That was it, thanks. I had to add that entry to the plist. The iOS app runs as expected.

Hey, don't forget to submit the pull request for the react-native-bluetooth-classic-apps project.  I think you commented on here that you made some changes to test both new functions.
thanks again.

Hey.... Thank you! This is nothing compared to what you have done. I need to do some cleanup first, but I will put something together. Any chance you know why VSCode is picking up so many formatting changes (attaching an example as a screenshot below)? I see a prettier and eslint config, so I am a bit confused why I am getting all these changes. I want to contribute, but I don't want to interfere with your code styling.

Ya, they fight with each other in VSCODE when they are both disabled.  I probably made the change globally instead of project specific which is why it's so annoying.
If you google for something like VSCODE prettier and eslint you'll find some configuration options that you need to turn off in your VSCODE properties.
I'll open a task for me to make the changes locally instead of globally when I get a chance.


Freeze and 100% CPU after doing cat binary file in the terminal

Visual Code Consumes 100% Cpu on a 8 core i7 4 ghz hangs total i hitted crtl + c and it interrupted as it should but the system was still not use able anymore. That makes me think that there is something bad in the terminal component when it gets some characters that it does not like.

VSCode Version:
current nightly
OS Version:
ubuntu focal

Steps to Reproduce:

start a terminal inside vscode
cat $(which node)
the node file is in this case the nodejs binary elf

Does this issue occur when all extensions are disabled?: Yes/No
yes

This might is likely because it takes a long time to parse the entire binary file and the parsing is done on the UI thread. I'm not sure if it's tracked to move parsing to a worker, but that would be a cool improvement to make eventually. I'll leave this open for now to track that.

@Tyriar no i am pritty sure that there is something leaking i also found other information in other projects that doing cat on binary files in the Terminal (Nodejs Based one) do end up in undiscovered sideEffects. It does not happen in a real terminal but at last the NodeJS Term Emulation does do 100% bad things when you return binary code and it is not because of the size.
i will not use the vscode terminal anymore soon as i expirenced such issues over the last year more then once.

Strange I can repro this sometimes, not sure what it could be atm as it happens after the parsing appears to be done. Additionally doing the same thing in Edge using xterm.js' demo doesn't reproduce the problem.
I moved the worker idea to upstream https://github.com/xtermjs/xterm.js/issues/1515

@Tyriar I can repro this every single time. The weird thing about it - the terminal itself seems to act nice and responsive (gets through all data without any issue), but vscode itself gets unresponsive. To me it looks like some follow-up code chewing on some terminal chunks cannot keep up and thus stocks up data.

@jerch yeah it gets through everything for me as well and only then freezes. Not sure how I can get a performance profile out of it if the main thread locks up, if we had that it would be easy to see where the problem was.

@Tyriar Could that be a onLineFeed handler trying to merging the whole "binary" buffer into one line right after the shell prompt returned? Since the content is binary, chances are high that the whole buffer did not see a single LF in between. Just a wild guess.

@jerch do i understand that right that vscode has a api that it exposes to analyze terminal output? Becuase linkMatch sounds for me exactly like that. And If that is the case we are doomed as i am Security researcher that means for me nothing good i see then 1000 additional issues that need investigation asap

@frank-dspeed Plz lets not jump to random conclusions. If you are a user with very high security constraints you already should have done security audits. For the terminal component https://xtermjs.org/docs/guides/security/ might be a good starting point (though written for embedders as audience).
To shed some light on this:
vscode uses xterm.js as terminal library component. Ofc the terminal lib exposes several API functions to read or write data, otherwise it would be quite meaningless for embedding purpose with advanced interactions (like path updates, debugger line jumps or links that open in the editor). From a security perspective it is not really possible to prohibit access to private terminal data structures in a reasonable way - simply because JS works that way. But as a security researcher you are already aware of that problem and that it is not any different for libraries in other languages (private accessors are a coding help, not meant to hide memory segments during runtime). Still one big difference to compiled langs remains - JS makes it much easier to inject code at runtime. Yes, this needs careful application development with security in mind, as the bar to inject random code at runtime is freaking low in JS.
The link matching function I wrote about above is a built-in functionality of the terminal itself to help identifying buffer content that shapes an URL.
Further note that there is some sandbox isolation done in vscode for plugins. To get more insights here, either consult the source code or ask a vscode developer about the mechanics.

@jerch your right lets not do that and run it inside a log everything virtual machine and fuzz it a bit. thats a great idea would microsoft sponsor that?

@Tyriar who is the right person to ask for azure resources to make sure that this is not as scary as i think it is.

i will only use the vscode online fork till that got addressed via real testing with BPF-Trace: "Dtrace" .
The Browser version does not have that issues not even js is crashing but i am not sure why that is the fact. maybe it leaks some functions that the electron build has or maybe electron it self is the problem.

@jerch your right lets not do that and run it inside a log everything virtual machine and fuzz it a bit. thats a great idea would microsoft sponsor that?

Idk and to be honest I doubt that. They most likely have their own security teams doing all sorts of hardening stuff. Same goes for azure - a service that big (1. or 2. in the world, idk the numbers compared to AWS) cannot go easy with security aspects as it would create such a big threat for many customers (and follow-up lawsuits). I am pretty sure they have done their homework here. Ofc my hand-waving position has no meaning for high security requirements, under such circumstances you always should ask yourself, if the security standards of a service fits your own needs.

The Browser version does not have that issues not even js is crashing but i am not sure why that is the fact. maybe it leaks some functions that the electron build has or maybe electron it self is the problem.

The browser demo of xterm.js has some differences to the vscode integration, to name a few I am aware of:

pty binding runs in electron windows JS context (within the frontend event loop), the demo decouples that with websocket transport
vscode has a couple of additional event listeners to achieve the neat integration with the rest of vscode

Could that be a onLineFeed handler trying to merge the whole "binary" buffer into one string line right after the shell prompt returned? Since the content is binary, chances are high that the whole buffer did not see a single LF in between. Just a wild guess.

@jerch that is totally what it is! The window is crashing because we're trying to extract links from a line that's several mbs long, this is tracked in https://github.com/microsoft/vscode/issues/100338
/duplicate

And If that is the case we are doomed as i am Security researcher that means for me nothing good i see then 1000 additional issues that need investigation asap

@frank-dspeed you can read exactly what extensions are capable of around this by looking at the registerTerminalLinkProvider API. A summary of it is that extensions will be asked to provide links for lines when the user hovers over them, so the order in which they're asked is somewhat random based on what the user hovers. There are several built-in link providers that provide web and local links for example.
There is also a proposed onDidWriteTerminalData API which it sounds like you would likely be very concerned about, but only a small subset of Microsoft extensions are permitted to use that due to security and performance concerns (live share and remote).


Update Dependencies

Fixed NPE in FlatLaf
Housekeeping, otherwise.
SwingX still off list.

I presume you built and smoke tested a jar. Dependency changes always make me nervous :-)

built a jar, ran it, ran a day's worth of turns, tried a few ad-hoc things, ran the test suite.


feat(RHTAP-969): Make it possible to run basic or advanced pipeline builds in load test

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Issue ticket number and link
RHTAP-969
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/retest

/retest


[otbn,dv] Add support for "giant loops" to RIG

These are loops that have an end address above the top of IMEM.
They'll never actually complete, so we generate a sequence of
instructions that does complete to go inside them.
This PR has a staging commit that comes before, slightly changing the signature of the continuation function to make this possible.

Oh, this wasn't very clear. The "giant loop" won't cause OTBN to terminate (you're allowed a silly bodysize, but the loop will never loop back). So we handle this by starting such a loop and then generating the rest of the program inside it. I'll try to clean up the comments a bit to make it easier to understand.


WIP: improve intro to machine docs

Signed-off-by: Victoria Bialas<EMAIL_ADDRESS>

@moxiegirl this is still in work per the "WIP: prefix", but wanted to push current changes, please do not merge yet :-)

@moxiegirl maybe we can take a look at the output of "make docs" on this? At this point, the Machine "overview" isn't even in the menus at all now , and the build is showing a link error ... at some point, the menus being in flux  might make it difficult for me to check my work with builds, as I continue updating these Machine docs ...

@moxiegirl @nathanleclaire @dgageot @bfirsh @jeanlaurent @dmp42
Please review these updated Machine docs , and approve merge if ok.
Since there quite a few changes, I've published this draft in a make docs container on Digital Ocean (a nice test of that docker-machine driver) so that you can read them as a cohesive docset: http://<IP_ADDRESS>:8000/machine/overview/
(You will see nav menus below the Machine docs without page ID codes instead of topic names--please ignore, this is work-in-progress docs infrastructure.)
Key changes are:

a rewrite of "overview"
re-org of "getting started with a local VM"
topic re-organization and copyedits throughout for clarity

The last thing I'd like to do, per @moxiegirl suggestion is remove the Swarm topics at the end of the "cloud provider" topic (making sure this is covered in Swarm docs)
Let me know what you'd like changed or if this is good-to-go. Thanks! Vicky

@londoncalling etc.  The new provisioning documentation for Swarm:
https://github.com/docker/swarm/issues/1719

Thanks @moxiegirl
On Sunday, January 31, 2016, moxiegirl<EMAIL_ADDRESS>wrote:

@londoncalling https://github.com/londoncalling etc. The new
provisioning documentation for Swarm:
docker/swarm#1719 https://github.com/docker/swarm/pull/1719
—
Reply to this email directly or view it on GitHub
https://github.com/docker/machine/pull/2957#issuecomment-177574034.

I've updated these docs as follows.

Corrected some details in Concepts (http://<IP_ADDRESS>:8000/machine/concepts/) per comments from Chanwit

Replaced info on Swarm clusters in Cloud topic (http://<IP_ADDRESS>:8000/machine/get-started-cloud/)  with a reference to the Swarm docs on using Machine to provision Swarm clusters per @moxiegirl. Links won't work yet.  (@moxiegirl, please let me know if I anticipated these links out to Swarm topics correctly - thanks!)

Please review here or at http://<IP_ADDRESS>:8000/machine/overview/. Reviewers, please let me know if this pull request can be merged now.

@bfirsh brilliant, Ben, thanks. I had re-worded these phrases similarly, but your wording is better. Updates on "concepts" are in per your comments.

@moxiegirl I've added in comments from you, @bfirsh and Chanwit, and also now incorporated the illustrated step-by-step example of cloud provisioning w/Digital Ocean example (barring content re-use, for now this is a copy, but it works well here).
If there are no more comments from @nathanleclaire or rest of team, I believe this is ready to be merged.
The thing to keep track of here is to make sure links to new/moved topics work (e.g., links to the Swarm docs, and to any of my cloud install topics). Let me know how I can help check for those at release time.

@nathanleclaire thanks for the comment, I updated Concepts per that boot2docker reference.
Just a friendly reminder, everyone has been commenting only on  Concepts, but several files have changed markedly. If all LGTYou, great! Just let me know.
Files with quite a bit of new content or reorganization are:

overview.md
get-started.md
get-started-cloud.md (which will change again if I can get the AWS example working, then I'll just point to this version of the Digital Ocean example in install docs and use AWS for Machine docs)

@dmp42 @nathanleclaire @moxiegirl Most recent changes here are in response to Olivier's comments, which I believe are all addressed (and greatly improved the topic!) Please let me know if this looks good, and if so give me an LGTM for merge. (We're hammering for release, so soon would be good! :-)
Thanks, Vicky

@moxiegirl pushed latest updates, should be good-to-go but need LGTM from @dmp42 or @nathanleclaire

Looking over it now

Content LGTM, looks like Travis is still building.

LGTM


[MXNET-882] Support for N-d arrays added to diag op.

Description
Github Issue #12327
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-12430/3/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] The diag operator now supports N-d arrays where N > 2. In this case it behaves in the same way as the diagonal operator provided by numpy (https://www.numpy.org/devdocs/reference/generated/numpy.diagonal.html). Axes of the sub-arrays can be specified with axis1 and axis2.

Comments

This change is an extension to the existing interface, and therefore completely back compatible.

@samskalicky Thanks for your review! I have accordingly made modifications to the code.

@jasonyu1996 regarding this error, what have you tried to debug it? The message doesnt look very meaningful. If you run the same test in the master branch does it fail the same way? You might have to try re-applying some of your changes and see when it starts breaking to debug.
There are some instructions here to setup debugging (if you're using a Mac): https://cwiki.apache.org/confluence/display/MXNET/MXNet+Developer+Setup+on+Mac but im also working on improving this and putting together a debug guide so please post any steps or processes that you do (whether they worked or not) and i'll be sure to include those.

@jasonyu1996 There is a PR to fix this issue https://github.com/dmlc/nnvm/pull/525 . I know that this issue is blocking everyone else so hopefully this gets through soon and we can get your changes merged too.

@samskalicky Thanks! As what the diag operator does is basically copying some elements from the input directly to output, the backward process is quite straightforward. What it does is simply copying the gradients from the output back to the corresponding elements of the input. This is achieved with a template parameter indicating whether it is forward or backward to control the direction of the assignment in the copy process.

@anirudh2290 Please review/merge

@anirudh2290 @samskalicky Thanks!

@samskalicky @apeforest Thanks again!

@samskalicky @apeforest It seems that dim_t is poisonous in some cases. I have changed to following examples. k changed to int following the old diag implementation, axis1 and axis2 changed to int32_t following swapaxes and concat. I notice this is actually not very consistent in different operator implementations, and believe that if one day it is necessary to have a tensor of that many dimensions, these operators might have to go through some refactoring work.

@apeforest @samskalicky Am I expected to do something more to get this PR merged?

Sorry @jasonyu1996, i'll take a look at this today and give you a status update. Thanks for your patience!

@sandeep-krishnamurthy @nswamy @anirudh2290 - looks like this one is ready to go, can you please review/merge? Thanks!


Remove public marker from exported symbols

Otherwise loading the package on nightly gives errors like: LoadError: cannot declare AdaptivePredicates.orient2 public; it is already declared exported. Exported symbols are implicitly marked as public so it shouldn't be necessary anyway.
Would it be possible to make a new release when this is merged? Otherwise it's not possible to install any dependent packages on nightly like Makie/DelaunayTriangulation.

Ah. I didn't think it would matter.. that's annoying. Can you bump the version?

Sure, bumped in dc52b79.

Thanks for this. I'll try and make a similar fix in DelaunayTriangulation.jl soon since I think I do the same mistake there.

Once https://github.com/JuliaGeometry/DelaunayTriangulation.jl/pull/168 is in hopefully that's all that needs to be fixed. Feel free to let me know if there are any other issues.

Thanks, can confirm those two fix nightly :heart:


[Navigation] Introducing NavigationAbstractServiceFactory

According to the feedback of #6717 I've created the Navigation Abstract Service Factory. If this abstract service factory is registered, a service with name Zend\Navigation\Special will use the special definition in configuration key navigation.
With one point I'm not satisfied. A service call must start with Zend\Navigation\  (e.g. $sl->get('Zend\Navigation\Special')). Maybe we could support navigation.special too?
I use the ConstructedNavigationFactory to create the Navigation Container. Is this ok or should I use the AbstractNavigationFactory (@weierophinney)? The problem here is that we have to implement the getName() and override the getPages() method. For the future (ZF 3.0) we could remove getName() and make getPages() abstract in AbstractNavigationFactory. This makes DefaultNavigationFactory and ConstructedNavigationFactory needless. But it's a BC break.
I will also update the documentation.

With one point I'm not satisfied. A service call must start with Zend\Navigation\ (e.g. $sl->get('Zend\Navigation\Special')). Maybe we could support navigation.special too?

I think Zend\Navigation\ as a prefix is a reasonable default, and it's easier to support a single option than a configurable option. Developers can extend the factory if they want to change the prefix.

I use the ConstructedNavigationFactory to create the Navigation Container. Is this ok or should I use the AbstractNavigationFactory (@weierophinney)?

ConstructedNavigationFactory looks like the appropriate one to use, as it allows you to get the specific configuration section you need. Internally, it's extending AbstractNavigationFactory anyways; the difference is how it gets the page configuration, and that functionality is why it exists.

The problem here is that we have to implement the getName() and override the getPages() method. For the future (ZF 3.0) we could remove getName() and make getPages() abstract in AbstractNavigationFactory. This makes DefaultNavigationFactory and ConstructedNavigationFactory needless. But it's a BC break.

We can worry about that in a month or two. :)

@sandrokeil
Please add also a short example to docs. Thanks!

I will do it in the next few days.

@sandrokeil
:+1:

Developer can't inherit due to its final behavior. Can anyone please explain why this factory using "final" keyword at class declaration?
Also constant "SERVICE_PREFIX" is not using anywhere, I guess it may use somewhere in Zend project!

@razonklnbd Why do you want to inherit from this class, it's not necessary. Please consider to create your own factory for your special behaviour.
A good explanation when to use final, can be found here. That's the case.

@sandrokeil Thanks for your explanation.


Offer alternative to font shorthand

Related to #922

This is still an issue, event with layers, so prioritising this now.

When we move away from this, we can set font-family as
[class="ds-"] {
  font-family: ...
}

Not sure how this will work with selectors such as :root or body - but we will have to explore this

MdxContent and TokenSize in storefront are the only ones using the font shorthand tokens now. All react components either use the typography CSS class or React component.


Implement Client::CreateBucketAcl.

This fixes #829. It implements the API, unit tests, extends
the integration test to use this new API, and adds a sample
snippet.
FYI: I enabled reviewable.io so we can take it for a spin.
/cc: @houglum FYI.

This change is

@mharris312 any thoughts?


SwiftUI support

Describe the feature you'd like: Swiftui integration

Suggested implementation:

Describe alternatives you've considered:
Tried using uiviwerepresentable but got no luck

Teachability, Documentation, Adoption, Migration Strategy: latest framework of ios support

Describe the feature you'd like: Swiftui integration
Suggested implementation:
Describe alternatives you've considered:
Tried using uiviwerepresentable but got no luck
Teachability, Documentation, Adoption, Migration Strategy: latest framework of ios support

Been Looking for the documentations to integrate RazerPay in swiftui, but got no luck. Looking forward to support the Apple's Latest Framework.

This is the work around you can use, till we get final library update regarding swiftui support :
import Razorpay
import SwiftUI

struct RazorpayView : UIViewControllerRepresentable {

    @State var razorKey : String

    func makeUIViewController(context: UIViewControllerRepresentableContext<RazorpayView>) -> RazorViewController {
        let controller = RazorViewController()
        controller.razorKey = self.razorKey
        return controller
    }

    func updateUIViewController(_ uiViewController: RazorViewController, context: UIViewControllerRepresentableContext<RazorpayView>) {

    }
}

class RazorViewController: UIViewController {

    //MARK: - INSTANCE VARIABLES
    private var razorpay:RazorpayCheckout?
    var razorKey = ""

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        razorpay = RazorpayCheckout.initWithKey(razorKey, andDelegateWithData: self)
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        navigationController?.setNavigationBarHidden(true, animated: animated)

        let options: [String:Any] = [
            "amount" : "15",
            "description": "test",
            "image": "https://url-to-image.jpg",
            "name": "test",
            "prefill": [
                "contact": "9797979797",
                "email"<EMAIL_ADDRESS>            ],
            "theme": [
                "color": "#F37254"
            ]
        ]
        razorpay?.open(options)
    }

    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        navigationController?.setNavigationBarHidden(false, animated: animated)
    }
}

extension RazorViewController: RazorpayPaymentCompletionProtocolWithData {
    func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable : Any]?) {
        let alert = UIAlertController(title: "Paid", message: "Payment Success", preferredStyle: .alert)
        let action = UIAlertAction(title: "OK", style: .cancel, handler: nil)
        alert.addAction(action)
        self.present(alert, animated: true, completion: nil)
    }

    func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable : Any]?) {
        let alert = UIAlertController(title: "Error", message: "\(code)\n\(str)", preferredStyle: .alert)
        let action = UIAlertAction(title: "OK", style: .cancel, handler: nil)
        alert.addAction(action)
        self.present(alert, animated: true, completion: nil)
    }
}

The other way around is to do something instead of having viewcontroller
struct Demo: View  {
	@State var razorpay:RazorpayCheckout? = nil
    var body: some View {
		ZStack{
			Text("Demo").onTapGesture {

			}
		}.onAppear{
			self.razorpay = RazorpayCheckout.initWithKey("", andDelegateWithData:RazorPayIntegerationMediatator())
		}
    }

}

#Preview {
    TOFULSPlusView()
}

class RazorPayIntegerationMediatator : RazorpayPaymentCompletionProtocolWithData{
	func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable : Any]?) {

	}

	func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable : Any]?) {

	}

}


Ranking

Hello, first all thanks for the tool and also the rarity output saves a lot of time.
I'm wondering if you could also spit out a ranking also?
For Example:
{
        "background": "item",
        "environment": "item",
        "body": "item",
        "eyes": "Stare",
        ......
        "rarityScore": 112.16,
        "name": "NFT#0001",
        "metadata": "1.json",
        "image": "1.png",
        "ranking": "1000"
    }

Hopefully that makes sense.

Chad chad! Hello.
The rarity system will be implemente!! We already have in mind that, but we dont have to many time to keep adding features cause we are working on our AR app. The rarities will be includes when we creates our NFTs!


add VienDong College

@huuhoait bin/main/swot/Compiler.kt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@huuhoait Please add only new file to the repository that represent your school's email domain. Please do not try to modify any other files in the repository. I have to close this request without merging.


Implement simple user interface

A simple user interface to select the chat export files needs to be imlemented.
Required components are:

A textbox for the selected file path
A button for opening a file chooser
A button to start the calculation process
An area to display the generated tag cloud

Finished first ui version


Support excel formats

Hello!
We are looking to add support for xls/xlsx formats in YTsaurus by implementing parser/writer functionality within the formats directory. This implementation requires a C++ excel library, but we couldn't find any relevant libraries in the contrib directory. Therefore, there are two options: we can add a new library ourselves or ask you to export an existing excel library from internal VCS.
We would appreciate any guidance or suggestions on the best approach to proceed with this enhancement.

@verytable – could you help here?


Feature request / question

Hello!
I have a black desktop background and consequently the dock, with this theme, is invisible. Any change of making that dock slightly less dark - or perhaps slightly less transparent - or of telling me how to do that? I can't seem to get at the code within the theme file.

I will push an update with less transparency, this weekend.


#5 - Copyright/License Revisions

Start of a manual code readthrough and edit for #5 .

Thank you for your great work.


Run load/stress tests across different databases

Pick a few databases with standard hardware and try out nebulex_ecto, run some load tests using for instance basho_bench. The idea is to pick at least two DB options, e.g.: PostgreSQL and MySQL, and run load tests using nebulex_ecto.

NOTE: This is the continuation of the Nebulex Load/Stress Tests Issue – some load tests were run already there

I recommend we use travis to run the tests. Travis is a known quantity and as long as the tests are run on the same setup, the results should be comparable.
Any suggestions?


Different behavior of Regorus vs OPA for when invoking count

Regorus it is behaving differently for count(expr) in case that the expression to be evaluated is null or scalar. The OPA is doing evaluation like the expression is undefined but regorus evaluation fails with error.
Repro scenario:
Step 1: Create bug.rego file with following content
package test
import rego.v1

foo := input.a

some_id := {
    "count_value": count(foo) > 2,
}

Step 2: Create bug.json file with following content
{
    "a":null
}

Step 3: run command below (assuming you already run cargo install --example regorus --path .
./target/release/examples/regorus eval -d ./bug.rego -i ./bug.json data.test

The output is
Error:
--> ./bug.rego:7:26
  |
7 |     "count_value": count(foo) > 2,
  |                          ^
error: `count` requires array/object/set/string argument. Got `null`.

However, if you go to the https://play.openpolicyagent.org/ and fill in the content of the bug.rego into the input the content of bug.json and click Evaluate, you'll get following output
{
    "foo": null
}

Is it possible to change the regorus so the  evaluation output to be similar to OPA evaluation?

Seems like this is related to Regorus enabling strict built-in errors by default. If you pass --non-strict it works:
$ ./target/release/examples/regorus eval -d examples/bug.rego -i ./examples/bug.json data.test --non-strict
{
  "result": [
    {
      "expressions": [
        {
          "value": {
            "foo": null,
            "some_id": {
              "count_value": "<undefined>"
            }
          },
          "text": "data.test",
          "location": {
            "row": 1,
            "col": 1
          }
        }
      ]
    }
  ]
}

And you also get same error on OPA Playground if you enable strict built-in errors by via "Options > Built-in Error Behaviour > Strict".

Thanks for reporting this, @balcanuc.
As @unexge pointed out, Regorus defaults to strict evaluation - raising errors in many scenarios. Using the non-strict mode would suppress the errors and generate undefined instead, just like OPA.
I noticed in the output supplied by @unexge  that "" has propagated into the object instead of making the object expression itself undefined. This is a bug.

@balcanuc A note about strict mode. OPA is moving towards their v1 release which will introduce many breaking changes.
See https://www.openpolicyagent.org/docs/latest/policy-language/#the-regov1-import.

most Strict mode constraints and checks are implied and enforced. See the strict mode constraints and checks table for details.

Examples such as yours might error out by default in OPA v1.


Did you have experience with Obj = nan, TokenAcc = nan%?

Hi
I am slightly modifying your character based RNN+CTC experiment on swbd.
I am trying to use minimal character unit (alphabet(26) + {space ' - } + noise + laugh + vocal-noise) instead of including all the characters such as digits, &, _ . Thus RNN have 34 output units. For this experiment, I had to modify lexicon2.txt & units.txt, and this makes transcription have longer sequence than before.
For example)  260 : t w o - s i x t y, 401k : f o u r - o - o n e - k
But, this experiment produce nan for Obj & TokenAcc consistently even if I tried with smaller learning rate & various RNN architecture.
I suspect this is because 'train-ctc-parallel' does not rescale alpha, beta during forward-backward algorithm. It seems that non-parallel version use rescaling kernel. (i.e. _compute_ctc_alpha_one_sequence_rescale). But parallel version does use code without rescaling.
Did you have similar experience about nan error?
Did I miss rescaling part from your code? Hope I did not make mistake and bother you much.
Here is the a few lines of log example
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 20 sequences (0.000913889Hr): Obj(log[Pzx]) = -50.5868   TokenAcc = -nan%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 40 sequences (0.00273056Hr): Obj(log[Pzx]) = nan   TokenAcc = -260%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 60 sequences (0.00498056Hr): Obj(log[Pzx]) = -59.5562   TokenAcc = -140.909%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 80 sequences (0.00747778Hr): Obj(log[Pzx]) = -75.5068   TokenAcc = -34.9206%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 100 sequences (0.0101417Hr): Obj(log[Pzx]) = -67.462   TokenAcc = -66.6667%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 120 sequences (0.0129083Hr): Obj(log[Pzx]) = -31.2848   TokenAcc = 11.6279%
...
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 740 sequences (0.1354Hr): Obj(log[Pzx]) = 10.6927   TokenAcc = 0%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 760 sequences (0.140061Hr): Obj(log[Pzx]) = 8.33837   TokenAcc = 0%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 780 sequences (0.144731Hr): Obj(log[Pzx]) = 4.95938   TokenAcc = 0%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 800 sequences (0.149453Hr): Obj(log[Pzx]) = 2.56755   TokenAcc = 0%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:183) After 820 sequences (0.154206Hr): Obj(log[Pzx]) = 9.55445   TokenAcc = 0%

I don't think it's a problem with rescaling. The rescaling and non-rescaling versions do the same thing.
Can you check if you have empty labels in your training data? That is, the label sequence for an utterance is empty.

Found the reason. When I check labels.tr, there is label which exceeds maximum number of lexicon unit(i.e. 33). I should have checked this file first when I changed the lexicon2.txt.
Now training does not make any nan in Obj & Token Acc.
Close the issue.


(autotest :filter :guard) change to (autotest :filter :some2)    Constant death cycle

version clojure 1.9 midje 1.9  win10 + idea +cursive
when repl  change  autotest :filter  . the test  Continuous output . death cycle excute .

make do with (autotest :stop) very change time

Glad you found a workaround
I'm happy to look into it further if you provide minimal reproduction steps.
In this case it would be helpful if you included a snippet of code that defines two facts with different metadata tags to be filtered by, and then the autotest commands you run to trigger the death cycle


"Set active connection" and "Set active schema" are not available in menu or toolbar.

"Set active connection" and "Set active schema" are not available in menu or toolbar.  For those familiar, it was two drop boxes in the toolbar.

This is not present in 6.0.5 which I've been using the better part of a year now.
I've done quite of bit of researching and this doesn't seem to have been noted since 6.0.3, which I was forced to use in a different environment.  Having it upgraded to the current 22.0.0, the problem seems to have returned.
Imgur

The user guide seems to think it is an available option, under "Active Database/Schema Selection" :
https://dbeaver.com/wp-content/uploads/wikidocs_archive/dbeaver_v_21_2.pdf

System information:

Operating system (distribution) and version: Windows 10, and Windows Azure (both home and work)

DBeaver version: 22.0.0 (and 6.0.3)

Additional extensions: n/a

Connection specification: n/a

Database name and version

Driver name

Do you use tunnels or proxies (SSH, SOCKS, etc)?

Describe the problem you're observing:
The "set active database connection" and "set active schema" drop boxes are not present.
ctrl+9 and ctrl+0 do not work.
The "set active database connection" and "set active schema" are not available under SQL Editor.
The are not available to be enabled in Custom Perspective:
Imgur
Steps to reproduce, if exist:
Start program, drop boxes do not display.
Press ctrl+9 or ctrl+0, nothing happens.
Click SQL Editor, options are not available.
Click Window, Custom Perspective, attempt to check the checkbox for "DataSource Selector"
error occurs.  Clicking "Yes" does nothing.

Include any warning/errors/backtraces from the logs
!ENTRY org.eclipse.ui 4 4 2022-03-07 16:42:39.330
!MESSAGE Plug-in 'org.eclipse.team.ui' contributed an invalid Menu Extension (Path: 'project' is invalid): org.eclipse.team.ui.ConfigureProject

!ENTRY org.eclipse.ui 4 4 2022-03-07 16:42:39.331
!MESSAGE Plug-in 'org.eclipse.team.ui' contributed an invalid Menu Extension (Path: 'project' is invalid): org.eclipse.team.ui.ApplyPatchAction

!ENTRY org.eclipse.ui 4 4 2022-03-07 16:42:39.333
!MESSAGE Plug-in 'org.eclipse.ui.ide' contributed an invalid Menu Extension (Path: 'navigate/goTo' is invalid): goToResource

Hello @Kamurai
What database do you use?

Hello @Kamurai
What database do you use?

DB2 and SQL Server, but it is irrelevant as my issue occurs before DB selection.

It works fine for me if any SQL Editor is already open in DBeaver.
Do you have opened the SQL Editor tab in DBeaver?

It works fine for me if any SQL Editor is already open in DBeaver.
Do you have opened the SQL Editor tab in DBeaver?

I had not opened a new script beforehand, doing so seems to display it correctly.
Thank you, I'm glad this isn't a problem.

Thanks for the quick response and investigation @Kamurai


force:source:deploy fails with ENOENT -4058

I'm resubmitting this bug, as well as the work around I have implemented in my environment.
Summary
When attempting to deploy certain aura components, the deployment will fail when the component is deployed via right click in VS Code (SFDX:Deploy source to Org) or via command line such as "sfdx force:source:deploy --sourcepath c:...  force-app\main\default\aura\ApplyDiscounts\ApplyDiscounts.cmp --json --loglevel fatal".
When issued in a terminal window, additional messages would display "[Error: ENOENT: no such file or directory, open 'C:....AppData\Local\Temp\sdx_sourceDeploy_1589381165989.zip']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path:
Additional information
sfdx-cli/7.57.1-dbf54fc584 win32-x64 node-v10.15.3
on Windows 10 Pro 1909 build 18363.778 with Ram drives
I have isolated the issue to  mdapiDeployApi.js.  in the function _zip, there is an assumption that when the archiver end event is received that the file storage system has closed the files and that the files are available to be read for deployment.   The archiver end event only signifies that the data is drained.  It appears that the directory entry doesn't exist until the FS close event has been fired.  I have a work around for my environment, since I'm always writing to a FS.  Of course, this is NOT a general purpose solution (if someone else looks at this work around).
const archive = archiver('zip', { zlib: { level: 9 } });
            archive.on('end', () => {
                this.logger.debug(`${archive.pointer()} bytes written to ${outFile} using ${this._getElapsedTime()}ms`);
                output.on('close', () => {resolve(outFile);});
                output.end();
            });

I haven't determined the cause of this FS behavior.  In general, it appears to be an issue with smaller files.

Had the same issue with 7.60.0-e2bb2907cb.  Carried my patch forward and it addressed the issue.

@mdonnalley This is still an issue and I have to carry my patch forward on each release.  Do you think this has been resolved by some other development effort? If so, which release carries the fix?

Is this issue fixed in the latest releases? We are using 7.179 and still facing this issue but intermittent.


Add tommi.space

This PR is:

[x] Adding a new domain
[ ] Updating existing domain size
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (512kb.club site)
[ ] Other not listed

[x] I used the uncompressed size of the site
[x] I have included a link to the Cloudflare report
[x] This site is not an ultra minimal site
[x] The following information is filled identical to the data file

I confirm that I have read the FAQ section, particularly the two red items around minimal pages and inappropriate content and I attest that this site is neither of these things.

[x] Check to confirm

- domain: tommi.space
  url: https://tommi.space/
  size: 366.97
  last_checked: 2024-07-11

Cloudflare Report: https://radar.cloudflare.com/scan/d4a27014-6898-4dd5-8856-4d4707aa3ea3/summary

Thanks!


Question design patterns for regulation

Hello,
For biological regulation terms, we have 3 possible genera:

some terms start with: 'biological process' and 'regulates' some 'x'
other have 'biological regulation' and 'regulates' some 'x'
and others have 'regulation of biological process' 'regulates' some 'x' (for eg GO:1900400)

Is this OK ? Do we want to make all these uniform ? (the ontology documentation gives instructions to do the second option here).
Thanks, Pascale

I thought @cmungall had said we would use whatever is in the design pattern template.

Right - so it's 'biological regulation' and 'regulates' some %s" (https://github.com/geneontology/go-ontology/blob/master/src/design_patterns/regulation.yaml).
Can all terms with a different logical definition be changed ? (we may have another ticket for that somewhere).
Thanks, Pascale

I thought there was already a ticket out there to have that done by script.

Is this current?

$ obo-grep.pl  -r 'intersection_of: GO:0008150' go-edit.obo | obo-grep.pl -r 'intersection_of: regulates ' - | grep -c '^id:'
3294
$ obo-grep.pl  -r 'intersection_of: GO:0065007' go-edit.obo | obo-grep.pl -r 'intersection_of: regulates ' - | grep -c '^id:'
228

still 228 with BR as genus
happy to close this issue as this should all fall out of DP work


[knob] To do

In properties:

have a dropmenu for number mode

maybe also have a dropmenu for logmode

hitting enter should focus 'ok' and not close the window as if you hit the ok button, right? Well, that's how it works in vanilla, but I guess this is ok...

BUGS:

fix jump on click in circular mode, it actually acts now as jump on click and we need to make it not jump for non jump on click mode.

More Ideas

add resize handle
add outline to background arc
force tick value at least init value (a small discrete area)

bind enter to other parameters in properties (checkboxes and dropmenus)
In gui boxes and iemguis I can hit enter and 'ok' takes focus, but here on [knob] I get tcl tk errors

@sebshader and @timothyschoen could you help me figure this out?

The only point where I have 'iemgui' in the code is here in this line
https://github.com/porres/pd-else/blob/master/Source/Extra/knob_dialog.h#L239
and if I rename this to something 'else', like "elsegui", the red button here on my mac gives me an error

so I guess we have some garbage from having copied things from iemguis code, and we can't rename it, but we cannot also have it named like that as it won't find the "::dialog_iemgui::" thing. Right now I have "::knob::" instead, so maybe I need to rename things accordingly. Will try...

so maybe I need to rename things accordingly. Will try...

I renamed
 "    ::pd_bindings::dialog_bindings $id \"iemgui\"\n"
to
"    ::pd_bindings::dialog_bindings $id \"knob\"\n"
but I still get errors

renamed ::knob:: to ::dialog_knob:: and now I get no errors! Damn...
but this is not how things work in GUI BOX properties for instance, as hitting enter brings into focus the 'ok' button, now I just get things closed as the ok button is not just into focus, but as if it was clicked on... not that bad, but weird as I don't understand why.
I also don't understanf how I can rename things in a way that I don't need 'iemgui', will try renaming again.

I think you need to change the "apply_and_rebind_return" proc somehow

I think you need to change the "apply_and_rebind_return" proc somehow
or add an alternative

thanks @sebshader I will take a look later, but this is not a priority right now. I did all the important things but now I'm failing miserably in getting a dropmenu to work in [knob]. I tried adapting the code from else/note and it didn't work. Been trying it for hours, literally, no luck and I can't make any sense of why it doesn't work.
Here we can see and use the dropmenu in [note]

in the [knob] I can't see anything but the label "Mode:", the dropmenu simply doesn't appear at all...

If I can get it to show I can do the rest.
For reference, this is the failed commit https://github.com/porres/pd-else/commit/8ab47d41439d2a72d441a632119c0b232efb45dc
And here's the code that works for [note] https://github.com/porres/pd-else/blob/master/Source/Control/note.c#L1649
Do you think you can help me @sebshader ? You're the most fluent tcl/tk friend I know :) I am also asking the help of @timothyschoen but he's just a genius, not a tcl/tk genius, he can do stuff because of his geniality but has no real expertise

@porres you just needed to have the label as a non-child of the dropdown. For everything else and in your 'note' you're putting them in their own frame, so make the label and dropdown both children of the frame:
"    frame $id.num.shownum\n" "    tk_optionMenu $id.num.shownum.ent ::dialog_elsegui::var_n_mode_sym($vid) Never Always Active Typing\n" "    label $id.num.shownum.lab -text [_ \"Mode: \"]\n" "    pack $id.num.shownum.lab $id.num.shownum.ent -side left\n"

OF COURSE!!! Damn, I feel stupid now :)
Just when I think I'm starting to get the hang of this tcl/tk thing I see I'm still getting terribly confused... but I already made unimaginable progress thanks to @timothyschoen's comments on the code. I just got too happy too soon :) anyway, time for me to focus on this thing and really  nail it and improve and add properties in all my GUI objects.
Thanks man, you really saved me.

yeah, the thing is that this language still intimidates me a lot, I can't keep pushing it without properly reading the documentation, going through some tutorials. I'm here for suggestions if you have @sebshader
Well, for now, I was trying to make it sure that selecting something from the dropdown takes effect right away. Looking at how iemguis work it's just way too different and it's hard for me to try and adapt and I just give up.
// this is from iemguis' steady/jump on click
//        if {$::dialog_iemgui::var_steady($vid) >= 0} {
//            ::dialog_iemgui::popupmenu $mytoplevel.para.stdy_jmp
::dialog_iemgui::var_steady($vid) [list [_ "Jump on click"] [_ "Steady on click"] ]
$applycmd
//            pack $mytoplevel.para.stdy_jmp -side left -expand 1 -ipadx 10
//        }
The $applycmd code is
set applycmd ""
if {$::windowingsystem eq "aqua"} {
    set applycmd "::dialog_iemgui::apply $mytoplevel"
}

We had the same thing in the [knob] code but I've figured it wasn't being called anywhere really. I need to work on that so it gets called just for apple.
The thing is that I don't know how to squeeze in the  '$applycmd' into my current [knob] code, as we have a different approach. I tried just jamming it in there and it didn't work, of course.
The annoying thing about this is that I have something perfectly working right now in [knob] and just needed to call '$applycmd' and I since I just can't make sense of anything, I don't know how to insert this, and if I have to copy the code from iemguis then it's going to be a crazy major overhaul that might just screw everything up.
What I have now with [knob] is acceptable and ready for a release update. But if I can improve things a tad bit in the short run, I'd be glad too. That is, before I take a huge course on tcl/tk which will be something for the mid/long term.
cheers

this was my last changes to the code about dealing with the dropmenu taking effect https://github.com/porres/pd-else/commit/83df2a7bb8c23c856252bf1b7427e80d36b7bf97

I'm just now discovering the convenience of chatGPT for such a thing :)

I can't keep pushing it without properly reading the documentation, going through some tutorials. I'm here for suggestions if you have @sebshader

I'm just now discovering the convenience of chatGPT for such a thing :)

I think I heard claude is supposed to be better for code.
however I wouldn't use AI for anything other than maybe unit tests. Even if it could do everything accurately my own understanding of code wouldn't be improved at all.
plus tcl isn't the most popular language, and the AI has no context of Pd's usage of it

I was testing it outside the context of Pd, asking just to give me a working dropmenu on 'wish'

Damn, Claude NAILED IT!
ChatGPT sucks!!!

ok, trying to adapt this to the knob code failed miserably! And Claude is asking me for money... went back to chat GPT which wasn't of great help again. Anyway, the good hint that Claude gave me was to use "trace add"
this is what made the wish application work in my previous comment, here's the code
#!/usr/bin/wish
Variable to store the selected option
set selectedOption "Option 1"
Create the option menu
tk_optionMenu .dropMenu selectedOption "Option 1" "Option 2" "Option 3"
Trace the variable to detect changes
trace add variable selectedOption write {updateSelection}
Procedure to handle selection changes
proc updateSelection {name element op} {
global selectedOption
puts "Selected: $selectedOption"
}
Pack the option menu
pack .dropMenu
Start the Tk event loop
tkwait window .
The problem is adapting this to Pd. I also see we can just use a simple code isntead of a proc but it runs with errors in Pd, here's the line
https://github.com/porres/pd-else/blob/master/Source/Extra/knob_dialog.h#L387
here's the error

No Artificial Intelligence can figure this out. This is why @sebshader is needed

IN THE END CHAT GPT SAVED THE DAY AND I HAVE THINGS WORKING
but I'm not using tk_optionMenu
// dropmenu

"   menubutton $id.num.show.mb -text $::dialog_knob::var_nmode($vid) -menu $id.num.show.mb.menu\n"
"   menu $id.num.show.mb.menu -tearoff 0\n"
"   $id.num.show.mb configure -menu $id.num.show.mb.menu\n"
// Add radiobuttons using foreach
"   set options { Never Always Active Typing }\n"
"   foreach option $options {\n"
"       $id.num.show.mb.menu add radiobutton -label $option -variable ::dialog_knob::var_nmode($vid) \\n"
"           -value $option -command $applymacos\n"
"   }\n"
this is the more complicated mechanism that iemguis also use!


EditorPlugin.edit is called twice when editing Node (regression in 3.4 and later)

Godot version
3.4 and master 3.4.x
System information
Win10
Issue description
When editing a Node, the editor will call EditorPlugin.edit twice.
Editing Resource will only call once
Steps to reproduce
Create a plugin:
tool # @tool on 4.0
extends EditorPlugin

func handles(object): # _handles on 4.0
    return true

func edit(object): # _edit on 4.0
    print(object, " edited")

Active it and select any node in scene, it will print twice.
Editing Resource (double-click icon.png in FileSystem for example) will only print once.
Minimal reproduction project
No response

Can confirm happens in at least in 3.4.stable and up (including 3.4.4.stable and 3.5.beta5) (tested in Standard, Windows 64 versions).
Works fine with version 3.3.4.Stable and below (including 3.3.stable).
Code that produced it for me:
tool
extends EditorPlugin

func handles(object: Object) -> bool:
    if object is Button: return true
    else: return false

func edit(object: Object) -> void:
    print ("Is Button!")

Using this, if you select a button, it will print "Is Button!" twice if you are using 3.4.stable and up.
For 3.3.4.stable and 3.3.stable: prints only ONCE as it should.
The handles() function (not just the edit() function) seems to run twice anytime an object in the scene tree is selected instead of only once as it should.
For instance, this code (which does not include the edit() function) should print twice as well any time a button is selected once in the scene tree (for 3.4.stable and up):
tool
extends EditorPlugin

func handles(object: Object) -> bool:
	if object is Button:
		print ("Is Button!")
		return true
	else: return false

Could be worth testing 3.4 beta/RC releases to find the first release where the regression was introduced.

Hmm...now I can't reproduce it on 3.5.rc5 or 4.0.alpha11. Seems some commit fixed this.

Closing as fixed then.

issue doesn't fixed, reproduced with v3.5.1.stable.official [6fed1ffa3]
# plugin.gd
tool
extends EditorPlugin

func handles(object: Object) -> bool:
	if object is Button:
	print("Is Button!")
		return true
	else: return false

# button.gd
tool
extends Button

if you instanciate custom button handles() triggers twice
if you click custom button handles() triggers once


How can I debug my android device? App opens but page is blank after splash screen

I tried watching the output console but don't see any error.

Was your app working before ?
Do you have a blank page when doing remote debugging ?
Otherwise for Android, when you want to debug directly the device browser, you may use Firefox 69 on your PC and use the WebIDE debugger in order to see what happens internally.
WebIDE is deprecated on newer version of Firefox and GeckoView but this part is not yet updated. That’s why you may need Firefox 69. See WebIDE documentation for more information.
See this related also: https://github.com/Daddoon/BlazorMobile/issues/194

Also do you have changed something recently in your app ?

Was your app working before ?
Yes
Do you have a blank page when doing remote debugging ?
Haven't done remote debugging yet need to try what you commented on the other post
Otherwise for Android, when you want to debug directly the device browser, you may use Firefox 69 on your PC and use the WebIDE debugger in order to see what happens internally.
WebIDE is deprecated on newer version of Firefox and GeckoView but this part is not yet updated. That’s why you may need Firefox 69. See WebIDE documentation for more information.

Let me give it a try.

See this related also: #194

If your app does not work on your computer even with or without remote debugging available when launching your regular Blazor app, the problem is likely in your Blazor app.
In this case the best is to open your web browser console and see what happen.
Also check that there is no 404 error. Recently I have seen some regression with Visual Studio failing you load Razor Class Library file even if all seems correct.

My app works properly on browser. It just doesn't work on android device. I was unavailable to setup the remote debugging. I not sure if ports aren't configured properly or what else could be.

Ok !
What have you changed recently ?
I don’t see any reason why it wouldn’t work anymore without any change.
If you have a blank page , this mean that things didn’t boot or loaded. Remote debugging not working at this point is not anormal in my opinion.
You should try to see what you changed, if any, and debug through WebIDE and / or use adb logcat in order to see what happen. Check that there is no Xamarin exception too.

Can I send you a demo which reproduces this error?

I’ m on vacation and will be back only in 3 days. I will not be able to take a look before next Wednesday.

ok. I will keep trying to look around if not I will attach it on thursday or friday for you. Enjoy your vacations! =D

Did you have solved your issue ?

I could not resolve.

If you have a repro project I will look when I have some time

Ok let me delete bin stuff and shrink it.

OneLineDemo.zip

Sorry i canno't test your app, something is missing somehow.
There is errors, but mainly, it seems that HttpBaseUsersService class is missing.

Sorry i cannot test your app, something is missing somehow.
There is errors, but mainly, it seems that HttpBaseUsersService class is missing.

Let me revise it.

OneLineDemo.zip

Any news?

I'm not available theses day yet.

Still not available but be sure i will take a look in few days.

Ok, once you help me get this up a running I will give feedback for this https://github.com/Daddoon/BlazorMobile/issues/220#issuecomment-671055377

@Daddoon I am having a demo in 2 weeks can you help me get this up and running? After this I need to contact you to show you and share as a reward for this? It's one interesting tool I talked to you some months ago.

I have done some tests on your project.
In my opinion the error is not even related to BlazorMobile, there is different errors that need to be test and fixed on your side.
I have updated NuGet package versions for Blazor / BlazorMobile
While trying on the Blazor web project my first issue was:
System.MissingMethodException: Method not found: Microsoft.Extensions.Configuration.IConfigurationBuilder Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder.get_Configuration() blazor.webassembly.js:1:38061
  at OneLineDemo.Blazor.Program.Main (System.String[] args) <0x2a6e9d8 + 0x000be> in <filename unknown>:0 blazor.webassembly.js:1:38061
  at Microsoft.AspNetCore.Components.WebAssembly.Hosting.EntrypointInvoker.InvokeEntrypoint (System.String assemblyName, System.String[] args) <0x2a18c80 + 0x0011a> in <filename unknown>:0

By adding some "logs", Console.WriteLine that you will see in Program.cs, i can see that the first exception is in the builder.AddEnvironmentConfiguration call. By reaching the "source" of this reference, it seem that this is an extension you have written yourself, i think something is wrong in it, or maybe it's referencing a different or outdated API version, or maybe you are doing reflections but the method does not exist on what you were expecting, i don't have the code on my eyes (neither want to debug it myself).
By commenting this call, we go further, still have a white page that prevent loading, but by looking on the exception, it seem that an exception is occuring in your BlazorWebStorage plugin, and depending how you have implemented your code, you may have missed how to fallback on a regular page in case of exception ?
There is also BlazorMobile exception occuring because there was no Device connection while starting during my test, but this seem normal in my opinion, as it was expected.
I think you should look at your code on theses 2 primary point.

Just an additional information, keep in mind that BlazorMobile, in it's current version, does clear cache and i think maybe local storage at app startup. This will not be a problem in your desktop browser test, but can be problematic on your Device test, as data will always be empty. This choice was initially by Design (avoiding cache issues or else) and maybe too agressive.

I will not do any modification on BlazorMobile soon on this particular case. I highly recommand you that you create an other service implementation of storage, that go instead on native for writing and reading values and datas.
For more informations about the data clearance implementations for each platform browser, if you want to take a look, search on ClearWebViewData in the source code, but it may be cumbersome and you will have to recompile your own version of the plugin in this case...Or maybe not if you inherit some WebView class's and do the right override, but this is out of scope of all of this.
Here is your project with my tests and changes:
OneLineDemo.zip

Thanks for your valuable time. Did you got this up a running?

No, i mean, there is an exception between a rendering process and your BlazorWebStorage. But i think that if you change some code you should be able to at least see the starting page of your app.

can you share the exception being thrown on BlazorWebStorage?

It seems I need to do some migrations under the hood. There are few things that were not available on older blazor versions and they have implementations I haven't migrated yet.

I got my app up and running partially. Thanks for giving me a starting point to debug this I was going crazy trying to fix this. I had a few of broken api's everywhere and still migrating some of them. Thank you so much. Let me get this up and running with some rigorous test and I will get in touch with you. Thank you again!

Good luck in your fixing ! Keep me updated !


Using custom templates for charts

Hi,
I want to use a custom chart template in your library instead of the default Pie chart template. I was wondering if you could point me to a place in the library where I can manually insert my chart's template. Any help would be appreciated!
I have checked out the chart_style function, but what I need is to load in my own custom template (uses select colors and has custom spacing and such)

There's no API support for chart templates yet.


I got 0% in volatile GPU

I have met a question that my gpu got 0% when i run this code. could anyone give me some advice ? thanks you very much  ～

@liushhAlex Hello, how do you solve your problem? And  my GPU is only 8%.


How do I draw annotations for a simple sentence

I'm trying to use this just to draw annotations on text from an NER tagger.  I have span, offset, and tag for text - which would just be rendered by this tool.  There are multiple tags, (person, location...) and they would all be rendered on the same line.  I believe I would be using your TextAnnotator as opposed to the token annotator as the spans and offsets are for the original text. It's not clear how to use this tool for that.  I think it could be quite useful, but there are not enough examples or documentation.
Could you show how I would use this to render this simple text.
text="Mary lives in Oklahoma and works at Kaiser"
with span and offsets
a=[{start :0 ,end:4, tag : "Person"},{start :15, end:22, tag: "Location"},{start:37,end:42,tag:"Organization"}]
all 3 tags would be rendered in the same sentence (possibly with different colors).  Again, I believe this would be using the TextAnnotator.
Thanks!

Sorry for the delay. In case still relevant, new docs are live. Going to close but eel free to reopen.


Update index.css

I updated the correct padding for the button a/c to the responsiveness.

Thanks 4 this pr.


How should an app change access?

Reading https://github.com/solid/web-access-control-spec, I'm not quite sure what I should do as an app developer in the following situation.
What I want to do: give vincentt default Read and Append access to ./container, given the following existing ACL Rule:
<#some-rule>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>, <https://not-vincentt.inrupt.net/profile/card#me>;
    acl:accessTo <./container/>, <./other-container/>;
    acl:default <./container/>, <.other-container/>;
    <#arbitrary-other-predicate> <#arbitrary-value>;
    acl:mode
        acl:Read.

What I'm currently doing is splitting this up into three separate Rules:
<#some-rule1>
    a acl:Authorization;
    acl:agent
        <https://not-vincentt.inrupt.net/profile/card#me>;
    acl:accessTo <./container/>, <./other-container/>;
    acl:default <./container/>, <./other-container/>;
    <#arbitrary-other-predicate> <#arbitrary-value>;
    acl:mode
        acl:Read.

<#some-rule2>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:accessTo <./container/>, <./other-container/>;
    acl:default <./other-container/>;
    acl:mode
        acl:Read.

<#some-rule3>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:default <./container/>;
    acl:mode
        acl:Read, acl:Append.

So we have:

#some-rule1, which is equal to #some-rule but with the agent vincentt removed.
#some-rule2, which is equal to #some-rule but has vincentt as the only agent, has removed ./container as default, and does not include non-ACL Triples.
#some-rule3, which gives Read and Append access to ./container to vincentt.

This looks like a reasonable solution, but it has the following problem. What if this was the original Rule:
<#some-other-rule>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:default <./container/>;
    acl:mode
        acl:Read.

Applying the same algorithm, that would result in the following three Rules:
<#some-other-rule1>
    a acl:Authorization;
    acl:mode
        acl:Read.

<#some-other-rule2>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:mode
        acl:Read.

<#some-other-rule3>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:default <./container/>;
    acl:mode
        acl:Read, acl:Append.

That means we now have #some-other-rule1 and #some-other-rule2 that do not actually do anything. This will quickly become unwieldy!
One thing we could do is to remove Rules that are empty (i.e. contain no non-ACL Triples, and no acl:mode, or no acl:accessTo or acl:default, or acl:agent, acl:agentGroup or acl:agentClass Predicates). However, that leads us to another problem. What if, in the situation above, we didn't want to give Append access, but instead remove the existing Read access? In other words, that would mean that #some-other-rule3 would be empty as well. Then, if we were to remove all empty Rules, no Rule would remain.
And that, in turn, is problematic because, given the ACL inheritance algorithm, there would be no more acl:default Predicates, leading to the parent's rules suddenly applying.
So the question is: what should an app do to alter existing Access Modes?

There are a few different things going on here.
First, there are some invalid formulations:
<#some-rule3>, <#some-other-rule>, <#some-other-rule1>, <#some-other-rule2> and <#some-other-rule3> are invalid and would be ignored: none has an acl:accessTo predicate. (At least, the server implementation I wrote would ignore these).
Second, the multiple acl:accessTo and acl:default values is strange. In the context of the implementation that I've written, an ACL resource can only be attached to a single regular resource. Inheritance via containment may apply, but I would never expect an ACL resource to have multiple values for those predicates -- the irrelevant one(s) would be ignored. For example, if the ACL resource is applied to <./container/> then the acl:accessTo and acl:default would also be <./container/>. An object value with <./other-container/> is irrelevant.
There are several approaches to handling the use case you point out. One approach might be to keep the original ACL:
<#some-rule>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>, <https://not-vincentt.inrupt.net/profile/card#me>;
    acl:accessTo <./container/>, <./other-container/>;
    acl:default <./container/>, <.other-container/>;
    <#arbitrary-other-predicate> <#arbitrary-value>;
    acl:mode
        acl:Read.

And then add a special "addendum" for the vincentt user:
<#some-rule-for-vincentt>
    a acl:Authorization;
    acl:agent
        <https://vincentt.inrupt.net/profile/card#me>;
    acl:accessTo <./container/>, <./other-container/>;
    acl:default <./container/>, <.other-container/>;
    <#arbitrary-other-predicate> <#arbitrary-value>;
    acl:mode
        acl:Append

The vincentt user already has Read access via <#some-rule>, so the new rule just adds append access. Note, however, that the multiple values for acl:accessTo and acl:default would just be ignored, as would <#arbitrary-other-predicate>.

Thanks @acoburn.

<#some-rule3>, <#some-other-rule>, <#some-other-rule1>, <#some-other-rule2> and <#some-other-rule3> are invalid and would be ignored: none has an acl:accessTo predicate. (At least, the server implementation I wrote would ignore these).

Would your server also ignore rules that do not specify an agent, agent group or agent class (but do have an acl:accessTo or acl:default Predicate), especially when it comes to considering whether an ACL higher up in the tree should apply? Because if so, then I think we can just remove any rules that do not specify either, and then the algorithm described above wouldn't add empty rules.
If not, then we'll assume that no ACL Rule will apply to multiple Resources as well, which means that we'll simply not create <#some-rule2> and <#some-other-rule2>, and then we won't have to clean it up after.

The vincentt user already has Read access via <#some-rule>, so the new rule just adds append access.

Right, but I want to be able to deal with the situation in which the user removed Read access as well, so simply adding another addendum wouldn't allow me to deal with that case.

Ah, I just saw your reference to this comment in another issue: https://github.com/solid/specification/issues/55#issuecomment-536092174
So that would mean that removing empty rules would not lead to ACLs higher up in the tree getting applied, so we should be safe here with either approach described in my previous comment. Thanks!

When a contained resource is deleted, the server MUST also delete the associated ACL.
Multiple accessTos would mean that an ACL's lifecycle can depend on multiple resources - especially in the case of directly associated ACLs ie. if one resource gets deleted, the other resources will lose their ACL.
That may not be an immediate issue when an inherited ACL is applied (and doesn't get deleted), but would still have a reference to the deleted resource from an accessTo, unless the server is instructed to cleanup for inherited ACLs.
I think it'd be simpler to create and update policies if only one resource is attached to an accessTo.


Files not being created

Issue
For some reason Aider seems to have stopped creating new files for me. It suggests edits for those files but since those have not been created yet, nothing happens.
...
Would you like me to create/modify any of these files specifically? Let me know which ones you want me to focus on first.

Tokens: 19k sent, 1.5k received. Cost: $0.08 message, $0.50 session.
Edit the files? (Y)es/(N)o [Yes]:
I'll help create these files using SEARCH/REPLACE blocks. Let's start with the first three files:

entrypoints/popup/index.html

 <<<<<<< SEARCH
 =======
 <!DOCTYPE html>

     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>WordAI Extension</title>

 >>>>>>> REPLACE

entrypoints/popup/index.tsx

 <<<<<<< SEARCH
 =======
 import ReactDOM from "react-dom/client";
 import App from "./App";
 import { AuthProvider } from "~/contexts/AuthContext";

 const root = ReactDOM.createRoot(document.getElementById("app")!);
 root.render(
   <AuthProvider>
     <App />
   </AuthProvider>
 );
 >>>>>>> REPLACE

entrypoints/popup/App.tsx

 <<<<<<< SEARCH
 =======
 import { useAuth } from "~/contexts/AuthContext";

 const App = () => {
   const { isAuthenticated, isLoading, user, logout } = useAuth();

   const handleLogin = () => {
     const authUrl = 'https://cockatoo-polished-jay.ngrok-free.app/login';
     chrome.tabs.create({ url: authUrl });
   };

   const handleSignup = () => {
     const signupUrl = 'https://cockatoo-polished-jay.ngrok-free.app/signup';
     chrome.tabs.create({ url: signupUrl });
   };

   if (isLoading) {
     return
Loading...
;
   }

   return (

       {isAuthenticated ? (

Welcome, {user?.username}!

           <button
             onClick={logout}
             className="w-full bg-red-500 text-white px-4 py-2 rounded hover:bg-red-600"
           >
             Logout
           </button>

       ) : (

           <button
             onClick={handleLogin}
             className="w-full bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600"
           >
             Login
           </button>
           <button
             onClick={handleSignup}
             className="w-full bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600"
           >
             Sign Up
           </button>

       )}

   );
 };

 export default App;
 >>>>>>> REPLACE

Let me know if you'd like me to continue with the remaining files!

Tokens: 15k sent, 568 received. Cost: $0.05 message, $0.55 session.
Applied edit to api-client/models/index.ts
Commit 574ea10 feat: create popup page files
You can use /undo to undo and discard each aider commit.

Version and model info
Aider v0.62.0
Main model: claude-3-5-sonnet-20241022 with architect edit format, infinite output
Editor model: claude-3-5-sonnet-20241022 with editor-diff edit format
Weak model: claude-3-haiku-20240307
Git repo: .git with 106 files
Repo-map: using 4096 tokens, auto refresh

Thanks for trying aider and filing this issue.
This should be fixed in the latest version v0.62.1. You can get it like this:
aider --upgrade

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed aider-chat

If you have a chance to try it, let me know if it works better for you.

Thanks for trying aider and filing this issue.
This should be fixed in the latest version v0.62.1. You can get it like this:
aider --upgrade

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed aider-chat

If you have a chance to try it, let me know if it works better for you.

Wow, amazing! It works.


prepend base_url if needed

Adding base_url if one is not included in url for visible links.

Code review for 8b6cab5 is complete.

@Chekote Code review change has been made.

Testing code review for 8e9eefb is complete.

@Chekote code review changes have been made.  Also, change to regular expression to account for subdomains other than www and items without dots like localhost for example.

Testing code review for d018f7f is complete.

@Chekote Change has been made.

14f8fab 👍