Saving in-memory cache to disk

I'm using molgrid to gridify pairs of receptor (PDB)/ligand (SDF) files in a directory. I'd prefer not to create .molcache2 files ahead of time. But I do use molgrid.ExampleProvider's cache_structs=True to create an in-memory cache during the first epoch. On the second epoch, it runs much faster thanks to the cache.
But is there a way to save this in-memory cache to disk, so if I retrain on the same dataset, I don't need to regenerate it even in the first epoch? And is it possible to save each individual protein/ligand pair to it's own cache file from the in-memory cache?
Here's some code that hopefully explains further what I mean:
import molgrid
import time

# Let's use a custom atom typer
def typer(atom):
    """Typers an atom and returns a tuple of floats and a radius."""

    type_vec = None
    if hasattr(atom, "GetHeteroValence"):
        type_vec = [atom.GetAtomicNum(), atom.GetHeteroValence()]
    else:
        type_vec = [atom.GetAtomicNum(), atom.GetExplicitValence()]
    return (type_vec, 1.5)

t = molgrid.PythonCallbackVectorTyper(typer, 2, ["anum", "valence"])

# Create the data set, with cache_structs=True
dataset = molgrid.ExampleProvider(t, default_batch_size=16, cache_structs=True)

# Populate the dataset
dataset.populate("./out/train.types")

# Iterate through the (small) dataset once. Let's see how long it takes.
t1 = time.time()
dataset.next_batch()
dataset.next_batch()
dataset.next_batch()
print(time.time() - t1)

# It took 4.6 secs

# Now iterate again. It should take a shorter time, because cache_structs=True.
dataset.reset()
t1 = time.time()
dataset.next_batch()
dataset.next_batch()
dataset.next_batch()
print(time.time() - t1)

# It took 0.002 secs.

# It was much faster the second time, showing it was cached. But can I now save
# this in-memory cache to disk somehow, so I don't have to regenerate it every
# time I run the program (even if only on the first epoch)? Also, could I save
# the cache per input protein/ligand pair (rather than saving the whole dataset
# to a single file)?

Thanks for your help with this, and for the great library!

That's.. kinda the point of the molcaches.. https://github.com/gnina/scripts/blob/master/create_caches2.py

Hi David. Thanks so much for sending this link. I'll take a close look at it to see how I can implement it in my own code.

Hi David,
I took a look at the link you sent, and it seems that that is for generating a molecache2 file from gninatypes files. My understanding is that gninatypes files are binary files created using the gninatyper executable (i.e., not python). I am not using gninatyper but my own custom PythonCallbackVectorTyper, which I apply to PDB and SDF files that I load "on the fly."
Is there a way to use molgrid to create the equivalent binary types file so I can then create the molcache2 files using code similar to what you posted? Hope this makes sense.
Thanks.
Jacob

Ah, sorry- you are right. I have not implemented support for vector typing in the memory mapped caches.
I think your original idea is most workable - expose the underlying cache and implement data serialization so it can be written out programmatically once you've gone through the dataset.  I've added this with 5a642b14087be643f059cb6f7c9f3be8b16cf893
Could you test it out and make sure it behaves as expected?

    e = molgrid.ExampleProvider()
    e2 = molgrid.ExampleProvider()

    e.populate(fname)
    e2.populate(fname)

   # iterate over all the data to load it into the cache

   e.save_mem_caches("foo.cache")

   e2.load_mem_caches("foo.cache")
   #e2 should now have all the data in memory despite not iterating through it

Hi David,
Thanks so much for your quick help with this. I spent some time yesterday trying to compile molgrid on the CRC and on one of my lab's computers. I ran into a number of challenging issues. Do you happen to have the setup already in place to easily compile it? Sorry for the trouble.
~Jacob

I went ahead and pushed a new release (0.5.4).  You should be able to pip update to get the latest changes.

Hi David. Just wanted to let you know that this works great. Thanks for all your help with this. This will speed things up a lot for me! ~Jacob


bazel compile errors

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
OS Platform and Distribution:
Linux centos 7.6
TensorFlow installed from source
TensorFlow version: 2.7.0
Python version: 3.9.6
Bazel version: 4.2.2
GCC/Compiler version (if compiling from source): 7.3.1
Describe the problem
Hello, I want to get libtensorflowlite.so with bazel, but I met a problem.  The llvm tar file is wrong, it can't be exacted.
Provide the exact sequence of commands / steps that you executed before running into the problem
bazel build -c opt --cxxopt=-std=c++11 --config=mkl --config=numa --config=monolithic //tensorflow/lite:libtensorflowlite.so
Any other info / logs
Following is the error logs:
Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/2325f363010d3176e96579628cbb96b8fca003a1.tar.gz, https://github.com/llvm/llvm-project/archive/2325f363010d3176e96579628cbb96b8fca003a1.tar.gz] to /home/cjh/.cache/bazel/_bazel_cjh/904c1e9488234a0ff2cc21c6287b3e45/external/llvm-raw/temp9533793750467514112/2325f363010d3176e96579628cbb96b8fca003a1.tar.gz: Premature EOF
I try to extract the temp9533793750467514112/2325f363010d3176e96579628cbb96b8fca003a1.tar.gz file, then a same problem occurs. The downloading file is wrong.
[cjh tensorflow-master]$ tar -xf llvm-project-2325f363010d3176e96579628cbb96b8fca003a1.tar.gz
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

@lantianguhong
In order to expedite the trouble-shooting process here,Could you please fill the issue template,
Thanks!

@lantianguhong Could you please refer the build from source  and check the tested build configurations ?Please let us know if it helps?Thanks!


Use the deduped entities API for loading the entities

This change adds an API handler for the new entities-deduped endpoint and a glorious un-dedupe function to make its response compatible with the existing code. Not an efficient use of memory within the browser, but it at least allows us to get the perf benefit of the new API without having to change all the UI component code.
Because entities-deduped is a much faster API for returning the full set of entity data, I also removed the &showAll=true URL param from the reader and made it always request the full set.
A couple related notes:

With the slimmer API responses, the entities don't include their version numbers (since we only query one version at a time and these are always the same value) or sources (like 97% of these are tex-pipeline with a small remainder of human-annotator)
tags also were generally empty and so don't get returned, but this change can be undone because I recently realized that tags were added as means of filtering out entities with weird bounding boxes.

I've done some ad-hoc testing to verify that it works for the paper https://arxiv.org/pdf/1601.00978v1.pdf but we should test some other papers with symbol content to increase confidence.

I've manually compared some papers between my branch and what's deployed and things have matched up 100% thus far. This paper in particular seems to exercise a lot of the symbol interactivity: https://scholarphi.semanticscholar.org/?file=https://arxiv.org/pdf/2005.06967v2.pdf&showAll=true
I'm therefore reasonably confident this is working and will merge.


Apply gate limits automatically

What is the expected behavior?
For most (every?) gates there is some periodicity involved. The best example are the RLXGate and its cousins. For them it would be great to have automatic modulos applied at some stage, but I am not sure where.

Ideally it would come directly with the gate as anyone implementing the RLXGate would set the limit to 0 - 2*pi or something similiar.
It would also leave the user alone with these limits, when it is not absolutely necessary.

However, I am not sure at which stage the transformation should be applied. In the transpiler ? Become a property of each gate ?

I still do not really see the point why this should be restricted on the Qiskit side at all. This is purely a matter of the backend how it interprets a gate with angles outside of [0, 2Pi] imo. If your backend says that its interpretation is to take a modulo 2Pi, fine, then this can be done on the backend side, no? This is how the standard parametrized gates such as rx work in Qiskit.
Also, depending on the implementations on the backend side, a -Pi/2 rotation might be physically achieved more easily (=shorter or higher fidelity pulse) than an 3*Pi/2 pulse, which, again depends on the backend. Hence I'm not a fan of brute forcing this on the circuit level.

We could achieve this with an optional transpiler pass. I don't think we want to wrap into [0, 2 pi] by default. Some experiments could benefit from wrapping around the BlochSphere more than once.


How to use with singleton pages?

So far there doesn't seem to be a clear outline on how to use this plugin with singleton pages with predefined IDs. A basic outline on how to do this would be useful.

Any news on this? Trying to figure this out too.
Tried this but the field became read only...
import * as Structure from '@sanity/document-internationalization/lib/structure'
import S from '@sanity/desk-tool/structure-builder'
export default () => {
  const items = Structure.getFilteredDocumentTypeListItems()
  console.log('', items)
  const siteSettings = items.filter(i=>i.id === "siteSettings")
  console.log('siteSettings', siteSettings)
  return S.list().id('__root__').title('Content').items([
    S.listItem()
        .title('Settings')
        .child(
          S.document()
            .schemaType(siteSettings[0].schemaType)
            .documentId(siteSettings[0].id)
        ),
        ...items.filter(i=>i.id !== "siteSettings")
    ])
}

@icopp @procrates this has been a bit of a contested issue which has been long standing. The problem here is that the idea of a singleton conflicts with the implementation of translations as this essentially means you no longer have a "singleton". A lot of comments on this have been documented in issue #6 of the previous plugin. For singleton's it might be better to use field level translations as opposed to document level ones.

Thanks for the reply @icopp ! Didnt see the reply before now, when I again encountered the issue again. I did manage to get the editor view, but as soon as i change the language it dosnt show up. So no workaround to this?

The best solution so far I found is this. It might not be the best on Settings page where is just one but, is perfect for pages who share similar document type but have pre-defined ids.
This uses a map of singleton IDs to:

Filter all documents of that type except singleton IDs on the map.
Creates menu items for each singleton ID.

Cons:

The dynamic id generator will still be visible however documents created with that
wont appear on the filtered editor.

deskStructure.js file:
import * as Structure from '@sanity/document-internationalization/lib/structure'
import S from '@sanity/desk-tool/structure-builder'

const customPageStructure = () => {
  const documentType = 'page'
  const navTitle = 'Pages'
  const editorTitle = 'All Pages'
  const icon = null // Add your icon.

  const pageMap = [
    {
      id: 'homePage',
      title: 'Create Home Page',
    },
    {
      id: 'aboutPage',
      title: 'Create About Page'
    }
  ]

  return S.listItem()
    .title(navTitle)
    .icon(icon)
    .child(
      S.documentList()
        .id(documentType)
        .title(editorTitle)
        .schemaType(documentType)
        // Filter all docs except singleton ids.
        .filter('_id in $ids')
        .params({
          ids: pageMap.map(({ id }) => id),
        })
        // Create nav items for each singleton id.
        .menuItems(
          pageMap.map(({ id, title }) => ({
            title,
            intent: {
              type: 'create',
              params: {
                id,
                type: documentType,
                template: documentType,
              },
            },
          }))
        )
    )
}

