test: replace findbugs with spotbugs

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines
[x] tests are included

Description of change

Findbugs is not longer being actively maintained.
Spotbugs is Findbug's successor.
With 400 possible error types it can identify https://spotbugs.github.io
Plus with Spot Security Bugs an additional 130 possible security issues types can be automatically scanned https://find-sec-bugs.github.io/

this is currently blocked by a Guava upgrade, Guava needs to be at version 23 or higher for SpotBugs to complete it's scan
https://github.com/spotbugs/spotbugs-gradle-plugin/issues/119#issuecomment-465397695


Difference in total time of display=True and display=False

Thanks for this wonderful tool!
However for the same model, I see some difference in the times when using prof.display(show_events=False) and prof.display(show_events=True).
When using prof.display(show_events=False), this is a part of the output :
├── proposal_generator  |                |           |
│├── anchor_generator   |                |           |
││└── cell_anchors      |        0.000us |   0.000us |    0.000us
│├── rpn_head           |                |           |
││├── conv              |      569.006us |   2.113ms |  167.045ms
││├── objectness_logits |      389.972us |   1.400ms |    6.801ms
││└── anchor_deltas     |      342.629us |   1.210ms |    7.177ms

The above shows that the conv layer under rpn_head takes 167.045 ms.
However when I use prof.display(show_events=True), the same part of the output now becomes:
│├── rpn_head                    |                |           |
││├── conv                       |                |           |
│││├── conv2d                    |        4.283us | 102.069us |  433.152us
│││├── convolution               |        3.701us |  97.786us |  430.080us
│││├── _convolution              |        9.287us |  94.085us |  424.960us
│││├── contiguous                |        1.963us |   1.963us |    2.048us
│││└── cudnn_convolution         |       82.835us |  82.835us |  414.720us
││├── objectness_logits          |                |           |
│││├── conv2d                    |        3.989us |  74.004us |   87.040us
│││├── convolution               |        3.754us |  70.015us |   82.944us
│││├── _convolution              |       13.054us |  66.261us |   78.848us
│││├── contiguous                |        2.232us |   2.232us |    0.512us
│││└── cudnn_convolution         |       50.975us |  50.975us |   65.536us
││├── anchor_deltas              |                |           |
│││├── conv2d                    |        4.255us |  69.547us |   80.896us
│││├── convolution               |        3.742us |  65.292us |   75.776us
│││├── _convolution              |        9.442us |  61.550us |   71.680us
│││├── contiguous                |        2.119us |   2.119us |    2.048us
│││└── cudnn_convolution         |       49.989us |  49.989us |   60.416us

Here however by summing the values under conv_layer of rpn_head, the time taken is 1.7us.
Why is there such a huge difference between these two values? Shouldn't they be similar?

The problem is that in the first block, the CUDA total time is 167.045 ms, while in the second block, the CUDA total time is 1.7ms, correct?
What happens when:

you run these multiple times?
prof.display(show_events=True) is run before prof.display(show_events=False)

I do know that the CUDA memory allocator and profiler requires a warmup, so I typically discard the first profile result and perform an average over ~100 runs, accounting for temperature throttling.

It doesn't change , even when it is run multiple times and when prof.display(show_events=True) is run before prof.display(show_events=False).
Also the only difference between the results of prof.display(show_events=True) and prof.display(show_events=False) is the rpn head as described above. For all other layers the times match closely.

Surprisingly , the entire model itself takes on average ~140 ms to run, whereas when prof.display(show_events=False) the time taken for the conv operation itself under rpn_head (as shown above) is 167.045 ms.
For reference, I am profiling a faster rcnn model provided in detectron2's model zoo.

I was able to replicate this issue and I can confirm it is an existing limitation of torchprof.
paths = [("GeneralizedRCNN", "proposal_generator", "rpn_head", "conv"),]

with torchprof.Profile(predictor.model, paths=paths, use_cuda=True) as prof:
    predictor(im)
print(prof.display(show_events=False))

print("=" * 40)
print(prof.display(show_events=True))

trace, event_lists_dict = prof.raw()
# trace[262] # Trace(path=('GeneralizedRCNN', 'proposal_generator', 'rpn_head', 'conv'), leaf=True, module=Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1)))

for evl_run in event_lists_dict[trace[262].path]:
    print(evl_run)

In this model, GeneralizedRCNN/proposal_generator/rpn_head/conv' is run 5 times on a single forward pass. The show_events=True code incorrectly only looks at one of these 5 runs when outputting the totals.
Thank you for opening this issue, @nihal-rao! I will create a fix shortly.

Addressed as of https://github.com/awwong1/torchprof/releases/tag/v1.1.0
Please feel free to comment again if this issue is not resolved for you.


Create lr-melondsds.sh

Script for the melonds-ds fork which has improvements like real microphone support (in addition to blow & noise effects), and a great number of screen layout options, such as rotated left or rotated right which makes games like Rhythm Paradise, Hotel Dusk, Last Window, Brain Training playable.
Also add networking support so it's possible to use services like wiimmf

whats the deal with the uncommted depends?
are they needed or you not sure about them?

ahh
well i didnt make that script i found it, saw it worked so i just dropped it in, lol
they can be removed


Scheduled report: "Open in browser" link in old emails does not use the correct time range

Each email uses the same time range (often a relative time range). Each email should use a fixed time range so the report run is unique.
Notion document to discuss.

Update from Benjamin: This is to be fixed in the refactor that accounts for Alerts.

Put an implementation suggestion in this Slack message

Closed by https://github.com/rilldata/rill/pull/3894


Train architecture from Ounkomol et. al. to predict cropped nuclei from dapi to gold images

This will be a two-step pr. The first step is adding the model code, so any adjustments can be made prior to training. After reviewing any pr comments I will then push the trained model along with model artifacts, images, and a readme. This pr trains the model architecture created by Ounkomol et. al. Some noteworthy comments:

Not all imports are at the beginning of the script, as it is cleaner, in my opinion, to defined the root git directory before some of the import statements. This eliminates the need to define relative paths in some of these import statements.
I defined the random seeds before the inputs and outputs, and would be interested to hear your thoughts on this decision.
No comments were created inside of the model architecture code, instead, I left this code intact from the authors (https://doi.org/10.1038/s41592-018-0111-2)
I decided to not create copies of transformed images to reduce dataset complexity, as I do not anticipate using these cropped images for training other models. Instead, I transform previously cropped images at runtime.
I save the images as .png files. I would be interested to hear thoughts on data formats.

Feel free to add any constructive comments when reviewing.

Thanks for the first review @MikeLippincott, requesting the second review

Thanks @MikeLippincott, merging now!


fix: new ast for some language constructs

This is a work in progress to address the issue discussed here: https://github.com/php-rust-tools/parser/issues/258
Some notes:
1) Currently, die() and exit() are both expressions. I have kept them that way, but I am wondering whether it would be more concise to construct them as statements instead. This is tricky because they behave like functions, but they are not.
I have coded the spans start and end using an Option<Span> for die() and exit(), as parentheses are optional for them: https://github.com/php-rust-tools/parser/commit/1a0fd301818da1db7e05a3d2236bdb893de8f5b8
print() handles this differently with value: Parenthesized {:
https://github.com/php-rust-tools/parser/blob/main/tests/fixtures/0269/ast.txt#L349-L355
2) print is treated as an expression, but it was coded differently: https://github.com/php-rust-tools/parser/blob/main/src/parser/expressions.rs#L1099
(The Precedence::Prefix shouldn´t be Precedence::Print?)
I am wondering whether die() and exit() should follow the same ideas used in print() or if we need to change print() to follow die() and exit().
3) isset() and unset() are special because they cannot accept all kind of argument. For example, isset(null) is not valid. Therefore, we need to create a new issue to describe the need for a new function to parse their parameters and throw parser errors when necessary. I think this could be work for another PR.
Not trivial to decide those things. :sweat_smile:

print is treated as an expression, but it was coded differently: https://github.com/php-rust-tools/parser/blob/main/src/parser/expressions.rs#L1099

the logic there makes sense for print $var;, but not for print($var);, print($var) should be parsed the same way as other language constructs

So, if I understand correctly, should I make print work similarly to die, exit, etc., sharing the same ideas and such?
Or your idea is to parse print 1; as a statement and print(1) as an expression (which means, parse them differently)?

all language constructs should be statements IMO, wdyt @ryangjchandler?
as for print, i think we can create a seperate enum for it, something like:
pub enum Print {
  Expression {
    print: Span,
    expression: Expression,
    ending: Ending, // <- not a semicolon, use `utils::skip_ending(state)?;`
  },
  Arguments {
    print: Span,
    arguments: ArgumentList,
    ending: Ending,
  }
}

Couple of thoughts from me:

print has a return value, so should be an expression logically.
die() and exit() are the same, they can be used in the same places as an expression.
Using ArgumentList doesn't feel right since print only accepts a single argument.

print only accepts a single argument.

right..., maybe we can add a new SingleArgument node?

I've created a POC here of a new node called SingleArgument:
https://github.com/KennedyTedesco/parser/commit/3a4988fd84bbf83dec0e8a0c9742071c166e75c2
It appears to be reasonable. What you guys think?
This could be used for die, exit...

