lukstru

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

Das war bei Donald Trump nicht anders

[–] [email protected] 2 points 2 weeks ago

Nah thanks, I want to program by solving logic problems, not syntax problems.

[–] [email protected] 46 points 2 weeks ago (5 children)

vim evangelists incoming although they are on panel 3

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

I suspect now 80 years later we're at a much narrower elongated triangle shape again.

Nope, every developed country with a birthrate below 2.1 (surprise, that’s every developed country) currently has a vase shape with the peak at people around 50-60 years, which is a massive problem for pensions. Social systems are going to be challenged massively

 
[–] [email protected] 8 points 4 weeks ago

That is a pant, not pants

[–] [email protected] 2 points 1 month ago

It’s a really great meme template tbh

[–] [email protected] 76 points 1 month ago (1 children)

Why is the tooth Italian and what’s wrong with an Italian tooth??

[–] [email protected] 9 points 1 month ago (1 children)

Get some made of pure cotton, you should be able to wash them at 60°C from time to time. Works very well to remove smell for me. Downside is that they will stick to you during training.

Otherwise, second hand. Those can be really cheap.

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

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

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

Yes, that was on purpose

[–] [email protected] 65 points 2 months ago (10 children)

1. Python

for i in range(11):
    print(i)

2. R

for (i in 0:10) {
  print(i)
}

3. C/C++

#include <iostream>

int main() {
  for (int i = 0; i <= 10; ++i) {
    std::cout << i << std::endl;
  }
  return 0;
}

4. Java

public class CountToTen {
  public static void main(String[] args) {
    for (int i = 0; i <= 10; i++) {
      System.out.println(i);
    }
  }
}

5. Lua

for i = 0, 10 do
  print(i)
end

6. Bash (Shell Script)

for i in $(seq 0 10); do
  echo $i
done

7. Batch (Windows Command Script)

@echo off
for /l %%i in (0,1,10) do (
  echo %%i
)

8. Go

package main

import "fmt"

func main() {
  for i := 0; i <= 10; i++ {
    fmt.Println(i)
  }
}

9. Rust

fn main() {
  for i in 0..=10 {  // 0..=10 includes 10
    println!("{}", i);
  }
}

10. 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

for (i <- 0 to 10) {
  println(i)
}

12. Fortran

program count_to_ten
  implicit none
  integer :: i

  do i = 0, 10
    print *, i
  end do

end program count_to_ten

13. Haskell

main :: IO ()
main = mapM_ print [0..10]

14. Julia

for i in 0:10
    println(i)
end
 

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

752
Yes (lemmy.world)
 
 

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?

14
Weird extrusions (lemmy.world)
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 

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.

 

For our parkour group, we have a list of spots with custom pictures of the spots, embedded right into google maps, so you don’t have to click on any other website. This is quite cool and convenient. Is there any way to move that list (manually is ok) to OSM? E.g. in a city guides functionality, which I have some memory of, but don’t know where it comes from.

228
rule (lemmy.world)
 
 
 
98
Carcans Plage [OC] (lemmy.world)
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
 

view more: next ›