DTS: fixed-partition: properties for describe read/write access level

Is your feature request related to a problem? Please describe.
Currently a fixed-partition node might declare the read-only property. This is enough if we come to a immutable partitions, like a bootloader or fixed application.
It is easy to find a case where appropriate is that a partition should be simultaneously read-only or writable, or inaccessible  depends on which a software actor attempts to access it. For instance if there is the bootloader and application in the device, then running application resides in its own app-partition. The app-partition is read-write for the bootloader and is at last read-only for the application itself (very likely even inaccessible).
Describe the solution you'd like
Need to define proper access level designation. Worth to consider at last access permission suitable for:
secure-element, immutable-bootloader, mutable-bootloader, secure-application, application, thrd-party application
It seams to describe read and write access separately.
Additional context
this ticket was created as my conclusion to #30587
I want to emphasize that this ticket is for make consideration on DTS, not for a C API thread or a protection mechanism implementation thread.

cc @SebastianBoe @de-nordic @Laczen

@nvlsianpu, I had included the read-only property in my proposal to improve working with flash partitions last summer. At that time it was found unreasonable to include this property and to disallow any writing to a flash partition that had the read-only property. At the time I had made all the requested changes to the PR. Including it now would seem unreasonable as well.
Extending it to disallowing read access means that the flash driver would need to change and take into account "partitions" as well. If this gets into the flash driver it would be better to define memory regions with their properties and to remove partitioning completely.
The app partition should be writable for the app, e.g. for image confirmation. And should also be readable if it needs to report it's version.


Adm-improve-#56

This PR improves #56. I realised it made no sense to conditionally load CUDA and add it as a dependency.

will this cause issues if you run on AMD machines?

You are right didn't think about it. I added a isGPU() check instead, that disables printing if either CUDA or AMDGPU is loaded.


use -host=loongarch64 compiler ok，when using libglog.a an undefined reference  error

[  0%] Linking CXX executable ../../../build/release/proto-bin/protoc-gen-insertions
/usr/bin/ld: ../../../thirdparty/glog-0.3.5.M.20181214/.libs/libglog.a(libglog_la-utilities.o): in function `.L70':
utilities.cc:(.text+0xa24): undefined reference to `_Uloongarch_getcontext'
/usr/bin/ld: utilities.cc:(.text+0xa40): undefined reference to `_ULloongarch_init_local'
/usr/bin/ld: ../../../thirdparty/glog-0.3.5.M.20181214/.libs/libglog.a(libglog_la-utilities.o): in function `.L78':
utilities.cc:(.text+0xae0): undefined reference to `_ULloongarch_get_reg'
/usr/bin/ld: ../../../thirdparty/glog-0.3.5.M.20181214/.libs/libglog.a(libglog_la-utilities.o): in function `.L76':
utilities.cc:(.text+0xb70): undefined reference to `_ULloongarch_step'
collect2: error: ld returned 1 exit status

According to your log, you seem to be using glog 0.3.5 which is over 6 years old. This release is no longer supported.
I suggest updating to version 0.6.0 before we can continue investigating. Please also provide the full CMake log.

According to your log, you seem to be using glog 0.3.5 which is over 6 years old. This release is no longer supported.
I suggest updating to version 0.6.0 before we can continue investigating. Please also provide the full CMake log.

Thank you very much for your response. I have used version 0.6.0 , but it had the same error. I want to know if the glog 0.6.0 support loongarch,  it seams no _ULloongarch_get_reg interface. This is the cmake command, and the compilation is successful. "CXX="${GCC_PATH}/bin/g++" LDFLAGS="-L$XCLOUD_HOME/thirdparty/boost-1.68.0/lib" CPPFLAGS="-I/thirdparty/boost-1.68.0/include/" LIBS="-lboost_system" ./configure --with-pic --with-gflags=${GFLAGS_INSTALL} CXXFLAGS="-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1" --host=loongarch64"

Please provide the full logs both for CMake configuration step and the compilation. Without this information it is not possible to determine why the issue occurs.

This is the cmake command, and the compilation is successful.
CXX="${GCC_PATH}/bin/g++" LDFLAGS="-L$XCLOUD_HOME/thirdparty/boost-1.68.0/lib" CPPFLAGS="-I/thirdparty/boost-1.68.0/include/" LIBS="-lboost_system" ./configure --with-pic --with-gflags=${GFLAGS_INSTALL} CXXFLAGS="-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1" --host=loongarch64`

This is not a CMake command-line but rather the command-line for unsupported autoconf builds.

@sergiud
build_glog.log
echo "build glog..."
cd $/XXX_HOME/thirdparty/glog-${XCLOUD_GLOG_VERSION}
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${/XXX_HOME}/thirdparty/boost-1.68.0/lib"
LDFLAGS=
CPPFLAGS=
LIBS=
CXXFLAGS=
if [ "${ESB}" = "loong" ]; then
GLOGVERSION=0.3.5
GFLAGS_INSTALL=//XXX_HOME/thirdparty/gflags-2.2.1/third-party-install
if ["${GLOGVERSION}" = "0.3.5"]; then
CXX="${GCC_PATH}/bin/g++" LDFLAGS="-L$/XXX_HOME/thirdparty/boost-1.68.0/lib" CPPFLAGS="-I$/XXX_HOME/thirdparty/boost-1.68.0/include/" LIBS="-lboost_system" ./configure --with-pic --with-gflags=${GFLAGS_INSTALL} CXXFLAGS="-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1" --build=loongarch64-kylin-linux-gnu --host=loongarch64
else
cmake
-DCMAKE_CXX_COMPILER="${GCC_PATH}/bin/g++"
-DCMAKE_EXE_LINKER_FLAGS="-L$/XXX_HOME/thirdparty/boost-1.68.0/lib"
-DCMAKE_CXX_FLAGS="-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1 -I$/XXX_HOME/thirdparty/boost-1.68.0/include/"
-DBoost_SYSTEM_LIBRARY="-lboost_system"
-DCMAKE_INSTALL_PREFIX=${GFLAGS_INSTALL}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DHOST_ARCH=loongarch64
-DBUILD_ARCH=loongarch64-kylin-linux-gnu
-S .
fi
SLES's gcc45-c++ is required for sse2 support (default is 4.3), but crashes
when building logging_unittest-logging_unittest.o. Telling it to uses the
stabs format for debugging symbols instead of dwarf exercises a different
code path to work around this issue.
cat > Makefile.gcc45sles_workaround <<EOF
logging_unittest-logging_unittest.o : CXXFLAGS= -gstabs -O2
EOF
cat Makefile >> Makefile.gcc45sles_workaround
mv Makefile.gcc45sles_workaround Makefile
make -j${CPU}
echo "build glog done"

Your glog is using autoconf which is no longer supported as previously explained. You need to use the latest glog version and build either using CMake or Bazel.

Your glog is using autoconf which is no longer supported as previously explained. You need to use the latest glog version and build either using CMake or Bazel.

i use following command, version 0.6.0, and obtained libglogtest.a .
cmake
-DCMAKE_CXX_COMPILER="${GCC_PATH}/bin/g++"
-DCMAKE_EXE_LINKER_FLAGS="-L$XXX_HOME/thirdparty/boost-1.68.0/lib"
-DCMAKE_CXX_FLAGS="-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1 -I$XXX_HOME/thirdparty/boost-1.68.0/include/"
-DBoost_SYSTEM_LIBRARY="-lboost_system"
-DCMAKE_PREFIX_PATH=${GFLAGS_INSTALL}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DHOST_ARCH=loongarch64
-DBUILD_ARCH=loongarch64-kylin-linux-gnu
-DBUILD_SHARED_LIBS=ON
.
when i use  nm libglogtest.a | grep _Uloongarch_getcontext , got                  U _Uloongarch_getcontext

Unfortunately, I don't see how that command-line can be used to compile glog. Some of the options such HOST_ARCH and BUILD_ARCH are unknown to glog. Also Boost is not a dependency of glog.
If you want to cross-compile glog using CMake you can use a CMake toolchain file. Once you've created one please configure glog using CMake and the toolchain file without specifying any additional options. Please attach the output both for

the CMake configuration and
the build step.

libglogtest.a is internal artifact you should not be using.

I have resolved the issue. The reason was that the system had an incompatible version of the libunwind library. After uninstalling this library, it worked fine.


Ability to use both syntax styles in same rule

Why this feature is required (specific use-cases will be appreciated)?
I'm attempting to use multiple Validators (required, unique) in congruence with a custom RegEx expression, like so:
const rules = {
      mac_address:[ 'required', 'unique:units,mac_address', rule('regex', new RegExp('^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$'))],
    }

However, in the above rules only the RegEx is actually validated. The others don't work unless I remove the RegEx rule.
Have you tried any other work arounds?
I've poked around a little bit with the above, but was unable to come up with a solution on my own. I've created a question on the Forum in Help>Validator here.
Someone on the Discord suggested creating extending Validator. This worked, but what I was originally attempting still seems favorable.
I spent more time looking around on the Forum for similar questions, but I wasn't able to find anything, though it could have been my search terms.
Are you willing to work on it with little guidance?
I could try, but my confidence level is not high in regards to myself working on this alone.

Not valid with the newer API targeting the framework v5.


⚠ Bofrost.be has degraded performance

In 1dd36ba, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 830 ms

Resolved: Bofrost.be performance has improved in bf03d62 after 6 minutes.


blood pressure plot includes both systolic and diastolic : should be separated

@twoolf we were following Health app experience in building metric's charts. They have Blood Pressure being displayed with both Systolic and Diastolic. As I understand those values are always examined together. Are those values reasonable when separated?

@twoolf , sorry, just mentioned that this is an old issue


LayerScale and pre-trained models

Hi, your notebook is very good. All the steps are correct. This output is just a warning, not an error. This warning is due to the use of LayerScale in our model, which was not included in the original DeiT pre-trained weights. The output of image_demo.py is saved as a file in demo/. You can check if this file is generated.

