Remove static linking for macos

Static linking isn't supported on macos.
Fix #5991

Maybe this should also include a reference to get more information on this limitation?

Actually the error would look like this right now:
macOS doesn't support static linking.For more information: https://developer.apple.com/library/content/qa/qa1118/_index.html (Exception)
  from ???
  from /usr/share/crystal/src/crystal/system/unix/getrandom.cr:35:7 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:0:3 in 'main'
  from __libc_start_main
  from _start
  from ???

So it should be this I think:
{% if flag?(:darwin) %}
  raise "macOS doesn't support static linking." \
  " For more information see: https://developer.apple.com/library/content/qa/qa1118/_index.html"
{% else %}
  compiler.static = true
{% end %}

And I don't like the idea of flat-out forbidding people to static link on macos. It seems possible to me to create a toolchain on macos which is capable of static linking.

What about a warning?

We can put it in a rescue block that prints this info when the linking fails on macOS?

Note: failed spec is unrelated (cannot allocate memory)

nvm let's just print an information when using --static on macOS, whether the linking fails or not after.

@j8r it's still inside the rescue block

Rebased on master hoping to resolve the macos error related to yaml, but the fix isn't merged as I'm writing :sweat_smile:

A welcome alternative to compiler notifications would be expanding the pretty much meaningless wiki page on Static Linking.

Can't we remove static linking altogether? Is anyone statically linking everything, like libpq, gc, pcre, openssl, etc., and using that single executable anywhere?

Some people prefer statically linked binaries. It can have benefits over dynamic libraries. And it's not even always about linking everything  statically, maybe just some dependencies that are tricky to get the right version, or at all on the target platform etc. Obviously, it has it's pros and cons, but there are strong use cases. The only trouble is, that it doesn't really work on most platforms...
But it does work on Alpine Linux. Why remove that? I don' think there is any real benefit from that. I really think that compiler feature should stay. People are often asking about it, so there is really some interest.
I don't know much about actual uses, but the compiler itself is statically linked on linux x64 (allthough it's more complicated than --static).

I prefer static because deployment

@asterite Yes, but I'm even more convinced this should really be documented first (see https://github.com/crystal-lang/crystal/pull/6110#issuecomment-404645650).
Then we can discuss if there should also be a compiler message. That's the order of priorities because a) documentation change propagates instantly, b) maybe proper documentation is all people are missing and c) a compiler message should point to the docs for more information.

Maybe change it to --static-that-only-works-on-apline-not-true-but-thats-what-we-need-to-convince-you?

or more realistically, -Dstatic.
Or just stop documenting it at all in the docs. I don't know why we did because so few people should be using it.
There's a reason that it was Go that popularized static linking, and no other language before it. And the reason is that only Go makes static linking sane to do. Lets bury this option in --help and just fix the docs to not mention it.

@RX14 I don't think removing documentation is a wise choice. People will find it anyway on other websites etc. So it better should be properly explained what the limitations are and how it can be used.

https://github.com/crystal-lang/crystal-book/pull/260

Printing more information to the STDOUT doens't hurt, but do we print a link to the Crystal's wiki, Crystal's docs or the official Apple docs?
Another option is to print a link to https://github.com/crystal-lang/crystal/wiki/Static-Linking or https://crystal-lang.org/docs/using_the_compiler/#creating-a-statically-linked-executable whenever we use --static.

We should close this now the doc fix has been merged. If we see more issues, we can reopen.

Was this added to the crystal binary? It's not enough for it to be in the docs, the binary should print an error itself. The whole point is to avoid a useless websearch.

But there is no error. You can use --static to link static libraries on macOS. There are no static versions for some system libraries like libc available. But that doesn't stop you from linking other libraries statically. You just can't get a fully statically linked binary that way.


Feature/ipld upgrade

This feature makes IPLD the default DTO for object payloads, and adds some minor validation checks and better warnings.
As well as an updated readme with better documentation

Coverage decreased (-0.2%) to 92.676% when pulling d1d54ac246e6f15f96391cccc2f2be203c6e817a on feature/ipld-upgrade into 406457e9e7257961a9b88fb67f53f33e95a43ff4 on master.


Unable to add it Chrome. Please help

Sorry, but I don't understand.
Please, provide description of the issue and reopen.


Android on build :: variable conflict with phonegap-plugin-push :: duplicate string google_app_id after merge resources

Hello guys!
Thanks for the plugin!
I have this problem because phonegap-plugin-push and this plugins both use google_app_id variable input. This result in a conflict when i try to build android version of my app.
The google_app_id in the push plugin is used for the GCM and here is used for Firebase.
Would be possible/viable to change the name of the variable like fb_google_app_id
There is also the thing that google is not deprecating GCM in favor of FCM, i dont know if the App Ids will be the same, in that case would not need to change the variable id.
Ill still use GCM for a while so if you have no plan to update the variable name i guess the only option i have is to fork the project and do a find/replace
Thanks again!

This plugin replaces phonegap-plugin-push, they are not compatible with eachother.
The variable can not be changed since its required by Firebase. The easy solution would be to use only this plugin, but if you really need to keep GCM you can fork and remove the variable. You will run into issues though (duplicate dependencies, etc)

.The easy solution would be to use only this plugin

What do you mean by this?
I need to use both Firebase and ionic-push-notification which must use phonegap-plugin-push.
I am using Firebase only for database usage, and Ionic push notifications has been set up for whole API (which impossible to move user authentication to firebase)


[ci] modify CodeQL settings

For the last few days, we've observed 2 CI issues which happen on every build triggered by a merge to master... but which do not happen on PRs.

#6543
#6544

Comparing logs between those types of builds, I found only 1 seemingly-significant difference between them... on builds triggered by merges to master, tasks called Initialize CodeQL and Finalize CodeQL are automatically injected.
This proposes trying to prevent those tasks from being injected. If we do that and see a few builds on master succeed, we'll be able to say with confidence that the CodeQL jobs were the issue.
More context on how these jobs might cause the CI failures we've observed https://github.com/microsoft/LightGBM/issues/6544#issuecomment-2241487432
Notes for Reviewers
Docs on where this comes from or how to turn it off?
I couldn't really find any. "Configure GitHub Advanced Security for Azure DevOps" (Azure DevOps docs) describes how to enable this scanning, but does not talk about auto-injection.
The variables I'm proposing adding to .vsts-ci.yml were found in other large projects' configs:

dotnet/roslyn (link)
dotnet/sourcelink (link)
interpretml/interpret (link)
Microsoft/STL (link)
posit-dev/positron (link)

I'm not sure how those projects learned about them... I haven't yet found any documentation referencing them.
This is not the first time we've had to do something like this ... @StrikerRUS I remembered you something very similar back in November 2022: #5175.
How to test this
The only way to test this is to merge to master, as this behavior is only observable there.

I think this worked?
0 CodeQL tasks were injected, and all of the CI jobs passed on the first attempt (for the first time in a few weeks) 🎉
build link: https://dev.azure.com/lightgbm-ci/lightgbm-ci/_build/results?buildId=16698&view=logs&j=ea56812e-e7ae-55d0-6abc-4a217857fa9f
I strongly suspect that those CodeQL jobs were causing the issues we observed in #6453 and #6544.


DM-25839: Add package documentation for faro

This PR add documentation on faro design concepts, running faro, and adding a metric to faro.
Not yet ready for detailed review. Some remaining tasks.

Need to add detail on running faro
Need to update the package README file
Need to work on structure / page organization of documentation.
Need to understand why lsst.faro appears in the daily documentation build
https://pipelines.lsst.io/v/daily/modules/lsst.faro/index.html
but not the regular documentation build
https://pipelines.lsst.io/#python-modules

Most recent commits address multiple comments from initial review.
@jeffcarlin Help would be appreciated with the rc2_subset documentation if you have a moment.

Good to go

Good to go

Successful Jenkin's run: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/35314/pipeline


First step towards spatial (point) skill

This PR adds a new method to_geo_dataframe() to be able to easily export the aggregated skill (bias, rmse, ...) and get a spatial overview.
Since it is a geodataframe, it can be further exported to any vector format (e.g. GeoJSON) and further visualized with other GIS software.

And of course in a notebook session:

We could also plot with cartopy:
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature

# Assuming 'gdf' is your GeoDataFrame with 'y', 'x', and 'rmse' columns

# Set up the map
fig, ax = plt.subplots(figsize=(10, 5), subplot_kw={'projection': ccrs.PlateCarree()})
ax.add_feature(cfeature.LAND)
ax.add_feature(cfeature.COASTLINE)
ax.add_feature(cfeature.BORDERS, linestyle=':')  # Adding borders
ax.set_extent([gdf['x'].min() - 3, gdf['x'].max() + 3,
               gdf['y'].min() - 3, gdf['y'].max() + 3])

# Normalize the RMSE values for color mapping
rmse_normalized = (gdf['rmse'] - gdf['rmse'].min()) / (gdf['rmse'].max() - gdf['rmse'].min())

# Plot each station
scatter = ax.scatter(gdf['x'], gdf['y'],
                     c=gdf['rmse'], cmap='YlOrRd', vmin=0, marker='o',
                     transform=ccrs.PlateCarree())

# Add labels for each station
txt_offset = 0.1
for idx, row in gdf.iterrows():
    ax.text(row['x']-txt_offset, row['y']+txt_offset, idx,
            transform=ccrs.PlateCarree(), fontsize=10, ha='right', va='bottom')

# Add a colorbar
plt.colorbar(scatter, ax=ax, orientation='vertical', label='RMSE')

plt.show()

Superseded by #329


inferred type math performed before a deduced type change?

using: go1.4.2 darwin/amd64
here is what I did:

a := 0.5

a *= 2/3

and I got: a = 0 where I expected to get 0.333333333.. or a type mismatch error.
This seems to also happen if you use:
 a = 2/3*a
Here is a go.play for more examples
Thanks to some unit testing, I stumbled upon this, and to me at least it seems like an inference typing bug.
With this behavior, when using numbers of implied types in an equation, the results can be unexpected, and troublesome (at least for me).
Presumably go is inferring that 2 and 3 are int's and doing integer math, and then realizing that a is a float64 and doing something like float64(2/3). I would have instead expected that it would convert everything to float64 before doing any calculations: float64(2)/float64(3)*a or give a type mismatch error
The fact that it deduces and changes the type based on context makes sense. What does not make sense to me is that it does operations with the original inferred type, and then proceeds to change the type while preserving the result from the already completed operation.
So perhaps convert all elements of an equation to the same type before completing any operations, or just raise a type error and make the programmer be explicit.

