Fix package installation for debian and ubuntu containers

This is one solution to resolving the issue discussed in https://github.com/dahlb/ha_hatch/issues/39. When running Home Assistant inside of a Docker container other than Alpine Linux, the setup process would error out due to trying to invoke the apk command and receiving the error that it is unknown.
This PR uses the distro package to maintain the existing functionality for Alpine containers, and adds similar functionality for Ubuntu and Debian. It also outputs a warning for any other Docker-based distro indicating that manual installation of those package might be necessary.
Since many Docker containers also don't run as root, I also added a bit of code that prefixes the command with "sudo" for anyone other than uid 0. An alternative would be to skip package installation if not root. I'm not sure which would be preferable, but that's easy to change.
An alternative solution
All that being said, it feels like installing OS packages should perhaps be out of scope for a custom integration. There's no way to know if the Docker container is a dev box or if it's someone's production HA instance. And the fact that it only runs when it's in a Docker container means that many HA installations won't run that code anyway, so is it really necessary at all?
I wonder if the better solution would be to just remove the OS package installation code, and if those packages are really needed, output a log error if they're missing telling the user to install them. This would be safer, and wouldn't require checking for various distros or making unannounced changes to the host machine. If this would be an acceptable change, I could submit a PR for that instead of this one.

nice improvement, though try to stick with semantic commit messages for the release logs

Thank you! I looked a bit into semantic commit messages, I will make sure to use those for future commits.


Wind downscaling: temporarily clip highest wind

As an IMPROVER developer I want the maximum wind clipped to a maximum realistic value so that my ECC doesn't fall over!
The wind downscaling, given our input ancillaries (which may be at fault), can produce excessively high winds where large source/target orography differences are found. These need to be clipped at, say, 50 ms-1 as a temporary measure.
Acceptance criteria:

Add an option to the wind downscaling CLI to limit the maximum wind speed output (e.g. --clip-max)
Use this option to clip the wind downscaling output cube within the CLI code
Note that we will be removing this option shortly
Test it, but no need for a CLI test

No longer required. Closed.


Images unload when going scrolling through pages

https://user-images.githubusercontent.com/18307183/125162981-d1900d00-e13f-11eb-99d3-1862768332ca.mp4

This probably has to do with "Image Preloading". Set the setting to 1 for a temporary fix while @Dar9586 fixes it.

This should be fixed in 2.8.1


TypeError: fire_context() got an unexpected keyword argument 'channel'

Hello I get an error when trying to test a simple buffer overflow (to test rex). I'm trying to debug the issue.

