Hbase store Can't get the locations

Hi all,
I'm trying to ingest shapefile inside my store created in Hbase. I've used the following commands:
geowave config addstore meteo -t hbase -z XXX.XXX.XXX.XXX:2181
geowave config addindex -t spatial_temporal meteo-spatial_temporal
but when I try ingest with the following command
geowave ingest localToGW ./marcoTemp meteo meteo-spatial_temporal -f geotools-vector
I receive the following error.
org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations
May you help me?
Thanks in advance

it is having difficulty communicating with zookeeper.
one question I'd have is how hbase was installed - is it within a vendor's distribution such as cloudera or hortonworks or is it strictly the open source apache project that you installed?
without really knowing much more information, off the cuff one thing to try is to explicitly put hbase-site.xml within your geowave commandline tools jar.  Under most deployments this should be found on the classpath and contains important environmental information to appropriately connect to the backend, but if it is not found, this step is making that very explicit and in fact always including in no matter what context geowave is running in (ie. spark, mapreduce, etc.).
cd /etc/hbase/conf (usually hbase-site.xml should be found here, but if for some reason it is somewhere else, change to that directory)
zip -g /usr/local/geowave/tools/geowave-tools-${version}-${vendor}.jar hbase-site.xml (the actual name of the jar depends on the version and the vendor distribution that you used to install geowave, there will be one jar in that directory and make sure to use it)
Also, there is a geowave --debug ... option on the commandline which basically opens up the floodgates of logging, this may be a lot of log spam, or it may give you some additional useful info.

Hi rfecher, the cluster is an HortonWorks distribution. I'll try to add the hbase cond file inside the jar and retry.
I'll keep you informed.
Thanks

Hi rfecher, I've added hbase-site to the jar and now the error is different.
18 Dec 10:30:00 ERROR [persist.PersistableFactory] - '600' already registered for class 'mil.nga.giat.geowave.adapter.raster.Resolution'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin' with id '600'
18 Dec 10:30:00 ERROR [persist.PersistableFactory] - '601' already registered for class 'mil.nga.giat.geowave.adapter.raster.adapter.CompoundHierarchicalIndexStrategyWrapper'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin$IngestTwitterFromHdfs' with id '601'
18 Dec 10:30:00 ERROR [local.IngestTask] - Fatal error occured while trying to get an index writer.
java.lang.NullPointerException
at mil.nga.giat.geowave.core.geotime.index.dimension.TemporalBinningStrategy.getNormalizedRanges(TemporalBinningStrategy.java:378)
Why the system is referring to twitter?
I've started the ingest with:
geowave ingest localToGW /marcoTemp meteo meteo-spatial_temporal -f geotools-vector
Thanks

I think you have a fix with putting hbase-site.xml in the jar.  If you are using geoserver as well, I suggest copying /usr/local/geowave/tools/geowave-tools-${version}-hdp2.jar into and replacing /usr/local/geowave/{geoserver or tomcat8 depending on which of geowave your using}/webapps/geoserver/WEB-INF/lib/geowave-geoserver-${version}-hdp2.jar
That way you will be sure not to run into similar connectivity issues within geoserver.
the Twitter error messages are actually common in in older versions, I think it only appears in 0.9.5 (I'm guessing you're not using the latest geowave version?) and can be ignored in your case.  There is a workaround to get the twitter ingest format to work, and all other ingest formats are uneffected.
Do you have an attribute in your feature data that is a temporal data type (such as java.util.Date)?  My guess is that it is unable to find a time field for your spatial-temporal index.  If there is not a temporal attribute, you should ingest with an index type of "spatial" instead of type "spatial_temporal."
If this is in fact the case, and we are not preempting ingest with an earlier warning message that's more clear about not finding the temporal attribute, that can be a relatively easy issue to polish so please let us know.

Hi rfecher, I've updated the jar inside geoserver that you mentioned. With my code I've indexed generated data as you posted. I want for the moment to avoid index real data, but verify that geoserver is able to use the store (Hbase). Actually I receive "Error creating data store, check the parameters. Error message: null" while creating Store in geoserver. I've done something wrong? Is there any way to check if the data indexed inside HBase are correct?
Thanks

did you use geowave gs addlayer or one of the geowave commandline tools to create the datastore in geoserver or are you trying to do it manually in the geoserver UI?  I primarily use the commandline and am confident that works, so that would be my suggestion.  If that doesn't work, does geowave datastores show up in geoserver's UI?  I'd also look at the geoserver log for any more clues.
You can run things like geowave remote liststats <storename> to see stats about the data you ingested.  You should see a COUNT statistic for example that represents the number of rows you ingested.  You can also do something like geowave analytic sql 'select * from <storename>' and add a where clause if you'd like to show the actual data and not just statistics.  By default it just shows the first 20 results to keep you from killing your console with millions of results but you can increase that limit with the -s or --show option.

Hi rfecher, I've added a limited number of elements. If I run
geowave remote liststats meteo
this is the output:
22 Dec 10:09:10 WARN [util.NativeCodeLoader] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
Dec 22, 2017 10:09:12 AM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
22 Dec 10:09:12 ERROR [persist.PersistableFactory] - '600' already registered for class 'mil.nga.giat.geowave.adapter.raster.Resolution'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin' with id '600'
22 Dec 10:09:12 ERROR [persist.PersistableFactory] - '601' already registered for class 'mil.nga.giat.geowave.adapter.raster.adapter.CompoundHierarchicalIndexStrategyWrapper'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin$IngestTwitterFromHdfs' with id '601'
If I run
geowave analytic sql 'select count(*) from meteo'
or
geowave analytic sql 'select * from meteo'
22 Dec 10:09:49 WARN [util.NativeCodeLoader] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'GeoServerResourceLoader', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
22 Dec 10:09:52 WARN [geoserver.platform] - Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
22 Dec 10:09:52 ERROR [persist.PersistableFactory] - '600' already registered for class 'mil.nga.giat.geowave.adapter.raster.Resolution'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin' with id '600'
22 Dec 10:09:52 ERROR [persist.PersistableFactory] - '601' already registered for class 'mil.nga.giat.geowave.adapter.raster.adapter.CompoundHierarchicalIndexStrategyWrapper'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin$IngestTwitterFromHdfs' with id '601'
22 Dec 10:09:53 WARN [metadata.AbstractHBasePersistence] - Object 'ROW_RANGE_SPATIAL_TEMPORAL_IDX_BALANCED_YEAR_SPATIAL_TEMPORAL_IDX_BALANCED_YEAR' not found
22 Dec 10:09:53 WARN [splits.SplitsProvider] - Could not determine range of data from 'RowRangeDataStatistics'.  Range will not be clipped. This may result in some splits being empty.
22 Dec 10:09:53 WARN [cli.GeoWaveMain] - Unable to execute operation
org.apache.spark.sql.catalyst.errors.package$TreeNodeException: execute, tree:
Exchange SinglePartition
+- *HashAggregate(keys=[], functions=[], output=[])
+- *Project
+- Scan ExistingRDD[geom#6,title#7,link#8,tags#9,eventType#10,date#11]
    at org.apache.spark.sql.catalyst.errors.package$.attachTree(package.scala:56)
    at org.apache.spark.sql.execution.exchange.ShuffleExchange.doExecute(ShuffleExchange.scala:115)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138)
    at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
    at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135)
    at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116)
    at org.apache.spark.sql.execution.InputAdapter.inputRDDs(WholeStageCodegenExec.scala:252)
    at org.apache.spark.sql.execution.aggregate.HashAggregateExec.inputRDDs(HashAggregateExec.scala:141)
    at org.apache.spark.sql.execution.aggregate.HashAggregateExec.inputRDDs(HashAggregateExec.scala:141)
    at org.apache.spark.sql.execution.aggregate.HashAggregateExec.inputRDDs(HashAggregateExec.scala:141)
    at org.apache.spark.sql.execution.WholeStageCodegenExec.doExecute(WholeStageCodegenExec.scala:386)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117)
    at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138)

.......

For geoserver I've run:
geowave gs addlayer meteo
22 Dec 10:15:18 ERROR [persist.PersistableFactory] - '600' already registered for class 'mil.nga.giat.geowave.adapter.raster.Resolution'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin' with id '600'
22 Dec 10:15:18 ERROR [persist.PersistableFactory] - '601' already registered for class 'mil.nga.giat.geowave.adapter.raster.adapter.CompoundHierarchicalIndexStrategyWrapper'.  Cannot register 'class mil.nga.giat.geowave.format.twitter.TwitterIngestPlugin$IngestTwitterFromHdfs' with id '601'
22 Dec 10:15:18 INFO [util.FeatureDataUtils] - Generating patched classloader
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - getAdapterInfo for id = null
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - > Adapter ID: app
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - > Adapter Type: FeatureDataAdapter
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - id is null or all
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - > 'app' adapter passed filter
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - getStoreAdapterInfo(meteo) got 1 ids
22 Dec 10:15:18 DEBUG [geoserver.GeoServerRestClient] - Finished retrieving adapter list
22 Dec 10:15:19 ERROR [geoserver.GeoServerRestClient] - Error retrieving GeoServer workspace list
22 Dec 10:15:19 DEBUG [geoserver.GeoServerRestClient] - addlayer needs to create the geowave workspace
Error adding GeoServer layer for store 'meteo; code = 404
22 Dec 10:15:19 DEBUG [ipc.Client] - stopping client from cache: org.apache.hadoop.ipc.Client@5c45d770
22 Dec 10:15:19 DEBUG [ipc.Client] - removing client from cache: org.apache.hadoop.ipc.Client@5c45d770
22 Dec 10:15:19 DEBUG [ipc.Client] - stopping actual client because no more references remain: org.apache.hadoop.ipc.Client@5c45d770
22 Dec 10:15:19 DEBUG [ipc.Client] - Stopping client
22 Dec 10:15:19 DEBUG [util.ShutdownHookManager] - ShutdownHookManger complete shutdown.
I suppose 404 is not a good news. No added layers are in the GeoServer interface
Thanks