Please move this to the golang-nuts mailing list. We only use the issue tracker for concrete bugs.


Database class

This adds simplified functionality when accessing a database (cause PDO can sometimes be a little verbose)

My recommendation for a ORM layer is RedbeanPHP.

I just wanted to make sure that you guys saw what the actual code was. I wasn't adding an ORM, or a Mapper, or a flavor of that. Sparrow is cool, so is Redbean (heck even Propel would fit in the Flight theme :laughing: )
The purpose of this project is that it should have a very, very simple way to setup some routes, and pass back data for an API. When I have setup an API, the vast majority of them interact with a database, and typically that database is MySQL/MariaDB. I could make an argument that I should merge in some kind of ORM type thing in here, but I'm trying to keep it the core very simple.
In my experience, I've helped train a lot of developers at my company but I've also been lucky enough to help new coders find their way into PHP. Bless their hearts, but the PHP world can be really overwhelming to them. I remember starting out and I was following tutorials online and I had no idea what they were doing or why they even worked. Now that I'm older I understand better and I see things through their eyes, and it's why I created a simple wrapper for PDO so that querying a database was easier. They don't need to know what a prepared statement is, what a PDOStatement does and why it's different from PDO. All they know is that their boss just came to them with a SQL query and said, "make an API for that" and they are stumbling around google trying to figure out how to do that, or they might have a project with Flight already in it and they just need to know how to translate an SQL query into a JSON response.
So that's why I made the PdoWrapper class, so it's easy for new developers to just get something done that doesn't fly way over their heads.

I do have a skeleton project I just got up today at flightphp/skeleton. I guess I'm curious about some API examples you have. So the API's you interact from a Flight project, are all static files? I've seen examples here and there, but the vast majority of API's I've seen use a database. And all API's I've ever worked with pulled or pushed data into a database of some kind (MySQL, MariaDB, Postgres, Mongo, Redis, etc). Could you show a simple example of what you work with cause maybe there's a case to include something in the framework for your use case (if it's more common than I thought)

Here a long time user of Codeigniter (3 for a long time, now 4). I am really fine with its ActiveRecord class, don't need more, an ORM seems to much hassle, I prefer raw SQL in complex queries. Here I learned about Sparrow, which looks quite similar to ActiveRecord.  I'll probably use it, for now Flight is in.. Test Flight for me :) but I love it. Added Twig (which seems a standard for many) or it could be LiquidPHP. The idea is always small sites (which there are a LOT of) and a small core to work on with "modules".

Have not used FlightPHP for many years, because it was not maintained. But was hoping to start using again now for smaller sites. I like the idea to use a framework such as Flight as a core, and then glue it with other preferred projects, such as twig for view, dibiphp for db, tracy for debugging, etc.

This is my goal as well. For me, Latte is my preferred templating language as it "feels" closer to PHP than Twig does. I'm also going to be creating a Tracy package for Flight similar to my F3 package for Tracy that I built to have better insight into what Flight is doing and how it was executed.
I have lots of ideas for Flight and the ability to extend it in easy ways, but leaving the core, the core.
Thanks for the feedback guys. I think I'll leave the PdoWrapper I have in the core for now, but I think on the main readme, there needs to be some good recommendations for the "missing" pieces of flight, like a templating system, session handlers, activerecord/orm/mapper etc.


Fix NoneType error on Metrics page

Fixes bug #3322

Rebased to dev, was master. No conflict, go.


C# Type Color

Hello, I would like to propose that the storage.type.cs scope be changed to match the stylings for classes in C#. I absolutely love this theme, and thus far, this is the only thing I've found that bugs me. Thanks for your work on this great extension!
"editor.tokenColorCustomizations": {
  "[Hyper Term Black]": {
    "textMateRules": [
      {
        "name": "csharp type",
        "scope": "storage.type.cs",
        "settings": {
          "foreground": "#e5c07b"
        }
      }
    ]
  }
}

Please see below comparison:
Original Theme Settings

Modified Theme Settings

Hey @JaimeStill!
Happy you like the theme!
I have added C# type coloring on the 0.0.7 release of this theme.
Thanks for the feedback, happy coding!


Add krew-bump.sh helper script for updating the krew index as part of release

Signed-off-by: Jim Ramsay<EMAIL_ADDRESS>

@natifridman : I looked into that automation, but it only seems to be designed to work with github actions and I'm not sure that jives with the openshift org prow integration :(

/approve


Affected Pages:

[ ] Other (please specify)
index.html and get add new file as: contact.html

Type of Documentation Change

[ ] Update existing documentation

Additional Context

Suggested Improvements
BY PROVIDING THE CONTACT LINK ON THE NAVBAR OF THE HEADER OF THE LANDING PAGE WE CANREDIRECT THE USER TO THE CONTACT FORM AND FROM THERE AFTER FILLING THE FORM THE USER CAN EASILY CONNECT WITH ..

AS A EXPERIENCED FRONTEND DEVELOPER I AM REQUESTING YOU TO PLEASE ASSING THIS TASK TO ME I CAN RESOLVE THIS ISSUE VERY EFFECTIVELY.

Hey @dnyanesh99borse , someone is already working on it. Feel free to explore the project and create new issues!

OK


[request] Add litellm support

Litellm is an open source proxy/router/load balancer to expose multiple LLM api (openai, mistral, together, openrouter, TGI, locally served, ...) through one openai api endpoint.
It also have a /model route to load the list of available models.(here is the swagger)

If we could add one custom openai endpoint to chatbot-ui, through litellm we could add any endpoints.

This looks interesting. I certainly feel the pain of trying to make all APIs compatible with the code. I'll look into it.

@Trapper4888 I'm the litellm maintainer - can we hop on a call to learn how you use litellm ?
Link to my calendar for your convenience:
Also I can make a PR to this repo for using litellm cc@mckaywrigley


Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#4
In which task and step of the codelab can this issue be found?
Course: Android Basics in Kotlin
Unit 2: Layouts
Sub Unit: Scrollable lists
Codelab Name: Use RecyclerView to display a scrollable list
Codelab Section : 5. Solution code
Describe the problem
In the file "affirmations/adapter/ItemAdapter.kt" there is an error on line no 44, holder.textView.text = context.resources.getString(item.stringResourceId)
Instead of stringResourceId in last part, we have to correct it with stringResourceID, Because in file "affirmations/model/Affirmation.kt" we had declared class variable "stringResourceID" as a parameter.
So, it creates an error because of the letter 'd', to solve the error just replace "stringResourceId" with "stringResourceID" at the line number 44 in file "affirmations/adapter/ItemAdapter.kt".
Or
Replace "stringResourceID" with "stringResourceId" at the line number 3 in file "affirmations/model/Affirmation.kt".
Steps to reproduce?

Go to...
Click on...
See error...

Versions
What version of Android Studio are you using?
Version 4.2.1
Additional information
Include screenshots if they would be useful in clarifying the problem.

@param-radadiya
Thank you for reaching out to us. The issue is fixed:  "stringResourceId" is in both packages "affirmations/model/Affirmation.kt" and  "affirmations/adapter/ItemAdapter.kt"


Update: Feedback PR

There has been some confusion on where the feedback PR is generated. When creating this assignment in Classroom that was turned off. Instead you will need to manually make a PR to the main branch.
This was resolved in this Discussion #8.
If you have made changes to the main branch and not on a new branch, run the following in the command line on the main branch.
Please feel free to mention me @bdougie if you have questions.
git remote add upstream https://github.com/open-sauced-craftwork/browser-extension
git branch -m development
git push origin develop
git fetch upstream main
git checkout --track upstream/main
git push origin main -f

After running these commands in succession you will be able to open the PR on your repo. That will allow me to review your code.
Don’t forget to sign up to open sauced by connecting your GitHub account if you haven’t yet.

Hi, @bdougie I just finished working on my code would love you to review it, thanks.

Can you open a PR?

a PR on the private repo given to me?

I opened a PR on the private repo yesterday so you can look it over. Thanks
https://github.com/open-sauced-craftwork/open_sauced_craftwork_browser_extension-ritikranjan12

@bdougie I completed the assignment and pushed on my private repo, please have a look and provide feedback, thanks!


The shared folder guest path must be absolute

When trying to add a shared folder
folders:
#    - map: example-folder
#      to: /path/in/vagrant/example-folder
- map:  ~/bin
to: /home/vagrant/projects

I'm getting the following error message
vagrant reload
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The shared folder guest path must be absolute:

This is on a Mac mini (OS X Yosemite)
I've tried changing the map path to
/Users/cparrish/bin/

but it doesn't seem to make any difference.

You should indent your map and to keys, try it:
folders:
    - map: /Users/cparrish/bin
    to: /home/vagrant/projects

I don't think there is anything to fix here, is there?


This is not an issue, but I don't know were to ask (Handshake failed)

I'm trying to set your library, but requests do not work, all the time throws exception "Handshake failed" (I think that’s from OkHttp3). Tried to use on each platform separately and from base library, the same result. With adding NativeMessageHandler I'm using same parameters as in an example (Timeout = new TimeSpan(0, 0, 9), EnableUntrustedCertificates = true, DisableCaching = true). Server, that I working with has TLS 1.2 protocol.
Trying only with android, at the moment others platforms not realized yet.
I dont know where to search for a solution for that problem, please help me someone.

Take a look at this link and let me know if these is the same scenario you have: https://github.com/square/okhttp/issues/2669

Yes, I think the problem is same. Server, that I'm using is not allowing SSL usage. Is there any way to reconfigure getSslSocketFactory on OkHttp3 in your repo? (And yes, I'm using Android 7.0 for testing).

So, if your server is not allowing SSL, why you don't use HTTP. Just remove the S from it.

I dont have an access to the server configuration. Removing "S" from HTTP (in an endpoint) on my app do not resolves the problem (Same Handshake failure). I'll try to download your repo and change some OkHttp3 settings, maybe it will help. Also will try to use other platform.

That's actually what i do when EnableUntrustedCertificates = true, reconfigure getSslSocketFactory on OkHttp3. If you find a fix, please let me know.

Ok, anyway thank you for your help.

I am going to include a customTrustManager static property that can be initialized


fix link to Cloud docs on Manuals tab

@pkennedyr @johndmulhausen
Fixed link to Docker Cloud docs on Manuals tab
(we should also look at the UCP docs which are re-directing right now to a version specific URL)
Signed-off-by: Victoria Bialas<EMAIL_ADDRESS>

LGTM, merging


instance.get_json does not mention the undetermined states (checkbox plugin)

Hello,
When using the checkbox plugin, get_json() returns checked: true/false for each node, but not undetermined: true/false.