@KennedyTedesco can you please push the change to this PR so we can review it?

@azjezz Changes pushed, only for die() at this point, so we can decide if we're good to go this way.

This is ready for review.
Overall changes:

exit(),  die(), eval() and empty() now holds an SingleArgumentnode;

unset() and isset() now holds an ArgumentList node.

print behaves as an expression, but it holds an argument and a value. When used as print 1, value is Some otherwise argument is.

Tree new parser errors were introduced.

I think that's it. Latter, I'll open some issues about things we need to work on/fix on some parts of the parsing analyses.


doc: Add kmon to 'apps using tui' in README

Thanks for the cool library! 🚀

I'm glad it helped you build such nice project =).


TS typing of misc components

Add TS typing for:

[ ] components/autosave
[ ] components/annoDialog.tsx
[ ] components/app.tsx
[ ] components/embedding
[ ] components/framework
[ ] components/infoDrawer
[ ] components/menubar
[ ] components/labelInput.tsx

Will type next time the files are touched


ModuleNotFoundError - Tensorboard.

Environment

OS: Windows 10
Python Version: 3.10.6
Hardware: Nvidia RTX 2060 SUPER

Issue Description:

Attempted solutions
Tried to uninstall and reinstall tensorboard a few times.
There is a file in the script folder for tensorboard right now.
I tried to fix the env PATH to the Scripts folder but no go.
Earlier this year I messed up with the env variables real bad so I thought that could be the issue, but python works fine and other modules work fine. Only this one that will not stop bothering me.

yep that's a current issue in the installation of applio

Try downloading the latest version of the installer and install applio in the C: drive directory

yep that's a current issue in the installation of applio
Try downloading the latest version of the installer and install applio in the C: drive directory

Ah I see. I just started to fiddle with Applio today, never used it before. And my C: drive is filled to the rim unfortunately.
But I will try that anyway, can remove some things. Ty for the tip!

Nope, same issue. If it is known, is there not a fix for this?

Check the documentation at https://docs.applio.org/faq/installation-method/conda/tensorboard-dependency/ for TensorBoard dependency installation via Conda.
Additionally, if Mingit fails during installation the dependencies don't install correctly, refer to https://docs.applio.org/faq/installation-method/conda/mingit-extraction-or-download-issues/. Install Git separately to address Mingit-related problems.

Check the documentation at https://docs.applio.org/faq/installation-method/conda/tensorboard-dependency/ for TensorBoard dependency installation via Conda.
Additionally, if Mingit fails during installation the dependencies don't install correctly, refer to https://docs.applio.org/faq/installation-method/conda/mingit-extraction-or-download-issues/. Install Git separately to address Mingit-related problems.

Thank you, will do! I think I've been reading through the first link quite well, but I will go through it again!
Not had any Mingit errors but I guess it could happen if/when I sort the Tensorboard one.
Thank you again!

just want to leave a quick suggestion to the dev. It would be nice if you could leave the older installer versions on the release page because if an error like this happens we can download an old version that should be working correctly.
btw, I have the same error, tried changing drive units to my c:, like you suggested, and still got the error.

The older version of installer version is broken. You can download a specific version from the commit history for that file. The issue should be fixed in the latest version. Please record the installer process to help identify the problem.

Okay, I believe I've identified the issue. One of the dependencies was outdated and not compatible with the required version of Torch. I have fixed it.

Okay, I believe I've identified the issue. One of the dependencies was outdated and not compatible with the required version of Torch. I have fixed it. Try reinstalling.

Cool, I will try tomorrow, really need to sleep :) Thank you so much!

Okay, I believe I've identified the issue. One of the dependencies was outdated and not compatible with the required version of Torch. I have fixed it. Try reinstalling.

thanks for the hard work!


Update of code snippet generator (naming convention snippets)

Hi Holger,
looks good to me!
Than you,
Thomas


Open AI & Gemini Integration

Integrating Open AI & Gemini  to generate queries based on users prompt in editor

Feature added in #90


Add Django 1.11 to the test matrix

The updates to .travis.yml were made by running the command as directed in the comment.
I corrected a failing pylint check by removing an extraneous else from the module.

Thanks for this PR! I'll add a few comments.

After switching to the Travis trusty distribution, the 2.6 builds started failing.
ERROR:   flake8-py26: InterpreterNotFound: python2.6

Do you want to drop 2.6 from the build matrix?

The Travis docs lead me to believe that testing 2.6 through 3.6 should be possible
https://docs.travis-ci.com/user/languages/python/#Choosing-Python-versions-to-test-against
Trying out adding multiple versions to the python: key in .travis.yml.

Do you want to drop 2.6 from the build matrix?

If this is the only way to make builds with Python 3.5 and 3.6 pass, yes. It would be nice to keep it though.
The  code base of this package is so simple that it still can run in super-outdated projects (namely the ones still running on Python 2.6).  :smile:

The Travis docs lead me to believe that testing 2.6 through 3.6 should be possible

The challenge is the combination of the Python and Django versions. If you find a way, cool!  If not, don't worry too much, and let's drop 2.6.

Specifying 2 versions
python:
  - 2.6
  - 3.6

resulted in Travis running the full matrix twice, so that is not the solution.
https://travis-ci.org/bittner/django-apptemplates/builds/250841808

Adding this before_install section to apt get the missing interpreters did the trick
before_install:
  - sudo add-apt-repository -y ppa:fkrull/deadsnakes
  - sudo apt-get -qq update
  - sudo apt-get -y install python2.6 python3.2

Thanks a million for your efforts, @jwalgran!


PEP 517 / 518 build

Update cabinetry and the build process to follow PEP 517 and 518. See also:

https://github.com/pypa/pep517
https://scikit-hep.org/developer/packaging#pep-517518-support-high-priority
pyhf example

Should now use build instead of pep517. See also https://github.com/scikit-hep/pyhf/issues/1065.


YouTube Invalid Password

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.10.29. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.10.29

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

youtube-dl.exe -v -u [username] -p [password] https://youtu.be/TpTVTrzZHWQ?list=PLVK1Q9ppZiaDDkrG2pBaXFdVd0Tva6ymm
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://youtu.be/TpTVTrzZHWQ?list=PLVK1Q9ppZiaDDkrG2pBaXFdVd0Tva6ymm']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.10.29
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:playlist] Downloading login page
[youtube:playlist] Looking up account info
[youtube:playlist] Logging in
WARNING: Unable to login: Invalid password
[youtube:playlist] Downloading playlist PLVK1Q9ppZiaDDkrG2pBaXFdVd0Tva6ymm - add --no-playlist to just download video TpTVTrzZHWQ
[youtube:playlist] PLVK1Q9ppZiaDDkrG2pBaXFdVd0Tva6ymm: Downloading webpage
[download] Downloading playlist: Lifeline
[youtube:playlist] playlist Lifeline: Downloading 8 videos
[download] Downloading video 1 of 8
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
WARNING: Unable to login: Invalid password
[youtube] Ru4zkxNuJ_I: Downloading webpage
[youtube] Ru4zkxNuJ_I: Downloading video info webpage
[youtube] Ru4zkxNuJ_I: Extracting video information

Description of your issue, suggested solution and other information
I'm unable to login through youtube-dl. I verified that I am typing the correct password.

I changed nothing and it works now... Thanks for trying to reproduce.


WIP: [v2.8] Enhance the logs

kind/enhancement
What this PR does / why we need it:

Enhance the log to better understand updates happening in the cluster.
Use both clusterName and clusterID in the logs.

Which issue(s) this PR fixes
Issue #493
Issue #494
Special notes for your reviewer:
Checklist:

[X] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[ ] adds or updates e2e tests
[ ] backport needed

We don't want this change into release-v2.8


[bug] Lifecycle hooks has been called twice in HMR when I use "v-for + ref" and "script setup" in RouterView.

Vue version
3.2.45
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-fx7e3m?file=src/views/HelloWorld.vue
Steps to reproduce

Create a vue3 repo with vue-router
Use Composition Api in the components of RouterView
Use v-for + ref attribute on the html element
Define a proxy object to the ref attribute
Change and save the content in


Opt-in/out of Segment

Don't track email in target_email field
Opt-in to Segment tracking
Potentially add to settings page

@Louisreed can you provide a wireframe for this?

https://www.figma.com/file/6l7k7BRmW98AMmRxV01iVT/App?node-id=206%3A357

"Segment tracking" is not clear
Find out more link, going to privacy policy
Think about moving this earlier in the process, and using a design that encourages users to accept

Looks good. I left a comment to tweak the wording.

@marvinmarnold Figma design updated!


Add a runbook-type guide to the architecture

For developers to understand the general shape of the code before they contribute changes

This will be needed for the handover - dates to be arranged and confirmed for March/April 2018.


34c3 Emergency Information should be updated for 35c3

n/t

Absolutely, can you send a pull request to make that happen?

Yeah sure, nice to see you're accepting PRs. :)

