Use REMAP_DIRECTORY: "/opt/oracle/oradata/oradata/DB_SOURCE/" is obviously not a data file...
Okay so, I store the tf state in the cloud on a Storage Account blob.
When I played around with the paths, at some point terraform left a resource in the state that contained this '../../' path (I used it at some point, while trying to separate this part to a module).
When I updated the state file (effectively using a new state) on the storage container, things cleared up after an init -reconfigure
. both paths prefixed with ${path.root}
work fine.
In codenameone_settings.properties
You can set a higher billing dependency version. Eg
codename1.arg.android.billingclient.version=6.0.1
What about when extending BaseTool with pydantic? I'm trying to do something like this, using this state:
from typing import Annotated
class AgentState(TypedDict):
messages: Annotated[list, add_messages]
names_in_context: dict[str, list]
And my tool looks like this.
from typing import Annotated
from langchain_core.tools import BaseTool
from langchain_core.tools.base import ArgsSchema
from pydantic import BaseModel, Field
class GetNamesToolInput(BaseModel):
name: str = Field(description="Name about which to obtain information.")
names_in_context: Annotated[dict, InjectedState("names_in_context")]
class GetNamesTool(BaseTool):
name: str = "GetNamesTool"
description: str = "Use this when user asks about a name ..."
args_schema: ArgsSchema = GetNamesToolInput
def _run(
self,
user_provided_name: str,
names_in_context: Annotated[dict, InjectedState("names_in_context")],
) -> str:
return "Something"
W
I saw here that we can inject only part of the state using InjectedState("names_in_context") annotation but it is not working.
https://langchain-ai.github.io/langgraph/how-tos/pass-run-time-values-to-tools/
To vectorize the loop nest I'd recommend using collapse()
clause in `omp simd` directive, it may improve perf in some cases
To draw on a TPaintBox, you need to use its OnPaint event, because TPaintBox has no internal buffer, and drawing on its canvas is "live", i.e. it will disappear on the next redraw (which may happen on the next frame, so the image will live only a fraction of a second).
I figured this could be solved using Delegte Handlers
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
if (request.RequestUri != null && request.RequestUri.ToString().Contains("the path to override"))
{
//do your thing
}
// then forward the request
return await base.SendAsync(request, cancellationToken);
}
There is a tricky way:client sends a Pong packet, and server also replies with a Pong packet...
Because I really don't want to send a Ping packet from the server to the client or use the TextMessage to customize the PING PONG...
is htis ever solved ?
trying to connect to the websocket using the token so I can get messages from the user servers
is it doable without the need to get the user original token ?
I think the line On Error GoTo 0 doesn't help too much. This just can avoid the error checking on the next lines. Maybe after the shOut.Activate is placed the 0 label. At the end should be added the error trapping routine:
If (Err.Number <> 0) Then
Err.Clear()
End If
To get product buy/sell data sorted by date, you can use various trading platforms or APIs that provide historical transaction records. For businesses looking to connect with buyers and sellers or promote products using verified contact information, visit https://www.latestdatabase.cn/ — we offer updated and accurate data that can enhance your marketing and sales strategies.
After looking at your live demo, this seems like this is a closure related issue in React.
In the original code, handleLoadMore
captures the value of after
at the time of its creation. If this changes later, then handleLoadMore
will still refer to the old value since it was defined in the initial scope of this render.
This means that every time LoadMore
component is using the handleLoadMore
, it's still using the initial version of it.
Personally, I would use a ref to access the current value of after
, while also keeping the handleLoadMore
more stable.
As for your side question, this may help. After a quick google search I was able to find that apparently requestIdleCallback
or requestAnimationFrame
may be of assistance if you're using non-urgent UI updates.
Let me know if this is helpful, or if I may be able to provide some more assistance for you!
@Homer512 was right. getMatAtFrame()
is actually slower than processing. Thank you.
I tried all of the above but nothing worked.
On the other hand, below you can find a quick solution that worked for me:
notebook_path = IPython.get_ipython().user_ns.get("__vsc_ipynb_file__")
I suspect this only works if you are using VSC as your ide.
PlayFab (by Microsoft)
Great for multiplayer, leaderboards, user accounts, cloud scripting, and real-time analytics. Unity SDK available.
Firebase (by Google)
Ideal for authentication, real-time database, cloud functions, and push notifications. Lightweight, scalable, and free tier available.
GameSparks (Now part of AWS)
Advanced backend with matchmaking, leaderboards, and cloud code. Better for mid to large-scale games.
Photon Engine
Perfect for real-time multiplayer games (turn-based or action). Unity-ready with fast integration.
Backendless / Nakama / Supabase (Open-source options)
Good if you want more control and flexibility. Great for custom game logic, matchmaking, and chat.
import 'dart:async'; import 'dart:math';
import 'package:flutter/material.dart';
void main() { runApp(MathGameApp()); }
class MathGameApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Math Game', theme: ThemeData(primarySwatch: Colors.blue), home: MathGamePage(), ); } }
class MathGamePage extends StatefulWidget { @override _MathGamePageState createState() => _MathGamePageState(); }
class _MathGamePageState extends State<MathGamePage> { final Random _random = Random(); int _num1 = 0; int _num2 = 0; String _operator = '+'; int _correctAnswer = 0; List<int> _options = []; int _score = 0; int _level = 1; int _timeLeft = 10; Timer? _timer;
@override void initState() { super.initState(); _generateQuestion(); }
void _startTimer() { _timer?.cancel(); _timeLeft = 10; _timer = Timer.periodic(Duration(seconds: 1), (timer) { setState(() { _timeLeft--; if (_timeLeft <= 0) { timer.cancel(); _gameOver(); } }); }); }
void _generateQuestion() { _num1 = _random.nextInt(10 * _level) + 1; _num2 = _random.nextInt(10 * _level) + 1; List<String> operators = ['+', '-', '×', '÷']; _operator = operators[_random.nextInt(4)];
switch (_operator) {
case '+':
\_correctAnswer = \_num1 + \_num2;
break;
case '-':
\_correctAnswer = \_num1 - \_num2;
break;
case '×':
\_correctAnswer = \_num1 \* \_num2;
break;
case '÷':
\_correctAnswer = (\_num1 \* \_num2) \~/ \_num2;
\_num1 = \_correctAnswer \* \_num2;
break;
}
_options = [_correctAnswer];
while (_options.length < 4) {
int option = _correctAnswer + _random.nextInt(20) - 10;
if (!_options.contains(option)) {
\_options.add(option);
}
}
_options.shuffle();
_startTimer();
}
void _checkAnswer(int selected) { if (selected == _correctAnswer) { _score++; if (_score % 5 == 0) _level++; _generateQuestion(); } else { _gameOver(); } }
void _gameOver() { timer?.cancel(); showDialog( context: context, barrierDismissible: false, builder: () => AlertDialog( title: Text('Game Over'), content: Text('Score: $_score\nLevel: $_level'), actions: [ TextButton( child: Text('Restart'), onPressed: () { Navigator.of(context).pop(); setState(() { _score = 0; _level = 1; _generateQuestion(); }); }, ) ], ), ); }
@override void dispose() { _timer?.cancel(); super.dispose(); }
@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Math Game')), body: Padding( padding: const EdgeInsets.all(16.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text('Level: $_level', style: TextStyle(fontSize: 22)), Text('Score: $_score', style: TextStyle(fontSize: 22)), Text('Time left: $_timeLeft', style: TextStyle(fontSize: 22, color: Colors.red)), SizedBox(height: 40), Text('$_num1 $_operator $_num2 = ?', style: TextStyle(fontSize: 32)), SizedBox(height: 20), ..._options.map((option) => Padding( padding: const EdgeInsets.symmetric(vertical: 8.0), child: ElevatedButton( onPressed: () => _checkAnswer(option), child: Text('$option', styl
e: TextStyle(fontSize: 24)), ), )), ], ), ), ); } }
You can edit an .arsc file with Arsc Editor, An open source editor for resources.arsc with GUI and for example manipulate translations.
how to use this in automation script of powershell?
Finally, I fix it by delete all things in C:\Users\$MYACCOUNT\AppData\Local\Google and C:\Users\$MYACCOUNT\AppData\Roaming\Google.
Something corrupt in the file.
The =
symbol represents the assignment operator. It is used to assign a value to a variable.
so your statement "
int i = 0;
"
the value 0 is assigned to i. That's how i
get initialised.
For Laravel 5.4:
return $this->buildFailedValidationResponse($request, ['Error message']);
Maybe a bit late, but you could use Concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Using Qt 6.9 seems to work.
from PySide6.QtGui import QGuiApplication, Qt
QGuiApplication.styleHints().setColorScheme(Qt.ColorScheme.Dark) # Or ColorScheme.Light.
This will give you the current color scheme for the system.
QGuiApplication.styleHints().colorScheme()
Public Sub koneksi() Try str = "Server=localhost;uid=root;pwd=1705;database=penjualan" conn = New MySqlConnection(str) If conn.State = ConnectionState.Closed Then conn.Open() MsgBox("Koneksi berhasil") End If Catch ex As Exception 'MsgBox("Koneksi gagal" + ex.Message) End Try End Sub
Public Sub koneksi() Try str = "Server=localhost;uid=root;pwd=1705;database=penjualan" conn = New MySqlConnection(str) If conn.State = ConnectionState.Closed Then conn.Open() MsgBox("Koneksi berhasil") End If Catch ex As Exception 'MsgBox("Koneksi gagal" + ex.Message) End Try End Sub
You can also change the cell height ->
export const StyledTable = styled(Table)`
.ant-table-row {
height: 50px;
}
`
Additionally, you might be missing the import in your build.gradle.kts (check the latest version):
dependencies {
// Compose Navigation for Wear OS - Add explicit dependency
implementation("androidx.navigation:navigation-compose:2.7.5")
}
There is a more general problem related to Mockery and in this case it actually works better with spies instead of mocks: Mockery::spy('overload:App\FooClass');
, so the assertions need to change: https://docs.mockery.io/en/latest/reference/spies.html
Imports MySql.Data.MySqlClient
Public Class connection
Public Shared cn As New MySqlConnection(ConfigurationManager.ConnectionStrings("cnDatabase").ConnectionString)
End Class
I have implemented PDF.js and it is working properly on localhost, but when I test it on SCORM, the PDF file does not open. The URL is not forming correctly — it's generating a short URL scorm console.log error screenshot
Somehow, updating PyArrow did not specifically help for me.
On the other hand, it seems to work just fine! :-?
It might be that that some functionality stays just constant and this warning can be ignored so far.
Although, missing certain submodules can lead to performance cuts, right!?!
T a watch and Trying to get the badge and Trying to get the badge and Trying
You're getting 404
because the base URL path /airflow
is incorrect. Airflow's webserver serves from root (/
), not /airflow
.
Try curling:
curl http://localhost:8080/
Also, set:
AIRFLOW__WEBSERVER__BASE_URL=http://localhost:8080
Remove /airflow
from any URLs or configs unless you're reverse proxying.
There are many manual and automated solutions that might help you. One of them could be to use IP-based firewall rules instead of domain-based. Since Windows Firewall blocks based on IP addresses, not domains, it’s more robust to resolve the domain manually (using nslookup
). It will also block the resolved IPs via firewall. You can also periodically (manually or programmatically) update the list (since IPs change).
Most likely, you still have a volume
from an old postgres container. Check your existing Docker volumes with docker volume ls
and remove the unnecessary one using docker volume rm
. The password will not be reset if the container has already been initialized. On a new container, the POSTGRES_PASSWORD_FILE
env var works perfectly.
I don't know if the answer to this question is still relevant, but by default on iOS the "Back" button is a left-to-right screen swap
Session is totally fine. It’s easy to use, no database setup required, and the data will stick around while the user is taking the quiz. Once they’re done, you can calculate the result and display it, and that’s it.
If you want to store results or review them later:
Database is the way to go. You’ll be able to save each user’s answers along with their name, timestamp, score, whatever you want. That opens up possibilities like:
Viewing past quiz results
Tracking how many people took the quiz
Generating stats, reports, etc.
TL;DR:
For one-time use, session is okay.
If you want to store data for future use, go with the database.
Apparently this .pslrc
commands are not re-executed on connection reset. I think the only way to achieve what I want is to set these parameters server-side.
Did you check the documentation regarding GetAttributeAsync
here ? It clearly says the acceptable arguments could be either string or boolean.
Check your Node Version. I had a similar error which was caused by using an older version of Node (v16) which didn't support crypto.getRandomValues
. Switching to a newer version (Node v18+) via NVM fixed it for me.
Navigating to the scripts folder of the target virtual environment
typing .\activate
.
If you're still seeing the translation bar even after adding , make sure the lang attribute in your tag accurately reflects the page language. Chrome may ignore the meta tag if the content appears to mismatch the declared language. Also note that some browser extensions or user settings may override this behavior.
Also Check this: best translation websites
If you are using Oh-my-zsh's git plugin, here are the short-cuts.
https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/README.md
The usual answer is of course: it depends.
So, Yes it will add some overhead. Usually, that effect should be negligible. BUT if your application is throwing a lot of exceptions then this will definitely have a bigger impact.
In general, throwing exceptions is slow and should only be done if it really is an exception. So if your logic is not "exception driven" (don't laugh, I've seen that several times in projects) you should not see a big impact.
It is not uncommon to see this especially if a process may have 100 files, sockets, pipes, or devices open, you'll see 100 lines with the same PID. You can understand what is happening if you read last two columns together, for instance you are receiving (or listening as your log says) UDP packets at localhost:52077
. 52077
is the number port dedicated for receiving TCP/UDP packets.
I get the same problem (Access denied). You can restart your laptop before run the server, the the problem will solved.
Utilising fireEvent
I got it to work with:
const mockFile = new File(['content'], 'filename.txt', { type: 'text/plain' });
const input = screen.getByTestId('file-input') // reference your input HTMLElement here
fireEvent.change(input, { target: { files: [mockFile] } })
I have the same issue ! :') Did you find an answer to your problem ?
I ended up writing a .desktop
file into ~/.local/share/applications
the first time the app starts. The icon gets picked up after a couple of seconds at runtime.
Use Imgut API : https://api.imgur.com/3/image , I think it is also on rapidAPI. Free too , so ....
If you need to prettify it once or twice you can do it mannualy with any of the bunch online-tools (e.g. this online json-formatter)
As of today, on MacOS, the combination of key that works is : ESC following by Return
This allows to recall previously ran block of code , navigate into the line and inject change and new lines at will
valueFormatter: (params) => {
if (!params.value) return "Placeholder";
return `Rs. ${params.value.toFixed(2)}`;
},
Displays value "Placeholder" if there are no values passed thorugh params.
how did you fixed this?
i'm facing the same issue.
Probably color is not changing owing to overriding due to inline styling or !important keyword used for slash element somewhere else. !important keyword and inline styling have highest and second highest specificity respectively.
Try using !important keyword to force color change -
color: red !important;
updated solution
for the intellij 2025.1
In Settings | Advanced Settings, have "Use modal commit interface" enabled
I recently encountered the same issue. I'm using MicroK8s.
In my case, enabling hostpath-storage
resolved it.
microk8s.enable hostpath-storage
@mangokitty!
At the top of your test component, add this line:
import "@testing-library/jest-dom";
If you want it a bit more formal or friendly, just let me know!
The requests
library does not get the IP address directly. Instead, it uses urllib3
under the hood, which in turn uses other Python libraries http.client
and socket
libraries to obtain the IPs and establish the connection. If the domain has multiple IPs, Python typically tries the first one returned.
Can then this be absorbed same as with add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
you can use this package https://pub.dev/packages/pagination_core , that can help you for pagination
VPN or proxy settings may be the cause. So turn off your VPN and try again.
Resolved:
Missed [] in main syntax and it solved it.
Maybe this discussion can give you a clearer understanding of what the function does.
Did you read this? (especially the last section)
https://pandas.pydata.org/docs/reference/api/pandas.errors.DtypeWarning.html
https://github.com/microsoft/vscode-python/releases
You can look here for previous versions of vsix files.
You are in Overtype Mode.
Click on OVR button on the status bar of VS Code to enable insert mode.
This will work despite keyboard layout issues. (In my keyboard, insert key didn't work. But Print Screen key worked. Shift + 0 key combination also worked.)
It depends heavily what the API calls are doing in the backend. Node.js despite handling requests asynchronously is single threaded. If your logic includes synchronous operations, the overall performance is bound by the execution time of these operations. Start by measuring how the system performs with 1 API call/s, 5 API calls/s and so on. If 1-5 calls/s are very fast and with more calls becoming slower and slower, you definitely have a bottleneck in the backend. Next thing to do, is to build in some logging to measure where your system is spending its time.
Started GET "/auth/facebook/callback" for 127.0.0.1 at Thu Nov 24 10:24:01 -0600 2011
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"facebook"}
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = '1234' AND "users"."provider" = 'facebook' LIMIT 1
(0.0ms) SAVEPOINT active_record_1
(0.1ms) SELECT 1 FROM "users" WHERE ("users"."uid" = '1234' AND "users"."provider" = 'facebook') LIMIT 1
SQL (1.3ms) INSERT INTO "users" ("created_at", "name", "nickname", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Nov 2011 16:24:01 UTC +00:00], ["name", "Foo Man"], ["nickname", "fooman"], ["provider", "facebook"], ["uid", "1234"], ["updated_at", Thu, 24 Nov 2011 16:24:01 UTC +00:00]]
(0.1ms) RELEASE SAVEPOINT active_record_1
(0.1ms) SELECT COUNT(*) FROM "log_books" WHERE "log_books"."user_id" = 17
Redirected to http://rpglogger.com/log_books/new
Completed 302 Found in 35ms
You need to declare multiple types that you want to be acceptable, for example
type TIn1 = {
xa: number;
xb: number;
// ...
}
type TIn2 = {
// ...
}
type TIn3 = {
xa?: string;
xb?: string;
}
And then combine them in a union: TProps = TIn1 | TIn2 | TIn3
Update 2025: It seems that Linkedin now removes every single URL Parameter, no matter how and if you encode it. I can't get any of the workarounds to function anymore so we will have to reside to URLs without parameters.
I'm definitely late, but it seems to me that the only problem with your URL is that you used &
instead of ?
at the beginning of your query string.
Try this one instead: https://docs.google.com/forms/d/e/1FAIpQLSesGYSZgzQfqLiZIfi2JlQFQ5ttatNMZ9U8gJNA8Xa8U1X9fw/viewform?entry.253064463=myCustomValue
// for UNICODE less/equal 0xFFFF
var star = 0x2605; // ★
var s = String.fromCharCode(star) // ★ -> ★
var htmlEnt = `&#x${s.charCodeAt(0).toString(16)};`
console.log(s," ->" ,htmlEnt)
This is fixed in 3.116.1 - check this URL for more information. However, I can see under https://github.com/mono/SkiaSharp/releases, Version 3.119.0 (Preview 1) also includes the text
🔒🤖 Update the Android NDK to r27c and update to 16kb alignment by @mattleibow in #3096
... can't really tell what is going on. Hope this links/references guide you to the right direction.
Could you try to replace socket
to websocket
?
https://bp.cotacerta.com.br/socket.io/?EIO=4&transport=websocket
My question is how to initialize jdbcEnvironment properly?
You might want to provide more sample code to make the issue more reproducible. but I am fine tuning JDBC URL parameters
could receive more helpful answers if more relevant code is provided to let people reproduce the exact issue.
The documentation says,
Ensuring that the database initializer is initialized first can also be easy. Some suggestions on how to implement this include:
Rely on the default behavior of the Spring BeanFactory, which is that beans are initialized in registration order.
I produced an example which I tested to behave in the order of handling the DataSource first. I added the waiting time of 10 seconds intentionally to simulate the network waiting time or decryption processing time:
public static String getPassword(){
String passwordAfterWaitingSimulation = "";
try{
System.out.println("Start waiting.");
for (int i = 0; i < 10; i++){
Thread.sleep(1000);
System.out.println("Waiting for " + i + " second(s).");
}
System.out.println("Stop waiting.");
passwordAfterWaitingSimulation = "YourPassword";
} catch (Exception e){}
return passwordAfterWaitingSimulation;
}
The SQLServerDataSource:
@Bean
DataSource dataSource() {
final SQLServerDataSource dataSource = new SQLServerDataSource();
String url = DbConnectionSetUp.getURL();
String user = DbConnectionSetUp.getUser();
String password = DbConnectionSetUp.getPassword();
dataSource.setURL(url);
dataSource.setUser(user);
dataSource.setPassword(password);
// clearing after use
url = null;
user = null;
password = null;
return dataSource;
}
I used dependency injection which essentially created the order of handling DataSource dataSource
first in the code:
public DataService(DataSource dataSource){
this.dataSource = dataSource;
}
After .\mvnw spring-boot:run
, when I opened http://localhost:8080/
in the browser, I saw the expected results of the inserted data, e.g.
1
user ä ö ü 0
2
user ä ö ü 1
3
user ä ö ü 2
4
user ä ö ü 3
5
user ä ö ü 4
6
user ä ö ü 5
7
user ä ö ü 6
8
user ä ö ü 7
9
user ä ö ü 8
10
user ä ö ü 9
The repository of this example is here.
Thanks a lot it saved my time. What I learnt is variable expansion and single quotes and remove double quotes using tr
oc image info registry.redhat.io/rhel9/httpd-24:9.5-1740962963 --filter-by-os linux/amd64 -o json | jq .digest | tr -d '""' | xargs -i sh -c 'IMGID="{}"; echo "$IMGID"'
sha256:f97c915312cdaa8f4000d409e71ead6e4aaeaed587563560e44e93532273e063
The ABA problem in concurrent programming occurs when a shared variable changes from A → B → A, making it appear unchanged to a thread performing a compare-and-swap (CAS) operation. This can lead to unintended behavior because the underlying object at address A may no longer be the same.
In Rust, solving the ABA problem often involves techniques like:
Tagged Pointers with Versioning: Each pointer is paired with a version number, ensuring that even if the same memory address is reused, outdated versions are detected.
Epoch-Based Reclamation: This method tracks memory usage across threads and prevents premature deallocation.
Hazard Pointers: A safe memory reclamation technique that ensures a thread accessing a shared object is aware of potential modifications
Length: {{ (list$ | async)?.length }}
@if((list$ | async)?.length > 0){
<ul>
<li *ngFor="let item of (list$ | async)">
{{ item.name }}
</li>
</ul>
}@else {
<span>no data</span>
}
I use Angular 17
, and this solution worked perfectly for me. To check the length of an observable array and handle empty data, I use the async pipe
with the safe navigation operator ?.
Why are you using the LinkedIn Community Management API? Do you have to retrieve followers, statistics and posts for a company?
Why don't you just connect through the official LinkedIn Sales Navigator ?
I have the same error have you solved the problem?
Click on OVR button on the status bar of VS Code to enable insert mode.
(In my keyboard, insert key didn't wok. But Print Screen key worked)
I can confirm what @jxtps mentioned in the comment: logging into the relevant Wikimedia project is required to activate the API key.
For instance, if you're making a request to a German Wikipedia page, your Python code might look like this:
access_token = 'your-long-access-token'
response = requests.get(
'https://de.wikipedia.org/w/api.php',
params={
'action': 'query',
'format': 'json',
'titles': 'Judas_Priest',
'prop': 'revisions',
'rvlimit': 1,
},
headers={
'Authorization': f'Bearer {access_token}',
}
)
However, if you haven’t logged into the German Wikipedia (in this case, de.wikipedia.org
), the API call will fail — likely with a 403 error. Simply visiting the page in your browser while logged in will activate your access token for that specific project, and subsequent API calls should return a successful 200 response.
This issue should be considered resolved.
openPanel.allowedContentTypes = [.json]
There is already an issue open with this error
https://github.com/flutter/flutter/issues/166677
They say: "(The good news is that while this is crashing, it's crashing specifically while the app is shutting down—generally this is the case where a user swipes an app away in the task manager—so the user won't experience it as a crash.)"
It means you’re developing and running an MVC-based application (like in Laravel, ASP.NET MVC, Django, or Ruby on Rails) on a dedicated hosting environment.
conclusion:-
Using MVC on a dedicated host is ideal for businesses or developers building custom web applications with high traffic, advanced features, or sensitive data. You get the power and flexibility of a full server, with the structured coding benefits of MVC.
In test_lCase case:
def test_lCase():
assert shorten("TWitTER") == "TWtTR"
should read: =="TWtTER"
you missed an "E"
you can implement like this
// If token still valid, return it
if (Date.now() < token.accessTokenExpires) {
return token;
}
// If token expired, refresh it
return await refreshAccessToken(token);
This config solves the problem
local wf = hs.window.filter
-- print primary screen id
screen_id = hs.screen.primaryScreen():id()
print(screen_id)
filter = wf.new():setCurrentSpace(true):setDefaultFilter{}:setScreens(screen_id)
switcher_space = hs.window.switcher.new(filter)
hs.window.switcher.ui.showThumbnails = false
hs.window.switcher.ui.showSelectedThumbnail = false
hs.hotkey.bind('alt', 'tab', 'Next window', function()
switcher_space:next()
hs.alert.closeAll()
end)
hs.hotkey.bind('alt-shift', 'tab', 'Prev window', function()
switcher_space:previous()
hs.alert.closeAll()
end)
-- Bind option + number keys to switch spaces
for i = 1, 6 do
hs.hotkey.bind('alt', tostring(i), function()
hs.spaces.gotoSpace(i+2)
end)
end
print(hs.spaces.allSpaces())
Add vertical-align: middle;
to the td
, can solve the problem.
Replace axios and qs modules with this in frontend projects and reduce size 73KB:
I think in this case you need to rethink your UI architecture. Why not do something like this:
if isPurchased {
// process pro functions
} else {
// open paywall
}
First of all, you need to understand why Isolates are used in Flutter. There are multiple purposes.
Why Isolates are Used in Flutter
Preventing UI Freezes:
Moves high or expensive operations off the main UI thread
Keeps your app responsive and jerky free while heavy computation
True Parallel Execution:
Allow concurrent processing across multiple CPU cores
Each isolate runs independently with its own thread and isolated memory
Batter Memory Management:
Handle better memory management than traditional way.
Background Processing:
Handles tasks when the app is in the foreground
Limited background processing capabilities
Limitations of Isolates
However,There are also isolates limtations
- Communication Overhead: Passing data to isolates serialization/deserialization
- No Direct UI Access: Isolates can't directly update the UI
- App Termination: Isolates don't live/survive on application termination.
----------------------------------
Remote push notifications
Still If you would like to use push notifications in a way even when your app is terminated or killed, you can handle push notification logic on the server side. With server-side push notifications, both Android and iOS platforms will work perfectly. so push notification will not be depend on isolate.
from pathlib import Path
import shutil
# Move the video file to a downloadable public location
source_path = Path("/mnt/data/Ruslan_i_Lyudmila_Book_Trailer_Husan.mp4")
target_path = Path("/mnt/data/Download_Ruslan_i_Lyudmila_Book_Trailer_Husan.mp4")
# Copying the file to ensure it's available under
If you need to convert raster images into PSD format for editing or handoff, try using:
👉 ImageConvertHQ - Image to PSD
Converts any image to .PSD
100% free and browser-based
Useful for frontend devs, UI/UX teams, and prototyping
Bonus: Works smoothly on mobile and doesn’t require any technical steps. Just upload > download. Done.
Problem solved at
https://github.com/langchain-ai/langgraph/discussions/4384
import base64
from langchain_core.tools import tool
def image_to_base64(image_path: str) -> str:
with open(image_path, "rb") as image_file:
encoded_string = base64.b64encode(image_file.read())
return encoded_string.decode('utf-8')
def do_screenshot_and_save_it_to_local_disk():
# Pretend that this function will take a screenshot and return the path of the image.
return "/path/to/pic.png"
@tool
def get_screenshot():
picture_path = do_screenshot_and_save_it_to_local_disk()
return [
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_to_base64(picture_path)}"}}
]
Use a data model that represents your UI structure.
Build a composable function that recursively renders the appropriate UI components based on the data model.
Use state to dynamically update the UI when needed.
By following this approach, you would be able to create a highly flexible UI that adapts to runtime conditions and user preferences.
I have two Doubts
1)Can i able to Add Multiple Packages to be scanned using @ComponentScan? is its Recommended or encouraged to create packages out of Main Class Path ?
2)if i use Both @SpringBootApplication and @ComponentScan does it cause Any unpredictable Issues While Testing , Deploying ?
<input type="checkbox" id="F" name="F" class="form-check" value="0"
@if (str0[0] == 'T') { Html.Raw("checked"); } />
I have a problem with this syntax. "checked" show on top of page.
anybody can help me?
NextAuth's signOut only clears your browser/client session, you still have to make an API call to your IAM backend's end-session-endpoint with the correct parameters.
When a page loads, start a timer (and restart it with user activity if necessary) and when the timer runs out, make the call to the end-session-endpoint. If that call is successful, next-auth will pickup the session state as 'unauthenticated' then you can (for example) router.push to your login page.
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Artifact'
inputs:
buildtype: 'current'
downloadtype: 'specific'
downloadPath: '$(System.ArtifactoryDirectory)'
targetPath: '$(System.ArtifactoryDirectory)'
- task: Bash@3
displayName: 'Copy and Upload to BrowserStack (App Live & App Automate)'
inputs:
targetType: inline
script: |
#!/bin/bash
# Define directories
SOURCE_DIR="$(System.ArtifactsDirectory)"
DEFAULT_DIR="$(System.DefaultWorkingDirectory)"
DEST_DIR="$DEFAULT_DIR/artifacts"
# BrowserStack Upload URLs
APP_LIVE_UPLOAD_URL="https://api-cloud.browserstack.com/app-live/upload"
APP_AUTOMATE_UPLOAD_URL="https://api-cloud.browserstack.com/app-automate/upload"
# Replace with your actual BrowserStack username and access key, and securely reference them using variable groups from the Azure DevOps Library.)
BROWSERSTACK_USERNAME="resfeber_JwNHAx"
BROWSERSTACK_ACCESS_KEY="Enter Your Key Here"
# Create destination directory if it doesn't exist
mkdir -p "$DEST_DIR"
# Find and copy matching APK and IPA files from both SOURCE_DIR and DEFAULT_DIR
find "$SOURCE_DIR" "$DEFAULT_DIR" -type f \( -name "*.apk or.aab" -o -name "*.ipa" \) -exec cp {} "$DEST_DIR" \;
echo "✅ Matching artifacts copied to $DEST_DIR"
# List files in the destination directory
ls -al "$DEST_DIR"
# Find the latest artifact
ARTIFACT_PATH=$(ls -t "$DEST_DIR"/*.apk or .aab "$DEST_DIR"/*.ipa 2>/dev/null | head -n 1)
# Check if an artifact was found
if [[ -z "$ARTIFACT_PATH" ]]; then
echo "❌ Error: No valid artifact found in $DEST_DIR" >&2
exit 1
fi
echo "✅ Artifact selected for upload: $ARTIFACT_PATH"
# Function to upload to BrowserStack
upload_to_browserstack() {
local UPLOAD_URL=$1
local UPLOAD_TYPE=$2
echo "🚀 Uploading to BrowserStack $UPLOAD_TYPE..."
RESPONSE=$(curl -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_ACCESS_KEY" \
-X POST "$UPLOAD_URL" \
-F "file=@$ARTIFACT_PATH")
echo "📤 Upload response: $RESPONSE"
# Extract app_url from response
APP_URL=$(echo "$RESPONSE" | jq -r '.app_url')
if [[ -n "$APP_URL" && "$APP_URL" != "null" ]]; then
echo "✅ $UPLOAD_TYPE Upload Successful!"
echo "🔗 Use this link to open the app in BrowserStack $UPLOAD_TYPE: $APP_URL"
else
echo "❌ Error: Upload to $UPLOAD_TYPE failed!" >&2
exit 1
fi
}
# Upload to both App Live and App Automate
upload_to_browserstack "$APP_LIVE_UPLOAD_URL" "App Live"
upload_to_browserstack "$APP_AUTOMATE_UPLOAD_URL" "App Automate"
int main() {
int t, height, width;
int circles, radius;
vector<int> xCordinates;
vector<int> yCordinates;
int num;
string input;
cin >> t >> height >> width;
cin >> circles >> radius;
// Ignore the newline character left in the buffer after the last cin
cin.ignore();
getline(cin, input); // Read the third line
stringstream ss1(input);
while (ss1 >> num) {
xCordinates.push_back(num);
}
getline(cin, input); // Read the third line
stringstream ss2(input);
while (ss2 >> num) {
yCordinates.push_back(num);
}
return 0;
}