[OpenSSL] Allow customization of openssldir

OpenSSL searches for config file in openssldir at runtime. By default
openssldir is set to current build directory.
When an app, which uses vcpkg for building dependencies, is
distributed to another machine, searching for openssl config
in build directory on build machine doesn't make much sense.
This enables OpenSSL port users to customize this directory
with custom triplet, for example:
set(OPENSSL_OPENSSLDIR "c:\\Program Files\\SSL")

In this case config is searched in directory which is not writable
by default.
Since vcpkg utilizes install_ssldirs target to copy config etc
to abovementioned directory, a build may fail if a directory is
read-only. To fix that, add OPENSSL_NO_INSTALL_SSLDIRS
boolean flag which makes vcpkg skip install_ssldirs target:
set(OPENSSL_NO_INSTALL_SSLDIRS ON)
Signed-off-by: Lev Stipakov<EMAIL_ADDRESS>

What does your PR fix?
See commit message above.

Which triplets are supported/not supported? Have you updated the [CI baseline]
Windows triplets are affected. No, haven't updated CI baseline.

Yes

This PR is invalid. Use a port overlay for this case? Other question: Is there a absolute path in openssl.cnf which should be relativ?

This PR is invalid

I am sorry, could you be more specific?

Use a port overlay for this case?

I think the current behavior, when openssl.cnf is hardcoded to a vcpkg path on a build machine, is wrong. How it is supposed to work when software is used on other machines? I can surely use the port overlay, but I believe this patch will benefit many users of this port.

Other question: Is there a absolute path in openssl.cnf which should be relativ?

I checked openssl.cnf which comes from openssl and I don't see any absolute paths.

I am sorry, could you be more specific?

By setting set(OPENSSL_OPENSSLDIR "c:\\Program Files\\SSL") you seem to be wanting an empty openssl port with an external ssl library. This makes this PR invalid.

searching for openssl config in build directory on build machine doesn't make much sense.

the search should happen within the relativ install try of vcpkg or alongside the application you plan to deploy. Not some random hardcoded c:\\Program Files\\SSL

Hi,
On Fri, Nov 19, 2021 at 08:22:33AM -0800, Alexander Neumann wrote:

I am sorry, could you be more specific?

By setting set(OPENSSL_OPENSSLDIR "c:\\Program Files\\SSL") you seem to be wanting an empty openssl port with an external ssl library. This makes this PR invalid.

The goal is to make the OpenSSL config directory point to a location
where it can then be used on the target machine for an openssl.cnf.
In our case, this would be part of the OpenVPN tree.
Right now, the OpenSSL libraries built search their openssl.cnf in
the directory that was used to build OpenSSL on the build machine - which
is not useful in any way.

searching for openssl config in build directory on build machine doesn't make much sense.

the search should happen within the relativ install try of vcpkg or alongside the application you plan to deploy. Not some random hardcoded c:\\Program Files\\SSL

Your current port has it hardcoded in the build directory, which is
what I'd call "a random hardcoded directory".
This PR makes the target location more flexible.
(For us, this would be c:\program files\openvpn\ssl or something
under our control)
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany                             @.***

Your current port has it hardcoded in the build directory, which is
what I'd call "a random hardcoded directory".
This PR makes the target location more flexible.

The PR should focus on making the search location for openssl.cnf relativ to the executable/dll and not focus on making it more "flexible" by encoding a different hardcoded path ;)

If I read the code right, this PR sets search location for openssl.cnf to whatever value user has passed via OPENSSL_OPENSSLDIR. No?
Lähetetty iPhonesta

Alexander Neumann @.***> kirjoitti 19.11.2021 kello 22.39:

Your current port has it hardcoded in the build directory, which is
what I'd call "a random hardcoded directory".
This PR makes the target location more flexible.
The PR should focus on making the search location for openssl.cnf relativ to the executable/dll and not focus on making it more "flexible" by encoding a different hardcoded path ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

I have added a commit to also customize ENGINESDIR. I hope commit message explains rationale reasonably.

Hi,
On Fri, Nov 19, 2021 at 12:39:40PM -0800, Alexander Neumann wrote:

Your current port has it hardcoded in the build directory, which is
what I'd call "a random hardcoded directory".
This PR makes the target location more flexible.

The PR should focus on making the search location for openssl.cnf relativ to the executable/dll and not focus on making it more "flexible" by encoding a different hardcoded path ;)