yep the 404 (not found) is a problem.  You configure where geoserver is on your commandline, using geowave config geoserver <host:port>
You must be using 0.9.5 because those twitter error messages were only in that release (and don't worry about them, they're just log spam in your case).
you need to know what port you're running geoserver on.  If its through our installer it'd be port 8080 by default (although advanced users can modify that within puppet and in fact our EMR boostraps would use port 8000).  So my best guess is you have it running on port 8080, but I really don't know what IP/host its running on?  The default commandline config if you don't configure it yourself tries localhost:8080 so its seemingly not running there because you have a 404.  Or maybe its installed and just not running?  In 0.9.5 the command to make sure its running would be sudo service geowave restart

Thanks rfecher, solved the problem of geoserver. Now I can see a new store in it.
geowave  meteo-vector GeoWave Datastore - HBASE
but I'm not able to add a new layer, when I try I see no resources related to the store. I think is related to the other problem, i.e. after the indexing errors during:
geowave analytic sql 'select count(*) from meteo'
or
geowave analytic sql 'select * from meteo'
Thanks

ok, yeah, it seems you don't have any data/tables.  you can check on :16010 (or navigate to the HBase master web console through Amabari).  You should see tables prefixed by your gwNamespace, the most basic of tables would be at least to have _GEOWAVE_METADATA.  From above did you ever resolve your issue where it seemed as though you were attempting spatial_temporal indexing on data that did not include an attribute with a temporal type (commonly java.util.Date but there are a couple other acceptable types, I think java.sql.Date being another).  For that I would suggest simply trying to start with a spatial index type for now, and later ensure you get data with Dates for the temporal indexing.


Add func onMultipartMessage(_ message: PCMultipartMessage) to PCChatManagerDelegate

What?
chat master detail pages "always" have the last message for a room in the master page, avoid nasty proxy, multicast thingie.
Environment

PusherChatkit version:
Xcode version:
Swift version:
Platform(s) running PusherChatkit:

Demo Project (if you have one; it helps a lot!)

Suggestions are always appreciated, thank you. However, I am going to close this issue because we are currently working on some significant updates to the Swift API and this feature request will likely either be addressed or will no longer be relevant.

any ETA on this? Very interested
On Fri, Mar 6, 2020 at 3:33 AM OliverPearmain-Pusher <
<EMAIL_ADDRESS>wrote:

Suggestions are always appreciated, thank you. However, I am going to
close this issue because we are currently working on some significant
updates to the Swift API and this feature request will likely either be
addressed or will no longer be relevant.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pusher/chatkit-swift/issues/201?email_source=notifications&email_token=AJTJHRDFWKJKRPNN6W44URTRGDNQDA5CNFSM4IRJJQB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOBBSJA#issuecomment-595728676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJTJHRFTZH27N7P3EOCKIA3RGDNQDANCNFSM4IRJJQBQ
.

I'm afaid I cannot give you any indication of an ETA as we are still in the early stages of development and discovery.
If you would be interesting in working with us to help test early versions/prototypes of the updated SDK, at such a time that it is available, then please let us know.


navbar of volunteer page covers the heading and page content

navbar of volunteer page covers the heading and page content
pls assign me this issue as i would like to contribute  to this project under gssoc and would like to enhance the ui.
issue:

I'm a contributor for GSSoC '23, I want to contribute to this issue. Please assign me.


add lightweight cache for md5 checksums. fixes #643

@davidjgonzalez can you doublecheck my changes to HttpCache? I think these should all be fine, but would appreciate another set of eyes. No new API; all internal as it depends upon Guava which we're embedding.

To briefly summarize those changes:

I introduced a new interface GenericCacheMBean which exposes MBean methods applicable to any cache. For the Versioned Client Library Transformer, these methods are all that's needed, but HttpCache does extend this interface as it adds one additional method.
I added a abstract base class AbstractGuavaCacheMBean which implements this interface and has a number of protected methods which allow it to do so, primarily to get access to the cache and do various conversions of the keys and values to strings.
Any component wanting to expose an MBean interface for its cache needs to extend this abstract class and implement this interface.

The large point of this was to avoid code duplication. If you look at what is now actually done in the MemHttpCacheStoreImpl it is fairly minimal. And the code added to the transformer is like 16 lines of code (plus annotations).
One doubt I have is that the existing MemCacheMBean had a method called getCacheKeys() but this actually returned the cache's content in a tabular form. I'd like to rename this to getCacheContents() but wasn't sure if there was a reason for the original name.

The reason it was named getCacheKeys() is because it returns everything it the logical contents. Maybe getCacheEntries() is a better name?  The getCacheContents(..) takes a cache key to get what you'd normally think of as the contents.
Overall change looks good


Is Rutie#init necessary?

Thank you for the project, and apologies for the Q&A/Discussion issue.
Rutie's really interesting, and has helped myself and @saty9 get a Ruby/Rust integration going pretty quickly.
An issue we've come across is that Rails becomes very upset when loading a gem that has a call out to Rutie#init (specifically, we get Bus Errors). I suspect the issue is with Spring's forking, but it could also be an issue with Zeitwerk, or some of Rails' other loading "magic".
This has led us to investigate a bit further about Ruby's initialisation of native extensions. What we've found is that Ruby will call an initialisation function when requireing a shared library, removing the need for Rutie#init [source].
For example, we can adapt the example in https://github.com/danielpclark/rutie/tree/master/examples/rutie_ruby_example slightly and get the correct behaviour:
--- a/examples/rutie_ruby_example/Rakefile
+++ b/examples/rutie_ruby_example/Rakefile
@@ -18,6 +18,8 @@ task :build_lib do
   else
     sh 'cargo build --release'
   end
+
+  sh "mv target/release/librutie_ruby_example.#{RbConfig::CONFIG['SOEXT']} lib/rutie_ruby_example/rutie_ruby_example_ext.#{RbConfig::CONFIG['DLEXT']}"
 end

 desc 'bundle install'
diff --git a/examples/rutie_ruby_example/lib/rutie_ruby_example.rb b/examples/rutie_ruby_example/lib/rutie_ruby_example.rb
index e0483a0..cd73617 100644
--- a/examples/rutie_ruby_example/lib/rutie_ruby_example.rb
+++ b/examples/rutie_ruby_example/lib/rutie_ruby_example.rb
@@ -1,6 +1,6 @@
 require 'rutie_ruby_example/version'
-require 'rutie'
+require 'rutie_ruby_example/rutie_ruby_example_ext'
+

 module RutieRubyExample
-  Rutie.new(:rutie_ruby_example).init 'Init_rutie_ruby_example', __dir__
 end
