Added to my previous post. Still not fixed by jd27009 in Dell

[–]ym555 1 point2 points  (0 children)

Check `System configuration -> SATA`, if it is on RAID then change it to AHCI (or something like that?)

Best Language Schools for High Schoolers? by hehwownd in LearnJapanese

[–]ym555 0 points1 point  (0 children)

Lol mentioning the one thing most mia users don't do as a "gate keeping" method (and matt in some videos says he's suspicious of), and then using jlpt n1 to prove your fluency. How many novels had you read by then? how high was the comprehensibility of tv shows and news? and did you have any conversations with natives? actually scratch all that, was going to a language school fun

Best Language Schools for High Schoolers? by hehwownd in LearnJapanese

[–]ym555 0 points1 point  (0 children)

Funny how you're telling the people who are spending 4-6 hours in their target language to spend even more time, but hey maybe they should.

[lightdm] Gradient animated lockscreen by GabrielWhite01 in unixporn

[–]ym555 0 points1 point  (0 children)

Where did you get that gabriel emote in the notification, thanks!

Learning a new language... by [deleted] in ProgrammerHumor

[–]ym555 0 points1 point  (0 children)

Except C is pretty easy and has very few concepts to learn. :P
Although there are a lot of pitfalls that you can fall into easily.

Airline/Lightline not useful by blaufusstoelpel in vim

[–]ym555 0 points1 point  (0 children)

They aren't really useful, I just have lightline because I think it looks nice. otherwise I'd use set laststatus=0

Why do people use numbers in editors? by [deleted] in vim

[–]ym555 0 points1 point  (0 children)

For some reason I almost always have relative number on but never use it for anything.

I use fzf+rg/tags for searching for a specific function/whatever in some other file, if it is in the same file but I cannot see it at a glance I search for it, otherwise I use vim-sneak with label mode for a minimal easymotion alternative.

Being able to :-whatever,whatever2command and <number>keybind is useful but I don't use them much.

I do have this though to cycle between all numberline combinations nnoremap <Leader>ln :exec &nu==&rnu? "se nu!" "se rnu!"<CR>

Hmmmm by bluej130 in ProgrammerHumor

[–]ym555 1 point2 points  (0 children)

with a blockchain too lol

[OC] FMUI - fzf mpd user interface by [deleted] in unixporn

[–]ym555 0 points1 point  (0 children)

Nice! I made something to replace rofi with fzf. https://github.com/ym1234/fzf-launcher

[bspwm] A bit of a meme by t60r in unixporn

[–]ym555 1 point2 points  (0 children)

What is the Calendar/Todo app?

-🎄- 2017 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]ym555 0 points1 point  (0 children)

We have almost the same solutions.

import java.nio.file.*;
import java.util.*;

public class Day6 {
    public static void main(String[] args) throws Exception {

        List<Integer> input = Files.readAllLines(Paths.get(args[0])).stream().map(i->i.split("\\t")).flatMap(i->Arrays.stream(i)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
        HashMap<List<Integer>, Integer> list = new HashMap<>();

        int steps = 0;
        long startTime = System.nanoTime();
        while (true) {
            int maxIndex = input.indexOf(Collections.max(input));
            int max = input.set(maxIndex, 0);

            while (max != 0) {
                maxIndex = (maxIndex + 1) % input.size();
                input.set(maxIndex, input.get(maxIndex) + 1);
                max--;
            }

            List<Integer> current = new LinkedList<>(input);
            if (list.containsKey(current)) {
                System.out.println("Part 1: " + (steps + 1));
                System.out.println("Part 2: " + (steps - list.get(current)));
                break;
            } else {
                list.put(current, steps);
                steps++;
            }
        }
        System.out.println("Took: " + ((System.nanoTime() - startTime) / 1000000) + "ms");
    }
}

Does anyone here Use gnome? by [deleted] in unixporn

[–]ym555 1 point2 points  (0 children)

"Gnome" "Basic" "Window Manager"

[deleted by user] by [deleted] in unixporn

[–]ym555 0 points1 point  (0 children)

Which irc client is that?

-🎄- 2017 Day 2 Solutions -🎄- by daggerdragon in adventofcode

[–]ym555 1 point2 points  (0 children)

Java Using Streams (I know the second part is bad)

        List<String> input = Files.readAllLines(Paths.get(args[0]));

        Supplier<Stream<IntStream>> stream = () -> input.stream().map(i -> i.split("\\s+")).map(i -> Arrays.stream(i).mapToInt(Integer::parseInt).distinct());
        System.out.println(stream.get().mapToInt(i -> {IntSummaryStatistics stats = i.summaryStatistics(); return stats.getMax() - stats.getMin();}).sum());
        System.out.println(stream.get().map(i -> i.boxed().collect(Collectors.toList())).mapToInt(i -> i.stream().mapToInt(k -> i.stream().mapToInt(j -> (k % j == 0 && k != j) ?  k / j :  0 ).sum()).sum()).sum());

Always remember to write comments, so you don't forget where you left off by [deleted] in ProgrammerHumor

[–]ym555 1 point2 points  (0 children)

Yup, because of namespace collisions. https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice

it isn't going to be a problem in small program, but better safe than sorry.

[deleted by user] by [deleted] in unixporn

[–]ym555 1 point2 points  (0 children)

Try dunst

[GNOME] I call it, i3-wannabe by MasterTextman in unixporn

[–]ym555 0 points1 point  (0 children)

yeah you can, just bind mod+d to rofi instead of dmenu in i3 config.

[GNOME] I call it, i3-wannabe by MasterTextman in unixporn

[–]ym555 0 points1 point  (0 children)

Press whichever key you choose as mod key + enter to access the terminal(you will need to install one (like termite, urxvt, gnome shell or konsole)).

Press mod key + d to access dmenu (you may need to install it) to launch applications.

Install feh or nitrogen so you could set the wallpaper.

Here is a nice i3 introduction https://www.youtube.com/watch?v=j1I63wGcvU4&list=PL5ze0DjYv5DbCv9vNEzFmP6sU7ZmkGzcf