[concurrencpp] build failure

Operating system
Windows
Compiler
MSVC and Clang
Steps to reproduce the behavior
add the following lines to your CMakeLists.txt and adjust the target as appropriate

find_package(concurrencpp CONFIG REQUIRED)
target_link_libraries(main PRIVATE concurrencpp::concurrencpp)

Failure logs
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] CMake Error in CMakeLists.txt:
[cmake]   Imported target "concurrencpp::concurrencpp" includes non-existent path
[cmake]
[cmake]     "C:/src/crcpp/build/vcpkg_installed/x64-windows/COMPONENT"
[cmake]
[cmake]   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
[cmake]
[cmake]   * The path was deleted, renamed, or moved to another location.
[cmake]
[cmake]   * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake]   * The installation package was faulty and references files it does not
[cmake]   provide.
[cmake]
[cmake]
[cmake]
[cmake] -- Generating done (0.1s)
[cmake] CMake Generate step failed.  Build files cannot be regenerated correctly.
Additional context
It seems that vcpkg and cmake are having an issue with the install commands in concurrencpp's CMakeLists.txt.  The resulting vcpkg_installed/x64-windows/share/concurrencpp/concurrencppTargets.cmake file has improperly added COMPONENT, which is part of the install function's optional parameters, to the INTERFACE_INCLUDE_DIRECTORIES.
The install command in CMakeLists.txt that seems to be causing the problem:
install(
  TARGETS concurrencpp
  EXPORT concurrencppTargets
  ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
          COMPONENT concurrencpp_Development
  INCLUDES
  DESTINATION "${concurrencpp_include_directory}"
  COMPONENT concurrencpp_Development
  LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
          COMPONENT concurrencpp_Runtime
          NAMELINK_COMPONENT concurrencpp_Development
  RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT concurrencpp_Runtime)

The offending line in concurrencppTargets.cmake:
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/COMPONENT;${_IMPORT_PREFIX}/concurrencpp_Development"

see the full output of concurrencppTargets.cmake:
# Generated by CMake

if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
   message(FATAL_ERROR "CMake >= 2.8.0 required")
