"TypeError" when view in Chrome64

Just installed to test this out, works fine in Firefox.
However with Chrome64 (not sure if will have same issue with 32bit) I get this in my console, and no page is opened in browser:
View In Browser plugin v2.0.0, Python 3
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "ViewInBrowserCommand in C:\Users\lee.hanbury.GINGERNUT\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package", line 198, in run
  File "ViewInBrowserCommand in C:\Users\lee.hanbury.GINGERNUT\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package", line 173, in loadPluginSettings
  File "ViewInBrowserCommand in C:\Users\lee.hanbury.GINGERNUT\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package", line 82, in getBaseCommand
  File "ViewInBrowserCommand in C:\Users\lee.hanbury.GINGERNUT\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package", line 68, in expandWindowsUserShellFolder
TypeError: expected bytes, bytearray or buffer compatible object

Any ideas of what would cause this, or how to resolve?

Hey I am also having the same issue and I am running Version 39.0.2171.95 m
I also changed my default browser in the "View in Browser" settings to chrome, along with the correct directory to the application. Thanks in advance.

Can you attach a snapshot of the error and your configuration files for the plugin please?

Hope this helps, let me know if you need anything else.

My Chrome appears to be installed to:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
So, really I am starting to think it's just looking in the wrong place.
I am using the default settings in View In Browser; I haven't touched anything.
{
	"posix": {
		"linux": {
			"firefox": "firefox -new-tab",
			"chrome": "google-chrome",
			"chrome64": "google-chrome",
			"chromium": "chromium"
		},
		"linux2": {
			"firefox": "firefox -new-tab",
			"chrome": "google-chrome",
			"chrome64": "google-chrome",
			"chromium": "chromium"
		},
		"darwin": {
			"firefox": "open -a \"/Applications/Firefox.app\"",
			"safari": "open -a \"/Applications/Safari.app\"",
			"chrome": "open -a \"/Applications/Google Chrome.app\"",
			"chrome64": "open -a \"/Applications/Google Chrome.app\""
		}
	},
	"nt": {
		"win32": {
			"firefox": "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe -new-tab",
			"iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe",
			"chrome": "%Local AppData%\\Google\\Chrome\\Application\\chrome.exe",
			"chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
		}
	},

	"browser": "firefox"
}

I've faced same error!
But when i checked for  Chrome installation, i found its located in:
C:\Program Files\Google\Chrome\Application\chrome.exe
After overriding that path in user settings solved my problem.
Thanks.


⚠ Feedaty widget has degraded performance

