Salta al contenuto principale



Pleased to have been invited (and accepted) to join as an #Editor the Editorial Board of the #journal #Law #Ethics & #Technology via #China #University of #PoliticalScience & #Law

elspub.com/journals/law-ethics…

reshared this




I posted this on LinkedIn a couple of years ago, but some recent posts made me think it was worth reposting on a platform that people actually read.

No, you don't need to hire more women

You can't solve any problem until you understand the problem that you're trying to solve and diversity and inclusion (D&I) is no different. I was Director of Studies for Computer Science at Murray Edwards (an all-women Cambridge college), have been Chair of the Microsoft Cambridge D&I Committee and sat on the D&I Council for Microsoft Research (worldwide), so this is a topic that I find myself discussing a lot.

A lot of the D&I-related conversations that I've had over the last few years have begun with someone telling me that their group needs to hire more women (or members of some other under-represented group - feel free to mentally substitute any other such group as you read this post) and asking me how to do it.

The number of women in an organisation is very rarely the underlying problem. It is a trailing indicator of an underlying problem, a spot health check, not an optimisation goal. If hiring more women is really the most important requirement, it's easy to solve: walk into any unemployment office and you'll find around half of the people there are women looking for jobs. Of course, most won't have the skills that you need (that, after all, is why you have a hiring process involving CVs, interviews, and so on) and hopefully that gives you a hint that just hiring people because they are women isn't actually the right solution.

It's very easy to set up metrics about number of women in each organisation and drive evaluation of culture based on that. This can often make inclusion worse for your company. Imagine being a woman in an all-hands meeting when someone in a leadership position puts up a graph of the number of women in the org and congratulates the leadership on the fact that it's going up. Your first thought will probably be something along the lines of 'was I hired just to meet some quota?' Your second (more worrying) thought may be 'do all of my co-workers think I was hired to meet some quota?' Now, you're immediately second-guessing your own competence and expecting other people to think you're underqualified.

So why should a company care about the number of women in a group? If just hiring more women doesn't solve the problem, that suggests that what we really want to do is hire and retain the most qualified people; if a particular group is underrepresented, that may be because your hiring and retention favours or disadvantages some people for reasons other than competence. If the best candidates are self-deselecting before you even get them to interview, that's a problem. If the best candidates are being filtered out because HR doesn't really understand the job, or because your hiring process magnifies implicit biases, that's a problem. If the best people are leaving because of your team culture, that's a problem.

When I've talked about D&I, I've often been approached by people afterwards saying that D&I is great, that helping disadvantaged people is nice, but that they need to focus first on business impact. This misses the point. Companies don't engage in D&I activities to be nice or to help people. Companies engage in D&I activities because hiring and retaining the best people has a greater business impact then hiring and retaining the best out of an arbitrary subset of the candidate pool. It's important to keep that in mind with diverse hiring: you are not doing diverse candidates a favour by hiring them, they are doing you a favour by allowing you to benefit from their skills and unique perspectives.

Various studies have shown that teams with diverse perspectives do better. It's easy to focus on a single dimension here but a team of male, rich, white, Eton-educated, Oxford PPE graduates will not get much benefit if they start hiring female, rich, white, Eton-educated, Oxford PPE graduates. Diversity of viewpoints comes from a large number of axes, including education, interests, gender, ethnicity, and so on. Optimising for a single dimension will not give you the desired results.

Even though the root problem for your company is not the number of women that you employ, that statistic is still an easy metric to give us a quick culture health check. In the last few years, the number of women graduating from computer science degrees in the UK has remained at around 20%, so at first glance you should expect an organisation that hires computer science graduates to be about 20% female.

That high-level stat doesn't tell the whole story though. As a middle-class white boy, there are a lot of conversations I never had. No one told me I shouldn't be interested in computers because they're a girl's thing. No one called me a race traitor for being interested in mathematics because it's not a white thing. No one told me 'boys can't code'. No one ignored me as a possible candidate for extra classes in a STEM subject because I was a boy. In my time at Murray Edwards, I heard stories like these from countless (female) STEM students about their time at school.

Any woman who even made it into the first year of an undergraduate computer science programme overcame far more obstacles than someone like me. By the age of 18, they've already shown a passion for the subject that let them push through these barriers. The fact that many will have left the field in spite of their aptitude is a separate problem that schools need to solve. As an employer, are you more interested in the candidates who care deeply about the subject, or the ones that coasted through looking for a well-paid job? If it's the former, then you should probably expect more than 20% of your candidate pool to be women. A lot of under-represented groups are far less under-represented in the top 10% of a field than in the field as a whole. That still doesn't mean that's the metric that you should optimise for, just a suggestion of where your ballpark culture health check should be.