diff --git a/examples/rutie_ruby_example/src/lib.rs b/examples/rutie_ruby_example/src/lib.rs
index 7f79ca8..d6d16e0 100644
--- a/examples/rutie_ruby_example/src/lib.rs
+++ b/examples/rutie_ruby_example/src/lib.rs
@@ -26,7 +26,7 @@ methods!(

 #[allow(non_snake_case)]
 #[no_mangle]
-pub extern "C" fn Init_rutie_ruby_example() {
+pub extern "C" fn Init_rutie_ruby_example_ext() {
     Class::new("RutieExample", None).define(|klass| {
         klass.def_self("reverse", pub_reverse);
     });

cd examples/rutie_ruby_example
bundle exec rake
<snip>
RutieRubyExampleTest
 PASS (0.00s) :: test_it_reverses

Finished in 0.00085s
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips

This seems to play more nicely with Rails. My question is: is this safe, or are we missing something?
I'm happy to open a PR if it is safe and you'd like to adopt this pattern.

I'm not aware of any issues in doing it that way as long as require will call it.  As long as it is initialized I believe that's all it needs.

Just saw that this; might be related to #151
@ball-hayden did you encounter any issues with MRI crashes in the context of Spring reloading?

@milgner this definitely looks related.
After making the changes above (and dropping Rutie#init calls) we've been able to use Rutie with Spring.
We didn't have any further issues - we've been running quite happily in production since mid-April 2021.

@ball-hayden I just gave it a try and it seems to have resolved the problem, too! Many thanks, really great tip! I just had to require_relative the .so file and everything worked as expected.


Use crypto.randomBytes

Uses crypto.randomBytes for random seed.
Credit to sehrope

Thanks! :)

Hashing a random string is no better than displaying the data itself. Why not just convert the Buffer to a string directly? e.g.
const hash = crypto.randomBytes(32).toString('hex');

Note that you only need to generate 32 bytes of random data, since hexadecimal characters each contain 4 bits (half a byte) of data. The result will always be 32 characters in length, regardless of zeroes in the result.
Feel free to disregard this as yak shaving, but just wanted to let you know. :)


Add ArgoCD to System Components devops tab in the kubesphere UI.

Describe the Bug
Maybe we should add ArgoCD to the system component devops tab in the kubershpere UI. It appears to be missing.

Versions Used
KubeSphere: v3.3.0-rc.2

Sounds reasonable. But I'm not sure if KubeSphere could put them together if they are in different namespaces.


Disable automatically created WebWorker message handler

I have a web worker which looks like this:
import Prism from 'prismjs';

self.addEventListener('message', function(event) {
    let { language, code } = event.data;
    // Do some stuff
    code = Prism.highlight(code, Prism.languages[language]);
    self.postMessage(code);
});

It works, however the mere act of opening Prism inside a web worker causes it to create it's own "message" handler. One which expects a String as input. So I'm constantly getting errors in my console like:
JSON.parse: unexpected character

I could just use the automatically created "message" handler, but that prevents me from doing the extra processing that I wanted to happen in my web worker.
Is there a way of disabling the automatic creation of this message handler? I can see multiple references to disableWorkerMessageHandler in the code, but I can't figure out a way of leveraging it. Maybe that's not even possible?

You should be able to make it work with something like:
var Prism = {
	disableWorkerMessageHandler: true
};
import Prism from 'prismjs';
// or self.importScripts('prism.js');

This doesn't work. I get: Module build failed: SyntaxError: "Prism" is read-only. So I tried:
var Prism = { disableWorkerMessageHandler: true };
import 'prismjs';

This also didn't work as the import doesn't merge stuff into the Prism object. So I tried:
Prism = {
	disableWorkerMessageHandler: true,
};
import PrismLib from 'prismjs';
Prism = {
    ...PrismLib,
    ...Prism,
}

This also didn't work as the unwanted message handler was still created.

@Golmote You can't do it in that order, import statements are hoisted. If you swapped import for require, that would work if you changed var Prism to global.Prism.
@mikehardenize Are you using a bundler of some kind here?

I'm using webpack with babel-loader. I've tried various combinations of loading the module using require and using global.Prism and it's making no difference.

After further investigation, the existing web worker functionality is actually broken. If you postMessage two pieces of code for highlighting at the same'ish time, the response order is unpredictable. You don't know if the first code you get back was the first code you submitted or the second.

I managed to achieve this the following way:
global.Prism = { disableWorkerMessageHandler: true };
const Prismjs = require('prismjs');

I load the worker using webpack's worker-loader like this:
const Worker = require('worker-loader?inline=true!./worker');

const worker = new Worker();
worker.onmessage = ...

Hope that helps :)

@tvooo's answer looks like an appropriate solution to this problem. I'm closing this issue.


Skip computer with new name because the new name is not valid. The new computer name entered is not properly formatted.

Hello! Thanks for role ansible-role-pdc.
I try run role for windows server 2019
sudo apt update
sudo apt install git jq python3-pip -y
sudo pip3 install ansible pywinrm
ansible-galaxy collection install ansible.windows
ansible-galaxy install justin_p.pdc

Inventory file:
[windows]
windows.local ansible_host=xxxxxxxx

[windows:vars]
ansible_port=5986
ansible_connection=winrm
ansible_winrm_transport=basic
ansible_user=Administrator
ansible_password=yyyyyy
ansible_winrm_server_cert_validation=ignore

Run playbook
ansible-playbook -i inventory active_directory.yml

Get error
TASK [justin_p.wincom : Ensure hostname is set to windows.local] **********************************************************************************************************
fatal: [windows.local]: FAILED! => changed=false
  msg: 'Failed to rename computer to ''windows.local'': Skip computer ''windows-server2'' with new name ''windows.local'' because the new name is not valid. The new computer name entered is not properly formatted. Standard names may contain letters (a-z, A-Z), numbers (0-9), and hyphens (-), but no spaces or periods (.). The name may not consist entirely of digits, and may not be longer than 63 characters.'
  old_name: windows-server2
  reboot_required: false

Please add example inventory to readme.
Thanks!

If use inventory
[windows]
windows-server3 ansible_host=xxxx

Dont get error
TASK [justin_p.wincom : Ensure hostname is set to windows-server3] ****************************************************************************************
ok: [windows-server3]


Build: Update dependencies

What is changed and how it works?

Issue Number: Ref #17370, #17689

What's Changed:
Update bindgen to fix binding error during compilation on Mac, and update future-utils to fix yanked version.

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/retest

/retest

/retest

/retest


Output redirection raise BrokenPipeError

On macOS 10.13 and Python 3.7.1, the code in the README does not work.
~/Documents $ mkdir pipdeptree
~/Documents $ cd pipdeptree/
~/Documents/pipdeptree $ python3 -m venv venv
~/Documents/pipdeptree $ source venv/bin/activate
(venv) ~/Documents/pipdeptree $ pip install pipdeptree
Collecting pipdeptree
  Using cached https://files.pythonhosted.org/packages/<hash omitted>/pipdeptree-0.13.1-py3-none-any.whl
Requirement already satisfied: pip>=6.0.0 in ./venv/lib/python3.7/site-packages (from pipdeptree) (10.0.1)
Installing collected packages: pipdeptree
Successfully installed pipdeptree-0.13.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) ~/Documents/pipdeptree $ pipdeptree -f --warn silence | grep -P '^[\w0-9\-=.]+'
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
	[-e pattern] [-f file] [--binary-files=value] [--color=when]
	[--context[=num]] [--directories=action] [--label] [--line-buffered]
	[--null] [pattern] [file ...]
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

I think the problem here is that grep on OSX (BSD) doesn't support the --perl-regexp or -P flag. You might be able to get it working with the --extended-regexp or -E. Otherwise you can install GNU grep on Mac.

On a Mac this works instead:
pipdeptree -f --warn silence | grep -v '[[:space:]]'
Maybe this can be added to the docs for convenience?

I think this is no longer the case.


Update get_column_stats for Postgres 17

On Postgres 17, the function breaks:
select * from pganalyze.get_column_stats() limit 1;
ERROR:  return type mismatch in function declared to return pg_stats
DETAIL:  Final statement returns too few columns.
CONTEXT:  SQL function "get_column_stats" during startup

Note that this documentation update makes it so this function definition no longer works for previous versions of Postgres. Do we have a UI pattern to handle this, like a tabbed component that lets you switch between PG 16 and 17 versions of the function?
This error wouldn't have occurred if the function didn't RETURNS SETOF pg_stats, instead choosing to return its own row type. If we don't plan to use the new fields, maybe we should change the return type instead of adding the new fields?
Here's the documentation for the new fields. IIRC this function is intended to return all data points that are not considered sensitive (don't include user data), so I've chosen to return null for range_bounds_histogram

This error wouldn't have occurred if the function didn't RETURNS SETOF pg_stats, instead choosing to return its own row type. If we don't plan to use the new fields, maybe we should change the return type instead of adding the new fields?

