FR: Option to show week numbers in the leftmost column

Hi,
I was thinking that it would be great if we can also have the option to show week numbers as the left most column. For example, please see the image below.

Yes, I would love to have this feature as well. Thank you so much

I just opened this github project to create exactly this issue. It would be great if this was implemented!

Yes! This would be a great addition to this already awesome plugin.


Lightgbm categoricalSlotNames error

Describe the bug
Error occurred when using categoricalSlotNames
To Reproduce
lgb = LightGBMRegressor(alpha=0.3,
learningRate=0.3,
numIterations=100,
numLeaves=31,
labelCol='sales',
categoricalSlotNames = ['fea1'],
featuresCol='features')
assembler = VectorAssembler(
inputCols=['fea1','fea2','fea3','fea4','fea5'],
outputCol="features")
train_sub_tran = assembler.transform(train_sub)
model = lgb.fit(train_sub_tran)
And I got the error
Py4JJavaError: An error occurred while calling o31815.fit.
: java.lang.ClassCastException: java.lang.Integer cannot be cast to [I
at com.microsoft.ml.spark.LightGBMBase$class.train(LightGBMBase.scala:37)
at com.microsoft.ml.spark.LightGBMRegressor.train(LightGBMRegressor.scala:35)
at com.microsoft.ml.spark.LightGBMRegressor.train(LightGBMRegressor.scala:35)
at org.apache.spark.ml.Predictor.fit(Predictor.scala:120)
at sun.reflect.GeneratedMethodAccessor861.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:380)
at py4j.Gateway.invoke(Gateway.java:295)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:251)
at java.lang.Thread.run(Thread.java:748)

@yinyan5988 what version of mmlspark are you using?  Would you be able to try out the latest version to see if the issue is still there?  What dataset did you use to reproduce the issue, is it a public dataset?
This is the latest build:
Maven Coordinates
com.microsoft.ml.spark:mmlspark_2.11:1.0.0-rc1-96-fce3c952-SNAPSHOT
Maven Resolver
https://mmlspark.azureedge.net/maven

Thank you, Ilya

@yinyan5988
Sure. Let me create a new issue. Btw, I tried both. An array version [‘feat1’] and that one. Neither of them work. Should I use string type for that feature? Since it is integer type. And other columns of my features are in different type. Idk if this is the problem.

I don't think this is an issue with the categorical features, but I'm not sure yet.  I think, knowing what version of mmlspark you are using would help a lot, since I'm not able to find the code corresponding to the lines in the stack trace in the latest master.

help
assembler doesn't support the string type, so how can I generate the input vector via assembler before fitting?


Updated Youtube Channels

I added Some more Youtube channels good for software developers.
Issue #885

@fiddlytompkus contribute here https://github.com/Ishaan28malik/Get-Dev-Resources


chore: release main

:robot: I have created a release beep boop
static-server: 3.0.5
3.0.5 (2024-05-07)
Bug Fixes