endif()
if(CMAKE_VERSION VERSION_LESS "2.8.3")
   message(FATAL_ERROR "CMake >= 2.8.3 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.8.3...3.24)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_cmake_targets_defined "")
set(_cmake_targets_not_defined "")
set(_cmake_expected_targets "")
foreach(_cmake_expected_target IN ITEMS concurrencpp::concurrencpp)
  list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
  if(TARGET "${_cmake_expected_target}")
    list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
  else()
    list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
  endif()
endforeach()
unset(_cmake_expected_target)
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
  unset(_cmake_targets_defined)
  unset(_cmake_targets_not_defined)
  unset(_cmake_expected_targets)
  unset(CMAKE_IMPORT_FILE_VERSION)
  cmake_policy(POP)
  return()
endif()
if(NOT _cmake_targets_defined STREQUAL "")
  string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
  string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
  message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
endif()
unset(_cmake_targets_defined)
unset(_cmake_targets_not_defined)
unset(_cmake_expected_targets)

# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
  set(_IMPORT_PREFIX "")
endif()

# Create imported target concurrencpp::concurrencpp
add_library(concurrencpp::concurrencpp SHARED IMPORTED)

set_target_properties(concurrencpp::concurrencpp PROPERTIES
  INTERFACE_COMPILE_DEFINITIONS "\$<\$<STREQUAL:\$<TARGET_PROPERTY:concurrencpp::concurrencpp,TYPE>,SHARED_LIBRARY>:CRCPP_IMPORT_API>"
  INTERFACE_COMPILE_FEATURES "cxx_std_20"
  INTERFACE_COMPILE_OPTIONS "/permissive-"
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/COMPONENT;${_IMPORT_PREFIX}/concurrencpp_Development"
  INTERFACE_LINK_LIBRARIES "Threads::Threads;\$<\$<BOOL:LIBRT-NOTFOUND>:LIBRT-NOTFOUND>"
)

if(CMAKE_VERSION VERSION_LESS 2.8.12)
  message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()

# Load information for each installed configuration.
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/concurrencppTargets-*.cmake")
foreach(_cmake_config_file IN LISTS _cmake_config_files)
  include("${_cmake_config_file}")
endforeach()
unset(_cmake_config_file)
unset(_cmake_config_files)

# Cleanup temporary variables.
set(_IMPORT_PREFIX)

# Loop over all imported files and verify that they actually exist
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
  foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
    if(NOT EXISTS "${_cmake_file}")
      message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
   \"${_cmake_file}\"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   \"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
    endif()
  endforeach()
  unset(_cmake_file)
  unset("_cmake_import_check_files_for_${_cmake_target}")
endforeach()
unset(_cmake_target)
unset(_cmake_import_check_targets)

# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

I have seen this in another package recently:
install(...
    INCLUDES DESTINATION "${concurrencpp_include_directory}"
    COMPONENT concurrencpp_Development
...

COMPONENT can't be used after INCLUDES (as nothing is installed, only added to target properties).
https://cmake.org/cmake/help/latest/command/install.html#targets
Maybe another case for post-build checks.

@dg0yt Does this mean that an issue should be opened upstream with concurrencpp?

Yes.


Use new packInclude property in project.json

Note, this will be easier to review without whitespace changes.

:shipit:


XSLTTransformation: fix/replace xslt lib

Fixes https://github.com/triggermesh/triggermesh/issues/616 by replacing XSLT library.

@odacremolbap the linter is currently failing because it cannot build the package due to missing C libs.
The simplest solution, found by @tzununbekov, is to prevent building those packages based on Go build tags.
So far we've been doing it that way:
https://github.com/triggermesh/triggermesh/blob/0ffd100f029a91d7367a8e5da5192909e3c87402/pkg/sources/adapter/ibmmqsource/adapter.go#L1
https://github.com/triggermesh/triggermesh/blob/0ffd100f029a91d7367a8e5da5192909e3c87402/.golangci.yaml#L14-L15

So far we've been doing it that way:

thanks, I think I will still have problems with make targets build and test on ibm mq and xslt.
Will do as you suggest to solve CI and make this PR look green.

@odacremolbap by simply looking at the Makefile, I can tell for sure that make build is broken.
This goal tries to build cmd/*, which won't work considered that some of these require extra libraries.
I think the reason why this wasn't caught is because nobody on the team ever uses make build. People tend to build only the component they are working on (I guess), and probably from the IDE directly (again, guessing, speaking about my own workflow).

@antoineco I wouldn't say that nobody uses make build. It is still my primary way of building the repo, but I've coded around it:
-build: $(COMMANDS)  ## Build all artifacts
+build: $(filter-out $(CUSTOM_BUILD_BINARIES), $(COMMANDS))  ## Build all artifacts

still not the right libraries ... I'll test locally and fix.


ConnectionError: Failed to connect to localhost:undefined in 15000ms

I get this error time from time. Sometime all works fine, sometime it cannot connect with this error. - That is a big issue. There is no changes if I set instanceName or not. TCP is enabled, sql server browser is running, all ports are set.

That was weird windows firewall issue, configuring it did not help. Only solution that I found is completely turn it off. Few days ago it worked fine.


Explore Discord AutoMod Feature

Describe the Request
I got a notification for Discord Automod which appears to allow for rules to be setup to moderate the server.
I know we've moved away from the strikes feature, but one idea with this feature could be to automatically block messages that don't include 3pseat, etc at the beginning and give a message to the user letting them know they need to include it.
This could help extend the power of 3pseatbot to add interesting new features to the server!
Sample Code
No response
Additional Code or Information
No response

I looked into it but their regular expression engine for custom filters does not support the "match any sentence that does not start with XYZ."


[Customer project] - GSTR: can't drop without CASCADE specification: ACRSCOREDB: line 1 col 13

Moving back to To do as there are no updates.


Dependabot config: Remove (or relax) the limit on number of update nodes

We run into to the limit on number of update nodes in our sample code repositories:
https://github.com/dotnet/samples
https://github.com/dotnet/dotnet-api-docs
https://github.com/dotnet/docs
Each of these repositories have many more than 100 project files.
We understand that this is an edge case, but hopefully it's not a difficult change.
Also, in the meantime, we have a workaround to filter out project files where the only dependency is the TargetFramework. See dependabot/feedback#975 for details on that request.

@BillWagner is this issue still happening? I'm triaging some old issues and noticed this is over 2 years old... and I just looked at the recent commit log and appears that Dependabot is opening PR's: https://github.com/dotnet/samples/commits/main

Thanks @jeffwidman
Yes, this has been fixed.
I'll close it.


Hex Package

Make sure the repo is rebar3-compatible and its deps are also hex.pm packages, then publish it on hex.pm using inaka's hex.pm account.

Closing this one, will migrate to rebar3


Fix typo in openssl-verification-options documentation

"or" word is missing.

[ x ] documentation is added or updated
[ ] tests are added or updated

Ok with trivial

24 hours has passed since 'approval: done' was set, but as this PR has been  updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Merged to all the active branches. Thank you for your contribution.


docs: clarify contribution steps

This repository does not have CI or testing, so remove testing steps from contribution steps.

Rather than remove this I rather we add the validation steps we're using in other RFC repos. @diervo

It looks like a couple other repos use these instructions.

The remplate for rfcs is this https://github.com/salesforce/template-rfcs

I will do this thing, if the language in this PR looks good to you.


COP for hybrid heatpumps is incorrectly calculated in node properties table

@michieldenhaan and I found out this week that the COP for hybrid heatpumps is incorrectly calculated in node properties table. The COP in this table should reflect the COP of the heat pump part of the HHP.

The COP is calculated here.
      def coefficient_of_performance
        fetch(:coefficient_of_performance) do
          1 / (1 - (
            ambient_heat_input_conversion +
            ambient_cold_input_conversion +
            geothermal_input_conversion
          ))
        end
      end

The COP is correctly calculated for normal heat pumps, but the calculation does not work for hybrid heat pumps as in that node there also is a network_gas_input_conversion that should be left out of the calculation.
The formula for the COP of HHP should be something like:
(1 - (network_gas_input_conversion + hydrogen_input_conversion)) / (electricity_input_conversion)

Maybe this means that we need two different COP calculations: one for hybrid HPs and one for normal HPs.

Actually the COP shown in the table is the Seasonal Coefficient of Performance (SCOP), as it is the average COP for the whole year and not on a specific moment. I will create an issue on ETModel to rename this.


Reproducible working example in new version of Lda2Vec

I've made TONS of changes the last few weeks. This has caused things to break and has made it so my working example no longer works :cry: . So, a new reproducible example needs to be made. This is highly related to #8 , where you can see that we ended up with a working example. However, with the new changes, we should be able to remake this reliably, straight from running the run_20newsgroups.py file.

This should work :smile: Pushing shortly

This latest version appears to be working better then anything I’ve seen in the past.
I’m also training on my ‘stories.txt’ file.
btw - I’m running this on Tensorflow 1.12.
Any idea why your output has the word ‘X’ in so many topics?
EPOCH: 25
LOSS 9011.561 w2v 4.4812584 lda 9007.079
---------Closest 10 words to given indexes----------
Topic 0 : team, hockey, teams, nhl, league, season, players, edm, wsh, moncton
Topic 1 : god, people, think, know, jesus, christ, like, going, thing, believe
Topic 2 : team, scoring, season, game, flyers, galley, pts, sabres, player, sanderson
Topic 3 : windows, monitor, mac, price, jpeg, printer, buy, card, car, software
Topic 4 : think, alomar, going, better, pitching, know, baseball, like, players, innings
Topic 5 : jews, jewish, israel, palestine, christian, turkish, ottoman, israeli, occupied, turkey
Topic 6 : edm, assault, fij, wsh, annual, firearms, hicnet, hb, maryland, phi
Topic 7 : ftp, available, wsh, software, systems, anonymous, image, images, server, unix
Topic 8 : karina, apartment, infection, sumgait, doctor, candida, patients, mamma, patient, people
Topic 9 : armenian, armenians, azerbaijani, fij, said, karabagh, baku, armenia, apartment, sumgait
Topic 10 : god, bible, jesus, fij, belief, christian, faith, christ, db, christians
Topic 11 : gun, cipher, firearms, key, security, encrypted, police, cryptography, encryption, guns
Topic 12 : grounding, wire, gfci, wiring, ground, insulation, outlets, cec, outlet, conductor
Topic 13 : card, motherboard, drive, controller, vga, ram, simms, monitor, scsi, mb
Topic 14 : x, oname, wsh, eof, fij, mtl, xvoid, edm, bassel, buf
Topic 15 : gfci, grounding, circuits, orbit, launch, conductor, circuit, wiring, wire, solar
Topic 16 : drive, fij, disk, controller, mb, windows, card, bios, m, ram
Topic 17 : president, q, stephanopoulos, mr, stimulus, jobs, administration, myers, dole, going
Topic 18 : pixmap, xlib, xview, literature, biblical, bitmap, afternoon, texts, translations, translation
Topic 19 : jesus, bible, isaiah, christ, satan, read, matthew, psalm, prophecy, god

On Apr 2, 2019, at 6:21 PM, Nathan Raw<EMAIL_ADDRESS>wrote:
This should work 😄 Pushing shortly
https://user-images.githubusercontent.com/32437151/55446268-25344900-557c-11e9-94a8-ceb5da9efc0e.png
https://user-images.githubusercontent.com/32437151/55446273-2796a300-557c-11e9-9164-c43df243f12c.png
https://user-images.githubusercontent.com/32437151/55446278-2a919380-557c-11e9-940d-6571bd5aab0b.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/nateraw/Lda2vec-Tensorflow/issues/45#issuecomment-479284998, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9i2znESij1s23UFLtqXc8SHXPfKADZks5vdAIigaJpZM4cUgi6.

No idea why "x" is showing up so much. strange. I'll keep playing around with the preprocessing

From run_20newsgroups.txt.
Some of these words don’t exist in 20_newsgroups.txt
Any idea what’s going on?
(This is on python 3.6 with Tensorflow 1.12.1. I’m trying with your requirements (e.g. - python 3.5, tensorflow 1.5)
EPOCH: 90
LOSS 9011.282 w2v 4.1849346 lda 9007.098
---------Closest 10 words to given indexes----------
Topic 0 : istanbul, fij, bassel, noll, nyr, ve, den, mwra, nejm, wsh
Topic 1 : fij, apartment, db, armenian, sumgait, marina, armenians, nyr, uw, karina
Topic 2 : wolverine, adirondack, existence, sabretooth, cipher, nyr, fij, liefeld, cryptosystem, hobgoblin
Topic 3 : fij, mtl, moncton, den, xmu, utica, ott, edm, wsh, binghamton
Topic 4 : fij, interleave, scsi, asynchronous, jumpers, drives, mw, ide, bl, mfm
Topic 5 : fij, xmu, wsh, mwra, mtl, mydisplay, den, bassel, edm, bl
Topic 6 : fij, db, mwra, nyr, mtl, utica, wsh, bh, adirondack, uw
Topic 7 : , davidian, accidents, remind, studied, bull, forum, rbi, rocks, abstract
Topic 8 : den, springfield, utica, lens, rt, hb, sabretooth, explorer, binghamton, samuel
Topic 9 : jpeg, gif, better, image, images, tend, want, think, higher, people
Topic 10 : phone, keys, key, traffic, security, clipper, encryption, chip, service, car
Topic 11 : wiring, mwra, gfci, ott, db, fij, bl, mtl, wsh, den
Topic 12 : , timer, powered, rockefeller, ships, throttle, deadly, drag, deliver, initiative
Topic 13 : wsh, providence, edm, mwra, stl, phi, bl, moncton, utica, fij
Topic 14 : patients, infection, use, system, pain, symptoms, internal, cause, having, usually
Topic 15 : matthew, prophecy, luke, jesus, passages, apostles, peter, explanation, post, diagnosed
Topic 16 : jesus, christ, god, matthew, bible, gospel, lord, fij, christians, heaven
Topic 17 : drive, motherboard, card, simms, mhz, drives, connector, shipping, monitor, meg
Topic 18 : centaur, moncton, bmp, countersteering, cleveland, obfuscated, jagr, seagate, shipped, morris
Topic 19 : gateway, desktop, clone, diamond, unix, vlb, silicon, ati, connector, amiga

On Apr 3, 2019, at 10:57 PM, Nathan Raw<EMAIL_ADDRESS>wrote:
No idea why "x" is showing up so much. strange. I'll keep playing around with the preprocessing
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/nateraw/Lda2vec-Tensorflow/issues/45#issuecomment-479760818, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9i22cW0a4qJ5Lba6-d1zuDhj_F1JS4ks5vdZQ5gaJpZM4cUgi6.

what are the three characters words in your screen snapshot (attached below) at EPOCH 115:

E.g. for topic 3: hfd, uww, fij, edm, det, nyr.

Trying filtering; on 20_newsgroups … Here’s my EPOCH 115 with your baseline python and tensor flow requirements in lda2vec_test environment with my the WordNet filtering:

EPOCH: 115
LOSS 11528.346 w2v 4.221919 lda 11524.124
---------Closest 10 words to given indexes----------
Topic 0 : den, adirondack, noll, hobgoblin, interleave, hulk, di, allocation, het, wolverine
Topic 1 : controller, ide, bios, interface, drive, jumper, chip, data, quantum, d
Topic 2 : desert, matt, accomplished, adam, sigh, tradition, blessed, dying, mars, verse
Topic 3 : therapy, , hospital, diet, skin, infection, vitamin, tissue, coli, syndrome
Topic 4 : want, people, need, sure, think, found, good, got, know, try
Topic 5 : encryption, privacy, cryptography, chips, cellular, clipper, blah, attorney, chi, secure
Topic 6 : adirondack, scripture, scoring, genesis, adam, encryption, scorer, sin, stanley, play
Topic 7 : hobgoblin, den, refresh, allocation, noll, jonathan, hulk, wolverine, adirondack, flaming
Topic 8 : width, char, dram, cursor, colors, asynchronous, click, vat, invalid, refresh
Topic 9 : den, hobgoblin, blah, chairman, scorer, allocation, helicopter, edward, noll, karabagh
Topic 10 : apartment, marina, mamma, armenian, azerbaijani, shouting, balcony, turkish, directory, server
Topic 11 : grounding, outlet, wiring, jacket, conductor, breaker, wolverine, ground, metal, adirondack
Topic 12 : adirondack, den, stewart, providence, rookie, noll, hobgoblin, murphy, ga, phi
Topic 13 : holy, mr, jesus, god, written, z, hebrew, baptism, scripture, source
Topic 14 : firearm, trend, measure, ammunition, ratio, arthur, rifle, observation, statistic, knife
Topic 15 : example, question, today, god, true, agree, believe, way, course, good
Topic 16 : propaganda, integration, douglas, consumer, compromise, ah, mess, establishment, expressed, agenda
Topic 17 : phi, scoring, scorer, upgrade, portable, torque, otto, interface, tight, period
Topic 18 : year, think, want, good, sure, thing, got, little, work, lot
Topic 19 : leo, defamation, rod, reduction, unauthorized, assured, horn, puck, abraham, pit
and after more testing at ...
EPOCH: 150
LOSS 11528.199 w2v 4.143144 lda 11524.056
---------Closest 10 words to given indexes----------
Topic 0 : den, noll, adirondack, hobgoblin, interleave, wolverine, allocation, hulk, di, het
Topic 1 : controller, bios, interface, chip, ide, drive, floppy, d, cache, m
Topic 2 : matt, desert, scripture, , regularly, strange, thirty, sigh, writer, wind
Topic 3 : , therapy, extremely, cause, highly, day, days, eating, clean, disease
Topic 4 : want, found, sure, good, like, work, know, people, tell, look
Topic 5 : blah, encryption, exclusive, mobile, darren, cryptography, ha, cryptology, cryptographic, privacy
Topic 6 : adirondack, scripture, genesis, scorer, den, het, scoring, mat, providence, adam
Topic 7 : den, flaming, hobgoblin, jonathan, ut, noll, summarize, lens, hulk, rod
Topic 8 : asynchronous, width, char, ut, dram, retrieve, den, wolverine, refresh, default
Topic 9 : blah, den, hobgoblin, adirondack, triangle, edward, interleave, allocation, noll, chairman
Topic 10 : mamma, marina, den, apartment, noll, char, adirondack, allocation, balcony, compiler
Topic 11 : adirondack, jacket, outlet, grounding, wolverine, conductor, redesign, wiring, providence, cape
Topic 12 : den, adirondack, stewart, allocation, providence, mat, noll, blah, ga, dee
Topic 13 : den, interleave, mat, scorer, mario, hobgoblin, baptism, linked, infallible, allocation
Topic 14 : , trend, ammunition, observation, ratio, firearm, gray, deletion, fantasy, weapon
Topic 15 : think, work, course, note, example, need, agree, true, told, way
Topic 16 : propaganda, integration, , sir, unusual, spell, allen, compromise, pack, ai
Topic 17 : phi, tight, torque, scorer, probability, scoring, portable, mask, socket, engine
Topic 18 : sure, pretty, good, want, work, know, like, better, old, think
Topic 19 : rod, leo, assured, lightning, smooth, reduction, unauthorized, cook, sudden, defamation
Filtering out words that were not in WordNet, reduced the 20_newsgroup vocabulary to
len(word_to_idx)
3563
But, I still don’t know why these words are in the 'reduced’ vocabulary:
E.g.
word_to_idx["dee"]
3422
Do the results look any better?

On Apr 2, 2019, at 6:21 PM, Nathan Raw<EMAIL_ADDRESS>wrote:
This should work 😄 Pushing shortly
https://user-images.githubusercontent.com/32437151/55446268-25344900-557c-11e9-94a8-ceb5da9efc0e.png
https://user-images.githubusercontent.com/32437151/55446273-2796a300-557c-11e9-9164-c43df243f12c.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/nateraw/Lda2vec-Tensorflow/issues/45#issuecomment-479284998, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9i2znESij1s23UFLtqXc8SHXPfKADZks5vdAIigaJpZM4cUgi6.

Hi, I am still getting the same error and I can't understand why

What error are you getting @arijit1410? If it is unrelated to getting the example working as shown, please feel free to post a new issue! If not (or if it has to do with making your own example work), please explain your situation here. Thanks! 🙂
Note - if you are getting any strange errors, please make sure you are using an environment with the same requirements as me (discussion about this @ #27 )

I don't have a gpu on my system and it says that the environment needs tensorflow-gpu, is that going to be a problem?

InvalidArgumentError (see above for traceback): indices[496] = 5839 is not in [0, 5839)
[[Node: nce_loss/negative_sampling/nce_loss/embedding_lookup_1 = Gather[Tindices=DT_INT64, Tparams=DT_FLOAT, _class=["loc:@nce_biases"], validate_indices=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](nce_biases/read, nce_loss/negative_sampling/nce_loss/concat)]]
This is the error I am getting after running run_20newsgroup.py.
I've cloned the latest version of the repo

No, it should not be a problem.
What version of Tensorflow are you running this on?
Python?

On Apr 15, 2019, at 12:29 AM, Arijit Ghosh Chowdhury<EMAIL_ADDRESS>wrote:
I don't have a gpu on my system and it says that the environment needs tensorflow-gpu, is that going to be a problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I am running on python 3.5 and tensorflow 1.5

@arijit1410 please post a new issue as this is unrelated to this issue.
When you do, please include the output of this (just to be safe)
import tensorflow as tf
print("Tensorflow Version = {}".format(tf.__version__))

It doesn't make sense that you're running into that error. We will help you figure it out :slightly_smiling_face:

Also, please remove any directories where preprocessing files from  prior versions  of Lda2vec might be saved.
E.g. -
$ pwd
/Users/davidlaxer/Lda2vec-Tensorflow/tests/twenty_newsgroups/data/clean_data
MacBook-Pro:clean_data davidlaxer$ ls -l
total 205744
-rw-r--r--  1 davidlaxer  staff     85064 Apr  8 12:26 doc_lengths.npy
-rw-r--r--  1 davidlaxer  staff   8551328 Apr  8 12:26 embedding_matrix.npy
-rw-r--r--  1 davidlaxer  staff     28632 Apr  8 12:26 freqs.npy
-rw-r--r--  1 davidlaxer  staff     68335 Apr  8 12:26 idx_to_word.pickle
-rw-r--r--  1 davidlaxer  staff  96531372 Apr  8 12:27 skipgrams.txt
-rw-r--r--  1 davidlaxer  staff     68335 Apr  8 12:26 word_to_idx.pickle

On Apr 15, 2019, at 8:47 PM, Nathan Raw<EMAIL_ADDRESS>wrote:
@arijit1410 https://github.com/arijit1410 please post a new issue as this is unrelated to this issue.
When you do, please include the output of this (just to be safe)
import tensorflow as tf
print("Tensorflow Version = {}".format(tf.version))
It doesn't make sense that you're running into that error. We will help you figure it out 🙂
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/nateraw/Lda2vec-Tensorflow/issues/45#issuecomment-483500423, or mute the thread https://github.com/notifications/unsubscribe-auth/AC9i25hUZdl9wL52sWI_74wxJLX0YJmAks5vhUfpgaJpZM4cUgi6.

After running: python load_20newsgroups.py, what's the output from running:
from lda2vec import utils, model
import numpy as np

# Path to preprocessed data
data_path  = "data/clean_data"
# Whether or not to load saved embeddings file
load_embeds = True

# Load data from files
(idx_to_word, word_to_idx, freqs, pivot_ids,
 target_ids, doc_ids, embed_matrix) = utils.load_preprocessed_data(data_path, load_embed_matrix=load_embeds)

embed_matrix.shape

pivot_ids.sort()
pivot_ids

target_ids.sort()
target_ids

doc_ids.sort()
doc_ids


In selector check, respect prefix and compare finalResultType to bound

Fixes #19657
Fixes #20860

Further tweaks forthcoming.

@som-snytt how much work do you think it still requires?
It seems we might want to backport the fix for #20860  to 3.5.0 at the very least...
do you need any help?

I'll submit commit 2 separately, as I was about to do except it's one line.
I'll follow up the fix for commit 1 after the American holiday.

The previous test fails were because the new prefix check (in isInImport) doesn't apply when isDerived and also for top-level defs where the prefix becomes a package object (not sure if that =:= test should work, or if there's a convenient idiom, or if the check is even useful). The derived check uses dealiased types, not sure if a better mechanism is warranted.
I'll clean up and also look for improvements.

Rebased and split out commits for easier review.
This includes adding the prefix type to Usage; simplifying gathering the warnings in getUnused, avoiding intermediate collections and extra sorting; mild refactors for readability.
This is the July commit and not the August rewrite, which fixes scope bugs by leveraging normal miniphase traversal and avoiding the special traverser; which allows putting CheckUnused in a single megaphase with CheckShadowing, so that is worth returning to. I'll do that if this PR of limited scope receives a review.
Example extra test fixed in August:
object Constants:
  val i = 42
class `scope of super`:
  import Constants.i // bad warn
  class C(x: Int):
    def y = x
  class D extends C(i):
    import Constants.* // does not resolve i in C(i)
    def m = i

As the comment reminds me, it incorrectly detects the superconstructor ref as resolved by the nested import.
Also note that the inner wildcard is not ambiguous because both imports resolve to the same symbol. But a further improvement would be to warn that the inner import is, if not unused, then spurious.

Cherry-picked some old commits.
As a reminder to future self, the mega phase was broken because CheckShadowing sees the nested X as shadowing.
class F[X, M[N[X]]]

The fix [sic] is to ignore everything nested because it ignores constructor-owned X and M. [Previous attempt had been to short-circuit transformDeep so CheckShadowing doesn't see subtrees of "other" trees.]
The fix [also sic] to superclass context noted in previous comment is also novel: since all the "context" approximation is for the purpose of import tracking, it doesn't need to capture all the subtlety of a true super class constructor context (with class parameters in scope). Instead, just detect that a reference occurred in a parent tree, and then kick it upstairs in popScope.
The mechanism for tracking derives is entirely reworked.
The "inner traverser" is removed in favor of matching "other" trees and transforming their parts. I see there was some long discussion about this.
The miniphase should be rewritten to leverage existing Context and Scope instead of custom structures. The problem of tracking just symbols is simpler (as in Scala 2), but for import tracking, it should use ImportContext etc. (The other PR for import tracking followed Scala 2 and let the compiler record lookups as they happen.) The motivation for proper contexts is so that a "lint framework" can rely on it, instead of custom traversals. For this phase, top-down may be more efficient than bubbling up references until they find a definition or import. Per context, a reference need be looked up only once, and then only if there are outstanding unused definitions or imports.

warn/unused-privates has NO warn comments to revisit.

I'll follow up the fix for commit 1 after the American holiday.

That is Thanksgiving Day shortly after the national election, of course.

I see I was in the middle of adding commits a month ago and did not implement the speculation from my previous comment.
My brain glazes over when I look at this PR. Also I have to re-read "getting started as a contributor" to understand "testing your changes". But I see this PR includes showing vulpix results more nicely.

There are pos tests that check for "no warnings" using -Werror as in Scala 2 partest, but should be under warn which will check that is produces zero warnings.

I didn't get around yet to handling constructor contexts when I worked around superconstructor contexts. https://github.com/scala/scala3/issues/21917
Note to self: don't neglect secondary constructors, which are lexically nested but typechecked like primary ctor in outer context.

That link is a reminder to add origin to diagnostics.


Use Google Analytics 4 ID

Contributes to #2861

IMPORTANT:

Since the GA4 ID is the ID for all Dapr things web, this means that all web events, including page_views etc. from the main website and the docs subdomain, will be sent to the blog UA ID once this PR is merged and the UA ID is connected from the GA4 ID.
Please confirm that this is ok with you @msfussell @greenie-msft

/cc @nate-double-u

I just noticed that the version of Docsy used here is too old. I'll have either have to update Docsy or find a temporary solution just so we can get GA4 events flowing for the blog.

Upgrading Docsy will take more time than I can afford atm -- for some details, see #94. So I opted for a head-hook to register the GA4 ID. The hook file should be removed after #94 is addressed -- I've added a note to that effect.

This is ready for your review @msfussell @greenie-msft, PTAL.

Friendly ping @msfussell @greenie-msft, this PR awaits your review and approval.


include svgs in dist

Hey @hanjinliu, this package looks very exciting!
I just tried to run the demo and got:
File ~/mambaforge/envs/all/lib/python3.10/site-packages/tabulous/_qt/_svg.py:57, in QColoredSVGIcon.fromfile(cls, path, color)
     55 @classmethod
     56 def fromfile(cls: type[QColoredSVGIcon], path: str | Path, color="#000000"):
---> 57     with open(path, "r") as f:
     58         xml = f.read()
     59     return cls(xml, color=color)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/talley/mambaforge/envs/all/lib/python3.10/site-packages/tabulous/_qt/_icons/open_table.svg'

looks like the svgs didn't make it into the distribution, this should fix it

Hi @tlambert03 ,
thank you very much for trying it out! I totally forgot to distribute icon folder 🥲
I often use superqt but I did not notice there were support on icons... Let me see if I can pick some of them for use :smiley:

congrats on good stuff here.  look forward to playing with it some more


Trying to import a dual stack k8s cluster not working

-->
**What kind of request is this
Question
**Steps to reproduce
Create a dual stack k8s cluster, try to import it via ranche ui
** Results
Rancher node agents come up online on IPv4 and are just fine. Able to resolve rancher server url, howver cluster-agent comes up on IPv6 and is not able to talk to rancher server url and keeps crashing in loop.
Other details that may be helpful:
Environment information

Rancher version
2.X
Installation option (single install/HA):
HA

Cluster information

Cluster type: rancher is installed on RKE on VMs from Openstack. K8s dual stack cluster is in the same VLan as rancher is. Rancher cluster is only IPv4 stack.
Machine type VM
specifications (CPU/memory):
Kubernetes version (use kubectl version):

(paste the output here)

Docker version (use docker version):

(paste the output here)

Does Rancher 2.x even support importing of UPv6 clusters?

Any news?


Razor Pages Error with Section and TagHelpers

Razor pages throws an error when working with sections.
PostData is class declared inside the backing cs file.
This works

@section detailsSection {
}

Moving the TagHelp into a section produces and error.
A local or parameter named '__model' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
@section detailsSection {

}

Moving it to a partial works
@section detailsSection {
    @Html.Partial("PostData", @Model.PostData)
}

Hi @RandyBuchholz this is a known issue. Stay tuned for a patch release that fixes this 😄
Duplicate: https://github.com/aspnet/Razor/issues/1614


Fix flickering issues with low processor mode on Android

As pointed out by @Relintai in https://github.com/godotengine/godot/pull/55604#issuecomment-1077590602, the cause of the flickers when enabling low processor mode is that the framebuffers are swapped automatically even when nothing is rendered.
To resolve the issue, I forked GLSurfaceView so that the Godot Android logic can specify when the framebuffers should be swapped.
Fixes https://github.com/godotengine/godot/issues/19304
Fixes https://github.com/godotengine/godot/issues/58932

I've added a few comments about not very important things.
Besides them, my only real concern is the maintainability of the forked stuff. I'd suggest to follow the closest that is possible to the scheme followed for other 3rd-party code. Being Java files I'm not sure if they can be put under ´thirdparty/´, but at least it would be good to check out the changes as patch files for easier upgrading.

In the past for java code, we've departed from the thirdparty approach (also because I don't think that would work) and included forked files in the lib directory (see https://github.com/godotengine/godot/tree/master/platform/android/java/lib/src/com/google/android/vending).
I'm also not very concerned about maintainability given the forked files have been stable for quite a while (GLSurfaceView has been part of the Android apis since the very beginning), and are unlikely to change anytime soon (especially as Google has adopted the pattern of providing enhanced functionality in external libraries rather than updating the core apis).


Remove RPATH/RUNPATH from ROCm libraries and binaries

SWDEV-310152:

Single version package: add ldconfig, no RPATH/RUNPATH in either binaries or libraries
Multi version package: use RPATH for binaries, no RPATH/RUNPATH for libraries
amdclang/clang/hipcc compilers shall not add RPATH/RUNPATH to produced binaries or libraries unless explicitly requested by an option
Versioning scripts will take care of adding rpath to binaries for multi version package

This PR is stale.  Closing.


Blog post on D8 Performance with HA/HP Infrastructure?

See: http://buytaert.net/making-drupal-8-fly
D8 offers a lot more integration with caching logic, pumping data through the right places at the right times, etc. Maybe write about the opportunities offered by D8 with Redis, Nginx caching, etc.

Configuration as of 0.9.0 is working decently, and nginx is serving up pages pretty fast:
$ ab -n 3000 -c 50 http://<IP_ADDRESS>/about
This is ApacheBench, Version 2.3 <$Revision: 1554214 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking <IP_ADDRESS> (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests

Server Software:        nginx/1.2.1
Server Hostname:        <IP_ADDRESS>
Server Port:            80

Document Path:          /about
Document Length:        7248 bytes

Concurrency Level:      50
Time taken for tests:   2.449 seconds
Complete requests:      3000
Failed requests:        0
Total transferred:      25065000 bytes
HTML transferred:       21744000 bytes
Requests per second:    1224.84 [#/sec] (mean)
Time per request:       40.822 [ms] (mean)
Time per request:       0.816 [ms] (mean, across all concurrent requests)
Transfer rate:          9993.68 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3   19   3.7     19      36
Processing:     9   21   4.0     21      44
Waiting:        9   20   4.0     20      44
Total:         14   40   4.5     39      61

Percentage of the requests served within a certain time (ms)
  50%     39
  66%     41
  75%     42
  80%     42
  90%     47
  95%     50
  98%     54
  99%     56
 100%     61 (longest request)

I need to still get D8 to use Redis (though this won't have any effect on proxied requests...), and I still need to do more benchmarking with MySQL on microSD vs SSD, etc.

Also of note, that 9993.68 transfer rate is pretty close to maxing out the 100 Mbps interface. The gigabit interface might be able to afford slightly faster cached throughput, maybe even up to 2200 req/s or so!

With some further configuration tweaks to Nginx on the balancer, I can eke out a few more req/s:
$ wrk -t4 -c200 -d10 http://pidramble.com/
Running 10s test @ http://pidramble.com/
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   110.25ms   11.29ms 185.02ms   92.70%
    Req/Sec   453.20     10.61   500.00     80.90%
  18029 requests in 10.00s, 110.11MB read
Requests/sec:   1802.39
Transfer/sec:     11.01MB

I'm definitely maxing out the built-in LAN at this point. I think I need to switch back to the GigE adapter again and see if that gives me another few req/s, or if we're hitting CPU limitations. iotop was showing a max of 95.5 Mbps!

Woohoo, now that's more like it!
$ wrk -t4 -c100 -d10 http://pidramble.com/
Running 10s test @ http://pidramble.com/
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    32.14ms    1.52ms  47.92ms   67.83%
    Req/Sec   783.40     37.90     0.89k    65.94%
  30799 requests in 10.00s, 188.10MB read
Requests/sec:   3079.86
Transfer/sec:     18.81MB

That's over the GigE USB 3.0 TRENDnet adapter (needs no drivers), configured as the eth1 interface.

Also working with PHP FPM configuration optimization, I'm getting 15+ uncached requests/second (using Redis caching):
$ wrk -t4 -c48 -d300 http://pidramble.com/?nocache=true
Running 5m test @ http://pidramble.com/?nocache=true
  4 threads and 48 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.02s   603.74ms   4.49s    66.99%
    Req/Sec     3.44      0.72     5.00     86.20%
  4753 requests in 5.00m, 24.84MB read
  Socket errors: connect 0, read 0, write 0, timeout 2451
Requests/sec:     15.83
Transfer/sec:     84.72KB

I think I've hit a point where the only optimizations I can make are hardware-related:

For cached traffic: the main bottleneck is the network interface.
For uncached traffic: the main bottleneck is the number of processes I can run on backend webservers without hitting CPU and memory limits.

Going further on uncached traffic (assuming full onslaught of requests):

MySQL is using 12-15% CPU, only about 25% RAM. Everything is cached in memory for reads.
Redis is using 18-20% CPU, only about 10% RAM.
Balancer is using 2-4% CPU, only about 15% RAM.
Webservers are using 100% (load ~= 4-5) CPU, about 93% RAM.

Over in #40 I got the cluster running on DigitalOcean, and it seems the exact same configuration runs about 62% faster on a cluster of 1GB Droplets.

Over on the Wiki I've been compiling some benchmarks for easier digestion: https://github.com/geerlingguy/raspberry-pi-dramble/wiki/Dramble-D8-Benchmarks
I think I have enough to go on to write at least a blog post or two—maybe a dozen! Drupal 8 has some nice new features to make caching easier and more powerful... but it's also quite slow (in terms of raw PHP performance) at this point in time (in comparison to Drupal 7's OOTB experience, at least). Hopefully that'll change.

I'm going to close this issue and simply continue blogging on http://www.jeffgeerling.com/ and http://www.pidramble.com/ about D8 performance and HA/HP.


[BUG] ViT export stopped working correctly

The model inference time is much slower
To Reproduce
pip install -q qai-hub-models
git clone https://github.com/quic/ai-hub-models
cd ai-hub-models/qai_hub_models/models/vit
python -m qai_hub_models.models.vit.export
Expected behavior
here is expected results:
https://aihub.qualcomm.com/jobs/jn5qv9l7g
Stack trace
here is my run:
https://app.aihub.qualcomm.com/jobs/jmg9drmw5/
(in your example all layers are in NPU, in my not).
Also if I download weights from your repo from this commit:
https://huggingface.co/qualcomm/VIT/tree/973054da6d5d65b53537f7e608021bded3c4c522
it works fine, but the newest commit it same issue as when I converted by myself (slow inference time).
Host configuration:

OS and version: Ubuntu 22.04.3 LTS
QAI-Hub-Models version: AI Hub : aihub-2<IP_ADDRESS> (in aihub-2<IP_ADDRESS> I got good inference speed, but don't know how I could downgrade with version)
qai-hub-models==0.9.2 and 0.10.0 (tried both).

Hi @Lavreniuk , thank you for filing this issue! Apologies for the delayed response. This is a known issue due to one of package dependencies in AI Hub. We will fix this once resolved in the dependent package. Please join our Slack Community for release notes on when this issue is resolved.

Performance for ViT has been improved to 17ms in the newest version of AI Hub Models (https://aihub.qualcomm.com/jobs/j56y4rd0p).


Install Questions run unoserver.server  No such file or directory: 'libreoffice'

I'm run python3 find_uno.py check success
but run python3 -m unoserver.server get
FileNotFoundError: [Errno 2] No such file or directory: 'libreoffice'

OS info

AlamaLinux 9
LibreOffice <IP_ADDRESS> bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
Python 3.9.18
pip 21.2.3 from /home/deploy/.local/lib/python3.9/site-packages/pip (python 3.9)

It doesn't find the libreoffice executable, which is strange as the uno library is installed. But anyway, you can specify that executable with the "--executable" parameter.

--executable should be the libreoffice executable.
On Fri, Jul 19, 2024 at 11:36 AM Rocko @.***> wrote:

It doesn't find the libreoffice executable, which is strange as the uno
library is installed. But anyway, you can specify that executable with the
"--executable" parameter.
thx of reply
I'm try use --excutable parameter and server run but get new issue.
unknown option --headless
@.*** tmp]$ unoserver --daemon --executable /usr/bin/python3
@.*** tmp]$ INFO:unoserver:Starting unoserver 2.1.
INFO:unoserver:Command: /usr/bin/python3 --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///tmp/tmp_okess_e --accept=socket,host=<IP_ADDRESS>,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
unknown option --headless
usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
INFO:unoserver:Server PID: 53136
and start convert test file get error

python3 -m unoserver.converter --executable /usr/bin/python3

xmlrpc.client.Fault: <Fault 1: "<class 'unoserver.converter.com.sun.star.connection.NoConnectException'>:Connector : couldn't connect to socket (Connection refused) at /home/buildslave/source/libo-core/io/source/connector/connector.cxx:118">
my install step

new alamalinux 9
sudo dnf install -y python3-pip
download libreoffice 24.2.5 rpm

sudo dnf insstall *.rpm

python3 -m unoserver.server
export ENV

export URE_BOOTSTRAP=vnd.sun.star.pathname:/opt/libreoffice24.2/program/fundamentalrc
export PATH=/opt/libreoffice24.2/program:$PATH
export UNO_PATH=/opt/libreoffice24.2/program
export LD_LIBRARY_PATH=/opt/libreoffice24.2/program:/opt/libreoffice24.2/ure/lib
export PYTHONPATH=/opt/libreoffice24.2/program:$PYTHONPATH

python3 find_uno.py

check OK

python3 -m unoserver.server --executable /usr/bin/python3
get unknown option --headless
use new command tab

python3 -m unoserver.converter --executable /usr/bin/python3

unoconvert --convert-to pdf /tmp/test.txt /tmp/text.pdf

get error
image.png (view on web)
https://github.com/user-attachments/assets/5b6163c5-1a9f-4852-a99d-a7c737762fb3

have a any install step for me?
—
Reply to this email directly, view it on GitHub
https://github.com/unoconv/unoserver/issues/123#issuecomment-2238764963,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGIK5BUU5Q7EYGVCPA2T2DZNDM3DAVCNFSM6AAAAABLECC5LSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZYG43DIOJWGM
.

THX


Show all search results

In the Leaderboards tab, the search is done as the user types something on the keyboard, showing the first matching item and the rest of users beneath it. This is however not practical and not efficient, thus it is aimed to narrow the search results down to users matching the input pattern:
ex. if "kr" is given, the results should look something like "krristi"; "kraboom" and so on.

Basically you are proposing to filter the entire leaderboard based on the search term. So it will only show entries that match what you're typing. In that case it might be nice to have some way of easily jumping to that entry in the list while clearing the filter so you can see who is close to that player on the leaderboard.

Well with pagenation that the api supports that can be done... Similar to the leaderboard on the website


(Solution Needed) Count number of vowels and consonants in a string

Hi!
I would like to contribute to this issue.

Can i contribute? if open


Could you add a license?

For use of software in a work context, it's nice to have a license and I've noticed that kbct doesn't have one. Would you be willing to add one?

Having a license is essential. Otherwise there's no way to know what can be done with both code AND program. Not to mention it's difficult to trust code with no license at all (and this requires sudo!).
If it's open-sourced, others are allowed to fork, distribute, and might eventually include it in repos for e.g. apt.
Or, if it's proprietary, you should say so, or people will make incorrect assumptions (e.g. when contributing).
Open source license suggestions:

MIT: if you require nothing except attribution
Unlicense: to put it in public domain, no requirements
GPL: to forbid inclusion in closed-source software + lots of other rules

@samvel1024 Is this project still maintained? Would you mind adding the license which applies to the code in this project so people can know whether we are allowed the even use your awesome tool at all... and to what extend your code may or may not be used to build on and perhaps create even more useful tools from it. Without a license, I believe that it is illegal to use your creation at all - such a pity for it to go to waste :(

Added, thanks

Added, thanks

Thank you so much!


How to remove this？

I love this theme very much 。
How to remove this ？

That's the VI mode insert indicator for your shell.  If you want to use VI mode but want, say, the Insert mode indicator to be blank then just set SPACESHIP_VI_MODE_INSERT=''.

That's the VI mode insert indicator for your shell. If you want to use VI mode but want, say, the Insert mode indicator to be blank then just set SPACESHIP_VI_MODE_INSERT=''.

Nice

See #586 for relevant discussion. This is also documented on our troubleshooting page.

Duplicate of #440


Join Design Prototype - first steps

Pull Request Description

Important Notes

Checklist
Please include the following checklist in your PR:

[ ] The documentation has been updated if necessary.
[ ] All code conforms to the
Scala,
Java,
and
Rust
style guides.
All code has been tested:

[ ] Unit tests have been written where possible.
[ ] If GUI codebase was changed: Enso GUI was tested when built using BOTH
./run ide build and ./run ide watch.

Implementation now proceeding.


Update api.ts

fix: API header
Description
By checking the API document of Holodex, I modified the header of API for this extension

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

note that @uetchy  hasn't been active in months, so please assume that Holodex team maintains ownership now


409 and 500 error code while moving files

I'm using the OneDrive personal API to move items (files and folders) from the root folder into a newly created folder.
Sometimes all items are moved successfully (200 ok everywhere), other times I get 409 or 500 errors in some files (in my tests I haven't gotten an error caused by a folder).
409 errors are in the following form, however the files are actually moved (there is no real conflict as the target folder is initially empty and root folder contents are moved as they are)
{
	"error": {
		"code": "nameAlreadyExists",
		"message": "An item with the same name already exists under the parent"
	}
}

500 errors are in the following form, and the files are not moved. If I retry the request, the files are moved normally without any further issues.
{
	"error": {
		"code": "generalException",
		"message": "An error occurred in the data store."
	}
}

A couple recent failing examples while moving files to target folder "6D4D5044C60EA101!243":
PATCH https://api.onedrive.com/v1.0/drive/items/6D4D5044C60EA101!108
POST data: {"name":"Call.docx","parentReference":{"id":"6D4D5044C60EA101!243"}}

HTTP/2.0 409 Conflict
content-length: 106
content-type: application/json
content-encoding: gzip
p3p: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
x-msnserver: BN2BAP4267A8D0B
strict-transport-security: max-age=31536000; includeSubDomains
access-control-allow-origin: https://app.qloudplus.com
access-control-expose-headers: Content-Range, ETag, Location, Preference-Applied, X-Resource-ID
x-qosstats: {"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
x-throwsite: 0bfa.2610
x-asmversion: UNKNOWN; 19.77.809.2029
x-msedge-ref: Ref A: B58F671A37B64281987356209A6DC7B3 Ref B: ATH01EDGE0107 Ref C: 2017-09-06T10:13:13Z
date: Wed, 06 Sep 2017 10:13:12 GMT
X-Firefox-Spdy: h2

PATCH https://api.onedrive.com/v1.0/drive/items/6D4D5044C60EA101!182
POST Data: {"name":"graph_api_check.txt","parentReference":{"id":"6D4D5044C60EA101!243"}}

HTTP/2.0 500 Internal Server Error
content-length: 96
content-type: application/json
content-encoding: gzip
p3p: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
x-msnserver: BN2BAP3F5D7BF6A
strict-transport-security: max-age=31536000; includeSubDomains
access-control-allow-origin: https://app.qloudplus.com
access-control-expose-headers: Content-Range, ETag, Location, Preference-Applied, X-Resource-ID
x-qosstats: {"ApiId":0,"ResultType":4,"SourcePropertyId":42,"TargetPropertyId":372}
x-throwsite: 0bfa.2610
x-asmversion: UNKNOWN; 19.77.809.2029
x-msedge-ref: Ref A: 7D8ABA90146A47559BC15937C11FD911 Ref B: ATH01EDGE0107 Ref C: 2017-09-06T10:13:08Z
date: Wed, 06 Sep 2017 10:13:07 GMT
X-Firefox-Spdy: h2

Hi @johnlilis, when you are doing these moves are you executing the requests in parallel or sequentially?

Hi @ificator, thanks for the quick response.
The requests are sent asynchronously using angular $http calls.

If you make all of the move requests sequentially do you still see issues. I'm wondering if it's contention on parallel moves under the same parent.

Yes, when making the requests sequentially they don't seem to fail. This can be used as a fallback, however the process takes significantly longer to complete.

Closing stale issues.


upgrade targetSdk to 33 and upgrade minSdk to 21, replace jcenter

upgrade targetSdk to 33 and upgrade minSdk to 21, replace jcenter with mavenCentral

We are waiting for this PR to be merged; thank you for the effort.


Thanos compactor: endless restart loop when 'block missing index file'

Thanos, Prometheus and Golang version used:
thanos: 0.25.2
prometheus: 2.35.0
golang: 1.17.5

Object Storage Provider:
Thanos/s3
What happened:
I am not going to elaborate on the matter, this issue is reopening https://github.com/thanos-io/thanos/issues/1199.
What you expected to happen:
No restart loop.
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:
Logs

level=info ts=2022-05-10T21:30:12.151102784Z caller=http.go:84 service=http/server component=compact msg="internal server is shutting down" err="error executing compaction: compaction: group 0@16580404985295954394: gather index issues for block data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C: open index file: try lock file: open data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C/index: no such file or directory"
level=warn ts=2022-05-10T21:30:12.150996864Z caller=intrumentation.go:67 msg="changing probe status" status=not-ready reason="error executing compaction: compaction: group 0@16580404985295954394: gather index issues for block data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C: open index file: try lock file: open data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C/index: no such file or directory"
level=error ts=2022-05-10T21:30:12.152881416Z caller=main.go:158 err="group 0@16580404985295954394: gather index issues for block data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C: open index file: try lock file: open data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C/index: no such file or directory\ncompaction\nmain.runCompact.func7\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:431\nmain.runCompact.func8.1\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:485\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\tgithub.com/thanos-io/thanos/pkg/runutil/runutil.go:75\nmain.runCompact.func8\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:484\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1581\nerror executing compaction\nmain.runCompact.func8.1\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:512\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\tgithub.com/thanos-io/thanos/pkg/runutil/runutil.go:75\nmain.runCompact.func8\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:484\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1581\ncompact command failed\nmain.main\n\tgithub.com/thanos-io/thanos/cmd/thanos/main.go:158\nruntime.main\n\truntime/proc.go:255\nruntime.goexit\n\truntime/asm_amd64.s:1581"
level=info ts=2022-05-10T21:30:12.152562807Z caller=intrumentation.go:81 msg="changing probe status" status=not-healthy reason="error executing compaction: compaction: group 0@16580404985295954394: gather index issues for block data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C: open index file: try lock file: open data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C/index: no such file or directory"
level=info ts=2022-05-10T21:30:12.152458354Z caller=http.go:103 service=http/server component=compact msg="internal server is shutdown gracefully" err="error executing compaction: compaction: group 0@16580404985295954394: gather index issues for block data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C: open index file: try lock file: open data/compact/0@16580404985295954394/01G2Q0W559A6HC3F2FBMX2H70C/index: no such file or directory"

Anything else we need to know:

seeing the same issue with Thanos 0.26 but with GCS. Unsure how it got into this state.

Hi, we're still experiencing this problem:
level=info ts=2023-05-15T08:05:11.744989977Z caller=compact.go:1005 group="0@{cluster_name=\"SERVER\", locality=\"LOC\", replica=\"prometheus-SERVER-0\"}" groupKey=0@4226472687758518923 msg="compaction available and planned; downloading blocks" plan="[01H0DT4J1AR2AS4YBS8JZC6ZPD (min time:<PHONE_NUMBER>116, max time:<PHONE_NUMBER>000) 01H0E1099D2JMJ3MW4XKXXRG4F (min time:<PHONE_NUMBER>116, max time:<PHONE_NUMBER>000) 01H0E7W0HJ9PAZVYG97KP6WARX (min time:<PHONE_NUMBER>116, max time:<PHONE_NUMBER>000) 01H0EEQQSJ7DNFCCM35MV6PH31 (min time:<PHONE_NUMBER>116, max time:<PHONE_NUMBER>000)]"
level=warn ts=2023-05-15T08:05:14.632819592Z caller=intrumentation.go:67 msg="changing probe status" status=not-ready reason="error executing compaction: compaction: group 0@4226472687758518923: gather index issues for block data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31: open index file: try lock file: open data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31/index: no such file or directory"
level=info ts=2023-05-15T08:05:14.63288286Z caller=http.go:91 service=http/server component=compact msg="internal server is shutting down" err="error executing compaction: compaction: group 0@4226472687758518923: gather index issues for block data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31: open index file: try lock file: open data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31/index: no such file or directory"
level=info ts=2023-05-15T08:05:14.633208803Z caller=http.go:110 service=http/server component=compact msg="internal server is shutdown gracefully" err="error executing compaction: compaction: group 0@4226472687758518923: gather index issues for block data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31: open index file: try lock file: open data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31/index: no such file or directory"
level=info ts=2023-05-15T08:05:14.633299157Z caller=intrumentation.go:81 msg="changing probe status" status=not-healthy reason="error executing compaction: compaction: group 0@4226472687758518923: gather index issues for block data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31: open index file: try lock file: open data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31/index: no such file or directory"
level=error ts=2023-05-15T08:05:14.633586832Z caller=main.go:161 err="group 0@4226472687758518923: gather index issues for block data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31: open index file: try lock file: open data/compact/0@4226472687758518923/01H0EEQQSJ7DNFCCM35MV6PH31/index: no such file or directory\ncompaction\nmain.runCompact.func7\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:423\nmain.runCompact.func8.1\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:477\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\tgithub.com/thanos-io/thanos/pkg/runutil/runutil.go:74\nmain.runCompact.func8\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:476\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1594\nerror executing compaction\nmain.runCompact.func8.1\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:504\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\tgithub.com/thanos-io/thanos/pkg/runutil/runutil.go:74\nmain.runCompact.func8\n\tgithub.com/thanos-io/thanos/cmd/thanos/compact.go:476\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1594\ncompact command failed\nmain.main\n\tgithub.com/thanos-io/thanos/cmd/thanos/main.go:161\nruntime.main\n\truntime/proc.go:250\nruntime.goexit\n\truntime/asm_amd64.s:1594"

thanos: 0.31.0
prometheus: 2.43.1
golang: 1.19.8
Why is compactor not just halted, hence thanos_compact_halted = 1, hence we can rise an alert without endless restarting?

Apparently the block is not downloaded to the local container and after downloading meta.json, compactor just "cancel" the context and didn't do anything else after that.
I did run some debug to see what is the error and this came out (see the "context cancelled")
ts=2023-07-21T05:47:09.356685387Z caller=block.go:56 group="0@{cluster=\"test\", replica=\"rhb"}" groupKey=0@10090106770770758544 ZAIHAN="ERROR DOWNLOADING FILES" error="get file 01H5SK5PZ8BZ7CN11QV6EX9SF0/meta.json: context canceled"


'cursor' conversion is wrong

The situation is the following:
The prisma schema:
model Visitor {
  id             String            @id @default(uuid())
  key            String            @unique /// @encrypted
  keyHash        String?           @unique /// @encryption:hash(key)
  created_at     DateTime          @default(now())

  @@map("visitors")
}

I would like to do a findMany with a cursor. So I will do the following:
 this.prisma.visitor.findMany({
           take: 5,
           skip: 1,
           cursor: {
             key: 'xxxxx-key-xxxxx',
           },
         })

But this gets converted to:
 this.prisma.visitor.findMany({
           take: 5,
           skip: 1,
           cursor: {
             key: 'v1.aesgcm256.xxxxxxx.8xxxxxxxxxxxxxxxxxxWhfw==',
             keyHash: 'xxxxxxxxx-hash-xxxxxxxxxxxx'
           },
         })

Which results in a Prisma error:
Argument cursor of type VisitorWhereUniqueInput needs exactly one argument, but you provided key and keyHash. Please choose one.
I would expect it to convert to:
 this.prisma.visitor.findMany({
           take: 5,
           skip: 1,
           cursor: {
             keyHash: 'xxxxxxxxx-hash-xxxxxxxxxxxx',
           },
         })

Please let me know if you need more information!

Ah, this is the same issue we just had with connect a few days ago, it should be an easy fix.


Hint button

I'd like to propose a Hint button for when the article is too difficult. I'm not sure what the best implementation of this would be, but my feeling is that it would choose some words to unhide which would aid in solving the puzzle.
Perhaps it could:

begin by uncovering short words

e.g. all 3 letter words
then 4 letter

or maybe by common words? (e.g. by document frequency) (I suspect this is the worst option though)
or uncommon ones?

However it worked, it would of course exclude the title word(s).
I'm not sure which would be "most fun" without getting you too close to the result too quickly. I imagine it as a button you hit multiple times to help you get closer without spoiling.
xref #17

Maybe letting users pick a specific word to reveal (by clicking in the article)? In all cases, it's not just the title word(s) but also their conjugations/variants/etc. which is a bit difficult to check by computer, probably. Stemming probably isn't enough there.

Ahh that would be interesting, by click. Perhaps that's a better way, though I guess the UX there would require some more thought than a simple button, since you'd be entering a modal interface that you'd need a way to cancel out of


Yaxis max value not correct when stacking values and having multiple axis

Checklist

[x ] I updated the card to the latest version available
[x ] I cleared the cache of my browser
[x ] I verified that I'm really running the lastest version in my browser console
[x ] I checked if there is another issue opened with the same problem

Describe the bug
I added a average temp line on my graph that shows my heatpump power usage, I used to have heating and tank grouped on top of each other and this worked fine.
I added a new line to show average temp and now the max value on the first yaxis is only the max value of one of the columns and not combined.
The moment you add any configuration for a yaxis (even if its just the main one) it doesn't combine the values anymore.
Version of the card
Version: 2.0.4 (as shown when it gives a error)
To Reproduce
The configuration that causes the problem:
header:
  show: true
  title: Consumption daily
stacked: true
graph_span: 7d
span:
  start: day
  offset: '-6d'
apex_config:
  chart:
    height: 275px
all_series_config:
  stroke_width: 2
  type: column
  float_precision: 3
  yaxis_id: first
  group_by:
    duration: 1d
    func: diff
yaxis:
  - id: first
  - id: second
    opposite: true
series:
  - entity: sensor.thuis_heating_accumulated_consumption
  - entity: sensor.thuis_cooling_accumulated_consumption
  - entity: sensor.thuis_tank_accumulated_consumption
  - entity: sensor.thuis_outdoor_temperature
    yaxis_id: second
    type: line
    color: '#ff0000'
    group_by:
      func: avg

The configuration that worked before changes:
type: custom:apexcharts-card
header:
  show: true
  title: Consumption daily
stacked: true
graph_span: 7d
span:
  start: day
  offset: '-6d'
apex_config:
  chart:
    height: 275px
all_series_config:
  stroke_width: 1
  type: column
  float_precision: 3
  yaxis_id: first
  group_by:
    duration: 1d
    func: diff
series:
  - entity: sensor.thuis_heating_accumulated_consumption
  - entity: sensor.thuis_cooling_accumulated_consumption
  - entity: sensor.thuis_tank_accumulated_consumption

Screenshots
With multiple yaxis and average temp:

Without any yaxis configuration

Expected behavior
The left axis has a max value of the combined value like it was showing before
Desktop (please complete the following information):
Google Chrome | 122.0.6261.95 (Official Build) (64-bit) (cohort: Stable)

I have the same issue


Bugs with ThreeDCamera

I have been working with ThreeDCamera over the past few days and have encountered a number of bugs.
Description of bug / unexpected behavior

The simplest bug is just another occurrence of #669 wherein one gets the error

AttributeError: 'ThreeDCamera' object has no attribute 'extract_mobject_family_members'

when one tries to remove_fixed_orientation_mobjects or remove_fixed_in_frame_mobjects. The fix is quite straightforward so instead of providing details of this bug, for now I will move on to the more involved bugs.

This bug is the same as #875 wherein calling self.move_camera with angles and frame_center does not result in the frame_center actually going to the center of the scene.

When calling self.move_camera with only frame_center as an argument, the animation does not play at all. Only when the animation is done does the scene reflect the fact that frame_center has moved, and even then bug 2 kicks in and the frame_center is not in the correct place.

A black dot appears and I think it sometimes moves where frame_center ought to be, not sure about it though.

Expected behavior

No error should be thrown.
frame_center should move to the center of the scene.
The animation should play with the scene smoothly moving.
frame_center should not actually be a visible component of the scene.

How to reproduce the issue

Code for reproducing the problem
In the code below, at least something plays in the first move_camera although it does not take the first dot to the center of the screen. In the second move_camera nothing plays and the scene updates a bit when the subsequent wait is called.

class ThreeDIssues(ThreeDScene):
    def construct(self):
        cube = Cube()
        self.play(Animation(cube))
        should_be_center = np.array([2,0,0])
        self.add(Dot(point=should_be_center),Dot(point=2*should_be_center))
        self.move_camera(phi=-10*DEGREES,frame_center=should_be_center)
        self.wait()
        self.move_camera(frame_center=2*should_be_center)
        self.wait()

Additional media files

Images/GIFs
https://user-images.githubusercontent.com/470168/115444571-5b5fc680-a232-11eb-8869-373f6747cfa4.mp4

System specifications
System Details

OS (with version, e.g Windows 10 v2004 or macOS 10.15 (Catalina)): Ubuntu 20.04
RAM: 8 GB
Python version (python/py/python3 --version): Python 3.8.5
Installed modules (provide output from pip list):

Package                 Version
----------------------- --------------------
apsw                    3.28.0.post1
apturl                  0.5.2
astroid                 2.4.2
attrs                   20.3.0
backcall                0.2.0
bcrypt                  3.1.7
beautifulsoup4          4.9.3
blinker                 1.4
Brlapi                  0.7.0
cairocffi               1.2.0
certifi                 2019.11.28
cffi                    1.14.4
chardet                 3.0.4
check50                 3.2.0
Click                   7.0
colorama                0.4.3
colour                  0.1.5
command-not-found       0.3
commonmark              0.9.1
cryptography            2.8
css-parser              1.0.4
cssselect               1.1.0
cssutils                1.0.2
cupshelpers             1.0
cycler                  0.10.0
dbus-python             1.2.16
decorator               4.4.2
defer                   1.0.6
distro                  1.4.0
distro-info             0.23ubuntu1
dnspython               1.16.0
duplicity               <IP_ADDRESS>
entrypoints             0.3
evdev                   1.3.0
fasteners               0.14.1
feedparser              5.2.1
future                  0.18.2
glcontext               2.3.3
html2text               2020.1.16
html5-parser            0.4.9
html5lib                1.0.1
httplib2                0.14.0
idna                    2.8
ifaddr                  0.1.6
ipython                 7.22.0
ipython-genutils        0.2.0
isort                   5.6.4
jedi                    0.18.0
jellyfish               0.8.2
Jinja2                  2.11.2
keyring                 18.0.1
kiwisolver              1.3.1
language-selector       0.1
launchpadlib            1.10.13
lazr.restfulclient      0.14.2
lazr.uri                1.0.3
lazy-object-proxy       1.4.3
lib50                   2.0.9
lockfile                0.12.2
louis                   3.12.0
lxml                    4.5.0
macaroonbakery          1.3.1
Mako                    1.1.0
manim                   0.5.0
manimce                 0.1.1
manimgl                 1.0.0
ManimPango              0.2.4
mapbox-earcut           0.12.10
Markdown                3.1.1
MarkupSafe              1.1.0
matplotlib              3.3.3
mccabe                  0.6.1
mechanize               0.4.5
moderngl                5.6.4
moderngl-window         2.3.0
monotonic               1.5
mpmath                  1.2.1
msgpack                 0.6.2
multipledispatch        0.6.0
netifaces               0.10.4
networkx                2.5
nose                    1.3.7
numpy                   1.19.4
oauthlib                3.1.0
olefile                 0.46
packaging               20.3
pangocairocffi          0.4.0
pangocffi               0.8.0
paramiko                2.6.0
parso                   0.8.2
pexpect                 4.6.0
pickleshare             0.7.5
Pillow                  7.0.0
pip                     20.0.2
progressbar             2.5
prompt-toolkit          3.0.18
protobuf                3.6.1
pycairo                 1.20.0
pychm                   0.8.6
pycparser               2.20
pycups                  1.9.73
pydub                   0.24.1
pyglet                  1.5.15
Pygments                2.7.3
PyGObject               3.36.0
PyJWT                   1.7.1
pylint                  2.6.0
pymacaroons             0.13.0
PyNaCl                  1.3.0
PyOpenGL                3.1.5
pyparsing               2.4.7
PyQt5                   5.14.1
PyQtWebEngine           5.14.0
pyRFC3339               1.1
pyrr                    0.10.3
python-apt              2.0.0+ubuntu<IP_ADDRESS>
python-dateutil         2.7.3
python-debian           0.1.36ubuntu1
python-magic            0.4.16
pytz                    2019.3
pyxattr                 0.6.1
pyxdg                   0.26
PyYAML                  5.3.1
regex                   2019.8.19
reportlab               3.5.34
repoze.lru              0.7
requests                2.22.0
requests-unixsocket     0.2.0
rich                    6.2.0
Routes                  2.4.1
scipy                   1.5.4
screen-resolution-extra 0.0.0
screeninfo              0.6.7
SecretStorage           2.3.1
setproctitle            1.1.10
setuptools              45.2.0
simplejson              3.16.0
sip                     4.19.21
six                     1.14.0
soupsieve               2.1
sympy                   1.7.1
systemd-python          234
termcolor               1.1.0
toml                    0.10.2
tqdm                    4.54.1
traitlets               5.0.5
typing-extensions       <IP_ADDRESS>
ubuntu-advantage-tools  20.3
ubuntu-drivers-common   0.0.0
ufw                     0.36
unattended-upgrades     0.1
urllib3                 1.25.8
usb-creator             0.3.7
validators              0.18.2
wadllib                 1.3.3
wcwidth                 0.2.5
webencodings            0.5.1
WebOb                   1.8.5
wheel                   0.34.2
wrapt                   1.12.1
xkit                    0.0.0
youtube-dl              2020.3.24
zeroconf                0.24.4

FFMPEG
Output of ffmpeg -version:
ffmpeg version 4.2.4-1ubuntu0.1

Additional comments

issue still exists in 0.9.0
Line 404 of manim/camera/three_d_camera.py needs to be changed
from:
for mobject in self.extract_mobject_family_members(mobjects):
to:
for mobject in extract_mobject_family_members(mobjects):

3 and 4. are still not fixed in 0.8.0.

Fixed in PR #1821


Migrate external identities code samples to MSAL

Migrate external identities B2B code samples from ADAL to MSAL

#label:"aq-pr-triaged"

@mezaugusto : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thank you @mezaugusto! Sample updates were included in https://github.com/MicrosoftDocs/azure-docs-pr/pull/191062.
#please-close


fix: quote GITHUB_LOG_METRIC_COLLECTION env var & remove default

Having issues deploying the charts as the environment variable GITHUB_LOG_METRIC_COLLECTION needs to be a string rather than a bool. See:
"github-rate-limits-prometheus-exporter/github-rate-limits-prometheus-exporter-deploy.yaml": Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal bool into Go struct field EnvVar.spec.template.spec.containers.env.value of type string
Also removed the default value as it's defaulted true in values.

Oooh, good catch, sorry about that!

Merged. Thank you!


hard code oedeploy image depenency as work around for az cli bug

Signed-off-by: brmclare<EMAIL_ADDRESS>

/close

/close

/reopen

/reopen

/override pr-openenclave-ci-ping

/override pr-openenclave-ci-ping


Add errors reply helper

As per discussion here:
https://github.com/cloudcreativity/json-api/issues/14#event-437573157
add an errors reply helper that accepts an ErrorInterface or ErrorCollectionInterface object.

Done and tagged as v0.2.0


Support for multi-section tables

See https://github.com/firebase/FirebaseUI-iOS/issues/8

@samtstern I believe this issue can be closed as a duplicate of #305. (My apologies if I am incorrect as I'm unsure what multi-section tables are.)

I think this is slightly different, it's more of an iOS thing but could still be relevant here.  It's lists that are broken up by "section headers" like you might see in a preferences screen or something.

@samtstern Ohhhhhh, that makes way more sense! Nevermind then, that would be cool! 😄

This has been sitting for a while, so I'll say this: I think this is beyond the scope of this library as this isn't particularly Firebase-related.

The related iOS issue is closed so I think @TheCraftKid is right.  I'll close this for now, there is clearly not much demand.


Enable tech docs multipage functionality - DO NOT MERGE

This PR contains the pattern for the new tech docs multipage config pulled from the tech doc source repo. Currently published GDS Way documentation has been reviewed and amended to fit this new pattern.
This is for contribution and comment. I have taken the view of transferring the content as it currently stands in terms of heading and layout as far as possible. In this PR I have suggested three headings for content, which are:

Build Software
Operate Services
Secure your service

These categories are open for comment. I think it would be good to add in placeholder titles for the backlog in the GDS Way trello board as I think it will encourage more contributions. But, I'd like input from people as to how we can structure this as there's no doubt several ways we can potentially structure the content beyond the above three categories.
See the PaaS documentation as an example of this new pattern.

As a general thing, this change has lost the distinction between "standards" and "manuals." Is that on purpose?

yes, to move towards a more 'service based' feel to the site. I've had anecdotal feedback that because we have things on similar topics in manuals and guidance and it was confusing.

That's fine. Just wanted to make sure it was an explicit choice.

We've lost the statement on each page that "The GDS Way and its content is intended for internal use by the GDS community."

do you mean the banner on each page of guidance? the new format renders multiple pages into a single section, I'm not sure how we can change this?

I mean this bit of text at the top of each page, which is there to say "this is GDS internal guidance, not something that we're telling the rest of government that they should follow":

The "Add new guidance" needs updating due to single/multi-page thing.

I've removed the partial ref from 'add new guidance' was there anything else you had in mind?

It's more the bit that says "When you create a new Markdown file follow this pattern and make a pull request." That's no longer true, given the addition of the partials to pull the individual content pieces in.
My suggestion is to remove that page entirely, and put the template + any additional information in the README (which is where someone will be if they're making changes). We already have various links to the GitHub repo, and it makes sense to me to have all the "how to add / edit a thing" content in one place.

@timblair thanks for the update Ti. I've made a couple of changes based on your feedback. Combining the 'about' section with the landing page content and also moving the 'add new guidance' section to the readme.

I have squashed all the commits and opened a new PR, so I am closing this one.
New PR: https://github.com/alphagov/gds-way/pull/215


SMARD.de feed is broken

Since today or yesterday the SMARD.de EPEX Spot Data Integration is broken:

Switching to Web Scraper is working, but the data from the previous day is missing.
All my automations and template sensors are broken for the moment!

SMARD.de feed is working again!
To avoid this kind of noise:
How can I test the SMARD.de API manually?


suggest new bootstrap technique

Can a "bootstrap" target be added that will create an installable package for cargo that does not rely on having a working cargo installation? Envisioned operation is:

Creates a target/bootstrap directory (akin to target/package) to hold intermediate files necessary for the bootstrap package.
Performs a "cargo package"-like operation to store source files, etc., under the bootstrap directory.
Downloads (or copies) all dependent package source files under the bootstrap directory hierarchy.
Logs all commands that would be run as part of a cargo build into a file under the bootstrap directory.

The intention is that someone building cargo for the first time on a novel platform (and who doesn't have a supported platform available to run a cross-compile, (ahem) would be able to download a "bootstrap" tarball, run its contained shell script, and end up with a working cargo binary. And in case that didn't work, the shell script would at least contain a record of what a successful compilation process looks like, making it easier to recover from failures.

I wrote a script that builds Cargo on FreeBSD, by compiling an initial known-good version by hand, and then using that to bootstrap up to the latest version. Details at https://csperkins.org/research/misc/2015-01-02-cargo-freebsd.html if it's useful to others.

@csperkins Thanks a lot for the link. It is very useful. Just an idea, you can list required dependencies for this bootstrap to succeed. I understand it's a little painful to figure out all of them, but one step a time. textproc/libflate is required. Apologies for the noise in this thread, could find a way to leave a comment in your post.

I won't have the time to do that for the next few weeks at least, however as a starting point, it bootstraps on a FreeBSD 10.1-RELEASE-p9 machine with only the following packages installed:
bash-4.3.33                        =
ca_root_nss-3.18.1                 =
cmake-3.1.3                        =
cmake-modules-3.1.3                =
curl-7.42.1                        =
cvsps-2.1_1                        =
expat-2.1.0_2                      =
gettext-runtime-0.19.4             =
git-2.3.7                          =
gmake-4.1_1                        =
indexinfo-0.2.3                    =
libexecinfo-1.1_3                  =
libffi-3.2.1                       =
libflate-2.0                       =
libssh2-1.4.3_5,2                  =
libunwind-20121006_2               =
p5-Authen-SASL-2.16_1              =
p5-Digest-HMAC-1.03_1              =
p5-Error-0.17023                   =
p5-GSSAPI-0.28_1                   =
p5-IO-Socket-IP-0.37               =
p5-IO-Socket-SSL-2.012             =
p5-Mozilla-CA-20141217             =
p5-Net-SMTP-SSL-1.02               =
p5-Net-SSLeay-1.68                 =
p5-Socket-2.019                    =
perl5-5.18.4_14                    =
pkg-1.5.1                          =
pkgconf-0.9.10                     =
python-2.7_2,2                     =
python2-2_3                        =
python27-2.7.9_1                   =
screen-4.2.1_5                     =
vim-lite-7.4.691                   =

This now exists externally, so closing. Deciding whether to officially include this is https://github.com/rust-lang/cargo/issues/2110


Read stripe skip list only if column is referenced by the query

A user reported performance issue if all stripe skip lists are
deserialized even if only a fraction of them is selected.
Fixes #136

@pykello  ping

Looks good. Merging.


Datasource provision does not specify the apiVersion

When we add a new datasource the jsonData is not working because of the apiVersion is not declared.
The apiVersion should be declared on top of the provisioning yaml because otherwise it is considered as an apiVersion: 0 file an raises this warning :

[Deprecated] the datasource provisioning config is outdated. please upgrade

See here for the differences between the versions: github.com/grafana
It is currently possible to have jsonData working by renaming it json_data but imho it is better to specify that we are using apiVersion: 1.
A PR implementing apiVersion: 1 is incoming.

Done in #76


Rename StaticBody to ColliderBody and make body modes clearer

Physics node changes and documentation update to close https://github.com/godotengine/godot-proposals/issues/2867.
Discussion summary in this comment:
https://github.com/godotengine/godot-proposals/issues/2867#issuecomment-866372871
Rename StaticBody to ColliderBody:
Clearer to users for a physics node that can be either static or kinematic.
Replace kinematic_motion property with mode (Static/Kinematic):
Makes it similar to RigidBody node, makes it clearer static and kinematic modes mean the same thing in both nodes.
Helps addressing confusion between body modes (behavior in the simulation) and physics node types (specific features for different usage).
Rename MODE_DYNAMIC_LOCKED to MODE_DYNAMIC_LINEAR for rigid bodies:
Clearer to indicate this mode is for dynamic bodies that can't rotate.
Brief summary update:
Also updated description for the different physics nodes to make their usage clearer when adding nodes.
(see https://github.com/godotengine/godot-proposals/issues/2867#issuecomment-881021772)

As discussed on the chat, since the new naming doesn't have consensus, the plan to replace this PR is as follows:

Add KinematicBody back as inherited from StaticBody

As an alternative solution to make names clearer without renaming StaticBody, KinematicBody will be added again as a specialized node for moving platforms.
Addressed by #52286

Refactor RigidBody node

In order to make its usage clearer, RigidBody will become RigidDynamicBody (and SoftBody will become SoftDynamicBody). The mode property will be replaced with freeze and lock rotations properties to make it clearer the normal functioning mode is dynamic.
New PR to come.

Closing as it's now fully superseded by other PRs.


Remove maxLength in chat input box to allow larger prompts

Can't send larger messages because of this artificial limit.
ChatGPT also doesn't have any upper limit to what we can send as message.

The issue with doing this will be that when we have to do manual similarity searches across a vector space we have to pre-chunk the query if its over a certain length to vectorize. Turning this off like this will result in someone sending a message that will fail because the query will be too long to do a similarity search without pre-chunking for when we are not using langchain - which is just lance

Okay, now I understand. But to really make this an alternative to ChatGPT, we need to increase this limit.

Split the query into multiple parts to make prompts and then generate text summarizations.
Use those to piece together whatever the original message says and feed that in to generate results.

to work around this (b ecause 240 was pretty unusable) I changed it to 500 on my local instance. 500 is generally ok.

500 seems to work ok here too.
@preeteshjain I get the problem and I've increased the value by myself before actually looking here and see what it was so small. I'm not in the team, but I would like to say that "make this an alternative to ChatGPT" is not the goal here. This project (for now at least) has the big plus on making easy to make your own personal knowledge dataset and "talk to your documents". Until now this is the best project I've seen around that actually works and only requires one paying API: the openai's.


Update package.json

Remove the version field as it's not relevant in our project.
Update description.
Sort the file using npx sort-package-json.
Add contributors. See package.json | npm Docs.
Add build script.
Rename watch script to start script because npm start is quicker to write than npm run watch.
Remove the dummy test script.

Our project is not a publishable npm package, so all fields except scripts and devDependencies are practically unnecessary. Should we remove them; wdyt @Steellow? 🤔

Our project is not a publishable npm package, so all fields except scripts and devDependencies are practically unnecessary. Should we remove them; wdyt @Steellow? 🤔

They don't really bother me, but since you're asking I'd say yes, delete 'em 🤷♂

I removed them. 👍


display 'transaction hash' component only if the xdr type is tx

https://github.com/user-attachments/assets/dbd1d442-b026-4fdc-aedc-dd92abf3c761
Summary:

Transaction Hash component threw an error when a non transaction xdr was inputted

Added a try catch and enable the tx hash component only when its xdr type is transaction

Also added a function to select the default guessed value for the xdr type dropdown. I found it useful when I was testing ScVal xdr

Shout out to gleb and jayrome for reporting this bug

LedgerKey xdr example: AAAABgAAAAGWNEXLrjMwpL/B5VAx7PowbQ8QM/gG0tSbhaHxqESvswAAAA8AAAAITUVUQURBVEEAAAAB

ScVal xdr example: AAAAEQAAAAEAAAAGAAAADwAAAAZhbW91bnQAAAAAAAoAAAAAAAAAAAAACRhOcqAAAAAADwAAAAxib290c3RyYXBwZXIAAAASAAAAARssFqxD/prgmYc9vGkaqslWrGlPINzMYTLc4yqRfO3AAAAADwAAAAxjbG9zZV9sZWRnZXIAAAADAz6ilAAAAA8AAAAIcGFpcl9taW4AAAAKAAAAAAAAAAAAAAARdlkuAAAAAA8AAAAEcG9vbAAAABIAAAABX/a7xfliM8nFgGel6pbCM6fT/kqrHAITNtWZQXgDlIIAAAAPAAAAC3Rva2VuX2luZGV4AAAAAAMAAAAA

TransactionEnvelope xdr example: AAAAAgAAAADJrq4b4AopDZibkeBWpDxuWKUcY4FUUNQdIEF3Nm9dkQAAAGQAAAIiAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAACXlGN76T6NQcaUJxbEkH3mi1HHWsHnLqMDdlLl9NlJgQAAAAAAAAAABfXhAAAAAAAAAAAA

Preview is available here:http://laboratory-pr1132.previews.kube001.services.stellar-ops.com/

Preview is available here:http://laboratory-pr1132.previews.kube001.services.stellar-ops.com/

Preview is available here:http://laboratory-pr1132.previews.kube001.services.stellar-ops.com/

Preview is available here:http://laboratory-pr1132.previews.kube001.services.stellar-ops.com/


Always format code as code when using the  "Continue" prompt

The continue prompt is suboptimal for me - if ChatGPT stops generating code in the middle of certain code, like a comment block for example, the next part is often given as regular text instead of a code block, meaning that the responses can't be combined:

It would be nice if this plugin could detect that and force the text to be formatted as code.

Yeah this happens a lot unfortunately.  Once we gain the ability to modify the default requests we can start crowdsourcing the best way to ask these things. Like the person that did the 20 line segment trick.

Doh, I was blind / didn't read far enough in settings.  @ext:gencay.vscode-chatgpt scroll down to the bottom:

There you can only change the prompts, not the name of the prompts.

Yeah I figured that out a minute too late. lame am I.

Are you able to consistently reproduce this for a prompt? I see this from time to time as well. The reason is that OpenAI doesn't send the response in the correct markdown format (e.g. the code block needs to be fenced with ```) for the extension to render it in code block unfortunately. Without the proper fencing in markdown, there isn't anything the extension do. Don't expect a perfect solution like OpenAI's web experience, they own both frontend and backend there.
This extension is not affiliated with anywhere, it's just a hobby project I work on, on my free time to learn gpt stuff and writing extensions in vs code for the community for free..
I am happy to look into if there is a concise reproducible way to understand the issue better.