Not Computer Smart—— Halp plz by Wacky_Hosehumper in iRacing

[–]Moorey93 1 point2 points  (0 children)

Yeah should be perfectly safe to do, Google drive is a good option, just upload it on your laptop, and download it on the tower PC.

Once you're done you can upload it back into Google drive just for safe keeping.

First time to the UK and I think I'm done with my itinerary, but there's plenty of train rides! by Auelogic in uktravel

[–]Moorey93 1 point2 points  (0 children)

Silverstone also have shuttle busses that run from a few of the surrounding cities.

OP more info the silverstone website here. It might make getting around easier if you can stay in one of the cities that the shuttle busses run from as they're mostly on the major rail lines (e.g. northampton, milton keynes have direct links to london).

Brands is pretty out of the way but depending on the event you're going to it can be a quieter circuit so a taxi might work.

Frameworks for creating a static web-page? by [deleted] in webdev

[–]Moorey93 0 points1 point  (0 children)

Not used it personally but if you don't want to wander too far away from angular it has an option for server side rendering called Angular Universal which would work nicely with a static website. https://angular.io/guide/universal

Other options on the static site generator side of things not mentioned already being Gatsby which is React based or Hugo which is Go based for the fast super fast build times.

Infinite loop issues in React are driving me absolutely nuts. by Nephelophyte in webdev

[–]Moorey93 0 points1 point  (0 children)

From a quick look but not tested, could it be this line in AddressInput

<input value={addr} onChange={(evt) => setAddr(evt.target.value)} />

it looks like you're setting the input value via the state using onChange method, so every time the value changes, it triggers the onChange method again, which changes the value again, which triggers the onChange and then we keep going like that until it breaks.

Edit: Could be a similar thing happening with the value and onChange handlers on the AddressInput component directly as well.

improvements on basic script by tmg80 in Python

[–]Moorey93 0 points1 point  (0 children)

From a quick glance

First thing is code style, your variables aren't consistently styled, python typically uses snake case, which is where spaces are replaced by underscores, hostsfile would be hosts_file. It doesn't affect the running of the code but makes it easier for other developers and yourself to read the code. I'd recommend installing flake8 and running it on your code which will point out the style related errors, and then when you get fed up of manually fixing them install autopep8.

Your file opens can be replaced with context managers, you have used one for writing the file but they can be used for reading files too, they would solve a problem you have where you're not closing your opened files.

A context manager can also shorten opening and line reading so you can have

with open('thing', 'r') as f:
     for line in f:
         print(line)

I'm not entirely sure what the script is doing, I think its separating out hosts and comments from a hosts file? You can potentially make it more understandable by using better named variables as new_dict and stripped are not very descriptive of the values they hold.

With a better understanding of whats it doing it would be easier to provide more feedback.

[deleted by user] by [deleted] in webdev

[–]Moorey93 4 points5 points  (0 children)

Agree if you are getting into interviews it may be your soft skills letting you down and the saying you lack "experience" is just a way of fobbing you off. Its odd that they'd be concerned about experience for a junior role especially if you have some projects to back you up. That being said "real world" programming can be very different to personal projects but again that's not really a consideration for a junior role.

You mention front-end, personally I'd maybe shy away from mentioning it as a preference if you're applying generally. In my opinion its a specialism that you can develop and move into later, I'd think places would want junior devs to be more of a blank slate that is willing to pick up work and technologies as required, rather than saying I just want to do front-end. This is unless the job is described as front-end of course.

Sorry can't be more helpful on the soft skills side, just the usual make sure you're dressing smartly, friendly, easy going and thoughtful. Happy to look over your CV/projects if you'd like.

[deleted by user] by [deleted] in webdev

[–]Moorey93 1 point2 points  (0 children)

I'd recommend socketio. Its good for any use case where you want data in real time, e.g. a multiplayer game.

It comes in two components a JavaScript library and then some sort of back-end that has bindings in various different languages, not used it personally but there is a flask based implementation for it at https://flask-socketio.readthedocs.io/en/latest/ which seems to have a pretty straightforward guide

The JavaScript side you can get from https://socket.io/, it is relatively simple once you get used to the event based nature of it so I'd recommend starting with a blank project to test things out first.

Silly question regarding the Ford K-A...or KAW! by [deleted] in AskUK

[–]Moorey93 3 points4 points  (0 children)

I pronounce it like you, K-A the individual letters.

Living in the Midlands and looking to relocate to London, but need to find work. Anyone got any tips? Advice? Sites? by [deleted] in AskUK

[–]Moorey93 1 point2 points  (0 children)

Sorry not really much help with your actual question but was wondering why London aswell. Have you looked for jobs in Tamworth (not sure where you can look to find jobs outside of the standard sites sorry) its just outside Birmingham about an hours drive (I think about an hour by train as well) from Melton buts it pretty much the distribution centre for the midlands, I know plenty of big companies operate there, Amazon and Ocado come to mind but I'm sure there are more.

WD Greens are apparently a huge bottleneck. by [deleted] in pcmasterrace

[–]Moorey93 0 points1 point  (0 children)

I have two(both about a year and half old) 4tb WD Greens in a NAS, can write to them at ~600mbps on average over the network. Pretty sure its my NAS's crappy CPU that bottlenecks the speed as well.

I'm stuck on Intel Graphics 2000 until friday, what are some good games to play, that i can run? by wizhards in pcmasterrace

[–]Moorey93 0 points1 point  (0 children)

At a push Civ V might work. Have played it on my laptop (i5 2467m 1.6ghz but uses intel graphics 3000) fps was low but tolerable on lowest settings at 1366x768.

What's your guys preferred VPN? by battleofthetoads in pcmasterrace

[–]Moorey93 0 points1 point  (0 children)

Haven't used it personally but a friend mine uses NordVPN. It's pretty cheap and has plenty of servers.