bump non-breaking dependencies to latest (#312) (705ef32)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aversini/node-cli/releases/tag/static-server-v3.0.5 :sunflower:


I install '@chakra-ui/react' from chakra official site, but it's not solve yet

I tried to solve it through -  npm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^4
npm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^5
nut unable to rectify the prob yet.

Hmm... This could simply be a problem with the typescript interpreter. Try running npm run dev and see if it starts. Additionally try pressing CTRL + SHIFT + P (windows) or CMD + SHIFT + P (mac) and typing in restart ts server and hitting enter, sometimes I find it needs a restart after installing a package or two.

Also just running npm install in that directory should install all the dependencies by itself

npm run dev- this works for me.  Thanks man.


Data Access With ADO.NET In Micro Focus Visual COBOL

Proposed title of article
Data Access With ADO.NET In Micro Focus Visual COBOL
Introduction paragraph (2-3 paragraphs):
ADO is the acronym for ActiveX Data Object and is based on Microsoft technology. Hence, ADO.NET which is the next evolutionary step in data access technology. Employing the aforementioned ADO technology, ADO.NET expands this by incorporating XML into a standard model to not only the relational data models but also the text based XML data.
This will be a multi-part article dealing with data access in the Microsoft .NET arena, using ADO. We will begin with a bit of history of ADO, what it is, why it's so important and finally how to utilize it in a COBOL environment. This article will provide a brief history of the data access as well as provide the basic flow for using ADO to access the data.
Key takeaways:
By the end of this article, the reader will understand:

what ADO and ADO.NET are.
Basic ADO flow.

preparation.
Create a connection to the data object.
Create a command for the data object to act upon.
Read the data returned by the data object.

what wrap up is.

References:
N/A

@Amoh-writer Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it. 🚀

Sounds like a helpful topic - let's please be sure it adds value beyond what is in the official docs and what is covered in other blog sites, and to create a unique project using the concepts above. @Amoh-writer
Please be sure to double-check that it does not overlap with any existing EngEd articles or incoming topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved

Will do, thanks!
0713976067
On Mon, Aug 2, 2021, 1:13 PM Ahmad Mardeni @.***> wrote:

Sounds like a helpful topic - let's please be sure it adds value beyond
what is in the official docs and what is covered in other blog sites, and
to create a unique project using the concepts above. @Amoh-writer
https://github.com/Amoh-writer
Please be sure to double-check that it does not overlap with any existing
EngEd articles or incoming topic suggestions (if you haven't already) to
avoid any potential article closure, please reference any relevant EngEd
articles in yours. - Approved
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/section-engineering-education/engineering-education/issues/2946#issuecomment-890904095,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AU3SQO24CXREQBHCUXBYBO3T2ZVTRANCNFSM5AOKSX2A
.


Added exportCSV and exportTable

I've added two new methods to the md-advanced-tables to export either a raw two dimensional array and a method to straight export a CSV in the most common format used by most spreadsheets (tab spaces cells and newlines between rows).

@tgrosinger This is ready for review and merge :)

This looks great. Thank you!


COMP: Allow setting DisplacementField with a VectorImage

itk::DisplacementFieldTransform is typically set from an array of displacement vectors. Previously only inputs of itk::Image[itk::Vector[<type>,<VectorDimension>],<ImageDimension>] were accepted.
This PR aims to expose a method for setting the transform from an input of type itk::VectorImage[<type>,<ImageDimension>] .
The difference between an "image of vectors" and a "vector image" is that the former has compile-time fixed-length vector pixels whereas the latter has variable-length vector pixels which have been fixed at a certain length at runtime.

PR Checklist

[x] No API changes were made (or the changes have been approved)
[x] No major design changes were made (or the changes have been approved)
[ ] Added test (or behavior not changed)  <-- (added Python test, C++ test pending)
[x] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5

Refer to the ITK Software Guide for
further development details if necessary.

There are several subclasses of itkDisplacementFieldTransform that override SetDisplacementField, in these classes our new overload is hidden:
/playpen-ssd/tgreer/ITK/Modules/Filtering/DisplacementField/include/itkDisplacementFieldTransform.hxx:348:1: warning: ‘void itk::DisplacementFieldTransform<TParametersValueType, VDimension>::SetDisplacementField(itk::DisplacementFieldTransform<TParametersValueType, VDimension>::VectorImageDisplacementFieldType*) [with TParametersValueType = double; unsigned int VDimension = 3; itk::DisplacementFieldTransform<TParametersValueType, VDimension>::VectorImageDisplacementFieldType = itk::VectorImage<double, 3>]’ was hidden [-Woverloaded-virtual]
  348 | DisplacementFieldTransform<TParametersValueType, VDimension>::SetDisplacementField(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /playpen-ssd/tgreer/ITK/Modules/Filtering/DisplacementField/include/itkTimeVaryingBSplineVelocityFieldTransform.h:21,

Is this a concern?

Sorry to chime in. @HastingsGreer @tbirdso thanks for doing this, and for having added a Python test 👌. In order to keep the code coverage, can a C++ test be added, please?

Hi @jhlegarreta , I understand your concern. As these additions are time-sensitive it would be best if we can focus on getting the build passing for now, with changes covered effectively in Python. Can revisit C++ once stable.

Updated the PR description for clarity.

Instead of passing nullptr directly, can we:
DisplacementFieldType * empty{ nullptr };
this->SetDisplacementField(empty);

or

// Default construction is a nullptr
auto empty = DisplacementFieldType::New();
this->SetDisplacementField(empty);

to pass in a typed pointer?

@thewtex Yes, I believe the first is equivalent to a static_cast and would succeed. I'm not sure that I agree that the second case would return a nullptr if New() is used? Either way, yes, there is still an interface available to pass in a null value.

:tada:
Squashing and adding C++ coverage as suggested by @jhlegarreta


Realtime microphone recognition in Android APP

Recently I have spent a lot of time to try to achieve the realtime microphone recognition in Android. However, I was trapped in cross compiling the library using the Android NDK such that I can use the microphone as input for Julius.
7 years ago, there was a project that had successfully used the library in Android. But it only allowed to pass the RAW file / STDIN as the input for recognition. If you want to know more, there is a guideline on cross compile in this project.
After few research, for most of the Android devices, the underlying audio system is using ALSA or OSS. And Julius should theoretically be able to use the microphone as input. However, the main step that I was trapped is the compiler cannot find the header file of any sound system (ALSA/OSS/others) and caused the compilation failed.
Did anyone success to compile the Julius using Android NDK and successfully use the microphone as input to do the voice recognition?

Julius supports PortAudio interface.  The original Portaudio does not support Android, but we have a version of PortAudio that supports Android (and iOS).  It can be availbale in the MMDAgent source code.  You can get it from:
https://sourceforge.net/p/mmdagent/code/HEAD/tree/MMDAgent/Library_PortAudio/
Fetch the library, build the Library_PortAudio for Android (see Android.mk in that package), and then, configure Julius to use libportaudio, and link to the library.
% configure --with-mictype=libportaudio

@nitslp-ri Thanks for the reply. I have successfully build the PortAudio for Android using ndk-build. However, I have trouble to configurate Julius to use portaudio. To use Julius on Android, I have to cross compile Julius for ARM using the android NDK. When I compile Julius, it requested the header and compiled files for portaudio. I set CPPFLAGS with -I${HEADER_DIR} and LDFLAGS with -L${COMPILED_CODE_DIR} for cross compiling Julius.
But the finally it returns error stated that I can't include <SLES/OpenSLES.h> and <SLES/OpenSLES_Android.h> in file pa_android_opensles.c
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:114: error: undefined reference to 'slCreateEngine'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:345: error: undefined reference to 'SL_IID_ENGINE'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:345: error: undefined reference to 'SL_IID_BUFFERQUEUE'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:345: error: undefined reference to 'SL_IID_ANDROIDSIMPLEBUFFERQUEUE'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:345: error: undefined reference to 'SL_IID_ANDROIDCONFIGURATION'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:469: error: undefined reference to 'SL_IID_RECORD'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:469: error: undefined reference to 'SL_IID_PLAY'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:504: error: undefined reference to 'SL_IID_RECORD'
/Users/Desktop/final/android-ndk-r16b/jni/src/src/hostapi/opensles/pa_android_opensles.c:504: error: undefined reference to 'SL_IID_PLAY'
collect2: error: ld returned 1 exit status
make[1]: *** [julius] Error 1

Do you have any idea to solving this? Many thanks

Thanks to @nitslp-ri ! Finally this problem have been solved. I have cross compiled the portaudio from source code with the NDK instead of using ndk-build from the project @nitslp-ri provided.

@marco294 I am trying o use Julius on android too and struggling, could you explain how you got it to work?


Add list of artists responsible for the icons used to the Github and the .jar

Will use the list at (#179) when that's done.

Github? Done.
In the .jar... can do.

So far, done. Will have to do this again when the other 6 relics are done.

So far, done. Will do it again when the other 6 relics are done.

Won't be needed so far since no new graphics entered.


Swap not working due (maybe RPC connection problem)

4th step (Redeeming your Monero) is not going through.
I checked the Debug menu and i i've got this message:
"Failed to generate monero wallet from keys: Failed to generate new wallet from keys: JSON-RPC request failed with code -1: Wallet already exists."
I also checked the "monero-wallet-rpc.txt" file. There i got ERROR/WARNING messages which are saying:
"2023-08-17 11:58:23.164	6080	WARNING	wallet.rpc	src/wallet/wallet_rpc_server.cpp:4620	Starting wallet RPC server
2023-08-17 11:58:26.984	[RPC0]	WARNING	wallet.wallet2	src/wallet/wallet2.cpp:5569	Loaded wallet keys file, with public address: DELETED FOR SAFETY PURPOSES
2023-08-17 11:58:29.051	[RPC0]	ERROR	wallet.rpc	src/wallet/wallet_rpc_server.cpp:3622	boost::filesystem::exists(wallet_file, ignored_ec). THROW EXCEPTION: error::file_exists
2023-08-17 11:58:29.330	[RPC0]	WARNING	wallet.wallet2	src/wallet/wallet2.cpp:5569	Loaded wallet keys file, with public address: DELETED FOR SAFETY PURPOSES
2023-08-17 12:02:34.190	1700	INFO	logging	contrib/epee/src/mlog.cpp:273	New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.ssl:FATAL,net.p2p:FATAL,net.cn:FATAL,daemon.rpc:FATAL,global:INFO,verify:FATAL,serialization:FATAL,daemon.rpc.payment:ERROR,stacktrace:INFO,logging:INFO,msgwriter:INFO
So i guess something with the RPC Connection is not working. Could someone please help me ?
Thank you very much.
Your Environment

UnstoppableSwap Version: 0.5.0
Operating System and version: Windows 10 running on a virtual machine.

Constantly Loading:

Hey thanks for reporting this issue,
first of all your funds are safe. They are stored in a Monero wallet only you have the keys to.
The swap-cli is having trouble redeeming the Monero. This issue has occured before and we are still investigating.
Now, to recover your XMR funds you have to do the following:

Download the swap-cli from https://github.com/comit-network/xmr-btc-swap/releases/tag/0.12.2 for your system. This is the program that's used in the background to facilitate the swaps.
Get the ID of your swap from the "History" tab
Open PowerShell, navigate to the directory of the swap.exe file using cd (e.g cd Desktop)
Run this command:
./swap monero-recovery --swap-id YOUR_SWAP_ID
You'll get a view key and a spend key printed to the console.
Use the monero-wallet-gui to restore the wallet from the printed keys. Use a restore height a few days before your swap was done (https://www.getmonero.org/resources/user-guides/restore_from_keys.html)

I apologize for the trouble. We'll make sure this issue is fixed in a future release.

Also, could you please share the logs of your swap us. It'll help us debug the issue better and find a solution quicker. Go the History tab, click on the expand icon and click "View Log".

Thank you for your answer, unfortunately it is still not working.
I did download the swap-cli -> put in on my Desktop -> opened Powershell -> directed to my Desktop (where the swap-cli is) -> run the command: ./swap monero-recovery --swap-id YOUR_SWAP_ID -> Got a Error message (see attached photo)
I tried and checked it many times that i spelled the Swap ID correctly.

Thank you for your answer, unfortunately it is still not working.
I did download the swap-cli -> put in on my Desktop -> opened Powershell -> directed to my Desktop (where the swap-cli is) -> run the command: ./swap monero-recovery --swap-id YOUR_SWAP_ID -> Got a Error message (see attached photo)
I tried and checked it many times that i spelled the Swap ID correctly.

Here are the logs. For safety purposes i deleted some ID's and replaced them with:"Deleted for safety purposes.". I really don't know if someone could get them and steal them and can get my money with it, i don't really know how it works so i just wanted to be safe.
The Log;
{"timestamp":"2023-08-17T10:10:26.546475Z","level":"INFO","fields":{"message":"Logging initialized to C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\logs"}}
{"timestamp":"2023-08-17T10:10:26.546588Z","level":"DEBUG","fields":{"message":"Using existing sqlite database."}}
{"timestamp":"2023-08-17T10:10:26.547984Z","level":"DEBUG","fields":{"message":"Reading in seed from C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\seed.pem"}}
{"timestamp":"2023-08-17T10:10:27.051771Z","level":"DEBUG","fields":{"message":"RPC exec path: C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\monero\monero-wallet-rpc.exe"}}
{"timestamp":"2023-08-17T10:10:28.073953Z","level":"DEBUG","fields":{"message":"RPC version output: Monero 'Fluorine Fermi' (v<IP_ADDRESS>-release)\r\n"}}
{"timestamp":"2023-08-17T10:10:28.074269Z","level":"DEBUG","fields":{"message":"Starting monero-wallet-rpc","port":"54106"}}
{"timestamp":"2023-08-17T10:10:33.714794Z","level":"DEBUG","fields":{"message":"Opened Monero wallet","monero_wallet_name":"swap-tool-blockchain-monitoring-wallet"}}
{"timestamp":"2023-08-17T10:10:35.767044Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"DELETED FOR SAFETY PURPOSES"}}
{"timestamp":"2023-08-17T10:10:35.767114Z","level":"DEBUG","fields":{"message":"Requesting quote"}}
{"timestamp":"2023-08-17T10:10:35.876921Z","level":"INFO","fields":{"message":"Connected to Alice at /dns4/beta.unstoppableswap.net/tcp/9939/p2p/DELETED FOR SAFETY PURPOSES"}}
{"timestamp":"2023-08-17T10:10:35.917212Z","level":"INFO","fields":{"message":"Received quote","price":"0.00558376 BTC","minimum_amount":"0.0005 BTC","maximum_amount":"0.15 BTC"}}
{"timestamp":"2023-08-17T10:10:35.966466Z","level":"INFO","fields":{"message":"Determined swap amount","amount":"0.00257563 BTC","fees":"0.00001292 BTC"}}
{"timestamp":"2023-08-17T10:10:35.987978Z","level":"DEBUG","fields":{"message":"Advancing state","state":"quote has been requested"}}
{"timestamp":"2023-08-17T10:10:36.025939Z","level":"DEBUG","fields":{"message":"Estimated fee for transaction","weight":"548","fee_rate":"10.58","sats_per_vbyte":"1449.460"}}
{"timestamp":"2023-08-17T10:10:36.066206Z","level":"DEBUG","fields":{"message":"Estimated fee for transaction","weight":"596","fee_rate":"10.58","sats_per_vbyte":"1576.420"}}
{"timestamp":"2023-08-17T10:10:38.795936Z","level":"INFO","fields":{"message":"Starting new swap","swap_id":"DELETED FOR SAFETY PURPOSES"}}
{"timestamp":"2023-08-17T10:10:38.808832Z","level":"DEBUG","fields":{"message":"Advancing state","state":"execution setup done"}}
{"timestamp":"2023-08-17T10:10:38.838670Z","level":"INFO","fields":{"message":"Published Bitcoin transaction","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","kind":"lock"}}
{"timestamp":"2023-08-17T10:10:38.855961Z","level":"DEBUG","fields":{"message":"Advancing state","state":"btc is locked"}}
{"timestamp":"2023-08-17T10:10:39.136506Z","level":"DEBUG","fields":{"message":"Found relevant Bitcoin transaction","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","status":"unseen"}}
{"timestamp":"2023-08-17T10:10:39.136641Z","level":"INFO","fields":{"message":"Waiting for Alice to lock Monero"}}
{"timestamp":"2023-08-17T10:11:41.990409Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"in mempool","old_status":"unseen"}}
{"timestamp":"2023-08-17T10:31:22.988096Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803594}}
{"timestamp":"2023-08-17T10:34:27.846183Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803595}}
{"timestamp":"2023-08-17T10:34:27.865205Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 1 blocks","old_status":"in mempool"}}
{"timestamp":"2023-08-17T10:35:27.997455Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803596}}
{"timestamp":"2023-08-17T10:35:28.017113Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 2 blocks","old_status":"confirmed with 1 blocks"}}
{"timestamp":"2023-08-17T10:35:52.554793Z","level":"INFO","fields":{"message":"Alice locked Monero","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178"}}
{"timestamp":"2023-08-17T10:35:52.558919Z","level":"DEBUG","fields":{"message":"Advancing state","state":"XMR lock transaction transfer proof received"}}
{"timestamp":"2023-08-17T10:35:52.559464Z","level":"INFO","fields":{"message":"Waiting for Monero transaction finality","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","target_confirmations":"10"}}
{"timestamp":"2023-08-17T10:35:52.655757Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"1","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:37:52.606950Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"2","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:39:16.606328Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"3","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:40:28.600037Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"4","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:41:39.206234Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803597}}
{"timestamp":"2023-08-17T10:41:39.223375Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 3 blocks","old_status":"confirmed with 2 blocks"}}
{"timestamp":"2023-08-17T10:42:16.609421Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"5","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:43:04.597559Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"6","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:43:41.537718Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803599}}
{"timestamp":"2023-08-17T10:43:41.616856Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 5 blocks","old_status":"confirmed with 3 blocks"}}
{"timestamp":"2023-08-17T10:46:40.597156Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"7","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:49:04.597348Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"8","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:50:04.604420Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"9","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:50:40.849840Z","level":"INFO","fields":{"message":"Received new confirmation for Monero lock tx","txid":"51d227856cb84ecc88941aae28b7b65ad2840326dd508f15a2d2c9eb94346178","seen_confirmations":"10","needed_confirmations":"10"}}
{"timestamp":"2023-08-17T10:50:40.863094Z","level":"DEBUG","fields":{"message":"Advancing state","state":"xmr is locked"}}
{"timestamp":"2023-08-17T10:50:40.863513Z","level":"DEBUG","fields":{"message":"Constructed Bitcoin spending transaction","fee":"1449"}}
{"timestamp":"2023-08-17T10:50:40.919310Z","level":"DEBUG","fields":{"message":"Advancing state","state":"encrypted signature is sent"}}
{"timestamp":"2023-08-17T10:50:40.919523Z","level":"DEBUG","fields":{"message":"Constructed Bitcoin spending transaction","fee":"1449"}}
{"timestamp":"2023-08-17T10:50:40.920759Z","level":"DEBUG","fields":{"message":"Found relevant Bitcoin transaction","txid":"402273fe2abdf76bcb684450fc3af8ceb337e89e16ac2e591b51df8709261291","status":"unseen"}}
{"timestamp":"2023-08-17T10:51:59.607621Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"402273fe2abdf76bcb684450fc3af8ceb337e89e16ac2e591b51df8709261291","new_status":"in mempool","old_status":"unseen"}}
{"timestamp":"2023-08-17T10:52:01.783145Z","level":"DEBUG","fields":{"message":"Advancing state","state":"btc is redeemed"}}
{"timestamp":"2023-08-17T10:57:09.007115Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803600}}
{"timestamp":"2023-08-17T10:57:09.079684Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 6 blocks","old_status":"confirmed with 5 blocks"}}
{"timestamp":"2023-08-17T10:57:09.079756Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"402273fe2abdf76bcb684450fc3af8ceb337e89e16ac2e591b51df8709261291","new_status":"confirmed with 1 blocks","old_status":"in mempool"}}
{"timestamp":"2023-08-17T11:02:18.253128Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803601}}
{"timestamp":"2023-08-17T11:02:18.306678Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"402273fe2abdf76bcb684450fc3af8ceb337e89e16ac2e591b51df8709261291","new_status":"confirmed with 2 blocks","old_status":"confirmed with 1 blocks"}}
{"timestamp":"2023-08-17T11:02:18.306748Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 7 blocks","old_status":"confirmed with 6 blocks"}}
{"timestamp":"2023-08-17T11:08:29.987578Z","level":"DEBUG","fields":{"message":"Got notification for new block","block_height":803602}}
{"timestamp":"2023-08-17T11:08:30.049776Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"402273fe2abdf76bcb684450fc3af8ceb337e89e16ac2e591b51df8709261291","new_status":"confirmed with 3 blocks","old_status":"confirmed with 2 blocks"}}
{"timestamp":"2023-08-17T11:08:30.049853Z","level":"DEBUG","fields":{"message":"Bitcoin transaction status changed","txid":"7b5f69e61cc83cfb1ae6ff331ae458aa115d03e8ee374cc6fc9772d31a05c75d","new_status":"confirmed with 8 blocks","old_status":"confirmed with 7 blocks"}}
{"timestamp":"2023-08-17T11:16:06.873309Z","level":"INFO","fields":{"message":"Logging initialized to C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\logs"}}
{"timestamp":"2023-08-17T11:16:06.874026Z","level":"DEBUG","fields":{"message":"Using existing sqlite database."}}
{"timestamp":"2023-08-17T11:16:06.885535Z","level":"DEBUG","fields":{"message":"Reading in seed from C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\seed.pem"}}
{"timestamp":"2023-08-17T11:16:07.355985Z","level":"DEBUG","fields":{"message":"RPC exec path: C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\mainnet\monero\monero-wallet-rpc.exe"}}
{"timestamp":"2023-08-17T11:16:08.707592Z","level":"DEBUG","fields":{"message":"RPC version output: Monero 'Fluorine Fermi' (v<IP_ADDRESS>-release)\r\n"}}
{"timestamp":"2023-08-17T11:16:08.707865Z","level":"DEBUG","fields":{"message":"Starting monero-wallet-rpc","port":"63740"}}
{"timestamp":"2023-08-17T11:16:14.217606Z","level":"DEBUG","fields":{"message":"Opened Monero wallet","monero_wallet_name":"swap-tool-blockchain-monitoring-wallet"}}
{"timestamp":"2023-08-17T11:16:16.242261Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"DELETED FOR SAFETY PURPOSES"}}
{"timestamp":"2023-08-17T11:16:16.243257Z","level":"DEBUG","fields":{"message":"Advancing state","state":"btc is redeemed"}}
{"timestamp":"2023-08-17T11:16:16.252405Z","level":"WARN","fields":{"message":"Failed to generate monero wallet from keys: Failed to generate new wallet from keys: JSON-RPC request failed with code -1: Wallet already exists.: JSON-RPC request failed with code -1: Wallet already exists."}}
{"timestamp":"2023-08-17T11:16:16.252464Z","level":"INFO","fields":{"message":"Falling back to trying to open the the wallet if it already exists","wallet_file_name":"DELETED FOR SAFETY PURPOSES"}}
{"timestamp":"2023-08-17T11:16:16.387315Z","level":"INFO","fields":{"message":"Connected to Alice at /dns4/beta.unstoppableswap.net/tcp/9939/p2p/DELETED FOR SAFETY PURPOSES"}}

Try adding this flag to the terminal command
./swap --base-dir C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\ monero-recovery --swap-id YOURSWAPID
Also try running:
/swap --base-dir C:\Users\vboxuser\AppData\Roaming\xmr-btc-swap\cli\ history

I am getting this Error message:

--base-dir isn't working unfortunately but i don't understand why.

I made a small mistake. Can you try again? I edited my original message

Hello binarybaron,
it worked! I got access to the wallet and i've sent the monero to another wallet.
Thank you very much for your help, without you my money would be gone :)


Michailidou (2015) top loci irregular

Study ID: GCST007236
https://dev--genetics-app.netlify.com/study/GCST007236
Symptoms:

Many top loci on chroms 20 and 21
There is another study ID for Michailidou (2015): https://dev--genetics-app.netlify.com/study/GCST004950

Have checked toploci table and the problem exists there. Need to check the credible set table:
gsutil -m cat gs://genetics-portal-data/credible_sets/190430/part-\*-e86fcb17-55d9-4eb8-84a1-6861c2742d01-c000.json.gz | zgrep GCST007236 > credible_sets.GCST007236_only.json

I should also check the raw sumstat data: gs://genetics-portal-sumstats-b38/unfiltered/gwas/GCST007236.parquet

Data has been updated since last comment, so assuming the problem is fixed. Please raise if not


Sorting by multiple columns

Add option to sort by multiple columns using simple logic.
No sort -> sort ASC -> sort DESC -> no sort
On DataGrid class add method DataGrid::setMultiSortable($multiSortable = TRUE);.

Can you do that? :)

Well I can try? :)

When do you expect this will be done? Just bumped into few grids where I need that :)


Ignored private field still exported

C++ code:
class CS_API AttributeConfig
{
	CS_IGNORE std::vector<kit::Matching::AttributeMetadata> _attribs;
public:
	AttributeConfig() {}
        // etc.
};

C# code includes the _attribs field which was previously (and needs to be) skipped.
public unsafe partial class AttributeConfig : IDisposable
            {
                [StructLayout(LayoutKind.Explicit, Size = 32)]
                public partial struct __Internal
                {
                    [FieldOffset(0)]
                    internal global::Std.Vector.__Internal _attribs;
                    // etc.

Note that the _attribs is not actually used anywhere else in C#; it could totally not be there and everyone would be happy. It is there on the C++ type and needs to be, but it is private and marked CS_IGNORE which in previous versions meant it would not be emitted.

The field should only be generated on the internal struct. The problem here is that we need to have the P/Invoke struct fully qualified or in some cases the runtime might have trouble figuring out how to pass it to the native side regarding calling conventions. In some cases skipping them might work but it's better to be safe than sorry.
Since they are internal anyway, does it make any difference for your use case or is it just a cosmetic thing?

Yea, that wont compile, the internal field internal global::Std.Vector.__Internal _attribs; is not even a real type in my C# project. Neither is AttributeMetadata. Those are C++ system library types. The purpose of the AttributeConfig type (which I wrote) is to expose a what needs to be  used to C# without directly using complex system library types that cannot be exported.

@jamesford42 you need to include an additional generated file, it's called Std.cs. I would personally recommend an even more convenient solution, turn the option for automatic compilation on and you''ll directly get assemblies - unless we have generated invalid code because of bugs.

I had to revert to the version of CppSharp I was using before. I can't expose every single private C++ field to C#.

I am afraid I don't understand what the problem is. These fields are not visible in the public API.

@jamesford42 Can you explain the issue with the private fields? Is there some reason you cannot have them appear on the generated code? If we understand the issue, maybe we can figure out a solution that works for your needs.

They reference types that are unknown to my C# project and as a result do not build.

@jamesford42 please take a look at my explanation 5 comments above.

I am having the same problem now that I have updated CppSharp. Previously private member variable pointer types were not generated at all.
C++
class WrapperClass
{
public:
	void SomeMethod(int value);

private:
	CS_IGNORE class ClassNotWantedInCSharp* mField;
};

Generates this
C#
    public unsafe partial class ClassNotWantedInCSharp
    {
        [StructLayout(LayoutKind.Explicit, Size = 0)]
        public partial struct __Internal
        {
        }
    }

    public unsafe partial class WrapperClass: IDisposable
    {
        [StructLayout(LayoutKind.Explicit, Size = 12)]
        public partial struct __Internal
        {
            [FieldOffset(0)]
            public global::System.IntPtr mField;
        }
    }

Note that before I did not even need the CS_IGNORE macro.
Is this something that can be fixed quickly? This new behavior is resulting in type collisions with unrelated Managed types.  As @jamesford42 mentions this is a pattern I use as well to hide complex native implementations that cannot be bound directly.

@jazzay as we told @jamesford42 , this is not a bug and is not going to be "fixed". These fields are only generated in the internal structure and serve marshalling purposes. In fact, in the summer we are going to need them even more because we are going to switch from explicit to sequential layouts. The latter require absolutely every field to be present since they do not use field offsets. From what you described the only piece which seems to be a bug is the type collision - I assume ambiguity - with real types. If that is the case, I'll be happy to continue this discussion.

I still believe there is a bug here. The generated class (ClassNotWanted in example above) actually lives in the public namespace of the generated file. As you can see in my example it is not actually even used within the generated wrapping class - mField is an IntPtr, i do not want that exposed to bindings. In my Cpp header that is parsed this type is not exposed/included anywhere, it is forward declared and private - following the Impl pattern for C++. Private types should not be exposed to bindings for any reason imho. If you guys don't want to fix this then please point me in the right direction so I can make this fix in my own fork if necessary, which would be too bad.

@jazzay I agree classes the internals of which are only used through pointers as in your case can be removed. However, I have to ask you if such classes cause your generated code to be invalid. If they do, this is a bug. If not, it's a minor optimisation to be made. The proper solution depends on your answer.

In my case I need to wrap the internal private native class with a native wrapper for binding, but I want the generated managed class to have the same name as the hidden C++ class for API reasons. So I used SetClassBindName to rename the binding wrapper. This worked fine before, but now with the hidden ptr class also being generated I get a conflict. The current inner native implementation is not easy to auto generate bindings for due to legacy dependencies, hence the binding wrapper. Hope this makes sense.
Also, it just feels/looks wrong exposing private implementation details to the public binding namespace.

@jazzay I understand. What you can do quickly is find the offending class in PostProcess and remove it from its parent, like this:
var @class = astContext.FindClass("ClassNotWantedInCSharp");
@class.Namespace.Declarations.Remove(@class);

The proper solution is a new pass for C++# which checks if classes with just internals are directly used for any field and if not, remove them. However, I cannot tell when we'd have the time to fix it ourselves so unless you'd like to try yourself, the workaround above should help you for the time being.
About exposing private implementation details, it is wrong. We intend to make all internals, well, internal, using the keyword of the same name. However, https://github.com/mono/CppSharp/issues/511 blocks us and we must solve that first.

Thanks for the guidance. Will use that as a work around for now.


ignoring errors

https://github.com/o1egl/govatar/blob/7b91520bc57a1281ff750d57c335e2c7acb053f2/govatar.go#L126
you're effectively ignoring any possible errors returned by other function calls here... the correct (albeit tedious) way to error check, would be to use one "if err != nil" per "err = ..." line

oops nevermind this, just realized the clever trick you're using passing err as an argument


Update distance matrix to xarray type

What is the purpose of this PR?
Addresses and closes #191. The problem with our current distance matrix implementation is that it's not flexible. In other words, we have to assume that indices correspond to their respective cell labels. This is a limitation of numpy arrays for distance matrices. Using xarrays, we can assign more flexible indices.
How did you implement your changes
The bulk of the changes involve updating calc_dist_matrix and the indexing into distance matrices elsewhere in the spatial analysis code. We change the return type of calc_dist_matrix to xarray and add an indices argument to allow the passage of a set of indices for each fov which correspond to the cell labels. In this way, we do not have to worry about misordering of a distance matrix nor do we have to spend time to reindex the numpy array.
Indexing into a dist_matrix in xarray format will now use the .loc format.
Remaining issues
Specifically, the biggest issue is making sure our indexing is correct. There are many places where we use numpy functions on distance matrices and these might need to be updated for xarray usage/reindexing.

Not liking having to specify a dict of coordinates for calc_dist_matrix to work properly, that'll be the biggest point to look at for the upcoming code review.

Remaining coverage issues due to lack of plot_utils and segmentation_utils testing.

Everything looks good! Is there any reason we need to keep the old version of the expression matrix and segmentation labels in the master branch?

I'll remove those and re-request.


update version labels for various build types / branch names

Summary
This pull request should change the build labels for pull requests to -pr from -PullRequest, release* to -rc, and other branch as -unstable.

I am not sure if my comment makes sense, but what about stable/final releases ?

These are the default tags, if we tag a commit it overrides these labels. I think...


Refresh token

The "oauth.refresh" message is now handled and will trigger a token
refresh if possible. The Message data must contain valid "skill_id" and
"app_id" fields.
It also adds a basic "expires_at" entry to the token data to help determining if a token needs to be renewed.

Thanks for the feedback, I'll fix the things mentioned and update the PR

I've done some updates according to discussion above: updated the expires_at criteria, added response to the incoming refresh request. (If consensus is that oauth.token.response.xxx should be used I can change that).
Is there a standard for how OVOS handles "bad" results that I should use? now I've added a result field with a string (Error/Ok)


Azure data factory Create a copy activity by python Error

Type of issue
Code doesn't work
Feedback
    # Create a copy activity
    act_name = 'copyBlobtoBlob'
    blob_source = BlobSource()
    blob_sink = BlobSink()
    dsin_ref = DatasetReference(reference_name=ds_name)
    dsOut_ref = DatasetReference(reference_name=dsOut_name)
    copy_activity = CopyActivity(name=act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

this part is not working..
error is :
Cell In[13], [line 102](vscode-notebook-cell:?execution_count=13&line=102)
    [100](vscode-notebook-cell:?execution_count=13&line=100) blob_source = BlobSource()
    [101](vscode-notebook-cell:?execution_count=13&line=101) blob_sink = BlobSink()
--> [102](vscode-notebook-cell:?execution_count=13&line=102) dsin_ref = DatasetReference(reference_name=ds_name)
    [103](vscode-notebook-cell:?execution_count=13&line=103) dsOut_ref = DatasetReference(reference_name=dsOut_name)
    [104](vscode-notebook-cell:?execution_count=13&line=104) copy_activity = CopyActivity(name=act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

TypeError: DatasetReference.__init__() missing 1 required keyword-only argument: 'type'

please help me
i following https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python
Page URL
https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python
Content source URL
https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python
Author
ganbaaelmer
Document Id
Article 05/15/2024
title: 'Quickstart: Create an Azure Data Factory using Python'
author: ssabat
ms.author: susabat
ms.reviewer: jburchel
ms.subservice: data-movement
ms.devlang: python
ms.topic: quickstart
ms.custom: devx-track-python, mode-api

@ganbaaelmer
Thanks for your feedback! We will investigate and update as appropriate.

@ganbaaelmer
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.


Question: separately control channels volume

I'm trying to set different volume levels to each channel.
It works ok, but audio output is mono.
So, I have 2 questions:

Could you help me to output 1st channel as left one, and 2nd channel as right one?
What's the correct way to pass params to a filter? For example, merger needs 2nd and 3rd params of connect.
What's the correct order of setFilters params array?

Wavesurfer.js version(s):
1.4.0
Browser version(s):
Chrome 58 (OSX)
Code needed to reproduce the issue:
const splitter = wavesurfer.backend.ac.createChannelSplitter(2);
const merger = wavesurfer.backend.ac.createChannelMerger(2);
const leftGain = wavesurfer.backend.ac.createGain();
const rightGain = wavesurfer.backend.ac.createGain();

splitter.connect(leftGain, 0);
leftGain.gain.value = 0.3;

splitter.connect(rightGain, 1);
rightGain.gain.value = 0.6;

leftGain.connect(merger, 0, 0);
rightGain.connect(merger, 0, 1);

wavesurfer.backend.setFilters([splitter, leftGain, rightGain, merger]);

In case you need a solution:
replace wavesurfer.backend.setFilters([splitter, leftGain, rightGain, merger]);
with wavesurfer.backend.setFilters([splitter, leftGain, merger]);


Support Dojo's 'lite' selector engine?

I broke 'offline-tiles-advanced-src.js' at ~line 811 (image = query("img[src="+tileid+"]")[0];) by using Dojo's lite selector engine. It took me a while to figure this out, but changing the selector engine to 'acme' in my dojoConfig fixed the issue.
I haven't looked to see if the query could be reformatted to be supported by lite, but wanted to bring it up. Thanks!

@saclarky Good catch. Nope, no plans to support it specifically. The goal is for the libraries to be as framework agnostic as possible. I know there is occasional use of dojo shorthand where it provided simplification, such as the query that you pointed out. I'm also (very) aware that sometimes that pattern of simplification can introduce hidden dependencies.
So, if there are generic, plain old JavaScript work-arounds that work on the latest versions of Chrome, Safari and Firefox then I'm open to considering those.


Blank appointment data validation bug

Had bug where a pledge had been submitted, PT called back for another pregnancy, and somehow the date and clinic had been removed. New date/clinic were not able to be saved because pledge was already marked sent, but pledge was unable to be unsent because date/clinic fields were null.
Colin worked around by unpledging through the backend but actual fix needs to be worked out.

Steps to recreate:

create a new patient
give them an appointment date and clinic name
submit their pledge
blank out their appointment date or clinic
try to save a new appointment date or clinic

Expected behavior: Should save!
Actual behavior: No save!
The pledge sent field validation is tripping us up here. I think in an ideal world it lets you replace but not empty out fields necessary for a pledge after a pledge has been sent, rather than failing to save.

Takin' a look.

Hi @colinxfleming !
I don't seem to be able to reproduce this, could you let me know what I'm doing wrong?
Here are the steps I'm taking:

Going to build your call list & entering a name to get to the create patient screen
Entering a name, phone number, appointment date (2-1-2017), clinic name and DCAF soft pledge (50) to get a valid record
Logging a call
Submitting pledge
Changing appointment date on page
Logging another call
Submitting pledge again
Seems to work as expected. (Appointment date change is reflected.)

@valeriecodes for the life of me, I can't recreate this either -- when I try and clear out a patient field . Since it's happened all of once to our prod data and we can't recreate, I'm inclined to call this unresolvable as such (or maybe not possible with patients created more recently?) and close.
@vtmeghan can you make sure to flag for the dev team if this pops up again?

As noted in slack, I think this bug stems from a case of validation rules changing around a little bit in flight, so this will only be an issue in extremely rare cases. Closing as as a wontfix.


Can't setup CEF

Hi, today i wanted to install browservice on Debian 9 stretch. I downloaded CEF successfly. When type in terminal ./setup-cef.sh, i have an output:
Extracting CEF
Building CEF DLL wrapper
~/browservice-<IP_ADDRESS>/cef/releasebuild ~/browservice-<IP_ADDRESS>
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

How to fix that error?

Oh ok fixed. In dependencies for Ubuntu/Debian there aren't make package, you must add it

fixed, you must add make in dependencies for ubuntu/debian


Kha.Blob not found when compiling to WPF

WPF isn't compiling in the latest kha. here is the output:
Creating Kha project.
Exporting asset 1 of 2 (bg.jpg).
Exporting asset 2 of 2 (tree.png).
Assets done.
C:\Dev\SDKs\Kha\Sources/kha/graphics4/Graphics.hx:4: characters 7-15 : Type not found : kha.Blob
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'C:\Dev\Projetos\TestBug\build\wpf-build\Project.sln'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at WpfExporter.writeFile (C:\Dev\SDKs\Kha\Tools\khamake\Exporter.js:13:17)
at WpfExporter.exportSLN (C:\Dev\SDKs\Kha\Tools\khamake\CSharpExporter.js:70:8)
at WpfExporter.exportSolution (C:\Dev\SDKs\Kha\Tools\khamake\CSharpExporter.js:63:8)
at exportProjectFiles (C:\Dev\SDKs\Kha\Tools\khamake\main.js:246:42)
at exportKhaProject (C:\Dev\SDKs\Kha\Tools\khamake\main.js:600:2)
at exportProject (C:\Dev\SDKs\Kha\Tools\khamake\main.js:609:3)
at Object.exports.run.callback [as run] (C:\Dev\SDKs\Kha\Tools\khamake\main.js:721:2)
at Object. (C:\Dev\SDKs\Kha\Tools\khamake\khamake.js:285:23)

Can't reproduce this one, kha.Blob exists in the WPF backend. Can you upload a project which doesn't compile?

https://www.dropbox.com/s/qmk9ythdw88uzxa/TestBug.zip?dl=0
I updated Kha to test again, and now I'm receiving a different error:
Creating Kha project.
Exporting asset 1 of 2 (bg.jpg).
Exporting asset 2 of 2 (tree.png).
Assets done.
C:\Dev\SDKs\Kha\Sources/kha/graphics4/VertexBuffer.hx:3: characters 7-30 : Type not found : kha.arrays.Float32Array
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'C:\Dev\Projetos\Kha\BugTests\TestBug\build\wpf-build\Project.sln'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at WpfExporter.writeFile (C:\Dev\SDKs\Kha\Tools\khamake\Exporter.js:13:17)
at WpfExporter.exportSLN (C:\Dev\SDKs\Kha\Tools\khamake\CSharpExporter.js:70:8)
at WpfExporter.exportSolution (C:\Dev\SDKs\Kha\Tools\khamake\CSharpExporter.js:63:8)
at exportProjectFiles (C:\Dev\SDKs\Kha\Tools\khamake\main.js:253:22)
at exportKhaProject (C:\Dev\SDKs\Kha\Tools\khamake\main.js:610:9)
at exportProject (C:\Dev\SDKs\Kha\Tools\khamake\main.js:619:10)
at Object.exports.run.callback [as run] (C:\Dev\SDKs\Kha\Tools\khamake\main.js:732:9)
at Object. (C:\Dev\SDKs\Kha\Tools\khamake\khamake.js:285:37)

Aha, one step further, only happens with non-local Kha...

Now is working, thanks. Next time I will mention if I'm using a external Kha.


feat: Add Norwegian locale

Took liberty of adding Norwegian locale

There is already nb for Bokmål and nn for Nynorsk (in the develop branch) so this could be edited to fix the issues with the existing Bokmål translation (asimut misspelled as azimut, elevasjon instead of høyde). For the record: eg kan norsk.


Bringing UniGrid in line (cherry-picked)

Redoing #27 without unrelated commits

This is my attempt to make UniGrid return something that looks like a Vector, while being as efficient as I can make it.
I spent much time looking into "Lazy" implementations, but the best I could find was "Iterators.product", which returns Tuples, which don't work with some of the ApproximateGPs.jl stuff that I played with.
I had to change some eltype(...) == Vector(...) into eltype(...) <: AbstractVector to make the tests work with ColVecs output.
This is not final just yet, as there is some more polish to do. Either in this PR or in another one, I think it would be good to streamline the output types. I personally like what can be seen in KmeansAlg, which returns a Vector{<:Real} for scalar inputs x and a ColVecs otherwise (i.e multidim inputs), and I think that perhaps all methods could do that.

I had more something like this in mind:
struct UniformGrid{T,Tl} <: AbstractVector{T}
  grids::Tl # Collection of LinRange
end

Base.length(grid::UniformGrid) = product(length, grid.grids)

getindex(grid::UniformGrid, i) = collect(getindex(Iterators.product(grid.grids), i))

## Add more functions

And maybe try to use the specialization of the kernelkron matrix interface. This way, even for high-dimensional inputs we never fully allocate the matrix.
But maybe there is an already existing implementation somewhere, I will look into it.

copying

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

19 of 19 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+4.6%) to 98.538%

Totals

Change from base Build<PHONE_NUMBER>:
4.6%

Covered Lines:
337

Relevant Lines:
342

💛  - Coveralls

So the closest thing I found is :
using LazyGrids
struct UniGrid{T,Tg,Tl} <: AbstractVector{T}
   linranges::Tl #  A vector of linranges
   grids::Tg # AbstractVector of lazy Array{T,D}
end
UniGrid(args::VarArgs{<:AbstractVector}) = UniGrid(collect(args), collect(ndgrid(args...)))
function update!(grid::UniGrid, args...)
  # Update grid.linranges in-place (it's a vector so we can)
  # Recompute the lazy instances of grid.grids
end
getindex(grid::Unigrid, i) = getindex.(grid.grids, i)
length(grid::Unigrid) = length(first(grid.grids))

I am not sure what the most efficient method is

I can run some tests? In my experiments yesterday I found that many of the "lazy" implementations had substantially higher computation costs, but that might be worth it for really high-dim use cases.
That said, I am not sure if it doesn't become a GP problem before one reaches the number of points where the memory for Z would be an issue?

That said, I am not sure if it doesn't become a GP problem before one reaches the number of points where the memory for Z would be an issue?

The more general idea is to take advantage of it. For D < 3 etc it can work for small N but then it will directly be intractable.
Generally one should use UniGrid with kernelkronmatrix but we still need to provide a standard interface for kernelmatrix

Ah, that is right. I now also remember some Toeplitz stuff that one can get for the kernel matrix for some kernels on a uniform grid.
That would make making a custom type worthwhile. I can give this a shot today.

I think the best shot would be to write a wrapper around Iterators.product while keeping the 1d grid to pass to kernelkronmat

This is obsolete now (implemented #31 )


python310Packages.numba: unstable-2023-08-02 -> unstable-2023-08-11

Description of changes
Just saw there were some updates while investigating another issue.
Add meta.mainProgram

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

See also #248316

There's a hash mismatch detected by ofborg. I wonder whether the difference between the hashes is the same as explained in the comment near the hash.

There's a hash mismatch detected by ofborg. I wonder whether the difference between the hashes is the same as explained in the comment near the hash.

Must be. Updated to latest commit from upstream while I was at it.

@ofborg build python3.pkgs.numba

Must be. Updated to latest commit from upstream while I was at it.

Would it be possible to verify this please? I'm just deeply interested whether this is something funny about GitHub's git archive calls. You can check that by going back to the old hash. Use diff --recursive between that nix build -Lf. python3.pkgs.numba.src result and the manually downloaded and extracted tarball. The old hash, according to ofborg it was:
error: hash mismatch in fixed-output derivation '/nix/store/gmbmcx9w50spng382divw5ajckbpgwc7-source.drv':
         specified: sha256-38VpO2wI7IDYm96FH+93xVJeN1HA/lD66RO4svxkgUg=
            got:    sha256-oJZL0JXcmGhCm6EhGW+f3PQ86jz3g8OMIO3pnH5wQxY=

See previous build attempts here.

Must be. Updated to latest commit from upstream while I was at it.

Would it be possible to verify this please? I'm just deeply interested whether this is something funny about GitHub's git archive calls. You can check that by going back to the old hash. Use diff --recursive between that nix build -Lf. python3.pkgs.numba.src result and the manually downloaded and extracted tarball. The old hash, according to ofborg it was:

error: hash mismatch in fixed-output derivation '/nix/store/gmbmcx9w50spng382divw5ajckbpgwc7-source.drv':

         specified: sha256-38VpO2wI7IDYm96FH+93xVJeN1HA/lD66RO4svxkgUg=

            got:    sha256-oJZL0JXcmGhCm6EhGW+f3PQ86jz3g8OMIO3pnH5wQxY=

See previous build attempts here.

I saw the same hash locally when I did a build of the previous commit after the rebase with that new logic. I just updated to latest commit since this wasn't merged yet. I won't be able to dive deep into it for a bit since im packing for vacation.


DateTimePicker - hours dropdown not re-rendered when state changed programmatically

Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 2.2.0 ]
Expected / Desired Behavior / Question
I have a DateTimePicker on a form that's showing time displayed as dropdowns. If I programmatically change the value of the component, the date portion re-renders successfully but not the hours portion. (Changes made via UI work normally as they fire the onChange handler.)
My specific use case is an Undo button on the form that reverts the form values back to what was initially retrieved from the server.
Initial value:

After change via UI:

After Undo button pressed:

I know the value is actually being changed correctly in code, because if I close the panel containing the form and re-open it the value is back to what I would expect it to be. Therefore I think it's a bug with the component and how it detects a change to the hours portion of the time value.
Observed Behavior
The time portion should change to reflect the current value in state, both hours and minutes.
Steps to Reproduce
Code to recreate issue:
interface Entity {
  dateTimeField: Date;
}

const defaultEntityState = {
  dateTimeField: new Date('October 17, 2020 13:12:00')
};

const ChildComponent: React.FC = () => {
  const [entity, setEntity] = React.useState<Entity>(defaultEntityState);

  const onFieldChange = (name: string) => (value: any) => {
    setEntity({
      ...entity, [name]: value
    });
  }

  const revertTimeToDefault = (_e) => {
    setEntity(defaultEntityState);
  }

  const fieldValue = entity && entity.dateTimeField;

  return (
    <>
      <button onClick={revertTimeToDefault} type="button">Revert DateTime</button>
      <DateTimePicker
        firstDayOfWeek={DayOfWeek.Monday}
        strings={DayPickerStrings}
        placeholder="Select a date..."
        showLabels
        dateConvention={DateConvention.DateTime}
        timeConvention={TimeConvention.Hours24}
        timeDisplayControlType={TimeDisplayControlType.Dropdown}
        onChange={onFieldChange('dateTimeField')}
        value={fieldValue instanceof Date ? fieldValue : null}
        />
    </>
  );
}

DayPickerStrings is just the set of labels:
const DayPickerStrings: IDateTimePickerStrings = {
    dateLabel: 'Date',
    timeLabel: 'Time',
    timeSeparator: ':',
    amDesignator: 'AM',
    pmDesignator: 'PM',
    months: [
        'January',
        'February',
        'March',
        'April',
        'May',
        'June',
        'July',
        'August',
        'September',
        'October',
        'November',
        'December',
    ],
    shortMonths: [
        'Jan',
        'Feb',
        'Mar',
        'Apr',
        'May',
        'Jun',
        'Jul',
        'Aug',
        'Sep',
        'Oct',
        'Nov',
        'Dec',
    ],
    days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
    shortDays: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
    goToToday: 'Go to today',
    prevMonthAriaLabel: 'Go to previous month',
    nextMonthAriaLabel: 'Go to next month',
    prevYearAriaLabel: 'Go to previous year',
    nextYearAriaLabel: 'Go to next year',
};

Thank you @BreakfastMaintenance for reporting this!
The fix has been done and will be included in the next release.
In a meanwhile you can test it in the beta version


Plot 'enum' signals

What can we do to make ScottPlot better?
It would be great to be able to plot enum data types. Basically, instead of ploting double on the Y axis to plot enum as a function of time. For example:

where
enum State
{
    INACTIVE = 0,
    ACTIVE = 1,
    ERROR = 2
}

This is useful when visualizing states, where the meaning behind the signal values is easier to visualize than the value itself. How complex would be to implement something like this?
Thank you!

How complex would be to implement something like this?

With some creative styling and leveraging the AddScatterStep command it looks like we can achieve this effect with the existing package 😎
This example uses ScottPlot 4.1 beta (currently marked as pre-release)
State[] data = {
    State.Inactive,
    State.Active,
    State.Error,
    State.Inactive,
    State.Inactive
};
double[] dataValues = data.Select(x => (double)x).ToArray();
double[] dataTimes = ScottPlot.DataGen.Consecutive(data.Length);
string[] enumNames = Enum.GetNames(typeof(State));
double[] enumValues = Enum.GetValues(typeof(State)).Cast<State>().Select(x => (double)x).ToArray();

var plt = new ScottPlot.Plot(400, 200);
plt.AddScatterStep(
    xs: dataTimes,
    ys: dataValues,
    color: System.Drawing.Color.Red,
    lineWidth: 2);
plt.YTicks(positions: enumValues, labels: enumNames);
plt.XLabel("Time");
plt.YLabel("State");
plt.Grid(enable: false);
plt.Frame(top: false, right: false);
plt.SaveFig("enum.png", scale: 2);

I'm glad we were able to figure this one out! Enjoy using ScottPlot 🚀


Contact Photo Cropping

When selecting a contact photo in the default contacts app, one can choose a photo from camera roll, however there's no option to automatically select only a square part of that picture, which is needed for contacts.

Here is a screenshot in which you can see the result on the left, and how it should look like on the right.


feat: Add optional gradle property for unbundled scanner

Hey 👋
This is the PR based on https://github.com/juliansteenbakker/mobile_scanner/issues/635#issuecomment-1754828349
This should also close this issue: https://github.com/juliansteenbakker/mobile_scanner/issues/235
I added the possible configuration to the readme and made the part about bundled vs unbundled a bit more concise.
Let me know if you need anything else.
Cheers

I could not find a solution for this myself, so good to see it is possible! Thanks for your work, LGTM!


use go.uber.org/atomic for pkg/process

Replaces direct use of the sync/atomic package with go.uber.org/atomic, in the given package
This should not change behavior.
Motivation
Alignment issues with atomic access. See https://github.com/DataDog/datadog-agent/pull/11716
Possible Drawbacks / Trade-offs
None
Describe how to test/QA your changes
[processes team: can you fill this in? I'd suspect basic process-agent QA would cover this]
Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

Adding skip-qa label as this will be covered by our regular QA steps


Flaky test: EventLoopTest.testScheduleRepeatedTaskCancelFromDifferentThread

Seen in #1532:
09:13:13 Test Case 'EventLoopTest.testScheduleRepeatedTaskCancelFromDifferentThread' started at 2020-05-29 08:13:13.398
09:23:13 Build timed out (after 10 minutes). Marking the build as failed.

We believe we fixed this in #554, but it's back here.

Direct build log link.

And again in #1526 (logs)

So weird, #554 was believed to be fixed in August 2018. It hasn't happened since and now it's racy again? Sounds like we may have changed something?


Improves error when axis is missing/incorrect attributes

Description

Improves regrid2 error when axis is missing from dataset or has incorrect attributes.

Closes #447

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] My changes generate no new warnings
[ ] Any dependent changes have been merged and published in downstream modules

If applicable:

[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass with my changes (locally and CI/CD build)
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have noted that this is a breaking change for a major release (fix or feature that would cause existing functionality to not work as expected)

I'd like to revisit this in the future and refactor regrid2 to use the newer xcdat axis functions to mitigate this issue all together.

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (d86a116) 100.00% compared to head (00fe514) 100.00%.

:exclamation: Current head 00fe514 differs from pull request most recent head ab48d86. Consider uploading reports for the commit ab48d86 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##              main      #481   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines         1424      1427    +3
=========================================
+ Hits          1424      1427    +3

Impacted Files
Coverage Δ

xcdat/regridder/regrid2.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

There's some weird mamba error going on in the GH Actions build.
I'll take a look at it.
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/usr/share/miniconda3/lib/python3.10/site-packages/conda/exceptions.py", line 1124, in __call__
        return func(*args, **kwargs)
      File "/usr/share/miniconda3/lib/python3.10/site-packages/conda_env/cli/main.py", line 78, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "/usr/share/miniconda3/lib/python3.10/site-packages/conda/notices/core.py", line 109, in wrapper
        return func(*args, **kwargs)
      File "/usr/share/miniconda3/lib/python3.10/site-packages/conda_env/cli/main_update.py", line 132, in execute
        result[installer_type] = installer.install(prefix, specs, args, env)
      File "/usr/share/miniconda3/lib/python3.10/site-packages/mamba/mamba_env.py", line 55, in mamba_install
        index = load_channels(pool, channel_urls, repos, prepend=False)
      File "/usr/share/miniconda3/lib/python3.10/site-packages/mamba/utils.py", line 178, in load_channels
        repo = subdir.create_repo(pool)
    RuntimeError: Could not read JSON repodata file (/home/runner/conda_pkgs_dir/cache/47929eba.json) parse error line 593230: subdir mismatch

`$ /usr/share/miniconda3/condabin/mamba update -n xcdat_ci -f conda-env/ci.yml`

Nothing changed the conda-env files. I though it might be a caching issue so I restarted them last night. Guess that didn't clear it up, I might try restarting them again.

Guess this restart clear it up.

Yeah I tried restarting it a few times lol. You can merge if you are ready.

I wonder if this improvement is going to be included for v0.6.0, which I hope so. Let me know if there is anything I can help on this PR.

I wonder if this improvement is going to be included for v0.6.0, which I hope so. Let me know if there is anything I can help on this PR.

Yes this will be included in v0.6.0 since it is a simple fix. We're just waiting on @jasonb5 to merge whenever he's ready.


Command listed under inventory instructions markdown file is not correct

Issue
The commands listed under inventory instructions markdown file are not correct as a vm_name parameter is requested
pass-team
IP=<IP_ADDRESS>
ansible-playbook playbook/generate_inventory.yml -e ip_address=$IP -e hetzner -e filename=$IP_host

[WARNING]:  * Failed to parse /Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/id_openstack.rsa with ini plugin:
/Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/id_openstack.rsa:1: Expected key=value host variable assignment, got: OPENSSH
[WARNING]: Unable to parse /Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/id_openstack.rsa as an inventory source
[WARNING]:  * Failed to parse /Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/pass_inventory.py with script plugin: Inventory script
(/Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/pass_inventory.py) had an execution error: xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
[WARNING]:  * Failed to parse /Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/pass_inventory.py with ini plugin:
/Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/pass_inventory.py:6: Error parsing host definition '"""': No closing quotation
[WARNING]: Unable to parse /Users/cmoullia/code/snowdrop/infra/k8s-infra/ansible/inventory/pass_inventory.py as an inventory source
vm name:

The proper command for Hetzner should be
IP=<IP_ADDRESS>
ansible-playbook playbook/generate_inventory.yml \
  -e ip_address=$IP \
  -e type=hetzner \
  -e vm_name=ax51-nvme \
  -e filename=ax51-nvme_host

The documentation to use to generated inventory file should be improved as it fails if we pass as parameter the filename of the file generated or path to access the host_vars folder. See:
TASK [generate_inventory : Show inventory file location] ************************************************************************************************************************************
ok: [localhost] => {
    "msg": "Inventory file created at : ../inventory/ax51-nvme_host"
}

TASK [generate_inventory : Show host file location] *****************************************************************************************************************************************
ok: [localhost] => {
    "msg": "Hosts file created at : ../inventory/host_vars/ax51-nvme"
}

PLAY RECAP **********************************************************************************************************************************************************************************
localhost                  : ok=11   changed=5    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0

ansible-playbook -i inventory/ax51-nvme_host playbook/post_installation.yml \
  --tags k8s_issuer_certificate \
  -e remove=true
[WARNING]: Could not match supplied host pattern, ignoring: masters

PLAY [masters] ******************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP **********************************************************************************************************************************************************************************

ansible-playbook -i inventory/host_vars/ax51-nvme playbook/post_installation.yml \
  --tags k8s_issuer_certificate \
  -e remove=true
[WARNING]: Skipping 'new_ssh_port_number' as this is not a valid group definition
[WARNING]: Skipping 'ansible_ssh_private_key_file' as this is not a valid group definition
[WARNING]: Skipping 'ansible_ssh_host' as this is not a valid group definition
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: masters

PLAY [masters] ******************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP **********************************************************************************************************************************************************************************

Hetzner has been deprecated.


capitals on counties fixes #62

Should I try and also capitalize after dashes?

Going to add the NWIS links to this PR

ack, forgot that I'd pulled Jordan's master branch, these changes from him should already have been merged.


Cannot clone or push or pull to Azure DevOps repos

First of all, please accept my apologies for contacting you in this manner - however you seem to be the only person on the entire internet to have encountered this same issue with which I am now faced.
https://github.com/microsoft/vscode/issues/138199
You requested for this issue to be closed citing BeyondTrust EPM as the root cause.   I too have found that disabling the service temporarily resolves the issue.  I was wondering if you would be kind enough to share the ultimate solution?

Hi. No worries - glad to help, if I can.
I have a workaround that appears to work. I configure git to not use the Windows Credential Manager store. I use this command to set git to use encrypted files stored at %USERPROFILE%\gcm\dpapi_store. This is the command:
git config --global credential.credentialStore dpapi

Ah ok thanks - our developers already identified that workaround but are pushing for a permanent solution. Not to worry, and sincerely appreciate you coming back to me.


Enable mavlink connection to FC via ethernet

Ethernet connection can be enabled by running docker container
with ethernet config-file as parameter. Current implementation assumes
the container shares host network.
To run docker container with uart connection:
docker run --rm --network=host <docker_image>
To run docker container with ethernet support:
docker run --rm --network=host <docker_image> /etc/mavlink-router/main.eth.conf
Simplify the Dockerfile name to avoid needs to give file name in docker build command

This PR enables support for Pixhawk5x


Format dicom

fixed channel name matching problem - internal matching is no longer case-sensitive.  display and output naming uses input's channel names.  ("PLETH" vs "Pleth")
fixed handling of reading zero length array and also made consistent decimal places for rounding of time stamps. (mimic p115 dataset)

Thanks @tcpan !


🐛 Biome encountered an unexpected error

Environment information
CLI:
  Version:                      1.7.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.12.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "bun/1.1.6"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?
Source Location: crates/biome_js_semantic/src/semantic_model/scope.rs:115:33
Thread Name: biome::worker_9
Message: no entry found for key
Expected result
It should not throw an error.
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

Duplicate of #2659, there's a workaround in that issue, please do check.


odata timestap query

no matter what I do, cant get this to work
var result = await  tableClient.listEntities({
queryOptions: { filter: odatatimestamp le datetime'2023-11-16T21:43:39.3085688Z' }
        })

What is the syntax on querying for records that are older than a specific datetime, for example??

@LastTribunal did you figure out your issue?

Yea, you want the syntax?
On Tue, Dec 12, 2023, 5:22 PM Jeff Fisher @.***> wrote:

@LastTribunal https://github.com/LastTribunal did you figure out your
issue?
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-sdk-for-js/issues/28036#issuecomment-1852906970,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABAKFWIQJLBP2BRFJQB374DYJDKLXAVCNFSM6AAAAABAQXPIL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSHEYDMOJXGA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Fix and unit test for :first-child selector (Issue #208)

Sorry, I botched the commit details, I'll create a new one.


Install via Heroku

Hi,
I have the following message when trying to install on Heroku
"There was an issue building your app. This can mean your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again."
     [UnexpectedValueException]
     DirectoryIterator::__construct(/tmp/build_a6c65801d0dc03affd9bbd168aba81e7/cachethq-Cachet-0497793/app/storage/sessions): failed to open dir: Permission denied

   cachet:chmod

   Script php artisan cachet:chmod handling the post-install-cmd event returned with an error

[RuntimeException]
Error Output:
[UnexpectedValueException]
DirectoryIterator::__construct(/tmp/build_a6c65801d0dc03affd9bbd168aba81e7/cachethq-Cachet-0497793/app/storage/sessions): failed to open dir: Permission denied

cachet:chmod
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
!     Push rejected, failed to compile PHP (composer.json) app

Thanks :)
This is caused by 600445dbeb5943b240a281b3c6216f11f6268871 but I don't know of any way to fix this on Heroku deployments and Windows.
Calling the chmod command itself (not the Cachet one) will break on Windows because it doesn't know of that command, whereas not having it will prevent *nix from running properly.
CC @cachethq/owners any clue?

I've just pushed 6796a893fb094289b560c2aa9d51f02d73deb666 which semi-reverts the change. No errors on Windows either.

Working fine on Heroku thanks !

:beer:


Trouble in Paradise

Stack:

#29
#28
#27 ⬅

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

✓ Commit merged in pull request #29


ethtool: 4.15 -> 4.16

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/ethtool/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/bin/ethtool -h’ got 0 exit code
ran ‘/nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/bin/ethtool --help’ got 0 exit code
ran ‘/nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/bin/ethtool --version’ and found version 4.16
found 4.16 with grep in /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16
directory tree listing: https://gist.github.com/03539f0a0b1a6c9a35f832b19650ba47

cc @bjornfor for review

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: ethtool
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: ethtool
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16
shrinking /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/sbin/ethtool
gzipping man pages under /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/sbin
patching script interpreter paths in /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16
checking for references to /build in /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16...
moving /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/sbin/* to /nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16/bin
/nix/store/gaiqa1ygxahd49bpb8zzc7fp4i1mml63-ethtool-4.16

Success on aarch64-linux (full log)
Attempted: ethtool
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16
shrinking /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16/sbin/ethtool
gzipping man pages under /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16/share/man/
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16/sbin
patching script interpreter paths in /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16
checking for references to /build in /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16...
moving /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16/sbin/* to /nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16/bin
/nix/store/h36rnc1aw9w70qhdw7551zgs7x6m10h9-ethtool-4.16

Success on x86_64-linux (full log)
Attempted: ethtool
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16
shrinking /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16/sbin/ethtool
gzipping man pages under /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16/share/man/
strip is /nix/store/65ir27a74jycbnjfn1w6n5z701js27di-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16/sbin
patching script interpreter paths in /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16
checking for references to /build in /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16...
moving /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16/sbin/* to /nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16/bin
/nix/store/mcfr95ql3c99g6mj8nkxfpsix69lnf5m-ethtool-4.16


Support for formatting when setting workbench date type global variables.

Is your feature request related to a problem? Please describe.

Format can not be set at present and is fixed to yyyy-MM-dd unconditionally.

Describe the solution you'd like

Support for formatting when setting workbench date type global variables. For example, yyyyMMdd or yyyy-MM-DD (Current default value)

.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@metatron-app/design
Please review this issue. :)


Unable to set env variable in the template

I want to use the following template:
templates:
  default: &default
    namespace: test
    chart: stable/test-api
    values:
    - applications/values.yaml
    - applications/test-api/values.yaml
    - applications/test-api/development/{{ requiredEnv "CLUSTER_NAME" }}/values.yaml
    - deployment:
        image:
          tag: {{ requiredEnv "IMAGE_TAG" | quote }}

here is the release file, where I call this template:
{{ readFile "releases/templates.yaml.gotmpl" }}
releases:
  - name: test
    <<: *default

but helmfile is unable to process it:
in ./helmfile.yaml: failed to read releases/test-api.yaml.gotmpl: reading document at index 1: yaml: invalid map key: map[interface {}]interface {}{"requiredEnv \"IMAGE_TAG\" | quote":interface {}(nil)}

at the same time, everything works ok if I remove {{ requiredEnv "IMAGE_TAG" | quote }} and just replace it with the specific value.
You can see that the template is able to work with the environment variables when I use them in the path to values files:
- applications/test-api/development/{{ requiredEnv "CLUSTER_NAME" }}/values.yaml
but it fails when we try to use env variables to set/overwrite some values (like deployment.image.tag in my example)
helmfile version v0.135.0

Possible solution: https://github.com/roboll/helmfile/issues/1508#issuecomment-772456104

Possible solution: #1508 (comment)

That is NOT related to environment variables.

@mumoshu can you shed light on this? I just refactored a big chunk of our stack assuming we could interpolate ENV vars anywhere. Why is that not possible?

@atcvetkov @Morriz Hey! That's because you're skipping to render templates.yaml.gotmpl as a go template at all by using readFile.
Maybe you intended {{ tpl (readFile "releases/templates.yaml.gotmpl") . }}?

I found out why we did not see the env var, as we run in a container which was not started with that var. Instead we set it in the running script (I even tried to export it). It would still be empty to exec. Once I set the var by injecting it into the container it was found. I can't believe this, as it goes against all of my experience with bash. What could cause this?

@Morriz Are you basically saying that docker run -e FOO=foo someimage some-entrypint.sh does provide you the env to helmfile execed from within the entrypoint, but not when you do docker run someimage bash -c 'export FOO=foo; exec helmfile .....'?

indeed...strange eh?

@Morriz Yeah. It should work at the bash level bash -c 'export FOO=foobar; exec bash -c "export | grep FOO"'. But Helmfile doesn't treat envvars in special ways that makes it not working only in that case. I'm wondering how it can happen in helmfile 🤔

BTW @atcvetkov's original issue happens because tpl is missing.
Try {{ tpl (readFile "releases/templates.yaml.gotmpl") . }}
Without tpl, it should definitely fail because the go template results in the content of releases/templates.yaml.gotmpl to be embedded into the rendered result that is then parsed as yaml.
Always think about what you're writing is basically a go template that generates YAML. Your original template produces invalid YAML that contains an invalid YAML token {{ requiredEnv "IMAGE_TAG" | quote }}, hence the error.

Closing as answered, but please feel free to submit another issue for another problem

I'm facing a similar issue with a .gotmpl file, running helmfile --file deploy/helmfile-dev.yaml template (I'm exploring k3s/tilt for local dev using Kubernetes).
I have  .gotmpl files which are working fine from our pipelines, with many requireEnv but locally the above command fails.
Is there anything special with that template action and environment variables? The only diff I can see, is that in the CI, I'm using the lint, diff, and apply actions.

I'm facing a similar issue with a .gotmpl file, running helmfile --file deploy/helmfile-dev.yaml template (I'm exploring k3s/tilt for local dev using Kubernetes).
I have .gotmpl files which are working fine from our pipelines, with many requireEnv but locally the above command fails.
Is there anything special with that template action and environment variables? The only diff I can see, is that in the CI, I'm using the lint, diff, and apply actions.
Update: Actually I was trying with the USER env variable, which fails with the error:
required env var `USER` is not set

but if I try with the env variable HOME instead, then it works! So it look like there's something about the way the variable is declared.

Did you ever find out what was the difference? I seem to have the same issue

No sorry, I see that I'm using env "USER" | default "my-value" in my code, but it's old so I'm not too sure why I'm using that in my code.


Docs

// @gep13 @GeertvanHorrik
Adds some new docs in the repo (I plan on turning off the wiki) and also made decent headway into git init which makes it easy to edit the configuration. It also has some basic questions to help people decide on the workflow they will use etc.
Feedback would be great

Epic! (Looks good)

On 8 Jun 2015, at 5:56 am, Jake Ginnivan<EMAIL_ADDRESS>wrote:
// @gep13 @GeertvanHorrik
Adds some new docs in the repo (I plan on turning off the wiki) and also made decent headway into git init which makes it easy to edit the configuration.

@JakeGinnivan I really like the Wizard Configuration steps, I think this will be really helpful going forward.
Regarding the docs, isn't this something that we should be putting into the readthedocs pages for this project?  I thought that is where we decided to put this?

Forgot about the read the docs. Where is the link for it, we don't have it listed anywhere?
Sent from my Windows Phone

From: Gary Ewan<EMAIL_ADDRESS>Sent: 08/06/2015 07:23
To<EMAIL_ADDRESS>Cc: Jake<EMAIL_ADDRESS>Subject: Re: [GitVersion] Docs (#457)
@JakeGinnivanhttps://github.com/JakeGinnivan I really like the Wizard Configuration steps, I think this will be really helpful going forward.
Regarding the docs, isn't this something that we should be putting into the readthedocs pages for this project? I thought that is where we decided to put this?
—
Reply to this email directly or view it on GitHubhttps://github.com/ParticularLabs/GitVersion/pull/457#issuecomment-109878362.

http://gitversion.readme.io/ I think @GeertvanHorrik added you to the list of maintainers/authors, so you should be able to add the docs in there.  All the projects are available:

gitversion.readme.io
gitreleasenotes.readme.io
gitreleasemanager.readme.io

And I think this one: http://gittools.readme.io/ was planned to be the one to join them all together.

Ah yeah.
One issue is I did the docs while on a plane. Does readme.io have offline editing support?

Good question, in all honesty, I am not sure.  There is some element of syncing with Github for the docs, but I think that is more for documenting API's methods, etc, from code, which is not really what we are after.

@JakeGinnivan , my compliments, the init stuff looks really nice and easy to understand for new users.

@GeertvanHorrik thanks for the review. Will take another pass at it tonight and see if I can fix a few of the issues you spotted


Graphql files not counted in github repo language breakdown.

Describe the bug
There's quite few .graphql files in my repository, however, it's not showing up in the language statistics here:

Proof of .graphql files.

Expected behavior

I was expecting to see the percentage of graphql files be at least a little bit less than CSS files.

Thats because GraphQL is classified as a data language instead of a programming or markup language (which are displayed in the language bar). If you want GraphQL to show up in the bar add *.graphql linguist-detectable to `.gitattributes.

Converting to discussion as this is really a question of clarification and not a bug


middleware is removing the query

the code in the middleware that adds the lng param is essentially removing all other queries
app.render(req, res, url.replace("/".concat(lng), ''), {         lng: lng       });
For example:
/page?foo=bar will pass the req query object { foo: 'bar' }, but if you go to /ar/page?foo=bar the query object will become { lng: 'ar' }.
Instead the middleware should add the lng
app.render(req, res, url.replace("/".concat(lng), ''), {         lng: lng,         ...req.query       });

Do you mean this line? It's not quite the same as what you copy/pasted above... Not sure where that came from.

the query object will become { lng: 'ar' }

Do you not think it's useful to have the lang as a key in the query object? We specifically need to pass the lang query with as to Next so that it understands the route.
If all you want to do is spread the remaining queries into the app.render call, that's totally fine. Do you want to submit a PR, or shall I handle it?

Yes that’s the line. I copied from the built version instead. I can handle the PR, I’ll send it today, thanks!


Missing git tag for 0.17, and no github releases since 0.15

Seems like something's off with our release scripts/procedures: we don't have git tags for 0.17, and we don't have github releases for anything after 0.15.
CC @alexcrichton @sunfishcode

I just pushed a tag for v0.17.0, but we do have a release for v0.16.0? Did that perhaps show up since this was opened? FWIW the release process does have a tagging step.

Hm the tag failed to build, though, since CI didn't pass on the commit itself...

v0.17.0 has a tag but no release. No releases after that are missing.

I think it's fine not to have the release for this tag. Ideally we'd not have tagged a rev that didn't build, but I don't think this matters much, given how long ago it was.


paste: import direction, format and indent information

Currently, we remember the formatting information of ElementNodes on copying, but we don't apply them on paste.
https://user-images.githubusercontent.com/64399555/172604781-2b453b80-ee9c-47a3-98e0-0629b66bfbb1.mp4

Hi @im-adithya, @trueadm and I came up with a plan that'll fix this directly in core. It should be resolved by tomorrow!

Resolved by #2370!