text:
Single-header version requires two files to be included

Why the single-header version of the library actually uses 2 files, one of which is .cpp? It's counterintuitive to see
#include "simdutf.cpp"
#include "simdutf.h"

in the single-header version example.
Also, I expect to be able to install both versions at the same time. But now the amalgamated file from the zip archive and include/simduft.h have the same name, so it's unclear how to differentiate them in CMAKE_INSTALL_INCLUDEDIR.

From the README:

You can create a single-header version of the library where all of the code is put into two files (simdutf.h and simdutf.cpp). We publish a zip archive containing these files, e.g., see https://github.com/simdutf/simdutf/releases/download/v3.2.2/singleheader.zip

There is a single header and a single source file.
We provide an example... here is a simplified version:
#include <iostream>
#include <memory>

#include "simdutf.cpp"
#include "simdutf.h"

int main(int , char *[]) {
  const char *source = "1234";
  // 4 == strlen(source)
  bool validutf8 = simdutf::validate_utf8(source, 4);
  if (validutf8) {
    std::cout << "valid UTF-8" << std::endl;
  } else {
    std::cerr << "invalid UTF-8" << std::endl;
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}

Also, I expect to be able to install both versions at the same time. But now the amalgamated file from the zip archive and include/simduft.h have the same name, so it's unclear how to differentiate them in CMAKE_INSTALL_INCLUDEDIR.

I am not sure what you mean by both at the same time. You can either use the single-header version, in which case you just copy simdutf.h and simdutf.cpp to your project. Or else, if you want to use simdutf as an installed package of some sort, then you do so... Here is a CMake example...
cmake_minimum_required(VERSION 3.15)

project(test_simdutf_install VERSION 0.1.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC_VERSION GREATER 1910)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -permissive-")
endif()
find_package(simdutf REQUIRED)

file(WRITE main.cpp "
#include <iostream>
#include \"simdutf.h\"
int main(int argc, char *argv[]) {
   const char * ascii = \"1234\";
   bool validutf8 = simdutf::validate_utf8(ascii, 4);
   if(validutf8) {
       std::cout << \"valid UTF-8\" << std::endl;
   } else {
       std::cout << \"invalid UTF-8\" << std::endl;
       return EXIT_FAILURE;
   }
   char16_t utf16_output[4];
   // convert to UTF-16LE
   size_t utf16words = simdutf::convert_utf8_to_utf16le(ascii, 4, utf16_output);
   std::cout << \"wrote \" << utf16words << \" UTF-16 words.\" << std::endl;
   // It wrote utf16words * sizeof(char16_t) bytes.
   //
   // convert it back:
   char buffer[4];
   size_t utf8words = simdutf::convert_utf16le_to_utf8(utf16_output, utf16words, buffer);
   std::cout << \"wrote \" << utf8words << \" UTF-8 words.\" << std::endl;
   return EXIT_SUCCESS;
}")

add_executable(repro main.cpp)
target_link_libraries(repro PUBLIC simdutf::simdutf)

If you use the single-header release, then two files must be installed the header (there is just one) and the source file.

From CMake, you can use simdutf as a dependency as follows...
cmake_minimum_required(VERSION 3.15)

project(simdutf_demo_install VERSION 0.1.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)

FetchContent_Declare(
  simdutf
  GIT_REPOSITORY git@github.com:simdutf/simdutf.git
  GIT_SHALLOW TRUE
  GIT_TAG tags/v3.2.2
  )
FetchContent_MakeAvailable(simdutf)

file(WRITE main.cpp "
#include <iostream>
#include \"simdutf.h\"
int main(int argc, char *argv[]) {
   const char * ascii = \"1234\";
   bool validutf8 = simdutf::validate_utf8(ascii, 4);
   if(validutf8) {
       std::cout << \"valid UTF-8\" << std::endl;
   } else {
       std::cout << \"invalid UTF-8\" << std::endl;
       return EXIT_FAILURE;
   }
   char16_t utf16_output[4];
   // convert to UTF-16LE
   size_t utf16words = simdutf::convert_utf8_to_utf16le(ascii, 4, utf16_output);
   std::cout << \"wrote \" << utf16words << \" UTF-16 words.\" << std::endl;
   // It wrote utf16words * sizeof(char16_t) bytes.
   //
   // convert it back:
   char buffer[4];
   size_t utf8words = simdutf::convert_utf16le_to_utf8(utf16_output, utf16words, buffer);
   std::cout << \"wrote \" << utf8words << \" UTF-8 words.\" << std::endl;
   return EXIT_SUCCESS;
}")

add_executable(repro main.cpp)
target_link_libraries(repro PUBLIC simdutf::simdutf)

I am going to close the issue. The reporter is correct, they need two files for the single-header version.

As a last remark: we do not and probably never will support having both the single-header and another version of the simdutf library in the same project. It is the same code, same library, just packaged differently. Many users find the single-header version simpler.

If you use the single-header release, then two files must be installed the header (there is just one) and the source file.

I understand, but I expected "single-header" to be "header-only". Otherwise, it's not clear what's the advantage of this version: it looks like you can just include the file https://github.com/simdutf/simdutf/blob/master/include/simdutf.h instead without any .cpp.
And I've never seen the inclusion of a .cpp file in other projects. You are free to use any distribution method you want, of course, just wanted to know your motivation for this.

I am not sure what you mean by both at the same time

I meant simultaneous installation, not usage. So you can package both versions of the library and give users a chance to select the version they want. Currently, IIUC, you need to create 2 different packages or manually rename/move files.

If you believe that there is a shortcoming, please consider providing a pull request.

authors: lemire tocic

repo: simdutf/simdutf


text:
Remove /f /q is incorrect in powershell

Remove /f /q is incorrect in powershell

LG2M. Merged

@Acenl12 This is likely an issue in https://github.com/simeononsecurity/Windows-Optimize-Harden-Debloat as well if you wanted to submit another pull request.
Thanks!

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Error: The getter 'typeArgumentTypes'

why i get this error:
[SEVERE] Failed to snapshot build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
[SEVERE] file:///E:/Software/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-1.7.0/lib/src/parser/column_parser.dart:158:38: Error: The getter 'typeArgumentTypes' isn't defined for t
he class 'MethodInvocation'. - 'MethodInvocation' is from 'package:analyzer/dart/ast/ast.dart' ('file:///E:/Software/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.36.3/lib/dart/ast/ast
.dart').Try correcting the name to the name of an existing getter, or defining a getter or field named 'typeArgumentTypes'.          final type = remainingExpr.typeArgumentTypes.single;
                              ^^^^^^^^^^^^^^^^^
pub finished with exit code 78

Yikes, I didn't know they only added that getter in the analyzer version 0.37. If you add
dev_dependencies:
  analyzer: '>=0.37.0'

to your pubspec, does that solve the problem?
Moor wrongly declares compatibility with older analyzer versions, it shouldn't. I'll release a proper fix for that soon.

@simolus3 it can solve my problem

FYI, I've just released moor 1.7.1 which fixes this problem. You can remove the analyzer dev dependency if you include
dev_dependencies:
  moor_generator: ^1.7.1

source: gharchive/issue

license: mit

license_source: bigquery


text:
Store json as string instead of parsing

Hi there,
I would like to know how can I store a json object/array as a string inside a table without parsing it - just pure json string.
This is the json I'm getting and want to store as a string and parse it myself later on:
{
  "id": 166,
  "activity_hours": {
    "Mon": {
      "hours": [
        [
          "08:00",
          "12:00"
        ],
        [
          "13:00",
          "15:00"
        ]
      ],
      "is_closed": false
    },
    "Tue": {
      "hours": [
        [
          "08:00",
          "09:00"
        ],
        [
          "10:00",
          "15:00"
        ]
      ],
      "is_closed": false
    },
    "Wed": {
      "hours": [],
      "is_closed": false
    }
  }
}

I couldn't find any answers.
Thanks!

If you don't want moor to automatically parse your json, you can just save it as a text column. Moor then generates a String field in all classes, so you can parse the json yourself when you need it. When storing data in a database, you would have to manually call json.encode().
Is that what you needed? I'll gladly provide more details if you run into a specific problem.


text:
🛑 Snow Boards NZ is down

In 634024d, Snow Boards NZ (https://$SZ_SITE1/) was down:

HTTP code: 503
Response time: 5590 ms

Resolved: Snow Boards NZ is back up in db30b33.


text:
🛑 Snow Boards NZ is down

In c5c6b32, Snow Boards NZ (https://$SZ_SITE1/) was down:

HTTP code: 503
Response time: 4656 ms

Resolved: Snow Boards NZ is back up in 02cb4ef after 5 minutes.


text:
Installation problem on macOS M1

Hi!
I'm trying to install the Auto-Sklong using pip install Auto-Sklong on my MacBook Pro M1, but there is one dependency that is only available for Intel chips (deep_forest-0.1.7-cp39-cp39-macosx_10_9_x86_64.whl), so the installation fails:
Collecting auto-sklong
  Using cached auto_sklong-0.0.2-py3-none-any.whl.metadata (11 kB)
Collecting numpy==1.23.3 (from auto-sklong)
  Using cached numpy-1.23.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (2.3 kB)
Collecting scipy>=1.5.0 (from auto-sklong)
  Using cached scipy-1.13.1-cp39-cp39-macosx_12_0_arm64.whl.metadata (60 kB)
Collecting pandas<2.0.0,>=1.5.3 (from auto-sklong)
  Using cached pandas-1.5.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (11 kB)
Collecting stopit>=1.1.2 (from auto-sklong)
  Using cached stopit-1.1.2.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting liac-arff>=2.2.2 (from auto-sklong)
  Using cached liac-arff-2.5.0.tar.gz (13 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting category-encoders>=1.2.8 (from auto-sklong)
  Using cached category_encoders-2.6.3-py2.py3-none-any.whl.metadata (8.0 kB)
Collecting black>=23.10.1 (from auto-sklong)
  Using cached black-24.8.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (78 kB)
Collecting psutil (from auto-sklong)
  Using cached psutil-6.0.0-cp38-abi3-macosx_11_0_arm64.whl.metadata (21 kB)
Collecting configspace<1.0.0,>=0.7.1 (from auto-sklong)
  Using cached ConfigSpace-0.7.1-cp39-cp39-macosx_10_9_universal2.whl.metadata (7.2 kB)
Collecting smac==2.1.0 (from auto-sklong)
  Using cached smac-2.1.0.tar.gz (148 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Scikit-longitudinal>=0.0.5 (from auto-sklong)
  Using cached scikit_longitudinal-0.0.6-py3-none-any.whl.metadata (11 kB)
Collecting pynisher>=1.0.0 (from smac==2.1.0->auto-sklong)
  Using cached pynisher-1.0.10.tar.gz (30 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting joblib (from smac==2.1.0->auto-sklong)
  Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting scikit-learn>=1.1.2 (from smac==2.1.0->auto-sklong)
  Downloading scikit_learn-1.5.2-cp39-cp39-macosx_12_0_arm64.whl.metadata (13 kB)
Collecting pyrfr>=0.9.0 (from smac==2.1.0->auto-sklong)
  Using cached pyrfr-0.9.0.tar.gz (295 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting dask[distributed] (from smac==2.1.0->auto-sklong)
  Using cached dask-2024.8.0-py3-none-any.whl.metadata (3.8 kB)
Collecting dask-jobqueue (from smac==2.1.0->auto-sklong)
  Using cached dask_jobqueue-0.8.5-py2.py3-none-any.whl.metadata (1.6 kB)
Collecting emcee>=3.0.0 (from smac==2.1.0->auto-sklong)
  Using cached emcee-3.1.6-py2.py3-none-any.whl.metadata (3.0 kB)
Collecting regex (from smac==2.1.0->auto-sklong)
  Downloading regex-2024.9.11-cp39-cp39-macosx_11_0_arm64.whl.metadata (40 kB)
Collecting pyyaml (from smac==2.1.0->auto-sklong)
  Using cached PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting click>=8.0.0 (from black>=23.10.1->auto-sklong)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting mypy-extensions>=0.4.3 (from black>=23.10.1->auto-sklong)
  Using cached mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black>=23.10.1->auto-sklong)
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pathspec>=0.9.0 (from black>=23.10.1->auto-sklong)
  Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
Collecting platformdirs>=2 (from black>=23.10.1->auto-sklong)
  Downloading platformdirs-4.3.3-py3-none-any.whl.metadata (11 kB)
Collecting tomli>=1.1.0 (from black>=23.10.1->auto-sklong)
  Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Collecting typing-extensions>=4.0.1 (from black>=23.10.1->auto-sklong)
  Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting statsmodels>=0.9.0 (from category-encoders>=1.2.8->auto-sklong)
  Using cached statsmodels-0.14.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (9.2 kB)
Collecting patsy>=0.5.1 (from category-encoders>=1.2.8->auto-sklong)
  Using cached patsy-0.5.6-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting pyparsing (from configspace<1.0.0,>=0.7.1->auto-sklong)
  Using cached pyparsing-3.1.4-py3-none-any.whl.metadata (5.1 kB)
Collecting more-itertools (from configspace<1.0.0,>=0.7.1->auto-sklong)
  Downloading more_itertools-10.5.0-py3-none-any.whl.metadata (36 kB)
Collecting python-dateutil>=2.8.1 (from pandas<2.0.0,>=1.5.3->auto-sklong)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas<2.0.0,>=1.5.3->auto-sklong)
  Downloading pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting matplotlib<4.0.0,>=3.7.0 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached matplotlib-3.9.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (11 kB)
Collecting jupyter<2.0.0,>=1.0.0 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached jupyter-1.1.1-py2.py3-none-any.whl.metadata (2.0 kB)
Collecting overrides<8.0.0,>=7.3.1 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached overrides-7.7.0-py3-none-any.whl.metadata (5.8 kB)
Collecting ray<3.0.0,>=2.3.1 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached ray-2.35.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (16 kB)
Collecting graphviz<1.0.0,>=0.20.1 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)
Collecting threadpoolctl<4.0.0,>=3.1.0 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)
Collecting rich>=13.6.0 (from Scikit-longitudinal>=0.0.5->auto-sklong)
  Using cached rich-13.8.1-py3-none-any.whl.metadata (18 kB)
INFO: pip is looking at multiple versions of scikit-longitudinal to determine which version is compatible with other requirements. This could take a while.
Collecting Scikit-longitudinal>=0.0.5 (from auto-sklong)
  Using cached scikit_longitudinal-0.0.5-py3-none-any.whl.metadata (11 kB)
ERROR: Cannot install auto-sklong because these package versions have conflicting dependencies.

The conflict is caused by:
    scikit-longitudinal 0.0.6 depends on deep-forest>=0.1.7
    scikit-longitudinal 0.0.5 depends on deep-forest>=0.1.7

I built a very simple Docker image to be able to install the package, in case it's useful for you:
FROM python:3.9.19-bullseye

RUN apt-get update -y && \
    apt-get upgrade -y && \
    apt-get autoremove -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
RUN pip3.9 install --upgrade pip && \
    pip3.9 install Auto-Sklong && \
    pip3.9 uninstall -y scikit-learn scikit-lexicographical-trees && \
    pip3.9 install scikit-lexicographical-trees

WORKDIR /home
ENTRYPOINT /bin/bash

Also, I'd like to add that it only worked with python3.9, due to some dependency incompatibilities with higher versions of python and with debian bullseye, as when I tried debian bookworm (with that same dockerfile) there were some problems during compilation (I didn't save them sorry).
I hope that can help.
Thank you very much for developing these packages!
Ander

Hi, Mate! I will respond in a few days; I am attending a conference this week. No worries, your errors are not unusual; I will explain how to correct them. Apple Silicon is still capricious these days unfortunately!
Cheers,

Hi @anderdnavarro
First and foremost, please accept my apologies in answering this one very late ! I was very busy with wrapping up a couple of stuff around for my Ph.D but rest assured I will devote times if needed.
Second, may I request whether you are still having an issue on your M1 without Docker?
In the meantime, thank you for sharing your Docker solution! Another approach, provided you are on an Apple Silicon Mac with Rosetta 2 and the requisite Apple developer tools installed, is to force compilation to x86_64 by setting
ARCHFLAGS="-arch x86_64" pip install auto-sklong

This informs the build process to target Intel architecture and can occasionally work around lacking ARM binaries (such as deep_forest) by compiling them under Rosetta.  Keep in mind that, first: you will still require an x86_64 Python environment. For example, if you installed Python with brew install python@3.9 without specifying Intel mode, it could be an ARM build by default. I recommend using pyenv. Second, make sure to install Rosetta 2  to enable macOS to simulate Intel instructions.
Let me know,
Cheers,

Closing for now, re open if you have still an issue.

New release 0.0.3 is now available! 🎉 The major change is the migration from PDM to UV for easier and faster installation. However, I used the opportunity to improve the documentation slightly, particularly in terms of feature list names issue in the quick start pseudo-code as you pointed out and explaining better the installation on Apple silicon-based Macs.
Have a peek at the releases and the documentation! Thanks for your help showing them out!
Note: Will apply the same migration and doc. refactor to Sklong as soonish as possible!
Cheers,

authors: anderdnavarro simonprovost

repo: simonprovost/Auto-Sklong


text:
Add full-text search example

Room supports FTS3 and FTS4 virtual tables for full-text search. We should add one such entity to the sample projects to showcase how they work in conjunction with Prefiller. Right now this is not possible, because the SQLite version bundled with Robolectric does not support the syntax of the statements generated by Room (see Robolectric issues #3556 and #4209).

I think we can close this. a solution has been merged already:
#5216

I think we can close this. a solution has been merged already:
#5216

authors: guness simonschiller

repo: simonschiller/prefiller


text:
Oversubscribing worker nodes?

@rwf14f, I am encountering some strange issues which looks like an interactive node and worker node is oversubscribing the same node.
This concerns the following 2 jobs:
OWNER    BATCH_NAME    SUBMITTED   DONE   RUN    IDLE  TOTAL JOB_IDS
khcheung ID: 309      7/19 13:55      _      1      _      1 309.0
khcheung ID: 331      7/22 00:49      _      1      _      1 331.0

For job 309, it is an interactive job landed on <wn1906370.in.tier2.hep.manchester.ac.uk>. This job was started by the following config:
RequestMemory=16384
RequestCpus=8
queue

This node has 8 physical CPU (2 socket of Intel(R) Xeon(R) Gold 5122 CPU each has 4 cores). So this reservation should have made the node exclusive to the job.
Strangely, job 331 has landed on the same node <wn1906370.in.tier2.hep.manchester.ac.uk> apparently from this line of log:
001 (331.000.000) 2023-07-22 00:50:11 Job executing on host: <195.194.108.112:9618?addrs=195.194.108.112-9618+[2001-630-22-d0ff-b226-28ff-fe53-755c]-9618&alias=wn1906370.in.tier2.hep.manchester.ac.uk&noUDP&sock=startd_2449_6386>

This was submitted to the vanilla universe with this bit of relevant config:
request_cpus            = 8
request_memory          = 32G
request_disk            = 32G

So apparently these 2 jobs are oversubscribed to the same node.

They use SMT:
lscpu | grep "^CPU(s)"
CPU(s):                16

Two 8 core jobs fit on there just fine.

@rwf14f, that's what I fear. Usually when people requesting CPUs, they are requesting cores, not threads. Eg you can see from the env var that they will set various ..._NUM_THREADS=8 if they are requesting 8 CPUs. In this case it is oversubscribing the nodes and in most CPU intensive workload it is oversubscribing. The default should be binding to cores, not threads, and only in cases that multithreading is beneficial after profiling one should bind to threads instead.

Remember that this is an HTC cluster for HEP. Using SMT works for us and our workloads don't have a problem with this. When you provide your own hardware then switching off SMT on those is an option if you wish to do so.

@rwf14f, I think the more important question is if there's any constraint exists to avoid over-subscription? i.e. if 2 different jobs (Job A and Job B) has their HTCondor processes (Job A process 1, Job B process 1) assigned to the same physical node, multithreading or not, would CPUs be bind to individual processes, such that the Job A process 1 has exclusive access to the say first 8 logical CPUs and Job B process 1 has exclusive access to the other logical CPUs?
Thanks.

Assigned to me just now, to see if this can be configured from our side first.

We're not using CPU pinning or similar, it's the OS that decides which process runs on which (SMT-)core.
Are you trying to use pinning with MPI options ? Are you also worried about NUMA-nodes ?

Hi, @rwf14f, right now I'm not starting to worry about NUMA yet. I'm trying to understand the implication of having 2 different HTCondor processes on the same physical nodes and whether each of them have "exclusive" access to their own pool of CPUs (i.e. the CPU affinity / pinning here.) I.e. I'm trying to understand if an over subscribed process will interfere another non-over-subscribed process.
I'll run some tests today and figure out the implications first. Thanks!

Our documentation has mentioned this now, and the wrapper script I provided to launch MPI jobs has "fixed" this from our side. It still doesn't prevent other process on the same physical node oversubscribing into our requested CPUs, but this is a "won't fix" issue.
The solution is for us to always request a whole physical node, which is easier said than done as this is not the kind of constraints HTCondor allows. Constraints on the kind of nodes to launch is needed too.
And for those situations that we have to share same physical nodes with other processes, strangely enough, is to oversubscribe from our side too (which is the defaults if not using my wrapper scripts.) I will document this more in details.

Reopen in light of https://github.com/simonsobs-uk/data-centre/issues/35#issuecomment-1857536965
Copied from a presentation on 2023-08-02 from an internal DC meeting:

Over-subscription
Clearing up some confusion on the matter of oversubscription:

not about if SMT should be enabled in the BIOS (enable is good)
not about if request_cpus is factor of 8s.
it is not even about if request_cpus means logical cores.
it is a combination of

having SMT enabled such that a CPU core is by default a logical core (again, a good choice),
request_cpus=N from HTCondor will then assign N logical cores to the job (which is normal), and
Blackett configuration by default is setting OMP_NUM_THREADS=N. This together with the above means over-subscription. See Process and Thread Affinity - NERSC Documentation for example (This does not explain why but tells you the best practice. The why is related to how SMT works, and the fact that we are focusing on scientific computing, e.g. when people parallelize a region using OpenMP in a typical situation, all cores are doing the same thing on the same kind of data that makes SMT useless in this case.)

it is also partially related to the fact that we cannot have exclusive nodes. In HTCondor, nodes are always shared (heterogeneous nodes is a contributing factor that it is hard to get N processes with M CPUs each to land on N physical nodes.)

Obviously one can override the OMP_NUM_THREADS within their job, therefore the main question is if another HTCondor process can interfere with your process when over-subscription is occurring.
This is also related to having our own "partition" on Blackett vs. sharing with the whole machine. This does not imply DIY with "significant overhead".
Over-subscription test

simple mat-mul, $n = 20,000$
2 HTCondor processes on the same physical node
not: over-subscribed: 0:21.90s
over-subscribed: 1:01.63

The information is brief as it is an internal meeting, but the key is that I requested 2 separate jobs landing on the same physical node (where each occupied half) and I'm able to watch both of them over-subscribing into the CPU usage of whole node, which resulted in much slower performance comparing to not over-subscribing. I should emphasize that the over-subscription from 1st job is affecting the 2nd job, so it most probably means the cgroups is not working/configured as expected, which seems contradicting to what is said in https://github.com/simonsobs-uk/data-centre/issues/35#issuecomment-1857536965:

If a job requests 1 CPU but attempts to use 2 then cgroups will ensure that it's only using 1, but only on a fully loaded worker node where all resources are claimed and used by jobs.

More notes:
It could be partly due to a bug in HTCondor, see point (3) in https://github.com/simonsobs-uk/data-centre/issues/35#issuecomment-1857918798.
The recommendation that we can implement immediately is to set *_NUM_THREADS equals to no. of physical cores instead of logical cores. See notes above and point (1) in https://github.com/simonsobs-uk/data-centre/issues/35#issuecomment-1857918798.

@rwf14f, I just found out that some nodes seems to have multithreading disabled, such as
wn3805340.tier2.hep.manchester.ac.uk:
$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 79
Model name:            Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Stepping:              1
CPU MHz:               1497.711
CPU max MHz:           3000.0000
CPU min MHz:           1200.0000
BogoMIPS:              4190.53
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              20480K
NUMA node0 CPU(s):     0,2,4,6,8,10,12,14
NUMA node1 CPU(s):     1,3,5,7,9,11,13,15
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single ssbd rsb_ctxsw ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts md_clear spec_ctrl intel_stibp flush_l1d

repo: simonsobs-uk/data-centre-issue-tracker


text:
1.0a8 release notes

Refs:

#2243

https://github.com/simonw/datasette/compare/1.0a7...503545b20363ac15d3664bec7e6c4522ff271668
Preview: https://datasette--2251.org.readthedocs.build/en/2251/changelog.html
To cover:

[x] Plugin configuration in datasette.yml
[x] JSON/YAML examples in docs
[x] No more parallel query execution
[x] #2057
[x] https://github.com/simonw/datasette/pull/2052
[x] #2220
[x] #2214
[x] #2225
[x] #2230
[x] #1830
[x] #2234
[x] #1191
[x] #2240

📚 Documentation preview 📚: https://datasette--2251.org.readthedocs.build/en/2251/

These are looking good! They're not quite enough for a release though as they don't cover the things I've not yet finished for the alpha:

https://github.com/simonw/datasette/issues/2249
https://github.com/simonw/datasette/issues/2195

repo: simonw/datasette


text:
Compiling with npm run compile fails ...

... although the app works on my Android phone. Why?

Sorry, missed that issue. See #48.
As for why: Typechecking is probably not done during build, but the type annotations are simply stripped. See also https://www.typescriptlang.org/docs/handbook/babel-with-typescript.html#babel-for-transpiling-tsc-for-types.

authors: simonwacker timhabermaas

repo: simonwacker/yoga-insights


text:
Use multi-stage builds to reduce the image size

The sample can be found here https://github.com/dotnet/dotnet-docker-samples/blob/master/dotnetapp-prod/Dockerfile

But we have to wait for Docker to support multi-stages build on DockerHub https://github.com/docker/hub-feedback/issues/1039

repo: simplcommerce/SimplCommerce


text:
🛑 SimpleLogin API is down

In 2f32e23, SimpleLogin API (https://app.simplelogin.io/live) was down:

HTTP code: 502
Response time: 1312 ms

Resolved: SimpleLogin API is back up in 0a29db2.

repo: simple-login/uptime


text:
[WIP] Merkle storage update

backtracking support
configurable merkle storage backends (sled,in memory, rocksdb)
configurable action storage backend (rocksdb, actionfile)
using crypto::hash in merkle storage (and backends)
using extended actions format (for backtracking)
refactored statistics related code (merkle storage)
integration test for applying actions from recorded actionfile

edit:

still working on some failing tests

This PR got replaced by #444, closing.

repo: simplestaking/tezedge


text:
$KCODE is exposed for all Ruby versions, gives warning on Ruby v1.9 and up

As I understand it, versions of Ruby before 1.9.0 needed the $KCODE flag set to handle multibyte characters properly. It seems a bit harsh to give everyone on Ruby v1.9+ the below warning:
.rvm/gems/ruby-2.2.1/gems/sinatra-contrib-1.4.4/lib/sinatra/respond_with.rb:4: warning: variable $KCODE is no longer effective; ignored

Would it be a good idea to check the Ruby version in order to avoid the warning?
$KCODE = 'UTF8' unless RUBY_VERSION > "1.9.0"

Or is there a better solution for getting rid of this warning which I haven't caught on to?

ah yeah, that is something i did- didn't realize it was giving a warning. i'll fix it. your solution seems good to me!

Awesome. Thanks, @thomax and @ashleygwilliams!

Wow, you guys are fast! Thanks a lot!

:rocket:

authors: TrevorBramble ashleygwilliams thomax

repo: sinatra/sinatra-contrib


text:
made "concurernvy vs. parallelism" section clearer

For many people, the concept of concurrency vs. parallelism can be hard to grok.
I do not think the old descriptin read very well, nor did I think it would be that helpful to someone who needed the answer in the frirst place (i.e. someone who doesn't know the difference.)
I tried writing an answer of my own before I realized that someone else had already put it best, so I quoted an aclaimed StackOverflow answer and gave appropiate credit (as Creative Commons requires).
I think linking to a SO question will also make it easy for people to read other answers, which they may understand better.

Nice, I like clarifications, but I don't think he put it best. Mainly because the examples explain more than the descriptions, but introduces (probably unknown) terms: multitasking, single-core, multicore, processor.

Thanks for the input, @schnittstabil - I apprecaite it :smile:.
I completely agree that it should be "two ore more tasks" - I edited the original answer and this pull request in response.
Bare in mind the answer has 400:heavy_plus_sign:   positive responses which tells me the answer is useful.
I think it reads fine, to be honest. What's more, because I have included a link to the SO thread someone can go there for additional context and alternative answers or analogies.

I think this information should not belong in the AVA's Readme. Project's readme is about project, not about explaining concepts. What I would do here, is to link to that stack overflow answer, instead of copying it.

@vdemedes You know what, mate. That is a good idea. Done.

I thought about that description and has come to the conclusion that it is at least misleading.
Sequential and Concurrent is about algorithms and language design.Serial and Parallel is about hardware and run-time.
Instead of covering these aspects they are messed up.
Also the answer mentions Sun's Multithreaded Programming Guide, which (obviously) only talking about Threads and states that: Concurrency is a more generalized form of parallelism. That is only valuable in that guide, but can't be transferred to newer concepts used in Node or Go…

@schnittstabil I meant to link to the question.

authors: alexbooker schnittstabil vdemedes

repo: sindresorhus/ava


text:
Fix incorrect removal of trailing slash from a hash

fixes #81

Can you add some tests?

LGTM.
@sindresorhus anything else that needs to be changed?

@sindresorhus I highly recommend exploring viability of using https://github.com/semantic-release across all your projects. It saves me a lot of time.

@gajus Couldn't use it even if I wanted to: https://github.com/semantic-release/npm/issues/93

authors: bitshadow gajus sindresorhus

repo: sindresorhus/normalize-url


text:
Add option to inject custom CSS

Still a WIP, need to change some wording and layout.
Most important: need some opinions!
Closes #1186.

Can you post a screenshot so others can see without checking out?

I'm reposting @ramlmn's screenshot from the issue:

Thanks @hkdobrev!

I've noticed that if I write some CSS in the textarea and then reload the extension on the Extensions page, the CSS is gone.

Look in the console, you should see the logging from webext-options-sync. It worked for me every time I reloaded

@bfred-it I write the CSS, close options, click reload, and this is logged:
background.js:212 Appling definitions
background.js:213 Current options: {disabledFeatures: "", logging: false, customCSS: "foo"}
background.js:215 Running 2 migrations

Then I click the reload button again and this is logged:
Appling definitions
background.js:213 Current options: {disabledFeatures: "", logging: false}
background.js:215 Running 2 migrations

Oh, darn, true. It’s missing a default in background.js so the migration drops it.

authors: bfred-it hkdobrev ramlmn sindresorhus

repo: sindresorhus/refined-github


text:
Highlight Mentions in Stream

Make tweets that mention the current user standout in the stream, like Tweetbot makes the background in a different color.
Not sure if changing the color is the best option since the user can customize how the stream looks.

This was fixed by https://github.com/sindresorhus/refined-twitter/pull/43.

authors: filipekiss sindresorhus

repo: sindresorhus/refined-twitter


text:
Fix toPath imported from unicorn-magic is not exported

https://github.com/sindresorhus/globby/issues/260

This is invalid. default.js is for any environment and node.js is for Node.js. toPath only works for Node.js. The config in this package is correct, so the problem is your bundler config.

hi i'm using clear nuxt.js  v3 app

This is invalid. default.js is for any environment and node.js is for Node.js. toPath only works for Node.js. The config in this package is correct, so the problem is your bundler config.

But what if you want to build for non-node environments (e.g. cloudflare workers)? 🤔

authors: boxexchanger manniL sindresorhus

repo: sindresorhus/unicorn-magic


text:
Encrypted npm secrets

Renovate server has a secret private key configured, publishes its public key
Renovate repositories configure their npm token with public key and save it to config
Renovate decrypts token at runtime and saves it to .npmrc

Any case where we must save to yarnrc? Eg if yarnrc already exists does yarn ignore npmrc?

Needs to support both npm API querying as well as npm install (if lockfile necessary).
Needs to live alongside existing npmrc/ yarnrc - assuming they don't have credentials already.
Support only public npm registry initially

References:
https://coolaj86.com/articles/asymmetric-public--private-key-encryption-in-node-js/
https://stackoverflow.com/questions/8750780/encrypting-data-with-public-key-in-node-js
http://krisjordan.com/essays/encrypting-with-rsa-key-pairs

repo: singapore/renovate


text:
[Desktop] Cursor position  is wrong when note widget fill in one line.

My issue is about [Desktop]
Flutter: 3.3.8
OS: macOS 12.3.1
flutter-quill: 6.3.5
Enter the text before the custom widget, and the cursor stays in front of the widget without following the actual text content.
Want the note widget fill in the whole line. The cursor enters the text and automatically switches to previous line of words. The cursor needs to automatically jump to the position of 2.

https://user-images.githubusercontent.com/15946864/232045125-ec23179a-9ee3-4b9c-be8f-13ee40ff8f1b.mp4

@chifandeyu does this issue persists? As far as i check, this was fixed on some of thr lastest versions of the package. I will close this. Please, if the issue was not fixed, reopen it.

repo: singerdmx/flutter-quill


text:
fix: support the Angular 10 comments in the tsconfif file (fixes #249)

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #249
The schematic doesn't manage to parse the tsconfig with comments.
What is the new behavior?
Comments in tsconfig are ignored.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

I noticed the check failing and working on it. BTW awesome work on the CI/CD ! it is really reassuring to have so much tests around us.

The tests are failing - is that related to your changes here?

It appears to not be related yeah but tomorrow I have time to run the cypress tests locally. Moreover I modified a bit my code today locally because it sounded weird to me the if else. So anyway you can expect a new commit tomorrow amending this one. Good evening !

I updated the PR with a more natural if else in the 'files' field replacement script.
Updated as well the jest test for this part to be more angular clish.
It is a bit verbose... actually they have a json-file utils less verbose which is not exposed unfortunately !
https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/json-file.ts 😢
About the cypress tests.
Running them locally, it appeared to me that they are not that stable. I ran them 3 times and it failed one time. I suspect that sometimes, the start of the integration app can take a bit more time than an instant and cypress run on something that is not properly loaded. A simple wait would solve probably the issue... Or is there more intelligent behaviours in cypress with active wait ?

Published in https://github.com/single-spa/single-spa-angular/releases/tag/v4.3.2. The publish flow went a bit weird so I'm not sure I did it right. Let me know if 4.3.2 works for you.

The only thing I can tell you is that I received a notification from renovate bot to update the version to 4.3.2 ^^ this bot is awesome. I can't tell you more for now because I am in vacation.
Moreover, before to go I tested the schematic using yarn link and it worked perfectly.

authors: celian-garcia joeldenning

repo: single-spa/single-spa-angular


text:
Fix: Added the missing avatar in the chatbot section (#192)

Issue Title:
Resolve issue: #192
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

How Has This Been Tested? ⚙
I have tested it on my local server.
Screenshots :

Hey @Shubham-1068,
Could you kindly share a screenshot of the changes you've made? It's often beneficial to attach a screenshot along with the PR for better clarity.

As per your request i have added a screenshot to my PR, kindly review it.

LGTM
ready to be merged! @singodiyashubham87 🚀

@Shubham-1068 Are you working on the issue?
Do reply asap o/w I have to close the PR & assign the issue to next person who asked to resolve the issue.


text:
settings menu not closing

In the Latest Version the settings menu does not close when using the close button at the bottom.

Fixed in latest version

authors: sirWest tschierschno

repo: sirWest/AudioSwitch


text:
报错：ValueError: num_samples should be a positive integer value, but got num_samples=0

是因为读取路径出错吗，但是我没有中文路径啊？

Same error? did you find the solution?

@Xccelrator

Same error? did you find the solution?

I find I set an error path to my dataset, you can try to check your path as well.

是因为读取路径出错吗，但是我没有中文路径啊？

Same error? did you find the solution?

同样的错误？你找到解决方案了吗？

我发现我为我的数据集设置了一个错误路径，您也可以尝试检查您的路径。

我检查了我的路径没有问题，但是还是报错，请问你test文件修改的路径是哪一行

authors: RamatovInomjon Xccelrator lzzzppp moyuxiaowangzi


text:
ruby 3 incompatibility

Due to the previously-deprecated way args are passed in and mixed with kwargs, this is now throwing a ruby 3 error: https://github.com/sirupsen/airrecord/blob/master/lib/airrecord/faraday_rate_limiter.rb#L9
Any chance you guys can update this gem to work with the new kwarg standards?

Please submit a PR and I'll merge and release :)

Please submit a PR and I'll merge and release :)

@sirupsen done! https://github.com/sirupsen/airrecord/pull/80

@sirupsen done! https://github.com/sirupsen/airrecord/pull/80

Fixed in master, use 1.0.6

authors: courtsimas sirupsen

repo: sirupsen/airrecord


text:
file deficiency

Can't find dict_utils.py and map_vis_lanelet2.py in utils

Thank you for pointing this out, I have commented out those lines. Please let me know if you are still having issues!

authors: mitkina taiguduizhang


text:
About Issues with the Star Mark Display in Browser Extensions (Firefox).

Description
I am experiencing issues with the star mark display in the linkding extension for Firefox. The star marks do not appear as expected, which affects the usability of the extension.
Steps to Reproduce

Add "https://linkding.link/backups/#full-backup" to linkding
Open the "https://linkding.link/backups/"
Observe the star marks displayed (or lack thereof).

Expected Behavior
The star marks should be displayed correctly, indicating [describe what the star mark is supposed to signify, e.g., favorites, important items, etc.].
Actual Behavior

The star marks are not displayed at all.

This issue also occurs when I add 'https://linkding.link/backups' to Linkding, as there are no star marks displayed when accessing 'https://linkding.link/backups/#full-backup’.
Environment

Firefox version: 131.0.2
Extension version: 1.12.1
Operating system: Windows 11

I have already posted the issue in the linkding-extension repository. I apologize for posting the issue in the wrong place. Could you please delete the issue here in the linkding repository?

repo: sissbruecker/linkding


text:
Add Feature to Copy Images from Various Image Hosting Services

Hello, thanks for the nice plugin
It would be great if the project could support copying images directly from various image hosting services or Object Storage Services (OSS).
Suggested Functionality

Ability to copy images directly from URLs provided by different image hosting services.

Best regards

@edwards19900128. Thank you for informing me. May I confirm that directly copying images from various image hosting services implies copying images in Markdown format such as ![flow.png](https://s2.loli.net/2024/09/23/b5gadTAhojsQUnu.png) in your Obsidian note?

repo: sissilab/obsidian-image-toolkit


text:
Error: platform win32 not supported

Hello! I got "Error: platform win32 not supported"
I use Win 10 x64 with the latest NodeJS (x64) as well. Here is the screenshot

Need your help. Thanks!

Hi @rekyb sorry, throttle do not work with Windows at all.

I see, sorry didn't read the desc clearly. Thank you fo answering. Closing this ticket.

authors: rekyb soulgalore

repo: sitespeedio/throttle


text:
Show current speed rate while testing

I would like to see the current speed rates during the test cases.
At the moment I have to wait until the speedtest-cli has finished down- and upload tests to see those

This is not currently possible.  It is on the radar, and if I can get back to the larger rewrite I want to do, I will see about the potential of implementing it.

authors: frdmn sivel

repo: sivel/speedtest-cli


text:
🛑 SIW site is down

In adf7041, SIW site (https://www.siw.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SIW site is back up in 02a1571.

repo: siwvolunteers/uptime


text:
Issue for tracking some Discord topics

[x] Fuzzing wordlist https://github.com/reewardius/bbFuzzing.txt

Added to onelistforallshort

[ ] Arjun on deep mode?
[ ] Recheck ffuf post processing cuz -ach apparently works wrong
[ ] Check Docker container
[X] CloudHunter https://github.com/belane/CloudHunter (plus or instead of) cloud_enum + piping to trufflehog

Improved cloud_enum + pipping to trufflehog on a new exploitation mode

[x] https://github.com/Rnalter/ThunderCloud

Requires so much automation for Cognito detection and others :/

[ ] Remove shodan init (key) suggestion, read from config
[ ] https://github.com/BishopFox/jsluice
[ ] https://github.com/OffXec/brutecms
[ ] https://github.com/g0ldencybersec/CloudRecon
[ ] https://github.com/faiyazahmad07/xss_vibes
[ ] https://github.com/ferreiraklet/airixss
[ ] https://github.com/devanshbatham/heaptruffle
[ ] https://github.com/YouGina/wordlistweaver/
[ ] https://github.com/xnl-h4ck3r/knoxnl
[ ] https://github.com/c3l3si4n/quickcert
[ ] https://github.com/RapidDNS/Afuzz
[ ] https://github.com/hahwul/a2sv

Origin ip flow: discover origin ip for domains and subs there are a bunch of tools that do this but I think reconftw already does this, not sure how well though.
So the idea is to match ips to subdomains and append dicovered paths/uris from subs to origin ips. Then run vuln scan on the ip based urls bypassing wafs and maybe other security restrictions. Can be also dont for fuzzing. Fuzz the origin ip as well.
Add Fuzzing paths to the main url list : Do we append discovered paths from fuzzing to the urls for further processing? For example for running them through gf and other tools and eventually end up with more targets for vuln testing. If not, we should append 200 hits on fuzzing in the url list from crawling and other sources and then proceed with the rest.

Another nice tool for when Jira is detected : https://github.com/MayankPandey01/Jira-Lens

Another workflow for IIS : Detect IIS servers , using nuclei or any other tool then run them against https://github.com/bitquark/shortscan for detecting diretories and file names for further exploitation.


text:
Renaming Token loses connection to objects

Describe the bug
If a token like border radius is applied to an object, and the specific token name is changed, the object loses the connection to that token
To Reproduce
Steps to reproduce the behavior:

apply border radius to a rectangle
Change name of token within Figma Tokens
rectangle lost it's connection to that token

Expected behavior
I would imagine I could just change the name
Screenshots or Screencasts
If applicable, add screenshots to help explain your problem.
Figma file (optional)
Send us the link to a Figma file containing a reproducible example
JSON (optional)
If possible, attach the JSON that leads to this bug.

Also came here to point this out. Would be very nice to be able to freely re-name tokens and maintain the connection.

Closing this in favor of https://github.com/six7/figma-tokens/issues/211

authors: Andyrrrrr six7 vkoopmans-resoluut


text:
fix: use prefix in state bucket #87

Use prefix for the terraform state bucket so there are no conflicts

If the state bucket is unique, how would Terraform know which bucket to reference to refresh the existing state if you initialize Terraform on a new host?

My requirement might have been unclear. With "prefix," I meant "prod-" or "sandbox-", not the "bucket_prefix" key.

It is a problem, if the bucket name is dynamic then it will have to be manually updated since terraform does not allow variables in the backend bucket resource.
Prod and sandbox can use the same bucket, their states are stored in a directory named by key, eg
key            = "{{cookiecutter.project_slug}}.sandbox.json"

The original issue was creating a project with the same name using cookiecutter resulted in a confict over the bucket name.

If the bucket prefix is random, we can't use it to track Terraform state. We need a static bucket id that can be committed to source control. cookie-cutter generates a template, and the source is modifiable by the developer using it. If duplicate project names cause duplicate bucket names, this can be resolved in the generated project. If we handle differences between staging and prod already, we can close this PR without merging it.

Differences between staging and prod are managed by the key attribute in the backend. Bucket name conflicts will need to be resolved manually.

authors: nvernooy rochecompaan

repo: sixfeetup/cookiecutter-sixiedjango


text:
Support returning "invalid" from "as object" functions

Reference implementation allows invalid to be returned from functions that define their return type as object.
Consider the following example:
sub main()
    print "main.brs start"
    print getObjectOrInvalid(false)
    print getObjectOrInvalid(true)
    print "main.brs end"
end sub

function getObjectOrInvalid(returnInvalid as boolean) as object
    if returnInvalid then return invalid

    return { id: "an-object" }
end function

This chokes on the second call to getObjectInvalid and throws:
./invalid-as-object.brs(9,26-32): Attempting to return value of type Invalid, but function getObjectOrInvalid declares return value of type Object

This is very similar to #384 where the stock implementation will cast based on the param type.  The solution to one will probably show the best way to solve it for the other.

It's a duplicate of #313

authors: lvcabral strattonbrazil underwoo16

repo: sjbarag/brs


text:
感谢这么完美的作品

打赏5元请喝杯果汁~~

感谢您对本项目的支持，您可以移步 https://github.com/sjdy521/Mojo-Thanks 留个名。

@tusooa 已添加到Thanks列表
@plutoid 感谢给出如此高的赞誉，果汁已喝到~

authors: plutoid sjdy521 tusooa


text:
tensooflow包里面的这个类报错

你好，我是初学者，很感谢出一个视频。tensooflow包里面的这个类报错

@liming1010
这个程序我自己已经运行过，且没有问题。
emmm, 你这个提问没有给我任何报错信息还有你的运行环境信息，你真的让我很头疼好吧，那我就只能猜测了。
这个类是严重依赖于lombok的一个类。
如果你是IDEA，请在setting -> plugin里面下载对应的插件
如果是eclipse，在官网下载对应的jar包，双击安装


text:
Update gui.rpy for better interface

@sk66641 , this fixes #9

@Durga200422
are you able to run this on your local pc as i am getting like, an uncaught exception occurred

Hi !
I checked the code, it is error free. The problem is I'm unable to deploy
the project as my pc doesn't support.
If you are still facing the exception, please share it with me. That will
be helpful to resolve
On Mon, Oct 7, 2024, 10:35 AM Sanu Kumar @.***> wrote:

@Durga200422 https://github.com/Durga200422
are you able to run this on your local pc as i am getting like, an
uncaught exception occurred
—
Reply to this email directly, view it on GitHub
https://github.com/sk66641/AquaGuardians/pull/11#issuecomment-2395917081,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3QCVCE6QHB5T5AGBMXNR7LZ2IJDBAVCNFSM6AAAAABPNPP3SWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVHEYTOMBYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

can you plz assign me on this issue , i can solve it


text:
ESLint

add eslint task
amend configuration
fix files to adhere to configuration

doh, my branch was not up to date with upstream...

repo: skatejs/skatejs


text:
[BALANCER] Put generated plan onto CostProfilingResult result

#1574 刪除了 CostProfilingResult#solution() 欄位，這個 PR 把它放回來。

我猜當時應該是這個方法沒有被使用到所以刪掉了，所以請問這個方法預期會用在哪裡？

用 CostProfiling 的人可能會用到這個欄位
我自己的測試用的程式碼會去印出 Cost 的 toString()
 System.out.println(
     "Final Cost: "
         + result.plan().map(Balancer.Plan::proposalClusterCost).orElse(null));

repo: skiptests/astraea


text:
Fix number parsing

Reference: json.org
My regex is also corroborated by http://stackoverflow.com/a/13340826/1529493 (it's exactly the same)

ping @skolodyazhnyy

ping @skolodyazhnyy

@teohhanhui sorry, couldn't see it before. Thanks for contribution!!

authors: skolodyazhnyy teohhanhui

repo: skolodyazhnyy/json-stream


text:
DOC: Add polars to intersphinx

This will enable resolution of the polars objects in the docs and examples, eg on
https://skrub-data.org/stable/generated/skrub.AggJoiner.html

after uncompressing the objects.inv it does not seem to contain a class entry for DataFrame nor Series
from urllib.request import urlopen
import zlib

url = "https://pola-rs.github.io/polars/py-polars/html/objects.inv"
with urlopen(url) as resp:
    data = resp.read().partition(b"zlib.\n")[2]
text = zlib.decompress(data).decode("utf-8")
print("polars.Array py:class" in text)
print("polars.DataFrame py:class" in text)

True
False

I'll open an issue on the polars repo

actually there is already an issue: https://github.com/pola-rs/polars/issues/7027

the rendered docs look good, merging! thanks!

Thanks Jérôme!!

authors: GaelVaroquaux jeromedockes

repo: skrub-data/skrub


text:
Fixes #233: Make sure the process is killed using the kill() call if …

…the terminate() call did not do it

Thanks for explaining the intention with None.

Stepping back a bit - and not to criticize this patch at all, it's doing the best job for a complicated subject - but maybe we can simplify this.
I think the init() call for the Process() class may be too complicated with respect to how it deals with expected process state.
I think the root of the complication is that the expect argument is overloaded.  It trying to reflect both the "expected state" of the process (running vs. not running), and if the expected_state is "not running", the expected exit status.
What if we separated those two concerns into two separate arguments, for example:
expected_state = [RUNNING or EXITED]
expected_exit_code =  (default=0 for success)
Further enforce the following: if expected_state==RUNNING then expected_exit_code MUST BE zero.  Which makes total sense, because if it's running at this point it should exit cleanly when terminate() is called.
Also passing in an expected_exit_code of None is a coding error, since a valid exit code will never be None.
Splitting these two attributes can make the code a bit easier to understand (IMHO).  Something like this (totally untested):
if (expected_state == RUNNING)
    assert expected_exit_code == 0, "Bad coder! No commit for you!"
    terminate()
    try:
       actual_exit_code = wait(TIMEOUT)
    except timeout:
       actual_exit_code = None # it is still running, this is bad

else (expected_state == EXITED)
    assert expected_exit_code is not None, "must specify exit code!"
    actual_exit_code = poll()

# If still running at this point that is an error: kill and fail test.
# No need to check exit code at this point because it is pointless.

if actual_exit_code == None:
   # still running
   kill()
   try:
       wait(TIMEOUT)
   finally:
       raise Runtime Error, fail test

# if we get here the process is done and we have an exit code
# validate it:
if actual_exit_code != expected_exit_code:
   raise RuntimeError blah blah wrong exit code blah blah blah

Not a small amount of code, but I think it more accurately reflects the goal of testing the exit state/code. IMHO.

It is true that the code we currently have is combining the expected exit code (0, <0, >0) and expect (RUNNING, EXIT_OK, EXIT_FAIL). This PR is attempting to translate the actual exit code (the output of process.poll()) into one of RUNNING, EXIT_OK, EXIT_FAIL.
A real simplification would be to remove the expect parameter altogether and replace it with an expected_exit_code parameter. The new  expected_exit_code parameter will have to match the output of the process,poll() function (None means process still running and will be the default)
That being said, I think what we have in this PR keeps it simple stupid and will work for all cases and is an improvement over what we currently have. If in the future we need more flexibility with checking the exact exit codes, we could move to a newer model.

It is an improvement. lgtm

authors: ganeshmurthy jiridanek kgiusti

repo: skupperproject/skupper-router


text:
cannot read property 'bind' of undefined on RN 0.30

the view initially shows but fails to bind.  not using the TimerMixin seems to work for me - see  body of componentDidMount below. Any suggestions?
componentDidMount() {
const scrollFn = () => {
if (this.scrollView && Platform.OS === 'android') {
const x = this.props.initialPage * this.state.containerWidth;
this.scrollView.scrollTo({ x, animated: false });
}
};
// this.setTimeout(() => {
//   InteractionManager.runAfterInteractions(scrollFn);
// }, 10);
},

It seems to be the interactionmanager acting up on this RN version. Please let me know if anyone else is having this issue.


text:
Is this project still being maintained?

I've been using this library for a while, and now starting a new project, as I though of using it, I remembered all the PRs in waiting for a review, issues, and considering the last merged pr is from June 15, I begin wondering.
So Jus as the title says. is this project being maintained?

maybe not, there some codes in this project keep using Prototype from 'react' library and React.createClass method, which all have been moved to separated library in react version 16

Looks like the author just updated the project to v0.8.0 which brings React 16 compatibility – so maybe this issue can be closed?

authors: bjrn datvtwakumo fforres


text:
Some spanish updates

Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Run the unit tests with gradlew app:connectedGmsDebugAndroidTest to make sure you didn't break anything (with an emulator running or phone connected)

[ ] If you have multiple commits please combine them into one commit by squashing them.

Note you may see the Cirrus CI system failing on your PR. It's pretty flaky right now so don't
be alarmed.

Thanks as always!

authors: VegaDark jaydeetay

repo: sky-map-team/stardroid


text:
only show Import failed message when there is at least one error

Fix for issue #8

Thanks @pmpontes 👍
I could swear that AngularJS used to check the length when using ng-if on array. So not sure if anything changed, or I've just completely missed this.
Anyways, your PR has now been merged and a new release will be out soon 😉

authors: abjerner pmpontes


text:
Add advanced options for ovssflow capture type

Advanced options for "ovssflow" Capture Type:
ovssflow (Flow Samples)
ovssflow (Counter Samples)
ovssflow (Flow + Counter Samples)

run skydive-functional-tests-backend-orientdb

run skydive-functional-tests-backend-elasticsearch

My bad, it seems the comments have not been addressed yet

Actually need to fix the "Packet decoding error : Invalid counter record type: 0"!

run skydive-functional-tests-backend-orientdb

run skydive-functional-tests-backend-orientdb

run skydive-functional-tests-backend-elasticsearch

authors: dvandra lebauce

repo: skydive-project/skydive


text:
contrib/k8s: fix cluster role

To test:
kubectl create namespace mynamespace
cat skydive.yaml | sed -e "s/namespace: default/namespace: mynamespace/" | kubectl delete -n mynamespace -f -

run skydive-cdd-overview-tests
run skydive-functional-hw-tests
run skydive-functional-tests-backend-elasticsearch

run skydive-cdd-overview-tests
run skydive-functional-hw-tests

run skydive-functional-hw-tests

authors: hunchback masco nplanel


text:
[ERROR] failed to load locked problem!

Problem Summary
got Error: Command "node "/Users/${USERNAME}/.vscode/extensions/leetcode.vscode-leetcode-0.18.0/node_modules/vsc-leetcode-cli/bin/leetcode",show,256,-x" failed with exit code "0". Please open the output channel for details. when I was trying to open LC-256
How to reproduce

To open LC-256
Failed to open with message [ERROR] failed to load locked problem! in OUTPUT section
Popup window with Error: Command "node "/Users/${USERNAME}/.vscode/extensions/leetcode.vscode-leetcode-0.18.0/node_modules/vsc-leetcode-cli/bin/leetcode",show,256,-x" failed with exit code "0". Please open the output channel for details.

Environment

leetcode-cli version: AS VISUAL STUDIO CODE Extension

OS version: macOS 11.4
Node version: v16.1.0
Npm version: 7.11.2

I am a leetcode PLUS member

repo: skygragon/leetcode-cli


text:
[core] multidex compile issue.

Describe error

N/A
N/A
Any Multidex APK (Tested with 2 dex and 3 dex)

Version 1.2.0 from releases (on java 8.301 and also 11.0.12)

When Decompiling Multidex files and using deobfuscation, decompiler does not use same namespaces as previous dex.
meaning if for example I have java.time.* used in multiple dex files, the first one will deobfuscate to xxxxx.yyyyy and second one will deobfuscate to  pppp.yyyy (or even pppp.zzzz)
I have tested this with multiple multidex apk files and had same result.
I'm guessing this might have to do something with issue #1217 too, which removes both blocks instead of using at least one.

@bobsort did you open these dex files separately? You need to open whole apk file. If you still have issue, please provide example with description where to look add attach sample apk.

Yes opened the apk itself.
BTW I Also noticed many of Android.xxxxx and Java.xxx and my application static methods are moved to a common class.
does new dex move static methods to a common class?

@bobsort please provide sample apk and which classes to check. Otherwise, I don't know how to reproduce your issue.

authors: bobsort skylot

repo: skylot/jadx


text:
Point to the right property for imported modules

First, sorry about all the PRs, I'm not super familiar with how Webpack's bundles everything together.
After some more testing, I've realized that only the first imported file is marked with __esModule, for the others, the component lives on the a property.. as you can see below.

Don't be sorry, you're contributing 👍
That's a strange behavior, but seems to work...

authors: nddery skyrpex

repo: skyrpex/vue-jsx-hot-loader


text:
Aakash Portfolio Review

Required Changes

Please add validations and button borders on active and hover to your form, adding this will help draw the attention of users.
Please implement figma design fonts for nice appearance.
Text area fonts should inherit the figma design fonts.

@GordonOtieno Thank you for your nice feedback 👍🏻
I have successfully updated my code as per required changes mentioned above.


text:
🛑 PT Site Home is down

In a45e9e3, PT Site Home (https://qbit.rexsky-blog.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PT Site Home is back up in c75aea2 after 26 minutes.

repo: skywalkerRex/RexSky-Blog-Uptime


text:
'OpenJDK 64-Bit Server VM' version 21+ Not Working?

Hello! I've been trying to run additive/adrenaline on Minecraft Java version 1.20.6, and every time I try to it says that 'OpenJDK 64-Bit Server VM' needs to be updated to 21 or newer.
If I run "java -version" in command prompt to check what version Java is on, it says that OpenJDK is on version 22.0.1, and also says that it is on 'OpenJDK 64-Bit Server VM 22.0.1'. My OpenJDK 64-Bit Server VM is not on version 17, nothing seems to be connected to version 17, and so I'm unsure of why this won't work, and even more unsure of why it says it is on version 17.
If I try to load additive/adrenaline on 1.20.4 (or a previous version) it works perfectly fine, not a single issue or concern, but it won't run properly on 1.20.6. It says that other mods are 'incompatable' because of it (supposedly) being on OpenJDK 64-Bit Server VM version 17.
I have put the error code I get when I try to open Minecraft Java below (it crashes every time before getting to the loading screen) in case there's something in there that might be the issue, but I'm really not sure what the problem is.
My java is on 22.0.1 and 'OpenJDK 64-Bit Server VM' is on version 22.0.1 as well. I also had a friend try to install additive and they had the same issue as me.
If there is a solution to this issue, please let me know. I've tried reinstalling additive and adrenaline, I've tried updating some of the mods, and nothing has worked so far. Let me know if you have any questions, thank you in advance <3
Both error codes are below, they're basically the same:
Error code for additive:
Incompatible mods found!
net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other!
A potential solution has been determined, this may resolve your problem:
- Replace 'OpenJDK 64-Bit Server VM' (java) 17 with version 21 or later.
More details:
- Mod 'Fabric API' (fabric-api) 0.98.0+1.20.6 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
- Mod 'Capes' (capes) 1.5.4+1.20.5 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
- Mod 'ImmediatelyFast' (immediatelyfast) 1.2.14+1.20.6 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
- Mod 'Main Menu Credits' (isxander-main-menu-credits) 1.2.0 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
- Mod 'More Culling' (moreculling) 0.25.0 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
- Mod 'OptiGUI' (optigui) 2.3.0-beta.2+1.20.5 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:195)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Error code for adrenaline:
Incompatible mods found!
net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other!
A potential solution has been determined, this may resolve your problem:
Replace 'OpenJDK 64-Bit Server VM' (java) 17 with version 21 or later.
More details:
Mod 'Fabric API' (fabric-api) 0.98.0+1.20.6 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
Mod 'ImmediatelyFast' (immediatelyfast) 1.2.14+1.20.6 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
Mod 'More Culling' (moreculling) 0.25.0 requires version 21 or later of 'OpenJDK 64-Bit Server VM' (java), but only the wrong version is present: 17!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:195)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

Duplicate of #4.

repo: skywardmc/additive-installer


text:
Update triggers

Type of change (place an x in the [ ] that applies)

[ ] New sample
[x ] New feature
[ ] Bug fix
[ ] Documentation

Summary
Updating the triggers, similar to how the other samples have been updated, to use the new available types
Requirements (place an x in each [ ] that applies)

[ ] I’ve checked my submission against the Samples Checklist to ensure it complies with all standards
[x ] I have ensured the changes I am contributing align with existing patterns and have tested and linted my code
[x ] I've read and agree to the Code of Conduct

I realised now that TriggerContextData.Shortcut.interactivity and TriggerContextData.Shortcut.channel_id are not ideal when the type is TriggerTypes.Scheduled. It works, but it's not pretty. The better fix would be to fix the internal TriggerTypes.Scheduled type


text:
Update WebClient to accept not only list but also tuple

Summary
This pull request updates the internals of WebClient to accept tuple values for ids arguments.
for context: https://github.com/slackapi/python-slack-sdk/pull/894#discussion_r541450730
Category (place an x in each of the [ ])

[x] slack_sdk.web.WebClient (Web API client)
[ ] slack_sdk.webhook.WebhookClient (Incoming Webhook, response_url sender)
[ ] slack_sdk.models (UI component builders)
[ ] slack_sdk.oauth (OAuth Flow Utilities)
[ ] slack_sdk.rtm.RTMClient (RTM client)
[ ] slack_sdk.signature (Request Signature Verifier)
[ ] /docs-src (Documents, have you run ./docs.sh?)
[ ] /docs-src-v2 (Documents, have you run ./docs-v2.sh?)

Requirements (place an x in each [ ])

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've run python setup.py validate after making the changes.

I will be merging this pull request tomorrow in my time (+09:00 timezone). Please leave comments by then if you have any.

repo: slackapi/python-slack-sdk


text:
[PanModal] Fix unbalanced calls to appearance

Summary

This PR fixes issue: https://github.com/slackhq/PanModal/issues/39#issue-467684572
We shouldn't force the presented view to call it's appearance methods as this is handled for us automatically

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

repo: slackhq/PanModal


text:
Question:  Setup for Mesh networks like Google Wifi?

I have nebula running fine on 2 cloud platforms, but on my home network (which uses mesh via google wifi) I need to map each individual port of each device, carefully choosing which port to avoid conflicts.
Me --WIFI--> [Google APs] --cat5e--> [Cable Router(bridged)] --> [Internet ..]

If I don't the handshakes go out fine, but responses get dropped on return path. This seems common with double NAT, but it seems some setups have mediations.  I hoped putting my router in bridge mode would fix double NAT issue - but Google support says no mesh system supports udp hole punch though, was like "yeah 'cloud based' routers do this, all of them, deal with it [ and manually set each device, each port]" and that there is nothing in or in front of the router I can do to fix it.
So I'm just curious beyond the general complexities of NATs and double NATs a la #33 if there were any confirmed success or failures on mesh networks generally. (maybe it;s something in my cable modem I can adjust, etc)

Nebula 1.6.0 is released with a Relay feature, to cover connectivity cases like the one you're encountering.
https://github.com/slackhq/nebula/pull/678
If you don't want to keep manually forwarding ports through each device, you can try out a Relay configuration.
You can check out the example config to see how to configure a Nebula node to act as a relay, and how to configure other nodes to identify which Relay can be used by peers for access. Also, take a look at https://github.com/slackhq/nebula/issues/33#issuecomment-1180569297 for more info on how to configure it.

FWIW, the mobile apps have been updated to support relays!
At this time, I'm closing this out for inactivity. If you continue to have issues after trying the relay feature, please feel free to open up a new issue or join us on Slack. Thanks!

authors: JohnMaguire brad-defined eddiewebb

repo: slackhq/nebula


text:
Patch for #87

@jdegoes This is a band-aid for now. Could you please review?
A correct-by-construction approach is in the works.
Edit : I'm not sure my approach will work. We basically want to ensure that the action associated with the initializer doesn't return immediately, but is asynchronous, so that we don't try to rerender during the first render. I thought of using an indexed monad with the new custom do notation feature, but that won't work, since even if we label async and sync, there's no way to guarantee an Aff action wasn't constructed using, say, pure.

We could add a phantom type parameter to Aff to indicate whether or not the action is asynchronous. The problem with that is it inhibits composition, anytime you want to compose a sync with an async, you have to manually async the Aff to switch over the type param.
You can use later to make a sync action asynchronous, which may be a better way of solving this.

@paf31 ^^^

Sure, that sounds like a good way to address this.

I assume you want a merge on this, right?

Yes please if that's ok. I'll add a call to later in a separate PR if we want to go that route, but that seems like the simplest safe-by-construction approach.

repo: slamdata/purescript-halogen


text:
feat(cache): Add option to provide a cache instance.

This change adds an option to DBOptions to provide an external cache instance. This cache instance must implement InMemoryCache. If the option is provided, the block_cache_options are ignored when the DB is initialized.
This PR should be a fix for #226, but I'm opening it as a draft because it's my first contribution and I'd like to get feedback to make sure this is the direction that people had in mind.
/cc @rodesai

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Those comments make sense @criccomini, thanks for the review. Something else that I was thinking is that it might not make sense to compile both, MokaCache and FoyerCache. It's unlikely that people will want to use both, unless it's for comparison. I can create feature flags to make them optional, so in production environments, you only need to bring the dependencies that you need and exclude the additional cache implementation.

BTW, I personally think it is a bad design to warp the Option in Entry. Especially when the Entry is an enum.
Just use Option<Entry> looks good enough. When returning from a cache, you can simply use Option<Entry> as it may return a cache miss result. When holding an entry that must exist, such as, got from the main volume after a cache miss, you can use Entry directly.
Otherwise, it would be too complicated when the entry is guaranteed to exist. You need extra mechanism to make sure the Entry wrapping an Option is Some not None.

I think I agree with you @MrCroxx. Let me do a cleanup, I think a trait for the CachedEntry is not right.

I think I agree with you @MrCroxx. Let me do a cleanup, I think a trait for the CachedEntry is not right.

Either a CachedEntry or just an enum is okay for me. I only disagree with wrapping an Option in it. 🥰 What do you think?

@calavera Really sorry about the merge conflict. I just merged in the rename from #234. Kinda blew up the naming in this PR. 😭

@calavera Really sorry about the merge conflict. I just merged in the rename from #234. Kinda blew up the naming in this PR. 😭

no worries. I'll deal with the changes, it should not be hard.

Ok, this turned into a bigger PR than I expected. There are a couple of major changes since the last review:

Moka and Foyer are behind feature flags. Moka is enabled in the default features.
The DbCache trait has changed to receive and return the same objects. This allows us to keep the implementation opaque, and the cache implementation is more simple.

Please, let me know what you think.

Thanks for the review @rodesai. I've made the changes that you suggested.
While I was working on a trait implementation example, I realized that SsTableId was not public. Without making it public, it's not possible to implement the DbCache trait outside Slatedb, so I made it public. I reviewed the db_state module to ensure that nothing else was made public. There are new docs that show how to implement the DdCache if someone wants to create their own implementation outside Slatedb.

authors: CLAassistant MrCroxx calavera criccomini

repo: slatedb/slatedb


text:
Some improvements

Hi,
It has carthage support?
Was minimum version of iOS?
Thanks.

No carthage support yet. I'll add carthage support soon. Minimum iOS version is iOS 8, Swift 4
Read me will be updated with more details.

authors: prsolucoes sleepwalkerfx

repo: sleepwalkerfx/RMGradientView


text:
Upgrade to support PHP 8.X and Latest twig version

Description
Te composer dependencies where refactored and php >= 8.0 was added as dependency.
Updated the twig/twig to the lasted ^3.x version.
Refactored all the code to work with PHP 8.X type hint sintax.
Motivation and context
Why is this change required? What problem does it solve?
The supporting version of PHP, should be updated as most of the new projects are using PHP 8.X. Meanwhile some dependent projects of this package that are using latest versions of PHP can't run properly as the twig/twig version is outdated.
How has this been tested?
The source code for tests was not changed (only fixed for new version of twig) and all the specification stays the same. I have run the phpspec and behat to guarantee package interfaces.
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:
Go over all the following points, and put an x in all the boxes that apply.
Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.

[x] I have read the CONTRIBUTING document.
[x] My pull request addresses exactly one patch/feature.
[x] I have created a branch for this patch/feature.
[x] Each individual commit in the pull request is meaningful.
[x] I have added tests to cover my changes.
[x] If my change requires a change to the documentation, I have updated it accordingly.

If you're unsure about any of these, don't hesitate to ask. We're here to help!

The pipeline does not run tests properly

Should not be pushed to master. Should be in develop branch.

repo: slickframework/template


text:
4.5 - Release

Changelog
4.5.0 - 2020-04-14
Added

2928 Test against PHP 7.4
2937 Add support for PSR-3

Fixed

2916 Rename phpcs.xml to phpcs.xml.dist
2917 Update .editorconfig
2925 ResponseEmitter: Don't remove Content-Type and Content-Length when body is empt
2932 Update the Tidelift enterprise language
2938 Modify usage of deprecated expectExceptionMessageRegExp() method

Coverage remained the same at 100.0% when pulling 82a19f71b3e409266b8b9ec7c6d1c42b9df297d9 on l0gicgate:4.5-Release into d80402b1de28fc313ff4308b2a7f07fe512ae728 on slimphp:4.x.

repo: slimphp/Slim


text:
tornadoparser 'use_args' example in documentation has arguments transposed

Arguments in the post method below are transposed. The id argument should come before reqargs, e.g. def post(self, id, reqargs):
More generally, the dictionary of parsed arguments is passed as a positional argument after self and any regex match groups which are passed by tornado as arguments to the request handler's get/post/etc. method.
from webargs import fields
from webargs.tornadoparser import use_args

class HelloHandler(tornado.web.RequestHandler):

    @use_args({'name': fields.Str()})
    def post(self, reqargs, id):
        response = {
            'message': 'Hello {}'.format(reqargs['name'])
        }
        self.write(response)

Thanks for reporting. I've updated the docs with the correct behavior.

great, thanks!

authors: frankslaughter sloria

repo: sloria/webargs


text:
Bug: error when running main.py

Describe the bug
Bug Description
The error (pygame.error: mixer not initialized) appears when running the main file.
Expected Behavior
It is expected to run the code without errors.
Version
0.1.0
Which aspect(s) of the project is this bug affecting?
area: dependencies, game-playtesting
Screenshots

Relevant log output
pygame-ce 2.5.0 (SDL 2.30.3, Python 3.12.4)
Traceback (most recent call last):
  File "C:\Users\Asser Halim\pydew-valley-uzh\main.py", line 246, in <module>
    game = Game()
           ^^^^^^
  File "C:\Users\Asser Halim\pydew-valley-uzh\main.py", line 76, in __init__
    self.load_assets()
  File "C:\Users\Asser Halim\pydew-valley-uzh\main.py", line 175, in load_assets
    self.sounds = support.sound_importer("audio", default_volume=0.25)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Asser Halim\pydew-valley-uzh\src\support.py", line 119, in sound_importer
    value = pygame.mixer.Sound(os.path.join(*snd_path, sound_name))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pygame.error: mixer not initialized

Process finished with exit code 1

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Are you receiving this error on an unmodified fetch of the main branch? mixer is normally initialized automatically by pygame.init() which is called first thing in the Game class initialization. I haven't been able to recreate this error on a fresh instance of the main branch.

I am getting it in the main from the main project repo on github.

repo: sloukit/pydew-valley-uzh


text:
[e2e]: generic workflow_dispatch main workflow_inputs slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3598602736
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Dec  2 03:31:14 UTC 2022

Looks like an issue with slsa-verifier v2.0.0
/cc @asraa

repo: slsa-framework/slsa-github-generator


text:
[e2e]: nodejs workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5275485970
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Thu Jun 15 06:23:17 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5286889281
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Jun 16 06:22:24 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5296750532
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sat Jun 17 06:21:44 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5302187339
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sun Jun 18 06:21:49 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5308531232
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Mon Jun 19 06:24:01 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5319217912
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Jun 20 06:24:53 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5330786594
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Wed Jun 21 06:23:09 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5353501500
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Jun 23 06:26:35 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5362984807
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sat Jun 24 06:25:02 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5368242610
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sun Jun 25 06:27:50 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5374545874
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.nodejs.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Mon Jun 26 06:31:51 UTC 2023
Tests are passing now. Closing this issue.


text:
[e2e]: gradle workflow_dispatch main project-at-repo-root slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8190239317
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.gradle.workflow_dispatch.main.project-at-repo-root.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.gradle.workflow_dispatch.main.project-at-repo-root.slsa3.yml
Trigger: schedule
Branch: main
Date: Thu Mar  7 15:02:10 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/8205116802
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.gradle.workflow_dispatch.main.project-at-repo-root.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.gradle.workflow_dispatch.main.project-at-repo-root.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Mar  8 15:06:59 UTC 2024
Tests are passing now. Closing this issue.