crash = rex.Crash(tt, b"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
WARNING | 2019-12-04 21:57:29,693 | cle.loader | The main binary is a position-independent executable. It is being loaded with a base address of 0x400000.
Traceback (most recent call last):
File "", line 1, in
File "/opt/rex/rex/crash.py", line 119, in init
self._work(pov_file, format_infos)
File "/opt/rex/rex/crash.py", line 565, in _work
format_infos=format_infos,
File "/opt/rex/rex/crash.py", line 612, in _trace
r = self.tracer_bow.fire(testcase=test_case, channel=channel, save_core=save_core)
File "/usr/local/lib/python3.7/dist-packages/archr/arsenal/init.py", line 50, in fire
with self.fire_context(*args, **kwargs) as flight:
File "/usr/lib/python3.7/contextlib.py", line 239, in helper
return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.7/contextlib.py", line 82, in init
self.gen = func(*args, **kwds)
TypeError: fire_context() got an unexpected keyword argument 'channel'

I get the same error running test_rex.py
$python3 test_rex.py
test_arbitrary_transmit
INFO    | 2019-12-04 22:20:49,381 | rex.Crash | Loading rop gadgets from cache file /opt/rex/tests/binaries/tests_data/rop_gadgets_cache/arbitrary_transmit...
DEBUG   | 2019-12-04 22:20:49,815 | archr.targets | Running command: 'mkdir' '/tmp/tracer_target_1sg58gjp'
DEBUG   | 2019-12-04 22:20:49,829 | archr.targets | Running command: '/tmp/tmpe8sgfpx9/shellphish_qemu/fire' 'shellphish-qemu-cgc-tracer' '-C' '/tmp/tracer_target_1sg58gjp' '-d' 'exec' '-D' '/tmp/tracer-0t36_y79.trace' '-magicdump' '/tmp/tracer-0t36_y79.magic' '-m' '8G' '/opt/rex/tests/binaries/tests/i386/arbitrary_transmit'
INFO    | 2019-12-04 22:20:49,943 | archr.log | ======= Sending 36 bytes =======
INFO    | 2019-12-04 22:20:49,944 | archr.log | >> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%
DEBUG   | 2019-12-04 22:20:49,958 | archr.arsenal.qemu_tracer | Trace consists of 140 basic blocks
DEBUG   | 2019-12-04 22:20:49,961 | archr.targets | Running command: 'rm' '-rf' '/tmp/tracer_target_1sg58gjp'
Traceback (most recent call last):
File "test_rex.py", line 464, in
run_all()
File "test_rex.py", line 450, in run_all
all_functionsf
File "test_rex.py", line 362, in test_arbitrary_transmit
_do_arbitrary_transmit_test_for("tests/i386/arbitrary_transmit")
File "test_rex.py", line 344, in _do_arbitrary_transmit_test_for
crash = rex.Crash(target, inp, fast_mode=True, rop_cache_path=os.path.join(cache_location, os.path.basename(binary)))
File "/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py", line 119, in init
File "/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py", line 565, in _work
File "/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py", line 612, in _trace
File "/usr/local/lib/python3.7/dist-packages/archr/arsenal/init.py", line 50, in fire
with self.fire_context(*args, **kwargs) as flight:
File "/usr/lib/python3.7/contextlib.py", line 239, in helper
return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.7/contextlib.py", line 82, in init
self.gen = func(*args, **kwds)
TypeError: fire_context() got an unexpected keyword argument 'channel'

I did a careless minor refactor of archr, and broke rex... I'll try to get
some time to fix this tomorrow.
On Wed, Dec 4, 2019 at 9:21 PM KittyTechnoProgrammer <
<EMAIL_ADDRESS>wrote:

I get the same error running test_rex.py
$python3 test_rex.py
test_arbitrary_transmit
INFO | 2019-12-04 22:20:49,381 | rex.Crash | Loading rop gadgets from
cache file
/opt/rex/tests/binaries/tests_data/rop_gadgets_cache/arbitrary_transmit...
DEBUG | 2019-12-04 22:20:49,815 | archr.targets | Running command: 'mkdir'
'/tmp/tracer_target_1sg58gjp'
DEBUG | 2019-12-04 22:20:49,829 | archr.targets | Running command:
'/tmp/tmpe8sgfpx9/shellphish_qemu/fire' 'shellphish-qemu-cgc-tracer' '-C'
'/tmp/tracer_target_1sg58gjp' '-d' 'exec' '-D' '/tmp/tracer-0t36_y79.trace'
'-magicdump' '/tmp/tracer-0t36_y79.magic' '-m' '8G'
'/opt/rex/tests/binaries/tests/i386/arbitrary_transmit'
INFO | 2019-12-04 22:20:49,943 | archr.log | ======= Sending 36 bytes
INFO | 2019-12-04 22:20:49,944 | archr.log | >>
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%
DEBUG | 2019-12-04 22:20:49,958 | archr.arsenal.qemu_tracer | Trace
consists of 140 basic blocks
DEBUG | 2019-12-04 22:20:49,961 | archr.targets | Running command: 'rm'
'-rf' '/tmp/tracer_target_1sg58gjp'
Traceback (most recent call last):
File "test_rex.py", line 464, in
run_all()
File "test_rex.py", line 450, in run_all
all_functionsf
File "test_rex.py", line 362, in test_arbitrary_transmit
_do_arbitrary_transmit_test_for("tests/i386/arbitrary_transmit")
File "test_rex.py", line 344, in _do_arbitrary_transmit_test_for
crash = rex.Crash(target, inp, fast_mode=True,
rop_cache_path=os.path.join(cache_location, os.path.basename(binary)))
File
"/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py",
line 119, in init
File
"/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py",
line 565, in _work
File
"/usr/local/lib/python3.7/dist-packages/rex-0.2-py3.7.egg/rex/crash.py",
line 612, in _trace
File "/usr/local/lib/python3.7/dist-packages/archr/arsenal/init.py",
line 50, in fire
with self.fire_context(*args, **kwargs) as flight:
File "/usr/lib/python3.7/contextlib.py", line 239, in helper
return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.7/contextlib.py", line 82, in init
self.gen = func(*args, **kwds)
TypeError: fire_context() got an unexpected keyword argument 'channel'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shellphish/rex/issues/56?email_source=notifications&email_token=AA2LHFZLKJB6NH75KANEIEDQXB6VTA5CNFSM4JVTU4FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF7NZCI#issuecomment-561962121,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2LHF73GEBJDTW4GRWX4N3QXB6VTANCNFSM4JVTU4FA
.

Thank you for responding. Also thank you for telling me the reason. I was giving myself an anerism trying to find out what was wrong. Thank you for promising to take time to fix it. If you could please report back when you have fixed this error so I can test it please. Thank you, have a nice day, and good luck.

How's it going with rex?


PRISMA_QUERY_ENGINE_BINARY being ignored

I'm compiling my own binaries via Dockerfile, and setting the binaries on a custom path of /prisma-engine/binaries/<binary_name>.
However, when I run prisma lift or prisma generate commands, I get a node ENOENT error because it's trying to spawn the binary from /usr/local/lib/node_modules instead of the path I've provided to the explicit binary.
Just to be sure it wasn't a naming problem (see comment https://github.com/prisma/prisma2/issues/938#issuecomment-554780269), i named the binary with the same resolved name for my native platform.
$ echo $PRISMA_QUERY_ENGINE_BINARY
/prisma-engine/binaries/query-engine-linux-glibc-libssl1.1.0
$ prisma lift up --preview
Error: Get config Error: Command failed with exit code 2 (ENOENT): /usr/local/lib/node_modules/prisma2/query-engine-linux-glibc-libssl1.1.0 clie --get_config /tmp/d02f6653-7b90-478f-9cf4-98ce4d8b3ba8
spawn /usr/local/lib/node_modules/prisma2/query-engine-linux-glibc-libssl1.1.0 ENOENT

Moving to prisma2 repository as this is related to the cli

That bug also seems to apply for the MIGRATION env var: https://github.com/prisma/prisma2/issues/343#issuecomment-559856520

Fixed in latest alpha.
You can try it out with npm i -g prisma2@alpha.

@LongLiveCHIEF Here is the commit which fixed the issue: https://github.com/prisma/prisma2/commit/93d33ffc595bbb9204f34f8bc313460a73cf3766


Clarify documentation on registering custom converters

In https://docs.spring.io/spring-data/jdbc/docs/current/reference/html/#jdbc.custom-converters.configuration the suggested way of registering custom converters is to subclass AbstractJdbcConfiguration. However doing so makes it depend on JDBC specific beans not available in test slices like JsonTest.
The solution that worked for me was to create a JdbcCustomConversions bean instead like this:
  @Bean   public JdbcCustomConversions customConversions() {     return new JdbcCustomConversions(List.of(new MyCustomConverter()));   }

However doing so makes it depend on JDBC specific beans not available in test slices like JsonTest.

From your description it sounds as if you're setting up a configuration that doesn't match your test slice setup as you would pull in dependencies that shouldn't be declared with that configuration in the first place.
Part of the problem is also that our documentation doesn't include Spring Boot-specifics as we do not depend on Boot, rather it is the other way around.
Generally, we should align our documentation to explain specifics of CustomConversions along the lines of https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mongo.property-converters.value-conversions
MongoDB specifically calls out:

If you want to rely on Spring Boot to bootstrap Data MongoDB, but still want to override certain aspects of the configuration, you may want to expose beans of that type. For custom conversions you may eg. choose to register a bean of type MongoCustomConversions that will be picked up the by the Boot infrastructure. To learn more about this please make sure to read the Spring Boot Reference Documentation.


wiki update

https://github.com/YOURLS/YOURLS/wiki/Plugins
The Plugin admin pages section has a code block :
// The function that will draw the admin page
function myplugin_display_page() {
    echo "Hello, World!"
}

It's missing a semi colon after the echo.

Thanks for noticing! Fixed


Azuki Optimized UE controllers

Summary
Optimized FX - Face Tracking - UE Blendshapes, FX - Face Tracking - UE Blendshapes TongueSteps  & Additive - Eye Tracking - Eye Rotation controllers.
Improvements

Collapsed all layers with blendtrees into a single layer.
Reduced certain animations that set parameters values into a single animation.
Updated some OSCm_Remote blendtrees to use the same amount of smoothing as OSCm/Remote/EyeSmoothing as they are floats rather than binaries.
Re-organized OSCm_Local & OSCm_Remote blendtrees by collapsing face tracking parameters of similiar tracking type & smoothing speed.
Made EnableVisemes non-sync.

OSCm_Local

OSCm_Remote

FT Local Root

FT Remote Root

Changes

Renamed some animations to contain a _ at the end to visually mark as deprecated. Still used for ARKit & SRapinal.
Exposed some blendtrees as files to easily update the face tracking roots.
FX - Face Tracking - UE Blendshapes TongueSteps has been deleted in favor of FX - Face Tracking - UE Blendshapes handling both cases (with and without tongue steps). TongueSteps prefab has been updated to force the TongueSteps float to 1.
Renamed OSCm/Remote/EyeSmoothing to OSCm/Remote/FloatSmoothing.
Renamed OSCm/Remote/FloatSmoothing to OSCm/Remote/BinarySmoothing.
Removed VRC Animator Tracking Control for Eyes & Eyelids from FX Controller as this is already done by the Additive Controller.

Fixes

Fixed OSCm local NoseSneer blendtree using the wrong parameter in the direct root blendtree. (EyeTrackingActive -> LipTrackingActive)

The tongue steps animator is referencing the sub assets of the animator. This will cause issues if the other animator is seprated. Generate new sub assets part of the tongue-steps animator.

Added one more important thing which is an animation to set the animated parameters in the controllers to zero, it was discovered a while ago by VRCFury that animated parameters default value can get stuck to whatever the current value is when sitting on chairs. It can be fixed just by having an animation forcing the parameters value to be zero when not animated.


tests: fix slow snapshot tests and failed split operation

What problem does this PR solve?
Issue Number: close #11186
close #11182
Problem Summary:

Too many operation can be very slow in limited environment, hence cause snapshot test fail.
If there is no leader, split should be retried.

Check List
Tests

Unit test

Release note
None

/test

/merge

/run-cherry-picker


Spring-data-dynamoDB in Spring Boot app: @DynamoDBTable classes not recognized as persisted entities if @EnableDynamoDBAuditing configured

This issue is originally posted on stackoverflow, but I got no responses... So I am posting it here hoping to find the resolution...
I am trying to add support for DynamoDB to an existing Spring Boot/Spring Data JPA application - using spring-data-dynamodb.

Spring Boot version 1.5.12.RELEASE
spring-data-dynamodb version 4.5.5
aws-java-sdk-dynamodb version 1.11.34 (have tried later ones as well)
Java version 1.8.x

I want to be able to switch between JPA (Oracle, HSQL) and DynamoDB using mutually exclusive Spring profiles (jpa and dynamodb.) So I have two profile-specific @Configuration classes:
@Configuration
@Profile("jpa")
@SpringBootConfiguration
@EnableAutoConfiguration
@EnableJpaRepositories(basePackages = "my.persistence.repositories")
@EnableJpaAuditing
public class JpaConfig {
}

and
@Configuration
@Profile("dynamodb")
@SpringBootConfiguration
@EnableDynamoDBRepositories(basePackages = "my.persistence.repositories")
@EnableDynamoDBAuditing
@EnableAutoConfiguration(exclude = {
    DataSourceTransactionManagerAutoConfiguration.class,
    DataSourceAutoConfiguration.class,
    HibernateJpaAutoConfiguration.class
})
public class DynamoDBConfig {

    @Value("${amazon.dynamodb.endpoint}")
    private String amazonDynamoDBEndpoint;

    @Value("${amazon.aws.accesskey}")
    private String amazonAWSAccessKey;

    @Value("${amazon.aws.secretkey}")
    private String amazonAWSSecretKey;

    @Bean
    public AmazonDynamoDB amazonDynamoDB() {
        AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient(amazonAWSCredentials());
        if (!StringUtils.isEmpty(amazonDynamoDBEndpoint)) {
            amazonDynamoDB.setEndpoint(amazonDynamoDBEndpoint);
        }
        return amazonDynamoDB;
    }

The Application class is annotated with @Configuration and @ComponentScan.
Note that I am specifically attempting to exclude any JPA auto-configuration when the dynamodb profile is activated.
Also, note that I am hoping to be able to use the same Spring Data repository interfaces and entity classes. There is, of course, nothing in the repository interfaces that is specific to JPA or DynamoDB. And I assume that adding DynamoDb annotations to the existing JPA annotations should not hurt anything. So I have entity classes such as the following (an old JPA entity class with added DynamoDB annotations):
 @Entity
 @Table(name = "person")
 @DynamoDBTable(tableName = "person")
 @EntityListeners({AuditingEntityListener.class})
 @Getter
 @Setter
 @NoArgsConstructor
 @ToString
 public class Person implements Serializable {
     private static final long serialVersionUID = 1L;

     @Id
     @DynamoDBHashKey
     @DynamoDBAutoGeneratedKey
     private String id;

     @Column(name = "first_name")
     @DynamoDBAttribute
     private String firstName;

     @Column(name = "last_name")
     @DynamoDBAttribute
     private String lastName;

     @Column(name = "created_dt", nullable = false)
     @CreatedDate
     @DynamoDBAttribute
     @DynamoDBAutoGeneratedTimestamp(strategy=DynamoDBAutoGenerateStrategy.CREATE)
     private Date createdDate;

     ... etc.
}

And the corresponding repository remains unchanged (I've only added the @EnableScan annotation, following an example):
 @EnableScan
 public interface PersonRepository extends Repository<Person, String> {

      Person findOne(String id);

      Person save(Person person);
 }

When I run the application with the jpa Spring profile activated everything works fine - just as it used to prior to the addition of the DynamoDB support. However, when I launch the application with the dynamodb profile, it starts up ok, but the data access operations fail with an exception that indicates that the Person object is not recognized as a persisted entity:
 java.lang.IllegalArgumentException: Unsupported entity my.model.Person! Could not determine IsNewStrategy.
at org.springframework.data.support.IsNewStrategyFactorySupport.getIsNewStrategy(IsNewStrategyFactorySupport.java:48) ~[spring-data-commons-1.13.8.RELEASE.jar:na]
at org.springframework.data.auditing.IsNewAwareAuditingHandler.markAudited(IsNewAwareAuditingHandler.java:80) ~[spring-data-commons-1.13.8.RELEASE.jar:na]
at org.socialsignin.spring.data.dynamodb.mapping.event.AuditingEventListener.onBeforeSave(AuditingEventListener.java:44) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.mapping.event.AbstractDynamoDBEventListener.onApplicationEvent(AbstractDynamoDBEventListener.java:109) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]

When I step through the framework code in the debugger I see that the exception is thrown when the check for the target class being a persisted entity class returns false, which, in return, yields a null IsNewStrategy.
The stack trace indicates that this happens during the audit listener execution. If I remove the EnableDynamoDBAuditing annotation from my configuration, I seem to get a bit further, but a different exception is thrown:
 Caused by: java.lang.IllegalAccessError: tried to access method com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper.getTableModel(Ljava/lang/Class;Lcom/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMapperConfig;)Lcom/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMapperTableModel; from class org.socialsignin.spring.data.dynamodb.core.DynamoDBTemplate
at org.socialsignin.spring.data.dynamodb.core.DynamoDBTemplate.getTableModel(DynamoDBTemplate.java:311) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCreator.create(AbstractDynamoDBQueryCreator.java:64) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCreator.create(AbstractDynamoDBQueryCreator.java:42) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:109) ~[spring-data-commons-1.13.11.RELEASE.jar:na]
at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:88) ~[spring-data-commons-1.13.11.RELEASE.jar:na]
at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:73) ~[spring-data-commons-1.13.11.RELEASE.jar:na]
at org.socialsignin.spring.data.dynamodb.repository.query.PartTreeDynamoDBQuery.doCreateQuery(PartTreeDynamoDBQuery.java:60) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery.doCreateQueryWithPermissions(AbstractDynamoDBQuery.java:80) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery$SingleEntityExecution.execute(AbstractDynamoDBQuery.java:271) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQuery.execute(AbstractDynamoDBQuery.java:304) ~[spring-data-dynamodb-4.5.5.jar:4.5.5]
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:492) ~[spring-data-commons-1.13.11.RELEASE.jar:na]
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:475) ~[spring-data-commons-1.13.11.RELEASE.jar:na]

