Is there an implementation of speech recognition (I only need very basic functionality that identifies when it has been silent for X seconds) in Kivy that works on both iOS and Android devices?
summary(m, "Hotelling-Lawley")stats["Species", "Pr(>F)"] [1] 2.664857e-67
try it
Les autres propositions n'ont pas fonctionné pour moi, j'ai fait le remplacement du body en entier
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
Use the option discrete = TRUE:
ggplot(df, aes(x = x, y = y)) +
geom_density_2d_filled() +
scale_fill_viridis(direction = -1, discrete = TRUE)
geom_density_2d_filled expects a discrete color scale since it bins the density into contours, so we need to tell scale_fill_viridis to provide a discrete, rather than continuous color scale.
Check the logs with hx --log /tmp/helix.log -vvv and open it up with tail -F /tmp/helix.log. It will tell you if rust-analyzer fails to start.
undici doesn't fetch file://
It's related to this: https://github.com/nodejs/undici/issues/2751
the same error, any solution??
After some hours of search and destroy tactical operations,
I found it 😂 spotted
I had to place a file called
srs/main/resources/META-INF/native-image/reflect-config.json
with these contents:
[
{
"name": "org.springframework.http.codec.multipart.FilePart",
"allDeclaredConstructors": true,
"allDeclaredMethods": true,
"allDeclaredFields": true
},
{
"name": "org.springframework.http.codec.multipart.FilePart[]",
"unsafeAllocated": true
}
]
And hooray, it finally worked
Define cyclic group and determine {1,2,3,4,5} modulo 6 under * is a cyclic group or not?
The problem was in the package.json
It turns out that when updating to expo version 52.0.7, I did not finish updating all the libraries related to routing to the new version to be compatible.
The command that updated it automatically (in theory) did not work, so I have updated it manually, and I had to put the versions correctly, especially the expo router and react-navigation/drawer.
I fix this by comment out the line
export const runtime = "edge"
at apps/nextjs/src/app/api/trpc/[trpc]/route.ts
I know it's something like next trying to run backend code in frontend like others say. But it's not working for me when I try put net: false in next.config.js.
Then I compare a working project with the not working project line by line. I found out the working project has the above line disabled. Just like magic.
Postgres doesn't support automatically altering an integer field to a serial field, see here. While you can do the conversion manually, it's probably easier to continue using an integer field, or to drop the table and recreate it.
I found the reason. Id was long so cmbOrganizacionaJedinica.SelectedValue = (long)1; works
Why does my PageSpeed Insights report show "Failed to load resource: the server responded with a status of 404 (Not Found)" for image URLs using blogger_img_proxy, even though the images were previously loading fine?
This is a tricky one! It sounds like you're using blogger_img_proxy to serve your images, which can sometimes cause issues with PageSpeed Insights. Here's a breakdown of why this might be happening and how to fix it:
Possible Causes:
blogger_img_proxy server might experience temporary outages or glitches, resulting in 404 errors. This is usually resolved quickly, so try running the test later.blogger_img_proxy are absolutely correct. Any typos or incorrect formatting can lead to 404 errors.blogger_img_proxy. Temporarily disable these to see if that resolves the issue.How to Fix and Prevent 404 Errors:
blogger_img_proxy Status: If you suspect a problem with the proxy itself, try using a different image proxy service temporarily to see if the issue persists.blogger_img_proxy.Remember:
If you've tried these steps and are still having issues, provide more details about your website setup and how you're using blogger_img_proxy. I'll do my best to help you troubleshoot further!
In Pythonista what would that virtual path look like?
One of the many ways is to use spread operator.
const obj3 = {...obj1}
You can also use Object.assing() for shallow copy.
const shallowCopy = Object.assign({}, obj1);
For more information please have a look at this.
Hope, this helps.
I changed the following additional configuration and it worked, thanks to @Ken Lee for their helpful comment.
upload_max_filesize = 20G
max_execution_time = 3600
max_input_time = 3600
memory_limit = 4G
Seriously, does StackOverflow have to be so toxic? I asked chatGPT and it helped me only partially, pointing out post_max_size and www-data permissions, some configuration in .htaccess. There was no other resource and the error was vague. Ken's comment solved the problem pretty easily, was it that hard? What benefit have -1 without feedback and pesky comments brought about? I'm a member for 7 years and I have almost 5k points, not a noob who cannot speak English.
I am familiar with the exception.
if your code has...
setState(() {
toggle code here..
});
You need to enclosed it in...
if (mounted) {
put your setState(() {}); here...
}
Let us know if it resolves your error.
Make sure your plist file (/Library/LaunchAgents/com.company.name.plist) has ownership root:wheel.
I believe it should be deined in connections.toml rather than config.toml, see my below walkthrough
this is what i wrote to myself with regards to snowflake native apps, for future maybe it will be helpful for you
connection.toml file
["myconnection"]
name = "your_cute_name_not_the_same_as_myconnection_above_which_is_the_real_name"
account = "dagass-graawa"
user = "MAGA47"
authenticator = "snowflake"
password = "will_not_tell_you"
new ClipboardJS('*', { text: () => 'haha' }).on('success', (e) => {
showSuccessToast('copy success')
e.clearSelection()
})
The first argument can be 'body', '*' or something else
Go to the Checkout Pages in WordPress, remove everything, and add only this shortcode: plaintext [woocommerce_checkout] This will ensure the WooCommerce checkout page works correctly.
So i was injecting payload in an apk in kali through msfvenom and and it didnt execute successfully and gave an error apktool execution fialed
If someone would like to add a Table of Content with a standard layout, then there is also the option toc_float.
---
title: "MyTitle"
output:
html_document:
toc: true
toc_float: true
---
This is a quick solution (but not as custamizable as the solution with the CSS file)
Each component has a "z" property. From the documentation:
z (in float): Allows to specify a different order to stack the items with its siblings. The value must be a compile time constant. (default value: 0)
I know OP was asking for Nginx but maybe someone is stumbling across this. Traefik has native support for Consul and Nomad Service Discovery.
I was also using Nginx at the beginning but then switched to Traefik because of its native integration.
In my case, my app is on react native, and the problem was due to firebase/app, I had to delete the dependency on react native, run npm i, modify Podfile to comment out the references to Firebase related pods that apparently only work if you use modular headers run pod cache clean --all and pod install to remove the dependencies and the error disappeared. The thing it seemd to be, that using those modular headers somehow "brakes" the UIKit, resulting on several errors. For now I was using firebase to distribute, but I'm very disapointed because I wanted to implement push notifications using firebase, and I haven't found anyone that could implement it succesfully on iOS, so I'm investigating other options, as codepush.
(For those who didn't understand the other answers) Yes, I faced the same issue today about call and jmp issue and it was all about a simple thing that i did wrong and it was by declaring .code before .data section due to which it was raising this issue (A2107 cannot have implicit far jump or call to near label) so make sure your segements are correctly placed.
First should be the .data then .code and so on
~ Happy Coding
Simply tell the View where to get the value from
<input class="form-control" asp-for="Field1" value="@Model.Field1"/>
For taking X language and translating it to Y language you could use a compiler. The book Compilers: Principles, Techniques, and Tools by Alfred Aho and Jeffrey Ullman is where you'd want to start on this.
Using the lexical analysis part of the compiler, you could create a system where by as the tokens are made, you analyse them against a database. If the full length of the tokens match, call for that function. Otherwise continue with the other compiler steps.
Simply tell the View where to get the value from
<input class="form-control" asp-for="ProductName" value="@Model.ProductName"/>
In Next.js 13, Layouts (layout.js) are used for persistent UI components like headers, footers, or sidebars, remaining consistent across navigations within a route subtree. They are static and don’t re-render. Templates (template.js) are reusable structures that generate a fresh DOM for every navigation, ideal for dynamic UIs, animations, or resetting states. Use layouts for stable, shared structures and templates for UIs requiring re-creation. Both are essential tools for flexible and optimized app design.
you can try to get XWMHints, it has a member named icon_pixmap. and you can try to find icon file too, detail:
specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
My WM have 3 ways to get icon, detail:
https://sourceforge.net/p/gsmwm/code/ci/master/tree/src/image.c
add throws NoSuchFieldException, SecurityException to method signature
like below
@Test
public void test() throws NoSuchFieldException, SecurityException{
Field treeField = RbtMap.class.getDeclaredField("tree");
System.out.println(treeField.getName());
}
In the idea settings, you need to check that the correct Java version is installed everywhere, for example 17:
⚠️ pandas-profiling package naming was changed. To continue profiling data use ydata-profiling instead! use https://github.com/ydataai/ydata-profiling
How to fix the error for the main use cases
use pip install ydata-profiling rather than pip install pandas-profiling
replace pandas-profiling by ydata-profiling in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
if the pandas-profiling package is used by one of your dependencies it would be great if you take some time to track which package uses pandas_profiling instead of ydata_profiling for the imports
This guide should assist with your ask:
Fallback to application-scoped resources occurs when an application avoids using the container-managed JNDI datasource and instead relies on resources bundled and loaded within the application itself. This can happen due to explicit configuration or as a backup mechanism when JNDI resources fail to initialise.
If the ojdbc.jar is missing from $CATALINA_HOME/lib, Tomcat cannot initialise the JNDI datasource, however, the application can still function if it directly loads the driver from WEB-INF/lib. Many legacy web applications were not designed to use container-managed JNDI datasources by default. They often have hardcoded connection logic as a fallback.
Even with spark.sql.caseSensitive set to False, the schema must match the data structure exactly( As the PySpark documentation shows, this configuration applies to only Spark SQL).
The simple way is to transform the schema dynamically without modifying the data. Here is the working code.
from pyspark.sql.types import StructType, StructField, StringType
schema = StructType([
StructField("name", StringType(), True),
StructField("address", StructType([
StructField("addressline1", StringType(), True),
StructField("addressline2", StringType(), True)
]), True)
])
data = [
{
"name": "some name 1",
"address": {
"addressLine1": "some address line 1",
"addressLine2": "some address line 2"
}
}
]
def transform_keys(obj):
if isinstance(obj, dict):
return {k.lower(): transform_keys(v) for k, v in obj.items()}
elif isinstance(obj, list):
return [transform_keys(i) for i in obj]
return obj
transformed_data = [transform_keys(record) for record in data]
df = spark.createDataFrame(transformed_data, schema)
df.show(truncate=False)
Please let me know if you need more information.
I don't think you're supposed to install modules as dev dependencies, try reinstalling @primevue/nuxt-module as a regular dependency.
Your can use this code middleware group function of web.php
Route::group(['middleware'=>'admin'],function(){
Route::get('/home/dashboard', [HomeController::class, 'dashboard'])->name('home.dashboard');
});
I realize that this question is from a year ago, but in my search for a small tts model, I came across this question, and wanted to share a model that in my experience trains pretty well on just a few hours of audio.
In my case I had to train a language with no prior pre-trained model, so that was a challenge, but still with just a 2 hours dataset of audio and transcript, I managed to get quite intelligible speech out of training it for less than 15 hours on my GPU (RTX 4080 with 16GB of vRam). It was not a model that's ready for the market, but still is quite decent. And that was training on a brand new language for the model.
Not sure if this still has your interest now, a year later, but take a look at Piper TTS (Open Source). That is at least one model that can work pretty well on a small dataset. I would be cautious of expecting a lot, if you only have 20 sentences of audio, but if you train on a language that has a pre-trained checkpoint, I'm pretty sure it would work with somewhat decent quality, if you train on top of that. https://github.com/rhasspy/piper
It is small enough to run on a Raspberry PI, and performs really well. Also take a look at this tutorial, on training the model: https://www.youtube.com/watch?v=b_we_jma220
The easiest straightforward way is to use slices.MinFunc as documented here
https://cs.opensource.google/go/go/+/go1.23.3:src/slices/sort.go;l=79
In your case:
firstYoungest := slices.MinFunc(someSlice, func(a, b patient) int {
return cmp.Compare(a.bodyTemp, b.bodyTemp)
})
What worked for was to set permissions (the accepted answer), then copy file to a Desktop, for example. There I was able to edit it using Xcode. Then I copied the file back using cp command and that's it.
Full command (assuming you are in the directory):
sudo cp /Users/<username>/Desktop/SDKSettings.plist SDKSettings.plist
This error typically indicates an issue with the SSH handshake and also this could happen if the SSH server on the VM is blocked or misconfigured and also I would recommend you to reset the daemon with: service sshd restart and also try to restart the VS code and check if it is working.Also could you please confirm whether you have checked this link?
I developed a Flutter package that will help you with this. Check it out at https://github.com/keepdeploying/conversation_bubbles
The "DeviceTokenNotForTopic" error typically indicates a mismatch between your app’s bundle ID, VoIP certificate, or APNs environment (sandbox vs. production). Start by verifying that the VoIP certificate in the Apple Developer Portal matches your app’s bundle ID exactly and that you’re using a VoIP Services Certificate, not a standard push certificate. Ensure the environment aligns with your certificate type: use the sandbox endpoint (api.sandbox.push.apple.com) for development and the production endpoint (api.push.apple.com) for live use. Double-check that the device token you’re using comes from PKPushRegistry for VoIP pushes and matches your app’s bundle ID without any formatting errors. Test your certificate by exporting it as .p12, converting it to .pem with openssl, and using tools like PushTry or curl to send test notifications. If you resolved trust issues with your Keychain certificate, confirm it’s now fully trusted and re-export the .pem file if needed. If problems persist, consider deleting and recreating the VoIP certificate in the Developer Portal, then updating your server with the new certificate. Also, review APNs logs in the macOS Console app or your server logs for more details. Finally, if all else fails, reach out to Apple Developer Support with detailed information about the issue and the steps you’ve taken to resolve it.
Use hex strings for simplicity when saving colors with @AppStorage
extension Color {
func toData() -> Data? {
try? NSKeyedArchiver.archivedData(withRootObject: UIColor(self), requiringSecureCoding: false)
}
static func fromData(_ data: Data) -> Color? {
if let uiColor = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor {
return Color(uiColor)
}
return nil
}
}
Usage
struct ContentView: View {
@State private var themeColor: Color = .white
var body: some View {
VStack {
Text("Hello, World!")
.padding()
.background(themeColor)
Button("Change Color") {
// Save color
if let colorData = Color.red.toData() {
UserDefaults.standard.set(colorData, forKey: "themeColor")
}
themeColor = .red
}
.onAppear {
// Retrieve color
if let colorData = UserDefaults.standard.data(forKey: "themeColor"),
let savedColor = Color.fromData(colorData) {
themeColor = savedColor
}
}
}
}
}
Just like everyone said when we have import and export in same file we get this TS error.
Sometimes I want to aggregate all file exports in index.ts file and export them again in one place (index.ts)
In this case exporting as default will fix the problem.
import {CONFIG} from './config.ts';
import {COLORS} from './colors.ts';
// and other imports
export default {
CONFIG,
COLORS
}
I think the key problem is on the error message saying StorageContext is not JSON serializable?
To load-balance conferences across multiple FreeSWITCH servers, it's a bit trickier than regular call routing because all participants need to join the same conference instance. If you just route calls to the same conference number from different servers, each server will create its own isolated conference. To allow participants from different servers to communicate, you’ll need to set up conference cascading—essentially linking the conference instances together between FreeSWITCH servers, typically using SIP trunks or bridging.
Kamailio can help route conference calls to the right FreeSWITCH server, but you’ll need to ensure all participants join the same conference instance. For large conferences, you might want to route all calls to a primary server or use cascading to connect multiple servers together.
In short, while Kamailio can load-balance incoming conference calls, you’ll need to implement cascading or link servers together to manage a single, unified conference. For scaling, you may also want to consider using media relays or distributed processing to handle the media between servers.
Do the following checks, maybe this will sort it out:
Case Sensitivity: Make sure your folder is actually named components (all lowercase). If it’s named components but you’re importing it as @/Components/NavBar (with a capital C), that will break. Try updating your import to:
import { NavBar } from "@/components/NavBar"; // lowercase "components"
Check Your tsconfig.json: If you're using the @ alias, check your tsconfig.json file to make sure it includes this under compilerOptions:
"paths": {
"@/*": ["./*"]
}
This configuration ensures TypeScript can resolve paths starting with @/. If it’s not there, add it, save, and restart your TypeScript server. (In VS Code, press Ctrl+Shift+P and search for TypeScript: Restart TS Server.)
File Location: Double-check that NavBar.tsx exists exactly where you’re pointing to. It should be inside a folder named components at the root (or wherever your alias resolves). Also, make sure there are no typos in the file name, and it’s using the correct extension (.tsx or .js).
Clear the Cache: If everything looks fine and it’s still not working, try restarting your Next.js server and clearing the cache. Run:
npm run dev -- --reset-cache
Hopefully, one of these steps fixes the issue! Let me know how it goes! 😊
I've tried to replicate your code using SDL preview-3.1.6 and both the extension number and the required extensions get reported correctly. The steps I followed are:
git clone https://github.com/libsdl-org/SDL.git SDLSDL/VisualC/SDL.slnSDL/include.SDL/VisualC/x64/DebugSDL/VisualC/x64/Debug/SDL3.dll into the same folder as the exe.If after following these steps you get the same error you need to check that you have a good Vulkan installation and that you are linking correctly with SDL.
First thing I would try is to check that the demos in the Vulkan SDK work. You can find them at %VULKAN_SDK%/Demos.
After that I would test a basic triangle sample you can find online. For example:
git clone --recursive https://github.com/SaschaWillems/Vulkan.gitcmake -G "Visual Studio 16 2019" -A x64If the Vulkan Demos or the Triangle Example work it means you have a problem with SDL. Check that you are linking with the correct lib/dll or try with SDL2.
Since the issue with conference_auto_record is happening intermittently, it’s likely due to timing, resource conflicts, or certain call scenarios. To troubleshoot, try adding a small delay (1-2 seconds) in the sched_api command to ensure the conference is fully set up before recording starts. Compare channel variables for successful and failed calls using uuid_dump to spot inconsistencies, especially with the conference_auto_record variable. Turn on detailed logging to catch any errors or unusual behavior during the process. Also, check your system resources (CPU, memory, disk) to rule out performance issues, and test under higher call volumes to see if the problem only happens under load. Finally, make sure the variable is being passed reliably, using export if needed, and enable conference event logging to confirm when recordings are being triggered. These steps should help you pinpoint the cause.
I discovered that using:
@Autowired
private NewGradeHandler newGradeHandler;
I was creating a new instance without the previous connections. So, if this happens to you. in the method you want to consume your WebSocket do:
declare:
@Autowired
private ApplicationContext applicationContext; // Inyecta el ApplicationContext
Use this instance, make sure the String in the getBean method has the sam name as your class:
NewGradeHandler newGradeHandler = applicationContext.getBean("NewGradeHandler",NewGradeHandler.class);
How can I efficiently merge multiple dictionaries in Python, considering Python 3.9+ and older versions?
I'm working on a project where I need to merge several dictionaries into one. The number of dictionaries can vary, and some of them may contain overlapping keys. What is the most efficient way to merge these dictionaries while maintaining the values from later dictionaries when there are conflicts?
For example, I want to merge the following dictionaries:
python
Copy code
dict1 = {'a': 1, 'b': 2}
dict2 = {'b': 3, 'c': 4}enter code here
dict3 = {'d': 5}
And expect the merged result to be:
python Copy code {'a': 1, 'b': 3, 'c': 4, 'd': 5} Bonus: Is there a one-liner for this in Python 3.9 and later, and how can I achieve the same in older versions of Python?
This question touches on the topic of merging dictionaries, including handling conflicts, which is a common task in Python. It also encourages discussion about compatibility between newer and older versions of Python, which is often helpful in a community setting.
I decided to try to fill in all the text variables of the configurator and this turned out to be the answer:
wchar_t pythonPath[MAX_PATH * 3];
wchar_t pythonExe[MAX_PATH];
wchar_t pythonHome[] = L"%localappdata%\\Programs\\Python\\Python38"; // L"C:\\Program Files\\Python38";
(void)swprintf_s(pythonPath, L"%s\\Lib;%s\\DLLs;%s\\Lib\\site-packages", pythonHome, pythonHome, pythonHome);
PathCombineW(pythonExe, pythonHome, L"python.exe");
PyConfig config;
PyConfig_InitPythonConfig(&config);
PyConfig_SetString(&config, &config.executable, pythonExe);
PyConfig_SetString(&config, &config.home, pythonHome);
PyConfig_SetString(&config, &config.pythonpath_env, pythonPath);
PyStatus status = Py_InitializeFromConfig(&config);
if (PyStatus_Exception(status) || !Py_IsInitialized())
{
CMyService::LogPythonError(L"Python initialization failed");
CMyService::LogTextEvent(pythonPath);
PyConfig_Clear(&config);
return false;
}
PyConfig_Clear(&config);
In the Signing & Capabilities tab, make sure the following capabilities are enabled: Push Notifications Background Modes (Remote notifications option must be checked)
delete bun.lockb
and rerun bun run dev
RewriteEngine On
RewriteRule ^(.*)$ /file.php?q=$1 [NC,L,QSA]
The "file.php" handles authentication and logging of access. after successful authentication , it just sends the same data that was requested.
Also using this in file.php for handling different file types-
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$ext = finfo_file($finfo,$q);
header('Content-Type: '.$ext);
There is always a way :-) but maybe sometimes a long one. Please open an issue on github and provide as much information as possible and i will try to help.
Route::prefix('storage')->match(['GET', 'POST'], '{any?}', function (Request $request) {
})->where('any', '.*');
This accepts any number of URIs.
I found this looking for the same thing. Basically My window is 281 columns wide. I'd like for tmux to choose to split along the vertical axis (create side-by-side windows) and balance those until splitting them would create a window that is too narrow (80 columns in my case). Instead I get very wide but short windows which for looking at CLI results is less optimal I feel.
I wonder how hard this would be to code as a new layout?
I had the same problem, updating GeForce Experience helped me, so if anyone else has a similar problem, check if there are any updates available.
On one of my test devices, this sometimes happens. One solution that sometimes works (2 times out of 2 so far) is to reboot the phone, and then no other change is needed (same Mac, same USB C cable, same android studio, etc.), and this time it remembers my previous authorizations.
The point of CQRS as @geek said, is the separation of write and query models. I think you should reconsider using CQRS as it focuses on separation rather than sharing logic. What you are looking for is specification pattern to reuse specs. But these two are not mixable. Read this link from Vladimir Khorikov for more information:
Were you able to resolve this issue? I'm encountering the same problem on Ubuntu. The directory definitely exists, and I can even create a new folder through the Dart code during initialization. However, the main issue persists. I’ve tested the same setup on Windows, and it works perfectly—I'm able to get the devices on the network there. Could this be related to a permission issue on Ubuntu? Any insights would be greatly appreciated!
check in your code some where you using the num_workers>0, change it to 0
def create_dataloaders(train_dir: str,
test_dir: str,
transform: transforms.Compose,
batch_size: int,
num_workers: int = 0
):
Thank you, you are amazing and your post save my day, I apply quantization on YOLO model, the code:
#https://github.com/ultralytics/ultralytics/issues/6676
#https://github.com/onnx/onnx-tensorflow
#https://github.com/onnx/onnx-tensorflow/blob/main/example/onnx_to_tf.py
#https://docs.ultralytics.com/modes/export/#usage-examples
#https://coral.ai/docs/edgetpu/models-intro/#compatibility-overview
import tensorflow as tf
import numpy as np
import os
import cv2
def representative_data_gen():
image_paths = "/..../images/"
op_ = 0
for image_path in os.listdir(image_paths):
op_ = op_ + 1
image = cv2.imread("/.../images/"+image_path)
print("------111-------", image.shape)
image = cv2.resize(image, (640, 640))
print("------222-------", image.shape)
image = np.array(image).astype(np.float32) / 255.0
print("------333-------", image.shape)
image = np.transpose(image, (2, 0, 1)) # (H, W, C) -> (C, H, W)
print("------444-------", image.shape)
image = np.expand_dims(image, axis=0) # Add batch dimension
print("------555-------", image.shape)
if op_ == 100:
break
print(len(image), len(image[0]), len(image[0][0]), len(image[0][0][0]))
yield [image] #[np.array(image[0][0], dtype=np.float32)]# [image]
print(" what next ")
# ... (Load your TensorFlow model)
converter = tf.lite.TFLiteConverter.from_saved_model('/..../teston')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.int8
converter.inference_output_type = tf.int8
converter.representative_dataset = representative_data_gen # Provide a data generator function
tflite_quant_model = converter.convert()
# Save the quantized model
with open('/..../teston/quantized_model2.tflite', 'wb') as f:
f.write(tflite_quant_model)
If you hope to extract "0129" from "AXB1234_CBS0129", =MID(str,XMATCH(TRUE,ISERROR(--MID(str,SEQUENCE(LEN(str)),1)),,-1)+1,999) enter image description here
If I were you I would consider using Celery a powerful asynchronous task queue for Python. It allows you to run functions in the background without blocking your main web request or causing the page to hang.
Here’s a basic approach (You can find more in the docs)
Install Celery and a message broker like Redis
Move your response-generating loop into a Celery task
Trigger the task from your Django view without waiting for it to complete.
On Windows, the shortcut to debug the last run test is: Ctrl+R,Ctrl+T
I delete all node_modules in my monorepo and delete .next folder. Reinstall all packages and run dev script and it work for me.
I've just added Virtual Hosts extension for Google Chrome, and configure it. That's it. (But you need to find the right one).
I had this problem. Since we are interacting with the DOM, have the build render in HTML (rather than CanvasKit) to get the native DOM features.
flutter build web --web-renderer=html
I solved it by following the steps in this link
https://laravel-admin.org/docs/en/model-form-field-management
Apply usernamePassword(credentialsId: env.CREDENTIALS, .. ) to provide selected credential to the script as custom variables, example:
steps {
withCredentials([ usernamePassword(
credentialsId: env.CREDENTIALS,
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD') ]) {
script {
sh( script: "./my_shell_script.sh" ) // echo "$USERNAME, $PASSWORD"
}
}
}
.. see my detailed answer to a similar question: https://stackoverflow.com/a/79197253/1745341
A69D72DF7C6A6590FFE4E35117F7D3F097C8DF12534716BE59F7B9384D10D1BB6F99B589E3DB1B6C3489BB8C40A3661DE4F5FCC06E0B51D5A387996D48688CFA717EE6A05EA5351D591360EB33CFDD69B45C5A72A0D7255A115D6D62242623769A9DBE966C791BB0318087824D57F16AB1EC59F6BC65D2919034CE72D900983A6F69B098F0EF17498DC8ECD7698EE7D6D496EB71306089E96CB0CAFF82E05F066A39A531DE60F7241DA41871964DE45A2C36113C898551667C8E94859D48B3B1665E8BC6536B695228E1BC4C0413D8117DD29C827B4D7CDE8EA7722851458445434B13E4C8B9718BB5338BE32E3A487670EA88F40D76CDCDE5C4040B69084455546AE978F299F4C450CAC8ACCEF9BCAC5730CA503F8940858A97A753CD7DBF24E55E920172E937A350A6BA1DC570B98E8599936A8043E6F47C998D6D73E8ED3E152EB947F291F3735A0AF4F9A3E00CA56D40EDB9CAA1C5FD9F0897566E0B64DE7C9A82E186FCF4A8900A1F79E2D7038075C9AC00CCBA8468F492EE92B024778B4D0FBA93707F5DD94AAF72D86FBFF5F88E7F85313BF2724329ED092DAFF19A14BB1C3364487E089AFE4D062D5AF9B264F36A5B701CB0962CD9C5F0F5F3A8B52D2F989EA92E4B020383861F898DA962C725D3A9C63BD31D38FE95A9AE4CDC4DC782424298B7ED4F014E6852847666AB07FFE06780A95E4BFE39704C0BC67FF16FC87F7EAE7B6C652F5F4CBA54141BA2A50774916A2B150A6503E6C0B13510C2646FF8221B8E2FF2BBAC5AD44A60F03E6579E4B7D83E5383AF76E08420F3A2C0E2EF604C753DA834613EC9CC9E3F3896E426D0FCAE5AC54893A264AEC551C0AB9BEA856EADAC4D2278894751A7E03992925596E4F66A201C8368C1953B75A32D138A75BAEE6E1A5B29F94DCAA19ED5CD1529DDAD7D0A2F18DA65D3045F402CB29CFAFEC0F0F819A0F8BA3FFD528ECFCFD64ADB7B0DFA45C1E0B78D0B14554941C61D3C57F5D1E6FA1EFBDE5D227F8391375A6971CD2A00A64A6169BF23D668B92D90E71C891BAC39269CF1959B7A4CA2E465F154480EBB83B78B5F591D4BAE4F4727095F5BFFDA4B378D6A2E4ADEA5543BAFB426CA712B2B8DE37265700190EEB99C32E665
In reply to shadow:
Using the trail with MySql: I get no response at all. Python simply stops, and I have to start it up again from scratch.
Using ODBC, I get:
exec(open('pythonx.py').read()) 1 2 Traceback (most recent call last): File "", line 1, in exec(open('pythonx.py').read()) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 25, in pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC-stuurprogrammabeheer] De naam van de gegevensbron is niet gevonden en er is geen standaardstuurprogramma opgegeven (0) (SQLDriverConnect)')
Or, after adjusting the driver mentioned
pyodbc.Error: ('HY000', 'The driver did not supply an error!')
You can go to https://lmarena.ai and ask your questions. Choose a suitable model (I liked deepseek-v2.5) and speak to it on the topic. It will provide you with detailed instructions. Good luck.
Maybe you don't need JS there is already a ready-made CSS solution
html {
scroll-behavior: smooth;
}
Changing the system-wide font on the phone programmatically from your app is not officially supported in Android.
"Is there a way preferbly in properties file to instruct spring boot to use it?"
Short answer is NO.
Long answer you need to do it manually for each query you execute.
Also there is no universal way to do it. Solution will be different for different DB.
at first i seperated my folders in app.js into both folders
app
----(main)
----------login
----------profile
----dashboard
-------------page.js
which gets this error, in main there are many pages and i get this error. folder structure in main folder were something like this
app/(main)/profile/page.js
i removed (main) in app.js and transfer all folders in app.js directly, not in brackes (main) and edited like this
app/profile/page.js
the error gone
email format to enable classic editor to get permission to the organizational level on azure devops you have to an email in this format to azure team and this issue will resolve within 2 days
Scheduler sched = StdSchedulerFactory.getDefaultScheduler(); if (!sched.isStarted()){ sched.start(); } String konf = MyConfigClass.getRow(25).getKonfiguration(); Calendar cal = Calendar.getInstance(); cal.setTime(MyParser.stf.parse(konf)); String expression = "0 " + cal.get(Calendar.MINUTE) + " " + cal.get(Calendar.HOUR_OF_DAY) + " ? * MON-FRI"; CronTrigger ct = new CronTrigger(triggerName, group, jobName, group, expression); if (sched.getTrigger(triggerName, Scheduler.DEFAULT_GROUP) != null) { sched.rescheduleJob(triggerName, group, ct); } else { JobDetail jd
There are many architecture patterns and you can follow any one that suits your need. By default android follow mvc but most developers prefer mvvm since its also recommended by google itself.
Since you are new to android I would suggest you to follow the default architecture (mvc) you can place the business logic in your activity or fragment (especially if your building a small app).
First get familiar with android eco system by making different small apps then when you are confident move to advance topics. (Its my opinion, others can agree or disagree).
Incase you prefer to follow other architecture patterns like mvvm then you can put your buisness logic in repository or use clean architecture with mvvm and place your business logic in usecases.
I just managed to solve the problem for me (as far as I can tell with the testing I have done so far). I had the same app with two different ids on my phone, one for development, the other for (beta/performance) testing. They both used the same id resulting in some kind of conflict when accessing/writing data with mmkv. In any case, deleting the preduction build solved the problem. I will simply use two different mmvk storage ids to avoid the problem going forward.
Thanks again @youssdevx for the answer.
a is better (declare before the loop) if You need to reuse the variable outside the loop after it finishes executing.
This mechanism inherently relies on object instances to resolve the method calls at runtime, which is why abstract methods are tied to instance-based polymorphism.
Due to this fundamental difference, it is not possible to define static abstract methods in a class. The runtime has no mechanism to support such behavior, as it would require combining type-level resolution (for static methods) with instance-level polymorphism (for abstract methods), which is not supported in C#.
The implementation has already been written above
Umm, if they want seqnum 1 on every Logon you need to set ResetOnLogon=Y.
In reply to Maurice
Using MySql I use this code:
import mysql.connector
cnx = mysql.connector.connect(user='root', password='Aragorn_2024',
host='127.0.0.1', database='Aragorn')
cur = cnx.cursor()
cur.execute("INSERT INTO sakila.tempora SELECT sysdate()")
for row in cur.fetchall():
print (row[0])
cnxn.close())
Using ODBC, the code looks like this: import pyodbc cnx = pyodbc.connect('DRIVER={Devart ODBC Driver for SQL Server};Server=127.0.0.1;Database=Aragorn;Port=3306;UserID=root;Password=Aragorn_2024') cur = cnx.cursor() cur.execute("INSERT INTO sakila.tempora SELECT sysdate()") for row in cur.fetchall(): print (row[0]) cnxn.close()
It seems the GPT-4 with browsing (GPT-4o) feature is either disabled or temporarily unavailable. You might be selecting the model correctly, but it's defaulting to regular GPT-4, which doesn't have internet access.
Try:
Logging out and back in. Clearing your browser cache. Checking OpenAI status for updates. Contacting OpenAI support for clarification. If browsing is down, responses will be immediate since the model isn't fetching real-time data.
this is what i wrote to myself with regards to snowflake native apps, for future maybe it will be helpful for you
connection.toml file
["myconnection"]
name = "your_cute_name_not_the_same_as_myconnection_above_which_is_the_real_name"
account = "dagass-graawa"
user = "MAGA47"
authenticator = "snowflake"
password = "will_not_tell_you"
Since you need to insert a pair to the map, you can also use emplace instead of insert, so it will construct the pair in-place with the given key and value.
https://en.cppreference.com/w/cpp/container/unordered_map/emplace
map.emplace("string", std::make_shared<ClassB>());
As discussed in the comment section, without knowing ordering of data it would not be possible to retrieve the output, because select does not guarantee it will output in insertion order, unless you have a column to determine it.And every calculation done on grouping similar timestamp could lead to different output in different runs.
Usually Android applications follow MVVM design pattern or sometimes MVP pattern, in addition to those sometimes we add Use Case - Repository - Service a typical app using latest technology and built from the ground up in a decent pattern and ready for unit testing would be like this. Model - View - ViewModel - UseCase - Repository - Service with each one having it's own unique functionality, and all with a Dependency Injection running as well for testing, something like Dagger or Hilt for larger apps, or maybe Koin for smaller ones
Try to change importance: Importance.high to importance: Importance.low,
Please review this doc: AndroidForeground
In addition to the existing solutions, I found that Assimp::Importer::ReadFileFromMemory only read file ptr but no handling outsource file, such as mtl file. It is commented in the library. Instead, I should use Assimp::Importer::ReadFile.