Ben

1.3K posts

Ben banner
Ben

Ben

@BenBromhead

Yes you can put a database in a container... fight me | Unemployed Bum | Sold @instaclustr to @NetApp | @rust is cool

Christchurch, NZ เข้าร่วม Mayıs 2012
586 กำลังติดตาม658 ผู้ติดตาม
Ben
Ben@BenBromhead·
Today is my last day at @Instaclustr. Sad to leave such a rad bunch of amazing humans, excited to spend more time with another rad bunch of amazing humans ( family and friends).
English
1
0
0
117
Ben รีทวีตแล้ว
Tom Hacohen
Tom Hacohen@TomHacohen·
Looks like Redis is trying to take over the all the OSS Redis libraries. Jedis, Lettuce, and redis-py are down, they are now threatening redis-rs (link in reply).
English
26
62
514
109.4K
Ben
Ben@BenBromhead·
Whoever is responsible for the Microsoft Authenticator push notification flow for otp has done a damn fine job
English
0
0
0
91
Ben
Ben@BenBromhead·
@mike_salter They are pretty good at working out your rough age for ad targeting… I think they will manage
English
0
0
2
48
Michael Salter
Michael Salter@mike_salter·
Complaints about implementation miss the point. If age verification technology is immature, it's because the tech sector hasn't been incentivised to develop it. Well, a ban is a pretty good incentive.
English
1
1
9
490
Michael Salter
Michael Salter@mike_salter·
Unpopular opinion but social media sites are so egregiously unsafe and tech companies have dragged their feet on child protection for so long - I don’t think we can justify letting children onto these sites any more.
6 News Australia@6NewsAU

#BREAKING 🚨 Anthony Albanese has just announced the government will seek to ban teenagers under the age of 16 from social media The announcement confirms the exact age restrictions that will be imposed

English
11
13
53
7.1K
Ben รีทวีตแล้ว
NetApp Instaclustr
NetApp Instaclustr@Instaclustr·
We are pleased to announce the launch of the OpenSearch Software Foundation, a community-driven initiative that will support OpenSearch and its search software, which is used by developers around the world. View the announcement: ntap.com/47spA88 #opensource #opensearch
NetApp Instaclustr tweet media
English
0
2
4
355
Ben
Ben@BenBromhead·
Bwahahahahah good luck elastic.co/blog/elasticse….... Watch this space.. the reason why they are really doing this will become evident soon
English
0
0
1
61
Ben
Ben@BenBromhead·
You know something is a giant turd when crypto/nft people use it
English
1
0
3
69
Ben
Ben@BenBromhead·
The number of people who thought Telegram was a secure e2e messaging platform with no government ties and not just an unmoderated social network with "interesting" investors is hilarious
English
1
1
9
738
Ben
Ben@BenBromhead·
This whole post is the best example of how SQL is not great, but it's the best solution we have to the problem right now
Craig Kerstiens@craigkerstiens

For as powerful as it is, SQL isn't exactly a user friendly language to work in. Debugging SQL can be slow and painful. But, you can write more legible SQL by taking advantage of one of the least used functionalities: CTEs (Common Table Expressions). CTEs are essentially a temporary view within a query. CTEs are named, and then can be reference later. CTEs can build upon each other, essentially you get to create your own smaller foundational building blocks for a query just like you would in code. There are also recursive CTEs, but we'll save that one for another day. Lets start to take a look at them. I'm going to start with a query for a project management tracking app that will give me all users current tasks: WITH users_tasks AS ( SELECT users.email, array_agg(tasks.name) as task_list, projects.title FROM users, tasks, project WHERE users.id = tasks.user_id projects.title = tasks.project_id GROUP BY users.email, projects.title ) Using the above CTE I could query it with: SELECT * FROM users_tasks; But where it gets more interesting is when you want to chain various pieces together. So while I have all tasks assigned to each user here, perhaps I want to then find which users are responsible for more than 50% of the tasks on a given project, thus being the bottleneck. To oversimplify this we could do it a couple of ways, total up the tasks for each project, and then total up the tasks for each user per project: total_tasks_per_project AS ( SELECT project_id, count(*) as task_count FROM tasks GROUP BY project_id ), tasks_per_project_per_user AS ( SELECT user_id, project_id, count(*) as task_count FROM tasks GROUP BY user_id, project_id ), Then we would want to combine and find the users that are now over that 50%: overloaded_users AS ( SELECT tasks_per_project_per_user.user_id, FROM tasks_per_project_per_user, total_tasks_per_project WHERE tasks_per_project_per_user.task_count > (total_tasks_per_project / 2) ) Now let me combing all of it to get a comma separated list of tasks from all over loaded people so I can then go and figure out how to reprioritize. --- Initial query to grab project title and tasks per user WITH users_tasks AS ( SELECT users.id as user_id, users.email, array_agg(tasks.name) as task_list, projects.title FROM users, tasks, project WHERE users.id = tasks.user_id projects.title = tasks.project_id GROUP BY users.email, projects.title ), --- Calculates the total tasks per each project total_tasks_per_project AS ( SELECT project_id, count(*) as task_count FROM tasks GROUP BY project_id ), --- Calculates the projects per each user tasks_per_project_per_user AS ( SELECT user_id, project_id, count(*) as task_count FROM tasks GROUP BY user_id, project_id ), --- Gets user ids that have over 50% of tasks assigned overloaded_users AS ( SELECT tasks_per_project_per_user.user_id, FROM tasks_per_project_per_user, total_tasks_per_project WHERE tasks_per_project_per_user.task_count > (total_tasks_per_project / 2) ) SELECT email, task_list, title FROM users_tasks, overloaded_users WHERE users_tasks.user_id = overloaded_users.user_id CTEs won’t always be quite as performant as optimizing your SQL to be as concise as possible. But generally what they will be is more readable and thus easier to debug and collaborate with others on. While the formatting may not look amazing on twitter, give them a shot the next time you have to write some SQL report.

English
1
0
4
241
Ben
Ben@BenBromhead·
Happy fucking freedom from getting emails from American colleagues day
English
0
0
0
35
Ben รีทวีตแล้ว
Colt McNealy
Colt McNealy@coltmcnealy·
The difference between Kafka 4.0 and 3.0 will be awesome: - No ZooKeeper - Tiered Storage - New Rebalance Protocol (848) - EOS support in Connect - State Updater Thread in Streams - Improved Txn Protocol (890) - Custom Stream Task Assignment (924) #apachekafka is on a roll!
English
1
49
225
23.7K
Ben
Ben@BenBromhead·
The amount of genius level attempts at the neuralink compression challenge who get rid of the noise and still call it lossless is... *chefs kiss*
English
0
0
0
99
Ben
Ben@BenBromhead·
I’d be interested to see what the impact of their other distribution channels are like on this number. E.g consumption via Azure, Bing etc
swyx 🇸🇬@swyx

🆕 The Unbundling of ChatGPT latent.space/p/feb-2024 A whole year has passed with ~0 growth in ChatGPT user numbers. Instead, users are exploring a whole host of verticalized players for Imagegen, Writing, Coding, Research, Agents, Voice and RAG. @OpenAI still wins in that scenario, but probably needs to release Sora and GPT-5 soon to stall mass unsubscriptions from ChatGPT.

English
0
0
0
105