Author Archives: Ali Reza Hayati

Avatar photo

About Ali Reza Hayati

Entrepreneur, engineer, hacker, cypherpunk.

Stop building web with JavaScript apps

A not-so-new trend in building web sites is to use JavaScript and force users to launch applications in their browsers in order to be able to access a page. A benefit of that would be that a user who wants to surf different pages on a web site would spend less resources doing so but that’s not always the case.

Most of the times, a user simply wants to receive certain information from a web page. Sometimes we need some questions answered, see a photo, read an article, or download some media. That should be an easy task to do but since the web is now filled with this kind of web sites, that seems to be impossible.

Internet is now filled with web sites that are not simple HTML pages but annoying web programs. They particularly have endless scrolls, fail to show the real material while the program itself is loaded, are stuck on loading animations, fail to give you a universal or accurate URL to the page, and fail to deliver you the material you intended to receive and instead give you unwanted material you never asked for.

From my own experience, these web sites always prioritize their own interests and benefits above yours. You most-probably have visited these kind of web sites and if you ever disable your tracker-blocker, you’ll notice that the advertisements load alongside the program itself, using your computing power and resources, yet the material you wanted keep hiding behind the loading animations.

Quora, a so-called social network of questions and answers, loads a web program on your browser which the material will be loaded inside it. When, sometimes, I visit it to get an answer to a question someones asked it fails to load the full question and answer yet it never failed to show ads or useless parts of its web site.

One other annoying thing is those endless scrolls. Most annoying part of these web sites for me is that they always seem to have a footer where there are “about” and “contact” or “privacy policy” links on them but you can never reach to that. You always scroll until you see the footer but exactly when you want to click on those links, more material will load then you have to scroll down, again, to reach to the footer. Why bother with a footer if you’re not gonna let us use it?

Web is already gone to hell. With all the privacy violations, advertisements, misinformation, censorship, made-up useless standards, and forced designs onto it, it has already become a hell for many users. What we need right now is less programs and more plain polished web pages that simply deliver their material. There’s no need for us to load an entire program in our browser just to find out whether eating an apple is better when peeled or not.

Do something about the war!

While the war between Israel and Palestine is intensifying, I must say that the recent war will only result in more anti-Arab and anti-Semite racism around the world. It had not even been two days since the start of the war that a Egyptian cop shot and killed two Israeli tourists along with their Egyptian guide.

Needless to say the war itself is horrible. As of now more than a thousand people on both sides are dead and thousands more are injured. But perhaps death is not the worst scene we’re watching. Death from war has become something normal in Middle East. We’re used to hearing about war and bombs and military action in the region. The fact that it has become normal is the saddest part.

Nobody around me is shocked by the war. Nobody is terrified about the consequences. Nobody even talks about it. People just casually read the news to each other just like how they talk about the weather. It’s more terrifying than the war itself.

The first day of the war, I’ve seen some disturbing videos. Many people know that I’m not the biggest fan of the Israeli government and I’ve criticized their policies over the years but it doesn’t mean that I support what is happening there. I condemn illegal and inhumane activities of Israeli forces as much I condemn the savagery I see by Hamas.

The first day of the war I’ve seen a video of some Hamas soldiers who killed an Israeli woman soldier, stripped her body naked while carrying her around the city. That’s barbaric. Even in Islam, if we consider them Muslim, respecting the dead is much emphasized. I can’t support any soldier who does that, even if he’s fighting for his freedom.

Some argue that these behaviors are the result of too many years of oppression. But that shouldn’t be the case. A fight for freedom or a war against the oppressor can be justified but some of these actions, such as attacking a music festival and killing two hundred people from many nations, can’t be justified whatsoever.

As someone who is still critical of the Israeli government, I’m deeply concerned that if the current system is overthrown, what and who will replace it. Will we see some new oppressors in the region who will justify their barbaric acts in the name of religion or freedom?

My thoughts and deepest empathy are with Jews and Arabs around the world who most-certainly will be affected by the war whether it’s through the war itself directly or racism coming from angry people. That’s saddening. Many people have lost their lives, probably for nothing, and many more will lose their lives, and it won’t be over soon. Human life has been considered worthless for a long time in Middle East. We have become numbers and statistics. It’s been accepted the way it is inside and outside of the region and the only ones who get hurt are truly innocent people.

