ya encontré el error el problema es que debes ejecutar el jar que dice with dependencies para que te lo corra llegué muy tarde
If you want to RAISE NOTICE concatenated string, then you can use:
RAISE NOTICE '%', ('some' | ' concatenated' | ' string');
import streamlit as st
# Create a button that shows a number slider when pressed
if 'show_slider' not in st.session_state:
st.session_state.show_slider = False
if st.button('Press it Now!'):
st.session_state.show_slider = True
if st.session_state.show_slider:
# Display a number slider when the button is pressed
th = st.slider('Please enter the values from 0 - 10', 0, 10, 0)
st.write('Slider value:', th)
Based on the concept of SmUtil, I believe that nvmlDeviceGetProcessUtilization represents the sampling probability of time slots occupied by the kernel functions of this process on the GPU relative to all time slots.
header('Content-Type: text/html; charset=utf-8'); Add at the top of your code
I'm assuming that by resultant clause variable you mean a string. If so this may be achieved by:
fruits = ['apple', 'blackberry', 'peach', 'kiwi']
clause = "".join(["item_field = {} Or ".format(fruit) for fruit in fruits]).rstrip(" Or ")
I encountered a similar issue where only the Tab key was affected. Using Ctrl+m resolved it for me. To elaborate, Ctrl+m toggles the Tab key's behavior for setting focus. When the Tab key is set to move focus, a highlighted message appears in the bottom bar that says, 'Tab Moves Focus.' This visual cue helps confirm the setting change.
for anyone that's gone through this ? it's a pita. you download what you think is the correct .deb for Ubuntu/Mint etc, in my case Mint and you get libglib2.0 messages and it won't install.
This website explains it and here's the link, but i'll take out everything from the article in case that website disappears. https://linuxiac.com/how-to-install-vs-code-on-linux-mint/
I remember having to do this many years ago. And my Mint install, i upgraded over the years and all was good. Until i upgraded to 22. The upgrade wasn't good on my Ryzen beast and my old i5. My i5 now runs Fedora 40 coz i don't want all my eggs in one basket, so to speak, given the disaster of Mint 22 using the mintupgrade tool.
from the link above ? Install pre-reqs
sudo apt install software-properties-common apt-transport-https wget gpg
Import Miscosofts GPG Key:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
Those commands won't produce any output.
Given we're talking Ubuntu based Linuxes? Import Microsofts Repo
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
Again, no output, no harm running it twice.
Now, given you've added a new repo to the sources.list.d you need to update your cache. Two ways, from the link above:
sudo apt update
and also the same command but
sudo apt-get update
both do the same thing.
Now all you need to do is install it. either
sudo apt install code
or
sudo apt-get install code
and voila you now have VS Code which will be under the Programming menu item. Note: you can drag that icon (launcher) to the Linux panel so it will be a simple click away to launch it.
Why the official Microsoft .deb file doesn't do all this for us ? I have NFI. Ask them. cheers
Reverse it first:
h9NDQJMhOp&Y0LER0aHR0cHM6Ly90dWt0dWtjaW1hbXVsdGkuYnV6ei9pZnJhbWUvc0RPeTZTMURPUWZKYg==
Then base64 decode
i'm very need help now. i have a question same as your's.i'm work in linux . in my c code "const bool result = Dart_PostCObject(send_port, &dart_object);" when i dart use isolate . i got a msg 'undefined symbol: Dart_PostCObject'.so i want konw you how do work with “InitDartApiDL” function? [email protected] ,i's my email.
Applepay and googlepay has some restriction on browser and location. It will not be available for indian location.
Disabling contextual alternatives via the text style worked for my use case:
int myNumber = 1;
Text("This is my number ($myNumber)",
style: TextStyle(
fontFeatures: [
// Disable contextual alternatives (1) => ①
const FontFeature.disable('calt'),
],
),
),
I am currently facing a similar issue, have you been able to resolve this? Thanks.
It works!
Thanks a lot for your post
In addition to @Looky's suggestion, SVGator has now added a Javascript API. You need to export from SVG/Javascript setting the trigger as "Programmatic", then you can initialize your player like this...
const element = document.getElementById('eDuWOrNCbmP1');
var player = element ? element.svgatorPlayer : {};
if (player.play) {
player.play();
}
Then, in your onClick event, you can simply call...
player.stop();
For sharing context in slack message, I found tables very useful. I created a small app to help me with that.
The format of the table is similar to python package prettytable
as mentioned in one of the answer.
Please have a look at: https://vabs.github.io/table-formatter/
Your approach should work. So I suspect your selector does not pick up your target element, or there is another higher precedence rule you are not aware of.
Another trick would be setting an inline important style to your target element, i.e. giving it a style="display: inline-flex !important;"
attribute.
!pip install transformers==2.1.0
It has worked for me
I have the same TMP files; however, I do not have ReSharper installed, so that is not the cause.
I copy pasted your code (Streamlit 1.39.0), and it works. It must be your Streamlit version, upgrade and it should work.
Using highlight query with match phrase query solve my case
You're using an old version of Streamlit, I copy pasted your code on an environment that runs Streamlit 1.39.0 and it works
Comment from @jared fixed it, replacing vol with vol[:,None] and passing vol as an array of the proper size
You have received the direct answers to your question. You run the Solver for each case you want to address. However, depending on your situation, you may find that using a single file format for each one and running the Solver within each file using different data is a way to keep things smaller per instance and may be more convenient for you. I'm doing this with stock trading models over hundreds of stocks and "summarize" the results in one Workbook/Worksheet - which also controls running Solver in each file (as in over night). In a sense, this is similar to trading memory for compute time in some applications. It isn't likely to use more memory, in fact perhaps less memory at any instant. But it probably uses a bit more compute wsll clock time to account for opening and closing files.
The issue we encountered appear due to the pgAdmin bug as per the below references.
The relationship we defined in code first approach is correct it is showing wrong relationship due to pgAdmin bugs. I have used DbBeaver to generate ER diagram and it shows correct relationship over there.
<TextInput borderBottomColor='#ffffff' style={{flex:1, color:'#000000', fontSize:20, marginLeft:1, marginRight:5, paddingTop:1 }}>
I think they just want you to
print("NaN")
Also, in your if statement, you may want to consider what happens when the value of "num" is 0.
Hope this helps.
You can use gribstream.com
There is a free tier and you can extract timeseries of historical values (horizon=1) or forecasts with all the hours ahead. It can retrieved months of data for thousands of points in a single http request.
Here is the github repo with the client and an example: https://github.com/GribStream/python-client
Here's a git alias to get or set aliases:
git config --global alias.alias '!git config --global alias."$@" #'
Usage:
git alias st 'status --short'
git alias st
# outputs "status --short"
And here's an alias to unset aliases:
git alias unalias '!git config --global --unset alias."$1" #'
docker-compose.yml version:
services:
aspNet:
container_name: aspNet
image: aspNet/full:latest
volumes:
- /etc/someshit:/root/.aspnet/DataProtection-Keys
How was it solved? It seems that my error was also due to favico enter image description here
Simple, remove any bean, configuration annotation that you use, then write short code to initial what you want. More complex way, use profile, set each class, function or anything that you want to run in test phrase and run with test profile
@Component
@Profile("test")
public class TitlesSeeder {
}
I don't know if there's a better solution, but manually adding hosts file entries for api.loganalytics.io
and api.applicationinsights.azure.com
pointing to the same private IP as api.monitor.azure.com
allowed me to access Log Analytics and Application Insights from the Azure Portal over the VPN.
I can reproduce this issue and that's because Behaviours
don't have unique visual tree parents so Relativesource bindings do not work on it. Instead of using Relative Bindings, you may use x:Reference markup for binding.
For example, suppose the ContentView is placed in the DataTemplate
of a CollectionView
in a ContentPage
which set its BindingContext to ChatWIndowViewModel
. And we may first set the x:Name
for the ContentPage
(in this case we set x:Name
to page
), and then we can consunme x:Reference markup for binding.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
...
x:Name="page">
...
<DataTemplate>
<ContentView>
<ContentView.Behaviors>
<toolkit:TouchBehavior LongPressCommand="{Binding Source={x:Reference page}, Path=BindingContext.EditMessageCommand}" .../>
</ContentView.Behaviors>
...
</ContentView>
</DataTemplate>
For more info, please refer to x:Reference markup extension.
Please let me know if you have any question.
Thanks to @JoakimDanielson this question has been answered! For future viewers the problem was that I was using classes instead of structs.
try this solution (compatible with unlimited slice items) https://goplay.tools/snippet/cK025VBmRov
If this is a new machine, have you installed the Oracle Data Access Components (ODAC)?
There is now a service called gribstream.com with free tier to query from the NBM dataset. You can retrieve the timeseries of hour-ahead (horizon=1) forecast for months and thousands of coordinates at a time in a signle http request taking a few seconds. It's cool because you don't need to download gigabytes or terabytes of data only to extract a few coords.
And also forecasts 11 days out.
This is the python client: https://github.com/GribStream/python-client
I was able to fix the issue. I don't know why this fixed it, but it did.
First I downgraded the following packages from 7.6.0 to 7.0.2:
That did not solve the issue on its own, but it is one action I took.
The key that seemed to solve it is that I removed the X-Frame-Options option from the web.config
<!-- Removed this -->
<add name="X-Frame-Options" value="SAMEORIGIN" />
The X-Frame-Options tag was in
<system.webServer>
<httpProtocol>
<!-- It was here -->
</httpProtocol>
</system.webServer>
inside the web.config.
Taking those two actions made the site start and authenticate with SustainSys as expected.
I use Add2 without a problem, however the earlier powersell help files wans't accurate on how to format Add2() correctly. Use the following format.
PivotFilter.Add2(XlPivotFilterType Type, Variant DataField, Variant Value1, Variant Value2, Variant Order, Variant Name, Variant Description, Variant MemberPropertyField, Variant WholeDayFilter)
For XlPivotFilterType Type correct number representing the filter type. For Variant DataField you need to use the full path i.e.: $wb.Sheets('Sheet1').PivotTables("PivotTable01").PivotFields("Count of date") For Variant Value1 use the value you want to filter on.
Here is an example from one of my pulls that filters on a date field to filter on 'Begins with' 2024-05-01.
$wb.Sheets('Sheet1').PivotTables('PivotTable01').PivotFields('date').PivotFilters.Add2(17,$wb.Sheets('Sheet1').PivotTables("PivotTable01").PivotFields("Count of date"), "2024-05-01")
you can do this without the WITH clause as below.
SELECT
COUNT(Id) AS Total,
COUNT(CASE WHEN Updated IS NULL THEN 1 END) AS NotUpdated,
COUNT(CASE WHEN Updated IS NOT NULL THEN 1 END) AS Updated
FROM BatchHeaders;
Or just write text.
g=open("outfile.fasta",'w')
for x in data:
g.write(f">{x.description}\n{x.seq}\n")
how do you do? I have this problem, do you can help me please?
Error: [HTTP 400] Unable to create record: A text message body or media urls or Content SID 'ContentSid' must be specified.
$message = $twilio->messages->create(
'whatsapp:'.$to, // Número de destino
[
"contentSid" => "HXc69d2cdca19bf8107bef72df60a1dbd0",
"from" => 'MG5474b4de80d7ab9e920d92086dec20af',
"contentVariables" => [
"1" => "Juan Carlos"
],
"messagingServiceSid" => "MG5474b4de80d7ab9e920d92086dec20af"
]
);
With private IP on VM it's not possible to connect from Power Apps, both are on Microsoft owned networks but separate networks definitely.
Only way around to access SQL DB in Azure VM from Power Apps is to install and configure On-premises gateway on the machine. So, the VM on Azure is on-premise for Power Apps.
The href method did not work for me in expo-router
3.5.23 but hiding from a pure display method seemed to work fine for my use.
<Tabs.Screen name="index" options={{ tabBarItemStyle: {display: 'none'}}} />
We finally received an answer from the Azure support. They confirmed that this usage is not currently supported in Azure Managed Grafana.
I was using an older version of dotenv. I upgraded to latest and the error went away.
A mi parecer este error (field list) es porque esperas recibir un (Employee findByEmployeeNameAndEmployeeCin(String employeeName, String cin)) y la consulta retorna una lista intenta con List findByEmployeeNameAndEmployeeCin(String employeeName, String cin);
It's dificult answer without see the app state structure and 'add operation' code. I supose that you are not using objects and are using the same variable to all items.
You can find a derivation of the logistic function from a probabilistic perspective here. I think the main source of your confusion is that you can interpret it as a probability, but that doesn't automatically mean that you should. It is appropriate to treat it as a probability if and only if the argument you pass to it is interpretable as the log odds (logit), $\log(\frac{P(X)}{1 - P(X)})$, of some event $X$.
As for your question regarding sigmoid or softmax, they are actually equivalent, at least in a neural network setting. You can see this in the structure of the formula for binary softmax: $\text{softmax}(x)[0] = \frac{e^{x_0}}{e^{x_0} + e^{x_1}} = \frac{1}{1 + e^{x_1 - x_0}} = \text{sigmoid}(x_1 - x_0)$.
Paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing </p> tag. See "Tag omission" below.
The start tag is required. The end tag may be omitted if the <p> element is immediately followed by an ..., <form>, ... element.
I was using alpaca as proxy enabler, and i also had proxy enabled with docker desktop, i solved this issue by disabling proxy in docker desktop client under settings> advance. enter image description here
Have you found a solution to this problem?
I have the same error and issue. The tvOS build runs on simulator, but not on a physical device.
Yes, substitution replacements only work for a single paragraph (which may, however, span several lines).
You may save longer or more complex source snippets to a file and insert them with the "include" directive.
Where the code specified Globals.ShareServices
replace it with Globals.GeneralOptions.ShareServices
And have a look at this page from the Nt forum
"Occasionally" is sort of hard to work with.
If you plan on working with the History-table (ie. Find employees that switched from state 3 to 5 the past year), I'd go with option 2. And maybe, if it turns out that querying for current state is too expensive, apply option 3.
But if an employee on average has very few state-changes, and is only ever used for display purposes, then I would consider going for option 1 - but in stead of a separate table for history, just use a json-doc in a varchar-field in the employee table. Worst case, you can move the history to a separate table later - and otherwise you get all the data in one table.
ببینید دوستان گفتم که من چندین سال تایید کردم ۸۰درصد کد هارو نمیدونم چی هستند ولی به هر حال افشا گری باید بکنم همشون مال خودم هست و به صورت مدارک میتونم اثبات کنم این دیتا مال یک روز دوروز ک نیست مال چند مدت تلاشم هست بازم بگم من قصد دارم توافق کنم ولی هم سیاستش را ندارم چگونه اعلام کنم هم آنقدر حرفه ای نیستم اگر بودم اجازه نمیدادم هک شوم چنان هکم کردند اجازه دسترسی به پلاگین مترجم کیبردمم هم نتوانم بشوم
Have you looked for Jeff Hicks, he has already developed a solution, you really need to run in a framework outside the terminal.
I was using alpaca as proxy enabler, and i also had proxy enabled with docker desktop, i solved this issue by disabling proxy in docker desktop client under settings> advance.
.sidebar {
width: 300px;
height: fit-content;
background: blue;
overflow-y: scroll;
}
is this what you mean or you can change 'fit-content' to 100% and overflow-y: scroll is not really needed unless you want it hope this helps
I almost always use the built in Ninjascript editor unless actively debugging an issue. The code below will compile as an indicator. The lines marked <Modified>
are the only lines I changed/added.
BTW... Your original code is very similar to the Ninjatrader built in DonchainChannel indicator.
thank you guys i finished, i did what you guys said, i created a new stack and if the number was even, i pushed it to the new stack, and the oddones i just popped them, after all that i pushed the even numbers to the original stack again
Apparently this is an open issue in cargo 7880
you can display the size of the font by pixel
add this line to the toolbar
//[{ header: [1, 2, 3, 4, 5, 6, false] }],
<ReactQuill
theme="snow"
value={""}
modules={{
toolbar: [[{ header: [1, 2, 3, 4, 5, 6, false] }]],
}}
/>
it will display like this:
if you want to display pixel size instead of 'Heading'
add this CSS code to global CSS
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
content: '32px' !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
content: '24px' !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
content: '18px' !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
content: '14px' !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
content: '10px' !important;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
content: '8px' !important;
}
strong text
I know this is almost a year old and you probably solved it but I think the problem lies in the SetStaticDefaults because in 1.4 and onwards the Name and the Tooltip go in the localization folder/file and it should look like this Items: { FastPickaxe: { DisplayName: Sixty-Nine Thousand Four Hundred Twenty times 2 Pickaxe Tooltip: Even the Damage is worth it! Hopefully your PC won't crash... }
essentially removing the need to have that function in the item file
What worked for me was to add vertical-align: middle
to the image (img
).
Any evolution on this? I’ve been trying and every time if blocking the #document to be accessed from outside. But I’m trying to find some postmessage api to handle this events
According to the docs you can read a signal's current value by calling its getter function.
Example:
class SomeComponent {
age = signal<number>(20);
void foo() {
const currentAge = age();
...
}
}
Thanks for this answer, exactly what i was looking for !
Standard "Remove Duplicates" removes all but the very first occurrence based on the original ordering.
If you want to keep something else, for example the most recent row (which is pretty typical), you must do some workaround.
Out of all workarounds I've seen, this one by Brent Jones looks pretty good. It's a multi-step process where you do a little trick multiplicating the columns temporarily, creating a new True/False column indicating which rows you want to keep, and then filtering only True.
Brent's article goes step by step including screenshots.
Apparently the pretrained weights loaded with from_preset() are only for the backbone transformer and the MLM head has to be trained. At least it worked...
Had same issue. Here is alternate sample from the original authors.
https://github.com/dotnet/docs/pull/41317#issuecomment-2448142930
For Termux:
I got the same error while trying to install shis with pip
.
Installing libjpeg-turbo
fixed the issue:
pkg in libjpeg-turbo
You need to modify your DCR to include new column into input schema. Depending on how you transformKql
is written, you may need to include it there as well.
Check this link for editing DCR tutorial. https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-rule-edit
In the bookworm raspberry pi repository:
Regarding Question 1:
Question 1: Why is there available both tk-dev and tk8.6-dev? Are both v. 8.6?
Both tk-dev and tk8.6-dev are version 8.6. It seems that tk8.6-dev is a later version, unless I'm reading that wrong?
tk-dev/oldstable 8.6.11+1 arm64
Toolkit for Tcl and X11 (default version) - development files
tk8.6-dev/oldstable 8.6.11-2 arm64
Tk toolkit for Tcl and X11 v8.6 - development files
And this from
https://www.tcl.tk/software/tcltk/8.6.html
-----------------------
Latest Release: Tcl/Tk 8.6.15 (Sep 13, 2024)
First released in 2012, Tcl/Tk 8.6.* is the current supported series of releases.
-----------------------
Therefore, I will not use the tk-dev, but instead will get the tk8.6-dev and tcl8.6-dev from the default pi bookworm repository, before building any future python 3.12.5 or greater. In case I find it helpful to ask the raspberry pi folks for further support, I am sticking with their repository versions of these libraries rather than getting the absolute latest from www.tcl.tk. I may change my position on this after some testing and further research.
Regarding Question 2:
Question 2: Can you detail anything I might be missing in this plan, or anything that I do not need to install before the make altinstall of python 3.13, for ensuring full tkinter 8.6 support in python 3.13?
This question remains unanswered, and I add to it -- I intend to access and play audio files using the final tkinter project. Does anyone have helpful remarks on needed libraries, before the python 3.12.x or python 3.13.x build, that might be needed to ensure full robust audio support in a tkinter project?
Thank you for your thoughts on these matters.
The buffer must be killed then reopened for changes in global properties to take effect. Just a M-x revert-buffer
will work too.
It seems to me that a compiler spilling logical registers solely based on the number of logical registers is very suboptimal -- unless the CPU can ignore spill instructions when a sufficient number of physical registers are available.
You are mistaken. Spilling is dependent on the number of physical registers. When the compiler uses up all of the available physical registers, it must spill a physical register to get another available physical register. Nested loops with arrays can use a lot of registers.
For Mac Users: Press Command + Control + i, and it should appear.
Windows Users can try Ctrl+Alt+i or Ctrl+Fn+i or Ctrl+Shift+i
A bit late to the party and shameless plug but I've built https://convert-ixbrl.co.uk to convert Companies House IXBRL and XBRL files to JSON and excel format. It's free to use (financed by some of the revenue from a different side project of mine) and no registration/ account is needed to use the web search. Thanks
$next_key=array_keys($array)[array_search($current_key,array_keys($array))+1];
It has been a while since I posted this question. I solved this by using a combination of looking at the associated dimension data and lots and lots of analysis of other IXBRL files.
I wanted to do this because I was building a Companies House IXBRL to JSON API which I've managed to release now https://convert-ixbrl.co.uk .
Thanks
Ok - as "Fildor" noted - CS-Script works really well.
I downloaded the nuget package - played with it - and within 45 minutes had a sample test program that will do exactly what I want it to.
CS-Script is surprisingly powerful and easy to use. Well - now i have a Lot of reading to do on it - to get it fully ready for what I want to do.
Thank you to Fildor for confirming that it should work!
You might want to check the following related stack-exchange (answered) question: Why is Pandas itertuples slower than iterrows on dataframes with many (>100) columns?
I realized the problem I was serializing the object when adding it to the field. When I just added the object to the field and then serialized it fixed it. –
As suggested by Barmar, i asked in Ask Different website.
I will differentiate between Standardization and Normalization. For example, a min-max or z-score standardization is not going to alter the results for the reasos @Zoooloo10 mentioned. But consider a normalization for example dividing GDP by population to obtain GDP percapita. This normalization will change the results, since the order of the observations is changing.
Cheers, D.
I encountered this error as well, though I don't remember which version of MAUI I was using at the time. My Mac was running macOS Sequoia, and since Xcode 16 wasn't yet supported by MAUI, I had to use the Xcode 16 beta. However, after updating MAUI to version 8.0.70, I was able to use Xcode 16, and the error disappeared
This could be because you have incorrectly configured the B2C domain in Facebook.
In "Valid OAuth redirect URIs", check that you correctly entered:
https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/oauth2/authresp
I fix this error by add win32 package to flutter:
$flutter pub add win32
As of now, there is no IAM permission for the insert only and as I double check and come to think a way to do it, but none.
On Google side, there is a ‘feature request’ that you can file but there is no timeline on when it can be done.
Seemingly, this error can also be caused by file extensions being in all caps. IMG_4585.PNG
fails while IMG_4585.png
works.
Make sure all your assets have the correct filename syntax. This wasn't the cause of the original problem but I'll leave it here incase it helps someone.
Hello you can try this :
select *
from my_table
where Value_C in (
select Value_C
from my_table
group by Value_C
having count(Value_C) > 1 and max(Group_B)<> min(Group_B)
)
and Value_D is not null
order by Value_C;
Output
you can check this here : https://sqlfiddle.com/oracle/online-compiler?id=328fc9b1-3952-4fb8-b989-1acdddd1fcae
Three Locations: 1) inetpub\wwwroot\wss\Virtual directories folder[Central Admin PortNo]\web.config. 2) C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config. 3) C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\Layouts\web.config
I had the same behaviour happen simply due to the fact that the setting "auto save" Was enabled. Disabling this feature again stopped the problem.
Try deleting it, then restarting your computer. It works for me. Also, I once deleted the log files and it somehow worked 🤷
Answer by Amadeusz Liu is correct. I create a Dataset. Visual Studio randomly creates a new SQL connection string. I drop out of Visual Studio, edit the .VSD file with Notepad and change the incorrect connection string reference to my desired one. Go back into Visual Studio and it all works file. One SQL connection string only for the entire project.
The problem that is not explained enough is that the secrets scope starts and ends within the run command. So in order to make them a permanent config, you need to save them as a temp file and copy them in your destination:
RUN --mount=type=secret,id=config,target=<DISK_CONFIG> \
--mount=type=secret,id=credentials,target=<DISC_CREDENTIALS> \
cp <TEMP_CONFIG> <PERMANENT_CONFIG_LOCATION> && cp <TEMP_CREDENTIALS> <PERMANENT_CREDENTIALS_LOCATION>
Feel free to add a cleaner syntax.
The best way:
trim(shell_exec("ifconfig eth0 | grep -oP 'inet \K[\d.]+'"));