Better HN
topnewbestaskshowjobs
Log inSign up

alanfranzoni

3,089 karma · joined Mar 22, 2013 (13y ago) · 498 submissions

https://www.franzoni.eu
Submissions

comment 7y ago · link · parent

Shared database is an antipattern.

Microservices can be an antipattern by themselves, btw.

comment 7y ago · link · parent

Yes, I got that. But the "good parts" according to this artcle derive from where it can work like a statically typed language.

comment 7y ago · link · parent

So... The answer is fundamentally "statically typed", right?

comment 7y ago · link · parent

Site is down. Anyone's got a mirror/outline?

comment 7y ago · link · parent

Feel free to use what you feel is good for you. But this makes a lot of sense (to me!) for simpler scripts. Imagine cron jobs or other "internal" scripts, maybe things that you launch on a cluster via ansible or other tools for periodic or one shot tasks... things like that.

Virtualenv is "stateful" - you need a) to have it installed on the target system b) to deliver both your script AND the requirements.txt file c) to launch virtualenv d) execute your script via virtualenv.

Far more complex than just "run this script and you're done", right? If an "embedded virtualenv" functionality existed, something like

    import virtualenv
    virtualenv.install_requirements("asd==1.2.3")
    # from there, the software goes on with the requirements actually available
Then my snippet would make no sense.

Of course (but I don't know whether this was the real suggestion) I could evaluate using virtualenv (if available) instead of manually setting the sys.path. But I found that to be a bit more complex (virtualenv could actually be installed with a different Python interpreter since it allows the -p parameter, while pip is generally bound to each specific interpreter).

6.

Single File, Editable Python Scripts with Dependencies(franzoni.eu ↗)

4 points · by alanfranzoni · 7y ago · 2 comments

comment 7y ago · link · parent

eBay has no warehouse. eBay has no printing service. But I'd say that eBay should offer a fake-reporting system (which AFAIK exists) and should report users engaging in such activities to police or other institutions.

The problem with Amazon is that they seem not to take appropriate action. How can you not be held liable for printing books in an unauthorized fashion AND selling it from your warehouse?

comment 7y ago · link · parent

Well, they forgot to say that five star online platform - https://rousseau.movimento5stelle.it - is a php handmade webapp with a lot of security problems. Not a good point for the movement.

I think the wired article is decent, maybe it misses one important notion: the five stars movement has been critical at giving a lot of millennials some new interest in politics. For sure it's not the perfect party, but from a participation pov is the best thing we've had in Italy since decades.

9.

Your Smart Light Can Tell Amazon and Google When You Go to Bed(bloombergquint.com ↗)

2 points · by alanfranzoni · 7y ago · discuss

10.

Girls Get Tech. They Just Need Others to Believe It(nytimes.com ↗)

2 points · by alanfranzoni · 7y ago · discuss

11.

School turns to surveillance software that can flag students as threats(washingtonpost.com ↗)

2 points · by alanfranzoni · 7y ago · discuss

comment 7y ago · link · parent

Sort feed by date -> OK. But the setting is not retained. Terrible.

comment 7y ago · link · parent

Possible, but is it a good idea?

If the package is called "openjdk-11", I want JDK 11.

comment 7y ago · link · parent

Jdk 10 is unsupported already.

comment 7y ago · link · parent

This looked like a decent idea when the package was created, but turned into a disaster, an example of how NOT to do things.

comment 7y ago · link · parent

And how is that API call performed? To whom? To my device, via a specially exposed service? Or is it part of gsm/umts/lte specs, and every packet I send back to my carrier contains my gps data?

comment 7y ago · link · parent

I understand a-gps from an end user pov. I don't understand how and when such data is retransmitted to the carrier. Carriers shouldn't have access to my gps data.

comment 7y ago · link · parent

I do not understand. That carriers have my cell location data, that seems ok. But do they get my own phone GPS data along with it? The article seems to imply that such data is sent only when dialing certain emergency numbers... Not always!

comment 7y ago · link · parent

Does anybody have an explanation about A-GPS? How does it work? I thought it was available to end users, I don't understand why carriers have such data.

comment 7y ago · link · parent

I'm happy that 2017 is the date of the article, and not of the event.

21.

Computational Thinking: a universally applicable attitude (2006) [pdf](sci-hub.tw ↗)

2 points · by alanfranzoni · 7y ago · discuss

comment 7y ago · link · parent

Maybe the author has some valid points, but he/she fails to illustrate them properly. Beyond the not-so-reasonable scenario, the analysis lacks precision.

"Wi-Fi credentials stored in plaintext into the firmware"

It seems the author fails to understand (or convey) what is a "firmware". The user must set its credentials, right? So, how is it possible that they're "in the firmware"?

1) Wi-fi credentials stored on a device must be readable by the device somehow when it boots and it wants to connect. There're other, less-used and more complex authentication systems (e.g. X509 client cert authentication) that don't rely on that, but they're harder to setup and support, and you'd still need to revoke a cert after a device is thrown away or compromised.

