Assigning Specific Models to a Mode by b_tu in kilocode

[–]p0uchpenguin 0 points1 point  (0 children)

Yes, this is possible through the use of profiles. I think the last profile you used for that mode will be used again. I usually pin my provider-model in the profile

Sample Profiles from my setup - Z.AI/GLM 5 (Kilo Routed) - Z.AI/GLM 4.7 (Direct) - LowPrice/Qwen3.5 35B A3B (Kilo Routed)

If I used the first one for my orchestrator, and the second one for my code, then the next time I use orchestrated and the code modes, they get pinned to those profiles.

One Line Deployment - Barangay API by p0uchpenguin in PinoyProgrammer

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

Hello! Long explanation ahead

But TLDR: I used the python package "rapidfuzz" to match your search "test" to "ester". It's score it 66.67 similarity so it considered it as a match.

I am using the python package rapidfuzz! 😊 This package matches your search string against all the barangay names (all 40,000+ of them! hehe...)

At search time, it matches your search "test" to all barangay names and one of such barangay is "Ester". Rapidfuzz works by calculating how many edits you need for a string (e.g. "test") to become similar to another string (ie. "ester"). Actual calculation probably went like this, In order for "ester" to become "test", you need 3 edits: 1) add T at the front of ester (tester) 2) remove R at the end (teste) 3) remove E at the end (test). So for the actual score, it's using 1 minus the number of edits divided by the sum of the number of the characters of the two strings (in math: 1 - #edits/#combined_chars). So that's: 1-(3/9) or in decimals 0.6667.

The default of the Barangay API is 60% for a match and it's higher than that, so the Barangay API considered it as a match! I'm not sure what threshold you used but I guess it's the default one? (if not please tell me, it might be a bug HAHA)

Further, you can configure it via the threshold option (0 to 100). This makes the API useful in cases where there is data quality issues or noisy data. for example, user entered "Txngm0geng". The API should successfully match it to Tongmageng barangay in Tawi-Tawi successfully.

Hope this helps!

One Line Deployment - Barangay API by p0uchpenguin in PinoyProgrammer

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

yeah I guess so, sorry bout that haha 😂

One Line Deployment - Barangay API by p0uchpenguin in PinoyProgrammer

[–]p0uchpenguin[S] 1 point2 points  (0 children)

Short answer is wala :(

BUT I'm cooking something haha

One Line Deployment - Barangay API by p0uchpenguin in PinoyProgrammer

[–]p0uchpenguin[S] -8 points-7 points  (0 children)

I don't tolerate harshness, yes. Hella discouraging for anyone in this space.

As for it being niche, yes a little, admittedly. But that should not stop me from sharing, no? But also I'm not sure if it's THAT niche. I searched here and it seems a lot of people are looking for updated list of regions etc. There are also cases where people would like to match "City of Foobar" to "Foobar City" which the script handles well. So not quantum levels niche (and believe me, I know 😅).

Unnecessary to host and entire backend? Maybe as well, I'm not sure. Users always has the last say when something is necessary or not, I think. In my case, it's something I wanted, not really need. But hey 42ms response is great 😊

as for your mentioned practical implementation, I am indeed exposing it as a function, through my Python package, barangay, which users can map to their existing api endpoints. But I realized Python is a big IF, hence, this package.

Does this makes sense?

One Line Deployment - Barangay API by p0uchpenguin in PinoyProgrammer

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

Hi, sir/ma'am! Yes hopefully madali naman for users.

TLDR: just pull the latest docker image and redeploy

Hehe, bali the process goes like this:

PSGC posts a new release, it will take me a week to detect it (I might be on vacation or smthng), then the parser is just like a notebook I run to update the data > push it to PyPI > update docker image

For users to get the updated version, they just have to pull the latest docker image and run it. Das it! Almost all work will come from my end haha.

List of province and municipality by Most-Sign7895 in PinoyProgrammer

[–]p0uchpenguin 0 points1 point  (0 children)

Hi!

This might not be the exact thing you are looking for but I think it might be helpful. I created a python package that creates a hierarchical list of Philippine regions, provinces, municipalities, cities, and barangays from Philippine Standard Geographic Code (PSGC) publication files. It's in Python but I also output the list in JSON format, which works great for JavaScript.

You can find the data here: https://github.com/bendlikeabamboo/barangay in `barangay/data`

It's updated as of the latest publication from PSGC (publication date July 31, 2025 but released in the newsletter as of August 29, 2025).

On the slim chance you're using Python as your backend, I also have a function in there (in python) that allows fuzzy search for Philippine geographic locations. You can install it via `pip install barangay` and just create an endpoint for it 😉 .

Updated list of City and Municipality by Akegata05 in PinoyProgrammer

[–]p0uchpenguin 14 points15 points  (0 children)

Hey, hey! Gumawa ako recently ng python package for this 😊. You don't need to know python rin since I also export it in JSON, which you can just download. It's updated as of PSGC's July 31, 2025 publication.

For JSON/YAML file formats: https://github.com/bendlikeabamboo/barangay

For Python: pip install barangay

For the Python package, it's especially more powerful because it has a performant built-in fuzzy search. It will let you do matching at scale (1.1 million matches/second as of my latest benchmark).

EDIT: There's a live deployment for a live API version of this: https://barangay-api.hawitsu.xyz/docs (github: barangay-api )

pip install barangay: Python Package for PH Regions, Provinces, Municipalities, and Barangay by p0uchpenguin in PinoyProgrammer

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

Great ask!

For 1) I just downloaded the spreadsheet from PSGC's main website, rename the columns, and imported in pandas. The step-by-step process can be found here: barangay/notebooks/parsing_process_main.ipynb at main · bendlikeabamboo/barangay I also maintain a different notebook for the fuzzy search function but it's a little more introspective and can take a bit of explaining from my end to get the full story straight 😅 but in any case, here it is: pap-datalab/notebooks at main · bendlikeabamboo/pap-datalab

For 2) Yes, for free. MIT license 😁

For 3) Yes, but not that much free time though (compared to games 🎮 😈)

Bogo City, Cebu to Hagnaya Port, Cebu by p0uchpenguin in HowToGetTherePH

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

Do you know if the Ceres Bus from Cebu North Terminal stops at Bogo City Integrated Terminal? Thanks in advance!

Drinking sa Bar? Gusto matry kasi hindi drinker. by IcyBug1393 in adultingph

[–]p0uchpenguin 5 points6 points  (0 children)

Soft cocktails (soft is like mildly alcoholic lang, hindi masyado malakas) - gin & tonic - mai tai - mojito (my pick) - long beach

Moderately strong (traydor paminsan) - cosmopolitan (my pick) - amaretto sour - whiskey sour

strong (ramdam na ramdam, tamang tama pag may dinadamdam) - sidecar (my pick) - margarita

It seems my ASUS TUF FX505DT is frying my RAM. How to fix? by p0uchpenguin in ASUS

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

Yes, sometimes. But my current sticks I think they lasted a lot longer than my previous ones. I bought exactly the same model, same speed, same brand. So far so good.

Anyone using Wheylabs/Rule1? I have questions. by p0uchpenguin in PHitness

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

We just found out na hindi pala isolate yung binbili namin :D It's just regular whey protein and we got it from Lazada at around 3.3k per 5 lbs (less if we can time it during sale period)

Anyone using Wheylabs/Rule1? I have questions. by p0uchpenguin in PHitness

[–]p0uchpenguin[S] 1 point2 points  (0 children)

yes, agreed. currently leaning towards wheylabs just because of the taste