LayerScale is usually not used in MAE pre-trained VITs (e.g., for classification, ImageNet). Can you still use such pre-trained weights (ignoring the warning) or are LayerScale learned parameters influencing other learned features? Basically, can you use pre-trained weights from ViTs pre-pre-trained models with LayerScale = False and then use them to fine-tune on the ViT-Adapter which has LayerScale=True
The issue is partially related to #34.

Looks like you are using DeiT weights for the pre-trained model that was NOT trained with LayerScale (config file). You then fine-tune ViT using the ViT-Adapter which initializes ViT with LayerScale layers. LayerScale layers are by default initialized to close to 0 (original LayerScale paper). The pre-trained features are then scaled with LayerScale, which effectively pushes them (close) to 0 if the LayerScale weights are not optimized to 1 quickly (identity).
I think that pre-trained should be trained with LayerScale in order to be transferable to ViT-Adapter, which has LayerScale=True by default, which is not the case in TIMM or Torch.
@czczup can you elaborate on that?

I'm really sorry for the late reply.
Regarding your question, my answer is: You can use the pre-trained weights from the ViT pre-trained model (LayerScale = False) and then fine-tune them on a ViT adapter with LayerScale=True. You just need to set the initial value of LayerScale to 1.
Before starting the training of the model (LayerScale=True, init_value=1.0), the inference results will be equivalent to those with LayerScale = False.

I just checked the code, for instance, the ViT code in the detection package, like this. When using layer scale, I hard-coded the initial value to be 1.0. Thus the warnings about the failure to load these weights can be ignored.

It's important to note that in the ViTAdapter class, there is an 'init_values' parameter with a default value of 0. This is used to control the injector module of the adapter, not the layer scale of the ViT itself.

Thanks a lot @czczup  I think that this clarifies everything!


PgDown/PgUp does not work on WorkItemList on initial load

Steps to reproduce

Go to http://demo.almighty.io/work-item-list
Press 'Page Down'

Expected
WorkItemList to scroll down
Actual
Nothing happens
Possible solution
The WorkItemList component should have focus on initial load. That would allow keyboard events to work like normal. When a WorkItemDetail is open, the focus should shift to the Detail slide and allow PageDown to scroll the content of the details. When slide is closed, the focus should be back on the WorkItemList.

Sounds like a solution to me. Even if I can't find page up and down on the
Mac!
On Sun, Dec 4, 2016 at 9:42 AM, Aslak Knutsen<EMAIL_ADDRESS>wrote:

Steps to reproduce

Go to http://demo.almighty.io/work-item-list
Press 'Page Down'

Expected
WorkItemList to scroll down
Actual
Nothing happens
Possible solution
The WorkItemList component should have focus on initial load. That would
allow keyboard events to work like normal. When a WorkItemDetail is open,
the focus should shift to the Detail slide and allow PageDown to scroll the
content of the details. When slide is closed, the focus should be back on
the WorkItemList.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/almighty/almighty-ui/issues/421, or mute the thread
https://github.com/notifications/unsubscribe-auth/ARTwqyuiNmLLqtMmmOxq8MYlDRW5jztQks5rEtFCgaJpZM4LDmaA
.


Fix dark mode appearence provided by tailwindcss-typography

First of all, thanks to create astro-ink! I'm happy to build my blog site based on this style :)
While converting my blog site into astro-ink based site, I noticed code block doesn't look pretty on dark mode.
After digging in, I found that we need to use prose dark:prose-invert instead of prose dark:prose-dark to properly support dark theme according to official documentation of tailwindcss-typography.
I have my blog page set up with this modification, and looks like it's working. (code block have darker backgrond, inline-code block also have dedicated style, etc)

I also believe that this will fix #55 too.

Hey @Cj-bc Thanks for the PR. Glad that you're finding this theme useful, and apologies for making your PR wait this much.


Options settings ingnored

It seems that changing the options settings is ignored.
From my .zshrc
...
export ZSH_POETRY_AUTO_DEACTIVATE=0
export ZSH_POETRY_AUTO_ACTIVATE=0

# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Some plugins have to have a certain order (historu-substring-search after zsh-syntax-highlighting)

plugins=(
  autoupdate
  git
  pyenv
  poetry
  vi-mode
  zsh-autosuggestions
  zsh-completions
  zsh-nvm
  zsh-poetry
  zsh-syntax-highlighting
  history-substring-search
)
...

The venv gets still automatically activated and deactivate.

I think this is the case because the code uses the -n flag in the if statements, which checks if the length of the string is non zero. This is the case for both ZSH_POETRY_AUTO_ACTIVATE=1 and ZSH_POETRY_AUTO_ACTIVATE=0. The expected behaviour is when these if statements are replaced with [[ $ZSH_POETRY_AUTO_DEACTIVATE  -eq 1]] and equivalent for the ZSH_POETRY_AUTO_ACTIVATE .


BasicBubSub failing with code -1

Dear liuszeng,
I have installen AWS ioT SDK Version 2.2.0 on Arduino Yun as per instructions without any errors during the installation. I successfully uploaded example BasicPubSub, and it  can successfully register, and  then subscribe to "topic1" - no errors. After, it publishes the first message, it results in error -41, and the next message in error -1, as per below:
_AWS IoT SDK Version(dev) 2.2.0-
Publish failed!
-41
loop 0 done
Publish failed!
-1
loop 1 done
Publish failed!
-1
loop 2 done_
After that didn't work, I successfully  upgraded AWSIoTPythonSDK to the latest version 1.2.0:
# pip install AWSIoTPythonSDK==1.2.0
I have uploaded BasicPubSub sketch again, and this time it couldn't even pass the setup:
_AWS IoT SDK Version(dev) 2.2.0-
Setup failed!
-1_
Could you please provide some guidance on how to solve this?
Regards,
Dennis

Explanation for issue #58 has solved non-working sketch problem.


New CI Workflow for releases

:tada: This PR is included in version 0.0.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Prevent Sliding while scrolling vertically on a touch device

Hi, the title says it all, can anyone fix this? Thanks in advance.

i cloned repo and changed lightslider.js


Slight issue on Kali Linux 2018

when I run:
...@kali:~/Downloads/trackerjacker-master$ pip3 install trackerjacker
Collecting trackerjacker
Using cached https://files.pythonhosted.org/packages/b0/a9/70c7ec302ddb2928a982954cc49fa0c42b5ff833e23cd3eb4dfc371e41b0/trackerjacker-1.7.4.tar.gz
Collecting pyaml>=17.12.1 (from trackerjacker)
Using cached https://files.pythonhosted.org/packages/17/c1/5892f756109e54ed53c753129b0da4acf6b6add8dff5a85b18667553b16d/pyaml-17.12.1-py2.py3-none-any.whl
Collecting ruamel.yaml>=0.15.35 (from trackerjacker)
Using cached https://files.pythonhosted.org/packages/98/cc/ba3b6ccd0a4f6c51d128742fc5f0f43ae570d67174342578591c50f30013/ruamel.yaml-0.15.37-cp36-cp36m-manylinux1_x86_64.whl
Collecting scapy-python3>=0.21 (from trackerjacker)
Collecting PyYAML (from pyaml>=17.12.1->trackerjacker)
Building wheels for collected packages: trackerjacker
Running setup.py bdist_wheel for trackerjacker ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-a181dxe4/trackerjacker/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp683nwiyppip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/trackerjacker
copying trackerjacker/init.py -> build/lib/trackerjacker
copying trackerjacker/dot11_mapper.py -> build/lib/trackerjacker
copying trackerjacker/macos_device_management.py -> build/lib/trackerjacker
copying trackerjacker/main.py -> build/lib/trackerjacker
copying trackerjacker/config_management.py -> build/lib/trackerjacker
copying trackerjacker/dot11_tracker.py -> build/lib/trackerjacker
copying trackerjacker/ieee_mac_vendor_db.py -> build/lib/trackerjacker
copying trackerjacker/plugin_parser.py -> build/lib/trackerjacker
copying trackerjacker/common.py -> build/lib/trackerjacker
copying trackerjacker/version.py -> build/lib/trackerjacker
copying trackerjacker/device_management.py -> build/lib/trackerjacker
copying trackerjacker/dot11_frame.py -> build/lib/trackerjacker
running egg_info
writing trackerjacker.egg-info/PKG-INFO
writing dependency_links to trackerjacker.egg-info/dependency_links.txt
writing entry points to trackerjacker.egg-info/entry_points.txt
writing requirements to trackerjacker.egg-info/requires.txt
writing top-level names to trackerjacker.egg-info/top_level.txt
reading manifest file 'trackerjacker.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'trackerjacker.egg-info/SOURCES.txt'
copying trackerjacker/oui.txt -> build/lib/trackerjacker
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/init.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/dot11_mapper.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/macos_device_management.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/main.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/config_management.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/dot11_tracker.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/ieee_mac_vendor_db.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/plugin_parser.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/common.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/version.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/device_management.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/dot11_frame.py -> build/bdist.linux-x86_64/wheel/trackerjacker
copying build/lib/trackerjacker/oui.txt -> build/bdist.linux-x86_64/wheel/trackerjacker
running install_egg_info
Copying trackerjacker.egg-info to build/bdist.linux-x86_64/wheel/trackerjacker-1.7.4.egg-info
running install_scripts
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-a181dxe4/trackerjacker/setup.py", line 53, in
'Operating System :: POSIX :: Linux'
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 257, in run
self.distinfo_dir)
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 427, in egg2dist
distribution=self.distribution)
File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 177, in pkginfo_to_dict
new_requirements = sorted(convert_requirements(requirements))
File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 234, in convert_requirements
parsed_requirement = pkg_resources.Requirement.parse(req)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2988, in parse
req, = parse_requirements(s)
ValueError: not enough values to unpack (expected 1, got 0)