export default () => {
  const typesWithCustomStructure = ['page']

  return S.list()
    .id('__root__')
    .title('Content')
    .items([
       customPageStructure(),
       ...Structure.getFilteredDocumentTypeListItems().filter(({id) => !typesWithCustomStructure.includes(type))
    ])
}

Personally I use this, however a more improved solution would be to show only the custom menu items. Waiting for new updates.

Pinging this thread again as I've just run into the same issue and, in v3 at least, it appears to be causing a bug: you can create the singleton document fine, and the translation flag even shows up, but the dropdown doesn't contain any languages and the UI is visibly broken (see image below)

For anyone needing help with this issue. I was able to correct it to make it easier to create schemas as pages with their new format.
`// ./deskStructure.js
const pageMap = [
{
id: 'siteSettings', // must match the name of the scheme file name
title: 'Site Settings',
},
{
id: 'homePage',
title: 'Home Page',
},
]
export const myStructure = (S) =>
S.list()
.title('Base')
.items(
pageMap
.map((page) =>
S.listItem().title(page.title).child(S.document().schemaType(page.id).documentId(page.id))
)
.concat(
S.documentTypeListItems().filter(
(listItem) => !pageMap.some((page) => page.id === listItem.getId())
)
)
)
`


Maturity Perspective tagging to Release Wave/Plan items

Hi Team
Any thoughts on tagging the:

maturity levels to the release wave items
https://learn.microsoft.com/en-gb/power-platform-release-plan/2022wave2/power-bi/planned-features
and/or
https://experience.dynamics.com/releaseplans/?app=Power+BI
Would certainly give some visibility and measurability of aligned activity (those 365 audit activity logs!!) to adoption
Cheers
Chris
Document details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 03be611a-54dc-68cf-1eee-c6ae5f884a8c
Version Independent ID: c25b6852-b85b-fa28-3e9f-1fc354b5e2e4
Content: Power BI adoption roadmap maturity levels - Power BI
Content Source: powerbi-docs/guidance/powerbi-adoption-roadmap-maturity-levels.md
Service: powerbi
Sub-service: powerbi-resource
GitHub Login: @peter-myers
Microsoft Alias: v-petermyers

Thanks for your comment, @Chris-Burgess-ACTGOV. This issue has been assigned to the doc author for review.

Hi @Chris-Burgess-ACTGOV - thanks for the suggestion. We'll let the release team know of your suggestion and let them decide whether they will adop your idea. Thanks again.


Broken in V10

Ui is messed up, music player is broken too

Solved with the newest release, I'd been working on this already and just needed to verify a couple things before pushing.


Update IOSMacros.h

Allow IN_BUNDLE macro

Good call, thanks. (Rebased the commit in 19005a2 to change the commit message to follow the established format.)


2.0!

Lets chat about this in the coming days and see if we can split up some work and get the driver up to par with 2.0. Doesn't seem to be major changes to the api.
http://rethinkdb.com/blog/2.0-release-candidate/

Great idea, it does look like it will be pretty straight forward.  I can start creating separate issues for new features this evening.


Auto-refresh-links

Experimental support for automatically refreshing links when Logseq starts.
Required: Feedback on performance issues or API issues that might occur.

Add experimental support for automatically refreshing JIRA links and their info. Enable in plugin settings.


refactor(lib): remove lodash

This PR removes the lodash dependency and replaces the used function with plain javascript.

Greate PR it also solves issue with lodash getPlainObject that doesn't support TS

@obsd for TS support you can look for forked repo - https://github.com/jedmao/redux-mock-store

This is already updated in one of the fork - https://github.com/jedmao/redux-mock-store/blob/master/src/utils.ts

Isn't it good cover these function with unit tests.
You may copy from this PR (in one of the fork) - https://github.com/jedmao/redux-mock-store/pull/45/files


Use gzip to compress docs.json?

Just noticed that using gzip to compress docs.json files was mentioned in https://discourse.elm-lang.org/t/publishing-a-package-with-api-documentation-512kb/1562/11 but there wasn't a tracking issue I could see, so I thought I'd take the liberty of opening one.
I'm running up agains the docs.json size limit for elm-geometry again - I've already gone through a few iterations of trimming down existing docs, and I'm being pretty terse with documentation for newly-added functions, but I'm still up to 510 kb of generated docs. I just tried and gzip takes that down to 70 kb when using default settings, 100 kb when using --fast and 69 kb when using --best. So yes, it looks to me like compressing the docs would certainly provide a good amount of breathing room 🙂

If necessary in my particular case I could split elm-geometry reasonably cleanly into elm-2d-geometry and elm-3d-geometry. So there is a workaround, but it would be moderately disruptive for dependent apps/packages, and I think having two separate packages would be a bit more annoying for everyone.

I believe the current version does that here https://github.com/elm/package.elm-lang.org/blob/master/src/backend/Package/Register.hs#L238
Please message me if you are still having trouble with this!


Check mandatory fields in Settings tab for selection

In the settings area there are mandatory fields, which are displayed as a dropdown. Before saving, it must be checked whether the user has made a selection or whether something was already preselected.
Otherwise the attempt to save fails with an error message with reference to logs, which however do not give the user the required info of the mandatory fields.

I can't reproduce the error.
I open settings page and click on save (without changing anything) and no error occurs.


First timer PR greetings action

Closes #15

The changes were supposed to be in just one file. But I am currently seeing 4 can you please resolve that


When post is updated, index page should be re-rendered

cc @jmglov

@borkdude This can now be closed. 🙂


python38Packages.pathvalidate: 2.4.1 -> 2.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.pathvalidate is: "A Python library to sanitize/validate a string such as filenames/file-paths/etc"
meta.homepage for python38Packages.pathvalidate is: "https://github.com/thombashi/pathvalidate"
meta.changelog for python38Packages.pathvalidate is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.5.0 with grep in /nix/store/3wm77b7vfcabfwsvkq0nq2jj4asin9x5-python3.8-pathvalidate-2.5.0

found 2.5.0 in filename of file in /nix/store/3wm77b7vfcabfwsvkq0nq2jj4asin9x5-python3.8-pathvalidate-2.5.0

directory tree listing: https://gist.github.com/5b0354b1077f227944a3956822c39d61

du listing: https://gist.github.com/e87ff690d499fa68fbd00dd58a563c69

Rebuild report (if merged into master) (click to expand)

16 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
4 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
electron-cash
paperless-ng
python38Packages.pathvalidate
python39Packages.pathvalidate

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3wm77b7vfcabfwsvkq0nq2jj4asin9x5-python3.8-pathvalidate-2.5.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.pathvalidate https://github.com/r-ryantm/nixpkgs/archive/8fc2bda3c44fe57c309b394d69dd051c57e01080.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3wm77b7vfcabfwsvkq0nq2jj4asin9x5-python3.8-pathvalidate-2.5.0
ls -la /nix/store/3wm77b7vfcabfwsvkq0nq2jj4asin9x5-python3.8-pathvalidate-2.5.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

paperless-ng

3 packages built:

electron-cash
python38Packages.pathvalidate
python39Packages.pathvalidate

Maintainer pings
cc @oxalica for testing.

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

1 package failed to build:

paperless-ng

3 packages built:

electron-cash
python38Packages.pathvalidate
python39Packages.pathvalidate


code structure update

close #52
@alxmrs please review this PR

Added my suggestions.
Is there any changes needed @alxmrs ? what you say?
BTW Thank you for the contribution! @rajveer43.


Document way to depend on specific step/task result

Hi,
I've couldn't find a way in the documentation how to create a condition in a step which only is true if a certain another step failed.
Example:
- bash: echo "Do some Step A stuff
  name: A
- bash: echo "Do some Step B stuff
  name: B
- bash: echo "Do some Step C stuff
  name: C
- bash: echo "Do some Step D stuff if B was executed and failed
  name: D

I want D to be executed only if B was executed and failed. But not if A or C failed.
I know I could introduce a variable which is set at the end of B and used as a condition in D, but this seems to be more like a workaround.
Is there way how I can access the result of B?
Or do something like this:
- bash: echo "Do some Step D stuff
  name: D
  condition: failed('B')

or
- bash: echo "Do some Step D stuff
  name: D
  condition: eq(B.result,'SucceededWithIssues')

Thanks and Best Regards

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

ID: 3f151218-9a11-0078-e038-f96198a76143
Version Independent ID: 09c4d032-62f3-d97c-79d7-6fbfd89910e9
Content: Conditions - Azure Pipelines
Content Source: docs/pipelines/process/conditions.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@TimtationOne Thanks for your question. This issue might be better handled as a product question - or a feature suggestion. To make sure it gets in front of the right people, please submit your issue here.


Themes bug

One and the same theme can be install many times.
Uninstall theme not working (win x64).

It's intended that you can install the same theme multiple times, since there is no easy way to check if a theme has already been installed or not.
Uninstalling themes works fine here. Can you open the developer tools and see if you can see any errors? To remove themes manually, you can empty the folder %APPDATA%\Sabaki\themes.

I no see errors in console, just this http://imgur.com/s1I0ORE

This means that Sabaki couldn't move the theme folder to the trash. Can you try and see if you can manually remove the theme folder? Or do you, by any chance, have the recycle bin disabled? I just found this issue: electron/electron#4974

Now it is clear. Of course recycle bin disabled.

I think we should keep this issue open. Sabaki should simply remove the theme folder permanently if recycle bin is disabled.


Wrong typing for maxRetriesPerRequest in ioredis v5?

The documentation states that we may set maxRetriesPerRequest to null to get pre-v4 behaviour:

Set maxRetriesPerRequest to null to disable this behavior, and every command will wait forever until the connection is alive again (which is the default behavior before ioredis v4).

Unfortunately, the types included in v5 only allow number values for this option. Is this a bug?

Yeah it's a bug. The option should accept null. Thanks for pointing this out!


fix: adds a new rule to show selectedRow in autocomplete's best match

Description
Refactored sorting logic for autocomplete.
Fixes #12790
Fixes #14990
Type of change

Manual

How Has This Been Tested?

Enhancement

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

@Rishabh-Rathod Can you check out the DP ?

/ok-to-test sha=bf039b4

/ok-to-test sha=29c1753

/ok-to-test sha=4ef3be0

/ok-to-test sha=fa6bb61

/ok-to-test sha=04be347

/ok-to-test sha=ebe6dda

/ok-to-test sha=3b1c040

/ok-to-test sha=b963d82

/ok-to-test sha=71b76eb

/ok-to-test sha=0c201a2

@Aishwarya-U-R DP has been tested and verified, only Cypress tests need a check from you :)

