News for hackers. Stuff that matters.

mhasbini

Tom Scott was an early contributor to POPFile.
Re:Google Analytics Opt-Out Browser Add-On on Sunday September 24, 2023 @05:09PM (#37637216)
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);
    })();
Re:Show HN: uBlock Origin filters to remove distractions on Wednesday September 20, 2023 @11:32AM (#37585496)
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.
Re:Reverse Engineering TikTok's VM Obfuscation (Part 1) on Saturday December 24, 2022 @06:14AM (#34115841)
Re:Weird monitor bugs people sent me in the last 5 years on Monday September 05, 2022 @08:28AM (#32723515)
I tested another HDMI cable and it's been running smoothly so far.
Re:The issue of white 100 USD bill in Lebanon on Sunday September 04, 2022 @11:04AM (#32713827)
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...

Re:Weird monitor bugs people sent me in the last 5 years on Sunday August 28, 2022 @07:57PM (#32633391)
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.

Re:Weird monitor bugs people sent me in the last 5 years on Sunday August 28, 2022 @07:52PM (#32633357)
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.

Re:Weird monitor bugs people sent me in the last 5 years on Sunday August 28, 2022 @03:38PM (#32631347)
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

Re:Reddit’s disrespectful design on Saturday June 26, 2021 @02:37PM (#27644601)
I forked old reddit redirect plugin to redirect to teddit.net: https://github.com/0xbsec/teddit-redirect

Ask HN: Favorite Quotes

Sometime when reading I find quotes that express an idea in a perfect way. e.g.:> But I'm studying hard -- I started up again a few days ago - and I've demonstrated to myself quite a few times that if I do anything daily for a few years I can get pretty good at it -- Steve Yegge> In the curl project we’re deliberately conservative and we stick to old standards, to remain a viable and...

( Read More... | no comments | on HN )
Re:How to Build a Web App with and Without Rails Libraries on Wednesday March 31, 2021 @06:13AM (#26645440)
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

Re:RoboScan: Lego+Raspberry Pi-powered analog film roll scanner on Wednesday December 16, 2020 @07:16AM (#25441678)
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

Re:Google users locked out after 15 years' use on Monday November 02, 2020 @09:30AM (#24968439)
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 ?

Re:Google users locked out after 15 years' use on Monday November 02, 2020 @04:33AM (#24966188)
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.

Re:Browse the Web with Your Voice on Tuesday August 04, 2020 @07:43AM (#24048937)
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.
Re:Hashcat 6.0 on Wednesday June 17, 2020 @05:05AM (#23549351)
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!

Re:Show HN: I made a simple PDF text editor on Saturday May 30, 2020 @10:35PM (#23366695)
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.

Older »