Failed building wheel for trackerjacker
Running setup.py clean for trackerjacker
Failed to build trackerjacker
Installing collected packages: PyYAML, pyaml, ruamel.yaml, scapy-python3, trackerjacker
Running setup.py install for trackerjacker ... done
Successfully installed PyYAML-3.12 pyaml-17.12.1 ruamel.yaml-0.15.37 scapy-python3-0.23 trackerjacker-1.7.4
....@kali:~/Downloads/trackerjacker-master$
Is that expected output ? Also would it be possible to add email alert for a specified device mac ?
Seems like a useful project!
Thanks in advance.

Hey @rafaleon69, thanks for reporting this. Very strange error, I'll have to look into it later. It looks like trackerjacker was still successfully installed though (based on that log)?
As for email output, you could use something like IFTTT to accomplish that (if Webhook, then email). With the IFTTT Webhook "service", you can just curl the url they specify to trigger something, which you could easily do from a script that you have trackerjacker call on matches with the --trigger-command or --trigger-plugin switches.

Thanks for a quick reply, I managed to get it installed by cloning the github repo and instaling using sudo python3 setup.py install. Seems to be working fine this way, although previous way returned errors as described yet still it ran, but i prefer to have no errors in my installation. Thanks for an advice, time to tinker, thanks a lot!

One more thing if I may contribute. When I run it on a RPi Kali linux it does not work with any of the wireless cards I tried:
root@RPiKali:~# trackerjacker -i wlan2
Map output file: wifi_map.yaml
Monitoring all available channels on wlan2: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 38, 40, 42, 44, 46, 48, 52, 56, 58, 60, 62, 64, 149, 153, 157, 161, 165]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 235, in getattr
fld, v = self.getfield_and_val(attr)
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 235, in getattr
fld, v = self.getfield_and_val(attr)
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 235, in getattr
fld, v = self.getfield_and_val(attr)
TypeError: 'NoneType' object is not iterable
and so on for a couple of lines and then at the end:
Traceback (most recent call last):
File "/usr/local/bin/trackerjacker", line 11, in
load_entry_point('trackerjacker==1.7.4', 'console_scripts', 'trackerjacker')()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg/trackerjacker/main.py", line 277, in main
tj.start()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg/trackerjacker/main.py", line 202, in start
scapy.sniff(iface=self.iface_manager.iface, prn=self.process_packet, store=0)
File "/usr/local/lib/python3.6/dist-packages/scapy/sendrecv.py", line 780, in sniff
r = prn(p)
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg/trackerjacker/main.py", line 145, in process_packet
frame = dot11_frame.Dot11Frame(pkt, int(self.iface_manager.current_channel), iface=self.iface_manager.iface)
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg/trackerjacker/dot11_frame.py", line 61, in init
self.signal_strength = frame[scapy.RadioTap].dbm_antsignal
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 237, in getattr
return self.payload.getattr(attr)
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 237, in getattr
return self.payload.getattr(attr)
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 237, in getattr
return self.payload.getattr(attr)
[Previous line repeated 14 more times]
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 235, in getattr
fld, v = self.getfield_and_val(attr)
File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 1291, in getfield_and_val
raise AttributeError(attr)
AttributeError: dbm_antsignal
However on my laptop running same distro Kali Linux it runs fine for few minutes and crashes with:
Disabling monitor mode for interface: wlan1
Traceback (most recent call last):
File "/usr/local/bin/trackerjacker", line 11, in
load_entry_point('trackerjacker==1.7.4', 'console_scripts', 'trackerjacker')()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker/main.py", line 277, in main
tj.start()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker/main.py", line 202, in start
scapy.sniff(iface=self.iface_manager.iface, prn=self.process_packet, store=0)
File "/usr/local/lib/python3.6/dist-packages/scapy/sendrecv.py", line 594, in sniff
p = s.recv(MTU)
File "/usr/local/lib/python3.6/dist-packages/scapy/arch/linux.py", line 503, in recv
pkt, sa_ll = self.ins.recvfrom(x)
OSError: [Errno 100] Network is down

There were no error with the installation script:
root@RPiKali:~/trackerjacker# python3 setup.py install
running install
running bdist_egg
running egg_info
writing trackerjacker.egg-info/PKG-INFO
writing dependency_links to trackerjacker.egg-info/dependency_links.txt
writing entry points to trackerjacker.egg-info/entry_points.txt
writing requirements to trackerjacker.egg-info/requires.txt
writing top-level names to trackerjacker.egg-info/top_level.txt
reading manifest file 'trackerjacker.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'trackerjacker.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
copying trackerjacker/device_management.py -> build/lib/trackerjacker
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/dot11_tracker.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/config_management.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/version.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/main.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/init.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/oui.txt -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/plugin_parser.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/dot11_mapper.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/dot11_frame.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/ieee_mac_vendor_db.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/common.py -> build/bdist.linux-armv7l/egg/trackerjacker
copying build/lib/trackerjacker/device_management.py -> build/bdist.linux-armv7l/egg/trackerjacker
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/dot11_tracker.py to dot11_tracker.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/config_management.py to config_management.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/version.py to version.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/main.py to main.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/init.py to init.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/plugin_parser.py to plugin_parser.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/dot11_mapper.py to dot11_mapper.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/dot11_frame.py to dot11_frame.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/ieee_mac_vendor_db.py to ieee_mac_vendor_db.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/common.py to common.cpython-36.pyc
byte-compiling build/bdist.linux-armv7l/egg/trackerjacker/device_management.py to device_management.cpython-36.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying trackerjacker.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
trackerjacker.pycache.config_management.cpython-36: module references file
trackerjacker.pycache.ieee_mac_vendor_db.cpython-36: module references file
creating 'dist/trackerjacker-1.7.4-py3.6.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing trackerjacker-1.7.4-py3.6.egg
creating /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg
Extracting trackerjacker-1.7.4-py3.6.egg to /usr/local/lib/python3.6/dist-packages
Adding trackerjacker 1.7.4 to easy-install.pth file
Installing trackerjacker script to /usr/local/bin
Installed /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.4-py3.6.egg
Processing dependencies for trackerjacker==1.7.4
Searching for scapy-python3==0.23
Best match: scapy-python3 0.23
Processing scapy_python3-0.23-py3.6.egg
scapy-python3 0.23 is already the active version in easy-install.pth
Installing UTscapy script to /usr/local/bin
Installing scapy script to /usr/local/bin
Using /usr/local/lib/python3.6/dist-packages/scapy_python3-0.23-py3.6.egg
Searching for ruamel.yaml==0.15.37
Best match: ruamel.yaml 0.15.37
Processing ruamel.yaml-0.15.37-py3.6-linux-armv7l.egg
ruamel.yaml 0.15.37 is already the active version in easy-install.pth
Using /usr/local/lib/python3.6/dist-packages/ruamel.yaml-0.15.37-py3.6-linux-armv7l.egg
Searching for pyaml==17.12.1
Best match: pyaml 17.12.1
Processing pyaml-17.12.1-py3.6.egg
pyaml 17.12.1 is already the active version in easy-install.pth
Using /usr/local/lib/python3.6/dist-packages/pyaml-17.12.1-py3.6.egg
Searching for PyYAML==3.12
Best match: PyYAML 3.12
Adding PyYAML 3.12 to easy-install.pth file
Using /usr/lib/python3/dist-packages
Finished processing dependencies for trackerjacker==1.7.4

That was the one! I run it on my laptop and managed to get it installed on RPi without any hiccups , thank you. Fascinating project I was looking for a long time for something like this. Question though, as I am reading the help of trackerjacker if I am not mistaken, it can monitor devices connected to an AP by using a prefix -a, am I right ? I figured I needed to lock the channel to monitor it, otherwise it would scan all. My AP is on channel 5 in this case.
So when I run:  trackerjacker -i wlan0 --channels-to-monitor 5 -a xx:xx:xx:xx:xx:xx
It shows mac devices, but they are foreign ones from other AP's and just few from my own network. It seems like  -a command is not recognized or have I done something wrong?. I used netdiscover and my router config to compare them. Can it discover devices like Kismet can and display them during scan ? I have looked through wifi_map.yaml and tracker got them spot on! Not a big issue for what I am trying to do but just a observation.

@rafaleon69 Sweet. Filtering by AP is still kind of in the works for mapping. The -a flag (along with the -m flag) is mostly for tracking, so you can give it a list of APs to track and, when seen, trigger some action.

I see ,I still have a lot to explore if its potential. Some foo for though, I am trying to build WiFi surveillance system on my RPi and one of the projects I used was WUDS that looks at probes that devices send and tries to determine who is in range. Perhaps an extension like this would be useful in trackerjacker ?

This kind of thing should really work well with trackerjacker's plugin system (e.g. https://github.com/calebmadrigal/trackerjacker/blob/master/plugin_examples/plugin_example1.py)