/ok-to-test sha=ca5e3f3

/ok-to-test sha=b4c519a


[don't merge yet] Fix package names and travis config

Fix package names and travis CI config. (work in progress)

I am really concerned about so many hardcoded directory paths - tomorrow we may change the repo name to Fabric for Deep Learning, or it may move in its own org. Is this something we can make configurable?

Generally agree with you @animeshsingh , but this is mostly due to the way packages are managed in go. Let's keep it in mind for future iterations, though.
Tests are passing, merging the PR now.


[Bug] Can't install "2.10.2-spring2024" Version

Describe the bug
Clone the git without issue, then when running:
./scripts/pi-setup/auto-install.sh
get an error:
can't read /etc/needrestart/needrestart.conf: No such file or directory_
Steps to reproduce the behavior

git clone -b v2.10.2+spring2024 https://github.com/project-chip/certification-tool.git
cd certification-tool
./scripts/pi-setup/auto-install.sh

Expected behavior
Install to commence
Log files
No response
PICS file
No response
Screenshots
No response
Environment
TH version: 2.10.2
Raspberry-pi 4
OS: Ubuntu 20.04.5 LTS 64-bit
Additional Information
No response

Realised incorrect version of Ubuntu, will try again with 22.04.05

Tried with 22.04.5, and install started. However, I get the following error:
satisfy:command-line : Depends: python3-pip (= 22.0.2+dfsg-1ubuntu0.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages

I managed to get the install to work by changing the ~/certification-tool/scripts/ubuntu/1-install-dependendcies.sh
_- "python3-pip (=22.0.2+dfg-1ubuntu0.4)"

"python3-pip (=22.0.2+dfg-1ubuntu0.5)"_

The install also gave an error for
poetry: command not found
poetry for python can be installed using:
pip install poetry
Then perform autoinstall.sh again
python install can be checked using:
python3 -version

I also encountered issues with poetry install. I have tried using - pip install poetry, but it did not work.

@ksharf is this still an issue?

The workaround worked for me and it installed


net/http: How can I cancel a Dial in net/http/Transport DialContext or "how can http client use only tcp6."

What version of Go are you using (go version)?
go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jinxufang/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jinxufang/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5_/2mhh8j2n4tdgndp9_9b0stzm0000gn/T/go-build163807452=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I create my own DialContext because want I to detect if a domain is ipv6-only. code below
package main
import (
	"errors"
	"fmt"
	"net"
	"net/http"
	"syscall"
	"time"
)
func ModifiedTransport() {
	var MyTransport = &http.Transport{
		DialContext: (&net.Dialer{
			Timeout:   30 * time.Second,
			KeepAlive: 30 * time.Second,
			DualStack: false,
			Control: func(network, address string, c syscall.RawConn) error {
				if network == "ipv4" {
					// cancel connection here because the site could connect via IPv6  and client.Get("http://myexample.com") return a non-nil err.
					return errors.New("you should not use ipv4")
				}
				return nil
			},
		}).DialContext,
		MaxIdleConns:          100,
		IdleConnTimeout:       90 * time.Second,
		TLSHandshakeTimeout:   10 * time.Second,
		ExpectContinueTimeout: 1 * time.Second,
	}
	var myClient = http.Client{Transport: MyTransport}
	resp, myerr := myClient.Get("http://www.github.com")
	if myerr != nil {
		fmt.Println("request error")
		return
	}
	var buffer = make([]byte, 1000)
	resp.Body.Read(buffer)
	fmt.Println(string(buffer))
}
func main(){
	ModifiedTransport();
}

What did you expect to see?
I want to cancel the request if domain can not connect via IPv6.
What did you see instead?
I do not now how to close the request even when I can enter network == "ipv4".
addition
Python can solve the question via https://stackoverflow.com/questions/33046733/force-requests-to-use-ipv4-ipv6. I do not know how to do it in golang. Could someone one help me?
Thanks so much!

I'm closing this issue. Please use a forum, where there will be more people who can help you. See https://golang.org/wiki/Questions . Thanks.


Support for Moonbase Alpha

Closes #550
Changes proposed in this PR:

Upgrading Ocean.js to 0.14.6
adapt explorer links for another blockscout-based network explorer
ocean.js ConfigHelper().getConfig() workaround to remove infura key from RPC URL just like with polygon
add Moonbase Alpha to chain user preferences (only visible when no wallet connected)

Made all the UI production-ready for this particular network and also added it to the chain user preference for demo purposes, helps when demo participants just visit the URL:

Some findings:

do not have any DEV or moonOCEAN or however they're called so did not test any chain flows, but I can see test assets were successfully published and all seems to be working from presentational side
small naming thingy: ocean.js config names the network as moonbeamalpha, which does not exist. It's either Moonbeam Testnet or Moonbase Alpha. So we should rename the config network name over there and then update this PR
it's a testnet anyway so think it would be fine to roll this out without additional user hints, like help messages on how to get network tokens
before live rollout, we should remove the chain user preference again to keep it focused on mainnets only

my fault on that naming thingy.  but this would require a new release of contracts + new release of ocean.js.  should we just for the demo?

I think it's good enough as it is for the demo.

Currently, I'm still getting an error message when trying to upload a dataset...


📊 ai surveys: add datasets

Just a minor note from a quick glance: for all indicators that are percentages, both unit and short_unit should be % (currently you have unit as percent).

Another suggestion would be that the title and description of a PR should be more descriptive. At least one line explaining the goal of the PR.

hey! thanks a lot for taking a look! I will make all the changes this morning but also have two more surveys I've almost finished the scripts for. can I add them on here as well? I'll try to take into account all the comments above before I add them.

hey! thanks a lot for taking a look! I will make all the changes this morning but also have two more surveys I've almost finished the scripts for. can I add them on here as well? I'll try to take into account all the comments above before I add them.

No worries! Ideally, new work should happen in a separate PR. You could create a sub-branch from your current ai_surveys branch (say, ai_surveys_additional), and then once finished create a PR to merge ai_surveys_additional -> ai_surveys. That way, your reviewer of the new PR would need to only see the new files that have been added.
However, in this case, given that there are so many changes expected in the current branch, it's easier to add those new surveys to this same PR. But then please let me know what files are new (so that I don't review again the old files), thanks.

@veronikasamborska1994 - would a review from me still be helpful?

@veronikasamborska1994 - would a review from me still be helpful?

I think I've made all of the changes that @pabloarosado suggested. I am guessing he needs to take a look as he'd be giving the one giving approval? so maybe it's ok for this one? I'll have many more soon :)

@pabloarosado hi! I am not sure why the changes aren't showing up but I've implemented all your suggestions a few weeks ago. do you mind taking a look at some point and see if you are happy with this now? thank you :)

@pabloarosado hi! I am not sure why the changes aren't showing up but I've implemented all your suggestions a few weeks ago. do you mind taking a look at some point and see if you are happy with this now? thank you :)

Hi Veronika, thanks for the reminder. I'll look into this tomorrow.


Build UI routes

Build UI routes for listing all partners, creating and editing a partner, and the admin details.

Oop- Will definitely fix that title, thanks. Should I make it the same tab when it's navigating to person ui as well?

I think in our design the only "new-tab" links we will want will be from search - I think everywhere else we will stay in tab, espically on route-to-route links.


Add a tooling API model that invalidates the VFS

This PR introduces a parameterized tooling API model which can be used to send file system changes via the tooling API to Gradle.

@adammurdoch This PR introduces the parameterized model to trigger VFS invalidation. You said you would prefer a new API. Did you have something in mind? What kind of new method on ProjectConnection should be used?

Closing, since we won't add a model.


ggsave and theme don't work

I have installed the package using both ways, but  'ggsave' and theme aren't exist in the package. I have seen the update about ggsave on the issue you have created.
pip install git+https://github.com/yhat/ggplot.git  OR pip install -U ggplot
For example this don't work
from ggplot import ggsave
Help?
Dereje

Hey @demis001
Use the .save method on the plot you've created. For instance:
from ggplot import *
p = ggplot(mtcars, aes(x='mpg')) + geom_histogram()
p.save("my-plog.png")

Thank you!
I have seen the docs about that after I have created the issue.
One more thing, how do adjust the axis label. For example I want to make the x label vertical. This don't work....
theme(axis_text_x = element_text(angle=90))
Dereje

Unfortunately it's not implemented yet 😦

How about coord_flip() to create horizontal bar?
Sent from my iPhone

On Jun 14, 2016, at 5:49 PM, Greg Lamp<EMAIL_ADDRESS>wrote:
Unfortunately it's not implemented yet 😦
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I saw the theme() class definition in the repository, but I take it it's not implemented? I'm trying to remove the margin from around the plot, similar to theme(plot.margin=0) in R

Don't have that either. Unfortunately i's one of those things that seems like it's really easy (just flip the x and y axis) but the way it's implemented makes it fairly challenging--it'll require writing a lot of new code. I will open a new issue for it!

@demis001 element_text is on master and should be released very soon! If you want to try it out you can install it using pip install git+https://github.com/yhat/ggplot.git

@lamp Thanks! I had Installed as you have suggested. I will look the docs for element_text.


Constraints that are not == don't appear to be passed along

As pointed out on slack, it's not clear how to get a constraint that isn't ==
I added a spew to table.Call and I don't see the constraints coming in.
If I look at a trace in panic, I don't see much in between that, and the thrift layer.

This issue appears present in both the python sdk, and the go one. And in both osquery 4.5.1 and 3.3.2. Upstream it is!


what is the code  result ?

Hello,the final result of your code  is  a model of OBJ file (which can be imported into 3D Max) or is it just a hand of 3d image displayed in the picture, such as looking at the picture representation:

or obj file like this:

Hi, it seems like the result is not very promising in your "the picture representation", and you might try to enlarge the weight of shape parameter regularizer.
And , our code adapt original manopth code, so we could display the 3D hand mesh with open3d. Please be so kind to check our code caresully in here

i have run this code,this result is just a 3d model in a picture
At 2021-11-12 13:59:14, "Hao Meng" @.***> wrote:
Hi, it seems like the result is not very promising in your "the picture representation", and you might try to enlarge the weight of shape parameter regularizer.
And , our code adapt original manopth code, so we could display the 3D hand mesh with open3d. Please be so kind to check our code caresully in here
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

i have run this code,this result is just a 3d model in a picture ,like tis ,this is the same as your ?

“we could display the 3D hand mesh with open3d” your mean is just see this mesh  effect,dont output a model for import the 3d software,such as 3d max 、maya ?

e

Actually, it would be very easy to save the hand mesh as the faces (check here) and verts (check here) are available.

I dont understand what your mean how to do it ？
At 2021-11-12 17:10:52, "Hao Meng" @.***> wrote:
e
Actually, it would be very easy to save the hand mesh as the faces (check here) and verts (check here) are available.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

If you are famliar with computer graphics, such operation could be very easy to implement.
Here is an example to save hand mesh in the format of '.obj'.

I see it .sorry,I just learn to CG.i need learn to more
At 2021-11-12 17:42:58, "Hao Meng" @.***> wrote:
If you are famliar with computer graphics, such operation could be very easy to implement.
Here is an example to save hand mesh in the format of '.obj'.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

I see it .sorry,I just learn to CG.i need learn to more At 2021-11-12 17:42:58, "Hao Meng" @.***> wrote: If you are famliar with computer graphics, such operation could be very easy to implement. Here is an example to save hand mesh in the format of '.obj'. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Never minds. I am also a beginner in computer graphics.


Label and Cluster evaluation?

hey,I m playing around with k means clustering and at evaluation time i was playing with Old friend Iris data.so i m new to unsupervised learning heres my question:
how to evaluate cluster with label column 'species in case of iris'
heres what i m doing  simple stuff for getting familiar with clustering in tribuo:
Map<String,FieldProcessor> fieldProcessors = new HashMap<String,FieldProcessor>();
//TOKENIZER THE TEXT INTO COLUMN OF EACH WORDS USING TOKENPIPELINE OR WE CAN USE BASEPIPELINE
fieldProcessors.put("Species",new IdentityProcessor("Species"));
RowProcessor rowProcessor = new RowProcessor<Label>(new FieldResponseProcessor("Species","UNK",new LabelFactory()),fieldProcessors);
CSVDataSource irisData = new CSVDataSource<Label>(Paths.get("C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\Iris.csv"),rowProcessor,true);
TrainTestSplitter splitIrisData = new TrainTestSplitter<>(irisData,
                      /* Train fraction */ 0.7,
                            /* RNG seed */ 0L);
MutableDataset train = new MutableDataset(splitIrisData.getTrain());
MutableDataset test = new MutableDataset(splitIrisData.getTest());
//K MEANS CLUSTERING TRAINER
KMeansTrainer trainer = new KMeansTrainer(5,100,Distance.EUCLIDEAN,5,1234);
Long startTime = System.currentTimeMillis();
KMeansModel model = trainer.train(train);
System.out.println("Feature:"+model.getFeatureIDMap().get("B"));
Long endTime = System.currentTimeMillis();
//WE CAN SEE OUR CLUSTERS(CENTROIDS) BEST 'K' CENTROID WE GOT AFTER 10 ITERATIONs
DenseVector[] centroids = model.getCentroidVectors();
for (DenseVector centroid : centroids) {
    System.out.println("cLUSTERS:"+centroid);
}
ClusteringEvaluator eva=new ClusteringEvaluator();
ClusteringEvaluation c= eva.evaluate(model,train);
System.out.println(c.adjustedMI()+"-----"+c.normalizedMI());

AND I M GETTING THIS:
Exception in thread "main" java.lang.ClassCastException: org.tribuo.classification.Label cannot be cast to org.tribuo.clustering.ClusterID

HOT TO EVALUATE AND SEE IF MY CLUSTERS CORRECTLY CLASSIFFIFIED CLASSES OR NOT
and one more thing i have heard about K-mode clustering .is that kind of thing exist for now.?

You can't use a clustering evaluator on a classification dataset. You washed all the types off which removes the guarantees about the dataset, and the only reason it didn't throw a ClassCastException during model training is that the KMeansTrainer doesn't check the output type (which I guess it should do as this shouldn't have happened).
If you want to compare how the clusters line up against classification labels then you should write a new ResponseProcessor that converts the labels into numerical ids which can be consumed by the ClusteringFactory to create new ClusterIDs. That will give you a DataSource<ClusterID> and you can keep the generic types all through the computation. Then the ClusteringEvaluation will compute the mutual information between the predicted cluster ids and the ground truth "cluster ids" (i.e. the labels). If that mutual information is close to 1.0 then the clusters are similar to the labels, if it's close to 0.0 then the clusters and labels don't line up very well.
Looks like k-modes is for categorical data. We've not looked into that algorithm. We're considering adding k-medoids which guarantees that the cluster is a datapoint, rather than the mean of the cluster, but we've not implemented it yet.

okk so can you just pin me some code snippets of how can i use responseProcessor and how to use clusteringfactoy to get what i want..there are too many classes interfaces so kind of lost in docs.

Something like this should be sufficient. I've not tested it, and it's not going to be part of Tribuo.
public class IrisClusterResponseProcessor implements ResponseProcessor<ClusterID> {

    @Config(mandatory = true,description="The field name to read.")
    private String fieldName;

    private final OutputFactory<ClusterID> outputFactory = new ClusteringFactory();

    private IrisClusterResponseProcessor() {}

    public IrisClusterResponseProcessor(String fieldName) {
        this.fieldName = fieldName;
    }

    @Override
    public OutputFactory<ClusterID> getOutputFactory() {
        return outputFactory;
    }

    @Override
    public String getFieldName() {
        return fieldName;
    }

    @Deprecated
    @Override
    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    @Override
    public Optional<ClusterID> process(String value) {
        if ("Iris-setosa".equals(value)) {
            return Optional.of(outputFactory.generateOutput("0"));
        } else if ("Iris-versicolor".equals(value)) {
            return Optional.of(outputFactory.generateOutput("1"));
        } else if ("Iris-virginica".equals(value)) {
            return Optional.of(outputFactory.generateOutput("2"));
        } else {
            return Optional.empty();
        }
    }

    @Override
    public ConfiguredObjectProvenance getProvenance() {
        return new ConfiguredObjectProvenanceImpl(this,"ResponseProcessor");
    }
}

okkk so everytime i need to give dataset i need to do this  okkk thanks ..is there any automatically stuff you are planning for this kind of stuffs. i have just done writing my own uniqueFeatureEncoder class by implementing FieldProcessor it was easy but if some param options is provided on API side will be good like for binarized feature.binary,for real data just add real.. btw thanks for your help .and quick support..

Well, in general you shouldn't try to feed classification data to a clustering task. Tribuo is setup to prevent users from confusing the prediction tasks like that, so it needs some tricks to make it work.
We add new implementations of FieldProcessor, ResponseProcessor etc as we discover a need for them either in the community or from our internal work. The columnar infrastructure is designed to be flexible, but it has to get the information about what the type of each feature is from somewhere, we don't want it to have to read the dataset twice just to understand it (nor do we want it to make guesses about the feature types as those might be tricky to undo. If you've got a concrete feature request then make a new issue and write it up in some detail, I'm not clear exactly what you're asking for at the moment as there are already field processors that emit binary features and real valued features.

okk one last think before wrapping up ...WHAT SHOULD I CHOOSE to make my feature categorical into unique encoding but just one feature not all features for all classes ..whether i should use REAL or CATEGORICAL or WHAT  ?

I don't understand the question, could you give an example?

for eg.i have a column shirt size=[tiny,medium,large] and i want to encode it into numeric but no features for every class just want one features with class labelled as numbers[1=tiny,2=medium,3=large] so as i have written my own rowprocessor what should i use
should i use this GeneratedFeatureType.BINARISED_CATEGORICAL or this GeneratedFeatureType.REAL or this GeneratedFeatureType.CATEGORICAL ....theres also on this GeneratedFeatureType.TEXT..which one should i choose ?

It's GeneratedFeatureType.CATEGORICAL. We're working on further changes to Tribuo's internal type system, as at the moment that enum only really interacts with the LIME explanation module, but in the future it will control how the feature statistics are computed.

yes i m waiting for it thank for your grest support.
On Thu, 10 Dec 2020 at 01:00, Adam Pocock<EMAIL_ADDRESS>wrote:

It's GeneratedFeatureType.CATEGORICAL. We're working on further changes
to Tribuo's internal type system, as at the moment that enum only really
interacts with the LIME explanation module, but in the future it will
control how the feature statistics are computed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oracle/tribuo/issues/105#issuecomment-741997592, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AL3BT7E4NZBUO4GJOBII5NDST7F4LANCNFSM4UTONYBA
.


Use guard statement for early exits in removeAll() in HashedCollections.swift.gyb

I agree with @westerlund, the proposed version is harder to read.

I agree that in this particular line it is harder to read. However, the nice thing about guard is that the compiler enforces a return statement.
Is there a guideline when you should use guard or if for early exits? I assumed it is bad style to use if for early exits.

Definitely use guard for early exists when you are unwrapping an optional -- that allows you to bind the unwrapped value to a local variable.  In other cases it is frequently the case that one ends up with a double negative.


break: let landscape handles uid

Rather than generating an uid for the host client-side, let landscape generates it and pass it on registration. This is done by:

change id to uid in HostAgentInfo message. Until the host is registered to landscape, uid will be empty.
if initial message has an empty uid, landscape will generate one for this host, register it and then send back an AssignHost message with this uid. We are using a dedicated message rather than a string directly to support future possible extension of the registering message.
finally, the hostagent will store it, and any subsequent message will send back this uid along with any udate on instances information.

One detail possibly missing: the registration message we use for clients currently includes a computer_title field, which is a human-friendly identifier for the computer. Is there something you could send as such or should we derive it on the Landscape side, maybe from the hostname?

One detail possibly missing: the registration message we use for clients currently includes a computer_title field, which is a human-friendly identifier for the computer. Is there something you could send as such or should we derive it on the Landscape side, maybe from the hostname?

