Research: Scale Activation Factorization

🔬 This is an experiment in doing radically open research. I plan to post all my work on this openly as I do it, tracking it in this issue. I'd love for people to comment, or better yet collaborate! See more.
Please be respectful of the fact that this is unpublished research and that people involved in this are putting themselves in an unusually vulnerable position. Please treat it as you would unpublished work described in a seminar or by a colleague.
Description
In Building Blocks, we create neuron groups by applying Non-Negative Matrix Factorization to the activations of a single example. This can be seen as creating a local basis for explaining that single example.
A natural next step would be to factor activations from many examples. The blocker on this has been figuring out how to scale NMF factorization. I think it's likely that reading documentation for a few hours (especially about mini batch factorization approaches) would give us enough to solve this.
An intermediate approach might be to factor the activation for examples of a single class or set of similar classes.

This sounds incredibly interesting! Had a quick question: by doing an NMF on the activations (which I'm assuming would be performed per layer), it seems like we would extract some representation of the activations on that layer, where these representations ideally have some semantic meaning. These representations, however, likely wouldn't correspond to any neuron in the layer.
My question is then, is the goal of this to uncover the semantic representations to see how the network responds to different inputs? Or would this be used to in some way retrain a new network whose weights are initialized to these extracted representations?

I think either would be exciting!

My apologies if this is not the right forum to ask.
Is the plan for this work to also handle activation values from networks other than InceptionV1?
I am interested in visualizing how other networks like MobileNet, SqueezeNet (and beyond) see a given example.  But I run into a difficulty with the NMF;  specifically the activation values must be non-negative which is not always true with other model architectures.  A work-around is groups=0 (in the Activation Grids example), but this looses the "decoherence" feature.

@mn02: Happy to talk about this, but I think it would fit better if you made a separate issue or a slack conversation on the Distill slack. This issue is for a specific research question. Thanks!

A first step would be to utilize acceleration hardware instead of numpy (which is used in sklearn's implementation of NMF), see e.g. here for a PyTorch implementation https://github.com/yoyololicon/pytorch-NMF. Their implementation seems to get at least factor 5 speed-up for me on colab (for a random NN 1000x1000 matrix).
A numpy documentation of minibatch NMF (with code in numpy) can be found here https://rserizel.github.io/minibatchNMF/intro.html, if anyone wants to grab it.


Consider supporting mock snapp GraphQL API endpoint

We could consider allowing devs to send transactions to Mina's mock/dry run API endpoint, which will show them the rest of a transaction without actually executing the transaction state changes on chain.
Low priority.

dupe


Production release

I'm on production release but webpack isn't working, can you tell us how can we build in production mode.. thank you in advance

could u provide me with some further explanations? this information is pretty insufficient

Hello! I have same problems. In prod mode i have many error "Cannot find module ..." with zone.js, rxjs and other. I think it becouse webpack doesnt set to prod mode for angular. isn't it?

I remove nodeExternals plagin from externals and now all good

@yofi2tofi can you please give a detailed list of steps you took to resolve the issue? Got the same problem here, but still no success on resolving the matter.

@NickvdMeij hello!
externals: dev ? [
    nodeExternals({
      whitelist: ['webpack/hot/poll?1000']
    })
  ]: [nodeExternals(/^angular-froala-wysiwyg/)]


Incomplete requirement list to run tests

Hi @christopherjenness I think it would be nice if there was a requirements list to go though to install everything needed for the test file. Here the is what I had to do to set that up on my system:
pip install -U scikit-learn to install sklearn
pip install pytest
pip install hdbscan or  conda install -c conda-forge hdbscan
I actually also expected the test folder to provide an example of the code´s application, not the assertions, I would add an example.py for that (eg. using the code in the README).

You should find all the install requirements in requirements.txt, which is located in the source folder

I know, and I also should have installed those automatically by clicking on "Install requirements":

and python setup.py install also passed:

Still, when I tried running the tests, it resulted in

As well as the same for pytest and hdbscan.

If you are sure that the installation works flawlessly, you can ignore this (I was using pycharm and Windows 10 Pro by the way). I think what would be interesting though would still be a file example.py.


Add solution to Lab04 C

Hi @laymonage , I added some solution to your code (Lab04-C). Hehe (^_^)V

Makasih zhar! Maaf baru di-merge :smile:


[v3.2] Repatriate from v2.4

This PR merges release/v2.4 in to master.

notes from @LukeShu :
This comes out to be just the TCPMapping PRs, since everything else in 2.4 was backports.

Oh just noticed...lgtm once green :). I'm guessing flakes.


V3 sdk samples

Fixes #
Proposed Changes

Testing

Hi @processsuccessinc
Thank you for working to clean up the v3 samples.  Unfortunately, we cannot take this PR because it is attempting to merge the v3-sdk-samples branch into master and that is not how this repository is structured.
If you wish to re-submit this, your changes should first be squashed and rebased against v3-sdk-samples branch (so all of the other commit history is not included in this commit).  Also, the Pull Request needs to be into the v3-sdk-samples branch, not the master branch.


Cannot drag Window when Full screen height - MacOS

Issue Type: Bug
If you resize a window to be the full height of the screen (between the menubar and the bottom of the screen, assuming the Dock is on the left or right), you cannot drag the window to reposition it. You need to ensure the window is not the full width of the screen.
Double clicking the drag area to maximize the window does NOT exhibit this behavior - only if you drag to resize the window to fit the height of the screen. The only way to restore dragging is to resize the window smaller. Even by a little bit.
VS Code version: Code - Insiders 1.42.0-insider (33c79d5ad447956814a2a3658029dffb9e28bae6, 2020-01-15T08:53:57.100Z)
OS version: Darwin x64 19.2.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
2, 1, 2

Memory (System)
32.00GB (7.24GB free)

Process Argv
-psn_0_22299971

Screen Reader
no

VM
20%

Extensions (22)

Extension
Author (truncated)
Version

ng-template
Ang
0.900.4

path-intellisense
chr
1.4.2

vscode-svgviewer
css
2.0.0

vscode-eslint
dba
2.0.14

githistory
don
0.4.13

auto-close-tag
for
0.5.6

output-colorizer
IBM
0.1.2

Angular2
joh
8.3.0

mads
mir
0.0.5

vscode-azurefunctions
ms-
0.20.1

azure-account
ms-
0.8.8

csharp
ms-
1.21.9

js-debug-nightly
ms-
2020.1.20223

vscode-typescript-tslint-plugin
ms-
1.2.3

debugger-for-chrome
msj
4.12.5

abracadabra
nic
3.1.0

vetur
oct
0.23.0

material-icon-theme
PKi
3.9.2

vue-vscode-snippets
sdr
1.8.0

open-in-browser
tec
2.0.0

msbuild-project-tools
tin
0.3.3

vscodeintellicode
Vis
1.2.3

(1 theme extensions excluded)

This seems to be fixed for me with 7.1.11. Would be interesting to point it to the commit that fixed it.

@jtsom can you please see if this is fixed for you with latest VSCode insiders? in. You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Using:
Version: 1.43.0-insider
Commit: f4c95d5b9cfb2265f1730d564df1709533eff55e
Date: 2020-02-12T05:45:29.569Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0
It seems to be fixed. I can move the window after sizing it just fine.
Thanks!


Add is elastic param

Since the FastAPI client was pushed with the changes made in the backend and those are not reflected yet in the code, if you try to develop API locally it will give errors. Here I am adding a missing param to fix it. However, later today I will open a PR with all the changes in the machines.

I don't really understand why we need this to develop. Is this due to the gen_client? Won't the error still persist?
I am using the main and I am able to develop locally without problems...

Are you sure you're using the latest version of main? because there it doesn't work.

I don't really understand why we need this to develop. Is this due to the gen_client? Won't the error still persist?
I am using the main and I am able to develop locally without problems...

Are you sure you're using the latest version of main? because there it doesn't work.

Maybe not the latest... However, I don't like to merge this to main, since it's a quick fix that will be replaced... I think if anyone wants to use this fix, they can merge it to their branch.


what is difference between customer type vs customer group ids?

@pinnareet  what is difference between customer type vs customer group ids?

customer type is tm_type field (2-digit number) in member-user-database table in dynamodb.
customer group Ids can be customized in case we want to create custom customer groups. we probably will not implement customer groups now.


[TV][NUI] Fix build & warning errors of TV/NUI.

@AchoWang
Hello,
could you update the description?
and could you share the test result whether this sample App runs properly in tizen_7.0 emulator?
thank you.


add rest endpoint in v2 for fetching input schema

FLPATH-1420
https://issues.redhat.com/browse/FLPATH-1420

@ydayagi
remove the changes in packages/
these are just for development

@ydayagi
PTAL at the lint failures
https://github.com/janus-idp/backstage-plugins/actions/runs/10389080868/job/28766259732?pr=2055#step:3:242

/lgtm

/lgtm


fix: allow button image to update with same selected file path

This PR addresses issue #126. Pillow is bumped to pass safety check (everything appears to be working still...). Added set -x to lint.sh to make it easier to follow which command generated which output.

@ajbucci could you rebase and force push and check again?


What is this?

What is the new blue coffee cup icon for?
https://i.gyazo.com/59cb79e50409931d0d4972ee29b34f3a.png

It is PowerToys Awake.  It is a new utility in 0.41 https://github.com/microsoft/PowerToys#highlights-from-v039--v041


Adding FINOS Admin PAT

@ivan-kyosev-gs why do we only expose the secret in the checkout step?

hm, I think we should document this bit or expose the secrets in further steps, I'm afraid when checkout is upgraded by someone else and no longer support this niche feature, the pipeline will break and no one would know what to do


Vertical development for design requirements

Seems like Rachael and other documentation is all using requirements and not design input which I'm happy enough with. Hoped to get a bit more vertical but got stuck in the weeds and realised its been a bit too long for this not to be reviewed.
Felt like single inheritance here made it quite nice but not too set on any of the choices I've made. Do wonder if instead of each class having from_json and to_json if they should be methods from_dict and to_dict? That may make serialisation of a bunch of them all at once nicer

I'm not clear what this is doing. Is the idea that a Github object will pull the markdown from Github then instantiate the appropriate DesignStage subclass object from that? So we'd have a TestHost object that works on files in a directory?

Yep basically that, I think the easiest way for testing would be to mock out the github API and instead read from the filesystem. Though open to other suggestions!


Build with latest 2022.3 EAP fails

Describe the bug
I attempted to update my plugin to the latest 2022.3 EAP, IC-223.6160.11-EAP-SNAPSHOT.
The build now fails, but was successful with IC-223.4884.69-EAP-SNAPSHOT.
Error:
Execution failed for task ':plugin:runIde'.
> java.io.FileNotFoundException: /home/jansorg/.gradle-intellij/ideaIC-223.6160.11-EAP-SNAPSHOT/Info.plist (File or directory not found)

To Reproduce
Update to the new EAP.
Expected behavior
Builds and runs
Environment:

OS: Linux
Gradle IntelliJ Plugin Version 1.8.1 (because of https://github.com/JetBrains/gradle-intellij-plugin/issues/1099)
Gradle Version: 7.4.2

Additional context
I'm on Linux, I suppose the new builds included assets for all platforms, which is now wrongly detected as macOS by the intellij-gradle plugin.

Adding another issue for gradle-intellij-plugin usage with the IC-223.6160.11-EAP-SNAPSHOT build.
Probably this is an issue with IntelliJ itself, not with the plugin, but adding a comment here for your interest.
Original issue: https://youtrack.jetbrains.com/issue/IDEA-303298/macOs-Could-not-initialize-class-comintellijuimacfoundationFoundation-on-223616011-build
Shortened description:
runIde task results in IntelliJ startup failure:

issue appears on macOs machine - MacBook Pro 2021 with the Apple M1 Pro chip for the 223.6160.11-EAP-SNAPSHOT IntelliJ Idea build (community)
This issue did not appear for the previous snapshot build - 223.4884.69-EAP-SNAPSHOT
Main error: Failed to initialize IdeFrameDecorator. Could not initialize class com.intellij.ui.mac.foundation.Foundation

I have the same problem as @LukaszKontowski

please try using Gradle IntelliJ Plugin SNAPSHOT version for now https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#snapshot-release

@jansorg Is this issue still relevant?

Confirmed by @jansorg as obsolete.


Added fix for writing logs with sharded tests

Hello,
I tried to use Protractor with shardTestFiles set to "true" and with the format parameter sent to cucumber so that test results would be written in json files.
The problem is that every instance of my browser writes in the same file so it always gets overwritten.
The purpose of this fix is to add a unique identifier in the name of the file when writing it when shardTestFiles is enabled.

:+1: Would love to see this merged

Hi, We really would love to see this change in master :)

Is this the feature the same as https://github.com/mattfritz/protractor-cucumber-framework/issues/20 ? I thought this issue was added to 0.4.0?


Export raw config

Would it be reasonable to export the raw config for cases where a client needs to look at specific items? The other tool I'm working with stores custom metadata in the config file and I need to be compatible with it.

@taralx We do keep the raw config as long as it is in the right git-config format. You can call https://godoc.org/gopkg.in/src-d/go-git.v4/config#Config.Marshal to get a []byte with the contents of the git config file. You can get the config itself from Repository.Storer.Config().

Thanks for your response. I'm actually looking to get the "gopkg.in/src-d/go-git.v4/plumbing/format/config".Config object, which allows me to do lookups without doing the parsing myself. Right now I'm using this code to bypass the export restriction:
func rawConfig(c *config.Config) *rconfig.Config {
        raw := reflect.ValueOf(c).Elem().FieldByName("raw")
        return (*rconfig.Config)(unsafe.Pointer(raw.Pointer()))
}

FYI: I do not have permissions to reopen this issue, but would like it fixed.


Update Turkish translation

sharp eyes @adiloztaser 👀
updated in bc8ea961c809873e662c95c363000cb0494ec119, thanks!

Thanks for the PR, @mustafauysal !
And thanks for the review as well, @adiloztaser, I have to admit my Turkish fails me here... ;)