Hey, I hate to come back to you like that but when I try to load a plugin feature, even built in one I get:
Traceback (most recent call last):
File "/usr/local/bin/trackerjacker", line 11, in
load_entry_point('trackerjacker==1.7.6', 'console_scripts', 'trackerjacker')()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/main.py", line 272, in main
config = config_management.build_config(argparse_args)
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/config_management.py", line 241, in build_config
parsed_trigger_plugin = plugin_parser.parse_trigger_plugin(trigger_plugin_path, config['plugin_config'])
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/plugin_parser.py", line 36, in parse_trigger_plugin
with open(trigger_path, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'foxhunt'
Any other suggestion ?
All the best.

No worries, any feedback is helpful. Can you give the command you're running?
Builtin plugins (currently just foxhunt) should be run without specifying the .py like this: trackerjacker -i wlan1337 --track --trigger-plugin foxhunt, while any other plugins should simply specify the path to the plugin (e.g. trackerjacker -i wlan1337 --track --trigger-plugin plugin_examples/plugin_example1.py).

i run it like that:
@kali:~$ sudo trackerjacker -i wlan1 --track --trigger-plugin foxhunt
Traceback (most recent call last):
File "/usr/local/bin/trackerjacker", line 11, in
load_entry_point('trackerjacker==1.7.6', 'console_scripts', 'trackerjacker')()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/main.py", line 272, in main
config = config_management.build_config(argparse_args)
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/config_management.py", line 241, in build_config
parsed_trigger_plugin = plugin_parser.parse_trigger_plugin(trigger_plugin_path, config['plugin_config'])
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/plugin_parser.py", line 36, in parse_trigger_plugin
with open(trigger_path, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'foxhunt'

is it because I installed it through sudo python3 setup.py install maybe? And yes I have noticed you have released 1.7.6, i got this one. I also tried with the specified path by:
kali:~/Downloads/trackerjacker-1.7.6$ sudo trackerjacker -i wlan1 --track --trigger-plugin /home/rafaleon/Downloads/trackerjacker-1.7.6/foxhunt.py (thats were I put a plgin for convenience)
It seems to run for a sec, black screen appears for a sec and comes back crashing.

I dont have to be in the trackjacker dir to get it running. It runs from anywhere.
rafaleon@kali:~/Downloads$ ls
'comptia-pentest-exam-objectives-(2-0).pdf'
'O'''Reilly Network Security Assessment (2nd Edition).pdf'
teamviewer_13.1.3026_amd64.deb
trackerjacker-1.7.6
trackerjacker-1.7.6.tar.gz
trackerjacker-master
trackerjacker-master.zip
rafaleon@kali:~/Downloads$ trackjacker -h
bash: trackjacker: command not found
rafaleon@kali:~/Downloads$ trackerjacker -h
trackerjacker requires r00t!
rafaleon@kali:~/Downloads$ sudo trackerjacker -h
[sudo] password for rafaleon:
usage: trackerjacker [-h] [--map] [--track] [--monitor-mode-on]
[--monitor-mode-off] [--set-channel CHANNEL]
[--mac-lookup MAC_LOOKUP] [--print-default-config] [-v]
[-i IFACE] [-m DEVICES_TO_WATCH] [-a APS_TO_WATCH]
[--channels-to-monitor CHANNELS_TO_MONITOR]
[-w THRESHOLD_WINDOW]
[--map-save-interval MAP_SAVE_INTERVAL]
[--threshold THRESHOLD] [--power POWER]
[--trigger-plugin TRIGGER_PLUGIN]
[--plugin-config PLUGIN_CONFIG]
[--trigger-command TRIGGER_COMMAND]
[--trigger-cooldown TRIGGER_COOLDOWN]
[--display-all-packets] [--beep-on-trigger]
[--map-file MAP_FILE] [--log-path LOG_PATH]
[--log-level LOG_LEVEL] [-c CONFIG]

and it seems like 1.7.6 version still have this error:
sudo trackerjacker -i wlan1
Map output file: wifi_map.yaml
Monitoring all available channels on wlan1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
Traceback (most recent call last):
File "/usr/local/bin/trackerjacker", line 11, in
load_entry_point('trackerjacker==1.7.6', 'console_scripts', 'trackerjacker')()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/main.py", line 286, in main
tj.start()
File "/usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.6-py3.6.egg/trackerjacker/main.py", line 205, in start
scapy.sniff(iface=self.iface_manager.iface, prn=self.process_packet, store=0, exceptions=True)
File "/usr/local/lib/python3.6/dist-packages/scapy/sendrecv.py", line 731, in sniff
*arg, **karg)] = iface
TypeError: init() got an unexpected keyword argument 'exceptions'

Looks like older versions of scapy don't support that kwarg (I probably need to specify the version of scapy more precisely). But in the meantime, I put in a check. Try version 1.7.7 - it should fix the errors you mentioned.

1.7.7 works as it should.

With the plugin bit, there is a step forward:
sudo trackerjacker -i wlan1 --track --trigger-plugin foxhunt
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
|||
Wireless adapter blinks so does ||| rectangle sign but give above information.

Just saw new version, i got the 1.7.8. Now plugin system does not give
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
but cursor still blink without any output, like it cannot load the plugin. Is it something off on my side I wonder?

I removed that debug statement. I think what’s probably happening is it’s working, but your combination of hardware and software isn’t returning the power levels, which is required for the foxhunt plugin to work. What version of scapy3k is installed? Also, do any of the example plugins (in the repo) work?
Caleb

On Apr 26, 2018, at 7:04 AM, rafaleon69<EMAIL_ADDRESS>wrote:
Just saw new version, i got the 1.7.8. Now plugin system does not give
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
Possible builtin path: /usr/local/lib/python3.6/dist-packages/trackerjacker-1.7.7-py3.6.egg/trackerjacker/plugins/foxhunt.py
but cursor still blink without any output, like it cannot load the plugin. Is it something off on my side I wonder?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

pip3 install scapy-python3
Requirement already satisfied: scapy-python3 in /usr/local/lib/python3.6/dist-packages/scapy_python3-0.23-py3.6.egg
I tried other plugins, example1.py seems to work, returns a lot of those, with the correct mac addresses and few like this: 33:33:00:00:00:01 seen at: [1524753594.9933338]
Example2 is used to detect threshold which I managed to get it running. But even when I provide path to foxhunt, this one in particular would not run.

Ya, I think the combination of scapy and your wifi card may not support the RadioTap layer (which is where the signal power level comes from). Without that, the foxhunt mode doesn't work (since it's based off the signal power level).

I can only imagine that debugging can be hard, but can I make a suggestion. I have been browsing around and I have found this program, similar to yours but based on probe responses, right off the bat it shows SIGNAL strength, might be worth looking if you need an inspiration : https://github.com/hkm/whoishere.py/

PIP installation fails on Ubuntu 18.04 too:
``
Copying trackerjacker.egg-info to build/bdist.linux-x86_64/wheel/trackerjacker-1.8.7-py3.6.egg-info
running install_scripts
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-x8c4r_zi/trackerjacker/setup.py", line 54, in
'Operating System :: MacOS'
File "/home/logix/.local/lib/python3.6/site-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 257, in run
self.distinfo_dir)
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 427, in egg2dist
distribution=self.distribution)
File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 177, in pkginfo_to_dict
new_requirements = sorted(convert_requirements(requirements))
File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 234, in convert_requirements
parsed_requirement = pkg_resources.Requirement.parse(req)
File "/home/logix/.local/lib/python3.6/site-packages/pkg_resources/init.py", line 2995, in parse
req, = parse_requirements(s)
ValueError: not enough values to unpack (expected 1, got 0)

Failed building wheel for trackerjacker
Running setup.py clean for trackerjacker
Running setup.py bdist_wheel for scapy ... done
Stored in directory: /home/logix/.cache/pip/wheels/cf/03/88/296bf69fee1f9ec7a87e122da52253b65f3067f6ea8719b473
Running setup.py bdist_wheel for PyYAML ... done
Stored in directory: /home/logix/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
``


I'am wondering how to turn the bebop2?

File "fly.py", line 21, in
bebop.turn_degrees(45)
AttributeError: 'Bebop' object has no attribute 'turn_degrees'
This fonction is not used like this? Hoping for help :)

There is not a turn_degrees function in the bebop.  That is an error in the documentation and I will fix it right now.  There is a move_relative and that will accomplish what you want.  For some reason, mambo has an internal turn_degrees function while bebop does everything in radians (and uses a different command).


Times new roman is in place instead of Plex Serif (SAFARI:Desktop/mobile)

https://www.carbondesignsystem.com/guidelines/typography/overview/
@alisonjoseph @vpicone

confirmed this was fixed


Error detected while processing function indent_guides#process_autocmds

Error detected while processing function indent_guides#process_autocmds..indent_guides#enable..indent_guides#clear_matches:
line    5:
E803: ID not found: 904
E803: ID not found: 905
E803: ID not found: 906
E803: ID not found: 907
E803: ID not found: 908
E803: ID not found: 909
E803: ID not found: 910
E803: ID not found: 911
E803: ID not found: 912
E803: ID not found: 913
E803: ID not found: 914
E803: ID not found: 915
E803: ID not found: 916
E803: ID not found: 917
E803: ID not found: 918
E803: ID not found: 919
E803: ID not found: 920
E803: ID not found: 921
E803: ID not found: 922
E803: ID not found: 923

This seems to have resolved the issue, closing.


Support for Margin in Watermark Border Alignment

Hello!
I am using video_watermark to overlay images as a watermark on my videos. I wanted to position the watermark at the top left corner but with some margin from the top and the left edges.
Currently, there doesn't seem to be a feature that allows me to add this margin directly to the watermark. As a workaround, I tried wrapping my QR code image inside a larger transparent image, thinking the transparent areas would serve as the margin. However, when the video is generated, the transparent margin turns black. It seems the library might not be handling the transparency of the watermark image as expected.
Would it be possible to add a feature that allows setting margins for the watermark position directly?
Thank you very much for considering my request,
Lorenzo

Make sure the file you are using have .png extension and same resolution with video.
Then you must define watermarkSize same as video resolution and watermarkAlignment as topLeft.
Its all about preparation of overlay image.


Demo Org/Spaces

Ensure there's one org with v high quotas to be used to create apps in
Ensure there's one org with low quotas that contains new demo apps
Ensure each org has a space

Duplicate of https://github.com/cloudfoundry-incubator/stratos/issues/1858


getOr does not work within computed columns

Using getOr in a computed column returns 0 for a NULL value; the supplied default value and of the rest of the computation are ignored.
Short example:
import org.scalaquery.ql.extended.HsqldbDriver.Implicit._
import org.scalaquery.ql.extended.{ExtendedTable => Table}
import org.scalaquery.session.Database.threadLocalSession
import org.scalaquery.session._
import org.scalaquery.ql._
import org.scalaquery.ql.TypeMapper._

object Sqtest extends App {

  val Persons = new Table[(Int, String, Option[Int])]("PERSONS") {
    def id = column[Int]("ID", O.PrimaryKey)
    def name = column[String]("NAME", O.NotNull)
    def year = column[Option[Int]]("YEAR")

    def * = id ~ name ~ year
  }