Indigenous people of Palestine have been oppressed for many years. Muslims, Jews, Christians, and many other ones are still hurting today, which is coincidentally Indigenous Peoples’ Day, and media and politicians do nothing about it. The importance of Indigenous Peoples’ Day hasn’t been more. While the original holiday is celebrated in United States, it should be considered an opportunity to discuss and act upon the matter we’re facing in Middle East between two groups of indigenous people there, Muslims and Jews.

We must act fast and effective. Humans are not numbers, no matter how much we’re used to losing them.

Training to be less worried

I used to be very relaxed. I still don’t get angry easily or soon. However, lately, I realized that I’m getting worried about little things pretty easy and too much.

Contrary to how I was before, I’m now stressed all the time about little unimportant details or situations I got myself into. I came to realization that I must train myself to deal with what I can’t control.

The past two weeks were stressful for me. I got in some situations that were out of my control and I was mistaken all the time, day and night. It was so intense for me that friends around me were trying to comfort me and they were worried that I get sick from overthinking.

Deep down I knew it was going to be fine and no major disappointment will occur but I still couldn’t control my thoughts and get rid of the overwhelming pressure that I put on myself.

It was at my lowest point at that time that I said to myself I have to put an end to it. It must stop and it must be controlled.

I went to my favorite cafe, ordered my favorite cold-brewed coffee, asked the barista to put on my favorite music, and closed my eyes. I started my training.

It’s simple. It’s what I’m used to do when I can’t sleep. I close my eyes and imagine bright dots. Each dot represents one of my weaknesses or undesirable situations. Then I create an imaginary box and put all of those dots inside the box. Then I try to force those dots out of the box to empty my head from bad thoughts. It may take time but it’s effective, at least for me.

I did it while I was surrounded by my friends and it worked. Proving to myself that I can do it when I want and I can regain control over myself.

I’m back home right now, at the end of my vacation. I’m relaxed, not completely without stress, but not miserable. The amount of stress and pressure on me is back to normal but I didn’t stop my training.

I have to continue my training and I have to have control over what impacts me. I may not be done with the training but I’m already happy.

Bugs of social networks!

As I’m surrounded by my like-minded people, who care about software freedom and privacy, I’m usually questioned about why I’m not on social networks and sometimes get suggestions about what social network may suit me.

I have to explain to them that my problem is not with a certain network, no matter how ethical they might be, but rather is with the essence of social networks. My problem with social networks is that they’re social and they require some bare minimum that I’m uncomfortable with.

Social networks always have a system of rating and assessment of posts and people. They always have like or upvote/downvote buttons, they show following/follower counts and they rely on people to interact with each other and remain active to be able to keep up with the network and the people.

These are the bare minimum requirements of a social network to become functional for people. People love these and if a network misses these so-called features, people consider it broken. A social network with no follower/following count, no like button, no stats, and no kind of rating people is, in my honest opinion, a true “social” network.

My favorite social network will not mind-play people to compete with each other to care about the following/follower rate or how many likes their posts get; but rather tries to connect people solely based on their posts and favorite communities. My favorite social network won’t tell you that your post is good enough (so it got enough likes) or you’re not likeable (because you get few followers), it’ll tell you how beneficial or important you are for your community based on the interactions you have with other members and real communications, not by likes your post gets.

A social network should be about connecting people and members of communities, not about trying to make people compete in pointless mind-games. My problem with social networks is that they’re addictive and they somehow force you to remain active day after day but my favorite social network helps you be active whenever you need or whenever it suits you.

My favorite social network won’t exclude any people, however it moderates the communities and people. The network, which surely should be decentralized, will try to prevent any harms done to you both mentally and physically. It will protect you from privacy-invaders and it will protect you from harassment.

Networks we currently have are trying to show you more and more. That’s one way to make you an addict. Algorithm or not, the way timelines work, even in Mastodon, it’s an endless scroll; specially if you have a lot of following. My favorite social network won’t give you an endless feed, rather it focuses on giving you a feed which makes you aware of how much you’re scrolling or turning pages. This way it ensures that you’re not spending countless hours reading what you won’t even remember 10 minutes later. Of course it’ll also show you funnies or daily stuff happening to your friends but it will also make sure you’re aware of your scrolling.

My favorite social network will give you possibility to limit your interactions. It will hide you from everybody other than what you choose. You will be able to choose whether you want to be public or keep hidden for outside circles. It won’t make you public or show your existence to anyone other than who you choose. You may choose to be discoverable or not, but whatever you choose it will respect it.