So why is your group less than 20% female? It might be simply a small group. For a team of five people, assuming that 20% of the qualified candidate pool is female and that you hire at random from that pool, you have around a 33% chance of being an all-male team. If you're hiring for a particularly rare skill set, there's a good chance that this will be higher: you're relying on candidates being available on the job market at the same time that you're hiring. The same probabilities work with respect to the available candidate pool: if there are only three qualified candidates on the job market at any given time, there's a >50% chance that they'll all be male. Groups that can hire speculatively (bring in competent people as they become available, rather than needing to hire someone this month) have a big advantage here, by being able to hire the most competent people when they're available.

Does your hiring process favour a particular group? I'm not going to go into detail here because there's a staggeringly large amount of research on this topic. Whoever designs your company's hiring process needs to read a decent selection of this research and consciously design the process to minimise implicit bias. If no one has done this for your company then there's a very good chance that implicit bias is the dominant factor in hiring outcomes. This isn't limited to decisions made by humans. Amazon famously tried to use machine learning for hiring based on their current employee profiles and it learned that being male correlated strongly with being a good hire, so used that as the key metric.

Do your culture or your HR policies favour retention of a particular group? The biggest single improvement that you can make for retaining women is, somewhat counter-intuitively, to improve paternity leave. If you offer six months maternity leave and six weeks paternity leave, then a mother in your team will be four and a half months behind a father. Worse, every manager of a team will have a higher expectation that women on their team may disappear with short notice for longer than men. There are lots of other subtle ways that team culture can favour groups, such as promoting people who speak a lot in meetings and so on.

Gender breakdown isn't the only misleading metric. A lot of gender pay-gap reporting is nonsense because it shows that men and women of the same grade are paid the same, but doesn't account for promotional velocity or the relative expertise of people at a particular grade. If you're using any such metric then you need to be very careful that you treat it as a diagnostic indicator, not as an optimisation goal.

Having a particular group under-represented in your workforce is almost certainly a symptom of an underlying problem but if you try to treat the symptom without treating the cause then you will fail.

reshared this



Seychelles to hold rerun presidential election after no outright winner
https://www.africanews.com/2025/09/28/seychelles-to-hold-rerun-presidential-election-after-no-outright-winner/?utm_source=flipboard&utm_medium=activitypub

Posted into Africanews @africanews-euronews