  Database.forURL("jdbc:hsqldb:mem:testdb").withSession {
    Persons.ddl.create
    Persons.insertAll(
        (0, "Alice", Some(2000)),
        (1, "Bob", None))

    val q = for {
      p <- Persons
    } yield p.* ~ p.year.getOr(2000) ~ (p.year.getOr(2000)-0)

    println(q.selectStatement)
    q.foreach(println)
  }

}

This yields
SELECT "t1"."ID","t1"."NAME","t1"."YEAR","t1"."YEAR",("t1"."YEAR" - 0) FROM "PERSONS" "t1"
(0,Alice,Some(2000),2000,2000)
(1,Bob,None,2000,0)
The last line should be "(1,Bob,None,2000,2000)".
Version used: 0.9.5, scala 2.9.1

I have noticed that you can use .ifNull instead of .getOr, which shifts the calculation to the database and works fine. But I guess it still is a bug.

I have noticed that you can use .ifNull instead of .getOr, which shifts the calculation to the database and works fine. But I guess it still is a bug.


T02.02-Exercise: File name is wrong in the list of TODO items

In the file MainActivity.java located in the T02.02-Exercise-AddMenu folder, contains a wrong file name on the line 42 and 49.
Instead of "menu.xml" should be "main.xml".

Fixed.


lr term missing from friction term in SGHMC

Hi,
I might be wrong about this but is there an lr missing in line 93 of https://github.com/automl/pybnn/blob/master/pybnn/sampler/sghmc.py ? When you do momentum.add_(-lr * gradient - mdecay * momentum + sample_t) I think it might need to be momentum.add_(-lr * gradient - lr * mdecay * momentum + sample_t) in order to match the expression in https://arxiv.org/abs/1402.4102  I think including the step size makes sense there as the loss of potential due to friction will depend linearly on the distance travelled.

I think you are right. Thanks a lot. I will fix it

I think there is also a mdecay missing in the line above: lr * mdecay * momentum instead of lr *  momentum


Fix: Editable Text cancelling upon event stream updating

Description
Fixes an issue where the EditableText was getting cancelled out of edit mode if an event came down
Type of Change

fix

To Test

Start an event (such as resizing a Linode)
Try to edit the text
Keep the edit text state open
Wait for a new event to come down
Observe - the field stays in edit mode

Now try doing step 1 then go to a different Linode Detail page and repeat steps 2-5

Coverage increased (+0.02%) to 31.895% when pulling e6c24e91e12958b594b29a133544684a8e3d46ac on martinmckenna:M3-xxx-editable-text-bug into 7ab75d5c708cda97665e4eb9894dc22be087224e on linode:release-0.42.0.


fix real ip bug & i19n support & russian l10n

This is great! If you could look at the bootstrap file and make that part configurable and set English as the default this may actually add the often requested internationalization into MPOS

Now is a good time to get this added too since not much of the language layout is going to change.

And while we are at it, could you make the PR against the development branch?
Thanks for your work on this! Maybe we will see a few more translations in the future :-)

Here's the locale setting in the config defaulted to en_US etc, just needs to be done against master: https://github.com/xisi/php-mpos/commit/e46c74586c161306773b7efdd236c49bd513ee85

We still need this re-pulled against development before we can start working on it.

Good day to you. I created 3 pool on your own server. 2 of them work perfectly, and 1 gives the following error
Uncaught SyntaxError: Unexpected token -
site:
http://nvc.asictrade.com/index.php?page=dashboard
http://nvc.asictrade.com/index.php?page=statistics&action=blocks
help)

If this is based on the translation based PR, maybe @ivansib can help you out. And a full error message may be more helpful here. Not sure if this is still actively being developed (I hope so).

@TheSerapher,
I hope so too, as I have worked with the single coin version and I'm preparing to install this in the upcoming days.

I just went through this, very nice implementation on translations. This may not be 100% perfect, but it's a great start to start translating MPOS. I really hope to see this PR'ed against Development soon so we can continue to work on it!

Good day to you. How can I change the display in hesh participants something to show not kh/s...need gh/s. th/s etc ??
I tried to edit himself /home/coin/nvc/MPOS/templates/bootstrap/statistics/pool/contributors_hashrate.tpl
but I have nothing left .... as much as possible to do something you could display as well as a pull-eg heshreyt

I'm working to become proficient with Docker right now. When this is working efficiently and proper I'd like to Docker'ize it if that's ok.

Please keep in mind that other people's tickets are not a place to be used as a forum. This is a pure support ticket and should be treated as such.
@asictrade: Documentation: set algorithm to sha256 for those coins running this crypto. It will change display to appropriate values.
@eCurrency: we alread have a docker setup done by @nrpattern, see old tickets. I would also never recommend running MPOS as a container. Too many components; way too much data. It may work with only MPOS as a container since that one is pretty harmless. But for production use I would not use docker. And yes I have experience with docker in a production environment.

@TheSerapher, let me 1st say thank you for your work. I remember 1st encountering your when M. Shirley (Gggggrrrr!) was running his business installing pools.
2nd, please forgive me. I had no idea this was only a trouble ticket. I received emails from github, followed and ended up here. 'Conversation" at the top of this ticket's thread further lead me to believe this was just that. A "Conversation".
Thank you very much for the feedback on Docker. I won't waste my time then.
Again, sorry, and thanks!

I am closing this PR but if this is still something that you want implemented, create a new PR against the development branch of MPOS and we can get this merged. Thanks for your help, it's much appreciated!


Proposal: SetFreezeTransferRate

Please see https://forum.ripple.com/viewtopic.php?f=1&t=18307
Please discuss why specifically this may not be feasible due to technical & legal reasoning.

It is a shame to hear that the team will not have the time to investigate this for the time being.  If I had the skills to pull this off, I would devote the time to do so, I am just not up for the task unfortunately.
I hope this stays on your guys' radar because it is so very important to have this feature available if I were ever to follow through with the idea of creating a Ripple-based Real Cash Economy Game (please Google Mindark and Entropia Universe for the best reference within the genre) I would require that I could promise to players that there are rules for when the operator of an address may change their TransferRate.
I would also like to propose now that you brought up the mention of the TickSize setting to also consider a Freeze flag for this as well...I need it too for my use case to ever become viable.
Thanks for your time and for your consideration at least.  I will be sure to link and share the content next time I raise an issue.  I would like it if this could not be closed though and say "this is not happening because of resources" so that others may have the opportunity to lend there voice to this discussion.

I've tagged this as a "Feature Request" and I'm happy to leave it open if anyone wishes to discuss this feature.

I would also like to make the assertion that I support the original concept within my proposal.  I do not think I have to explain why, I believe you may come to the same conclusions I do if you think about why I would require such a "draconian feature" to be available.

I'd rather see currency specific objects (#2609) implemented first, before overloading AccountRoot objects even more (these settings really are not a property of an account, but of an issued currency!), but I see the appeal for such a solution.

Closing due to inactivity. If anyone is still interested in this, please re-open, or open a new issue.


Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:

its flutter project any solution for it???
./../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7:Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:
TextSelectionDelegate.copySelection
TextSelectionDelegate.cutSelection
TextSelectionDelegate.pasteText
TextSelectionDelegate.selectAll
Try to either
provide an implementation,
inherit an implementation from a superclass or mixin,
mark the class as abstract, or
provide a 'noSuchMethod' implementation.

Duplicate of #7. Please update to the latest version of the package.

I faced that problem too after doing flutter upgrade to v2.8.0 (latest). So I decided to downgrade my flutter to 2.5.3 to solve it in my current project.

but i try to upgrade and downgrade both is not working for me and other solution???

@iamwasimaftab Can you confirm that this is occuring with flutter_math_fork: 0.5.0? Can you please send the full error message in this case (including the file path)?

@creativecreatorormaybenot
showing --- flutter_math_fork-0.3.3+1
Cylinder@wasi-Mac-Pro Application % flutter build apk
Running "flutter pub get" in Application...                         3.0s
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
../../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:

TextSelectionDelegate.copySelection
TextSelectionDelegate.cutSelection
TextSelectionDelegate.pasteText
TextSelectionDelegate.selectAll
Try to either
provide an implementation,
inherit an implementation from a superclass or mixin,
mark the class as abstract, or
provide a 'noSuchMethod' implementation.

class InternalSelectableMathState extends State
^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../flutter/packages/flutter/lib/src/services/text_input.dart:1034:8: Context: 'TextSelectionDelegate.copySelection' is defined here.
void copySelection(SelectionChangedCause cause);
^^^^^^^^^^^^^
../../../../flutter/packages/flutter/lib/src/services/text_input.dart:1014:8: Context: 'TextSelectionDelegate.cutSelection' is defined here.
void cutSelection(SelectionChangedCause cause);
^^^^^^^^^^^^
../../../../flutter/packages/flutter/lib/src/services/text_input.dart:1022:16: Context: 'TextSelectionDelegate.pasteText' is defined here.
Future pasteText(SelectionChangedCause cause);
^^^^^^^^^
../../../../flutter/packages/flutter/lib/src/services/text_input.dart:1028:8: Context: 'TextSelectionDelegate.selectAll' is defined here.
void selectAll(SelectionChangedCause cause);
^^^^^^^^^
../../../../flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.0/lib/src/visibility_detector_layer.dart:276:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
super.addToScene(builder, layerOffset);
^
../../../../flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
io.Platform.packageRoot; // ignore: deprecated_member_use
^^^^^^^^^^^
FAILURE: Build failed with an exception.

Where:
Script '/Users/Cylinder/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102

What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command '/Users/Cylinder/flutter/bin/flutter'' finished with non-zero exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 23s
Running Gradle task 'assembleRelease'...                           24.1s
Gradle task assembleRelease failed with exit code 1
Cylinder@wasi-Mac-Pro Application %

@iamwasimaftab you are using an old version of the package 0.3.3. This has been fixed in 0.5.0.

@creativecreatorormaybenot chewie uses an outdated version of the provider package.

How can I upgraded??
It's last version I used it's may be already upgraded
On Wed, 15 Dec 2021, 10:14 pm creativecreatorormaybenot, <
@.***> wrote:

@creativecreatorormaybenot https://github.com/creativecreatorormaybenot
chewie uses an outdated version of the provider package.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/simpleclub-extended/flutter_math_fork/issues/22#issuecomment-995043149,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AW5JDL2GZNUYTQHSD2XXZGLURDLG7ANCNFSM5KBBEBTQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@iamwasimaftab you need to fork it (and create a pull request) or override the dependency.

hello bro i have same problem can you help me

this is the full error :-
Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members:
../…/widgets/selectable.dart:407

TextSelectionDelegate.copySelection
TextSelectionDelegate.cutSelection
TextSelectionDelegate.pasteText
TextSelectionDelegate.selectAll
Try to either
provide an implementation,
inherit an implementation from a superclass or mixin,
mark the class as abstract, or
provide a 'noSuchMethod' implementation.

class InternalSelectableMathState extends State
^^^^^^^^^^^^^^^^^^^^^^^^^^^
: Context: 'TextSelectionDelegate.copySelection' is defined here.
../…/services/text_input.dart:985
void copySelection(SelectionChangedCause cause);
^^^^^^^^^^^^^
: Context: 'TextSelectionDelegate.cutSelection' is defined here.
../…/services/text_input.dart:965
void cutSelection(SelectionChangedCause cause);
^^^^^^^^^^^^
: Context: 'TextSelectionDelegate.pasteText' is defined here.
../…/services/text_input.dart:973
Future pasteText(SelectionChangedCause cause);
^^^^^^^^^
: Context: 'TextSelectionDelegate.selectAll' is defined here.
../…/services/text_input.dart:979
void selectAll(SelectionChangedCause cause);
^^^^^^^^^
: Error: Too many positional arguments: 1 allowed, but 2 found.
../…/src/visibility_detector_layer.dart:276
Try removing the extra positional arguments.
super.addToScene(builder, layerOffset);
^
3
FAILURE: Build failed with an exception.

Where:
Script 'C:\Users\admin\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070

What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\Users\admin\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 5m 39s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
what i do bro ?


Preveting file index overwritting in multi-config generators

This change addresses item #1800
This changes the way the configuration data is updated. Now, in multi-config environments, only the current active variant is considered while updating internals. This way, I am preventing overwriting _fileIndex variable with other non-active variants.
The following changes are proposed:

Add a new variable named name on CodeModelConfiguration type, which represents the name of the variant.
Add a new variable named activeVariant on CodeModelParams type, indicating the current active variant
A condition on updateConfigurationData method that only allows the configuration proceeds whether the configuration variant is the same as the current active variant.

The purpose of this change
As described on issue #1800, I was having a problem with the Intellisense when using the conan package manager + MSBuild. Basically, Conan has several ways to integrate the dependencies with my CMake file. One of them is the cmake_multi, which copes with multi-config build systems, relying on cmake generator expressions. When updating the configuration data on cpptools module, we overwrite the file index several times, one per variant. This way, only the last processed configuration remains.  This is likely to point to wrong paths. In  #1800, I had only the libraries in release mode, but my last processed configuration was relWithDebInfo, which had nothing configurated, but we still overwrite the file index with empty values. Thus the missing paths and red squiggles on my include directives.

Thank you for your PR submission. We will get to review and test it soon.
PS: You have some easy to fix linter errors.

I fixed a typo on test cases that was causing the test to fail. I believe now they are all ok.


c++ Debugging with vscode too slow.

VSCode Version:1.7.1
OS Version:Centos7.2

When I use the vscode to debug c++ program on Centsos7.2. It seem to very slow to jump next break points.
pls help check this and fix it soon. thanks a lot.

This issue was moved to Microsoft/vscode-cpptools#363


Make existing FOM unit tests pass

Assess existing tests - do they make sense, are they adequate? Pick apart old test for value
Tests pass if run correctly; api unit tests pass
Improving coverage --separate ticket exists
Communication/integration with p/l
AC:
each component has at least 1 test
Worthwhile tests to be incorporated into pipeline

API unit tests work and are now consumed by the pipeline!  E2E tests currently failing and will likely be removed later.

Only API unit tests were workable.  Now in the pipeline.  Other tests are out of scope and have their own tickets.


Don't exclude quite so much in a no-sock build

We were excluding more code than we needed to in the OCSP/HTTP code in
the event of no-sock. We should also not assume that a BIO passed to our
API is socket based.
This fixes the no-sock build

@DDvO please take a look at this. "no-sock" builds were failing in one of the tests. On investigation it seemed to me that we were excluding rather a lot of code in a "no-sock" build that actually had very little dependency on sockets. However there were a couple of places where we assumed that the underlying BIO we had been passed was based on a socket, which might not always be the case.
I've attempted to fix those issues, but I'm concerned that the test coverage of this seems light/non-existent. I suspect some/many of the codepaths I'm altering here have no real test coverage. Were you planning any additional tests in this area as part of the CMP contribution?

@mattcaswell, thanks for the investigation and the proposed fix. I've started reviewing it.

On investigation it seemed to me that we were excluding rather a lot of code in a "no-sock" build that actually had very little dependency on sockets. However there were a couple of places where we assumed that the underlying BIO we had been passed was based on a socket, which might not always be the case.

Rright. The old HTTP client (which was in crypto/ocsp/) was always socket-based, and I had taken over this to the new one. Yet due to the generalizations you had requested the user may pass in the BIOs, which are not necessarily socket-based. I did not notice this and therefore had not adapted the usage of #ifndef OPENSSL_NO_SOCK accordingly.

I've attempted to fix those issues, but I'm concerned that the test coverage of this seems light/non-existent. I suspect some/many of the codepaths I'm altering here have no real test coverage. Were you planning any additional tests in this area as part of the CMP contribution?

The tests that I've implemented in test/http_test.c cover nearly all aspects of the HTTP client except socket-based I/O because this is a bit hard to test.
Yet the final chunk 12 of our CMP contribution will comprise of CLI-based tests, and those will include running a CMP mock server listening on a local port and interacting with the CMP client under test.
BTW, we faced some technical difficulties since the test hardness does not seem to support spawning another process in parallel to the application under test. We resorted to
sub start_mock_server {
 system ("LD_LIBRARY_PATH=../../ ../../apps/openssl cmp" .
            # " -config ../../test/default.cnf" .
            " -port $localport" .
...
            " $_[0]" . # optionally further CLI arguments
            " &")
}

and at the end of each test:
sub stop_mock_server {
    my $pid = `lsof -i | grep 'TCP .*:$localport' | awk '{ print \$2 }'`;
    system ("kill $pid") if $pid;
}

Is there a better/preferred way of doing this?

Although the relaxation regarding OPENSSL_NO_SOCK does make sense,
it comes with the drawback that busy loops are incurred when using non-socket BIOs.

Should there be at least some small sleep (usleep()) added to the busy loops?

I started to look at adding a usleep. This wouldn't be too difficult to do (we actually have some cross-platform usleep code in test/ssltestlib.c), but adding it started to turn this PR into something bigger than I had intended given time constraints working on the 3.0 tasks. So either I can:

Turn this PR over to someone else to pursue the usleep option

or

Implement the "simple" fix to correct no-sock builds for now (which is where I started this exercise). This would leave all the current code as being inaccessible in a no-sock build, which could be done at a later time.

@mattcaswell, I can take over.
I'd like to move the ossl_sleep() decls to some internal or maybe even external header.
Which is best?

@mattcaswell, I can take over.

Great. Would it be easiest if I close this PR, and you create a new one based on this?

I'd like to move the ossl_sleep() decls to some internal or maybe even external header.
Which is best?

I'd say internal. Perhaps "internal/cryptlib.h"?

Fine.

Closing this in favour of #11134


Add a concurrency example using a massive number of spawns

This example is a test with a massive amount of spawns.
We implement this with our 3 spawn types:

strict concurrency spawn (non-movable future)
weak concurrency spawn (movable future)
bulk spawn

Except the bulk spawn implementation we get better results than the corresponding Go code.

@lucteo let's try to move open PRs forward and get them merged, or close them please.


Update change

Hi Habtamu ✋🏿,

[x] Great work on your project so far. You did well by completing all project requirements, however, there are a few changes ♻ I would recommend you make.
[ ] Kindly make sure that your README.md file includes the link to your project deployment instead of the link to your README.md file because when I tried to open the project's link I can see that you are deployed just the readme file
[ ] please try to resolve the conflict that you have in this PR


Add brew switch to help text

Feature Request
I (in)frequently use brew to switch versions of a package (go, python, etc).  Enough to want to see it in help output, but not frequently enough to memorize it.
Motivated by the number of times I've had to look it up.  Ironically, now that I'm making this PR, I'll probably never forget but I'd like to help others.
I imagine >90% of developers have to do this at least every other month or so.
Alternative approach: call out in the help text that it's not an exhaustive list of commands so that developers more readily open the man page.

Alternative approach: call out in the help text that it's not an exhaustive list of commands so that developers more readily open the man page.

It does say: "further help" and "example usage" and mentions man brew. Passing on this as this doesn't seem to be a widespread concern. Thanks anyway!

Fair enough!  Thanks for your hard work on this project!


Major optimizations

added "People" page which will address a lot of #162 minus two additional organizers being added
footer is split by chapter now since there were too many paragraphs
fixes #182 #177 #181
updated to Gulp 4.0 and made changes to gulpfile
/blog/ and add the first blog post - addresses part of #38

✅ By submitting this PR, I have verified the following

[x] Checked to see if a similar PR has already been opened 🤔
[x] Reviewed the contributing guidelines 🔍
[x] Added my name to the bottom of the list under the Contributors section in the README.md with a link to my personal website or GitHub profile 👥

This pull request fixes 3 alerts when merging c63de4044a5f839b64165769093c6f5c2ea9907c into 36f752f2b2882aed71f20c371f5704f5436daf9b - view on LGTM.com
fixed alerts:

3 for Superfluous trailing arguments

Comment posted by LGTM.com

