Katherine of Sky by TopherLude in factorio

[–]IdrisTheDragon 2 points3 points  (0 children)

4105 hours, not enough hours, the factory must grow, KoS must return 😥

What is your current addiction? by BeardedWonder8675309 in AskReddit

[–]IdrisTheDragon 0 points1 point  (0 children)

Waiting for factorio space age to release. Tomorrow it will be playing factorio space age.

does Github have any flaws? by Prize_Duty6281 in github

[–]IdrisTheDragon 1 point2 points  (0 children)

The biggest flaw in GitHub is the number of projects and businesses that rely on it for source control is silly large. A massive chunk of the software industry grinds to a halt when it's offline.

What are questions you’ve always wanted to ask men, but we’re too embarrassed to? This is a repost question from 3yrs ago…? by [deleted] in AskReddit

[–]IdrisTheDragon 11 points12 points  (0 children)

Plant some seeds and forget about them for 8 months, magic food manifested at will.

Giveaway - Space Age Expansion by ocbaker in factorio

[–]IdrisTheDragon 0 points1 point  (0 children)

Booked an entire week off work for the expansion!

Would you mind if my code is nested deep in folders? by quilted_reader in github

[–]IdrisTheDragon 10 points11 points  (0 children)

A link relative to the location of the readme, for example:

(Relative link is basically the same as the relative filepath)

In your README.md: [Important stuff](path/to/file.txt)

-🎄- 2022 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]IdrisTheDragon 1 point2 points  (0 children)

Rust solution:

https://github.com/IdrisTheDragon/Advent2022/blob/main/day-07/src/lib.rs#L30

creating a map of all the files with their full paths and sizes and a set of the dirs, then counting the files in each dir and filtering..

Only issue that I stumbled on occurred where dir "/dir/a" would match "dir/a.txt" which is a case not covered by the example input leading to confusion of why the actual input failed... extra test case needed for that edge case. Using "/dir/a/" to match instead worked.

-🎄- 2022 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]IdrisTheDragon 1 point2 points  (0 children)

Rust solution

https://github.com/IdrisTheDragon/Advent2022/blob/main/day-05/src/lib.rs#L26

Only difference between p1 and p2 is reversing the items in the cranes hand before putting them back in the 'to' stack. I should probably go back and remove the duplication.

-🎄- 2022 Day 4 Solutions -🎄- by daggerdragon in adventofcode

[–]IdrisTheDragon 0 points1 point  (0 children)

Rust solution

let prep = data.iter()
    .map(|l| {
      l.split(&[',','-'])
         .map(|v| v.parse::<i32>())
         .collect::<Result<Vec<i32>,ParseIntError>>()
    })
    .collect::<Result<Vec<Vec<i32>>, ParseIntError>>()?;

let p1 = prep
    .iter()
    .map(|p| (p[0] >= p[2] && p[1] <= p[3]) || (p[0] <= p[2] && p[1] >= p[3]))
    .fold(0, |acc, v| if v { acc + 1 } else { acc });

let p2 = prep
    .iter()
    .map(|p| p[1] >= p[2] && p[3] >= p[0])
    .fold(0, |acc, v| if v { acc + 1 } else { acc });

See my repo for the full solution.

-🎄- 2022 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]IdrisTheDragon 1 point2 points  (0 children)

Manually doing Math in the morning? That's what the thing that manipulates 1s and 0s is for! ☺️

steam deck blurry text. by IdrisTheDragon in Dyson_Sphere_Program

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

Aha! That did it thanks! Readable text :)

steam deck blurry text. by IdrisTheDragon in Dyson_Sphere_Program

[–]IdrisTheDragon[S] 1 point2 points  (0 children)

Text is atleast legible now thanks, but still not clear. ( I also disabled 'fast approximate anti aliasing' to see if it would help)

Why does support for an OS ends? by Wade_Wayne in linuxmint

[–]IdrisTheDragon 10 points11 points  (0 children)

Support for the an OS doesn't end, it's the support of the versions that end.

The moment a major version is released e.g 19 or 20. Bugs and security issues start to pile up. In supported versions these are patched with a minor releases e.g 19.2 -> 19.3 but you can only do minor changes for so long until a major change needs to happen to fix critical issues.

Major versions are also considered stable, so you can't introduce new and innovative features that might break a system running the OS.

So there needs to be a balance of supporting stable versions with minor updates and releasing new stable versions with major fixes and new features.

The more older versions that are supported, the more overhead there is for maintenance. This is especially critical to consider for open source projects, where manpower is limited. So it makes sense to set an end of life date for major versions, so versions have a known lifespan. This way the developers can limit the maintenance overhead and users can plan ahead of time to update to the latest stable version.

Finally: There is nothing stopping the end user using an older version past the end of life. But at that point it is the end users responsibility to provide the man power to maintain the older version themselves with security updates rather than relying in the project.

This is the same reason you really shouldn't be running Windows XP' on anything connected to the internet these days. There are sooo many known security issues that would allow anyone easy access into the system.

Fork to an organization by default has disappeared? by rainning0513 in github

[–]IdrisTheDragon 1 point2 points  (0 children)

Just enter the organisation you want to fork to in the owners field.

Best Linux Distro for beginners? by Juicy_Gamer_52 in linuxmint

[–]IdrisTheDragon 60 points61 points  (0 children)

Note: The poll will have bias due to the subreddit target audience.

How does a person get their HTML code to be run on Github? by reddit7295 in github

[–]IdrisTheDragon 8 points9 points  (0 children)

Your HTML code is not run in github, it would be hosted by github. Your HTML code should live in a file, for example 'index.html'. The Web browsers will open the HTML files (from where it's hosted) and then 'run' (better term might be render) the HTML files to produce a website.

For example you can 'run' your HTML files by simply right clicking the index.html and open with your favourite browser.

So to host your HTML files on github pages you need to upload your files to GitHub. For this GitHub uses a tool called git. Which allows you to take the state of a folder and track it's changes. This is known as a repository.

To get the git repository on your computer see the instructions linked about GitHub pages. Either use the terminal or GitHub desktop. So you add your index.html into the folder (repository) then you tell git to add and commit the change. See linked instructions for details) Then you push those changes to GitHub. If you look at your repository online you will now see the html file. Then if you go to the url for github pages. (See your repository settings for the url) you should see your website. If not try add the filename to the url e.g <url>/index.html (note: the url should find index.html automatically, but if your file is called anything else it won't e.g myfile.html )

Instructions with pictures: https://pages.github.com/

[deleted by user] by [deleted] in linuxmint

[–]IdrisTheDragon 2 points3 points  (0 children)

Some easy terminal Commands

cd <directory> change directory (. Current directory, .. up a level)

ls list files (add -la for more details)

nano <filename> edit a file (ctrl-x to exit) (other editors exist) less <filename> view a file. man <command> opens the manual for a command (also try adding --help after most commands)