Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LU
Posts
15
Comments
87
Joined
10 mo. ago
  • 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
    
    
      
  • 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

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

  • 3DPrinting @lemmy.world
    luluu @lemmy.world

    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

    memes @lemmy.world
    luluu @lemmy.world

    Yes

    No Stupid Questions @lemmy.world
    luluu @lemmy.world

    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?

    3DPrinting @lemmy.world
    luluu @lemmy.world

    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.

    196 @lemmy.blahaj.zone
    luluu @lemmy.world

    rule

    Ask Lemmy @lemmy.world
    luluu @lemmy.world

    Is this a 2230 M.2 Slot?

    pics @lemmy.world
    luluu @lemmy.world

    Sunset Surf

    pics @lemmy.world
    luluu @lemmy.world

    Carcans Plage

    Spiders @lemmy.world
    luluu @lemmy.world

    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

    Ask Lemmy @lemmy.world
    luluu @lemmy.world

    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

    Memes @lemmy.ml
    luluu @lemmy.world

    I’m that bench

    Ask Lemmy @lemmy.world
    luluu @lemmy.world

    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?

    Science Memes @mander.xyz
    luluu @lemmy.world

    yarr

    memes @lemmy.world
    luluu @lemmy.world

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

    Ask Lemmy @lemmy.world
    luluu @lemmy.world

    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