mfz

joined 1 year ago
[–] [email protected] 7 points 2 months ago

In some parallell universe this happened at the first try...

[–] [email protected] 3 points 2 months ago

Don't worry too much about it if it doesn't make sense to you. It can be really valuable if you're deploying a substantial amount of IoT devices on the edge with no to little possibility to do over the air upgrades reliably or when the cost of failure is high (i.e. a technician has to be on site to fix it). So, sometimes you just want it to be running as stable as possible for as long as possible without management.

[–] [email protected] 2 points 11 months ago

I think it was about 1995. I was going to the university and was looking for something Unix compatible I could use at my home computer to perform assignments instead of needing to go into school computer lab. Remote work basically. Think I was using LessTif instead of Motif for some coding task.

Ahh. Those were the days. Used modem to connect to school and connect remotely to the network using Linux. :)

[–] [email protected] 5 points 1 year ago

To add to all great comments here I have one that I’ve used for ages and not seen mentioned here: lftp

It supports many protocols for ftp like over ssh and allows for shaky connections with resume and back in the days when this was more common I used to just run it in the background to download huge files that took days to download and it would gracefully just reconnect/resume/retry until done.

[–] [email protected] 4 points 1 year ago (4 children)

As ActivityPub is just an underlying protocol, the question is similar to asking something like "Is it possible to make an Internet app for everything?".

There will be new ways to use the #fediverse in the future and new applications will be developed and adopted and it makes little sense in trying to provide every possible way to view the fediverse in an ever playing catch-up implementation of a view into it.

Try to look at it as the Internet itself.

It's an attempt at providing a finite and limited answer to an open ended question. Doesn't make a lot of sense.

[–] [email protected] 3 points 1 year ago (1 children)

Just smile and nod slowly..

[–] [email protected] 5 points 1 year ago

It works the same because the value of the last expression in the for loop is not used for anything. It's the side effect of that statement that counts. Eg, the value of i is checked the next time the for loop is executed by the condition check. Try replacing i in the condition check instead with i++ or ++i and you would see different results.

Something like: for (int i = 0; ++i < 10;) { ... }

[–] [email protected] 10 points 1 year ago (1 children)

Well, not all languages allow for fun programming :)

[–] [email protected] 5 points 1 year ago

In C you can group expressions within ( and ) separated with ,. Expressions are evaluated in order and the last expression in the group is the returned value of the group.

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago)

If you're hell bend on achieving the goodness of i++ equivalent you could wrap it up like this:
(i-=-1,i-1)

We're talking C here of course.

[–] [email protected] 13 points 1 year ago* (last edited 1 year ago) (11 children)

Isn't the evaluated value different from the expression? i++ returns the value of i before increasing. i-=-1 would return the value after it has been increased. Wouldn't it be more correct to make it equal to ++i

view more: next ›