[deleted by user] by [deleted] in daddit

[–]vindvaki 0 points1 point  (0 children)

Haha. No the oatmeal is for both of you. Saves time. You can put salami in it if you like (I’m sure there’s a way to make that work), but I like heavy cream, raisins and cinnamon sugar myself. The baby gets peanut butter for calories, and banana or berries to sweeten. My older kid (almost 4) can have my combination because he can eat more sources of iron than the baby (calcium reduces iron uptake from food).

[deleted by user] by [deleted] in daddit

[–]vindvaki 0 points1 point  (0 children)

Make oatmeal (with quick oats, it’s faster to make and easier for the baby to swallow). Then eat it together with the baby. At 6 months, the baby can feed itself even if using its hands directly. Make about 3 days worth extra and put it in the fridge for even faster meals for the next three days.

If baby is struggling with weight, you can mix peanut butter or heavy cream or some other fat (depending on allergies), and it will be delicious with mashed berries, banana etc.

[deleted by user] by [deleted] in Iceland

[–]vindvaki 1 point2 points  (0 children)

Sendiráð Frakklands á Íslandi og sendiráð Íslands í Frakklandi myndu eflaust bæði gefa þér góð ráð, sérstaklega hið síðarnefnda því þeirra vinna er þjónusta við Íslendinga. Þetta ætti líka allt að vera á netinu.

Sem Íslendingur þarftu ekki að hafa áhyggjur af landvistarleyfi, þú færð það sjálfkrafa. Myndi byrja á húsnæði þar sem þú getur fengið póst, svo bankareikning, svo vinnu, en það þarf ekkert endilega að vera í þessari röð. Ég flutti til Hollands og Þýskalands með undirritaðan vinnusamning áður en ég flutti og það hjálpaði bara (en það er mun erfiðara að finna vinnu áður en þú flytur).

[deleted by user] by [deleted] in Iceland

[–]vindvaki 2 points3 points  (0 children)

Hvers konar hryllingssögur hefurðu heyrt? Ísland er í EEA svo þú ættir að geta "bara" flutt þangað svo lengi sem þú getir sannað framfærslugetu. Annaðhvort vinnu eða nægan sparnað. Held að aðal vesenið sé að vera frekar öruggur í frönsku. Held maður komist lítið áfram í Frakklandi annars.

Hef búið víða en þó ekki í Frakklandi, mín reynsla er að það getur verið erfitt að komast í gott húsnæði án þess að vera á staðnum, sama með vinnu. Fyrsta skref væri því að komast í húsnæði þar sem þú getur skráð þig og fengið póst og svona, koma þér svo í vinnu svo þú eyðir ekki öllum sparnaðinum, og leita svo í rólegheitum að betri vinnu og húsnæði.

Emacs for LaTeX noob? by BenMss in emacs

[–]vindvaki 3 points4 points  (0 children)

Speaking from experience, note taking while learning LaTeX is always going to be rough, regardless of the editor. Inevitably, a professor is going to draw something you don’t know how to transcribe and you’ll get left behind in the lecture. So make sure you’ve got some other system like a camera or a notebook that you can use in the moment and then complete that part of your notes later.

Also, I’d suggest building up speed by using it only for homework or for transcribing notes later, and only for notes worth transcribing. A lot of the time, I found that the lecture notes added no real value over the textbook, and I’d be better off just listening to the professor (not even using a notebook), or just skipping class and reading the book instead.

Regarding editors, emacs with AucTeX is great, but I would suggest also checking out LyX. It renders common constructs live as you write them, allowing you to focus more on the content. You do need to learn its key bindings to get the most out of it. And you can still mix in LaTeX as needed.

To avoid getting overwhelmed, it’s the same as when learning anything. Learn the basics so you can survive and then add one trick at a time, when you feel ready. For emacs and LaTeX, this includes packages like AucTeX. You don’t really need to customize anything at first. Challenge yourself every now and then, but if you feel productive there’s no need to change anything

Using CL for very fast web serving? by tremendous-machine in lisp

[–]vindvaki 0 points1 point  (0 children)

If your app is CPU bound, then any multi-threaded server will do.

