HNHacker News
TopNewBestAskShowJobs

mhasbini

751 karma · joined November 29, 2016

Mohammad Hasbini

email : mohammad.hasbini at gmail. website: mhasbini.com

submissionscomments
mhasbini··on Tom Scott: After ten years, it's time to stop making videos [video]
Tom Scott was an early contributor to POPFile.
mhasbini··on Google Analytics Opt-Out Browser Add-On
source code:

    /* Copyright 2010 Google Inc. All Rights Reserved. http://tools.google.com/dlpage/gaoptout/intl/en/eula_text.html */
    (function () {
    var a = document.createElement("script");
    a.type = "text/javascript";
    a.innerText =
        'window["_gaUserPrefs"] = { ioo : function() { return true; } }';
        document.documentElement.insertBefore(a, document.documentElement.firstChild);
    })();
mhasbini··on My uBlock Origin filters to remove distractions
There's https://github.com/httpjamesm/AnonymousOverflow. I made https://doublefault.mhasbini.com/ before I knew about it. On the plus side it keep default aesthetics.
mhasbini··on Reverse Engineering TikTok's VM Obfuscation
Deobfuscated script without the vm part: https://gist.github.com/mhasbini/f9269d230ed8eb6dfdbb1bd1be9...
mhasbini··on Ask HN: Someone is proxy-mirroring my website, can I do anything?
Deobfuscated https://gist.github.com/mhasbini/97b471911866e7c7016fa6f27e7...
mhasbini··on Weird monitor bugs people sent me in the last 5 years
I tested another HDMI cable and it's been running smoothly so far.
mhasbini··on The issue of white 100 USD bill in Lebanon
Most of the stores I interact with accept it -as long as it passes a bill checker- but they take a commission -usually 4$- on it.

I don't think they'd take it at all if there was a risk to lose 96$ on it.

People who have access to a fresh dollar bank account[0] have the ability to deposit the old bill and then try to withdraw it again in hope of getting a new bill.

A couple of services spun up that take lower commission for bulk conversions e.g. 2$ instead of 4$ for each 100$.

[0] https://www.bbacbank.com/banking/personal/account/fresh-mone...

mhasbini··on Weird monitor bugs people sent me in the last 5 years
They market it as a pure sine power supply: https://eu.ecoflow.com/products/river-portable-power-station...

Is there another appliance that I can test to see if that's the issue? I don't have an oscilloscope.

Edit: I just tested powering it from a UPS: It's flickering more now and when it show the correct content it stays for a second more then when powering from the ecoflow.

The monitor model is: BenQ GW2780-T.

mhasbini··on Weird monitor bugs people sent me in the last 5 years
I just tested moving the ecoflow to another room (both door closed ~5m between the ecloflow and the monitor) and used an extension cable to power the monitor.

The issue is still happening.

Unfortunately I don't have a different HDMI cable at hand now. I'll test another cable as soon as I get my hands on one.

mhasbini··on Weird monitor bugs people sent me in the last 5 years
A bit off topic: I'm facing an issue where a monitor works only when getting power (220v 60hz) from an outlet but not from an external power generator: ecoflow river pro (220v 60hz) as well.

It's the only appliance that doesn't work. It turns on normally but stays black (I use it in mirror mode).

Every hour or so it may show the correct content for a glance then it'll turn black.

I suspect the power supply source is not the real reason, maybe there's something causing interference with the cable?

I'm waiting to have a free weekend to check it out.

Edit: I'll check if it's related to this issue: https://news.ycombinator.com/item?id=32631017

mhasbini··on Reddit’s disrespectful design
I forked old reddit redirect plugin to redirect to teddit.net: https://github.com/0xbsec/teddit-redirect
mhasbini··on How to Build a Web App with and Without Rails Libraries
When I get a chance, I try to dig into the "magic" parts of the tools I'm using.

I've wrote a bit on this on my blog in the context of creating a (nano) web framework similar to Rails [1] and a (nano) http client library similar to requests [2].

I find this to help assure me that if I have to go one layer deep in abstraction I'd still be able to learn how it works.

[1] https://mhasbini.com/blog/lets-build-a-web-framework.html

[2] https://mhasbini.com/blog/lets-build-an-http-client.html

mhasbini··on RoboScan: Lego+Raspberry Pi-powered analog film roll scanner
The picture in the README is a link to a (older) YouTube video.

Self plug: I was annoyed by the lack of indicators: when it's a picture or a youtube link that I created https://mhasbini.com/blog/embed-youtube-in-github.html

E.g. of before & after: https://github.com/bezineb5/RoboScan/pull/2

mhasbini··on Google users locked out after 15 years' use
Supporting GSuite/workplace accounts is on my list for things to look at once an MVP is ready.

Did you try to process listed here: https://support.google.com/a/answer/100458?hl=en ?

mhasbini··on Google users locked out after 15 years' use
Getting locked out of Google is a legit risk that I have: I'll loose most of my personal & professional data because of it: Emails (Gmail), Files & Photos (Drive), Contacts, Calendar...

Google already offer a way to download backups from Google Takeout. But this isn't enough because:

1- I have to remember to download an up-to-date backup myself. 2- I have to store the backup somewhere. 3- Retrieving the data is cumbersome: e.g. if I need to access my emails after a lock down I'll have to first get a recent backup that I stored somewhere then try to find a program that work on my machine that'll read the email format then import it.

This approach is open to flaws that is why I'm working on the side on a product that address these pain-points: you'll be able to automatically get backups to the service servers and it'll do all the parsing so that you can have a similar services UI (read-only) to the ones from Google.

Shoot me an email if you want to keep updated.

mhasbini··on Firefox Voice
I'm surprised by how well the stt work for me as a non native English speaker. I hope to see more products that uses Common Voice.
mhasbini··on Hashcat 6.0
Congrats on the release! I was following up the development progress on GitHub.

I'm pretty excited about "Plugin Interface". I think we can this refactor effort as a success story: simpler code + improved performance + more testing.

It's amazing that they've added this tutorial for adding new algorithm: https://github.com/hashcat/hashcat/blob/master/docs/hashcat-... (previously information was scattered around PRs).

Thanks atom and all the other contributors!

mhasbini··on Show HN: I made a simple PDF text editor
I tried it with a bit complex pdf structure and it worked like charm +1. Would love to learn more about the underlying techniques/tech.
mhasbini··on Cloudflare is turning off the internet for me
> Launch a competing product that accomplishes the same thing.

Disclaimer: I was part of hCaptcha team.

https://hcaptcha.com/ is competing with ReCaptcha. It's a drop-in replacement for ReCaptcha.

It's privacy focused (supports privacy pass), and is fair: webmasters get a cut for each captcha that is solved correctly (they can choose to directly donate it to a charity of their choice), hCaptcha get a cut for running the service and a customer will get their images/data labeled.

mhasbini··on Cutting Google out of your life (2019)
Disclaimer: I was part of hCaptcha team.

https://hcaptcha.com/ is a drop-in replacement for reCAPTCHA.

It's privacy focused (supports privacy pass), and is fair: webmasters get a cut for each captcha that is solved correctly (they can choose to directly donate it to a charity of their choice), hCaptcha get a cut for running the service and a customer will get their images/data labeled.

mhasbini··on How to annotate everything
Thanks, I'm working on adding this.
mhasbini··on How to annotate everything
I've created Quoter[0] to address this point in particular. I read a fair amount of materials on daily basis (books, blogs, discussions) and some times I want a to save a sentence. With Quoter it's just one click away.

To get reminded about the quotes (or annotations) that I've saved: I've configure it to show a random quote every 3 hours.

This quote was shown when I was writing this comment :)

>Every time you create something – whether it's a website, a client app, a blog post, a powerpoint presentation, or an email – ask yourself, "so what?" If you can't answer that question convincingly, reformulate and try again.

It also have the ability to export saved quotes, I a script to process the output to a page on my website[1].

[0] https://getquoter.app/ [1] https://mhasbini.com/highlights.html

mhasbini··on Show HN: A minimal Fortran TCP client and server
Out of topic. I recently finished reading "Skunk Works Memoir" and I'm interested in the day-to-day life for a developer there. Would you mind sharing a bit of your experience?
mhasbini··on I quit Instagram and Facebook and it made me happier
Here's a Chrome extension that does this: https://github.com/evexoio/focus-on-content (no affiliation).
mhasbini··on Playing Mortal Kombat with TensorFlow.js
Support multiplayer, address some latency issues and we'd have an awesome game.
mhasbini··on Show HN: Quoter – Save and manage your highlights
Hey HN,

Often, I come across interesting quotes or tips that are worth saving.

I’m lazy, so I needed a way to save them effortlessly – otherwise, I would forget or procrastinate.

I also wanted a pop out every now and then to remind me of my highlights, so I don’t have to manually check the quotes.

Then I hacked together a workflow that saves quotes using a shortcut and a cronjob that shows a random quote periodically (every 6 hours).

I used this setup for almost two years and it worked perfectly (My saved highlights: http://mhasbini.com/highlights.html).

Recently I decided to make the quotes accessible from the menu bar with the ability to easily change configurations and manage the quotes. I worked with a friend who had similar needs and so Quoter was born.

It just works and doesn’t get in your way. It’s configurable and lightweight (~3 MB compressed and have small footprint).

Hope you like it.

mhasbini··on Ask HN: Which books have made you introspect?
"The Art of Thinking Clearly" by Rolf Dobelli: It explains some concepts that I've been thinking about but can't directly name.
mhasbini··on Ask HN: Is a React Native like approach to desktop apps better than Electron?
libui[0] is C library that aims to provide this. It have many (WIP) language bindings.

[0] https://github.com/andlabs/libui

mhasbini··on Start Your Own ISP
Thanks for your great work!

> In the past what I've seen is that the police will ask you to identify who was using an IP and also to help them catch the person in the act if they do the thing again

What's the method to catch the person in the act? Is it something like creating a rule: "if [this website] was visited between [foo] and [bar] notify me" at the routing level?

mhasbini··on Ask HN: What did you work on in 2017?
Nice and good luck!

I've started working on a similar service but didn't ship. I'd love to chat (email in profile).

Page 1 of 2Next →