News for hackers. Stuff that matters.

mar77i

> Imagine a software engineer who has been asked to place a backdoor in some software.

I imagine such an engineer just gets a development plan and doesn't get to see the bigger picture, implying the backdoor. It might only get enabled on integration into a larger codebase, and nobody out of the loop will be able to extrapolate its existence from what they get to know for sure.

Hence I completely agree with the argument of shifting responsibility to the developers. Seems like MS is selling more of that eyewash again.

Took me a second to realize what that was.

Also thought the main street nearby went to a sag. Glad it was just optics.

Great Scott! Love his KSP content, where he discusses space trivia to no end...
I wonder why anyone would think inverting semantics like this was anything but asking for disaster.

With all the metaprogramming that is possible, will the matching Cat(age=age) even produce a coherent object that has an age argument passed to __init__? Do keyword arguments in those patterns work on properties? How will it compare to another cat, is that using "is" or __eq__?

Does Cat have to derive from the same type object?

    def Cat(**kwargs):
        return type("Cat", (), {"__init__": lambda self, **kw: ([setattr(self, k, v) for k, v in kw.items()], None)[-1]})(**kwargs)
Re:Applications of Markov Chains (2003) [pdf] on Thursday June 25, 2020 @02:22PM (#23643800)
Personally, I always thought my Alice in Chains Markov chains were pretty funny.

https://git.mar77i.info/alice-in-markov-chains

For anyone trying to run it, the URL in the collect_lyrics.py script should be the band's page on AZLyrics...

Re:How Controllers Maximize SSD Life (2012) on Thursday June 11, 2020 @10:56AM (#23489567)
There was this long Ars Technica article from the same year: https://arstechnica.com/information-technology/2012/06/insid...

I'm not going to assume that the complexity of what's going into these drives was not significantly reduced since, or did it?

Re:Work-from-home boom leads to more surveillance on Wednesday May 13, 2020 @01:43PM (#23169474)
Personal experience. I put more into a job when I see a point in it, because I start to like it. When I don't find my work worthwhile or find interesting in any other way, it's not going to turn out good. What does it take for this? I don't know, maybe I'm screwing up the wording for it somehow.
Re:Work-from-home boom leads to more surveillance on Wednesday May 13, 2020 @01:10PM (#23169113)
Looming destitution never made good work. The way one engages with a good employer is a sense of co-ownership in some way. I can't tell how my way of taking ownership to an arbitrary project is influenced by a relief of financial stress. It might, but I don't believe it's going to up it any, ever.

Which means that with UBI, I might be less inclined to take risks. I'm not an economist enough to tell what that means, but a rough estimate say it won't increase my income. And at this point of the discussion, we haven't even touched the topic of taxes...

Re:Säkkijärven polkka on Wednesday May 06, 2020 @10:34AM (#23091392)
I found this article about Ensiferum's "Finnish Medley", which among other things, compiles the tunes they cover in it: https://ethnomusicologyreview.ucla.edu/content/finnish-medle...

Another band, Moonsorrow, covered a song called "Valkoakaasiat" (white acacia) in a crushingly heavy mood titled "Matkan lopussa" on their Kivenkantaja album. I heard it sung by a Finnish choir and think it may have originated in Russia, from a Soviet movie. I love this stuff, and pairing the modern incarnations with their original counterparts is kind of a cool sport.

The argument that BitTorrent had no legal applications is invalid. If people kill each other with guns, why would you put the blame on the gun company?
Re:68 Bits of Unsolicited Advice on Wednesday April 29, 2020 @06:35AM (#23017600)
Unless you're with the Mongols.
I wanted to argue imps, dwarfs and other types of programs when I noticed that I was applying core wars terminology to a completely non core wars problem...
Even though I'm baffled by this obvious case of throwing out the baby with the bath water, on the upside, the explanation is only kind of backwards. Protecting families from the cyber war torn online spaces with their fraudulence, leaks and other goings on is not entirely unreasonable outside of this context.
Re:Boids on Saturday March 28, 2020 @09:57AM (#22711147)
Recently did that code as presented using pygame, but I haven't uploaded it anywhere yet, that might be a good idea, though.
Re:Equality Is Hard on Tuesday March 10, 2020 @07:00AM (#22534418)
I came here for this, too. You're not mistaken.
Re:Ask HN: How do I learn C properly? on Monday March 09, 2020 @05:10AM (#22524031)
Oh wow, sorry for not looking into this properly. Thanks for the fixed link.
Re:My favourite Git commit (2019) on Sunday March 08, 2020 @08:14PM (#22521712)
I like your approach. And the blogpost's author does not even hint that the story told could mask an underlying issue at all. Which I find mind boggling somehow, but can we call this symptom whack-a-mole and what can be interpreted as anxiety-driven reasoning a cultural issue? Or is there a different, broader context that can wrap this up better that I'm not seeing?
Re:Ask HN: How do I learn C properly? on Sunday March 08, 2020 @07:37PM (#22521483)
To me it's really both. Do one first, notice it works sometimes and you're not sure whether you should publish it (at that point, don't :) -- ) and then look at your own product through the lense of what you're learning. Eg. there are different kinds of UB and different problems it causes. There's a lot of entertaining literature and people in certain communities that can get you on the right track.

One of them was certainly this one: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=63...

Re:Corona: Free Cross-Platform 2D Game Engine on Friday February 28, 2020 @10:19AM (#22443319)
It's arguably the perfect time for them to... go viral.
Re:Shit – An implementation of Git using POSIX shell on Tuesday February 11, 2020 @06:29PM (#22304107)
https://wyag.thb.lt/ If you want to hop the same train, I saw this long ago...
Re:“We already store data. In a database. It works well” on Tuesday February 11, 2020 @05:32AM (#22297434)
The blockchain idea is well-intended, I believe. https://shkspr.mobi/blog/2018/06/how-i-became-leonardo-da-vi...
Re:A Dog of Flanders on Thursday February 06, 2020 @01:38PM (#22258825)
Heidi, the classic tale of the Swiss girl living in the mountains. The story is very popular in Asia and there was a kids' cartoon adaptation in 1974 by a Japanese animation studio. I thought the 2015 3d series also involved Japanese animators, though it turns out that one was produced in and for European TV.

https://www.imdb.com/title/tt0070968/ https://www.imdb.com/title/tt4346362/

Re:Mathematicians prove universal law of turbulence on Tuesday February 04, 2020 @04:58PM (#22241469)
Damn it, you beat me to bringing up laminar flow!
This casts an interesting light on my long-standing dislike for crosswalks: Everywhere else on the streets as a pedestrian, drivers will not expect me, therefore it is my, the pedestrian's, responsibility to stay safe. On crosswalks, it is the drivers' responsibility to stop to let me cross, whether they see me or not, which seems kind of unpredictable to me, and to children, too, I imagine.

As a pedestrian, I feel more comfortable assuming drivers' "get out of my way" mentality, because I cannot assume I was seen.

I imagine that at least some accidents happen in the shared windings of responsibilities between drivers and pedestrians that can grow into full-blown confusion - and accidents, where I'd rather prefer a simple, pessimistic solution for myself as a pedestrian.

Re:Educated Fools on Saturday February 01, 2020 @09:02PM (#22214660)
To an employer, this seems kind of missing the point: you spent your time at college. Did you do real work yet?
Re:Educated Fools on Saturday February 01, 2020 @09:00PM (#22214649)
It made me realize that the reason "Learn to Code" was treated as such an insult on social media is exactly its topical proximity to this very discussion.
Re:MacBook Pro 16 Has a Fan Problem on Saturday February 01, 2020 @11:25AM (#22211322)
Oh, I've seen something similar recently. Not sure which macbook it was, but apparently, at least in some cases, Apple appears to be subscribing to the great benefits of placebo ventilation.

https://www.youtube.com/watch?v=iiCBYAP_Sgg

Re:Comedy Written for the Machines on Saturday February 01, 2020 @06:40AM (#22210008)
Reminds me of the body of work by David Firth. His work also was driven by stark contrast between internal consistency and utter and sometimes unsettling external nonsensicalness.
Re:Congrats! Web scraping is legal! (US precedent) on Wednesday January 29, 2020 @10:25AM (#22181504)
The article's title gives me the cognitive dissonance. Glad it was changed for HN. To add my own interpretation, "US court appears to legalizes X and technically prohibits it" -- what is this "it" the court prohibits, and why do I want to assume the title's subject, which doesn't make sense at all. You don't "legalize X and technically prohibit X". Was the originally intended title truncated somehow?

Older »