text:
Molecule Archives with no molecules throws NPE

When Molecule Archive windows open with no items after running the Build DNA Archive command, they throw an error.
Maybe no archive should open when no molecules are found. For that I created an issue at mars-core.
But Molecule Archive windows also should not throw errors when empty:

I believe I have now found all locations where NPEs occurred due to no metadata or molecule records being in the archive. I have also made sure yama and rover files save correctly for archives with no record entries. This might be useful when you want to work with the rover or bdv without needing specific records.
All these NPEs when no records are present are an unfortunate consequence of keeping mars-core separate from mars-fx. This strict separation ensures archive files and commands could be used with an entirely different gui in the future and allows for only mars-core to be used in headless mode. There are many other benefits. However, it also means mars-core can't have any javafx dependencies. As a result, there are many places where events are fire that 'set' records into the gui panels. Typically javafx along would reinforce better patterns that would completely avoid NPEs and gracefully handle the situations when there are no records. But tying mars-core to javafx is not worth the benefits and there are many other downsides and limitations to the javafx data model. It is great for guis but not great in general for the MoleculeArchive format overall.
I am closing this for now since everything appears fixed. We can reopen when another NPE comes up.

repo: duderstadt-lab/mars-fx


text:
Example doesn't compile with Teensy LC

I downloaded a fresh Arduino 1.8.4, added Teensyduino 1.39, and tried to compile Examples/Snooze/deepsleep/deepsleep_all_wakeups, but had an error.  The problem is localized to use of keywords in SnoozeCompare.cpp that are not available in Teensy LC.
I commented references to IRQ_CMP2 and LLWU_CMP2_MOD, and everything compiles and the timer wakeup works (I'm not using the comparator).
I'm new to github, but would be willing to try fixing this.  I really appreciate your work to produce this library!
Snooze\utility\SnoozeCompare.cpp:195:42: error: 'IRQ_CMP2' was not declared in this scope
 if ( mode == VLPW ) NVIC_ENABLE_IRQ( IRQ_CMP2 );

Snooze\utility\SnoozeCompare.cpp:170:57: error: 'LLWU_CMP2_MOD' was not declared in this scope
     if ( mode >= LLS ) llwu_configure_modules_mask( LLWU_CMP2_MOD );

Yep, I didn't check the LC. I'll have update this week sometime.

How does it work on Teensy LC? Does the used ARM chip have usable RTC?

This issue was about the Compare Hardware on the Teensy LC but as far as I know there is no RTC hardware on the LC just the logic so after power is removed it will lose the time.

source: gharchive/issue

authors: benkrasnow duff2013 nobodyguy

license: mit

license_type: permissive

license_source: bigquery


text:
给出国内快速安装DuiLib的方法

下载这个包管理器
https://gitee.com/gitnow/VCPM
然后执行命令
vcpm install duilib
这个管理器由本人自己开发，使用国内Gitee镜像，速度异常快。自带Mini的Git

主要是vcpkg安装太慢了

用你这个确实快

用你这个确实快

@ScSofts 啥，那我做的vcpkg mirror是干嘛用的。

authors: JackBoosY ScSofts scorpion9111

repo: duilib/duilib


text:
Problem with external SSL termination

Hi,
i'm trying to use streama (v1.0.11) on OpenBSD and have the following issue:
In my current setup all incoming https connections are terminated by relayd, which is taking care of the ssl termination and is forwarding theses connections to different backend servers (one of them is streama listening on localhost) as plain http.
My main reason for this is that i have a single point which handles the ssl/tls termination and that backend services do not need to handle this.
Base-URL is set to https://somehost.domain (this is externally reachable).
But when visiting https://somehost.domain streama is redirecting the browser to http://somehost.domain/auth/login (which fails because nothing is listening on port 80).
(There are other examples, i.e. after entering user/password the browser gets also redirected to http:// instead of https://)
So it seems that the configured Base URL is not used for all redirects/forwards by streama.
Can this be configured somewhere?
btw: Thanks for streama, keep on doing great stuff like that...

I just found that v1.0.11 is not the latest release but v1.0.19 behaves the same way.

so this is indeed an issue. The way I fixed it, actually, is by setting a redirect from http://somehost.domain to https://somehost.domain in nginx. That worked nicely in my case. Have you tried that?

Could you post your nginx config? I'm having some issues with my proxypass setup to redirect to https.
http works fine.

authors: 0x6373 Duckbuster dularion

repo: dularion/streama


text:
Add User Status to User Data

Database changes. Add user Status whether user is active or not

good morning
On Sat, Aug 14, 2021 at 9:47 AM Hasantha Lakshan @.***>
wrote:

Merged #45 https://github.com/dumidu1998/autoaid-API/pull/45 into main.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/dumidu1998/autoaid-API/pull/45#event-5158253140, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AL6LVGJ7PMMAY5RIYMHLQBTT4XU4BANCNFSM5CEVXG3A
.
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&utm_campaign=notification-email
.

source: gharchive/pull-request

license: MIT

license_source: github-api


text:
Session handling not working in worker mode

I'm trying to use a bigger Symfony application in worker mode. If the caches are warm, it generally works as long as no session is used.
If I visit actions containing e.g. flash message

    {% for type, messages in app.flashes %}
        ...
    {% endfor %}

I get this:
Fatal error:  Uncaught RuntimeException: Failed to start the session. in /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:186
Stack trace:
#0 /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(352): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
#1 /app/vendor/symfony/http-foundation/Session/Session.php(261): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('flashes')
#2 /app/vendor/symfony/http-foundation/Session/Session.php(273): Symfony\Component\HttpFoundation\Session\Session->getBag('flashes')
#3 /app/vendor/symfony/twig-bridge/AppVariable.php(177): Symfony\Component\HttpFoundation\Session\Session->getFlashBag()

Which session driver are you using?

    session:
        name: session-
        handler_id: null
        cookie_secure: auto
        cookie_samesite: lax
        storage_factory_id: session.storage.factory.native
        enabled: true
        storage_id: session.storage.native
        cookie_httponly: true
        gc_probability: 1
        save_path: /app/var/cache/prod_hd0b46c9c54c1cfce0c444726ba0c1595/sessions
        metadata_update_threshold: 0

The following appears to work fine:
session_id(session_create_id());
var_dump(session_start());

Which seems to be about what symfony is doing.
I imagine it is related to the save handler. Does your server's user have write access to /app/var/cache/prod_hd0b46c9c54c1cfce0c444726ba0c1595/sessions? If you can a minimal reproduction sample that'd be fantastic.

What version of Symfony are you using? It looks like session.storage_id doesn't exist. I tried to reproduce the issue, without success so far.

I'm trying to use the latest version of Shopware https://www.shopware.com/en/download which is based on Symfony 5.4.
It does work without the worker mode as a possible hint.
I could also provide an instance with SSH access for you if you'd like.

They are currently moving towards Symfony Flex and Middleware compatibility. I've tested the version which should already be middleware compatible https://github.com/shopware/recipes/blob/main/shopware/core/6.4/public/index.php respectevly https://github.com/shopware/production/tree/flex
They use the regular Symfony sessions.
https://github.com/shopware/platform/blob/trunk/src/Core/Framework/Routing/SalesChannelRequestContextResolver.php#L94

Shopware is not running on any of the tools. We started working in that direction by removing state in classes. For now I would not recommending running such a tool before the entire ecosystem has pushed to this. It could be that extensions holds state which break or show information from previous customer.
Feel free to make pull requests to Shopware to improve the support. As I know also twig globals are only applied once and some variables relating to routing are wrong

Can you explain how did you manage to fix this issue ?
I'm using frankenphp with the symfony-docker template and got the exact same issue.
In dev session works fine but in production mode session works at container launch, but after navigating on few pages everything breaks and session starts throwing an error.
I've tried to used different handler (null, redis, mysql) and had the same results for all 3.
php-1          | {"message":"Warning: session_start(): User session functions are not defined","context":{"exception":{"class":"ErrorException","message":"Warning: session_start(): User session functions are not defined","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185"}},"level":300,"level_name":"WARNING","channel":"php","datetime":"2023-11-29T09:24:58.197360+01:00","extra":{}}
php-1          | {"message":"Warning: session_start(): Failed to initialize storage module: user (path: )","context":{"exception":{"class":"ErrorException","message":"Warning: session_start(): Failed to initialize storage module: user (path: )","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185"}},"level":300,"level_name":"WARNING","channel":"php","datetime":"2023-11-29T09:24:58.197418+01:00","extra":{}}
php-1          | {"message":"Uncaught PHP Exception RuntimeException: \"Failed to start the session.\" at /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 186","context":{"exception":{"class":"RuntimeException","message":"Failed to start the session.","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:186"}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2023-11-29T09:24:58.197581+01:00","extra":{}}
php-1          | {"message":"Warning: session_start(): User session functions are not defined","context":{"exception":{"class":"ErrorException","message":"Warning: session_start(): User session functions are not defined","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185"}},"level":300,"level_name":"WARNING","channel":"php","datetime":"2023-11-29T09:24:58.199112+01:00","extra":{}}
php-1          | {"message":"Warning: session_start(): Failed to initialize storage module: user (path: )","context":{"exception":{"class":"ErrorException","message":"Warning: session_start(): Failed to initialize storage module: user (path: )","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:185"}},"level":300,"level_name":"WARNING","channel":"php","datetime":"2023-11-29T09:24:58.199248+01:00","extra":{}}
php-1          | {"message":"Exception thrown when handling an exception (RuntimeException: Failed to start the session. at /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 186)","context":{"exception":{"class":"RuntimeException","message":"Failed to start the session.","code":0,"file":"/app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:186"}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2023-11-29T09:24:58.199566+01:00","extra":{}}
php-1          | {"level":"error","ts":1701246298.1998334,"msg":"PHP Fatal error:  Uncaught RuntimeException: Failed to start the session. in /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:186
Stack trace:
#0 /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(352): Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage->start()
#1 /app/vendor/symfony/http-foundation/Session/Session.php(261): Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage->getBag()
#2 /app/vendor/symfony/http-foundation/Session/Session.php(283): Symfony\\Component\\HttpFoundation\\Session\\Session->getBag()
#3 /app/vendor/symfony/http-foundation/Session/Session.php(77): Symfony\\Component\\HttpFoundation\\Session\\Session->getAttributeBag()\n#4 /app/vendor/sonata-project/page-bundle/src/CmsManager/CmsManagerSelector.php(81): Symfony\\Component\\HttpFoundation\\Session\\Session->get()
#5 /app/vendor/sonata-project/page-bundle/src/CmsManager/CmsManagerSelector.php(67): Sonata\\PageBundle\\CmsManager\\CmsManagerSelector->isEditor()
#6 /app/vendor/sonata-project/page-bundle/src/Route/CmsPageRouter.php(141): Sonata\\PageBundle\\CmsManager\\CmsManagerSelector->retrieve()
#7 /app/vendor/symfony-cmf/routing/src/ChainRouter.php(192): Sonata\\PageBundle\\Route\\CmsPageRouter->match()
#8 /app/vendor/symfony-cmf/routing/src/ChainRouter.php(158): Symfony\\Cmf\\Component\\Routing\\ChainRouter->doMatch()
#9 /app/vendor/symfony/http-kernel/EventListener/RouterListener.php(111): Symfony\\Cmf\\Component\\Routing\\ChainRouter->matchRequest()
#10 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\\Component\\HttpKernel\\EventListener\\RouterListener->onKernelRequest()
#11 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners()
#12 /app/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch()
#13 /app/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()
#14 /app/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle()
#15 /app/vendor/runtime/frankenphp-symfony/src/Runner.php(35): Symfony\\Component\\HttpKernel\\Kernel->handle()
#16 [internal function]: Runtime\\FrankenPhpSymfony\\Runner->Runtime\\FrankenPhpSymfony\\{closure}()
#17 /app/vendor/runtime/frankenphp-symfony/src/Runner.php(30): frankenphp_handle_request()
#18 /app/vendor/autoload_runtime.php(35): Runtime\\FrankenPhpSymfony\\Runner->run()
#19 /app/public/index.php(5): require_once('...')

I can't debug because when i tried to edit the files on the container, it doesn't change anything, If i well understood the behavior of frankenphp, the app is running on the memory, Is there any way to edit the project and "update" the memory with the new edited files ?

authors: dunglas hhoechtl shyim tdumalin withinboredom

repo: dunglas/frankenphp


text:
Display large environments

What would be the recommended config or steps to display a very large environment?
I am not able to display what we have currently, using the built-in web server mentioned or another web server like IIS. Willing to use something else, just not sure what was suggested.

Your best option will be to filter down how many nodes and edges you are trying to display by adding some filtering options in the prepare command.  I'm going to document these better shortly, but you can see them when you run --help or look here: https://github.com/duo-labs/cloudmapper/blob/c1b3dff043a25d46190cd5b7178f64215db455b3/cloudmapper.py#L52
Your browser or web server should not make a difference.

Awesome, thank you

Documented in the README in https://github.com/duo-labs/cloudmapper/commit/2a0a5d1230505f8a04f5d284d76d6ba6ad7398b8#diff-04c6e90faac2675aa89e2176d2eec7d8

Thanks! I was able to break it down and start on a simpler showing. Is there an option to filter by VPC?

repo: duo-labs/cloudmapper


text:
Problem displaying ECS resources

Hey,
I am not sure if this is a good place to ask for a bit of help, but here goes... My VPC should, among other things, include:

2 load balancers
2 databases
2 ECS clusters with 2 services and 2 tasks - running on fargate

However - anything related to ECS is not shown. I have checked the account-data folder and everything is there. At first, I thought its an issue with security groups between load balancer and ECS so I have changed the security groups to this:

load balancer egress rule only allows traffic to ecs task security group
ecs task ingress rule only allows traffic from load balancer security group

Collected, prepared the data again (even removed everything from account-data) and it didnt change anything. I am 100% sure the problem is somewhere on my end. I have tried cloudcraft, cloudviz and lucidchart as an alternative just to see if they would work and they have the same problem. Some of them do not support fargate afaik.
Is there something else I can do?

I'm closing this issue as the network diagram functionality of CloudMapper is no longer being maintained.  Other features of CloudMapper, such as the audit functionality, is still maintained. If someone is interested in maintaining the network diagram functionality they can look at the issues tagged unmaintained_functionality for all the issues related to this that have been closed as they will unfortunately not be worked on by me.


text:
🛑 Mention Bot is down

In 161b8a3, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 90 ms

Resolved: Mention Bot is back up in a35e2b0.

repo: durof/status


text:
🛑 Mention Robot is down

In f3fd956, Mention Robot (https://backend.isbotdown.com/bots/mentionrobot) was down:

HTTP code: 200
Response time: 86 ms

Resolved: Mention Robot is back up in 52dbe3b after 2 hours, 2 minutes.


text:
AggAgreement may introduce potential attack vector

Describe what you want implemented
Prevent adversaries to flood nodes with high priority messages (i.e. AggrAgreement)
Describe "Why" this is needed
AggrAgreement are used to shortcircuit the consensus in case a node detects that a block should be accepted. Since those messages should be verified as well, an adversary could exploit the high priority to spam nodes and prevent normal (low priority) Agreement to be processed.
Describe alternatives you've considered
Various solutions could be assessed, from processing low-priority messages on a pseudo-random base, to flagging adversaries at Kadcast level and drop their messages.
Additional context
The Flush method of the consensus.Queue returns events ordered by priority

Another potential solution would be to sanity check the AggrAgreement in the AggrAgreementChan in the same fashion of how we sanity check Candidate blocks from the wire before processing them.

repo: dusk-network/dusk-blockchain


text:
got error when run VILA1.5-3b in jetson orin nano with 8gb Ram and we can able to run in Jetson AGX orin but after converting model into tensorrt got error

jetson@ubuntu:~$ jetson-containers run $(autotag nano_llm)   python3 -m nano_llm.chat --api=mlc     --model Efficient-Large-Model/VILA1.5-3b     --max-context-len 256     --max-new-tokens 32     --prompt '/data/images/hoover.jpg'     --prompt 'what does the road sign say?'     --prompt 'what kind of environment is it?'     --prompt 'reset'     --prompt '/data/images/lake.jpg'     --prompt 'please describe the scene.'     --prompt 'are there any hazards to be aware of?'
Namespace(packages=['nano_llm'], prefer=['local', 'registry', 'build'], disable=[''], user='dustynv', output='/tmp/autotag', quiet=False, verbose=False)
-- L4T_VERSION=36.3.0  JETPACK_VERSION=6.0  CUDA_VERSION=12.2
-- Finding compatible container image for ['nano_llm']
[sudo] password for jetson:
dustynv/nano_llm:24.5-r36.2.0
localuser:root being added to access control list
xauth:  file /tmp/.docker.xauth does not exist

sudo docker run --runtime nvidia -it --rm --network host --volume /tmp/argus_socket:/tmp/argus_socket --volume /etc/enctune.conf:/etc/enctune.conf --volume /etc/nv_tegra_release:/etc/nv_tegra_release --volume /tmp/nv_jetson_model:/tmp/nv_jetson_model --volume /var/run/dbus:/var/run/dbus --volume /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket --volume /var/run/docker.sock:/var/run/docker.sock --volume /home/jetson/jetson-containers/data:/data --device /dev/snd --device /dev/bus/usb -e DISPLAY=:0 -v /tmp/.X11-unix/:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth --device /dev/i2c-0 --device /dev/i2c-1 --device /dev/i2c-2 --device /dev/i2c-4 --device /dev/i2c-5 --device /dev/i2c-7 --device /dev/i2c-9 -v /run/jtop.sock:/run/jtop.sock dustynv/nano_llm:24.5-r36.2.0 python3 -m nano_llm.chat --api=mlc --model Efficient-Large-Model/VILA1.5-3b --max-context-len 256 --max-new-tokens 32 --prompt /data/images/hoover.jpg --prompt 'what does the road sign say?' --prompt 'what kind of environment is it?' --prompt reset --prompt /data/images/lake.jpg --prompt 'please describe the scene.' --prompt 'are there any hazards to be aware of?'
/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py:124: FutureWarning: Using TRANSFORMERS_CACHE is deprecated and will be removed in v5 of Transformers. Use HF_HOME instead.
warnings.warn(
Fetching 13 files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 13/13 [00:00<00:00, 41782.34it/s]
Fetching 17 files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 17/17 [00:00<00:00, 41893.75it/s]
05:46:09 | INFO | loading /data/models/huggingface/models--Efficient-Large-Model--VILA1.5-3b/snapshots/42d1dda6807cc521ef27674ca2ae157539d17026 with MLC
05:46:11 | INFO | running MLC quantization:

python3 -m mlc_llm.build --model /data/models/mlc/dist/models/VILA1.5-3b --quantization q4f16_ft --target cuda --use-cuda-graph --use-flash-attn-mqa --sep-embed --max-seq-len 256 --artifact-path /data/models/mlc/dist/VILA1.5-3b-ctx256 --use-safetensors
Using path "/data/models/mlc/dist/models/VILA1.5-3b" for model "VILA1.5-3b"
Target configured: cuda -keys=cuda,gpu -arch=sm_87 -max_num_threads=1024 -max_shared_memory_per_block=49152 -max_threads_per_block=1024 -registers_per_block=65536 -thread_warp_size=32
Automatically using target for weight quantization: cuda -keys=cuda,gpu -arch=sm_87 -max_num_threads=1024 -max_shared_memory_per_block=49152 -max_threads_per_block=1024 -registers_per_block=65536 -thread_warp_size=32
Get old param:   0%|                                                                                | 0/197 [00:00<?, ?tensors/sStart computing and quantizing weights... This may take a while.                                                                                | 0/327 [00:00<?, ?tensors/s]
Get old param:   1%|█▍                                                                                | 2/197 [00:02<04:00,  1.23s/tensors]Traceback (most recent call last):                                                                                | 1/327 [00:02<15:57,  2.94s/tensors]
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/opt/NanoLLM/nano_llm/chat/main.py", line 30, in
model = NanoLLM.from_pretrained(
File "/opt/NanoLLM/nano_llm/nano_llm.py", line 73, in from_pretrained
model = MLCModel(model_path, **kwargs)
File "/opt/NanoLLM/nano_llm/models/mlc.py", line 59, in init
quant = MLCModel.quantize(self.model_path, self.config, method=quantization, max_context_len=max_context_len, **kwargs)
File "/opt/NanoLLM/nano_llm/models/mlc.py", line 278, in quantize
subprocess.run(cmd, executable='/bin/bash', shell=True, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python3 -m mlc_llm.build --model /data/models/mlc/dist/models/VILA1.5-3b --quantization q4f16_ft --target cuda --use-cuda-graph --use-flash-attn-mqa --sep-embed --max-seq-len 256 --artifact-path /data/models/mlc/dist/VILA1.5-3b-ctx256 --use-safetensors ' died with <Signals.SIGKILL: 9>.

/data/models/mlc/dist/VILA1.5-3b-ctx256 --use-safetensors ' died with <Signals.SIGKILL: 9>.

Hi @thalapandi , getting a message of killed or SIGKILL means that your board likely ran out of memory - try mounting SWAP, disabling ZRAM, and disabling the desktop UI like in these steps:
https://github.com/dusty-nv/jetson-containers/blob/master/docs/setup.md#mounting-swap
Or if you already have it quantized on AGX, you should be able to copy those over to your Nano.  The quantized versions of the models get saved under jetson-containers/data/models/mlc/dist.  Copy it to same location under jetson-containers on your Nano, as that is where it expects to find the quantized model, and will re-generate them if it does not.

authors: dusty-nv thalapandi

repo: dusty-nv/jetson-containers


text:
How to capture HDMI input for detectnet?

Hi,
My project is to get the hdmi input for the detectnet. I have bought a HDMI-to-USB adapter and HDMI-to-csi board, but both fail to capture the video...
It will be funny that I need to use a csi camera to look at a monitor for detectnet. :<
I have searched the nvidia forum but don't get the right answer. May I know the criteria format for the detectnet to capture the video? YUV422? Is there any code I can modify for my capturing device?
And is there any cheap HDMI capturing device that work with nano? Thx
This is my question in nvidia forum, thx
https://forums.developer.nvidia.com/t/input-video-from-usb-capturing-device-core-dump-in-video-viewer-detectnet/188812/4

Closing this issue as it was resolved on the forum thread.

repo: dusty-nv/jetson-inference


text:
Newer object detection architecture

Hi Dusty,
Thanks very much for your amazing work and clear guides!
I added custom OD to my C++ application on the Jetson Xavier NX using this useful repo.
However, I have concerns that the SSD arch may limit the performance in some scenarios (e.g. small objects) and also not sure I want to commit to this arch for the long run.
Is adding a newer object detection architecture part of the roadmap?
Alternatively, is the Detectnet supposed to be just an example and there is relatively simple way to use TensorRT with C++ app and some custom ONNX model I have?
Many thanks!
Matan

Thanks very much for your answer! it gives several promising paths!


text:
Available keys are not expired when expiration is set

Following the change introduced in this pull request: https://github.com/dv/redis-semaphore/pull/24
The semaphore keys are created with the correct TTL in redis but when using BLPOP, the redis "available key" will be deleted and will lose its ttl. When the lock is released and the token added back to the list the key will exist again without its expiration set.
I think a simple expire could be set in the signal step to fix this?

Good observation, thanks! @dany1468 fixed it, should end up in the next version.

authors: dv skateinmars

repo: dv/redis-semaphore


text:
Plugin not loading

I installed the plugin and it says that the plugin is not compatible with the server's version. I use Spigot 1.8.8 What can I do? Thanks

I have the same problem :/

use 4.1.5

This issue has been completely removed in the newest versions of eZProtector, you should update.

We are on version 4.2.5 allready. So pls update :-)
hm i beging to think  that may many owners never noticed DoNotPSamPls have  turned over this Project and turns on this great Little masterpeace 🥉

authors: BlackHawk2306 CloudeLecaw DoNotSpamPls NotAHackedCookie


text:
Display contents after scanning QR codes

Added logic to assemble QR code chunks and get jws payload.
Added page to display Patient and Immunization data

User is redirected to this page after clicking the "View Contents" button in the scan qr code page.
Page looks very similar to Patient show page without the edit and destroy buttons.

This is currently branched off the scan-qr-codes PR and I used examples from https://smarthealth.cards/examples/ to test.

@Jammjammjamm Updated jws_payload view to display an HTML page instead of just rendering json when Patient wasn't in bundle.  Did we want to use something like json-viewer-js to display the json and make it easier to navigate?

I think it's fine as-is for now. We can add that later if necessary.


text:
Customization

Hello,
Is there any way i can customize the layout of the generated invoice?
I mean something like adding extra text before the client data, changing font size or weight, etc.
Thx!

Not at the moment, but we are taking all suggestions into consideration. I'll be sure to note it down as a feature request.
Thanks for your feedback!

authors: DimitrieStraoanu dveldhoen

repo: dveldhoen/easyinvoice


text:
Running on own dataset

Hi,
I am planning to run this on cityscapes dataset to check the results(Detection got from instance).However It seems extremely complicated to train a simple network. Just changing the image paths is not sufficient.
Are you planning to add any read me on how to train on other datasets?
If not could you let me know what all I files I would need to change to simply train ?

@athus1990  Did you tried the training.py script? If yes, you can see the script involved in the training process. In general, datasets.py, loader.py, and training.py. I recommend to you try to train using the VOC and COCO dataset with different images. There is a demo.py also.
When you said: Just changing the image paths is not sufficient. what do you mean by that? Did you got and error?

Hi @athus1990,
I'm planning to rewrite the data pipeline with the new tensorflow Dataset functionality to make it neater.
For now, if you want to run it with another dataset, you need to create a new loader that reads images and their annotations (similar to voc_loader.py or coco_loader.py) and to write a function in datasets.py that encodes your data into TFRecords.
P.S. To train on a new dataset is almost never as easy as just changing the paths ;)

@fastlater @dvornikita Thanks a lot for the comments. Yea I prepared my data to match the VOC datatsets(xml annotations and image labels for segmentation).It is just that somewhere in the middle things fail and I need to debug using breakpoints in pycharm. It gets pretty complicated as even the data loader is using TF and parallel reading modules and unless you run the graph you wont know what went wrong.
I was just wondering if you could add a simple readme for the steps to be taken for new dataset. Or at least have an alternative simple data loader/reader like you said. I shall work on it and post my experiences or changes I made for it to work with cityscapes too.
Thanks a lot!

@fastlater @dvornikita I have started training on cityscapes successfully. However I had a question regarding the classes.

As you can see in cityscapes dataset not all segmentation classes have detection. In your code I have used the same classnames so they match the same segmentation ids.Therefore for segmentation classids 0 to 10 there are no bounding boxes at all from xml files.Do you think this will affect the performance of the other classes that have detentions while training?

@hondaathma Well, I haven't train the model with new classes yet.
3 ideas for the missing bounding boxes:

Check in the internet if someone added the boxes and uploaded the file somewhere.
Create a code to check pixels through the segmented ground truth and automatically add the box.
Manually add them using labelImg (desperate approach but just in case that to test this dataset is important for you).

If you wanna try with changes in the code, you will have to wait for @dvornikita  reply.

@fastlater  A quick update,
I was able to still train with the imbalance is classes without much change to the code. that is the object detector predicts boxes for all the classes that have bboxes and the segmentation segments all the classes even background(like road,sidewalk etc.). The accuracy is not that great.But this might be because of the citsycapes image size is very huge and resizing to 300 or 512 doesnt make sense.
"Create a code to check pixels through the segmented ground truth and automatically add the box."
-is not a good idea. objects that are close together will be segmented as one cluster.putting a bounding box over all of them will just give one huge bbox.What we need is instance.
Any way the point is the net still works without the need for classes to have both bbox an segmentation Ground truth.
Thanks!

Hi @hondaathma, I think it makes perfect sense to not detect the sky, fences, vegetation and so on. As for traffic signs, you can obtain boxes from instance segmentation masks. In the mode where you have fine annotation and ignoring crowd annotations for this class, I guess you will be able to train the model better. Ideally, you would like to not consider anchor boxes that match to crowd annotations at all in the final loss, to not confuse the network by penalizing these detections. Unfortunately, this functionality is not implemented in our pipeline.

Ideally, you would like to not consider anchor boxes that match to crowd annotations at all in the final loss, to not confuse the network by penalizing these detections.

Hey @dvornikita when you said crowd annotations  you mean boxes that fall on sky,fences,vegetation and so on right(and not on car pedestrian and so on right)?
One more question. when you  choose anchor boxes sizes how do you do it? for example if we find the mean bounding box size of pedestrians in the image can we use that as information to change the anchor size? If so where should I change or add more anchor sizes in the code?
Only place i see it is in  'aspect_ratios': [[2], [2, 3], [2, 3], [2, 3], [2], [2]], in config.py but I dont understand what these numbers mean?
Thanks for all your help.

@hondaathma I meant something different. Sometimes a bunch of cars or street signs could be segmented as one instance of its class with mark "crowd" or so. It typically happens when the instances are too small to label each separately and are close to each other so they could be grouped and labeled as one thing.
The initial tiling is not conditioned on anything (neither on the classes) so you would bias by doing so. If it is your plan, do it as follows:
Let's say we have L - a list of lists - which is parameter defining aspect ratios, let's say L = [[2], [2, 3], [2, 3], [2, 3], [2], [2]]. It's necessary that len(L) = n, where n is the number of layers from which you do detection - the number of layers in the upscale-stream. If L[i] = [2, 3] it means that for the i'th layer we use 5 sets of bounding boxes with different aspect ratios: [1, 2, 1/2, 3, 1/3]. If L[i] = [2] then it's [1, 2, 1/2] and so on.

I want to test the blitznet on the cityscapes, however, i get the 'InvalidArgumentError (see above for traceback): assertion failed: [labels out of bound] [Condition x < y did not hold element-wise:x (mean_iou/confusion_matrix/control_dependency:0) = ] [11 11 11...] [y (mean_iou/ToInt64_2:0) = ] [21]' error, @hondaathma. Can you provide some advise?

@kecaiwu I believe something is wrong with the evaluation mean ap caluclation. In the code the meanAP for detection is calculated over all the classes. but mean in cityscapes has to be only from class 11 to class 20( as class1 to class 10 are all background,road etc..).
so i had to change this function evaluation.py
 def compute_ap(self):
        """computes average precision for all categories"""
        aps = {}
        for cid in range(11, self.loader.num_classes-1):
            cat_name = self.loader.ids_to_cats[cid]
            rec, prec = self.eval_category(cid)
            ap = voc_ap(rec, prec, self.loader.year == '07')
            aps[self.loader.ids_to_cats[cid]] = ap
        print 'calculated MAP for number of class: '+str(len(range(11, self.loader.num_classes)))
        return aps

Try debugging it step by step to see where exactly it is failing.

Thank your for help, now is ok  @hondaathma

Hi @hondaathma
I just started using this network and also interested in training it on Cityscapes. Can I ask a few questions regarding how to train on Cityscapes? First question is where i can download the Cityscapes instance dataset? Their Download page seems not have instance segmentation?  Second question is if you could share the process what you have changed to make it work on Cityscapes and how you turn the instance segmentation to bounding boxes? Really appreciate your help!

Closing due to lack of recent activity.

@hondaathma
Hello, thank you for your training in the cityscapes!
Recently, I also trained with blitznet on cityscapes. The category settings for detection and segmentation are consistent with you.
I want to know what is the final detected mAP and split mIoU that you get? I finally got 42.2 mAP and 50.6 mIoU after training 65,000 iterations. I feel that the split score is too low, and the test score is too high.I will be very grateful to you if you tell me the results of the final detection and segmentation you got.

authors: athus1990 dvornikita fastlater hondaathma kecaiwu pengjizhi wzhouuu

repo: dvornikita/blitznet


text:
training scripts and training data

Hi @dwadden, could you share the training scripts and data of LongCheaker?

Hi, sorry for the delay, I'll try to get the code cleaned up and added to the repo in the next couple weeks. If you need it sooner, email me at dwadden@cs.washington.edu and we can figure something out.

Hi @dwadden, I have emailed dwadden@cs.washington.edu about two weeks. Looking forward to hearing from you.

Hi,
I'll do my best to get the training scripts posted over the weekend. Sorry for the delay.
I can't find an email separate from this GitHub thread. Did you send a separate email?
Dave

Yes, I send a separate email.
Don't worry, take your time.

Hi David, do you have any progress on it?

@dwadden Hi David, I am also eagerly looking forward to your training code.

Hi all, sorry for the delay, I'll try my best to get this done this week.

Cannot trust you anymore...

I apologize, and understand your frustration. I will reopen this ticket if the situation changes.

Training code is finally available. See here for details. Sorry if this is too late to be useful.

authors: DakeZhang1998 Elfsong dwadden

repo: dwadden/multivers


text:
Very slow

Not as much a bug as I'm just curious if it's just my computer or is this normal. But triggering the hints takes about 2 seconds to appear. That is too slow to make it usable.

Same here, the delay makes it unusable. For reference I'm on macOS 10.15.5, installed via homebrew.

@mihar thanks for letting me know, we are finding solutions for it. You can temporarily restart your MAC to improve the speed.

Love this app. Just have the same lag issue here on my Apple Silicon MacBook Pro 8GB. Looking forward to the next version!

Any chance we could see the code to fix this? This is unfortunately an unusable app in current state.

Any chance we could see the code to fix this? This is unfortunately an unusable app in current state.

As my tested, we can't do anything, the app simple using accessibility api to query UI elements, the same code, the same UI but the query time varies between test. One more thing: I guess API using synchronous task on Main thread, I try dispatch async to query  but not improve at all.

As my tested, we can't do anything, the app simple using accessibility api to query UI elements, the same code, the same UI but the query time varies between test. One more thing: I guess API using synchronous task on Main thread, I try dispatch async to query  but not improve at all.

It would be great to contribute to this directly. I suspect (without any clue how the code works so with a grain of salt) there are lower level apis, and a way to cache the results given some assumptions, especially around some some specific OS X features that are used commonly that have semi static elements like the dock/menu bar. There may also be a way to make some assumptions for many common apps, although not ideal it could theoretically be done and may be easier to maintain.  Are you dispatching async tasks in parallel? what apis are you using to query the ui elements?

@Ashtonian Can you help me do some small test? When you are facing slow on any application, go to System Preferences and Find for Voice Control. Enable it then focus on the app that you feeling slow, then active Voice control by say "Show numbers" then compare the speed of native Mac Voice Control with VimMotion.

Basically app recursive call AXUIElementCopyAttributeValues to query all UIElements then filter commons UI "Label, Button, Text Field, Button, Image....". I don't want goes with cache solution because UI constantly update make cache outdate easily , StatusBar already preload and cache by default  and refresh when app detect new app open or close.

When I use show numbers in apps its pretty responsive, the real test though would be the desktop which is what I want to use vimmotion for and it seems like the voice controls don't account for that. Can you share a snippet of calling that accessibility api? I'd like to play with it if possible.

Did you make the test when you facing slow on VimMotion?
This func using to query array of child element.
func subElements(element: AXUIElement) -> [AXUIElement]? {          var subElements: CFArray?         var count: CFIndex = 0         var error: AXError         error = AXUIElementGetAttributeValueCount(element, kAXChildrenAttribute as CFString, &count)         if error != .success { return nil }         error = AXUIElementCopyAttributeValues(element, kAXChildrenAttribute as CFString, 0, count, &subElements)         if error != .success { return nil }         return subElements as? [AXUIElement]     }
But you need the app root element first, get it by find App p_id
func element(from pID: pid_t) -> AXUIElement {         return AXUIElementCreateApplication(pID) }
For example get Dock process Id from Bundle Id:
func dockElements() -> AXUIElement {         guard let dock = NSRunningApplication.runningApplications(withBundleIdentifier: "com.apple.dock").first else {             onComplete([])             return         }         let dockPID = dock.processIdentifier         let dockRootElement = AXUtilities.element(from: dockPID)     }

You can add options to exclude menu bar icons as well as a option to only query the api for the ui elements of the current app. Caching will also improve speed

Menu prequery and cached in the background, the cache refesh when new app open or closed app.

Nowhere near 2 seconds on my 16" M1 but still too sluggish to be something I'd end up using much :/
Some ideas:
-Allow filtering what elements to look for (good idea either way - for example I see no point in being able to select within a website, I use Vimari for that...)
-Chunk search and populate elements as they come - would also mean menu bar appearing instantly.
-Optional mode where it updates in background every few seconds + after each time VimMotion is used or fg app switched.

Would love if it were faster similar to Vimac. This finds much more than Vimac, so this is amazing other than the speed.

same as @DylanOpet  on my mac it's very very slow sometime it freezes and never display the hint shorcuts

I am experiencing the same delay. The workflow is amazing and has so much promise, but the delay is too much for me to use it.
If you need any testing or help on the topic have a M1 MacBook Air here - happy to run a clean OS installation etc.

Maybe it could help if you could have an option to ignore the menubar and the dock bar, there are other alternatives to keyboard-target those, these would reduce the number of elements you need to parse

+1 on the delay, takes ~2s for hints to appear after using shortcut. M2 Mac Mini, macOS Sonoma 14.2, Vim Motion version 1.2.3.

authors: Ashtonian DylanOpet eugenesvk italo-amaya-utec lshigw mihar mrsnakeoil sjrothfuss tolgraven viettrungphan ycanerol yecine06

repo: dwarvesf/VimMotionApp

license: Unlicense


text:
Deprecate VirtualGraphComposite

Closes https://github.com/dwavesystems/dwave-system/issues/531 and https://github.com/dwavesystems/dwave-system/issues/54

We should update the tests with assertWarns for the deprecation warning. I know we already have a few warnings when we run the tests, but I'd like to not make it worse.

authors: JoelPasvolsky arcondello

repo: dwavesystems/dwave-system


text:
Multi language support

Using support by Laravel.
Primary support for English only.

Lets check this package
https://github.com/barryvdh/laravel-translation-manager
It does NOT replace laravel translations, it helps doing the job using a GUI, maybe we can create our very own translation manager GUI

@gdbhosale please assign it to me, Im working on it, I expect to make a PR by the end of the week

any news on this?

This feature should be responsibility of the final developer, translation
for modules that are user generated cannot be predicted
El El lun, 9 de ene. de 2017 a las 9:10 a.m., josiasleal <
notifications@github.com> escribió:

any news on this?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/dwijitsolutions/laraadmin/issues/75#issuecomment-271293106,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE8FWV2c7d5mV_idLPo7n-drR1APIUdgks5rQj-9gaJpZM4KZYSu
.

authors: gdbhosale josiasleal slozano95

repo: dwijitsolutions/laraadmin


text:
可否在提出一层抽象以便适用于任何联动

你好,我有个想法,就是在 省-市-区-街道 再提出一层抽象,就是 UI + data = 联动,其中data有可能是2-4层之间,提供的json的数据 省[key1] - 市[key2]-区[key3]..., 其中key1,2,3...是可以自定义的,自定义的key并与json的key是一致的!这样就可以适用于了任何联动了,比如网站自定义,经营类型,省区等...

你是意思是   我只给 UI 然后 data 数据由调用方提供   然后按照约定来配置 value 和 key ?

@dwqs 是的,这样的话这份数据是后端给的,这好编辑/修改,就想省区市联动,就算前端持有数据,其实后端也会有一份一样的数据.数据是外部引入的话就可以定制联动了

这个 idea 可以   我会先写个 demo 看看

@dwqs 好的,期待种...

对于多级联动  那怎么约束调用方的 data 呢？因为联动的数据调用方应该都是按照某中格式组织好了的  如果按照我约定的格式传递数据  这可能会导致调用方会重新梳理一遍数据   我觉得这个对调用方不太友好 @rplees

@dwqs 您好,我有个思路是怎么去取到自己想要的data,不知道是否可行,data有2种格式
第一种统一格式(组件内部定义的),其中 items 是约定这样的
data = [
	{'键1' : '值1', items: [{
		'item0键1' : 'item0值1', items:[{}...]
	}...
]}
...
]

还有二种当用户自定义的时候如:
data = [
{
	cKey:'键1'
	cText:'值1',
	cItems:[
		{cKey:'item0键1', cText:'item0值1', cItems:[{}...]}...
	]
} ....
]

可以加上一个约定来定义怎么取,其实最终转换成组件的格式(第一种格式)
data-schema = [ {key:'cKey',value:'cText', items:'cItems'}... ]
//或者
data-schema = {key:'cKey',value:'cText', items:'cItems' }

如果3级联动 data-schema 只定义了 1 个长度, 则每级都采用系统的格式,
意思就是
if(当前第几级 <= level) {
	let curr-data-schema = data-schema[当前第几级] || data-schema[0]
}

注: 第二种格式加个转换的方法变成第一种数据,组件内部就一直使用第一种格式的data
组件其他属性都应该不需要去修改

level
type - text/code/all
placeholder=['选择省', '选择市']
v-model - Vue
defaultArea=['400000', '401000'] - React

👍 @rplees

v5版本已近接近一个通用的联动选择器了，数据格式见 area-data

@dwqs 好的,这就去试试看 [强]

authors: dwqs rplees

repo: dwqs/vue-area-linkage


text:
fix: Fix device invitation

Motivation / Background

This Pull Request ...
Details

Additional information

Current dependencies on/for this PR:

main

PR #5672   👈

This stack of pull requests is managed by Graphite.

repo: dxos/dxos


text:
lpPositionId  question  :  "msg": "Invalid LP position id"

const withdrawal_result = await web3Client_test.private.createFastWithdrawal(
    {
        lpStarkKey: test_account_info.account.starkKey,
        creditAsset: 'USDC',
        creditAmount: '60',
        debitAmount: '100',
        toAddress: walletAddress,
        lpPositionId: '1',
        expiration:  new Date(new Date().getTime() + 60 * 60 * 1000 * 24 * 8),
        clientId,
    },
    test_account_info.account.positionId,
)

it Always reminding me of 'Invalid LP position id',  when i wanna createFastWithdrawal
Does anyone have a similar problem?

I have another problem with this method, seems like it doesnt work
TypeError: Cannot read property 'replace' of undefined
    at stripHexPrefix (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/starkex-lib/build/src/lib/util.js:109:29)
    at Object.hexToBn (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/starkex-lib/build/src/lib/util.js:66:32)
    at SignableConditionalTransfer.calculateHash (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/starkex-lib/build/src/signable/conditional-transfer.js:42:44)
    at SignableConditionalTransfer.getHashBN (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/starkex-lib/build/src/signable/stark-signable.js:29:39)
    at SignableConditionalTransfer.sign (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/starkex-lib/build/src/signable/stark-signable.js:37:35)
    at Private.createFastWithdrawal (/Users/denis/Desktop/dydx/node_modules/@dydxprotocol/v3-client/build/src/modules/private.js:361:56)

Realized that lpPositionId needs to be always 2 ... Don't ask me why.
Got stuck, however with "Invalid signature for fast withdrawal" by calling fast withdrawal
Any idea on that?

authors: DenisAl-Hazo WuWhite sirroger5000


text:
GPU: [Linux] Print more detailed Intel Integrated Graphics info.

Description

glxinfo could be used here.

For anyone who stumbles across this with an Intel GPU in their system. Can you send me the output of this command?
lspci -mm | awk '/"Display|"3D|"VGA/'

Knowing all of the different formats of the Intel output will allow us to more easily add detailed support for Intel GPUs.

repo: dylanaraps/neofetch


text:
[Snyk] Security upgrade @babel/helper-module-imports from 0.0.0-use.local to 7.0.0

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/babel-helper-module-transforms/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Directory Traversal SNYK-JS-SOURCEMAPSUPPORT-6112477
  170

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)

repo: dylansnyk/babel


text:
[Snyk] Security upgrade express from 4.18.2 to 4.20.0

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

plugins/techdocs-node/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Regular Expression Denial of Service (ReDoS) SNYK-JS-PATHTOREGEXP-7925106
  67

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)

repo: dylansnyk/backstage


text:
[Snyk] Fix for 55 vulnerabilities

Snyk has created this PR to fix 55 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

plugins/events-backend-module-github/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Remote Code Execution (RCE) SNYK-JS-JSONPATHPLUS-7945884
  275

Remote Code Execution (RCE) SNYK-JS-MYSQL2-6591085
  275

Arbitrary Code Injection SNYK-JS-MYSQL2-6670046
  275

Regular Expression Denial of Service (ReDoS) SNYK-JS-ANSIREGEX-1583908
  265

Regular Expression Denial of Service (ReDoS) SNYK-JS-SEMVER-3247795
  265

Regular Expression Denial of Service (ReDoS) SNYK-JS-ZOD-5925617
  264

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-7577916
  224

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-7577917
  224

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-7577918
  224

Server-side Request Forgery (SSRF) SNYK-JS-IP-6240864
  221

Incomplete List of Disallowed Inputs SNYK-JS-BABELTRAVERSE-5962462
  218

Prototype Pollution SNYK-JS-MYSQL2-6861580
  198

Information Exposure Through an Error Message SNYK-JS-BACKSTAGEBACKENDAPPAPI-6229731
  190

Server-side Request Forgery (SSRF) SNYK-JS-REQUEST-3361831
  185

Uncontrolled resource consumption SNYK-JS-BRACES-6838727
  169

Regular Expression Denial of Service (ReDoS) SNYK-JS-CROSSSPAWN-8303230
  169

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-8187303
  169

Denial of Service (DoS) SNYK-JS-HTTPPROXYMIDDLEWARE-8229906
  169

Denial of Service (DoS) SNYK-JS-WS-7266574
  169

Path Traversal SNYK-JS-BACKSTAGEBACKENDCOMMON-6274391
  164

Information Exposure SNYK-JS-FOLLOWREDIRECTS-6444610
  159

Improper Handling of Extra Parameters SNYK-JS-FOLLOWREDIRECTS-6141137
  158

Path Traversal SNYK-JS-WEBPACKDEVMIDDLEWARE-6476555
  158

Cross-site Scripting (XSS) SNYK-JS-WEBPACK-7840298
  155

Uncontrolled Resource Consumption ('Resource Exhaustion') SNYK-JS-TAR-6476909
  142

Missing Release of Resource after Effective Lifetime SNYK-JS-INFLIGHT-6095116
  131

Improper Verification of Cryptographic Signature SNYK-JS-ELLIPTIC-8172694
  130

Regular Expression Denial of Service (ReDoS) SNYK-JS-PATHTOREGEXP-8482416
  125

Inefficient Regular Expression Complexity SNYK-JS-MICROMATCH-6838728
  124

Server-Side Request Forgery (SSRF) SNYK-JS-IP-7148531
  119

Prototype Poisoning SNYK-JS-MYSQL2-6591084
  118

Use of Web Browser Cache Containing Sensitive Information SNYK-JS-MYSQL2-6591300
  118

Regular Expression Denial of Service (ReDoS) SNYK-JS-ADOBECSSTOOLS-6096077
  114

Improper Verification of Cryptographic Signature SNYK-JS-BROWSERIFYSIGN-6037026
  114

Asymmetric Resource Consumption (Amplification) SNYK-JS-BODYPARSER-7926860
  111

Prototype Pollution SNYK-JS-TOUGHCOOKIE-5672873
  111

Cross-site Scripting (XSS) SNYK-JS-SERIALIZEJAVASCRIPT-6147607
  109

Cross-site Scripting (XSS) SNYK-JS-ROLLUP-8073097
  108

Denial of Service (DoS) SNYK-JS-GRAPHQL-5905181
  104

Denial of Service (DoS) SNYK-JS-NWSAPI-2841516
  87

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') SNYK-JS-AZUREIDENTITY-7246760
  85

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') SNYK-JS-AZUREMSALNODE-7246761
  85

Cross-site Scripting SNYK-JS-EXPRESS-7926867
  79

Cross-site Scripting SNYK-JS-SEND-7926862
  79

Cross-site Scripting SNYK-JS-SERVESTATIC-7926865
  79

Open Redirect SNYK-JS-EXPRESS-6474509
  74

Regular Expression Denial of Service (ReDoS) SNYK-JS-PATHTOREGEXP-7925106
  67

Regular Expression Denial of Service (ReDoS) SNYK-JS-WORDWRAP-3149973
  57

Regular Expression Denial of Service (ReDoS) SNYK-JS-FASTXMLPARSER-7573289
  49

Resource Exhaustion SNYK-JS-JOSE-6419224
  49

Improper Input Validation SNYK-JS-POSTCSS-5926692
  45

Cross-site Scripting (XSS) SNYK-JS-COOKIE-8163060
  44

Improper Input Validation SNYK-JS-NANOID-8492085
  44

Regular Expression Denial of Service (ReDoS) SNYK-JS-ADOBECSSTOOLS-5871286
  42

Regular Expression Denial of Service (ReDoS) SNYK-JS-FASTXMLPARSER-5777726
  40

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Information Exposure Through an Error Message
🦉 Path Traversal
🦉 More lessons are available in Snyk Learn

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)


text:
DTWAIN_TN_ACQUIRESTARTED not sent to application's DTWAINCallbackProc until acquisition is complete

Originally found in my application (VS2019, 32-bit, Qt application, latest DTWAIN).
I have a case statement handler for DTWAIN_TN_ACQUIRESTARTED in my callback proc. Currently it does nothing but log a message and reset a transfer count variable to zero.
Noticed in my log file that the message didn't appear until after the acquisition was done. Placing a breakpoint shows that it doesn't hit until after acquisition.
If I comment out the DTWAIN_StartTwainSession() call in my application then DTWAIN_TN_ACQUIRESTARTED 'fires' at the correct time.
If I leave the DTWAIN_StartTwainSession() call in place, then I have to have a "return false;" like this in my MainWindow::nativeEvent() call:
bool MainWindow::nativeEvent(const QByteArray& eventType, void* message, long* result)
{
Q_UNUSED(result);
Q_UNUSED(eventType);
MSG* msg = reinterpret_cast<MSG*>(message);

if (msg->wParam == 1003)
{
	LogInfo("nativeEvent received -- 1003");
	return false;
}

DTWAIN_BOOL isDTWAINMsg = DTWAIN_IsTwainMsg(msg);
if (isDTWAINMsg)
{
	LogInfo("DTWAIN message received");
	return true;
}
return false;

}
The DTWDEMO app uses DTWAIN_StartTwainSession() but the app architecture/etc. is different. There are multiple message loops (the "Main" loop and calls to a WaitLoop() in each acquire method.
The issue seems to be related to the CallWindowProc() in the following code in ctlwproc.cpp:
LRESULT ExecuteDTWAINCallbacks(CTL_TwainDLLHandle *pHandle, HWND hWnd, UINT uMsg,
WPARAM wParam, LPARAM lParam, bool bPassMsg, bool bCallDefProcs)
{
LRESULT lResult = 0;
if ( pHandle )
{
if ( !pHandle->m_bNotificationsUsed )
bPassMsg = FALSE;
    // Check if there is a session window defined, if so call it's window proc
    // This is also a notification message, so we can safely skip the CallWindowProc
    // return if there is also a callback defined
    if ( bPassMsg && !pHandle->m_bUseProxy
        #ifdef _WIN32
            && pHandle->m_hOrigProc
        #endif
      )
    {
        #ifdef _WIN32
        lResult = CallWindowProc((WNDPROC)pHandle->m_hOrigProc, hWnd, uMsg, wParam, lParam);
        #endif
        // Called if only callback exists
        if (CALLBACK32_EXISTS(pHandle))
            lResult = ExecuteCallback<DTWAIN_CALLBACK_PROC, LONG>(pHandle->m_pCallbackFn, hWnd, uMsg,
                                                                  wParam, lParam, pHandle->m_lCallbackData);
        if (CALLBACK64_EXISTS(pHandle))
            lResult = ExecuteCallback<DTWAIN_CALLBACK_PROC64, LONGLONG>(pHandle->m_pCallbackFn64, hWnd, uMsg,
                                                                        wParam, lParam, pHandle->m_lCallbackData64);

If I skip that call then the DTWAIN_TN_ACQUIRESTARTED fires/is hit when expected.
Maybe the code needs to skip that call if the CALLBACK32/64_Exists() ?
Something more like:
        if (CALLBACK32_EXISTS(pHandle))
                  .... do something
        else if (CALLBACK32_EXISTS(pHandle))
                  .... do something
        **#ifdef _WIN32
        else
                 lResult = CallWindowProc((WNDPROC)pHandle->m_hOrigProc, hWnd, uMsg, wParam, lParam);
        #endif**

I'm going to test this change to see if it fixes this issue. (Probably won't get to this until tomorrow night.)
I've tried a number of different ways of setting up/registering the Qt event method/filter. I've also tried different ways of getting the HWND for the Qt window. All have the same results.

Ok, I lied. I just tried it. Changing that code above to the following seems to resolve the issue:
        // Called if only callback exists
        if (CALLBACK32_EXISTS(pHandle))
            lResult = ExecuteCallback<DTWAIN_CALLBACK_PROC, LONG>(pHandle->m_pCallbackFn, hWnd, uMsg,
                                                                  wParam, lParam, pHandle->m_lCallbackData);
        else if (CALLBACK64_EXISTS(pHandle))
            lResult = ExecuteCallback<DTWAIN_CALLBACK_PROC64, LONGLONG>(pHandle->m_pCallbackFn64, hWnd, uMsg,
                                                                        wParam, lParam, pHandle->m_lCallbackData64);

#ifdef _WIN32
else
lResult = CallWindowProc((WNDPROC)pHandle->m_hOrigProc, hWnd, uMsg, wParam, lParam);
#endif
Is there a reason that the DTWAIN callback and the original callback need to be called at the same time? Would this change cause any issues?
I'll do some more testing tomorrow night (for real now).

Looking at the code in the last comment:
The one issue I see (without debugging) is that the user-defined window proc and the user-defined callbacks really should exist independently of one another.  For example, the app can have a window proc, and a totally separate callback function being utilized.
Note that the code you have to address your specific issue, there is a hierarchy as to which function will be called, the CALLBACK32, then the CALLBACK64, and then the window proc (after falling through the else logic).  It would be best to try and avoid having to do this, as this places a strict ordering of callbacks and window procedure that may adversely affect other client applications.
Conditionally calling the window proc if callbacks exists will break the independence between callback and window proc.   Is your callback and window proc pointing to the same function, and thus there is an intermingling in your application between window proc and callback?  If so, can you separate the two out in some way, so that they are not conflicting with each other?
DTWAIN could possibly introduce some sort of system, where callbacks can be called in some order and which ones to invoke (32, 64, and/or the window proc), however at the current time, all callbacks and window procs must remain independent.

After some more debugging and digging this issue seems to be related to using the DTWAIN_SetTwainDSM(DTWAIN_TWAINDSM_VERSION2) call.
I just noticed that when I debug DTWDEMO that it didn't go into the following DTWAIN code:
if (!TwainMessageLoopV2::s_MessageQueue.empty())
{
    MSG msg = TwainMessageLoopV2::s_MessageQueue.front();
    TwainMessageLoopV2::s_MessageQueue.pop();
    CTL_TwainAppMgr::IsTwainMsg(&msg, true);  // make sure we perform what we need to do for TWAIN 2.x.
}

In my application it goes into this code, and ends up pulling a message off the queue. Once this happens it calls IsTwainMsg() on the AppMgr with this NEW MSG and then the acquire is done.
After all of the acquire processing is done it then calls IsTwainMsg() again with the original MSG (DTWAIN_TN_ACQUIRESTARTED) and thus, I get the message too late.
If I don't use DSMV2 in my app then the messages come across in the right order.
For some reason I can't get DTWDEMO to work right when I add a call to DTWAIN_SetTwainDSM(). Might look into this more later tonight.
NOTE: In my application, if I use DSMV2 and then skip the TwainMessageLoopV2 check above (when the msg.wParam == DTWAIN_TN_ACQUIRESTARTED) then the ordering is correct and the acquire works as expected.
When it tries to check the V2 message queue then the started message comes in, it enters the above code thinking there is a MSG there. When it pops it off the message == 257 and wParam and lParam are both 0. This goes into the AppMgr->IsTwainMsg() and ends up returning false (TWRC_NOTDSEVENT case).
Any idea why this would be happening just with DSMV2?
Later tonight I'll see if I can dig more into the V2 message queue.

Attached is a small Qt Creator project. I'm currently using Qt 5.15.2.
You'll need to update the CMakeLists.txt file to fix the paths for the 'include_directories' and 'target_link_libraries' sections.
This has just the bare minimum to show the acquire started notification issue.
If you look in TwainMessageFilter.h you'll see where I have some comments. If I don't return false when I get the DTWAIN_TN_ACQUIRESTARTED then I won't see that notification until the acquire is finished. If I return false, then the ordering is correct.
I dug into the message queue a little and the message == 257 is added to the queue when the UI option is set. After that the started message is sent kicking things off.
NOTES:

The TN* main window members were just a quick way to track the order the notifications were being handled. If you look at their values after getting the last notification (done or started) you can see what order they came in.
There is no UX per se. Everything happens in the mainwindow ctor. When it's all done a small window may appear (or be hidden behind Qt creator). If you try and close it there will be a crash. I just stop the debugger when I'm done testing.
If you comment out the 'return false' in the TwainMessageFilter.h and then comment out the USEV2 call the notification ordering should be correct.

QtScanTest.zip

The 257 code sounds like a code coming from TWAINDSM.DLL, since there is no 257 code for DTWAIN that I am aware of.
Can you duplicate the problem with the sample 32-bit TWAIN device found [here]https://github.com/dynarithmic/twain_library/tree/master/SampleTWAINDevices)?
Just to let you know, the TWAINDSM.DLL has full source code thus can be compiled and debugged.   The entry point is found in ctwtwmgr.cpp in the call to CTL_TwainAppMgr::CallDMSEntryProcInernal here:
retcode = (*m_lpDSMEntry)( pOrigin, pDest, nDG, nDAT, nMSG, pData );
If you step into that code, and you have the TWAINDSM.DLL compiled with debug info, you can step into the DSM.
Also, the sample TWAIN 32-bit source uses Qt, so if you basically have everything available if you can get it set up.

Running with the sample 32-bit TWAIN device is even worse. It fires the DTWAIN_TN_ACQUIREDONE before the acquire started is called at:
CTL_TwainAppMgr::SendTwainMsgToWindow(pHandle->m_Session, NULL, DTWAIN_TN_ACQUIRESTARTED, (LPARAM)pSource);
After the TN_DONE my event filter captures the DTWAIN_TN_ACQUIRESTARTED, and then it hits the breakpoint for STARTED in the callback proc.
When I hit the TN_DONE breakpoint in my app I can see the TWAIN specification image in my viewer/output window. So the sample source is kinda working.

FWIW - I updated my application from Qt 5.15.2 to Qt 6.0.1 (latest version). A few posts I read said there might be problems with the Qt 5.x event filters, and I wanted to update anyways, so I went through the pain today.
Unfortunately no difference in the DTWAIN_TN_ACQUIRESTARTED handling. I still need to return false in my filter for it to show up at the right time.

You've made some very good observations that will take time for me to consider.  One option I am considering is to customize the sending of certain messages, but that's just a thought at this point.
I would suggest you make the changes on your fork of the source so that your app works as desired, and in the meantime, I can get a handle of the notification processing, since it is a bit complex.
If you can verify that one or more changes you've made will not affect other applications (or feel it will not affect other apps), then create a pull request for development and I can take a look at it.

authors: Dcreeron dynarithmic


text:
Same source and target directory leads to extension.zip containing itself

When the same directory is provided for --extension-directory and --target-directory parameters, the dt tool ends up in a loop, trying to pack extension.zip into itself. If any assets (e.g. dashboards) are sufficiently big, it eventually fails leaving extension.zip several gigabytes in size.

This issue seems to be still happening. I just recreated this issue as well in the latest version from the repository. It created an 11.5 GB zip file which filled up my HD

authors: deliego fpacholczyk

repo: dynatrace-oss/dt-cli


text:
Monaco doesn't work with .yml ending

Describe the bug
.yml and .yaml are valid file endings yet Monaco doesn't "see" .yml files.
How to reproduce
Steps to reproduce the behavior:
Create a config (eg. auto-tag) with a tags.yml file.
Monaco will not see the config
Expected behavior
Monaco parses the .yml file just like .yaml

PR #529 merged - monaco will allow .yml as well - thanks for the contribution @Dynatrace-Adam-Gardner !

authors: Dynatrace-Adam-Gardner UnseenWizzard


text:
【管理者】アカウント作成エラー時にアラートを表示する（編集も）

エラー時の警告アラートが必要
修正が必要な画面

アカウント作成
アカウント編集
マイアカウント編集

アカウント作成画面には、すでに実装されていた。

なので、
アカウント編集
マイアカウント編集に実装する

コミットのコメント間違いました。
#512にしちゃいました。すみません
https://github.com/e-harp-intern/R4FY/pull/532/commits/c6baffd63857b0fe0e11dfd7f3a61e1ed70724e7

コメントの間違いなので、pushした先は間違っていないので、大丈夫なはずです。


text:
Installation error:  Could not find a version of package ebay/digital-signature-php-sdk matching your minimum-stability (stable).

I run the command composer require ebay/digital-signature-php-sdk  get the error:
In PackageDiscoveryTrait.php line 327:
Could not find a version of package ebay/digital-signature-php-sdk matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
Environnement to reproduce:

php 8.1
Symfony 6.2

Please Help me. How can workarround?

Hi @romeolandry
Thanks for pointing this out. Can you try it again? I fixed the missing versioning in packagist; the current version is 1.0.1

thank it work well

authors: romeolandry uherberg

repo: eBay/digital-signature-php-sdk


text:
Broken under Windows

I downloaded the latest version of RestCommander and it appears to be broken running under Windows.
The error I get is:
Oops: ClassFormatException
An unexpected error occured caused by exception ClassFormatException:
null
This exception has been logged with id 78fhm18b1
I am running Java 1.8.0u152. I've replicated this on a coworker's machine.

@lawrencecraft  thanks for trying. the error is likely related to maven dependency hell.  Can you try parallec.io ? it is the newer generation will more flexibility

authors: jeffpeiyt lawrencecraft

repo: eBay/restcommander


text:
Fields lists and field ranges

Adds support for field ranges as part of a field list. For example:
$ tsv-select --fields 1,2,17-35  data.tsv

Available anywhere a list of fields can be entered.

Codecov Report

Merging #77 into master will increase coverage by 0.25%.
The diff coverage is 99.4%.

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   97.25%   97.51%   +0.25%
==========================================
  Files          15       15
  Lines        3356     3618     +262
==========================================
+ Hits         3264     3528     +264
+ Misses         92       90       -2

Impacted Files
Coverage Δ

tsv-select/src/tsv-select.d
96.66% <100%> (-0.16%)
:arrow_down:

tsv-join/src/tsv-join.d
93.66% <100%> (ø)
:arrow_up:

tsv-uniq/src/tsv-uniq.d
97.33% <100%> (ø)
:arrow_up:

tsv-summarize/src/tsv-summarize.d
97.43% <100%> (+0.35%)
:arrow_up:

common/src/tsvutil.d
99.54% <99.3%> (-0.46%)
:arrow_down:

Address issue #71

authors: codecov-io jondegenhardt

repo: eBay/tsv-utils-dlang


text:
Height stats 24

fixes #24

Coverage increased (+0.09%) to 93.777% when pulling 0c0886b2031fb93c90d24bf244836cf0eca112e0 on height_stats_24 into 4ebb27e1c19b5b4f8ce7e07b4dd5c0ff867562e8 on sprint.

authors: coveralls cwmeijer

repo: eEcoLiDAR/eEcoLiDAR


text:
RequireJS support

Has anybody gotten this library to work with RequireJS?

Hi @eaccka, I've taken a quick look at RequireJS, but haven't used it. What problems are you running into? html2pdf has two dependencies, jsPDF and html2canvas, which should be loaded first in that order.

I have also an issue with requirejs.
https://gist.github.com/drbeat/c8761828902afe73ceae257940793937
my setup looks somehow like this but requirejs always bugs about html2canvas
Uncaught ReferenceError: html2canvas is not defined
    at html2pdf.js:387

and
Uncaught TypeError: html2pdf is not a function
the 2nd error may be my problem as I am new to requirejs but I am quite sure that my includes and dependencies are correct
still I dont know why it spits out this error

Hi @drbeat, you're in luck! I've got a new build that will be merged in soon (next few days) that should be much friendlier for all requires/includes. It should resolve your RequireJS issues, if not let me know - stay tuned!

@eKoopmans thanks but now I rewrote your code to make it work with requirejs
if you are interested I can upload it so you can have a look

Great, glad you solved the problem! Yes if you could share what changed to solve things that would be helpful.

@eKoopmans
https://gist.github.com/drbeat/5a823ec1d85fc3a0c2349267538457e7
as you see I restructured a bit (just for my OCD) and added AMD support
now I can call html2pdf with
require(['html2pdf'], function(html2pdf){
html2pdf(element);
})

without caring about dependencies anymore

Hey @drbeat, thanks for the gist! Yep the original package didn't have any AMD support - when I skimmed RequireJS earlier I completely missed that requirement.
In any case, the new v0.8.0 should solve that problem. The default dist/html2pdf.js is packaged as UMD, which has AMD support. Closing this issue, let me know if there's any remaining issues!

@eKoopmans
tried out v.0.8.0
it is much more reliable now. thanks!

Good to hear, @drbeat!

authors: drbeat eKoopmans eaccka


text:
_ er ikke et special tegn i e-mail

Rette så den ikke forslår at ændre en mail som fx
john_doe@example.com til johndoe@example.com

Ikke længere relevant efter 98f74147bed1e70479f798cf3630ba0765d4fe28

repo: eKristensen/pop-self-service


text:
OLE based Connector with ILL functionaility (Lehigh)

JIRA issue created by: rcook
Originally opened: 2013-07-23 10:30 AM
Create NCIP functionality for ILL (4 NCIP services that Lehigh currently uses) per supplied specs.
[~mahesh] and [~msuranofsky]

JIRA User: prem
JIRA Timestamp: 2013-08-06 05:16 AM
The 4 NCIP services

LookupUser
AcceptItem
CheckinItem
CheckoutItem
are added to the OLE application.
Earlier i face issue with accept item, but now its been fixed due to the property changes.
All these changes been tracked in OLE jira https://jira.kuali.org/browse/OLE-2744

repo: eXtensibleCatalog/test


text:
Code cleanup

Code cleanup
Delegate (protocol) without NSObject, if there is no delegate, you can get Crash!
Removed pointer for CGFloat, you can get a lot of problems in debugger.

another objc guidelines code cleanup.

Thanks for suggestions. Changes in your commits are too coupled, I can't cherry pick only good to me, so I did little cleanup based on your work: 3591765c1e6d63de6de7285b66adb83f2dc6e24f
Constraints refactoring is huge deal, they should be more atomic and discussed/commented before merge. I am closing this PR, see #64 on autolayout/constraints discussion. I am still looking into https://github.com/XBeg9/EAIntroView/commit/8e7cb8a17f4d799881b73d9ede3b2d70ed97d760 and testing your fork, much thanks for your contribution!

repo: ealeksandrov/EAIntroView


text:
More branch status

Motivation

We have colorful dots for branches to show whether it's updated, but a little bit ambiguous: "no dot" maybe  unpublished and up-to-date. Apart from unsynchronized branches, I'd like to be aware of unpublished, merged or useless temporary branches in the GitLens branches view. (related: https://github.com/eamodio/vscode-gitlens/issues/1025)
Colorful dots are not very intuitive for me. (green for ahead, yellow for diverged)
There is no merged status (git branch --merged). It's my weekly routine to use git show-merged-branches and git delete-merged-branches from https://github.com/tj/git-extras to cleanup my git repo. It would be great if I could do these staff in GitLens.

Proposal
It would be better if we could show these status before or after branch names. I'm using text labels for description. Maybe using icons would be more compact. Most icons below could be found in font awesome (https://fontawesome.com/cheatsheet)

(fixed) relationship to the upstream branch

has upstream branch

ahead (upload cloud icon or upload icon)
behind (download cloud icon or download icon)
up-to-date (synchronized icon)
diverged for both behind and ahead (error icon or exclamation)

no upstream branch: local-only (desktop icon)

(optional) relationship to current branch

current (check mark icon)
merged (git merge icon)
(none)

(optional) worktree status

worktree if the branch is linked with a worktree (git branch icon?)
(none)

So it may looks like (quite similar to git branch -vv without commit messages):

[up-to-date] [current] main
[local-only] [merged] some-finished-feature (this branch has been merged and deleted on remote)
[local-only] some-local-wip-feature
[ahead] some-published-feature-with-new-changes
...

In the latest insiders edition, I've added some "decoration" support to the branches view that will show some of the status you are looking for.

⮝ — ahead, the row will also be green
⮟ — behind, the row will also be red
⮟⮝ — diverged, the row will also be yellow
⮙+ — unpublished, the row will also be green

Additionally, I've replaced the ✓ checkmark before the branch name, with a ✓ checkmark at the end for the current branch (this will be in addition to the other decorations)

There is currently no icon/color for local-only branches (e.g. a branch with no upstream in a repo with no remote) or up-to-date branches.
You can install the insiders edition from here. Be sure to disable/uninstall the stable version of GitLens first.

authors: eamodio hg-zt

repo: eamodio/vscode-gitlens


text:
Compare branch order not working

Comparing one branch against another uses the three-dot symmetric difference between the two branches (showing all changes between the two branches.) I assume this is a bug because there is a button on the comparison's entry in the compare tree with at tool-tip of 'Swap Comparison'. After pressing it the UI shows the branch order changed but the list of commits is still the same (as its using three-dot difference, not two-dot difference between the branches.)
If this isn't a bug is there a way to see the changes that are in one branch but not in the other (which you'd get with two-dot range difference)? Am I misunderstanding the purpose of the 'Swap Comparison' button?
GitLens (Git) log
git log --name-status --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e --full-history -M -m -n200 fix/poll_after_refresh...origin/develop --
...after pressing the swap order button
git log --name-status --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e --full-history -M -m -n200 origin/develop...fix/poll_after_refresh --

GitLens Version: 9.8.2
VSCode Version: 1.35.1
OS Version: Mac OS 10.14.5

Steps to Reproduce:

Use GitLens to compare any two branches and view the list of commits
Press the 'Swap Comparison' button and see the list of commits is identical

The Swap Comparison command just switches the order of the compare, not the type of compare. To switch to use two-dot comparisons set the following setting "gitlens.advanced.useSymmetricDifferenceNotation": false
See here: https://github.com/eamodio/vscode-gitlens#advanced-settings-
Hope that helps!

Fantastic, thanks for pointing that setting out (I should've found that!). It would be really handy to have that setting be togglable from the search tree as it is very relevant there, especially since the 'swap comparison' button doesn't really make a difference when its configured to use symmetric difference (which I assume is the default.) Using that setting did work and the 'swap comparison' button does work as expected so closing this issue.

@obambrough in the next release, I'll add buttons to switch between two-dot and three-dot compares (and the setting will just control the default)

authors: eamodio obambrough


text:
Something wrong with the dates it create

I have managed to run it, but it is 2021/01/11 04:00 in the morning, and it creates 2021011118 folder, I believe it trying to download GFS that is not there yet.

Is that local time or UTC?
The get_GFS_operational.sh script uses the bash date function with the -u argument to specify UTC time. Then the latest likely available GFS initialisation is identified and the date and time updated. I suspect you are running the script at a time between 0000 and 0259 UTC. The issue is caused by the fact that there is a missing line in the the script that doesn't update the date to yesterdays date when the hour selected is before 3 UTC, but the hour is modified to 18.
To fix add this line after line 35 (within the elseif statement) in the get_GFS_operational.sh script.
YYYYMMDD=date -u --date='yesterday' +%Y%m%d
I would recommend running the script at a time when GFS data is newly available too (0430 UTC would get you the 00 GFS initialisation).

Is that local time or UTC?
The get_GFS_operational.sh script uses the bash date function with the -u argument to specify UTC time. Then the latest likely available GFS initialisation is identified and the date and time updated. I suspect you are running the script at a time between 0000 and 0259 UTC. The issue is caused by the fact that there is a missing line in the the script that doesn't update the date to yesterdays date when the hour selected is before 3 UTC, but the hour is modified to 18.
To fix add this line after line 35 (within the elseif statement) in the get_GFS_operational.sh script.
YYYYMMDD=date -u --date='yesterday' +%Y%m%d
I would recommend running the script at a time when GFS data is newly available too (0430 UTC would get you the 00 GFS initialisation).

This has now been rectified in the repository.

This has now been rectified in the repository.

authors: earajr sellinios


text:
Assignment 5, lidar uncertainty review

Files for code review assignment:

jupyter notebook of lidar uncertainty with all plots rendered (run from start to finish)
.py file saved from lidar uncertainty .ipynb

Review Checklist
Reproducibility

[ ] Are the data downloaded in the code
[ ] Are paths created to ensure they work on all operating systems (using  os.path.join)
[ ] Are comments used to clarify the contents of the code that can’t be clarified using expressive variable and function names alone? (not too many comments - just enough)
[ ] Does the notebook run from start to finish?

PEP 8 standards & Code Readability
Functions

[ ] Do functions follow PEP 8 format conventions?
[ ] Are function docstrings clear (all  inputs and outputs clearly  described and defined)
[ ] Are function names expressive (the name describes what the function does)?
[ ] Are functions easy to understand and read?
[ ] How many tasks does each function do? (ideally a function does one thing well).

Package imports

[ ] Are standard modules (those included with the base  python install) vs. third party (related but externally developed tools) import groups correct with appropriate spacing in between each group?
[ ] Are variable names throughout the code, expressive?
[ ] Suggest changes if not, highlight what was done well
[ ] Is the code overall easy to understand and read? Are there things that would make it more clear / cleaner?

DRY Code

[ ] Are segments of code repeated in the file or is the code DRY?
[ ] Are loops used to optimize DRY code?
[ ] Are functions used to optimize DRY code?
[ ] Are there any areas that could be potentially improved (you can suggest improvements OR you can just highlight parts of the code where you suspect it could  be cleaner / more efficient.

Novel Approaches to Problem solving

[ ] Highlight any novel approaches to completing the assignment.

@tcruiks Please review this PR #54 (Canvas isn't working so let's try GitHub directly!)

I updated the lidar uncertainty files on 3/20/23; added plot function to NEONDataLoader and moved class to data_loader.py

Thanks Lindsay.  I'm laughing a bit .... I comment all over the place so
that "I" know what my code is doing!  ;-).
On Fri, Mar 24, 2023 at 4:46 PM Lindsay Chipman @.***>
wrote:

@.**** commented on this pull request.
review of my review
On lindsay-chipman-lidar-uncertainty.py
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#discussion_r1148122907
:
thanks, however, most of it was derived from the lectures. I liked that
you redid most of the work using your own conventions - that's the best way
to learn in my opinion!
In lindsay-chipman-lidar-uncertainty.py
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#discussion_r1148123965
:

+# ## The SOAP site
+#
+# Image credit: National Ecological Observtory Network, available at: https://www.neonscience.org/field-sites/soap

+# In[1]:
+
+
+import os
+import pathlib
+
+import earthpy as et
+import matplotlib.pyplot as plt
+import seaborn as sns
+from data_loader import SJERDataLoader, SOAPDataLoader
+
+et.data.get_data('spatial-vector-lidar')
good point - I thought I added that info to the readme, but now I see it's
not there, so maybe it was in the previous "assignment 5" repository Agree,
more comments would be helpful, I'll make sure to add more in future work.
In data_loader.py
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#discussion_r1148120693
:

site_name = NotImplemented

id_col_name = NotImplemented
formatting_dict = NotImplemented
id_modifier = None

def init(self):

   # set arguments as attributes

   self.formatting_dict['site_name_low'] = self.site_name.lower()

   self.formatting_dict['site_name_up'] = self.site_name.upper()

   self.formatting_dict['base_dir'] = (

       self.base_dir_tmpl.format(**self.formatting_dict))

   self.insitu_path = self.insitu_path_tmpl.format(**self.formatting_dict)

   self.chm_path = self.chm_path_tmpl.format(**self.formatting_dict)

   self.plots_path = self.plots_path_tmpl.format(**self.formatting_dict)

I think you're asking about the 3 dfs below that begin with self._text? If
so, great question bc I copied the convention Elsa used in lecture, but I
didn't fully understand it. I just looked it up and apparently using
"self._text" creates the dfs in the instance of the class, and they exist
until the class is destroyed. Honestly, I'm unclear why we need to define
them here and set to none, rather than using a normal function below. I
need to follow up in office hours to completely understand
In lindsay-chipman-lidar-uncertainty.py
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#discussion_r1148124523
:

+# Use child classes to create instances of class for sjer and soap
+sjer_data_loader = SJERDataLoader()
+soap_data_loader = SOAPDataLoader()
+#sjer_data_loader.height_stats
+##soap_data_loader.height_stats
+
+
+# # Plot lidar vs insitu mean and max canopy height
+# (using the plot_height method of NEONDataLoader class)
+
+# In[3]:
+
+
+# Plot SJER data
+sjer_data_loader.plot_height(site_name='SJER',
I saw that while reviewing your code, and I like the approach - it adds
and extra layer of reproducability!
In data_loader.py
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#discussion_r1148121793
:

   ax2.plot((0,1), (0,1), transform=ax2.transAxes, ls='--', c='k')

   sns.regplot(x='lidar_mean', y='insitu_mean',

               data=self.height_stats,

               color='blue',

               ax=ax2)

   ax2.set(xlim=(0,ax2max), ylim=(0,ax2max), aspect='equal',

          title=('Mean canopy height: lidar vs insitu at {}'

                 .format(site_name)),

          xlabel='Lidar mean height (m)',

          ylabel='In-situ mean height (m)')

   ax2.xaxis.label.set_fontsize(14)

   ax2.yaxis.label.set_fontsize(14)

   ax2.title.set_fontsize(14)

   plt.show()

you did use a ton of inline comments, and I greatly appreciated it while
reviewing your code. I wasn't thinking about the user's ease of reading my
code while I was writing, since no one usually reads my work. Now I see the
usefulness, and will include more inline comments for shared work.
—
Reply to this email directly, view it on GitHub
https://github.com/earthlab-education/ea-lidar-uncertainty-review/pull/54#pullrequestreview-1357531653,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATM3D3LT2TMI7V5GFLM2TELW5YP3VANCNFSM6AAAAAAV62FBAI
.
You are receiving this because you commented.Message ID:
<earthlab-education/ea-lidar-uncertainty-review/pull/54/review/1357531653@
github.com>

Impressive work, Lindsay! These classes look professional, including the docstrings.

authors: eculler lechipman tcruicks


text:
Add a first guess of automatic testing

This is a first guess of github actions running our tests with docker.

That is a great idea. @amotl and I have already talked about setting up a routine for different Python versions >= 3.6 . I'd also like to activate the experimental feature of dependabot to make additional checks on dependancies.

@gutzbenj I will merge this PR bc it does what I expected. Test was failing because someone missed to adapted them. My latest merge fixed this issue.

authors: gutzbenj meteoDaniel


text:
unexpected token

first of all great plugin and thx for all the hard work and effort building/maintaining this. I use homebridge for harmony hub alongside some hue bulbs/hue bridge 2.0 that have homekit build in. Now I just added 2 hue dimmers and I want to add them to homekit through your plugin. I get to the point to add the hue platform and the notification in terminal to push my bridge and then the generated username and password. But when I include those in the config.json alongside the other stuff from heart rate until rules and restart homebridge I get an error message: There was a problem reading your config.json file. SyntaxError: Unexpected token   in JSON at position 262
at JSON.parse ()
verifying my config.json at jsonlint gives a valid json.
I tried using normal text editor and atom, I'm on Mac.
If you need more files etc. please let me know. Im new to Github so sorry if didn't include things I don't know of. Really would like to use your plugin.

by the way here is what my config.json looks like:
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"platforms": [{

		"platform": "HarmonyHub",
		"name": "Living Room Harmony Hub"
	}, {
		"platform": "Hue",
		"name": "Hue",
		"host":   "192.168.178.101",
		"users": {
			"001788FFFExxxxxxx": "mu1w6oAyu87afjyQc1xfGEoohN9E7KLxxxxxxxxx"

		},
		"heartrate": 5,
		"timeout": 5,
		"lights": false,
		"philipslights": false,
		"ct": false,
		"groups": false,
		"group0": true,
		"rooms": false,
		"sensors": false,
		"clipsensors": true,
		"schedules": false,
		"rules": false

	}

]

}

I get an error message: There was a problem reading your config.json file. SyntaxError: Unexpected token   in JSON at position 262 at JSON.parse ()

This error message is issued by homebridge when trying to read config.json, before homebridge-hue (or any other plugin) is initialised.
Visually, your config.json looks fine.  My guess is that somehow it contains an invisible character that is removed when copy/pasting the text to jsonlint.  Try re-creating config.json.

Thanks so much for your fast respond, really appreciated. I re-created the config.json and now it is running, very happy. One last question, the hue dimmer remote is also visible in my home app but isn't supported and greyed out. Is there a setting I can change to make it useable within the home app?

oh, about the motion sensor. It is recognized and I can see status from within the Home app. I tried to create a trigger for enabling a specific scene, in my case turn kitchen lights on and switch on an elgato eve energy plug, but it won't activate that scene. Isn't that supported at all, or am I missing something. The same thing works with an out of the box homekit supported motion sensor from Fibaro.

the hue dimmer remote is also visible in my home app but isn't supported and greyed out. Is there a setting I can change to make it useable within the home app?

No, there isn't, unfortunately, Home simply doesn't support the Stateful Programmable Switch service.   You'd need to use another HomeKit app, see Caveats in the README.

I tried to create a trigger for enabling a specific scene, in my case turn kitchen lights on and switch on an elgato eve energy plug, but it won't activate that scene. Isn't that supported at all, or am I missing something.

That should work.  I do find that synchronising the HomeKit database between your iOS devices and AppleTV over iCloud tends to break when making a lot of changes at the same time.  What I do when triggers don't work, is:

Disable them all on one device, wait like five minutes and check that they show as disabled on all other devices (unfortunately, you cannot check on the AppleTV);
Reenable them all on one device, wait like five minutes and check that they show as enabled on all other devices.

If that doesn't work: disable iCloud for HomeKit on all your devices (and AppleTV) except one (preferably an iPad which you can setup temporarily as HomeKit Hub).  Make the HomeKit configuration changes on that one device, and check that they work as intended.  Then re-enabled iCould for HomeKit on your other devices, one by one.

Hi ebaauw. Thanks for all your help. Got the scenes working now, very happy. Would it be possible or do you think homekit will implant, custom notification settings for motion sensor. For example put them off when @home and on when away, or even a schedule for that purpose.

Would it be possible or do you think homekit will implant, custom notification settings for motion sensor. For example put them off when @home and on when away, or even a schedule for that purpose.

I'm not privy to any roadmaps from Apple, so your guess is as good as mine.  I didn't get any notifications from the motion sensors before iOS 10.2 (I also tried Apple's HomeKit accessory simulator, so I know it wasn't due to homebridge-hue), so Apple are progressing on HomeKit.
It would seem like the notifications and their settings are part of the Home app, rather than the HomeKit API.  I doubt Apple will make them available to other HomeKit apps.  I think it's a save bet they won't ever be accessible to HomeKit accessories, nor homebridge.

authors: Lestercity ebaauw

repo: ebaauw/homebridge-hue