I see that my JPA functionality is effectively disabled when the dynamodb profile is activated. No interference there. My entities package seems to be ignored by Spring Data MongoDB - if MongoDB audit is enabled via @EnableDynamoDBAuditing. And, even without that, nothing works due to what appears to be some kind of library mismatch...
Unfortunately, there seems to be no comprehensive documentation for the spring-data-dynamodb project, and the examples I have found are too trivial and don't provide any info on the @EnableDynamoDBRepositories usage, or any reasonable framework details, for that matter... I don't see anything in the Spring Data DynamoDB project that indicates that any additional configuration might be required other than adding the @EnableDynamoDBRepositories annotation.
Would greatly appreciate any help/advice! Many thanks in advance.

I have removed the explicit dependency definition for aws-java-sdk-dynamodb, that was sitting in my POM since the original exercise to replicate some online examples, and the IllegalAccessError exception case got resolved - the later lib version that is pulled by spring-data-dynamodb no longer has the method as private. However, I still don't know how to properly enable DynamoDB auditing via the @EnableDynamoDBAuditing annotation. If I add that annotation, it seems that the persisted entity class no longer gets recognized as such.

The @EnableDynamoDBAuditing behavior is for sure the least documented feature.
To have JPA and DynamoDB to co-exist I think you have to have your entity classes in different packages and assign those packages accordingly.
Otherwise Spring-Data has a hard time handling those entities. Example here: https://github.com/derjust/spring-data-dynamodb/wiki/Multi-Repository-configuration
As said, the Auditing was contributed and I have to double-check how it behaves in your scenario

@derjust, Thank you very much for your response. For all it's worth, I think I was able to successfully reuse the model and repository classes - as long as the JPA and DynamoDB profile configurations are mutually exclusive. In other words, if I effectively exclude all JPA-related configuration (from Spring Boot auto configuration) when the DynamoDB profile is activated (or vice versa) everything seems to work fine. My application has to be deployed either with a SQL database (Oracle) or DynamoDB, but never with both. So, defining mutually exclusive configuration classes seems to do the trick. So there is no need for multiple model/repository definitions.


Feature/removegif

closes: #392 #394

Adds the ability to remove gifs from the db
Fixes an issue where requesting new gifs to be added to the db was broken
Adds the option to use interactions in commands

closes: #394


(PUP-7582) Error on virtual and exported classes

Previously puppet would warn or error if it encountered a virtual
class (indicated by @class) or an exported class (indicated by @@class)
based on the Puppet[:strict] setting. By default, puppet would warn, yet
include resources from the virtual class in the catalog. So the resources in the
virtual class weren't virtual! Also note, it wasn't possible to turn off the
warning.
This commit makes puppet always error on virtual and exported classes. The
validator_factory_4_0.rb validates static resource expressions, while
runtime3_support validates create_resources calls, which can be used to create
resources at runtime.
The integration tests are removed since we already test for validation errors in
unit tests.

jenkins please test this with servertests


Windows App crash, when the ColorPicker is on a XAML page

My .Net Maui app for Windows have worked with the ColorPicker very well till last month. I updated than Visual Studio and .Net Sdk to the newest version and I have a crash in the app, when I navigate to a page with the ColorPicker. It is enough to use the control on the page, without any binding and the app crashes. The app crashes so, that there is no exeption handling possible.
Here are the relevat nuget packages:

can you provide more details? have you tried the sample from the repo here or have your own repro which you can share?

The sample crashes directly when startin the app on Windows. If you delete the ColorPicker from the Xaml, it works fine.
MauiApp1.zip

seems to be this issue
https://github.com/mono/SkiaSharp/issues/3034
i'm investigating

Thank you, it works now :-)


GO:0004843 parentage problem?

GO:0004843 ubiquitin-specific protease activity
is_a  GO:0008234 cysteine-type peptidase activity
The enzyme I am annotating (sst2 pombe, ortholog STAMBP in human) is a ubiquitin-specific protease, but also a zinc-specific metalloprotease.
I suppose the is_a  GO:0008234 cysteine-type peptidase activity link is wrong in this case?
I wonder if   GO:0004843 ubiquitin-specific protease activity should instead have this parent:
is_a GO:0070122 isopeptidase activity
Catalysis of the hydrolysis of an isopeptide bond. An isopeptide bond is an amide linkage between a carboxyl group of one amino acid and an amino group of another amino acid in which at least one of these groups is not on the a-carbon of one of the amino acids (for example, the link between an epsilon-amino group of a lysine molecule to a carboxyl group on a second amino acid is an isopeptide bond).
Note, I've just requested GO:1990908 Label: Lys63-specific zinc metallopeptidase deubiquitinase activity via TG from PMID:26368668

Hi Antonia, Thanks for the note. Let me look at this with the TermGenie request and come back to you.

I'm not sure I understand fully. We currently have "GO:0004843, ubiquitin-specific protease activity, def = Catalysis of the thiol-dependent hydrolysis of a peptide bond formed by the C-terminal glycine of ubiquitin and another protein."
I am not an expert, but based on http://www.nature.com/cdd/journal/v17/n1/images/cdd2009168f2.jpg and the description at https://en.wikipedia.org/wiki/Ubiquitin#Ubiquitination at least E1 and E2 involve come cysteine-peptidase activity.
If that's correct, could you explain why is the link to GO:0008234 cysteine-type peptidase activity wrong?

Hi Antonia,
I agree with Melanie. Why can't it be both and annotated to both terms?
-D

I think the problem is that the enzyme Antonia is annotating is NOT a cysteine-type peptidase. It's a ubiquitin-specific protease (i.e. a DUB, not E1 or E2) that works by a zinc metalloprotease mechanism instead of a cysteine-type mechanism. So GO has a previously unsuspected TPV. (That's if I'm interpreting the paper intro correctly -- "DUBs are grouped into five categories based on the structure of their catalytic domains: ... The first four groups are cysteine proteases, whereas the JAMM members are zinc metalloproteases, containing a catalytic zinc and sharing mechanistic similarities with the well-known zinc protease thermolysin.")
hope that helps,
m

If that's true, then you are right and there is a TPV. Thanks Midori.

I think Antonia mentioned this because we find it odd to  represent a single molecular activity using 2 terms, so we always try to find a term which encompasses all aspects of the activity.
That said, at the LEGO meeting I was discussing with  Paul Thomas (Can't find his github ID!)
about some of these types of terms, where we were wondering if we were over-complicating things. This seems like a good example of trying to represent aspects of the mechanistic detail which do not affect the 'output' and are could be considered too granular for GO?
Do we need to know that its a metalloprotease or cysteine-type protease to describe the function adequately?

Or what Midori said.

well, Val's comment and mine aren't mutually exclusive ;)

Yes I meant that this link:
GO:0004843 ubiquitin-specific protease activity
is_a GO:0008234 cysteine-type peptidase activity
is wrong. Thanks Midori.

Thanks for all the additional explanations, this is very helpful.
The term is currently defined as: "GO:0004843, ubiquitin-specific protease activity, def = Catalysis of the thiol-dependent hydrolysis of a peptide bond formed by the C-terminal glycine of ubiquitin and another protein."
If this is not a cystein-type peptidase activity, is it still correct to say that the hydrolysis is thiol-dependent? I would think that the thiol implies thioesters formed by E1 and/or E2, which doesn't seem to be the case here.
If the above is correct, should we relabel ubiquitin-specific protease activity to thiol-dependent ubiquitin-specific protease activity and create a new term for the metalloproteases DUBs?

I'm not sure about any other suitable parentage. At the time I seem to have thought that "GO:0070122 isopeptidase activity" would be a suitable parent instead, but I am not a peptidase expert so I don't know for sure what's correct.

If this is not a cystein-type peptidase activity, is it still correct to say that the hydrolysis is thiol-dependent?

No, because here the thiol (aka sulfhydryl) group is part of the cysteine-type peptidase's active site, not the substrate.
The simplest solution would be to delete "thiol-dependent" from the GO:0004843 definition, because then the term would apply to both the cysteine-type and zinc metalloprotease DUBs (and would keep it simple as Val suggested). But I don't really mind if you want to make a new generic term as a superclass for a renamed GO:0004846 (I'd use "cysteine-type ubiquitin-specific protease activity" for consistency with existing grouping terms) and a new term for the zinc metallopeptidase activity.

oh, and move GO:0004843 to is_a peptidase activity, or maybe endopeptidase activity

We probably need to go one level up, as the current parent "ubiquitinyl hydrolase activity" is also defined as "thiol-dependent"
Could we just remove the thiol-dependent bit in both, and then just remove the is_a "'ubiquitin-like protein-specific protease activity'"? It would still remain under "ubiquitinyl hydrolase activity". I'm also all for keeping things simple :)

Sorry, I didn't pay enough attention to both links!
Yes, I agree that "thiol-dependent" should also be removed from the GO:0036459 definition. I don't know if that clashes with the EC:<IP_ADDRESS> xref, but the MEROPS guys assured me that peptidases are a mess in EC.
I do not see any reason to remove the is_a GO:0019783 link, because ubiquitin is, well, a ubiquitin-like protein. Instead, GO:0019783 should itself be moved to is_a peptidase activity; its text definition doesn't even mention a mechanism, and now we know that not all activities that fit the definition also act via a cysteine-type mechanism.

As an aside, even when this is closed I told @thomaspd I would flag these terms. Added a lablel "discuss_term_specificity" to collect them.

Sounds great to me, thanks for the extra discussion/information!
@rebeccafoulger: for the term "ubiquitinyl hydrolase activity" which is currently mapped to EC:<IP_ADDRESS>, do you foresee any issue wrt the mapping if we update the definition from "Catalysis of the thiol-dependent hydrolysis of an ester, thioester, amide, peptide or isopeptide bond formed by the C-terminal glycine of ubiquitin." to "Catalysis of the hydrolysis of an ester, thioester, amide, peptide or isopeptide bond formed by the C-terminal glycine of ubiquitin." (i.e., removing the "thiol-dependent" bit). The EC very much specifies cysteine involvement, but i don't know if there is a generic EC for ubiquitination which would cover both cysteine proteases and metalloproteases.

There are 0 manual annotations directly to 'ubiquitinyl hydrolase activity ; GO:0036459'- all annotations come from InterPro and HAMAP mappings. So after a chat with Melanie, we think it makes most sense to:

