Questions




Answers
1
How to get size of an Amazon S3 bucket?

I am looking at my AWS S3 Bucket and I can see there are lots of files in it, but I am not sure, how much space these files are consuming on Amazon S3 bucket so, how can I know AWS S3 Bucket size using AWS console or AWS S3 Cmd easily and quickly.

...
Read More
Answers
1
How to convert iso date to date-format JavaScript?

I have received date in ISO format fom server-side, like this '2022-09-25T02:00:00Z' and I would like to convert it to another date format like dd-MM-yyyy or yyyy-MM-dd, then how can I do it using Javascript? I would like to know quick and easy solution.

...
Read More
Answers
1
Error "TypeError: Cannot read property 'classList' of null"

Hello, I am trying when simple code to add datepicker in javascript using below HTML and Javascript Code, but I am getting error "TypeError: Cannot read property 'classList' of null", how can I resolve it?

cannot-read-properties-of-null-reading-classlist-min_sgpbi5.png

HTML/JS Code

...
Read More
Answers
1
What difference does checkpointing makes in log based recovery?

This is more of a big data question(GFS related). I'm not getting how checkpointing help? Can you share 1 example(which could be DBMS example).

Say these are the operations on the database.

...
Read More
Answers
1
Get only time from Datetime in C#?

Hello, I was checking this How to show date time with am/pm using C# in ASP.NET? but I would like to know simple C# code to get only time from datetime in C#.  So for example, If I have  ' 09/04/2022 03:52 PM', i need only '03:53 PM'.

...
Read More
Answers
1
Why did we remove multiple document types within an index in ElasticSearch?

The answer is this-: Because we can't declare a field of different data types within a same index in different document types.

Say there's an index called "college".

Then there are document types called "student" "teacher" "administration" "staff".

What problem would occur if we allow this? 

Books and documentations are saying that if a field called "date_of_join" is given a "text" data type in "student", then we can't give "date_of_join" as "date" data type in "staff".

It says that it's due to the way Lucene is.

This is because of the way Lucene maintains the field types in an index. As Lucene manages fields on an index level, there is no flexibility to declare two fields of different data types in the same index

But this is not clear without an example(of how lucene is storing index). Can you guys clarify this? 

I know that lucene stores inverted indexes though. But still I'm not clear.

...
Read More
Answers
1
How to add time in datetime in C#?

Hello, If I have a time string "4:49 pm" or timespan value and I would like to add it in a datetime value, how can i do it in C#?

...
Read More
Answers
1
How to detect click outside an element (or div)?

Hello, I am trying to work on a project which requires me not allow a user to click outside of a particular element, let's say a "<div>" or "<p>", then how can I detect click outside an element using Javascript?

...
Read More
Answers
1
How to add authorization header in postman?

Hello, I have read this post Upload or Send File in Postman but now I want to add authorization token also, before sending request in Postman? So how can I add authorization header in postman? I have generated token using simply GET request.

...
Read More
Answers
1
How does Content Delivery Network works (from web dev point of view)?

I find it simple. Have a CDN edge server near the user, cache the request and when next time he asks for it, give it. But I am pretty sure what I am thinking, although correct, isn't complete and there is something missing.

My book has just included some small benefits of CDN, that's all. But that too isn't given in detail with illustrations(although it is not necessary i feel). Exam questions of mine has asked like how CDN reduces delay in received requested object for 8 marks(3hrs exam, 80 full marks).

The answer to this is literally 1 line ie the definition of CDN. and maybe 2 figures showing how it works with and without CDN. another question asked in the exam is-: how proxy CDN works, explain with example.

I am not sure how the updating of content happens.

Does only 1 proxy server gets updated or do all proxy servers get updated when 1 CDN brings a fresh copy of the web page from the origin server? It is confusing; believe me, the tutorials for this thing are advertisements for various CDNs.

...
Read More

Page 1 of 52