Sorry, duplicate: https://github.com/vakata/jstree/issues/2084


torch.util.data.IterableDataset

Hi:
In graph_dataset.py , class LoadBalanceGraphDataset(torch.utils.data.IterableDataset), self.num_samples default is 2000. I want to learn what's the relation between this variable and tensor.batch_size.In my own experiment, my class Dataset belong to IterableDataset,   when self.num_samples is not the multiple of train_loader.batch_size, it will be wring.

Hi @wangzeyu135798 ,
Please provide more information (e.g., python traceback) of the error. From your description, adding the drop_last=True param to the dataloader construction might solve the problem.

Hi @wangzeyu135798 ,
Please provide more information (e.g., python traceback) of the error. From your description, adding the drop_last=True param to the dataloader construction might solve the problem.


Improve the inverted index

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Fixes apache/skywalking#12637.
[x] Update the CHANGES log.

Please fix CI.


Add language options

I hope that Chinese can be added and I can help translate into Traditional Chinese or Simplified Chinese.

yes, finally it can with this release https://github.com/builtbybel/Bloatynosy/releases/tag/2.0 🐱

Habe "German" bzw. "Translate" eingegeben, aber es bleibt in englisch.

Support for German is now available with the latest 3.0.5 version.

Thank you very much !!! 👍👍👍


New Rule: All paths in functions should resolve or reject a Promise

This is very similar to https://github.com/Microsoft/tslint-microsoft-contrib/issues/26 (https://github.com/Microsoft/tslint-microsoft-contrib/issues/26)
This code is OK because all paths resolve or reject:
function myMethod() : Promise<void> {
    return new Promise<void>((resolve, reject) => {
        if (something) {
            resolve()
        } else {
            reject();
        }
    });
}

This code creates a violation because not all paths resolve/reject:
function myMethod() : Promise<void> {
    return new Promise<void>((resolve, reject) => {
        if (something) {
            resolve()
        }
    });
}

All of the rules for scope, variable shadowing, and type limitations apply from https://github.com/Microsoft/tslint-microsoft-contrib/issues/26

Tried second example, does not work with tslint 5.11.0 . Any yes I am using the --type-check and --project option :) Other rules from tslint-microsoft-contrib seem to work.

Hey @arogg, sorry to hear that! Would you mind filing a new issue with the following information:

File contents (is it exactly the second example, no modifications?)
Link to your project, if it's open source
tslint.json contents
How you're running TSLint, such as on the CLI or via the VS Code extension


version question