Create a new generic ubiquitinyl hydrolase activity term.
Rename GO:0036459 to thiol-dependent ubiquitinyl hydrolase activity.
Add in an EC:GO mapping to GO:0036459 for EC:<IP_ADDRESS> (currently the EC number is just in the definition field, so doesn't make it into mapping files).

Note to self: discussion of merging at editors call: http://wiki.geneontology.org/index.php/Ontology_meeting_2016-01-28#Merging_of_terms
In short we keep merging for now, round-tripping done automatically with OWLAPI

Implemented as described by Becky.

Should all the changes be visible in TG?
GO:0061578 Lys63-specific deubiquitinase activity
Hydrolysis of Lys63-Linked ubiquitin unit(s) from a ubiquitinated protein.
still has the parent
GO:0008234 cysteine-type peptidase activity
Catalysis of the hydrolysis of peptide bonds in a polypeptide chain by a mechanism in which the sulfhydryl group of a cysteine residue at the active center acts as a nucleophile.

I can't reopen this ticket so I made a new one: https://github.com/geneontology/go-ontology/issues/12275


added Haines Borough, AK, USA

Fixes #2634

Water on 2 sides, nice!

On Apr 20, 2017, at 11:12, Stephen K Hess<EMAIL_ADDRESS>wrote:
Merged #2883.
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Decimal type should be NUMERIC in Sqlite

Now, when one does a migration in Sqlite, all decimal types create TEXT data column in Sqlite database. I think they should create NUMERIC data type according to this (table in 3.1.1 section): https://www.sqlite.org/datatype3.html -> look at DECIMAL(10,5) data type. It should be represented as NUMERIC.

NUMERIC is a type affinity. It means SQLite will prefer REAL (64-bit floating-point values) or INTEGER (64-bit integer values) as the on-disk format.
In .NET, decimal represents a 128-bit floating-point value. Coercing these to 64-bit values would be lossy so we persist them as TEXT values.

If you don't need the precision, but would still like to work with decimal types in your domain model, you can use a value converter:
modelBuilder.Entity<MyEntity>().Property(e => e.MyDecimalProperty)
    .HasConversion<double>()
    .HasColumnType("NUMERIC");

I tried to do this in my db context:
protected override void OnModelCreating(ModelBuilder builder)
{
	//Debugger.Launch();
	base.OnModelCreating(builder);

	builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
        //in the above line, I am able to map my model and Ignore fields that I don't want to be in database

	if (DbInitializer.DatabaseType == DbType.Sqlite)
	{
		foreach (var entityType in builder.Model.GetEntityTypes())
		{
			var ignoredNames = entityType.GetIgnoredMembers();

			var props = entityType.ClrType.GetProperties().Where(p => p.PropertyType == typeof(decimal) && !ignoredNames.Contains(p.Name));
			foreach (var prop in props)
			{
				builder.Entity(entityType.Name)
					.Property(prop.Name)
					.HasColumnType("NUMERIC");
			}
		}
	}
}

So, as you can see, I want to set column type to numeric, only if DBMS is Sqlite and clr type is decimal. But this does not work. Created column type is still TEXT.

@AdamJachocki I am not able to reproduce this. Please post a small, runnable project/solution or complete code listing that demonstrates the behavior you are seeing.

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


Update resource-group-move-resources.md

Confirmed with the team that VNets can't be migrated while peered. Guidance is to disable peering, move the VNet, enable peering again.

@PedroPerezMSFT,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@PedroPerezMSFT : Thanks for your contribution to the Azure documentation! The author, @tfitzmac, has been notified to review your proposed change.

@PedroPerezMSFT - thanks for this helpful addition.

#sign-off


Peek references shows other cells

Testing: microsoft/vscode#98821

@Tyriar I don't really know what you are doing or expecting here. Can you at least share the notebook?

@jrieken the notebook is just those 3 cells, I don't know why gh.github-issues:2:2 and gh.github-issues:3:2 are showing up, they appear to be identifiers for the first markdown and query cell respectively. I can no longer reproduce this though with shift+f12:

[{"kind":1,"language":"markdown","value":"# Hello world","editable":true},{"kind":2,"language":"github-issues","value":"$repo=repo:xtermjs/xterm.js\r\n$repo milestone:4.7.0 author:@me is:pr\r\n","editable":true},{"kind":2,"language":"github-issues","value":"$repo","editable":true}]


Keeps search state on post, allow order by column

Partial #73
I've rewritten the fetching for suggestions and redirects to allow it to store search state on delete / page change.
I also added the possibilty to sort the columns.
I also added pagination to the sql-fetching and by that also removed dependency to X.PagedList.
Added confirmation message on operations, which fixes #13

I have looked at this PR and it has several major issues:

I have looked at the PR and it has several significant issues:

There are a lot of breaking changes - public interfaces have been changed. We do not want to introduce breaking changes at this point.
Using POST to get/query data is a bad practice. Instead, it should use links with query parameters.
Custom implementation of Paging - there was already an X.PagedList library in use that has it implemented and tested.

Because of these issues, I cannot accept this PR, but it could be a reference for a new PR without these issues. Although, I would discuss first how it should be implemented in the issue #73  before doing anything.

The problem with current implemenation is that you fetch all posts instead of pagination on database side.
Regarding public interfaces. Current methods can be kept with a redirect to the new implementation.
If you want to keep state with get then all links need to be updated with querystringparameters instead for all different kinds of filter you add. Using post all together makes this work seemlessly.

If I tried to work around these issues could you have another look or is that just wasted time?

Maybe the best would be so that this PR would be a reference for multiple other PRs. I will go through the PR and comment on parts that should be pushed separately. And also could comment on parts of how to change public interfaces and other stuff.

Now public interfaces are restored and GET:s and POST:s are separated.

Closing this ticket, as the main task was pushed to master in a separate PR.


Target time in timer not being displayed

Target time in timer checked, in raid doesn't show timer.

I see it works for some others not sure if this is something I can fix myself

It pulls the target time from the chat when entering ToA, or when the plugin is enabled. Can you send a screenshot of your chat with the message saying Overall time to beat: ...?
Also, are there any errors in your client.log? If you're not sure, you can upload the entire file here. (C:\Users....runelite\logs\client.log on Windows, Home/.runelite/logs/client.log on macOS).

client.log

I see... The issue lies in how I am detecting timestamps, and it is only compatible with "Precise timing" enabled. I will add support for non-precise timing, but for now you can resolve this by enabling precise timing in your OSRS settings:

Fixed in 4405f7b98dd3f636aada7228a2e32626615e39a1, but not released to plugin hub yet. I'll update this ticket again when released.

released


Add aliases for core properties

In combination with https://github.com/holepunchto/hyperbee/pull/119
It potentially allows a simpler API for replication like this:
const swarm = new Hyperswarm()
swarm.on('connection', (socket) => drive.replicate(socket))
swarm.join(drive) // Or a bee

It would always pass down { discoveryKey, findingPeers } for all building blocks like Hypercore, Hyperbee, and Hyperdrive. User should still manually call the replicate method to avoid any magic, but looks very safe to automatically handle the discovery key to find peers.

11.1.0


Keyed variant of MergeUnbounded feasable?

Hi,
we know have MergeUnbounded to merge an unbounded, growable list of streams. However it is not possible to remove streams from the list. futures_concurrency has a Keyed variant, where insert (push in MergeUnbounded) returns a Key that can be kept and passed to  remove to remove streams from the group/merge. MergeUnbounded has much better performance than StreamGroup though, especially for large numbers of streams.
Is a Keyed variant of MergeUnbounded feasable? As removal is usually not a very frequent operation (in comparison to polling for the next item), I think it'd be fine for this to involve some iteration.

Yeah I think it is! I've thought about it prior and it should be possible using the same generational slotkey idea as slotmap.


chore: add neptune proxy to config

Signed-off-by: feng-tao<EMAIL_ADDRESS>
Summary of Changes
add neptune proxy to config
Tests
What tests did you add or modify and why? If no tests were added or modified, explain why. Remove this line
Documentation
What documentation did you add or modify and why? Add any relevant links then remove this line
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes make test

cc @friendtocephalopods


ci: speed up pull request ci

Speed up the pull request CI, to give more instant feedback about the state of your PR.
The main change is to only compile for the platform the CI is running on. So skip the makefile entirely.
Here's some status screenshots about CI runtimes in the best and worst case respectively. The main effect on the runtime is the presence of rust cache. The first image is a run with an active rust cache with no changes. The second image is where the rust cache is missing. In both scenarios there's a significant improvement in the time to feedback.

Downsides:

The makefile is no longer tested out-of-the-box
This change uses more rust cache resources. Each job has its own rust cache. We'll have to see how that plays out.

Note: When trying this CI change, I tried to run the language bindings tests on Linux, that was nearly impossible, because almost always python or swift failed. It seems to be much more stable on Darwin. Issue here: https://github.com/breez/breez-sdk/issues/371


Add a frontend that shows the data in a graph.

For starters, it can be only one graph that shows the value over time. After this, we can add multiple graphs for yield, if the user holds multiple tokens, a graph per token, etc.
The only requirement I would ask, for now, a good charting library that would support many nice features, fast, and plug & play. As in you only need to open a .html file and it fetches everything with scripts. So that someone who doesn't know much programming can easily use it.

Closing because I added the feature🎊


add readme file to datasets

whenever we make a dataset, we should put a readme in the dir to say stuff like:

intended use
when it was made
what data went into it (e.g. sources)
what we're going to be using it on (e.g. rococo)

this helps us keep track of datasets and what for/where they're used, which is much better than having to remember "v2" is deployed to rococo, "v3" is on astar, etc

need one for v1


Add created by & last modified by to event

Each  page (event, person, etc) should include
Created by username on YYYY-MM-DD
Last modified by username on YYYY-MM-DD

+1

We're kind of are able to track this data down with django-reversion.


added redesign proposal for newer version of DWD

What this PR does / why we need it:
Contains a proposal for Issue #53
Which issue(s) this PR fixes:
Fixes #53
Special notes for your reviewer:
Currently this proposal only contains changes that are done for prober command that is offered by DWD. The existing Endpoint command is not covered in this version of the document. In the next iteration the renamed command (weeder) will be added.

/invite @rfranzke
/invite @ialidzhikov

Nice, thank you.

/close as the proposal is now outdated. The updated proposal with lots of other documentation will be merged to master as part of another PR


Could not find document for file

[ ] Include the log file upgrade-assistant.clef that is produced in the working directory
upgrade-assistant.clef not found.

Describe the bug
I got some endless loops while running the upgrade assistant.
For whatever reason it complains about some files in the project (also for other files like *.designer.cs).
It probably has some kind of reason, but I think it should not keep retrying.
As you can see it starts again and again.
I'm still interested to get some clue on why this is happening since it seems to be legitimate project files.
When I run rm file in other terminal window it will continue after the 4 retries.
file.cs AddUpdateView.cs...
        Microsoft.IntelliCode.Transformations.Upgrade.MauiAppCompatActivityProseUgradeTransformer
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 1
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 2
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 3
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 4
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        info: Done
        Microsoft.IntelliCode.Transformations.Upgrade.MauiUIApplicationDelegateProseUgradeTransformer
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 1
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 2
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 3
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        Retry 4
        error: Could not find document for file '/Users/developer/Projects/Apps/test-app-xamarin/Test/Views/AddUpdateView.cs' under target project workspace.
        info: Done

Further technical details

MacOS ARM64

Include the output of dotnet --list-sdks
6.0.406 [/usr/local/share/dotnet/sdk]
6.0.407 [/usr/local/share/dotnet/sdk]
6.0.408 [/usr/local/share/dotnet/sdk]
6.0.410 [/usr/local/share/dotnet/sdk]
7.0.200 [/usr/local/share/dotnet/sdk]
7.0.201 [/usr/local/share/dotnet/sdk]
7.0.202 [/usr/local/share/dotnet/sdk]
7.0.203 [/usr/local/share/dotnet/sdk]
7.0.304 [/usr/local/share/dotnet/sdk]
7.0.305 [/usr/local/share/dotnet/sdk]

Include the output of upgrade-assistant --version
<IP_ADDRESS>67

Same problem, same version:

Waiting for the entire process (takes forever when it fails in this way) to see if there's a log file to share.

I get this error when I upgrade a class library with "side-by-side project upgrade." The upgrade starts ok, then slows to a crawl as it can't find anymore files. But the problem doesn't happen with in-place upgrade. This is for 4.8 -> 7. My library has 241 files and gets stuck after about 30.

me to!

This is a known issue that someone is looking into.

I get this error when I upgrade a DLL project (VB) using the command line tool, and upgrading "in place".
My options used:
Selected options
─────────────────────────────────────────────────────────────────────────────
Source project     C:\Users\rpennenga\source\repos\MyApplication\DLL\DLL.vbproj
Target framework   .NET 6.0 (Supported until November, 2024)
Upgrade type       Inplace

My upgrade-assistant version is the same as @jtorvald  -
>upgrade-assistant --version
<IP_ADDRESS>67
I'm porting from 4.7.2 to .Net Core 6.


[CSL-1298] Fix misused 'recoveryCommGuard'

Previously 'recoveryCommGuard' was totally misused in «on new slot workers».
Specifically, it was checking whether we are doing recovery only once: before
the worker is actually launched. But we want to do it for each tick of the
worker.


"Can't find file" error messages when reimporting a gltf scene

Tested versions
v4.3.dev6.official [89850d553]
System information
Godot v4.3.dev6 - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
Reimporting a gltf file throws a "Can't find file" error message for each texture that it has
https://github.com/godotengine/godot/assets/60579014/b7a8a5be-3021-46f2-bf22-f8b74de88d64
It's possible that it's because textures are getting rewritten, but since all of the files are still there after re-export it shouldn't throw error messages
Steps to reproduce
Re-export from MRP
Minimal reproduction project (MRP)
https://drive.proton.me/urls/3RTJBP67YG#kLI0frQNo6Ga

This happens on 4.2.2. ...I've got used to ignoring it.


VM Subprovider Squelching errors

I'm finding that this block squelches errors. Also, it's normalizing errors into RPC error format (result.error = ...), which is done by the engine. I think we should remove the block in favor of these other minor changes.

:tada: :balloon: :dancer:

@tcoulter
The problem is that geth also squelches errors, returning just "0x".
Though in this case I think we should deviate and pass the failure back up as an error.


[ANDROID] REST API integration of Login and Registration

The new REST API is written. We should integrate the LoginRegistration activity with new API.

Closed via 989a2704f0a342a968ea7f9d8b815fc65f7a8613


FixedFormatter

This error keeps appearing:
/usr/local/lib/python3.10/dist-packages/MutTui/plot_spectrum.py:102: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels([""] * len(mutations))

Thanks @jaresoles I think this is a warning from matplotlib, I've now updated the plotting functions to remove it. It wasn't an error so any previous output files shouldn't be affected


Change slugify for the tags (valid CSS)

I changed a bit the slugify to replace all the spaces in the tags by "-".
By default the slugify fill blanks with "+" and that behavior generate invalid css class.
With this changes we have proposer css class for the categories like : my-category

Hey, folks! Telescope has changed a lot in the past months, and there is a new React-based version, Telescope Nova (intro video). If you know Crater, it runs on the latest version.
The Legacy version is no longer supported. I'm closing this PR. By the way, we are using now NPM speakingurl which does what this PR intended 🚀
I invite you to check the new version, it's awesome!
Happy hacking! 🚀
Ps: by the way, don't hesitate to join the Slack to ask any question, you are welcome! 👍


Update Row/Col Data in SpectreTable

I see in the demo using Format-SpectreTable and Invoke-SpectreLive you can add data to a table with Add-SpectreTableRow.
Is there a way to update data in a row and column?

You can but not via a powershell cmdlet yet.
You can access it directly from the spectre console extension method like
this:
[Spectre.Console.TableExtensions]::UpdateCell($table, $rowIndex,
$columnIndex, “new value”) > $null
The method signature inside spectre expects that new value to be one of two
types:
A string so you’ll need to ToString() whatever you put in there.
Or a renderable item for new value like the variable $newValue from
‘$newValue = Write-SpectreHost “[red]hello[/]” -PassThru’
On Wed, 11 Sep 2024 at 10:08 PM, Doug Finke @.***>
wrote:

I see in the demo using Format-SpectreTable and Invoke-SpectreLive you can
add data to a table with Add-SpectreTableRow.
Is there a way to update data in a row and column?
—
Reply to this email directly, view it on GitHub
https://github.com/ShaunLawrie/PwshSpectreConsole/issues/47, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADEMYIR45S7CQUIZLOZ7LGLZWAJADAVCNFSM6AAAAABOATLVQKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTSMRXG4YDEOI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

or with renderables

Great, thanks for the clues. Time to dig a little deeper on spectre ext iteself.


N_PIXELS limit

Any value over 250 throws, not 255:
pi@raspberrypi:~/src/audio-reactive-led-strip/python $ sudo python visualization.py
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Traceback (most recent call last):
  File "visualization.py", line 344, in <module>
    microphone.start_stream(microphone_update)
  File "/home/pi/src/audio-reactive-led-strip/python/microphone.py", line 13, in start_stream
    callback(stream)
  File "visualization.py", line 218, in microphone_update
    led.update()
  File "/home/pi/src/audio-reactive-led-strip/python/led.py", line 140, in update
    _update_pi()
  File "/home/pi/src/audio-reactive-led-strip/python/led.py", line 102, in _update_pi
    if np.array_equal(p[:, i], _prev_pixels[:, i]):
IndexError: index 250 is out of bounds for axis 1 with size 250

pi@raspberrypi:~/src/audio-reactive-led-strip/python $ grep -ir N_PIXELS *
config.py:N_PIXELS = 251

I have a 5m strip with 300 pixels I'd quite like to get working

The Pi should be able to run any number of pixels. 251 pixels throws an error because it is an odd number of pixels. What happens if you use 252?

Thanks - 300 pixels are working for me.


pretrained_model : do you have the MVXFasterRCNN pretrained_model with hv config?

Hi, you have provided dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class_20200621_003904-10140f2d.pth , but do you have the prertrained_model  : MVXFasterRCNN with hard voxel? Could you please provide a copy?

We currently do not provide that config. We may support this in the future.

Does it mean that all the voxelization methond is dynamic voxelization even if the config is hv? Or you have both the hv and dv ,but you dont train the MVXNet with hv config. If i change the config from dv to hv and train it on my machine ,can i get the MVXNet with hv config? I just want to save the trainging time so i asked if you have the pretrainedmodel with hv config.


Poor performance of building index for binary vectors

Deploy milvus 2.1.4 and run this script:
import numpy as np
import pandas as pd
import time
from pymilvus import (
    connections,
    utility,
    FieldSchema,
    CollectionSchema,
    DataType,
    Collection,
)
from bitstring import BitArray
from random import randint

fp_size = 8192

milvus_host = "<IP_ADDRESS>"
milvus_port = "19530"

collection_name = "emols_fp_1024_test"

print("*** Connect to milvus ***")
connections.connect("default", host=milvus_host, port=milvus_port)

has = utility.has_collection(collection_name)
print(f"Does collection exist in Milvus: {has}")

if not has:
    print("*** Create collection ***")
    fields = [
        FieldSchema(name="id", dtype=DataType.INT64, is_primary=True, auto_id=True),
        FieldSchema(name="smiles", dtype=DataType.VARCHAR, max_length=200),
        FieldSchema(
            name="morgan_fingerprint",
            dtype=DataType.BINARY_VECTOR,
            dim=fp_size,
            is_primary=False,
        ),
    ]
    schema = CollectionSchema(fields, collection_name)
    ligands_collection = Collection(collection_name, schema, consistency_level="Strong")

    print("Collection created")
else:
    ligands_collection = Collection(collection_name)
    print(ligands_collection)

chunk_size = 100000
smiles = ["test_string"] * chunk_size
for i in range(0, 240):
    print("i", i)
    fps = [BitArray([randint(0, 1) for i in range(1024)]).bin] * chunk_size
    fps_bytes = list(map(lambda p: bytes(p, encoding='utf-8'), fps))
    ligands_collection.insert([smiles, fps_bytes])

print("*** Load collection ***")
ligands_collection.load()

print("*** Create index TANIMOTO BIN_IVF_FLAT ***")
index = {
    "index_type": "BIN_IVF_FLAT",
    "metric_type": "TANIMOTO",
    "params": {"nlist": 1024},
}

ligands_collection.create_index("morgan_fingerprint", index)
print("index finished")

info = utility.get_query_segment_info(collection_name=collection_name)
print(info)
print("segments count", len(info))

pre = 0
start = 0
while True:
    prog = utility.index_building_progress(collection_name=collection_name)
    print(prog)
    if prog['indexed_rows'] != pre:
        end = time.time()
        print("index a segment cost", (end-start), "s")
        start = time.time()
        pre = prog['indexed_rows']

    time.sleep(3)

This script insert 24M binary vectors(8192 dim) into milvus, and build IVF_FLAT index with nlist=1024.
After insert is finished, there are 120 segments generated, and each segment has about 200000 rows.
The index process is very slow. building an index for a segment cost 5 minutes. seems the index process for binary vector is single-thread(only one CPU is busy).

/assign @cydrain


Wrong grammar

link to the page that is wrong
Iq gay.md
the correct grammar
it should be iq is very gay. D

ok imma fix it right now

fixed


there is a difference between $request and request()

Laravel Version: 9.x
PHP Version: 8.1
Database Driver & Version:

Description:
when you attach something to $request , you dont have access to it when you call request()->get('something');
Steps To Reproduce:
There is a wired bug in the request.
I fetch something inside a policy class (which is loaded inside a FormRequest class)
imagine i have to:
$chat = Chat:first();

and then inside my services i need to again get this $chat,  but because i have it in the first place, i do this inside policy [here we dont have access to $request, so i used request() helper]:
request()->request->add(['chat' => $chat]);

or
request()->merge(['chat' => $chat]);

the final result is the same (both buggy)
and inside my services, or in controller, etc, i do this:
$chat = $request->get('chat');    // this will be null
$chat = request()->get('chat') // this one has the actual chat model

I believe the issue is that you're using $request() as a function call instead of $request as a variable, in the first (buggy) example.

I believe the issue is that you're using $request() as a function call instead of $request as a variable, in the first (buggy) example.

no, the bug is there, give it a try!
i fixed the typo.

+1.  I also have this bug. A workaround its a passing of the current $request to the service.

Can you please provide a GitHub repository to demonstrate your issue.
You can use this command, if you have the Laravel Installer installed locally:
$ laravel new bug-report --github="--public"

Right now, I could not reproduce. Steps I did:
$ laravel new issue-42765
$ cd issue-42765
$ php artisan make:policy UserPolicy --model=User
$ php artisan serve

Then edit ./routes/web.php to:
<?php

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

// avoid setting up a database
Auth::login(User::factory()->makeOne()->forceFill(['id' => 1]));

Route::get('/', function (Request $request) {
    return [
        $request->get('chat'),
        request()->get('chat'),
        request('chat'),
    ];
})->can('viewAny', User::class);

And change UserPolicy@viewAny method to:
public function viewAny(User $user)
{
    request()->merge(['chat' => now()->timestamp]);

    return true;
}

Lastly, access http://<IP_ADDRESS>:8000 , this is the output:
[1654956237,1654956237,1654956237]

As you can see, all three access methods have the same output.
I tried with request()->request->add(['chat' => now()->timestamp]); inside the Policy and it also output the expected results.
One note: avoid accessing the Request instance outside of routes, Controllers, and Middleware, basically avoid accessing it outside your ./app/Http or ./routes folders. If, for example, you want to check that policy in a job, after login in a user manually as I did above, trying to access the request object might yield an unexptected result.

@rodrigopedra
Idk how the OP got this bug, but personally I get it when i use custom form request class.
All you need its replace the base Request class to the custom form request.
E.x: php artisan make:request CustomRequest, after that replace Request in your route to the CustomRequest.
You will get input [1654956237,null,null].

Can you please provide a GitHub repository to demonstrate your issue.
You can use this command, if you have the Laravel Installer installed locally:
$ laravel new bug-report --github="--public"

Right now, I could not reproduce. Steps I did:
$ laravel new issue-42765
$ cd issue-42765
$ php artisan make:policy UserPolicy --model=User
$ php artisan serve

Then edit ./routes/web.php to:
<?php

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

// avoid setting up a database
Auth::login(User::factory()->makeOne()->forceFill(['id' => 1]));

Route::get('/', function (Request $request) {
    return [
        $request->get('chat'),
        request()->get('chat'),
        request('chat'),
    ];
})->can('viewAny', User::class);

And change UserPolicy@viewAny method to:
public function viewAny(User $user)
{
    request()->merge(['chat' => now()->timestamp]);

    return true;
}

Lastly, access http://<IP_ADDRESS>:8000 , this is the output:
[1654956237,1654956237,1654956237]

As you can see, all three access methods have the same output.
I tried with request()->request->add(['chat' => now()->timestamp]); inside the Policy and it also output the expected results.
One note: avoid accessing the Request instance outside of routes, Controllers, and Middleware, basically avoid accessing it outside your ./app/Http or ./routes folders. If, for example, you want to check that policy in a job, after login in a user manually as I did above, trying to access the request object might yield an unexptected result.

attached a git hub repo with the mentioned bug in the main post

Thanks for the clarification @Ham3D and @igorgaming . It wasn't clear at first this only happened when using a form request.
I sent PR #42770 to propose a fix to this issue.

so the problem still exists, @taylorotwell  Closed #42770 , is there any work around this problem ?

@Ham3D
You can try adding this to your FormRequest's prepareForValidation method:
protected function prepareForValidation()
{
    $this->container->instance('request', $this);
}

Unfortunately this should only work for a single FormRequest.
Adding the following to your AppServiceProvider's boot method would work for all Form Requests, only if you use the can middleware instead of checking the policy on the FormRequest's authorization method.
public function boot()
{
    $this->app->afterResolving(FormRequest::class, function ($request, $app) {
        $app->instance('request', $request);
    });
}

Reason is that the FormRequest's authorize method is called before the ->afterResolving(...) callbacks.

$request and request() are not the same and this is expected. See the answer by Taylor here: https://github.com/laravel/framework/pull/42770#issuecomment-1156818638


Possible to update all widgets simultaneously?

Thanks for making this useful wrapper. I'm implementing a spectrum analyzer with 16 vbar widgets and all of them update individually after length adjustments in a loop, resulting in a very slow refresh. Would be very useful to have the capability to update them manually all at once. Thanks!

The first thing to do is confirm that the hardware is fast enough. What LCD device are you using?
For example, while not a lcdproc-compatible device, the ColdTears LCDSysInfo unit is a good example for demonstrating the issue because it does non-monospace font rendering on a bult-in microcontroller and it's flat-out impossible to do atomic screen updates or to update faster than about 200ms per API call.
(I'm not sure, but I may also have another LCD somewhere that's old enough for RS232 bitrate issues to limit the update rate.)

The LCd is hd44780 connected to RPi model B. I'm OK with whole screen refresh rates of 200-250ms but what I'm getting instead is that each of the 16 vbar widgets are updated at that rate sequentially, resulting in x16 slower animation...

Directly to the RasPi's expansion header, I'm guessing?
If you're willing to send me your code, I have an HD44780 at the heart of my USB-attached drive bay LCD and I could test to see if something in the RasPi or its drivers is a significant contributor to the latency.

Yes, via i2c. Sure, below's the code. Appreciate your help!
#!/usr/bin/env python

from lcdproc.server import Server

def main():

    lcd = Server(debug=False)
    lcd.start_session()

    screen = lcd.add_screen("Screen1")
    screen.set_heartbeat("off")
    screen.set_duration(10)

    screenHeight = lcd.get_server_info()['screen_height']
    screenWidth = lcd.get_server_info()['screen_width']
    cellHeight = lcd.get_server_info()['cell_height']
    cellWidth = lcd.get_server_info()['cell_width']

    totalHeight = screenHeight * cellHeight
    vBarWidgets = []
    for xs in range(1, screenWidth + 1):
        vBarWidgets.append(screen.add_vbar_widget("vBarWidget" + str(xs), x = xs, y = 2, length = totalHeight))

    number = 0

    try:
        while True:
            for vBarWidget in vBarWidgets:
                vBarWidget.set_length(number % totalHeight)

            number += 1
            #time.sleep(0.1)

    finally:
        lcd.del_screen(screen.ref)

# Run

if __name__ == "__main__":
    main()

It may be better to write a barGraphWidget that combines the widget_set commands from all the vBarWidget.set_length into a newline separated string to send as a single server request. The lcdproc
server polls its' socket in a timed loop at 32Hz so it is impossible to update faster than that.

Sorry for not responding. The last couple of days have been a mess and it wasn't helped by my inability to track down the lcdproc module you're using.
("lcdproc" on PyPI seems to have the same API, but it gives me AttributeError: 'Server' object has no attribute 'get_server_info'and I haven't been able to find time to move beyond that.)

The package on PyPI is out of date see: https://github.com/jinglemansweep/lcdproc

@emteejay
Thanks for pointing me in the right direction. A single server request like you suggested did the trick, however the program crashes after a while with
socket.error: [Errno 32] Broken pipe
@ssokolow
You have to enable i2c modules on RPi + configure LCDd.conf properly and it should work.
http://www.stuart-taylor.net/adafruit-i2c-rgb-16x2-lcdkeypad-raspberry-pi/

Are you reading all the replies? Every command in the request should return a success response.

Yes, I'm getting "success" responses right until the crash:
success

success

success

success

success

Traceback (most recent call last):
  File "main.py", line 41, in <module>
    main()
  File "main.py", line 36, in main
    lcd.del_screen(screen.ref)
  File "/home/pi/projects/LCDaudio/lcdproc/server.py", line 90, in del_screen
    self.request("screen_del %s" % (ref))
  File "/home/pi/projects/LCDaudio/lcdproc/server.py", line 45, in request
    self.tn.write((command_string + "\n").encode())
  File "/usr/lib/python2.7/telnetlib.py", line 280, in write
    self.sock.sendall(buffer)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 32] Broken pipe

here is the updated code:
#!/usr/bin/env python

from lcdproc.server import Server
import time

def main():

    lcd = Server(debug=False)
    lcd.start_session()

    screen = lcd.add_screen("Screen1")
    screen.set_heartbeat("off")

    screenHeight = lcd.get_server_info()['screen_height']
    screenWidth = lcd.get_server_info()['screen_width']
    cellHeight = lcd.get_server_info()['cell_height']
    cellWidth = lcd.get_server_info()['cell_width']

    totalHeight = screenHeight * cellHeight
    vBarWidgets = []
    for xs in range(1, screenWidth + 1):
        vBarWidgets.append(screen.add_vbar_widget("vBarWidget" + str(xs), x = xs, y = 2, length = totalHeight))

    number = 0
    serverRequest = ""
    try:
        while True:
            for vBarWidget in vBarWidgets:
                serverRequest += "widget_set %s %s %s %s %s\n" % (screen.ref, vBarWidget.ref, vBarWidget.x, vBarWidget.y, number % totalHeight)
            number += 1
            time.sleep(0.1)

    finally:
        lcd.del_screen(screen.ref)

# Run

if __name__ == "__main__":
    main()

@emteejay
Ahh. That makes sense. Sorry I couldn't get around to helping before you solved your problem. The last few days have had me out and about far more than usual.
@player500
I'm not on a RasPi. I offered to try it on an hd44780-based USB device that my desktop LCDproc instance is configured to use in order to rule out the RasPi's i2c as a significant source of delay.


How to start phased release using spaceship?

Question Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Question Subject
I want to know how to start phased release using spaceship?
Question Description
I found this method Spaceship::TunesClient.release!, but it seems not for phased release.
Maybe I could add implementation below to Spaceship::TunesClient?
def start_phased_release!(app_id, version)
  ...
  r = request(:post) do |req|
    req.url("ra/apps/#{app_id}/versions/#{version}/phasedRelease/state/STARTED")
    req.headers['Content-Type'] = 'application/json'
    req.body = app_id.to_s
  end
  ...
end

def pause_phased_release!(app_id, version)
  ...
  r = request(:post) do |req|
    req.url("ra/apps/#{app_id}/versions/#{version}/phasedRelease/state/PAUSED")
    req.headers['Content-Type'] = 'application/json'
    req.body = app_id.to_s
  end
  ...
end

🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.15.4

Ruby
2.6.3

Bundler?
false

Git
git version 2.24.3 (Apple Git-128)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.15.4 (19E287)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
11.5

System Locale

Error

No Locale with UTF8 found 🚫

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.148.1
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

unicode-display_width
1.6.0

terminal-table
1.8.0

plist
3.5.0

CFPropertyList
2.3.6

public_suffix
2.0.5

addressable
2.7.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.7.0

tty-cursor
0.7.0

tty-spinner
0.9.1

babosa
1.0.3

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.73.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.13.1

fastimage
2.1.7

gh_inspector
1.1.3

json
2.1.0

mini_magick
4.9.5

multi_xml
0.6.0

rubyzip
1.3.0

security
0.1.3

xcpretty-travis-formatter
1.0.0

dotenv
2.7.5

bundler
1.17.3

naturally
2.2.0

simctl
1.6.6

jwt
2.1.0

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mini_mime
1.0.2

multi_json
1.14.1

signet
0.12.0

memoist
0.16.0

os
1.0.1

googleauth
0.9.0

httpclient
2.8.3

google-api-client
0.38.0

google-cloud-env
1.3.0

google-cloud-core
1.4.1

digest-crc
0.4.1

google-cloud-storage
1.16.0

emoji_regex
1.0.1

jmespath
1.4.0

aws-partitions
1.287.0

aws-eventstream
1.0.3

aws-sigv4
1.1.1

aws-sdk-core
3.92.0

aws-sdk-kms
1.30.0

aws-sdk-s3
1.61.1

nanaimo
0.2.6

colored2
3.1.2

claide
1.0.3

atomos
0.1.3

xcodeproj
1.15.0

faraday
0.17.3

forwardable
1.2.0

logger
1.3.0

stringio
0.0.2

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

strscan
1.0.0

date
2.0.0

fileutils
1.1.0

etc
1.0.1

io-console
0.4.7

zlib
1.0.0

libxml-ruby
3.1.0

rexml
3.1.9

psych
3.1.0

mutex_m
0.1.0

webrick
1.4.2

generated on: 2020-05-27

Hi @TragedyStar as far as I know there is currently no implemented of phased releases. If you could add a pull request, it would be great!


https://ftp.gnu.org/gnu/gmp/

https://github.com/Chia-Network/chiavdf-dos/actions/runs/5391231884/jobs/9787759132?pr=1#step:6:501
  curl: (7) couldn't connect to host
    (stdin): error reading member header.
  tar: Child returned status 1
  tar: Error is not recoverable: exiting now

I'm guessing this is 'transient', but been happening since yesterday so this is a workaround anyways.  I expect we trust the GNU mirror as much as GMP directly.


[UI Enhancement]: Enhance the UI for the food ordering website

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Currently the menu is all cards lined up, by adding a hovering effect on the menu cards, it can increase the interactivity for the user.
The card can be made to pop out on hovered.

Use Case
It would improve not only the interactivity for the user, but also increase the overall appeal of the UI of the website.
Please assign this issue to me, I would love to work on this!
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I'm a SSOC'24 contributor
[X] I have starred the repository

Assigned! @meetalik8
Make sure to attach before & after screenshots in your PR. Also, star the repo before working on it. While creating your PR, ensure you pull all existing changes beforehand to avoid conflicts.
Happy open-source contributing!

@heysagnik hello, can you label this under gssoc with levels please?


Contract of RingBuffer.read()

Is it expected that RingBuffer.read(Handler, 1) will always return a message if it has been written to the RingBuffer?
It appears as though RingBuffer.read(Handler, 1) will return 0 messages when a PADDING_MSG_TYPE has been written.
If this is expected I would propose adding some Javadoc clarifying the contract?

The doc states:
    /**
     * Read as many messages as are available from the ring buffer.
     *
     * @param handler to be called for processing each message in turn.
     * @return the number of messages that have been processed.
     */
    int read(MessageHandler handler);

    /**
     * Read as many messages as are available from the ring buffer to up a supplied maximum.
     *
     * @param handler           to be called for processing each message in turn.
     * @param messageCountLimit the number of messages will be read in a single invocation.
     * @return the number of messages that have been processed.
     */
    int read(MessageHandler handler, int messageCountLimit);

In the case you describe no messages are processed by the handler, so 0 is returned.
The API does not commit to only returning 0 when buffer is empty, so this is within spec.
I agree that many users may find it confusing. Please suggest alternate wording?

"Is it expected that RingBuffer.read(Handler, 1) will always return a message if it has been written to the RingBuffer?"
The answer would seem to be no. It will eventually return it.

Also note that the padding message is not the issue, but the symptom, e.g.:
https://github.com/real-logic/Agrona/blob/428e6dba3ff15ea9f0e5db6fab6a74ccbf378cb9/agrona/src/main/java/org/agrona/concurrent/ringbuffer/OneToOneRingBuffer.java#L192
The reason the read terminates is because it has hit the end of contiguous memory, or the edge of the ring buffer. This is also where you'd typically find padding, but not always necessarily.

@mjpt777 Thanks for the update that is now very clear.


test(registry): add tests to registry

Current coverage is 11.64% (diff: 100%)

Merging #202 into master will increase coverage by 1.32%

@@             master       #202   diff @@
==========================================
  Files            49         49
  Lines          3460       3460
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            357        403    +46
+ Misses         3057       3005    -52
- Partials         46         52     +6

Powered by Codecov. Last update e6d96b7...060c4d7


Fixed message not being passed to client when capturing an exception

The raven client expects the message to be at the first level of the $data array when passing an exception.
see https://github.com/getsentry/sentry-php/blob/master/lib/Raven/Client.php#L795

Merged as 22b92c7 in 1.x & master branches, thanks!


Swagger-Editor Error

Hi @Js-sz did you mean the swagger.json file in this repo contains errors?

it doesn't matter, i export swagger.json from bitmex, it contains errors too;

are you chinese?

it doesn't matter, i export swagger.json from bitmex, it contains errors too;

Do you think there's anything I can do in this library?

if you know trade，you can do something about quant strategy.
or you can put  binance-async-rs(spot) ，biemex-rs(future) , deribit(option) together.

or do this .

or do like this : https://github.com/nntaoli-project/GoEx
rust is very safe and efficient.so it is very proper and promising

@Js-sz I think a universal and multi-platform trading library is not the scope of this project.


CppDepend is updated regularly

[ ] I have not changed the README.md directly.

Please read https://github.com/analysis-tools-dev/static-analysis/pull/1272#issuecomment-1562657363


Empty .po files

Some of the .po files in the /locale/ directory is empty, containing only the header, while translation is ready on Transifex. For example hu, hr and zh_TW are affected.
For example look at the Hungarian .po: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/locale/hu/LC_MESSAGES/sphinx.po
and Transifex (translated a year ago): https://app.transifex.com/readthedocs/sphinx-rtd-theme/language/hu/

Thanks for reporting this, looks like a potentially long-standing problem in the tooling.

I can see in our .tx/config that we are using the old Transifex client. API access was switched off at some point in 2022.
The new client is easy to upgrade to, it's described here: https://developers.transifex.com/docs/cli
No matter if using the old client with some API breakage caused the empty .po files, we need to switch to the new Transifex client. Using the old one doesn't work anymore.
I switched Transifex client on another project recently, and I used the Docker-based recipe since I don't like downloading unsigned, unhased binary blobs and executing them locally :innocent: But the Docker image worked well: https://github.com/transifex/cli#running-from-docker-beta


模型加载成功，但是发送会报错，帮忙看看

etting CPU quantization kernel threads to 24
Using quantization cache
Applying quantization to glm layers
The dtype of attention mask (torch.int64) is not bool
Running on local URL:  http://<IP_ADDRESS>:7862
To create a public link, set share=True in launch().
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/gradio/routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "/opt/conda/lib/python3.8/site-packages/gradio/blocks.py", line 1075, in process_api
result = await self.call_function(
File "/opt/conda/lib/python3.8/site-packages/gradio/blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "/opt/conda/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/opt/conda/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/opt/conda/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "app.py", line 215, in predict
resp = knowladge_based_chat_llm.get_knowledge_based_answer(
File "app.py", line 127, in get_knowledge_based_answer
vector_store = FAISS.load_local('faiss_index', self.embeddings)
File "/opt/conda/lib/python3.8/site-packages/langchain/vectorstores/faiss.py", line 449, in load_local
index = faiss.read_index(
File "/opt/conda/lib/python3.8/site-packages/faiss/swigfaiss_avx2.py", line 10206, in read_index
return _swigfaiss_avx2.read_index(args)
RuntimeError: Error in faiss::FileIOReader::FileIOReader(const char) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open faiss_index/index.faiss for reading: No such file or directory

请问你解决了吗，我也是一样的错误

没有点知识库文件向量化这个button


Options Support

Maybe will add Option Support
-- Engine  - done
-- Max_Tokens
-- Temperature
-- Custom initial prompt
-- Polly Neural or Standard - done
-- Polly Voices
-- Copy Chat - done
-- Others

Example response from API:
{"id":"",
"object":"text_completion","created":1675195893,
"model":"text-davinci-003",
"choices":[{"text":"","index":0,"logprobs":null,"finish_reason":"stop"}],
"usage":{"prompt_tokens":54,"completion_tokens":10,"total_tokens":64}}


Add method on _query.dart to support regexp feature

Hello,  @isoos.
I'm one of the users of this library, it's really useful so I want to say thank you to you:)
On this PR, I added a code to support the features below.

Regexp query on ElasticSearch

I need it on my project, but there is no way to use this feature via this library.
So please confirm my PR and concern to merge it(or give me a comment to fix some points)
Thank you

@sota1235 this looks good, could you please also update the changelog and the pubspec.yaml (with a version bump)?

sure, wait a moment plz... 🙏

thanks, published as 0.3.6

thank you so much!


[stable/openebs] fix localprovisioner replica

Resolve issue #16252
Signed-off-by: Spencer Gilbert<EMAIL_ADDRESS>What this PR does / why we need it:
Fix bug in template file, allow users to scale provisioners separately
Which issue this PR fixes

fixes #16252

Special notes for your reviewer:
@kmova @prateekpandey14
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @kmova

/ok-to-test

/lgtm
/approved


feat: add meta inspector command

Changelog category :

New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...
Documentation entry for user-facing changes

[ ] Documentation is written (mandatory for new features)

Hi @skyoct , thank you for your MR. Is this ready to merge?


Add Effective Dimension Runtime Program

What should we add?
The goal of this issue is to track the development of the effective dimension runtime program, as described in epic https://github.com/Qiskit/qiskit-machine-learning/issues/318. The latest progress on this issue can be found in my personal fork:  https://github.com/ElePT/qiskit-machine-learning/tree/eff-dim, under qiskit_machine_learnig/runtime

Although the title is given as Effective Dimension Runtime Program this will just add the Client here right - the server side Program being elsewhere.

Runtimes are being replaced with Session. See https://github.com/Qiskit/qiskit-ibm-runtime/ for more details.


Fixes searchFieldByClass looping forever and incorrect cache keys

This addresses two issues in the ReflectionUtils#searchFieldByClass method:

It could enter an infinite loop if the correct field isn't found in clazz
It used searchFor as a key twice so the cachedField was always null

Reaching the infinite loop actually isn't possible; testing for that case is already provided: https://github.com/TCPShield/RealIP/blob/d24a6a1a99103c91434b55014d0ffdfad14f197d/src/test/java/net/tcpshield/tcpshield/ReflectionUtilsTest.java#L52
Cache issue addressed in commit e859a1c.

Reaching the infinite loop actually isn't possible; testing for that case is already provided:
https://github.com/TCPShield/RealIP/blob/d24a6a1a99103c91434b55014d0ffdfad14f197d/src/test/java/net/tcpshield/tcpshield/ReflectionUtilsTest.java#L52
Cache issue addressed in commit e859a1c.
Thanks for reaching out! :)

That test only tests one specific case: a class that implicitly extends Object. However, if clazz extends another class explicitly (such as the NetworkManager class for the ProtocolLib version which extends SimpleChannelInboundHandler) then ReflectionUtils#searchFieldByClass will keep looping forever if it cannot find the field in the first two classes. This happens because currentClass will first be equal to clazz (=NetworkManager) and if the field is not found inside of this class then it will keep checking clazz.getSuperClass() (=SimpleChannelInboundHandler) forever.
Now I highly doubt that this will cause issues any time soon because this can (currently) only happen with the ProtocolLib implementation and then only if the SocketAddress field in that class is moved to another class / wrapped inside of another object which will most likely never happen. The other implementations don't call that method using a class that has an explicit superclass or don't make use this method at all.
So even though it is highly unlikely it is definitely possible to reach an infinite loop.

Actually, that possibility wasn't as unlikely as you said. Although I am still not aware why, sometimes the server uses NetworkManagerServer instead of NetworkManager. Your PR just fixed a bug, thanks a lot 👍


Pre-trained word embeddings

Has the loading of pre-trained word embedding (i.e., the one trained from Google News) been included in the code?

Hey @AngusGLChen did you find the answer to your question?

@abhiML I don't think so.

@abhiML if you want to add them, add a line below this one:
self.embed.weight.data = torch.Tensor(W).clone()
where W is a numpy matrix of shape VxD, and make sure the embedding indexes align with the ones being used to encode the data.

@AngusGLChen on the code, the author uses the random initialization word vector that comes with nn.Embedding. If you want to use your own pre-trained word vector,
self.embed.weight.data.copy_(weight_matrix)
where weight_matrix is your own word vector matrix.


Make form for submitting ideas

Any kind of submission form will do :) Use your creativity and put the form under "submit" section in index.html
Make sure to read through the README of the repo :)