Add Undo animation when delete item & Fix FDroid Build

Fixes https://github.com/lolo-io/OneList/issues/87 & https://github.com/lolo-io/OneList/issues/94

Changelog needs to be versionCode.txt instead of https://github.com/lolo-io/OneList/blob/8a8e34e80186001ecb833036ab4a2224c35dac7d/fastlane%2Fmetadata%2Fandroid%2Fen-US%2Fchangelogs%2F1.5.1.txt

Fixed in #102


Include total submitters on the countries_documents endpoint

Adds a new attribute to the documents array with the total submitters, which can be used on the places where we need this value!
E.g.: http://localhost:3000/api/v1/ndcs/countries_documents?location=BRA

Working fine! Thanks!


start_mining/stop_mining, refactoring of #155

I can't quite figure out how to compare my changes with the changes on #155. However, here's the gist:

Performed some stylistic changes
Removed preprocessing of transactions, so transactions are only processed once
Stopped checkpointing the trie - this will leave failed transactions on the chain like all other blockchains (i.e., geth, etc). This is possibly controversial, but it removes the need to preprocess transactions at all.
Refactored block processing logic such that block processing now only tries to grab as many transactions as will fit in the block, based on the transactions' gas limit. This processing could be smarter to stuff blocks even fuller, but this is good for now.
Added a check when transactions are queued to ensure their gas limit doesn't exceed the block gas limit.
Refactored no_mine_after_transaction flag to be called is_mining, and gave it a StateManager.startMining() and a StateManager.stopMining() interface.
Edited queuedTransactions.js so that the before steps were within the describe block (minor change)
Added three more tests in mining.js to ensure block processing works like we expect.

Closing; this has been merged into the develop branch.


added missing ASL licenses

added ASL license in files (*.java. *.drl) where it was missing
did a mvn clean install -Dfull executing the tests
IMPOSRTANT. one test failed
https://gist.github.com/mbiarnes/9ad0e85d1cd4a5e86a92

merged into master, tests that failed were already fixed so now all are green, thanks @mbiarnes


This might be caused by classes that are not decorated by @nni.trace. Another option is to force bytes pickling and try to raise pickle_size_limit.

Describe the issue:
Environment:

NNI version:
Training service (local|remote|pai|aml|etc):
Client OS:
Server OS (for remote mode only):
Python version:
PyTorch/TensorFlow version:
Is conda/virtualenv/venv used?:
Is running in Docker?:

Configuration:

Experiment config (remember to remove secrets!):
Search space:

Log message:

nnimanager.log:
dispatcher.log:
nnictl stdout and stderr:

How to reproduce it?:

Hi,
This is not working for me . Since the last thread is closed, hence opening a new one. I have just started using NNI. I would be very grateful if you could please help.
Error:
File "C:\Users\ADMIN\anaconda3\lib\site-packages\nni\common\serializer.py", line 864, in _json_tricks_any_object_encode
raise PayloadTooLarge(f'Pickle too large when trying to dump {obj}. This might be caused by classes that are '
PayloadTooLarge: Pickle too large when trying to dump tensor([[[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
...,
[0., 0., 0., ..., 0., 0., 1.],
[0., 0., 0., ..., 0., 0., 1.],
[0., 0., 0., ..., 0., 0., 1.]]], device='cuda:0'). This might be caused by classes that are not decorated by @nni.trace. Another option is to force bytes pickling and try to raise pickle_size_limit.
What I did,
'''splitting train-test data'''
train_data,test_data, train_labels,test_labels = train_test_split(data, labels, test_size=.2)
@nni.trace
def get_train_dataset():
train_dataDataset = TensorDataset(train_data,train_labels)
return (train_dataDataset)
@nni.trace
def get_test_dataset():
test_dataDataset = TensorDataset(test_data,test_labels)
return (test_dataDataset)
create dataloader objects
train_loader = nni.trace(DataLoader)(get_train_dataset(),batch_size=15, shuffle=True, drop_last=True)
test_loader = nni.trace(DataLoader)(get_test_dataset(), batch_size=20, shuffle=True, drop_last=True)
#In evaluate model,
def evaluate_model(): #argument should be equal to search-space params
device = torch. Device('cuda') if torch.cuda.is_available() else torch.device('cpu')
model_space.to(device)
numepochs = 10
trainAcc = []
SkAcc = []
losses = []
learning_rate = 0.00018
L2lambda = 0
momentum = 0
lossfun,optimizer = OptandLoss(model_space,learning_rate,momentum,L2lambda,'Adam')
trainAcc,SkAcc,losses, BestModel = trainTheModel(model_space,numepochs,lossfun,optimizer,train_loader,test_loader,trainAcc,SkAcc,losses)
finalSkAcc = SkAcc[-1]
nni.report_final_result(finalSkAcc)
return nni.report_final_result(finalSkAcc)
Thanks for your help. Please let me know if I should send you the notebook.
Regards,
Shruti

Why do you need to put train_loader and test_loader outside evaluate_model? I suggest putting all of them into the evaluate function and try again.
Also your format looks messy. I suggest properly formatting them with markdown syntax.

any updates? @ShrutiSarikaChakraborty


Mobile app - The icons don't display

I wonder why the icons don't display on the mobile app, neither in the navbar nor in the tabBar and so on. Any help?

Can you post a screenshot?

Seems fine. Check if you have linked the packages properly on Android/iOS. If you are still facing issue, try to get help on official package repository: github.com/oblador/react-native-vector-icons.


Lang - Czech

Hello,
I translated strings to Czech language

Please rebase this PR on the master branch. The dev branch is only for experimental features or bug fixes, so it shall not be used by PRs unless it's about a specific feature or bug fix (this PR is for a translation).


Make Guids be byte[] instead.

This is way simpler. No string hacks. No custom serialization code. No tests for the custom serialization code. No extra System references. Just a plain old byte[] with a EqualityComparer for the dictionaries. Less code, less problems. Faster, more memory efficient, easier to modify Guid size. For my project, all I have to do is use 2-byte-long byte arrays. Everyone's happy!
Note: Did not regenerate Weaver files, I'm leaving this to Lymdun's PR. Do not merge this in until Lymdun's PR is accepted or declined. I will then commit in the built weaver files.

sorry but I'll have to close this.
assetId is a guid and Unity even has 'Guid' in that function name where we get them: https://docs.unity3d.com/ScriptReference/AssetDatabase.AssetPathToGUID.html
this is just reinventing Guid. my brain isn't big enough for that complicated stuff :)

@vis2k I urge you to reconsider. In what way is this more complicated?

@rodolphito  please take a look at #522


GithubBrowserSample - Handling Network bound resource from different fragment

I'm facing a problem adopting the mechanism of network bound resource. To explain my problem I'll take the UserRepository class that implements the network bound resource abstract class.
I have a fragment that needs to access user data in order to display a list of users. Figure this is the first time I open the application and figure the logic of fetching is: fetch from the network if data is null. Now since this is the first time I run my app, data fetch is started. Connection is not very good so the fetch needs time. Now figure I open another fragment that, again, uses the same data: the list of users. The ViewModel of this second fragment call again UserRepository. getUsers...Since the fetch of data of the first fragment is still in progress, again the shouldFetch return true (local data is still null) a new data fetch is triggered. The problem is: I don't know the state of the previous call at the same source of data. How can be handled this using the mechanism of network bound resource?

This is the approach I tried to use: in the repository layer, I declared a StateFlow variable which represents the state of the fetchUsers method. In this way before trigger a users fetch I can directly observe the state of this variable and react to it. If a loading is in progress I can easily detect it from anywhere and show a progress bar. When network call is end, the variable is updated and since I'm collecting it I change the state of my UI. Is this a proper way to handle this situation?


refactor(app): add loading state to close protocol modal

Overview
this addresses the issue where the UI displays a previously loaded protocol state after clicking to close a protocol, particularly on a physical robot with slower HTTP response times. A "Closing..." loading state is added to the ConfirmExitProtocolUploadModal, and some conditions for rendering changed.
While investigating this I also noted some stale cache data returned from useCurrentRunId and useProtocolQuery after dismissing a run - we should be sure to remove the runs data and protocol data from the react-query cache when dismissing a run: queryClient.removeQueries([host, 'runs']) and queryClient.removeQueries([host, 'protocols', protocolId]). Stale query cache data could be the root cause of other rendering bugs we've been seeing, like in https://github.com/Opentrons/opentrons/pull/9091

closes #9107
Changelog

Adds a loading state to the close protocol modal

Review requests
confirm that "Closing..." modal loading state exists until the protocol upload empty state renders from both protocol and run tabs (especially on robot)
Risk assessment
low

A lot of the targetted improvements in this PR have been addressed by other. I'm closing it for now until further performance updates and handling of finishing/stop-requested status is incorporated


No How To Play Instructions

Need to add How To Play instructions to README.md after project completion.

How To Player instructions are now added.


#129 Expose product name/version from FinTs constructor

This closes #129 and replaces #97. See https://www.hbci-zka.de/register/prod_register.htm for context.
This is a breaking change and needs a major version bump, plus a hint to users that they need to register and pass two more parameters to the constructor.

Does this work for you, @Philipp91? I included your code into my local testing instance and added the product name in the constructor, but it doesn't seem to make any difference. Unfortunately I didn't find any information about how to enable debugging output... :-(

This repository is dead, see here: https://github.com/nemiah/phpFinTS

Thanks a lot. Unfortunately it seems that my Sparkasse does no longer support non-PSD2 requests anyway, so it's a dead end for me. :-( But still, thanks for pointing me in the right direction!


[NEW FEATURE] - Add proposal activity to profile page

Briefly describe the feature.
Add proposal activity to profile page
Which problem is this feature trying to solve?
Would be great if we can add proposal activity (proposal creation) to profile page https://snapshot.org/#/profile/0x24F15402C6Bb870554489b2fd2049A85d75B982f
Also timestamps of the activity
What is the expected solution?

[ ] Display proposal creation activity on the profile page (similar to votes)
[ ] Display timestamps on each activity

How do you currently handle this problem?
No response
Anything else you'd like to mention?
No response

We need an activities table on the hub so we can query activities with a single query. This is because we have an infinite scroll for activities list and that wouldn't work well with two separate queries one for votes and one for proposals.

Reopened this so we can keep track of this,
I think it would be hard to maintain a separate table. we should try to add a new query to get data from two tables
Alternatively, I think we can have two separate sections for the proposals activity and votes activity with Next and Previous buttons instead of infinite scrolling

@ChaituVR can you create an issue for this on the HUB. 🙏

🤔 What else do we need on the hub to achieve this?

@ChaituVR didn't see that you already created the issue. Sorry!


ideas / work towards a new shogun user guide

See https://github.com/karlnapf/shogun_manual
Any contributions welcome

I would like to work on this.How do I start?

@souravsingh, I'd say get the system running locally as described in the readme in the link in the first comment. Have a look at how the examples already there work and then start creating new ones showcasing Shogun features. For the new ones, draw inspiration from the already existing Shogun examples.

@souravsingh hi thanks for being interested in this.
 We will push this to the development branch within the next week. You can then have a look and help us populating and documenting it. There is a lot of very easy tasks that have to be done. You will see.
Ping me next week if the thing is not there by then.

@karlnapf Is the prototype manual ready?

Ping @karlnapf

Sorry for the delay, I was away.
I just deleted my demo repo mentioned above.
We have a growing manual (aka cookbook) in develop now, here is the latest version:
Note this is all executable code which is part of our test build, it is pretty easy to contribute new entries to this. We also want to pimp the visuals -- any help welcome. I close the issue for now


[#5785] Add RequestAwareRowMapper

[#5785] Add RequestAwareRowMapper

Codecov Report

Merging #5 into #feature/#5785 will increase coverage by 0.03%.
The diff coverage is 19.35%.

@@                Coverage Diff                 @@
##           #feature/#5785       #5      +/-   ##
==================================================
+ Coverage           40.69%   40.73%   +0.03%
==================================================
  Files                2926     2928       +2
  Lines               87918    87913       -5
  Branches            11567    11565       -2
==================================================
+ Hits                35782    35808      +26
+ Misses              49039    49015      -24
+ Partials             3097     3090       -7

Impacted Files
Coverage Δ

...avercorp/pinpoint/common/hbase/HbaseTemplate2.java
2.61% <ø> (+0.09%)
:arrow_up:

...ercorp/pinpoint/web/dao/hbase/HbaseTraceDaoV2.java
0% <0%> (ø)
:arrow_up:

.../hbase/rowmapper/RequestAwareDynamicRowMapper.java
0% <0%> (ø)

.../hbase/rowmapper/RequestAwareRowMapperAdaptor.java
0% <0%> (ø)

...vercorp/pinpoint/web/mapper/TargetSpanDecoder.java
68% <100%> (ø)
:arrow_up:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
82.92% <0%> (-2.44%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70% <0%> (ø)
:arrow_up:

...point/rpc/client/DefaultPinpointClientHandler.java
72.4% <0%> (+0.32%)
:arrow_up:

... and 8 more

Continue to review full report at Codecov.

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


update homepage view/drop defaultCurrency

I want to merge this change because...

it displays on homepage information per channel in:

Sales

Orders

Top Products

it removes unneeded defaultCurrency and currencySymbol props

it removes money spent filter on customer view

PR intended to be tested with API branch:
Screenshots

Pull Request Checklist

[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Translated strings are extracted.
[ ] Number of API calls is optimized.
[ ] The changes are tested.
[ ] Data-test are added for new elements.
[ ] Type definitions are up to date.
[ ] Changes are mentioned in the changelog.

Test environment config

API_URI=https://master.staging.saleor.rocks/graphql/

Task linked: SALEOR-1456 Drop defaultCurrency in frontend

Task linked: SALEOR-1411 Implement new homepage view for multichannel homeview in dashborad


chore: update-bad-theme should only run once.

Update bad theme migration should only run once.

/ok-to-test sha=1189b75

Cancelled ok-to-test because it wouldn't test for this code change


klever-model-registry  describe pod: secret "ormb" not found

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug
/kind feature

What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

Error: secret "ormb" not found
这么解决啊？？？？


Get results

The script baselines/get_results.py generates all figures and tables for the paper.
You can run it from a notebook too (so you can easily view all plots in one place). See example here:
https://gist.github.com/JamesOwers/04a877c4f0ab474ca1d4fd8f32e0110b. (Put that in the root dir and alter the config).

Ack, closing, this messes up my slurm branch


Factor out CameraEncoder, MicrophoneEncoder, and ScreenEncoder

[Another step towards #74]
Factored out CameraEncoder, MicrophoneEncoder, and ScreenEncoder
The only structural change is that previously there was a single bit destroy: Arc<AtomicBool> that would stop all encoding when it was set, but now each Encoder has its own. Previously the host.destroy() method would set that bit, but now it calls a .stop() method for each encoder.
Also:

Moved the transforms from model/mod.rs into model/encode/transform.rs since they're only used in model/encode.

Moved the wrappers from model/mod.rs into model/wrappers.rs just so that mod.rs isn't a mixed bag of submodule declarations and code definition.

Thanks for the contribution @ronen
I tested it out locally and it looks good to me! @darioalessandro can you take a look?

Wow !!! this is great!! I love how you moved all the model out of the host!!
looking now

I am sorry for taking this long! will review again by eod tomorrow July 9

I am sorry for taking this long! will review again by eod tomorrow July 9

July 9, but luckily you didn't specify a year :)
Just joking around, no rush.


[1.19.2 Forge] Unable to apply all 3 enchantments

The mod's GIFs show all 3 trident enchantments applied on a trident, yet I am unable to enchant a trident with all those enchantments in survival

cuz you need Merge Enchantments, sorry i didnt notice the description doesnt say anything about that, my bad


Drop file with mouse into drop zone WebUI - files does nothing

Drop file with mouse into drop zone WebUI - files does nothing.
Windows 7, firefox 45b2

I was unable to replicate under go-ipfs 0.3.11 with Windows 7 and FF 44.0.2.
Which go-ipfs version are you using?

1.5.5.
Seems after I add one file by pressing file button and choose file with chooser, drop zode start to work, and now it working.

Sorry for disturbance.

Cool, if you find any other issues related to WebUI,
https://github.com/ipfs/webui/issues may be a better place :)

Oh! Thank you. It's not clean webui inside addon not part of addon.


JSDoc should do more to interpret IIFEs

JSDoc does not detect functions created by compiling CoffeeScript functions with proper JSDoc comments. Here is a simple example:
x = 1

###*
   * Funtion to ...
###
a = () ->
  1

x = 1 or some other code had to be before the comment, otherwise CoffeeScript assigns the comment to the file outer anonymous function and not the inner function.
After compilation CoffeeScript generates the following JavaScript code:
// Generated by CoffeeScript 1.6.3
(function() {
  var a, x;

  x = 1;

  /**
     * Funtion to ...
  */

  a = function() {
    return 1;
  };

}).call(this);

On this code, JSDoc does not detect the a function.
If the var a, x; line is removed, JSDoc works fine.

I was going to create a separate issue but since my problem is related to IIFEs and this issue is titled "do more to interpret IIFEs" I guess my comment fits here. I'm using an IIFE in a CommonJS module to be able assign the public interface to either "module.exports" or the "window" object, so that a node.js module can be included in a <script> tag in a browser environment and it works there as well. Here is the example code
/**
 * This is a description
 *
 *  @module someModule
 */

(function (exports) {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    exports.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

This works as expected because the exports object is passed into the IIFE.
This example doesn't work, however. It looks like the exports object passed into the IIFE will only be recognized by JSDoc if it's actually named "exports". JSDoc doesn't document the public interface if it's attached to the object passed into the IIFE and that object is NOT named "exports", even the the "ex" argument is just the module.exports object being passed in. I'll show that in this example, which doesn't work
/**
 * This is a description
 *
 *  @module someModule
 */

(function (ex) {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    ex.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

This example does work though, when the exports object isn't passed in
/**
 * This is a description
 *
 *  @module someModule
 */

(function () {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    exports.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

@ejfrancis This example in the docs shows how to document your second example.

I've tried that and cant' get it to work. Those docs are for AMD and I'm using it within CommonJs. I couldn't tell if using the @exports tag still required the @module tag so I tried these three permutations and none worked
A with @module and @exports using different names
/**
 * This is a description
 *
 *  @module someModule
 */

(function (
    /**
     * Utility functions for jackets.
     * @exports someModuleExports
     */
    ex) {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    ex.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

B with @module and @exports using the same name
/**
 * This is a description
 *
 *  @module someModule
 */

(function (
    /**
     * Utility functions for jackets.
     * @exports someModule
     */
    ex) {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    ex.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

C with no @module tag
(function (
    /**
     * Utility functions for jackets.
     * @exports someModule
     */
    ex) {

    /**
     *  A method
     * @returns {Boolean}
     * @static
     */
    ex.isSomething = function() {
        return true;
    };

})(
    typeof exports === 'undefined'? window: exports
);

C with no @module tag looks perfect to me. What part of the output are you unhappy with?

@hegemonic the docs aren't even generated for the module at all with C. without the @module tag it's just the README file that's generated into the index.html file. With A and B it generates the page for the module, but only lists the module name and description, doesn't have docs for any public methods/properties. I just tried each again in an empty project with only the module file and a README and confirm this behavior

Is this a further symptom of this issue, or am I doing something wrong?
/**
 * Collection of functions for controlling the home page
 * @module home
 */

(function(){
  ...
     /**
     * Collection of functions that control the name panel
     * @namespace name
     */
     var name = {
        /**
         * Update user's name (name.update)
         * @method update
         * @memberof name
         * @param {Event} - event provided by JS
         */
        update: function updateName(event){
            ...
})();

This seems perfectly in line with the documentation:
"Using the @namespace tag for virtual comments"
/**
 * A namespace.
 * @namespace MyNamespace
 */

/**
 * A function in MyNamespace (MyNamespace.myFunction).
 * @function myFunction
 * @memberof MyNamespace
 */


Upgrade Operator-SDK to v1.27

Requirement
We would like to update k8s apis.
Problem
There are a few broken

https://github.com/jaegertracing/jaeger-operator/pull/2152
https://github.com/jaegertracing/jaeger-operator/pull/2154
https://github.com/jaegertracing/jaeger-operator/pull/2160
https://github.com/jaegertracing/jaeger-operator/pull/2168
https://github.com/jaegertracing/jaeger-operator/pull/2171

Proposal
Updating Operator-sdk to the latest version.
Open questions
No response

I can do it


Incorrect definitions for properties in ContextSchema type from Tapi.swagger.

We found incorrect definitions for properties in ContextSchema type from Tapi.swagger.
No specific items $ref for ContextSchema properties. Only one property(_serviceEndPoint) contain correct $ref with concrete type: $ref: '#/definitions/ServiceEndPointSchema'.
Other $ref in properties contain common type: $ref: '#/definitions/ResourceSpec' OR $ref: '#/definitions/ServiceSpec'.
This is problem for generate correct code with clear object references(dependencies).
Part of code with ContextSchema from Tapi.swagger:
  ContextSchema:
    description: >-
      The Network Control Domain (NCD) object class represents the scope of
      control that a particular SDN controller has with respect to a particular
      network, (i.e., encompassing a designated set of interconnected (virtual)
      network elements).
    allOf:
      - $ref: '#/definitions/GlobalClass'
      - properties:
          _connection:
            items:
              $ref: '#/definitions/ResourceSpec'
            type: array
            description: none
            x-key: uuid
          _notification:
            items:
              $ref: '#/definitions/ResourceSpec'
            type: array
            description: none
            x-key: uuid
          _vnwService:
            items:
              $ref: '#/definitions/ServiceSpec'
            type: array
            description: none
            x-key: uuid
          _topology:
            items:
              $ref: '#/definitions/ResourceSpec'
            type: array
            description: none
            x-key: uuid
          _notifSubscription:
            items:
              $ref: '#/definitions/ServiceSpec'
            type: array
            description: none
            x-key: uuid
          _serviceEndPoint:
            items:
              $ref: '#/definitions/ServiceEndPointSchema'
            x-key: uuid
            type: array
            description: none
          _pathCompService:
            items:
              $ref: '#/definitions/ServiceSpec'
            type: array
            description: none
            x-key: uuid
          _nwTopologyService:
            description: none
            $ref: '#/definitions/ServiceSpec'
          _path:
            items:
              $ref: '#/definitions/ResourceSpec'
            type: array
            description: none
            x-key: uuid
          _connectivityService:
            items:
              $ref: '#/definitions/ServiceSpec'
            type: array
            description: none
            x-key: uuid

I don't have a clear solution for this. TapiTopology for example extends _topology, fullfilling the object. Swagger is not intended for various files, so I don't know how to represent this.

Actually this is NOT a problem, but is the basis for the design of dynamic APIs to make T-API fully extendable (for example, to able another standards organization to augment/extend a TAPI Service or Resource).
It also allows modularization of TAPI into specific modules per functionality, but avoid the cross/circular references (case where the base module has references to the functionality modules and each of the functionality module has to reference the base module).

@karthik-sethuraman
Thank you!
We resolve this problem on our side.


Show Create View generates invalid view name.

When the user provide fully qualified view name in show create queries, generated result will output the wrong view name. For example
show create view hive.a.b

will result in
create view b.a.hive

This is due to the following lines, which assume table name is parts[0], while in fact it can be parts[1] or parts[2] (the last value) depending on the user's provided view name.
https://github.com/prestosql/presto/blob/b7aa1efa45fc87be03ddb24377b44415aa0d8e22/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java#L434

Hi, thank you for reporting this issue. Are you interested in creating the PR?
SHOW CREATE VIEW is tested in below place. It currently passes since the catalog and schema are not specified.
https://github.com/prestosql/presto/blob/c31287fefc865ef539f7809f1da9d9b9bca2286a/presto-tests/src/main/java/io/prestosql/tests/AbstractTestDistributedQueries.java#L748

Sorry, I don't have time to create the PR for this now.

@ebyhr can I raise a PR for the same. Sorry it was my mistake I didn’t reverse the list so it end up like that.

@kien-truong Okay. Your investigation is really helpful. We appreciated it.
@Praveen2112 Sure, go ahead.


Regex mathing in Redshift

One of the functions that Redshift has and Postgres hasn't is REGEXP_MATCHES (see https://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-functions.html).
But when calling fn.RegexpLike, we get SELECT REGEXP_MATCHES, which doesn't work.
Can you please replace it with something like REGEXP_SUBSTR?

Hi @GilZ
Some platforms support REGEXP_LIKE, so we have added that to the functions file. We can always add a REGEXP_SUBSTR function, but in the meantime, you can just inherit from the Function class and create your own RegexpSubstr function e.g.
class RegexpSubStr(Function):
    def __init__(self, field, alias=None):
        super(RegexpSubStr, self).__init__('REGEXP_SUBSTR', field, alias=alias)


chore: document order of location columns in crosswalk.md and doctrings for crosswalk_spatial

Did not update crosswalk.md yet


Add pdf generation controller

Added documentation:
https://github.com/Davidmattei/EMSClientHelperBundle/blob/pdf-generation/Resources/doc/routing.md


Great work

I would like to link up SkyDeamon to my Macbook. I am running MSFS2020. fs2ff works perfect on my PC, but having it on the laptop next to the PC would be great. I tried to enter the IP to my Mac in the setup, but i was not able to connect.

Resolved.


Fix console appender

This previously failed to log anything to the console as
LogstashEncoder hadn't been started.

I'm going to close this because it's superceeded by #3.


Implementing Groups of Groups 😁

Its not clear how to render Groups of Groups:
final form = FormGroup({   'personal': FormGroup({     'name': FormControl<String>(validators: [Validators.required]),     'email': FormControl<String>(validators: [Validators.required]),   }),   'phone': FormGroup({     'phoneNumber': FormControl<String>(validators: [Validators.required]),     'countryIso': FormControl<String>(validators: [Validators.required]),   }),   'address': FormGroup({     'street': FormControl<String>(validators: [Validators.required]),     'city': FormControl<String>(validators: [Validators.required]),     'zip': FormControl<String>(validators: [Validators.required]),   }), });
Im using
ReactiveTextField(formControlName: 'personal', ),
but throws error:
Expected a value of type 'FormControl<dynamic>', but got one of type 'FormGroup'

Hi @huephase,
Thanks for using Reactive Forms and for the issue.
As I see in your example, you have a several child groups of the principal form, that's good. Now you probably want to bind a ReactiveTextField to the name of the person, so you can use the sintax:
ReactiveTextField(formControlName: 'personal.name', ),

The above code is in case you have for example a ReactiveForm (or a ReactiveFormBuilder) and as a child you have this ReactiveTextField:
ReactiveForm(
   formGroup: form,
   child: Column(children: [
      ReactiveTextField(
         formControlName: 'personal.name',
      ),
   ]),
),

But you can also have nested ReactiveForm widgets:
ReactiveForm(
   formGroup: form,
   child: Column(children: [
      ReactiveForm(
         formGroup: form.control('personal') as FormGroup,
            child: Column(children: [
               ReactiveTextField(
                  formControlName: 'name',
               ),
            ]),
         ),
   ]),
),

Excellent! much appreciated!


Show receipts in tables, fixes #192

Below is what I came up to with styling
I think it is pretty readable like that


pyrdp.core not found

when ran returns error
Traceback (most recent call last):
  File "/home/user/CVE-2019-0708/exploit.py", line 10, in <module>
    from pyrdp.core.ssl import ClientTLSContext
ModuleNotFoundError: No module named 'pyrdp.core'

Same issue even after running that command

Same issue even after running that command. Tried python3.10 and python3.11

try harder


[BUG] (Breaking) Credentials for GitHub data source get reset

This issue is in https://github.com/MicrosoftLearning/PL-300-Microsoft-Power-BI-Data-Analyst/blob/Main/Instructions/Labs/02-load-data-with-power-query-in-power-bi-desktop.md
The step is:

When the users go to the corresponding file the Edit Credentials window appears instead of the data preview. Instructions should be added for the attendees to click Edit Credentials and confirm Anonymous authentication:

The issue is reproducible in Skillable's ALH environment.

@VitalyMCT thanks for the catch.
@afelix-95 please confirm.

@afelix-95 Can this please be patched up via an instruction (or VM) update? I have had several groups of attendees run into this issue this week.

A note was added to the lab instructions to cover this extra connection step.

Thanks @afelix-95 !


AttributeError: 'dict' object has no attribute 'scores'

What is your question?
Hello! I have an issue running COMET on Google Colab. I received the following error:
Predicting DataLoader 0: 100% 1/1 [00:00<00:00,  1.01it/s]
Traceback (most recent call last):
  File "/content/my_script.py", line 12, in <module>
    model.predict(data, batch_size=1, gpus=0)[0]
  File "/content/theanoEnv/lib/python3.10/site-packages/comet/models/base.py", line 652, in predict
    scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
  File "/content/theanoEnv/lib/python3.10/site-packages/comet/models/base.py", line 652, in <listcomp>
    scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()
AttributeError: 'dict' object has no attribute 'scores'

Code
from comet import download_model, load_from_checkpoint

model = load_from_checkpoint(download_model("Unbabel/wmt22-comet-da"))
data = [
    {
        "src": "Ich esse gerne Pizza.",
        "mt": "I like to eat happy pizza.",
        "ref": "I like to eat pizza."
    },
]
model.predict(data, batch_size=1, gpus=0)[0]

What have you tried?
What's your environment?

OS: Linux (Google Colab)
Python: 3.10.12
Packaging: pip 23.3.1
Version:

unbabel-comet 2.2.0
torch 2.1.1
torchmetrics 0.10.3
pytorch-lightning 2.1.2
transformers 4.35.2

I have also tried it locally on macOS using a virtual environment on Python 3.9.0. I have got the same error message.

I have a same issue with you since yesterday

This can be fixed through this edit #185
Changed:
scores = torch.cat([pred.scores for pred in predictions], dim=0).tolist()

to:
scores = torch.cat([pred["scores"] for pred in predictions], dim=0).tolist()

Can we reopen this? The bug exists in released software (at least since 2.1.0), it should be fixed in a point release.


Support non-ES modules

To fix #103
HOC loadable can be used for any modules that webpack can import. I’ve tested it on my project and it works fine for both ES modules and modules containing markdown text.

@sergeysolovev thanks for the fix. I think non ES modules exposing a .default key in their default exports are very very uncommon especially in code splitting use-cases. So I consider this change like a compatibility improvement rather than a breaking change.

@neoziro thank you for the great lib!


Problem with the metric hostalive/RTA on Icinga

Hello,
I have an issue with the whisper files in ../carbon/whisper/icinga2/HOSTNAME/host/hostalive/perfdata/rta/value.wsp. Unlike the others metrics (for example CPU System), RTA metric doesn't display the value in the correct order. For example, an extract of the whisper file for CPU System metric :
Archive 0 info:
offset: 52
seconds per point: 60
points: 2880
retention: 172800
size: 34560
....
Archive 0 data:
0:<PHONE_NUMBER>, 68
1:<PHONE_NUMBER>, 65
2:<PHONE_NUMBER>, 65
3:<PHONE_NUMBER>, 60
4:<PHONE_NUMBER>, 60
5:<PHONE_NUMBER>, 62
6:<PHONE_NUMBER>, 68
7:<PHONE_NUMBER>, 65
8:<PHONE_NUMBER>, 66
9:<PHONE_NUMBER>, 65
As we can see, the difference between 2 metrics is 60 seconds. But for the RTA metric, it's different :
Archive 0 info:
offset: 52
seconds per point: 60
points: 2880
retention: 172800
size: 34560
....
Archive 0 data:
0:<PHONE_NUMBER>, 0.00063000000000000002612493554821071484
1:<PHONE_NUMBER>, 0.00058100000000000002770700335830156291
2:<PHONE_NUMBER>, 0.00046500000000000002702699175571865453
3:<PHONE_NUMBER>, 0.00039899999999999999486174906415669739
4:<PHONE_NUMBER>, 0.00051300000000000000113797860024078545
5:<PHONE_NUMBER>, 0.00053899999999999998259725408900067123
6:<PHONE_NUMBER>, 0.0011930000000000000499877916837476732
7:<PHONE_NUMBER>, 0.00042600000000000000062796989830360417
8:<PHONE_NUMBER>, 0.00074100000000000001369043767240896159
9:<PHONE_NUMBER>, 0.00052099999999999997875310686623606671
As we can see on the metric 0 and 1, the difference is not 60 seconds but 172860 seconds (retention period + seconds per point). But the different between the metric 0 and 2 is good because it's 60 x 2.
If someone could explain me why. It's the same issue on all the servers. But when i display the graphic on the Web interface, it's OK.
Thanks !

Whisper archives are cyclic - when it comes to the end it will start to overwrite first values. That's perfectly fine.


fix: don't update locked items

Don't allow editing of locked items
Issue: #7831

@therealrinku thanks for the fix! Great work :)
In addition to the extra check that's been added, perhaps, we shouldn't be showing the properties panel at all when a locked element is selected via right clicks. What do you reckon, @dwelle?


Gitbook not rendering @dev properly

When using gitbook with dodoc, it seems the @dev is rendered improperly. For example:
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

creates:
:::note Details Returns the address of the current owner.
:::

Tried with /// instead of /* */ and still no dice.

Also using the same docusaurus.sql as Primitive:
---
description: {{@if (it.title)}}{{it.title}}{{/if}}

---

{{@if (it.name)}}# {{it.name}}.sol{{/if}}

{{@if (it.notice)}}{{it.notice}}{{/if}}

{{@if (it.details)}}
:::note Details
{{it.details}}

:::
{{/if}}

{{@if (Object.keys(it.methods).length > 0)}}
## Methods

{{@foreach(it.methods) => key, val}}
### {{key}}

{{@if (val.notice)}}{{val.notice}}{{/if}}

solidity title="Solidity"
{{val.code}}

{{@if (val.details)}}
:::note Details
{{val.details}}

:::
{{/if}}

{{@if (Object.keys(val.inputs).length > 0)}}
#### Parameters

| Name | Type | Description |
|---|---|---|
{{@foreach(val.inputs) => key, val}}
| {{key}} | {{val.type}} | {{val.description}}

{{/foreach}}
{{/if}}

{{@if (Object.keys(val.outputs).length > 0)}}
#### Returns

| Name | Type | Description |
|---|---|---|
{{@foreach(val.outputs) => key, val}}
| {{key}} | {{val.type}} | {{val.description}}

{{/foreach}}

{{/if}}
{{/foreach}}

{{/if}}

{{@if (Object.keys(it.events).length > 0)}}
## Events

{{@foreach(it.events) => key, val}}
### {{key}}

{{@if (val.notice)}}{{val.notice}}{{/if}}

solidity title="Solidity"
{{val.code}}

{{@if (val.details)}}
:::note Details
{{val.details}}

:::
{{/if}}

{{@if (Object.keys(val.inputs).length > 0)}}
#### Parameters

| Name | Type | Description |
|---|---|---|
{{@foreach(val.inputs) => key, val}}
| {{key}} {{@if (val.indexed)}}`indexed`{{/if}} | {{val.type}} | {{val.description}} |
{{/foreach}}
{{/if}}

{{/foreach}}

{{/if}}

{{@if (Object.keys(it.errors).length > 0)}}
## Errors

{{@foreach(it.errors) => key, val}}
### {{key}}

{{@if (val.notice)}}{{val.notice}}{{/if}}

solidity title="Solidity"
{{val.code}}

{{@if (val.details)}}
:::note Details
{{val.details}}

:::
{{/if}}

{{@if (Object.keys(val.inputs).length > 0)}}
#### Parameters

| Name | Type | Description |
|---|---|---|
{{@foreach(val.inputs) => key, val}}
| {{key}} | {{val.type}} | {{val.description}} |
{{/foreach}}
{{/if}}

{{/foreach}}

{{/if}}

Any idea how to work around this?

Hey, thanks for reporting this issue!
I think the problem is coming from the missing | in some arrays of the template. I'm going to publish a new version of Dodoc soon, but if you don't want to wait you can either:

Fix the error manually by being sure that each line containing | {{key}} | {{val.type}} | {{val.description}} | ends with a |
OR install the develop package using npm install @primitivefi/hardhat-dodoc@develop or yarn add @primitivefi/hardhat-dodoc@develop

Just wanted to let you know that the issue currently persists for me after those steps and using the dev branch docusaurus.sqrl. Maybe some other issue?

Oh really? I'll check this out then, we are updating the Docusaurus template so that's an opportunity to solve potential issues.


Can't set system properties

Hi, I'm trying to set system properties in a task that uses your plugin. In other parts of my build.gradle, I can call the systemProperty method as follows:
bootRun {
  systemProperty 'spring.profiles.active', 'dev'
}

and then the properties from my application-dev.properties are loaded. When I try to call this method in a task with type: com.github.psxpaul.task.JavaExecFork, I get the error:
Could not find method systemProperty() for arguments [spring.profiles.active, dev] on task ':protractorServer' of type com.github.psxpaul.task.JavaExecFork.

Is there a way to  set this property, or am I missing something?

I have the same issue. For JavaExec we can pass system properties like this:
task task1(type: JavaExec) {
    main = "cucumber.api.cli.Main"
    classpath = sourceSets.test.output
    systemProperties = System.properties
}

But I can't do the same for JavaExecFork unfortunately:
task task2(type: JavaExecFork) {
    classpath = sourceSets.test.output
    main = 'com.test.Test'
    systemProperties = System.properties << exception!
}

It would be great if JavaExecFork supports systemProperties


bug with a w/out href results

test page
using arc toolkit => send dom to ARIA checker
returns only partial results

Summary
Details
Invalid roles
Back to the top
Element a has invalid role gridcell.

Missing required state
Back to the top
Role checkbox missing required state (aria-checked).

Expect full summary / that Any role is allowed on a w/out href

Fixed an uncaught exception error that was causing this issue.

seems there's still an issue with this one. bookmarklet returns same results for a with href.
a without href should allow for any role

Fixed logic for anchor without an href


cargo inserts an empty path in LD_LIBRARY_PATH

This causes lookup to check the working directory which is not good.
cc rust-lang/rust#42851

Introduced by "[784d3154cf084e6bbd49200d3e6e71df6c9cdca2] set dylib path correctly for target when running cargo test etc"  #4006
cc: @mcgoo @alexcrichton
test:
extern crate cargotest;
extern crate hamcrest;

use cargotest::support::{execs, project};
use hamcrest::assert_that;

#[test]
fn build_with_fake_libc_not_loading() {
    let p = project("foo")
        .file("Cargo.toml", r#"
            [package]
            name = "foo"
            version = "0.0.1"
            authors = []
        "#)
        .file("src/main.rs", r#"
            fn main() {}
        "#)
        .file("src/lib.rs", r#" "#)
        .file("libc.so.6", r#""#);

    assert_that(p.cargo_process("build"), execs().with_status(0));
}

#4006 added lines like this:
 search_path.push(self.host_dylib_path.iter().collect());

where search_path is a Vec<PathBuf> and self.host_dylib_path is an Option<PathBuf>.  If self.host_dylib_path is set to None then this will push an empty path into the search path.


WIP 184 Api returns different maturity values in module tree and resource search

Signed-off-by: Patrycja Miazek<EMAIL_ADDRESS>Remember to handle new values in html pages.
Fixed: #184

Could we also start removing references to FIBO as OV is supposed to become a universal tool? In the case of this PR this may mean renaming org.edmcouncil.spec.ontoviewer.core.ontology.data.handler.fibo package and all relevant classes there, e.g., FiboOntologyHandler.

I agree, I will change it.


Replace/unify "rel" with "type" in message schemas

I think we could streamline the message schema by removing the "rel" attribute from messages and replacing them with the "type" attribute. Sublinks would still operate as they do now, as sub-objects. A toplevel object with feed/ext/msg would, however, be a link with no "rel".
We have previously kept them separate so that the concept of a message type and a link type do not become muddled, but there are a number of messages in the beta software which are just links, and so it may be useful to blend the concept more and remove extra kludge.
Here are some current messages:
{ type: 'follow', feed: <>, rel: 'follows' }
{ type: 'follow', feed: <>, rel: 'unfollows' }
{ type: 'post', text: '...', repliesTo: { rel: 'replies-to', msg: <> }}

Here is how they could be replaced:
{ type: 'follow', feed: <> }
{ type: 'unfollow', feed: <> }
{ type: 'post', text: '...', repliesTo: { type: 'replies-to', msg: <> }}

I don't believe this change would introduce any semantic ambiguities, though it would be a breaking change.

This has evolved with https://github.com/ssbc/secure-scuttlebutt/issues/94


postgres error resolving dependencies.

I install dbeaver on a server without internet connection.
I copy the last postgres driver in %userprofile%.dbeaver-drivers
but when I want to connect to my database dbeaver try to download dependeis and so I have an error.
how can I use dbeaver without internet connection ?
Pascal

You don't need to do anything on file system.
Just open Driver Manager (in main menu Database), open PostgreSQL driver and add jar files in Libraries tab. That's it.


Add tuple support to SignalType

Allow tuples to be expressed by SignalType. This is needed in general to describe circuits and avoid the issue faces in #395 where a composite value is needed (ideally a pair of an 8-bit value and a boolean value) but @jadephilipoom had to instead construct a 9-bit value. We previously accomplished this using the Shape type which let us describe internal tupling structure with port-level tuples flattened. However, this stratification was removed as an unnecessary level of complexity but we have not yet "ported" types to the SignalType. We should either reject circuits which have top level tuple type ports or make up fresh names for each element (recursively).

I think we should also consider the possibility of using a sigma-type list (i.e. list {t : SignalType & signal t}) or an inductive heterogeneous list datatype. It depends how often we need this kind of multiple-input-signal structure; if we need it in a lot of places, then it might well be worth reintroducing the tuple structure at SignalType level. But if it's just for loops and maybe a few other places, the list strategy would be a good way to avoid having to reason about arbitrarily nested tuples.


PLAT-72739: Update Spottable lifecycle method

Checklist

[x] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[x] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
Updated the UNSAFE_componentWillReceiveProps lifecycle method to use getDerivedStateFromProps instead.
This new lifecycle doesn't allow access to the this.isFocused instance property, so focus-awareness is now moved to state. Since we don't want to re-render simply when a component gains focus, I've added a shouldComponentUpdate method to verify if any of the other state/prop values has changed and am allowing updates accordingly.

Confirmed by testing visually and monitoring the state values in React dev tools for both focused and focusedWhenDisabled (for a Picker).


Select with projection paramenter value as label

with as simple select:select :par the result field depends on the value, so for example if i run the query with as paramenter value a the result will be {'a':'a'} like i ran select 'a' what i expect instead is {'par':'a'}.

@tglman good catch! the obvious workaround is to use an alias:
select :par as par

This is fixed in v 3.0, now it returns :par as column name
Thanks
Luigi


Issue when getting cars

Hi
I installed TeslaMate and TeslaMateApi this evening, and it look like the setup is ok.
I can run Host:port/api/ping and Host:port/globalsettings successfully
However, running anything with "cars" in the api request returns the following error in the log.
Example from Host:Port/api/v1/cars
2021/12/21 21:51:17.732459 sql: Scan error on column index 3, name "model": converting NULL to string is unsupported
Please let me know if this is a known issue and what i can do to fix this. None of your error messages is related to this, so i expect that it relates to some database entity types.
Regards.
Anders Bye Wang

Hi again
I just looked in the sql-database for teslamate, and it was due to inconsistent data there. The issue has been fixed now.


merge package template from Kronos-Tools/npm-package-template

package.json

chore(scripts): update semantic-release@semantic-release from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(engines): update<EMAIL_ADDRESS>from template

.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 54.206% when pulling 4bb922aa2baf2b47cb0e103bd1717dd55d7e33a7 on template-sync-1 into 66b36dc5173c90bf7ce1565c3b6cafc4f266928c on master.


private nuget feed with authorization

Hi!
Can one somehow see packages from nuget private feed in nuget package manager GUI?
I've added custom source with user\pass to nuget.config, added this source via nuget sources add, via dotnet nuget sources add, added the url in npm gui settings, but tha packages are not shown.. Is there a way to see them?

Hi,
Yes, you can set your private repo.
check the #15

thanks a lot, i'll try that on monday and close the issue if it helps!

tried that but did not succeed =(
there is source https://nuget.pkg.github.com/MYCOMPANY/index.json in ~/.nuget.Nuget/nuget.config with username and password
vs code settings:
"nugetpackagemanagergui.nuget.searchPackage.urls": [
    "https://azuresearch-usnc.nuget.org/query",
    "https://nuget.pkg.github.com/MYCOMPANY/query"
],
"nugetpackagemanagergui.nuget.packageVersionsUrls": [
    "https://api.nuget.org/v3-flatcontainer/{{packageName}}/index.json",
    "https://nuget.pkg.github.com/MYCOMPANY/download/{{packageName}}/index.json"
],

i've tested those urls and they return the same data as nuget ones
but when I try to search something in npm gui i get
[Extension Host] [Nuget Package Manager GUI => ERROR!!!][Request to url:https://nuget.pkg.github.com/MYCOMPANY/query?q=PACKAG&prerelease=false&semVerLevel=2.0.0&skip=0&take=10][timeout:9000][proxy is active:false][result:]

the same url opens in browser correctly
i've even added source :https://nuget.pkg.github.com/MYCOMPANY/query in nuget config - same results..

I have to add the authorization header to the requests, I will change the extension setting :-)
https://github.com/aliasadidev/vscode-npm-gui/blob/85073e5e170eb56769a84b8bf92330e7fd382f1c/package.json#L55-L74
we need something like this
  nugetpackagemanagergui.nuget.repos": [
    {
       repoName:"GitHub", -- string
       searchUrl:"", -- string
       packageMetadataUrl:"", -- string
       authorization:{
            authType:"Basic Auth", -- enum
            username:"", -- string
            password:"" -- string
      }
   ]

Thank you again :+1:

We have the nuget.config pointing to Jfrog Artifactory on top level in the repo, which works for example in VS:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="ArtifactoryCloud" value="https://artifactory-rxxxxapp.azure.com/artifactory/api/nuget/xxx-nuget-dev" />
  </packageSources>
  <packageSourceCredentials>
    <ArtifactoryCloud>
        <add key="Username"<EMAIL_ADDRESS>/>
        <add key="ClearTextPassword" value="AKCp5xxxxWPUvKRJtRNHfxxxxxxxxnvWMR66bRAxXjgUH" />
      </ArtifactoryCloud>
  </packageSourceCredentials>
</configuration>

In the config I added:
"nugetpackagemanagergui.nuget.searchPackage.urls": [
	    "https://azuresearch-usnc.nuget.org/query",
	    "https://artifactory-robotics-eu1.westeurope.cloudapp.azure.com/artifactory/api/nuget/robotics-nuget-dev"
    ],
    "nugetpackagemanagergui.nuget.packageVersionsUrls": [
	    "https://api.nuget.org/v3-flatcontainer/{{packageName}}/index.json",
	    "https://artifactory-robotics-eu1.westeurope.cloudapp.azure.com/artifactory/api/nuget/robotics-nuget-dev"
    ]

However, when trying to load packages, it says
[An error occurred in the loading package versions (package:Stryker.JointReplacement.WebApps.Swagger)] request to https://artifactory-robotics-eu1.westeurope.cloudapp.azure.com/artifactory/api/nuget/robotics-nuget-dev failed, reason: certificate has expired

The certificate problem could be solved by setting "http.systemCertificates": false in the settings.
Also I adapted the settings in the following way. However, when I try to load versions now, nothing happens. When I remove private packages, it works just fine. I also tried to add base auth to that Urls, without success...
"nugetpackagemanagergui.nuget.searchPackage.urls": [
    "https://azuresearch-usnc.nuget.org/query",
    "https://artifactory-rxxxxapp.azure.com/artifactory/api/nuget/xxx-nuget-dev/query"
],
"nugetpackagemanagergui.nuget.packageVersionsUrls": [
    "https://api.nuget.org/v3-flatcontainer/{{packageName}}/index.json",
    "https://artifactory-rxxxxapp.azure.com/artifactory/api/nuget/xxx-nuget-dev/v3-flatcontainer/{{packageName}}/index.json"
]


Increase the version number for the development of the next release.

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #54   +/-   ##
=========================================
  Coverage     67.73%   67.73%
  Complexity      656      656
=========================================
  Files            45       45
  Lines          3292     3292
  Branches        466      466
=========================================
  Hits           2230     2230
  Misses          892      892
  Partials        170      170

Continue to review full report at Codecov.

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


cannot allocate memory

Gitea version (or commit ref): 1.0.1
Git version:<IP_ADDRESS>
Operating system: Centos7
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[x] SQLite

Description
I'm playing with Gitea on an AWS t2.micro instance (1G RAM) and running into memory issues. I attempted to push a moderate size repo up and it failed like so:
$ git push gitea Dev
Username for 'http://x.x.x.x': porjo
Password for<EMAIL_ADDRESS>
Counting objects: 58543, done.
Compressing objects: 100% (18180/18180), done.
Writing objects: 100% (58543/58543), 133.41 MiB | 37.76 MiB/s, done.
Total 58543 (delta 41293), reused 56418 (delta 39647)
error: RPC failed; result=22, HTTP code = 500
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
$

(the repo I was pushing is a total of 384MB on disk (including .git folder).)
Now when I use the Gitea web frontend I keep getting error 500 messages, and the Gitea console log keeps display 'cannot allocate memory' errors. e.g. I attempt to create a new repository via the web frontend, and see this is in the log file:
2017/02/08 03:09:22 [T] action.newRepoAction: porjo/iantest2
2017/02/08 03:09:22 [...routers/repo/repo.go:103 handleCreateError()] [E] CreatePost: initRepository: InitRepository: fork/exec /usr/bin/git: cannot allocate memory
[Macaron] 2017-02-08 03:09:22: Completed /repo/create 500 Internal Server Error in 5.075568ms
2017/02/08 03:09:22 [D] Template: status/500

Top shows Gitea consuming in excess of 400MB!
top - 03:25:49 up 35 min,  2 users,  load average: 0.00, 0.01, 0.05
Tasks: 110 total,   2 running, 108 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1015348 total,   210440 free,   520656 used,   284252 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   330864 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
 2292 root      20   0<PHONE_NUMBER>20  10332 S  0.0 44.3   0:01.19 gitea

I can understand why it might get upset about the initial push, but I would expect it to fail more gracefully. Why would it a) continue to consume so much memory b) not be able to allocate more memory for a simple operation (create repo) when there is still 210MB free!?
I've stopped and started Gitea and it has returned to normal. Attempting to push the same repo again causes the same issue.

please discuss in #218.


tarball md5sum mismatch

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.17. 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 2016.07.17

Before submitting an issue make sure you have:

[x ] At least skimmed through README and most notably 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

Description of your issue, suggested solution and other information
md5sum of tarball does not match asserted value.
was site hacked or did someone fail to update the MD5SUMS file?
$ md5sum youtube-dl-2016.07.17.tar.gz
71c180287c20c3c315b330d7585bf863  youtube-dl-2016.07.17.tar.gz
$ cat MD5SUMS
ebf075a7e1991fb5aa10633818b210c9  youtube-dl
c39840b6d9453e1ee62d47af22a319b7  youtube-dl.exe
a81f5ea60ba5e4cbcb3c532e6f0e1f7a  youtube-dl-2016.07.17.tar.gz

No, that's only you:
[dst@serpent ~]$ wget https://yt-dl.org/downloads/2016.07.17/youtube-dl-2016.07.17.tar.gz
--2016-07-21 21:48:24--  https://yt-dl.org/downloads/2016.07.17/youtube-dl-2016.07.17.tar.gz
Resolving yt-dl.org (yt-dl.org)... <IP_ADDRESS>, 2001:1a50:11:0:5f:8f:acaa:177
Connecting to yt-dl.org (yt-dl.org)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/rg3/youtube-dl/releases/download/2016.07.17/youtube-dl-2016.07.17.tar.gz [following]
--2016-07-21 21:48:25--  https://github.com/rg3/youtube-dl/releases/download/2016.07.17/youtube-dl-2016.07.17.tar.gz
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/1039520/ad4290cc-4c51-11e6-9b7a-d0fe48633a97.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160721%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160721T144826Z&X-Amz-Expires=300&X-Amz-Signature=556989f486939fe14983973df977d31ab4fd573f634b76792d8f5d022ff5657f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyoutube-dl-2016.07.17.tar.gz&response-content-type=application%2Foctet-stream [following]
--2016-07-21 21:48:26--  https://github-cloud.s3.amazonaws.com/releases/1039520/ad4290cc-4c51-11e6-9b7a-d0fe48633a97.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160721%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160721T144826Z&X-Amz-Expires=300&X-Amz-Signature=556989f486939fe14983973df977d31ab4fd573f634b76792d8f5d022ff5657f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyoutube-dl-2016.07.17.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... <IP_ADDRESS>
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2288138 (2.2M) [application/octet-stream]
Saving to: ‘youtube-dl-2016.07.17.tar.gz’

youtube-dl-2016.07.17.tar.gz            100%[=============================================================================>]   2.18M   402KB/s    in 6.8s

2016-07-21 21:48:33 (326 KB/s) - ‘youtube-dl-2016.07.17.tar.gz’ saved [2288138/2288138]

[dst@serpent ~]$ md5sum youtube-dl-2016.07.17.tar.gz
a81f5ea60ba5e4cbcb3c532e6f0e1f7a  youtube-dl-2016.07.17.tar.gz

i got it from this page
https://github.com/rg3/youtube-dl/releases/tag/2016.07.17/
which is referred to by the "Latest" link on https://yt-dl.org/
and i suggest it would be more accurate to have labeled my bug report as "cannot reproduce" rather than "closed".

It's not a valid bug report, so closed. Please check your file. If the problem is still, please show how did you download the file. Most likely redirection is not used.


Sentry did not raise any error msg / issue upon not being able to connect to Sentry API

How do you use Sentry?
Self-hosted/on-premise
Version
2.15.0
Steps to Reproduce
Simply having a connection issue between Sentry SDK and Sentry
In my case it's not having a proper route to Sentry
Expected Result
An error / warning message to show up
Actual Result
Nothing shows up at all to tell me that Sentry weren't able to connect. The only reason I figured out that there's a connectivity issue is when I triggered debug logging and urllib actually warned about it

Hey @XxTHKxX, thanks for writing in. In general, we're trying to limit the amount of non-debug-level logs as much as possible. The reason is that we don't want to spam folks' logs since an intermittent issue could end up burning through their logging quota/increasing their logging costs.
The trade-off is that it's harder to notice when something like this happens. In your case, was this an issue with the DSN not being set up correctly from the start or a temporary connection issue once everything was up and running?

Heya, so for me, it's a bit of a edge case, the Sentry self hosted machine is on a ipv6 only network, while the docker container hosting the service that are using sentry are misconfigured to only use ipv4, causing the connection issue, a reconfiguration of the docker default bridge network fixed the issue but it'd really be helpful to know of these connection issue as a proper error msg, instead of only a warning msg that urllib raised (and even that one requires me tuning up the logging level from default to logging.warning to even see! By default nothing is ever printed or raised, even after 4 connection failure)
Best regards
THK
On Oct 8, 2024, 3:18 PM +0700, Ivana Kellyer @.***>, wrote:

Hey @XxTHKxX, thanks for writing in. In general, we're trying to limit the amount of non-debug-level logs as much as possible. The reason is that we don't want to spam folks' logs since an intermittent issue could end up burning through their logging quota/increasing their logging costs.
The trade-off is that it's harder to notice when something like this happens. In your case, was this an issue with the DSN not being set up correctly from the start or a temporary connection issue once everything was up and running?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

There have been talks of an initial init-phase health check (for remote config) so that would also help cases like these. I'll keep this open as a backlog item for whenever we do that.


Is the 'g' operator working right?

If I try 'gC', and compare the result with https://en.wikipedia.org/wiki/Conway_polyhedron_notation#/media/File:Pentagonalicositetrahedronccw.jpg, they don't really look the same.
In polyhedronisme the pentagons aren't totally planar.
The same is true of 'pC' and https://en.wikipedia.org/wiki/Conway_polyhedron_notation#/media/File:Propellor_cube.png
I read what you wrote in https://github.com/levskaya/polyhedronisme/issues/2 about producing non-flat faces, and maybe this is the same problem.
I also tried 'eptI' to reproduce http://www.georgehart.com/sculpture/roads-untaken.html, but the result was far from convex, and hard to recognize as being the same figure.
However, putting in the convex spherical adjustment a couple of times, e.g. recipe 'AeA3ptI', gives a beautiful result.
So I guess I'm wondering, when you say "In the code I separated the topological operators from the geometrical operators, such that you can get meshes that have non-flat faces," do you mean that 'g' and 'p' are topological operators ... and that it's not always possible for them to produce flat faces? Are the wikipedia images I linked to above "cheating" somehow in that they have flat faces? Or is it easy to do in a single instance but hard to do in general?

Sorry for the confusion, the "g" and "p" and other topological operators just change the mesh in a very simple way to produce the new mesh, without relaxing the resulting mesh to make it a convex polyhedron.  I did this mainly to allow for wackier non-traditional meshes that require some custom tweaking, which wouldn't be possible to achieve if I automatically enforced convexity with every operation.  To get the classical polyhedra, you just need to apply the "convexification" operator C (C[N] runs the C operator N times).  For instance:

instead of 'gC', try ' C300gC ', this builds the 'gC' mesh and then does 300 convex relaxation cycles to have it converge to the canonical gC polyhedron. (it's very fast to run the C operator, so this is fine)
instead of ' eptl ' if I do ' C300eC200pC200tI ' then I get a figure similar to George Hart's.

The 'A' operator does convexification as well but with a much more direct route that doesn't need as many iterations, however for some meshes it is highly unstable, so the slower, safer 'C' operator was provided as well to help guarantee convergence for some weirder meshes.  ('K' was an operator borrowed from older code that really should never be used as it's not stable.)
My apologies if these geometric operators weren't obvious - I was trying to allow for as much freedom as possible in controlling the final mesh result, as opposed to making just the traditional polyhedra easy to arrive at.  Just let me know if you have any other questions.

Thanks for the explanations ... this helps. C300gC and C300pC work great! I had tried the CN operator, but hadn't tried beyond about N=3. I guess that's why it didn't seem to have much effect! I wasn't sure whether "slower" meant that more iterations of C were required to get the job done, or that each iteration took more CPU time. Now I understand.
Regarding eptI, when I try C300eC200pC200tI, it's certainly recognizable (and correct, I don't doubt), but AeA3ptI looks better and more like George Hart's, with the faces being much more even in size. It's good to know about C, though, in case A blows up.
While I'm here let me say how much I appreciate this tool. I had been searching for some cross-platform (preferably web-based), interactive, free tool for experimenting with successive application of operators on polyhedra, especially one that would allow export of the geometry in an open format. I couldn't find one, and started building one. Then I stumbled across polyHédronisme. It's a huge timesaver and a Godsend. And it just goes to show that when something doesn't show up in the first pages of Google results, that doesn't mean it isn't there! :-)
If you're open to a pull request, I'd be happy to draft some elaborations to the explanatory text on the web page, that would help people like me be able to use the tool successfully, with less confusion.

Well, I'm very happy that you're getting so much use out of it.  I would happily accept any pull request that sought to clarify any of my ambiguous language!  The webpage text itself is just dead-standard static HTML.
I agree that when "A" works it tends to produce more pleasing symmetry than "C" - that's because the former uses spherical reciprocation to adjust the coordinates as opposed to iterative planarization.
Note that if you export geometry the absolute scale is set somewhat arbitrarily for small figurines for 3d printing, probably too small, you'll want to scale the models to suite whatever needs you have.  I should probably add a scale input for the export options.  Overall, there's a number of improvements that could be made to the code.  If I ever get enough free time I should really make a newer version of the web tool with a WebGL frontend.  I'm currently trying to finish a C++ implementation of some of the code for live animations and might one day backport some the opengl code to webgl.

I've forked the code and started some modification of index.html, but it looks like there are several differences between what's deployed at http://levskaya.github.io/polyhedronisme/ and what's in the master repo's HEAD. E.g. the former has the "more complicated, parameterized forms for k and n", and the latter doesn't. So I'm not sure whether I'm modifying the most recent version or something out of date. I'll still submit a pull request, but I hope I'm not tangling things up by modifying an older version.

Submitted pull request https://github.com/levskaya/polyhedronisme/pull/4

Hey - sorry about that.  The way you host static pages on github is to have a 'gh-pages' branch in your repo that is automatically served.  I must have edited the documentation in that branch without merging it back into master.  I accepted your pull request and merged in the old edits on the gh-pages branch to bring it all together.  (The two html files are now identical with the sole exception of the served version pointing to a minified version of the js files.)

Great - thanks. I'll go ahead and close this issue.
One thing I still notice is that the page says "a space-delimited series of polyhedral recipes," but when I try a series like "T C", the only result I see is that of the first recipe in the series. Not sure if this was a feature that was in planning stages and not yet implemented, or something got lost in merging, or what.


fix jessesquires/JSQMessagesViewController#701

fix #701

hey @weekwood - i didn't understand the extra changes made in your second commit.
however, i've push a fix. thanks for finding the right solution :+1:

@jessesquires it is workaround to find the visible cells in right order. make sure it is display or not


feat: use now-stable CStr literals

Description
This bumps nightly MSRV to the fresh 2023-12-09 in which CStr-literals have been stabilized and replaces the use of c_string with these literals. The two places where these were previously used for user-defined strings are now replaced with a stricter variant (compile-time validated local CStr creation).
Soundness
Unlike our ad-hoc c_string! macro, the literal ensures that there are no intermediates NUL which is a stricter guarantee.
Since c_string! now does not seem to have a valid use-case, it is removed (which is okay considering that it is a major release).
API design notice
It is worth mentioning that it is still unsound to accept non-validated CStr values as Flipper may have stricter string validity guarantees that just "byte sequence without ZSTs".
From this standpoint, we still may need a new (probably, procedural) macro like furi_str! or utf8_str! with a return-type more strict than CStr (yet still able to be no-alloc).
Thanks to @CertainLach for drawing my attention to this detail.

It is worth mentioning that it is still unsound to accept non-validated CStr values as Flipper may have stricter string validity guarantees that just "byte sequence without ZSTs".

What part specifically are you thinking might be unsound?
Currently I consider furi/core/string.h and m-string to be the source of truth defining the C FuriString contract (the C FuriString is thin wrapper around a heap-allocated m_string_t).
m-string has the following contract:

A m-string must not be NULL
A m-string's size must be identical to the strlen of the internal character buffer
A m-string must be NUL terminated
A m-string's size may not exceed its current capacity
If a m-string is stack-allocated, then it's capacity must not exceed that of the valid stack region for the string

A couple of consequences of this are:

A m-string can't contain any interior NULs (so no arbitrary binary data)
A m-string should always be a valid C-string

While an m-string may represent a UTF-8 encoded string, this is not guaranteed (see m_string_utf8_p).
That seems pretty much in-line with the contract of CStr.
If there are specific Flipper Zero APIs that require UTF-8 encoded strings, then we might want to introduce a new-type wrapper for FuriString with this stronger guarantee.
In the context of Rust-based programs, "unsound" specifically means that a "safe" function can be used to trigger behaviour that is considered undefined by the Rust language. Misusing a Flipper Zero API isn't necessarily enough to create unsound behaviour, even if it causes the Flipper Zero to crash, leak memory or lock up.

@dcoles, I've rebased the PR on master.
It seems that you are right about the relation between m-strings and FuriString, so I have removed the comment from FuriString trait implementation.
What may be the problem though are the graphical APIs which rely on the define of U8G2_WITH_UNICODE for which UTF-8 is actually a requirement:

U8G2_WITH_UNICODE defined

C-Code Strings must be UTF-8 encoded
Full support of all 65536 glyphs of the unicode basic multilingual plane
Up to 65536 glyphs of the font file can be used.

thus I think that we do need a separate type for such string (along with some macro-infra).
I am merging the PR now since there are no significant changes since your approval.

Hi @JarvisCraft,
Sounds good! Thanks for getting this merged in.


OCPBUGS-33786 - Fix SELinux issues in IBI when running outside of a container

Background / Context
https://github.com/openshift-kni/lifecycle-agent/commit/e20c260d00eb2c9b03a6b174151615b884c5c85f broke the ability to set unexisting selinux contexts to files introduced by https://github.com/openshift-kni/lifecycle-agent/commit/f26ae70d96640cf7b974b5d5ad23ee2db967d228
Solution / Feature Overview
Just change the script to install_exec_t context before running it
/cc @tsorya
/cc @donpenney

Lets have jira please

Lets have jira please

ACK
Jira ticket created and commit & PR updated to reflect the ticket

I hope we will find better way in future
/lgtm

/hold

Drastically changed the solution to a super simpler one! :)
/unhold

/approve


error: The following binaries use incompatible versions of Swift: only in release mode

Hello,
My build is not working in release mode while it is working in debug mode.
Can anyone help me regarding this issue.
The issue which I am getting is -
error: The following binaries use incompatible versions of Swift:
Thanks

Maybe you have different build settings for release and debug?

@dariuszseweryn No I am using same default settings, just updated the ble-plx to 9.0.1 version on xcode version 10.1 and OS version 10.14.

I'm also getting same issue. @harshjoshi096 Have you got Any solution?


Swap the places of the cancel and the save buttons in the "New Space" dialog box and wherever else applicable.

Its counterintuitive to have the cancel button to the right and the Save Space button to the left when most software puts such buttons in the opposite places, the cancel button to the left and the confirm button to the right. Make.md should also do this wherever possible.

Great suggestion, will address in next patch


Boostrap/Package: How to adapt for distribution-specific shared library names?

I'm trying to package justbuild for ArchLinux, linking against native shared libraries, provided by ArchLinux packages, as far as possible. After working around the other issues (#9, #10, #11, #12), I encountered the problem that the prebuild shared libraries, provided by the official ArchLinux packages, have completely different names than expected by the justbuild build. So, the linker arguments need to be adjusted accordingly. In addition, the "well-known" proto files, provided with the protobuf compiler, are located in /usr/include/google/protobuf instead of /usr/proto/google/protobuf on ArchLinux.
I patched the TARGET files in etc/import.prebuild to adjust for these differences. However, this resulted in a rather large patch and left me with the question, whether this is the expected way of solving this. Am I supposed to include these changes as patch file with my packaging recipe or is there another way?

Unfortunately, I don't know a better way. In the end, it is necessary that the tool know the correct linker flags. As the targets files are JSON, a programmatic rewrite (using tools like jq or a small script similar to the rewrtiting of the repos.json in bootstrap.py) might be another option—provided the needed information can be obtained easily via tools like pkg-config.
Concerning the large part of the patch that changes related to the different names of the CLI11 header files, I guess a TREE reference would be the right thing to do here. I'll prepare a patch.

Concerning the large part of the patch that changes related to the different names of the CLI11 header files, I guess a TREE reference would be the right thing to do here. I'll prepare a patch.

This is implemented in 1795974e6cc05b7f5edb07015dbd47e45b76fcef.

@mhthies I have just pushed our proposal for building against distribution-specific shared libraries to my private fork: https://github.com/oreiche/justbuild/tree/system-deps
In a nutshell, the compile/link flags for system libraries are obtained via pkg-config:

you can find the definitions in etc/imports.pkgconfig. There, the field "name" refers to the name of the package, in case ArchLinux uses different pkg-config file names
the default path for package lookup is LOCALBASE/share/pkgconfig and LOCALBASE/lib/pkgconfig. You can set additional paths by setting the env variable  PKG_CONFIG_PATH

As you probably already know, all our dependencies are defined in etc/repos.json. Luckily on Debian 12 and Ubuntu 22.04 all of them are packaged already, except:

the header-only library gsl-lite
the protocol buffers from google_apis and bazel_remote_apis.

(Note that the missing archives can also pre-fetched to a .distfiles directory, using bin/just-mr.py fetch <dep> -o .distfiles)
To bootstrap against system libraries (except the missing ones), run bin/bootstrap.py with:

PACKAGE=YES
LOCALBASE=/usr
NON_LOCAL_DEPS='["gsl-lite","google_apis","bazel_remote_apis"]'

The full process is demonstrated in this GitHub workflow: https://github.com/oreiche/justbuild/actions/runs/4680774041/jobs/8292529543
Please let us know what you think or if there is anything still missing. Many thanks!

This approach has now been implemented, with amended bootstrap test in 29b9761d1da1906f5b952d4f6ac168c74a446fa9. So I believe this issue is fixed: only the names for the top-level pkg-config files have to be changed, if they differ in a given distribution.
If any problems remain, please file a new issue with details of the problems occurring when building against packaged dependencies using pkg-config.


Add NOTICE file next to LICENSE

Copyright (c) 2015-Present CloudFoundry.org Foundation, Inc. All Rights Reserved.

This project contains software that is Copyright (c) 2012-2015 Pivotal Software, Inc.

This product is licensed to you under the Apache License, Version 2.0 (the "License").
You may not use this product except in compliance with the License.

This product may include a number of subcomponents with separate copyright notices
and license terms. Your use of these subcomponents is subject to the terms and
conditions of the subcomponent's license, as noted in the LICENSE file.

Done. See c1c11554afc1c5672ff97605023c32debd736418


Extract mutation layer out of BufferLayer

In this PR I basically moved splice from BufferLayer to MutationLayer (including its related specs). This new layer now correctly stores a patch when splice is called.
I'd like to point out the evident duplication between BufferLayer and MutationLayer: it seems like some code wants to be extracted there :art:. Since we're still fleshing out the basics, though, I might be speculating a bit over the design and, as a result, I didn't perform any refactoring. However, here's an idea to keep in mind. Basically, we may have a CombinedIterator which stores two (or even many) iterators with a priority, falling back to the next one when the current hasn't any available content. This would make really evident what BufferLayer's and MutationLayer's responsibilities are (that iteration code hides a bit the intent of those layers).
By the way, in order to complete this layer as described in our README specification, we still need to handle document saving. Since there are a few things which I am not sure of, I'll open a separate PR against this branch to implement it.
/cc: @nathansobo @maxbrunsfeld

Hey @as-cii. Really sorry about this but @maxbrunsfeld convinced me yesterday evening that we shouldn't separate these layers. The reasoning is that there's no need to cache content that you've mutated over the top of :grimacing:. Sorry for suggesting it but I think we're going to keep BufferLayer dealing with both concerns for now.

:cry:
Just kidding! :smile: No problem, I'll close this and update the README. Since you already agreed on removing the layer, I'll push the docs change directly on master.

Thanks @as-cii