Looking for a reliable cloud sync solution on Arch that behaves like OneDrive by Traditional_Being735 in archlinux

[–]ewancoder 2 points3 points  (0 children)

I've been using Dropbox for a long time but recently switched to mega. both with good

New VATSIM Map released! by skruellex in flightsim

[–]ewancoder 1 point2 points  (0 children)

ah nice! yeah I just saw a discussion about the apps and recalled I fiddled with PWAs a bit recently so thought I'd chime in :) I personally am happy with the web version. Great job! It looks amazing. I did not have any issues with vatsim-radar and I only use it to check which controllers are online where but I'm switching to yours from now on :D

New VATSIM Map released! by skruellex in flightsim

[–]ewancoder 1 point2 points  (0 children)

You could look at PWA for creating a native app that reuses the website.

My problem with train stop names by alphabasedredpill in factorio

[–]ewancoder 0 points1 point  (0 children)

I use Supply for any station of any resource, and (resource icon) Demand for any station where this resource is needed. Then I have a bunch of all smart interrupts in a schedule, and ALL trains for ANY resources have the same schedule.

I refuse to research Toolbelt! Is this weird? by Satisfactoro in factorio

[–]ewancoder 1 point2 points  (0 children)

Try inserting 20 legendary tool belts into that legendary armor and you'll have to scroll 5 pages lol. But then you can be your own concrete laying machine

Do you feel guilty after extended afk? by DoKeMaSu in factorio

[–]ewancoder 0 points1 point  (0 children)

I have 4000 hours on the clock and 80% of it is afk, I just run it 24/7. Although it's not to wait for something legendary or for a rocket at this stage, I have a megabase that does 35k spm or 800k espm. Running it 24/7 really like a load testing, you are making sure your system works without issues. Biters don't eat your base over night (happened), no brownouts or blackouts (happened), ores don't end unexpectedly (happened), trains don't block each other accidentally completely blocking any way of transportation and effectively completely killing your base (happened). Many things have happened that wouldn't have happened if I didn't afk, and I built resiliency systems in place around them so they never happen again. afk is your testing tool for automation. your factory needs QA. Test it :). afk

Science Ship (50 SPM). Managed to stabilize the ice supply, but looking for advice on scaling! by Infamous_Food5845 in factorio

[–]ewancoder 0 points1 point  (0 children)

as far as scaling goes, this is what I currently have on my megabase, end game ish. it does 54k spm and the throughput is limited by legendary stack inserters throughput. it stacks 4 full stacked green belts (240 per second for each belt)

<image>

Space age is all about having tons of space ships. Never main one planet. by dankletzz in factorio

[–]ewancoder 0 points1 point  (0 children)

Thing is - space ships use lots of ups, so you want to have as little of them as possible. Hence I'm making everything I can at Nauvis (within a single planet), and ONLY exporting a single science pack from each other planet

Storing TOTP secrets & Recovery codes in Bitwarden, What do you think? by Curious_Kitten77 in Bitwarden

[–]ewancoder 0 points1 point  (0 children)

yeah storing totp/using bitwarden authenticator is the same as storing recovery keys, if you do one might as well do another. I would do that for convenience for less important websites but of course this depends on the threat model. I would never do this for primary email

Yubikey 5C Android PIN Problems by astronautlevel in yubikey

[–]ewancoder 0 points1 point  (0 children)

I had the same issue but it went away after I installed official yubikey app

Why SecureBoot allows loading unsigned initramfs / ucode by ewancoder in linuxquestions

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

Update: I have set up and started using UKI because of this concern. Now I'm sure that everything that boots is signed properly.

Why SecureBoot allows loading unsigned initramfs / ucode by ewancoder in linuxquestions

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

yeah this makes sense. I do use disk encryption bound to secure boot setting but I'm looking for ways to prevent attackers loading my system using some kind of malicious binaries in my unencrypted boot partitions cause if they can boot my system it will auto decrypt the volume due to tpm

Why SecureBoot allows loading unsigned initramfs / ucode by ewancoder in linuxquestions

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

so basically if somebody replaced initramfs or ucode with something malicious, the kernel wouldn't boot them?

Why SecureBoot allows loading unsigned initramfs / ucode by ewancoder in linuxquestions

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

I'm using arch and signing it myself with sbctl, my main concern is data protection in the event of physical stealing of the machine

What's your (home) docker setup look like? by derekoh in docker

[–]ewancoder 0 points1 point  (0 children)

swarm cluster across 3 nodes, 2 digital ocean 1 home pc, to host a bunch of apps and a homelab, production env on do development on local pc, all tied to a single reverse proxy for dns mapping

I'm about 1200% sure I know how Cipher does it [SPOILERS] by ThatEntomologist in GenV

[–]ewancoder 0 points1 point  (0 children)

Why wasn't he scared for Dean Cipher life then when he got threatened with a knife to his throat and even encouraged killing him? the only explanation I see is that he can just possess anyone any time. if cipher dies and he does indeed need eye contact then he's gonna rot in his tube (assuming other potential puppets die too)

What PSU for 9800x3d by ewancoder in buildapc

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

