Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
62

Singapore H1B1 Tips

from swyx's site RSS Feed [alt+shift+b] in programming

> Aug 2019 edit: I don't know the exact date I wrote this but it was [originally on /r/sg](https://www.reddit.com/r/singapore/comments/7nflav/h1b1_visa_ama/) about 1yr ago. Please also read this blogpost from /u/omakaselife! https://medium.com/@Ashleylim/navigating-the-h1b1-visa-process-4c8e459c4b96 for 2019 tips
1st Aug 2018

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from swyx's site RSS Feed

What America has meant to me

Every time I have given up on America, it has been a mistake. And yet, America has never, ever given up on me.

5th Jul 2026 • 2 votes
What you can do in a decade

I turned 40 today. For my 35th I did principles, but for my 40th, I wanted to offer perhaps more useful reflections.

22nd Apr 2026 • 1 votes
How to Thought Lead (2026)

I first started compiling "How To Thought Lead" in my notes 5 years ago, at first as an ironic parody and then slowly becoming sincere, and never published it, 1) because I don't know if I ever really nailed it / have a complete picture, 2) I was somewhat worried if I published it then others might diminish the techniques through overuse.

14th Mar 2026 • 1 votes
Take a hard game, and make it shorter

You are of course aware that attention spans are shrinking. YouTube -> Shorts, Instagram Reels, Tiktoks, etc have taken over the world.

16th Feb 2026 • 1 votes
How To Podcast

Through my 4 (!) podcasts I obviously have built up a lot of opinions on podcasting over the years. Here's some of them. The two outlier podcasts of our time are Dwarkesh and TBPN, and I will explain my mental model of them to the end - the following advice is what I strongly believe for the "average" podcast that wants to do well but not necessarily being full time top tier influencer level. Also, this is primarily for professional/technical interview guest-led podcasts, but I also do have opinions on non-guest-led podcasts as well.

7th Dec 2025 • 1 votes

More in programming

OpenStreetMap + Wikimedia

New dataset merges two authoritative community data sources

54 minutes ago • 1 votes
bint

British slang word meaning "girl" or "woman". Mildly derogatory but also can be affectionate.

an hour ago • 1 votes
Organising my cross-stitch patterns

I have a lot of digital cross-stitch patterns and until recently they were a mess. My “collection” was a series of several hundred PDFs, disorganised and spread across my disk. Recently, I was looking for a pattern and it took me several minutes to find it. I had a brief moment of panic, thinking that I’d lost it, and the website this pattern came from is long since gone. Fortunately it did turn up, but it was clear I had to organise my pattern collection. Some people would use apps like Pattern Keeper or Flosshaven, but I just created another static website on my media drive. This is what it looks like: The patterns are arranged in a masonry layout with a preview thumbnail for each pattern, which is normally the first page of the PDF. If a pattern has multiple files – for example, different files for colour and black-and-white printing – there’s a list of links below the thumbnail. I can also add a source link to where I bought the pattern, if I want to find more patterns by the same author. Internally, it’s structured like my other static websites. The metadata for the patterns is stored in a JavaScript file, and then I have an HTML page which renders that metadata in this visual design. My pattern collection doesn’t change very often, so I’m adding new files by hand. There are no sorting or filtering options, because my collection is small enough that they’re unnecessary. I can scroll through the entire list in less than a minute and find whatever I need. I’d like to start making my own clothes soon, and I expect to copy this design to store clothing patterns. This collection now sits alongside my saved bookmarks, podcasts, TV shows, and more. I can keep all my patterns organised, and I won’t lose them in the depths of my hard drive. Technical tricks There are a couple of technical pieces I’m quite pleased with in this process: Masonry layout. I love the cascading grid style of a masonry layout, and I think they’re great when you have variable-sized content – like my pattern cards. I’ve been using them for over a decade; screenshots of my early web apps show my experiments with David Desandro’s Masonry.js library. Masonry layouts are now a native feature of CSS called “Grid Lanes”, which is simpler and more performant than the JavaScript approach. I’m excited to use these layouts in even more places. Thumbnails of PDFs. Most digital postage patterns are shipped as PDFs, and I’m creating the thumbnail images with my create_thumbnail tool. I had to extend my tool to support PDFs, which turned out to be straightforward with the pdf_oxide crate. I’d not come across Oxide before, but it’s a cross-language library for working with PDFs, and I can imagine using it in future. A coloured stripe for the palette. In the metadata for each project, I have the complete list of DMC thread colours and the pattern dimensions. I have a lookup table that converts DMC thread colours to hex codes, and then I’m able to create a linear gradient in CSS to render a coloured stripe of the pattern colours. Here’s an example from a pattern with four colours: border-bottom: 12px solid transparent; border-image: linear-gradient( to right, #7a451f 0%, #7a451f 25%, #985e33 25%, #985e33 50%, #e4bb8e 50%, #e4bb8e 75%, #361f0e 75%, #361f0e 100% ) 1; Building the HTML, CSS, and JavaScript was very quick – I have notes on how I build my media sites, and I’ve done it plenty of times before. I threw together the initial prototype in less than 15 minutes. The longer part was finding all the PDFs scattered across my disk – but now that’s done, and I know exactly where to find my patterns. [If the formatting of this post looks odd in your feed reader, visit the original article]

11 hours ago • 1 votes
SumatraPDF new features: April 23, 2026

New in the SumatraPDF pre-release builds: Digital signature info in Document Properties Document Properties shows the digital signatures in a PDF: who signed it, whether the certificate is trusted and whether the document is unchanged since signing. It also shows the signing time, reason and location. The sign command-line tool is also enabled (#5572). Progress while opening archives When a comic book archive is being opened, the loading message shows progress as each file inside the archive is extracted. More: changes from April 23, 2026 and the full changelog.

17 hours ago • 1 votes
SumatraPDF: Open PDFs inside .p7m files

New in the SumatraPDF pre-release builds: Open PDFs inside .p7m files SumatraPDF opens PDF documents wrapped in digitally signed .p7m files (#5618). More: changes from May 21, 2026 and the full changelog.

17 hours ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in