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?
In aws codepipeline source section it shows two options:
1. Create EventBridge rule to automatically detect source changes
2. Use AWS CodePipeline to check periodically for changes
But now you only see one option that is first one if u select this it will create eventbridge rule and if you did not select it it will by default choose this option ==> Use Amazon CloudWatch Events to automatically start my pipeline when a change occurs.
(( I think aws update its console that's why the second option is gone ))
so if u do not want to create event bridge rule to trigger pipeline whenever you pushes code to s3 u can choose this option > Use AWS CodePipeline to check periodically for changes
TO acheive this create aws code pipeline and in source choose s3 and then bucket name and object key . and uncheck this option : Create EventBridge rule to automatically detect source changes.
after this configure your target normally whether it is codedeploy or other services.
now after created a pipeline pipeline will trigger automatically because when u create a pipeline first time it triggers automatically.
now got to codepipeline > pipelines > select your pipeline > Edit > edit source choose edit stage > click on pencil icon where source s3 is written > here u can se **Change detection options is set to **
Amazon CloudWatch Events (recommended) now check or select the Use AWS CodePipeline to check periodically for changes this option now aws codepipeline auto looks for change in s3 now if u upload any object in s3 bucket codepipeline will trigger. sometimes it takes 40-50 seconds to trigger so u have to wait.
IF u want to create a event bridge rule for this u can see this aws docs :
https://docs.aws.amazon.com/codepipeline/latest/userguide/create-cloudtrail-S3-source-console.html
This issue was fixed by upgrading to macOS 15.4.1 (24E263), nothing else I did.
If you just want to change it to another language, and don't want to use localization for the rest of app at all (I mean not multilingual app), you should just add the language you want to change and make it default language for your app.
You need to iterate over the list
for planet in planets:
planet.draw(WIN)
interesting question, asdasdasdasdasdas
I have found a way. I created a base struct that is only member variables with specializations for the 3 relevant sizes, and made my Vector struct its child.
template<typename T, int N> requires std::is_arithmetic_v<T> && (N > 1)
struct Data {
T data[N];
};
template<typename T>
struct Data<T, 2> {
union {
T data[2];
struct { T x, y; };
struct { T r, g; };
struct { T u, v; };
};
};
template<typename T>
struct Data<T, 3> {
union {
T data[3];
struct { T x, y, z; };
struct { T r, g, b; };
};
};
template<typename T>
struct Data<T, 4> {
union {
T data[4];
struct { T x, y, z, w; };
struct { T r, g, b, a; };
};
};
export template <typename T, int N> requires std::is_arithmetic_v<T> && (N > 1)
struct Vector : Data<T, N> {
...
}
I had the same error with the same stacktrace.
When I used "http://...." instead of "https://...", it worked!
I got a hint from Getting Unsupported or unrecognized SSL message; nested exception is javax.net.ssl.SSLException while calling external API
The other answer did not work for me, but what did work for me on M1:
brew install llvm
export LLVM_CONFIG_PATH=$(brew --prefix llvm)/bin/llvm-config
export LIBCLANG_PATH=$(brew --prefix llvm)/lib
echo 'export LLVM_CONFIG_PATH=$(brew --prefix llvm)/bin/llvm-config' >> ~/.zshrc
echo 'export LIBCLANG_PATH=$(brew --prefix llvm)/lib' >> ~/.zshrc
source ~/.zshrc
cargo clean
and cargo build
afterwards:)
This article answers your question 100%. Dev.to article on server routing in Angular 19
Thanks, that works for me in Safari:
resizable=0
Isn't it against the TOS of Google Colab to host a Minecraft Server?
I want to host a PRIVATE/PERSONAL server for about 5 players ONLY.
With grails-geb 4.1.x (Grails 6), 4.2.x (Grails 6) and 5.0.x (Grails 7) you will need to have a local container environment.
https://github.com/apache/grails-geb?tab=readme-ov-file#containergebspec-recommended
This change was made due to to old web driver solution no longer be maintained.
https://github.com/erdi/webdriver-binaries-gradle-plugin/pull/44
The functional tests use Geb to drive a web browser. As of Grails 7, this was transitioned to use Test Containers. You can read more about this here: https://github.com/apache/grails-geb
That error is occurring because there isn't a detected container runtime present. Installing one of the listed ones on the repo will resolve the error.
You're basically just calculating the average. Why don't you use avg
?
try to remove description
field from generateMetadata
function from Layout.tsx . It render data once on Layout, and then generate second time on each page. Try to keep description
field on Page.tsx only and check.
IN the file .htaccess try to write ErrorDocument 404 /index.html
had same issue, and I am in Ubuntu
I remembered I enabled ufw firewall
so I have disabled it with sudo ufw disalbe
or you can allow port 8081 by sudo ufw allow 8081/tcp
have you found a solution? I have the same problem. Thank you
Sub IndexHyperlinker()
'
' IndexHyperlinker Macro
'
Application.ScreenUpdating = False
Dim Fld As Field, Rng As Range, StrIdx As String, StrList As String, IdxTxt As String, i As Long, j As Long
StrList = vbCr
With ActiveDocument
If .Indexes.Count = 0 Then
If (.Bookmarks.Exists("_INDEX") = False) Or (.Bookmarks.Exists("_IdxRng") = False) Then
MsgBox "No Index found in this document", vbExclamation: Exit Sub
End If
End If
.Fields.Update
For Each Fld In .Fields
With Fld
Select Case .Type
Case wdFieldIndexEntry
StrIdx = Trim(Split(.Code.Text, "XE ")(1))
StrIdx = Replace(StrIdx, Chr(34), "")
StrIdx = NormalizeIndexName(StrIdx)
If InStr(StrList, vbCr & StrIdx & ",") = 0 Then
i = 0: StrList = StrList & StrIdx & "," & i & vbCr
Else
i = Split(Split(StrList, vbCr & StrIdx & ",")(1), vbCr)(0)
End If
StrList = Replace(StrList, StrIdx & "," & i & vbCr, StrIdx & "," & i + 1 & vbCr)
i = i + 1: Set Rng = .Code: MsgBox StrIdx
With Rng
.Start = .Start - 1: .End = .End + 1
.Bookmarks.Add Name:=StrIdx & i, Range:=.Duplicate
End With
Case wdFieldIndex: IdxTxt = "SET _" & Fld.Code
Case wdFieldSet: IdxTxt = Split(Fld.Code, "_")(1)
End Select
End With
Next
If (.Bookmarks.Exists("_INDEX") = True) And (.Bookmarks.Exists("_IdxRng") = True) Then _
.Fields.Add Range:=.Bookmarks("_IdxRng").Range, Type:=wdFieldEmpty, Text:=IdxTxt, Preserveformatting:=False
Set Rng = .Indexes(1).Range
With Rng
IdxTxt = "SET _" & Trim(.Fields(1).Code)
.Fields(1).Unlink
If Asc(.Characters.First) = 12 Then .Start = .Start + 1
For i = 1 To .Paragraphs.Count
With .Paragraphs(i).Range
StrIdx = Split(Split(.Text, vbTab)(0), vbCr)(0)
StrIdx = NormalizeIndexName(StrIdx)
.MoveStartUntil vbTab, wdForward: .Start = .Start + 1: .End = .End - 1
For j = 1 To .Words.Count
If IsNumeric(Trim(.Words(j).Text)) Then
.Hyperlinks.Add Anchor:=.Words(j), SubAddress:=GetBkMk(Trim(.Words(j).Text), StrIdx), TextToDisplay:=.Words(j).Text
End If
Next
End With
Next
.Start = .Start - 1: .End = .End + 1: .Bookmarks.Add Name:="_IdxRng", Range:=.Duplicate
.Collapse wdCollapseStart: .Fields.Add Range:=Rng, Type:=wdFieldEmpty, Text:=IdxTxt, Preserveformatting:=False
End With
End With
Application.ScreenUpdating = True
End Sub
Function GetBkMk(j As Long, StrIdx As String) As String
Dim i As Long: GetBkMk = "Error!"
With ActiveDocument
For i = 1 To .Bookmarks.Count
If InStr(.Bookmarks(i).Name, StrIdx) = 1 Then
If .Bookmarks(i).Range.Information(wdActiveEndAdjustedPageNumber) = j Then _
GetBkMk = .Bookmarks(i).Name: Exit For
End If
Next
End With
End Function
Function NormalizeIndexName(StrIn As String) As String
' Replace leading numerals with their word equivalents
Dim NumWords(1 To 20) As String
NumWords(1) = "first_": NumWords(2) = "second_": NumWords(3) = "third_"
NumWords(4) = "fourth_": NumWords(5) = "fifth_": NumWords(6) = "sixth_"
NumWords(7) = "seventh_": NumWords(8) = "eighth_": NumWords(9) = "ninth_"
NumWords(10) = "tenth_": NumWords(11) = "eleventh_": NumWords(12) = "twelfth_"
NumWords(13) = "thirteenth_": NumWords(14) = "fourteenth_": NumWords(15) = "fifteenth_"
NumWords(16) = "sixteenth_": NumWords(17) = "seventeenth_": NumWords(18) = "eighteenth_"
NumWords(19) = "nineteenth_": NumWords(20) = "twentieth_"
Dim tmp As String: tmp = Trim(StrIn)
Dim i As Integer
For i = 20 To 1 Step -1
If tmp Like CStr(i) & "*" Then
tmp = NumWords(i) & Mid(tmp, Len(CStr(i)) + 1)
Exit For
End If
Next i
' Replace remaining chars
tmp = Replace(tmp, ", ", "_")
tmp = Replace(tmp, " ", "_")
tmp = Replace(tmp, "-", "_")
NormalizeIndexName = tmp
End Function
You can try my project iplist-youtube
, it tries to make a list of all youtube ips through frequent dns queries.
https://github.com/touhidurrr/iplist-youtube
Update your browser and relaunch.
With the current version of VSCode you can simply go to Help→Welcome.
This will show the Welcome page again with the Start → New File... Open... Clone Git Repository… Connect to... and the recent project links.
I tried in Apr 2025:
Pandas version: 1.5.3
Numpy version: 1.21.6
Sqlalchemy version: 1.4.54
tablename.tosql() function working fine
i changed my path in db.ts from
import { PrismaClient } from "@prisma/client";
to
import { PrismaClient } from "../../lib/generated/prisma"; this then it worked
yarn add react-native-gesture-handler
worked for me
Starting from SQLAlchemy v1.4 there is a method in_transaction()
for both Session
and AsyncSession
classes.
AsyncSession: https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.AsyncSession.in_transaction
Session: https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.in_transaction
what helped me was, plugging in and out my wifi stick and letting no browser open. before it already downloaded some other packages, so only one was left anyway. so one always have to restart the installing process...
You need to create the key outside the cluster and pass in as part of your deployment.
This PR added the functionality to do this using a KubernetesSecretsRepository
Look at the output of the following small program, this will answer your question.
int main()
{
printf(" 3%%2 = %d\n", 3%2);
printf("-3%%2 = %d\n", -3%2);
}
Output:
3%2 = 1
-3%2 = -1
You need to update react-native-safe-area-context and rebuild your app (https://github.com/AppAndFlow/react-native-safe-area-context/pull/610)
Found the answer, it took a while to find, but here is the reason the Excel Source does what it does.
"The Excel driver reads a certain number of rows (by default, eight rows) in the specified source to guess at the data type of each column. When a column appears to contain mixed data types, especially numeric data mixed with text data, the driver decides in favor of the majority data type, and returns null values for cells that contain data of the other type. (In a tie, the numeric type wins.) Most cell formatting options in the Excel worksheet do not seem to affect this data type determination."
This is a very useful feature to have, if you don't want to change the perceived data type of the Excel spreadsheet.
I had an issue using two PC's on one the =LINEST(yrange,xrange^{1,2}) worked fine, on the other it did not, I got one result not three. What I found was on the second PC it was inserting an invisible @ character that stopped the array working properly. If I copier the sheet an put it on PC 1 I could see the character and delete it. Save the file and put it back on the 2nd PC and supprise it worked properly. Haven't found the cause yet but suspect there is a windows or excel setting different, but it wasn't the region, language or keyboard settings. There are differences between the PC's one is running 1st is running office 365 the 2nd is running excel 2019 stand alone. The Line on the bad PC read
=@LINEST(yrange,xrange^{1,2}) but you couldn't see the @ on that PC but it screws thing up..
Since you are using an old version of VectorCAST the best way to do this is to create a test case and put it in a compound test case. Then set the iteration counter in the compound test to 1000001. This will run the test case 1000001 times and will create the condition that you need to cover the "if" statement.
If you were using a newer version of VectorCAST (6.4 or above) you could use Probe Points to set the local variable directly.
Coming to this question after the advent of array-based formulas like MAP
, BYROW
, LAMBDA
, etc., which seem to be faster than Apps Script functions (when less than 106 cells are involved). I want to offer an alternative solution that uses only formulas, and does not require "string hacking" (2), because some people need such features. This solution will work on tables with different shapes.
Definitions. In your example, we'll assume Table A is TableA!A1:B3
and Table B is TableB!A1:B5
, and we're going to use LET
to define four variables for clarity:
data_left
is TableA!A1:A3
, represents the data from Table A to displaykeys_left
is TableA!B1:B3
, represents the keys of the data in Table A, that we'll use for matchingdata_right
is TableB!B1:B5
, represents Table B datakeys_right
is TableA!A1:A5
, represents Table B keysIn either table, the key values are not unique. Our goal is to find all matches of key values (e.g. x1
and x2
) between the two tables, and display only the corresponding values from TableA!A1:A3
and TableB!B1:B5
.
Formula. The formula below generates a new array containing values from the first column of table A and second column of table B. Each row represents a match between keys_left
and keys_right
, with proper duplication when a key appears in multiple rows.
= LET(
data_left, TableA!A1:A3, data_right, TableB!B1:B5,
keys_left, TableA!B1:B3, keys_right, TableB!A1:A5,
index_left, SEQUENCE( ROWS( keys_left ) ),
prefilter, ARRAYFORMULA( MATCH( keys_left, keys_right, 0 ) ),
index_left_filtered, FILTER( index_left, prefilter ),
keys_left_filtered, FILTER( keys_left, prefilter ),
matches, MAP( index_left_filtered, keys_left_filtered, LAMBDA( id_left, key_left,
LET(
row_left, XLOOKUP( id_left, index_left, data_left ),
matches_right, FILTER( data_right, keys_right = key_left ),
TOROW( BYROW( matches_right, LAMBDA( row_right,
HSTACK( row_left, row_right )
) ) )
)
) ),
wrapped, WRAPROWS( FLATTEN(matches), COLUMNS(data_right) + COLUMNS(data_left) ),
notblank, FILTER( wrapped, NOT(ISBLANK(CHOOSECOLS(wrapped, 1))) ),
notblank
)
How it works? A few tricks are necessary to make this both accurate and fast:
index_left
: Create a temporary, primary-key array to index the left table, so that you can retrieve rows from it later.prefilter
: Prefilter this index to omit rows with unmatched keys. Use this to filter the index (index_left_filtered
) and the keys (keys_left_filtered
) accordingly. (2)matches
: For each remaining value in the index:
row_left
: XLOOKUP
the corresponding row from data_left
matches_right
: use FILTER
to find all matching rows in the data_right
row_left
with each matching row from the data_right
TOROW( BYROW() )
to flatten the resulting array into a single row, because MAP
can return 1D array for each value of the index but not 2D array. (This makes a mess but we fix it later.)wrapped
: The resulting array will have as many rows as the filtered index, but number of columns will vary depending on the maximum number of matches for any given index. Use WRAPROWS
to properly stack and align matching rows. This leads to a bunch of empty blank cells but ...notblank
: ... those are easy to filter out.Generalize. To apply this formula to other tables, just specify the desired ranges (or the results of ARRAYFORMULA
or QUERY
operations) for the first four variables; keys_left
and keys_right
must be single column but data_left
and data_right
can be multi-column. (Or create a Named Function and specify the four variables as parameters as "Argument placeholders".)
Named Function. If you just want to use this, you can import the Named Function INNERJOIN
from my spreadsheet functions. That version assumes the first row contains column headers. See documentation at this GitHub repo.
Notes.
(1) I loved string-hacking approaches back when they were the only option, but doubleunary pointed out that they convert numeric types to strings and cause undesirable side effects.
(2) This is counterintuitive because it means you search the keys_right
twice overall; but I found in testing that if you include unmatched rows in the joining step, is much costlier.
You can also delete all logs in a single command with
gcloud logging logs list \
--format="value(NAME)" \
| xargs -n1 -I{} gcloud logging logs delete {} --quiet
For the sake of later searchers, like me, although it is 11 years later, Python now has the logging.handlers.QueueHandler class which supports background threading for log message processing. It is thread-safe even when used by the applications own threads. I found it very easy to learn and use.
Currently, using background QueueHandlers is better practice, particularly for apps that do heavy logging with JSON log formatting. All processing of log formatters is done in a thread so as to not suppress the calling app thread. Good luck.
Unfortunately, based on my understanding it is not possible to make the linked service connection name in dataset nor the integration runtime in linked service cannot be parameterized.
It seems that setting shadowCopyBinAssemblies="false" in your web.config does not have the desired effect, and the shadow copying feature is still being applied. This can happen due to several reasons, particularly in IIS and how ASP.NET manages assemblies during runtime.
Here are a few things to check or try:
IIS Application Pool Settings:
Make sure that the application pool is set to use No Managed Code if you don't need .NET runtime to load assemblies. Sometimes, even if this is set to .NET, IIS might still shadow copy assemblies for certain configurations.
Ensure that the application pool is using Integrated mode instead of Classic mode.
ShadowCopying Behavior in IIS:
Even if you set shadowCopyBinAssemblies="false" in web.config, IIS might still shadow copy assemblies for the first request to make sure that the web application loads and initializes properly.
To fully control shadow copying behavior, you might need to adjust the ASP.NET settings through the registry or through IIS settings, particularly if you're using IIS to host your application.
Test with Debugging Mode Off:
In production, debugging is often enabled (debug="true"), which may cause the shadow copying to remain enabled. Ensure you have debug="false" for production environments.
Temporary ASP.NET Files Location:
Even with shadowCopyBinAssemblies="false", ASP.NET might still cache assemblies in the Temporary ASP.NET Files directory (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files). This is normal behavior if the application needs to handle certain runtime operations or if the assemblies are not explicitly precompiled.
Check IIS and ASP.NET Configuration:
Make sure that the IIS server is properly restarted after changes in web.config. Sometimes, changes don't take effect until IIS is fully restarted, especially in production environments.
Ensure that shadowCopyBinAssemblies is correctly set within the hostingEnvironment section in web.config (as you've already done).
Deployment Considerations:
If you're deploying the application on a production server, double-check that you are indeed using the correct **web.config **file (not an older version or one that got cached during deployment).
Review Assembly Binding Log:
You can enable assembly binding logs to check if any assembly is being loaded or shadow-copied, which might help identify if something unexpected is happening.
If none of these solutions work, consider researching deeper into IIS configuration and ASP.NET runtime behavior for shadow copying, or review logs to see if there are any clues indicating why shadow copying persists despite the setting.
I have installed successfully boltztrap2 with all the required files in wsl in Ubuntu20.04LTS using Python3.12.8. However boltztrap2 does not produce any results for LiZnSb. Pl help in this issue.Prof.Dr.Ram Kumar Thapa. India
Try to use local variable
def common = steps.load('common.groovy')
def FOO = common.FOO
this version does work as mentioned above devtools::install_github("dmurdoch/leaflet@crosstalk4")
BUT it is not compatible with recent versions of r leaflet. any suggestions?
I can confirm it is an issue related to zsh. Kamal is clearly expecting bash.
Easy fix:
Create a new user dedicated to kamal deployment, like ... "kamal"
Add it to the "docker" group
Set this user shell to bash
Update your deploy.yml to use this new user
Profit
Voip is concept and covers all communciations over internet protocol while WebRTC is a technology that deals with how client applications can be developed on web browser to make communcaitons over interet
In Windows 11 this powershell command should do it :
(Get-Process -Id 3432).WorkingSet64
Try opening project.xcworkspace (and not project.xcodeproj) in Xcode and run via simulator.
TinyMCE now has an option to support this.
tinymce.init({
noneditable_class: 'mceNonEditable',
format_noneditable_selector: '.mceNonEditable'
});
I had the same, turned out to be my auto-build batch file generated a string that was not a valid guid for the ProductCode. ISCmdBuild happily generated the install with the invalid string.
To hide the keyboard toolbar in the Android Emulator, follow these steps:
Open the Emulator: Launch your Android Emulator from Android Studio or via the command line.
Access Emulator Settings:
Go to Settings:
Disable the Keyboard Toolbar:
Look for an option related to the virtual keyboard or input settings (this might vary slightly depending on the emulator version).
If available, toggle off "Show virtual keyboard toolbar" or a similar setting. In some cases, you may need to disable "Enable virtual keyboard" entirely.
Alternative: Modify AVD Configuration:
If the toolbar persists, open the AVD Manager in Android Studio.
Edit the emulator's Advanced Settings.
Under Hardware Input, set Keyboard Input to None or disable HW Keyboard.
Restart the Emulator:
If the toolbar still appears, ensure you're not using a custom skin or third-party keyboard that might override these settings. Check the emulator's documentation for your specific version, as options can differ.
Let me know if you need help finding these settings or if the toolbar persists!
custom emulator skins
Android Studio shortcuts
I don't know if you were able to solve your problem yet, but here is a paper proposing a method for mean-preserving quadratic splines, which can take additional constraint for lower bounds :
https://www.sciencedirect.com/science/article/pii/S0038092X22007770
doi : 10.1016/j.solener.2022.10.038
I have used it for approximating daily cycles of instantaneous surface temperature from 3h-mean values, and the method is particularly robust and efficient. The authors provide the python interface to implement the method in your code.
You could try adding a reference to the Microsoft.Windows.Compatibility NuGet package to the project generating the .NET6 DLL.
You might also need to add <UseWindowsForms>true</UseWindowsForms> to the project file if the framework DLL uses winforms.
This works:
select toString(date_time_column, timezone_column) from your_table
I am using Baklava on Pixal 6 Pro. I had same issue and i turned off Write in text field and turned on physical keyboard -> Show on-screen keyboard option. I don't see that widget anymore
My VS build consistently halted mid process but couldn't be stopped w/o force stopping the process. I attempted all the solutions proposed here, but wasn't successful.
After a while I attempted to go to the code folder and delete the bin / obj folders and I found that there was a process that was holding certain files w/i bin / obj folder content hostage. I wasn't able to resolve this so I simply restarted the computer then once restarted I deleted the bin / obj files and then performed a rebuild w/i VS. This completed the rebuild and I was able to build from then on.
The issue is fixed with prophet version 1.1.5