Hello,I use cuda 10.0 and meet the question
//---------------------------------------------------------------
File "/home/hjl/object-detection/DNL-Object-Detection/mmdet/utils/flops_counter.py", line 35, in
from mmdet.ops.dcn import DeformConv, ModulatedDeformConv
File "/home/hjl/object-detection/DNL-Object-Detection/mmdet/ops/init.py", line 3, in
from .dcn import (DeformConv, DeformConvPack, DeformRoIPooling,
File "/home/hjl/object-detection/DNL-Object-Detection/mmdet/ops/dcn/init.py", line 1, in
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv,
File "/home/hjl/object-detection/DNL-Object-Detection/mmdet/ops/dcn/deform_conv.py", line 9, in
from . import deform_conv_cuda
ImportError: libcudart.so.9.2: cannot open shared object file: No such file or directory
//--------------------------------------------------------------------------------------------------------------
is it means I should back cuda to 9.0 ?while the inplace_abn cuda should >10.0
//---------------------------------------------------------------------------------------
NOTE 1: our code requires PyTorch v1.1 or later
NOTE 2: we are only able to provide support for Linux platforms and CUDA versions >= 10.0
NOTE 3: in general, it is not possible to load weights from a network trained with standard BN into an InPlace-ABN network without severe performance degradation, due to the different handling of BN scaling parameters
To install the package containing the iABN layers:
pip install inplace-abn

We use CUDA 9.2 for our code. ABN's previous version (for example) does support CUDA 9.2.
Besides, we used ABN just because at that time pytorch's syncbn has some unknown bugs. You can also use a new version of pytorch and replace abn's syncbn with pytorch's syncbn.

ok,thank you,I understand.


okHttp and graalvm not working with latest stable (4.9.1) - only RC?

Hey,
I was playing around with okHttp and graalvm, so I'm not experienced with both.
I had problems with some classes/unresolved types i.e.:
OpenJSSEPlatform, ConscryptPlatform, BouncyCastlePlatform
As the okHttp website states it is ready for graalvm, I thought the fault is with my configuration and studied stackoverflow and okcurl.
But at the end, using okhttp version 4.10.0-RC1 instead of the latest stable 4.9.0 just did the trick.
The relevant change seems to be okhttp/src/main/kotlin/okhttp3/internal/graal/svm.kt
Hope this helps some people, and maybe it would be worth mentioning this here:
https://square.github.io/okhttp/#graalvm-native-image

@Excpt0r yep, good point. We are adding support in 5.0.0-alpha.2 now. I'll put a note.

@Excpt0r OkHttp 5 will follow on from Okio 3.0, so it's not imminent.


Do not copy select element name attribute to autocomplete input

Copying the name attribute means that the same name fields is POSTed twice on form submission. This can cause server-side parsers to fail because they receive two fields with the same key. By not copying the name attribute onto the autocomplete element we can ensure that only one value is POSTed to the server on form submission.
Fixes #130

Published in v1.0.3!


Reveal GOROOT/GOPATH in side bar

Useful to read relative code!

Have you tried adding them as workspace folders (File > Add Folder to Workspace...)?

Add GOROOT/GOPATH in every project is a little bit tricky.

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.
Happy Coding!

But the click the Reveal menu has any effect, is it reasonable?

@QianChenglong The Reveal in Side Bar option only applies to files belonging to the current workspace. This is because the Side Bar can only contain files belonging to the workspace.
If you are using the Go extension, then what you can do is

Keep the cursor inside the import block on the package that you want to explore
Run the command Go: Add Package to Workspace

This will add the package to the workspace allowing you to explore it directly in the side bar or to use the Reveal in Side Bar menu.
Another option is to use the command Go: Browse Packages which will let you browse the files belonging to the package you select from the drop down.

@QianChenglong Have you tried the Go: Browse Packages command?

@ramya-rao-a Yes! Which I need is easily to browse the package structure like other package in my project.Go: Browse Packages use to open file is nice,but in my suitation is not working.


Please add clarification for casting mode_t to c_uint here

Regarding:
https://github.com/tailhook/openat/blob/e4660c1c9b921b3872bc353e40772b7f4d2b15d9/src/dir.rs#L268
The cast was added in 8a25eaefe4574065d6aeb13ab0aaa2f1686730f4
wich concerns freebsd support without further explanation. According to
the freebsd docs though, the mode argument is supposed to be of type
mode_t as well:
https://www.freebsd.org/cgi/man.cgi?query=openat&apropos=0&sektion=0&manpath=FreeBSD+12.0-RELEASE+and+Ports&arch=default&format=html
If I’m reading the libc source correctly:
src/unix/mod.rs:pub type c_uint = u32;
src/unix/bsd/freebsdlike/mod.rs:pub type mode_t = u16;
src/unix/linux_like/linux/mod.rs:pub type mode_t = u32;

this is a no-op on Linux but a cast of u16 to a u32 on Freebsd.
Does the build actually fail on Freebsd if the cast is omitted? If so, maybe
this should be highlighted by a cfg guard. I don’t have a Freebsd system
at my disposal so I cannot test this myself.
(Sorry for being nitpicky here. I’m currently subjecting the crate to a crev
review so I had to waste some extra attention to the unsafe blocks.)

@myfreeweb can you comment on this issue? (as you're the contributor if the line)

You're looking at the wrong thing in the libc crate… grep for openat :)
It's currently defined in the unix module with c_uint. Yeah, that doesn't sound right, you should report it to the libc issue tracker. (But I'm not looking forward to libc API breakage, maybe this is fine lol)

It's currently defined in the unix module with c_uint.

libc::openat is vararg as specified by posix,
so the signature has no explicit type for mode. Posix gives the type of mode  as:
“The oflag parameter and the optional fourth parameter correspond exactly to the
parameters of open”. So assuming posix, the cast to c_uint is unnecessary.
Could you check whether rustc complains on Freebsd when the cast is removed?

oh, I was looking at flags.
And yes, rustc complains, twice for some reason even.
error[E0617]: can't pass `u16` to variadic function
   --> src/dir.rs:270:29
    |
270 | ...                   mode);
    |                       ^^^^ help: cast the value to `c_uint`: `mode as c_uint`

error[E0617]: can't pass `u16` to variadic function
   --> src/dir.rs:270:29
    |
270 | ...                   mode);
    |                       ^^^^ help: cast the value to `c_uint`: `mode as c_uint`

(also the build was broken by O_PATH, I'll send a PR fixing it)

So it does use the mode_t definition I cited above. Interesting.
I still think the cast should be cfg-guarded for Freebsd or at least
annotated to avoid confusing random people like me ;)

So it does use the mode_t definition

No, only the functions in this crate use mode_t, but rustc does not allow passing that (when it's 16-bit) to the variadic args.
https://doc.rust-lang.org/error-index.html#E0617
So this means that variadic args literally cannot be mode_t==uint16_t because that is not allowed by the ABI.
I guess the bug is actually in the FreeBSD manpage, I'll send a patch there.

As for the cfg guard, idk… assuming no platform would use a 64-bit value, always casting to 32-bit would catch all platforms that use 16-bit :)

https://reviews.freebsd.org/rS352795 has been committed upstream. It really is an int due to the varadic arg promotion rules. FreeBSD then interprets the passed value as a mode_t, though...

So it does use the mode_t definition

No, only the functions in this crate use mode_t, but rustc does not allow passing that (when it's 16-bit) to the variadic args.

I mean libc on Freebsd uses that u16  typedef for mode_t. Obviously this
can’t work with varargs in Rust due to the lack of integer promotion, which
answers my question as to why the cast is necessary.

https://doc.rust-lang.org/error-index.html#E0617

So this means that variadic args literally cannot be mode_t==uint16_t because that is not allowed by the ABI. Actually the source of libc reads it as int.

I guess the bug is actually in the FreeBSD manpage, I've sent a patch.

Nice.
I guess the takeaway is that it’s hard to follow Posix to the letter
where integer promotion rules don’t apply.

I think the takeaway is that C is a quirky language, and POSIX is a child of C. Rust tries not to be quirky and type safe. The is a dark corner of C where things aren't type safe at all and where arcane  rules about what actually happens matter and the difference between those arcane rules and Rust's calling conventions become important.
Also, to quibble on a point. The signature does NOT require mode_t. It is varadic: int open(const char *fn, int flags, ...). mode_t is nowhere to be seen in the prototype. It is later documented that when flags has the O_CREAT it set, then an additional arg of type mode_t is required. Since that's passed through ..., the reader is expected to know and understand the subtle rules here, as described in the C standard and various processor ABI documentation. When O_CREATE isn't set, any argument passed is ignored and the caller is under no obligation to pass anything. There exist ABIs where this difference matters and where the arg that could otherwise be passed in a register is forced to the stack...


Rework TrenchBroom Layer Omission to Not Generate Entities

Old method used to generate nodes and free them at the end of the build. With this PR, FuncGodot now skips generating those nodes entirely.
It also contains some tweaks for performance optimization:

Setting the size of the entity_nodes array to the entity_dicts size instead of appending in the entity loop.
Instead of starting with a Node3D and then freeing it if the Node class needs to change according to the Entity Definition, it now only generates a Node3D if the Entity Definition doesn't generate a node.

Should resolve #31 and #39.

It seems odd, but it's because the entity_nodes array needs to align with the entity_dicts array, which is one of those "house of cards" situations.


Bug: could not run npx siimple -c -o without changing a file in node_modules

Describe the issue
when I tried to run the setup commands following https://siimple.xyz/getting-started/
I got the following error on "npx siimple -c ./siimple.config.mjs -o ./output.css"
see screenshot.
To reproduce
for me, it just happened after doing the second step.
my npm is 8.19.2
node v16.13.0
Screenshots

What browser(s) are you seeing the problem on?
No response
What version of siimple are you using?
4.3.0(according to package/package-lock)
Additional context
I could "fix" it by reading a bit on https://stackoverflow.com/a/70057245/4769837
where I read Imports can only do file:// and data://.
So I changed where the error came from on siimple/cli/index.js from:
    return import(configPath).then(rawConfig => rawConfig.default);

to:
    return import("file://" + configPath).then(rawConfig => rawConfig.default);

which fixed it but of course not a great solution.

Hello @pepijnmm.
Instead of concatenating "file://" to the configuration path we can use url.pathToFileURL:
return import(url.pathToFileURL(configPath)).then(rawConfig => rawConfig.default);

As I see in the documentation is the recommended way when using absolute paths with import https://nodejs.org/api/esm.html#file-urls.

Hello @pepijnmm I have just published v4.3.1 with the patch for your issue. Now it should work as expected. If the issue persists, please feel free to reopen the issue.
Thanks!!


The spatial attention module seems not implemented.

The module for global spatial attention seems not implemented. Could you please check?

Yes, I have checked the code roughly. The code placed in this repository was a initial verision that didn't have global spatial attention. The global spatial attention is a vey simple dot-product attention. Because that I have graduated from my school, it is a bit difficult for me to get the complete code. So if you are convenient, you can add the spatial attention directly. By the way, do you know Dr.Yu Yang(杨宇) from PolyU?

Do you still have the complete code and data? I don't seem to find the PeopleDataLoader and Pretrain modules.


MAINT: update README.rst.  Fix broken links and add "what is PyWavelets"

Also reorganized everything a bit and remove a not very meaningful usage example.
[ci skip]

just a couple nitpicks

Thanks, fixed.


KAFKA-4193: Fix for Intermittent failure in FetcherTest

@benstopford Just to clarify, it looks like the test FetcherTest.testFetcher was mistakenly altered to use acks=0 in the patch for KIP-73. Is that right?

Yep that's it. Just a mistake.

LGTM. I wasn't able to reproduce the failure after applying the fix.


Don’t redraw rightBarButtonItems

iOS 10 is animating rightBarButtonItems when they're assigned during a pull-to-refresh on both Post Details and Profiles. Rather than reassigning the buttons on pull to refresh we'll show what's already there.
@colinta, this feels harmless enough to me, any negative side effects you can think of?
fixes #131181209

Looks good!  I had a thought last night, if you wanted to go back to array comparison, we could store the UIBarButtonItems as instance variables, so that the built-in comparison WOULD work as expected.

Test Suite 'All tests' passed at 2016-09-30 16:41:07.323.
	 Executed 2207 tests, with 0 failures (0 unexpected) in 243.682 (245.008) seconds


Opentelemetry exporter azuremonitor Readme issues

Section link:

Suggestion:
Misspelled word. Update to Instrumentation.
@jongio for notification.

Close it because PR merged.


[Draft] Fix combo detect test

Signed-off-by: Madhuri Patel<EMAIL_ADDRESS>

This test has been resolved so I am closing this draft pull request.


[screengrab] Fix screenshots on Android Q and above

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Trying to capture screenshots with screengrab on Android versions >= Android Q (v10, API version 29) fails on Windows.
Resolves #18335
Description
FastlaneCore::Helper.which uses the platform-specific path separator (/ on UNIX, \ on Windows).
Adds a new method, FastlaneCore::Helper.localize_file_path(path) that fixes the path separator.
Fixes the command used to extract the screenshots as described in the issue

Microsoft is including some UNIX commands like `tar` and `curl` in the standard install of Windows ([source](https://docs.microsoft.com/en-us/virtualization/community/team-blog/2017/20171219-tar-and-curl-come-to-windows)).
> where tar
C:\Windows\System32\tar.exe

The bundled tar is a version of bsdtar
> tar --version
bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp

Piping the output directly doesn't work
> type archive.tar | tar -xvC folder
tar: Error opening archive: Failed to open '\\.\tape0'
The process tried to write to a nonexistent pipe.

Fortunately, specifying the input file with -f- works
> type archive.tar | tar -f- -xvC folder

Testing Steps
On a Windows PC:

Create an Android Emulator running Android Q or higher
Setup Fastlane and Screengrab for an Android Project
Run fastlane screengrab for the project

Many devices don't have tar installed. There are also large issues with the current Android-side helper implementation across various android versions. Please see #18003 where I fixed (some of?) these. It looks like my PR fell through some cracks and just didn't get reviewed. :(


Azure Workload Identity Support

Discussed in https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/discussions/1148
Perhaps it would be a good idea to start implementing Azure Workload Identity support, which is in line with future development of authentication between k8s resources and cloud resources, not only for Azure. This will also make future implementations much more secure since you do not have to worry about passing around client secrets for a user/spn that potentially has a lot of permissions within the cloud. Therefore, a huge win for security, and thus for future adoption. 😄
I believe we can achieve it by extending https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/blob/trunk/packages/azure/src/application/AzureCredentialsProvider.ts in this fashion https://github.com/Azure/azure-workload-identity/blob/main/examples/azure-identity/node/index.js, shall I pick it up?

Sure, let me pick it up! :)

Hola @ericksod!
I've picked up the issue, but I'm a bit unsure how to properly test it. I'm a bit rusty with Yarn and Typescript. I do have an Azure environment where I can deploy it. I'll check later on the build, if you already have some feedback, let me know.
This should be it, can you give some feedback? https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/pull/1158

Any news regarding this issue? I could check out the branch and test it on my Azure tenant, if required.

Any news regarding this issue? I could check out the branch and test it on my Azure tenant, if required.

Thanks for checking in on this, @lukibahr! This issue should be closed as it was resolved with the merging of #1158. Additional support for Managed Identity has been recently added with #1330 and will be included in the next release


Intro to Jupyter Feedback

Attached are my comments on notebook 1. Overall, I think this notebook emphasized formatting Markdown cells more than necessary. Formatting a notebook was only really necessary for our final project. Therefore, I think more time should be spent introducing the Python language. I suggested talking about troubleshooting and understanding different types of error messages. It's important to know the different Python object types when deciphering an error message. I also suggested introducing writing loops in Python since loops are very important for the whole course. Finally, one of my concerns was that the notebook needs to be accessible for different institutions, so reference to UC Davis or ENG 122 should be excluded.
1_Intro_to_Jupyter_MS.docx

@MicheleShi It is easier if you paste the text from the word doc in the Github text box. Word docs, in general, are a bit difficult to work with in the context of Git, Github, software, etc. Can you edit your above message and paste in the text?

How much information about Jupyter notebooks, specifically about formatting Markdown cells, do the students actually need to know for this course?

Move to #182 for someone to tackle.

We weren’t given any introductory information about using the Python language. I know the first homework was meant to be an introduction to Python, but I think it’s beneficial to have in class practice with the language as well.

This was on purpose. The goal was to show just enough Python at each stage in the course so that you theoretically don't need to know any Python up front. As a solution I'd like to improve how we ease students in, as opposed to giving a Python tutorial upfront with everything that is needed. This will hopefully be addressed with #161.

Need to ensure this book translates well for use at other institutions. E.g. exclude UC Davis login screen, referring to ENG 122.

#183

Objective 4, “create well-formatted, fully operational notebooks,” was not emphasized for a majority of the course. Only in the project did we need to format our own notebooks.

Yes, we need to improve this. We'd like each homework notebook to be nicely formatted, in addition to the project.

In “Tour de JupyterHub” Section, include screenshot of Jupyter tab directory. Showing the Jupyter interface may be more important that showing the UC Davis login screen, especially if this book will be used at other institutions.

#183

Under the “Fetching Notebooks” section, need to revise Step 3 about opening the notebooks. Must state that you need to refresh the list for the fetched notebook to appear.

When this is fixed we can close this issue.

Introduction to Python section should include an exercise on writing loops and should define the difference between the types of objects: integer, float, and strings.
Introduction to Python section should give some advice on troubleshooting and understanding the error messages (i.e. syntax error, runtime error, and semantic error). I found the Think Python resource helpful.

Moved to #161.


lds: prefix ranges and source IP/port matching.

Allow multiple CIDR ranges to be provided for the prefix match. This
is useful when you have the same listener config in multiple subnets,
each subnet with the same suffix allocation of VIPs and the CIDR prefix
assigned by region/zone, e.g. when using the GCP subnetworks feature.
E.g. the service is on <IP_ADDRESS> in subnetworks <IP_ADDRESS> in US and
<IP_ADDRESS> in Asia.

Add source IP/port matching similar to existing TCP proxy filter. This
moves the route configuration from the TCP proxy filter to the
FilterChainMatch, making it also available to HTTP connections.

Fixes #6 and #36.

@mattklein123 @alyssawilk @antoniovicente @tschroed


Clash of Clans current war

Hi @ribasco,
I don't see api for the current war, they are missing or i can't find it?

you are right. This is currently not yet supported yet though I should be able to include new api on the next release


How to restart a download task when retry call back?

If you receipt the retry call back, FileDownloader already has restarted the task, it means: re-connect、resume from breakpoint.


Problem with adding interpretations

I want to add two interpretations to the disease heart disorder.
I put the first one in and clicked Save interpretation.
I added the second row, but when I clicked Save interpretation it told me there already exists an interpretation with the name "new interpretation 10".
---The problem is that I don't need to do a Save at this point, it automatically adds my second row. Only I thought that did not happen because of the message.---------
So I changed the interpretation name to "new interpretation 12".
Then I clicked save interpretation again.
Now I have two identical interpretations that look like this:

Here is how they look if I open up the accordion. The json also has both sets in it.

It makes sense to me that there can be multiple genomic interpretations for one disease, i.e. several rows.
Does it also make sense to be able to add multiple genomic interpretations for a second disease diagnosis? If yes, then I think the error message needs to convey somehow that I don't need to do a save again for disease diagnosis 1. Also it should clear everything if I decide to add a disease diagnosis 2.

What about putting the list of created interpretations on the side (the same as for the diseases and phenotypic features, and selecting an interpretation, the user can then edit it by changing the form accordingly?

I think this is much easier to use now!!


Remove UMD bundle from package.json

Fixes #207
The UMD bundles is not processed correctly by polymer-cli, which has its own AMD transform, resulting in window.define is true, but window.define.amd is false.
Leaving ES module as the only entry in package.json for now. For those who need UMD bundle, it is still there but should be included manually.

This change is

Reviewed 2 of 2 files at r1.
Review status: :shipit: complete! all files reviewed, all discussions resolved

Comments from Reviewable


Training feedback 01

I've accidentally merged this PR myself.   I've modified the github branch protection rules on this repot to disallow this in the future.

LGTM anyway


Quantitative evaluation

HI Chen-Hsuan,
First of all, thanks so much for this amazing work and well-structured codes!
I am currently trying to reproduce your results in Table 1 with your provided models on plane, car and chair, but it seemed that you have not provided the evaluation code? Instead, you provided the evaluation in the pretraining AtlasNet part. Wondering if I can simply adapt your evaluation code in pretraining AtlasNet to your PMO code? If not, could you please also kindly provide with your evaluation code?
Many thanks in advance!

Sorry for the late reply. Yes, the evaluation for PMO is the same as for the pretraining part.
If you want to follow the metrics I reported in the paper (separate for GT->pred and pred->GT), you can simply report dist1 and dist2 respectively from the chamfer distance function. Many other papers, however, seem to combine the two together (as in the training loss) and report a single error metric, though I personally don't think it makes much sense to do so. Hope this helps!

Hi Chen-Hsuan,
Thanks for your reply. May I ask one quick question? If I directly use your main.py to evaluate, it can only run one instance each time because the batch size is 1. Let me take the chair class as example, there are 1356 instances, and your method needs ~3 mins for each instance, so in total the evaluation time will be ~67 hours, which is way too long. Therefore, I am wondering if you still can provide your evaluation which I could simply run the whole thing in batch for the fair comparison? Thanks so much for the help!

Sorry for the late reply. Yes, the evaluation for PMO is the same as for the pretraining part.
If you want to follow the metrics I reported in the paper (separate for GT->pred and pred->GT), you can simply report dist1 and dist2 respectively from the chamfer distance function. Many other papers, however, seem to combine the two together (as in the training loss) and report a single error metric, though I personally don't think it makes much sense to do so. Hope this helps!

May I ask also how did you acquire the GT and pred in your case? If the GT points are sampled from ply provided in AtlasNet dataset, your var.vertices apparently not in the same scale to the GT, so the chamfer distance is actually quite large. When you did the quantitative experiments, did you use var.vertices, var.vertices_world or var.vertices_canon as pred for evaluation? Many thanks in advance!!

Yes, evaluating the entire test set can take up to a couple of days.... it was the same case for me. You could try increasing opt.batch_size, but for my case, batch size 1 already utilizes the GPU power almost to its fullest.
The ground-truth is taken from the .ply files from AtlasNet. Please use var.vertices_canon to evaluate as it lies in the same coordinate system as the ground truth.

Closing for now, please feel free to reopen if there are further issues.

Hi there!
I have a question along the same lines. Given a groundtruth pointcloud from AtlasNet <id>.points.ply.npy and the camera parameters from camera.npz. How do I correctly project the pointcloud to a frame from sequences/<class>/<id>.npy? It seems that a normalization and rotation has to be applied to the pointcloud, but I end up with a small misaligning with the following strategy:
uv = K * T_cw * R_z * R_y * normalize(points).
Where R_z and R_y and 90 degree rotations and T_cw the world to camera transformation. I tried a couple of normalization approaches but non works exactly. The closest so far is subtracting by the mean and then dividing by the max norm of the points. Could you give me a hint about the correct normalization or am I missing something else?

If I remember correctly, the ground-truth point clouds from AtlasNet were already zero-centered and scaled normalized to tightly fit a unit sphere, so additional normalization shouldn't be necessary. You could check if you're applying the transformations consistently with these lines of code (before the camera extrinsic/intrinsic matrices):
https://github.com/chenhsuanlin/photometric-mesh-optim/blob/master/data.py#L29
https://github.com/chenhsuanlin/photometric-mesh-optim/blob/master/model.py#L60
Hope this helps! Please let me know if you need further clarifications.

Hmm.. maybe I am using the wrong groundtruth points, I got the clouds using this downloader.
Here is a self-contained script showing what I am doing, the normalization should be the same as this one:
import numpy as np
import matplotlib.pyplot as plt

path_camera = "path/camera.npz"
path_frames = "path/cbc5e6fce716e48ea28e529ba1f4836e.npy"
path_points = "path/cbc5e6fce716e48ea28e529ba1f4836e.points.ply.npy"
frame_index = 30
rotx = np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]], dtype=np.float64)
rotz = np.array([[0, 1, 0], [-1, 0, 0], [0, 0, 1]], dtype=np.float64)

def center_normalize_unitball_pmo(points):
    points = points - points.mean(axis=0, keepdims=True)
    return points / np.linalg.norm(points, axis=1).max()

def print_info(name, points):
    print(f'{name}, mean: {points.mean(axis=0)}, '
          f'max-dist: {np.linalg.norm(points, axis=1).max()}, '
          f'min-dist: {np.linalg.norm(points, axis=1).min()}')

# Load input
camera_data = np.load(path_camera)
K = camera_data['intr']
transforms_cw = camera_data['extr'][frame_index]
rgb = np.load(path_frames)[frame_index, :, :, :3]
points_3d = np.load(path_points)
print_info('input points', points_3d)

# Normalize
points_3d = center_normalize_unitball_pmo(points_3d)
print_info('normalized points', points_3d)

# To camera
points_3d = (rotz.T @ rotx@ points_3d.T).T
points_3d = transforms_cw @ np.concatenate([points_3d, np.ones([points_3d.shape[0], 1], dtype=np.float64)], axis=-1).T

# Project to 2D
points_2d = K @ points_3d
points_2d = points_2d[:2, ...] / points_2d[2, ...]

# Plot
plt.imshow(rgb)
plt.scatter(points_2d[0, ...], points_2d[1, ...], s=2, alpha=0.2, color='red')
plt.show()

The output is:
input points, mean: [-0.01417218 -0.07363589  0.02564108], max-dist: 0.4992210885820029, min-dist: 0.038848124935445726
normalized points, mean: [ 6.94359385e-16 -2.94482159e-15  7.52969909e-16], max-dist: 1.0, min-dist: 0.012235853184741012

Showing that the input clouds is not normalized yet. This is the resulting plot:

Any idea what's going wrong?

That reminds me -- there were metadata files (*.points.ply2.txt) in the AtlasNet dataset accompanying the point clouds, which included scale and translation data. I had to use them to normalize the CAD models in Blender before rendering them.
Hopefully that takes care of your problem!

I see. These files don't seem to be part of the downloader. Do you remember where you found them?

I downloaded it here (they seem to have redone the dataset download pipeline).

Hey, I had another go at this today but still had no luck with the alignment. Could you check which exact normalization is performed?

Sorry for the late reply. I was using the provided normalization as follows:
(suppose tx ty tz, and s are read from the file)
trans = (-tx/s,tz/s,-ty/s) # this involves some weird 90-degree rotation for ShapeNet v2 objects
scale = (1/s,1/s,1/s)

then in Blender (with the object selected),
bpy.ops.transform.translate(value=trans)
bpy.ops.transform.translate(value=scale)

This was the exact normalization steps I used to create the synthetic sequences. Hope this helps!

Hi @martinruenz, I played with it a bit more and it seems that there were some funny operations in my Blender script that complicated things. I double checked and the below should work for you to get well-aligned GT point clouds to the rendered images:
(again suppose tx ty tz and s are read from the file)
When the mesh is parsed from a ShapeNet .obj file, each vertex (x,y,z) should be normalized by
x' = (x-tx)/s
y' = (x-ty)/s
z' = (x-tz)/s

At this point, you should get a normalized mesh that fits a zero-centered unit sphere, i.e. the max norm of all vertices should be 1 (perhaps differing by a small epsilon).
The extrinsic matrices were generated from Blender and it seemed that there was a funny 90-degree rotation upon reading a ShapeNet .obj file 🤷♂. To use the extrinsic matrices, you should first rotate the point clouds with (x",y",z") = (x',-z',y'), then after applying the extrinsics and intrinsics you should get the projected points that aligns with the rendered images.
Apologies again about the confusion! The script was too outdated and I was kind of confused myself. Hopefully this works well for you.

Thanks, I got it. This works for ShapeNetv2 models.


initial changes for overrides

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 71.005%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
2564

Relevant Lines:
3611

💛  - Coveralls


CrossEntropyLoss should not be used with one-hot encoded labels

I think that you use CrossEntropyLoss with one-hot targets, but it is not supposed to be used like that. The code works because, as explained in the link below, the CrossEntropyLoss also accepts targets of size [N,C,...] in case it is class probabilities (it is not our case here).
https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html
Some discussion talking about that:
https://discuss.pytorch.org/t/cross-entropy-with-one-hot-targets/13580/4
https://discuss.pytorch.org/t/which-loss-function-for-one-hot-encoded-labels/29920/2
https://discuss.pytorch.org/t/2d-crossentropyloss-for-one-hot-targets/117545/2
So I think you should use targets = torch.argmax(targets, dim=1) before computing the loss, or probably better to change directly in the dataloader.
FYI, we reached a mIoU of 56.22 with baseline model (no aug, no bottom).

Hello @patrontheo, apologies for the delay in my response.
The issue originated from a previous code version where labels were stored differently..
Modification in data module to pass the argmax of targets to the cross-entropy loss function have been made.
However, with multiple runs (with augmentations), I haven’t observed substantial improvements in the results.
Nonetheless, thank you for your vigilance !


New Provider

I know this Project is stopped for now, but maybe someone is ready to help me with a new Provider.
BTW big thanks at elgatito for his incredible support ))
It's for this site: https://dark-libria.it/
An Anme Russian Site.
You can search through this: https://dark-libria.it/search?find=
the torrent is in
<a href="/upload/torrents/6686.torrent"
The base torrent url is: https://dark-libria.it/
I have very poor knowledge about html so maybe someone can help me to get it working?
I don't now what i need to insert here:
"name":
"peers":
"row":
"seeds":
"size":
"torrent":

@C0nvert
for this site you would need "subpage": true, like for https://github.com/elgatito/script.elementum.burst/blob/be5bb3dd094c46c96b725ab387b98b06badaa67f/burst/providers/providers.json#L48
since it does not have torrent links on the search result page.
and there is not way to get seeds/peers (they should be on result page).
and episodes are combined on one single page of the show - so there is not way to search for episode.
and then no way to determine which link for which episode.
and search functionality is very limited.
i would say this site can not be used with burst. or with so many hacks (so you will spend a lot of time implementing them) that it will be hard to use (no episode search for example, no seeds).

tracker moved to new address but with same issues. can be closed.


add: pruneDocuments-nodejs

Implements: appwrite/appwrite#1898
pruneDocuments for nodejs
ENV

API_ENDPOINT- Appwrite endpoint
API_SECRET- Appwrite API key with collections.read and collections.write permissions
DAYS_TO_EXPIRE- Days for document to expire

Executed function

Execution log

@crossphoton  Closing this PR for now since there has not been any activity in a long time. Feel free to reopen it when you're ready to work on it again 😃


Publish

Could you publish this and rock in hackage? I'd like to try building sixten from nixpkgs and it would make things easier.

I noticed that there's already a package on Hackage that does what this library does, namely http://hackage.haskell.org/package/dependent-sum-template-<IP_ADDRESS>/, so I'm gonna give that a go and if it goes well deprecate this library in favour of it.
I'll publish rock on Hackage ASAP, I just want to write some docs and tests first.

Rock is on hackage now and Sixten depends on it.
Thanks for your patience.


Prom monitoring

The monitoring solutions for Prefect 1.0
Includes:
Dockerfile to build an image
Docker_setup - bash script to set your repository, image name and tag.
Helm chart to deploy the container
Monitor.py - the main application

Pulled in latest changes from main, added docker_setup , had to black format monitor.py

Last comment - black formatting on monitor.py is good, but flake8 is failing that the graphql line is too long.
I think the two formatter/linters are disagreeing with each other, but everything else is good.

We can update the setup.cfg file to ensure that flake8 and black don't fight

This should go under prefect-v1-legacy/devops, in my opinion.

Can we move this to a subdirectory of monitoring, since this is more specific than a top level monitoring story?

Any thoughts on what this should look like?
I don't expect any additional changes or additions to monitoring for Prefect 1 so it kind of stands alone?

Fair, if we add something else, which is doubtful we can reorganize
On Tue, Aug 23, 2022 at 11:28 AM prefectcboyd @.***>
wrote:

Any thoughts on what this should look like?
I don't expect any additional changes or additions to monitoring for
Prefect 1 so it kind of stands alone?
—
Reply to this email directly, view it on GitHub
https://github.com/PrefectHQ/prefect-recipes/pull/84#issuecomment-1224311157,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGFKS46NGTDFROJTIINPLDV2T33HANCNFSM56IV6AQA
.
You are receiving this because your review was requested.Message ID:
@.***>

--
https://www.prefect.io/
George Coyne
Senior Solutions Architect | Prefect
https://twitter.com/PrefectIO?ref_src=twsrc^google|twcamp^serp|twgr^author
https://www.youtube.com/channel/UCMPaCpAiSuLZ0yPyUo0O9rw
https://www.linkedin.com/company/27132039/admin/


https://radvladdy.com

https://radvladdy.com
RadVladdy - All about Bitcoin.  A bitcoin educational site for educating family and friends.
Information is organized in a way to introduce the beginner to bitcoin and then walks them through educational material to intermediate, then advanced Bitcoin material.  Also a blog with important bitcoin news, re-posting/re-tweeting important recent bitcoin content from Twitter and the web. Links to recommended products or services are most often referral/affiliate links to help support the costs of the website.

Thanks for the suggestion - Can you add a note explaining that your links to exchanges etc. are referral links?

Done. Thanks for your consideration.

On Apr 12, 2020, at 2:10 PM, 6102bitcoin<EMAIL_ADDRESS>wrote:
Thanks for the suggestion - Can you add a note explaining that your links to exchanges etc. are referral links?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bitcoin-only/bitcoin-only/issues/161#issuecomment-612669505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHH4MP3VNNWB7JL3LPTOXKTRMIN4TANCNFSM4KZ6TCQQ.


Why Individuals holds the problem info

I have been investigating the problem field in the individual class, but I think an Individual is responsible for holding genes, nothing else, so I tried to remove it.
The commit removes the problem information from the Individual class.
Tests are passed.
https://github.com/SevgiAkten/pycellga/commit/cfe5f3cf5ffcf9fd797eb082cd962945a243f6b0

please feel free to close this issue if you are agreed with the change.

Thank you! I’ve reviewed the changes and agree with them. I'll close the issue now.


Component-launching helper functions in React.Basic.Util

Proposing that we add a renderInRoot helper function to make this common pattern easier:
import React.Basic.Util (renderInRoot)

myComponent :: Component {}
myComponent = do
  component "MyComponentName" \_ -> React.do
    -- ...

main :: Effect Unit
main = renderInRoot $ myComponent {}

A slightly more verbose option is:
import React.Basic.Util (createRootElement)

mkMyComponent :: Component {}
mkMyComponent = do
  component "MyComponentName" \_ -> React.do
    -- ...

main :: Effect Unit
main = do
  root <- createRootElement
  myComponent <- mkMyComponent
  render (myComponent {}) root

We could support both options, and reuse createRootElement in renderInRoot.
For context, Halogen has some convenient helper functions for launching components, such as awaitBody in Halogen.Aff.Util:
hookComponent = Hooks.component \_ _ -> Hooks.do
  -- ...

main :: Effect Unit
main =
  HA.runHalogenAff do
    body <- HA.awaitBody
    void $ runUI hookComponent Nothing body

@milesfrain Can you move this to purescript-react-basic-dom?

Created https://github.com/lumihq/purescript-react-basic-dom/issues/8


Framework restarts the test after a signal is received

This a regression since b7dbacbdb2c509a26ced509dad93389003d1f974 or thereabouts.
Test
./opendcdiag --selftests -e selftest_timedpass_busywait -o - &
sleep 0.1
kill -INT %+
wait

Expected behaviour
OpenDCDiag exits immediately, reports "exit: interrupted" and re-raises the signal that interrupted it.
tests:
- test: selftest_freeze
  details: { quality: beta, description: "Freezes" }
  state: { seed: 'AES:8935d753c2767a50eed11b84ca99b5f376ca28ac3d8985af112ee47b35664a0c', iteration: 0, retry: false }
  time-at-start: { elapsed:      0.000, now: !!timestamp '2023-10-12T23:59:13Z' }
# Caught SIGINT, stopping current test (press Ctrl+C again to exit without waiting)
  result: interrupted
  fail: { cpu-mask: null, time-to-fail: null, seed: 'AES:8935d753c2767a50eed11b84ca99b5f376ca28ac3d8985af112ee47b35664a0c'}
  time-at-end:   { elapsed:     97.999, now: !!timestamp '2023-10-12T23:59:13Z' }
  test-runtime: 97.508
exit: interrupted
[2]  + interrupt  ./opendcdiag --selftests -e selftest_freeze -Y -o -

Actual behaviour
The current test is terminated but it is restarted again, for retesting, leading to "exit: fail" and exit code 1 instead.
$ ./opendcdiag --selftests -e selftest_timedpass_busywait -o - --retest-on-failure=1 & sleep 0.1; kill -INT %+; fg
...
tests:
- test: selftest_timedpass_busywait
  details: { quality: beta, description: "Runs for the requested time, but busy-waiting" }
  state: { seed: 'AES:5a1081f8f55be6ea4cab76a4f271e845a5ef7e070aa41915b354895b0d8e17ba', iteration: 0, retry: false }
  time-at-start: { elapsed:      0.000, now: !!timestamp '2023-10-12T23:58:01Z' }
[1]  + 3638813 running    ./opendcdiag --selftests -e selftest_timedpass_busywait -o -
# Caught SIGINT, stopping current test (press Ctrl+C again to exit without waiting)
  result: crash
  result-details: { crashed: true, core-dump: false, code: 2, reason: 'Interrupt' }
  fail: { cpu-mask: null, time-to-fail: null, seed: 'AES:5a1081f8f55be6ea4cab76a4f271e845a5ef7e070aa41915b354895b0d8e17ba'}
  time-at-end:   { elapsed:     83.333, now: !!timestamp '2023-10-12T23:58:01Z' }
  test-runtime: 80.739
- test: selftest_timedpass_busywait
  details: { quality: beta, description: "Runs for the requested time, but busy-waiting" }
  state: { seed: 'AES:5a1081f8f55be6ea4cab76a4f271e845a5ef7e070aa41915b354895b0d8e17ba', iteration: 1, retry: true }
  time-at-start: { elapsed:     83.333, now: !!timestamp '2023-10-12T23:58:01Z' }
  result: pass
  time-at-end:   { elapsed:    283.333, now: !!timestamp '2023-10-12T23:58:01Z' }
  test-runtime: 200.283
- test: selftest_timedpass_busywait
  details: { quality: beta, description: "Runs for the requested time, but busy-waiting" }
  state: { seed: 'AES:5a1081f8f55be6ea4cab76a4f271e845a5ef7e070aa41915b354895b0d8e17ba', iteration: 2, retry: true }
  time-at-start: { elapsed:    283.333, now: !!timestamp '2023-10-12T23:58:01Z' }
  result: pass
  time-at-end:   { elapsed:    483.334, now: !!timestamp '2023-10-12T23:58:01Z' }
  test-runtime: 200.275
# Test failed 1 out of 3 times (33.3%)
# Topology analysis:
# Loop iteration 1 finished, average time 481.528 ms, total 481.528 ms
triage-results: [ 0 ]
exit: fail

It seems that this covers several "other" issues related to signal handling:

SIGTERM should stop the application (immediately). Currently doesn't break at all.
first SIGINT should stop current running test (log "press CtrlC second time"), at the end application should report "Interrupted" (or any "higher" failure if found). Currently the app reports failure at the end, and the tests run "from scratch" without configuration data (with --max-test-loop-count = -1)
Second SIGINT should kill the application with "Interrupted".

Is "two phase SIGINT" feature valid?  Should # Caught SIGINT, stopping current test (press Ctrl+C again to exit without waiting) be emitted by the app?

The current test is terminated but it is restarted again, for retesting, leading to "exit: fail" and exit code 1 instead.

That is exactly what our team is also observing, thanks for the follow-up. Under SIGTERM in our tests where we would expect graceful handling to stop gracefuly are not stopping and eventually getting into exit: fail and exit code of 1.

The signal handler exists to ensure the tool writes the log before exiting, so you don't have a truncated output. The special case for SIGINT is there to wait for the child process(es) to exit cleanly too.
This bug must have been introduced by 37cb3e5404eea2847c5da5fe576be0268282b8ee, which added support for multiple children.


Added the GlottHMM vocoder and keras

The current merlin scripts are modified to support the GlottHMM vocoder and also added the Keras to train the basic DNN and LSTM models. I have to clean a bit before making a pull-request. In the meantime you can check the modifications here  https://github.com/bajibabu/merlin

@bajibabu I was able to train a GlottHMM model in merlin yesterday and synthesize it. But I had to change a few paths in the config_default file to get it to work, so I think you need to clean it some more. In one place it says the config_default file is located in the tools/bin/glotthmm directory but then it can't find the pulses directory and the hp_16k file. It also doesn't remove the config_test files if you are not running it from the correct directory.

Thanks for the feedback. The code needs a bit polishing, that's why I haven't made any PR till now. . Please let us know the quality of GlottHMM for your task.

Of course. I trained a very small voice yesterday with only 100 sentences. My system is getting parameter files now for a larger set and I will let you know what it sounds like in comparison to WORLD once it is done and trained.

I trained a female voice with 2400 sentences from our own US English database with both the WORLD vocoder and the GlottHMM vocoder. I didn't tweak any analysis parameters to the voice. I think overall the WORLD vocoder produces a better quality for this voice, but I would like to get rid of the buzziness in the fricatives and /h/ sounds to make it sound even better.
world_glotthmm_ex.zip

@dreamk73 The quality of the voice you got here is great! So you didn't change any parameter in the codes? Would you like to share the log file during training process, or at least, the model you used and the acoustic model training error and validation error in the end? Thanks a lot!

Thanks! We use very high quality recordings that we make in-house and the segmentation is manually corrected. The train error is 153.32 and the validation error is 158.71.
The MCD on the test set is 4.653dB, BAP is 0.184, RMSE is 18.839Hz, VUV is 8.271%.
I am not sure what you mean by I didn't change any parameter in the code? I used six TANH layers of 1024 nodes. I tried with 4 TANH layers and one LSTM layer and it took a lot longer to train, but didn't sound any better. The linguistic features are generated with our own linguistic frontend but it still needs improvement w.r.t. predicting phrasing and accentuation.

@dreamk73 Your VUV is quite high....consider inserting acoustic pauses. A basic phone sequence derived from text may not contain pauses as per the audio file -- so you need to insert pauses where there is a pause in the audio file.

That is strange. Phonemes and pauses are based on what is found in the acoustic database. The only thing I can think of is that we merge glottal stop labels with the following vowel labels. For this female voice I do notice some buzziness in voiced fricatives that I don't hear nearly as much in our male voice although when I look at the VUV in the male voice it is even higher at 10.781%.

Okay, I forgot to include another reason as well -- inaccurate F0 extraction can also lead to high VUV.
WORLD does a decent job of F0 extraction -- but can't guarantee for all types of databases.

That is a good point. I need to do a more detailed analysis of the F0 extraction done by WORLD.

I retrained my female voice but used code from https://github.com/bjbschmitt/AMFM_decompy to compute F0 values. I learned that you can't use the interpolated F0 values because then the VUV error becomes 0 and there is a lot of buzziness because unvoiced segments are now synthesized as voiced. But when I just used the generated pitch values and retrained Merlin I was able to get slightly better results. I am still hearing some buzzing in places, but it seems to be less frequent and the voiced sections sound better to me. The MCD is similar (4.647 dB vs 4.653), the BAP is similar (0.185 dB vs 0.184), the RMSE is slightly higher (22.164Hz vs 18.839) but the VUV is much better (4.447% vs 8.271%).
I wonder if there is any tweaking to the WORLD analysis that can be done to improve the pitch calculations for this particular female voice, or whether we should continue with this alternative pitch tracking algorithm.
I have attached a zip with two wavefiles, one with the world F0 and one with AMFM (YAAPT).
ex_world_amfm.zip

Your AMFM samples sounds better than world F0. That is true VUV errors can cause buzzines in synthesized speech.  Can you explain a bit more on what you did here "But when I just used the generated pitch values and retrained Merlin I was able to get slightly better results."

That is what I thought as well. I am glad to hear that you hear it too ;).
When I first extracted F0 values using the AMFM script, I used their samp_interp values, which smooths the F0 contour to have F0 interpolated in the voiceless sections. I read on here a few days ago that Merlin interpolates values internally anyway, so I figured I would try and see if I could give it a smooth F0 contour. I figured since it has a separate BAP track that it would still not generate voicing in unvoiced sections, but that assumption was incorrect. So instead I took the samp_values from the AMFM pYAAPT algorithm.
One thing I had to do was write a script to extract these values, make sure I had an equal number of pitch points as WORLD generates and then write it to a binary file in a similar format as WORLD. There is a slight mismatch between the time stamps of WORLD and pYAAPT. WORLD starts at 0.0 ms and then increases every 5 ms. pYAAPT uses half the windowing length as its starting point. I was able to use a 15ms window, so the first time stamp was at 7.5ms. I found that WORLD typically had 3-4 more pitch values than pYAAPT.