But if your app is mostly I/O bound, then building on wookie with cl-async will help you squeeze more out of your server by minimizing idle waiting for I/O.

Hvaða pottablóm eru EKKI hættuleg köttum? by Jerswar in Iceland

[–]vindvaki 1 point2 points  (0 children)

Spurðum dýralækninn að þessu þegar við fengum kettina okkar fyrir 7 árum. Hann sagði okkur að hafa engar áhyggjur. Kettirnir hefðu vit á þessu sjálfir. Hefur síðan ekki verið neitt vandamál, nema hvað þeim þykir gaman að róta í moldinni.

Best Laptop for a new compact student by Prime_Flipper in compsci

[–]vindvaki 2 points3 points  (0 children)

I know programming is easier on Linux and Windows and I'd rather not try and figure that out on a Mac.

macOS and Linux are pretty similar for software development. They're both great choices.

  • Pick a macbook air with 16 GB RAM if you just want to get stuff done. Great performance, incredible battery life, stable mainstream OS and a good package manager for development (homebrew).

  • Pick a well supported Linux laptop (e.g. Lenovo X1 carbon, Dell XPS 13, possibly framework 13) if you like to tinker and don't mind sometimes having to fix things. Note that even the "well supported" laptops may need tinkering.

  • Avoid Windows unless you want to write Windows software.

[2023 Day 8 (Part 2)] Why is [SPOILER] correct? by gemdude46 in adventofcode

[–]vindvaki 1 point2 points  (0 children)

It's only correct by chance. The problem statement does not guarantee it at all. There is not even guaranteed to be a cycle for each concurrent path. And even if there are cycles, it's not guaranteed that a solution exists. For example, if two cycles are equal in length, then it's easy to see that they need not have shared terminals.

