We have an AWS Oracle RDS instance that recently ran out of space with ORA-01653 and ORA-01654 (Unable to extend index X by 8 in tablespace X...) errors. On investigation by running query: select nvl(sum(BLOCKS * BLOCK_SIZE),0)/1024/1024/1024 GB from V$ARCHIVED_LOG where DEST_ID=1 and ARCHIVED='YES' and DELETED='NO'; This shows the output: GB ---------- 26.3267608 This leads me to believe we have 26 GB of Archive logs. Running the following query to get some info on the archive files: select * from V$ARCHIVED_LOG where DEST_ID=1 and ARCHIVED='YES' and DELETED='NO'; We have nearly 5000 rows of
Was working on a site offline and suddenly mysql port clash error came then I had to work on it solution for many hours but no luck. So I took the theme files and database manually from xampp and pasted them into a different computer system with a fresh xampp installed on it. This error is coming now which I have shared above. WordPress database error: [Table 'wp_users' already exists] CREATE TABLE wp_users ( ID bigint(20) unsigned NOT NULL auto_increment, user_login varchar(60) NOT NULL default '', user_pass varchar(255) NOT NULL default '', user_nicename varchar(50) NOT NULL default '', user
Is there a syntax checker for conditionals in PowerShell? This code will skip the conditional if ($templList -ne $null -and $templList.items.Length > 0) { $templID=$templList.items[0].id write-host $templList.items } because the '-gt' is substituted with '>'.
I want to perform batch operations on millions of records from DB. According to the ActiveRecord documentation, there are two methods to perform batch operations, namely #find_in_batches & #in_batches. But, I can't seem to find any difference between them except that one returns an Enumerator and the other an ActiveRecord Relation. So, considering they have different performance, I want to know which performs better in which scenario. And, is there any better way to conditionally update millions of rows except the raw SQL ?
When I run a PowerShell cmdlet, often an output line is wider than will fit in the PS window. In this case, the output terminates with ... and the balance of the line is not displayed. Is there any way of seeing this output? I see this specifically in PowerShell V6 on Windows 10. For example, I run the cmdlet Get-ChildItem Env: and several of the lines output by the cmdlet are too long to fit on the screen.
We need to find out why we get a timeout when we try to connect to snowflake via lambda function using the snowflake connector for python. I found a not really secure way to make it works using a specific parameter (insecure_mode) inside the connector as follow: connection = snowflake.connector.connect(user=sf_user,password=sf_password,account=sf_account,warehouse=sf_warehouse,database=sf_database,schema=sf_schema,insecure_mode=True) We tried using insecure_mode to False and True This piece of code doesn't work and fails with timeout error due probably to oscp checks. connection = snowflake.co
I am sorry for the black marks in the image. I have seen multiple posts suggesting an answer to this problem, Lock unlocks keychain (tried it), pod Update (tried it), clear build(tried it), signing, skip install in build settings(tried it) - None of them actually worked. I built my iOS app in react native with Expo, after which I did expo eject to create the iOS folder for Xcode build and archiving, the build is successful every time and it even runs on the simulator and in my device(iPhone 7) but it always failed to archive by throwing this error - Uncategorised - Command PhaseScriptExecution
I created a function using the deprecated gethostbyname to convert a domain name to an IP address. It works, however this causes lots of warnings and my work wants me to use the newer getaddrinfo. getaddrinfo prints the IP address, the gateway information and more. All I want is the IP address of the domain name. From placing break points in the function I see it is the 5th variable in the structure. My work does not want me to loop 5 times as this could change in the future. I doubt that but still. Is there a way I can access the structure or set - read a flag to get just the IP address of th
I know how to define a new type (class) in a Python extension, but is it also possible to define a class that is derived from a Python class? For example, in Python I could define an "extended" list class like so: class xlist(list): def xsum(self): return sum(self) How would I derive the xlist type from PyList inside a C extension? I wanted to try it out by declaring a PyTypeObject variable and memcpy()ing the contents of the PyList_Type instance into it, but I couldn't figure out how to add the xsum method to the new type.
Using appium + selenium + java. Trying to wait for mobile element with specific text. In mobile application I am login to page, and during login have android.widget.TextView(0) with text, so I am checking this text and if new element android.widget.TextView(0) with different text show up then I can go with other steps. When new element show up old one does not exists For that using following code but then I can see Cached elements 'By.clazz: android.widget.TextView' do not exist in DOM anymore Code: public static MobileElement waitForElementText(AndroidDriver driver, int index, String text, in
I am working in Angular and while writing test cases I need mock data. I want to use a method which will give me desired data in the format which I want to use, let's say for example I have an interface of User
To use the following: class MyClass: def __init__(self): self.title = None @title.setter def title(self, title): print ('TITLE SETTER: %s' % title) self._title = title NameError: name 'title' is not defined What's wrong with the above code?
I am running some test on a mocked (facebook/google) strategy but the problem I have is that when I run those tests one by one it's running but when I run them simultaneously they are not working after the first test. The connection of the application fails immediately. I tried to run them in different describes but nothing has changed. I am using nodejs and @passport-next/passport-mocked as a dependency to help me mock those strategies. import chai from 'chai'; import chaiHttp from 'chai-http'; import passport from 'passport'; import '../config/passport'; import { describe, it } from 'mocha';
I wrote an application to access USB camera and it works fine in Android 9, but it failed in Android 10. I know that start from Android 9, application needs to grant permission from user on accessing camera as well as USB device in order to access USB camera. I found that in Android 10, application can grant permission in accessing camera, but when try to ask permission to access USB camera by UsbManager.requestPermission(), application received “deny” immediately without any prompt to ask user. Is there any other permissions I needed to ask in Android 10?
I am trying to build Gradle using ./gradlew build but during compilation getting following error package not found.In eclipse I am able to run refresh gradle but in command prompt facing the below issue : > Task :compileJava FAILED /Users/Documents/em-cedm-integ-test/src/main/java/com/BaseTest.java:3: error: package io.restassured does not exist import static io.restassured.RestAssured.given; ^ /Users/Documents/em-cedm-integ-test/src/main/java/com/BaseTest.java:3: error: static import only from classes and interfaces import static io.restassured.RestAssured.given; ^ /Users/Documents/em-cedm-in
In some phones the following error is occurring. I am not able to identify the problem by reviewing the log details. log details and xml file contents can view below. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ayush.prana/com.ayush.prana.HomeNew}: android.view.InflateException: Binary XML file line #11: Binary XML file line #267: Error inflating class <unknown> at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2429) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2493) at android.app.ActivityThread.-wrap11(ActivityThread.
I have created a login form with email, password a login button. I am new to flutter, dart and web. How do I integrate the JSON Restfull API for Login and Signup, by using JSON as an object. Also please let me know how to establish a session once the user is logged in. Please let me know how to Skip Login Page if the user has already logged in (by using Flutter and Dart) I have created the login screen and the Signup screen, also the Splash screen //Splash Screen UI Code: import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; im
The Android Virtual Device is connected by default to a Wi-Fi network called "AndroidWifi". I am working with an app that expects to be connected to a Wi-Fi network with a particular name. How can I change the name of the Wi-Fi network from "AndroidWifi"?
I'm new to Salesforce development, but not new to web development (Angular, React, C#, JS, etc...). So it's been very frustrating that I cannot get something so simple as the example below to work. I want to display content based upon a condition of a custom fields value: <aura:component controller="MyTestController" implements="flexipage:availableForRecordHome,force:appHostable,lightning:actionOverride,force:hasRecordId"> <aura:attribute name="oppty" type="Opportunity" /> <article class="slds-card"> <aura:if isTrue="{!v.oppty.MyCustomField__c == 'hello'}"> Hello </aura:if> <lightning:button l
Hi I have this strange problem, I use Oracle db and have miroservice with simple endpoint which has just getById which is extremely fast 3-15ms, but the whole operation took 250ms. I dive into our performance monitor tools and saw that we spend over 200ms for the com.zaxxer.hikari.HikariDataSource.getConnection(). Then I execute 2000 request to that endpoint for 10 minutes and the time drooped to 1.3ms . What happens? When have 5 request per hour it took 200s to get connection, but when have 4 per second 1.3.? Is there a wrong in the configuration spring: datasource: connectionTimeout: 10000 m
I am trying to create a system (with a discord bot, but that's not relevant to this) where it lists infractions of a user, like when it happened, where, why, etc. and I want a "date" datatype that logs the timestamp that it happened. I tried having the DATE datatype to be "timestamp" (as well as "datetime", but the same error happens) conn1 = apsw.Connection('./dbs/warns.db') warns = conn1.cursor() warns.execute( """ CREATE TABLE IF NOT EXISTS warns (id INTEGER PRIMARY KEY AUTOINCREMENT, date timestamp, server string, user string, author string, reason string) """ ) def add_warn(guild: str, us
I am trying to add BigInt support within my library, and ran into an issue with JSON.stringify. The nature of the library permits not to worry about type ambiguity and de-serialization, as everything that's serialized goes into the server, and never needs any de-serialization. I initially came up with the following simplified approach, just to counteract Node.js throwing TypeError: Do not know how to serialize a BigInt at me: // Does JSON.stringify, with support for BigInt: function toJson(data) { return JSON.stringify(data, (_, v) => typeof v === 'bigint' ? v.toString() : v); } But since it c
I am new to kafka, springboot and trying to integrate kafka and elastic search in my springboot application. When I try to run the springboot app I see below error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kafkaListenerContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/kafka/KafkaAnnotationDrivenConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.kafka.config.ConcurrentKafkaListe
I am facing this error while I reading the log using this sudo tail -n 20 /var/log/nginx/error.log; My website is loading but everything is black and when I am looking at console log I see this Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH The full error from previews log looks like this 2019/09/30 16:24:09 [crit] 9103#9103: *81 mkdir() "/var/cache/nginx/proxy_temp/5" failed (2: No such file or directory) while reading upstream, client: MY_IP, server: dev.example.com, request: "GET /bundle.js HTTP/1.1", upstream: "http://127.0.0.1:5000/bundle.js", host: "dev.example.com", referrer:
I have some JSON data in dummyData. I am not sure how can I place the chat bubbles on left and right according to the direction. I am using Material UI and context API. Image for the reference. I don't want to use any library other than material UI. Currently, every chat bubble is positioned to the left. How to position bubbles according to the direction. Code so far (CodeSandbox): import React from 'react'; import makeStyles from '@material-ui/core/styles/makeStyles'; const useStyles = makeStyles(theme => ({ container: { bottom: 0, position: 'fixed' }, bubbleContainer: { width: '100%' }, bubb
I have a flight from Istanbul to Tirana at 3 Dec, 21:40 and my return flight is at 6 Dec, 02:35 local times. My airbnb home is so close to Skanderbeg Square and I'm looking for a public transportation on these hours between these places other than taxi. Based on this wikipedia article, there is "one" line serving Tirana International Airport from and to Skanderbeg Square called Rinas Express. ("Rinas" is the place (or a close place) name where airport locates as far as I understand) The below images shows the working hours for that bus line but it's between 07:00-18:00 so I can't use it since
I am desperately looking for help with writing a strategy in trading view where I'm trying to create a crossover buy and sell signals on 3 different MA's , specifically a 9 ema , 21 ema, and 33 simple moving average. What I'm trying to do is have a long condition present itself when the 9 ema crosses above the 21 ema and also having the same long condition happen when the 21 ema crosses above the 33 simple moving average. I want this to work for both Long's and shorts - using the 9 & 21 as a "Small Signal" while using the 21 and 33 as a "Large Signal" and I can't figure it out... this is the c
Try this command for merge two audio files, but its not working in Android 10.0(Q) while targeting sdk 29. But, this command is completely working on targeting sdk 24 to 28. I am using this library of FFMPEG implementation 'nl.bravobit:android-ffmpeg:1.1.7' "-y", "-i", path1, "-i", path2, "-filter_complex", "[0:0][1:0] amix=inputs=2:duration=longest", "-c:a", "libmp3lame", savedPath my Error log: 2019-09-28 13:48:32.037 16041-16166/com.merger.cut E/FFmpeg: Exception while trying to run: [/data/user/0/com..merger.cut/files/ffmpeg, -y, -i, /storage/emulated/0/Music/song1.mp3, -i, /storage/emulat
I have a wkwebview and I selected the checkbox 'inline playback' which is suppose to make any video in the wkwebview to not autoplay and stay in the webpage and not go full screen. This worked fine for me until my Xcode updated to 11! I now get the following error but it lets the auto playing video to go full screen, when before it wouldn't. 2019-09-27 22:26:43.654625-0400 RPD[3848:126819] [assertion] Error acquiring assertion: <NSError: 0x600000c9c7b0; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> { userInfo = { RBSAssertionAttribute = <RBSLegacyA
I want to know what Python versions I could install using the pyenv install command. pyenv versions lists only installed versions and does not appear to have an option to list available versions. How can I find out what versions of Python I can install with pyenv install?