Sorry, I completely missed that PR. :-(
My fault.


Review integration files for checksum verification

Identify which files where the checksum is not verified.
Determine if we need to update the read process to perform the verification.
If required, create tickets to address files accordingly.

Closing as no longer needed.


inaccurate calculation of first_token's pos_embedding

since,

scaled_time is calculated by scaled_time = tf.expand_dims(position, 1) * tf.expand_dims(inv_timescales, 0), while position_idx in position will start by 0.
scaled_time will be used to calculate position embedding by signal = tf.concat([tf.sin(scaled_time), tf.cos(scaled_time)], axis=1)

Thus, position_embedding of first token will always be combined with half zeros and half ones.
But the purpose of addding timing pos_embed should be helping model to learn relative and absolute position information between words by triangle relations of these words, i.e. sin(\alpha+\beta)=sin(\alpha)cos(\beta)+sin(\beta)cos(\alpha).

@googlebot I signed it!

@googlebot I signed it!

@googlebot I fixed it.

Thanks @real-brilliant !


Add releases to Github

Opportunity to add Release record to github in addition to npm publish, would broadcast better activity on the framework

Github releases are now done manually


install spika-server on windows server

can any one give me the manual of how to install the spika-server on windows server ? the spikaapp.com can not access anymore . help ! thank you !!

can any one give me the manual of how to install the spika-server on windows server ? the spikaapp.com can not access anymore . help ! thank you !! or composer in vendor file.


chars height is small

hi
plate detect is :

in cutting char it most have more height
this is final plate detected

this is correct char :

but in cutting it convert to :

( top of char is not in cutting image )
how can i fix this?

You should take a look at the parameters in config.xml -- I'm not sure, which ones will help you the most.
If you can't find

i look for it but i do not find which param is for this work
please say the config param name

please
i need this
please say where i can change height  of chars
this is very important for me

I do not know the parameter, or if there is such a parameter, sorry. I'm pretty sure it is possible, but I do not know how much work it involves and I do not have the time to investigate this, sorry :disappointed:

hi; I've got one problem on my license plate country!!...... in my country; the background of the license plate is black and the fourgeground is white; them; the javaanpr doesn't recognise plate on my country!!!....... what should I do to resolve this problem??...... thank you

I'm trying to search a code on java to convert white color to black color and black to white!!... ..... I wonder if they can resolve my problem!

Why don't you just invert the colors? Yes, exactly.

^_^ thanks a lot but: firstly ----I would like to modify the codes but I do not know where to put the code. secondly---- I dont know the code to modify the background color to white and the forgeground to black; .......... tem ; if you have a link or suggestion to give me or something like this; it was be helpfull

You can just change the input image.
On Tue, Nov 28, 2017, 14:44 Rakoto001<EMAIL_ADDRESS>wrote:

^_^ thanks a lot but: firstly ----I would like to modify the codes but I
do not know where to put the code. secondly---- I dont know the code to
modify the background color to white and the forgeground to black;
.......... tem ; if you have a link or suggestion to give me or something
like this; it was be helpfull
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/oskopek/javaanpr/issues/75#issuecomment-347527209,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABulBI26twWKT8s8Cetd5YyxWYFoQPLvks5s7A4VgaJpZM4OMK5n
.

please open a new issue
do not post in this issue


Release v0.0.1 beta

Codecov Report
Base: 91.97% // Head: 94.96% // Increases project coverage by +2.98% :tada:

Coverage data is based on head (31906d1) compared to base (5f13f63).
Patch coverage: 95.83% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   91.97%   94.96%   +2.98%
==========================================
  Files          22       22
  Lines         162      139      -23
  Branches        3        8       +5
==========================================
- Hits          149      132      -17
+ Misses         13        7       -6

Impacted Files
Coverage Δ

...c/main/scala/it/yasp/app/support/FileSupport.scala
83.33% <ø> (ø)

...main/scala/it/yasp/app/support/ParserSupport.scala
100.00% <ø> (ø)

...n/scala/it/yasp/app/support/VariablesSupport.scala
100.00% <ø> (ø)

...it/yasp/service/executor/YaspExecutorFactory.scala
100.00% <ø> (ø)

...la/it/yasp/core/spark/factory/SessionFactory.scala
57.14% <50.00%> (-2.86%)
:arrow_down:

...scala/it/yasp/core/spark/operators/Operators.scala
80.00% <80.00%> (-5.72%)
:arrow_down:

yasp-app/src/main/scala/it/yasp/app/Yasp.scala
100.00% <100.00%> (+100.00%)
:arrow_up:

yasp-app/src/main/scala/it/yasp/app/YaspApp.scala
100.00% <100.00%> (+11.11%)
:arrow_up:

...app/src/main/scala/it/yasp/app/args/YaspArgs.scala
100.00% <100.00%> (ø)

...in/scala/it/yasp/app/support/DecodersSupport.scala
100.00% <100.00%> (+10.71%)
:arrow_up:

... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Decomposition of records

Hello, thank you for awesome module!
In recent version there was added records support, is it possible to decompose record and differentiate named, positional and optional arguments?
Currently it's possible to treat records like a generic class
  [
    <A, B>(f) => f<(A, B,)>(),
    <A, B>(f) => f<(A, {B named})>(),
  ].forEach(TypePlus.addFactory);

  print(typeOf<(int, int, )>().args); // [int, int]
  print(typeOf<(int, {int named})>().args); // same

Hi, can you give me some more details on your use-case and what you would want to do?

Hi, thank you for responding!
I'd like to write binary (un)packer based on records similar to python struct but powered by strong types.
E.g. T unpack<T extends Record>(TypedData data) and extension on record to pack it.

Have you checked out dart_mappable?
Did you already test out how to dynamically construct a record? From my experiments this isn't possible. You need to know the shape of a record statically in order to construct an instance of it.

Now that you pointed out that.
I can think of creating unnamed ones like this: (U,V) collapse<U,V>(U x, V y) => (x,y) and similarity up to 5.
But I guess it's not really possible to create named record dynamically (maybe with mirrors, but that's not really an option in my opinion)
Then maybe I should limit records is my api only to group a small number of elements.
Thank you for your help!


Update extensionsGallery.json

Added pieces azure data studio plugin - code snippets + copilot in azure data studio.
There should be no details here - just to note that we used GCP for our assets as we hope that is not an issue.

@microsoft-github-policy-service agree company="Pieces.app"

Let me check about using GCP for the static assets - I think it should be fine though.

Unfortunately not - we have the origin set to vscode-file://vscode-app for our extension gallery requests which means it's blocked by CORS unless the GCP endpoint specifically allows it. And given that we can't control that and would have to have everyone using it to make that change themselves that's not something we can do at this time.
Do you have a Github repo you could upload these assets to? If not then we can host them ourselves - it'll just mean that you would have to reach out to us to make any changes in the future.

i can host them on our docs.pieces.app site actually, thanks for that info
there. let me move these to the new location and i will update the links
Sent via Superhuman iOS @.***>
On Fri, Dec 15 2023 at 4:42 PM, Charles Gagnon @.***>
wrote:

Unfortunately not - we have the origin set to vscode-file://vscode-app
for our extension gallery requests which means it's blocked by CORS unless
the GCP endpoint specifically allows it. And given that we can't control
that and would have to have everyone using it to make that change
themselves that's not something we can do at this time.
Do you have a Github repo you could upload these assets to? If not then we
can host them ourselves - it'll just mean that you would have to reach out
to us to make any changes in the future.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/azuredatastudio/pull/25135#issuecomment-1858523347,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANKGCCF2CLNDZEGXJAP46ETYJS74NAVCNFSM6AAAAABAW73KTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYGUZDGMZUG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Charles-Gagnon updated with new public url paths 👍

@microsoft-github-policy-service agree company="Pieces.app"

Thank you for your contribution! You should see the gallery updated in a few minutes.


System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INSUFFICIENT_ACCESS: use of the Metadata API requires a user with the ModifyAllData permission

Hi Andrew,
I am facing below exception when I log in as non admins. It works well for Sysadmin.
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INSUFFICIENT_ACCESS: use of the Metadata API requires a user with the ModifyAllData permission.
Apex runs in system mode how does Metadata API taking the permission of the user. Can you please help me in understanding this.
Thank you in advance.

Hi Andrew,
Hope you are doing great!
I've the below scenario, please give me your inputs on this,
I'm updating the CustomLabels as System administrator profile using VF page UI and I need to allow "Salesforce Platform" license profile users to update the custom labels using VF page. I have given the access to VF page, controller class and MetadataService class, but when I load VF page getting error as "WebService returned a SOAP Fault: INSUFFICIENT_ACCESS: use of the Metadata API requires a user with the ModifyAllData permission faultcode=sf:INSUFFICIENT_ACCESS faultactor=".
Is there any option to allow Salesforce Platform profile's users to update the Customlabels? please advise.
In case if we don't have option then I wish to try this as per below approach,
please advise will it work for my needs.
As @sfdcprs I'll write apex rest API to get the customlabels using autotoke (System Admin credentials) and implement the logic to update the custom labels.
Thanks in advance,
Sivasankar