For me, that was the hostname which is part of each transaction, I don’t think we will have any other information to send. Do you prefer us to rename the field or do you think there is anything else we can send?

No need to either re-name the field or send anything else. If that's all you have, then that's fine and we can work with it. I don't anticipate any complaints.

Perfect, let’s merge then! Thanks for your feedback.


Reproducibility on GLUE

Hi,
I am currently working on reproducing the results from the paper on the GLUE benchmark. However, my current results are very far from those in the paper. Have you already conducted experiments in this direction or could you reproduce the scores?
I have a running implementation compatible with Huggingface if you want to try it out:
https://github.com/paul-grundmann/transformers/blob/fnet/src/transformers/models/fnet/modeling_fnet.py
In my case, it seems that the model steadily learns on the masked language modeling task but does not improve on downstream tasks at all even after 200k pre-training steps.

No, I have not yet evaluated on downstream tasks, but it's definitely in the pipeline. Maybe I can get some runs going this weekend. But, I did some finetuning on some private tasks and it did pretty well, so I don't think there will be many problems. What implementation are you using for finetuning on GLUE?
PS: As I see you are a fellow Berliner working on FNet, maybe we can connect outside of GitHub some time :)

Also, are you planning to contribute FNet to HuggingFace? I think this would also be a cool thing.

As I see you are a fellow Berliner working on FNet, maybe we can connect outside of GitHub some time :)

Yes sure :)
My plan was to use the model for some downstream tasks with long documents. I just thought it would be easier to implement everything in the Huggingface ecosystem to leverage existing implementations of GLUE and such. But yes, if everything goes well, then of course it would be a great idea to contribute the model and source code to Huggingface.
For evaluation, I used the run_glue.py script in the examples with the following parameters.
python run_glue.py \
--task_name qnli \
--model_name_or_path ./fnet \
--tokenizer_name bert-base-uncased \
--output_dir glue \
--do_train \
--do_eval \
--per_device_train_batch_size 16 \
--per_device_eval_batch_size 64 \
--learning_rate 1e-5 \
--num_train_epochs 3 \
--dataloader_num_workers=8 \
--max_seq_length 128

I tested SST2, CoLA and QNLI but the model did not improve on those tasks. Neither with my custom pre-training scripts nor with the one from Huggingface run_mlm.py.
But of course I cannot exclude that it is due to my implementation...

I guess you are not using the official checkpoint converted to fit your hugging face model? Because you also seem to use a different tokenizer. I conclude that you did run a pre-training from scratch. On what dataset? For how long? What was the MLM score? Maybe the model is just not trained up enough to handle fine-tuning.

I just ran SST2 from the FNet base checkpoint converted to PyTorch and it learned pretty smoothly.
But I only got 0.89 validation accuracy as opposed to the  0.95 stated in the paper for FNet base.

Hi Erik, I just ran some internal benchmarks on a custom pre-trained FNet base (12 layers). In doing so, I realized that I forgot the attention mask in my implementation and that I had some padded inputs in both my training and my downstream tasks. So I adjusted my implementation to simply multiply the attention mask with the embeddings in the fourier layer. This seems to be working. GLUE is still significantly worse than with a normal BERT base, but the results are no longer purely random. (~84% accuracy on SST2, ~11% correlation on CoLA).
In our internal retrieval benchmarks it is also 50%-75% as good as BERT depending on the task. If you want to play around with it, I can send you the weights. They should work with the Huggingface implementation. The model was pre-trained for 125k steps with a learning rate of 7e-4, Batchsize: 2048 on an English Wikipedia and PubMed corpus


License

What's the license for code of this custom integration?
I'd like to use parts of this code for python-miio which is licensed under GPL

Hi
I have not added a license.
What do you want to use it for?
I will add one now?

@Concentricc I was thinking of using code from this repo instead of one in python-miio repo, but ended up writing it from scratch while looking both into your code and original repo
I'm trying to get Dreame vacuum supported in homeassistant without custom components, see rytilahti/python-miio#1059


[wip] tweak: remove reconciling status on copied csvs

Description of the change:
Removes continuous reconciliation of status changes between the original and copied CSVs. This disables status reconciliation both ways, between the original and the copy and the copy and the original.
Note: there is still an initial update of the status on the copy (setting status fields that indicate the copied CSV is in fact a copy) which will cause a spike in resource utilization in the api-server when the CSV is installed across many namespaces. However the update is small, and after that initial spike no further changes to the status in the original CSV will be reflected in the copy.
Motivation for the change:
Reconciling CSV statuses between original <-> copy has been observed to cause performance issues on clusters with large numbers of CSVs across multiple namespaces.
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /docs
[ ] Commit messages sensible and descriptive

We will eventually get rid of copying CSV altogether so this PR is no longer needed.
/close


vagrant: update examples documentation

After the changes made in #942, much of the documentation in #906 is outdated. We should update it! Are you interested in helping with this, @larry-svds?

@siddharthist I can give it a shot this weekend.

@siddharthist I looked a #975 and it looks like the documentation is done.  Let me know if I'm missing something there.

@larry-svds yeah, I went ahead and did it :)

Shouldn't this be closed now?

We'll close this when #975 is merged.


Thread registration returned error code 120022

Thread registration returned error code 120022. Twilio Client APIs will be executed in the main thread. Please file an error report with this description.
Getting this error and crashing when disconnecting the call
Swift 3.1
iOS 10.0
Twilio Voice 2.0.0-beta20

Hi @hasgar
Thanks for reporting the issue. We are actively working on improving the threading model and safety of the SDK and will soon release a new version with the improvement.
Just curious, is this bug happening every time when you try to disconnect the call or does it require some specific steps?
Thanks
-bobie

Hi @hasgar
We've just released 2.0.0-beta21 which includes an internal threading model & safety improvement. It should also address the issue you are experiencing.
Thanks
-bobie


Explicitly install vscode-nls as a dependency

