instruction
stringlengths
0
30k
|javascript|json|post|pentaho|
bollingers bands always give the same value and give the same value in each symbol there is no error in the code sequence but there is a logical error can you help property copyright "Copyright 2024, MetaQuotes Ltd." property link "https://www.mql5.com" property version "1.00" property strict //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { double bb_degeri = iBands(NULL,PERIOD_CURRENT,21,0,2,PRICE_CLOSE); Alert(""); Alert(bb_degeri); it needs to give a different value for each symbol and the forex bot I will write will open and close trades according to these values
Scrapy - How to access particular stats ("finish_reason", "elapsed_time_seconds")?
|python|scrapy|
You can't do that with OpenLDAP, but it's also not very useful to do, as it only takes a single `(mail=*@*)` to get around that restriction. (or if you forbid that, then `(mail=*@*.*)`, or some 26 or so `(mail=*a*)`, etc.) Instead, set a size limit through `olcLimits` so that any anonymous query would only return e.g. 5 results at most – still possible to work around but much more annoying: olcLimits: anonymous size.soft=5 size.hard=5
i made a next project with typescript and tailwind src/app/page.tsx: ``` import Button from "@/component/button"; import Image from "next/image"; import shadup from '../../public/a.jpg' export default function Home() { return ( <main className="flex min-h-screen flex-col items-center justify-between p-24 gap-4 bg-gradient-to-b from-red-600 to-yellow-800"> <div className="border-4 border-blue-700 text-3xl text-amber-500">Wandering Swordsman</div> <div> <Image src={shadup} width={300} height={250} alt={''} className="border-4 rounded-full border-grey-600"> </Image> </div> <div className="font-bold py-2 px-4 border-4 border-blue-700 bg-blue-50 rounded-full text-red-700"> <Button href='https://muhammad-six.vercel.app/'>Main site</Button> </div> </main> ); } ``` src/app/dashboard/page.tsx: ``` import React from 'react' const Dashboard = () => { return ( <div>welcome to Dashboard route</div> ) } export default Dashboard; src/component/button.tsx: import Link from 'next/link'; interface ButtonProps { href: string; children: React.ReactNode; } function Button({ href, children }: ButtonProps) { return ( <Link href={href} passHref> <div className=""> {children} </div> </Link> ); } export default Button; ``` src/app/layout.tsx: ``` import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import link from "next/link"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "Create Next App", description: "Generated by create next app", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( <html lang="en"> <body className={inter.className}> <header> <link href="/">Home</link> <link href="/dashboard">Dashboard</link> </header> </body> </html> ); } ``` now the problem is no content other than buttons is shown: if clicked home(or the page that is shown at starting), then content that should be shown at home doesn't show and only buttons are seen and if clicked dashboard then only shows the buttons and no content that should be on dashboard appears either I have tried gpt-ing it but it gives nonsensical answers like wrap link titles in anchor tag which gives error, i tell it the error, it says remove anchor tag or says import Link instead of link
(next.js typescript tailwind) content doesn't show
|node.js|typescript|tailwind-css|
null
I got this working locally (in MacOS Sonoma - 14.x, on an x86_64 based machine, with XCode Tools 15.x) with some work and some hints/help from https://github.com/rbenv/ruby-build/discussions/1883. I also have to maintain an _ancient_ (and air-gapped) system that uses Ruby 2.1.9 in this case. One of the problems is that Ruby before 2.4.x (I think) doesn't work with Openssl 1.1 or later. MacOS now comes with OpenSSL 3.x or later (really, it's LibreSSL 3.x). Generally, the process is 1. Install openssl 1.0.x libraries into a side location 1. Use appropriate flags and library paths when compiling Ruby (2.1.9 in my case) 1. Use appropriate versions of the rubygems_update and bundler for your Ruby version. I needed the following tools: * XCode CLI Tools - you can get them via `xcode-select --install` * `rvm` - see https://rvm.io/ for more details on how to get it. * `homebrew` - see https://brew.sh/ for more details on how to get it * I also need the `gpg` tool (to import the `rvm` gpg keys). Installed through `brew install gpg` for me. Basically, I had to install an old version of openssl via a clever (or not so clever) hack: ``` $ brew install rbenv/tap/openssl@1.0 $ CFLAGS="-Wno-error=implicit-function-declaration" rvm install 2.1.9 --with-openssl-dir=/usr/local/opt/openssl@1.0 $ gem update --system 2.7.10 $ gem install bundler --version 1.17.3 $ bundle install ``` Since I need Ruby 2.1.9, I had to limit the rubygems_update to < 3.0 and bundler to < 2.0.
I tried this from <a href="http://www.htpcbeginner.com/yoast-seo-sitemap-blank-nginx-solved/">htpcbeginner</a> and it worked perfectly. - Am using Ubuntu 14.04.3 x64, Nginx 1.4.6 - WordPress 4.4.2 Place the following lines inside **location block** in yoursite.com file in `/etc/nginx/sites-avaliable` and don't forget to relink it to `/etc/nginx/sites-enabled` folder. ```nginx #This rewrite redirects sitemap.xml to sitemap_index.xml, which is what Yoast's WordPress SEO plugin generates. rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; #This rewrite ensures that the styles are available for styling the generated sitemap. rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last; #These rewrites rule are generated by Yoast's plugin for Nginx webserver. rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; ``` - You should change the permalinks to `/%postname%/`. - Don't forget to restart Nginx server. `sudo service nginx restart` That should work with you. Goodluck.
null
In Java, int is a primitive data type representing a 32-bit signed integer. It has a range of -2^31 to 2^31- 1. In Kotlin, Int is a reference type representing a 32-bit signed integer, similar to Java's Integer wrapper class. Then what is the difference and how memory allocated? 1. Java int: int a = 5; 2. Kotlin Int: val a: Int = 5 3. Java Integer (for reference): Integer a = 5; How memory allocation happen for storing value ?
What is difference between Java "int" vs Kotlin "Int" and Java "Integer" vs Kotlin "Int"?
|java|kotlin|
null
Based on what you've asked and said in the comments, this sounds like what you need: static void Main() { // Keep the following line intact Console.WriteLine("==========================="); // Insert your solution here. string Message(int eggs) { int dozen = eggs / 12; int left_over = eggs % 12; return $"You have {eggs} egg{(eggs == 1 ? "" : "s")} which equals {dozen} dozen and {left_over} egg{(left_over == 1 ? "" : "s")} left over."; } int chickens = 0; Console.WriteLine("Enter the number of chickens:"); while (!int.TryParse(Console.ReadLine(), out chickens)) { Console.WriteLine("Enter the number of chickens:"); } if (chickens <= 0) { Console.WriteLine(Message(0)); Console.WriteLine("==========================="); return; } int total_eggs = 0; for (int i = 0; i < chickens; ++i) { Console.Write("Eggs:"); int eggs = 0; while (!int.TryParse(Console.ReadLine(), out eggs)) { Console.WriteLine("Enter the number of eggs:"); } total_eggs += eggs; } Console.WriteLine(Message(total_eggs)); }
please attention to this simple program: from time import sleep from threading import Thread def fun1(): sleep(10) thread1 = Thread(target = fun1) thread1.start() #sign sleep(100) print("hello") how can I stop execution of the codes below the #sign when thread1 finished. thank you for your helping
python threading library Perform a new activity
|python-3.x|parallel-processing|python-multithreading|
null
cmd := 'expdp username/pwd@orcl schemas=finance directory=DUMP_DIRECTORY dumpfile=FIN03.dmp logfile=expdp_backup.log'; EXECUTE IMMEDIATE cmd; but the code logged using dbms_output.put_line(cmd) is executed from command prompt I didn't find any syntax error when dbms_output is logged for cmd and run the command in command prompt
Error in Exceute Immediate expdp... while doing it from plsql
|oracle-database|
null
I'm migrating from Spring Boot 2 to 3. The same integration tests which used to work in 2.x, now do not work in 3.x. Example: ``` @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) public class DemoTest { @Autowired private TestRestTemplate restTemplate; @Test public void demo() { ResponseEntity<String> response = restTemplate.getForEntity("/helloworld", String.class); } } ``` fails with the following stack trace: ``` java.lang.NullPointerException: Target host at java.base/java.util.Objects.requireNonNull(Objects.java:233) at org.apache.hc.core5.util.Args.notNull(Args.java:169) at org.apache.hc.client5.http.impl.classic.MinimalHttpClient.doExecute(MinimalHttpClient.java:115) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.apache.hc.client5.http.classic.HttpClient.executeOpen(HttpClient.java:183) at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:95) at org.springframework.http.client.AbstractStreamingClientHttpRequest.executeInternal(AbstractStreamingClientHttpRequest.java:70) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:889) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:790) at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:431) at org.springframework.boot.test.web.client.TestRestTemplate.getForEntity(TestRestTemplate.java:245) ``` I've checked debug logs and `TestRestTemplate` definitely has a host URI at (for example) `http://localhost:64877`. But for some reason, once httpclient5 is executing, its host is null. The dependency I gave in my `build.gradle` is `implementation group: 'org.apache.httpcomponents.client5', name: 'httpclient5' //, version: '5.3.1'`. I tried both with and without an explicit version, no change. I must be missing something obvious here, but I don't see it. **UPDATE:** The cause turns out to be my custom `RestTemplateCustomizer` which is using `HttpClients.createMinimal()`: ``` @Bean public RestTemplateCustomizer customRestTemplateCustomizer() { return new RestTemplateCustomizer() { @Override public void customize(RestTemplate restTemplate) { restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory(HttpClients.createMinimal())); restTemplate.setErrorHandler(new ApiResponseErrorHandler()); } }; } ``` If I remove the `setRequestFactory` line, or if I use `createDefault()` instead, it works. I don't know why.
Well... I work more or less exclusively with very low-level, hardware-related programming. And then for almost every project, you have to start by creating the tools themselves = drivers. Coding drivers is hard, tedious and generally inglorious. After weeks of coding and testing, you could have less than 1k LoC to show for it all. Then when you finally have all of those drivers up and running smoothly, the application-tier is usually the most fun and easy part to program, because it is more creative work. It's all the same project, but different parts of it are more or less fun to code. The same applies to any other form of programming. It's much easier and far less qualified work to code an application running on an OS/engine/library, than coding that OS/engine/library itself. And the higher you get in the abstraction layers, the more creative the process tends to be. There are countless of programming languages that only allows the programmer to do abstract top-layer stuff. And maybe higher abstraction simply equals more fun?
null
I came up with the same problem, and open *setting.json* file, add the following: ```json "workbench.editor.enablePreview": false ```
null
i am using sox for creating synth with 100ms, this is my command: ``` /usr/bin/sox -V -r 44100 -n -b 64 -c 1 file.wav synth 0.1 sine 200 vol -2.0dB ``` now when i create 3 sine wave files and i combine all with ``` /usr/bin/sox file1.wav file2.wav file3.wav final.wav ``` then i get gaps between the files. i dont know why. but when i open for example file1.wav then i also see a short gap in front and at the end of the file. how can i create a sine with exact 100ms without gaps in front and end? and my 2nd question: is there also a possibility to create e.g. 10 sine wave synths with one command in sox? like sox f1 200 0.1, f2 210 01, f3 220 01, ... first 200hz 10ms, 210hz 10ms, 220hz 10ms thank you so much many greets i have tried some different options in sox but always each single sine file looks like that:
|performance|loops|t-sql|query-optimization|
null
Make sure this, File Path: Ensure that textFile is pointing to the correct path of the text file you want to read. If the file path is incorrect or the file doesn't exist, you'll get null when attempting to read from it. File Permission: Make sure that your app has the necessary permissions to read external storage. You might need to request the READ_EXTERNAL_STORAGE permission in your Android manifest file and also request it at runtime if your app targets Android 6.0 (API level 23) or higher. Exception Handling: It's good that you have the IOException catch block, but it's also important to handle other potential exceptions like FileNotFoundException separately. try { if (isExternalStorageReadable()) { BufferedReader br = new BufferedReader(new FileReader(textFile)); StringBuilder text = new StringBuilder(); String line; while ((line = br.readLine()) != null) { text.append(line); text.append('\n'); } br.close(); // Now text contains the content of boot.txt, you can use it as needed bootFileContent = text.toString(); showToastLong("Read file content: " + bootFileContent); // Do something with the file content } else { Toast.makeText(this, "External storage not readable",Toast.LENGTH_SHORT).show(); } } catch (FileNotFoundException e) { e.printStackTrace(); Toast.makeText(this, "File not found", Toast.LENGTH_SHORT).show(); } catch (IOException e) { e.printStackTrace(); Toast.makeText(this, "Error reading file",Toast.LENGTH_SHORT).show(); } private boolean isExternalStorageReadable() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state); }
This should work: var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+'))
In my case also the number of td was not matching the number of th.
I would like to insert role `:math:` (for example) into code-block directive: ``` .. code-block:: :math:`2^{64} - 1` ``` but the directive does not handle this role and I get this in pdf: ![pdf output](https://i.stack.imgur.com/7YCLB.png) How can I insert role (math or others) into code-block directive?
|python-sphinx|restructuredtext|
Two things: 1. Process *all* events in the event queue every frame, not just one: ```c++ if( SDL_PollEvent( &e ) ) ``` ...should be: ```c++ while( SDL_PollEvent( &e ) ) ``` 2. Maintain a SDL_Keycode -> bool map of keydown states while processing events and only apply the movement logic once per frame, outside of the event processing loop: ```c++ std::map< SDL_Keycode, bool > keyMap; ... while( SDL_PollEvent( &e ) ) { if( e.type == SDL_QUIT ) { quit = true; } else if( e.type == SDL_KEYDOWN ) { keyMap[ e.key.keysym.sym ] = true; } else if( e.type == SDL_KEYUP ) { keyMap[ e.key.keysym.sym ] = false; } } if( keyMap[ SDLK_RIGHT ] ) squareX += 1; if( keyMap[ SDLK_LEFT ] ) squareX -= 1; if( keyMap[ SDLK_UP ] ) squareY -= 1; if( keyMap[ SDLK_DOWN ] ) squareY += 1; ``` All together: ```c++ #include <SDL.h> #include <iostream> #include <map> SDL_Window* mainWindow = NULL; SDL_Surface* mainWindowSurf = NULL; SDL_Renderer* mainRenderer = SDL_CreateRenderer( mainWindow, -1, 0 ); int mainScreenWidth = 1280; int mainScreenHeight = 720; int squareX = 50; int squareY = 50; const int squareWidth = 50; const int squareHeight = 100; const int gravityAffect = 5; bool mainGameInit(); void mainGameExit(); // Note to self - From here and to the next note comment, everything is functions. bool mainGameInit() { bool mainGameInitSuccess = true; if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) { std::cout << "SDL could not INIT. This time around, the window could not be created. For " "more details, SDL_ERROR: " << SDL_GetError() << std::endl; mainGameInitSuccess = false; } else { mainWindow = SDL_CreateWindow( "Wednesday Night Dash", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, mainScreenWidth, mainScreenHeight, SDL_WINDOW_SHOWN ); if( mainWindow == NULL ) { std::cout << "SDL_Window could not be created! For more information, SDL_ERROR: " << SDL_GetError() << std::endl; mainGameInitSuccess = false; } else { // Create renderer after window creation mainRenderer = SDL_CreateRenderer( mainWindow, -1, SDL_RENDERER_PRESENTVSYNC ); if( mainRenderer == NULL ) { std::cout << "SDL_Renderer could not be created! For more information, SDL_ERROR: " << SDL_GetError() << std::endl; mainGameInitSuccess = false; } } } return mainGameInitSuccess; } void mainGameExit() { SDL_DestroyWindow( mainWindow ); mainWindow = NULL; SDL_Quit(); } int main( int argc, char* args[] ) { if( !mainGameInit() ) { std::cout << "Uh oh! SDL (The game code) Failed to init. For more information, SDL_ERROR: " << SDL_GetError() << std::endl; } else { std::map< SDL_Keycode, bool > keyMap; SDL_Event e; bool quit = false; while( !quit ) { while( SDL_PollEvent( &e ) ) { if( e.type == SDL_QUIT ) { quit = true; } else if( e.type == SDL_KEYDOWN ) { keyMap[ e.key.keysym.sym ] = true; } else if( e.type == SDL_KEYUP ) { keyMap[ e.key.keysym.sym ] = false; } } if( keyMap[ SDLK_RIGHT ] ) squareX += 1; if( keyMap[ SDLK_LEFT ] ) squareX -= 1; if( keyMap[ SDLK_UP ] ) squareY -= 1; if( keyMap[ SDLK_DOWN ] ) squareY += 1; // Clear screen SDL_SetRenderDrawColor( mainRenderer, 0, 0, 0, 255 ); SDL_RenderClear( mainRenderer ); SDL_Rect squareRect = { squareX, squareY, squareWidth, squareHeight }; SDL_SetRenderDrawColor( mainRenderer, 255, 0, 0, 255 ); SDL_RenderFillRect( mainRenderer, &squareRect ); // Update screen SDL_RenderPresent( mainRenderer ); } } mainGameExit(); return 0; } ```
I am new to C and have found that it is common to initialize arrays with constants. I'm curious, is the following code legal? int a = 1; int b = 2; int c = 3; int array[3] = {a, b, c};
When initializing an array, can variables be inside braces?
|c++|c|
a `data.table` approach library(data.table) # set to data.table format setDT(df1) # initialise heating or cooling level df1[, level := toupper(substr(temp.1,1,1))] # override level of groupsizes size 2 or less with "H" df1[, level := if (.N <= 2) "H", by = .(rleid(temp.1))] # tamporary value for indexing, can be dropped at the end df1[, temp := rleid(level)] # create the correct level id, and afterwards drop the temp column df1[, level := paste(level, as.integer(factor(temp)), sep = "."), by = .(level)][, temp := NULL][] **update for updated sample data / desired output** library(data.table) setDT(df1) # determine groups of 3 (or more) consecutive temp.1 df1[, group := if (.N >= 3) .GRP, by = .(rleid(temp.1))] # fill down missing groupnumbers setnafill(df1, type = "locf", cols = "group") # set level letter (from iniktlal answer) df1[, level := toupper(substr(temp.1[1],1,1)), by = .(group)] df1[, temp := rleid(level)] df1[, level := paste(level, as.integer(factor(temp)), sep = "."), by = .(level)][, temp := NULL][]
``` SELECT OBJECTID, ACTIVITYID, STATUS, LASTUPDATEDATE, DATAMGMTPOLICY, DCTCOMMAND, ACTIVITYTYPE FROM (SELECT OBJECTID, ACTIVITYID, STATUS,LASTUPDATEDATE, DATAMGMTPOLICY, DCTCOMMAND, ACTIVITYTYPE FROM (SELECT CASE WHEN DAH.STATUS = 'I' THEN 1 WHEN DAH.STATUS = 'Q' AND DAC.ACTIVITYTYPE = 'U' AND DAH.SCHEDDATETIME < now()::timestamp(0) at time zone 'utc' THEN 2 WHEN DAH.STATUS = 'R' AND V_ISCOMMUNENABLED = 'T' THEN 3 WHEN DAH.STATUS = 'Q' AND DAC.ACTIVITYTYPE = 'F' AND DAH.SCHEDDATETIME < now()::timestamp(0) at time zone 'utc' AND V_ISCOMMUNENABLED = 'T' THEN 4 WHEN DAH.STATUS = 'Q' AND DAC.ACTIVITYTYPE = 'C' AND DAH.SCHEDDATETIME < now()::timestamp(0) at time zone 'utc' AND V_ISCOMMUNENABLED = 'T' THEN 5 END AS ACTIVITYORDER, DAH.DCTOID, DAH.OBJECTID, DAH.STATUS, DAH.ACTIVITYID, DAH.LASTUPDATEDATE, DEC.DATAMGMTPOLICY, DEC.DCTCOMMAND, DAC.ACTIVITYTYPE FROM ACTIVITYHEADER DAH INNER JOIN ACTIVITYCONFIG DAC ON (DAH.ACTIVITYID = DAC.ACTIVITYID AND DAC.vkey = 'X') LEFT OUTER JOIN EVENTCONFIG DEC ON (EVENTCONFIGOID = DEC.OBJECTID AND DEC.vkey = 'X') WHERE DCTOID = 1056969173 AND DAH.vkey = 'X') INLINEVIEW_2 WHERE ACTIVITYORDER IS NOT NULL ORDER BY ACTIVITYORDER) FIRSTROW LIMIT 1; ``` Here are the indexes * "ACTIVITYHEADER.activityheader_idx8" btree (vkey, dctoid, status, activityid, scheddatetime) * "ACTIVITYCONFIG.eventconfig_idx1" btree (vkey, activityid) * "ACTIVITYCONFIG.activityconfig_pk" PRIMARY KEY, btree (vkey, activityid) * "EVENTCONFIG.eventconfig_idx1" btree (vkey, activityid) This part of the pgpsql function. And the most of time is being spend on CASE statement as per plan and which is a filter condition `ACTIVITYORDER IS NOT NULL` * ACTIVITYHEADER table is having 23.5 million rows * ACTIVITYCONFIG is having 1.2 million rows and * EVENTCONFIG is having 223552 rows. Here are the indexes that are being used in plan. How to optimize this query? I've this in my mind. If we can push this CASE filter further down the tree, the work taken to read and process those rows might be saved?. Here is the plan https://explain.depesz.com/s/3YLt#stats`
The easiest way to install `pip` is: python -m ensurepip --upgrade
{"Voters":[{"Id":259769,"DisplayName":"Enigmativity"}]}
``` ALTER PROCEDURE [dbo].[identify] AS BEGIN SET NOCOUNT ON; Declare @first_name varchar(50) DECLARE @old_last_name varchar(50) MERGE INTO [dbo].[warehouse] AS dim USING [dbo].[staging] AS stg ON dim.[first_name] = stg.first_name WHEN MATCHED THEN UPDATE SET dim.[first_name] = stg.first_name, dim.last_name = stg.last_name, dim.created_date = stg.created_date, dim.modified_date = stg.modified_date, dim.gender = stg.gender WHEN NOT MATCHED THEN INSERT(first_name, last_name, created_date, modified_date, gender) VALUES(stg.first_name, stg.last_name, stg.created_date, stg.modified_date, stg.gender) OUTPUT Inserted.first_name AS first_name, IsNull(Deleted.last_name,Inserted.last_name) AS old_last_name INTO test; END ```
```python out_df['# of Days'] = out_df['# of Days'].replace('',1) out_df['# of Days'] += 1 print(out_df) ``` Would work except when cell's have NULL as their value, it does not add the 1 value. Trying to add 1 to the entire column including empty cell in the column.
null
Recently I am working hard on embedded device develop by .NET. Not only the program but also the database is stored in the SD card. Now I have a situation. Because my embedded device is used in a workshop, when there is an uncontrollable power outage in the workshop, or there are various possibilities such as wires falling off due to human movement, causing the equipment to suddenly lose power, the database may be damaged. There was nothing I could do to avoid any of these actions that would cause a blackout. So I had to find a way to back up the database. When EF Core could not read the database, I used the backup to restore the database. An immature idea I have is to create another identical database. Regularly back up the contents of the main database to this backup database. Although I know that there may be situations where both databases are damaged at the same time, it can at least reduce the probability of database damage to a certain extent. I guess that whether it is EF Core or SQLite, there should be some ways to deal with the power outage that occurs during the database reading and writing process. Unfortunately, I really couldn't find a relevant solution, so I had to think of using two databases to avoid failures. How should I backup SQLite database using EF Core?
How should I backup SQLite database using EF Core?
Did you read the `np.dot` docs? Pay attention to what it says about 1d arguments? In [209]: a = np.array([1,2,3,4]) ...: b = np.array([1,2,3,4]) ...: dot_product1 = np.dot(a, b) ...: print(dot_product1, type(dot_product1)) ...: ...: a = np.array([1,2,3,4]) ...: b = np.array([1,2,3,4]).reshape(-1,1) ...: dot_product2 = np.dot(a, b) ...: print(dot_product2, type(dot_product2), dot_product2.shape) 30 <class 'numpy.int32'> [30] <class 'numpy.ndarray'> (1,) In [210]: a.shape, b.shape Out[210]: ((4,), (4, 1)) The first does produce a scalar, an inner product. Same as `np.sum(a*b)`. (Corrected) The second combines a (4,) with a (4,1), producing a (1,) shape. Not a 1x1! If you want a (1,1) dot a (1,4) with a (4,1) In [211]: (a[None,:]@b).shape Out[211]: (1, 1) One 'dot product' page says it can be calculated as `Algebraically, the dot product is defined as the sum of the products of the corresponding entries of the two sequences of numbers.` That's exactly what your first example does. Matrix multiplication can be thought of as the application of the `dot product` to all row/column combinations of a 2 matrices. That's what `np.dot` does, with the intermediate option of working with a 2d and a 1d array (your second example). `np.dot` can also work with 3+d arrays, though the `matmul` version is generally more useful. If you want a further challenge, look at `np.einsum`, which applies 'Einstein notation' to these multidimensional products. Generally, in `np.dot(A,B)`, the last dimension of `A` pairs with the 2nd to the last dimension (or only dimension if 1d) of `B`. In `einsum` terms I like to think of that as the 'sum of products' dimension. https://mkang32.github.io/python/2020/08/23/dot-product.html#:~:text=Matrix%20multiplication%20is%20basically%20a,of%20vectors%20in%20each%20matrix. > Matrix multiplication is basically a matrix version of the dot product. Remember the result of dot product is a scalar. The result of matrix multiplication is a matrix, whose elements are the dot products of pairs of vectors in each matrix.
null
Find out username after user has logged in to GitHub via oAuth2
|javascript|node.js|github|github-api|
I'm getting an inexplicable error in my Eclipse IDE: The type java.util.Collection cannot be resolved. It is indirectly referenced from required type picocli.CommandLine It is not allowing me to iterate a List object like the following: ``` List<ServerRecord> data = execute(hostnames); for (ServerRecord record : data) { Vector<String[]> hostInfo = new Vector<>(); hostInfo.add(new String[] { record.hostname(), record.ip(), record.mac(), record.os(), record.release(), record.version(), record.cpu(), record.memory(), record.name(), record.vmware(), record.bios() }); hostInfoList.add(hostInfo); } ``` "data" is underlined in red and it says: Can only iterate over an array or an instance of java.lang.Iterable Tried cleaning the project, rebuilding, checked Java version (21), updated Maven project, pom.xml specified target and source to be 21, deleted project and recreated it. Same error. Here is my pom.xml: ``` <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>gov.uscourts.bnc.app</groupId> <artifactId>server-query</artifactId> <version>1.0.0</version> <name>server-query</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.target>21</maven.compiler.target> <maven.compiler.source>21</maven.compiler.source> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.0</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> <addClasspath>true</addClasspath> <classpathPrefix>libs/</classpathPrefix> <mainClass> gov.uscourts.bnc.app.CollectServerData </mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>gov.uscourts.bnc</groupId> <artifactId>bnc</artifactId> <version>1.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/junit/junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/info.picocli/picocli --> <dependency> <groupId>info.picocli</groupId> <artifactId>picocli</artifactId> <version>4.7.5</version> </dependency> </dependencies> </project> ```
Eclipse Compile Error: The type java.util.Collection cannot be resolved. It is indirectly referenced from required type picocli.CommandLine
|java|eclipse|maven|
null
I am using itext5 to create pdf files with painted non-removable watermarks as follows: public class TestWatermark { public static String resourcesPath = "C:\\Users\\java\\Desktop\\TestWaterMark\\"; public static String FILE_NAME = resourcesPath + "test.pdf"; public static void main(String[] args) throws IOException { System.out.println("########## STARTED ADDING WATERMARK ###########"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { byte[] byteArray = Files.readAllBytes(Paths.get(FILE_NAME)); String watermarkText = "confidential"; String fontPath = resourcesPath + "DINNextLTArabic-Regular.ttf"; Font arabicFont = FontFactory.getFont(fontPath, BaseFont.IDENTITY_H, 16); BaseFont baseFont = arabicFont.getBaseFont(); PdfReader reader = new PdfReader(byteArray); PdfStamper stamper = new PdfStamper(reader, baos); int numberOfPages = reader.getNumberOfPages(); float height = baseFont.getAscentPoint(watermarkText, 24) + baseFont.getDescentPoint(watermarkText, 24); for (int i = 1; i <= numberOfPages; i++) { Rectangle pageSize = reader.getPageSizeWithRotation(i); PdfContentByte overContent = stamper.getOverContent(i); PdfPatternPainter bodyPainter = stamper.getOverContent(i).createPattern(pageSize.getWidth(), pageSize.getHeight()); BaseColor baseColor = new BaseColor(10, 10, 10); bodyPainter.setColorStroke(baseColor); bodyPainter.setColorFill(baseColor); bodyPainter.setLineWidth(0.85f); bodyPainter.setLineDash(0.2f, 0.2f, 0.2f); PdfGState state = new PdfGState(); state.setFillOpacity(0.01f); overContent.saveState(); overContent.setGState(state); for (float x = 70f; x < pageSize.getWidth(); x += height + 100) { for (float y = 90; y < pageSize.getHeight(); y += height + 100) { bodyPainter.beginText(); bodyPainter.setTextRenderingMode(PdfPatternPainter.TEXT_RENDER_MODE_FILL); bodyPainter.setFontAndSize(baseFont, 13); bodyPainter.showTextAlignedKerned(Element.ALIGN_MIDDLE, watermarkText, x, y, 45f); bodyPainter.endText(); overContent.setColorFill(new PatternColor(bodyPainter)); overContent.rectangle(pageSize.getLeft(), pageSize.getBottom(), pageSize.getWidth(), pageSize.getHeight()); overContent.fill(); } } overContent.restoreState(); } stamper.close(); reader.close(); byteArray = baos.toByteArray(); File outputFile = new File(resourcesPath + "output.pdf"); if (outputFile.exists()) { outputFile.delete(); } Files.write(outputFile.toPath(), byteArray); System.out.println("########## FINISHED ADDING WATERMARK ###########"); } catch (Exception e) { e.printStackTrace(); } } } the above code makes the watermark non-selectable and non-removable in the Adobe Pro editing function but the issue is when opening this pdf file from VMware Workspace ONE Boxer email, the watermark is getting removed ! Any advice how to fix this issue ?
Unable to make itext5 pdf watermark non removable in VMware Workspace ONE Boxer email
Updates to the JDK libraries for new features typically take a long time, as the JDK development process is very cautious (and rightfully so). In particular, HTTP/3 is quite different from HTTP/1.1 and HTTP/2 because it is not based on TCP nor TLS, and therefore requires a lot of work to be implemented from zero (in particular, a full QUIC implementation with TLS message layering, flow control and congestion control -- it is a lot of work, and the HTTP/3 on top). [This OpenJDK issue](https://bugs.openjdk.org/browse/JDK-8229533) tracks exactly what you are asking, and it has been filed in 2019, now almost 5 years ago, and still no progress (just to set expectations). Your choices are: * Forget HTTP/3, and continue using HTTP/1.1 and/or HTTP/2. * Use another HTTP client library that supports HTTP/3. [Disclaimer, I have implemented HTTP/3 in the Jetty HTTP client]. The Jetty project provides the [Jetty HTTP client](https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#pg-client-http), that can be configured to use HTTP/3, see [here](https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#pg-client-http-transport-http3). The Jetty project also provides a [low-level HTTP/3 client](https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#pg-client-http3), but this is typically only used by those applications that want to deal with low-level HTTP/3 protocol details (quite a rare case). Other open source projects provide HTTP clients that support HTTP/3, so you have choices if you really want to use HTTP/3, just not with the OpenJDK HTTP client. However, bear in mind that HTTP/3 has been designed mostly for browsers and mobile, so if you are using an HTTP client in your application chances are that it will not perform much better than HTTP/1.1 or HTTP/2. Bottom line, if you use the OpenJDK HTTP client, you are stuck with the OpenJDK progress, which may happen very slowly or not even happen at all. If you use some other library, you are stuck with that library, but chances are that the library will be updated way faster than OpenJDK, and provide in the future also future versions of HTTP.
I would like to implement a class for squared matrices, with a generic size. Then I would like to implement standard methods (add, multiply) between matrices, but only of the same size. The goal is to regroup every matrices types in one class, but to be able to catch the size errors at compilation time, not during execution. I tried to use a generic type given by the union of the size I need to consider. Like `Class Matrix<S = 3|4>`. I don't know how to test if `S == 3` or `S == 4`, and to handle it afterwards. I know I could implement a abstract matrix class and extends it for every size I need. But it is very tedious...
Typescript: Class with generic type 3 | 4
|typescript|typescript-generics|union-types|
null
The [issue](https://github.com/erlang/otp/issues/7776) has been resolved in Erlang OTP 26.2.1.
This correction should work: var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+')) Whole code: var search = crmAPI.getSelection() || prompt('Please enter a search query'); var url = 'https://www.subetalodge.us/list_all/search/%s/mode/name'; var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+')); window.open(toOpen, '_blank');
Of course, you can't add an **@IBOutlet** because the buttons that you've added to `WeekdayControl` are in `UIViewController`. You can't add an **@Outlet** to `WeekdayControl` buttons are only subviews of `WeekdayControl`. `UIViewController` is the boss here, and you can only add an @outlet to `UIViewController`. Better create your buttons programmatically in `WeekdayControl`.
null
The tomcat log showing the following error when we try to access the repositry. Previously it was hosted in Windows server and new one is in Ubuntu 22.04. When accessing we get the following error. ![enter image description here](https://i.stack.imgur.com/0s5i9.png) Checking catalina.out it shows the failed to initialize keystore error. ![enter image description here](https://i.stack.imgur.com/lFp0c.png) tried to replace the new key store and the files in it with the old ones. Still same error is coming
I really don't want to knock the answer as it technically answers my question as stated in the best possible way. What I did also manage to do was create a mock of a `gzip.GzipFile` that behaves exactly as I expect. ``` % python3 -m pytest test.py ============================================================= test session starts ============================================================= platform darwin -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /private/tmp collected 1 item test.py . [100%] ============================================================== 1 passed in 0.03s ============================================================== % cat test.py from unittest import mock import gzip import pytest def test_foo(): f = mock.Mock(gzip.GzipFile) f.readline = mock.Mock(side_effect=["hello", EOFError()]) assert f.readline() == "hello" with pytest.raises(EOFError): f.readline() ``` I think for unit testing purposes this might be the cleaner solution as opposed to actually creating the file and reading it, as I can just mock the open function to return my mocked file.
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file. I will use this scenario to explain, in this case, I only have the customerID: **Given** I search for customer A <customerID> **When** I get the customer info: customer name <customer name> and last orderID <lastOrderID> in customer general info page **Then** I compare it with the actual last orderID in the order list to see if the customer name <customername> and the last orderID <lastOrderID> are matching. Example: |customerID|customername|lastOrderID| |3434423432| ??? | ?? | I would like to get String data of the <customername> and <lastOrderID> from the UI and parse these values into the cucumber variables. What should I do here? Btw, this is the first time I send a question on stackoverflow, so appologize if my info is being explained vaguely. Much appreciate for any helps! I have looked around on the Internet for help, but I'm kinda stuck here.
I'm using ASP.net C# and I have a table for products where I have a function that gets called whenever there is a change in a dropdown list selection. My function works perfect currently, but only if there is 1 row of data. If there is 2 or 3 rows or more, it only works for the top row and not individually for each row. Based on a dropdown list selection my function gets the value from the dropdown list and sets that value to an empty hidden input text field. On the first row, the function works great when making a selection. If I go to the second row and so on, and make a selection, it only works for the first row. I need to have this work individually for each row for the same dropdown list element when a selection is made and not only work for that row, but not affect the values that were already set from the previous row(s). <!-- language: lang-html --> <script> function selectedText(ddlitem) { selvalue = ddlitem.value; $('#Units').val(selvalue); } </script> <table> <tr> <th>Product Code</th> <th>Description</th> <th>Quantity</th> <th>Units</th> </tr> @foreach (var item in Products) { <tr> <td class="code"> @item.Product_Code </td> <td class="descrip"> @item.Description </td> <td> <input type="text" class="form-control qty-ctl" id="ncQty" name="ncQty" /> </td> <td> @Html.DropDownListFor(x => x.Unit_Of_Measure, Extensions.GetUOMList(), "--Select Units--", new { id = "txt1", @class = "form-control uom-ctl", @onChange = "selectedText(this)" }) <input type="hidden" id="Units" name="Units" /> </td> </tr> } </table> Any help figuring this out is greatly appreciated.
vue-router internally converts all paths to a regex expression, and the hyphen is simply not considered part of a dynamic path segment. When you use the hyphen, you break the regex. You can consider using camel case for dynamic path segments as a requirement. See the resultant regex using vue-router's [path ranking tool](https://paths.esm.dev/?p=AAMeJbiAwQ4F7LTANQNdgROgUACADgJUBVAkATgAYAiAOcWmAAA.#) `/:not-found(.*)` becomes `/^\/([^/]+?)-found\(\.\*\)\/?$/i` `/:notfound(.*)` becomes `/^\/([^/]+?)\/?$/i`
When I try to run this code the behavior of the output is unexpected and I think the code is correct. If anyone got some insight please help me to resolve this problem. I've tried to adjust the code to solve the problem in different ways without luck. The main problem should be in the MouseMove event but I cannot see the fault. namespace Personal.Forms { public partial class NewMainForm : Form { private const int BorderWidth = 5; private bool isResizing = false; private Point lastMousePosition; private Size originalSize; public NewMainForm() { InitializeComponent(); InitializeFormEvents(); } private void InitializeFormEvents() { this.MouseDown += MainForm_MouseDown; this.MouseMove += MainForm_MouseMove; this.MouseUp += MainForm_MouseUp; } private void MainForm_MouseDown(object? sender, MouseEventArgs e) { if (IsOnBorder(e.Location)) { isResizing = true; lastMousePosition = e.Location; originalSize = this.Size; } } private void MainForm_MouseMove(object? sender, MouseEventArgs e) { if (isResizing) { int deltaX = e.X - lastMousePosition.X; int deltaY = e.Y - lastMousePosition.Y; if (lastMousePosition.X < BorderWidth) { // Adjust left side this.Width = Math.Max(originalSize.Width - deltaX, this.MinimumSize.Width); this.Left += originalSize.Width - this.Width; } else if (lastMousePosition.X > this.Width - BorderWidth) { // Adjust right side this.Width = Math.Max(originalSize.Width + deltaX, this.MinimumSize.Width); } if (lastMousePosition.Y < BorderWidth) { // Adjust top side this.Height = Math.Max(originalSize.Height - deltaY, this.MinimumSize.Height); this.Top += originalSize.Height - this.Height; } else if (lastMousePosition.Y > this.Height - BorderWidth) { // Adjust bottom side this.Height = Math.Max(originalSize.Height + deltaY, this.MinimumSize.Height); } lastMousePosition = e.Location; } else if (IsOnBorder(e.Location)) { this.Cursor = Cursors.SizeAll; } else { this.Cursor = Cursors.Default; } } private void MainForm_MouseUp(object? sender, MouseEventArgs e) { isResizing = false; } private bool IsOnBorder(Point point) { return point.X < BorderWidth || point.X > this.Width - BorderWidth || point.Y < BorderWidth || point.Y > this.Height - BorderWidth; } } }
|java|itext|vmware|watermark|vmware-boxer|
I used Ocelot to build .Net API gateway. I combined the CatchAll style and Aggregate in my configuration and got the error when runing gateway: [![enter image description here][1]][1] Please help to guide me to fix the problem. Below is my Routing configuration. The first routing is used for aggregate request and the second is Catch All style: "Routes": [ { "DownstreamPathTemplate": "/api/orderservice/Order/GeAllOrders", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7028 } ], "UpstreamPathTemplate": "/api/orderservice/Order/GeAllOrders", "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE" ], "Key": "GeAllOrders", "SwaggerKey": "orderservice", },{ "DownstreamPathTemplate": "/api/orderservice/{everything}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7028 } ], "UpstreamPathTemplate": "/api/orderservice/{everything}", "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE" ], "SwaggerKey": "orderservice", },] If I remove the second route (Catch All style), the error was fixed. However, I want to use the Catch All style to reduce the configuration. [1]: https://i.stack.imgur.com/ATINZ.png
I'm on a school windows computer where I've downloaded Anaconda and am using Python. I'm trying to read in a .csv file. The file definitely opens/reads in on my mac, and is sitting just on the desktop. It's 167MB, so not huge. The encoding is UTF 8 sig. I'm trying to load it using this pathway: df = pd.read\_csv('\storage-universityname\student$\studentusername1\Desktop\filename.csv', encoding='utf-8-sig', dtype=str) Everytime, I get this error message: FileNotFoundError: \[Errno 2\] No such file or directory: '\storage-universityname\student$\studentusername1\Desktop\filename.csv' &#x200B; &#x200B; I've tried editing the pathway to a combination of things, like changing all the backslashes to forward slashes, and combinations of pathways like: \student$\studentusername1\Desktop\filename.csv \studentusername1\Desktop\filename.csv \Desktop\filename.csv C:\\storage-universityname\student$\studentusername1\Desktop\filename.csv I've even tried using this script (can't remember now) that tells me what the pathway to this file is, and used that pathway, but it still gives me that error message. It's in the right encoding. Ive read in files using this script plenty of times on my mac in python. I'm familiar with how to do it. Could it be that my university computer is a weird web of stuent users, so it's different to read in from? Does anyone know how I can read in this file?
How to read in a .csv into Python from a weird school windows computer?
|python|pandas|
null
please attention to this simple program: from time import sleep from threading import Thread def fun1(): sleep(10) thread1 = Thread(target = fun1) thread1.start() #sign sleep(100) print("hello") how can I stop execution of the codes below the #sign when thread1 finished. thank you for your helping
How to parse data into cucumber's variables in feature file?
|java|selenium-webdriver|cucumber|ui-automation|
null
In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects? ---------- IntelliJ IDEA 2023.3.6 (Community Edition) Build #IC-233.15026.9, built on March 21, 2024 Runtime version: 17.0.10+1-b1087.23 amd64
In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects?
|java|spring|intellij-idea|
I want to access nested JSON object values by iterating. This is the data I get from my query: {"_id":"654d4224fb04863b8eb89200","firms":[{"_id":["65423d5c240388c1594e7b7b"],"name":["Camaro Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8920d","firms":[{"_id":["65423d5c240388c1594e7b82"],"name":["DANCO Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8921b","firms":[{"_id":["65423d5c240388c1594e7b7d"],"name":["San Joaquin Bit"]}]} I would like to create a second array with only the firm and name and have tried the following: vendorList.forEach(function (d) { vendorArray.push({ id: d.firms._id, name: d.firms.name, }); }); My output looks like this: Vendor List: [{}, {}, {}, {}] An empty array.
How to access nested json object inside array in react js
|javascript|json|
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file. I will use this scenario to explain, in this case, I only have the customerID: **Given** I search for customer A <customerID> **When** I get the customer info: customer name <customer name> and last orderID <lastOrderID> in customer general info page **Then** I compare it with the actual last orderID in the order list to see if the customer name <customername> and the last orderID <lastOrderID> are matching. Example: |customerID|customername|lastOrderID| |3434423432| ??? | ?? | I would like to get String data of the <customername> and <lastOrderID> from the UI and parse these values into the cucumber variables. What should I do here? Btw, this is the first time I send a question on stackoverflow, so appologize if my info is being explained vaguely. Much appreciate for any helps! I have looked around on the Internet for help, but I'm kinda stuck here.
Because type variable type are not the same var1 = int(input("enter a number:")) num = str(var1)[::-1] var2 = int(num) if var1 == var2: print("its a palindrome") else: print("its not a palindrome") you need convert to integer type or there is another way var1 = input("enter a number:") var2 = var1[::-1] if var1 == var2: print("its a palindrome") else: print("its not a palindrome")
I want to access nested JSON object values by iterating. This is the data I get from my query: {"_id":"654d4224fb04863b8eb89200","firms":[{"_id":["65423d5c240388c1594e7b7b"],"name":["Camaro Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8920d","firms":[{"_id":["65423d5c240388c1594e7b82"],"name":["DANCO Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8921b","firms":[{"_id":["65423d5c240388c1594e7b7d"],"name":["San Joaquin Bit"]}]} I would like to create a second array with only the firm and name and have tried the following: vendorList.forEach(function (d) { vendorArray.push({ id: d.firms._id, name: d.firms.name, }); }); My output looks like this: Vendor List: [{}, {}, {}, {}] An empty array.
Hi there, I am writing some code to resize a borderless form but the results are wrong. I can't find where the problem is
|mousemove|borderless|
null
From my experience, they're not the same. Generally speaking, System Design referrs to the component side of thigs. System design includes more low-level design diagrams. Diagrams and documentation that is closer to the code. Usually, for smaller applications, having only system design (without "Architecture") might be enough. Maybe that's the case with the Url shortener that you mentioned. Consider UML as a representation of System Design. However, the term System Design covers more than only that. When it comes to System Architecture, we're going one level up. Keeping track of System Architecture is absolutely needed for larger, especially multi-service applications, where there are multiple applications talking to each other. Beside services, there might be some other cloud offerings, such as Azure Functions, Queues and Topics for asynchronous communication, different types of data stores, integrations with third parties and so on. In conclusion, System Architecture is responsible for inter-service communication and coordination. Architecture is about the overall system, which might be made out of multiple components, whereas System Design is the design of a single component in particular, and has more in-depth details and documentations about it.