I was stupid and I was tagging the commit without it. Feel embarrassed
Нашел решение, нужно было написать свой загрузчик файлов для запросов через fetch, потому что capacitor блокирует XMLhttp запросы и поставить в upload как кастомный метод:
const handleCustomRequest = async ({ file, onSuccess, onError }, eventId) => {
console.log("Отправка файла вручную:", file);
if (!eventId) {
console.error("Ошибка: eventId отсутствует");
onError(new Error("Ошибка: eventId отсутствует"));
return;
}
const formData = new FormData();
// Принудительно закодируем имя файла в UTF-8
const encodedFileName = new Blob([file], { type: file.type });
formData.append("file", encodedFileName, encodeURIComponent(file.name)); // Кодируем имя файла
try {
const response = await fetch(
`${process.env.REACT_APP_API_URL}/api/Photo?event_id=${eventId}`,
{
method: "POST",
body: formData,
}
);
if (!response.ok) throw new Error(`Ошибка: ${response.statusText}`);
console.log("Файл успешно загружен!");
onSuccess();
} catch (error) {
console.error("Ошибка при загрузке файла:", error);
onError(error);
}
};
<Upload
customRequest={(options) => handleCustomRequest(options, event.id)}
listType="picture-card"
showUploadList={false}
multiple={true}
onChange={handleUploadChange(event.id)} // Обработчик изменения состояния загрузки
>
<button style={{ border: 0, background: "none" }} type="button">
<PlusOutlined />
<div style={{ marginTop: 8 }}>Добавить файлы</div>
</button>
</Upload>
Just add the key pixels with pure magenta color (255, 0, 255) or {1,0,1}: https://love2d.org/forums/download/file.php?id=23260
In this example glyphs are:
local glyphs = " abcdefghijklmnopqrstuvwxyz" ..
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0" ..
"123456789.,!?-+/():;%&`'*#=[]\""
Just cut the line that you need to use.
python main.py
python main.py --resume --lr=0.01
Hello/\I will*/money<>is>?the{}campeny][myL:about|{ceo+)campeny*help^^^you~`to(*make^|more//money/^fromYUnow)(on.<{?do:"you want>:to?}invest|@with>}me}{+sir<
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.3/vue.global.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/2.1.0/knockout-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.2/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.0/angular.min.js"></script>color green
yes
.>and.money is earth
I had a silly bug in that the ProcessPoolExecutor was getting recreated for each request and I believe that was causing the hanging problem as a new request could disrupt one that is already running. Make sure the pool is created only once and reused by multiple requests.
In my case, github failed when I was connected to a VPN. On disconnecting my VPN and then killing and rerunning the clone again it worked
Lots of sites seem to dislike bitdefender VPN servers
Let me offer a solution that works even if the bash script ends with new line and the directory it resides in also does.
src=$(readlink -f -- "${BASH_SOURCE[0]}"; echo -n .); src="${src%??}"; src=$(dirname "$src"; echo -n .); src="${src%??}"; cd "$src"
or more verbose
src=$(readlink -f -- "${BASH_SOURCE[0]}" && echo -n .)
src="${src%??}"
src=$(dirname "$src" && echo -n .)
src="${src%??}"
cd "$src"
The echo -n .
ensures the new lines do not get stripped by the command substitution "$(…)"
. The src="${src%??}"
removes that extra dot and the last new line, which will be added by both readlink
and dirname
, thus leaving only the real path, even with new lines at the end.
Many thanks to everyone else who pointed out the use of "${BASH_SOURCE[0]}"
instead of "$0"
. Are there any corner cases I am missing here (except readlink
and dirname
not being available)?
In this video, it is explained clearly, if it can help https://www.youtube.com/watch?v=DrmxYYC_hbo
I'm guessing mixing different link-layer type into a single
pcap_dumper_t
is probably not a good idea
"Not a good idea" as in "impossible", to be precise.
A pcap_dumper_t
can have only one link-layer type because it writes out a pcap file, which has only one link-layer type recorded in the file's header. That means that all packets in that file will be interpreted by programs reading that file (tcpdump, Wireshark, etc.) as if they had the link-layer type. For example, if the type is LINKTYPE_ETHERNET
/DLT_EN10MB
, all packets will be interpreted as if they were Ethernet packet, even if they aren't, so all non-Ethernet packets, such as LINKTYPE_LINUX_SLL
/DLT_LINUX_SLL
packets, will be misinterpreted.
is there any good practices for my use case ? For instance should I check that all my interfaces uses the same link-layer to prevent dump issues ?
Yes, you should.
is there a way to convert a packet into a particular link-layer format before dump ?
No simple way. If your software knows the format of the link-layer headers for all the link-layer format, you may be able to remove non-matching link-layer headers and add a matching link-layer header. It might be straightforward to convert LINKTYPE_ETHERNET
/DLT_EN10MB
packets to LINKTYPE_LINUX_SLL
/DLT_LINUX_SLL
packets, for example.
would the pcapng format be useful in my case ?
Yes.
but it seems libpcap is only able to read pcapng and not write it.
Yes. You would have to write your own code to write pcapng files.
For your logs the problem is import error of _ctypes
the same thing with this stack question
from the answers there's no need to uninstall your operating system
According to mbdev installing libffi-dev
and python 3.7 this would resolve the problem
Thank you! This worked for me.
I had a very similar issue which came down to Webstorm's type narrowing. I was using neverthrow in a Turbo monorepo. To fix, I had to direct WebStorm to my tsconfig base file.
With IntelliJ I found that often the idea gets confused and I need to either restart ide or invalidate cache...
Hope this helps anyone who was in the same boat as me
Another way to do it in pyspark:
import pyspark.sql.functions as F
df.select(F.expr("* EXCEPT( COLUMN 1, COLUMN 2)")))
or
df.selectExpr("* EXCEPT( COLUMN 1, COLUMN 2))
Another way to do it in pyspark:
import pyspark.sql.functions as F
df.select(F.expr("* EXCEPT( COLUMN 1, COLUMN 2)"))
@Koen, thank you for suggestion. Since Oracle does not support lookahead nor lookbehind, as pointed out by @Fravodona, we implemented APEX_DATA_PARSER and this did the trick. Thanks All.
Add the following lines to analysis_options.yaml
:
linter:
rules:
prefer_const_constructors: true
You don't need to override MappingAerospikeConverter
bean, it is enough to use customConverters()
method if there is custom conversion logic involved.
You can use configuration properties directly with less boilerplate code.
No need to create AerospikeClient
bean, it is created by Spring Data Aerospike. You set ClientPolicy
through getClientPolicy()
method in your configuration class.
This is what the configuration you posted can look like:
@Configuration
@EnableAerospikeRepositories(basePackageClasses = {CacheableFileEntityRepository.class})
public class AerospikeConfig extends AbstractAerospikeDataConfiguration {
@Override
protected ClientPolicy getClientPolicy() {
ClientPolicy clientPolicy = super.getClientPolicy(); // applying default values first
clientPolicy.readPolicyDefault.replica = Replica.MASTER;
clientPolicy.readPolicyDefault.readModeAP = ReadModeAP.ONE;
clientPolicy.writePolicyDefault.commitLevel = CommitLevel.COMMIT_ALL;
clientPolicy.readPolicyDefault.socketTimeout = readTimeout;
clientPolicy.readPolicyDefault.totalTimeout = totalTimeout;
clientPolicy.writePolicyDefault.socketTimeout = writeTimeout;
clientPolicy.writePolicyDefault.totalTimeout = totalTimeout;
clientPolicy.maxSocketIdle=maxSocketIdle;
clientPolicy.timeout=connectionTimeout;
return clientPolicy;
}
@Override
protected List<Object> customConverters() {
// return List of converters instances here if needed
}
@Bean
public AerospikeCacheManager cacheManager(AerospikeClient aerospikeClient) {
AerospikeCacheConfiguration defaultConfiguration = new AerospikeCacheConfiguration("tax_registration");
return new AerospikeCacheManager(aerospikeClient, mappingAerospikeConverter, defaultConfiguration);
}
}
Can you provide a link to a sample project on GitHub maybe? I was able to run a sample demo with both Redis 3.4.2 and Aerospike 5.0.0.
This change to the headers object did the trick!
responseType: 'json' as 'json'
Based on answere by Pierre Burton Without named const:
L.marker(//...)
.on('add', (e) => e.target.getElement().setAttribute('id', customId));
Can be used also for data attributes.
Maybe, you have to make sure range%stepSize=0[in your exp(800-100)%200 = 100] If it is not divisible, it will be counter-intuitive to the user, maybe you should consider whether to modify the product design
I had the same problem after I run "Git add ." I lose all the files and here's how i restored lost files with this command :
git stash apply stash@{0}
I have the same problem, on the device or simulator the application starts but after eas builds the abb file and uploads it to google in the application testing phase. After downloading and running on the phone a white screen starts with an icon in the middle and does not want to go further. I use expo 52.0.31i react native 76.6 because on 76.7 the application does not want to be built by eas on the expo account. This is related to this introduced splash screen. I do not know how to solve it in android.
It will definitely help you it sonveed even nested array and object json to convert it in mongoose schema https://craftydev.tools/json-node-mongoose-schema-converter
I have the same issue with Dialog associated to Dropdown component.
Here is the error code I get in console :
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus
And I see in elements inspector than the body element receive this after closing Dialog :
style: "pointer-events: none;"
My code here :
const renderDialogContent = () => {
if(!action) return null;
const { value, label } = action
return (
<DialogContent className="shad-dialog button">
<DialogHeader className="flex flex-col gap-3">
<DialogTitle className="text-center text-light-100">{label}</DialogTitle>
{value === "rename" && (
<div className="flex flex-row">
<InputRenameLeft
type="text"
value={name}
onChange={(e) => setName(e.target.value)}
/>
<InputRenameRight
type="text"
value={"."+file.extension}
disabled
className="!cursor-default !select-none"
/>
</div>
)}
{value === "details" && (
<FileDetails file={file} />
)}
{value === "share" && (
<ShareInput users={users} file={file} onInputChange={setEmails} onRemove={handleRemoveUser} isRemoving={isRemoving} id={id} isSubmitted={isLoading}/>
)}
{value === "delete" && (
<p className="delete-confirmation">
Are you sure to delete {` `}
<span className="delete-file-name">{file.name}</span> ?
</p>
)}
</DialogHeader>
{value === "share" && (
<DialogFooter className="flex flex-col gap-3 md:flex-row">
<Button onClick={closeAllModals} className="modal-cancel-button">
Cancel
</Button>
<Button onClick={handleAction} className="modal-submit-button" disabled={isLoading || emails.length === 0}>
<p className="capitalize">{value}</p>
{isLoading && (
<Image src="/assets/icons/loader-white.png" alt="loader" width={24} height={24} className="animate-spin"/>
)}
</Button>
</DialogFooter>
)}
{value === "rename" && (
<DialogFooter className="flex flex-col gap-3 md:flex-row">
<Button onClick={closeAllModals} className="modal-cancel-button">
Cancel
</Button>
<Button onClick={handleAction} className="modal-submit-button" disabled={isLoading || name === file.name.replace(`.${file.extension}`, '')}>
<p className="capitalize">{value}</p>
{isLoading && (
<Image src="/assets/icons/loader-white.png" alt="loader" width={24} height={24} className="animate-spin"/>
)}
</Button>
</DialogFooter>
)}
{value === "delete" && (
<DialogFooter className="flex flex-col gap-3 md:flex-row">
<Button onClick={closeAllModals} className="modal-cancel-button">
Cancel
</Button>
<Button onClick={handleAction} className="modal-submit-button" disabled={isLoading}>
<p className="capitalize">{value}</p>
{isLoading && (
<Image src="/assets/icons/loader-white.png" alt="loader" width={24} height={24} className="animate-spin"/>
)}
</Button>
</DialogFooter>
)}
</DialogContent>
)
}
return (
<Dialog open={isModalOpen} onOpenChange={(isOpen) => { setIsModalOpen(isOpen); if (!isOpen) closeAllModals(); }}>
<DropdownMenu open={isDropdownOpen} onOpenChange={setIsDropdownOpen}>
<DropdownMenuTrigger className="shad-no-focus transition-all duration-200 hover:text-brand"><IoEllipsisVertical /></DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuLabel className="max-w-[200px] truncate">{file.name}</DropdownMenuLabel>
<DropdownMenuSeparator />
{actionsDropdownItems.map((actionItem) => (
<DropdownMenuItem key={actionItem.value} className="shad-dropdown-item" onClick={() => {
setAction(actionItem)
if(["rename", "share", "delete", "details"].includes(actionItem.value)) {setIsModalOpen(true)}
}}>
{actionItem.value === "download" ?
(<Link href={constructDownloadUrl(file.bucketFileId)} download={file.name} className="flex items-center gap-2">
<Image src={actionItem.icon} alt={actionItem.label} width={30} height={30}/>
{actionItem.label}
</Link>)
:
(
<div className="flex items-center gap-2">
<Image src={actionItem.icon} alt={actionItem.label} width={30} height={30}/>
{actionItem.label}
</div>
)
}
</DropdownMenuItem>
))}
</DropdownMenuContent>
</DropdownMenu>
{renderDialogContent()}
</Dialog>
)
Hot restarts can lead to multiple active listeners or streams if they're not properly managed, resulting in duplicated data.
When you perform a hot restart, the Flutter framework destroys and recreates the widget tree but doesn't automatically dispose of existing streams or listeners. This behavior can cause multiple streams or listeners to remain active, leading to duplicated data in your application.
u can read more about this issue #33678
Just install this plugin to your wordpress and set the limit to the one you want: https://wordpress.org/plugins/wp-maximum-upload-file-size/
ไม่มีอะไรหรอกแค่ส่งให้รัฐบาลสหราชอณาจักรตรวจสอบความผิดปกติของข้อมูลใช้งานระบบติดตั้งของทาง"samsung"ว่าความผิดพลาดนี้เกิดจากการติดตั้งแต่เดิมจากโรงงาน"samsung"มาหรือไม่ หรือเพิ่งมาถูกติดตั้งจากผู้ปลอมแปลง สวมรอย แอบอ้าง ขโมยข้อมูลเข้าใช้บัญชีของผู้เป็นเจ้าของบัญชีใช้งาน(นาย อนุรักษ์ ศรีจันทรา)ก็แค่นั้น.
The launchMissilesAt example would in F# be something like:
type Country = BigEnemy | MediumEnemy | PunyEnemy | TradePartner | Ally | BestAlly
let launchMissilesAt country =
printfn "bombed %A" country
(*
GFunc
type GFunc<'R> =
abstract Invoke : 'T -> 'R
*)
// inspired by GFunc
type ElementPicker =
abstract Pick : 'T list -> 'T
let g =
{new ElementPicker with
member this.Pick(xs) = xs |> List.head } // or something alike
//let g =
// {new ElementPicker with
// member this.Pick(_) = BestAlly }
//This expression was expected to have type
// ''a'
//but here has type
// 'Country'
let f = launchMissilesAt <| g.Pick [BigEnemy; MediumEnemy; PunyEnemy]
It appears that caching is a big problem in pytest. I needed to run the command with --cache-clear
to fix my issues.
pytest test_project.py -v -s --cache-clear
I heard of this lib recently check it out https://www.npmjs.com/package/eventar
To use adb with an IPv6 address, you need to properly format the address. Since expects an IPv6 address to be enclosed in square brackets ([]):
adb -H [ffff:1111:1111:1:1:111:111:111] -P 27231 devices
You can use a querySelector for the component you want to interact inside a iframe from the doom after Iframe gets loaded in that way you can wrap an iframe and customize it, in this case you could listen to the events you desire.
open form1.h (or your own form file) as code < >, copy namespase from it ( CppCLRWinFormsProject , as example ) find the project file (.vcproj) in project folder --> open it with Notepad --> find tag --> change value to copied namespase --> save and reload this file in Visual Studio (or reopen your project).
A more easy way is to pipe that command
find ./* | grep trickplay | xargs rm -rf
this command will delete all trickplay folders
On Android 14 (not sure about older versions), there is a 'First day of week' setting under System -> Languages -> Regional preferences.
@RequestBody List<@Valid CompanyTag> categories;
instead of focusing on @Valid List, focus on the object itself like List.
In my case was enough to add namespace
use function Illuminate\Support\defer;
.
.
defer()
You can change the app's heap space by changing the launch configuration. You can add in the VM options
the -Xmx7000m
.
The change you did before in the studio.vmoptions
is for the IDE itself.
for people stumbling here - it must have been recently but Google Docs support markdown pasting now.
https://support.google.com/docs/answer/12014036
- Copy the Markdown content to your clipboard
- On your computer, open a document in Google Docs.
- Right-click and select Paste from Markdown. The Markdown will be converted to Google Docs content and be pasted.
It seems to have been a problem with Google Play's signing...
I released an app update to play store on on feb 6th, which crashed on Android 12 devices.
It also crashed when downloaded from Firebase App Distribution as AAB. But worked well as APK.
Even building from older commits that has worked before, gave me the same issue.
Today, feb 9th, I tried to upload the same build again to Firebase App Distribution as AAB, and now it works on Android 12 devices.
Apparently, they have fixed the issue, but the apps that were uploaded when the issue was present, are still affected until you upload a new build.
Where can we expect to read a statement from google about this?
Install n: npm install n
from npm
After installing n
successfully, install node 14:
sudo n download 14
Checkout to node 14:
sudo n
and choose node 14.
Both of the following lines of code will return the file name with its extension including the full path of the file on the client.
FileUpload1.PostedFile.FileName;
Directory.GetFiles();
The following worked for me on macOS.
brew services restart mongodb-community
iam using nativewind with expo and i had the error as well. after hours of debugging. i downgraded some packages and it worked. i just didnt recognized because the updates were done weeks ago and i just tested the web version which was somehow working.
Thanks to Elli's idea:
def find_all_indices(string, find):
return [i for i in range(len(string)) if string[i:i+len(find)] == find]
print(find_all_indices('How much wood would a wood chuck a wood chuck wood?', 'wood'))
# [9, 22, 35, 46]
I originally came here because I had the same question.
Yes, logging.level.org.springframework.boot.context.config: trace
is a good answer, but it's verbose: its output contains much more than this question asks for.
I'm not complaining. The additional information, such as which files would have been loaded if they'd existed ("Skipping missing resource file"), is interesting to me.
Still, for what it's worth, if you want something closer to just the "list of loaded properties files":
@Component
@Slf4j
public class ConfigFileLogger {
@EventListener
public void handleContextRefresh(ContextRefreshedEvent event) {
final Environment env = event.getApplicationContext().getEnvironment();
final MutablePropertySources sources = ((AbstractEnvironment) env).getPropertySources();
sources.stream()
.filter(ps -> ps instanceof OriginTrackedMapPropertySource)
.forEach(ps -> log.info("{}", ps.getName()));
}
}
Example output:
Config resource 'file [config/application.yaml]' via location 'config/application.yaml'
Yeah: that whole line, "Config resource ... via location ...", is the name of the property source.
Before you say, "Well, I'm just gonna use a regex to extract the location from that line", here's another example, for a config file that is embedded in the Spring Boot application JAR file:
Config resource 'class path resource [application.yaml]' via location 'optional:classpath:/'
If anyone knows a better, "cleaner" way to get a list of file paths that offers the same context about the location, please post your answer.
OriginTrackedMapPropertySource
?In case you're wondering how I knew to filter property sources by instanceof OriginTrackedMapPropertySource
, I first listed all property sources:
sources.stream()
.forEach(ps -> log.info("{}", ps));
Example output:
ConfigurationPropertySourcesPropertySource {name='configurationProperties'}
SimpleCommandLinePropertySource {name='commandLineArgs'}
PropertiesPropertySource {name='systemProperties'}
OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}
RandomValuePropertySource {name='random'}
OriginTrackedMapPropertySource {name='Config resource 'file [config/application.yaml]' via location 'config/application.yaml''}
OriginTrackedMapPropertySource {name='Config resource 'class path resource [application.yaml]' via location 'optional:classpath:/''}
You install a debug apk isn't proper flow, You first realse apk generate and after installing reals.apk file install any device so fix this problem without error!, Step :- In the menu bar, click Build > Generate Signed Bundle/APK. Genrate reale.apk and install any device
"I managed to make it work with fedora 389. I created an "enabled" attribute as String and created the corresponding mapper in the federation configuration as "user-attribute-ldap-mapper". Now when I change the "enabled" switch in keycloak the change is propagated to ldap"
Can you please describe how you did this? Thank you. (@kikkauz)
android:fitsSystemWindows
If true, adjusts the padding of this view to leave space for the system windows.
You can manually do that using WindowInsetsListener
.
ViewCompat.setOnApplyWindowInsetsListener(appBar) { view, windowInsets ->
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.statusBars())
// Apply the insets as padding to the view. Here, set all the dimensions
// as appropriate to your layout. You can also update the view's margin if
// more appropriate.
view.updatePadding(insets.left, insets.top, insets.right, insets.bottom)
// Return CONSUMED if you don't want the window insets to keep passing down
// to descendant views.
WindowInsetsCompat.CONSUMED
}
please refer to:
https://developer.android.com/develop/ui/views/layout/edge-to-edge#system-bars-insets
https://developer.android.com/reference/android/view/View#attr_android:fitsSystemWindows
Hijyhggjbg4634[enter code here][1]
enter code here Seyam
enter code here
enter link description here `
Bodnd8
You have to import @RestController and @RequestMapping from:
org.springframework.web.bind.annotation.RequestMapping;
org.springframework.web.bind.annotation.RestController;
Additionally, you need to set the main class properly:
mainClass.set('webserver.blog.BlogApplication');
As you can see below, my Spring app has been started successfully without any errors.
my build.gradle file
As @Robin Winslow said,
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
resolve the problem, below haproxy eqivalent:
backend jenkins_backend
mode http
option forwardfor
http-request set-header X-Forwarded-Proto https
http-request set-header X-Forwarded-Port 443
server jenkins 192.168.xxx.xx:10082 chec
The Error shows that TensorFlow hasn't been installed correctly on your system. Please double-check that you've followed the step-by-step installation instructions provided in the Tensorflow Documents, Ensuring they align with your system's OS.
resource "aws_cloudwatch_log_subscription_filter" "lambda_error_filter" {
name = "LambdaErrorLogFilter"
log_group_name = "${var.lambda_job}"
filter_pattern = "?ERROR ?Error ?Exception"
destination_arn = aws_lambda_function.sns_email_lambda.arn
}
created with following resource of cloudwatch log subscription filter but getting below error can you please guide me to resolve this error
putting CloudWatch Logs Subscription Filter (uat-dps-unify-pipeline-lambda-error-logfilter): operation error CloudWatch Logs: PutSubscriptionFilter, https response error StatusCode: 400, RequestID: ef62c984-7789-47e4-8af8-56aae46def30, InvalidParameterException: Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function.
I could never get MTAdmob to work in my .Net 8 MAUI app but I did find this other solution which worked effortlessly.
If your Eclipse project is not running on the BlueStacks emulator, follow these steps to fix the issue:
Check ADB Connection: Ensure BlueStacks is detected by running adb devices in the command prompt. If it's not listed, restart ADB using adb kill-server and adb start-server.
Enable Developer Mode: Go to BlueStacks settings and enable "ADB Debugging."
Correct Run Configuration: In Eclipse, ensure the target device is set to BlueStacks.
Check App Compatibility: Verify that your app supports the BlueStacks Android version.
Restart BlueStacks & Eclipse: Restart both to refresh connections.
Source of answer: - bluestacks vps
Check Signing Key: Ensure the APK is signed with the correct key. For distribution, always sign your app with a release key.
Uninstall Previous Versions: Remove any app with the same application.
Use Compatible SDK: Verify that the devices have Android versions between your minSdk (21) and targetSdk (30).
Generate Release APK: You can create a signed release APK via Android Studio (Build > Generate Signed Bundle / APK).
Enable Installation from Unknown Sources: Ensure the devices allow installing apps from unknown sources.
Test on Multiple Devices: Verify compatibility across various devices.
try to install the file from the file manager.
We can you css for that
.cropper-crop-box, .cropper-view-box {
border-radius: 50%;
}
.cropper-view-box {
box-shadow: 0 0 0 1px #39f;
outline: 0;
}
I found the Error -3008 is also showing at FireFox and Chrome browser. Even using different port using -H 192.168.1.7 -p 3000 is not solving my problem. Can anyone help?
In this link they solved it withs:
Platform.OS == 'ios' ? require('../path/FileName.pdf') : {uri:'bundle-assets://FileName.pdf'}
[https://github.com/wonday/react-native-pdf/issues/386]
Easiest way to get any user id: tg-user.id
Authentication vs. Authorization
Authentication: This is the process of verifying a user's identity. For instance, when Alice logs in with her username and password, the server uses the password to authenticate her.
Authorization: This process determines if an authenticated user is permitted to perform a specific action. For example, Alice may have permission to retrieve a resource but not create one.
Microsoft provides some essential tools like claims, roles, and policies to implement authorization, but a significant part of the work must be customized to your specific needs for your application.
For more detailed information and practical examples, you can visit Microsoft's official documentation on ASP.NET Core Security. see here
Optimized Approach
1.Use NumPy's einsum for Batch Computation: Instead of iterating over all matrices with a list comprehension, use einsum for better performance.
2.Leverage Parallel Processing with joblib: The computation for each sparse matrix is independent, so parallelization can help.
Code:
import numpy as np
from scipy.sparse import csr_matrix
from joblib import Parallel, delayed
def func_optimized(a: np.ndarray, b: np.ndarray, sparse_matrices: Tuple[csr_matrix]) -> np.ndarray:
"""
Optimized function using parallelization with joblib.
"""
return np.array(
Parallel(n_jobs=-1)(
delayed(lambda M: a @ (M @ b))(sparse_matrices[k]) for k in range(len(sparse_matrices))
)
)
Why This is Faster?
Parallel Execution: joblib.Parallel runs computations across multiple CPU cores.
Efficient Computation: Avoids explicit .dot() calls in a loop.
CSR Efficiency: CSR format remains optimal for matrix-vector multiplication.
Further Optimizations:
Convert Tuple to NumPy Array: Storing matrices in a NumPy array instead of a tuple can improve indexing speed.
GPU Acceleration: Use cupy or torch.sparse if a GPU is available.
Batch Computation: Stack matrices and compute in a single operation if memory allows.
🚀 Supercharge Your Python Skills! Want to master DevOps and AWS for deploying high-performance applications? Join Pisqre and level up your expertise in cloud computing and scalable development. 🌍🔥
Visit Pisqre now! 🚀
The same we could add headings to each screenshot via comment box as user input like below -
According to the official documentation:
If the app targets VANILLA_ICE_CREAM or above, the color will be transparent and cannot be changed.
This means that if your app targets android 15 or higher, the system bars (status bar and navigation bar) will automatically match the background color of your view since edge-to-edge is enforced.
If you only want to change the color of the status bar, you could create a spacer view with full width and no height. Apply WindowInsets as padding to match the status bar height.
please refer to:
https://developer.android.com/reference/android/view/Window#setStatusBarColor(int)
https://developer.android.com/develop/ui/views/layout/edge-to-edge#system_bar_protection
In your GitHub project, the value you use for the quarkus.native.resources.includes
attribute does not target the good location.
For resources from your own project, you should not type the resources
folder's name, as stated in the documentation.
For resources from third-party jar (from direct or transitive dependencies), you should use a full path, but without a leading /
character.
quarkus.native.resources.includes = helloWorld.dat,helloWorld.dfdl.xsd,helloWorld.xslt,org/apache/daffodil/xsd/XMLSchema_for_DFDL.xsd
With this current value, the mvn install -Dnative
still generates errors due to the xerces' use of reflection and xerces' missing resources files.
As stated in the documentation, "The easiest way to register a class for reflection is to use the @RegisterForReflection annotation" (see link below).
package org.acme;
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection(targets={ org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl.class, org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.class})
public class MyReflectionConfiguration {
}
You need to update your application.properties
file too to include xerces' missing resources files.
quarkus.native.resources.includes = helloWorld.dat,helloWorld.dfdl.xsd,helloWorld.xslt,org/apache/daffodil/xsd/XMLSchema_for_DFDL.xsd,org/apache/xerces/impl/msg/XMLSchemaMessages*.properties
At this step, your project should compile, generate a native image and trigger test for the hello endpoint.
What I see now is an error due to your dfdl schema (your code reach a System.exit(1);
call) with this text in your test.txt file.
Schema Definition Error: Error loading schema due to src-resolve: Cannot resolve the name 'dfdl:anyOther' to a(n) 'attribute group' component.
It seems that even in plain java, your project contains errors ?
I have successfully got tailwind 4 working with blazor using the cli in vs2022. The github demo is here: https://github.com/coderdnewbie/FluentUITailwind4Demo
The only thing that does not work well is hot reload, and am still waiting for intellisense to become tailwind 4 compatible.
I was using the fluentui template with interactive server options, but should work the same with default template. Leave a star if it works for you, I am trying to guage the interest.
I found out that issue was iOS 18, not iPhone 11. Apple somehow changed the behavior with iOS 18.
Here is a workaround for this issue which worked for me:
In addition to above answers, for any dealing with issues on servic account creation restriction.
what worked for me is;
gcloud resource-manager org-policies disable-enforce iam.disableServiceAccountKeyCreation
--organization=ORG_ID
But then you need to login through gcloud, install gcloud and auth first
List_one = [1. Without a Warning - 0:01 2. Wake Me Up - 4:18 3. After Hours - 7:20 4. Too Late - 10:55 5. Take My Breath - 11:56 6. Sacrifice - 15:37 7. How Do I Make You Love Me? - 19:06 8. Escape From LA - 22:00 9. Take Me Back to LA - 25:26 10. Dancing in the Flames - 30:10 11. FE!N - 35:08 12. Timeless - 38:54 13. São Paulo - 42:36 14. Heartless - 49:12 15. Repeat After Me (Interlude) - 51:23 16. The Abyss - 52:51 17. Faith - 54:50 18. Alone Again - 57:49 19. Runaway - 1:00:49 20. Out of Time - 1:04:11 21. Is There Someone Else? - 1:07:40 22. Hardest to Love - 1:10:38 23. Scared to Live - 1:13:41 24. Save Your Tears - 1:17:02 25. Less Than Zero - 1:20:07 26. Blinding Lights - 1:24:14 27. In Heaven (Lady in the Radiator Song) - 1:28:27
List_two = [00:00 Mike Dean (Starting) 27:44 Opening (Every Angel Is Terrifying) 28:40 Fades to Black 30:52 After Hours 34:02 Too Late (Interlude) 35:35 Take My Breath 39:00 Sacrifice 42:13 How Do I Make You Love Me? 45:46 Can’t Feel My Face 49:07 Lost in the Fire 52:16 Hurricane Transition 54:22 The Hills 58:11 Kiss Land 1:00:15 Often 1:02:48 House of Balloons 1:05:02 Starboy 1:08:50 Party Monster 1:12:00 High for This (Live Debut) 1:14:18 Faith 1:17:03 One of the Girls (Live Debut) 1:20:24 São Paulo 1:23:47 Heartless 1:25:57 Repeat After Me Transition 1:26:52 Low Life 1:28:17 Reminder 1:30:45 Creeping 1:33:20 Popular 1:35:08 In Your Eyes 1:37:44 I Feel It Coming 1:42:12 Die For You 1:45:50 Is There Someone Else 1:48:53 I Was Never There 1:51:40 Wicked Games 1:54:15 Call Out My Name 1:58:15 Save Your Tears 2:01:14 Less Than Zero 2:06:11 Blinding Lights 2:10:27 In Heaven 2:13:36 Dancing in the Flames 2:17:57 Open Hearts (New Unreleased Song) 2:21:28 Moth to a Flame 2:26:25 After the concert 2:26:50 Outro
Tkinter is designed for computer operating systems, and interacts with the computer to produce native widgets (which is why programs look different on different OS). Unfortunately for you, Tkinter cannot render on smartphones.
Your current best bet, if you wish to use Python and on a phone, is to build a web app using Flask or Django. Or if the learning curve is too steep for your timeframe, try using NiceGUI.
same issue in production report
After exploring an alternative payment method, I realized there might be a bug or an issue between GCP and my credit card provider related to the GOOGLE_TEMPORARY payment method, which is meant to verify credit card validity.
To resolve this, go to your Google Cloud Billing page. In the "You have credit..." section, click "Make a payment" and process it manually. This will trigger an automatic withdrawal from your credit card wallet, and your credit will be reflected accordingly.
For example, if you manually pay $500, your credit will show as - $500 instead of simply displaying your available funds +$500. Don't panic—this is just how their UI presents it, even though the balance is correctly applied.
This issue is still open or or closed ? Actually i have solution for that
i found the cause of my problem.
npm installed an old version of sveltestrap.
So i uninstalled and reinstalled the package. Now it works without any problem.
OK i added
"overrides": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
to package.json and seems to be working but not sure if it right soultion
The issue indicates that there may not be a legitimate entry point in the playfab-web-sdk package.JSON.
If "main" or "module" are absent or misspelled, the package may not be set up correctly for direct import.
import * as PlayFab from "./node_modules/playfab-web-sdk/PlayFabClientApi";
I had the same problem, this import helped me: pip install -q --no-deps xformers trl peft accelerate bitsandbytes
add_settings_section( 'devsoul_psbsp_email_settings_fields', '', // Title to be displayed on the administration page. '', // Callback used to render the description of the section. 'devsoul_psbsp_email_settings_sections' );
// Email CSV Sale by Product add_settings_field( 'devsoul_psbsp_email_csv_sales_by_product_enable', esc_html__('Enable Email CSV Sale by Product', 'sales-report-by-state-city-and-country'), function () { $enable = get_option('devsoul_psbsp_email_csv_sales_by_product_enable'); ?> <input type="checkbox" name="devsoul_psbsp_email_csv_sales_by_product_enable" value="yes" >
<?php }, 'devsoul_psbsp_email_settings_sections', 'devsoul_psbsp_email_settings_fields' );
// Register settings for "Email CSV Sale by Product" register_setting( 'devsoul_psbsp_email_settings_fields', 'devsoul_psbsp_email_csv_sales_by_product_enable', array( 'type' => 'string', 'sanitize_callback' => 'sanitize_textarea_field', ) );
Had exactly the same problem that the container ran into troubles when starting on my NAS and worked locally. The root cause is that because of the lower performance the elasticsearch cluster is not ready when doing the first queries. This has to be fixed in photon itself as they have to increase the timeout to wait until the embedded elasticsearch is in yellow state.
Created a pull request with the fix. If that gets approved should work also in your scenario.
First of all, your are loading the scripts twice. If you have it installed through npm, then why add the CDN in the layout file again?
There are several ways, but, just follow this tutorial on YouTube. It is Livewire 2, but will also work with version 3. https://www.youtube.com/watch?v=cLx40YxjXiw
You can replace mongodb-mongosh
package with mongodb-mongosh-shared-openssl3
without deleting all mongodb-org-*
packages.
dnf swap -y mongodb-mongosh mongodb-mongosh-shared-openssl3
I had an issue rolling the code to production server. The solution was configuring a proxy server. Check with the hosting support.
I am using React Nactive and got the same issue. Google Play is too troublesome and imposes unjustified checks.
This is a symbolic math problem, R typically deals with numerical solutions. For symbolic algebra there is a library called caracas that can be used for symbolic calculations. You will need however a python installation since the caracas library uses calls to sympy python routines to do the symbolic calculation.
You can find more information about how to use the package in https://journal.r-project.org/articles/RJ-2023-090/
I think that it's not necessary touch docker-compose. It's possible to add python packages in ./Docker/requirements-local.txt, like pymssql. When executing docker compose up
, the builder executes requirements-local.txt to install other package.
with orbax checkpoint version '0.5.3'
with ocp.CheckpointManager(ckpt_dir, options=check_options, item_names=('state', 'metadata')) as mngr:
mngr.save(...)
I got
TypeError: 'CheckpointManager' object does not support the context manager protocol
So I wander if your solution is still valid or if it is for future version??
here the 2.64.7 version of the extension in vsix format : https://drive.google.com/file/d/1Sw0v64f4kEi2lcEmCcXdsvXDa7J4FIci/view?usp=sharing I build it from the source code because microsoft doesn't provide the vsix file anymore.
Same issue, noticed after updating to Next.js 15 + React 19
below worked
"use client";
import { ReactNode, useEffect } from "react";
import Lenis from "@studio-freight/lenis";
export default function SmoothScroll({ children }: { children: ReactNode }) {
useEffect(() => {
const lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
orientation: "vertical",
lerp: 0.1,
smoothWheel: true,
touchMultiplier: 2,
});
function raf(time: number) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
return () => {
lenis.destroy();
};
}, []);
return <>{children}</>;
}
I occasionally cannot retrieve the column 'Adj close' when using the yfinance (version 0.2.50). It works after I explicitly set False to 'auto_adjust'.
tickers = ["META", "NFLX"]
data = yf.download(tickers, auto_adjust=False)
If pandas is missing for the Python version being used, explicitly install it:
python2.7 -m pip install pandas
If someone already has aws-elasticbeanstalk-ec2-role role and still facing the issue, recreating the role correctly did the trick for me.
This problem started for me when I installed Windows 11. Upgrading Office from the 2007 version I was using fixed it for me.
so, I redid everything more careful
=> I managed to get same error, idk how (I managed to solve it)
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/username/Library/LaunchAgents/homebrew.mxcl.httpd.plist
exited with 5.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using username-macbook-air.local. Set the 'ServerName' directive globally to suppress this message Syntax OK
=> enviornment : httpd in homebrew
Now localhost is accesing my document root directory with the projects in it, it’s working (to acces localhost, it sees all folders/files), but I tried to create a .htaccess file to redirect every request to index.php and is not working
error log is showing (/opt/homebrew/var/log/httpd/error_log) : AH01630: client denied by server configuration: /Users/username/Code/.htaccess
=> Error still exists, so the problem is that the htaccess file isn’t working
You would use key-int-max property of x264enc such as:
... ! x264enc key-int-max=30 ...
for having at least a key frame each 30 frames.
I believe that your e-mail provider is blocking the e-mail or the servers at your e-mail provider at the time were not available to your device.