How is the runtime on CPU?

Hi! Thx for the repo. I was curious about the performance on CPU. AFAIK, it is 8x real-time on GPU but could you also share some values about CPU performance?

on my laptop set up (i7) the model as is has real time factor of ~1.6 running with device set as "cpu". One can reduce the generator size to get it to sub real time, for example reducing the residual layers from 30 to 10 gives around ~ 0.46 RTF. however model convergence is much slower, I'll post update when more training results come.

Great thx for a prompt answer.

Hi @erogol and @G-Wang.
I calculated with Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz 16 threads.
Here is the result.
# I set OMP_NUM_THREADS=16 in path.sh
$ CUDA_VISIBLE_DEVICES="" ./run.sh --stage 3
Stage 3: Network decoding
2019-11-06 08:42:39,818 (decode:91) INFO: the number of features to be decoded = 250.
2019-11-06 08:42:40,028 (decode:105) INFO: loaded model parameters from exp/train_nodev_ljspeech_parallel_wavegan.v1/checkpoint-400000steps.pkl.
[decode]: 100%|██████████| 250/250 [22:16<00:00,  5.35s/it, RTF=0.841]
2019-11-06 09:04:56,697 (decode:129) INFO: finished generation of 250 utterances (RTF = 0.734).

If we can use a powerful CPUs, it can generate less than real-time.
Compared to the original parallel wavenet, the parallel wavegan is already small. So I'm curious about the results with layers=10. I'm looking forward to seeing the results of @G-Wang!

@kan-bayashi I am curious to give a try to a new feature of PyTorch 1.3 quantization.

@rishikksh20 I've never tried that feature, but it sounds interesting.
Is it like fp16 inference with Apex?

Not exactly It do reduce precision from fp32 to INT8, but it only support CPUs also there is a new feature called Quantization-aware training. It speed up inference speed up to 4x and also reduce model size so that it easily deployed from mobile cpu to raspberry pi.
More here: https://pytorch.org/docs/stable/quantization.html

Can we also try batching the signal for faster inference? I think it is even more applicable since this model does not have time dependency.

@rishikksh20 Thank you for your info. That is interesting. I will consider to implement the option.
@erogol Yes, that is more straightforward.
Actually, I already tried but it is consuming too much memory. So large batchsize cannot be used. I will re-check the implementation.

Oh I remembered why I gave up batch inference. When we perform the batch inference, we perform padding. But the generator is non-causal network and as a result padded part will be considered. I did not come up with how to mask not consider the padded part. So I simplified the inference.
Do you have any idea about masking?

@erogol Do you mean batched synthesis for waveRNN like here: https://github.com/fatchord/WaveRNN/blob/12922a780f0d65a4572f6de27f33ec8f3189cfe8/models/fatchord_version.py#L295.
Batching helped with waveRNN inference because it was autoregressive and by splitting up a melspectrgram into pieces we cut down the autoregressive synthesis time by batch size factor.
However I'm not sure how much it would help for this model as everything is synthesised in one pass, regardless if they're batched or not. I guess the one advantage here is that we would not have issues stitching the batches together due to boundary artifacts like we had in WaveRNN.

@G-Wang How was your result with layers=10?

@erogol Do you mean batched synthesis for waveRNN like here: https://github.com/fatchord/WaveRNN/blob/12922a780f0d65a4572f6de27f33ec8f3189cfe8/models/fatchord_version.py#L295.
Batching helped with waveRNN inference because it was autoregressive and by splitting up a melspectrgram into pieces we cut down the autoregressive synthesis time by batch size factor.
However I'm not sure how much it would help for this model as everything is synthesised in one pass, regardless if they're batched or not. I guess the one advantage here is that we would not have issues stitching the batches together due to boundary artifacts like we had in WaveRNN.

I haven't tried this model yet (although I'm looking forward to when I get time), but with MelGAN I got an inference speed of ~6500kHz on GPU and ~40kHz on CPU when I concatenated a couple of sentences together and ran it through those batching/folding functions. It was trivial to implement as well - just a copy/paste job with minor edits.

@kan-bayashi The model convergence was very slow, and thus I've moved my compute to other thing.
I've modified the models so that adversarial loss doesn't kick in until after these steps.
Default model (30 residual layers, 3 stack): 100k step, mag loss: ~0.75, spec loss: ~0.38
smallest model (12 residual layers, 3 stack): 300k step, mag loss: ~0.78, spec loss: ~0.70
medium model (15 residual layers, 3 stack): 180k step, mag loss: ~0.79, spec loss: ~0.62
Final audio quality for smallest and medium models are much worse than baseline model at 100k
The speed up for small and medium are about around the correct ratio compared to full model. Full model at 1.6 RTF, smallest at ~0.5 RTF, medium at ~0.8 RTF.
Let me know if you want the checkpoints, logs, etc.
I stopped training both because I saw the loss curve was plateauing quite flat. I adjusted learning rate a bit but seems to not help too much.

@fatchord Thank you for your suggestions! It looks interesting. Just concatenating the sequence is OK? Did you put the silence between the two sequences?
@G-Wang Thank you for your valuable report! This will help us. From your results, it seems that it is difficult to make the network small to accelerate the inference. Again, the default setting is already much smaller than the Parallel WaveNet, so maybe the authors of Parallel WaveGAN investigated the size of the network.

@fatchord Thank you for your suggestions! It looks interesting. Just concatenating the sequence is OK? Did you put the silence between the two sequences?

I didn't explicitly put in any silence (although you could if you wanted I guess).

I tried to split the input and batch them for inference but the gain is just infinitesimal on my system.
Basically I split the input, run them in parallel as a single batch and concat the outputs.

@erogol, by infinitesimal you mean the gain was a multiple of the number of batches you chose to split to?

@rishikksh20 have you attempted quantization of the model with Pytorch and can share results?
Perhaps someone here have also tried pruning techniques or acceleration frameworks (e.g. TVM) and can share their results?
Thank you

I haven't tried this model yet (although I'm looking forward to when I get time), but with MelGAN I got an inference speed of ~6500kHz on GPU and ~40kHz on CPU when I concatenated a couple of sentences together and ran it through those batching/folding functions. It was trivial to implement as well - just a copy/paste job with minor edits. I would imagine it would be just as easy to try with WaveGAN.

@fatchord  Hi, for the batch inference, do you mean to concatenate several sentences into one long sentence, and apply 'fold with over lap' to the long mel-spectrogram? So actually, it is the same as combining mel-spectrorams from different sentences to form a batch array?(if they all have the same length)

how to decode on CPU?


VSecM shall be able to be deployed to namespaces other than vsecm-system and spire-system

Here is a rough outline of what to do:

Helm charts should have vsecm-system and spire-system namespaces configurable.
Containers shall have these namespaces embedded as environment variables.
they will either use env vars, or the defaults but not hard-coded strings.
test deploying with spire-system-alt and vsecm-system-alt namespaces and ensure both unit and integration tests pass.

Done.


Feature Request: Multiselect with Checkboxes and Search/Filter Options

Feature request:
A Multiselect with checkboxes and search/filter functionality
What is the expected behavior?
http://softsimon.github.io/angular-2-dropdown-multiselect/
What is the current behavior?
https://material.angular.io/components/select/overview
What is the use-case or motivation for changing an existing behavior?
There are many occasions we would want the select to do more than selecting a single option.
Is there anything else we should know?
Nope

This is something that is planned and will be done in https://github.com/angular/material2/pull/6856 and https://github.com/angular/material2/pull/3211.

Is there a milestone or a release to track this one?

There's no milestone on it, it depends on when https://github.com/angular/material2/pull/6856 gets merged.

Got it. I'll subscribe to #6856 then. Thank you!

What's the current status of the request?

Any updates?


Issue: A silent AbortError from async_caller.js