Sorry, its a requirement of the Salesforce Metadata API to have this, as its a very powerful API.
Yes you can use oAuth to have the admin authenticate that the code can use their access on behalf of the running user. But be very careful where you store this token. I would not recommend using the user/pass oAuth flow (as shown by @sfdcprs above) as you will need to store those some place for your code to read them which also presents a security risk of them being found. The web based oauth flow is unfortunately harder to implement and i don't have a clean example at hand.
Here is another thought.... why don't you stage the changes to the labels in a custom object, then have a job / page the admin user can run that processes them every now and again? Its not as elegant and realtime i know, but is a separate of responsibilities.

Hello,
You can use Named Credentials to store the Admin Credentials. It is available with OAuth2.0.
https://help.salesforce.com/articleView?id=named_credentials_about.htm&type=5
Amine

There was an unexpected error in your org which is preventing this assessment check from completing: System.CalloutException: Read timed out.
Please help me out i am struggling with thus error.


Back action in FzfxFileExplorer does not restore cursor position

When moving up one level, I'd expect cursor to be positioned on the folder I have just exited.
Currently it tends to jump towards the beginning of the file listing.

looks like current engine cannot support such use case. ~ _ ~!
For now the cd and upper keys are Interactions, and engine is running follow below steps when you press cd or upper keys:

running the lua script with the nvim -l xxx.lua shell command, which is binding to the fzf binary when launch the FzfxFileExplorer popup window.
inside the xxx.lua lua script, send request to the nvim editor (e.g. the parent process of the xxx.lua), to ask nvim editor to do the interactions, e.g. the cd and upper lua function hooks.
refresh provider/previewer, e.g. refresh the searching results and preview new results.

