News for hackers. Stuff that matters.

hamid_rostami

Re:Ask HN: Python Datetime Conversion on Sunday September 29, 2024 @12:52PM (#41688594)
Well spotted, that fixes the issue, thanks!

Ask HN: Python Datetime Conversion

I was working with Python datetime module and came across this corner case. The following assertion will fail:SRC = "09/23/2024 12:00:00 AM"FMT = "%m/%d/%Y %H:%M:%S %p"assert datetime.datetime.strptime(SRC, FMT).strftime(FMT) == SRCBasically I'm converting SRC to datetime object and then back to its original string form. It fails because the resulting string is: "09/23/2024 12:00:00 PM"I was...

( Read More... | 2 comments | on HN )
Well, it's situated in Iran and as you might know they're applying highly restricted rules on traffic. I doubt there is a firewall issue. I have UDP connections from a peer within Iran, but absolutely nothing from outside.
Bases on my investigations, it's been dropping all UDP datagrams.
Yes, indeed udp2raw is very interesting. It's a while I'm playing with it and I found it stable enough. Actually, I avoid putting so much stress on my wireguard connection over udp2raw, just being able to establish SSH connection to my devices is enough for me and this method is doing great so far.
Re:An Implementation of MQTT for Asyncio on Saturday May 22, 2021 @04:06AM (#27244537)
How can I edit the title?
Re:Dynamic DNS in yet Another Way on Saturday December 26, 2020 @02:52AM (#25542063)
This is a simple hack to findout IP of your home server, if your IP isn't static and changes over time.