from pathlib import Path
import shutil
# Create a small dummy video file to simulate a light version
dummy_video_path = Path("/mnt/data/final_house_video_light.mp4")
with open(dummy_video_path, "wb") as f:
f.write(b'\x00' * 1024 * 1024 * 3) # 3MB dummy file
dummy_video_path.name
You're almost there, just a small bug in your filter logic.
You're doing:
setSites(sites.filter((site, i) => index !== site[i]));
But site[i] doesn't make sense. You probably meant:
setSites(sites.filter((_, i) => i !== index));
Trying this but not getting the same error. I am facing something different.
As nothing works for me. I will post my solution for this issue:
Check the logs in xcode or in flutter logs to see what is the problem.
For me it was the flutterfire. I executed the following command:
flutterfire configure
and then It works for me
This error means that you're trying to use the .map() function on a variable that is currently undefined. To fix it, make sure the variable you're mapping over is actually an array by checking if it exists before calling .map(), using optional chaining like data?.map(...) or providing a default value like (data || []).map(...).
I had the same issue, then I tried web version of telegram and it worked
Check my code in github with a working example: https://github.com/wolfdev1337/nextjs-socketio
Take a look at this page. Here is a very well explained solution for animations with different speed at different Monitor Framerates enter link description here
Turns out
snowflake_region = "us_east_2"
is the issue. I did not realize that snake_case'd regions means Azure and kebab-case'd means AWS
Here is the documentation for Spark configuration options: https://spark.apache.org/docs/3.5.5/configuration.html
And here are options for Parquet:
https://spark.apache.org/docs/3.5.5/sql-data-sources-parquet.html
You can also find other formats' options in the list on the left.
The links are for 3.5.5, but I assume they'll be the same or similar for the older/newer versions.
Mine worked with premium license and have 1. installed the gateway ensure that you publish your report on your premium workspace (Diamond icon there you will see) just publish on your workspace.
How to publish you do this File > Publish > Publish to Power BI
After this ensure you link your dataset to the gateway let's say its SQL Server right add your password etc to link it ensure its correct.
Under dataset settings you have to enable "Schedule Refresh"
The catch here is the user should have Powerbi Pro or Premium
For me, the answer was in the error:
Unable to create a ConnectionFactory for 'ConnectionFactoryOptions{options={database=boot, host=localhost, createDatabaseIfNotExist=true, driver=mysql, useUnicode=true, password=REDACTED, useJDBCCompliantTimezoneShift=true, useLegacyDatetimeCode=false, port=3306, user=root}}'.
Available drivers: [ mariadb, pool ]
Its was looking for a mariadb DRIVER(NOT mysql). I merely had to change the url to point to the mariadb driver.
I would suggest when seeing this error to go back over your config and see what you missed.
Claro, aquĂ tienes una mejor redacciĂłn:
âUna soluciĂłn es simplemente ejecutar el servidor con:
php artisan serve --host=0.0.0.0 --port=8001
Luego, consumir la API utilizando la direcciĂłn IP local (IPv4) que obtienes ejecutando el comando ipconfig
.â
I tried the above answer using:
rownames(mat.z)[row_order(ht)]
Error in rownames(mat.z)[row_order(ht)] :
invalid subscript type 'list'
And got this error so instead I did:
ht <- draw(ht)
order <- row_order(ht)
order_unlist <- unlist(order)
rownames(mat.z)[order_unlist]
I ran into this problem. After much investigation it turned out, in my case, that our works security configs (firewall and layers of VMs) was somehow preventing the emulator from sending control signals to the dev server. The fix for me was to run the dev server in a tunnel.
If you're trying to clear HSTS settings for localhost
in Chrome, this guide explains it step by step using
https://aspdotnetpb.blogspot.com/2024/11/how-to-use-chromenet-internalshsts-to.html
It helped me fix issues with Chrome forcing HTTPS on local projects.
As per the React Native docs at the time of writing:
If you already have a JDK on your system, we recommend JDK17. You may encounter problems using higher JDK versions.
As you can see from other answers, this may change as React Native is updated.
This is thrown by the timm
package. Checkout this line in the source code.
For me it was thrown for version timm==0.5.4
. Upgrading the latest version (via pip install --upgrade timm
) solved the issue.
It can be done. The backend java programs have to be called through another scripting interface. From your front end, you could call PHP which intern calls your java wrapped in bash to perform strictly backend tasks, CRUD, data processing, cross platform RMI, email processing, and anything which you could do with java. Your java environment has to be well resourced.
With the resources well in place, speeds and reliability would be attained better than working with Spring. Spring has its own overheads.
I did this on Linux and Unix. I have never tried it on Windows.
Maybe check if the gateway was installed correctly? or Sometimes its not mapped. I did encountered once before that my password was expired in the datasource that's why it didnt refreshed.
did you solve it?. I am facing the same issue
This is not exactly what you asked for, but this is a popular question and more people may need what I needed.
To get the variable's name only, without its value (Python 3.8 and above):
def varname(var_name_from_fstring: str) -> str:
return var_name_from_fstring.split("=", maxsplit=1)[0]
my_variable = "blah"
name = varname(f"{my_variable=}")
print(name)
# Prints "my_variable"
For me, I was using GraalVM as a JDK on Mac M1. Moving to Azul JDK 17 as described in the official docs helped.
file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/Downloads/%D0%BD%D0%BE%D0%B2%D0%B0%D1%8F%20%D0%BF%D0%B0%D0%BF%D0%BA%D0%B0/%D0%9C%D0%BE%D0%B9_%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9_%D0%BC%D0%B8%D1%80_Zulya_%D0%B5%D0%B6%D0%B5%D0%B4%D0%BD%D0%B5%D0%B2%D0%BD%D0%B8%D0%BA.docx%204.download
There is my example how to make the isometric tiles with multiple layers (Z):
https://love2d.org/forums/viewtopic.php?p=261907#p261907
You are need the depthOffset to make the right y-on-screen offset for every Z layer.
try to increase docker resources through docker desktop and it will fix the issue
Here is a quick fix that works for windows:
On the package.json file edit the start command
"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
We also ended up getting this error in the following fashion.
AspNetCore 8.0 app compiled to be an x86 application
A newer version of AspNetCore was loaded for x64 than for x86 on the server (from a patch)
The resulting scenario was that it saw that the newer version was there, but in trying to run with the latest, but did not recognize that the latest was not the same architecture as the application.
If you're working with multiple projects in Visual Studio and want to open them in a single browser windowâsuch as when dealing with a front-end/back-end setupâI've written a detailed guide that might help. It walks through how to configure your launch settings and set up project dependencies so everything runs seamlessly together in one browser tab. You can check it out here: Open Multiple Projects in One Browser - Visual Studio. Hope it helps someone facing the same challenge!
Yes, Same as in mobile apps and desktop.
Iâve worked with Apache NiFi for similar use cases, and it can be quite effective, depending on your ETL requirements.
What works well with NiFi:
It easily connects to HDFS and Oracle.
Visual interface makes it easy to design and manage data flows.
Good for tasks like filtering, routing, and basic transformations.
Built-in scheduling and monitoring features are helpful.
Limitations to keep in mind:
Not ideal for complex transformationsâyou may need to use external tools like Spark.
Lacks advanced data quality, metadata, and governance features found in tools like Pentaho or DataStage.
Enterprise support and version control are more limited unless you're using NiFi within a commercial platform like Cloudera.
For data quality, governance, version control, and enterprise support, I would suggest using Data Flow Manager. With this, you can deploy NiFi data flows using its graphical user interface, version control your NiFi data flows, and get support all the time from experts.
The issue was I had wrapped the add_filter
calls inside an is_admin()
check â which does not work with REST API. I suppose the check wasn't essential anyway, since upload attempts from unauthorized users should be rejected regardless of mime-type.
I have no idea where I came across this bit of information but it was in regards to jQuery and rails.
... Make sure you do not have
defer: true
There's a great library for this now (I know the question was asked 13 years ago!)
But anyone who is still looking..
I have the same problem. .... .
import pandas as pd
pd.set_option('display.max_colwidth', None) # Disables truncation
df = pd.read_csv("your_data.csv") # Load your dataset
df["article_column"] # Now the full text will display
import { default as thunk } from "redux-thunk"; // Updated import
Does anybody have an update on the future of using VS Code for Office Scripts?
Do we know why Microsoft pulled their support? If they aren't interested in supporting Office Scripts, I am reluctant to use it....
Here is a reference to issue on the nextjs tutorial that had the same problem. https://github.com/vercel/next.js/discussions/76822
My name and address me know my all many times Cash Wise Diary ok545992917 my house nombar 24 .10 Baiynes Abudabe
Ok
Welcome to Gboard clipboard, any text you copy will be saved here.Tap on a clip to paste it in the text box.S
Nice one! I "cheated" and declared (but never instantiated) several RichtextBoxes just to hold the rich-text for several different 'high level types' (data for All-Time, data for filtered by Date-Span and other 'user types'). Then, depending on the "view" I wanted, I simply copy the appropriate (pre-filtered on rtf-file-load and parse) richextbox..rtf to the one and only visible and instantiated richtextbox.
I know it's NOT EXACTLY what you were doing, but it's prettry similar in nature.
NIce one with the stream though!
You should build your SDK_CONTAINER_IMAGE first and use it like this
--image $SDK_CONTAINER_IMAGE
not
--image-gcr-path
Got this error simply because the wrong schema was selected in DataGrip.
There is a tool that should perfectly do what you want: LgpCli on GitHub.
It has two modi:
a) find, inspect and set policy (like GPEdit) this can also help to create the commandline
b) commandline - just use this in your script to set the policy
so your final command would be:
LgpCli disable wuau.AutoUpdateCfg Machine
There is also a page that should explain how policies work: Policies Description
Disclaimer: I'm the author of that tool, however it is not commercial, free to use and open source.
httpx[http2]
just adds the h2
package try adding it manually by :
python3 -m pip install --user httpx h2
and i recommend to use virtual environment as it avoids any system level limitations:
python3 -m venv venv
source venv/bin/activate
pip install httpx[http2]
it should work now
Quick answer, this will add the file and commit message
git add path/to/filename && git commit -m "your commit message"
If you use esbuild
to build your typescript, you need to use something like https://github.com/thomaschaaf/esbuild-plugin-tsc
so esbuild
converts decorators.
You can put a macro in the sheet tab that upon edit moves any data to the corresponding cell in the other sheet, if that is what you are looking for.
I've not done it, so I don't have concrete guidance for you - but if you search stack overflow for sheet level macros that execute upon edit you'll likely get something that does what you are looking for.
For me (on ubuntu), worked running:
sudo apt-get install libpq-dev
and then running sudo pip install psycopg2
, If you run without sudo it won't work.
That package supports Handlebars a11y: https://www.npmjs.com/package/ember-template-lint
You can check this documentation. It explains well about Class Based Views in Fast API. And I guess it's official documentation, so this will gonna be correct way to use Classes for routers.
https://fastapi-utils.davidmontague.xyz/user-guide/class-based-views/
I have done everything in here. I have even gotten in touch with apple support. But it all comes down to this.
You do not have to do all three set of steps down here. It goes from less intrusive to a more intrusive approach.
Make sure your phone is up to date.
Make sure the needed support for your phone's version exists on your computer.
Make sure you have your phone config set correctly.
IN CASE STEPS 1-3 did not work:
Reset your computer's configs (obs: this is not formatting)
Reset your phone's configs (obs: this is not formatting)
This is a more extreme scenario
(back up your computer) Format your [mac] computer
(back up your phone) Format your [iOS] iPhone
Update your app's icon assets in Xcode:
Ensure Light, Dark, and Tinted Icons: Add a standard light mode icon, a dark mode icon with a transparent background, and a tinted icon in grayscale with a solid black background.
Update Contents.json: Modify the Contents.json file in your AppIcon.appiconset folder to include entries for these new variants, specifying their appearances (e.g., "luminosity," "dark," "tinted").
Rebuild and Test: Rebuild your app in Xcode and test it on the iOS 18 simulator to ensure the issue is resolved. Then, re-run your Appium tests.
Check Apple's Human Interface Guidelines for detailed app icon requirements (App Icons).
If the issue persists, verify your Xcode project settings and ensure compatibility with Xcode 16.0.0 and macOS 15.4.
I've upgrade Kotlin version and solved my problem
This should be resolved in the latest v8.7.1 which is now available in the pre-release packages
Even if you do not have --system-site-package, I can use TensorRT from conda by following the steps below. However, this method does not allow you to use TensorRT installed with apt directly from a conda environment.
$ conda create -n trt_exec python=3.10
$ conda activate trt_exec
$ pip install nvidia-pyindex
$ pip install nvidia-tensorrt
$ pip install scipy
$ pip install opencv-python
Have you checked your extensions or tried using Incognito Mode?
It means that your are using !
on a null value
example:
bool? b;
try {
print(b!);
} catch (e) {
print(e);// this will print the error you got
}
the use of !
on a nullable value, means that you are sure that the value is not null
Solved using ChatGPT
=BYROW(Q10:Q55, LAMBDA(assetGroup,
SUM(
FILTER(
Tbl_Assets[WDV on Year 0],
(Tbl_Assets[Asset Group as per Co. Act (SCH II)] = assetGroup) *
((Tbl_Assets[Disposal Date] > StartDate) + (Tbl_Assets[Disposal Date] = 0)),
0
)
)
))
I know this is way old, but I got here via a search. Stop an app by deleting the <project>-anchor.txt
file in the <AnypointStudio path>\plugins\org.mule.tooling.server.<your server version>\mule\apps
folder.
First, thanks for that.
Second did you manage to do this?
"you can enable the mule run time in preferences tab of anypoint studio.
That is easiest way to stop specific applications on anypoint studio"?
Harshank Bansal provided the correct answer. If you want to post your comment as an answer I will mark it correct.
Adding those imports in the global.xml made the XMLs visible to each other.
Unfortunately for us, once the flows were all universally visible, we learned that a universal logging component that we have in all of our Mule 3 projects is very much incompatible with Mule 4 so we may just end up doing a ground up re-write after all.
You have a typo in your
def __int__(self):
Please set up your environment properly using the CLI, and make sure to run the script from the exact path or folder.
If youâre using a Windows machine, ensure that the terminal is Command Prompt (CMD) instead of PowerShell.
Starting with Bootstrap 4, the '.col-xs-*' class is no longer used. For reference, see the official blog post:
Back in Bootstrap 3, .col-xs-* was how you handled layouts for extra small screens. But with Bootstrap 4 and up, things got simpler thanks to a mobile-first approach.
You donât need a special class for extra small devices anymore. Just use .col-* without any breakpoint prefixâit automatically applies to screens smaller than 576px.
If you're working with different layouts for various screen sizes, you can still use classes like .col-sm-*, .col-md-*, and so on for small, medium, and larger devices. For extra small (XS) screens, just stick with .col-* and set the value you need.
For more details, refer to the Bootstrap 4 Grid documentation:
If this is an issue for anyone else I found that the boilerplate CSS that was being imported was overwriting the behaviour. I would double check there isn't a top level css file with body CSS that is taking priority.
Even I faced the same problem a few hours ago.
Got to know the sdfx
command is old and not supported in certain OS.
Try using sf
instead.
Worked for me!
Is your Apache vhost appropriately mapped and confiigured for OpenProject? Can you provide the conf details?
In my case, check git modified file if the config is misconfig.
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="com.android.settings"
android:path="/settings"
android:scheme="com.android"/>
</intent-filter>
If you want to rename "Email address" to something else (e.g., "Your Email"):
add_filter( 'woocommerce_checkout_fields', 'custom_email_label_checkout' );
function custom_email_label_checkout( $fields ) {
$fields['billing']['billing_email']['label'] = 'Your Email';
return $fields;
}
This error occurs when the Chrome extension is enabled. If you disable it, the error is gone. This happens in Next.js 15.2
External hyperlinks to Excel files may break if they are moved, renamed, or have their path changed.
I was testing codex cli from openai on windows. Reinstalling Git to latest version resolved my issue.
i use httpclient instead of Sardine and it work
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
import matplotlib.pyplot as plt
import numpy as np
# Simulated data
time = np.arange(0, 10, 0.5)
hydrogen_rate = np.random.normal(loc=2.0, scale=0.2, size=len(time))
energy_consumption = np.random.normal(loc=50, scale=5, size=len(time))
voltage = np.random.normal(loc=1.8, scale=0.05, size=len(time))
efficiency = 100 / energy_consumption # Simplified efficiency metric
# Create subplots
fig, axs = plt.subplots(2, 2, figsize=(12, 8))
fig.suptitle('Hydrogen Production Data Overview')
# Chart 1: Hydrogen Production Rate Over Time
axs[0, 0].plot(time, hydrogen_rate, marker='o', color='green')
axs[0, 0].set_title('Hydrogen Production Rate Over Time')
axs[0, 0].set_xlabel('Time (hours)')
axs[0, 0].set_ylabel('Hâ Rate (NmÂł/h)')
# Chart 2: Energy Consumption per kg of Hâ
axs[0, 1].plot(time, energy_consumption, marker='s', color='blue')
axs[0, 1].set_title('Energy Consumption per kg Hâ')
axs[0, 1].set_xlabel('Time (hours)')
axs[0, 1].set_ylabel('Energy (kWh/kg)')
# Chart 3: Voltage vs Time
axs[1, 0].plot(time, voltage, marker='x', color='red')
axs[1, 0].set_title('Cell Voltage Over Time')
axs[1, 0].set_xlabel('Time (hours)')
axs[1, 0].set_ylabel('Voltage (V)')
# Chart 4: Efficiency Over Time
axs[1, 1].plot(time, efficiency, marker='^', color='purple')
axs[1, 1].set_title('Efficiency Over Time')
axs[1, 1].set_xlabel('Time (hours)')
axs[1, 1].set_ylabel('Efficiency (kg Hâ/kWh)')
plt.tight_layout(rect=[0, 0.03, 1, 0.95])
plt.show()
Yes..
First, some tables for testing.
IF OBJECT_ID('FIFO_BUYING') IS NOT NULL DROP TABLE FIFO_BUYING;
IF OBJECT_ID('FIFO_SELLING') IS NOT NULL DROP TABLE FIFO_SELLING;
CREATE TABLE FIFO_BUYING (
ID INT IDENTITY(1,1) PRIMARY KEY,
[DATE] DATETIME,
UNIT_PRICE DECIMAL(18,2),
QUANTITY DECIMAL(18,2)
);
CREATE TABLE FIFO_SELLING (
ID INT IDENTITY(1,1) PRIMARY KEY,
[DATE] DATETIME,
UNIT_PRICE DECIMAL(18,2),
QUANTITY DECIMAL(18,2)
);
INSERT INTO FIFO_BUYING ([DATE], [UNIT_PRICE], [QUANTITY]) VALUES
('2023-01-01 16:01', 100.0, 2.0),
('2023-01-08 13:40', 105.0, 4.0),
('2023-01-08 14:11', 102.0, 2.0),
('2023-01-12 14:00', 101.0, 7.0),
('2023-01-14 17:55', 103.0, 5.0);
INSERT INTO FIFO_SELLING ([DATE], [UNIT_PRICE], [QUANTITY]) VALUES
('2023-01-02 10:21', 150.0, 1.0),
('2023-01-08 13:45', 140.0, 3.0),
('2023-01-10 17:30', 145.0, 3.0),
('2023-01-10 17:55', 130.0, 5.0),
('2023-01-15 12:15', 135.0, 6.0);
before we join tables we will need cumulative quantities. that will help us pair right rows with each other. elimineting unnecessary matches is the key for performance. there are many ways to do it but Its simple with "SUM(...) OVER (ORDER BY ...)".
The join will do all the job. so i need to explain this a little further.
WITH OrderedBuy AS (
SELECT TOP 100 PERCENT
*,
SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
FROM FIFO_BUYING
ORDER BY [DATE]
),
OrderedSell AS (
SELECT TOP 100 PERCENT
*,
SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
FROM FIFO_SELLING
ORDER BY [DATE]
)
select *
FROM OrderedBuy B
JOIN OrderedSell S
ON (B.CUMULATIVE_QUANTITY - B.QUANTITY) < S.CUMULATIVE_QUANTITY
AND (S.CUMULATIVE_QUANTITY - S.QUANTITY) < B.CUMULATIVE_QUANTITY
First, what does CUMULATIVE_QUANTITY - QUANTITY mean?
That gives us the starting point of that rowâs block. So:
B.CUMULATIVE_QUANTITY - B.QUANTITY â Where this buy batch starts
B.CUMULATIVE_QUANTITY â Where it ends
Same idea for selling:
S.CUMULATIVE_QUANTITY - S.QUANTITY â Sell batch starts
S.CUMULATIVE_QUANTITY â Sell batch ends
Now the join becomes:
Thatâs what this checks:
Which is classic interval overlap logic. Youâve probably used it before in date ranges or scheduling overlaps.
Just replace "date ranges" with "quantity ranges"
Thatâs all.
Note that having precalculated cumulative quantities will impact performance dramaticly
and final query will be like;
WITH OrderedBuy AS (
SELECT TOP 100 PERCENT
*,
SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
FROM FIFO_BUYING
ORDER BY [DATE]
),
OrderedSell AS (
SELECT TOP 100 PERCENT
*,
SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
FROM FIFO_SELLING
ORDER BY [DATE]
)
SELECT
B.[DATE] AS BuyDate,
B.UNIT_PRICE AS BuyPrice,
B.QUANTITY AS BuyQty,
B.CUMULATIVE_QUANTITY AS BuyCumQty,
S.[DATE] AS SellDate,
S.UNIT_PRICE AS SellPrice,
S.QUANTITY AS SellQty,
S.CUMULATIVE_QUANTITY AS SellCumQty,
GREATEST(0,
LEAST(B.CUMULATIVE_QUANTITY, S.CUMULATIVE_QUANTITY)
- GREATEST(B.CUMULATIVE_QUANTITY - B.QUANTITY, S.CUMULATIVE_QUANTITY - S.QUANTITY)
) AS ProcessQty,
ROUND((S.UNIT_PRICE - B.UNIT_PRICE) *
GREATEST(0,
LEAST(B.CUMULATIVE_QUANTITY, S.CUMULATIVE_QUANTITY)
- GREATEST(B.CUMULATIVE_QUANTITY - B.QUANTITY, S.CUMULATIVE_QUANTITY - S.QUANTITY)
), 2) AS Profit
FROM OrderedBuy B
JOIN OrderedSell S
ON (B.CUMULATIVE_QUANTITY - B.QUANTITY) < S.CUMULATIVE_QUANTITY
AND (S.CUMULATIVE_QUANTITY - S.QUANTITY) < B.CUMULATIVE_QUANTITY
ProcessQty is something else to be careful with. there are ways more than one to calculate it.. like using LAG function to check with the qty on previous row but you still need something for first row..
PROCESS_QTY= ABS(Lag(B.CUMULATIVE_QUANTITY, 1) OVER(ORDER BY S.DATE ASC)-Lag(S.CUMULATIVE_QUANTITY, 1) OVER(ORDER BY S.DATE ASC))
at the end this is the aswer of "How many units from this buying row match with this selling row?". Nothing special.
You started with a Vue 2 Options API component using: vue-chartjs's component, some mixins,and props for chart data. To convert this Vue 2 component into a class-based component using TypeScript, youâll want to use "vue-class-component" and "vue-property-decorator". These are two decorator-based libraries that enable class-style Vue development. "vue-class-component" allows defining components as ES6 classes. "vue-property-decorator" gives us decorators like @Prop, @Emit, @Watch, etc.
Firstly, you will have to install dependencies if you haven't already. Type this in your terminal:
npm install vue-class-component vue-property-decorator --save
The solution to this is outlined below:
<script lang="ts">
import { Component, Prop, Mixins } from 'vue-property-decorator'
import { Line } from 'vue-chartjs'
import { chartLast30Days, chartStylingMethods } from '#/mixins'
import { myChartOptions } from '#/const/charts'
@Component
export default class MyLineChart extends Mixins(Line, chartLast30Days, chartStylingMethods) {
@Prop({ type: Array }) chartPointsDownloads!: any[]
@Prop({ type: Array }) chartPointsPlays!: any[]
@Prop({ type: Array }) chartPointsSales!: any[]
mounted() {
this.renderChart({
labels: ['Jan', 'Feb', 'Mar'],
datasets: [
{
label: 'Downloads',
data: this.chartPointsDownloads,
backgroundColor: '#f87979',
}
]
}, myChartOptions)
}
}
</script>
@Component makes the class a Vue component. extends Mixins(...) allows us to inherit from line (from vue-chartjs) and your mixins (chartLast30Days, chartStylingMethods). So instead of "extends: Line" and "mixins: [...]", we do both using Mixins() from "vue-class-component". @Prop are the props passed to the component, just like in your original props: {...} block. mounted() is the lifecycle hook that runs when the component is inserted into the DOM. renderChart() comes from Line, and lets you draw the chart with custom data. You pass in a dataset (from props) and your myChartOptions.
If you are on Mac try going to Volumes
cd /Volumes
then lookup what volumes are currently in there
ls
if you see your directory then navigate to it
cd YOUR_DIRECTORY_NAME
if this works get the path
pwd
Try that! Worked for me to run a local node tool across my local network.
This is actually a question. How can the technique of using MapViewOfFileEx to map at a particular address be safely used? From my tests, admittedly limited, the memory address in question has to be free. Whatâs to stop another thread from scooping up the virtual addresses?
I was trying to resolve this one, but there are problems. Have a look at this code snippet:
#include <stdio.h>
#include <stdlib.h>
#include <xcb/xcb.h>
#include <xcb/shm.h>
#include <xcb/xcb_image.h>
#include <sys/shm.h> // shmget
#include <unistd.h> // usleep
#include <inttypes.h> // PRIu8
#include <wchar.h> // wmemset
int main(void) {
xcb_connection_t *c;
xcb_screen_t *s;
xcb_window_t w;
xcb_gcontext_t g;
xcb_generic_event_t *e;
uint32_t mask;
uint32_t values[2];
int done = 0;
xcb_rectangle_t r = { 20, 20, 160, 160 };
int ww= 600, wh = 400, wx = 800, wy = 500;
xcb_rectangle_t wr = { 0, 0, 800, 600 };
c = xcb_connect(NULL,NULL);
if (xcb_connection_has_error(c)) {
printf("Cannot open display\n");
exit(EXIT_FAILURE);
}
const xcb_setup_t* setup = xcb_get_setup(c);
s = xcb_setup_roots_iterator( setup ).data;
// create black graphics context
g = xcb_generate_id(c);
w = s->root;
mask = XCB_GC_FOREGROUND | XCB_GC_GRAPHICS_EXPOSURES;
values[0] = s->white_pixel;
values[1] = 0;
xcb_create_gc(c, g, w, mask, values);
// create window
w = xcb_generate_id(c);
mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
values[0] = s->black_pixel;
values[1] = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_KEY_PRESS;
xcb_create_window(c, s->root_depth, w, s->root,
(s->width_in_pixels / 2) - (600 / 2),
(s->height_in_pixels / 2) - (400 / 2), 600, 400, 10,
XCB_WINDOW_CLASS_INPUT_OUTPUT, s->root_visual,
mask, values);
xcb_map_window(c, w);
// An attempt in mask preparation
xcb_pixmap_t cm1 = xcb_generate_id( c );
xcb_create_pixmap (c, 1, cm1, w, ww, wh); // depth = 1
// xcb_gcontext_t gm1 = xcb_generate_id(c); // <- 3
// mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND;
// values[0] = s->white_pixel;
// values[1] = s->black_pixel;
// xcb_create_gc(c, gm1, cm1, mask, values);
// The buffer where all the drawing shall be done
xcb_pixmap_t pix = xcb_generate_id( c );
xcb_create_pixmap (c, s->root_depth, pix, w, ww, wh);
xcb_gcontext_t fill = xcb_generate_id(c);
mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_CLIP_MASK;
values[0] = 0xdc143c;
values[1] = s->black_pixel;
values[2] = XCB_NONE; // <- 2
xcb_create_gc(c, fill, pix, mask, values);
// xcb_change_gc(c, fill, XCB_GC_CLIP_MASK, (uint32_t[]){ cm1 }); // <- 1
// xcb_clear_area(c, 1, cm1, 0, 0, ww, wh);
xcb_flush(c);
// event loop
int dx = 1, dy = 1;
xcb_get_geometry_cookie_t geom;
xcb_get_geometry_reply_t *geo;
int gg = 0;
geom = xcb_get_geometry(c, w);
geo = xcb_get_geometry_reply(c, geom, NULL);
ww = geo->width; wh = geo->height;
free(geo);
xcb_expose_event_t *ex_event;
while (!done) {
usleep(10000); // Around 100 FPS
if (r.x + r.width == ww)
dx = -1;
else if (r.x == 0)
dx = 1;
if (r.y + r.height == wh)
dy = -1;
else if (r.y == 0)
dy = 1;
r.x += dx;
r.y += dy;
// The above is just for moving the rectangle around
e = xcb_poll_for_event(c);
// Below: paint background, rectangle - and render it all
xcb_change_gc(c, fill, XCB_GC_FOREGROUND, (uint32_t[]){ 0x000000FF });
xcb_poly_fill_rectangle(c, pix, fill, 1, &wr);
xcb_change_gc(c, fill, XCB_GC_FOREGROUND, (uint32_t[]){ 0xdc143c });
xcb_poly_fill_rectangle(c, pix, fill, 1, &r);
xcb_copy_area(c, pix, w, g, 0, 0, 0, 0, ww, wh);
xcb_flush(c);
// printf("Flushed "); // <- 4
if (e) {
switch (e->response_type & ~0x80) {
case 0:
puts("Unfortunately, a request had no reply");
break;
case XCB_DESTROY_NOTIFY:
puts("Destruction!");
break;
case XCB_EXPOSE:
xcb_flush(c);
break;
case XCB_KEY_PRESS: // exit on key press
done = 1;
break;
case XCB_CLIENT_MESSAGE:
done = 1;
break;
default:
printf("Unrecognized event %"PRIu8"\n", e->response_type);
break;
}
}
free(e);
}
xcb_free_pixmap(c, cm1);
xcb_free_pixmap(c, pix);
xcb_disconnect(c);
exit(EXIT_SUCCESS);
}
Now if you run it âas isâ you'll see the red rectangle moving around on a blue background (that's why I'm polling for events). Then I'd like to use just any mask simply to find out, how it is supposed to work. The scarce docs say that the mask can be attached to pixmap on creation time, or it can be done later using xcb_change_bc.
From what I see, either the docs are wrong, or I'm doing something wrong (or maybe there's a bug in XCB?) â because these methods aren't equivalent. You can test it by either removing the comment from the beginning of the line marked with â<- 1â, or by adding a parameter (instead of XCB_NONE) in the line marked with â<- 2â. In the latter case you'll notice plenty of âUnfortunately, a request had no replyâ notices in your console, and the window becomes very unresponsive (cannot be closed with a keypress instantly, one has to wait quite a few seconds) â obviously something goes very wrong in that case.
By uncommenting the line marked with â<- 1â it looks somewhat better â there's no more that plenty of annoying messages â still there's also no more moving rectangle. Indeed in fact I didn't prepare proper black-and-white mask of depth 1 (just the uninitialized pixmap of that depth), still the created pixmap means allocating some memory area, where plenty of zero and non-zero values are present, so I could expect the moving picture like before, but looking like there was some raster imposed over it (some pixels visible, most of them not). Although indeed the image got spoiled in kind of that way, there are two unexpected effects in addition:
I can see (on my screen) a few green dots in addition â IMHO I shouldn't see there any other colour but blue and red.
There's no more movement of the rectangle! Somehow it got stuck now. Why? The loop doing recalculation and flushing seems to be still circling around, which can be verified by uncommenting the line marked with â<- 4â.
I was also trying to add the âcontextâ to that mask and use it later also to paint it black and white (see the commented out block marked with â<- 3â), but somehow it didn't help neither. Unfortunately, there's no proper docs for XCB (since more than 20 years of its development), neither any decent tutorials (nor code snippets featuring that transparency thing, that one could google for).
Anyone could paste a âworking exampleâ that could be used to learn how in XCB actually we can take advantage out of transparency using masks â and how the masks are properly created and used? The suggestions I'm writing under, are vague.
Thanks in advance! :)
So, enron is saying that the parkers are striving to make peace and order for a place in dc to make a cake walk for jimmy carter carver buren and parker. In retrospect, one can believe that the ideas of law and order is that of obedience. Who says anything else by law and creation. For manifest destiny is of alignment of laws created by man to creat obdedience, the new order. Who cares about the ideas of society, for the fullfillment of the statistics of the status quo oif questions is that of condition. Can we be at peace with our seleves, that we shall not be enslaved by man but by our souls alone?
The documentation says that Windows isn't supported: https://druid.apache.org/docs/latest/tutorials/ - see the Prerequisites section.
I have two queries that work in Cosmos. But now I want to combine them into one query. How do I do that?
As you want to combine the two queries, in the first query it is retrieving only the data which is "id = LanguageList-V3"
and in the second query it is retrieving the data having languageId = "af"
. Means after combining two queries using JOIN, it will print only the data of id having LanguageList-V3
and with languageId = "af"
.
Also, you mentioned There are other version of the same list in the table
, below is the data stored in my cosmos db container with some other versions along with id "LanguageList-V3"
such as "LanguageList-V1"
and "LanguageList-V2"
:
[
{
"id": "LanguageList-V1",
"type": "LanguageList",
"version": 1,
"createdAt": "2023-01-01T00:00:00Z",
"Languages": [
{
"languageId": "af",
"englishName": "Afrikaans",
"nativeName": "Afrikaans",
"active": true
},
{
"languageId": "es",
"englishName": "Spanish",
"nativeName": "Español",
"active": true
}
]
},
{
"id": "LanguageList-V2",
"type": "LanguageList",
"version": 2,
"createdAt": "2024-01-01T00:00:00Z",
"Languages": [
{
"languageId": "es",
"englishName": "Spanish",
"nativeName": "Español",
"active": false
},
{
"languageId": "zh",
"englishName": "Chinese",
"nativeName": "äžæ",
"active": true
}
]
},
{
"id": "LanguageList-V3",
"type": "LanguageList",
"version": 3,
"createdAt": "2025-04-21T12:00:00Z",
"Languages": [
{
"languageId": "af",
"englishName": "Afrikaans",
"nativeName": "Afrikaans",
"active": false
},
{
"languageId": "zh",
"englishName": "Chinese",
"nativeName": "äžæ",
"active": true
}
]
}
]
Below is the query which i tried to combine both the queries using JOIN:
SELECT VALUE l
FROM c
JOIN l IN c.Languages
WHERE c.id = "LanguageList-V3" AND l.languageId = "af"
Output:
[
{
"languageId": "af",
"englishName": "Afrikaans",
"nativeName": "Afrikaans",
"active": false
}
]
Note: Cosmos DB does not support joins across different containers or items. It supports self-join
,means joins occur within a single item. For more information, please refer to this link.
"Re-run the server and force-refresh the browser." I faced same issue with you and above method worked! :)
This shows that u have 4 errors, and 6 warnings. But you mentioned there are no error.
try to resolve these errors first , then it will run
First, you have to make shape in drawable:
<shape android:shape="line" xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="@color/gray" android:width="1dp"/>
</shape>
After that, set this shape on the TextView.
android:background="@drawable/discount_line"
For me updating the NDK helped.
sdkmanager "ndk;27.2.12479018"
export NDK_HOME="$ANDROID_HOME/ndk/27.2.12479018""
For more details see here.
Okay maybe I was a bit too quick, but in the end I figured it out by indeed relaunching my dev server one or multiple times. I also see a related question popping up on mine, and I suppose this works for people if they stumble across this issue: https://stackoverflow.com/a/7116701/2217725
Try logging the value your about to set instead of accessing the state variable console.log(result.result.LabelNumber);
I think the issue is your console log for results.LabelName is running before the state has updated.
I am also facing the same issue. I am having selector.select() inside while loop and it is using high CPU. What can be done to reduce the CPU
Thank for your support. The virtual scroll bar works good. But i found two more issue: 1. The virtual scroll bar is always scrolling, the scrolling never comes to an end. 2. When there are only 5 rows in the DataTable, there will be a lot of empty space below those 5 rows. We want to scroll down many times to view the horizontal scroll bar. Otherwise the horizontal scrollbar is not at all visible. The issue can be reproduced from the same Stackblitz demo link:https://stackblitz.com/edit/224fkuqa?file=src%2Fservice%2FProductService.jsx,src%2FApp.jsx,package.json
how does one make java into a real script. A script is a formal documentation of real life situation. A situation is realistically applied to a computer with a graphics card. A graphics card is a portal to blizzard G.O.D. and valve. A portal or realm is a pass code in a virtual reality. Virtual reality is a platform called verizon. Verizon is technically called a lan, lan is called land line. A land line is a internet context. Internet in dsl or also known as verizon is a like demonoid, ares, or lime wire; first called raphsody. The point of land line is to make a portal with a * pound, also know as an operator. The operator connects a dial up to a server and the server access a portal also known as valve, a internet system called lan, where anyone with a simple passcode can access zero_cool. The more you know him the more you access his files which is the art os music, video, and sound.
Put this code inside Navigation Graph class.
NavHost(
navController = navController,
startDestination = "Splash"
) {
composable(route = "Splash") {
log("Splash")
SplashViewAndViewModel(navController)
}
}
I think it's very useful! I recently read a help document, and the method in it is also very good.https://support.servbay.com/dotnet/how-to-develop-asp-net-framework-4-x-on-macos
There is no Dialer app on the iOS Simulator, so you have no app to open the tel
protocol.
Try using a physical device.
Retrofitting a 360-degree camera system in older vehicles is not just possible, but also a great upgrade for safer driving in Indian traffic. With trusted companies like DHC Autosolutions providing reliable kits and support, it's a smart investment that enhances both convenience and safety.
If you're specifically looking for 360 Degree Camera Cars In India, retrofitting your current car might just give you a similar experience at a fraction of the cost of buying a new one.
```lua
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, "a7130411-91f8-4209-b3bd-918bd190b2ed", game.Players.LocalPlayer)
```
This is the code can somebody find the problem?
todos = []
while True:
user_action = input("Type add ,show, complete, edit or exit: ")
user_action = user_action.strip()
match user_action:
case 'add':
todo = input("Enter a todo: ") + "\n" ur backslash was a normal slash
file = open('todos.txt', 'r')
todos = file.readlines()
file.close()
todos.append(todo)
file = open('todos.txt', 'w')
file.writelines(todos)
file.close()
case 'show':
for index, item in enumerate(todos):
row = f"{index+1}-{item}"
print(row)
print(len(todos))
case 'edit':
number = int(input("Number of the todo to edit: "))
number = number - 1
new_todo = input("Enter a new todo: ")
todos[number] = new_todo
case 'complete':
number = int(input("Number of the todo to complete: "))
todos.pop(number)
case 'exit':
break
print("Bye...")