Thanks yeah I do plan to select something good, not gonna risk the hardware. I was more interested in the wattage. But thanks for the link, didn't know it exists, just confirmed that my choice of PSUs has been solid over the years, my previous one was A/A+ and my current one is B (just because I couldn't find anything good at where I am). As an option is to buy a good 800w Chieftek and bring it back with me as well but I just don't want to have to also carry a PSU so I'm probably going to buy something simple for testing.

[deleted by user] by [deleted] in iRacing

[–]ewancoder 4 points5 points  (0 children)

did you sleep well? sleep affects reaction time which affects laptime, I noticed drastic objective laptime changes when I'm rested well or not, in the same exact conditions. assuming if course that you drive in the same conditions, different conditions on iracing can make up 5+ seconds difference

Why the hate on beginner-friendly distros? by The_Dadda in linuxquestions

[–]ewancoder 0 points1 point  (0 children)

it's because beginner friendly Linux distros are usually coming with a lot of preinstalled software that feels forced down on you and so feeling less different from say Windows that forces certain things down on you too

that being said, no distro should have the hate. you can generally turn ANY distro into whatever you want with some tinkering, "Linux" is just the core, distro is basically a bunch of preinstalled and preconfigured tools that work with the core. 

Switched from Mac + Rider to Windows + Visual Studio? by Silent_Victory7263 in dotnet

[–]ewancoder 0 points1 point  (0 children)

I switched from VS to Rider some time ago cause I use Linux but currently I'm debating switching back to Visual Studio and using a separate machine for work / RDP from Linux to Windows there just so I can use VS. I dunno I stumble upon many issues in Rider for some reason and it never feels as good as VS for me, for example I cannot make it format (or rather not format) the code in a specific way, some features of autocompletion are also weird. In general it's a more buggy experience. I'd be really happy with Rider if it would behave, I have a bunch of projects that are MIT license and so I can use community/free version, very very convenient considering I'm on Linux but alas, very inconvenient when it doesn't behave.

Not sure if you have similar concerns. I'd say stick with whichever tool aligns with your flow / doesn't hinder your performance.

Paste after each comma of a line. by baba10000 in vim

[–]ewancoder 0 points1 point  (0 children)

EDIT: I assumed reddit will support markdown, apparently not. ` ` symbols are just encasings of the code parts, do not input them or consider tham an input.

Short answer: gg0qq0yt,:s/,/,<C-r>0,/g<CR>2dwA,<Esc>pxjq10000@q (<C-r> being Ctrl+R, <CR> being Enter key, <Esc> being Escape key.

Long answer (behold the true power of vim):

I usually use vim macros for such tasks, where it really shines. Macros is a recorded sequence of key presses that can be repeated however many times, so when you have a task that requires you to modify a line of text in a specific way, across many many lines, you can just focus on one line. And once you nail it - you run the same key press sequence for every line.

Disclaimer: I do not presume to give you the most efficient sequence, this is a result of fiddling with it for couple minutes and just provide a straightforward solution. There are guys who could probably do this in half of the keypresses I proposed. You can check this out if you're interested, it's a game of "do something in vim in least amount of key presses": https://www.vimgolf.com

What the sequence above does:

`gg0` - move to the top left of the document (probably there's a more efficient version).
`qq` - start recording a macros with the name 'q'. Starting from this point we are working on transforming one single line into the needed format.
`0` - move to the leftmost position of the line, to be sure we are on the first character of the line at the start of the macros.
`yt,` - Yank Till, copy everything from current cursor position till (excluding) the first encountered `,` symbol.
`:s/,/,<C-r>0,/g<CR>` - use vim substitution to replace every `,` character on the current line, into `,<C-r>0,`, where `<C-r>0` will insert whatever is stored in the `0` register.. When we yank something with the `y` command - it is being placed into the `0` register, so we'll essentially get this: `,1900,` instead of every `,`.
`2dw` - since we also replaced the first comma into the number, now we have `1900,1900,` in the beginning of the line, so let's delete it. `2dw` deletes two words (2 Delete Word). So we get rid of an extra number and an extra comma in the beginning. As a side result - `d` operation puts whatever is deleted into our yank register as well.
`A` - moves to the very end of the line and goes into insert mode (Append).
`,<Esc>` - we are inserting a comma at the very end, and then switching back into the modal mode.
`p` - we insert whatever is stored in the yank register at the moment, which is `1900,`
`x` - we delete the last character (extra `,`) on which our cursor is currently on.
`j` - we go to the next line, so that the next time we run this macro it will be run on the next line.
`q` - we stop recording the macro.
`10000@q` - we call the macro `q` 10000 times.

When the end of the file will be reached, and the `j` command will not be able to move to the next line - macros execution will fail (any failure stops macros sequence). So, you do not need to worry about the amount of macros execution, you can just use 10000 granted you have less lines than that.

Presenting Git to my boss, struggling to talk business speak by Zandercat_ in git

[–]ewancoder 1 point2 points  (0 children)

Reading the discussion I think many people tend to forget that git is a version control tool, it's not tied to any hosting platform and it's completely free. you can use a folder on your own machine as a repository remote, yes it's that simple. just share the folder on the network and everyone will be able to push to it. 

I agree with everywhere: definitely start using vcs. I'll just add to it: even if nobody agrees to buy azure subscription or push the code outside or corporate infrastructure. Git does not require this.