@CharmaineLee : So this form has to be created using typeform.com right ?

@vivex Yeah sure that would work. Feel free to make a Typeform account for the Internet Wishlist. I can definitely change the password for it later on! :)

any other suggestion than typeForm ?

@vivex I believe a form connected to Google Sheets / Google Forms could be another way!

I will like to work on this issue


Remove redundant public modifier on interface methods

Hello,
I was reading the code base and realized that some interface methods were unnecessarily marked public.
Cheers.

Hi @Amokrane, good catch! Reopening as #538 to merge master and run tests with our api keys.


Update sbt-release to 1.0.11

Updates com.github.gseitz:sbt-release from 1.0.10 to 1.0.11.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a nice day!

Codecov Report

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

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   97.25%   97.25%
=======================================
  Files          23       23
  Lines         800      800
  Branches       64       64
=======================================
  Hits          778      778
  Misses         22       22

Continue to review full report at Codecov.

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


clamav: v1.0.1 (Outdated) → v1.4.1

Tests: Ran it multiple times and is already present in NisOS 24.11
Package Information

Package name: clamav
Latest released version: 1.4.1
Current version on the unstable channel: 1.4.1
Current version on the stable/release channel: 1.0.1 (For NixOS 22.11)

Changes: Minor changes so Latest version works in 22.11 release
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Maintainer Ping
@robberer @qknight @globin

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