Yeah, that seems reasonable, and is how we solved this for pg_stats_ext.
@msakrejda Any concerns with changing this? (AFAIK you were involved in the original discussion on this for extended stats with Keiko and myself, though maybe I'm misremembering)

Looks like that was in #217--that doesn't seem to have any discussion on using the raw type versus TABLE, but I think TABLE makes more sense. +1 on changing pg_stats to do that until we need those fields.
And for what it's worth, we do have a way of doing version-specific instructions. #135 dropped that since that dropped 9.6 support and all supported versions could use identical instructions, but we can bring it back if necessary.

How do we communicate this to everyone without it turning into a support ticket when they upgrade to Postgres 17? It's not even as simple as pointing them to the documentation since the function signature changed, so CREATE OR REPLACE FUNCTION doesn't work; they'll need to drop the existing function.

Oh, also, these are duplicated here :frowning:.

Re: the upgrade problem—I suppose we could have the collector recognize the old function definition at startup and print instructions?

I think the troubleshooting pages still need updating?


Title: Add a simple Matrix Calculator

Is your feature request related to a problem? Please describe.
NA
Describe the solution you'd like.
Given a user entered matrix the calculator finds the adjoint and inverse of that matrix. Made using vanilla js , html and css.
Describe alternatives you've considered.
NA
Add any other context or screenshots about the feature request here.
No response

I would like to work on this issue.

@kaustav202 Please mentioned the tech that you are going to use .

is it up for grab @Kushal997-das ?
please assign it to me if it is


[General Issue]: ipv6 test depends on HTTP status code

In raising this issue I confirm that

[X] I have read the documentation
[X] I have read and understood the PiVPN General Guidelines
[X] I have read and understood the PiVPN Troubleshooting Guidelines
[X] The issue I am reporting isn't a duplicate, see closed issues and open issues.
[X] I have searched for similar issues and solutions
[X] I can replicate the issue even after a clean OS installation

Describe the issue
curl -6 --fail https://google.com  fails with error code 22 because the server gives HTTP 403 on a Hetzner VM.   Using https://aws.amazon.com succeeds.
It would be amazing to treat exit code 22 as success, after all IPv6 works marvelously, just big G is grumpy.
Thanks for considering!
Expected behavior
ipv6 test succeeds
Please describe the steps to replicate the issue
run install script on a hetzner VM located in Germany
Have you taken any steps towards solving your issue?
curl -L https://install.pivpn.io | sed s/google.com/aws.amazon.com/g | bash -x

Screenshots
No response
Where did you run pivpn?
it was run on an ubuntu 22.04.3 LTS (GNU/Linux 6.5.0-14-generic x86_64) VM
Please provide your output from uname -a
6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Details about Operative System
N/A
Installation
No response
Profile / Client creation
No response
Debug output
N/A

Should be fixed with https://github.com/pivpn/pivpn/commit/20d3a4ccd4f2d080d6f9a13a74e6369aa9d54476


Persist ethereum private keys in ParaTimes

Show a dropdown with previously pasted private keys (display them as eth addresses)

Fixed by https://github.com/oasisprotocol/oasis-wallet-web/pull/1737


Feature/info window

So...
The logic to change the content for the pop up is ready.
We only need to be sure each step have a index.
We might add the raw text and format the text on Monday.

Each step is defined by an "index" number that represents te block and one "step" number that is the step in that block.
I hope that is clear enough.
Anyway, I', transferring the whole state of the slider with the event just in case we need more elements.
I kept the dummy text so you have some examples for the classes.
I also added here the classes fro the print. I hope you don't mind...


litmus/issues/769

@chandankumar4
Plz review

@chandankumar4
Need your help in fixing this.
I hope my changes are nothing to do with this.

Plz do correct me, if my understanding is not correct.

@chandankumar4
Need your help in fixing this.
I hope my changes are nothing to do with this.

Plz do correct me, if my understanding is not correct.

This error is not causing the lint failed, Can you check the circle-ci build log

@chandankumar4
Thank you.
Updated accordingly.

@chandankumar4
Plz review

@chandankumar4
Plz review


Update continuous-verification-faqs.md

Added 4 FAQ
Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: \

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://67168418907aac798e2853c4--harness-developer.netlify.app


Take advantage of new telemetry features

Once 1.17 is out, the following will be added to the telemetry SDK:

Added dashboard-displayed gear, more wheel channels
Added differential and all gear ratios
Average consumption made real instead of statistical
Adblue channels are working now
Added navigation distance and time channels
Added current speed limit channel

Those in bold will be useful to et2-mobile-route-advisor and will be added in the next release.

Blocked until the telemetry server has been updated to use the new telemetry features.


ipywidgets

Using dask.distributed in the notebook requires the ipywidgets package to show progress bars.

conda-forge offers noarch: python packages for ipywidgets and widgetsnbextension which can be install into a berryconda environment.
Never-the-less it would be nice to have these packages in the rpi channel.  I'm building them now and will uploaded the shortly.


MLPerf vs Deepbench..

Hi,
seen announcement of MLPerf (https://mlperf.org/) a benchmark for ML..
seems motivation is similar to DeepBench.. will this affect future of DeepBench?
anything to say about MLPerf vs DeepBench different use cases,etc..
thanks..

@oscarbg , Thanks for posting this question. We're part of the founding team of MLPerf. MLPerf and DeepBench are both very important for benchmarking DL applications and hardware. We think that both these benchmarks can work together. MLPerf can benchmark deep learning models at the framework level while DeepBench will measure the performance of the underlying kernels. This blogpost outlines our views in more detail. Hope this helps.

Thanks that makes sense. thanks for info..


adding more commands to clarify steps / stages

What this PR does / why we need it:

There is some missing pre-reqs, like configuring a key vault. Added a section/doc link.
Important data fields from Azure should be enumerated earlier in the doc, as its needed for swapping yaml out.
Added SP creation steps & env vars for setup on SP option

Special notes for your reviewer:
I'm did not get it working, as my pod is stuck in deployment - so do gut check me on the proposed changes.

I'm did not get it working, as my pod is stuck in deployment - so do gut check me on the proposed changes.

@jluk Are there specific issues with the deployment that we can help you troubleshoot?

My deployment of nginx-secrets-store-inline failed due to a mount failure. It seems the default config to have "cloudname" is causing an issue?
  cloudName: "cloudname"          # [OPTIONAL for Azure] if not provided, azure environment will default to AzurePublic

Pod describe for nginx stuck in creating state:
Events:
  Type     Reason       Age                    From                                        Message
  ----     ------       ----                   ----                                        -------
  Warning  FailedMount  14m (x285 over 18h)    kubelet, aks-nodepool1-93144144-vmss000005  Unable to attach or mount volumes: unmounted volumes=[secrets-store-inline], unattached volumes=[secrets-store-inline default-token-m7ct6]: timed out waiting for the condition
  Warning  FailedMount  5m24s (x699 over 18h)  kubelet, aks-nodepool1-93144144-vmss000005  (combined from similar events): MountVolume.SetUp failed for volume "secrets-store-inline" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Unknown desc = error mounting secret time="2020-05-06T16:40:14Z" level=fatal msg="[error] : cloudName cloudname is not valid, error: autorest/azure: There is no cloud environment matching the name \"CLOUDNAME\""
 for pod: 6edc0cb0-f090-4b01-8688-82439e6a9f4f, ns: default

EDIT: I realize now the cloudname is just a placeholder, perhaps we should just leave it blank in the example so it defaults?

That's right. If left blank will default to AzurePublicCloud. Agree, we should keep it blank in docs to avoid confusion.

@aramase

The deployment worked if I leave it an empty string, but I actually tried to place "AzurePublic" according to this comment and it failed with similar error as above claiming it needs to match "AZUREPUBLIC".

Events:
  Type     Reason       Age                   From                                        Message
  ----     ------       ----                  ----                                        -------
  Warning  FailedMount  31m (x3 over 44m)     kubelet, aks-nodepool1-93144144-vmss000005  Unable to attach or mount volumes: unmounted volumes=[secrets-store-inline], unattached volumes=[default-token-m7ct6 secrets-store-inline]: timed out waiting for the condition
  Warning  FailedMount  6m37s (x35 over 65m)  kubelet, aks-nodepool1-93144144-vmss000005  (combined from similar events): MountVolume.SetUp failed for volume "secrets-store-inline" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Unknown desc = error mounting secret time="2020-05-06T17:58:04Z" level=fatal msg="[error] : cloudName AzurePublic is not valid, error: autorest/azure: There is no cloud environment matching the name \"AZUREPUBLIC\""
 for pod: ad12aca8-8a78-4fcd-a1c5-446dbdb5d540, ns: default
  Warning  FailedMount  112s (x21 over 69m)  kubelet, aks-nodepool1-93144144-vmss000005  Unable to attach or mount volumes: unmounted volumes=[secrets-store-inline], unattached volumes=[secrets-store-inline default-token-m7ct6]: timed out waiting for the condition

Is that expected and if so should we update the comments?
    cloudName: ""          # [OPTIONAL for Azure] if not provided, azure environment will default to AzurePublic

Is there a good exercise a user can do after deployment to validate everything is working? I'm not clear how to access the keys needed and prove that it's working beyond showing all deployments are successful and a describe on the secretproviderclass.

@jluk

The deployment worked if I leave it an empty string, but I actually tried to place "AzurePublic" according to this comment and it failed with similar error as above claiming it needs to match "AZUREPUBLIC".

The allowed values are documented in the table -
[available for version > 0.0.4] name of the azure cloud based on azure go sdk (AzurePublicCloud,AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud)

It needs to contain the Cloud suffix.

Is there a good exercise a user can do after deployment to validate everything is working? I'm not clear how to access the keys needed and prove that it's working beyond showing all deployments are successful and a describe on the secretproviderclass.

A good way to validate it would be by running -
kubectl exec -it nginx-secrets-store-inline ls /mnt/secrets-store/
secret1

kubectl exec -it nginx-secrets-store-inline cat /mnt/secrets-store/secret1
test

This verification step is documented for pod-identity mode. We should probably document it in a common place and refer to it in all the modes.

Thanks @aramase added the changes for everything mentioned LMK thoughts.
Assuming the expected output of the exec is:
➜  Desktop kubectl exec -it nginx-secrets-store-inline ls /mnt/secrets-store/test-secret
+ kubectl exec -it nginx-secrets-store-inline ls /mnt/secrets-store/test-secret
/mnt/secrets-store/test-secret

made some chgs over lunch lmk thoughts @ritazh / @aramase


Cannot drop over iframe (not into - but absolutely on top of an iframe)

Hey guys, I ran into a really weird bug in Chrome when you are sorting OVER an iframe via absolute positioned containers. You can start drag just fine but the dropzone is somehow "under" the iframe even though z-index is clearly in order.
See the following pen for example:
https://codepen.io/dolbex/pen/WYpPMq

It works for me

I've run into this issue as well but I suspect it has to do with Chrome changing how it handles UI events when they occur over iframes with cross-origin content. Here is a jsfiddle that tests drag event firing over two iframes, one with content from another domain and one with local content. Take a look at the console to track the drag events.
https://jsfiddle.net/lokesh/fsb7kdny/

Running into the same issue. Only seems to be a problem in Chrome 70+. Works in Safari and Firefox. Looks like its an issue with cross domain iframes.
Here is an example. Make sure to open the chrome console. Notice that the drag events are never fired for the 'DRAG ME' which is over an iframe from another domain
https://jsfiddle.net/fsb7kdny/28/

It seems to be an issue localized to drag and drop. For now you can use forceFallback: true.

Thanks @owen-m1 for the quick response. I'll enable forceFallback and see if that resolves the issue I'm seeing in Chrome v70 and greater.

I was able to use the forceFallback option to fix the issue where the sortable action was not working in Chrome 70+ when done in a modal that was positioned over an iframe that contained content from a different domain. Thanks for the help!

Wow, and here I've been trying to figure out why I couldn't sort when a few seemingly unrelated conditions were met. Spent an entire 3 days trying to figure this out and then I realized that this bug is actually relevant to me and the actual cause.

Just run into this issue in Chrome 99. Setting pointer-events: none on the iframe while dragging also works.
No need for additional elements to mask the iframe.


Icecream support

Motivation for this change
Icecream allows distributed compilation in an heterogeneous environment.
This adds the main icecream package and the QT5 based monitor, as well as two new NixOS modules to configure scheduler and daemon. Unfortunately I had to create a new uid for the icecream daemon, since the acceptance of other compile environments hinges on the daemon running as root, which will drop its privileges and switch to the "icecc" user, see here.
I tested this by enabling the module on the desktop and using a debian VM with ptxdist, enabling icecc in the options and using DistroKit as the BSP. A compilation of the armv7a kernel was correctly distributed to both computers running icecream.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I'd like to remove the stale label. I am currently carrying this forward and can rebase onto the master branch quickly, however it is still unclear who needs to review this change.

Thanks for the review @Infinisil, I have force pushed another version which should address the review comments.

@Infinisil gentle ping

@Infinisil gentle ping

@Infinisil gentle ping


Unable to load Hassio(RPI3B+) from latest image baseline hassos_rpi3-2.12.img

Unabble to load Hassio from latest image baseline hassos_rpi3-2.12.img
Home Assistant release with the issue:
hassos_rpi3-2.12.img
Operating environment (HassOS/Generic):
RPI3B+
Supervisor logs:
N/A
Description of problem:
Hassio load does not complete, problem since @ 4 July.
Please create new image baseline.

I don't had any issue on this


Keep recording after the phone is locked

Hello, I basically want to run the recording for a while even after the phone is locked. But i couldnt find any ideas on how to go about it in the docs. Any help is appreciated.
Version of react-native-audio-recorder-player
3.6.0
Version of React Native
0.72.4
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
Press a button to start recording audio. Then lock the phone. I want to be able to record audio always after the app is locked.
Actual behavior
After locking the phone, it records for about 1 to 3 minutess after locking screen. but afterwards it doesn't record anymore untill the lock is lifted.
Steps to reproduce the behavior
Press a button to start recording audio. Then lock the phone and keep talking for 3 mins. Turn on the phone and stop recording and observe the playback file.
The following is the rough code i used:
import {View, PermissionsAndroid, Alert, Platform} from 'react-native';

import AudioRecorderPlayer, {
  AVEncoderAudioQualityIOSType,
  AVEncodingOption,
  AudioEncoderAndroidType,
  AudioSourceAndroidType,
  OutputFormatAndroidType,
} from 'react-native-audio-recorder-player';
import type {
  AudioSet,
  RecordBackType,
} from 'react-native-audio-recorder-player';

import {IconButton, Text} from 'react-native-paper';
import RNFetchBlob from 'rn-fetch-blob';
import {useUserStore} from '../utils/services';

import {useEffect, useState} from 'react';
import {formatTime} from '../utils';
import Toast from 'react-native-toast-message';

const permissions = [
  PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
  PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
  PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
];

const audioRecorderPlayer = new AudioRecorderPlayer();
audioRecorderPlayer.setSubscriptionDuration(0.5);

const LiveRecord = () => {
  const [permissionGranted, setPermissionGranted] = useState(false);
  const [isRecording, setIsRecording] = useState(false);
  const userId = useUserStore(state => state.user?.uid);

  const [recordTime, setRecordTime] = useState(0);

  useEffect(() => {
    const getPermissions = async () => {
      const granted = await PermissionsAndroid.requestMultiple(permissions);
      const recordAudioGranted =
        granted[PermissionsAndroid.PERMISSIONS.RECORD_AUDIO] === 'granted';

      const externalStorageWriteGranted =
        granted[PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE] ===
        'granted';
      const externalStorageReadGranted =
        granted[PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE] ===
        'granted';

      if (
        !(
          recordAudioGranted ||
          externalStorageWriteGranted ||
          externalStorageReadGranted
        )
      ) {
        Alert.alert('Permissions not granted');
      } else {
        setPermissionGranted(true);
      }
    };

    if (Platform.OS === 'android') {
      getPermissions();
    } else {
      setPermissionGranted(true);
    }
  }, []);

  useEffect(() => {
    if (!permissionGranted) {
      return;
    }
  }, [permissionGranted]);

  const startRecording = async () => {
    const dirs = RNFetchBlob.fs.dirs;
    const path = Platform.select({
      android: `${dirs.CacheDir}/record-${userId}-${new Date().getTime()}.mp3`,
    });
    const audioSet: AudioSet = {
      AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
      AudioSourceAndroid: AudioSourceAndroidType.MIC,
      AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.low,
      AVNumberOfChannelsKeyIOS: 2,
      AVFormatIDKeyIOS: AVEncodingOption.aac,
      OutputFormatAndroid: OutputFormatAndroidType.AAC_ADTS,
    };
    audioRecorderPlayer.removeRecordBackListener();
    audioRecorderPlayer.startRecorder(path, audioSet);
    audioRecorderPlayer.addRecordBackListener((e: RecordBackType) => {
      setRecordTime(e.currentPosition);
    });
    setIsRecording(true);
  };

  const onStopRecord = async () => {
    try {
      const result = await audioRecorderPlayer.stopRecorder();
      audioRecorderPlayer.removeRecordBackListener();
      console.log(result);
    } catch (err) {
      console.error(err);
      Toast.show({
        type: 'error',
        text1: 'Unxpected Error',
        text2: 'Please try again.',
      });
    }
    setIsRecording(false);
    setRecordTime(0);
  };

  return (
    <View style={{flex: 1, backgroundColor: '#1b1e2b'}}>
      <View className="flex flex-col items-center mt-10">
        <View
          className="rounded-full"
          style={{
            elevation: 20,
            shadowColor: '#000000',
            shadowOffset: {
              width: 0,
              height: 10,
            },
            shadowOpacity: 0.3,
            shadowRadius: 10,
            margin: 15,
            // borderRadius: 100,
            backgroundColor: '#2e3246',
          }}>
          {isRecording ? (
            <IconButton
              onPress={onStopRecord}
              icon="microphone"
              size={200}
              iconColor={'#e60000'}
            />
          ) : (
            <IconButton
              onPress={startRecording}
              icon="microphone"
              size={200}
              iconColor={'#613eea'}
            />
          )}
        </View>
      </View>
      <Text
        className="text-center text-5xl pt-10 pb-5 tracking-wider font-normal"
        style={{
          color: isRecording ? '#ffffff' : '#7878A3',
        }}>
        {formatTime(recordTime)}
      </Text>
    </View>
  );
};

export default LiveRecord;

Hi, have you figured out any workaround for this?

Hi, have you figured out any workaround for this?

For now im just keeping the screen awake while recording

Hi, have you figured out any workaround for this?

For now im just keeping the screen awake while recording

Background audio recording works for me https://apps.apple.com/us/app/whyp-upload-share-audio/id1672020595
You need to enable Audio, AirPlay & PiP in the Background modes, also you can't start the recording from the background.
https://developer.apple.com/documentation/avfaudio/avaudiosessioncategoryrecord?language=objc

+1

have you enabled "Audio, AirPlay, and Picture in Picture" option in xcode> Signing&Capabilities > Background Modes

+1 Experiencing basically the same issue here. Audio keeps recording when the device is locked, but a short time after locking (usually 30secs to 2mins) the audio levels become zero - it just records silence. The audio file then continues to be created, recording silence while the device is locked. When the device is later unlocked, the audio file continues to be created, and instead of recording silence the audio signal is restored to normal expected behaviour.
Any suggestions for improving this behaviour (other than keeping the screen unlocked)?
react-native version: 0.72.4
react-native-audio-recorder-player version: 3.6.0
building for android (API v33)
release build tested on Oppo A52 (CPH2069) w/ Android 11, ColorOS v11.1

Anyone solved this issue? i am also facing same issue

I did the solution like this and it works fine in my case. anyone can apply this way
react-native version: 0.72.6
react-native-audio-recorder-player version: 3.6.12

import React, {useState, useEffect, useRef} from 'react';
import { AppState} from 'react-native';
import AudioRecorderPlayer from 'react-native-audio-recorder-player';
import {useIsFocused} from '@react-navigation/native';
const isFocused = useIsFocused();
const [isPlaying, setIsPlaying] = useState(false);
const appState = useRef(AppState.currentState);
// Handle stopping audio when navigating away or unmounting the component
useEffect(() => {
if (!isFocused) {
// Component is not focused, stop audio playback
stopAudioPlayback();
}
// Cleanup function to stop audio playback when component unmounts
return () => {
  stopAudioPlayback();
};

}, [isFocused]);
// Function to stop audio playback
const stopAudioPlayback = () => {
try {
audioRecorderPlayerRef.current.stopPlayer();
audioRecorderPlayerRef.current.removePlayBackListener();
setIsPlaying(false);
} catch (error) {
console.warn('Error stopping audio playback:', error);
}
};
// background playback issue solution
useEffect(() => {
const handleAppStateChange = (nextAppState) => {
if (appState.current.match(/inactive|background/) && nextAppState === 'active') {
// App comes to the foreground, do nothing
} else if (nextAppState.match(/inactive|background/)) {
// App goes to the background, stop audio playback
audioRecorderPlayerRef.current.stopPlayer();
audioRecorderPlayerRef.current.removePlayBackListener();
setIsPlaying(false);
}
appState.current = nextAppState;
};
const appStateListener = AppState.addEventListener('change', handleAppStateChange);

return () => {
  // Cleanup the AppState listener on component unmount
  appStateListener.remove();
};

}, []);

my issue was:
recording goes well but after screen turns off and 1 minute later, recording stops
I searched expo-av issue and found this:
the solution in the link is to use notifee (foreground service library) solved the issue very easily


Secure Web socket connection to smart screen index page is failing.

Briefly summarize your issue:

After starting the sampleApp from smart screen sdk with secure ssl certificates configured, the web socket connection to alexa smart screen gui page fails.
What is the expected behavior?
Web socket connection should succeed from smartscreen index page when configured with secure certificates.
What behavior are you observing?
Websocket connection fails when connecting from smart screen gui page with secure ssl certificates.
Provide the steps to reproduce the issue, if applicable:
Start the sample app from smart screen and connect to smart screen sdk gui page.
Tell us about your environment:

What version of the AVS Device SDK are you using?
  1.23.0

Tell us what hardware you're using:

[ ] Desktop / Laptop
[X] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[X] Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

Have you tried the same use case with AVS Device SDK SampleApp?

[X] The issue is not applicable to the AVS Device SDK SampleApp.
[ ] The issue is not reproducible on the AVS Device SDK SampleAp
websocket error log.txt
p.

Adding ssl certificates used for testing.
certs.zip

Hello @sudharsantel,
Thank you for reaching out. I would suggest using absolute paths to the certificates in the config files. Could you please share the config files used here?

I have hard coded the following values in sampleApp.
sslCaFile = "/usr/share/WPEFramework/AVS/ca.cert";
sslCertificateFile = "/usr/share/WPEFramework/AVS/server.chain";
sslPrivateKeyFile = "/usr/share/WPEFramework/AVS/server.key";
Attached config files used.
config.zip

@sudharsantel
I took a look at your config, and I can see that there are a few missing properties which are related to the certificate. Please refer to the documentation here for the missing properties https://github.com/alexa/alexa-smart-screen-sdk/blob/master/modules/GUI/config/SmartScreenSDKConfig.md#config-parameters.
Can you please try assign the missing properties proper values?


Update README.md

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

Codecov Report

Merging #78 (6dec8f3) into main (a9de2e3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #78   +/-   ##
=======================================
  Coverage   45.71%   45.71%
=======================================
  Files          15       15
  Lines        1166     1166
=======================================
  Hits          533      533
  Misses        580      580
  Partials       53       53

Flag
Coverage Δ

unittests
45.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Clean up SuggestionProvider hierarchy

Any use for a static method on SuggestionProvider for some constant suggestions?
Also, a thought I had was about ArgumentParser not extending SuggestionProvider anymore. It just seems like it could be better designed than having ArgumentParser extend it but having implementations implementing a subinterface of SuggestionProvider as well.
What if ArgumentParser had a method that returned SuggestionParser? That way, the correct type of provider, blocking, nonblocking, strings, etc. would just be returned there instead of the overlapping interface implementations on separate types?


Make tag as optional

tag is not optional now to publish a package to npm. This causes an issue when a hotfix package is required to be released. So this version get released as latest and then manually needs to adjust the tag to flip it back to actual latest version. This PR is to support publishing package to npm without any tag. I have another issue in backlog to support setting latest and next tag automatically. This issue will be taken care separately.

Verified using @azure/template release pipeline to publish version 1.0.9-beta.798246 without changing tag:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=798246&view=logs&j=8a59aa26-f1cb-5dea-999b-76ab4b63e138&t=3aff0b02-11c2-52e1-59c8-fe61f5396ef2

Verified release without Tag variable.
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=805375&view=logs&j=8a59aa26-f1cb-5dea-999b-76ab4b63e138&t=3aff0b02-11c2-52e1-59c8-fe61f5396ef2


Call to ShellExecuteA causes engine failure

This happens primarily with links or any method that ends up calling ShellExecuteA or its derivatives. The link opens, but the engine fails with an ImGui error message:

Solution: ShellExecuteA indirectly emits a WM_PAINT message, which results in calling update again without calling Render() for the previous ImGui frame.


Navbar update

The Navbar is updated with new and minimalistic styles

Bad commit added the pull request by mistake


Add UNIFORM_NAME and Sealed for OperationShape

Motivation and Context

# is forbidden in some implementations and . is what is used as a replacement.
OperationShape should not be implemented by customers; we can't force them not to, but a hint to avoid it is helpful

Testing

Checklist

[ ] I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
[ ] I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When should one use UNIFORM_NAME instead of NAME?


Remove moot version property from bower.json

Per bower/bower.json-spec@a325da3

Hmm... doesn't hurt anyone but safe to merge.

Also just an FYI there are discussions to move bower to NPM anyway so I wouldn't really plan to support it for ever: bower/bower#1520

Also their maintainer says they probably won't ever use it: http://stackoverflow.com/questions/24844901/bowers-bower-json-file-version-property

Manually merged


Update StarRocksSinkOptions.java

auto add __op for primary key table even when user specified sink.properties.columns
What type of PR is this：

[x] BugFix
[ ] Feature
[x ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Problem Summary(Required) ：

auto add __op for primary key table even when user specified sink.properties.columns,
in case user use a bitmap datatype and need set up sink.properties.columns, may forget to add __op.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)
[ ] I have added documentation for my new feature or new function

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


Setting MinValue, MaxValue of Axis won't work

Y Axis range is still automatically set.
Actually I need 0-100% range but it is still set to -20 120 after setting MinValue to 0 and MaxValue to 100.
works well for X axis

You are using 0.7.0 right? I m fixing this now, and facing this issue for zooming and panning, max and min limits are being ignored in 0.7.0

This should be now fixed, with zooming and pannig commits to 0.7.0 please let me know if you still facing this issue.


Create an article about Changelog with AI

Changelog
A changelog is a record of changes made to a project, including new features, bug fixes, improvements, and other modifications. It provides a chronological list of changes made to the project, facilitating effective communication about the evolution of the software over different versions.

1. Category

1.1. Keep a Changelog

2. References

1. Category
1.1. Keep a Changelog
Keep a Changelog is a convention for documenting changes in software development. It provides a structured approach to creating and maintaining changelogs, facilitating effective communication about the evolution of the software over different versions.
By adhering to the conventions, developers contribute to creating a well-organized, comprehensible, and consistently formatted changelog, facilitating effective communication about the evolution of the software over different versions.
# Changelog

## [1.1.0] - 2019-02-15

### Added

- Danish translation (#297)
- Georgian translation (#337)

## [1.0.2] - 2018-01-11

### Fixed

- Italian translation (#332)
- Indonesian translation (#336)

## [1.0.0] - 2017-06-20

### Added

- Italian translation (#253)
- Indonesian translation (#321)

Conventions and Standards:

Version Header
Start each version entry with a header containing the version number and release date.
The version header in a changelog typically follows the Semantic Versioning (SemVer) format.
## [Version Number] - Release Date

Examples and Explanations:
## [1.0.0] - 2023-01-15

The header clearly indicates the version number and the release date. It serves as a marker for the beginning of a new section in the changelog, detailing the changes introduced in that particular version.

Readable Date Format
Using a readable date format in the version header enhances the clarity of the changelog. The date format represents a specific date in the ISO standard YYYY-MM-DD. ISO 8601 is an international standard for representing date and time in a machine-readable format.
Examples and Explanations:
## [1.1.0] - 2019-02-15

The date is presented in a way that is easily understandable by humans, providing a clear reference point for when a particular version was released.

Type Labels
Type labels categorize changes in a changelog, providing a clear indication of the nature of each modification.
Types of Labels:

Added

Introducing new features or functionalities.

Changed

Modifications or updates to existing features.

Deprecated

Signifying features that are marked for removal in future releases.

Removed

Elimination of existing features or components.

Fixed

Resolving bugs or issues.

Security

Addressing security-related changes or patches.

Examples and Explanations:
### Added

- Introduce new authentication module

### Changed

- Update UI color scheme

### Deprecated

- MarkingFunction() will be removed in v2.0.0

### Removed

- Remove deprecated API endpoint

### Fixed

- Resolve bug causing app crash on startup

### Security

- Patch critical security vulnerability

Each type label is followed by specific entries describing the corresponding changes made in that category. This categorization helps users and developers quickly understand the purpose of each modification in the software.

Links to Issues
Links to relevant issues, pull requests, or commit hashes associated with each change for detailed context. This provides additional context and allows users or developers to access more detailed information if needed.
Examples and Explanations:
### Fixed

- Fix null pointer exception, Issue [#123](https://github.com/example/repo/issues/123)

### Added

- Feature ABC, PR [#456](https://github.com/example/repo/pull/456)

By adding links, users and developers can access detailed information related to specific changes, enhancing the transparency and traceability of the development process.

Consistent Formatting
Consistent formatting in a changelog ensures a uniform structure for each entry. Typically starting with the type label, followed by a colon and a space, and then the description of the change. This uniformity enhances readability.
Examples and Explanations:
### Added

- New feature description

### Changed

- Updated component XYZ to use asynchronous calls

Maintaining a consistent format involves using the same structure for each type label entry, which contributes to the readability and clarity of the changelog.

Unreleased Section
The Unreleased section in a changelog captures changes that are ready but not yet released. It helps in preparing for the next version.
Examples and Explanations:
## [Unreleased]

- Added feature X
- Fixed issue Y

In this section, changes are listed just like in a released version, but the version number is set as Unreleased. Once these changes are officially released, they are moved to a new version header with the actual version number and release date. This section serves as a staging area for documenting ongoing work and changes that will be part of the next release.

Tools and Frameworks:
The generation and management of changelogs using these tools and frameworks streamlines the process of maintaining accurate and consistent changelogs in software development.

semantic-release

Automates versioning, releases, and generates a changelog using Conventional Commits and Semantic Versioning (SemVer).

auto-changelog

A command-line tool that generates a changelog based on Git metadata.

release-it

Automates versioning, releases, and changelog generation with additional features like pre-release and post-release hooks.

2. References

Sentenz Commiting article.
Sentenz Versioning article.

regularly reviewing metrics, identifying areas for improvement, and implementing changes, organizations can continuously improve the quality and efficiency of their software development efforts.


Work towards release

Modify and simplify the interface
Add monitoring UDF
Clean up dependencies

The medipix_setup routine is now pretty much a weirdly defined method of the Dataset object. Does it make sense to create the dataset object by calling prepare_acquisition() and splicing in the additional member, or would it be clearer to subclass from the dataset to implement the method?
In offline data, we use the load() method since we need the executor for initialization. The executor handles both data loading and data processing since each worker process can access the data, and running a task or other routine is pretty much stateless. The Dataset balances internally which parts of it should run on the main node and which parts run through the executor.
For live data, it is currently not clear to me what the role of the executor is. Do we even need it to initialize a live dataset?
TODO

[ ] Documentation
[ ] Unit tests

Contributor Checklist:

[x] I have added or updated my entry in the creators.json file
[N/A] I have added a changelog entry for my contribution
[ ] I have added/updated documentation for all user-facing changes
[ ] I have added/updated test cases

Reviewer Checklist:

[ ] /azp run LiberTEM/LiberTEM-live-data passed

@sk1p thx for the feedback! Could you perhaps have a look at the latest commit? It contains a proposal on how to integrate the control interface. I can't test it yet since the simulator only opens the data socket.

While working on the documentation I kept stumbling over the context manager method for initialization and teardown.
Context manager vs on_enter and on_exit
The current method puts quite some responsibility on the user: Implementing a context manager (a bit advanced for many users) and having to enter yet another context manager of the dataset in a specific way.
The way it is implemented now encourages the user to mix different concerns in the context manager, for example controlling the camera, controlling the microscope, controlling in-situ stuff etc. That makes it harder to make the code reusable
Just as an idea, what about using event handlers instead? I am not sure which one would be suitable, see maybe https://stackoverflow.com/questions/1092531/event-system-in-python
prepare_acquisition() vs subclassing
The context manager / event handler behaves a bit like additional methods of the dataset that are spliced in by prepare_acquisition(). We should consider if splicing is the best way or if maybe subclassing is cleaner and easier.

Discussion with @sk1p : We'll run with on_enter(...) and on_exit(...) passed into prepare_acquisition(). These methods will be called with a container object that contains the meta information about the acquisition, similar to UDFMeta. That allows to pass an arbitrary number and kind of meta info without complicating the API for users or breaking backwards compatibility.
The example should already show a pattern of one master function per live dataset that calls application-specific sub-methods in order to aid with modularzation and re-use. We should also see if we can find easy methods for common tasks such as setting the number of frames to match the dataset.
The control socket should not be part of the dataset, but should be handled separately so that users can send commands independent of an acquisition.
https://iffgit.fz-juelich.de/mrruska/mrruska/-/tree/master/holatem/notebooks/templates (not public) can server as a practical example regarding what to implement.

Discussion with @sk1p :

[ ] Resolve diamond dependency by creating a LiveDatasetMixin for the actual functionality, and doing double inheritance from that together with a regular Dataset to create an actual LiveDataSet.
[ ] Use StoppableThread, ErrThreadMixin from k2 branch to do "proper" error handling in simulator threads

Next Wednesday I'll test everything on the microscope with Ben. There I can work out the kinks, in particular draining the socket and getting the commands right so that the examples work with an actual Merlin detector. Possibly it also requires changes to the simulator so that it works with the production code.
After that I'd finalize the notebooks and include an example in Ptychography 4.0. And then it should be ready for the release!

What would we still have to do to merge? From my side this is pretty much done for now. :-)

I've gone ahead and merged it. Thanks!

The CI failures on master here are not relevant, they are fixed in #10


⚠ Turnos 24x7 has degraded performance

In 5f89040, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1160 ms

Resolved: Turnos 24x7 performance has improved in 831347b.


Remove setting and modifying eq version

What and why?
How to test?
Trello

/deploy manna

This was done in another PR (https://github.com/ONSdigital/response-operations-ui/pull/810)


fix(CMakeLists): build fails when using cmake on mac with Xcode as ge…

When you use cmake to build with xcode as a generator under Mac, the build will fail.
See https://cmake.org/cmake/help/latest/command/add_library.html#object-libraries

Thanks for the PR. However, you need to sign the CLA first.
It is also not clear why such a hack is necessary. Could you please explain? The CMake documentation you reference does not mention any problem with Xcode.

Thanks for the PR. However, you need to sign the CLA first.
It is also not clear why such a hack is necessary. Could you please explain? The CMake documentation you reference does not mention any problem with Xcode.

Thank you for your reply.
In the official CMake reference document, it is mentioned that: "Some native build systems (such as Xcode) may not like targets that have only object files, so consider adding at least one real source file to any target that references $<TARGET_OBJECTS:objlib>.". This is exactly the problem I encountered;
When I build glog, although Xcode prompts "Build Successful", it only generates libglog_internal.a, but not libglogd.a. If you generate dynamic libraries, then it will only generate symbolic links, and the final libglogd.0.7.0.dylib is not generated.
This can be solved by adding an empty temporary file, of course there may be a better way to do this, but so far this solves my problem perfectly.

Thanks for the explanation. Can't we just add an existing file such as any header instead of generating a bogus one? Or better yet get rid of the glogtest target completely and use the object library target directly? In either case, I want to avoid additional logic just for Xcode support.

Thanks for the explanation. Can't we just add an existing file such as any header instead of generating a bogus one? Or better yet get rid of the glogtest target completely and use the object library target directly? In either case, I want to avoid additional logic just for Xcode support.

I understand what you mean, so I made other attempts.
Add a cpp file that already exists (header files are not allowed, because they do not constitute a compilation unit), as follows:
add_library (glog
  $<TARGET_OBJECTS:glog_internal>
  src/logging.cc
)

This also solves the problem, and if you think it does, I'll resubmit the PR!

I pushed b8a251c091ec6ab98b43c5c70b27663b89b1c699 which deals with the issue. Please give it a try and let me know if you encounter any problems.


Clarify how storage providers can be made highly available

To make a storage provider highly available we made the oCIS driver map all cs3 operations to storage native  operations. While this ensures consistency when using the decomposedfs it does require deconstructing the filesystem. Currently, the ocis driver and the s3ng driver use the decomposedfs. Both drivers stone metadata in the filesystem. The oCIS driver stores blobs on disk, whereas s3ng stores them on S3 (tested on ceph).
The metadata on the filesystem requires a distributed filesystem if more than one storage provider should be able to access the same metadata, aka high availability. Distributed filesystems are ... finicky, and need to be tuned to the workload.
Generally speaking there are two paths forward:

Rely on the filesystem for everything. AFAICT only eos, cephfs and gifs are of relevance
don't bother with redundancy and rely on the orchestrator to start a storage provider on demand. We could store metadata in SQLite / litestream, blobs on S3. Startup of a storage provider for this is done in seconds. Which is tolerable for all scenarios I can currently think of. It should feel like the initial login takes a moment longer. When the operator detects errors in the transport layer we can kill the old instance and spawn a new one. Which makes more sense for a microservice architecture.

What about extremely large storage spaces? We could recommend eos, cephfs or gpfs for those scenarios. In order to migrate storage spaces between these systems we need to decouple the space and node id's from the underlying storage though. This can be done with a key value store that is used to look up nodeid to parentid mapping (do not use a nodeid to path mapping as this requires updating the path of all children when renaming a folder).
The nodeid to parentid lookup is part of the decomposedfs. We should use the store interface from go micro so we can swap the implementation.
We should add this to an ADR...

I dont believe anything will happen here.


How does Runed Store compare to toStore and fromStore recently added to Svelte 5?

Describe the feature in detail (code, mocks, or screenshots encouraged)
Thanks for this project - several good and useful utilities in here!
Now that Svelte 5 core has the functions toStore and fromStore similar to the Store utility from Runed, I'm wondering what this means for this library.
It would be useful to increase visibility that it's possible to work with stores and runes in the same project. Either through a thin wrapper in Runed, or just mentioning this in the docs. However, probably the best option is to just refer to the Svelte core docs.
What do you think?
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
https://svelte-5-preview.vercel.app/docs/imports#svelte-store

Yeah, we'll likely drop ours in favor of Svelte's unless there's a case @TGlide has for keeping them 😃

Nope, we should definitely remove it!

Thanks for clarifying!
Closing since this was fixed by https://github.com/svecosystem/runed/pull/184


Replace almost all uses of CollectingSubscriber with TestSubscriber

The remaining places are where we use noncopyable types, something which
TestSubscriber doesn't support.

Is it possible to make the TestSubscriber to work with value of T being std::unique_ptr?
DuplexConnection accepts Subscriber of std::unique_ptrfolly::IOBuf
  virtual void setInput(
      yarpl::Reference<yarpl::flowable::Subscriber<std::unique_ptr<folly::IOBuf>>>
          framesSink) = 0;

It would be helpful to have TestSubscriber to be used for DuplexConnection also.

Is it possible to make the TestSubscriber to work with value of T being std::unique_ptr?

No, because TestSubscriber supports forwarding its T items over to an inner subscriber.  This implies that T must be copyable, as it has to be stored in TestSubscriber's vector and sent to the inner subscriber's onNext(T).
We'd have to split that functionality out into another class if we wanted to support move-only types like unique_ptr.


Create a guide on .env variables loading

The current process is not clearly documented, create a new guide

@mcollina Hi Matteo, could you support little bit please, how can I use env variables in Platformatic? In the documentation, I saw an example with platformatic.json, but I can't use custom variables there due to schema definition, also, I saw in one issue, that I it's possible to get envs from fastify.platformatic.configManager.env, it exists, but there is no such field env in interface if use typescript
// platformatic.service.json
  "server": {
    "hostname": "{PLT_SERVER_HOSTNAME}",
    "port": "{PORT}",
    "logger": {
      "level": "{PLT_SERVER_LOGGER_LEVEL}"
    }
  }


Pro Nvidia cards are not supported

I'm not able to use my Nvidia T4 to run this training, it states that unfortunately my card isn't supported.

SOLVED
It actually was supported, I just had to mess around a bit with drivers and CUDA installations


[URGENT] Impossible to pass setup

With the new version, it's impossible to exit setup unless you have a mouse (which most people dont) @Fleker

Are you referring to the introduction screen? It should exit if you tap far
enough or press A on the last slide.

I have been pressing right, down, up, left, and select for minutes now.
Nexus player remotes don't have an A button

Ah, I must've forgotten to add support for remotes. Okay. I will fix this
tonight and in the meantime remove the update. Thanks for letting me know.
On Sun, Aug 23, 2015 at 5:34 PM, Brandon Giesing<EMAIL_ADDRESS>wrote:

I have been pressing right, down, up, left, and select for minutes now.
Nexus player remotes don't have an A button
—
Reply to this email directly or view it on GitHub
https://github.com/Fleker/CumulusTV/issues/34#issuecomment-133974174.

Test 1.2.8 and see how it goes


Small tweaks

Hmmm. even thought the function "attach_file" is no longer used for anything, it is referenced in an early migration file.

Hmmm. even thought the function "attach_file" is no longer used for anything, it is referenced in an early migration file.

Maybe add the code to the migration?


[10.1] ISPN-11284 Make the containerized server timeout configurable

https://issues.redhat.com/browse/ISPN-11284
Backport of #7835

Thanks @tristantarrant


Re-enable disabled notebook tests

Background
Latest version of notebook-connector is known to cause failures.
Still, the latest PR in the AI-Lab could be merged.
This was only possible because the tests for some of the notebooks had been disabled.
Additionally, different methods have been used to disable the notebook tests:

Disabled by renaming the file in folder notebooks
Disabled by @pytest.mark.skip
Disabled by missing GitHub jobs

See also issues

#298
#308
#317

Overview of Requested Changes and Future Steps
The current ticket requests to

re-enable all the notebook tests and to
add missing GitHub jobs

As currently, some of the tests are expected to fail, while we still want to enable merging other PRs to main, the current ticket requests to create a separate branch.
Only after fixing all tests, the separate branch is planned to be merged to main.
Acceptance Criteria

A separate branch is created, e.g. refactoring/#318-Enable-all-notebook-tests
The tests are enabled by adding a corresponding GitHub job for each of the following notebooks and applying the specified fix:

disabled_nbtest_cloud.py: rename file to nbtest_cloud.py
nbtest_transformers.py: remove @pytest.mark.skip
nbtest_sagemaker.py: remove @pytest.mark.skip

Please enable tests for cloud storage notebook by renaming the file disabled_nbtest_cloud.py.


Patch for PreScripts and PostScripts features

Hi @RamblingCookieMonster this a patch for to fix #36 and #37.
From now these two features are available and working.
Causes were some typos in code.
I have also included PreScripts and PostScripts into the logic for variable injection, so you can use the $PWD, $DependencyFolder etc also in these properties.
Finally, I fixed some documentation typos.
All tests passes.

Eek, someone was sloppy there!  Thank you for finding that and cleaning it up, sorry about that!


resources.json not included in pypi package

These lines don't seem to correctly package resources.json. I had to wget it directly into my virtualenv's site-packages/pyNASA folder after getting this error:
(Using Python 3.5)
In [2]: nasa = pyNASA()                                                                                [65/804]
WARNING:root:Requests made without an app_token will be subject to strict throttling limits.
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-2-4515acee3e8d> in <module>()
----> 1 nasa = pyNASA()

/home/fubar/.envs/nasa/lib/python3.5/site-packages/pyNASA/__init__.py in __init__(self, token, secret)
     10                 self.client = Socrata("data.nasa.gov", token)
     11
---> 12                 data = pkg_resources.resource_string(__name__, "resources.json")
     13                 resources = json.loads(data.decode())
     14

/home/fubar/.envs/nasa/lib/python3.5/site-packages/pkg_resources/__init__.py in resource_string(self, package_or_requirement, resource_name)
   1213         """Return specified resource as a string"""
   1214         return get_provider(package_or_requirement).get_resource_string(
-> 1215             self, resource_name
   1216         )
   1217

/home/fubar/.envs/nasa/lib/python3.5/site-packages/pkg_resources/__init__.py in get_resource_string(self, manager, resource_name)
   1455
   1456     def get_resource_string(self, manager, resource_name):
-> 1457         return self._get(self._fn(self.module_path, resource_name))
   1458
   1459     def has_resource(self, resource_name):

/home/fubar/.envs/nasa/lib/python3.5/site-packages/pkg_resources/__init__.py in _get(self, path)
   1575
   1576     def _get(self, path):
-> 1577         with open(path, 'rb') as stream:
   1578             return stream.read()
   1579

FileNotFoundError: [Errno 2] No such file or directory: '/home/fubar/.envs/nasa/lib/python3.5/site-packages/pyNASA/resources.json'

+1 - I get the same error

I just opened a pull request that fixes this.
On Sat, 29 Apr 2017, 16:05 emcfins<EMAIL_ADDRESS>wrote:

+1 - I get the same error
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bmtgoncalves/pyNASA/issues/1#issuecomment-298167906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOQDOji7lfdvYsCoUkukWzXjxvrmdS79ks5r0zWdgaJpZM4NMNLW
.

--
Software Engineer - Savannah Informatics Ltd.

what encoding should use? ascii and utf8 dnt work for me.
Traceback (most recent call last):
File "", line 1, in
File "/home/xx/python_dev/local/lib/python2.7/site-packages/pyNASA/init.py", line 13, in init
resources = json.loads(data.decode())
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I'm getting the following error when trying to run the simplest example:
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

from pyNASA import pyNASA
nasa = pyNASA
data = nasa.outgassing()
Traceback (most recent call last):
File "", line 1, in
AttributeError: class pyNASA has no attribute 'outgassing'

@pcuellar, you forgot to use the right syntax for initializing a class.
That should be
nasa = PyNASA()
On Mon, 1 May 2017, 21:28 pcuellar<EMAIL_ADDRESS>wrote:

I'm getting the following error when trying to run the simplest example:
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from pyNASA import pyNASA
nasa = pyNASA
data = nasa.outgassing()
Traceback (most recent call last):
File "", line 1, in
AttributeError: class pyNASA has no attribute 'outgassing'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bmtgoncalves/pyNASA/issues/1#issuecomment-298395293,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOQDOikdDOyhOL4dzceMdiAocs83Z5eEks5r1iRNgaJpZM4NMNLW
.

--
Software Engineer - Savannah Informatics Ltd.

I thought that was the case but PyNASA shows not defined. I already moved resources.json to the pyNASA folder

from pyNASA import pyNASA
data = PyNASA()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'PyNASA' is not defined

Forgive me for my ignorance. But how did you fix this? I installed pyNASA using pip install. However, I still get the same error. How should I manually load resources.json?

I opened a new issue at below link.
https://github.com/bmtgoncalves/pyNASA/issues/6

I just copied the resources.json file from code library of bmtgoncalves. So kindly ignore it.


how do i get fish-diffusion collab because can't find it on discord

how do i get fish-diffusion collab because can't find it on discord

Probably add @Kangarroar on discord, he may give you a form or link.


Add full reference for template to README

Signed-off-by: Apurva Koti<EMAIL_ADDRESS>What changes are proposed in this pull request?
Update the README to be a full reference for using the template to create a regression pipeline.
How is this patch tested?
n/a
Release Notes
Is this a user-facing change?

[ ] No. You can skip the rest of this section.
[x] Yes. Give a description of this change to be included in the release notes for MLflow users.

Updated README to contain full template reference
What component(s), interfaces, languages, and integrations does this PR affect?
Components

[ ] area/regression: Sklearn regression pipeline example
[x] area/build: Build and test infrastructure for MLflow pipeline example

How should the PR be classified in the release notes? Choose one:

[ ] rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
[ ] rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
[ ] rn/feature - A new user-facing feature worth mentioning in the release notes
[ ] rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
[x] rn/documentation - A user-facing documentation change worth mentioning in the release notes


Create UI/Sidebar [Help]

Hi
The PDB has a UI like this https://www.rcsb.org/3d-view/1IB1/1.
How to create such sidebar/UI for NGL, not needed to be so complex but simpler.
Thank You

No plan to do it for NGL but UI components will be part of Mol* (https://github.com/molstar/).


Add a document about how to compile and run the mvp dapp

PR: https://github.com/ckb-js/kuai/pull/149


Create program to find remainder of two numbers

Description
Added program to find remainder of two numbers
Issue No.- #151

Type issue number after hash(#)

Checklist

[x] Yes, this task assigned to me.
[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My Filename is in camelCase format
[x] I have added Problem statement, Problem link in file.

@aayushi-droid Can you please take a look at PR?


 I'm not going to dig through your code for you to try to debug it.

@Conduitry The project is lightweight and Incomplete
Here are quick start commands
git clone https://github.com/TechGunnerINC/TechGunner.git
cd TechGunner
docker compose -d up
code .

in one line:
git clone https://github.com/TechGunnerINC/TechGunner.git && cd TechGunner && docker compose -d up && code .

You need to fix this bug it's breaking my app

@antony @arxpoetica @babichjacob @baseballyama @benmccann @bluwy @Conduitry @dominikg @dummdidumm @EmilTholin @FractalHQ @geoffrich @ghostdevv @GrygrFlzr @huntabyte @ignatiusmb @jasonlyu123 @kaisermann @lukeed @mindrones @mrkishi @ota-meshi @PaulBGD @pngwn @Rich-Harris @s3812497 @SarcevicAntonio @spences10 @Swatinem @tanhauhau
Please fix this issue it's stopping my workflow


Bump tiled dep to v0.1.0a115

This is motivated only by keeping the container current.

The failure on 3.9 was due to PyPI caches not resolving v0.1.0a115 yet, which was just published. Others are fine, so I'm merging.


Not support for mac m1?

HW: Mac M1
SW: python 3.11
I'm trying to use this library, gecatsim, for handling CT file.
Like the following code, I got incomplatible.
I think the library isn't buildt for Mac m1.
Could you please provide new version for m1?
  File "/Users/kyh/Workspace/ct_mar/AAPMProj.py", line 92, in <module>
    sinogram = DD2FanProj(nrdetcols, x0, y0, xds, yds, xCor, yCor, viewangles, nrviews, sinogram, nrcols, nrrows, originalImgPtr)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kyh/Workspace/ct_mar/AAPMProj.py", line 42, in DD2FanProj
    clib = load_C_lib()
           ^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/site-packages/gecatsim/pyfiles/CommonTools.py", line 57, in load_C_lib
    clib = ll(os.path.join(lib_path, libFile))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/ctypes/__init__.py", line 454, in LoadLibrary
    return self._dlltype(name)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: dlopen(/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/site-packages/gecatsim/lib/libcatsim_macos.so, 0x0006): tried: '/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/site-packages/gecatsim/lib/libcatsim_macos.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/site-packages/gecatsim/lib/libcatsim_macos.so' (no such file), '/opt/homebrew/Caskroom/miniconda/base/envs/ctmar/lib/python3.11/site-packages/gecatsim/lib/libcatsim_macos.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

sincerely

Yes, you are correct - the library is for the x86_64 architecture, and not M1. Having said that, you can build the library on your machine by following these steps.

Get the sources by git cloning this repository.
Go to the gecatsim/clib_build/src directory.
From there, run the command: make -f ../MakeMacOS libcatsim_macos.so
That should build the libcatsim_macos.so library for your M1 platform.
Do let us know if you still have questions/issues.


DOC-3123 Corda 5 Developer Preview - documentation release

DOC-3123 Corda 5 Developer Preview - documentation release

Superseded by https://github.com/corda/corda-docs-portal/pull/238


fs.ensure_symlink throwing error in browser

Describe the bug
On line 8 of ensure_symlink.ts on-import the script checks if the user is on windows (const isWindows = Deno.build.os === "windows";). Deno however is undefined in browser throwing a fatal error.

Steps to Reproduce

Build project with:

import * as esbuild from "npm:esbuild";
await esbuild.build({ plugins: [...denoPlugins()], entryPoints: ["./src/in.ts"], outfile: "./dist/out.js", bundle: true, format: "esm", platform: "browser" });

Import in web:

    <script type="module" src="hydrafiles-web.esm.js"></script>
    <script type="module">
    import Hydrafiles from './hydrafiles-web.esm.js';
    </script>

Error in browser logs

Expected behavior
A check should be done before Deno.build.os === "windows" to first check if user is in Deno environment. For example:
const isWindows = window !== undefined && Deno.build.os === "windows";

Environment

OS: N/A
deno version: 2.0
std version: 0.221.0

I would have sent a pull request, but I am new to Deno. I'm not confident the error isn't my fault.

What is the expected behavior of ensureSymlink in browser?

What is the expected behavior of ensureSymlink in browser?

If it's imported in a script that runs in both browser and Deno, it throws an error on import. It should instead throw the error when ensureSymlink is called.

It should instead throw the error when ensureSymlink is called.

Ah, ok. That makes sense to me.