Dear all,
I am just wonder of meaning that the VUV errors = 0%?
In other words, I trained my proposed vocoder parameters under Merlin and I got vuv error = 0%. Is that good? or there is something wrong?
Appreciated your reply.

@dreamk73 @bajibabu A quick question: is there any GlottHMM or GlottDNN vocoder available online?

@licktion  I should have time in April (at last) to finish the GlottDNN documentation and release it.
Here's a mirror for the GlottHMM 1.1 release
https://github.com/mjansche/GlottHMM

@ljuvela Thank you so much!

@ljuvela @bajibabu @dreamk73 I am trying to use GlottHMM vocoder for Merlin. What I get from feature extraction using GlottHMM vocoder is .F0, .Gain, .HNR, .LSF and .LSFsource binary files. I rename them to .lf0, .gain, .hnr, .lsf and .slsf. I use these five features in the training process, but I got validation error nan, train error nan in fine-tuning model. Any clue?

By default, GlottHMM 1.1 output format is ASCII, whereas Merlin probably expects 32-bit float. Even if configured to output binary, GlottHMM gives 64-bit float (double).
You should probably check that the files are in the expected format. SPTK's x2x can be used to do this on command line, for example you can do x2x +af data.ascii > data.float to convert ascii to 32-bit float.
Also the .F0 might need special treatment: unvoiced frames are coded with zeros in .F0, so at some point you need separate the voicing into a .vuv file and transform the F0 to log-scale. Finally, interpolate the lf0 over unvoiced frames before training your models.
It's also possible to use Merlin's default lf0 and vuv, if this seems complicated :)

