News for hackers. Stuff that matters.

rsclarke

Re:Multi-Region Row Level Security in CockroachDB on Wednesday July 09, 2025 @11:18PM (#44516857)
Yes, the example shows setting the current tenant id to all ones and then performing a select revealing a tenant id of all twos.

The same result is displayed in another example when correctly using a tenant id of all twos. A mistake perhaps of wrong output with the wording in the article is all.

The bullet journal method is a popular way.
Re:A Tutorial on Portable Makefiles (2017) on Monday August 01, 2022 @07:21AM (#32304446)
https://taskfile.dev/ has been my go to for this.
Re:We use GitHub Actions to build GitHub on Tuesday April 05, 2022 @08:39PM (#30926995)
I've been capturing a list of GitHub Actions gotchas;

1. If you reference an environment in a build step, this causes an `on: deployment` event trigger. This is not intuitive.

2. Environments with deployment protection rules are just for branches. Using tagged releases for a production environment means we must allow all branches to be deployed to that environment.

3. Workflows are unable to start other workflows to prevent cyclic actions. Understandable, there are exceptions however e.g (1) above.

4. Pull requests raised by Dependabot will not have the `id-token: write` permission needed to create an OIDC ID token that we use to access external systems (the benefit of then not having to manage secrets). Note: Using `on: pull_request_target` will be granted the permission but then you're executing the `main` branch and not building/testing the Dependabot changes.

Then we have secrets, Organisation, Repository, Environment and Dependabot. Anything in Organisation, Repository or Dependabot should really be at most read only permissions. Environment based secrets may have write permissions but be wary of the malicious PR that then references this environment, what protections are in place? Environment approval? Deployment branch protection?

Re:Google Buzz -- and you thought Facebook had privacy issues? on Wednesday February 10, 2010 @08:57AM (#1114802)
I'm still waiting to get Buzz enabled so I'm not sure on this, but is there an option for per 'buzz' use of location data? I could see good use for the odd occasion of "meet me here" message with the data added. Even better if it knew the recipients location and they could be provided with a route on how to get there!
Re:Every programmer has a variable naming philosophy on Thursday February 04, 2010 @03:31PM (#1101520)
I do not like long variable names and believe it is a combination of good commenting and inference through the code, that one should understand the role of the variable.

I was taught camel case for everything, which I don't agree with. Camel case for class names, everything else lower case, short and separated with underscores if needed. Collections are plural, e.g addresses, so that one can be generic in iteration and talk of an 'address'.

Re:Ask HN: How do you organize your code on your machine? on Sunday December 27, 2009 @02:29PM (#1017449)
Two folders, 'sandbox' and 'projects'.

'sandbox' is organised by language, with code snippets and small projects in each folder. If anything becomes of the small projects they migrate to the 'projects' folder. Anything in the projects folder means it must be in a repository, git or svn.

Re:Ask HN: What hosting do you use for personal projects? on Saturday December 19, 2009 @09:58PM (#1005652)
From a European/UK standpoint by far the best value for money with their recent launch of a data center in London.

I found the VPS market in the UK was dead, with very little that excited me, the London data center was Christmas coming early.

Re:Reuters: Google phone with T-Mobile contract in Jan on Tuesday December 15, 2009 @04:57PM (#997542)
The article on [1] rumours pricing, costing €20 per month for roaming on HSDPA. One just has to wait until it is released to find out I guess, but I too look forward to seeing the device being launched in Europe/UK.

[1] http://www.androidguys.com/2009/12/14/reuters-nexus-one-avai...