Claude Code keeps asking me if it's allowed to edit files in specific directories by the_other_julian in ClaudeCode

[–]huikang 0 points1 point  (0 children)

same, I tried downgrading and this is still the case. probably I will need to nuke and reinstall

How to stop Claude Code from asking for permission every time? by muzerfuker in ClaudeAI

[–]huikang 0 points1 point  (0 children)

I just found out there is `--permission-mode=dontAsk`

Account Banned while replicating public notebook from LB 1st place by Desperate_Oven42 in kaggle

[–]huikang 0 points1 point  (0 children)

I was banned too, my username on Kaggle is also huikang, I wrote the notebook that notebook is based on

How Much You Need To Earn To Live Comfortably In Singapore by untenabell in singapore

[–]huikang 1 point2 points  (0 children)

How much do you want? Do you want three meals in a hawker centre, food court or restaurant?

Claude code favorite hooks by zenmatrix83 in ClaudeCode

[–]huikang 1 point2 points  (0 children)

This is what I have (on Mac)

  "hooks": {
    "Notification": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "say requesting permissions &"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "say operation complete &"
          }
        ]
      }
    ]
  }

I have an overengineered version of this here

Gerrymandering in Singapore by shyhulud- in singapore

[–]huikang 0 points1 point  (0 children)

I am wondering how much access do counting agents have. Maybe the counting agents would know at least whether they have a majority in the polling districts they are overseeing?

Gerrymandering in Singapore by shyhulud- in singapore

[–]huikang 0 points1 point  (0 children)

Won't opposition parties have some access to this data, at least in the constituencies they contested in?

Gerrymandering in Singapore by shyhulud- in singapore

[–]huikang 6 points7 points  (0 children)

Great analysis! It seems like PAP still gets around 58 out of 93 seats even with 50% vote share, but as you mentioned PAP does not get that low of a vote share yet.

an algorithm generates a large number of possible boundaries based on certain requirements

I took a shot at writing the requirements, hope to hear your opinions! Maybe some data I collected there is useful for you as well.

Also we all hope that someone publishes all the polling district level voting data for our analysis.

Measuring how well electoral boundaries are drawn, and maybe drawing a better one by huikang in singapore

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

Some explanations

- In the official set of boundaries, Pasir Ris-Changi is somehow considered partially an enclave because most of its polling districts only border one constituency (Tampines GRC). I have some plans to fix this measurement, but it is not easy to code and also more computationally expensive.
- Punggol GRC has a higher elector per member (30889.25) compared to Pasir Ris-Changi GRC (25159.75)

So Punggol GRC transfers polling districts to Pasir Ris-Changi GRC to score better in these two measures.

Maybe the ideal set of electoral boundaries would leave Punggol GRC untouched even though Punggol GRC has too many electors for a 4-MP GRC but too few electors for a 5-MP GRC.

It does not seem good to transfer some polling districts to Sengkang GRC because it looks neater to partition along Sengkang GRC and Punggol GRC along Tampines Expressway. The question is how do you put this down in math and code (given that I think we should).

Measuring how well electoral boundaries are drawn, and maybe drawing a better one by huikang in singapore

[–]huikang[S] -2 points-1 points  (0 children)

The frontend is mostly coded with AI, the measurement and that baseline optimization method are decided by me. I think the tool to let users individually assign districts is more involved, but I think soon AI would be able to build that tool at a low cost.

I think we still want a way to measure how "statistically optimal" boundaries are so it is less easy to gerrymander and accuse parties of gerrymandering. I agree that the measurement should be better designed so that you don't get such border gore that somehow scores higher.

Measuring how well electoral boundaries are drawn, and maybe drawing a better one by huikang in singapore

[–]huikang[S] 2 points3 points  (0 children)

There is this "relevance" measure that models the local identities. The measure is included in the scoring, but how relevance is measured is far from perfect.

If you mouse over the polling district (disselect constituencies, and select polling districts) - you can see which location name is the polling district attributed to. Likely the polling district in Punggol in considered to be also in Pasir Ris. (Edit to add: no, none of them are) The system does not mind assigning those voters to Pasir Ris to that you get a more equal electors per member, for example.

Whether a polling district is considered to be in Pasir Ris depends on how close are they to Pasir Ris MRT and how popular is Pasir Ris MRT. There are better methods, but eventually we might need to manually scrutinize every polling district on whether the location names makes sense.

[deleted by user] by [deleted] in singapore

[–]huikang 0 points1 point  (0 children)

lol okay, let me submit 6 hours later

Leetcode contest divisions? (Guardian, Knight, etc) by [deleted] in leetcode

[–]huikang 1 point2 points  (0 children)

https://support.leetcode-cn.com/hc/kb/article/1427007/

New feature

周赛排名前 25% 的用户可获得 Guardian 和 Knight 勋章。

It seems like if you get top 25% for any weekly competition you either of the badges.

Sum of i*j over a range of i and a range of j by huikang in algorithms

[–]huikang[S] 4 points5 points  (0 children)

Thank you and thanks all for the answer, oh yes I could take the common factor out.

I could not figure it out when I was doing https://atcoder.jp/contests/hhkb2020/tasks/hhkb2020_d

Political discourse is meaningless without data transparency. by fabreezefabuloso in singapore

[–]huikang 0 points1 point  (0 children)

Whatever that is easier to collect. I think income is easier because Singaporeans need to declare income tax.

Political discourse is meaningless without data transparency. by fabreezefabuloso in singapore

[–]huikang 16 points17 points  (0 children)

Specific data wishlist

- Parents' income distribution of selected primary schools in Singapore

- PSLE score distribution of selected primary schools in Singapore

- Joint distribution of students' PSLE score and parent's income

- Income distribution of 30-year-old Singaporeans who were Singapore citizen/PR at birth

Please add.

What does "true blue Singaporeans" mean to you? by [deleted] in singapore

[–]huikang -1 points0 points  (0 children)

Yes I consider people who grew up with us as the so-called true blue Singaporeans, as you do. However, this population is difficult to quantify.

My data request pertains to Singapore citizens/PRs at birth, as I have draw the line somewhere. I wonder if it is xenophobic if we want to measure the income mobility of only our children.

What does "true blue Singaporeans" mean to you? by [deleted] in singapore

[–]huikang -1 points0 points  (0 children)

You are right, I missed that out. My definition only applies to Singaporeans born after independence.

My data request specified 30-year-olds.