@ljuvela This is really helpful. It's working now. Thank you so much!


Browserifiability

@substack @calvinmetcalf @feross @maxogden
I've merged all the PRs and synchronised the build scripts between the master and v0.10 branches--this was causing major pain in getting everything merged so I wouldn't be surprised if some things didn't go in properly.
Could you each check over both the master and v0.10 branches and see if they're doing what you wanted to be done for browserifiability for both 1.1 and 1.0 releases of readable-stream?

I've noticed, while using jspm, that the browserified version of 1.13 fails to import.  I traced it to this line:
https://github.com/iojs/readable-stream/blob/3b672fd7ae92acf5b4ffdbabf74b372a0a56b051/lib/_stream_readable.js#L54
which translates to:
var debug = require('@empty');

After changing the file to:
var debug = require('util');

Everything works as expected.  I'm guessing that util is not in the deps list and jspm can't map it.  Is this something to fix here or in browserify or jspm?

util was not supposed to be imported, its set to false in the package.json, likely an jspm issue would be my guess

@AutoSponge if you required util that would include more than the debug, also in the code where it calles debug(*something*) wouldn't that throw TypeError: object is not a function?

@sonewman I think we have the fix for this in SystemJS now.  It will guard against this case by injecting an @empty module (ref above).

closing this as it is browserifiable and if other build systems have issues we can open up issues for those


