Here, I want to know where the OHLC data is coming from and how the candlesticks get rearranged according to the timeframe, like a 1-year chart with 1-day candles, and where the OHLC data is passed to display the candlesticks. - In trading view - enter image description here
SELAMÜNALEYKÜM BEYLER. NASIL KİNİTOPET İNDİREBİLİRİM BEYLER. BEYLER BİR BENİM ÇAY OCAĞINA GELİNDE SİZE KAHVE ISMARLIYIM DOSTLARIM. BEYLER NAPIONUZ BEYLER. BEN SİNAN KAYA MEMLEKETİM KARTAL KAYA GELDİM BURAYA KAYA KAYA HERKESE KAYARIM BEYLER DİKKAT EDİN KORKUN BENDEN WUUUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Thanks, I am able to access rest api with JWT Token.
Putting my steps for reference.
Get Access token sample :
curl -X POST 'http://localhost:8080/auth/token' \
-H "Content-Type: application/json" \
-d '{
"username": "user",
"password": "pass"
}'
Response JWT token :
{"access_token":"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjpbXSwiYXVkIjoiYXBhY2hlLWFpcmZsb3ciLCJuYmYiOjE3NTYxMTM3MDMsImV4cCI6MTc1NjIwMDEwMywiaWF0IjoxNzU2MTEzNzAzfQ.SBi_s0yYrHFiEyiwzU6a78nmwYTe91FDnU1mC5aoLqnHQ2JGMBqv0njOrxXDTi9YpSQ_iesvTfbjsmqqYSC54w"}
Request API using above generated token :
curl -X GET 'http://localhost:8080/api/v2/dags' \
-H "Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjpbXSwiYXVkIjoiYXBhY2hlLWFpcmZsb3ciLCJuYmYiOjE3NTYxMTM3MDMsImV4cCI6MTc1NjIwMDEwMywiaWF0IjoxNzU2MTEzNzAzfQ.SBi_s0yYrHFiEyiwzU6a78nmwYTe91FDnU1mC5aoLqnHQ2JGMBqv0njOrxXDTi9YpSQ_iesvTfbjsmqqYSC54w"
API Response : {"dags":[],"total_entries":0}
Thanks.
I've encountered the same problem.
I find my problem related to the Build Variant.
when I switch build variant to debug, compose preview works fine. but when I switch it to the custom build type I defined in Build.gradle, compose preview stops work.
Is there any way to let compose preview work in custom build types?
Got the same error - even using your last example.
My command is :
New-Object System.DirectoryServices.ActiveDirectoryAccessRule $AdminSID, "GenericWrite", "Allow"
New-Object : Cannot find an overload for "ActiveDirectoryAccessRule" and the argument count: "3".
Or using the method syntax :
[System.DirectoryServices.ActiveDirectoryAccessRule]::new(
$AdminSID,
[System.DirectoryServices.ActiveDirectoryRights]::GenericWrite,
[System.Security.AccessControl.AccessControlType]::Allow)
Cannot find an overload for "new" and the argument count: "3".
Any suggestion ?
Thanks :-)
Run npm i dotenv
.
import { env } from 'process'
import 'dotenv/config'
const { NODE_ENV } = env
console.log(NODE_ENV)
This one will catch from and included START
until and included END
:
(?m)START[^$]{0,80}END
The option (?M)
is for using ^
and $
for start and end of lines instead of start and end of string.
This one will catch from and not included START
until and not included END
:
(?m)(?<=START)[^$]{0,80}(?=END)
A little update. Since 1.7.1 upload_records
is deprecated, and upload_points
should be used instead.
The MS documentation doesn't easily show the collation of local character-type variables, only poorly explains that changing the collation has only limited support in some platforms. This extensive writeup may be of use to those who find this question:
// app/Exceptions/Handler.php
use Illuminate\Auth\AuthenticationException;
protected function unauthenticated($request, AuthenticationException $exception)
{
return response()->json(['message' => 'Unauthenticated.'], 401);
}
from PIL import Image
# افتح الصورة PNG
png_path = "/mnt/data/مصانع_العامرية_وبرج_العرب.png"
jpg_path = "/mnt/data/مصانع_العامرية_وبرج_العرب.jpg"
# تحويل PNG إلى JPG
img = Image.open(png_path).convert("RGB")
img.save(jpg_path, "JPEG")
jpg_path
try not to import it from src
. Instead, use something like:
../core/transformers/Decimal.transformer
The conversion to a list from double is caused by duplicates/ multiple items for the same id-pair.
There was exactly the same problem, but it was solved as follows
//presignedRequest.Parameters.Add("uploadId", uploadId);
//presignedRequest.Parameters.Add("partNumber", partNumber.ToString());
presignedRequest.UploadId = uploadId;
presignedRequest.PartNumber = partNumber;
I found out the way is: to create a separate action which registers itself in the IDE menu with the associated accelerator
@ActionID(
category = "Window",
id = "ste.netbeans.nblogmanager.logviewer.LogViewerShortcutAction"
)
@ActionRegistration(
displayName = "#CTL_LogViewerShortcutAction",
key = "DS-L" // Ctrl+Shift+L
)
@ActionReference(path = "Menu/Window", position = 333)
@Messages({
"CTL_LogViewerShortcutAction=Show Log Viewer"
})
public final class LogViewerShortcutAction extends AbstractAction {
public LogViewerShortcutAction() {
putValue(NAME, Bundle.CTL_LogViewerShortcutAction());
}
@Override
public void actionPerformed(ActionEvent e) {
TopComponent tc = WindowManager.getDefault().findTopComponent("LogViewerTopComponent");
if (tc == null) {
tc = new LogViewerTopComponent();
}
tc.open();
tc.requestActive();
}
}
Apparently, according to AWS support it was the AWS engineers updating the Bedrock models that caused the issue.
Right now it is possible to deploy via the descriptive bot builder in us-east-1 only. Then it is possible to export and import in another region.
To read elements on a new window/tab using selenium you need to get the webdriver to switch to that new window/tab
To simply switch to the most recently opened tab you can do:
driver.switch_to.window(driver.window_handles[-1])
However you may want to do something more robust; The docs have a good section on Working with windows and tabs
Working version: I am using Groq API keys and mock API specs.
import asyncio
import json
import logging
import os
from dotenv import load_dotenv
from llama_index.core.agent import ReActAgent
from llama_index.core.memory import ChatMemoryBuffer
from llama_index.core.tools import FunctionTool
from llama_index.llms.groq import Groq
load_dotenv()
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('multi-tool-reproduction')
# Mock data to simulate the OpenAPI + Requests workflow
MOCK_API_SPECS = {
"companies": {
"endpoint": "/v1/companies/list",
"method": "POST",
"base_url": "https://api.my-company.com",
"description": "List all companies for authenticated user"
},
"users": {
"endpoint": "/v1/users/profile",
"method": "GET",
"base_url": "https://api.my-company.com",
"description": "Get user profile information"
}
}
MOCK_API_RESPONSES = {
"https://api.my-company.com/v1/companies/list": {
"success": True,
"companies": [
{"id": 1, "name": "Acme Corp", "status": "active"},
{"id": 2, "name": "Tech Solutions Inc", "status": "active"},
{"id": 3, "name": "Global Enterprises", "status": "inactive"}
]
},
"https://api.example.com/companies": {
"success": False,
"error": "Invalid domain - this is the wrong endpoint!"
}
}
def mock_load_openapi_spec(query: str) -> str:
"""
Mock version of OpenAPIToolSpec functionality
This simulates finding API endpoints based on user queries
"""
logger.info(f"🔍 OPENAPI TOOL CALLED with query: '{query}'")
query_lower = query.lower()
# Simple matching logic
if "companies" in query_lower or "list" in query_lower:
spec = MOCK_API_SPECS["companies"]
result = {
"found": True,
"endpoint": spec["endpoint"],
"method": spec["method"],
"full_url": f"{spec['base_url']}{spec['endpoint']}",
"description": spec["description"],
"base_url": spec["base_url"]
}
logger.info(f"📋 OPENAPI FOUND: {spec['base_url']}{spec['endpoint']}")
elif "users" in query_lower or "profile" in query_lower:
spec = MOCK_API_SPECS["users"]
result = {
"found": True,
"endpoint": spec["endpoint"],
"method": spec["method"],
"full_url": f"{spec['base_url']}{spec['endpoint']}",
"description": spec["description"],
"base_url": spec["base_url"]
}
logger.info(f"📋 OPENAPI FOUND: {spec['base_url']}{spec['endpoint']}")
else:
result = {
"found": False,
"error": f"No API endpoint found for query: {query}",
"suggestion": "Try queries like 'list companies' or 'get user profile'"
}
logger.info("📋 OPENAPI: No matching endpoint found")
return json.dumps(result, indent=2)
def mock_post_request(url: str, body: str = "{}", headers: str = "{}") -> str:
"""
Mock version of RequestsToolSpec post_request functionality
This simulates making HTTP POST requests
"""
logger.info(f"🌐 HTTP POST TOOL CALLED with URL: '{url}'")
try:
request_body = json.loads(body) if body else {}
request_headers = json.loads(headers) if headers else {}
# Mock response based on URL
if url in MOCK_API_RESPONSES:
response_data = MOCK_API_RESPONSES[url]
logger.info(f"📡 HTTP SUCCESS: Found mock response for {url}")
else:
# This simulates the BUG - when wrong URL is used
response_data = {
"success": False,
"error": f"No mock response for URL: {url}",
"message": "This represents the bug - agent used wrong URL!",
"expected_urls": list(MOCK_API_RESPONSES.keys())
}
logger.warning(f"📡 HTTP FAILURE: No mock response for {url}")
result = {
"status_code": 200 if response_data.get("success") else 400,
"url": url,
"request_body": request_body,
"request_headers": request_headers,
"response": response_data
}
return json.dumps(result, indent=2)
except Exception as e:
logger.error(f"❌ HTTP tool error: {e}")
return json.dumps({
"success": False,
"error": str(e),
"url": url
})
def mock_get_request(url: str, headers: str = "{}") -> str:
"""
Mock version of RequestsToolSpec get_request functionality
"""
logger.info(f"🌐 HTTP GET TOOL CALLED with URL: '{url}'")
try:
request_headers = json.loads(headers) if headers else {}
if url in MOCK_API_RESPONSES:
response_data = MOCK_API_RESPONSES[url]
logger.info(f"📡 HTTP SUCCESS: Found mock response for {url}")
else:
response_data = {
"success": False,
"error": f"No mock response for URL: {url}",
"message": "This represents the bug - agent used wrong URL!"
}
logger.warning(f"📡 HTTP FAILURE: No mock response for {url}")
result = {
"status_code": 200 if response_data.get("success") else 400,
"url": url,
"request_headers": request_headers,
"response": response_data
}
return json.dumps(result, indent=2)
except Exception as e:
logger.error(f"❌ HTTP GET tool error: {e}")
return json.dumps({
"success": False,
"error": str(e),
"url": url
})
async def test_multi_tool_agent():
"""Test agent with both tools - THE MAIN ISSUE"""
print("\n" + "=" * 80)
print("🧪 TEST 3: MULTI-TOOL AGENT (THE BUG)")
print("=" * 80)
try:
# Create both tools
openapi_tool = FunctionTool.from_defaults(
fn=mock_load_openapi_spec,
name="load_openapi_spec",
description="Find API endpoints and specifications based on user query. Returns JSON with endpoint details including the full URL to use."
)
http_tool = FunctionTool.from_defaults(
fn=mock_post_request,
name="post_request",
description="Make HTTP POST requests to API endpoints. Requires the full URL including domain name."
)
# System prompt similar to Stack Overflow issue
system_prompt = """
You are an API assistant with two tools: load_openapi_spec and post_request.
IMPORTANT WORKFLOW:
- FIRST: Use load_openapi_spec to find the correct API endpoint for the user's request
- SECOND: Use post_request with the EXACT full URL from the first tool's response
Always follow this two-step process. Never guess URLs or use default endpoints.
"""
memory = ChatMemoryBuffer.from_defaults()
llm = Groq(model="llama3-70b-8192", api_key=os.getenv("GROQ_API_KEY"))
agent = ReActAgent.from_tools(
tools=[openapi_tool, http_tool],
llm=llm,
memory=memory,
verbose=True,
system_prompt=system_prompt
)
print("\n🚀 Running test...")
response = await agent.achat("List my companies")
print(f"\n📋 Final response: {response}")
except Exception as e:
print(f"❌ Multi-tool agent error: {e}")
logger.exception("Multi-tool agent detailed error:")
async def main():
"""Run all tests to reproduce the multi-tool chaining issue"""
print("LlamaIndex Multi-Tool Chaining")
print("=" * 60)
# Test multi-tool agent (the main issue)
await test_multi_tool_agent()
print("\n" + "=" * 80)
if __name__ == "__main__":
asyncio.run(main())
Answer:
🚀 Running test...
> Running step 1a1b21a8-5b87-4379-94b2-941769dfeedc. Step input: List my companies
INFO:httpx:HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
Thought: The current language of the user is: English. I need to use a tool to help me answer the question.
Action: load_openapi_spec
Action Input: {'query': 'list companies'}
INFO:multi-tool-reproduction:🔍 OPENAPI TOOL CALLED with query: 'list companies'
INFO:multi-tool-reproduction:📋 OPENAPI FOUND: https://api.my-company.com/v1/companies/list
Observation: {
"found": true,
"endpoint": "/v1/companies/list",
"method": "POST",
"full_url": "https://api.my-company.com/v1/companies/list",
"description": "List all companies for authenticated user",
"base_url": "https://api.my-company.com"
}
> Running step 853cc07c-b6f7-4d1b-9ae6-21006cc7b731. Step input: None
INFO:httpx:HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
Thought: I have the API endpoint to list companies. Now I need to make a POST request to this endpoint.
Action: post_request
Action Input: {'url': 'https://api.my-company.com/v1/companies/list', 'body': '{}', 'headers': '{}'}
INFO:multi-tool-reproduction:🌐 HTTP POST TOOL CALLED with URL: 'https://api.my-company.com/v1/companies/list'
INFO:multi-tool-reproduction:📡 HTTP SUCCESS: Found mock response for https://api.my-company.com/v1/companies/list
Observation: {
"status_code": 200,
"url": "https://api.my-company.com/v1/companies/list",
"request_body": {},
"request_headers": {},
"response": {
"success": true,
"companies": [
{
"id": 1,
"name": "Acme Corp",
"status": "active"
},
{
"id": 2,
"name": "Tech Solutions Inc",
"status": "active"
},
{
"id": 3,
"name": "Global Enterprises",
"status": "inactive"
}
]
}
}
> Running step 35b8297b-e908-47f9-9356-08de6505cad7. Step input: None
INFO:httpx:HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
Thought: I have the list of companies. I can answer the user's question now.
Answer: Here is the list of your companies: Acme Corp, Tech Solutions Inc, Global Enterprises
📋 Final response: Here is the list of your companies: Acme Corp, Tech Solutions Inc, Global Enterprises
You should first understand how ip address allocated?
Also you need to understand how dhcp and nat work?
When you start r&d on this protocol , you figure our concept called private network .
In this private network , device have dummy ip address ( whatever is ) but have unique in that private network.
Whenever you device send or receiver response it used router ip address because it unique in internet.
Router maintain table and record following things :-
Sender ip address
Sender port address
receiver ip address
receiver port address.
Now router modify only above two field of router by own data.
When data come from receiver side and it again check which device for this data come. It check table and match forward response that device and that service.
Not sure which version you are on, but the contentConnector is a Magnolia 5 configuration that is usable in Magnolia 6 but deprecated.
I do not see any “class” or “appClass” defined at the root of the app, which could be the reason for the NPE https://docs.magnolia-cms.com/product-docs/6.2/apps/app-configuration/app-descriptor/
I hope this helps.
Best regards,
Roman
The simpliest way, i believe is to do something like this:
from itertools import takewhile
def find_lcp(s: List[str]) -> str:
t = len(list(takewhile(lambda x: len(x)==1, map(set,zip(*s)))))
return s[0][:t]
The RTSP server developed by these guys supports local media files. You can directly use rtsp://ip:port/filename, such as rtsp://ip:port/test.mp4
https://www.happytimesoft.com/products/rtsp-server/index.html
Model: Handles the data and business logic of the application. It manages CRUD operations, enforces business rules, and interacts with the database. For example, in a bookstore app, the Model would manage data like book titles, authors, and stock levels.
View: Manages the user interface and presentation. It displays data to users and updates the UI when the Model changes. For instance, the View in a bookstore app would show the list of books and provide input fields for searching or filtering.
Controller: Acts as the intermediary between the Model and View. It processes user input, updates the Model, and selects the appropriate View to display. For example, when a user searches for a book, the Controller handles the request, retrieves data from the Model, and updates the View.
Right now in your AppModule you are configuring the router twice.
This double registration leads to odd behaviour. Pick one style of router configuration, not both.
Make sure your database in phpMyAdmin is empty (no tables, views, routines, or triggers).
If it’s empty and you still get the error, then it’s a filesystem issue.
If you are using XAMPP:
Stop the MySQL server from the XAMPP control panel.
Go to: C:\xampp\mysql\data\
Find the folder with your database name.
Delete that folder manually.
Start MySQL again.
Your database will now be removed.
Since moving the section outside of the container is not an option. Then you can approach this in two ways if you still want to keep the section inside of the parent container.
Override padding with negative margins. This will overlap the parent padding.
.usp-section {
background-color: #c2b280;
padding: 1rem 0;
margin-left: -6rem;
margin-right: -6rem;
}
And here's the output, you'd need to adjust the padding or inner width of the section to align with others.
Use width: 100vw
.usp-section {
background-color: #c2b280;
padding: 1rem 0;
width: 100vw;
position: relative;
left: 50%;
transform: translateX(-50%);
}
This will force it to span the viewport width regardless of container padding.
Have you turned Developer Tools on? If not, go to Settings > About Phone, and tap the build number seven times. That may fix your problem. EDIT: Also, try posting this question on the Android Enthusiasts Stack Exchange.
i have same problem, just remove double quotes "
to fix this. Like:
json = json.Replace(@"""", "");
Currently, you are applying styles to the class .my-wrench
, which is the parent of mat-icon
. To style the icon itself, you need to target the mat-icon
element. Here is an example of how to apply styles to the icon.
.my-wrench mat-icon {
color: blue;
}
It should produce the desired style you want.
from reportlab.lib.pagesizes import A4
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer
from reportlab.lib.styles import getSampleStyleSheet
# สร้างไฟล์ PDF
doc = SimpleDocTemplate("/mnt/data/psychology_summary.pdf", pagesize=A4)
styles = getSampleStyleSheet()
story = []
# หัวเรื่อง
title = Paragraph("สรุปตำราจิตวิทยา (Psychology)", styles['Title'])
story.append(title)
story.append(Spacer(1, 20))
# เนื้อหา
content = """
1. ความหมายและเป้าหมายของจิตวิทยา
- ศึกษาพฤติกรรม ความคิด และกระบวนการทางจิตใจของมนุษย์และสัตว์
- เป้าหมายหลัก: บรรยาย, อธิบาย, ทำนาย, ควบคุมพฤติกรรม
2. สำนักคิดดั้งเดิม
- โครงสร้างนิยม (Structuralism – Wundt)
- หน้าที่นิยม (Functionalism – James)
- พฤติกรรมนิยม (Behaviorism – Watson, Skinner)
- จิตวิเคราะห์ (Psychoanalysis – Freud)
- มนุษยนิยม (Humanistic – Rogers, Maslow)
- พุทธิปัญญานิยม (Cognitive)
3. สาขาของจิตวิทยา
- จิตวิทยาคลินิก: รักษาและบำบัดผู้มีปัญหาสุขภาพจิต
- จิตวิทยาการให้คำปรึกษา: ช่วยผู้เผชิญปัญหาชีวิต
- จิตวิทยาพัฒนาการ: ศึกษาการเปลี่ยนแปลงตลอดช่วงชีวิต (ทฤษฎี Piaget, Erikson)
- จิตวิทยาการศึกษา: การเรียนรู้ แรงจูงใจ การสอน
- จิตวิทยาสังคม: อิทธิพลของสังคมต่อพฤติกรรม
- จิตวิทยาอุตสาหกรรมและองค์กร (I/O): พฤติกรรมในที่ทำงาน
- จิตวิทยาการทดลอง: ความจำ การเรียนรู้ การรับรู้
- จิตวิทยาประสาทและชีวภาพ: สมอง ระบบประสาทกับพฤติกรรม
- จิตวิทยาบุคลิกภาพ: ความแตกต่างระหว่างบุคคล (Big Five, MBTI)
- จิตวิทยาสุขภาพ: จิตใจกับสุขภาพกาย
- จิตวิทยานิติวิทยาศาสตร์: ประยุกต์กับกฎหมายและอาชญากรรม
- จิตวิทยาการกีฬา: แรงจูงใจ สมาธิของนักกีฬา
4. วิธีวิจัยทางจิตวิทยา
- การสังเกต, การสำรวจ, การศึกษาเชิงกรณี, การทดลอง, การวิจัยสัมพันธ์
5. การนำไปใช้จริง
- การศึกษา, สุขภาพ, องค์กร, กฎหมาย, ชีวิตประจำวัน
สรุป: จิตวิทยาคือศาสตร์ที่อธิบายมนุษย์ทั้งสมอง ความคิด อารมณ์ และสังคม เพื่อเข้าใจตนเองและผู้อื่น และสร้างการเปลี่ยนแปลงเชิงบวกในชีวิต
"""
paragraph = Paragraph(content.replace("\n", "<br/>"), styles['Normal'])
story.append(paragraph)
Playwright doesn’t have a direct equivalent to Cypress plugins like cypress-vite
, but you can achieve the same effect by configuring module path aliases in Node (or Vite) and then telling Playwright (via its config or tsconfig.json
/jsconfig.json
)
Is the issue here not the typo Bithday <> Birthday?
Apa Itu Unikbet?
Unikbet adalah sebuah platform game online yang menawarkan berbagai jenis permainan, termasuk poker, slot, dan casino. Situs ini dikenal karena menyediakan layanan deposit melalui bank lokal seperti Bank DIY, Bank Jatim, dan JakOne, sehingga memudahkan para pemain di Indonesia untuk melakukan transaksi. Unikbet juga menawarkan berbagai bonus dan promosi yang menggiurkan, menjadikannya pilihan populer di kalangan penggemar game online.
Kunjungi Situs Resmi: Akses link resmi Unikbet melalui unik.bet atau pencarian Google.
While the answer by Hans Olsson is still technically correct, the Modelica Specification is about to change in that regard, and in fact all major tools seem to support the upcoming specification already, at least if the appropriate options have been set.
Here is the related ticket
https://github.com/modelica/ModelicaSpecification/issues/3489
And
here the upcoming specification
https://specification.modelica.org/master/MLS.pdf (Section 4.4.5 now reads:
"If the Boolean expression is false, the component (including its modifier) is removed from the flattened DAE, and connections to/from the component are removed. Such a component can only be modified, used in connections, and/or used in a modifier of another conditional component with a false condition. There are no restrictions on the component if the Boolean expression is true.")
Your .container
has some padding. Now that padding will get applied to all the children of .container
. Your usp section is a child of it, so it is not possible to make it take full width of screen, unless you remove the parent (.container) padding, or take the usp section out of the .container
entirely. The previous answer does just that in fact.
const res = await fetch("https://example.com/file.mp3", {
headers: {},
method: "GET",
});
const arrayBuffer = await res.arrayBuffer();
fs.writeFileSync("filename.mp3", Buffer.from(arrayBuffer));
tested with node.js v24.6.0
As of 2025 gdb 16 and above is now available for apple silicon so you can use the command:
brew install gdb
In my case this happened because I use
app.py imports utils.py
utils.py import app.py
this is stuck in loop so I used
from flask import current_app
so my problem solved.
In Cursor IDE, you can collapse code regions using the shortcut Command + R
. This allows you to manage your code more efficiently without using Command + K
. If anyone has further tips or additional shortcuts related to this functionality, please share!
This is a Locale independent solution. Note: If today is Monday (or Sunday) will return the current day.
LocalDate today = LocalDate.now();
LocalDate lastMonday = today.minusDays(today.getDayOfWeek().getValue() - 1);
LocalDate lastSunday = today.minusDays(today.getDayOfWeek().getValue() % 7);
When you do dict[1] = new Value(...)
you’re replacing the object, so any variable that referenced the old object won’t see the update.
If you want both to always stay in sync even when you replace the value, you can wrap the object in a reference container:
class Ref<T>
{
public T Value { get; set; }
}
class Value
{
public int Hello { get; set; }
public string Bye { get; set; }
}
class Program
{
static void Main()
{
var dict = new Dictionary<int, Ref<Value>>();
var v = new Ref<Value> { Value = new Value { Hello = 1, Bye = "QWERTY" } };
dict.Add(1, v);
Ref<Value> c = dict[1];
Console.WriteLine(c.Value.Bye); // QWERTY
// Replace the inner value, reference stays the same
dict[1].Value = new Value { Hello = 2, Bye = "ASDF" };
Console.WriteLine(c.Value.Bye); // ASDF
}
}
I faced exactly same issue but then i moved the @ApiBearerAuth() annotation to function level in a controller instead of top level. It worked.
Change your export method
foo1 is the same as foo2
// foo1.ts
async function foo1() {
return {};
}
export default { foo1 };
// bar.test.ts
import foos1 from './foo1.js';
await foos1.foo1();
I've made my own module that also supports image loading (png and jpg)
https://github.com/JJJJJJack/go-template-docx
You can check usage examples and code in the readme
I made my own template library that supports iterating over tables with the golang template {{range}} syntax, as well as having many other features to ease many common templating cases.
https://github.com/JJJJJJack/go-template-docx
there is also a ready to use binary released.
This is the way i make it simple
function factorial(n) {
res = 1
for (var i = 1 ; i <= n ; i++) {
res = res * i
}
return res
}
console.log(factorial(5)); // 120
console.log(factorial(0)); // 1
Your outline issue comes from Tailwind’s preflight CSS overriding Angular Material.
Fix it by disabling preflight in tailwind.config.js
:
corePlugins: {
preflight: false,
}
or reset borders in styles.css
:
*, *::before, *::after {
border-style: none;
}
That will fix the alignment.
Isn't this enough?
public static class ChannelReaderExtensions
{
public static async IAsyncEnumerable<T[]> Batch<T>(this ChannelReader<T> reader,
int maxBatchSize, TimeSpan interval,
[EnumeratorCancellation] CancellationToken cancellationToken = default)
{
var batch = new List<T>();
var intervalTask = default(Task);
while (!cancellationToken.IsCancellationRequested)
{
if (batch.Count == 0 && await reader.WaitToReadAsync(cancellationToken))
{
intervalTask = Task.Delay(interval, cancellationToken);
if (reader.TryRead(out var item))
batch.Add(item);
}
var readTask = reader.WaitToReadAsync(cancellationToken).AsTask();
var completedTask = await Task.WhenAny(readTask, intervalTask);
if (completedTask == intervalTask)
{
if (batch.Count > 0)
{
yield return [.. batch];
batch.Clear();
}
intervalTask = default;
continue;
}
while (reader.TryRead(out var item))
{
batch.Add(item);
if (batch.Count == maxBatchSize)
{
yield return [.. batch];
batch.Clear();
intervalTask = default;
break;
}
}
}
if (batch.Count > 0)
yield return [.. batch];
cancellationToken.ThrowIfCancellationRequested();
}
}
So this isnt the ideal solution but I changed the directory to an absolute path and it worked.
Did u figure it out? If so can u send it
public required bool IsActive { get; set; }
You can use deskew with easy ocr to make perfect but its take some time. I got perfect rotation every time
This fix worked for me in github. There is a folder being generated `mipmap-anydpi-v26`. Removing that file is sorting the issue. Loads of people are facing this issue with the flutter_launch_icons v14+. Hopefully they will solve the issue soon.
Well it could be that your model is too big I have the same problem but if you really want to fix it you should break the world in to smaller parts that way ursina does not have to render all the collider at once
Just use pip:
pip install pandas
and
pip install numpy
Hey,
I have created a package for sip integration in react native app, named react-native-sip-smooth. I built it using Linphone SDK.
It is so simple and easy, have written every single detail in the README.md file.
Just install and use it in your mobile app.
Thank you
https://www.npmjs.com/package/react-native-sip-smooth
https://github.com/Ammar-Abid92/react-native-sip-smooth
```
```python
import matplotlib.pyplot as plt
import numpy as np
# Datos de los intervalos y frecuencias
# Los intervalos son los límites de las clases: [30, 45), [45, 60), [60, 65), [65, 70)
limites_intervalos = [30, 45, 60, 65, 70]
frecuencias_absolutas = [1242, 15276, 24403, 21782]
# Calcular las longitudes de cada intervalo
longitudes_intervalos = [limites_intervalos[i+1] - limites_intervalos[i] for i in range(len(frecuencias_absolutas))]
# Calcular las densidades de frecuencia
# Densidad = Frecuencia Absoluta / Longitud del Intervalo
densidades_frecuencia = [frecuencias_absolutas[i] / longitudes_intervalos[i] for i in range(len(frecuencias_absolutas))]
# Crear la figura y los ejes para el gráfico
plt.figure(figsize=(10, 6)) # Tamaño de la figura
# Dibujar las barras del histograma
# Para que las barras queden centradas en su "posición" en el eje X,
# usamos el punto medio de cada intervalo para la posición x.
posiciones_x = np.array(limites_intervalos[:-1]) + np.array(longitudes_intervalos) / 2
plt.bar(posiciones_x, densidades_frecuencia, width=longitudes_intervalos, color='skyblue', alpha=0.7, edgecolor='black')
# Configurar las etiquetas de los ejes y el título del gráfico
plt.xlabel('Peso de los huevos (g)')
plt.ylabel('Densidad de Frecuencia')
plt.title('Histograma de la Densidad de Frecuencia del Peso de los Huevos')
# Establecer las marcas en el eje X para que coincidan con los límites de los intervalos
plt.xticks(limites_intervalos)
# Añadir una cuadrícula para facilitar la lectura
plt.grid(axis='y', linestyle='--', alpha=0.7)
# Asegurarse de que el diseño sea ajustado
plt.tight_layout()
# Mostrar el gráfico
plt.show()
```
I'll post my own answer of what works for me each time I need to change my mac
brew update
brew install nvm
mkdir ~/.nvm
echo "export NVM_DIR=~/.nvm\nsource \$(brew --prefix nvm)/nvm.sh" >> .zshrc
source ~/.zshrc
this way I don't need to re-run the source each time I close/open my IDE / terminal, a no brainer
solution from: link
change uid address in 0xgf ???
I've gotten this fixed! My steam app ID and depot IDs were incorrect! Now it works.
PS C:> pip install mediapipe==0.8.8
ERROR: Could not find a version that satisfies the requirement mediapipe==0.8.8 (from versions: 0.10.13, 0.10.14, 0.10.18, 0.10.20, 0.10.21)
ERROR: No matching distribution found for mediapipe==0.8.8
***Auto Reply to "https://econ.rec.net/api/avatar/v4/items"***
*Header:*
HTTP/1.1 200 OK
**Reply with file attached to this message.**
**[LAST UPDATED 8/1/2025, CAN BE EDITED.]**
Doesn't work for me as well.
I ended up reading my color value directly in widget's build()
method:
...
iconTheme: IconThemeData(
color: Colors.white,
),
...
Color? _foregroundColor(BuildContext context) {
final theme = Theme.of(context);
return theme.iconTheme.color, // white color
}
I'm new here. I spend every moment trying to save the lives of my family, literally, online, after my identity was stolen and all of my work.. I simply called my work "fixing the internet" but obviously it was more to attract the type of terrorism I experience daily. Attached is an example. How do I stop this when the terrorists are executives of the presidential cabinet of the United States? Literally, the main terrorist played, over Bluetooth loudspeaker, the sounds of my daughter fighting for her life yesterday, while being gang raped.. for me to endure as well..enter image description hereThe bushes that are 100 ft from my front door. SAME THING EVERY NIGHT.
This method has a couple of drawbacks: first, the computer must always be on to run ffmpeg, and second, it consumes a large amount of internet bandwidth.
I've developed an alternative solution using a WordPress plugin that displays a screenshot from Hikvision, Dahua, or Uniview cameras on the website.
In this method, you need a static IP address on your internet line. When you add the camera using the static IP and web port in the plugin, it captures images at the intervals you specify and displays them on the website.
Leaving here another alternative, I used https://eventlane.pro in my project. worked quite nice
Sorry to necro this but I just had the auth problem and it was because I changed the server name from the IP to DNS I just added. I just needed to use [email protected] in the username field.
The reason probably was some dependency management difference between tycho and eclipse.
I copied all the contents of Require-Bundle
from the MANIFEST.MF
of the tested bundle to the MANIFEST.MF
of the test bundle, and the error gone away.
In my case I got this error since I was passing data-bs-target
attribute and left the #
from the target string.
So basically any incorrect reference to the ID of the modal will result in this error.
Adding /?somethingrandom after the repo URL and navigating to it, for each single file you upload before you upload (and changing the somethingrandom between each file, perhaps not necessary) is the only thing that allowed me to upload files on the GitHub website today.
I will report the issue.
Thanks for the info. Just has this problem, but my site changed from http:// to https:// and I had to update the header and the links, fixed the problem.
I tried to do this but in vain,
I have update the Jenkins using upgrade option It works fine after restart.
If you're sharing AMIs across accounts, and you're using a customer managed key, you need more than just the correct key policy. You also need to create a KMS grant for the accessing account. I lost several hours of my life because I missed this in the docs (Example 2, part 2):
Ok its been 2 years but the easiest way to solve this is go to the menu at top and click on Build and then Rebuild solution. This normally happens once you get an error in your program. Once you’ve corrected the error then when you encounter the issue click on rebuild solution rather than build solution.
Handle the promise from persist() and log the then - and catch handlers.
You don’t really need that setInterval
trick. If you just want the video to play normally with pause support, you can keep the default YouTube controls instead of hiding them. Just remove ?controls=0
from the src
and also remove the opacity:0;
style, and remove the custom play button:
<iframe width="560" height="315"
src="https://www.youtube.com/embed/Gu2PVTTbGuY"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
style="position:absolute; top:0; left:0;"
id="player">
</iframe>
That way YouTube gives you play, pause, and volume controls out of the box on all browsers and devices.
If you do want a custom play button overlay, you can still do it with a simple toggle:
<div style="position: relative; width:560px; height:315px;">
<img src="http://s3.amazonaws.com/content.newsok.com/newsok/images/mobile/play_button.png"
style="position:absolute;top:0;left:0;cursor:pointer;" id="cover">
<iframe width="560" height="315"
src="https://www.youtube.com/embed/Gu2PVTTbGuY?controls=0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
style="position:absolute; top:0; left:0;" id="player">
</iframe>
</div>
<script>
window.addEventListener('DOMContentLoaded', () => {
const cover = document.getElementById('cover');
const player = document.getElementById('player');
// Show cover initially
cover.style.zIndex = '2';
player.style.opacity = '0';
cover.addEventListener('click', () => {
cover.style.display = 'none'; // hide overlay
player.style.opacity = '1'; // show player
// user will then click the YouTube play/pause buttons
});
});
</script>
This way the video only appears once the user clicks your custom image. From that point, YouTube’s own play/pause controls take over.
👉 If you want the video to actually start playing when your custom button is clicked, without the user pressing the YouTube play button, you’ll need to use the YouTube Iframe API. That’s the only way to programmatically call player.playVideo()
or player.pauseVideo()
with your own custom buttons.
Ensure that only the Google account linked to your Firebase project remains signed in on the browser. Remove any additional accounts. If you need to access other Google accounts, create a separate browser profile for them. This approach worked well for me.
The only way this could possibly be useful is if you want to override a method from a base class and simultaneously declare a "new" method to replace the method. You can fake that by using a dummy parent class for just overriding the method.
hi my name is subhash malvi I am form Chhindwara Madhya Pradesh in my town pipariya rajguru
I am study from bachelor of pharmacy Sagar Madhya Pradesh they have my college name and very pharmacy institute of research in Sagar
Mumbai maaa mach ficsh ha football ki babsta karo apka bhai s
to the principal bright career high school Amarwar subject an application
If you want to remove some packages, you can use the flags as well.
LOCAL_OVERRIDES_PACKAGES
I faced the same issues with integrating multiple packages and handling minting manually. To simplify the workflow, I built a smart contract and then exposed it through a SDK and a widget that handle all interactions with SPL tokens automatically. Everything is open source under solmint.net and https://mintme.dev — you can mint, revoke authorities, and manage tokens without dealing with low-level integration errors.
Check this video I did https://www.youtube.com/watch?v=9Fyg-SO5ULo&t=247s
npm i mintme-widget
<MintmeWidget
endpoint="https://mainnet.helius-rpc.com/?api-key=your-key"
cluster="mainnet-beta"
pinataConfig={{
apiKey: "your-pinata-jwt-token",
gateway: "your-gateway.com"
}}
partnerWallet="your-wallet-here"
partnerAmount={0}
defaultTheme="light"
options={{
showCredit: true
}}
className="my-custom-styles"
/>
Or you can check mitnme-sdk (https://github.com/mintme-dev/mintme-sdk)
I had a different issue.
I had an enum SomeName that was declared in a global type files, and an object inside a different file with a property with the same name.
Changing the enum's name fixed that issue for me.
That work's for me in react native
Change that:
.email(i18n.t('login.emailSpellError'))
For that:
.email(() => i18n.t('login.emailSpellError'))
good effort keep it up good answer my web
In Vs Code please check if there is a missing symbol or unclosed tag.
It seems that you are a hobbyist wanted to make something on the web and you find wordpress as a platform since in the wordpress has a template layout design. What you wanted is kinda complex for you to make at the moment but if you wanted, you can learn it. For the design learn HTML and CSS, while for the filter use Javascript. Even though I wanted to make the code for you, it is best that you try to make it with AI so you are able to tweak the design base on what you wanted.
from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.dml.color import RGBColor
# Create a new presentation
prs = Presentation()
# Define slide layouts
title_slide_layout = prs.slide_layouts[0]
bullet_slide_layout = prs.slide_layouts[1]
closing_slide_layout = prs.slide_layouts[5]
# --- Slide 1: Title ---
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]
title.text = "Unstoppable Spirits"
subtitle.text = "“Ability Beyond Disability”\n\nMade by Sanvi Bansal"
# Data for people
people_data = {
"Madhavi Latha": \[
"Struggled with polio since childhood",
"Faced discrimination and challenges",
"Excelled in swimming and sports",
"Founded Paralympic Swimming Association of Tamil Nadu",
"Inspires thousands of differently-abled athletes"
\],
"Jeeja Ghosh": \[
"Born with cerebral palsy",
"Faced rejection and humiliation in public life",
"Became a strong disability rights activist",
"Worked with NGOs for inclusion and equality",
"A true role model for empowerment"
\],
"Dhanya Ravi": \[
"Born with Osteogenesis Imperfecta (brittle bones disease)",
"Motivational speaker and social activist",
"Awarded 'Rare Disease Champion'",
"Advocates for awareness on rare diseases",
"Inspires people with positivity and courage"
\],
"Sabari Venkat": \[
"Wheelchair user with strong determination",
"Actively involved in social work",
"Encourages youth to overcome obstacles",
"Believes 'Disability is not inability'",
"Motivates many through his journey"
\],
"Umesh Salgar": \[
"Lost both arms in an accident",
"Learned to live independently with resilience",
"Can write and perform tasks without arms",
"Runs his own business successfully",
"Symbol of courage and hard work"
\]
}
# Create 2 slides per person
for name, bullets in people_data.items():
\# Slide 1: Intro
slide = prs.slides.add_slide(bullet_slide_layout)
title_shape = slide.shapes.title
body_shape = slide.placeholders\[1\]
title_shape.text = name
tf = body_shape.text_frame
for point in bullets\[:3\]:
p = tf.add_paragraph()
p.text = point
\# Slide 2: Inspiration
slide = prs.slides.add_slide(bullet_slide_layout)
title_shape = slide.shapes.title
body_shape = slide.placeholders\[1\]
title_shape.text = f"{name} – Inspiration"
tf = body_shape.text_frame
for point in bullets\[3:\]:
p = tf.add_paragraph()
p.text = point
# Closing slide
slide = prs.slides.add_slide(closing_slide_layout)
title = slide.shapes.title
title.text = "Ability Beyond Disability"
txBox = slide.shapes.add_textbox(Inches(2), Inches(3), Inches(6), Inches(2))
tf = txBox.text_frame
p = tf.add_paragraph()
p.text = "Thank you\n\nMade by Sanvi Bansal"
p.font.size = Pt(20)
p.font.color.rgb = RGBColor(0, 102, 204)
# Save PPTX file
prs.save("Unstoppable_Spirits_Sanvi_Bansal.pptx")
You can use the IF function, implementing logic based on the desired result—such as colors, names, or styles.
Note: You can use application variables, page variables, or even page parameters to aid in the flow you want to build.
#7##71###7###7###7##7#7#1##7###7###7###7#71###7###7###7###7#71#17171###7###7###7##77#17#7#11,777777777777777777777777777###7###7####7#7###7####7###7###7#####z###z###z###z###z###z###z###z###z#zz77777.77777###7###7##.###7####7###7##777777777#7777777#7#7777#7#7#,#####7#,##7#7####################71#,
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by Cookie-Editor
labs.google FALSE / FALSE 1758636147 EMAIL %22italobenavidez%40gmail.com%22
#HttpOnly_labs.google FALSE / TRUE 1756130577 __Host-next-auth.csrf-token f8ccb500ba26f89d3d7ecb7192960c2a690ac75297f0de4eba6ffc86ed6601b9%7C349c7cc129878a86f089f2a770c7c927adb581ef9a658ee10e78f3f6fa604c2d
#HttpOnly_labs.google FALSE / TRUE 1756130577 __Secure-next-auth.callback-url https%3A%2F%2Flabs.google%2Ffx%2Ftools%2Fflow
#HttpOnly_labs.google FALSE / TRUE 1758636150 __Secure-next-auth.session-token eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..CZUEZ35bpTwrMTmR.yaSM_vn0PzOU7F46FM5dL1Oq5GrQqoNWiGvFqlhu0exiOaar_CyNUhJKgyqZJ0J79dFI5FVWNexWg6TXuGUhHJsCRKcqkeUHuTQDRyrBgJlsl425Auy7QnZFz-zbBDEG6vKnmTBtvQVDE8Mwm1lgvmyHBe5g7R4OHnblnoYEHiPRoHO8NPyyKCP1Qck3X7GlmUqko2_ZsY9ciUynZhnT1iqBTNpuwMcKg2zSLxD5k0dhw4e_XO_oSdke-JZr4-ABnvoGO3eykHwnh6a-cx015FIhnQEDjDzcA_U1g0neAX1k2wzMfNcCzF5NIr_fpQqMlIxfqiS6e5yoP3R09IvLtAa0aPzGfvXuvLms_ZnlYtbDoR565HtizwROE4SfdMhIfiYO3X1FD5n5COA_yKiklmeoyUp7zaZ7JAWwC5orIL_BNqSAm7JPdnBW9q6OkMeGdn4WqQhteOcIr0rTzF9liDGBYJq0EphNTulImAG4k0STDeSH5qFP6VTUyTMUu14axNweOPBqZSRozgeVldhZUmBN5Fr9wBAzz2u8cTyIijAGG8Ju89bXFzKVi8fgQYc3t74YiktrK6Bi0hmTHQHhHY7TIdkrCIF_nR8Jz81wtj8KrbzjvWBWWL19XRbjyUEiIoimFh_mIMvtT8v1HPttw4BDlFX7F563vAbUCvtfqhdr1IBkvrUpzv4vFuGrO8t57sgwz_q1SOGRs_drpahQHAmDHVxVGoOG3RafUKqI-fjgdjtO7ZyvL9ZsCjRyyEpDsTeeUSsN9MuWYAKi_p2oxEKcrlu4avIfU6u7d02xmcH4JOBbGZw7arSEuCZiHS3z1wFMD9IFBdLk-Nz_gGJshaOWVXb-XvgyNHg7FMoCKoFNvxooCCG0j6J5OOpDzMpySDzfKWL7PnlqPvsU5q_25zaQj1jlTYmMq25ajaS16Z7QAsob2iv9q7EUQ599w6lz-xKveyrCIwQLmSG-wjP6efzOFPV3LsThWQ3tyw.Obj4FuwzXUNikCvdOM79eA
.labs.google TRUE / FALSE 1790604149 _ga GA1.1.1434013514.1756043894
.labs.google TRUE / FALSE 1790603897 _ga_5K7X2T4V16 GS2.1.s1756043894$o1$g0$t1756043897$j57$l0$h0
.labs.google TRUE / FALSE 1790604149 _ga_X2GNH8R5NS GS2.1.s1756043900$o1$g0$t1756044149$j60$l0$h5822278
#HttpOnly_labs.google FALSE / FALSE 1756130577 email italobenavidez%40gmail.com
I got rid of it, this post helped me https://github.com/flutter/flutter/issues/159626 I remove Msys2 and move git path to the top of environment variable.
I got rid of it, this post helped me https://github.com/flutter/flutter/issues/159626 I remove Msys2 and move git path to the top of environment variable.
Koin’s current plugin was built for Ktor 2.x, but you’re using Ktor 3.x. In Ktor 3 the ApplicationEnvironment.getMonitor()
method was removed, so Koin crashes.
Either downgrade to Ktor 2.3.x and keep using Koin 3.x,
Or upgrade to Koin 4.1+ (with the new koin-ktor3
module) to work with Ktor 3.
Yes, the Send() method blocks until the delegate completes. It can be used to run code on the main thread, blocking the current thread (unless the two are the same). An example I took inspiration from is Unity's reference implementation.
The role of OperationStarted() and OperationCompleted() is supporting async void
methods according to this article. These methods don't return a Task
object so there's no way for the caller to keep track of the task's state or any exceptions that might occur. The OperationStarted() method gets called when the method begins executing and the OperationCompleted() method is called when the method is finished. Exceptions are posted to the context as well.
Running this only installs the dependencies. It doesn’t generate the tailwind.config.js.
npm install -D tailwindcss postcss autoprefixer
You need to run:
npx tailwindcss init -p
This will create both tailwind.config.js and postcss.config.js.
Try updating some content in the document and then send a fresh request, or restart the server.
It worked for me.
This answer https://stackoverflow.com/a/77985652/9499392 helped me in 2025 . Here is a little detail you can follow.
The issue occurred because the AWS CLI gives priority to environment variables (AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, etc.) over the ~/.aws/credentials
and ~/.aws/config
files.
In my case, I had set AWS credentials in the Windows environment variables earlier and completely forgot about it. So even after updating ~/.aws/credentials
with the new access key and secret key, the AWS CLI and boto3 kept picking up the old values from the environment.
NOTE : I already have aws configured
First, I checked if any AWS environment variables were set:
Get-ChildItem Env:AWS*
This showed old credentials still lingering.
I removed them from the current PowerShell session:
Remove-Item Env:AWS_ACCESS_KEY_ID
Remove-Item Env:AWS_SECRET_ACCESS_KEY
Remove-Item Env:AWS_SESSION_TOKEN
Remove-Item Env:AWS_DEFAULT_REGION
This updates ~/.aws/credentials
and ~/.aws/config
.
Now, verify:
aws sts get-caller-identity
When a script is run in Linux terminal following is true
plt.plot() followed by plt.pause(10) will show plot for 10 seconds (plt.show() not necessary)
plt.plot() NOT followed by plt.pause(10) will show [nothing / empty window for a fraction of second and closes] . plot shown only if plt.show() is used
time.sleep(5) , input("any key") do not change display behaviour
plt.show() is like plt.pause(infinite time)
plt.show(block=False) is showing nothing unless followed by plt.pause(4). It is useless
Hi all,
doubt this would work for all kind of packages but only for the ones implemented in the MathJAX
environment of Jupyter's Markdown.
Any other expriences?