unsupported release, please upgrade to 24.11


build_command can not be set to False

The problem
Setting build_command to False is not working.
I already have a /dist folder which I want to keep. I also don't want to push to pypi.
Seems like semantic-release release trying to run the command false.
Expected behavior
Setting build_command to False should disable build.
Additional context
setup.cfg
[semantic_release]
branch = main
build_command=false
upload_to_pypi=false
remove_dist=false
version_pattern =catalogs/mycatalog/catalog/metadata.json:\"version\": "(\d+\.\d+\.\d+)"

logs
Bumping with a major version to 9.0.0
Pushing new version
Building distributions
Running false
error: Encountered a bad command exit code!
error:
error: Command: 'false'
error:
error: Exit code: 1

Setting build_command to an empty string should disable building. You could alternatively set upload_to_release to false.
https://github.com/relekang/python-semantic-release/blob/c07a440f2dfc45a2ad8f7c454aaac180c4651f70/semantic_release/dist.py#L12-L16
The bug here is that should_build() checks for a falsy value, but the string "false" is actually truthy.


Fix info box not cleared when Taxa not selected.

Fixed: iNaturalist info box not cleared when Taxa not selected.
Steps to Reproduce:

Select a valid taxa ID in the "Taxa Name" drop-down. Notice that its photo and species name get loaded in the bottom left corner.
In the "Taxa Name" drop-down, enter an invalid taxa ID, such as "9999999999". A pop-up will appear indicating that the taxa is not valid and annotations cannot be loaded. However, the previous taxa from step 1 still appears in the bottom left.