In ce3fca7, Feedaty widget (https://widget.feedaty.com/public/js/feedaty.js?merchant=10213975&style_ver=2021&data-sku=36263) experienced degraded performance:

HTTP code: 200
Response time: 1848 ms

Resolved: Feedaty widget performance has improved in 6e3fe9c after 10 minutes.


Cerebrate HW requirements: Bad link and missing info

The link to the HW requirements of cerebrate used here is:
https://github.com/cerebrate-project/cerebrate/blob/main/README.md#requirements-and-installation
but should be https://github.com/cerebrate-project/cerebrate/blob/main/README.md#user-content-requirements-and-installation
And the linked section says nothing about disk space, both for the native installation as well as for the docker installation method (which is additionally not linked the installation section).

Done, though the link looks fine to me.


Aerospike enterprise docker image not initializing.

I am trying to create a generic test-container using aerospike enterprise edition docker image. (https://github.com/aerospike/aerospike-server-enterprise.docker)
When I run the command mentioned in the readme of this github repo, it works properly I am able to connect and execute commands.
However, I am not able to mount the directory from test-containers (docker -v tried .withCommand() still facing same error) .  Getting following error:
java.lang.IllegalArgumentException: Resource with path  could not be found on any class loader.
Has anyone else faced this issue ?
Any help would be appreciated.

@ankitjain1997 please share your code, otherwise it is impossible to understand that fails and why.

aerospikeContainer
                    .withExposedPorts(3000, 3001, 3002, 3003)
                    .withEnv("NAMESPACE", "gpl2")
            .withFileSystemBind("/opt/aerospike","/opt/aerospike/etc",BindMode.READ_ONLY)
                    .withEnv("FEATURE_KEY_FILE", "path to feature file");

docker being used to run locally -
sudo docker run -tid --name aerospike -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 3003:3003 -v "$(pwd):/opt/aerospike" -e "FEATURE_KEY_FILE=~/feature.conf" aerospike/aerospike-server-enterprise
The code snippet being used does not work even if the path is changed to any other location.
Error thrown -> java.lang.IllegalArgumentException: Resource with path could not be found on any class loader.
Is there any other way to pass the docker -v option to test-container?

@ankitjain1997 could you please also share more logs (and full exception, not just the message)?
Also, in your docker run, you mount a folder under /opt/aerospike, while with withFileSystemBind, the destination is /opt/aerospike/etc - is it intentional?

@bsideup
I had made some changes and now getting following error while starting the container.
`java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:470)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:326)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:324)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:312)
at com.tests.impl.AerospikeContainerClient.lambda$start$0(AerospikeContainerClient.java:90)
at io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual(CompletableFromAction.java:35)
at io.reactivex.Completable.subscribe(Completable.java:2309)
at io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64)
at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
14:51:34.810 [RxCachedThreadScheduler-1] ERROR 🐳 [aerospike/aerospike-server-enterprise] - Log output from the failed container:
link eth0 state up
link eth0 state up in 0
Feb 09 2021 09:20:34 GMT: INFO (as): (as.c:306) <><><><><><><><><><>  Aerospike Enterprise Edition build <IP_ADDRESS>  <><><><><><><><><><>
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) # Aerospike database configuration file.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) # This stanza must come first.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) service {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   user root
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   group root
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   pidfile /var/run/aerospike/asd.pid
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # service-threads 6 # default is 5 x cpus
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # transaction-queues 6  # obsolete as of 4.7
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # transaction-threads-per-queue 4 #obsolete as of 4.7
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   proto-fd-max 15000
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   feature-key-file -~/features.conf
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) logging {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # Log file must be an absolute path.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   file /dev/null {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           context any info
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # Send log messages to stdout
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   console {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           context any info
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) network {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   service {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           address any
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           port 3000
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # Uncomment the following to set the access-address parameter to the
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # IP address of the Docker host. This will the allow the server to correctly
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # publish the address which applications and other nodes in the cluster to
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # use when addressing this node.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # access-address
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   heartbeat {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)         address any
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # mesh is used for environments that do not support multicast
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           mode mesh
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           port 3002
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # use asinfo -v 'tip:host=;port=3002' to inform cluster of
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           # other mesh nodes
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           interval 150
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           timeout 10
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   fabric {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)       address any
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           port 3001
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   info {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)       address any
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           port 3003
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) namespace gpl2 {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   replication-factor 2
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   memory-size 1G
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   default-ttl 30d # 5 days, use 0 to never expire/evict.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   nsup-period 120
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   #       storage-engine memory
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # To use file storage backing, comment out the line above and use the
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   # following lines instead.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   storage-engine device {
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           file /opt/aerospike/data/gpl2.dat
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           filesize 4G
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)           data-in-memory true # Store data in memory in addition to file.
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937)   }
Feb 09 2021 09:20:34 GMT: INFO (config): (cfg.c:3937) }
Feb 09 2021 09:20:34 GMT: WARNING (misc): (fetch.c:211) unable to open file -~/features.conf: No such file or directory
Feb 09 2021 09:20:34 GMT: CRITICAL (config): (features_ee.c:129) failed to get feature key -~/features.conf
Feb 09 2021 09:20:34 GMT: WARNING (as): (signal.c:166) SIGINT received, shutting down Aerospike Enterprise Edition build <IP_ADDRESS> os debian9
Feb 09 2021 09:20:34 GMT: WARNING (as): (signal.c:169) startup was not complete, exiting immediately
`
Mounting of the directory is still the issue AFAIK. Could you please guide how to pass the docker -v option through code that should solve the problem.
Also, the destination will be the same that was a typo.

@ankitjain1997 I think the failure is obvious:

unable to open file -~/features.conf: No such file or directory

Most probably, when you run it from CLI, ~ gets expanded into something like /home/your_user/. Consider replacing with an explicit value, as it is static anyways.

Could you please guide how to pass the docker -v option through code that should solve the problem.

P.S. withFileSystemBind is the correct API to use.

I am closing this issue as it does not seem to be related to Testcontainers and rather a misconfiguration.

@bsideup I replaced ~/features.conf with an explicit value.
In the logs which I presented above, I just replaced the entire path with ~/features.conf so as not to disclose sensitive company information.
I already tried replacing the path with the absolute and relative path.

@ankitjain1997 I recommend asking the Aerospike community for help. The container starts, files are mounted, but the process fails, which means that the process is misconfigured.
FTR other users were successful with Testcontainers and Aerospike:
https://github.com/testcontainers/testcontainers-java/issues/153#issuecomment-223946490


Problems after changing the display.

After changing Adafruit 9341 to the "no name" display 9341, the new screen displays only a square one, not a rectangular one.
For the Arduino system and with TFT_eSPI 2.5.34 drivers, after selecting #define ILI9341_2_DRIVER // Alternative ILI9341 driver, the screen works correctly under Arduino.
Below is a link to this topic with the problem.
https://github.com/Bodmer/TFT_eSPI/issues/1172

Restart the device and enter monitor mode.
Grab a copy of the log.
idf.py monitor

here you are

monitor.log

test.log

We need to see the monitor log to have any idea what is going on with that display.

what value is the SPI_Frequency set to in driver.cpp ?

In the log for my esp32:
I (40) boot.esp32: SPI Speed      : 40MHz
In your log
I (34) boot.esp32s3: Boot SPI Speed : 80MHz

I have ordered another ILI9341 so I can test it with one of my esp32s3 but i won't receive it until January.

driver.cpp is ok but in sdkconig not

its working without debug buttons

i think color inversion is RGB/BGR thing
on line 398
 spi_master_write_data_byte(dev, 0x08);
try replacing 0x08 with 0x00
if you set this value to 0x40 or 0x60 it should also cause the screen to rotate as per the doc.

the other option that could be messing up the color would this line here.
those are things to try but I think Memory Access Control is the best bet.

From the image above, it is clear that the image is flip horizontally, which a different setting in Memory Access Control can fix. I don't have an ILI9341 hooked to an esp32 device to test at the moment.  It is also possible that changing that settings can also fix the "square picture" things as it is the result of the image being drawn in the wrong orientation. Some experimentation is required here.

the colors are correct and horizontal flip is fixed.

if you change the resolution to 320x200. it should give you the full screen. although it might be interesting to see what is the exact bit combination to rotate it correctly.

I am sending drive.cpp with it there is no bar on the screen.
where can I find the level boards so that I can compare the colors, e.g. level with bricks, blue, green colors, such as a color control board.

driver.zip

alternatively you play the online version to checkout the colors
https://cfrankb.com/games/ems/cs3v2.html

-Thank you, the colors are set.

is it possible to configure ADC channels and joystick parameters in the sdkconfig file?
I use a Funduino joystick ver 2.0
`#define EXAMPLE_ADC1_CHAN0          ADC_CHANNEL_0       // pin 35 (x) BROWN
#define EXAMPLE_ADC1_CHAN1          ADC_CHANNEL_1       // pin 34 (y) WHITE

/*#if CONFIG_IDF_TARGET_ESP32
#define EXAMPLE_ADC1_CHAN0          ADC_CHANNEL_4
#define EXAMPLE_ADC1_CHAN1          ADC_CHANNEL_5
#else
#define EXAMPLE_ADC1_CHAN0          ADC_CHANNEL_2
#define EXAMPLE_ADC1_CHAN1          ADC_CHANNEL_3
#endif
*/`

` uint16_t joy = JOY_NONE;
if (adc_vry > 3000)					// extra org 50
{
joy |= JOY_UP;
}
else if (adc_vry < 50)				// extra org 3000
{
joy |= JOY_DOWN;
}
if (adc_vrx < 50)
{
joy |= JOY_LEFT;
}
else if (adc_vrx > 3000)
{
joy |= JOY_RIGHT;
}
`

-Thank you, the colors are set.

is it possible to configure ADC channels and joystick parameters in the sdkconfig file?
I use a Funduino joystick ver 2.0
`#define EXAMPLE_ADC1_CHAN0          ADC_CHANNEL_0       // pin 35 (x) BROWN
#define EXAMPLE_ADC1_CHAN1          ADC_CHANNEL_1       // pin 34 (y) WHITE

i'll add the channels to the config

/*#if CONFIG_IDF_TARGET_ESP32 #define EXAMPLE_ADC1_CHAN0 ADC_CHANNEL_4 #define EXAMPLE_ADC1_CHAN1 ADC_CHANNEL_5 #else #define EXAMPLE_ADC1_CHAN0 ADC_CHANNEL_2 #define EXAMPLE_ADC1_CHAN1 ADC_CHANNEL_3 #endif */`

uint16_t joy = JOY_NONE; if (adc_vry > 3000)					// extra org 50 { joy |= JOY_UP; } else if (adc_vry < 50)				// extra org 3000 { joy |= JOY_DOWN; } if (adc_vrx < 50) { joy |= JOY_LEFT; } else if (adc_vrx > 3000) { joy |= JOY_RIGHT; }

my joystick is working in reverse apparently.
one more thing to configure

the fonts are not cut off at the top, is it the display's fault?

displays have a dead zone at the top and it varies per model.
so we would have to set a y-offset for the font.

is it possible to configure ADC channels and joystick parameters in the sdkconfig file?

@spairo1741 I have created another issue to track the joystick configuration
https://github.com/cfrankb/esp-idf-cs3/issues/5

@spairo1741  does your generic iii9341 have a backlight? not having one could affect the colors.

something has changed, the images are more vivid, even the "no name" LCD strip has disappeared.

The Adafrui display has 7 illuminating diodes, the second board has only one diode.
But the changes are for the better!

@spairo1741 the only thing that i can think off is the merging of your driver.cpp changes during the latest refactoring of the code.

Does grandma have any weapons against monsters or does she just have to rely on her wits.
is it possible to financially support the esp-idf-cs3 channel?

Does grandma have any weapons against monsters or does she just have to rely on her wits.

only her wits at the moment as there are no plans to add weapons as this would change the game mechanic completely.
however, new power-ups were added in the remake (invinvibility, fast speed, extra life etc). no level is taking advantage of them at the moment.

* is it possible to financially support the esp-idf-cs3 channel?

not at the moment but i'll update you

gameplay changes moved to
https://github.com/cfrankb/esp-idf-cs3/issues/6
@spairo1741


Discrepancy between website and API representation

Hi, I was looking at Istio, on the website (https://endoflife.date/istio) it shows security support column:

But the API doesn't have this info:

How do I get this security column using the API?
Thanks

The security column is same as the EoL field for Istio.

The security column is same as the EoL field for Istio.

how do I know this? Make a guess?

The schema is documented at https://endoflife.date/docs/api. If you're looking specifically for the label that we're using - that isn't a part of the API, since the API should be product neutral.
Instead, we offer two fields for support, eol, discontinued, lts. Assuming you're using the data somewhere programmatically, that should work, since these are somewhat cleanly defined.
Do you have a usecase where you need the labels as well?
If you really need this information, this is all part of our frontmatter, so is picked up by other sources, such as DataTig, which provides it over an API: https://hub.datatig.com/gh/endoflife-date/endoflife.date/tree/master/type/products/record/istio/api1.json (browse at https://hub.datatig.com/gh/endoflife-date/endoflife.date/tree/master/type/products/record/istio). In the case of Istio, the eolColumnLabel field is coming from our defaults defined at https://github.com/endoflife-date/endoflife.date/blob/master/_config.yml#L72-L101. So you could do a JSON merge of our defaults + frontmatter and read the Labels.
Finally, our upcoming v1 API (#2080) has a labels key: https://deploy-preview-2080--endoflife-date.netlify.app/docs/api/v1/. See sample at https://deploy-preview-2080--endoflife-date.netlify.app/api/v1/products/almalinux/. Feedback is welcome

The schema is documented at https://endoflife.date/docs/api. If you're looking specifically for the label that we're using - that isn't a part of the API, since the API should be product neutral.
Instead, we offer two fields for support, eol, discontinued, lts. Assuming you're using the data somewhere programmatically, that should work, since these are somewhat cleanly defined.
Do you have a usecase where you need the labels as well?
If you really need this information, this is all part of our frontmatter, so is picked up by other sources, such as DataTig, which provides it over an API: https://hub.datatig.com/gh/endoflife-date/endoflife.date/tree/master/type/products/record/istio/api1.json (browse at https://hub.datatig.com/gh/endoflife-date/endoflife.date/tree/master/type/products/record/istio). In the case of Istio, the eolColumnLabel field is coming from our defaults defined at https://github.com/endoflife-date/endoflife.date/blob/master/_config.yml#L72-L101. So you could do a JSON merge of our defaults + frontmatter and read the Labels.
Finally, our upcoming v1 API (#2080) has a labels key: https://deploy-preview-2080--endoflife-date.netlify.app/docs/api/v1/. See sample at https://deploy-preview-2080--endoflife-date.netlify.app/api/v1/products/almalinux/. Feedback is welcome

Thanks for the explanation. It serves me well. I just wanted to somewhat replicate what you have on the website and the API is the only thing that I looked at, so it seems not possible if using just the API alone. This indeed turns out to be true.
Regarding my use case, I'm looking for an API that has security support label.

I just wanted to somewhat replicate what you have on the website

Can you help us understand this usecase further? Is this a private version of the website? Or a specialized version? We have a page documenting Known Users and would love add your usecase to the list.


write parquet in MultiZarrToZarr

@agoodm
combine currently creates an in-memory dict of all references before writing anything out. With the new parquet formalism, we could replace this dict with a write version of LazyReferenceMapper - maybe we can have a set of dicts that get filled, and when each one if full, write it and drop it, releasing the memory.
Thoughts?

Thanks for the ping, happy to be kept in the loop on this!
I need some time to think about this a bit more but I think this is a good starting point. I think a follow up question would be then how we handle writing the references out to parquet. I think a possible option would be to generalize the logic from refs_to_dataframe into the writable reference mapper object itself. Currently it needs to be given all references to write out all the parquet files, what I am thinking instead is that it can be initialized to extract variable names and metadata, then the parquet files can be written out in streaming fashion after a certain number of references key value pairs are set in the object above a certain threshold (maybe the record_size?) and then deleting them from memory.

Yes, I agree that a lazy writer for combine and the existing code in refs_to_dataframe at least share a certain amount of logic. The biggest difference, is that combine has whole datasets (or file systems) as the outermost loop, rather than fields/directories.
As you say, both access patterns could probably be served by a generalised lazy writer. You would need a set of objects, each with an independent  (paths,offsets,sizes,raws) and count of how many paths have been set so far. The instance can remember the path it's supposed to write to and do write-and-clear when all the references have been set.


[VS Code] Timed out waiting for agent process to start.

Error:
Timed out waiting for agent process to start.
Steps to Reproduce:

Trying to log in for VSCode Live Share

Version Data

extensionName
VSLS

extensionVersion
0.3.292

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.24.0

platformName
Linux

platformVersion
4.15.0-23-generic

It's not all the time, just some times.

Thanks for the info @luchillo17 . Could you give me some kind of idea of your hardware setup? We've noticed this issue happening on slower machines.

Thanks for the info. We've found this can sometimes happen on slower machines. However, sometimes this is also due to a .NET crash. Could you attach your logs to 360? I'm closing this issue as a dupe of that one.

I haven't been able to repro again, this was sent directly by the extension logs, from the button that says report the issue, seems strange to me that it didn't shipped the log with the report.
Anyway haven't been able to repro again so far.

Ok. Good to know. And yes, we've plans to give users the option to upload their logs when they report a problem (we wouldn't do it automatically because some users would like to inspect the contents first). Since this hasn't repro'd in your case, it was probably a legitimate time-out that happened, so your logs wouldn't provide any extra info.


refactor: use union types

Issue #6, Closes #6

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.907%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
376

Relevant Lines:
388

💛  - Coveralls


Refactor to use new F1Score over F1

Describe the bug
Torchmetrics has deprecated the use of F1. They now specify to import F1Score. This is a breaking change with the current requirements has broken Anomalib.
To Reproduce
Steps to reproduce the behavior:

Install fresh anomalib
Run any anomalymodule

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Hardware and Software Configuration

OS: [Ubuntu, OD]
NVIDIA Driver Version [470.57.02]
CUDA Version [e.g. 11.4]
CUDNN Version [e.g. v11.4.120]
OpenVINO Version [Optional e.g. v2021.4.2]

Additional context

Add any other context about the problem here.

This seems to have already been fixed in development.

@samet-akcay In relation to the above, would it make sense to separate and fix requirements in setup.py? At the moment 0.2.6 is not usable.

@dreaquil, there will be a new release, v0.3.0, before 24th of April.


feat: use published bifold

Adapt BC Wallet to use the @hyperledger/aries-bifold-core packages published to NPM.

Other than my comment LGTM


Fix handling of lazy vectors in FilterProject operator

Currently the expression evaluation via ExprSet keeps track of all
input fields that are multiply referenced among all expressions
and pre-loads them before starting evaluation. However, a
FilterProject operator can have a field that is singly referenced
among its filter and projection expressions but is also an identity
projection. This patch makes sure that these kind of fields are
identified and pre-loaded to avoid running into issues of partially
loaded lazy vectors.
Test Plan:
Added unit test

related to  #2501


Item Actions: Edit/Delete

Update and Delete ActivityPub items

Added Delete in 250feae44d59973a626b6e78d42f274be9453185
Added Edit in cfb5b66c9d543336a871828d64d28b82e313a7e6


⚠ Bofrost.at has degraded performance

In d81389c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1866 ms

Resolved: Bofrost.at performance has improved in c087eed.


Fix/invert loadbalancer label on control planes

Hi, I can't find the "staging" branch mentioned in the contribution section of the readme, so I'm targeting master for now?
I've had the issue of the label node.kubernetes.io/exclude-from-external-load-balancers being set to true with allow_scheduling_on_control_plane=true in my configuration. After searching for the issue it seem to me that the conditions are not being set correctly.
There are two separate concerns mixed: the loadbalancer targeting the control planes (set via an "exclude" meaning inverted label) and the scheduling of load on the control planes (set via the ":NoSchedule" taint).
The condition for the loadbalancer label seems to have been inverted. (I'm not sure how it would have been possible that this was not detected before, which makes me doubt my solution.)
I have now tested the cluster setup with 3 control planes with allow_scheduling_on_control_plane=true and the label was set to node.kubernetes.io/exclude-from-external-load-balancers: "false" which should be correct. However, the LoadBalancer still did not target the servers. Maybe there are additional issues?

@mattanja Thanks for noticing, I will investigate and test your changes.

@mattanja Your fix was accurate! Thanks for this. It's been released in 1.10.6 🙏🚀
If you still do not see the control plane as target list, please try to see if there are any remaining NoSchedule taints on those. Normally there should not be when allow_scheduling_on_control_planes is set to true!
Let me know, and don't hesitate to open an issue to investigate this deeper, or provide an additional fix.


add gpu dployment

Signed-off-by: Slyne Deng<EMAIL_ADDRESS>Please dont merge this pr.

Add export onnx
Add gpu runtime

To do:

Add PTQ & QAT training codes

Next steps:
@Ding Wen will help test: runtime/server/x86_gpu/README.md to double check.

QAT is also introduced in the PR?


[build] invoke lit with python3 unconditionally

The mechanism to revert to the old mechanism introduced in #272 was only
introduced for an abudance of caution.

@swift-ci please test

I personally did not resort to use that, and cannot find it used in Swift codebase as well.


Updated description for kubeadm init --kubernetes-version

Update documentation based on code changes in kubernetes/kubernetes#41820
cc @luxas

This change is

@chenopis thanks for review. updated.

@kad Great, thanks!

Hmm, this shouldn't have been merged into master but the release-1.6 branch (do we have one?)

@luxas Thanks for catching that. Yes, there is a release-1.6 branch open that this can be merged into.

I think you should be able to cherrypick this to a new PR for the v1.6 branch, then it's okay for me :+1:

@luxas Ok, thanks!

Ok, this has been cherry picked and merged into release-1.6.


record field value with comma not ingested

HI Team,
we are using logfmt (logfmt_parser.go) as DataFormat for our logs.  log record of field value with comma is not ingested into logrange.
Root cause: comma is used as delimiter at https://github.com/logrange/logrange/blob/master/pkg/scanner/parser/logfmt_parser.go#L105
I have spent some time in looking at the flow. Following changes are required to support comma in field value.

wrap the field value in double quote

rec.Fields += "," + key + "=" + fmt.Sprintf("%q", val)

Use fields as []string in place of string in record.go (https://github.com/logrange/logrange/blob/master/pkg/scanner/model/record.go#L36) and change ingester.go#write (https://github.com/logrange/logrange/blob/master/api/ingestor.go#L30) to support fields as []string
i may need to spend some more time to find ingestor implementation.

Could you please suggest us the better approach to support comma in field value ?
Thanks.

Hi @adasari, you can have a field value with comma, but you have to put the value in quotes. The only problem is the value will be returned with quotes as well. To make it works you have to  change the line in logfmt_parser.go where the rec.Fields value is populated. I am not sure any other change is needed.
The fields are persisted into the records in  format of Fields (https://github.com/logrange/logrange/blob/master/pkg/model/field/field.go)
but while they are delivered to the server they are encoded in key=value form, so only the way to have symbols like '=' and ',' is to quote the value string.

@dspasibenko - thanks for the response. i understand the the problem that value will be returned with quotes. logfmt.Unmarshal trimming double quotes. let me check with single quotes. Thanks.

@dspasibenko i have tesed with single quote. logfmt_parser.go not trimming the single quotes, rec.Fields is looking good. but still it is not working.
test details are
lr>select from pod like squote
type='hello' level=debug
type='hel,lo1' level=debug

total: 2, exec. time 4.862069ms

lr>select "{vars}\n" from pod like squote
cid=squoteb8bb933f3ccabcdc3a9b10647c70d401be2d86ee328ab603ddeb08c65c45b27,cname=squote,ns=squote,pod=squote,stream=stderr,type='hello',level=debug
cid=squoteb8bb933f3ccabcdc3a9b10647c70d401be2d86ee328ab603ddeb08c65c45b27,cname=squote,ns=squote,pod=squote

total: 2, exec. time 3.70513ms

second record missing type and level fields.

i see field.go (https://github.com/logrange/logrange/blob/master/pkg/model/field/field.go#L92) returning an error when field value contains comma(in both with and without quotes cases) which is ignored in logrange to persist the log record.

we have changed the code to use 0 byte char as field delimiter to support comma in the field value.


[Feature] Thorchain LP Support

Overview
This ticket is meant to the parent to aggregate tasks related to full thorchain LP Support in the app.
Full Spec
https://www.notion.so/shapeshift/ThorChain-LP-Full-Spec-12f27d28ec6d41d181610ee867f06b75 <- note this is a WIP and while the UI and spec will continue to evolve, we can get started on some of the core functionality we know we will need.
Figma
https://www.figma.com/file/hq8z2S8QwL2DciuGR8b0GR/Thorchain-LPs?type=design&node-id=740%3A467&mode=design&t=d3FZVfDYp3aTIZiF-1
Tickets

[x] https://github.com/shapeshift/web/issues/5939
[x] https://github.com/shapeshift/web/issues/5957
[x] https://github.com/shapeshift/web/issues/5958
[x] https://github.com/shapeshift/web/issues/5959
[x] https://github.com/shapeshift/web/issues/5967
[x] https://github.com/shapeshift/web/issues/6020
[x] https://github.com/shapeshift/web/issues/6021
[x] https://github.com/shapeshift/web/issues/5960
[x] https://github.com/shapeshift/web/issues/5968
[x] https://github.com/shapeshift/web/issues/6019
[x] https://github.com/shapeshift/web/issues/6021
[x] https://github.com/shapeshift/web/issues/6022
[ ] Simulator for changes to LP positions
[x] https://github.com/shapeshift/web/issues/6091
[x] https://github.com/shapeshift/web/issues/6093
[x] https://github.com/shapeshift/web/issues/6094
[x] https://github.com/shapeshift/web/issues/6095
[x] https://github.com/shapeshift/web/issues/6096

Useful Links

LP Maths

https://github.com/xchainjs/xchainjs-lib/blob/master/packages/xchain-thorchain-query/src/utils/liquidity.ts
https://github.com/thorswap/SwapKit/blob/develop/packages/swapkit/helpers/src/helpers/liquidity.ts
https://gitlab.com/thorchain/thornode/-/issues/657

LP Calc
Midgard
LP position lookup quickstart
Examples (these might be a bit stale)

Add Liquidity
Remove
https://github.com/xchainjs/xchainjs-lib/blob/ade387b59d8fb2bbb86ef875200764c808d0426f/packages/xchain-thorchain-query/src/thorchain-query.ts#L317

Closing for now, will circle back on priority of simulator when TC LP TVL > 2million


minor CORS bugfixes

fix typo accessl-control-expose-headers => access-control-expose-headers
ensure access-control-request-headers as well as @Cors(allowedHeaders) values are case insensitive

LGTM


Splash UI

Hi, could you please explain to me how you connected the Splash UI defined as initial route ('/') in GetMaterialApp?
I do not understand how you get to login page if you have not defined a "home" parameter in GetMaterialApp.
Cheers,
Andrea

app routes are defined here. https://github.com/delay/flutter_starter/blob/b34120adcfdb363699aab40d4561701be2ba5b5c/lib/constants/app_routes.dart
and the initial route is set in main.dart
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ThemeController.to.getThemeModeFromStore();
    return GetBuilder<LanguageController>(
      builder: (languageController) => Loading(
        child: GetMaterialApp(
          translations: Localization(),
          locale: languageController.getLocale, // <- Current locale
          navigatorObservers: [
            // FirebaseAnalyticsObserver(analytics: FirebaseAnalytics()),
          ],
          debugShowCheckedModeBanner: false,
          //defaultTransition: Transition.fade,
          theme: AppThemes.lightTheme,
          darkTheme: AppThemes.darkTheme,
          themeMode: ThemeMode.system,
          initialRoute: "/",
          getPages: AppRoutes.routes,
        ),
      ),
    );
  }
}

To be honest I am probably not the best person to answer this anymore.  I haven't really coded in flutter in a couple of years.  I am building stuff with sveltekit and vanilla javascript these days. GetX has a bunch of user tutorials at the bottom of this page. https://pub.dev/packages/get#community-channels

@faviasono I am trying to answer on behalf of @delay as he is busy with other things.
Please go to Lib->Controllers->auth_controller.dart. Check the code after init (i guess). Now you can refer the code and check getX documentation for "Get.off() & Get.offAll()"
Code:
handleAuthChanged(_firebaseUser) async {
    //get user data from firestore
    if (_firebaseUser?.uid != null) {
      firestoreUser.bindStream(streamFirestoreUser());
      await isAdmin();
    }

    if (_firebaseUser == null) {
      print('Send to signin');
      Get.offAll(SignInUI());
    } else {
      Get.offAll(HomeUI());
    }
  }


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_65m6icuoow/clone/recipe/meta.yaml:14: uses_setup_py: python setup.py install is deprecated.
WARNING: /tmp/abs_65m6icuoow/clone/recipe/meta.yaml:39: missing_description: The recipe is missing a description
ERROR: /tmp/abs_65m6icuoow/clone/recipe/meta.yaml:39: http_url: http://github.com/zacharyvoase/cssmin is not https
Errors were found


Added the best currency of all: ₿

Like you're project tho.
Small website, huge productivity impact.

Thanks for your contribution, @Bastiaantjuhh! I don't think the Bitcoin symbol is something I'm going to personally find useful, so I'm going to refrain from adding it.


Updates students-and-graduates page to use templates

Updates students-and-graduates page to use templates introduced in https://github.com/cfpb/cfgov-refresh/pull/686
Additions

Added templates for career page summaries.

Changes

LinkedIn text per @sarahsimpson09 comment.
Minor apostrophe fixes.
Moved careers-specific templates from the global _includes folder to the careers folder.
Updated students and graduates page to:

Remove wrapper section.
Use templates for bottom half of page, for blocks that get reused elsewhere in careers.
Changes title to "Students and Recent Graduates."
Adds borders and removes bottom margin from footer.
Adds disabled link styling.

Updated working at the CFPB page to:

Use related links template.

Testing

Appearance of /careers/working-at-cfpb/ and /careers/students-and-graduates/ should be similar.

Review

@KimberlyMunoz
@jimmynotjim
@sebworks

Preview

Full bottom area:

Notes

I don't think we have a pattern for includes that are for one section only. Unfortunately I don't think we can include a directory there to match the ./_includes structure so I prefixed the templates with _template- to match _vars-. If this works, /events/ should follow the pattern too for its local includes.

:+1:

:+1:

Since this changes how the templates are structured, can you merge so I can pull it into the Applying to CFPB page?


[Bug] Subscription auto list clients

Creating a subscription and searching for client is not listing any contact.

So, for whatever reason the client search doesn't work for clients that don't have their last name defined

We should rework the client selector. It depends on old code carried from BB and we can improve the styling.

I tried adding a last name but it still same @BelleNottelling maybe reworking as @evrifaessa suggested will do.

Hey @tobsowo this should now be working correctly with 0.2.4.
I'm going to close this as resolved, feel free to reopen if the issue is still ongoing

Yes, fixed.
I noticed the drop down list is not using the admin theme but no worries, it's working.


Multi backend support

This adds support for multiple backends, so only a single instance of Clammit needs to be running instead of one per application.
By default it works the same as it does now, using the application-url configuration option, however if that is omitted it will look at the X-Clammit-Backend HTTP headers to for which backend to support. Here is an example Nginx configuration:
location ~ ^/documents/(.*) {
  proxy_set_header X-Clammit-Backend unix:$my_app/.sock;
  proxy_pass http://unix:$clammit_app/.sock;
}

The header is only checked if the application-url option is missing, so as long as the header is set in Nginx it can't be used to proxy to arbitrary hosts. I was considering having the backend URLs stored in the clammit config, and then the header just being a key to select the backend, but I like this way better as it means the configuration only needs to be done on the HTTP server.

nice! :+1:


Remove log persistence

Encourage http://12factor.net/logs

See #554 for arguments about 12factor in general, and the documentation regarding how to set this up for sysadmin-friendly deployment.


Wifi Bulbs (CW, CW) Flashing Not Completed

Did you have issues getting a device to flash?
Yes it's Wifi Smart Bulb CW and WW colors and the bulb stops blinking and it takes an IP address (not <IP_ADDRESS>, but something else within the same range) then i only see dots without any progress on Putty (Picture Below). and the port 80 is not opened in the bulbs. Bulbs Firmware version is 1.2.0 and here is below the logs files.
smarthack-smartconfig.log
smarthack-mqtt.log
smarthack-web.log
smarthack-wifi.log

Thank you in advance !!

Unfortunately the most likely culprit in this case is incompatible Tuya firmware.


GraphQL schema of the platform API

As a developer I want to have a standard compliant Graphql schema because I want to generate a typed client to the API
Background
First, congrats and many thanks a lot for this project and the opentargets platform as a whole !
We want to use the opentargets API (ponctual and adhoc calls) from our web application.
https://api.platform.opentargets.org/api/v4/graphql/schema describes the graphQL api of the platform.
But this schema file is unusable  for tool like graphql-codegen, because it contains non-standard elements (Long type doesn't exists in GraphQL).
Maybe there is additional steps to transform this schema into a standard-compatible one, but we didn't found them. If so, feel free to point us to the right ressources.
Tasks

[] TBD

Acceptance tests
How do we know the task is complete?
Client types and client generation with graphql-codegen should work when using the schema URL (https://api.platform.opentargets.org/api/v4/graphql/schema) as an input

Sorry for the noise, I had some issues in my codegen config.


change location of sqlite db path

@hughess does this mean absolute paths as they're documented will stop working and SQLite files are expected to be inside a specific directory within the project?

@edgarrmondragon that's what we're testing at the moment, but this is only going into a pre-release branch, so it won't take effect in any projects yet.
We're testing having the SQLite files expected in the root of your Evidence project. If you had a script dropping in a db file, it should work by setting the path to be relative to the root of the project rather than absolute.
Would that work for your use case or create issues for you? I can also show you what we're working on with this if you have time and want to do a screenshare

Would that work for your use case or create issues for you? I can also show you what we're working on with this if you have time and want to do a screenshare

@hughess  Yeah that works, I just wanted to confirm. I saw you're using it as part of a new tutorial so it makes perfect sense 😄. Thanks!


Not possible to call Template.instance() and Template.currentData() inside the computed function

A global Tracker.autorun is used internally and not the template one. Sadly, you cannot really nest template ones either. So it is not possible to use template one internally either, because you would not be able to use computed fields to minimize propagation of the reactivity.
Same issue as: https://github.com/awwx/meteor-isolate-value/issues/2
Probably this should be a Meteor level solution: https://github.com/meteor/meteor/issues/4494

Maybe we could use current Template.instance()'s autorun when not ran inside an autorun, so that inside onCreated it would automatically cleanup the autorun when template gets destroyed, but it would not use template's autorun nested.

With 0.5.0 version computed field created inside onCreated and onRendered will automatically use template's autorun and thus be stopped when template is destroyed.
Sadly, template's autorun cannot be nested one is still unable to access Template.instance() inside a computed field inside template's autorun. But one can access it now inside top-level computed field (one directly inside onCreated and onRendered).


Feature/rewrite plugin webpack

Ok so this is quite a big rewrite. In the light of core ticket #40894 I wanted to rewrite the plugin using webpack and more modern ES6 syntax of JS. Plus I wanted to separate business from presentational logic.
It is quite a bit away from your old plain jQuery, but I think that it's understandable enough and that it can encourage others in the WordPress community to start working with modern JS tools :)
I've made several modifications:

Updated the readme with the build process
Updated package.json with additional information, and dependencies
Added ES linter
Added babel for backward compatibility (needs testing on IE11)
Cleaned up the code a bit, added proper messages that should be in the ajax response if something is wrong
Changed POST to GETrequests in the callbacks, since we are not writing anything to the database - it's semantically more correct

To do:

Replace css with sass in another PR

@grappler @ernilambar did you have the time to look at the PR? I would like to start with namespacing the plugin, and maybe adding some unit tests if necessary.

@dingo-d Sorry for the delay. Thank you for working on this.
A couple a of comments and requests

Could we add the ajaxStopped text to the progress bar?
When choosing a new theme while a check is running hides the progress bar.

@grappler Hi I made the changes you requested, should be better now. I made it so that when you switch the theme the checking will stop. Seems like ok behavior to me.

@grappler I fixed all the collisions, I should I try to clean the commit history with interactive rebase?


Grey out code in inactive preprocessor branches

Eclipse CDT and cquery have a neat feature where code in an inactive preprocessor branch is greyed out. This makes it more readily apparent when you're looking at code in an inactive preprocessor branch (right now, the only clue is the lack of semantic highlighting, which is more subtle).
There is no dedicated LSP protocol for this, so we'd have to make up an extension (that's what cquery does). We could then propose the extension for standardization.

or we could just use semantic highlighting and give a different color to
whole range?
On Fri, Aug 23, 2019, 9:56 PM Nathan Ridge<EMAIL_ADDRESS>wrote:

Eclipse CDT and cquery have a neat feature where code in an inactive
preprocessor branch is greyed out. This makes it more readily apparent when
you're looking at code in an inactive preprocessor branch (right now, the
only clue is the lack of semantic highlighting, which is more subtle).
There is no dedicated LSP protocol for this, so we'd have to make up an
extension (that's what cquery does). We could then propose the extension
for standardization.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/clangd/clangd/issues/132?email_source=notifications&email_token=AAG3EE6WOE2ZT6ODGFRU3JLQGA6HHA5CNFSM4IPC2242YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHDYBCA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAG3EE6LHANP5OLUUQB3AF3QGA6HHANCNFSM4IPC224Q
.

Yes, this is a possibility. In fact, on the client side, cquery uses the same API as semantic highlighting (setDecorations()) to style the code.
However, the style for inactive code is applied to the background, while the style for semantic highlighting is applied to the foreground, so I don't know how much sharing between the two mechanisms makes sense.
I would also like, in the future, to apply semantic highlighting to inactive code as well, in which case the foreground decorations for semantic highlighting can be merged with the background decorations for inactive code.

Is this feature is still TBD or perhaps does any of the recent semantic highlighting work cover this?

Is this feature is still TBD or perhaps does any of the recent semantic highlighting work cover this?

The old semantic highlighting protocol has support for in in clangd, but there is no corresponding client-side support. I did write a vscode implementation which I use locally, but review of that has stalled.
I should probably focus my efforts on getting it to work with the new protocol.

After https://reviews.llvm.org/D85635, I think it already works in VSCode with the new SemanticTokens protocol (https://github.com/clangd/vscode-clangd/pull/54/files).

I see that this feature has been enabled in clangd-12. There are cases where it is nice to have semantic highlighting "on" for inactive preprocessor branches. Is there a way to have clangd-12 do semantic highlighting on inactive preprocessor branches?

Is there a way to have clangd-12 do semantic highlighting on inactive preprocessor branches?

Not really. Semantic highlighting is based on the AST, and clang does not build an AST for inactive preprocessor branches, it's just token soup.
Providing semantic highlighting for the inactive branches would require something like re-parsing the file with different sets of flags (so that each region is active in at least one parse), and then merging the tokens; this is likely to be prohibitively expensive.

IE: A way to switch off this new feature?

Note that clangd would not provide semantic highlightings for inactive branches in older versions, either. If you saw any highlighting there at all, it would have been your client's lexical highlighting (e.g. vscode's TextMate rules).

I see. Thank you for the reply.
"If you saw any highlighting there at all, it would have been your client's lexical highlighting (e.g. vscode's TextMate rules)."
This is consistant with what I'm seeing. When I open a file, every line of code is highlighted but 1 sec later the inactive preprocessor branch code highlighting switches to comment style highlighting. Is there a way to have clangd-12 somehow not enforce it's inactive preprocessor branch highlighting so vscode's highlighting can persist for these lines of code? If that is not possible, is there a way to swtich off clangd-12's lexical highlighting entirely (while keeping everything else that clangd provides)?

There's clangd/vscode-clangd#193 and microsoft/vscode#123352 and there's also a setting for semantic highlighting.

You raise an interesting point: in https://github.com/clangd/vscode-clangd/pull/193 I implement an enhancement where the inactive regions get a grey background styling instead. However, they still have a (darker) grey foreground as well. I wonder if, instead, I could keep the grey background but omit a foreground style altogether, and that might result in the client-side foreground colors being retained (and combined with the grey background). That would be a nice improvement.

Closing this as there's little we can do on the server-side. We can either wait for LSP to have a dedicated token kind for inactive/dead code (microsoft/vscode#123352) or start providing a custom one in clangd. As mentioned above the latter is not preferred and won't really solve the solution for clients that don't implement this extension. The former we can pick up, as soon as its available though.
For the vscode-clangd though, there's a discussion in https://github.com/clangd/vscode-clangd/issues/85 and patch @HighCommander4 prepared at clangd/vscode-clangd#193. Feel free to chime in there (and hopefully we'll get to the patch soon).

In case anyone following this old issue has missed it: in https://reviews.llvm.org/D143974 (to appear in clangd 17), clangd has gained support for a custom protocol extension for inactive regions, with client-side support in vscode added in https://github.com/clangd/vscode-clangd/pull/193.
Unlike the previous approaches, this one has the flexibility that it allows clients to style inactive regions in a way that combines with client-side highlighting (for example, in vscode, the inactive regions have either a reduced opacity or a modified background color, while retaining the foreground colors from the client-side TextMate tokens).
If the maintainers of any other clients are interested in implementing this protocol extension (and/or providing feedback on it), that would be welcome.

If the maintainers of any other clients are interested in implementing this protocol extension (and/or providing feedback on it), that would be welcome.

Thanks for pushing this into clangd!
I'm working on a little emacs package supports inactiveRegions notifications using eglot (emacs built-in mode for language server support). It's still mostly an experiment but if anyone's interested you can check it out  here. Feedback welcome!
Seems a really useful extension, any idea if this is ever going to enter the official LSP protocol?

any idea if this is ever going to enter the official LSP protocol?

I'd like to gather a bit more usage experience with the protocol (it's yet to appear in a vscode-clangd release, though hopefully it will soon per https://github.com/clangd/vscode-clangd/pull/516), and then propose it as an addition to LSP.


embassy-net hangs creating TcpSocket with feature dns

This is with embassy-net 0.4.0
This is running on a rp2040w
Have an application that works without issue connecting to numeric IP addresses without dns.  Simply enabling feature dns causes the application to hang when calling TcpSocket::new() with the same tx and rx buffers.
I double-checked the A-B test, and simply enabling the DNS feature causes the application to hang.  I am not attempting to query the DNS, simply create the TcpSocket after net initialization.
If I do try to query an address using DNS, the query does work, but the TCPSocket still hangs the device.

do you have a debug probe to view logs? or are you viewing them through embassy-usb-logger or similar? If it's the latter, it's probably a panic instead of a hang, and you'd be able to see the panic message if you had a debug probe.
Most likely reason is you most likely have to increase the max socket count in embassy-net's StackResources.

I suspect you're right and increasing the SOCK generic argument from 2 to 4 did seem to fix it.
I have now enabled the embassy-usb-logger, but I did not see a panic message.  This is secondary to my original question, but how do I enable panic messages to be sent through the usb logger?

embassy-usb-logger can't send panic messages. When a panic occurs, the firmware is crashed and can't keep USB working. The only way to get panic messages out is to use a debug probe, because that can stay working independently of the firmware.


Question about android support? [v2]

Right now I'm using w3css for a project, but I saw mini.css and decided to migrate it. The project will be used mostly in Android 4+ devices.
So, I wonder which features are supported by mini.css in Android devices? I really want to use mini.css.
Thank you!

It all comes down to browsers. Most Android users view pages in either the default Android browser, Chrome, Firefox or some variation of the above (I think the browser component of Android's libraries is based on the default Android browser as well).
Most of the framework is compatble with all of the latest versions and a lot of version before them. Android 4+ should support everything, but there might be a couple of oddities like the animation blurring (#35) for animated alerts. Older versions will probably support everything except maybe a few minor things like a feature query somewhere (which is not a huge deal) and maybe the object-fit of .card.section.media class. These can be dealt with using some extra CSS, which is not a huge deal>
However, if the browsers you are targeting are really old and not support Flexbox (either latest specor the older spec), you might want to try another UI toolkit, as a lot of the modules are based on Flexbox (grid, card, tab, parts of table and input_control).

Thanks for your fast reply Angelos. Most of the Android browsers based on WebView so there shouldn't be any problem except UC, Opera etc, because they are using custom renderers. But I saw you said mini.css supporting uc, opera etc. So there is no problem in my case.
Thanks again.


Adding note to flush DNS for troubleshooting

Pull request guidance
Thank you for submitting your contribution to our support content! Our team works closely with subject matter experts in CSS and PMs in the product group to review all content requests to ensure technical accuracy and the best customer experience. This process can sometimes take one or more days, so we greatly appreciate your patience.
We also need your help in order to process your request as soon as possible:

We won't act on your pull request (PR) until you type "#sign-off" in a new comment in your pull request (PR) to indicate that your changes are complete.

After you sign off in your PR, the article will be tech reviewed by the PM or SME if it has more than minor changes. Once the article is approved, it will undergo a final editing pass before being merged.

#sign-off

Will process the requested changes in the private repo...


Add a simple "Multi-Mark" feature:

Multi mark is a very useful feature, but elfeed is not include, suggest add, the below is a simple way:

Add a buildin tag as Mark tag, for example:  "Select" or "Mark"
Add a function, which let elfeed commands can deal with entrys which have special tag.
Make sure the follow commands can deal with "Mark tag"
When commands finish, clean all Mark-tag

    RET: view selected entry in a buffer
    b: open selected entries in your browser (browse-url)
    y: copy selected entries URL to the clipboard
    r: mark selected entries as read
    u: mark selected entries as unread
    +: add a specific tag to selected entries
    -: remove a specific tag from selected entries

Elfeed's built-in actions already work on the active region, so the
conventional way to do this in Elfeed is to use a filter and a region.
Filter mostly to the entries you want to act upon, create a region that
touches the selected entries, which may be the entire buffer, then
perform the action (b, +, -, etc.).
Every morning I do my first update for the day as I start my breakfast,
filtering on unread entries (my default). Once it's done updating, I
mark the entire buffer ("C-x h") and then hit "b" to view everything in
my browser.

This is a good tip, thanks!


Add semantic-release to the project

https://github.com/semantic-release/semantic-release
This is an automation tool that helps fully automated package publishing:
https://www.npmjs.com/package/ajax-bootstrap-select
Setting this up isn't exactly a walk in the park, but once it's done, it'll make "deploying" this project a thing of the past.
This is semi-dependent on #115?

Also, adding this process will need to be the last step before making an official 2.0.0 release.


Update PL ecosystem libraries to the stable Accelerator/Strategy API

Proposed refactor
Create an issue and send a PR to repositories that depend on the outdated "TrainingTypePlugin" API and update them to the stable Accelerator/Strategy API.
Motivation
As we are releasing an updated, stable API for Strategy (formerly known as TrainingTypePlugin) with Lightning 1.6 we want to ensure that we notify and support the community about the changes. A smooth transition will ensure that early adopters can profit from the improvements the new API brings. Since the API in some strategies has changed dramatically, we can offer some help.
Candidates

ray_lightning

Additional context
#9932 #10416

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @justusschock @awaelchli @rohitgr7 @akihironitta

I think it is related to EcoCI feature request: https://github.com/PyTorchLightning/ecosystem-ci/issues/24

Hi, is this still being worked on?

Sure I can give it a shot. Is there a good source to start with for this: what are the required aspects of a strategy, changes made between 1.6 and 1.7+ for the strategy api, etc?

@ChickenTarm This is an old ticket that I created a year ago and it got forgotten, sorry! The main motivation was to update the apis used over in ray lightning. There are some overrides for Accelerator, Launcher, and Strategy here: https://github.com/ray-project/ray_lightning/tree/main/ray_lightning
These would have to be updated with the latest imports and apis, but the work would be done completely outside Lightning in this repo.


broken notebook for some reason

I was fixing a weird bug where the notebook was saved as an HTML file for some reason. Should be fixed now; this is a trivial PR.

Farnaz is working on fixing the failing tests in a different branch.


Packaging

@jeffbaumes I just created our first release off of this branch. OK to merge?
https://pypi.python.org/pypi/romanesco/0.1.0
https://github.com/Kitware/romanesco/releases/tag/v0.1.0

Was able to follow the steps to create a package and install it in a virtualenv. LGTM! :clap:


Unable to install using the AMQ Streams binaries

SUMMARY
The parameters to declare the Kafka binaries are aligned with the current Kafka package artifact, however they are not valid to use with the AMQ Streams package artifact.
I tried to deploy the AMQ Streams using the binaries availables in the Red Hat Customer Portal (amq-streams--bin.zip), however the installation fails just because the output folder is not the same expected by the playbooks.
Using the following vars in a playbook:
    # Installation offline
    #amq_streams_common_skip_download: true
    amq_streams_common_offline_install: true
    amq_streams_common_product_version: 2.4.0
    amq_streams_common_version: "{{ amq_streams_common_product_version }}"
    amq_streams_common_archive_file: "amq-streams-{{ amq_streams_common_product_version }}-bin.zip"
    amq_streams_common_download_dir: "/tmp"

The output in the final host is:
[rhmw@f38mw01 opt]$ ll
total 0
drwxrwxrwx. 1 root               root        68 Apr 21 09:16 kafka_2.13-3.4.0.redhat-00006
drwxr-xr-x. 1 amq_streams_broker amq_streams  0 Jun 28 16:42 kafka_2.4.0

The AMQ Streams package artificat contains the binaries inside of a folder including the scala-kafka-redhat versions. That pattern does not fit with the expected in the parameters.
ISSUE TYPE

Bug Report

COLLECTION VERSION
main branch

STEPS TO REPRODUCE
Use a playbook defining the variables for the AMQ Streams binaries, something similar to:
    # Installation offline
    #amq_streams_common_skip_download: true
    amq_streams_common_offline_install: true
    amq_streams_common_product_version: 2.4.0
    amq_streams_common_version: "{{ amq_streams_common_product_version }}"
    amq_streams_common_archive_file: "amq-streams-{{ amq_streams_common_product_version }}-bin.zip"
    amq_streams_common_download_dir: "/tmp"

EXPECTED RESULTS
Right installation using the AMQ Streams binaries
ACTUAL RESULTS
Different folders created not aligned with the patterns expected:
[rhmw@f38mw01 opt]$ ll
total 0
drwxrwxrwx. 1 root               root        68 Apr 21 09:16 kafka_2.13-3.4.0.redhat-00006
drwxr-xr-x. 1 amq_streams_broker amq_streams  0 Jun 28 16:42 kafka_2.4.0

There is actually nothing to be fixed here, because, to install the downstream version (amq_streams) one would use the downstream version of this collection (so redhat.amq_streams, instead of middleware_automation.amq_streams). This version of the collection will have the right default value for Red Hat AMQ Streams (which means not only the download URL, but also the right home for the binaries).
So, I'm closing this issue, we'll revisit this downstream when we release the first version of redhat.amq_streams.

Thanks for the update! I will rest it as soon the downstream version is released.


linkedom adaptor needs splitText polyfill (for TeX pre-processing)

For a side project I was building a quick nodejs demo using linkedom.
I noticed that processing a page with TeX in it fails due to https://github.com/WebReflection/linkedom/issues/156.
Adding the naive implementation from the issue seemed enough to fix it.

Thanks.  I'll look into adding the implementation given there.


Create CLI command for maintenance

Creates hidden CLI command to run
maintenance.
Flag names and descriptions can be
updated if something else would fit
better

Does this PR need a docs update or release note?

[ ] :white_check_mark: Yes, it's included
[ ] :clock1: Yes, but in a later PR
[ ] :no_entry: No

Type of change

[x] :sunflower: Feature
[ ] :bug: Bugfix
[ ] :world_map: Documentation
[ ] :robot: Supportability/Tests
[ ] :computer: CI/Deployment
[ ] :broom: Tech Debt/Cleanup

Issue(s)

#3077

Test Plan

[x] :muscle: Manual
[x] :zap: Unit test
[ ] :green_heart: E2E

adding @gmatev for final review on language.

Several points:

For the descriptions of the operations, we can use some of the Kopia language which is pretty good.
I'm not seeing the corresponding docs changes:

Changes that may be needed to publish the auto-gen CLI docs
Any other hand written docs that may be helpful to better educate on the topic of maintenance.

We can probably split these in separate PRs but they should be a fast follow

Also the maintenance action should be logged in telemetry as well.

Can I get a final review on language in this PR? Also what follow ups are required? I think we were going to punt on doing doc updates since this is marked as a hidden command at the moment. Telemetry does need to be added from the sounds of it

Can I get a final review on language in this PR? Also what follow ups are required? I think we were going to punt on doing doc updates since this is marked as a hidden command at the moment. Telemetry does need to be added from the sounds of it

What are the flag values that the mode flag takes? Probably should be included in the inline help.
And yes, we would ideally log a telemetry event when this occurs. It's ok to defer as a separate issue and PR if more convenient.

I've merged some telemetry changes into this PR. Going to queue this on main since it seems like the loose ends have been tied up


SAK-31675 Add a cache for the PA System templates.

We ignore timestamp changes on the files as we're inside a JAR in a component so we never need to check for newer files.

Simple fix would just be to use com.github.jknack.handlebars.cache.ConcurrentMapTemplateCache

Okay ready to commit?

@ottenhoff I think so. I was wondering if @marktriggs has a reason for not using the cache. Without the cache on every request handlebars will check the filesystem to see if the files have changed as the PA tool is in the footer of every page, there are 3 or 4 templates used in the footer so it results in needless IO.
I couldn't find any explicit documentation stating that the cache was threadsafe, but having a cache that only works on one thread isn't common and if that was the case why worry about concurrent use (classname).

I didn't worry about caching because frequently accessed files are cached at the OS level already, so my feeling was that IO difference would be negligible.  No strong feelings though, so add the cache if you found it makes a measurable difference.

@marktriggs Thanks. Yeah, I noticed this when I was profiling and it's just because it was showing up as eating up a few ms on each request. It's not a big part of the hit on each request, it's just because YourKit highlights calls that leave the JVM (file, network).
I agree that the OS cache means the timestamp check shouldn't cause a disk seek.


Post the custom metrics to the hosts specified by custom identifiers

This pull request allows the users to configure the host which the agent sends the custom metrics to.

LGTM!

Thank you.


Component template changes not reflected in app

Hey all. I'm running into an issue after upgrading ViewComponent to >= v2.58.0 whereby any changes I make to component view templates are not showing up when the component is rendered in our app views.
Changes to the component class file are picked up correctly - and If I make a change to a template and then make a change to the component class file, the template change will then show up in the app correctly.
Otherwise, the only way to see the changes to the component view template is to restart the server.
I'm pretty sure this is somehow related to our specific app setup, as a fresh install of the latest ViewComponent version in a new project works as expected. But I'm tearing my hair out a little bit here so I was wondering if anyone had any ideas as to what might be going on and help guide my debugging efforts!
Any help on this would be very much appreciated :-)
Steps to reproduce

Start app.
Make change to a component view template file
View an instance of the component rendered in the app

Expected behavior
I should see the change to the component template reflected in the app.
Actual behavior
The component output is unchanged from how it was before the template was edited.
System configuration
Rails version:
<IP_ADDRESS>
Ruby version:
2.7.1
Gem version:
>= v2.58.0

@allmarkedup thanks for the report! Might you be able to bisect this problem against main, testing whether https://github.com/github/view_component/pull/1343 broke this for you?

Hey @joelhawksley - I've just checked the latest release and I am still seeing the same issue, so I've just done a bit of digging and it seems that PR https://github.com/github/view_component/pull/1343 is the cause of the problem for me. Before that everything works fine.
Just skim-reading the discussion around that PR, might it be possibly something to do that all our components inherit from a base Component class that contains a call method? Is that likely to be an issue?
Each of our components then either provide a template, override the parent base component call method or just fall back to using the inherited call method (which basically just renders a tag with any attributes defined in the initialize method).
So the set up is something like this (greatly simplified!):
class BaseComponent < ViewComponent::Base
  def initialize(**html_attrs)
    @html_attrs = html_attrs
  end

  def call
    tag.div **@html_attrs do
      content
    end
  end
end

# example_component.rb
class ExampleComponent < BaseComponent
  def initialize(title: "A title", **html_attrs)
    @title = title
    super(**html_attrs)
  end
end

<%= tag.section **@html_attrs do %>

<%= title %>

  <%= content %>
<% end %>

@joelhawksley I've just tried removing the call method from our BaseComponent and without it the template changes are once again being picked up in the app.
So it looks like it's something to do with call method inheritance - is this an anti-pattern? It would be pretty trivial to refactor out of our codebase but would be good to know what you'd recommend :-)

@allmarkedup I don't believe we consider call method inheritance + templates to be an anti-pattern, everything should work as expected. I just copy/pasted your components into a new Rails app and was not able to reproduce the behavior you're seeing. Is it possible fragment caching (or some other caching mechanism) is at fault here?
One thing I did notice: if you make an initial request and then delete example_component.html.erb, the next request will error saying it can't find the template file. In other words, deleting the template while the app is running causes problems. The only way to hit BaseComponent#call was to restart the app. I'm not sure if that's related or not.
We did just remove some code in https://github.com/github/view_component/pull/1432 that should have made this sort of problem a thing of the past. Dumb question, but can you verify you're using the latest version of view_component?
I would be happy to debug this further, but I'm kinda stuck without a reproducible test case. The next step would be to get a test app to demonstrate the problem that I can clone and hack on.

Hey @camertron - I've just tested with the latest release that includes the changes in https://github.com/github/view_component/pull/1432 and I can confirm that the issue I was seeing is now fixed. Thank you!
FWIW, we are not doing any fragment caching and it wasn't anything to do with deleting templates while the app was running. But whatever the cause it is now resolved :-) Appreciate your help with this.


Reduce the amount of data from getServerSideProps

The data returned from getServerSideProps is added to the page HTML as JSON in a

The above changes have the following impact:

Page url
pre change HTML size
post change HTML size

/articles
1.1MB
677kB

/books
479kB
275KB

/events
186kB
167kB

/events/past
2.7MB
2.1MB

/stories
1.5MB
853kB

/whats-on
585kB
347kB

/series/YV73zxIAACMASvd6
569kB
372kB

/exhibitions
846kB
312kB

/exhibitions/past
731kB
305kB

/
541kB
285kB

/seasons/YEY3ZBAAACEASBjA
1.1MB
662kB

@gestchild out of interest, why is the /events/past page so big?


HugginFace example

Hello, is there any example of query by index with custom llm or open source llm from hugging face? I tried this solution as LLM
https://github.com/jerryjliu/gpt_index/issues/423#issuecomment-1427248788
but it does not find an answer on the paul_graham_essay run infinitely

I've tried quite a few LLMs and haven't found that problem. Can you share a minimum code example to replicate your issue?

In data I have only paul_graham_essay.txt
from gpt_index import SimpleDirectoryReader, LangchainEmbedding, GPTListIndex
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from llama_index import LLMPredictor
import torch
from langchain.llms.base import LLM
from transformers import pipeline

class FlanLLM(LLM):
    model_name = "google/flan-t5-xl"
    pipeline = pipeline("text2text-generation", model=model_name, device="cpu", model_kwargs={"torch_dtype":torch.bfloat16})

    def _call(self, prompt, stop=None):
        return self.pipeline(prompt, max_length=9999)[0]["generated_text"]

    def _identifying_params(self):
        return {"name_of_model": self.model_name}

    def _llm_type(self):
        return "custom"

llm_predictor = LLMPredictor(llm=FlanLLM())
hfemb = HuggingFaceEmbeddings()
embed_model = LangchainEmbedding(hfemb)

documents = SimpleDirectoryReader('data').load_data()
index = GPTListIndex(documents, embed_model=embed_model, llm_predictor=llm_predictor)

index.save_to_disk('index.json')

new_index = GPTListIndex.load_from_disk('index.json', embed_model=embed_model)

After this next cell is running continously:

response = new_index.query("What did the author do growing up?",
    mode="embedding",
    embed_model=embed_model, llm_predictor=llm_predictor
    )

Looks like it worked for me? I copied everything exactly 🤔 here's the response -> Before college the two main things I worked on, outside of school, were writing and programming
Keep in mind you are running on CPU, so things will be slower to begin with. Furthermore, you should use a prompt helper to limit the tokens going to the LLM, since FLAN really only uses the first 512 tokens. Depending on your environment, this might be causing issues? (although for me it just prints a warning, but runs properly)
Here's an example of the prompt helper:
# set number of output tokens
num_output = 150
# set maximum input size
max_input_size = 512
# set maximum chunk overlap
max_chunk_overlap = 20

prompt_helper = PromptHelper(max_input_size, num_output, max_chunk_overlap)
index = GPTListIndex(documents, embed_model=embed_model, llm_predictor=llm_predictor, prompt_helper=prompt_helper)

@TheShasa could you confirm if @logan-markewich works? Let me know!

Hey, sorry for late response, yes I realized that problem was in CPU, on GPU it runs fine, thank you!

sweet! thanks for the help @logan-markewich

@captainst , Hello, version of llama_index is 0.4.29

I have a question here. Why are we using the embed_model for?
To be more specific, in this line:
embed_model = LangchainEmbedding(hfemb)

@lucasalvarezlacasa the embedding model is needed for vector indexes.
Documents are chunked and embedded, and then your query text is also embedded and used to fetch relevant context from the index. Then the LLM generates an answer using the query and retrieved text

So, if I understood correctly, the embeddings are used in order to know which potential nodes (or chunks) from all of the documents that I have should be added as context to the query so that the LLM can I use it to generate the proper answer right?
And I guess that if you don't provide this argument, then it'll try to use the OpenAI embeddings by default. Is that correct?
Thank you!!

@lucasalvarezlacasa you got it! That's how the vector index works 💪
There are other types of indexes that don't use embeddings though, they all have slightly different use cases (list, keyword, tree, etc)

class FlanLLM(LLM):
    model_name = "google/flan-t5-xl"
    pipeline = pipeline("text2text-generation", model=model_name, device="cpu", model_kwargs={"torch_dtype":torch.bfloat16})

    def _call(self, prompt, stop=None):
        return self.pipeline(prompt, max_length=9999)[0]["generated_text"]

    def _identifying_params(self):
        return {"name_of_model": self.model_name}

    def _llm_type(self):
        return "custom"

hi, im getting 504 error while running hfemb = HuggingFaceEmbeddings() ://
HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/models/sentence-transformers/all-mpnet-base-v2

It looks the model was removed from huggingface... and langchain needs to be updated to change their default
Try a different model maybe
hdembed = HuggingFaceEmbeddings("sentence-transformers/all-MiniLM-L12-v2")

Yea, it should be mostly fixed now. Huggingface was having outages


Add Solus depends to build

Added Solus dependencies to build ghostty. Verified build using these.

Looks right to me thanks.


feat: Accept multiple apps configs

Hi!
I made this implementation with the aim of making Walex flexible for multiple configurations. The main use case would be Umbrella Apps, using different configs in each app and even different databases.
I did some tests, and it's working fine.
I also made some code changes following this popular style guide for elixir https://github.com/christopheradams/elixir_style_guide, and some other changes after running credo https://github.com/rrrene/credo on the project.
I know the change ended up changing the library quite a bit, and maybe even a new WalEx 2.0.0 version!? But I believe it can be very useful for several applications.
Please let me know if you find anything you think is wrong.
In the next few days I intend to start implementing tests in the application, and I think it makes sense to add to this PR, so I will ask you to wait any possible merge from this PR until I finished it :)

Thanks! I'll try to review this in the next week or two.

@pasm94
Thank you for the tests!
I'm not sure I love having to pass app_name around everywhere to use the helper functions. For example:
event(table_name, txn, app_name)

Is there a way we can set this up where app_name is optional for non-umbrella / single app scenarios situations - where the app_name is automatically picked up from the config? Or even not necessary at all for simpler setups?

Yes, I think it makes sense. Let me some days and I will improve it!

Also, I'd love to have your feedback on the API for dealing with the events. I feel like it could be greatly simplified - maybe even a DSL type of thing in the future. Ditto on the config (having to pass in all the modules and subscriptions is a bit clumsy.

@cpursley thinking here, I'm considering that the ideal solution would be for the events/event modules to be macros.
We will still using as today, just changing to use WalEx.Event, name: :my_app for umbrella apps or even only use WalEx.Event for single apps instead import functions. In this way we do not need to pass app_name in any function.
What do you think?

I was also thinking about macros (thought that can dangerous) but haven't thought through how that might look yet.
I like your idea of use and is how a lot of libraries work.

Yes, I think it can simplify more things. I will work on it. I think it means we also do not need to pass modules and subscriptions on configs anymore, we can just pass in __using__ opts too

Super! If you end up working on the Event API please start another branch separate from this multi-config one.

Hey! I did it, waiting for your review :)

Super, I’ll take a look this week. Thank you.
On Sun, Mar 12, 2023 at 4:01 PM Paulo A. S. Müller @.***>
wrote:

Hey! I did it, waiting for your review :)
—
Reply to this email directly, view it on GitHub
https://github.com/cpursley/walex/pull/14#issuecomment-1465286588, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJKYXKGT3QFDDFXHHT4F6DW3YTTJANCNFSM6AAAAAAVIEVQ4I
.
You are receiving this because you were mentioned.Message ID:
@.***>


SIGSEV when using the --print_cex option flag

iimc examples/ctl/palu.aig --ctl examples/ctl/palu.ctl --print_cex --iictl_verbosity 3 --pi 0
will give you a segment fault.  Tried the --print_cex flag on numerous aigs and ctls all end up with the same issue.

@kavehshamsi thanks for reporting this. Please note that I am not a maintainer of iimc, I keep this repo more or less for myself (and for others) as the original site is unavailable since a while
My guess is that AIGER cex for CTL are not supported, so a solution would be to ignore/warn when using --print_cex which the iictl tactic.
If you require this, I am happy to accept PRs, though. Else you might want to get in touch with the original authors.

@mgudemann thanks for the response. I will try to see if I can solve it and make a PR. Bests :)

@kavehshamsi sounds good.
Out of curiosity, is there a common format for CTL CEX ? It seems that HWMCC only wants witnesses for SINGLE, safety properties.


add coco to yolo and voc to yolo examples

Hi,
This is nice work please add examples of newly added supported conversions. For me voctoyolo was useful but there was no example although it was easy to find programmers are lazy so please consider adding it.

Here:  https://imgann.readthedocs.io/en/latest/api.html#voc2yolo
in the readthedocs.


Forbidden error from Cloud Function

Hi,
I followed the official code sample to decrypt from google cloud function but I am getting the following authentication error:

Error: function execution failed.Details:
A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified. Could not refresh access token.

My App Engine default service account has the correct role. Any hint where to look to figure out the root cause of the error?

We spent the day on this and ended up solving the problem by downgrading googleapis package from version 25.0.0 to 23.0.2.

I have this error after the release of google-auth-library 1.2.0. Fixing the version of this package in my package.json to 1.1.0 removed the problem for me.

Greetings folks!  Sorry for the trouble.  I can confirm that this was broken in the 0.12 -> 1.0 release.  I don't know the root cause yet, but I'm looking at it.

Ok I was wrong :) . This was introduced in the 1.2 release with #269.  GCE / GKE / GAE Flex all have a metadata server that will respond both on /v1beta1 and /v1.  It looks like Cloud Functions only responds to /v1beta1 :(  We'll revert that change, poke the GCF team, and cut a new release with the fix soon.  Sorry folks!