This pull request fixes 3 alerts when merging 15590337a4c7a7c336ca96bef9a85efa3bc05589 into 36f752f2b2882aed71f20c371f5704f5436daf9b - view on LGTM.com
fixed alerts:

3 for Superfluous trailing arguments

Comment posted by LGTM.com

This pull request fixes 3 alerts when merging f9f6778919fa717d506da6fa1e0c6606f0c6b138 into 36f752f2b2882aed71f20c371f5704f5436daf9b - view on LGTM.com
fixed alerts:

3 for Superfluous trailing arguments

Comment posted by LGTM.com

This pull request fixes 3 alerts when merging c07d940f8133aaf1db0230efe0515cd2c0270531 into de69635656167868a37630cbd1272d4d1fe9d99c - view on LGTM.com
fixed alerts:

3 for Superfluous trailing arguments

Comment posted by LGTM.com


__assert: add __ASSERT_EXPR()

Variant of __ASSERT whose test expression is still evaluated
even if assertions are disabled.


[Fix #10745] Fix an error when using old JSON gem

Fixes #10745.
This PR fixes the following incompatible API error when using JSON 2.2 or lower.
% bunlde exec rspec  ./spec/rubocop/result_cache_spec.rb:45
Run options: include {:focus=>true,
:locations=>{"./spec/rubocop/result_cache_spec.rb"=>[45]}}

Randomized with seed 40926
FF

Failures:

  1) RuboCop::ResultCache cached result that was saved with no command
  line option when no option is given is valid and can be loaded
     Failure/Error: deserialize_offenses(JSON.parse(text))

     ArgumentError:
       wrong number of arguments (given 2, expected 1)
     Shared Example Group: "valid" called from
       ./spec/rubocop/result_cache_spec.rb:121
     # ./lib/rubocop/cached_data.rb:14:in `from_json'
     # ./lib/rubocop/result_cache.rb:119:in `load'
     # ./spec/rubocop/result_cache_spec.rb:45:in `block (4 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `block (4 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `chdir'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `block (3 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:7:in `block (2 levels) in
       <top (required)>'

  2) RuboCop::ResultCache cached result that was saved with no command
  line option when --format is given is valid and can be loaded
     Failure/Error: deserialize_offenses(JSON.parse(text))

     ArgumentError:
       wrong number of arguments (given 2, expected 1)
     Shared Example Group: "valid" called from
       ./spec/rubocop/result_cache_spec.rb:242
     # ./lib/rubocop/cached_data.rb:14:in `from_json'
     # ./lib/rubocop/result_cache.rb:119:in `load'
     # ./spec/rubocop/result_cache_spec.rb:45:in `block (4 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `block (4 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `chdir'
     # ./lib/rubocop/rspec/shared_contexts.rb:30:in `block (3 levels) in
       <top (required)>'
     # ./lib/rubocop/rspec/shared_contexts.rb:7:in `block (2 levels) in
       <top (required)>'

Finished in 0.2064 seconds (files took 1.04 seconds to load)
2 examples, 2 failures

It resolves the error by requiring JSON 2.3 or higher.
NOTE: It's been a few years since JSON 2.3 was released. It's maybe widespread to some extent, so it's not expected to have a big impact.
https://rubygems.org/gems/json/versions/2.3.0

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!


HTTPMethod is empty

Tried to use the events.APIGatewayProxyRequest.HTTPMethod but it returned ""
Here's the full handler
func Handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
	fmt.Println("Received body: ", request.Body)
	switch request.HTTPMethod {
	case "POST":
		return events.APIGatewayProxyResponse{Body: request.Body, StatusCode: 200}, nil
	default: // GET
		response := events.APIGatewayProxyResponse{
			Body:       request.QueryStringParameters["value"],
			StatusCode: 200,
		}
		return response, nil
	}
}

I'm also encountering this issue, but only on the root ("/") requests. HTTPMethod is empty and so is the event.Path.

So, it works on all non-root paths? Interesting

From my tests only root is causing a problem.

Experiencing this issue right now.
request.HTTPMethod is empty and we have a resource (not root path).
This issue is old, so im wondering if a solution has been found... Any information on this would be awesome.

I have the same issue ..

I know this is an old thread but I found things worked when I changed to APIGatewayV2HTTPRequest
ie
func HandleRequest(ctx context.Context, req events.APIGatewayV2HTTPRequest)

APIGatewayV2HTTPRequest worked for me aswell.

Such a headbang... I went down the rabbit hole of trying to set up paths with proxy, only to learn this is just a damn bug in the framework.
Why do we have APIGatewayProxyRequest and HTTPMethod if it's non-functional?!


Release head version

Might be useful to release the head version of  luacheck to luarocks

would fix the reported version
would add the few Lua 5.4 support fixes that were checked in last year.

I'd be glad to help but I suppose this would require the owner credentials.
(Note: I am not blocked I just installed the dev version, but to ease use for the masses it would be useful)
Thx for maintaining this tool!

would fix the reported version

I guess that's where luacheck --version prints Luacheck: 0.23.0 even though it was installed as 0.24.0-2? (fixed in 9e94be5c464473207434d7782ef31caa1fa073a2 but I think not tracked anywhere.)

Sorry for the late response!
I just pushed 0.25.0.
Luacheck is in need of new maintainers — I'm doing minimal administrative work around it, as time permits, until someone else comes up to take up the project (even if only to do this minimal administrative work more responsively than I'm able to).

I'd be glad to help but I suppose this would require the owner credentials.

If you're still interested in helping out in any way, please reach out via<EMAIL_ADDRESS>and let's get something sorted! Thanks!


Editing a tagged message with emoji results in tag disappearing

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.76-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @jliexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1716768618432089
Action Performed:

Go to staging.new.expensify.com
Select any room from LHN
Tag someone by email or by name and write a message
Right click the message and edit  with emoji
Again edit and add second emoji

Expected Result:
Tagged person not disappear from message
Actual Result:
Tagged person name/email disappeared during editing and also emoji size changed to larger one
Note: Sometimes happens on first edit itself
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/38435837/a3b010dd-187a-454a-baa5-c6aa174885ba
https://github.com/Expensify/App/assets/38435837/d9f653de-e315-435f-a670-ab199e002421
https://github.com/Expensify/App/assets/38435837/d5ac4d65-705a-4cce-8380-afeb46a62476

View all open jobs on GitHub

I was able to reproduce this without adding an emoji. I think it's more related to editing the message in general.

https://github.com/Expensify/App/assets/5579997/f84957ff-791c-4763-90c3-2581547db38a
I'm not sure If I've captured the logs correctly, but here's what I've found:

Logs for Update comment that still contains the mention: 88afc20f3dab44e4-ATL

Logs for Update comment where the mention has now been removed: 88afc23ace6244e4-ATL
As far as reproduction steps go – it's a bit unclear to me. There wasn't a specific number of times that I needed to edit the comment before the mention disappeared.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Editing a tagged message results in tag disappearing
What is the root cause of that problem?
We call parser.htmlToMarkDown() here when editing message.
In htmlToMarkDown() function, <metion-user> tags will be replaced with user name in following logic.
node_modules/expensify-common/lib/ExpensiMark.js
{
    name: 'userMention',
    regex: /<mention-user accountID="(\d+)" *\/>/gi,
    replacement: (match, g1, offset, string, extras) => {
        const accountToNameMap = extras.accountIdToName;
        if (!accountToNameMap || !accountToNameMap[g1]) {
            return '';
        }

        return `@${extras.accountIdToName(g1)}`;
    },
},

As we can see here, in this function we get user name from account id by using extras.accountIdToName.
And accountIdToName is sent as second parameter of htmlToMarkDown() function.
But as we did not send accountIdToName as parameter in below part, user mentions are not displayed in edit box.
https://github.com/Expensify/App/blob/6129b386a704f42a7eae6af6537364f4ec38c90d/src/pages/home/report/ContextMenu/ContextMenuActions.tsx#L243
What changes do you think we should make in order to solve the problem?
We can use usePersonalDetails() hook to solve this problem.

Add const personalDetails = usePersonalDetails() || CONST.EMPTY_OBJECT; in BaseReportActionContextMenu and send it as parameter to ContextMenuActions in below part.
https://github.com/Expensify/App/blob/6129b386a704f42a7eae6af6537364f4ec38c90d/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx#L275-L280
Then in ContextMenuActions, we get personalDetails here.
Here we have two solutions. One involves node module(expensify-common) changes and another one doesn't need module change.
In expensify-common as I mentioned before, we are getting user name from account id with below code.

{
    name: 'userMention',
    regex: /<mention-user accountID="(\d+)" *\/>/gi,
    replacement: (match, g1, offset, string, extras) => {
        const accountToNameMap = extras.accountIdToName;
        if (!accountToNameMap || !accountToNameMap[g1]) {
            return '';
        }

        return `@${extras.accountIdToName(g1)}`;
    },
}

It assumes that accountIdToName is object which has accountId as key and userName as value.
{
  0<EMAIL_ADDRESS>  1<EMAIL_ADDRESS>...
}

But the value of usePersonalDetails() object is user info object.
{
  12602521: {
    accountID: 12602521
    avatar: "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_14.png"
    displayName<EMAIL_ADDRESS>    firstName: ""
    lastName: ""
    login<EMAIL_ADDRESS>    payPalMeAddress: ""
    phoneNumber: ""
    pronouns: ""
    timezone: {automatic: true, selected: 'America/Los_Angeles'}
    validated: false
 }
}

If we want to solve this problem without module change, we have to modify value of usePersonalDetails to desired structure.
We can also change this line with below part. And in module we can get user name with function something like accountIdToName(accountId)
Report.saveReportActionDraft(reportID, reportAction, parser.htmlToMarkdown(getActionHtml(reportAction), { 'accountIdToName': (accountId) => {
                        return personalDetails[accountId]?.login;
                    }  }));