Fix: The iNaturalist info box now correctly clears when an invalid taxa ID is entered.

Everything working correctly! nice catch


MM-32342 Remove old sidebar

Removing the old sidebar lets us also remove a bunch of now-unused logic, preferences, and config settings from the app as well. I've tried to call out the interesting ones below, and everything else should be visible in the commit logs.
Ticket Link
https://mattermost.atlassian.net/browse/MM-32342
Release Note
Removed legacy channel sidebar

For reviews:

@nevyangelova and @devinbinnie - Could you focus on the actual sidebar code?
@BenCookie95 - Could you focus on the last few commits for removing System Console code and the final config-related stuff?

If there's CSS that's only used by the old sidebar, we can remove that, but I'd rather not get into too much more cleanup since this is already so large. I probably went a bit overboard with what I included in here to begin with.

Good catch. I know some of this was due to using a case sensitive search, but I don't know how I missed some other ones.

@hmhealey there is one error I am seeing after re-testing failures from cypress test run

One more thing I just noticed - If a user has mention badge on the channel and is removed from that channel by another user, the channel is still available on the sidebar for them, just mentions get removed.

@jgilliam17 I've fixed the error you encountered with the channel switcher. I can repro the second bug you found on mysql.test, so I'll file a separate ticket for that

/cherry-pick cloud

