Yes I cheated. To be fair, I used each of those languages at one point and knew how to do it but was to lazy to look it up again.
Edit: except Fortran
Yes, that was on purpose
1. Python
python
for i in range(11): print(i)
2. R
R
for (i in 0:10) { print(i) }
3. C/C++
c++
#include <iostream> int main() { for (int i = 0; i <= 10; ++i) { std::cout << i << std::endl; } return 0; }
4. Java
java
public class CountToTen { public static void main(String[] args) { for (int i = 0; i <= 10; i++) { System.out.println(i); } } }
5. Lua
lua
for i = 0, 10 do print(i) end
6. Bash (Shell Script)
bash
for i in $(seq 0 10); do echo $i done
7. Batch (Windows Command Script)
batch
@echo off for /l %%i in (0,1,10) do ( echo %%i )
8. Go
go
package main import "fmt" func main() { for i := 0; i <= 10; i++ { fmt.Println(i) } }
9. Rust
rust
fn main() { for i in 0..=10 { // 0..=10 includes 10 println!("{}", i); } }
10. Zig
zig
const std = @import("std"); pub fn main() !void { var i: i32 = 0; while (i <= 10) { std.debug.print("{}\n", .{i}); i += 1; } }
11. Scala
scala
for (i <- 0 to 10) { println(i) }
12. Fortran
fortran
program count_to_ten implicit none integer :: i do i = 0, 10 print *, i end do end program count_to_ten
13. Haskell
haskell
main :: IO () main = mapM_ print [0..10]
14. Julia
julia
for i in 0:10 println(i) end
PeerTube isn’t bad, it just has no content
You are completely right
I‘d say fatherfucker is still derogatory - after all, it’s still incest. Fatherhugger? Manhugger?
You mean that zeppelin was high in the clouds and motorhead are oil heads?
Do you just let it happen when the time comes?
I know this is a joke.
But seriously from my heart
Fuck you.
Wasn’t it actually apple with the adhesive strips that can easily be removed when a current is applied? Such tech would be awesome if more generally available
There’s a difference between waterproof and rainproof. The Fairphone (just has a clip on back panel for easy access to the battery) is rain proof
I can tell you that Turing is not only celebrated because he was gay. That man is one of the fathers of computer science as we know it today. His Turin machines are the basis for a lot of theoretical computer science
Frankreich?
/s
Currently only have pictures and documents stored, so everything easily fits on 1tb. One copy on my homeserver (unencrypted), one copy on my laptop (Luks encrypted), and one copy with rsync and a raspi at my parents (unencrypted). Might change encryption strategies to all luks.
Is it moral to vandalize Teslas?
The cybertruck was a douchebag car from the beginning
Sliced myself. No idea which setting does this tho
Huh, it matches the slicer output. So whatever it is, it’s on purpose
There are squares because that is the slicer setting for infill, and it’s a cosmetic print. You’re right though, for something more stable I should’ve picked another infill pattern

Why are there triangles in the infill that get filled with one layer?


Currently printing with 5% infill and grid pattern. Why are some of the outer triangles filled in with just one layer? Doesn’t seem to be doing anything.
Sliced with orca slicer
Your porn websites have cookie banners?
First rule of „Ultra-low Fertility Club“: you don’t make children. Second rule of „Ultra-low Fertility Club“: you don’t make children.

If landlords didn’t exist anymore, how would shared flats work?
I just saw this post about landlords being parasitic. While I agree in some points - mainly that by owning more property than you need for yourself, you’re driving up the price for others who want to buy a property. However, I don’t want to buy property when I move. I don’t have the funds for it, and I’m happy with a rented flat. Sure I want to get my own property at some point, however I’m also sure I want to move at least two more times in my life. Buying and selling each time sounds like a lot of hassle. Also, I live in a shared flat, that just sounds like a legal nightmare if the ownership changed every time someone moved out. How does this fit together? Are there solutions to this that don't require landlords to exist?

Weird extrusions
I just stopped a failing print and noticed some weird extrusions happening (not english native speaker, also I'm a 3d printing noob, don't know whether that's the right word). You can see it in the image. Any tips to improve printing quality?

I'm printing on an Ender 3 V3 SE. This print was with standard settings.
EDIT: as a clarification, this isn't why I stopped the print. It failed to adhere to the print plate at some spots. Redid my z offset and hopefully that solved it.

A beautiful Orb Weaver


shared from: https://lemmy.world/post/18665706
Ignore the dirty window lol. Had them in our house for over a week in that spot now, but this is the first time they turned around. I find the legs mesmerizing

What is this beautiful specimen called?


Ignore the dirty window lol. Had them in our house for over a week in that spot now, but this is the first time they turned around. I find the legs mesmerizing

When is it okay to tilt the camera for a photo?
Hi! I rarely see photos that look good by introducing (either a lot or just a little) tilt. Granted, I don’t look at a lot of professional photos, and I’m more talking about typical amateur photos. So my question is: is there a situation where introducing tilt is beneficial? Or am I right in my intuition to just avoid tilt when taking photos?

Seriously, almost all the posts are just doom scrolling. And yes, I'm aware of the irony



What’s happening with my cactus?


I'm wondering about that little appendage that’s coming out, what’s that and what’s it doing? Seems to be going away from the light. I tried to google but most result for my searches were just offers to buy a new cactus