My favorite social network won’t be owned by any corporation or a billionaire, it won’t be forced to implement anything because a player in network or a donor requires it, it will only implement what benefits the members of the network.

Of course not all social networks have all of these issues but they all have at least some of these problems. Sadly, there’s no social network, to my knowledge, that fixes all of these problems. And social networks create communities and not all communities are toxic for me. Federated social networks managed to create a network of communities. For example, in Mastodon, we have Fosstodon that is a FOSS community and we have SDF which is an art community all connected together.

And not all members of social networks actually care about my issues or even care about mind-games social networks play, but most people, I believe, have this kind of mindset and it has become the nature of participation in social networks. We should change that.

Ethics

A while ago I asked a question from some people about where they stand on torture. I asked whether torture can be ethical in any situation but then it wasn’t about whether it can be justified, rather I asked about an specific situation.

At first people told me that it depends on the situation. So I had to ask, can torture be ethical in any way? And if yes, where do we stand on methods? Tickling can be torture, as is punching the teeth out of someone’s mouth.

Most people replied that if it’s a matter of life or death of a lot of people then they believe torture is justified however unsavory the method is. But torture is not ethical, it’s just justified. Now let’s get to the specific situation.

Imagine a mentally ill person threatening that he hid a bomb underneath the city and if that explodes, hundreds of thousands of people will die. Now we won’t be able to find the bomb or even make sure there’s a bomb except with torture. The only way to find out if there’s a real bomb is to torture that person. Now keep in mind that that person is mentally ill and it could all be part of his challenges but it also could be real. What would you do? Will you torture (or let others torture) him?

Continue reading

Not a browser war but a Web war

Today’s invite to use Firefox and Firefox-based browsers is not about the browser war the Internet and Web community is typically involved in, but a war for open and free (as in freedom) Web. Since Google is trying to take away our freedom in Web browsing, it is now our duty to fight against Google and its plans.

One of Google’s power arms in this battle is Chrome. Through Chrome (and its base, Chromium), Google is enforcing new made-up standards that nobody wants except Google itself. Standards forced on users that are solely there to benefit Google and its partners. It’s now our duty to fight against them. It has always been our duty.

Any Chromium-based browser should be avoided. Doesn’t matter how the company behind your browser is removing Google’s DRM or how they advertise themselves to you, they should be avoided. I saw companies like Brave and Vivaldi protesting Google’s new war on Web but I think that’s ridiculous. They are some of the companies that are helping Google dominate in the Web browser war.

Using Chromium, which only results in Google winning the Web war, is a betrayal to the Internet and Web community and to all of us. There’s no excuse, there’s not “but”, there’s no good reason, it’s all false and hopeless justification of helping Google take away our precious Web.

Of course, I’m not saying Firefox and Mozilla are perfect but they’re now our only tools and power to fight Google. Our best shot is now Firefox and the cooperation of webmasters and sysadmins and an online civil disobedience against the Google’s efforts to impose its dictatorship on us.

Managed and controlled sleep: end of experiment

I’m super tired right now. Since I started my experiment, I’ve been trying very hard to keep up with it and it’s been 15 days since I started not sleeping well intentionally. 15 very hard days indeed.

At first I thought it becomes easy when I go with the experiment a few days. i thought it’s hard at first and I get used to it but as I was moving forward, it became harder and harder. I’ve become exhausted more and more and I tried to get energy with food and sleeping in quiet rooms to make up for it but it wasn’t working.

I tried to save my energy with limiting my movement and avoid hard work and drinking a lot of water for hydration but it also wasn’t enough.

More I went on with the experiment, more I got distracted and I became less and less focused. It was hurting my job and I couldn’t keep up with everything that was going on. After the first week, to better my work quality and prevent damages to my business, I changed the schedule to bring sleeping hours closer together but it wasn’t enough.

Sometimes I would suddenly come to my senses and realize that I had not been conscious for the previous minutes. But in the same moments that I was doing something, I was aware that I was doing it. I didn’t pass out, I just phased out for some minutes. Something like a muscle memory, you’re aware that you’re doing something but you do it automatically and without your control. For example, I did sell the products and did log the record on my computer but I did them unaware of myself. It was like looking at myself in third-person.

I didn’t have any problem driving or eating. Nothing was changed and I didn’t phase out or sleepy. I didn’t notice any change and nobody told me anything so I guess even if there were some change or inconveniences, it wasn’t that much for people to notice.