Cherry pick is scheduled.


[Menu] Size variations fail if SUI base sizes are changed

Can't provide a JSFiddle easily since I would need to provide a custom build of Semantic UI, but here goes:
If I change these variables in globals
/* This is the single variable that controls them all */
@emSize   : 14px;

/* The size of page text  */
@fontSize : 14px;

both to 16px (for example), then this menu element

...

is actually bigger than this menu:

...

+1

It looks like the offending lines are in the default theme menu.variables:
/* Resize large sizes */
@mini: @11px;
@tiny: @12px;
@small: @13px;
@large: @15px;
@big: @16px;
@huge: @17px;
@massive: @18px;

/* Sizes */
@miniWidth: 9rem;
@tinyWidth: 11rem;
@smallWidth: 13rem;
@mediumWidth: 15rem;
@largeWidth: 18rem;
@bigWidth: 20rem;
@hugeWidth: 22rem;
@massiveWidth: 25rem;

I think this bug may be solved by removing these lines.


Text Color (ncolor) always None in pdfs

Hello everyone,
Thank you in advance for this great project. I'm trying to extract the text color from a PDF File, but i'm not able to reach it. In the XML version the variable "ncolor" is always None. On the other hand, in the HTML version there is not a font color attribute.
I'm creating the files with the following command :
extract_text_to_fp(fin, output_string, laparams=LAParams(), output_type='xml', codec=None)
extract_text_to_fp(fin, output_string, laparams=LAParams(), output_type='html', codec=None)
I've tried to modify the code to export the color to the HTML file using this thread https://github.com/pdfminer/pdfminer.six/issues/337 but the item.graphicsstate.ncolor variable is always None.
Do you have some idea about how to solve this?
Thank you in advance

I solved it. It looks that i had an old version installed from PyPy. I modified the source code and now it works. Thank you so much