Tumgik
#hello stateless
hunxi-after-hours · 1 year
Note
hey, anon from the anti-authoritarian wuxia ask a while back, took a looksee through Stephen Teo's The Wuxia Tradition and the essays about danmei you mentioned in your response, which was really great and insightful! i think what's so interesting to me about the modern wuxia tradition as we understand it now is that its purpose from the very beginning was to be nationalistic propaganda, which obviously carries into contemporary wuxia adaptations and new works today. (1/7)
(long ask, long response! conversation begun here; everything else under the cut)
but what makes the genre compelling to me is that wuxia offers so many glimpses into these potentially transformative visions of a radical future- wuxia presents a vision of a society in which communities have the autonomy to express themselves, support each other, and create their world through creative and collective activity. and all of this is facilitated by the the nebulous jianghu setting, which is this alternative space more or less free from the grip of the imperial state, (2/7)
which it unintentionally ends up being just by virtue of existing far from the imperial core. and obviously class hierarchies imposed by wealth and power still exist within the jianghu, but like, that autonomous nature of the jianghu is something I'd be curious to see be developed and pushed further. what would it look like within a wuxia narrative to explore the idea of an intentionally and explicitly anti-imperial, stateless, classless jianghu, and what would it take to get there? (3/7)
that vision of an alternate autonomous society is built upon these very rigid worldviews that don't challenge the audience (i.e. nationalism, pale-skinned conventional beauty standards, xenophobia, the idea of disability as something to be overcome, etc) that were baked into the inception of the genre, and which undermine said radical potential. and i guess that's my gripe with danmei too. (4/7)
i feel similarly about people who treat the consumption of danmei as an inherently progressive political act as I do to the way I feel about neoliberalism: it presents a facade of progressivism without actually meaningfully existing in opposition to oppressive structures. and, like you mentioned, both danmei and wuxia have yet to hit that moment of reckoning. i'm aware the direction these things go are massively shaped by geo-sociopolitical forces outside of the creators' control, etc. (5/7)
but so many people benefit from access to the imperial core in ways they aren't or don't care to be aware of. and to me, that is what makes art so important - it has the potential to not only expose the monstrous ways in which a society derives its power, it also has the hopeful ability to imagine transformative, non-oppressive futures. (6/7)
you're right that the cultural shift that would spark a post-colonial reckoning in Chinese literature and art needs to be spearheaded by Chinese creatives themselves. as an invested bystander, I'm curious to see where this goes. sorry this was so long, but thank you for your time! (7/7)
hello again anon!! glad you enjoyed looking through Teo and found his writing insightful! I think in many ways the conversations we’re trying to have about danmei, wuxia, internet literature, and some nebulous postcolonial reckoning are somewhat ahead of the curve, which is why we’re here being like “I want to read something like this!” only to find that said work hasn’t necessarily been created yet (again, if anyone’s got any leads, I’m all ears)
I do also think it’s worthwhile to note that a significant factor in why danmei and/or internet literature may not be as daring and subversive as we wish it were is the simple, starkly pragmatic fact that these works need to sell. they need to be attractive and fun, gripping and engrossing, to even make it in the cutthroat environment of the various literature cities. the competition is vicious and the readership unforgiving; last year saw at least one WeChat article about the intense pressure of being a webnovelist, and how the soul-crushing pressure of trying to break into the rankings has pushed authors towards suicide. with the popularization of the genre comes increased competition, and with increased competition comes a streamlining of new works towards established precedents of success (the proliferation of wuxia/xianxia/xuanhuan, particular distinctive CP dynamics, etc). 内卷 is here in the danmei genre as well, which makes it difficult to innovate or experiment, particularly if you’re not already an established author
it’s the Hollywood argument for keeping people of color out of leading roles; writing a text that tackles certain social issues (particularly ones that challenge current mores of Chinese society) is a risk, and quite frankly, most authors don’t have the time or the luxury to gamble. this is not to say that current authors aren’t leveraging their established readership and fanbase to write away from popular taste (priest’s 《桥头楼上》 comes to mind, which is a formal departure from her previous works and a trenchant examination of certain social issues), but that the current environment in which creative works are produced aren’t quite favorable to that kind of exploration and subversion — yet
another thing to keep in mind is the role that danmei (and other web literature) plays in the lives of its readers; yes, art has such powerful potential to call upon society to reflect on the injustices and cruelties built into it, but also art — and danmei in particular — is a powerful purveyor of escapism. many Chinese readers and consumers of danmei and related products/adaptations find a haven in these texts, and people seeking comfort are not necessarily prepared for critically examining social injustices in their escapism. again, I’m not trying to say that there is no place for subversion and exploration in danmei literature, but rather highlight the way reader preferences and demands might discourage writers from going too far afield
meanwhile, if I may be presumptuous enough to throw more reading in the air, here are some texts that this conversation is bringing to mind:
The Water Outlaws by S.L. Huang (forthcoming): a genderspun reception of Shi Nai’an’s 《水浒传》, often considered to be the forerunner of the wuxia genre. Guaranteed to get in the weeds and messy about gender, power, imperial centers of power, marginalized marshlands of subversiveness just by the literal concept of its writing
She Who Became the Sun by Shelley Parker-Chan: the closest work I know of to a fiercely diasporic genderqueered cdrama, in which Han centrism is examined and found wanting
《无污染,无公害》 by priest: priest is not necessarily the author I would suggest when it comes to, ah, postcolonial thought, but I just finished reading 《无污染,无公害》 last month and was struck by its profoundly cynical deconstruction of the wuxia genre. priest brings wuxia into the modern day and examines the many ways in which the 快意恩仇 fantasy of jianghu morality and subversiveness clashes with contemporary ethics and laws. beyond that, I think reading an author’s non-danmei works is profoundly enlightening critical and theoretical exercise that definitely re-contextualizes assumptions made about the danmei genre and its writers
“Zhang Yimou’s Hero: Reclaiming the Martial Arts Film for ‘All Under Heaven’” by Feng Lan: this was the first paper I ran into that really got into the weeds of the controversial “天下” at the end of the film, and also introduced me to the recent history and discussions of “tianxiaism,” which is particularly interesting when it comes to discussions about nationalism, imperialism, and postcolonialism in contemporary China in general and the wuxia genre in particular
“Homosexualizing Boys Love in China: Reflexivity, Genre Transformation, and Cultural Interaction” by Xi Tian: I know I’ve gushed about this paper elsewhere, but this is only paper I’ve found so far that examines how the danmei genre has shifted and changed over the past few decades in response to reader feedback, shifting societal opinions, and self-reflection, and it’s fascinating
whew, okay, this is long enough! one last thing, from one invested bystander to another: don’t let anything stop you from creating the content you wish to see in the world <3
147 notes · View notes
decolonize-the-left · 2 months
Note
Hello hello! I'm an ML. I'd like to preface this by saying that I am not trying to start an argument or attack you, contrary to what the introduction to this ask might suggest. I just saw your post regarding the PSL in response to an anon asking about whether communist ideology supported no states, and I just wanted to clarify some definitions. I'm sending this as an ask because I don't want it to detract from the point you made on the post regarding the PSL and the Uyghur genocide, because it's an important thing to talk about and address and I believe it should be the main focus of the post.
Communist ideology follows Marxist theory (as you have stated) and the definition for socialism as outlined by Marx is "collective ownership of the means of production." To many communists, this usually means public/state ownership of the means of production and most industries. On top of that, communists believe that socialism is a transitional period in between capitalism and communism. Communism as outlined by Marx is a "moneyless, classless, stateless society." This is the definition of communism as Marxists and MLs believe it. The definition you provided for socialism is actually the definition for communism according to what Marxists believe.
Again, I don't want to detract from your main point in that post, or start an argument, or attack you. I just want to correct some of your definitions regarding communist ideology (as it is partially the focus of that post). I'd also like to thank you for your criticisms and I find it incredibly saddening that it seems like your only exposure to communists have been those incapable of self-reflection. Solidarity with all oppressed peoples and those resisting genocide!
Thank you. And like you should add that to the post. I don't think it would detract from the point to make sure people know what I'm talking about. One of the questions that anon asked was what's communism didn't they?
Tumblr media
And also thank you! I'm also sorry that's been my experience lol
Solidarity ❤️
17 notes · View notes
fairuzfan · 6 months
Note
Hello, do you think you could explain a bit how Israel limits the movements of Palestinians, like can people from gaza go to Jerusalem or the west bank? If you could recommend some places where I could find more information I would really appreciate it because i don't know very much, thank you
Hey thanks for sending this in. I actually already have a post typed up about this from like the beginning of October that might be useful if you'd like!
Let me know if this answers your question. If not, feel free to send it in again!
28 notes · View notes
djuvlipen · 4 months
Note
Hello, I am Lovari from Poland. My name is Naomi. I wanted to ask your thoughts and opinions on the Palestinian/Israeli conflict. Many people are using the Romani people as an argument against Zionists. They say, "We faced the same thing the Jewish people did, yet we aren't doing all this that Zionists and Israel are doing to Palestinians just to get a homeland." I don't want a country. Many members of my family don't want one either, and even my grandparents, who are survivors of the Holocaust, don't want one. I am very pro-Palestine, but I feel a little weird that we are being brought up just for an argument.
Hi! I totally get you here, I have also seen Romani people being brought up in those discussions to compare us to Jewish people. I am also very critical (euphemism) of Israel, but just like you, I feel weird about those comments. It boils down to different things:
It usually implies Jewish = Zionist, which is not true as many Zionists aren't Jewish and many Jewish people aren't Zionist
You just cannot compare the situation of Romani people to the situation of the Jewish people. We are at two different places in the world. Romani people have virtually no civil rights movement, we mostly live in Europe, and the majority of us live in poverty. Jewish people have been fighting against antisemitism for centuries, they have written theory about antisemitism and antisemitism tends to be more acknowledged than anti Romani racism (note: I am not saying antisemitism is as acknowledged as it should be, it is often ignored too, but it still tends to be more acknowledged than anti-romani racism). Jewish people mostly live in the US or in Israel, and they tend to be more middle class. Furthermore, antisemitism doesn't work in the same way anti-romani racism does, the tropes invoked are not the szme, the way it manifests and reinvents itself are not the same, etc.
These are two very, very different positions to be in and it feels very superficial to just compare Romani and Jewish people on the mere basis that we were both targeted during the Holocaust.
Those comments also ignore the one thing that is at the core of the (barely existant) Romani movement, the idea that we are a stateless nation, that we claim to have no ties to any specific territory and that we are proud of that.
When people try to compare Romani people with Zionists (in a way that conflates Zionists and Jewish people), it rubs me the wrong way because it shows these people don't know about the characteristics of anti-Romani racism, about the present living conditions of Romani people, and about the characteristics of the Romani movement. They are just name-dropping us to get back at Jewish people (not Zionists) by basing themselves on the Holocaust, which is the only piece of Romani or Jewish history they apparently know about. It is a superficial comparison that does a disservice to every group involved.
(I also want to reiterate I am not trying to undermine how prevalent antisemitism is; I am just focusing on the anti-romani aspects of that comparison because that's what I'm more knowledgeable about)
8 notes · View notes
hey-hamlet · 4 months
Note
Hello!! Your au's have me very inspired once again, and I was wondering your thoughts on submitting writing inspired by them? Because I'm playing around with a stateless hero au with a world inspired by Eve's music videos instead of the classic rpg, and I'm not sure if it's too dissimilar for you to be okay with me sending it in
Wow im tragically late responding to this, the answer for stuff like that is always yes! no one needs to ask permission or anything, i just want a link so i can see!! i get very excited.
7 notes · View notes
somerabbitholes · 1 year
Note
Hello ! I adore your blog<3
Can you please recommend some books based on the partition of India? (Preferably fiction, but non-fiction too!)
hi, here you go —
fiction
i haven't read as much fiction on the partition as i'd like to, but this is where i'm at:
basti by intizar husain: a pakistani novel, technically; it follows a literal basti through one character called zakir, and looks at how it gets evicted/disrupted/reconstituted and so on over the partition years.
tamas by bhisham sahni: based on a riot he witnessed in rawalpindi; it's a tiny story that happens just before august 1947 and sort of looks at the birth of the riot in the communally charged area/time. i mean this translation.
mottled dawn by saadat hasan manto: about fifty stories based on and written around the partition. anything manto is really good, obviously because it's him, but also because it's a more immediate work than historical fiction and to that end, more willing to experiment with the sheer confusion of the moment
the shadow lines by amitav ghosh: not strictly and only about the partition, but it does look at the much longer shadow it casts in bengal
non-fiction
freedom at midnight by larry collins: about the last-minute politics and negotiations around the transfer of power and the radcliffe line and the mountbattens
indian summer by alex von tunzelman: again about the specific dynamics and negotiations between the mountbattens and the congress
guilty men of india's partition by ram manohar lohia: this is a little polemical but it's good to think with because lohia was obviously a socialist and critical of the congress, and he was also there, so it's a good contemporary take
stateless in south asia by deepak k. singh: this is a little specific, but i liked it. it's about the chakma tribe in north-east india (specficially chittagong) and what happens to them over the partition for east pakistan and then later when it becomes bangladesh. it also very seriously looks at citizenship and nationality and how we define either
the spoils of partition by joya chatterjee: about bengal between 1947 and 1967 and how it deals or not deals with the partition, the influx of refugees/immigrants
62 notes · View notes
Note
Hello! I see many Catalan twitter accounts with this triangle 🔻, what does it mean? Is it pro-independence? :o
Hi!
No, it's a symbol for the Spanish left-wing, often used by members of the Spanish political party Podemos. It represents the symbol that political prisoners had to wear in Nazi concentrations camps.
Tumblr media Tumblr media
However, it's worth saying that Spanish and Catalan political prisoners in Nazi concentrations camps only wore the red triangle when they were arrested in political activities (some people on exile joined the French resistance). Most of them did not wear the red triangle but the blue triangle (for stateless people, since Franco had declared all who escaped the dictatorship on exile to not be Spanish) and usually with an "S" on it that stands for "Spanien" ("Spanish" in German).
Tumblr media
33 notes · View notes
xcziel · 6 months
Text
tuesday new releases for october 31:
what you need to be warm poem by neil gaiman, a children's hardcover with illustrations by a group of artists from around the world, with sales proceeds supporting UNHCR, the UN Refugee Agency: "which helps forcibly displaced communities and stateless people across the world"
absolution new novel from alice mcdermott
dirty thirty latest installment in janet evanovich's stephanie plum series
a cherokee archaeologist investigates the disappearance of two women, one of them her sister, in thriller blood sisters by vanessa lillie
henry winkler memoir being henry: the fonz and beyond
willie nelson's energy follows thought: the stories behind my songs (the tale behind hello walls in print!)
new sports-themed paperback romance the graham effect by elle kennedy
a fire in the flesh book 3 in the flesh and fire series by jennifer armentrout (the titles are getting to be like that joke: only four nouns allowed lol)
dave grohl's the storyteller is out in paperback
what the river knows new YA from isabel ibañez
book about the cultural history of the american girl dolls by alison horrocks and mary mahoney dolls of our lives
hardcover profile of alexey navalny dissident by david herszenhorn
stranger things season 4 tie-in novel flight of icarus by caitlin schneiderhan
the catwings complete paperback collection box set of the four books by ursula leguin!!
hardcover box set of books 1-3 in the lore olympus graphic novels
2 notes · View notes
anexperimentallife · 1 year
Note
Hello! I haven’t been as active on Tumblr in recent months, so I sort of missed the end? of the story about you guys trying to get your daughter’s paperwork finished, and you guys finally leaving the Philippines (temporarily?)
I can’t seem to find an updated post about it. Would you either tell me about it, or send me the link to the story? I’d like that very much. I was very invested in your story. I even sent some money, I was very touched.
Thanks,
Kelli
So sorry this took so long, and thank you! We finally got her "corrected" birth certificate (still has her middle name wrong, but at least the part that was screwing us is fixed, so I guess that's her legal name now, because we couldn't afford the time or money to fight any more), then it took a couple of in-person appearances at the embassy in Manila, as well as some documents exchanged via courier and more emails and phone calls, but we were finally able to get her citizenship confirmed (which was supposed to be automatic) affirmed, get her a passport, and take a cheap round trip flight as a family to reset our visas.
It took a bit longer to get her an SSN, and now we're waiting for her to be added to my disability. We're a little nervous, becaue they demanded the ORIGINALS of some stuff like El's birth certificate and our marriage certificate and stuff--they were supposed to make copies and send us back our originals, but have not done so yet.
Thanks to you and others kicking in, we were actually able to accomplish all this. It HAS left us about 15K or so in debt, though, which is gonna keep increasing for a while. We're just hoping El's backpay is enough to pay off the expenses for fixing her stateless status.
Thanks again, for everything, and I hope you're doing well. ❤️
EDIT: Forgot to mention I also had civid a couple of times during this while process, had to be on oxygen for a month, was admitted to the hospital once, and required a foot surgery for a persistent infection, plus some other medical issues, so that complicated the whole process, and keeping me alive added to the expense.
14 notes · View notes
dasha-aibo · 2 years
Note
Hello, I am a stateless sexual degenerate fleeing conscription. I have spent years hiding in a bottle and horde animals. Let me tell you how the world works! That's you. That's how dumb you sound.
Oh shush, you know I can't take compliments
4 notes · View notes
akrnd085 · 2 days
Text
AWS Lambda: Harnessing Serverless Computing
Tumblr media
AWS Lambda graviton is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you. This article will explore the capabilities, use cases, and best practices for AWS Lambda, incorporating relevant examples and code snippets.
Understanding AWS Lambda graviton AWS Lambda allows you to run code without provisioning or managing servers. You can run code for virtually any type of application or backend service with zero administration. Lambda automatically scales your application by running code in response to each trigger.
Key Features of AWS Lambda Automatic Scaling: Lambda functions automatically scale with the number of triggers. Cost-Effective: You only pay for the compute time you consume. Event-Driven: Integrates with AWS services seamlessly to respond to events. Setting Up a Lambda Function 1. Create a Function: In the AWS Management Console, select Lambda and create a new function.
2. Configure Triggers: Choose triggers like HTTP requests via Amazon API Gateway or file uploads to S3.
3. Upload Your Code: Write your function code in languages like Python, Node.js, Java, or Go.
Example of a simple Lambda function in Python: import json
def lambda_handler(event, context):
print(“Received event: “ + json.dumps(event, indent=2))
return {
‘statusCode’: 200,
‘body’: json.dumps(‘Hello from Lambda!’)
} Deployment and Execution Deploy your code by uploading it directly in the AWS Console or through AWS CLI.
Lambda functions are stateless; they can quickly scale and process individual triggers independently.
Integrating AWS Lambda with Other Services Lambda can be integrated with services like Amazon S3, DynamoDB, Kinesis, and API Gateway. This integration allows for a wide range of applications like data processing, real-time file processing, and serverless web applications.
Monitoring and Debugging AWS Lambda integrates with CloudWatch for logging and monitoring. Use CloudWatch metrics to monitor the invocation, duration, and performance of your functions.
Best Practices for Using AWS Lambda Optimize Execution Time: Keep your Lambda functions lean to reduce execution time. Error Handling: Implement robust error handling within your Lambda functions. Security: Use IAM roles and VPC to secure your Lambda functions. Version Control: Manage different versions and aliases of your Lambda functions for better control. Use Cases for AWS Lambda Web Applications: Build serverless web applications by integrating with Amazon API Gateway. Data Processing: Real-time processing of data streams or batch files. Automation: Automate AWS services and resources management. Performance Tuning and Limitations Be aware of the execution limits like execution timeout and memory allocation. Optimize your code for cold start performance. Cost Management Monitor and manage the number of invocations and execution duration to control costs. Utilize AWS Lambda’s pricing calculator to estimate costs. Conclusion AWS Lambda graviton represents a paradigm shift in cloud computing, offering a highly scalable, event-driven platform that is both powerful and cost-effective. By understanding and implementing best practices for Lambda and incorporating ECS agents, developers can build highly responsive, efficient, and scalable applications without the overhead of managing servers. ECS agent enhance this infrastructure by enabling the seamless deployment and management of Docker containers, offering a flexible and efficient approach to application development and deployment. With Lambda and ECS agents working together, developers can leverage the benefits of serverless computing while ensuring optimal performance and resource utilization in containerized environments.
1 note · View note
metricsviews · 6 months
Text
Building a RESTful API from Scratch with Node.js
Tumblr media
In our previous article, we introduced the fundamentals of Node.js. Now, let's take a deeper dive into its capabilities by learning how to build a RESTful API from scratch using Node.js. This step-by-step guide is perfect for developers looking to harness Node.js for building robust server-side applications.
This article is intended for developers with a basic understanding of Node.js and JavaScript. It's suitable for those who want to expand their skill set by creating RESTful APIs.
Node.js is widely used for building RESTful APIs due to its non-blocking I/O and event-driven architecture. This tutorial will help developers unlock the power of Node.js in the context of API development.
In our previous article, we got our feet wet with Node.js and built a basic web server. Now, it's time to step up our game and explore one of the most common use cases for Node.js: creating a RESTful API.
What is a RESTful API:
A RESTful API is an architectural style for designing networked applications. It uses a set of constraints to communicate with resources (data) on the web. REST stands for Representational State Transfer, and it focuses on simplicity, scalability, and statelessness.
An architectural paradigm for creating networked apps is called RESTful API. In order to interact with online resources (data), it employs a set of limitations. Representational State Transfer, or REST, emphasizes statelessness, scalability, and simplicity.
Because they provide a simple and scalable method of processing data, RESTful APIs have become the industry standard for developing web services. They are stateless in nature, meaning that every request sent by a client to the server must have all the necessary data in order for the server to comprehend and process it. They make use of the normal HTTP methods (GET, POST, PUT, DELETE).
Getting Started: Setting Up Your Project
Before we dive into the code, let's make sure we have the necessary tools in place. Ensure you have Node.js installed, as well as a code editor of your choice. We'll also need to set up a new Node.js project using npm (Node Package Manager).
bash
Copy code
# Create a new directory for your project
mkdir node-api
# Navigate into the project folder
cd node-api
# Initialize a new Node.js project
npm init -y
Adding Dependencies: Express.js
For building our API, we'll use the Express.js framework. Express.js is a fast, minimalist, and flexible Node.js web application framework that simplifies the process of creating robust APIs.
bash
Copy code
# Install Express.js as a project dependency
npm install express
Creating Your First Route
In Express, routes are used to define how your application responds to client requests. Let's create a simple "Hello, World!" route to get started.
javascript
Copy code
// Import the Express framework
const express = require('express');
// Create an instance of Express
const app = express();
// Define a route for the root URL
app.get('/', (req, res) => {
  res.send('Hello, World!');
});
// Start the server
const port = 3000;
app.listen(port, () => {
  console.log(`Server is running on port ${port}`);
});
Save this code to a file, e.g., app.js, and run it using node app.js. Your server will be accessible at http://127.0.0.1:3000/.
Testing Your API
You can test your API using tools like Postman or by making HTTP requests from your front-end application. Try accessing http://127.0.0.1:3000/ in your web browser, or use a tool like curl to make a request:
bash
Copy code
curl http://127.0.0.1:3000/
Building More Complex Routes
Now that we have a "Hello, World!" route, it's time to extend our API. Let's create routes for handling different HTTP methods like GET, POST, PUT, and DELETE. Here's an example of creating a simple RESTful endpoint for managing tasks:
javascript
Copy code
const express = require('express');
const app = express();
const port = 3000;
// Middleware for parsing JSON requests
app.use(express.json());
// In-memory task list (replace with a database later)
let tasks = [];
// GET all tasks
app.get('/tasks', (req, res) => {
  res.json(tasks);
});
// GET a single task by ID
app.get('/tasks/:id', (req, res) => {
  const task = tasks.find((task) => task.id === parseInt(req.params.id));
  if (!task) return res.status(404).json({ message: 'Task not found' });
  res.json(task);
});
// POST a new task
app.post('/tasks', (req, res) => {
  const task = {
    id: tasks.length + 1,
    description: req.body.description,
  };
  tasks.push(task);
  res.status(201).json(task);
});
// PUT (update) a task
app.put('/tasks/:id', (req, res) => {
  const task = tasks.find((task) => task.id === parseInt(req.params.id));
  if (!task) return res.status(404).json({ message: 'Task not found' });
  task.description = req.body.description;
  res.json(task);
});
// DELETE a task
app.delete('/tasks/:id', (req, res) => {
  const taskIndex = tasks.findIndex((task) => task.id === parseInt(req.params.id));
  if (taskIndex === -1) return res.status(404).json({ message: 'Task not found' });
  tasks.splice(taskIndex, 1);
  res.json({ message: 'Task deleted' });
});
app.listen(port, () => {
  console.log(`Server is running on port ${port}`);
});
This code sets up various routes for handling tasks, allowing you to perform common CRUD (Create, Read, Update, Delete) operations on a task list.
Database Integration
In the example above, we used an in-memory array for storing tasks. In real-world applications, you'll want to connect your Node.js API to a database, such as MongoDB, MySQL, or PostgreSQL, for persistent data storage. This integration is a fundamental part of building scalable and production-ready APIs.
Securing Your API
Security is a paramount concern when building an API. You should implement authentication and authorization mechanisms, validate input, and handle errors gracefully. Ensuring the security of your API is a vast topic that deserves its own dedicated article.
Conclusion:
In this article, we've learned how to create a RESTful API using Node.js and Express.js. We started with a simple "Hello, World!" route and gradually expanded our API to handle more complex operations, such as creating, reading, updating, and deleting tasks. However, building a robust and production-ready API involves additional considerations, including database integration and security measures.
Thank you for joining us in this journey to build a RESTful API with Node.js. We appreciate your interest and welcome any questions or suggestions you may have.
Stay tuned for our upcoming article, where we'll dive deeper into the world of Node.js and API development, focusing on database integration.
Credit – Kashif Patel (Backend Lead)
MetricsViews Pvt. Ltd.
MetricsViews specializes in building a solid DevOps strategy with cloud-native including AWS, GCP, Azure, Salesforce, and many more.  We excel in microservice adoption, CI/CD, Orchestration, and Provisioning of Infrastructure - with Smart DevOps tools like Terraform, and CloudFormation on the cloud.
www.metricsviews.com
0 notes
w0rped-moss · 11 months
Note
Hello! Happy June! It's Pride and I have another question (10/30)
Today I do not have a history section in this ask, because work was absolutely chaotic, and frankly I can't currently see straight (lol)
So instead, I'm going to ask something really simple, or rather request something from you: give me a new queer icon to check out!
[the criteria for queer icon is literally whatever, anyone or anything, as famous or non-famous as you want, alive, dead, queer, straight, dumb, smart, real, fake: literally anything please and thank you!<3)
Happy Pride 🌈 🎉
(sorry about this :))
like yeah all empires are evil but edelgard and jeritza from fe3h are my problematic queer icons one is an evil bisexual lady and one is a horribly problematic representation of a bi man with DID but I love them. edelgard’s goal is to destroy religion and make a stateless, classless, and presumably moneyless society. she encourages the workers of the world to unite because they have nothing to lose but their chains religion is the opiate of the masses (despite being an emperor she’s kind of a communist. to me). and jeritza wants to kill or be killed by a hot man/woman.
0 notes
booksandwords · 11 months
Text
The Kite by N.R. Walker
Tumblr media
Read time: 1 Day Rating: 5/5 Stars
The Quote: “You and me; double hit. They want us dead. You’re a kite, and your government just cut you loose.” — Asher Garin
Warnings: N.R. provides two in The Kite. “on-page physical and gun violence. Reader discretion advised." and "This book is intended for an adult audience. It contains graphic language, explicit content, and adult situations.”
Let me say the story of Asher Garin and Tim “Harry” Harrigan is not cute and fluffy despite the grump/sunshine trope, okay it is cute. N.R. Walker provides readers of The Kte with two different warnings. "Caution: on-page physical and gun violence. Reader discretion advised." and "This book is intended for an adult audience. It contains graphic language, explicit content, and adult situations." Note the character's jobs before reading, an Australian government mercenary and a nomadic assassin. These are strong, hard, ruthless men, who have absolutely few qualms with taking lives for money and certainly none for self-preservation. Asher isn't entirely hard, Harry kinda is. They are great characters. Suiting their tropes, societal positions and feel like Walker's writing as I have come to know it. That said even if you like N.R Walker's writing this may not be for you. I do recommend this if you want your grump/sunshine dynamic with a little more bite. It's a pleasing take on assassins in love.
Asher Garin is an enigma. The more information he reveals about himself the less it feels like you know. His lack of history and his statelessness are both intriguing. Four is devoted to him, loyal to a fault. He almost feels like a prism, he shows you only what he or maybe you want to see. His natural charm and charisma are offputting, they prevent both characters and readers from thinking too much. I do have two favourite elements of him he was a language prodigy (be still my heart) and his guns are his family. There are two great moments of Asher with guns. “Hello, pretty baby,” he said. “Christ,” Harry mumbled. “You always talk to your guns like that?” (Asher and Harry). This is Asher talking to his MP7, which is a whole other thing, that is not a small gun. "He handled those weapons like a well-versed lover. It was hot." (Harry) I may not like guns, but I do love competency. I usually have a preferred hero in novels, in this one it was Asher, he made me think as such I can write much more on him than Harry. sorry not sorry
Tim “Harry” Harrigan (referred to nearly exclusively as Harry) is an Australian mercenary. He is angry, and hurting and just wants revenge. He wouldn't mind some answers as to why he's been doing the kills he's been doing for the last handful of years but he can take or leave them but he wants revenge on whomever he can get his hands on for making him work for the bad guys. He grew up in a decent family until the inevitable happened... homophobic parents + gay son = disowned and beaten son. The funniest moment to me as an Australian was the moment with Harry, Asher and the tattoo. “Is that some kind of kite tattoo?” Asher asked. Harry, with his permanent scowl, looked down at his chest. “It’s not a kite. It’s the Southern Cross, the stars on the Australian flag. And I’m not a kite. For fuck’s sake.” The Southern Cross made sense. “You are a kite,” Asher said. “Whether you like it or not.” Only an Australian author would write this. Southern Crosses are a big thing in Australia a sign of pride or rebellion (or both). Honestly, he kinda feels like everything an angry Australian fighter should, just with some brains and an eye for short-term strategy. told you this would be so much shorter than Ashers
Their grump/sunshine dynamic is fun and goes to places I didn't expect. Asher knows how to push buttons and likes to do it just to provoke a response. Honestly, there is something seriously fitting though perhaps bizarre in his lovemap. Arguments and violence as foreplay and almost brutally violent sex, at least the first time he's with Harry. This is so confronting for Harry especially when he caves and just gives Asher what he wants, the guilt is immense. I appreciate the contrasts in support bases, family lives and backgrounds. With Asher, I'm not sure I've ever read a true nomad or stateless character, what we do see of his background is heartbreaking. Those who are close to him he trusts with his life. Harry similarly has few people in his life but trusts no one, his family are awful. I find the choice to make Asher the more measured one, the cold one, the distance shooter is right. Harry has the emotion to burn, is that an Australian thing? That passion we picked up over the years. He is suited to closer combat, not a brawler per se which implies a loss of control, but just a more personal style. Even their take on the endgame reflects their personalities.
Some quotes and comments and there are a lot of them.
It had been so long since he’d set foot on Australian soil, he’d almost forgotten what home felt like. He longed for a life that wasn’t his. Wasn’t this. At first the longing was fleeting, no more than a whisper, but it sang a little louder now. In the quiet darkness of night or the patient wait for a kill. — This is such pretty phrasing. Harry and his slight homesickness is one side of their home coin. But this is also quite an Australian vibe to me. (Harry)
Seeing his eyes flash with recognition, with steel, had been unexpected. Pressing him against the wall in the dark was another bonus. Dangerous, exciting. Hot. — This is Asher's response to Harry's reaction to being saved. He does admit he's always found Harry attractive (feeling mutual). Asher has a slightly seemed up lovemap. But to be honest Harry's was "The fact he was pointing a gun at Harry’s head didn’t help. Harry shouldn’t have found that so hot . . .". These are men who live around guns, who are comfortable with them. Honestly again on the whole competency thing that is what I find attractive.
“When we got old.” Harry’s gaze cut to Asher’s. “Old? I’m thirty-six. How old are you?” Asher shrugged. “Thirty-three.” More or less. “We’re not old.” “That’s retirement age in our industry.” “Is that why they’re retiring us?” “Probably.” Asher sighed. “Been in the game too long. Know too much, seen too much. We don’t move like we used to. We become a liability.” — I don't know why I like this line so much but I do. It just feels like a brutal truth that is hitting them. Though Asher feels older than he is, he doesn't even know how old he is. (Asher and Harry)
“Are you done checking me out?” Asher looked him over once more. “No. Damn.” Harry cocked his head. “You like what you see?” “The fuck is not to like?” — Asher is shameless and I love him. But seriously down boy. Inappropriate timing. (Harry and Asher)
And yet, there was Asher sampling every country’s culture that he visited. In between sniping people, that was. Harry was having a little trouble reconciling the two personas: touristy Asher, the guy who loved the food and the people, and the Asher who could pop a target from a mile away with a twenty-knot side wind. — The dichotomy of Asher. The gorgeous tourist and the seriously competent killer. Not to mention he can switch languages like most people change shoes. Honestly, it's all kinds of appealing to me as a reader. (Harry)
Harry was every bit his type. And he didn’t mind playing flirty games with Harry. He was easy to rankle, and it excited Asher to have Harry glare at him the way he did. He could just imagine Harry stalking toward him, furious and demanding . . . Asher had to wonder just how far he had to push Harry to make that happen. He was thinking it wasn’t far at all. — Asher's mind. I like the way in which Walker has chosen to write him. Light playful and loving life. Teasing. (Asher)
“To, čo by som ti dovolila, aby si mi urobil.” Harry fumed. “I don’t even know what fucking language that was, let alone what you said.” Asher grinned. “Want me to translate?” “No.” “I can.” “I want you to shut the fuck up.” — This is made so fun by the Slovak phrase Asher actually says. It translates as "What I would let you do to me". This after Asher has riled Harry up...again. Asher loves to say things like this in languages he knows Harry won't understand. (Asher and Harry)
He risked a look at Asher, his face pressed against Harry’s shoulder. His olive skin, his dark lashes, his pink lips . . . God, Asher’s mouth was nothing but trouble. Beautiful, talented trouble. — I'm a woman of simple pleasures... this visual is one of them. *sigh of appreciation* (Harry)
As he watched Asher sleep, Harry could feel something under his ribs, something he’d never felt before. A need, an ember to begin with but beginning to burn a little warmer. The need to protect him. — This and the previous quote are actually one after the other. This protective side of Harry is something I didn't expect, they are solo workers. And given how we meet Harry? This was unexpected. (Harry)
Harry wasn’t sure if this was fun or insane. Maybe a little of both. It was also turning him on. The push and pull, the challenge. The physicality. The way Asher smirked, the way he seethed. The way fighting turned Asher on. It was all hot. So yeah, it was definitely both. Fun and insane. — I keep saying Asher's lovemap is a little warped, I think Harry's is too. But unlike Asher, I can't figure out the potential source for it. (Harry)
“Vigilantism, extortion, blackmail. Pretty sure that makes you the bad guys.” Asher laughed. “We’re all bad guys, Harry. You and me, we are the bad guys.” He shook his head, amused. “You kill for your government. I kill for anyone’s government. They might call it service or honourable duty, but it’s all murder.” — One of the two ethical quotes I've included. Both of them are kinda dark but still, the ethical questioning and the idea that they are human is a welcome near necessary inclusion. (Harry and Asher)
“You would let me go in by myself?” Asher almost sounded offended. “Solo. You’d be more solo than Han and the lemon drink combined.” — This is their couple humour, jokes and references and teasing. By this point, Harry is not letting Asher go. No matter what he says. (Asher and Harry)
“Do you think guys like us will ever be allowed to live a normal life? Do we even deserve it?” “What we deserve is up to our makers. It’s not for us to decide. Anyway, who is responsible for the puppet’s behaviour? The puppet or those who work the strings?” “We’re the ones who pull the trigger.” “If we didn’t, someone else would. Always. This game we play has been played for thousands of years. Only the field changes, that’s all. It’s political and dirty.” Asher sighed. “And there are rarely any winners.” — I like the voice Asher has been given. The mind he's been given it iare so appealing to me. These are the two sides of the coin in a way. That we all know this really happens makes me kinda depressed. (Harry and Asher)
🤦🏼‍♀️This review is a hot mess. Thank you to anyone who reads it. But suffice to say I adore this book and I think it may be my fave N.R. to date. 😘
1 note · View note
jenniferdavies · 2 years
Text
What are the Steps for Creating and Deploying a Smart Contract on Solana?
Solana was introduced in the market with the vision of eliminating the problem of scalability. It was brought up in the market in the year 2017. Solana has the power to process 710,000 transactions per second if the transaction does not exceed 176 bytes in the standard gigabyte network. The platform is growing as the fastest-growing ecosystem compatible with global adoption. 
The platform is designed in order to support the growth and frequency-oriented decentralized applications. It is crucial for you to set up a permissionless financial system. Solana blockchain development is considered to be the world's fastest blockchain network having more than 400 projects of Defi, NFTs, Web3, and so on. 
Let's have a look at the definition of Solana. 
Tumblr media
What is Solana?
Solana is a decentralized blockchain ecosystem designed to avoid the multiple problems related to blockchain transactions. The blockchain is focused on improving scalabilities like higher transactions per second and fast confirmation time. 
It is an open-source project that consists of revolutionary technologies from Netscape, Intel, Google, and Qualcomm to support Solana in maintaining its high-performing standards. Let’s have a look at the architecture of the Solana Smart contract.
What is the architecture of the Solana smart contract?
The smart contract model of Solana differs from the traditional EVM-enabled blockchain network. The traditional EVM-based contract integrates logic and state into a single contract which is deployed on the chain. Moreover, a smart contract on Solana remains in the read-only or stateless mode and contains the program logically only. 
The logical separation of state and contract logic happens, which is a significant difference between traditional EVM-enabled and Solana smart contracts. Your account on Solana stores the data in contrast to Ethereum accounts which are just references for users’ wallets. 
How to build a Smart Contract on Solana?
You can easily create and deploy a Solana smart contract called the “hello world”. The program is written in Rust programming language which prints output to the console. Before starting the development, the first step is to set up a Solana environment on windows to make the work easier. 
Set Up A Solana Development Environment: Running the code of a smart contract directly from windows is confusing for many people. So, It's recommended to set up a Ubuntu version of WSL so that you can write the code in Windows and then compile the rust smart contract into a .so file.
Create Solana Smart Construct in Rust Programming Language: First, you need to install the following to deploy the smart contract:
NodJS v14 and NPM
Solana CLI v1.7.11
Git
Latest stable rust build
Helloworld is a smart contract that prints output to the console. Moreover, it also counts the exact number of times the HelloWorld program has been given for the account. 
The first section of the code specifies some standard parameters for the Solana program and determines the entry point for the program..
Next, the process_instruction function takes the program_id, a public key that the program is being deployed, and the accountInfo, which the account used to say hello. 
The ProgramsResult keeps the main logic of the code. The ProgramResult prints a message and chooses the desired account from the ‘accounts’.
After that, the program calculates if it can modify the data of a particular account. 
Finally, the function takes the existing account’s stored number, raises the value by 1 and writes back the result, and displays the message. 
Deploy the Smart Contract: The first step is to clone the repository.
After the program is built, deploy the Devnet. Now you get the precious common’s output and you get the commando to run the program. 
After the demonstration, you can start a smart contract on Solana, here is a glimpse of the dApp development process. 
Finalizing the scope ad collecting criteria
Create a suitable UI design for decentralized app
Writing the smart contract for decentralized app
Smart contract auditing
Developing necessary features
The back-end and front-end integration of smart contracts
Testing the development application 
Mainnet deployment for the DApps
Summary
With industries continuously adopting the blockchain network and decentralized technology, the use of decentralized apps continues to grow. Solana is the high-speed, low-cost, and scalable ecosystem for the development of fast and scalable smart contracts and decentralized applications. 
About Innosoft Group:  At Innosoft group, we have a wide range of gaming products for you to choose from. Our developers are dedicated to providing you with excellent app development services. You can customize your gaming preferences by choosing from several subcategories in our software development. In order to keep your gamers engaged all the time, we provide high-end features in the development of your gaming application. Our developers will help with NFT Gaming Platform Development Service, NFT Marketplace Development Services, sports betting app development, Lottery App Development, Cryptocurrency App Development, Metaverse Development Services, Poker Game development, and more. Contact our team for the most comprehensive consultation regarding gaming application development.
0 notes
zainzahid · 2 years
Text
Protect Apis from Advanced Security Risks
An api hub implies an application programming interface that works as a programming intermediary to pass between your applications. Therefore, it allows sharing and extracting information between applications in a successful available way. Your web APIs here actually establish associations between applications and stages or administrations like games, informal communities, devices, datasets and more. In IoT applications and devices, APIs work well for collecting information separate from being competent enough to control other associated devices as well.
APIs are generally created as REST APIs and SOAP APIs. The Cleanser or Simple Object Access Protocol APIs are based on XML and help inform the convention between PCs for business data. These APIs are built in conjunction with WS security standards that use XML encryption, SAML token, and XML signing to manage security for conditional information. You can also effectively advocate for W3C and OASIS proposals. Similarly, REST APIs or Representational State Transfer APIs are created for distant PC frameworks that involve HTTP to obtain information and to perform specific activities together. Here, these APIs enable secure correspondence using SSL and HTTPS verification. JSON patterns are used in these APIs to consume payloads to improve the movement of information through programs. REST here is about stateless and that implies that each HTTP request is made to contain all the important or required data without the need for the server or client to contain any information to fulfill the request.
Security threats to the API
The programming interface is said in many cases as self-archiving data. It implies that its internal construction and execution can act as a pathway for a digital attack. Assuming that any additional weaknesses like no encryption, weak validation, flaws in business logic, and a portion of unreliable endpoints can also lead to cyberattacks. Digital attacks can often lead to an information disruption which can therefore bring permanent disgrace to a partnership and keep their relationships in jeopardy. Provided that the information interruption can also generate the most recent fines through the most recent GPDR rules. The security of the APIs deserves to be seen in two aspects: data breaches and task disturbances. So getting your API through your design is very basic. Extremely normal phishing acts frequently occur through the end customer. This is making customers meaningful partners in the assault location process and it is encouraging. So it's often a therapeutic measure to select input from the end customer and these circles shouldn't be coded to deal with a bunch of circumstances that are predetermined. The true models must be analyzed for these circles of entry of the final customer.
Let us exhaustively find a part of the weaknesses in API
• MITM or Man In The Middle: Very often, MITM includes obtaining confidential information between two groups through the subtle transfer of changing correspondences by capturing API messages between the two. This MITM goes after what is often considered to occur through two phases: decryption and jamming. To deal with this MITM, it is proposed to have TLS or Transport Layer Security in the API. If your API is poor with respect to this TLS, it's a hello to attackers. Therefore, leverage this transport layer encryption as a general rule to protect your API against MITM. • Programming Interface Injections – Inserting malicious code into the API to stage attacks is called API injection. These should be visible as XSS or Cross-Site Scripting and SQLI or SQL infusion. Weak APIs are, in most cases, extraordinary opportunities for these types of attacks. Assuming your API doesn't do proper channel input or FIEO (turn away from performance), then it's the most ideal way to send the attack as XSS through the end client program. This attack can also add some revenge commands to the API such as SQL commands to drop or add tables to datasets. The best method of handling this problem is well demonstrated through input approval.
0 notes