[#TRADESHOW] C-TOUCH & DISPLAY SHENZHEN 2025 will be held from October 28 to 30, 2025, at the #Shenzhen #World #Exhibition & #Convention #Center, #China. As #Asia’s premier #trade #fair for #smart #touch and #display #technology, this #flagship #B2B #expo #event is at the #forefront of #innovation across touch #screens, display #panels, #semiconductors, optical #films, #ePaper, and next-gen #materials. cnbusinessforum.com/event/c-to…


「私たちがここでしているのは、人間性がまだ残っていること、そしてすべての手段が尽きたときにも立ち上がろうとする人々がまだいると示すこと」

「ですが、これは最後の手段です。本来、この任務は存在しなくてもよいはずなのです」

「ガザに近づくほど事態がエスカレートし、攻撃が増える危険性が高まります。ここ数週間、私たちの任務に対する攻撃が激化し、複数の船が損壊しました。

ドローンを使って爆発物や化学物質、正体不明の物体を船やその周辺に投下するという、私たちを脅し、パレスチナと連帯する人々を沈黙させて怖がらせ、さらにパレスチナ人を非人間化しようとする必死の試みが続いています」

グレタ・トゥーンベリさん「恐れているのはイスラエルではなく、人間性を失ったように見える世界」
huffingtonpost.jp/entry/story_…



BREAKING: Chinese leader Xi Jinping is planning to press Trump to formally state that the U.S. “opposes” Taiwan’s independence, per WSJ

#news #finance #economics #stocks #options



credo valga la pena conservare quel podcast, lo trovate anche qui
grafton9.net/tmp/raiplay-centr…

ricordatevi: quando trovate qualcosa di interessante sul web, scaricatelo, copiatelo, diffondetelo. e conservatelo a casa, offline.

reshared this



NSFW 18+ Nudity
  • Sensitive content
  • Parola filtrata: nsfw




Weapons is interesting. I will say I heard Katya's cackle through the entire movie.

Not horror, very thriller.

in reply to @biscuit_pup

I just watched it last night with a buddy and we were cackling as well. Gladys is an absolute riot.





I’m returning to my old friend MyFitnessPal to try and get serious about losing some weight. But is there something better I could be using? I don’t mean ideologically better (open source etc); I’m curious if there’s something better designed and more effective.


Fix some TROMjaro recent issues - forum.tromjaro.com/t/fix-some-…

#linux #tromjaro #arch #manjaro #xfce

reshared this




Perfectly explains the shit I get from jerk fedi.

[they claim it's their right to bother others but know they would face repercussions IRL so have staked out that space online where anonymity is possible. what annoys me is how this became intertwined with people with conservative opinions but who aren't assholes. of course wokeism is partly to blame here too]

youtu.be/mRtGg9F5xyA?si=lCPNVD…

Questa voce è stata modificata (1 settimana fa)


I call these Cotton Swabs. Some Sunday pundit asks a right winger a question, and the right winger gets a 2-minute platform to make wildly unsubstantiated claims. Plus, WHY NOT ASK ABT TRUMP TERM ONE?!?!
RE: bsky.app/profile/did:plc:4llrh…



pieces from the era when pixel art finally really clicked for me ✨💜
#pixelart #dinchenix #ドット絵

reshared this



“Server admin, you are. Edit your instance’s details in the map, you must.” – Master Yoda

fediversemap.com/en/server_adm…

#fediverse #mastodon #admin #server





Instagram Edits - Die Grundfunktionen kurz erklärt (2025)


Seit wenigen Wochen gibts eine neue Videobearbeitungs APP für Android und iPhone von Instagram / Meta mit dem Name "Instagram Edits"

Heute zeige ich euch wie diese App genau funkioniert und wie man da schnelle in Video für #Instagram #tiktok erstellen kann

chefblogger.me/2025/05/26/inst…

Inhaltsverzeichnis
00:00 - Einleitung
00:40 - App Installieren
01:54 - Projekt anlegen
02:29 - Auflösung
06:04 - Text hinzufügen
08:34 - Voice over
09:29 - Untertitel anlegen
11:14 - Overlay hinzufügen
11:47 - Sound FX / Sound Effekte
12:24 - Cutout / Ausschnitte
12:35 - Sticker
13:18 - Video exportieren
14:01 - Iphone vs Android





Another day, another… “Three people were killed and eight others injured after a person on a boat fired shots at a waterfront bar in the coastal #NorthCarolina city of Southport, a city spokeswoman told ABC News” #GunViolence abcnews.go.com/US/3-dead-8-...

3 dead, 8 injured after shoote...



Xtro from 1983 is a ooey-gooey gorefest sci-fi/horror flick that is one I actually like quite a bit. Xtro II: The Second Encounter sucked.

Read the review from February at wp.me/p9XNnZ-5Zs

#blog #review #90s #xtro #sciencefiction #horror



Igreja Matriz de Mértola - Portugal 🇵🇹

Originally a late 12th Century Mosque was converted into a Church after Christian reconquest of Mértola in 13th Century.

Easterners renovated it late in 15th Century. In 1506, Duarte de Armas painted chapel's minaret and timber roof truss. In mid-16th Century, Pedro Dias and Fernão Pires documented building changes, including replacing minaret with belltower and adding merlons to troofline. Belltower ornamentation is 17th-18th Century.

#archaeohistories





BSD Router Project has a new release for all your router needs: distrowatch.com/12574


#52WochenFotoChallenge 2025/39 Überbewertet

Ja, so eine Aussicht ist wirklich überbewertet. Statt dessen gibt es grüne Schallschutzwände.

#photography #fotografie





"I'm a wizard, mind you!" 🪄

Seems like I've finally found an approach to watercolours that doesn't feel confusing or overwhelming. It mostly came down to keeping my tools super simple and easy to manage!

#watercolor #dnd #doodle #art #mastoArt #creativeToots #traditionalArt



voller worte: ach nee, oder? voller-worte.de/ach-nee-oder/

#Blog

#blog

in reply to Coffeedate with ADHD

The image features a humorous meme with text and an animated character. The text at the top reads: "The CDC recommends you wake in the morning and you step outside and you take a deep breath and you get real high and you scream at the top of your lungs WHAT'S GOING ON." Below the text is an animated character with blonde hair, wearing a pink shirt, set against a colorful, starry background. The character appears to be laughing or expressing joy, with their eyes closed and mouth open. The overall tone of the image is comedic, using the character's expression to emphasize the absurdity of the CDC recommendation mentioned in the text.

Provided by @altbot, generated privately and locally using Ovis2-8B

🌱 Energy used: 0.144 Wh



Iran recalls envoys from Germany, France and UK as snapback sanctions loom thecradle.co/articles-id/33390



Even iets moois, zomaar, tijdens een wandelingetje op een steenworp van huis.
#evenietsmoois #photography #blackandwhitephotography
Questa voce è stata modificata (1 settimana fa)


BT
なぜXが殺伐としていて、マストドンが相対的に落ち着けるかと言えば、あっちは「いかにうまいこと言うか」に勝負がかかっている場所だが、こっちはそういう圧がなく、切れ味悪くてもっさりしたことを遠慮なくもじょもじょと言えるからだと思う。
Questa voce è stata modificata (1 settimana fa)


EireneFest Unisa. L’Università degli Studi di Salerno dedica quattro giorni intensi alla cultura della nonviolenza
pressenza.com/it/2025/09/eiren…
Inizia lunedì 29 settembre 2025 e prosegue fino al tardo pomeriggio di giovedì 2 ottobre, Giornata Internazionale della Nonviolenza, EireneFest Unisa (eirenefest.it/universita-di-sa…), la prima edizione locale di



Interferență digitală. Un influencer pro-rus din România a produs un video viral în care spune că Germania a colonizat Chișinăul


Un video lansat de H.D. Hartmann, un influencer pro-Kremlin a generat 3 milioane de vizualizări cu ajutorul rețelei rusești REST, afiliată reţelei de propagandă militară a Kremlinului. Clipul a fost propagat în preajma campaniei electorale pentru alegerile


Non è più solo questione di gusto. Dietro ogni sorso di vino o birra si nascondono meccanismi biologici precisi: tannini che chiudono i canali dell’acqua nella tua bocca, RNA del lievito che crea torbidità su richiesta, solfiti che alterano il tuo microbiota intestinale, e ora persino un test rapido che rivela se quella birra “senza glutine” lo è davvero. La scienza non brinda più in silenzio: osserva, misura, svela. E ci chiede di bere con un po’ più di consapevolezza.

futuroprossimo.it/2025/09/nuov…

reshared this



Sensitive content




#Epstein , Epstein, Epstein. My daily reminder. Quid pro quo. Club Fed. "They were predators together, they molested kids together." -Prosecutor. Leniency implies GUILT! #Politics


here’s how putin is saving russian-ukraine citizens from the kiev regime:

2014–2021 (8 years of “protection”): ~13–14k dead (~1.5–2k/year)
2022–2025 (3 years of “special operation”): hundreds of thousands dead

so yeah, clearly all about saving people

#Politics #Russia #RussiaUkraineWar #ukraine #Putin



Un onore
Facebook mi chiede di indicare come amici i professori Federico Perotti e Giulio Ballio che ho avuto l'onore di avere come docenti di Dinamica delle Strutture e Strutture in Acciaio. Lo ritengo un onore immeritato!
monodes.com/predaelli/2025/09/…
#Mood
#mood



Clearing out old stuff from the kids’ rooms:

Me - I read this book to you every night, you loved it. I could recite it from memory.

Them - I’ve never seen that book before in my life.

Questa voce è stata modificata (1 settimana fa)

webhat reshared this.

in reply to Nick

I mean it’s not *impossible* that I took the wrong kid home from soft play five years ago and no-one noticed.
in reply to Nick

If you’re not happy for your child to be a goblin changeling, don’t have kids imo.


i have just done my monthly taxes. since mid august (when i had to stop sales to the US*), my income has plummeted and i'm now making around 1/6 (if that) of what i was making before. we cannot survive on this.

if what la poste says is correct, i'll find out tomorrow whether i can realistically resume shipping to the US anytime in the foreseeable future. if i can't ... ...
i don't even know.

*as a result of trump's tariffs and the removal of the de minimis exemption. my work is technically exempt, but unless i can find a feasible/affordable shipping option, and one that allows for the exemption (not all do), i'm doomed.

reshared this



Wild that our president and secretary of health and human services stood before the country last week and lied about autism.

Every America should be outraged by this assault on science and common sense.

RE: threads.com/@andykaczynski/pos…



#ConvictedFelonTrump 's behavior wrt the #Epstein files proves to me that he is GUILTY of things in them that he is terrified of becoming public! Q. E. D. Keep digging! #Politics



They say AI hallucinates, but it's got nothing on a VC who can envision a 'generative AI for pet rock social networking' as a unicorn.

#humor #technology



By Arthur Durston, “Industry,” 1934, oil on canvas, 50 x 40 in. (127.0 x 101.6 cm.), Smithsonian American Art Museum, Transfer from the U.S. Department of Labor. #arthistory #painting #oilpainting #art #labor
Questa voce è stata modificata (1 settimana fa)


TikTok brengt racistische en extreemrechtse boodschappen onder de aandacht van publiek dat er niet naar op zoek is. Het verdient fors aan de donaties die de extremistische livestreams opleveren.
nrc.nl/nieuws/2025/09/26/tikto…


WordPress.org 개발 환경 설정 및 한국어 폰트 적용 가이드 (초보자도 따라 할 수 있게!)


안녕하세요! WordPress.org의 테마 및 플러그인에 한국어 폰트를 적용하고, 관련 개발에 참여하고 싶은 한국인 기여자분들을 위해 최적화된 환경 설정 가이드를 준비했습니다. 이 가이드는 여러 시행착오와 WordPress 메인테이너의 조언을 바탕으로 정리되었으며, 여러분의 소중한 시간을 아껴줄 것입니다. 목표: wporg-main-2022 테마를 중심으로 wporg-parent-2021 (상위 테마) 및 […]

안녕하세요! WordPress.org의 테마 및 플러그인에 한국어 폰트를 적용하고, 관련 개발에 참여하고 싶은 한국인 기여자분들을 위해 최적화된 환경 설정 가이드를 준비했습니다. 이 가이드는 여러 시행착오와 WordPress 메인테이너의 조언을 바탕으로 정리되었으며, 여러분의 소중한 시간을 아껴줄 것입니다.

목표: wporg-main-2022 테마를 중심으로 wporg-parent-2021 (상위 테마) 및 wporg-mu-plugins (필수 플러그인)와 연동하여 한국어 폰트(예: Noto Serif KR, Noto Sans KR)를 적용하고, 안정적인 로컬 개발 환경을 구축합니다.

Issues Discovered While Setting Up Development Environment to Apply Noto Sans/Serif Korean on ko.wordpress.org · WordPress/wporg-mu-plugins · Discussion #690

주요 사용 도구:

  • Windows 11 (또는 다른 OS)
  • WSL2 (Ubuntu) – Linux 환경 실행
  • Git – 버전 관리
  • Node.js & Yarn – JavaScript 패키지 관리 및 빌드
  • Composer – PHP 패키지 관리
  • Docker Desktop – 컨테이너 환경 제공
  • @wordpress/env (wp-env) – WordPress 개발 환경 자동 구성 도구
  • 텍스트 에디터 (예: VSCode)

1단계: 개발 환경 준비


해당 글을 참조해주세요: 워드프레스 개발환경 무작정 따라하기: wp-env – Travel in BUSAN | 부산을 여행하다

  1. WSL2 및 Docker Desktop 설치:
    • Windows 사용자라면 WSL2와 Docker Desktop을 설치하여 Linux 기반의 개발 환경을 준비합니다. (각 프로그램 공식 홈페이지의 설치 가이드 참조)
    • Docker Desktop 설정에서 WSL2 백엔드를 사용하도록 설정합니다.


  2. 필수 개발 도구 설치 (WSL2 Ubuntu 터미널에서):
    • Git: sudo apt update && sudo apt install git
    • Node.js & Yarn:
      • nvm (Node Version Manager) 설치를 권장합니다. (GitHub nvm-sh/nvm 참조)
      • nvm install --lts (최신 LTS 버전 Node.js 설치)
      • npm install --global yarn (Yarn 설치)


    • Composer: PHP 공식 홈페이지 또는 getcomposer.org의 설치 가이드를 따릅니다.
    • PHP 및 확장 기능: wp-env가 Docker 이미지를 통해 PHP 환경을 제공하므로, 로컬 WSL2에 직접 PHP를 복잡하게 설치할 필요는 없습니다. 다만, Composer 실행 등을 위해 기본적인 PHP CLI는 있는 것이 좋습니다. sudo apt install php-cli php-curl php-mbstring php-xml php-zip



2단계: 프로젝트 저장소 복제(Clone) 및 브랜치 설정


WordPress.org 사이트의 한국어 폰트 개선을 실험하기 위한 개발 세팅입니다. – Travel in BUSAN | 부산을 여행하다

  1. 개발 디렉터리 생성:
    • WSL2 터미널에서 원하는 경로에 개발 디렉터리를 만듭니다. (예: mkdir ~/dev && cd ~/dev)
    • Windows 탐색기에서도 접근하려면 /mnt/c/Users/사용자명/dev 와 같이 Windows 경로와 연결된 곳에 만드는 것이 편리합니다. 이 가이드에서는 ~/dev (WSL 홈 디렉터리 내)를 기준으로 설명합니다.


  2. 관련 저장소 포크(Fork) 및 클론:
    • 먼저, GitHub에서 다음 WordPress 공식 저장소들을 자신의 계정으로 포크합니다.
      • WordPress/wporg-main-2022
      • WordPress/wporg-parent-2021
      • WordPress/wporg-mu-plugins


    • 터미널에서 포크한 저장소들을 dev 디렉터리 아래에 나란히 클론합니다.



Bashcd ~/devgit clone github.com/YOUR_GITHUB_USERNAM… clone github.com/YOUR_GITHUB_USERNAM… clone github.com/YOUR_GITHUB_USERNAM…

  1. 업스트림(Upstream) 원격 저장소 추가:
    • 각 프로젝트 디렉터리로 이동하여 WordPress 공식 저장소를 upstream으로 추가합니다. 이는 공식 저장소의 최신 변경 사항을 쉽게 가져오기 위함입니다.



cd wporg-main-2022git remote add upstream github.com/WordPress/wporg-mai… ../wporg-parent-2021git remote add upstream github.com/WordPress/wporg-par… ../wporg-mu-pluginsgit remote add upstream github.com/WordPress/wporg-mu-… ..

  1. 작업 브랜치 생성 및 체크아웃:
    • 한국어 폰트 적용 작업을 위한 브랜치를 각 저장소에 생성합니다. (만약 공식 저장소에 이미 관련 작업 브랜치가 있다면, 해당 브랜치를 기반으로 생성합니다.)
    • wporg-main-2022:
      • cd wporg-main-2022
      • git fetch upstream (공식 저장소 최신 정보 가져오기)
      • git checkout -b remove/font-preloading-child upstream/remove/font-preloading-child (예시: WordPress/wporg-main-2022#560 PR 관련 브랜치, 또는 새 브랜치 git checkout -b add/korean-font upstream/trunk)
      • git push -u origin remove/font-preloading-child (자신의 포크에 브랜치 푸시)


    • wporg-parent-2021:
      • cd ../wporg-parent-2021
      • git fetch upstream
      • git checkout -b add/korean-font upstream/add/korean-font (공식 저장소에 해당 브랜치가 있다면, 없다면 upstream/trunk 기반)
      • git push -u origin add/korean-font


    • wporg-mu-plugins:
      • cd ../wporg-mu-plugins
      • git fetch upstream
      • git checkout -b add/korean-font upstream/add/korean-font (공식 저장소에 해당 브랜치가 있다면, 없다면 upstream/trunk 기반)
      • git push -u origin add/korean-font


    • cd .. (다시 ~/dev 디렉터리로)



3단계: wporg-main-2022 프로젝트 중심의 wp-env 환경 구성


wp-envwporg-main-2022 디렉터리에서만 실행하여 중앙 집중식으로 관리합니다.

  1. .wp-env.override.json 파일 생성:
    • ~/dev/wporg-main-2022 디렉터리에 .wp-env.override.json 파일을 생성하고 다음 내용을 참고하여 작성합니다. (경로는 자신의 환경에 맞게 조정)



JSON{ "config": { "WP_DEBUG": true, "SCRIPT_DEBUG": true, "WP_DEBUG_LOG": true, // 또는 "/tmp/wp-errors.log" 등 WSL 경로 "WP_DEVELOPMENT_MODE": "all", "WP_ENVIRONMENT_TYPE": "local", "JETPACK_DEV_DEBUG": true, // Jetpack 개발 모드 "WPORG_SANDBOXED": true // WordPress.org 샌드박스 모드 // 기타 필요한 WordPress 상수 추가 가능 }, "themes": [ // WordPress.org 기본 테마들 (wporg-main-2022의 source 디렉터리 기준) "./source/wp-content/themes/wporg", "./source/wp-content/themes/wporg-main", "./source/wp-content/themes/wporg-main-2022", // 인접 디렉터리의 wporg-parent-2021 테마 매핑 "../wporg-parent-2021/source/wp-content/themes/wporg-parent-2021" ], "mappings": { // 인접 디렉터리의 wporg-mu-plugins 전체를 매핑 "wp-content/mu-plugins/wporg-mu-plugins": "../wporg-mu-plugins", // 한국어 번역 파일 등 로컬 언어 파일 매핑 "wp-content/languages": "./source/wp-content/languages", // wporg-main-2022 프로젝트의 기타 필요한 매핑 (선택적) "env": "./env", "wp-content/mu-plugins/0-sandbox.php": "./env/0-sandbox.php", // 주의: 위 wporg-mu-plugins 매핑과 역할 분담 명확히 "wp-cli.yml": "./wp-cli.yml" }}

  1. 중요: mappings의 경로는 .wp-env.override.json 파일이 위치한 wporg-main-2022 디렉터리를 기준으로 작성합니다. ../는 상위 디렉터리를 의미합니다.

4단계: 의존성 설치 및 프로젝트 빌드 (WSL2 터미널)


각 프로젝트 디렉터리에서 의존성을 설치하고 빌드합니다. 브랜치를 변경하거나 원격 저장소에서 새 코드를 받아올 때마다 해당 프로젝트의 빌드 과정을 반복해야 합니다.

  1. wporg-mu-plugins 빌드:


cd ~/dev/wporg-mu-pluginscomposer installyarn installyarn build

  1. wporg-parent-2021 빌드:


cd ~/dev/wporg-parent-2021composer installyarn installyarn workspaces run build # 워크스페이스 사용 시, 아니면 yarn build

  1. wporg-main-2022 빌드:


cd ~/dev/wporg-main-2022composer installyarn installyarn workspaces run build # 워크스페이스 사용 시, 아니면 yarn build

  1. 참고: composer installcomposer.lock 파일이 변경될 수 있습니다. 이는 로컬 환경과 원본 저장소의 의존성 버전 차이 때문일 수 있습니다. 일반적으로는 composer update 패키지명 또는 composer update로 최신 호환 버전을 설치하고, 변경된 composer.lock 파일을 자신의 포크에 커밋하는 것이 좋습니다. (단, WordPress.org 기여 시에는 lockfile 변경만 있는 PR은 지양하는 분위기입니다.)

5단계: wp-env 실행 및 WordPress 설정


  1. wp-env 실행 (WSL2 터미널 – wporg-main-2022 디렉터리에서):


cd ~/dev/wporg-main-2022yarn wp-env stop # 이전에 실행 중이었다면 중지yarn wp-env start --update # 변경사항 적용하며 시작
성공적으로 실행되면 Docker 컨테이너가 생성되고 로컬 WordPress 사이트가 http://localhost:8888 (기본 포트)로 실행됩니다.

  1. WordPress 초기 설정 스크립트 실행 (필요시):
    • wporg-main-2022 프로젝트에 setup:toolssetup:wp 같은 Yarn 스크립트가 있다면 실행합니다.



yarn setup:toolsyarn setup:wp

이 스크립트들은 보통 WordPress 설치, 테마 활성화, 고유 주소 설정 등을 자동화합니다.

  1. 콘텐츠 가져오기 (선택적):
    • 테스트용 콘텐츠가 필요하다면, 프로젝트 내의 가져오기 스크립트를 사용합니다.



yarn wp-env run cli php env/import-content.php --url "https://wordpress.org/wp-json/wp/v2/posts?context=wporg_export&per_page=10"yarn wp-env run cli php env/import-content.php --url "https://wordpress.org/wp-json/wp/v2/pages?context=wporg_export&per_page=10"


6단계: 국제화(i18n) 설정 및 테스트


  1. 한국어 언어 파일 준비:
    • WordPress Polyglots 사이트에서 WordPress.org 메타 프로젝트의 한국어 번역 파일을 다운로드합니다. (예: wporg-ko_KR.mo, wporg-ko_KR.po)
    • 테마 번역 파일(wporg-main-2022-ko_KR.mo 등)도 해당 테마의 번역 프로젝트에서 다운로드합니다.


  2. 언어 파일 배치:
    • ~/dev/wporg-main-2022/source/wp-content/languages/ 디렉터리에 코어 및 플러그인 언어 파일을 배치합니다.
    • ~/dev/wporg-main-2022/source/wp-content/languages/themes/ 디렉터리에 테마 언어 파일을 배치합니다.
    • .wp-env.override.jsonmappings 설정에 따라 이 경로의 파일들이 Docker 컨테이너 내의 WordPress에 반영됩니다.


  3. WordPress 관리자 설정:
    • 웹 브라우저에서 http://localhost:8888/wp-admin/으로 접속합니다. (기본 ID/PW: admin/password)
    • Settings > General (설정 > 일반)에서 Site Language (사이트 언어)를 한국어로 변경합니다.
    • Dashboard > Updates (알림판 > 업데이트)에서 하단의 Update Translations (번역 업데이트) 버튼을 클릭합니다.
    • Settings > Reading (설정 > 읽기)에서 홈페이지 등을 설정합니다.


  4. 폰트 적용 확인 및 테스트:
    • 사이트 프론트엔드(http://localhost:8888/)에 접속하여 제목, 본문 등에 의도한 한국어 폰트가 적용되었는지 확인합니다.
    • PHP 오류나 알림이 없는지 브라우저와 WP_DEBUG_LOG 파일 내용을 확인합니다.



7단계: Git 워크플로우 및 라인엔딩 설정


  1. 라인엔딩 일관성 유지:
    • Windows와 WSL2를 함께 사용할 때 발생할 수 있는 줄바꿈 문자(CRLF/LF) 문제를 방지하기 위해, 각 프로젝트 루트에 .gitattributes 파일을 생성하고 다음 내용을 추가합니다. (VSCode 등 에디터에서도 기본 라인엔딩을 LF로 설정 권장)



* text=auto eol=lf*.bat eol=crlf# 필요한 경우 다른 Windows 특정 파일 확장자 추가

  1. 일반적인 Git 작업 흐름:
    • 변경 사항이 있다면 해당 프로젝트 디렉터리에서 작업합니다.
    • git status로 변경된 파일 확인.
    • git add . 또는 git add <파일명>으로 변경 사항 스테이징.
    • git commit -m "커밋 메시지"로 로컬 저장소에 커밋.
    • git pull upstream <브랜치명>으로 공식 저장소의 최신 변경 사항을 가져와 병합(또는 리베이스). (충돌 발생 시 해결 필요)
    • git push origin <브랜치명>으로 자신의 포크 저장소에 푸시.
    • GitHub에서 공식 저장소로 Pull Request(PR) 생성.



문제 해결 및 팁


  • PHP 오류/알림 발생 시:
    • .wp-env.override.jsonWP_DEBUG, WP_DEBUG_LOG 설정을 확인하고 로그 파일 내용을 분석합니다.
    • 관련 테마/플러그인의 빌드 과정이 올바르게 실행되었는지 확인합니다. (브랜치 변경 후에는 항상 해당 프로젝트 yarn build 실행)
    • 블록 등록 시 네임스페이스(my-plugin/my-block 형식)가 제대로 사용되었는지 코드 확인.


  • composer install/update 문제:
    • composer.lock 파일과의 충돌이 의심되면, rm composer.lockcomposer install 시도 (단, 의존성 버전이 달라질 수 있음에 유의).
    • 특정 패키지 문제 시 composer update vendor/package-name 시도.
    • wp-env 환경 실행 중에는 composer updateyarn wp-env restart 필요할 수 있음.


  • 글로벌 헤더 등 특정 영역 폰트 미적용 시:
    • 해당 영역은 테마가 아닌 wporg-mu-plugins에서 직접 관리할 가능성이 높습니다. wporg-mu-plugins 내의 관련 코드(CSS 또는 PHP 폰트 로딩 부분)를 직접 수정하고 빌드해야 할 수 있습니다.



이 가이드를 통해 WordPress.org 한국어 관련 기여를 위한 안정적이고 효율적인 개발 환경을 구축하시기를 바랍니다. 궁금한 점이나 막히는 부분이 있다면 언제든지 WordPress Slack의 #meta 또는 #[url=https://kowporg.wordpress.com/tag/polyglots/]polyglots[/url] 채널, 또는 관련 GitHub 저장소의 Discussion을 통해 질문해주세요!



Servus, @phillip@social.cologne
Schreib mir doch nicht von #mastodon aus auf den #bluesky Account, der nur die Inhalte von dort im #fediverse postet. Dort antworte ich nicht.

Hier aber schon 😀 ...




Wij waren bij de demonstratie voor #Amelisweerd en maakten dit verslag met foto's en video: mcu.nl/nieuws/demonstratie-ame… #kiesamelisweerd #utrecht @amelisweerdnietgeasfalteerd


VDLM2 Message From: G-TTNH / BA0628

Message: HI THERE. EMAILED BEFORE ABOUT GYROS IF POSS SO JUST TO CONFIRM 1XVEG AND 5XCHICKEN IF YOU CAN BRING TO A/C. ETA 1515Z. WE HAVE MONEY TO PAY READY. MANY THANKS

Track Aircraft

Area: Zurich, Switzerland

#acars #vdlm2 #GTTNH #BA0628




Utrecht kiest luid en duidelijk voor Amelisweerd! Wat een geweldige, kleurrijke en creatieve demonstratie gisteren voor Amelisweerd : iedereen heel erg bedankt! 🎼😍💚

Maar demonstreren alleen is niet genoeg: Stem op 29 oktober op een partij die opkomt voor de bomen en voor de natuur. Lees hier de partijstandpunten terug stopverbredingringutrecht.nl/k… 🌳🌳

#kiesamelisweerd #amelisweerd #a27

@woodygrooves 🎤
@yourlocalpirates 🎸

Foto's van Liesbeth Paardekooper en Maarten Photomic

Questa voce è stata modificata (1 settimana fa)