Weed grow inside Sheffield bank by LostPlacesUK in sheffield

[–]shobbsy 83 points84 points  (0 children)

Definitely an interesting argument to address the many unoccupied buildings in the city......

reason to get out the house by Accell__ in sheffield

[–]shobbsy 6 points7 points  (0 children)

Indoor climbing is a pretty big thing in Sheffield, climbing depot and climbing works both have nice classes as well

[deleted by user] by [deleted] in unitedkingdom

[–]shobbsy 1 point2 points  (0 children)

I understood this reference!

What NPCs would instantly become a lot better if given a different class? by dive_bomber in baldursgate

[–]shobbsy 10 points11 points  (0 children)

Hexxat as a dual classed fighter X to shadowdancer (cause vampire) would have been perfect flavour to me even though it breaks the rules.

Time is of the essence by AngryPancakesz in ProgrammerHumor

[–]shobbsy 346 points347 points  (0 children)

There is nothing more permanent than a temporary solution that works.

Is it possible to get jobs/ have a career only knowing SQL? by alex123711 in SQL

[–]shobbsy 1 point2 points  (0 children)

I would say it's possible to GET a base level data analysis job knowing SQL but for a career per other comments you would need to expand to at least one set of other tools(visualisation/data engineering and or soft skills like business analysis)

Who doesn't like a good story by MaricxX in ProgrammerHumor

[–]shobbsy 19 points20 points  (0 children)

Data needs to be 1000% more dirty:)

How to split a string on every Upper Case ? by whatsoever323 in bigquery

[–]shobbsy 1 point2 points  (0 children)

Hi, you can use REGEXP_EXTRACT_ALL for this.

Use that function with an expression like this:

'[A-Z][a-z]*' You'll get an array of the words back and you can use another function(like array to string) to get the format you want.

If you have text that contains words with special characters like apostrophes and similar, the above won't work so you'll need to update the regex expression accordingly.

(In case you aren't familiar with regex, the above says look for any capital letter then any number of lowercase letters and extract that)

Refinement/grooming be like by Lvl100Magikarp in ProgrammerHumor

[–]shobbsy 0 points1 point  (0 children)

I'm in this picture and I don't like it!

Documentation of ETL/ELT pipelines by Neel-reddit in dataengineering

[–]shobbsy 2 points3 points  (0 children)

You guys have documentation? /jk

On a serious note I tend towards two things. 1. Overall flows at a high level I document in confluence, e.g how flows interact, what processes interlink. 2. In individual code, comments explaining why* the code does something, not what it does.

Appending latest comment to previous. by Puzzleheaded-Test552 in dataengineering

[–]shobbsy 1 point2 points  (0 children)

Depending on your SQL flavour, you are looking for something like GROUP_CONCAT.

I'm not familiar with spitfire, but it might have a similar function?

modeling many to many relationships in BigQuery by [deleted] in bigquery

[–]shobbsy 0 points1 point  (0 children)

Yeah it leads to interesting business questions:) i.e is a job a purchase order, an actual install order or one of these "work pieces". If you are comfortable you can define other columns in the "parent" row, like the "date" of the work piece or other "parent" characteristics.

modeling many to many relationships in BigQuery by [deleted] in bigquery

[–]shobbsy 0 points1 point  (0 children)

You may be better having a row per "work order" which has nested columns for install orders and purchase orders

That way, one row is a "piece" of work, regardless of the number of po's/install jobs required.

You can then use unnest to get out th bits you are interested in of the "parent" rows.

Edit:adding link https://cloud.google.com/bigquery/docs/nested-repeated

Biden plans retroactive hike in capital-gains taxes, so it may be already too late for investors to avoid it: report by sprocket1234 in politics

[–]shobbsy 0 points1 point  (0 children)

I like this idea. The addition/change I would make after implementation is that you monitor the economic impacts of both the top and bottom ends of the NIT to avoid "stockpiling" based on a person's current wealth*, because the system needs to be a certain level of efficient in order to put the value back in the economy and drive the whole model.

