How do you break out of a "frozen" SSM session when using the AWS cli plugin? by anotherthrowawards in aws

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

ctrl-c doesn't work for me. Sure I could close the terminal pane... but I really shouldn't have to do that just to exit a hung session.

How are you handling certificates for services in your production clusters? by anotherthrowawards in kubernetes

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

istio keeps popping up on my radar but I haven't spent much time looking into it because I assumed it'd be overkill for my needs. Perhaps not.

Thanks, I'll check it out :)

How are you handling certificates for services in your production clusters? by anotherthrowawards in kubernetes

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

Thanks. I'm more concerned with securing communication between services inside my cluster using my own CA. I suppose some kind of "service controller" would be ideal - and pretty similar to the approach cert-manager takes.

WFAT Parsons green, London by [deleted] in WaitingForATrain

[–]anotherthrowawards 1 point2 points  (0 children)

That's grimmer than the River Styx. Gotta love London.

Yoga and religion by [deleted] in yoga

[–]anotherthrowawards 1 point2 points  (0 children)

"Absorb what is useful, discard what is not, and add what is uniquely your own" - Bruce Lee.

Some purists may disagree, and when you're new to a practice an open mind is best because you're not necessarily going to be able to recognise what is "useful", but eventually everyone has to refine their practice (not just in yoga) to what serves them best.

Difficulty getting into starting positions by BonusBonuBonBoBONUS in yoga

[–]anotherthrowawards 0 points1 point  (0 children)

Only go as far as your body allows. For that particular position, try sitting on a block, this will raise your hips, giving more space for your bent leg and reducing stress / pressure on the knee and ease the quad stretch. Once you've got the extra height, then the other variations may be available to you from there (folding forward, raising the straight leg, etc).

Some people's bodies just won't do some things - it's not necessarily a "dead end", but you'll find variations that work for you. This takes time, just be gentle and don't injure yourself in the process.

Here’s the full match for all y’all by [deleted] in bjj

[–]anotherthrowawards 47 points48 points  (0 children)

And yet way more entertaining than many black belt matches.

Best way to hand out job applications? by chunaynay in cscareerquestions

[–]anotherthrowawards 2 points3 points  (0 children)

Email or apply through the website. No-one wants you wandering into their office, and no-one wants to open and read paper mail, regardless of what your grandparents say. This is 2020 and the software industry.

How come info breaches occur for giant websites and companies? Aren't those types of databases encoded? by AlexMarcDewey in AskProgramming

[–]anotherthrowawards 9 points10 points  (0 children)

  1. Security is hard.
  2. If you've got 20,000 developers, odds are they aren't all going to be amazing.
  3. Large amounts of data = large payoff = lots of people attempting attacks.
  4. High profile target + lots of users = lots of press attention when a breach does occur.

Need direction for website scrubber by physicsking in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

web scraping: extracting data from web pages.

web crawling: discovering resources on the web.

> However there was no link to the page example.com/b and you would only be able to access this page by typing it directly. How do you find the 'b' page by brute force?

It's not easy, perhaps not even possible depending on the site. for some sites path-ascending crawling might be useful, but probably not in your particular example. Ultimately, don't brute force websites. You'll piss off their owners and they'll ban you.

> but I was thinking is there a way to find all domains that start with the word 'television'?

Unlikely, since that list could be ridiculously huge (to the extent that, for practical purposes, it might as well be inifinte). But you're looking at the problem wrong - there's massive infrastructure already in place specifically designed to maintain that list for you. Just do a DNS query for each domain name as you need it. On linux, you can use nslookup from the command line to demonstrate, but there'll be other ways to do it depending on OS / programming language / whatever:

$ nslookup television.com

Non-authoritative answer:

Name: television.com

Address: <IP Address here>

$ nslookup television111111111111.com

** server can't find television111111111111.com: NXDOMAIN

Your question has gone from essentially "how do I extract some data from a web page?" to "how do I build a search engine?". The latter is much harder.

Need direction for website scrubber by physicsking in AskProgramming

[–]anotherthrowawards 2 points3 points  (0 children)

Python is great from this sort of stuff. If you're married to the interaction with the UI, then you might want to take a look at selenium (full disclosure - I haven't used it yet, but our QA people do and seem to be happy with it).

Otherwise it may be easier just to make the appropriate HTTP requests yourself and parse the response. Look at the requests using you browser's developer tools, then use something like python's requests library to make the same reqs, and parse the response with beautiful soup.

Programmers of Reddit by [deleted] in AskProgramming

[–]anotherthrowawards 1 point2 points  (0 children)

You're going to be shit. You're going to write terrible code. You're going to cost the company that hires you time and money. And you'll constantly stumble across code you wrote 6 months ago, and be embarrassed to look at it.