Hey i just saw your post for the job "Editing a tagged message with emoji results in tag disappearing", i checked out the details on your github issue https://github.com/Expensify/App/issues/42689 and debugged your web app , your exact problem is in the event listner function of the app with socket connection distruption .
react DOM works on unreal engine and sometime it dont fully compile the object document instead add it as a json log which eventually leads to the disapearing of the tagged person . its compile time error on the DOM which could be solved in just hours . let's discuss the more technical details over a short call .
i am adding thr test logs here for you to check . {
cookies with the SameSite=None; Secure and not Partitioned attributes that operate in cross-site contexts are third-party cookies. In future Chrome versions, reading third-party cookies will be blocked. This behavior protects user data from cross-site tracking.
Please refer to the article linked to learn more about preparing your site to avoid potential breakage.
7 cookies
2 requests
Learn more: Prepare for phasing out third-party cookies
}
Myself Kabeer Anees Full Stack InfraStructure Engineer , I have 6 years plus experienceas Full stack developer having built large scale data applications with complex business logicsto incorporate cutting edge technologies . At scoro.com I used asynchronous generators in JS to stream 250K products to the S3 bucket in real-time, to generate multiple 250mb+ files via ECS and Fargate.
⚡ Architected Pub/Sub APIs and Serverless Node AWS Lambda functions leveraging AWS SQS and AWS SNS to execute functions on specific triggers and to handle complicated eCommerce flows. Engineered a solution to stream multiple 250mb+ files uploaded daily using AWS ECS on S3.
⚡ Implemented DevOps CI/CD pipelines using Infrastructure as a Code tooling such as Terraform and AWS CDK. Developed applications on Nest.js and infrastructure involving bash Scripting, IAC, NX monorepos, and external Integrations.
I possess an advanced understanding of the development life cycle, utilizing Test Driven
Development (TDD), iterative methodologies, and Agile Scrum practices. I am highly proficient
in backend web development with Python and JavaScript.
● Python Backend Development: Skilled in developing web applications using Flask,
Django, and FastAPI.
● JavaScript Backend Development: Experienced in building backend services with
Node.js.
● Containerized Development: Expert in Docker for containerized development and
deployment.
● AWS Cloud Expertise: Four years of extensive experience in AWS cloud development,
automating the deployment of numerous web applications across various AWS hosting
environments.
● AWS Microservices and Serverless: Proficient in leveraging AWS Serverless
technologies to build infinitely scalable applications. Expertise in AWS Lambda, API
Gateway, S3, SNS, SQS, AWS Aurora, EventBridge, SES, Pinpoint, and CloudFront.
● High Workload Management: Experienced in running high workload jobs using AWS
Batch.
● Workflow Automation: Proficient in using AWS Step Functions for building distributed
applications, automating processes, and orchestrating microservices.
● Container Management on AWS: Skilled in running containerized applications on AWS
ECS and managing container images with ECR.
● Domain and Certificate Management: Utilizing Route53 and ACM for managing
domains and SSL/TLS certificates.
● Scalable Infrastructure: Expertise in setting up EC2 instances for various workloads
with automated scaling and traffic management using Auto Scaling Groups and Load
Balancers.
● Access Management: Utilizing AWS IAM for granular access control to different AWS
services.
● Infrastructure as Code (IaC): Proficient with Serverless Framework, AWS
CloudFormation, AWS CDK, and Terraform for infrastructure provisioning and
management.
Let's get onto the short call to disucss the technical aspects of the project where i can show you workflow daigram to how this automation will work . i am waiting for your response .

Ah, sorry I missed the ping, @parasharrajat! Ok, I'll go ahead and close it. Thanks!

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~01359d6d1421cb86ce


Maintaining it

Hey @wcandillon, if you're looking for a new maintainer, happy to maintain it.

yes let's do it.

yes let's do it.

@devlato Has not forked the repo, so how is he going to maintain it?

I think i maybe want to join in

Good on @jimmywarting as he has a PR, so he has forked the repo and has worked on it.

Fantastic, how can I help?

Fantastic, how can I help?

Well, you could review my PR #250

I was thinking... how would you feel about using template literals instead of using mustache?

I haven't touched this project in years, would you like to take over?

Emh, sure


Feature request: Allow values over 100

It would be nice if values over 100 would be accepted and just displayed as if it they were 100. That way, when using wob for volume with audio boost (which allows values over 100), no hacky workaround would be needed to dsplay it correctly.

You can simply get the minimum value between 100 and your volume output :
dc -e "[`pamixer --get-volume`]sM 100d `pamixer --get-volume`<Mp"

100 is here to avoid getting over 100
pamixer --get-volume is the command that get the volume

I'm willing to implement this. Maybe add a flag to enable/disable it, allow a different color when the bar is over 100% (and maybe have it wrap around in that color?), etc.


Update BitcartCC.php - Remove folder

A folder shouldn't be specified...
Take a look at the other gateways.
https://ibb.co/ncBvZy2

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks, merging!


Methods on IXmlRepository should be async

Apart from the documentation being a bit thin on IXmlRepository, the methods really should be async.
Considering it's a repository that very likely has something to do with physical storage - which usually blocks - there should be a "native" way to use await within the implementation. I'm currently working on a MongoDB storage and have to resort to use blocking calls just to be able to use it as a repo.
I'm pretty sure other implementations would benefit from that as well.

Might be related to #37.

@GrabYourPitchforks do you remember why we didn't make the methods async here?

Though this might be nice, the data protection stack is non-async all the way around, so it would be infeasible to make just this one API be async. A proper fix would involve changing many, many APIs, and there isn't time for that to happen.

This should be revisited. The only data store that isn't async is an in memory implementation...

FWIW I'm not opposed to making the repository APIs async. However, we need to be mindful of the fact that the caller is still always going to be sync. This implies that the conversation should focus solely on "what can we do to make it easier to write a custom repository?" rather than "how do we prevent a thread from being blocked?"

I'm thinking the underlying implementation should take care of it and it should be really easy to implement. I've looked at many implementations while implementing a Foundatio version... They all do crazy things and are not uniform on how they are executed (sync, await, configureawait(false), or even exponential backoffs...). Should XElements be stored in a single file or multiple on disk, how should the element be loaded from a stream or string and with what validation methods or apis. It's really not intuitive.


Adding features in the browse by collection page

Adding hover for the elements under the browse collection of browse by collection page,adding some information under the browse collections which will help the user to know more about it and underlining the headlines of the page.
Screenshots:

Additional context
I would like to work for this issue

@brenoferreira

We're pending the implementation of a redesign of this page, which has already been scoped out by our UX designer. We appreciate the suggestions, but will not move forward with this ticket.


Add example for building native dependencies

For python, I encountered a problem on my environment where native dependencies of a python function are added during the apex build hook (pip), but could not be loaded by the AWS Lambda environment.
I fixed this issue using information from this blog post and over here.
As such, the correct way would be to use an official Amazon Linux docker instance to run pip.
I suggest adding my solution to the examples folder for the benefit of other users:

build.sh

#!/bin/bash

docker pull amazonlinux:2016.09 &&
docker run --rm -v $(pwd):/outputs -t amazonlinux:2016.09 /bin/bash /outputs/docker_build.sh

docker_build.sh

#!/bin/bash

cd /outputs &&
yum -y install https://rhel6.iuscommunity.org/ius-release.rpm &&
yum -y install python36u-pip &&
python3.6 -m pip install --upgrade -r requirements.txt -t .
#python3.6 -m pip install --ignore-installed --upgrade --force-reinstall -r requirements.txt -t .

function.json

{
  "description": "Example with python dependency on an external package",
  "hooks": {
    "build": "bash build.sh"
  }
}

By the way, apex defaults to the new Python 3.6 environment:
~/apex/_examples/python> apex list

  dependency
    description: Example with python dependency on an external package
    runtime: python3.6
    memory: 128mb
    timeout: 5s
    role: arn:aws:iam::3x7xx4xx5xx6:role/helloworld_lambda_function
    handler: main.handle
    arn: arn:aws:lambda:ap-southeast-1:3x7xx4xx5xx6:function:python_dependency:current
    aliases: current@v6

  simple
    runtime: python3.6
    memory: 128mb
    timeout: 5s
    role: arn:aws:iam::3x7xx4xx5xx6:role/helloworld_lambda_function
    handler: main.handle
    arn: arn:aws:lambda:ap-southeast-1:3x7xx4xx5xx6:function:python_simple:current
    aliases: current@v2

@johnlinvc

Thanks for the info.
From my experience, having a Dockerfile that builds all the pip packages (and yum packages) speed up development cycles significantly.
I'll add an example later.

FYI: I recently followed the blogpost here to get something very succint:
https://medium.com/apex-serverless/docker-builds-for-apex-1-62493e56ad8f
Works really well thus far.
File: apex_root/functions/Dockerfile
FROM amazonlinux:2016.09
RUN yum -y install https://rhel6.iuscommunity.org/ius-release.rpm && yum -y install python36u-pip
ENV PYTHONPATH=/src

File: apex_root/functions/scale_plu/function.json
{
  "description": "GRPC Client that generates plu.csv",
  "timeout": 30,
  "vpc": {
    "securityGroups": ["sg-1b44ba7e"],
    "subnets": ["subnet-c711f7a2","subnet-a985dedf"]
  },
  "hooks": {
    "build": "docker build -t lambda-python36 .. && docker run --rm -v $(pwd):/src lambda-python36 python3.6 -m pip install --upgrade -r /src/requirements.txt -t /src"
  }
}

Thanks for the help!


Will be sick if you can save a PDF of the application that you filed out just to record keep

Add a Settings tab
Add Print Submitted Application to PDF button to Settings tab


python312Packages.rstcheck: 6.2.1 -> 6.2.1, python312Packages.rstcheck-core: 1.2.0 -> 1.2.1

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

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

8 packages built:

rstcheck (python311Packages.rstcheck)
python311Packages.rstcheck-core
python311Packages.rstcheck-core.dist
rstcheck.dist (python311Packages.rstcheck.dist)
python312Packages.rstcheck
python312Packages.rstcheck-core
python312Packages.rstcheck-core.dist
python312Packages.rstcheck.dist