Curated Stories
& Perspectives.
A premium platform for the modern mind. Explore thoughts that matter, designed for deep engagement.
Introduction to node.js
Node.js is an open-source and cross-platform JavaScript runtime environment. It is a popular tool for almost any kind of project! Node.js runs the V8 JavaScript engine, the core of Google Chrome, outside of the browser. This allows Node.js to be very performant. A Node.js app runs in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking. In addition, libraries in Node.js are generally written using non-blocking paradigms. Accordingly, blocking behavior is the exception rather than the norm in Node.js. When Node.js performs an I/O operation, like reading from the network, accessing a database or the filesystem, instead of blocking the thread and wasting CPU cycles waiting, Node.js will resume the operations when the response comes back. This allows Node.js to handle thousands of concurrent connections with a single server without introducing the burden of managing thread concurrency, which could be a significant source of bugs. Node.js has a unique advantage because millions of frontend developers that write JavaScript for the browser are now able to write the server-side code in addition to the client-side code without the need to learn a completely different language. In Node.js the new ECMAScript standards can be used without problems, as you don't have to wait for all your users to update their browsers - you are in charge of deciding which ECMAScript version to use by changing the Node.js version, and you can also enable specific experimental features by running Node.js with flags. An Example Node.js Application The most common example Hello World of Node.js is a web server: CJS ESM const { createServer } = require('node:http'); const hostname = '127.0.0.1'; const port = 3000; const server = createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World'); }); server.listen(port, hostname, () => { console.log(`Server running at http://${hostname}:${port}/`); }); JavaScript Copy to clipboard To run this snippet, save it as a server.js file and run node server.js in your terminal. If you use mjs version of the code, you should save it as a server.mjs file and run node server.mjs in your terminal. This code first includes the Node.js http module. Node.js has a fantastic standard library, including first-class support for networking. The createServer() method of http creates a new HTTP server and returns it. The server is set to listen on the specified port and host name. When the server is ready, the callback function is called, in this case informing us that the server is running. Whenever a new request is received, the request event is called, providing two objects: a request (an http.IncomingMessage object) and a response (an http.ServerResponse object). Those 2 objects are essential to handle the HTTP call. The first provides the request details. In this simple example, this is not used, but you could access the request headers and request data. The second is used to return data to the caller. In this case with: res.statusCode = 200; we set the statusCode property to 200, to indicate a successful response. We set the Content-Type header: res.setHeader('Content-Type', 'text/plain'); and we close the response, adding the content as an argument to end(): res.end('Hello World\n'); If you haven't already done so, download Node.js.
About My Experience Gwalior Fort
The Fort of Gwalior or Gwalior Fort is a 6th-century hill fort in Gwalior , India. Mughal Emperor Babur described it as the "pearl amongst the fortresses of Hind and not even the winds could touch its masts" due to its grandeur and magnificence. It was nicknamed as the " Gibraltar of India" for its impregnability and defensive structure. The fort dates back to the 5th century, perhaps earlier making it one of the oldest defense forts in India. Ancient Sanskrit inscriptions record the name of the fort as "Gopgiri". [2] The current structure has stood since at least the 8th century, and the inscriptions and monuments found within the fort complex indicate that it may have existed as early as the beginning of the 6th century. The modern-day fort comprises a defensive structure and six palaces, two of which were built by the Tomar ruler Man Singh Tomar (reigned 1486–1516 CE). [1] [3] It has witnessed the changing fortunes of the Kushanas , the Nagas , the Guptas , the Hunas , the Pratiharas , the Kachchhapaghatas , the Tomaras , the Pathans ( Sultanate ), the Surs , the Mughals , the English , the Jats , and the Scindias . The present-day fort includes several notable palaces, few of them are Man Mandir, Vikram Mandir, Karn Palace, Shah Jahan Palace, Jehangir Palace, and Gurjari Mahal. Gurjari Mahal was commissioned by Man Singh Tomar, for his 9th wife Mrignayani, who belonged to the Gurjar community. [1] A stone inscription found engraved in the walls of Chaturbhuj Temple (famously known as Zero Temple ) close to the top of the fort contains the second-oldest known record (after the Bakhshali manuscript ) of the numeral " zero " with a place value, as used in decimal notation. The inscription is around 1,500 years old. [4] [5] Etymology Map of the fortress. The construction of the fort is associated with a local legend, and the exact date of its construction is therefore unknown. According to the legend, a local king named Suraj Sen ruled the region around the 3rd century CE. The king suffered from leprosy , a deadly disease that was incurable at the time. [6] One day, while hunting at Gopgiri (Gop Mountain), he met with a sage named Gwalipa or Galav, who miraculously cured his disease by asking him to drink water from a sacred pond, believed to be the pond that is located inside the fort today. When the king was cured, he decided to build a wall around the pond, which later known as Suraj Kund, and constructed the fort on the hill and named it "Gwalior" meaning adobe of Rishi Gwalipa to honor the sage, subsequently a bustling city was developed from all corner of the Gwalior Fort which later came to be known as City of Gwalior. [7] However, historical Sanskrit inscriptions and Gupta period records refer to the site as Gop Parvat (Gop Mountain), Gopachala Durg, Gopgiri, and Gopadiri, all of which mean "cowherd's hill". [8]
The last Train Home
Raghav worked in Mumbai, where life never stopped running. Every morning he squeezed into crowded local trains, clutching his worn-out bag, dreaming of something better. He had left his small village in Uttar Pradesh years ago, promising his mother he would return successful. But success was slow. Months turned into years. Promotions never came, and the city kept demanding more—more time, more energy, more patience. One evening, after a long and exhausting day, Raghav missed his usual train. The platform was quieter than usual. An old man sat beside him, sipping chai from a small clay cup. “Going home?” the old man asked. Raghav smiled faintly. “Someday.” The old man nodded. “Someday is a dangerous word. It keeps people waiting forever.” That night, Raghav couldn’t sleep. He thought about his mother, who still waited for his calls every Sunday. He thought about the mango tree near his house, the quiet evenings, and the simple happiness he once had. The next morning, instead of going to work, Raghav went to the ticket counter. “One ticket,” he said, “to home.” Days later, when he stepped off the train, his mother stood there, older but smiling just the same. She didn’t ask about money or success. She simply held his hand. Raghav realized something then—he had been chasing a future while forgetting the present. And sometimes, going back is not failure… it’s finding what truly matters.
World War 1
First World War Main article: World War I French Army soldiers holding a position in the ruins of a church during the Second Battle of the Marne , part of World War I The First World War occurred from 1914 to 1918. In terms of human technological history , the scale of World War I was enabled by the technological advances of the Second Industrial Revolution and the resulting globalization that allowed global power projection and mass production of military hardware. It had been recognized that the complex system of opposing military alliances (the German and Austro-Hungarian Empires against the British , Italian , Russian , and French Empires) was likely, if war broke out, to lead to a worldwide conflict. That caused a very minute conflict between two countries to have the potential to set off a domino effect of alliances, triggering a world war. The fact that the powers involved had large overseas empires virtually guaranteed that such a war would be worldwide, as the colonies' resources would be a crucial strategic factor. The same strategic considerations also ensured that the combatants would strike at each other's colonies, thus spreading the wars far more widely than those of pre-Columbian times. [ further explanation needed ] War crimes were perpetrated in World War I. Chemical weapons were used in the war despite the Hague Conventions of 1899 and 1907 having outlawed the use of such weapons in warfare. The Ottoman Empire was responsible for the Armenian genocide , during the First World War, as well as other war crimes.
History of Maharashtra
Maharashtra’s history spans from prehistoric settlements to the rise of the Maratha Empire and its formation as a modern state in 1960. Ancient and Prehistoric Period Maharashtra has evidence of human habitation dating back to the Paleolithic and Mesolithic eras , with notable sites like Bhimbetka and the Ajanta rock shelters showcasing early art and culture. The Neolithic period saw the emergence of agriculture and settled life in regions such as Nashik and Kolhapur. Chalcolithic sites of the Jorwe culture (1300–700 BCE) , including the large settlement at Daimabad , indicate advanced urban planning and ritual practices. The region later became part of the Mauryan Empire in the 3rd century BCE, with Ashoka’s edicts in Nashik marking the spread of Buddhism. jmbc.net +2 Classical and Medieval Dynasties Following the Mauryas, the Satavahanas (1st century BCE – 3rd century CE) ruled Maharashtra, contributing significantly to art, architecture, and trade, including the construction of the Ajanta and Ellora caves . Subsequent dynasties included the Vakatakas , Chalukyas , Rashtrakutas , Western Chalukyas , Seuna Yadavas , and Shilaharas , each leaving a legacy in literature, architecture, and administration. From the 4th century BCE to 875 CE, Maharashtri Prakrit was the dominant language, evolving into Marathi by the 9th century. National Portal of India +2 Islamic Rule and the Maratha Empire From the 14th century, Muslim dynasties such as the Bahmani Sultanate and the Deccan Sultanates ruled parts of Maharashtra, influencing culture and language, including the adoption of Persian in courts. Amidst this fragmentation, Shivaji (1627–1680) founded the Maratha Empire , establishing a strong regional kingdom that challenged Mughal authority and later expanded under the Peshwas to cover much of western and central India. The Marathas were known for their military prowess, administrative skills, and promotion of Marathi culture and festivals. Britannica +2 Colonial Period European powers, particularly the British , arrived along the coast in the 16th century. Britain gained control of Bombay Island in 1661 , and by the 19th century, the Marathas gradually succumbed to British expansion , leading to the formation of the Bombay Presidency . During British rule, Maharashtra included princely states like Kolhapur, Miraj, and Sawantwadi, alongside British-administered territories. Britannica +1 Post-Independence and Formation of Maharashtra After India’s independence in 1947, the Bombay State was reorganized linguistically. On May 1, 1960 , the Marathi-speaking areas were separated to form the state of Maharashtra , with Mumbai as its capital. Since then, Maharashtra has been a major political, economic, and cultural center, with governance initially dominated by the Indian National Congress , and later periods of rule by parties like Shiv Sena . Wikipedia +2 Cultural and Linguistic Legacy Maharashtra’s history reflects a blend of indigenous and external influences , from early Dravidian and Aryan settlements to Persian and European interactions. The Marathi language , evolving from Maharashtri Prakrit, has been central to the state’s identity, while monuments, forts, and temples across the state testify to its rich historical and cultural heritage. Wikipedia +1
Python
B rief History of Python 1 2 3 Python, one of the most popular programming languages today, was conceived in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands. The initial implementation began in December 1989 as a successor to the ABC language, which van Rossum had previously worked on. Early Development and Release Van Rossum aimed to create a language that was more readable and easier to use than C, which he found cumbersome for certain tasks. He wanted a language that could handle exception handling and interface with the Amoeba operating system. The name "Python" was inspired by the British comedy series "Monty Python's Flying Circus," reflecting van Rossum's desire for a short, unique, and slightly mysterious name. In February 1991, van Rossum released the first version of Python (0.9.0) to the alt.sources Usenet group. This version included features such as classes with inheritance, exception handling, functions, and core data types like list, dict, and str. Evolution of Python Python 1.0 Python 1.0 was released in January 1994, introducing functional programming tools like lambda, map, filter, and reduce. This version also saw the creation of the comp.lang.python Usenet group, which significantly contributed to the growth of Python's user base. Python 2.0 Released in October 2000, Python 2.0 introduced list comprehensions, a cycle-detecting garbage collector, and support for Unicode. This version marked a shift towards a more transparent and community-backed development process. Python 3.0 Python 3.0, released in December 2008, was a major, backward-incompatible release aimed at rectifying fundamental design flaws in the language. Key changes included making print a function, unifying str and unicode types, and changing integer division behavior. The transition from Python 2 to Python 3 was challenging due to the need for third-party libraries to update, but it was essential for the language's long-term evolution. Recent Developments Python has continued to evolve, with Python 3.9 released in October 2020, introducing features like dictionary merge and update operators, new string methods, and built-in generic types. Python's popularity has surged with the rise of fields such as machine learning and big data, thanks to its simplicity and extensive libraries. Conclusion Python's journey from a hobby project to one of the most widely used programming languages is a testament to its design philosophy and the strong community support it has garnered over the years. Its ease of use, readability, and versatility make it a preferred choice for beginners and experienced developers alike.