In my case,
onNavigationStateChange
works only on iOS,
onLoadProgress
works only on Android.
The issue was not related to an incorrect class path or similar issues. I still don't know what the exact issue was or why the solution worked but I just refreshed the browser tab of the jupyter notebook root directory, that fixed my issue. Restarting the kernel multiple times did not work.
That is a bit strange but problem was with Coupon
and UnderlyingUsage
classes. They were also extending other classes and I had to add annotations to them as well. Once annotations for whole hierarchy for Coupon
and UnderlyingUsage
were added then error disappeard.
So if someone will face the same issue please look into all classes related to the one which you change.
It is because the alignItems: 'center'
style on .container
. Fix it by removing the style.
import UIKit
import Flutter
import UserNotifications
import AVFoundation
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// Configure notification settings
if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().delegate = self
let options: UNAuthorizationOptions = [
.alert,
.badge,
.sound,
.criticalAlert // Add critical alert permission
]
UNUserNotificationCenter.current().requestAuthorization(
options: options,
completionHandler: { _, _ in }
)
}
// Configure audio session
do {
try AVAudioSession.sharedInstance().setCategory(
.playback,
mode: .default,
options: [.mixWithOthers]
)
try AVAudioSession.sharedInstance().setActive(true)
} catch {
print("Failed to set audio session category: \(error)")
}
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
// Add UNNotificationSoundName extension
extension UNNotificationSoundName {
static let customSound = UNNotificationSoundName("notification_sound.wav")
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Other existing entries -->
<!-- Add background modes -->
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>fetch</string>
<string>remote-notification</string>
</array>
<!-- Add critical alerts entitlement -->
<key>com.apple.developer.usernotifications.critical-alerts</key>
<true/>
<!-- Add notification service extension -->
<key>com.apple.developer.usernotifications.time-sensitive</key>
<true/>
<!-- Configure audio session -->
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
</dict>
</plist>
import 'package:awesome_notifications/awesome_notifications.dart';
Future<void> initializeNotifications() async {
await AwesomeNotifications().initialize(
null,
[
NotificationChannel(
channelKey: "alarm_Category",
channelName: "Alarm Category",
channelDescription: 'Long duration alarm notifications',
defaultColor: Colors.blue,
ledColor: Colors.white,
playSound: true,
soundSource: 'resource://raw/notification_sound',
importance: NotificationImportance.Max,
criticalAlerts: true,
enableVibration: true,
enableLights: true,
locked: true,
// Add these settings for iOS
defaultRingtoneType: DefaultRingtoneType.Alarm,
channelShowBadge: true,
),
],
debug: true,
);
}
Future<void> scheduleAlarmNotification({
required int subId,
required DateTime scheduledTime,
required String memoText,
}) async {
await AwesomeNotifications().createNotification(
content: NotificationContent(
id: subId,
channelKey: "alarm_Category",
title: DateFormat('yyyy.MM.dd HH:mm').format(scheduledTime),
body: 'Alarm Memo: $memoText',
category: NotificationCategory.Alarm,
notificationLayout: NotificationLayout.Default,
criticalAlert: true,
fullScreenIntent: true,
wakeUpScreen: true,
autoDismissible: false,
locked: true,
displayOnForeground: true,
displayOnBackground: true,
customSound: 'resource://raw/notification_sound',
// Add iOS specific settings
timeoutAfter: Duration(seconds: 30), // Extend timeout
payload: {
'sound_duration': '29', // Add sound duration info
'critical': 'true', // Mark as critical
},
),
schedule: NotificationCalendar(
repeats: true,
preciseAlarm: true,
allowWhileIdle: true,
year: scheduledTime.year,
month: scheduledTime.month,
day: scheduledTime.day,
hour: scheduledTime.hour,
minute: scheduledTime.minute,
second: scheduledTime.second,
),
);
}
Create a new Notification Service Extension target in Xcode:
// NotificationService.swift
import UserNotifications
import AVFoundation
class NotificationService: UNNotificationServiceExtension {
var contentHandler: ((UNNotificationContent) -> Void)?
var bestAttemptContent: UNMutableNotificationContent?
var audioPlayer: AVAudioPlayer?
override func didReceive(
_ request: UNNotificationRequest,
withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void
) {
self.contentHandler = contentHandler
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
if let bestAttemptContent = bestAttemptContent {
// Configure sound
if let soundDuration = request.content.userInfo["sound_duration"] as? String,
let soundPath = Bundle.main.path(forResource: "notification_sound", ofType: "wav") {
let soundUrl = URL(fileURLWithPath: soundPath)
bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "notification_sound.wav"))
// Setup audio session
do {
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default)
try AVAudioSession.sharedInstance().setActive(true)
audioPlayer = try AVAudioPlayer(contentsOf: soundUrl)
audioPlayer?.prepareToPlay()
audioPlayer?.play()
} catch {
print("Error setting up audio: \(error)")
}
}
contentHandler(bestAttemptContent)
}
}
override func serviceExtensionTimeWillExpire() {
if let contentHandler = contentHandler,
let bestAttemptContent = bestAttemptContent {
contentHandler(bestAttemptContent)
}
}
}
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 2 -ar 44100 notification_sound.wav
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.usernotifications.critical-alerts</key>
<true/>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
// Check sound file properties
void validateSoundFile() {
final file = File('notification_sound.wav');
if (file.lengthSync() > 5 * 1024 * 1024) {
print('Warning: Sound file too large');
}
}
Future<bool> checkNotificationPermissions() async {
final status = await AwesomeNotifications().isNotificationAllowed();
if (!status) {
// Request permissions
return await AwesomeNotifications().requestPermissionToSendNotifications();
}
return status;
}
void testNotification() async {
final now = DateTime.now();
await scheduleAlarmNotification(
subId: 1,
scheduledTime: now.add(Duration(seconds: 5)),
memoText: 'Test notification',
);
}
Remember to:
Would you like me to explain any part in more detail?
To fix this, you have to set a type for an id column:
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "AUTO")]
#[ORM\Column(type: 'integer')]
protected $id = null;
Create new migration, execute and after execution you should notice a new sequence in postgresql database sequences.
Cheers.
so it can only support the old version of expo from 51 Sdk to lower since meta start moving around with their Ts typescript which make all new dependances made tested on typeScript level not javescript you chance of having the issue resolve is by using old version of the expo modules before the creation of typeScript
which was tested on javaScript that is why it throw the erro of the module referring to the expo
just to note that I managed to do this following a suggestion (thank you!) to use textsplit():
=AND(ISNUMBER(VALUE(FIND(MID(TEXTSPLIT(A1,",",,TRUE),1,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))),ISNUMBER(VALUE(FIND(MID(TEXTSPLIT(A1,",",,TRUE),2,1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))),ISNUMBER(VALUE(MID(TEXTSPLIT(A1,",",,TRUE),3,8))),LEN(TEXTSPLIT(A1,",",,TRUE))=10)
Posting this in case it's useful to anyone else. If the "ABCDEFGHIJKLMNOPQRSTUVWXYZ" makes this formula too long for custom data validation (255 character limit) put that in a cell and refer to it in the formula. Note this doesn't enforce uniqueness, that's been a step too far for me thus far!
Just wrap you column with Center for cross axis alignment center to work.
Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
TextField(
controller: _emailController,
decoration: const InputDecoration(
labelText: 'Email',
),
),
TextField(
controller: _passwordController,
decoration: const InputDecoration(
labelText: 'Password',
),
obscureText: true,
),
],
),
);
Similarly, wrap row with Center for mainAxisAlignment: MainAxisAlignment.center to work:
Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
],
),
)
I use a custom function that wraps the text with a desired RGB(R=red, G=green, B=blue) color value in ANSI escape sequences. Here's what it looks like:
from random import randint
RANDOM_RGB_COLOR = {
"r": randint(0, 255),
"g": randint(0, 255),
"b": randint(0, 255)
}
def color(text: str, r: int = 256, g: int = 256, b: int = 256) -> str:
if (r > 255 or g > 255 or g > 255) or (r < 0 or g < 0 or b < 0):
return f"\033[38;2;{RANDOM_RGB_COLOR['r']};{RANDOM_RGB_COLOR['g']};{RANDOM_RGB_COLOR['b']}m{text}\033[38;2;255;255;255m"
return f"\033[38;2;{r};{g};{b}m{text}\033[38;2;255;255;255m"
Here are some similar solutions: How do I print colored text to the terminal?
The API was updated so that you can edit paid ACCREC invoices but this has not been extended to ACCPAY invoices or any type of credit note
Indeed it seems XCode 16 has been removed from macOS-14: https://github.com/actions/runner-images/issues/10703
In my case, I have updated my vmImage to macOS-15 and it works fine but unfortunately some people may have to rework their pipelines if they rely on macOS-14.
Just wrap you column with Center for cross axis alignment center to work.
Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
TextField(
controller: _emailController,
decoration: const InputDecoration(
labelText: 'Email',
),
),
TextField(
controller: _passwordController,
decoration: const InputDecoration(
labelText: 'Password',
),
obscureText: true,
),
],
),
);
Similarly, wrap row with Center for mainAxisAlignment: MainAxisAlignment.center to work:
Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
],
),
)
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