Sure, some systems provide an "encrypted partition", but usually such partition (since the device must start without a password) is encoded with some variation over the serial number or other unique property of the device... and it's usually not so hard to access. Some systems provide a secure enclave (e.g. TrustZone) where passwords can be stored, but someway it is usually possible to get it out when you have PHYSICAL ACCESS to a device. Not something that I would have expected done right on a MCU.

2) No security settings; ok, this could be improved. But most of them are physical-access only settings.

3) Root certificate and RSA private key extracted

Root certificate and private key of what? Given the fact that the author has a vague notion of "firmware", I wouldn't trust his/her opinion. First, the fact that the certificate is in the firmware is not a problem; just the private key could be a problem.

But is that certificate shared and reused between all devices? Or is it flashed per-device and/or autogenerated and trusted on first use? The author says nothing about that. If it's a single certificate that allows, with such key, ALL devices to authenticate on LIFX server, well, that's a vulnerability! Otherwise, it's probably a good practice.

comment 7y ago · link · parent

Not necessarily, if the private key is different for every device. What would you have done instead?

comment 7y ago · link · parent

I think that the point he'd like to make (a bit clumsily, IMHO) is that we should NOT rely on SUBSCRIPTIONS only. We need more micropayments for single-shot buys.

When I was younger (but then, I'm from Europe), me and my parents subscribed to almost nothing, EXCEPT what we really and totally bought every single time - that was one (1) comic book magazine that I was buying every single week.

Newspapers? Sometimes my parents would read it at the local bar, sometimes at a friend's, sometimes at work, sometimes we would buy it, I'd say 2-3 times a week. But then: WE COULD CHANGE the newspaper every time! And, we DID switch what we bought, cycling between 2-3 newspaper we liked, so we had a kind of 360-degree view on what was happening.

Subscriptions prevent that kind of behaviour.

comment 7y ago · link · parent

As somebody who went from 240 to 180 lbs (I'm about 6 5" tall btw) and stayed there for long, the hard thing to cope with is homecooking. Once i had kids I had no more time for cooking, and hurried pasta/pizza dishes just drive me fat.

26.

Find your next tech conference – conference search engine(confs.tech ↗)

2 points · by alanfranzoni · 7y ago · discuss

comment 7y ago · link · parent

Essential security practices (not advanced PT skills) should be basic software quality concerns. Full stop. "But it works" is not an excuse e.g. for doing sql queries without proper parameter binding.

28.

Telstra and Arduino Partner for IoT in Australia(exchange.telstra.com.au ↗)

1 points · by alanfranzoni · 7y ago · discuss

comment 7y ago · link · parent

That's an amateur job. Resin explains it - you try to do some exfiltration via an external commercial service? Come on.

If the author had setup an encrypted partition where all the "real stuff" was found, and the key for such partition was in-memory only, possibly going alone one of the small rpi UPS/batteries to prevent minor electrical hiccups to make the whole operation fail.... it would have been almost impossible to get back at the author.

Also, using a nice "black box" that looked like a sort of electronic device, instead of some randomly put together rpi+pieces, would have made the device mostly invisible.

So: an amateurish hacking job.

comment 7y ago · link · parent

Or, even better, your services need authentication and authorization even on internal network, with some sort of SSO and/or federated authentication, so it actually doesn't matter where you are. Google's own BeyondCorp initiative works kind of this way.

Getting a route to the outside internet is not such a big deal; access to internal data is.

By the way: it's "amateur hour" if, as you say, that happens for a switch in a public/semipublic area in an office structure. On the contrary, I've seen a lot of "all-enabled" switches if those were accessible just from INSIDE the datacenter, where few people had access. It's not a really reasonable scenario.

12345
17