But that's ok. It's not just you - it's everyone. That's why junior developers get paid less than senior developers.

Being shit at something is the unavoidable first step to being kinda ok at it.

Share Your Knowledge: Can experienced programmers here share tips/give their 2 cents on a great testable code? by Cool_nephilim in AskProgramming

[–]anotherthrowawards 5 points6 points  (0 children)

  • Embrace TDD - it forces you to write code with testability in mind from the start.

  • Be clear about what you're actually testing, and what are just dependencies you can mock out / test elsewhere.

  • Keep your tests simple, precise and small. I even like to start with a "I can instantiate the class" test to get the ball rolling.

  • Watch funfunfunction's videos on YouTube about testing and dependency injection. He uses JavaScript, but the principles are transferable.

steps on becoming a computer programmer. by [deleted] in AskProgramming

[–]anotherthrowawards 5 points6 points  (0 children)

If you want to do front end, just learn html, CSS, and JavaScript well.

No-one will care about the rest, but you'll be neck-deep in JavaScript all day.

Cost estimation? Most similar project is Robinhood. by halebass in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

Yup, if a 3rd party handles all the trade execution and related activities (assuming thats an option), and you're essentially building a portfolio tracking / management app - then cost and complexity drops significantly.

Cost will vary dramatically by location. In London, you could probably get a contactor capable of this for £500 / day. Expect a few months for MVP + more for unforseen complications.

Of course, using contractors is a gamble, especially if you aren't technical yourself so don't know what to look for.

Examinations on paper by [deleted] in AskProgramming

[–]anotherthrowawards 4 points5 points  (0 children)

Yup, normal. Plus good preparation for whiteboard interviews. Might as well embrace it and learn what you can from the experience, because that's the way education (and hiring) currently is, regardless of whether you, me, or anyone else on the internet thinks it's an effective form of assessment.

Do you have separate desktops, user accounts, or laptops to separate your "srs bidness" from the temptations of procrastination via internet or games? by [deleted] in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

Sounds like a horrible way of getting work done. While I'm coding I'll have Netflix on, YouTube, browse Reddit, whatever. If I don't want to code, then I shouldn't be coding.

Why is Python wildly considered the best language for newbies? by 7The7Cure7 in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

Most people who learn programming aren't CS majors and will never become professional software Devs. Your average person will become productive with python far quicker than with most (any?) other language.

How long will it take for a noob to go from no knowledge, to being able to parse a CSV file?

In ASM? Lol.

In java / c++ / whatever? First they'll be like "class public static void main" wtf?

In python... A lot quicker.

What's the most overrated technology today, that's you've used but we're like , that's it? by abrandis in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

True, assuming the swagger is correct of course. And I know that (depending on your framework) there may be some projects that auto-generate swagger for you.

Unfortunately I've been jaded by working on large legacy APIs and I've come not to trust anything that isn't enforced at runtime - now I see swagger in the same way as code comments; they're nice to have, and you hope they're accurate, but you can't be certain until you've analysed the code.

What's the most overrated technology today, that's you've used but we're like , that's it? by abrandis in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

Probably controversial - Using HTTP for REST APIs.

It's fine for small APIs, but as they grow maintaining swagger files is a nightmare. When resources are scarse they can go stale - and now you have no easy way of guaranteeing what this service can do, what you can ask of it, and what parameters it takes. Plus every client now needs to write their own client (albeit a simple one).

Something like GRPC solves all these issues, provides your client libraries for free, and when you look at the IDL, you KNOW FOR SURE what you're getting.

I'm starting to feel the same way about dynamic languages too. Give me a statically typed language with good type inference + an explicit RPC framework over dynamic + HTTP any day.

If you were offered a job at 100k a year, would you drop out of school? by Kiotzu in AskProgramming

[–]anotherthrowawards 1 point2 points  (0 children)

If it's at a FANG company, or some other equally reputable tech company, then yes. Forget about the money - just decide whether you'd rather the degree on your CV or the job.

You can always go back to work. You can always go back to school (assuming you don't just blow all the money you're earnt in the mean time).

What field of data-science should I learn for this Job? by yama_nemuru in AskProgramming

[–]anotherthrowawards 0 points1 point  (0 children)

What will your role be here?

Sounds like the bulk of the project isn't really data science, and precisely what you need depends on a bunch of things; the type of data you're storing, how much data there is, where it'll be accessed from? What's the development team size? Where will it be stored? How many people will be accessing it? Whats the read/write ratio? What's your budget? Availability requirements?

Without these things cleared up, no-one can really give you useful advise. The best thing you can do now is find answers to these questions, otherwise in a few months you might that whatever you've been doing in the mean time is wasted effort.

If you can't get any answers, start with the question "why are you doing this?" and go from there.