features/json/projectJSONContribution.ts uses the vscode-nls package; however, up until now, it wasn't actually included as a direct dependency:
$ npm ls vscode-nls
+--<EMAIL_ADDRESS>| `--<EMAIL_ADDRESS>|   `--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>  `--<EMAIL_ADDRESS>
It's probably a good idea to include it so that its version can be controlled :).
(By the way, what's up with the various zero-width breaking spaces in the package.json? npm keeps trying to convert them to...something else.)

@50Wliu Thanks for this change.

(By the way, what's up with the various zero-width breaking spaces in the package.json? npm keeps trying to convert them to...something else.)

The goal is to keep certain example urls from being turned into links when viewed in VS Code. It predates me, so perhaps there is a better way now.


Implement random collections including generic type handling with review comments addressed.

Great! Thank you for the update.
This was the last feature planned for the 2.0 release, I'll update the documentation and prepare the release.
Many thanks for this addition
Kind regards

Hello Fred,
Looks like we are not yet done with this feature:

primitive arrays cause an exception (for example field of type int[] numbers;)
composite collections cause an exception (for example Map<String, List<String>> synonyms;)
Many collection types are not supported yet: BlockingQueue, HashTable, LinkedHashSet, ConcurrentHashMap, and many others.

I didn't imagined that populating a Java collection with random data would be that hard :rage:
I will fix these issues in a future release, this was just for your information.
Regards
Mahmoud

I'm disappointed I didn't think to test that. It's pretty obvious that it can't work now that you point it out.


Add map to assertion engine syntax

Allow iteration modification on iterable return values.
For example cleaning out changing parts of a value (such as uuids).

Nope


Update challenges with hint on how to get to the array

Challenges:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype
The assumption that the camper will know to use this inside the callback to get to the array is pretty unfounded in my opinion. The challenge text gives no hints or information about this what so ever.
I think this challenge should be updated to include some sort of hint, or just straight up tell the camper how to get to the array inside the callback.

In a prior challenge, campers are taught about objects (the way I see it, everything in JavaScript boils down to an object), and how methods of an object have access to the object via this:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/object-oriented-programming/make-code-more-reusable-with-the-this-keyword
I do think the Array.prototype.map and Array.prototype.filter challenges are of the more difficult challenges, but I do not think it unreasonable for campers to accomplish them, or to discover the need for this.

I don't think the OOP part of the curriculum is of much help to people in figuring this out. The challenge seems completely oblivious to this missing piece of information, it's like it is not even part of the challenge, yet it's necessary to complete it.
I'm 99% sure if this challenge did not have a hints page we would be flooded with forum posts about it. Just do a search on the forum for it and read a few of the threads. The use of this is clearly a part of the challenge people do not fully understand.
https://forum.freecodecamp.org/search?q=Implement map on a Prototype

@lasjorg  Is this issue still open? I would love to work on it.


merge package template from arlac77/npm-package-template

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(scripts): update prepare@rollup -c from template

:tada: This PR is included in version 3.40.14 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Readding Small Icons

Description of the new feature / enhancement
For people who has any things pined to their taskbar in Win 11 probably wants to have small icons from Windows 8- 10
Scenario when this would be used?
For people who has any things pined to their taskbar in Win 11
Supporting information
It WAS an feature in Windows 8 - 10

/feedbackhub


Add Checkmark On visited Links

Added the missing code to show the checkmark on visited links on sidebar. All js code was already in place, just missing some html.

Many thanks @Xipas for your PR :)
I did not implemented this functionality because, personally, I did not find it useful. But other people (like you 😋) do.
So, can you add an optional boolean showVisitedLinks parameter like this ? Then use .Site.Params.showVisitedLinks in the Go Template.
Thank you for your understanding.

Done :)

Added a css code to set color and align to right.

Updated the doc as well : https://matcornic.github.io/hugo-learn-doc/basics/configuration/

@Xipas I added a comment on the code of your PR. I got a regression when I used Font Awesome icons as prefix for the menu (ex in front matter of a chapter page : icon: "<i class='fa fa-users'></i>")

@Xipas it's fixed in de8584e890e444b3652e6dca8f6f2b167f494aee


Migration to the new username based installation?

On the most recent build I am seeing that we're prompted for username and password for Ubuntu on Windows.  Hitherto we have simply been thrown into the root account folder, etc.
How can we migrate an old installation that does not have this setup to the new proper username setup?  I'm assuming that there is a script we can run that will update us...

You can use "lxrun.exe /setdefaultuser" to create a default user account. See http://aka.ms/wslusers for more info.

Fantastic, thanks for sharing that. Some of these things might be useful to have in a message somewhere for bash users so that they know where to go to find news, updates and items such as this.

No problem! We have been publishing release notes that are linked from the readme on github. Is that what you mean?

Well, I'm thinking more along the lines of a simple echo to the shell on first or the first few starts (or until the users prompts n for no more) in the shell itself.  It's easy to not know where to go or to forget where one can go for news and just firing off some release info on startup after system updates can help.


KomaMRIFiles: RF phase read with the opposite sign from Pulseq

This pull request resolves a portion of discussion #311. Thanks to the community, we discovered that we were not properly plotting or reading Pulseq files due to a bug involving a minus sign and transposition.

From discussion #311:
"Hi! We realized that the phase compensation was correct!! We added a test to verify it.
The problem was the RF phase, which was read with a minus sign from the Pulseq (KomaMRIFiles), and then plotted with another minus sign🤦(KomaMRIPlots), so it looked fine.
The fix is in https://github.com/JuliaHealth/KomaMRI.jl/pull/315
There was a sneaky A' instead of a transpose(A) when plotting that conjugated the RF complex amplitude and therefore the -phase. We will upload a patch ASAP."

I still have some issues with RFspoiling with a MP2RAGE sequence. I also get the same kind of results from the gre_label.py example with obj_ui[] = brain_phantom2D(;us=2)

Maybe I am missing something, can you reproduce the artefacts ?
gre.zip


ci: Add SCA tool

I have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the COC


Following a class code examples & Updating Folders

Following a graduate class code examples

RESNET/resnet.ipynb (컴퓨터비전특론)
RESNET/resnet_fine_tune.ipynb (컴퓨터비전특론)
logistic_regression_sample_code.ipynb (빅데이터분석)

Updating Folders & FIles

beginner.ipynb
classification.ipynb
cnn.ipynb
deleting README.md
deleting fine_tuning_bert.ipynb
SR.ipynb
2nd_week_Chapter_3_K_Means_Clustering.ipynb
logistic_regression_sample_code.ipynb

Checked FIles
Following a graduate class code examples

RESNET/resnet.ipynb (컴퓨터비전특론)
RESNET/resnet_fine_tune.ipynb (컴퓨터비전특론)
logistic_regression_sample_code.ipynb (빅데이터분석)

Updating Folders & FIles

beginner.ipynb
classification.ipynb
cnn.ipynb
deleting README.md
deleting fine_tuning_bert.ipynb
SR.ipynb
2nd_week_Chapter_3_K_Means_Clustering.ipynb
logistic_regression_sample_code.ipynb


SDT creation

Hello.
First of all thank you for this great toolkit ! It is a really nicely put set of instruments and quite extensive documentation.
The issue I have is with SDT creation - I am trying to add an SDT to an incoming HLS stream without one and output it to UDP multicast.
I have added stuffing with TSP options and tried using SDT plugin options (-c , --create-after, -bitrate and --inter-packet ) in various combinations however SDT is not being created. The debug message I receive is : "Debug: sdt: will create SDT after 0 packets, 100 ms (bitrate: 0 b/s)".

Hi,
If there is an existing SDT, its PID is replaced. If there is none, its PID needs to be created and new packets must be inserted.
The usual reason for not having the expected data inserted if the lack of stuffing. The tsp command cannot  add new packets in a stream. It can only modify or delete existing packets. A broadcast stream usually contains stuffing that can be replaced with new packets. HLS streams have usually no stuffing and it is impossible to insert anything. There are techniques such as adding artificial stuffing at the input level (option --add-input-stuffing) which create opportunities for packet insertion. See the documentation of the tsp command in the TSDuck user's guide, especially the section named "Modifying, inserting and deleting packets").
Note that if you add input stuffing to be replaced later by new packets (here, SDT), the new packets will not use them all and a lot of stuffing will remain on output. It is recommended to add a trailing filter plugin at the end of the chain to remove the extra stuffing.

Hi, thank you for this fast feedback.
I have read the documentation (particuand added stuffing as described but SDT is still not created.

OK, could you please post the complete command and the corresponding log messages (tsp --verbose)?

/usr/bin/tsp -d3 -a 1/2 -t -v -I hls --highest-bitrate http:// -P remap 4095=5023 256=1023 257=2023 -P pmt -i 23 -P pat -a 23/5023 -r 1 -P sdt --create-after 100  --inter-packet 100  -s 23 --original-network-id 1663 -n "Network" --ts-id 23 -p "Network" -P pcrbitrate --min-pcr 256 -P regulate --packet-burst 128 --pcr-synchronous -O ip --enforce-burst <IP_ADDRESS>:30000

2019/04/02 09:55:49 - hls: downloading from http://.ts
2019/04/02 09:55:49 - hls: MIME type: unknown, expected size: unknown
2019/04/02 09:55:49 - Debug: hls: HTTP header: HTTP/1.1 200 OK
2019/04/02 09:55:49 - Debug: hls: HTTP header: Accept-Ranges: bytes
2019/04/02 09:55:49 - Debug: hls: HTTP header: Access-Control-Expose-Headers: Date, Server, Content-Type, Content-Length
2019/04/02 09:55:49 - Debug: hls: HTTP header: Server: WowzaStreamingEngine/4.5.0
2019/04/02 09:55:49 - Debug: hls: HTTP header: Cache-Control: no-cache
2019/04/02 09:55:49 - Debug: hls: HTTP header: Access-Control-Allow-Origin: *
2019/04/02 09:55:49 - Debug: hls: HTTP header: Access-Control-Allow-Credentials: true
2019/04/02 09:55:49 - Debug: hls: HTTP header: Access-Control-Allow-Methods: OPTIONS, GET, POST, HEAD
2019/04/02 09:55:49 - Debug: hls: HTTP header: Access-Control-Allow-Headers: Content-Type, User-Agent, If-Modified-Since, Cache-Control, Range
2019/04/02 09:55:49 - Debug: hls: HTTP header: Date: Tue, 02 Apr 2019 06:55:49 GMT
2019/04/02 09:55:49 - Debug: hls: HTTP header: Content-Type: video/MP2T
2019/04/02 09:55:49 - Debug: hls: HTTP header: Content-Length: 3448484
2019/04/02 09:55:49 - Debug: hls: announced content size: 3448484 bytes
2019/04/02 09:55:49 - Debug: sdt: will create SDT after 0 packets, 100 ms (bitrate: 0 b/s)
2019/04/02 09:55:49 - Debug: sdt: will create SDT after 0 packets, 100 ms (bitrate: 0 b/s)
2019/04/02 09:55:49 - Debug: sdt: will create SDT after 0 packets, 100 ms (bitrate: 0 b/s)
2019/04/02 09:55:49 - Debug: sdt: will create SDT after 0 packets, 100 ms (bitrate: 0 b/s)

I found the issue. The SDT does not exist and will be created after 100 ms, in term of broadcast time. So, tsp must compute how many packets make 100 ms. To do this, the bitrate must be known. Here, it is unknown...
There is no problem when the input bitrate is known from the beginning, ie. in any of the following cases:

The input is a DVB tuner and the bitrate is precalculated from the tuning parameters.
The initial preload of the buffer contains enough PCR's to estimate the bitrate.

Here, the initial preload is not enough to estimate the bitrate.
This is of course a problem. I fixed it and pushed the fix. Please pull and rebuild if you need this fix.

Just pulled the source from github and tried to rebuild but complication brakes at this point :
[CXX] tsDVBCharset.cpp
tsDVBCharset.cpp:36:32: error: redeclaration 'ts::DVBCharset::DVB_SINGLE_BYTE_CRLF' differs in 'constexpr'
const uint8_t  ts::DVBCharset::DVB_SINGLE_BYTE_CRLF;
^
In file included from tsDVBCharset.cpp:30:0:
tsDVBCharset.h:60:34: error: from previous declaration 'ts::DVBCharset::DVB_SINGLE_BYTE_CRLF'
static constexpr uint8_t DVB_SINGLE_BYTE_CRLF = 0x8A;
^
tsDVBCharset.cpp:36:32: error: declaration of 'constexpr const uint8_t ts::DVBCharset::DVB_SINGLE_BYTE_CRLF' outside of class is not definition [-fpermissive]
const uint8_t  ts::DVBCharset::DVB_SINGLE_BYTE_CRLF;
^
tsDVBCharset.cpp:37:32: error: redeclaration 'ts::DVBCharset::DVB_CODEPOINT_CRLF' differs in 'constexpr'
const uint16_t ts::DVBCharset::DVB_CODEPOINT_CRLF;
^
In file included from tsDVBCharset.cpp:30:0:
tsDVBCharset.h:65:35: error: from previous declaration 'ts::DVBCharset::DVB_CODEPOINT_CRLF'
static constexpr uint16_t DVB_CODEPOINT_CRLF = 0xE08A;
^
tsDVBCharset.cpp:37:32: error: declaration of 'constexpr const uint16_t ts::DVBCharset::DVB_CODEPOINT_CRLF' outside of class is not definition [-fpermissive]
const uint16_t ts::DVBCharset::DVB_CODEPOINT_CRLF;
^
make[2]: *** [release-x86_64/tsDVBCharset.o] Error 1
I am building on
CentOS Linux release 7.6.1810 (Core)
Kernel 3.10.0-957.10.1.el7.x86_64

OK, sorry, my fault. CentOS runs an outdated GCC 4.8.5 compiler. For day-to-day work, I compile on macOS, Fedora and Windows. I normally compile on CentOS before releasing an official version only and there are sometimes a few compilation issues for fix. That is the case today with some code that was modified since the last official TSDuck version. I fixed them. Please pull again and rebuild. Sorry for the inconvenience.

Pulled, compiled, works as a charm. Thank you once again,  Thierry. Appreciate your work.


[auto-merge] bot-auto-merge-branch-23.10 to branch-23.12 [skip ci] [bot]

auto-merge triggered by github actions on bot-auto-merge-branch-23.10 to create a PR keeping branch-23.12 up-to-date. If this PR is unable to be merged due to conflicts, it will remain open until manually fix.

SUCCESS - auto-merge


PORCUPINE CASUING ERRORS AND NOT RUNNING TRAINED KEYWORD

Have you checked the docs and existing issues?

[X] I have read all of the relevant Picovoice Porcupine docs
[X] I have searched the existing issues for Porcupine

SDK
Python
Porcupine package version
3.0.2
Framework version
3.12.3
Platform
Windows (x86_64)
OS/Browser version
Chrome - Version 124.0.6367.91 (Official Build) (64-bit)
Describe the bug
I trained a model using porcupine console  choosing a language and a wake word, then I downloaded the model and got a .ppn file. I put the file in the folder of keywords where all other wake word files are available.
C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\resources\keyword_files\windows

When I ran the help using cmd to check if the trained wake word became available, using the command:
porcupine_demo_mic -h

I got this:

As you can see the wake word file is available "helfen".
When I tried running the file using the command:
porcupine_demo_mic --access_key MY_API --keywords helfen

I am getting this error:
One or more arguments provided to Porcupine is invalid:  Namespace(access_key='My_API', keywords=['helfen'], keyword_paths=None, library_path=None, model_path=None, sensitivities=[0.5], audio_device_index=-1, output_path=None, show_audio_devices=False)
Initialization failed:
  [0] Keyword file (.ppn) file has incorrect format or belongs to a different platform.
  [1] Picovoice Error (code `00000136`)
  [2] Loading keyword file at `C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\resources/keyword_files\windows\helfen_windows.ppn` failed with `INVALID_ARGUME
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\porcupine_demo_mic.exe\__main__.py", line 7, in <module>
  File "C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupinedemo\porcupine_demo_mic.py", line 97, in main
    raise e
  File "C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupinedemo\porcupine_demo_mic.py", line 88, in main
    porcupine = pvporcupine.create(
                ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\_factory.py", line 69, in create
    return Porcupine(
           ^^^^^^^^^^
  File "C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\_porcupine.py", line 198, in __init__
    raise self._PICOVOICE_STATUS_TO_EXCEPTION[status](
pvporcupine._porcupine.PorcupineInvalidArgumentError: Initialization failed:
  [0] Keyword file (.ppn) file has incorrect format or belongs to a different platform.
  [1] Picovoice Error (code `00000136`)
  [2] Loading keyword file at `C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\resources/keyword_files\windows\helfen_windows.ppn` failed with `INVALID_ARGUME

How can I resolve this?
Steps To Reproduce
I do not know.
Expected Behavior
The code should run the model and be able to detect the word "Helfen"

I solved it.
When i trained the model and accidentally i downloaded it in Android Build and was running it on Windows.
I again trained the model and downloaded it in Windows Built then I ran this command:
porcupine_demo_mic --access_key MY_API --keywords helfen

Then came another error (🤣):
 [0] Keyword file (.ppn) and model file (.pv) should belong to the same language. File belongs todewhile model file (.pv) belongs toen.
This is the language model error, so I downloaded the correct language model from here and put it inside "common" folder created by porcupine. and I added model_path arg in the next command and voilaaaa it worked.
The final command was this:
porcupine_demo_mic --access_key 7/R+LQ/Uqmpzh3dQFk5s9kA97ktveCl6amEGwZod7Ykh86x/eBXIRg== --keywords helfen --model_path 'C:\Users\Bilal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pvporcupine\lib\common'


Kernel Panic when asleep

After the laptop is put to sleep for a while, kernel panics happen and the system reboots. Not sure if its related to having the laptop in clamshell mode, with 2 external displays attached. The laptop will sleep for a while, but sometimes the panics will randomly happen.
On Catalina 10.15.2

Setting on bios „disable other wakeup sources” to disabled should help

Setting on bios „disable other wakeup sources” to disabled should help

Hey I tried this out and now I have a different kind of error report. I also updated to Catalina 10.15.5.
Something to do with the thunderbolt? I'm not very knowledgeable on Hackintosh, so not sure what to do from here

Hi @auschanh @PLTorrent , try my latest release v. 1.2.0: the issue should be fixed!
Please, don't set in BIOS the option "Other wakeup sources" as disabled otherwise waking up the machine opening its lid should not be possible!
Let me know your feedback!

I think this issue can be considered, atm, solved by this feedback.


build windows docker images

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 38.812%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1143

Relevant Lines:
2945

💛  - Coveralls

test

Converted back to draft until we have customer validation.


Have to call stream.finish() with GZipOutputStream

GZipOutputStream doesn't always return good results if you don't call stream.finish() before calling stream.close(). Weird, buggy, but true.

Here's a link:
http://wondersofcomputing.blogspot.com/2010/02/gzipoutputstream-remember-to-finish.html
Note that the javadocs for GZipOutputStream show the finish() call as well.

Thanks. Will do.

Added.

Hey, I have some other changes if you're interested to both simplify the code and make it work with non-blocking I/O. I didn't do it inside gelfj because I needed a Spring bean GelfSender, but let me know and I'll back port them to gelfj.

Added.

Reply to this email directly or view it on GitHub:
https://github.com/t0xa/gelfj/issues/21#issuecomment-3833401


function to merge another konfiger and create from existing konfiger

Allow creating a new konnfiger from existing konfiger object

This is redundant, this can be achieved by simply using the toString() method as the stream source for a new konfiger object. I currently see no need to put this into the library, I mean I forget why I need this in the first place.


sync fork with upstream

What's the best way to sync this with upstream? I'll add build scripts for RHEL once this fork is even with upstream.

closing, will re-open another way


Produce a Card-box-shadow effect

Describe the problem
In the "How to Support?" section of the "Contribute" Webpage, all the three cards of Student, Teacher and Developer doesn't look distinguished from each other and is being visible as a single block.
To Reproduce
Steps to reproduce the behavior:

Go to [https://circuitverse.org/contribute]
Scroll down to the "How to Support Section"
See error

Expected behavior
To produce a card box-shadow effect to distinguish the cards from each other.
Screenshots
Before:

After:

Are you working on this issue? (Yes/No)
Yes

Hi @gr455 @shubhankarsharma00, please try to review it once and provide me a feedback so that I can complete the task and generate a pull request.

V.S.

hey @bhutani2002, Can you assign me this issue I would like to work on this?

Sounds good, you can go ahead with this.


Feature request: Reporter score

Show reporter score when he reports legendary rapport or Wei card, so we can see if he's a serious merchant reporter. And you know... I would like to take credit for all my reports. It does take time to find the merchants. Give 1 credit point to a reporter whenever he takes 1 upvote on a report.

Mmm, not a terrible idea for the score thing, I was sort of thinking about some sort of "trusted" flag.
At least on the backend I have all of the data tracking, though it doesn't actually aggregate totals right now. Sort of on my maybe-todo list to have a profile and leaderboard sort of page at some point.

Well, this is how things currently look during maintenance:

This could clearly do with some reputation system ;)

This wouldn't help as much as you think it would, people get bored during maintenance and burn accounts that previously were rep-positive.

Since you're already able to log-in with Discord to keep track of the userscore, it should be required to do so for reporting purposes.
Yeah, they can use discardable accounts, but it will help mitigate.
Currently, there's entire discord servers reporting wrong items (and upvoting them) to troll people.


Add GET /movie/{movie_id}/watch/providers method

This endpoint was added on November 20 2020: https://developers.themoviedb.org/3/movies/get-movie-watch-providers
It would be nice to include it here.

Would you have time to make a PR?

Would you have time to make a PR?

Yes, I'll see if I can get it done in the next couple of days.

Yes, I'll see if I can get it done in the next couple of days.


[animation] consider anime.js key frames support

https://github.com/juliangarnier/anime#keyframes
While it is possible to use events to define a sequence of animations, being able to declare key frames as component properties would be more concise and intuitive.
A possible interface could be  arrays as values for each property where each array element corresponds to a key frame:
animation__height="property: geometry.height; dur: 200, 100, 400; loop: true; to: 0.18, 0.5, 0.1"

loop and dir would still apply to the complete animation which includes all key frames.

I'd do this using AFRAME.ANIME versus declarative.

Ok, a decision. I just thought with A-Frame being declarative in the first place, it would be natural to extend to keyframes as arrays.

it's only declarative at the outermost/top layer, doesn't extend to doing everything declaratively

Key frames are considered more internal, or perhaps an advanced feature
then. Fair enough, a choice.
On Mon, Aug 13, 2018, 6:52 PM Kevin Ngo<EMAIL_ADDRESS>wrote:

it's only declarative at the outermost/top layer, doesn't extend to doing
everything declaratively
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ngokevin/kframe/issues/79#issuecomment-412692203, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AF4p6yvs_byOWmpvKgAplUBlIJPgiE5Sks5uQgMwgaJpZM4OJ_9z
.


issue on second run

The first time I ran on M2 Mac, binary ran fine and I was able to log in on Chromium. After I logged in it closed out. I DMd the bot, but it did not successfully reply.
I ran the process over again, with a new bot, and then ran into this error.

What would you advise? Thank you for building this useful tool!

Make sure you've copied the included env.example file to .env, and added the required variables (see README).

It's there and in the right directory 🤔

jcs @ ~/chatgpt-telegram-Darwin-arm64 % ls -al
total 15728
drwx------@  7 joshstein  staff      224 Dec  4 01:45 .
drwxr-x---+ 66 joshstein  staff     2112 Dec  4 01:46 ..
-rw-r--r--@  1 joshstein  staff       85 Dec  4 01:45 .env
-rw-r--r--   1 joshstein  staff     1069 Dec  3 23:55 LICENSE
-rw-r--r--   1 joshstein  staff      742 Dec  3 23:55 README.md
-rwxr-xr-x@  1 joshstein  staff  8035394 Dec  3 23:55 chatgpt-telegram
-rw-r--r--   1 joshstein  staff       29 Dec  3 23:55 env.example
jcs @ ~/chatgpt-telegram-Darwin-arm64 % cat .env
TELEGRAM_ID=<my-telegram-ID>
TELEGRAM_TOKEN=<my-bot-token>

and the error is still:
/Users/joshstein/chatgpt-telegram-Darwin-arm64/chatgpt-telegram ; exit;
jcs @ ~ % /Users/joshstein/chatgpt-telegram-Darwin-arm64/chatgpt-telegram ; exit;
2022/12/04 01:48:41 Started ChatGPT
2022/12/04 01:48:41 Couldn't load .env file: open .env: no such file or directory

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

hmm, that's very weird, works fine for me 🤔


Switch from polling to event monitoring in scan

The performance of the scan is currently tightly coupled to the polling loop that waits for the laser to pulse in the pulse_sync() function, when using the wait_for_value() function.
Performance could be improved by implementing an event-based solution using CA monitors. This is most likely what is implemented for Ophyd2, so this issue could be resolved in a couple of ways:
Either: investigate the current development state of Ophyd2 and evaluate if it is mature enough to be adopted for this experiment.
Or: re-implement wait_for_value() as an asynchronous function using a CA monitor.

Did some investigation into ophyd 2 and worked with a basic device.
Asked for suggestions on Nikea slack. Tom Cobb said that within ophyd 2 wait_for_value could be implemented within the trigger or read method of an ophyd 2 device. He queried whether there may be a way of keeping the wait_for_value within the plan rather than the device (which would likely be more straightforward for our purpose) and so we are awaiting feedback on that front.


How do I use this from AWS?

I'm wondering how i would use this from AWS as example I have a Lambda function that needs to pull in credentials to connect to an RDS instance

you'll need your lambda function to have its IAM role configured to be able to hit KMS and dynamodb. Beyond that, you can bundle up credstash with your lambda function and invoke it when you need it.

closing this for now. feel free to reopen if I didnt answer your question


Implement workaround for hanging types in LSP

https://github.com/prisma/prisma/issues/2962 and https://github.com/prisma/prisma/issues/2771 describe a problem with outdated TypeScript types after generation. That is bad for our users.
In https://prisma-company.slack.com/archives/CKCQQGXJM/p1594197337043400 (internal) we came up with a possible way to work around this via an implementation in our LSP.

Update: The extension can monitor files with a specific path and do something on changes, but apparently the node_modules folder is excluded from that.

There's a files.watcherExclude setting with the following defaults:
"files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true,
    "**/.hg/store/**": true
}

Excluding large folders is used to reduce the initial load on startup of VSCode. Performance-wise it's probably not advisable to remove node_modules from here either, since it can contain a lot of files. But there is an issue to exclude all files except a specific one (https://github.com/microsoft/vscode/issues/869). There are some workarounds there, which I'll try to implement.

In https://github.com/prisma/language-tools/pull/357, a solution for the VSCode extension got implemented. A file watcher is added to **/.prisma/client/*.d.ts and will restart the TS Language Server if something changes inside the watched files.

I'm not 100% sure that the solution in #357 is working correctly. I'm still finding that I need to manually restart the ts-server to refresh types, and I think @burnsy reported the same to me.

This regression was fixed in #443.
What happened: To be able to solve the problem of hanging types, our solution was to restart the TS Language Server on every change to node_modules/.prisma/client/index.d.ts. In order to detect changes to this file, we had to change the workspace settings, otherwise changes to node_modules were ignored by default. However, this solution only worked if the prisma project was opened with a workspace.
We now are detecting changes with a different file watcher (chokidar), which does detect changes to the node_modules folder and also works independently of having the project opened as a folder or a workspace.
Please try out 2.6.0 and let us know if there are any issue with it.

That was amazingly fast, thanks so much!

Doesn't look like it works with pnpm mono repo.

Please open a new issue then @gruckion and explain how to reproduce. Thanks.


Method 'get_InstalledFontNames' in type 'Avalonia.Skia.PlatformRenderInterface' does not have an implementation

I don't know if this is the proper place to post this, but I'm getting the above error when trying to run a simple app on Linux, targeting Ubuntu 18.04 x64
I'd like direction as to where to look to debug this issue. Any help is appreciated.
Thanks,
Simon

https://stackoverflow.com/questions/948785/typeloadexception-says-no-implementation-but-it-is-implemented
Pls double check all references. This feature was added quite recently.


Improve expect_raises(klass, message)

Before this commit, if expected exception is not raised,
exception's backtrace is show.
This commit fix it to show "expected to raise {{klass.id}}".

Thank you. But with this change this spec incorrectly passes:
require "spec"

describe "foo" do
  it "bar" do
    expect_raises(IndexError, /foo/) do
      1 + 2
    end
  end
end

Maybe we should keep both "fail" lines?

Nice catch !

Thanks! I'll change it a bit so it says something like "expected Foo to be raised but Bar was raised"


Adding automatic FullStack JWT

:tada: This PR is included in version 1.2.4 :tada:
Your semantic-release bot :package::rocket:


[SPARK-47200][SS] Error class for Foreach batch sink user function error

What changes were proposed in this pull request?
Any exception can be thrown from the user provided function for ForEachBatchSink. We want to classify this class of errors. Including errors from Python (Py4JException) and Scala functions.
Why are the changes needed?
The user provided function can throw any type of error. Using the new error framework for better error messages and classification.
Does this PR introduce any user-facing change?
Yes, better error message with error class for ForeachBatchSink user function failures.
How was this patch tested?
Updated existing tests and added a new one. Covers python and Scala.
Was this patch authored or co-authored using generative AI tooling?
No

cc @HeartSaVioR

Thanks! Merging to master.


JSS array syntax stopped working

Since JSS comes bundled in material-ui I am guessing that the problem is with your fork.
When I do
const styles = theme => ({
  main: {
    margin: [100, 50]
  }
})

I get margin: 100px, 50px; Notice the comma between the values.
If id do just
const styles = theme => ({
  main: {
    margin: 100
  }
})

it works fine

Are you using the builtin material-ui withStyles? Might be related to 9293 then, vendor prefixing also doesn't work. Looks like a plugin problem in general.

Same problem here with version 1.0.0-beta.22
jss-expand seem completely broken (or not loaded?)
With beta.21 all is ok.

We have the same problem in beta-22. JSS presets were not loaded I think?

This is not a vendor prefix issue, this is only array syntax issue with any CSS rule that accepts such.

with beta-22, i'm seeing:
padding: [1, 2, 3, 4]

converted to:
padding: 1px, 2px, 3px, 4px;

(which chokes cause should convert to the below (no commas between values):

padding: 1px 2px 3px 4px;

This is very likely https://github.com/mui-org/material-ui/pull/9129

So this appears to be as expected, I'm going to close this issue since there has been no further comments for 4 days.

Is there a material-ui specific way to enable this plugin?

This plugin doesn't work until now. I'm getting same commas even now with material-ui 4.11.4.

I've debugged this and the problem isn't in the jss-plugin-expand but in the jss-plugin-vendor-prefixer. It calls the toCssValue for the array which does convert it to string and then sets it as the value. It'll be better to have an option to exclude it from the preset list.


Wierdly encoded characters when receiving data

Hi! I'm writing IRC bouncer on esp32. Implemented basic functionality, but when I receive data, I'm randomly getting characters replaced like ToggleSwitchWidŽŽû?gû?,  cherryh.freenode.net @û?Í352 - Hmm, maybe its something with this buffer to string operation? Thanks!
https://gist.github.com/feelfreelinux/883950670b7b95b3491c05cbda0f463e

Hi,
I can't tell you exactly what the problem might be, but:

When you call recv(), you pass the full length of the (zeroed) buffer. Then you initialise a C++ string from this buffer. This will work as long as the number of bytes read is less than the size of the buffer, so there is still a byte left to null-terminate the string. Otherwise, it will overflow the buffer and you'll get garbage strings (which may be where the line noise you're seeing is coming from).
When you call recv(), you should consider the possibility that the TCP stream is fragmented and you won't get a full line of data each time. A line may be split in two packets, so you only read half. Or it may be combined with multiple lines into a single packet. You probably need an extra layer of buffering to read from the socket and fill a buffer until you see a newline, so you can split the data received into lines that way.

This feels more like an application programming question than a bug in esp-idf. As such, please consider posting on the http://esp32.com/ forum or another coding community. Feel free to reopen if you think there's also a framework bug here.


FHIR database are missing all tables. Deployment done using deployment template

I have earlier created an FHIR server SQL using the docker json and that's what I have been using for development.
Now for test I used the Azure deployment template to deploy the FHIR server:
https://github.com/Microsoft/fhir-server/blob/master/docs/DefaultDeployment.md
I have created all security credentials including SMART enabled
msdeployPackageUrl This was kept blank to use teh default
Installed properly, but was getting a 503 for metadata url. It seems like database FHIR does not have any tables. Is this because of the security or did I miss any db script:

@sethuraj we recently made a change so that schema upgrade is not automatically completed. This is ideal in production scenarios. You can read more about it here: https://github.com/microsoft/fhir-server/blob/master/docs/SchemaMigrationGuide.md
You can run the schema migration tool on demand to get the updates here: https://github.com/microsoft/fhir-server/blob/master/docs/SchemaMigrationTool.md
Let me know if you have additional questions

This setting is mentioned in the docs above, but does this happen even with Enable Schema Updates set to true?

Automatic Update was set to false, as I saw that as a recommended way to do it, I saw the schema migration guide. Was wondering whether there was any other option.
I could remove the entire environment and set the Sql Schema Automatic Updates ENabled to true and create again. Let me try that.
Thanks !

Sql Schema Automatic Updates enabled , set as True.
Still the tables were not created, same result as able
I will follow the schema migration guide.
Thanks

Hi @sethuraj
I am experiencing the same problem applying scripts manually: https://github.com/microsoft/fhir-server/issues/1373

Thanks for confirming, we'll look into this

Hi @CaitlinV39
Tried to run this from Visual studio after setting up the package resource as mentioned in SchemaMigrationTool.md. But is giving me an error
dotnet tool install -g Microsoft.Health.SchemaManager --version [latestversion]
Specified version '[latestversion]' is not a valid NuGet version range.
Is there a version number that I can try? Thanks

This worked!
dotnet tool install -g Microsoft.Health.SchemaManager --version 1.0.0-microsoft-data-sqlclient-20200929-1
C:\Windows\System32>schema-manager --version
1.0.0-microsoft-data-sqlclient-20200929-1+faeecc06c82503e60742651c8508ca18a8cda03e

@CaitlinV39 @brendankowitz
I was able to use the Schema-Manager tool to update by database. I see the schema version as 4 and is able to access the metadata url.
The only issue was when I tried to install the tool [latestversion] it gave an error.  but then the exception gave me a nearby version, and I could use that.
Thanks for your help!

@sethuraj Sounds great! Let us know if you need anything else!


Add new package gordonflashtool

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3711

Can you also change PR title to "gordonflashtool: init at 10"?

Can you also change PR title to "gordonflashtool: init at 10"?

Done.

@jtbx Hi! Thank you very much for your suggestions. Seems like I have tons to learn now :).