This is not something OpenSSL supports "as is", so would be a much
more intrusive patch into OpenSSL code.
I see this PR as an improvement - from "path is not usable for anything"
to "possibly useful in the context of the project building this port"
(so it's not "arbitrarily hardcoded" but "the calling project can specify
what will be compiled-in").
Of course, relative to the final install directory, or even using
windows config mechanisms (%USERPROFILE%), would be even better - but
much more work.  Can we agree on doing a slight improvement as a first
step?
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany                             @.***

What about?
    if ((t = getenv("OPENSSL_CONF")) != NULL)
        return OPENSSL_strdup(t);

so setting the environment variable OPENSSL_CONF should achieve the same as this PR. It is also probably that setting OPENSSLDIR to some relativ path would also work.

Hi,
On Mon, Nov 22, 2021 at 10:39:25AM -0800, Alexander Neumann wrote:

What about?
    if ((t = getenv("OPENSSL_CONF")) != NULL)
        return OPENSSL_strdup(t);

so setting the environment variable OPENSSL_CONF should achieve the
same as this PR.

But the port would still try to access a default location that does not
make sense for anyone - and it would require that all packages using
the port would install mechanisms to setup environment variables correctly,
which is not straightforward for a windows service, for example...

It is also probably that setting OPENSSLDIR to some relativ path would also work.

Provided the current working directory is set reasonably, which is
unlikely to be guaranteed in every case - possibly creating a security
issue again.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany                             @.***

But the port would still try to access a default location that does not
make sense for anyone

Why would it try to access the defaults? All defaults can be set via environment variable (SSL_CERT_DIR; SSL_CERT_FILE).
I don't see how assuming c:\\Program Files\\SSL as the default is more correct than CWD.

But C:\Program Files\SSL is not hardcoded anywhere, it is up to port users to define this path via overlay triplet. As a port user I could use something like C:\Program Files\My Software\SSL to make sure unprivileged users won’t be able to alter the behavior of my software which uses OpenSSL port.
Lähetetty iPhonesta

Alexander Neumann @.***> kirjoitti 22.11.2021 kello 21.00:

But the port would still try to access a default location that does not
make sense for anyone
Why would it try to access the defaults? All defaults can be set via environment variable (SSL_CERT_DIR; SSL_CERT_FILE).
I don't see how assuming c:\Program Files\SSL as the default is more correct than CWD.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

C:\Program Files\My Software\SSL to make sure unprivileged users won’t be able to alter the behavior of my software which uses OpenSSL port.

And that is where you are wrong. Setting the environment variables will always overwrite your setting. Also what happens if the software is installed to a custom path instead of the default one?

Hi,
On Mon, Nov 22, 2021 at 11:00:03AM -0800, Alexander Neumann wrote:

But the port would still try to access a default location that does not
make sense for anyone

Why would it try to access the defaults?

Because that's what OpenSSL does - it tries to read the config file from
the compiled in default location.  Not my code, not my decisions, it's
just the way that it is.

All defaults can be set via environment variable (SSL_CERT_DIR; SSL_CERT_FILE).

Yes, this I already acknowledged.  But this takes care and extra code
to get right, especially when running as a windows service.

I don't see how assuming c:\\Program Files\\SSL as the default is more correct than CWD.

CWD is never correct for security sensitive files.
Note that I'm not talking about "c:\program files\ssl" but specifically
about "c:\program files\openvpn\ssl" which is exactly where we need
this to be - and since the PR adds this as a compile-time option, every
other program can have this wherever that other program needs it to be.
vcpkg stuff is not installed independently of the program it's compiled
with, so it needs to work for the software reloying on the port - no?
gert
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany                             @.***

C:\Program Files\My Software\SSL to make sure unprivileged users won’t be able to alter the behavior of my software which uses OpenSSL port.

And that is where you are wrong. Setting the environment variables will always overwrite your setting. Also what happens if the software is installed to a custom path instead of the default one?

Sounds like the objective of setting the default config path to a read-only location is misunderstood. When the default path points to a location accessible to anyone, user A running a program linked to OpenSSL can be attacked by user B by adding  a config file and that could force-load malicious dlls into the process. Unless user A ensures that an env var named OPENSSL_CONF is set to point to a location that other users cannot write to. Not all applications do this, its beyond a casual user to do this, and this has been the subject of some CVE's in the past. Someone even went ahead and wrote a script to check OpenSSL libraries with vulnerable openssldir (https://github.com/mirchr/openssldir_check)
In short, setting openssldir to a location potentially writable by "users" is wrong. For packaging purposes you can relocate it to any convenient location, but the path built-in to the library must remain read-only for unprivileged users on the target machine.
Of course, the user can over-ride the hard-coded path using env vars, and that is perfectly fine and safe. Its unfortunate that OpenSSL developers decided to use a hard-coded path in the first place, instead of defaulting to the location of the dll or refusing to load the config without an explicit instruction with an absolute path or some such. But that's beyond our control.
Setting the default location to a read-only  directory like "C:\Windows\system32\ssl" protects all users of the library from such attacks. This PR does exactly that by making the openssldir location configurable during build.


Merge pandad into boardd

fixes #2102

TODO:

[ ] Make sure everything works with multiple pandas connected. This means argument to boardd and flash panda to specify a serial number. The test also need to be more robust to this by choosing one of the connected pandas and using it throughout the whole test suite.

@deanlee once you're happy with replay, want to clean and finish this up?

ok, I'd like to try.


how to install xrdp in Solaris x86

Hello,I have installed xrdp in Linux enviroment,it's great! Now I want to compile it in Solaris x86,but I got so many errors.can anyone tell how compile xrdp in solaris x86? Thanks!

Please try xrdp 0.9.1 or the current devel branch. Please post the first 10 errors.

Please reopen or create new issue if xrdp v0.9.1 still fails to compile.


Implement the put operator as documented

This new version of the operator projects, re-orders, and also supports extractors and selectors besides fixed values.
Here's an example:
❯ gunzip -c vast/integration/data/json/sip.log.json.gz \
  | vast exec 'read json | head 1 | put user_agent, schema=#type, time=#import_time, first_ip=:ip | write json' \
  | jq
{
  "user_agent": "friendly-scanner",
  "schema": "b751f83ded9bfc9d",
  "time": "1970-01-01T00:00:00.000000",
  "first_ip": "<IP_ADDRESS>"
}

Fixes tenzir/issues#286

The #type and #import_time extractors don't seem to work yet.

They do work correctly, but the example has an inferred type so #type is the type fingerprint b751f83ded9bfc9d and the data was never imported, so #import_time is the UNIX epoch.
Arguably for the import time, the function should add nulls if the import time is not available.

While you're touching this code, would it make sense to add the #node_id selector as well?

While you're touching this code, would it make sense to add the #node_id selector as well?

I'd say no, but we can do so pretty soon in a follow-up PR. We have this tracked on the roadmap, and this PR is neither the time nor the place for it.

When I tested this, replace with type-extractors (as in replace :ip=123) did not work, presumably because your PR still uses resolve_key_suffix to resolve the extractor.

@jachris When I tested this, replace with type-extractors (as in replace :ip=123) did not work, presumably because your PR still uses resolve_key_suffix to resolve the extractor.

Right, that is just missing. I have a fix locally but that is rather complicated. Would you prefer that to be in another PR or still pushed on top of this one?

This should be fixed with 59f1689.


How to do runtime stuff using stateful rnn

Hey guys,
When using stateful rnn, we need to pre-define batch size before compile, then what is an easy way to do runtime stuff (one input data per time) with the trained big batch sized models?
Thanks

Why not create array of all zeros, then set last n to your input data?
inbatch = np.zeros((batch_size, n_steps, n_features))
inbatch[-10,:,:] = indata
# assume we require 10 predictions

@VanushVaswani Thanks! Yea I'm doing the similar thing, but I'm wondering is there any more efficient way, more flexible way?


CPU usage continually between 30 and 40% when on a closed network

Discussed in https://github.com/osmdroid/osmdroid/discussions/1998

Originally posted by derekdotdev May  2, 2024
Hello OSM team. First of all, thank you for your work!! I'm writing today because I'm working on a production app and I've noticed a bug which occurs when connected to a closed, offline network. Map tile requests repeatedly fail in perpetuity and it causes the my Galaxy S20 CPU to hang around 30-40% and cooks the phone after some time. If I override MapTileProviderBasic and return true from isDowngradeMode(), it helps tremendously, but as it stands, this will affect online mode as well. I tried to override the largest constructor which accepts an INetworkAvailabilityCheck, but didn't seem to have any luck there. Am I missing something??

Update: created a MapTileProviderBasic with the 5-argument constructor and overrode the INetworkAvailabilityCheck class with my own implementation which regularly checks for connection to the online tile provider, saves off the response, sets a 1-second delay and, while the delay is active, returns the saved response for calls made during this period. Although this doesn't fix the problem, it greatly improved CPU usage.

sorry for not replying sooner. this was definitely an issue with v5.x versions of osmdroid too. The tile fetching mechanism would sometimes thrash requesting tiles. This was common when requesting a tile at a zoom level higher than what the provider offers, such as zoom 18 on a zoom 15 source. This was somewhat mitigated by checking http response codes... and i think there was n LRU cache somewhere that was used to prevent round trips for tiles we know are not available.  It's not a perfect solution though. Not sure if this is the exact cause of the reported issue, but it might be something to go on. see #272
i'd also turn on all the debug logging options in the config provider. it might help identify what's going on (repeated requests for the same tile, etc)
osmdroid 6 changed a lot of code related to this with the tile approximater which will scale and stretch tiles from previous zoom levels while the requested zoom level is loaded (or if it's never available). hope this helps.

i was running into the same issue and attempted to track down what is going on to cause it.
if you load an expired or scaled tile, the MapTileProviderBase will store the image in cache and force a redraw of MapView while the actual tile is downloaded. if you have a condition that causes MapTileDownloader.TileLoader.loadTile() to immediately return null, the tile id is removed from the working queue. at this point, the UI thread gets around to drawing the tiles kicking off this process again (hundreds of times a second).
under typical conditions, this is fine as far as CPU usage goes since downloading a tile (or failing to download a tile) takes much much longer than a single draw of the MapView so the downloader threads are still working on providing an updated tile meaning getMapTile() doesn't send the tile through the provider list again until the MapView is invalidated sometime after the downloader completes.
similar to @derekdotdev, i had a special case network condition that the default NetworkAvailabilityCheck could not check for. in my case, i was able to override isDowngradedMode() so the tile isn't attempted to be downloaded again until i allow it.
while we both were able to find a solution that works for us, the race condition is still present. my hope is that my deep dive into and sharing of the source of the problem sparks ideas for a general case solution that either i or a project maintainer can implement.


Error when opening JS files

Installed this plugin and now whenever I open JS files, I get this error:

update to vim 8


pywinauto on windows 7 can't get controls from window

I'm running a script that start skype on windows 7 and try to reach search button.
The script isn't working. I wonder if pywinauto support windows 7 x64?
Expected Behavior
All the controls responsible for all the visible buttons reachable via pywinauto
Actual Behavior
None of controls except maximize / minimize / close buttons can be reached
Steps to Reproduce the Problem

Run script below

Short Example of Code to Demonstrate the Problem
    app0 = Application(backend="uia").start(r'"C:\Program Files (x86)\Microsoft\Skype for Desktop\Skype.exe"')

    app = None
    while True:
                try:
                    app = Application(backend='uia').connect(title_re='Skype.*')
                except:
                        sleep(1)
                        continue
                break
    skp = app.window(title_re='Skype.*')
    skp.wait('ready', timeout=20)

    try:
        search = skp["Search for people, groups & messages"]
        search.wait('ready', timeout=20)
        search.click()
    except Exception as e:
        print("Failed to find 'Search for people, groups & messages' button. Maybe it was already pressed")

Specifications

Pywinauto version: 0.6.6
Python version and bitness: 3.6.1
Platform and OS: win 7 x64 home/pro (tested on both)

UI Automation API is included into Win7, so nothing special in comparison with Win10.
This script is working on my Win10:
app = Application(backend="uia").start(r'"C:\Program Files (x86)\Microsoft\Skype for Desktop\Skype.exe"')
app = Application(backend='uia').connect(title='Skype', control_type='Pane')
skp = app.window(title='Skype')
search = skp.child_window(title="Search for people, groups & messages", control_type='Button', found_index=0)

If Skype window is minimized, you have to use visible_only=False for connect() and for main window search criteria. After that just .restore() the main window and try further steps.

Some issues with Skype are described in #736 so maybe starting new instance is not the best idea, but checking if it's already running should be better on the script side.

Some issues with Skype are described in #736 so maybe starting new instance is not the best idea, but checking if it's already running should be better on the script side.

Vasily, thank you for your answer. Checked idea with connecting to skype and nothing changed.
P.S.: after it, checked same script with standard notepad and it works fine. So, it seems that here issue on skype for windows 7 side.

I’m having the same issue automating Skype.
It’s something to do with the state of the window. If you .restore() and then .maximize() the main window, more controls are accessible. You have to restore and maximize using the actual window controls and .click_input() (just using .restore() itself doesn’t work).
You can see the same behaviours using Inspect.exe.
The same is true of the in-call window.
It’s very odd.
I’m using the .click_input() workaround, but it’s a kludge.
Any ideas why this is? Or if there is a better solution?

I’m having the same issue automating Skype.
It’s something to do with the state of the window. If you .restore() and then .maximize() the main window, more controls are accessible. You have to restore and maximize using the actual window controls and .click_input() (just using .restore() itself doesn’t work).
You can see the same behaviours using Inspect.exe.
The same is true of the in-call window.
It’s very odd.
I’m using the .click_input() workaround, but it’s a kludge.
Any ideas why this is? Or if there is a better solution?

Hello Nick.
In my case I was making a search of application by title and most of the time issue happened when there was another application running with the same title. For example, in the code above I'm making a search using title "Skype". If I open folder with the same name, the search get broken.


python311Packages.openai-whisper: fix Darwin build

Description of changes
Fix build on Darwin by restricting python3Packages.openai-triton dependency to x86_64-linux as specified by the package.
(ZHF: #309482)
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 311503 run on aarch64-darwin 1

2 packages marked as broken and skipped:

khoj
khoj.dist

4 packages built:

openai-whisper (python311Packages.openai-whisper)
openai-whisper.dist (python311Packages.openai-whisper.dist)
python312Packages.openai-whisper
python312Packages.openai-whisper.dist

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

2 packages marked as broken and skipped:

khoj
khoj.dist

4 packages built:

openai-whisper (python311Packages.openai-whisper)
openai-whisper.dist (python311Packages.openai-whisper.dist)
python312Packages.openai-whisper
python312Packages.openai-whisper.dist


center chat input

-center chat
-remove console logs

i'm not sure about this

DON'T MERGE IT KEVIN


[WIP] add SimTrackerHit and CalorimeterHit proposals

.. these are the SimTrackerHit and CalorimeterHit  as defined in plcio/LCIO, except with
the two int cellIDs replaced with on 'unsgined long long' one as suggested by @vvolkl.
(this PR replaces #6).

PS: the SimCalorimeterHit is split into the hit itself and  relation to a HitContribution in a different collection (!). This seems necessary as we have a tree structure here: one hit (cell) can have contributions from several MCParticles, which in turn create several steps in the simulation.
I did not manage to map that onto sth.simpler, e.g. using a vector member of a component, as these cannot contain other components or relations ...

Looks good! This will require AIDASoft/podio#60, i.e. an updated version of podio to compile. Frank, I can make a new cvmfs installation next week if you make a tag of podio, as soon as the last PRs are in of course

CI fails due to outdated PODIO.


Debug: Evaluate not added to the Debug Console's input history

VSCode Version: 1.19
OS Version: Win

Steps to Reproduce:

Select a code chunk
Debug: Evaluate via context menu or command palette
go to Debug Console, focus input line
press UpArrow
observe the input being populated by the previous manual input, not the last Debug: Evaluate

Occurs in Node debugger, Chrome debugger and Firefox debugger.
I guess its not really a bug an more a missing obvious feature.
Thank you.

whoops, dep #39182


python310Packages.angr: 9.2.40 -> 9.2.41

Description of changes
Bump angr stack to 9.2.41

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

16 packages built:

python310Packages.ailment
python310Packages.angr
python310Packages.angrcli
python310Packages.angrop
python310Packages.archinfo
python310Packages.claripy
python310Packages.cle
python310Packages.pyvex
python311Packages.ailment
python311Packages.angr
python311Packages.angrcli
python311Packages.angrop
python311Packages.archinfo
python311Packages.claripy
python311Packages.cle
python311Packages.pyvex


Add Doctor section in Services section in HomePage

Description
Add separate box for "doctors" under Services section in HomePage so that users can get infos about Doctors and get consultation.
In this section: Add another box
Screenshots

Additional information
Guidelines ⚠
I will follow the Setup Guidelines
I will follow the Contributing Guidelines
I will follow the Code of Conduct

Notice ⛔
You will make PRs only to itsroy69-doctalk branch.
Commit message / PR title--> fix: bla bla bla
Please make sure in the .css files you are making/using , the styles should be applied to Unique Class names

Completed / Doubts ? 🚀
Once you are done with the code , please tag me in #milan with the Screenshot of whatever you made so that we can review that there together.
If you have any doubts, queries please tag me in #doctalk so that we can discuss the issue there together.
Cheers 🥂

Hi, I have added the doctor section. Included two Pages under Pages folder Doctorinfo.jsx and Doctorcontact.jsx
Included the doctor section under service.
I have done only the client side for now, I would also like to include the server side #1 Doctor section as well.
And edited the image part by using Card-6 image for the Doctors Section. Let me know if there is any another card image for the doctor section.
Please find the screenshot below:

I have raised a PR Fix:Add doctor section.
#8


chore: x/leverage storage updates

Description

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] targeted the correct branch (see PR Targeting)
[ ] provided a link to the relevant issue or specification
[ ] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed ! in the type prefix if API or client breaking change
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

@toteki I'm marking this R4R so you can look at the core changes. However, I will be adding unit tests.

Codecov Report

Merging #118 (3d0274d) into main (b198be3) will decrease coverage by 28.20%.
The diff coverage is 24.32%.

@@             Coverage Diff             @@
##             main     #118       +/-   ##
===========================================
- Coverage   76.71%   48.50%   -28.21%
===========================================
  Files           1        6        +5
  Lines          73      134       +61
===========================================
+ Hits           56       65        +9
- Misses         11       63       +52
  Partials        6        6

Impacted Files
Coverage Δ

x/leverage/types/genesis.go
0.00% <0.00%> (ø)

x/leverage/types/keys.go
0.00% <0.00%> (ø)

x/leverage/types/tx.go
0.00% <0.00%> (ø)

x/leverage/types/codec.go
46.66% <46.66%> (ø)

x/leverage/types/token.go
100.00% <100.00%> (ø)


Changed folder structure

Changed the ASP.NET folder in the root directory to my name and added sub folders for my projects.

There are conflicts in your code. Look into it


Does not work on FreeBSD

..because ping syntax is incorrectly assumed to be Linux-like, while it is macOS-like, as Darwin is a BSD-based system.
I have submitted PR #10 fixing this, but I see it has not been actioned. Are you interested in PRs or is this an abandoned or perhaps a personal project? I ask, because another new project is awaiting this PR, see https://github.com/samoshkin/tmux-config/pull/2
Many thanks,
Rafal

The PR is merged now. Thank you.

Many thanks, @bruno-.


consider writing nlcg.json with indent=2

Currently, the nlcg.json files are written on a single line which makes them hard to read.
I understand that these are meant for post-processing - still, it might be worth considering printing them with what would be equivalent to indent=2 in the python json module, as this makes it much easier for users browsing them with a text editor on the HPC machine.

I was assuming that jq (https://stedolan.github.io/jq/) is available on most systems. The unformatted json consumes approx 2x less disk space. The file is mainly for debugging purposes and an end user won't be interested in it usually. Aiida might use it instead of parsing the stdout to monitor convergence speed, for example.
The file is of the following form (this is a hack to preserve the output in case of unexpected termination, walltime limit for example):
{nlcg_data_iteration0}
...
{nlcg_data_iterationN}

It can be converted to a valid json file using jq --slurp nlcg.json. And, for example, jq -s nlcg.json | jq .[5] can be used to show the data of the 5-th nlcg iteration. Every 10th iteration the band energies / occupancies are dumped, this might be a huge chunk of data, and therefore, the best is to query it's contents using the jq command and not opening it in an editor.

I see, no worries - was just a suggestion.
Indeed I guess jq is present on many systems.

The file is of the following form (this is a hack to preserve the output in case of unexpected termination, walltime limit for example):

I see. It seems to me that this file is valid JSON Lines format https://jsonlines.org/
You might want to change the extension to .jsonl.

Thank you! I wasn't aware of the JSON lines format, I'll change the extension accordingly.


BME280 not work

Hi everybody,
I use heltec_wifi_lora_32_v3 with firmware 2024_04_28. works very well.
I uploaded 2024_06_18, it also works fine, except for the BME280 sensor. In the .json file, BME is "active : true", BME is connected to SDA=17, SCL=18 on the board, in parallel with Oled, but alsos nothing related to BME280 in the VSCode monitor window during booting. No any hardware changes. I put the old version and everything wok fine.
There are 2 new lines in boards_pinout.h: BOARD_I2C_SDA and BOARD_I2C_SCL. If these were in their original state,0 41 and 42, the boot is fast, but there is no BME280, if I rewrite them to 17 and 18, the boot stops approx. for 40 seconds and still no BME280.
Where could the problem be?
Many thanks.

Hi,
Heltec V3 had problems most of the times when running I2C modules in parallel with OLED pins
this is why it is implemented (for a while) with a secondary I2C pins
41 SDA
42 SCL should be the connections for your BME280
check the connections please and let me know if this worked for you

Thanks for the very quick response.
I just soldered it to 41 and 42 and the BME280 works perfectly..
(I didn't think about that because in the original state, Oled + BME280 .... 17,18 with version 2024_04_08, the secondary I2C pins were not needed)
Thank You very much , everything is working fine.

great!


Add name attributes to new poll form inputs

Expected input names:

email
title
question
answer1_title
answer1_description
answer2_title
answer2_description
answer3_title
answer3_description

name attributes applied to existing input elements. Some fields do not exist and will be added in Issue #2


Add support for crawler instantiation outside of async with Actor block

Basically make this work:
import asyncio
from apify import Actor
from crawlee.parsel_crawler import ParselCrawler

crawler = ParselCrawler()

@crawler.router.default_handler
async def request_handler(context: ParselCrawlingContext) -> None:
    context.log.info(f"Processing URL: {context.request.url}...")
    # Handle the request logic here (e.g., parsing, extracting data, etc.)
    ...

async def main() -> None:
    async with Actor:
        await crawler.run(['https://crawlee.dev/'])

if __name__ == '__main__':
    asyncio.run(main())

https://github.com/apify/apify-sdk-python/issues/324
https://github.com/apify/crawlee-python/pull/691#issuecomment-2532059749

Bruh https://github.com/apify/crawlee-python/issues/806


[Bug] The hyperlink to the document is broken

Pre-check

[X] I am sure that all the content I provide is in English.

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache Dubbo Component
Java Samples (apache/dubbo-samples)
Dubbo Version
No
Steps to reproduce this issue

What you expected to happen
Restore the normal use of the hyperlink
Anything else
Please assign to me if possible,thanks~
Are you willing to submit a pull request to fix on your own?

[X] Yes I am willing to submit a pull request on my own!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Can you please help fix it?

Yes,I am.I will find other broken  hyperlink to fix.Please assign me ~

Please close this issue as completed @heliang666s


Adds specs and fix for \s after separator

We have in our .env-file an entry with = as separator followed by a \s and a quoted value including # in this way:
SECRET_PASSWORD              = 'foo#bar234#'

Parsing it leads to the unfortunate cutting after the #:
env("SECRET_PASSWORD              = 'foo#bar234#'")
=> {"SECRET_PASSWORD"=>"'foo"}

This fix will let it parse correctly:
env("SECRET_PASSWORD              = 'foo#bar234#'")
=> {"SECRET_PASSWORD"=>"foo#bar234#"}

Thank for MR @l-schirrmeister !
We have the same issue since 2.5 and fixated an app with 2.4 version.

Good job @l-schirrmeister :p


refactor(Agent): remove unused parameters

This PR removes several unused and deprecated parameters to clean up the codebase:
Changes:

Remove JSON Mode from OpenAI component (redundant functionality)
Remove Schema (output_schema) from OpenAI component (deprecated)
Remove Model Kwargs from OpenAI component (unused)
Remove Output Parser from OpenAI component (non-functional)
Remove Verbose parameter from agent component (unused)

These changes simplify the components by removing parameters that were either deprecated, redundant, or not being used effectively.

When making changes in Agent componet Please ensure that the change in providers are tested.
Also Ensure the relevant code refactor is proprly handled in two different PR.
I suggest we have a different PR to remove non relevant variable from Models and another PR to remove it from Agent.
We have seen issues, that any changes in the model components should be tested with the agents, hence I suggest to have a seperate PR to remove deprecated params from models (Esp the ones used in agents component).


Orca bomb propeller - damage bonus for bouncing

Create a sane way of adding bonus damage for the orca bomb propeller

players should be incentivized to land "trick shots" with high damage multipliers for a "stylish" bounce
need to minimize abuse of "rolling" a bomb across the floor for big damage numbers with 0 effort
orca bomb needs to be a straight upgrade to m79 in closed-quarters holding spots
1 bounce should break even with a full upper torso hit
2 bounces should have a big payoff
3 bounces should instakill all small zeds(up to gore) in the explosion radius

Things to consider:

Minimum time between bounces
Minimum projectile speed to award a multiplier
Cap the multiplier stack (bounce counter)
Minimum distance between bounces (cache last bounce location, and use vector length)

Implemented in 95725e8.


[BUG]:

Task name
Install Apple certificate
Task version
2.200.0
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
AzureDevOpsServer_20230217.5
Operation system
MacOS Ventura 13.0.1
Task log
==============================================================================
Task         : Install Apple certificate
Description  : Install an Apple certificate required to build on a macOS agent machine
Version      : 2.200.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/install-apple-certificate
==============================================================================
/usr/bin/openssl pkcs12 -in /Users/******/Downloads/Agent/_work/_temp/beanbar_certificate.p12 -nokeys -passin pass:axiom | /usr/bin/openssl x509 -noout -fingerprint -subject -dates -nameopt utf8,sep_semi_plus_space
MAC verified OK
SHA256 Fingerprint=D3:56:3C:42:E2:78:67:B0:F2:AC:76:03:2E:8F:56:E2:75:60:73:1D:8A:11:0D:40:29:1F:24:13:72:5D:05:1E
subject= UID=382******; CN=iPhone Developer: Ste******  ou (2WG2******); OU=5CF8RPL35M; O=Axio******td.; C=CY
notBefore=Mar 14 07:41:24 2023 GMT
notAfter=Mar 13 07:41:23 2024 GMT
##[error]Error: Unable to find the certificate SHA1 hash and common name (CN). Verify that the certificate is a valid P12.
Finishing: Install Certificate

Relevant log output
==============================================================================
Task         : Install Apple certificate
Description  : Install an Apple certificate required to build on a macOS agent machine
Version      : 2.200.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/install-apple-certificate
==============================================================================
/usr/bin/openssl pkcs12 -in /Users/******/Downloads/Agent/_work/_temp/beanbar_certificate.p12 -nokeys -passin pass:axiom | /usr/bin/openssl x509 -noout -fingerprint -subject -dates -nameopt utf8,sep_semi_plus_space
MAC verified OK
SHA256 Fingerprint=D3:56:3C:42:E2:78:67:B0:F2:AC:76:03:2E:8F:56:E2:75:60:73:1D:8A:11:0D:40:29:1F:24:13:72:5D:05:1E
subject= UID=382******; CN=iPhone Developer: Ste******  ou (2WG2******); OU=5CF8RPL35M; O=Axio******td.; C=CY
notBefore=Mar 14 07:41:24 2023 GMT
notAfter=Mar 13 07:41:23 2024 GMT
##[error]Error: Unable to find the certificate SHA1 hash and common name (CN). Verify that the certificate is a valid P12.
Finishing: Install Certificate

Aditional info
No response

We still have this issue.
Maybe the just released new version Azure DevOps Server 2022.1 will solve this.

We still have this issue.
Maybe the just released new version Azure DevOps Server 2022.1 will solve this.

And, it does come with the latest task version? (We don't have it yet, still stuck with an older one0

@ThumbGen Yes, Azure DevOps Server 2022.1 comes with the task version 2.225.0. This one solves this issue. The error does not occur anymore:
Error: Unable to find the certificate SHA1 hash and common name (CN). Verify that the certificate is a valid P12.

Just verified myself, it works. @twobytescy I think this can be closed now.


Composer require 5.6, but there is no documentation

When you run:
composer require hyn/multi-tenant
It downloads the version 5.6, but there is no Documentation for that version, either "5.5", I supose that is similar to the 5.4. If there is no documentation yet, please in the 5.4 docs put the version in the composer require

I agree with your advice. I also got the same problem!

They should be the same but 5.5 supports laravel 6.0 while 5.6 supports laravel 7.0

Apologies for the delay in (official) response.  @Bibendus83 is correct.  We're 100% slacking on the docs side, I will admit that.  The good news is that other than a couple small bugfixes and the version updates, there were no changes between 5.4 and 5.6.  5.5 added support for Laravel 6, and 5.6 added support for Laravel 7.  We'll get to the docs at some point.


Update 08-types-of-wallets.mdx, adding NOW Wallet

Hello! NOW Wallet is a non-custodial wallet developed by the ChangeNOW team that allows users to purchase, exchange, store, and stake ADA.
Both NOW Wallet and ChangeNOW are long-time Cardano supporters and we would greatly appreciate the addition to the types-of-wallets page!

Thanks for your contribution!


endpoint swap-instructions implementation

This endpoint:
https://station.jup.ag/api-v6/post-swap-instructions
Important for some use cases when the CompiledInstruction isn't good what we can get from the Swap's VersionedTransaction. New struct SwapInstructions can carry all the important data.

Thanks for the PR! I'll take a look this weekend as I'm currently on vacation

Enjoy your vacation :-)

thanks!


Can't find maya model

The folder maya-model is empty.Could you provide the maya model that are used in the test project. Thanks

now, you can find out the model  in this link https://drive.google.com/drive/folders/1ACzJ3FJHy2pJsEbp_jbdvaj5BEy4pTr6


No requirements.txt

Hello!
I would like to like create this project locally in a virtual environment with all the dependencies, but there is not requirements.txt here.  Please create one. Thanks!

Hi, in setup.py, the dependencies are mentioned.
 install_requires=['scikit-learn','xgboost','catboost','Keras','lightgbm']
You can install GML on any environment simply by pip:
pip install GML
this will install all the dependencies along with GML.

That's fine, I got that, but in case of any failures or weird error messages that might pop up in the dependencies themselves, it would help to note down which dependency is breaking. Keeping around version numbers can be useful for debugging later on. By default, I'm supposing pip just picks up the latest versions for these packages, right?

GML always requires the latest version of above mentioned dependencies.


allow the user to specify file mode.

This is useful if you start writing a file, and wish to do something like append to it later.

this is now solved in v 2.0 by passing file handle direclty https://github.com/keboola/php-csv#append-to-csv


Add mergeLead method

Handle the REST API method to merge two leads, with an optional mergeInCRM parameter.

Hello, any update ?

my apologies, I'll try to get to these PRs this week.

Thanks !

That makes sense. I made the changes you suggest, and I confirm that leadIds works also with an array of one id.

Hey, one last request. Can you squash this into a single commit? It provides two benefits:

Makes it easy to revert this one change/feature if necessary
Gives it an "atomic" commit so that in the future we may not accidentally revert back to a commit with a broken API. Either we would have this API or not, but not a different one. Not sure if that makes sense.

@peaches I corrected the indentation and all squashed in a commit, no problem.

Perfect, thank you.


Help command is broken

See conversations on discord, putting this here for record keeping

Works fine for me right now. Did we establish over discord that this was discord itself causing trouble?

This was so far back, I think it was probably when Fred would respond to help commands with an error. I think @Feyko  fixed it and this is no longer an issue


Mpremote install

Added an additional install_mpremote.sh and instructions in order to preserve the legacy of rshell, which some users may prefer, but mpremote should be the default way to install until mip (and mpremote mip) support is added via means of package.json and proper folder structure.
I also threw in a .gitignore mostly for the stupid Mac OS .DS_Store files littering our systems 🥲
Open to feedback and change requests for this PR

hey @SpotlightKid
thank you for reviewing this, I'll get into resolving the requests a bit later today, but they're all extremely good points.

So, I'd like to keep the different installation variants/scripts for a while and maybe get some feedback which approach works best.

this sounds like a good way to proceed, but I'm very much in support of moving to mip for installation.
In our internal projects we still use mpremote cp because mip is a very recent addition, but we're transitioning to making all our stuff mip compatible for many reasons, including installing modules from connected boards.
I really appreciate the chance to contribute to mrequests, and I'd love to see it become part of MicroPython-libs :)


nvim-compe doesn't complete properly if the candidate contains apostrophe

Describe the bug
When the candidate from lsp contains apostrophe, nvim-compe only completed all the characters before that apostrophe.

I wonder if I missed some settings to make the completion work properly.
To Reproduce

Here's the minimal nvim config.

call plug#begin('~/.config/nvim/plugged')

  Plug 'hrsh7th/nvim-compe'
  Plug 'neovim/nvim-lspconfig'

call plug#end()

set completeopt=menuone,noselect

lua << EOF
require'compe'.setup {
  enabled = true;
  autocomplete = true;
  debug = false;
  min_length = 1;
  preselect = 'enable';
  throttle_time = 80;
  source_timeout = 200;
  incomplete_delay = 400;
  max_abbr_width = 100;
  max_kind_width = 100;
  max_menu_width = 100;
  documentation = true;

  source = {
    path = true;
    buffer = true;
    calc = true;
    nvim_lsp = true;
    nvim_lua = true;
    vsnip = true;
    ultisnips = true;
  };
}

require'lspconfig'.hls.setup{}
EOF

I think I have discovered a similar issue. In my case, $ is being stripped from the autocompletion field.
In the result below, the menu shows the correct option, e.g., $blue400, but the autocompletion strips out the special character, printing blue400 instead.


Loosing resize handle when making widget too large

Testing #109394
See screen cast

The problem is:

the left broader doesn't offer a resize handle
the right broader always resizes the window not the code completion widget.

I think with some fine fiddling you can grad it again, esp when trying the lower right corner but I agree it's not good. I think I can tweak the sash size/width

You should still be able to grab it but inwards. The sash handle sits center-aligned onto the border and since the outer part isn't visible anymore you should be able to grab the inner part. This can also be made simpler via the workbench.sash.size-setting. The only tweak I see here is to subtract half the sash width from the max width of the widget

There is now a padding of 22px for the top/bottom (matching the status bar and menu bar) and padding of 14px for the sides (matching the scroll bar width). That should make things much better


mbtiles.cpp: isinf to std::isinf

Otherwise this may happen:
mbtiles.cpp:703:13: error: 'isinf' was not declared in this scope; did you mean 'std::isinf'?
  703 |         if (isinf(droprate)) {
      |             ^~~~~
      |             std::isinf
In file included from /opt/local/include/LegacySupport/cmath:54,
                 from mbtiles.cpp:10:
/opt/local/include/gcc14/c++/cmath:1169:5: note: 'std::isinf' declared here
 1169 |     isinf(_Tp)
      |     ^~~~~
make: *** [mbtiles.o] Error 1

Elsewhere in the code it is already used as std::isinf, but here it was not fixed.


[tracing] tracing in OTLP support configuring service_name

[ ] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
fix #6184
add service_name to OTLP tracing config to improve the readiness of the trace data.

Looks like this adds a field to the config. Can you run make docs @fatsheep9146?

Looks like this adds a field to the config. Can you run make docs @fatsheep9146?

Done @saswatamcode

Change lgtm. Can you update the changelog please?

I directly changed the CHANGELOG.md. :)
@yeya24


Revise and simplify README.md content

The currently published README.md in NPM is not completely right about the deserialization and undeclared text per se:
<employee>
  This employee is terrible!
  <firstName>John</firstName>
  <lastName>Doe</lastName>
  <emails>
    <email<EMAIL_ADDRESS>    <email<EMAIL_ADDRESS>  <emails>
</employee>

shall deserialize to:
{
  name: "employee",
  data: {
    _text: "This employee is terrible!",
    firstName: "John",
    lastName: "Doe",
    emails: [
      {
        type: "work",
        _text<EMAIL_ADDRESS>      },
      {
        type: "personal",
        _text<EMAIL_ADDRESS>      }
    ]
  }
}

There is a typo near the end of your documentation:
"Will display the following Javascritp object:"


AOT build fails when using environment variables

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[ -] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Using Define Plugin to pass environment variables like the one below

    new DefinePlugin({
                'process.env.NODE_ENV': METADATA.ENV
            }),

results in
Uncaught ReferenceError: process is not defined

when running aot build.

What is the expected behavior?
process.env.NODE_ENV or anything else inside shouldn't result in the error.

Please tell us about your environment:

Angular version: 5.x
Browser: [all  ]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Solved it by downgrading my nodejs version. the process had nothing to do with the webpack plugin but with another package called process-next-tick


General fixes

Removed CHANGES.md because I don't think we're ever going to use it. It's just stagnating.
In a recent commit, I changed all concatenated error messages to use double quotes for consistency (we were using single and double throughout). Unfortunately, double quotes doesn't always print nicely so I changed them all to single quotes.


add a uilabel on cell

I try to add a uilabel on each cell, but it doesn't work. What I did is 1. add uilabel to cell on storyboard, and hook it to MJCollectionViewCell.h 2. add cell.title.text=@"sdsdsd"; in cellForItemAtIndexPath:(NSIndexPath *)indexPath() ;
But it still doesn't work? what's wrong with my code? Thanks.

What is the problem you face in adding a label?

Thanks for your reply. My problem is The UILabel can't be displayed. Could you supply a small demo for it?

I'm having the same problem... anything that i want to display white adding in the MJCollectionViewCell or in a subclass isn't appearing

I've noticed that it's best to modify UICollectionViewCell in code. When you are doing both Storyboard is somewhat buggy with that.
I just tried this my self in MJCollectionViewCell.h and everything works as expected:
self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];

[self addSubview:self.MJImageView];
[self.MJImageView addSubview:self.nameLabel];

Great !  Thanks for your help!

Hey @dreamgo @ehmadzubair @pahnev the problem you were facing is MJImageView came above the things you added.
In MJCollectionViewCell.m file, just add this line below initialization of MJImageView in the method setupImageView
[self sendSubviewToBack:self.MJImageView];

Like this :
- (void)setupImageView
{
    // Clip subviews
    self.clipsToBounds = YES;

    // Add image subview
    self.MJImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.bounds.origin.x, self.bounds.origin.y, self.bounds.size.width, IMAGE_HEIGHT)];
    self.MJImageView.backgroundColor = [UIColor redColor];
    self.MJImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.MJImageView.clipsToBounds = NO;
    [self addSubview:self.MJImageView];
    [self sendSubviewToBack:self.MJImageView];
}

Let me know if you face any other difficulty!

Keep coding! :)


APT whitelist request for scikit-learn

If someone could submit a PR for this it would be great. Thanks

Moved to https://github.com/travis-ci/apt-package-whitelist/issues/1396 due to wrong naming for the apt package.


Not working when deployed (Google Cloud). TimeoutError: waiting for selector .cf-browser-verification to be hidden failed: timeout 30000ms exceeded

This is what I get running on GCP using offersByScrolling: TimeoutError: waiting for selector ``.cf-browser-verification`` to be hidden failed: timeout 30000ms exceeded
It seems it is sometimes working and sometimes failing on this error.
Any idea what's happening there ?

I think most likely opensea is detecting that you run the scraper from a google cloud IP and the cloudflare loop kicks in where it will refresh the page in an endless loop asking you to wait to resolve.
I have no way around that currently, deploying scrapers on cloud infrastructure is difficult.
If you (or someone else) has ideas please share, its a very common problem.

UPDATE: When running on GCP we now have a less frequent TimeoutError: waiting for selector ``.cf-browser-verification`` to be hidden failed: timeout 30000ms exceeded error, but when we don't have the error we end up with a empty offers list and stats, i.e.:
offers: []
stats: {}

I hope this will be fixed by v7's new approach 🤞

Bypassing cloudflare is definately not my expertise. I have tried to solve this problem for some time now, and it is definately possible but as you mentioned its an arms race. I tried these packages:

cloudflare-scraper in JS, did not work for me. To me it seems like its not maintained anymore.
cloudscraper python package. I managed to setup a google cloud run environmen with python and successfully overcome cloudflare. That was 3 months ago approximately. To make it work with OpenseaScraper you could: => only get HTML through python, then extract top 32 offers with the code provided in this repo. OR: rewrite everything in pypeteer, but I am not sure if that would even work.


add udev dependency to TRY.md

i just found out that on ubuntu 22.04,  libudev-dev cannot be installed if udev is not installed first

Thanks. utACK 4dcac426a941dd62b27d4df1379ef836e394a789.


Entry not visible in entries list in CP

Hi
When I use this plugin, I don't see the entry in the control panel under the "entries" tab (entries > all entries). The strange this is: it is in the database, it also shows up on the dashboard (in the recent content widget), and if I click it there, I can edit it. It's just missing from the entries page.

I'm guessing you've got the "Entries Enabled By Default?" plugin setting set to off and > 50 entries in the section already.  The entry index page will put any disabled entries at the bottom of the list and that is probably off-screen for you.


ML Kit on Device Face detection API is Very Slow

Step 1: Describe the environment

Android device:  Moto C Plus
Android OS version: 7.0
Google Play Services version: 'com.google.gms:google-services:4.2.0'
Firebase/Play Services SDK version: com.google.firebase:firebase-core:17.0.1

Step 2:
ML Kit on Device Face detection API is Very Slow
I want to detect face from gallery Image. I tried with Mobile vision Api and detected face successfully. On website of mobile vision api, they have mentioned about Firebase MLKIT.
I also tried firebase ML Kit and detected face.

Steps to reproduce:

Select Image from gallery
call detect function with FirebaseVisionFaceDetector on bItmap Image
Takes long time to give result.

Observed Results:

Too much time to process data.

Expected Results:

Performance should be fast. As Mobile Vision API is faster as compare to Firebase ML Kit.
Can I used Mobile Vision API for my app instead of Firebase ML Kit?

Relevant Code:
FirebaseVisionFaceDetector detector = FirebaseVision.getInstance()
          .getVisionFaceDetector(option);

  detector.detectInImage(image).addOnSuccessListener(
          new OnSuccessListener<List<FirebaseVisionFace>>() {
              @Override
              public void onSuccess(List<FirebaseVisionFace> faces) {
}

If you are using a bitmap Firebase is extremely slow around 800 ms for face detection, but if you transform the bitmap to nv21, it does the job in 5-20ms.
fun toNv21(inputWidth: Int, inputHeight: Int, scaled: Bitmap): ByteArray {
    val argb = IntArray(inputWidth * inputHeight)

    scaled.getPixels(argb, 0, inputWidth, 0, 0, inputWidth, inputHeight)
    val yuv = ByteArray(inputHeight * inputWidth + 2 * Math.ceil(inputHeight / 2.0).toInt() * Math.ceil(inputWidth / 2.0).toInt())
    //val yuv = ByteArray(inputWidth * inputHeight * 3 / 2)
    encodeYUV420SP(yuv, argb, inputWidth, inputHeight)

    scaled.recycle()

    return yuv
}

fun encodeYUV420SP(yuv420sp: ByteArray, argb: IntArray, width: Int, height: Int) {
    val frameSize = width * height
    var yIndex = 0
    var uvIndex = frameSize
    var a: Int
    var R: Int
    var G: Int
    var B: Int
    var Y: Int
    var U: Int
    var V: Int
    var index = 0
    for (j in 0 until height) {
        for (i in 0 until width) {
            a = argb[index] and -0x1000000 shr 24 // a is not used obviously
            R = argb[index] and 0xff0000 shr 16
            G = argb[index] and 0xff00 shr 8
            B = argb[index] and 0xff shr 0
            // well known RGB to YUV algorithm
            Y = (66 * R + 129 * G + 25 * B + 128 shr 8) + 16
            U = (-38 * R - 74 * G + 112 * B + 128 shr 8) + 128
            V = (112 * R - 94 * G - 18 * B + 128 shr 8) + 128

            // NV21 has a plane of Y and interleaved planes of VU each sampled by a factor of 2
            //    meaning for every 4 Y pixels there are 1 V and 1 U.  Note the sampling is every other
            //    pixel AND every other scanline.
            yuv420sp[yIndex++] = (if (Y < 0) 0 else if (Y > 255) 255 else Y).toByte()
            if (j % 2 == 0 && index % 2 == 0) {
                yuv420sp[uvIndex++] = (if (V < 0) 0 else if (V > 255) 255 else V).toByte()
                yuv420sp[uvIndex++] = (if (U < 0) 0 else if (U > 255) 255 else U).toByte()
            }
            index++
        }
    }
}

If you are using a bitmap Firebase is extremely slow around 800 ms for face detection, but if you transform the bitmap to nv21, it does the job in 5-20ms.

Wow, this actually increased faced detection time 7x for me. Is this FirebaseVision aspect documented somewhere?

If you are using a bitmap Firebase is extremely slow around 800 ms for face detection, but if you transform the bitmap to nv21, it does the job in 5-20ms.

Wow, this actually increased face detection time 7x for me. Is this FirebaseVisionImage aspect documented somewhere?

It's provided in the ML Kit GitHub Sample which uses Camera2


Not getting API v2 properties (drive.files.list)

When getting the metadata of File objects from a FileList, I'm only seeing the properties from v1 of the API, even though I am specifying v2.  It almost looks like Google's API service is sending the wrong response back, but I could be wrong.
Not sure if it helps at all, but the selfLink property references the v2 address of the file.
Below is a simple test case that shows this (I don't have permission to attach a document here).
import apiclient
import httplib2
from oauth2client.file import Storage

storage = Storage('/path/to/cred_file.cred')
credentials = storage.get()

http = httplib2.Http()
http = credentials.authorize(http)

service = apiclient.discovery.build("drive", "v2", http=http)

metadata = service.files().list().execute()

print("service._baseUrl:                 ", service._baseUrl)
print("metadata['items'][0]['selfLink']: ", metadata['items'][0]['selfLink'])
print("metadata['items'][0].keys():      ", metadata['items'][0].keys())

# Is the service base URL v2 of the API?
assert service._baseUrl == 'https://www.googleapis.com/drive/v2/'
# Does the self link use v2 of the API?
assert 'https://www.googleapis.com/drive/v2/' in metadata['items'][0]['selfLink']
# Available in both v1 and v2 of API
assert 'userPermission' in metadata['items'][0]
# Only available in v2 of API
assert 'permissions' in metadata['items'][0] # Fails

I don't know if this is something that needs to be reported to the Apps API Team or not.

Elaborate more on how you could be wrong? How much additional work would I have to ask of you to be confident that the problem were with Google's API service?

I was thinking that there

It looks like I'm seeing the v2 properties, but am missing many of them.
I opened a ticket for the API Team.

Great. Will keep listening here in case anything comes back to this library.

Looking at some of the other issues posted there, it looks like there has been a 2-3 month delay between initial filing and somebody responding or categorizing them; issues from June/July getting a response or categorized in late Sept or early Oct.

@pferate: should this issue remain open?


[BUG] Export resulting in 404

Describe the bug
Export/Download pdf ends in 404
Product Flavor

[ ] Managed (https://rxresu.me)
[x] Self Hosted

To Reproduce

Create a CV
Click Download PDF
get a pdf which actually contains html of a 404 page (network tab also shows a 404)

Expected behavior
Get a pdf
Desktop (please complete the following information):

OS: Ubuntu 22.04
Browser Brave
Version 1.42.97 Chromium: 104.0.5112.102 (Official Build) (64-bit)

Self hosted with docker, no difference when using local storage or s3 variant
Also I checked inside the container and the export directory /app/server/dist/assets/exports/ is still empty.
No errors or log on the console/docker logs.

Getting similar error. PDF exports to a small file displaying 404 code and will not open inside acrobat or in a browser stating it is improperly decoded. Using docker/brave/newest docker image just like OP.
My export volume is also empty. Logs do not throw error.

This should be fixed now, as of v3.6.6


Deduplicate installed ontology generation

Codecov Report

Merging #2 into master will decrease coverage by 0.31%.
The diff coverage is 82.40%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
- Coverage   75.43%   75.11%   -0.32%
==========================================
  Files         124      124
  Lines        8304     8327      +23
==========================================
- Hits         6264     6255       -9
- Misses       2040     2072      +32

Impacted Files
Coverage Δ

tests/dummy_batch_processor.py
98.52% <ø> (-0.05%)
:arrow_down:

forte/data/ontology/utils.py
70.00% <75.00%> (-1.67%)
:arrow_down:

forte/data/ontology/ontology_code_generator.py
87.50% <75.51%> (-4.79%)
:arrow_down:

forte/data/ontology/code_generation_exceptions.py
100.00% <100.00%> (ø)

forte/data/ontology/code_generation_objects.py
91.38% <100.00%> (-1.83%)
:arrow_down:

forte/data/ontology/ontology_code_const.py
100.00% <100.00%> (ø)

...orte/data/ontology/ontology_code_generator_test.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c0ead4...04883a4. Read the comment docs.


fix(instructeurs): la vérification du token appelle la bonne route #203

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


Suggesttion to split a map update in spatially-smaller changes

Have you tired of getting in OSM recent changes all this polygons that are covering half of the planet? That is because people are making a small edit in Australia and another small one in New York.  It would be great if iD would suggest before asving to split edits into two+ map updates.

What sort of size do you think would be appropriate?

See #7434

iD isn't actively maintained at the moment of writing this, but I'll go ahead and close this as a duplicate of #5424 as a matter of housekeeping


performance loss in July 2 package update

I experienced performance loss after July 2 package update (2a7637fea5b7f2b6b980b9c5a11c87bd2c861a7d). Here are some results on a project. Anybody has an idea about why this happen?
date | hashtag | loss
=====================
Apr 8 | cbb5161 |  6.35515
May 1 | 57c7057  | 6.35515
Jun 22 | a47bec0 |  6.35515
Jul 2 | b64bc52  | 6.35515
Jul 2 | 2a7637f  | *19.6400* <- package update

hashtag is torch/distro's commit #. loss is cross entropy loss at 100 iterations.

hi! I am looking into it.

do you use cuda? also, do you use cudnn?

@soumith use cudnn.

do you have any ClippedReLU nonlinearity?

@soumith I'm sorry for the code is not ready for release. But I can give you any information you need. The model uses Dropout, Tanh, Linear, CMulTable, ParallelTable, CAddTable, optim.rmsprop.

okay, this is very helpful.
To convert your model to cudnn, do you use cudnn.convert ?

@soumith Oops, I think I did require 'cudnn', however I just called :cuda() on the model... May be just cunn was used.

ok great. i will see what changes were made in cunn at that time. If you run the model in CPU mode (i.e. without GPU), do you also see the loss going to 19.6400 or is it only in GPU mode?

@soumith wait a moment, I am checking.

Actually, I have found a change in RMSProp that might be affecting you.
Look at this commit: https://github.com/torch/optim/commit/9c08fde975c5998cc25d5ebf265754486dd5c160
Can you see if changing the file:
~/torch/install/share/lua/5.1/optim/rmsprop.lua line 43 to
"state.m = torch.Tensor():typeAs(x):resizeAs(dfdx):zero()"
and see if that fixes it.
If it does, I can go from there...

@soumith Bingo! You're right. I'v compared with adam and your idea is confirmed. I am afraid whether this update in optim.rmsprop is appropriate because it causes very slow convergence in early iterations. Thanks, tweezers!

@jnhwkim in the PR, @andreaskopf suggests that you can now increase the learning rate because the initial vector is properly scaled. Can you try that?

@andreaskoepf

@soumith There's no guideline for incresement of the learning rate?

@jnhwkim Could you please try to change the alpha value of rmsProp in your test to 0.9 instead of it's default value of 0.99. 0.99^100 is still 0.36603 but 0.9^100 is <0,000027. I personally believe an alpha value of 0.99 is too high in most situations (other frameworks also use a lower default value of 0.9, see tf or lasagne).
I suggested to initialize to 1 instead of zero because otherwise you likely get a very strong amplification of the gradients at the beginning of the training (because you devide by an hypothetical average gradient formed between 0 as the past running average and 0.01 times the actual gradient). To initialize with 1 is conservative and will start close to sgd and only over time normalize with information about the true gradient - how fast this happens depends on the decay parameter alpha.
Regarding learning rates: If I experiment with different optimization schemes I prefer to ideally use the same learnig rate and just vary the optimization methods (e.g. from sgd to rmsprop etc.). With 0 as initialization value and the process often diverged after 3-5 iterations in my experiments.
A solution to make everybody happy could be to simply make the fill value a parameter (and maybe lower alpha to 0.9).

@andreaskoepf So, learning rate is the same (I'm starting with 0.0003), but try alpha = 0.9 right?

@jnhwkim The initial learning rate depends on your model and weight initialization and batch size (e.g. how representative was the batch for all examples - for true 1-sample online learning you would probably use a much lower learning rate than for a 200 example batch) - I do not exactly know your setting but you might want to try significantly higher values and see what happens. I have a couple of models that could be started with 1 or 0.1 learning rate with sgd. But for the 'old' rmprop I had to lower the learning rate to something like 1E-4 in order to make it run.

@andreaskoepf Thanks for helpful comments! I am bad at tuning.


scalpel fail libbamtools.so.2.3.0: cannot open shared object file

Hi Chapmanb,
scalpel is missing one library and fail
Thanks!
Genotyping with Scalpel
[2015-08-24T22:11Z] Local date and time: Mon Aug 24 22:11:42 2015
[2015-08-24T22:11Z]
[2015-08-24T22:11Z] Program: scalpel (micro-assembly variant detection)
[2015-08-24T22:11Z] Version: 0.3.1(beta)
[2015-08-24T22:11Z] Contact: Giuseppe Narzisi<EMAIL_ADDRESS>[2015-08-24T22:11Z]
[2015-08-24T22:11Z] _START ANALYSIS_
[2015-08-24T22:11Z] Genotyping with Scalpel
[2015-08-24T22:11Z] -- Print parameters to /mnt/work/mutect/2/tx/tmppNYdBC/tx/tmp7aAJmX/parameters.txt
[2015-08-24T22:11Z] Loading targets from BED file...3 targets (filtered 0 overlapping).
[2015-08-24T22:11Z] /usr/local/Cellar/scalpel/0.3.1_5-2d23b7/bamtools-2.3.0/bin/bamtools: error while loading shared libraries: libbamtools.so.2.3.0: cannot open shared object file: No such file or directory
[2015-08-24T22:11Z] Command failure: extract SAM header (/usr/local/Cellar/scalpel/0.3.1_5-2d23b7/bamtools-2.3.0/bin/bamtools header -in /mnt/work/mutect/2/tx/tmppNYdBC/tx/tmp7aAJmX/bamfile.bam > /mnt/work/mutect/2/tx/tmppNYdBC/tx/tmp7aAJmX/header.txt)...
[2015-08-24T22:11Z] child exited with value 127
Assembly Exons
[2015-08-24T22:11Z] start assembly of 3 regions.
[2015-08-24T22:11Z] stepSize: 3
[2015-08-24T22:11Z] 1. [0..2]
[2015-08-24T22:11Z] Command failure: microassembly (/usr/local/Cellar/scalpel/0.3.1_5-2d23b7/Microassembler/Microassembler -R -I -C -F 10000 -k 25 -K 90 -M 3 -l 25 -c 3 -x 0.01 -d 1 -u 10000 -b 1 -p /mnt/work/mutect/2/tx/tmppNYdBC/tx/tmp7aAJmX -m bamfile.bam -g readgroups.txt  -r regions-0-2.fa >/mnt/work/mutect/2/tx/tmppNYdBC/tx/tmp7aAJmX/logs/regions-0-2.fa.log 2>&1)...
[2015-08-24T22:11Z] child exited with value 127
[2015-08-24T22:11Z] Merge DBs...
[2015-08-24T22:11Z] Load reference coverage...
[2015-08-24T22:11Z] Load loc2keys DB...
[2015-08-24T22:11Z] Computing hom/het state...
[2015-08-24T22:11Z] Num. Homozygous: 0
[2015-08-24T22:11Z] Num. Heterozygous: 0
[2015-08-24T22:11Z]
[2015-08-24T22:11Z] Dfs limit: 0
[2015-08-24T22:11Z] Partial alignments: 0
[2015-08-24T22:11Z] Cycles: 0
[2015-08-24T22:11Z] OK assemblies: 0
[2015-08-24T22:11Z] Exceptions: 0
[2015-08-24T22:11Z] Repeats: 0

Thanks for the heads up on the problem. I pushed a fixed version of scalpel that uses the global bamtools instead of the local one and created a new Docker container for this and #107. As a heads up, scalpel is slow on larger datasets and we haven't been using it by default for this reason. It does do a good job of detecting indels, but I wanted you to be aware of the computational effort involved. Thanks again.

Hi, I am running into a similar error. How exactly did you solve this issue?

Alexandra;
Can you provide more details about the environment you're seeing this error? Is this from a bcbio or bioconda installation? If so, happy to debug more. If you have a different install, I can recommend using the bioconda package (https://bioconda.github.io/):
conda install -c bioconda scalpel

Hope this helps.

Hi. I had downloaded scalpel from http://scalpel.sourceforge.net/manual.html and I had the error.
Seems to works just fine with the version installed using conda.
Thanks for your quick reply.

Hi. I have now the following error:
samtools: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_putchar
after starting the assembly procedure.
Let me know if you have any idea how I can fix that.

Alexandra;
Sorry about that, it looks like you didn't get the right version of ncurses from the conda r channel (https://github.com/bioconda/bioconda-recipes/issues/637). You could fix with:
conda install -c r ncurses

Hope this gets things working cleanly for you.

I also have a similar problem like:
START ANALYSIS
-- Print parameters to /home/zhengsai/chr1/parameters.txt
Loading targets region: chr1:0-195471971
Loading genome from FASTA file...66 sequences.
Assembly Exons
start assembly of 1954716 regions.
stepSize: 390944
** 0 started, pid: 42302

[0..390943]
** 390944 started, pid: 42303
[390944..781887]
** 781888 started, pid: 42305
[781888..1172831]
Command failure: microassembly (/home/zhengsai/scalpel-0.5.3/Microassembler/Microassembler -R -I -C -F 1000000 -k 25 -K 90 -M 3 -l 25 -c 5 -x 0.01 -d 2 -u 10000 -b 1 -p /home/zhengsai/chr1 -m bamfile.bam -g readgroups.txt  -r regions-0-390943.fa >/home/zhengsai/chr1/logs/regions-0-390943.fa.log 2>&1)...
child exited with value 127
** 1172832 started, pid: 42308
[1172832..1563775]
Command failure: microassembly (/home/zhengsai/scalpel-0.5.3/Microassembler/Microassembler -R -I -C -F 1000000 -k 25 -K 90 -M 3 -l 25 -c 5 -x 0.01 -d 2 -u 10000 -b 1 -p /home/zhengsai/chr1 -m bamfile.bam -g readgroups.txt  -r regions-390944-781887.fa >/home/zhengsai/chr1/logs/regions-390944-781887.fa.log 2>&1)...
child exited with value 127

please help me

If this is a scalpel issue not related to bcbio your best bet is to ask the scalpel team: http://scalpel.sourceforge.net/ Hope this helps.

Hi all,
I am having the same error Command failure: microassembly. On checking the path for the
'microassembler' program, there is no executable file for it.
Any help with this?
Many thanks!

Hi @clersdom,
Could you post the whole error? It's tough to know exactly what is happening without it. Thank you!

Hi @roryk ,
Please see below the error:
Program: scalpel-discovery (micro-assembly variant detection)
Version: 0.5.4 (beta), January 11 2018
Contact: Giuseppe Narzisi<EMAIL_ADDRESS>MAIN ANALYSIS
-- Print parameters to /outdir/main/parameters.txt
-- Detect mutations on normal
-- Print parameters to /outdir/main/normal/parameters.txt
Loading targets from BED file...185636 targets (filtered 0 overlapping).
Assembly Exons
start assembly of 401216 regions.
stepSize: 401216
** 0 started, pid: 624240

[0..401215]
Command failure: microassembly (/rds/general/user/cd3417/home/anaconda3/envs/analysis_Clara/share/scalpel-0.5.4-1/Microassembler/Microassembler -R -I -C -F 1000000 -k 25 -K 90 -M 3 -l 25 -c 5 -x 0.01 -d 2 -u 10000 -b 1 -p /outdir/main/normal -m bamfile.bam -g readgroups.txt  -r regions-0-401215.fa >/outdir/main/normal/logs/regions-0-401215.fa.log 2>&1)...
** 0 just got out of the pool [PID: 624240 | exit code: 0 | exit signal: 0 | core dump: 0]
Merge DBs...
Load reference coverage...
Load loc2keys DB...
Computing hom/het state...
Num. Homozygous: 0
Num. Heterozygous: 0

Dfs limit: 0
Partial alignments: 0
Cycles: 0
OK assemblies: 0
Exceptions: 0
Repeats: 0
Printing reference coverage to file...
Printing loc2key DB to file...
-- Exporting variants to file
Loading targets from BED file...185636 targets (filtered 0 overlapping).
[#SNPs: 0 | #Ins: 0 | #Del: 0 | Tot: 0]
Export: elapsed time: 0 day(s) 0 hour(s) 0 minute(s) 0 second(s)
FindVariants elapsed time: 0 day(s) 2 hour(s) 41 minute(s) 29 second(s)
-- Detect mutations on tumor
-- Print parameters to /outdir/main/tumor/parameters.txt
Loading targets from BED file...185636 targets (filtered 0 overlapping).
Assembly Exons
start assembly of 401216 regions.
stepSize: 401216
** 0 started, pid: 2433299

[0..401215]
Command failure: microassembly (/rds/general/user/cd3417/home/anaconda3/envs/analysis_Clara/share/scalpel-0.5.4-1/Microassembler/Microassembler -R -I -C -F 1000000 -k 25 -K 90 -M 3 -l 25 -c 5 -x 0.01 -d 2 -u 10000 -b 1 -p /outdir/main/tumor -m bamfile.bam -g readgroups.txt  -r regions-0-401215.fa >/outdir/main/tumor/logs/regions-0-401215.fa.log 2>&1)...
** 0 just got out of the pool [PID: 2433299 | exit code: 0 | exit signal: 0 | core dump: 0]
Merge DBs...
Load reference coverage...
Load loc2keys DB...
Computing hom/het state...
Num. Homozygous: 0
Num. Heterozygous: 0

Dfs limit: 0
Partial alignments: 0
Cycles: 0
OK assemblies: 0
Exceptions: 0
Repeats: 0
Printing reference coverage to file...
Printing loc2key DB to file...
-- Exporting variants to file
Loading targets from BED file...185636 targets (filtered 0 overlapping).
[#SNPs: 0 | #Ins: 0 | #Del: 0 | Tot: 0]
Export: elapsed time: 0 day(s) 0 hour(s) 0 minute(s) 0 second(s)
FindVariants elapsed time: 0 day(s) 2 hour(s) 14 minute(s) 27 second(s)
-- Loading mutations and coverage info
load variants for normal...
load variants for tumor...
load coverage for normal...
load coverage for tumor...
load loc2key for for normal...
load loc2key for for tumor...
remove coverage file for normal...
remove coverage file for tumor...
-- Compute best state for each variant
-- Finding somatic mutations
-- Exporting variants to file
Loading targets from BED file...185636 targets (filtered 0 overlapping).
[#SNPs: 0 | #Ins: 0 | #Del: 0 | Tot: 0]
Export: elapsed time: 0 day(s) 0 hour(s) 0 minute(s) 1 second(s)
Loading targets from BED file...185636 targets (filtered 0 overlapping).
[#SNPs: 0 | #Ins: 0 | #Del: 0 | Tot: 0]
Export: elapsed time: 0 day(s) 0 hour(s) 0 minute(s) 1 second(s)
FindSomatic elapsed time: 0 day(s) 4 hour(s) 56 minute(s) 0 second(s)
Extract coordinates of candidates...Loading targets from BED file...185636 targets (filtered 0 overlapping).
No candidate calls to validate. Nothing to do! exit.

Hmm.. Does this not exist?
/rds/general/user/cd3417/home/anaconda3/envs/analysis_Clara/share/scalpel-0.5.4-1/Microassembler/Microassembler
It looks like it is running it, but it is failing. Does your BAM file look reasonable?

Sorry for the late response. No it does not exist as below
ls: cannot access /rds/general/user/cd3417/home/anaconda3/envs/analysis_Clara/share/scalpel-0.5.4-1/Microassembler/Microassembler: No such file or directory
Yes, the BAM files are ok. Have run other jobs with them. In addition, a colleague has run the same job with another sample that is confirmed to have indels and has got the same error. Seems that could have something to do with the installation?
We both installed scalpel by using anaconda.

Thanks, is this a scalpel issue or a bcbio issue? If it's a scalpel issue you're probably better off talking to the scalpel team: http://scalpel.sourceforge.net/


why pow does NOT support BigNumber when the mod is given.

I think modPow is a useful function in crypto, however, BigNumber 's multipliedBy function doesn't support big number even a mod is provided. Any ideas?

Yes, this has come up before, see #95.
I agree with you that the exponentiatedBy functon should support big numbers and I will implement this when time permits.

Thanks a lot.

Added support in v7.0.0.


Major Update for "short-video-creator" Project

Major Update for "short-video-creator" Project
Overview
As an open source contributor, I have updated several files and folders in the fork of the "short-video-creator" repository. The program was previously broken and not running, but I have fixed most of the bugs and it is now running without any errors. Below is a summary of the changes made.
Updated Files

corector.py
cutimages.py
cvideo.py
deleteall.py
images.py
imagetext.py
main.py
musicvideo.py
project.bat
ttcorect.py
video.py
voice.py

Added Folder

images (added to the root of the project)

Changes Made

Added a more efficient path detection system:

The new program is more accurate and can run on all systems.

Added detailed documentation using comments:

Improved the readability and maintainability of the code.

Made the program more efficient:

Optimized various parts of the code for better performance.

Added docstrings to functions:

Most of the functions now has a docstring explaining its purpose and assumptions.

Commented on the purpose of each step within the functions:

Provided a clear explanation of each step to aid understanding.

Adjusted volume reduction comment:

Corrected the comment to state a 90% reduction accurately.

Request
You can view the changed code and compare it from the specific file commit. I am not charging any real money for this update, but a follow on my GitHub profile would be appreciated. I request the developer to merge these changes as soon as possible to make the project alive for everyone.
Thank you!
OCEANOFANYTHINGOFFICIAL

:feelsgood:

Can i get a follow please, like if you don't mind 😊


Where is the Main account field when Purchase expenditure for expense is selected on the Posting page?

Hi, where can we find mentioned "The Main account field when Purchase expenditure for expense is selected on the Posting page."? I can't find it in Installed product version : 10.0.33 (10.0.1549.97) Installed platform version : Update57 (7.0.6861.87).

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: aceb35b4-31a7-64e2-3dce-5240a579c3e0
Version Independent ID: 36fd99bf-b122-def9-6982-e228f768c968
Content: Accounting distributions and journal entries for vendor invoices - Finance | Dynamics 365
Content Source: articles/finance/accounts-payable/accounting-distributions-subledger-journal-entries-vendor-invoices.md
Service: dynamics-365-finance
Product: ****
Technology: ****
GitHub Login: @sunfzam
Microsoft Alias: shpandey

@Pawel-Kolosza, thank you for your feedback. The article has been updated.


Account/privacy: Create a way for users to delete their account + data

MIGHT be needed to publish the app publicly, for Android at least.

I have merged and deployed the backend change, @birgithi , could you work on the UX to have a Delete User and their Data button in the settings page?

Assigning this issue to myself.

Created PR to add Delete User button under Settings

:

Created PR for review

Merged the change to main.


CI SetUp All Tests Passing

Test Setup for CI BuiildKite on Docker-Compose ONly

@xrimpy Still the CI is failing

Docker-Compose is working on the server when triggered manually. Checking the connection settings.


245 updated save method to allow clean before saving

Current coverage is 95.50% (diff: 100%)

Merging #249 into master will increase coverage by 0.02%

@@             master       #249   diff @@
==========================================
  Files            52         52
  Lines          1637       1646     +9
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1563       1572     +9
  Misses           74         74
  Partials          0          0

Powered by Codecov. Last update 9438bf0...51e424b


feat: implement NIST P-256 and P-384 curves

These curves are fairly popular in practical applications (certificates, TLS, ID cards, signatures) and imo its better to have included so that users would implement correctly.
As these curves are supported by Go standard library, then do not need to add anything in gnark-crypto and can perform precomputation+tests using standard library only. So no more imports.
Is based on top of https://github.com/ConsenSys/gnark/pull/696, so it is better to have that reviewed/merged first.

Oh, I didn't realise this is already done in https://github.com/ConsenSys/gnark/pull/610. Will see if I can attribute the contributor by merging the implementations.


Updates to home page

Add admin setting to change the Banner images on home page
Remove event /calendar
Remove sponsors on bottom
Where the Calendar/events is, add a formatted text field with the ability to edit the text in the admin.

https://archive.coloradocycling.org/BRAC/admin/app/homebannerimage/

https://archive.coloradocycling.org/BRAC/admin/app/homeinformation/


Problem with flask db upgrade

While going through the tutorial on deploying to Heroku's cloud I discovered an issue when running the upgrade command through flask db. Output is below:
Traceback (most recent call last):
  File "/home/bast/.virtualenvs/microblog/bin/flask", line 11, in <module>
    sys.exit(main())
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/flask/cli.py", line 513, in main
    cli.main(args=args, prog_name=name)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/flask/cli.py", line 380, in main
    return AppGroup.main(self, *args, **kwargs)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/flask/cli.py", line 257, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/flask_migrate/cli.py", line 134, in upgrade
    _upgrade(directory, revision, sql, tag, x_arg)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/flask_migrate/__init__.py", line 259, in upgrade
    command.upgrade(config, revision, sql=sql, tag=tag)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/alembic/command.py", line 254, in upgrade
    script.run_env()
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/alembic/script/base.py", line 425, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/alembic/util/pyfiles.py", line 81, in load_python_file
    module = load_module_py(module_id, path)
  File "/home/bast/.virtualenvs/microblog/lib/python3.6/site-packages/alembic/util/compat.py", line 83, in load_module_py
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "migrations/env.py", line 23, in <module>
    target_metadata = current_app.extensions['migrate'].db.metadata
AttributeError: 'NoneType' object has no attribute 'metadata'

I have tried resetting my virtual environment but to no avail. I skipped the section on using Bootstrap, although having Flask-Bootstrap installed still did nothing to fix the issue. I've been completely unable to fix this error and while this problem persists I will be unable to continue development.

This is wrong:
migrate.init_app(app)

Should be this:
migrate.init_app(app, db)

Spent an hour to find this answer. It is easy to miss when you work with other extensions like
    bcrypt.init_app(app)
    db.init_app(app)
    ma.init_app(app)
    jwt.init_app(app)
    migrate.init_app(app, db)


SCT-4-Intial-CRUD-BackEnd

Please start developing the initial CRUD Database Operations.
NOTE: Do Not Make the UI yet, we haven't decided a specific framework to use at the moment.
Just make sure that you can make a script that can perform the following:

Connect to the database using a DBDriver in C#.
Perform an INSERT operation on a specific table in the database.
Perform an UPDATE operation on a specific table in the database.
Perform an DELETE operation on a specific table in the database.
Perform an RETRIEVE or SELECT operation on a specific table in the database.

Initial System Modules of Student Concern Ticketing System
NOTE:
• One login module only (Users will be identified using user level)
• With notifications
ADMINISTRATOR

USER MANAGEMENT(CRUD - CREATE, READ, UPDATE, DELETE)
TICKET INVENTORY (CRUD - CREATE - READ - UPDATE - DELETE)
TICKETS MANAGEMENT (CAN VIEW NEW/EXISTING/OPEN/RESOLVED TICKETS, CAN ASSIGN TO OTHER STAFFS, AND/OR MAKE PROGRESS) WITH CHANGELOG

STAFF

CUSTOMER SUPPORT PROFILE - (CRUD - CREATE, READ, UPDATE, DELETE HIS/HER OWN RECORD) & CHANGE PASSWORD
INVENTORY OF TICKETS (READ-ONLY TICKETS ASSIGNED TO HIM/HER)
TICKETS MANAGEMENT (CAN VIEW TICKETS ASSIGNED TO HIM/HER, AND MAKE PROGRESS) WITH CHANGELOG

CLIENT

CLIENT PROFILE (CRUD - CREATE, READ, UPDATE, DELETE HIS/HER OWN RECORD) & CHANGE HIS/HER PASSWORD
TICKET MANAGEMENT (CRUD - (CRUD - CREATE, READ, UPDATE, DELETE HIS/HER OWN TICKET)
MONITORING TICKET (VIEW HIS/HER OWN TICKET)

I am uncertain on the terminologies I used, please feel free to change/replace (or add) that suits for the specific module @MostDeadDeveloper @elcuenca @Mica56

I think its fine, need lang siguro irevise yung other tickets.
Again, yung basic CRUD lang tlga yung need here, we just need something for now that can connect through a database and do the normal operations.


Management of open stores

It's important that a particular store is only opened once at a time (see also #547).
Further, it's convenient for FFI to have a static place to root open stores.
The obvious solution is a manager, just like rkv's.
But what do we manage?
I propose:

Make Store's conn field Arc. This gives us the ability to share Conns and thus use Store as a pair of a connection and a Conn when there are multiple open SQLite connections.
Add a method to Store, perhaps named fork, that yields a new store with cloned conn using a provided rusqlite::Connection. This allows us to get a new copy of a store that's already open.
Add a static method to Store to create an in-memory store. The empty path will now be confusing. (I believe the FFI already makes a distinction…)
Implement a manager of Stores, just as in rkv. It's important to canonicalize file paths. "Stores" might be a good name.
Expose these methods:

Is a store open? fn is_open(path: PathBuf) -> bool
Given a path, give me a mutable reference to a suitable Store, opening it if necessary. fn open(path: PathBuf) -> Result<&mut Store>
Given a path, give me a (mutable) reference if the store is open. fn {get,get_mut}(path: PathBuf) -> Option<{&mut,&} Store>
Given a path, give me a Store instance with its own SQLite connection. I understand that I now have to work with SQLite's concurrency model (e.g., I can encounter SQLITE_BUSY), but Mentat will serialize writes to Metadata. fn connect(path: PathBuf) -> Result<Store>
Close a store by path. This needs to check the reference count on Store.conn and fail if it's more than 1. It can only be more than 1 if a caller has cloned the store, either explicitly or via connect.

The usual pattern for working with a store then changes from:
        let mut store: Store = Store::open("/some/path").expect("opened");
        let mut in_progress = store.begin_transaction().expect("began");
        in_progress.import(fixture_path("cities.schema")).expect("transacted schema");

to
        let store: &mut Store = Stores::open("/some/path").expect("opened");
        let mut in_progress = store.begin_transaction().expect("began");
        in_progress.import(fixture_path("cities.schema")).expect("transacted schema");

— a one-character change and a change in type.

@fluffyemily started looking at this.  She followed the rkv model of a lazy_static! manager struct that owns a map of Store instances, and she immediately ran into the fact that rusqlite::Connection instances are Send but not Sync.  (See https://github.com/jgallagher/rusqlite/issues/188 and especially https://github.com/jgallagher/rusqlite/blob/0.13.0/src/lib.rs#L680-L738.)  This is not the same as lmdb, where the underlying connection structures are Send  and Sync -- see https://github.com/danburkert/lmdb-rs/blob/0.7.2/src/environment.rs#L156-L157.  It is probably the case that we can work around lazy_static! restrictions, so I won't dwell too much on this.
However, the API @rnewman sketched, in particular
Given a path, give me a (mutable) reference if the store is open. fn {get,get_mut}(path: PathBuf) -> Option<{&mut,&} Store>

appears to me to assume that Store is Sync, so that I can share a reference to Store across threads.
I can see two ways to proceed:

force SQLite to act more like lmdb by ensuring that we open our SQLite connections  in "serialized mode" (see https://www.sqlite.org/threadsafe.html), and then mark our Store as being Sync.  This is probably quite straightforward, since rusqlite already has non-trivial logic to ensure the "multithreaded mode" option of SQLite is available.  It's somewhat unpalatable because it imposes SQLite overhead even in the single-threaded case, which is the common case; and because it's a hefty chunk of unsafe functionality, although this is exactly what SQLite is intended to implement.  One question that I haven't been able to determine from the SQLite documentation is whether the result of sqlite3_open truly is thread-safe, i.e., whether concurrent access from multiple threads is legal.  If it's not, this option is out entirely.

2a) don't share SQLite connections at all, and make Stores strictly about managing the Mentat-level Conn metadata in a central place.  That's still really useful!
2b) only share SQLite connections per-thread, making Stores use thread_local! to manage per-thread caches of SQLite connections.  This model comes the closest to capturing @rnewman's original API, but it's not clear to me that the extra effort is worth it.  Do we really anticipate consumers opening the same Mentat store in the same thread frequently enough to justify this layer of caching?
My preference is to experiment with 2b) and hope that it's straight-forward (and I expect it will be straight-forward), falling back to 2a) if it's cmplicated, and leave 1) entirely, which I view as unsafe.


Minification with suffix adds extra point (.) to output file

Different output generated with version 1.5.2 and 1.7.4.
Expected main-1.0.js, but generated main.-1.0.js (for version 1.7.4)
Plugin configuration
<plugin>
	<groupId>com.samaxes.maven</groupId>
	<artifactId>minify-maven-plugin</artifactId>
	<version>1.5.2</version>
	<executions>
		<execution>
			<id>default-minify</id>
			<phase>process-resources</phase>
			<configuration>
				<webappSourceDir>${basedir}/src/main/webapp</webappSourceDir>

				<jsSourceDir>resources/js</jsSourceDir>
				<jsTargetDir>resources/js</jsTargetDir>
				<jsSourceIncludes>
					<jsSourceInclude>*.js</jsSourceInclude>
				</jsSourceIncludes>
				<suffix>-${project.version}</suffix>
				<skipMerge>true</skipMerge>
			</configuration>
			<goals>
				<goal>minify</goal>
			</goals>
		</execution>
	</executions>
</plugin>

This also happens with no suffix specified.
If the final file name is style.css, the minified file name becomes style..min.css.
And what's strange, it doesn't happen when I build project under the Windows. But it happens on Linux machine.

This error doesn't occur on recent versions of the plugin, please close the issue.

Fixed in version 1.7.5.


feat(core): model the validators

We have to define the fields to be added to the DynBaseConfig for DynFormNode to process and setup in the AbstractControl.
The way we will index and build the validators for each field, the error messages, and the global overrides/defaults configuration options.

Closed by #21