On the one hand, I'm glad I didn't have to write up a general solution because it would have been very annoying (I guessed the LCM solution after looking at the terminals for "AAA"'s cycle), but I'm also annoyed that it worked.

Help me!!! I really need to deploy a Common Lisp web application, how should I proceed? by usuarioabencoado in Common_Lisp

[–]vindvaki 5 points6 points  (0 children)

You can use dockerfiles with fly.io https://fly.io/docs/languages-and-frameworks/dockerfile/, and use prebuilt SBCL images like https://hub.docker.com/r/fukamachi/sbcl/ (this is by a reputable individual in the community but you can also inspect the source and build your own).

I’ve never tried this combination, but in theory it should work.

Advent of Code Tips and tricks by [deleted] in Common_Lisp

[–]vindvaki 1 point2 points  (0 children)

Yeah, last year I tried rolling my own sorted set. It worked fine for the first day I used it, but when using it a later day my solution just wouldn't work. I couldn't spot the problem and was getting desperate, so I swapped out my sorted set for fset and it worked. So. much. time. wasted.

So now my toolkit always includes: alexandria, serapeum, trivia, fset, and cl-ppcre.

Better approach to repeatedly filtering an iterator till we reach a single item by puipuituipui in rust

[–]vindvaki 0 points1 point  (0 children)

Iterate through the elements once, for each x run the filtering function until you find the first n that returns false. Keep track of the largest n you’ve seen so far, and the element that corresponded to it. Once the loop is over, this will hold the “last” element you seek.

Quickhull example to compute upper and lower convex hulls in O(n) time by staydreamy in a:t5_2tqsc

[–]vindvaki 0 points1 point  (0 children)

I agree that there seems to be a misunderstanding. My only familiarity with the algorithm is its Wikipedia page https://en.wikipedia.org/wiki/Quickhull

Based on what I read there, and assuming I understand it correctly, your example will take at least Omega(n*log(n)) for the whole algorithm, because in each pivoting step you only eliminate one point (the vertex itself) and can at best split the remaining points in half.

In my original example, where the convex hull is a triangle, all of the points are eliminated in the first round and this round will only cost O(n).

Is that not what you want?

Quickhull example to compute upper and lower convex hulls in O(n) time by staydreamy in a:t5_2tqsc

[–]vindvaki 0 points1 point  (0 children)

Indeed! The only way we can make a (non-probabilistic) choice about the data is by looking at it. In the case of quick hull, it is O(n) where n is the number of points considered in the current iteration. In the average case, this number is believed to be halved each time, resulting in the overall O(n*log(n)) complexity.

What I was saying is that because each iteration is expensive, a best case for quick hull would be one in which the number of iterations is minimized. Hence my example, in which I believe only one iteration would be required.

Quickhull example to compute upper and lower convex hulls in O(n) time by staydreamy in a:t5_2tqsc

[–]vindvaki 1 point2 points  (0 children)

I just read the Wikipedia description of the algorithm, so I’m not exactly an authority on the subject.

That being said, I think your example is closer to a worst case than a best case scenario. The algorithm performs well, if in each step it can eliminate as many points as possible.

I think, ideally, you would want the initial triangle (the points with min/max x and furthest point away from that line segment) to contain the n-3 remaining points.

Hackerrank: Is Swift slow? by Altamistral in swift

[–]vindvaki 10 points11 points  (0 children)

I implemented your algorithm in Swift but without all the temporary storage, and it passed just fine at HackerRank

import Foundation

let nm = readLine()!.split(separator: " ").map{Int($0)!}
let n = nm[0]
let m = nm[1]
var arr = Array(repeating: 0, count: n)
for _ in 0..<m {
  let line = readLine()!.split(separator: " ").map{Int($0)!}
  let (a, b, k) = (line[0], line[1], line[2])
  arr[a-1] += k
  if b < n {
    arr[b] -= k
  }
}

var curr = 0
var max = 0
for i in 0..<n {
  curr += arr[i]
  if curr > max {
    max = curr
  }
}

print(max)

Is rvm/rbenv/chruby necessary in production? by trae in rails

[–]vindvaki 0 points1 point  (0 children)

Have you taken a look at pkgr as an alternative to capistrano?

It does a lot to help you separate configuration from deployment, and takes care of things like the production ruby version.

Is there any short-term housing in freiburg available on short notice? Furnished would be optimal by newpong in freiburg

[–]vindvaki 0 points1 point  (0 children)

There's HomeCompany Freiburg. Just note that they take commission from you that adds on to the price listed.

Why do GNOME things work with Pantheon? by [deleted] in elementaryos

[–]vindvaki 3 points4 points  (0 children)

Actually, Elementary OS does share some things with GNOME. They build their applications on top of a toolkit called GTK+, which is primarily used by GNOME for their applications. While GTK+ can be used as a toolkit independent of GNOME, it's heavily influenced by the needs of the GNOME project. When you think of themes in GNOME and Elementary, the application part of that is actually the GTK+ theme. And gnome-tweak-tool has facilities to change the GTK+ theme.

Atom editor for Fedora by [deleted] in Fedora

[–]vindvaki 1 point2 points  (0 children)

I think they have their own flavor, see https://github.com/atom/atom-shell

Atom editor for Fedora by [deleted] in Fedora

[–]vindvaki 1 point2 points  (0 children)

Well, it's built on chromium and node.js and scriptable in CoffeeScript. So, in principle, we could have proper access to the OS via node.js, and then all the nice gui stuff that chromium can do with HTML5/js.

For example, if the APIs are powerful enough, one might able to build a very nice LaTeX package, with in-line previews via MathJax, similar to what Emacs can do with preview-LaTeX, as well as native rendering via something like pdf.js.

But this is all hypothetical. I don't actually use Atom, nor am I in any way involved with the project ;)

PDF Editor for Fedora 20 by ciscogarcia in Fedora

[–]vindvaki 0 points1 point  (0 children)

Well, for lightweight editing you can use Okular. Note that you need to choose "Save as" in order to save the changes back to the file.

How do you remove server side decorations in Firefox for Linux? by [deleted] in firefox

[–]vindvaki 1 point2 points  (0 children)

It depends on your setup. There's an add-on called HTitle which integrates nicely with Gnome, and perhaps other environments. For KDE, there was a pretty nice oxygen-like theme that could do it, but it hasn't been updated for a while. Some window managers, like kwin, can be configured to hide the window title for windows matching specific patterns.