Communicating with other people was also good. Only a few people told me I look tired and I could keep up with people and conversations. I also faced no issue with remembering stuff. I thought my short-term memory would be affected but I faced no problem.

Sleeping became hard at some point. I had trouble going to sleep a few times but it wasn’t too much of trouble. I think it was the fifth day of the experiment. Waking up was also hard. It was the hardest part of the experiment. i thought about giving up a few times.

I could still go on with the experiment. I still have some energy left in me, enough to continue the experiment for at least another week but I stopped because I didn’t want to bother my business or people around me anymore. Sleeping hours and crankiness didn’t only affect me, it also affected those around me.

Anyway, I’m gonna sleep like a baby tonight and I’m gonna enjoy every second of it. It was a good experiment and I’m not regretting it. I enjoyed it overall.

Google launches another war at web

I was going to put an exclamation mark after the title but I realized there’s no need as I don’t get surprised by hearing Google is doing something bad to the web. As Google does, they’re launching another attack on free Internet, this time by “Web Environment Integrity”.

Put in simple words, Google is giving developers an API through which they can approve certain browser configurations while forbidding others from accessing a service or a page. This means, assuming one implements it, one can prevent you from accessing their web page or using a service because you used Firefox instead of their choice of web browser.

The intro explains that the goal is to make sure the browser hasn’t been modified or tampered with in any unapproved ways. Given that Google is behind this, unapproved ways surely means whatever hurts Google’s tracking and data-harvesting.

See how you can read this post using your favorite web browser or RSS reader? That’ll no longer be the case if this WEI thingy is put in work. Do you use tracker-blockers on your browser for safe and painless browsing? With WEI they can force you to use the browser the way they want and it can force you not to block ads.

Imagine being forced to use an specific browser of their choice (not yours but theirs) and being tracked not by cookies only but by the browser itself (just like how Google Chrome does) and worse than that, imagine you’re blocked from accessing a web site because you tried to block trackers using an extension.

Well of course they claim that’s not the goal but what’s stopping them? Google has a long history of abusing users and collecting personal information to sell or use for advertisers. Google is not a hero when it comes to keeping promises and they’re not trusted with people’s data.

In the “non-goals” section of the project, it says they don’t want to “interfere with browser functionality, including plugins and extensions.” That’s a promise to not killing ad-blockers, even though the project mentions better advertising support as some of its goals.

It’s dangerous. Google will do anything to collect more and more information from users and to fight those who resist it. It’s dangerous to privacy, security, freedom, and integrity of open web. It will cause a lot of problems for people which are far more bigger than whether we see or not see advertisements.

Think about political activists who are forced to browse web using Chrome instead of Tor and their data is collected by someone who sells them to tyrannical governments. Imagine a human rights campaign organizer being forced to give away personal data and the whole campaign being compromised because of it. The Internet and web were never completely safe but imagine the last traces of privacy being wiped for the profit of a company and some CEOs.

It’s against everything that we stand for but most importantly it’s against our freedom. It’s targeting our freedom of choice, freedom of computing, freedom for information, freedom for Internet and people using it, and freedom of us against tyranny. We should fight against it. It’ll destroy what’s left of our free web and Internet.

Managed and controlled sleep: an experiment

It’s been days since I had a good sleep. I’m going to bed late and wake up early these days. I get no more than 5 hours of sleep a day and it made me exhausted, until it didn’t!

Since three days ago, it’s been hard for me to wake up because I feel very tired but then when I get ready and go to work, I no longer feel the tiredness. It made me thinking about how sleeping and resting works so I’m gonna start an experiment.

Starting tonight I’m gonna manage my sleep. I’m gonna add to the number of times I’m gonna sleep in 24 hours but in each session, I’m gonna sleep no more or less than 2 hours. I’m gonna have 4 sleep sessions during day and night so I’ll get eight hours of sleep in every 24 hours.

The sleep schedule will be two hours from 1 to 3, Two hours from 6 to 8, Two hours from 14 to 16, and two hours from 20 to 22. Since the two hours from 20 to 22 I’ll be at work, I’m gonna liquidize the schedule and adopt changes if necessary. My partner will take over when I have to sleep during work hours so the business won’t get hurt.

I’m not gonna achieve anything from this experiment, I’m just curious to see what happens if instead of eight hours straight, we sleep for two hours, four times a day.