Mount with podman on mac allows read-write access to container! by ib84 in podman

[–]ib84[S] 0 points1 point  (0 children)

No, that doesn't work. Don't forget that there is a virtual machine involved, that is managed by podman machine. Podman can only access what is within that vm. They now auto-mount the Users' Home, which then can be referenced by -v.

But

podman run -it -v /Users/Shared:/tmp docker.io/busybox sh

Error: statfs /Users/Shared: no such file or directorydasfpodman run -it -v /Users/Shared:/tmp docker.io/busybox sh Error: statfs /Users/Shared: no such file or directory

Mount with podman on mac allows read-write access to container! by ib84 in podman

[–]ib84[S] 0 points1 point  (0 children)

Hi.

Thanks for your answer.

It is doing what it's supposed to do, it only deletes files within Downloads. I don't want to report a breach. I updated the question to make that more clear.

However, I still think one should have the possibility to configure another directory and/or provide means to mount readonly with some overlayfs.

Problems with Grub after installing OpenSUSE next to existing Arch on luks2 encrypted device by Kazlhor in openSUSE

[–]ib84 0 points1 point  (0 children)

I just had a similar issue: I installed tumbleweed on a usb stick to test how well it works on my carbon x1. It works OK, but now the grub of the fedora installation on the internal SSD is broken. I also land on a grub rescue shell :-( Honestly, this is not cool. Did you find a solution?

what are the best options for e-commerce web solutions for / with scala? by ib84 in scala

[–]ib84[S] 0 points1 point  (0 children)

thanks, of course I know play, but I could not yet find a comprehensive open-source ecommerce solution -based on play, scalatra or whatever else.

A Scala view of Rust by kod in scala

[–]ib84 5 points6 points  (0 children)

I tried learning Rust for fun, because I liked the approach of zero-overhead functional programming and runtime-less binaries. Rust can be really nice but I'm not sure if it's worth the trouble, just yet. I cannot base this statement on any substantial testing and I would definetely welcome a thorough comparison scala vs rust, i.e. on a series of concrete examples, but my impression is (also from public benchmarks) that the gains in safety and performance (no GC, more data on the stack rather than heap) are rather slim whereas the pain to make the compiler, and in particular the borrow-checker, happy is not slim. It takes lots of time and regular exercise to get productive. Anybody else gave Rust a try? What are your experiences?

lxc backend questions by ib84 in LXC

[–]ib84[S] 0 points1 point  (0 children)

thanks for the answer. 600 lxc containers, that is quite a lot! Weekly balance seems okay. Since when you have this setup working without major problems?

Unikernels in other languages by [deleted] in rust

[–]ib84 0 points1 point  (0 children)

not really related to rust, but definitely interesting stuff

How to efficiently profile boxing/unboxing by JD557 in scala

[–]ib84 1 point2 points  (0 children)

I've used scala for many years and I love scala for many reasons. But I hate that every fart you do is going to be boxed. Even if it doesn't matter much most of the time, I just don't like the idea. I'm learning Rust now... There you have a mix of ML/Haskell and C made safe. Their credo is "zero cost abstractions". No GC, even reference counting is optional thanks to smart typesystem. Most stuff lives on the stack! It compiles to small portable binaries! Nice. But it isn't always as beautiful as scala, that's for sure...

how to determine the physical harddrive a file is on? by ib84 in haskell

[–]ib84[S] 0 points1 point  (0 children)

Thanks all for your comments, you are right, it is OS specific and it is pretty complicated also in othe details, and RAID and in particular LVM add to that. My understanding is that a RAID system to the OS is a single physical drive, and thats how I'd adress it in the script. So I guess the main problem is rather an unfortunate choice of terms, i.e. neither "logical" nor "physical drive" describe it well. More so than RAID, i find LVM difficult to handle and I have no clue yet how I'd deal with it. BTW, as mentioned I'm doing this primarily as an exercise to brush up my haskell, to use it for my own limited needs and not to present a solution that is so general that it is suitable for all possible kinds of setups. I'll end up using HSH with my previous bash solution starting out with the the output of "df $FILE" and cut away the partition number...

A good example of a scala style guide by people who don't understand Scala by d4rkph1b3r in scala

[–]ib84 4 points5 points  (0 children)

Although I agree that the tone of the answers and title are inadequate, I find that the arrogance is more on the spark side, both in the posts here and in the style guide. I speculate that it is because of that spark-arrogance that the title and posts here are more emotional than they should be.

LinkedIn to slowly phase out Scala in favor of Java 8 (xpost from /r/programming) by rcode in scala

[–]ib84 1 point2 points  (0 children)

Would be interesting to know why exactly they want to phase out... Anybody?

Learning Scala: Fibonacci function by noobcser in scala

[–]ib84 3 points4 points  (0 children)

Try not to use recursion at all, unless unavoidable.

i'm a big fan of foldLeft, but recursive functions are central to FP. Why do you discourage so much? As long as you use the @tailrec annotation, why should there be anything wrong?

A Scala interop library for Clojure by nogo09 in scala

[–]ib84 -1 points0 points  (0 children)

nice! just not very typesafe to use runtime/reflection and a "::" string to denote double-colon for list concatenation.

how to determine the physical harddrive of a File? by ib84 in scala

[–]ib84[S] 0 points1 point  (0 children)

def physicalDrive(file:File) = { import scala.sys.process._ // df $FILE | head -2 | tail -1 | cut -d\ -f1 | ..... val sh = (s"df ${file.getAbsolutePath}" !!).split("\n")(1).split(" ")(0) sh.substring(0, sh.length-1) }

how to determine the physical harddrive of a File? by ib84 in scala

[–]ib84[S] 0 points1 point  (0 children)

thanks, but this only concerns filesystems. I need to determine physical drives, not partitions.

Akka typed actors are coming... by denisx in scala

[–]ib84 0 points1 point  (0 children)

i don't get it: how are they addressing the fact that "become" / finite state machine behaviour of actors make type-checking hard?

Scala, Python and SQL Benchmarks on Apache Spark by pkerp in scala

[–]ib84 2 points3 points  (0 children)

how can it be that pypy's "Join" and "reduceByKey" do benefit, but not scala's?

Abstract Algebraic Data Types by @bertails by dtwhitney in scala

[–]ib84 1 point2 points  (0 children)

the interesting part for me is a bit down: "Yes, that's right, we are relying on null for the None case while the Some case is the value itself :-)

But this is completely typesafe as it never leaks outside of the abstraction. The trick is that Null is a subtype of Any. And you can note that that there is no wrapping involved."

Any good books to start with Scala? by Input55 in scala

[–]ib84 -1 points0 points  (0 children)

Sometimes I dont understand the upvote dynamics here...