To restore the cursor position, it need to execute the pos fzf actions (see: https://man.archlinux.org/man/fzf.1.en#AVAILABLE_ACTIONS: , the pos actions) after refreshing searching results.
Looks like we can add 1 more hooks to emit the pos fzf actions after refresh search results.


feat: Count v2 identity overrides for feature state list view

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[ ] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes

Adds identity override retrieval from flagsmith_environments_v2 when preparing override counts.
Base class for DynamoDB yet again changed to accommodate for all usage patterns.
Naming improvements.

How did you test this code?
Modified and added unit tests.

Codecov Report
Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (76cc152) 96.10% compared to head (beb9e2e) 96.10%.
Report is 7 commits behind head on main.

Files
Patch %
Lines

...it/features/test_unit_features_features_service.py
93.10%
4 Missing :warning:

api/environments/dynamodb/utils.py
85.71%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3164      +/-   ##
==========================================
- Coverage   96.10%   96.10%   -0.01%
==========================================
  Files        1058     1058
  Lines       31882    31965      +83
==========================================
+ Hits        30641    30720      +79
- Misses       1241     1245       +4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[UI]: Various Fixes

Creating New Vault Goes to Last Vault
When creating a new vault, it goes back to the previous vault, and doesn't open up new vault (make it priority)

[ ]  Done

Creating New Vault, Latest Vault created out of Order
When creating a new vault, the New Vault is added in the second position and doesn't put newest vault on bottom of vault list.
Need more than 3 vaults created.

[ ]  Done

When viewing vault details, doesn't go back correctly
Have 3 vaults, select first vault, view vault details, go back
Loads wrong vault!

[x] #365

Going Back on KeySign drops All TX
When up to keysign part, going back drops the full tx, keep the tx, should just go back one layer

[ ]  done

Wrong Vault on KeySign, doesn't go to Vault Selection Page
Have wrong vault on pair device, Scan QR code, button appears "choose vaults"
Does not got to Vault Selector page (it should)

[ ]  done

Keysign does not check is not same device
Have a 20f2 vault, export 2nd vault share to 3rd device.
Now 2nd and 3rd device have SAME vault share
Create a tx using 2nd device, and pair using 3rd device. Does not detect is SAME device share! Spins forever.
It should say "Error: Same Vault Share, Use Different Device"

[ ]  done

Have wrong vault on pair device, Scan QR code, button appears "choose vaults"
Does not got to Vault Selector page (it should)

[ ]  done

Menu Should Pan From Left
When tapping Menu (on the left), it pans from Right (wrong direction)

[ ]  done

FaceID invoked when locking device
When app open, and the phone locks, 1second later whilst locked the FaceID Action is randomly invoked

[ ] done

Prompt User for Vault Name on "Create New Vault"
User prompt for "Name your Vault". Populate this name thru the Create Vault QR code so all devices are synced.
placeholder/default: Main Vault

[ ] done

Device Name on Vault Details

[ ]  done

ID (This Device) on Vault Details

[ ]  done

All Device Name is 3-digit only
Device names should only be 3-digit (not a long digit), easier to recognise

[x]  done

Auto-select Pair Device when Key-Sign
since only 1 device needed to be selected, make it auto

[ ]  done

Paste Button on Address field
paste in the clipboard

[x] done

Action Buttons have Outline

[ ] done

Gear Icon for Vault Details

[ ] done

Re-order Chains Function
Put the edit button bottom right and make it able to "re-order" the row of chains.
Also do this for "Choose Tokens" - user can re-order the list of tokens

[ ] done

iOS Target

[ ] Set the project's lowest target to iOS 13.

All Device Name is 3-digit only
Device names should only be 3-digit (not a long digit), easier to recognise

This one is already implemented , it will take effect when you create a new vault  , so I will mark this one as done

@jpthor I cannot reproduce the behavior of going to vault details and coming back. It always loads correctly for me. I created 3 vaults to try to reproduce the error. I converted the task to an issue as well:
https://github.com/voltix-vault/voltix-ios/issues/365


[v2] Change to database config

Add possibility to define the database type in the configuration of ZITADEL.

Hi, any plan to initiate discussion on this in near future?

Hi @AmreeshTyagi
We don't have a timeline yet for this. Probably we will have a look at this in 1-2 months.
Its planned to start with the possibility to use Postgres as DB.

hi @AmreeshTyagi
The transition to non postgres compatible databases will take more time. This issue is used to track the changes of the configuration. I link your comment in this issue: https://github.com/zitadel/zitadel/issues/3598

ok. I understand. Providing postgres compatible first is an obvious choice because of driver compatibility.
Would be waiting for MySQL plan. Thanks for the response.

closing this as we did the config changes in https://github.com/zitadel/zitadel/pull/4068 and generell database support is tracked in https://github.com/zitadel/zitadel/issues/3598 and postrges https://github.com/zitadel/zitadel/issues/3898


allowAutoTopicCreationType parameter in KoP broker.conf when set to partitioned not creating partitioned topic when auto topic creation is enabled.

Describe the bug
With following parameter settings in broker.conf of KoP non-partitioned topics is being created while creating consumer and producer for non existing topic using pulsar client.
Parameter configuration:
allowAutoTopicCreation=true
allowAutoTopicCreationType=partitioned
defaultNumPartitions=1

How to Reproduce

Deploy KoP with above mentioned configuration.
Create producer or consumer using pulsar client with non existing topic.
Check using topics list that non partitioned topic is being created .

Expected Behaviour
allowAutoTopicCreationType flag should be honoured when set to partitioned . Should create partitioned topic when auto topic creation is set to true.
Additional Info
Attached kop logs.
kop0autotopic.log
kop1autotopic.log
kop2autotopic.log

@devprashantksinha , I searched words "Created topic" in file kop2autotopic.log, and seems all topics are partitioned mode, and in format "*-partition-0".  e.g.
{"log":"07:46:00.736 [bookkeeper-ml-workers-OrderedExecutor-7-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/da_cpu_test-partition-0 - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T07:46:00.737055693Z"}
{"log":"07:46:00.641 [bookkeeper-ml-workers-OrderedExecutor-4-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/Topic-1_.2-partition-0 - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T07:46:00.641751388Z"}
{"log":"07:46:00.694 [BookKeeperClientWorker-OrderedExecutor-2-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/topic_table_map_3-partition-0 - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T07:46:00.694968466Z"}

{"log":"07:46:00.766 [bookkeeper-ml-workers-OrderedExecutor-4-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/IsKeyFalseTest-partition-0 - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T07:46:00.766725387Z"}

{"log":"07:46:00.897 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/topic_table_map_1-partition-0 - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T07:46:00.899104023Z"}

{"log":"08:06:09.728 [pulsar-web-31-8] INFO  org.eclipse.jetty.server.RequestLog - <IP_ADDRESS> - - [31/Mar/2020:08:06:09 +0000] \"DELETE /admin/v2/persistent/public/default/di_task_status_topic-partition-0/subscription/flink-pulsar-edebbb9d-4b94-42fa-bccc-922696105f97 HTTP/1.1\" 307 0 \"-\" \"Pulsar-Java-v2.4.2\" 13\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"65d3f037-e741-4349-ad96-373d039d9d73"},"time":"2020-03-31T08:06:09.728410917Z"}

Where could I find the non-partitioned topic?

@jiazhai : We checked using this command  ./pulsar-admin topics list public/default to see if new topics are created after we have created a consumer to any non-existing topic.  I would request you to please follow the steps in How to reproduce.

@jiazhai : Following line in kop0autotopic.log creates the topic persistent://public/default/testautotopicconsumer :
{"log":"08:25:07.939 [bookkeeper-ml-workers-OrderedExecutor-0-0] INFO  org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/testautotopicconsumer - dedup is disabled\n","stream":"stdout","attrs":{"io.kubernetes.container.name":"itomdipulsar-kop","io.kubernetes.pod.uid":"3eaf7a97-d25a-4659-a833-8e21664362b5"},"time":"2020-03-31T08:25:07.939879189Z"}

@devprashantksinha Thanks for the quick feed back, seems my local  kop0autotopic.log file was truncated,  download again and found these logs.
What is the code or command that used in the second step to create producer/consumer? I use command bin/pulsar-client, and did not reproduce it success.

@jiazhai : I use this command to create consumer ./pulsar-client consume public/default/testautotopicconsumer -s test -n 0

It is weird, I run standalone kop, and used the same command before and now:

@jiazhai :hmm, we are not using standalone kop that is one difference i see.

@jiazhai : Any more information you need I can collect it tomorrow after discussion with colleagues.  I will once again try to reproduce it with latest pulsar helm chart that we have in our repo. Any pointers where things can go wrong?

Thanks @devprashantksinha , I will start a cluster mode.  All the topics auto created by pulsar-admin consume are non-partitioned? or part of them are partitioned?

@jiazhai : All of them are non-partitioned.

Thanks @devprashantksinha . Still not able to reproduce using KoP cluster mode, It is so weird.

May need your help to reproduce it. Not sure which part gets wrong. In the provided KoP logs, the broker setting is right. And in the second comments above, seems some of the topic is in partition mode, e.g. topic_table_map_3, Topic-1_.2, da_cpu_test, di_task_status_topic, Are these topics created by the auto setting?  Is it possible that topic testautotopicconsumer are created before the sub?

And in the second comments above, seems some of the topic is in partition mode, e.g. topic_table_map_3, Topic-1_.2, da_cpu_test, di_task_status_topic, Are these topics created by the auto setting?   ---> Ignore this topics. these were manually created.
Is it possible that topic testautotopicconsumer are created before the sub? ---> can you please explain it in more detail... I am not creating any subscriptions as such before creating the topic.... i am directly executing this ./pulsar-client consume public/default/testautotopicconsumer -s test -n 0 and checking whether topics are created.

@devprashantksinha  👍 This is exactly the steps that I used.

@jiazhai : were you able to reproduce?

@devprashantksinha Not able to produce. I tried on kop cluster,  with pulsar-client of different version(latest master, 2.5.0-ad0224407, and 2.4.1).

@jiazhai : I had reproduced it yesterday with our latest pulsar charts. Can be a configuration issue on our side. Can you please share your broker.conf in KoP cluster mode that you have?  Please let me know if you need more details on my configuration/set up.

@devprashantksinha Thanks for the information. In my env. I only changed kop_standalone.conf or kop.conf as you suggested.
allowAutoTopicCreation=true
allowAutoTopicCreationType=partitioned
defaultNumPartitions=1

It should be not your configuration issue. In above attached broker log, these settings could be found.
What is the pulsar-client side(pulsar-client consume/produce) output looks like?

Here it is for a consumer:
pulsar@itomdipulsar-bastion-647bf54cd8-4q52f:/pulsar/bin> ./pulsar-client consume public/default/pulsarautotopiccreation -s test1 -n 0
10:46:47.928 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x6e1b8e8f, L:/<IP_ADDRESS>:39732 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connected to server
10:46:48.492 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Starting Pulsar consumer status recorder with config: {
"topicNames" : [ "public/default/pulsarautotopiccreation" ],
"topicsPattern" : null,
"subscriptionName" : "test1",
"subscriptionType" : "Exclusive",
"subscriptionMode" : "Durable",
"receiverQueueSize" : 1000,
"acknowledgementsGroupTimeMicros" : 100000,
"negativeAckRedeliveryDelayMicros" : 60000000,
"maxTotalReceiverQueueSizeAcrossPartitions" : 50000,
"consumerName" : null,
"ackTimeoutMillis" : 0,
"tickDurationMillis" : 1000,
"priorityLevel" : 0,
"cryptoFailureAction" : "FAIL",
"properties" : { },
"readCompacted" : false,
"subscriptionInitialPosition" : "Latest",
"patternAutoDiscoveryPeriod" : 1,
"regexSubscriptionMode" : "PersistentOnly",
"deadLetterPolicy" : null,
"autoUpdatePartitions" : true,
"replicateSubscriptionState" : false,
"resetIncludeHead" : false,
"keySharedPolicy" : null
}
10:46:48.504 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Pulsar client config: {
"serviceUrl" : "pulsar+ssl://itomdipulsar-proxy:6651/",
"authPluginClassName" : null,
"authParams" : null,
"operationTimeoutMs" : 30000,
"statsIntervalSeconds" : 60,
"numIoThreads" : 1,
"numListenerThreads" : 1,
"connectionsPerBroker" : 1,
"useTcpNoDelay" : true,
"useTls" : true,
"tlsTrustCertsFilePath" : "/var/run/secrets/boostport.com/trustedCAs/RID_ca.crt",
"tlsAllowInsecureConnection" : false,
"tlsHostnameVerificationEnable" : false,
"concurrentLookupRequest" : 5000,
"maxLookupRequest" : 50000,
"maxNumberOfRejectedRequestPerConnection" : 50,
"keepAliveIntervalSeconds" : 30,
"connectionTimeoutMs" : 10000,
"requestTimeoutMs" : 60000,
"initialBackoffIntervalNanos" : 100000000,
"maxBackoffIntervalNanos" :<PHONE_NUMBER>0
}
10:46:50.055 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x7cadd03c, L:/<IP_ADDRESS>:39760 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connected to server
10:46:50.058 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ClientCnx - [id: 0x7cadd03c, L:/<IP_ADDRESS>:39760 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connected through proxy to target broker at sac-hvm01758.swinfra.net:31411
10:46:50.241 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerImpl - [public/default/pulsarautotopiccreation][test1] Subscribing to topic on cnx [id: 0x7cadd03c, L:/<IP_ADDRESS>:39760 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]
10:46:50.389 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerImpl - [public/default/pulsarautotopiccreation][test1] Subscribed to topic on itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651 -- consumer: 0
pulsar@itomdipulsar-bastion-647bf54cd8-4q52f:/pulsar/bin> ./pulsar-admin topics list public/default
"persistent://public/default/pulsarautotopiccreation"
pulsar@itomdipulsar-bastion-647bf54cd8-4q52f:/pulsar/bin>

@devprashantksinha oh, sorry, Would you please help open the debug log for pulsar-client by change conf/log4j2.yaml?
diff --git a/conf/log4j2.yaml b/conf/log4j2.yaml
index 34826740ca..6aecc2c81a 100644
--- a/conf/log4j2.yaml
+++ b/conf/log4j2.yaml
@@ -144,6 +144,13 @@ Configuration:
         additivity: false
         AppenderRef:
           - ref: Console
+
+      - name: org.apache.pulsar
+        level: debug
+        additivity: false
+        AppenderRef:
+          - ref: Console
+

       - name: verbose
         level: info

Here is the example output:
$ bin/pulsar-client consume public/default/testautotopicconsumer-aa -s test -n 0
20:32:06.545 [main] DEBUG org.apache.pulsar.common.allocator.PulsarByteBufAllocator - Is Pooled: true -- Exit on OOM: false
20:32:06.810 [main] DEBUG org.apache.pulsar.client.impl.ConnectionPool - Connection for localhost:6650 not found in cache
20:32:06.975 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650]] Connected to server
20:32:06.984 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarHandler - [[id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650]] Scheduling keep-alive task every 30 s
20:32:06.984 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650] Connected to broker
20:32:06.990 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Complete: true
20:32:07.015 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [localhost/<IP_ADDRESS>:6650] Received cmd CONNECTED
20:32:07.016 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650] Connection has max message size setting, replace old frameDecoder with server frame size 5242880
20:32:07.016 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650] Connection is ready
20:32:07.016 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x02fe347b, L:/<IP_ADDRESS>:61853 - R:localhost/<IP_ADDRESS>:6650]] Connection handshake completed
20:32:07.070 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [localhost/<IP_ADDRESS>:6650] Received cmd PARTITIONED_METADATA_RESPONSE
20:32:07.070 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Received Broker Partition response: 1
20:32:07.071 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PulsarClientImpl - [public/default/testautotopicconsumer-aa] Received topic metadata. partitions: 1
20:32:07.094 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.MultiTopicsConsumerImpl - Subscribe to topic public/default/testautotopicconsumer-aa metadata.partitions: 1
20:32:07.156 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Starting Pulsar consumer status recorder with config: {

I would like to check the log of getPartitions in above logs:
DEBUG org.apache.pulsar.client.impl.PulsarClientImpl - [public/default/testautotopicconsumer-aa] Received topic metadata. partitions: 1

@jiazhai : Here it is...Expected is 1 right? :
13:05:55.735 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PulsarClientImpl - [public/default/tryautotopicfirst] Received topic metadata. partitions: 0
-------------------COMPLETE OUTPUT---------------------
pulsar@itomdipulsar-bastion-647bf54cd8-4q52f:/pulsar/bin> ./pulsar-client consume public/default/tryautotopicfirst -s test1 -n 0
13:05:52.691 [main] DEBUG org.apache.pulsar.common.allocator.PulsarByteBufAllocator - Is Pooled: true -- Exit on OOM: false
13:05:53.393 [main] DEBUG org.apache.pulsar.client.impl.ConnectionPool - Connection for itomdipulsar-proxy:6651 not found in cache
13:05:54.679 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x60a98022, L:/<IP_ADDRESS>:32988 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connected to server
13:05:54.716 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarHandler - [[id: 0x60a98022, L:/<IP_ADDRESS>:32988 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Scheduling keep-alive task every 30 s
13:05:54.719 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x60a98022, L:/<IP_ADDRESS>:32988 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connected to broker
13:05:55.056 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Complete: true
13:05:55.645 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received cmd CONNECTED
13:05:55.649 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x60a98022, L:/<IP_ADDRESS>:32988 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connection is ready
13:05:55.650 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x60a98022, L:/<IP_ADDRESS>:32988 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connection handshake completed
13:05:55.734 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received cmd PARTITIONED_METADATA_RESPONSE
13:05:55.734 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Received Broker Partition response: 0
13:05:55.735 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PulsarClientImpl - [public/default/tryautotopicfirst] Received topic metadata. partitions: 0
13:05:56.013 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Starting Pulsar consumer status recorder with config: {
"topicNames" : [ "public/default/tryautotopicfirst" ],
"topicsPattern" : null,
"subscriptionName" : "test1",
"subscriptionType" : "Exclusive",
"subscriptionMode" : "Durable",
"receiverQueueSize" : 1000,
"acknowledgementsGroupTimeMicros" : 100000,
"negativeAckRedeliveryDelayMicros" : 60000000,
"maxTotalReceiverQueueSizeAcrossPartitions" : 50000,
"consumerName" : null,
"ackTimeoutMillis" : 0,
"tickDurationMillis" : 1000,
"priorityLevel" : 0,
"cryptoFailureAction" : "FAIL",
"properties" : { },
"readCompacted" : false,
"subscriptionInitialPosition" : "Latest",
"patternAutoDiscoveryPeriod" : 1,
"regexSubscriptionMode" : "PersistentOnly",
"deadLetterPolicy" : null,
"autoUpdatePartitions" : true,
"replicateSubscriptionState" : false,
"resetIncludeHead" : false,
"keySharedPolicy" : null
}
13:05:56.023 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Pulsar client config: {
"serviceUrl" : "pulsar+ssl://itomdipulsar-proxy:6651/",
"authPluginClassName" : null,
"authParams" : null,
"operationTimeoutMs" : 30000,
"statsIntervalSeconds" : 60,
"numIoThreads" : 1,
"numListenerThreads" : 1,
"connectionsPerBroker" : 1,
"useTcpNoDelay" : true,
"useTls" : true,
"tlsTrustCertsFilePath" : "/var/run/secrets/boostport.com/trustedCAs/RID_ca.crt",
"tlsAllowInsecureConnection" : false,
"tlsHostnameVerificationEnable" : false,
"concurrentLookupRequest" : 5000,
"maxLookupRequest" : 50000,
"maxNumberOfRejectedRequestPerConnection" : 50,
"keepAliveIntervalSeconds" : 30,
"connectionTimeoutMs" : 10000,
"requestTimeoutMs" : 60000,
"initialBackoffIntervalNanos" : 100000000,
"maxBackoffIntervalNanos" :<PHONE_NUMBER>0
}
13:05:56.148 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.249 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.350 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.450 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.551 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.652 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.753 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.854 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:56.955 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.056 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.157 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.259 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.360 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.461 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.562 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.663 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.688 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received cmd LOOKUP_RESPONSE
13:05:57.689 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Received Broker lookup response: Connect
13:05:57.692 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ConnectionPool - Connection for sac-hvm01758.swinfra.net:31411 not found in cache
13:05:57.696 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connected to server
13:05:57.698 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarHandler - [[id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Scheduling keep-alive task every 30 s
13:05:57.698 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ClientCnx - [id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connected through proxy to target broker at sac-hvm01758.swinfra.net:31411
13:05:57.763 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.PersistentAcknowledgmentsGroupingTracker - [ConsumerBase{subscription='test1', consumerName='379ae', topic='public/default/tryautotopicfirst'}] Cannot flush pending acks since we're not connected to broker
13:05:57.770 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - Complete: true
13:05:57.823 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received cmd CONNECTED
13:05:57.823 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connection has max message size setting, replace old frameDecoder with server frame size 5242880
13:05:57.824 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Connection is ready
13:05:57.824 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]] Connection handshake completed
13:05:57.825 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerImpl - [public/default/tryautotopicfirst][test1] Subscribing to topic on cnx [id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651]
13:05:58.315 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.common.protocol.PulsarDecoder - [itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received cmd SUCCESS
13:05:58.315 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ClientCnx - [id: 0x79182b10, L:/<IP_ADDRESS>:33014 - R:itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651] Received success response from server: 2
13:05:58.316 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConsumerImpl - [public/default/tryautotopicfirst][test1] Subscribed to topic on itomdipulsar-proxy.defect.svc.cluster.local./<IP_ADDRESS>:6651 -- consumer: 0
13:05:58.316 [pulsar-client-io-1-1] DEBUG org.apache.pulsar.client.impl.ConsumerImpl - [public/default/tryautotopicfirst] [test1] Adding 1000 additional permits
13:06:03.319 [main] DEBUG org.apache.pulsar.client.cli.PulsarClientTool - No message to consume after waiting for 5 seconds.
13:06:08.319 [main] DEBUG org.apache.pulsar.client.cli.PulsarClientTool - No message to consume after waiting for 5 seconds.
13:06:13.320 [main] DEBUG org.apache.pulsar.client.cli.PulsarClientTool - No message to consume after waiting for 5 seconds.

@devprashantksinha Yes, it is expected to be 1. But from your client output, it is 0. 0 means auto partitioned topic creation not triggered,  which means broker not get set well. but your broker.log contains the related logs:
allowAutoTopicCreation=true,allowAutoTopicCreationType=partitioned,defaultNumPartitions=1,

:(
broker side code:
    public CompletableFuture<PartitionedTopicMetadata> fetchPartitionedTopicMetadataCheckAllowAutoCreationAsync(TopicName topicName) {
        return this.pulsar.getNamespaceService().checkTopicExists(topicName).thenCompose((topicExists) -> {
            return this.fetchPartitionedTopicMetadataAsync(topicName).thenCompose((metadata) -> {
                return metadata.partitions == 0 && !topicExists && this.pulsar.getConfiguration().isAllowAutoTopicCreation() && this.pulsar.getConfiguration().isDefaultTopicTypePartitioned()
? this.pulsar.getBrokerService().createDefaultPartitionedTopicAsync(topicName).
  //   < === should trigger this line above
 : CompletableFuture.completedFuture(metadata);
            });
        });
    }

@jiazhai : Please let me know if you want to try out some other deployment configuration to reach to root cause.


Mnt/move return out of finally

Description

Make sure we do not eat exceptions in a finally block
Motivation and Context

Bug reported in #1838
How Has This Been Tested?

Just the existing test suite.  I'm not sure how to generate the conditions we would need to be in to generate this error and ran out of time before meetings started for the day.

To trigger the bug that this is fixing I think we would have to:

have self._during_task.block raise something that is not KeyboardInterupt
have the plan finish successfully before we call halt()

You could almost make the case that dropping the exception on the floor is the correct behavior as the exception is coming out of the waiting code, but plan is the thing we really care about.  However, I think that is a edge case where the timing is juuust right to sneak by and in general it means we have a bug in _during_task.block that could bring down a otherwise happily running scan and we should fix that.
As for "well, if the during task should not bring down the scan, why don't we eat the error here" is because that can drive us to a place where the user has the prompt back but a plan is running it the background which is a bit of undefined behavior currently so on balance I think it is better to stop things and identify the bug that risk going to an undefined place.


Update readme.md

Hi,
This small PR adds a button to get your app on F-Droid and a link to get the apk in the Releases Section, as well as a description of your app taken from F-Droid. You can later add a button for Google Play the same way :
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png"       alt="Get it on Google Play"       height="80">]()
You can now eventually add the fdroid and/or f-droid tags that will appear on the right side of the repo.
close #33

@neilalexander bump?


Mutual TLS between client app and license server in remote verification

Might be better to just use certificate pinning if every client is going to embed the same cert/key.
But if every client has a separate cert/key, you have a replacement license key.
e.g. generate the cert/key using PBKDF from the license key ciphertext.


Rotate Forseti server service account key as it is a best practice.

[ ] Investigate GAE push for docs
[ ] Investigate integration testing environment

No service account keys are generated for the Forseti deployments (GCE + GKE). The service account is bound to the GCE VMs so that no keys are generated. For GKE uses something similar, which is the workload identity.
There might be some service account keys used for the builds on Travis. Investigate and suggest a process to be followed by the release engineer.

An IAM SA key is used by forsetisecurity.org to connect to App Engine.  It is encrypted.  I don't think there is an out of the box rotation mechanism for this scenario.  However, one could be constructed

@kevensen To update internal release docs

Was this completed as part of the v2.24.0 release?

D'oh.  No, this slipped through the cracks.  I can take a look at it later today.


UI breaks for many dats

If more dats are shared than have space in one UI page (4 lines per dat) the UI breaks. Lines appear everywhere. Also, it's not scrollable as the UI gets updated every second.
Either fix this in neat-log or switch the cli ui framework to something like blessed

I switched to a blessed-based UI (curses-style) for now. Works quite well.


Bintray files are Forbidden! (when installing deis client)

Hi!
I clicked a bunch of the client files over on bintray to see if it was just the current one that did not work form me and I could install an older version instead, but they all seem to be Forbidden!
See: https://dl.bintray.com/deis/deisci/
(the one I was interested in was: https://dl.bintray.com/deis/deisci/deis-7283e7c-darwin-amd64)
Hope it's an easy fix so I can try out the new version soon! 😄
Cheers!

thanks @foxycoder! We're taking a look into it with https://github.com/helm/helm-classic/issues/482. Stay posted there for updates.

actually re-opening as this is the client and that one is for helmc.

I have a feeling that this is from the recent notice we got from bintray last night:

Hi Deis,

Your Bintray account is currently rate-limited due to overuse.
Customer Support should contact you at the earliest to remove the limits from your account. You may also contact them directly at<EMAIL_ADDRESS>

Regards,
The Bintray Team

In the meantime you can build the client from source via https://github.com/deis/workflow-cli#from-scratch

I'm working on an immediate solution with Bintray at the moment.

thanks for the updates!

okay so the post-mortem for this is the following: bintray's terms of use does not allow development builds to be uploaded to their site. Under their terms of service:

, upload and/or store on the Site continuous integration artifacts or nightly builds, (i.e. you may only upload and store content in direct connection to official software releases).

We are currently re-building one client on bintray in deis/workflow-cli#72 and will continue to do so for a short period of time until we get our dev builds uploaded to S3, which you can follow in https://github.com/deis/workflow-cli/pull/73.
Keeping this issue open until deis/workflow-cli#72 is closed and we have a build available for downloading.

this has now been fixed.
root@329430889cfe:/# curl -sSL http://deis.io/deis-cli/install-v2.sh | bash
Downloading deis-a17f89a-linux-amd64 from Bintray...

deis is now available in your current directory.

To learn more about deis, execute:

    $ ./deis --help

Please feel free to follow along with deis/workflow-cli#73 for our progress on migrating to S3.


Integrate the CLI with yarn/npm

I haven't looked into how to do this yet, but ideally one could do a global yarn or npm install and have the CLI available. Right now, you have to check out the project and run it directly.

Looks like I had this right to begin with. I just tested the hamlogs tool after running yarn global add hamlogs and it worked as expected.


Image always in visible browser area

Is there a way to force the preview image to always be displayed in the visible area?
Eg, if a picture is in the right of the page, then it is displayed out of screen.

There is nothing there right now to do this, but it's possible.  Would just want to make sure this works for all edges and offset values.


get information on how to manage projects in GitHub

[watch video 1] https://www.youtube.com/watch?v=ff5cBkPg-bQ&ab_channel=goobar
[watch video 2] https://www.youtube.com/watch?v=IWWY8Ezb6zA&ab_channel=BuildingRarely
[read github docs] https://docs.github.com/en/issues/planning-and-tracking-with-projects


Document how to connect a duckDB database in our CLI

Is your feature request related to a problem? Please describe.
We do not currently have any user-facing documentation around how you use the CLI to connect to a duckDB database.
Describe the solution you'd like
Update the readme to include clear, simple instructions on how to accomplish this and the implications.

This needs to be done first thing Monday.


Fix UID support in MultiplayerSpawner

Fixes #99706
The bug occurred because setting a path will use _set() on path index, instead of _set_spawnable_scenes(). idk how I missed it previously.
The main problem is that MultiplayerSpawner must operate on paths, but the editor wants it to store the paths as UID. I removed the uid field added in #99137. Now all paths are stored as paths internally, but saved as UID, with the conversion happening inside setters/getters. This might affect scene loading, but shouldn't impact performance of the spawner's operation.

Thanks!


Add the customizability of SQL rendering

WIP
Fixes https://github.com/spring-projects/spring-data-relational/issues/1363

[ ] You have read the Spring Data contribution guidelines.
[ ] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

We are not going to merge this. See the issue for more discussion about this.


Improve logging

Some of logging isn't working very well (function names never seem to appear), making it hard to tell what's happening where in the code. It needs to be cleaned up & improved.

I addressed this in PR #11, incl. moving the logging methods into a logging object, fixing the broken fn() method (née currentFn()) so that method context info appears with messages, added performance timers in debug mode, and cleaned up log messages.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:14: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:36: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:36: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:36: missing_description: The recipe is missing a description
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:36: http_url: http://github.com/dfunckt/django-rules is not https
ERROR: /tmp/abs_dcxazxv16y/clone/recipe/meta.yaml:36: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found


Consider compiling DXVK-Sarek without the '-msse3' flag

Will probably leave some CPU-bound performance on the table, however this has the benefit of making DXVK-Sarek play nice with any x86-64 processor, even early P4s and the like.
I didn't want to include it part of my build-related PR, as I feel it's a choice you should weigh and make depending on how backwards-compatible you want DXVK-Sarek and Proton-Sarek to be, but it's definitely something worth considering IMHO.

About this, i have done some tests and to be honest i dont see it as worth it, not because i dont want to support very old CPUs, but because the bast majority of Proton/DXVK-Sarek users should have SSE3 capabilites, its sacrificing performance for a lot of people for a very very small number.
However, on this new release, i will add this as extra info + a tutorial of how to do it, so if anyone is using a CPU without SSE3 capabilities, they are free to compile it without it.

Alright, I'll close this then.

its sacrificing performance for a lot of people for a very very small number.

To be fair it's also sacrificing very very little performance most likely, but sure :P. On a sidenote, vkd3d-proton only targets SSE2 (so basically the x86-64 baseline), and I think Proton itself also does. But I agree people with SSE2 only CPUs these days should be a rarity. Even my "retro" Pentium 4-based Windows XP PC has SSE3 support, but technically there are some Athlon XP CPUs that lack it, IIRC.

However, on this new release, i will add this as extra info + a tutorial of how to do it, so if anyone is using a CPU without SSE3 capabilities, they are free to compile it without it.

Sure, that sounds nice, though it's not exactly rocket science anyway :).

To be fair it's also sacrificing very very little performance most likely

Reopened this issue because i decided to redo the benchmarks. When i did them a few days ago, the performance loss wasn't big, but it wasn't small either. It went from 25,821 to 23,789 on the Resident Evil 6 benchmark tool. I ran the benchmarks about six times with each version.
I did the benchmarks again, and now the difference is basically nothing, going from 25760 with SSE3 to 25685 without it.
I've also got my test PC working again (an old office PC with an i5-2400, GT710 and 8GB of RAM). I did the test there too and it's the same there, almost no difference.
IDK why, but seeing as the difference isn't 8%, i'm rethinking my position.


updating import links.

links were incorrect:
import { ChatOpenAI } from 'langchain/chat_models/openai'; raised errors in execution, until replaced with import { ChatOpenAI } from 'langchain/chat_models';

making sure i'm on latest langchain, found breaking-changes notice on installation page. closing.


Introduce git submodule dev-tools

Removed tools directory and added git submodule dev-tools
in the submodules dir. You can treat it as a symlink to the remote
repo which contains all developer's files for working.

Before we merge this PR we should wait for approving this PR in dev-tools repo. Only then we should rerun all checks and if everything is ok with them we can merge this PR as well.

@ArthurBandaryk , out of curiosity, what's the status of this PR? I see you're updating it frequently. Do we plan to push it soon?
Not urgent, just curious (and I'm wondering if I can/should unsubscribe from this)

@ArthurBandaryk , out of curiosity, what's the status of this PR? I see you're updating it frequently. Do we plan to push it soon?
Not urgent, just curious (and I'm wondering if I can/should unsubscribe from this)

Hey Alex! It's still in progress, I plan to merge it soon. You can unsubscribe from this:)


V1 - Create an upgrade guide

I have a project at work currently using an earlier version of Guardian.  I'll try to set aside some time to upgrade to v1 and document the process.


Add appegiator to Chromatic Page

Been meaning to add this for a while.
Basic functionality is working.
Need to create a GUI popup page for it accessible from Track Menu on SeqPtcPage.

I listened to the demo. Awesome!!

@yatli the arp functionality is done.
have  a play.
my favourite mode right now is  LATCH + RND.

merged in to dev.

Are we still using the master-dev paradigm? I'll rebase the samplemgr PR if so.

Are we still using the master-dev paradigm? I'll rebase the samplemgr PR if so.

yes.


4.x: programmatically control media providers with Nima WebServer

While working on migrating the Bookstore test application to Nima WebServer I ran into a gap (or maybe it is ignorance on my part).
In 3.x I can add specific media support programmatically:
webserverBuilder.addMediaSupport(JsonpSupport.create());

I can't find a way to do that with Nima WebServer. Maybe I'm missing something but it seems to rely only on service loading of MediaSupportProviders.
Note that this is different than Features which have useSystemServices() to turn on/off auto loading of services and there are ways to programmatically add a feature using addFeature.

I'll have a look at this one.


Twitter Search API implementation

Hello,
First off great repo. I was wondering if you can this framework to get data of the Twitter search API. For example all tweets for stock symbol $AAPL
I only see methods for grabbing timeline and using stream API, is there one for a search API?
Thanks in advance
Ace

Hi there, think this might be what you're looking for: https://dev.twitter.com/streaming/reference/post/statuses/filter


Drag and drop file in ace

We could drag and drop a file from local to our tool now.

https://github.com/PaulBredl/config-assistant/assets/51022913/4d91fcda-5cd6-4a75-88ad-1592fbf32992
Effect like this.

https://learnvue.co/articles/vue-drag-and-drop
Here are examples

Generally looks nice but I think you can use Vue specific features to make the code more clean (don't know for sure!) Instead of adding event listeners manually, you should be able to use the Vue event handlers '@drAg' and the similar ones.

That looks nice. I'll try to improve it

@beyond2void just a quick reminder that this pull requests still has some todos. They shouldnt take too long,

@beyond2void just a quick reminder that this pull requests still has some todos. They shouldnt take too long,

Vue does not has its own drag&drop event. It's actually implemented using the HTML dragdrop methods.
So I don't know if it's still needed to change the style of the code.
Btw, I simplified the code, deleted some unnecessary parts.

@beyond2void just a quick reminder that this pull requests still has some todos. They shouldnt take too long,

Vue does not has its own drag&drop event. It's actually implemented using the HTML dragdrop methods. So I don't know if it's still needed to change the style of the code. Btw, I simplified the code, deleted some unnecessary parts.

I will do it real quick

2023-08-<IP_ADDRESS>.mov
Effect like this.

looks nice

@beyond2void also check if this is fine

Thanks for improving.
I understand now what you meant by "more vue style" 👍


Drawing large images on iOS with colorspace transformations is slow.

On iOS, attempting to draw a very large image using a SkCanvas::drawImageRect call is extremely slow (400ms as shown in this trace for this reduced test case). The same call on Android is adequately fast.
Investigation shows that an attempted colorspace conversion on iOS is extremely slow. This conversion happens as part of the SkColorSpaceXformCanvas::onDrawImageRect call. This call performs work to prepare an intermediate image which seems to incur a per frame texture copy initiated at this site. Preparing this new image is slow (taking 220ms of the 400ms slice) but is also followed by more writes to a buffer followed by a texture upload. This seems to happen per frame which exacerbates the issue.
Note: A possible complicating factor could be that the source image is from a GrContext that is not the same as the rendering GrContext (but it is in the same underlying sharegroup). It is possible that the intermediate preparatory step does not result in caching as expected on iOS.

The updated API has landed in https://skia-review.googlesource.com/#/c/121342/. Once this gets rolled in, we should clamp IO textures to max supported size.

@eseidelGoogle I am removing the regression tag as we always had this issue.


Float Classification Functions

This is part of #13 without the trigonometric functions, as they require some more work and fine-tuning.
It contains the Floating Point Classification Functions from C99 standard.

fixed base.ml


How to extend Option Field in CRM Invoice?

How to extend Option Field in CRM Invoice? We added new options in CRM Invoice Table Field StatusCode but that options are missing in Business Central?

I think this isn't possible right now.
Check out the following ideas:

https://experience.dynamics.com/ideas/idea/?ideaid=67e0463d-f5a2-ed11-9ac4-0003ff457d0a
https://experience.dynamics.com/ideas/idea/?ideaid=32b55f22-0dcc-eb11-ba5e-0003ff458e62

Maybe you can create a new field on the same table via a table extension that incude the other values?

It is not possible to extend option type fields. You can

Create a new option field to include new values and update the integration field mapping

Updating integration field mappings:  (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/administration-custom-cds-integration#add-new-integration-field-mapping-for-industry), make sure you map enum fields to enum fields and option fields to option fields (between CRM type tables and normal tables)


OrientDB graph editor settings saved with admin user not reflected for other user

OrientDB Version: <2.2.22>
Java Version:
OS:
Expected behavior
graph editor settings changes saved with admin user , to display name of the node properties value instead of @rid  , graph diplay the changes with admin user after refresh and re-login  , but with other user it does not have the same feature
Actual behavior
it display @rid value for node names
Steps to reproduce
login with admin user and make the setting changes , save , run the graph editor to reflect the changes  , login with different user and changes will not reflect

hi @sridharnampalli
that is how it works. Each user has it's own configuration.

Hi @maggiolo00  , but other then admin user the configuration changes are not retained /saved  once we refresh the browser / re-login again with different user other then admin
so how to save the  configurations for non admin users

with which users did you test it?

Hi @maggiolo00  , i have tested with user1 with write permissions and user2  with read permissions  , but for both i not able to restore the configuration changes
please let me know other than admin user , can we restore the configuration changes on graph editor
if so please share the steps /screenshots


Added maxBodyLength on axios

Description

I added maxBodyLength: Infinity on axios
Otherwise we are getting the following error when uploading big files: ERR_FR_MAX_BODY_LENGTH_EXCEEDED

Please implement this as I am getting the same problem


Question about your paper Recursive Social Behavior Graph for Trajectory Prediction

Hi,
Recently I read your paper "Recursive Social Behavior Graph for Trajectory Prediction", and I think it is very useful.
I want to ask when will you share the code about this paper. Besides, in your paper, you propose the Exponential L2 Loss and I have some problem about the parameter gamma. Assuming that the history length is 8 and the forecast length is 12, according to the loss function you proposed, which of the following two is the exponential term:
(1) gamma = pred_len = 12, then the exponential terms are [exp(1/12) exp(2/12) ... emp(12/12)]
(2) gamma = obs_len +  pred_len = 20, then the exponential terms are [exp(9/20) exp(10/20) ... emp(20/20)]
In this project：https://github.com/ApeironY/PCCSNet/blob/main/utils/metrics.py#L31, you implemented this exponential loss function in code. In your code, gamma = a.shape[1], so the gamma is 12 and I think you implement the exp_l2_loss in the above (1).
But in your paper, you did some ablation study about the parameter gamma: 5 20 50 and then choose the best 20.
If you follow the idea of this code, how much should gamma be set when setting the parameter to other values?

Thank you for your appreciation! We will have it as a TODO to share the code. For gamma in Exponential L2 Loss, it is irrelevant with pred_len or obs_len. The terms are set as [exp(1/gamma) exp(2/gamma) ... exp(12/gamma)], where gamma can be a proper value such as 12 or 20. Hope this would be helpful.

@GothicAi
Thanks for your answer and I have a clear understanding of the definition of index term.
But I also have some problems about the ablation study about the parameter gamma: In your paper, you say gamma = 20 is the best, but in this code gamma = 12. Does this mean that the gamma value in the paper needs to subtract obs_ length(8), and the result is the gamma value in the code?
When I do the ablation experiment on the parameter gamma, if I make gamma = 50 as in your paper, so  gamma in the code is still 50, or 50-8 (obs_length) = 42?
In addition, will you consider open source for the programs in other parts of this article? I am very interested in the recursive social behavior graph in the article and want to learn it through code.
Anyway, thank you again!
Best,
Jincan

Thanks for raising this question! The best value of gamma may differ from different networks, and we use 12 in this repo while 20 for RSBG. It is not necessary to subtract obs_length.


%H%M always be zero

hello,
I tried this
rl, err := rotatelogs.New(logPath + ".%Y%m%d%H%M")
but the logfile always be such thing like log.201908020000, the %H and %M is padding zero.

ack. this seems like it sneaked in with Location support. looking into it...

I re-read my code and spec, and believe this is working as intended, so I added more docs. Let me know if it makes sense.


fix(sankey): Return the exact faulty link instead of root

SUMMARY
The current implementation returns the root of the faulty branch in the tree
if neighbour in path or visit(neighbour):
    return (vertex, neighbour)

The goal of this PR is to pinpoint the exact faulty link in the tree.
cycle = (vertex, neighbour) if neighbour in path else visit(neighbour)
if cycle:
    return cycle

@nottatdat can you give us a way to test this, or screenshots of whatever's broken? I'm assuming this is still an issue in Superset 3.x? Meanwhile, closing/reopening to see if we can get it to pass CI.

Looks like you just need to run the pre-commit hooks to fix this up (or let me push to your branch). To install the hook, run the following:
pip3 install -r requirements/development.txt
pre-commit install
A series of checks will now run when you make a git commit.

Alternatively it is possible to run pre-commit by running pre-commit manually:
pre-commit run --all-files


Fix Android lib folder import

Fixes #6

Thanks for your contribution @IjzerenHein and @KestasVenslauskas! The dependency on both local folder & Maven repo is indeed causing an issue.