FYI @ace-n @ofrobots @stephenplusplus

Thanks, @JustinBeckwith.

It looks like it now relies on gcp-metadata, which in turn uses /v1 :(. Is there a workaround except reverting to 1.2.1 (last known version that had /v1beta1 in it)?

I am getting this error. Please any fix :
Error occurred:  { Error: A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified

Greetings!  Please open a new issue, including a code sample 😀

Hi, I was trying to access my google cloud project by using googleapis send from firebase function.
Basically, I am using ML engine to get the prediction back from my model.
Is there a way to allow all users for having a permission to access ?


Issue in running tensorflow

Traceback (most recent call last):
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 22, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\zuha\AppData\Local\Programs\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

As the issue is missing a lot of information from the template, I will close this as a duplicate of https://github.com/tensorflow/tensorflow/issues/19584
That's my best guess with the information here.


Add basic structure of a spec generator for pods

This will be used for remote creation of pods initially.

@baude PTAL

/hold

/lgtm

/hold cancel

/lgtm


Changed the arrow to a folder, Added number behind taxonomy items to display content in the next layer (see screenshot)

Closes #483

Thanks!

ps: this expands to 4 new SQL queries per item. Please be aware that if we find performance on the changed pages, issues this might be the cause of it.


Put the "Preview Beatmap" button on the Song Browser screen

Just a suggestion, but having the preview button on the browser screen would make it much easier to just open a lot of browser tabs of song previews and then download the maps you like. The download button in the browser view is kinda pointless without the preview button (at least for me) because I never download a song without looking at the preview anyway.

Duplicate of #42, fixed with #43 This will be on the next release 👌


Syringe suggestions

Two suggestions for syringes:

Have the creative inventory and/or JEI contain all valid filled syringes in addition to the empty one
Have their tooltips show their required resources

What required resources do you mean?

The key, block, and living material required to actually do the spawning.

You can see that in the spawner. Note that the syring is not only for spawning so it wouldn't fit there really

True. I was only thinking about its use in the spawner and not its other uses. I guess I really only want the JEI suggestion then.


nixos/containers: move storage.settings default into config

This avoids having to use workarounds like the following to retain the default settings which podman requires to run.
virtualisation.containers.storage.settings = lib.recursiveUpdate options.virtualisation.containers.storage.settings.default {
  storage.options.mount_program = lib.getExe pkgs.fuse-overlayfs;
};

see https://github.com/SuperSandro2000/nixos-modules/blob/master/modules/zfs.nix#L22-L25
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Hey, this change breaks previously valid config for me without an very good error-message/hint in the option-description should this be added or a workaround?
       error: The option `virtualisation.containers.storage.settings.storage.driver' has conflicting definition values:
       - In `/nix/store/w4nyjf2jypal7d9ya3lss269y2q3mkm8-source/nodes/bsPF1201.nix': "btrfs"
       - In `/nix/store/3pif36ks3f56py4wb1dkq6sh0nkf3ygj-source/nixos/modules/virtualisation/containers.nix': "overlay"

Before just setting btrfs was fine now you have to use lib.mkForce to use this option at all?

It seems a lib.mkDefault on all? options would've been a good idea.

Good catch, adjusted in #309572


Fire Blast in Arcane rotation

Describe the bug
I'm running the simulator with Main rotation = Arcane. After running the simulator, the SPELLS tab lists Fire Blast as having been cast once. I would never use Fire Blast when playing Arcane.
Expected behavior
I don't think special-casing the last cast of the rotation is worth it, as it can be difficult to predict the death of the target to the second, the DPS gain is marginal, and I can't think of a situation where it would result in a different gear or gem choice. But if you really want to do that, then for the Arcane rotation, the finisher would be Arcane Barrage, not Fire Blast.
There are several reasons why Arcane Barrage should be used instead of Fire Blast for the Arcane rotation:

Fire Blast typically has 3% chance to miss, due to Arcane Focus only affecting Arcane spells.
Arcane Barrage is cheaper (553 mana instead of 665).
Lastly, and more importantly, Fire Blast can't even be used in my case, as it has a range of 20 while I configured the simulator with Distance from target = 30.

More generally, Fire Blast should be excluded from all rotations if Distance from target is greater than its range (20, 23 or 26 depending on how many talent points were spent in Flame Throwing).

Arcane Barrage has a travel time.
The range is another thing tho, might make an exception for that.