Hi. This is not to be a very comprehensive issue report, feel free to close it if it doesn't meet the standard. I am reporting it for other lost souls that might be tackling this, knowing they are not alone (but sadly, I don't have a solution, just a workaround).
Our problem: We started to use langsmith extensively in our LLM based app. We have a long running LLM node-base script, calling hundreds of LLM calls, scrapping, ... We noticed that some jobs started to "fail", but frustratingly, they didn't fail with any non-zero code. They failed with 0 and without ANY indication of what's going wrong. The classic suspect was that the subprocess got OOM killed, but no. It was happening on Linux, Mac, locally and in Docker, on Google Cloud Run... We were trying to profile it with valgrind - but it took valgrind down as well (again with exit(0) and it didn't leave any trace, like massif file!). Desperate, we added ugly things like this:
import newFetch, { RequestInit } from 'node-fetch';

function fetchWithLogging(
  input: RequestInfo | URL,
  init?: RequestInit | undefined,
) {
  try {
    return newFetch(input as URL, init as RequestInit);
  } catch (error) {
    console.error(`Error while fetching url=${input}`);
    console.error(error);
    throw error;
  }
}
global.fetch = fetchWithLogging as any;

process.on('uncaughtException', (err, origin) => {
  console.error(
    `Uncaught exception: ${err}\n` + `Exception origin: ${origin}\n`,
  );
  console.error(err.stack);
  sys.exit(32)
}

and something like
FINISHED = false

function main() {
  do_work()
  FINISHED = true
}

process.on('exit', (code) => {
  console.log(`About to exit with code: ${code}`);
  if (code === 0 && !FINISHED) {
    console.error(
      "NO! You gave me 0 but you didn't really succeeded! Exiting with non-zero exit code instead.",
    );
    process.exit(42);
  } else {
    process.exit(code);
  }
});

and that started to show the following error:

so we did:
process.on('uncaughtException', (err, origin) => {
  console.error(
    `Uncaught exception: ${err}\n` + `Exception origin: ${origin}\n`,
  );
  console.error(err.stack);
  if (err.name === 'AbortError') {
    // ugly hack to attempt to deal with the silent failures
    console.error(
      'It is an AbortError that we do not not where it is coming from, ignoring it and continuing...',
    );
  } else {
    process.exit(2);
  }
});

which is our current workaround for this problem. Far from ideal, of course, but at least something. It could be our specific configuration (we are on node 22.0) etc., I can't tell, nor I have a minimal reproducible example. The higher the load and the weaker the machine is (in terms of RAM/CPUs), the more likely it is to get these errors (we almost never seen them on 32gib machine, but there are tons of these on 1gib machine). I don't understand how these errors from within langchain could be causing silent exit(0) with no exception raised.

Thank you for sharing this issue! Will route this to someone who is probably faster at triaging it than i

Hello @hnykda! Sorry about the delay, my initial hunch is that the issue here stems from LangSmith SDK timing out after 12s. Could you please check if:

If you are using LANGCHAIN_CALLBACKS_BACKGROUND environment variable or not
If setting higher timeout values solve the issue or not
Are you using LangChain.JS? And if so, what version?

Regardless, failing LangSmith requests should not tear down the entire application though.

Hi! Thanks for the answer.

it happens with both LANGCHAIN_CALLBACKS_BACKGROUND=true or no variable
hm, can you please explain what timeout you mean, or where to configure it? I don't see any such parameters in RunTree method or suitable env var
we have been experiencing this first on   langsmith=0.1.14 and langchain=0.1.39, but we see the same behavior with  langsmith=0.1.30 and langchain=0.2.3


Editing information for Partners does not save.

When we edit a Partner's information, it prompts a warning to confirm that we want to save.  But after closing the popup window, the information is not changed.

Moved to new GitHub


Non-localhost use and File Upload Failures

I have chatbot-ui running on my local network at  <IP_ADDRESS>:3000.  Getting this working has required changing localhost/<IP_ADDRESS> references to the externally facing IP address in the following config files:
.env.local
NEXT_PUBLIC_SUPABASE_URL=http://<IP_ADDRESS>:54321

config.toml
[auth]
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
# in emails.
site_url = "http://<IP_ADDRESS>:3000"
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
additional_redirect_urls = ["http://<IP_ADDRESS>:3000"]

Whilst this approach basically works (account setup, login and chat with Azure OpenAI works):

Chat with files upload is failing (Error: JSON object requested, multiple (or no) rows returned)
I cant change the chat model in the top right drop down LLM selector
This approach opens up the Supabase backend management interface on http://<IP_ADDRESS>:54323/ without any authentication requirements.  Not ideal as users can be deleted etc.

The use case here is to run everything on the local network (not on Supabase Cloud).  Is there a preferred configuration to run chatbot-ui when we have a use case where we do not want to run it purely on localhost?

Chat with files upload is failing (Error: JSON object requested, multiple (or no) rows returned)

Having this file upload issue with the default settings as well. Seems to be a problem with file uploads in general.

I noticed the file upload error message is generic.  If you change this to raise the error message instead it may provide more information:
https://github.com/mckaywrigley/chatbot-ui/blob/51131c2e1d1ff925699d98db505a3a3e55ceba98/components/chat/chat-hooks/use-select-file-handler.tsx#L188
toast.error(error)
In my case, I was uploading files over 10mb which returned an error, but the genric-ness made it hard to understand what the issue is/was.
Perhaps also related to your issue.


Error after adding module and starting expo project

Current behavior
Invariant Violation: Native module cannot be null.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:204:6 in guardedLoadModule
at http://<IP_ADDRESS>:19000/index.bundle?platform=ios&dev=true&hot=false&minify=false:264912:3 in global code

Expected behavior
App starts
Platform

[X] iOS (Android not tested)

React Native Version
Expo 44 and RN 0.64.3
React Native Compressor Version
1.5.0
Reproducible Steps And Demo
Install via yarn add or expo cli
Check that the app.json has been updated with the plugin property
Restart via expo start
Here is the full error message
Invariant Violation: Native module cannot be null.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:204:6 in guardedLoadModule
at http://<IP_ADDRESS>:19000/index.bundle?platform=ios&dev=true&hot=false&minify=false:264912:3 in global code

Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError

I don't import the library in any file
If i remove the plugin property, app starts. As soon as i import the library in a component the error raises again

@pihomeserver can you try this version and let me know?
yarn add react-native-compressor@rnlessthan65

RTFM ... Sorry
Unfortunatly i can do one step more but still get the error
I remove the package, reinstalled the one for RN < 0.65, checked the app.json entry with plugin property, executed the "expo prebuild -p ios" command
The app load works
As soon as i add the following line i got the same error
import { Image as ImageCompressor } from 'react-native-compressor';

@pihomeserver
@emmbyiringiro is using react-native-compressor for the expo. it is working fine for @emmbyiringiro. can you give me a reproducible example so I can see where is the actual problem?

Maybe i miss used it or do a syntax error
I created a new expo project expo init compress
Then install the lib yarn add react-native-compressor@rnlessthan65
Append the plugin property to app.json
{
  "expo": {
    "name": "compress",
    "slug": "compress",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      }
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "plugins": ["react-native-compressor"]
  }
}

Then change the default App.json content to the following
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { Image as ImageCompressor } from 'react-native-compressor';

export default function App() {

  ImageCompressor.compress('').then(()=>{}).catch((e)=>{})

  return (
    <View style={styles.container}>
      <Text>Open up App.tsx to start working on your app!</Text>
      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

And then start expo with expo start -c
I got the error again
I tried to execute the prebuild command before but then i have an error on it
chris@MBP-de-Chris compress % expo prebuild -p ios --clean
Warning! Your git working tree is dirty.
It's recommended to commit all your changes before proceeding, so you can revert the changes made by this command if necessary.

✔ Would you like to proceed? … yes

✔ Cleared ios code
✔ Created native project | gitignore already synced
✔ Updated package.json and added index.js entry point for iOS and Android
🧶 Using Yarn to install packages. Pass --npm to use npm instead.
✔ Installed JavaScript dependencies 961ms
✔ Config synced
⚠  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: undefined method `post_integrate' for #<Pod::Podfile:0x00007fdce0adfe98>
Did you mean?  post_install.

 #  from /Users/chris/Development/compress/ios/Podfile:41
 #  -------------------------------------------
 #
 >    post_integrate do |installer|
 #      begin
 #  -------------------------------------------

Not sure if it's related. I never executed this command before, even before building/deploying my app to the store

@pihomeserver can you attach this repro in GitHub repo?

Here a repo generating the error : https://github.com/pihomeserver/compressTest

@pihomeserver  could you use EAS  - https://docs.expo.dev/eas/ it worked well for me and I hope it should be the same for you. We can have a 1-to-1 meeting in case you need further assistance

For my understanding EAS is for app management (build and publish). What about the development and live test with the expo app ?

Take look Expo founder tutorial on how to use this feature in development - https://www.youtube.com/watch?v=id0Im72UN6w

Unable to build it
Installing pods
Using Expo modules
Auto-linking React Native modules for target `Inspiratin`: RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-compressor, react-native-safe-area-context, and react-native-sqlite-storage
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
CocoaPods 1.11.2 is available.
To update use: `sudo gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2
[!] Unable to find a specification for `UMCore` depended upon by `EXPermissions`
You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
[stderr] [!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `81A95CE5B8AF4082BEBA0FE0` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
pod exited with non-zero code: 1

I guess there is something wrong in the ios pods ...

@pihomeserver can you try this command and try to build again
sudo gem install cocoapods
pod install --repo-update

I tried it (as it's in the log) but i still continue to have the message of the potential upgrade :
chris@MBP-de-Chris ios % sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.11.2
Parsing documentation for cocoapods-1.11.2
Done installing documentation for cocoapods after 1 seconds
1 gem installed
chris@MBP-de-Chris ios % pod install --repo-update
Using Expo modules
Auto-linking React Native modules for target `Inspiratin`: RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-compressor, react-native-safe-area-context, and react-native-sqlite-storage
Updating local specs repositories

CocoaPods 1.11.2 is available.
To update use: `sudo gem install cocoapods`

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[!] Failed to load 'expo-dev-client' podspec:
[!] Invalid `expo-dev-client.podspec` file: [!] Unsupported version requirements. [{:configurations=>:debug}] is not valid..

 #  from /Users/chris/Development/Inspiration/node_modules/expo-dev-client/ios/expo-dev-client.podspec:18
 #  -------------------------------------------
 #
 >    s.dependency 'expo-dev-launcher', :configurations => :debug
 #    s.dependency 'expo-dev-menu', :configurations => :debug
 #  -------------------------------------------

[!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `081DCB6B977C4E4A963B1D2B` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

@pihomeserver can you add this repro example in GitHub and share URL so we can see it on local machine and fix it.

I think there are other issues somewhere. I created the basic project, perform a eas build --profile development --platform ios then when i open the app on my iPad, it blocks on the splash screen and crash ...
I will try to solve that first before adding the lib :-(

@pihomeserver  can we have a meeting if you can? i wish I can help

Ok found a solution : i upgraded cocoapods with brew and gem (i installed both)  then i had an issue with fastlane (i had to install it manually), then i had an issue with EXPermission (i installed it with expo install) then i could install and deploy with eas, including the compressor package !
Still have some bugs (screen rotation is not well managed) but it works and i can call compress method !
Thank you guys !

@nomi9995 Thank you for that, the link: #86 was perfect in regards the iOS detail, nonetheless, getting a similiar issue in which if I add the import of the module, I will get:
Invariant Violation: Native module cannot be null. at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError at node_modules/metro-runtime/src/polyfills/require.js:204:6 in guardedLoadModule at http://<IP_ADDRESS>:19000/index.bundle?platform=ios&dev=true&hot=false&minify=false:121654:3 in global code
Invariant Violation: "main" has not been registered. This can happen if:

Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
A module failed to load due to an error and AppRegistry.registerComponent wasn't called.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError

Tried:

yarn add react-native-compressor@rnlessthan65
(up to here I could open the app, but commenting the import, so definately a step forward)

-cd ios -pod install -remove your yarn.lock or package-lock.json -remove node_modules -run yarn or npm install
As for Android:
[Unhandled promise rejection: TypeError: null is not an object (evaluating 'NativeVideoCompressor.compress')] at node_modules/react-native-compressor/src/Video/index.tsx:156:48 in compress at node_modules/react-native-compressor/src/Video/index.tsx:113:12 in compress at helpers.js:6:25 in CompressVideo at helpers.js:4:17 in CompressVideo at App.js:40:24 in requestMultiplePermissions

@pihomeserver @emmbyiringiro what do you think about this issue?


Added missing body element

missing body on line 22 fixed

https://github.com/c-phelps/cozy-bookshelf/pull/12


synchronize visual studio settings does not work

[Enter feedback here]
Spent an hour adjusting the fonts and colors and layout etc., closed and saved visual studio after a few hours (Synchronize VS setting across devices was checked), then launched VS and everything back to default. Redid the whole thing, installed VS on another device, logged in to synchronize, and still my preferences did not load.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: f452163a-5b45-243c-9601-585359deec53
Version Independent ID: 881229c0-dfb7-6e68-00ae-868abd0c6687
Content: Synchronize settings - Visual Studio (Windows)
Content Source: docs/ide/synchronized-settings-in-visual-studio.md
Product: visual-studio-windows
Technology: vs-ide-general
GitHub Login: @anandmeg
Microsoft Alias: meghaanand

@learn-GPU -- thank you for your detailed feedback.  This repo is solely for documentation issues, and this is product-related.  Please add it here:

Report product issues to us via the Report a Problem tool that appears both in the Visual Studio Installer and in the Visual Studio IDE.
Use the new Suggest a feature for Visual Studio IDE menu item.
Suggest a feature, track product issues, and find answers in the Visual Studio Developer Community.


[PHPUnit 10] Add upgrade set

See

https://github.com/sebastianbergmann/phpunit/milestone/35?closed=1
https://github.com/sebastianbergmann/phpunit/issues/4502

Not priority ATM. Release of PHPUnit 10 seems not going to happen anytime soon, usually Feb is the month but last 4 months there is no information about it.


Add newsroom and search(?) to the sitemap

/news and /nyheter are not included in the sitemap.xml
These should be included if the dataset is global.
Question: Should we also include /search? (verify with seo agency - if not, exclude page from robot indexing)
Response from SEO Agency:
 Google prefer that internal search pages with corresponding results are tagged as noindex - nofollow. They deem it as bad experience to send a user from one search result page to another search result page

LGTM


Crete readme file.

Create a readme file for this repository.
The file should be targeted to Mac and Linux users and should describe how to install and use the pyinfo.sh script.

It seems that the repository does not have a 'develop' branch or any branches at the moment, which is preventing further action to create a new branch and commit files. Please ensure that the repository has a valid base branch to proceed.

Changes made

Created a new branch 1-add-readme.
Added README.md with the following sections:

Overview: Brief description of the pyinfo.sh script.
Requirements: List of requirements for Mac and Linux users.
Installation instructions: Steps to clone the repository and set the script's permissions.
Usage instructions: How to run the script and what information it displays.

The README.md file is now available in the branch 1-add-readme.


IMPORT FAILED

After installing ComfyUI-BrushNet from ComfyUI-Manager,it prompt an "IMPORT FAILED" message.

the console output:
Looking in indexes: https://mirrors.jlu.edu.cn/pypi/simple/
DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Traceback (most recent call last):
  File "/data/prd/ComfyUI/nodes.py", line 1864, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/data/prd/ComfyUI/custom_nodes/ComfyUI-BrushNet/__init__.py", line 1, in <module>
    from .brushnet_nodes import BrushNetLoader, BrushNetPipeline, BrushNetInpaint, BlendInpaint
  File "/data/prd/ComfyUI/custom_nodes/ComfyUI-BrushNet/brushnet_nodes.py", line 25, in <module>
    from .brushnet.pipeline_brushnet import StableDiffusionBrushNetPipeline
  File "/data/prd/ComfyUI/custom_nodes/ComfyUI-BrushNet/brushnet/pipeline_brushnet.py", line 26, in <module>
    from diffusers.pipelines.pipeline_utils import DiffusionPipeline, StableDiffusionMixin
ImportError: cannot import name 'StableDiffusionMixin' from 'diffusers.pipelines.pipeline_utils' (/home/ai/.local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py)

Cannot import /data/prd/ComfyUI/custom_nodes/ComfyUI-BrushNet module for custom nodes: cannot import name 'StableDiffusionMixin' from 'diffusers.pipelines.pipeline_utils' (/home/ai/.local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py)

And when I install this node manually, the requirement  package "yaml" was missing in the pip source.
$ pip install -r requirements.txt
Looking in indexes: https://mirrors.jlu.edu.cn/pypi/simple/
Requirement already satisfied: torch in /home/ai/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (2.1.2)
Requirement already satisfied: diffusers in /home/ai/.local/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.26.3)
Requirement already satisfied: accelerate in /home/ai/.local/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (0.26.1)
Requirement already satisfied: numpy in /home/ai/miniconda3/envs/ComfyUI/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (1.26.4)
Requirement already satisfied: opencv-python in /home/ai/miniconda3/envs/ComfyUI/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (<IP_ADDRESS>)
Requirement already satisfied: Pillow in /home/ai/miniconda3/envs/ComfyUI/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (10.2.0)
ERROR: Could not find a version that satisfies the requirement yaml (from versions: none)
ERROR: No matching distribution found for yaml

How to fix it?
I'm running miniconda and python==3.10.12,and the other nodes works normaly.

Thanks for a detailed report. I just fixed imports, try it now.


implement getAvailablePaymentMethods for common

the implementation will simply collect all enabled methods of all available PSP implementations without any filtering first
passing filters will be done later

implemented for coeur, worked


Add timeout if worker pod fails to schedule after a timeout period

Sometimes pods fail to schedule, and k8s has no way to tell you whether they ever will or not. We should fail after a certain amount of time of being stuck in this situation, and surface a meaningful error about why the pod failed to schedule

Example status from pod yaml for a pod that can't be scheduled:
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2022-10-13T22:53:47Z"
    message: '0/3 nodes are available: 3 Insufficient cpu.'
    reason: Unschedulable
    status: "False"
    type: PodScheduled
  phase: Pending


Poll interval value for 'Auto Refresh' option is ignored

Describe The Problem:
In Settings, Advanced options, when the Auto Refresh option is selected, the poll interval value appears to be ignored.
I have entered a value of 21600 (6 hours) however the module still appears to be polling every minute. (as shown in the logs)
Using a GSM module , this polling is using up data allocation quickly.
To Reproduce:
As above, go into advanced options, select Auto Refresh and set an interval val > 1 minute. Save and restart homebridge to pick up changes and watch logs for this service.
Logs:
Sample logs
[10/5/2022, 10:45:37 PM] [Jablotron] Status refreshed for Jablotron service XXXXX
[10/5/2022, 10:46:35 PM] [Jablotron] Refreshing status for Jablotron service XXXXX
[10/5/2022, 10:46:37 PM] [Jablotron] Accessory state for segment section_1 = unset
[10/5/2022, 10:46:37 PM] [Jablotron] About to update state for accessory [section_1] : update = false; cachedState = 3; newState = 3
[10/5/2022, 10:46:37 PM] [Jablotron] Accessory state for segment pgm_1 = unset
[10/5/2022, 10:46:37 PM] [Jablotron] About to update state for accessory [pgm_1] : update = false; cachedState = false; newState = false
[10/5/2022, 10:46:37 PM] [Jablotron] Accessory state for segment pgm_2 = unset
[10/5/2022, 10:46:37 PM] [Jablotron] About to update state for accessory [pgm_2] : update = false; cachedState = false; newState = false
[10/5/2022, 10:46:37 PM] [Jablotron] Status refreshed for Jablotron service XXXXX
[10/5/2022, 10:47:35 PM] [Jablotron] Refreshing status for Jablotron service XXXXX
[10/5/2022, 10:47:37 PM] [Jablotron] Accessory state for segment section_1 = unset
[10/5/2022, 10:47:37 PM] [Jablotron] About to update state for accessory [section_1] : update = false; cachedState = 3; newState = 3
[10/5/2022, 10:47:37 PM] [Jablotron] Accessory state for segment pgm_1 = unset
[10/5/2022, 10:47:37 PM] [Jablotron] About to update state for accessory [pgm_1] : update = false; cachedState = false; newState = false
Show the Homebridge logs here.
Remove any sensitive information.

Environment:

Homebridge Version: [v1.5.0]
Node Version: [v16.16.0]
Homebridge-jablotron plugin version: homebridge-jablotron v2.5.5
Operating System and OS Version: Docker -> Ubuntu Focal Fossa (20.04.4 LTS)

@jasonhnz yes there's a  bug that doesn't update configuration properly via plugin Settings. However you can workaround this bug - instead of going to plugin Settings go to Config on homebridge screen - this opens raw config file where you can change pollInterval to whatever value you need. Once you restart plugin/homebridge it picks up this value. Meanwhile I'm going to provide a simple fix to plugin Settings to update correct value
                   "autoRefresh": true,                     "pollInterval": 180,

@jasonhnz @fdegier raised pull request for the fix ... https://github.com/fdegier/homebridge-jablotron-alarm/pull/86

Fixed in https://github.com/fdegier/homebridge-jablotron-alarm/releases/tag/v2.5.6 thanks!

Thanks! Will update today.


Package.json missing?

Hello there I was trying to find the package.json, but I could not find it! Is it on github?

without the package.json file, it is not possible to install the latest dev version from github via npm, cf. https://github.com/npm/npm/issues/7232
I tried to install the latest version of node-rdf via npm from github: npm install --save git+ssh://git@github.com:Acubed/node-rdf

@ckristo Like a lot of repositories, this isn't an npm package as such, and it doesn't really make sense to talk about it that way until a release is tagged. It's first and foremost an ECMAScript library for Node.js. The issue seems to be a problematic assumption with npm itself.

@Acubed yea, I fear so ... if you do not want to add it, that's ok; it would've eased packaging the latest development version and therefore would lower the border for contributions...
Other libraries I've explored have added it to the repo (although they are not a npm package per se and are designed to work with other JS engines than node), cf. rdflib.js, rdfstore-js, rdf-ext


Update semantic-how-to-query-request.md

Small spelling correction

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

@HeidiSteen

Looks good; thanks @BevLoh.


CTRL in script doesn't work on Linux

Ran script with unsaved document open in text editor:
STRING the script is running
DELAY 1000
CTRL S

Expected the save dialog to pop up. Output: the script is runnings. Note the s
I changed the line ending style from unix to dos just to see if that had any effect. I ran the script again and received output the script is running, but still no save dialog.

Flashed from latest release: v1.0.4 (beta)
MD5 6e281e2028942c818fec4dd713e58a05 (I think I've seen the release updated before, so this may be more specific)
UNIX line endings
File size: 47 bytesFile successfully read!
STRING the script is running
String

DELAY 1000
Delayed!

CTRL S
looking for: CTRL
CTRL
 found!
5
S  83
22
looking for:
Command not found
finished running payload

DOS line endings
File size: 50 bytesFile successfully read!
STRING the script is running

String

DELAY 1000

Delayed!

CTRL S

looking for: CTRL
CTRL
 found!
5
looking for:
Command not found
finished running payload

Huh! This might be an issue with the EspTinyUSB library - it looks like hidkeyboard.cpp isn't properly appending the keycode array with modifiers.  I forked the library and implemented a fix here that seems to be working, let me know what you think!


Fix data abort exception on imu calibration fail

Summary
Creates a new vector for all successfully calibrated IMUs and updates the gyro vector to prevent a data race with gyro.erase.
Motivation
Liam asked me to fix this in the LemLib discord.
Test Plan
Has been tested with a brain and IMU, unplugged IMU during calibration and it does not throw data abort exception. After successful calibration, odometry appears to output correct heading value.
Additional Notes
None

Download the template for this pull request:

[!NOTE]
This is auto generated from Add Template to Pull Request

via manual download<EMAIL_ADDRESS>via PROS Integrated Terminal:

curl -o<EMAIL_ADDRESS>https://nightly.link/LemLib/LemLib/actions/artifacts/1060069036.zip;
pros c fetch<EMAIL_ADDRESS>pros c apply<EMAIL_ADDRESS>rm<EMAIL_ADDRESS>

Will merge upon successful testing.

testing successful


Test the template

@jbae11 : Try giving this template a spin? This issue can be closed when you've tried it out. Report any bugs along the way.

It works! I'll open another issue if I find bugs! Thank you


'react-hot-loader/babel' seems useless in .babelrc

If I remove "plugins": ["react-hot-loader/babel"], the HMR also run correctly.
Will the plugin be added automatically?
I want to use babel's env to remove this plugin in my production, so will it be removed from my production?
react-hot-loader<EMAIL_ADDRESS>

HMR runs correctly but the point of the Babel plugin is to prevent stateful React components from unmounting on HMR updates, so they retain their state.


⚠ Bofrost.de has degraded performance

In eaa223e, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1000 ms

Resolved: Bofrost.de performance has improved in 3b564b2 after 14 minutes.


Abstract away from LSP where possible

Most of ghcide is already agnostic to LSP but there are a few parts where the abstraction leaks. It would be nice to modify things like sendEvent to not directly send an LSP message but emit a message from a custom datatype which could be interpreted into an LSP message or another way.
The reason for wanting to do this is I want to reimplement the interface of ghci but backed by ghcide. It would also be useful for other tooling which wanted to use ghcide as a library to get off the ground.

Do you imagine getting as far away as that there is a ghcide-core library that doesn't depend on LSP, and then a ghcide library that does? Or just the the tentacles shouldn't reach as far?
I imagine someone will want to implement Ghcid on top of Ghcide too, or that your Ghci could incorporate those features as standard.

It would be nicer if you could split the libraries up. I don't think we are that far away from that being possible right now. It's not necessary as a first step though.

This sounds like you guys are reinventing the original hie architecture, which had the hie-plugin-api doing this, and intended supporting multiple front ends.  Interesting how the wheel goes around.


resolve bug

Coverage decreased (-0.1%) to 36.491% when pulling 42104d0fd6ca08aa5d729caa037a83bfa21cac77 on BlBana:master into e674eed1c9cfbb590514d0a1470e7e88748c4ced on wufeifei:master.


e2e: Don't create default VolumeSnapshotClass

This PR avoids creating duplicate default VolumeSnapshotClass for the purpose of creating Velero CSI snapshots.
VolumeSnapshotClass with a velero label is needed for a target storage driver but it does not need to be default.
Resolves 4.11 VSC create issue.
Unblock https://github.com/openshift/release/pull/31340/

testing on 4.11 cluster!

/LGTM

/cherry-pick oadp-1.1


Documentation about exploring the queue routing

Create a documentation about the possibility to route a copy of the event's for other aplications
One possibly fictitious scenario:

An application that controls the lights of a environment is plugged in the queue to listen for login and logout events
When John login's in, it preferences says this guy like the light at 70% bright and with a blue ton
The application change the ambient light for John
When John logout out, the application turn off the light

There is problems with the light application scenario above, don't pay attention to that. Pay attention on the possibility: The AuditEvent can be used to perform logic on a unknown number of high decoupled cool applications.

Even cooler:

An CRM app receives the event for login and detect that user John is a client who had some problems upgrading the application  before, and also detect that a new cool version feature has been release.
The CRM contact a free consumer engagement operator, and tell him that user John is using a old app, and has some problems before with upgrade
The operator contact John to offer him assist in upgrading the new cool feature
User John accepts and upgrades the application with happy
The upgrade event made by user John is sended again to the CRM system.
The system give a "star" to the operator in a ranking of upgrade abilities.


vmware-horizon-client: 2111 -> 2203

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for vmware-horizon-client is: "Allows you to connect to your VMware Horizon virtual desktop"
meta.homepage for vmware-horizon-client is: "https://www.vmware.com/go/viewclients"
meta.changelog for vmware-horizon-client is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203/bin/vmware-usbarbitrator had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203/bin/vmware-view had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 2203 in filename of file in /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
vmware-horizon-client

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A vmware-horizon-client https://github.com/r-ryantm/nixpkgs/archive/ffa3fa9d763c4cd53b742395fd485fb229a79457.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203
ls -la /nix/store/ywff0fx68h2hkrlajjnywr2k3qb8vjvi-vmware-horizon-client-2203/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

vmware-horizon-client

Maintainer pings
cc @buckley310 for testing.

I can attest to ThePyrotechnic's kind of experience on the settings menu, but I don't ever toggle anything there and I try not to touch that window now. So I suppose I'm working around it. If anything we should push this feedback upstream.
Other feedback: I've been using this with i3 and today I tried switching to sway, and I got a warning message (it looked like an error message) when launching saying something about X not being available and it not supporting anything else, but it did launch and it seems to be working perfectly fine. Perhaps that's wayland supporting X protocols?
I also recently started using pipewire, and today I added wireplumber as I'm attempting to use sway, and from what I'm gathering wireplumber is the way forward right now for session managers. I've been having trouble sorting out exactly which pipewire settings to enable and I had to do a few reboots today to get my audio interface set as the default audio device. Notably I had trouble with services.pipewire.systemWide = true;.
Audio now seems to be working fine, and my current audio config looks like this:
   services.pipewire = {
     enable = true;
     #systemWide = true; # not well supported.
     alsa.enable = true;
     #alsa.support32Bit = true; # commented just to try it and the commenting wound up in my working set...
     pulse.enable = true;
     jack.enable = true;
     wireplumber.enable = true;
   };

I have also had consistent issues with audio stutter, but this seems to be an issue coming from the server, and when I closed Skype on my Windows desktop I discovered a noticeable improvement in the audio stutter.

This version causes VMWare to crash whenever the settings menu is accessed on a running (Windows) client. It seems that none of the settings work when toggled. For example, "image scaling" is always enabled. Assuming this isn't only on my end, this should be rolled back

I am able to recreate this crash behavior. Somehow I have managed to avoid running into that myself until now.
It seems to crash for me if I just click the "Connection" toolbar menu a few times.
I am looking into why this happens.

see https://github.com/NixOS/nixpkgs/pull/181369


Mapping value to elements of vector renders errror despite transforming data correctly

Discord username
No response
What type of issue is this?
Permanent – Ocurring repeatably
Is this issue blocking you from using Enso?

[ ] Yes, I can't use Enso because of this issue.

Is this a regression?

[ ] Yes, previous version of Enso did not have this issue.

What issue are you facing?

Expected behaviour
Visualization of vector with increased values of its elements
How we can reproduce it?
No response
Screenshots or screencasts
No response
Enso Version
Build: Nightly Release #842
Browser or standalone distribution
Standalone distribution
Browser Version or standalone distribution
standalone
Operating System
Windows
Operating System Version
11pro
Hardware you are using
i9 12th gen / discrete gpu

@farmaazon In the second example I have used the suggestion acceptance key Tab which should allow me to further edit the expression when I was done with +20 I have hit Ctrl + Enter to create this function. That has not changed the viz panel content.

Gotcha, but I understand that the connect hint is invalid when typing +20, right? We should consider this a searcher bug/improvement, is that correct?

Well, if there is no item in CB we have none selected (and that's why Tab does not work), but still keep the old preview. We can change that, of course. But I will judge the importance of this issue when #5770 will be merged.

I think it was fixed by #6812. Now, if no entry is visible, we display the input.


Columns for a published workflow's Authors table is squished if the author name is long

Describe the bug
The authors table for this workflow on dev looks strange and squished since the Author's name is very long:
https://dev.dockstore.net/workflows/github.com/AnalysisCommons/genesis_wdl/genesis_GWAS:v1_4_1?tab=info

To Reproduce
Steps to reproduce the behavior:

Go to https://dev.dockstore.net/workflows/github.com/AnalysisCommons/genesis_wdl/genesis_GWAS:v1_4_1?tab=info
Look at the Authors table

Expected behavior
The Role, Affiliation, and Email columns shouldn't be squished together like that. The Author column shouldn't be so large. The width of the Authors table columns aren't fixed right now. Maybe they should be to avoid this squishing.
Additional context
Webservice - fb2f90a
UI - 2.8.2-62-g9ffdccc7
Compose Setup - dfb11f4
Deploy - 1.11.1-50-gd7d397a
┆Issue is synchronized with this Jira Story
┆fixVersions: Dockstore 1.12
┆friendlyId: DOCK-1911
┆sprint: Seabright Sprint 78- Flotsam
┆taskType: Story

Might want to compare with zeplin mocks as well

Confirmed that the author no longer wraps and the column headers are no longer smushed together.
Webservice - 66a9a38
UI - 2.8.4-117-gf37c36c3
Compose Setup - 5454f4a
Deploy - 1.11.3-111-ga77a2fb
galaxyParsingLambdaVersion: 0.0.6


Peek operation for queues

Peeking queues would be a useful addition for multi threaded TensorFlow applications. Right now there is no way to look at the first element without affecting the queue. We could empty a tf.FIFOQueue, look at the first element, and enqueue all elements in order. But that is not safe when other threads operate on the queue at the same time (see locking mechanisms #6360).
Example use case is an environment class in reinforcement learning, that buffers the next few time steps in a queue. The agent should be able to look at the current observation and reward at any time. Executing a step operation should remove the current time step so the next one becomes visible to the agent.

There was an internal discussion @suharshs / @mrry once about this (to mitigate the unexpected behavior of summary ops consuming training data). I'm hazy on details, maybe @mrry remembers, there were some design/implementation difficulties in supporting peek

Do you think it's possible to build a workaround from existing TensorFlow operations?

Work-around is possible by having all accesses to a queue go through buffer. Your would have a "queue" object which consists of tf.FIFOQueue and tf.Variable, and the top object of the "queue" is stored in the tf.Variable. You can then implement "peek" that returns value of the variable, then and "dequeue" which overwrites it with value from the FIFOQueue

Native support would be useful since .peek is a common abstraction

Thanks, I will use that. Similarly, having a clear() operation would be useful instead of checking for non emptiness and using dequeue_up_to() with the queue capacity.

@yaroslavvb Actually, I implemented your idea of holding the first element in a variable. Unfortunately, it doesn't seem to work. The problem might be that, unlike the queue, the variable is not safe against concurrent access. Here is an example gist.

@danijar your gist is non-deterministic because different valid execution orders produce different reuslts. Consider following block
    dummy = tf.cond(tf.equal(self._size, 0), first, other)
    with tf.control_dependencies([self._size.assign_add(1)]):
      return tf.identity(dummy)

Since dummy=tf.cond is created outside of the control_dependencies block, cond can run either before or after assign_add. You can make it deterministic by moving it inside the block
    with tf.control_dependencies([self._size.assign_add(1)]):
      dummy = tf.cond(tf.equal(self._size, 0), first, other)
      return tf.identity(dummy)

possibly relevant -- https://github.com/tensorflow/tensorflow/issues/7951

Thank you. However, then the condition changes. I'd either need to compare the size to 1 instead which makes the code confusing, or add a second tf.control_dependencies() around everything to ensure that dummy was gets executed before. In any way, it would be quite helpful to have an existing .peek() on queues.

+1 for .peek()

Hi all,
A peek operation on concurrent queues is inherently racy since there can be multiple consumers (one consumer peeks while the other consumer takes). It seems ill-advised to add a method to queues that only works in the single consumer case.
Additionally, peek may be defined differently (or add a lot of complexity) for non FIFO queues.
If you share your use cases, we may be able to try to find more workarounds.
Thanks!

@suharshs The use case is reinforcement learning with the environment ticking a few time steps ahead of the agent to allow to parallelize the two. Both environment and agent fully live in graph and communicate via queues. The agent sends actions with a queue to the environment, which gets consumed by a queue runner that steps the environment. Moreover, the environment provides queues containing observations, rewards, and done flags that the agent should peek() at.

@suharshs Do you have a solution for in-graph reinforcement learning?

I do not, but this is definitely something that people are interested in and we plan to look into. I will close this issue though for now, and keep you posted on in-graph RL solutions


Better blog pages

Summary

Add featured image support (with fallback to default image)
Add categories + tags support (next to already existing contributors support)
Add related posts to single blog post page

Basic example
Include a basic example, screenshots, or links.
https://deploy-preview-798--doks.netlify.app/

Motivation
Why are we doing this? What use cases does it support? What is the expected outcome?
Checks

[x] Read Create a Pull Request
[x] Supports all screen sizes (if relevant)
[x] Supports both light and dark mode (if relevant)
[x] Passes npm run test

This looks awesome!
I'm wondering if the categories are better below the title and above the byline. Thoughts?

I guess you right. Or, make it part of the byline, like so:
Posted in Startups, News on June 24, 2022 by Henk Verlinde ‐ 3 min read

I guess you right. Or, make it part of the byline, like so:
Posted in Startups, News on June 24, 2022 by Henk Verlinde ‐ 3 min read

Ah yep! That's probably better, I'm not any kind of visual designer. Just they felt a bit out of place.

93d9202bd6aa9d1505e567842f664406f623f558


Json strategy doesn't work as expected (?)

Checks

[X] I added a descriptive title to this issue
[X] I have searched (google, github) for similar issues and couldn't find anything
[X] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
$ python -c "import pydantic.utils; print(pydantic.utils.version_info())"
             pydantic version: 1.8.2
            pydantic compiled: True
                 install path: C:\Users\avincent2\PycharmProjects\wdms-pydantic-bug\.venv\Lib\site-packages\pydantic
               python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
                     platform: Windows-10-10.0.19041-SP0
     optional deps. installed: ['typing-extensions']

In this sample test, commenting the json_field makes the test pass.
import pytest
from pydantic import BaseModel,  Json
from hypothesis import settings, given,  Verbosity, strategies as st

class MyObject(BaseModel):
    json_field: Json
    int_field: int

@given(my_object=st.from_type(MyObject))
@settings(verbosity=Verbosity.verbose)
def test_json_init_dict(my_object):
    assert MyObject(**my_object.dict())

if __name__ == "__main__":
    pytest.main(["-sv", __file__])

However with the json_field the test fails as:
E   pydantic.error_wrappers.ValidationError: 1 validation error for MyObject
E   json_field
E     JSON object must be str, bytes or bytearray (type=type_error.json)

I m wondering if the strategy is doing what it is supposed to ?
I understand there might be some semantic differences between the "json string/bytes" and the "json-expressible datastructure" like shown in https://hypothesis.readthedocs.io/en/latest/data.html#recursive-data ?

@asmodehn thank you for the bug report. Could you please confirm that the bug is still relevant in Pydantic v2?

We’re no longer actively developing Pydantic V1 (although it will continue to receive security fixes for the next year or so), so we’re closing issues solely related to V1. If you really think this shouldn’t be closed, please comment or create a new issue 🚀.


Docker Setup Command

Books  Errata:
Chapter 3 Setting up Docker:
Build the Docker image from the Dockerfile in this repository:
docker build -t langchain_ai
This should be
Build the Docker image from the Dockerfile in this repository:
docker build -t langchain_ai .
(Add .)

Thanks, @insculptor! I sometimes forget the dot. I'll ask the book editor to correct this!


Display component docs on the site

Change components page layout so it displays sidebar nav
Remove storybook logo from table header and display it only on storybook links
Add table links to site docs
Preview at https://saltdesignsystem-git-display-component-docs-on-site-fed-team.vercel.app/salt/components/index

Not related to this PR but i noticed the Progress examples are not rendering correctly
https://saltdesignsystem-git-display-component-docs-on-site-fed-team.vercel.app/salt/components/progress/examples
might be worth fixing them before we release the docs showing

Not related to this PR but i noticed the Progress examples are not rendering correctly https://saltdesignsystem-git-display-component-docs-on-site-fed-team.vercel.app/salt/components/progress/examples
might be worth fixing them before we release the docs showing

Since these are still work in progress it's worth hiding them for now

Hey guys, thanks for getting this out! Is the long-term plan to keep both lists of components on the index page? Side nav and "available and upcoming components" lists. Visually it looks like we're repeating the lists.

I don't think this is the long term plan but we will need to spend time designing and building a new page so this was the quickest solution to get the docs live for now

Hey guys, thanks for getting this out! Is the long-term plan to keep both lists of components on the index page? Side nav and "available and upcoming components" lists. Visually it looks like we're repeating the lists.

As an interim, might it help if we changes the heading above the table to "Component status"? The status info is something additional it provides, besides the (duplicate) links to the component pages.
There are precedents for that in other DS sites too:

GitHub Primer
Dell Design System
Decathlon Design System

If you agree, I could sneak in that change as part of PR #2377, which updates the status info in that table.


corona.lmao.ninja V3 API Update

@mykle1
Can you update the module to match the new v3 API ?

V2 appears to be functioning correctly. Is there some reason, other than the version of the api? I'm pretty busy these days. You can fork the repo and do the update. I'll accept the pull request. What do you say?


use beginKeywords for new keyword in haxe

Changes the regex in the haxe.js highlighting to only highlight new as a keyword if it's not used within a variable/class name, using beginKeywords: 'new' instead of new *

Resolves #3992
Changes

Chnages the regex to use beginKeywords: 'new' instead of *, so that it can capture new as a keyword, but not when it's used within a variable name
Checklist

[x] Added markup tests
[x] Updated the changelog at CHANGES.md

I will look into the markup tests sometime soon / hopefully later today

added markup tests, and changed to use beginKeywords: new


Can you add screenshots to the readme page?

Hi,
Screenshots give an idea about the application.
Can you add screenshots to the readme page?

Hi Halil,
I will add screenshots when I finish my todos.
Thanks for the suggestion.

You're welcome. Good works :)


repositoryContext needs better specification

ocm generated repo ctx like this:
  repositoryContexts:
  - baseUrl: eu.gcr.io
    componentNameMapping: urlPath
    subPath: <some-prefix/abc/def>/microblog
    type: OCIRegistry

Clarify:

Why is baseUrl only a host name and not a full path? Other tools create a full URL here?
subPath is neither mentioned in the specification nor in the schema.
Why do we need two fields for this?

@mandelsoft , @jensh007 is correct, the subPath is specified here subPath, but missing in the schema.


Use commitlint to lint commits

Problem Statement
Looking at #911, we are spending time maintaining CI scripts, whereas we could rely on the work of the wider open source community instead.

I think this can also help with #885. If we require conventional commit messages, we can make use of further existing automation to easily release new versions, with the correct version bump, entirely automatically.
Steps to Implement Proposal

Define our commit rules in commitlint's format
Create a GitHub workflow using the commitlint action

@nishakm can I help? But I would require a bit of insight on the task.


Is there a way to download the fonts from a local location on disk?

I'm behind a firewall and cant fetch from GitHub.
If I have a clone of the repo can I fetch them from here:
all-the-icons.el/fonts

Sorry this is a question for all-the-icons


[Draft] Make primary-secondary DesktopMouseResizer more responsive

US146328
This is a draft for now to build a PR site for design feedback.
In <template-primary-secondary>, the secondary panel can be difficult or confusing to expand when it's in a fully collapsed state, since dragging has no immediate reaction, and can result in no action if 'dropped' when it is less than half way to open.
This PR changes the resizing behaviour when using a mouse in the desktop view. Attempting to resize the secondary panel will now follow the mouse even when the width is less than the minimum secondary panel width. It will only auto collapse when you stop resizing (mouseup or touchend).

Interesting! IMO it's better, but now it has a new problem in that I don't know how far I need to enlarge the secondary panel before it "sticks", if that makes sense? It took me a bunch of tries to actually open it enough for it to stay opened.
Before, while it didn't visually show any progress, once you hit the "sticking" point (in both directions) it would either fully expand or fully collapse on its own.
I wonder if there's maybe a middle ground somewhere? Like visually show progress like in this PR, but also have it "click" into place once you open/close it past a certain point?

@dlockhart  Yeah Jeff and I were chatting about this problem and we thought the user might be able to figure it out after a few tries but I really like your idea! Maybe we could make it so that if you expand it passed half the minimum width it will expand and if it is less than half the minimum width it will collapse.


feat(protocol): allow local.params.parentMetaHash to remain as 0

Previously if this parameter is zero, we set it to parent's hash, now we simply use 0. This will avoid a SLOAD for many blocks.
@davidtaikocha  @smtmfft  will this be a breaking change for client or prover? Note now the metadata may have parentMetaHash as 0.

Don't think its a break change for client, but might break zk cc @smtmfft

we get parentMeta from blockpropose event, should be the same I think


Insert additional measure between existing ones

Can an additional measure be inserted in between existing ones ? Or drag and dropped so the entire list of measures does not need to be re-done when inserting one at the top of the list

Yes. Simply drag the measures up or down in the list as you would any other measure in a Qlik chart.


Claude Messages API initial assets

Added single and multi-turn examples of the new Claude Messages API and compares it with the legacy Text completions API.

Can you put this in an existing folder (Operations seems like a good fit)


Node 16 is deprecated

Node version of the action should be updated to Node 20 as per warning message in workflow:
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: Keeper-Security/ksm-action@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

ℹ #129 may fixed this issue.


Update package version

@label-u/audio-react 1.0.0-alpha.3 (2023-10-10)
Bug Fixes

audio-react: update readme (4170005)

:tada: This PR is included in version 3.0.0-alpha.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:


Updating to WebDriver 3.14

@Teun I'll let you handle this pull request. You are more familiar with the WebDriver than I am.

I will have a look and leave some comments were appropriate, but frankly, I hardly feel ownership of this library anymore. I started it many years ago and have not used it myself for at least three years. I don't even have a development environment available were I can compile and test.
So maybe someone else feels like taking some responsibility here? Maybe Alexei, who apparently want the library to at least be updated to later versions of dependencies, can step in?

I have no plan to take ownership of this project, sorry, my primary area of interests is not related to .Net, this PR is just a side-effect of a short contract with a customer that wanted .Net, but I'm already out.

Right. Fair enough, one can always hope.

So I merged this pull request into a separate branch (barancev-master) and ran the CI build over it (this was last done very long ago, so I had to fix some things in the environment as well).
It has 4 failing unit tests. You can see the full build result here: https://teamcity.jetbrains.com/viewLog.html?buildId=1643817&buildTypeId=bt1121&tab=buildResultsDiv
Not sure what to do with this. As the code does hardly involve any real changes, I assume that these failing tests are caused by changes in the underlying dependencies (Selenium? Moq?). We can just mute these tests for now and publish a new version. That will at least allow people to work with it using up-to-date SimpleBrowser and Selenium.

Pff. That took more than I thought to get all those CI steps up-to-date and running again. But it is fine now. New version has been published as 0.5.43.
Why the 4 unit tests are failing, I don't know. I would nee a .NET 4 environment to figure it out.


Add support for automagically parsing AWS Lambda EOL runtimes

Similar to #126, depends on #51.

Closing, superseded by #297.


Referencing a class library with precompiled views as a DLL

Is this scenario supported? I expected things to "just work", but have run into some issues trying to link to pages within an embedded MVC area in a class library.
I've set things up with a test MVC project Master, one library Lib1 which is referenced normally, and one library Lib2 which is referenced using a HintPath to the DLL. The actual referencing is working fine and I can see both libraries from the application, but trying to link to an MVC view in Lib2 doesn't work.
An excerpt from the Master.csproj (I wasn't sure if it was necessary to reference the .Views.dll manually - tried it both ways to no avail):
  <ItemGroup Label="Internal References">
    <ProjectReference Include="..\Lib1\Lib1.csproj" />
  </ItemGroup>

  <ItemGroup Label="External References">
    <Reference Include="Lib2">
      <HintPath>..\..\External\Lib2\bin\Debug\netcoreapp2.1\Lib2.dll</HintPath>
    </Reference>
    <Reference Include="Lib2.Views">
      <HintPath>..\..\External\Lib2\bin\Debug\netcoreapp2.1\Lib2.Views.dll</HintPath>
    </Reference>
  </ItemGroup>

The code in both libraries (which use Microsoft.NET.Sdk.Razor as their SDK) is identical except for the names Lib1 and Lib2:
using System;
using Microsoft.AspNetCore.Mvc;

namespace Lib1.Areas.Lib1.Controllers
{
    [Area(nameof(Lib1))]
    [Route("[area]/[controller]/[action]")]
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }
    }
}

And the links are being written out using the built in tag helper:

Home

Lib1

Lib2

And this outputs the following markup to the browser:

Home

Lib1

Lib2

It looks like the application is simply not discovering the routes that should be exposed by Lib2. Switching Lib2 to use the ProjectReference style reference makes it immediately start working, so it seems there's nothing wrong with the code or the library itself - just the way it's being referenced.

Switching Lib2 to use the ProjectReference style reference makes it immediately start working

That's the intended design. MVC's startup specifically looks for controllers in assemblies that reference one of MVC's packages (directly or transitively). References to binaries on disk do not contain this information. You could possibly add these assemblies as application parts but I'd recommend using a project reference.

Thanks for the quick answer @pranavkm. What's the suggested method of manually distributing a binary library containing embedded views, or is this just not a supported scenario?

NuGet packages work really well for this. Executing dotnet pack on a project would retain details of a project's dependencies in the nuspec that MVC can use.

Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.


chore: use yml form for issue template

This PR updates the issue template to use form

Thank you for the contribution. Unfortunately at this time this is something we will not be taking in. In the future we hope to enable these rich issue templates but there are currently unanswered questions and issues surrounding our adoption of this.  I have even explored these templates myself which you can find here.
Just for total transparency, the main blockers on adopting these templates are:

We currently use an ML trained bot to assign issues to feature owners. A new format will require retraining this bot on our issue data set, a reduction in assignment efficacy is not acceptable because that is time taken away from the devs just to classify and assign issues.
How does auto-filling these templates look from issue reporter from within VS Code. This issue reporter pre-fills a lot of diagnostic data and is a major way users file issues with us. During initial testing we found even medium sized templates would run into issues with query strings that are too large.
Does longer templates with more questions deter people from filing issues? Is there a major trade off of quality to quantity. We want as many people filing issues to us as possible so that VS Code can be the best code editor possible.

Thank you for being a member of our open source community and I'm glad someone is as excited about the future of VS Code issue reporting as I am.


Error using filtering functionality - REST API

Hi
I am trying to using the filter[] parameter in the latest (master) version of the REST API, however cannot seem to make this work:
GET of
http://mymanageiq.com/api/vms?expand=resources&attributes=name&filter[]="name='test'"

RESULT
{
    "error": {
        "kind": "bad_request",
        "message": "PGError: ERROR:  column vms.\"name does not exist\nLINE 1: ...VmXen', 'VmCloud', 'VmAmazon', 'VmOpenstack') AND \"vms\".\"\"\"n...\n                                                             ^\n: SELECT COUNT(*) FROM \"vms\"  WHERE \"vms\".\"template\" = 'f' AND \"vms\".\"type\" IN ('Vm', 'VmInfra', 'VmMicrosoft', 'VmRedhat', 'VmVmware', 'VmXen', 'VmCloud', 'VmAmazon', 'VmOpenstack') AND \"vms\".\"\"\"name\" = '''test''\"'",
        "klass": "ActiveRecord::StatementInvalid"
    }
}

As an aside, it would be very helpful if there was somewhere where the REST API documentation could be kept in line the latest code changes for people to reference (and some examples). As far as I can tell the current documentation is still all for Anand which is really old, and its hard to figure out whats available, and whats not without trying to scour github issues and trello boards to try and put the picture together from that. If there is an updated version of the REST API docs, please do shout but I could not find it.
I was trying to use some instructions from here: https://github.com/ManageIQ/guides/issues/49

Hi, that filter statement is correct, I just tried it on latest master and it works fine. Strange error here as the name attribute is a valid attribute to vms and been there for a while so a db:migrate probably may not help here. What version of Rails and Postgres do you have running ?
We're in the process of updating the docs for v2.0.

ManageIQ has been setup on a Centos7 based VM with the following:

ruby 2.0.0p598
postgres (PostgreSQL) 9.2.7
Rails 3.2.17

Just tried this today, worked fine.
Here's my setup:
Ruby 2.0.0-p643
CentOS 7.1.1503
PostgreSQL 9.2.10
Rails 3.2.17
test with latest upstream and REST API v2.0.0

@nickithewatt is this still an issue for you ?

@abellotti I have not managed to test this again recently, and have since been moved off this particular piece of work onto something else. I suggest that given the code base has moved on since this was originally raised, and it is working on the Centos 7.1 appliance for you, that we simply close it for now, and if its still a problem later, then it can be opened up again. Thanks


Consider an "environment" node

This will be one of the core nodes in Breadboard (built-in), and it will vend capabilities that could be used by other nodes.
These capabilities will need to be invoked to actually use them, and will be passed over wires.
This way, we could:

Create a way to abstract out various environment-specific bits, such as the presence or absence of a file system, or other various interesting bits. Specifically: node, browser, worker
Provide a way to create a security membrane that enables capability-based programming. Some boards might run more lax environments. Others might not, etc.

This was inspired adapting LLM Starter Kit to work in Web Workers and realizing how many capabilities are presumed to exist and the need to manage them.

Nice! Re 2), the integrity work allows the environment to specify constraints for how capabilities can be used beyond the usual grant-by-passing mechanisms. E.g. the environment can provide an API key (capability?) that can only be sent over the wire to a certain host and only as part of certain parameters or headers. Or filesystem access automatically raises the confidentiality of any derivative data, etc.


Make it possible to set the server via the Api component

Hi, you can see how I'm using the Api component of Stoplight elements here: https://github.com/aptos-labs/aptos-core/pull/5345/commits/de747256be53c99f2e2a91f6f479b91b8b940eb0.
The problem with this is because the spec explorer is embedded in a different site (see it at https://aptos.dev/nodes/aptos-api-spec#/), it shows the wrong site for "Live Server" / "API Base URL". Unfortunately the server I want to use cannot be derived from the site where the spec is hosted nor the server field in the spec. As such, I'd love to be able to specify the base URL when creating the Api component. As it is now, it doesn't seem to be possible.
Thanks!

Hey just pinging this one to ensure it doesn't get reaped by a stale bot, I'd still love this feature. Or even some comment from the maintainers about whether they'd want this feature, then I could maybe look into adding it.

Hey @banool, if you add the API server to the OpenAPI spec, elements should show that. Is there something we are missing that prevents you from adding it to the OAS?

In our case, anyone can run our API, it doesn't run from only a single URL. So it doesn't really make sense to have the server field set in our spec, since that would imply that the URL there is the authoritative location of the API when in reality we encourage anyone to run it (this is for a decentralized system).

Hey @mnaumanali94 do you think this is a good idea to have, regardless of whether you have resources to implement it or not? I'm trying to decide whether to fix this with a hack or whether to possibly contribute this feature to stoplight.

Hello!
Our team recently took over the stewardship of the elements repo.
Due the volume of un-triaged issues that are pretty old and the time it would take us to get caught up on all of them, we kindly ask that you open up a new ticket if this is still an issue you're struggling with.
If you open a new issue please include:

clear steps to reproduce that include example OAS specs, application setup, code, etc.
the error or issue you are experiencing
the expected behavior

We will be triaging any new tickets in a timely manner.
Thank you for understanding!


Runtime Loading Error for Symlinked Shared Libraries

I have a lib with the following Link attribute  @[Link("uv")]
I get the following runtime error:
/tmp/crystal-run-spec.fpF0qU: error while loading shared libraries: libuv.so.1: cannot open shared object file: No such file or directory
Program terminated abnormally with error code: 32512

However, the library exists in /usr/local/lib but it is a symlink:
william@ubuntu:~/Downloads/libuv-1.4.0$ ll /usr/local/lib/
total 1.8M
drwxr-xr-x  7 root root 4.0K Feb 13 21:01 ./
drwxr-xr-x 13 root root 4.0K Feb 10 19:39 ../
-rw-r--r--  1 root root 1.2M Feb 13 21:01 libuv.a
-rwxr-xr-x  1 root root  953 Feb 13 21:01 libuv.la*
lrwxrwxrwx  1 root root   14 Feb 13 21:01 libuv.so -> libuv.so.1.0.0*
lrwxrwxrwx  1 root root   14 Feb 13 21:01 libuv.so.1 -> libuv.so.1.0.0*
-rwxr-xr-x  1 root root 596K Feb 13 21:01 libuv.so.1.0.0*

resolved by running like this:
william@ubuntu:~/working/crystal-uv$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib lcrystal spec spec/libuv_spec.cr

It appears /usr/local/lib is not in LD_LIBRARY_PATH by default.


plumbing.Hash sometimes is a pointer, and sometimes isn't

The code below seems fine but is broken for no apparent reason:
hash, err := repo.ResolveRevision(someRevision)
if err != nil { ... }
commit, err := repo.CommitObject(hash)
if err != nil { ... }

All because ResolveRevision returns a pointer to array, yet CommitObject receives an array. Is there a good reason for this inconsistency?

I think this is the only function that returns/gets pointer to Hash. Maybe because returning nil is easier than plumbing.ZeroHash on errors, and also checking hash != nil is easier to guess than hash.IsZero().
But I agree it should return non-pointer for the sake of consistency.

There is no need for hash != nil or hash.IsZero() - one can do err != nil. But yeah, even if there wasn't an error, I'd still prefer consistency over less verbosity.


ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secret from asm: service call has been retried 5 time(s): failed to fetch secret

When I run make deploy, I get a ResourceInitializationError error while initializing the fargate services in MyCluster. I was able to fix this by setting assign_public_ip to True for the 3 services in dataops-infra/infra/stacks/fargate_services/airflow.py. However, when I run the redshift_transformations dag on Airflow, I get the same error when running task dbt-cdk. May I know how I could debug this? Thanks!

Hello @Tres33 ! Thanks for raising this issue. Fixed in https://github.com/aws-samples/dataops-platform-airflow-dbt/pull/13

Works on my end. Thanks!


Register upgrade plan for v0.13.1

This change is required to succesfully executing a cosmovisor assisted upgrade. Reference: https://godoc.org/github.com/cosmos/cosmos-sdk/x/upgrade#hdr-Performing_Upgrades

@orkunkl I have modified the target branch as discussed. Please update the "upgrade name". Otherwise looks good 👍

@orkunkl I have modified the target branch as discussed. Please update the "upgrade name". Otherwise looks good 👍

I heard some upgrade issues with -rc6 (maybe earlier). It would be good to do some local testing.
Once #354 is merged, please rebase on/merge from that one. And it would be good to locally test a (one node) upgrade from the current musselnet version (0.12.0?) to this commit.
I would be happy to report any issues to the cosmos sdk team. Or report that this worked without problems as a positive test.

I heard some upgrade issues with -rc6 (maybe earlier). It would be good to do some local testing.
Once #354 is merged, please rebase on/merge from that one. And it would be good to locally test a (one node) upgrade from the current musselnet version (0.12.0?) to this commit.
I would be happy to report any issues to the cosmos sdk team. Or report that this worked without problems as a positive test.

We will not perform this.
I will close the PR, but the branch is a good example of an upgrade script. Let's not delete the branch

We will not perform this.
I will close the PR, but the branch is a good example of an upgrade script. Let's not delete the branch


Add ability to display LogBlock mob kill coordinates

Addresses issue 12, see also comments here.

Thanks again!


Any plans for a small widget?

Sorry for posting this as an issue, which it isn't :) Didn't find another way to reach out. Any plans for a small (1x1) widget for the iOS home screen, so basically half the size fo the current one? Would fit my setup a lot better.
This looks amazing, btw!

I second this. The SOC widget is brilliant, it would be good to have a small widget as well. Thanks for putting this together

Now we’re talking - beautiful! Thanks for looking into it 😀
Would it work to have an option to replace “220 km” with the car image?

This is Perfect!I’m not too worried about the image of the car ☺I hope Polestar add features to the app similar to Tesla. Sent from my iPhone.On 10 Apr 2024, at 20:37, Niklas @.***> wrote:
Hey @wabj @Lunkobelix,
Thanks for the feedback!
I will check it out! Is something like that what you would expect?
image.png (view on web)
I think the car image would make it a bit crowded.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

@Lunkobelix probably something similar to what Tesla did?

Let me see if I find some time on the weekend to play around a bit with the layout.

Agreed. It’s brilliant 🤩 Sent from my iPhone.On 10 Apr 2024, at 21:05, Lunkobelix @.***> wrote:
Keep it simple, I’m just happy if I get a smaller widget 😀 I like your design and how clean it looks.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Hi @wabj @Lunkobelix intermediate update, will release the repo and instructions for the small widget most likely tomorrow :)

Love it - looks stunning! 😀

This is stunning, Thanks so much!

Not available see https://github.com/niklasvieth/polestar-ios-small-widget for intructions

thank you so much


Fix OIT shaders error with DX12 backend

Objective

Fixes #15781

Solution

DX12 backend seems to require functions with return types to return value. WebGPU spec also requires this.

Upstream issue: https://github.com/gfx-rs/wgpu/issues/4458 https://github.com/gpuweb/gpuweb/issues/2523
Testing

Tested order_independent_transparency example with both dx12 and vulkan backend on Windows

@akimakinai I'm going to leave this up for a few days; let me know if you won't have time / interest in implementing @IceSentry's small suggestion. I'm content to merge this without that change, but it would be a nice improvement.


cant add joystick through gamepadtool or steam big picture.[cannot detect device]

hello there, sorry to disturb anyone, but i m really running out of idea.
i just bought a new old stock, a roydsstick.ex for ps3 to use in pc.

pc detected it as USB/PAD

i can test it on the device and printers just fine.

but when i open steambig picture or gamepadtool[by General Arcade] it wont detect it .

i have no experience in programming or this sort of thing,been tinkering with it since 3-4 hour ago. i really hope some one can help me here.
most of the program or games i wanted to try wont detect it.
here is the device id for the joystick
HID\VID_1F4F&PID_0003&REV_0001
please help.....

This database is just for mappings. I recommend opening an issue on the SDL mailing list and/or forums to get help from the developers themselves.


Permissions Error with opt folder

Expected behavior
Doing a ls -la should list me all the files in the directory, in this case the /opt directory
Actual behavior
joesan@joesan-InfinityBook-S-14-v5:/opt/softwares$ ls -l
cannot access '.': Permission denied (os error 13)

I guess there is an issue already relating to this. I could not infer the proposed solution to that issue.
https://github.com/Peltoche/lsdcannot access '.': Permission denied (os error 13)/issues/79
Should I uninstall and install a newer version to fix this? If so which package is that for Ubuntu 20.04?

Hi @joesan
May I ask how do u install lsd, if snap, maybe u should uninstall it and try a deb from
https://github.com/Peltoche/lsd#on-ubuntu
or a binary from
https://github.com/Peltoche/lsd#from-binaries
the problem may be caused by snap and it's not easy to fix

hello @joesan,
The snap packages are not more maintained due to too much issues with the jail system. I try without success to delete the available binaries since quite some time. As proposed by @zwpaper you should install it for the .deb.

How do I uninstall from the snap package and reinstall it from debian? Any guide or Wiki on how to do this would be helpful!


Demo for use_cookie in the book is misaligned

Just habe a look at the book and you see what I mean :D

Can I give this a try?
Just to confirm, the changes needed are:
Updating the first paragraph to correct grammatical errors.
Modifying the usage example to include counter_a and counter_b.
Am I on the right track?

This would be great!
If there are grammatical errors please always feel free to correct them. I'm not a native speaker.
But I'm talking about the layout as shown below.

Awesome, thanks! I didn't provide any good description, so no worries. 👍🏼👍🏼


check if user confirmed is account

Is there a way to return only the users that have confirmed their account by clicking to the link in the email ?
Is their a better way to do it ? thanks
users = User.where.not(:confirmed_at => nil)

I don't think there is. Seems like you've found a solution that works for you!


batch 1.3: validate occurrence (generic)

remediation:

length ≤ 5000

resource_uri: (available in v1, but not available in v1beta)

length ≤ 2048

will merge after batch 1.2


Improve dark theme

Current dark theme is quite basic as it contains a black screen with white text.
Need to add proper shades of colors to make the code-editor more eye-friendly and productive.

Can I work on this?

Sure


Added Reverse Linked List dsa problem solution

📥 Pull Request
Description
This Reverse Linked List dsa problem solution, including its description, approach, and implementation.
Fixes #469
Type of change

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

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Hii @ajay-dhangar can u review the pr


Don't impersonate user with CloudClient

I'm using the CloudClient in an Android application. When I try to add something to a user's feed I get "Don't impersonate user" with this code:
        client = CloudClient
            .builder(credentials.apiKey, credentials.token, "jeff")
            .build()
        val feed = client.flatFeed("user")
        feed.addActivity(
            Activity
                .builder()
                .actor("jeff")
                .verb("post")
                .`object`(UUID.randomUUID().toString())
                .extraField("message", message)
                .build()
        ).join()

However, it seems to work fine if I prefix the user with SU: like so:
        client = CloudClient
            .builder(credentials.apiKey, credentials.token, "jeff")
            .build()
        val feed = client.flatFeed("user")
        feed.addActivity(
            Activity
                .builder()
                .actor("SU:jeff")
                .verb("post")
                .`object`(UUID.randomUUID().toString())
                .extraField("message", message)
                .build()
        ).join()

With the other libraries (Swift/JS/etc.) I don't have to do this. Am I doing something wrong? What's the significance of SU?
Thanks!

@psylinse Sorry, it seems this issue is missed.
SU: makes it an enrichable user object stored in our side (in long form Stream User)
You see this error because you initialized your client with a user (jeff) and
with default permission, jeff can only push activities to user:jeff and to ensure it, backend needs its id. However, you could store regular strings there too so we needed a special prefix to differentiate if it is a regular string or a user id. It's a bit unfortunate, this detail is exposed to user in this SDK, slightly because you don't have a user object but its id.