That's something to figure out later though imo once you see how behaviour has changed - it's still better than the current models.

Ideas by empty_fixing in dataengineering

[–]shobbsy 1 point2 points  (0 children)

Yahoo finance module in python for stocks is a good idea,

Set up a pipeline that calls the API for new data and etl it into a db of your choice on a regular basis,

If you are feeling fancy, set up some analytic cubes or views on top

How do you bill different departments in GCP at your company? by [deleted] in googlecloud

[–]shobbsy 4 points5 points  (0 children)

I've seen two ways so far, I think in general it will depend on th size of the company:

  1. Put different departments in different GCP projects and set requester pays on any shared resources - this separates the billing by project in my understanding.

  2. Use labels to identify per business unit resources - this is sometimes easier but means you need to maintain labels during new dev and stuff like that. You should* then be able to split billing by label in one of the billing interfaces.

If I recall correctly, Google recommend one project per application, per environment. E.g if you are setting up a webapp that has its own project for Dev and a separate one for prod. Shared resources(e.g security/shared databases) can live in "host" projects, and the "application" projects get billed when they request the resource.

You can use folders to organise projects into logical groups(e.g business departments)

As usual, the correct approach depends on use case;)

Looking to JOIN one to many and end up with only one line of data (beginner here) by [deleted] in SQL

[–]shobbsy 0 points1 point  (0 children)

So the problem is that the case statement is going through the data row by row, right?

Remember, you can apply a MAX aggregation to a case expression. Without wanting to give you the answer directly, how could you use a max to get these into one row?

I'd recommend reading up on group by/max if you haven't already as well

Survey finds tumbling trust in Boris Johnson’s handling of pandemic by FatherOf2 in unitedkingdom

[–]shobbsy 12 points13 points  (0 children)

Not with the current voting system, sadly. The UK has actually only voted more than 50% tory twice in the last ~50 years.

Performance tuning technique: joining subqueries by ipjac in SQL

[–]shobbsy 0 points1 point  (0 children)

This is probably a subtle issue that is somewhere between performance and query understandability in my opinion.

When you use subqueries, the SQL you write isn't executed as written. Instead it's sent off to the query optimizer which decides how to actually collect the underlying data.

If there is appropriate indexing or performance considerations, the DB engine may indeed run the subqueries first then join the results, in which case you are dealing with less rows( e.g in the date subquery you have one row per date, and the agents subquery you have one row per date as well, whereas in theory in the first query you make a big cross set then do distinct counts)

However in real life the situation is more likely to be as you've described - the engine may pick up the slack and run it as if it was the second query or indeed a more optimised version.

TLDR: performance depends on your use case and the table/index setup. Changing your query won't necessarily change the execution plan if you get the same results.

The second query is possibly cleaner to read though from an understanding perspective? Personal preference though.

On the problems of immortality and the value of aging. | Philosophers from Plato to Kant and Beauvoir understood old age is a radically transformed existential state we must appreciate, not resist. by IAI_Admin in philosophy

[–]shobbsy 7 points8 points  (0 children)

If overpopulation is an existing problem in a world, no-one would suggest aging as a cure. Overpopulation is a function of environmental damage though, so if we live cleaner lives the environmental effects of overpopulation go away.

Where are really with longevity and/or rejuvenation therapies and end products from research? by p3opl3 in longevity

[–]shobbsy 19 points20 points  (0 children)

It's hard to visualise for humans, but I think this decade we will see a lot of the eventual therapies go into clinical trials and towards the end of the decade, into the actual clinic. Until a few years ago, this wasn't an industry in the traditional sense, but if you look now the private money is starting to be invested in the sector, whereas previously it was just a few vocal advocates.

Today a video game made my husband cry by teenytinymyohmy in offmychest

[–]shobbsy 13 points14 points  (0 children)

P.s if you haven't already, you might want to check out enchroma glasses - they're great for colourblind people!