I am facing same issue. I have a script placed on a server. Server already has kubectl and aws cli installed.
WHEN SCRIPT IS EXECUTED WITH AWS SSM
script runs eks update kubeconfig and then kubectl command, which fails with below error:
ERROR-------
E0417 15:54:14.627818 31772 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused"
The connection to the server localhost:8080 was refused - did you specify the right host or port?
WHEN SCRIPT IS EXECUTED DIRECTLY FROM SERVER, IT PASSES THROUGH.
Note: the user in both case is root that is checked with whom.
Please help me if you found a solution.
I don't have enough reputation to add a comment to VAS's comment, so I have to add "an answer" here to remind people reading this page.
The kubectl proxy
and the kubectl port-forward
don't work the same way.
To be short, kubectl proxy
requires the Kube-apiserver access resources like pod/node/svc via clusterIP.
And port forward
requires the Kube-apiserver coordinates with kubelet to forward the traffic.
Such difference will cause different user experience in some Serverless K8s Distribution.
you can import jwt for that, it helps guard the user and admin differently
<style>
#shownumber {
border-radius: 50%;
border: 5px solid #F10A0E;
color: #F10A0E;
font-size: 30px;
width: 80px;
text-align: center;
position: absolute;
margin-top: -25px;
}
label {
font-size: 17px !important;
}
.hiclass {
background-color: rgb(51, 144, 255);
color: white
}
</style>
<h5 class="text-left battambang text-bold">{{ $campus ?? 'គ្រប់សាខាទាំងអស់' }}</h5>
<h5 class="text-center muol">ចំនួននិស្សិតចុះឈ្មោះប្រចាំថ្ងៃ</h5>
<h6 class="text-center battambang text-bold">គិតត្រឹមថ្ងៃទី:{{ dateFormat($from_date) }} ដល់ {{ dateFormat($to_date) }}</h6>
<h6 class="text-center battambang text-bold">ថ្ងៃបោះពុម្ភ: {{ date('d-m-Y h:i A') }}</h6>
<h6 class="text-center battambang text-bold" style="text-align: left !important;">System:0025</h6>
<table class="table-report table-report-boder">
<div id="main_chart" style="height: 500px; width: 100%; margin-top: 30px;"></div>
</table>
<table align="center" width="98%" style="font-size: 14px; line-height: 25px; margin-top: 20px;">
<tbody>
<tr style="text-align: center;">
<td width="25%"></td>
<td width="20%"></td>
<td width="70%" nowrap="nowrap"><span id="khmer-lunar-date"></span></td>
</tr>
<tr style="text-align: center;">
<td></td>
<td></td>
<td>រាជធានីភ្នំពេញ, @khmer_date(date('Y-m-d'))</td>
</tr>
<tr style="text-align: center;">
<td>បានឃើញនិង ឯកភាព</td>
<td>បានពិនិត្យ</td>
<td>អ្នកធ្វើតារាង</td>
</tr>
</tbody>
</table>
<script>
$(document).ready(function () {
var chartDom = document.getElementById('main_chart');
var chart = echarts.init(chartDom);
var labels = @json($dailyLabels).map(function(dateStr) {
return convertDate(dateStr);
});
var option = {
title: {
text: 'ចំនួននិស្សិតចុះឈ្មោះប្រចាំថ្ងៃ',
left: 'center',
top: 10,
textStyle: {
fontSize: 18,
fontFamily: 'Khmer OS Muol'
},
subtextStyle: {
fontSize: 14,
fontFamily: 'Khmer OS Battambang'
}
},
tooltip: {
trigger: 'axis'
},
xAxis: {
type: 'category',
data: labels,
},
yAxis: {
type: 'value',
name: 'និស្សិត'
},
series: [{
name: 'ចំនួននិស្សិត',
type: 'bar',
data: @json($dailyCounts),
barWidth: '50px',
itemStyle: {
color: '#3398DB',
borderRadius: [5, 5, 0, 0]
}
}]
};
chart.setOption(option);
});
function convertDate(dateStr) {
const parts = dateStr.split('-');
let year = parts[2];
if (year.length === 2) {
year = '20' + year;
}
parts[2] = year;
return parts.join('-');
}
$(document).find('#khmer-lunar-date').html(khmerDate().toLunarDate());
You can help me.
Print chart
In Pydantic v1 the method was called .dict(), it was deprecated (but still supported) in Pydantic v2, and renamed to .model_dump().
The examples here use .dict() for compatibility with Pydantic v1, but you should use .model_dump() instead if you can use Pydantic v2.
finally I find the answer. When using B1 call atoms, you dont need to add the BOM, BO and AdminInfo tags. just started from the "<Document>" will works.
The most common cause is the authentication token expiration. Snowflake's tokens expire after a set period. If that is the case, edit your connection in Looker Studio and re-authenticate with your Snowflake credentials. Consider using service accounts for a permanent fix, creating a dedicated service user in Snowflake, granting the appropriate permissions, then using those credentials in Looker Studio.
Another possibility is that Snowflake is blocking Google's IP ranges, so check your network policies in Snowflake and add Google's IP ranges to your allowlist.
If your queries are complex, they might be timing out, so optimize your queries, consider creating materialized views in Snowflake, or increase the timeout parameter.
Configuration info for Safari 18. The Safari menu includes an additional Settings menu item for the page. When this menu item is selected, a window is rendered that allows you to configure the Auto-Play. When Auto-Play is set to Allow All Auto-Play, the js will play.
The relevant part is this:
DCMAKE_C_COMPILER=C:/msys64/mingw64/bin/gcc.exe
And
DCMAKE_CXX_COMPILER=C:/msys64/mingw64/bin/g++.exe
You need to confirm and correct these paths.
If you would like the row(s) affected and other statistics displayed as a table instead of a list, and are struggling with the fact that the statistics object is a dictionary, here is how I converted and displayed it with a little help from https://stackoverflow.com/a/18495802/2260616
Note the list of 18 statistics available at https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/provider-statistics-for-sql-server
after calling Invoke-Sqlcmd with -StatisticsVariable "sqlcmd_statistics_dictionary"
$sqlcmd_statistics_object = ($sqlcmd_statistics_dictionary `
| %{New-Object PSObject -Property $_})
Format-Table -InputObject $sqlcmd_statistics_object -AutoSize -Property `
IduCount, IduRows, SelectCount, SelectRows, SumResultSets, `
Transactions, BuffersSent, BytesSent, BuffersReceived, BytesReceived
Format-Table -InputObject $sqlcmd_statistics_object -AutoSize -Property `
ConnectionTime, ExecutionTime, NetworkServerTime, ServerRoundtrips, `
CursorOpens, PreparedExecs, Prepares, UnpreparedExecs
The results will look like:
the mailchimp's standard API endpoint, such as POST /lists/{list_id}/members, require an email_address field, making it unsuitable for adding SMS-only contacts.
Adding SMS-Only Contacts:
In order to add contacts without email addresses, you can import them via a CSV or TXT file. This will allow you to include only phone number for SMS marketing. (https://mailchimp.com/help/set-up-your-sms-marketing-program/) (https://mailchimp.com/help/about-sms-marketing/)
You can follow these steps to import SMS contacts:
create a CSV or TXT file containing the phone numbers of your SMS subscribers. (https://mailchimp.com/solutions/sms-marketing-tools/)
You need to also make sure that you have consent from those contacts to receive sms messages. (https://mailchimp.com/solutions/sms-marketing-tools/)
then you import your contacts using MailChimp's import tool to upload your file and add the SMS contacts to your audience.
Also, before you import sms contact, you need to set up an SMS Marketing program in Mailchimp. (https://mailchimp.com/help/use-send-sms-actions/)
Workaround Using Placeholder Emails:
using placeholder email addresses to bypass the email requirement is not really recommended because it may violate Mailchimp's terms of service. (https://mailchimp.com/developer/transactional/docs/fundamentals)
The image_picker package needs two additional packages, image_picker_android and image_picker_platform_interface. Then you can continue using ImagePicker().pickMultiMedia() on both Android and iOS.
setup the main.dart file:
void main() {
final ImagePickerPlatform implementation = ImagePickerPlatform.instance;
if (implementation is ImagePickerAndroid) {
implementation.useAndroidPhotoPicker = true;
}
...
}
@Barry's suggestion of `using` seems a reasonable solution to me, but in the end doesn't really save much given how simple a (non-template) operator<< for S would be.
I like the idea of a base class used just to guide ADL to the right answer. I'll have to see if that is feasible in our real codebase.
The problem with putting the template in global namespace (or in N) is that works.... but only sometimes. Because this is relying on normal, non-ADL lookup, it is subject to shadowing. So if _any_ other operator<< is visible in N::N1 namespace the one in N (or global) namespace is hidden. This is very fragile and working code can be broken by completely unrelated changes, and the failure can be very context dependent (i.e. works for most usages but fails if some unrelated type N::N1::C, which happens to have an operator<< , is visible.)
As to the original question of adding to std:: namespace, it might be argued that this case might be counted under this clause (from cppreference)
It is allowed to add template specializations for any standard library function template to the namespace std only if the declaration depends on at least one program-defined type and the specialization satisfies all requirements for the original template, except where such specializations are prohibited.
as std::operator<<(std::basic_ostream<C, Trait>&, T)
is already a template (for at least some types, in at least some implementations) and we are adding a partial specialisation of that.
When the Controller try to connect to database, some error ocurred. You can enable retry, if it is not enabled yet.
If it is already enabled, then there is a problema with your connection to your db instance. You need to track and diagnose where is the failure (network, authentication, and so on).
yo tengo un problema similar pero aca es con sfml para c++ y los archivos no venian con su controlador de graficos
So have u fixed that?
Напиши мне в тг по @codeem, давай замутим это дело в вебе. И ещё добавим pwa, чтобы можно было генерить картинки в вебе одной командой.
def mac_fmt(bssid):
return "{:02x}:{:02x}:{:02x}:{:02x}:{:02x}:{:02x}".format(*bssid)
for ssid, bssid, channel, RSSI, authmode, hidden in ap.scan():
mac = mac_fmt(bssid)
print(f"BSSID: {mac}")
buenas necesito ayuda
como hago dos histogramas cuando tengo una variable con dos niveles que son lugar 1 y lugar 2, pero estos estan en una sola columna . cuando realizo el histograma me toma todos los datos , no los discrimina por lugar. mi variabla respuesta es contenido de vit C
nota:los niveles de lugar estan uno a continuacion de otro ,
mi pregunta es como le digo a R que tome los datos del lugar 1 para el histogrma
y tome los datos del lugar 2 para el otro histograma
gracias por tu respuesta
I have the same question just like you said. Have you solved it? could you share the idea, really thanks!
If you want to prevent the last slide from being cut off, you should not set any gap or spacing by yourself in the slide-wrapper. use SlidePerView and SpaceBetween.
public class Config implements WebMvcConfigurer
WebMvcConfigurer is not deprecated.
I produced the usable code following your question:
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class Config implements WebMvcConfigurer {
@Value("${allowed-origins:*}")
String allowedOriginsPattern;
// contains "http://localhost:8080,http://127.0.0.1:8080,http://[::1]:8080"
@Override
public void addCorsMappings(CorsRegistry registry) {
String[] origins = allowedOriginsPattern.split(",");
registry.addMapping("/**")
.allowedOriginPatterns(origins)
.allowedMethods("GET", "OPTIONS", "POST")
.allowCredentials(true);
}
}
In the application.yml, I added:
server:
servlet:
context-path: /
allowed-origins: "http://localhost:8080,http://127.0.0.1:8080,http://[::1]:8080"
An incorrect context-path
could be a reason for a CORS problem.
The example repository was here.
To try, after starting Spring Boot, please visit in your browser:
http://localhost:8080
http://127.0.0.1:8080
http://[::1]:8080
Example output in the browser:
CORS
GET http://127.0.0.1:8080/api
GET request page
POST http://127.0.0.1:8080/api
POST request page
GET http://localhost:8080/api
GET request page
POST http://localhost:8080/api
POST request page
GET http://[::1]:8080/api
GET request page
POST http://[::1]:8080/api
POST request page
In the example, the JavaScript I used:
<script>
async function getter(uri, elementId){
const responseGet = fetch(uri, { "method": "GET" })
.then(response => {
if (!response.ok) {
return response.text()
.catch(() => {
throw new Error(response.status);
})
.then(({message}) => {
console.log(message);
throw new Error(message || response.status);
});
}
return response.text();
});
const responseGetText = await Promise.resolve(responseGet);
const elementGet = document.getElementById(elementId);
elementGet.innerHTML = elementGet.innerHTML + "<div>" + responseGetText + "</div>"
}
async function poster(uri, elementId, body){
const responsePost = fetch(uri, { "method": "POST", body: body })
.then(response => {
if (!response.ok) {
return response.text()
.catch(() => {
throw new Error(response.status);
})
.then(({message}) => {
console.log(message);
throw new Error(message || response.status);
});
}
return response.text();
});
const responsePostText = await Promise.resolve(responsePost);
const elementPost = document.getElementById(elementId);
elementPost.innerHTML = elementPost.innerHTML + "<div>" + responsePostText + "</div>"
}
async function main(){
await getter("http://127.0.0.1:8080/api", "getipv4");
await poster("http://127.0.0.1:8080/api", "postipv4", JSON.stringify({"user": "user"}));
await getter("http://localhost:8080/api", "getlocalhost");
await poster("http://localhost:8080/api", "postlocalhost", JSON.stringify({"user": "user"}));
await getter("http://[::1]:8080/api", "getipv6");
await poster("http://[::1]:8080/api", "postipv6", JSON.stringify({"user": "user"}));
}
main();
</script>
For a recent version of jQuery:
$("#slider").slider('option', 'value')
returned zero for a double slider version. This returned a two element array with the proper values:
$("#slider").slider('option', 'values')
Note that value is plural.
The correct answer from @jonrsharpe:
"how TypeScript obtains the original DOM document object from the browser" - it doesn't. Those interfaces are only used to make sure you're doing the right thing at compile time. At run time, you have regular JavaScript accessing the global document object.
you can try to use Group function
= Table.Group(Source, {"Type"}, {{"ID", each Text.Combine([ID],",")}})
you can try to create a measure
Measure = if(max('Calendar'[Date])>=today(),1)
add this measure to visual filter and set to 1
nicee mantap kali sangat memuaskan
If you're reading this in 2025, Cloud Run now has the "Send traffic directly to a VPC" feature.
Actually, when u 'enable platform', there is no option to save. So, changed settings are not saved, and u are back to square one - meaning u are unable to share, & get msg
Andrew Kin Fat Choi 's answer helped!
the API spec of the Azure DevOps - Approvals And Checks - Check Configurations
is here.
A sample payload looks like this. Seems like your approver object is slightly different.
POST https://dev.azure.com/{organization}/{project}/_apis/pipelines/checks/configurations?api-version=7.1-preview.1
{
"settings": {
"approvers": [
{
"displayName": null,
"id": "3b3db741-9d03-4e32-a7c0-6c3dfc2013c1"
}
],
"executionOrder": "anyOrder",
"minRequiredApprovers": 0,
"instructions": "Instructions",
"blockedApprovers": []
},
"timeout": 43200,
"type": {
"id": "8c6f20a7-a545-4486-9777-f762fafe0d4d",
"name": "Approval"
},
"resource": {
"type": "queue",
"id": "1",
"name": "Default"
}
}
refer to this link for all field specs.
https://learn.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/check-configurations/add?view=azure-devops-rest-7.1&tabs=HTTP
The OP asked for string interpolation similar to Python f-string. The goal is that a user only needs to enter a single string to define a template, but within that string there is specially marked "placeholder" to indicate where to substitute a value. The placeholder can be a key enclosed in curly braces, e.g. {TICKER}
. Google Sheets didn't have such a formula.
Fast forward to 2025, Sheets still doesn't have it, but does offer array-based formulas and iteration mechanism like REDUCE
. Combined with REGEXREPLACE
, we can define a Named Formula that simulates simple interpolation.
Formula. The formula below takes three parameters:
template
: a string that contains placeholders enclosed in curly braceskeys
: a string to define the placeholder key (or single-row array if multiple placeholders)values
: a value corresponding to the key (or single-row array if multiple placeholders)Create a Named Function TEMPLATE
with these three parameters, so named and in that order, then enter the formula definition:
= REDUCE( template, keys, LAMBDA( acc, key,
LET(
placeholder, CONCATENATE( "\{", key, "\}" ),
value, XLOOKUP( key, keys, values ),
REGEXREPLACE( acc, placeholder, TO_TEXT(value) )
)
) )
Example with one placeholder. Your example uses a custom Apps Script function called ImportJSON, but your question is more about the string interpolation, so I will just focus on how to generate the URL based on the value of A2 (the cell containing string "BTC"). In a cell enter:
= TEMPLATE(
"https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids={TICKER}",
"TICKER", A2
)
The result should be https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=BTC
Example with multiple placeholders. You can give arrays as the keys
and values
arguments for multiple placeholders:
= TEMPLATE(
"My name is {name} and I am {age} years old.",
{ "name", "age" }, { "Lan", 67 }
)
Confirm the result is: My name is Lan and I am 67 years old.
How it works? The REDUCE
formula takes the string template
as an initial value, and iterates through the values of keys
. In each iteration:
"\{name\}"
."Lan"
.REGEXREPLACE
on the template to match all instances of the placeholder and replace each one with the value."My name is Lan and I am {age} years old."
) to the next iteration.Named Function. If you just want to use this, you can import the Named Function TEMPLATE
from my spreadsheet functions. See the documentation at this GitHub repo for more details.
There is a library that do just that. And also provides configurations for retries and refreshes for resilience.
Reviving this topic because the Extension system in Blender 4.2 provides a proper solution to this problem, which involves packaging .whl files (which you can download from PyPI) with your extension, and then mentioning that .whl file in the extensions' manifest file. Documentation here.
It's also possible to pull this off pre-Blender 4.2, by implementing your own code to import .whl files, which is easiest to do by simply stealing this code from Blender Studio
I've just tested both methods and they work great, unlike any other solution I've tried, which either relies on deprecated pip function calls, or they install the modules in the global python environment no matter what you do, which isn't available from inside Blender, or they rely on launching Blender from a venv, which is obviously silly.
all the data "in" databricks is stored wherever you say you want it stored. Databricks can connect with and manage via unity catalog multiple sources.
It sounds like you just want to make sure that all your storage is in your same azure tenant which is the basic standard setup youd have a storage blob/server/hyperscale etc etc in azure that is associated with your tenant and that is the storage that databricks would.
Azure Databricks is not a storage account - your storage will be self directed in whatever capacity you choose, obviously, chosing to store on an azure storage account makes sense here, as does having that storage account in the same azure tenant as the databricks environment
why dont you use the global call, which is what i usually use http://10.0.2.2:<port>
Replacing
affinity = "euclidean"
To
metric = 'euclidean'
Worked. Thank You.
If you're running into issues with async methods while working with Temp Mail APIs, you might want to consider switching to a service that provides a more developer-friendly experience and clean endpoints.
For example, 1SecMail offers a lightweight temp mail API that's super easy to integrate — no authentication required for basic use. It returns clean JSON responses and works well with async workflows (Node.js, Python, etc.).
Might save you some debugging time. Hope this helps!
Can you share the entire stack please? Just copy/paste the text from that window, it should suffice.
More details on this - we are using liquibase 4.31.1 and did not see it 4.29.2. Further - we see it in postgres, but not in mssql. seems to be related to https://github.com/liquibase/liquibase/issues/6666
Nice to see finally issue resolved.
You don't have to. Texture
is a class itself, so use it.
For example in case of a String class:
String
;; => java.lang.String
(type String)
;; => java.lang.Class
What if I want messages to be ordered as well. I am facing a scenario where I am sending packets from 2 TCP connection in a manner say 1 TCP connection first send a packet than 2 TCP send. I am implementing it using conditional locks
Then on server side I want packets to be received in same order why is my order changing is it because of epool?
void *send_packets(void *arg) {
int conn_id = *(int *)arg;
set_thread_affinity(conn_id );
int sock = socket(AF_INET, SOCK_STREAM, 0);
int flag = 1;
setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag));
int sndbuf = 8 * 1024 * 1024;
setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf));
struct sockaddr_in serv_addr = { .sin_family = AF_INET, .sin_port = htons(PORT) };
inet_pton(AF_INET, SERVER_IP, &serv_addr.sin_addr);
if (connect(sock, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) {
perror("Connection failed");
free(arg);
return NULL;
}
for (int i = 0; i < PACKETS; i++) {
pthread_mutex_lock(&lock);
while (current_conn != conn_id) {
pthread_cond_wait(&cond, &lock);
}
sprintf(msg, "12345678901234567890123456789012345678901TCP:%d | PACKET:%d\n", conn_id, global_packet_id++);
send(sock, msg, 60, 0);
printf("%s", msg);
current_conn = (current_conn % TCP_CONN) + 1; // Move to the next connection
pthread_cond_broadcast(&cond);
pthread_mutex_unlock(&lock);
}
close(sock);
free(arg);
return NULL;
}
I have the same issue, the app remains unaware whether the code is entered and subscription is redeemed from App Store or not. The user has to close the app and restart it and again enter the iCloud password which then detects that a subscription is active, then it lets the user use the app. Is it the same case for you? I am developing in Flutter by the way.
If yes and you've found a solution, please help me also.
Thank you very much
Did you try installing vite as a dev dependency?
You can do so like this
npm install --save-dev vite
Then try running your code again. If you are still getting the same error after instally maybe check if your node-modules folder isn't missing. You can fresh install with:
rm -rf node_modules
npm install
Sometimes, the default GsonConverterFactory
provided by Retrofit is not enough, especially when:
You want to handle special JSON structures,
You want custom serialization/deserialization logic,
Or you face parsing errors due to complex APIs.
In such cases, we can create a custom JSON converter.
Tested on Angular/primeNG version 19 only, you can test another. REPO: gitHub
I tried this query again the next day and everything worked as expected. Every case I tested the query using "=" performed the same as "LIKE".
I originally noticed this issue due to an error on the application side, so I put in some error handling and reporting so if it happens again I will know right away and I can try to gather more information or test some other solutions. But without a way to reproduce the issue I'll mark this question as answered until I see the issue again.
Try setting log_level:
std.testing.log_level = .debug;
NASM.US is currently down ; ()
AWS CodeCommit is no longer open to new users.
After careful consideration, we have made the decision to close new customer access to AWS CodeCommit, effective July 25, 2024. AWS CodeCommit existing customers can continue to use the service as normal. AWS continues to invest in security, availability, and performance improvements for AWS CodeCommit, but we do not plan to introduce new features.
The recommendation is to switch to another hosted provider for git—like GitHub, GitLab, or BitBucket—or host git yourself.
public function testIsCalledWithTwoParameters()
{
$mock = $this->createMock(Foo::class);
$mock->expects($this->once())
->method('bar')
->with($this->callback(function (int ...$args): true {
$this->assertCount(2, $args);
$this->assertEquals(1, $args[0]);
$this->assertEquals(2, $args[1]);
return true;
});
// will fail
$mock->bar(1, 2, 3);
}
If anyone is looking for how to disable this annoying feature in the newer versions of Visual Studio 2022, do the following:
Go to Tools -> Options -> IntelliCode -> General.
In that window, simply remove the check mark from "Show inline completions" and then press OK.
Thats it.
From https://graphviz.org/docs/outputs/ascii/
Since Graphviz 13.0.0, if Graphviz was built with AAlib support, the output format
ascii
will produce an ASCII art representation of the input graph.
Simply set the output format to ascii
:
dot -Tascii input.dot
Note: as of writing (April 2025), version 13.0.0 is unreleased - https://gitlab.com/graphviz/graphviz/-/blob/dcdd75784dbe655b728da4d62a3b1e4aed142521/CHANGELOG.md
in my case, the owner of ~/go/pkg/mod has changed to root for some reason, probably from homebrew, use chown -R yourname ~/go/pkg/mod
will change them back to your user then all installation in vscode succeed.
I had the same issue, the fix was simple for me.
It seems like the file was not in UTF-8 so terraform was somehow misinterpreting it.
For me saving it in UTF-8 worked.
Leaving aside for a moment the requirement for a constant gap between rectangles, this is the same question as this Rectangle packing around a center point
The equal gap requirement can be handled by first adding to each rectangle an extra margin all around equal to the required gap, then passing the extended rectangles to the algorithm and application I provided here https://stackoverflow.com/a/79283164/16582
Here is a screenshot of the results when the required gap is zero.
Here is what my professor explained to me when I asked the same question. He explained by taking example of 4 fold cross validation.
Split each user’s ratings into 4 folds (e.g., User1’s 4 ratings - 4 test/train splits).
For each fold, hold out 1 rating/user as test data (if a user has <4 ratings, cycle/reuse splits).
Exclude single-rating users from testing (keep their data in training).Train on the remaining ratings (all users’ non-test data).
Repeat for all 4 folds, ensuring users always have training data. That's it ! Hope it makes sense
You can now use the flutter_bidi_text
package — it automatically detects text direction for Text
, TextField
, and TextFormField
based on content.
Example:
import 'package:flutter_bidi_text/bidi_text.dart';
String rtlString = 'فارسی';
String mixedString = 'This is mixed string English and فارسی';
Column(
children: <Widget>[
const BidiText('English'), // Always LTR
const BidiText('فارسی'), // Always RTL
BidiText(ltrString), // Based on content, RTL
BidiText(mixedString), // Based on content, LTR
],
)
It uses bidirectional algorithms under the hood for seamless mixed-language support.
I know this is an old thread, but I ran into the same error while using Linux App Service. According to the latest Azure documentation, Linux App deployment is now supported. To fix this error, add the setting (WEBSITE_WEBDEPLOY_USE_SCM = false) in the Azure App Configuration.
For more details, check the documentation: Azure App Settings.
This is an age old question, I'd try to answer it to the best of my understanding of the RecyclerView architecture.
For starters the two major types of scrolling are Horizontal and Vertical.
Vertical scrolling is done on Y axes and horizontal scrolling is done on X axes. The goal is to achieve scrolling on both axis (Y & X) which when combined is a 2D scroll.
Since 2D scrolling refers to the movement of content within a two-dimensional space, allowing users to view areas beyond the visible screen, the goal is to implement a 2D scroll in a vertically oriented RecyclerView
The repeated illustrations is typical example of a 2D scrollable layout
The most common way to achieve this is through wrapping the RecyclerView
in a HorizontalScrollView
as explained by the previous answers.
For this example:
In activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent">
<HorizontalScrollView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:fillViewport="true">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:nestedScrollingEnabled="false"
android:id="@+id/recyclerview" />
</HorizontalScrollView>
</LinearLayout>
For the Item View Layout (e.g., list_item_log.xml root):
android:layout_height:
android:layout_width:
match_parent: Do not use. If set to match_parent, the item view would be forced to be only as wide as the RecyclerView's viewport. If you used a TextView as your list item, it would then wrap its text (if allowed) or clip it, and there would be nothing wider than the screen to scroll horizontally.
Wrapping a RecyclerView in a HorizontalScrollView
works but expect but expect trade-offs.
The second method is by using a RecyclerView.LayoutManager
Base on my understanding and test, creating a LinearLayoutManager (LLM)
is the best approach.
I can't answer this here because custom LLMs are complicated.
Check out my GitHub repository CodeOps Studio it's contains a module that implements an experimental LLM, i used to achieve 2D Scroll (if think it's cool leave a ⭐)
RecyclerView
wrapped in a HorizontalScrollView
to achieve 2D scroll.
Link: here
RecyclerView
with LLM to achieve 2D scroll
Link here:
Why Wrapping RecyclerView
in HorizontalScrollView
is Problematic because of the following
Measurement & Recycling Issues: RecyclerView
needs well-defined bounds (especially width, in this case) to know which items are visible and which can be recycled. When you place it inside a HorizontalScrollView
, the RecyclerView
might be measured with near-infinite width. This breaks its ability to efficiently determine which item views are off-screen vertically, potentially disabling view recycling altogether and causing massive performance degradation, negating the whole point of using RecyclerView
.
Touch Conflicts: Handling nested scrolling where one container scrolls horizontally and the child scrolls vertically can be very tricky to get right. You often end up with scenarios where either the horizontal or vertical scroll "wins" unexpectedly, leading to a poor user experience.
To anyone reading this I hope you find this helpful.
~ EUP
Add it to your drawable folder
Go to extensions-Manage Extensions-Update & check if it was showing to update Integration services. If it does update it.
Probably it will resolve the issue else it will show some different error message which will be easy to resolve. Also, once check in event viewer after re-running the package.
can you share the complete script, I am not able to connect to websocket server.
import socketio
from socketio.async_redis_manager import AsyncRedisManager
from starlette.applications import Starlette
from starlette.routing import Route, Mount
from starlette.responses import JSONResponse
import uvicorn
# 1. Configure Redis-backed manager for pub/sub
mgr = socketio.AsyncRedisManager("redis://localhost:6379/0")
# 2. Create Socket.IO server with Redis client_manager
sio = socketio.AsyncServer(
async_mode="asgi",
client_manager=mgr, # ← crucial for syncing across instances :contentReference[oaicite:1]{index=1}
cors_allowed_origins="*",
)
# 3. Mount Socket.IO as an ASGI app under /ws
ws_app = socketio.ASGIApp(sio, socketio_path="test")
# 4. Define HTTP route just for sanity check
async def homepage(request):
return JSONResponse({"message": "Socket.IO + Redis server is up"})
# 5. Wire up Starlette routes
app = Starlette(debug=True, routes=[
Route("/", homepage),
Mount("/ws", ws_app),
])
# 6. Socket.IO event handlers
@sio.event
async def connect(sid, environ):
print(f"Client connected: {sid}")
await sio.send(sid, "Welcome!")
@sio.event
async def message(sid, data):
print(f"Received from {sid}: {data}")
await sio.send(sid, f"Echo: {data}")
@sio.event
async def disconnect(sid):
print(f"Client disconnected: {sid}")
# 7. Run with Uvicorn
if __name__ == "__main__":
uvicorn.run(app, host="127.0.0.1", port=8000)
I trying to connect using ws://localhost:8000/test
Not the most secure solution, but if you need a one-liner including the password...
sshpass -p <password> sftp <user>@<destination> <<< $'put <filepath>'
Private Sub CommandButton5_Click()
Dim deger As String, m As Integer
If ListBox1.ListIndex = -1 Then 'If there is no item selected on listbox,no move will be made.
MsgBox "Choose an listbox item from left", , ""
Exit Sub
End If
deger = ListBox1.Value
For m = 0 To ListBox2.ListCount - 1
If deger = CStr(ListBox2.List(m)) Then
MsgBox "This item already exists in ListBox2", vbCritical, ""
Exit Sub
End If
Next
ListBox2.ListIndex = -1
ListBox2.AddItem ListBox1.Value
ListBox1.RemoveItem (ListBox1.ListIndex)
Call animation_to_right
End Sub
The Truth and Reconciliation Commission (TRC) of Canada was established to uncover the impacts of the residential school system and promote healing between Indigenous and non-Indigenous communities. In 2015, the TRC released 94 Calls to Action aimed at all levels of government, institutions, and individuals to address ongoing injustices and advance reconciliation. While some progress has been made, many of these Calls to Action remain unfulfilled. This essay will explore two specific Calls to Action that have not yet been implemented: Call to Action #45, which involves a Royal Proclamation of Reconciliation, and Call to Action #56, which calls for an annual Prime Minister's report on reconciliation. It will also discuss personal commitments I can make as an active participant in the reconciliation process.
One Call to Action that could be implemented with political will is Call to Action #56, which asks the Prime Minister to issue an annual “State of Aboriginal Peoples” report to Parliament. This report would outline plans to advance reconciliation and track progress over time. It’s a practical way to keep reconciliation on the public agenda and ensure government accountability. Despite its potential impact, this Call has not been fulfilled. The reason I chose this Call is because it is logistically simple compared to others—it does not require new legislation or major funding, but rather a commitment to transparency and responsibility. If the Prime Minister delivered this report each year, it would send a strong message that reconciliation is a national priority. While the political landscape can be unpredictable, this is a concrete step that could realistically be implemented now.
In contrast, Call to Action #45 presents more challenges. It calls for the Government of Canada, in partnership with Indigenous peoples, to develop and issue a Royal Proclamation of Reconciliation. This would formally affirm the nation-to-nation relationship and Canada's constitutional obligations to Indigenous peoples. While symbolic, this proclamation would carry deep meaning and recognition. However, its implementation is complex. It requires high-level political coordination, consultation with diverse Indigenous nations, and collaboration with the Crown. The process could be slowed by differing views on content, representation, and jurisdiction. I chose this Call because, although it's ambitious, it represents a meaningful step toward decolonizing Canada's institutions. The challenge lies not in its purpose, but in the political and logistical effort required to bring all parties together in a respectful, inclusive way.
As an individual, I recognize that reconciliation is not just the work of governments or organizations—it is also my responsibility. One commitment I can make is to continue educating myself and others about Indigenous histories, cultures, and contemporary realities. I can actively support Indigenous-led initiatives in my community, including attending cultural events, supporting Indigenous businesses, and advocating for the inclusion of Indigenous voices in school and local government. Additionally, I commit to challenging stereotypes and speaking out against racism when I encounter it. Reconciliation begins with awareness and continues with action, and I want to be part of that ongoing process.
In conclusion, Canada still has important work to do to fulfill the TRC’s Calls to Action. Call to Action #56 could be implemented with relatively few barriers but has yet to be prioritized by political leadership. Call to Action #45, while deeply significant, faces challenges due to the complexity of involving multiple stakeholders. Despite these obstacles, we all have a role to play. By educating ourselves and taking intentional action, we can help move Canada closer to reconciliation. It is not only about righting past wrongs but about building a more just and respectful future for all.
Client components are used for client-side interactivity. You can think of "use client" components as use interactivity components. Server components can import client components but they cannot render them. ColumnSearch should be converted to client component since it renders imported components. You have to add "use client" at the top of ColumnSearch component. Additionally you should wrap the ColumnSearch component within another client component e.g. ColumnSearchWrapper. That way when you import ColumnSearchWrapper within Filter, it will only reference the client component instead of rendering.
Here's the ColumnSearchWrapper example (without props):
'use client'
import { ColumnSearch } from './ColumnSearch'
export default function ColumnSearchWrapper() {
return <ColumnSearch />
}
And then you add "use client" at the top of ColumnSearch. Additionally you cannot pass functions from server components to client components. Server components send data to the browser through serialization (using JSON). Can you send string or number with JSON - yes. Can you send function with JSON - not really. Hope it helped at least a little.
I've since discovered that these are known as fullerene graphs, and have been extensively structured.
Code:
if new_item not in items:
items.append(new_item)
Example:
>>> items
[1, 2, 3, 4]
>>> new_item = 3
>>> if new_item not in items: \
... items.append(new_item)
...
>>> items
[1, 2, 3, 4]
You can update the TrustFrameworkExtensions
file by adding a custom claim transformation and a technical profile to check if the account exists with a previous IDP. Use AzureActiveDirectoryUserReadUsingAlternativeSecurityId
or similar logic to query based on the old IDP identifier.
Turns out I was providing the buildTarget wrong.
For anyone who comes across this post, please do remember that you can find the right build target in scala doctor provider. You can also infer buildTarget from the name of the .json files created in .bloop folder when metals starts. IT defaults to your artifact name or id afaik in your pom.xml.
Figured it out and @Charlieface was correct I was way overthinking this problem.
In my top OPENJSON call if I set this column name
`[ChildArray] nvarchar(max) '$.json_request.parentArray.childArray' as JSON`
Then I can make a simple call like this and my BuildingArea information is displayed correctly.
CROSS APPLY
OPENJSON(base.[ChildArray])
WITH (
BuildingArea int '$.Location.BuildingArea'
) AS details
Thank you @Charlieface for making me rethink my approach
copy command for whl file is missing. Just add below your copy requirements.txt
[...]
COPY requirements.txt .
COPY solv_logger.whl .
[...]
Settings>Tools>Python Plots
You need to also add x permissions to the script itself.
chmod 0755 1.sh
Also, there shouldn't be a space between ! and /bin/sh in the first line of the script.
#!/bin/sh
The await blocks execution until sleeps finishes. It causes the async operation to execute in synchronous way again.
After the block is done, exception is caught.
Maybe try others statements instead of sleeps.
If the elements are hashable, use a set.
I tried to find the solution for this and it was not so easy - so I will add my experience here.
I had a very similar issue on VS2022 pro with a solution containing multiple projects, one a blazor wasm project and another one an api project. When clicking on "debug", the applications seemed to run (in the sense no issue was visible in the netcore command windows) but no browser was opened. When stopping the debugger, a popup "unable to connect to web server https" appeared.
Ultimately, a full repair of VS2022, followed by a restart, fixed it.
A surprise to me was that whatever was causing this issue with vs2022, it ALSO caused an issue with Netskope client (a vpn), failing to connect and also failing on reinstall. After the vs2022 repair, this started working again too.
Cheers.
After some digging, I believe the issue is Wayland vs X11 in a virtual machine. When the display process is set to use Xorg, this issue is not visible. It reappears when it is set back to Wayland. It is not solved by installing xwayland either.
I'm pretty sure the screen scrap violates YouTube's TOS. It seems like the easiest way to harvest one's own comments would be to ride the local history logs out (could do it with some sort of keyboard poker at the crudest level). No doubt there is/will be an agentic path to it as well.
Downloaded the google-services.json
file again and replaced the existing one with the new one, and it worked.😁😁
ok so you can create a service which will run with notification with accessiblity service which will keep your app active in background which may be save your app accessibility service to survive if your app structure support it obivously
Do I need to create sub-windows for that?
No, there is an example [1] using only one window. Basically, it is similar to already mentioned in comment above ("rendering to offscreen pixmap"):
Draws all x11 things include text, on pixmap instead of directly on window (all commands are same);
Creates texture from it;
Uses texture as openGL substrate. One may continue to draw openGL things over it.
[1] https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_Creating_a_texture_from_a_Pixmap
Run this on ubuntu:
sudo apt-get install redis-server
sudo service redis start
Or if you would like to start it on boot, you can run:
sudo systemctl enable redis-server
This creates the necessary symlinks to start Redis automatically during system boot.
In properties change build action to none.
According to the error message, Change the provider SQLNCL 11... to Microsoft OLEDDB Driver for SQL Server. (SQLNCL is deprecated driver). Also, there will be more detailed error logs in the folder check them once. Send it to me.
Re-run the package and see what it will show in Event Viewer. Let me know.
Turns out the desired output wasn't generated because the model was trained via the Subclass API, which means the model lacks certain instance variables. Training a toy example using the Sequential API, Functional API, and Subclass API resulted in generation of the conceptual graph for the first two APIs and no conceptual graph for the Subclass API.
from fpdf import FPDF
# Crear una clase personalizada para el PDF
class TriagePDF(FPDF):
def header(self):
self.set_font("Arial", "B", 12)
self.cell(0, 10, "Notas de Triage Intrahospitalario", border=False, ln=True, align="C")
self.ln(5)
def add_case(self, number, motivo, enfermedad):
self.set_font("Arial", "B", 11)
self.cell(0, 10, f"📝 Caso {number}", ln=True)
self.set_font("Arial", "", 10)
self.multi_cell(0, 8, f"📌 Motivo de Consulta:\n{motivo}\n")
self.multi_cell(0, 8, f"📋 Enfermedad Actual:\n{enfermedad}\n")
self.ln(5)
# Casos simulados
casos = [
{
"motivo": "Dolor abdominal intenso desde hace 6 horas.",
"enfermedad": "Paciente masculino de 54 años con dolor abdominal tipo cólico, inicio súbito, localizado en epigastrio irradiado a hipocondrio derecho. EVA 8/10, sin alivio con paracetamol. Náuseas, sin fiebre. Diabético tipo 2."
},
{
"motivo": "Fiebre alta y tos persistente desde hace 3 días.",
"enfermedad": "Femenina de 32 años, refiere fiebre no cuantificada, tos seca y malestar general. Inicio progresivo, sin disnea. Contacto reciente con familiar con cuadro gripal. Sin tratamiento previo."
},
{
"motivo": "Caída desde su propia altura con dolor en cadera.",
"enfermedad": "Paciente masculino de 78 años, caída accidental. Dolor en cadera derecha, no puede deambular. Sin pérdida de conciencia. Antecedente de osteoporosis. Sin tratamiento al momento."
},
{
"motivo": "Dolor torácico opresivo desde hace 1 hora.",
"enfermedad": "Hombre de 45 años, dolor torácico tipo opresivo, irradiado a brazo izquierdo. EVA 7/10, asociado a disnea leve. Hipertenso, en tratamiento irregular. No ha tomado medicación."
},
{
"motivo": "Dificultad para respirar desde hace 2 días.",
"enfermedad": "Femenina de 60 años con disnea progresiva, especialmente en decúbito. Tos productiva, sin fiebre. EPOC diagnosticado. Sin uso reciente de broncodilatadores."
},
{
"motivo": "Dolor lumbar tras levantar objeto pesado.",
"enfermedad": "Masculino de 40 años, refiere lumbalgia súbita al levantar carga. Dolor irradiado a glúteo derecho, sin déficit motor ni sensitivo. No antecedentes de trauma previo."
},
{
"motivo": "Convulsión presenciada por familiares.",
"enfermedad": "Paciente masculino de 19 años, episodio convulsivo tónico-clónico de 2 minutos. Postictal con somnolencia. Sin antecedentes conocidos. Primer episodio según familiares."
},
{
"motivo": "Diarrea líquida abundante desde hace 24 horas.",
"enfermedad": "Femenina de 27 años, múltiples deposiciones líquidas, sin sangre. Asociado a dolor abdominal leve y náuseas. Refiere comida en la calle previo al inicio. No ha tomado medicación."
},
{
"motivo": "Cefalea intensa que no cede con analgésicos.",
"enfermedad": "Masculino de 35 años, cefalea holocraneana, EVA 9/10, no aliviada con paracetamol. No fotofobia ni vómitos. No antecedentes de migraña. Inicio hace 12 horas, progresiva."
},
{
"motivo": "Paciente traído por agresión física.",
"enfermedad": "Masculino de 29 años, agredido con puño en rostro. Equimosis en región malar derecha. No pérdida de conciencia. Dolor moderado, sin signos de fractura evidente."
}
]
# Crear el PDF
pdf = TriagePDF()
pdf.set_auto_page_break(auto=True, margin=15)
pdf.add_page()
# Agregar los casos
for i, caso in enumerate(casos, 1):
pdf.add_case(i, caso["motivo"], caso["enfermedad"])
# Guardar el PDF
pdf.output("Notas_Triage_Intrahospitalario.pdf")
!/usr/bin/bash
# Translate Number to Hebrew letter count
# Mike 16-APR-2025
n="$1"
if [ ! "$n" ] ;
then
read -p "Enter a number 1 to 99 : " n
fi
if [ $n -lt 1 ] || [ $n -ge 100 ] ;
then
echo "Parameter out of limits"
exit
fi
tens='יכלמנסעפצ'
units='אבגדהוזחט'
a=`expr $n % 10`
b=`expr $n / 10`
u=`expr $a - 1`
t=`expr $b - 1`
#echo "a = $a b = $b"
#echo "u = $u t = $t"
case $n in
[1-9]) r="'"${units:u:1} ;;
15) r='ט"ו' ;;
16) r='ט"ז' ;;
?0) r="'"${tens:t:1} ;;
*) r=${tens:t:1}'"'${units:u:1}
esac
# Linux consoles output Hebrew right-to-left:
x=`tty | grep "tty[1-6]"`
y=${#r}
if [[ "$x" ]] && [ $y -gt 2 ] ;
then
r=`echo "$r" | rev`
fi
echo "result : $r"
unset tens units a b u t r x
OK, found kind of solution: so according to the (mentioned above) clue found a while ago WM may indeed override these values — and there's a need to mess with that window further using xcb_configure_window function. In this particular case the following should be added right before /* Free the Generic Event */ comment line:
uint32_t vals[5];
vals[0] = (screen->width_in_pixels / 2) - (600 / 2);
vals[1] = (screen->height_in_pixels / 2) - (400 / 2);
vals[2] = 600;
vals[3] = 400;
vals[4] = 20;
xcb_configure_window(c, win, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT |
XCB_CONFIG_WINDOW_BORDER_WIDTH, vals);
xcb_flush(c);
I noted that the above still somehow did not allow me to change „border width” of the window (anyone knows why?) — while its size and position have been changed accordingly.
I tried to look for the NormalizationOptions class but didn't find it.
Same issue, i tried exactly the same procedures and trying to fix this error!
As @Mr_Pink pointed out, I had to use the %q
verb in my test for getting output with line breaks character \n
printed out:
Test
func TestGuideBoardRender(t *testing.T) {
var want string
rendered := renderGuideBoard()
want = "1 2 3 4 5\n6 7 8 9 10\n11 12 13 14 15\n16 17 18 19 20\n21 22 23 24 25"
if rendered != want {
t.Errorf("Guiding board values aren't right\ngot:\n\n%q\n\nwant:\n\n%q", rendered, want)
}
}
from docx import Document
from docx.shared import Pt, RGBColor, Inches
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
# Crear documento
doc = Document()
# Encabezado con nombre del grupo
header = doc.add_paragraph()
header.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
run = header.add_run("Pela'os Activos")
run.font.size = Pt(16)
run.font.bold = True
run.font.color.rgb = RGBColor(0, 102, 204)
location_date = doc.add_paragraph("Santiago de Veraguas, Panamá\n[Fecha]")
location_date.alignment = WD_PARAGRAPH_ALIGNMENT.LEFT
# Datos del destinatario
doc.add_paragraph("[Nombre del comercio o responsable]")
doc.add_paragraph("[Nombre del establecimiento]")
doc.add_paragraph("Presente.\n")
# Cuerpo de la carta
body = (
"Estimados señores:\\n\\n"
"¡Un cordial saludo de parte del grupo juvenil \*Pela’os Activos\*! En alianza con la fundación española "
"\*\*Donesacull\*\*, nos encontramos organizando una actividad muy especial que busca dejar huellas positivas "
"en nuestra comunidad.\\n\\n"
"El próximo 19 de octubre de 2025, estaremos llevando a cabo una jornada solidaria en la comunidad de "
"La Coloradita, en La Peña, Santiago de Veraguas, donde haremos entrega de regalos, útiles escolares, ropa y más "
"a niños, niñas y familias en situación vulnerable.\\n\\n"
"Para hacer esto posible, estamos buscando aliados estratégicos como ustedes. Queremos invitarlos a ser parte de este "
"proyecto a través de patrocinio o descuentos especiales en sus productos o servicios. Su aporte no solo nos ayudará a lograr "
"un mayor alcance, sino que también posicionará su marca como un comercio con conciencia social.\\n\\n"
"A cambio, ofrecemos publicidad directa en nuestras redes sociales, donde destacaremos su negocio como uno de nuestros "
"patrocinadores oficiales. Haremos publicaciones agradeciendo su apoyo, mencionando su marca y mostrando cómo su contribución "
"hace la diferencia.\\n\\n"
"No es solo una donación. Es una oportunidad de conectar con la comunidad, ganar visibilidad y ser parte de una causa que transforma vidas.\\n\\n"
"Nos encantaría reunirnos o conversar con ustedes para compartir más detalles y escuchar sus ideas de colaboración.\\n\\n"
"Gracias por considerar ser parte de este sueño con impacto real. ¡Contamos con ustedes!\\n\\n"
"Con aprecio,\\n\\n"
"\[Tu nombre y apellido\]\\n"
"Representante – Pela’os Activos\\n"
"Tel.: \[tu número\]\\n"
"Correo: \[tu correo electrónico\]\\n"
"Instagram/Facebook: @PelaosActivos"
)
doc.add_paragraph(body)
# Guardar documento
file_path = "/mnt/data/Carta_Comercial_Pelaos_Activos.docx"
doc.save(file_path)
file_path
After struggling with the exact same issue in PyLucene 10.0.0, I've found the solution via https://github.com/fnp/pylucene/blob/master/test/test_PyLucene.py#L149
You are supposed to use parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer). So you are missing flags field.
E.g.:
fields = ["Post", "Title", "Comments", "Subreddit"]
SHOULD = BooleanClause.Occur.SHOULD
query = MultiFieldQueryParser.parse(query, fields, [SHOULD, SHOULD, SHOULD, SHOULD], analyzer)
@ottavio did you find the code or write your own?
I have the same goal and looking for any useful resource.
You can use a RedirectView:
urlpatterns = [
path(
"servertest/<path:path>",
RedirectView.as_view(url="server-test/%(path)s"),
),
]
You need to set the disk usage limit less than the actual size of storage device but sufficient enough to contain all your data.
a few years later but in case of something needs this tip. In your code before return in var rectShape you need the code line
rectShape.r = 10; //for example.
Unfortunately I can't comment, but if it's failing it could be that the file formatting is affecting the read, specifically for java? Is it windows, linux, mac? That may affect file encoding. Ensure the file has a newline at the end, and maybe even ensure there aren't any hidden characters that may be throwing off the read of the properties. Last it may be that java isn't executing with the same user so maybe it's searching in a different directory?