With consumers facing storage issues in their iPhones due to upgrades, videos and apps Apple has been working to improve and offer more storage.
As per some reports it is expected that iPhone14 may give you memory upto 2TB. Thanks to Quad-level cells (QLC), which is the latest development in flash storage technology.
What is QLC (Quad Level Cells)
QLC is the latest in flash storage technology. It stores 4 bits per cell compared to flash storage which stores 1 bit per cell. Triple Level Cells extends this to 8 bits per cell.
There is some drawback also. As per ComputerWeekly “QLC is slower and breaks down more quickly than other flash” and to overcome this suppliers use caching techniques.
Htmx is a library that allows you to access modern browser features directly from HTML, rather than using javascript. It’s actually built using javascript.
“The concept is, let’s use the original model of the web for building web apps, but let’s make HTML more powerful.” – Carson Gross, creator of htmx
Gross also thinks that HTMX can reduce the complexity for many websites. There is a lot of Javascript code that is written, and with HTMX we can reduce that considerably.
It extends the core idea of HTML so that you can do much more with it. When used on server side you typically send back HTML and not JSON.
Frontend developers do not need to write JavaScript, when using HTMX. They can use additional attributes in HTML tags to achieve dynamic content and updates.
It’s backend agnostic, so you can use your choice of programming language for backend like Java, Python, PHP etc.
Lets take an example
<a href="/about">About</a>
When clicked this anchor tag will take you to the “About” page. It will issue an HTTP GET request and display the response.
“When a user clicks on this button, issue an HTTP POST request to ‘/clicked’ and use the content from the response to replace the element with the id parent-div in the DOM”
The project documentation says that now
Any element, not just anchors and forms, can issue an HTTP request.
Any event, not just clicks or form submissions, can trigger requests.
Any HTTP verb, not just GET and POST, can be used
Any element, not just the entire window, can be the target for update by the request.
Lithium-Ion is the preferred battery technology that powers most of the electric vehicles (EV). Given the demand supply gap alternate options are being explored by various startups and automobile makers.
Reliance New Energy Solar is all set to Acquire Faradion Limited. Faradion is a leading global sodium-ion battery technology company, based out of UK.
Sodium-Ion is one such option, which looks promising. It’s less expensive than the current lithium-ion battery, since it’s more available than Lithium. It can be extracted from salt.
Sodium and Lithium share a lot of similarities, being next to each other in the periodic table.
Lithium-Ion batteries also need Cobalt, which is expensive and not easy to obtain. While Na-Ion uses Iron and Manganese, which are cheaper.
The only downside of Na-Ion is it’s less dense compared to Li-Ion.
Sanjay Bhattacharya from Ministry of External Affairs, took to Twitter to inform them that India would soon get e-passports with secure biometric data.
The passport would contain secure biometric data.
It would ensure smooth passage through immigration posts globally.
The e-passport would be ICAO compliant.
And would be produced at India Security Press, Nashik
What is an e-passport?
e-passport will be a replacement for the traditional passport. It will have an electronic chip that carries the same information as the printed passport like name, date of birth etc.
The e-passport could be scanned, which will speed up the verification process at the immigration counter.
It will also help curb the fake passport business. Any tampering with microchip will result in failure of passport authentication.
UltraRAM combines RAM and Storage into one ultrafast memory solution.
The Research
We know that pretty much everyone is exploring how to combine both memory and data. Guess what, researchers at Lancaster University have found a way to make this happen.
Their paper highlights a breakthrough in the mass production of UltraRAM.
UltraRAM is a type of memory that offers RAM and SSD storage combined to provide you with the fastest storage solution possible. It doesn’t release data when turned off and can combine RAM chips with hard drives for a seamless effect.
It’s a non-volatile memory that does not require power to store data and it has the same speeds as DRAM when in use.
So it can lead to a 1-stop solution for RAM and storage by combing them together in a single device. Which means in future when you buy a 1TB UltraRAM device, it will be able to function as both storage and RAM.
Say you are a celebrity blogger and people are waiting for your next blog. You promise to notify them once the blog is ready. You take their emails and once your blog is done notify them via email.
A promise in Javascript works similarly. If you have an asynchronous operation you can use a promise to let the consumer know about its outcome.
It’s a placeholder for an asynchronous operation outcome. It’s an object which has a state and a value.
let promise = new Promise(function (resolve, reject) {
// DB call
if(call was success) {
resolve(value)
}
reject(error)
})
Promise has an executor function with two parameters – resolve and reject. These parameters are predefined by the javascript engine.
Promise object has a state and a result. State can be pending, fulfilled or rejected. Value can be undefined, value or error.
Problem with Promises – a chain of promises makes the code complex.
What are callbacks and what is a callback hell. In this short video I provide a simple explanation to callbacks.
A Callback is a function that is passed to another function.
Callbacks in Javascript
/*
Three ways to work with asynchronous operations in Javascript
1. Callbacks
2. Promises
3. async / await
*/
/*
Callback is a function that is passed to another function
*/
setTimeout(function () {
console.log('Done')
}, 3000)
function myFunction(param1, callback) {
// some operations
console.log(param1)
callback()
}
function myCallbackFunction() {
console.log('Ankur')
}
myFunction(123, myCallbackFunction)
Students preparing for GATE have challenge finding quality resources and lectures. And many of them opt for coaching. Now a much more economical online option is available. Thanks to NPTEL initiative.
As you may be knowing NPTEL has been offering quality courses and lectures for a long time. Based on the feedbacks from the Students it has now launched a portal where GATE Aspirants can find video lectures to build their concepts and practice tests. Along with that there will be video solutions to previous years GATE questions.
In this short video tutorial I explain the basics of this keyword in Javascript. It’s a confusing concept for those starting out with Javascript.
-- QUICK INTRODUCTION TO this KEYWORD
-- If a function has a this reference in it, it points to an object. The object it points to depends on how the function was invoked.
-- It does not refer to the function itself.
function simpleFn() {
console.log(this) // this points to an object
}
simpleFn() // -- window
let myObject = {
myFunctionTwo: simpleFn,
name: 'Ankur',
age: 36
}
myObject.myFunctionTwo()
// strict KEYWORD
// .call(obj2)