Added Visitor Counter to the Webapp

🛠 Fixes Issue
Fixes: #639
👨💻 Description
What does this PR do?
I have added a Visitor Counter to your Webapp

Briefly describe the feature or bug fix you've implemented.
Highlight any major changes or added functionality.
Mention how it enhances the project.

📄 Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (adds or updates related documentation)

📷 Screenshots/GIFs (if any)
Before:

After:

✅ Checklist

[x] I am a participant of GSSoC-ext.
[x] I have followed the contribution guidelines of this project.
[x] I have made this change from my own.
[ ] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have added documentation to explain my changes.

Mandatory Tasks

[x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

🤝 GSSoC Participation

[x] This PR is submitted under the GSSoC program.
[x] I have taken prior approval for this feature/fix.

@YadavAkhileshh
I have done the work. Kindly Check it out

@YadavAkhileshh Kindly give level 3 . It will be an Honor


display image support

Thanks for the great project! Can it display image?

Images arent supported in command line itself, so it would be impossible to do anyway


update to file replace/remove

per #37  and #38

@lawinslow I'll leave this one up to you. Please merge or recommend changes.

@lawinslow, @dblodgett-usgs wants to use some of this functionality. Merge?

Yup, I like it.

@dblodgett-usgs use install_github or we can get it up on GRAN in the next day or two.


[PostgreSQL] - Array incorrectly shown in record view

DBeaver 21.2.5 on Mac (PostgreSQL 13.5)
From the following screenshot you can see, that the first field (an array with null value) is not displayed correctly. It is displayed like an empty array showing length 0. But thats incorrect.

thanks for the report

Fixed:

Verified
New bug found in array presentation #14926

I'm using dbeaver as sql editor and PostgreSQL DB. After executing the query, the output shows the array structure but without any data in the array. Is there any configurations to be done in dbeaver or a PostgreSQL issue as 11/17/24?


Adding google auth and enhancing IaC for udmif

Going to try a new method for merging our code changes.


Can't find the tests results

I'm using this action to publish my test results. During the first tests, it worked using 'push' as a trigger to run my test workflow.
Below are the logs when the action was working.

But after some time, without changing anything, the action stopped to show the test results. Below, I have the logs when the action runs.

This is my code related to this action:
- name: Publish test results
      uses: EnricoMi/publish-unit-test-result-action@v2
      if: ${{ success() || failure() }}
      with:
        files: |
          **/test-results.xml

Edit: If I run my tests locally, I can find this path to the test results (test-results.xml).
What is happening here? Any suggests?

It looks like the test-results.xml file has moved. What changes have been done to the repo between 12:55 and 15:48 on 2023-03-13? Is the repo public?
What I usually do is run this step to find them:
- name: File listing
  run: |
    find . -name test-results.xml
    echo "All files:"
    find .

The action only works with relative paths, try:
      with:
        files: |
          "**/*.trx"

@EnricoMi ah ok, is that new? I just went back to v2.0.0 with the trx_files instead of files and the same exact pattern works as I'd expect -- I see the results.

Interesting, I will investigate this...

@SeanKilleen have you tried above fix? files should work with the proper YAML above.

Please reopen if you have further questions.


Add Tutorials to Readme

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change.

Fixes # (issue)

if no issue exists, please create an issue and ask the maintainers about this first

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.

Test A
Test B

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

We'll need to add to the tutorials. Can you please look at confidence videos and put them? Appsmith needs to be front and center of the tutorials. Build Admin Panel without CSS and HTML is not front and center. They just use appsmith.
For example:
https://www.youtube.com/watch?v=CYdeJcD4I8A -> Title in the commit is wrong.
https://www.youtube.com/watch?v=eYYYfuW-kEE -> Another example, this one mark as community
https://dev.to/pjmantoss/how-to-build-an-issue-tracker-with-appsmith-204e -> Another example. Mark it as community
Then the video of Nikhil should work along with the mongodb one


Add S3FS

SELECT * FROM parquet_scan('s3://<bucket>/<file>');
Would be a pretty sweet example.
Mostly building this on top of our buffered filesystem.

@ankoh how would permissions work on this? For example, would this read from ~/.aws/credentials file, need to be entered in to the client, or only work on public buckets/files?

We should definitely include private buckets.
But we cannot really read from the file without prompting the user.
I'd favor a method like
await db.setEnvironment({
  s3_region: 'es-east-1',
  s3_access_key_id='<AWS access key id>',
  s3_secret_access_key='<AWS secret access key>',
});

Wouldn't the SET work as well like in this example?

Sure, we should support that as well.

Added in https://github.com/duckdb/duckdb-wasm/pull/557


Realtime data ingestion / querying

IML is very much a realtime application. We monitor / create changes across a series of agents, and reflect them as soon as possible.
Our existing approach to support this (changing somewhat in 4.1) involves polling for changes at both the manager and agent levels.
This leads to both latency and unneeded overhead looking for changes when nothing has changed.
Instead we can use a realtime database to reflect changes as soon as they occur.
This will help greatly with both scalability and responsiveness, as we only send exactly the data that has changed.
This in general reflects an overall shift to the importance of data being state over data + associated objects being state.

Implement ingestion service for existing postgres data.
Update postgres to add change triggers for new data as it comes in.
Use rethinkdb as the datasource for the realtime service and in turn the GUI.
Look at areas where we can migrate data totally out of postgres and into rethink.

Will be subsumed (more or less) by #727 .


Support Vim keybindings when editing a page

What makes the feature necessary?
Supporting Vim keybindings is useful because many software engineers use Notion as their one-stop shop for note taking.
Additionally, there already exist alternatives to Notion that have implemented this, for instance Inkdrop. However, Inkdrop is a paid service, and lacks many of the major features Notion provides.
The suggested feature is enhancing because navigating a page is already possible, but not using Vim keybindings.
The suggested feature is also client-only.
Together, these points fulfill the criteria in the Contributing docs.
Some example use cases include:

I'm editing a page, and I want to navigate up, down, left or right. I want to use h, j, k, l, b, w, f <char>, F <char>, etc... to improve my productivity.
I want to save my note. I want to use :w instead of CMD + s
I want to alternate between two pages that I am editing. I want to use CTRL + o and CTRL + i instead of constantly searching for the two same pages.

How would the feature work?
See examples above for some scenarios on how to interact with the feature.
From a technical standpoint, Notion may provide some way to remap keybindings such as the arrow keys, SHIFT + arrow keys, etc...

This feature has been requested a few times before, and my answer is still a definite no, for the reasons outlined here: https://github.com/notion-enhancer/desktop/issues/641
On your use-cases:

I'm editing a page, and I want to navigate up, down, left or right. I want to use h, j, k, l, b, w, f , F , etc... to improve my productivity.

This is what arrow keys are for.

I want to save my note. I want to use :w instead of CMD + s

Notion auto-saves.

I want to alternate between two pages that I am editing. I want to use CTRL + o and CTRL + i instead of constantly searching for the two same pages.

Try ctrl+p - it saves your most recently accessed pages, so to switch between 2 pages all you need to do is click ctrl+p and then hit enter on the first result.

From a technical standpoint, Notion may provide some way to remap keybindings such as the arrow keys, SHIFT + arrow keys, etc...

See the issue linked above - to my knowledge there is currently no way to remap keybindings, only add entirely new ones.
Sorry. If you can figure out how to implement Vim keybindings over Notion yourself, feel free to do so and make a pull request. I won't be working on this feature, though.


The earliestSelectableDate is disabled all the time resolved

The earliestSelectableDate is disabled all the time when you give earliest and latest date.
It was a critical feature needed for my project so just giving my contributions here.

@VivekTheConnoisseur Thanks for your contribution. Can you please remove the IDEWorkspaceChecks from this PR and properly format the CVCalendarTouchController?

Hello, I have the same problem. I can not select the earliest date because it is not enable.
Any news ?

Hi
I have rectified this issue..will share you the code of same
Regards
Vivek
On Sat, 2 Nov 2019 at 2:36 AM, FabrizioSposetti-U<EMAIL_ADDRESS>wrote:

Hello, I have the same problem. I can not select the earliest date because
it is not enable.
Any news ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/CVCalendar/CVCalendar/pull/575?email_source=notifications&email_token=ALHVQNK3QWPAZWEFKRJGZP3QRSK4DA5CNFSM4IOSVTG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC4FGTY#issuecomment-548950863,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALHVQNJ245MRXWTLALEAFLTQRSK4DANCNFSM4IOSVTGQ
.

Hi @VivekTheConnoisseur
@elsesiy told you if you could do some changes to the PR so they can merge it.


Use generated detections from custom detector in form of .txt file

Hi, first of all thank you for this repo. I am doing an project where I am using 7 different object detectors and I would like to use their detectons and put them in txt file which I would like to use with your tracking algorithm so I can compare them all. I know that this is possible but can you help me a little more with this?
Kind regards,
Jovan

Yes, this is possible and has been implemented to do tracking on KITTI, where we use the detection from existing models and put them in .txt files.
You may want to refer to how we run on KITTI here. In the implementation of OC-SORT, there is an interface for tracking over given detections as update_public.


[Feature] Parallel Coordinates plot

Is your feature request related to a problem? Please describe.
NA
Describe the solution you'd like
Implement in the sklearn_genetic.plots module a function named plot_parallel_coordinates to inspect the results of the learning process
Describe alternatives you've considered
The function should take two arguments:

estimator: A fitted estimator from sklearn_genetic.GASearchCV
features: list, default=None. Subset of features to plot, if None it plots all the features by default

The function should return an object to plot parallel coordinates according the pandas.plotting.parallel_coordinates function
The data to plot is available on the estimator.logbook object, look the implementation of the plot_search_space function to see how to convert this data to a pandas data frame
The function must select only the non categorical variables, this can be done by inspecting the estimator.space object and comparing against the data types defined in sklearn_genetic.space, i.e Categorical, Continuous and Integer and color against the "score" column. In the same way, it must validate and make a warning if in the features parameter a Categorial one is passed
Additional context
Links of some implementations:

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.plotting.parallel_coordinates.html
https://www.mathworks.com/help/stats/feature-selection-and-feature-transformation.html#buwh6hc-1

Can I try this?

@Raul9595  for sure! All the help is welcome

I just had a few questions.

What would the categorical value be i.e. the 'Name' in the example of https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.plotting.parallel_coordinates.html
Do we include score also in the plot?

What I have in mind is the following:

take the "score" column, and for each row, calculate to what quartile it belongs (Q1 - Q4) using pandas.cqut(.., q=4), call this column "Score_Quartile"
Now, the "Name" parameter will be this new column
We can keep the score column as the last column

If you have any question, let me know. Thanks!

hi @Raul9595, thanks again for the help!
I just realized that pandas doesn't scale each variable independently, making that large scale parameters squeezes small parameters.
I was wondering if you also want to work on this enhancement, to make a plot that can have independently scales for each feature?

Hi @rodrigo-arenas! Yes I can definitely try this out. How do you want to proceed with this -

Normalize everything such that everything shares the same y axis range
Plot them along separate y axis ranges based on their min and max values

Ey, thanks!
The second option would be the one to go, its less confusing for the users as the parameters stay in the same scale they defined

Ok sounds good. Will work on it

Sorry for taking a long time. It may tough to do the above solution using Pandas. Is Matplotlib or Plotly a option?

Ey, don't worry about it. Matplotlib can be a good fit, so we don't add extra dependencies with Plotly
Thanks!

Hi! I am not getting enough time to work on this. I can take a look at it in the future or you can assign it to someone else. I appreciate all the help and am sorry for not being able to complete it.

Hi!
Is this still up for grabs?

Hi,
Yes, the help is welcome on this

Closed as mention in #98


Updated architecture diagram

Updated the architecture diagram with graphics and icons for respective services and to show the various options for running a service. For example, the worker can be .NET or Java.

LGTM

Hi @DivSriv! Thanks for taking the time to submit a PR and apologies for the long delay in getting back to you.
We're actually in the process of updating and cleaning out the repo, which actually includes a lot of simplification. As such, we're actually cleaning things up to align with the previous architecture diagram. Therefore, I'm going to close this PR since the current one will then be accurate.
Again, thanks for helping support the project. If you have ideas for future improvements, don't hesitate to create a new PR or open an issue!